const __vite__mapDeps = ( i, m = __vite__mapDeps, d = m.f || (m.f = [ "assets/Avatar.stories-BXBDwngC.js", "assets/jsx-runtime-C_nHp4yK.js", "assets/Avatar-C4Vb3oYl.js", "assets/preload-helper-DIZFD4sK.js", "assets/AvatarContainer.stories-BqIdIqTD.js", "assets/AvatarContainer-Bt0G0TWZ.js", "assets/Button.stories-mcJmJIRw.js", "assets/Button-Z4hbXct5.js", "assets/ContentLockup.stories-DwhcJmPs.js", "assets/ContentLockup-DbWiPA4N.js", "assets/Footer.stories-DFwAxlXr.js", "assets/Logo-DM7O8ATg.js", "assets/Header.stories-5BG7D2h7.js", "assets/Header-Bz-bT1Sq.js", "assets/MenuBar-anMCqtJv.js", "assets/MenuBarItem-Dp8NM2fx.js", "assets/HeaderTab.stories-7KIqz1LH.js", "assets/HeaderTab-D9jUrYUx.js", "assets/HeroBanner.stories-BAL-8UkC.js", "assets/HeroBanner-D2qHR4vw.js", "assets/HeroDecor-Csfoi-N_.js", "assets/HeroBannerSystem.stories-FwOHoVvm.js", "assets/HeroDecor.stories-CUMQtAQh.js", "assets/HomeHeader.stories-BZFS_npz.js", "assets/Logo.stories-CahJ_0p_.js", "assets/MenuBar.stories-CLlNuM-O.js", "assets/MenuBarItem.stories-Btz38mn4.js", "assets/NumberedCard.stories-B2w08pIr.js", "assets/NumberedCard-ClCynPua.js", "assets/SectionNumber-Cptefv18.js", "assets/NumberedCards.stories-RsE3R6pO.js", "assets/SectionHeader-CadpOP1T.js", "assets/SectionHeader.stories-CxSQCoM-.js", "assets/SectionNumber.stories-CTZpqrxx.js", "assets/react-18-TXN0K6I-.js", "assets/DocsRenderer-PQXLIZUC-CZs-lgH4.js", ]), ) => i.map((i) => d[i]); import { _ as jt } from "./preload-helper-DIZFD4sK.js"; function dL(e, t) { for (var r = 0; r < t.length; r++) { const n = t[r]; if (typeof n != "string" && !Array.isArray(n)) { for (const a in n) if (a !== "default" && !(a in e)) { const o = Object.getOwnPropertyDescriptor(n, a); o && Object.defineProperty( e, a, o.get ? o : { enumerable: !0, get: () => n[a] }, ); } } } return Object.freeze( Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), ); } (function () { const t = document.createElement("link").relList; if (t && t.supports && t.supports("modulepreload")) return; for (const a of document.querySelectorAll('link[rel="modulepreload"]')) n(a); new MutationObserver((a) => { for (const o of a) if (o.type === "childList") for (const i of o.addedNodes) i.tagName === "LINK" && i.rel === "modulepreload" && n(i); }).observe(document, { childList: !0, subtree: !0 }); function r(a) { const o = {}; return ( a.integrity && (o.integrity = a.integrity), a.referrerPolicy && (o.referrerPolicy = a.referrerPolicy), a.crossOrigin === "use-credentials" ? (o.credentials = "include") : a.crossOrigin === "anonymous" ? (o.credentials = "omit") : (o.credentials = "same-origin"), o ); } function n(a) { if (a.ep) return; a.ep = !0; const o = r(a); fetch(a.href, o); } })(); var _h = {}, pL = Object.create, fs = Object.defineProperty, fL = Object.getOwnPropertyDescriptor, hL = Object.getOwnPropertyNames, mL = Object.getPrototypeOf, yL = Object.prototype.hasOwnProperty, s = (e, t) => fs(e, "name", { value: t, configurable: !0 }), Vs = ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, r) => (typeof require < "u" ? require : t)[r], }) : e)(function (e) { if (typeof require < "u") return require.apply(this, arguments); throw Error('Dynamic require of "' + e + '" is not supported'); }), gL = (e, t) => () => (e && (t = e((e = 0))), t), N = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), ur = (e, t) => { for (var r in t) fs(e, r, { get: t[r], enumerable: !0 }); }, T1 = (e, t, r, n) => { if ((t && typeof t == "object") || typeof t == "function") for (let a of hL(t)) !yL.call(e, a) && a !== r && fs(e, a, { get: () => t[a], enumerable: !(n = fL(t, a)) || n.enumerable, }); return e; }, Lt = (e, t, r) => ( (r = e != null ? pL(mL(e)) : {}), T1( t || !e || !e.__esModule ? fs(r, "default", { value: e, enumerable: !0 }) : r, e, ) ), bL = (e) => T1(fs({}, "__esModule", { value: !0 }), e), vL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.isEqual = (function () { var t = Object.prototype.toString, r = Object.getPrototypeOf, n = Object.getOwnPropertySymbols ? function (a) { return Object.keys(a).concat(Object.getOwnPropertySymbols(a)); } : Object.keys; return function (a, o) { return s(function i(u, l, c) { var d, p, f, h = t.call(u), m = t.call(l); if (u === l) return !0; if (u == null || l == null) return !1; if (c.indexOf(u) > -1 && c.indexOf(l) > -1) return !0; if ( (c.push(u, l), h != m || ((d = n(u)), (p = n(l)), d.length != p.length || d.some(function (y) { return !i(u[y], l[y], c); }))) ) return !1; switch (h.slice(8, -1)) { case "Symbol": return u.valueOf() == l.valueOf(); case "Date": case "Number": return +u == +l || (+u != +u && +l != +l); case "RegExp": case "Function": case "String": case "Boolean": return "" + u == "" + l; case "Set": case "Map": ((d = u.entries()), (p = l.entries())); do if (!i((f = d.next()).value, p.next().value, c)) return !1; while (!f.done); return !0; case "ArrayBuffer": ((u = new Uint8Array(u)), (l = new Uint8Array(l))); case "DataView": ((u = new Uint8Array(u.buffer)), (l = new Uint8Array(l.buffer))); case "Float32Array": case "Float64Array": case "Int8Array": case "Int16Array": case "Int32Array": case "Uint8Array": case "Uint16Array": case "Uint32Array": case "Uint8ClampedArray": case "Arguments": case "Array": if (u.length != l.length) return !1; for (f = 0; f < u.length; f++) if ( (f in u || f in l) && (f in u != f in l || !i(u[f], l[f], c)) ) return !1; return !0; case "Object": return i(r(u), r(l), c); default: return !1; } }, "n")(a, o, []); }; })())); }), EL = N((e, t) => { t.exports = (r) => { let n = r.match(/^[ \t]*(?=\S)/gm); return n ? n.reduce((a, o) => Math.min(a, o.length), 1 / 0) : 0; }; }), _L = N((e, t) => { var r = EL(); t.exports = (n) => { let a = r(n); if (a === 0) return n; let o = new RegExp(`^[ \\t]{${a}}`, "gm"); return n.replace(o, ""); }; }), CL = N((e, t) => { t.exports = (r, n = 1, a) => { if ( ((a = { indent: " ", includeEmptyLines: !1, ...a }), typeof r != "string") ) throw new TypeError( `Expected \`input\` to be a \`string\`, got \`${typeof r}\``, ); if (typeof n != "number") throw new TypeError( `Expected \`count\` to be a \`number\`, got \`${typeof n}\``, ); if (typeof a.indent != "string") throw new TypeError( `Expected \`options.indent\` to be a \`string\`, got \`${typeof a.indent}\``, ); if (n === 0) return r; let o = a.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm; return r.replace(o, a.indent.repeat(n)); }; }), O1 = N((e, t) => { var r = _L(), n = CL(); t.exports = (a, o = 0, i) => n(r(a), o, i); }), wL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); function t() { var r = this, n = 0, a = { "@@iterator": s(function () { return a; }, "iterator"), next: s(function () { if (n < r.length) { var o = r[n]; return ((n = n + 1), { done: !1, value: o }); } else return { done: !0 }; }, "next"), }; return a; } (s(t, "iteratorProxy"), (e.default = t)); }), hs = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = a)); var t = r(wL()); function r(o) { return o && o.__esModule ? o : { default: o }; } s(r, "_interopRequireDefault"); function n(o) { "@babel/helpers - typeof"; return ( (n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function (i) { return typeof i; } : function (i) { return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; }), n(o) ); } s(n, "_typeof"); function a(o, i) { return ( typeof Symbol == "function" && n(Symbol.iterator) === "symbol" && Object.defineProperty(o, Symbol.iterator, { value: t.default.bind(i), }), o ); } s(a, "iterationDecorator"); }), AL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = r(hs()); function r(p) { return p && p.__esModule ? p : { default: p }; } s(r, "_interopRequireDefault"); function n(p, f) { return l(p) || u(p, f) || o(p, f) || a(); } s(n, "_slicedToArray"); function a() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } s(a, "_nonIterableRest"); function o(p, f) { if (p) { if (typeof p == "string") return i(p, f); var h = {}.toString.call(p).slice(8, -1); return ( h === "Object" && p.constructor && (h = p.constructor.name), h === "Map" || h === "Set" ? Array.from(p) : h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h) ? i(p, f) : void 0 ); } } s(o, "_unsupportedIterableToArray"); function i(p, f) { (f == null || f > p.length) && (f = p.length); for (var h = 0, m = Array(f); h < f; h++) m[h] = p[h]; return m; } s(i, "_arrayLikeToArray"); function u(p, f) { var h = p == null ? null : (typeof Symbol < "u" && p[Symbol.iterator]) || p["@@iterator"]; if (h != null) { var m, y, b, g, v = [], x = !0, A = !1; try { if (((b = (h = h.call(p)).next), f === 0)) { if (Object(h) !== h) return; x = !1; } else for ( ; !(x = (m = b.call(h)).done) && (v.push(m.value), v.length !== f); x = !0 ); } catch (w) { ((A = !0), (y = w)); } finally { try { if (!x && h.return != null && ((g = h.return()), Object(g) !== g)) return; } finally { if (A) throw y; } } return v; } } s(u, "_iterableToArrayLimit"); function l(p) { if (Array.isArray(p)) return p; } s(l, "_arrayWithHoles"); var c = [ ["aria-activedescendant", { type: "id" }], ["aria-atomic", { type: "boolean" }], [ "aria-autocomplete", { type: "token", values: ["inline", "list", "both", "none"] }, ], ["aria-braillelabel", { type: "string" }], ["aria-brailleroledescription", { type: "string" }], ["aria-busy", { type: "boolean" }], ["aria-checked", { type: "tristate" }], ["aria-colcount", { type: "integer" }], ["aria-colindex", { type: "integer" }], ["aria-colspan", { type: "integer" }], ["aria-controls", { type: "idlist" }], [ "aria-current", { type: "token", values: ["page", "step", "location", "date", "time", !0, !1], }, ], ["aria-describedby", { type: "idlist" }], ["aria-description", { type: "string" }], ["aria-details", { type: "id" }], ["aria-disabled", { type: "boolean" }], [ "aria-dropeffect", { type: "tokenlist", values: ["copy", "execute", "link", "move", "none", "popup"], }, ], ["aria-errormessage", { type: "id" }], ["aria-expanded", { type: "boolean", allowundefined: !0 }], ["aria-flowto", { type: "idlist" }], ["aria-grabbed", { type: "boolean", allowundefined: !0 }], [ "aria-haspopup", { type: "token", values: [!1, !0, "menu", "listbox", "tree", "grid", "dialog"], }, ], ["aria-hidden", { type: "boolean", allowundefined: !0 }], [ "aria-invalid", { type: "token", values: ["grammar", !1, "spelling", !0] }, ], ["aria-keyshortcuts", { type: "string" }], ["aria-label", { type: "string" }], ["aria-labelledby", { type: "idlist" }], ["aria-level", { type: "integer" }], [ "aria-live", { type: "token", values: ["assertive", "off", "polite"] }, ], ["aria-modal", { type: "boolean" }], ["aria-multiline", { type: "boolean" }], ["aria-multiselectable", { type: "boolean" }], [ "aria-orientation", { type: "token", values: ["vertical", "undefined", "horizontal"] }, ], ["aria-owns", { type: "idlist" }], ["aria-placeholder", { type: "string" }], ["aria-posinset", { type: "integer" }], ["aria-pressed", { type: "tristate" }], ["aria-readonly", { type: "boolean" }], [ "aria-relevant", { type: "tokenlist", values: ["additions", "all", "removals", "text"], }, ], ["aria-required", { type: "boolean" }], ["aria-roledescription", { type: "string" }], ["aria-rowcount", { type: "integer" }], ["aria-rowindex", { type: "integer" }], ["aria-rowspan", { type: "integer" }], ["aria-selected", { type: "boolean", allowundefined: !0 }], ["aria-setsize", { type: "integer" }], [ "aria-sort", { type: "token", values: ["ascending", "descending", "none", "other"], }, ], ["aria-valuemax", { type: "number" }], ["aria-valuemin", { type: "number" }], ["aria-valuenow", { type: "number" }], ["aria-valuetext", { type: "string" }], ], d = { entries: s(function () { return c; }, "entries"), forEach: s(function (p) { for ( var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, h = 0, m = c; h < m.length; h++ ) { var y = n(m[h], 2), b = y[0], g = y[1]; p.call(f, g, b, c); } }, "forEach"), get: s(function (p) { var f = c.filter(function (h) { return h[0] === p; })[0]; return f && f[1]; }, "get"), has: s(function (p) { return !!d.get(p); }, "has"), keys: s(function () { return c.map(function (p) { var f = n(p, 1), h = f[0]; return h; }); }, "keys"), values: s(function () { return c.map(function (p) { var f = n(p, 2), h = f[1]; return h; }); }, "values"), }; e.default = (0, t.default)(d, d.entries()); }), SL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = r(hs()); function r(p) { return p && p.__esModule ? p : { default: p }; } s(r, "_interopRequireDefault"); function n(p, f) { return l(p) || u(p, f) || o(p, f) || a(); } s(n, "_slicedToArray"); function a() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } s(a, "_nonIterableRest"); function o(p, f) { if (p) { if (typeof p == "string") return i(p, f); var h = {}.toString.call(p).slice(8, -1); return ( h === "Object" && p.constructor && (h = p.constructor.name), h === "Map" || h === "Set" ? Array.from(p) : h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h) ? i(p, f) : void 0 ); } } s(o, "_unsupportedIterableToArray"); function i(p, f) { (f == null || f > p.length) && (f = p.length); for (var h = 0, m = Array(f); h < f; h++) m[h] = p[h]; return m; } s(i, "_arrayLikeToArray"); function u(p, f) { var h = p == null ? null : (typeof Symbol < "u" && p[Symbol.iterator]) || p["@@iterator"]; if (h != null) { var m, y, b, g, v = [], x = !0, A = !1; try { if (((b = (h = h.call(p)).next), f === 0)) { if (Object(h) !== h) return; x = !1; } else for ( ; !(x = (m = b.call(h)).done) && (v.push(m.value), v.length !== f); x = !0 ); } catch (w) { ((A = !0), (y = w)); } finally { try { if (!x && h.return != null && ((g = h.return()), Object(g) !== g)) return; } finally { if (A) throw y; } } return v; } } s(u, "_iterableToArrayLimit"); function l(p) { if (Array.isArray(p)) return p; } s(l, "_arrayWithHoles"); var c = [ ["a", { reserved: !1 }], ["abbr", { reserved: !1 }], ["acronym", { reserved: !1 }], ["address", { reserved: !1 }], ["applet", { reserved: !1 }], ["area", { reserved: !1 }], ["article", { reserved: !1 }], ["aside", { reserved: !1 }], ["audio", { reserved: !1 }], ["b", { reserved: !1 }], ["base", { reserved: !0 }], ["bdi", { reserved: !1 }], ["bdo", { reserved: !1 }], ["big", { reserved: !1 }], ["blink", { reserved: !1 }], ["blockquote", { reserved: !1 }], ["body", { reserved: !1 }], ["br", { reserved: !1 }], ["button", { reserved: !1 }], ["canvas", { reserved: !1 }], ["caption", { reserved: !1 }], ["center", { reserved: !1 }], ["cite", { reserved: !1 }], ["code", { reserved: !1 }], ["col", { reserved: !0 }], ["colgroup", { reserved: !0 }], ["content", { reserved: !1 }], ["data", { reserved: !1 }], ["datalist", { reserved: !1 }], ["dd", { reserved: !1 }], ["del", { reserved: !1 }], ["details", { reserved: !1 }], ["dfn", { reserved: !1 }], ["dialog", { reserved: !1 }], ["dir", { reserved: !1 }], ["div", { reserved: !1 }], ["dl", { reserved: !1 }], ["dt", { reserved: !1 }], ["em", { reserved: !1 }], ["embed", { reserved: !1 }], ["fieldset", { reserved: !1 }], ["figcaption", { reserved: !1 }], ["figure", { reserved: !1 }], ["font", { reserved: !1 }], ["footer", { reserved: !1 }], ["form", { reserved: !1 }], ["frame", { reserved: !1 }], ["frameset", { reserved: !1 }], ["h1", { reserved: !1 }], ["h2", { reserved: !1 }], ["h3", { reserved: !1 }], ["h4", { reserved: !1 }], ["h5", { reserved: !1 }], ["h6", { reserved: !1 }], ["head", { reserved: !0 }], ["header", { reserved: !1 }], ["hgroup", { reserved: !1 }], ["hr", { reserved: !1 }], ["html", { reserved: !0 }], ["i", { reserved: !1 }], ["iframe", { reserved: !1 }], ["img", { reserved: !1 }], ["input", { reserved: !1 }], ["ins", { reserved: !1 }], ["kbd", { reserved: !1 }], ["keygen", { reserved: !1 }], ["label", { reserved: !1 }], ["legend", { reserved: !1 }], ["li", { reserved: !1 }], ["link", { reserved: !0 }], ["main", { reserved: !1 }], ["map", { reserved: !1 }], ["mark", { reserved: !1 }], ["marquee", { reserved: !1 }], ["menu", { reserved: !1 }], ["menuitem", { reserved: !1 }], ["meta", { reserved: !0 }], ["meter", { reserved: !1 }], ["nav", { reserved: !1 }], ["noembed", { reserved: !0 }], ["noscript", { reserved: !0 }], ["object", { reserved: !1 }], ["ol", { reserved: !1 }], ["optgroup", { reserved: !1 }], ["option", { reserved: !1 }], ["output", { reserved: !1 }], ["p", { reserved: !1 }], ["param", { reserved: !0 }], ["picture", { reserved: !0 }], ["pre", { reserved: !1 }], ["progress", { reserved: !1 }], ["q", { reserved: !1 }], ["rp", { reserved: !1 }], ["rt", { reserved: !1 }], ["rtc", { reserved: !1 }], ["ruby", { reserved: !1 }], ["s", { reserved: !1 }], ["samp", { reserved: !1 }], ["script", { reserved: !0 }], ["section", { reserved: !1 }], ["select", { reserved: !1 }], ["small", { reserved: !1 }], ["source", { reserved: !0 }], ["spacer", { reserved: !1 }], ["span", { reserved: !1 }], ["strike", { reserved: !1 }], ["strong", { reserved: !1 }], ["style", { reserved: !0 }], ["sub", { reserved: !1 }], ["summary", { reserved: !1 }], ["sup", { reserved: !1 }], ["table", { reserved: !1 }], ["tbody", { reserved: !1 }], ["td", { reserved: !1 }], ["textarea", { reserved: !1 }], ["tfoot", { reserved: !1 }], ["th", { reserved: !1 }], ["thead", { reserved: !1 }], ["time", { reserved: !1 }], ["title", { reserved: !0 }], ["tr", { reserved: !1 }], ["track", { reserved: !0 }], ["tt", { reserved: !1 }], ["u", { reserved: !1 }], ["ul", { reserved: !1 }], ["var", { reserved: !1 }], ["video", { reserved: !1 }], ["wbr", { reserved: !1 }], ["xmp", { reserved: !1 }], ], d = { entries: s(function () { return c; }, "entries"), forEach: s(function (p) { for ( var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, h = 0, m = c; h < m.length; h++ ) { var y = n(m[h], 2), b = y[0], g = y[1]; p.call(f, g, b, c); } }, "forEach"), get: s(function (p) { var f = c.filter(function (h) { return h[0] === p; })[0]; return f && f[1]; }, "get"), has: s(function (p) { return !!d.get(p); }, "has"), keys: s(function () { return c.map(function (p) { var f = n(p, 1), h = f[0]; return h; }); }, "keys"), values: s(function () { return c.map(function (p) { var f = n(p, 2), h = f[1]; return h; }); }, "values"), }; e.default = (0, t.default)(d, d.entries()); }), xL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget"]], }; e.default = t; }), PL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-activedescendant": null, "aria-disabled": null }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget"]], }; e.default = t; }), RL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null }, relatedConcepts: [{ concept: { name: "input" }, module: "XForms" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget"]], }; e.default = t; }), TL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), OL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-valuemax": null, "aria-valuemin": null, "aria-valuenow": null, }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }; e.default = t; }), DL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: [], prohibitedProps: [], props: { "aria-atomic": null, "aria-busy": null, "aria-controls": null, "aria-current": null, "aria-describedby": null, "aria-details": null, "aria-dropeffect": null, "aria-flowto": null, "aria-grabbed": null, "aria-hidden": null, "aria-keyshortcuts": null, "aria-label": null, "aria-labelledby": null, "aria-live": null, "aria-owns": null, "aria-relevant": null, "aria-roledescription": null, }, relatedConcepts: [ { concept: { name: "role" }, module: "XHTML" }, { concept: { name: "type" }, module: "Dublin Core" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [], }; e.default = t; }), FL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: [], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "frontmatter" }, module: "DTB" }, { concept: { name: "level" }, module: "DTB" }, { concept: { name: "level" }, module: "SMIL" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }; e.default = t; }), IL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }; e.default = t; }), NL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-orientation": null }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "widget", "composite"], ["roletype", "structure", "section", "group"], ], }; e.default = t; }), jL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: [], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype"]], }; e.default = t; }), kL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: [], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype"]], }; e.default = t; }), qL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-modal": null }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype"]], }; e.default = t; }), ML = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = h(xL()), r = h(PL()), n = h(RL()), a = h(TL()), o = h(OL()), i = h(DL()), u = h(FL()), l = h(IL()), c = h(NL()), d = h(jL()), p = h(kL()), f = h(qL()); function h(y) { return y && y.__esModule ? y : { default: y }; } s(h, "_interopRequireDefault"); var m = [ ["command", t.default], ["composite", r.default], ["input", n.default], ["landmark", a.default], ["range", o.default], ["roletype", i.default], ["section", u.default], ["sectionhead", l.default], ["select", c.default], ["structure", d.default], ["widget", p.default], ["window", f.default], ]; e.default = m; }), BL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-atomic": "true", "aria-live": "assertive" }, relatedConcepts: [{ concept: { name: "alert" }, module: "XForms" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), LL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "alert" }, module: "XForms" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "alert"], ["roletype", "window", "dialog"], ], }; e.default = t; }), $L = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-activedescendant": null, "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "Device Independence Delivery Unit" } }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }; e.default = t; }), UL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-posinset": null, "aria-setsize": null }, relatedConcepts: [{ concept: { name: "article" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "document"]], }; e.default = t; }), HL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { constraints: ["scoped to the body element"], name: "header", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), VL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "blockquote" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), zL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-disabled": null, "aria-expanded": null, "aria-haspopup": null, "aria-pressed": null, }, relatedConcepts: [ { concept: { attributes: [{ name: "type", value: "button" }], name: "input", }, module: "HTML", }, { concept: { attributes: [{ name: "type", value: "image" }], name: "input", }, module: "HTML", }, { concept: { attributes: [{ name: "type", value: "reset" }], name: "input", }, module: "HTML", }, { concept: { attributes: [{ name: "type", value: "submit" }], name: "input", }, module: "HTML", }, { concept: { name: "button" }, module: "HTML" }, { concept: { name: "trigger" }, module: "XForms" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command"]], }; e.default = t; }), GL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "caption" }, module: "HTML" }], requireContextRole: ["figure", "grid", "table"], requiredContextRole: ["figure", "grid", "table"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), WL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-colindex": null, "aria-colspan": null, "aria-rowindex": null, "aria-rowspan": null, }, relatedConcepts: [ { concept: { constraints: ["ancestor table element has table role"], name: "td", }, module: "HTML", }, ], requireContextRole: ["row"], requiredContextRole: ["row"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), JL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-checked": null, "aria-errormessage": null, "aria-expanded": null, "aria-invalid": null, "aria-readonly": null, "aria-required": null, }, relatedConcepts: [ { concept: { attributes: [{ name: "type", value: "checkbox" }], name: "input", }, module: "HTML", }, { concept: { name: "option" }, module: "ARIA" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-checked": null }, superClass: [["roletype", "widget", "input"]], }; e.default = t; }), XL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "code" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), KL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-sort": null }, relatedConcepts: [ { concept: { name: "th" }, module: "HTML" }, { concept: { attributes: [{ name: "scope", value: "col" }], name: "th", }, module: "HTML", }, { concept: { attributes: [{ name: "scope", value: "colgroup" }], name: "th", }, module: "HTML", }, ], requireContextRole: ["row"], requiredContextRole: ["row"], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "cell"], ["roletype", "structure", "section", "cell", "gridcell"], ["roletype", "widget", "gridcell"], ["roletype", "structure", "sectionhead"], ], }; e.default = t; }), YL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-activedescendant": null, "aria-autocomplete": null, "aria-errormessage": null, "aria-invalid": null, "aria-readonly": null, "aria-required": null, "aria-expanded": "false", "aria-haspopup": "listbox", }, relatedConcepts: [ { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "email" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "search" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "tel" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "text" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "url" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "url" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["undefined"], name: "multiple" }, { constraints: ["undefined"], name: "size" }, ], constraints: [ "the multiple attribute is not set and the size attribute does not have a value greater than 1", ], name: "select", }, module: "HTML", }, { concept: { name: "select" }, module: "XForms" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-controls": null, "aria-expanded": "false" }, superClass: [["roletype", "widget", "input"]], }; e.default = t; }), QL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { constraints: [ "scoped to the body element", "scoped to the main element", ], name: "aside", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "aria-label" }], constraints: [ "scoped to a sectioning content element", "scoped to a sectioning root element other than body", ], name: "aside", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "aria-labelledby" }], constraints: [ "scoped to a sectioning content element", "scoped to a sectioning root element other than body", ], name: "aside", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), ZL = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { constraints: ["scoped to the body element"], name: "footer", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), e3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "dd" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), t3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "del" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), r3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "dialog" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "window"]], }; e.default = t; }), n3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ module: "DAISY Guide" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "list"]], }; e.default = t; }), a3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "Device Independence Delivery Unit" } }, { concept: { name: "html" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }; e.default = t; }), o3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "em" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), i3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["article"]], requiredProps: {}, superClass: [["roletype", "structure", "section", "list"]], }; e.default = t; }), s3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "figure" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), u3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { attributes: [{ constraints: ["set"], name: "aria-label" }], name: "form", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "aria-labelledby" }], name: "form", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "name" }], name: "form", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), l3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [ { concept: { name: "a" }, module: "HTML" }, { concept: { name: "area" }, module: "HTML" }, { concept: { name: "aside" }, module: "HTML" }, { concept: { name: "b" }, module: "HTML" }, { concept: { name: "bdo" }, module: "HTML" }, { concept: { name: "body" }, module: "HTML" }, { concept: { name: "data" }, module: "HTML" }, { concept: { name: "div" }, module: "HTML" }, { concept: { constraints: [ "scoped to the main element", "scoped to a sectioning content element", "scoped to a sectioning root element other than body", ], name: "footer", }, module: "HTML", }, { concept: { constraints: [ "scoped to the main element", "scoped to a sectioning content element", "scoped to a sectioning root element other than body", ], name: "header", }, module: "HTML", }, { concept: { name: "hgroup" }, module: "HTML" }, { concept: { name: "i" }, module: "HTML" }, { concept: { name: "pre" }, module: "HTML" }, { concept: { name: "q" }, module: "HTML" }, { concept: { name: "samp" }, module: "HTML" }, { concept: { name: "section" }, module: "HTML" }, { concept: { name: "small" }, module: "HTML" }, { concept: { name: "span" }, module: "HTML" }, { concept: { name: "u" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }; e.default = t; }), c3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-multiselectable": null, "aria-readonly": null }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["row"], ["row", "rowgroup"]], requiredProps: {}, superClass: [ ["roletype", "widget", "composite"], ["roletype", "structure", "section", "table"], ], }; e.default = t; }), d3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, "aria-readonly": null, "aria-required": null, "aria-selected": null, }, relatedConcepts: [ { concept: { constraints: [ "ancestor table element has grid role", "ancestor table element has treegrid role", ], name: "td", }, module: "HTML", }, ], requireContextRole: ["row"], requiredContextRole: ["row"], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "cell"], ["roletype", "widget"], ], }; e.default = t; }), p3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-activedescendant": null, "aria-disabled": null }, relatedConcepts: [ { concept: { name: "details" }, module: "HTML" }, { concept: { name: "fieldset" }, module: "HTML" }, { concept: { name: "optgroup" }, module: "HTML" }, { concept: { name: "address" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), f3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-level": "2" }, relatedConcepts: [ { concept: { name: "h1" }, module: "HTML" }, { concept: { name: "h2" }, module: "HTML" }, { concept: { name: "h3" }, module: "HTML" }, { concept: { name: "h4" }, module: "HTML" }, { concept: { name: "h5" }, module: "HTML" }, { concept: { name: "h6" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-level": "2" }, superClass: [["roletype", "structure", "sectionhead"]], }; e.default = t; }), h3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { attributes: [{ constraints: ["set"], name: "alt" }], name: "img", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["undefined"], name: "alt" }], name: "img", }, module: "HTML", }, { concept: { name: "imggroup" }, module: "DTB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), m3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "ins" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), y3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-disabled": null, "aria-expanded": null, "aria-haspopup": null, }, relatedConcepts: [ { concept: { attributes: [{ constraints: ["set"], name: "href" }], name: "a", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "href" }], name: "area", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command"]], }; e.default = t; }), g3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "menu" }, module: "HTML" }, { concept: { name: "ol" }, module: "HTML" }, { concept: { name: "ul" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["listitem"]], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), b3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-expanded": null, "aria-invalid": null, "aria-multiselectable": null, "aria-readonly": null, "aria-required": null, "aria-orientation": "vertical", }, relatedConcepts: [ { concept: { attributes: [{ constraints: [">1"], name: "size" }], constraints: ["the size attribute value is greater than 1"], name: "select", }, module: "HTML", }, { concept: { attributes: [{ name: "multiple" }], name: "select" }, module: "HTML", }, { concept: { name: "datalist" }, module: "HTML" }, { concept: { name: "list" }, module: "ARIA" }, { concept: { name: "select" }, module: "XForms" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["option", "group"], ["option"]], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"], ], }; e.default = t; }), v3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-level": null, "aria-posinset": null, "aria-setsize": null, }, relatedConcepts: [ { concept: { constraints: [ "direct descendant of ol", "direct descendant of ul", "direct descendant of menu", ], name: "li", }, module: "HTML", }, { concept: { name: "item" }, module: "XForms" }, ], requireContextRole: ["directory", "list"], requiredContextRole: ["directory", "list"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), E3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-live": "polite" }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), _3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "main" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), C3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: [], props: { "aria-braillelabel": null, "aria-brailleroledescription": null, "aria-description": null, }, relatedConcepts: [{ concept: { name: "mark" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), w3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), A3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "math" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), S3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-orientation": "vertical" }, relatedConcepts: [ { concept: { name: "MENU" }, module: "JAPI" }, { concept: { name: "list" }, module: "ARIA" }, { concept: { name: "select" }, module: "XForms" }, { concept: { name: "sidebar" }, module: "DTB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [ ["menuitem", "group"], ["menuitemradio", "group"], ["menuitemcheckbox", "group"], ["menuitem"], ["menuitemcheckbox"], ["menuitemradio"], ], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"], ], }; e.default = t; }), x3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-orientation": "horizontal" }, relatedConcepts: [{ concept: { name: "toolbar" }, module: "ARIA" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [ ["menuitem", "group"], ["menuitemradio", "group"], ["menuitemcheckbox", "group"], ["menuitem"], ["menuitemcheckbox"], ["menuitemradio"], ], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "select", "menu"], ["roletype", "structure", "section", "group", "select", "menu"], ], }; e.default = t; }), P3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-disabled": null, "aria-expanded": null, "aria-haspopup": null, "aria-posinset": null, "aria-setsize": null, }, relatedConcepts: [ { concept: { name: "MENU_ITEM" }, module: "JAPI" }, { concept: { name: "listitem" }, module: "ARIA" }, { concept: { name: "option" }, module: "ARIA" }, ], requireContextRole: ["group", "menu", "menubar"], requiredContextRole: ["group", "menu", "menubar"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command"]], }; e.default = t; }), R3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "menuitem" }, module: "ARIA" }], requireContextRole: ["group", "menu", "menubar"], requiredContextRole: ["group", "menu", "menubar"], requiredOwnedElements: [], requiredProps: { "aria-checked": null }, superClass: [ ["roletype", "widget", "input", "checkbox"], ["roletype", "widget", "command", "menuitem"], ], }; e.default = t; }), T3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "menuitem" }, module: "ARIA" }], requireContextRole: ["group", "menu", "menubar"], requiredContextRole: ["group", "menu", "menubar"], requiredOwnedElements: [], requiredProps: { "aria-checked": null }, superClass: [ ["roletype", "widget", "input", "checkbox", "menuitemcheckbox"], ["roletype", "widget", "command", "menuitem", "menuitemcheckbox"], ["roletype", "widget", "input", "radio"], ], }; e.default = t; }), O3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-valuetext": null, "aria-valuemax": "100", "aria-valuemin": "0", }, relatedConcepts: [{ concept: { name: "meter" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-valuenow": null }, superClass: [["roletype", "structure", "range"]], }; e.default = t; }), D3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "nav" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), F3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: [], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [], }; e.default = t; }), I3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), N3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-checked": null, "aria-posinset": null, "aria-setsize": null, "aria-selected": "false", }, relatedConcepts: [ { concept: { name: "item" }, module: "XForms" }, { concept: { name: "listitem" }, module: "ARIA" }, { concept: { name: "option" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-selected": "false" }, superClass: [["roletype", "widget", "input"]], }; e.default = t; }), j3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "p" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), k3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [ { concept: { attributes: [{ name: "alt", value: "" }], name: "img" }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }; e.default = t; }), q3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-valuetext": null }, relatedConcepts: [ { concept: { name: "progress" }, module: "HTML" }, { concept: { name: "status" }, module: "ARIA" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "range"], ["roletype", "widget"], ], }; e.default = t; }), M3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-checked": null, "aria-posinset": null, "aria-setsize": null, }, relatedConcepts: [ { concept: { attributes: [{ name: "type", value: "radio" }], name: "input", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-checked": null }, superClass: [["roletype", "widget", "input"]], }; e.default = t; }), B3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null, "aria-readonly": null, "aria-required": null, }, relatedConcepts: [{ concept: { name: "list" }, module: "ARIA" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["radio"]], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"], ], }; e.default = t; }), L3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { attributes: [{ constraints: ["set"], name: "aria-label" }], name: "section", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "aria-labelledby" }], name: "section", }, module: "HTML", }, { concept: { name: "Device Independence Glossart perceivable unit" } }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), $3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-colindex": null, "aria-expanded": null, "aria-level": null, "aria-posinset": null, "aria-rowindex": null, "aria-selected": null, "aria-setsize": null, }, relatedConcepts: [{ concept: { name: "tr" }, module: "HTML" }], requireContextRole: ["grid", "rowgroup", "table", "treegrid"], requiredContextRole: ["grid", "rowgroup", "table", "treegrid"], requiredOwnedElements: [ ["cell"], ["columnheader"], ["gridcell"], ["rowheader"], ], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "group"], ["roletype", "widget"], ], }; e.default = t; }), U3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "tbody" }, module: "HTML" }, { concept: { name: "tfoot" }, module: "HTML" }, { concept: { name: "thead" }, module: "HTML" }, ], requireContextRole: ["grid", "table", "treegrid"], requiredContextRole: ["grid", "table", "treegrid"], requiredOwnedElements: [["row"]], requiredProps: {}, superClass: [["roletype", "structure"]], }; e.default = t; }), H3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-sort": null }, relatedConcepts: [ { concept: { attributes: [{ name: "scope", value: "row" }], name: "th", }, module: "HTML", }, { concept: { attributes: [{ name: "scope", value: "rowgroup" }], name: "th", }, module: "HTML", }, ], requireContextRole: ["row", "rowgroup"], requiredContextRole: ["row", "rowgroup"], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "cell"], ["roletype", "structure", "section", "cell", "gridcell"], ["roletype", "widget", "gridcell"], ["roletype", "structure", "sectionhead"], ], }; e.default = t; }), V3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-valuetext": null, "aria-orientation": "vertical", "aria-valuemax": "100", "aria-valuemin": "0", }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-controls": null, "aria-valuenow": null }, superClass: [ ["roletype", "structure", "range"], ["roletype", "widget"], ], }; e.default = t; }), z3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), G3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { attributes: [ { constraints: ["undefined"], name: "list" }, { name: "type", value: "search" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "input", "textbox"]], }; e.default = t; }), W3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-orientation": "horizontal", "aria-valuemax": "100", "aria-valuemin": "0", "aria-valuenow": null, "aria-valuetext": null, }, relatedConcepts: [{ concept: { name: "hr" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }; e.default = t; }), J3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-haspopup": null, "aria-invalid": null, "aria-readonly": null, "aria-valuetext": null, "aria-orientation": "horizontal", "aria-valuemax": "100", "aria-valuemin": "0", }, relatedConcepts: [ { concept: { attributes: [{ name: "type", value: "range" }], name: "input", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-valuenow": null }, superClass: [ ["roletype", "widget", "input"], ["roletype", "structure", "range"], ], }; e.default = t; }), X3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null, "aria-readonly": null, "aria-required": null, "aria-valuetext": null, "aria-valuenow": "0", }, relatedConcepts: [ { concept: { attributes: [{ name: "type", value: "number" }], name: "input", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "widget", "composite"], ["roletype", "widget", "input"], ["roletype", "structure", "range"], ], }; e.default = t; }), K3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-atomic": "true", "aria-live": "polite" }, relatedConcepts: [{ concept: { name: "output" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), Y3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "strong" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), Q3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "sub" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), Z3 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "sup" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), e$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "button" }, module: "ARIA" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-checked": null }, superClass: [["roletype", "widget", "input", "checkbox"]], }; e.default = t; }), t$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-disabled": null, "aria-expanded": null, "aria-haspopup": null, "aria-posinset": null, "aria-setsize": null, "aria-selected": "false", }, relatedConcepts: [], requireContextRole: ["tablist"], requiredContextRole: ["tablist"], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "sectionhead"], ["roletype", "widget"], ], }; e.default = t; }), r$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-colcount": null, "aria-rowcount": null }, relatedConcepts: [{ concept: { name: "table" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["row"], ["row", "rowgroup"]], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), n$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-level": null, "aria-multiselectable": null, "aria-orientation": "horizontal", }, relatedConcepts: [{ module: "DAISY", concept: { name: "guide" } }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["tab"]], requiredProps: {}, superClass: [["roletype", "widget", "composite"]], }; e.default = t; }), a$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), o$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "dfn" }, module: "HTML" }, { concept: { name: "dt" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), i$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-activedescendant": null, "aria-autocomplete": null, "aria-errormessage": null, "aria-haspopup": null, "aria-invalid": null, "aria-multiline": null, "aria-placeholder": null, "aria-readonly": null, "aria-required": null, }, relatedConcepts: [ { concept: { attributes: [ { constraints: ["undefined"], name: "type" }, { constraints: ["undefined"], name: "list" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["undefined"], name: "list" }, { name: "type", value: "email" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["undefined"], name: "list" }, { name: "type", value: "tel" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["undefined"], name: "list" }, { name: "type", value: "text" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["undefined"], name: "list" }, { name: "type", value: "url" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, { concept: { name: "input" }, module: "XForms" }, { concept: { name: "textarea" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "input"]], }; e.default = t; }), s$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "time" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), u$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "status"]], }; e.default = t; }), l$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-orientation": "horizontal" }, relatedConcepts: [{ concept: { name: "menubar" }, module: "ARIA" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "group"]], }; e.default = t; }), c$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), d$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null, "aria-multiselectable": null, "aria-required": null, "aria-orientation": "vertical", }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["treeitem", "group"], ["treeitem"]], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"], ], }; e.default = t; }), p$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["row"], ["row", "rowgroup"]], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "grid"], ["roletype", "structure", "section", "table", "grid"], ["roletype", "widget", "composite", "select", "tree"], ["roletype", "structure", "section", "group", "select", "tree"], ], }; e.default = t; }), f$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-expanded": null, "aria-haspopup": null }, relatedConcepts: [], requireContextRole: ["group", "tree"], requiredContextRole: ["group", "tree"], requiredOwnedElements: [], requiredProps: { "aria-selected": null }, superClass: [ ["roletype", "structure", "section", "listitem"], ["roletype", "widget", "input", "option"], ], }; e.default = t; }), h$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = O(BL()), r = O(LL()), n = O($L()), a = O(UL()), o = O(HL()), i = O(VL()), u = O(zL()), l = O(GL()), c = O(WL()), d = O(JL()), p = O(XL()), f = O(KL()), h = O(YL()), m = O(QL()), y = O(ZL()), b = O(e3()), g = O(t3()), v = O(r3()), x = O(n3()), A = O(a3()), w = O(o3()), C = O(i3()), E = O(s3()), _ = O(u3()), P = O(l3()), D = O(c3()), F = O(d3()), L = O(p3()), q = O(f3()), T = O(h3()), k = O(m3()), I = O(y3()), W = O(g3()), Q = O(b3()), se = O(v3()), H = O(E3()), K = O(_3()), V = O(C3()), Z = O(w3()), re = O(A3()), he = O(S3()), oe = O(x3()), ge = O(P3()), be = O(R3()), rt = O(T3()), Ke = O(O3()), z = O(D3()), ne = O(F3()), ue = O(I3()), te = O(N3()), ae = O(j3()), ee = O(k3()), fe = O(q3()), we = O(M3()), Pe = O(B3()), xe = O(L3()), ke = O($3()), Te = O(U3()), je = O(H3()), Le = O(V3()), ve = O(z3()), De = O(G3()), ye = O(W3()), Oe = O(J3()), Ne = O(X3()), mt = O(K3()), ot = O(Y3()), Be = O(Q3()), Ge = O(Z3()), pt = O(e$()), ut = O(t$()), Bt = O(r$()), ft = O(n$()), Re = O(a$()), Ze = O(o$()), Pt = O(i$()), It = O(s$()), Gt = O(u$()), cr = O(l$()), bt = O(c$()), R = O(d$()), B = O(p$()), j = O(f$()); function O(de) { return de && de.__esModule ? de : { default: de }; } s(O, "_interopRequireDefault"); var G = [ ["alert", t.default], ["alertdialog", r.default], ["application", n.default], ["article", a.default], ["banner", o.default], ["blockquote", i.default], ["button", u.default], ["caption", l.default], ["cell", c.default], ["checkbox", d.default], ["code", p.default], ["columnheader", f.default], ["combobox", h.default], ["complementary", m.default], ["contentinfo", y.default], ["definition", b.default], ["deletion", g.default], ["dialog", v.default], ["directory", x.default], ["document", A.default], ["emphasis", w.default], ["feed", C.default], ["figure", E.default], ["form", _.default], ["generic", P.default], ["grid", D.default], ["gridcell", F.default], ["group", L.default], ["heading", q.default], ["img", T.default], ["insertion", k.default], ["link", I.default], ["list", W.default], ["listbox", Q.default], ["listitem", se.default], ["log", H.default], ["main", K.default], ["mark", V.default], ["marquee", Z.default], ["math", re.default], ["menu", he.default], ["menubar", oe.default], ["menuitem", ge.default], ["menuitemcheckbox", be.default], ["menuitemradio", rt.default], ["meter", Ke.default], ["navigation", z.default], ["none", ne.default], ["note", ue.default], ["option", te.default], ["paragraph", ae.default], ["presentation", ee.default], ["progressbar", fe.default], ["radio", we.default], ["radiogroup", Pe.default], ["region", xe.default], ["row", ke.default], ["rowgroup", Te.default], ["rowheader", je.default], ["scrollbar", Le.default], ["search", ve.default], ["searchbox", De.default], ["separator", ye.default], ["slider", Oe.default], ["spinbutton", Ne.default], ["status", mt.default], ["strong", ot.default], ["subscript", Be.default], ["superscript", Ge.default], ["switch", pt.default], ["tab", ut.default], ["table", Bt.default], ["tablist", ft.default], ["tabpanel", Re.default], ["term", Ze.default], ["textbox", Pt.default], ["time", It.default], ["timer", Gt.default], ["toolbar", cr.default], ["tooltip", bt.default], ["tree", R.default], ["treegrid", B.default], ["treeitem", j.default], ]; e.default = G; }), m$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "abstract [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), y$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "acknowledgments [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), g$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "afterword [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), b$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "appendix [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), v$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null }, relatedConcepts: [ { concept: { name: "referrer [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command", "link"]], }; e.default = t; }), E$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "EPUB biblioentry [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: ["doc-bibliography"], requiredContextRole: ["doc-bibliography"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "listitem"]], }; e.default = t; }), _$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "bibliography [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["doc-biblioentry"]], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), C$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null }, relatedConcepts: [ { concept: { name: "biblioref [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command", "link"]], }; e.default = t; }), w$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "chapter [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), A$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "colophon [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), S$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "conclusion [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), x$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "cover [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "img"]], }; e.default = t; }), P$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "credit [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), R$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "credits [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), T$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "dedication [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), O$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "rearnote [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: ["doc-endnotes"], requiredContextRole: ["doc-endnotes"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "listitem"]], }; e.default = t; }), D$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "rearnotes [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["doc-endnote"]], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), F$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "epigraph [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), I$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "epilogue [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), N$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "errata [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), j$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), k$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "footnote [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), q$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "foreword [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), M$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "glossary [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["definition"], ["term"]], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), B$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null }, relatedConcepts: [ { concept: { name: "glossref [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command", "link"]], }; e.default = t; }), L$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "index [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "landmark", "navigation"], ], }; e.default = t; }), $$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "introduction [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), U$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null }, relatedConcepts: [ { concept: { name: "noteref [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command", "link"]], }; e.default = t; }), H$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "notice [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "note"]], }; e.default = t; }), V$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "pagebreak [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "separator"]], }; e.default = t; }), z$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: [], props: { "aria-braillelabel": null, "aria-brailleroledescription": null, "aria-description": null, "aria-disabled": null, "aria-errormessage": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), G$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: [], props: { "aria-braillelabel": null, "aria-brailleroledescription": null, "aria-description": null, "aria-disabled": null, "aria-errormessage": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), W$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "page-list [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "landmark", "navigation"], ], }; e.default = t; }), J$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "part [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), X$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "preface [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), K$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "prologue [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }; e.default = t; }), Y$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "pullquote [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["none"]], }; e.default = t; }), Q$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "qna [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }; e.default = t; }), Z$ = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "subtitle [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "sectionhead"]], }; e.default = t; }), e5 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "help [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "note"]], }; e.default = t; }), t5 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "toc [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "landmark", "navigation"], ], }; e.default = t; }), r5 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = oe(m$()), r = oe(y$()), n = oe(g$()), a = oe(b$()), o = oe(v$()), i = oe(E$()), u = oe(_$()), l = oe(C$()), c = oe(w$()), d = oe(A$()), p = oe(S$()), f = oe(x$()), h = oe(P$()), m = oe(R$()), y = oe(T$()), b = oe(O$()), g = oe(D$()), v = oe(F$()), x = oe(I$()), A = oe(N$()), w = oe(j$()), C = oe(k$()), E = oe(q$()), _ = oe(M$()), P = oe(B$()), D = oe(L$()), F = oe($$()), L = oe(U$()), q = oe(H$()), T = oe(V$()), k = oe(z$()), I = oe(G$()), W = oe(W$()), Q = oe(J$()), se = oe(X$()), H = oe(K$()), K = oe(Y$()), V = oe(Q$()), Z = oe(Z$()), re = oe(e5()), he = oe(t5()); function oe(be) { return be && be.__esModule ? be : { default: be }; } s(oe, "_interopRequireDefault"); var ge = [ ["doc-abstract", t.default], ["doc-acknowledgments", r.default], ["doc-afterword", n.default], ["doc-appendix", a.default], ["doc-backlink", o.default], ["doc-biblioentry", i.default], ["doc-bibliography", u.default], ["doc-biblioref", l.default], ["doc-chapter", c.default], ["doc-colophon", d.default], ["doc-conclusion", p.default], ["doc-cover", f.default], ["doc-credit", h.default], ["doc-credits", m.default], ["doc-dedication", y.default], ["doc-endnote", b.default], ["doc-endnotes", g.default], ["doc-epigraph", v.default], ["doc-epilogue", x.default], ["doc-errata", A.default], ["doc-example", w.default], ["doc-footnote", C.default], ["doc-foreword", E.default], ["doc-glossary", _.default], ["doc-glossref", P.default], ["doc-index", D.default], ["doc-introduction", F.default], ["doc-noteref", L.default], ["doc-notice", q.default], ["doc-pagebreak", T.default], ["doc-pagefooter", k.default], ["doc-pageheader", I.default], ["doc-pagelist", W.default], ["doc-part", Q.default], ["doc-preface", se.default], ["doc-prologue", H.default], ["doc-pullquote", K.default], ["doc-qna", V.default], ["doc-subtitle", Z.default], ["doc-tip", re.default], ["doc-toc", he.default], ]; e.default = ge; }), n5 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { module: "GRAPHICS", concept: { name: "graphics-object" } }, { module: "ARIA", concept: { name: "img" } }, { module: "ARIA", concept: { name: "article" } }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "document"]], }; e.default = t; }), a5 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { module: "GRAPHICS", concept: { name: "graphics-document" } }, { module: "ARIA", concept: { name: "group" } }, { module: "ARIA", concept: { name: "img" } }, { module: "GRAPHICS", concept: { name: "graphics-symbol" } }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "group"]], }; e.default = t; }), o5 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "img"]], }; e.default = t; }), i5 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = a(n5()), r = a(a5()), n = a(o5()); function a(i) { return i && i.__esModule ? i : { default: i }; } s(a, "_interopRequireDefault"); var o = [ ["graphics-document", t.default], ["graphics-object", r.default], ["graphics-symbol", n.default], ]; e.default = o; }), Ly = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = i(ML()), r = i(h$()), n = i(r5()), a = i(i5()), o = i(hs()); function i(b) { return b && b.__esModule ? b : { default: b }; } s(i, "_interopRequireDefault"); function u(b, g) { var v = (typeof Symbol < "u" && b[Symbol.iterator]) || b["@@iterator"]; if (!v) { if ( Array.isArray(b) || (v = d(b)) || (g && b && typeof b.length == "number") ) { v && (b = v); var x = 0, A = s(function () {}, "F"); return { s: A, n: s(function () { return x >= b.length ? { done: !0 } : { done: !1, value: b[x++] }; }, "n"), e: s(function (_) { throw _; }, "e"), 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 w, C = !0, E = !1; return { s: s(function () { v = v.call(b); }, "s"), n: s(function () { var _ = v.next(); return ((C = _.done), _); }, "n"), e: s(function (_) { ((E = !0), (w = _)); }, "e"), f: s(function () { try { C || v.return == null || v.return(); } finally { if (E) throw w; } }, "f"), }; } s(u, "_createForOfIteratorHelper"); function l(b, g) { return h(b) || f(b, g) || d(b, g) || c(); } s(l, "_slicedToArray"); function c() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } s(c, "_nonIterableRest"); function d(b, g) { if (b) { if (typeof b == "string") return p(b, g); var v = {}.toString.call(b).slice(8, -1); return ( v === "Object" && b.constructor && (v = b.constructor.name), v === "Map" || v === "Set" ? Array.from(b) : v === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v) ? p(b, g) : void 0 ); } } s(d, "_unsupportedIterableToArray"); function p(b, g) { (g == null || g > b.length) && (g = b.length); for (var v = 0, x = Array(g); v < g; v++) x[v] = b[v]; return x; } s(p, "_arrayLikeToArray"); function f(b, g) { var v = b == null ? null : (typeof Symbol < "u" && b[Symbol.iterator]) || b["@@iterator"]; if (v != null) { var x, A, w, C, E = [], _ = !0, P = !1; try { if (((w = (v = v.call(b)).next), g === 0)) { if (Object(v) !== v) return; _ = !1; } else for ( ; !(_ = (x = w.call(v)).done) && (E.push(x.value), E.length !== g); _ = !0 ); } catch (D) { ((P = !0), (A = D)); } finally { try { if (!_ && v.return != null && ((C = v.return()), Object(C) !== C)) return; } finally { if (P) throw A; } } return E; } } s(f, "_iterableToArrayLimit"); function h(b) { if (Array.isArray(b)) return b; } s(h, "_arrayWithHoles"); var m = [].concat(t.default, r.default, n.default, a.default); m.forEach(function (b) { var g = l(b, 2), v = g[1], x = u(v.superClass), A; try { for (x.s(); !(A = x.n()).done; ) { var w = A.value, C = u(w), E; try { var _ = s(function () { var P = E.value, D = m.filter(function (k) { var I = l(k, 1), W = I[0]; return W === P; })[0]; if (D) for ( var F = D[1], L = 0, q = Object.keys(F.props); L < q.length; L++ ) { var T = q[L]; Object.prototype.hasOwnProperty.call(v.props, T) || (v.props[T] = F.props[T]); } }, "_loop"); for (C.s(); !(E = C.n()).done; ) _(); } catch (P) { C.e(P); } finally { C.f(); } } } catch (P) { x.e(P); } finally { x.f(); } }); var y = { entries: s(function () { return m; }, "entries"), forEach: s(function (b) { var g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, v = u(m), x; try { for (v.s(); !(x = v.n()).done; ) { var A = l(x.value, 2), w = A[0], C = A[1]; b.call(g, C, w, m); } } catch (E) { v.e(E); } finally { v.f(); } }, "forEach"), get: s(function (b) { var g = m.filter(function (v) { return v[0] === b; })[0]; return g && g[1]; }, "get"), has: s(function (b) { return !!y.get(b); }, "has"), keys: s(function () { return m.map(function (b) { var g = l(b, 1), v = g[0]; return v; }); }, "keys"), values: s(function () { return m.map(function (b) { var g = l(b, 2), v = g[1]; return v; }); }, "values"), }; e.default = (0, o.default)(y, y.entries()); }), s5 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = n(hs()), r = n(Ly()); function n(C) { return C && C.__esModule ? C : { default: C }; } s(n, "_interopRequireDefault"); function a(C, E) { return c(C) || l(C, E) || i(C, E) || o(); } s(a, "_slicedToArray"); function o() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } s(o, "_nonIterableRest"); function i(C, E) { if (C) { if (typeof C == "string") return u(C, E); var _ = {}.toString.call(C).slice(8, -1); return ( _ === "Object" && C.constructor && (_ = C.constructor.name), _ === "Map" || _ === "Set" ? Array.from(C) : _ === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_) ? u(C, E) : void 0 ); } } s(i, "_unsupportedIterableToArray"); function u(C, E) { (E == null || E > C.length) && (E = C.length); for (var _ = 0, P = Array(E); _ < E; _++) P[_] = C[_]; return P; } s(u, "_arrayLikeToArray"); function l(C, E) { var _ = C == null ? null : (typeof Symbol < "u" && C[Symbol.iterator]) || C["@@iterator"]; if (_ != null) { var P, D, F, L, q = [], T = !0, k = !1; try { if (((F = (_ = _.call(C)).next), E === 0)) { if (Object(_) !== _) return; T = !1; } else for ( ; !(T = (P = F.call(_)).done) && (q.push(P.value), q.length !== E); T = !0 ); } catch (I) { ((k = !0), (D = I)); } finally { try { if (!T && _.return != null && ((L = _.return()), Object(L) !== L)) return; } finally { if (k) throw D; } } return q; } } s(l, "_iterableToArrayLimit"); function c(C) { if (Array.isArray(C)) return C; } s(c, "_arrayWithHoles"); var d = [], p = r.default.keys(); for (g = 0; g < p.length; g++) if (((f = p[g]), (h = r.default.get(f)), h)) for ( m = [].concat(h.baseConcepts, h.relatedConcepts), y = s(function () { var C = m[b]; if (C.module === "HTML") { var E = C.concept; if (E) { var _ = d.filter(function (L) { return x(L[0], E); })[0], P; _ ? (P = _[1]) : (P = []); for (var D = !0, F = 0; F < P.length; F++) if (P[F] === f) { D = !1; break; } (D && P.push(f), _ || d.push([E, P])); } } }, "_loop"), b = 0; b < m.length; b++ ) y(); var f, h, m, y, b, g, v = { entries: s(function () { return d; }, "entries"), forEach: s(function (C) { for ( var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _ = 0, P = d; _ < P.length; _++ ) { var D = a(P[_], 2), F = D[0], L = D[1]; C.call(E, L, F, d); } }, "forEach"), get: s(function (C) { var E = d.filter(function (_) { return C.name === _[0].name && w(C.attributes, _[0].attributes); })[0]; return E && E[1]; }, "get"), has: s(function (C) { return !!v.get(C); }, "has"), keys: s(function () { return d.map(function (C) { var E = a(C, 1), _ = E[0]; return _; }); }, "keys"), values: s(function () { return d.map(function (C) { var E = a(C, 2), _ = E[1]; return _; }); }, "values"), }; function x(C, E) { return ( C.name === E.name && A(C.constraints, E.constraints) && w(C.attributes, E.attributes) ); } s(x, "ariaRoleRelationConceptEquals"); function A(C, E) { if ((C === void 0 && E !== void 0) || (C !== void 0 && E === void 0)) return !1; if (C !== void 0 && E !== void 0) { if (C.length !== E.length) return !1; for (var _ = 0; _ < C.length; _++) if (C[_] !== E[_]) return !1; } return !0; } s(A, "ariaRoleRelationConstraintsEquals"); function w(C, E) { if ((C === void 0 && E !== void 0) || (C !== void 0 && E === void 0)) return !1; if (C !== void 0 && E !== void 0) { if (C.length !== E.length) return !1; for (var _ = 0; _ < C.length; _++) { if ( C[_].name !== E[_].name || C[_].value !== E[_].value || (C[_].constraints === void 0 && E[_].constraints !== void 0) || (C[_].constraints !== void 0 && E[_].constraints === void 0) ) return !1; if (C[_].constraints !== void 0 && E[_].constraints !== void 0) { if (C[_].constraints.length !== E[_].constraints.length) return !1; for (var P = 0; P < C[_].constraints.length; P++) if (C[_].constraints[P] !== E[_].constraints[P]) return !1; } } } return !0; } (s(w, "ariaRoleRelationConceptAttributeEquals"), (e.default = (0, t.default)(v, v.entries()))); }), u5 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = n(hs()), r = n(Ly()); function n(w) { return w && w.__esModule ? w : { default: w }; } s(n, "_interopRequireDefault"); function a(w, C) { return c(w) || l(w, C) || i(w, C) || o(); } s(a, "_slicedToArray"); function o() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } s(o, "_nonIterableRest"); function i(w, C) { if (w) { if (typeof w == "string") return u(w, C); var E = {}.toString.call(w).slice(8, -1); return ( E === "Object" && w.constructor && (E = w.constructor.name), E === "Map" || E === "Set" ? Array.from(w) : E === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E) ? u(w, C) : void 0 ); } } s(i, "_unsupportedIterableToArray"); function u(w, C) { (C == null || C > w.length) && (C = w.length); for (var E = 0, _ = Array(C); E < C; E++) _[E] = w[E]; return _; } s(u, "_arrayLikeToArray"); function l(w, C) { var E = w == null ? null : (typeof Symbol < "u" && w[Symbol.iterator]) || w["@@iterator"]; if (E != null) { var _, P, D, F, L = [], q = !0, T = !1; try { if (((D = (E = E.call(w)).next), C === 0)) { if (Object(E) !== E) return; q = !1; } else for ( ; !(q = (_ = D.call(E)).done) && (L.push(_.value), L.length !== C); q = !0 ); } catch (k) { ((T = !0), (P = k)); } finally { try { if (!q && E.return != null && ((F = E.return()), Object(F) !== F)) return; } finally { if (T) throw P; } } return L; } } s(l, "_iterableToArrayLimit"); function c(w) { if (Array.isArray(w)) return w; } s(c, "_arrayWithHoles"); var d = [], p = r.default.keys(); for (x = 0; x < p.length; x++) if (((f = p[x]), (h = r.default.get(f)), (m = []), h)) { for ( y = [].concat(h.baseConcepts, h.relatedConcepts), v = 0; v < y.length; v++ ) ((b = y[v]), b.module === "HTML" && ((g = b.concept), g != null && m.push(g))); m.length > 0 && d.push([f, m]); } var f, h, m, y, b, g, v, x, A = { entries: s(function () { return d; }, "entries"), forEach: s(function (w) { for ( var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, E = 0, _ = d; E < _.length; E++ ) { var P = a(_[E], 2), D = P[0], F = P[1]; w.call(C, F, D, d); } }, "forEach"), get: s(function (w) { var C = d.filter(function (E) { return E[0] === w; })[0]; return C && C[1]; }, "get"), has: s(function (w) { return !!A.get(w); }, "has"), keys: s(function () { return d.map(function (w) { var C = a(w, 1), E = C[0]; return E; }); }, "keys"), values: s(function () { return d.map(function (w) { var C = a(w, 2), E = C[1]; return E; }); }, "values"), }; e.default = (0, t.default)(A, A.entries()); }), D1 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.roles = e.roleElements = e.elementRoles = e.dom = e.aria = void 0)); var t = i(AL()), r = i(SL()), n = i(Ly()), a = i(s5()), o = i(u5()); function i(u) { return u && u.__esModule ? u : { default: u }; } (s(i, "_interopRequireDefault"), (e.aria = t.default), (e.dom = r.default), (e.roles = n.default), (e.elementRoles = a.default), (e.roleElements = o.default)); }), l5 = N((e, t) => { t.exports = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50], }; }), F1 = N((e, t) => { var r = l5(), n = {}; for (let i of Object.keys(r)) n[r[i]] = i; var a = { rgb: { channels: 3, labels: "rgb" }, hsl: { channels: 3, labels: "hsl" }, hsv: { channels: 3, labels: "hsv" }, hwb: { channels: 3, labels: "hwb" }, cmyk: { channels: 4, labels: "cmyk" }, xyz: { channels: 3, labels: "xyz" }, lab: { channels: 3, labels: "lab" }, lch: { channels: 3, labels: "lch" }, hex: { channels: 1, labels: ["hex"] }, keyword: { channels: 1, labels: ["keyword"] }, ansi16: { channels: 1, labels: ["ansi16"] }, ansi256: { channels: 1, labels: ["ansi256"] }, hcg: { channels: 3, labels: ["h", "c", "g"] }, apple: { channels: 3, labels: ["r16", "g16", "b16"] }, gray: { channels: 1, labels: ["gray"] }, }; t.exports = a; for (let i of Object.keys(a)) { if (!("channels" in a[i])) throw new Error("missing channels property: " + i); if (!("labels" in a[i])) throw new Error("missing channel labels property: " + i); if (a[i].labels.length !== a[i].channels) throw new Error("channel and label counts mismatch: " + i); let { channels: u, labels: l } = a[i]; (delete a[i].channels, delete a[i].labels, Object.defineProperty(a[i], "channels", { value: u }), Object.defineProperty(a[i], "labels", { value: l })); } ((a.rgb.hsl = function (i) { let u = i[0] / 255, l = i[1] / 255, c = i[2] / 255, d = Math.min(u, l, c), p = Math.max(u, l, c), f = p - d, h, m; (p === d ? (h = 0) : u === p ? (h = (l - c) / f) : l === p ? (h = 2 + (c - u) / f) : c === p && (h = 4 + (u - l) / f), (h = Math.min(h * 60, 360)), h < 0 && (h += 360)); let y = (d + p) / 2; return ( p === d ? (m = 0) : y <= 0.5 ? (m = f / (p + d)) : (m = f / (2 - p - d)), [h, m * 100, y * 100] ); }), (a.rgb.hsv = function (i) { let u, l, c, d, p, f = i[0] / 255, h = i[1] / 255, m = i[2] / 255, y = Math.max(f, h, m), b = y - Math.min(f, h, m), g = s(function (v) { return (y - v) / 6 / b + 1 / 2; }, "diffc"); return ( b === 0 ? ((d = 0), (p = 0)) : ((p = b / y), (u = g(f)), (l = g(h)), (c = g(m)), f === y ? (d = c - l) : h === y ? (d = 1 / 3 + u - c) : m === y && (d = 2 / 3 + l - u), d < 0 ? (d += 1) : d > 1 && (d -= 1)), [d * 360, p * 100, y * 100] ); }), (a.rgb.hwb = function (i) { let u = i[0], l = i[1], c = i[2], d = a.rgb.hsl(i)[0], p = (1 / 255) * Math.min(u, Math.min(l, c)); return ( (c = 1 - (1 / 255) * Math.max(u, Math.max(l, c))), [d, p * 100, c * 100] ); }), (a.rgb.cmyk = function (i) { let u = i[0] / 255, l = i[1] / 255, c = i[2] / 255, d = Math.min(1 - u, 1 - l, 1 - c), p = (1 - u - d) / (1 - d) || 0, f = (1 - l - d) / (1 - d) || 0, h = (1 - c - d) / (1 - d) || 0; return [p * 100, f * 100, h * 100, d * 100]; })); function o(i, u) { return (i[0] - u[0]) ** 2 + (i[1] - u[1]) ** 2 + (i[2] - u[2]) ** 2; } (s(o, "comparativeDistance"), (a.rgb.keyword = function (i) { let u = n[i]; if (u) return u; let l = 1 / 0, c; for (let d of Object.keys(r)) { let p = r[d], f = o(i, p); f < l && ((l = f), (c = d)); } return c; }), (a.keyword.rgb = function (i) { return r[i]; }), (a.rgb.xyz = function (i) { let u = i[0] / 255, l = i[1] / 255, c = i[2] / 255; ((u = u > 0.04045 ? ((u + 0.055) / 1.055) ** 2.4 : u / 12.92), (l = l > 0.04045 ? ((l + 0.055) / 1.055) ** 2.4 : l / 12.92), (c = c > 0.04045 ? ((c + 0.055) / 1.055) ** 2.4 : c / 12.92)); let d = u * 0.4124 + l * 0.3576 + c * 0.1805, p = u * 0.2126 + l * 0.7152 + c * 0.0722, f = u * 0.0193 + l * 0.1192 + c * 0.9505; return [d * 100, p * 100, f * 100]; }), (a.rgb.lab = function (i) { let u = a.rgb.xyz(i), l = u[0], c = u[1], d = u[2]; ((l /= 95.047), (c /= 100), (d /= 108.883), (l = l > 0.008856 ? l ** (1 / 3) : 7.787 * l + 16 / 116), (c = c > 0.008856 ? c ** (1 / 3) : 7.787 * c + 16 / 116), (d = d > 0.008856 ? d ** (1 / 3) : 7.787 * d + 16 / 116)); let p = 116 * c - 16, f = 500 * (l - c), h = 200 * (c - d); return [p, f, h]; }), (a.hsl.rgb = function (i) { let u = i[0] / 360, l = i[1] / 100, c = i[2] / 100, d, p, f; if (l === 0) return ((f = c * 255), [f, f, f]); c < 0.5 ? (d = c * (1 + l)) : (d = c + l - c * l); let h = 2 * c - d, m = [0, 0, 0]; for (let y = 0; y < 3; y++) ((p = u + (1 / 3) * -(y - 1)), p < 0 && p++, p > 1 && p--, 6 * p < 1 ? (f = h + (d - h) * 6 * p) : 2 * p < 1 ? (f = d) : 3 * p < 2 ? (f = h + (d - h) * (2 / 3 - p) * 6) : (f = h), (m[y] = f * 255)); return m; }), (a.hsl.hsv = function (i) { let u = i[0], l = i[1] / 100, c = i[2] / 100, d = l, p = Math.max(c, 0.01); ((c *= 2), (l *= c <= 1 ? c : 2 - c), (d *= p <= 1 ? p : 2 - p)); let f = (c + l) / 2, h = c === 0 ? (2 * d) / (p + d) : (2 * l) / (c + l); return [u, h * 100, f * 100]; }), (a.hsv.rgb = function (i) { let u = i[0] / 60, l = i[1] / 100, c = i[2] / 100, d = Math.floor(u) % 6, p = u - Math.floor(u), f = 255 * c * (1 - l), h = 255 * c * (1 - l * p), m = 255 * c * (1 - l * (1 - p)); switch (((c *= 255), d)) { case 0: return [c, m, f]; case 1: return [h, c, f]; case 2: return [f, c, m]; case 3: return [f, h, c]; case 4: return [m, f, c]; case 5: return [c, f, h]; } }), (a.hsv.hsl = function (i) { let u = i[0], l = i[1] / 100, c = i[2] / 100, d = Math.max(c, 0.01), p, f; f = (2 - l) * c; let h = (2 - l) * d; return ( (p = l * d), (p /= h <= 1 ? h : 2 - h), (p = p || 0), (f /= 2), [u, p * 100, f * 100] ); }), (a.hwb.rgb = function (i) { let u = i[0] / 360, l = i[1] / 100, c = i[2] / 100, d = l + c, p; d > 1 && ((l /= d), (c /= d)); let f = Math.floor(6 * u), h = 1 - c; ((p = 6 * u - f), (f & 1) !== 0 && (p = 1 - p)); let m = l + p * (h - l), y, b, g; switch (f) { default: case 6: case 0: ((y = h), (b = m), (g = l)); break; case 1: ((y = m), (b = h), (g = l)); break; case 2: ((y = l), (b = h), (g = m)); break; case 3: ((y = l), (b = m), (g = h)); break; case 4: ((y = m), (b = l), (g = h)); break; case 5: ((y = h), (b = l), (g = m)); break; } return [y * 255, b * 255, g * 255]; }), (a.cmyk.rgb = function (i) { let u = i[0] / 100, l = i[1] / 100, c = i[2] / 100, d = i[3] / 100, p = 1 - Math.min(1, u * (1 - d) + d), f = 1 - Math.min(1, l * (1 - d) + d), h = 1 - Math.min(1, c * (1 - d) + d); return [p * 255, f * 255, h * 255]; }), (a.xyz.rgb = function (i) { let u = i[0] / 100, l = i[1] / 100, c = i[2] / 100, d, p, f; return ( (d = u * 3.2406 + l * -1.5372 + c * -0.4986), (p = u * -0.9689 + l * 1.8758 + c * 0.0415), (f = u * 0.0557 + l * -0.204 + c * 1.057), (d = d > 0.0031308 ? 1.055 * d ** (1 / 2.4) - 0.055 : d * 12.92), (p = p > 0.0031308 ? 1.055 * p ** (1 / 2.4) - 0.055 : p * 12.92), (f = f > 0.0031308 ? 1.055 * f ** (1 / 2.4) - 0.055 : f * 12.92), (d = Math.min(Math.max(0, d), 1)), (p = Math.min(Math.max(0, p), 1)), (f = Math.min(Math.max(0, f), 1)), [d * 255, p * 255, f * 255] ); }), (a.xyz.lab = function (i) { let u = i[0], l = i[1], c = i[2]; ((u /= 95.047), (l /= 100), (c /= 108.883), (u = u > 0.008856 ? u ** (1 / 3) : 7.787 * u + 16 / 116), (l = l > 0.008856 ? l ** (1 / 3) : 7.787 * l + 16 / 116), (c = c > 0.008856 ? c ** (1 / 3) : 7.787 * c + 16 / 116)); let d = 116 * l - 16, p = 500 * (u - l), f = 200 * (l - c); return [d, p, f]; }), (a.lab.xyz = function (i) { let u = i[0], l = i[1], c = i[2], d, p, f; ((p = (u + 16) / 116), (d = l / 500 + p), (f = p - c / 200)); let h = p ** 3, m = d ** 3, y = f ** 3; return ( (p = h > 0.008856 ? h : (p - 16 / 116) / 7.787), (d = m > 0.008856 ? m : (d - 16 / 116) / 7.787), (f = y > 0.008856 ? y : (f - 16 / 116) / 7.787), (d *= 95.047), (p *= 100), (f *= 108.883), [d, p, f] ); }), (a.lab.lch = function (i) { let u = i[0], l = i[1], c = i[2], d; ((d = (Math.atan2(c, l) * 360) / 2 / Math.PI), d < 0 && (d += 360)); let p = Math.sqrt(l * l + c * c); return [u, p, d]; }), (a.lch.lab = function (i) { let u = i[0], l = i[1], c = (i[2] / 360) * 2 * Math.PI, d = l * Math.cos(c), p = l * Math.sin(c); return [u, d, p]; }), (a.rgb.ansi16 = function (i, u = null) { let [l, c, d] = i, p = u === null ? a.rgb.hsv(i)[2] : u; if (((p = Math.round(p / 50)), p === 0)) return 30; let f = 30 + ((Math.round(d / 255) << 2) | (Math.round(c / 255) << 1) | Math.round(l / 255)); return (p === 2 && (f += 60), f); }), (a.hsv.ansi16 = function (i) { return a.rgb.ansi16(a.hsv.rgb(i), i[2]); }), (a.rgb.ansi256 = function (i) { let u = i[0], l = i[1], c = i[2]; return u === l && l === c ? u < 8 ? 16 : u > 248 ? 231 : Math.round(((u - 8) / 247) * 24) + 232 : 16 + 36 * Math.round((u / 255) * 5) + 6 * Math.round((l / 255) * 5) + Math.round((c / 255) * 5); }), (a.ansi16.rgb = function (i) { let u = i % 10; if (u === 0 || u === 7) return (i > 50 && (u += 3.5), (u = (u / 10.5) * 255), [u, u, u]); let l = (~~(i > 50) + 1) * 0.5, c = (u & 1) * l * 255, d = ((u >> 1) & 1) * l * 255, p = ((u >> 2) & 1) * l * 255; return [c, d, p]; }), (a.ansi256.rgb = function (i) { if (i >= 232) { let p = (i - 232) * 10 + 8; return [p, p, p]; } i -= 16; let u, l = (Math.floor(i / 36) / 5) * 255, c = (Math.floor((u = i % 36) / 6) / 5) * 255, d = ((u % 6) / 5) * 255; return [l, c, d]; }), (a.rgb.hex = function (i) { let u = ( ((Math.round(i[0]) & 255) << 16) + ((Math.round(i[1]) & 255) << 8) + (Math.round(i[2]) & 255) ) .toString(16) .toUpperCase(); return "000000".substring(u.length) + u; }), (a.hex.rgb = function (i) { let u = i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); if (!u) return [0, 0, 0]; let l = u[0]; u[0].length === 3 && (l = l .split("") .map((h) => h + h) .join("")); let c = parseInt(l, 16), d = (c >> 16) & 255, p = (c >> 8) & 255, f = c & 255; return [d, p, f]; }), (a.rgb.hcg = function (i) { let u = i[0] / 255, l = i[1] / 255, c = i[2] / 255, d = Math.max(Math.max(u, l), c), p = Math.min(Math.min(u, l), c), f = d - p, h, m; return ( f < 1 ? (h = p / (1 - f)) : (h = 0), f <= 0 ? (m = 0) : d === u ? (m = ((l - c) / f) % 6) : d === l ? (m = 2 + (c - u) / f) : (m = 4 + (u - l) / f), (m /= 6), (m %= 1), [m * 360, f * 100, h * 100] ); }), (a.hsl.hcg = function (i) { let u = i[1] / 100, l = i[2] / 100, c = l < 0.5 ? 2 * u * l : 2 * u * (1 - l), d = 0; return ( c < 1 && (d = (l - 0.5 * c) / (1 - c)), [i[0], c * 100, d * 100] ); }), (a.hsv.hcg = function (i) { let u = i[1] / 100, l = i[2] / 100, c = u * l, d = 0; return (c < 1 && (d = (l - c) / (1 - c)), [i[0], c * 100, d * 100]); }), (a.hcg.rgb = function (i) { let u = i[0] / 360, l = i[1] / 100, c = i[2] / 100; if (l === 0) return [c * 255, c * 255, c * 255]; let d = [0, 0, 0], p = (u % 1) * 6, f = p % 1, h = 1 - f, m = 0; switch (Math.floor(p)) { case 0: ((d[0] = 1), (d[1] = f), (d[2] = 0)); break; case 1: ((d[0] = h), (d[1] = 1), (d[2] = 0)); break; case 2: ((d[0] = 0), (d[1] = 1), (d[2] = f)); break; case 3: ((d[0] = 0), (d[1] = h), (d[2] = 1)); break; case 4: ((d[0] = f), (d[1] = 0), (d[2] = 1)); break; default: ((d[0] = 1), (d[1] = 0), (d[2] = h)); } return ( (m = (1 - l) * c), [(l * d[0] + m) * 255, (l * d[1] + m) * 255, (l * d[2] + m) * 255] ); }), (a.hcg.hsv = function (i) { let u = i[1] / 100, l = i[2] / 100, c = u + l * (1 - u), d = 0; return (c > 0 && (d = u / c), [i[0], d * 100, c * 100]); }), (a.hcg.hsl = function (i) { let u = i[1] / 100, l = (i[2] / 100) * (1 - u) + 0.5 * u, c = 0; return ( l > 0 && l < 0.5 ? (c = u / (2 * l)) : l >= 0.5 && l < 1 && (c = u / (2 * (1 - l))), [i[0], c * 100, l * 100] ); }), (a.hcg.hwb = function (i) { let u = i[1] / 100, l = i[2] / 100, c = u + l * (1 - u); return [i[0], (c - u) * 100, (1 - c) * 100]; }), (a.hwb.hcg = function (i) { let u = i[1] / 100, l = 1 - i[2] / 100, c = l - u, d = 0; return (c < 1 && (d = (l - c) / (1 - c)), [i[0], c * 100, d * 100]); }), (a.apple.rgb = function (i) { return [ (i[0] / 65535) * 255, (i[1] / 65535) * 255, (i[2] / 65535) * 255, ]; }), (a.rgb.apple = function (i) { return [ (i[0] / 255) * 65535, (i[1] / 255) * 65535, (i[2] / 255) * 65535, ]; }), (a.gray.rgb = function (i) { return [(i[0] / 100) * 255, (i[0] / 100) * 255, (i[0] / 100) * 255]; }), (a.gray.hsl = function (i) { return [0, 0, i[0]]; }), (a.gray.hsv = a.gray.hsl), (a.gray.hwb = function (i) { return [0, 100, i[0]]; }), (a.gray.cmyk = function (i) { return [0, 0, 0, i[0]]; }), (a.gray.lab = function (i) { return [i[0], 0, 0]; }), (a.gray.hex = function (i) { let u = Math.round((i[0] / 100) * 255) & 255, l = ((u << 16) + (u << 8) + u).toString(16).toUpperCase(); return "000000".substring(l.length) + l; }), (a.rgb.gray = function (i) { return [((i[0] + i[1] + i[2]) / 3 / 255) * 100]; })); }), c5 = N((e, t) => { var r = F1(); function n() { let u = {}, l = Object.keys(r); for (let c = l.length, d = 0; d < c; d++) u[l[d]] = { distance: -1, parent: null }; return u; } s(n, "buildGraph"); function a(u) { let l = n(), c = [u]; for (l[u].distance = 0; c.length; ) { let d = c.pop(), p = Object.keys(r[d]); for (let f = p.length, h = 0; h < f; h++) { let m = p[h], y = l[m]; y.distance === -1 && ((y.distance = l[d].distance + 1), (y.parent = d), c.unshift(m)); } } return l; } s(a, "deriveBFS"); function o(u, l) { return function (c) { return l(u(c)); }; } s(o, "link"); function i(u, l) { let c = [l[u].parent, u], d = r[l[u].parent][u], p = l[u].parent; for (; l[p].parent; ) (c.unshift(l[p].parent), (d = o(r[l[p].parent][p], d)), (p = l[p].parent)); return ((d.conversion = c), d); } (s(i, "wrapConversion"), (t.exports = function (u) { let l = a(u), c = {}, d = Object.keys(l); for (let p = d.length, f = 0; f < p; f++) { let h = d[f]; l[h].parent !== null && (c[h] = i(h, l)); } return c; })); }), d5 = N((e, t) => { var r = F1(), n = c5(), a = {}, o = Object.keys(r); function i(l) { let c = s(function (...d) { let p = d[0]; return p == null ? p : (p.length > 1 && (d = p), l(d)); }, "wrappedFn"); return ("conversion" in l && (c.conversion = l.conversion), c); } s(i, "wrapRaw"); function u(l) { let c = s(function (...d) { let p = d[0]; if (p == null) return p; p.length > 1 && (d = p); let f = l(d); if (typeof f == "object") for (let h = f.length, m = 0; m < h; m++) f[m] = Math.round(f[m]); return f; }, "wrappedFn"); return ("conversion" in l && (c.conversion = l.conversion), c); } (s(u, "wrapRounded"), o.forEach((l) => { ((a[l] = {}), Object.defineProperty(a[l], "channels", { value: r[l].channels }), Object.defineProperty(a[l], "labels", { value: r[l].labels })); let c = n(l); Object.keys(c).forEach((d) => { let p = c[d]; ((a[l][d] = u(p)), (a[l][d].raw = i(p))); }); }), (t.exports = a)); }), p5 = N((e, t) => { var r = s( (p, f) => (...h) => `\x1B[${p(...h) + f}m`, "wrapAnsi16", ), n = s( (p, f) => (...h) => { let m = p(...h); return `\x1B[${38 + f};5;${m}m`; }, "wrapAnsi256", ), a = s( (p, f) => (...h) => { let m = p(...h); return `\x1B[${38 + f};2;${m[0]};${m[1]};${m[2]}m`; }, "wrapAnsi16m", ), o = s((p) => p, "ansi2ansi"), i = s((p, f, h) => [p, f, h], "rgb2rgb"), u = s((p, f, h) => { Object.defineProperty(p, f, { get: s(() => { let m = h(); return ( Object.defineProperty(p, f, { value: m, enumerable: !0, configurable: !0, }), m ); }, "get"), enumerable: !0, configurable: !0, }); }, "setLazyProperty"), l, c = s((p, f, h, m) => { l === void 0 && (l = d5()); let y = m ? 10 : 0, b = {}; for (let [g, v] of Object.entries(l)) { let x = g === "ansi16" ? "ansi" : g; g === f ? (b[x] = p(h, y)) : typeof v == "object" && (b[x] = p(v[f], y)); } return b; }, "makeDynamicStyles"); function d() { let p = new Map(), f = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39], }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49], }, }; ((f.color.gray = f.color.blackBright), (f.bgColor.bgGray = f.bgColor.bgBlackBright), (f.color.grey = f.color.blackBright), (f.bgColor.bgGrey = f.bgColor.bgBlackBright)); for (let [h, m] of Object.entries(f)) { for (let [y, b] of Object.entries(m)) ((f[y] = { open: `\x1B[${b[0]}m`, close: `\x1B[${b[1]}m` }), (m[y] = f[y]), p.set(b[0], b[1])); Object.defineProperty(f, h, { value: m, enumerable: !1 }); } return ( Object.defineProperty(f, "codes", { value: p, enumerable: !1 }), (f.color.close = "\x1B[39m"), (f.bgColor.close = "\x1B[49m"), u(f.color, "ansi", () => c(r, "ansi16", o, !1)), u(f.color, "ansi256", () => c(n, "ansi256", o, !1)), u(f.color, "ansi16m", () => c(a, "rgb", i, !1)), u(f.bgColor, "ansi", () => c(r, "ansi16", o, !0)), u(f.bgColor, "ansi256", () => c(n, "ansi256", o, !0)), u(f.bgColor, "ansi16m", () => c(a, "rgb", i, !0)), f ); } (s(d, "assembleStyles"), Object.defineProperty(t, "exports", { enumerable: !0, get: d })); }), f5 = N((e, t) => { t.exports = { stdout: !1, stderr: !1 }; }), h5 = N((e, t) => { var r = s((a, o, i) => { let u = a.indexOf(o); if (u === -1) return a; let l = o.length, c = 0, d = ""; do ((d += a.substr(c, u - c) + o + i), (c = u + l), (u = a.indexOf(o, c))); while (u !== -1); return ((d += a.substr(c)), d); }, "stringReplaceAll"), n = s((a, o, i, u) => { let l = 0, c = ""; do { let d = a[u - 1] === "\r"; ((c += a.substr(l, (d ? u - 1 : u) - l) + o + (d ? `\r ` : ` `) + i), (l = u + 1), (u = a.indexOf( ` `, l, ))); } while (u !== -1); return ((c += a.substr(l)), c); }, "stringEncaseCRLFWithFirstIndex"); t.exports = { stringReplaceAll: r, stringEncaseCRLFWithFirstIndex: n }; }), m5 = N((e, t) => { var r = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi, n = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g, a = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/, o = /\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi, i = new Map([ [ "n", ` `, ], ["r", "\r"], ["t", " "], ["b", "\b"], ["f", "\f"], ["v", "\v"], ["0", "\0"], ["\\", "\\"], ["e", "\x1B"], ["a", "\x07"], ]); function u(p) { let f = p[0] === "u", h = p[1] === "{"; return (f && !h && p.length === 5) || (p[0] === "x" && p.length === 3) ? String.fromCharCode(parseInt(p.slice(1), 16)) : f && h ? String.fromCodePoint(parseInt(p.slice(2, -1), 16)) : i.get(p) || p; } s(u, "unescape"); function l(p, f) { let h = [], m = f.trim().split(/\s*,\s*/g), y; for (let b of m) { let g = Number(b); if (!Number.isNaN(g)) h.push(g); else if ((y = b.match(a))) h.push(y[2].replace(o, (v, x, A) => (x ? u(x) : A))); else throw new Error( `Invalid Chalk template style argument: ${b} (in style '${p}')`, ); } return h; } s(l, "parseArguments"); function c(p) { n.lastIndex = 0; let f = [], h; for (; (h = n.exec(p)) !== null; ) { let m = h[1]; if (h[2]) { let y = l(m, h[2]); f.push([m].concat(y)); } else f.push([m]); } return f; } s(c, "parseStyle"); function d(p, f) { let h = {}; for (let y of f) for (let b of y.styles) h[b[0]] = y.inverse ? null : b.slice(1); let m = p; for (let [y, b] of Object.entries(h)) if (Array.isArray(b)) { if (!(y in m)) throw new Error(`Unknown Chalk style: ${y}`); m = b.length > 0 ? m[y](...b) : m[y]; } return m; } (s(d, "buildStyle"), (t.exports = (p, f) => { let h = [], m = [], y = []; if ( (f.replace(r, (b, g, v, x, A, w) => { if (g) y.push(u(g)); else if (x) { let C = y.join(""); ((y = []), m.push(h.length === 0 ? C : d(p, h)(C)), h.push({ inverse: v, styles: c(x) })); } else if (A) { if (h.length === 0) throw new Error("Found extraneous } in Chalk template literal"); (m.push(d(p, h)(y.join(""))), (y = []), h.pop()); } else y.push(w); }), m.push(y.join("")), h.length > 0) ) { let b = `Chalk template literal is missing ${h.length} closing bracket${h.length === 1 ? "" : "s"} (\`}\`)`; throw new Error(b); } return m.join(""); })); }), I1 = N((e, t) => { var r = p5(), { stdout: n, stderr: a } = f5(), { stringReplaceAll: o, stringEncaseCRLFWithFirstIndex: i } = h5(), u = ["ansi", "ansi", "ansi256", "ansi16m"], l = Object.create(null), c = s((C, E = {}) => { if (E.level > 3 || E.level < 0) throw new Error( "The `level` option should be an integer from 0 to 3", ); let _ = n ? n.level : 0; C.level = E.level === void 0 ? _ : E.level; }, "applyOptions"), d = class { constructor(E) { return f(E); } }; s(d, "ChalkClass"); var p = d, f = s((C) => { let E = {}; return ( c(E, C), (E.template = (..._) => A(E.template, ..._)), Object.setPrototypeOf(E, h.prototype), Object.setPrototypeOf(E.template, E), (E.template.constructor = () => { throw new Error( "`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.", ); }), (E.template.Instance = p), E.template ); }, "chalkFactory"); function h(C) { return f(C); } s(h, "Chalk"); for (let [C, E] of Object.entries(r)) l[C] = { get() { let _ = g(this, b(E.open, E.close, this._styler), this._isEmpty); return (Object.defineProperty(this, C, { value: _ }), _); }, }; l.visible = { get() { let C = g(this, this._styler, !0); return (Object.defineProperty(this, "visible", { value: C }), C); }, }; var m = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"]; for (let C of m) l[C] = { get() { let { level: E } = this; return function (..._) { let P = b(r.color[u[E]][C](..._), r.color.close, this._styler); return g(this, P, this._isEmpty); }; }, }; for (let C of m) { let E = "bg" + C[0].toUpperCase() + C.slice(1); l[E] = { get() { let { level: _ } = this; return function (...P) { let D = b(r.bgColor[u[_]][C](...P), r.bgColor.close, this._styler); return g(this, D, this._isEmpty); }; }, }; } var y = Object.defineProperties(() => {}, { ...l, level: { enumerable: !0, get() { return this._generator.level; }, set(C) { this._generator.level = C; }, }, }), b = s((C, E, _) => { let P, D; return ( _ === void 0 ? ((P = C), (D = E)) : ((P = _.openAll + C), (D = E + _.closeAll)), { open: C, close: E, openAll: P, closeAll: D, parent: _ } ); }, "createStyler"), g = s((C, E, _) => { let P = s( (...D) => v(P, D.length === 1 ? "" + D[0] : D.join(" ")), "builder", ); return ( (P.__proto__ = y), (P._generator = C), (P._styler = E), (P._isEmpty = _), P ); }, "createBuilder"), v = s((C, E) => { if (C.level <= 0 || !E) return C._isEmpty ? "" : E; let _ = C._styler; if (_ === void 0) return E; let { openAll: P, closeAll: D } = _; if (E.indexOf("\x1B") !== -1) for (; _ !== void 0; ) ((E = o(E, _.close, _.open)), (_ = _.parent)); let F = E.indexOf(` `); return (F !== -1 && (E = i(E, D, P, F)), P + E + D); }, "applyStyle"), x, A = s((C, ...E) => { let [_] = E; if (!Array.isArray(_)) return E.join(" "); let P = E.slice(1), D = [_.raw[0]]; for (let F = 1; F < _.length; F++) D.push(String(P[F - 1]).replace(/[{}\\]/g, "\\$&"), String(_.raw[F])); return (x === void 0 && (x = m5()), x(C, D.join(""))); }, "chalkTag"); Object.defineProperties(h.prototype, l); var w = h(); ((w.supportsColor = n), (w.stderr = h({ level: a ? a.level : 0 })), (w.stderr.supportsColor = a), (w.Level = { None: 0, Basic: 1, Ansi256: 2, TrueColor: 3, 0: "None", 1: "Basic", 2: "Ansi256", 3: "TrueColor", }), (t.exports = w)); }), y5 = N((e, t) => { function r() { ((this.__data__ = []), (this.size = 0)); } (s(r, "listCacheClear"), (t.exports = r)); }), N1 = N((e, t) => { function r(n, a) { return n === a || (n !== n && a !== a); } (s(r, "eq"), (t.exports = r)); }), ic = N((e, t) => { var r = N1(); function n(a, o) { for (var i = a.length; i--; ) if (r(a[i][0], o)) return i; return -1; } (s(n, "assocIndexOf"), (t.exports = n)); }), g5 = N((e, t) => { var r = ic(), n = Array.prototype, a = n.splice; function o(i) { var u = this.__data__, l = r(u, i); if (l < 0) return !1; var c = u.length - 1; return (l == c ? u.pop() : a.call(u, l, 1), --this.size, !0); } (s(o, "listCacheDelete"), (t.exports = o)); }), b5 = N((e, t) => { var r = ic(); function n(a) { var o = this.__data__, i = r(o, a); return i < 0 ? void 0 : o[i][1]; } (s(n, "listCacheGet"), (t.exports = n)); }), v5 = N((e, t) => { var r = ic(); function n(a) { return r(this.__data__, a) > -1; } (s(n, "listCacheHas"), (t.exports = n)); }), E5 = N((e, t) => { var r = ic(); function n(a, o) { var i = this.__data__, u = r(i, a); return (u < 0 ? (++this.size, i.push([a, o])) : (i[u][1] = o), this); } (s(n, "listCacheSet"), (t.exports = n)); }), sc = N((e, t) => { var r = y5(), n = g5(), a = b5(), o = v5(), i = E5(); function u(l) { var c = -1, d = l == null ? 0 : l.length; for (this.clear(); ++c < d; ) { var p = l[c]; this.set(p[0], p[1]); } } (s(u, "ListCache"), (u.prototype.clear = r), (u.prototype.delete = n), (u.prototype.get = a), (u.prototype.has = o), (u.prototype.set = i), (t.exports = u)); }), _5 = N((e, t) => { var r = sc(); function n() { ((this.__data__ = new r()), (this.size = 0)); } (s(n, "stackClear"), (t.exports = n)); }), C5 = N((e, t) => { function r(n) { var a = this.__data__, o = a.delete(n); return ((this.size = a.size), o); } (s(r, "stackDelete"), (t.exports = r)); }), w5 = N((e, t) => { function r(n) { return this.__data__.get(n); } (s(r, "stackGet"), (t.exports = r)); }), A5 = N((e, t) => { function r(n) { return this.__data__.has(n); } (s(r, "stackHas"), (t.exports = r)); }), j1 = N((e, t) => { var r = typeof global == "object" && global && global.Object === Object && global; t.exports = r; }), In = N((e, t) => { var r = j1(), n = typeof self == "object" && self && self.Object === Object && self, a = r || n || Function("return this")(); t.exports = a; }), $y = N((e, t) => { var r = In(), n = r.Symbol; t.exports = n; }), S5 = N((e, t) => { var r = $y(), n = Object.prototype, a = n.hasOwnProperty, o = n.toString, i = r ? r.toStringTag : void 0; function u(l) { var c = a.call(l, i), d = l[i]; try { l[i] = void 0; var p = !0; } catch {} var f = o.call(l); return (p && (c ? (l[i] = d) : delete l[i]), f); } (s(u, "getRawTag"), (t.exports = u)); }), x5 = N((e, t) => { var r = Object.prototype, n = r.toString; function a(o) { return n.call(o); } (s(a, "objectToString"), (t.exports = a)); }), uc = N((e, t) => { var r = $y(), n = S5(), a = x5(), o = "[object Null]", i = "[object Undefined]", u = r ? r.toStringTag : void 0; function l(c) { return c == null ? c === void 0 ? i : o : u && u in Object(c) ? n(c) : a(c); } (s(l, "baseGetTag"), (t.exports = l)); }), k1 = N((e, t) => { function r(n) { var a = typeof n; return n != null && (a == "object" || a == "function"); } (s(r, "isObject"), (t.exports = r)); }), q1 = N((e, t) => { var r = uc(), n = k1(), a = "[object AsyncFunction]", o = "[object Function]", i = "[object GeneratorFunction]", u = "[object Proxy]"; function l(c) { if (!n(c)) return !1; var d = r(c); return d == o || d == i || d == a || d == u; } (s(l, "isFunction"), (t.exports = l)); }), P5 = N((e, t) => { var r = In(), n = r["__core-js_shared__"]; t.exports = n; }), R5 = N((e, t) => { var r = P5(), n = (function () { var o = /[^.]+$/.exec((r && r.keys && r.keys.IE_PROTO) || ""); return o ? "Symbol(src)_1." + o : ""; })(); function a(o) { return !!n && n in o; } (s(a, "isMasked"), (t.exports = a)); }), M1 = N((e, t) => { var r = Function.prototype, n = r.toString; function a(o) { if (o != null) { try { return n.call(o); } catch {} try { return o + ""; } catch {} } return ""; } (s(a, "toSource"), (t.exports = a)); }), T5 = N((e, t) => { var r = q1(), n = R5(), a = k1(), o = M1(), i = /[\\^$.*+?()[\]{}|]/g, u = /^\[object .+?Constructor\]$/, l = Function.prototype, c = Object.prototype, d = l.toString, p = c.hasOwnProperty, f = RegExp( "^" + d .call(p) .replace(i, "\\$&") .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?", ) + "$", ); function h(m) { if (!a(m) || n(m)) return !1; var y = r(m) ? f : u; return y.test(o(m)); } (s(h, "baseIsNative"), (t.exports = h)); }), O5 = N((e, t) => { function r(n, a) { return n?.[a]; } (s(r, "getValue"), (t.exports = r)); }), Ho = N((e, t) => { var r = T5(), n = O5(); function a(o, i) { var u = n(o, i); return r(u) ? u : void 0; } (s(a, "getNative"), (t.exports = a)); }), Uy = N((e, t) => { var r = Ho(), n = In(), a = r(n, "Map"); t.exports = a; }), lc = N((e, t) => { var r = Ho(), n = r(Object, "create"); t.exports = n; }), D5 = N((e, t) => { var r = lc(); function n() { ((this.__data__ = r ? r(null) : {}), (this.size = 0)); } (s(n, "hashClear"), (t.exports = n)); }), F5 = N((e, t) => { function r(n) { var a = this.has(n) && delete this.__data__[n]; return ((this.size -= a ? 1 : 0), a); } (s(r, "hashDelete"), (t.exports = r)); }), I5 = N((e, t) => { var r = lc(), n = "__lodash_hash_undefined__", a = Object.prototype, o = a.hasOwnProperty; function i(u) { var l = this.__data__; if (r) { var c = l[u]; return c === n ? void 0 : c; } return o.call(l, u) ? l[u] : void 0; } (s(i, "hashGet"), (t.exports = i)); }), N5 = N((e, t) => { var r = lc(), n = Object.prototype, a = n.hasOwnProperty; function o(i) { var u = this.__data__; return r ? u[i] !== void 0 : a.call(u, i); } (s(o, "hashHas"), (t.exports = o)); }), j5 = N((e, t) => { var r = lc(), n = "__lodash_hash_undefined__"; function a(o, i) { var u = this.__data__; return ( (this.size += this.has(o) ? 0 : 1), (u[o] = r && i === void 0 ? n : i), this ); } (s(a, "hashSet"), (t.exports = a)); }), k5 = N((e, t) => { var r = D5(), n = F5(), a = I5(), o = N5(), i = j5(); function u(l) { var c = -1, d = l == null ? 0 : l.length; for (this.clear(); ++c < d; ) { var p = l[c]; this.set(p[0], p[1]); } } (s(u, "Hash"), (u.prototype.clear = r), (u.prototype.delete = n), (u.prototype.get = a), (u.prototype.has = o), (u.prototype.set = i), (t.exports = u)); }), q5 = N((e, t) => { var r = k5(), n = sc(), a = Uy(); function o() { ((this.size = 0), (this.__data__ = { hash: new r(), map: new (a || n)(), string: new r(), })); } (s(o, "mapCacheClear"), (t.exports = o)); }), M5 = N((e, t) => { function r(n) { var a = typeof n; return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? n !== "__proto__" : n === null; } (s(r, "isKeyable"), (t.exports = r)); }), cc = N((e, t) => { var r = M5(); function n(a, o) { var i = a.__data__; return r(o) ? i[typeof o == "string" ? "string" : "hash"] : i.map; } (s(n, "getMapData"), (t.exports = n)); }), B5 = N((e, t) => { var r = cc(); function n(a) { var o = r(this, a).delete(a); return ((this.size -= o ? 1 : 0), o); } (s(n, "mapCacheDelete"), (t.exports = n)); }), L5 = N((e, t) => { var r = cc(); function n(a) { return r(this, a).get(a); } (s(n, "mapCacheGet"), (t.exports = n)); }), $5 = N((e, t) => { var r = cc(); function n(a) { return r(this, a).has(a); } (s(n, "mapCacheHas"), (t.exports = n)); }), U5 = N((e, t) => { var r = cc(); function n(a, o) { var i = r(this, a), u = i.size; return (i.set(a, o), (this.size += i.size == u ? 0 : 1), this); } (s(n, "mapCacheSet"), (t.exports = n)); }), B1 = N((e, t) => { var r = q5(), n = B5(), a = L5(), o = $5(), i = U5(); function u(l) { var c = -1, d = l == null ? 0 : l.length; for (this.clear(); ++c < d; ) { var p = l[c]; this.set(p[0], p[1]); } } (s(u, "MapCache"), (u.prototype.clear = r), (u.prototype.delete = n), (u.prototype.get = a), (u.prototype.has = o), (u.prototype.set = i), (t.exports = u)); }), H5 = N((e, t) => { var r = sc(), n = Uy(), a = B1(), o = 200; function i(u, l) { var c = this.__data__; if (c instanceof r) { var d = c.__data__; if (!n || d.length < o - 1) return (d.push([u, l]), (this.size = ++c.size), this); c = this.__data__ = new a(d); } return (c.set(u, l), (this.size = c.size), this); } (s(i, "stackSet"), (t.exports = i)); }), V5 = N((e, t) => { var r = sc(), n = _5(), a = C5(), o = w5(), i = A5(), u = H5(); function l(c) { var d = (this.__data__ = new r(c)); this.size = d.size; } (s(l, "Stack"), (l.prototype.clear = n), (l.prototype.delete = a), (l.prototype.get = o), (l.prototype.has = i), (l.prototype.set = u), (t.exports = l)); }), z5 = N((e, t) => { var r = "__lodash_hash_undefined__"; function n(a) { return (this.__data__.set(a, r), this); } (s(n, "setCacheAdd"), (t.exports = n)); }), G5 = N((e, t) => { function r(n) { return this.__data__.has(n); } (s(r, "setCacheHas"), (t.exports = r)); }), W5 = N((e, t) => { var r = B1(), n = z5(), a = G5(); function o(i) { var u = -1, l = i == null ? 0 : i.length; for (this.__data__ = new r(); ++u < l; ) this.add(i[u]); } (s(o, "SetCache"), (o.prototype.add = o.prototype.push = n), (o.prototype.has = a), (t.exports = o)); }), J5 = N((e, t) => { function r(n, a) { for (var o = -1, i = n == null ? 0 : n.length; ++o < i; ) if (a(n[o], o, n)) return !0; return !1; } (s(r, "arraySome"), (t.exports = r)); }), X5 = N((e, t) => { function r(n, a) { return n.has(a); } (s(r, "cacheHas"), (t.exports = r)); }), L1 = N((e, t) => { var r = W5(), n = J5(), a = X5(), o = 1, i = 2; function u(l, c, d, p, f, h) { var m = d & o, y = l.length, b = c.length; if (y != b && !(m && b > y)) return !1; var g = h.get(l), v = h.get(c); if (g && v) return g == c && v == l; var x = -1, A = !0, w = d & i ? new r() : void 0; for (h.set(l, c), h.set(c, l); ++x < y; ) { var C = l[x], E = c[x]; if (p) var _ = m ? p(E, C, x, c, l, h) : p(C, E, x, l, c, h); if (_ !== void 0) { if (_) continue; A = !1; break; } if (w) { if ( !n(c, function (P, D) { if (!a(w, D) && (C === P || f(C, P, d, p, h))) return w.push(D); }) ) { A = !1; break; } } else if (!(C === E || f(C, E, d, p, h))) { A = !1; break; } } return (h.delete(l), h.delete(c), A); } (s(u, "equalArrays"), (t.exports = u)); }), K5 = N((e, t) => { var r = In(), n = r.Uint8Array; t.exports = n; }), Y5 = N((e, t) => { function r(n) { var a = -1, o = Array(n.size); return ( n.forEach(function (i, u) { o[++a] = [u, i]; }), o ); } (s(r, "mapToArray"), (t.exports = r)); }), Q5 = N((e, t) => { function r(n) { var a = -1, o = Array(n.size); return ( n.forEach(function (i) { o[++a] = i; }), o ); } (s(r, "setToArray"), (t.exports = r)); }), Z5 = N((e, t) => { var r = $y(), n = K5(), a = N1(), o = L1(), i = Y5(), u = Q5(), l = 1, c = 2, d = "[object Boolean]", p = "[object Date]", f = "[object Error]", h = "[object Map]", m = "[object Number]", y = "[object RegExp]", b = "[object Set]", g = "[object String]", v = "[object Symbol]", x = "[object ArrayBuffer]", A = "[object DataView]", w = r ? r.prototype : void 0, C = w ? w.valueOf : void 0; function E(_, P, D, F, L, q, T) { switch (D) { case A: if (_.byteLength != P.byteLength || _.byteOffset != P.byteOffset) return !1; ((_ = _.buffer), (P = P.buffer)); case x: return !(_.byteLength != P.byteLength || !q(new n(_), new n(P))); case d: case p: case m: return a(+_, +P); case f: return _.name == P.name && _.message == P.message; case y: case g: return _ == P + ""; case h: var k = i; case b: var I = F & l; if ((k || (k = u), _.size != P.size && !I)) return !1; var W = T.get(_); if (W) return W == P; ((F |= c), T.set(_, P)); var Q = o(k(_), k(P), F, L, q, T); return (T.delete(_), Q); case v: if (C) return C.call(_) == C.call(P); } return !1; } (s(E, "equalByTag"), (t.exports = E)); }), e8 = N((e, t) => { function r(n, a) { for (var o = -1, i = a.length, u = n.length; ++o < i; ) n[u + o] = a[o]; return n; } (s(r, "arrayPush"), (t.exports = r)); }), Hy = N((e, t) => { var r = Array.isArray; t.exports = r; }), t8 = N((e, t) => { var r = e8(), n = Hy(); function a(o, i, u) { var l = i(o); return n(o) ? l : r(l, u(o)); } (s(a, "baseGetAllKeys"), (t.exports = a)); }), r8 = N((e, t) => { function r(n, a) { for (var o = -1, i = n == null ? 0 : n.length, u = 0, l = []; ++o < i; ) { var c = n[o]; a(c, o, n) && (l[u++] = c); } return l; } (s(r, "arrayFilter"), (t.exports = r)); }), n8 = N((e, t) => { function r() { return []; } (s(r, "stubArray"), (t.exports = r)); }), a8 = N((e, t) => { var r = r8(), n = n8(), a = Object.prototype, o = a.propertyIsEnumerable, i = Object.getOwnPropertySymbols, u = i ? function (l) { return l == null ? [] : ((l = Object(l)), r(i(l), function (c) { return o.call(l, c); })); } : n; t.exports = u; }), o8 = N((e, t) => { function r(n, a) { for (var o = -1, i = Array(n); ++o < n; ) i[o] = a(o); return i; } (s(r, "baseTimes"), (t.exports = r)); }), dc = N((e, t) => { function r(n) { return n != null && typeof n == "object"; } (s(r, "isObjectLike"), (t.exports = r)); }), i8 = N((e, t) => { var r = uc(), n = dc(), a = "[object Arguments]"; function o(i) { return n(i) && r(i) == a; } (s(o, "baseIsArguments"), (t.exports = o)); }), s8 = N((e, t) => { var r = i8(), n = dc(), a = Object.prototype, o = a.hasOwnProperty, i = a.propertyIsEnumerable, u = r( (function () { return arguments; })(), ) ? r : function (l) { return n(l) && o.call(l, "callee") && !i.call(l, "callee"); }; t.exports = u; }), u8 = N((e, t) => { function r() { return !1; } (s(r, "stubFalse"), (t.exports = r)); }), $1 = N((e, t) => { var r = In(), n = u8(), a = typeof e == "object" && e && !e.nodeType && e, o = a && typeof t == "object" && t && !t.nodeType && t, i = o && o.exports === a, u = i ? r.Buffer : void 0, l = u ? u.isBuffer : void 0, c = l || n; t.exports = c; }), l8 = N((e, t) => { var r = 9007199254740991, n = /^(?:0|[1-9]\d*)$/; function a(o, i) { var u = typeof o; return ( (i = i ?? r), !!i && (u == "number" || (u != "symbol" && n.test(o))) && o > -1 && o % 1 == 0 && o < i ); } (s(a, "isIndex"), (t.exports = a)); }), U1 = N((e, t) => { var r = 9007199254740991; function n(a) { return typeof a == "number" && a > -1 && a % 1 == 0 && a <= r; } (s(n, "isLength"), (t.exports = n)); }), c8 = N((e, t) => { var r = uc(), n = U1(), a = dc(), o = "[object Arguments]", i = "[object Array]", u = "[object Boolean]", l = "[object Date]", c = "[object Error]", d = "[object Function]", p = "[object Map]", f = "[object Number]", h = "[object Object]", m = "[object RegExp]", y = "[object Set]", b = "[object String]", g = "[object WeakMap]", v = "[object ArrayBuffer]", x = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", C = "[object Int8Array]", E = "[object Int16Array]", _ = "[object Int32Array]", P = "[object Uint8Array]", D = "[object Uint8ClampedArray]", F = "[object Uint16Array]", L = "[object Uint32Array]", q = {}; ((q[A] = q[w] = q[C] = q[E] = q[_] = q[P] = q[D] = q[F] = q[L] = !0), (q[o] = q[i] = q[v] = q[u] = q[x] = q[l] = q[c] = q[d] = q[p] = q[f] = q[h] = q[m] = q[y] = q[b] = q[g] = !1)); function T(k) { return a(k) && n(k.length) && !!q[r(k)]; } (s(T, "baseIsTypedArray"), (t.exports = T)); }), d8 = N((e, t) => { function r(n) { return function (a) { return n(a); }; } (s(r, "baseUnary"), (t.exports = r)); }), p8 = N((e, t) => { var r = j1(), n = typeof e == "object" && e && !e.nodeType && e, a = n && typeof t == "object" && t && !t.nodeType && t, o = a && a.exports === n, i = o && r.process, u = (function () { try { var l = a && a.require && a.require("util").types; return l || (i && i.binding && i.binding("util")); } catch {} })(); t.exports = u; }), H1 = N((e, t) => { var r = c8(), n = d8(), a = p8(), o = a && a.isTypedArray, i = o ? n(o) : r; t.exports = i; }), f8 = N((e, t) => { var r = o8(), n = s8(), a = Hy(), o = $1(), i = l8(), u = H1(), l = Object.prototype, c = l.hasOwnProperty; function d(p, f) { var h = a(p), m = !h && n(p), y = !h && !m && o(p), b = !h && !m && !y && u(p), g = h || m || y || b, v = g ? r(p.length, String) : [], x = v.length; for (var A in p) (f || c.call(p, A)) && !( g && (A == "length" || (y && (A == "offset" || A == "parent")) || (b && (A == "buffer" || A == "byteLength" || A == "byteOffset")) || i(A, x)) ) && v.push(A); return v; } (s(d, "arrayLikeKeys"), (t.exports = d)); }), h8 = N((e, t) => { var r = Object.prototype; function n(a) { var o = a && a.constructor, i = (typeof o == "function" && o.prototype) || r; return a === i; } (s(n, "isPrototype"), (t.exports = n)); }), m8 = N((e, t) => { function r(n, a) { return function (o) { return n(a(o)); }; } (s(r, "overArg"), (t.exports = r)); }), y8 = N((e, t) => { var r = m8(), n = r(Object.keys, Object); t.exports = n; }), g8 = N((e, t) => { var r = h8(), n = y8(), a = Object.prototype, o = a.hasOwnProperty; function i(u) { if (!r(u)) return n(u); var l = []; for (var c in Object(u)) o.call(u, c) && c != "constructor" && l.push(c); return l; } (s(i, "baseKeys"), (t.exports = i)); }), b8 = N((e, t) => { var r = q1(), n = U1(); function a(o) { return o != null && n(o.length) && !r(o); } (s(a, "isArrayLike"), (t.exports = a)); }), v8 = N((e, t) => { var r = f8(), n = g8(), a = b8(); function o(i) { return a(i) ? r(i) : n(i); } (s(o, "keys"), (t.exports = o)); }), E8 = N((e, t) => { var r = t8(), n = a8(), a = v8(); function o(i) { return r(i, a, n); } (s(o, "getAllKeys"), (t.exports = o)); }), _8 = N((e, t) => { var r = E8(), n = 1, a = Object.prototype, o = a.hasOwnProperty; function i(u, l, c, d, p, f) { var h = c & n, m = r(u), y = m.length, b = r(l), g = b.length; if (y != g && !h) return !1; for (var v = y; v--; ) { var x = m[v]; if (!(h ? x in l : o.call(l, x))) return !1; } var A = f.get(u), w = f.get(l); if (A && w) return A == l && w == u; var C = !0; (f.set(u, l), f.set(l, u)); for (var E = h; ++v < y; ) { x = m[v]; var _ = u[x], P = l[x]; if (d) var D = h ? d(P, _, x, l, u, f) : d(_, P, x, u, l, f); if (!(D === void 0 ? _ === P || p(_, P, c, d, f) : D)) { C = !1; break; } E || (E = x == "constructor"); } if (C && !E) { var F = u.constructor, L = l.constructor; F != L && "constructor" in u && "constructor" in l && !( typeof F == "function" && F instanceof F && typeof L == "function" && L instanceof L ) && (C = !1); } return (f.delete(u), f.delete(l), C); } (s(i, "equalObjects"), (t.exports = i)); }), C8 = N((e, t) => { var r = Ho(), n = In(), a = r(n, "DataView"); t.exports = a; }), w8 = N((e, t) => { var r = Ho(), n = In(), a = r(n, "Promise"); t.exports = a; }), A8 = N((e, t) => { var r = Ho(), n = In(), a = r(n, "Set"); t.exports = a; }), S8 = N((e, t) => { var r = Ho(), n = In(), a = r(n, "WeakMap"); t.exports = a; }), x8 = N((e, t) => { var r = C8(), n = Uy(), a = w8(), o = A8(), i = S8(), u = uc(), l = M1(), c = "[object Map]", d = "[object Object]", p = "[object Promise]", f = "[object Set]", h = "[object WeakMap]", m = "[object DataView]", y = l(r), b = l(n), g = l(a), v = l(o), x = l(i), A = u; (((r && A(new r(new ArrayBuffer(1))) != m) || (n && A(new n()) != c) || (a && A(a.resolve()) != p) || (o && A(new o()) != f) || (i && A(new i()) != h)) && (A = s(function (w) { var C = u(w), E = C == d ? w.constructor : void 0, _ = E ? l(E) : ""; if (_) switch (_) { case y: return m; case b: return c; case g: return p; case v: return f; case x: return h; } return C; }, "getTag")), (t.exports = A)); }), P8 = N((e, t) => { var r = V5(), n = L1(), a = Z5(), o = _8(), i = x8(), u = Hy(), l = $1(), c = H1(), d = 1, p = "[object Arguments]", f = "[object Array]", h = "[object Object]", m = Object.prototype, y = m.hasOwnProperty; function b(g, v, x, A, w, C) { var E = u(g), _ = u(v), P = E ? f : i(g), D = _ ? f : i(v); ((P = P == p ? h : P), (D = D == p ? h : D)); var F = P == h, L = D == h, q = P == D; if (q && l(g)) { if (!l(v)) return !1; ((E = !0), (F = !1)); } if (q && !F) return ( C || (C = new r()), E || c(g) ? n(g, v, x, A, w, C) : a(g, v, P, x, A, w, C) ); if (!(x & d)) { var T = F && y.call(g, "__wrapped__"), k = L && y.call(v, "__wrapped__"); if (T || k) { var I = T ? g.value() : g, W = k ? v.value() : v; return (C || (C = new r()), w(I, W, x, A, C)); } } return q ? (C || (C = new r()), o(g, v, x, A, w, C)) : !1; } (s(b, "baseIsEqualDeep"), (t.exports = b)); }), R8 = N((e, t) => { var r = P8(), n = dc(); function a(o, i, u, l, c) { return o === i ? !0 : o == null || i == null || (!n(o) && !n(i)) ? o !== o && i !== i : r(o, i, u, l, a, c); } (s(a, "baseIsEqual"), (t.exports = a)); }), V1 = N((e, t) => { var r = R8(); function n(a, o, i) { i = typeof i == "function" ? i : void 0; var u = i ? i(a, o) : void 0; return u === void 0 ? r(a, o, void 0, i) : !!u; } (s(n, "isEqualWith"), (t.exports = n)); }), z1 = N((e, t) => { (function (r, n) { typeof e == "object" ? (t.exports = n(r)) : typeof define == "function" && define.amd ? define([], n.bind(r, r)) : n(r); })(typeof global < "u" ? global : e, function (r) { if (r.CSS && r.CSS.escape) return r.CSS.escape; var n = s(function (a) { if (arguments.length == 0) throw new TypeError("`CSS.escape` requires an argument."); for ( var o = String(a), i = o.length, u = -1, l, c = "", d = o.charCodeAt(0); ++u < i; ) { if (((l = o.charCodeAt(u)), l == 0)) { c += "�"; continue; } if ( (l >= 1 && l <= 31) || l == 127 || (u == 0 && l >= 48 && l <= 57) || (u == 1 && l >= 48 && l <= 57 && d == 45) ) { c += "\\" + l.toString(16) + " "; continue; } if (u == 0 && i == 1 && l == 45) { c += "\\" + o.charAt(u); continue; } if ( l >= 128 || l == 45 || l == 95 || (l >= 48 && l <= 57) || (l >= 65 && l <= 90) || (l >= 97 && l <= 122) ) { c += o.charAt(u); continue; } c += "\\" + o.charAt(u); } return c; }, "cssEscape"); return (r.CSS || (r.CSS = {}), (r.CSS.escape = n), n); }); }), G1 = N((e, t) => { var r = s( (o = 0) => (i) => `\x1B[${38 + o};5;${i}m`, "wrapAnsi256", ), n = s( (o = 0) => (i, u, l) => `\x1B[${38 + o};2;${i};${u};${l}m`, "wrapAnsi16m", ); function a() { let o = new Map(), i = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39], }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49], }, }; ((i.color.gray = i.color.blackBright), (i.bgColor.bgGray = i.bgColor.bgBlackBright), (i.color.grey = i.color.blackBright), (i.bgColor.bgGrey = i.bgColor.bgBlackBright)); for (let [u, l] of Object.entries(i)) { for (let [c, d] of Object.entries(l)) ((i[c] = { open: `\x1B[${d[0]}m`, close: `\x1B[${d[1]}m` }), (l[c] = i[c]), o.set(d[0], d[1])); Object.defineProperty(i, u, { value: l, enumerable: !1 }); } return ( Object.defineProperty(i, "codes", { value: o, enumerable: !1 }), (i.color.close = "\x1B[39m"), (i.bgColor.close = "\x1B[49m"), (i.color.ansi256 = r()), (i.color.ansi16m = n()), (i.bgColor.ansi256 = r(10)), (i.bgColor.ansi16m = n(10)), Object.defineProperties(i, { rgbToAnsi256: { value: s( (u, l, c) => u === l && l === c ? u < 8 ? 16 : u > 248 ? 231 : Math.round(((u - 8) / 247) * 24) + 232 : 16 + 36 * Math.round((u / 255) * 5) + 6 * Math.round((l / 255) * 5) + Math.round((c / 255) * 5), "value", ), enumerable: !1, }, hexToRgb: { value: s((u) => { let l = /(?[a-f\d]{6}|[a-f\d]{3})/i.exec( u.toString(16), ); if (!l) return [0, 0, 0]; let { colorString: c } = l.groups; c.length === 3 && (c = c .split("") .map((p) => p + p) .join("")); let d = Number.parseInt(c, 16); return [(d >> 16) & 255, (d >> 8) & 255, d & 255]; }, "value"), enumerable: !1, }, hexToAnsi256: { value: s((u) => i.rgbToAnsi256(...i.hexToRgb(u)), "value"), enumerable: !1, }, }), i ); } (s(a, "assembleStyles"), Object.defineProperty(t, "exports", { enumerable: !0, get: a })); }), pc = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.printIteratorEntries = r), (e.printIteratorValues = n), (e.printListItems = a), (e.printObjectProperties = o)); var t = s((i, u) => { let l = Object.keys(i).sort(u); return ( Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(i).forEach((c) => { Object.getOwnPropertyDescriptor(i, c).enumerable && l.push(c); }), l ); }, "getKeysOfEnumerableProperties"); function r(i, u, l, c, d, p, f = ": ") { let h = "", m = i.next(); if (!m.done) { h += u.spacingOuter; let y = l + u.indent; for (; !m.done; ) { let b = p(m.value[0], u, y, c, d), g = p(m.value[1], u, y, c, d); ((h += y + b + f + g), (m = i.next()), m.done ? u.min || (h += ",") : (h += "," + u.spacingInner)); } h += u.spacingOuter + l; } return h; } s(r, "printIteratorEntries"); function n(i, u, l, c, d, p) { let f = "", h = i.next(); if (!h.done) { f += u.spacingOuter; let m = l + u.indent; for (; !h.done; ) ((f += m + p(h.value, u, m, c, d)), (h = i.next()), h.done ? u.min || (f += ",") : (f += "," + u.spacingInner)); f += u.spacingOuter + l; } return f; } s(n, "printIteratorValues"); function a(i, u, l, c, d, p) { let f = ""; if (i.length) { f += u.spacingOuter; let h = l + u.indent; for (let m = 0; m < i.length; m++) ((f += h), m in i && (f += p(i[m], u, h, c, d)), m < i.length - 1 ? (f += "," + u.spacingInner) : u.min || (f += ",")); f += u.spacingOuter + l; } return f; } s(a, "printListItems"); function o(i, u, l, c, d, p) { let f = "", h = t(i, u.compareKeys); if (h.length) { f += u.spacingOuter; let m = l + u.indent; for (let y = 0; y < h.length; y++) { let b = h[y], g = p(b, u, m, c, d), v = p(i[b], u, m, c, d); ((f += m + g + ": " + v), y < h.length - 1 ? (f += "," + u.spacingInner) : u.min || (f += ",")); } f += u.spacingOuter + l; } return f; } s(o, "printObjectProperties"); }), T8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.test = e.serialize = e.default = void 0)); var t = pc(), r = (function () { return typeof globalThis < "u" ? globalThis : typeof r < "u" ? r : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(); })(), n = r["jest-symbol-do-not-touch"] || r.Symbol, a = typeof n == "function" && n.for ? n.for("jest.asymmetricMatcher") : 1267621, o = " ", i = s((d, p, f, h, m, y) => { let b = d.toString(); return b === "ArrayContaining" || b === "ArrayNotContaining" ? ++h > p.maxDepth ? "[" + b + "]" : b + o + "[" + (0, t.printListItems)(d.sample, p, f, h, m, y) + "]" : b === "ObjectContaining" || b === "ObjectNotContaining" ? ++h > p.maxDepth ? "[" + b + "]" : b + o + "{" + (0, t.printObjectProperties)(d.sample, p, f, h, m, y) + "}" : b === "StringMatching" || b === "StringNotMatching" || b === "StringContaining" || b === "StringNotContaining" ? b + o + y(d.sample, p, f, h, m) : d.toAsymmetricMatcher(); }, "serialize"); e.serialize = i; var u = s((d) => d && d.$$typeof === a, "test"); e.test = u; var l = { serialize: i, test: u }, c = l; e.default = c; }), O8 = N((e, t) => { t.exports = ({ onlyFirst: r = !1 } = {}) => { let n = [ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))", ].join("|"); return new RegExp(n, r ? void 0 : "g"); }; }), D8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.test = e.serialize = e.default = void 0)); var t = n(O8()), r = n(G1()); function n(c) { return c && c.__esModule ? c : { default: c }; } s(n, "_interopRequireDefault"); var a = s( (c) => c.replace((0, t.default)(), (d) => { switch (d) { case r.default.red.close: case r.default.green.close: case r.default.cyan.close: case r.default.gray.close: case r.default.white.close: case r.default.yellow.close: case r.default.bgRed.close: case r.default.bgGreen.close: case r.default.bgYellow.close: case r.default.inverse.close: case r.default.dim.close: case r.default.bold.close: case r.default.reset.open: case r.default.reset.close: return ""; case r.default.red.open: return ""; case r.default.green.open: return ""; case r.default.cyan.open: return ""; case r.default.gray.open: return ""; case r.default.white.open: return ""; case r.default.yellow.open: return ""; case r.default.bgRed.open: return ""; case r.default.bgGreen.open: return ""; case r.default.bgYellow.open: return ""; case r.default.inverse.open: return ""; case r.default.dim.open: return ""; case r.default.bold.open: return ""; default: return ""; } }), "toHumanReadableAnsi", ), o = s((c) => typeof c == "string" && !!c.match((0, t.default)()), "test"); e.test = o; var i = s((c, d, p, f, h, m) => m(a(c), d, p, f, h), "serialize"); e.serialize = i; var u = { serialize: i, test: o }, l = u; e.default = l; }), F8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.test = e.serialize = e.default = void 0)); var t = pc(), r = " ", n = ["DOMStringMap", "NamedNodeMap"], a = /^(HTML\w*Collection|NodeList)$/, o = s((p) => n.indexOf(p) !== -1 || a.test(p), "testName"), i = s( (p) => p && p.constructor && !!p.constructor.name && o(p.constructor.name), "test", ); e.test = i; var u = s((p) => p.constructor.name === "NamedNodeMap", "isNamedNodeMap"), l = s((p, f, h, m, y, b) => { let g = p.constructor.name; return ++m > f.maxDepth ? "[" + g + "]" : (f.min ? "" : g + r) + (n.indexOf(g) !== -1 ? "{" + (0, t.printObjectProperties)( u(p) ? Array.from(p).reduce( (v, x) => ((v[x.name] = x.value), v), {}, ) : { ...p }, f, h, m, y, b, ) + "}" : "[" + (0, t.printListItems)(Array.from(p), f, h, m, y, b) + "]"); }, "serialize"); e.serialize = l; var c = { serialize: l, test: i }, d = c; e.default = d; }), I8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = t)); function t(r) { return r.replace(//g, ">"); } s(t, "escapeHTML"); }), Vy = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.printText = e.printProps = e.printElementAsLeaf = e.printElement = e.printComment = e.printChildren = void 0)); var t = r(I8()); function r(c) { return c && c.__esModule ? c : { default: c }; } s(r, "_interopRequireDefault"); var n = s((c, d, p, f, h, m, y) => { let b = f + p.indent, g = p.colors; return c .map((v) => { let x = d[v], A = y(x, p, b, h, m); return ( typeof x != "string" && (A.indexOf(` `) !== -1 && (A = p.spacingOuter + b + A + p.spacingOuter + f), (A = "{" + A + "}")), p.spacingInner + f + g.prop.open + v + g.prop.close + "=" + g.value.open + A + g.value.close ); }) .join(""); }, "printProps"); e.printProps = n; var a = s( (c, d, p, f, h, m) => c .map( (y) => d.spacingOuter + p + (typeof y == "string" ? o(y, d) : m(y, d, p, f, h)), ) .join(""), "printChildren", ); e.printChildren = a; var o = s((c, d) => { let p = d.colors.content; return p.open + (0, t.default)(c) + p.close; }, "printText"); e.printText = o; var i = s((c, d) => { let p = d.colors.comment; return p.open + "" + p.close; }, "printComment"); e.printComment = i; var u = s((c, d, p, f, h) => { let m = f.colors.tag; return ( m.open + "<" + c + (d && m.close + d + f.spacingOuter + h + m.open) + (p ? ">" + m.close + p + f.spacingOuter + h + m.open + "" + m.close ); }, "printElement"); e.printElement = u; var l = s((c, d) => { let p = d.colors.tag; return p.open + "<" + c + p.close + " …" + p.open + " />" + p.close; }, "printElementAsLeaf"); e.printElementAsLeaf = l; }), N8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.test = e.serialize = e.default = void 0)); var t = Vy(), r = 1, n = 3, a = 8, o = 11, i = /^((HTML|SVG)\w*)?Element$/, u = s((b) => { try { return typeof b.hasAttribute == "function" && b.hasAttribute("is"); } catch { return !1; } }, "testHasAttribute"), l = s((b) => { let g = b.constructor.name, { nodeType: v, tagName: x } = b, A = (typeof x == "string" && x.includes("-")) || u(b); return ( (v === r && (i.test(g) || A)) || (v === n && g === "Text") || (v === a && g === "Comment") || (v === o && g === "DocumentFragment") ); }, "testNode"), c = s((b) => { var g; return ( (b == null || (g = b.constructor) === null || g === void 0 ? void 0 : g.name) && l(b) ); }, "test"); e.test = c; function d(b) { return b.nodeType === n; } s(d, "nodeIsText"); function p(b) { return b.nodeType === a; } s(p, "nodeIsComment"); function f(b) { return b.nodeType === o; } s(f, "nodeIsFragment"); var h = s((b, g, v, x, A, w) => { if (d(b)) return (0, t.printText)(b.data, g); if (p(b)) return (0, t.printComment)(b.data, g); let C = f(b) ? "DocumentFragment" : b.tagName.toLowerCase(); return ++x > g.maxDepth ? (0, t.printElementAsLeaf)(C, g) : (0, t.printElement)( C, (0, t.printProps)( f(b) ? [] : Array.from(b.attributes) .map((E) => E.name) .sort(), f(b) ? {} : Array.from(b.attributes).reduce( (E, _) => ((E[_.name] = _.value), E), {}, ), g, v + g.indent, x, A, w, ), (0, t.printChildren)( Array.prototype.slice.call(b.childNodes || b.children), g, v + g.indent, x, A, w, ), g, v, ); }, "serialize"); e.serialize = h; var m = { serialize: h, test: c }, y = m; e.default = y; }), j8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.test = e.serialize = e.default = void 0)); var t = pc(), r = "@@__IMMUTABLE_ITERABLE__@@", n = "@@__IMMUTABLE_LIST__@@", a = "@@__IMMUTABLE_KEYED__@@", o = "@@__IMMUTABLE_MAP__@@", i = "@@__IMMUTABLE_ORDERED__@@", u = "@@__IMMUTABLE_RECORD__@@", l = "@@__IMMUTABLE_SEQ__@@", c = "@@__IMMUTABLE_SET__@@", d = "@@__IMMUTABLE_STACK__@@", p = s((_) => "Immutable." + _, "getImmutableName"), f = s((_) => "[" + _ + "]", "printAsLeaf"), h = " ", m = "…", y = s( (_, P, D, F, L, q, T) => ++F > P.maxDepth ? f(p(T)) : p(T) + h + "{" + (0, t.printIteratorEntries)(_.entries(), P, D, F, L, q) + "}", "printImmutableEntries", ); function b(_) { let P = 0; return { next() { if (P < _._keys.length) { let D = _._keys[P++]; return { done: !1, value: [D, _.get(D)] }; } return { done: !0, value: void 0 }; }, }; } s(b, "getRecordEntries"); var g = s((_, P, D, F, L, q) => { let T = p(_._name || "Record"); return ++F > P.maxDepth ? f(T) : T + h + "{" + (0, t.printIteratorEntries)(b(_), P, D, F, L, q) + "}"; }, "printImmutableRecord"), v = s((_, P, D, F, L, q) => { let T = p("Seq"); return ++F > P.maxDepth ? f(T) : _[a] ? T + h + "{" + (_._iter || _._object ? (0, t.printIteratorEntries)(_.entries(), P, D, F, L, q) : m) + "}" : T + h + "[" + (_._iter || _._array || _._collection || _._iterable ? (0, t.printIteratorValues)(_.values(), P, D, F, L, q) : m) + "]"; }, "printImmutableSeq"), x = s( (_, P, D, F, L, q, T) => ++F > P.maxDepth ? f(p(T)) : p(T) + h + "[" + (0, t.printIteratorValues)(_.values(), P, D, F, L, q) + "]", "printImmutableValues", ), A = s( (_, P, D, F, L, q) => _[o] ? y(_, P, D, F, L, q, _[i] ? "OrderedMap" : "Map") : _[n] ? x(_, P, D, F, L, q, "List") : _[c] ? x(_, P, D, F, L, q, _[i] ? "OrderedSet" : "Set") : _[d] ? x(_, P, D, F, L, q, "Stack") : _[l] ? v(_, P, D, F, L, q) : g(_, P, D, F, L, q), "serialize", ); e.serialize = A; var w = s((_) => _ && (_[r] === !0 || _[u] === !0), "test"); e.test = w; var C = { serialize: A, test: w }, E = C; e.default = E; }), k8 = N((e) => { var t = 60103, r = 60106, n = 60107, a = 60108, o = 60114, i = 60109, u = 60110, l = 60112, c = 60113, d = 60120, p = 60115, f = 60116, h = 60121, m = 60122, y = 60117, b = 60129, g = 60131; typeof Symbol == "function" && Symbol.for && ((v = Symbol.for), (t = v("react.element")), (r = v("react.portal")), (n = v("react.fragment")), (a = v("react.strict_mode")), (o = v("react.profiler")), (i = v("react.provider")), (u = v("react.context")), (l = v("react.forward_ref")), (c = v("react.suspense")), (d = v("react.suspense_list")), (p = v("react.memo")), (f = v("react.lazy")), (h = v("react.block")), (m = v("react.server.block")), (y = v("react.fundamental")), (b = v("react.debug_trace_mode")), (g = v("react.legacy_hidden"))); var v; function x(T) { if (typeof T == "object" && T !== null) { var k = T.$$typeof; switch (k) { case t: switch (((T = T.type), T)) { case n: case o: case a: case c: case d: return T; default: switch (((T = T && T.$$typeof), T)) { case u: case l: case f: case p: case i: return T; default: return k; } } case r: return k; } } } s(x, "y"); var A = i, w = t, C = l, E = n, _ = f, P = p, D = r, F = o, L = a, q = c; ((e.ContextConsumer = u), (e.ContextProvider = A), (e.Element = w), (e.ForwardRef = C), (e.Fragment = E), (e.Lazy = _), (e.Memo = P), (e.Portal = D), (e.Profiler = F), (e.StrictMode = L), (e.Suspense = q), (e.isAsyncMode = function () { return !1; }), (e.isConcurrentMode = function () { return !1; }), (e.isContextConsumer = function (T) { return x(T) === u; }), (e.isContextProvider = function (T) { return x(T) === i; }), (e.isElement = function (T) { return typeof T == "object" && T !== null && T.$$typeof === t; }), (e.isForwardRef = function (T) { return x(T) === l; }), (e.isFragment = function (T) { return x(T) === n; }), (e.isLazy = function (T) { return x(T) === f; }), (e.isMemo = function (T) { return x(T) === p; }), (e.isPortal = function (T) { return x(T) === r; }), (e.isProfiler = function (T) { return x(T) === o; }), (e.isStrictMode = function (T) { return x(T) === a; }), (e.isSuspense = function (T) { return x(T) === c; }), (e.isValidElementType = function (T) { return ( typeof T == "string" || typeof T == "function" || T === n || T === o || T === b || T === a || T === c || T === d || T === g || (typeof T == "object" && T !== null && (T.$$typeof === f || T.$$typeof === p || T.$$typeof === i || T.$$typeof === u || T.$$typeof === l || T.$$typeof === y || T.$$typeof === h || T[0] === m)) ); }), (e.typeOf = x)); }), q8 = N((e, t) => { t.exports = k8(); }), M8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.test = e.serialize = e.default = void 0)); var t = a(q8()), r = Vy(); function n(f) { if (typeof WeakMap != "function") return null; var h = new WeakMap(), m = new WeakMap(); return (n = s(function (y) { return y ? m : h; }, "_getRequireWildcardCache"))(f); } s(n, "_getRequireWildcardCache"); function a(f, h) { if (!h && f && f.__esModule) return f; if (f === null || (typeof f != "object" && typeof f != "function")) return { default: f }; var m = n(h); if (m && m.has(f)) return m.get(f); var y = {}, b = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var g in f) if (g !== "default" && Object.prototype.hasOwnProperty.call(f, g)) { var v = b ? Object.getOwnPropertyDescriptor(f, g) : null; v && (v.get || v.set) ? Object.defineProperty(y, g, v) : (y[g] = f[g]); } return ((y.default = f), m && m.set(f, y), y); } s(a, "_interopRequireWildcard"); var o = s( (f, h = []) => ( Array.isArray(f) ? f.forEach((m) => { o(m, h); }) : f != null && f !== !1 && h.push(f), h ), "getChildren", ), i = s((f) => { let h = f.type; if (typeof h == "string") return h; if (typeof h == "function") return h.displayName || h.name || "Unknown"; if (t.isFragment(f)) return "React.Fragment"; if (t.isSuspense(f)) return "React.Suspense"; if (typeof h == "object" && h !== null) { if (t.isContextProvider(f)) return "Context.Provider"; if (t.isContextConsumer(f)) return "Context.Consumer"; if (t.isForwardRef(f)) { if (h.displayName) return h.displayName; let m = h.render.displayName || h.render.name || ""; return m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"; } if (t.isMemo(f)) { let m = h.displayName || h.type.displayName || h.type.name || ""; return m !== "" ? "Memo(" + m + ")" : "Memo"; } } return "UNDEFINED"; }, "getType"), u = s((f) => { let { props: h } = f; return Object.keys(h) .filter((m) => m !== "children" && h[m] !== void 0) .sort(); }, "getPropKeys"), l = s( (f, h, m, y, b, g) => ++y > h.maxDepth ? (0, r.printElementAsLeaf)(i(f), h) : (0, r.printElement)( i(f), (0, r.printProps)(u(f), f.props, h, m + h.indent, y, b, g), (0, r.printChildren)( o(f.props.children), h, m + h.indent, y, b, g, ), h, m, ), "serialize", ); e.serialize = l; var c = s((f) => f != null && t.isElement(f), "test"); e.test = c; var d = { serialize: l, test: c }, p = d; e.default = p; }), B8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.test = e.serialize = e.default = void 0)); var t = Vy(), r = (function () { return typeof globalThis < "u" ? globalThis : typeof r < "u" ? r : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(); })(), n = r["jest-symbol-do-not-touch"] || r.Symbol, a = typeof n == "function" && n.for ? n.for("react.test.json") : 245830487, o = s((d) => { let { props: p } = d; return p ? Object.keys(p) .filter((f) => p[f] !== void 0) .sort() : []; }, "getPropKeys"), i = s( (d, p, f, h, m, y) => ++h > p.maxDepth ? (0, t.printElementAsLeaf)(d.type, p) : (0, t.printElement)( d.type, d.props ? (0, t.printProps)(o(d), d.props, p, f + p.indent, h, m, y) : "", d.children ? (0, t.printChildren)(d.children, p, f + p.indent, h, m, y) : "", p, f, ), "serialize", ); e.serialize = i; var u = s((d) => d && d.$$typeof === a, "test"); e.test = u; var l = { serialize: i, test: u }, c = l; e.default = c; }), L8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = e.DEFAULT_OPTIONS = void 0), (e.format = be), (e.plugins = void 0)); var t = d(G1()), r = pc(), n = d(T8()), a = d(D8()), o = d(F8()), i = d(N8()), u = d(j8()), l = d(M8()), c = d(B8()); function d(z) { return z && z.__esModule ? z : { default: z }; } s(d, "_interopRequireDefault"); var p = Object.prototype.toString, f = Date.prototype.toISOString, h = Error.prototype.toString, m = RegExp.prototype.toString, y = s( (z) => (typeof z.constructor == "function" && z.constructor.name) || "Object", "getConstructorName", ), b = s((z) => typeof window < "u" && z === window, "isWindow"), g = /^Symbol\((.*)\)(.*)$/, v = /\n/gi, x = class extends Error { constructor(ne, ue) { (super(ne), (this.stack = ue), (this.name = this.constructor.name)); } }; s(x, "PrettyFormatPluginError"); var A = x; function w(z) { return ( z === "[object Array]" || z === "[object ArrayBuffer]" || z === "[object DataView]" || z === "[object Float32Array]" || z === "[object Float64Array]" || z === "[object Int8Array]" || z === "[object Int16Array]" || z === "[object Int32Array]" || z === "[object Uint8Array]" || z === "[object Uint8ClampedArray]" || z === "[object Uint16Array]" || z === "[object Uint32Array]" ); } s(w, "isToStringedArrayType"); function C(z) { return Object.is(z, -0) ? "-0" : String(z); } s(C, "printNumber"); function E(z) { return `${z}n`; } s(E, "printBigInt"); function _(z, ne) { return ne ? "[Function " + (z.name || "anonymous") + "]" : "[Function]"; } s(_, "printFunction"); function P(z) { return String(z).replace(g, "Symbol($1)"); } s(P, "printSymbol"); function D(z) { return "[" + h.call(z) + "]"; } s(D, "printError"); function F(z, ne, ue, te) { if (z === !0 || z === !1) return "" + z; if (z === void 0) return "undefined"; if (z === null) return "null"; let ae = typeof z; if (ae === "number") return C(z); if (ae === "bigint") return E(z); if (ae === "string") return te ? '"' + z.replace(/"|\\/g, "\\$&") + '"' : '"' + z + '"'; if (ae === "function") return _(z, ne); if (ae === "symbol") return P(z); let ee = p.call(z); return ee === "[object WeakMap]" ? "WeakMap {}" : ee === "[object WeakSet]" ? "WeakSet {}" : ee === "[object Function]" || ee === "[object GeneratorFunction]" ? _(z, ne) : ee === "[object Symbol]" ? P(z) : ee === "[object Date]" ? isNaN(+z) ? "Date { NaN }" : f.call(z) : ee === "[object Error]" ? D(z) : ee === "[object RegExp]" ? ue ? m.call(z).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : m.call(z) : z instanceof Error ? D(z) : null; } s(F, "printBasicValue"); function L(z, ne, ue, te, ae, ee) { if (ae.indexOf(z) !== -1) return "[Circular]"; ((ae = ae.slice()), ae.push(z)); let fe = ++te > ne.maxDepth, we = ne.min; if ( ne.callToJSON && !fe && z.toJSON && typeof z.toJSON == "function" && !ee ) return I(z.toJSON(), ne, ue, te, ae, !0); let Pe = p.call(z); return Pe === "[object Arguments]" ? fe ? "[Arguments]" : (we ? "" : "Arguments ") + "[" + (0, r.printListItems)(z, ne, ue, te, ae, I) + "]" : w(Pe) ? fe ? "[" + z.constructor.name + "]" : (we || (!ne.printBasicPrototype && z.constructor.name === "Array") ? "" : z.constructor.name + " ") + "[" + (0, r.printListItems)(z, ne, ue, te, ae, I) + "]" : Pe === "[object Map]" ? fe ? "[Map]" : "Map {" + (0, r.printIteratorEntries)( z.entries(), ne, ue, te, ae, I, " => ", ) + "}" : Pe === "[object Set]" ? fe ? "[Set]" : "Set {" + (0, r.printIteratorValues)(z.values(), ne, ue, te, ae, I) + "}" : fe || b(z) ? "[" + y(z) + "]" : (we || (!ne.printBasicPrototype && y(z) === "Object") ? "" : y(z) + " ") + "{" + (0, r.printObjectProperties)(z, ne, ue, te, ae, I) + "}"; } s(L, "printComplexValue"); function q(z) { return z.serialize != null; } s(q, "isNewPlugin"); function T(z, ne, ue, te, ae, ee) { let fe; try { fe = q(z) ? z.serialize(ne, ue, te, ae, ee, I) : z.print( ne, (we) => I(we, ue, te, ae, ee), (we) => { let Pe = te + ue.indent; return ( Pe + we.replace( v, ` ` + Pe, ) ); }, { edgeSpacing: ue.spacingOuter, min: ue.min, spacing: ue.spacingInner, }, ue.colors, ); } catch (we) { throw new A(we.message, we.stack); } if (typeof fe != "string") throw new Error( `pretty-format: Plugin must return type "string" but instead returned "${typeof fe}".`, ); return fe; } s(T, "printPlugin"); function k(z, ne) { for (let ue = 0; ue < z.length; ue++) try { if (z[ue].test(ne)) return z[ue]; } catch (te) { throw new A(te.message, te.stack); } return null; } s(k, "findPlugin"); function I(z, ne, ue, te, ae, ee) { let fe = k(ne.plugins, z); if (fe !== null) return T(fe, z, ne, ue, te, ae); let we = F(z, ne.printFunctionName, ne.escapeRegex, ne.escapeString); return we !== null ? we : L(z, ne, ue, te, ae, ee); } s(I, "printer"); var W = { comment: "gray", content: "reset", prop: "yellow", tag: "cyan", value: "green", }, Q = Object.keys(W), se = { callToJSON: !0, compareKeys: void 0, escapeRegex: !1, escapeString: !0, highlight: !1, indent: 2, maxDepth: 1 / 0, min: !1, plugins: [], printBasicPrototype: !0, printFunctionName: !0, theme: W, }; e.DEFAULT_OPTIONS = se; function H(z) { if ( (Object.keys(z).forEach((ne) => { if (!se.hasOwnProperty(ne)) throw new Error(`pretty-format: Unknown option "${ne}".`); }), z.min && z.indent !== void 0 && z.indent !== 0) ) throw new Error( 'pretty-format: Options "min" and "indent" cannot be used together.', ); if (z.theme !== void 0) { if (z.theme === null) throw new Error('pretty-format: Option "theme" must not be null.'); if (typeof z.theme != "object") throw new Error( `pretty-format: Option "theme" must be of type "object" but instead received "${typeof z.theme}".`, ); } } s(H, "validateOptions"); var K = s( (z) => Q.reduce((ne, ue) => { let te = z.theme && z.theme[ue] !== void 0 ? z.theme[ue] : W[ue], ae = te && t.default[te]; if (ae && typeof ae.close == "string" && typeof ae.open == "string") ne[ue] = ae; else throw new Error( `pretty-format: Option "theme" has a key "${ue}" whose value "${te}" is undefined in ansi-styles.`, ); return ne; }, Object.create(null)), "getColorsHighlight", ), V = s( () => Q.reduce( (z, ne) => ((z[ne] = { close: "", open: "" }), z), Object.create(null), ), "getColorsEmpty", ), Z = s( (z) => z && z.printFunctionName !== void 0 ? z.printFunctionName : se.printFunctionName, "getPrintFunctionName", ), re = s( (z) => (z && z.escapeRegex !== void 0 ? z.escapeRegex : se.escapeRegex), "getEscapeRegex", ), he = s( (z) => z && z.escapeString !== void 0 ? z.escapeString : se.escapeString, "getEscapeString", ), oe = s((z) => { var ne; return { callToJSON: z && z.callToJSON !== void 0 ? z.callToJSON : se.callToJSON, colors: z && z.highlight ? K(z) : V(), compareKeys: z && typeof z.compareKeys == "function" ? z.compareKeys : se.compareKeys, escapeRegex: re(z), escapeString: he(z), indent: z && z.min ? "" : ge(z && z.indent !== void 0 ? z.indent : se.indent), maxDepth: z && z.maxDepth !== void 0 ? z.maxDepth : se.maxDepth, min: z && z.min !== void 0 ? z.min : se.min, plugins: z && z.plugins !== void 0 ? z.plugins : se.plugins, printBasicPrototype: (ne = z?.printBasicPrototype) !== null && ne !== void 0 ? ne : !0, printFunctionName: Z(z), spacingInner: z && z.min ? " " : ` `, spacingOuter: z && z.min ? "" : ` `, }; }, "getConfig"); function ge(z) { return new Array(z + 1).join(" "); } s(ge, "createIndent"); function be(z, ne) { if (ne && (H(ne), ne.plugins)) { let te = k(ne.plugins, z); if (te !== null) return T(te, z, oe(ne), "", 0, []); } let ue = F(z, Z(ne), re(ne), he(ne)); return ue !== null ? ue : L(z, oe(ne), "", 0, []); } s(be, "format"); var rt = { AsymmetricMatcher: n.default, ConvertAnsi: a.default, DOMCollection: o.default, DOMElement: i.default, Immutable: u.default, ReactElement: l.default, ReactTestComponent: c.default, }; e.plugins = rt; var Ke = be; e.default = Ke; }), $8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); function t() { var n = this, a = 0, o = { "@@iterator": s(function () { return o; }, "iterator"), next: s(function () { if (a < n.length) { var i = n[a]; return ((a = a + 1), { done: !1, value: i }); } else return { done: !0 }; }, "next"), }; return o; } s(t, "iteratorProxy"); var r = t; e.default = r; }), ms = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = a)); var t = r($8()); function r(o) { return o && o.__esModule ? o : { default: o }; } s(r, "_interopRequireDefault"); function n(o) { "@babel/helpers - typeof"; return ( (n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function (i) { return typeof i; } : function (i) { return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; }), n(o) ); } s(n, "_typeof"); function a(o, i) { return ( typeof Symbol == "function" && n(Symbol.iterator) === "symbol" && Object.defineProperty(o, Symbol.iterator, { value: t.default.bind(i), }), o ); } s(a, "iterationDecorator"); }), U8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = r(ms()); function r(h) { return h && h.__esModule ? h : { default: h }; } s(r, "_interopRequireDefault"); function n(h, m) { return i(h) || o(h, m) || l(h, m) || a(); } s(n, "_slicedToArray"); function a() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } s(a, "_nonIterableRest"); function o(h, m) { var y = h == null ? null : (typeof Symbol < "u" && h[Symbol.iterator]) || h["@@iterator"]; if (y != null) { var b = [], g = !0, v = !1, x, A; try { for ( y = y.call(h); !(g = (x = y.next()).done) && (b.push(x.value), !(m && b.length === m)); g = !0 ); } catch (w) { ((v = !0), (A = w)); } finally { try { !g && y.return != null && y.return(); } finally { if (v) throw A; } } return b; } } s(o, "_iterableToArrayLimit"); function i(h) { if (Array.isArray(h)) return h; } s(i, "_arrayWithHoles"); function u(h, m) { var y = (typeof Symbol < "u" && h[Symbol.iterator]) || h["@@iterator"]; if (!y) { if ( Array.isArray(h) || (y = l(h)) || (m && h && typeof h.length == "number") ) { y && (h = y); var b = 0, g = s(function () {}, "F"); return { s: g, n: s(function () { return b >= h.length ? { done: !0 } : { done: !1, value: h[b++] }; }, "n"), e: s(function (w) { throw w; }, "e"), f: g, }; } 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 v = !0, x = !1, A; return { s: s(function () { y = y.call(h); }, "s"), n: s(function () { var w = y.next(); return ((v = w.done), w); }, "n"), e: s(function (w) { ((x = !0), (A = w)); }, "e"), f: s(function () { try { !v && y.return != null && y.return(); } finally { if (x) throw A; } }, "f"), }; } s(u, "_createForOfIteratorHelper"); function l(h, m) { if (h) { if (typeof h == "string") return c(h, m); var y = Object.prototype.toString.call(h).slice(8, -1); if ( (y === "Object" && h.constructor && (y = h.constructor.name), y === "Map" || y === "Set") ) return Array.from(h); if ( y === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y) ) return c(h, m); } } s(l, "_unsupportedIterableToArray"); function c(h, m) { (m == null || m > h.length) && (m = h.length); for (var y = 0, b = new Array(m); y < m; y++) b[y] = h[y]; return b; } s(c, "_arrayLikeToArray"); var d = [ ["aria-activedescendant", { type: "id" }], ["aria-atomic", { type: "boolean" }], [ "aria-autocomplete", { type: "token", values: ["inline", "list", "both", "none"] }, ], ["aria-braillelabel", { type: "string" }], ["aria-brailleroledescription", { type: "string" }], ["aria-busy", { type: "boolean" }], ["aria-checked", { type: "tristate" }], ["aria-colcount", { type: "integer" }], ["aria-colindex", { type: "integer" }], ["aria-colspan", { type: "integer" }], ["aria-controls", { type: "idlist" }], [ "aria-current", { type: "token", values: ["page", "step", "location", "date", "time", !0, !1], }, ], ["aria-describedby", { type: "idlist" }], ["aria-description", { type: "string" }], ["aria-details", { type: "id" }], ["aria-disabled", { type: "boolean" }], [ "aria-dropeffect", { type: "tokenlist", values: ["copy", "execute", "link", "move", "none", "popup"], }, ], ["aria-errormessage", { type: "id" }], ["aria-expanded", { type: "boolean", allowundefined: !0 }], ["aria-flowto", { type: "idlist" }], ["aria-grabbed", { type: "boolean", allowundefined: !0 }], [ "aria-haspopup", { type: "token", values: [!1, !0, "menu", "listbox", "tree", "grid", "dialog"], }, ], ["aria-hidden", { type: "boolean", allowundefined: !0 }], [ "aria-invalid", { type: "token", values: ["grammar", !1, "spelling", !0] }, ], ["aria-keyshortcuts", { type: "string" }], ["aria-label", { type: "string" }], ["aria-labelledby", { type: "idlist" }], ["aria-level", { type: "integer" }], [ "aria-live", { type: "token", values: ["assertive", "off", "polite"] }, ], ["aria-modal", { type: "boolean" }], ["aria-multiline", { type: "boolean" }], ["aria-multiselectable", { type: "boolean" }], [ "aria-orientation", { type: "token", values: ["vertical", "undefined", "horizontal"] }, ], ["aria-owns", { type: "idlist" }], ["aria-placeholder", { type: "string" }], ["aria-posinset", { type: "integer" }], ["aria-pressed", { type: "tristate" }], ["aria-readonly", { type: "boolean" }], [ "aria-relevant", { type: "tokenlist", values: ["additions", "all", "removals", "text"], }, ], ["aria-required", { type: "boolean" }], ["aria-roledescription", { type: "string" }], ["aria-rowcount", { type: "integer" }], ["aria-rowindex", { type: "integer" }], ["aria-rowspan", { type: "integer" }], ["aria-selected", { type: "boolean", allowundefined: !0 }], ["aria-setsize", { type: "integer" }], [ "aria-sort", { type: "token", values: ["ascending", "descending", "none", "other"], }, ], ["aria-valuemax", { type: "number" }], ["aria-valuemin", { type: "number" }], ["aria-valuenow", { type: "number" }], ["aria-valuetext", { type: "string" }], ], p = { entries: s(function () { return d; }, "entries"), forEach: s(function (h) { var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, y = u(d), b; try { for (y.s(); !(b = y.n()).done; ) { var g = n(b.value, 2), v = g[0], x = g[1]; h.call(m, x, v, d); } } catch (A) { y.e(A); } finally { y.f(); } }, "forEach"), get: s(function (h) { var m = d.find(function (y) { return y[0] === h; }); return m && m[1]; }, "get"), has: s(function (h) { return !!p.get(h); }, "has"), keys: s(function () { return d.map(function (h) { var m = n(h, 1), y = m[0]; return y; }); }, "keys"), values: s(function () { return d.map(function (h) { var m = n(h, 2), y = m[1]; return y; }); }, "values"), }, f = (0, t.default)(p, p.entries()); e.default = f; }), H8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = r(ms()); function r(h) { return h && h.__esModule ? h : { default: h }; } s(r, "_interopRequireDefault"); function n(h, m) { return i(h) || o(h, m) || l(h, m) || a(); } s(n, "_slicedToArray"); function a() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } s(a, "_nonIterableRest"); function o(h, m) { var y = h == null ? null : (typeof Symbol < "u" && h[Symbol.iterator]) || h["@@iterator"]; if (y != null) { var b = [], g = !0, v = !1, x, A; try { for ( y = y.call(h); !(g = (x = y.next()).done) && (b.push(x.value), !(m && b.length === m)); g = !0 ); } catch (w) { ((v = !0), (A = w)); } finally { try { !g && y.return != null && y.return(); } finally { if (v) throw A; } } return b; } } s(o, "_iterableToArrayLimit"); function i(h) { if (Array.isArray(h)) return h; } s(i, "_arrayWithHoles"); function u(h, m) { var y = (typeof Symbol < "u" && h[Symbol.iterator]) || h["@@iterator"]; if (!y) { if ( Array.isArray(h) || (y = l(h)) || (m && h && typeof h.length == "number") ) { y && (h = y); var b = 0, g = s(function () {}, "F"); return { s: g, n: s(function () { return b >= h.length ? { done: !0 } : { done: !1, value: h[b++] }; }, "n"), e: s(function (w) { throw w; }, "e"), f: g, }; } 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 v = !0, x = !1, A; return { s: s(function () { y = y.call(h); }, "s"), n: s(function () { var w = y.next(); return ((v = w.done), w); }, "n"), e: s(function (w) { ((x = !0), (A = w)); }, "e"), f: s(function () { try { !v && y.return != null && y.return(); } finally { if (x) throw A; } }, "f"), }; } s(u, "_createForOfIteratorHelper"); function l(h, m) { if (h) { if (typeof h == "string") return c(h, m); var y = Object.prototype.toString.call(h).slice(8, -1); if ( (y === "Object" && h.constructor && (y = h.constructor.name), y === "Map" || y === "Set") ) return Array.from(h); if ( y === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y) ) return c(h, m); } } s(l, "_unsupportedIterableToArray"); function c(h, m) { (m == null || m > h.length) && (m = h.length); for (var y = 0, b = new Array(m); y < m; y++) b[y] = h[y]; return b; } s(c, "_arrayLikeToArray"); var d = [ ["a", { reserved: !1 }], ["abbr", { reserved: !1 }], ["acronym", { reserved: !1 }], ["address", { reserved: !1 }], ["applet", { reserved: !1 }], ["area", { reserved: !1 }], ["article", { reserved: !1 }], ["aside", { reserved: !1 }], ["audio", { reserved: !1 }], ["b", { reserved: !1 }], ["base", { reserved: !0 }], ["bdi", { reserved: !1 }], ["bdo", { reserved: !1 }], ["big", { reserved: !1 }], ["blink", { reserved: !1 }], ["blockquote", { reserved: !1 }], ["body", { reserved: !1 }], ["br", { reserved: !1 }], ["button", { reserved: !1 }], ["canvas", { reserved: !1 }], ["caption", { reserved: !1 }], ["center", { reserved: !1 }], ["cite", { reserved: !1 }], ["code", { reserved: !1 }], ["col", { reserved: !0 }], ["colgroup", { reserved: !0 }], ["content", { reserved: !1 }], ["data", { reserved: !1 }], ["datalist", { reserved: !1 }], ["dd", { reserved: !1 }], ["del", { reserved: !1 }], ["details", { reserved: !1 }], ["dfn", { reserved: !1 }], ["dialog", { reserved: !1 }], ["dir", { reserved: !1 }], ["div", { reserved: !1 }], ["dl", { reserved: !1 }], ["dt", { reserved: !1 }], ["em", { reserved: !1 }], ["embed", { reserved: !1 }], ["fieldset", { reserved: !1 }], ["figcaption", { reserved: !1 }], ["figure", { reserved: !1 }], ["font", { reserved: !1 }], ["footer", { reserved: !1 }], ["form", { reserved: !1 }], ["frame", { reserved: !1 }], ["frameset", { reserved: !1 }], ["h1", { reserved: !1 }], ["h2", { reserved: !1 }], ["h3", { reserved: !1 }], ["h4", { reserved: !1 }], ["h5", { reserved: !1 }], ["h6", { reserved: !1 }], ["head", { reserved: !0 }], ["header", { reserved: !1 }], ["hgroup", { reserved: !1 }], ["hr", { reserved: !1 }], ["html", { reserved: !0 }], ["i", { reserved: !1 }], ["iframe", { reserved: !1 }], ["img", { reserved: !1 }], ["input", { reserved: !1 }], ["ins", { reserved: !1 }], ["kbd", { reserved: !1 }], ["keygen", { reserved: !1 }], ["label", { reserved: !1 }], ["legend", { reserved: !1 }], ["li", { reserved: !1 }], ["link", { reserved: !0 }], ["main", { reserved: !1 }], ["map", { reserved: !1 }], ["mark", { reserved: !1 }], ["marquee", { reserved: !1 }], ["menu", { reserved: !1 }], ["menuitem", { reserved: !1 }], ["meta", { reserved: !0 }], ["meter", { reserved: !1 }], ["nav", { reserved: !1 }], ["noembed", { reserved: !0 }], ["noscript", { reserved: !0 }], ["object", { reserved: !1 }], ["ol", { reserved: !1 }], ["optgroup", { reserved: !1 }], ["option", { reserved: !1 }], ["output", { reserved: !1 }], ["p", { reserved: !1 }], ["param", { reserved: !0 }], ["picture", { reserved: !0 }], ["pre", { reserved: !1 }], ["progress", { reserved: !1 }], ["q", { reserved: !1 }], ["rp", { reserved: !1 }], ["rt", { reserved: !1 }], ["rtc", { reserved: !1 }], ["ruby", { reserved: !1 }], ["s", { reserved: !1 }], ["samp", { reserved: !1 }], ["script", { reserved: !0 }], ["section", { reserved: !1 }], ["select", { reserved: !1 }], ["small", { reserved: !1 }], ["source", { reserved: !0 }], ["spacer", { reserved: !1 }], ["span", { reserved: !1 }], ["strike", { reserved: !1 }], ["strong", { reserved: !1 }], ["style", { reserved: !0 }], ["sub", { reserved: !1 }], ["summary", { reserved: !1 }], ["sup", { reserved: !1 }], ["table", { reserved: !1 }], ["tbody", { reserved: !1 }], ["td", { reserved: !1 }], ["textarea", { reserved: !1 }], ["tfoot", { reserved: !1 }], ["th", { reserved: !1 }], ["thead", { reserved: !1 }], ["time", { reserved: !1 }], ["title", { reserved: !0 }], ["tr", { reserved: !1 }], ["track", { reserved: !0 }], ["tt", { reserved: !1 }], ["u", { reserved: !1 }], ["ul", { reserved: !1 }], ["var", { reserved: !1 }], ["video", { reserved: !1 }], ["wbr", { reserved: !1 }], ["xmp", { reserved: !1 }], ], p = { entries: s(function () { return d; }, "entries"), forEach: s(function (h) { var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, y = u(d), b; try { for (y.s(); !(b = y.n()).done; ) { var g = n(b.value, 2), v = g[0], x = g[1]; h.call(m, x, v, d); } } catch (A) { y.e(A); } finally { y.f(); } }, "forEach"), get: s(function (h) { var m = d.find(function (y) { return y[0] === h; }); return m && m[1]; }, "get"), has: s(function (h) { return !!p.get(h); }, "has"), keys: s(function () { return d.map(function (h) { var m = n(h, 1), y = m[0]; return y; }); }, "keys"), values: s(function () { return d.map(function (h) { var m = n(h, 2), y = m[1]; return y; }); }, "values"), }, f = (0, t.default)(p, p.entries()); e.default = f; }), V8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget"]], }, r = t; e.default = r; }), z8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-activedescendant": null, "aria-disabled": null }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget"]], }, r = t; e.default = r; }), G8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null }, relatedConcepts: [{ concept: { name: "input" }, module: "XForms" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget"]], }, r = t; e.default = r; }), W8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), J8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-valuemax": null, "aria-valuemin": null, "aria-valuenow": null, }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }, r = t; e.default = r; }), X8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: [], prohibitedProps: [], props: { "aria-atomic": null, "aria-busy": null, "aria-controls": null, "aria-current": null, "aria-describedby": null, "aria-details": null, "aria-dropeffect": null, "aria-flowto": null, "aria-grabbed": null, "aria-hidden": null, "aria-keyshortcuts": null, "aria-label": null, "aria-labelledby": null, "aria-live": null, "aria-owns": null, "aria-relevant": null, "aria-roledescription": null, }, relatedConcepts: [ { concept: { name: "role" }, module: "XHTML" }, { concept: { name: "type" }, module: "Dublin Core" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [], }, r = t; e.default = r; }), K8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: [], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "frontmatter" }, module: "DTB" }, { concept: { name: "level" }, module: "DTB" }, { concept: { name: "level" }, module: "SMIL" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }, r = t; e.default = r; }), Y8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }, r = t; e.default = r; }), Q8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-orientation": null }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "widget", "composite"], ["roletype", "structure", "section", "group"], ], }, r = t; e.default = r; }), Z8 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: [], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype"]], }, r = t; e.default = r; }), e6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: [], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype"]], }, r = t; e.default = r; }), t6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !0, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-modal": null }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype"]], }, r = t; e.default = r; }), r6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = h(V8()), r = h(z8()), n = h(G8()), a = h(W8()), o = h(J8()), i = h(X8()), u = h(K8()), l = h(Y8()), c = h(Q8()), d = h(Z8()), p = h(e6()), f = h(t6()); function h(b) { return b && b.__esModule ? b : { default: b }; } s(h, "_interopRequireDefault"); var m = [ ["command", t.default], ["composite", r.default], ["input", n.default], ["landmark", a.default], ["range", o.default], ["roletype", i.default], ["section", u.default], ["sectionhead", l.default], ["select", c.default], ["structure", d.default], ["widget", p.default], ["window", f.default], ], y = m; e.default = y; }), n6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-atomic": "true", "aria-live": "assertive" }, relatedConcepts: [{ concept: { name: "alert" }, module: "XForms" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), a6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "alert" }, module: "XForms" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "alert"], ["roletype", "window", "dialog"], ], }, r = t; e.default = r; }), o6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-activedescendant": null, "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "Device Independence Delivery Unit" } }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }, r = t; e.default = r; }), i6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-posinset": null, "aria-setsize": null }, relatedConcepts: [{ concept: { name: "article" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "document"]], }, r = t; e.default = r; }), s6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { constraints: ["scoped to the body element"], name: "header", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), u6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "blockquote" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), l6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-disabled": null, "aria-expanded": null, "aria-haspopup": null, "aria-pressed": null, }, relatedConcepts: [ { concept: { attributes: [{ name: "type", value: "button" }], name: "input", }, module: "HTML", }, { concept: { attributes: [{ name: "type", value: "image" }], name: "input", }, module: "HTML", }, { concept: { attributes: [{ name: "type", value: "reset" }], name: "input", }, module: "HTML", }, { concept: { attributes: [{ name: "type", value: "submit" }], name: "input", }, module: "HTML", }, { concept: { name: "button" }, module: "HTML" }, { concept: { name: "trigger" }, module: "XForms" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command"]], }, r = t; e.default = r; }), c6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "caption" }, module: "HTML" }], requireContextRole: ["figure", "grid", "table"], requiredContextRole: ["figure", "grid", "table"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), d6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-colindex": null, "aria-colspan": null, "aria-rowindex": null, "aria-rowspan": null, }, relatedConcepts: [ { concept: { constraints: ["ancestor table element has table role"], name: "td", }, module: "HTML", }, ], requireContextRole: ["row"], requiredContextRole: ["row"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), p6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-checked": null, "aria-errormessage": null, "aria-expanded": null, "aria-invalid": null, "aria-readonly": null, "aria-required": null, }, relatedConcepts: [ { concept: { attributes: [{ name: "type", value: "checkbox" }], name: "input", }, module: "HTML", }, { concept: { name: "option" }, module: "ARIA" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-checked": null }, superClass: [["roletype", "widget", "input"]], }, r = t; e.default = r; }), f6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "code" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), h6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-sort": null }, relatedConcepts: [ { concept: { name: "th" }, module: "HTML" }, { concept: { attributes: [{ name: "scope", value: "col" }], name: "th", }, module: "HTML", }, { concept: { attributes: [{ name: "scope", value: "colgroup" }], name: "th", }, module: "HTML", }, ], requireContextRole: ["row"], requiredContextRole: ["row"], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "cell"], ["roletype", "structure", "section", "cell", "gridcell"], ["roletype", "widget", "gridcell"], ["roletype", "structure", "sectionhead"], ], }, r = t; e.default = r; }), m6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-activedescendant": null, "aria-autocomplete": null, "aria-errormessage": null, "aria-invalid": null, "aria-readonly": null, "aria-required": null, "aria-expanded": "false", "aria-haspopup": "listbox", }, relatedConcepts: [ { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "email" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "search" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "tel" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "text" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "url" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["set"], name: "list" }, { name: "type", value: "url" }, ], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["undefined"], name: "multiple" }, { constraints: ["undefined"], name: "size" }, ], constraints: [ "the multiple attribute is not set and the size attribute does not have a value greater than 1", ], name: "select", }, module: "HTML", }, { concept: { name: "select" }, module: "XForms" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-controls": null, "aria-expanded": "false" }, superClass: [["roletype", "widget", "input"]], }, r = t; e.default = r; }), y6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "aside" }, module: "HTML" }, { concept: { attributes: [{ constraints: ["set"], name: "aria-label" }], constraints: [ "scoped to a sectioning content element", "scoped to a sectioning root element other than body", ], name: "aside", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "aria-labelledby" }], constraints: [ "scoped to a sectioning content element", "scoped to a sectioning root element other than body", ], name: "aside", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), g6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { constraints: ["scoped to the body element"], name: "footer", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), b6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "dd" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), v6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "del" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), E6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "dialog" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "window"]], }, r = t; e.default = r; }), _6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ module: "DAISY Guide" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "list"]], }, r = t; e.default = r; }), C6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "Device Independence Delivery Unit" } }, { concept: { name: "html" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }, r = t; e.default = r; }), w6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "em" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), A6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["article"]], requiredProps: {}, superClass: [["roletype", "structure", "section", "list"]], }, r = t; e.default = r; }), S6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "figure" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), x6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { attributes: [{ constraints: ["set"], name: "aria-label" }], name: "form", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "aria-labelledby" }], name: "form", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "name" }], name: "form", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), P6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [ { concept: { name: "a" }, module: "HTML" }, { concept: { name: "area" }, module: "HTML" }, { concept: { name: "aside" }, module: "HTML" }, { concept: { name: "b" }, module: "HTML" }, { concept: { name: "bdo" }, module: "HTML" }, { concept: { name: "body" }, module: "HTML" }, { concept: { name: "data" }, module: "HTML" }, { concept: { name: "div" }, module: "HTML" }, { concept: { constraints: [ "scoped to the main element", "scoped to a sectioning content element", "scoped to a sectioning root element other than body", ], name: "footer", }, module: "HTML", }, { concept: { constraints: [ "scoped to the main element", "scoped to a sectioning content element", "scoped to a sectioning root element other than body", ], name: "header", }, module: "HTML", }, { concept: { name: "hgroup" }, module: "HTML" }, { concept: { name: "i" }, module: "HTML" }, { concept: { name: "pre" }, module: "HTML" }, { concept: { name: "q" }, module: "HTML" }, { concept: { name: "samp" }, module: "HTML" }, { concept: { name: "section" }, module: "HTML" }, { concept: { name: "small" }, module: "HTML" }, { concept: { name: "span" }, module: "HTML" }, { concept: { name: "u" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }, r = t; e.default = r; }), R6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-multiselectable": null, "aria-readonly": null }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["row"], ["row", "rowgroup"]], requiredProps: {}, superClass: [ ["roletype", "widget", "composite"], ["roletype", "structure", "section", "table"], ], }, r = t; e.default = r; }), T6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, "aria-readonly": null, "aria-required": null, "aria-selected": null, }, relatedConcepts: [ { concept: { constraints: [ "ancestor table element has grid role", "ancestor table element has treegrid role", ], name: "td", }, module: "HTML", }, ], requireContextRole: ["row"], requiredContextRole: ["row"], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "cell"], ["roletype", "widget"], ], }, r = t; e.default = r; }), O6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-activedescendant": null, "aria-disabled": null }, relatedConcepts: [ { concept: { name: "details" }, module: "HTML" }, { concept: { name: "fieldset" }, module: "HTML" }, { concept: { name: "optgroup" }, module: "HTML" }, { concept: { name: "address" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), D6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-level": "2" }, relatedConcepts: [ { concept: { name: "h1" }, module: "HTML" }, { concept: { name: "h2" }, module: "HTML" }, { concept: { name: "h3" }, module: "HTML" }, { concept: { name: "h4" }, module: "HTML" }, { concept: { name: "h5" }, module: "HTML" }, { concept: { name: "h6" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-level": "2" }, superClass: [["roletype", "structure", "sectionhead"]], }, r = t; e.default = r; }), F6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { attributes: [{ constraints: ["set"], name: "alt" }], name: "img", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["undefined"], name: "alt" }], name: "img", }, module: "HTML", }, { concept: { name: "imggroup" }, module: "DTB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), I6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "ins" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), N6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-disabled": null, "aria-expanded": null, "aria-haspopup": null, }, relatedConcepts: [ { concept: { attributes: [{ constraints: ["set"], name: "href" }], name: "a", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "href" }], name: "area", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command"]], }, r = t; e.default = r; }), j6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "menu" }, module: "HTML" }, { concept: { name: "ol" }, module: "HTML" }, { concept: { name: "ul" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["listitem"]], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), k6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-expanded": null, "aria-invalid": null, "aria-multiselectable": null, "aria-readonly": null, "aria-required": null, "aria-orientation": "vertical", }, relatedConcepts: [ { concept: { attributes: [{ constraints: [">1"], name: "size" }], constraints: ["the size attribute value is greater than 1"], name: "select", }, module: "HTML", }, { concept: { attributes: [{ name: "multiple" }], name: "select" }, module: "HTML", }, { concept: { name: "datalist" }, module: "HTML" }, { concept: { name: "list" }, module: "ARIA" }, { concept: { name: "select" }, module: "XForms" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["option", "group"], ["option"]], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"], ], }, r = t; e.default = r; }), q6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-level": null, "aria-posinset": null, "aria-setsize": null, }, relatedConcepts: [ { concept: { constraints: [ "direct descendant of ol", "direct descendant of ul", "direct descendant of menu", ], name: "li", }, module: "HTML", }, { concept: { name: "item" }, module: "XForms" }, ], requireContextRole: ["directory", "list"], requiredContextRole: ["directory", "list"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), M6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-live": "polite" }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), B6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "main" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), L6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: [], props: { "aria-braillelabel": null, "aria-brailleroledescription": null, "aria-description": null, }, relatedConcepts: [{ concept: { name: "mark" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), $6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), U6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "math" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), H6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-orientation": "vertical" }, relatedConcepts: [ { concept: { name: "MENU" }, module: "JAPI" }, { concept: { name: "list" }, module: "ARIA" }, { concept: { name: "select" }, module: "XForms" }, { concept: { name: "sidebar" }, module: "DTB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [ ["menuitem", "group"], ["menuitemradio", "group"], ["menuitemcheckbox", "group"], ["menuitem"], ["menuitemcheckbox"], ["menuitemradio"], ], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"], ], }, r = t; e.default = r; }), V6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-orientation": "horizontal" }, relatedConcepts: [{ concept: { name: "toolbar" }, module: "ARIA" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [ ["menuitem", "group"], ["menuitemradio", "group"], ["menuitemcheckbox", "group"], ["menuitem"], ["menuitemcheckbox"], ["menuitemradio"], ], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "select", "menu"], ["roletype", "structure", "section", "group", "select", "menu"], ], }, r = t; e.default = r; }), z6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-disabled": null, "aria-expanded": null, "aria-haspopup": null, "aria-posinset": null, "aria-setsize": null, }, relatedConcepts: [ { concept: { name: "MENU_ITEM" }, module: "JAPI" }, { concept: { name: "listitem" }, module: "ARIA" }, { concept: { name: "option" }, module: "ARIA" }, ], requireContextRole: ["group", "menu", "menubar"], requiredContextRole: ["group", "menu", "menubar"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command"]], }, r = t; e.default = r; }), G6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "menuitem" }, module: "ARIA" }], requireContextRole: ["group", "menu", "menubar"], requiredContextRole: ["group", "menu", "menubar"], requiredOwnedElements: [], requiredProps: { "aria-checked": null }, superClass: [ ["roletype", "widget", "input", "checkbox"], ["roletype", "widget", "command", "menuitem"], ], }, r = t; e.default = r; }), W6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "menuitem" }, module: "ARIA" }], requireContextRole: ["group", "menu", "menubar"], requiredContextRole: ["group", "menu", "menubar"], requiredOwnedElements: [], requiredProps: { "aria-checked": null }, superClass: [ ["roletype", "widget", "input", "checkbox", "menuitemcheckbox"], ["roletype", "widget", "command", "menuitem", "menuitemcheckbox"], ["roletype", "widget", "input", "radio"], ], }, r = t; e.default = r; }), J6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-valuetext": null, "aria-valuemax": "100", "aria-valuemin": "0", }, relatedConcepts: [{ concept: { name: "meter" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-valuenow": null }, superClass: [["roletype", "structure", "range"]], }, r = t; e.default = r; }), X6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "nav" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), K6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: [], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [], }, r = t; e.default = r; }), Y6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), Q6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-checked": null, "aria-posinset": null, "aria-setsize": null, "aria-selected": "false", }, relatedConcepts: [ { concept: { name: "item" }, module: "XForms" }, { concept: { name: "listitem" }, module: "ARIA" }, { concept: { name: "option" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-selected": "false" }, superClass: [["roletype", "widget", "input"]], }, r = t; e.default = r; }), Z6 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "p" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), e4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [ { concept: { attributes: [{ name: "alt", value: "" }], name: "img" }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }, r = t; e.default = r; }), t4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-valuetext": null }, relatedConcepts: [ { concept: { name: "progress" }, module: "HTML" }, { concept: { name: "status" }, module: "ARIA" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "range"], ["roletype", "widget"], ], }, r = t; e.default = r; }), r4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-checked": null, "aria-posinset": null, "aria-setsize": null, }, relatedConcepts: [ { concept: { attributes: [{ name: "type", value: "radio" }], name: "input", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-checked": null }, superClass: [["roletype", "widget", "input"]], }, r = t; e.default = r; }), n4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null, "aria-readonly": null, "aria-required": null, }, relatedConcepts: [{ concept: { name: "list" }, module: "ARIA" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["radio"]], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"], ], }, r = t; e.default = r; }), a4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { attributes: [{ constraints: ["set"], name: "aria-label" }], name: "section", }, module: "HTML", }, { concept: { attributes: [{ constraints: ["set"], name: "aria-labelledby" }], name: "section", }, module: "HTML", }, { concept: { name: "Device Independence Glossart perceivable unit" }, }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), o4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-colindex": null, "aria-expanded": null, "aria-level": null, "aria-posinset": null, "aria-rowindex": null, "aria-selected": null, "aria-setsize": null, }, relatedConcepts: [{ concept: { name: "tr" }, module: "HTML" }], requireContextRole: ["grid", "rowgroup", "table", "treegrid"], requiredContextRole: ["grid", "rowgroup", "table", "treegrid"], requiredOwnedElements: [ ["cell"], ["columnheader"], ["gridcell"], ["rowheader"], ], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "group"], ["roletype", "widget"], ], }, r = t; e.default = r; }), i4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "tbody" }, module: "HTML" }, { concept: { name: "tfoot" }, module: "HTML" }, { concept: { name: "thead" }, module: "HTML" }, ], requireContextRole: ["grid", "table", "treegrid"], requiredContextRole: ["grid", "table", "treegrid"], requiredOwnedElements: [["row"]], requiredProps: {}, superClass: [["roletype", "structure"]], }, r = t; e.default = r; }), s4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-sort": null }, relatedConcepts: [ { concept: { attributes: [{ name: "scope", value: "row" }], name: "th", }, module: "HTML", }, { concept: { attributes: [{ name: "scope", value: "rowgroup" }], name: "th", }, module: "HTML", }, ], requireContextRole: ["row", "rowgroup"], requiredContextRole: ["row", "rowgroup"], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "cell"], ["roletype", "structure", "section", "cell", "gridcell"], ["roletype", "widget", "gridcell"], ["roletype", "structure", "sectionhead"], ], }, r = t; e.default = r; }), u4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-valuetext": null, "aria-orientation": "vertical", "aria-valuemax": "100", "aria-valuemin": "0", }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-controls": null, "aria-valuenow": null }, superClass: [ ["roletype", "structure", "range"], ["roletype", "widget"], ], }, r = t; e.default = r; }), l4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), c4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { attributes: [ { constraints: ["undefined"], name: "list" }, { name: "type", value: "search" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "input", "textbox"]], }, r = t; e.default = r; }), d4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-orientation": "horizontal", "aria-valuemax": "100", "aria-valuemin": "0", "aria-valuenow": null, "aria-valuetext": null, }, relatedConcepts: [{ concept: { name: "hr" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure"]], }, r = t; e.default = r; }), p4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-haspopup": null, "aria-invalid": null, "aria-readonly": null, "aria-valuetext": null, "aria-orientation": "horizontal", "aria-valuemax": "100", "aria-valuemin": "0", }, relatedConcepts: [ { concept: { attributes: [{ name: "type", value: "range" }], name: "input", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-valuenow": null }, superClass: [ ["roletype", "widget", "input"], ["roletype", "structure", "range"], ], }, r = t; e.default = r; }), f4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null, "aria-readonly": null, "aria-required": null, "aria-valuetext": null, "aria-valuenow": "0", }, relatedConcepts: [ { concept: { attributes: [{ name: "type", value: "number" }], name: "input", }, module: "HTML", }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "widget", "composite"], ["roletype", "widget", "input"], ["roletype", "structure", "range"], ], }, r = t; e.default = r; }), h4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-atomic": "true", "aria-live": "polite" }, relatedConcepts: [{ concept: { name: "output" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), m4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "strong" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), y4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "sub" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), g4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["prohibited"], prohibitedProps: ["aria-label", "aria-labelledby"], props: {}, relatedConcepts: [{ concept: { name: "sup" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), b4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "button" }, module: "ARIA" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: { "aria-checked": null }, superClass: [["roletype", "widget", "input", "checkbox"]], }, r = t; e.default = r; }), v4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-disabled": null, "aria-expanded": null, "aria-haspopup": null, "aria-posinset": null, "aria-setsize": null, "aria-selected": "false", }, relatedConcepts: [], requireContextRole: ["tablist"], requiredContextRole: ["tablist"], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "sectionhead"], ["roletype", "widget"], ], }, r = t; e.default = r; }), E4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-colcount": null, "aria-rowcount": null }, relatedConcepts: [{ concept: { name: "table" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["row"], ["row", "rowgroup"]], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), _4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-level": null, "aria-multiselectable": null, "aria-orientation": "horizontal", }, relatedConcepts: [{ module: "DAISY", concept: { name: "guide" } }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["tab"]], requiredProps: {}, superClass: [["roletype", "widget", "composite"]], }, r = t; e.default = r; }), C4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), w4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "dfn" }, module: "HTML" }, { concept: { name: "dt" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), A4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-activedescendant": null, "aria-autocomplete": null, "aria-errormessage": null, "aria-haspopup": null, "aria-invalid": null, "aria-multiline": null, "aria-placeholder": null, "aria-readonly": null, "aria-required": null, }, relatedConcepts: [ { concept: { attributes: [ { constraints: ["undefined"], name: "type" }, { constraints: ["undefined"], name: "list" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["undefined"], name: "list" }, { name: "type", value: "email" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["undefined"], name: "list" }, { name: "type", value: "tel" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["undefined"], name: "list" }, { name: "type", value: "text" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, { concept: { attributes: [ { constraints: ["undefined"], name: "list" }, { name: "type", value: "url" }, ], constraints: ["the list attribute is not set"], name: "input", }, module: "HTML", }, { concept: { name: "input" }, module: "XForms" }, { concept: { name: "textarea" }, module: "HTML" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "input"]], }, r = t; e.default = r; }), S4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [{ concept: { name: "time" }, module: "HTML" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), x4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "status"]], }, r = t; e.default = r; }), P4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-orientation": "horizontal" }, relatedConcepts: [{ concept: { name: "menubar" }, module: "ARIA" }], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "group"]], }, r = t; e.default = r; }), R4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), T4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null, "aria-multiselectable": null, "aria-required": null, "aria-orientation": "vertical", }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["treeitem", "group"], ["treeitem"]], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"], ], }, r = t; e.default = r; }), O4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["row"], ["row", "rowgroup"]], requiredProps: {}, superClass: [ ["roletype", "widget", "composite", "grid"], ["roletype", "structure", "section", "table", "grid"], ["roletype", "widget", "composite", "select", "tree"], ["roletype", "structure", "section", "group", "select", "tree"], ], }, r = t; e.default = r; }), D4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-expanded": null, "aria-haspopup": null }, relatedConcepts: [], requireContextRole: ["group", "tree"], requiredContextRole: ["group", "tree"], requiredOwnedElements: [], requiredProps: { "aria-selected": null }, superClass: [ ["roletype", "structure", "section", "listitem"], ["roletype", "widget", "input", "option"], ], }, r = t; e.default = r; }), F4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = O(n6()), r = O(a6()), n = O(o6()), a = O(i6()), o = O(s6()), i = O(u6()), u = O(l6()), l = O(c6()), c = O(d6()), d = O(p6()), p = O(f6()), f = O(h6()), h = O(m6()), m = O(y6()), y = O(g6()), b = O(b6()), g = O(v6()), v = O(E6()), x = O(_6()), A = O(C6()), w = O(w6()), C = O(A6()), E = O(S6()), _ = O(x6()), P = O(P6()), D = O(R6()), F = O(T6()), L = O(O6()), q = O(D6()), T = O(F6()), k = O(I6()), I = O(N6()), W = O(j6()), Q = O(k6()), se = O(q6()), H = O(M6()), K = O(B6()), V = O(L6()), Z = O($6()), re = O(U6()), he = O(H6()), oe = O(V6()), ge = O(z6()), be = O(G6()), rt = O(W6()), Ke = O(J6()), z = O(X6()), ne = O(K6()), ue = O(Y6()), te = O(Q6()), ae = O(Z6()), ee = O(e4()), fe = O(t4()), we = O(r4()), Pe = O(n4()), xe = O(a4()), ke = O(o4()), Te = O(i4()), je = O(s4()), Le = O(u4()), ve = O(l4()), De = O(c4()), ye = O(d4()), Oe = O(p4()), Ne = O(f4()), mt = O(h4()), ot = O(m4()), Be = O(y4()), Ge = O(g4()), pt = O(b4()), ut = O(v4()), Bt = O(E4()), ft = O(_4()), Re = O(C4()), Ze = O(w4()), Pt = O(A4()), It = O(S4()), Gt = O(x4()), cr = O(P4()), bt = O(R4()), R = O(T4()), B = O(O4()), j = O(D4()); function O(le) { return le && le.__esModule ? le : { default: le }; } s(O, "_interopRequireDefault"); var G = [ ["alert", t.default], ["alertdialog", r.default], ["application", n.default], ["article", a.default], ["banner", o.default], ["blockquote", i.default], ["button", u.default], ["caption", l.default], ["cell", c.default], ["checkbox", d.default], ["code", p.default], ["columnheader", f.default], ["combobox", h.default], ["complementary", m.default], ["contentinfo", y.default], ["definition", b.default], ["deletion", g.default], ["dialog", v.default], ["directory", x.default], ["document", A.default], ["emphasis", w.default], ["feed", C.default], ["figure", E.default], ["form", _.default], ["generic", P.default], ["grid", D.default], ["gridcell", F.default], ["group", L.default], ["heading", q.default], ["img", T.default], ["insertion", k.default], ["link", I.default], ["list", W.default], ["listbox", Q.default], ["listitem", se.default], ["log", H.default], ["main", K.default], ["mark", V.default], ["marquee", Z.default], ["math", re.default], ["menu", he.default], ["menubar", oe.default], ["menuitem", ge.default], ["menuitemcheckbox", be.default], ["menuitemradio", rt.default], ["meter", Ke.default], ["navigation", z.default], ["none", ne.default], ["note", ue.default], ["option", te.default], ["paragraph", ae.default], ["presentation", ee.default], ["progressbar", fe.default], ["radio", we.default], ["radiogroup", Pe.default], ["region", xe.default], ["row", ke.default], ["rowgroup", Te.default], ["rowheader", je.default], ["scrollbar", Le.default], ["search", ve.default], ["searchbox", De.default], ["separator", ye.default], ["slider", Oe.default], ["spinbutton", Ne.default], ["status", mt.default], ["strong", ot.default], ["subscript", Be.default], ["superscript", Ge.default], ["switch", pt.default], ["tab", ut.default], ["table", Bt.default], ["tablist", ft.default], ["tabpanel", Re.default], ["term", Ze.default], ["textbox", Pt.default], ["time", It.default], ["timer", Gt.default], ["toolbar", cr.default], ["tooltip", bt.default], ["tree", R.default], ["treegrid", B.default], ["treeitem", j.default], ], de = G; e.default = de; }), I4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "abstract [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), N4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "acknowledgments [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), j4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "afterword [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), k4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "appendix [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), q4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null }, relatedConcepts: [ { concept: { name: "referrer [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command", "link"]], }, r = t; e.default = r; }), M4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "EPUB biblioentry [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: ["doc-bibliography"], requiredContextRole: ["doc-bibliography"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "listitem"]], }, r = t; e.default = r; }), B4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "bibliography [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["doc-biblioentry"]], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), L4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null }, relatedConcepts: [ { concept: { name: "biblioref [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command", "link"]], }, r = t; e.default = r; }), $4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "chapter [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), U4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "colophon [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), H4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "conclusion [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), V4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "cover [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "img"]], }, r = t; e.default = r; }), z4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "credit [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), G4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "credits [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), W4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "dedication [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), J4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "rearnote [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: ["doc-endnotes"], requiredContextRole: ["doc-endnotes"], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "listitem"]], }, r = t; e.default = r; }), X4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "rearnotes [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["doc-endnote"]], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), K4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "epigraph [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), Y4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "epilogue [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), Q4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "errata [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), Z4 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), e9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "footnote [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), t9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "foreword [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), r9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "glossary [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [["definition"], ["term"]], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), n9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null }, relatedConcepts: [ { concept: { name: "glossref [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command", "link"]], }, r = t; e.default = r; }), a9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "index [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "landmark", "navigation"], ], }, r = t; e.default = r; }), o9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "introduction [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), i9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-invalid": null }, relatedConcepts: [ { concept: { name: "noteref [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "widget", "command", "link"]], }, r = t; e.default = r; }), s9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "notice [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "note"]], }, r = t; e.default = r; }), u9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "pagebreak [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "separator"]], }, r = t; e.default = r; }), l9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "page-list [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "landmark", "navigation"], ], }, r = t; e.default = r; }), c9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "part [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), d9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "preface [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), p9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "prologue [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "landmark"]], }, r = t; e.default = r; }), f9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: {}, relatedConcepts: [ { concept: { name: "pullquote [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["none"]], }, r = t; e.default = r; }), h9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "qna [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section"]], }, r = t; e.default = r; }), m9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "subtitle [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "sectionhead"]], }, r = t; e.default = r; }), y9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "help [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "note"]], }, r = t; e.default = r; }), g9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { concept: { name: "toc [EPUB-SSV]" }, module: "EPUB" }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [ ["roletype", "structure", "section", "landmark", "navigation"], ], }, r = t; e.default = r; }), b9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = re(I4()), r = re(N4()), n = re(j4()), a = re(k4()), o = re(q4()), i = re(M4()), u = re(B4()), l = re(L4()), c = re($4()), d = re(U4()), p = re(H4()), f = re(V4()), h = re(z4()), m = re(G4()), y = re(W4()), b = re(J4()), g = re(X4()), v = re(K4()), x = re(Y4()), A = re(Q4()), w = re(Z4()), C = re(e9()), E = re(t9()), _ = re(r9()), P = re(n9()), D = re(a9()), F = re(o9()), L = re(i9()), q = re(s9()), T = re(u9()), k = re(l9()), I = re(c9()), W = re(d9()), Q = re(p9()), se = re(f9()), H = re(h9()), K = re(m9()), V = re(y9()), Z = re(g9()); function re(ge) { return ge && ge.__esModule ? ge : { default: ge }; } s(re, "_interopRequireDefault"); var he = [ ["doc-abstract", t.default], ["doc-acknowledgments", r.default], ["doc-afterword", n.default], ["doc-appendix", a.default], ["doc-backlink", o.default], ["doc-biblioentry", i.default], ["doc-bibliography", u.default], ["doc-biblioref", l.default], ["doc-chapter", c.default], ["doc-colophon", d.default], ["doc-conclusion", p.default], ["doc-cover", f.default], ["doc-credit", h.default], ["doc-credits", m.default], ["doc-dedication", y.default], ["doc-endnote", b.default], ["doc-endnotes", g.default], ["doc-epigraph", v.default], ["doc-epilogue", x.default], ["doc-errata", A.default], ["doc-example", w.default], ["doc-footnote", C.default], ["doc-foreword", E.default], ["doc-glossary", _.default], ["doc-glossref", P.default], ["doc-index", D.default], ["doc-introduction", F.default], ["doc-noteref", L.default], ["doc-notice", q.default], ["doc-pagebreak", T.default], ["doc-pagelist", k.default], ["doc-part", I.default], ["doc-preface", W.default], ["doc-prologue", Q.default], ["doc-pullquote", se.default], ["doc-qna", H.default], ["doc-subtitle", K.default], ["doc-tip", V.default], ["doc-toc", Z.default], ], oe = he; e.default = oe; }), v9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { module: "GRAPHICS", concept: { name: "graphics-object" } }, { module: "ARIA", concept: { name: "img" } }, { module: "ARIA", concept: { name: "article" } }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "document"]], }, r = t; e.default = r; }), E9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !1, baseConcepts: [], childrenPresentational: !1, nameFrom: ["author", "contents"], prohibitedProps: [], props: { "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [ { module: "GRAPHICS", concept: { name: "graphics-document" } }, { module: "ARIA", concept: { name: "group" } }, { module: "ARIA", concept: { name: "img" } }, { module: "GRAPHICS", concept: { name: "graphics-symbol" } }, ], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "group"]], }, r = t; e.default = r; }), _9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = { abstract: !1, accessibleNameRequired: !0, baseConcepts: [], childrenPresentational: !0, nameFrom: ["author"], prohibitedProps: [], props: { "aria-disabled": null, "aria-errormessage": null, "aria-expanded": null, "aria-haspopup": null, "aria-invalid": null, }, relatedConcepts: [], requireContextRole: [], requiredContextRole: [], requiredOwnedElements: [], requiredProps: {}, superClass: [["roletype", "structure", "section", "img"]], }, r = t; e.default = r; }), C9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = a(v9()), r = a(E9()), n = a(_9()); function a(u) { return u && u.__esModule ? u : { default: u }; } s(a, "_interopRequireDefault"); var o = [ ["graphics-document", t.default], ["graphics-object", r.default], ["graphics-symbol", n.default], ], i = o; e.default = i; }), zy = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = i(r6()), r = i(F4()), n = i(b9()), a = i(C9()), o = i(ms()); function i(v) { return v && v.__esModule ? v : { default: v }; } s(i, "_interopRequireDefault"); function u(v, x, A) { return ( x in v ? Object.defineProperty(v, x, { value: A, enumerable: !0, configurable: !0, writable: !0, }) : (v[x] = A), v ); } s(u, "_defineProperty"); function l(v, x) { var A = (typeof Symbol < "u" && v[Symbol.iterator]) || v["@@iterator"]; if (!A) { if ( Array.isArray(v) || (A = p(v)) || (x && v && typeof v.length == "number") ) { A && (v = A); var w = 0, C = s(function () {}, "F"); return { s: C, n: s(function () { return w >= v.length ? { done: !0 } : { done: !1, value: v[w++] }; }, "n"), e: s(function (D) { throw D; }, "e"), f: C, }; } 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 E = !0, _ = !1, P; return { s: s(function () { A = A.call(v); }, "s"), n: s(function () { var D = A.next(); return ((E = D.done), D); }, "n"), e: s(function (D) { ((_ = !0), (P = D)); }, "e"), f: s(function () { try { !E && A.return != null && A.return(); } finally { if (_) throw P; } }, "f"), }; } s(l, "_createForOfIteratorHelper"); function c(v, x) { return m(v) || h(v, x) || p(v, x) || d(); } s(c, "_slicedToArray"); function d() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } s(d, "_nonIterableRest"); function p(v, x) { if (v) { if (typeof v == "string") return f(v, x); var A = Object.prototype.toString.call(v).slice(8, -1); if ( (A === "Object" && v.constructor && (A = v.constructor.name), A === "Map" || A === "Set") ) return Array.from(v); if ( A === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A) ) return f(v, x); } } s(p, "_unsupportedIterableToArray"); function f(v, x) { (x == null || x > v.length) && (x = v.length); for (var A = 0, w = new Array(x); A < x; A++) w[A] = v[A]; return w; } s(f, "_arrayLikeToArray"); function h(v, x) { var A = v == null ? null : (typeof Symbol < "u" && v[Symbol.iterator]) || v["@@iterator"]; if (A != null) { var w = [], C = !0, E = !1, _, P; try { for ( A = A.call(v); !(C = (_ = A.next()).done) && (w.push(_.value), !(x && w.length === x)); C = !0 ); } catch (D) { ((E = !0), (P = D)); } finally { try { !C && A.return != null && A.return(); } finally { if (E) throw P; } } return w; } } s(h, "_iterableToArrayLimit"); function m(v) { if (Array.isArray(v)) return v; } s(m, "_arrayWithHoles"); var y = [].concat(t.default, r.default, n.default, a.default); y.forEach(function (v) { var x = c(v, 2), A = x[1], w = l(A.superClass), C; try { for (w.s(); !(C = w.n()).done; ) { var E = C.value, _ = l(E), P; try { var D = s(function () { var F = P.value, L = y.find(function (W) { var Q = c(W, 1), se = Q[0]; return se === F; }); if (L) for ( var q = L[1], T = 0, k = Object.keys(q.props); T < k.length; T++ ) { var I = k[T]; Object.prototype.hasOwnProperty.call(A.props, I) || Object.assign(A.props, u({}, I, q.props[I])); } }, "_loop"); for (_.s(); !(P = _.n()).done; ) D(); } catch (F) { _.e(F); } finally { _.f(); } } } catch (F) { w.e(F); } finally { w.f(); } }); var b = { entries: s(function () { return y; }, "entries"), forEach: s(function (v) { var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, A = l(y), w; try { for (A.s(); !(w = A.n()).done; ) { var C = c(w.value, 2), E = C[0], _ = C[1]; v.call(x, _, E, y); } } catch (P) { A.e(P); } finally { A.f(); } }, "forEach"), get: s(function (v) { var x = y.find(function (A) { return A[0] === v; }); return x && x[1]; }, "get"), has: s(function (v) { return !!b.get(v); }, "has"), keys: s(function () { return y.map(function (v) { var x = c(v, 1), A = x[0]; return A; }); }, "keys"), values: s(function () { return y.map(function (v) { var x = c(v, 2), A = x[1]; return A; }); }, "values"), }, g = (0, o.default)(b, b.entries()); e.default = g; }), W1 = {}; ur(W1, { dequal: () => ul }); function ul(e, t) { var r, n; if (e === t) return !0; if (e && t && (r = e.constructor) === t.constructor) { if (r === Date) return e.getTime() === t.getTime(); if (r === RegExp) return e.toString() === t.toString(); if (r === Array) { if ((n = e.length) === t.length) for (; n-- && ul(e[n], t[n]); ); return n === -1; } if (!r || typeof e == "object") { n = 0; for (r in e) if ( (Ch.call(e, r) && ++n && !Ch.call(t, r)) || !(r in t) || !ul(e[r], t[r]) ) return !1; return Object.keys(t).length === n; } } return e !== e && t !== t; } var Ch, w9 = gL(() => { ((Ch = Object.prototype.hasOwnProperty), s(ul, "dequal")); }), A9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = (w9(), bL(W1)), r = a(ms()), n = a(zy()); function a(C) { return C && C.__esModule ? C : { default: C }; } s(a, "_interopRequireDefault"); function o(C, E) { return l(C) || u(C, E) || d(C, E) || i(); } s(o, "_slicedToArray"); function i() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } s(i, "_nonIterableRest"); function u(C, E) { var _ = C == null ? null : (typeof Symbol < "u" && C[Symbol.iterator]) || C["@@iterator"]; if (_ != null) { var P = [], D = !0, F = !1, L, q; try { for ( _ = _.call(C); !(D = (L = _.next()).done) && (P.push(L.value), !(E && P.length === E)); D = !0 ); } catch (T) { ((F = !0), (q = T)); } finally { try { !D && _.return != null && _.return(); } finally { if (F) throw q; } } return P; } } s(u, "_iterableToArrayLimit"); function l(C) { if (Array.isArray(C)) return C; } s(l, "_arrayWithHoles"); function c(C, E) { var _ = (typeof Symbol < "u" && C[Symbol.iterator]) || C["@@iterator"]; if (!_) { if ( Array.isArray(C) || (_ = d(C)) || (E && C && typeof C.length == "number") ) { _ && (C = _); var P = 0, D = s(function () {}, "F"); return { s: D, n: s(function () { return P >= C.length ? { done: !0 } : { done: !1, value: C[P++] }; }, "n"), e: s(function (T) { throw T; }, "e"), f: D, }; } 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 F = !0, L = !1, q; return { s: s(function () { _ = _.call(C); }, "s"), n: s(function () { var T = _.next(); return ((F = T.done), T); }, "n"), e: s(function (T) { ((L = !0), (q = T)); }, "e"), f: s(function () { try { !F && _.return != null && _.return(); } finally { if (L) throw q; } }, "f"), }; } s(c, "_createForOfIteratorHelper"); function d(C, E) { if (C) { if (typeof C == "string") return p(C, E); var _ = Object.prototype.toString.call(C).slice(8, -1); if ( (_ === "Object" && C.constructor && (_ = C.constructor.name), _ === "Map" || _ === "Set") ) return Array.from(C); if ( _ === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_) ) return p(C, E); } } s(d, "_unsupportedIterableToArray"); function p(C, E) { (E == null || E > C.length) && (E = C.length); for (var _ = 0, P = new Array(E); _ < E; _++) P[_] = C[_]; return P; } s(p, "_arrayLikeToArray"); var f = [], h = n.default.keys(); for (x = 0; x < h.length; x++) if (((m = h[x]), (y = n.default.get(m)), y)) for ( b = [].concat(y.baseConcepts, y.relatedConcepts), v = 0; v < b.length; v++ ) ((g = b[v]), g.module === "HTML" && (function () { var C = g.concept; if (C) { var E = f.find(function (F) { return (0, t.dequal)(F, C); }), _; E ? (_ = E[1]) : (_ = []); for (var P = !0, D = 0; D < _.length; D++) if (_[D] === m) { P = !1; break; } (P && _.push(m), f.push([C, _])); } })()); var m, y, b, g, v, x, A = { entries: s(function () { return f; }, "entries"), forEach: s(function (C) { var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _ = c(f), P; try { for (_.s(); !(P = _.n()).done; ) { var D = o(P.value, 2), F = D[0], L = D[1]; C.call(E, L, F, f); } } catch (q) { _.e(q); } finally { _.f(); } }, "forEach"), get: s(function (C) { var E = f.find(function (_) { return ( C.name === _[0].name && (0, t.dequal)(C.attributes, _[0].attributes) ); }); return E && E[1]; }, "get"), has: s(function (C) { return !!A.get(C); }, "has"), keys: s(function () { return f.map(function (C) { var E = o(C, 1), _ = E[0]; return _; }); }, "keys"), values: s(function () { return f.map(function (C) { var E = o(C, 2), _ = E[1]; return _; }); }, "values"), }, w = (0, r.default)(A, A.entries()); e.default = w; }), S9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.default = void 0)); var t = n(ms()), r = n(zy()); function n(E) { return E && E.__esModule ? E : { default: E }; } s(n, "_interopRequireDefault"); function a(E, _) { return u(E) || i(E, _) || c(E, _) || o(); } s(a, "_slicedToArray"); function o() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } s(o, "_nonIterableRest"); function i(E, _) { var P = E == null ? null : (typeof Symbol < "u" && E[Symbol.iterator]) || E["@@iterator"]; if (P != null) { var D = [], F = !0, L = !1, q, T; try { for ( P = P.call(E); !(F = (q = P.next()).done) && (D.push(q.value), !(_ && D.length === _)); F = !0 ); } catch (k) { ((L = !0), (T = k)); } finally { try { !F && P.return != null && P.return(); } finally { if (L) throw T; } } return D; } } s(i, "_iterableToArrayLimit"); function u(E) { if (Array.isArray(E)) return E; } s(u, "_arrayWithHoles"); function l(E, _) { var P = (typeof Symbol < "u" && E[Symbol.iterator]) || E["@@iterator"]; if (!P) { if ( Array.isArray(E) || (P = c(E)) || (_ && E && typeof E.length == "number") ) { P && (E = P); var D = 0, F = s(function () {}, "F"); return { s: F, n: s(function () { return D >= E.length ? { done: !0 } : { done: !1, value: E[D++] }; }, "n"), e: s(function (k) { throw k; }, "e"), f: F, }; } 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 L = !0, q = !1, T; return { s: s(function () { P = P.call(E); }, "s"), n: s(function () { var k = P.next(); return ((L = k.done), k); }, "n"), e: s(function (k) { ((q = !0), (T = k)); }, "e"), f: s(function () { try { !L && P.return != null && P.return(); } finally { if (q) throw T; } }, "f"), }; } s(l, "_createForOfIteratorHelper"); function c(E, _) { if (E) { if (typeof E == "string") return d(E, _); var P = Object.prototype.toString.call(E).slice(8, -1); if ( (P === "Object" && E.constructor && (P = E.constructor.name), P === "Map" || P === "Set") ) return Array.from(E); if ( P === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P) ) return d(E, _); } } s(c, "_unsupportedIterableToArray"); function d(E, _) { (_ == null || _ > E.length) && (_ = E.length); for (var P = 0, D = new Array(_); P < _; P++) D[P] = E[P]; return D; } s(d, "_arrayLikeToArray"); var p = [], f = r.default.keys(); for (A = 0; A < f.length; A++) if (((h = f[A]), (m = r.default.get(h)), (y = []), m)) { for ( b = [].concat(m.baseConcepts, m.relatedConcepts), x = 0; x < b.length; x++ ) ((g = b[x]), g.module === "HTML" && ((v = g.concept), v != null && y.push(v))); y.length > 0 && p.push([h, y]); } var h, m, y, b, g, v, x, A, w = { entries: s(function () { return p; }, "entries"), forEach: s(function (E) { var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, P = l(p), D; try { for (P.s(); !(D = P.n()).done; ) { var F = a(D.value, 2), L = F[0], q = F[1]; E.call(_, q, L, p); } } catch (T) { P.e(T); } finally { P.f(); } }, "forEach"), get: s(function (E) { var _ = p.find(function (P) { return P[0] === E; }); return _ && _[1]; }, "get"), has: s(function (E) { return !!w.get(E); }, "has"), keys: s(function () { return p.map(function (E) { var _ = a(E, 1), P = _[0]; return P; }); }, "keys"), values: s(function () { return p.map(function (E) { var _ = a(E, 2), P = _[1]; return P; }); }, "values"), }, C = (0, t.default)(w, w.entries()); e.default = C; }), x9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.roles = e.roleElements = e.elementRoles = e.dom = e.aria = void 0)); var t = i(U8()), r = i(H8()), n = i(zy()), a = i(A9()), o = i(S9()); function i(f) { return f && f.__esModule ? f : { default: f }; } s(i, "_interopRequireDefault"); var u = t.default; e.aria = u; var l = r.default; e.dom = l; var c = n.default; e.roles = c; var d = a.default; e.elementRoles = d; var p = o.default; e.roleElements = p; }), P9 = N((e, t) => { var r = (function () { var n = String.fromCharCode, a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", i = {}; function u(c, d) { if (!i[c]) { i[c] = {}; for (var p = 0; p < c.length; p++) i[c][c.charAt(p)] = p; } return i[c][d]; } s(u, "getBaseValue"); var l = { compressToBase64: s(function (c) { if (c == null) return ""; var d = l._compress(c, 6, function (p) { return a.charAt(p); }); switch (d.length % 4) { default: case 0: return d; case 1: return d + "==="; case 2: return d + "=="; case 3: return d + "="; } }, "compressToBase64"), decompressFromBase64: s(function (c) { return c == null ? "" : c == "" ? null : l._decompress(c.length, 32, function (d) { return u(a, c.charAt(d)); }); }, "decompressFromBase64"), compressToUTF16: s(function (c) { return c == null ? "" : l._compress(c, 15, function (d) { return n(d + 32); }) + " "; }, "compressToUTF16"), decompressFromUTF16: s(function (c) { return c == null ? "" : c == "" ? null : l._decompress(c.length, 16384, function (d) { return c.charCodeAt(d) - 32; }); }, "decompressFromUTF16"), compressToUint8Array: s(function (c) { for ( var d = l.compress(c), p = new Uint8Array(d.length * 2), f = 0, h = d.length; f < h; f++ ) { var m = d.charCodeAt(f); ((p[f * 2] = m >>> 8), (p[f * 2 + 1] = m % 256)); } return p; }, "compressToUint8Array"), decompressFromUint8Array: s(function (c) { if (c == null) return l.decompress(c); for (var d = new Array(c.length / 2), p = 0, f = d.length; p < f; p++) d[p] = c[p * 2] * 256 + c[p * 2 + 1]; var h = []; return ( d.forEach(function (m) { h.push(n(m)); }), l.decompress(h.join("")) ); }, "decompressFromUint8Array"), compressToEncodedURIComponent: s(function (c) { return c == null ? "" : l._compress(c, 6, function (d) { return o.charAt(d); }); }, "compressToEncodedURIComponent"), decompressFromEncodedURIComponent: s(function (c) { return c == null ? "" : c == "" ? null : ((c = c.replace(/ /g, "+")), l._decompress(c.length, 32, function (d) { return u(o, c.charAt(d)); })); }, "decompressFromEncodedURIComponent"), compress: s(function (c) { return l._compress(c, 16, function (d) { return n(d); }); }, "compress"), _compress: s(function (c, d, p) { if (c == null) return ""; var f, h, m = {}, y = {}, b = "", g = "", v = "", x = 2, A = 3, w = 2, C = [], E = 0, _ = 0, P; for (P = 0; P < c.length; P += 1) if ( ((b = c.charAt(P)), Object.prototype.hasOwnProperty.call(m, b) || ((m[b] = A++), (y[b] = !0)), (g = v + b), Object.prototype.hasOwnProperty.call(m, g)) ) v = g; else { if (Object.prototype.hasOwnProperty.call(y, v)) { if (v.charCodeAt(0) < 256) { for (f = 0; f < w; f++) ((E = E << 1), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++); for (h = v.charCodeAt(0), f = 0; f < 8; f++) ((E = (E << 1) | (h & 1)), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++, (h = h >> 1)); } else { for (h = 1, f = 0; f < w; f++) ((E = (E << 1) | h), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++, (h = 0)); for (h = v.charCodeAt(0), f = 0; f < 16; f++) ((E = (E << 1) | (h & 1)), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++, (h = h >> 1)); } (x--, x == 0 && ((x = Math.pow(2, w)), w++), delete y[v]); } else for (h = m[v], f = 0; f < w; f++) ((E = (E << 1) | (h & 1)), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++, (h = h >> 1)); (x--, x == 0 && ((x = Math.pow(2, w)), w++), (m[g] = A++), (v = String(b))); } if (v !== "") { if (Object.prototype.hasOwnProperty.call(y, v)) { if (v.charCodeAt(0) < 256) { for (f = 0; f < w; f++) ((E = E << 1), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++); for (h = v.charCodeAt(0), f = 0; f < 8; f++) ((E = (E << 1) | (h & 1)), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++, (h = h >> 1)); } else { for (h = 1, f = 0; f < w; f++) ((E = (E << 1) | h), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++, (h = 0)); for (h = v.charCodeAt(0), f = 0; f < 16; f++) ((E = (E << 1) | (h & 1)), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++, (h = h >> 1)); } (x--, x == 0 && ((x = Math.pow(2, w)), w++), delete y[v]); } else for (h = m[v], f = 0; f < w; f++) ((E = (E << 1) | (h & 1)), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++, (h = h >> 1)); (x--, x == 0 && ((x = Math.pow(2, w)), w++)); } for (h = 2, f = 0; f < w; f++) ((E = (E << 1) | (h & 1)), _ == d - 1 ? ((_ = 0), C.push(p(E)), (E = 0)) : _++, (h = h >> 1)); for (;;) if (((E = E << 1), _ == d - 1)) { C.push(p(E)); break; } else _++; return C.join(""); }, "_compress"), decompress: s(function (c) { return c == null ? "" : c == "" ? null : l._decompress(c.length, 32768, function (d) { return c.charCodeAt(d); }); }, "decompress"), _decompress: s(function (c, d, p) { var f = [], h = 4, m = 4, y = 3, b = "", g = [], v, x, A, w, C, E, _, P = { val: p(0), position: d, index: 1 }; for (v = 0; v < 3; v += 1) f[v] = v; for (A = 0, C = Math.pow(2, 2), E = 1; E != C; ) ((w = P.val & P.position), (P.position >>= 1), P.position == 0 && ((P.position = d), (P.val = p(P.index++))), (A |= (w > 0 ? 1 : 0) * E), (E <<= 1)); switch (A) { case 0: for (A = 0, C = Math.pow(2, 8), E = 1; E != C; ) ((w = P.val & P.position), (P.position >>= 1), P.position == 0 && ((P.position = d), (P.val = p(P.index++))), (A |= (w > 0 ? 1 : 0) * E), (E <<= 1)); _ = n(A); break; case 1: for (A = 0, C = Math.pow(2, 16), E = 1; E != C; ) ((w = P.val & P.position), (P.position >>= 1), P.position == 0 && ((P.position = d), (P.val = p(P.index++))), (A |= (w > 0 ? 1 : 0) * E), (E <<= 1)); _ = n(A); break; case 2: return ""; } for (f[3] = _, x = _, g.push(_); ; ) { if (P.index > c) return ""; for (A = 0, C = Math.pow(2, y), E = 1; E != C; ) ((w = P.val & P.position), (P.position >>= 1), P.position == 0 && ((P.position = d), (P.val = p(P.index++))), (A |= (w > 0 ? 1 : 0) * E), (E <<= 1)); switch ((_ = A)) { case 0: for (A = 0, C = Math.pow(2, 8), E = 1; E != C; ) ((w = P.val & P.position), (P.position >>= 1), P.position == 0 && ((P.position = d), (P.val = p(P.index++))), (A |= (w > 0 ? 1 : 0) * E), (E <<= 1)); ((f[m++] = n(A)), (_ = m - 1), h--); break; case 1: for (A = 0, C = Math.pow(2, 16), E = 1; E != C; ) ((w = P.val & P.position), (P.position >>= 1), P.position == 0 && ((P.position = d), (P.val = p(P.index++))), (A |= (w > 0 ? 1 : 0) * E), (E <<= 1)); ((f[m++] = n(A)), (_ = m - 1), h--); break; case 2: return g.join(""); } if ((h == 0 && ((h = Math.pow(2, y)), y++), f[_])) b = f[_]; else if (_ === m) b = x + x.charAt(0); else return null; (g.push(b), (f[m++] = x + b.charAt(0)), h--, (x = b), h == 0 && ((h = Math.pow(2, y)), y++)); } }, "_decompress"), }; return l; })(); typeof define == "function" && define.amd ? define(function () { return r; }) : typeof t < "u" && t != null ? (t.exports = r) : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function () { return r; }); }), J1 = N((e, t) => { (function (r) { if (typeof e == "object" && typeof t < "u") t.exports = r(); else if (typeof define == "function" && define.amd) define([], r); else { var n; (typeof window < "u" ? (n = window) : typeof global < "u" ? (n = global) : typeof self < "u" ? (n = self) : (n = this), (n.memoizerific = r())); } })(function () { return s(function r(n, a, o) { function i(c, d) { if (!a[c]) { if (!n[c]) { var p = typeof Vs == "function" && Vs; if (!d && p) return p(c, !0); if (u) return u(c, !0); var f = new Error("Cannot find module '" + c + "'"); throw ((f.code = "MODULE_NOT_FOUND"), f); } var h = (a[c] = { exports: {} }); n[c][0].call( h.exports, function (m) { var y = n[c][1][m]; return i(y || m); }, h, h.exports, r, n, a, o, ); } return a[c].exports; } s(i, "s"); for (var u = typeof Vs == "function" && Vs, l = 0; l < o.length; l++) i(o[l]); return i; }, "e")( { 1: [ function (r, n, a) { n.exports = function (o) { if (typeof Map != "function" || o) { var i = r("./similar"); return new i(); } else return new Map(); }; }, { "./similar": 2 }, ], 2: [ function (r, n, a) { function o() { return ( (this.list = []), (this.lastItem = void 0), (this.size = 0), this ); } (s(o, "Similar"), (o.prototype.get = function (i) { var u; if (this.lastItem && this.isEqual(this.lastItem.key, i)) return this.lastItem.val; if (((u = this.indexOf(i)), u >= 0)) return ((this.lastItem = this.list[u]), this.list[u].val); }), (o.prototype.set = function (i, u) { var l; return this.lastItem && this.isEqual(this.lastItem.key, i) ? ((this.lastItem.val = u), this) : ((l = this.indexOf(i)), l >= 0 ? ((this.lastItem = this.list[l]), (this.list[l].val = u), this) : ((this.lastItem = { key: i, val: u }), this.list.push(this.lastItem), this.size++, this)); }), (o.prototype.delete = function (i) { var u; if ( (this.lastItem && this.isEqual(this.lastItem.key, i) && (this.lastItem = void 0), (u = this.indexOf(i)), u >= 0) ) return (this.size--, this.list.splice(u, 1)[0]); }), (o.prototype.has = function (i) { var u; return this.lastItem && this.isEqual(this.lastItem.key, i) ? !0 : ((u = this.indexOf(i)), u >= 0 ? ((this.lastItem = this.list[u]), !0) : !1); }), (o.prototype.forEach = function (i, u) { var l; for (l = 0; l < this.size; l++) i.call(u || this, this.list[l].val, this.list[l].key, this); }), (o.prototype.indexOf = function (i) { var u; for (u = 0; u < this.size; u++) if (this.isEqual(this.list[u].key, i)) return u; return -1; }), (o.prototype.isEqual = function (i, u) { return i === u || (i !== i && u !== u); }), (n.exports = o)); }, {}, ], 3: [ function (r, n, a) { var o = r("map-or-similar"); n.exports = function (c) { var d = new o(!1), p = []; return function (f) { var h = s(function () { var m = d, y, b, g = arguments.length - 1, v = Array(g + 1), x = !0, A; if ((h.numArgs || h.numArgs === 0) && h.numArgs !== g + 1) throw new Error( "Memoizerific functions should always be called with the same number of arguments", ); for (A = 0; A < g; A++) { if ( ((v[A] = { cacheItem: m, arg: arguments[A] }), m.has(arguments[A])) ) { m = m.get(arguments[A]); continue; } ((x = !1), (y = new o(!1)), m.set(arguments[A], y), (m = y)); } return ( x && (m.has(arguments[g]) ? (b = m.get(arguments[g])) : (x = !1)), x || ((b = f.apply(null, arguments)), m.set(arguments[g], b)), c > 0 && ((v[g] = { cacheItem: m, arg: arguments[g] }), x ? i(p, v) : p.push(v), p.length > c && u(p.shift())), (h.wasMemoized = x), (h.numArgs = g + 1), b ); }, "memoizerific"); return ( (h.limit = c), (h.wasMemoized = !1), (h.cache = d), (h.lru = p), h ); }; }; function i(c, d) { var p = c.length, f = d.length, h, m, y; for (m = 0; m < p; m++) { for (h = !0, y = 0; y < f; y++) if (!l(c[m][y].arg, d[y].arg)) { h = !1; break; } if (h) break; } c.push(c.splice(m, 1)[0]); } s(i, "moveToMostRecentLru"); function u(c) { var d = c.length, p = c[d - 1], f, h; for ( p.cacheItem.delete(p.arg), h = d - 2; h >= 0 && ((p = c[h]), (f = p.cacheItem.get(p.arg)), !f || !f.size); h-- ) p.cacheItem.delete(p.arg); } s(u, "removeCachedResult"); function l(c, d) { return c === d || (c !== c && d !== d); } s(l, "isEqual"); }, { "map-or-similar": 1 }, ], }, {}, [3], )(3); }); }), X1 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.encodeString = n)); var t = Array.from( { length: 256 }, (a, o) => "%" + ((o < 16 ? "0" : "") + o.toString(16)).toUpperCase(), ), r = new Int8Array([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, ]); function n(a) { let o = a.length; if (o === 0) return ""; let i = "", u = 0, l = 0; e: for (; l < o; l++) { let c = a.charCodeAt(l); for (; c < 128; ) { if ( (r[c] !== 1 && (u < l && (i += a.slice(u, l)), (u = l + 1), (i += t[c])), ++l === o) ) break e; c = a.charCodeAt(l); } if ((u < l && (i += a.slice(u, l)), c < 2048)) { ((u = l + 1), (i += t[192 | (c >> 6)] + t[128 | (c & 63)])); continue; } if (c < 55296 || c >= 57344) { ((u = l + 1), (i += t[224 | (c >> 12)] + t[128 | ((c >> 6) & 63)] + t[128 | (c & 63)])); continue; } if ((++l, l >= o)) throw new Error("URI malformed"); let d = a.charCodeAt(l) & 1023; ((u = l + 1), (c = 65536 + (((c & 1023) << 10) | d)), (i += t[240 | (c >> 18)] + t[128 | ((c >> 12) & 63)] + t[128 | ((c >> 6) & 63)] + t[128 | (c & 63)])); } return u === 0 ? a : u < o ? i + a.slice(u) : i; } s(n, "encodeString"); }), Gy = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.defaultOptions = e.defaultShouldSerializeObject = e.defaultValueSerializer = void 0)); var t = X1(), r = s((o) => { switch (typeof o) { case "string": return (0, t.encodeString)(o); case "bigint": case "boolean": return "" + o; case "number": if (Number.isFinite(o)) return o < 1e21 ? "" + o : (0, t.encodeString)("" + o); break; } return o instanceof Date ? (0, t.encodeString)(o.toISOString()) : ""; }, "defaultValueSerializer"); e.defaultValueSerializer = r; var n = s((o) => o instanceof Date, "defaultShouldSerializeObject"); e.defaultShouldSerializeObject = n; var a = s((o) => o, "identityFunc"); e.defaultOptions = { nesting: !0, nestingSyntax: "dot", arrayRepeat: !1, arrayRepeatSyntax: "repeat", delimiter: 38, valueDeserializer: a, valueSerializer: e.defaultValueSerializer, keyDeserializer: a, shouldSerializeObject: e.defaultShouldSerializeObject, }; }), K1 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.getDeepObject = a), (e.stringifyObject = d)); var t = Gy(), r = X1(); function n(p) { return p === "__proto__" || p === "constructor" || p === "prototype"; } s(n, "isPrototypeKey"); function a(p, f, h, m, y) { if (n(f)) return p; let b = p[f]; return typeof b == "object" && b !== null ? b : !m && (y || typeof h == "number" || (typeof h == "string" && h * 0 === 0 && h.indexOf(".") === -1)) ? (p[f] = []) : (p[f] = {}); } s(a, "getDeepObject"); var o = 20, i = "[]", u = "[", l = "]", c = "."; function d(p, f, h = 0, m, y) { let { nestingSyntax: b = t.defaultOptions.nestingSyntax, arrayRepeat: g = t.defaultOptions.arrayRepeat, arrayRepeatSyntax: v = t.defaultOptions.arrayRepeatSyntax, nesting: x = t.defaultOptions.nesting, delimiter: A = t.defaultOptions.delimiter, valueSerializer: w = t.defaultOptions.valueSerializer, shouldSerializeObject: C = t.defaultOptions.shouldSerializeObject, } = f, E = typeof A == "number" ? String.fromCharCode(A) : A, _ = y === !0 && g, P = b === "dot" || (b === "js" && !y); if (h > o) return ""; let D = "", F = !0, L = !1; for (let q in p) { let T = p[q], k; (m ? ((k = m), _ ? v === "bracket" && (k += i) : P ? ((k += c), (k += q)) : ((k += u), (k += q), (k += l))) : (k = q), F || (D += E), typeof T == "object" && T !== null && !C(T) ? ((L = T.pop !== void 0), (x || (g && L)) && (D += d(T, f, h + 1, k, L))) : ((D += (0, r.encodeString)(k)), (D += "="), (D += w(T, q))), F && (F = !1)); } return D; } s(d, "stringifyObject"); }), R9 = N((e, t) => { var r = 12, n = 0, a = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 7, 7, 10, 9, 9, 9, 11, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 24, 36, 48, 60, 72, 84, 96, 0, 12, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 24, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 48, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 63, 63, 63, 0, 31, 15, 15, 15, 7, 7, 7, ]; function o(l) { var c = l.indexOf("%"); if (c === -1) return l; for ( var d = l.length, p = "", f = 0, h = 0, m = c, y = r; c > -1 && c < d; ) { var b = u(l[c + 1], 4), g = u(l[c + 2], 0), v = b | g, x = a[v]; if (((y = a[256 + y + x]), (h = (h << 6) | (v & a[364 + x])), y === r)) ((p += l.slice(f, m)), (p += h <= 65535 ? String.fromCharCode(h) : String.fromCharCode(55232 + (h >> 10), 56320 + (h & 1023))), (h = 0), (f = c + 3), (c = m = l.indexOf("%", f))); else { if (y === n) return null; if (((c += 3), c < d && l.charCodeAt(c) === 37)) continue; return null; } } return p + l.slice(f); } s(o, "decodeURIComponent"); var i = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, a: 10, A: 10, b: 11, B: 11, c: 12, C: 12, d: 13, D: 13, e: 14, E: 14, f: 15, F: 15, }; function u(l, c) { var d = i[l]; return d === void 0 ? 255 : d << c; } (s(u, "hexCodeToInt"), (t.exports = o)); }), T9 = N((e) => { var t = (e && e.__importDefault) || function (p) { return p && p.__esModule ? p : { default: p }; }; (Object.defineProperty(e, "__esModule", { value: !0 }), (e.numberValueDeserializer = e.numberKeyDeserializer = void 0), (e.parse = d)); var r = K1(), n = Gy(), a = t(R9()), o = s((p) => { let f = Number(p); return Number.isNaN(f) ? p : f; }, "numberKeyDeserializer"); e.numberKeyDeserializer = o; var i = s((p) => { let f = Number(p); return Number.isNaN(f) ? p : f; }, "numberValueDeserializer"); e.numberValueDeserializer = i; var u = /\+/g, l = s(function () {}, "Empty"); l.prototype = Object.create(null); function c(p, f, h, m, y) { let b = p.substring(f, h); return ( m && (b = b.replace(u, " ")), y && (b = (0, a.default)(b) || b), b ); } s(c, "computeKeySlice"); function d(p, f) { let { valueDeserializer: h = n.defaultOptions.valueDeserializer, keyDeserializer: m = n.defaultOptions.keyDeserializer, arrayRepeatSyntax: y = n.defaultOptions.arrayRepeatSyntax, nesting: b = n.defaultOptions.nesting, arrayRepeat: g = n.defaultOptions.arrayRepeat, nestingSyntax: v = n.defaultOptions.nestingSyntax, delimiter: x = n.defaultOptions.delimiter, } = f ?? {}, A = typeof x == "string" ? x.charCodeAt(0) : x, w = v === "js", C = new l(); if (typeof p != "string") return C; let E = p.length, _ = "", P = -1, D = -1, F = -1, L = C, q, T = "", k = "", I = !1, W = !1, Q = !1, se = !1, H = !1, K = !1, V = !1, Z = 0, re = -1, he = -1, oe = -1; for (let ge = 0; ge < E + 1; ge++) { if (((Z = ge !== E ? p.charCodeAt(ge) : A), Z === A)) { if ( ((V = D > P), V || (D = ge), F !== D - 1 && ((k = c(p, F + 1, re > -1 ? re : D, Q, I)), (T = m(k)), q !== void 0 && (L = (0, r.getDeepObject)(L, q, T, w && H, w && K))), V || T !== "") ) { V && ((_ = p.slice(D + 1, ge)), se && (_ = _.replace(u, " ")), W && (_ = (0, a.default)(_) || _)); let be = h(_, T); if (g) { let rt = L[T]; rt === void 0 ? re > -1 ? (L[T] = [be]) : (L[T] = be) : rt.pop ? rt.push(be) : (L[T] = [rt, be]); } else L[T] = be; } ((_ = ""), (P = ge), (D = ge), (I = !1), (W = !1), (Q = !1), (se = !1), (H = !1), (K = !1), (re = -1), (F = ge), (L = C), (q = void 0), (T = "")); } else Z === 93 ? (g && y === "bracket" && oe === 91 && (re = he), b && (v === "index" || w) && D <= P && (F !== he && ((k = c(p, F + 1, ge, Q, I)), (T = m(k)), q !== void 0 && (L = (0, r.getDeepObject)(L, q, T, void 0, w)), (q = T), (Q = !1), (I = !1)), (F = ge), (K = !0), (H = !1))) : Z === 46 ? b && (v === "dot" || w) && D <= P && (F !== he && ((k = c(p, F + 1, ge, Q, I)), (T = m(k)), q !== void 0 && (L = (0, r.getDeepObject)(L, q, T, w)), (q = T), (Q = !1), (I = !1)), (H = !0), (K = !1), (F = ge)) : Z === 91 ? b && (v === "index" || w) && D <= P && (F !== he && ((k = c(p, F + 1, ge, Q, I)), (T = m(k)), w && q !== void 0 && (L = (0, r.getDeepObject)(L, q, T, w)), (q = T), (Q = !1), (I = !1), (H = !1), (K = !0)), (F = ge)) : Z === 61 ? D <= P ? (D = ge) : (W = !0) : Z === 43 ? D > P ? (se = !0) : (Q = !0) : Z === 37 && (D > P ? (W = !0) : (I = !0)); ((he = ge), (oe = Z)); } return C; } s(d, "parse"); }), O9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.stringify = r)); var t = K1(); function r(n, a) { if (n === null || typeof n != "object") return ""; let o = a ?? {}; return (0, t.stringifyObject)(n, o); } s(r, "stringify"); }), Wy = N((e) => { var t = (e && e.__createBinding) || (Object.create ? function (o, i, u, l) { l === void 0 && (l = u); var c = Object.getOwnPropertyDescriptor(i, u); ((!c || ("get" in c ? !i.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: s(function () { return i[u]; }, "get"), }), Object.defineProperty(o, l, c)); } : function (o, i, u, l) { (l === void 0 && (l = u), (o[l] = i[u])); }), r = (e && e.__exportStar) || function (o, i) { for (var u in o) u !== "default" && !Object.prototype.hasOwnProperty.call(i, u) && t(i, o, u); }; (Object.defineProperty(e, "__esModule", { value: !0 }), (e.stringify = e.parse = void 0)); var n = T9(); Object.defineProperty(e, "parse", { enumerable: !0, get: s(function () { return n.parse; }, "get"), }); var a = O9(); (Object.defineProperty(e, "stringify", { enumerable: !0, get: s(function () { return a.stringify; }, "get"), }), r(Gy(), e)); }), Y1 = N((e, t) => { t.exports = { Aacute: "Á", aacute: "á", Abreve: "Ă", abreve: "ă", ac: "∾", acd: "∿", acE: "∾̳", Acirc: "Â", acirc: "â", acute: "´", Acy: "А", acy: "а", AElig: "Æ", aelig: "æ", af: "⁡", Afr: "𝔄", afr: "𝔞", Agrave: "À", agrave: "à", alefsym: "ℵ", aleph: "ℵ", Alpha: "Α", alpha: "α", Amacr: "Ā", amacr: "ā", amalg: "⨿", amp: "&", AMP: "&", andand: "⩕", And: "⩓", and: "∧", andd: "⩜", andslope: "⩘", andv: "⩚", ang: "∠", ange: "⦤", angle: "∠", angmsdaa: "⦨", angmsdab: "⦩", angmsdac: "⦪", angmsdad: "⦫", angmsdae: "⦬", angmsdaf: "⦭", angmsdag: "⦮", angmsdah: "⦯", angmsd: "∡", angrt: "∟", angrtvb: "⊾", angrtvbd: "⦝", angsph: "∢", angst: "Å", angzarr: "⍼", Aogon: "Ą", aogon: "ą", Aopf: "𝔸", aopf: "𝕒", apacir: "⩯", ap: "≈", apE: "⩰", ape: "≊", apid: "≋", apos: "'", ApplyFunction: "⁡", approx: "≈", approxeq: "≊", Aring: "Å", aring: "å", Ascr: "𝒜", ascr: "𝒶", Assign: "≔", ast: "*", asymp: "≈", asympeq: "≍", Atilde: "Ã", atilde: "ã", Auml: "Ä", auml: "ä", awconint: "∳", awint: "⨑", backcong: "≌", backepsilon: "϶", backprime: "‵", backsim: "∽", backsimeq: "⋍", Backslash: "∖", Barv: "⫧", barvee: "⊽", barwed: "⌅", Barwed: "⌆", barwedge: "⌅", bbrk: "⎵", bbrktbrk: "⎶", bcong: "≌", Bcy: "Б", bcy: "б", bdquo: "„", becaus: "∵", because: "∵", Because: "∵", bemptyv: "⦰", bepsi: "϶", bernou: "ℬ", Bernoullis: "ℬ", Beta: "Β", beta: "β", beth: "ℶ", between: "≬", Bfr: "𝔅", bfr: "𝔟", bigcap: "⋂", bigcirc: "◯", bigcup: "⋃", bigodot: "⨀", bigoplus: "⨁", bigotimes: "⨂", bigsqcup: "⨆", bigstar: "★", bigtriangledown: "▽", bigtriangleup: "△", biguplus: "⨄", bigvee: "⋁", bigwedge: "⋀", bkarow: "⤍", blacklozenge: "⧫", blacksquare: "▪", blacktriangle: "▴", blacktriangledown: "▾", blacktriangleleft: "◂", blacktriangleright: "▸", blank: "␣", blk12: "▒", blk14: "░", blk34: "▓", block: "█", bne: "=⃥", bnequiv: "≡⃥", bNot: "⫭", bnot: "⌐", Bopf: "𝔹", bopf: "𝕓", bot: "⊥", bottom: "⊥", bowtie: "⋈", boxbox: "⧉", boxdl: "┐", boxdL: "╕", boxDl: "╖", boxDL: "╗", boxdr: "┌", boxdR: "╒", boxDr: "╓", boxDR: "╔", boxh: "─", boxH: "═", boxhd: "┬", boxHd: "╤", boxhD: "╥", boxHD: "╦", boxhu: "┴", boxHu: "╧", boxhU: "╨", boxHU: "╩", boxminus: "⊟", boxplus: "⊞", boxtimes: "⊠", boxul: "┘", boxuL: "╛", boxUl: "╜", boxUL: "╝", boxur: "└", boxuR: "╘", boxUr: "╙", boxUR: "╚", boxv: "│", boxV: "║", boxvh: "┼", boxvH: "╪", boxVh: "╫", boxVH: "╬", boxvl: "┤", boxvL: "╡", boxVl: "╢", boxVL: "╣", boxvr: "├", boxvR: "╞", boxVr: "╟", boxVR: "╠", bprime: "‵", breve: "˘", Breve: "˘", brvbar: "¦", bscr: "𝒷", Bscr: "ℬ", bsemi: "⁏", bsim: "∽", bsime: "⋍", bsolb: "⧅", bsol: "\\", bsolhsub: "⟈", bull: "•", bullet: "•", bump: "≎", bumpE: "⪮", bumpe: "≏", Bumpeq: "≎", bumpeq: "≏", Cacute: "Ć", cacute: "ć", capand: "⩄", capbrcup: "⩉", capcap: "⩋", cap: "∩", Cap: "⋒", capcup: "⩇", capdot: "⩀", CapitalDifferentialD: "ⅅ", caps: "∩︀", caret: "⁁", caron: "ˇ", Cayleys: "ℭ", ccaps: "⩍", Ccaron: "Č", ccaron: "č", Ccedil: "Ç", ccedil: "ç", Ccirc: "Ĉ", ccirc: "ĉ", Cconint: "∰", ccups: "⩌", ccupssm: "⩐", Cdot: "Ċ", cdot: "ċ", cedil: "¸", Cedilla: "¸", cemptyv: "⦲", cent: "¢", centerdot: "·", CenterDot: "·", cfr: "𝔠", Cfr: "ℭ", CHcy: "Ч", chcy: "ч", check: "✓", checkmark: "✓", Chi: "Χ", chi: "χ", circ: "ˆ", circeq: "≗", circlearrowleft: "↺", circlearrowright: "↻", circledast: "⊛", circledcirc: "⊚", circleddash: "⊝", CircleDot: "⊙", circledR: "®", circledS: "Ⓢ", CircleMinus: "⊖", CirclePlus: "⊕", CircleTimes: "⊗", cir: "○", cirE: "⧃", cire: "≗", cirfnint: "⨐", cirmid: "⫯", cirscir: "⧂", ClockwiseContourIntegral: "∲", CloseCurlyDoubleQuote: "”", CloseCurlyQuote: "’", clubs: "♣", clubsuit: "♣", colon: ":", Colon: "∷", Colone: "⩴", colone: "≔", coloneq: "≔", comma: ",", commat: "@", comp: "∁", compfn: "∘", complement: "∁", complexes: "ℂ", cong: "≅", congdot: "⩭", Congruent: "≡", conint: "∮", Conint: "∯", ContourIntegral: "∮", copf: "𝕔", Copf: "ℂ", coprod: "∐", Coproduct: "∐", copy: "©", COPY: "©", copysr: "℗", CounterClockwiseContourIntegral: "∳", crarr: "↵", cross: "✗", Cross: "⨯", Cscr: "𝒞", cscr: "𝒸", csub: "⫏", csube: "⫑", csup: "⫐", csupe: "⫒", ctdot: "⋯", cudarrl: "⤸", cudarrr: "⤵", cuepr: "⋞", cuesc: "⋟", cularr: "↶", cularrp: "⤽", cupbrcap: "⩈", cupcap: "⩆", CupCap: "≍", cup: "∪", Cup: "⋓", cupcup: "⩊", cupdot: "⊍", cupor: "⩅", cups: "∪︀", curarr: "↷", curarrm: "⤼", curlyeqprec: "⋞", curlyeqsucc: "⋟", curlyvee: "⋎", curlywedge: "⋏", curren: "¤", curvearrowleft: "↶", curvearrowright: "↷", cuvee: "⋎", cuwed: "⋏", cwconint: "∲", cwint: "∱", cylcty: "⌭", dagger: "†", Dagger: "‡", daleth: "ℸ", darr: "↓", Darr: "↡", dArr: "⇓", dash: "‐", Dashv: "⫤", dashv: "⊣", dbkarow: "⤏", dblac: "˝", Dcaron: "Ď", dcaron: "ď", Dcy: "Д", dcy: "д", ddagger: "‡", ddarr: "⇊", DD: "ⅅ", dd: "ⅆ", DDotrahd: "⤑", ddotseq: "⩷", deg: "°", Del: "∇", Delta: "Δ", delta: "δ", demptyv: "⦱", dfisht: "⥿", Dfr: "𝔇", dfr: "𝔡", dHar: "⥥", dharl: "⇃", dharr: "⇂", DiacriticalAcute: "´", DiacriticalDot: "˙", DiacriticalDoubleAcute: "˝", DiacriticalGrave: "`", DiacriticalTilde: "˜", diam: "⋄", diamond: "⋄", Diamond: "⋄", diamondsuit: "♦", diams: "♦", die: "¨", DifferentialD: "ⅆ", digamma: "ϝ", disin: "⋲", div: "÷", divide: "÷", divideontimes: "⋇", divonx: "⋇", DJcy: "Ђ", djcy: "ђ", dlcorn: "⌞", dlcrop: "⌍", dollar: "$", Dopf: "𝔻", dopf: "𝕕", Dot: "¨", dot: "˙", DotDot: "⃜", doteq: "≐", doteqdot: "≑", DotEqual: "≐", dotminus: "∸", dotplus: "∔", dotsquare: "⊡", doublebarwedge: "⌆", DoubleContourIntegral: "∯", DoubleDot: "¨", DoubleDownArrow: "⇓", DoubleLeftArrow: "⇐", DoubleLeftRightArrow: "⇔", DoubleLeftTee: "⫤", DoubleLongLeftArrow: "⟸", DoubleLongLeftRightArrow: "⟺", DoubleLongRightArrow: "⟹", DoubleRightArrow: "⇒", DoubleRightTee: "⊨", DoubleUpArrow: "⇑", DoubleUpDownArrow: "⇕", DoubleVerticalBar: "∥", DownArrowBar: "⤓", downarrow: "↓", DownArrow: "↓", Downarrow: "⇓", DownArrowUpArrow: "⇵", DownBreve: "̑", downdownarrows: "⇊", downharpoonleft: "⇃", downharpoonright: "⇂", DownLeftRightVector: "⥐", DownLeftTeeVector: "⥞", DownLeftVectorBar: "⥖", DownLeftVector: "↽", DownRightTeeVector: "⥟", DownRightVectorBar: "⥗", DownRightVector: "⇁", DownTeeArrow: "↧", DownTee: "⊤", drbkarow: "⤐", drcorn: "⌟", drcrop: "⌌", Dscr: "𝒟", dscr: "𝒹", DScy: "Ѕ", dscy: "ѕ", dsol: "⧶", Dstrok: "Đ", dstrok: "đ", dtdot: "⋱", dtri: "▿", dtrif: "▾", duarr: "⇵", duhar: "⥯", dwangle: "⦦", DZcy: "Џ", dzcy: "џ", dzigrarr: "⟿", Eacute: "É", eacute: "é", easter: "⩮", Ecaron: "Ě", ecaron: "ě", Ecirc: "Ê", ecirc: "ê", ecir: "≖", ecolon: "≕", Ecy: "Э", ecy: "э", eDDot: "⩷", Edot: "Ė", edot: "ė", eDot: "≑", ee: "ⅇ", efDot: "≒", Efr: "𝔈", efr: "𝔢", eg: "⪚", Egrave: "È", egrave: "è", egs: "⪖", egsdot: "⪘", el: "⪙", Element: "∈", elinters: "⏧", ell: "ℓ", els: "⪕", elsdot: "⪗", Emacr: "Ē", emacr: "ē", empty: "∅", emptyset: "∅", EmptySmallSquare: "◻", emptyv: "∅", EmptyVerySmallSquare: "▫", emsp13: " ", emsp14: " ", emsp: " ", ENG: "Ŋ", eng: "ŋ", ensp: " ", Eogon: "Ę", eogon: "ę", Eopf: "𝔼", eopf: "𝕖", epar: "⋕", eparsl: "⧣", eplus: "⩱", epsi: "ε", Epsilon: "Ε", epsilon: "ε", epsiv: "ϵ", eqcirc: "≖", eqcolon: "≕", eqsim: "≂", eqslantgtr: "⪖", eqslantless: "⪕", Equal: "⩵", equals: "=", EqualTilde: "≂", equest: "≟", Equilibrium: "⇌", equiv: "≡", equivDD: "⩸", eqvparsl: "⧥", erarr: "⥱", erDot: "≓", escr: "ℯ", Escr: "ℰ", esdot: "≐", Esim: "⩳", esim: "≂", Eta: "Η", eta: "η", ETH: "Ð", eth: "ð", Euml: "Ë", euml: "ë", euro: "€", excl: "!", exist: "∃", Exists: "∃", expectation: "ℰ", exponentiale: "ⅇ", ExponentialE: "ⅇ", fallingdotseq: "≒", Fcy: "Ф", fcy: "ф", female: "♀", ffilig: "ffi", fflig: "ff", ffllig: "ffl", Ffr: "𝔉", ffr: "𝔣", filig: "fi", FilledSmallSquare: "◼", FilledVerySmallSquare: "▪", fjlig: "fj", flat: "♭", fllig: "fl", fltns: "▱", fnof: "ƒ", Fopf: "𝔽", fopf: "𝕗", forall: "∀", ForAll: "∀", fork: "⋔", forkv: "⫙", Fouriertrf: "ℱ", fpartint: "⨍", frac12: "½", frac13: "⅓", frac14: "¼", frac15: "⅕", frac16: "⅙", frac18: "⅛", frac23: "⅔", frac25: "⅖", frac34: "¾", frac35: "⅗", frac38: "⅜", frac45: "⅘", frac56: "⅚", frac58: "⅝", frac78: "⅞", frasl: "⁄", frown: "⌢", fscr: "𝒻", Fscr: "ℱ", gacute: "ǵ", Gamma: "Γ", gamma: "γ", Gammad: "Ϝ", gammad: "ϝ", gap: "⪆", Gbreve: "Ğ", gbreve: "ğ", Gcedil: "Ģ", Gcirc: "Ĝ", gcirc: "ĝ", Gcy: "Г", gcy: "г", Gdot: "Ġ", gdot: "ġ", ge: "≥", gE: "≧", gEl: "⪌", gel: "⋛", geq: "≥", geqq: "≧", geqslant: "⩾", gescc: "⪩", ges: "⩾", gesdot: "⪀", gesdoto: "⪂", gesdotol: "⪄", gesl: "⋛︀", gesles: "⪔", Gfr: "𝔊", gfr: "𝔤", gg: "≫", Gg: "⋙", ggg: "⋙", gimel: "ℷ", GJcy: "Ѓ", gjcy: "ѓ", gla: "⪥", gl: "≷", glE: "⪒", glj: "⪤", gnap: "⪊", gnapprox: "⪊", gne: "⪈", gnE: "≩", gneq: "⪈", gneqq: "≩", gnsim: "⋧", Gopf: "𝔾", gopf: "𝕘", grave: "`", GreaterEqual: "≥", GreaterEqualLess: "⋛", GreaterFullEqual: "≧", GreaterGreater: "⪢", GreaterLess: "≷", GreaterSlantEqual: "⩾", GreaterTilde: "≳", Gscr: "𝒢", gscr: "ℊ", gsim: "≳", gsime: "⪎", gsiml: "⪐", gtcc: "⪧", gtcir: "⩺", gt: ">", GT: ">", Gt: "≫", gtdot: "⋗", gtlPar: "⦕", gtquest: "⩼", gtrapprox: "⪆", gtrarr: "⥸", gtrdot: "⋗", gtreqless: "⋛", gtreqqless: "⪌", gtrless: "≷", gtrsim: "≳", gvertneqq: "≩︀", gvnE: "≩︀", Hacek: "ˇ", hairsp: " ", half: "½", hamilt: "ℋ", HARDcy: "Ъ", hardcy: "ъ", harrcir: "⥈", harr: "↔", hArr: "⇔", harrw: "↭", Hat: "^", hbar: "ℏ", Hcirc: "Ĥ", hcirc: "ĥ", hearts: "♥", heartsuit: "♥", hellip: "…", hercon: "⊹", hfr: "𝔥", Hfr: "ℌ", HilbertSpace: "ℋ", hksearow: "⤥", hkswarow: "⤦", hoarr: "⇿", homtht: "∻", hookleftarrow: "↩", hookrightarrow: "↪", hopf: "𝕙", Hopf: "ℍ", horbar: "―", HorizontalLine: "─", hscr: "𝒽", Hscr: "ℋ", hslash: "ℏ", Hstrok: "Ħ", hstrok: "ħ", HumpDownHump: "≎", HumpEqual: "≏", hybull: "⁃", hyphen: "‐", Iacute: "Í", iacute: "í", ic: "⁣", Icirc: "Î", icirc: "î", Icy: "И", icy: "и", Idot: "İ", IEcy: "Е", iecy: "е", iexcl: "¡", iff: "⇔", ifr: "𝔦", Ifr: "ℑ", Igrave: "Ì", igrave: "ì", ii: "ⅈ", iiiint: "⨌", iiint: "∭", iinfin: "⧜", iiota: "℩", IJlig: "IJ", ijlig: "ij", Imacr: "Ī", imacr: "ī", image: "ℑ", ImaginaryI: "ⅈ", imagline: "ℐ", imagpart: "ℑ", imath: "ı", Im: "ℑ", imof: "⊷", imped: "Ƶ", Implies: "⇒", incare: "℅", in: "∈", infin: "∞", infintie: "⧝", inodot: "ı", intcal: "⊺", int: "∫", Int: "∬", integers: "ℤ", Integral: "∫", intercal: "⊺", Intersection: "⋂", intlarhk: "⨗", intprod: "⨼", InvisibleComma: "⁣", InvisibleTimes: "⁢", IOcy: "Ё", iocy: "ё", Iogon: "Į", iogon: "į", Iopf: "𝕀", iopf: "𝕚", Iota: "Ι", iota: "ι", iprod: "⨼", iquest: "¿", iscr: "𝒾", Iscr: "ℐ", isin: "∈", isindot: "⋵", isinE: "⋹", isins: "⋴", isinsv: "⋳", isinv: "∈", it: "⁢", Itilde: "Ĩ", itilde: "ĩ", Iukcy: "І", iukcy: "і", Iuml: "Ï", iuml: "ï", Jcirc: "Ĵ", jcirc: "ĵ", Jcy: "Й", jcy: "й", Jfr: "𝔍", jfr: "𝔧", jmath: "ȷ", Jopf: "𝕁", jopf: "𝕛", Jscr: "𝒥", jscr: "𝒿", Jsercy: "Ј", jsercy: "ј", Jukcy: "Є", jukcy: "є", Kappa: "Κ", kappa: "κ", kappav: "ϰ", Kcedil: "Ķ", kcedil: "ķ", Kcy: "К", kcy: "к", Kfr: "𝔎", kfr: "𝔨", kgreen: "ĸ", KHcy: "Х", khcy: "х", KJcy: "Ќ", kjcy: "ќ", Kopf: "𝕂", kopf: "𝕜", Kscr: "𝒦", kscr: "𝓀", lAarr: "⇚", Lacute: "Ĺ", lacute: "ĺ", laemptyv: "⦴", lagran: "ℒ", Lambda: "Λ", lambda: "λ", lang: "⟨", Lang: "⟪", langd: "⦑", langle: "⟨", lap: "⪅", Laplacetrf: "ℒ", laquo: "«", larrb: "⇤", larrbfs: "⤟", larr: "←", Larr: "↞", lArr: "⇐", larrfs: "⤝", larrhk: "↩", larrlp: "↫", larrpl: "⤹", larrsim: "⥳", larrtl: "↢", latail: "⤙", lAtail: "⤛", lat: "⪫", late: "⪭", lates: "⪭︀", lbarr: "⤌", lBarr: "⤎", lbbrk: "❲", lbrace: "{", lbrack: "[", lbrke: "⦋", lbrksld: "⦏", lbrkslu: "⦍", Lcaron: "Ľ", lcaron: "ľ", Lcedil: "Ļ", lcedil: "ļ", lceil: "⌈", lcub: "{", Lcy: "Л", lcy: "л", ldca: "⤶", ldquo: "“", ldquor: "„", ldrdhar: "⥧", ldrushar: "⥋", ldsh: "↲", le: "≤", lE: "≦", LeftAngleBracket: "⟨", LeftArrowBar: "⇤", leftarrow: "←", LeftArrow: "←", Leftarrow: "⇐", LeftArrowRightArrow: "⇆", leftarrowtail: "↢", LeftCeiling: "⌈", LeftDoubleBracket: "⟦", LeftDownTeeVector: "⥡", LeftDownVectorBar: "⥙", LeftDownVector: "⇃", LeftFloor: "⌊", leftharpoondown: "↽", leftharpoonup: "↼", leftleftarrows: "⇇", leftrightarrow: "↔", LeftRightArrow: "↔", Leftrightarrow: "⇔", leftrightarrows: "⇆", leftrightharpoons: "⇋", leftrightsquigarrow: "↭", LeftRightVector: "⥎", LeftTeeArrow: "↤", LeftTee: "⊣", LeftTeeVector: "⥚", leftthreetimes: "⋋", LeftTriangleBar: "⧏", LeftTriangle: "⊲", LeftTriangleEqual: "⊴", LeftUpDownVector: "⥑", LeftUpTeeVector: "⥠", LeftUpVectorBar: "⥘", LeftUpVector: "↿", LeftVectorBar: "⥒", LeftVector: "↼", lEg: "⪋", leg: "⋚", leq: "≤", leqq: "≦", leqslant: "⩽", lescc: "⪨", les: "⩽", lesdot: "⩿", lesdoto: "⪁", lesdotor: "⪃", lesg: "⋚︀", lesges: "⪓", lessapprox: "⪅", lessdot: "⋖", lesseqgtr: "⋚", lesseqqgtr: "⪋", LessEqualGreater: "⋚", LessFullEqual: "≦", LessGreater: "≶", lessgtr: "≶", LessLess: "⪡", lesssim: "≲", LessSlantEqual: "⩽", LessTilde: "≲", lfisht: "⥼", lfloor: "⌊", Lfr: "𝔏", lfr: "𝔩", lg: "≶", lgE: "⪑", lHar: "⥢", lhard: "↽", lharu: "↼", lharul: "⥪", lhblk: "▄", LJcy: "Љ", ljcy: "љ", llarr: "⇇", ll: "≪", Ll: "⋘", llcorner: "⌞", Lleftarrow: "⇚", llhard: "⥫", lltri: "◺", Lmidot: "Ŀ", lmidot: "ŀ", lmoustache: "⎰", lmoust: "⎰", lnap: "⪉", lnapprox: "⪉", lne: "⪇", lnE: "≨", lneq: "⪇", lneqq: "≨", lnsim: "⋦", loang: "⟬", loarr: "⇽", lobrk: "⟦", longleftarrow: "⟵", LongLeftArrow: "⟵", Longleftarrow: "⟸", longleftrightarrow: "⟷", LongLeftRightArrow: "⟷", Longleftrightarrow: "⟺", longmapsto: "⟼", longrightarrow: "⟶", LongRightArrow: "⟶", Longrightarrow: "⟹", looparrowleft: "↫", looparrowright: "↬", lopar: "⦅", Lopf: "𝕃", lopf: "𝕝", loplus: "⨭", lotimes: "⨴", lowast: "∗", lowbar: "_", LowerLeftArrow: "↙", LowerRightArrow: "↘", loz: "◊", lozenge: "◊", lozf: "⧫", lpar: "(", lparlt: "⦓", lrarr: "⇆", lrcorner: "⌟", lrhar: "⇋", lrhard: "⥭", lrm: "‎", lrtri: "⊿", lsaquo: "‹", lscr: "𝓁", Lscr: "ℒ", lsh: "↰", Lsh: "↰", lsim: "≲", lsime: "⪍", lsimg: "⪏", lsqb: "[", lsquo: "‘", lsquor: "‚", Lstrok: "Ł", lstrok: "ł", ltcc: "⪦", ltcir: "⩹", lt: "<", LT: "<", Lt: "≪", ltdot: "⋖", lthree: "⋋", ltimes: "⋉", ltlarr: "⥶", ltquest: "⩻", ltri: "◃", ltrie: "⊴", ltrif: "◂", ltrPar: "⦖", lurdshar: "⥊", luruhar: "⥦", lvertneqq: "≨︀", lvnE: "≨︀", macr: "¯", male: "♂", malt: "✠", maltese: "✠", Map: "⤅", map: "↦", mapsto: "↦", mapstodown: "↧", mapstoleft: "↤", mapstoup: "↥", marker: "▮", mcomma: "⨩", Mcy: "М", mcy: "м", mdash: "—", mDDot: "∺", measuredangle: "∡", MediumSpace: " ", Mellintrf: "ℳ", Mfr: "𝔐", mfr: "𝔪", mho: "℧", micro: "µ", midast: "*", midcir: "⫰", mid: "∣", middot: "·", minusb: "⊟", minus: "−", minusd: "∸", minusdu: "⨪", MinusPlus: "∓", mlcp: "⫛", mldr: "…", mnplus: "∓", models: "⊧", Mopf: "𝕄", mopf: "𝕞", mp: "∓", mscr: "𝓂", Mscr: "ℳ", mstpos: "∾", Mu: "Μ", mu: "μ", multimap: "⊸", mumap: "⊸", nabla: "∇", Nacute: "Ń", nacute: "ń", nang: "∠⃒", nap: "≉", napE: "⩰̸", napid: "≋̸", napos: "ʼn", napprox: "≉", natural: "♮", naturals: "ℕ", natur: "♮", nbsp: " ", nbump: "≎̸", nbumpe: "≏̸", ncap: "⩃", Ncaron: "Ň", ncaron: "ň", Ncedil: "Ņ", ncedil: "ņ", ncong: "≇", ncongdot: "⩭̸", ncup: "⩂", Ncy: "Н", ncy: "н", ndash: "–", nearhk: "⤤", nearr: "↗", neArr: "⇗", nearrow: "↗", ne: "≠", nedot: "≐̸", NegativeMediumSpace: "​", NegativeThickSpace: "​", NegativeThinSpace: "​", NegativeVeryThinSpace: "​", nequiv: "≢", nesear: "⤨", nesim: "≂̸", NestedGreaterGreater: "≫", NestedLessLess: "≪", NewLine: ` `, nexist: "∄", nexists: "∄", Nfr: "𝔑", nfr: "𝔫", ngE: "≧̸", nge: "≱", ngeq: "≱", ngeqq: "≧̸", ngeqslant: "⩾̸", nges: "⩾̸", nGg: "⋙̸", ngsim: "≵", nGt: "≫⃒", ngt: "≯", ngtr: "≯", nGtv: "≫̸", nharr: "↮", nhArr: "⇎", nhpar: "⫲", ni: "∋", nis: "⋼", nisd: "⋺", niv: "∋", NJcy: "Њ", njcy: "њ", nlarr: "↚", nlArr: "⇍", nldr: "‥", nlE: "≦̸", nle: "≰", nleftarrow: "↚", nLeftarrow: "⇍", nleftrightarrow: "↮", nLeftrightarrow: "⇎", nleq: "≰", nleqq: "≦̸", nleqslant: "⩽̸", nles: "⩽̸", nless: "≮", nLl: "⋘̸", nlsim: "≴", nLt: "≪⃒", nlt: "≮", nltri: "⋪", nltrie: "⋬", nLtv: "≪̸", nmid: "∤", NoBreak: "⁠", NonBreakingSpace: " ", nopf: "𝕟", Nopf: "ℕ", Not: "⫬", not: "¬", NotCongruent: "≢", NotCupCap: "≭", NotDoubleVerticalBar: "∦", NotElement: "∉", NotEqual: "≠", NotEqualTilde: "≂̸", NotExists: "∄", NotGreater: "≯", NotGreaterEqual: "≱", NotGreaterFullEqual: "≧̸", NotGreaterGreater: "≫̸", NotGreaterLess: "≹", NotGreaterSlantEqual: "⩾̸", NotGreaterTilde: "≵", NotHumpDownHump: "≎̸", NotHumpEqual: "≏̸", notin: "∉", notindot: "⋵̸", notinE: "⋹̸", notinva: "∉", notinvb: "⋷", notinvc: "⋶", NotLeftTriangleBar: "⧏̸", NotLeftTriangle: "⋪", NotLeftTriangleEqual: "⋬", NotLess: "≮", NotLessEqual: "≰", NotLessGreater: "≸", NotLessLess: "≪̸", NotLessSlantEqual: "⩽̸", NotLessTilde: "≴", NotNestedGreaterGreater: "⪢̸", NotNestedLessLess: "⪡̸", notni: "∌", notniva: "∌", notnivb: "⋾", notnivc: "⋽", NotPrecedes: "⊀", NotPrecedesEqual: "⪯̸", NotPrecedesSlantEqual: "⋠", NotReverseElement: "∌", NotRightTriangleBar: "⧐̸", NotRightTriangle: "⋫", NotRightTriangleEqual: "⋭", NotSquareSubset: "⊏̸", NotSquareSubsetEqual: "⋢", NotSquareSuperset: "⊐̸", NotSquareSupersetEqual: "⋣", NotSubset: "⊂⃒", NotSubsetEqual: "⊈", NotSucceeds: "⊁", NotSucceedsEqual: "⪰̸", NotSucceedsSlantEqual: "⋡", NotSucceedsTilde: "≿̸", NotSuperset: "⊃⃒", NotSupersetEqual: "⊉", NotTilde: "≁", NotTildeEqual: "≄", NotTildeFullEqual: "≇", NotTildeTilde: "≉", NotVerticalBar: "∤", nparallel: "∦", npar: "∦", nparsl: "⫽⃥", npart: "∂̸", npolint: "⨔", npr: "⊀", nprcue: "⋠", nprec: "⊀", npreceq: "⪯̸", npre: "⪯̸", nrarrc: "⤳̸", nrarr: "↛", nrArr: "⇏", nrarrw: "↝̸", nrightarrow: "↛", nRightarrow: "⇏", nrtri: "⋫", nrtrie: "⋭", nsc: "⊁", nsccue: "⋡", nsce: "⪰̸", Nscr: "𝒩", nscr: "𝓃", nshortmid: "∤", nshortparallel: "∦", nsim: "≁", nsime: "≄", nsimeq: "≄", nsmid: "∤", nspar: "∦", nsqsube: "⋢", nsqsupe: "⋣", nsub: "⊄", nsubE: "⫅̸", nsube: "⊈", nsubset: "⊂⃒", nsubseteq: "⊈", nsubseteqq: "⫅̸", nsucc: "⊁", nsucceq: "⪰̸", nsup: "⊅", nsupE: "⫆̸", nsupe: "⊉", nsupset: "⊃⃒", nsupseteq: "⊉", nsupseteqq: "⫆̸", ntgl: "≹", Ntilde: "Ñ", ntilde: "ñ", ntlg: "≸", ntriangleleft: "⋪", ntrianglelefteq: "⋬", ntriangleright: "⋫", ntrianglerighteq: "⋭", Nu: "Ν", nu: "ν", num: "#", numero: "№", numsp: " ", nvap: "≍⃒", nvdash: "⊬", nvDash: "⊭", nVdash: "⊮", nVDash: "⊯", nvge: "≥⃒", nvgt: ">⃒", nvHarr: "⤄", nvinfin: "⧞", nvlArr: "⤂", nvle: "≤⃒", nvlt: "<⃒", nvltrie: "⊴⃒", nvrArr: "⤃", nvrtrie: "⊵⃒", nvsim: "∼⃒", nwarhk: "⤣", nwarr: "↖", nwArr: "⇖", nwarrow: "↖", nwnear: "⤧", Oacute: "Ó", oacute: "ó", oast: "⊛", Ocirc: "Ô", ocirc: "ô", ocir: "⊚", Ocy: "О", ocy: "о", odash: "⊝", Odblac: "Ő", odblac: "ő", odiv: "⨸", odot: "⊙", odsold: "⦼", OElig: "Œ", oelig: "œ", ofcir: "⦿", Ofr: "𝔒", ofr: "𝔬", ogon: "˛", Ograve: "Ò", ograve: "ò", ogt: "⧁", ohbar: "⦵", ohm: "Ω", oint: "∮", olarr: "↺", olcir: "⦾", olcross: "⦻", oline: "‾", olt: "⧀", Omacr: "Ō", omacr: "ō", Omega: "Ω", omega: "ω", Omicron: "Ο", omicron: "ο", omid: "⦶", ominus: "⊖", Oopf: "𝕆", oopf: "𝕠", opar: "⦷", OpenCurlyDoubleQuote: "“", OpenCurlyQuote: "‘", operp: "⦹", oplus: "⊕", orarr: "↻", Or: "⩔", or: "∨", ord: "⩝", order: "ℴ", orderof: "ℴ", ordf: "ª", ordm: "º", origof: "⊶", oror: "⩖", orslope: "⩗", orv: "⩛", oS: "Ⓢ", Oscr: "𝒪", oscr: "ℴ", Oslash: "Ø", oslash: "ø", osol: "⊘", Otilde: "Õ", otilde: "õ", otimesas: "⨶", Otimes: "⨷", otimes: "⊗", Ouml: "Ö", ouml: "ö", ovbar: "⌽", OverBar: "‾", OverBrace: "⏞", OverBracket: "⎴", OverParenthesis: "⏜", para: "¶", parallel: "∥", par: "∥", parsim: "⫳", parsl: "⫽", part: "∂", PartialD: "∂", Pcy: "П", pcy: "п", percnt: "%", period: ".", permil: "‰", perp: "⊥", pertenk: "‱", Pfr: "𝔓", pfr: "𝔭", Phi: "Φ", phi: "φ", phiv: "ϕ", phmmat: "ℳ", phone: "☎", Pi: "Π", pi: "π", pitchfork: "⋔", piv: "ϖ", planck: "ℏ", planckh: "ℎ", plankv: "ℏ", plusacir: "⨣", plusb: "⊞", pluscir: "⨢", plus: "+", plusdo: "∔", plusdu: "⨥", pluse: "⩲", PlusMinus: "±", plusmn: "±", plussim: "⨦", plustwo: "⨧", pm: "±", Poincareplane: "ℌ", pointint: "⨕", popf: "𝕡", Popf: "ℙ", pound: "£", prap: "⪷", Pr: "⪻", pr: "≺", prcue: "≼", precapprox: "⪷", prec: "≺", preccurlyeq: "≼", Precedes: "≺", PrecedesEqual: "⪯", PrecedesSlantEqual: "≼", PrecedesTilde: "≾", preceq: "⪯", precnapprox: "⪹", precneqq: "⪵", precnsim: "⋨", pre: "⪯", prE: "⪳", precsim: "≾", prime: "′", Prime: "″", primes: "ℙ", prnap: "⪹", prnE: "⪵", prnsim: "⋨", prod: "∏", Product: "∏", profalar: "⌮", profline: "⌒", profsurf: "⌓", prop: "∝", Proportional: "∝", Proportion: "∷", propto: "∝", prsim: "≾", prurel: "⊰", Pscr: "𝒫", pscr: "𝓅", Psi: "Ψ", psi: "ψ", puncsp: " ", Qfr: "𝔔", qfr: "𝔮", qint: "⨌", qopf: "𝕢", Qopf: "ℚ", qprime: "⁗", Qscr: "𝒬", qscr: "𝓆", quaternions: "ℍ", quatint: "⨖", quest: "?", questeq: "≟", quot: '"', QUOT: '"', rAarr: "⇛", race: "∽̱", Racute: "Ŕ", racute: "ŕ", radic: "√", raemptyv: "⦳", rang: "⟩", Rang: "⟫", rangd: "⦒", range: "⦥", rangle: "⟩", raquo: "»", rarrap: "⥵", rarrb: "⇥", rarrbfs: "⤠", rarrc: "⤳", rarr: "→", Rarr: "↠", rArr: "⇒", rarrfs: "⤞", rarrhk: "↪", rarrlp: "↬", rarrpl: "⥅", rarrsim: "⥴", Rarrtl: "⤖", rarrtl: "↣", rarrw: "↝", ratail: "⤚", rAtail: "⤜", ratio: "∶", rationals: "ℚ", rbarr: "⤍", rBarr: "⤏", RBarr: "⤐", rbbrk: "❳", rbrace: "}", rbrack: "]", rbrke: "⦌", rbrksld: "⦎", rbrkslu: "⦐", Rcaron: "Ř", rcaron: "ř", Rcedil: "Ŗ", rcedil: "ŗ", rceil: "⌉", rcub: "}", Rcy: "Р", rcy: "р", rdca: "⤷", rdldhar: "⥩", rdquo: "”", rdquor: "”", rdsh: "↳", real: "ℜ", realine: "ℛ", realpart: "ℜ", reals: "ℝ", Re: "ℜ", rect: "▭", reg: "®", REG: "®", ReverseElement: "∋", ReverseEquilibrium: "⇋", ReverseUpEquilibrium: "⥯", rfisht: "⥽", rfloor: "⌋", rfr: "𝔯", Rfr: "ℜ", rHar: "⥤", rhard: "⇁", rharu: "⇀", rharul: "⥬", Rho: "Ρ", rho: "ρ", rhov: "ϱ", RightAngleBracket: "⟩", RightArrowBar: "⇥", rightarrow: "→", RightArrow: "→", Rightarrow: "⇒", RightArrowLeftArrow: "⇄", rightarrowtail: "↣", RightCeiling: "⌉", RightDoubleBracket: "⟧", RightDownTeeVector: "⥝", RightDownVectorBar: "⥕", RightDownVector: "⇂", RightFloor: "⌋", rightharpoondown: "⇁", rightharpoonup: "⇀", rightleftarrows: "⇄", rightleftharpoons: "⇌", rightrightarrows: "⇉", rightsquigarrow: "↝", RightTeeArrow: "↦", RightTee: "⊢", RightTeeVector: "⥛", rightthreetimes: "⋌", RightTriangleBar: "⧐", RightTriangle: "⊳", RightTriangleEqual: "⊵", RightUpDownVector: "⥏", RightUpTeeVector: "⥜", RightUpVectorBar: "⥔", RightUpVector: "↾", RightVectorBar: "⥓", RightVector: "⇀", ring: "˚", risingdotseq: "≓", rlarr: "⇄", rlhar: "⇌", rlm: "‏", rmoustache: "⎱", rmoust: "⎱", rnmid: "⫮", roang: "⟭", roarr: "⇾", robrk: "⟧", ropar: "⦆", ropf: "𝕣", Ropf: "ℝ", roplus: "⨮", rotimes: "⨵", RoundImplies: "⥰", rpar: ")", rpargt: "⦔", rppolint: "⨒", rrarr: "⇉", Rrightarrow: "⇛", rsaquo: "›", rscr: "𝓇", Rscr: "ℛ", rsh: "↱", Rsh: "↱", rsqb: "]", rsquo: "’", rsquor: "’", rthree: "⋌", rtimes: "⋊", rtri: "▹", rtrie: "⊵", rtrif: "▸", rtriltri: "⧎", RuleDelayed: "⧴", ruluhar: "⥨", rx: "℞", Sacute: "Ś", sacute: "ś", sbquo: "‚", scap: "⪸", Scaron: "Š", scaron: "š", Sc: "⪼", sc: "≻", sccue: "≽", sce: "⪰", scE: "⪴", Scedil: "Ş", scedil: "ş", Scirc: "Ŝ", scirc: "ŝ", scnap: "⪺", scnE: "⪶", scnsim: "⋩", scpolint: "⨓", scsim: "≿", Scy: "С", scy: "с", sdotb: "⊡", sdot: "⋅", sdote: "⩦", searhk: "⤥", searr: "↘", seArr: "⇘", searrow: "↘", sect: "§", semi: ";", seswar: "⤩", setminus: "∖", setmn: "∖", sext: "✶", Sfr: "𝔖", sfr: "𝔰", sfrown: "⌢", sharp: "♯", SHCHcy: "Щ", shchcy: "щ", SHcy: "Ш", shcy: "ш", ShortDownArrow: "↓", ShortLeftArrow: "←", shortmid: "∣", shortparallel: "∥", ShortRightArrow: "→", ShortUpArrow: "↑", shy: "­", Sigma: "Σ", sigma: "σ", sigmaf: "ς", sigmav: "ς", sim: "∼", simdot: "⩪", sime: "≃", simeq: "≃", simg: "⪞", simgE: "⪠", siml: "⪝", simlE: "⪟", simne: "≆", simplus: "⨤", simrarr: "⥲", slarr: "←", SmallCircle: "∘", smallsetminus: "∖", smashp: "⨳", smeparsl: "⧤", smid: "∣", smile: "⌣", smt: "⪪", smte: "⪬", smtes: "⪬︀", SOFTcy: "Ь", softcy: "ь", solbar: "⌿", solb: "⧄", sol: "/", Sopf: "𝕊", sopf: "𝕤", spades: "♠", spadesuit: "♠", spar: "∥", sqcap: "⊓", sqcaps: "⊓︀", sqcup: "⊔", sqcups: "⊔︀", Sqrt: "√", sqsub: "⊏", sqsube: "⊑", sqsubset: "⊏", sqsubseteq: "⊑", sqsup: "⊐", sqsupe: "⊒", sqsupset: "⊐", sqsupseteq: "⊒", square: "□", Square: "□", SquareIntersection: "⊓", SquareSubset: "⊏", SquareSubsetEqual: "⊑", SquareSuperset: "⊐", SquareSupersetEqual: "⊒", SquareUnion: "⊔", squarf: "▪", squ: "□", squf: "▪", srarr: "→", Sscr: "𝒮", sscr: "𝓈", ssetmn: "∖", ssmile: "⌣", sstarf: "⋆", Star: "⋆", star: "☆", starf: "★", straightepsilon: "ϵ", straightphi: "ϕ", strns: "¯", sub: "⊂", Sub: "⋐", subdot: "⪽", subE: "⫅", sube: "⊆", subedot: "⫃", submult: "⫁", subnE: "⫋", subne: "⊊", subplus: "⪿", subrarr: "⥹", subset: "⊂", Subset: "⋐", subseteq: "⊆", subseteqq: "⫅", SubsetEqual: "⊆", subsetneq: "⊊", subsetneqq: "⫋", subsim: "⫇", subsub: "⫕", subsup: "⫓", succapprox: "⪸", succ: "≻", succcurlyeq: "≽", Succeeds: "≻", SucceedsEqual: "⪰", SucceedsSlantEqual: "≽", SucceedsTilde: "≿", succeq: "⪰", succnapprox: "⪺", succneqq: "⪶", succnsim: "⋩", succsim: "≿", SuchThat: "∋", sum: "∑", Sum: "∑", sung: "♪", sup1: "¹", sup2: "²", sup3: "³", sup: "⊃", Sup: "⋑", supdot: "⪾", supdsub: "⫘", supE: "⫆", supe: "⊇", supedot: "⫄", Superset: "⊃", SupersetEqual: "⊇", suphsol: "⟉", suphsub: "⫗", suplarr: "⥻", supmult: "⫂", supnE: "⫌", supne: "⊋", supplus: "⫀", supset: "⊃", Supset: "⋑", supseteq: "⊇", supseteqq: "⫆", supsetneq: "⊋", supsetneqq: "⫌", supsim: "⫈", supsub: "⫔", supsup: "⫖", swarhk: "⤦", swarr: "↙", swArr: "⇙", swarrow: "↙", swnwar: "⤪", szlig: "ß", Tab: " ", target: "⌖", Tau: "Τ", tau: "τ", tbrk: "⎴", Tcaron: "Ť", tcaron: "ť", Tcedil: "Ţ", tcedil: "ţ", Tcy: "Т", tcy: "т", tdot: "⃛", telrec: "⌕", Tfr: "𝔗", tfr: "𝔱", there4: "∴", therefore: "∴", Therefore: "∴", Theta: "Θ", theta: "θ", thetasym: "ϑ", thetav: "ϑ", thickapprox: "≈", thicksim: "∼", ThickSpace: "  ", ThinSpace: " ", thinsp: " ", thkap: "≈", thksim: "∼", THORN: "Þ", thorn: "þ", tilde: "˜", Tilde: "∼", TildeEqual: "≃", TildeFullEqual: "≅", TildeTilde: "≈", timesbar: "⨱", timesb: "⊠", times: "×", timesd: "⨰", tint: "∭", toea: "⤨", topbot: "⌶", topcir: "⫱", top: "⊤", Topf: "𝕋", topf: "𝕥", topfork: "⫚", tosa: "⤩", tprime: "‴", trade: "™", TRADE: "™", triangle: "▵", triangledown: "▿", triangleleft: "◃", trianglelefteq: "⊴", triangleq: "≜", triangleright: "▹", trianglerighteq: "⊵", tridot: "◬", trie: "≜", triminus: "⨺", TripleDot: "⃛", triplus: "⨹", trisb: "⧍", tritime: "⨻", trpezium: "⏢", Tscr: "𝒯", tscr: "𝓉", TScy: "Ц", tscy: "ц", TSHcy: "Ћ", tshcy: "ћ", Tstrok: "Ŧ", tstrok: "ŧ", twixt: "≬", twoheadleftarrow: "↞", twoheadrightarrow: "↠", Uacute: "Ú", uacute: "ú", uarr: "↑", Uarr: "↟", uArr: "⇑", Uarrocir: "⥉", Ubrcy: "Ў", ubrcy: "ў", Ubreve: "Ŭ", ubreve: "ŭ", Ucirc: "Û", ucirc: "û", Ucy: "У", ucy: "у", udarr: "⇅", Udblac: "Ű", udblac: "ű", udhar: "⥮", ufisht: "⥾", Ufr: "𝔘", ufr: "𝔲", Ugrave: "Ù", ugrave: "ù", uHar: "⥣", uharl: "↿", uharr: "↾", uhblk: "▀", ulcorn: "⌜", ulcorner: "⌜", ulcrop: "⌏", ultri: "◸", Umacr: "Ū", umacr: "ū", uml: "¨", UnderBar: "_", UnderBrace: "⏟", UnderBracket: "⎵", UnderParenthesis: "⏝", Union: "⋃", UnionPlus: "⊎", Uogon: "Ų", uogon: "ų", Uopf: "𝕌", uopf: "𝕦", UpArrowBar: "⤒", uparrow: "↑", UpArrow: "↑", Uparrow: "⇑", UpArrowDownArrow: "⇅", updownarrow: "↕", UpDownArrow: "↕", Updownarrow: "⇕", UpEquilibrium: "⥮", upharpoonleft: "↿", upharpoonright: "↾", uplus: "⊎", UpperLeftArrow: "↖", UpperRightArrow: "↗", upsi: "υ", Upsi: "ϒ", upsih: "ϒ", Upsilon: "Υ", upsilon: "υ", UpTeeArrow: "↥", UpTee: "⊥", upuparrows: "⇈", urcorn: "⌝", urcorner: "⌝", urcrop: "⌎", Uring: "Ů", uring: "ů", urtri: "◹", Uscr: "𝒰", uscr: "𝓊", utdot: "⋰", Utilde: "Ũ", utilde: "ũ", utri: "▵", utrif: "▴", uuarr: "⇈", Uuml: "Ü", uuml: "ü", uwangle: "⦧", vangrt: "⦜", varepsilon: "ϵ", varkappa: "ϰ", varnothing: "∅", varphi: "ϕ", varpi: "ϖ", varpropto: "∝", varr: "↕", vArr: "⇕", varrho: "ϱ", varsigma: "ς", varsubsetneq: "⊊︀", varsubsetneqq: "⫋︀", varsupsetneq: "⊋︀", varsupsetneqq: "⫌︀", vartheta: "ϑ", vartriangleleft: "⊲", vartriangleright: "⊳", vBar: "⫨", Vbar: "⫫", vBarv: "⫩", Vcy: "В", vcy: "в", vdash: "⊢", vDash: "⊨", Vdash: "⊩", VDash: "⊫", Vdashl: "⫦", veebar: "⊻", vee: "∨", Vee: "⋁", veeeq: "≚", vellip: "⋮", verbar: "|", Verbar: "‖", vert: "|", Vert: "‖", VerticalBar: "∣", VerticalLine: "|", VerticalSeparator: "❘", VerticalTilde: "≀", VeryThinSpace: " ", Vfr: "𝔙", vfr: "𝔳", vltri: "⊲", vnsub: "⊂⃒", vnsup: "⊃⃒", Vopf: "𝕍", vopf: "𝕧", vprop: "∝", vrtri: "⊳", Vscr: "𝒱", vscr: "𝓋", vsubnE: "⫋︀", vsubne: "⊊︀", vsupnE: "⫌︀", vsupne: "⊋︀", Vvdash: "⊪", vzigzag: "⦚", Wcirc: "Ŵ", wcirc: "ŵ", wedbar: "⩟", wedge: "∧", Wedge: "⋀", wedgeq: "≙", weierp: "℘", Wfr: "𝔚", wfr: "𝔴", Wopf: "𝕎", wopf: "𝕨", wp: "℘", wr: "≀", wreath: "≀", Wscr: "𝒲", wscr: "𝓌", xcap: "⋂", xcirc: "◯", xcup: "⋃", xdtri: "▽", Xfr: "𝔛", xfr: "𝔵", xharr: "⟷", xhArr: "⟺", Xi: "Ξ", xi: "ξ", xlarr: "⟵", xlArr: "⟸", xmap: "⟼", xnis: "⋻", xodot: "⨀", Xopf: "𝕏", xopf: "𝕩", xoplus: "⨁", xotime: "⨂", xrarr: "⟶", xrArr: "⟹", Xscr: "𝒳", xscr: "𝓍", xsqcup: "⨆", xuplus: "⨄", xutri: "△", xvee: "⋁", xwedge: "⋀", Yacute: "Ý", yacute: "ý", YAcy: "Я", yacy: "я", Ycirc: "Ŷ", ycirc: "ŷ", Ycy: "Ы", ycy: "ы", yen: "¥", Yfr: "𝔜", yfr: "𝔶", YIcy: "Ї", yicy: "ї", Yopf: "𝕐", yopf: "𝕪", Yscr: "𝒴", yscr: "𝓎", YUcy: "Ю", yucy: "ю", yuml: "ÿ", Yuml: "Ÿ", Zacute: "Ź", zacute: "ź", Zcaron: "Ž", zcaron: "ž", Zcy: "З", zcy: "з", Zdot: "Ż", zdot: "ż", zeetrf: "ℨ", ZeroWidthSpace: "​", Zeta: "Ζ", zeta: "ζ", zfr: "𝔷", Zfr: "ℨ", ZHcy: "Ж", zhcy: "ж", zigrarr: "⇝", zopf: "𝕫", Zopf: "ℤ", Zscr: "𝒵", zscr: "𝓏", zwj: "‍", zwnj: "‌", }; }), D9 = N((e, t) => { t.exports = { Aacute: "Á", aacute: "á", Acirc: "Â", acirc: "â", acute: "´", AElig: "Æ", aelig: "æ", Agrave: "À", agrave: "à", amp: "&", AMP: "&", Aring: "Å", aring: "å", Atilde: "Ã", atilde: "ã", Auml: "Ä", auml: "ä", brvbar: "¦", Ccedil: "Ç", ccedil: "ç", cedil: "¸", cent: "¢", copy: "©", COPY: "©", curren: "¤", deg: "°", divide: "÷", Eacute: "É", eacute: "é", Ecirc: "Ê", ecirc: "ê", Egrave: "È", egrave: "è", ETH: "Ð", eth: "ð", Euml: "Ë", euml: "ë", frac12: "½", frac14: "¼", frac34: "¾", gt: ">", GT: ">", Iacute: "Í", iacute: "í", Icirc: "Î", icirc: "î", iexcl: "¡", Igrave: "Ì", igrave: "ì", iquest: "¿", Iuml: "Ï", iuml: "ï", laquo: "«", lt: "<", LT: "<", macr: "¯", micro: "µ", middot: "·", nbsp: " ", not: "¬", Ntilde: "Ñ", ntilde: "ñ", Oacute: "Ó", oacute: "ó", Ocirc: "Ô", ocirc: "ô", Ograve: "Ò", ograve: "ò", ordf: "ª", ordm: "º", Oslash: "Ø", oslash: "ø", Otilde: "Õ", otilde: "õ", Ouml: "Ö", ouml: "ö", para: "¶", plusmn: "±", pound: "£", quot: '"', QUOT: '"', raquo: "»", reg: "®", REG: "®", sect: "§", shy: "­", sup1: "¹", sup2: "²", sup3: "³", szlig: "ß", THORN: "Þ", thorn: "þ", times: "×", Uacute: "Ú", uacute: "ú", Ucirc: "Û", ucirc: "û", Ugrave: "Ù", ugrave: "ù", uml: "¨", Uuml: "Ü", uuml: "ü", Yacute: "Ý", yacute: "ý", yen: "¥", yuml: "ÿ", }; }), Q1 = N((e, t) => { t.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' }; }), F9 = N((e, t) => { t.exports = { 0: 65533, 128: 8364, 130: 8218, 131: 402, 132: 8222, 133: 8230, 134: 8224, 135: 8225, 136: 710, 137: 8240, 138: 352, 139: 8249, 140: 338, 142: 381, 145: 8216, 146: 8217, 147: 8220, 148: 8221, 149: 8226, 150: 8211, 151: 8212, 152: 732, 153: 8482, 154: 353, 155: 8250, 156: 339, 158: 382, 159: 376, }; }), I9 = N((e) => { var t = (e && e.__importDefault) || function (o) { return o && o.__esModule ? o : { default: o }; }; Object.defineProperty(e, "__esModule", { value: !0 }); var r = t(F9()), n = String.fromCodePoint || function (o) { var i = ""; return ( o > 65535 && ((o -= 65536), (i += String.fromCharCode(((o >>> 10) & 1023) | 55296)), (o = 56320 | (o & 1023))), (i += String.fromCharCode(o)), i ); }; function a(o) { return (o >= 55296 && o <= 57343) || o > 1114111 ? "�" : (o in r.default && (o = r.default[o]), n(o)); } (s(a, "decodeCodePoint"), (e.default = a)); }), VE = N((e) => { var t = (e && e.__importDefault) || function (d) { return d && d.__esModule ? d : { default: d }; }; (Object.defineProperty(e, "__esModule", { value: !0 }), (e.decodeHTML = e.decodeHTMLStrict = e.decodeXML = void 0)); var r = t(Y1()), n = t(D9()), a = t(Q1()), o = t(I9()), i = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g; ((e.decodeXML = u(a.default)), (e.decodeHTMLStrict = u(r.default))); function u(d) { var p = c(d); return function (f) { return String(f).replace(i, p); }; } s(u, "getStrictDecoder"); var l = s(function (d, p) { return d < p ? 1 : -1; }, "sorter"); e.decodeHTML = (function () { for ( var d = Object.keys(n.default).sort(l), p = Object.keys(r.default).sort(l), f = 0, h = 0; f < p.length; f++ ) d[h] === p[f] ? ((p[f] += ";?"), h++) : (p[f] += ";"); var m = new RegExp( "&(?:" + p.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g", ), y = c(r.default); function b(g) { return (g.substr(-1) !== ";" && (g += ";"), y(g)); } return ( s(b, "replacer"), function (g) { return String(g).replace(m, b); } ); })(); function c(d) { return s(function (p) { if (p.charAt(1) === "#") { var f = p.charAt(2); return f === "X" || f === "x" ? o.default(parseInt(p.substr(3), 16)) : o.default(parseInt(p.substr(2), 10)); } return d[p.slice(1, -1)] || p; }, "replace"); } s(c, "getReplacer"); }), zE = N((e) => { var t = (e && e.__importDefault) || function (v) { return v && v.__esModule ? v : { default: v }; }; (Object.defineProperty(e, "__esModule", { value: !0 }), (e.escapeUTF8 = e.escape = e.encodeNonAsciiHTML = e.encodeHTML = e.encodeXML = void 0)); var r = t(Q1()), n = l(r.default), a = c(n); e.encodeXML = g(n); var o = t(Y1()), i = l(o.default), u = c(i); ((e.encodeHTML = h(i, u)), (e.encodeNonAsciiHTML = g(i))); function l(v) { return Object.keys(v) .sort() .reduce(function (x, A) { return ((x[v[A]] = "&" + A + ";"), x); }, {}); } s(l, "getInverseObj"); function c(v) { for (var x = [], A = [], w = 0, C = Object.keys(v); w < C.length; w++) { var E = C[w]; E.length === 1 ? x.push("\\" + E) : A.push(E); } x.sort(); for (var _ = 0; _ < x.length - 1; _++) { for ( var P = _; P < x.length - 1 && x[P].charCodeAt(1) + 1 === x[P + 1].charCodeAt(1); ) P += 1; var D = 1 + P - _; D < 3 || x.splice(_, D, x[_] + "-" + x[P]); } return (A.unshift("[" + x.join("") + "]"), new RegExp(A.join("|"), "g")); } s(c, "getInverseReplacer"); var d = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g, p = String.prototype.codePointAt != null ? function (v) { return v.codePointAt(0); } : function (v) { return ( (v.charCodeAt(0) - 55296) * 1024 + v.charCodeAt(1) - 56320 + 65536 ); }; function f(v) { return ( "&#x" + (v.length > 1 ? p(v) : v.charCodeAt(0)).toString(16).toUpperCase() + ";" ); } s(f, "singleCharReplacer"); function h(v, x) { return function (A) { return A.replace(x, function (w) { return v[w]; }).replace(d, f); }; } s(h, "getInverse"); var m = new RegExp(a.source + "|" + d.source, "g"); function y(v) { return v.replace(m, f); } (s(y, "escape"), (e.escape = y)); function b(v) { return v.replace(a, f); } (s(b, "escapeUTF8"), (e.escapeUTF8 = b)); function g(v) { return function (x) { return x.replace(m, function (A) { return v[A] || f(A); }); }; } s(g, "getASCIIEncoder"); }), N9 = N((e) => { (Object.defineProperty(e, "__esModule", { value: !0 }), (e.decodeXMLStrict = e.decodeHTML5Strict = e.decodeHTML4Strict = e.decodeHTML5 = e.decodeHTML4 = e.decodeHTMLStrict = e.decodeHTML = e.decodeXML = e.encodeHTML5 = e.encodeHTML4 = e.escapeUTF8 = e.escape = e.encodeNonAsciiHTML = e.encodeHTML = e.encodeXML = e.encode = e.decodeStrict = e.decode = void 0)); var t = VE(), r = zE(); function n(l, c) { return (!c || c <= 0 ? t.decodeXML : t.decodeHTML)(l); } (s(n, "decode"), (e.decode = n)); function a(l, c) { return (!c || c <= 0 ? t.decodeXML : t.decodeHTMLStrict)(l); } (s(a, "decodeStrict"), (e.decodeStrict = a)); function o(l, c) { return (!c || c <= 0 ? r.encodeXML : r.encodeHTML)(l); } (s(o, "encode"), (e.encode = o)); var i = zE(); (Object.defineProperty(e, "encodeXML", { enumerable: !0, get: s(function () { return i.encodeXML; }, "get"), }), Object.defineProperty(e, "encodeHTML", { enumerable: !0, get: s(function () { return i.encodeHTML; }, "get"), }), Object.defineProperty(e, "encodeNonAsciiHTML", { enumerable: !0, get: s(function () { return i.encodeNonAsciiHTML; }, "get"), }), Object.defineProperty(e, "escape", { enumerable: !0, get: s(function () { return i.escape; }, "get"), }), Object.defineProperty(e, "escapeUTF8", { enumerable: !0, get: s(function () { return i.escapeUTF8; }, "get"), }), Object.defineProperty(e, "encodeHTML4", { enumerable: !0, get: s(function () { return i.encodeHTML; }, "get"), }), Object.defineProperty(e, "encodeHTML5", { enumerable: !0, get: s(function () { return i.encodeHTML; }, "get"), })); var u = VE(); (Object.defineProperty(e, "decodeXML", { enumerable: !0, get: s(function () { return u.decodeXML; }, "get"), }), Object.defineProperty(e, "decodeHTML", { enumerable: !0, get: s(function () { return u.decodeHTML; }, "get"), }), Object.defineProperty(e, "decodeHTMLStrict", { enumerable: !0, get: s(function () { return u.decodeHTMLStrict; }, "get"), }), Object.defineProperty(e, "decodeHTML4", { enumerable: !0, get: s(function () { return u.decodeHTML; }, "get"), }), Object.defineProperty(e, "decodeHTML5", { enumerable: !0, get: s(function () { return u.decodeHTML; }, "get"), }), Object.defineProperty(e, "decodeHTML4Strict", { enumerable: !0, get: s(function () { return u.decodeHTMLStrict; }, "get"), }), Object.defineProperty(e, "decodeHTML5Strict", { enumerable: !0, get: s(function () { return u.decodeHTMLStrict; }, "get"), }), Object.defineProperty(e, "decodeXMLStrict", { enumerable: !0, get: s(function () { return u.decodeXML; }, "get"), })); }), j9 = N((e, t) => { function r(T, k) { if (!(T instanceof k)) throw new TypeError("Cannot call a class as a function"); } s(r, "_classCallCheck"); function n(T, k) { for (var I = 0; I < k.length; I++) { var W = k[I]; ((W.enumerable = W.enumerable || !1), (W.configurable = !0), "value" in W && (W.writable = !0), Object.defineProperty(T, W.key, W)); } } s(n, "_defineProperties"); function a(T, k, I) { return (k && n(T.prototype, k), I && n(T, I), T); } s(a, "_createClass"); function o(T, k) { var I = (typeof Symbol < "u" && T[Symbol.iterator]) || T["@@iterator"]; if (!I) { if ( Array.isArray(T) || (I = i(T)) || (k && T && typeof T.length == "number") ) { I && (T = I); var W = 0, Q = s(function () {}, "F"); return { s: Q, n: s(function () { return W >= T.length ? { done: !0 } : { done: !1, value: T[W++] }; }, "n"), e: s(function (V) { throw V; }, "e"), f: Q, }; } 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 se = !0, H = !1, K; return { s: s(function () { I = I.call(T); }, "s"), n: s(function () { var V = I.next(); return ((se = V.done), V); }, "n"), e: s(function (V) { ((H = !0), (K = V)); }, "e"), f: s(function () { try { !se && I.return != null && I.return(); } finally { if (H) throw K; } }, "f"), }; } s(o, "_createForOfIteratorHelper"); function i(T, k) { if (T) { if (typeof T == "string") return u(T, k); var I = Object.prototype.toString.call(T).slice(8, -1); if ( (I === "Object" && T.constructor && (I = T.constructor.name), I === "Map" || I === "Set") ) return Array.from(T); if ( I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I) ) return u(T, k); } } s(i, "_unsupportedIterableToArray"); function u(T, k) { (k == null || k > T.length) && (k = T.length); for (var I = 0, W = new Array(k); I < k; I++) W[I] = T[I]; return W; } s(u, "_arrayLikeToArray"); var l = N9(), c = { fg: "#FFF", bg: "#000", newline: !1, escapeXML: !1, stream: !1, colors: d(), }; function d() { var T = { 0: "#000", 1: "#A00", 2: "#0A0", 3: "#A50", 4: "#00A", 5: "#A0A", 6: "#0AA", 7: "#AAA", 8: "#555", 9: "#F55", 10: "#5F5", 11: "#FF5", 12: "#55F", 13: "#F5F", 14: "#5FF", 15: "#FFF", }; return ( v(0, 5).forEach(function (k) { v(0, 5).forEach(function (I) { v(0, 5).forEach(function (W) { return p(k, I, W, T); }); }); }), v(0, 23).forEach(function (k) { var I = k + 232, W = f(k * 10 + 8); T[I] = "#" + W + W + W; }), T ); } s(d, "getDefaultColors"); function p(T, k, I, W) { var Q = 16 + T * 36 + k * 6 + I, se = T > 0 ? T * 40 + 55 : 0, H = k > 0 ? k * 40 + 55 : 0, K = I > 0 ? I * 40 + 55 : 0; W[Q] = h([se, H, K]); } s(p, "setStyleColor"); function f(T) { for (var k = T.toString(16); k.length < 2; ) k = "0" + k; return k; } s(f, "toHexString"); function h(T) { var k = [], I = o(T), W; try { for (I.s(); !(W = I.n()).done; ) { var Q = W.value; k.push(f(Q)); } } catch (se) { I.e(se); } finally { I.f(); } return "#" + k.join(""); } s(h, "toColorHexString"); function m(T, k, I, W) { var Q; return ( k === "text" ? (Q = w(I, W)) : k === "display" ? (Q = b(T, I, W)) : k === "xterm256Foreground" ? (Q = _(T, W.colors[I])) : k === "xterm256Background" ? (Q = P(T, W.colors[I])) : k === "rgb" && (Q = y(T, I)), Q ); } s(m, "generateOutput"); function y(T, k) { k = k.substring(2).slice(0, -1); var I = +k.substr(0, 2), W = k.substring(5).split(";"), Q = W.map(function (se) { return ("0" + Number(se).toString(16)).substr(-2); }).join(""); return E(T, (I === 38 ? "color:#" : "background-color:#") + Q); } s(y, "handleRgb"); function b(T, k, I) { k = parseInt(k, 10); var W = { "-1": s(function () { return "
"; }, "_"), 0: s(function () { return T.length && g(T); }, "_"), 1: s(function () { return C(T, "b"); }, "_"), 3: s(function () { return C(T, "i"); }, "_"), 4: s(function () { return C(T, "u"); }, "_"), 8: s(function () { return E(T, "display:none"); }, "_"), 9: s(function () { return C(T, "strike"); }, "_"), 22: s(function () { return E( T, "font-weight:normal;text-decoration:none;font-style:normal", ); }, "_"), 23: s(function () { return D(T, "i"); }, "_"), 24: s(function () { return D(T, "u"); }, "_"), 39: s(function () { return _(T, I.fg); }, "_"), 49: s(function () { return P(T, I.bg); }, "_"), 53: s(function () { return E(T, "text-decoration:overline"); }, "_"), }, Q; return ( W[k] ? (Q = W[k]()) : 4 < k && k < 7 ? (Q = C(T, "blink")) : 29 < k && k < 38 ? (Q = _(T, I.colors[k - 30])) : 39 < k && k < 48 ? (Q = P(T, I.colors[k - 40])) : 89 < k && k < 98 ? (Q = _(T, I.colors[8 + (k - 90)])) : 99 < k && k < 108 && (Q = P(T, I.colors[8 + (k - 100)])), Q ); } s(b, "handleDisplay"); function g(T) { var k = T.slice(0); return ( (T.length = 0), k .reverse() .map(function (I) { return ""; }) .join("") ); } s(g, "resetStyles"); function v(T, k) { for (var I = [], W = T; W <= k; W++) I.push(W); return I; } s(v, "range"); function x(T) { return function (k) { return (T === null || k.category !== T) && T !== "all"; }; } s(x, "notCategory"); function A(T) { T = parseInt(T, 10); var k = null; return ( T === 0 ? (k = "all") : T === 1 ? (k = "bold") : 2 < T && T < 5 ? (k = "underline") : 4 < T && T < 7 ? (k = "blink") : T === 8 ? (k = "hide") : T === 9 ? (k = "strike") : (29 < T && T < 38) || T === 39 || (89 < T && T < 98) ? (k = "foreground-color") : ((39 < T && T < 48) || T === 49 || (99 < T && T < 108)) && (k = "background-color"), k ); } s(A, "categoryForCode"); function w(T, k) { return k.escapeXML ? l.encodeXML(T) : T; } s(w, "pushText"); function C(T, k, I) { return ( I || (I = ""), T.push(k), "<".concat(k).concat(I ? ' style="'.concat(I, '"') : "", ">") ); } s(C, "pushTag"); function E(T, k) { return C(T, "span", k); } s(E, "pushStyle"); function _(T, k) { return C(T, "span", "color:" + k); } s(_, "pushForegroundColor"); function P(T, k) { return C(T, "span", "background-color:" + k); } s(P, "pushBackgroundColor"); function D(T, k) { var I; if ((T.slice(-1)[0] === k && (I = T.pop()), I)) return ""; } s(D, "closeTag"); function F(T, k, I) { var W = !1, Q = 3; function se() { return ""; } s(se, "remove"); function H(ae, ee) { return (I("xterm256Foreground", ee), ""); } s(H, "removeXterm256Foreground"); function K(ae, ee) { return (I("xterm256Background", ee), ""); } s(K, "removeXterm256Background"); function V(ae) { return (k.newline ? I("display", -1) : I("text", ae), ""); } s(V, "newline"); function Z(ae, ee) { ((W = !0), ee.trim().length === 0 && (ee = "0"), (ee = ee.trimRight(";").split(";"))); var fe = o(ee), we; try { for (fe.s(); !(we = fe.n()).done; ) { var Pe = we.value; I("display", Pe); } } catch (xe) { fe.e(xe); } finally { fe.f(); } return ""; } s(Z, "ansiMess"); function re(ae) { return (I("text", ae), ""); } s(re, "realText"); function he(ae) { return (I("rgb", ae), ""); } s(he, "rgb"); var oe = [ { pattern: /^\x08+/, sub: se }, { pattern: /^\x1b\[[012]?K/, sub: se }, { pattern: /^\x1b\[\(B/, sub: se }, { pattern: /^\x1b\[[34]8;2;\d+;\d+;\d+m/, sub: he }, { pattern: /^\x1b\[38;5;(\d+)m/, sub: H }, { pattern: /^\x1b\[48;5;(\d+)m/, sub: K }, { pattern: /^\n/, sub: V }, { pattern: /^\r+\n/, sub: V }, { pattern: /^\r/, sub: V }, { pattern: /^\x1b\[((?:\d{1,3};?)+|)m/, sub: Z }, { pattern: /^\x1b\[\d?J/, sub: se }, { pattern: /^\x1b\[\d{0,3};\d{0,3}f/, sub: se }, { pattern: /^\x1b\[?[\d;]{0,3}/, sub: se }, { pattern: /^(([^\x1b\x08\r\n])+)/, sub: re }, ]; function ge(ae, ee) { (ee > Q && W) || ((W = !1), (T = T.replace(ae.pattern, ae.sub))); } s(ge, "process"); var be = [], rt = T, Ke = rt.length; e: for (; Ke > 0; ) { for (var z = 0, ne = 0, ue = oe.length; ne < ue; z = ++ne) { var te = oe[z]; if ((ge(te, z), T.length !== Ke)) { Ke = T.length; continue e; } } if (T.length === Ke) break; (be.push(0), (Ke = T.length)); } return be; } s(F, "tokenize"); function L(T, k, I) { return ( k !== "text" && ((T = T.filter(x(A(I)))), T.push({ token: k, data: I, category: A(I) })), T ); } s(L, "updateStickyStack"); var q = (function () { function T(k) { (r(this, T), (k = k || {}), k.colors && (k.colors = Object.assign({}, c.colors, k.colors)), (this.options = Object.assign({}, c, k)), (this.stack = []), (this.stickyStack = [])); } return ( s(T, "Filter"), a(T, [ { key: "toHtml", value: s(function (k) { var I = this; k = typeof k == "string" ? [k] : k; var W = this.stack, Q = this.options, se = []; return ( this.stickyStack.forEach(function (H) { var K = m(W, H.token, H.data, Q); K && se.push(K); }), F(k.join(""), Q, function (H, K) { var V = m(W, H, K, Q); (V && se.push(V), Q.stream && (I.stickyStack = L(I.stickyStack, H, K))); }), W.length && se.push(g(W)), se.join("") ); }, "toHtml"), }, ]), T ); })(); t.exports = q; }), k9 = N((e, t) => { (function (r, n) { typeof e == "object" && typeof t < "u" ? (t.exports = n()) : typeof define == "function" && define.amd ? define(n) : ((r = typeof globalThis < "u" ? globalThis : r || self).BrowserDetector = n()); })(e, function () { function r(l, c) { for (var d = 0; d < c.length; d++) { var p = c[d]; ((p.enumerable = p.enumerable || !1), (p.configurable = !0), "value" in p && (p.writable = !0), Object.defineProperty( l, ((f = p.key), (h = void 0), typeof (h = (function (m, y) { if (typeof m != "object" || m === null) return m; var b = m[Symbol.toPrimitive]; if (b !== void 0) { var g = b.call(m, y); if (typeof g != "object") return g; throw new TypeError( "@@toPrimitive must return a primitive value.", ); } return (y === "string" ? String : Number)(m); })(f, "string")) == "symbol" ? h : String(h)), p, )); } var f, h; } s(r, "e"); var n = { chrome: "Google Chrome", brave: "Brave", crios: "Google Chrome", edge: "Microsoft Edge", edg: "Microsoft Edge", edgios: "Microsoft Edge", fennec: "Mozilla Firefox", jsdom: "JsDOM", mozilla: "Mozilla Firefox", fxios: "Mozilla Firefox", msie: "Microsoft Internet Explorer", opera: "Opera", opios: "Opera", opr: "Opera", opt: "Opera", rv: "Microsoft Internet Explorer", safari: "Safari", samsungbrowser: "Samsung Browser", electron: "Electron", }, a = { android: "Android", androidTablet: "Android Tablet", cros: "Chrome OS", fennec: "Android Tablet", ipad: "IPad", iphone: "IPhone", jsdom: "JsDOM", linux: "Linux", mac: "Macintosh", tablet: "Android Tablet", win: "Windows", "windows phone": "Windows Phone", xbox: "Microsoft Xbox", }, o = s(function (l) { var c = new RegExp( "^-?\\d+(?:.\\d{0,".concat( arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1, "})?", ), ), d = Number(l).toString().match(c); return d ? d[0] : null; }, "n"), i = s(function () { return typeof window < "u" ? window.navigator : null; }, "i"), u = (function () { function l(f) { var h; ((function (m, y) { if (!(m instanceof y)) throw new TypeError("Cannot call a class as a function"); })(this, l), (this.userAgent = f || ((h = i()) === null || h === void 0 ? void 0 : h.userAgent) || null)); } s(l, "t"); var c, d, p; return ( (c = l), (d = [ { key: "parseUserAgent", value: s(function (f) { var h, m, y, b = {}, g = f || this.userAgent || "", v = g.toLowerCase().replace(/\s\s+/g, " "), x = /(edge)\/([\w.]+)/.exec(v) || /(edg)[/]([\w.]+)/.exec(v) || /(opr)[/]([\w.]+)/.exec(v) || /(opt)[/]([\w.]+)/.exec(v) || /(fxios)[/]([\w.]+)/.exec(v) || /(edgios)[/]([\w.]+)/.exec(v) || /(jsdom)[/]([\w.]+)/.exec(v) || /(samsungbrowser)[/]([\w.]+)/.exec(v) || /(electron)[/]([\w.]+)/.exec(v) || /(chrome)[/]([\w.]+)/.exec(v) || /(crios)[/]([\w.]+)/.exec(v) || /(opios)[/]([\w.]+)/.exec(v) || /(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec( v, ) || /(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec( v, ) || /(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(v) || /(webkit)[/]([\w.]+)/.exec(v) || /(opera)(?:.*version|)[/]([\w.]+)/.exec(v) || /(msie) ([\w.]+)/.exec(v) || /(fennec)[/]([\w.]+)/.exec(v) || (v.indexOf("trident") >= 0 && /(rv)(?::| )([\w.]+)/.exec(v)) || (v.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(v)) || [], A = /(ipad)/.exec(v) || /(ipod)/.exec(v) || /(iphone)/.exec(v) || /(jsdom)/.exec(v) || /(windows phone)/.exec(v) || /(xbox)/.exec(v) || /(win)/.exec(v) || /(tablet)/.exec(v) || (/(android)/.test(v) && /(mobile)/.test(v) === !1 && ["androidTablet"]) || /(android)/.exec(v) || /(mac)/.exec(v) || /(linux)/.exec(v) || /(cros)/.exec(v) || [], w = x[5] || x[3] || x[1] || null, C = A[0] || null, E = x[4] || x[2] || null, _ = i(); (w === "chrome" && typeof (_ == null || (h = _.brave) === null || h === void 0 ? void 0 : h.isBrave) == "function" && (w = "brave"), w && (b[w] = !0), C && (b[C] = !0)); var P = !!(b.tablet || b.android || b.androidTablet), D = !!(b.ipad || b.tablet || b.androidTablet), F = !!( b.android || b.androidTablet || b.tablet || b.ipad || b.ipod || b.iphone || b["windows phone"] ), L = !!(b.cros || b.mac || b.linux || b.win), q = !!( b.brave || b.chrome || b.crios || b.opr || b.safari || b.edg || b.electron ), T = !!(b.msie || b.rv); return { name: (m = n[w]) !== null && m !== void 0 ? m : null, platform: (y = a[C]) !== null && y !== void 0 ? y : null, userAgent: g, version: E, shortVersion: E ? o(parseFloat(E), 2) : null, isAndroid: P, isTablet: D, isMobile: F, isDesktop: L, isWebkit: q, isIE: T, }; }, "value"), }, { key: "getBrowserInfo", value: s(function () { var f = this.parseUserAgent(); return { name: f.name, platform: f.platform, userAgent: f.userAgent, version: f.version, shortVersion: f.shortVersion, }; }, "value"), }, ]), (p = [ { key: "VERSION", get: s(function () { return "3.4.0"; }, "get"), }, ]), d && r(c.prototype, d), p && r(c, p), Object.defineProperty(c, "prototype", { writable: !1 }), l ); })(); return u; }); }), Jy = {}; ur(Jy, { ARGTYPES_INFO_REQUEST: () => bS, ARGTYPES_INFO_RESPONSE: () => xh, CHANNEL_CREATED: () => M9, CHANNEL_WS_DISCONNECT: () => Z1, CONFIG_ERROR: () => eS, CREATE_NEW_STORYFILE_REQUEST: () => B9, CREATE_NEW_STORYFILE_RESPONSE: () => L9, CURRENT_STORY_WAS_SET: () => wh, DOCS_PREPARED: () => tS, DOCS_RENDERED: () => Ky, FILE_COMPONENT_SEARCH_REQUEST: () => $9, FILE_COMPONENT_SEARCH_RESPONSE: () => U9, FORCE_REMOUNT: () => ll, FORCE_RE_RENDER: () => Yy, GLOBALS_UPDATED: () => Ui, NAVIGATE_URL: () => H9, PLAY_FUNCTION_THREW_EXCEPTION: () => rS, PRELOAD_ENTRIES: () => aS, PREVIEW_BUILDER_PROGRESS: () => V9, PREVIEW_KEYDOWN: () => oS, REGISTER_SUBSCRIPTION: () => z9, REQUEST_WHATS_NEW_DATA: () => tU, RESET_STORY_ARGS: () => Qy, RESULT_WHATS_NEW_DATA: () => rU, SAVE_STORY_REQUEST: () => oU, SAVE_STORY_RESPONSE: () => iU, SELECT_STORY: () => G9, SET_CONFIG: () => W9, SET_CURRENT_STORY: () => Zy, SET_FILTER: () => J9, SET_GLOBALS: () => iS, SET_INDEX: () => X9, SET_STORIES: () => K9, SET_WHATS_NEW_CACHE: () => nU, SHARED_STATE_CHANGED: () => Y9, SHARED_STATE_SET: () => Q9, STORIES_COLLAPSE_ALL: () => Z9, STORIES_EXPAND_ALL: () => eU, STORY_ARGS_UPDATED: () => sS, STORY_CHANGED: () => uS, STORY_ERRORED: () => lS, STORY_FINISHED: () => Sh, STORY_HOT_UPDATED: () => mS, STORY_INDEX_INVALIDATED: () => cS, STORY_MISSING: () => Ah, STORY_PREPARED: () => dS, STORY_RENDERED: () => cl, STORY_RENDER_PHASE_CHANGED: () => Ra, STORY_SPECIFIED: () => pS, STORY_THREW_EXCEPTION: () => fS, STORY_UNCHANGED: () => hS, TELEMETRY_ERROR: () => gS, TOGGLE_WHATS_NEW_NOTIFICATIONS: () => aU, UNHANDLED_ERRORS_WHILE_PLAYING: () => nS, UPDATE_GLOBALS: () => eg, UPDATE_QUERY_PARAMS: () => yS, UPDATE_STORY_ARGS: () => tg, default: () => q9, }); var Xy = ((e) => ( (e.CHANNEL_WS_DISCONNECT = "channelWSDisconnect"), (e.CHANNEL_CREATED = "channelCreated"), (e.CONFIG_ERROR = "configError"), (e.STORY_INDEX_INVALIDATED = "storyIndexInvalidated"), (e.STORY_SPECIFIED = "storySpecified"), (e.SET_CONFIG = "setConfig"), (e.SET_STORIES = "setStories"), (e.SET_INDEX = "setIndex"), (e.SET_CURRENT_STORY = "setCurrentStory"), (e.CURRENT_STORY_WAS_SET = "currentStoryWasSet"), (e.FORCE_RE_RENDER = "forceReRender"), (e.FORCE_REMOUNT = "forceRemount"), (e.PRELOAD_ENTRIES = "preloadStories"), (e.STORY_PREPARED = "storyPrepared"), (e.DOCS_PREPARED = "docsPrepared"), (e.STORY_CHANGED = "storyChanged"), (e.STORY_UNCHANGED = "storyUnchanged"), (e.STORY_RENDERED = "storyRendered"), (e.STORY_FINISHED = "storyFinished"), (e.STORY_MISSING = "storyMissing"), (e.STORY_ERRORED = "storyErrored"), (e.STORY_THREW_EXCEPTION = "storyThrewException"), (e.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged"), (e.STORY_HOT_UPDATED = "storyHotUpdated"), (e.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException"), (e.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying"), (e.UPDATE_STORY_ARGS = "updateStoryArgs"), (e.STORY_ARGS_UPDATED = "storyArgsUpdated"), (e.RESET_STORY_ARGS = "resetStoryArgs"), (e.SET_FILTER = "setFilter"), (e.SET_GLOBALS = "setGlobals"), (e.UPDATE_GLOBALS = "updateGlobals"), (e.GLOBALS_UPDATED = "globalsUpdated"), (e.REGISTER_SUBSCRIPTION = "registerSubscription"), (e.PREVIEW_KEYDOWN = "previewKeydown"), (e.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress"), (e.SELECT_STORY = "selectStory"), (e.STORIES_COLLAPSE_ALL = "storiesCollapseAll"), (e.STORIES_EXPAND_ALL = "storiesExpandAll"), (e.DOCS_RENDERED = "docsRendered"), (e.SHARED_STATE_CHANGED = "sharedStateChanged"), (e.SHARED_STATE_SET = "sharedStateSet"), (e.NAVIGATE_URL = "navigateUrl"), (e.UPDATE_QUERY_PARAMS = "updateQueryParams"), (e.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData"), (e.RESULT_WHATS_NEW_DATA = "resultWhatsNewData"), (e.SET_WHATS_NEW_CACHE = "setWhatsNewCache"), (e.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications"), (e.TELEMETRY_ERROR = "telemetryError"), (e.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest"), (e.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse"), (e.SAVE_STORY_REQUEST = "saveStoryRequest"), (e.SAVE_STORY_RESPONSE = "saveStoryResponse"), (e.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest"), (e.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse"), (e.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest"), (e.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse"), e ))(Xy || {}), q9 = Xy, { CHANNEL_WS_DISCONNECT: Z1, CHANNEL_CREATED: M9, CONFIG_ERROR: eS, CREATE_NEW_STORYFILE_REQUEST: B9, CREATE_NEW_STORYFILE_RESPONSE: L9, CURRENT_STORY_WAS_SET: wh, DOCS_PREPARED: tS, DOCS_RENDERED: Ky, FILE_COMPONENT_SEARCH_REQUEST: $9, FILE_COMPONENT_SEARCH_RESPONSE: U9, FORCE_RE_RENDER: Yy, FORCE_REMOUNT: ll, GLOBALS_UPDATED: Ui, NAVIGATE_URL: H9, PLAY_FUNCTION_THREW_EXCEPTION: rS, UNHANDLED_ERRORS_WHILE_PLAYING: nS, PRELOAD_ENTRIES: aS, PREVIEW_BUILDER_PROGRESS: V9, PREVIEW_KEYDOWN: oS, REGISTER_SUBSCRIPTION: z9, RESET_STORY_ARGS: Qy, SELECT_STORY: G9, SET_CONFIG: W9, SET_CURRENT_STORY: Zy, SET_FILTER: J9, SET_GLOBALS: iS, SET_INDEX: X9, SET_STORIES: K9, SHARED_STATE_CHANGED: Y9, SHARED_STATE_SET: Q9, STORIES_COLLAPSE_ALL: Z9, STORIES_EXPAND_ALL: eU, STORY_ARGS_UPDATED: sS, STORY_CHANGED: uS, STORY_ERRORED: lS, STORY_INDEX_INVALIDATED: cS, STORY_MISSING: Ah, STORY_PREPARED: dS, STORY_RENDER_PHASE_CHANGED: Ra, STORY_RENDERED: cl, STORY_FINISHED: Sh, STORY_SPECIFIED: pS, STORY_THREW_EXCEPTION: fS, STORY_UNCHANGED: hS, STORY_HOT_UPDATED: mS, UPDATE_GLOBALS: eg, UPDATE_QUERY_PARAMS: yS, UPDATE_STORY_ARGS: tg, REQUEST_WHATS_NEW_DATA: tU, RESULT_WHATS_NEW_DATA: rU, SET_WHATS_NEW_CACHE: nU, TOGGLE_WHATS_NEW_NOTIFICATIONS: aU, TELEMETRY_ERROR: gS, SAVE_STORY_REQUEST: oU, SAVE_STORY_RESPONSE: iU, ARGTYPES_INFO_REQUEST: bS, ARGTYPES_INFO_RESPONSE: xh, } = Xy, vS = {}; ur(vS, { global: () => Ae }); var Ae = (() => { let e; return ( typeof window < "u" ? (e = window) : typeof globalThis < "u" ? (e = globalThis) : typeof global < "u" ? (e = global) : typeof self < "u" ? (e = self) : (e = {}), e ); })(), ES = { "@storybook/global": "__STORYBOOK_MODULE_GLOBAL__", "storybook/test": "__STORYBOOK_MODULE_TEST__", "storybook/actions": "__STORYBOOK_MODULE_ACTIONS__", "storybook/preview-api": "__STORYBOOK_MODULE_PREVIEW_API__", "storybook/internal/channels": "__STORYBOOK_MODULE_CHANNELS__", "storybook/internal/client-logger": "__STORYBOOK_MODULE_CLIENT_LOGGER__", "storybook/internal/core-events": "__STORYBOOK_MODULE_CORE_EVENTS__", "storybook/internal/preview-errors": "__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__", "storybook/internal/types": "__STORYBOOK_MODULE_TYPES__", "storybook/internal/preview-api": "__STORYBOOK_MODULE_PREVIEW_API__", }, sU = Object.keys(ES), _S = {}; ur(_S, { Channel: () => fc, HEARTBEAT_INTERVAL: () => Fx, HEARTBEAT_MAX_LATENCY: () => Ix, PostMessageTransport: () => Dx, WebsocketTransport: () => jx, createBrowserChannel: () => kx, default: () => I7, }); function Qe(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; var n = Array.from(typeof e == "string" ? [e] : e); n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); var a = n.reduce(function (u, l) { var c = l.match(/\n([\t ]+|(?!\s).)/g); return c ? u.concat( c.map(function (d) { var p, f; return (f = (p = d.match(/[\t ]/g)) === null || p === void 0 ? void 0 : p.length) !== null && f !== void 0 ? f : 0; }), ) : u; }, []); if (a.length) { var o = new RegExp( ` [ ]{` + Math.min.apply(Math, a) + "}", "g", ); n = n.map(function (u) { return u.replace( o, ` `, ); }); } n[0] = n[0].replace(/^\r?\n/, ""); var i = n[0]; return ( t.forEach(function (u, l) { var c = i.match(/(?:^|\n)( *)$/), d = c ? c[1] : "", p = u; (typeof u == "string" && u.includes(` `) && (p = String(u) .split( ` `, ) .map(function (f, h) { return h === 0 ? f : "" + d + f; }).join(` `)), (i += p + n[l + 1])); }), i ); } s(Qe, "dedent"); var uU = Qe, GE = new Map(), lU = "UNIVERSAL_STORE:", Tr = { PENDING: "PENDING", RESOLVED: "RESOLVED", REJECTED: "REJECTED" }, Bn = class Ue { constructor(t, r) { if ( ((this.debugging = !1), (this.listeners = new Map([["*", new Set()]])), (this.getState = s( () => (this.debug("getState", { state: this.state }), this.state), "getState", )), (this.subscribe = s((n, a) => { let o = typeof n == "function", i = o ? "*" : n, u = o ? n : a; if ((this.debug("subscribe", { eventType: i, listener: u }), !u)) throw new TypeError( `Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`, ); return ( this.listeners.has(i) || this.listeners.set(i, new Set()), this.listeners.get(i).add(u), () => { (this.debug("unsubscribe", { eventType: i, listener: u }), this.listeners.has(i) && (this.listeners.get(i).delete(u), this.listeners.get(i)?.size === 0 && this.listeners.delete(i))); } ); }, "subscribe")), (this.send = s((n) => { if ( (this.debug("send", { event: n }), this.status !== Ue.Status.READY) ) throw new TypeError(Qe`Cannot send event before store is ready. You can get the current status with store.status, or await store.readyPromise to wait for the store to be ready before sending events. ${JSON.stringify({ event: n, id: this.id, actor: this.actor, environment: this.environment }, null, 2)}`); (this.emitToListeners(n, { actor: this.actor }), this.emitToChannel(n, { actor: this.actor })); }, "send")), (this.debugging = t.debug ?? !1), !Ue.isInternalConstructing) ) throw new TypeError( "UniversalStore is not constructable - use UniversalStore.create() instead", ); if ( ((Ue.isInternalConstructing = !1), (this.id = t.id), (this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2)), (this.actorType = t.leader ? Ue.ActorType.LEADER : Ue.ActorType.FOLLOWER), (this.state = t.initialState), (this.channelEventName = `${lU}${this.id}`), this.debug("constructor", { options: t, environmentOverrides: r, channelEventName: this.channelEventName, }), this.actor.type === Ue.ActorType.LEADER) ) this.syncing = { state: Tr.RESOLVED, promise: Promise.resolve() }; else { let n, a, o = new Promise((i, u) => { ((n = s(() => { this.syncing.state === Tr.PENDING && ((this.syncing.state = Tr.RESOLVED), i()); }, "syncingResolve")), (a = s((l) => { this.syncing.state === Tr.PENDING && ((this.syncing.state = Tr.REJECTED), u(l)); }, "syncingReject"))); }); this.syncing = { state: Tr.PENDING, promise: o, resolve: n, reject: a }; } ((this.getState = this.getState.bind(this)), (this.setState = this.setState.bind(this)), (this.subscribe = this.subscribe.bind(this)), (this.onStateChange = this.onStateChange.bind(this)), (this.send = this.send.bind(this)), (this.emitToChannel = this.emitToChannel.bind(this)), (this.prepareThis = this.prepareThis.bind(this)), (this.emitToListeners = this.emitToListeners.bind(this)), (this.handleChannelEvents = this.handleChannelEvents.bind(this)), (this.debug = this.debug.bind(this)), (this.channel = r?.channel ?? Ue.preparation.channel), (this.environment = r?.environment ?? Ue.preparation.environment), this.channel && this.environment ? (Ue.preparation.resolve({ channel: this.channel, environment: this.environment, }), this.prepareThis({ channel: this.channel, environment: this.environment, })) : Ue.preparation.promise.then(this.prepareThis)); } static setupPreparationPromise() { let t, r, n = new Promise((a, o) => { ((t = s((i) => { a(i); }, "resolveRef")), (r = s((...i) => { o(i); }, "rejectRef"))); }); Ue.preparation = { resolve: t, reject: r, promise: n }; } get actor() { return Object.freeze({ id: this.actorId, type: this.actorType, environment: this.environment ?? Ue.Environment.UNKNOWN, }); } get status() { if (!this.channel || !this.environment) return Ue.Status.UNPREPARED; switch (this.syncing?.state) { case Tr.PENDING: case void 0: return Ue.Status.SYNCING; case Tr.REJECTED: return Ue.Status.ERROR; case Tr.RESOLVED: default: return Ue.Status.READY; } } untilReady() { return Promise.all([Ue.preparation.promise, this.syncing?.promise]); } static create(t) { if (!t || typeof t?.id != "string") throw new TypeError( "id is required and must be a string, when creating a UniversalStore", ); t.debug && console.debug( Qe`[UniversalStore] create`, { options: t }, ); let r = GE.get(t.id); if (r) return ( console.warn(Qe`UniversalStore with id "${t.id}" already exists in this environment, re-using existing. You should reuse the existing instance instead of trying to create a new one.`), r ); Ue.isInternalConstructing = !0; let n = new Ue(t); return (GE.set(t.id, n), n); } static __prepare(t, r) { ((Ue.preparation.channel = t), (Ue.preparation.environment = r), Ue.preparation.resolve({ channel: t, environment: r })); } setState(t) { let r = this.state, n = typeof t == "function" ? t(r) : t; if ( (this.debug("setState", { newState: n, previousState: r, updater: t }), this.status !== Ue.Status.READY) ) throw new TypeError(Qe`Cannot set state before store is ready. You can get the current status with store.status, or await store.readyPromise to wait for the store to be ready before sending events. ${JSON.stringify({ newState: n, id: this.id, actor: this.actor, environment: this.environment }, null, 2)}`); this.state = n; let a = { type: Ue.InternalEventType.SET_STATE, payload: { state: n, previousState: r }, }; (this.emitToChannel(a, { actor: this.actor }), this.emitToListeners(a, { actor: this.actor })); } onStateChange(t) { return ( this.debug("onStateChange", { listener: t }), this.subscribe(Ue.InternalEventType.SET_STATE, ({ payload: r }, n) => { t(r.state, r.previousState, n); }) ); } emitToChannel(t, r) { (this.debug("emitToChannel", { event: t, eventInfo: r, channel: !!this.channel, }), this.channel?.emit(this.channelEventName, { event: t, eventInfo: r })); } prepareThis({ channel: t, environment: r }) { ((this.channel = t), (this.environment = r), this.debug("prepared", { channel: !!t, environment: r }), this.channel.on(this.channelEventName, this.handleChannelEvents), this.actor.type === Ue.ActorType.LEADER ? this.emitToChannel( { type: Ue.InternalEventType.LEADER_CREATED }, { actor: this.actor }, ) : (this.emitToChannel( { type: Ue.InternalEventType.FOLLOWER_CREATED }, { actor: this.actor }, ), this.emitToChannel( { type: Ue.InternalEventType.EXISTING_STATE_REQUEST }, { actor: this.actor }, ), setTimeout(() => { this.syncing.reject( new TypeError( `No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`, ), ); }, 1e3))); } emitToListeners(t, r) { let n = this.listeners.get(t.type), a = this.listeners.get("*"); (this.debug("emitToListeners", { event: t, eventInfo: r, eventTypeListeners: n, everythingListeners: a, }), [...(n ?? []), ...(a ?? [])].forEach((o) => o(t, r))); } handleChannelEvents(t) { let { event: r, eventInfo: n } = t; if ([n.actor.id, n.forwardingActor?.id].includes(this.actor.id)) { this.debug("handleChannelEvents: Ignoring event from self", { channelEvent: t, }); return; } else if ( this.syncing?.state === Tr.PENDING && r.type !== Ue.InternalEventType.EXISTING_STATE_RESPONSE ) { this.debug("handleChannelEvents: Ignoring event while syncing", { channelEvent: t, }); return; } if ( (this.debug("handleChannelEvents", { channelEvent: t }), this.actor.type === Ue.ActorType.LEADER) ) { let a = !0; switch (r.type) { case Ue.InternalEventType.EXISTING_STATE_REQUEST: a = !1; let o = { type: Ue.InternalEventType.EXISTING_STATE_RESPONSE, payload: this.state, }; (this.debug( "handleChannelEvents: responding to existing state request", { responseEvent: o }, ), this.emitToChannel(o, { actor: this.actor }), this.emitToListeners(o, { actor: this.actor })); break; case Ue.InternalEventType.LEADER_CREATED: ((a = !1), (this.syncing.state = Tr.REJECTED), this.debug( "handleChannelEvents: erroring due to second leader being created", { event: r }, ), console.error(Qe`Detected multiple UniversalStore leaders created with the same id "${this.id}". Only one leader can exists at a time, your stores are now in an invalid state. Leaders detected: this: ${JSON.stringify(this.actor, null, 2)} other: ${JSON.stringify(n.actor, null, 2)}`)); break; } a && (this.debug("handleChannelEvents: forwarding event", { channelEvent: t, }), this.emitToChannel(r, { actor: n.actor, forwardingActor: this.actor, })); } if (this.actor.type === Ue.ActorType.FOLLOWER) switch (r.type) { case Ue.InternalEventType.EXISTING_STATE_RESPONSE: if ( (this.debug( "handleChannelEvents: Setting state from leader's existing state response", { event: r }, ), this.syncing?.state !== Tr.PENDING) ) break; this.syncing.resolve?.(); let a = { type: Ue.InternalEventType.SET_STATE, payload: { state: r.payload, previousState: this.state }, }; ((this.state = r.payload), this.emitToListeners(a, n)); break; } switch (r.type) { case Ue.InternalEventType.SET_STATE: (this.debug("handleChannelEvents: Setting state", { event: r }), (this.state = r.payload.state)); break; } this.emitToListeners(r, { actor: n.actor }); } debug(t, r) { this.debugging && console.debug( Qe`[UniversalStore::${this.id}::${this.environment ?? Ue.Environment.UNKNOWN}] ${t}`, JSON.stringify( { data: r, actor: this.actor, state: this.state, status: this.status, }, null, 2, ), ); } static __reset() { (Ue.preparation.reject(new Error("reset")), Ue.setupPreparationPromise(), (Ue.isInternalConstructing = !1)); } }; (s(Bn, "UniversalStore"), (Bn.ActorType = { LEADER: "LEADER", FOLLOWER: "FOLLOWER" }), (Bn.Environment = { SERVER: "SERVER", MANAGER: "MANAGER", PREVIEW: "PREVIEW", UNKNOWN: "UNKNOWN", MOCK: "MOCK", }), (Bn.InternalEventType = { EXISTING_STATE_REQUEST: "__EXISTING_STATE_REQUEST", EXISTING_STATE_RESPONSE: "__EXISTING_STATE_RESPONSE", SET_STATE: "__SET_STATE", LEADER_CREATED: "__LEADER_CREATED", FOLLOWER_CREATED: "__FOLLOWER_CREATED", }), (Bn.Status = { UNPREPARED: "UNPREPARED", SYNCING: "SYNCING", READY: "READY", ERROR: "ERROR", }), (Bn.isInternalConstructing = !1), Bn.setupPreparationPromise()); var tp = Bn, cU = s((e) => e.transports !== void 0, "isMulti"), dU = s(() => Math.random().toString(16).slice(2), "generateRandomId"), CS = class { constructor(t = {}) { ((this.sender = dU()), (this.events = {}), (this.data = {}), (this.transports = []), (this.isAsync = t.async || !1), cU(t) ? ((this.transports = t.transports || []), this.transports.forEach((r) => { r.setHandler((n) => this.handleEvent(n)); })) : (this.transports = t.transport ? [t.transport] : []), this.transports.forEach((r) => { r.setHandler((n) => this.handleEvent(n)); })); } get hasTransport() { return this.transports.length > 0; } addListener(t, r) { ((this.events[t] = this.events[t] || []), this.events[t].push(r)); } emit(t, ...r) { let n = { type: t, args: r, from: this.sender }, a = {}; r.length >= 1 && r[0] && r[0].options && (a = r[0].options); let o = s(() => { (this.transports.forEach((i) => { i.send(n, a); }), this.handleEvent(n)); }, "handler"); this.isAsync ? setImmediate(o) : o(); } last(t) { return this.data[t]; } eventNames() { return Object.keys(this.events); } listenerCount(t) { let r = this.listeners(t); return r ? r.length : 0; } listeners(t) { return this.events[t] || void 0; } once(t, r) { let n = this.onceListener(t, r); this.addListener(t, n); } removeAllListeners(t) { t ? this.events[t] && delete this.events[t] : (this.events = {}); } removeListener(t, r) { let n = this.listeners(t); n && (this.events[t] = n.filter((a) => a !== r)); } on(t, r) { this.addListener(t, r); } off(t, r) { this.removeListener(t, r); } handleEvent(t) { let r = this.listeners(t.type); (r && r.length && r.forEach((n) => { n.apply(t, t.args); }), (this.data[t.type] = t.args)); } onceListener(t, r) { let n = s((...a) => (this.removeListener(t, n), r(...a)), "onceListener"); return n; } }; s(CS, "Channel"); var fc = CS, wS = {}; ur(wS, { deprecate: () => rg, logger: () => St, once: () => Mt, pretty: () => xr, }); var { LOGLEVEL: pU } = Ae, Hn = { trace: 1, debug: 2, info: 3, warn: 4, error: 5, silent: 10 }, fU = pU, Ka = Hn[fU] || Hn.info, St = { trace: s((e, ...t) => { Ka <= Hn.trace && console.trace(e, ...t); }, "trace"), debug: s((e, ...t) => { Ka <= Hn.debug && console.debug(e, ...t); }, "debug"), info: s((e, ...t) => { Ka <= Hn.info && console.info(e, ...t); }, "info"), warn: s((e, ...t) => { Ka <= Hn.warn && console.warn(e, ...t); }, "warn"), error: s((e, ...t) => { Ka <= Hn.error && console.error(e, ...t); }, "error"), log: s((e, ...t) => { Ka < Hn.silent && console.log(e, ...t); }, "log"), }, Ph = new Set(), Mt = s( (e) => (t, ...r) => { if (!Ph.has(t)) return (Ph.add(t), St[e](t, ...r)); }, "once", ); Mt.clear = () => Ph.clear(); Mt.trace = Mt("trace"); Mt.debug = Mt("debug"); Mt.info = Mt("info"); Mt.warn = Mt("warn"); Mt.error = Mt("error"); Mt.log = Mt("log"); var rg = Mt("warn"), xr = s( (e) => (...t) => { let r = []; if (t.length) { let n = //gi, a = /<\/span>/gi, o; for ( r.push(t[0].replace(n, "%c").replace(a, "%c")); (o = n.exec(t[0])); ) (r.push(o[2]), r.push("")); for (let i = 1; i < t.length; i++) r.push(t[i]); } St[e].apply(St, r); }, "pretty", ); xr.trace = xr("trace"); xr.debug = xr("debug"); xr.info = xr("info"); xr.warn = xr("warn"); xr.error = xr("error"); var hU = Object.create, AS = Object.defineProperty, mU = Object.getOwnPropertyDescriptor, SS = Object.getOwnPropertyNames, yU = Object.getPrototypeOf, gU = Object.prototype.hasOwnProperty, Xe = s( (e, t) => s(function () { return ( t || (0, e[SS(e)[0]])((t = { exports: {} }).exports, t), t.exports ); }, "__require"), "__commonJS", ), bU = s((e, t, r, n) => { if ((t && typeof t == "object") || typeof t == "function") for (let a of SS(t)) !gU.call(e, a) && a !== r && AS(e, a, { get: s(() => t[a], "get"), enumerable: !(n = mU(t, a)) || n.enumerable, }); return e; }, "__copyProps"), ng = s( (e, t, r) => ( (r = e != null ? hU(yU(e)) : {}), bU( t || !e || !e.__esModule ? AS(r, "default", { value: e, enumerable: !0 }) : r, e, ) ), "__toESM", ), vU = [ "bubbles", "cancelBubble", "cancelable", "composed", "currentTarget", "defaultPrevented", "eventPhase", "isTrusted", "returnValue", "srcElement", "target", "timeStamp", "type", ], EU = ["detail"]; function xS(e) { let t = vU .filter((r) => e[r] !== void 0) .reduce((r, n) => ((r[n] = e[n]), r), {}); if (e instanceof CustomEvent) for (let r of EU.filter((n) => e[n] !== void 0)) t[r] = e[r]; return t; } s(xS, "extractEventHiddenProperties"); var PS = Xe({ "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"( e, t, ) { t.exports = Object; }, }), _U = Xe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e, t) { t.exports = Error; }, }), CU = Xe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e, t) { t.exports = EvalError; }, }), wU = Xe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e, t) { t.exports = RangeError; }, }), AU = Xe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e, t) { t.exports = ReferenceError; }, }), SU = Xe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"( e, t, ) { t.exports = SyntaxError; }, }), ag = Xe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e, t) { t.exports = TypeError; }, }), xU = Xe({ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e, t) { t.exports = URIError; }, }), PU = Xe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"( e, t, ) { t.exports = Math.abs; }, }), RU = Xe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"( e, t, ) { t.exports = Math.floor; }, }), TU = Xe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"( e, t, ) { t.exports = Math.max; }, }), OU = Xe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"( e, t, ) { t.exports = Math.min; }, }), DU = Xe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"( e, t, ) { t.exports = Math.pow; }, }), FU = Xe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"( e, t, ) { t.exports = Math.round; }, }), IU = Xe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"( e, t, ) { t.exports = Number.isNaN || s(function (r) { return r !== r; }, "isNaN2"); }, }), NU = Xe({ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"( e, t, ) { var r = IU(); t.exports = s(function (n) { return r(n) || n === 0 ? n : n < 0 ? -1 : 1; }, "sign"); }, }), jU = Xe({ "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e, t) { t.exports = Object.getOwnPropertyDescriptor; }, }), og = Xe({ "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e, t) { var r = jU(); if (r) try { r([], "length"); } catch { r = null; } t.exports = r; }, }), kU = Xe({ "node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"( e, t, ) { var r = Object.defineProperty || !1; if (r) try { r({}, "a", { value: 1 }); } catch { r = !1; } t.exports = r; }, }), RS = Xe({ "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"( e, t, ) { t.exports = s(function () { if ( typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function" ) return !1; if (typeof Symbol.iterator == "symbol") return !0; var r = {}, n = Symbol("test"), a = Object(n); if ( typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(a) !== "[object Symbol]" ) return !1; var o = 42; r[n] = o; for (var i in r) return !1; if ( (typeof Object.keys == "function" && Object.keys(r).length !== 0) || (typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(r).length !== 0) ) return !1; var u = Object.getOwnPropertySymbols(r); if ( u.length !== 1 || u[0] !== n || !Object.prototype.propertyIsEnumerable.call(r, n) ) return !1; if (typeof Object.getOwnPropertyDescriptor == "function") { var l = Object.getOwnPropertyDescriptor(r, n); if (l.value !== o || l.enumerable !== !0) return !1; } return !0; }, "hasSymbols"); }, }), TS = Xe({ "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"( e, t, ) { var r = typeof Symbol < "u" && Symbol, n = RS(); t.exports = s(function () { return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n(); }, "hasNativeSymbols"); }, }), OS = Xe({ "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"( e, t, ) { t.exports = (typeof Reflect < "u" && Reflect.getPrototypeOf) || null; }, }), DS = Xe({ "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"( e, t, ) { var r = PS(); t.exports = r.getPrototypeOf || null; }, }), qU = Xe({ "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"( e, t, ) { var r = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, a = Math.max, o = "[object Function]", i = s(function (c, d) { for (var p = [], f = 0; f < c.length; f += 1) p[f] = c[f]; for (var h = 0; h < d.length; h += 1) p[h + c.length] = d[h]; return p; }, "concatty2"), u = s(function (c, d) { for (var p = [], f = d || 0, h = 0; f < c.length; f += 1, h += 1) p[h] = c[f]; return p; }, "slicy2"), l = s(function (c, d) { for (var p = "", f = 0; f < c.length; f += 1) ((p += c[f]), f + 1 < c.length && (p += d)); return p; }, "joiny"); t.exports = s(function (c) { var d = this; if (typeof d != "function" || n.apply(d) !== o) throw new TypeError(r + d); for ( var p = u(arguments, 1), f, h = s(function () { if (this instanceof f) { var v = d.apply(this, i(p, arguments)); return Object(v) === v ? v : this; } return d.apply(c, i(p, arguments)); }, "binder"), m = a(0, d.length - p.length), y = [], b = 0; b < m; b++ ) y[b] = "$" + b; if ( ((f = Function( "binder", "return function (" + l(y, ",") + "){ return binder.apply(this,arguments); }", )(h)), d.prototype) ) { var g = s(function () {}, "Empty2"); ((g.prototype = d.prototype), (f.prototype = new g()), (g.prototype = null)); } return f; }, "bind"); }, }), hc = Xe({ "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"( e, t, ) { var r = qU(); t.exports = Function.prototype.bind || r; }, }), ig = Xe({ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"( e, t, ) { t.exports = Function.prototype.call; }, }), FS = Xe({ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"( e, t, ) { t.exports = Function.prototype.apply; }, }), MU = Xe({ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"( e, t, ) { t.exports = typeof Reflect < "u" && Reflect && Reflect.apply; }, }), BU = Xe({ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"( e, t, ) { var r = hc(), n = FS(), a = ig(), o = MU(); t.exports = o || r.call(a, n); }, }), IS = Xe({ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"( e, t, ) { var r = hc(), n = ag(), a = ig(), o = BU(); t.exports = s(function (i) { if (i.length < 1 || typeof i[0] != "function") throw new n("a function is required"); return o(r, a, i); }, "callBindBasic"); }, }), LU = Xe({ "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"( e, t, ) { var r = IS(), n = og(), a; try { a = [].__proto__ === Array.prototype; } catch (l) { if ( !l || typeof l != "object" || !("code" in l) || l.code !== "ERR_PROTO_ACCESS" ) throw l; } var o = !!a && n && n(Object.prototype, "__proto__"), i = Object, u = i.getPrototypeOf; t.exports = o && typeof o.get == "function" ? r([o.get]) : typeof u == "function" ? s(function (l) { return u(l == null ? l : i(l)); }, "getDunder") : !1; }, }), $U = Xe({ "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e, t) { var r = OS(), n = DS(), a = LU(); t.exports = r ? s(function (o) { return r(o); }, "getProto") : n ? s(function (o) { if (!o || (typeof o != "object" && typeof o != "function")) throw new TypeError("getProto: not an object"); return n(o); }, "getProto") : a ? s(function (o) { return a(o); }, "getProto") : null; }, }), NS = Xe({ "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e, t) { var r = Function.prototype.call, n = Object.prototype.hasOwnProperty, a = hc(); t.exports = a.call(r, n); }, }), UU = Xe({ "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"( e, t, ) { var r, n = PS(), a = _U(), o = CU(), i = wU(), u = AU(), l = SU(), c = ag(), d = xU(), p = PU(), f = RU(), h = TU(), m = OU(), y = DU(), b = FU(), g = NU(), v = Function, x = s(function (z) { try { return v('"use strict"; return (' + z + ").constructor;")(); } catch {} }, "getEvalledConstructor"), A = og(), w = kU(), C = s(function () { throw new c(); }, "throwTypeError"), E = A ? (function () { try { return (arguments.callee, C); } catch { try { return A(arguments, "callee").get; } catch { return C; } } })() : C, _ = TS()(), P = $U(), D = DS(), F = OS(), L = FS(), q = ig(), T = {}, k = typeof Uint8Array > "u" || !P ? r : P(Uint8Array), I = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer, "%ArrayIteratorPrototype%": _ && P ? P([][Symbol.iterator]()) : r, "%AsyncFromSyncIteratorPrototype%": r, "%AsyncFunction%": T, "%AsyncGenerator%": T, "%AsyncGeneratorFunction%": T, "%AsyncIteratorPrototype%": T, "%Atomics%": typeof Atomics > "u" ? r : Atomics, "%BigInt%": typeof BigInt > "u" ? r : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? r : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? r : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? r : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": a, "%eval%": eval, "%EvalError%": o, "%Float16Array%": typeof Float16Array > "u" ? r : Float16Array, "%Float32Array%": typeof Float32Array > "u" ? r : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? r : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? r : FinalizationRegistry, "%Function%": v, "%GeneratorFunction%": T, "%Int8Array%": typeof Int8Array > "u" ? r : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? r : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? r : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": _ && P ? P(P([][Symbol.iterator]())) : r, "%JSON%": typeof JSON == "object" ? JSON : r, "%Map%": typeof Map > "u" ? r : Map, "%MapIteratorPrototype%": typeof Map > "u" || !_ || !P ? r : P(new Map()[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": n, "%Object.getOwnPropertyDescriptor%": A, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? r : Promise, "%Proxy%": typeof Proxy > "u" ? r : Proxy, "%RangeError%": i, "%ReferenceError%": u, "%Reflect%": typeof Reflect > "u" ? r : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? r : Set, "%SetIteratorPrototype%": typeof Set > "u" || !_ || !P ? r : P(new Set()[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": _ && P ? P(""[Symbol.iterator]()) : r, "%Symbol%": _ ? Symbol : r, "%SyntaxError%": l, "%ThrowTypeError%": E, "%TypedArray%": k, "%TypeError%": c, "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array, "%URIError%": d, "%WeakMap%": typeof WeakMap > "u" ? r : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet, "%Function.prototype.call%": q, "%Function.prototype.apply%": L, "%Object.defineProperty%": w, "%Object.getPrototypeOf%": D, "%Math.abs%": p, "%Math.floor%": f, "%Math.max%": h, "%Math.min%": m, "%Math.pow%": y, "%Math.round%": b, "%Math.sign%": g, "%Reflect.getPrototypeOf%": F, }; if (P) try { null.error; } catch (z) { ((W = P(P(z))), (I["%Error.prototype%"] = W)); } var W, Q = s(function z(ne) { var ue; if (ne === "%AsyncFunction%") ue = x("async function () {}"); else if (ne === "%GeneratorFunction%") ue = x("function* () {}"); else if (ne === "%AsyncGeneratorFunction%") ue = x("async function* () {}"); else if (ne === "%AsyncGenerator%") { var te = z("%AsyncGeneratorFunction%"); te && (ue = te.prototype); } else if (ne === "%AsyncIteratorPrototype%") { var ae = z("%AsyncGenerator%"); ae && P && (ue = P(ae.prototype)); } return ((I[ne] = ue), ue); }, "doEval2"), se = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": [ "AsyncGeneratorFunction", "prototype", "prototype", ], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": [ "GeneratorFunction", "prototype", "prototype", ], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"], }, H = hc(), K = NS(), V = H.call(q, Array.prototype.concat), Z = H.call(L, Array.prototype.splice), re = H.call(q, String.prototype.replace), he = H.call(q, String.prototype.slice), oe = H.call(q, RegExp.prototype.exec), ge = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, be = /\\(\\)?/g, rt = s(function (z) { var ne = he(z, 0, 1), ue = he(z, -1); if (ne === "%" && ue !== "%") throw new l("invalid intrinsic syntax, expected closing `%`"); if (ue === "%" && ne !== "%") throw new l("invalid intrinsic syntax, expected opening `%`"); var te = []; return ( re(z, ge, function (ae, ee, fe, we) { te[te.length] = fe ? re(we, be, "$1") : ee || ae; }), te ); }, "stringToPath3"), Ke = s(function (z, ne) { var ue = z, te; if ( (K(se, ue) && ((te = se[ue]), (ue = "%" + te[0] + "%")), K(I, ue)) ) { var ae = I[ue]; if ((ae === T && (ae = Q(ue)), typeof ae > "u" && !ne)) throw new c( "intrinsic " + z + " exists, but is not available. Please file an issue!", ); return { alias: te, name: ue, value: ae }; } throw new l("intrinsic " + z + " does not exist!"); }, "getBaseIntrinsic2"); t.exports = s(function (z, ne) { if (typeof z != "string" || z.length === 0) throw new c("intrinsic name must be a non-empty string"); if (arguments.length > 1 && typeof ne != "boolean") throw new c('"allowMissing" argument must be a boolean'); if (oe(/^%?[^%]*%?$/, z) === null) throw new l( "`%` may not be present anywhere but at the beginning and end of the intrinsic name", ); var ue = rt(z), te = ue.length > 0 ? ue[0] : "", ae = Ke("%" + te + "%", ne), ee = ae.name, fe = ae.value, we = !1, Pe = ae.alias; Pe && ((te = Pe[0]), Z(ue, V([0, 1], Pe))); for (var xe = 1, ke = !0; xe < ue.length; xe += 1) { var Te = ue[xe], je = he(Te, 0, 1), Le = he(Te, -1); if ( (je === '"' || je === "'" || je === "`" || Le === '"' || Le === "'" || Le === "`") && je !== Le ) throw new l("property names with quotes must have matching quotes"); if ( ((Te === "constructor" || !ke) && (we = !0), (te += "." + Te), (ee = "%" + te + "%"), K(I, ee)) ) fe = I[ee]; else if (fe != null) { if (!(Te in fe)) { if (!ne) throw new c( "base intrinsic for " + z + " exists, but the property is not available.", ); return; } if (A && xe + 1 >= ue.length) { var ve = A(fe, Te); ((ke = !!ve), ke && "get" in ve && !("originalValue" in ve.get) ? (fe = ve.get) : (fe = fe[Te])); } else ((ke = K(fe, Te)), (fe = fe[Te])); ke && !we && (I[ee] = fe); } } return fe; }, "GetIntrinsic"); }, }), sg = Xe({ "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"( e, t, ) { var r = UU(), n = IS(), a = n([r("%String.prototype.indexOf%")]); t.exports = s(function (o, i) { var u = r(o, !!i); return typeof u == "function" && a(o, ".prototype.") > -1 ? n([u]) : u; }, "callBoundIntrinsic"); }, }), HU = Xe({ "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"( e, t, ) { var r = RS(); t.exports = s(function () { return r() && !!Symbol.toStringTag; }, "hasToStringTagShams"); }, }), jS = Xe({ "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e, t) { var r = sg(), n = HU()(), a = NS(), o = og(), i; n ? ((u = r("RegExp.prototype.exec")), (l = {}), (c = s(function () { throw l; }, "throwRegexMarker")), (d = { toString: c, valueOf: c }), typeof Symbol.toPrimitive == "symbol" && (d[Symbol.toPrimitive] = c), (i = s(function (h) { if (!h || typeof h != "object") return !1; var m = o(h, "lastIndex"), y = m && a(m, "value"); if (!y) return !1; try { u(h, d); } catch (b) { return b === l; } }, "isRegex"))) : ((p = r("Object.prototype.toString")), (f = "[object RegExp]"), (i = s(function (h) { return !h || (typeof h != "object" && typeof h != "function") ? !1 : p(h) === f; }, "isRegex"))); var u, l, c, d, p, f; t.exports = i; }, }), VU = Xe({ "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"( e, t, ) { t.exports = n; var r = Object.prototype.toString; function n(a) { if (!a) return !1; var o = r.call(a); return ( o === "[object Function]" || (typeof a == "function" && o !== "[object RegExp]") || (typeof window < "u" && (a === window.setTimeout || a === window.alert || a === window.confirm || a === window.prompt)) ); } s(n, "isFunction3"); }, }), zU = Xe({ "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"( e, t, ) { var r = sg(), n = jS(), a = r("RegExp.prototype.exec"), o = ag(); t.exports = s(function (i) { if (!n(i)) throw new o("`regex` must be a RegExp"); return s(function (u) { return a(i, u) !== null; }, "test"); }, "regexTester"); }, }), GU = Xe({ "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e, t) { var r = sg(), n = r("Object.prototype.toString"), a = TS()(), o = zU(); a ? ((i = r("Symbol.prototype.toString")), (u = o(/^Symbol\(.*\)$/)), (l = s(function (c) { return typeof c.valueOf() != "symbol" ? !1 : u(i(c)); }, "isRealSymbolObject")), (t.exports = s(function (c) { if (typeof c == "symbol") return !0; if (!c || typeof c != "object" || n(c) !== "[object Symbol]") return !1; try { return l(c); } catch { return !1; } }, "isSymbol3"))) : (t.exports = s(function (c) { return !1; }, "isSymbol3")); var i, u, l; }, }), WU = ng(jS()), JU = ng(VU()), XU = ng(GU()); function kS(e) { return e != null && typeof e == "object" && Array.isArray(e) === !1; } s(kS, "isObject"); var KU = typeof global == "object" && global && global.Object === Object && global, YU = KU, QU = typeof self == "object" && self && self.Object === Object && self, ZU = YU || QU || Function("return this")(), ug = ZU, eH = ug.Symbol, Co = eH, qS = Object.prototype, tH = qS.hasOwnProperty, rH = qS.toString, si = Co ? Co.toStringTag : void 0; function MS(e) { var t = tH.call(e, si), r = e[si]; try { e[si] = void 0; var n = !0; } catch {} var a = rH.call(e); return (n && (t ? (e[si] = r) : delete e[si]), a); } s(MS, "getRawTag"); var nH = MS, aH = Object.prototype, oH = aH.toString; function BS(e) { return oH.call(e); } s(BS, "objectToString"); var iH = BS, sH = "[object Null]", uH = "[object Undefined]", WE = Co ? Co.toStringTag : void 0; function LS(e) { return e == null ? e === void 0 ? uH : sH : WE && WE in Object(e) ? nH(e) : iH(e); } s(LS, "baseGetTag"); var $S = LS; function US(e) { return e != null && typeof e == "object"; } s(US, "isObjectLike"); var lH = US, cH = "[object Symbol]"; function HS(e) { return typeof e == "symbol" || (lH(e) && $S(e) == cH); } s(HS, "isSymbol"); var lg = HS; function VS(e, t) { for (var r = -1, n = e == null ? 0 : e.length, a = Array(n); ++r < n; ) a[r] = t(e[r], r, e); return a; } s(VS, "arrayMap"); var dH = VS, pH = Array.isArray, cg = pH, JE = Co ? Co.prototype : void 0, XE = JE ? JE.toString : void 0; function dg(e) { if (typeof e == "string") return e; if (cg(e)) return dH(e, dg) + ""; if (lg(e)) return XE ? XE.call(e) : ""; var t = e + ""; return t == "0" && 1 / e == -1 / 0 ? "-0" : t; } s(dg, "baseToString"); var fH = dg; function zS(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } s(zS, "isObject2"); var GS = zS, hH = "[object AsyncFunction]", mH = "[object Function]", yH = "[object GeneratorFunction]", gH = "[object Proxy]"; function WS(e) { if (!GS(e)) return !1; var t = $S(e); return t == mH || t == yH || t == hH || t == gH; } s(WS, "isFunction"); var bH = WS, vH = ug["__core-js_shared__"], rp = vH, KE = (function () { var e = /[^.]+$/.exec((rp && rp.keys && rp.keys.IE_PROTO) || ""); return e ? "Symbol(src)_1." + e : ""; })(); function JS(e) { return !!KE && KE in e; } s(JS, "isMasked"); var EH = JS, _H = Function.prototype, CH = _H.toString; function XS(e) { if (e != null) { try { return CH.call(e); } catch {} try { return e + ""; } catch {} } return ""; } s(XS, "toSource"); var wH = XS, AH = /[\\^$.*+?()[\]{}|]/g, SH = /^\[object .+?Constructor\]$/, xH = Function.prototype, PH = Object.prototype, RH = xH.toString, TH = PH.hasOwnProperty, OH = RegExp( "^" + RH.call(TH) .replace(AH, "\\$&") .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?", ) + "$", ); function KS(e) { if (!GS(e) || EH(e)) return !1; var t = bH(e) ? OH : SH; return t.test(wH(e)); } s(KS, "baseIsNative"); var DH = KS; function YS(e, t) { return e?.[t]; } s(YS, "getValue"); var FH = YS; function QS(e, t) { var r = FH(e, t); return DH(r) ? r : void 0; } s(QS, "getNative"); var ZS = QS; function ex(e, t) { return e === t || (e !== e && t !== t); } s(ex, "eq"); var IH = ex, NH = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, jH = /^\w*$/; function tx(e, t) { if (cg(e)) return !1; var r = typeof e; return r == "number" || r == "symbol" || r == "boolean" || e == null || lg(e) ? !0 : jH.test(e) || !NH.test(e) || (t != null && e in Object(t)); } s(tx, "isKey"); var kH = tx, qH = ZS(Object, "create"), Hi = qH; function rx() { ((this.__data__ = Hi ? Hi(null) : {}), (this.size = 0)); } s(rx, "hashClear"); var MH = rx; function nx(e) { var t = this.has(e) && delete this.__data__[e]; return ((this.size -= t ? 1 : 0), t); } s(nx, "hashDelete"); var BH = nx, LH = "__lodash_hash_undefined__", $H = Object.prototype, UH = $H.hasOwnProperty; function ax(e) { var t = this.__data__; if (Hi) { var r = t[e]; return r === LH ? void 0 : r; } return UH.call(t, e) ? t[e] : void 0; } s(ax, "hashGet"); var HH = ax, VH = Object.prototype, zH = VH.hasOwnProperty; function ox(e) { var t = this.__data__; return Hi ? t[e] !== void 0 : zH.call(t, e); } s(ox, "hashHas"); var GH = ox, WH = "__lodash_hash_undefined__"; function ix(e, t) { var r = this.__data__; return ( (this.size += this.has(e) ? 0 : 1), (r[e] = Hi && t === void 0 ? WH : t), this ); } s(ix, "hashSet"); var JH = ix; function Ba(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[t]; this.set(n[0], n[1]); } } s(Ba, "Hash"); Ba.prototype.clear = MH; Ba.prototype.delete = BH; Ba.prototype.get = HH; Ba.prototype.has = GH; Ba.prototype.set = JH; var YE = Ba; function sx() { ((this.__data__ = []), (this.size = 0)); } s(sx, "listCacheClear"); var XH = sx; function ux(e, t) { for (var r = e.length; r--; ) if (IH(e[r][0], t)) return r; return -1; } s(ux, "assocIndexOf"); var mc = ux, KH = Array.prototype, YH = KH.splice; function lx(e) { var t = this.__data__, r = mc(t, e); if (r < 0) return !1; var n = t.length - 1; return (r == n ? t.pop() : YH.call(t, r, 1), --this.size, !0); } s(lx, "listCacheDelete"); var QH = lx; function cx(e) { var t = this.__data__, r = mc(t, e); return r < 0 ? void 0 : t[r][1]; } s(cx, "listCacheGet"); var ZH = cx; function dx(e) { return mc(this.__data__, e) > -1; } s(dx, "listCacheHas"); var e7 = dx; function px(e, t) { var r = this.__data__, n = mc(r, e); return (n < 0 ? (++this.size, r.push([e, t])) : (r[n][1] = t), this); } s(px, "listCacheSet"); var t7 = px; function La(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[t]; this.set(n[0], n[1]); } } s(La, "ListCache"); La.prototype.clear = XH; La.prototype.delete = QH; La.prototype.get = ZH; La.prototype.has = e7; La.prototype.set = t7; var r7 = La, n7 = ZS(ug, "Map"), a7 = n7; function fx() { ((this.size = 0), (this.__data__ = { hash: new YE(), map: new (a7 || r7)(), string: new YE(), })); } s(fx, "mapCacheClear"); var o7 = fx; function hx(e) { var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } s(hx, "isKeyable"); var i7 = hx; function mx(e, t) { var r = e.__data__; return i7(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map; } s(mx, "getMapData"); var yc = mx; function yx(e) { var t = yc(this, e).delete(e); return ((this.size -= t ? 1 : 0), t); } s(yx, "mapCacheDelete"); var s7 = yx; function gx(e) { return yc(this, e).get(e); } s(gx, "mapCacheGet"); var u7 = gx; function bx(e) { return yc(this, e).has(e); } s(bx, "mapCacheHas"); var l7 = bx; function vx(e, t) { var r = yc(this, e), n = r.size; return (r.set(e, t), (this.size += r.size == n ? 0 : 1), this); } s(vx, "mapCacheSet"); var c7 = vx; function $a(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[t]; this.set(n[0], n[1]); } } s($a, "MapCache"); $a.prototype.clear = o7; $a.prototype.delete = s7; $a.prototype.get = u7; $a.prototype.has = l7; $a.prototype.set = c7; var Ex = $a, d7 = "Expected a function"; function gc(e, t) { if (typeof e != "function" || (t != null && typeof t != "function")) throw new TypeError(d7); var r = s(function () { var n = arguments, a = t ? t.apply(this, n) : n[0], o = r.cache; if (o.has(a)) return o.get(a); var i = e.apply(this, n); return ((r.cache = o.set(a, i) || o), i); }, "memoized"); return ((r.cache = new (gc.Cache || Ex)()), r); } s(gc, "memoize"); gc.Cache = Ex; var p7 = gc, f7 = 500; function _x(e) { var t = p7(e, function (n) { return (r.size === f7 && r.clear(), n); }), r = t.cache; return t; } s(_x, "memoizeCapped"); var h7 = _x, m7 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, y7 = /\\(\\)?/g, g7 = h7(function (e) { var t = []; return ( e.charCodeAt(0) === 46 && t.push(""), e.replace(m7, function (r, n, a, o) { t.push(a ? o.replace(y7, "$1") : n || r); }), t ); }), b7 = g7; function Cx(e) { return e == null ? "" : fH(e); } s(Cx, "toString"); var v7 = Cx; function wx(e, t) { return cg(e) ? e : kH(e, t) ? [e] : b7(v7(e)); } s(wx, "castPath"); var E7 = wx; function Ax(e) { if (typeof e == "string" || lg(e)) return e; var t = e + ""; return t == "0" && 1 / e == -1 / 0 ? "-0" : t; } s(Ax, "toKey"); var _7 = Ax; function Sx(e, t) { t = E7(t, e); for (var r = 0, n = t.length; e != null && r < n; ) e = e[_7(t[r++])]; return r && r == n ? e : void 0; } s(Sx, "baseGet"); var C7 = Sx; function xx(e, t, r) { var n = e == null ? void 0 : C7(e, t); return n === void 0 ? r : n; } s(xx, "get"); var w7 = xx, pg = kS, A7 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, fg = s((e) => e.match(/^[\[\{\"\}].*[\]\}\"]$/), "isJSON"); function hg(e) { if (!pg(e)) return e; let t = e, r = !1; return ( typeof Event < "u" && e instanceof Event && ((t = xS(t)), (r = !0)), (t = Object.keys(t).reduce((n, a) => { try { (t[a] && t[a].toJSON, (n[a] = t[a])); } catch { r = !0; } return n; }, {})), r ? t : e ); } s(hg, "convertUnconventionalData"); var S7 = s(function (e) { let t, r, n, a; return s(function (o, i) { try { if (o === "") return ( (a = []), (t = new Map([[i, "[]"]])), (r = new Map()), (n = []), i ); let u = r.get(this) || this; for (; n.length && u !== n[0]; ) (n.shift(), a.pop()); if (typeof i == "boolean") return i; if (i === void 0) return e.allowUndefined ? "_undefined_" : void 0; if (i === null) return null; if (typeof i == "number") return i === Number.NEGATIVE_INFINITY ? "_-Infinity_" : i === Number.POSITIVE_INFINITY ? "_Infinity_" : Number.isNaN(i) ? "_NaN_" : i; if (typeof i == "bigint") return `_bigint_${i.toString()}`; if (typeof i == "string") return A7.test(i) ? (e.allowDate ? `_date_${i}` : void 0) : i; if ((0, WU.default)(i)) return e.allowRegExp ? `_regexp_${i.flags}|${i.source}` : void 0; if ((0, JU.default)(i)) return; if ((0, XU.default)(i)) { if (!e.allowSymbol) return; let c = Symbol.keyFor(i); return c !== void 0 ? `_gsymbol_${c}` : `_symbol_${i.toString().slice(7, -1)}`; } if (n.length >= e.maxDepth) return Array.isArray(i) ? `[Array(${i.length})]` : "[Object]"; if (i === this) return `_duplicate_${JSON.stringify(a)}`; if (i instanceof Error && e.allowError) return { __isConvertedError__: !0, errorProperties: { ...(i.cause ? { cause: i.cause } : {}), ...i, name: i.name, message: i.message, stack: i.stack, "_constructor-name_": i.constructor.name, }, }; if ( i?.constructor?.name && i.constructor.name !== "Object" && !Array.isArray(i) ) { let c = t.get(i); if (!c) { let d = { __isClassInstance__: !0, __className__: i.constructor.name, ...Object.getOwnPropertyNames(i).reduce((p, f) => { try { p[f] = i[f]; } catch {} return p; }, {}), }; return ( a.push(o), n.unshift(d), t.set(i, JSON.stringify(a)), i !== d && r.set(i, d), d ); } return `_duplicate_${c}`; } let l = t.get(i); if (!l) { let c = Array.isArray(i) ? i : hg(i); return ( a.push(o), n.unshift(c), t.set(i, JSON.stringify(a)), i !== c && r.set(i, c), c ); } return `_duplicate_${l}`; } catch { return; } }, "replace"); }, "replacer2"), x7 = s(function (e) { let t = [], r; return s(function (n, a) { if ( (n === "" && ((r = a), t.forEach(({ target: o, container: i, replacement: u }) => { let l = fg(u) ? JSON.parse(u) : u.split("."); l.length === 0 ? (i[o] = r) : (i[o] = w7(r, l)); })), n === "_constructor-name_") ) return a; if (pg(a) && a.__isConvertedError__) { let { message: o, ...i } = a.errorProperties, u = new Error(o); return (Object.assign(u, i), u); } if (typeof a == "string" && a.startsWith("_regexp_") && e.allowRegExp) { let [, o, i] = a.match(/_regexp_([^|]*)\|(.*)/) || []; return new RegExp(i, o); } return typeof a == "string" && a.startsWith("_date_") && e.allowDate ? new Date(a.replace("_date_", "")) : typeof a == "string" && a.startsWith("_duplicate_") ? (t.push({ target: n, container: this, replacement: a.replace(/^_duplicate_/, ""), }), null) : typeof a == "string" && a.startsWith("_symbol_") && e.allowSymbol ? Symbol(a.replace("_symbol_", "")) : typeof a == "string" && a.startsWith("_gsymbol_") && e.allowSymbol ? Symbol.for(a.replace("_gsymbol_", "")) : typeof a == "string" && a === "_-Infinity_" ? Number.NEGATIVE_INFINITY : typeof a == "string" && a === "_Infinity_" ? Number.POSITIVE_INFINITY : typeof a == "string" && a === "_NaN_" ? Number.NaN : typeof a == "string" && a.startsWith("_bigint_") && typeof BigInt == "function" ? BigInt(a.replace("_bigint_", "")) : a; }, "revive"); }, "reviver2"), Px = { maxDepth: 10, space: void 0, allowRegExp: !0, allowDate: !0, allowError: !0, allowUndefined: !0, allowSymbol: !0, }, Rx = s((e, t = {}) => { let r = { ...Px, ...t }; return JSON.stringify(hg(e), S7(r), t.space); }, "stringify"), P7 = s(() => { let e = new Map(); return s(function t(r) { (pg(r) && Object.entries(r).forEach(([n, a]) => { a === "_undefined_" ? (r[n] = void 0) : e.get(a) || (e.set(a, !0), t(a)); }), Array.isArray(r) && r.forEach((n, a) => { n === "_undefined_" ? (e.set(n, !0), (r[a] = void 0)) : e.get(n) || (e.set(n, !0), t(n)); })); }, "mutateUndefined"); }, "mutator"), Tx = s((e, t = {}) => { let r = { ...Px, ...t }, n = JSON.parse(e, x7(r)); return (P7()(n), n); }, "parse"), R7 = "Invariant failed"; function sn(e, t) { if (!e) throw new Error(R7); } s(sn, "invariant"); var T7 = s((e) => { let t = Array.from(document.querySelectorAll("iframe[data-is-storybook]")), [r, ...n] = t.filter((o) => { try { return ( o.contentWindow?.location.origin === e.source.location.origin && o.contentWindow?.location.pathname === e.source.location.pathname ); } catch {} try { return o.contentWindow === e.source; } catch {} let i = o.getAttribute("src"), u; try { if (!i) return !1; ({ origin: u } = new URL(i, document.location.toString())); } catch { return !1; } return u === e.origin; }), a = r?.getAttribute("src"); if (a && n.length === 0) { let { protocol: o, host: i, pathname: u, } = new URL(a, document.location.toString()); return `${o}//${i}${u}`; } return ( n.length > 0 && St.error("found multiple candidates for event source"), null ); }, "getEventSourceUrl"), { document: np, location: ap } = Ae, QE = "storybook-channel", O7 = { maxDepth: 25 }, Ox = class { constructor(t) { if ( ((this.config = t), (this.connected = !1), (this.buffer = []), typeof Ae?.addEventListener == "function" && Ae.addEventListener("message", this.handleEvent.bind(this), !1), t.page !== "manager" && t.page !== "preview") ) throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`); } setHandler(t) { this.handler = (...r) => { (t.apply(this, r), !this.connected && this.getLocalFrame().length && (this.flush(), (this.connected = !0))); }; } send(t, r) { let { target: n, allowRegExp: a, allowSymbol: o, allowDate: i, allowError: u, allowUndefined: l, maxDepth: c, space: d, } = r || {}, p = Object.fromEntries( Object.entries({ allowRegExp: a, allowSymbol: o, allowDate: i, allowError: u, allowUndefined: l, maxDepth: c, space: d, }).filter(([b, g]) => typeof g < "u"), ), f = { ...O7, ...(Ae.CHANNEL_OPTIONS || {}), ...p }, h = this.getFrames(n), m = new URLSearchParams(ap?.search || ""), y = Rx({ key: QE, event: t, refId: m.get("refId") }, f); return h.length ? (this.buffer.length && this.flush(), h.forEach((b) => { try { b.postMessage(y, "*"); } catch { St.error("sending over postmessage fail"); } }), Promise.resolve(null)) : new Promise((b, g) => { this.buffer.push({ event: t, resolve: b, reject: g }); }); } flush() { let { buffer: t } = this; ((this.buffer = []), t.forEach((r) => { this.send(r.event).then(r.resolve).catch(r.reject); })); } getFrames(t) { if (this.config.page === "manager") { let r = Array.from( np.querySelectorAll("iframe[data-is-storybook][data-is-loaded]"), ).flatMap((n) => { try { return n.contentWindow && n.dataset.isStorybook !== void 0 && n.id === t ? [n.contentWindow] : []; } catch { return []; } }); return r?.length ? r : this.getCurrentFrames(); } return Ae && Ae.parent && Ae.parent !== Ae.self ? [Ae.parent] : []; } getCurrentFrames() { return this.config.page === "manager" ? Array.from(np.querySelectorAll('[data-is-storybook="true"]')).flatMap( (t) => (t.contentWindow ? [t.contentWindow] : []), ) : Ae && Ae.parent ? [Ae.parent] : []; } getLocalFrame() { return this.config.page === "manager" ? Array.from(np.querySelectorAll("#storybook-preview-iframe")).flatMap( (t) => (t.contentWindow ? [t.contentWindow] : []), ) : Ae && Ae.parent ? [Ae.parent] : []; } handleEvent(t) { try { let { data: r } = t, { key: n, event: a, refId: o, } = typeof r == "string" && fg(r) ? Tx(r, Ae.CHANNEL_OPTIONS || {}) : r; if (n === QE) { let i = this.config.page === "manager" ? ' manager ' : ' preview ', u = Object.values(Jy).includes(a.type) ? `${a.type}` : `${a.type}`; if ( (o && (a.refId = o), (a.source = this.config.page === "preview" ? t.origin : T7(t)), !a.source) ) { xr.error( `${i} received ${u} but was unable to determine the source of the event`, ); return; } let l = `${i} received ${u} (${r.length})`; (xr.debug( ap.origin !== a.source ? l : `${l} (on ${ap.origin} from ${a.source})`, ...a.args, ), sn(this.handler, "ChannelHandler should be set"), this.handler(a)); } } catch (r) { St.error(r); } } }; s(Ox, "PostMessageTransport"); var Dx = Ox, { WebSocket: D7 } = Ae, Fx = 15e3, Ix = 5e3, Nx = class { constructor({ url: t, onError: r, page: n }) { ((this.buffer = []), (this.isReady = !1), (this.isClosed = !1), (this.pingTimeout = 0), (this.socket = new D7(t)), (this.socket.onopen = () => { ((this.isReady = !0), this.heartbeat(), this.flush()); }), (this.socket.onmessage = ({ data: a }) => { let o = typeof a == "string" && fg(a) ? Tx(a) : a; (sn(this.handler), this.handler(o), o.type === "ping" && (this.heartbeat(), this.send({ type: "pong" }))); }), (this.socket.onerror = (a) => { r && r(a); }), (this.socket.onclose = (a) => { (sn(this.handler), this.handler({ type: Z1, args: [{ reason: a.reason, code: a.code }], from: n || "preview", }), (this.isClosed = !0), clearTimeout(this.pingTimeout)); })); } heartbeat() { (clearTimeout(this.pingTimeout), (this.pingTimeout = setTimeout(() => { this.socket.close(3008, "timeout"); }, Fx + Ix))); } setHandler(t) { this.handler = t; } send(t) { this.isClosed || (this.isReady ? this.sendNow(t) : this.sendLater(t)); } sendLater(t) { this.buffer.push(t); } sendNow(t) { let r = Rx(t, { maxDepth: 15, ...Ae.CHANNEL_OPTIONS }); this.socket.send(r); } flush() { let { buffer: t } = this; ((this.buffer = []), t.forEach((r) => this.send(r))); } }; s(Nx, "WebsocketTransport"); var jx = Nx, { CONFIG_TYPE: F7 } = Ae, I7 = fc; function kx({ page: e, extraTransports: t = [] }) { let r = [new Dx({ page: e }), ...t]; if (F7 === "DEVELOPMENT") { let a = window.location.protocol === "http:" ? "ws" : "wss", { hostname: o, port: i } = window.location, u = `${a}://${o}:${i}/storybook-server-channel`; r.push(new jx({ url: u, onError: s(() => {}, "onError"), page: e })); } let n = new fc({ transports: r }); return ( tp.__prepare( n, e === "manager" ? tp.Environment.MANAGER : tp.Environment.PREVIEW, ), n ); } s(kx, "createBrowserChannel"); var qx = {}; ur(qx, { CalledExtractOnStoreError: () => Gx, CalledPreviewMethodBeforeInitializationError: () => wr, Category: () => Lx, ElementA11yParameterError: () => B7, EmptyIndexError: () => tP, ImplicitActionsDuringRendering: () => Vx, MdxFileWithNoCsfReferencesError: () => Zx, MissingRenderToCanvasError: () => Jx, MissingStoryAfterHmrError: () => Ux, MissingStoryFromCsfFileError: () => oP, MountMustBeDestructuredError: () => mg, NextJsSharpError: () => j7, NextjsRouterMocksNotAvailable: () => k7, NoRenderFunctionError: () => cP, NoStoryMatchError: () => nP, NoStoryMountedError: () => pP, StatusTypeIdMismatchError: () => N7, StoryIndexFetchError: () => Yx, StoryStoreAccessedBeforeInitializationError: () => sP, UnknownArgTypesError: () => q7, UnsupportedViewportDimensionError: () => M7, }); function Rh({ code: e, category: t }) { let r = String(e).padStart(4, "0"); return `SB_${t}_${r}`; } s(Rh, "parseErrorCode"); var Mx = class Bx extends Error { constructor(t) { (super(Bx.getFullMessage(t)), (this.data = {}), (this.fromStorybook = !0), (this.category = t.category), (this.documentation = t.documentation ?? !1), (this.code = t.code)); } get fullErrorCode() { return Rh({ code: this.code, category: this.category }); } get name() { let t = this.constructor.name; return `${this.fullErrorCode} (${t})`; } static getFullMessage({ documentation: t, code: r, category: n, message: a, }) { let o; return ( t === !0 ? (o = `https://storybook.js.org/error/${Rh({ code: r, category: n })}`) : typeof t == "string" ? (o = t) : Array.isArray(t) && (o = ` ${t.map((i) => ` - ${i}`).join(` `)}`), `${a}${ o != null ? ` More info: ${o} ` : "" }` ); } }; s(Mx, "StorybookError"); var Ut = Mx, Lx = ((e) => ( (e.BLOCKS = "BLOCKS"), (e.DOCS_TOOLS = "DOCS-TOOLS"), (e.PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER"), (e.PREVIEW_CHANNELS = "PREVIEW_CHANNELS"), (e.PREVIEW_CORE_EVENTS = "PREVIEW_CORE-EVENTS"), (e.PREVIEW_INSTRUMENTER = "PREVIEW_INSTRUMENTER"), (e.PREVIEW_API = "PREVIEW_API"), (e.PREVIEW_REACT_DOM_SHIM = "PREVIEW_REACT-DOM-SHIM"), (e.PREVIEW_ROUTER = "PREVIEW_ROUTER"), (e.PREVIEW_THEMING = "PREVIEW_THEMING"), (e.RENDERER_HTML = "RENDERER_HTML"), (e.RENDERER_PREACT = "RENDERER_PREACT"), (e.RENDERER_REACT = "RENDERER_REACT"), (e.RENDERER_SERVER = "RENDERER_SERVER"), (e.RENDERER_SVELTE = "RENDERER_SVELTE"), (e.RENDERER_VUE = "RENDERER_VUE"), (e.RENDERER_VUE3 = "RENDERER_VUE3"), (e.RENDERER_WEB_COMPONENTS = "RENDERER_WEB-COMPONENTS"), (e.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS"), (e.ADDON_VITEST = "ADDON_VITEST"), (e.ADDON_A11Y = "ADDON_A11Y"), e ))(Lx || {}), $x = class extends Ut { constructor(t) { (super({ category: "PREVIEW_API", code: 1, message: Qe` Couldn't find story matching id '${t.storyId}' after HMR. - Did you just rename a story? - Did you remove it from your CSF file? - Are you sure a story with the id '${t.storyId}' exists? - Please check the values in the stories field of your main.js config and see if they would match your CSF File. - Also check the browser console and terminal for potential error messages.`, }), (this.data = t)); } }; s($x, "MissingStoryAfterHmrError"); var Ux = $x, Hx = class extends Ut { constructor(t) { (super({ category: "PREVIEW_API", code: 2, documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function", message: Qe` We detected that you use an implicit action arg while ${t.phase} of your story. ${ t.deprecated ? ` This is deprecated and won't work in Storybook 8 anymore. ` : "" } Please provide an explicit spy to your args like this: import { fn } from 'storybook/test'; ... args: { ${t.name}: fn() }`, }), (this.data = t)); } }; s(Hx, "ImplicitActionsDuringRendering"); var Vx = Hx, zx = class extends Ut { constructor() { super({ category: "PREVIEW_API", code: 3, message: Qe` Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first. You probably meant to call \`await preview.extract()\` which does the above for you.`, }); } }; s(zx, "CalledExtractOnStoreError"); var Gx = zx, Wx = class extends Ut { constructor() { super({ category: "PREVIEW_API", code: 4, message: Qe` Expected your framework's preset to export a \`renderToCanvas\` field. Perhaps it needs to be upgraded for Storybook 7.0?`, documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field", }); } }; s(Wx, "MissingRenderToCanvasError"); var Jx = Wx, Xx = class extends Ut { constructor(t) { (super({ category: "PREVIEW_API", code: 5, message: Qe` Called \`Preview.${t.methodName}()\` before initialization. The preview needs to load the story index before most methods can be called. If you want to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first. If you didn't call the above code, then likely it was called by an addon that needs to do the above.`, }), (this.data = t)); } }; s(Xx, "CalledPreviewMethodBeforeInitializationError"); var wr = Xx, Kx = class extends Ut { constructor(t) { (super({ category: "PREVIEW_API", code: 6, message: Qe` Error fetching \`/index.json\`: ${t.text} If you are in development, this likely indicates a problem with your Storybook process, check the terminal for errors. If you are in a deployed Storybook, there may have been an issue deploying the full Storybook build.`, }), (this.data = t)); } }; s(Kx, "StoryIndexFetchError"); var Yx = Kx, Qx = class extends Ut { constructor(t) { (super({ category: "PREVIEW_API", code: 7, message: Qe` Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF references, or autodocs for a CSF file that some doesn't refer to itself. This likely is an internal error in Storybook's indexing, or you've attached the \`attached-mdx\` tag to an MDX file that is not attached.`, }), (this.data = t)); } }; s(Qx, "MdxFileWithNoCsfReferencesError"); var Zx = Qx, eP = class extends Ut { constructor() { super({ category: "PREVIEW_API", code: 8, message: Qe` Couldn't find any stories in your Storybook. - Please check your stories field of your main.js config: does it match correctly? - Also check the browser console and terminal for error messages.`, }); } }; s(eP, "EmptyIndexError"); var tP = eP, rP = class extends Ut { constructor(t) { (super({ category: "PREVIEW_API", code: 9, message: Qe` Couldn't find story matching '${t.storySpecifier}'. - Are you sure a story with that id exists? - Please check your stories field of your main.js config. - Also check the browser console and terminal for error messages.`, }), (this.data = t)); } }; s(rP, "NoStoryMatchError"); var nP = rP, aP = class extends Ut { constructor(t) { (super({ category: "PREVIEW_API", code: 10, message: Qe` Couldn't find story matching id '${t.storyId}' after importing a CSF file. The file was indexed as if the story was there, but then after importing the file in the browser we didn't find the story. Possible reasons: - You are using a custom story indexer that is misbehaving. - You have a custom file loader that is removing or renaming exports. Please check your browser console and terminal for errors that may explain the issue.`, }), (this.data = t)); } }; s(aP, "MissingStoryFromCsfFileError"); var oP = aP, iP = class extends Ut { constructor() { super({ category: "PREVIEW_API", code: 11, message: Qe` Cannot access the Story Store until the index is ready. It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will remove access to the store entirely`, }); } }; s(iP, "StoryStoreAccessedBeforeInitializationError"); var sP = iP, uP = class extends Ut { constructor(t) { (super({ category: "PREVIEW_API", code: 12, message: Qe` Incorrect use of mount in the play function. To use mount in the play function, you must satisfy the following two requirements: 1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function). This makes sure that Storybook does not start rendering the story before the play function begins. 2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer. This is because destructuring statements and async/await usages are otherwise transpiled away, which prevents Storybook from recognizing your usage of \`mount\`. Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill. More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered Received the following play function: ${t.playFunction}`, }), (this.data = t)); } }; s(uP, "MountMustBeDestructuredError"); var mg = uP, lP = class extends Ut { constructor(t) { (super({ category: "PREVIEW_API", code: 14, message: Qe` No render function available for storyId '${t.id}' `, }), (this.data = t)); } }; s(lP, "NoRenderFunctionError"); var cP = lP, dP = class extends Ut { constructor() { super({ category: "PREVIEW_API", code: 15, message: Qe` No component is mounted in your story. This usually occurs when you destructure mount in the play function, but forget to call it. For example: async play({ mount, canvasElement }) { // 👈 mount should be called: await mount(); const canvas = within(canvasElement); const button = await canvas.findByRole('button'); await userEvent.click(button); }; Make sure to either remove it or call mount in your play function. `, }); } }; s(dP, "NoStoryMountedError"); var pP = dP, fP = class extends Ut { constructor(t) { (super({ category: "PREVIEW_API", code: 16, message: `Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status, null, 2)}`, }), (this.data = t)); } }; s(fP, "StatusTypeIdMismatchError"); var N7 = fP, hP = class extends Ut { constructor() { super({ category: "FRAMEWORK_NEXTJS", code: 1, documentation: "https://storybook.js.org/docs/get-started/nextjs#faq", message: Qe` You are importing avif images, but you don't have sharp installed. You have to install sharp in order to use image optimization features in Next.js. `, }); } }; s(hP, "NextJsSharpError"); var j7 = hP, mP = class extends Ut { constructor(t) { (super({ category: "FRAMEWORK_NEXTJS", code: 2, message: Qe` Tried to access router mocks from "${t.importType}" but they were not created yet. You might be running code in an unsupported environment. `, }), (this.data = t)); } }; s(mP, "NextjsRouterMocksNotAvailable"); var k7 = mP, yP = class extends Ut { constructor(t) { (super({ category: "DOCS-TOOLS", code: 1, documentation: "https://github.com/storybookjs/storybook/issues/26606", message: Qe` There was a failure when generating detailed ArgTypes in ${t.language} for: ${JSON.stringify(t.type, null, 2)} Storybook will fall back to use a generic type description instead. This type is either not supported or it is a bug in the docgen generation in Storybook. If you think this is a bug, please detail it as much as possible in the Github issue. `, }), (this.data = t)); } }; s(yP, "UnknownArgTypesError"); var q7 = yP, gP = class extends Ut { constructor(t) { (super({ category: "ADDON_VITEST", code: 1, message: Qe` Encountered an unsupported value "${t.value}" when setting the viewport ${t.dimension} dimension. The Storybook plugin only supports values in the following units: - px, vh, vw, em, rem and %. You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags `, }), (this.data = t)); } }; s(gP, "UnsupportedViewportDimensionError"); var M7 = gP, bP = class extends Ut { constructor() { super({ category: "ADDON_A11Y", code: 1, documentation: "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter", message: 'The "element" parameter in parameters.a11y has been removed. Use "context" instead.', }); } }; s(bP, "ElementA11yParameterError"); var B7 = bP, vP = {}; ur(vP, { Addon_TypesEnum: () => EP }); var EP = ((e) => ( (e.TAB = "tab"), (e.PANEL = "panel"), (e.TOOL = "tool"), (e.TOOLEXTRA = "toolextra"), (e.PREVIEW = "preview"), (e.experimental_PAGE = "page"), (e.experimental_TEST_PROVIDER = "test-provider"), e ))(EP || {}), _P = {}; ur(_P, { ADDON_ID: () => bc, CLEAR_ID: () => U7, CYCLIC_KEY: () => H7, EVENT_ID: () => CP, PANEL_ID: () => $7, PARAM_KEY: () => L7, action: () => ti, actions: () => hY, config: () => cs, configureActions: () => dY, }); var L7 = "actions", bc = "storybook/actions", $7 = `${bc}/panel`, CP = `${bc}/action-event`, U7 = `${bc}/action-clear`, H7 = "$___storybook.isCyclic", Th = {}; ur(Th, { DocsContext: () => Y0, HooksContext: () => gg, Preview: () => nq, PreviewWeb: () => iY, PreviewWithSelection: () => fq, ReporterAPI: () => J0, StoryStore: () => Q2, UrlStore: () => Eq, WebView: () => wq, addons: () => jr, applyHooks: () => xP, combineArgs: () => Ql, combineParameters: () => qa, composeConfigs: () => Ma, composeStepRunners: () => z0, composeStories: () => J2, composeStory: () => K0, createPlaywrightTest: () => X2, decorateStory: () => M0, defaultDecorateStory: () => L0, emitTransformCode: () => Pq, filterArgTypes: () => U2, getCsfFactoryAnnotations: () => X0, inferControls: () => V0, makeDecorator: () => W7, mockChannel: () => yg, normalizeArrays: () => Et, normalizeProjectAnnotations: () => ls, normalizeStory: () => us, pauseAnimations: () => jd, prepareMeta: () => $0, prepareStory: () => Nd, sanitizeStoryContextUpdate: () => B0, setDefaultProjectAnnotations: () => z2, setProjectAnnotations: () => W2, simulateDOMContentLoaded: () => rc, simulatePageLoad: () => xq, sortStoriesV7: () => WK, useArgs: () => NP, useCallback: () => wo, useChannel: () => FP, useEffect: () => ea, useGlobals: () => jP, useMemo: () => Eg, useParameter: () => IP, useReducer: () => DP, useRef: () => RP, useState: () => OP, useStoryContext: () => gs, userOrAutoTitle: () => VK, userOrAutoTitleFromSpecifier: () => eq, waitForAnimations: () => kd, }); function yg() { let e = { setHandler: s(() => {}, "setHandler"), send: s(() => {}, "send") }; return new fc({ transport: e }); } s(yg, "mockChannel"); var wP = class { constructor() { ((this.getChannel = s(() => { if (!this.channel) { let t = yg(); return (this.setChannel(t), t); } return this.channel; }, "getChannel")), (this.ready = s(() => this.promise, "ready")), (this.hasChannel = s(() => !!this.channel, "hasChannel")), (this.setChannel = s((t) => { ((this.channel = t), this.resolve()); }, "setChannel")), (this.promise = new Promise((t) => { this.resolve = () => t(this.getChannel()); }))); } }; s(wP, "AddonStore"); var V7 = wP, op = "__STORYBOOK_ADDONS_PREVIEW"; function AP() { return (Ae[op] || (Ae[op] = new V7()), Ae[op]); } s(AP, "getAddonsStore"); var jr = AP(), SP = class { constructor() { ((this.hookListsMap = void 0), (this.mountedDecorators = void 0), (this.prevMountedDecorators = void 0), (this.currentHooks = void 0), (this.nextHookIndex = void 0), (this.currentPhase = void 0), (this.currentEffects = void 0), (this.prevEffects = void 0), (this.currentDecoratorName = void 0), (this.hasUpdates = void 0), (this.currentContext = void 0), (this.renderListener = s((t) => { t === this.currentContext?.id && (this.triggerEffects(), (this.currentContext = null), this.removeRenderListeners()); }, "renderListener")), this.init()); } init() { ((this.hookListsMap = new WeakMap()), (this.mountedDecorators = new Set()), (this.prevMountedDecorators = new Set()), (this.currentHooks = []), (this.nextHookIndex = 0), (this.currentPhase = "NONE"), (this.currentEffects = []), (this.prevEffects = []), (this.currentDecoratorName = null), (this.hasUpdates = !1), (this.currentContext = null)); } clean() { (this.prevEffects.forEach((t) => { t.destroy && t.destroy(); }), this.init(), this.removeRenderListeners()); } getNextHook() { let t = this.currentHooks[this.nextHookIndex]; return ((this.nextHookIndex += 1), t); } triggerEffects() { (this.prevEffects.forEach((t) => { !this.currentEffects.includes(t) && t.destroy && t.destroy(); }), this.currentEffects.forEach((t) => { this.prevEffects.includes(t) || (t.destroy = t.create()); }), (this.prevEffects = this.currentEffects), (this.currentEffects = [])); } addRenderListeners() { (this.removeRenderListeners(), jr.getChannel().on(cl, this.renderListener)); } removeRenderListeners() { jr.getChannel().removeListener(cl, this.renderListener); } }; s(SP, "HooksContext"); var gg = SP; function Oh(e) { let t = s((...r) => { let { hooks: n } = typeof r[0] == "function" ? r[1] : r[0], a = n.currentPhase, o = n.currentHooks, i = n.nextHookIndex, u = n.currentDecoratorName; ((n.currentDecoratorName = e.name), n.prevMountedDecorators.has(e) ? ((n.currentPhase = "UPDATE"), (n.currentHooks = n.hookListsMap.get(e) || [])) : ((n.currentPhase = "MOUNT"), (n.currentHooks = []), n.hookListsMap.set(e, n.currentHooks), n.prevMountedDecorators.add(e)), (n.nextHookIndex = 0)); let l = Ae.STORYBOOK_HOOKS_CONTEXT; Ae.STORYBOOK_HOOKS_CONTEXT = n; let c = e(...r); if ( ((Ae.STORYBOOK_HOOKS_CONTEXT = l), n.currentPhase === "UPDATE" && n.getNextHook() != null) ) throw new Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement.", ); return ( (n.currentPhase = a), (n.currentHooks = o), (n.nextHookIndex = i), (n.currentDecoratorName = u), c ); }, "hookified"); return ((t.originalFn = e), t); } s(Oh, "hookify"); var ip = 0, z7 = 25, xP = s( (e) => (t, r) => { let n = e( Oh(t), r.map((a) => Oh(a)), ); return (a) => { let { hooks: o } = a; ((o.prevMountedDecorators ??= new Set()), (o.mountedDecorators = new Set([t, ...r])), (o.currentContext = a), (o.hasUpdates = !1)); let i = n(a); for (ip = 1; o.hasUpdates; ) if ( ((o.hasUpdates = !1), (o.currentEffects = []), (i = n(a)), (ip += 1), ip > z7) ) throw new Error( "Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.", ); return (o.addRenderListeners(), i); }; }, "applyHooks", ), G7 = s( (e, t) => e.length === t.length && e.every((r, n) => r === t[n]), "areDepsEqual", ), bg = s( () => new Error( "Storybook preview hooks can only be called inside decorators and story functions.", ), "invalidHooksError", ); function vg() { return Ae.STORYBOOK_HOOKS_CONTEXT || null; } s(vg, "getHooksContextOrNull"); function vc() { let e = vg(); if (e == null) throw bg(); return e; } s(vc, "getHooksContextOrThrow"); function PP(e, t, r) { let n = vc(); if (n.currentPhase === "MOUNT") { r != null && !Array.isArray(r) && St.warn( `${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`, ); let a = { name: e, deps: r }; return (n.currentHooks.push(a), t(a), a); } if (n.currentPhase === "UPDATE") { let a = n.getNextHook(); if (a == null) throw new Error("Rendered more hooks than during the previous render."); return ( a.name !== e && St.warn( `Storybook has detected a change in the order of Hooks${n.currentDecoratorName ? ` called by ${n.currentDecoratorName}` : ""}. This will lead to bugs and errors if not fixed.`, ), r != null && a.deps == null && St.warn( `${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`, ), r != null && a.deps != null && r.length !== a.deps.length && St.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant. Previous: ${a.deps} Incoming: ${r}`), (r == null || a.deps == null || !G7(r, a.deps)) && (t(a), (a.deps = r)), a ); } throw bg(); } s(PP, "useHook"); function ys(e, t, r) { let { memoizedState: n } = PP( e, (a) => { a.memoizedState = t(); }, r, ); return n; } s(ys, "useMemoLike"); function Eg(e, t) { return ys("useMemo", e, t); } s(Eg, "useMemo"); function wo(e, t) { return ys("useCallback", () => e, t); } s(wo, "useCallback"); function _g(e, t) { return ys(e, () => ({ current: t }), []); } s(_g, "useRefLike"); function RP(e) { return _g("useRef", e); } s(RP, "useRef"); function TP() { let e = vg(); if (e != null && e.currentPhase !== "NONE") e.hasUpdates = !0; else try { jr.getChannel().emit(Yy); } catch { St.warn("State updates of Storybook preview hooks work only in browser"); } } s(TP, "triggerUpdate"); function Cg(e, t) { let r = _g(e, typeof t == "function" ? t() : t), n = s((a) => { ((r.current = typeof a == "function" ? a(r.current) : a), TP()); }, "setState"); return [r.current, n]; } s(Cg, "useStateLike"); function OP(e) { return Cg("useState", e); } s(OP, "useState"); function DP(e, t, r) { let n = r != null ? () => r(t) : t, [a, o] = Cg("useReducer", n); return [a, s((i) => o((u) => e(u, i)), "dispatch")]; } s(DP, "useReducer"); function ea(e, t) { let r = vc(), n = ys("useEffect", () => ({ create: e }), t); r.currentEffects.includes(n) || r.currentEffects.push(n); } s(ea, "useEffect"); function FP(e, t = []) { let r = jr.getChannel(); return ( ea( () => ( Object.entries(e).forEach(([n, a]) => r.on(n, a)), () => { Object.entries(e).forEach(([n, a]) => r.removeListener(n, a)); } ), [...Object.keys(e), ...t], ), wo(r.emit.bind(r), [r]) ); } s(FP, "useChannel"); function gs() { let { currentContext: e } = vc(); if (e == null) throw bg(); return e; } s(gs, "useStoryContext"); function IP(e, t) { let { parameters: r } = gs(); if (e) return r[e] ?? t; } s(IP, "useParameter"); function NP() { let e = jr.getChannel(), { id: t, args: r } = gs(), n = wo((o) => e.emit(tg, { storyId: t, updatedArgs: o }), [e, t]), a = wo((o) => e.emit(Qy, { storyId: t, argNames: o }), [e, t]); return [r, n, a]; } s(NP, "useArgs"); function jP() { let e = jr.getChannel(), { globals: t } = gs(), r = wo((n) => e.emit(eg, { globals: n }), [e]); return [t, r]; } s(jP, "useGlobals"); var W7 = s( ({ name: e, parameterName: t, wrapper: r, skipIfNoParametersOrOptions: n = !1, }) => { let a = s( (o) => (i, u) => { let l = u.parameters && u.parameters[t]; return (l && l.disable) || (n && !o && !l) ? i(u) : r(i, u, { options: o, parameters: l }); }, "decorator", ); return (...o) => typeof o[0] == "function" ? a()(...o) : (...i) => { if (i.length > 1) return o.length > 1 ? a(o)(...i) : a(...o)(...i); throw new Error(`Passing stories directly into ${e}() is not allowed, instead use addDecorator(${e}) and pass options with the '${t}' parameter`); }; }, "makeDecorator", ); function kP(e) { return e .replace(/_/g, " ") .replace(/-/g, " ") .replace(/\./g, " ") .replace(/([^\n])([A-Z])([a-z])/g, (t, r, n, a) => `${r} ${n}${a}`) .replace(/([a-z])([A-Z])/g, (t, r, n) => `${r} ${n}`) .replace(/([a-z])([0-9])/gi, (t, r, n) => `${r} ${n}`) .replace(/([0-9])([a-z])/gi, (t, r, n) => `${r} ${n}`) .replace(/(\s|^)(\w)/g, (t, r, n) => `${r}${n.toUpperCase()}`) .replace(/ +/g, " ") .trim(); } s(kP, "toStartCaseStr"); var ZE = Lt(vL(), 1), qP = s((e) => e.map((t) => typeof t < "u").filter(Boolean).length, "count"), J7 = s((e, t) => { let { exists: r, eq: n, neq: a, truthy: o } = e; if (qP([r, n, a, o]) > 1) throw new Error( `Invalid conditional test ${JSON.stringify({ exists: r, eq: n, neq: a })}`, ); if (typeof n < "u") return (0, ZE.isEqual)(t, n); if (typeof a < "u") return !(0, ZE.isEqual)(t, a); if (typeof r < "u") { let i = typeof t < "u"; return r ? i : !i; } return typeof o > "u" || o ? !!t : !t; }, "testValue"), X7 = s((e, t, r) => { if (!e.if) return !0; let { arg: n, global: a } = e.if; if (qP([n, a]) !== 1) throw new Error( `Invalid conditional value ${JSON.stringify({ arg: n, global: a })}`, ); let o = n ? t[n] : r[a]; return J7(e.if, o); }, "includeConditionalArg"), MP = {}; ur(MP, { argsEnhancers: () => Q7 }); var BP = s((e, t) => typeof t[e] > "u" && !(e in t), "isInInitialArgs"), K7 = s((e) => { let { initialArgs: t, argTypes: r, id: n, parameters: { actions: a }, } = e; if (!a || a.disable || !a.argTypesRegex || !r) return {}; let o = new RegExp(a.argTypesRegex); return Object.entries(r) .filter(([i]) => !!o.test(i)) .reduce( (i, [u, l]) => (BP(u, t) && (i[u] = ti(u, { implicit: !0, id: n })), i), {}, ); }, "inferActionsFromArgTypesRegex"), Y7 = s((e) => { let { initialArgs: t, argTypes: r, parameters: { actions: n }, } = e; return n?.disable || !r ? {} : Object.entries(r) .filter(([a, o]) => !!o.action) .reduce( (a, [o, i]) => ( BP(o, t) && (a[o] = ti(typeof i.action == "string" ? i.action : o)), a ), {}, ); }, "addActionsFromArgTypes"), Q7 = [Y7, K7], LP = {}; ur(LP, { loaders: () => cX }); var $P = {}; ur($P, { buildQueries: () => HW, clearAllMocks: () => Fv, configure: () => VW, createEvent: () => zW, expect: () => sX, findAllByAltText: () => WW, findAllByDisplayValue: () => JW, findAllByLabelText: () => XW, findAllByPlaceholderText: () => KW, findAllByRole: () => YW, findAllByTestId: () => QW, findAllByText: () => ZW, findAllByTitle: () => eJ, findByAltText: () => tJ, findByDisplayValue: () => rJ, findByLabelText: () => nJ, findByPlaceholderText: () => aJ, findByRole: () => oJ, findByTestId: () => iJ, findByText: () => sJ, findByTitle: () => uJ, fireEvent: () => GW, fn: () => Ov, getAllByAltText: () => lJ, getAllByDisplayValue: () => cJ, getAllByLabelText: () => dJ, getAllByPlaceholderText: () => pJ, getAllByRole: () => fJ, getAllByTestId: () => hJ, getAllByText: () => mJ, getAllByTitle: () => yJ, getByAltText: () => gJ, getByDisplayValue: () => bJ, getByLabelText: () => vJ, getByPlaceholderText: () => EJ, getByRole: () => _J, getByTestId: () => CJ, getByText: () => wJ, getByTitle: () => AJ, getConfig: () => SJ, getDefaultNormalizer: () => xJ, getElementError: () => PJ, getNodeText: () => RJ, getQueriesForElement: () => TJ, getRoles: () => OJ, getSuggestedQuery: () => DJ, isInaccessible: () => FJ, isMockFunction: () => Aa, logDOM: () => IJ, logRoles: () => NJ, mocked: () => lF, mocks: () => Ds, onMockCall: () => Tv, prettyDOM: () => jJ, prettyFormat: () => oX, queries: () => kJ, queryAllByAltText: () => qJ, queryAllByAttribute: () => MJ, queryAllByDisplayValue: () => BJ, queryAllByLabelText: () => LJ, queryAllByPlaceholderText: () => $J, queryAllByRole: () => UJ, queryAllByTestId: () => HJ, queryAllByText: () => VJ, queryAllByTitle: () => zJ, queryByAltText: () => GJ, queryByAttribute: () => WJ, queryByDisplayValue: () => JJ, queryByLabelText: () => XJ, queryByPlaceholderText: () => KJ, queryByRole: () => YJ, queryByTestId: () => QJ, queryByText: () => ZJ, queryByTitle: () => eX, queryHelpers: () => tX, resetAllMocks: () => Iv, restoreAllMocks: () => Nv, sb: () => uX, screen: () => rX, spyOn: () => kG, uninstrumentedUserEvent: () => t2, userEvent: () => iX, waitFor: () => nX, waitForElementToBeRemoved: () => aX, within: () => e2, }); var Z7 = { reset: [0, 0], bold: [1, 22, "\x1B[22m\x1B[1m"], dim: [2, 22, "\x1B[22m\x1B[2m"], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], gray: [90, 39], bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], blackBright: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39], bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49], }, eV = Object.entries(Z7); function Ec(e) { return String(e); } s(Ec, "a"); Ec.open = ""; Ec.close = ""; function UP(e = !1) { let t = typeof process < "u" ? process : void 0, r = t?.env || {}, n = t?.argv || []; return ( (!("NO_COLOR" in r || n.includes("--no-color")) && ("FORCE_COLOR" in r || n.includes("--color") || t?.platform === "win32" || (e && r.TERM !== "dumb") || "CI" in r)) || (typeof window < "u" && !!window.chrome) ); } s(UP, "C"); function HP(e = !1) { let t = UP(e), r = s((i, u, l, c) => { let d = "", p = 0; do ((d += i.substring(p, c) + l), (p = c + u.length), (c = i.indexOf(u, p))); while (~c); return d + i.substring(p); }, "i"), n = s((i, u, l = i) => { let c = s((d) => { let p = String(d), f = p.indexOf(u, i.length); return ~f ? i + r(p, u, l, f) + u : i + p + u; }, "o"); return ((c.open = i), (c.close = u), c); }, "g"), a = { isColorSupported: t }, o = s((i) => `\x1B[${i}m`, "d"); for (let [i, u] of eV) a[i] = t ? n(o(u[0]), o(u[1]), u[2]) : Ec; return a; } s(HP, "p"); var qt = HP(); function wg(e, t) { return ( t.forEach(function (r) { r && typeof r != "string" && !Array.isArray(r) && Object.keys(r).forEach(function (n) { if (n !== "default" && !(n in e)) { var a = Object.getOwnPropertyDescriptor(r, n); Object.defineProperty( e, n, a.get ? a : { enumerable: !0, get: s(function () { return r[n]; }, "get"), }, ); } }); }), Object.freeze(e) ); } s(wg, "_mergeNamespaces"); function VP(e, t) { let r = Object.keys(e), n = t === null ? r : r.sort(t); if (Object.getOwnPropertySymbols) for (let a of Object.getOwnPropertySymbols(e)) Object.getOwnPropertyDescriptor(e, a).enumerable && n.push(a); return n; } s(VP, "getKeysOfEnumerableProperties"); function Vo(e, t, r, n, a, o, i = ": ") { let u = "", l = 0, c = e.next(); if (!c.done) { u += t.spacingOuter; let d = r + t.indent; for (; !c.done; ) { if (((u += d), l++ === t.maxWidth)) { u += "…"; break; } let p = o(c.value[0], t, d, n, a), f = o(c.value[1], t, d, n, a); ((u += p + i + f), (c = e.next()), c.done ? t.min || (u += ",") : (u += `,${t.spacingInner}`)); } u += t.spacingOuter + r; } return u; } s(Vo, "printIteratorEntries"); function _c(e, t, r, n, a, o) { let i = "", u = 0, l = e.next(); if (!l.done) { i += t.spacingOuter; let c = r + t.indent; for (; !l.done; ) { if (((i += c), u++ === t.maxWidth)) { i += "…"; break; } ((i += o(l.value, t, c, n, a)), (l = e.next()), l.done ? t.min || (i += ",") : (i += `,${t.spacingInner}`)); } i += t.spacingOuter + r; } return i; } s(_c, "printIteratorValues"); function Vi(e, t, r, n, a, o) { let i = ""; e = e instanceof ArrayBuffer ? new DataView(e) : e; let u = s((c) => c instanceof DataView, "isDataView"), l = u(e) ? e.byteLength : e.length; if (l > 0) { i += t.spacingOuter; let c = r + t.indent; for (let d = 0; d < l; d++) { if (((i += c), d === t.maxWidth)) { i += "…"; break; } ((u(e) || d in e) && (i += o(u(e) ? e.getInt8(d) : e[d], t, c, n, a)), d < l - 1 ? (i += `,${t.spacingInner}`) : t.min || (i += ",")); } i += t.spacingOuter + r; } return i; } s(Vi, "printListItems"); function Cc(e, t, r, n, a, o) { let i = "", u = VP(e, t.compareKeys); if (u.length > 0) { i += t.spacingOuter; let l = r + t.indent; for (let c = 0; c < u.length; c++) { let d = u[c], p = o(d, t, l, n, a), f = o(e[d], t, l, n, a); ((i += `${l + p}: ${f}`), c < u.length - 1 ? (i += `,${t.spacingInner}`) : t.min || (i += ",")); } i += t.spacingOuter + r; } return i; } s(Cc, "printObjectProperties"); var tV = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, sp = " ", rV = s((e, t, r, n, a, o) => { let i = e.toString(); if (i === "ArrayContaining" || i === "ArrayNotContaining") return ++n > t.maxDepth ? `[${i}]` : `${i + sp}[${Vi(e.sample, t, r, n, a, o)}]`; if (i === "ObjectContaining" || i === "ObjectNotContaining") return ++n > t.maxDepth ? `[${i}]` : `${i + sp}{${Cc(e.sample, t, r, n, a, o)}}`; if ( i === "StringMatching" || i === "StringNotMatching" || i === "StringContaining" || i === "StringNotContaining" ) return i + sp + o(e.sample, t, r, n, a); if (typeof e.toAsymmetricMatcher != "function") throw new TypeError( `Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`, ); return e.toAsymmetricMatcher(); }, "serialize$5"), nV = s((e) => e && e.$$typeof === tV, "test$5"), aV = { serialize: rV, test: nV }, oV = " ", zP = new Set(["DOMStringMap", "NamedNodeMap"]), iV = /^(?:HTML\w*Collection|NodeList)$/; function GP(e) { return zP.has(e) || iV.test(e); } s(GP, "testName"); var sV = s( (e) => e && e.constructor && !!e.constructor.name && GP(e.constructor.name), "test$4", ); function WP(e) { return e.constructor.name === "NamedNodeMap"; } s(WP, "isNamedNodeMap"); var uV = s((e, t, r, n, a, o) => { let i = e.constructor.name; return ++n > t.maxDepth ? `[${i}]` : (t.min ? "" : i + oV) + (zP.has(i) ? `{${Cc(WP(e) ? [...e].reduce((u, l) => ((u[l.name] = l.value), u), {}) : { ...e }, t, r, n, a, o)}}` : `[${Vi([...e], t, r, n, a, o)}]`); }, "serialize$4"), lV = { serialize: uV, test: sV }; function Ag(e) { return e.replaceAll("<", "<").replaceAll(">", ">"); } s(Ag, "escapeHTML"); function wc(e, t, r, n, a, o, i) { let u = n + r.indent, l = r.colors; return e .map((c) => { let d = t[c], p = i(d, r, u, a, o); return ( typeof d != "string" && (p.includes(` `) && (p = r.spacingOuter + u + p + r.spacingOuter + n), (p = `{${p}}`)), `${r.spacingInner + n + l.prop.open + c + l.prop.close}=${l.value.open}${p}${l.value.close}` ); }) .join(""); } s(wc, "printProps"); function Ac(e, t, r, n, a, o) { return e .map( (i) => t.spacingOuter + r + (typeof i == "string" ? Sg(i, t) : o(i, t, r, n, a)), ) .join(""); } s(Ac, "printChildren"); function Sg(e, t) { let r = t.colors.content; return r.open + Ag(e) + r.close; } s(Sg, "printText"); function JP(e, t) { let r = t.colors.comment; return `${r.open}${r.close}`; } s(JP, "printComment"); function Sc(e, t, r, n, a) { let o = n.colors.tag; return `${o.open}<${e}${t && o.close + t + n.spacingOuter + a + o.open}${r ? `>${o.close}${r}${n.spacingOuter}${a}${o.open}${o.close}`; } s(Sc, "printElement"); function xc(e, t) { let r = t.colors.tag; return `${r.open}<${e}${r.close} …${r.open} />${r.close}`; } s(xc, "printElementAsLeaf"); var cV = 1, XP = 3, KP = 8, YP = 11, dV = /^(?:(?:HTML|SVG)\w*)?Element$/; function QP(e) { try { return typeof e.hasAttribute == "function" && e.hasAttribute("is"); } catch { return !1; } } s(QP, "testHasAttribute"); function ZP(e) { let t = e.constructor.name, { nodeType: r, tagName: n } = e, a = (typeof n == "string" && n.includes("-")) || QP(e); return ( (r === cV && (dV.test(t) || a)) || (r === XP && t === "Text") || (r === KP && t === "Comment") || (r === YP && t === "DocumentFragment") ); } s(ZP, "testNode"); var pV = s((e) => { var t; return ( (e == null || (t = e.constructor) === null || t === void 0 ? void 0 : t.name) && ZP(e) ); }, "test$3"); function eR(e) { return e.nodeType === XP; } s(eR, "nodeIsText"); function tR(e) { return e.nodeType === KP; } s(tR, "nodeIsComment"); function Uu(e) { return e.nodeType === YP; } s(Uu, "nodeIsFragment"); var fV = s((e, t, r, n, a, o) => { if (eR(e)) return Sg(e.data, t); if (tR(e)) return JP(e.data, t); let i = Uu(e) ? "DocumentFragment" : e.tagName.toLowerCase(); return ++n > t.maxDepth ? xc(i, t) : Sc( i, wc( Uu(e) ? [] : Array.from(e.attributes, (u) => u.name).sort(), Uu(e) ? {} : [...e.attributes].reduce( (u, l) => ((u[l.name] = l.value), u), {}, ), t, r + t.indent, n, a, o, ), Ac( Array.prototype.slice.call(e.childNodes || e.children), t, r + t.indent, n, a, o, ), t, r, ); }, "serialize$3"), hV = { serialize: fV, test: pV }, mV = "@@__IMMUTABLE_ITERABLE__@@", yV = "@@__IMMUTABLE_LIST__@@", gV = "@@__IMMUTABLE_KEYED__@@", bV = "@@__IMMUTABLE_MAP__@@", e_ = "@@__IMMUTABLE_ORDERED__@@", vV = "@@__IMMUTABLE_RECORD__@@", EV = "@@__IMMUTABLE_SEQ__@@", _V = "@@__IMMUTABLE_SET__@@", CV = "@@__IMMUTABLE_STACK__@@", Ao = s((e) => `Immutable.${e}`, "getImmutableName"), Pc = s((e) => `[${e}]`, "printAsLeaf"), zi = " ", t_ = "…"; function rR(e, t, r, n, a, o, i) { return ++n > t.maxDepth ? Pc(Ao(i)) : `${Ao(i) + zi}{${Vo(e.entries(), t, r, n, a, o)}}`; } s(rR, "printImmutableEntries"); function nR(e) { let t = 0; return { next() { if (t < e._keys.length) { let r = e._keys[t++]; return { done: !1, value: [r, e.get(r)] }; } return { done: !0, value: void 0 }; }, }; } s(nR, "getRecordEntries"); function aR(e, t, r, n, a, o) { let i = Ao(e._name || "Record"); return ++n > t.maxDepth ? Pc(i) : `${i + zi}{${Vo(nR(e), t, r, n, a, o)}}`; } s(aR, "printImmutableRecord"); function oR(e, t, r, n, a, o) { let i = Ao("Seq"); return ++n > t.maxDepth ? Pc(i) : e[gV] ? `${i + zi}{${e._iter || e._object ? Vo(e.entries(), t, r, n, a, o) : t_}}` : `${i + zi}[${e._iter || e._array || e._collection || e._iterable ? _c(e.values(), t, r, n, a, o) : t_}]`; } s(oR, "printImmutableSeq"); function Hu(e, t, r, n, a, o, i) { return ++n > t.maxDepth ? Pc(Ao(i)) : `${Ao(i) + zi}[${_c(e.values(), t, r, n, a, o)}]`; } s(Hu, "printImmutableValues"); var wV = s( (e, t, r, n, a, o) => e[bV] ? rR(e, t, r, n, a, o, e[e_] ? "OrderedMap" : "Map") : e[yV] ? Hu(e, t, r, n, a, o, "List") : e[_V] ? Hu(e, t, r, n, a, o, e[e_] ? "OrderedSet" : "Set") : e[CV] ? Hu(e, t, r, n, a, o, "Stack") : e[EV] ? oR(e, t, r, n, a, o) : aR(e, t, r, n, a, o), "serialize$2", ), AV = s((e) => e && (e[mV] === !0 || e[vV] === !0), "test$2"), SV = { serialize: wV, test: AV }; function xg(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } s(xg, "getDefaultExportFromCjs"); var r_ = { exports: {} }, gt = {}, n_; function iR() { if (n_) return gt; n_ = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), i = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.view_transition"), h = Symbol.for("react.client.reference"); function m(y) { if (typeof y == "object" && y !== null) { var b = y.$$typeof; switch (b) { case e: switch (((y = y.type), y)) { case r: case a: case n: case l: case c: case f: return y; default: switch (((y = y && y.$$typeof), y)) { case i: case u: case p: case d: return y; case o: return y; default: return b; } } case t: return b; } } } return ( s(m, "typeOf"), (gt.ContextConsumer = o), (gt.ContextProvider = i), (gt.Element = e), (gt.ForwardRef = u), (gt.Fragment = r), (gt.Lazy = p), (gt.Memo = d), (gt.Portal = t), (gt.Profiler = a), (gt.StrictMode = n), (gt.Suspense = l), (gt.SuspenseList = c), (gt.isContextConsumer = function (y) { return m(y) === o; }), (gt.isContextProvider = function (y) { return m(y) === i; }), (gt.isElement = function (y) { return typeof y == "object" && y !== null && y.$$typeof === e; }), (gt.isForwardRef = function (y) { return m(y) === u; }), (gt.isFragment = function (y) { return m(y) === r; }), (gt.isLazy = function (y) { return m(y) === p; }), (gt.isMemo = function (y) { return m(y) === d; }), (gt.isPortal = function (y) { return m(y) === t; }), (gt.isProfiler = function (y) { return m(y) === a; }), (gt.isStrictMode = function (y) { return m(y) === n; }), (gt.isSuspense = function (y) { return m(y) === l; }), (gt.isSuspenseList = function (y) { return m(y) === c; }), (gt.isValidElementType = function (y) { return ( typeof y == "string" || typeof y == "function" || y === r || y === a || y === n || y === l || y === c || (typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === d || y.$$typeof === i || y.$$typeof === o || y.$$typeof === u || y.$$typeof === h || y.getModuleId !== void 0)) ); }), (gt.typeOf = m), gt ); } s(iR, "requireReactIs_production"); var a_; function sR() { return (a_ || ((a_ = 1), (r_.exports = iR())), r_.exports); } s(sR, "requireReactIs$1"); var uR = sR(), xV = xg(uR), PV = wg({ __proto__: null, default: xV }, [uR]), o_ = { exports: {} }, dt = {}, i_; function lR() { if (i_) return dt; i_ = 1; var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), i = Symbol.for("react.context"), u = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), m; m = Symbol.for("react.module.reference"); function y(b) { if (typeof b == "object" && b !== null) { var g = b.$$typeof; switch (g) { case e: switch (((b = b.type), b)) { case r: case a: case n: case c: case d: return b; default: switch (((b = b && b.$$typeof), b)) { case u: case i: case l: case f: case p: case o: return b; default: return g; } } case t: return g; } } } return ( s(y, "v"), (dt.ContextConsumer = i), (dt.ContextProvider = o), (dt.Element = e), (dt.ForwardRef = l), (dt.Fragment = r), (dt.Lazy = f), (dt.Memo = p), (dt.Portal = t), (dt.Profiler = a), (dt.StrictMode = n), (dt.Suspense = c), (dt.SuspenseList = d), (dt.isAsyncMode = function () { return !1; }), (dt.isConcurrentMode = function () { return !1; }), (dt.isContextConsumer = function (b) { return y(b) === i; }), (dt.isContextProvider = function (b) { return y(b) === o; }), (dt.isElement = function (b) { return typeof b == "object" && b !== null && b.$$typeof === e; }), (dt.isForwardRef = function (b) { return y(b) === l; }), (dt.isFragment = function (b) { return y(b) === r; }), (dt.isLazy = function (b) { return y(b) === f; }), (dt.isMemo = function (b) { return y(b) === p; }), (dt.isPortal = function (b) { return y(b) === t; }), (dt.isProfiler = function (b) { return y(b) === a; }), (dt.isStrictMode = function (b) { return y(b) === n; }), (dt.isSuspense = function (b) { return y(b) === c; }), (dt.isSuspenseList = function (b) { return y(b) === d; }), (dt.isValidElementType = function (b) { return ( typeof b == "string" || typeof b == "function" || b === r || b === a || b === n || b === c || b === d || b === h || (typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === p || b.$$typeof === o || b.$$typeof === i || b.$$typeof === l || b.$$typeof === m || b.getModuleId !== void 0)) ); }), (dt.typeOf = y), dt ); } s(lR, "requireReactIs_production_min"); var s_; function cR() { return (s_ || ((s_ = 1), (o_.exports = lR())), o_.exports); } s(cR, "requireReactIs"); var dR = cR(), RV = xg(dR), TV = wg({ __proto__: null, default: RV }, [dR]), OV = [ "isAsyncMode", "isConcurrentMode", "isContextConsumer", "isContextProvider", "isElement", "isForwardRef", "isFragment", "isLazy", "isMemo", "isPortal", "isProfiler", "isStrictMode", "isSuspense", "isSuspenseList", "isValidElementType", ], fa = Object.fromEntries(OV.map((e) => [e, (t) => TV[e](t) || PV[e](t)])); function Pg(e, t = []) { if (Array.isArray(e)) for (let r of e) Pg(r, t); else e != null && e !== !1 && e !== "" && t.push(e); return t; } s(Pg, "getChildren"); function Dh(e) { let t = e.type; if (typeof t == "string") return t; if (typeof t == "function") return t.displayName || t.name || "Unknown"; if (fa.isFragment(e)) return "React.Fragment"; if (fa.isSuspense(e)) return "React.Suspense"; if (typeof t == "object" && t !== null) { if (fa.isContextProvider(e)) return "Context.Provider"; if (fa.isContextConsumer(e)) return "Context.Consumer"; if (fa.isForwardRef(e)) { if (t.displayName) return t.displayName; let r = t.render.displayName || t.render.name || ""; return r === "" ? "ForwardRef" : `ForwardRef(${r})`; } if (fa.isMemo(e)) { let r = t.displayName || t.type.displayName || t.type.name || ""; return r === "" ? "Memo" : `Memo(${r})`; } } return "UNDEFINED"; } s(Dh, "getType"); function pR(e) { let { props: t } = e; return Object.keys(t) .filter((r) => r !== "children" && t[r] !== void 0) .sort(); } s(pR, "getPropKeys$1"); var DV = s( (e, t, r, n, a, o) => ++n > t.maxDepth ? xc(Dh(e), t) : Sc( Dh(e), wc(pR(e), e.props, t, r + t.indent, n, a, o), Ac(Pg(e.props.children), t, r + t.indent, n, a, o), t, r, ), "serialize$1", ), FV = s((e) => e != null && fa.isElement(e), "test$1"), IV = { serialize: DV, test: FV }, NV = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487; function fR(e) { let { props: t } = e; return t ? Object.keys(t) .filter((r) => t[r] !== void 0) .sort() : []; } s(fR, "getPropKeys"); var jV = s( (e, t, r, n, a, o) => ++n > t.maxDepth ? xc(e.type, t) : Sc( e.type, e.props ? wc(fR(e), e.props, t, r + t.indent, n, a, o) : "", e.children ? Ac(e.children, t, r + t.indent, n, a, o) : "", t, r, ), "serialize", ), kV = s((e) => e && e.$$typeof === NV, "test"), qV = { serialize: jV, test: kV }, hR = Object.prototype.toString, MV = Date.prototype.toISOString, BV = Error.prototype.toString, u_ = RegExp.prototype.toString; function Pi(e) { return (typeof e.constructor == "function" && e.constructor.name) || "Object"; } s(Pi, "getConstructorName"); function mR(e) { return typeof window < "u" && e === window; } s(mR, "isWindow"); var LV = /^Symbol\((.*)\)(.*)$/, $V = /\n/g, yR = class extends Error { constructor(t, r) { (super(t), (this.stack = r), (this.name = this.constructor.name)); } }; s(yR, "PrettyFormatPluginError"); var gR = yR; function bR(e) { return ( e === "[object Array]" || e === "[object ArrayBuffer]" || e === "[object DataView]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object Int8Array]" || e === "[object Int16Array]" || e === "[object Int32Array]" || e === "[object Uint8Array]" || e === "[object Uint8ClampedArray]" || e === "[object Uint16Array]" || e === "[object Uint32Array]" ); } s(bR, "isToStringedArrayType"); function vR(e) { return Object.is(e, -0) ? "-0" : String(e); } s(vR, "printNumber"); function ER(e) { return `${e}n`; } s(ER, "printBigInt"); function Fh(e, t) { return t ? `[Function ${e.name || "anonymous"}]` : "[Function]"; } s(Fh, "printFunction"); function Ih(e) { return String(e).replace(LV, "Symbol($1)"); } s(Ih, "printSymbol"); function Nh(e) { return `[${BV.call(e)}]`; } s(Nh, "printError"); function Rg(e, t, r, n) { if (e === !0 || e === !1) return `${e}`; if (e === void 0) return "undefined"; if (e === null) return "null"; let a = typeof e; if (a === "number") return vR(e); if (a === "bigint") return ER(e); if (a === "string") return n ? `"${e.replaceAll(/"|\\/g, "\\$&")}"` : `"${e}"`; if (a === "function") return Fh(e, t); if (a === "symbol") return Ih(e); let o = hR.call(e); return o === "[object WeakMap]" ? "WeakMap {}" : o === "[object WeakSet]" ? "WeakSet {}" : o === "[object Function]" || o === "[object GeneratorFunction]" ? Fh(e, t) : o === "[object Symbol]" ? Ih(e) : o === "[object Date]" ? Number.isNaN(+e) ? "Date { NaN }" : MV.call(e) : o === "[object Error]" ? Nh(e) : o === "[object RegExp]" ? r ? u_.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : u_.call(e) : e instanceof Error ? Nh(e) : null; } s(Rg, "printBasicValue"); function Tg(e, t, r, n, a, o) { if (a.includes(e)) return "[Circular]"; ((a = [...a]), a.push(e)); let i = ++n > t.maxDepth, u = t.min; if (t.callToJSON && !i && e.toJSON && typeof e.toJSON == "function" && !o) return An(e.toJSON(), t, r, n, a, !0); let l = hR.call(e); return l === "[object Arguments]" ? i ? "[Arguments]" : `${u ? "" : "Arguments "}[${Vi(e, t, r, n, a, An)}]` : bR(l) ? i ? `[${e.constructor.name}]` : `${u || (!t.printBasicPrototype && e.constructor.name === "Array") ? "" : `${e.constructor.name} `}[${Vi(e, t, r, n, a, An)}]` : l === "[object Map]" ? i ? "[Map]" : `Map {${Vo(e.entries(), t, r, n, a, An, " => ")}}` : l === "[object Set]" ? i ? "[Set]" : `Set {${_c(e.values(), t, r, n, a, An)}}` : i || mR(e) ? `[${Pi(e)}]` : `${u || (!t.printBasicPrototype && Pi(e) === "Object") ? "" : `${Pi(e)} `}{${Cc(e, t, r, n, a, An)}}`; } s(Tg, "printComplexValue"); var UV = { test: s((e) => e && e instanceof Error, "test"), serialize(e, t, r, n, a, o) { if (a.includes(e)) return "[Circular]"; a = [...a, e]; let i = ++n > t.maxDepth, { message: u, cause: l, ...c } = e, d = { message: u, ...(typeof l < "u" ? { cause: l } : {}), ...(e instanceof AggregateError ? { errors: e.errors } : {}), ...c, }, p = e.name !== "Error" ? e.name : Pi(e); return i ? `[${p}]` : `${p} {${Vo(Object.entries(d).values(), t, r, n, a, o)}}`; }, }; function _R(e) { return e.serialize != null; } s(_R, "isNewPlugin"); function Og(e, t, r, n, a, o) { let i; try { i = _R(e) ? e.serialize(t, r, n, a, o, An) : e.print( t, (u) => An(u, r, n, a, o), (u) => { let l = n + r.indent; return ( l + u.replaceAll( $V, ` ${l}`, ) ); }, { edgeSpacing: r.spacingOuter, min: r.min, spacing: r.spacingInner }, r.colors, ); } catch (u) { throw new gR(u.message, u.stack); } if (typeof i != "string") throw new TypeError( `pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`, ); return i; } s(Og, "printPlugin"); function Dg(e, t) { for (let r of e) try { if (r.test(t)) return r; } catch (n) { throw new gR(n.message, n.stack); } return null; } s(Dg, "findPlugin"); function An(e, t, r, n, a, o) { let i = Dg(t.plugins, e); if (i !== null) return Og(i, e, t, r, n, a); let u = Rg(e, t.printFunctionName, t.escapeRegex, t.escapeString); return u !== null ? u : Tg(e, t, r, n, a, o); } s(An, "printer"); var Fg = { comment: "gray", content: "reset", prop: "yellow", tag: "cyan", value: "green", }, CR = Object.keys(Fg), Lr = { callToJSON: !0, compareKeys: void 0, escapeRegex: !1, escapeString: !0, highlight: !1, indent: 2, maxDepth: Number.POSITIVE_INFINITY, maxWidth: Number.POSITIVE_INFINITY, min: !1, plugins: [], printBasicPrototype: !0, printFunctionName: !0, theme: Fg, }; function wR(e) { for (let t of Object.keys(e)) if (!Object.prototype.hasOwnProperty.call(Lr, t)) throw new Error(`pretty-format: Unknown option "${t}".`); if (e.min && e.indent !== void 0 && e.indent !== 0) throw new Error( 'pretty-format: Options "min" and "indent" cannot be used together.', ); } s(wR, "validateOptions"); function AR() { return CR.reduce((e, t) => { let r = Fg[t], n = r && qt[r]; if (n && typeof n.close == "string" && typeof n.open == "string") e[t] = n; else throw new Error( `pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`, ); return e; }, Object.create(null)); } s(AR, "getColorsHighlight"); function SR() { return CR.reduce( (e, t) => ((e[t] = { close: "", open: "" }), e), Object.create(null), ); } s(SR, "getColorsEmpty"); function Ig(e) { return e?.printFunctionName ?? Lr.printFunctionName; } s(Ig, "getPrintFunctionName"); function Ng(e) { return e?.escapeRegex ?? Lr.escapeRegex; } s(Ng, "getEscapeRegex"); function jg(e) { return e?.escapeString ?? Lr.escapeString; } s(jg, "getEscapeString"); function jh(e) { return { callToJSON: e?.callToJSON ?? Lr.callToJSON, colors: e?.highlight ? AR() : SR(), compareKeys: typeof e?.compareKeys == "function" || e?.compareKeys === null ? e.compareKeys : Lr.compareKeys, escapeRegex: Ng(e), escapeString: jg(e), indent: e?.min ? "" : xR(e?.indent ?? Lr.indent), maxDepth: e?.maxDepth ?? Lr.maxDepth, maxWidth: e?.maxWidth ?? Lr.maxWidth, min: e?.min ?? Lr.min, plugins: e?.plugins ?? Lr.plugins, printBasicPrototype: e?.printBasicPrototype ?? !0, printFunctionName: Ig(e), spacingInner: e?.min ? " " : ` `, spacingOuter: e?.min ? "" : ` `, }; } s(jh, "getConfig"); function xR(e) { return Array.from({ length: e + 1 }).join(" "); } s(xR, "createIndent"); function Ur(e, t) { if (t && (wR(t), t.plugins)) { let n = Dg(t.plugins, e); if (n !== null) return Og(n, e, jh(t), "", 0, []); } let r = Rg(e, Ig(t), Ng(t), jg(t)); return r !== null ? r : Tg(e, jh(t), "", 0, []); } s(Ur, "format"); var kg = { AsymmetricMatcher: aV, DOMCollection: lV, DOMElement: hV, Immutable: SV, ReactElement: IV, ReactTestComponent: qV, Error: UV, }, l_ = { bold: ["1", "22"], dim: ["2", "22"], italic: ["3", "23"], underline: ["4", "24"], inverse: ["7", "27"], hidden: ["8", "28"], strike: ["9", "29"], black: ["30", "39"], red: ["31", "39"], green: ["32", "39"], yellow: ["33", "39"], blue: ["34", "39"], magenta: ["35", "39"], cyan: ["36", "39"], white: ["37", "39"], brightblack: ["30;1", "39"], brightred: ["31;1", "39"], brightgreen: ["32;1", "39"], brightyellow: ["33;1", "39"], brightblue: ["34;1", "39"], brightmagenta: ["35;1", "39"], brightcyan: ["36;1", "39"], brightwhite: ["37;1", "39"], grey: ["90", "39"], }, HV = { special: "cyan", number: "yellow", bigint: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", symbol: "green", date: "magenta", regexp: "red", }, So = "…"; function PR(e, t) { let r = l_[HV[t]] || l_[t] || ""; return r ? `\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m` : String(e); } s(PR, "colorise"); function RR( { showHidden: e = !1, depth: t = 2, colors: r = !1, customInspect: n = !0, showProxy: a = !1, maxArrayLength: o = 1 / 0, breakLength: i = 1 / 0, seen: u = [], truncate: l = 1 / 0, stylize: c = String, } = {}, d, ) { let p = { showHidden: !!e, depth: Number(t), colors: !!r, customInspect: !!n, showProxy: !!a, maxArrayLength: Number(o), breakLength: Number(i), truncate: Number(l), seen: u, inspect: d, stylize: c, }; return (p.colors && (p.stylize = PR), p); } s(RR, "normaliseOptions"); function TR(e) { return e >= "\uD800" && e <= "\uDBFF"; } s(TR, "isHighSurrogate"); function Nn(e, t, r = So) { e = String(e); let n = r.length, a = e.length; if (n > t && a > n) return r; if (a > t && a > n) { let o = t - n; return (o > 0 && TR(e[o - 1]) && (o = o - 1), `${e.slice(0, o)}${r}`); } return e; } s(Nn, "truncate"); function kr(e, t, r, n = ", ") { r = r || t.inspect; let a = e.length; if (a === 0) return ""; let o = t.truncate, i = "", u = "", l = ""; for (let c = 0; c < a; c += 1) { let d = c + 1 === e.length, p = c + 2 === e.length; l = `${So}(${e.length - c})`; let f = e[c]; t.truncate = o - i.length - (d ? 0 : n.length); let h = u || r(f, t) + (d ? "" : n), m = i.length + h.length, y = m + l.length; if ( (d && m > o && i.length + l.length <= o) || (!d && !p && y > o) || ((u = d ? "" : r(e[c + 1], t) + (p ? "" : n)), !d && p && y > o && m + u.length > o) ) break; if (((i += h), !d && !p && m + u.length >= o)) { l = `${So}(${e.length - c - 1})`; break; } l = ""; } return `${i}${l}`; } s(kr, "inspectList"); function OR(e) { return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? e : JSON.stringify(e) .replace(/'/g, "\\'") .replace(/\\"/g, '"') .replace(/(^"|"$)/g, "'"); } s(OR, "quoteComplexKey"); function xo([e, t], r) { return ( (r.truncate -= 2), typeof e == "string" ? (e = OR(e)) : typeof e != "number" && (e = `[${r.inspect(e, r)}]`), (r.truncate -= e.length), (t = r.inspect(t, r)), `${e}: ${t}` ); } s(xo, "inspectProperty"); function DR(e, t) { let r = Object.keys(e).slice(e.length); if (!e.length && !r.length) return "[]"; t.truncate -= 4; let n = kr(e, t); t.truncate -= n.length; let a = ""; return ( r.length && (a = kr( r.map((o) => [o, e[o]]), t, xo, )), `[ ${n}${a ? `, ${a}` : ""} ]` ); } s(DR, "inspectArray"); var VV = s( (e) => typeof Buffer == "function" && e instanceof Buffer ? "Buffer" : e[Symbol.toStringTag] ? e[Symbol.toStringTag] : e.constructor.name, "getArrayName", ); function Qr(e, t) { let r = VV(e); t.truncate -= r.length + 4; let n = Object.keys(e).slice(e.length); if (!e.length && !n.length) return `${r}[]`; let a = ""; for (let i = 0; i < e.length; i++) { let u = `${t.stylize(Nn(e[i], t.truncate), "number")}${i === e.length - 1 ? "" : ", "}`; if (((t.truncate -= u.length), e[i] !== e.length && t.truncate <= 3)) { a += `${So}(${e.length - e[i] + 1})`; break; } a += u; } let o = ""; return ( n.length && (o = kr( n.map((i) => [i, e[i]]), t, xo, )), `${r}[ ${a}${o ? `, ${o}` : ""} ]` ); } s(Qr, "inspectTypedArray"); function FR(e, t) { let r = e.toJSON(); if (r === null) return "Invalid Date"; let n = r.split("T"), a = n[0]; return t.stylize(`${a}T${Nn(n[1], t.truncate - a.length - 1)}`, "date"); } s(FR, "inspectDate"); function kh(e, t) { let r = e[Symbol.toStringTag] || "Function", n = e.name; return n ? t.stylize(`[${r} ${Nn(n, t.truncate - 11)}]`, "special") : t.stylize(`[${r}]`, "special"); } s(kh, "inspectFunction"); function IR([e, t], r) { return ( (r.truncate -= 4), (e = r.inspect(e, r)), (r.truncate -= e.length), (t = r.inspect(t, r)), `${e} => ${t}` ); } s(IR, "inspectMapEntry"); function NR(e) { let t = []; return ( e.forEach((r, n) => { t.push([n, r]); }), t ); } s(NR, "mapToEntries"); function jR(e, t) { return e.size === 0 ? "Map{}" : ((t.truncate -= 7), `Map{ ${kr(NR(e), t, IR)} }`); } s(jR, "inspectMap"); var zV = Number.isNaN || ((e) => e !== e); function qh(e, t) { return zV(e) ? t.stylize("NaN", "number") : e === 1 / 0 ? t.stylize("Infinity", "number") : e === -1 / 0 ? t.stylize("-Infinity", "number") : e === 0 ? t.stylize(1 / e === 1 / 0 ? "+0" : "-0", "number") : t.stylize(Nn(String(e), t.truncate), "number"); } s(qh, "inspectNumber"); function Mh(e, t) { let r = Nn(e.toString(), t.truncate - 1); return (r !== So && (r += "n"), t.stylize(r, "bigint")); } s(Mh, "inspectBigInt"); function kR(e, t) { let r = e.toString().split("/")[2], n = t.truncate - (2 + r.length), a = e.source; return t.stylize(`/${Nn(a, n)}/${r}`, "regexp"); } s(kR, "inspectRegExp"); function qR(e) { let t = []; return ( e.forEach((r) => { t.push(r); }), t ); } s(qR, "arrayFromSet"); function MR(e, t) { return e.size === 0 ? "Set{}" : ((t.truncate -= 7), `Set{ ${kr(qR(e), t)} }`); } s(MR, "inspectSet"); var c_ = new RegExp( "['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g", ), GV = { "\b": "\\b", " ": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", "'": "\\'", "\\": "\\\\", }, WV = 16; function BR(e) { return GV[e] || `\\u${`0000${e.charCodeAt(0).toString(WV)}`.slice(-4)}`; } s(BR, "escape"); function Bh(e, t) { return ( c_.test(e) && (e = e.replace(c_, BR)), t.stylize(`'${Nn(e, t.truncate - 2)}'`, "string") ); } s(Bh, "inspectString"); function Lh(e) { return "description" in Symbol.prototype ? e.description ? `Symbol(${e.description})` : "Symbol()" : e.toString(); } s(Lh, "inspectSymbol"); var LR = s(() => "Promise{…}", "getPromiseValue"); try { let { getPromiseDetails: e, kPending: t, kRejected: r, } = process.binding("util"); Array.isArray(e(Promise.resolve())) && (LR = s((n, a) => { let [o, i] = e(n); return o === t ? "Promise{}" : `Promise${o === r ? "!" : ""}{${a.inspect(i, a)}}`; }, "getPromiseValue")); } catch {} var JV = LR; function Ri(e, t) { let r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e) : []; if (r.length === 0 && n.length === 0) return "{}"; if (((t.truncate -= 4), (t.seen = t.seen || []), t.seen.includes(e))) return "[Circular]"; t.seen.push(e); let a = kr( r.map((u) => [u, e[u]]), t, xo, ), o = kr( n.map((u) => [u, e[u]]), t, xo, ); t.seen.pop(); let i = ""; return (a && o && (i = ", "), `{ ${a}${i}${o} }`); } s(Ri, "inspectObject"); var up = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1; function $R(e, t) { let r = ""; return ( up && up in e && (r = e[up]), (r = r || e.constructor.name), (!r || r === "_class") && (r = ""), (t.truncate -= r.length), `${r}${Ri(e, t)}` ); } s($R, "inspectClass"); function UR(e, t) { return e.length === 0 ? "Arguments[]" : ((t.truncate -= 13), `Arguments[ ${kr(e, t)} ]`); } s(UR, "inspectArguments"); var XV = [ "stack", "line", "column", "name", "message", "fileName", "lineNumber", "columnNumber", "number", "description", "cause", ]; function HR(e, t) { let r = Object.getOwnPropertyNames(e).filter((i) => XV.indexOf(i) === -1), n = e.name; t.truncate -= n.length; let a = ""; if ( (typeof e.message == "string" ? (a = Nn(e.message, t.truncate)) : r.unshift("message"), (a = a ? `: ${a}` : ""), (t.truncate -= a.length + 5), (t.seen = t.seen || []), t.seen.includes(e)) ) return "[Circular]"; t.seen.push(e); let o = kr( r.map((i) => [i, e[i]]), t, xo, ); return `${n}${a}${o ? ` { ${o} }` : ""}`; } s(HR, "inspectObject"); function VR([e, t], r) { return ( (r.truncate -= 3), t ? `${r.stylize(String(e), "yellow")}=${r.stylize(`"${t}"`, "string")}` : `${r.stylize(String(e), "yellow")}` ); } s(VR, "inspectAttribute"); function dl(e, t) { return kr( e, t, zR, ` `, ); } s(dl, "inspectNodeCollection"); function zR(e, t) { switch (e.nodeType) { case 1: return qg(e, t); case 3: return t.inspect(e.data, t); default: return t.inspect(e, t); } } s(zR, "inspectNode"); function qg(e, t) { let r = e.getAttributeNames(), n = e.tagName.toLowerCase(), a = t.stylize(`<${n}`, "special"), o = t.stylize(">", "special"), i = t.stylize(``, "special"); t.truncate -= n.length * 2 + 5; let u = ""; (r.length > 0 && ((u += " "), (u += kr( r.map((d) => [d, e.getAttribute(d)]), t, VR, " ", ))), (t.truncate -= u.length)); let l = t.truncate, c = dl(e.children, t); return ( c && c.length > l && (c = `${So}(${e.children.length})`), `${a}${u}${o}${c}${i}` ); } s(qg, "inspectHTML"); var KV = typeof Symbol == "function" && typeof Symbol.for == "function", lp = KV ? Symbol.for("chai/inspect") : "@@chai/inspect", cp = Symbol.for("nodejs.util.inspect.custom"), d_ = new WeakMap(), p_ = {}, f_ = { undefined: s((e, t) => t.stylize("undefined", "undefined"), "undefined"), null: s((e, t) => t.stylize("null", "null"), "null"), boolean: s((e, t) => t.stylize(String(e), "boolean"), "boolean"), Boolean: s((e, t) => t.stylize(String(e), "boolean"), "Boolean"), number: qh, Number: qh, bigint: Mh, BigInt: Mh, string: Bh, String: Bh, function: kh, Function: kh, symbol: Lh, Symbol: Lh, Array: DR, Date: FR, Map: jR, Set: MR, RegExp: kR, Promise: JV, WeakSet: s((e, t) => t.stylize("WeakSet{…}", "special"), "WeakSet"), WeakMap: s((e, t) => t.stylize("WeakMap{…}", "special"), "WeakMap"), Arguments: UR, Int8Array: Qr, Uint8Array: Qr, Uint8ClampedArray: Qr, Int16Array: Qr, Uint16Array: Qr, Int32Array: Qr, Uint32Array: Qr, Float32Array: Qr, Float64Array: Qr, Generator: s(() => "", "Generator"), DataView: s(() => "", "DataView"), ArrayBuffer: s(() => "", "ArrayBuffer"), Error: HR, HTMLCollection: dl, NodeList: dl, }, YV = s( (e, t, r) => lp in e && typeof e[lp] == "function" ? e[lp](t) : cp in e && typeof e[cp] == "function" ? e[cp](t.depth, t) : "inspect" in e && typeof e.inspect == "function" ? e.inspect(t.depth, t) : "constructor" in e && d_.has(e.constructor) ? d_.get(e.constructor)(e, t) : p_[r] ? p_[r](e, t) : "", "inspectCustom", ), QV = Object.prototype.toString; function pl(e, t = {}) { let r = RR(t, pl), { customInspect: n } = r, a = e === null ? "null" : typeof e; if ((a === "object" && (a = QV.call(e).slice(8, -1)), a in f_)) return f_[a](e, r); if (n && e) { let i = YV(e, r, a); if (i) return typeof i == "string" ? i : pl(i, r); } let o = e ? Object.getPrototypeOf(e) : !1; return o === Object.prototype || o === null ? Ri(e, r) : e && typeof HTMLElement == "function" && e instanceof HTMLElement ? qg(e, r) : "constructor" in e ? e.constructor !== Object ? $R(e, r) : Ri(e, r) : e === Object(e) ? Ri(e, r) : r.stylize(String(e), a); } s(pl, "inspect"); var { AsymmetricMatcher: ZV, DOMCollection: ez, DOMElement: tz, Immutable: rz, ReactElement: nz, ReactTestComponent: az, } = kg, h_ = [az, nz, tz, ez, rz, ZV]; function hr(e, t = 10, { maxLength: r, ...n } = {}) { let a = r ?? 1e4, o; try { o = Ur(e, { maxDepth: t, escapeString: !1, plugins: h_, ...n }); } catch { o = Ur(e, { callToJSON: !1, maxDepth: t, escapeString: !1, plugins: h_, ...n, }); } return o.length >= a && t > 1 ? hr(e, Math.floor(Math.min(t, Number.MAX_SAFE_INTEGER) / 2), { maxLength: r, ...n, }) : o; } s(hr, "stringify"); var oz = /%[sdjifoOc%]/g; function GR(...e) { if (typeof e[0] != "string") { let o = []; for (let i = 0; i < e.length; i++) o.push(to(e[i], { depth: 0, colors: !1 })); return o.join(" "); } let t = e.length, r = 1, n = e[0], a = String(n).replace(oz, (o) => { if (o === "%%") return "%"; if (r >= t) return o; switch (o) { case "%s": { let i = e[r++]; return typeof i == "bigint" ? `${i.toString()}n` : typeof i == "number" && i === 0 && 1 / i < 0 ? "-0" : typeof i == "object" && i !== null ? typeof i.toString == "function" && i.toString !== Object.prototype.toString ? i.toString() : to(i, { depth: 0, colors: !1 }) : String(i); } case "%d": { let i = e[r++]; return typeof i == "bigint" ? `${i.toString()}n` : Number(i).toString(); } case "%i": { let i = e[r++]; return typeof i == "bigint" ? `${i.toString()}n` : Number.parseInt(String(i)).toString(); } case "%f": return Number.parseFloat(String(e[r++])).toString(); case "%o": return to(e[r++], { showHidden: !0, showProxy: !0 }); case "%O": return to(e[r++]); case "%c": return (r++, ""); case "%j": try { return JSON.stringify(e[r++]); } catch (i) { let u = i.message; if ( u.includes("circular structure") || u.includes("cyclic structures") || u.includes("cyclic object") ) return "[Circular]"; throw i; } default: return o; } }); for (let o = e[r]; r < t; o = e[++r]) o === null || typeof o != "object" ? (a += ` ${o}`) : (a += ` ${to(o)}`); return a; } s(GR, "format"); function to(e, t = {}) { return ( t.truncate === 0 && (t.truncate = Number.POSITIVE_INFINITY), pl(e, t) ); } s(to, "inspect"); function WR(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } s(WR, "getDefaultExportFromCjs"); function Zr(e, t, r) { let n = typeof e; if (!r.includes(n)) throw new TypeError( `${t} value must be ${r.join(" or ")}, received "${n}"`, ); } s(Zr, "assertTypes"); function Ti(e) { return e != null && typeof e == "object" && !Array.isArray(e); } s(Ti, "isObject"); function JR(e) { return ( e === Object.prototype || e === Function.prototype || e === RegExp.prototype ); } s(JR, "isFinalObj"); function Gi(e) { return Object.prototype.toString.apply(e).slice(8, -1); } s(Gi, "getType"); function XR(e, t) { let r = typeof t == "function" ? t : (n) => t.add(n); (Object.getOwnPropertyNames(e).forEach(r), Object.getOwnPropertySymbols(e).forEach(r)); } s(XR, "collectOwnProperties"); function Mg(e) { let t = new Set(); return JR(e) ? [] : (XR(e, t), Array.from(t)); } s(Mg, "getOwnProperties"); var KR = { forceWritable: !1 }; function $h(e, t = KR) { return fl(e, new WeakMap(), t); } s($h, "deepClone"); function fl(e, t, r = KR) { let n, a; if (t.has(e)) return t.get(e); if (Array.isArray(e)) { for (a = Array.from({ length: (n = e.length) }), t.set(e, a); n--; ) a[n] = fl(e[n], t, r); return a; } if (Object.prototype.toString.call(e) === "[object Object]") { ((a = Object.create(Object.getPrototypeOf(e))), t.set(e, a)); let o = Mg(e); for (let i of o) { let u = Object.getOwnPropertyDescriptor(e, i); if (!u) continue; let l = fl(e[i], t, r); r.forceWritable ? Object.defineProperty(a, i, { enumerable: u.enumerable, configurable: !0, writable: !0, value: l, }) : "get" in u ? Object.defineProperty(a, i, { ...u, get() { return l; }, }) : Object.defineProperty(a, i, { ...u, value: l }); } return a; } return e; } s(fl, "clone"); function YR() {} s(YR, "noop"); var or = -1, Kt = 1, kt = 0, QR = class { 0; 1; constructor(t, r) { ((this[0] = t), (this[1] = r)); } }; s(QR, "Diff"); var Ft = QR; function ZR(e, t) { if (!e || !t || e.charAt(0) !== t.charAt(0)) return 0; let r = 0, n = Math.min(e.length, t.length), a = n, o = 0; for (; r < a; ) (e.substring(o, a) === t.substring(o, a) ? ((r = a), (o = r)) : (n = a), (a = Math.floor((n - r) / 2 + r))); return a; } s(ZR, "diff_commonPrefix"); function Bg(e, t) { if (!e || !t || e.charAt(e.length - 1) !== t.charAt(t.length - 1)) return 0; let r = 0, n = Math.min(e.length, t.length), a = n, o = 0; for (; r < a; ) (e.substring(e.length - a, e.length - o) === t.substring(t.length - a, t.length - o) ? ((r = a), (o = r)) : (n = a), (a = Math.floor((n - r) / 2 + r))); return a; } s(Bg, "diff_commonSuffix"); function Uh(e, t) { let r = e.length, n = t.length; if (r === 0 || n === 0) return 0; r > n ? (e = e.substring(r - n)) : r < n && (t = t.substring(0, r)); let a = Math.min(r, n); if (e === t) return a; let o = 0, i = 1; for (;;) { let u = e.substring(a - i), l = t.indexOf(u); if (l === -1) return o; ((i += l), (l === 0 || e.substring(a - i) === t.substring(0, i)) && ((o = i), i++)); } } s(Uh, "diff_commonOverlap_"); function eT(e) { let t = !1, r = [], n = 0, a = null, o = 0, i = 0, u = 0, l = 0, c = 0; for (; o < e.length; ) (e[o][0] === kt ? ((r[n++] = o), (i = l), (u = c), (l = 0), (c = 0), (a = e[o][1])) : (e[o][0] === Kt ? (l += e[o][1].length) : (c += e[o][1].length), a && a.length <= Math.max(i, u) && a.length <= Math.max(l, c) && (e.splice(r[n - 1], 0, new Ft(or, a)), (e[r[n - 1] + 1][0] = Kt), n--, n--, (o = n > 0 ? r[n - 1] : -1), (i = 0), (u = 0), (l = 0), (c = 0), (a = null), (t = !0))), o++); for (t && Lg(e), tT(e), o = 1; o < e.length; ) { if (e[o - 1][0] === or && e[o][0] === Kt) { let d = e[o - 1][1], p = e[o][1], f = Uh(d, p), h = Uh(p, d); (f >= h ? (f >= d.length / 2 || f >= p.length / 2) && (e.splice(o, 0, new Ft(kt, p.substring(0, f))), (e[o - 1][1] = d.substring(0, d.length - f)), (e[o + 1][1] = p.substring(f)), o++) : (h >= d.length / 2 || h >= p.length / 2) && (e.splice(o, 0, new Ft(kt, d.substring(0, h))), (e[o - 1][0] = Kt), (e[o - 1][1] = p.substring(0, p.length - h)), (e[o + 1][0] = or), (e[o + 1][1] = d.substring(h)), o++), o++); } o++; } } s(eT, "diff_cleanupSemantic"); var m_ = /[^a-z0-9]/i, y_ = /\s/, g_ = /[\r\n]/, iz = /\n\r?\n$/, sz = /^\r?\n\r?\n/; function tT(e) { let t = 1; for (; t < e.length - 1; ) { if (e[t - 1][0] === kt && e[t + 1][0] === kt) { let r = e[t - 1][1], n = e[t][1], a = e[t + 1][1], o = Bg(r, n); if (o) { let d = n.substring(n.length - o); ((r = r.substring(0, r.length - o)), (n = d + n.substring(0, n.length - o)), (a = d + a)); } let i = r, u = n, l = a, c = mi(r, n) + mi(n, a); for (; n.charAt(0) === a.charAt(0); ) { ((r += n.charAt(0)), (n = n.substring(1) + a.charAt(0)), (a = a.substring(1))); let d = mi(r, n) + mi(n, a); d >= c && ((c = d), (i = r), (u = n), (l = a)); } e[t - 1][1] !== i && (i ? (e[t - 1][1] = i) : (e.splice(t - 1, 1), t--), (e[t][1] = u), l ? (e[t + 1][1] = l) : (e.splice(t + 1, 1), t--)); } t++; } } s(tT, "diff_cleanupSemanticLossless"); function Lg(e) { e.push(new Ft(kt, "")); let t = 0, r = 0, n = 0, a = "", o = "", i; for (; t < e.length; ) switch (e[t][0]) { case Kt: (n++, (o += e[t][1]), t++); break; case or: (r++, (a += e[t][1]), t++); break; case kt: (r + n > 1 ? (r !== 0 && n !== 0 && ((i = ZR(o, a)), i !== 0 && (t - r - n > 0 && e[t - r - n - 1][0] === kt ? (e[t - r - n - 1][1] += o.substring(0, i)) : (e.splice(0, 0, new Ft(kt, o.substring(0, i))), t++), (o = o.substring(i)), (a = a.substring(i))), (i = Bg(o, a)), i !== 0 && ((e[t][1] = o.substring(o.length - i) + e[t][1]), (o = o.substring(0, o.length - i)), (a = a.substring(0, a.length - i)))), (t -= r + n), e.splice(t, r + n), a.length && (e.splice(t, 0, new Ft(or, a)), t++), o.length && (e.splice(t, 0, new Ft(Kt, o)), t++), t++) : t !== 0 && e[t - 1][0] === kt ? ((e[t - 1][1] += e[t][1]), e.splice(t, 1)) : t++, (n = 0), (r = 0), (a = ""), (o = "")); break; } e[e.length - 1][1] === "" && e.pop(); let u = !1; for (t = 1; t < e.length - 1; ) (e[t - 1][0] === kt && e[t + 1][0] === kt && (e[t][1].substring(e[t][1].length - e[t - 1][1].length) === e[t - 1][1] ? ((e[t][1] = e[t - 1][1] + e[t][1].substring(0, e[t][1].length - e[t - 1][1].length)), (e[t + 1][1] = e[t - 1][1] + e[t + 1][1]), e.splice(t - 1, 1), (u = !0)) : e[t][1].substring(0, e[t + 1][1].length) === e[t + 1][1] && ((e[t - 1][1] += e[t + 1][1]), (e[t][1] = e[t][1].substring(e[t + 1][1].length) + e[t + 1][1]), e.splice(t + 1, 1), (u = !0))), t++); u && Lg(e); } s(Lg, "diff_cleanupMerge"); function mi(e, t) { if (!e || !t) return 6; let r = e.charAt(e.length - 1), n = t.charAt(0), a = r.match(m_), o = n.match(m_), i = a && r.match(y_), u = o && n.match(y_), l = i && r.match(g_), c = u && n.match(g_), d = l && e.match(iz), p = c && t.match(sz); return d || p ? 5 : l || c ? 4 : a && !i && u ? 3 : i || u ? 2 : a || o ? 1 : 0; } s(mi, "diff_cleanupSemanticScore_"); var rT = "Compared values have no visual difference.", uz = "Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.", zs = {}, b_; function nT() { if (b_) return zs; ((b_ = 1), Object.defineProperty(zs, "__esModule", { value: !0 }), (zs.default = f)); let e = "diff-sequences", t = 0, r = s((h, m, y, b, g) => { let v = 0; for (; h < m && y < b && g(h, y); ) ((h += 1), (y += 1), (v += 1)); return v; }, "countCommonItemsF"), n = s((h, m, y, b, g) => { let v = 0; for (; h <= m && y <= b && g(m, b); ) ((m -= 1), (b -= 1), (v += 1)); return v; }, "countCommonItemsR"), a = s((h, m, y, b, g, v, x) => { let A = 0, w = -h, C = v[A], E = C; v[A] += r(C + 1, m, b + C - w + 1, y, g); let _ = h < x ? h : x; for (A += 1, w += 2; A <= _; A += 1, w += 2) { if (A !== h && E < v[A]) C = v[A]; else if (((C = E + 1), m <= C)) return A - 1; ((E = v[A]), (v[A] = C + r(C + 1, m, b + C - w + 1, y, g))); } return x; }, "extendPathsF"), o = s((h, m, y, b, g, v, x) => { let A = 0, w = h, C = v[A], E = C; v[A] -= n(m, C - 1, y, b + C - w - 1, g); let _ = h < x ? h : x; for (A += 1, w -= 2; A <= _; A += 1, w -= 2) { if (A !== h && v[A] < E) C = v[A]; else if (((C = E - 1), C < m)) return A - 1; ((E = v[A]), (v[A] = C - n(m, C - 1, y, b + C - w - 1, g))); } return x; }, "extendPathsR"), i = s((h, m, y, b, g, v, x, A, w, C, E) => { let _ = b - m, P = y - m, D = g - b - P, F = -D - (h - 1), L = -D + (h - 1), q = t, T = h < A ? h : A; for (let k = 0, I = -h; k <= T; k += 1, I += 2) { let W = k === 0 || (k !== h && q < x[k]), Q = W ? x[k] : q, se = W ? Q : Q + 1, H = _ + se - I, K = r(se + 1, y, H + 1, g, v), V = se + K; if (((q = x[k]), (x[k] = V), F <= I && I <= L)) { let Z = (h - 1 - (I + D)) / 2; if (Z <= C && w[Z] - 1 <= V) { let re = _ + Q - (W ? I + 1 : I - 1), he = n(m, Q, b, re, v), oe = Q - he, ge = re - he, be = oe + 1, rt = ge + 1; ((E.nChangePreceding = h - 1), h - 1 === be + rt - m - b ? ((E.aEndPreceding = m), (E.bEndPreceding = b)) : ((E.aEndPreceding = be), (E.bEndPreceding = rt)), (E.nCommonPreceding = he), he !== 0 && ((E.aCommonPreceding = be), (E.bCommonPreceding = rt)), (E.nCommonFollowing = K), K !== 0 && ((E.aCommonFollowing = se + 1), (E.bCommonFollowing = H + 1))); let Ke = V + 1, z = H + K + 1; return ( (E.nChangeFollowing = h - 1), h - 1 === y + g - Ke - z ? ((E.aStartFollowing = y), (E.bStartFollowing = g)) : ((E.aStartFollowing = Ke), (E.bStartFollowing = z)), !0 ); } } } return !1; }, "extendOverlappablePathsF"), u = s((h, m, y, b, g, v, x, A, w, C, E) => { let _ = g - y, P = y - m, D = g - b - P, F = D - h, L = D + h, q = t, T = h < C ? h : C; for (let k = 0, I = h; k <= T; k += 1, I -= 2) { let W = k === 0 || (k !== h && w[k] < q), Q = W ? w[k] : q, se = W ? Q : Q - 1, H = _ + se - I, K = n(m, se - 1, b, H - 1, v), V = se - K; if (((q = w[k]), (w[k] = V), F <= I && I <= L)) { let Z = (h + (I - D)) / 2; if (Z <= A && V - 1 <= x[Z]) { let re = H - K; if ( ((E.nChangePreceding = h), h === V + re - m - b ? ((E.aEndPreceding = m), (E.bEndPreceding = b)) : ((E.aEndPreceding = V), (E.bEndPreceding = re)), (E.nCommonPreceding = K), K !== 0 && ((E.aCommonPreceding = V), (E.bCommonPreceding = re)), (E.nChangeFollowing = h - 1), h === 1) ) ((E.nCommonFollowing = 0), (E.aStartFollowing = y), (E.bStartFollowing = g)); else { let he = _ + Q - (W ? I - 1 : I + 1), oe = r(Q, y, he, g, v); ((E.nCommonFollowing = oe), oe !== 0 && ((E.aCommonFollowing = Q), (E.bCommonFollowing = he))); let ge = Q + oe, be = he + oe; h - 1 === y + g - ge - be ? ((E.aStartFollowing = y), (E.bStartFollowing = g)) : ((E.aStartFollowing = ge), (E.bStartFollowing = be)); } return !0; } } } return !1; }, "extendOverlappablePathsR"), l = s((h, m, y, b, g, v, x, A, w) => { let C = b - m, E = g - y, _ = y - m, P = g - b, D = P - _, F = _, L = _; if (((x[0] = m - 1), (A[0] = y), D % 2 === 0)) { let q = (h || D) / 2, T = (_ + P) / 2; for (let k = 1; k <= T; k += 1) if (((F = a(k, y, g, C, v, x, F)), k < q)) L = o(k, m, b, E, v, A, L); else if (u(k, m, y, b, g, v, x, F, A, L, w)) return; } else { let q = ((h || D) + 1) / 2, T = (_ + P + 1) / 2, k = 1; for (F = a(k, y, g, C, v, x, F), k += 1; k <= T; k += 1) if (((L = o(k - 1, m, b, E, v, A, L)), k < q)) F = a(k, y, g, C, v, x, F); else if (i(k, m, y, b, g, v, x, F, A, L, w)) return; } throw new Error( `${e}: no overlap aStart=${m} aEnd=${y} bStart=${b} bEnd=${g}`, ); }, "divide"), c = s((h, m, y, b, g, v, x, A, w, C) => { if (g - b < y - m) { if (((v = !v), v && x.length === 1)) { let { foundSubsequence: Z, isCommon: re } = x[0]; x[1] = { foundSubsequence: s((he, oe, ge) => { Z(he, ge, oe); }, "foundSubsequence"), isCommon: s((he, oe) => re(oe, he), "isCommon"), }; } let K = m, V = y; ((m = b), (y = g), (b = K), (g = V)); } let { foundSubsequence: E, isCommon: _ } = x[v ? 1 : 0]; l(h, m, y, b, g, _, A, w, C); let { nChangePreceding: P, aEndPreceding: D, bEndPreceding: F, nCommonPreceding: L, aCommonPreceding: q, bCommonPreceding: T, nCommonFollowing: k, aCommonFollowing: I, bCommonFollowing: W, nChangeFollowing: Q, aStartFollowing: se, bStartFollowing: H, } = C; (m < D && b < F && c(P, m, D, b, F, v, x, A, w, C), L !== 0 && E(L, q, T), k !== 0 && E(k, I, W), se < y && H < g && c(Q, se, y, H, g, v, x, A, w, C)); }, "findSubsequences"), d = s((h, m) => { if (typeof m != "number") throw new TypeError(`${e}: ${h} typeof ${typeof m} is not a number`); if (!Number.isSafeInteger(m)) throw new RangeError(`${e}: ${h} value ${m} is not a safe integer`); if (m < 0) throw new RangeError(`${e}: ${h} value ${m} is a negative integer`); }, "validateLength"), p = s((h, m) => { let y = typeof m; if (y !== "function") throw new TypeError(`${e}: ${h} typeof ${y} is not a function`); }, "validateCallback"); function f(h, m, y, b) { (d("aLength", h), d("bLength", m), p("isCommon", y), p("foundSubsequence", b)); let g = r(0, h, 0, m, y); if ((g !== 0 && b(g, 0, 0), h !== g || m !== g)) { let v = g, x = g, A = n(v, h - 1, x, m - 1, y), w = h - A, C = m - A, E = g + A; (h !== E && m !== E && c(0, v, w, x, C, !1, [{ foundSubsequence: b, isCommon: y }], [t], [t], { aCommonFollowing: t, aCommonPreceding: t, aEndPreceding: t, aStartFollowing: t, bCommonFollowing: t, bCommonPreceding: t, bEndPreceding: t, bStartFollowing: t, nChangeFollowing: t, nChangePreceding: t, nCommonFollowing: t, nCommonPreceding: t, }), A !== 0 && b(A, w, C)); } } return (s(f, "diffSequence"), zs); } s(nT, "requireBuild"); var lz = nT(), aT = WR(lz); function oT(e, t) { return e.replace(/\s+$/, (r) => t(r)); } s(oT, "formatTrailingSpaces"); function Rc(e, t, r, n, a, o) { return e.length !== 0 ? r(`${n} ${oT(e, a)}`) : n !== " " ? r(n) : t && o.length !== 0 ? r(`${n} ${o}`) : ""; } s(Rc, "printDiffLine"); function $g( e, t, { aColor: r, aIndicator: n, changeLineTrailingSpaceColor: a, emptyFirstOrLastLinePlaceholder: o, }, ) { return Rc(e, t, r, n, a, o); } s($g, "printDeleteLine"); function Ug( e, t, { bColor: r, bIndicator: n, changeLineTrailingSpaceColor: a, emptyFirstOrLastLinePlaceholder: o, }, ) { return Rc(e, t, r, n, a, o); } s(Ug, "printInsertLine"); function Hg( e, t, { commonColor: r, commonIndicator: n, commonLineTrailingSpaceColor: a, emptyFirstOrLastLinePlaceholder: o, }, ) { return Rc(e, t, r, n, a, o); } s(Hg, "printCommonLine"); function Hh(e, t, r, n, { patchColor: a }) { return a(`@@ -${e + 1},${t - e} +${r + 1},${n - r} @@`); } s(Hh, "createPatchMark"); function iT(e, t) { let r = e.length, n = t.contextLines, a = n + n, o = r, i = !1, u = 0, l = 0; for (; l !== r; ) { let A = l; for (; l !== r && e[l][0] === kt; ) l += 1; if (A !== l) if (A === 0) l > n && ((o -= l - n), (i = !0)); else if (l === r) { let w = l - A; w > n && ((o -= w - n), (i = !0)); } else { let w = l - A; w > a && ((o -= w - a), (u += 1)); } for (; l !== r && e[l][0] !== kt; ) l += 1; } let c = u !== 0 || i; u !== 0 ? (o += u + 1) : i && (o += 1); let d = o - 1, p = [], f = 0; c && p.push(""); let h = 0, m = 0, y = 0, b = 0, g = s((A) => { let w = p.length; (p.push(Hg(A, w === 0 || w === d, t)), (y += 1), (b += 1)); }, "pushCommonLine"), v = s((A) => { let w = p.length; (p.push($g(A, w === 0 || w === d, t)), (y += 1)); }, "pushDeleteLine"), x = s((A) => { let w = p.length; (p.push(Ug(A, w === 0 || w === d, t)), (b += 1)); }, "pushInsertLine"); for (l = 0; l !== r; ) { let A = l; for (; l !== r && e[l][0] === kt; ) l += 1; if (A !== l) if (A === 0) { l > n && ((A = l - n), (h = A), (m = A), (y = h), (b = m)); for (let w = A; w !== l; w += 1) g(e[w][1]); } else if (l === r) { let w = l - A > n ? A + n : l; for (let C = A; C !== w; C += 1) g(e[C][1]); } else { let w = l - A; if (w > a) { let C = A + n; for (let _ = A; _ !== C; _ += 1) g(e[_][1]); ((p[f] = Hh(h, y, m, b, t)), (f = p.length), p.push("")); let E = w - a; ((h = y + E), (m = b + E), (y = h), (b = m)); for (let _ = l - n; _ !== l; _ += 1) g(e[_][1]); } else for (let C = A; C !== l; C += 1) g(e[C][1]); } for (; l !== r && e[l][0] === or; ) (v(e[l][1]), (l += 1)); for (; l !== r && e[l][0] === Kt; ) (x(e[l][1]), (l += 1)); } return ( c && (p[f] = Hh(h, y, m, b, t)), p.join(` `) ); } s(iT, "joinAlignedDiffsNoExpand"); function sT(e, t) { return e.map((r, n, a) => { let o = r[1], i = n === 0 || n === a.length - 1; switch (r[0]) { case or: return $g(o, i, t); case Kt: return Ug(o, i, t); default: return Hg(o, i, t); } }).join(` `); } s(sT, "joinAlignedDiffsExpand"); var dp = s((e) => e, "noColor"), uT = 5, cz = 0; function lT() { return { aAnnotation: "Expected", aColor: qt.green, aIndicator: "-", bAnnotation: "Received", bColor: qt.red, bIndicator: "+", changeColor: qt.inverse, changeLineTrailingSpaceColor: dp, commonColor: qt.dim, commonIndicator: " ", commonLineTrailingSpaceColor: dp, compareKeys: void 0, contextLines: uT, emptyFirstOrLastLinePlaceholder: "", expand: !1, includeChangeCounts: !1, omitAnnotationLines: !1, patchColor: qt.yellow, printBasicPrototype: !1, truncateThreshold: cz, truncateAnnotation: "... Diff result is truncated", truncateAnnotationColor: dp, }; } s(lT, "getDefaultOptions"); function cT(e) { return e && typeof e == "function" ? e : void 0; } s(cT, "getCompareKeys"); function dT(e) { return typeof e == "number" && Number.isSafeInteger(e) && e >= 0 ? e : uT; } s(dT, "getContextLines"); function ia(e = {}) { return { ...lT(), ...e, compareKeys: cT(e.compareKeys), contextLines: dT(e.contextLines), }; } s(ia, "normalizeDiffOptions"); function ya(e) { return e.length === 1 && e[0].length === 0; } s(ya, "isEmptyString"); function pT(e) { let t = 0, r = 0; return ( e.forEach((n) => { switch (n[0]) { case or: t += 1; break; case Kt: r += 1; break; } }), { a: t, b: r } ); } s(pT, "countChanges"); function fT( { aAnnotation: e, aColor: t, aIndicator: r, bAnnotation: n, bColor: a, bIndicator: o, includeChangeCounts: i, omitAnnotationLines: u, }, l, ) { if (u) return ""; let c = "", d = ""; if (i) { let h = String(l.a), m = String(l.b), y = n.length - e.length, b = " ".repeat(Math.max(0, y)), g = " ".repeat(Math.max(0, -y)), v = m.length - h.length, x = " ".repeat(Math.max(0, v)), A = " ".repeat(Math.max(0, -v)); ((c = `${b} ${r} ${x}${h}`), (d = `${g} ${o} ${A}${m}`)); } let p = `${r} ${e}${c}`, f = `${o} ${n}${d}`; return `${t(p)} ${a(f)} `; } s(fT, "printAnnotation"); function Tc(e, t, r) { return ( fT(r, pT(e)) + (r.expand ? sT(e, r) : iT(e, r)) + (t ? r.truncateAnnotationColor(` ${r.truncateAnnotation}`) : "") ); } s(Tc, "printDiffLines"); function bs(e, t, r) { let n = ia(r), [a, o] = Vg(ya(e) ? [] : e, ya(t) ? [] : t, n); return Tc(a, o, n); } s(bs, "diffLinesUnified"); function hT(e, t, r, n, a) { if ( (ya(e) && ya(r) && ((e = []), (r = [])), ya(t) && ya(n) && ((t = []), (n = [])), e.length !== r.length || t.length !== n.length) ) return bs(e, t, a); let [o, i] = Vg(r, n, a), u = 0, l = 0; return ( o.forEach((c) => { switch (c[0]) { case or: ((c[1] = e[u]), (u += 1)); break; case Kt: ((c[1] = t[l]), (l += 1)); break; default: ((c[1] = t[l]), (u += 1), (l += 1)); } }), Tc(o, i, ia(a)) ); } s(hT, "diffLinesUnified2"); function Vg(e, t, r) { let n = r?.truncateThreshold ?? !1, a = Math.max(Math.floor(r?.truncateThreshold ?? 0), 0), o = n ? Math.min(e.length, a) : e.length, i = n ? Math.min(t.length, a) : t.length, u = o !== e.length || i !== t.length, l = s((f, h) => e[f] === t[h], "isCommon"), c = [], d = 0, p = 0; for ( aT( o, i, l, s((f, h, m) => { for (; d !== h; d += 1) c.push(new Ft(or, e[d])); for (; p !== m; p += 1) c.push(new Ft(Kt, t[p])); for (; f !== 0; f -= 1, d += 1, p += 1) c.push(new Ft(kt, t[p])); }, "foundSubsequence"), ); d !== o; d += 1 ) c.push(new Ft(or, e[d])); for (; p !== i; p += 1) c.push(new Ft(Kt, t[p])); return [c, u]; } s(Vg, "diffLinesRaw"); function Vh(e) { if (e === void 0) return "undefined"; if (e === null) return "null"; if (Array.isArray(e)) return "array"; if (typeof e == "boolean") return "boolean"; if (typeof e == "function") return "function"; if (typeof e == "number") return "number"; if (typeof e == "string") return "string"; if (typeof e == "bigint") return "bigint"; if (typeof e == "object") { if (e != null) { if (e.constructor === RegExp) return "regexp"; if (e.constructor === Map) return "map"; if (e.constructor === Set) return "set"; if (e.constructor === Date) return "date"; } return "object"; } else if (typeof e == "symbol") return "symbol"; throw new Error(`value of unknown type: ${e}`); } s(Vh, "getType"); function zh(e) { return e.includes(`\r `) ? `\r ` : ` `; } s(zh, "getNewLineSymbol"); function mT(e, t, r) { let n = r?.truncateThreshold ?? !1, a = Math.max(Math.floor(r?.truncateThreshold ?? 0), 0), o = e.length, i = t.length; if (n) { let f = e.includes(` `), h = t.includes(` `), m = zh(e), y = zh(t), b = f ? `${e.split(m, a).join(m)} ` : e, g = h ? `${t.split(y, a).join(y)} ` : t; ((o = b.length), (i = g.length)); } let u = o !== e.length || i !== t.length, l = s((f, h) => e[f] === t[h], "isCommon"), c = 0, d = 0, p = []; return ( aT( o, i, l, s((f, h, m) => { (c !== h && p.push(new Ft(or, e.slice(c, h))), d !== m && p.push(new Ft(Kt, t.slice(d, m))), (c = h + f), (d = m + f), p.push(new Ft(kt, t.slice(m, d)))); }, "foundSubsequence"), ), c !== o && p.push(new Ft(or, e.slice(c))), d !== i && p.push(new Ft(Kt, t.slice(d))), [p, u] ); } s(mT, "diffStrings"); function yT(e, t, r) { return t.reduce( (n, a) => n + (a[0] === kt ? a[1] : a[0] === e && a[1].length !== 0 ? r(a[1]) : ""), "", ); } s(yT, "concatenateRelevantDiffs"); var gT = class { op; line; lines; changeColor; constructor(t, r) { ((this.op = t), (this.line = []), (this.lines = []), (this.changeColor = r)); } pushSubstring(t) { this.pushDiff(new Ft(this.op, t)); } pushLine() { (this.lines.push( this.line.length !== 1 ? new Ft(this.op, yT(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] : new Ft(this.op, this.line[0][1]), ), (this.line.length = 0)); } isLineEmpty() { return this.line.length === 0; } pushDiff(t) { this.line.push(t); } align(t) { let r = t[1]; if ( r.includes(` `) ) { let n = r.split(` `), a = n.length - 1; n.forEach((o, i) => { i < a ? (this.pushSubstring(o), this.pushLine()) : o.length !== 0 && this.pushSubstring(o); }); } else this.pushDiff(t); } moveLinesTo(t) { (this.isLineEmpty() || this.pushLine(), t.push(...this.lines), (this.lines.length = 0)); } }; s(gT, "ChangeBuffer"); var v_ = gT, bT = class { deleteBuffer; insertBuffer; lines; constructor(t, r) { ((this.deleteBuffer = t), (this.insertBuffer = r), (this.lines = [])); } pushDiffCommonLine(t) { this.lines.push(t); } pushDiffChangeLines(t) { let r = t[1].length === 0; ((!r || this.deleteBuffer.isLineEmpty()) && this.deleteBuffer.pushDiff(t), (!r || this.insertBuffer.isLineEmpty()) && this.insertBuffer.pushDiff(t)); } flushChangeLines() { (this.deleteBuffer.moveLinesTo(this.lines), this.insertBuffer.moveLinesTo(this.lines)); } align(t) { let r = t[0], n = t[1]; if ( n.includes(` `) ) { let a = n.split(` `), o = a.length - 1; a.forEach((i, u) => { if (u === 0) { let l = new Ft(r, i); this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(l)) : (this.pushDiffChangeLines(l), this.flushChangeLines()); } else u < o ? this.pushDiffCommonLine(new Ft(r, i)) : i.length !== 0 && this.pushDiffChangeLines(new Ft(r, i)); }); } else this.pushDiffChangeLines(t); } getLines() { return (this.flushChangeLines(), this.lines); } }; s(bT, "CommonBuffer"); var dz = bT; function vT(e, t) { let r = new v_(or, t), n = new v_(Kt, t), a = new dz(r, n); return ( e.forEach((o) => { switch (o[0]) { case or: r.align(o); break; case Kt: n.align(o); break; default: a.align(o); } }), a.getLines() ); } s(vT, "getAlignedDiffs"); function ET(e, t) { if (t) { let r = e.length - 1; return e.some( (n, a) => n[0] === kt && (a !== r || n[1] !== ` `), ); } return e.some((r) => r[0] === kt); } s(ET, "hasCommonDiff"); function _T(e, t, r) { if (e !== t && e.length !== 0 && t.length !== 0) { let n = e.includes(` `) || t.includes(` `), [a, o] = zg( n ? `${e} ` : e, n ? `${t} ` : t, !0, r, ); if (ET(a, n)) { let i = ia(r), u = vT(a, i.changeColor); return Tc(u, o, i); } } return bs( e.split(` `), t.split(` `), r, ); } s(_T, "diffStringsUnified"); function zg(e, t, r, n) { let [a, o] = mT(e, t, n); return (r && eT(a), [a, o]); } s(zg, "diffStringsRaw"); function hl(e, t) { let { commonColor: r } = ia(t); return r(e); } s(hl, "getCommonMessage"); var { AsymmetricMatcher: pz, DOMCollection: fz, DOMElement: hz, Immutable: mz, ReactElement: yz, ReactTestComponent: gz, } = kg, CT = [gz, yz, hz, fz, mz, pz, kg.Error], Gh = { maxDepth: 20, plugins: CT }, wT = { callToJSON: !1, maxDepth: 8, plugins: CT }; function Ua(e, t, r) { if (Object.is(e, t)) return ""; let n = Vh(e), a = n, o = !1; if (n === "object" && typeof e.asymmetricMatch == "function") { if ( e.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof e.getExpectedType != "function" ) return; ((a = e.getExpectedType()), (o = a === "string")); } if (a !== Vh(t)) { let i = function (x) { return x.length <= b ? x : `${x.slice(0, b)}...`; }; s(i, "truncate"); let { aAnnotation: u, aColor: l, aIndicator: c, bAnnotation: d, bColor: p, bIndicator: f, } = ia(r), h = ml(wT, r), m = Ur(e, h), y = Ur(t, h), b = 1e5; ((m = i(m)), (y = i(y))); let g = `${l(`${c} ${u}:`)} ${m}`, v = `${p(`${f} ${d}:`)} ${y}`; return `${g} ${v}`; } if (!o) switch (n) { case "string": return bs( e.split(` `), t.split(` `), r, ); case "boolean": case "number": return AT(e, t, r); case "map": return Vu(Wh(e), Wh(t), r); case "set": return Vu(Jh(e), Jh(t), r); default: return Vu(e, t, r); } } s(Ua, "diff"); function AT(e, t, r) { let n = Ur(e, Gh), a = Ur(t, Gh); return n === a ? "" : bs( n.split(` `), a.split(` `), r, ); } s(AT, "comparePrimitive"); function Wh(e) { return new Map(Array.from(e.entries()).sort()); } s(Wh, "sortMap"); function Jh(e) { return new Set(Array.from(e.values()).sort()); } s(Jh, "sortSet"); function Vu(e, t, r) { let n, a = !1; try { let i = ml(Gh, r); n = Xh(e, t, i, r); } catch { a = !0; } let o = hl(rT, r); if (n === void 0 || n === o) { let i = ml(wT, r); ((n = Xh(e, t, i, r)), n !== o && !a && (n = `${hl(uz, r)} ${n}`)); } return n; } s(Vu, "compareObjects"); function ml(e, t) { let { compareKeys: r, printBasicPrototype: n, maxDepth: a } = ia(t); return { ...e, compareKeys: r, printBasicPrototype: n, maxDepth: a ?? e.maxDepth, }; } s(ml, "getFormatOptions"); function Xh(e, t, r, n) { let a = { ...r, indent: 0 }, o = Ur(e, a), i = Ur(t, a); if (o === i) return hl(rT, n); { let u = Ur(e, r), l = Ur(t, r); return hT( u.split(` `), l.split(` `), o.split(` `), i.split(` `), n, ); } } s(Xh, "getObjectsDifference"); var E_ = 2e4; function Kh(e) { return Gi(e) === "Object" && typeof e.asymmetricMatch == "function"; } s(Kh, "isAsymmetricMatcher"); function Yh(e, t) { let r = Gi(e), n = Gi(t); return r === n && (r === "Object" || r === "Array"); } s(Yh, "isReplaceable"); function Gg(e, t, r) { let { aAnnotation: n, bAnnotation: a } = ia(r); if ( typeof t == "string" && typeof e == "string" && t.length > 0 && e.length > 0 && t.length <= E_ && e.length <= E_ && t !== e ) { if ( t.includes(` `) || e.includes(` `) ) return _T(t, e, r); let [c] = zg(t, e, !0), d = c.some((m) => m[0] === kt), p = ST(n, a), f = p(n) + PT(Qh(c, or, d)), h = p(a) + xT(Qh(c, Kt, d)); return `${f} ${h}`; } let o = $h(t, { forceWritable: !0 }), i = $h(e, { forceWritable: !0 }), { replacedExpected: u, replacedActual: l } = Wg(i, o); return Ua(u, l, r); } s(Gg, "printDiffOrStringify"); function Wg(e, t, r = new WeakSet(), n = new WeakSet()) { return e instanceof Error && t instanceof Error && typeof e.cause < "u" && typeof t.cause > "u" ? (delete e.cause, { replacedActual: e, replacedExpected: t }) : Yh(e, t) ? r.has(e) || n.has(t) ? { replacedActual: e, replacedExpected: t } : (r.add(e), n.add(t), Mg(t).forEach((a) => { let o = t[a], i = e[a]; if (Kh(o)) o.asymmetricMatch(i) && (e[a] = o); else if (Kh(i)) i.asymmetricMatch(o) && (t[a] = i); else if (Yh(i, o)) { let u = Wg(i, o, r, n); ((e[a] = u.replacedActual), (t[a] = u.replacedExpected)); } }), { replacedActual: e, replacedExpected: t }) : { replacedActual: e, replacedExpected: t }; } s(Wg, "replaceAsymmetricMatcher"); function ST(...e) { let t = e.reduce((r, n) => (n.length > r ? n.length : r), 0); return (r) => `${r}: ${" ".repeat(t - r.length)}`; } s(ST, "getLabelPrinter"); var bz = "·"; function Jg(e) { return e.replace(/\s+$/gm, (t) => bz.repeat(t.length)); } s(Jg, "replaceTrailingSpaces"); function xT(e) { return qt.red(Jg(hr(e))); } s(xT, "printReceived"); function PT(e) { return qt.green(Jg(hr(e))); } s(PT, "printExpected"); function Qh(e, t, r) { return e.reduce( (n, a) => n + (a[0] === kt ? a[1] : a[0] === t ? (r ? qt.inverse(a[1]) : a[1]) : ""), "", ); } s(Qh, "getCommonAndChangedSubstrings"); var vz = "@@__IMMUTABLE_RECORD__@@", Ez = "@@__IMMUTABLE_ITERABLE__@@"; function RT(e) { return e && (e[Ez] || e[vz]); } s(RT, "isImmutable"); var _z = Object.getPrototypeOf({}); function Zh(e) { return e instanceof Error ? `: ${e.message}` : typeof e == "string" ? `: ${e}` : ""; } s(Zh, "getUnserializableMessage"); function Sn(e, t = new WeakMap()) { if (!e || typeof e == "string") return e; if (e instanceof Error && "toJSON" in e && typeof e.toJSON == "function") { let r = e.toJSON(); return ( r && r !== e && typeof r == "object" && (typeof e.message == "string" && yi(() => r.message ?? (r.message = e.message)), typeof e.stack == "string" && yi(() => r.stack ?? (r.stack = e.stack)), typeof e.name == "string" && yi(() => r.name ?? (r.name = e.name)), e.cause != null && yi(() => r.cause ?? (r.cause = Sn(e.cause, t)))), Sn(r, t) ); } if (typeof e == "function") return `Function<${e.name || "anonymous"}>`; if (typeof e == "symbol") return e.toString(); if (typeof e != "object") return e; if (typeof Buffer < "u" && e instanceof Buffer) return ``; if (typeof Uint8Array < "u" && e instanceof Uint8Array) return ``; if (RT(e)) return Sn(e.toJSON(), t); if ( e instanceof Promise || (e.constructor && e.constructor.prototype === "AsyncFunction") ) return "Promise"; if (typeof Element < "u" && e instanceof Element) return e.tagName; if (typeof e.asymmetricMatch == "function") return `${e.toString()} ${GR(e.sample)}`; if (typeof e.toJSON == "function") return Sn(e.toJSON(), t); if (t.has(e)) return t.get(e); if (Array.isArray(e)) { let r = new Array(e.length); return ( t.set(e, r), e.forEach((n, a) => { try { r[a] = Sn(n, t); } catch (o) { r[a] = Zh(o); } }), r ); } else { let r = Object.create(null); t.set(e, r); let n = e; for (; n && n !== _z; ) (Object.getOwnPropertyNames(n).forEach((a) => { if (!(a in r)) try { r[a] = Sn(e[a], t); } catch (o) { (delete r[a], (r[a] = Zh(o))); } }), (n = Object.getPrototypeOf(n))); return r; } } s(Sn, "serializeValue"); function yi(e) { try { return e(); } catch {} } s(yi, "safe"); function TT(e) { return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, ""); } s(TT, "normalizeErrorMessage"); function Oc(e, t, r = new WeakSet()) { if (!e || typeof e != "object") return { message: String(e) }; let n = e; ((n.showDiff || (n.showDiff === void 0 && n.expected !== void 0 && n.actual !== void 0)) && (n.diff = Gg(n.actual, n.expected, { ...t, ...n.diffOptions })), "expected" in n && typeof n.expected != "string" && (n.expected = hr(n.expected, 10)), "actual" in n && typeof n.actual != "string" && (n.actual = hr(n.actual, 10))); try { typeof n.message == "string" && (n.message = TT(n.message)); } catch {} try { !r.has(n) && typeof n.cause == "object" && (r.add(n), (n.cause = Oc(n.cause, t, r))); } catch {} try { return Sn(n); } catch (a) { return Sn( new Error(`Failed to fully serialize error: ${a?.message} Inner error message: ${n?.message}`), ); } } s(Oc, "processError"); var yn = { CALL: "storybook/instrumenter/call", SYNC: "storybook/instrumenter/sync", START: "storybook/instrumenter/start", BACK: "storybook/instrumenter/back", GOTO: "storybook/instrumenter/goto", NEXT: "storybook/instrumenter/next", END: "storybook/instrumenter/end", }, pp = globalThis.__STORYBOOK_ADDONS_PREVIEW, Cz = new Error( "This function ran after the play function completed. Did you forget to `await` it?", ), __ = s( (e) => Object.prototype.toString.call(e) === "[object Object]", "isObject", ), wz = s( (e) => Object.prototype.toString.call(e) === "[object Module]", "isModule", ), Az = s((e) => { if (!__(e) && !wz(e)) return !1; if (e.constructor === void 0) return !0; let t = e.constructor.prototype; return !!__(t); }, "isInstrumentable"), Sz = s((e) => { try { return new e.constructor(); } catch { return {}; } }, "construct"), fp = s( () => ({ renderPhase: "preparing", isDebugging: !1, isPlaying: !1, isLocked: !1, cursor: 0, calls: [], shadowCalls: [], callRefsByResult: new Map(), chainedCallIds: new Set(), ancestors: [], playUntil: void 0, resolvers: {}, syncTimeout: void 0, }), "getInitialState", ), C_ = s((e, t = !1) => { let r = (t ? e.shadowCalls : e.calls).filter((a) => a.retain); if (!r.length) return; let n = new Map( Array.from(e.callRefsByResult.entries()).filter(([, a]) => a.retain), ); return { cursor: r.length, calls: r, callRefsByResult: n }; }, "getRetainedState"), OT = class { constructor() { ((this.detached = !1), (this.initialized = !1), (this.state = {}), (this.loadParentWindowState = s(() => { try { this.state = Ae.window?.parent ?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {}; } catch { this.detached = !0; } }, "loadParentWindowState")), (this.updateParentWindowState = s(() => { try { Ae.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state; } catch { this.detached = !0; } }, "updateParentWindowState")), this.loadParentWindowState()); let t = s( ({ storyId: l, renderPhase: c, isPlaying: d = !0, isDebugging: p = !1, }) => { let f = this.getState(l); (this.setState(l, { ...fp(), ...C_(f, p), renderPhase: c || f.renderPhase, shadowCalls: p ? f.shadowCalls : [], chainedCallIds: p ? f.chainedCallIds : new Set(), playUntil: p ? f.playUntil : void 0, isPlaying: d, isDebugging: p, }), this.sync(l)); }, "resetState", ), r = s( (l) => ({ storyId: c, playUntil: d }) => { this.getState(c).isDebugging || this.setState(c, ({ calls: f }) => ({ calls: [], shadowCalls: f.map((h) => ({ ...h, status: "waiting" })), isDebugging: !0, })); let p = this.getLog(c); (this.setState(c, ({ shadowCalls: f }) => { if (d || !p.length) return { playUntil: d }; let h = f.findIndex((m) => m.id === p[0].callId); return { playUntil: f .slice(0, h) .filter((m) => m.interceptable && !m.ancestors?.length) .slice(-1)[0]?.id, }; }), l.emit(ll, { storyId: c, isDebugging: !0 })); }, "start", ), n = s( (l) => ({ storyId: c }) => { let d = this.getLog(c).filter((f) => !f.ancestors?.length), p = d.reduceRight( (f, h, m) => (f >= 0 || h.status === "waiting" ? f : m), -1, ); r(l)({ storyId: c, playUntil: d[p - 1]?.callId }); }, "back", ), a = s( (l) => ({ storyId: c, callId: d }) => { let { calls: p, shadowCalls: f, resolvers: h } = this.getState(c), m = p.find(({ id: b }) => b === d), y = f.find(({ id: b }) => b === d); if (!m && y && Object.values(h).length > 0) { let b = this.getLog(c).find( (g) => g.status === "waiting", )?.callId; (y.id !== b && this.setState(c, { playUntil: y.id }), Object.values(h).forEach((g) => g())); } else r(l)({ storyId: c, playUntil: d }); }, "goto", ), o = s( (l) => ({ storyId: c }) => { let { resolvers: d } = this.getState(c); if (Object.values(d).length > 0) Object.values(d).forEach((p) => p()); else { let p = this.getLog(c).find( (f) => f.status === "waiting", )?.callId; p ? r(l)({ storyId: c, playUntil: p }) : i({ storyId: c }); } }, "next", ), i = s(({ storyId: l }) => { (this.setState(l, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(l).resolvers).forEach((c) => c())); }, "end"), u = s(({ storyId: l, newPhase: c }) => { let { isDebugging: d } = this.getState(l); if (c === "preparing" && d) return t({ storyId: l, renderPhase: c }); if (c === "playing") return t({ storyId: l, renderPhase: c, isDebugging: d }); (c === "played" ? this.setState(l, { renderPhase: c, isLocked: !1, isPlaying: !1, isDebugging: !1, }) : c === "errored" ? this.setState(l, { renderPhase: c, isLocked: !1, isPlaying: !1, }) : c === "aborted" ? this.setState(l, { renderPhase: c, isLocked: !0, isPlaying: !1, }) : this.setState(l, { renderPhase: c }), this.sync(l)); }, "renderPhaseChanged"); pp && pp.ready().then(() => { ((this.channel = pp.getChannel()), this.channel.on(ll, t), this.channel.on(Ra, u), this.channel.on(Zy, () => { this.initialized ? this.cleanup() : (this.initialized = !0); }), this.channel.on(yn.START, r(this.channel)), this.channel.on(yn.BACK, n(this.channel)), this.channel.on(yn.GOTO, a(this.channel)), this.channel.on(yn.NEXT, o(this.channel)), this.channel.on(yn.END, i)); }); } getState(t) { return this.state[t] || fp(); } setState(t, r) { if (t) { let n = this.getState(t), a = typeof r == "function" ? r(n) : r; ((this.state = { ...this.state, [t]: { ...n, ...a } }), this.updateParentWindowState()); } } cleanup() { this.state = Object.entries(this.state).reduce((r, [n, a]) => { let o = C_(a); return (o && (r[n] = Object.assign(fp(), o)), r); }, {}); let t = { controlStates: { detached: this.detached, start: !1, back: !1, goto: !1, next: !1, end: !1, }, logItems: [], }; (this.channel?.emit(yn.SYNC, t), this.updateParentWindowState()); } getLog(t) { let { calls: r, shadowCalls: n } = this.getState(t), a = [...n]; r.forEach((i, u) => { a[u] = i; }); let o = new Set(); return a.reduceRight( (i, u) => ( u.args.forEach((l) => { l?.__callId__ && o.add(l.__callId__); }), u.path.forEach((l) => { l.__callId__ && o.add(l.__callId__); }), (u.interceptable || u.exception) && !o.has(u.id) && (i.unshift({ callId: u.id, status: u.status, ancestors: u.ancestors, }), o.add(u.id)), i ), [], ); } instrument(t, r, n = 0) { if (!Az(t)) return t; let { mutate: a = !1, path: o = [] } = r, i = r.getKeys ? r.getKeys(t, n) : Object.keys(t); return ( (n += 1), i.reduce( (u, l) => { let c = DT(t, l); if (typeof c?.get == "function") { if (c.configurable) { let p = s(() => c?.get?.bind(t)?.(), "getter"); Object.defineProperty(u, l, { get: s( () => this.instrument(p(), { ...r, path: o.concat(l) }, n), "get", ), }); } return u; } let d = t[l]; return typeof d != "function" ? ((u[l] = this.instrument(d, { ...r, path: o.concat(l) }, n)), u) : "__originalFn__" in d && typeof d.__originalFn__ == "function" ? ((u[l] = d), u) : ((u[l] = (...p) => this.track(l, d, t, p, r)), (u[l].__originalFn__ = d), Object.defineProperty(u[l], "name", { value: l, writable: !1, }), Object.keys(d).length > 0 && Object.assign( u[l], this.instrument({ ...d }, { ...r, path: o.concat(l) }, n), ), u); }, a ? t : Sz(t), ) ); } track(t, r, n, a, o) { let i = a?.[0]?.__storyId__ || Ae.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: u, ancestors: l } = this.getState(i); this.setState(i, { cursor: u + 1 }); let c = `${l.slice(-1)[0] || i} [${u}] ${t}`, { path: d = [], intercept: p = !1, retain: f = !1 } = o, h = typeof p == "function" ? p(t, d) : p, m = { id: c, cursor: u, storyId: i, ancestors: l, path: d, method: t, args: a, interceptable: h, retain: f, }, y = (h && !l.length ? this.intercept : this.invoke).call( this, r, n, m, o, ); return this.instrument(y, { ...o, mutate: !0, path: [{ __callId__: m.id }], }); } intercept(t, r, n, a) { let { chainedCallIds: o, isDebugging: i, playUntil: u, } = this.getState(n.storyId), l = o.has(n.id); return !i || l || u ? (u === n.id && this.setState(n.storyId, { playUntil: void 0 }), this.invoke(t, r, n, a)) : new Promise((c) => { this.setState(n.storyId, ({ resolvers: d }) => ({ isLocked: !1, resolvers: { ...d, [n.id]: c }, })); }).then( () => ( this.setState(n.storyId, (c) => { let { [n.id]: d, ...p } = c.resolvers; return { isLocked: !0, resolvers: p }; }), this.invoke(t, r, n, a) ), ); } invoke(t, r, n, a) { let { callRefsByResult: o, renderPhase: i } = this.getState(n.storyId), u = 25, l = s((p, f, h) => { if (h.includes(p)) return "[Circular]"; if (((h = [...h, p]), f > u)) return "..."; if (o.has(p)) return o.get(p); if (p instanceof Array) return p.map((m) => l(m, ++f, h)); if (p instanceof Date) return { __date__: { value: p.toISOString() } }; if (p instanceof Error) { let { name: m, message: y, stack: b } = p; return { __error__: { name: m, message: y, stack: b } }; } if (p instanceof RegExp) { let { flags: m, source: y } = p; return { __regexp__: { flags: m, source: y } }; } if (p instanceof Ae.window?.HTMLElement) { let { prefix: m, localName: y, id: b, classList: g, innerText: v, } = p, x = Array.from(g); return { __element__: { prefix: m, localName: y, id: b, classNames: x, innerText: v, }, }; } return typeof p == "function" ? { __function__: { name: "getMockName" in p ? p.getMockName() : p.name, }, } : typeof p == "symbol" ? { __symbol__: { description: p.description } } : typeof p == "object" && p?.constructor?.name && p?.constructor?.name !== "Object" ? { __class__: { name: p.constructor.name } } : Object.prototype.toString.call(p) === "[object Object]" ? Object.fromEntries( Object.entries(p).map(([m, y]) => [m, l(y, ++f, h)]), ) : p; }, "serializeValues"), c = { ...n, args: n.args.map((p) => l(p, 0, [])) }; n.path.forEach((p) => { p?.__callId__ && this.setState(n.storyId, ({ chainedCallIds: f }) => ({ chainedCallIds: new Set(Array.from(f).concat(p.__callId__)), })); }); let d = s((p) => { if (p instanceof Error) { let { name: f, message: h, stack: m, callId: y = n.id } = p, { showDiff: b = void 0, diff: g = void 0, actual: v = void 0, expected: x = void 0, } = p.name === "AssertionError" ? Oc(p) : p, A = { name: f, message: h, stack: m, callId: y, showDiff: b, diff: g, actual: v, expected: x, }; if ( (this.update({ ...c, status: "error", exception: A }), this.setState(n.storyId, (w) => ({ callRefsByResult: new Map([ ...Array.from(w.callRefsByResult.entries()), [p, { __callId__: n.id, retain: n.retain }], ]), })), n.ancestors?.length) ) throw ( Object.prototype.hasOwnProperty.call(p, "callId") || Object.defineProperty(p, "callId", { value: n.id }), p ); } throw p; }, "handleException"); try { if (i === "played" && !n.retain) throw Cz; let p = ( a.getArgs ? a.getArgs(n, this.getState(n.storyId)) : n.args ).map((h) => typeof h != "function" || FT(h) || Object.keys(h).length ? h : (...m) => { let { cursor: y, ancestors: b } = this.getState(n.storyId); this.setState(n.storyId, { cursor: 0, ancestors: [...b, n.id], }); let g = s( () => this.setState(n.storyId, { cursor: y, ancestors: b }), "restore", ), v = !1; try { let x = h(...m); return x instanceof Promise ? ((v = !0), x.finally(g)) : x; } finally { v || g(); } }, ), f = t.apply(r, p); return ( f && ["object", "function", "symbol"].includes(typeof f) && this.setState(n.storyId, (h) => ({ callRefsByResult: new Map([ ...Array.from(h.callRefsByResult.entries()), [f, { __callId__: n.id, retain: n.retain }], ]), })), this.update({ ...c, status: f instanceof Promise ? "active" : "done", }), f instanceof Promise ? f.then((h) => (this.update({ ...c, status: "done" }), h), d) : f ); } catch (p) { return d(p); } } update(t) { (this.channel?.emit(yn.CALL, t), this.setState(t.storyId, ({ calls: r }) => { let n = r .concat(t) .reduce((a, o) => Object.assign(a, { [o.id]: o }), {}); return { calls: Object.values(n).sort((a, o) => a.id.localeCompare(o.id, void 0, { numeric: !0 }), ), }; }), this.sync(t.storyId)); } sync(t) { let r = s(() => { let { isLocked: n, isPlaying: a } = this.getState(t), o = this.getLog(t), i = o .filter(({ ancestors: d }) => !d.length) .find((d) => d.status === "waiting")?.callId, u = o.some((d) => d.status === "active"); if (this.detached || n || u || o.length === 0) { let d = { controlStates: { detached: this.detached, start: !1, back: !1, goto: !1, next: !1, end: !1, }, logItems: o, }; this.channel?.emit(yn.SYNC, d); return; } let l = o.some((d) => d.status === "done" || d.status === "error"), c = { controlStates: { detached: this.detached, start: l, back: l, goto: !0, next: a, end: a, }, logItems: o, pausedAt: i, }; this.channel?.emit(yn.SYNC, c); }, "synchronize"); this.setState( t, ({ syncTimeout: n }) => ( clearTimeout(n), { syncTimeout: setTimeout(r, 0) } ), ); } }; s(OT, "Instrumenter"); var xz = OT; function zo(e, t = {}) { try { let r = !1, n = !1; return ( Ae.window?.location?.search?.includes("instrument=true") ? (r = !0) : Ae.window?.location?.search?.includes("instrument=false") && (n = !0), (Ae.window?.parent === Ae.window && !r) || n ? e : (Ae.window && !Ae.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ && (Ae.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new xz()), (Ae.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument( e, t, )) ); } catch (r) { return (Mt.warn(r), e); } } s(zo, "instrument"); function DT(e, t) { let r = e; for (; r != null; ) { let n = Object.getOwnPropertyDescriptor(r, t); if (n) return n; r = Object.getPrototypeOf(r); } } s(DT, "getPropertyDescriptor"); function FT(e) { if (typeof e != "function") return !1; let t = Object.getOwnPropertyDescriptor(e, "prototype"); return t ? !t.writable : !1; } s(FT, "isClass"); var IT = Object.defineProperty, Pz = Object.getOwnPropertyNames, ce = s((e, t) => IT(e, "name", { value: t, configurable: !0 }), "__name"), Rz = s( (e, t) => s(function () { return ( t || (0, e[Pz(e)[0]])((t = { exports: {} }).exports, t), t.exports ); }, "__require"), "__commonJS", ), Xg = s((e, t) => { for (var r in t) IT(e, r, { get: t[r], enumerable: !0 }); }, "__export"), Tz = Rz({ "(disabled):util"() {} }), nn = {}; Xg(nn, { addChainableMethod: s(() => Uc, "addChainableMethod"), addLengthGuard: s(() => Jo, "addLengthGuard"), addMethod: s(() => Bc, "addMethod"), addProperty: s(() => Mc, "addProperty"), checkError: s(() => Cr, "checkError"), compareByInspect: s(() => Ki, "compareByInspect"), eql: s(() => kT, "eql"), expectTypes: s(() => rb, "expectTypes"), flag: s(() => He, "flag"), getActual: s(() => Es, "getActual"), getMessage: s(() => Ic, "getMessage"), getName: s(() => Cs, "getName"), getOperator: s(() => Gc, "getOperator"), getOwnEnumerableProperties: s(() => zc, "getOwnEnumerableProperties"), getOwnEnumerablePropertySymbols: s( () => Vc, "getOwnEnumerablePropertySymbols", ), getPathInfo: s(() => qc, "getPathInfo"), hasProperty: s(() => _s, "hasProperty"), inspect: s(() => at, "inspect"), isNaN: s(() => Ol, "isNaN"), isNumeric: s(() => zt, "isNumeric"), isProxyEnabled: s(() => Wo, "isProxyEnabled"), isRegExp: s(() => Yi, "isRegExp"), objDisplay: s(() => Wn, "objDisplay"), overwriteChainableMethod: s(() => Hc, "overwriteChainableMethod"), overwriteMethod: s(() => $c, "overwriteMethod"), overwriteProperty: s(() => Lc, "overwriteProperty"), proxify: s(() => Ha, "proxify"), test: s(() => Dc, "test"), transferFlags: s(() => qr, "transferFlags"), type: s(() => ht, "type"), }); var Cr = {}; Xg(Cr, { compatibleConstructor: s(() => Qg, "compatibleConstructor"), compatibleInstance: s(() => Yg, "compatibleInstance"), compatibleMessage: s(() => Zg, "compatibleMessage"), getConstructorName: s(() => eb, "getConstructorName"), getMessage: s(() => tb, "getMessage"), }); function vs(e) { return ( e instanceof Error || Object.prototype.toString.call(e) === "[object Error]" ); } s(vs, "isErrorInstance"); ce(vs, "isErrorInstance"); function Kg(e) { return Object.prototype.toString.call(e) === "[object RegExp]"; } s(Kg, "isRegExp"); ce(Kg, "isRegExp"); function Yg(e, t) { return vs(t) && e === t; } s(Yg, "compatibleInstance"); ce(Yg, "compatibleInstance"); function Qg(e, t) { return vs(t) ? e.constructor === t.constructor || e instanceof t.constructor : (typeof t == "object" || typeof t == "function") && t.prototype ? e.constructor === t || e instanceof t : !1; } s(Qg, "compatibleConstructor"); ce(Qg, "compatibleConstructor"); function Zg(e, t) { let r = typeof e == "string" ? e : e.message; return Kg(t) ? t.test(r) : typeof t == "string" ? r.indexOf(t) !== -1 : !1; } s(Zg, "compatibleMessage"); ce(Zg, "compatibleMessage"); function eb(e) { let t = e; return ( vs(e) ? (t = e.constructor.name) : typeof e == "function" && ((t = e.name), t === "" && (t = new e().name || t)), t ); } s(eb, "getConstructorName"); ce(eb, "getConstructorName"); function tb(e) { let t = ""; return ( e && e.message ? (t = e.message) : typeof e == "string" && (t = e), t ); } s(tb, "getMessage"); ce(tb, "getMessage"); function He(e, t, r) { var n = e.__flags || (e.__flags = Object.create(null)); if (arguments.length === 3) n[t] = r; else return n[t]; } s(He, "flag"); ce(He, "flag"); function Dc(e, t) { var r = He(e, "negate"), n = t[0]; return r ? !n : n; } s(Dc, "test"); ce(Dc, "test"); function ht(e) { if (typeof e > "u") return "undefined"; if (e === null) return "null"; let t = e[Symbol.toStringTag]; return typeof t == "string" ? t : Object.prototype.toString.call(e).slice(8, -1); } s(ht, "type"); ce(ht, "type"); var Oz = "captureStackTrace" in Error, ui, st = ((ui = class extends Error { message; get name() { return "AssertionError"; } get ok() { return !1; } constructor(e = "Unspecified AssertionError", t, r) { (super(e), (this.message = e), Oz && Error.captureStackTrace(this, r || ui)); for (let n in t) n in this || (this[n] = t[n]); } toJSON(e) { return { ...this, name: this.name, message: this.message, ok: !1, stack: e !== !1 ? this.stack : void 0, }; } }), s(ui, "_AssertionError"), ce(ui, "AssertionError"), ui); function rb(e, t) { var r = He(e, "message"), n = He(e, "ssfi"); ((r = r ? r + ": " : ""), (e = He(e, "object")), (t = t.map(function (i) { return i.toLowerCase(); })), t.sort()); var a = t .map(function (i, u) { var l = ~["a", "e", "i", "o", "u"].indexOf(i.charAt(0)) ? "an" : "a", c = t.length > 1 && u === t.length - 1 ? "or " : ""; return c + l + " " + i; }) .join(", "), o = ht(e).toLowerCase(); if ( !t.some(function (i) { return o === i; }) ) throw new st( r + "object tested must be " + a + ", but " + o + " given", void 0, n, ); } s(rb, "expectTypes"); ce(rb, "expectTypes"); function Es(e, t) { return t.length > 4 ? t[4] : e._obj; } s(Es, "getActual"); ce(Es, "getActual"); var w_ = { bold: ["1", "22"], dim: ["2", "22"], italic: ["3", "23"], underline: ["4", "24"], inverse: ["7", "27"], hidden: ["8", "28"], strike: ["9", "29"], black: ["30", "39"], red: ["31", "39"], green: ["32", "39"], yellow: ["33", "39"], blue: ["34", "39"], magenta: ["35", "39"], cyan: ["36", "39"], white: ["37", "39"], brightblack: ["30;1", "39"], brightred: ["31;1", "39"], brightgreen: ["32;1", "39"], brightyellow: ["33;1", "39"], brightblue: ["34;1", "39"], brightmagenta: ["35;1", "39"], brightcyan: ["36;1", "39"], brightwhite: ["37;1", "39"], grey: ["90", "39"], }, Dz = { special: "cyan", number: "yellow", bigint: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", symbol: "green", date: "magenta", regexp: "red", }, Po = "…"; function nb(e, t) { let r = w_[Dz[t]] || w_[t] || ""; return r ? `\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m` : String(e); } s(nb, "colorise"); ce(nb, "colorise"); function ab( { showHidden: e = !1, depth: t = 2, colors: r = !1, customInspect: n = !0, showProxy: a = !1, maxArrayLength: o = 1 / 0, breakLength: i = 1 / 0, seen: u = [], truncate: l = 1 / 0, stylize: c = String, } = {}, d, ) { let p = { showHidden: !!e, depth: Number(t), colors: !!r, customInspect: !!n, showProxy: !!a, maxArrayLength: Number(o), breakLength: Number(i), truncate: Number(l), seen: u, inspect: d, stylize: c, }; return (p.colors && (p.stylize = nb), p); } s(ab, "normaliseOptions"); ce(ab, "normaliseOptions"); function ob(e) { return e >= "\uD800" && e <= "\uDBFF"; } s(ob, "isHighSurrogate"); ce(ob, "isHighSurrogate"); function cn(e, t, r = Po) { e = String(e); let n = r.length, a = e.length; if (n > t && a > n) return r; if (a > t && a > n) { let o = t - n; return (o > 0 && ob(e[o - 1]) && (o = o - 1), `${e.slice(0, o)}${r}`); } return e; } s(cn, "truncate"); ce(cn, "truncate"); function Pr(e, t, r, n = ", ") { r = r || t.inspect; let a = e.length; if (a === 0) return ""; let o = t.truncate, i = "", u = "", l = ""; for (let c = 0; c < a; c += 1) { let d = c + 1 === e.length, p = c + 2 === e.length; l = `${Po}(${e.length - c})`; let f = e[c]; t.truncate = o - i.length - (d ? 0 : n.length); let h = u || r(f, t) + (d ? "" : n), m = i.length + h.length, y = m + l.length; if ( (d && m > o && i.length + l.length <= o) || (!d && !p && y > o) || ((u = d ? "" : r(e[c + 1], t) + (p ? "" : n)), !d && p && y > o && m + u.length > o) ) break; if (((i += h), !d && !p && m + u.length >= o)) { l = `${Po}(${e.length - c - 1})`; break; } l = ""; } return `${i}${l}`; } s(Pr, "inspectList"); ce(Pr, "inspectList"); function ib(e) { return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? e : JSON.stringify(e) .replace(/'/g, "\\'") .replace(/\\"/g, '"') .replace(/(^"|"$)/g, "'"); } s(ib, "quoteComplexKey"); ce(ib, "quoteComplexKey"); function Ta([e, t], r) { return ( (r.truncate -= 2), typeof e == "string" ? (e = ib(e)) : typeof e != "number" && (e = `[${r.inspect(e, r)}]`), (r.truncate -= e.length), (t = r.inspect(t, r)), `${e}: ${t}` ); } s(Ta, "inspectProperty"); ce(Ta, "inspectProperty"); function sb(e, t) { let r = Object.keys(e).slice(e.length); if (!e.length && !r.length) return "[]"; t.truncate -= 4; let n = Pr(e, t); t.truncate -= n.length; let a = ""; return ( r.length && (a = Pr( r.map((o) => [o, e[o]]), t, Ta, )), `[ ${n}${a ? `, ${a}` : ""} ]` ); } s(sb, "inspectArray"); ce(sb, "inspectArray"); var Fz = ce( (e) => typeof Buffer == "function" && e instanceof Buffer ? "Buffer" : e[Symbol.toStringTag] ? e[Symbol.toStringTag] : e.constructor.name, "getArrayName", ); function Br(e, t) { let r = Fz(e); t.truncate -= r.length + 4; let n = Object.keys(e).slice(e.length); if (!e.length && !n.length) return `${r}[]`; let a = ""; for (let i = 0; i < e.length; i++) { let u = `${t.stylize(cn(e[i], t.truncate), "number")}${i === e.length - 1 ? "" : ", "}`; if (((t.truncate -= u.length), e[i] !== e.length && t.truncate <= 3)) { a += `${Po}(${e.length - e[i] + 1})`; break; } a += u; } let o = ""; return ( n.length && (o = Pr( n.map((i) => [i, e[i]]), t, Ta, )), `${r}[ ${a}${o ? `, ${o}` : ""} ]` ); } s(Br, "inspectTypedArray"); ce(Br, "inspectTypedArray"); function ub(e, t) { let r = e.toJSON(); if (r === null) return "Invalid Date"; let n = r.split("T"), a = n[0]; return t.stylize(`${a}T${cn(n[1], t.truncate - a.length - 1)}`, "date"); } s(ub, "inspectDate"); ce(ub, "inspectDate"); function yl(e, t) { let r = e[Symbol.toStringTag] || "Function", n = e.name; return n ? t.stylize(`[${r} ${cn(n, t.truncate - 11)}]`, "special") : t.stylize(`[${r}]`, "special"); } s(yl, "inspectFunction"); ce(yl, "inspectFunction"); function lb([e, t], r) { return ( (r.truncate -= 4), (e = r.inspect(e, r)), (r.truncate -= e.length), (t = r.inspect(t, r)), `${e} => ${t}` ); } s(lb, "inspectMapEntry"); ce(lb, "inspectMapEntry"); function cb(e) { let t = []; return ( e.forEach((r, n) => { t.push([n, r]); }), t ); } s(cb, "mapToEntries"); ce(cb, "mapToEntries"); function db(e, t) { return e.size - 1 <= 0 ? "Map{}" : ((t.truncate -= 7), `Map{ ${Pr(cb(e), t, lb)} }`); } s(db, "inspectMap"); ce(db, "inspectMap"); var Iz = Number.isNaN || ((e) => e !== e); function gl(e, t) { return Iz(e) ? t.stylize("NaN", "number") : e === 1 / 0 ? t.stylize("Infinity", "number") : e === -1 / 0 ? t.stylize("-Infinity", "number") : e === 0 ? t.stylize(1 / e === 1 / 0 ? "+0" : "-0", "number") : t.stylize(cn(String(e), t.truncate), "number"); } s(gl, "inspectNumber"); ce(gl, "inspectNumber"); function bl(e, t) { let r = cn(e.toString(), t.truncate - 1); return (r !== Po && (r += "n"), t.stylize(r, "bigint")); } s(bl, "inspectBigInt"); ce(bl, "inspectBigInt"); function pb(e, t) { let r = e.toString().split("/")[2], n = t.truncate - (2 + r.length), a = e.source; return t.stylize(`/${cn(a, n)}/${r}`, "regexp"); } s(pb, "inspectRegExp"); ce(pb, "inspectRegExp"); function fb(e) { let t = []; return ( e.forEach((r) => { t.push(r); }), t ); } s(fb, "arrayFromSet"); ce(fb, "arrayFromSet"); function hb(e, t) { return e.size === 0 ? "Set{}" : ((t.truncate -= 7), `Set{ ${Pr(fb(e), t)} }`); } s(hb, "inspectSet"); ce(hb, "inspectSet"); var A_ = new RegExp( "['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g", ), Nz = { "\b": "\\b", " ": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", "'": "\\'", "\\": "\\\\", }, jz = 16; function mb(e) { return Nz[e] || `\\u${`0000${e.charCodeAt(0).toString(jz)}`.slice(-4)}`; } s(mb, "escape"); ce(mb, "escape"); function vl(e, t) { return ( A_.test(e) && (e = e.replace(A_, mb)), t.stylize(`'${cn(e, t.truncate - 2)}'`, "string") ); } s(vl, "inspectString"); ce(vl, "inspectString"); function El(e) { return "description" in Symbol.prototype ? e.description ? `Symbol(${e.description})` : "Symbol()" : e.toString(); } s(El, "inspectSymbol"); ce(El, "inspectSymbol"); var NT = ce(() => "Promise{…}", "getPromiseValue"); try { let { getPromiseDetails: e, kPending: t, kRejected: r, } = process.binding("util"); Array.isArray(e(Promise.resolve())) && (NT = ce((n, a) => { let [o, i] = e(n); return o === t ? "Promise{}" : `Promise${o === r ? "!" : ""}{${a.inspect(i, a)}}`; }, "getPromiseValue")); } catch {} var kz = NT; function yo(e, t) { let r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e) : []; if (r.length === 0 && n.length === 0) return "{}"; if (((t.truncate -= 4), (t.seen = t.seen || []), t.seen.includes(e))) return "[Circular]"; t.seen.push(e); let a = Pr( r.map((u) => [u, e[u]]), t, Ta, ), o = Pr( n.map((u) => [u, e[u]]), t, Ta, ); t.seen.pop(); let i = ""; return (a && o && (i = ", "), `{ ${a}${i}${o} }`); } s(yo, "inspectObject"); ce(yo, "inspectObject"); var hp = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1; function yb(e, t) { let r = ""; return ( hp && hp in e && (r = e[hp]), (r = r || e.constructor.name), (!r || r === "_class") && (r = ""), (t.truncate -= r.length), `${r}${yo(e, t)}` ); } s(yb, "inspectClass"); ce(yb, "inspectClass"); function gb(e, t) { return e.length === 0 ? "Arguments[]" : ((t.truncate -= 13), `Arguments[ ${Pr(e, t)} ]`); } s(gb, "inspectArguments"); ce(gb, "inspectArguments"); var qz = [ "stack", "line", "column", "name", "message", "fileName", "lineNumber", "columnNumber", "number", "description", "cause", ]; function bb(e, t) { let r = Object.getOwnPropertyNames(e).filter((i) => qz.indexOf(i) === -1), n = e.name; t.truncate -= n.length; let a = ""; if ( (typeof e.message == "string" ? (a = cn(e.message, t.truncate)) : r.unshift("message"), (a = a ? `: ${a}` : ""), (t.truncate -= a.length + 5), (t.seen = t.seen || []), t.seen.includes(e)) ) return "[Circular]"; t.seen.push(e); let o = Pr( r.map((i) => [i, e[i]]), t, Ta, ); return `${n}${a}${o ? ` { ${o} }` : ""}`; } s(bb, "inspectObject2"); ce(bb, "inspectObject"); function vb([e, t], r) { return ( (r.truncate -= 3), t ? `${r.stylize(String(e), "yellow")}=${r.stylize(`"${t}"`, "string")}` : `${r.stylize(String(e), "yellow")}` ); } s(vb, "inspectAttribute"); ce(vb, "inspectAttribute"); function Wi(e, t) { return Pr( e, t, Fc, ` `, ); } s(Wi, "inspectHTMLCollection"); ce(Wi, "inspectHTMLCollection"); function Fc(e, t) { let r = e.getAttributeNames(), n = e.tagName.toLowerCase(), a = t.stylize(`<${n}`, "special"), o = t.stylize(">", "special"), i = t.stylize(``, "special"); t.truncate -= n.length * 2 + 5; let u = ""; (r.length > 0 && ((u += " "), (u += Pr( r.map((d) => [d, e.getAttribute(d)]), t, vb, " ", ))), (t.truncate -= u.length)); let l = t.truncate, c = Wi(e.children, t); return ( c && c.length > l && (c = `${Po}(${e.children.length})`), `${a}${u}${o}${c}${i}` ); } s(Fc, "inspectHTML"); ce(Fc, "inspectHTML"); var Mz = typeof Symbol == "function" && typeof Symbol.for == "function", mp = Mz ? Symbol.for("chai/inspect") : "@@chai/inspect", uo = !1; try { let e = Tz(); uo = e.inspect ? e.inspect.custom : !1; } catch { uo = !1; } var S_ = new WeakMap(), x_ = {}, P_ = { undefined: s((e, t) => t.stylize("undefined", "undefined"), "undefined"), null: s((e, t) => t.stylize("null", "null"), "null"), boolean: s((e, t) => t.stylize(String(e), "boolean"), "boolean"), Boolean: s((e, t) => t.stylize(String(e), "boolean"), "Boolean"), number: gl, Number: gl, bigint: bl, BigInt: bl, string: vl, String: vl, function: yl, Function: yl, symbol: El, Symbol: El, Array: sb, Date: ub, Map: db, Set: hb, RegExp: pb, Promise: kz, WeakSet: s((e, t) => t.stylize("WeakSet{…}", "special"), "WeakSet"), WeakMap: s((e, t) => t.stylize("WeakMap{…}", "special"), "WeakMap"), Arguments: gb, Int8Array: Br, Uint8Array: Br, Uint8ClampedArray: Br, Int16Array: Br, Uint16Array: Br, Int32Array: Br, Uint32Array: Br, Float32Array: Br, Float64Array: Br, Generator: s(() => "", "Generator"), DataView: s(() => "", "DataView"), ArrayBuffer: s(() => "", "ArrayBuffer"), Error: bb, HTMLCollection: Wi, NodeList: Wi, }, Bz = ce( (e, t, r) => mp in e && typeof e[mp] == "function" ? e[mp](t) : uo && uo in e && typeof e[uo] == "function" ? e[uo](t.depth, t) : "inspect" in e && typeof e.inspect == "function" ? e.inspect(t.depth, t) : "constructor" in e && S_.has(e.constructor) ? S_.get(e.constructor)(e, t) : x_[r] ? x_[r](e, t) : "", "inspectCustom", ), Lz = Object.prototype.toString; function Ji(e, t = {}) { let r = ab(t, Ji), { customInspect: n } = r, a = e === null ? "null" : typeof e; if ((a === "object" && (a = Lz.call(e).slice(8, -1)), a in P_)) return P_[a](e, r); if (n && e) { let i = Bz(e, r, a); if (i) return typeof i == "string" ? i : Ji(i, r); } let o = e ? Object.getPrototypeOf(e) : !1; return o === Object.prototype || o === null ? yo(e, r) : e && typeof HTMLElement == "function" && e instanceof HTMLElement ? Fc(e, r) : "constructor" in e ? e.constructor !== Object ? yb(e, r) : yo(e, r) : e === Object(e) ? yo(e, r) : r.stylize(String(e), a); } s(Ji, "inspect"); ce(Ji, "inspect"); var sr = { includeStack: !1, showDiff: !0, truncateThreshold: 40, useProxy: !0, proxyExcludedKeys: ["then", "catch", "inspect", "toJSON"], deepEqual: null, }; function at(e, t, r, n) { var a = { colors: n, depth: typeof r > "u" ? 2 : r, showHidden: t, truncate: sr.truncateThreshold ? sr.truncateThreshold : 1 / 0, }; return Ji(e, a); } s(at, "inspect2"); ce(at, "inspect"); function Wn(e) { var t = at(e), r = Object.prototype.toString.call(e); if (sr.truncateThreshold && t.length >= sr.truncateThreshold) { if (r === "[object Function]") return !e.name || e.name === "" ? "[Function]" : "[Function: " + e.name + "]"; if (r === "[object Array]") return "[ Array(" + e.length + ") ]"; if (r === "[object Object]") { var n = Object.keys(e), a = n.length > 2 ? n.splice(0, 2).join(", ") + ", ..." : n.join(", "); return "{ Object (" + a + ") }"; } else return t; } else return t; } s(Wn, "objDisplay"); ce(Wn, "objDisplay"); function Ic(e, t) { var r = He(e, "negate"), n = He(e, "object"), a = t[3], o = Es(e, t), i = r ? t[2] : t[1], u = He(e, "message"); return ( typeof i == "function" && (i = i()), (i = i || ""), (i = i .replace(/#\{this\}/g, function () { return Wn(n); }) .replace(/#\{act\}/g, function () { return Wn(o); }) .replace(/#\{exp\}/g, function () { return Wn(a); })), u ? u + ": " + i : i ); } s(Ic, "getMessage2"); ce(Ic, "getMessage"); function qr(e, t, r) { var n = e.__flags || (e.__flags = Object.create(null)); (t.__flags || (t.__flags = Object.create(null)), (r = arguments.length === 3 ? r : !0)); for (var a in n) (r || (a !== "object" && a !== "ssfi" && a !== "lockSsfi" && a != "message")) && (t.__flags[a] = n[a]); } s(qr, "transferFlags"); ce(qr, "transferFlags"); function _l(e) { if (typeof e > "u") return "undefined"; if (e === null) return "null"; let t = e[Symbol.toStringTag]; return typeof t == "string" ? t : Object.prototype.toString.call(e).slice(8, -1); } s(_l, "type2"); ce(_l, "type"); function Nc() { this._key = "chai/deep-eql__" + Math.random() + Date.now(); } s(Nc, "FakeMap"); ce(Nc, "FakeMap"); Nc.prototype = { get: ce( s(function (e) { return e[this._key]; }, "get"), "get", ), set: ce( s(function (e, t) { Object.isExtensible(e) && Object.defineProperty(e, this._key, { value: t, configurable: !0 }); }, "set"), "set", ), }; var jT = typeof WeakMap == "function" ? WeakMap : Nc; function Cl(e, t, r) { if (!r || ta(e) || ta(t)) return null; var n = r.get(e); if (n) { var a = n.get(t); if (typeof a == "boolean") return a; } return null; } s(Cl, "memoizeCompare"); ce(Cl, "memoizeCompare"); function lo(e, t, r, n) { if (!(!r || ta(e) || ta(t))) { var a = r.get(e); a ? a.set(t, n) : ((a = new jT()), a.set(t, n), r.set(e, a)); } } s(lo, "memoizeSet"); ce(lo, "memoizeSet"); var kT = Go; function Go(e, t, r) { if (r && r.comparator) return wl(e, t, r); var n = jc(e, t); return n !== null ? n : wl(e, t, r); } s(Go, "deepEqual"); ce(Go, "deepEqual"); function jc(e, t) { return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t ? !0 : ta(e) || ta(t) ? !1 : null; } s(jc, "simpleEqual"); ce(jc, "simpleEqual"); function wl(e, t, r) { ((r = r || {}), (r.memoize = r.memoize === !1 ? !1 : r.memoize || new jT())); var n = r && r.comparator, a = Cl(e, t, r.memoize); if (a !== null) return a; var o = Cl(t, e, r.memoize); if (o !== null) return o; if (n) { var i = n(e, t); if (i === !1 || i === !0) return (lo(e, t, r.memoize, i), i); var u = jc(e, t); if (u !== null) return u; } var l = _l(e); if (l !== _l(t)) return (lo(e, t, r.memoize, !1), !1); lo(e, t, r.memoize, !0); var c = Eb(e, t, l, r); return (lo(e, t, r.memoize, c), c); } s(wl, "extensiveDeepEqual"); ce(wl, "extensiveDeepEqual"); function Eb(e, t, r, n) { switch (r) { case "String": case "Number": case "Boolean": case "Date": return Go(e.valueOf(), t.valueOf()); case "Promise": case "Symbol": case "function": case "WeakMap": case "WeakSet": return e === t; case "Error": return kc(e, t, ["name", "message", "code"], n); case "Arguments": case "Int8Array": case "Uint8Array": case "Uint8ClampedArray": case "Int16Array": case "Uint16Array": case "Int32Array": case "Uint32Array": case "Float32Array": case "Float64Array": case "Array": return On(e, t, n); case "RegExp": return _b(e, t); case "Generator": return Cb(e, t, n); case "DataView": return On(new Uint8Array(e.buffer), new Uint8Array(t.buffer), n); case "ArrayBuffer": return On(new Uint8Array(e), new Uint8Array(t), n); case "Set": return Al(e, t, n); case "Map": return Al(e, t, n); case "Temporal.PlainDate": case "Temporal.PlainTime": case "Temporal.PlainDateTime": case "Temporal.Instant": case "Temporal.ZonedDateTime": case "Temporal.PlainYearMonth": case "Temporal.PlainMonthDay": return e.equals(t); case "Temporal.Duration": return e.total("nanoseconds") === t.total("nanoseconds"); case "Temporal.TimeZone": case "Temporal.Calendar": return e.toString() === t.toString(); default: return Ab(e, t, n); } } s(Eb, "extensiveDeepEqualByType"); ce(Eb, "extensiveDeepEqualByType"); function _b(e, t) { return e.toString() === t.toString(); } s(_b, "regexpEqual"); ce(_b, "regexpEqual"); function Al(e, t, r) { try { if (e.size !== t.size) return !1; if (e.size === 0) return !0; } catch { return !1; } var n = [], a = []; return ( e.forEach( ce( s(function (o, i) { n.push([o, i]); }, "gatherEntries"), "gatherEntries", ), ), t.forEach( ce( s(function (o, i) { a.push([o, i]); }, "gatherEntries"), "gatherEntries", ), ), On(n.sort(), a.sort(), r) ); } s(Al, "entriesEqual"); ce(Al, "entriesEqual"); function On(e, t, r) { var n = e.length; if (n !== t.length) return !1; if (n === 0) return !0; for (var a = -1; ++a < n; ) if (Go(e[a], t[a], r) === !1) return !1; return !0; } s(On, "iterableEqual"); ce(On, "iterableEqual"); function Cb(e, t, r) { return On(Xi(e), Xi(t), r); } s(Cb, "generatorEqual"); ce(Cb, "generatorEqual"); function wb(e) { return ( typeof Symbol < "u" && typeof e == "object" && typeof Symbol.iterator < "u" && typeof e[Symbol.iterator] == "function" ); } s(wb, "hasIteratorFunction"); ce(wb, "hasIteratorFunction"); function Sl(e) { if (wb(e)) try { return Xi(e[Symbol.iterator]()); } catch { return []; } return []; } s(Sl, "getIteratorEntries"); ce(Sl, "getIteratorEntries"); function Xi(e) { for (var t = e.next(), r = [t.value]; t.done === !1; ) ((t = e.next()), r.push(t.value)); return r; } s(Xi, "getGeneratorEntries"); ce(Xi, "getGeneratorEntries"); function xl(e) { var t = []; for (var r in e) t.push(r); return t; } s(xl, "getEnumerableKeys"); ce(xl, "getEnumerableKeys"); function Pl(e) { for ( var t = [], r = Object.getOwnPropertySymbols(e), n = 0; n < r.length; n += 1 ) { var a = r[n]; Object.getOwnPropertyDescriptor(e, a).enumerable && t.push(a); } return t; } s(Pl, "getEnumerableSymbols"); ce(Pl, "getEnumerableSymbols"); function kc(e, t, r, n) { var a = r.length; if (a === 0) return !0; for (var o = 0; o < a; o += 1) if (Go(e[r[o]], t[r[o]], n) === !1) return !1; return !0; } s(kc, "keysEqual"); ce(kc, "keysEqual"); function Ab(e, t, r) { var n = xl(e), a = xl(t), o = Pl(e), i = Pl(t); if (((n = n.concat(o)), (a = a.concat(i)), n.length && n.length === a.length)) return On(Rl(n).sort(), Rl(a).sort()) === !1 ? !1 : kc(e, t, n, r); var u = Sl(e), l = Sl(t); return u.length && u.length === l.length ? (u.sort(), l.sort(), On(u, l, r)) : n.length === 0 && u.length === 0 && a.length === 0 && l.length === 0; } s(Ab, "objectEqual"); ce(Ab, "objectEqual"); function ta(e) { return e === null || typeof e != "object"; } s(ta, "isPrimitive"); ce(ta, "isPrimitive"); function Rl(e) { return e.map( ce( s(function (t) { return typeof t == "symbol" ? t.toString() : t; }, "mapSymbol"), "mapSymbol", ), ); } s(Rl, "mapSymbols"); ce(Rl, "mapSymbols"); function _s(e, t) { return typeof e > "u" || e === null ? !1 : t in Object(e); } s(_s, "hasProperty"); ce(_s, "hasProperty"); function Sb(e) { return e .replace(/([^\\])\[/g, "$1.[") .match(/(\\\.|[^.]+?)+/g) .map((t) => { if (t === "constructor" || t === "__proto__" || t === "prototype") return {}; let r = /^\[(\d+)\]$/.exec(t), n = null; return ( r ? (n = { i: parseFloat(r[1]) }) : (n = { p: t.replace(/\\([.[\]])/g, "$1") }), n ); }); } s(Sb, "parsePath"); ce(Sb, "parsePath"); function Tl(e, t, r) { let n = e, a = null; r = typeof r > "u" ? t.length : r; for (let o = 0; o < r; o++) { let i = t[o]; n && (typeof i.p > "u" ? (n = n[i.i]) : (n = n[i.p]), o === r - 1 && (a = n)); } return a; } s(Tl, "internalGetPathValue"); ce(Tl, "internalGetPathValue"); function qc(e, t) { let r = Sb(t), n = r[r.length - 1], a = { parent: r.length > 1 ? Tl(e, r, r.length - 1) : e, name: n.p || n.i, value: Tl(e, r), }; return ((a.exists = _s(a.parent, a.name)), a); } s(qc, "getPathInfo"); ce(qc, "getPathInfo"); function X(e, t, r, n) { return ( He(this, "ssfi", r || X), He(this, "lockSsfi", n), He(this, "object", e), He(this, "message", t), He(this, "eql", sr.deepEqual || kT), Ha(this) ); } s(X, "Assertion"); ce(X, "Assertion"); Object.defineProperty(X, "includeStack", { get: s(function () { return ( console.warn( "Assertion.includeStack is deprecated, use chai.config.includeStack instead.", ), sr.includeStack ); }, "get"), set: s(function (e) { (console.warn( "Assertion.includeStack is deprecated, use chai.config.includeStack instead.", ), (sr.includeStack = e)); }, "set"), }); Object.defineProperty(X, "showDiff", { get: s(function () { return ( console.warn( "Assertion.showDiff is deprecated, use chai.config.showDiff instead.", ), sr.showDiff ); }, "get"), set: s(function (e) { (console.warn( "Assertion.showDiff is deprecated, use chai.config.showDiff instead.", ), (sr.showDiff = e)); }, "set"), }); X.addProperty = function (e, t) { Mc(this.prototype, e, t); }; X.addMethod = function (e, t) { Bc(this.prototype, e, t); }; X.addChainableMethod = function (e, t, r) { Uc(this.prototype, e, t, r); }; X.overwriteProperty = function (e, t) { Lc(this.prototype, e, t); }; X.overwriteMethod = function (e, t) { $c(this.prototype, e, t); }; X.overwriteChainableMethod = function (e, t, r) { Hc(this.prototype, e, t, r); }; X.prototype.assert = function (e, t, r, n, a, o) { var i = Dc(this, arguments); if ( (o !== !1 && (o = !0), n === void 0 && a === void 0 && (o = !1), sr.showDiff !== !0 && (o = !1), !i) ) { t = Ic(this, arguments); var u = Es(this, arguments), l = { actual: u, expected: n, showDiff: o }, c = Gc(this, arguments); throw ( c && (l.operator = c), new st(t, l, sr.includeStack ? this.assert : He(this, "ssfi")) ); } }; Object.defineProperty(X.prototype, "_obj", { get: s(function () { return He(this, "object"); }, "get"), set: s(function (e) { He(this, "object", e); }, "set"), }); function Wo() { return sr.useProxy && typeof Proxy < "u" && typeof Reflect < "u"; } s(Wo, "isProxyEnabled"); ce(Wo, "isProxyEnabled"); function Mc(e, t, r) { ((r = r === void 0 ? function () {} : r), Object.defineProperty(e, t, { get: ce( s(function n() { !Wo() && !He(this, "lockSsfi") && He(this, "ssfi", n); var a = r.call(this); if (a !== void 0) return a; var o = new X(); return (qr(this, o), o); }, "propertyGetter"), "propertyGetter", ), configurable: !0, })); } s(Mc, "addProperty"); ce(Mc, "addProperty"); var $z = Object.getOwnPropertyDescriptor(function () {}, "length"); function Jo(e, t, r) { return ( $z.configurable && Object.defineProperty(e, "length", { get: s(function () { throw Error( r ? "Invalid Chai property: " + t + '.length. Due to a compatibility issue, "length" cannot directly follow "' + t + '". Use "' + t + '.lengthOf" instead.' : "Invalid Chai property: " + t + '.length. See docs for proper usage of "' + t + '".', ); }, "get"), }), e ); } s(Jo, "addLengthGuard"); ce(Jo, "addLengthGuard"); function xb(e) { var t = Object.getOwnPropertyNames(e); function r(a) { t.indexOf(a) === -1 && t.push(a); } (s(r, "addProperty2"), ce(r, "addProperty")); for (var n = Object.getPrototypeOf(e); n !== null; ) (Object.getOwnPropertyNames(n).forEach(r), (n = Object.getPrototypeOf(n))); return t; } s(xb, "getProperties"); ce(xb, "getProperties"); var R_ = ["__flags", "__methods", "_obj", "assert"]; function Ha(e, t) { return Wo() ? new Proxy(e, { get: ce( s(function r(n, a) { if ( typeof a == "string" && sr.proxyExcludedKeys.indexOf(a) === -1 && !Reflect.has(n, a) ) { if (t) throw Error( "Invalid Chai property: " + t + "." + a + '. See docs for proper usage of "' + t + '".', ); var o = null, i = 4; throw ( xb(n).forEach(function (u) { if ( !Object.prototype.hasOwnProperty(u) && R_.indexOf(u) === -1 ) { var l = Pb(a, u, i); l < i && ((o = u), (i = l)); } }), Error( o !== null ? "Invalid Chai property: " + a + '. Did you mean "' + o + '"?' : "Invalid Chai property: " + a, ) ); } return ( R_.indexOf(a) === -1 && !He(n, "lockSsfi") && He(n, "ssfi", r), Reflect.get(n, a) ); }, "proxyGetter"), "proxyGetter", ), }) : e; } s(Ha, "proxify"); ce(Ha, "proxify"); function Pb(e, t, r) { if (Math.abs(e.length - t.length) >= r) return r; var n = []; for (let o = 0; o <= e.length; o++) ((n[o] = Array(t.length + 1).fill(0)), (n[o][0] = o)); for (let o = 0; o < t.length; o++) n[0][o] = o; for (let o = 1; o <= e.length; o++) { var a = e.charCodeAt(o - 1); for (let i = 1; i <= t.length; i++) { if (Math.abs(o - i) >= r) { n[o][i] = r; continue; } n[o][i] = Math.min( n[o - 1][i] + 1, n[o][i - 1] + 1, n[o - 1][i - 1] + (a === t.charCodeAt(i - 1) ? 0 : 1), ); } } return n[e.length][t.length]; } s(Pb, "stringDistanceCapped"); ce(Pb, "stringDistanceCapped"); function Bc(e, t, r) { var n = ce(function () { He(this, "lockSsfi") || He(this, "ssfi", n); var a = r.apply(this, arguments); if (a !== void 0) return a; var o = new X(); return (qr(this, o), o); }, "methodWrapper"); (Jo(n, t, !1), (e[t] = Ha(n, t))); } s(Bc, "addMethod"); ce(Bc, "addMethod"); function Lc(e, t, r) { var n = Object.getOwnPropertyDescriptor(e, t), a = ce(function () {}, "_super"); (n && typeof n.get == "function" && (a = n.get), Object.defineProperty(e, t, { get: ce( s(function o() { !Wo() && !He(this, "lockSsfi") && He(this, "ssfi", o); var i = He(this, "lockSsfi"); He(this, "lockSsfi", !0); var u = r(a).call(this); if ((He(this, "lockSsfi", i), u !== void 0)) return u; var l = new X(); return (qr(this, l), l); }, "overwritingPropertyGetter"), "overwritingPropertyGetter", ), configurable: !0, })); } s(Lc, "overwriteProperty"); ce(Lc, "overwriteProperty"); function $c(e, t, r) { var n = e[t], a = ce(function () { throw new Error(t + " is not a function"); }, "_super"); n && typeof n == "function" && (a = n); var o = ce(function () { He(this, "lockSsfi") || He(this, "ssfi", o); var i = He(this, "lockSsfi"); He(this, "lockSsfi", !0); var u = r(a).apply(this, arguments); if ((He(this, "lockSsfi", i), u !== void 0)) return u; var l = new X(); return (qr(this, l), l); }, "overwritingMethodWrapper"); (Jo(o, t, !1), (e[t] = Ha(o, t))); } s($c, "overwriteMethod"); ce($c, "overwriteMethod"); var Uz = typeof Object.setPrototypeOf == "function", T_ = ce(function () {}, "testFn"), Hz = Object.getOwnPropertyNames(T_).filter(function (e) { var t = Object.getOwnPropertyDescriptor(T_, e); return typeof t != "object" ? !0 : !t.configurable; }), Vz = Function.prototype.call, zz = Function.prototype.apply; function Uc(e, t, r, n) { typeof n != "function" && (n = ce(function () {}, "chainingBehavior")); var a = { method: r, chainingBehavior: n }; (e.__methods || (e.__methods = {}), (e.__methods[t] = a), Object.defineProperty(e, t, { get: ce( s(function () { a.chainingBehavior.call(this); var o = ce(function () { He(this, "lockSsfi") || He(this, "ssfi", o); var l = a.method.apply(this, arguments); if (l !== void 0) return l; var c = new X(); return (qr(this, c), c); }, "chainableMethodWrapper"); if ((Jo(o, t, !0), Uz)) { var i = Object.create(this); ((i.call = Vz), (i.apply = zz), Object.setPrototypeOf(o, i)); } else { var u = Object.getOwnPropertyNames(e); u.forEach(function (l) { if (Hz.indexOf(l) === -1) { var c = Object.getOwnPropertyDescriptor(e, l); Object.defineProperty(o, l, c); } }); } return (qr(this, o), Ha(o)); }, "chainableMethodGetter"), "chainableMethodGetter", ), configurable: !0, })); } s(Uc, "addChainableMethod"); ce(Uc, "addChainableMethod"); function Hc(e, t, r, n) { var a = e.__methods[t], o = a.chainingBehavior; a.chainingBehavior = ce( s(function () { var u = n(o).call(this); if (u !== void 0) return u; var l = new X(); return (qr(this, l), l); }, "overwritingChainableMethodGetter"), "overwritingChainableMethodGetter", ); var i = a.method; a.method = ce( s(function () { var u = r(i).apply(this, arguments); if (u !== void 0) return u; var l = new X(); return (qr(this, l), l); }, "overwritingChainableMethodWrapper"), "overwritingChainableMethodWrapper", ); } s(Hc, "overwriteChainableMethod"); ce(Hc, "overwriteChainableMethod"); function Ki(e, t) { return at(e) < at(t) ? -1 : 1; } s(Ki, "compareByInspect"); ce(Ki, "compareByInspect"); function Vc(e) { return typeof Object.getOwnPropertySymbols != "function" ? [] : Object.getOwnPropertySymbols(e).filter(function (t) { return Object.getOwnPropertyDescriptor(e, t).enumerable; }); } s(Vc, "getOwnEnumerablePropertySymbols"); ce(Vc, "getOwnEnumerablePropertySymbols"); function zc(e) { return Object.keys(e).concat(Vc(e)); } s(zc, "getOwnEnumerableProperties"); ce(zc, "getOwnEnumerableProperties"); var Ol = Number.isNaN; function Rb(e) { var t = ht(e), r = ["Array", "Object", "Function"]; return r.indexOf(t) !== -1; } s(Rb, "isObjectType"); ce(Rb, "isObjectType"); function Gc(e, t) { var r = He(e, "operator"), n = He(e, "negate"), a = t[3], o = n ? t[2] : t[1]; if (r) return r; if ( (typeof o == "function" && (o = o()), (o = o || ""), !!o && !/\shave\s/.test(o)) ) { var i = Rb(a); return /\snot\s/.test(o) ? i ? "notDeepStrictEqual" : "notStrictEqual" : i ? "deepStrictEqual" : "strictEqual"; } } s(Gc, "getOperator"); ce(Gc, "getOperator"); function Cs(e) { return e.name; } s(Cs, "getName"); ce(Cs, "getName"); function Yi(e) { return Object.prototype.toString.call(e) === "[object RegExp]"; } s(Yi, "isRegExp2"); ce(Yi, "isRegExp"); function zt(e) { return ["Number", "BigInt"].includes(ht(e)); } s(zt, "isNumeric"); ce(zt, "isNumeric"); var { flag: ie } = nn; [ "to", "be", "been", "is", "and", "has", "have", "with", "that", "which", "at", "of", "same", "but", "does", "still", "also", ].forEach(function (e) { X.addProperty(e); }); X.addProperty("not", function () { ie(this, "negate", !0); }); X.addProperty("deep", function () { ie(this, "deep", !0); }); X.addProperty("nested", function () { ie(this, "nested", !0); }); X.addProperty("own", function () { ie(this, "own", !0); }); X.addProperty("ordered", function () { ie(this, "ordered", !0); }); X.addProperty("any", function () { (ie(this, "any", !0), ie(this, "all", !1)); }); X.addProperty("all", function () { (ie(this, "all", !0), ie(this, "any", !1)); }); var O_ = { function: [ "function", "asyncfunction", "generatorfunction", "asyncgeneratorfunction", ], asyncfunction: ["asyncfunction", "asyncgeneratorfunction"], generatorfunction: ["generatorfunction", "asyncgeneratorfunction"], asyncgeneratorfunction: ["asyncgeneratorfunction"], }; function Wc(e, t) { (t && ie(this, "message", t), (e = e.toLowerCase())); var r = ie(this, "object"), n = ~["a", "e", "i", "o", "u"].indexOf(e.charAt(0)) ? "an " : "a "; let a = ht(r).toLowerCase(); O_.function.includes(e) ? this.assert( O_[e].includes(a), "expected #{this} to be " + n + e, "expected #{this} not to be " + n + e, ) : this.assert( e === a, "expected #{this} to be " + n + e, "expected #{this} not to be " + n + e, ); } s(Wc, "an"); ce(Wc, "an"); X.addChainableMethod("an", Wc); X.addChainableMethod("a", Wc); function Tb(e, t) { return (Ol(e) && Ol(t)) || e === t; } s(Tb, "SameValueZero"); ce(Tb, "SameValueZero"); function Xo() { ie(this, "contains", !0); } s(Xo, "includeChainingBehavior"); ce(Xo, "includeChainingBehavior"); function Ko(e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ht(r).toLowerCase(), a = ie(this, "message"), o = ie(this, "negate"), i = ie(this, "ssfi"), u = ie(this, "deep"), l = u ? "deep " : "", c = u ? ie(this, "eql") : Tb; a = a ? a + ": " : ""; var d = !1; switch (n) { case "string": d = r.indexOf(e) !== -1; break; case "weakset": if (u) throw new st(a + "unable to use .deep.include with WeakSet", void 0, i); d = r.has(e); break; case "map": r.forEach(function (m) { d = d || c(m, e); }); break; case "set": u ? r.forEach(function (m) { d = d || c(m, e); }) : (d = r.has(e)); break; case "array": u ? (d = r.some(function (m) { return c(m, e); })) : (d = r.indexOf(e) !== -1); break; default: if (e !== Object(e)) throw new st( a + "the given combination of arguments (" + n + " and " + ht(e).toLowerCase() + ") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a " + ht(e).toLowerCase(), void 0, i, ); var p = Object.keys(e), f = null, h = 0; if ( (p.forEach(function (m) { var y = new X(r); if ((qr(this, y, !0), ie(y, "lockSsfi", !0), !o || p.length === 1)) { y.property(m, e[m]); return; } try { y.property(m, e[m]); } catch (b) { if (!Cr.compatibleConstructor(b, st)) throw b; (f === null && (f = b), h++); } }, this), o && p.length > 1 && h === p.length) ) throw f; return; } this.assert( d, "expected #{this} to " + l + "include " + at(e), "expected #{this} to not " + l + "include " + at(e), ); } s(Ko, "include"); ce(Ko, "include"); X.addChainableMethod("include", Ko, Xo); X.addChainableMethod("contain", Ko, Xo); X.addChainableMethod("contains", Ko, Xo); X.addChainableMethod("includes", Ko, Xo); X.addProperty("ok", function () { this.assert( ie(this, "object"), "expected #{this} to be truthy", "expected #{this} to be falsy", ); }); X.addProperty("true", function () { this.assert( ie(this, "object") === !0, "expected #{this} to be true", "expected #{this} to be false", !ie(this, "negate"), ); }); X.addProperty("numeric", function () { let e = ie(this, "object"); this.assert( ["Number", "BigInt"].includes(ht(e)), "expected #{this} to be numeric", "expected #{this} to not be numeric", !ie(this, "negate"), ); }); X.addProperty("callable", function () { let e = ie(this, "object"), t = ie(this, "ssfi"), r = ie(this, "message"), n = r ? `${r}: ` : "", a = ie(this, "negate"), o = a ? `${n}expected ${at(e)} not to be a callable function` : `${n}expected ${at(e)} to be a callable function`, i = [ "Function", "AsyncFunction", "GeneratorFunction", "AsyncGeneratorFunction", ].includes(ht(e)); if ((i && a) || (!i && !a)) throw new st(o, void 0, t); }); X.addProperty("false", function () { this.assert( ie(this, "object") === !1, "expected #{this} to be false", "expected #{this} to be true", !!ie(this, "negate"), ); }); X.addProperty("null", function () { this.assert( ie(this, "object") === null, "expected #{this} to be null", "expected #{this} not to be null", ); }); X.addProperty("undefined", function () { this.assert( ie(this, "object") === void 0, "expected #{this} to be undefined", "expected #{this} not to be undefined", ); }); X.addProperty("NaN", function () { this.assert( Ol(ie(this, "object")), "expected #{this} to be NaN", "expected #{this} not to be NaN", ); }); function Jc() { var e = ie(this, "object"); this.assert( e != null, "expected #{this} to exist", "expected #{this} to not exist", ); } s(Jc, "assertExist"); ce(Jc, "assertExist"); X.addProperty("exist", Jc); X.addProperty("exists", Jc); X.addProperty("empty", function () { var e = ie(this, "object"), t = ie(this, "ssfi"), r = ie(this, "message"), n; switch (((r = r ? r + ": " : ""), ht(e).toLowerCase())) { case "array": case "string": n = e.length; break; case "map": case "set": n = e.size; break; case "weakmap": case "weakset": throw new st(r + ".empty was passed a weak collection", void 0, t); case "function": var a = r + ".empty was passed a function " + Cs(e); throw new st(a.trim(), void 0, t); default: if (e !== Object(e)) throw new st( r + ".empty was passed non-string primitive " + at(e), void 0, t, ); n = Object.keys(e).length; } this.assert( n === 0, "expected #{this} to be empty", "expected #{this} not to be empty", ); }); function Xc() { var e = ie(this, "object"), t = ht(e); this.assert( t === "Arguments", "expected #{this} to be arguments but got " + t, "expected #{this} to not be arguments", ); } s(Xc, "checkArguments"); ce(Xc, "checkArguments"); X.addProperty("arguments", Xc); X.addProperty("Arguments", Xc); function ws(e, t) { t && ie(this, "message", t); var r = ie(this, "object"); if (ie(this, "deep")) { var n = ie(this, "lockSsfi"); (ie(this, "lockSsfi", !0), this.eql(e), ie(this, "lockSsfi", n)); } else this.assert( e === r, "expected #{this} to equal #{exp}", "expected #{this} to not equal #{exp}", e, this._obj, !0, ); } s(ws, "assertEqual"); ce(ws, "assertEqual"); X.addMethod("equal", ws); X.addMethod("equals", ws); X.addMethod("eq", ws); function Kc(e, t) { t && ie(this, "message", t); var r = ie(this, "eql"); this.assert( r(e, ie(this, "object")), "expected #{this} to deeply equal #{exp}", "expected #{this} to not deeply equal #{exp}", e, this._obj, !0, ); } s(Kc, "assertEql"); ce(Kc, "assertEql"); X.addMethod("eql", Kc); X.addMethod("eqls", Kc); function As(e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ie(this, "doLength"), a = ie(this, "message"), o = a ? a + ": " : "", i = ie(this, "ssfi"), u = ht(r).toLowerCase(), l = ht(e).toLowerCase(); if ( (n && u !== "map" && u !== "set" && new X(r, a, i, !0).to.have.property("length"), !n && u === "date" && l !== "date") ) throw new st(o + "the argument to above must be a date", void 0, i); if (!zt(e) && (n || zt(r))) throw new st(o + "the argument to above must be a number", void 0, i); if (!n && u !== "date" && !zt(r)) { var c = u === "string" ? "'" + r + "'" : r; throw new st(o + "expected " + c + " to be a number or a date", void 0, i); } if (n) { var d = "length", p; (u === "map" || u === "set" ? ((d = "size"), (p = r.size)) : (p = r.length), this.assert( p > e, "expected #{this} to have a " + d + " above #{exp} but got #{act}", "expected #{this} to not have a " + d + " above #{exp}", e, p, )); } else this.assert( r > e, "expected #{this} to be above #{exp}", "expected #{this} to be at most #{exp}", e, ); } s(As, "assertAbove"); ce(As, "assertAbove"); X.addMethod("above", As); X.addMethod("gt", As); X.addMethod("greaterThan", As); function Ss(e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ie(this, "doLength"), a = ie(this, "message"), o = a ? a + ": " : "", i = ie(this, "ssfi"), u = ht(r).toLowerCase(), l = ht(e).toLowerCase(), c, d = !0; if ( (n && u !== "map" && u !== "set" && new X(r, a, i, !0).to.have.property("length"), !n && u === "date" && l !== "date") ) c = o + "the argument to least must be a date"; else if (!zt(e) && (n || zt(r))) c = o + "the argument to least must be a number"; else if (!n && u !== "date" && !zt(r)) { var p = u === "string" ? "'" + r + "'" : r; c = o + "expected " + p + " to be a number or a date"; } else d = !1; if (d) throw new st(c, void 0, i); if (n) { var f = "length", h; (u === "map" || u === "set" ? ((f = "size"), (h = r.size)) : (h = r.length), this.assert( h >= e, "expected #{this} to have a " + f + " at least #{exp} but got #{act}", "expected #{this} to have a " + f + " below #{exp}", e, h, )); } else this.assert( r >= e, "expected #{this} to be at least #{exp}", "expected #{this} to be below #{exp}", e, ); } s(Ss, "assertLeast"); ce(Ss, "assertLeast"); X.addMethod("least", Ss); X.addMethod("gte", Ss); X.addMethod("greaterThanOrEqual", Ss); function xs(e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ie(this, "doLength"), a = ie(this, "message"), o = a ? a + ": " : "", i = ie(this, "ssfi"), u = ht(r).toLowerCase(), l = ht(e).toLowerCase(), c, d = !0; if ( (n && u !== "map" && u !== "set" && new X(r, a, i, !0).to.have.property("length"), !n && u === "date" && l !== "date") ) c = o + "the argument to below must be a date"; else if (!zt(e) && (n || zt(r))) c = o + "the argument to below must be a number"; else if (!n && u !== "date" && !zt(r)) { var p = u === "string" ? "'" + r + "'" : r; c = o + "expected " + p + " to be a number or a date"; } else d = !1; if (d) throw new st(c, void 0, i); if (n) { var f = "length", h; (u === "map" || u === "set" ? ((f = "size"), (h = r.size)) : (h = r.length), this.assert( h < e, "expected #{this} to have a " + f + " below #{exp} but got #{act}", "expected #{this} to not have a " + f + " below #{exp}", e, h, )); } else this.assert( r < e, "expected #{this} to be below #{exp}", "expected #{this} to be at least #{exp}", e, ); } s(xs, "assertBelow"); ce(xs, "assertBelow"); X.addMethod("below", xs); X.addMethod("lt", xs); X.addMethod("lessThan", xs); function Ps(e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ie(this, "doLength"), a = ie(this, "message"), o = a ? a + ": " : "", i = ie(this, "ssfi"), u = ht(r).toLowerCase(), l = ht(e).toLowerCase(), c, d = !0; if ( (n && u !== "map" && u !== "set" && new X(r, a, i, !0).to.have.property("length"), !n && u === "date" && l !== "date") ) c = o + "the argument to most must be a date"; else if (!zt(e) && (n || zt(r))) c = o + "the argument to most must be a number"; else if (!n && u !== "date" && !zt(r)) { var p = u === "string" ? "'" + r + "'" : r; c = o + "expected " + p + " to be a number or a date"; } else d = !1; if (d) throw new st(c, void 0, i); if (n) { var f = "length", h; (u === "map" || u === "set" ? ((f = "size"), (h = r.size)) : (h = r.length), this.assert( h <= e, "expected #{this} to have a " + f + " at most #{exp} but got #{act}", "expected #{this} to have a " + f + " above #{exp}", e, h, )); } else this.assert( r <= e, "expected #{this} to be at most #{exp}", "expected #{this} to be above #{exp}", e, ); } s(Ps, "assertMost"); ce(Ps, "assertMost"); X.addMethod("most", Ps); X.addMethod("lte", Ps); X.addMethod("lessThanOrEqual", Ps); X.addMethod("within", function (e, t, r) { r && ie(this, "message", r); var n = ie(this, "object"), a = ie(this, "doLength"), o = ie(this, "message"), i = o ? o + ": " : "", u = ie(this, "ssfi"), l = ht(n).toLowerCase(), c = ht(e).toLowerCase(), d = ht(t).toLowerCase(), p, f = !0, h = c === "date" && d === "date" ? e.toISOString() + ".." + t.toISOString() : e + ".." + t; if ( (a && l !== "map" && l !== "set" && new X(n, o, u, !0).to.have.property("length"), !a && l === "date" && (c !== "date" || d !== "date")) ) p = i + "the arguments to within must be dates"; else if ((!zt(e) || !zt(t)) && (a || zt(n))) p = i + "the arguments to within must be numbers"; else if (!a && l !== "date" && !zt(n)) { var m = l === "string" ? "'" + n + "'" : n; p = i + "expected " + m + " to be a number or a date"; } else f = !1; if (f) throw new st(p, void 0, u); if (a) { var y = "length", b; (l === "map" || l === "set" ? ((y = "size"), (b = n.size)) : (b = n.length), this.assert( b >= e && b <= t, "expected #{this} to have a " + y + " within " + h, "expected #{this} to not have a " + y + " within " + h, )); } else this.assert( n >= e && n <= t, "expected #{this} to be within " + h, "expected #{this} to not be within " + h, ); }); function Yc(e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ie(this, "ssfi"), a = ie(this, "message"); try { var o = r instanceof e; } catch (u) { throw u instanceof TypeError ? ((a = a ? a + ": " : ""), new st( a + "The instanceof assertion needs a constructor but " + ht(e) + " was given.", void 0, n, )) : u; } var i = Cs(e); (i == null && (i = "an unnamed constructor"), this.assert( o, "expected #{this} to be an instance of " + i, "expected #{this} to not be an instance of " + i, )); } s(Yc, "assertInstanceOf"); ce(Yc, "assertInstanceOf"); X.addMethod("instanceof", Yc); X.addMethod("instanceOf", Yc); function Qc(e, t, r) { r && ie(this, "message", r); var n = ie(this, "nested"), a = ie(this, "own"), o = ie(this, "message"), i = ie(this, "object"), u = ie(this, "ssfi"), l = typeof e; if (((o = o ? o + ": " : ""), n)) { if (l !== "string") throw new st( o + "the argument to property must be a string when using nested syntax", void 0, u, ); } else if (l !== "string" && l !== "number" && l !== "symbol") throw new st( o + "the argument to property must be a string, number, or symbol", void 0, u, ); if (n && a) throw new st( o + 'The "nested" and "own" flags cannot be combined.', void 0, u, ); if (i == null) throw new st(o + "Target cannot be null or undefined.", void 0, u); var c = ie(this, "deep"), d = ie(this, "negate"), p = n ? qc(i, e) : null, f = n ? p.value : i[e], h = c ? ie(this, "eql") : (b, g) => b === g, m = ""; (c && (m += "deep "), a && (m += "own "), n && (m += "nested "), (m += "property ")); var y; (a ? (y = Object.prototype.hasOwnProperty.call(i, e)) : n ? (y = p.exists) : (y = _s(i, e)), (!d || arguments.length === 1) && this.assert( y, "expected #{this} to have " + m + at(e), "expected #{this} to not have " + m + at(e), ), arguments.length > 1 && this.assert( y && h(t, f), "expected #{this} to have " + m + at(e) + " of #{exp}, but got #{act}", "expected #{this} to not have " + m + at(e) + " of #{act}", t, f, ), ie(this, "object", f)); } s(Qc, "assertProperty"); ce(Qc, "assertProperty"); X.addMethod("property", Qc); function Zc(e, t, r) { (ie(this, "own", !0), Qc.apply(this, arguments)); } s(Zc, "assertOwnProperty"); ce(Zc, "assertOwnProperty"); X.addMethod("ownProperty", Zc); X.addMethod("haveOwnProperty", Zc); function ed(e, t, r) { (typeof t == "string" && ((r = t), (t = null)), r && ie(this, "message", r)); var n = ie(this, "object"), a = Object.getOwnPropertyDescriptor(Object(n), e), o = ie(this, "eql"); (a && t ? this.assert( o(t, a), "expected the own property descriptor for " + at(e) + " on #{this} to match " + at(t) + ", got " + at(a), "expected the own property descriptor for " + at(e) + " on #{this} to not match " + at(t), t, a, !0, ) : this.assert( a, "expected #{this} to have an own property descriptor for " + at(e), "expected #{this} to not have an own property descriptor for " + at(e), ), ie(this, "object", a)); } s(ed, "assertOwnPropertyDescriptor"); ce(ed, "assertOwnPropertyDescriptor"); X.addMethod("ownPropertyDescriptor", ed); X.addMethod("haveOwnPropertyDescriptor", ed); function td() { ie(this, "doLength", !0); } s(td, "assertLengthChain"); ce(td, "assertLengthChain"); function rd(e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ht(r).toLowerCase(), a = ie(this, "message"), o = ie(this, "ssfi"), i = "length", u; switch (n) { case "map": case "set": ((i = "size"), (u = r.size)); break; default: (new X(r, a, o, !0).to.have.property("length"), (u = r.length)); } this.assert( u == e, "expected #{this} to have a " + i + " of #{exp} but got #{act}", "expected #{this} to not have a " + i + " of #{act}", e, u, ); } s(rd, "assertLength"); ce(rd, "assertLength"); X.addChainableMethod("length", rd, td); X.addChainableMethod("lengthOf", rd, td); function nd(e, t) { t && ie(this, "message", t); var r = ie(this, "object"); this.assert( e.exec(r), "expected #{this} to match " + e, "expected #{this} not to match " + e, ); } s(nd, "assertMatch"); ce(nd, "assertMatch"); X.addMethod("match", nd); X.addMethod("matches", nd); X.addMethod("string", function (e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ie(this, "message"), a = ie(this, "ssfi"); (new X(r, n, a, !0).is.a("string"), this.assert( ~r.indexOf(e), "expected #{this} to contain " + at(e), "expected #{this} to not contain " + at(e), )); }); function ad(e) { var t = ie(this, "object"), r = ht(t), n = ht(e), a = ie(this, "ssfi"), o = ie(this, "deep"), i, u = "", l, c = !0, d = ie(this, "message"); d = d ? d + ": " : ""; var p = d + "when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments"; if (r === "Map" || r === "Set") ((u = o ? "deeply " : ""), (l = []), t.forEach(function (v, x) { l.push(x); }), n !== "Array" && (e = Array.prototype.slice.call(arguments))); else { switch (((l = zc(t)), n)) { case "Array": if (arguments.length > 1) throw new st(p, void 0, a); break; case "Object": if (arguments.length > 1) throw new st(p, void 0, a); e = Object.keys(e); break; default: e = Array.prototype.slice.call(arguments); } e = e.map(function (v) { return typeof v == "symbol" ? v : String(v); }); } if (!e.length) throw new st(d + "keys required", void 0, a); var f = e.length, h = ie(this, "any"), m = ie(this, "all"), y = e, b = o ? ie(this, "eql") : (v, x) => v === x; if ( (!h && !m && (m = !0), h && (c = y.some(function (v) { return l.some(function (x) { return b(v, x); }); })), m && ((c = y.every(function (v) { return l.some(function (x) { return b(v, x); }); })), ie(this, "contains") || (c = c && e.length == l.length)), f > 1) ) { e = e.map(function (v) { return at(v); }); var g = e.pop(); (m && (i = e.join(", ") + ", and " + g), h && (i = e.join(", ") + ", or " + g)); } else i = at(e[0]); ((i = (f > 1 ? "keys " : "key ") + i), (i = (ie(this, "contains") ? "contain " : "have ") + i), this.assert( c, "expected #{this} to " + u + i, "expected #{this} to not " + u + i, y.slice(0).sort(Ki), l.sort(Ki), !0, )); } s(ad, "assertKeys"); ce(ad, "assertKeys"); X.addMethod("keys", ad); X.addMethod("key", ad); function Rs(e, t, r) { r && ie(this, "message", r); var n = ie(this, "object"), a = ie(this, "ssfi"), o = ie(this, "message"), i = ie(this, "negate") || !1; (new X(n, o, a, !0).is.a("function"), (Yi(e) || typeof e == "string") && ((t = e), (e = null))); let u, l = !1; try { n(); } catch (v) { ((l = !0), (u = v)); } var c = e === void 0 && t === void 0, d = !!(e && t), p = !1, f = !1; if (c || (!c && !i)) { var h = "an error"; e instanceof Error ? (h = "#{exp}") : e && (h = Cr.getConstructorName(e)); let v = u; if (u instanceof Error) v = u.toString(); else if (typeof u == "string") v = u; else if (u && (typeof u == "object" || typeof u == "function")) try { v = Cr.getConstructorName(u); } catch {} this.assert( l, "expected #{this} to throw " + h, "expected #{this} to not throw an error but #{act} was thrown", e && e.toString(), v, ); } if (e && u) { if (e instanceof Error) { var m = Cr.compatibleInstance(u, e); m === i && (d && i ? (p = !0) : this.assert( i, "expected #{this} to throw #{exp} but #{act} was thrown", "expected #{this} to not throw #{exp}" + (u && !i ? " but #{act} was thrown" : ""), e.toString(), u.toString(), )); } var y = Cr.compatibleConstructor(u, e); y === i && (d && i ? (p = !0) : this.assert( i, "expected #{this} to throw #{exp} but #{act} was thrown", "expected #{this} to not throw #{exp}" + (u ? " but #{act} was thrown" : ""), e instanceof Error ? e.toString() : e && Cr.getConstructorName(e), u instanceof Error ? u.toString() : u && Cr.getConstructorName(u), )); } if (u && t !== void 0 && t !== null) { var b = "including"; Yi(t) && (b = "matching"); var g = Cr.compatibleMessage(u, t); g === i && (d && i ? (f = !0) : this.assert( i, "expected #{this} to throw error " + b + " #{exp} but got #{act}", "expected #{this} to throw error not " + b + " #{exp}", t, Cr.getMessage(u), )); } (p && f && this.assert( i, "expected #{this} to throw #{exp} but #{act} was thrown", "expected #{this} to not throw #{exp}" + (u ? " but #{act} was thrown" : ""), e instanceof Error ? e.toString() : e && Cr.getConstructorName(e), u instanceof Error ? u.toString() : u && Cr.getConstructorName(u), ), ie(this, "object", u)); } s(Rs, "assertThrows"); ce(Rs, "assertThrows"); X.addMethod("throw", Rs); X.addMethod("throws", Rs); X.addMethod("Throw", Rs); function od(e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ie(this, "itself"), a = typeof r == "function" && !n ? r.prototype[e] : r[e]; this.assert( typeof a == "function", "expected #{this} to respond to " + at(e), "expected #{this} to not respond to " + at(e), ); } s(od, "respondTo"); ce(od, "respondTo"); X.addMethod("respondTo", od); X.addMethod("respondsTo", od); X.addProperty("itself", function () { ie(this, "itself", !0); }); function id(e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = e(r); this.assert( n, "expected #{this} to satisfy " + Wn(e), "expected #{this} to not satisfy" + Wn(e), !ie(this, "negate"), n, ); } s(id, "satisfy"); ce(id, "satisfy"); X.addMethod("satisfy", id); X.addMethod("satisfies", id); function sd(e, t, r) { r && ie(this, "message", r); var n = ie(this, "object"), a = ie(this, "message"), o = ie(this, "ssfi"); new X(n, a, o, !0).is.numeric; let i = "A `delta` value is required for `closeTo`"; if (t == null) throw new st(a ? `${a}: ${i}` : i, void 0, o); if ( (new X(t, a, o, !0).is.numeric, (i = "A `expected` value is required for `closeTo`"), e == null) ) throw new st(a ? `${a}: ${i}` : i, void 0, o); new X(e, a, o, !0).is.numeric; let u = ce((c) => (c < 0n ? -c : c), "abs"), l = ce((c) => parseFloat(parseFloat(c).toPrecision(12)), "strip"); this.assert( l(u(n - e)) <= t, "expected #{this} to be close to " + e + " +/- " + t, "expected #{this} not to be close to " + e + " +/- " + t, ); } s(sd, "closeTo"); ce(sd, "closeTo"); X.addMethod("closeTo", sd); X.addMethod("approximately", sd); function Ob(e, t, r, n, a) { let o = Array.from(t), i = Array.from(e); if (!n) { if (i.length !== o.length) return !1; o = o.slice(); } return i.every(function (u, l) { if (a) return r ? r(u, o[l]) : u === o[l]; if (!r) { var c = o.indexOf(u); return c === -1 ? !1 : (n || o.splice(c, 1), !0); } return o.some(function (d, p) { return r(u, d) ? (n || o.splice(p, 1), !0) : !1; }); }); } s(Ob, "isSubsetOf"); ce(Ob, "isSubsetOf"); X.addMethod("members", function (e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ie(this, "message"), a = ie(this, "ssfi"); (new X(r, n, a, !0).to.be.iterable, new X(e, n, a, !0).to.be.iterable); var o = ie(this, "contains"), i = ie(this, "ordered"), u, l, c; o ? ((u = i ? "an ordered superset" : "a superset"), (l = "expected #{this} to be " + u + " of #{exp}"), (c = "expected #{this} to not be " + u + " of #{exp}")) : ((u = i ? "ordered members" : "members"), (l = "expected #{this} to have the same " + u + " as #{exp}"), (c = "expected #{this} to not have the same " + u + " as #{exp}")); var d = ie(this, "deep") ? ie(this, "eql") : void 0; this.assert(Ob(e, r, d, o, i), l, c, e, r, !0); }); X.addProperty("iterable", function (e) { e && ie(this, "message", e); var t = ie(this, "object"); this.assert( t != null && t[Symbol.iterator], "expected #{this} to be an iterable", "expected #{this} to not be an iterable", t, ); }); function Db(e, t) { t && ie(this, "message", t); var r = ie(this, "object"), n = ie(this, "message"), a = ie(this, "ssfi"), o = ie(this, "contains"), i = ie(this, "deep"), u = ie(this, "eql"); (new X(e, n, a, !0).to.be.an("array"), o ? this.assert( e.some(function (l) { return r.indexOf(l) > -1; }), "expected #{this} to contain one of #{exp}", "expected #{this} to not contain one of #{exp}", e, r, ) : i ? this.assert( e.some(function (l) { return u(r, l); }), "expected #{this} to deeply equal one of #{exp}", "expected #{this} to deeply equal one of #{exp}", e, r, ) : this.assert( e.indexOf(r) > -1, "expected #{this} to be one of #{exp}", "expected #{this} to not be one of #{exp}", e, r, )); } s(Db, "oneOf"); ce(Db, "oneOf"); X.addMethod("oneOf", Db); function ud(e, t, r) { r && ie(this, "message", r); var n = ie(this, "object"), a = ie(this, "message"), o = ie(this, "ssfi"); new X(n, a, o, !0).is.a("function"); var i; (t ? (new X(e, a, o, !0).to.have.property(t), (i = e[t])) : (new X(e, a, o, !0).is.a("function"), (i = e())), n()); var u = t == null ? e() : e[t], l = t == null ? i : "." + t; (ie(this, "deltaMsgObj", l), ie(this, "initialDeltaValue", i), ie(this, "finalDeltaValue", u), ie(this, "deltaBehavior", "change"), ie(this, "realDelta", u !== i), this.assert( i !== u, "expected " + l + " to change", "expected " + l + " to not change", )); } s(ud, "assertChanges"); ce(ud, "assertChanges"); X.addMethod("change", ud); X.addMethod("changes", ud); function ld(e, t, r) { r && ie(this, "message", r); var n = ie(this, "object"), a = ie(this, "message"), o = ie(this, "ssfi"); new X(n, a, o, !0).is.a("function"); var i; (t ? (new X(e, a, o, !0).to.have.property(t), (i = e[t])) : (new X(e, a, o, !0).is.a("function"), (i = e())), new X(i, a, o, !0).is.a("number"), n()); var u = t == null ? e() : e[t], l = t == null ? i : "." + t; (ie(this, "deltaMsgObj", l), ie(this, "initialDeltaValue", i), ie(this, "finalDeltaValue", u), ie(this, "deltaBehavior", "increase"), ie(this, "realDelta", u - i), this.assert( u - i > 0, "expected " + l + " to increase", "expected " + l + " to not increase", )); } s(ld, "assertIncreases"); ce(ld, "assertIncreases"); X.addMethod("increase", ld); X.addMethod("increases", ld); function cd(e, t, r) { r && ie(this, "message", r); var n = ie(this, "object"), a = ie(this, "message"), o = ie(this, "ssfi"); new X(n, a, o, !0).is.a("function"); var i; (t ? (new X(e, a, o, !0).to.have.property(t), (i = e[t])) : (new X(e, a, o, !0).is.a("function"), (i = e())), new X(i, a, o, !0).is.a("number"), n()); var u = t == null ? e() : e[t], l = t == null ? i : "." + t; (ie(this, "deltaMsgObj", l), ie(this, "initialDeltaValue", i), ie(this, "finalDeltaValue", u), ie(this, "deltaBehavior", "decrease"), ie(this, "realDelta", i - u), this.assert( u - i < 0, "expected " + l + " to decrease", "expected " + l + " to not decrease", )); } s(cd, "assertDecreases"); ce(cd, "assertDecreases"); X.addMethod("decrease", cd); X.addMethod("decreases", cd); function Fb(e, t) { t && ie(this, "message", t); var r = ie(this, "deltaMsgObj"), n = ie(this, "initialDeltaValue"), a = ie(this, "finalDeltaValue"), o = ie(this, "deltaBehavior"), i = ie(this, "realDelta"), u; (o === "change" ? (u = Math.abs(a - n) === Math.abs(e)) : (u = i === Math.abs(e)), this.assert( u, "expected " + r + " to " + o + " by " + e, "expected " + r + " to not " + o + " by " + e, )); } s(Fb, "assertDelta"); ce(Fb, "assertDelta"); X.addMethod("by", Fb); X.addProperty("extensible", function () { var e = ie(this, "object"), t = e === Object(e) && Object.isExtensible(e); this.assert( t, "expected #{this} to be extensible", "expected #{this} to not be extensible", ); }); X.addProperty("sealed", function () { var e = ie(this, "object"), t = e === Object(e) ? Object.isSealed(e) : !0; this.assert( t, "expected #{this} to be sealed", "expected #{this} to not be sealed", ); }); X.addProperty("frozen", function () { var e = ie(this, "object"), t = e === Object(e) ? Object.isFrozen(e) : !0; this.assert( t, "expected #{this} to be frozen", "expected #{this} to not be frozen", ); }); X.addProperty("finite", function (e) { var t = ie(this, "object"); this.assert( typeof t == "number" && isFinite(t), "expected #{this} to be a finite number", "expected #{this} to not be a finite number", ); }); function Qi(e, t) { return e === t ? !0 : typeof t != typeof e ? !1 : typeof e != "object" || e === null ? e === t : t ? Array.isArray(e) ? Array.isArray(t) ? e.every(function (r) { return t.some(function (n) { return Qi(r, n); }); }) : !1 : e instanceof Date ? t instanceof Date ? e.getTime() === t.getTime() : !1 : Object.keys(e).every(function (r) { var n = e[r], a = t[r]; return typeof n == "object" && n !== null && a !== null ? Qi(n, a) : typeof n == "function" ? n(a) : a === n; }) : !1; } s(Qi, "compareSubset"); ce(Qi, "compareSubset"); X.addMethod("containSubset", function (e) { let t = He(this, "object"), r = sr.showDiff; this.assert( Qi(e, t), "expected #{act} to contain subset #{exp}", "expected #{act} to not contain subset #{exp}", e, t, r, ); }); function Jn(e, t) { return new X(e, t); } s(Jn, "expect"); ce(Jn, "expect"); Jn.fail = function (e, t, r, n) { throw ( arguments.length < 2 && ((r = e), (e = void 0)), (r = r || "expect.fail()"), new st(r, { actual: e, expected: t, operator: n }, Jn.fail) ); }; var qT = {}; Xg(qT, { Should: s(() => Wz, "Should"), should: s(() => Gz, "should") }); function dd() { function e() { return this instanceof String || this instanceof Number || this instanceof Boolean || (typeof Symbol == "function" && this instanceof Symbol) || (typeof BigInt == "function" && this instanceof BigInt) ? new X(this.valueOf(), null, e) : new X(this, null, e); } (s(e, "shouldGetter"), ce(e, "shouldGetter")); function t(n) { Object.defineProperty(this, "should", { value: n, enumerable: !0, configurable: !0, writable: !0, }); } (s(t, "shouldSetter"), ce(t, "shouldSetter"), Object.defineProperty(Object.prototype, "should", { set: t, get: e, configurable: !0, })); var r = {}; return ( (r.fail = function (n, a, o, i) { throw ( arguments.length < 2 && ((o = n), (n = void 0)), (o = o || "should.fail()"), new st(o, { actual: n, expected: a, operator: i }, r.fail) ); }), (r.equal = function (n, a, o) { new X(n, o).to.equal(a); }), (r.Throw = function (n, a, o, i) { new X(n, i).to.Throw(a, o); }), (r.exist = function (n, a) { new X(n, a).to.exist; }), (r.not = {}), (r.not.equal = function (n, a, o) { new X(n, o).to.not.equal(a); }), (r.not.Throw = function (n, a, o, i) { new X(n, i).to.not.Throw(a, o); }), (r.not.exist = function (n, a) { new X(n, a).to.not.exist; }), (r.throw = r.Throw), (r.not.throw = r.not.Throw), r ); } s(dd, "loadShould"); ce(dd, "loadShould"); var Gz = dd, Wz = dd; function J(e, t) { var r = new X(null, null, J, !0); r.assert(e, t, "[ negation message unavailable ]"); } s(J, "assert"); ce(J, "assert"); J.fail = function (e, t, r, n) { throw ( arguments.length < 2 && ((r = e), (e = void 0)), (r = r || "assert.fail()"), new st(r, { actual: e, expected: t, operator: n }, J.fail) ); }; J.isOk = function (e, t) { new X(e, t, J.isOk, !0).is.ok; }; J.isNotOk = function (e, t) { new X(e, t, J.isNotOk, !0).is.not.ok; }; J.equal = function (e, t, r) { var n = new X(e, r, J.equal, !0); n.assert( t == He(n, "object"), "expected #{this} to equal #{exp}", "expected #{this} to not equal #{act}", t, e, !0, ); }; J.notEqual = function (e, t, r) { var n = new X(e, r, J.notEqual, !0); n.assert( t != He(n, "object"), "expected #{this} to not equal #{exp}", "expected #{this} to equal #{act}", t, e, !0, ); }; J.strictEqual = function (e, t, r) { new X(e, r, J.strictEqual, !0).to.equal(t); }; J.notStrictEqual = function (e, t, r) { new X(e, r, J.notStrictEqual, !0).to.not.equal(t); }; J.deepEqual = J.deepStrictEqual = function (e, t, r) { new X(e, r, J.deepEqual, !0).to.eql(t); }; J.notDeepEqual = function (e, t, r) { new X(e, r, J.notDeepEqual, !0).to.not.eql(t); }; J.isAbove = function (e, t, r) { new X(e, r, J.isAbove, !0).to.be.above(t); }; J.isAtLeast = function (e, t, r) { new X(e, r, J.isAtLeast, !0).to.be.least(t); }; J.isBelow = function (e, t, r) { new X(e, r, J.isBelow, !0).to.be.below(t); }; J.isAtMost = function (e, t, r) { new X(e, r, J.isAtMost, !0).to.be.most(t); }; J.isTrue = function (e, t) { new X(e, t, J.isTrue, !0).is.true; }; J.isNotTrue = function (e, t) { new X(e, t, J.isNotTrue, !0).to.not.equal(!0); }; J.isFalse = function (e, t) { new X(e, t, J.isFalse, !0).is.false; }; J.isNotFalse = function (e, t) { new X(e, t, J.isNotFalse, !0).to.not.equal(!1); }; J.isNull = function (e, t) { new X(e, t, J.isNull, !0).to.equal(null); }; J.isNotNull = function (e, t) { new X(e, t, J.isNotNull, !0).to.not.equal(null); }; J.isNaN = function (e, t) { new X(e, t, J.isNaN, !0).to.be.NaN; }; J.isNotNaN = function (e, t) { new X(e, t, J.isNotNaN, !0).not.to.be.NaN; }; J.exists = function (e, t) { new X(e, t, J.exists, !0).to.exist; }; J.notExists = function (e, t) { new X(e, t, J.notExists, !0).to.not.exist; }; J.isUndefined = function (e, t) { new X(e, t, J.isUndefined, !0).to.equal(void 0); }; J.isDefined = function (e, t) { new X(e, t, J.isDefined, !0).to.not.equal(void 0); }; J.isCallable = function (e, t) { new X(e, t, J.isCallable, !0).is.callable; }; J.isNotCallable = function (e, t) { new X(e, t, J.isNotCallable, !0).is.not.callable; }; J.isObject = function (e, t) { new X(e, t, J.isObject, !0).to.be.a("object"); }; J.isNotObject = function (e, t) { new X(e, t, J.isNotObject, !0).to.not.be.a("object"); }; J.isArray = function (e, t) { new X(e, t, J.isArray, !0).to.be.an("array"); }; J.isNotArray = function (e, t) { new X(e, t, J.isNotArray, !0).to.not.be.an("array"); }; J.isString = function (e, t) { new X(e, t, J.isString, !0).to.be.a("string"); }; J.isNotString = function (e, t) { new X(e, t, J.isNotString, !0).to.not.be.a("string"); }; J.isNumber = function (e, t) { new X(e, t, J.isNumber, !0).to.be.a("number"); }; J.isNotNumber = function (e, t) { new X(e, t, J.isNotNumber, !0).to.not.be.a("number"); }; J.isNumeric = function (e, t) { new X(e, t, J.isNumeric, !0).is.numeric; }; J.isNotNumeric = function (e, t) { new X(e, t, J.isNotNumeric, !0).is.not.numeric; }; J.isFinite = function (e, t) { new X(e, t, J.isFinite, !0).to.be.finite; }; J.isBoolean = function (e, t) { new X(e, t, J.isBoolean, !0).to.be.a("boolean"); }; J.isNotBoolean = function (e, t) { new X(e, t, J.isNotBoolean, !0).to.not.be.a("boolean"); }; J.typeOf = function (e, t, r) { new X(e, r, J.typeOf, !0).to.be.a(t); }; J.notTypeOf = function (e, t, r) { new X(e, r, J.notTypeOf, !0).to.not.be.a(t); }; J.instanceOf = function (e, t, r) { new X(e, r, J.instanceOf, !0).to.be.instanceOf(t); }; J.notInstanceOf = function (e, t, r) { new X(e, r, J.notInstanceOf, !0).to.not.be.instanceOf(t); }; J.include = function (e, t, r) { new X(e, r, J.include, !0).include(t); }; J.notInclude = function (e, t, r) { new X(e, r, J.notInclude, !0).not.include(t); }; J.deepInclude = function (e, t, r) { new X(e, r, J.deepInclude, !0).deep.include(t); }; J.notDeepInclude = function (e, t, r) { new X(e, r, J.notDeepInclude, !0).not.deep.include(t); }; J.nestedInclude = function (e, t, r) { new X(e, r, J.nestedInclude, !0).nested.include(t); }; J.notNestedInclude = function (e, t, r) { new X(e, r, J.notNestedInclude, !0).not.nested.include(t); }; J.deepNestedInclude = function (e, t, r) { new X(e, r, J.deepNestedInclude, !0).deep.nested.include(t); }; J.notDeepNestedInclude = function (e, t, r) { new X(e, r, J.notDeepNestedInclude, !0).not.deep.nested.include(t); }; J.ownInclude = function (e, t, r) { new X(e, r, J.ownInclude, !0).own.include(t); }; J.notOwnInclude = function (e, t, r) { new X(e, r, J.notOwnInclude, !0).not.own.include(t); }; J.deepOwnInclude = function (e, t, r) { new X(e, r, J.deepOwnInclude, !0).deep.own.include(t); }; J.notDeepOwnInclude = function (e, t, r) { new X(e, r, J.notDeepOwnInclude, !0).not.deep.own.include(t); }; J.match = function (e, t, r) { new X(e, r, J.match, !0).to.match(t); }; J.notMatch = function (e, t, r) { new X(e, r, J.notMatch, !0).to.not.match(t); }; J.property = function (e, t, r) { new X(e, r, J.property, !0).to.have.property(t); }; J.notProperty = function (e, t, r) { new X(e, r, J.notProperty, !0).to.not.have.property(t); }; J.propertyVal = function (e, t, r, n) { new X(e, n, J.propertyVal, !0).to.have.property(t, r); }; J.notPropertyVal = function (e, t, r, n) { new X(e, n, J.notPropertyVal, !0).to.not.have.property(t, r); }; J.deepPropertyVal = function (e, t, r, n) { new X(e, n, J.deepPropertyVal, !0).to.have.deep.property(t, r); }; J.notDeepPropertyVal = function (e, t, r, n) { new X(e, n, J.notDeepPropertyVal, !0).to.not.have.deep.property(t, r); }; J.ownProperty = function (e, t, r) { new X(e, r, J.ownProperty, !0).to.have.own.property(t); }; J.notOwnProperty = function (e, t, r) { new X(e, r, J.notOwnProperty, !0).to.not.have.own.property(t); }; J.ownPropertyVal = function (e, t, r, n) { new X(e, n, J.ownPropertyVal, !0).to.have.own.property(t, r); }; J.notOwnPropertyVal = function (e, t, r, n) { new X(e, n, J.notOwnPropertyVal, !0).to.not.have.own.property(t, r); }; J.deepOwnPropertyVal = function (e, t, r, n) { new X(e, n, J.deepOwnPropertyVal, !0).to.have.deep.own.property(t, r); }; J.notDeepOwnPropertyVal = function (e, t, r, n) { new X(e, n, J.notDeepOwnPropertyVal, !0).to.not.have.deep.own.property(t, r); }; J.nestedProperty = function (e, t, r) { new X(e, r, J.nestedProperty, !0).to.have.nested.property(t); }; J.notNestedProperty = function (e, t, r) { new X(e, r, J.notNestedProperty, !0).to.not.have.nested.property(t); }; J.nestedPropertyVal = function (e, t, r, n) { new X(e, n, J.nestedPropertyVal, !0).to.have.nested.property(t, r); }; J.notNestedPropertyVal = function (e, t, r, n) { new X(e, n, J.notNestedPropertyVal, !0).to.not.have.nested.property(t, r); }; J.deepNestedPropertyVal = function (e, t, r, n) { new X(e, n, J.deepNestedPropertyVal, !0).to.have.deep.nested.property(t, r); }; J.notDeepNestedPropertyVal = function (e, t, r, n) { new X(e, n, J.notDeepNestedPropertyVal, !0).to.not.have.deep.nested.property( t, r, ); }; J.lengthOf = function (e, t, r) { new X(e, r, J.lengthOf, !0).to.have.lengthOf(t); }; J.hasAnyKeys = function (e, t, r) { new X(e, r, J.hasAnyKeys, !0).to.have.any.keys(t); }; J.hasAllKeys = function (e, t, r) { new X(e, r, J.hasAllKeys, !0).to.have.all.keys(t); }; J.containsAllKeys = function (e, t, r) { new X(e, r, J.containsAllKeys, !0).to.contain.all.keys(t); }; J.doesNotHaveAnyKeys = function (e, t, r) { new X(e, r, J.doesNotHaveAnyKeys, !0).to.not.have.any.keys(t); }; J.doesNotHaveAllKeys = function (e, t, r) { new X(e, r, J.doesNotHaveAllKeys, !0).to.not.have.all.keys(t); }; J.hasAnyDeepKeys = function (e, t, r) { new X(e, r, J.hasAnyDeepKeys, !0).to.have.any.deep.keys(t); }; J.hasAllDeepKeys = function (e, t, r) { new X(e, r, J.hasAllDeepKeys, !0).to.have.all.deep.keys(t); }; J.containsAllDeepKeys = function (e, t, r) { new X(e, r, J.containsAllDeepKeys, !0).to.contain.all.deep.keys(t); }; J.doesNotHaveAnyDeepKeys = function (e, t, r) { new X(e, r, J.doesNotHaveAnyDeepKeys, !0).to.not.have.any.deep.keys(t); }; J.doesNotHaveAllDeepKeys = function (e, t, r) { new X(e, r, J.doesNotHaveAllDeepKeys, !0).to.not.have.all.deep.keys(t); }; J.throws = function (e, t, r, n) { (typeof t == "string" || t instanceof RegExp) && ((r = t), (t = null)); var a = new X(e, n, J.throws, !0).to.throw(t, r); return He(a, "object"); }; J.doesNotThrow = function (e, t, r, n) { ((typeof t == "string" || t instanceof RegExp) && ((r = t), (t = null)), new X(e, n, J.doesNotThrow, !0).to.not.throw(t, r)); }; J.operator = function (e, t, r, n) { var a; switch (t) { case "==": a = e == r; break; case "===": a = e === r; break; case ">": a = e > r; break; case ">=": a = e >= r; break; case "<": a = e < r; break; case "<=": a = e <= r; break; case "!=": a = e != r; break; case "!==": a = e !== r; break; default: throw ( (n = n && n + ": "), new st(n + 'Invalid operator "' + t + '"', void 0, J.operator) ); } var o = new X(a, n, J.operator, !0); o.assert( He(o, "object") === !0, "expected " + at(e) + " to be " + t + " " + at(r), "expected " + at(e) + " to not be " + t + " " + at(r), ); }; J.closeTo = function (e, t, r, n) { new X(e, n, J.closeTo, !0).to.be.closeTo(t, r); }; J.approximately = function (e, t, r, n) { new X(e, n, J.approximately, !0).to.be.approximately(t, r); }; J.sameMembers = function (e, t, r) { new X(e, r, J.sameMembers, !0).to.have.same.members(t); }; J.notSameMembers = function (e, t, r) { new X(e, r, J.notSameMembers, !0).to.not.have.same.members(t); }; J.sameDeepMembers = function (e, t, r) { new X(e, r, J.sameDeepMembers, !0).to.have.same.deep.members(t); }; J.notSameDeepMembers = function (e, t, r) { new X(e, r, J.notSameDeepMembers, !0).to.not.have.same.deep.members(t); }; J.sameOrderedMembers = function (e, t, r) { new X(e, r, J.sameOrderedMembers, !0).to.have.same.ordered.members(t); }; J.notSameOrderedMembers = function (e, t, r) { new X(e, r, J.notSameOrderedMembers, !0).to.not.have.same.ordered.members(t); }; J.sameDeepOrderedMembers = function (e, t, r) { new X(e, r, J.sameDeepOrderedMembers, !0).to.have.same.deep.ordered.members( t, ); }; J.notSameDeepOrderedMembers = function (e, t, r) { new X( e, r, J.notSameDeepOrderedMembers, !0, ).to.not.have.same.deep.ordered.members(t); }; J.includeMembers = function (e, t, r) { new X(e, r, J.includeMembers, !0).to.include.members(t); }; J.notIncludeMembers = function (e, t, r) { new X(e, r, J.notIncludeMembers, !0).to.not.include.members(t); }; J.includeDeepMembers = function (e, t, r) { new X(e, r, J.includeDeepMembers, !0).to.include.deep.members(t); }; J.notIncludeDeepMembers = function (e, t, r) { new X(e, r, J.notIncludeDeepMembers, !0).to.not.include.deep.members(t); }; J.includeOrderedMembers = function (e, t, r) { new X(e, r, J.includeOrderedMembers, !0).to.include.ordered.members(t); }; J.notIncludeOrderedMembers = function (e, t, r) { new X(e, r, J.notIncludeOrderedMembers, !0).to.not.include.ordered.members(t); }; J.includeDeepOrderedMembers = function (e, t, r) { new X(e, r, J.includeDeepOrderedMembers, !0).to.include.deep.ordered.members( t, ); }; J.notIncludeDeepOrderedMembers = function (e, t, r) { new X( e, r, J.notIncludeDeepOrderedMembers, !0, ).to.not.include.deep.ordered.members(t); }; J.oneOf = function (e, t, r) { new X(e, r, J.oneOf, !0).to.be.oneOf(t); }; J.isIterable = function (e, t) { if (e == null || !e[Symbol.iterator]) throw ( (t = t ? `${t} expected ${at(e)} to be an iterable` : `expected ${at(e)} to be an iterable`), new st(t, void 0, J.isIterable) ); }; J.changes = function (e, t, r, n) { (arguments.length === 3 && typeof t == "function" && ((n = r), (r = null)), new X(e, n, J.changes, !0).to.change(t, r)); }; J.changesBy = function (e, t, r, n, a) { if (arguments.length === 4 && typeof t == "function") { var o = n; ((n = r), (a = o)); } else arguments.length === 3 && ((n = r), (r = null)); new X(e, a, J.changesBy, !0).to.change(t, r).by(n); }; J.doesNotChange = function (e, t, r, n) { return ( arguments.length === 3 && typeof t == "function" && ((n = r), (r = null)), new X(e, n, J.doesNotChange, !0).to.not.change(t, r) ); }; J.changesButNotBy = function (e, t, r, n, a) { if (arguments.length === 4 && typeof t == "function") { var o = n; ((n = r), (a = o)); } else arguments.length === 3 && ((n = r), (r = null)); new X(e, a, J.changesButNotBy, !0).to.change(t, r).but.not.by(n); }; J.increases = function (e, t, r, n) { return ( arguments.length === 3 && typeof t == "function" && ((n = r), (r = null)), new X(e, n, J.increases, !0).to.increase(t, r) ); }; J.increasesBy = function (e, t, r, n, a) { if (arguments.length === 4 && typeof t == "function") { var o = n; ((n = r), (a = o)); } else arguments.length === 3 && ((n = r), (r = null)); new X(e, a, J.increasesBy, !0).to.increase(t, r).by(n); }; J.doesNotIncrease = function (e, t, r, n) { return ( arguments.length === 3 && typeof t == "function" && ((n = r), (r = null)), new X(e, n, J.doesNotIncrease, !0).to.not.increase(t, r) ); }; J.increasesButNotBy = function (e, t, r, n, a) { if (arguments.length === 4 && typeof t == "function") { var o = n; ((n = r), (a = o)); } else arguments.length === 3 && ((n = r), (r = null)); new X(e, a, J.increasesButNotBy, !0).to.increase(t, r).but.not.by(n); }; J.decreases = function (e, t, r, n) { return ( arguments.length === 3 && typeof t == "function" && ((n = r), (r = null)), new X(e, n, J.decreases, !0).to.decrease(t, r) ); }; J.decreasesBy = function (e, t, r, n, a) { if (arguments.length === 4 && typeof t == "function") { var o = n; ((n = r), (a = o)); } else arguments.length === 3 && ((n = r), (r = null)); new X(e, a, J.decreasesBy, !0).to.decrease(t, r).by(n); }; J.doesNotDecrease = function (e, t, r, n) { return ( arguments.length === 3 && typeof t == "function" && ((n = r), (r = null)), new X(e, n, J.doesNotDecrease, !0).to.not.decrease(t, r) ); }; J.doesNotDecreaseBy = function (e, t, r, n, a) { if (arguments.length === 4 && typeof t == "function") { var o = n; ((n = r), (a = o)); } else arguments.length === 3 && ((n = r), (r = null)); return new X(e, a, J.doesNotDecreaseBy, !0).to.not.decrease(t, r).by(n); }; J.decreasesButNotBy = function (e, t, r, n, a) { if (arguments.length === 4 && typeof t == "function") { var o = n; ((n = r), (a = o)); } else arguments.length === 3 && ((n = r), (r = null)); new X(e, a, J.decreasesButNotBy, !0).to.decrease(t, r).but.not.by(n); }; J.ifError = function (e) { if (e) throw e; }; J.isExtensible = function (e, t) { new X(e, t, J.isExtensible, !0).to.be.extensible; }; J.isNotExtensible = function (e, t) { new X(e, t, J.isNotExtensible, !0).to.not.be.extensible; }; J.isSealed = function (e, t) { new X(e, t, J.isSealed, !0).to.be.sealed; }; J.isNotSealed = function (e, t) { new X(e, t, J.isNotSealed, !0).to.not.be.sealed; }; J.isFrozen = function (e, t) { new X(e, t, J.isFrozen, !0).to.be.frozen; }; J.isNotFrozen = function (e, t) { new X(e, t, J.isNotFrozen, !0).to.not.be.frozen; }; J.isEmpty = function (e, t) { new X(e, t, J.isEmpty, !0).to.be.empty; }; J.isNotEmpty = function (e, t) { new X(e, t, J.isNotEmpty, !0).to.not.be.empty; }; J.containsSubset = function (e, t, r) { new X(e, r).to.containSubset(t); }; J.doesNotContainSubset = function (e, t, r) { new X(e, r).to.not.containSubset(t); }; var Jz = [ ["isOk", "ok"], ["isNotOk", "notOk"], ["throws", "throw"], ["throws", "Throw"], ["isExtensible", "extensible"], ["isNotExtensible", "notExtensible"], ["isSealed", "sealed"], ["isNotSealed", "notSealed"], ["isFrozen", "frozen"], ["isNotFrozen", "notFrozen"], ["isEmpty", "empty"], ["isNotEmpty", "notEmpty"], ["isCallable", "isFunction"], ["isNotCallable", "isNotFunction"], ["containsSubset", "containSubset"], ]; for (let [e, t] of Jz) J[t] = J[e]; var D_ = []; function Ca(e) { let t = { use: Ca, AssertionError: st, util: nn, config: sr, expect: Jn, assert: J, Assertion: X, ...qT, }; return (~D_.indexOf(e) || (e(t, nn), D_.push(e)), t); } s(Ca, "use"); ce(Ca, "use"); var MT = {}; ur(MT, { toBeChecked: () => mv, toBeDisabled: () => sv, toBeEmpty: () => Gb, toBeEmptyDOMElement: () => Wb, toBeEnabled: () => uv, toBeInTheDOM: () => Fl, toBeInTheDocument: () => zb, toBeInvalid: () => dv, toBePartiallyChecked: () => gv, toBeRequired: () => lv, toBeValid: () => pv, toBeVisible: () => rv, toContainElement: () => Il, toContainHTML: () => Jb, toHaveAccessibleDescription: () => Nl, toHaveAccessibleErrorMessage: () => Kb, toHaveAccessibleName: () => kl, toHaveAttribute: () => Yb, toHaveClass: () => Qb, toHaveDescription: () => bv, toHaveDisplayValue: () => hv, toHaveErrorMessage: () => vv, toHaveFocus: () => Zb, toHaveFormValues: () => ev, toHaveRole: () => jl, toHaveSelection: () => Ev, toHaveStyle: () => ql, toHaveTextContent: () => Xb, toHaveValue: () => fv, }); var F_ = Lt(O1(), 1); function Ib(e) { Object.defineProperty(e, "__esModule", { value: !0, configurable: !0 }); } s(Ib, "$parcel$defineInteropFlag"); function pd(e, t, r, n) { Object.defineProperty(e, t, { get: r, set: n, enumerable: !0, configurable: !0, }); } s(pd, "$parcel$export"); var BT = {}; Ib(BT); pd(BT, "default", () => $T); var LT = class extends Error { constructor(t, r, n, a, o) { (super(t + ":" + n + ":" + a + ": " + r), (this.reason = r), (this.filename = t), (this.line = n), (this.column = a), (this.source = o)); } }; s(LT, "$009ddb00d3ec72b8$export$2e2bcd8739ae039"); var $T = LT, UT = {}; Ib(UT); pd(UT, "default", () => VT); var HT = class { constructor(t, r, n) { ((this.start = t), (this.end = r), (this.source = n)); } }; s(HT, "$0865a9fb4cc365fe$export$2e2bcd8739ae039"); var VT = HT, Xz = {}; pd(Xz, "CssTypes", () => Wt); var Wt = (function (e) { return ( (e.stylesheet = "stylesheet"), (e.rule = "rule"), (e.declaration = "declaration"), (e.comment = "comment"), (e.container = "container"), (e.charset = "charset"), (e.document = "document"), (e.customMedia = "custom-media"), (e.fontFace = "font-face"), (e.host = "host"), (e.import = "import"), (e.keyframes = "keyframes"), (e.keyframe = "keyframe"), (e.layer = "layer"), (e.media = "media"), (e.namespace = "namespace"), (e.page = "page"), (e.startingStyle = "starting-style"), (e.supports = "supports"), e ); })({}), yp = /\/\*[^]*?(?:\*\/|$)/g, Kz = s((e, t) => { t = t || {}; let r = 1, n = 1; function a(V) { let Z = V.match(/\n/g); Z && (r += Z.length); let re = V.lastIndexOf(` `); n = ~re ? V.length - re : n + V.length; } s(a, "updatePosition"); function o() { let V = { line: r, column: n }; return function (Z) { return ( (Z.position = new VT(V, { line: r, column: n }, t?.source || "")), h(), Z ); }; } s(o, "position"); let i = []; function u(V) { let Z = new $T(t?.source || "", V, r, n, e); if (t?.silent) i.push(Z); else throw Z; } s(u, "error"); function l() { let V = p(); return { type: Wt.stylesheet, stylesheet: { source: t?.source, rules: V, parsingErrors: i }, }; } s(l, "stylesheet"); function c() { return f(/^{\s*/); } s(c, "open"); function d() { return f(/^}/); } s(d, "close"); function p() { let V, Z = []; for (h(), m(Z); e.length && e.charAt(0) !== "}" && (V = H() || K()); ) V && (Z.push(V), m(Z)); return Z; } s(p, "rules"); function f(V) { let Z = V.exec(e); if (!Z) return; let re = Z[0]; return (a(re), (e = e.slice(re.length)), Z); } s(f, "match"); function h() { f(/^\s*/); } s(h, "whitespace"); function m(V) { let Z; for (V = V || []; (Z = y()); ) Z && V.push(Z); return V; } s(m, "comments"); function y() { let V = o(); if (e.charAt(0) !== "/" || e.charAt(1) !== "*") return; let Z = f(/^\/\*[^]*?\*\//); return Z ? V({ type: Wt.comment, comment: Z[0].slice(2, -2) }) : u("End of comment missing"); } s(y, "comment"); function b(V, Z, re) { let he = Z + 1, oe = !1, ge = V.indexOf(")", he); for (; !oe && ge !== -1; ) { let be = V.indexOf("(", he); be !== -1 && be < ge ? ((he = b(V, be + 1) + 1), (ge = V.indexOf(")", he))) : (oe = !0); } return oe && ge !== -1 ? ge : -1; } s(b, "findClosingParenthese"); function g() { let V = f(/^([^{]+)/); if (!V) return; let Z = vr(V[0]).replace(yp, ""); if (Z.indexOf(",") === -1) return [Z]; let re = 0, he = Z.indexOf("(", re); for (; he !== -1; ) { let oe = b(Z, he); if (oe === -1) break; ((re = oe + 1), (Z = Z.substring(0, he) + Z.substring(he, oe).replace(/,/g, "‌") + Z.substring(oe)), (he = Z.indexOf("(", re))); } return ( (Z = Z.replace(/("|')(?:\\\1|.)*?\1/g, (oe) => oe.replace(/,/g, "‌"))), Z.split(",").map((oe) => vr(oe.replace(/\u200C/g, ","))) ); } s(g, "selector"); function v() { let V = o(), Z = f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/); if (!Z) return; let re = vr(Z[0]); if (!f(/^:\s*/)) return u("property missing ':'"); let he = f( /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)])*?\)|[^};])+)/, ), oe = V({ type: Wt.declaration, property: re.replace(yp, ""), value: he ? vr(he[0]).replace(yp, "") : "", }); return (f(/^[;\s]*/), oe); } s(v, "declaration"); function x() { let V = []; if (!c()) return u("missing '{'"); m(V); let Z; for (; (Z = v()); ) Z && (V.push(Z), m(V)); return d() ? V : u("missing '}'"); } s(x, "declarations"); function A() { let V, Z = [], re = o(); for (; (V = f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/)); ) (Z.push(V[1]), f(/^,\s*/)); if (Z.length) return re({ type: Wt.keyframe, values: Z, declarations: x() || [] }); } s(A, "keyframe"); function w() { let V = o(), Z = f(/^@([-\w]+)?keyframes\s*/); if (!Z) return; let re = Z[1], he = f(/^([-\w]+)\s*/); if (!he) return u("@keyframes missing name"); let oe = he[1]; if (!c()) return u("@keyframes missing '{'"); let ge, be = m(); for (; (ge = A()); ) (be.push(ge), (be = be.concat(m()))); return d() ? V({ type: Wt.keyframes, name: oe, vendor: re, keyframes: be }) : u("@keyframes missing '}'"); } s(w, "atkeyframes"); function C() { let V = o(), Z = f(/^@supports *([^{]+)/); if (!Z) return; let re = vr(Z[1]); if (!c()) return u("@supports missing '{'"); let he = m().concat(p()); return d() ? V({ type: Wt.supports, supports: re, rules: he }) : u("@supports missing '}'"); } s(C, "atsupports"); function E() { let V = o(); if (!f(/^@host\s*/)) return; if (!c()) return u("@host missing '{'"); let Z = m().concat(p()); return d() ? V({ type: Wt.host, rules: Z }) : u("@host missing '}'"); } s(E, "athost"); function _() { let V = o(), Z = f(/^@container *([^{]+)/); if (!Z) return; let re = vr(Z[1]); if (!c()) return u("@container missing '{'"); let he = m().concat(p()); return d() ? V({ type: Wt.container, container: re, rules: he }) : u("@container missing '}'"); } s(_, "atcontainer"); function P() { let V = o(), Z = f(/^@layer *([^{;@]+)/); if (!Z) return; let re = vr(Z[1]); if (!c()) return (f(/^[;\s]*/), V({ type: Wt.layer, layer: re })); let he = m().concat(p()); return d() ? V({ type: Wt.layer, layer: re, rules: he }) : u("@layer missing '}'"); } s(P, "atlayer"); function D() { let V = o(), Z = f(/^@media *([^{]+)/); if (!Z) return; let re = vr(Z[1]); if (!c()) return u("@media missing '{'"); let he = m().concat(p()); return d() ? V({ type: Wt.media, media: re, rules: he }) : u("@media missing '}'"); } s(D, "atmedia"); function F() { let V = o(), Z = f(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/); if (Z) return V({ type: Wt.customMedia, name: vr(Z[1]), media: vr(Z[2]) }); } s(F, "atcustommedia"); function L() { let V = o(); if (!f(/^@page */)) return; let Z = g() || []; if (!c()) return u("@page missing '{'"); let re = m(), he; for (; (he = v()); ) (re.push(he), (re = re.concat(m()))); return d() ? V({ type: Wt.page, selectors: Z, declarations: re }) : u("@page missing '}'"); } s(L, "atpage"); function q() { let V = o(), Z = f(/^@([-\w]+)?document *([^{]+)/); if (!Z) return; let re = vr(Z[1]), he = vr(Z[2]); if (!c()) return u("@document missing '{'"); let oe = m().concat(p()); return d() ? V({ type: Wt.document, document: he, vendor: re, rules: oe }) : u("@document missing '}'"); } s(q, "atdocument"); function T() { let V = o(); if (!f(/^@font-face\s*/)) return; if (!c()) return u("@font-face missing '{'"); let Z = m(), re; for (; (re = v()); ) (Z.push(re), (Z = Z.concat(m()))); return d() ? V({ type: Wt.fontFace, declarations: Z }) : u("@font-face missing '}'"); } s(T, "atfontface"); function k() { let V = o(); if (!f(/^@starting-style\s*/)) return; if (!c()) return u("@starting-style missing '{'"); let Z = m().concat(p()); return d() ? V({ type: Wt.startingStyle, rules: Z }) : u("@starting-style missing '}'"); } s(k, "atstartingstyle"); let I = se("import"), W = se("charset"), Q = se("namespace"); function se(V) { let Z = new RegExp( "^@" + V + `\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`, ); return function () { let re = o(), he = f(Z); if (!he) return; let oe = { type: V }; return ((oe[V] = he[1].trim()), re(oe)); }; } s(se, "_compileAtrule"); function H() { if (e[0] === "@") return ( w() || D() || F() || C() || I() || W() || Q() || q() || L() || E() || T() || _() || k() || P() ); } s(H, "atrule"); function K() { let V = o(), Z = g(); return Z ? (m(), V({ type: Wt.rule, selectors: Z, declarations: x() || [] })) : u("selector missing"); } return (s(K, "rule"), Dl(l())); }, "$d708735ed1303b43$export$98e6a39c04603d36"); function vr(e) { return e ? e.trim() : ""; } s(vr, "$d708735ed1303b43$var$trim"); function Dl(e, t) { let r = e && typeof e.type == "string", n = r ? e : t; for (let a in e) { let o = e[a]; Array.isArray(o) ? o.forEach((i) => { Dl(i, n); }) : o && typeof o == "object" && Dl(o, n); } return ( r && Object.defineProperty(e, "parent", { configurable: !0, writable: !0, enumerable: !1, value: t || null, }), e ); } s(Dl, "$d708735ed1303b43$var$addParent"); var Yz = Kz, Qz = Yz, Zz = Object.prototype.toString; function em(e) { return typeof e == "function" || Zz.call(e) === "[object Function]"; } s(em, "isCallable"); function zT(e) { var t = Number(e); return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t)); } s(zT, "toInteger"); var eG = Math.pow(2, 53) - 1; function GT(e) { var t = zT(e); return Math.min(Math.max(t, 0), eG); } s(GT, "toLength"); function Fr(e, t) { var r = Array, n = Object(e); if (e == null) throw new TypeError( "Array.from requires an array-like object - not null or undefined", ); if (typeof t < "u" && !em(t)) throw new TypeError( "Array.from: when provided, the second argument must be a function", ); for ( var a = GT(n.length), o = em(r) ? Object(new r(a)) : new Array(a), i = 0, u; i < a; ) ((u = n[i]), t ? (o[i] = t(u, i)) : (o[i] = u), (i += 1)); return ((o.length = a), o); } s(Fr, "arrayFrom"); function Ro(e) { "@babel/helpers - typeof"; return ( (Ro = 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; }), Ro(e) ); } s(Ro, "_typeof"); function WT(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } s(WT, "_classCallCheck"); function tm(e, t) { for (var r = 0; r < t.length; r++) { var n = t[r]; ((n.enumerable = n.enumerable || !1), (n.configurable = !0), "value" in n && (n.writable = !0), Object.defineProperty(e, Nb(n.key), n)); } } s(tm, "_defineProperties"); function JT(e, t, r) { return ( t && tm(e.prototype, t), r && tm(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e ); } s(JT, "_createClass"); function XT(e, t, r) { return ( (t = Nb(t)), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(XT, "_defineProperty"); function Nb(e) { var t = KT(e, "string"); return Ro(t) === "symbol" ? t : String(t); } s(Nb, "_toPropertyKey"); function KT(e, t) { if (Ro(e) !== "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var n = r.call(e, t || "default"); if (Ro(n) !== "object") return n; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } s(KT, "_toPrimitive"); var tG = (function () { function e() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; (WT(this, e), XT(this, "items", void 0), (this.items = t)); } return ( s(e, "SetLike"), JT(e, [ { key: "add", value: s(function (t) { return (this.has(t) === !1 && this.items.push(t), this); }, "add"), }, { key: "clear", value: s(function () { this.items = []; }, "clear"), }, { key: "delete", value: s(function (t) { var r = this.items.length; return ( (this.items = this.items.filter(function (n) { return n !== t; })), r !== this.items.length ); }, "_delete"), }, { key: "forEach", value: s(function (t) { var r = this; this.items.forEach(function (n) { t(n, n, r); }); }, "forEach"), }, { key: "has", value: s(function (t) { return this.items.indexOf(t) !== -1; }, "has"), }, { key: "size", get: s(function () { return this.items.length; }, "get"), }, ]), e ); })(), rG = typeof Set > "u" ? Set : tG; function Yt(e) { var t; return (t = e.localName) !== null && t !== void 0 ? t : e.tagName.toLowerCase(); } s(Yt, "getLocalName"); var nG = { article: "article", aside: "complementary", button: "button", datalist: "listbox", dd: "definition", details: "group", dialog: "dialog", dt: "term", fieldset: "group", figure: "figure", form: "form", footer: "contentinfo", h1: "heading", h2: "heading", h3: "heading", h4: "heading", h5: "heading", h6: "heading", header: "banner", hr: "separator", html: "document", legend: "legend", li: "listitem", math: "math", main: "main", menu: "list", nav: "navigation", ol: "list", optgroup: "group", option: "option", output: "status", progress: "progressbar", section: "region", summary: "button", table: "table", tbody: "rowgroup", textarea: "textbox", tfoot: "rowgroup", td: "cell", th: "columnheader", thead: "rowgroup", tr: "row", ul: "list", }, aG = { caption: new Set(["aria-label", "aria-labelledby"]), code: new Set(["aria-label", "aria-labelledby"]), deletion: new Set(["aria-label", "aria-labelledby"]), emphasis: new Set(["aria-label", "aria-labelledby"]), generic: new Set(["aria-label", "aria-labelledby", "aria-roledescription"]), insertion: new Set(["aria-label", "aria-labelledby"]), none: new Set(["aria-label", "aria-labelledby"]), paragraph: new Set(["aria-label", "aria-labelledby"]), presentation: new Set(["aria-label", "aria-labelledby"]), strong: new Set(["aria-label", "aria-labelledby"]), subscript: new Set(["aria-label", "aria-labelledby"]), superscript: new Set(["aria-label", "aria-labelledby"]), }; function YT(e, t) { return [ "aria-atomic", "aria-busy", "aria-controls", "aria-current", "aria-description", "aria-describedby", "aria-details", "aria-dropeffect", "aria-flowto", "aria-grabbed", "aria-hidden", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-live", "aria-owns", "aria-relevant", "aria-roledescription", ].some(function (r) { var n; return ( e.hasAttribute(r) && !((n = aG[t]) !== null && n !== void 0 && n.has(r)) ); }); } s(YT, "hasGlobalAriaAttributes"); function jb(e, t) { return YT(e, t); } s(jb, "ignorePresentationalRole"); function QT(e) { var t = eO(e); if (t === null || rm.indexOf(t) !== -1) { var r = ZT(e); if (rm.indexOf(t || "") === -1 || jb(e, r || "")) return r; } return t; } s(QT, "getRole"); function ZT(e) { var t = nG[Yt(e)]; if (t !== void 0) return t; switch (Yt(e)) { case "a": case "area": case "link": if (e.hasAttribute("href")) return "link"; break; case "img": return e.getAttribute("alt") === "" && !jb(e, "img") ? "presentation" : "img"; case "input": { var r = e, n = r.type; switch (n) { case "button": case "image": case "reset": case "submit": return "button"; case "checkbox": case "radio": return n; case "range": return "slider"; case "email": case "tel": case "text": case "url": return e.hasAttribute("list") ? "combobox" : "textbox"; case "search": return e.hasAttribute("list") ? "combobox" : "searchbox"; case "number": return "spinbutton"; default: return null; } } case "select": return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox"; } return null; } s(ZT, "getImplicitRole"); function eO(e) { var t = e.getAttribute("role"); if (t !== null) { var r = t.trim().split(" ")[0]; if (r.length > 0) return r; } return null; } s(eO, "getExplicitRole"); var rm = ["presentation", "none"]; function wt(e) { return e !== null && e.nodeType === e.ELEMENT_NODE; } s(wt, "isElement"); function kb(e) { return wt(e) && Yt(e) === "caption"; } s(kb, "isHTMLTableCaptionElement"); function Oi(e) { return wt(e) && Yt(e) === "input"; } s(Oi, "isHTMLInputElement"); function tO(e) { return wt(e) && Yt(e) === "optgroup"; } s(tO, "isHTMLOptGroupElement"); function rO(e) { return wt(e) && Yt(e) === "select"; } s(rO, "isHTMLSelectElement"); function nO(e) { return wt(e) && Yt(e) === "table"; } s(nO, "isHTMLTableElement"); function aO(e) { return wt(e) && Yt(e) === "textarea"; } s(aO, "isHTMLTextAreaElement"); function oO(e) { var t = e.ownerDocument === null ? e : e.ownerDocument, r = t.defaultView; if (r === null) throw new TypeError("no window available"); return r; } s(oO, "safeWindow"); function iO(e) { return wt(e) && Yt(e) === "fieldset"; } s(iO, "isHTMLFieldSetElement"); function sO(e) { return wt(e) && Yt(e) === "legend"; } s(sO, "isHTMLLegendElement"); function uO(e) { return wt(e) && Yt(e) === "slot"; } s(uO, "isHTMLSlotElement"); function lO(e) { return wt(e) && e.ownerSVGElement !== void 0; } s(lO, "isSVGElement"); function cO(e) { return wt(e) && Yt(e) === "svg"; } s(cO, "isSVGSVGElement"); function dO(e) { return lO(e) && Yt(e) === "title"; } s(dO, "isSVGTitleElement"); function Zi(e, t) { if (wt(e) && e.hasAttribute(t)) { var r = e.getAttribute(t).split(" "), n = e.getRootNode ? e.getRootNode() : e.ownerDocument; return r .map(function (a) { return n.getElementById(a); }) .filter(function (a) { return a !== null; }); } return []; } s(Zi, "queryIdRefs"); function an(e, t) { return wt(e) ? t.indexOf(QT(e)) !== -1 : !1; } s(an, "hasAnyConcreteRoles"); function pO(e) { return e.trim().replace(/\s\s+/g, " "); } s(pO, "asFlatString"); function fO(e, t) { if (!wt(e)) return !1; if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true") return !0; var r = t(e); return ( r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden" ); } s(fO, "isHidden"); function hO(e) { return an(e, ["button", "combobox", "listbox", "textbox"]) || qb(e, "range"); } s(hO, "isControl"); function qb(e, t) { if (!wt(e)) return !1; switch (t) { case "range": return an(e, [ "meter", "progressbar", "scrollbar", "slider", "spinbutton", ]); default: throw new TypeError( "No knowledge about abstract role '".concat( t, "'. This is likely a bug :(", ), ); } } s(qb, "hasAbstractRole"); function nm(e, t) { var r = Fr(e.querySelectorAll(t)); return ( Zi(e, "aria-owns").forEach(function (n) { r.push.apply(r, Fr(n.querySelectorAll(t))); }), r ); } s(nm, "querySelectorAllSubtree"); function mO(e) { return rO(e) ? e.selectedOptions || nm(e, "[selected]") : nm(e, '[aria-selected="true"]'); } s(mO, "querySelectedOptions"); function yO(e) { return an(e, rm); } s(yO, "isMarkedPresentational"); function gO(e) { return kb(e); } s(gO, "isNativeHostLanguageTextAlternativeElement"); function bO(e) { return an(e, [ "button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem", ]); } s(bO, "allowsNameFromContent"); function vO(e) { return !1; } s(vO, "isDescendantOfNativeHostLanguageTextAlternativeElement"); function EO(e) { return Oi(e) || aO(e) ? e.value : e.textContent || ""; } s(EO, "getValueOfTextbox"); function am(e) { var t = e.getPropertyValue("content"); return /^["'].*["']$/.test(t) ? t.slice(1, -1) : ""; } s(am, "getTextualContent"); function Mb(e) { var t = Yt(e); return ( t === "button" || (t === "input" && e.getAttribute("type") !== "hidden") || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea" ); } s(Mb, "isLabelableElement"); function Bb(e) { if (Mb(e)) return e; var t = null; return ( e.childNodes.forEach(function (r) { if (t === null && wt(r)) { var n = Bb(r); n !== null && (t = n); } }), t ); } s(Bb, "findLabelableElement"); function _O(e) { if (e.control !== void 0) return e.control; var t = e.getAttribute("for"); return t !== null ? e.ownerDocument.getElementById(t) : Bb(e); } s(_O, "getControlOfLabel"); function CO(e) { var t = e.labels; if (t === null) return t; if (t !== void 0) return Fr(t); if (!Mb(e)) return null; var r = e.ownerDocument; return Fr(r.querySelectorAll("label")).filter(function (n) { return _O(n) === e; }); } s(CO, "getLabels"); function wO(e) { var t = e.assignedNodes(); return t.length === 0 ? Fr(e.childNodes) : t; } s(wO, "getSlotContents"); function Lb(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new rG(), n = oO(e), a = t.compute, o = a === void 0 ? "name" : a, i = t.computedStyleSupportsPseudoElements, u = i === void 0 ? t.getComputedStyle !== void 0 : i, l = t.getComputedStyle, c = l === void 0 ? n.getComputedStyle.bind(n) : l, d = t.hidden, p = d === void 0 ? !1 : d; function f(g, v) { var x = ""; if (wt(g) && u) { var A = c(g, "::before"), w = am(A); x = "".concat(w, " ").concat(x); } var C = uO(g) ? wO(g) : Fr(g.childNodes).concat(Zi(g, "aria-owns")); if ( (C.forEach(function (P) { var D = b(P, { isEmbeddedInLabel: v.isEmbeddedInLabel, isReferenced: !1, recursion: !0, }), F = wt(P) ? c(P).getPropertyValue("display") : "inline", L = F !== "inline" ? " " : ""; x += "".concat(L).concat(D).concat(L); }), wt(g) && u) ) { var E = c(g, "::after"), _ = am(E); x = "".concat(x, " ").concat(_); } return x.trim(); } s(f, "computeMiscTextAlternative"); function h(g, v) { var x = g.getAttributeNode(v); return x !== null && !r.has(x) && x.value.trim() !== "" ? (r.add(x), x.value) : null; } s(h, "useAttribute"); function m(g) { return wt(g) ? h(g, "title") : null; } s(m, "computeTooltipAttributeValue"); function y(g) { if (!wt(g)) return null; if (iO(g)) { r.add(g); for (var v = Fr(g.childNodes), x = 0; x < v.length; x += 1) { var A = v[x]; if (sO(A)) return b(A, { isEmbeddedInLabel: !1, isReferenced: !1, recursion: !1, }); } } else if (nO(g)) { r.add(g); for (var w = Fr(g.childNodes), C = 0; C < w.length; C += 1) { var E = w[C]; if (kb(E)) return b(E, { isEmbeddedInLabel: !1, isReferenced: !1, recursion: !1, }); } } else if (cO(g)) { r.add(g); for (var _ = Fr(g.childNodes), P = 0; P < _.length; P += 1) { var D = _[P]; if (dO(D)) return D.textContent; } return null; } else if (Yt(g) === "img" || Yt(g) === "area") { var F = h(g, "alt"); if (F !== null) return F; } else if (tO(g)) { var L = h(g, "label"); if (L !== null) return L; } if ( Oi(g) && (g.type === "button" || g.type === "submit" || g.type === "reset") ) { var q = h(g, "value"); if (q !== null) return q; if (g.type === "submit") return "Submit"; if (g.type === "reset") return "Reset"; } var T = CO(g); if (T !== null && T.length !== 0) return ( r.add(g), Fr(T) .map(function (Q) { return b(Q, { isEmbeddedInLabel: !0, isReferenced: !1, recursion: !0, }); }) .filter(function (Q) { return Q.length > 0; }) .join(" ") ); if (Oi(g) && g.type === "image") { var k = h(g, "alt"); if (k !== null) return k; var I = h(g, "title"); return I !== null ? I : "Submit Query"; } if (an(g, ["button"])) { var W = f(g, { isEmbeddedInLabel: !1 }); if (W !== "") return W; } return null; } s(y, "computeElementTextAlternative"); function b(g, v) { if (r.has(g)) return ""; if (!p && fO(g, c) && !v.isReferenced) return (r.add(g), ""); var x = wt(g) ? g.getAttributeNode("aria-labelledby") : null, A = x !== null && !r.has(x) ? Zi(g, "aria-labelledby") : []; if (o === "name" && !v.isReferenced && A.length > 0) return ( r.add(x), A.map(function (F) { return b(F, { isEmbeddedInLabel: v.isEmbeddedInLabel, isReferenced: !0, recursion: !1, }); }).join(" ") ); var w = v.recursion && hO(g) && o === "name"; if (!w) { var C = ((wt(g) && g.getAttribute("aria-label")) || "").trim(); if (C !== "" && o === "name") return (r.add(g), C); if (!yO(g)) { var E = y(g); if (E !== null) return (r.add(g), E); } } if (an(g, ["menu"])) return (r.add(g), ""); if (w || v.isEmbeddedInLabel || v.isReferenced) { if (an(g, ["combobox", "listbox"])) { r.add(g); var _ = mO(g); return _.length === 0 ? Oi(g) ? g.value : "" : Fr(_) .map(function (F) { return b(F, { isEmbeddedInLabel: v.isEmbeddedInLabel, isReferenced: !1, recursion: !0, }); }) .join(" "); } if (qb(g, "range")) return ( r.add(g), g.hasAttribute("aria-valuetext") ? g.getAttribute("aria-valuetext") : g.hasAttribute("aria-valuenow") ? g.getAttribute("aria-valuenow") : g.getAttribute("value") || "" ); if (an(g, ["textbox"])) return (r.add(g), EO(g)); } if (bO(g) || (wt(g) && v.isReferenced) || gO(g) || vO()) { var P = f(g, { isEmbeddedInLabel: v.isEmbeddedInLabel }); if (P !== "") return (r.add(g), P); } if (g.nodeType === g.TEXT_NODE) return (r.add(g), g.textContent || ""); if (v.recursion) return (r.add(g), f(g, { isEmbeddedInLabel: v.isEmbeddedInLabel })); var D = m(g); return D !== null ? (r.add(g), D) : (r.add(g), ""); } return ( s(b, "computeTextAlternative"), pO( b(e, { isEmbeddedInLabel: !1, isReferenced: o === "description", recursion: !1, }), ) ); } s(Lb, "computeTextAlternative"); function To(e) { "@babel/helpers - typeof"; return ( (To = 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; }), To(e) ); } s(To, "_typeof"); function om(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); (t && (n = n.filter(function (a) { return Object.getOwnPropertyDescriptor(e, a).enumerable; })), r.push.apply(r, n)); } return r; } s(om, "ownKeys"); function im(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? om(Object(r), !0).forEach(function (n) { AO(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : om(Object(r)).forEach(function (n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } s(im, "_objectSpread"); function AO(e, t, r) { return ( (t = SO(t)), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(AO, "_defineProperty"); function SO(e) { var t = xO(e, "string"); return To(t) === "symbol" ? t : String(t); } s(SO, "_toPropertyKey"); function xO(e, t) { if (To(e) !== "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var n = r.call(e, t || "default"); if (To(n) !== "object") return n; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } s(xO, "_toPrimitive"); function PO(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Zi(e, "aria-describedby") .map(function (o) { return Lb(o, im(im({}, t), {}, { compute: "description" })); }) .join(" "); if (r === "") { var n = e.getAttribute("aria-description"); r = n === null ? "" : n; } if (r === "") { var a = e.getAttribute("title"); r = a === null ? "" : a; } return r; } s(PO, "computeAccessibleDescription"); function RO(e) { return an(e, [ "caption", "code", "deletion", "emphasis", "generic", "insertion", "none", "paragraph", "presentation", "strong", "subscript", "superscript", ]); } s(RO, "prohibitsNaming"); function TO(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return RO(e) ? "" : Lb(e, t); } s(TO, "computeAccessibleName"); var $b = Lt(D1(), 1), oG = Lt(I1(), 1), Ub = Lt(V1(), 1), iG = Lt(z1(), 1), OO = class extends Error { constructor(t, r, n, a) { (super(), Error.captureStackTrace && Error.captureStackTrace(this, n)); let o = ""; try { o = a.utils.printWithType("Received", r, a.utils.printReceived); } catch {} this.message = [ a.utils.matcherHint( `${a.isNot ? ".not" : ""}.${n.name}`, "received", "", ), "", `${a.utils.RECEIVED_COLOR("received")} value must ${t}.`, o, ].join(` `); } }; s(OO, "GenericTypeError"); var DO = OO, FO = class extends DO { constructor(...t) { super("be an HTMLElement or an SVGElement", ...t); } }; s(FO, "HtmlElementTypeError"); var I_ = FO, IO = class extends DO { constructor(...t) { super("be a Node", ...t); } }; s(IO, "NodeTypeError"); var N_ = IO; function Hb(e, t, ...r) { if (!e || !e.ownerDocument || !e.ownerDocument.defaultView) throw new t(e, ...r); } s(Hb, "checkHasWindow"); function NO(e, ...t) { Hb(e, N_, ...t); let r = e.ownerDocument.defaultView; if (!(e instanceof r.Node)) throw new N_(e, ...t); } s(NO, "checkNode"); function ct(e, ...t) { Hb(e, I_, ...t); let r = e.ownerDocument.defaultView; if (!(e instanceof r.HTMLElement) && !(e instanceof r.SVGElement)) throw new I_(e, ...t); } s(ct, "checkHtmlElement"); var jO = class extends Error { constructor(t, r, n) { (super(), Error.captureStackTrace && Error.captureStackTrace(this, r), (this.message = [ t.message, "", n.utils.RECEIVED_COLOR("Failing css:"), n.utils.RECEIVED_COLOR(`${t.css}`), ].join(` `))); } }; s(jO, "InvalidCSSError"); var sG = jO; function kO(e, ...t) { let r = Qz(`selector { ${e} }`, { silent: !0 }).stylesheet; if (r.parsingErrors && r.parsingErrors.length > 0) { let { reason: n, line: a } = r.parsingErrors[0]; throw new sG( { css: e, message: `Syntax error parsing expected css: ${n} on line: ${a}`, }, ...t, ); } return r.rules[0].declarations .filter((n) => n.type === "declaration") .reduce((n, { property: a, value: o }) => Object.assign(n, { [a]: o }), {}); } s(kO, "parseCSS"); function sm(e, t) { return typeof t == "string" ? t : e.utils.stringify(t); } s(sm, "display"); function Jt(e, t, r, n, a, o) { return [ `${t} `, `${r}: ${e.utils.EXPECTED_COLOR((0, F_.default)(sm(e, n), 2))}`, `${a}: ${e.utils.RECEIVED_COLOR((0, F_.default)(sm(e, o), 2))}`, ].join(` `); } s(Jt, "getMessage"); function qO(e, t) { return t instanceof RegExp ? t.test(e) : e.includes(String(t)); } s(qO, "matches"); function Ts(e, t) { console.warn( `Warning: ${e} has been deprecated and will be removed in future updates.`, t, ); } s(Ts, "deprecate"); function Os(e) { return e.replace(/\s+/g, " ").trim(); } s(Os, "normalize"); function Dn(e) { return e.tagName && e.tagName.toLowerCase(); } s(Dn, "getTag"); function MO({ multiple: e, options: t }) { let r = [...t].filter((n) => n.selected); if (e) return [...r].map((n) => n.value); if (r.length !== 0) return r[0].value; } s(MO, "getSelectValue"); function BO(e) { switch (e.type) { case "number": return e.value === "" ? null : Number(e.value); case "checkbox": return e.checked; default: return e.value; } } s(BO, "getInputValue"); var uG = ["meter", "progressbar", "slider", "spinbutton"]; function LO(e) { if (uG.includes(e.getAttribute("role"))) return Number(e.getAttribute("aria-valuenow")); } s(LO, "getAccessibleValue"); function Vb(e) { if (e) switch (e.tagName.toLowerCase()) { case "input": return BO(e); case "select": return MO(e); default: return e.value ?? LO(e); } } s(Vb, "getSingleElementValue"); function $O( e, { wordConnector: t = ", ", lastWordConnector: r = " and " } = {}, ) { return [e.slice(0, -1).join(t), e[e.length - 1]].join(e.length > 1 ? r : ""); } s($O, "toSentence"); function fd(e, t) { if (Array.isArray(e) && Array.isArray(t)) return [...new Set(e)].every((r) => new Set(t).has(r)); } s(fd, "compareArraysAsSet"); function Fl(e, t) { return ( Ts( "toBeInTheDOM", "Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container.", ), e && ct(e, Fl, this), t && ct(t, Fl, this), { pass: t ? t.contains(e) : !!e, message: s( () => [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeInTheDOM`, "element", "", ), "", "Received:", ` ${this.utils.printReceived(e && e.cloneNode(!1))}`, ].join(` `), "message", ), } ); } s(Fl, "toBeInTheDOM"); function zb(e) { (e !== null || !this.isNot) && ct(e, zb, this); let t = e === null ? !1 : e.ownerDocument === e.getRootNode({ composed: !0 }), r = s( () => `expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`, "errorFound", ), n = s(() => "element could not be found in the document", "errorNotFound"); return { pass: t, message: s( () => [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeInTheDocument`, "element", "", ), "", this.utils.RECEIVED_COLOR(this.isNot ? r() : n()), ].join(` `), "message", ), }; } s(zb, "toBeInTheDocument"); function Gb(e) { return ( Ts( "toBeEmpty", "Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.", ), ct(e, Gb, this), { pass: e.innerHTML === "", message: s( () => [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeEmpty`, "element", "", ), "", "Received:", ` ${this.utils.printReceived(e.innerHTML)}`, ].join(` `), "message", ), } ); } s(Gb, "toBeEmpty"); function Wb(e) { return ( ct(e, Wb, this), { pass: UO(e), message: s( () => [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeEmptyDOMElement`, "element", "", ), "", "Received:", ` ${this.utils.printReceived(e.innerHTML)}`, ].join(` `), "message", ), } ); } s(Wb, "toBeEmptyDOMElement"); function UO(e) { return [...e.childNodes].filter((t) => t.nodeType !== 8).length === 0; } s(UO, "isEmptyElement"); function Il(e, t) { return ( ct(e, Il, this), t !== null && ct(t, Il, this), { pass: e.contains(t), message: s( () => [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toContainElement`, "element", "element", ), "", this.utils .RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot ? "contains:" : "does not contain:"} ${this.utils.stringify(t && t.cloneNode(!1))} `), ].join(` `), "message", ), } ); } s(Il, "toContainElement"); function HO(e, t) { let r = e.ownerDocument.createElement("div"); return ((r.innerHTML = t), r.innerHTML); } s(HO, "getNormalizedHtml"); function Jb(e, t) { if ((ct(e, Jb, this), typeof t != "string")) throw new Error(`.toContainHTML() expects a string value, got ${t}`); return { pass: e.outerHTML.includes(HO(e, t)), message: s( () => [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toContainHTML`, "element", "", ), "Expected:", ` ${this.utils.EXPECTED_COLOR(t)}`, "Received:", ` ${this.utils.printReceived(e.cloneNode(!0))}`, ].join(` `), "message", ), }; } s(Jb, "toContainHTML"); function Xb(e, t, r = { normalizeWhitespace: !0 }) { NO(e, Xb, this); let n = r.normalizeWhitespace ? Os(e.textContent) : e.textContent.replace(/\u00a0/g, " "), a = n !== "" && t === ""; return { pass: !a && qO(n, t), message: s(() => { let o = this.isNot ? "not to" : "to"; return Jt( this, this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toHaveTextContent`, "element", "", ), a ? "Checking with empty string will always match, use .toBeEmptyDOMElement() instead" : `Expected element ${o} have text content`, t, "Received", n, ); }, "message"), }; } s(Xb, "toHaveTextContent"); function Nl(e, t) { ct(e, Nl, this); let r = PO(e), n = arguments.length === 1, a = !1; return ( n ? (a = r !== "") : (a = t instanceof RegExp ? t.test(r) : this.equals(r, t)), { pass: a, message: s(() => { let o = this.isNot ? "not to" : "to"; return Jt( this, this.utils.matcherHint( `${this.isNot ? ".not" : ""}.${Nl.name}`, "element", "", ), `Expected element ${o} have accessible description`, t, "Received", r, ); }, "message"), } ); } s(Nl, "toHaveAccessibleDescription"); var li = "aria-invalid", lG = ["false"]; function Kb(e, t) { ct(e, Kb, this); let r = this.isNot ? "not to" : "to", n = this.isNot ? ".not.toHaveAccessibleErrorMessage" : ".toHaveAccessibleErrorMessage", a = e.getAttribute("aria-errormessage"); if (a && /\s+/.test(a)) return { pass: !1, message: s( () => Jt( this, this.utils.matcherHint(n, "element"), "Expected element's `aria-errormessage` attribute to be empty or a single, valid ID", "", "Received", `aria-errormessage="${a}"`, ), "message", ), }; let o = e.getAttribute(li); if (!e.hasAttribute(li) || lG.includes(o)) return { pass: !1, message: s( () => Jt( this, this.utils.matcherHint(n, "element"), "Expected element to be marked as invalid with attribute", `${li}="${String(!0)}"`, "Received", e.hasAttribute("aria-invalid") ? `${li}="${e.getAttribute(li)}` : null, ), "message", ), }; let i = Os(e.ownerDocument.getElementById(a)?.textContent ?? ""); return { pass: t === void 0 ? !!i : t instanceof RegExp ? t.test(i) : this.equals(i, t), message: s( () => Jt( this, this.utils.matcherHint(n, "element"), `Expected element ${r} have accessible error message`, t ?? "", "Received", i, ), "message", ), }; } s(Kb, "toHaveAccessibleErrorMessage"); var cG = GO($b.elementRoles); function jl(e, t) { ct(e, jl, this); let r = VO(e); return { pass: r.some((n) => n === t), message: s(() => { let n = this.isNot ? "not to" : "to"; return Jt( this, this.utils.matcherHint( `${this.isNot ? ".not" : ""}.${jl.name}`, "element", "", ), `Expected element ${n} have role`, t, "Received", r.join(", "), ); }, "message"), }; } s(jl, "toHaveRole"); function VO(e) { return e.hasAttribute("role") ? e.getAttribute("role").split(" ").filter(Boolean) : zO(e); } s(VO, "getExplicitOrImplicitRoles"); function zO(e) { for (let { match: t, roles: r } of cG) if (t(e)) return [...r]; return []; } s(zO, "getImplicitAriaRoles"); function GO(e) { function t({ name: i, attributes: u }) { return `${i}${u.map(({ name: l, value: c, constraints: d = [] }) => (d.indexOf("undefined") !== -1 ? `:not([${l}])` : c ? `[${l}="${c}"]` : `[${l}]`)).join("")}`; } s(t, "makeElementSelector"); function r({ attributes: i = [] }) { return i.length; } s(r, "getSelectorSpecificity"); function n({ specificity: i }, { specificity: u }) { return u - i; } s(n, "bySelectorSpecificity"); function a(i) { let { attributes: u = [] } = i, l = u.findIndex( (d) => d.value && d.name === "type" && d.value === "text", ); l >= 0 && (u = [...u.slice(0, l), ...u.slice(l + 1)]); let c = t({ ...i, attributes: u }); return (d) => (l >= 0 && d.type !== "text" ? !1 : d.matches(c)); } s(a, "match"); let o = []; for (let [i, u] of e.entries()) o = [...o, { match: a(i), roles: Array.from(u), specificity: r(i) }]; return o.sort(n); } s(GO, "buildElementRoleList"); function kl(e, t) { ct(e, kl, this); let r = TO(e), n = arguments.length === 1, a = !1; return ( n ? (a = r !== "") : (a = t instanceof RegExp ? t.test(r) : this.equals(r, t)), { pass: a, message: s(() => { let o = this.isNot ? "not to" : "to"; return Jt( this, this.utils.matcherHint( `${this.isNot ? ".not" : ""}.${kl.name}`, "element", "", ), `Expected element ${o} have accessible name`, t, "Received", r, ); }, "message"), } ); } s(kl, "toHaveAccessibleName"); function um(e, t, r) { return r === void 0 ? t : `${t}=${e(r)}`; } s(um, "printAttribute"); function WO(e, t, r) { return r === void 0 ? `element.hasAttribute(${e(t)})` : `element.getAttribute(${e(t)}) === ${e(r)}`; } s(WO, "getAttributeComment"); function Yb(e, t, r) { ct(e, Yb, this); let n = r !== void 0, a = e.hasAttribute(t), o = e.getAttribute(t); return { pass: n ? a && this.equals(o, r) : a, message: s(() => { let i = this.isNot ? "not to" : "to", u = a ? um(this.utils.stringify, t, o) : null, l = this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toHaveAttribute`, "element", this.utils.printExpected(t), { secondArgument: n ? this.utils.printExpected(r) : void 0, comment: WO(this.utils.stringify, t, r), }, ); return Jt( this, l, `Expected the element ${i} have attribute`, um(this.utils.stringify, t, r), "Received", u, ); }, "message"), }; } s(Yb, "toHaveAttribute"); function JO(e) { let t = e.pop(), r, n; return ( typeof t == "object" && !(t instanceof RegExp) ? ((r = e), (n = t)) : ((r = e.concat(t)), (n = { exact: !1 })), { expectedClassNames: r, options: n } ); } s(JO, "getExpectedClassNamesAndOptions"); function lm(e) { return e ? e.split(/\s+/).filter((t) => t.length > 0) : []; } s(lm, "splitClassNames"); function cm(e, t) { return e.every((r) => typeof r == "string" ? t.includes(r) : t.some((n) => r.test(n)), ); } s(cm, "isSubset$1"); function Qb(e, ...t) { ct(e, Qb, this); let { expectedClassNames: r, options: n } = JO(t), a = lm(e.getAttribute("class")), o = r.reduce( (u, l) => u.concat(typeof l == "string" || !l ? lm(l) : l), [], ), i = o.some((u) => u instanceof RegExp); if (n.exact && i) throw new Error( "Exact option does not support RegExp expected class names", ); return n.exact ? { pass: cm(o, a) && o.length === a.length, message: s(() => { let u = this.isNot ? "not to" : "to"; return Jt( this, this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toHaveClass`, "element", this.utils.printExpected(o.join(" ")), ), `Expected the element ${u} have EXACTLY defined classes`, o.join(" "), "Received", a.join(" "), ); }, "message"), } : o.length > 0 ? { pass: cm(o, a), message: s(() => { let u = this.isNot ? "not to" : "to"; return Jt( this, this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toHaveClass`, "element", this.utils.printExpected(o.join(" ")), ), `Expected the element ${u} have class`, o.join(" "), "Received", a.join(" "), ); }, "message"), } : { pass: this.isNot ? a.length > 0 : !1, message: s( () => this.isNot ? Jt( this, this.utils.matcherHint(".not.toHaveClass", "element", ""), "Expected the element to have classes", "(none)", "Received", a.join(" "), ) : [ this.utils.matcherHint(".toHaveClass", "element"), "At least one expected class must be provided.", ].join(` `), "message", ), }; } s(Qb, "toHaveClass"); function XO(e, t) { let r = {}, n = e.createElement("div"); return ( Object.keys(t).forEach((a) => { ((n.style[a] = t[a]), (r[a] = n.style[a])); }), r ); } s(XO, "getStyleDeclaration"); function KO(e, t) { return ( !!Object.keys(e).length && Object.entries(e).every(([r, n]) => { let a = r.startsWith("--"), o = [r]; return ( a || o.push(r.toLowerCase()), o.some((i) => t[i] === n || t.getPropertyValue(i) === n) ); }) ); } s(KO, "isSubset"); function dm(e) { return Object.keys(e) .sort() .map((t) => `${t}: ${e[t]};`).join(` `); } s(dm, "printoutStyles"); function YO(e, t, r) { let n = Array.from(r) .filter((a) => t[a] !== void 0) .reduce((a, o) => Object.assign(a, { [o]: r.getPropertyValue(o) }), {}); return e(dm(t), dm(n)).replace( `${oG.default.red("+ Received")} `, "", ); } s(YO, "expectedDiff"); function ql(e, t) { ct(e, ql, this); let r = typeof t == "object" ? t : kO(t, ql, this), { getComputedStyle: n } = e.ownerDocument.defaultView, a = XO(e.ownerDocument, r), o = n(e); return { pass: KO(a, o), message: s(() => { let i = `${this.isNot ? ".not" : ""}.toHaveStyle`; return [ this.utils.matcherHint(i, "element", ""), YO(this.utils.diff, a, o), ].join(` `); }, "message"), }; } s(ql, "toHaveStyle"); function Zb(e) { return ( ct(e, Zb, this), { pass: e.ownerDocument.activeElement === e, message: s( () => [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toHaveFocus`, "element", "", ), "", ...(this.isNot ? [ "Received element is focused:", ` ${this.utils.printReceived(e)}`, ] : [ "Expected element with focus:", ` ${this.utils.printExpected(e)}`, "Received element with focus:", ` ${this.utils.printReceived(e.ownerDocument.activeElement)}`, ]), ].join(` `), "message", ), } ); } s(Zb, "toHaveFocus"); function QO(e) { let t = [...new Set(e.map((r) => r.type))]; if (t.length !== 1) throw new Error( "Multiple form elements with the same name must be of the same type", ); switch (t[0]) { case "radio": { let r = e.find((n) => n.checked); return r ? r.value : void 0; } case "checkbox": return e.filter((r) => r.checked).map((r) => r.value); default: return e.map((r) => r.value); } } s(QO, "getMultiElementValue"); function ZO(e, t) { let r = [...e.querySelectorAll(`[name="${(0, iG.default)(t)}"]`)]; if (r.length !== 0) switch (r.length) { case 1: return Vb(r[0]); default: return QO(r); } } s(ZO, "getFormValue"); function eD(e) { return /\[\]$/.test(e) ? e.slice(0, -2) : e; } s(eD, "getPureName"); function tD(e) { return Array.from(e.elements) .map((t) => t.name) .reduce((t, r) => ({ ...t, [eD(r)]: ZO(e, r) }), {}); } s(tD, "getAllFormValues"); function ev(e, t) { if ((ct(e, ev, this), !e.elements)) throw new Error("toHaveFormValues must be called on a form or a fieldset"); let r = tD(e); return { pass: Object.entries(t).every(([n, a]) => (0, Ub.default)(r[n], a, fd)), message: s(() => { let n = this.isNot ? "not to" : "to", a = `${this.isNot ? ".not" : ""}.toHaveFormValues`, o = Object.keys(r) .filter((i) => t.hasOwnProperty(i)) .reduce((i, u) => ({ ...i, [u]: r[u] }), {}); return [ this.utils.matcherHint(a, "element", ""), `Expected the element ${n} have form values`, this.utils.diff(t, o), ].join(` `); }, "message"), }; } s(ev, "toHaveFormValues"); function rD(e) { let { getComputedStyle: t } = e.ownerDocument.defaultView, { display: r, visibility: n, opacity: a } = t(e); return ( r !== "none" && n !== "hidden" && n !== "collapse" && a !== "0" && a !== 0 ); } s(rD, "isStyleVisible"); function nD(e, t) { let r; return ( t ? (r = e.nodeName === "DETAILS" && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0) : (r = e.nodeName === "DETAILS" ? e.hasAttribute("open") : !0), !e.hasAttribute("hidden") && r ); } s(nD, "isAttributeVisible"); function tv(e, t) { return rD(e) && nD(e, t) && (!e.parentElement || tv(e.parentElement, e)); } s(tv, "isElementVisible"); function rv(e) { ct(e, rv, this); let t = e.ownerDocument === e.getRootNode({ composed: !0 }), r = t && tv(e); return { pass: r, message: s(() => { let n = r ? "is" : "is not"; return [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeVisible`, "element", "", ), "", `Received element ${n} visible${t ? "" : " (element is not in the document)"}:`, ` ${this.utils.printReceived(e.cloneNode(!1))}`, ].join(` `); }, "message"), }; } s(rv, "toBeVisible"); var dG = [ "fieldset", "input", "select", "optgroup", "option", "button", "textarea", ]; function aD(e, t) { return ( Dn(e) === "legend" && Dn(t) === "fieldset" && e.isSameNode(Array.from(t.children).find((r) => Dn(r) === "legend")) ); } s(aD, "isFirstLegendChildOfFieldset"); function oD(e, t) { return av(t) && !aD(e, t); } s(oD, "isElementDisabledByParent"); function iD(e) { return e.includes("-"); } s(iD, "isCustomElement"); function nv(e) { let t = Dn(e); return dG.includes(t) || iD(t); } s(nv, "canElementBeDisabled"); function av(e) { return nv(e) && e.hasAttribute("disabled"); } s(av, "isElementDisabled"); function ov(e) { let t = e.parentElement; return !!t && (oD(e, t) || ov(t)); } s(ov, "isAncestorDisabled"); function iv(e) { return nv(e) && (av(e) || ov(e)); } s(iv, "isElementOrAncestorDisabled"); function sv(e) { ct(e, sv, this); let t = iv(e); return { pass: t, message: s(() => { let r = t ? "is" : "is not"; return [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeDisabled`, "element", "", ), "", `Received element ${r} disabled:`, ` ${this.utils.printReceived(e.cloneNode(!1))}`, ].join(` `); }, "message"), }; } s(sv, "toBeDisabled"); function uv(e) { ct(e, uv, this); let t = !iv(e); return { pass: t, message: s(() => { let r = t ? "is" : "is not"; return [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeEnabled`, "element", "", ), "", `Received element ${r} enabled:`, ` ${this.utils.printReceived(e.cloneNode(!1))}`, ].join(` `); }, "message"), }; } s(uv, "toBeEnabled"); var pG = ["select", "textarea"], fG = ["input", "select", "textarea"], hG = ["color", "hidden", "range", "submit", "image", "reset"], mG = [ "checkbox", "combobox", "gridcell", "listbox", "radiogroup", "spinbutton", "textbox", "tree", ]; function sD(e) { return pG.includes(Dn(e)) && e.hasAttribute("required"); } s(sD, "isRequiredOnFormTagsExceptInput"); function uD(e) { return ( Dn(e) === "input" && e.hasAttribute("required") && ((e.hasAttribute("type") && !hG.includes(e.getAttribute("type"))) || !e.hasAttribute("type")) ); } s(uD, "isRequiredOnSupportedInput"); function lD(e) { return ( e.hasAttribute("aria-required") && e.getAttribute("aria-required") === "true" && (fG.includes(Dn(e)) || (e.hasAttribute("role") && mG.includes(e.getAttribute("role")))) ); } s(lD, "isElementRequiredByARIA"); function lv(e) { ct(e, lv, this); let t = sD(e) || uD(e) || lD(e); return { pass: t, message: s(() => { let r = t ? "is" : "is not"; return [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeRequired`, "element", "", ), "", `Received element ${r} required:`, ` ${this.utils.printReceived(e.cloneNode(!1))}`, ].join(` `); }, "message"), }; } s(lv, "toBeRequired"); var yG = ["form", "input", "select", "textarea"]; function cD(e) { return ( e.hasAttribute("aria-invalid") && e.getAttribute("aria-invalid") !== "false" ); } s(cD, "isElementHavingAriaInvalid"); function dD(e) { return yG.includes(Dn(e)); } s(dD, "isSupportsValidityMethod"); function cv(e) { let t = cD(e); return dD(e) ? t || !e.checkValidity() : t; } s(cv, "isElementInvalid"); function dv(e) { ct(e, dv, this); let t = cv(e); return { pass: t, message: s(() => { let r = t ? "is" : "is not"; return [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeInvalid`, "element", "", ), "", `Received element ${r} currently invalid:`, ` ${this.utils.printReceived(e.cloneNode(!1))}`, ].join(` `); }, "message"), }; } s(dv, "toBeInvalid"); function pv(e) { ct(e, pv, this); let t = !cv(e); return { pass: t, message: s(() => { let r = t ? "is" : "is not"; return [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeValid`, "element", "", ), "", `Received element ${r} currently valid:`, ` ${this.utils.printReceived(e.cloneNode(!1))}`, ].join(` `); }, "message"), }; } s(pv, "toBeValid"); function fv(e, t) { if ( (ct(e, fv, this), e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type)) ) throw new Error( "input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead", ); let r = Vb(e), n = t !== void 0, a = t, o = r; return ( t == r && t !== r && ((a = `${t} (${typeof t})`), (o = `${r} (${typeof r})`)), { pass: n ? (0, Ub.default)(r, t, fd) : !!r, message: s(() => { let i = this.isNot ? "not to" : "to", u = this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toHaveValue`, "element", t, ); return Jt( this, u, `Expected the element ${i} have value`, n ? a : "(any)", "Received", o, ); }, "message"), } ); } s(fv, "toHaveValue"); function hv(e, t) { ct(e, hv, this); let r = e.tagName.toLowerCase(); if (!["select", "input", "textarea"].includes(r)) throw new Error( ".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.", ); if (r === "input" && ["radio", "checkbox"].includes(e.type)) throw new Error( `.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`, ); let n = pD(r, e), a = fD(t), o = a.filter((l) => n.some((c) => l instanceof RegExp ? l.test(c) : this.equals(c, String(l)), ), ).length, i = o === n.length, u = o === a.length; return { pass: i && u, message: s( () => Jt( this, this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toHaveDisplayValue`, "element", "", ), `Expected element ${this.isNot ? "not " : ""}to have display value`, t, "Received", n, ), "message", ), }; } s(hv, "toHaveDisplayValue"); function pD(e, t) { return e === "select" ? Array.from(t) .filter((r) => r.selected) .map((r) => r.textContent) : [t.value]; } s(pD, "getValues"); function fD(e) { return e instanceof Array ? e : [e]; } s(fD, "getExpectedValues"); function mv(e) { ct(e, mv, this); let t = s( () => e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type), "isValidInput", ), r = s( () => yv(e.getAttribute("role")) && ["true", "false"].includes(e.getAttribute("aria-checked")), "isValidAriaElement", ); if (!t() && !r()) return { pass: !1, message: s( () => `only inputs with type="checkbox" or type="radio" or elements with ${hD()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`, "message", ), }; let n = s( () => (t() ? e.checked : e.getAttribute("aria-checked") === "true"), "isChecked", ); return { pass: n(), message: s(() => { let a = n() ? "is" : "is not"; return [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBeChecked`, "element", "", ), "", `Received element ${a} checked:`, ` ${this.utils.printReceived(e.cloneNode(!1))}`, ].join(` `); }, "message"), }; } s(mv, "toBeChecked"); function hD() { return $O( mD().map((e) => `role="${e}"`), { lastWordConnector: " or " }, ); } s(hD, "supportedRolesSentence"); function mD() { return $b.roles.keys().filter(yv); } s(mD, "supportedRoles"); function yv(e) { return $b.roles.get(e)?.props["aria-checked"] !== void 0; } s(yv, "roleSupportsChecked"); function gv(e) { ct(e, gv, this); let t = s( () => e.tagName.toLowerCase() === "input" && e.type === "checkbox", "isValidInput", ), r = s(() => e.getAttribute("role") === "checkbox", "isValidAriaElement"); if (!t() && !r()) return { pass: !1, message: s( () => 'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead', "message", ), }; let n = s(() => { let a = e.getAttribute("aria-checked") === "mixed"; return (t() && e.indeterminate) || a; }, "isPartiallyChecked"); return { pass: n(), message: s(() => { let a = n() ? "is" : "is not"; return [ this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toBePartiallyChecked`, "element", "", ), "", `Received element ${a} partially checked:`, ` ${this.utils.printReceived(e.cloneNode(!1))}`, ].join(` `); }, "message"), }; } s(gv, "toBePartiallyChecked"); function bv(e, t) { (Ts("toHaveDescription", "Please use toHaveAccessibleDescription."), ct(e, bv, this)); let r = t !== void 0, n = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean), a = ""; if (n.length > 0) { let o = e.ownerDocument, i = n.map((u) => o.getElementById(u)).filter(Boolean); a = Os(i.map((u) => u.textContent).join(" ")); } return { pass: r ? (t instanceof RegExp ? t.test(a) : this.equals(a, t)) : !!a, message: s(() => { let o = this.isNot ? "not to" : "to"; return Jt( this, this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toHaveDescription`, "element", "", ), `Expected the element ${o} have description`, this.utils.printExpected(t), "Received", this.utils.printReceived(a), ); }, "message"), }; } s(bv, "toHaveDescription"); function vv(e, t) { if ( (Ts("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."), ct(e, vv, this), !e.hasAttribute("aria-invalid") || e.getAttribute("aria-invalid") === "false") ) { let o = this.isNot ? ".not" : ""; return { pass: !1, message: s( () => Jt( this, this.utils.matcherHint(`${o}.toHaveErrorMessage`, "element", ""), "Expected the element to have invalid state indicated by", 'aria-invalid="true"', "Received", e.hasAttribute("aria-invalid") ? `aria-invalid="${e.getAttribute("aria-invalid")}"` : this.utils.printReceived(""), ), "message", ), }; } let r = t !== void 0, n = (e.getAttribute("aria-errormessage") || "") .split(/\s+/) .filter(Boolean), a = ""; if (n.length > 0) { let o = e.ownerDocument, i = n.map((u) => o.getElementById(u)).filter(Boolean); a = Os(i.map((u) => u.textContent).join(" ")); } return { pass: r ? (t instanceof RegExp ? t.test(a) : this.equals(a, t)) : !!a, message: s(() => { let o = this.isNot ? "not to" : "to"; return Jt( this, this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toHaveErrorMessage`, "element", "", ), `Expected the element ${o} have error message`, this.utils.printExpected(t), "Received", this.utils.printReceived(a), ); }, "message"), }; } s(vv, "toHaveErrorMessage"); function yD(e) { let t = e.ownerDocument.getSelection(); if (["input", "textarea"].includes(e.tagName.toLowerCase())) return ["radio", "checkbox"].includes(e.type) ? "" : e.value.toString().substring(e.selectionStart, e.selectionEnd); if (t.anchorNode === null || t.focusNode === null) return ""; let r = t.getRangeAt(0), n = e.ownerDocument.createRange(); if (t.containsNode(e, !1)) (n.selectNodeContents(e), t.removeAllRanges(), t.addRange(n)); else if (!(e.contains(t.anchorNode) && e.contains(t.focusNode))) { let o = e === r.startContainer || e.contains(r.startContainer), i = e === r.endContainer || e.contains(r.endContainer); (t.removeAllRanges(), (o || i) && (n.selectNodeContents(e), o && n.setStart(r.startContainer, r.startOffset), i && n.setEnd(r.endContainer, r.endOffset), t.addRange(n))); } let a = t.toString(); return (t.removeAllRanges(), t.addRange(r), a); } s(yD, "getSelection"); function Ev(e, t) { ct(e, Ev, this); let r = t !== void 0; if (r && typeof t != "string") throw new Error("expected selection must be a string or undefined"); let n = yD(e); return { pass: r ? (0, Ub.default)(n, t, fd) : !!n, message: s(() => { let a = this.isNot ? "not to" : "to", o = this.utils.matcherHint( `${this.isNot ? ".not" : ""}.toHaveSelection`, "element", t, ); return Jt( this, o, `Expected the element ${a} have selection`, r ? t : "(any)", "Received", n, ); }, "message"), }; } s(Ev, "toHaveSelection"); Lt(O1(), 1); Lt(D1(), 1); Lt(I1(), 1); Lt(V1(), 1); Lt(z1(), 1); var gp, j_; function gD() { if (j_) return gp; j_ = 1; var e, t, r, n, a, o, i, u, l, c, d, p, f, h, m, y, b, g, v; return ( (f = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy), (p = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y), (e = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy), (m = /(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y), (d = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y), (y = /[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y), (v = /[\t\v\f\ufeff\p{Zs}]+/uy), (u = /\r?\n|[\r\u2028\u2029]/y), (l = /\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y), (h = /\/\/.*/y), (r = /[<>.:={}]|\/(?![\/*])/y), (t = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy), (n = /(['"])(?:(?!\1)[^])*(\1)?/y), (a = /[^<>{}]+/y), (g = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/), (b = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/), (o = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/), (i = /^(?:return|throw|yield)$/), (c = RegExp(u.source)), (gp = s(function* (x, { jsx: A = !1 } = {}) { var w, C, E, _, P, D, F, L, q, T, k, I, W, Q; for ( { length: D } = x, _ = 0, P = "", Q = [{ tag: "JS" }], w = [], k = 0, I = !1; _ < D; ) { switch (((L = Q[Q.length - 1]), L.tag)) { case "JS": case "JSNonExpressionParen": case "InterpolationInTemplate": case "InterpolationInJSX": if ( x[_] === "/" && (g.test(P) || o.test(P)) && ((f.lastIndex = _), (F = f.exec(x))) ) { ((_ = f.lastIndex), (P = F[0]), (I = !0), yield { type: "RegularExpressionLiteral", value: F[0], closed: F[1] !== void 0 && F[1] !== "\\", }); continue; } if (((p.lastIndex = _), (F = p.exec(x)))) { switch (((W = F[0]), (q = p.lastIndex), (T = W), W)) { case "(": (P === "?NonExpressionParenKeyword" && Q.push({ tag: "JSNonExpressionParen", nesting: k }), k++, (I = !1)); break; case ")": (k--, (I = !0), L.tag === "JSNonExpressionParen" && k === L.nesting && (Q.pop(), (T = "?NonExpressionParenEnd"), (I = !1))); break; case "{": ((p.lastIndex = 0), (E = !b.test(P) && (g.test(P) || o.test(P))), w.push(E), (I = !1)); break; case "}": switch (L.tag) { case "InterpolationInTemplate": if (w.length === L.nesting) { ((y.lastIndex = _), (F = y.exec(x)), (_ = y.lastIndex), (P = F[0]), F[1] === "${" ? ((P = "?InterpolationInTemplate"), (I = !1), yield { type: "TemplateMiddle", value: F[0] }) : (Q.pop(), (I = !0), yield { type: "TemplateTail", value: F[0], closed: F[1] === "`", })); continue; } break; case "InterpolationInJSX": if (w.length === L.nesting) { (Q.pop(), (_ += 1), (P = "}"), yield { type: "JSXPunctuator", value: "}" }); continue; } } ((I = w.pop()), (T = I ? "?ExpressionBraceEnd" : "}")); break; case "]": I = !0; break; case "++": case "--": T = I ? "?PostfixIncDec" : "?UnaryIncDec"; break; case "<": if (A && (g.test(P) || o.test(P))) { (Q.push({ tag: "JSXTag" }), (_ += 1), (P = "<"), yield { type: "JSXPunctuator", value: W }); continue; } I = !1; break; default: I = !1; } ((_ = q), (P = T), yield { type: "Punctuator", value: W }); continue; } if (((e.lastIndex = _), (F = e.exec(x)))) { switch (((_ = e.lastIndex), (T = F[0]), F[0])) { case "for": case "if": case "while": case "with": P !== "." && P !== "?." && (T = "?NonExpressionParenKeyword"); } ((P = T), (I = !o.test(F[0])), yield { type: F[1] === "#" ? "PrivateIdentifier" : "IdentifierName", value: F[0], }); continue; } if (((m.lastIndex = _), (F = m.exec(x)))) { ((_ = m.lastIndex), (P = F[0]), (I = !0), yield { type: "StringLiteral", value: F[0], closed: F[2] !== void 0, }); continue; } if (((d.lastIndex = _), (F = d.exec(x)))) { ((_ = d.lastIndex), (P = F[0]), (I = !0), yield { type: "NumericLiteral", value: F[0] }); continue; } if (((y.lastIndex = _), (F = y.exec(x)))) { ((_ = y.lastIndex), (P = F[0]), F[1] === "${" ? ((P = "?InterpolationInTemplate"), Q.push({ tag: "InterpolationInTemplate", nesting: w.length, }), (I = !1), yield { type: "TemplateHead", value: F[0] }) : ((I = !0), yield { type: "NoSubstitutionTemplate", value: F[0], closed: F[1] === "`", })); continue; } break; case "JSXTag": case "JSXTagEnd": if (((r.lastIndex = _), (F = r.exec(x)))) { switch (((_ = r.lastIndex), (T = F[0]), F[0])) { case "<": Q.push({ tag: "JSXTag" }); break; case ">": (Q.pop(), P === "/" || L.tag === "JSXTagEnd" ? ((T = "?JSX"), (I = !0)) : Q.push({ tag: "JSXChildren" })); break; case "{": (Q.push({ tag: "InterpolationInJSX", nesting: w.length }), (T = "?InterpolationInJSX"), (I = !1)); break; case "/": P === "<" && (Q.pop(), Q[Q.length - 1].tag === "JSXChildren" && Q.pop(), Q.push({ tag: "JSXTagEnd" })); } ((P = T), yield { type: "JSXPunctuator", value: F[0] }); continue; } if (((t.lastIndex = _), (F = t.exec(x)))) { ((_ = t.lastIndex), (P = F[0]), yield { type: "JSXIdentifier", value: F[0] }); continue; } if (((n.lastIndex = _), (F = n.exec(x)))) { ((_ = n.lastIndex), (P = F[0]), yield { type: "JSXString", value: F[0], closed: F[2] !== void 0, }); continue; } break; case "JSXChildren": if (((a.lastIndex = _), (F = a.exec(x)))) { ((_ = a.lastIndex), (P = F[0]), yield { type: "JSXText", value: F[0] }); continue; } switch (x[_]) { case "<": (Q.push({ tag: "JSXTag" }), _++, (P = "<"), yield { type: "JSXPunctuator", value: "<" }); continue; case "{": (Q.push({ tag: "InterpolationInJSX", nesting: w.length }), _++, (P = "?InterpolationInJSX"), (I = !1), yield { type: "JSXPunctuator", value: "{" }); continue; } } if (((v.lastIndex = _), (F = v.exec(x)))) { ((_ = v.lastIndex), yield { type: "WhiteSpace", value: F[0] }); continue; } if (((u.lastIndex = _), (F = u.exec(x)))) { ((_ = u.lastIndex), (I = !1), i.test(P) && (P = "?NoLineTerminatorHere"), yield { type: "LineTerminatorSequence", value: F[0] }); continue; } if (((l.lastIndex = _), (F = l.exec(x)))) { ((_ = l.lastIndex), c.test(F[0]) && ((I = !1), i.test(P) && (P = "?NoLineTerminatorHere")), yield { type: "MultiLineComment", value: F[0], closed: F[1] !== void 0, }); continue; } if (((h.lastIndex = _), (F = h.exec(x)))) { ((_ = h.lastIndex), (I = !1), yield { type: "SingleLineComment", value: F[0] }); continue; } ((C = String.fromCodePoint(x.codePointAt(_))), (_ += C.length), (P = C), (I = !1), yield { type: L.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid", value: C, }); } }, "jsTokens_1")), gp ); } s(gD, "requireJsTokens"); gD(); var bD = { keyword: [ "break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete", ], strict: [ "implements", "interface", "let", "package", "private", "protected", "public", "static", "yield", ], }; new Set(bD.keyword); new Set(bD.strict); function Di(e, t) { if (!e) throw new Error(t); } s(Di, "assert"); function ga(e, t) { return typeof t === e; } s(ga, "isType"); function vD(e) { return e instanceof Promise; } s(vD, "isPromise"); function Oo(e, t, r) { Object.defineProperty(e, t, r); } s(Oo, "define"); function wa(e, t, r) { Oo(e, t, { value: r, configurable: !0, writable: !0 }); } s(wa, "defineValue"); var Xn = Symbol.for("tinyspy:spy"), gG = new Set(), bG = s((e) => { ((e.called = !1), (e.callCount = 0), (e.calls = []), (e.results = []), (e.resolves = []), (e.next = [])); }, "reset"), vG = s( (e) => ( Oo(e, Xn, { value: { reset: s(() => bG(e[Xn]), "reset") } }), e[Xn] ), "defineState", ), pm = s((e) => e[Xn] || vG(e), "getInternalState"); function ED(e) { Di( ga("function", e) || ga("undefined", e), "cannot spy on a non-function value", ); let t = s(function (...n) { let a = pm(t); ((a.called = !0), a.callCount++, a.calls.push(n)); let o = a.next.shift(); if (o) { a.results.push(o); let [d, p] = o; if (d === "ok") return p; throw p; } let i, u = "ok", l = a.results.length; if (a.impl) try { (new.target ? (i = Reflect.construct(a.impl, n, new.target)) : (i = a.impl.apply(this, n)), (u = "ok")); } catch (d) { throw ((i = d), (u = "error"), a.results.push([u, d]), d); } let c = [u, i]; return ( vD(i) && i.then( (d) => (a.resolves[l] = ["ok", d]), (d) => (a.resolves[l] = ["error", d]), ), a.results.push(c), i ); }, "fn"); (wa(t, "_isMockFunction", !0), wa(t, "length", e ? e.length : 0), wa(t, "name", (e && e.name) || "spy")); let r = pm(t); return (r.reset(), (r.impl = e), t); } s(ED, "createInternalSpy"); function _D(e) { return !!e && e._isMockFunction === !0; } s(_D, "isMockFunction"); var CD = s((e, t) => { let r = Object.getOwnPropertyDescriptor(e, t); if (r) return [e, r]; let n = Object.getPrototypeOf(e); for (; n !== null; ) { let a = Object.getOwnPropertyDescriptor(n, t); if (a) return [n, a]; n = Object.getPrototypeOf(n); } }, "getDescriptor"), k_ = s((e, t) => { t != null && typeof t == "function" && t.prototype != null && Object.setPrototypeOf(e.prototype, t.prototype); }, "setPototype"); function _v(e, t, r) { (Di(!ga("undefined", e), "spyOn could not find an object to spy upon"), Di( ga("object", e) || ga("function", e), "cannot spyOn on a primitive value", )); let [n, a] = (() => { if (!ga("object", t)) return [t, "value"]; if ("getter" in t && "setter" in t) throw new Error("cannot spy on both getter and setter"); if ("getter" in t) return [t.getter, "get"]; if ("setter" in t) return [t.setter, "set"]; throw new Error("specify getter or setter to spy on"); })(), [o, i] = CD(e, n) || []; Di(i || n in e, `${String(n)} does not exist`); let u = !1; a === "value" && i && !i.value && i.get && ((a = "get"), (u = !0), (r = i.get())); let l; (i ? (l = i[a]) : a !== "value" ? (l = s(() => e[n], "original")) : (l = e[n]), l && SD(l) && (l = l[Xn].getOriginal())); let c = s((h) => { let { value: m, ...y } = i || { configurable: !0, writable: !0 }; (a !== "value" && delete y.writable, (y[a] = h), Oo(e, n, y)); }, "reassign"), d = s(() => { o !== e ? Reflect.deleteProperty(e, n) : i && !l ? Oo(e, n, i) : c(l); }, "restore"); r || (r = l); let p = AD(ED(r), r); a === "value" && k_(p, l); let f = p[Xn]; return ( wa(f, "restore", d), wa(f, "getOriginal", () => (u ? l() : l)), wa(f, "willCall", (h) => ((f.impl = h), p)), c(u ? () => (k_(p, r), p) : p), gG.add(p), p ); } s(_v, "internalSpyOn"); var EG = new Set(["length", "name", "prototype"]); function wD(e) { let t = new Set(), r = {}; for (; e && e !== Object.prototype && e !== Function.prototype; ) { let n = [ ...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e), ]; for (let a of n) r[a] || EG.has(a) || (t.add(a), (r[a] = Object.getOwnPropertyDescriptor(e, a))); e = Object.getPrototypeOf(e); } return { properties: t, descriptors: r }; } s(wD, "getAllProperties"); function AD(e, t) { if (!t || Xn in t) return e; let { properties: r, descriptors: n } = wD(t); for (let a of r) { let o = n[a]; CD(e, a) || Oo(e, a, o); } return e; } s(AD, "wrap"); function SD(e) { return _D(e) && "getOriginal" in e[Xn]; } s(SD, "isSpyFunction"); var Ds = new Set(); function Aa(e) { return typeof e == "function" && "_isMockFunction" in e && e._isMockFunction; } s(Aa, "isMockFunction"); function xD(e, t, r) { let n = r ? { [{ get: "getter", set: "setter" }[r]]: t } : t, a, o = PD(e, t), i = o && o[r || "value"]; Aa(i) && (a = i.mock._state()); try { let u = _v(e, n), l = Cv(u); return (a && l.mock._state(a), l); } catch (u) { throw u instanceof TypeError && Symbol.toStringTag && e[Symbol.toStringTag] === "Module" && (u.message.includes("Cannot redefine property") || u.message.includes("Cannot replace module namespace") || u.message.includes("can't redefine non-configurable property")) ? new TypeError( `Cannot spy on export "${String(n)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`, { cause: u }, ) : u; } } s(xD, "spyOn"); var _G = 0; function Cv(e) { let t = e, r, n = [], a = !1, o = [], i = [], u = [], l = pm(e), c = { get calls() { return l.calls; }, get contexts() { return i; }, get instances() { return o; }, get invocationCallOrder() { return u; }, get results() { return l.results.map(([h, m]) => ({ type: h === "error" ? "throw" : "return", value: m, })); }, get settledResults() { return l.resolves.map(([h, m]) => ({ type: h === "error" ? "rejected" : "fulfilled", value: m, })); }, get lastCall() { return l.calls[l.calls.length - 1]; }, _state(h) { return ( h && ((r = h.implementation), (n = h.onceImplementations), (a = h.implementationChangedTemporarily)), { implementation: r, onceImplementations: n, implementationChangedTemporarily: a, } ); }, }; function d(...h) { return ( o.push(this), i.push(this), u.push(++_G), (a ? r : n.shift() || r || l.getOriginal() || (() => {})).apply(this, h) ); } s(d, "mockCall"); let p = t.name; ((t.getMockName = () => p || "vi.fn()"), (t.mockName = (h) => ((p = h), t)), (t.mockClear = () => (l.reset(), (o = []), (i = []), (u = []), t)), (t.mockReset = () => (t.mockClear(), (r = void 0), (n = []), t)), (t.mockRestore = () => (t.mockReset(), l.restore(), t)), Symbol.dispose && (t[Symbol.dispose] = () => t.mockRestore()), (t.getMockImplementation = () => (a ? r : n.at(0) || r)), (t.mockImplementation = (h) => ((r = h), l.willCall(d), t)), (t.mockImplementationOnce = (h) => (n.push(h), t))); function f(h, m) { let y = r; ((r = h), l.willCall(d), (a = !0)); let b = s(() => { ((r = y), (a = !1)); }, "reset"), g = m(); return typeof g == "object" && g && typeof g.then == "function" ? g.then(() => (b(), t)) : (b(), t); } return ( s(f, "withImplementation"), (t.withImplementation = f), (t.mockReturnThis = () => t.mockImplementation(function () { return this; })), (t.mockReturnValue = (h) => t.mockImplementation(() => h)), (t.mockReturnValueOnce = (h) => t.mockImplementationOnce(() => h)), (t.mockResolvedValue = (h) => t.mockImplementation(() => Promise.resolve(h))), (t.mockResolvedValueOnce = (h) => t.mockImplementationOnce(() => Promise.resolve(h))), (t.mockRejectedValue = (h) => t.mockImplementation(() => Promise.reject(h))), (t.mockRejectedValueOnce = (h) => t.mockImplementationOnce(() => Promise.reject(h))), Object.defineProperty(t, "mock", { get: s(() => c, "get") }), l.willCall(d), Ds.add(t), t ); } s(Cv, "enhanceSpy"); function fm(e) { let t = Cv(_v({ spy: e || function () {} }, "spy")); return (e && t.mockImplementation(e), t); } s(fm, "fn"); function PD(e, t) { let r = Object.getOwnPropertyDescriptor(e, t); if (r) return r; let n = Object.getPrototypeOf(e); for (; n !== null; ) { let a = Object.getOwnPropertyDescriptor(n, t); if (a) return a; n = Object.getPrototypeOf(n); } } s(PD, "getDescriptor"); var es = Symbol.for("matchers-object"), ts = Symbol.for("$$jest-matchers-object-storybook"), wv = Symbol.for("expect-global"), hm = Symbol.for("asymmetric-matchers-object"), CG = { toSatisfy(e, t, r) { let { printReceived: n, printExpected: a, matcherHint: o } = this.utils, i = t(e); return { pass: i, message: s( () => i ? `${o(".not.toSatisfy", "received", "")} Expected value to not satisfy: ${r || a(t)} Received: ${n(e)}` : `${o(".toSatisfy", "received", "")} Expected value to satisfy: ${r || a(t)} Received: ${n(e)}`, "message", ), }; }, toBeOneOf(e, t) { let { equals: r, customTesters: n } = this, { printReceived: a, printExpected: o, matcherHint: i } = this.utils; if (!Array.isArray(t)) throw new TypeError( `You must provide an array to ${i(".toBeOneOf")}, not '${typeof t}'.`, ); let u = t.length === 0 || t.some((l) => r(l, e, n)); return { pass: u, message: s( () => u ? `${i(".not.toBeOneOf", "received", "")} Expected value to not be one of: ${o(t)} Received: ${a(e)}` : `${i(".toBeOneOf", "received", "")} Expected value to be one of: ${o(t)} Received: ${a(e)}`, "message", ), }; }, }, Ml = qt.green, Av = qt.red, wG = qt.inverse, AG = qt.bold, Ln = qt.dim; function RD(e, t = "received", r = "expected", n = {}) { let { comment: a = "", isDirectExpectCall: o = !1, isNot: i = !1, promise: u = "", secondArgument: l = "", expectedColor: c = Ml, receivedColor: d = Av, secondArgumentColor: p = Ml, } = n, f = "", h = "expect"; return ( !o && t !== "" && ((f += Ln(`${h}(`) + d(t)), (h = ")")), u !== "" && ((f += Ln(`${h}.`) + u), (h = "")), i && ((f += `${Ln(`${h}.`)}not`), (h = "")), e.includes(".") ? (h += e) : ((f += Ln(`${h}.`) + e), (h = "")), r === "" ? (h += "()") : ((f += Ln(`${h}(`) + c(r)), l && (f += Ln(", ") + p(l)), (h = ")")), a !== "" && (h += ` // ${a}`), h !== "" && (f += Ln(h)), f ); } s(RD, "matcherHint"); var SG = "·"; function Sv(e) { return e.replace(/\s+$/gm, (t) => SG.repeat(t.length)); } s(Sv, "replaceTrailingSpaces"); function TD(e) { return Av(Sv(hr(e))); } s(TD, "printReceived"); function OD(e) { return Ml(Sv(hr(e))); } s(OD, "printExpected"); function xv() { return { EXPECTED_COLOR: Ml, RECEIVED_COLOR: Av, INVERTED_COLOR: wG, BOLD_WEIGHT: AG, DIM_COLOR: Ln, diff: Ua, matcherHint: RD, printReceived: TD, printExpected: OD, printDiffOrStringify: Gg, printWithType: DD, }; } s(xv, "getMatcherUtils"); function DD(e, t, r) { let n = Gi(t), a = n !== "null" && n !== "undefined" ? `${e} has type: ${n} ` : "", o = `${e} has value: ${r(t)}`; return a + o; } s(DD, "printWithType"); function hd() { return globalThis[ts].customEqualityTesters; } s(hd, "getCustomEqualityTesters"); function it(e, t, r, n) { return ((r = r || []), go(e, t, [], [], r, n ? Pv : ND)); } s(it, "equals"); function mm(e) { return ( !!e && typeof e == "object" && "asymmetricMatch" in e && Nr("Function", e.asymmetricMatch) ); } s(mm, "isAsymmetric"); function FD(e, t) { let r = mm(e), n = mm(t); if (!(r && n)) { if (r) return e.asymmetricMatch(t); if (n) return t.asymmetricMatch(e); } } s(FD, "asymmetricMatch"); function go(e, t, r, n, a, o) { let i = !0, u = FD(e, t); if (u !== void 0) return u; let l = { equals: it }; for (let m = 0; m < a.length; m++) { let y = a[m].call(l, e, t, a); if (y !== void 0) return y; } if (typeof URL == "function" && e instanceof URL && t instanceof URL) return e.href === t.href; if (Object.is(e, t)) return !0; if (e === null || t === null) return e === t; let c = Object.prototype.toString.call(e); if (c !== Object.prototype.toString.call(t)) return !1; switch (c) { case "[object Boolean]": case "[object String]": case "[object Number]": return typeof e != typeof t ? !1 : typeof e != "object" && typeof t != "object" ? Object.is(e, t) : Object.is(e.valueOf(), t.valueOf()); case "[object Date]": { let m = +e, y = +t; return m === y || (Number.isNaN(m) && Number.isNaN(y)); } case "[object RegExp]": return e.source === t.source && e.flags === t.flags; case "[object Temporal.Instant]": case "[object Temporal.ZonedDateTime]": case "[object Temporal.PlainDateTime]": case "[object Temporal.PlainDate]": case "[object Temporal.PlainTime]": case "[object Temporal.PlainYearMonth]": case "[object Temporal.PlainMonthDay]": return e.equals(t); case "[object Temporal.Duration]": return e.toString() === t.toString(); } if (typeof e != "object" || typeof t != "object") return !1; if (gm(e) && gm(t)) return e.isEqualNode(t); let d = r.length; for (; d--; ) { if (r[d] === e) return n[d] === t; if (n[d] === t) return !1; } if ((r.push(e), n.push(t), c === "[object Array]" && e.length !== t.length)) return !1; if (e instanceof Error && t instanceof Error) try { return ID(e, t, r, n, a, o); } finally { (r.pop(), n.pop()); } let p = ym(e, o), f, h = p.length; if (ym(t, o).length !== h) return !1; for (; h--; ) if (((f = p[h]), (i = o(t, f) && go(e[f], t[f], r, n, a, o)), !i)) return !1; return (r.pop(), n.pop(), i); } s(go, "eq"); function ID(e, t, r, n, a, o) { let i = Object.getPrototypeOf(e) === Object.getPrototypeOf(t) && e.name === t.name && e.message === t.message; return ( typeof t.cause < "u" && i && (i = go(e.cause, t.cause, r, n, a, o)), e instanceof AggregateError && t instanceof AggregateError && i && (i = go(e.errors, t.errors, r, n, a, o)), i && (i = go({ ...e }, { ...t }, r, n, a, o)), i ); } s(ID, "isErrorEqual"); function ym(e, t) { let r = []; for (let n in e) t(e, n) && r.push(n); return r.concat( Object.getOwnPropertySymbols(e).filter( (n) => Object.getOwnPropertyDescriptor(e, n).enumerable, ), ); } s(ym, "keys"); function ND(e, t) { return Pv(e, t) && e[t] !== void 0; } s(ND, "hasDefinedKey"); function Pv(e, t) { return Object.prototype.hasOwnProperty.call(e, t); } s(Pv, "hasKey"); function Nr(e, t) { return Object.prototype.toString.apply(t) === `[object ${e}]`; } s(Nr, "isA"); function gm(e) { return ( e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number" && "nodeName" in e && typeof e.nodeName == "string" && "isEqualNode" in e && typeof e.isEqualNode == "function" ); } s(gm, "isDomNode"); var jD = "@@__IMMUTABLE_KEYED__@@", kD = "@@__IMMUTABLE_SET__@@", xG = "@@__IMMUTABLE_LIST__@@", md = "@@__IMMUTABLE_ORDERED__@@", PG = "@@__IMMUTABLE_RECORD__@@"; function qD(e) { return !!(e && e[jD] && !e[md]); } s(qD, "isImmutableUnorderedKeyed"); function MD(e) { return !!(e && e[kD] && !e[md]); } s(MD, "isImmutableUnorderedSet"); function Fs(e) { return e != null && typeof e == "object" && !Array.isArray(e); } s(Fs, "isObjectLiteral"); function BD(e) { return !!(e && Fs(e) && e[xG]); } s(BD, "isImmutableList"); function LD(e) { return !!(e && Fs(e) && e[jD] && e[md]); } s(LD, "isImmutableOrderedKeyed"); function $D(e) { return !!(e && Fs(e) && e[kD] && e[md]); } s($D, "isImmutableOrderedSet"); function UD(e) { return !!(e && Fs(e) && e[PG]); } s(UD, "isImmutableRecord"); var HD = Symbol.iterator; function bm(e) { return !!(e != null && e[HD]); } s(bm, "hasIterator"); function Sr(e, t, r = [], n = [], a = []) { if ( typeof e != "object" || typeof t != "object" || Array.isArray(e) || Array.isArray(t) || !bm(e) || !bm(t) ) return; if (e.constructor !== t.constructor) return !1; let o = n.length; for (; o--; ) if (n[o] === e) return a[o] === t; (n.push(e), a.push(t)); let i = [...r.filter((c) => c !== Sr), u]; function u(c, d) { return Sr(c, d, [...r], [...n], [...a]); } if ((s(u, "iterableEqualityWithStack"), e.size !== void 0)) { if (e.size !== t.size) return !1; if (Nr("Set", e) || MD(e)) { let c = !0; for (let d of e) if (!t.has(d)) { let p = !1; for (let f of t) it(d, f, i) === !0 && (p = !0); if (p === !1) { c = !1; break; } } return (n.pop(), a.pop(), c); } else if (Nr("Map", e) || qD(e)) { let c = !0; for (let d of e) if (!t.has(d[0]) || !it(d[1], t.get(d[0]), i)) { let p = !1; for (let f of t) { let h = it(d[0], f[0], i), m = !1; (h === !0 && (m = it(d[1], f[1], i)), m === !0 && (p = !0)); } if (p === !1) { c = !1; break; } } return (n.pop(), a.pop(), c); } } let l = t[HD](); for (let c of e) { let d = l.next(); if (d.done || !it(c, d.value, i)) return !1; } if (!l.next().done) return !1; if (!BD(e) && !LD(e) && !$D(e) && !UD(e)) { let c = Object.entries(e), d = Object.entries(t); if (!it(c, d, i)) return !1; } return (n.pop(), a.pop(), !0); } s(Sr, "iterableEquality"); function yd(e, t) { return !e || typeof e != "object" || e === Object.prototype ? !1 : Object.prototype.hasOwnProperty.call(e, t) || yd(Object.getPrototypeOf(e), t); } s(yd, "hasPropertyInObject"); function VD(e) { return ( Ti(e) && !(e instanceof Error) && !Array.isArray(e) && !(e instanceof Date) ); } s(VD, "isObjectWithKeys"); function Yo(e, t, r = []) { let n = r.filter((o) => o !== Yo), a = s( (o = new WeakMap()) => (i, u) => { if (VD(u)) return Object.keys(u).every((l) => { if (u[l] != null && typeof u[l] == "object") { if (o.has(u[l])) return it(i[l], u[l], n); o.set(u[l], !0); } let c = i != null && yd(i, l) && it(i[l], u[l], [...n, a(o)]); return (o.delete(u[l]), c); }); }, "subsetEqualityWithContext", ); return a()(e, t); } s(Yo, "subsetEquality"); function vm(e, t) { if (!(e == null || t == null || e.constructor === t.constructor)) return !1; } s(vm, "typeEquality"); function Em(e, t) { let r = e, n = t; if (!(e instanceof DataView && t instanceof DataView)) { if (!(e instanceof ArrayBuffer) || !(t instanceof ArrayBuffer)) return; try { ((r = new DataView(e)), (n = new DataView(t))); } catch { return; } } if (r.byteLength !== n.byteLength) return !1; for (let a = 0; a < r.byteLength; a++) if (r.getUint8(a) !== n.getUint8(a)) return !1; return !0; } s(Em, "arrayBufferEquality"); function Bl(e, t, r = []) { if (!Array.isArray(e) || !Array.isArray(t)) return; let n = Object.keys(e), a = Object.keys(t), o = r.filter((i) => i !== Bl); return it(e, t, o, !0) && it(n, a); } s(Bl, "sparseArrayEquality"); function zD(e, t = "#{this}", r = "#{exp}") { let n = `expected ${t} to be ${r} // Object.is equality`; return ["toStrictEqual", "toEqual"].includes(e) ? `${n} If it should pass with deep equality, replace "toBe" with "${e}" Expected: ${t} Received: serializes to the same string ` : n; } s(zD, "generateToBeMessage"); function GD(e, t) { return `${t} ${e}${t === 1 ? "" : "s"}`; } s(GD, "pluralize"); function zu(e) { return [ ...Object.keys(e), ...Object.getOwnPropertySymbols(e).filter((t) => { var r; return (r = Object.getOwnPropertyDescriptor(e, t)) === null || r === void 0 ? void 0 : r.enumerable; }), ]; } s(zu, "getObjectKeys"); function WD(e, t, r) { let n = 0, a = s( (o = new WeakMap()) => (i, u) => { if (Array.isArray(i)) { if (Array.isArray(u) && u.length === i.length) return u.map((l, c) => a(o)(i[c], l)); } else { if (i instanceof Date) return i; if (Ti(i) && Ti(u)) { if (it(i, u, [...r, Sr, Yo])) return u; let l = {}; (o.set(i, l), typeof i.constructor == "function" && typeof i.constructor.name == "string" && Object.defineProperty(l, "constructor", { enumerable: !1, value: i.constructor, })); for (let c of zu(i)) yd(u, c) ? (l[c] = o.has(i[c]) ? o.get(i[c]) : a(o)(i[c], u[c])) : o.has(i[c]) || ((n += 1), Ti(i[c]) && (n += zu(i[c]).length), a(o)(i[c], u[c])); if (zu(l).length > 0) return l; } } return i; }, "getObjectSubsetWithContext", ); return { subset: a()(e, t), stripped: n }; } s(WD, "getObjectSubset"); if (!Object.prototype.hasOwnProperty.call(globalThis, es)) { let e = new WeakMap(); Object.defineProperty(globalThis, es, { get: s(() => e, "get") }); } if (!Object.prototype.hasOwnProperty.call(globalThis, ts)) { let e = Object.create(null), t = []; Object.defineProperty(globalThis, ts, { configurable: !0, get: s( () => ({ state: globalThis[es].get(globalThis[wv]), matchers: e, customEqualityTesters: t, }), "get", ), }); } if (!Object.prototype.hasOwnProperty.call(globalThis, hm)) { let e = Object.create(null); Object.defineProperty(globalThis, hm, { get: s(() => e, "get") }); } function rs(e) { return globalThis[es].get(e); } s(rs, "getState"); function Gu(e, t) { let r = globalThis[es], n = r.get(t) || {}, a = Object.defineProperties(n, { ...Object.getOwnPropertyDescriptors(n), ...Object.getOwnPropertyDescriptors(e), }); r.set(t, a); } s(Gu, "setState"); var JD = class { $$typeof = Symbol.for("jest.asymmetricMatcher"); constructor(t, r = !1) { ((this.sample = t), (this.inverse = r)); } getMatcherContext(t) { return { ...rs(t || globalThis[wv]), equals: it, isNot: this.inverse, customTesters: hd(), utils: { ...xv(), diff: Ua, stringify: hr, iterableEquality: Sr, subsetEquality: Yo, }, }; } }; s(JD, "AsymmetricMatcher"); var jn = JD; jn.prototype[Symbol.for("chai/inspect")] = function (e) { let t = hr(this, e.depth, { min: !0 }); return t.length <= e.truncate ? t : `${this.toString()}{…}`; }; var XD = class extends jn { constructor(t, r = !1) { if (!Nr("String", t)) throw new Error("Expected is not a string"); super(t, r); } asymmetricMatch(t) { let r = Nr("String", t) && t.includes(this.sample); return this.inverse ? !r : r; } toString() { return `String${this.inverse ? "Not" : ""}Containing`; } getExpectedType() { return "string"; } }; s(XD, "StringContaining"); var q_ = XD, KD = class extends jn { asymmetricMatch(t) { return t != null; } toString() { return "Anything"; } toAsymmetricMatcher() { return "Anything"; } }; s(KD, "Anything"); var RG = KD, YD = class extends jn { constructor(t, r = !1) { super(t, r); } getPrototype(t) { return Object.getPrototypeOf ? Object.getPrototypeOf(t) : t.constructor.prototype === t ? null : t.constructor.prototype; } hasProperty(t, r) { return t ? Object.prototype.hasOwnProperty.call(t, r) ? !0 : this.hasProperty(this.getPrototype(t), r) : !1; } asymmetricMatch(t) { if (typeof this.sample != "object") throw new TypeError( `You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`, ); let r = !0, n = this.getMatcherContext(); for (let a in this.sample) if ( !this.hasProperty(t, a) || !it(this.sample[a], t[a], n.customTesters) ) { r = !1; break; } return this.inverse ? !r : r; } toString() { return `Object${this.inverse ? "Not" : ""}Containing`; } getExpectedType() { return "object"; } }; s(YD, "ObjectContaining"); var M_ = YD, QD = class extends jn { constructor(t, r = !1) { super(t, r); } asymmetricMatch(t) { if (!Array.isArray(this.sample)) throw new TypeError( `You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`, ); let r = this.getMatcherContext(), n = this.sample.length === 0 || (Array.isArray(t) && this.sample.every((a) => t.some((o) => it(a, o, r.customTesters)))); return this.inverse ? !n : n; } toString() { return `Array${this.inverse ? "Not" : ""}Containing`; } getExpectedType() { return "array"; } }; s(QD, "ArrayContaining"); var B_ = QD, ZD = class extends jn { constructor(t) { if (typeof t > "u") throw new TypeError( "any() expects to be passed a constructor function. Please pass one or use anything() to match any object.", ); super(t); } fnNameFor(t) { if (t.name) return t.name; let r = Function.prototype.toString .call(t) .match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/); return r ? r[1] : ""; } asymmetricMatch(t) { return this.sample === String ? typeof t == "string" || t instanceof String : this.sample === Number ? typeof t == "number" || t instanceof Number : this.sample === Function ? typeof t == "function" || typeof t == "function" : this.sample === Boolean ? typeof t == "boolean" || t instanceof Boolean : this.sample === BigInt ? typeof t == "bigint" || t instanceof BigInt : this.sample === Symbol ? typeof t == "symbol" || t instanceof Symbol : this.sample === Object ? typeof t == "object" : t instanceof this.sample; } toString() { return "Any"; } getExpectedType() { return this.sample === String ? "string" : this.sample === Number ? "number" : this.sample === Function ? "function" : this.sample === Object ? "object" : this.sample === Boolean ? "boolean" : this.fnNameFor(this.sample); } toAsymmetricMatcher() { return `Any<${this.fnNameFor(this.sample)}>`; } }; s(ZD, "Any"); var TG = ZD, eF = class extends jn { constructor(t, r = !1) { if (!Nr("String", t) && !Nr("RegExp", t)) throw new Error("Expected is not a String or a RegExp"); super(new RegExp(t), r); } asymmetricMatch(t) { let r = Nr("String", t) && this.sample.test(t); return this.inverse ? !r : r; } toString() { return `String${this.inverse ? "Not" : ""}Matching`; } getExpectedType() { return "string"; } }; s(eF, "StringMatching"); var L_ = eF, tF = class extends jn { precision; constructor(t, r = 2, n = !1) { if (!Nr("Number", t)) throw new Error("Expected is not a Number"); if (!Nr("Number", r)) throw new Error("Precision is not a Number"); (super(t), (this.inverse = n), (this.precision = r)); } asymmetricMatch(t) { if (!Nr("Number", t)) return !1; let r = !1; return ( (t === Number.POSITIVE_INFINITY && this.sample === Number.POSITIVE_INFINITY) || (t === Number.NEGATIVE_INFINITY && this.sample === Number.NEGATIVE_INFINITY) ? (r = !0) : (r = Math.abs(this.sample - t) < 10 ** -this.precision / 2), this.inverse ? !r : r ); } toString() { return `Number${this.inverse ? "Not" : ""}CloseTo`; } getExpectedType() { return "number"; } toAsymmetricMatcher() { return [ this.toString(), this.sample, `(${GD("digit", this.precision)})`, ].join(" "); } }; s(tF, "CloseTo"); var $_ = tF, OG = s((e, t) => { (t.addMethod(e.expect, "anything", () => new RG()), t.addMethod(e.expect, "any", (r) => new TG(r)), t.addMethod(e.expect, "stringContaining", (r) => new q_(r)), t.addMethod(e.expect, "objectContaining", (r) => new M_(r)), t.addMethod(e.expect, "arrayContaining", (r) => new B_(r)), t.addMethod(e.expect, "stringMatching", (r) => new L_(r)), t.addMethod(e.expect, "closeTo", (r, n) => new $_(r, n)), (e.expect.not = { stringContaining: s((r) => new q_(r, !0), "stringContaining"), objectContaining: s((r) => new M_(r, !0), "objectContaining"), arrayContaining: s((r) => new B_(r, !0), "arrayContaining"), stringMatching: s((r) => new L_(r, !0), "stringMatching"), closeTo: s((r, n) => new $_(r, n, !0), "closeTo"), })); }, "JestAsymmetricMatchers"); function _m(e, t, r) { let n = e.flag(t, "negate") ? "not." : "", a = `${e.flag(t, "_name")}(${r ? "expected" : ""})`, o = e.flag(t, "promise"); return `expect(actual)${o ? `.${o}` : ""}.${n}${a}`; } s(_m, "createAssertionMessage"); function Cm(e, t, r, n) { let a = e; if (a && t instanceof Promise) { ((t = t.finally(() => { if (!a.promises) return; let i = a.promises.indexOf(t); i !== -1 && a.promises.splice(i, 1); })), a.promises || (a.promises = []), a.promises.push(t)); let o = !1; return ( a.onFinished ?? (a.onFinished = []), a.onFinished.push(() => { if (!o) { var i; let u = ( ((i = globalThis.__vitest_worker__) === null || i === void 0 ? void 0 : i.onFilterStackTrace) || ((l) => l || "") )(n.stack); console.warn( [ `Promise returned by \`${r}\` was not awaited. `, "Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ", `Please remember to await the assertion. `, u, ].join(""), ); } }), { then(i, u) { return ((o = !0), t.then(i, u)); }, catch(i) { return t.catch(i); }, finally(i) { return t.finally(i); }, [Symbol.toStringTag]: "Promise", } ); } return t; } s(Cm, "recordAsyncExpect"); function wm(e, t) { var r; (e.result || (e.result = { state: "fail" }), (e.result.state = "fail"), (r = e.result).errors || (r.errors = []), e.result.errors.push(Oc(t))); } s(wm, "handleTestError"); function Rv(e, t, r) { return function (...n) { if ((t !== "withTest" && e.flag(this, "_name", t), !e.flag(this, "soft"))) return r.apply(this, n); let a = e.flag(this, "vitest-test"); if (!a) throw new Error("expect.soft() can only be used inside a test"); try { let o = r.apply(this, n); return o && typeof o == "object" && typeof o.then == "function" ? o.then(YR, (i) => { wm(a, i); }) : o; } catch (o) { wm(a, o); } }; } s(Rv, "wrapAssertion"); var DG = s((e, t) => { let { AssertionError: r } = e, n = hd(); function a(c, d) { let p = s((f) => { let h = Rv(t, f, d); (t.addMethod(e.Assertion.prototype, f, h), t.addMethod(globalThis[ts].matchers, f, h)); }, "addMethod"); Array.isArray(c) ? c.forEach((f) => p(f)) : p(c); } (s(a, "def"), ["throw", "throws", "Throw"].forEach((c) => { t.overwriteMethod( e.Assertion.prototype, c, (d) => function (...p) { let f = t.flag(this, "promise"), h = t.flag(this, "object"), m = t.flag(this, "negate"); if (f === "rejects") t.flag(this, "object", () => { throw h; }); else if (f === "resolves" && typeof h != "function") { if (m) return; { let y = t.flag(this, "message") || "expected promise to throw an error, but it didn't", b = { showDiff: !1 }; throw new r(y, b, t.flag(this, "ssfi")); } } d.apply(this, p); }, ); }), a("withTest", function (c) { return (t.flag(this, "vitest-test", c), this); }), a("toEqual", function (c) { let d = t.flag(this, "object"), p = it(d, c, [...n, Sr]); return this.assert( p, "expected #{this} to deeply equal #{exp}", "expected #{this} to not deeply equal #{exp}", c, d, ); }), a("toStrictEqual", function (c) { let d = t.flag(this, "object"), p = it(d, c, [...n, Sr, vm, Bl, Em], !0); return this.assert( p, "expected #{this} to strictly equal #{exp}", "expected #{this} to not strictly equal #{exp}", c, d, ); }), a("toBe", function (c) { let d = this._obj, p = Object.is(d, c), f = ""; return ( p || (it(d, c, [...n, Sr, vm, Bl, Em], !0) ? (f = "toStrictEqual") : it(d, c, [...n, Sr]) && (f = "toEqual")), this.assert( p, zD(f), "expected #{this} not to be #{exp} // Object.is equality", c, d, ) ); }), a("toMatchObject", function (c) { let d = this._obj, p = it(d, c, [...n, Sr, Yo]), f = t.flag(this, "negate"), { subset: h, stripped: m } = WD(d, c, n); if ((p && f) || (!p && !f)) { let y = t.getMessage(this, [ p, "expected #{this} to match object #{exp}", "expected #{this} to not match object #{exp}", c, h, !1, ]), b = m === 0 ? y : `${y} (${m} matching ${m === 1 ? "property" : "properties"} omitted from actual)`; throw new r(b, { showDiff: !0, expected: c, actual: h }); } }), a("toMatch", function (c) { let d = this._obj; if (typeof d != "string") throw new TypeError( `.toMatch() expects to receive a string, but got ${typeof d}`, ); return this.assert( typeof c == "string" ? d.includes(c) : d.match(c), "expected #{this} to match #{exp}", "expected #{this} not to match #{exp}", c, d, ); }), a("toContain", function (c) { let d = this._obj; if (typeof Node < "u" && d instanceof Node) { if (!(c instanceof Node)) throw new TypeError( `toContain() expected a DOM node as the argument, but got ${typeof c}`, ); return this.assert( d.contains(c), "expected #{this} to contain element #{exp}", "expected #{this} not to contain element #{exp}", c, d, ); } if (typeof DOMTokenList < "u" && d instanceof DOMTokenList) { Zr(c, "class name", ["string"]); let p = t.flag(this, "negate") ? d.value.replace(c, "").trim() : `${d.value} ${c}`; return this.assert( d.contains(c), `expected "${d.value}" to contain "${c}"`, `expected "${d.value}" not to contain "${c}"`, p, d.value, ); } return typeof d == "string" && typeof c == "string" ? this.assert( d.includes(c), "expected #{this} to contain #{exp}", "expected #{this} not to contain #{exp}", c, d, ) : (d != null && typeof d != "string" && t.flag(this, "object", Array.from(d)), this.contain(c)); }), a("toContainEqual", function (c) { let d = t.flag(this, "object"), p = Array.from(d).findIndex((f) => it(f, c, n)); this.assert( p !== -1, "expected #{this} to deep equally contain #{exp}", "expected #{this} to not deep equally contain #{exp}", c, ); }), a("toBeTruthy", function () { let c = t.flag(this, "object"); this.assert( !!c, "expected #{this} to be truthy", "expected #{this} to not be truthy", !0, c, ); }), a("toBeFalsy", function () { let c = t.flag(this, "object"); this.assert( !c, "expected #{this} to be falsy", "expected #{this} to not be falsy", !1, c, ); }), a("toBeGreaterThan", function (c) { let d = this._obj; return ( Zr(d, "actual", ["number", "bigint"]), Zr(c, "expected", ["number", "bigint"]), this.assert( d > c, `expected ${d} to be greater than ${c}`, `expected ${d} to be not greater than ${c}`, c, d, !1, ) ); }), a("toBeGreaterThanOrEqual", function (c) { let d = this._obj; return ( Zr(d, "actual", ["number", "bigint"]), Zr(c, "expected", ["number", "bigint"]), this.assert( d >= c, `expected ${d} to be greater than or equal to ${c}`, `expected ${d} to be not greater than or equal to ${c}`, c, d, !1, ) ); }), a("toBeLessThan", function (c) { let d = this._obj; return ( Zr(d, "actual", ["number", "bigint"]), Zr(c, "expected", ["number", "bigint"]), this.assert( d < c, `expected ${d} to be less than ${c}`, `expected ${d} to be not less than ${c}`, c, d, !1, ) ); }), a("toBeLessThanOrEqual", function (c) { let d = this._obj; return ( Zr(d, "actual", ["number", "bigint"]), Zr(c, "expected", ["number", "bigint"]), this.assert( d <= c, `expected ${d} to be less than or equal to ${c}`, `expected ${d} to be not less than or equal to ${c}`, c, d, !1, ) ); }), a("toBeNaN", function () { let c = t.flag(this, "object"); this.assert( Number.isNaN(c), "expected #{this} to be NaN", "expected #{this} not to be NaN", Number.NaN, c, ); }), a("toBeUndefined", function () { let c = t.flag(this, "object"); this.assert( c === void 0, "expected #{this} to be undefined", "expected #{this} not to be undefined", void 0, c, ); }), a("toBeNull", function () { let c = t.flag(this, "object"); this.assert( c === null, "expected #{this} to be null", "expected #{this} not to be null", null, c, ); }), a("toBeDefined", function () { let c = t.flag(this, "object"); this.assert( typeof c < "u", "expected #{this} to be defined", "expected #{this} to be undefined", c, ); }), a("toBeTypeOf", function (c) { let d = typeof this._obj, p = c === d; return this.assert( p, "expected #{this} to be type of #{exp}", "expected #{this} not to be type of #{exp}", c, d, ); }), a("toBeInstanceOf", function (c) { return this.instanceOf(c); }), a("toHaveLength", function (c) { return this.have.length(c); }), a("toHaveProperty", function (...c) { Array.isArray(c[0]) && (c[0] = c[0] .map((v) => String(v).replace(/([.[\]])/g, "\\$1")) .join(".")); let d = this._obj, [p, f] = c, h = s( () => Object.prototype.hasOwnProperty.call(d, p) ? { value: d[p], exists: !0 } : t.getPathInfo(d, p), "getValue", ), { value: m, exists: y } = h(), b = y && (c.length === 1 || it(f, m, n)), g = c.length === 1 ? "" : ` with value ${t.objDisplay(f)}`; return this.assert( b, `expected #{this} to have property "${p}"${g}`, `expected #{this} to not have property "${p}"${g}`, f, y ? m : void 0, ); }), a("toBeCloseTo", function (c, d = 2) { let p = this._obj, f = !1, h = 0, m = 0; return ( (c === Number.POSITIVE_INFINITY && p === Number.POSITIVE_INFINITY) || (c === Number.NEGATIVE_INFINITY && p === Number.NEGATIVE_INFINITY) ? (f = !0) : ((h = 10 ** -d / 2), (m = Math.abs(p - c)), (f = m < h)), this.assert( f, `expected #{this} to be close to #{exp}, received difference is ${m}, but expected ${h}`, `expected #{this} to not be close to #{exp}, received difference is ${m}, but expected ${h}`, c, p, !1, ) ); })); function o(c) { if (!Aa(c._obj)) throw new TypeError( `${t.inspect(c._obj)} is not a spy or a call to a spy!`, ); } s(o, "assertIsMock"); function i(c) { return (o(c), c._obj); } (s(i, "getSpy"), a(["toHaveBeenCalledTimes", "toBeCalledTimes"], function (c) { let d = i(this), p = d.getMockName(), f = d.mock.calls.length; return this.assert( f === c, `expected "${p}" to be called #{exp} times, but got ${f} times`, `expected "${p}" to not be called #{exp} times`, c, f, !1, ); }), a("toHaveBeenCalledOnce", function () { let c = i(this), d = c.getMockName(), p = c.mock.calls.length; return this.assert( p === 1, `expected "${d}" to be called once, but got ${p} times`, `expected "${d}" to not be called once`, 1, p, !1, ); }), a(["toHaveBeenCalled", "toBeCalled"], function () { let c = i(this), d = c.getMockName(), p = c.mock.calls.length, f = p > 0, h = t.flag(this, "negate"), m = t.getMessage(this, [ f, `expected "${d}" to be called at least once`, `expected "${d}" to not be called at all, but actually been called ${p} times`, !0, f, ]); if ((f && h && (m = Wu(c, m)), (f && h) || (!f && !h))) throw new r(m); })); function u(c, d) { return c.length === d.length && c.every((p, f) => it(p, d[f], [...n, Sr])); } (s(u, "equalsArgumentArray"), a(["toHaveBeenCalledWith", "toBeCalledWith"], function (...c) { let d = i(this), p = d.getMockName(), f = d.mock.calls.some((y) => u(y, c)), h = t.flag(this, "negate"), m = t.getMessage(this, [ f, `expected "${p}" to be called with arguments: #{exp}`, `expected "${p}" to not be called with arguments: #{exp}`, c, ]); if ((f && h) || (!f && !h)) throw new r(Wu(d, m, c)); }), a("toHaveBeenCalledExactlyOnceWith", function (...c) { let d = i(this), p = d.getMockName(), f = d.mock.calls.length, h = d.mock.calls.some((b) => u(b, c)) && f === 1, m = t.flag(this, "negate"), y = t.getMessage(this, [ h, `expected "${p}" to be called once with arguments: #{exp}`, `expected "${p}" to not be called once with arguments: #{exp}`, c, ]); if ((h && m) || (!h && !m)) throw new r(Wu(d, y, c)); }), a(["toHaveBeenNthCalledWith", "nthCalledWith"], function (c, ...d) { let p = i(this), f = p.getMockName(), h = p.mock.calls[c - 1], m = p.mock.calls.length, y = c <= m; this.assert( h && u(h, d), `expected ${bo(c)} "${f}" call to have been called with #{exp}${y ? "" : `, but called only ${m} times`}`, `expected ${bo(c)} "${f}" call to not have been called with #{exp}`, d, h, y, ); }), a(["toHaveBeenLastCalledWith", "lastCalledWith"], function (...c) { let d = i(this), p = d.getMockName(), f = d.mock.calls[d.mock.calls.length - 1]; this.assert( f && u(f, c), `expected last "${p}" call to have been called with #{exp}`, `expected last "${p}" call to not have been called with #{exp}`, c, f, ); })); function l(c, d, p) { let f = c.mock.invocationCallOrder, h = d.mock.invocationCallOrder; return f.length === 0 ? !p : h.length === 0 ? !1 : f[0] < h[0]; } (s(l, "isSpyCalledBeforeAnotherSpy"), a(["toHaveBeenCalledBefore"], function (c, d = !0) { let p = i(this); if (!Aa(c)) throw new TypeError(`${t.inspect(c)} is not a spy or a call to a spy`); this.assert( l(p, c, d), `expected "${p.getMockName()}" to have been called before "${c.getMockName()}"`, `expected "${p.getMockName()}" to not have been called before "${c.getMockName()}"`, c, p, ); }), a(["toHaveBeenCalledAfter"], function (c, d = !0) { let p = i(this); if (!Aa(c)) throw new TypeError(`${t.inspect(c)} is not a spy or a call to a spy`); this.assert( l(c, p, d), `expected "${p.getMockName()}" to have been called after "${c.getMockName()}"`, `expected "${p.getMockName()}" to not have been called after "${c.getMockName()}"`, c, p, ); }), a(["toThrow", "toThrowError"], function (c) { if (typeof c == "string" || typeof c > "u" || c instanceof RegExp) return this.throws(c === "" ? /^$/ : c); let d = this._obj, p = t.flag(this, "promise"), f = t.flag(this, "negate"), h = null; if (p === "rejects") h = d; else if (p === "resolves" && typeof d != "function") { if (f) return; { let m = t.flag(this, "message") || "expected promise to throw an error, but it didn't", y = { showDiff: !1 }; throw new r(m, y, t.flag(this, "ssfi")); } } else { let m = !1; try { d(); } catch (y) { ((m = !0), (h = y)); } if (!m && !f) { let y = t.flag(this, "message") || "expected function to throw an error, but it didn't", b = { showDiff: !1 }; throw new r(y, b, t.flag(this, "ssfi")); } } if (typeof c == "function") { let m = c.name || c.prototype.constructor.name; return this.assert( h && h instanceof c, `expected error to be instance of ${m}`, `expected error not to be instance of ${m}`, c, h, ); } if (c instanceof Error) { let m = it(h, c, [...n, Sr]); return this.assert( m, "expected a thrown error to be #{exp}", "expected a thrown error not to be #{exp}", c, h, ); } if ( typeof c == "object" && "asymmetricMatch" in c && typeof c.asymmetricMatch == "function" ) { let m = c; return this.assert( h && m.asymmetricMatch(h), "expected error to match asymmetric matcher", "expected error not to match asymmetric matcher", m, h, ); } throw new Error( `"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof c}"`, ); }), [ { name: "toHaveResolved", condition: s( (c) => c.mock.settledResults.length > 0 && c.mock.settledResults.some(({ type: d }) => d === "fulfilled"), "condition", ), action: "resolved", }, { name: ["toHaveReturned", "toReturn"], condition: s( (c) => c.mock.calls.length > 0 && c.mock.results.some(({ type: d }) => d !== "throw"), "condition", ), action: "called", }, ].forEach(({ name: c, condition: d, action: p }) => { a(c, function () { let f = i(this), h = f.getMockName(), m = d(f); this.assert( m, `expected "${h}" to be successfully ${p} at least once`, `expected "${h}" to not be successfully ${p}`, m, !m, !1, ); }); }), [ { name: "toHaveResolvedTimes", condition: s( (c, d) => c.mock.settledResults.reduce( (p, { type: f }) => (f === "fulfilled" ? ++p : p), 0, ) === d, "condition", ), action: "resolved", }, { name: ["toHaveReturnedTimes", "toReturnTimes"], condition: s( (c, d) => c.mock.results.reduce( (p, { type: f }) => (f === "throw" ? p : ++p), 0, ) === d, "condition", ), action: "called", }, ].forEach(({ name: c, condition: d, action: p }) => { a(c, function (f) { let h = i(this), m = h.getMockName(), y = d(h, f); this.assert( y, `expected "${m}" to be successfully ${p} ${f} times`, `expected "${m}" to not be successfully ${p} ${f} times`, `expected resolved times: ${f}`, `received resolved times: ${y}`, !1, ); }); }), [ { name: "toHaveResolvedWith", condition: s( (c, d) => c.mock.settledResults.some( ({ type: p, value: f }) => p === "fulfilled" && it(d, f), ), "condition", ), action: "resolve", }, { name: ["toHaveReturnedWith", "toReturnWith"], condition: s( (c, d) => c.mock.results.some( ({ type: p, value: f }) => p === "return" && it(d, f), ), "condition", ), action: "return", }, ].forEach(({ name: c, condition: d, action: p }) => { a(c, function (f) { let h = i(this), m = d(h, f), y = t.flag(this, "negate"); if ((m && y) || (!m && !y)) { let b = h.getMockName(), g = t.getMessage(this, [ m, `expected "${b}" to ${p} with: #{exp} at least once`, `expected "${b}" to not ${p} with: #{exp}`, f, ]), v = p === "return" ? h.mock.results : h.mock.settledResults; throw new r(rF(h, v, g, f)); } }); }), [ { name: "toHaveLastResolvedWith", condition: s((c, d) => { let p = c.mock.settledResults[c.mock.settledResults.length - 1]; return p && p.type === "fulfilled" && it(p.value, d); }, "condition"), action: "resolve", }, { name: ["toHaveLastReturnedWith", "lastReturnedWith"], condition: s((c, d) => { let p = c.mock.results[c.mock.results.length - 1]; return p && p.type === "return" && it(p.value, d); }, "condition"), action: "return", }, ].forEach(({ name: c, condition: d, action: p }) => { a(c, function (f) { let h = i(this), m = p === "return" ? h.mock.results : h.mock.settledResults, y = m[m.length - 1], b = h.getMockName(); this.assert( d(h, f), `expected last "${b}" call to ${p} #{exp}`, `expected last "${b}" call to not ${p} #{exp}`, f, y?.value, ); }); }), [ { name: "toHaveNthResolvedWith", condition: s((c, d, p) => { let f = c.mock.settledResults[d - 1]; return f && f.type === "fulfilled" && it(f.value, p); }, "condition"), action: "resolve", }, { name: ["toHaveNthReturnedWith", "nthReturnedWith"], condition: s((c, d, p) => { let f = c.mock.results[d - 1]; return f && f.type === "return" && it(f.value, p); }, "condition"), action: "return", }, ].forEach(({ name: c, condition: d, action: p }) => { a(c, function (f, h) { let m = i(this), y = m.getMockName(), b = (p === "return" ? m.mock.results : m.mock.settledResults)[f - 1], g = `${bo(f)} call`; this.assert( d(m, f, h), `expected ${g} "${y}" call to ${p} #{exp}`, `expected ${g} "${y}" call to not ${p} #{exp}`, h, b?.value, ); }); }), a("withContext", function (c) { for (let d in c) t.flag(this, d, c[d]); return this; }), t.addProperty( e.Assertion.prototype, "resolves", s(function () { let c = new Error("resolves"); (t.flag(this, "promise", "resolves"), t.flag(this, "error", c)); let d = t.flag(this, "vitest-test"), p = t.flag(this, "object"); if (t.flag(this, "poll")) throw new SyntaxError( "expect.poll() is not supported in combination with .resolves", ); if (typeof p?.then != "function") throw new TypeError( `You must provide a Promise to expect() when using .resolves, not '${typeof p}'.`, ); let f = new Proxy(this, { get: s((h, m, y) => { let b = Reflect.get(h, m, y); return typeof b != "function" ? b instanceof e.Assertion ? f : b : (...g) => { t.flag(this, "_name", m); let v = p.then( (x) => (t.flag(this, "object", x), b.call(this, ...g)), (x) => { let A = new r( `promise rejected "${t.inspect(x)}" instead of resolving`, { showDiff: !1 }, ); throw ( (A.cause = x), (A.stack = c.stack.replace(c.message, A.message)), A ); }, ); return Cm(d, v, _m(t, this, !!g.length), c); }; }, "get"), }); return f; }, "__VITEST_RESOLVES__"), ), t.addProperty( e.Assertion.prototype, "rejects", s(function () { let c = new Error("rejects"); (t.flag(this, "promise", "rejects"), t.flag(this, "error", c)); let d = t.flag(this, "vitest-test"), p = t.flag(this, "object"), f = typeof p == "function" ? p() : p; if (t.flag(this, "poll")) throw new SyntaxError( "expect.poll() is not supported in combination with .rejects", ); if (typeof f?.then != "function") throw new TypeError( `You must provide a Promise to expect() when using .rejects, not '${typeof f}'.`, ); let h = new Proxy(this, { get: s((m, y, b) => { let g = Reflect.get(m, y, b); return typeof g != "function" ? g instanceof e.Assertion ? h : g : (...v) => { t.flag(this, "_name", y); let x = f.then( (A) => { let w = new r( `promise resolved "${t.inspect(A)}" instead of rejecting`, { showDiff: !0, expected: new Error("rejected promise"), actual: A, }, ); throw ( (w.stack = c.stack.replace(c.message, w.message)), w ); }, (A) => (t.flag(this, "object", A), g.call(this, ...v)), ); return Cm(d, x, _m(t, this, !!v.length), c); }; }, "get"), }); return h; }, "__VITEST_REJECTS__"), )); }, "JestChaiExpect"); function bo(e) { let t = e % 10, r = e % 100; return t === 1 && r !== 11 ? `${e}st` : t === 2 && r !== 12 ? `${e}nd` : t === 3 && r !== 13 ? `${e}rd` : `${e}th`; } s(bo, "ordinalOf"); function Wu(e, t, r) { return ( e.mock.calls.length && (t += qt.gray(` Received: ${e.mock.calls.map((n, a) => { let o = qt.bold(` ${bo(a + 1)} ${e.getMockName()} call: `); return ( r ? (o += Ua(r, n, { omitAnnotationLines: !0 })) : (o += hr(n) .split( ` `, ) .map((i) => ` ${i}`).join(` `)), (o += ` `), o ); }).join(` `)}`)), (t += qt.gray(` Number of calls: ${qt.bold(e.mock.calls.length)} `)), t ); } s(Wu, "formatCalls"); function rF(e, t, r, n) { return ( t.length && (r += qt.gray(` Received: ${t.map((a, o) => { let i = qt.bold(` ${bo(o + 1)} ${e.getMockName()} call return: `); return ( n ? (i += Ua(n, a.value, { omitAnnotationLines: !0 })) : (i += hr(a) .split( ` `, ) .map((u) => ` ${u}`).join(` `)), (i += ` `), i ); }).join(` `)}`)), (r += qt.gray(` Number of calls: ${qt.bold(e.mock.calls.length)} `)), r ); } s(rF, "formatReturns"); function nF(e, t) { let r = e._obj, n = nn.flag(e, "negate"), a = nn.flag(e, "promise") || "", o = { ...xv(), diff: Ua, stringify: hr, iterableEquality: Sr, subsetEquality: Yo, }; return { state: { ...rs(t), customTesters: hd(), isNot: n, utils: o, promise: a, equals: it, suppressedErrors: [], soft: nn.flag(e, "soft"), poll: nn.flag(e, "poll"), }, isNot: n, obj: r, }; } s(nF, "getMatcherState"); var aF = class extends Error { constructor(t, r, n) { (super(t), (this.actual = r), (this.expected = n)); } }; s(aF, "JestExtendError"); var U_ = aF; function oF(e, t, r) { return (n, a) => { Object.entries(r).forEach(([o, i]) => { function u(...f) { let { state: h, isNot: m, obj: y } = nF(this, t), b = i.call(h, y, ...f); if (b && typeof b == "object" && typeof b.then == "function") return b.then(({ pass: w, message: C, actual: E, expected: _ }) => { if ((w && m) || (!w && !m)) throw new U_(C(), E, _); }); let { pass: g, message: v, actual: x, expected: A } = b; if ((g && m) || (!g && !m)) throw new U_(v(), x, A); } s(u, "expectWrapper"); let l = Rv(a, o, u); (a.addMethod(globalThis[ts].matchers, o, l), a.addMethod(e.Assertion.prototype, o, l)); let c = class extends jn { constructor(h = !1, ...m) { super(m, h); } asymmetricMatch(h) { let { pass: m } = i.call( this.getMatcherContext(t), h, ...this.sample, ); return this.inverse ? !m : m; } toString() { return `${this.inverse ? "not." : ""}${o}`; } getExpectedType() { return "any"; } toAsymmetricMatcher() { return `${this.toString()}<${this.sample.map((h) => hr(h)).join(", ")}>`; } }; s(c, "CustomMatcher"); let d = c, p = s((...f) => new d(!1, ...f), "customMatcher"); (Object.defineProperty(t, o, { configurable: !0, enumerable: !0, value: p, writable: !0, }), Object.defineProperty(t.not, o, { configurable: !0, enumerable: !0, value: s((...f) => new d(!0, ...f), "value"), writable: !0, }), Object.defineProperty(globalThis[hm], o, { configurable: !0, enumerable: !0, value: p, writable: !0, })); }); }; } s(oF, "JestExtendPlugin"); var FG = s((e, t) => { t.addMethod(e.expect, "extend", (r, n) => { Ca(oF(e, r, n)); }); }, "JestExtend"); function iF() { (Ca(FG), Ca(DG), Ca(OG)); let e = s((n, a) => { let { assertionCalls: o } = rs(e); return (Gu({ assertionCalls: o + 1, soft: !1 }, e), Jn(n, a)); }, "expect"); (Object.assign(e, Jn), (e.getState = () => rs(e)), (e.setState = (n) => Gu(n, e)), (e.extend = (n) => Jn.extend(e, n)), (e.soft = (...n) => { let a = e(...n); return (e.setState({ soft: !0 }), a); }), e.extend(CG), (e.unreachable = (n) => { J.fail(`expected${n ? ` "${n}" ` : " "}not to be reached`); })); function t(n) { let a = s( () => new Error( `expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`, ), "errorGen", ); ("captureStackTrace" in Error && typeof Error.captureStackTrace == "function" && Error.captureStackTrace(a(), t), e.setState({ expectedAssertionsNumber: n, expectedAssertionsNumberErrorGen: a, })); } s(t, "assertions"); function r() { let n = new Error("expected any number of assertion, but got none"); ("captureStackTrace" in Error && typeof Error.captureStackTrace == "function" && Error.captureStackTrace(n, r), e.setState({ isExpectingAssertions: !0, isExpectingAssertionsError: n })); } return ( s(r, "hasAssertions"), Gu( { assertionCalls: 0, isExpectingAssertions: !1, isExpectingAssertionsError: null, expectedAssertionsNumber: null, expectedAssertionsNumberErrorGen: null, }, e, ), nn.addMethod(e, "assertions", t), nn.addMethod(e, "hasAssertions", r), e.extend(MT), e ); } s(iF, "createExpect"); var sF = iF(); Object.defineProperty(globalThis, wv, { value: sF, writable: !0, configurable: !0, }); function uF(e, t, r) { Object.defineProperty(e, t, r); } s(uF, "f"); var Ju = Symbol.for("tinyspy:spy"), IG = s((e) => { ((e.called = !1), (e.callCount = 0), (e.calls = []), (e.results = []), (e.resolves = []), (e.next = [])); }, "P"), NG = s( (e) => ( uF(e, Ju, { value: { reset: s(() => IG(e[Ju]), "reset") } }), e[Ju] ), "K", ), jG = s((e) => e[Ju] || NG(e), "T"), Am = new Set(); function Tv(e) { return (Am.add(e), () => void Am.delete(e)); } s(Tv, "onMockCall"); var kG = s((...e) => { let t = xD(...e); return Dv(t); }, "spyOn"); function Ov(e) { let t = e ? fm(e) : fm(); return Dv(t); } s(Ov, "fn"); function Dv(e) { let t = Sm(e), r = t.mockImplementation.bind(null); return ((t.mockImplementation = (n) => Sm(r(n))), t); } s(Dv, "reactiveMock"); function Sm(e) { let t = jG(e), r = t.impl; return ( t.willCall(function (...n) { return (Am.forEach((a) => a(e, n)), r?.apply(this, n)); }), e ); } s(Sm, "listenWhenCalled"); function Fv() { Ds.forEach((e) => e.mockClear()); } s(Fv, "clearAllMocks"); function Iv() { Ds.forEach((e) => e.mockReset()); } s(Iv, "resetAllMocks"); function Nv() { Ds.forEach((e) => e.mockRestore()); } s(Nv, "restoreAllMocks"); function lF(e, t = {}) { return e; } s(lF, "mocked"); var cF = {}; ur(cF, { buildQueries: () => pn, configure: () => uI, createEvent: () => Ii, findAllByAltText: () => rN, findAllByDisplayValue: () => KI, findAllByLabelText: () => TI, findAllByPlaceholderText: () => MI, findAllByRole: () => yN, findAllByTestId: () => CN, findAllByText: () => VI, findAllByTitle: () => uN, findByAltText: () => nN, findByDisplayValue: () => YI, findByLabelText: () => OI, findByPlaceholderText: () => BI, findByRole: () => gN, findByTestId: () => wN, findByText: () => zI, findByTitle: () => lN, fireEvent: () => No, getAllByAltText: () => eN, getAllByDisplayValue: () => JI, getAllByLabelText: () => DI, getAllByPlaceholderText: () => kI, getAllByRole: () => hN, getAllByTestId: () => EN, getAllByText: () => UI, getAllByTitle: () => iN, getByAltText: () => tN, getByDisplayValue: () => XI, getByLabelText: () => FI, getByPlaceholderText: () => qI, getByRole: () => mN, getByTestId: () => _N, getByText: () => HI, getByTitle: () => sN, getConfig: () => tt, getDefaultNormalizer: () => vd, getElementError: () => Ns, getMultipleElementsFoundError: () => js, getNodeText: () => Qo, getQueriesForElement: () => Ul, getRoles: () => e0, getSuggestedQuery: () => as, isInaccessible: () => Is, logDOM: () => Fm, logRoles: () => oW, makeFindQuery: () => Da, makeGetAllQuery: () => Cd, makeSingleQuery: () => Oa, prettyDOM: () => Io, prettyFormat: () => jv, queries: () => $l, queryAllByAltText: () => QI, queryAllByAttribute: () => ua, queryAllByDisplayValue: () => GI, queryAllByLabelText: () => II, queryAllByPlaceholderText: () => NI, queryAllByRole: () => pN, queryAllByTestId: () => bN, queryAllByText: () => LI, queryAllByTitle: () => aN, queryByAltText: () => ZI, queryByAttribute: () => r0, queryByDisplayValue: () => WI, queryByLabelText: () => PI, queryByPlaceholderText: () => jI, queryByRole: () => fN, queryByTestId: () => vN, queryByText: () => $I, queryByTitle: () => oN, queryHelpers: () => iW, screen: () => xW, waitFor: () => _d, waitForElementToBeRemoved: () => SN, within: () => Ul, wrapAllByQueryWithSuggestion: () => mr, wrapSingleQueryWithSuggestion: () => Kn, }); var jv = Lt(L8()), qG = Object.prototype.toString; function xm(e) { return typeof e == "function" || qG.call(e) === "[object Function]"; } s(xm, "isCallable"); function dF(e) { var t = Number(e); return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t)); } s(dF, "toInteger"); var MG = Math.pow(2, 53) - 1; function pF(e) { var t = dF(e); return Math.min(Math.max(t, 0), MG); } s(pF, "toLength"); function Ir(e, t) { var r = Array, n = Object(e); if (e == null) throw new TypeError( "Array.from requires an array-like object - not null or undefined", ); if (typeof t < "u" && !xm(t)) throw new TypeError( "Array.from: when provided, the second argument must be a function", ); for ( var a = pF(n.length), o = xm(r) ? Object(new r(a)) : new Array(a), i = 0, u; i < a; ) ((u = n[i]), t ? (o[i] = t(u, i)) : (o[i] = u), (i += 1)); return ((o.length = a), o); } s(Ir, "arrayFrom"); function Do(e) { "@babel/helpers - typeof"; return ( (Do = 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; }), Do(e) ); } s(Do, "_typeof"); function fF(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } s(fF, "_classCallCheck"); function Pm(e, t) { for (var r = 0; r < t.length; r++) { var n = t[r]; ((n.enumerable = n.enumerable || !1), (n.configurable = !0), "value" in n && (n.writable = !0), Object.defineProperty(e, kv(n.key), n)); } } s(Pm, "_defineProperties"); function hF(e, t, r) { return ( t && Pm(e.prototype, t), r && Pm(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e ); } s(hF, "_createClass"); function mF(e, t, r) { return ( (t = kv(t)), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(mF, "_defineProperty"); function kv(e) { var t = yF(e, "string"); return Do(t) === "symbol" ? t : String(t); } s(kv, "_toPropertyKey"); function yF(e, t) { if (Do(e) !== "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var n = r.call(e, t || "default"); if (Do(n) !== "object") return n; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } s(yF, "_toPrimitive"); var BG = (function () { function e() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; (fF(this, e), mF(this, "items", void 0), (this.items = t)); } return ( s(e, "SetLike"), hF(e, [ { key: "add", value: s(function (t) { return (this.has(t) === !1 && this.items.push(t), this); }, "add"), }, { key: "clear", value: s(function () { this.items = []; }, "clear"), }, { key: "delete", value: s(function (t) { var r = this.items.length; return ( (this.items = this.items.filter(function (n) { return n !== t; })), r !== this.items.length ); }, "_delete"), }, { key: "forEach", value: s(function (t) { var r = this; this.items.forEach(function (n) { t(n, n, r); }); }, "forEach"), }, { key: "has", value: s(function (t) { return this.items.indexOf(t) !== -1; }, "has"), }, { key: "size", get: s(function () { return this.items.length; }, "get"), }, ]), e ); })(), LG = typeof Set > "u" ? Set : BG; function Qt(e) { var t; return (t = e.localName) !== null && t !== void 0 ? t : e.tagName.toLowerCase(); } s(Qt, "getLocalName"); var $G = { article: "article", aside: "complementary", button: "button", datalist: "listbox", dd: "definition", details: "group", dialog: "dialog", dt: "term", fieldset: "group", figure: "figure", form: "form", footer: "contentinfo", h1: "heading", h2: "heading", h3: "heading", h4: "heading", h5: "heading", h6: "heading", header: "banner", hr: "separator", html: "document", legend: "legend", li: "listitem", math: "math", main: "main", menu: "list", nav: "navigation", ol: "list", optgroup: "group", option: "option", output: "status", progress: "progressbar", section: "region", summary: "button", table: "table", tbody: "rowgroup", textarea: "textbox", tfoot: "rowgroup", td: "cell", th: "columnheader", thead: "rowgroup", tr: "row", ul: "list", }, UG = { caption: new Set(["aria-label", "aria-labelledby"]), code: new Set(["aria-label", "aria-labelledby"]), deletion: new Set(["aria-label", "aria-labelledby"]), emphasis: new Set(["aria-label", "aria-labelledby"]), generic: new Set(["aria-label", "aria-labelledby", "aria-roledescription"]), insertion: new Set(["aria-label", "aria-labelledby"]), paragraph: new Set(["aria-label", "aria-labelledby"]), presentation: new Set(["aria-label", "aria-labelledby"]), strong: new Set(["aria-label", "aria-labelledby"]), subscript: new Set(["aria-label", "aria-labelledby"]), superscript: new Set(["aria-label", "aria-labelledby"]), }; function gF(e, t) { return [ "aria-atomic", "aria-busy", "aria-controls", "aria-current", "aria-describedby", "aria-details", "aria-dropeffect", "aria-flowto", "aria-grabbed", "aria-hidden", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-live", "aria-owns", "aria-relevant", "aria-roledescription", ].some(function (r) { var n; return ( e.hasAttribute(r) && !((n = UG[t]) !== null && n !== void 0 && n.has(r)) ); }); } s(gF, "hasGlobalAriaAttributes"); function qv(e, t) { return gF(e, t); } s(qv, "ignorePresentationalRole"); function bF(e) { var t = EF(e); if (t === null || t === "presentation") { var r = vF(e); if (t !== "presentation" || qv(e, r || "")) return r; } return t; } s(bF, "getRole"); function vF(e) { var t = $G[Qt(e)]; if (t !== void 0) return t; switch (Qt(e)) { case "a": case "area": case "link": if (e.hasAttribute("href")) return "link"; break; case "img": return e.getAttribute("alt") === "" && !qv(e, "img") ? "presentation" : "img"; case "input": { var r = e, n = r.type; switch (n) { case "button": case "image": case "reset": case "submit": return "button"; case "checkbox": case "radio": return n; case "range": return "slider"; case "email": case "tel": case "text": case "url": return e.hasAttribute("list") ? "combobox" : "textbox"; case "search": return e.hasAttribute("list") ? "combobox" : "searchbox"; case "number": return "spinbutton"; default: return null; } } case "select": return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox"; } return null; } s(vF, "getImplicitRole"); function EF(e) { var t = e.getAttribute("role"); if (t !== null) { var r = t.trim().split(" ")[0]; if (r.length > 0) return r; } return null; } s(EF, "getExplicitRole"); function At(e) { return e !== null && e.nodeType === e.ELEMENT_NODE; } s(At, "isElement"); function Mv(e) { return At(e) && Qt(e) === "caption"; } s(Mv, "isHTMLTableCaptionElement"); function Fi(e) { return At(e) && Qt(e) === "input"; } s(Fi, "isHTMLInputElement"); function _F(e) { return At(e) && Qt(e) === "optgroup"; } s(_F, "isHTMLOptGroupElement"); function CF(e) { return At(e) && Qt(e) === "select"; } s(CF, "isHTMLSelectElement"); function wF(e) { return At(e) && Qt(e) === "table"; } s(wF, "isHTMLTableElement"); function AF(e) { return At(e) && Qt(e) === "textarea"; } s(AF, "isHTMLTextAreaElement"); function SF(e) { var t = e.ownerDocument === null ? e : e.ownerDocument, r = t.defaultView; if (r === null) throw new TypeError("no window available"); return r; } s(SF, "safeWindow"); function xF(e) { return At(e) && Qt(e) === "fieldset"; } s(xF, "isHTMLFieldSetElement"); function PF(e) { return At(e) && Qt(e) === "legend"; } s(PF, "isHTMLLegendElement"); function RF(e) { return At(e) && Qt(e) === "slot"; } s(RF, "isHTMLSlotElement"); function TF(e) { return At(e) && e.ownerSVGElement !== void 0; } s(TF, "isSVGElement"); function OF(e) { return At(e) && Qt(e) === "svg"; } s(OF, "isSVGSVGElement"); function DF(e) { return TF(e) && Qt(e) === "title"; } s(DF, "isSVGTitleElement"); function ns(e, t) { if (At(e) && e.hasAttribute(t)) { var r = e.getAttribute(t).split(" "), n = e.getRootNode ? e.getRootNode() : e.ownerDocument; return r .map(function (a) { return n.getElementById(a); }) .filter(function (a) { return a !== null; }); } return []; } s(ns, "queryIdRefs"); function on(e, t) { return At(e) ? t.indexOf(bF(e)) !== -1 : !1; } s(on, "hasAnyConcreteRoles"); function FF(e) { return e.trim().replace(/\s\s+/g, " "); } s(FF, "asFlatString"); function IF(e, t) { if (!At(e)) return !1; if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true") return !0; var r = t(e); return ( r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden" ); } s(IF, "isHidden"); function NF(e) { return on(e, ["button", "combobox", "listbox", "textbox"]) || Bv(e, "range"); } s(NF, "isControl"); function Bv(e, t) { if (!At(e)) return !1; switch (t) { case "range": return on(e, [ "meter", "progressbar", "scrollbar", "slider", "spinbutton", ]); default: throw new TypeError( "No knowledge about abstract role '".concat( t, "'. This is likely a bug :(", ), ); } } s(Bv, "hasAbstractRole"); function Rm(e, t) { var r = Ir(e.querySelectorAll(t)); return ( ns(e, "aria-owns").forEach(function (n) { r.push.apply(r, Ir(n.querySelectorAll(t))); }), r ); } s(Rm, "querySelectorAllSubtree"); function jF(e) { return CF(e) ? e.selectedOptions || Rm(e, "[selected]") : Rm(e, '[aria-selected="true"]'); } s(jF, "querySelectedOptions"); function kF(e) { return on(e, ["none", "presentation"]); } s(kF, "isMarkedPresentational"); function qF(e) { return Mv(e); } s(qF, "isNativeHostLanguageTextAlternativeElement"); function MF(e) { return on(e, [ "button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem", ]); } s(MF, "allowsNameFromContent"); function BF(e) { return !1; } s(BF, "isDescendantOfNativeHostLanguageTextAlternativeElement"); function LF(e) { return Fi(e) || AF(e) ? e.value : e.textContent || ""; } s(LF, "getValueOfTextbox"); function Tm(e) { var t = e.getPropertyValue("content"); return /^["'].*["']$/.test(t) ? t.slice(1, -1) : ""; } s(Tm, "getTextualContent"); function Lv(e) { var t = Qt(e); return ( t === "button" || (t === "input" && e.getAttribute("type") !== "hidden") || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea" ); } s(Lv, "isLabelableElement"); function $v(e) { if (Lv(e)) return e; var t = null; return ( e.childNodes.forEach(function (r) { if (t === null && At(r)) { var n = $v(r); n !== null && (t = n); } }), t ); } s($v, "findLabelableElement"); function $F(e) { if (e.control !== void 0) return e.control; var t = e.getAttribute("for"); return t !== null ? e.ownerDocument.getElementById(t) : $v(e); } s($F, "getControlOfLabel"); function UF(e) { var t = e.labels; if (t === null) return t; if (t !== void 0) return Ir(t); if (!Lv(e)) return null; var r = e.ownerDocument; return Ir(r.querySelectorAll("label")).filter(function (n) { return $F(n) === e; }); } s(UF, "getLabels"); function HF(e) { var t = e.assignedNodes(); return t.length === 0 ? Ir(e.childNodes) : t; } s(HF, "getSlotContents"); function Uv(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new LG(), n = SF(e), a = t.compute, o = a === void 0 ? "name" : a, i = t.computedStyleSupportsPseudoElements, u = i === void 0 ? t.getComputedStyle !== void 0 : i, l = t.getComputedStyle, c = l === void 0 ? n.getComputedStyle.bind(n) : l, d = t.hidden, p = d === void 0 ? !1 : d; function f(g, v) { var x = ""; if (At(g) && u) { var A = c(g, "::before"), w = Tm(A); x = "".concat(w, " ").concat(x); } var C = RF(g) ? HF(g) : Ir(g.childNodes).concat(ns(g, "aria-owns")); if ( (C.forEach(function (P) { var D = b(P, { isEmbeddedInLabel: v.isEmbeddedInLabel, isReferenced: !1, recursion: !0, }), F = At(P) ? c(P).getPropertyValue("display") : "inline", L = F !== "inline" ? " " : ""; x += "".concat(L).concat(D).concat(L); }), At(g) && u) ) { var E = c(g, "::after"), _ = Tm(E); x = "".concat(x, " ").concat(_); } return x.trim(); } s(f, "computeMiscTextAlternative"); function h(g, v) { var x = g.getAttributeNode(v); return x !== null && !r.has(x) && x.value.trim() !== "" ? (r.add(x), x.value) : null; } s(h, "useAttribute"); function m(g) { return At(g) ? h(g, "title") : null; } s(m, "computeTooltipAttributeValue"); function y(g) { if (!At(g)) return null; if (xF(g)) { r.add(g); for (var v = Ir(g.childNodes), x = 0; x < v.length; x += 1) { var A = v[x]; if (PF(A)) return b(A, { isEmbeddedInLabel: !1, isReferenced: !1, recursion: !1, }); } } else if (wF(g)) { r.add(g); for (var w = Ir(g.childNodes), C = 0; C < w.length; C += 1) { var E = w[C]; if (Mv(E)) return b(E, { isEmbeddedInLabel: !1, isReferenced: !1, recursion: !1, }); } } else if (OF(g)) { r.add(g); for (var _ = Ir(g.childNodes), P = 0; P < _.length; P += 1) { var D = _[P]; if (DF(D)) return D.textContent; } return null; } else if (Qt(g) === "img" || Qt(g) === "area") { var F = h(g, "alt"); if (F !== null) return F; } else if (_F(g)) { var L = h(g, "label"); if (L !== null) return L; } if ( Fi(g) && (g.type === "button" || g.type === "submit" || g.type === "reset") ) { var q = h(g, "value"); if (q !== null) return q; if (g.type === "submit") return "Submit"; if (g.type === "reset") return "Reset"; } var T = UF(g); if (T !== null && T.length !== 0) return ( r.add(g), Ir(T) .map(function (Q) { return b(Q, { isEmbeddedInLabel: !0, isReferenced: !1, recursion: !0, }); }) .filter(function (Q) { return Q.length > 0; }) .join(" ") ); if (Fi(g) && g.type === "image") { var k = h(g, "alt"); if (k !== null) return k; var I = h(g, "title"); return I !== null ? I : "Submit Query"; } if (on(g, ["button"])) { var W = f(g, { isEmbeddedInLabel: !1 }); if (W !== "") return W; } return null; } s(y, "computeElementTextAlternative"); function b(g, v) { if (r.has(g)) return ""; if (!p && IF(g, c) && !v.isReferenced) return (r.add(g), ""); var x = At(g) ? g.getAttributeNode("aria-labelledby") : null, A = x !== null && !r.has(x) ? ns(g, "aria-labelledby") : []; if (o === "name" && !v.isReferenced && A.length > 0) return ( r.add(x), A.map(function (F) { return b(F, { isEmbeddedInLabel: v.isEmbeddedInLabel, isReferenced: !0, recursion: !1, }); }).join(" ") ); var w = v.recursion && NF(g) && o === "name"; if (!w) { var C = ((At(g) && g.getAttribute("aria-label")) || "").trim(); if (C !== "" && o === "name") return (r.add(g), C); if (!kF(g)) { var E = y(g); if (E !== null) return (r.add(g), E); } } if (on(g, ["menu"])) return (r.add(g), ""); if (w || v.isEmbeddedInLabel || v.isReferenced) { if (on(g, ["combobox", "listbox"])) { r.add(g); var _ = jF(g); return _.length === 0 ? Fi(g) ? g.value : "" : Ir(_) .map(function (F) { return b(F, { isEmbeddedInLabel: v.isEmbeddedInLabel, isReferenced: !1, recursion: !0, }); }) .join(" "); } if (Bv(g, "range")) return ( r.add(g), g.hasAttribute("aria-valuetext") ? g.getAttribute("aria-valuetext") : g.hasAttribute("aria-valuenow") ? g.getAttribute("aria-valuenow") : g.getAttribute("value") || "" ); if (on(g, ["textbox"])) return (r.add(g), LF(g)); } if (MF(g) || (At(g) && v.isReferenced) || qF(g) || BF()) { var P = f(g, { isEmbeddedInLabel: v.isEmbeddedInLabel }); if (P !== "") return (r.add(g), P); } if (g.nodeType === g.TEXT_NODE) return (r.add(g), g.textContent || ""); if (v.recursion) return (r.add(g), f(g, { isEmbeddedInLabel: v.isEmbeddedInLabel })); var D = m(g); return D !== null ? (r.add(g), D) : (r.add(g), ""); } return ( s(b, "computeTextAlternative"), FF( b(e, { isEmbeddedInLabel: !1, isReferenced: o === "description", recursion: !1, }), ) ); } s(Uv, "computeTextAlternative"); function Fo(e) { "@babel/helpers - typeof"; return ( (Fo = 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; }), Fo(e) ); } s(Fo, "_typeof"); function Om(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); (t && (n = n.filter(function (a) { return Object.getOwnPropertyDescriptor(e, a).enumerable; })), r.push.apply(r, n)); } return r; } s(Om, "ownKeys"); function Dm(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? Om(Object(r), !0).forEach(function (n) { VF(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Om(Object(r)).forEach(function (n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } s(Dm, "_objectSpread"); function VF(e, t, r) { return ( (t = zF(t)), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(VF, "_defineProperty"); function zF(e) { var t = GF(e, "string"); return Fo(t) === "symbol" ? t : String(t); } s(zF, "_toPropertyKey"); function GF(e, t) { if (Fo(e) !== "object" || e === null) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var n = r.call(e, t || "default"); if (Fo(n) !== "object") return n; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } s(GF, "_toPrimitive"); function Hv(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = ns(e, "aria-describedby") .map(function (a) { return Uv(a, Dm(Dm({}, t), {}, { compute: "description" })); }) .join(" "); if (r === "") { var n = e.getAttribute("title"); r = n === null ? "" : n; } return r; } s(Hv, "computeAccessibleDescription"); function WF(e) { return on(e, [ "caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript", ]); } s(WF, "prohibitsNaming"); function gd(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; return WF(e) ? "" : Uv(e, t); } s(gd, "computeAccessibleName"); var Dr = Lt(x9()), HG = Lt(P9()); function Vv(e) { return e.replace(//g, ">"); } s(Vv, "escapeHTML"); var VG = s((e, t, r, n, a, o, i) => { let u = n + r.indent, l = r.colors; return e .map((c) => { let d = t[c], p = i(d, r, u, a, o); return ( typeof d != "string" && (p.indexOf(` `) !== -1 && (p = r.spacingOuter + u + p + r.spacingOuter + n), (p = "{" + p + "}")), r.spacingInner + n + l.prop.open + c + l.prop.close + "=" + l.value.open + p + l.value.close ); }) .join(""); }, "printProps"), zG = 3, GG = s( (e, t, r, n, a, o) => e .map((i) => { let u = typeof i == "string" ? JF(i, t) : o(i, t, r, n, a); return u === "" && typeof i == "object" && i !== null && i.nodeType !== zG ? "" : t.spacingOuter + r + u; }) .join(""), "printChildren", ), JF = s((e, t) => { let r = t.colors.content; return r.open + Vv(e) + r.close; }, "printText"), WG = s((e, t) => { let r = t.colors.comment; return r.open + "" + r.close; }, "printComment"), JG = s((e, t, r, n, a) => { let o = n.colors.tag; return ( o.open + "<" + e + (t && o.close + t + n.spacingOuter + a + o.open) + (r ? ">" + o.close + r + n.spacingOuter + a + o.open + "" + o.close ); }, "printElement"), XG = s((e, t) => { let r = t.colors.tag; return r.open + "<" + e + r.close + " …" + r.open + " />" + r.close; }, "printElementAsLeaf"), KG = 1, XF = 3, KF = 8, YF = 11, YG = /^((HTML|SVG)\w*)?Element$/, QF = s((e) => { let { tagName: t } = e; return !!( (typeof t == "string" && t.includes("-")) || (typeof e.hasAttribute == "function" && e.hasAttribute("is")) ); }, "isCustomElement"), QG = s((e) => { let t = e.constructor.name, { nodeType: r } = e; return ( (r === KG && (YG.test(t) || QF(e))) || (r === XF && t === "Text") || (r === KF && t === "Comment") || (r === YF && t === "DocumentFragment") ); }, "testNode"); function ZF(e) { return e.nodeType === XF; } s(ZF, "nodeIsText"); function eI(e) { return e.nodeType === KF; } s(eI, "nodeIsComment"); function Xu(e) { return e.nodeType === YF; } s(Xu, "nodeIsFragment"); function tI(e) { return { test: s((t) => { var r; return ( ((t == null || (r = t.constructor) == null ? void 0 : r.name) || QF(t)) && QG(t) ); }, "test"), serialize: s((t, r, n, a, o, i) => { if (ZF(t)) return JF(t.data, r); if (eI(t)) return WG(t.data, r); let u = Xu(t) ? "DocumentFragment" : t.tagName.toLowerCase(); return ++a > r.maxDepth ? XG(u, r) : JG( u, VG( Xu(t) ? [] : Array.from(t.attributes) .map((l) => l.name) .sort(), Xu(t) ? {} : Array.from(t.attributes).reduce( (l, c) => ((l[c.name] = c.value), l), {}, ), r, n + r.indent, a, o, i, ), GG( Array.prototype.slice.call(t.childNodes || t.children).filter(e), r, n + r.indent, a, o, i, ), r, n, ); }, "serialize"), }; } s(tI, "createDOMElementFilter"); var rI = null, zv = null, Gv = null; try { let e = module && module.require; ((zv = e.call(module, "fs").readFileSync), (Gv = e.call(module, "@babel/code-frame").codeFrameColumns), (rI = e.call(module, "chalk"))); } catch {} function nI(e) { let t = e.indexOf("(") + 1, r = e.indexOf(")"), n = e.slice(t, r), a = n.split(":"), [o, i, u] = [a[0], parseInt(a[1], 10), parseInt(a[2], 10)], l = ""; try { l = zv(o, "utf-8"); } catch { return ""; } let c = Gv( l, { start: { line: i, column: u } }, { highlightCode: !0, linesBelow: 0 }, ); return ( rI.dim(n) + ` ` + c + ` ` ); } s(nI, "getCodeFrame"); function aI() { if (!zv || !Gv) return ""; let e = new Error().stack .split( ` `, ) .slice(1) .find((t) => !t.includes("node_modules/")); return nI(e); } s(aI, "getUserCodeFrame"); var oI = 3; function Ku() { return typeof jest < "u" && jest !== null ? setTimeout._isMockFunction === !0 || Object.prototype.hasOwnProperty.call(setTimeout, "clock") : !1; } s(Ku, "jestFakeTimersAreEnabled"); function bd() { if (typeof window > "u") throw new Error("Could not find default container"); return window.document; } s(bd, "getDocument"); function Wv(e) { if (e.defaultView) return e.defaultView; if (e.ownerDocument && e.ownerDocument.defaultView) return e.ownerDocument.defaultView; if (e.window) return e.window; throw e.ownerDocument && e.ownerDocument.defaultView === null ? new Error( "It looks like the window object is not available for the provided node.", ) : e.then instanceof Function ? new Error( "It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?", ) : Array.isArray(e) ? new Error( "It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?", ) : typeof e.debug == "function" && typeof e.logTestingPlaygroundURL == "function" ? new Error( "It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?", ) : new Error( "The given node is not an Element, the node type is: " + typeof e + ".", ); } s(Wv, "getWindowFromNode"); function dn(e) { if ( !e || typeof e.querySelector != "function" || typeof e.querySelectorAll != "function" ) throw new TypeError( "Expected container to be an Element, a Document or a DocumentFragment but got " + t(e) + ".", ); function t(r) { return typeof r == "object" ? r === null ? "null" : r.constructor.name : typeof r; } s(t, "getTypeName"); } s(dn, "checkContainerType"); var ZG = s(() => { if (typeof process > "u") return !1; let e; try { var t; let r = (t = _h) == null ? void 0 : t.COLORS; r && (e = JSON.parse(r)); } catch {} return typeof e == "boolean" ? e : process.versions !== void 0 && process.versions.node !== void 0; }, "shouldHighlight"), { DOMCollection: eW } = jv.plugins, tW = 1, rW = 8; function iI(e) { return ( e.nodeType !== rW && (e.nodeType !== tW || !e.matches(tt().defaultIgnore)) ); } s(iI, "filterCommentsAndDefaultIgnoreTagsTags"); function Io(e, t, r) { if ( (r === void 0 && (r = {}), e || (e = bd().body), typeof t != "number" && (t = (typeof process < "u" && typeof _h < "u" && _h.DEBUG_PRINT_LIMIT) || 7e3), t === 0) ) return ""; e.documentElement && (e = e.documentElement); let n = typeof e; if ( (n === "object" ? (n = e.constructor.name) : (e = {}), !("outerHTML" in e)) ) throw new TypeError("Expected an element or document but got " + n); let { filterNode: a = iI, ...o } = r, i = jv.format(e, { plugins: [tI(a), eW], printFunctionName: !1, highlight: ZG(), ...o, }); return t !== void 0 && e.outerHTML.length > t ? i.slice(0, t) + "..." : i; } s(Io, "prettyDOM"); var Fm = s(function () { let e = aI(); console.log( e ? Io(...arguments) + ` ` + e : Io(...arguments), ); }, "logDOM"), Sa = { testIdAttribute: "data-testid", asyncUtilTimeout: 1e3, asyncWrapper: s((e) => e(), "asyncWrapper"), unstable_advanceTimersWrapper: s( (e) => e(), "unstable_advanceTimersWrapper", ), eventWrapper: s((e) => e(), "eventWrapper"), defaultHidden: !1, defaultIgnore: "script, style", showOriginalStackTrace: !1, throwSuggestions: !1, getElementError(e, t) { let r = Io(t), n = new Error( [ e, "Ignored nodes: comments, " + Sa.defaultIgnore + ` ` + r, ].filter(Boolean).join(` `), ); return ((n.name = "TestingLibraryElementError"), n); }, _disableExpensiveErrorDiagnostics: !1, computedStyleSupportsPseudoElements: !1, }; function sI(e) { try { return ((Sa._disableExpensiveErrorDiagnostics = !0), e()); } finally { Sa._disableExpensiveErrorDiagnostics = !1; } } s(sI, "runWithExpensiveErrorDiagnosticsDisabled"); function uI(e) { (typeof e == "function" && (e = e(Sa)), (Sa = { ...Sa, ...e })); } s(uI, "configure"); function tt() { return Sa; } s(tt, "getConfig"); var nW = [ "button", "meter", "output", "progress", "select", "textarea", "input", ]; function Jv(e) { return nW.includes(e.nodeName.toLowerCase()) ? "" : e.nodeType === oI ? e.textContent : Array.from(e.childNodes) .map((t) => Jv(t)) .join(""); } s(Jv, "getTextContent"); function Ll(e) { let t; return ( e.tagName.toLowerCase() === "label" ? (t = Jv(e)) : (t = e.value || e.textContent), t ); } s(Ll, "getLabelContent"); function Xv(e) { if (e.labels !== void 0) { var t; return (t = e.labels) != null ? t : []; } if (!lI(e)) return []; let r = e.ownerDocument.querySelectorAll("label"); return Array.from(r).filter((n) => n.control === e); } s(Xv, "getRealLabels"); function lI(e) { return ( /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName) || (e.tagName === "INPUT" && e.getAttribute("type") !== "hidden") ); } s(lI, "isLabelable"); function Kv(e, t, r) { let { selector: n = "*" } = r === void 0 ? {} : r, a = t.getAttribute("aria-labelledby"), o = a ? a.split(" ") : []; return o.length ? o.map((i) => { let u = e.querySelector('[id="' + i + '"]'); return u ? { content: Ll(u), formControl: null } : { content: "", formControl: null }; }) : Array.from(Xv(t)).map((i) => { let u = Ll(i), l = Array.from( i.querySelectorAll( "button, input, meter, output, progress, select, textarea", ), ).filter((c) => c.matches(n))[0]; return { content: u, formControl: l }; }); } s(Kv, "getLabels"); function Yv(e) { if (e == null) throw new Error( "It looks like " + e + " was passed instead of a matcher. Did you do something like getByText(" + e + ")?", ); } s(Yv, "assertNotNullOrUndefined"); function Va(e, t, r, n) { if (typeof e != "string") return !1; Yv(r); let a = n(e); return typeof r == "string" || typeof r == "number" ? a.toLowerCase().includes(r.toString().toLowerCase()) : typeof r == "function" ? r(a, t) : Qv(r, a); } s(Va, "fuzzyMatches"); function un(e, t, r, n) { if (typeof e != "string") return !1; Yv(r); let a = n(e); return r instanceof Function ? r(a, t) : r instanceof RegExp ? Qv(r, a) : a === String(r); } s(un, "matches"); function vd(e) { let { trim: t = !0, collapseWhitespace: r = !0 } = e === void 0 ? {} : e; return (n) => { let a = n; return ((a = t ? a.trim() : a), (a = r ? a.replace(/\s+/g, " ") : a), a); }; } s(vd, "getDefaultNormalizer"); function sa(e) { let { trim: t, collapseWhitespace: r, normalizer: n } = e; if (!n) return vd({ trim: t, collapseWhitespace: r }); if (typeof t < "u" || typeof r < "u") throw new Error( 'trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer', ); return n; } s(sa, "makeNormalizer"); function Qv(e, t) { let r = e.test(t); return ( e.global && e.lastIndex !== 0 && (console.warn( "To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp.", ), (e.lastIndex = 0)), r ); } s(Qv, "matchRegExp"); function Qo(e) { return e.matches("input[type=submit], input[type=button], input[type=reset]") ? e.value : Array.from(e.childNodes) .filter((t) => t.nodeType === oI && !!t.textContent) .map((t) => t.textContent) .join(""); } s(Qo, "getNodeText"); var aW = cI(Dr.elementRoles); function Zv(e) { return ( e.hidden === !0 || e.getAttribute("aria-hidden") === "true" || e.ownerDocument.defaultView.getComputedStyle(e).display === "none" ); } s(Zv, "isSubtreeInaccessible"); function Is(e, t) { t === void 0 && (t = {}); let { isSubtreeInaccessible: r = Zv } = t; if (e.ownerDocument.defaultView.getComputedStyle(e).visibility === "hidden") return !0; let n = e; for (; n; ) { if (r(n)) return !0; n = n.parentElement; } return !1; } s(Is, "isInaccessible"); function Ed(e) { for (let { match: t, roles: r } of aW) if (t(e)) return [...r]; return []; } s(Ed, "getImplicitAriaRoles"); function cI(e) { function t(i) { let { name: u, attributes: l } = i; return ( "" + u + l .map((c) => { let { name: d, value: p, constraints: f = [] } = c, h = f.indexOf("undefined") !== -1, m = f.indexOf("set") !== -1; return typeof p < "u" ? "[" + d + '="' + p + '"]' : h ? ":not([" + d + "])" : m ? "[" + d + "]:not([" + d + '=""])' : "[" + d + "]"; }) .join("") ); } s(t, "makeElementSelector"); function r(i) { let { attributes: u = [] } = i; return u.length; } s(r, "getSelectorSpecificity"); function n(i, u) { let { specificity: l } = i, { specificity: c } = u; return c - l; } s(n, "bySelectorSpecificity"); function a(i) { let { attributes: u = [] } = i, l = u.findIndex( (d) => d.value && d.name === "type" && d.value === "text", ); l >= 0 && (u = [...u.slice(0, l), ...u.slice(l + 1)]); let c = t({ ...i, attributes: u }); return (d) => (l >= 0 && d.type !== "text" ? !1 : d.matches(c)); } s(a, "match"); let o = []; for (let [i, u] of e.entries()) o = [...o, { match: a(i), roles: Array.from(u), specificity: r(i) }]; return o.sort(n); } s(cI, "buildElementRoleList"); function e0(e, t) { let { hidden: r = !1 } = t === void 0 ? {} : t; function n(a) { return [a, ...Array.from(a.children).reduce((o, i) => [...o, ...n(i)], [])]; } return ( s(n, "flattenDOM"), n(e) .filter((a) => (r === !1 ? Is(a) === !1 : !0)) .reduce((a, o) => { let i = []; return ( o.hasAttribute("role") ? (i = o.getAttribute("role").split(" ").slice(0, 1)) : (i = Ed(o)), i.reduce( (u, l) => Array.isArray(u[l]) ? { ...u, [l]: [...u[l], o] } : { ...u, [l]: [o] }, a, ) ); }, {}) ); } s(e0, "getRoles"); function t0(e, t) { let { hidden: r, includeDescription: n } = t, a = e0(e, { hidden: r }); return Object.entries(a) .filter((o) => { let [i] = o; return i !== "generic"; }) .map((o) => { let [i, u] = o, l = "-".repeat(50), c = u.map((d) => { let p = 'Name "' + gd(d, { computedStyleSupportsPseudoElements: tt().computedStyleSupportsPseudoElements, }) + `": `, f = Io(d.cloneNode(!1)); if (n) { let h = 'Description "' + Hv(d, { computedStyleSupportsPseudoElements: tt().computedStyleSupportsPseudoElements, }) + `": `; return "" + p + h + f; } return "" + p + f; }).join(` `); return ( i + `: ` + c + ` ` + l ); }).join(` `); } s(t0, "prettyRoles"); var oW = s(function (e, t) { let { hidden: r = !1 } = t === void 0 ? {} : t; return console.log(t0(e, { hidden: r })); }, "logRoles"); function dI(e) { return e.tagName === "OPTION" ? e.selected : Zo(e, "aria-selected"); } s(dI, "computeAriaSelected"); function pI(e) { return e.getAttribute("aria-busy") === "true"; } s(pI, "computeAriaBusy"); function fI(e) { if (!("indeterminate" in e && e.indeterminate)) return "checked" in e ? e.checked : Zo(e, "aria-checked"); } s(fI, "computeAriaChecked"); function hI(e) { return Zo(e, "aria-pressed"); } s(hI, "computeAriaPressed"); function mI(e) { var t, r; return (t = (r = Zo(e, "aria-current")) != null ? r : e.getAttribute("aria-current")) != null ? t : !1; } s(mI, "computeAriaCurrent"); function yI(e) { return Zo(e, "aria-expanded"); } s(yI, "computeAriaExpanded"); function Zo(e, t) { let r = e.getAttribute(t); if (r === "true") return !0; if (r === "false") return !1; } s(Zo, "checkBooleanAttribute"); function gI(e) { let t = { H1: 1, H2: 2, H3: 3, H4: 4, H5: 5, H6: 6 }; return ( (e.getAttribute("aria-level") && Number(e.getAttribute("aria-level"))) || t[e.tagName] ); } s(gI, "computeHeadingLevel"); function bI(e) { let t = e.getAttribute("aria-valuenow"); return t === null ? void 0 : +t; } s(bI, "computeAriaValueNow"); function vI(e) { let t = e.getAttribute("aria-valuemax"); return t === null ? void 0 : +t; } s(vI, "computeAriaValueMax"); function EI(e) { let t = e.getAttribute("aria-valuemin"); return t === null ? void 0 : +t; } s(EI, "computeAriaValueMin"); function _I(e) { let t = e.getAttribute("aria-valuetext"); return t === null ? void 0 : t; } s(_I, "computeAriaValueText"); var H_ = vd(); function CI(e) { return e.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); } s(CI, "escapeRegExp"); function Im(e) { return new RegExp(CI(e.toLowerCase()), "i"); } s(Im, "getRegExpMatcher"); function vn(e, t, r, n) { let { variant: a, name: o } = n, i = "", u = {}, l = [["Role", "TestId"].includes(e) ? r : Im(r)]; (o && (u.name = Im(o)), e === "Role" && Is(t) && ((u.hidden = !0), (i = `Element is inaccessible. This means that the element and all its children are invisible to screen readers. If you are using the aria-hidden prop, make sure this is the right choice for your case. `)), Object.keys(u).length > 0 && l.push(u)); let c = a + "By" + e; return { queryName: e, queryMethod: c, queryArgs: l, variant: a, warning: i, toString() { i && console.warn(i); let [d, p] = l; return ( (d = typeof d == "string" ? "'" + d + "'" : d), (p = p ? ", { " + Object.entries(p) .map((f) => { let [h, m] = f; return h + ": " + m; }) .join(", ") + " }" : ""), c + "(" + d + p + ")" ); }, }; } s(vn, "makeSuggestion"); function En(e, t, r) { return r && (!t || t.toLowerCase() === e.toLowerCase()); } s(En, "canSuggest"); function as(e, t, r) { var n, a; if ((t === void 0 && (t = "get"), e.matches(tt().defaultIgnore))) return; let o = (n = e.getAttribute("role")) != null ? n : (a = Ed(e)) == null ? void 0 : a[0]; if (o !== "generic" && En("Role", r, o)) return vn("Role", e, o, { variant: t, name: gd(e, { computedStyleSupportsPseudoElements: tt().computedStyleSupportsPseudoElements, }), }); let i = Kv(document, e) .map((f) => f.content) .join(" "); if (En("LabelText", r, i)) return vn("LabelText", e, i, { variant: t }); let u = e.getAttribute("placeholder"); if (En("PlaceholderText", r, u)) return vn("PlaceholderText", e, u, { variant: t }); let l = H_(Qo(e)); if (En("Text", r, l)) return vn("Text", e, l, { variant: t }); if (En("DisplayValue", r, e.value)) return vn("DisplayValue", e, H_(e.value), { variant: t }); let c = e.getAttribute("alt"); if (En("AltText", r, c)) return vn("AltText", e, c, { variant: t }); let d = e.getAttribute("title"); if (En("Title", r, d)) return vn("Title", e, d, { variant: t }); let p = e.getAttribute(tt().testIdAttribute); if (En("TestId", r, p)) return vn("TestId", e, p, { variant: t }); } s(as, "getSuggestedQuery"); function gi(e, t) { e.stack = t.stack.replace(t.message, e.message); } s(gi, "copyStackTrace"); function wI(e, t) { let { container: r = bd(), timeout: n = tt().asyncUtilTimeout, showOriginalStackTrace: a = tt().showOriginalStackTrace, stackTraceError: o, interval: i = 50, onTimeout: u = s( (c) => ( Object.defineProperty(c, "message", { value: tt().getElementError(c.message, r).message, }), c ), "onTimeout", ), mutationObserverOptions: l = { subtree: !0, childList: !0, attributes: !0, characterData: !0, }, } = t; if (typeof e != "function") throw new TypeError("Received `callback` arg must be a function"); return new Promise(async (c, d) => { let p, f, h, m = !1, y = "idle", b = setTimeout(w, n), g = Ku(); if (g) { let { unstable_advanceTimersWrapper: C } = tt(); for (A(); !m; ) { if (!Ku()) { let E = new Error( "Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830", ); (a || gi(E, o), d(E)); return; } if ( (await C(async () => { jest.advanceTimersByTime(i); }), m) ) break; A(); } } else { try { dn(r); } catch (E) { d(E); return; } f = setInterval(x, i); let { MutationObserver: C } = Wv(r); ((h = new C(x)), h.observe(r, l), A()); } function v(C, E) { ((m = !0), clearTimeout(b), g || (clearInterval(f), h.disconnect()), C ? d(C) : c(E)); } s(v, "onDone"); function x() { if (Ku()) { let C = new Error( "Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830", ); return (a || gi(C, o), d(C)); } else return A(); } s(x, "checkRealTimersCallback"); function A() { if (y !== "pending") try { let C = sI(e); typeof C?.then == "function" ? ((y = "pending"), C.then( (E) => { ((y = "resolved"), v(null, E)); }, (E) => { ((y = "rejected"), (p = E)); }, )) : v(null, C); } catch (C) { p = C; } } s(A, "checkCallback"); function w() { let C; (p ? ((C = p), !a && C.name === "TestingLibraryElementError" && gi(C, o)) : ((C = new Error("Timed out in waitFor.")), a || gi(C, o)), v(u(C), null)); } s(w, "handleTimeout"); }); } s(wI, "waitFor"); function _d(e, t) { let r = new Error("STACK_TRACE_MESSAGE"); return tt().asyncWrapper(() => wI(e, { stackTraceError: r, ...t })); } s(_d, "waitForWrapper"); function Ns(e, t) { return tt().getElementError(e, t); } s(Ns, "getElementError"); function js(e, t) { return Ns( e + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", t, ); } s(js, "getMultipleElementsFoundError"); function ua(e, t, r, n) { let { exact: a = !0, collapseWhitespace: o, trim: i, normalizer: u, } = n === void 0 ? {} : n, l = a ? un : Va, c = sa({ collapseWhitespace: o, trim: i, normalizer: u }); return Array.from(t.querySelectorAll("[" + e + "]")).filter((d) => l(d.getAttribute(e), d, r, c), ); } s(ua, "queryAllByAttribute"); function r0(e, t, r, n) { let a = ua(e, t, r, n); if (a.length > 1) throw js("Found multiple elements by [" + e + "=" + r + "]", t); return a[0] || null; } s(r0, "queryByAttribute"); function Oa(e, t) { return function (r) { for ( var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++ ) a[o - 1] = arguments[o]; let i = e(r, ...a); if (i.length > 1) { let u = i.map((l) => Ns(null, l).message).join(` `); throw js( t(r, ...a) + ` Here are the matching elements: ` + u, r, ); } return i[0] || null; }; } s(Oa, "makeSingleQuery"); function n0(e, t) { return tt().getElementError( `A better query is available, try this: ` + e.toString() + ` `, t, ); } s(n0, "getSuggestionError"); function Cd(e, t) { return function (r) { for ( var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++ ) a[o - 1] = arguments[o]; let i = e(r, ...a); if (!i.length) throw tt().getElementError(t(r, ...a), r); return i; }; } s(Cd, "makeGetAllQuery"); function Da(e) { return (t, r, n, a) => _d(() => e(t, r, n), { container: t, ...a }); } s(Da, "makeFindQuery"); var Kn = s( (e, t, r) => function (n) { for ( var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), i = 1; i < a; i++ ) o[i - 1] = arguments[i]; let u = e(n, ...o), [{ suggest: l = tt().throwSuggestions } = {}] = o.slice(-1); if (u && l) { let c = as(u, r); if (c && !t.endsWith(c.queryName)) throw n0(c.toString(), n); } return u; }, "wrapSingleQueryWithSuggestion", ), mr = s( (e, t, r) => function (n) { for ( var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), i = 1; i < a; i++ ) o[i - 1] = arguments[i]; let u = e(n, ...o), [{ suggest: l = tt().throwSuggestions } = {}] = o.slice(-1); if (u.length && l) { let c = [ ...new Set( u.map((d) => { var p; return (p = as(d, r)) == null ? void 0 : p.toString(); }), ), ]; if (c.length === 1 && !t.endsWith(as(u[0], r).queryName)) throw n0(c[0], n); } return u; }, "wrapAllByQueryWithSuggestion", ); function pn(e, t, r) { let n = Kn(Oa(e, t), e.name, "query"), a = Cd(e, r), o = Oa(a, t), i = Kn(o, e.name, "get"), u = mr(a, e.name.replace("query", "get"), "getAll"), l = Da(mr(a, e.name, "findAll")), c = Da(Kn(o, e.name, "find")); return [n, u, i, l, c]; } s(pn, "buildQueries"); var iW = Object.freeze({ __proto__: null, getElementError: Ns, wrapAllByQueryWithSuggestion: mr, wrapSingleQueryWithSuggestion: Kn, getMultipleElementsFoundError: js, queryAllByAttribute: ua, queryByAttribute: r0, makeSingleQuery: Oa, makeGetAllQuery: Cd, makeFindQuery: Da, buildQueries: pn, }); function AI(e) { return Array.from(e.querySelectorAll("label,input")) .map((t) => ({ node: t, textToMatch: Ll(t) })) .filter((t) => { let { textToMatch: r } = t; return r !== null; }); } s(AI, "queryAllLabels"); var sW = s(function (e, t, r) { let { exact: n = !0, trim: a, collapseWhitespace: o, normalizer: i, } = r === void 0 ? {} : r, u = n ? un : Va, l = sa({ collapseWhitespace: o, trim: a, normalizer: i }); return AI(e) .filter((c) => { let { node: d, textToMatch: p } = c; return u(p, d, t, l); }) .map((c) => { let { node: d } = c; return d; }); }, "queryAllLabelsByText"), os = s(function (e, t, r) { let { selector: n = "*", exact: a = !0, collapseWhitespace: o, trim: i, normalizer: u, } = r === void 0 ? {} : r; dn(e); let l = a ? un : Va, c = sa({ collapseWhitespace: o, trim: i, normalizer: u }), d = Array.from(e.querySelectorAll("*")) .filter((p) => Xv(p).length || p.hasAttribute("aria-labelledby")) .reduce((p, f) => { let h = Kv(e, f, { selector: n }); h.filter((y) => !!y.formControl).forEach((y) => { l(y.content, y.formControl, t, c) && y.formControl && p.push(y.formControl); }); let m = h.filter((y) => !!y.content).map((y) => y.content); return ( l(m.join(" "), f, t, c) && p.push(f), m.length > 1 && m.forEach((y, b) => { l(y, f, t, c) && p.push(f); let g = [...m]; (g.splice(b, 1), g.length > 1 && l(g.join(" "), f, t, c) && p.push(f)); }), p ); }, []) .concat(ua("aria-label", e, t, { exact: a, normalizer: c })); return Array.from(new Set(d)).filter((p) => p.matches(n)); }, "queryAllByLabelText"), Fa = s(function (e, t) { for ( var r = arguments.length, n = new Array(r > 2 ? r - 2 : 0), a = 2; a < r; a++ ) n[a - 2] = arguments[a]; let o = os(e, t, ...n); if (!o.length) { let i = sW(e, t, ...n); if (i.length) { let u = i.map((l) => SI(e, l)).filter((l) => !!l); throw u.length ? tt().getElementError( u.map( (l) => "Found a label with the text of: " + t + ", however the element associated with this label (<" + l + " />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <" + l + " />, you can use aria-label or aria-labelledby instead.", ).join(` `), e, ) : tt().getElementError( "Found a label with the text of: " + t + `, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`, e, ); } else throw tt().getElementError( "Unable to find a label with the text of: " + t, e, ); } return o; }, "getAllByLabelText"); function SI(e, t) { let r = t.getAttribute("for"); if (!r) return null; let n = e.querySelector('[id="' + r + '"]'); return n ? n.tagName.toLowerCase() : null; } s(SI, "getTagNameOfElementAssociatedWithLabelViaFor"); var xI = s( (e, t) => "Found multiple elements with the text of: " + t, "getMultipleError$7", ), PI = Kn(Oa(os, xI), os.name, "query"), RI = Oa(Fa, xI), TI = Da(mr(Fa, Fa.name, "findAll")), OI = Da(Kn(RI, Fa.name, "find")), DI = mr(Fa, Fa.name, "getAll"), FI = Kn(RI, Fa.name, "get"), II = mr(os, os.name, "queryAll"), Nm = s(function () { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; return (dn(t[0]), ua("placeholder", ...t)); }, "queryAllByPlaceholderText"), uW = s( (e, t) => "Found multiple elements with the placeholder text of: " + t, "getMultipleError$6", ), lW = s( (e, t) => "Unable to find an element with the placeholder text of: " + t, "getMissingError$6", ), NI = mr(Nm, Nm.name, "queryAll"), [jI, kI, qI, MI, BI] = pn(Nm, uW, lW), jm = s(function (e, t, r) { let { selector: n = "*", exact: a = !0, collapseWhitespace: o, trim: i, ignore: u = tt().defaultIgnore, normalizer: l, } = r === void 0 ? {} : r; dn(e); let c = a ? un : Va, d = sa({ collapseWhitespace: o, trim: i, normalizer: l }), p = []; return ( typeof e.matches == "function" && e.matches(n) && (p = [e]), [...p, ...Array.from(e.querySelectorAll(n))] .filter((f) => !u || !f.matches(u)) .filter((f) => c(Qo(f), f, t, d)) ); }, "queryAllByText"), cW = s( (e, t) => "Found multiple elements with the text: " + t, "getMultipleError$5", ), dW = s(function (e, t, r) { r === void 0 && (r = {}); let { collapseWhitespace: n, trim: a, normalizer: o, selector: i } = r, u = sa({ collapseWhitespace: n, trim: a, normalizer: o })(t.toString()), l = u !== t.toString(), c = (i ?? "*") !== "*"; return ( "Unable to find an element with the text: " + (l ? u + " (normalized from '" + t + "')" : t) + (c ? ", which matches selector '" + i + "'" : "") + ". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible." ); }, "getMissingError$5"), LI = mr(jm, jm.name, "queryAll"), [$I, UI, HI, VI, zI] = pn(jm, cW, dW), km = s(function (e, t, r) { let { exact: n = !0, collapseWhitespace: a, trim: o, normalizer: i, } = r === void 0 ? {} : r; dn(e); let u = n ? un : Va, l = sa({ collapseWhitespace: a, trim: o, normalizer: i }); return Array.from(e.querySelectorAll("input,textarea,select")).filter( (c) => c.tagName === "SELECT" ? Array.from(c.options) .filter((d) => d.selected) .some((d) => u(Qo(d), d, t, l)) : u(c.value, c, t, l), ); }, "queryAllByDisplayValue"), pW = s( (e, t) => "Found multiple elements with the display value: " + t + ".", "getMultipleError$4", ), fW = s( (e, t) => "Unable to find an element with the display value: " + t + ".", "getMissingError$4", ), GI = mr(km, km.name, "queryAll"), [WI, JI, XI, KI, YI] = pn(km, pW, fW), hW = /^(img|input|area|.+-.+)$/i, qm = s(function (e, t, r) { return ( r === void 0 && (r = {}), dn(e), ua("alt", e, t, r).filter((n) => hW.test(n.tagName)) ); }, "queryAllByAltText"), mW = s( (e, t) => "Found multiple elements with the alt text: " + t, "getMultipleError$3", ), yW = s( (e, t) => "Unable to find an element with the alt text: " + t, "getMissingError$3", ), QI = mr(qm, qm.name, "queryAll"), [ZI, eN, tN, rN, nN] = pn(qm, mW, yW), gW = s((e) => { var t; return ( e.tagName.toLowerCase() === "title" && ((t = e.parentElement) == null ? void 0 : t.tagName.toLowerCase()) === "svg" ); }, "isSvgTitle"), Mm = s(function (e, t, r) { let { exact: n = !0, collapseWhitespace: a, trim: o, normalizer: i, } = r === void 0 ? {} : r; dn(e); let u = n ? un : Va, l = sa({ collapseWhitespace: a, trim: o, normalizer: i }); return Array.from(e.querySelectorAll("[title], svg > title")).filter( (c) => u(c.getAttribute("title"), c, t, l) || (gW(c) && u(Qo(c), c, t, l)), ); }, "queryAllByTitle"), bW = s( (e, t) => "Found multiple elements with the title: " + t + ".", "getMultipleError$2", ), vW = s( (e, t) => "Unable to find an element with the title: " + t + ".", "getMissingError$2", ), aN = mr(Mm, Mm.name, "queryAll"), [oN, iN, sN, uN, lN] = pn(Mm, bW, vW), Bm = s(function (e, t, r) { let { hidden: n = tt().defaultHidden, name: a, description: o, queryFallbacks: i = !1, selected: u, busy: l, checked: c, pressed: d, current: p, level: f, expanded: h, value: { now: m, min: y, max: b, text: g } = {}, } = r === void 0 ? {} : r; if ((dn(e), u !== void 0)) { var v; if ( ((v = Dr.roles.get(t)) == null ? void 0 : v.props["aria-selected"]) === void 0 ) throw new Error( '"aria-selected" is not supported on role "' + t + '".', ); } if (l !== void 0) { var x; if ( ((x = Dr.roles.get(t)) == null ? void 0 : x.props["aria-busy"]) === void 0 ) throw new Error('"aria-busy" is not supported on role "' + t + '".'); } if (c !== void 0) { var A; if ( ((A = Dr.roles.get(t)) == null ? void 0 : A.props["aria-checked"]) === void 0 ) throw new Error('"aria-checked" is not supported on role "' + t + '".'); } if (d !== void 0) { var w; if ( ((w = Dr.roles.get(t)) == null ? void 0 : w.props["aria-pressed"]) === void 0 ) throw new Error('"aria-pressed" is not supported on role "' + t + '".'); } if (p !== void 0) { var C; if ( ((C = Dr.roles.get(t)) == null ? void 0 : C.props["aria-current"]) === void 0 ) throw new Error('"aria-current" is not supported on role "' + t + '".'); } if (f !== void 0 && t !== "heading") throw new Error('Role "' + t + '" cannot have "level" property.'); if (m !== void 0) { var E; if ( ((E = Dr.roles.get(t)) == null ? void 0 : E.props["aria-valuenow"]) === void 0 ) throw new Error( '"aria-valuenow" is not supported on role "' + t + '".', ); } if (b !== void 0) { var _; if ( ((_ = Dr.roles.get(t)) == null ? void 0 : _.props["aria-valuemax"]) === void 0 ) throw new Error( '"aria-valuemax" is not supported on role "' + t + '".', ); } if (y !== void 0) { var P; if ( ((P = Dr.roles.get(t)) == null ? void 0 : P.props["aria-valuemin"]) === void 0 ) throw new Error( '"aria-valuemin" is not supported on role "' + t + '".', ); } if (g !== void 0) { var D; if ( ((D = Dr.roles.get(t)) == null ? void 0 : D.props["aria-valuetext"]) === void 0 ) throw new Error( '"aria-valuetext" is not supported on role "' + t + '".', ); } if (h !== void 0) { var F; if ( ((F = Dr.roles.get(t)) == null ? void 0 : F.props["aria-expanded"]) === void 0 ) throw new Error( '"aria-expanded" is not supported on role "' + t + '".', ); } let L = new WeakMap(); function q(T) { return (L.has(T) || L.set(T, Zv(T)), L.get(T)); } return ( s(q, "cachedIsSubtreeInaccessible"), Array.from(e.querySelectorAll(cN(t))) .filter((T) => { if (T.hasAttribute("role")) { let k = T.getAttribute("role"); if (i) return k .split(" ") .filter(Boolean) .some((W) => W === t); let [I] = k.split(" "); return I === t; } return Ed(T).some((k) => k === t); }) .filter((T) => { if (u !== void 0) return u === dI(T); if (l !== void 0) return l === pI(T); if (c !== void 0) return c === fI(T); if (d !== void 0) return d === hI(T); if (p !== void 0) return p === mI(T); if (h !== void 0) return h === yI(T); if (f !== void 0) return f === gI(T); if (m !== void 0 || b !== void 0 || y !== void 0 || g !== void 0) { let I = !0; if ( (m !== void 0 && I && (I = m === bI(T)), b !== void 0 && I && (I = b === vI(T)), y !== void 0 && I && (I = y === EI(T)), g !== void 0) ) { var k; I && (I = un((k = _I(T)) != null ? k : null, T, g, (W) => W)); } return I; } return !0; }) .filter((T) => a === void 0 ? !0 : un( gd(T, { computedStyleSupportsPseudoElements: tt().computedStyleSupportsPseudoElements, }), T, a, (k) => k, ), ) .filter((T) => o === void 0 ? !0 : un( Hv(T, { computedStyleSupportsPseudoElements: tt().computedStyleSupportsPseudoElements, }), T, o, (k) => k, ), ) .filter((T) => n === !1 ? Is(T, { isSubtreeInaccessible: q }) === !1 : !0, ) ); }, "queryAllByRole"); function cN(e) { var t; let r = '*[role~="' + e + '"]', n = (t = Dr.roleElements.get(e)) != null ? t : new Set(), a = new Set( Array.from(n).map((o) => { let { name: i } = o; return i; }), ); return [r].concat(Array.from(a)).join(","); } s(cN, "makeRoleSelector"); var dN = s((e) => { let t = ""; return ( e === void 0 ? (t = "") : typeof e == "string" ? (t = ' and name "' + e + '"') : (t = " and name `" + e + "`"), t ); }, "getNameHint"), EW = s(function (e, t, r) { let { name: n } = r === void 0 ? {} : r; return 'Found multiple elements with the role "' + t + '"' + dN(n); }, "getMultipleError$1"), _W = s(function (e, t, r) { let { hidden: n = tt().defaultHidden, name: a, description: o, } = r === void 0 ? {} : r; if (tt()._disableExpensiveErrorDiagnostics) return 'Unable to find role="' + t + '"' + dN(a); let i = ""; Array.from(e.children).forEach((d) => { i += t0(d, { hidden: n, includeDescription: o !== void 0 }); }); let u; i.length === 0 ? n === !1 ? (u = "There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole") : (u = "There are no available roles.") : (u = ( ` Here are the ` + (n === !1 ? "accessible" : "available") + ` roles: ` + i .replace( /\n/g, ` `, ) .replace( /\n\s\s\n/g, ` `, ) + ` ` ).trim()); let l = ""; a === void 0 ? (l = "") : typeof a == "string" ? (l = ' and name "' + a + '"') : (l = " and name `" + a + "`"); let c = ""; return ( o === void 0 ? (c = "") : typeof o == "string" ? (c = ' and description "' + o + '"') : (c = " and description `" + o + "`"), ( ` Unable to find an ` + (n === !1 ? "accessible " : "") + 'element with the role "' + t + '"' + l + c + ` ` + u ).trim() ); }, "getMissingError$1"), pN = mr(Bm, Bm.name, "queryAll"), [fN, hN, mN, yN, gN] = pn(Bm, EW, _W), a0 = s(() => tt().testIdAttribute, "getTestIdAttribute"), Lm = s(function () { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; return (dn(t[0]), ua(a0(), ...t)); }, "queryAllByTestId"), CW = s( (e, t) => "Found multiple elements by: [" + a0() + '="' + t + '"]', "getMultipleError", ), wW = s( (e, t) => "Unable to find an element by: [" + a0() + '="' + t + '"]', "getMissingError", ), bN = mr(Lm, Lm.name, "queryAll"), [vN, EN, _N, CN, wN] = pn(Lm, CW, wW), $l = Object.freeze({ __proto__: null, queryAllByLabelText: II, queryByLabelText: PI, getAllByLabelText: DI, getByLabelText: FI, findAllByLabelText: TI, findByLabelText: OI, queryByPlaceholderText: jI, queryAllByPlaceholderText: NI, getByPlaceholderText: qI, getAllByPlaceholderText: kI, findAllByPlaceholderText: MI, findByPlaceholderText: BI, queryByText: $I, queryAllByText: LI, getByText: HI, getAllByText: UI, findAllByText: VI, findByText: zI, queryByDisplayValue: WI, queryAllByDisplayValue: GI, getByDisplayValue: XI, getAllByDisplayValue: JI, findAllByDisplayValue: KI, findByDisplayValue: YI, queryByAltText: ZI, queryAllByAltText: QI, getByAltText: tN, getAllByAltText: eN, findAllByAltText: rN, findByAltText: nN, queryByTitle: oN, queryAllByTitle: aN, getByTitle: sN, getAllByTitle: iN, findAllByTitle: uN, findByTitle: lN, queryByRole: fN, queryAllByRole: pN, getAllByRole: hN, getByRole: mN, findAllByRole: yN, findByRole: gN, queryByTestId: vN, queryAllByTestId: bN, getByTestId: _N, getAllByTestId: EN, findAllByTestId: CN, findByTestId: wN, }); function Ul(e, t, r) { return ( t === void 0 && (t = $l), r === void 0 && (r = {}), Object.keys(t).reduce((n, a) => { let o = t[a]; return ((n[a] = o.bind(null, e)), n); }, r) ); } s(Ul, "getQueriesForElement"); var AN = s((e) => !e || (Array.isArray(e) && !e.length), "isRemoved"); function $m(e) { if (AN(e)) throw new Error( "The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.", ); } s($m, "initialCheck"); async function SN(e, t) { let r = new Error("Timed out in waitForElementToBeRemoved."); if (typeof e != "function") { $m(e); let n = (Array.isArray(e) ? e : [e]).map((a) => { let o = a.parentElement; if (o === null) return () => null; for (; o.parentElement; ) o = o.parentElement; return () => (o.contains(a) ? a : null); }); e = s(() => n.map((a) => a()).filter(Boolean), "callback"); } return ( $m(e()), _d(() => { let n; try { n = e(); } catch (a) { if (a.name === "TestingLibraryElementError") return; throw a; } if (!AN(n)) throw r; }, t) ); } s(SN, "waitForElementToBeRemoved"); var V_ = { copy: { EventType: "ClipboardEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, cut: { EventType: "ClipboardEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, paste: { EventType: "ClipboardEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, compositionEnd: { EventType: "CompositionEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, compositionStart: { EventType: "CompositionEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, compositionUpdate: { EventType: "CompositionEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, keyDown: { EventType: "KeyboardEvent", defaultInit: { bubbles: !0, cancelable: !0, charCode: 0, composed: !0 }, }, keyPress: { EventType: "KeyboardEvent", defaultInit: { bubbles: !0, cancelable: !0, charCode: 0, composed: !0 }, }, keyUp: { EventType: "KeyboardEvent", defaultInit: { bubbles: !0, cancelable: !0, charCode: 0, composed: !0 }, }, focus: { EventType: "FocusEvent", defaultInit: { bubbles: !1, cancelable: !1, composed: !0 }, }, blur: { EventType: "FocusEvent", defaultInit: { bubbles: !1, cancelable: !1, composed: !0 }, }, focusIn: { EventType: "FocusEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, focusOut: { EventType: "FocusEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, change: { EventType: "Event", defaultInit: { bubbles: !0, cancelable: !1 }, }, input: { EventType: "InputEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, invalid: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !0 }, }, submit: { EventType: "Event", defaultInit: { bubbles: !0, cancelable: !0 }, }, reset: { EventType: "Event", defaultInit: { bubbles: !0, cancelable: !0 } }, click: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, button: 0, composed: !0 }, }, contextMenu: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, dblClick: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, drag: { EventType: "DragEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, dragEnd: { EventType: "DragEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, dragEnter: { EventType: "DragEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, dragExit: { EventType: "DragEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, dragLeave: { EventType: "DragEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, dragOver: { EventType: "DragEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, dragStart: { EventType: "DragEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, drop: { EventType: "DragEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, mouseDown: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, mouseEnter: { EventType: "MouseEvent", defaultInit: { bubbles: !1, cancelable: !1, composed: !0 }, }, mouseLeave: { EventType: "MouseEvent", defaultInit: { bubbles: !1, cancelable: !1, composed: !0 }, }, mouseMove: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, mouseOut: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, mouseOver: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, mouseUp: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, select: { EventType: "Event", defaultInit: { bubbles: !0, cancelable: !1 }, }, touchCancel: { EventType: "TouchEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, touchEnd: { EventType: "TouchEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, touchMove: { EventType: "TouchEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, touchStart: { EventType: "TouchEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, resize: { EventType: "UIEvent", defaultInit: { bubbles: !1, cancelable: !1 }, }, scroll: { EventType: "UIEvent", defaultInit: { bubbles: !1, cancelable: !1 }, }, wheel: { EventType: "WheelEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, abort: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 } }, canPlay: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, canPlayThrough: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, durationChange: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, emptied: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, encrypted: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, ended: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 } }, loadedData: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, loadedMetadata: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, loadStart: { EventType: "ProgressEvent", defaultInit: { bubbles: !1, cancelable: !1 }, }, pause: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 } }, play: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 } }, playing: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, progress: { EventType: "ProgressEvent", defaultInit: { bubbles: !1, cancelable: !1 }, }, rateChange: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, seeked: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, seeking: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, stalled: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, suspend: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, timeUpdate: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, volumeChange: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, waiting: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, load: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 } }, error: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 } }, animationStart: { EventType: "AnimationEvent", defaultInit: { bubbles: !0, cancelable: !1 }, }, animationEnd: { EventType: "AnimationEvent", defaultInit: { bubbles: !0, cancelable: !1 }, }, animationIteration: { EventType: "AnimationEvent", defaultInit: { bubbles: !0, cancelable: !1 }, }, transitionCancel: { EventType: "TransitionEvent", defaultInit: { bubbles: !0, cancelable: !1 }, }, transitionEnd: { EventType: "TransitionEvent", defaultInit: { bubbles: !0, cancelable: !0 }, }, transitionRun: { EventType: "TransitionEvent", defaultInit: { bubbles: !0, cancelable: !1 }, }, transitionStart: { EventType: "TransitionEvent", defaultInit: { bubbles: !0, cancelable: !1 }, }, pointerOver: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointerEnter: { EventType: "PointerEvent", defaultInit: { bubbles: !1, cancelable: !1 }, }, pointerDown: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointerMove: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointerUp: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointerCancel: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, pointerOut: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointerLeave: { EventType: "PointerEvent", defaultInit: { bubbles: !1, cancelable: !1 }, }, gotPointerCapture: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, lostPointerCapture: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, popState: { EventType: "PopStateEvent", defaultInit: { bubbles: !0, cancelable: !1 }, }, offline: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, online: { EventType: "Event", defaultInit: { bubbles: !1, cancelable: !1 }, }, pageHide: { EventType: "PageTransitionEvent", defaultInit: { bubbles: !0, cancelable: !0 }, }, pageShow: { EventType: "PageTransitionEvent", defaultInit: { bubbles: !0, cancelable: !0 }, }, }, z_ = { doubleClick: "dblClick" }; function No(e, t) { return tt().eventWrapper(() => { if (!t) throw new Error( "Unable to fire an event - please provide an event object.", ); if (!e) throw new Error( 'Unable to fire a "' + t.type + '" event - please provide a DOM element.', ); return e.dispatchEvent(t); }); } s(No, "fireEvent"); function Ii(e, t, r, n) { let { EventType: a = "Event", defaultInit: o = {} } = n === void 0 ? {} : n; if (!t) throw new Error( 'Unable to fire a "' + e + '" event - please provide a DOM element.', ); let i = { ...o, ...r }, { target: { value: u, files: l, ...c } = {} } = i; (u !== void 0 && xN(t, u), l !== void 0 && Object.defineProperty(t, "files", { configurable: !0, enumerable: !0, writable: !0, value: l, }), Object.assign(t, c)); let d = Wv(t), p = d[a] || d.Event, f; if (typeof p == "function") f = new p(e, i); else { f = d.document.createEvent(a); let { bubbles: h, cancelable: m, detail: y, ...b } = i; (f.initEvent(e, h, m, y), Object.keys(b).forEach((g) => { f[g] = b[g]; })); } return ( ["dataTransfer", "clipboardData"].forEach((h) => { let m = i[h]; typeof m == "object" && (typeof d.DataTransfer == "function" ? Object.defineProperty(f, h, { value: Object.getOwnPropertyNames(m).reduce( (y, b) => (Object.defineProperty(y, b, { value: m[b] }), y), new d.DataTransfer(), ), }) : Object.defineProperty(f, h, { value: m })); }), f ); } s(Ii, "createEvent"); Object.keys(V_).forEach((e) => { let { EventType: t, defaultInit: r } = V_[e], n = e.toLowerCase(); ((Ii[e] = (a, o) => Ii(n, a, o, { EventType: t, defaultInit: r })), (No[e] = (a, o) => No(a, Ii[e](a, o)))); }); function xN(e, t) { let { set: r } = Object.getOwnPropertyDescriptor(e, "value") || {}, n = Object.getPrototypeOf(e), { set: a } = Object.getOwnPropertyDescriptor(n, "value") || {}; if (a && r !== a) a.call(e, t); else if (r) r.call(e, t); else throw new Error("The given element does not have a value setter"); } s(xN, "setNativeValue"); Object.keys(z_).forEach((e) => { let t = z_[e]; No[e] = function () { return No[t](...arguments); }; }); function PN(e) { return e.replace( /[ \t]*[\n][ \t]*/g, ` `, ); } s(PN, "unindent"); function RN(e) { return HG.default.compressToEncodedURIComponent(PN(e)); } s(RN, "encode"); function TN(e) { return "https://testing-playground.com/#markup=" + RN(e); } s(TN, "getPlaygroundUrl"); var AW = s( (e, t, r) => Array.isArray(e) ? e.forEach((n) => Fm(n, t, r)) : Fm(e, t, r), "debug", ), SW = s(function (e) { if ((e === void 0 && (e = bd().body), !e || !("innerHTML" in e))) { console.log("The element you're providing isn't a valid DOM element."); return; } if (!e.innerHTML) { console.log("The provided element doesn't have any children."); return; } let t = TN(e.innerHTML); return ( console.log( `Open this URL in your browser ` + t, ), t ); }, "logTestingPlaygroundURL"), G_ = { debug: AW, logTestingPlaygroundURL: SW }, xW = typeof document < "u" && document.body ? Ul(document.body, $l, G_) : Object.keys($l).reduce( (e, t) => ( (e[t] = () => { throw new TypeError( "For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error", ); }), e ), G_, ); function Je(e, t, r) { return (e.namespaceURI && e.namespaceURI !== "http://www.w3.org/1999/xhtml") || ((t = Array.isArray(t) ? t : [t]), !t.includes(e.tagName.toLowerCase())) ? !1 : r ? Object.entries(r).every(([n, a]) => e[n] === a) : !0; } s(Je, "isElementType"); function Rr(e) { var t; if (ON(e) && e.defaultView) return e.defaultView; if (!((t = e.ownerDocument) === null || t === void 0) && t.defaultView) return e.ownerDocument.defaultView; throw new Error(`Could not determine window of node. Node was ${DN(e)}`); } s(Rr, "getWindow"); function ON(e) { return e.nodeType === 9; } s(ON, "isDocument"); function DN(e) { return typeof e == "function" ? `function ${e.name}` : e === null ? "null" : String(e); } s(DN, "describe"); function o0(e, t) { return new Promise((r, n) => { let a = new t(); ((a.onerror = n), (a.onabort = n), (a.onload = () => { r(String(a.result)); }), a.readAsText(e)); }); } s(o0, "readBlobText"); function wd(e, t) { let r = { ...t, length: t.length, item: s((n) => r[n], "item"), [Symbol.iterator]: s(function* () { for (let n = 0; n < r.length; n++) yield r[n]; }, "nextFile"), }; return ( (r.constructor = e.FileList), e.FileList && Object.setPrototypeOf(r, e.FileList.prototype), Object.freeze(r), r ); } s(wd, "createFileList"); function xn(e, t, r) { return ( t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(xn, "_define_property"); var FN = class { getAsFile() { return this.file; } getAsString(t) { typeof this.data == "string" && t(this.data); } webkitGetAsEntry() { throw new Error("not implemented"); } constructor(t, r) { (xn(this, "kind", void 0), xn(this, "type", void 0), xn(this, "file", null), xn(this, "data", void 0), typeof t == "string" ? ((this.kind = "string"), (this.type = String(r)), (this.data = t)) : ((this.kind = "file"), (this.type = t.type), (this.file = t))); } }; s(FN, "DataTransferItemStub"); var IN = FN, NN = class extends Array { add(...t) { let r = new IN(t[0], t[1]); return (this.push(r), r); } clear() { this.splice(0, this.length); } remove(t) { this.splice(t, 1); } }; s(NN, "DataTransferItemListStub"); var PW = NN; function bi(e, t) { let [r, n] = e.split("/"), a = !n || n === "*"; return (o) => t ? o.type === (a ? r : e) : a ? o.type.startsWith(`${r}/`) : o.type === r; } s(bi, "getTypeMatcher"); function jN(e) { var t; return new ((t = class { getData(r) { var n; let a = (n = this.items.find(bi(r, !0))) !== null && n !== void 0 ? n : this.items.find(bi(r, !1)), o = ""; return ( a?.getAsString((i) => { o = i; }), o ); } setData(r, n) { let a = this.items.findIndex(bi(r, !0)), o = new IN(n, r); a >= 0 ? this.items.splice(a, 1, o) : this.items.push(o); } clearData(r) { if (r) { let n = this.items.findIndex(bi(r, !0)); n >= 0 && this.items.remove(n); } else this.items.clear(); } get types() { let r = []; return ( this.files.length && r.push("Files"), this.items.forEach((n) => r.push(n.type)), Object.freeze(r), r ); } setDragImage() {} constructor() { (xn(this, "dropEffect", "none"), xn(this, "effectAllowed", "uninitialized"), xn(this, "items", new PW()), xn(this, "files", wd(e, []))); } }), s(t, "DataTransferStub"), t)(); } s(jN, "createDataTransferStub"); function Ad(e, t = []) { let r = typeof e.DataTransfer > "u" ? jN(e) : new e.DataTransfer(); return ( Object.defineProperty(r, "files", { get: s(() => wd(e, t), "get") }), r ); } s(Ad, "createDataTransfer"); async function kN(e, t) { return t.kind === "file" ? t.getAsFile() : new e.Blob([await new Promise((r) => t.getAsString(r))], { type: t.type, }); } s(kN, "getBlobFromDataTransferItem"); function i0(e, t, r) { return ( t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(i0, "_define_property"); function s0(e, ...t) { var r; let n = Object.fromEntries( t.map((a) => [ typeof a == "string" ? "text/plain" : a.type, Promise.resolve(a), ]), ); return typeof e.ClipboardItem < "u" ? new e.ClipboardItem(n) : new ((r = class { get types() { return Array.from(Object.keys(this.data)); } async getType(a) { let o = await this.data[a]; if (!o) throw new Error( `${a} is not one of the available MIME types on this item.`, ); return o instanceof e.Blob ? o : new e.Blob([o], { type: a }); } constructor(a) { (i0(this, "data", void 0), (this.data = a)); } }), s(r, "ClipboardItem"), r)(n); } s(s0, "createClipboardItem"); var jo = Symbol("Manage ClipboardSub"); function Um(e, t) { var r; return Object.assign( new ((r = class extends e.EventTarget { async read() { return Array.from(this.items); } async readText() { let n = ""; for (let a of this.items) { let o = a.types.includes("text/plain") ? "text/plain" : a.types.find((i) => i.startsWith("text/")); o && (n += await a.getType(o).then((i) => o0(i, e.FileReader))); } return n; } async write(n) { this.items = n; } async writeText(n) { this.items = [s0(e, n)]; } constructor(...n) { (super(...n), i0(this, "items", [])); } }), s(r, "Clipboard"), r)(), { [jo]: t }, ); } s(Um, "createClipboardStub"); function Sd(e) { return !!e?.[jo]; } s(Sd, "isClipboardStub"); function qN(e) { if (Sd(e.navigator.clipboard)) return e.navigator.clipboard[jo]; let t = Object.getOwnPropertyDescriptor(e.navigator, "clipboard"), r, n = { resetClipboardStub: s(() => { r = Um(e, n); }, "resetClipboardStub"), detachClipboardStub: s(() => { t ? Object.defineProperty(e.navigator, "clipboard", t) : Object.defineProperty(e.navigator, "clipboard", { value: void 0, configurable: !0, }); }, "detachClipboardStub"), }; return ( (r = Um(e, n)), Object.defineProperty(e.navigator, "clipboard", { get: s(() => r, "get"), configurable: !0, }), r[jo] ); } s(qN, "attachClipboardStubToView"); function MN(e) { Sd(e.navigator.clipboard) && e.navigator.clipboard[jo].resetClipboardStub(); } s(MN, "resetClipboardStubOnView"); function BN(e) { Sd(e.navigator.clipboard) && e.navigator.clipboard[jo].detachClipboardStub(); } s(BN, "detachClipboardStubFromView"); async function LN(e) { let t = e.defaultView, r = t?.navigator.clipboard, n = r && (await r.read()); if (!n) throw new Error("The Clipboard API is unavailable."); let a = Ad(t); for (let o of n) for (let i of o.types) a.setData(i, await o.getType(i).then((u) => o0(u, t.FileReader))); return a; } s(LN, "readDataTransferFromClipboard"); async function u0(e, t) { let r = Rr(e), n = r.navigator.clipboard, a = []; for (let o = 0; o < t.items.length; o++) { let i = t.items[o], u = await kN(r, i); a.push(s0(r, u)); } if ( !( n && (await n.write(a).then( () => !0, () => !1, )) ) ) throw new Error("The Clipboard API is unavailable."); } s(u0, "writeDataTransferToClipboard"); var Hl = globalThis; typeof Hl.afterEach == "function" && Hl.afterEach(() => { typeof globalThis.window < "u" && MN(globalThis.window); }); typeof Hl.afterAll == "function" && Hl.afterAll(() => { typeof globalThis.window < "u" && BN(globalThis.window); }); var $N = [ "input:not([type=hidden]):not([disabled])", "button:not([disabled])", "select:not([disabled])", "textarea:not([disabled])", '[contenteditable=""]', '[contenteditable="true"]', "a[href]", "[tabindex]:not([disabled])", ].join(", "); function xd(e) { return e.matches($N); } s(xd, "isFocusable"); function UN(e) { return new e.constructor(e.type, e); } s(UN, "cloneEvent"); function ln(e) { for (let r = e; r; r = r.parentElement) if ( Je(r, ["button", "input", "select", "textarea", "optgroup", "option"]) ) { if (r.hasAttribute("disabled")) return !0; } else if (Je(r, "fieldset")) { var t; if ( r.hasAttribute("disabled") && !( !( (t = r.querySelector(":scope > legend")) === null || t === void 0 ) && t.contains(e) ) ) return !0; } else if ( r.tagName.includes("-") && r.constructor.formAssociated && r.hasAttribute("disabled") ) return !0; return !1; } s(ln, "isDisabled"); function ei(e) { let t = e.activeElement; return t?.shadowRoot ? ei(t.shadowRoot) : ln(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : t; } s(ei, "getActiveElement"); function Yu(e) { var t; return (t = ei(e)) !== null && t !== void 0 ? t : e.body; } s(Yu, "getActiveElementOrBody"); function HN(e, t) { let r = e; do { if (t(r)) return r; r = r.parentElement; } while (r && r !== e.ownerDocument.body); } s(HN, "findClosest"); function ra(e) { return ( e.hasAttribute("contenteditable") && (e.getAttribute("contenteditable") == "true" || e.getAttribute("contenteditable") == "") ); } s(ra, "isContentEditable"); function ko(e) { let t = VN(e); return ( t && (t.closest('[contenteditable=""]') || t.closest('[contenteditable="true"]')) ); } s(ko, "getContentEditable"); function VN(e) { return e.nodeType === 1 ? e : e.parentElement; } s(VN, "getElement"); var zN = (function (e) { return ( (e.button = "button"), (e.color = "color"), (e.file = "file"), (e.image = "image"), (e.reset = "reset"), (e.submit = "submit"), (e.checkbox = "checkbox"), (e.radio = "radio"), e ); })(zN || {}); function l0(e) { return Je(e, "button") || (Je(e, "input") && e.type in zN); } s(l0, "isClickableInput"); function Ia(e) { return (c0(e) && !e.readOnly) || ra(e); } s(Ia, "isEditable"); var GN = (function (e) { return ( (e.text = "text"), (e.date = "date"), (e["datetime-local"] = "datetime-local"), (e.email = "email"), (e.month = "month"), (e.number = "number"), (e.password = "password"), (e.search = "search"), (e.tel = "tel"), (e.time = "time"), (e.url = "url"), (e.week = "week"), e ); })(GN || {}); function c0(e) { return Je(e, "textarea") || (Je(e, "input") && e.type in GN); } s(c0, "isEditableInputOrTextArea"); function Vr(e) { return d0(e) && c0(e); } s(Vr, "hasOwnSelection"); function WN(e) { return d0(e) && l0(e); } s(WN, "hasNoSelection"); function d0(e) { return e.nodeType === 1; } s(d0, "isElement"); function JN(e) { let t = e.ownerDocument.getSelection(); if (t?.focusNode && Vr(e)) { let n = ko(t.focusNode); if (n) { if (!t.isCollapsed) { var r; let a = ((r = n.firstChild) === null || r === void 0 ? void 0 : r.nodeType) === 3 ? n.firstChild : n; t.setBaseAndExtent(a, 0, a, 0); } } else t.setBaseAndExtent(e, 0, e, 0); } } s(JN, "updateSelectionOnFocus"); function Na(e, t) { return tt().eventWrapper(e); } s(Na, "wrapEvent"); function Fn(e) { let t = HN(e, xd), r = ei(e.ownerDocument); (t ?? e.ownerDocument.body) !== r && (Na(t ? () => t.focus() : () => r?.blur()), JN(t ?? e.ownerDocument.body)); } s(Fn, "focusElement"); function XN(e) { !xd(e) || ei(e.ownerDocument) !== e || Na(() => e.blur()); } s(XN, "blurElement"); var na = {}; na.click = (e, t, r) => { let n = t.closest("button,input,label,select,textarea"), a = n && Je(n, "label") && n.control; if (a && a !== t) return () => { xd(a) && (Fn(a), r.dispatchEvent(a, UN(e))); }; if (Je(t, "input", { type: "file" })) return () => { (XN(t), t.dispatchEvent(new (Rr(t).Event)("fileDialog")), Fn(t)); }; }; var qo = Symbol("Displayed value in UI"), Pn = Symbol("Displayed selection in UI"), Vl = Symbol("Initial value to compare on blur"); function KN(e) { return typeof e == "object" && qo in e; } s(KN, "isUIValue"); function YN(e) { return !!e && typeof e == "object" && Pn in e; } s(YN, "isUISelectionStart"); function QN(e, t) { (e[Vl] === void 0 && (e[Vl] = e.value), (e[qo] = t), (e.value = Object.assign(new String(t), { [qo]: !0 }))); } s(QN, "setUIValue"); function zr(e) { return e[qo] === void 0 ? e.value : String(e[qo]); } s(zr, "getUIValue"); function Pd(e) { e[qo] = void 0; } s(Pd, "setUIValueClean"); function p0(e) { e[Vl] = void 0; } s(p0, "clearInitialValue"); function ZN(e) { return e[Vl]; } s(ZN, "getInitialValue"); function ej(e, t) { e[Pn] = t; } s(ej, "setUISelectionRaw"); function za(e, { focusOffset: t, anchorOffset: r = t }, n = "replace") { let a = zr(e).length, o = s((p) => Math.max(0, Math.min(a, p)), "sanitizeOffset"), i = n === "replace" || e[Pn] === void 0 ? o(r) : e[Pn].anchorOffset, u = o(t), l = Math.min(i, u), c = Math.max(i, u); if ( ((e[Pn] = { anchorOffset: i, focusOffset: u }), e.selectionStart === l && e.selectionEnd === c) ) return; let d = Object.assign(new Number(l), { [Pn]: !0 }); try { e.setSelectionRange(d, c); } catch {} } s(za, "setUISelection"); function Mo(e) { var t, r, n; let a = (n = e[Pn]) !== null && n !== void 0 ? n : { anchorOffset: (t = e.selectionStart) !== null && t !== void 0 ? t : 0, focusOffset: (r = e.selectionEnd) !== null && r !== void 0 ? r : 0, }; return { ...a, startOffset: Math.min(a.anchorOffset, a.focusOffset), endOffset: Math.max(a.anchorOffset, a.focusOffset), }; } s(Mo, "getUISelection"); function tj(e) { return !!e[Pn]; } s(tj, "hasUISelection"); function Ni(e) { e[Pn] = void 0; } s(Ni, "setUISelectionClean"); var zl = globalThis.parseInt; function rj(e) { let t = e.replace(/\D/g, ""); if (t.length < 2) return e; let r = zl(t[0], 10), n = zl(t[1], 10); if (r >= 3 || (r === 2 && n >= 4)) { let a; return (r >= 3 ? (a = 1) : (a = 2), Hm(t, a)); } return e.length === 2 ? e : Hm(t, 2); } s(rj, "buildTimeValue"); function Hm(e, t) { let r = e.slice(0, t), n = Math.min(zl(r, 10), 23), a = e.slice(t), o = zl(a, 10), i = Math.min(o, 59); return `${n.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`; } s(Hm, "build"); function f0(e, t) { let r = e.cloneNode(); return ((r.value = t), r.value === t); } s(f0, "isValidDateOrTimeValue"); var nj = (function (e) { return ( (e.email = "email"), (e.password = "password"), (e.search = "search"), (e.telephone = "telephone"), (e.text = "text"), (e.url = "url"), e ); })(nj || {}); function aj(e) { var t; let r = (t = e.getAttribute("maxlength")) !== null && t !== void 0 ? t : ""; return /^\d+$/.test(r) && Number(r) >= 0 ? Number(r) : void 0; } s(aj, "getMaxLength"); function oj(e) { return Je(e, "textarea") || (Je(e, "input") && e.type in nj); } s(oj, "supportsMaxLength"); function h0(e, t, r, n) { if (ji(e) && t + r >= 0 && t + r <= e.nodeValue.length) return { node: e, offset: t + r }; let a = Vm(e, t, r); if (a) { if (ji(a)) return { node: a, offset: r > 0 ? Math.min(1, a.nodeValue.length) : Math.max(a.nodeValue.length - 1, 0), }; if (Je(a, "br")) { let o = Vm(a, void 0, r); return o ? ji(o) ? { node: o, offset: r > 0 ? 0 : o.nodeValue.length } : r < 0 && Je(o, "br") ? { node: a.parentNode, offset: vi(a) } : { node: o.parentNode, offset: vi(o) + (r > 0 ? 0 : 1) } : r < 0 && n === "deleteContentBackward" ? { node: a.parentNode, offset: vi(a) } : void 0; } else return { node: a.parentNode, offset: vi(a) + (r > 0 ? 1 : 0) }; } } s(h0, "getNextCursorPosition"); function Vm(e, t, r) { let n = Number(t) + (r < 0 ? -1 : 0); return ( t !== void 0 && Rd(e) && n >= 0 && n < e.children.length && (e = e.children[n]), sj(e, r === 1 ? "next" : "previous", ij) ); } s(Vm, "getNextCharacterContentNode"); function ij(e) { if (ji(e)) return !0; if (Rd(e)) { if (Je(e, ["input", "textarea"])) return e.type !== "hidden"; if (Je(e, "br")) return !0; } return !1; } s(ij, "isTreatedAsCharacterContent"); function vi(e) { let t = 0; for (; e.previousSibling; ) (t++, (e = e.previousSibling)); return t; } s(vi, "getOffset"); function Rd(e) { return e.nodeType === 1; } s(Rd, "isElement"); function ji(e) { return e.nodeType === 3; } s(ji, "isTextNode"); function sj(e, t, r) { for (;;) { var n; let a = e[`${t}Sibling`]; if (a) { if (((e = uj(a, t === "next" ? "first" : "last")), r(e))) return e; } else if ( e.parentNode && (!Rd(e.parentNode) || (!ra(e.parentNode) && e.parentNode !== ((n = e.ownerDocument) === null || n === void 0 ? void 0 : n.body))) ) e = e.parentNode; else break; } } s(sj, "walkNodes"); function uj(e, t) { for (; e.hasChildNodes(); ) e = e[`${t}Child`]; return e; } s(uj, "getDescendant"); var is = Symbol("Track programmatic changes for React workaround"); function lj(e) { return ( Object.getOwnPropertyNames(e).some((t) => t.startsWith("__react")) && Rr(e).REACT_VERSION === 17 ); } s(lj, "isReact17Element"); function cj(e) { lj(e) && (e[is] = { previousValue: String(e.value), tracked: [] }); } s(cj, "startTrackValue"); function dj(e, t) { var r, n; ((n = e[is]) === null || n === void 0 || (r = n.tracked) === null || r === void 0 || r.push(t), e[is] || (Pd(e), za(e, { focusOffset: t.length }))); } s(dj, "trackOrSetValue"); function pj(e, t) { var r; let n = e[is]; if ( ((e[is] = void 0), !(!(n == null || (r = n.tracked) === null || r === void 0) && r.length)) ) return; let a = n.tracked.length === 2 && n.tracked[0] === n.previousValue && n.tracked[1] === e.value; (a || Pd(e), tj(e) && za(e, { focusOffset: a ? t : e.value.length })); } s(pj, "commitValueAfterInput"); function m0(e) { let t = fj(e); if (t && Vr(t)) return { type: "input", selection: Mo(t) }; let r = t?.ownerDocument.getSelection(); return { type: ko(e) && r?.anchorNode && ko(r.anchorNode) ? "contenteditable" : "default", selection: r, }; } s(m0, "getTargetTypeAndSelection"); function fj(e) { return e.nodeType === 1 ? e : e.parentElement; } s(fj, "getElement"); function hj(e) { let t = m0(e); if (t.type === "input") return t.selection; if (t.type === "contenteditable") { var r; return (r = t.selection) === null || r === void 0 ? void 0 : r.getRangeAt(0); } } s(hj, "getInputRange"); function aa({ focusNode: e, focusOffset: t, anchorNode: r = e, anchorOffset: n = t, }) { var a, o; if (m0(e).type === "input") return za(e, { anchorOffset: n, focusOffset: t }); (o = r.ownerDocument) === null || o === void 0 || (a = o.getSelection()) === null || a === void 0 || a.setBaseAndExtent(r, n, e, t); } s(aa, "setSelection"); function y0(e) { return Je(e, "input") && ["date", "time"].includes(e.type); } s(y0, "isDateOrTime"); function ja(e, t, r, n = "insertText") { let a = hj(t); a && ((!y0(t) && !e.dispatchUIEvent(t, "beforeinput", { inputType: n, data: r })) || ("startContainer" in a ? mj(e, t, a, r, n) : yj(e, t, a, r, n))); } s(ja, "input"); function mj(e, t, r, n, a) { let o = !1; if (!r.collapsed) ((o = !0), r.deleteContents()); else if (["deleteContentBackward", "deleteContentForward"].includes(a)) { let i = h0( r.startContainer, r.startOffset, a === "deleteContentBackward" ? -1 : 1, a, ); if (i) { o = !0; let u = r.cloneRange(); (u.comparePoint(i.node, i.offset) < 0 ? u.setStart(i.node, i.offset) : u.setEnd(i.node, i.offset), u.deleteContents()); } } if (n) if (r.endContainer.nodeType === 3) { let i = r.endOffset; (r.endContainer.insertData(i, n), r.setStart(r.endContainer, i + n.length), r.setEnd(r.endContainer, i + n.length)); } else { let i = t.ownerDocument.createTextNode(n); (r.insertNode(i), r.setStart(i, n.length), r.setEnd(i, n.length)); } (o || n) && e.dispatchUIEvent(t, "input", { inputType: a }); } s(mj, "editContenteditable"); function yj(e, t, r, n, a) { let o = n; if (oj(t)) { let c = aj(t); if (c !== void 0 && n.length > 0) { let d = c - t.value.length; if (d > 0) o = n.substring(0, d); else return; } } let { newValue: i, newOffset: u, oldValue: l } = gj(o, t, r, a); (i === l && u === r.startOffset && u === r.endOffset) || (Je(t, "input", { type: "number" }) && !bj(i)) || (QN(t, i), aa({ focusNode: t, anchorOffset: u, focusOffset: u }), y0(t) ? f0(t, i) && (zm(e, t, u, {}), e.dispatchUIEvent(t, "change"), p0(t)) : zm(e, t, u, { data: n, inputType: a })); } s(yj, "editInputElement"); function gj(e, t, { startOffset: r, endOffset: n }, a) { let o = zr(t), i = Math.max(0, r === n && a === "deleteContentBackward" ? r - 1 : r), u = o.substring(0, i), l = Math.min(o.length, r === n && a === "deleteContentForward" ? r + 1 : n), c = o.substring(l, o.length), d = `${u}${e}${c}`, p = i + e.length; if (Je(t, "input", { type: "time" })) { let f = rj(d); f !== "" && f0(t, f) && ((d = f), (p = f.length)); } return { oldValue: o, newValue: d, newOffset: p }; } s(gj, "calculateNewValue"); function zm(e, t, r, n) { (e.dispatchUIEvent(t, "input", n), pj(t, r)); } s(zm, "commitInput"); function bj(e) { var t, r; let n = e.split("e", 2); return !( /[^\d.\-e]/.test(e) || Number((t = e.match(/-/g)) === null || t === void 0 ? void 0 : t.length) > 2 || Number((r = e.match(/\./g)) === null || r === void 0 ? void 0 : r.length) > 1 || (n[1] && !/^-?\d*$/.test(n[1])) ); } s(bj, "isValidNumberInput"); na.cut = (e, t, r) => () => { Ia(t) && ja(r, t, "", "deleteByCut"); }; function vj(e) { return e ? (ra(e) ? e.textContent : zr(e)) : null; } s(vj, "getValueOrTextContent"); function Ej(e) { let t = Rr(e); for (let r = e; r?.ownerDocument; r = r.parentElement) { let { display: n, visibility: a } = t.getComputedStyle(r); if (n === "none" || a === "hidden") return !1; } return !0; } s(Ej, "isVisible"); function _j(e, t) { let r = e.ownerDocument, n = r.querySelectorAll($N), a = Array.from(n).filter( (l) => l === e || !(Number(l.getAttribute("tabindex")) < 0 || ln(l)), ); Number(e.getAttribute("tabindex")) >= 0 && a.sort((l, c) => { let d = Number(l.getAttribute("tabindex")), p = Number(c.getAttribute("tabindex")); return d === p ? 0 : d === 0 ? 1 : p === 0 ? -1 : d - p; }); let o = {}, i = [r.body], u = Je(e, "input", { type: "radio" }) ? e.name : void 0; a.forEach((l) => { let c = l; if (Je(c, "input", { type: "radio" }) && c.name) { if (c === e) { i.push(c); return; } else if (c.name === u) return; if (c.checked) { ((i = i.filter( (d) => !Je(d, "input", { type: "radio", name: c.name }), )), i.push(c), (o[c.name] = c)); return; } if (typeof o[c.name] < "u") return; } i.push(c); }); for (let l = i.findIndex((c) => c === e); ; ) if ( ((l += t ? -1 : 1), l === i.length ? (l = 0) : l === -1 && (l = i.length - 1), i[l] === e || i[l] === r.body || Ej(i[l])) ) return i[l]; } s(_j, "getTabDestination"); function Gm(e, t) { if (Vr(e)) { let r = Mo(e); aa({ focusNode: e, focusOffset: r.startOffset === r.endOffset ? r.focusOffset + t : t < 0 ? r.startOffset : r.endOffset, }); } else { let r = e.ownerDocument.getSelection(); if (!r?.focusNode) return; if (r.isCollapsed) { let n = h0(r.focusNode, r.focusOffset, t); n && aa({ focusNode: n.node, focusOffset: n.offset }); } else r[t < 0 ? "collapseToStart" : "collapseToEnd"](); } } s(Gm, "moveSelection"); function g0(e) { if (Vr(e)) return aa({ focusNode: e, anchorOffset: 0, focusOffset: zr(e).length }); var t; let r = (t = ko(e)) !== null && t !== void 0 ? t : e.ownerDocument.body; aa({ focusNode: r, anchorOffset: 0, focusOffset: r.childNodes.length }); } s(g0, "selectAll"); function Cj(e) { if (Vr(e)) return Mo(e).startOffset === 0 && Mo(e).endOffset === zr(e).length; var t; let r = (t = ko(e)) !== null && t !== void 0 ? t : e.ownerDocument.body, n = e.ownerDocument.getSelection(); return ( n?.anchorNode === r && n.focusNode === r && n.anchorOffset === 0 && n.focusOffset === r.childNodes.length ); } s(Cj, "isAllSelected"); function co(e, t, r) { var n; if (Vr(e)) return aa({ focusNode: e, anchorOffset: t, focusOffset: r }); if ( ra(e) && ((n = e.firstChild) === null || n === void 0 ? void 0 : n.nodeType) === 3 ) return aa({ focusNode: e.firstChild, anchorOffset: t, focusOffset: r }); throw new Error( "Not implemented. The result of this interaction is unreliable.", ); } s(co, "setSelectionRange"); function Ei(e, t, r) { let n = Rr(t), a = Array.from( t.ownerDocument.querySelectorAll( t.name ? `input[type="radio"][name="${n.CSS.escape(t.name)}"]` : 'input[type="radio"][name=""], input[type="radio"]:not([name])', ), ); for (let o = a.findIndex((i) => i === t) + r; ; o += r) { if ((a[o] || (o = r > 0 ? 0 : a.length - 1), a[o] === t)) return; if (!ln(a[o])) { (Fn(a[o]), e.dispatchUIEvent(a[o], "click")); return; } } } s(Ei, "walkRadio"); na.keydown = (e, t, r) => { var n, a; return (a = (n = W_[e.key]) === null || n === void 0 ? void 0 : n.call(W_, e, t, r)) !== null && a !== void 0 ? a : RW(e, t, r); }; var W_ = { ArrowDown: s((e, t, r) => { if (Je(t, "input", { type: "radio" })) return () => Ei(r, t, 1); }, "ArrowDown"), ArrowLeft: s( (e, t, r) => Je(t, "input", { type: "radio" }) ? () => Ei(r, t, -1) : () => Gm(t, -1), "ArrowLeft", ), ArrowRight: s( (e, t, r) => Je(t, "input", { type: "radio" }) ? () => Ei(r, t, 1) : () => Gm(t, 1), "ArrowRight", ), ArrowUp: s((e, t, r) => { if (Je(t, "input", { type: "radio" })) return () => Ei(r, t, -1); }, "ArrowUp"), Backspace: s((e, t, r) => { if (Ia(t)) return () => { ja(r, t, "", "deleteContentBackward"); }; }, "Backspace"), Delete: s((e, t, r) => { if (Ia(t)) return () => { ja(r, t, "", "deleteContentForward"); }; }, "Delete"), End: s((e, t) => { if (Je(t, ["input", "textarea"]) || ra(t)) return () => { var r, n; let a = (n = (r = vj(t)) === null || r === void 0 ? void 0 : r.length) !== null && n !== void 0 ? n : 0; co(t, a, a); }; }, "End"), Home: s((e, t) => { if (Je(t, ["input", "textarea"]) || ra(t)) return () => { co(t, 0, 0); }; }, "Home"), PageDown: s((e, t) => { if (Je(t, ["input"])) return () => { let r = zr(t).length; co(t, r, r); }; }, "PageDown"), PageUp: s((e, t) => { if (Je(t, ["input"])) return () => { co(t, 0, 0); }; }, "PageUp"), Tab: s( (e, t, r) => () => { let n = _j(t, r.system.keyboard.modifiers.Shift); (Fn(n), Vr(n) && za(n, { anchorOffset: 0, focusOffset: n.value.length })); }, "Tab", ), }, RW = s((e, t, r) => { if (e.code === "KeyA" && r.system.keyboard.modifiers.Control) return () => g0(t); }, "combinationBehavior"); na.keypress = (e, t, r) => { if (e.key === "Enter") { if ( Je(t, "button") || (Je(t, "input") && TW.includes(t.type)) || (Je(t, "a") && t.href) ) return () => { r.dispatchUIEvent(t, "click"); }; if (Je(t, "input")) { let n = t.form, a = n?.querySelector( 'input[type="submit"], button:not([type]), button[type="submit"]', ); return a ? () => r.dispatchUIEvent(a, "click") : n && OW.includes(t.type) && n.querySelectorAll("input").length === 1 ? () => r.dispatchUIEvent(n, "submit") : void 0; } } if (Ia(t)) { let n = e.key === "Enter" ? ra(t) && !r.system.keyboard.modifiers.Shift ? "insertParagraph" : "insertLineBreak" : "insertText", a = e.key === "Enter" ? ` ` : e.key; return () => ja(r, t, a, n); } }; var TW = ["button", "color", "file", "image", "reset", "submit"], OW = ["email", "month", "password", "search", "tel", "text", "url", "week"]; na.keyup = (e, t, r) => { var n; return (n = J_[e.key]) === null || n === void 0 ? void 0 : n.call(J_, e, t, r); }; var J_ = { " ": s((e, t, r) => { if (l0(t)) return () => r.dispatchUIEvent(t, "click"); }, " "), }; na.paste = (e, t, r) => { if (Ia(t)) return () => { var n; let a = (n = e.clipboardData) === null || n === void 0 ? void 0 : n.getData("text"); a && ja(r, t, a, "insertFromPaste"); }; }; var wj = { auxclick: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, beforeinput: { EventType: "InputEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, blur: { EventType: "FocusEvent", defaultInit: { bubbles: !1, cancelable: !1, composed: !0 }, }, click: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, contextmenu: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, copy: { EventType: "ClipboardEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, change: { EventType: "Event", defaultInit: { bubbles: !0, cancelable: !1 } }, cut: { EventType: "ClipboardEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, dblclick: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, focus: { EventType: "FocusEvent", defaultInit: { bubbles: !1, cancelable: !1, composed: !0 }, }, focusin: { EventType: "FocusEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, focusout: { EventType: "FocusEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, keydown: { EventType: "KeyboardEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, keypress: { EventType: "KeyboardEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, keyup: { EventType: "KeyboardEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, paste: { EventType: "ClipboardEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, input: { EventType: "InputEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, mousedown: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, mouseenter: { EventType: "MouseEvent", defaultInit: { bubbles: !1, cancelable: !1, composed: !0 }, }, mouseleave: { EventType: "MouseEvent", defaultInit: { bubbles: !1, cancelable: !1, composed: !0 }, }, mousemove: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, mouseout: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, mouseover: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, mouseup: { EventType: "MouseEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointerover: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointerenter: { EventType: "PointerEvent", defaultInit: { bubbles: !1, cancelable: !1 }, }, pointerdown: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointermove: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointerup: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointercancel: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !1, composed: !0 }, }, pointerout: { EventType: "PointerEvent", defaultInit: { bubbles: !0, cancelable: !0, composed: !0 }, }, pointerleave: { EventType: "PointerEvent", defaultInit: { bubbles: !1, cancelable: !1 }, }, submit: { EventType: "Event", defaultInit: { bubbles: !0, cancelable: !0 } }, }; function b0(e) { return wj[e].EventType; } s(b0, "getEventClass"); var DW = ["MouseEvent", "PointerEvent"]; function Aj(e) { return DW.includes(b0(e)); } s(Aj, "isMouseEvent"); function Sj(e) { return b0(e) === "KeyboardEvent"; } s(Sj, "isKeyboardEvent"); var FW = { ClipboardEvent: [Pj], Event: [], FocusEvent: [ro, Rj], InputEvent: [ro, Tj], MouseEvent: [ro, Qu, Wm], PointerEvent: [ro, Qu, Wm, Dj], KeyboardEvent: [ro, Qu, Oj], }; function v0(e, t, r) { let n = Rr(t), { EventType: a, defaultInit: o } = wj[e], i = new (xj(n)[a])(e, o); return (FW[a].forEach((u) => u(i, r ?? {})), i); } s(v0, "createEvent"); function xj(e) { var t, r, n, a, o, i, u, l, c, d, p, f, h, m, y, b; let g = (b = e.Event) !== null && b !== void 0 ? b : ((t = class {}), s(t, "Event"), t); var v; let x = (v = e.AnimationEvent) !== null && v !== void 0 ? v : ((r = class extends g {}), s(r, "AnimationEvent"), r); var A; let w = (A = e.ClipboardEvent) !== null && A !== void 0 ? A : ((n = class extends g {}), s(n, "ClipboardEvent"), n); var C; let E = (C = e.PopStateEvent) !== null && C !== void 0 ? C : ((a = class extends g {}), s(a, "PopStateEvent"), a); var _; let P = (_ = e.ProgressEvent) !== null && _ !== void 0 ? _ : ((o = class extends g {}), s(o, "ProgressEvent"), o); var D; let F = (D = e.TransitionEvent) !== null && D !== void 0 ? D : ((i = class extends g {}), s(i, "TransitionEvent"), i); var L; let q = (L = e.UIEvent) !== null && L !== void 0 ? L : ((u = class extends g {}), s(u, "UIEvent"), u); var T; let k = (T = e.CompositionEvent) !== null && T !== void 0 ? T : ((l = class extends q {}), s(l, "CompositionEvent"), l); var I; let W = (I = e.FocusEvent) !== null && I !== void 0 ? I : ((c = class extends q {}), s(c, "FocusEvent"), c); var Q; let se = (Q = e.InputEvent) !== null && Q !== void 0 ? Q : ((d = class extends q {}), s(d, "InputEvent"), d); var H; let K = (H = e.KeyboardEvent) !== null && H !== void 0 ? H : ((p = class extends q {}), s(p, "KeyboardEvent"), p); var V; let Z = (V = e.MouseEvent) !== null && V !== void 0 ? V : ((f = class extends q {}), s(f, "MouseEvent"), f); var re; let he = (re = e.DragEvent) !== null && re !== void 0 ? re : ((h = class extends Z {}), s(h, "DragEvent"), h); var oe; let ge = (oe = e.PointerEvent) !== null && oe !== void 0 ? oe : ((m = class extends Z {}), s(m, "PointerEvent"), m); var be; let rt = (be = e.TouchEvent) !== null && be !== void 0 ? be : ((y = class extends q {}), s(y, "TouchEvent"), y); return { Event: g, AnimationEvent: x, ClipboardEvent: w, PopStateEvent: E, ProgressEvent: P, TransitionEvent: F, UIEvent: q, CompositionEvent: k, FocusEvent: W, InputEvent: se, KeyboardEvent: K, MouseEvent: Z, DragEvent: he, PointerEvent: ge, TouchEvent: rt, }; } s(xj, "getEventConstructors"); function kn(e, t) { for (let [r, n] of Object.entries(t)) Object.defineProperty(e, r, { get: s(() => n ?? null, "get") }); } s(kn, "assignProps"); function Dt(e) { return Number(e ?? 0); } s(Dt, "sanitizeNumber"); function Pj(e, { clipboardData: t }) { kn(e, { clipboardData: t }); } s(Pj, "initClipboardEvent"); function Rj(e, { relatedTarget: t }) { kn(e, { relatedTarget: t }); } s(Rj, "initFocusEvent"); function Tj(e, { data: t, inputType: r, isComposing: n }) { kn(e, { data: t, isComposing: !!n, inputType: String(r) }); } s(Tj, "initInputEvent"); function ro(e, { view: t, detail: r }) { kn(e, { view: t, detail: Dt(r ?? 0) }); } s(ro, "initUIEvent"); function Qu( e, { altKey: t, ctrlKey: r, metaKey: n, shiftKey: a, modifierAltGraph: o, modifierCapsLock: i, modifierFn: u, modifierFnLock: l, modifierNumLock: c, modifierScrollLock: d, modifierSymbol: p, modifierSymbolLock: f, }, ) { kn(e, { altKey: !!t, ctrlKey: !!r, metaKey: !!n, shiftKey: !!a, getModifierState(h) { return !!{ Alt: t, AltGraph: o, CapsLock: i, Control: r, Fn: u, FnLock: l, Meta: n, NumLock: c, ScrollLock: d, Shift: a, Symbol: p, SymbolLock: f, }[h]; }, }); } s(Qu, "initUIEventModifiers"); function Oj( e, { key: t, code: r, location: n, repeat: a, isComposing: o, charCode: i }, ) { kn(e, { key: String(t), code: String(r), location: Dt(n), repeat: !!a, isComposing: !!o, charCode: i, }); } s(Oj, "initKeyboardEvent"); function Wm( e, { x: t, y: r, screenX: n, screenY: a, clientX: o = t, clientY: i = r, button: u, buttons: l, relatedTarget: c, offsetX: d, offsetY: p, pageX: f, pageY: h, }, ) { kn(e, { screenX: Dt(n), screenY: Dt(a), clientX: Dt(o), x: Dt(o), clientY: Dt(i), y: Dt(i), button: Dt(u), buttons: Dt(l), relatedTarget: c, offsetX: Dt(d), offsetY: Dt(p), pageX: Dt(f), pageY: Dt(h), }); } s(Wm, "initMouseEvent"); function Dj( e, { pointerId: t, width: r, height: n, pressure: a, tangentialPressure: o, tiltX: i, tiltY: u, twist: l, pointerType: c, isPrimary: d, }, ) { kn(e, { pointerId: Dt(t), width: Dt(r ?? 1), height: Dt(n ?? 1), pressure: Dt(a), tangentialPressure: Dt(o), tiltX: Dt(i), tiltY: Dt(u), twist: Dt(l), pointerType: String(c), isPrimary: !!d, }); } s(Dj, "initPointerEvent"); function Fj(e, t, r, n = !1) { (Aj(t) || Sj(t)) && (r = { ...r, ...this.system.getUIEventModifiers() }); let a = v0(t, e, r); return E0.call(this, e, a, n); } s(Fj, "dispatchUIEvent"); function E0(e, t, r = !1) { var n; let a = t.type, o = r ? () => {} : (n = na[a]) === null || n === void 0 ? void 0 : n.call(na, t, e, this); if (o) { t.preventDefault(); let i = !1; return ( Object.defineProperty(t, "defaultPrevented", { get: s(() => i, "get") }), Object.defineProperty(t, "preventDefault", { value: s(() => { i = t.cancelable; }, "value"), }), Na(() => e.dispatchEvent(t)), i || o(), !i ); } return Na(() => e.dispatchEvent(t)); } s(E0, "dispatchEvent"); function Vn(e, t, r) { let n = v0(t, e, r); Na(() => e.dispatchEvent(n)); } s(Vn, "dispatchDOMEvent"); var X_ = Symbol("patched focus/blur methods"); function _0(e) { if (e.prototype[X_]) return; let { focus: t, blur: r } = e.prototype; Object.defineProperties(e.prototype, { focus: { configurable: !0, get: s(() => a, "get") }, blur: { configurable: !0, get: s(() => o, "get") }, [X_]: { configurable: !0, get: s(() => ({ focus: t, blur: r }), "get") }, }); let n; function a(i) { if (this.ownerDocument.visibilityState !== "hidden") return t.call(this, i); let u = Jm(this.ownerDocument); if (u === this) return; let l = Symbol("focus call"); ((n = l), u && (r.call(u), Vn(u, "blur", { relatedTarget: this }), Vn(u, "focusout", { relatedTarget: n === l ? this : null })), n === l && (t.call(this, i), Vn(this, "focus", { relatedTarget: u })), n === l && Vn(this, "focusin", { relatedTarget: u })); } s(a, "patchedFocus"); function o() { if (this.ownerDocument.visibilityState !== "hidden") return r.call(this); let i = Jm(this.ownerDocument); i === this && ((n = Symbol("blur call")), r.call(this), Vn(i, "blur", { relatedTarget: null }), Vn(i, "focusout", { relatedTarget: null })); } s(o, "patchedBlur"); } s(_0, "patchFocus"); function Jm(e) { let t = ei(e); return t?.tagName === "BODY" ? null : t; } s(Jm, "getActiveTarget"); var bp = Symbol("Interceptor for programmatical calls"); function ba(e, t, r) { let n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), a = Object.getOwnPropertyDescriptor(e, t), o = n?.set ? "set" : "value"; if (typeof n?.[o] != "function" || n[o][bp]) throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`); function i(...u) { let { applyNative: l = !1, realArgs: c, then: d } = r.call(this, ...u), p = ((!l && a) || n)[o]; (o === "set" ? p.call(this, c) : p.call(this, ...c), d?.()); } (s(i, "intercept"), (i[bp] = bp), Object.defineProperty(e, t, { ...(a ?? n), [o]: i })); } s(ba, "prepareInterceptor"); function Ij(e) { ba( e, "value", s(function (t) { let r = KN(t); return ( r && cj(this), { applyNative: !!r, realArgs: Nj(this, t), then: r ? void 0 : () => dj(this, String(t)), } ); }, "interceptorImpl"), ); } s(Ij, "prepareValueInterceptor"); function Nj(e, t) { return Je(e, "input", { type: "number" }) && String(t) !== "" && !Number.isNaN(Number(t)) ? String(Number(t)) : String(t); } s(Nj, "sanitizeValue"); function jj(e) { (ba( e, "setSelectionRange", s(function (t, ...r) { let n = YN(t); return { applyNative: !!n, realArgs: [Number(t), ...r], then: s(() => (n ? void 0 : Ni(e)), "then"), }; }, "interceptorImpl"), ), ba( e, "selectionStart", s(function (t) { return { realArgs: t, then: s(() => Ni(e), "then") }; }, "interceptorImpl"), ), ba( e, "selectionEnd", s(function (t) { return { realArgs: t, then: s(() => Ni(e), "then") }; }, "interceptorImpl"), ), ba( e, "select", s(function () { return { realArgs: [], then: s( () => ej(e, { anchorOffset: 0, focusOffset: zr(e).length }), "then", ), }; }, "interceptorImpl"), )); } s(jj, "prepareSelectionInterceptor"); function kj(e) { ba( e, "setRangeText", s(function (...t) { return { realArgs: t, then: s(() => { (Pd(e), Ni(e)); }, "then"), }; }, "interceptorImpl"), ); } s(kj, "prepareRangeTextInterceptor"); var vo = Symbol("Node prepared with document state workarounds"); function C0(e) { e[vo] || (e.addEventListener( "focus", (t) => { let r = t.target; Xm(r); }, { capture: !0, passive: !0 }, ), e.activeElement && Xm(e.activeElement), e.addEventListener( "blur", (t) => { let r = t.target, n = ZN(r); n !== void 0 && (r.value !== n && Vn(r, "change"), p0(r)); }, { capture: !0, passive: !0 }, ), (e[vo] = vo)); } s(C0, "prepareDocument"); function Xm(e) { e[vo] || (Je(e, ["input", "textarea"]) && (Ij(e), jj(e), kj(e)), (e[vo] = vo)); } s(Xm, "prepareElement"); function qj(e) { return Mj(e) ? e : e.ownerDocument; } s(qj, "getDocumentFromNode"); function Mj(e) { return e.nodeType === 9; } s(Mj, "isDocument"); var Ar = (function (e) { return ((e[(e.Trigger = 2)] = "Trigger"), (e[(e.Call = 1)] = "Call"), e); })({}); function po(e, t) { e.levelRefs[t] = {}; } s(po, "setLevelRef"); function _i(e, t) { return e.levelRefs[t]; } s(_i, "getLevelRef"); function ka(e) { let t = e.delay; if (typeof t == "number") return Promise.all([ new Promise((r) => globalThis.setTimeout(() => r(), t)), e.advanceTimers(t), ]); } s(ka, "wait"); var Zu = (function (e) { return ( (e[(e.EachTrigger = 4)] = "EachTrigger"), (e[(e.EachApiCall = 2)] = "EachApiCall"), (e[(e.EachTarget = 1)] = "EachTarget"), (e[(e.Never = 0)] = "Never"), e ); })({}); function $n(e, t, r) { return ( t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s($n, "_define_property"); var Jr = (function (e) { return ( (e[(e.STANDARD = 0)] = "STANDARD"), (e[(e.LEFT = 1)] = "LEFT"), (e[(e.RIGHT = 2)] = "RIGHT"), (e[(e.NUMPAD = 3)] = "NUMPAD"), e ); })({}), IW = ["Alt", "AltGraph", "Control", "Fn", "Meta", "Shift", "Symbol"]; function Km(e) { return IW.includes(e); } s(Km, "isModifierKey"); var NW = ["CapsLock", "FnLock", "NumLock", "ScrollLock", "SymbolLock"]; function Ym(e) { return NW.includes(e); } s(Ym, "isModifierLock"); var Bj = class { isKeyPressed(t) { return this.pressed.has(String(t.code)); } getPressedKeys() { return this.pressed.values().map((t) => t.keyDef); } async keydown(t, r) { let n = String(r.key), a = String(r.code), o = Yu(t.config.document); (this.setKeydownTarget(o), this.pressed.add(a, r), Km(n) && (this.modifiers[n] = !0)); let i = t.dispatchUIEvent(o, "keydown", { key: n, code: a }); (Ym(n) && !this.modifiers[n] && ((this.modifiers[n] = !0), (this.modifierLockStart[n] = !0)), i && this.pressed.setUnprevented(a), i && this.hasKeyPress(n) && t.dispatchUIEvent(Yu(t.config.document), "keypress", { key: n, code: a, charCode: r.key === "Enter" ? 13 : String(r.key).charCodeAt(0), })); } async keyup(t, r) { let n = String(r.key), a = String(r.code), o = this.pressed.isUnprevented(a); (this.pressed.delete(a), Km(n) && !this.pressed.values().find((i) => i.keyDef.key === n) && (this.modifiers[n] = !1), t.dispatchUIEvent( Yu(t.config.document), "keyup", { key: n, code: a }, !o, ), Ym(n) && this.modifiers[n] && (this.modifierLockStart[n] ? (this.modifierLockStart[n] = !1) : (this.modifiers[n] = !1))); } setKeydownTarget(t) { (t !== this.lastKeydownTarget && (this.carryChar = ""), (this.lastKeydownTarget = t)); } hasKeyPress(t) { return ( (t.length === 1 || t === "Enter") && !this.modifiers.Control && !this.modifiers.Alt ); } constructor(t) { ($n(this, "system", void 0), $n(this, "modifiers", { Alt: !1, AltGraph: !1, CapsLock: !1, Control: !1, Fn: !1, FnLock: !1, Meta: !1, NumLock: !1, ScrollLock: !1, Shift: !1, Symbol: !1, SymbolLock: !1, }), $n( this, "pressed", new (class { add(r, n) { var a, o, i; ((i = (a = this.registry)[(o = r)]) !== null && i !== void 0) || (a[o] = { keyDef: n, unpreventedDefault: !1 }); } has(r) { return !!this.registry[r]; } setUnprevented(r) { let n = this.registry[r]; n && (n.unpreventedDefault = !0); } isUnprevented(r) { var n; return !!( !((n = this.registry[r]) === null || n === void 0) && n.unpreventedDefault ); } delete(r) { delete this.registry[r]; } values() { return Object.values(this.registry); } constructor() { $n(this, "registry", {}); } })(), ), $n(this, "carryChar", ""), $n(this, "lastKeydownTarget", void 0), $n(this, "modifierLockStart", {}), (this.system = t)); } }; s(Bj, "KeyboardHost"); var jW = Bj, kW = [ ..."0123456789".split("").map((e) => ({ code: `Digit${e}`, key: e })), ...")!@#$%^&*(" .split("") .map((e, t) => ({ code: `Digit${t}`, key: e, shiftKey: !0 })), ..."abcdefghijklmnopqrstuvwxyz" .split("") .map((e) => ({ code: `Key${e.toUpperCase()}`, key: e })), ..."ABCDEFGHIJKLMNOPQRSTUVWXYZ" .split("") .map((e) => ({ code: `Key${e}`, key: e, shiftKey: !0 })), { code: "BracketLeft", key: "[" }, { code: "BracketLeft", key: "{", shiftKey: !0 }, { code: "BracketRight", key: "]" }, { code: "BracketRight", key: "}", shiftKey: !0 }, { code: "Space", key: " " }, { code: "AltLeft", key: "Alt", location: Jr.LEFT }, { code: "AltRight", key: "Alt", location: Jr.RIGHT }, { code: "ShiftLeft", key: "Shift", location: Jr.LEFT }, { code: "ShiftRight", key: "Shift", location: Jr.RIGHT }, { code: "ControlLeft", key: "Control", location: Jr.LEFT }, { code: "ControlRight", key: "Control", location: Jr.RIGHT }, { code: "MetaLeft", key: "Meta", location: Jr.LEFT }, { code: "MetaRight", key: "Meta", location: Jr.RIGHT }, { code: "OSLeft", key: "OS", location: Jr.LEFT }, { code: "OSRight", key: "OS", location: Jr.RIGHT }, { code: "ContextMenu", key: "ContextMenu" }, { code: "Tab", key: "Tab" }, { code: "CapsLock", key: "CapsLock" }, { code: "Backspace", key: "Backspace" }, { code: "Enter", key: "Enter" }, { code: "Escape", key: "Escape" }, { code: "ArrowUp", key: "ArrowUp" }, { code: "ArrowDown", key: "ArrowDown" }, { code: "ArrowLeft", key: "ArrowLeft" }, { code: "ArrowRight", key: "ArrowRight" }, { code: "Home", key: "Home" }, { code: "End", key: "End" }, { code: "Delete", key: "Delete" }, { code: "PageUp", key: "PageUp" }, { code: "PageDown", key: "PageDown" }, { code: "Fn", key: "Fn" }, { code: "Symbol", key: "Symbol" }, { code: "AltRight", key: "AltGraph" }, ], qW = [ { name: "MouseLeft", pointerType: "mouse", button: "primary" }, { name: "MouseRight", pointerType: "mouse", button: "secondary" }, { name: "MouseMiddle", pointerType: "mouse", button: "auxiliary" }, { name: "TouchA", pointerType: "touch" }, { name: "TouchB", pointerType: "touch" }, { name: "TouchC", pointerType: "touch" }, ]; function Lj(e, t, r) { return ( t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(Lj, "_define_property"); var $j = class { getButtons() { let t = 0; for (let r of Object.keys(this.pressed)) t |= 2 ** Number(r); return t; } down(t) { let r = Gl(t.button); if (r in this.pressed) { this.pressed[r].push(t); return; } return ((this.pressed[r] = [t]), r); } up(t) { let r = Gl(t.button); if ( r in this.pressed && ((this.pressed[r] = this.pressed[r].filter((n) => n.name !== t.name)), this.pressed[r].length === 0) ) return (delete this.pressed[r], r); } constructor() { Lj(this, "pressed", {}); } }; s($j, "Buttons"); var Uj = $j, K_ = { primary: 0, secondary: 1, auxiliary: 2, back: 3, X1: 3, forward: 4, X2: 4, }; function Gl(e = 0) { return e in K_ ? K_[e] : Number(e); } s(Gl, "getMouseButtonId"); var Y_ = { 1: 2, 2: 1 }; function Wl(e) { return ((e = Gl(e)), e in Y_ ? Y_[e] : e); } s(Wl, "getMouseEventButton"); function Hj(e, t, r) { return ( t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(Hj, "_define_property"); var Vj = class { get countPressed() { return this.pressedKeys.size; } isPressed(t) { return this.pressedKeys.has(t.name); } addPressed(t) { return this.pressedKeys.add(t.name); } removePressed(t) { return this.pressedKeys.delete(t.name); } constructor() { Hj(this, "pressedKeys", new Set()); } }; s(Vj, "Device"); var MW = Vj; function Eo(e, t) { let r = []; for (let o = e; o; o = o.parentElement) r.push(o); let n = []; for (let o = t; o; o = o.parentElement) n.push(o); let a = 0; for ( ; !( a >= r.length || a >= n.length || r[r.length - 1 - a] !== n[n.length - 1 - a] ); a++ ); return [ r.slice(0, r.length - a), n.slice(0, n.length - a), n.slice(n.length - a), ]; } s(Eo, "getTreeDiff"); function Jl({ target: e, node: t, offset: r }) { return Vr(e) ? { node: e, offset: r ?? zr(e).length } : t ? { node: t, offset: r ?? (t.nodeType === 3 ? t.nodeValue.length : t.childNodes.length), } : w0(e, r); } s(Jl, "resolveCaretPosition"); function w0(e, t, r = !0) { let n = t === void 0 ? e.childNodes.length - 1 : 0, a = t === void 0 ? -1 : 1; for ( ; t === void 0 ? n >= (r ? Math.max(e.childNodes.length - 1, 0) : 0) : n <= e.childNodes.length; ) { if (t && n === e.childNodes.length) throw new Error("The given offset is out of bounds."); let o = e.childNodes.item(n), i = String(o.textContent); if (i.length) if (t !== void 0 && i.length < t) t -= i.length; else { if (o.nodeType === 1) return w0(o, t, !1); if (o.nodeType === 3) return { node: o, offset: t ?? o.nodeValue.length }; } n += a; } return { node: e, offset: e.childNodes.length }; } s(w0, "findNodeAtTextOffset"); function zj({ document: e, target: t, clickCount: r, node: n, offset: a }) { if (WN(t)) return; let o = Vr(t), i = String(o ? zr(t) : t.textContent), [u, l] = n ? [a, a] : Gj(i, a, r); if (o) return ( za(t, { anchorOffset: u ?? i.length, focusOffset: l ?? i.length }), { node: t, start: u ?? 0, end: l ?? i.length } ); { let { node: c, offset: d } = Jl({ target: t, node: n, offset: u }), { node: p, offset: f } = Jl({ target: t, node: n, offset: l }), h = t.ownerDocument.createRange(); try { (h.setStart(c, d), h.setEnd(p, f)); } catch { throw new Error("The given offset is out of bounds."); } let m = e.getSelection(); return (m?.removeAllRanges(), m?.addRange(h.cloneRange()), h); } } s(zj, "setSelectionPerMouseDown"); function Gj(e, t, r) { if (r % 3 === 1 || e.length === 0) return [t, t]; let n = t ?? e.length; return r % 3 === 2 ? [ n - e.substr(0, t).match(/(\w+|\s+|\W)?$/)[0].length, t === void 0 ? t : t + e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length, ] : [ n - e.substr(0, t).match(/[^\r\n]*$/)[0].length, t === void 0 ? t : t + e.substr(t).match(/^[^\r\n]*/)[0].length, ]; } s(Gj, "getTextRange"); function Wj(e, { document: t, target: r, node: n, offset: a }) { let o = Jl({ target: r, node: n, offset: a }); if ("node" in e) { if (o.node === e.node) { let i = o.offset < e.start ? e.end : e.start, u = o.offset > e.end || o.offset < e.start ? o.offset : e.end; za(e.node, { anchorOffset: i, focusOffset: u }); } } else { let i = e.cloneRange(), u = i.comparePoint(o.node, o.offset); u < 0 ? i.setStart(o.node, o.offset) : u > 0 && i.setEnd(o.node, o.offset); let l = t.getSelection(); (l?.removeAllRanges(), l?.addRange(i.cloneRange())); } } s(Wj, "modifySelectionPerMouseMove"); function A0(e, t) { var r, n, a, o, i, u, l, c, d, p, f, h, m, y, b, g, v, x, A, w, C, E, _, P; return ( e.target !== t.target || ((r = e.coords) === null || r === void 0 ? void 0 : r.x) !== ((n = t.coords) === null || n === void 0 ? void 0 : n.x) || ((a = e.coords) === null || a === void 0 ? void 0 : a.y) !== ((o = t.coords) === null || o === void 0 ? void 0 : o.y) || ((i = e.coords) === null || i === void 0 ? void 0 : i.clientX) !== ((u = t.coords) === null || u === void 0 ? void 0 : u.clientX) || ((l = e.coords) === null || l === void 0 ? void 0 : l.clientY) !== ((c = t.coords) === null || c === void 0 ? void 0 : c.clientY) || ((d = e.coords) === null || d === void 0 ? void 0 : d.offsetX) !== ((p = t.coords) === null || p === void 0 ? void 0 : p.offsetX) || ((f = e.coords) === null || f === void 0 ? void 0 : f.offsetY) !== ((h = t.coords) === null || h === void 0 ? void 0 : h.offsetY) || ((m = e.coords) === null || m === void 0 ? void 0 : m.pageX) !== ((y = t.coords) === null || y === void 0 ? void 0 : y.pageX) || ((b = e.coords) === null || b === void 0 ? void 0 : b.pageY) !== ((g = t.coords) === null || g === void 0 ? void 0 : g.pageY) || ((v = e.coords) === null || v === void 0 ? void 0 : v.screenX) !== ((x = t.coords) === null || x === void 0 ? void 0 : x.screenX) || ((A = e.coords) === null || A === void 0 ? void 0 : A.screenY) !== ((w = t.coords) === null || w === void 0 ? void 0 : w.screenY) || ((C = e.caret) === null || C === void 0 ? void 0 : C.node) !== ((E = t.caret) === null || E === void 0 ? void 0 : E.node) || ((_ = e.caret) === null || _ === void 0 ? void 0 : _.offset) !== ((P = t.caret) === null || P === void 0 ? void 0 : P.offset) ); } s(A0, "isDifferentPointerPosition"); function Un(e, t, r) { return ( t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(Un, "_define_property"); var Jj = class { move(t, r, n) { let a = this.position, o = this.getTarget(t); if (((this.position = r), !A0(a, r))) return; let i = this.getTarget(t), u = this.getEventInit("mousemove"), [l, c] = Eo(o, i); return { leave: s(() => { o !== i && (t.dispatchUIEvent(o, "mouseout", u), l.forEach((d) => t.dispatchUIEvent(d, "mouseleave", u))); }, "leave"), enter: s(() => { o !== i && (t.dispatchUIEvent(i, "mouseover", u), c.forEach((d) => t.dispatchUIEvent(d, "mouseenter", u))); }, "enter"), move: s(() => { n || (t.dispatchUIEvent(i, "mousemove", u), this.modifySelecting(t)); }, "move"), }; } down(t, r, n) { let a = this.buttons.down(r); if (a === void 0) return; let o = this.getTarget(t); this.buttonDownTarget[a] = o; let i = this.getEventInit("mousedown", r.button), u = ln(o); (!n && (u || t.dispatchUIEvent(o, "mousedown", i)) && (this.startSelecting(t, i.detail), Fn(o)), !u && Wl(r.button) === 2 && t.dispatchUIEvent( o, "contextmenu", this.getEventInit("contextmenu", r.button), )); } up(t, r, n) { let a = this.buttons.up(r); if (a === void 0) return; let o = this.getTarget(t); if (!ln(o)) { if (!n) { let u = this.getEventInit("mouseup", r.button); (t.dispatchUIEvent(o, "mouseup", u), this.endSelecting()); } let i = Eo(this.buttonDownTarget[a], o)[2][0]; if (i) { let u = this.getEventInit("click", r.button); u.detail && (t.dispatchUIEvent(i, u.button === 0 ? "click" : "auxclick", u), u.button === 0 && u.detail === 2 && t.dispatchUIEvent(i, "dblclick", { ...this.getEventInit("dblclick", r.button), detail: u.detail, })); } } } resetClickCount() { this.clickCount.reset(); } getEventInit(t, r) { let n = { ...this.position.coords }; return ( (n.button = Wl(r)), (n.buttons = this.buttons.getButtons()), t === "mousedown" ? (n.detail = this.clickCount.getOnDown(n.button)) : t === "mouseup" ? (n.detail = this.clickCount.getOnUp(n.button)) : (t === "click" || t === "auxclick") && (n.detail = this.clickCount.incOnClick(n.button)), n ); } getTarget(t) { var r; return (r = this.position.target) !== null && r !== void 0 ? r : t.config.document.body; } startSelecting(t, r) { var n, a; this.selecting = zj({ document: t.config.document, target: this.getTarget(t), node: (n = this.position.caret) === null || n === void 0 ? void 0 : n.node, offset: (a = this.position.caret) === null || a === void 0 ? void 0 : a.offset, clickCount: r, }); } modifySelecting(t) { var r, n; this.selecting && Wj(this.selecting, { document: t.config.document, target: this.getTarget(t), node: (r = this.position.caret) === null || r === void 0 ? void 0 : r.node, offset: (n = this.position.caret) === null || n === void 0 ? void 0 : n.offset, }); } endSelecting() { this.selecting = void 0; } constructor() { (Un(this, "position", {}), Un(this, "buttons", new Uj()), Un(this, "selecting", void 0), Un(this, "buttonDownTarget", {}), Un( this, "clickCount", new (class { incOnClick(t) { let r = this.down[t] === void 0 ? void 0 : Number(this.down[t]) + 1; return ( (this.count = this.count[t] === void 0 ? {} : { [t]: Number(this.count[t]) + 1 }), r ); } getOnDown(t) { var r; this.down = { [t]: (r = this.count[t]) !== null && r !== void 0 ? r : 0, }; var n; return ( (this.count = { [t]: (n = this.count[t]) !== null && n !== void 0 ? n : 0, }), Number(this.count[t]) + 1 ); } getOnUp(t) { return this.down[t] === void 0 ? void 0 : Number(this.down[t]) + 1; } reset() { this.count = {}; } constructor() { (Un(this, "down", {}), Un(this, "count", {})); } })(), )); } }; s(Jj, "Mouse"); var BW = Jj; function ss(e, t) { var r; return ( ((r = S0(e, t)) === null || r === void 0 ? void 0 : r.pointerEvents) !== "none" ); } s(ss, "hasPointerEvents"); function Xj(e) { let t = Rr(e); for (let r = e, n = []; r?.ownerDocument; r = r.parentElement) { n.push(r); let a = t.getComputedStyle(r).pointerEvents; if (a && !["inherit", "unset"].includes(a)) return { pointerEvents: a, tree: n }; } } s(Xj, "closestPointerEventsDeclaration"); var Q_ = Symbol("Last check for pointer-events"); function S0(e, t) { let r = t[Q_]; if ( !( e.config.pointerEventsCheck !== Zu.Never && (!r || (Qm(e.config.pointerEventsCheck, Zu.EachApiCall) && r[Ar.Call] !== _i(e, Ar.Call)) || (Qm(e.config.pointerEventsCheck, Zu.EachTrigger) && r[Ar.Trigger] !== _i(e, Ar.Trigger))) ) ) return r?.result; let n = Xj(t); return ( (t[Q_] = { [Ar.Call]: _i(e, Ar.Call), [Ar.Trigger]: _i(e, Ar.Trigger), result: n, }), n ); } s(S0, "checkPointerEvents"); function fo(e, t) { let r = S0(e, t); if (r?.pointerEvents === "none") throw new Error( [ `Unable to perform pointer interaction as the element ${r.tree.length > 1 ? "inherits" : "has"} \`pointer-events: none\`:`, "", Kj(r.tree), ].join(` `), ); } s(fo, "assertPointerEvents"); function Kj(e) { return e .reverse() .map((t, r) => [ "".padEnd(r), t.tagName, t.id && `#${t.id}`, t.hasAttribute("data-testid") && `(testId=${t.getAttribute("data-testid")})`, Yj(t), e.length > 1 && r === 0 && " <-- This element declared `pointer-events: none`", e.length > 1 && r === e.length - 1 && " <-- Asserted pointer events here", ] .filter(Boolean) .join(""), ).join(` `); } s(Kj, "printTree"); function Yj(e) { var t; let r; if (e.hasAttribute("aria-label")) r = e.getAttribute("aria-label"); else if (e.hasAttribute("aria-labelledby")) { var n, a; r = (a = e.ownerDocument.getElementById( e.getAttribute("aria-labelledby"), )) === null || a === void 0 || (n = a.textContent) === null || n === void 0 ? void 0 : n.trim(); } else if ( Je(e, [ "button", "input", "meter", "output", "progress", "select", "textarea", ]) && !((t = e.labels) === null || t === void 0) && t.length ) r = Array.from(e.labels) .map((i) => { var u; return (u = i.textContent) === null || u === void 0 ? void 0 : u.trim(); }) .join("|"); else if (Je(e, "button")) { var o; r = (o = e.textContent) === null || o === void 0 ? void 0 : o.trim(); } return ( (r = r?.replace(/\n/g, " ")), Number(r?.length) > 30 && (r = `${r?.substring(0, 29)}…`), r ? `(label=${r})` : "" ); } s(Yj, "getLabelDescr"); function Qm(e, t) { return (e & t) > 0; } s(Qm, "hasBitFlag"); function en(e, t, r) { return ( t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(en, "_define_property"); var Qj = class { init(t) { let r = this.getTarget(t), [, n] = Eo(null, r), a = this.getEventInit(); return ( fo(t, r), t.dispatchUIEvent(r, "pointerover", a), n.forEach((o) => t.dispatchUIEvent(o, "pointerenter", a)), this ); } move(t, r) { let n = this.position, a = this.getTarget(t); if (((this.position = r), !A0(n, r))) return; let o = this.getTarget(t), i = this.getEventInit(-1), [u, l] = Eo(a, o); return { leave: s(() => { ss(t, a) && a !== o && (t.dispatchUIEvent(a, "pointerout", i), u.forEach((c) => t.dispatchUIEvent(c, "pointerleave", i))); }, "leave"), enter: s(() => { (fo(t, o), a !== o && (t.dispatchUIEvent(o, "pointerover", i), l.forEach((c) => t.dispatchUIEvent(c, "pointerenter", i)))); }, "enter"), move: s(() => { t.dispatchUIEvent(o, "pointermove", i); }, "move"), }; } down(t, r = 0) { if (this.isDown) return; let n = this.getTarget(t); (fo(t, n), (this.isDown = !0), (this.isPrevented = !t.dispatchUIEvent( n, "pointerdown", this.getEventInit(r), ))); } up(t, r = 0) { if (!this.isDown) return; let n = this.getTarget(t); (fo(t, n), (this.isPrevented = !1), (this.isDown = !1), t.dispatchUIEvent(n, "pointerup", this.getEventInit(r))); } release(t) { let r = this.getTarget(t), [n] = Eo(r, null), a = this.getEventInit(); (ss(t, r) && (t.dispatchUIEvent(r, "pointerout", a), n.forEach((o) => t.dispatchUIEvent(o, "pointerleave", a))), (this.isCancelled = !0)); } getTarget(t) { var r; return (r = this.position.target) !== null && r !== void 0 ? r : t.config.document.body; } getEventInit(t) { return { ...this.position.coords, pointerId: this.pointerId, pointerType: this.pointerType, isPrimary: this.isPrimary, button: Wl(t), buttons: this.buttons.getButtons(), }; } constructor({ pointerId: t, pointerType: r, isPrimary: n }, a) { (en(this, "pointerId", void 0), en(this, "pointerType", void 0), en(this, "isPrimary", void 0), en(this, "buttons", void 0), en(this, "isMultitouch", !1), en(this, "isCancelled", !1), en(this, "isDown", !1), en(this, "isPrevented", !1), en(this, "position", {}), (this.pointerId = t), (this.pointerType = r), (this.isPrimary = n), (this.isMultitouch = !n), (this.buttons = a)); } }; s(Qj, "Pointer"); var LW = Qj; function _n(e, t, r) { return ( t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(_n, "_define_property"); var Zj = class { isKeyPressed(t) { return this.devices.get(t.pointerType).isPressed(t); } async press(t, r, n) { (this.devices.get(r.pointerType).addPressed(r), this.buttons.down(r)); let a = this.getPointerName(r), o = r.pointerType === "touch" ? this.pointers.new(a, r.pointerType, this.buttons) : this.pointers.get(a); ((o.position = n), o.pointerType !== "touch" && (this.mouse.position = n), o.pointerType === "touch" && o.init(t), o.down(t, r.button), o.pointerType !== "touch" && this.mouse.down(t, r, o.isPrevented)); } async move(t, r, n) { let a = this.pointers.get(r), o = a.move(t, n), i = a.pointerType === "touch" ? void 0 : this.mouse.move(t, n, a.isPrevented); (o?.leave(), i?.leave(), o?.enter(), i?.enter(), o?.move(), i?.move()); } async release(t, r, n) { let a = this.devices.get(r.pointerType); (a.removePressed(r), this.buttons.up(r)); let o = this.pointers.get(this.getPointerName(r)), i = o.isPrevented; if ( ((o.position = n), o.pointerType !== "touch" && (this.mouse.position = n), a.countPressed === 0 && o.up(t, r.button), o.pointerType === "touch" && o.release(t), o.pointerType === "touch" && !o.isMultitouch) ) { let u = this.mouse.move(t, n, i); (u?.leave(), u?.enter(), u?.move(), this.mouse.down(t, r, i)); } if (!o.isMultitouch) { let u = this.mouse.move(t, n, i); (u?.leave(), u?.enter(), u?.move(), this.mouse.up(t, r, i)); } } getPointerName(t) { return t.pointerType === "touch" ? t.name : t.pointerType; } getPreviousPosition(t) { return this.pointers.has(t) ? this.pointers.get(t).position : void 0; } resetClickCount() { this.mouse.resetClickCount(); } getMouseTarget(t) { var r; return (r = this.mouse.position.target) !== null && r !== void 0 ? r : t.config.document.body; } setMousePosition(t) { ((this.mouse.position = t), (this.pointers.get("mouse").position = t)); } constructor(t) { (_n(this, "system", void 0), _n(this, "mouse", void 0), _n(this, "buttons", void 0), _n( this, "devices", new (class { get(r) { var n, a, o; return (o = (n = this.registry)[(a = r)]) !== null && o !== void 0 ? o : (n[a] = new MW()); } constructor() { _n(this, "registry", {}); } })(), ), _n( this, "pointers", new (class { new(r, n, a) { let o = n !== "touch" || !Object.values(this.registry).some( (i) => i.pointerType === "touch" && !i.isCancelled, ); return ( o || Object.values(this.registry).forEach((i) => { i.pointerType === n && !i.isCancelled && (i.isMultitouch = !0); }), (this.registry[r] = new LW( { pointerId: this.nextId++, pointerType: n, isPrimary: o }, a, )), this.registry[r] ); } get(r) { if (!this.has(r)) throw new Error( `Trying to access pointer "${r}" which does not exist.`, ); return this.registry[r]; } has(r) { return r in this.registry; } constructor() { (_n(this, "registry", {}), _n(this, "nextId", 1)); } })(), ), (this.system = t), (this.buttons = new Uj()), (this.mouse = new BW()), this.pointers.new("mouse", "mouse", this.buttons)); } }; s(Zj, "PointerHost"); var $W = Zj; function Zm(e, t, r) { return ( t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } s(Zm, "_define_property"); var ek = class { getUIEventModifiers() { return { altKey: this.keyboard.modifiers.Alt, ctrlKey: this.keyboard.modifiers.Control, metaKey: this.keyboard.modifiers.Meta, shiftKey: this.keyboard.modifiers.Shift, modifierAltGraph: this.keyboard.modifiers.AltGraph, modifierCapsLock: this.keyboard.modifiers.CapsLock, modifierFn: this.keyboard.modifiers.Fn, modifierFnLock: this.keyboard.modifiers.FnLock, modifierNumLock: this.keyboard.modifiers.NumLock, modifierScrollLock: this.keyboard.modifiers.ScrollLock, modifierSymbol: this.keyboard.modifiers.Symbol, modifierSymbolLock: this.keyboard.modifiers.SymbolLock, }; } constructor() { (Zm(this, "keyboard", new jW(this)), Zm(this, "pointer", new $W(this))); } }; s(ek, "System"); var tk = ek; async function rk(e) { let t = []; return ( this.config.skipHover || t.push({ target: e }), t.push({ keys: "[MouseLeft]", target: e }), this.pointer(t) ); } s(rk, "click"); async function nk(e) { return this.pointer([{ target: e }, "[MouseLeft][MouseLeft]"]); } s(nk, "dblClick"); async function ak(e) { return this.pointer([{ target: e }, "[MouseLeft][MouseLeft][MouseLeft]"]); } s(ak, "tripleClick"); async function ok(e) { return this.pointer({ target: e }); } s(ok, "hover"); async function ik(e) { return ( fo(this, this.system.pointer.getMouseTarget(this)), this.pointer({ target: e.ownerDocument.body }) ); } s(ik, "unhover"); async function sk({ shift: e } = {}) { return this.keyboard( e === !0 ? "{Shift>}{Tab}{/Shift}" : e === !1 ? "[/ShiftLeft][/ShiftRight]{Tab}" : "{Tab}", ); } s(sk, "tab"); var x0 = (function (e) { return ((e["{"] = "}"), (e["["] = "]"), e); })(x0 || {}); function P0(e, t) { let r = 0, n = e[r] in x0 ? e[r] : ""; r += n.length; let a = new RegExp(`^\\${n}{2}`).test(e) ? "" : n; return { type: a, ...(a === "" ? uk(e, r, t) : lk(e, r, a, t)) }; } s(P0, "readNextDescriptor"); function uk(e, t, r) { let n = e[t]; return ( R0(n, e, t, r), (t += n.length), { consumedLength: t, descriptor: n, releasePrevious: !1, releaseSelf: !0, repeat: 1, } ); } s(uk, "readPrintableChar"); function lk(e, t, r, n) { var a, o; let i = e[t] === "/" ? "/" : ""; t += i.length; let u = r === "{" && e[t] === "\\"; t += Number(u); let l = u ? e[t] : (a = e.slice(t).match(r === "{" ? /^\w+|^[^}>/]/ : /^\w+/)) === null || a === void 0 ? void 0 : a[0]; (R0(l, e, t, n), (t += l.length)); var c; let d = (c = (o = e.slice(t).match(/^>\d+/)) === null || o === void 0 ? void 0 : o[0]) !== null && c !== void 0 ? c : ""; t += d.length; let p = e[t] === "/" || (!d && e[t] === ">") ? e[t] : ""; t += p.length; let f = x0[r], h = e[t] === f ? f : ""; if (!h) throw new Error( T0( [!d && "repeat modifier", !p && "release modifier", `"${f}"`] .filter(Boolean) .join(" or "), e[t], e, n, ), ); return ( (t += h.length), { consumedLength: t, descriptor: l, releasePrevious: !!i, repeat: d ? Math.max(Number(d.substr(1)), 1) : 1, releaseSelf: ck(p, d), } ); } s(lk, "readTag"); function R0(e, t, r, n) { if (!e) throw new Error(T0("key descriptor", t[r], t, n)); } s(R0, "assertDescriptor"); function ck(e, t) { if (e) return e === "/"; if (t) return !1; } s(ck, "hasReleaseSelf"); function T0(e, t, r, n) { return `Expected ${e} but found "${t ?? ""}" in "${r}" See ${n === "pointer" ? "https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen" : "https://testing-library.com/docs/user-event/keyboard"} for more information about how userEvent parses your input.`; } s(T0, "getErrorMessage"); function dk(e, t) { let r = []; do { let { type: a, descriptor: o, consumedLength: i, releasePrevious: u, releaseSelf: l = !0, repeat: c, } = P0(t, "keyboard"); var n; let d = (n = e.find((p) => { if (a === "[") { var f; return ( ((f = p.code) === null || f === void 0 ? void 0 : f.toLowerCase()) === o.toLowerCase() ); } else if (a === "{") { var h; return ( ((h = p.key) === null || h === void 0 ? void 0 : h.toLowerCase()) === o.toLowerCase() ); } return p.key === o; })) !== null && n !== void 0 ? n : { key: "Unknown", code: "Unknown", [a === "[" ? "code" : "key"]: o }; (r.push({ keyDef: d, releasePrevious: u, releaseSelf: l, repeat: c }), (t = t.slice(i))); } while (t); return r; } s(dk, "parseKeyDef"); async function pk(e) { let t = dk(this.config.keyboardMap, e); for (let r = 0; r < t.length; r++) (await ka(this.config), await fk(this, t[r])); } s(pk, "keyboard"); async function fk( e, { keyDef: t, releasePrevious: r, releaseSelf: n, repeat: a }, ) { let { system: o } = e; if ((o.keyboard.isKeyPressed(t) && (await o.keyboard.keyup(e, t)), !r)) { for (let i = 1; i <= a; i++) (await o.keyboard.keydown(e, t), i < a && (await ka(e.config))); n && (await o.keyboard.keyup(e, t)); } } s(fk, "keyboardAction"); async function hk(e) { for (let t of e.system.keyboard.getPressedKeys()) await e.system.keyboard.keyup(e, t); } s(hk, "releaseAllKeys"); function O0(e) { let t = Vr(e) ? { "text/plain": mk(e) } : { "text/plain": String(e.ownerDocument.getSelection()) }, r = Ad(Rr(e)); for (let n in t) t[n] && r.setData(n, t[n]); return r; } s(O0, "copySelection"); function mk(e) { let t = Mo(e); return zr(e).substring(t.startOffset, t.endOffset); } s(mk, "readSelectedValueFromInput"); async function yk() { let e = this.config.document; var t; let r = (t = e.activeElement) !== null && t !== void 0 ? t : e.body, n = O0(r); if (n.items.length !== 0) return ( this.dispatchUIEvent(r, "copy", { clipboardData: n }) && this.config.writeToClipboard && (await u0(e, n)), n ); } s(yk, "copy"); async function gk() { let e = this.config.document; var t; let r = (t = e.activeElement) !== null && t !== void 0 ? t : e.body, n = O0(r); if (n.items.length !== 0) return ( this.dispatchUIEvent(r, "cut", { clipboardData: n }) && this.config.writeToClipboard && (await u0(r.ownerDocument, n)), n ); } s(gk, "cut"); async function bk(e) { let t = this.config.document; var r; let n = (r = t.activeElement) !== null && r !== void 0 ? r : t.body; var a; let o = (a = typeof e == "string" ? vk(t, e) : e) !== null && a !== void 0 ? a : await LN(t).catch(() => { throw new Error( "`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.", ); }); this.dispatchUIEvent(n, "paste", { clipboardData: o }); } s(bk, "paste"); function vk(e, t) { let r = Ad(Rr(e)); return (r.setData("text", t), r); } s(vk, "getClipboardDataFromString"); function ey(e, t) { let r = []; do { let { descriptor: n, consumedLength: a, releasePrevious: o, releaseSelf: i = !0, } = P0(t, "pointer"), u = e.find((l) => l.name === n); (u && r.push({ keyDef: u, releasePrevious: o, releaseSelf: i }), (t = t.slice(a))); } while (t); return r; } s(ey, "parseKeyDef"); async function Ek(e) { let { pointerMap: t } = this.config, r = []; (Array.isArray(e) ? e : [e]).forEach((n) => { typeof n == "string" ? r.push(...ey(t, n)) : "keys" in n ? r.push(...ey(t, n.keys).map((a) => ({ ...n, ...a }))) : r.push(n); }); for (let n = 0; n < r.length; n++) (await ka(this.config), await _k(this, r[n])); this.system.pointer.resetClickCount(); } s(Ek, "pointer"); async function _k(e, t) { var r, n; let a = "pointerName" in t && t.pointerName ? t.pointerName : "keyDef" in t ? e.system.pointer.getPointerName(t.keyDef) : "mouse", o = e.system.pointer.getPreviousPosition(a); var i, u, l, c; let d = { target: (i = t.target) !== null && i !== void 0 ? i : Ck(e, o), coords: (u = t.coords) !== null && u !== void 0 ? u : o?.coords, caret: { node: (l = t.node) !== null && l !== void 0 ? l : ty(t) || o == null || (r = o.caret) === null || r === void 0 ? void 0 : r.node, offset: (c = t.offset) !== null && c !== void 0 ? c : ty(t) || o == null || (n = o.caret) === null || n === void 0 ? void 0 : n.offset, }, }; "keyDef" in t ? (e.system.pointer.isKeyPressed(t.keyDef) && (po(e, Ar.Trigger), await e.system.pointer.release(e, t.keyDef, d)), t.releasePrevious || (po(e, Ar.Trigger), await e.system.pointer.press(e, t.keyDef, d), t.releaseSelf && (po(e, Ar.Trigger), await e.system.pointer.release(e, t.keyDef, d)))) : (po(e, Ar.Trigger), await e.system.pointer.move(e, a, d)); } s(_k, "pointerAction"); function ty(e) { var t, r; return !!((r = (t = e.target) !== null && t !== void 0 ? t : e.node) !== null && r !== void 0 ? r : e.offset !== void 0); } s(ty, "hasCaretPosition"); function Ck(e, t) { if (!t) throw new Error( "This pointer has no previous position. Provide a target property!", ); var r; return (r = t.target) !== null && r !== void 0 ? r : e.config.document.body; } s(Ck, "getPrevTarget"); async function wk(e) { if (!Ia(e) || ln(e)) throw new Error("clear()` is only supported on editable elements."); if ((Fn(e), e.ownerDocument.activeElement !== e)) throw new Error("The element to be cleared could not be focused."); if ((g0(e), !Cj(e))) throw new Error("The element content to be cleared could not be selected."); ja(this, e, "", "deleteContentBackward"); } s(wk, "clear"); async function Ak(e, t) { return D0.call(this, !0, e, t); } s(Ak, "selectOptions"); async function Sk(e, t) { return D0.call(this, !1, e, t); } s(Sk, "deselectOptions"); async function D0(e, t, r) { if (!e && !t.multiple) throw tt().getElementError( "Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.", t, ); let n = Array.isArray(r) ? r : [r], a = Array.from(t.querySelectorAll('option, [role="option"]')), o = n .map((u) => { if (typeof u != "string" && a.includes(u)) return u; { let l = a.find((c) => c.value === u || c.innerHTML === u); if (l) return l; throw tt().getElementError( `Value "${String(u)}" not found in options`, t, ); } }) .filter((u) => !ln(u)); if (ln(t) || !o.length) return; let i = s((u) => { ((u.selected = e), this.dispatchUIEvent(t, "input", { bubbles: !0, cancelable: !1, composed: !0, }), this.dispatchUIEvent(t, "change")); }, "selectOption"); if (Je(t, "select")) if (t.multiple) for (let u of o) { let l = this.config.pointerEventsCheck === 0 ? !0 : ss(this, u); (l && (this.dispatchUIEvent(u, "pointerover"), this.dispatchUIEvent(t, "pointerenter"), this.dispatchUIEvent(u, "mouseover"), this.dispatchUIEvent(t, "mouseenter"), this.dispatchUIEvent(u, "pointermove"), this.dispatchUIEvent(u, "mousemove"), this.dispatchUIEvent(u, "pointerdown"), this.dispatchUIEvent(u, "mousedown")), Fn(t), l && (this.dispatchUIEvent(u, "pointerup"), this.dispatchUIEvent(u, "mouseup")), i(u), l && this.dispatchUIEvent(u, "click"), await ka(this.config)); } else if (o.length === 1) { let u = this.config.pointerEventsCheck === 0 ? !0 : ss(this, t); (u ? await this.click(t) : Fn(t), i(o[0]), u && (this.dispatchUIEvent(t, "pointerover"), this.dispatchUIEvent(t, "pointerenter"), this.dispatchUIEvent(t, "mouseover"), this.dispatchUIEvent(t, "mouseenter"), this.dispatchUIEvent(t, "pointerup"), this.dispatchUIEvent(t, "mouseup"), this.dispatchUIEvent(t, "click")), await ka(this.config)); } else throw tt().getElementError( "Cannot select multiple options on a non-multiple select", t, ); else if (t.getAttribute("role") === "listbox") for (let u of o) (await this.click(u), await this.unhover(u)); else throw tt().getElementError( "Cannot select options on elements that are neither select nor listbox elements", t, ); } s(D0, "selectOptionsBase"); async function xk( e, t, { skipClick: r = this.config.skipClick, skipAutoClose: n = this.config.skipAutoClose, initialSelectionStart: a, initialSelectionEnd: o, } = {}, ) { e.disabled || (r || (await this.click(e)), a !== void 0 && co(e, a, o ?? a), await this.keyboard(t), n || (await hk(this))); } s(xk, "type"); var Z_ = Symbol("files and value properties are mocked"); function el(e, t, r) { r ? Object.defineProperty(e, t, r) : delete e[t]; } s(el, "restoreProperty"); function Pk(e, t) { var r; (r = e[Z_]) === null || r === void 0 || r.restore(); let n = Object.getOwnPropertyDescriptor(e, "type"), a = Object.getOwnPropertyDescriptor(e, "value"), o = Object.getOwnPropertyDescriptor(e, "files"); function i() { (el(e, "type", n), el(e, "value", a), el(e, "files", o)); } (s(i, "restore"), (e[Z_] = { restore: i }), Object.defineProperties(e, { files: { configurable: !0, get: s(() => t, "get") }, value: { configurable: !0, get: s(() => (t.length ? `C:\\fakepath\\${t[0].name}` : ""), "get"), set(u) { if (u === "") i(); else { var l; a == null || (l = a.set) === null || l === void 0 || l.call(e, u); } }, }, type: { configurable: !0, get: s(() => "file", "get"), set(u) { u !== "file" && (i(), (e.type = u)); }, }, })); } s(Pk, "setFiles"); async function Rk(e, t) { let r = Je(e, "label") ? e.control : e; if (!r || !Je(r, "input", { type: "file" })) throw new TypeError( `The ${r === e ? "given" : "associated"} ${r?.tagName} element does not accept file uploads`, ); if (ln(e)) return; let n = (Array.isArray(t) ? t : [t]) .filter((o) => !this.config.applyAccept || Tk(o, r.accept)) .slice(0, r.multiple ? void 0 : 1), a = s(() => { var o; (n.length === ((o = r.files) === null || o === void 0 ? void 0 : o.length) && n.every((i, u) => { var l; return ( i === ((l = r.files) === null || l === void 0 ? void 0 : l.item(u)) ); })) || (Pk(r, wd(Rr(e), n)), this.dispatchUIEvent(r, "input"), this.dispatchUIEvent(r, "change")); }, "fileDialog"); (r.addEventListener("fileDialog", a), await this.click(e), r.removeEventListener("fileDialog", a)); } s(Rk, "upload"); function Ci(e) { return e.toLowerCase().replace(/(\.|\/)jpg\b/g, "$1jpeg"); } s(Ci, "normalize"); function Tk(e, t) { if (!t) return !0; let r = ["audio/*", "image/*", "video/*"]; return Ci(t) .trim() .split(/\s*,\s*/) .some((n) => n.startsWith(".") ? Ci(e.name).endsWith(n) : r.includes(n) ? Ci(e.type).startsWith(n.replace("*", "")) : Ci(e.type) === n, ); } s(Tk, "isAcceptableFile"); var eC = { click: rk, dblClick: nk, tripleClick: ak, hover: ok, unhover: ik, tab: sk, keyboard: pk, copy: yk, cut: gk, paste: bk, pointer: Ek, clear: wk, deselectOptions: Sk, selectOptions: Ak, type: xk, upload: Rk, }; function Ok(e) { return tt().asyncWrapper(e); } s(Ok, "wrapAsync"); var Dk = { applyAccept: !0, autoModify: !0, delay: 0, document: globalThis.document, keyboardMap: kW, pointerMap: qW, pointerEventsCheck: Zu.EachApiCall, skipAutoClose: !1, skipClick: !1, skipHover: !1, writeToClipboard: !1, advanceTimers: s(() => Promise.resolve(), "advanceTimers"), }, UW = { ...Dk, writeToClipboard: !0 }; function F0(e = {}, t = UW, r) { let n = jk(e, r, t); return { ...t, ...e, document: n }; } s(F0, "createConfig"); function Fk(e = {}) { let t = F0(e); (C0(t.document), _0(Rr(t.document).HTMLElement)); var r; let n = (r = t.document.defaultView) !== null && r !== void 0 ? r : globalThis.window; return (qN(n), Td(t).api); } s(Fk, "setupMain"); function Zt({ keyboardState: e, pointerState: t, ...r } = {}, n) { let a = F0(r, Dk, n); (C0(a.document), _0(Rr(a.document).HTMLElement)); var o; let i = (o = t ?? e) !== null && o !== void 0 ? o : new tk(); return { api: Td(a, i).api, system: i }; } s(Zt, "setupDirect"); function Ik(e) { return Td({ ...this.config, ...e }, this.system).api; } s(Ik, "setupSub"); function Nk(e, t) { function r(...n) { return ( po(e, Ar.Call), Ok(() => t.apply(e, n).then(async (a) => (await ka(e.config), a))) ); } return ( s(r, "method"), Object.defineProperty(r, "name", { get: s(() => t.name, "get") }), r ); } s(Nk, "wrapAndBindImpl"); function Td(e, t = new tk()) { let r = {}; return ( Object.assign(r, { config: e, dispatchEvent: E0.bind(r), dispatchUIEvent: Fj.bind(r), system: t, levelRefs: {}, ...eC, }), { instance: r, api: { ...Object.fromEntries( Object.entries(eC).map(([n, a]) => [n, Nk(r, a)]), ), setup: Ik.bind(r), }, } ); } s(Td, "createInstance"); function jk(e, t, r) { var n, a; return (a = (n = e.document) !== null && n !== void 0 ? n : t && qj(t)) !== null && a !== void 0 ? a : r.document; } s(jk, "getDocument"); var kk = {}; ur(kk, { clear: () => qk, click: () => Mk, copy: () => Bk, cut: () => Lk, dblClick: () => $k, deselectOptions: () => Uk, hover: () => Hk, keyboard: () => Vk, paste: () => Gk, pointer: () => zk, selectOptions: () => Wk, tab: () => Qk, tripleClick: () => Jk, type: () => Xk, unhover: () => Kk, upload: () => Yk, }); function qk(e) { return Zt().api.clear(e); } s(qk, "clear"); function Mk(e, t = {}) { return Zt(t, e).api.click(e); } s(Mk, "click"); function Bk(e = {}) { return Zt(e).api.copy(); } s(Bk, "copy"); function Lk(e = {}) { return Zt(e).api.cut(); } s(Lk, "cut"); function $k(e, t = {}) { return Zt(t).api.dblClick(e); } s($k, "dblClick"); function Uk(e, t, r = {}) { return Zt(r).api.deselectOptions(e, t); } s(Uk, "deselectOptions"); function Hk(e, t = {}) { return Zt(t).api.hover(e); } s(Hk, "hover"); async function Vk(e, t = {}) { let { api: r, system: n } = Zt(t); return r.keyboard(e).then(() => n); } s(Vk, "keyboard"); async function zk(e, t = {}) { let { api: r, system: n } = Zt(t); return r.pointer(e).then(() => n); } s(zk, "pointer"); function Gk(e, t) { return Zt(t).api.paste(e); } s(Gk, "paste"); function Wk(e, t, r = {}) { return Zt(r).api.selectOptions(e, t); } s(Wk, "selectOptions"); function Jk(e, t = {}) { return Zt(t).api.tripleClick(e); } s(Jk, "tripleClick"); function Xk(e, t, r = {}) { return Zt(r, e).api.type(e, t, r); } s(Xk, "type"); function Kk(e, t = {}) { let { api: r, system: n } = Zt(t); return (n.pointer.setMousePosition({ target: e }), r.unhover(e)); } s(Kk, "unhover"); function Yk(e, t, r = {}) { return Zt(r).api.upload(e, t); } s(Yk, "upload"); function Qk(e = {}) { return Zt().api.tab(e); } s(Qk, "tab"); var Zk = { ...kk, setup: Fk }, ry = zo( { ...cF }, { intercept: s( (e, t) => t[0] === "fireEvent" || e.startsWith("find") || e.startsWith("waitFor"), "intercept", ), }, ); ry.screen = new Proxy(ry.screen, { get(e, t, r) { return ( Mt.warn(uU` You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead. More info: https://storybook.js.org/docs/essentials/interactions `), Reflect.get(e, t, r) ); }, }); var { buildQueries: HW, configure: VW, createEvent: zW, fireEvent: GW, findAllByAltText: WW, findAllByDisplayValue: JW, findAllByLabelText: XW, findAllByPlaceholderText: KW, findAllByRole: YW, findAllByTestId: QW, findAllByText: ZW, findAllByTitle: eJ, findByAltText: tJ, findByDisplayValue: rJ, findByLabelText: nJ, findByPlaceholderText: aJ, findByRole: oJ, findByTestId: iJ, findByText: sJ, findByTitle: uJ, getAllByAltText: lJ, getAllByDisplayValue: cJ, getAllByLabelText: dJ, getAllByPlaceholderText: pJ, getAllByRole: fJ, getAllByTestId: hJ, getAllByText: mJ, getAllByTitle: yJ, getByAltText: gJ, getByDisplayValue: bJ, getByLabelText: vJ, getByPlaceholderText: EJ, getByRole: _J, getByTestId: CJ, getByText: wJ, getByTitle: AJ, getConfig: SJ, getDefaultNormalizer: xJ, getElementError: PJ, getNodeText: RJ, getQueriesForElement: TJ, getRoles: OJ, getSuggestedQuery: DJ, isInaccessible: FJ, logDOM: IJ, logRoles: NJ, prettyDOM: jJ, queries: kJ, queryAllByAltText: qJ, queryAllByAttribute: MJ, queryAllByDisplayValue: BJ, queryAllByLabelText: LJ, queryAllByPlaceholderText: $J, queryAllByRole: UJ, queryAllByTestId: HJ, queryAllByText: VJ, queryAllByTitle: zJ, queryByAltText: GJ, queryByAttribute: WJ, queryByDisplayValue: JJ, queryByLabelText: XJ, queryByPlaceholderText: KJ, queryByRole: YJ, queryByTestId: QJ, queryByText: ZJ, queryByTitle: eX, queryHelpers: tX, screen: rX, waitFor: nX, waitForElementToBeRemoved: aX, within: e2, prettyFormat: oX, } = ry, t2 = Zk, { userEvent: iX } = zo({ userEvent: Zk }, { intercept: !0 }), { expect: sX } = zo( { expect: sF }, { getKeys: s((e, t) => { if ("constructor" in e && e.constructor === X) { let r = ["assert", "__methods", "__flags", "_obj"], n = Object.keys(Object.getPrototypeOf(e)).filter( (a) => !r.includes(a), ); return t > 2 ? n : [...n, "not"]; } return "any" in e ? Object.keys(e).filter((r) => r !== "any") : Object.keys(e); }, "getKeys"), mutate: !0, intercept: s((e) => e !== "expect", "intercept"), }, ), uX = { mock: s(() => {}, "mock") }, tC = !1, lX = s((e) => { let { parameters: t } = e; t?.actions?.disable || tC || (Tv((r, n) => { let a = r.getMockName(); a !== "spy" && (!/^next\/.*::/.test(a) || [ "next/router::useRouter()", "next/navigation::useRouter()", "next/navigation::redirect", "next/cache::", "next/headers::cookies().set", "next/headers::cookies().delete", "next/headers::headers().set", "next/headers::headers().delete", ].some((o) => a.startsWith(o))) && ti(a)(n); }), (tC = !0)); }, "logActionsWhenMockCalled"), cX = [lX], rC = s(() => ({ ...MP, ...LP }), "default"), Xl = "backgrounds", dX = { light: { name: "light", value: "#F8F8F8" }, dark: { name: "dark", value: "#333" }, }, { document: $r } = globalThis, pX = s( () => globalThis?.matchMedia ? !!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches : !1, "isReduceMotionEnabled", ), nC = s((e) => { (Array.isArray(e) ? e : [e]).forEach(fX); }, "clearStyles"), fX = s((e) => { if (!$r) return; let t = $r.getElementById(e); t && t.parentElement && t.parentElement.removeChild(t); }, "clearStyle"), hX = s((e, t) => { if (!$r) return; let r = $r.getElementById(e); if (r) r.innerHTML !== t && (r.innerHTML = t); else { let n = $r.createElement("style"); (n.setAttribute("id", e), (n.innerHTML = t), $r.head.appendChild(n)); } }, "addGridStyle"), mX = s((e, t, r) => { if (!$r) return; let n = $r.getElementById(e); if (n) n.innerHTML !== t && (n.innerHTML = t); else { let a = $r.createElement("style"); (a.setAttribute("id", e), (a.innerHTML = t)); let o = `addon-backgrounds-grid${r ? `-docs-${r}` : ""}`, i = $r.getElementById(o); i ? i.parentElement?.insertBefore(a, i) : $r.head.appendChild(a); } }, "addBackgroundStyle"), yX = { cellSize: 100, cellAmount: 10, opacity: 0.8 }, aC = "addon-backgrounds", oC = "addon-backgrounds-grid", gX = pX() ? "" : "transition: background-color 0.3s;", bX = s((e, t) => { let { globals: r = {}, parameters: n = {}, viewMode: a, id: o } = t, { options: i = dX, disable: u, grid: l = yX } = n[Xl] || {}, c = r[Xl] || {}, d = typeof c == "string" ? c : c?.value, p = d ? i[d] : void 0, f = typeof p == "string" ? p : p?.value || "transparent", h = typeof c == "string" ? !1 : c.grid || !1, m = !!p && !u, y = a === "docs" ? `#anchor--${o} .docs-story` : ".sb-show-main", b = a === "docs" ? `#anchor--${o} .docs-story` : ".sb-show-main", g = n.layout === void 0 || n.layout === "padded", v = a === "docs" ? 20 : g ? 16 : 0, { cellAmount: x, cellSize: A, opacity: w, offsetX: C = v, offsetY: E = v, } = l, _ = a === "docs" ? `${aC}-docs-${o}` : `${aC}-color`, P = a === "docs" ? o : null; ea(() => { let F = ` ${y} { background: ${f} !important; ${gX} }`; if (!m) { nC(_); return; } mX(_, F, P); }, [y, _, P, m, f]); let D = a === "docs" ? `${oC}-docs-${o}` : `${oC}`; return ( ea(() => { if (!h) { nC(D); return; } let F = [ `${A * x}px ${A * x}px`, `${A * x}px ${A * x}px`, `${A}px ${A}px`, `${A}px ${A}px`, ].join(", "), L = ` ${b} { background-size: ${F} !important; background-position: ${C}px ${E}px, ${C}px ${E}px, ${C}px ${E}px, ${C}px ${E}px !important; background-blend-mode: difference !important; background-image: linear-gradient(rgba(130, 130, 130, ${w}) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 130, 130, ${w}) 1px, transparent 1px), linear-gradient(rgba(130, 130, 130, ${w / 2}) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 130, 130, ${w / 2}) 1px, transparent 1px) !important; } `; hX(D, L); }, [x, A, b, D, h, C, E, w]), e() ); }, "withBackgroundAndGrid"), vX = globalThis.FEATURES?.backgrounds ? [bX] : [], EX = { [Xl]: { grid: { cellSize: 20, opacity: 0.5, cellAmount: 5 }, disable: !1 }, }, _X = { [Xl]: { value: void 0, grid: !1 } }, iC = s( () => ({ decorators: vX, parameters: EX, initialGlobals: _X }), "default", ), { step: CX } = zo( { step: s(async (e, t, r) => t(r), "step") }, { intercept: !0 }, ), sC = s( () => ({ parameters: { throwPlayFunctionExceptions: !1 }, runStep: CX }), "default", ), Od = "storybook/highlight", wX = `${Od}/add`, AX = `${Od}/remove`, SX = `${Od}/reset`, xX = `${Od}/scroll-into-view`, uC = 2147483647, zn = 28, lC = { chevronLeft: [ "M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z", ], chevronRight: [ "M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z", ], info: [ "M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z", "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z", ], shareAlt: [ "M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z", "M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z", ], }, PX = "svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","), Ht = s((e, t = {}, r) => { let n = PX.includes(e) ? document.createElementNS("http://www.w3.org/2000/svg", e) : document.createElement(e); return ( Object.entries(t).forEach(([a, o]) => { /[A-Z]/.test(a) ? (a === "onClick" && (n.addEventListener("click", o), n.addEventListener("keydown", (i) => { (i.key === "Enter" || i.key === " ") && (i.preventDefault(), o()); })), a === "onMouseEnter" && n.addEventListener("mouseenter", o), a === "onMouseLeave" && n.addEventListener("mouseleave", o)) : n.setAttribute(a, o); }), r?.forEach((a) => { if (!(a == null || a === !1)) try { n.appendChild(a); } catch { n.appendChild(document.createTextNode(String(a))); } }), n ); }, "createElement"), Gs = s( (e) => lC[e] && Ht( "svg", { width: "14", height: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", }, lC[e].map((t) => Ht("path", { fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd", d: t, }), ), ), "createIcon", ), RX = s((e) => { if ("elements" in e) { let { elements: n, color: a, style: o } = e; return { id: void 0, priority: 0, selectors: n, styles: { outline: `2px ${o} ${a}`, outlineOffset: "2px", boxShadow: "0 0 0 6px rgba(255,255,255,0.6)", }, menu: void 0, }; } let { menu: t, ...r } = e; return { id: void 0, priority: 0, styles: { outline: "2px dashed #029cfd" }, ...r, menu: Array.isArray(t) ? (t.every(Array.isArray) ? t : [t]) : void 0, }; }, "normalizeOptions"), TX = s((e) => e instanceof Function, "isFunction"), ci = new Map(), pa = new Map(), Ws = new Map(), gn = s((e) => { let t = Symbol(); return ( pa.set(t, []), ci.set(t, e), { get: s(() => ci.get(t), "get"), set: s((r) => { let n = ci.get(t), a = TX(r) ? r(n) : r; a !== n && (ci.set(t, a), pa.get(t)?.forEach((o) => { (Ws.get(o)?.(), Ws.set(o, o(a))); })); }, "set"), subscribe: s( (r) => ( pa.get(t)?.push(r), () => { let n = pa.get(t); n && pa.set( t, n.filter((a) => a !== r), ); } ), "subscribe", ), teardown: s(() => { (pa.get(t)?.forEach((r) => { (Ws.get(r)?.(), Ws.delete(r)); }), pa.delete(t), ci.delete(t)); }, "teardown"), } ); }, "useStore"), cC = s((e) => { let t = document.getElementById("storybook-root"), r = new Map(); for (let n of e) { let { priority: a = 0 } = n; for (let o of n.selectors) { let i = [ ...document.querySelectorAll( `:is(${o}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`, ), ...(t?.querySelectorAll(o) || []), ]; for (let u of i) { let l = r.get(u); (!l || l.priority <= a) && r.set(u, { ...n, priority: a, selectors: Array.from(new Set((l?.selectors || []).concat(o))), }); } } } return r; }, "mapElements"), OX = s( (e) => Array.from(e.entries()) .map( ([ t, { selectors: r, styles: n, hoverStyles: a, focusStyles: o, menu: i, }, ]) => { let { top: u, left: l, width: c, height: d, } = t.getBoundingClientRect(), { position: p } = getComputedStyle(t); return { element: t, selectors: r, styles: n, hoverStyles: a, focusStyles: o, menu: i, top: p === "fixed" ? u : u + window.scrollY, left: p === "fixed" ? l : l + window.scrollX, width: c, height: d, }; }, ) .sort((t, r) => r.width * r.height - t.width * t.height), "mapBoxes", ), dC = s((e, t) => { let r = e.getBoundingClientRect(), { x: n, y: a } = t; return ( r?.top && r?.left && n >= r.left && n <= r.left + r.width && a >= r.top && a <= r.top + r.height ); }, "isOverMenu"), pC = s((e, t, r) => { if (!t || !r) return !1; let { left: n, top: a, width: o, height: i } = e; (i < zn && ((a = a - Math.round((zn - i) / 2)), (i = zn)), o < zn && ((n = n - Math.round((zn - o) / 2)), (o = zn)), t.style.position === "fixed" && ((n += window.scrollX), (a += window.scrollY))); let { x: u, y: l } = r; return u >= n && u <= n + o && l >= a && l <= a + i; }, "isTargeted"), DX = s((e, t, r = {}) => { let { x: n, y: a } = t, { margin: o = 5, topOffset: i = 0, centered: u = !1 } = r, { scrollX: l, scrollY: c, innerHeight: d, innerWidth: p } = window, f = Math.min( e.style.position === "fixed" ? a - c : a, d - e.clientHeight - o - i + c, ), h = u ? e.clientWidth / 2 : 0, m = e.style.position === "fixed" ? Math.max(Math.min(n - l, p - h - o), h + o) : Math.max(Math.min(n, p - h - o + l), h + o + l); Object.assign(e.style, { ...(m !== n && { left: `${m}px` }), ...(f !== a && { top: `${f}px` }), }); }, "keepInViewport"), fC = s((e) => { window.HTMLElement.prototype.hasOwnProperty("showPopover") && e.showPopover(); }, "showPopover"), FX = s((e) => { window.HTMLElement.prototype.hasOwnProperty("showPopover") && e.hidePopover(); }, "hidePopover"), IX = s( (e) => ({ top: e.top, left: e.left, width: e.width, height: e.height, selectors: e.selectors, element: { attributes: Object.fromEntries( Array.from(e.element.attributes).map((t) => [t.name, t.value]), ), localName: e.element.localName, tagName: e.element.tagName, outerHTML: e.element.outerHTML, }, }), "getEventDetails", ), _t = "storybook-highlights-menu", hC = "storybook-highlights-root", NX = "storybook-root", jX = s((e) => { if (globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED) return; globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED = !0; let { document: t } = globalThis, r = gn([]), n = gn(new Map()), a = gn([]), o = gn(), i = gn(), u = gn([]), l = gn([]), c = gn(), d = gn(), p = t.getElementById(hC); (r.subscribe(() => { p || ((p = Ht("div", { id: hC })), t.body.appendChild(p)); }), r.subscribe((E) => { let _ = t.getElementById(NX); if (!_) return; n.set(cC(E)); let P = new MutationObserver(() => n.set(cC(E))); return ( P.observe(_, { subtree: !0, childList: !0 }), () => { P.disconnect(); } ); }), n.subscribe((E) => { let _ = s( () => requestAnimationFrame(() => a.set(OX(E))), "updateBoxes", ), P = new ResizeObserver(_); (P.observe(t.body), Array.from(E.keys()).forEach((F) => P.observe(F))); let D = Array.from(t.body.querySelectorAll("*")).filter((F) => { let { overflow: L, overflowX: q, overflowY: T, } = window.getComputedStyle(F); return ["auto", "scroll"].some((k) => [L, q, T].includes(k)); }); return ( D.forEach((F) => F.addEventListener("scroll", _)), () => { (P.disconnect(), D.forEach((F) => F.removeEventListener("scroll", _))); } ); }), n.subscribe((E) => { let _ = Array.from(E.keys()).filter( ({ style: D }) => D.position === "sticky", ), P = s( () => requestAnimationFrame(() => { a.set((D) => D.map((F) => { if (_.includes(F.element)) { let { top: L, left: q } = F.element.getBoundingClientRect(); return { ...F, top: L + window.scrollY, left: q + window.scrollX, }; } return F; }), ); }), "updateBoxes", ); return ( t.addEventListener("scroll", P), () => t.removeEventListener("scroll", P) ); }), n.subscribe((E) => { u.set((_) => _.filter(({ element: P }) => E.has(P))); }), u.subscribe((E) => { E.length ? (d.set((_) => E.some((P) => P.element === _?.element) ? _ : void 0, ), c.set((_) => E.some((P) => P.element === _?.element) ? _ : void 0, )) : (d.set(void 0), c.set(void 0), o.set(void 0)); })); let f = new Map(new Map()); r.subscribe((E) => { (E.forEach(({ keyframes: _ }) => { if (_) { let P = f.get(_); (P || ((P = t.createElement("style")), P.setAttribute("data-highlight", "keyframes"), f.set(_, P), t.head.appendChild(P)), (P.innerHTML = _)); } }), f.forEach((_, P) => { E.some((D) => D.keyframes === P) || (_.remove(), f.delete(P)); })); }); let h = new Map(new Map()); (a.subscribe((E) => { (E.forEach((_) => { let P = h.get(_.element); if (p && !P) { let D = { popover: "manual", "data-highlight-dimensions": `w${_.width.toFixed(0)}h${_.height.toFixed(0)}`, "data-highlight-coordinates": `x${_.left.toFixed(0)}y${_.top.toFixed(0)}`, }; ((P = p.appendChild(Ht("div", D, [Ht("div")]))), h.set(_.element, P)); } }), h.forEach((_, P) => { E.some(({ element: D }) => D === P) || (_.remove(), h.delete(P)); })); }), a.subscribe((E) => { let _ = E.filter((D) => D.menu); if (!_.length) return; let P = s((D) => { requestAnimationFrame(() => { let F = t.getElementById(_t), L = { x: D.pageX, y: D.pageY }; if (F && !dC(F, L)) { let q = _.filter((T) => { let k = h.get(T.element); return pC(T, k, L); }); (o.set(q.length ? L : void 0), u.set(q)); } }); }, "onClick"); return ( t.addEventListener("click", P), () => t.removeEventListener("click", P) ); })); let m = s(() => { let E = t.getElementById(_t), _ = i.get(); !_ || (E && dC(E, _)) || l.set((P) => { let D = a.get().filter((T) => { let k = h.get(T.element); return pC(T, k, _); }), F = P.filter((T) => D.includes(T)), L = D.filter((T) => !P.includes(T)), q = P.length - F.length; return L.length || q ? [...F, ...L] : P; }); }, "updateHovered"); (i.subscribe(m), a.subscribe(m)); let y = s(() => { let E = d.get(), _ = E ? [E] : u.get(), P = _.length === 1 ? _[0] : c.get(), D = o.get() !== void 0; a.get().forEach((F) => { let L = h.get(F.element); if (L) { let q = P === F, T = D ? (P ? q : _.includes(F)) : l.get()?.includes(F); (Object.assign(L.style, { animation: "none", background: "transparent", border: "none", boxSizing: "border-box", outline: "none", outlineOffset: "0px", ...F.styles, ...(T ? F.hoverStyles : {}), ...(q ? F.focusStyles : {}), position: getComputedStyle(F.element).position === "fixed" ? "fixed" : "absolute", zIndex: uC - 10, top: `${F.top}px`, left: `${F.left}px`, width: `${F.width}px`, height: `${F.height}px`, margin: 0, padding: 0, cursor: F.menu && T ? "pointer" : "default", pointerEvents: F.menu ? "auto" : "none", display: "flex", alignItems: "center", justifyContent: "center", overflow: "visible", }), Object.assign(L.children[0].style, { width: "100%", height: "100%", minHeight: `${zn}px`, minWidth: `${zn}px`, boxSizing: "content-box", padding: L.style.outlineWidth || "0px", }), fC(L)); } }); }, "updateBoxStyles"); (a.subscribe(y), u.subscribe(y), l.subscribe(y), c.subscribe(y), d.subscribe(y)); let b = s(() => { if (!p) return; let E = t.getElementById(_t); if (E) E.innerHTML = ""; else { let F = { id: _t, popover: "manual" }; ((E = p.appendChild(Ht("div", F))), p.appendChild( Ht("style", {}, [ ` #${_t} { position: absolute; z-index: ${uC}; width: 300px; padding: 0px; margin: 15px 0 0 0; transform: translateX(-50%); font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; background: white; border: none; border-radius: 6px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1); color: #2E3438; } #${_t} ul { list-style: none; margin: 0; padding: 0; } #${_t} > ul { max-height: 300px; overflow-y: auto; padding: 4px 0; } #${_t} li { padding: 0 4px; margin: 0; } #${_t} li > :not(ul) { display: flex; padding: 8px; margin: 0; align-items: center; gap: 8px; border-radius: 4px; } #${_t} button { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; font-family: inherit; font-size: inherit; } #${_t} button:focus-visible { outline-color: #029CFD; } #${_t} button:hover { background: rgba(2, 156, 253, 0.07); color: #029CFD; cursor: pointer; } #${_t} li code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 16px; font-size: 11px; } #${_t} li svg { flex-shrink: 0; margin: 1px; color: #73828C; } #${_t} li > button:hover svg, #${_t} li > button:focus-visible svg { color: #029CFD; } #${_t} .element-list li svg { display: none; } #${_t} li.selectable svg, #${_t} li.selected svg { display: block; } #${_t} .menu-list { border-top: 1px solid rgba(38, 85, 115, 0.15); } #${_t} .menu-list > li:not(:last-child) { padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid rgba(38, 85, 115, 0.15); } #${_t} .menu-items, #${_t} .menu-items li { padding: 0; } #${_t} .menu-item { display: flex; } #${_t} .menu-item-content { display: flex; flex-direction: column; flex-grow: 1; } `, ]), )); } let _ = d.get(), P = _ ? [_] : u.get(); if ( (P.length && ((E.style.position = getComputedStyle(P[0].element).position === "fixed" ? "fixed" : "absolute"), E.appendChild( Ht( "ul", { class: "element-list" }, P.map((F) => { let L = P.length > 1 && !!F.menu?.some((k) => k.some( (I) => !I.selectors || I.selectors.some((W) => F.selectors.includes(W)), ), ), q = L ? { class: "selectable", onClick: s(() => d.set(F), "onClick"), onMouseEnter: s(() => c.set(F), "onMouseEnter"), onMouseLeave: s(() => c.set(void 0), "onMouseLeave"), } : _ ? { class: "selected", onClick: s(() => d.set(void 0), "onClick"), } : {}, T = L || _; return Ht("li", q, [ Ht(T ? "button" : "div", T ? { type: "button" } : {}, [ _ ? Gs("chevronLeft") : null, Ht("code", {}, [F.element.outerHTML]), L ? Gs("chevronRight") : null, ]), ]); }), ), )), d.get() || u.get().length === 1) ) { let F = d.get() || u.get()[0], L = F.menu?.filter((q) => q.some( (T) => !T.selectors || T.selectors.some((k) => F.selectors.includes(k)), ), ); L?.length && E.appendChild( Ht( "ul", { class: "menu-list" }, L.map((q) => Ht("li", {}, [ Ht( "ul", { class: "menu-items" }, q.map( ({ id: T, title: k, description: I, iconLeft: W, iconRight: Q, clickEvent: se, }) => { let H = se && (() => e.emit(se, T, IX(F))); return Ht("li", {}, [ Ht( H ? "button" : "div", H ? { class: "menu-item", type: "button", onClick: H, } : { class: "menu-item" }, [ W ? Gs(W) : null, Ht("div", { class: "menu-item-content" }, [ Ht(I ? "strong" : "span", {}, [k]), I && Ht("span", {}, [I]), ]), Q ? Gs(Q) : null, ], ), ]); }, ), ), ]), ), ), ); } let D = o.get(); D ? (Object.assign(E.style, { display: "block", left: `${E.style.position === "fixed" ? D.x - window.scrollX : D.x}px`, top: `${E.style.position === "fixed" ? D.y - window.scrollY : D.y}px`, }), fC(E), requestAnimationFrame(() => DX(E, D, { topOffset: 15, centered: !0 }), )) : (FX(E), Object.assign(E.style, { display: "none" })); }, "renderMenu"); (u.subscribe(b), d.subscribe(b)); let g = s((E) => { let _ = RX(E); r.set((P) => { let D = _.id ? P.filter((F) => F.id !== _.id) : P; return _.selectors?.length ? [...D, _] : D; }); }, "addHighlight"), v = s((E) => { E && r.set((_) => _.filter((P) => P.id !== E)); }, "removeHighlight"), x = s(() => { (r.set([]), n.set(new Map()), a.set([]), o.set(void 0), i.set(void 0), u.set([]), l.set([]), c.set(void 0), d.set(void 0)); }, "resetState"), A, w = s((E, _) => { let P = "scrollIntoView-highlight"; (clearTimeout(A), v(P)); let D = t.querySelector(E); if (!D) { console.warn(`Cannot scroll into view: ${E} not found`); return; } D.scrollIntoView({ behavior: "smooth", block: "center", ..._ }); let F = `kf-${Math.random().toString(36).substring(2, 15)}`; (r.set((L) => [ ...L, { id: P, priority: 1e3, selectors: [E], styles: { outline: "2px solid #1EA7FD", outlineOffset: "-1px", animation: `${F} 3s linear forwards`, }, keyframes: `@keyframes ${F} { 0% { outline: 2px solid #1EA7FD; } 20% { outline: 2px solid #1EA7FD00; } 40% { outline: 2px solid #1EA7FD; } 60% { outline: 2px solid #1EA7FD00; } 80% { outline: 2px solid #1EA7FD; } 100% { outline: 2px solid #1EA7FD00; } }`, }, ]), (A = setTimeout(() => v(P), 3500))); }, "scrollIntoView"), C = s((E) => { requestAnimationFrame(() => i.set({ x: E.pageX, y: E.pageY })); }, "onMouseMove"); (t.body.addEventListener("mousemove", C), e.on(wX, g), e.on(AX, v), e.on(SX, x), e.on(xX, w), e.on(Ra, ({ newPhase: E }) => { E === "loading" && x(); })); }, "useHighlights"); globalThis?.FEATURES?.highlight && jr?.ready && jr.ready().then(jX); var mC = s(() => ({}), "default"), kX = "measureEnabled"; function I0() { let e = Ae.document.documentElement, t = Math.max(e.scrollHeight, e.offsetHeight); return { width: Math.max(e.scrollWidth, e.offsetWidth), height: t }; } s(I0, "getDocumentWidthAndHeight"); function r2() { let e = Ae.document.createElement("canvas"); e.id = "storybook-addon-measure"; let t = e.getContext("2d"); sn(t != null); let { width: r, height: n } = I0(); return ( Kl(e, t, { width: r, height: n }), (e.style.position = "absolute"), (e.style.left = "0"), (e.style.top = "0"), (e.style.zIndex = "2147483647"), (e.style.pointerEvents = "none"), Ae.document.body.appendChild(e), { canvas: e, context: t, width: r, height: n } ); } s(r2, "createCanvas"); function Kl(e, t, { width: r, height: n }) { ((e.style.width = `${r}px`), (e.style.height = `${n}px`)); let a = Ae.window.devicePixelRatio; ((e.width = Math.floor(r * a)), (e.height = Math.floor(n * a)), t.scale(a, a)); } s(Kl, "setCanvasWidthAndHeight"); var Vt = {}; function n2() { Vt.canvas || (Vt = r2()); } s(n2, "init"); function N0() { Vt.context && Vt.context.clearRect(0, 0, Vt.width ?? 0, Vt.height ?? 0); } s(N0, "clear"); function a2(e) { (N0(), e(Vt.context)); } s(a2, "draw"); function o2() { (sn(Vt.canvas), sn(Vt.context), Kl(Vt.canvas, Vt.context, { width: 0, height: 0 })); let { width: e, height: t } = I0(); (Kl(Vt.canvas, Vt.context, { width: e, height: t }), (Vt.width = e), (Vt.height = t)); } s(o2, "rescale"); function i2() { Vt.canvas && (N0(), Vt.canvas.parentNode?.removeChild(Vt.canvas), (Vt = {})); } s(i2, "destroy"); var Ya = { margin: "#f6b26b", border: "#ffe599", padding: "#93c47d", content: "#6fa8dc", text: "#232020", }, Rn = 6; function ny(e, { x: t, y: r, w: n, h: a, r: o }) { ((t = t - n / 2), (r = r - a / 2), n < 2 * o && (o = n / 2), a < 2 * o && (o = a / 2), e.beginPath(), e.moveTo(t + o, r), e.arcTo(t + n, r, t + n, r + a, o), e.arcTo(t + n, r + a, t, r + a, o), e.arcTo(t, r + a, t, r, o), e.arcTo(t, r, t + n, r, o), e.closePath()); } s(ny, "roundedRect"); function s2( e, { padding: t, border: r, width: n, height: a, top: o, left: i }, ) { let u = n - r.left - r.right - t.left - t.right, l = a - t.top - t.bottom - r.top - r.bottom, c = i + r.left + t.left, d = o + r.top + t.top; return ( e === "top" ? (c += u / 2) : e === "right" ? ((c += u), (d += l / 2)) : e === "bottom" ? ((c += u / 2), (d += l)) : e === "left" ? (d += l / 2) : e === "center" && ((c += u / 2), (d += l / 2)), { x: c, y: d } ); } s(s2, "positionCoordinate"); function u2(e, t, { margin: r, border: n, padding: a }, o, i) { let u = s((f) => 0, "shift"), l = 0, c = 0, d = i ? 1 : 0.5, p = i ? o * 2 : 0; return ( e === "padding" ? (u = s((f) => a[f] * d + p, "shift")) : e === "border" ? (u = s((f) => a[f] + n[f] * d + p, "shift")) : e === "margin" && (u = s((f) => a[f] + n[f] + r[f] * d + p, "shift")), t === "top" ? (c = -u("top")) : t === "right" ? (l = u("right")) : t === "bottom" ? (c = u("bottom")) : t === "left" && (l = -u("left")), { offsetX: l, offsetY: c } ); } s(u2, "offset"); function l2(e, t) { return ( Math.abs(e.x - t.x) < Math.abs(e.w + t.w) / 2 && Math.abs(e.y - t.y) < Math.abs(e.h + t.h) / 2 ); } s(l2, "collide"); function c2(e, t, r) { return ( e === "top" ? (t.y = r.y - r.h - Rn) : e === "right" ? (t.x = r.x + r.w / 2 + Rn + t.w / 2) : e === "bottom" ? (t.y = r.y + r.h + Rn) : e === "left" && (t.x = r.x - r.w / 2 - Rn - t.w / 2), { x: t.x, y: t.y } ); } s(c2, "overlapAdjustment"); function j0(e, t, { x: r, y: n, w: a, h: o }, i) { return ( ny(e, { x: r, y: n, w: a, h: o, r: 3 }), (e.fillStyle = `${Ya[t]}dd`), e.fill(), (e.strokeStyle = Ya[t]), e.stroke(), (e.fillStyle = Ya.text), e.fillText(i, r, n), ny(e, { x: r, y: n, w: a, h: o, r: 3 }), (e.fillStyle = `${Ya[t]}dd`), e.fill(), (e.strokeStyle = Ya[t]), e.stroke(), (e.fillStyle = Ya.text), e.fillText(i, r, n), { x: r, y: n, w: a, h: o } ); } s(j0, "textWithRect"); function k0(e, t) { ((e.font = "600 12px monospace"), (e.textBaseline = "middle"), (e.textAlign = "center")); let r = e.measureText(t), n = r.actualBoundingBoxAscent + r.actualBoundingBoxDescent, a = r.width + Rn * 2, o = n + Rn * 2; return { w: a, h: o }; } s(k0, "configureText"); function d2(e, t, { type: r, position: n = "center", text: a }, o, i = !1) { let { x: u, y: l } = s2(n, t), { offsetX: c, offsetY: d } = u2(r, n, t, Rn + 1, i); ((u += c), (l += d)); let { w: p, h: f } = k0(e, a); if (o && l2({ x: u, y: l, w: p, h: f }, o)) { let h = c2(n, { x: u, y: l, w: p }, o); ((u = h.x), (l = h.y)); } return j0(e, r, { x: u, y: l, w: p, h: f }, a); } s(d2, "drawLabel"); function p2(e, { w: t, h: r }) { let n = t * 0.5 + Rn, a = r * 0.5 + Rn; return { offsetX: (e.x === "left" ? -1 : 1) * n, offsetY: (e.y === "top" ? -1 : 1) * a, }; } s(p2, "floatingOffset"); function f2(e, t, { type: r, text: n }) { let { floatingAlignment: a, extremities: o } = t, i = o[a.x], u = o[a.y], { w: l, h: c } = k0(e, n), { offsetX: d, offsetY: p } = p2(a, { w: l, h: c }); return ((i += d), (u += p), j0(e, r, { x: i, y: u, w: l, h: c }, n)); } s(f2, "drawFloatingLabel"); function no(e, t, r, n) { let a = []; r.forEach((o, i) => { let u = n && o.position === "center" ? f2(e, t, o) : d2(e, t, o, a[i - 1], n); a[i] = u; }); } s(no, "drawStack"); function h2(e, t, r, n) { let a = r.reduce( (o, i) => ( Object.prototype.hasOwnProperty.call(o, i.position) || (o[i.position] = []), o[i.position]?.push(i), o ), {}, ); (a.top && no(e, t, a.top, n), a.right && no(e, t, a.right, n), a.bottom && no(e, t, a.bottom, n), a.left && no(e, t, a.left, n), a.center && no(e, t, a.center, n)); } s(h2, "labelStacks"); var Dd = { margin: "#f6b26ba8", border: "#ffe599a8", padding: "#93c47d8c", content: "#6fa8dca8", }, yC = 30; function Er(e) { return parseInt(e.replace("px", ""), 10); } s(Er, "pxToNumber"); function va(e) { return Number.isInteger(e) ? e : e.toFixed(2); } s(va, "round"); function Fd(e) { return e.filter((t) => t.text !== 0 && t.text !== "0"); } s(Fd, "filterZeroValues"); function m2(e) { let t = { top: Ae.window.scrollY, bottom: Ae.window.scrollY + Ae.window.innerHeight, left: Ae.window.scrollX, right: Ae.window.scrollX + Ae.window.innerWidth, }, r = { top: Math.abs(t.top - e.top), bottom: Math.abs(t.bottom - e.bottom), left: Math.abs(t.left - e.left), right: Math.abs(t.right - e.right), }; return { x: r.left > r.right ? "left" : "right", y: r.top > r.bottom ? "top" : "bottom", }; } s(m2, "floatingAlignment"); function y2(e) { let t = Ae.getComputedStyle(e), { top: r, left: n, right: a, bottom: o, width: i, height: u, } = e.getBoundingClientRect(), { marginTop: l, marginBottom: c, marginLeft: d, marginRight: p, paddingTop: f, paddingBottom: h, paddingLeft: m, paddingRight: y, borderBottomWidth: b, borderTopWidth: g, borderLeftWidth: v, borderRightWidth: x, } = t; ((r = r + Ae.window.scrollY), (n = n + Ae.window.scrollX), (o = o + Ae.window.scrollY), (a = a + Ae.window.scrollX)); let A = { top: Er(l), bottom: Er(c), left: Er(d), right: Er(p) }, w = { top: Er(f), bottom: Er(h), left: Er(m), right: Er(y) }, C = { top: Er(g), bottom: Er(b), left: Er(v), right: Er(x) }, E = { top: r - A.top, bottom: o + A.bottom, left: n - A.left, right: a + A.right, }; return { margin: A, padding: w, border: C, top: r, left: n, bottom: o, right: a, width: i, height: u, extremities: E, floatingAlignment: m2(E), }; } s(y2, "measureElement"); function g2( e, { margin: t, width: r, height: n, top: a, left: o, bottom: i, right: u }, ) { let l = n + t.bottom + t.top; ((e.fillStyle = Dd.margin), e.fillRect(o, a - t.top, r, t.top), e.fillRect(u, a - t.top, t.right, l), e.fillRect(o, i, r, t.bottom), e.fillRect(o - t.left, a - t.top, t.left, l)); let c = [ { type: "margin", text: va(t.top), position: "top" }, { type: "margin", text: va(t.right), position: "right" }, { type: "margin", text: va(t.bottom), position: "bottom" }, { type: "margin", text: va(t.left), position: "left" }, ]; return Fd(c); } s(g2, "drawMargin"); function b2( e, { padding: t, border: r, width: n, height: a, top: o, left: i, bottom: u, right: l, }, ) { let c = n - r.left - r.right, d = a - t.top - t.bottom - r.top - r.bottom; ((e.fillStyle = Dd.padding), e.fillRect(i + r.left, o + r.top, c, t.top), e.fillRect(l - t.right - r.right, o + t.top + r.top, t.right, d), e.fillRect(i + r.left, u - t.bottom - r.bottom, c, t.bottom), e.fillRect(i + r.left, o + t.top + r.top, t.left, d)); let p = [ { type: "padding", text: t.top, position: "top" }, { type: "padding", text: t.right, position: "right" }, { type: "padding", text: t.bottom, position: "bottom" }, { type: "padding", text: t.left, position: "left" }, ]; return Fd(p); } s(b2, "drawPadding"); function v2( e, { border: t, width: r, height: n, top: a, left: o, bottom: i, right: u }, ) { let l = n - t.top - t.bottom; ((e.fillStyle = Dd.border), e.fillRect(o, a, r, t.top), e.fillRect(o, i - t.bottom, r, t.bottom), e.fillRect(o, a + t.top, t.left, l), e.fillRect(u - t.right, a + t.top, t.right, l)); let c = [ { type: "border", text: t.top, position: "top" }, { type: "border", text: t.right, position: "right" }, { type: "border", text: t.bottom, position: "bottom" }, { type: "border", text: t.left, position: "left" }, ]; return Fd(c); } s(v2, "drawBorder"); function E2( e, { padding: t, border: r, width: n, height: a, top: o, left: i }, ) { let u = n - r.left - r.right - t.left - t.right, l = a - t.top - t.bottom - r.top - r.bottom; return ( (e.fillStyle = Dd.content), e.fillRect(i + r.left + t.left, o + r.top + t.top, u, l), [{ type: "content", position: "center", text: `${va(u)} x ${va(l)}` }] ); } s(E2, "drawContent"); function _2(e) { return (t) => { if (e && t) { let r = y2(e), n = g2(t, r), a = b2(t, r), o = v2(t, r), i = E2(t, r), u = r.width <= yC * 3 || r.height <= yC; h2(t, r, [...i, ...a, ...o, ...n], u); } }; } s(_2, "drawBoxModel"); function C2(e) { a2(_2(e)); } s(C2, "drawSelectedElement"); var qX = s((e, t) => { let r = Ae.document.elementFromPoint(e, t), n = s((a) => { if (a && a.shadowRoot) { let o = a.shadowRoot.elementFromPoint(e, t); return a.isEqualNode(o) ? a : o.shadowRoot ? n(o) : o; } return a; }, "crawlShadows"); return n(r) || r; }, "deepElementFromPoint"), gC, Js = { x: 0, y: 0 }; function ay(e, t) { ((gC = qX(e, t)), C2(gC)); } s(ay, "findAndDrawElement"); var MX = s((e, t) => { let { measureEnabled: r } = t.globals || {}; return ( ea(() => { if (typeof globalThis.document > "u") return; let n = s((a) => { window.requestAnimationFrame(() => { (a.stopPropagation(), (Js.x = a.clientX), (Js.y = a.clientY)); }); }, "onPointerMove"); return ( globalThis.document.addEventListener("pointermove", n), () => { globalThis.document.removeEventListener("pointermove", n); } ); }, []), ea(() => { let n = s((o) => { window.requestAnimationFrame(() => { (o.stopPropagation(), ay(o.clientX, o.clientY)); }); }, "onPointerOver"), a = s(() => { window.requestAnimationFrame(() => { o2(); }); }, "onResize"); return ( t.viewMode === "story" && r && (globalThis.document.addEventListener("pointerover", n), n2(), globalThis.window.addEventListener("resize", a), ay(Js.x, Js.y)), () => { (globalThis.window.removeEventListener("resize", a), i2()); } ); }, [r, t.viewMode]), e() ); }, "withMeasure"), BX = globalThis.FEATURES?.measure ? [MX] : [], LX = { [kX]: !1 }, bC = s(() => ({ decorators: BX, initialGlobals: LX }), "default"), w2 = "outline", vC = s((e) => { (Array.isArray(e) ? e : [e]).forEach($X); }, "clearStyles"), $X = s((e) => { let t = typeof e == "string" ? e : e.join(""), r = Ae.document.getElementById(t); r && r.parentElement && r.parentElement.removeChild(r); }, "clearStyle"), UX = s((e, t) => { let r = Ae.document.getElementById(e); if (r) r.innerHTML !== t && (r.innerHTML = t); else { let n = Ae.document.createElement("style"); (n.setAttribute("id", e), (n.innerHTML = t), Ae.document.head.appendChild(n)); } }, "addOutlineStyles"); function A2(e) { return Qe` ${e} body { outline: 1px solid #2980b9 !important; } ${e} article { outline: 1px solid #3498db !important; } ${e} nav { outline: 1px solid #0088c3 !important; } ${e} aside { outline: 1px solid #33a0ce !important; } ${e} section { outline: 1px solid #66b8da !important; } ${e} header { outline: 1px solid #99cfe7 !important; } ${e} footer { outline: 1px solid #cce7f3 !important; } ${e} h1 { outline: 1px solid #162544 !important; } ${e} h2 { outline: 1px solid #314e6e !important; } ${e} h3 { outline: 1px solid #3e5e85 !important; } ${e} h4 { outline: 1px solid #449baf !important; } ${e} h5 { outline: 1px solid #c7d1cb !important; } ${e} h6 { outline: 1px solid #4371d0 !important; } ${e} main { outline: 1px solid #2f4f90 !important; } ${e} address { outline: 1px solid #1a2c51 !important; } ${e} div { outline: 1px solid #036cdb !important; } ${e} p { outline: 1px solid #ac050b !important; } ${e} hr { outline: 1px solid #ff063f !important; } ${e} pre { outline: 1px solid #850440 !important; } ${e} blockquote { outline: 1px solid #f1b8e7 !important; } ${e} ol { outline: 1px solid #ff050c !important; } ${e} ul { outline: 1px solid #d90416 !important; } ${e} li { outline: 1px solid #d90416 !important; } ${e} dl { outline: 1px solid #fd3427 !important; } ${e} dt { outline: 1px solid #ff0043 !important; } ${e} dd { outline: 1px solid #e80174 !important; } ${e} figure { outline: 1px solid #ff00bb !important; } ${e} figcaption { outline: 1px solid #bf0032 !important; } ${e} table { outline: 1px solid #00cc99 !important; } ${e} caption { outline: 1px solid #37ffc4 !important; } ${e} thead { outline: 1px solid #98daca !important; } ${e} tbody { outline: 1px solid #64a7a0 !important; } ${e} tfoot { outline: 1px solid #22746b !important; } ${e} tr { outline: 1px solid #86c0b2 !important; } ${e} th { outline: 1px solid #a1e7d6 !important; } ${e} td { outline: 1px solid #3f5a54 !important; } ${e} col { outline: 1px solid #6c9a8f !important; } ${e} colgroup { outline: 1px solid #6c9a9d !important; } ${e} button { outline: 1px solid #da8301 !important; } ${e} datalist { outline: 1px solid #c06000 !important; } ${e} fieldset { outline: 1px solid #d95100 !important; } ${e} form { outline: 1px solid #d23600 !important; } ${e} input { outline: 1px solid #fca600 !important; } ${e} keygen { outline: 1px solid #b31e00 !important; } ${e} label { outline: 1px solid #ee8900 !important; } ${e} legend { outline: 1px solid #de6d00 !important; } ${e} meter { outline: 1px solid #e8630c !important; } ${e} optgroup { outline: 1px solid #b33600 !important; } ${e} option { outline: 1px solid #ff8a00 !important; } ${e} output { outline: 1px solid #ff9619 !important; } ${e} progress { outline: 1px solid #e57c00 !important; } ${e} select { outline: 1px solid #e26e0f !important; } ${e} textarea { outline: 1px solid #cc5400 !important; } ${e} details { outline: 1px solid #33848f !important; } ${e} summary { outline: 1px solid #60a1a6 !important; } ${e} command { outline: 1px solid #438da1 !important; } ${e} menu { outline: 1px solid #449da6 !important; } ${e} del { outline: 1px solid #bf0000 !important; } ${e} ins { outline: 1px solid #400000 !important; } ${e} img { outline: 1px solid #22746b !important; } ${e} iframe { outline: 1px solid #64a7a0 !important; } ${e} embed { outline: 1px solid #98daca !important; } ${e} object { outline: 1px solid #00cc99 !important; } ${e} param { outline: 1px solid #37ffc4 !important; } ${e} video { outline: 1px solid #6ee866 !important; } ${e} audio { outline: 1px solid #027353 !important; } ${e} source { outline: 1px solid #012426 !important; } ${e} canvas { outline: 1px solid #a2f570 !important; } ${e} track { outline: 1px solid #59a600 !important; } ${e} map { outline: 1px solid #7be500 !important; } ${e} area { outline: 1px solid #305900 !important; } ${e} a { outline: 1px solid #ff62ab !important; } ${e} em { outline: 1px solid #800b41 !important; } ${e} strong { outline: 1px solid #ff1583 !important; } ${e} i { outline: 1px solid #803156 !important; } ${e} b { outline: 1px solid #cc1169 !important; } ${e} u { outline: 1px solid #ff0430 !important; } ${e} s { outline: 1px solid #f805e3 !important; } ${e} small { outline: 1px solid #d107b2 !important; } ${e} abbr { outline: 1px solid #4a0263 !important; } ${e} q { outline: 1px solid #240018 !important; } ${e} cite { outline: 1px solid #64003c !important; } ${e} dfn { outline: 1px solid #b4005a !important; } ${e} sub { outline: 1px solid #dba0c8 !important; } ${e} sup { outline: 1px solid #cc0256 !important; } ${e} time { outline: 1px solid #d6606d !important; } ${e} code { outline: 1px solid #e04251 !important; } ${e} kbd { outline: 1px solid #5e001f !important; } ${e} samp { outline: 1px solid #9c0033 !important; } ${e} var { outline: 1px solid #d90047 !important; } ${e} mark { outline: 1px solid #ff0053 !important; } ${e} bdi { outline: 1px solid #bf3668 !important; } ${e} bdo { outline: 1px solid #6f1400 !important; } ${e} ruby { outline: 1px solid #ff7b93 !important; } ${e} rt { outline: 1px solid #ff2f54 !important; } ${e} rp { outline: 1px solid #803e49 !important; } ${e} span { outline: 1px solid #cc2643 !important; } ${e} br { outline: 1px solid #db687d !important; } ${e} wbr { outline: 1px solid #db175b !important; }`; } s(A2, "outlineCSS"); var HX = s((e, t) => { let r = t.globals || {}, n = [!0, "true"].includes(r[w2]), a = t.viewMode === "docs", o = Eg(() => A2(a ? '[data-story-block="true"]' : ".sb-show-main"), [t]); return ( ea(() => { let i = a ? `addon-outline-docs-${t.id}` : "addon-outline"; return ( n ? UX(i, o) : vC(i), () => { vC(i); } ); }, [n, o, t]), e() ); }, "withOutline"), VX = globalThis.FEATURES?.outline ? [HX] : [], zX = { [w2]: !1 }, EC = s(() => ({ decorators: VX, initialGlobals: zX }), "default"), GX = s(({ parameters: e }) => { e?.test?.mockReset === !0 ? Iv() : e?.test?.clearMocks === !0 ? Fv() : e?.test?.restoreMocks !== !1 && Nv(); }, "resetAllMocksLoader"), oy = s((e, t = 0, r) => { if (t > 5 || e == null) return e; if (Aa(e)) return (r && e.mockName(r), e); if ( typeof e == "function" && "isAction" in e && e.isAction && !("implicit" in e && e.implicit) ) { let n = Ov(e); return (r && n.mockName(r), n); } if (Array.isArray(e)) { t++; for (let n = 0; n < e.length; n++) Object.getOwnPropertyDescriptor(e, n)?.writable && (e[n] = oy(e[n], t)); return e; } if (typeof e == "object" && e.constructor === Object) { t++; for (let [n, a] of Object.entries(e)) Object.getOwnPropertyDescriptor(e, n)?.writable && (e[n] = oy(a, t, n)); return e; } return e; }, "traverseArgs"), WX = s(({ initialArgs: e }) => { oy(e); }, "nameSpiesAndWrapActionsInSpies"), _C = !1, JX = s(async (e) => { globalThis.HTMLElement && e.canvasElement instanceof globalThis.HTMLElement && (e.canvas = e2(e.canvasElement)); let t = globalThis.window?.navigator?.clipboard; if (t) { ((e.userEvent = zo( { userEvent: t2.setup() }, { intercept: !0 }, ).userEvent), Object.defineProperty(globalThis.window.navigator, "clipboard", { get: s(() => t, "get"), configurable: !0, })); let r = HTMLElement.prototype.focus; _C || Object.defineProperties(HTMLElement.prototype, { focus: { configurable: !0, set: s((n) => { ((r = n), (_C = !0)); }, "set"), get: s(() => r, "get"), }, }); } }, "enhanceContext"), CC = s(() => ({ loaders: [GX, WX, JX] }), "default"), XX = "viewport", KX = { [XX]: { value: void 0, isRotated: !1 } }, wC = s(() => ({ initialGlobals: KX }), "default"); function q0() { return [ (bC.default ?? bC)(), (iC.default ?? iC)(), (mC.default ?? mC)(), (EC.default ?? EC)(), (wC.default ?? wC)(), (rC.default ?? rC)(), (sC.default ?? sC)(), (CC.default ?? CC)(), ]; } s(q0, "getCoreAnnotations"); function Id(e) { return ( e != null && typeof e == "object" && "_tag" in e && e?._tag === "Story" ); } s(Id, "isStory"); var S2 = s( (e) => e .toLowerCase() .replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, "-") .replace(/-+/g, "-") .replace(/^-+/, "") .replace(/-+$/, ""), "sanitize", ), AC = s((e, t) => { let r = S2(e); if (r === "") throw new Error( `Invalid ${t} '${e}', must include alphanumeric characters`, ); return r; }, "sanitizeSafe"), YX = s((e, t) => `${AC(e, "kind")}${t ? `--${AC(t, "name")}` : ""}`, "toId"), QX = s((e) => kP(e), "storyNameFromExport"); function iy(e, t) { return Array.isArray(t) ? t.includes(e) : e.match(t); } s(iy, "matches"); function Yl(e, { includeStories: t, excludeStories: r }) { return e !== "__esModule" && (!t || iy(e, t)) && (!r || !iy(e, r)); } s(Yl, "isExportStory"); var ZX = s((...e) => { let t = e.reduce( (r, n) => (n.startsWith("!") ? r.delete(n.slice(1)) : r.add(n), r), new Set(), ); return Array.from(t); }, "combineTags"); function x2() {} s(x2, "noop"); function sy(e) { return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t), ); } s(sy, "getSymbols"); function uy(e) { return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e); } s(uy, "getTag"); var eK = "[object RegExp]", tK = "[object String]", rK = "[object Number]", nK = "[object Boolean]", SC = "[object Arguments]", aK = "[object Symbol]", oK = "[object Date]", iK = "[object Map]", sK = "[object Set]", uK = "[object Array]", lK = "[object Function]", cK = "[object ArrayBuffer]", vp = "[object Object]", dK = "[object Error]", pK = "[object DataView]", fK = "[object Uint8Array]", hK = "[object Uint8ClampedArray]", mK = "[object Uint16Array]", yK = "[object Uint32Array]", gK = "[object BigUint64Array]", bK = "[object Int8Array]", vK = "[object Int16Array]", EK = "[object Int32Array]", _K = "[object BigInt64Array]", CK = "[object Float32Array]", wK = "[object Float64Array]"; function Hr(e) { if (!e || typeof e != "object") return !1; let t = Object.getPrototypeOf(e); return t === null || t === Object.prototype || Object.getPrototypeOf(t) === null ? Object.prototype.toString.call(e) === "[object Object]" : !1; } s(Hr, "isPlainObject"); function Bo(e, t) { let r = {}, n = Object.keys(e); for (let a = 0; a < n.length; a++) { let o = n[a], i = e[o]; r[o] = t(i, o, e); } return r; } s(Bo, "mapValues"); function P2(e, t) { let r = {}, n = Object.keys(e); for (let a = 0; a < n.length; a++) { let o = n[a], i = e[o]; t(i, o) && (r[o] = i); } return r; } s(P2, "pickBy"); function R2(e, t) { return e === t || (Number.isNaN(e) && Number.isNaN(t)); } s(R2, "eq"); function T2(e, t, r) { return ho(e, t, void 0, void 0, void 0, void 0, r); } s(T2, "isEqualWith"); function ho(e, t, r, n, a, o, i) { let u = i(e, t, r, n, a, o); if (u !== void 0) return u; if (typeof e == typeof t) switch (typeof e) { case "bigint": case "string": case "boolean": case "symbol": case "undefined": return e === t; case "number": return e === t || Object.is(e, t); case "function": return e === t; case "object": return _o(e, t, o, i); } return _o(e, t, o, i); } s(ho, "isEqualWithImpl"); function _o(e, t, r, n) { if (Object.is(e, t)) return !0; let a = uy(e), o = uy(t); if ((a === SC && (a = vp), o === SC && (o = vp), a !== o)) return !1; switch (a) { case tK: return e.toString() === t.toString(); case rK: { let l = e.valueOf(), c = t.valueOf(); return R2(l, c); } case nK: case oK: case aK: return Object.is(e.valueOf(), t.valueOf()); case eK: return e.source === t.source && e.flags === t.flags; case lK: return e === t; } r = r ?? new Map(); let i = r.get(e), u = r.get(t); if (i != null && u != null) return i === t; (r.set(e, t), r.set(t, e)); try { switch (a) { case iK: { if (e.size !== t.size) return !1; for (let [l, c] of e.entries()) if (!t.has(l) || !ho(c, t.get(l), l, e, t, r, n)) return !1; return !0; } case sK: { if (e.size !== t.size) return !1; let l = Array.from(e.values()), c = Array.from(t.values()); for (let d = 0; d < l.length; d++) { let p = l[d], f = c.findIndex((h) => ho(p, h, void 0, e, t, r, n)); if (f === -1) return !1; c.splice(f, 1); } return !0; } case uK: case fK: case hK: case mK: case yK: case gK: case bK: case vK: case EK: case _K: case CK: case wK: { if ( (typeof Buffer < "u" && Buffer.isBuffer(e) !== Buffer.isBuffer(t)) || e.length !== t.length ) return !1; for (let l = 0; l < e.length; l++) if (!ho(e[l], t[l], l, e, t, r, n)) return !1; return !0; } case cK: return e.byteLength !== t.byteLength ? !1 : _o(new Uint8Array(e), new Uint8Array(t), r, n); case pK: return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : _o(new Uint8Array(e), new Uint8Array(t), r, n); case dK: return e.name === t.name && e.message === t.message; case vp: { if (!(_o(e.constructor, t.constructor, r, n) || (Hr(e) && Hr(t)))) return !1; let l = [...Object.keys(e), ...sy(e)], c = [...Object.keys(t), ...sy(t)]; if (l.length !== c.length) return !1; for (let d = 0; d < l.length; d++) { let p = l[d], f = e[p]; if (!Object.hasOwn(t, p)) return !1; let h = t[p]; if (!ho(f, h, p, e, t, r, n)) return !1; } return !0; } default: return !1; } } finally { (r.delete(e), r.delete(t)); } } s(_o, "areObjectsEqual"); function O2(e, t) { return T2(e, t, x2); } s(O2, "isEqual"); var Ep = Lt(J1(), 1), ao = Symbol("incompatible"), ly = s((e, t) => { let r = t.type; if (e == null || !r || t.mapping) return e; switch (r.name) { case "string": return String(e); case "enum": return e; case "number": return Number(e); case "boolean": return String(e) === "true"; case "array": return !r.value || !Array.isArray(e) ? ao : e.reduce((n, a, o) => { let i = ly(a, { type: r.value }); return (i !== ao && (n[o] = i), n); }, new Array(e.length)); case "object": return typeof e == "string" || typeof e == "number" ? e : !r.value || typeof e != "object" ? ao : Object.entries(e).reduce((n, [a, o]) => { let i = ly(o, { type: r.value[a] }); return i === ao ? n : Object.assign(n, { [a]: i }); }, {}); default: return ao; } }, "map"), AK = s( (e, t) => Object.entries(e).reduce((r, [n, a]) => { if (!t[n]) return r; let o = ly(a, t[n]); return o === ao ? r : Object.assign(r, { [n]: o }); }, {}), "mapArgsToTypes", ), Ql = s( (e, t) => Array.isArray(e) && Array.isArray(t) ? t .reduce((r, n, a) => ((r[a] = Ql(e[a], t[a])), r), [...e]) .filter((r) => r !== void 0) : !Hr(e) || !Hr(t) ? t : Object.keys({ ...e, ...t }).reduce((r, n) => { if (n in t) { let a = Ql(e[n], t[n]); a !== void 0 && (r[n] = a); } else r[n] = e[n]; return r; }, {}), "combineArgs", ), SK = s( (e, t) => Object.entries(t).reduce((r, [n, { options: a }]) => { function o() { return (n in e && (r[n] = e[n]), r); } if ((s(o, "allowArg"), !a)) return o(); if (!Array.isArray(a)) return ( Mt.error(Qe` Invalid argType: '${n}.options' should be an array. More info: https://storybook.js.org/docs/api/arg-types `), o() ); if (a.some((p) => p && ["object", "function"].includes(typeof p))) return ( Mt.error(Qe` Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values. More info: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values `), o() ); let i = Array.isArray(e[n]), u = i && e[n].findIndex((p) => !a.includes(p)), l = i && u === -1; if (e[n] === void 0 || a.includes(e[n]) || l) return o(); let c = i ? `${n}[${u}]` : n, d = a .map((p) => (typeof p == "string" ? `'${p}'` : String(p))) .join(", "); return ( Mt.warn(`Received illegal value for '${c}'. Supported options: ${d}`), r ); }, {}), "validateOptions", ), ki = Symbol("Deeply equal"), Zl = s((e, t) => { if (typeof e != typeof t) return t; if (O2(e, t)) return ki; if (Array.isArray(e) && Array.isArray(t)) { let r = t.reduce((n, a, o) => { let i = Zl(e[o], a); return (i !== ki && (n[o] = i), n); }, new Array(t.length)); return t.length >= e.length ? r : r.concat(new Array(e.length - t.length).fill(void 0)); } return Hr(e) && Hr(t) ? Object.keys({ ...e, ...t }).reduce((r, n) => { let a = Zl(e?.[n], t?.[n]); return a === ki ? r : Object.assign(r, { [n]: a }); }, {}) : t; }, "deepDiff"), D2 = "UNTARGETED"; function F2({ args: e, argTypes: t }) { let r = {}; return ( Object.entries(e).forEach(([n, a]) => { let { target: o = D2 } = t[n] || {}; ((r[o] = r[o] || {}), (r[o][n] = a)); }), r ); } s(F2, "groupArgsByTarget"); function I2(e) { return (Object.keys(e).forEach((t) => e[t] === void 0 && delete e[t]), e); } s(I2, "deleteUndefined"); var N2 = class { constructor() { ((this.initialArgsByStoryId = {}), (this.argsByStoryId = {})); } get(t) { if (!(t in this.argsByStoryId)) throw new Error(`No args known for ${t} -- has it been rendered yet?`); return this.argsByStoryId[t]; } setInitial(t) { if (!this.initialArgsByStoryId[t.id]) ((this.initialArgsByStoryId[t.id] = t.initialArgs), (this.argsByStoryId[t.id] = t.initialArgs)); else if (this.initialArgsByStoryId[t.id] !== t.initialArgs) { let r = Zl(this.initialArgsByStoryId[t.id], this.argsByStoryId[t.id]); ((this.initialArgsByStoryId[t.id] = t.initialArgs), (this.argsByStoryId[t.id] = t.initialArgs), r !== ki && this.updateFromDelta(t, r)); } } updateFromDelta(t, r) { let n = SK(r, t.argTypes); this.argsByStoryId[t.id] = Ql(this.argsByStoryId[t.id], n); } updateFromPersisted(t, r) { let n = AK(r, t.argTypes); return this.updateFromDelta(t, n); } update(t, r) { if (!(t in this.argsByStoryId)) throw new Error(`No args known for ${t} -- has it been rendered yet?`); this.argsByStoryId[t] = I2({ ...this.argsByStoryId[t], ...r }); } }; s(N2, "ArgsStore"); var xK = N2, j2 = s( (e = {}) => Object.entries(e).reduce( (t, [r, { defaultValue: n }]) => (typeof n < "u" && (t[r] = n), t), {}, ), "getValuesFromArgTypes", ), k2 = class { constructor({ globals: t = {}, globalTypes: r = {} }) { this.set({ globals: t, globalTypes: r }); } set({ globals: t = {}, globalTypes: r = {} }) { let n = this.initialGlobals && Zl(this.initialGlobals, this.globals); this.allowedGlobalNames = new Set([...Object.keys(t), ...Object.keys(r)]); let a = j2(r); ((this.initialGlobals = { ...a, ...t }), (this.globals = this.initialGlobals), n && n !== ki && this.updateFromPersisted(n)); } filterAllowedGlobals(t) { return Object.entries(t).reduce( (r, [n, a]) => ( this.allowedGlobalNames.has(n) ? (r[n] = a) : St.warn( `Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`, ), r ), {}, ); } updateFromPersisted(t) { let r = this.filterAllowedGlobals(t); this.globals = { ...this.globals, ...r }; } get() { return this.globals; } update(t) { this.globals = { ...this.globals, ...this.filterAllowedGlobals(t) }; for (let r in t) t[r] === void 0 && (this.globals[r] = this.initialGlobals[r]); } }; s(k2, "GlobalsStore"); var PK = k2, RK = Lt(J1(), 1), TK = (0, RK.default)(1)((e) => Object.values(e).reduce( (t, r) => ((t[r.importPath] = t[r.importPath] || r), t), {}, ), ), q2 = class { constructor({ entries: t } = { v: 5, entries: {} }) { this.entries = t; } entryFromSpecifier(t) { let r = Object.values(this.entries); if (t === "*") return r[0]; if (typeof t == "string") return this.entries[t] ? this.entries[t] : r.find((o) => o.id.startsWith(t)); let { name: n, title: a } = t; return r.find((o) => o.name === n && o.title === a); } storyIdToEntry(t) { let r = this.entries[t]; if (!r) throw new Ux({ storyId: t }); return r; } importPathToEntry(t) { return TK(this.entries)[t]; } }; s(q2, "StoryIndexStore"); var OK = q2, DK = s((e) => (typeof e == "string" ? { name: e } : e), "normalizeType"), FK = s((e) => (typeof e == "string" ? { type: e } : e), "normalizeControl"), IK = s((e, t) => { let { type: r, control: n, ...a } = e, o = { name: t, ...a }; return ( r && (o.type = DK(r)), n ? (o.control = FK(n)) : n === !1 && (o.control = { disable: !0 }), o ); }, "normalizeInputType"), ec = s((e) => Bo(e, IK), "normalizeInputTypes"), Et = s((e) => (Array.isArray(e) ? e : e ? [e] : []), "normalizeArrays"), NK = Qe` CSF .story annotations deprecated; annotate story functions directly: - StoryFn.story.name => StoryFn.storyName - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. `; function us(e, t, r) { let n = t, a = typeof t == "function" ? t : null, { story: o } = n; o && (St.debug("deprecated story", o), rg(NK)); let i = QX(e), u = (typeof n != "function" && n.name) || n.storyName || o?.name || i, l = [...Et(n.decorators), ...Et(o?.decorators)], c = { ...o?.parameters, ...n.parameters }, d = { ...o?.args, ...n.args }, p = { ...o?.argTypes, ...n.argTypes }, f = [...Et(n.loaders), ...Et(o?.loaders)], h = [...Et(n.beforeEach), ...Et(o?.beforeEach)], m = [...Et(n.afterEach), ...Et(o?.afterEach)], { render: y, play: b, tags: g = [], globals: v = {} } = n, x = c.__id || YX(r.id, i); return { moduleExport: t, id: x, name: u, tags: g, decorators: l, parameters: c, args: d, argTypes: ec(p), loaders: f, beforeEach: h, afterEach: m, globals: v, ...(y && { render: y }), ...(a && { userStoryFn: a }), ...(b && { play: b }), }; } s(us, "normalizeStory"); function tc(e, t = e.title, r) { let { id: n, argTypes: a } = e; return { id: S2(n || t), ...e, title: t, ...(a && { argTypes: ec(a) }), parameters: { fileName: r, ...e.parameters }, }; } s(tc, "normalizeComponentAnnotations"); var jK = s((e) => { let { globals: t, globalTypes: r } = e; (t || r) && St.error( "Global args/argTypes can only be set globally", JSON.stringify({ globals: t, globalTypes: r }), ); }, "checkGlobals"), kK = s((e) => { let { options: t } = e; t?.storySort && St.error("The storySort option parameter can only be set globally"); }, "checkStorySort"), Xs = s((e) => { e && (jK(e), kK(e)); }, "checkDisallowedParameters"); function M2(e, t, r) { let { default: n, __namedExportsOrder: a, ...o } = e, i = Object.values(o)[0]; if (Id(i)) { let c = tc(i.meta.input, r, t); Xs(c.parameters); let d = { meta: c, stories: {}, moduleExports: e }; return ( Object.keys(o).forEach((p) => { if (Yl(p, c)) { let f = us(p, o[p].input, c); (Xs(f.parameters), (d.stories[f.id] = f)); } }), (d.projectAnnotations = i.meta.preview.composed), d ); } let u = tc(n, r, t); Xs(u.parameters); let l = { meta: u, stories: {}, moduleExports: e }; return ( Object.keys(o).forEach((c) => { if (Yl(c, u)) { let d = us(c, o[c], u); (Xs(d.parameters), (l.stories[d.id] = d)); } }), l ); } s(M2, "processCSFFile"); function B2(e) { return e != null && L2(e).includes("mount"); } s(B2, "mountDestructured"); function L2(e) { let t = e.toString().match(/[^(]*\(([^)]*)/); if (!t) return []; let r = cy(t[1]); if (!r.length) return []; let n = r[0]; return n.startsWith("{") && n.endsWith("}") ? cy(n.slice(1, -1).replace(/\s/g, "")).map((a) => a.replace(/:.*|=.*/g, ""), ) : []; } s(L2, "getUsedProps"); function cy(e) { let t = [], r = [], n = 0; for (let o = 0; o < e.length; o++) if (e[o] === "{" || e[o] === "[") r.push(e[o] === "{" ? "}" : "]"); else if (e[o] === r[r.length - 1]) r.pop(); else if (!r.length && e[o] === ",") { let i = e.substring(n, o).trim(); (i && t.push(i), (n = o + 1)); } let a = e.substring(n).trim(); return (a && t.push(a), t); } s(cy, "splitByComma"); function M0(e, t, r) { let n = r(e); return (a) => t(n, a); } s(M0, "decorateStory"); function B0({ componentId: e, title: t, kind: r, id: n, name: a, story: o, parameters: i, initialArgs: u, argTypes: l, ...c } = {}) { return c; } s(B0, "sanitizeStoryContextUpdate"); function L0(e, t) { let r = {}, n = s( (o) => (i) => { if (!r.value) throw new Error("Decorated function called without init"); return ((r.value = { ...r.value, ...B0(i) }), o(r.value)); }, "bindWithContext", ), a = t.reduce((o, i) => M0(o, i, n), e); return (o) => ((r.value = o), a(o)); } s(L0, "defaultDecorateStory"); var qa = s((...e) => { let t = {}, r = e.filter(Boolean), n = r.reduce( (a, o) => ( Object.entries(o).forEach(([i, u]) => { let l = a[i]; Array.isArray(u) || typeof l > "u" ? (a[i] = u) : Hr(u) && Hr(l) ? (t[i] = !0) : typeof u < "u" && (a[i] = u); }), a ), {}, ); return ( Object.keys(t).forEach((a) => { let o = r .filter(Boolean) .map((i) => i[a]) .filter((i) => typeof i < "u"); o.every((i) => Hr(i)) ? (n[a] = qa(...o)) : (n[a] = o[o.length - 1]); }), n ); }, "combineParameters"); function Nd(e, t, r) { let { moduleExport: n, id: a, name: o } = e || {}, i = U0(e, t, r), u = s(async (C) => { let E = {}; for (let _ of [Et(r.loaders), Et(t.loaders), Et(e.loaders)]) { if (C.abortSignal.aborted) return E; let P = await Promise.all(_.map((D) => D(C))); Object.assign(E, ...P); } return E; }, "applyLoaders"), l = s(async (C) => { let E = new Array(); for (let _ of [ ...Et(r.beforeEach), ...Et(t.beforeEach), ...Et(e.beforeEach), ]) { if (C.abortSignal.aborted) return E; let P = await _(C); P && E.push(P); } return E; }, "applyBeforeEach"), c = s(async (C) => { let E = [ ...Et(r.afterEach), ...Et(t.afterEach), ...Et(e.afterEach), ].reverse(); for (let _ of E) { if (C.abortSignal.aborted) return; await _(C); } }, "applyAfterEach"), d = s((C) => C.originalStoryFn(C.args, C), "undecoratedStoryFn"), { applyDecorators: p = L0, runStep: f } = r, h = [...Et(e?.decorators), ...Et(t?.decorators), ...Et(r?.decorators)], m = e?.userStoryFn || e?.render || t.render || r.render, y = xP(p)(d, h), b = s((C) => y(C), "unboundStoryFn"), g = e?.play ?? t?.play, v = B2(g); if (!m && !v) throw new cP({ id: a }); let x = s( (C) => async () => (await C.renderToCanvas(), C.canvas), "defaultMount", ), A = e.mount ?? t.mount ?? r.mount ?? x, w = r.testingLibraryRender; return { storyGlobals: {}, ...i, moduleExport: n, id: a, name: o, story: o, originalStoryFn: m, undecoratedStoryFn: d, unboundStoryFn: b, applyLoaders: u, applyBeforeEach: l, applyAfterEach: c, playFunction: g, runStep: f, mount: A, testingLibraryRender: w, renderToCanvas: r.renderToCanvas, usesMount: v, }; } s(Nd, "prepareStory"); function $0(e, t, r) { return { ...U0(void 0, e, t), moduleExport: r }; } s($0, "prepareMeta"); function U0(e, t, r) { let n = ["dev", "test"], a = Ae.DOCS_OPTIONS?.autodocs === !0 ? ["autodocs"] : [], o = ZX( ...n, ...a, ...(r.tags ?? []), ...(t.tags ?? []), ...(e?.tags ?? []), ), i = qa(r.parameters, t.parameters, e?.parameters), { argTypesEnhancers: u = [], argsEnhancers: l = [] } = r, c = qa(r.argTypes, t.argTypes, e?.argTypes); if (e) { let g = e?.userStoryFn || e?.render || t.render || r.render; i.__isArgsStory = g && g.length > 0; } let d = { ...r.args, ...t.args, ...e?.args }, p = { ...t.globals, ...e?.globals }, f = { componentId: t.id, title: t.title, kind: t.title, id: e?.id || t.id, name: e?.name || "__meta", story: e?.name || "__meta", component: t.component, subcomponents: t.subcomponents, tags: o, parameters: i, initialArgs: d, argTypes: c, storyGlobals: p, }; f.argTypes = u.reduce((g, v) => v({ ...f, argTypes: g }), f.argTypes); let h = { ...d }; f.initialArgs = [...l].reduce( (g, v) => ({ ...g, ...v({ ...f, initialArgs: g }) }), h, ); let { name: m, story: y, ...b } = f; return b; } s(U0, "preparePartialAnnotations"); function H0(e) { let { args: t } = e, r = { ...e, allArgs: void 0, argsByTarget: void 0 }; if (Ae.FEATURES?.argTypeTargetsV7) { let o = F2(e); r = { ...e, allArgs: e.args, argsByTarget: o, args: o[D2] || {} }; } let n = Object.entries(r.args).reduce((o, [i, u]) => { if (!r.argTypes[i]?.mapping) return ((o[i] = u), o); let l = s((c) => { let d = r.argTypes[i].mapping; return d && c in d ? d[c] : c; }, "mappingFn"); return ((o[i] = Array.isArray(u) ? u.map(l) : l(u)), o); }, {}), a = Object.entries(n).reduce((o, [i, u]) => { let l = r.argTypes[i] || {}; return (X7(l, n, r.globals) && (o[i] = u), o); }, {}); return { ...r, unmappedArgs: t, args: a }; } s(H0, "prepareContext"); var dy = s((e, t, r) => { let n = typeof e; switch (n) { case "boolean": case "string": case "number": case "function": case "symbol": return { name: n }; } return e ? r.has(e) ? (St.warn(Qe` We've detected a cycle in arg '${t}'. Args should be JSON-serializable. Consider using the mapping feature or fully custom args: - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args `), { name: "other", value: "cyclic object" }) : (r.add(e), Array.isArray(e) ? { name: "array", value: e.length > 0 ? dy(e[0], t, new Set(r)) : { name: "other", value: "unknown" }, } : { name: "object", value: Bo(e, (a) => dy(a, t, new Set(r))) }) : { name: "object", value: {} }; }, "inferType"), $2 = s((e) => { let { id: t, argTypes: r = {}, initialArgs: n = {} } = e, a = Bo(n, (i, u) => ({ name: u, type: dy(i, `${t}.${u}`, new Set()) })), o = Bo(r, (i, u) => ({ name: u })); return qa(a, o, r); }, "inferArgTypes"); $2.secondPass = !0; var xC = s( (e, t) => (Array.isArray(t) ? t.includes(e) : e.match(t)), "matches", ), U2 = s( (e, t, r) => !t && !r ? e : e && P2(e, (n, a) => { let o = n.name || a.toString(); return !!(!t || xC(o, t)) && (!r || !xC(o, r)); }), "filterArgTypes", ), qK = s((e, t, r) => { let { type: n, options: a } = e; if (n) { if (r.color && r.color.test(t)) { let o = n.name; if (o === "string") return { control: { type: "color" } }; o !== "enum" && St.warn( `Addon controls: Control of type color only supports string, received "${o}" instead`, ); } if (r.date && r.date.test(t)) return { control: { type: "date" } }; switch (n.name) { case "array": return { control: { type: "object" } }; case "boolean": return { control: { type: "boolean" } }; case "string": return { control: { type: "text" } }; case "number": return { control: { type: "number" } }; case "enum": { let { value: o } = n; return { control: { type: o?.length <= 5 ? "radio" : "select" }, options: o, }; } case "function": case "symbol": return null; default: return { control: { type: a ? "select" : "object" } }; } } }, "inferControl"), V0 = s((e) => { let { argTypes: t, parameters: { __isArgsStory: r, controls: { include: n = null, exclude: a = null, matchers: o = {}, } = {}, }, } = e; if (!r) return t; let i = U2(t, n, a), u = Bo(i, (l, c) => l?.type && qK(l, c.toString(), o)); return qa(u, i); }, "inferControls"); V0.secondPass = !0; function ls({ argTypes: e, globalTypes: t, argTypesEnhancers: r, decorators: n, loaders: a, beforeEach: o, afterEach: i, initialGlobals: u, ...l }) { return { ...(e && { argTypes: ec(e) }), ...(t && { globalTypes: ec(t) }), decorators: Et(n), loaders: Et(a), beforeEach: Et(o), afterEach: Et(i), argTypesEnhancers: [...(r || []), $2, V0], initialGlobals: u, ...l, }; } s(ls, "normalizeProjectAnnotations"); var MK = s( (e) => async () => { let t = []; for (let r of e) { let n = await r(); n && t.unshift(n); } return async () => { for (let r of t) await r(); }; }, "composeBeforeAllHooks", ); function z0(e) { return async (t, r, n) => { await e.reduceRight( (a, o) => async () => o(t, a, n), async () => r(n), )(); }; } s(z0, "composeStepRunners"); function Lo(e, t) { return e.map((r) => r.default?.[t] ?? r[t]).filter(Boolean); } s(Lo, "getField"); function Cn(e, t, r = {}) { return Lo(e, t).reduce((n, a) => { let o = Et(a); return r.reverseFileOrder ? [...o, ...n] : [...n, ...o]; }, []); } s(Cn, "getArrayField"); function wi(e, t) { return Object.assign({}, ...Lo(e, t)); } s(wi, "getObjectField"); function oo(e, t) { return Lo(e, t).pop(); } s(oo, "getSingletonField"); function Ma(e) { let t = Cn(e, "argTypesEnhancers"), r = Lo(e, "runStep"), n = Cn(e, "beforeAll"); return { parameters: qa(...Lo(e, "parameters")), decorators: Cn(e, "decorators", { reverseFileOrder: !(Ae.FEATURES?.legacyDecoratorFileOrder ?? !1), }), args: wi(e, "args"), argsEnhancers: Cn(e, "argsEnhancers"), argTypes: wi(e, "argTypes"), argTypesEnhancers: [ ...t.filter((a) => !a.secondPass), ...t.filter((a) => a.secondPass), ], initialGlobals: wi(e, "initialGlobals"), globalTypes: wi(e, "globalTypes"), loaders: Cn(e, "loaders"), beforeAll: MK(n), beforeEach: Cn(e, "beforeEach"), afterEach: Cn(e, "afterEach"), render: oo(e, "render"), renderToCanvas: oo(e, "renderToCanvas"), applyDecorators: oo(e, "applyDecorators"), runStep: z0(r), tags: Cn(e, "tags"), mount: oo(e, "mount"), testingLibraryRender: oo(e, "testingLibraryRender"), }; } s(Ma, "composeConfigs"); function G0() { try { return ( !!globalThis.__vitest_browser__ || !!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/) ); } catch { return !1; } } s(G0, "isTestEnvironment"); function jd(e = !0) { if (!("document" in globalThis && "createElement" in globalThis.document)) return () => {}; let t = document.createElement("style"); ((t.textContent = `*, *:before, *:after { animation: none !important; }`), document.head.appendChild(t)); let r = document.createElement("style"); return ( (r.textContent = `*, *:before, *:after { animation-delay: 0s !important; animation-direction: ${e ? "reverse" : "normal"} !important; animation-play-state: paused !important; transition: none !important; }`), document.head.appendChild(r), document.body.clientHeight, document.head.removeChild(t), () => { r.parentNode?.removeChild(r); } ); } s(jd, "pauseAnimations"); async function kd(e) { if ( !( "document" in globalThis && "getAnimations" in globalThis.document && "querySelectorAll" in globalThis.document ) ) return; let t = !1; await Promise.race([ new Promise((r) => { setTimeout(() => { let n = [globalThis.document, ...W0(globalThis.document)], a = s(async () => { if (t || e?.aborted) return; let o = n .flatMap((i) => i?.getAnimations?.() || []) .filter((i) => i.playState === "running" && !H2(i)); o.length > 0 && (await Promise.all(o.map((i) => i.finished)), await a()); }, "checkAnimationsFinished"); a().then(r); }, 100); }), new Promise((r) => setTimeout(() => { ((t = !0), r(void 0)); }, 5e3), ), ]); } s(kd, "waitForAnimations"); function W0(e) { return [e, ...e.querySelectorAll("*")].reduce( (t, r) => ( "shadowRoot" in r && r.shadowRoot && t.push(r.shadowRoot, ...W0(r.shadowRoot)), t ), [], ); } s(W0, "getShadowRoots"); function H2(e) { if ( e instanceof CSSAnimation && e.effect instanceof KeyframeEffect && e.effect.target ) { let t = getComputedStyle(e.effect.target, e.effect.pseudoElement), r = t.animationName?.split(", ").indexOf(e.animationName); return t.animationIterationCount.split(", ")[r] === "infinite"; } return !1; } s(H2, "isInfiniteAnimation"); var V2 = class { constructor() { this.reports = []; } async addReport(t) { this.reports.push(t); } }; s(V2, "ReporterAPI"); var J0 = V2; function X0(e, t, r) { return Id(e) ? { story: e.input, meta: e.meta.input, preview: e.meta.preview.composed } : { story: e, meta: t, preview: r }; } s(X0, "getCsfFactoryAnnotations"); function z2(e) { globalThis.defaultProjectAnnotations = e; } s(z2, "setDefaultProjectAnnotations"); var BK = "ComposedStory", LK = "Unnamed Story"; function G2(e) { return e ? Ma([e]) : {}; } s(G2, "extractAnnotation"); function W2(e) { let t = Array.isArray(e) ? e : [e]; return ( (globalThis.globalProjectAnnotations = Ma([ ...q0(), globalThis.defaultProjectAnnotations ?? {}, Ma(t.map(G2)), ])), globalThis.globalProjectAnnotations ?? {} ); } s(W2, "setProjectAnnotations"); var Gn = []; function K0(e, t, r, n, a) { if (e === void 0) throw new Error("Expected a story but received undefined."); t.title = t.title ?? BK; let o = tc(t), i = a || e.storyName || e.story?.name || e.name || LK, u = us(i, e, o), l = ls(Ma([n ?? globalThis.globalProjectAnnotations ?? {}, r ?? {}])), c = Nd(u, o, l), d = { ...j2(l.globalTypes), ...l.initialGlobals, ...c.storyGlobals }, p = new J0(), f = s(() => { let g = H0({ hooks: new gg(), globals: d, args: { ...c.initialArgs }, viewMode: "story", reporting: p, loaded: {}, abortSignal: new AbortController().signal, step: s((v, x) => c.runStep(v, x, g), "step"), canvasElement: null, canvas: {}, userEvent: {}, globalTypes: l.globalTypes, ...c, context: null, mount: null, }); return ( (g.parameters.__isPortableStory = !0), (g.context = g), c.renderToCanvas && (g.renderToCanvas = async () => { let v = await c.renderToCanvas?.( { componentId: c.componentId, title: c.title, id: c.id, name: c.name, tags: c.tags, showMain: s(() => {}, "showMain"), showError: s((x) => { throw new Error(`${x.title} ${x.description}`); }, "showError"), showException: s((x) => { throw x; }, "showException"), forceRemount: !0, storyContext: g, storyFn: s(() => c.unboundStoryFn(g), "storyFn"), unboundStoryFn: c.unboundStoryFn, }, g.canvasElement, ); v && Gn.push(v); }), (g.mount = c.mount(g)), g ); }, "initializeContext"), h, m = s(async (g) => { let v = f(); return ( (v.canvasElement ??= globalThis?.document?.body), h && (v.loaded = h.loaded), Object.assign(v, g), c.playFunction(v) ); }, "play"), y = s((g) => { let v = f(); return (Object.assign(v, g), K2(c, v)); }, "run"), b = c.playFunction ? m : void 0; return Object.assign( s(function (g) { let v = f(); return ( h && (v.loaded = h.loaded), (v.args = { ...v.initialArgs, ...g }), c.unboundStoryFn(v) ); }, "storyFn"), { id: c.id, storyName: i, load: s(async () => { for (let v of [...Gn].reverse()) await v(); Gn.length = 0; let g = f(); ((g.loaded = await c.applyLoaders(g)), Gn.push(...(await c.applyBeforeEach(g)).filter(Boolean)), (h = g)); }, "load"), globals: d, args: c.initialArgs, parameters: c.parameters, argTypes: c.argTypes, play: b, run: y, reporting: p, tags: c.tags, }, ); } s(K0, "composeStory"); var $K = s((e, t, r, n) => K0(e, t, r, {}, n), "defaultComposeStory"); function J2(e, t, r = $K) { let { default: n, __esModule: a, __namedExportsOrder: o, ...i } = e, u = n; return Object.entries(i).reduce((l, [c, d]) => { let { story: p, meta: f } = X0(d); return ( !u && f && (u = f), Yl(c, u) ? Object.assign(l, { [c]: r(p, u, t, c) }) : l ); }, {}); } s(J2, "composeStories"); function X2(e) { return e.extend({ mount: s(async ({ mount: t, page: r }, n) => { await n(async (a, ...o) => { if (!("__pw_type" in a) || ("__pw_type" in a && a.__pw_type !== "jsx")) throw new Error(Qe` Portable stories in Playwright CT only work when referencing JSX elements. Please use JSX format for your components such as: instead of: await mount(MyComponent, { props: { foo: 'bar' } }) do: await mount() More info: https://storybook.js.org/docs/api/portable-stories-playwright `); let { props: i, ...u } = a; await r.evaluate(async (c) => { let d = await globalThis.__pwUnwrapObject?.(c); return ("__pw_type" in d ? d.type : d)?.load?.(); }, u); let l = await t(a, ...o); return ( await r.evaluate(async (c) => { let d = await globalThis.__pwUnwrapObject?.(c), p = "__pw_type" in d ? d.type : d, f = document.querySelector("#root"); return p?.play?.({ canvasElement: f }); }, u), l ); }); }, "mount"), }); } s(X2, "createPlaywrightTest"); async function K2(e, t) { for (let o of [...Gn].reverse()) await o(); if (((Gn.length = 0), !t.canvasElement)) { let o = document.createElement("div"); (globalThis?.document?.body?.appendChild(o), (t.canvasElement = o), Gn.push(() => { globalThis?.document?.body?.contains(o) && globalThis?.document?.body?.removeChild(o); })); } if (((t.loaded = await e.applyLoaders(t)), t.abortSignal.aborted)) return; Gn.push(...(await e.applyBeforeEach(t)).filter(Boolean)); let r = e.playFunction, n = e.usesMount; if ((n || (await t.mount()), t.abortSignal.aborted)) return; r && (n || (t.mount = async () => { throw new mg({ playFunction: r.toString() }); }), await r(t)); let a; (G0() ? (a = jd()) : await kd(t.abortSignal), await e.applyAfterEach(t), await a?.()); } s(K2, "runStory"); var PC = 1e3, UK = 1e4, Y2 = class { constructor(t, r, n) { ((this.importFn = r), (this.storyIndex = new OK(t)), (this.projectAnnotations = ls(Ma([...q0(), n])))); let { initialGlobals: a, globalTypes: o } = this.projectAnnotations; ((this.args = new xK()), (this.userGlobals = new PK({ globals: a, globalTypes: o })), (this.hooks = {}), (this.cleanupCallbacks = {}), (this.processCSFFileWithCache = (0, Ep.default)(PC)(M2)), (this.prepareMetaWithCache = (0, Ep.default)(PC)($0)), (this.prepareStoryWithCache = (0, Ep.default)(UK)(Nd))); } setProjectAnnotations(t) { this.projectAnnotations = ls(t); let { initialGlobals: r, globalTypes: n } = t; this.userGlobals.set({ globals: r, globalTypes: n }); } async onStoriesChanged({ importFn: t, storyIndex: r }) { (t && (this.importFn = t), r && (this.storyIndex.entries = r.entries), this.cachedCSFFiles && (await this.cacheAllCSFFiles())); } async storyIdToEntry(t) { return this.storyIndex.storyIdToEntry(t); } async loadCSFFileByStoryId(t) { let { importPath: r, title: n } = this.storyIndex.storyIdToEntry(t), a = await this.importFn(r); return this.processCSFFileWithCache(a, r, n); } async loadAllCSFFiles() { let t = {}; return ( Object.entries(this.storyIndex.entries).forEach( ([r, { importPath: n }]) => { t[n] = r; }, ), ( await Promise.all( Object.entries(t).map(async ([r, n]) => ({ importPath: r, csfFile: await this.loadCSFFileByStoryId(n), })), ) ).reduce((r, { importPath: n, csfFile: a }) => ((r[n] = a), r), {}) ); } async cacheAllCSFFiles() { this.cachedCSFFiles = await this.loadAllCSFFiles(); } preparedMetaFromCSFFile({ csfFile: t }) { let r = t.meta; return this.prepareMetaWithCache( r, this.projectAnnotations, t.moduleExports.default, ); } async loadStory({ storyId: t }) { let r = await this.loadCSFFileByStoryId(t); return this.storyFromCSFFile({ storyId: t, csfFile: r }); } storyFromCSFFile({ storyId: t, csfFile: r }) { let n = r.stories[t]; if (!n) throw new oP({ storyId: t }); let a = r.meta, o = this.prepareStoryWithCache( n, a, r.projectAnnotations ?? this.projectAnnotations, ); return ( this.args.setInitial(o), (this.hooks[o.id] = this.hooks[o.id] || new gg()), o ); } componentStoriesFromCSFFile({ csfFile: t }) { return Object.keys(this.storyIndex.entries) .filter((r) => !!t.stories[r]) .map((r) => this.storyFromCSFFile({ storyId: r, csfFile: t })); } async loadEntry(t) { let r = await this.storyIdToEntry(t), n = r.type === "docs" ? r.storiesImports : [], [a, ...o] = await Promise.all([ this.importFn(r.importPath), ...n.map((i) => { let u = this.storyIndex.importPathToEntry(i); return this.loadCSFFileByStoryId(u.id); }), ]); return { entryExports: a, csfFiles: o }; } getStoryContext(t, { forceInitialArgs: r = !1 } = {}) { let n = this.userGlobals.get(), { initialGlobals: a } = this.userGlobals, o = new J0(); return H0({ ...t, args: r ? t.initialArgs : this.args.get(t.id), initialGlobals: a, globalTypes: this.projectAnnotations.globalTypes, userGlobals: n, reporting: o, globals: { ...n, ...t.storyGlobals }, hooks: this.hooks[t.id], }); } addCleanupCallbacks(t, ...r) { this.cleanupCallbacks[t.id] = (this.cleanupCallbacks[t.id] || []).concat( r, ); } async cleanupStory(t) { this.hooks[t.id].clean(); let r = this.cleanupCallbacks[t.id]; if (r) for (let n of [...r].reverse()) await n(); delete this.cleanupCallbacks[t.id]; } extract(t = { includeDocsOnly: !1 }) { let { cachedCSFFiles: r } = this; if (!r) throw new Gx(); return Object.entries(this.storyIndex.entries).reduce( (n, [a, { type: o, importPath: i }]) => { if (o === "docs") return n; let u = r[i], l = this.storyFromCSFFile({ storyId: a, csfFile: u }); return ( (!t.includeDocsOnly && l.parameters.docsOnly) || (n[a] = Object.entries(l).reduce( (c, [d, p]) => d === "moduleExport" || typeof p == "function" ? c : Array.isArray(p) ? Object.assign(c, { [d]: p.slice().sort() }) : Object.assign(c, { [d]: p }), { args: l.initialArgs, globals: { ...this.userGlobals.initialGlobals, ...this.userGlobals.globals, ...l.storyGlobals, }, }, )), n ); }, {}, ); } }; s(Y2, "StoryStore"); var Q2 = Y2; function Z2(e) { return e.startsWith("\\\\?\\") ? e : e.replace(/\\/g, "/"); } s(Z2, "slash"); var HK = s((e) => { if (e.length === 0) return e; let t = e[e.length - 1], r = t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i, ""); if (e.length === 1) return [r]; let n = e[e.length - 2]; return r && n && r.toLowerCase() === n.toLowerCase() ? [...e.slice(0, -2), r] : r && (/^(story|stories)([.][^.]+)$/i.test(t) || /^index$/i.test(r)) ? e.slice(0, -1) : [...e.slice(0, -1), r]; }, "sanitize"); function py(e) { return e .flatMap((t) => t.split("/")) .filter(Boolean) .join("/"); } s(py, "pathJoin"); var eq = s((e, t, r) => { let { directory: n, importPathMatcher: a, titlePrefix: o = "" } = t || {}; typeof e == "number" && Mt.warn(Qe` CSF Auto-title received a numeric fileName. This typically happens when webpack is mis-configured in production mode. To force webpack to produce filenames, set optimization.moduleIds = "named" in your webpack config. `); let i = Z2(String(e)); if (a.exec(i)) { if (!r) { let u = i.replace(n, ""), l = py([o, u]).split("/"); return ((l = HK(l)), l.join("/")); } return o ? py([o, r]) : r; } }, "userOrAutoTitleFromSpecifier"), VK = s((e, t, r) => { for (let n = 0; n < t.length; n += 1) { let a = eq(e, t[n], r); if (a) return a; } return r || void 0; }, "userOrAutoTitle"), RC = /\s*\/\s*/, zK = s( (e = {}) => (t, r) => { if (t.title === r.title && !e.includeNames) return 0; let n = e.method || "configure", a = e.order || [], o = t.title.trim().split(RC), i = r.title.trim().split(RC); e.includeNames && (o.push(t.name), i.push(r.name)); let u = 0; for (; o[u] || i[u]; ) { if (!o[u]) return -1; if (!i[u]) return 1; let l = o[u], c = i[u]; if (l !== c) { let p = a.indexOf(l), f = a.indexOf(c), h = a.indexOf("*"); return p !== -1 || f !== -1 ? (p === -1 && (h !== -1 ? (p = h) : (p = a.length)), f === -1 && (h !== -1 ? (f = h) : (f = a.length)), p - f) : n === "configure" ? 0 : l.localeCompare(c, e.locales ? e.locales : void 0, { numeric: !0, sensitivity: "accent", }); } let d = a.indexOf(l); (d === -1 && (d = a.indexOf("*")), (a = d !== -1 && Array.isArray(a[d + 1]) ? a[d + 1] : []), (u += 1)); } return 0; }, "storySort", ), GK = s((e, t, r) => { if (t) { let n; (typeof t == "function" ? (n = t) : (n = zK(t)), e.sort(n)); } else e.sort((n, a) => r.indexOf(n.importPath) - r.indexOf(a.importPath)); return e; }, "sortStoriesCommon"), WK = s((e, t, r) => { try { return GK(e, t, r); } catch (n) { throw new Error(Qe` Error sorting stories with sort parameter ${t}: > ${n.message} Are you using a V6-style sort function in V7 mode? More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort `); } }, "sortStoriesV7"), qd = new Error("prepareAborted"), { AbortController: TC } = globalThis; function fy(e) { try { let { name: t = "Error", message: r = String(e), stack: n } = e; return { name: t, message: r, stack: n }; } catch { return { name: "Error", message: String(e) }; } } s(fy, "serializeError"); var tq = class { constructor(t, r, n, a, o, i, u = { autoplay: !0, forceInitialArgs: !1 }, l) { ((this.channel = t), (this.store = r), (this.renderToScreen = n), (this.callbacks = a), (this.id = o), (this.viewMode = i), (this.renderOptions = u), (this.type = "story"), (this.notYetRendered = !0), (this.rerenderEnqueued = !1), (this.disableKeyListeners = !1), (this.teardownRender = s(() => {}, "teardownRender")), (this.torndown = !1), (this.abortController = new TC()), (this.renderId = Date.now()), l && ((this.story = l), (this.phase = "preparing"))); } async runPhase(t, r, n) { ((this.phase = r), this.channel.emit(Ra, { newPhase: this.phase, renderId: this.renderId, storyId: this.id, }), n && (await n(), this.checkIfAborted(t))); } checkIfAborted(t) { return t.aborted ? ((this.phase = "aborted"), this.channel.emit(Ra, { newPhase: this.phase, renderId: this.renderId, storyId: this.id, }), !0) : !1; } async prepare() { if ( (await this.runPhase( this.abortController.signal, "preparing", async () => { this.story = await this.store.loadStory({ storyId: this.id }); }, ), this.abortController.signal.aborted) ) throw (await this.store.cleanupStory(this.story), qd); } isEqual(t) { return !!(this.id === t.id && this.story && this.story === t.story); } isPreparing() { return ["preparing"].includes(this.phase); } isPending() { return [ "loading", "beforeEach", "rendering", "playing", "afterEach", ].includes(this.phase); } async renderToElement(t) { return ( (this.canvasElement = t), this.render({ initial: !0, forceRemount: !0 }) ); } storyContext() { if (!this.story) throw new Error("Cannot call storyContext before preparing"); let { forceInitialArgs: t } = this.renderOptions; return this.store.getStoryContext(this.story, { forceInitialArgs: t }); } async render({ initial: t = !1, forceRemount: r = !1 } = {}) { let { canvasElement: n } = this; if (!this.story) throw new Error("cannot render when not prepared"); let a = this.story; if (!n) throw new Error("cannot render when canvasElement is unset"); let { id: o, componentId: i, title: u, name: l, tags: c, applyLoaders: d, applyBeforeEach: p, applyAfterEach: f, unboundStoryFn: h, playFunction: m, runStep: y, } = a; r && !t && (this.cancelRender(), (this.abortController = new TC())); let b = this.abortController.signal, g = !1, v = a.usesMount; try { let x = { ...this.storyContext(), viewMode: this.viewMode, abortSignal: b, canvasElement: n, loaded: {}, step: s((q, T) => y(q, T, x), "step"), context: null, canvas: {}, userEvent: {}, renderToCanvas: s(async () => { let q = await this.renderToScreen(A, n); ((this.teardownRender = q || (() => {})), (g = !0)); }, "renderToCanvas"), mount: s(async (...q) => { this.callbacks.showStoryDuringRender?.(); let T = null; return ( await this.runPhase(b, "rendering", async () => { T = await a.mount(x)(...q); }), v && (await this.runPhase(b, "playing")), T ); }, "mount"), }; x.context = x; let A = { componentId: i, title: u, kind: u, id: o, name: l, story: l, tags: c, ...this.callbacks, showError: s( (q) => ((this.phase = "errored"), this.callbacks.showError(q)), "showError", ), showException: s( (q) => ((this.phase = "errored"), this.callbacks.showException(q)), "showException", ), forceRemount: r || this.notYetRendered, storyContext: x, storyFn: s(() => h(x), "storyFn"), unboundStoryFn: h, }; if ( (await this.runPhase(b, "loading", async () => { x.loaded = await d(x); }), b.aborted) ) return; let w = await p(x); if ( (this.store.addCleanupCallbacks(a, ...w), this.checkIfAborted(b) || (!g && !v && (await x.mount()), (this.notYetRendered = !1), b.aborted)) ) return; let C = this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors === !0, E = new Set(), _ = s((q) => { q.error && E.add(q.error); }, "onError"), P = s((q) => { q.reason && E.add(q.reason); }, "onUnhandledRejection"); if (this.renderOptions.autoplay && r && m && this.phase !== "errored") { (window?.addEventListener?.("error", _), window?.addEventListener?.("unhandledrejection", P), (this.disableKeyListeners = !0)); try { if ( (v ? await m(x) : ((x.mount = async () => { throw new mg({ playFunction: m.toString() }); }), await this.runPhase(b, "playing", async () => m(x))), !g) ) throw new pP(); (this.checkIfAborted(b), !C && E.size > 0 ? await this.runPhase(b, "errored") : await this.runPhase(b, "played")); } catch (q) { if ( (this.callbacks.showStoryDuringRender?.(), await this.runPhase(b, "errored", async () => { this.channel.emit(rS, fy(q)); }), this.story.parameters.throwPlayFunctionExceptions !== !1) ) throw q; console.error(q); } if ( (!C && E.size > 0 && this.channel.emit(nS, Array.from(E).map(fy)), (this.disableKeyListeners = !1), window?.removeEventListener?.("unhandledrejection", P), window?.removeEventListener?.("error", _), b.aborted) ) return; } (await this.runPhase(b, "completing", async () => { G0() ? this.store.addCleanupCallbacks(a, jd()) : await kd(b); }), await this.runPhase(b, "completed", async () => { this.channel.emit(cl, o); }), this.phase !== "errored" && (await this.runPhase(b, "afterEach", async () => { await f(x); }))); let D = !C && E.size > 0, F = x.reporting.reports.some((q) => q.status === "failed"), L = D || F; await this.runPhase(b, "finished", async () => this.channel.emit(Sh, { storyId: o, status: L ? "error" : "success", reporters: x.reporting.reports, }), ); } catch (x) { ((this.phase = "errored"), this.callbacks.showException(x), await this.runPhase(b, "finished", async () => this.channel.emit(Sh, { storyId: o, status: "error", reporters: [] }), )); } this.rerenderEnqueued && ((this.rerenderEnqueued = !1), this.render()); } async rerender() { if (this.isPending() && this.phase !== "playing") this.rerenderEnqueued = !0; else return this.render(); } async remount() { return (await this.teardown(), this.render({ forceRemount: !0 })); } cancelRender() { this.abortController.abort(); } cancelPlayFunction() { this.phase === "playing" && (this.abortController.abort(), this.runPhase(this.abortController.signal, "aborted")); } async teardown() { ((this.torndown = !0), this.cancelRender(), this.story && (await this.store.cleanupStory(this.story))); for (let t = 0; t < 3; t += 1) { if (!this.isPending()) { await this.teardownRender(); return; } await new Promise((r) => setTimeout(r, 0)); } (window?.location?.reload?.(), await new Promise(() => {})); } }; s(tq, "StoryRender"); var hy = tq, { fetch: JK } = Ae, XK = "./index.json", rq = class { constructor(t, r, n = jr.getChannel(), a = !0) { ((this.importFn = t), (this.getProjectAnnotations = r), (this.channel = n), (this.storyRenders = []), (this.storeInitializationPromise = new Promise((o, i) => { ((this.resolveStoreInitializationPromise = o), (this.rejectStoreInitializationPromise = i)); })), a && this.initialize()); } get storyStore() { return new Proxy( {}, { get: s((t, r) => { if (this.storyStoreValue) return ( rg( "Accessing the Story Store is deprecated and will be removed in 9.0", ), this.storyStoreValue[r] ); throw new sP(); }, "get"), }, ); } async initialize() { this.setupListeners(); try { let t = await this.getProjectAnnotationsOrRenderError(); (await this.runBeforeAllHook(t), await this.initializeWithProjectAnnotations(t)); } catch (t) { this.rejectStoreInitializationPromise(t); } } ready() { return this.storeInitializationPromise; } setupListeners() { (this.channel.on(cS, this.onStoryIndexChanged.bind(this)), this.channel.on(eg, this.onUpdateGlobals.bind(this)), this.channel.on(tg, this.onUpdateArgs.bind(this)), this.channel.on(bS, this.onRequestArgTypesInfo.bind(this)), this.channel.on(Qy, this.onResetArgs.bind(this)), this.channel.on(Yy, this.onForceReRender.bind(this)), this.channel.on(ll, this.onForceRemount.bind(this)), this.channel.on(mS, this.onStoryHotUpdated.bind(this))); } async getProjectAnnotationsOrRenderError() { try { let t = await this.getProjectAnnotations(); if (((this.renderToCanvas = t.renderToCanvas), !this.renderToCanvas)) throw new Jx(); return t; } catch (t) { throw (this.renderPreviewEntryError("Error reading preview.js:", t), t); } } async initializeWithProjectAnnotations(t) { this.projectAnnotationsBeforeInitialization = t; try { let r = await this.getStoryIndexFromServer(); return this.initializeWithStoryIndex(r); } catch (r) { throw ( this.renderPreviewEntryError("Error loading story index:", r), r ); } } async runBeforeAllHook(t) { try { (await this.beforeAllCleanup?.(), (this.beforeAllCleanup = await t.beforeAll?.())); } catch (r) { throw (this.renderPreviewEntryError("Error in beforeAll hook:", r), r); } } async getStoryIndexFromServer() { let t = await JK(XK); if (t.status === 200) return t.json(); throw new Yx({ text: await t.text() }); } initializeWithStoryIndex(t) { if (!this.projectAnnotationsBeforeInitialization) throw new Error( "Cannot call initializeWithStoryIndex until project annotations resolve", ); ((this.storyStoreValue = new Q2( t, this.importFn, this.projectAnnotationsBeforeInitialization, )), delete this.projectAnnotationsBeforeInitialization, this.setInitialGlobals(), this.resolveStoreInitializationPromise()); } async setInitialGlobals() { this.emitGlobals(); } emitGlobals() { if (!this.storyStoreValue) throw new wr({ methodName: "emitGlobals" }); let t = { globals: this.storyStoreValue.userGlobals.get() || {}, globalTypes: this.storyStoreValue.projectAnnotations.globalTypes || {}, }; this.channel.emit(iS, t); } async onGetProjectAnnotationsChanged({ getProjectAnnotations: t }) { (delete this.previewEntryError, (this.getProjectAnnotations = t)); let r = await this.getProjectAnnotationsOrRenderError(); if ((await this.runBeforeAllHook(r), !this.storyStoreValue)) { await this.initializeWithProjectAnnotations(r); return; } (this.storyStoreValue.setProjectAnnotations(r), this.emitGlobals()); } async onStoryIndexChanged() { if ( (delete this.previewEntryError, !( !this.storyStoreValue && !this.projectAnnotationsBeforeInitialization )) ) try { let t = await this.getStoryIndexFromServer(); if (this.projectAnnotationsBeforeInitialization) { this.initializeWithStoryIndex(t); return; } await this.onStoriesChanged({ storyIndex: t }); } catch (t) { throw ( this.renderPreviewEntryError("Error loading story index:", t), t ); } } async onStoriesChanged({ importFn: t, storyIndex: r }) { if (!this.storyStoreValue) throw new wr({ methodName: "onStoriesChanged" }); await this.storyStoreValue.onStoriesChanged({ importFn: t, storyIndex: r, }); } async onUpdateGlobals({ globals: t, currentStory: r }) { if ( (this.storyStoreValue || (await this.storeInitializationPromise), !this.storyStoreValue) ) throw new wr({ methodName: "onUpdateGlobals" }); if ((this.storyStoreValue.userGlobals.update(t), r)) { let { initialGlobals: n, storyGlobals: a, userGlobals: o, globals: i, } = this.storyStoreValue.getStoryContext(r); this.channel.emit(Ui, { initialGlobals: n, userGlobals: o, storyGlobals: a, globals: i, }); } else { let { initialGlobals: n, globals: a } = this.storyStoreValue.userGlobals; this.channel.emit(Ui, { initialGlobals: n, userGlobals: a, storyGlobals: {}, globals: a, }); } await Promise.all(this.storyRenders.map((n) => n.rerender())); } async onUpdateArgs({ storyId: t, updatedArgs: r }) { if (!this.storyStoreValue) throw new wr({ methodName: "onUpdateArgs" }); (this.storyStoreValue.args.update(t, r), await Promise.all( this.storyRenders .filter((n) => n.id === t && !n.renderOptions.forceInitialArgs) .map((n) => n.story && n.story.usesMount ? n.remount() : n.rerender(), ), ), this.channel.emit(sS, { storyId: t, args: this.storyStoreValue.args.get(t), })); } async onRequestArgTypesInfo({ id: t, payload: r }) { try { await this.storeInitializationPromise; let n = await this.storyStoreValue?.loadStory(r); this.channel.emit(xh, { id: t, success: !0, payload: { argTypes: n?.argTypes || {} }, error: null, }); } catch (n) { this.channel.emit(xh, { id: t, success: !1, error: n?.message }); } } async onResetArgs({ storyId: t, argNames: r }) { if (!this.storyStoreValue) throw new wr({ methodName: "onResetArgs" }); let n = this.storyRenders.find((o) => o.id === t)?.story || (await this.storyStoreValue.loadStory({ storyId: t })), a = ( r || [ ...new Set([ ...Object.keys(n.initialArgs), ...Object.keys(this.storyStoreValue.args.get(t)), ]), ] ).reduce((o, i) => ((o[i] = n.initialArgs[i]), o), {}); await this.onUpdateArgs({ storyId: t, updatedArgs: a }); } async onForceReRender() { await Promise.all(this.storyRenders.map((t) => t.rerender())); } async onForceRemount({ storyId: t }) { await Promise.all( this.storyRenders.filter((r) => r.id === t).map((r) => r.remount()), ); } async onStoryHotUpdated() { await Promise.all(this.storyRenders.map((t) => t.cancelPlayFunction())); } renderStoryToElement(t, r, n, a) { if (!this.renderToCanvas || !this.storyStoreValue) throw new wr({ methodName: "renderStoryToElement" }); let o = new hy( this.channel, this.storyStoreValue, this.renderToCanvas, n, t.id, "docs", a, t, ); return ( o.renderToElement(r), this.storyRenders.push(o), async () => { await this.teardownRender(o); } ); } async teardownRender(t, { viewModeChanged: r } = {}) { ((this.storyRenders = this.storyRenders.filter((n) => n !== t)), await t?.teardown?.({ viewModeChanged: r })); } async loadStory({ storyId: t }) { if (!this.storyStoreValue) throw new wr({ methodName: "loadStory" }); return this.storyStoreValue.loadStory({ storyId: t }); } getStoryContext(t, { forceInitialArgs: r = !1 } = {}) { if (!this.storyStoreValue) throw new wr({ methodName: "getStoryContext" }); return this.storyStoreValue.getStoryContext(t, { forceInitialArgs: r }); } async extract(t) { if (!this.storyStoreValue) throw new wr({ methodName: "extract" }); if (this.previewEntryError) throw this.previewEntryError; return ( await this.storyStoreValue.cacheAllCSFFiles(), this.storyStoreValue.extract(t) ); } renderPreviewEntryError(t, r) { ((this.previewEntryError = r), St.error(t), St.error(r), this.channel.emit(eS, r)); } }; s(rq, "Preview"); var nq = rq, aq = class { constructor(t, r, n, a) { ((this.channel = t), (this.store = r), (this.renderStoryToElement = n), (this.storyIdByName = s((o) => { let i = this.nameToStoryId.get(o); if (i) return i; throw new Error(`No story found with that name: ${o}`); }, "storyIdByName")), (this.componentStories = s( () => this.componentStoriesValue, "componentStories", )), (this.componentStoriesFromCSFFile = s( (o) => this.store.componentStoriesFromCSFFile({ csfFile: o }), "componentStoriesFromCSFFile", )), (this.storyById = s((o) => { if (!o) { if (!this.primaryStory) throw new Error( "No primary story defined for docs entry. Did you forget to use ``?", ); return this.primaryStory; } let i = this.storyIdToCSFFile.get(o); if (!i) throw new Error( `Called \`storyById\` for story that was never loaded: ${o}`, ); return this.store.storyFromCSFFile({ storyId: o, csfFile: i }); }, "storyById")), (this.getStoryContext = s( (o) => ({ ...this.store.getStoryContext(o), loaded: {}, viewMode: "docs", }), "getStoryContext", )), (this.loadStory = s( (o) => this.store.loadStory({ storyId: o }), "loadStory", )), (this.componentStoriesValue = []), (this.storyIdToCSFFile = new Map()), (this.exportToStory = new Map()), (this.exportsToCSFFile = new Map()), (this.nameToStoryId = new Map()), (this.attachedCSFFiles = new Set()), a.forEach((o, i) => { this.referenceCSFFile(o); })); } referenceCSFFile(t) { (this.exportsToCSFFile.set(t.moduleExports, t), this.exportsToCSFFile.set(t.moduleExports.default, t), this.store.componentStoriesFromCSFFile({ csfFile: t }).forEach((r) => { let n = t.stories[r.id]; (this.storyIdToCSFFile.set(n.id, t), this.exportToStory.set(n.moduleExport, r)); })); } attachCSFFile(t) { if (!this.exportsToCSFFile.has(t.moduleExports)) throw new Error( "Cannot attach a CSF file that has not been referenced", ); this.attachedCSFFiles.has(t) || (this.attachedCSFFiles.add(t), this.store.componentStoriesFromCSFFile({ csfFile: t }).forEach((r) => { (this.nameToStoryId.set(r.name, r.id), this.componentStoriesValue.push(r), this.primaryStory || (this.primaryStory = r)); })); } referenceMeta(t, r) { let n = this.resolveModuleExport(t); if (n.type !== "meta") throw new Error( " must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?", ); r && this.attachCSFFile(n.csfFile); } get projectAnnotations() { let { projectAnnotations: t } = this.store; if (!t) throw new Error( "Can't get projectAnnotations from DocsContext before they are initialized", ); return t; } resolveAttachedModuleExportType(t) { if (t === "story") { if (!this.primaryStory) throw new Error( "No primary story attached to this docs file, did you forget to use ?", ); return { type: "story", story: this.primaryStory }; } if (this.attachedCSFFiles.size === 0) throw new Error( "No CSF file attached to this docs file, did you forget to use ?", ); let r = Array.from(this.attachedCSFFiles)[0]; if (t === "meta") return { type: "meta", csfFile: r }; let { component: n } = r.meta; if (!n) throw new Error( "Attached CSF file does not defined a component, did you forget to export one?", ); return { type: "component", component: n }; } resolveModuleExport(t) { let r = this.exportsToCSFFile.get(t); if (r) return { type: "meta", csfFile: r }; let n = this.exportToStory.get(Id(t) ? t.input : t); return n ? { type: "story", story: n } : { type: "component", component: t }; } resolveOf(t, r = []) { let n; if (["component", "meta", "story"].includes(t)) { let a = t; n = this.resolveAttachedModuleExportType(a); } else n = this.resolveModuleExport(t); if (r.length && !r.includes(n.type)) { let a = n.type === "component" ? "component or unknown" : n.type; throw new Error(Qe`Invalid value passed to the 'of' prop. The value was resolved to a '${a}' type but the only types for this block are: ${r.join(", ")}. - Did you pass a component to the 'of' prop when the block only supports a story or a meta? - ... or vice versa? - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`); } switch (n.type) { case "component": return { ...n, projectAnnotations: this.projectAnnotations }; case "meta": return { ...n, preparedMeta: this.store.preparedMetaFromCSFFile({ csfFile: n.csfFile, }), }; case "story": default: return n; } } }; s(aq, "DocsContext"); var Y0 = aq, oq = class { constructor(t, r, n, a) { ((this.channel = t), (this.store = r), (this.entry = n), (this.callbacks = a), (this.type = "docs"), (this.subtype = "csf"), (this.torndown = !1), (this.disableKeyListeners = !1), (this.preparing = !1), (this.id = n.id), (this.renderId = Date.now())); } isPreparing() { return this.preparing; } async prepare() { this.preparing = !0; let { entryExports: t, csfFiles: r = [] } = await this.store.loadEntry( this.id, ); if (this.torndown) throw qd; let { importPath: n, title: a } = this.entry, o = this.store.processCSFFileWithCache(t, n, a), i = Object.keys(o.stories)[0]; ((this.story = this.store.storyFromCSFFile({ storyId: i, csfFile: o })), (this.csfFiles = [o, ...r]), (this.preparing = !1)); } isEqual(t) { return !!(this.id === t.id && this.story && this.story === t.story); } docsContext(t) { if (!this.csfFiles) throw new Error("Cannot render docs before preparing"); let r = new Y0(this.channel, this.store, t, this.csfFiles); return (this.csfFiles.forEach((n) => r.attachCSFFile(n)), r); } async renderToElement(t, r) { if (!this.story || !this.csfFiles) throw new Error("Cannot render docs before preparing"); let n = this.docsContext(r), { docs: a } = this.story.parameters || {}; if (!a) throw new Error( "Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed", ); let o = await a.renderer(), { render: i } = o, u = s(async () => { try { (await i(n, a, t), this.channel.emit(Ky, this.id)); } catch (l) { this.callbacks.showException(l); } }, "renderDocs"); return ( (this.rerender = async () => u()), (this.teardownRender = async ({ viewModeChanged: l }) => { !l || !t || o.unmount(t); }), u() ); } async teardown({ viewModeChanged: t } = {}) { (this.teardownRender?.({ viewModeChanged: t }), (this.torndown = !0)); } }; s(oq, "CsfDocsRender"); var OC = oq, iq = class { constructor(t, r, n, a) { ((this.channel = t), (this.store = r), (this.entry = n), (this.callbacks = a), (this.type = "docs"), (this.subtype = "mdx"), (this.torndown = !1), (this.disableKeyListeners = !1), (this.preparing = !1), (this.id = n.id), (this.renderId = Date.now())); } isPreparing() { return this.preparing; } async prepare() { this.preparing = !0; let { entryExports: t, csfFiles: r = [] } = await this.store.loadEntry( this.id, ); if (this.torndown) throw qd; ((this.csfFiles = r), (this.exports = t), (this.preparing = !1)); } isEqual(t) { return !!(this.id === t.id && this.exports && this.exports === t.exports); } docsContext(t) { if (!this.csfFiles) throw new Error("Cannot render docs before preparing"); return new Y0(this.channel, this.store, t, this.csfFiles); } async renderToElement(t, r) { if (!this.exports || !this.csfFiles || !this.store.projectAnnotations) throw new Error("Cannot render docs before preparing"); let n = this.docsContext(r), { docs: a } = this.store.projectAnnotations.parameters ?? {}; if (!a) throw new Error( "Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed", ); let o = { ...a, page: this.exports.default }, i = await a.renderer(), { render: u } = i, l = s(async () => { try { (await u(n, o, t), this.channel.emit(Ky, this.id)); } catch (c) { this.callbacks.showException(c); } }, "renderDocs"); return ( (this.rerender = async () => l()), (this.teardownRender = async ({ viewModeChanged: c } = {}) => { !c || !t || (i.unmount(t), (this.torndown = !0)); }), l() ); } async teardown({ viewModeChanged: t } = {}) { (this.teardownRender?.({ viewModeChanged: t }), (this.torndown = !0)); } }; s(iq, "MdxDocsRender"); var DC = iq, KK = globalThis; function sq(e) { let t = (e.composedPath && e.composedPath()[0]) || e.target; return ( /input|textarea/i.test(t.tagName) || t.getAttribute("contenteditable") !== null ); } s(sq, "focusInInput"); var uq = "attached-mdx", YK = "unattached-mdx"; function lq({ tags: e }) { return e?.includes(YK) || e?.includes(uq); } s(lq, "isMdxEntry"); function tl(e) { return e.type === "story"; } s(tl, "isStoryRender"); function cq(e) { return e.type === "docs"; } s(cq, "isDocsRender"); function dq(e) { return cq(e) && e.subtype === "csf"; } s(dq, "isCsfDocsRender"); var pq = class extends nq { constructor(t, r, n, a) { (super(t, r, void 0, !1), (this.importFn = t), (this.getProjectAnnotations = r), (this.selectionStore = n), (this.view = a), this.initialize()); } setupListeners() { (super.setupListeners(), (KK.onkeydown = this.onKeydown.bind(this)), this.channel.on(Zy, this.onSetCurrentStory.bind(this)), this.channel.on(yS, this.onUpdateQueryParams.bind(this)), this.channel.on(aS, this.onPreloadStories.bind(this))); } async setInitialGlobals() { if (!this.storyStoreValue) throw new wr({ methodName: "setInitialGlobals" }); let { globals: t } = this.selectionStore.selectionSpecifier || {}; (t && this.storyStoreValue.userGlobals.updateFromPersisted(t), this.emitGlobals()); } async initializeWithStoryIndex(t) { return ( await super.initializeWithStoryIndex(t), this.selectSpecifiedStory() ); } async selectSpecifiedStory() { if (!this.storyStoreValue) throw new wr({ methodName: "selectSpecifiedStory" }); if (this.selectionStore.selection) { await this.renderSelection(); return; } if (!this.selectionStore.selectionSpecifier) { this.renderMissingStory(); return; } let { storySpecifier: t, args: r } = this.selectionStore.selectionSpecifier, n = this.storyStoreValue.storyIndex.entryFromSpecifier(t); if (!n) { t === "*" ? this.renderStoryLoadingException(t, new tP()) : this.renderStoryLoadingException( t, new nP({ storySpecifier: t.toString() }), ); return; } let { id: a, type: o } = n; (this.selectionStore.setSelection({ storyId: a, viewMode: o }), this.channel.emit(pS, this.selectionStore.selection), this.channel.emit(wh, this.selectionStore.selection), await this.renderSelection({ persistedArgs: r })); } async onGetProjectAnnotationsChanged({ getProjectAnnotations: t }) { (await super.onGetProjectAnnotationsChanged({ getProjectAnnotations: t }), this.selectionStore.selection && this.renderSelection()); } async onStoriesChanged({ importFn: t, storyIndex: r }) { (await super.onStoriesChanged({ importFn: t, storyIndex: r }), this.selectionStore.selection ? await this.renderSelection() : await this.selectSpecifiedStory()); } onKeydown(t) { if (!this.storyRenders.find((r) => r.disableKeyListeners) && !sq(t)) { let { altKey: r, ctrlKey: n, metaKey: a, shiftKey: o, key: i, code: u, keyCode: l, } = t; this.channel.emit(oS, { event: { altKey: r, ctrlKey: n, metaKey: a, shiftKey: o, key: i, code: u, keyCode: l, }, }); } } async onSetCurrentStory(t) { (this.selectionStore.setSelection({ viewMode: "story", ...t }), await this.storeInitializationPromise, this.channel.emit(wh, this.selectionStore.selection), this.renderSelection()); } onUpdateQueryParams(t) { this.selectionStore.setQueryParams(t); } async onUpdateGlobals({ globals: t }) { let r = (this.currentRender instanceof hy && this.currentRender.story) || void 0; (super.onUpdateGlobals({ globals: t, currentStory: r }), (this.currentRender instanceof DC || this.currentRender instanceof OC) && (await this.currentRender.rerender?.())); } async onUpdateArgs({ storyId: t, updatedArgs: r }) { super.onUpdateArgs({ storyId: t, updatedArgs: r }); } async onPreloadStories({ ids: t }) { (await this.storeInitializationPromise, this.storyStoreValue && (await Promise.allSettled( t.map((r) => this.storyStoreValue?.loadEntry(r)), ))); } async renderSelection({ persistedArgs: t } = {}) { let { renderToCanvas: r } = this; if (!this.storyStoreValue || !r) throw new wr({ methodName: "renderSelection" }); let { selection: n } = this.selectionStore; if (!n) throw new Error("Cannot call renderSelection as no selection was made"); let { storyId: a } = n, o; try { o = await this.storyStoreValue.storyIdToEntry(a); } catch (f) { (this.currentRender && (await this.teardownRender(this.currentRender)), this.renderStoryLoadingException(a, f)); return; } let i = this.currentSelection?.storyId !== a, u = this.currentRender?.type !== o.type; (o.type === "story" ? this.view.showPreparingStory({ immediate: u }) : this.view.showPreparingDocs({ immediate: u }), this.currentRender?.isPreparing() && (await this.teardownRender(this.currentRender))); let l; o.type === "story" ? (l = new hy( this.channel, this.storyStoreValue, r, this.mainStoryCallbacks(a), a, "story", )) : lq(o) ? (l = new DC( this.channel, this.storyStoreValue, o, this.mainStoryCallbacks(a), )) : (l = new OC( this.channel, this.storyStoreValue, o, this.mainStoryCallbacks(a), )); let c = this.currentSelection; this.currentSelection = n; let d = this.currentRender; this.currentRender = l; try { await l.prepare(); } catch (f) { (d && (await this.teardownRender(d)), f !== qd && this.renderStoryLoadingException(a, f)); return; } let p = !i && d && !l.isEqual(d); if ( (t && tl(l) && (sn(!!l.story), this.storyStoreValue.args.updateFromPersisted(l.story, t)), d && !d.torndown && !i && !p && !u) ) { ((this.currentRender = d), this.channel.emit(hS, a), this.view.showMain()); return; } if ( (d && (await this.teardownRender(d, { viewModeChanged: u })), c && (i || u) && this.channel.emit(uS, a), tl(l)) ) { sn(!!l.story); let { parameters: f, initialArgs: h, argTypes: m, unmappedArgs: y, initialGlobals: b, userGlobals: g, storyGlobals: v, globals: x, } = this.storyStoreValue.getStoryContext(l.story); (this.channel.emit(dS, { id: a, parameters: f, initialArgs: h, argTypes: m, args: y, }), this.channel.emit(Ui, { userGlobals: g, storyGlobals: v, globals: x, initialGlobals: b, })); } else { let { parameters: f } = this.storyStoreValue.projectAnnotations, { initialGlobals: h, globals: m } = this.storyStoreValue.userGlobals; if ( (this.channel.emit(Ui, { globals: m, initialGlobals: h, storyGlobals: {}, userGlobals: m, }), dq(l) || l.entry.tags?.includes(uq)) ) { if (!l.csfFiles) throw new Zx({ storyId: a }); ({ parameters: f } = this.storyStoreValue.preparedMetaFromCSFFile({ csfFile: l.csfFiles[0], })); } this.channel.emit(tS, { id: a, parameters: f }); } tl(l) ? (sn(!!l.story), this.storyRenders.push(l), this.currentRender.renderToElement(this.view.prepareForStory(l.story))) : this.currentRender.renderToElement( this.view.prepareForDocs(), this.renderStoryToElement.bind(this), ); } async teardownRender(t, { viewModeChanged: r = !1 } = {}) { ((this.storyRenders = this.storyRenders.filter((n) => n !== t)), await t?.teardown?.({ viewModeChanged: r })); } mainStoryCallbacks(t) { return { showStoryDuringRender: s( () => this.view.showStoryDuringRender(), "showStoryDuringRender", ), showMain: s(() => this.view.showMain(), "showMain"), showError: s((r) => this.renderError(t, r), "showError"), showException: s((r) => this.renderException(t, r), "showException"), }; } renderPreviewEntryError(t, r) { (super.renderPreviewEntryError(t, r), this.view.showErrorDisplay(r)); } renderMissingStory() { (this.view.showNoPreview(), this.channel.emit(Ah)); } renderStoryLoadingException(t, r) { (St.error(r), this.view.showErrorDisplay(r), this.channel.emit(Ah, t)); } renderException(t, r) { let { name: n = "Error", message: a = String(r), stack: o } = r, i = this.currentRender?.renderId; (this.channel.emit(fS, { name: n, message: a, stack: o }), this.channel.emit(Ra, { newPhase: "errored", renderId: i, storyId: t }), this.view.showErrorDisplay(r), St.error(`Error rendering story '${t}':`), St.error(r)); } renderError(t, { title: r, description: n }) { let a = this.currentRender?.renderId; (this.channel.emit(lS, { title: r, description: n }), this.channel.emit(Ra, { newPhase: "errored", renderId: a, storyId: t }), this.view.showErrorDisplay({ message: r, stack: n }), St.error(`Error rendering story ${r}: ${n}`)); } }; s(pq, "PreviewWithSelection"); var fq = pq, my = Lt(Wy(), 1), QK = Lt(Wy(), 1), FC = /^[a-zA-Z0-9 _-]*$/, hq = /^-?[0-9]+(\.[0-9]+)?$/, ZK = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, mq = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i, yy = s( (e = "", t) => e === null || e === "" || !FC.test(e) ? !1 : t == null || t instanceof Date || typeof t == "number" || typeof t == "boolean" ? !0 : typeof t == "string" ? FC.test(t) || hq.test(t) || ZK.test(t) || mq.test(t) : Array.isArray(t) ? t.every((r) => yy(e, r)) : Hr(t) ? Object.entries(t).every(([r, n]) => yy(r, n)) : !1, "validateArgs", ), eY = { delimiter: ";", nesting: !0, arrayRepeat: !0, arrayRepeatSyntax: "bracket", nestingSyntax: "js", valueDeserializer(e) { if (e.startsWith("!")) { if (e === "!undefined") return; if (e === "!null") return null; if (e === "!true") return !0; if (e === "!false") return !1; if (e.startsWith("!date(") && e.endsWith(")")) return new Date(e.replaceAll(" ", "+").slice(6, -1)); if (e.startsWith("!hex(") && e.endsWith(")")) return `#${e.slice(5, -1)}`; let t = e.slice(1).match(mq); if (t) return e.startsWith("!rgba") || e.startsWith("!RGBA") ? `${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})` : e.startsWith("!hsla") || e.startsWith("!HSLA") ? `${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})` : e.startsWith("!rgb") || e.startsWith("!RGB") ? `${t[1]}(${t[2]}, ${t[3]}, ${t[4]})` : `${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`; } return hq.test(e) ? Number(e) : e; }, }, IC = s((e) => { let t = e.split(";").map((r) => r.replace("=", "~").replace(":", "=")); return Object.entries((0, QK.parse)(t.join(";"), eY)).reduce( (r, [n, a]) => yy(n, a) ? Object.assign(r, { [n]: a }) : (Mt.warn(Qe` Omitted potentially unsafe URL args. More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url `), r), {}, ); }, "parseArgsParam"), { history: yq, document: Yn } = Ae; function gq(e) { let t = (e || "").match(/^\/story\/(.+)/); if (!t) throw new Error(`Invalid path '${e}', must start with '/story/'`); return t[1]; } s(gq, "pathToId"); var bq = s(({ selection: e, extraParams: t }) => { let r = Yn?.location.search.slice(1), { path: n, selectedKind: a, selectedStory: o, ...i } = (0, my.parse)(r); return `?${(0, my.stringify)({ ...i, ...t, ...(e && { id: e.storyId, viewMode: e.viewMode }) })}`; }, "getQueryString"), tY = s((e) => { if (!e) return; let t = bq({ selection: e }), { hash: r = "" } = Yn.location; ((Yn.title = e.storyId), yq.replaceState({}, "", `${Yn.location.pathname}${t}${r}`)); }, "setPath"), rY = s( (e) => e != null && typeof e == "object" && Array.isArray(e) === !1, "isObject", ), qi = s((e) => { if (e !== void 0) { if (typeof e == "string") return e; if (Array.isArray(e)) return qi(e[0]); if (rY(e)) return qi(Object.values(e).filter(Boolean)); } }, "getFirstString"), nY = s(() => { if (typeof Yn < "u") { let e = Yn.location.search.slice(1), t = (0, my.parse)(e), r = typeof t.args == "string" ? IC(t.args) : void 0, n = typeof t.globals == "string" ? IC(t.globals) : void 0, a = qi(t.viewMode); (typeof a != "string" || !a.match(/docs|story/)) && (a = "story"); let o = qi(t.path), i = o ? gq(o) : qi(t.id); if (i) return { storySpecifier: i, args: r, globals: n, viewMode: a }; } return null; }, "getSelectionSpecifierFromPath"), vq = class { constructor() { this.selectionSpecifier = nY(); } setSelection(t) { ((this.selection = t), tY(this.selection)); } setQueryParams(t) { let r = bq({ extraParams: t }), { hash: n = "" } = Yn.location; yq.replaceState({}, "", `${Yn.location.pathname}${r}${n}`); } }; s(vq, "UrlStore"); var Eq = vq, aY = Lt(j9(), 1), oY = Lt(Wy(), 1), { document: rr } = Ae, NC = 100, _q = ((e) => ( (e.MAIN = "MAIN"), (e.NOPREVIEW = "NOPREVIEW"), (e.PREPARING_STORY = "PREPARING_STORY"), (e.PREPARING_DOCS = "PREPARING_DOCS"), (e.ERROR = "ERROR"), e ))(_q || {}), _p = { PREPARING_STORY: "sb-show-preparing-story", PREPARING_DOCS: "sb-show-preparing-docs", MAIN: "sb-show-main", NOPREVIEW: "sb-show-nopreview", ERROR: "sb-show-errordisplay", }, Cp = { centered: "sb-main-centered", fullscreen: "sb-main-fullscreen", padded: "sb-main-padded", }, jC = new aY.default({ escapeXML: !0 }), Cq = class { constructor() { if (((this.testing = !1), typeof rr < "u")) { let { __SPECIAL_TEST_PARAMETER__: t } = (0, oY.parse)( rr.location.search.slice(1), ); switch (t) { case "preparing-story": { (this.showPreparingStory(), (this.testing = !0)); break; } case "preparing-docs": { (this.showPreparingDocs(), (this.testing = !0)); break; } } } } prepareForStory(t) { return ( this.showStory(), this.applyLayout(t.parameters.layout), (rr.documentElement.scrollTop = 0), (rr.documentElement.scrollLeft = 0), this.storyRoot() ); } storyRoot() { return rr.getElementById("storybook-root"); } prepareForDocs() { return ( this.showMain(), this.showDocs(), this.applyLayout("fullscreen"), (rr.documentElement.scrollTop = 0), (rr.documentElement.scrollLeft = 0), this.docsRoot() ); } docsRoot() { return rr.getElementById("storybook-docs"); } applyLayout(t = "padded") { if (t === "none") { (rr.body.classList.remove(this.currentLayoutClass), (this.currentLayoutClass = null)); return; } this.checkIfLayoutExists(t); let r = Cp[t]; (rr.body.classList.remove(this.currentLayoutClass), rr.body.classList.add(r), (this.currentLayoutClass = r)); } checkIfLayoutExists(t) { Cp[t] || St.warn(Qe` The desired layout: ${t} is not a valid option. The possible options are: ${Object.keys(Cp).join(", ")}, none. `); } showMode(t) { (clearTimeout(this.preparingTimeout), Object.keys(_q).forEach((r) => { r === t ? rr.body.classList.add(_p[r]) : rr.body.classList.remove(_p[r]); })); } showErrorDisplay({ message: t = "", stack: r = "" }) { let n = t, a = r, o = t.split(` `); (o.length > 1 && (([n] = o), (a = o .slice(1) .join( ` `, ) .replace(/^\n/, ""))), (rr.getElementById("error-message").innerHTML = jC.toHtml(n)), (rr.getElementById("error-stack").innerHTML = jC.toHtml(a)), this.showMode("ERROR")); } showNoPreview() { this.testing || (this.showMode("NOPREVIEW"), this.storyRoot()?.setAttribute("hidden", "true"), this.docsRoot()?.setAttribute("hidden", "true")); } showPreparingStory({ immediate: t = !1 } = {}) { (clearTimeout(this.preparingTimeout), t ? this.showMode("PREPARING_STORY") : (this.preparingTimeout = setTimeout( () => this.showMode("PREPARING_STORY"), NC, ))); } showPreparingDocs({ immediate: t = !1 } = {}) { (clearTimeout(this.preparingTimeout), t ? this.showMode("PREPARING_DOCS") : (this.preparingTimeout = setTimeout( () => this.showMode("PREPARING_DOCS"), NC, ))); } showMain() { this.showMode("MAIN"); } showDocs() { (this.storyRoot().setAttribute("hidden", "true"), this.docsRoot().removeAttribute("hidden")); } showStory() { (this.docsRoot().setAttribute("hidden", "true"), this.storyRoot().removeAttribute("hidden")); } showStoryDuringRender() { rr.body.classList.add(_p.MAIN); } }; s(Cq, "WebView"); var wq = Cq, Aq = class extends fq { constructor(t, r) { (super(t, r, new Eq(), new wq()), (this.importFn = t), (this.getProjectAnnotations = r), (Ae.__STORYBOOK_PREVIEW__ = this)); } }; s(Aq, "PreviewWeb"); var iY = Aq, { document: xa } = Ae, sY = [ "application/javascript", "application/ecmascript", "application/x-ecmascript", "application/x-javascript", "text/ecmascript", "text/javascript", "text/javascript1.0", "text/javascript1.1", "text/javascript1.2", "text/javascript1.3", "text/javascript1.4", "text/javascript1.5", "text/jscript", "text/livescript", "text/x-ecmascript", "text/x-javascript", "module", ], uY = "script", kC = "scripts-root"; function rc() { let e = xa.createEvent("Event"); (e.initEvent("DOMContentLoaded", !0, !0), xa.dispatchEvent(e)); } s(rc, "simulateDOMContentLoaded"); function Sq(e, t, r) { let n = xa.createElement("script"); ((n.type = e.type === "module" ? "module" : "text/javascript"), e.src ? ((n.onload = t), (n.onerror = t), (n.src = e.src)) : (n.textContent = e.innerText), r ? r.appendChild(n) : xa.head.appendChild(n), e.parentNode.removeChild(e), e.src || t()); } s(Sq, "insertScript"); function Q0(e, t, r = 0) { e[r](() => { (r++, r === e.length ? t() : Q0(e, t, r)); }); } s(Q0, "insertScriptsSequentially"); function xq(e) { let t = xa.getElementById(kC); t ? (t.innerHTML = "") : ((t = xa.createElement("div")), (t.id = kC), xa.body.appendChild(t)); let r = Array.from(e.querySelectorAll(uY)); if (r.length) { let n = []; (r.forEach((a) => { let o = a.getAttribute("type"); (!o || sY.includes(o)) && n.push((i) => Sq(a, i, t)); }), n.length && Q0(n, rc, void 0)); } else rc(); } s(xq, "simulatePageLoad"); var lY = "storybook/docs", cY = `${lY}/snippet-rendered`; async function Pq(e, t) { let r = t.parameters?.docs?.source?.transform, { id: n, unmappedArgs: a } = t, o = r && e ? r?.(e, t) : e, i = o ? await o : void 0; jr.getChannel().emit(cY, { id: n, source: i, args: a }); } s(Pq, "emitTransformCode"); var cs = { depth: 10, clearOnStoryChange: !0, limit: 50 }, dY = s((e = {}) => { Object.assign(cs, e); }, "configureActions"), Rq = s((e, t) => { let r = Object.getPrototypeOf(e); return !r || t(r) ? r : Rq(r, t); }, "findProto"), pY = s( (e) => !!( typeof e == "object" && e && Rq(e, (t) => /^Synthetic(?:Base)?Event$/.test(t.constructor.name)) && typeof e.persist == "function" ), "isReactSyntheticEvent", ), fY = s((e) => { if (pY(e)) { let t = Object.create( e.constructor.prototype, Object.getOwnPropertyDescriptors(e), ); t.persist(); let r = Object.getOwnPropertyDescriptor(t, "view"), n = r?.value; return ( typeof n == "object" && n?.constructor.name === "Window" && Object.defineProperty(t, "view", { ...r, value: Object.create(n.constructor.prototype), }), t ); } return e; }, "serializeArg"); function ti(e, t = {}) { let r = { ...cs, ...t }, n = s(function (...a) { if (t.implicit) { let p = ( "__STORYBOOK_PREVIEW__" in Ae ? Ae.__STORYBOOK_PREVIEW__ : void 0 )?.storyRenders.find( (f) => f.phase === "playing" || f.phase === "rendering", ); if (p) { let f = !globalThis?.FEATURES?.disallowImplicitActionsInRenderV8, h = new Vx({ phase: p.phase, name: e, deprecated: f }); if (f) console.warn(h); else throw h; } } let o = jr.getChannel(), i = Date.now().toString(36) + Math.random().toString(36).substring(2), u = 5, l = a.map(fY), c = a.length > 1 ? l : l[0], d = { id: i, count: 0, data: { name: e, args: c }, options: { ...r, maxDepth: u + (r.depth || 3) }, }; o.emit(CP, d); }, "actionHandler"); return ((n.isAction = !0), (n.implicit = t.implicit), n); } s(ti, "action"); var hY = s((...e) => { let t = cs, r = e; (r.length === 1 && Array.isArray(r[0]) && ([r] = r), r.length !== 1 && typeof r[r.length - 1] != "string" && (t = { ...cs, ...r.pop() })); let n = r[0]; (r.length !== 1 || typeof n == "string") && ((n = {}), r.forEach((o) => { n[o] = o; })); let a = {}; return ( Object.keys(n).forEach((o) => { a[o] = ti(n[o], t); }), a ); }, "actions"), mY = { "@storybook/global": vS, "storybook/test": $P, "storybook/actions": _P, "storybook/preview-api": Th, "storybook/internal/channels": _S, "storybook/internal/client-logger": wS, "storybook/internal/core-events": Jy, "storybook/internal/types": vP, "storybook/internal/preview-errors": qx, "storybook/internal/preview-api": Th, }; async function Tq() { let e = new URL(window.location.href); if ( e.searchParams.get("navigator") !== "true" || globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__ ) return; globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__ = !0; let t = await (await fetch("/index.json")).json(), r = e.searchParams.get("id"); if (!r) { let n = Object.values(t.entries)[0]; n && (e.searchParams.set("id", n.id), e.searchParams.set("viewMode", n.type), (window.location.href = e.toString())); return; } yY(t, r); } s(Tq, "maybeSetupPreviewNavigator"); var yY = s(async (e, t) => { let r = { entries: {} }; for (let u of Object.values(e.entries)) { let l = u.title.split("/"), c = r; for (let d of l) (c.entries || (c.entries = {}), c.entries[d] ? t === u.id && (c.entries[d].isActive = !0) : (c.entries[d] = { title: d, isActive: t === u.id, entries: {} }), (c = c.entries[d])); (c.entries || (c.entries = {}), (c.entries[u.name] = { id: u.id, name: u.name, href: `?id=${u.id}&viewMode=${u.type}&navigator=true`, isActive: t === u.id, })); } let n = s((u) => { if ("entries" in u && "title" in u) { let c = u; return `
  • ${c.title}
      ${Object.values(c.entries).map(n).join("")}
  • `; } let l = u; return `
  • ${l.name}
  • `; }, "createHtmlForNode"), a = Object.values(r.entries).map(n).join(""), o = document.createElement("nav"); ((o.id = "sb-navigator-container"), o.setAttribute("role", "navigation"), o.setAttribute("aria-label", "Story navigation"), (o.innerHTML = `
      ${a}
    `), document.body.insertBefore(o, document.body.firstChild)); let i = document.createElement("style"); ((i.id = "sb-navigator-style"), (i.textContent = ` body { display: grid !important; grid-template-columns: 300px 1fr; font-family: 'Nunito', sans-serif; height: 100vh; margin: 0; --text-color: rgb(46, 52, 56); --bg-color: rgb(246, 249, 252); @media (prefers-color-scheme: dark) { --text-color: rgb(201, 205, 207); --bg-color: rgb(34, 36, 37); } } #storybook-root, #storybook-docs { overflow-y: auto; max-height: 100vh; max-width: 100%; } #sb-navigator-container, #sb-navigator-container * { box-sizing: border-box; } #sb-navigator-container { height: 100vh; overflow-y: auto; border-right: 1px solid #eee; padding: 1rem; font-size: 14px; color: var(--text-color); background-color: var(--bg-color); align-self: start; z-index: 1000; } .sb-main-padded #sb-navigator-container { margin: -1rem 1rem -1rem -1rem; } .sb-navigator-list { list-style-type: none; padding: 0; margin: 0; } .sb-navigator-branch { list-style-type: none; } .sb-navigator-item { margin-bottom: 15px; } .sb-navigator-title { color: var(--text-color); text-decoration: none; padding-block: 5px; cursor: pointer; } .sb-navigator-entries { padding-left: 15px; } .sb-navigator-story-item { margin-bottom: 8px; margin-left: 8px; } .sb-navigator-story-link { color: var(--text-color); } .sb-navigator-story-link.active { font-weight: bold; color: rgb(2, 156, 253); } `), document.head.appendChild(i), o .querySelector(".sb-navigator-story-link.active") ?.closest("details") ?.scrollIntoView({ block: "center" })); }, "setupPreviewNavigator"), gY = Lt(k9(), 1), wp; function Oq() { return ( wp || (wp = new gY.default(Ae.navigator?.userAgent).getBrowserInfo()), wp ); } s(Oq, "getBrowserInfo"); function Dq(e) { return ((e.browserInfo = Oq()), e); } s(Dq, "prepareForTelemetry"); function Fq(e) { let t = e.error || e; t.fromStorybook && Ae.sendTelemetryError(t); } s(Fq, "errorListener"); function Iq({ reason: e }) { e.fromStorybook && Ae.sendTelemetryError(e); } s(Iq, "unhandledRejectionListener"); function Z0() { (sU.forEach((e) => { Ae[ES[e]] = mY[e]; }), (Ae.sendTelemetryError = (e) => { Ae.__STORYBOOK_ADDONS_CHANNEL__.emit(gS, Dq(e)); }), Ae.addEventListener("error", Fq), Ae.addEventListener("unhandledrejection", Iq), Tq()); } s(Z0, "setup"); Z0(); const { createBrowserChannel: bY } = __STORYBOOK_MODULE_CHANNELS__, { addons: vY } = __STORYBOOK_MODULE_PREVIEW_API__, eE = bY({ page: "preview" }); vY.setChannel(eE); window.__STORYBOOK_ADDONS_CHANNEL__ = eE; window.CONFIG_TYPE === "DEVELOPMENT" && (window.__STORYBOOK_SERVER_CHANNEL__ = eE); const EY = { "./stories/Avatar.stories.js": () => jt( () => import("./Avatar.stories-BXBDwngC.js"), __vite__mapDeps([0, 1, 2, 3]), ), "./stories/AvatarContainer.stories.js": () => jt( () => import("./AvatarContainer.stories-BqIdIqTD.js"), __vite__mapDeps([4, 1, 5, 2, 3]), ), "./stories/Button.stories.js": () => jt( () => import("./Button.stories-mcJmJIRw.js"), __vite__mapDeps([6, 1, 7, 3]), ), "./stories/ContentLockup.stories.js": () => jt( () => import("./ContentLockup.stories-DwhcJmPs.js"), __vite__mapDeps([8, 9, 1, 7, 3]), ), "./stories/Footer.stories.js": () => jt( () => import("./Footer.stories-DFwAxlXr.js"), __vite__mapDeps([10, 1, 11, 3]), ), "./stories/Header.stories.js": () => jt( () => import("./Header.stories-5BG7D2h7.js"), __vite__mapDeps([12, 1, 13, 11, 14, 15, 7, 5, 2, 3]), ), "./stories/HeaderTab.stories.js": () => jt( () => import("./HeaderTab.stories-7KIqz1LH.js"), __vite__mapDeps([16, 1, 17, 11, 3]), ), "./stories/HeroBanner.stories.js": () => jt( () => import("./HeroBanner.stories-BAL-8UkC.js"), __vite__mapDeps([18, 19, 1, 9, 7, 20, 3]), ), "./stories/HeroBannerSystem.stories.js": () => jt( () => import("./HeroBannerSystem.stories-FwOHoVvm.js"), __vite__mapDeps([21, 1, 19, 9, 7, 20, 3]), ), "./stories/HeroDecor.stories.js": () => jt( () => import("./HeroDecor.stories-CUMQtAQh.js"), __vite__mapDeps([22, 1, 20, 3]), ), "./stories/HomeHeader.stories.js": () => jt( () => import("./HomeHeader.stories-BZFS_npz.js"), __vite__mapDeps([23, 1, 11, 14, 15, 7, 5, 2, 17, 13, 3]), ), "./stories/Logo.stories.js": () => jt( () => import("./Logo.stories-CahJ_0p_.js"), __vite__mapDeps([24, 1, 11, 3]), ), "./stories/MenuBar.stories.js": () => jt( () => import("./MenuBar.stories-CLlNuM-O.js"), __vite__mapDeps([25, 1, 14, 15, 3]), ), "./stories/MenuBarItem.stories.js": () => jt( () => import("./MenuBarItem.stories-Btz38mn4.js"), __vite__mapDeps([26, 1, 15, 3]), ), "./stories/NumberedCard.stories.js": () => jt( () => import("./NumberedCard.stories-B2w08pIr.js"), __vite__mapDeps([27, 1, 28, 29, 3]), ), "./stories/NumberedCards.stories.js": () => jt( () => import("./NumberedCards.stories-RsE3R6pO.js"), __vite__mapDeps([30, 1, 28, 29, 31, 7, 3]), ), "./stories/SectionHeader.stories.js": () => jt( () => import("./SectionHeader.stories-CxSQCoM-.js"), __vite__mapDeps([32, 31, 1, 3]), ), "./stories/SectionNumber.stories.js": () => jt( () => import("./SectionNumber.stories-CTZpqrxx.js"), __vite__mapDeps([33, 1, 29, 3]), ), }; async function _Y(e) { return await EY[e](); } function tE(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Ap = { exports: {} }, ze = {}; /** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var qC; function CY() { if (qC) return ze; qC = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), i = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.iterator; function f(H) { return H === null || typeof H != "object" ? null : ((H = (p && H[p]) || H["@@iterator"]), typeof H == "function" ? H : null); } var h = { isMounted: function () { return !1; }, enqueueForceUpdate: function () {}, enqueueReplaceState: function () {}, enqueueSetState: function () {}, }, m = Object.assign, y = {}; function b(H, K, V) { ((this.props = H), (this.context = K), (this.refs = y), (this.updater = V || h)); } ((b.prototype.isReactComponent = {}), (b.prototype.setState = function (H, K) { if (typeof H != "object" && typeof H != "function" && H != null) throw Error( "takes an object of state variables to update or a function which returns an object of state variables.", ); this.updater.enqueueSetState(this, H, K, "setState"); }), (b.prototype.forceUpdate = function (H) { this.updater.enqueueForceUpdate(this, H, "forceUpdate"); })); function g() {} g.prototype = b.prototype; function v(H, K, V) { ((this.props = H), (this.context = K), (this.refs = y), (this.updater = V || h)); } var x = (v.prototype = new g()); ((x.constructor = v), m(x, b.prototype), (x.isPureReactComponent = !0)); var A = Array.isArray, w = { H: null, A: null, T: null, S: null, V: null }, C = Object.prototype.hasOwnProperty; function E(H, K, V, Z, re, he) { return ( (V = he.ref), { $$typeof: e, type: H, key: K, ref: V !== void 0 ? V : null, props: he } ); } function _(H, K) { return E(H.type, K, void 0, void 0, void 0, H.props); } function P(H) { return typeof H == "object" && H !== null && H.$$typeof === e; } function D(H) { var K = { "=": "=0", ":": "=2" }; return ( "$" + H.replace(/[=:]/g, function (V) { return K[V]; }) ); } var F = /\/+/g; function L(H, K) { return typeof H == "object" && H !== null && H.key != null ? D("" + H.key) : K.toString(36); } function q() {} function T(H) { switch (H.status) { case "fulfilled": return H.value; case "rejected": throw H.reason; default: switch ( (typeof H.status == "string" ? H.then(q, q) : ((H.status = "pending"), H.then( function (K) { H.status === "pending" && ((H.status = "fulfilled"), (H.value = K)); }, function (K) { H.status === "pending" && ((H.status = "rejected"), (H.reason = K)); }, )), H.status) ) { case "fulfilled": return H.value; case "rejected": throw H.reason; } } throw H; } function k(H, K, V, Z, re) { var he = typeof H; (he === "undefined" || he === "boolean") && (H = null); var oe = !1; if (H === null) oe = !0; else switch (he) { case "bigint": case "string": case "number": oe = !0; break; case "object": switch (H.$$typeof) { case e: case t: oe = !0; break; case d: return ((oe = H._init), k(oe(H._payload), K, V, Z, re)); } } if (oe) return ( (re = re(H)), (oe = Z === "" ? "." + L(H, 0) : Z), A(re) ? ((V = ""), oe != null && (V = oe.replace(F, "$&/") + "/"), k(re, K, V, "", function (rt) { return rt; })) : re != null && (P(re) && (re = _( re, V + (re.key == null || (H && H.key === re.key) ? "" : ("" + re.key).replace(F, "$&/") + "/") + oe, )), K.push(re)), 1 ); oe = 0; var ge = Z === "" ? "." : Z + ":"; if (A(H)) for (var be = 0; be < H.length; be++) ((Z = H[be]), (he = ge + L(Z, be)), (oe += k(Z, K, V, he, re))); else if (((be = f(H)), typeof be == "function")) for (H = be.call(H), be = 0; !(Z = H.next()).done; ) ((Z = Z.value), (he = ge + L(Z, be++)), (oe += k(Z, K, V, he, re))); else if (he === "object") { if (typeof H.then == "function") return k(T(H), K, V, Z, re); throw ( (K = String(H)), Error( "Objects are not valid as a React child (found: " + (K === "[object Object]" ? "object with keys {" + Object.keys(H).join(", ") + "}" : K) + "). If you meant to render a collection of children, use an array instead.", ) ); } return oe; } function I(H, K, V) { if (H == null) return H; var Z = [], re = 0; return ( k(H, Z, "", "", function (he) { return K.call(V, he, re++); }), Z ); } function W(H) { if (H._status === -1) { var K = H._result; ((K = K()), K.then( function (V) { (H._status === 0 || H._status === -1) && ((H._status = 1), (H._result = V)); }, function (V) { (H._status === 0 || H._status === -1) && ((H._status = 2), (H._result = V)); }, ), H._status === -1 && ((H._status = 0), (H._result = K))); } if (H._status === 1) return H._result.default; throw H._result; } var Q = typeof reportError == "function" ? reportError : function (H) { if ( typeof window == "object" && typeof window.ErrorEvent == "function" ) { var K = new window.ErrorEvent("error", { bubbles: !0, cancelable: !0, message: typeof H == "object" && H !== null && typeof H.message == "string" ? String(H.message) : String(H), error: H, }); if (!window.dispatchEvent(K)) return; } else if ( typeof process == "object" && typeof process.emit == "function" ) { process.emit("uncaughtException", H); return; } console.error(H); }; function se() {} return ( (ze.Children = { map: I, forEach: function (H, K, V) { I( H, function () { K.apply(this, arguments); }, V, ); }, count: function (H) { var K = 0; return ( I(H, function () { K++; }), K ); }, toArray: function (H) { return ( I(H, function (K) { return K; }) || [] ); }, only: function (H) { if (!P(H)) throw Error( "React.Children.only expected to receive a single React element child.", ); return H; }, }), (ze.Component = b), (ze.Fragment = r), (ze.Profiler = a), (ze.PureComponent = v), (ze.StrictMode = n), (ze.Suspense = l), (ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = w), (ze.__COMPILER_RUNTIME = { __proto__: null, c: function (H) { return w.H.useMemoCache(H); }, }), (ze.cache = function (H) { return function () { return H.apply(null, arguments); }; }), (ze.cloneElement = function (H, K, V) { if (H == null) throw Error( "The argument must be a React element, but you passed " + H + ".", ); var Z = m({}, H.props), re = H.key, he = void 0; if (K != null) for (oe in (K.ref !== void 0 && (he = void 0), K.key !== void 0 && (re = "" + K.key), K)) !C.call(K, oe) || oe === "key" || oe === "__self" || oe === "__source" || (oe === "ref" && K.ref === void 0) || (Z[oe] = K[oe]); var oe = arguments.length - 2; if (oe === 1) Z.children = V; else if (1 < oe) { for (var ge = Array(oe), be = 0; be < oe; be++) ge[be] = arguments[be + 2]; Z.children = ge; } return E(H.type, re, void 0, void 0, he, Z); }), (ze.createContext = function (H) { return ( (H = { $$typeof: i, _currentValue: H, _currentValue2: H, _threadCount: 0, Provider: null, Consumer: null, }), (H.Provider = H), (H.Consumer = { $$typeof: o, _context: H }), H ); }), (ze.createElement = function (H, K, V) { var Z, re = {}, he = null; if (K != null) for (Z in (K.key !== void 0 && (he = "" + K.key), K)) C.call(K, Z) && Z !== "key" && Z !== "__self" && Z !== "__source" && (re[Z] = K[Z]); var oe = arguments.length - 2; if (oe === 1) re.children = V; else if (1 < oe) { for (var ge = Array(oe), be = 0; be < oe; be++) ge[be] = arguments[be + 2]; re.children = ge; } if (H && H.defaultProps) for (Z in ((oe = H.defaultProps), oe)) re[Z] === void 0 && (re[Z] = oe[Z]); return E(H, he, void 0, void 0, null, re); }), (ze.createRef = function () { return { current: null }; }), (ze.forwardRef = function (H) { return { $$typeof: u, render: H }; }), (ze.isValidElement = P), (ze.lazy = function (H) { return { $$typeof: d, _payload: { _status: -1, _result: H }, _init: W }; }), (ze.memo = function (H, K) { return { $$typeof: c, type: H, compare: K === void 0 ? null : K }; }), (ze.startTransition = function (H) { var K = w.T, V = {}; w.T = V; try { var Z = H(), re = w.S; (re !== null && re(V, Z), typeof Z == "object" && Z !== null && typeof Z.then == "function" && Z.then(se, Q)); } catch (he) { Q(he); } finally { w.T = K; } }), (ze.unstable_useCacheRefresh = function () { return w.H.useCacheRefresh(); }), (ze.use = function (H) { return w.H.use(H); }), (ze.useActionState = function (H, K, V) { return w.H.useActionState(H, K, V); }), (ze.useCallback = function (H, K) { return w.H.useCallback(H, K); }), (ze.useContext = function (H) { return w.H.useContext(H); }), (ze.useDebugValue = function () {}), (ze.useDeferredValue = function (H, K) { return w.H.useDeferredValue(H, K); }), (ze.useEffect = function (H, K, V) { var Z = w.H; if (typeof V == "function") throw Error( "useEffect CRUD overload is not enabled in this build of React.", ); return Z.useEffect(H, K); }), (ze.useId = function () { return w.H.useId(); }), (ze.useImperativeHandle = function (H, K, V) { return w.H.useImperativeHandle(H, K, V); }), (ze.useInsertionEffect = function (H, K) { return w.H.useInsertionEffect(H, K); }), (ze.useLayoutEffect = function (H, K) { return w.H.useLayoutEffect(H, K); }), (ze.useMemo = function (H, K) { return w.H.useMemo(H, K); }), (ze.useOptimistic = function (H, K) { return w.H.useOptimistic(H, K); }), (ze.useReducer = function (H, K, V) { return w.H.useReducer(H, K, V); }), (ze.useRef = function (H) { return w.H.useRef(H); }), (ze.useState = function (H) { return w.H.useState(H); }), (ze.useSyncExternalStore = function (H, K, V) { return w.H.useSyncExternalStore(H, K, V); }), (ze.useTransition = function () { return w.H.useTransition(); }), (ze.version = "19.1.0-canary-029e8bd6-20250306"), ze ); } var MC; function yr() { return (MC || ((MC = 1), (Ap.exports = CY())), Ap.exports); } var lt = yr(); const $t = tE(lt), ooe = dL({ __proto__: null, default: $t }, [lt]), { defaultDecorateStory: wY } = __STORYBOOK_MODULE_PREVIEW_API__; var rE = (e, t) => wY((r) => $t.createElement(e, r), t), AY = Object.create, Md = Object.defineProperty, SY = Object.getOwnPropertyDescriptor, nE = Object.getOwnPropertyNames, xY = Object.getPrototypeOf, PY = Object.prototype.hasOwnProperty, RY = (e, t) => function () { return (e && (t = (0, e[nE(e)[0]])((e = 0))), t); }, Se = (e, t) => function () { return ( t || (0, e[nE(e)[0]])((t = { exports: {} }).exports, t), t.exports ); }, Bd = (e, t) => { for (var r in t) Md(e, r, { get: t[r], enumerable: !0 }); }, Nq = (e, t, r, n) => { if ((t && typeof t == "object") || typeof t == "function") for (let a of nE(t)) !PY.call(e, a) && a !== r && Md(e, a, { get: () => t[a], enumerable: !(n = SY(t, a)) || n.enumerable, }); return e; }, ri = (e, t, r) => ( (r = e != null ? AY(xY(e)) : {}), Nq( !e || !e.__esModule ? Md(r, "default", { value: e, enumerable: !0 }) : r, e, ) ), BC = (e) => Nq(Md({}, "__esModule", { value: !0 }), e), Sp = {}; const { global: TY } = __STORYBOOK_MODULE_GLOBAL__; var Ld = Se({ "../../node_modules/semver/internal/constants.js"(e, t) { var r = "2.0.0", n = Number.MAX_SAFE_INTEGER || 9007199254740991, a = 16, o = 250, i = [ "major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease", ]; t.exports = { MAX_LENGTH: 256, MAX_SAFE_COMPONENT_LENGTH: a, MAX_SAFE_BUILD_LENGTH: o, MAX_SAFE_INTEGER: n, RELEASE_TYPES: i, SEMVER_SPEC_VERSION: r, FLAG_INCLUDE_PRERELEASE: 1, FLAG_LOOSE: 2, }; }, }), $d = Se({ "../../node_modules/semver/internal/debug.js"(e, t) { var r = typeof process == "object" && Sp && Sp.NODE_DEBUG && /\bsemver\b/i.test(Sp.NODE_DEBUG) ? (...n) => console.error("SEMVER", ...n) : () => {}; t.exports = r; }, }), ks = Se({ "../../node_modules/semver/internal/re.js"(e, t) { var { MAX_SAFE_COMPONENT_LENGTH: r, MAX_SAFE_BUILD_LENGTH: n, MAX_LENGTH: a, } = Ld(), o = $d(); e = t.exports = {}; var i = (e.re = []), u = (e.safeRe = []), l = (e.src = []), c = (e.safeSrc = []), d = (e.t = {}), p = 0, f = "[a-zA-Z0-9-]", h = [ ["\\s", 1], ["\\d", a], [f, n], ], m = (b) => { for (let [g, v] of h) b = b .split(`${g}*`) .join(`${g}{0,${v}}`) .split(`${g}+`) .join(`${g}{1,${v}}`); return b; }, y = (b, g, v) => { let x = m(g), A = p++; (o(b, A, g), (d[b] = A), (l[A] = g), (c[A] = x), (i[A] = new RegExp(g, v ? "g" : void 0)), (u[A] = new RegExp(x, v ? "g" : void 0))); }; (y("NUMERICIDENTIFIER", "0|[1-9]\\d*"), y("NUMERICIDENTIFIERLOOSE", "\\d+"), y("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${f}*`), y( "MAINVERSION", `(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})`, ), y( "MAINVERSIONLOOSE", `(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})`, ), y( "PRERELEASEIDENTIFIER", `(?:${l[d.NONNUMERICIDENTIFIER]}|${l[d.NUMERICIDENTIFIER]})`, ), y( "PRERELEASEIDENTIFIERLOOSE", `(?:${l[d.NONNUMERICIDENTIFIER]}|${l[d.NUMERICIDENTIFIERLOOSE]})`, ), y( "PRERELEASE", `(?:-(${l[d.PRERELEASEIDENTIFIER]}(?:\\.${l[d.PRERELEASEIDENTIFIER]})*))`, ), y( "PRERELEASELOOSE", `(?:-?(${l[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[d.PRERELEASEIDENTIFIERLOOSE]})*))`, ), y("BUILDIDENTIFIER", `${f}+`), y( "BUILD", `(?:\\+(${l[d.BUILDIDENTIFIER]}(?:\\.${l[d.BUILDIDENTIFIER]})*))`, ), y( "FULLPLAIN", `v?${l[d.MAINVERSION]}${l[d.PRERELEASE]}?${l[d.BUILD]}?`, ), y("FULL", `^${l[d.FULLPLAIN]}$`), y( "LOOSEPLAIN", `[v=\\s]*${l[d.MAINVERSIONLOOSE]}${l[d.PRERELEASELOOSE]}?${l[d.BUILD]}?`, ), y("LOOSE", `^${l[d.LOOSEPLAIN]}$`), y("GTLT", "((?:<|>)?=?)"), y("XRANGEIDENTIFIERLOOSE", `${l[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), y("XRANGEIDENTIFIER", `${l[d.NUMERICIDENTIFIER]}|x|X|\\*`), y( "XRANGEPLAIN", `[v=\\s]*(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:${l[d.PRERELEASE]})?${l[d.BUILD]}?)?)?`, ), y( "XRANGEPLAINLOOSE", `[v=\\s]*(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:${l[d.PRERELEASELOOSE]})?${l[d.BUILD]}?)?)?`, ), y("XRANGE", `^${l[d.GTLT]}\\s*${l[d.XRANGEPLAIN]}$`), y("XRANGELOOSE", `^${l[d.GTLT]}\\s*${l[d.XRANGEPLAINLOOSE]}$`), y( "COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`, ), y("COERCE", `${l[d.COERCEPLAIN]}(?:$|[^\\d])`), y( "COERCEFULL", l[d.COERCEPLAIN] + `(?:${l[d.PRERELEASE]})?(?:${l[d.BUILD]})?(?:$|[^\\d])`, ), y("COERCERTL", l[d.COERCE], !0), y("COERCERTLFULL", l[d.COERCEFULL], !0), y("LONETILDE", "(?:~>?)"), y("TILDETRIM", `(\\s*)${l[d.LONETILDE]}\\s+`, !0), (e.tildeTrimReplace = "$1~"), y("TILDE", `^${l[d.LONETILDE]}${l[d.XRANGEPLAIN]}$`), y("TILDELOOSE", `^${l[d.LONETILDE]}${l[d.XRANGEPLAINLOOSE]}$`), y("LONECARET", "(?:\\^)"), y("CARETTRIM", `(\\s*)${l[d.LONECARET]}\\s+`, !0), (e.caretTrimReplace = "$1^"), y("CARET", `^${l[d.LONECARET]}${l[d.XRANGEPLAIN]}$`), y("CARETLOOSE", `^${l[d.LONECARET]}${l[d.XRANGEPLAINLOOSE]}$`), y("COMPARATORLOOSE", `^${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]})$|^$`), y("COMPARATOR", `^${l[d.GTLT]}\\s*(${l[d.FULLPLAIN]})$|^$`), y( "COMPARATORTRIM", `(\\s*)${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]}|${l[d.XRANGEPLAIN]})`, !0, ), (e.comparatorTrimReplace = "$1$2$3"), y( "HYPHENRANGE", `^\\s*(${l[d.XRANGEPLAIN]})\\s+-\\s+(${l[d.XRANGEPLAIN]})\\s*$`, ), y( "HYPHENRANGELOOSE", `^\\s*(${l[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[d.XRANGEPLAINLOOSE]})\\s*$`, ), y("STAR", "(<|>)?=?\\s*\\*"), y("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), y("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$")); }, }), aE = Se({ "../../node_modules/semver/internal/parse-options.js"(e, t) { var r = Object.freeze({ loose: !0 }), n = Object.freeze({}), a = (o) => (o ? (typeof o != "object" ? r : o) : n); t.exports = a; }, }), jq = Se({ "../../node_modules/semver/internal/identifiers.js"(e, t) { var r = /^[0-9]+$/, n = (o, i) => { let u = r.test(o), l = r.test(i); return ( u && l && ((o = +o), (i = +i)), o === i ? 0 : u && !l ? -1 : l && !u ? 1 : o < i ? -1 : 1 ); }, a = (o, i) => n(i, o); t.exports = { compareIdentifiers: n, rcompareIdentifiers: a }; }, }), lr = Se({ "../../node_modules/semver/classes/semver.js"(e, t) { var r = $d(), { MAX_LENGTH: n, MAX_SAFE_INTEGER: a } = Ld(), { safeRe: o, t: i } = ks(), u = aE(), { compareIdentifiers: l } = jq(), c = class tn { constructor(p, f) { if (((f = u(f)), p instanceof tn)) { if ( p.loose === !!f.loose && p.includePrerelease === !!f.includePrerelease ) return p; p = p.version; } else if (typeof p != "string") throw new TypeError( `Invalid version. Must be a string. Got type "${typeof p}".`, ); if (p.length > n) throw new TypeError(`version is longer than ${n} characters`); (r("SemVer", p, f), (this.options = f), (this.loose = !!f.loose), (this.includePrerelease = !!f.includePrerelease)); let h = p.trim().match(f.loose ? o[i.LOOSE] : o[i.FULL]); if (!h) throw new TypeError(`Invalid Version: ${p}`); if ( ((this.raw = p), (this.major = +h[1]), (this.minor = +h[2]), (this.patch = +h[3]), this.major > a || this.major < 0) ) throw new TypeError("Invalid major version"); if (this.minor > a || this.minor < 0) throw new TypeError("Invalid minor version"); if (this.patch > a || this.patch < 0) throw new TypeError("Invalid patch version"); (h[4] ? (this.prerelease = h[4].split(".").map((m) => { if (/^[0-9]+$/.test(m)) { let y = +m; if (y >= 0 && y < a) return y; } return m; })) : (this.prerelease = []), (this.build = h[5] ? h[5].split(".") : []), this.format()); } format() { return ( (this.version = `${this.major}.${this.minor}.${this.patch}`), this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version ); } toString() { return this.version; } compare(p) { if ( (r("SemVer.compare", this.version, this.options, p), !(p instanceof tn)) ) { if (typeof p == "string" && p === this.version) return 0; p = new tn(p, this.options); } return p.version === this.version ? 0 : this.compareMain(p) || this.comparePre(p); } compareMain(p) { return ( p instanceof tn || (p = new tn(p, this.options)), l(this.major, p.major) || l(this.minor, p.minor) || l(this.patch, p.patch) ); } comparePre(p) { if ( (p instanceof tn || (p = new tn(p, this.options)), this.prerelease.length && !p.prerelease.length) ) return -1; if (!this.prerelease.length && p.prerelease.length) return 1; if (!this.prerelease.length && !p.prerelease.length) return 0; let f = 0; do { let h = this.prerelease[f], m = p.prerelease[f]; if ( (r("prerelease compare", f, h, m), h === void 0 && m === void 0) ) return 0; if (m === void 0) return 1; if (h === void 0) return -1; if (h !== m) return l(h, m); } while (++f); } compareBuild(p) { p instanceof tn || (p = new tn(p, this.options)); let f = 0; do { let h = this.build[f], m = p.build[f]; if ((r("build compare", f, h, m), h === void 0 && m === void 0)) return 0; if (m === void 0) return 1; if (h === void 0) return -1; if (h !== m) return l(h, m); } while (++f); } inc(p, f, h) { if (p.startsWith("pre")) { if (!f && h === !1) throw new Error( "invalid increment argument: identifier is empty", ); if (f) { let m = `-${f}`.match( this.options.loose ? o[i.PRERELEASELOOSE] : o[i.PRERELEASE], ); if (!m || m[1] !== f) throw new Error(`invalid identifier: ${f}`); } } switch (p) { case "premajor": ((this.prerelease.length = 0), (this.patch = 0), (this.minor = 0), this.major++, this.inc("pre", f, h)); break; case "preminor": ((this.prerelease.length = 0), (this.patch = 0), this.minor++, this.inc("pre", f, h)); break; case "prepatch": ((this.prerelease.length = 0), this.inc("patch", f, h), this.inc("pre", f, h)); break; case "prerelease": (this.prerelease.length === 0 && this.inc("patch", f, h), this.inc("pre", f, h)); break; case "release": if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`); this.prerelease.length = 0; break; case "major": ((this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, (this.minor = 0), (this.patch = 0), (this.prerelease = [])); break; case "minor": ((this.patch !== 0 || this.prerelease.length === 0) && this.minor++, (this.patch = 0), (this.prerelease = [])); break; case "patch": (this.prerelease.length === 0 && this.patch++, (this.prerelease = [])); break; case "pre": { let m = Number(h) ? 1 : 0; if (this.prerelease.length === 0) this.prerelease = [m]; else { let y = this.prerelease.length; for (; --y >= 0; ) typeof this.prerelease[y] == "number" && (this.prerelease[y]++, (y = -2)); if (y === -1) { if (f === this.prerelease.join(".") && h === !1) throw new Error( "invalid increment argument: identifier already exists", ); this.prerelease.push(m); } } if (f) { let y = [f, m]; (h === !1 && (y = [f]), l(this.prerelease[0], f) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = y) : (this.prerelease = y)); } break; } default: throw new Error(`invalid increment argument: ${p}`); } return ( (this.raw = this.format()), this.build.length && (this.raw += `+${this.build.join(".")}`), this ); } }; t.exports = c; }, }), ni = Se({ "../../node_modules/semver/functions/parse.js"(e, t) { var r = lr(), n = (a, o, i = !1) => { if (a instanceof r) return a; try { return new r(a, o); } catch (u) { if (!i) return null; throw u; } }; t.exports = n; }, }), OY = Se({ "../../node_modules/semver/functions/valid.js"(e, t) { var r = ni(), n = (a, o) => { let i = r(a, o); return i ? i.version : null; }; t.exports = n; }, }), DY = Se({ "../../node_modules/semver/functions/clean.js"(e, t) { var r = ni(), n = (a, o) => { let i = r(a.trim().replace(/^[=v]+/, ""), o); return i ? i.version : null; }; t.exports = n; }, }), FY = Se({ "../../node_modules/semver/functions/inc.js"(e, t) { var r = lr(), n = (a, o, i, u, l) => { typeof i == "string" && ((l = u), (u = i), (i = void 0)); try { return new r(a instanceof r ? a.version : a, i).inc(o, u, l) .version; } catch { return null; } }; t.exports = n; }, }), IY = Se({ "../../node_modules/semver/functions/diff.js"(e, t) { var r = ni(), n = (a, o) => { let i = r(a, null, !0), u = r(o, null, !0), l = i.compare(u); if (l === 0) return null; let c = l > 0, d = c ? i : u, p = c ? u : i, f = !!d.prerelease.length; if (p.prerelease.length && !f) { if (!p.patch && !p.minor) return "major"; if (p.compareMain(d) === 0) return p.minor && !p.patch ? "minor" : "patch"; } let h = f ? "pre" : ""; return i.major !== u.major ? h + "major" : i.minor !== u.minor ? h + "minor" : i.patch !== u.patch ? h + "patch" : "prerelease"; }; t.exports = n; }, }), NY = Se({ "../../node_modules/semver/functions/major.js"(e, t) { var r = lr(), n = (a, o) => new r(a, o).major; t.exports = n; }, }), jY = Se({ "../../node_modules/semver/functions/minor.js"(e, t) { var r = lr(), n = (a, o) => new r(a, o).minor; t.exports = n; }, }), kY = Se({ "../../node_modules/semver/functions/patch.js"(e, t) { var r = lr(), n = (a, o) => new r(a, o).patch; t.exports = n; }, }), qY = Se({ "../../node_modules/semver/functions/prerelease.js"(e, t) { var r = ni(), n = (a, o) => { let i = r(a, o); return i && i.prerelease.length ? i.prerelease : null; }; t.exports = n; }, }), Gr = Se({ "../../node_modules/semver/functions/compare.js"(e, t) { var r = lr(), n = (a, o, i) => new r(a, i).compare(new r(o, i)); t.exports = n; }, }), MY = Se({ "../../node_modules/semver/functions/rcompare.js"(e, t) { var r = Gr(), n = (a, o, i) => r(o, a, i); t.exports = n; }, }), BY = Se({ "../../node_modules/semver/functions/compare-loose.js"(e, t) { var r = Gr(), n = (a, o) => r(a, o, !0); t.exports = n; }, }), oE = Se({ "../../node_modules/semver/functions/compare-build.js"(e, t) { var r = lr(), n = (a, o, i) => { let u = new r(a, i), l = new r(o, i); return u.compare(l) || u.compareBuild(l); }; t.exports = n; }, }), LY = Se({ "../../node_modules/semver/functions/sort.js"(e, t) { var r = oE(), n = (a, o) => a.sort((i, u) => r(i, u, o)); t.exports = n; }, }), $Y = Se({ "../../node_modules/semver/functions/rsort.js"(e, t) { var r = oE(), n = (a, o) => a.sort((i, u) => r(u, i, o)); t.exports = n; }, }), Ud = Se({ "../../node_modules/semver/functions/gt.js"(e, t) { var r = Gr(), n = (a, o, i) => r(a, o, i) > 0; t.exports = n; }, }), iE = Se({ "../../node_modules/semver/functions/lt.js"(e, t) { var r = Gr(), n = (a, o, i) => r(a, o, i) < 0; t.exports = n; }, }), kq = Se({ "../../node_modules/semver/functions/eq.js"(e, t) { var r = Gr(), n = (a, o, i) => r(a, o, i) === 0; t.exports = n; }, }), qq = Se({ "../../node_modules/semver/functions/neq.js"(e, t) { var r = Gr(), n = (a, o, i) => r(a, o, i) !== 0; t.exports = n; }, }), sE = Se({ "../../node_modules/semver/functions/gte.js"(e, t) { var r = Gr(), n = (a, o, i) => r(a, o, i) >= 0; t.exports = n; }, }), uE = Se({ "../../node_modules/semver/functions/lte.js"(e, t) { var r = Gr(), n = (a, o, i) => r(a, o, i) <= 0; t.exports = n; }, }), Mq = Se({ "../../node_modules/semver/functions/cmp.js"(e, t) { var r = kq(), n = qq(), a = Ud(), o = sE(), i = iE(), u = uE(), l = (c, d, p, f) => { switch (d) { case "===": return ( typeof c == "object" && (c = c.version), typeof p == "object" && (p = p.version), c === p ); case "!==": return ( typeof c == "object" && (c = c.version), typeof p == "object" && (p = p.version), c !== p ); case "": case "=": case "==": return r(c, p, f); case "!=": return n(c, p, f); case ">": return a(c, p, f); case ">=": return o(c, p, f); case "<": return i(c, p, f); case "<=": return u(c, p, f); default: throw new TypeError(`Invalid operator: ${d}`); } }; t.exports = l; }, }), UY = Se({ "../../node_modules/semver/functions/coerce.js"(e, t) { var r = lr(), n = ni(), { safeRe: a, t: o } = ks(), i = (u, l) => { if (u instanceof r) return u; if ((typeof u == "number" && (u = String(u)), typeof u != "string")) return null; l = l || {}; let c = null; if (!l.rtl) c = u.match(l.includePrerelease ? a[o.COERCEFULL] : a[o.COERCE]); else { let y = l.includePrerelease ? a[o.COERCERTLFULL] : a[o.COERCERTL], b; for ( ; (b = y.exec(u)) && (!c || c.index + c[0].length !== u.length); ) ((!c || b.index + b[0].length !== c.index + c[0].length) && (c = b), (y.lastIndex = b.index + b[1].length + b[2].length)); y.lastIndex = -1; } if (c === null) return null; let d = c[2], p = c[3] || "0", f = c[4] || "0", h = l.includePrerelease && c[5] ? `-${c[5]}` : "", m = l.includePrerelease && c[6] ? `+${c[6]}` : ""; return n(`${d}.${p}.${f}${h}${m}`, l); }; t.exports = i; }, }), HY = Se({ "../../node_modules/semver/internal/lrucache.js"(e, t) { var r = class { constructor() { ((this.max = 1e3), (this.map = new Map())); } get(n) { let a = this.map.get(n); if (a !== void 0) return (this.map.delete(n), this.map.set(n, a), a); } delete(n) { return this.map.delete(n); } set(n, a) { if (!this.delete(n) && a !== void 0) { if (this.map.size >= this.max) { let o = this.map.keys().next().value; this.delete(o); } this.map.set(n, a); } return this; } }; t.exports = r; }, }), Wr = Se({ "../../node_modules/semver/classes/range.js"(e, t) { var r = /\s+/g, n = class rl { constructor(W, Q) { if (((Q = i(Q)), W instanceof rl)) return W.loose === !!Q.loose && W.includePrerelease === !!Q.includePrerelease ? W : new rl(W.raw, Q); if (W instanceof u) return ( (this.raw = W.value), (this.set = [[W]]), (this.formatted = void 0), this ); if ( ((this.options = Q), (this.loose = !!Q.loose), (this.includePrerelease = !!Q.includePrerelease), (this.raw = W.trim().replace(r, " ")), (this.set = this.raw .split("||") .map((se) => this.parseRange(se.trim())) .filter((se) => se.length)), !this.set.length) ) throw new TypeError(`Invalid SemVer Range: ${this.raw}`); if (this.set.length > 1) { let se = this.set[0]; if ( ((this.set = this.set.filter((H) => !g(H[0]))), this.set.length === 0) ) this.set = [se]; else if (this.set.length > 1) { for (let H of this.set) if (H.length === 1 && v(H[0])) { this.set = [H]; break; } } } this.formatted = void 0; } get range() { if (this.formatted === void 0) { this.formatted = ""; for (let W = 0; W < this.set.length; W++) { W > 0 && (this.formatted += "||"); let Q = this.set[W]; for (let se = 0; se < Q.length; se++) (se > 0 && (this.formatted += " "), (this.formatted += Q[se].toString().trim())); } } return this.formatted; } format() { return this.range; } toString() { return this.range; } parseRange(W) { let Q = ((this.options.includePrerelease && y) | (this.options.loose && b)) + ":" + W, se = o.get(Q); if (se) return se; let H = this.options.loose, K = H ? d[p.HYPHENRANGELOOSE] : d[p.HYPHENRANGE]; ((W = W.replace(K, T(this.options.includePrerelease))), l("hyphen replace", W), (W = W.replace(d[p.COMPARATORTRIM], f)), l("comparator trim", W), (W = W.replace(d[p.TILDETRIM], h)), l("tilde trim", W), (W = W.replace(d[p.CARETTRIM], m)), l("caret trim", W)); let V = W.split(" ") .map((oe) => A(oe, this.options)) .join(" ") .split(/\s+/) .map((oe) => q(oe, this.options)); (H && (V = V.filter( (oe) => ( l("loose invalid filter", oe, this.options), !!oe.match(d[p.COMPARATORLOOSE]) ), )), l("range list", V)); let Z = new Map(), re = V.map((oe) => new u(oe, this.options)); for (let oe of re) { if (g(oe)) return [oe]; Z.set(oe.value, oe); } Z.size > 1 && Z.has("") && Z.delete(""); let he = [...Z.values()]; return (o.set(Q, he), he); } intersects(W, Q) { if (!(W instanceof rl)) throw new TypeError("a Range is required"); return this.set.some( (se) => x(se, Q) && W.set.some( (H) => x(H, Q) && se.every((K) => H.every((V) => K.intersects(V, Q))), ), ); } test(W) { if (!W) return !1; if (typeof W == "string") try { W = new c(W, this.options); } catch { return !1; } for (let Q = 0; Q < this.set.length; Q++) if (k(this.set[Q], W, this.options)) return !0; return !1; } }; t.exports = n; var a = HY(), o = new a(), i = aE(), u = Hd(), l = $d(), c = lr(), { safeRe: d, t: p, comparatorTrimReplace: f, tildeTrimReplace: h, caretTrimReplace: m, } = ks(), { FLAG_INCLUDE_PRERELEASE: y, FLAG_LOOSE: b } = Ld(), g = (I) => I.value === "<0.0.0-0", v = (I) => I.value === "", x = (I, W) => { let Q = !0, se = I.slice(), H = se.pop(); for (; Q && se.length; ) ((Q = se.every((K) => H.intersects(K, W))), (H = se.pop())); return Q; }, A = (I, W) => ( l("comp", I, W), (I = _(I, W)), l("caret", I), (I = C(I, W)), l("tildes", I), (I = D(I, W)), l("xrange", I), (I = L(I, W)), l("stars", I), I ), w = (I) => !I || I.toLowerCase() === "x" || I === "*", C = (I, W) => I.trim() .split(/\s+/) .map((Q) => E(Q, W)) .join(" "), E = (I, W) => { let Q = W.loose ? d[p.TILDELOOSE] : d[p.TILDE]; return I.replace(Q, (se, H, K, V, Z) => { l("tilde", I, se, H, K, V, Z); let re; return ( w(H) ? (re = "") : w(K) ? (re = `>=${H}.0.0 <${+H + 1}.0.0-0`) : w(V) ? (re = `>=${H}.${K}.0 <${H}.${+K + 1}.0-0`) : Z ? (l("replaceTilde pr", Z), (re = `>=${H}.${K}.${V}-${Z} <${H}.${+K + 1}.0-0`)) : (re = `>=${H}.${K}.${V} <${H}.${+K + 1}.0-0`), l("tilde return", re), re ); }); }, _ = (I, W) => I.trim() .split(/\s+/) .map((Q) => P(Q, W)) .join(" "), P = (I, W) => { l("caret", I, W); let Q = W.loose ? d[p.CARETLOOSE] : d[p.CARET], se = W.includePrerelease ? "-0" : ""; return I.replace(Q, (H, K, V, Z, re) => { l("caret", I, H, K, V, Z, re); let he; return ( w(K) ? (he = "") : w(V) ? (he = `>=${K}.0.0${se} <${+K + 1}.0.0-0`) : w(Z) ? K === "0" ? (he = `>=${K}.${V}.0${se} <${K}.${+V + 1}.0-0`) : (he = `>=${K}.${V}.0${se} <${+K + 1}.0.0-0`) : re ? (l("replaceCaret pr", re), K === "0" ? V === "0" ? (he = `>=${K}.${V}.${Z}-${re} <${K}.${V}.${+Z + 1}-0`) : (he = `>=${K}.${V}.${Z}-${re} <${K}.${+V + 1}.0-0`) : (he = `>=${K}.${V}.${Z}-${re} <${+K + 1}.0.0-0`)) : (l("no pr"), K === "0" ? V === "0" ? (he = `>=${K}.${V}.${Z}${se} <${K}.${V}.${+Z + 1}-0`) : (he = `>=${K}.${V}.${Z}${se} <${K}.${+V + 1}.0-0`) : (he = `>=${K}.${V}.${Z} <${+K + 1}.0.0-0`)), l("caret return", he), he ); }); }, D = (I, W) => ( l("replaceXRanges", I, W), I.split(/\s+/) .map((Q) => F(Q, W)) .join(" ") ), F = (I, W) => { I = I.trim(); let Q = W.loose ? d[p.XRANGELOOSE] : d[p.XRANGE]; return I.replace(Q, (se, H, K, V, Z, re) => { l("xRange", I, se, H, K, V, Z, re); let he = w(K), oe = he || w(V), ge = oe || w(Z), be = ge; return ( H === "=" && be && (H = ""), (re = W.includePrerelease ? "-0" : ""), he ? H === ">" || H === "<" ? (se = "<0.0.0-0") : (se = "*") : H && be ? (oe && (V = 0), (Z = 0), H === ">" ? ((H = ">="), oe ? ((K = +K + 1), (V = 0), (Z = 0)) : ((V = +V + 1), (Z = 0))) : H === "<=" && ((H = "<"), oe ? (K = +K + 1) : (V = +V + 1)), H === "<" && (re = "-0"), (se = `${H + K}.${V}.${Z}${re}`)) : oe ? (se = `>=${K}.0.0${re} <${+K + 1}.0.0-0`) : ge && (se = `>=${K}.${V}.0${re} <${K}.${+V + 1}.0-0`), l("xRange return", se), se ); }); }, L = (I, W) => ( l("replaceStars", I, W), I.trim().replace(d[p.STAR], "") ), q = (I, W) => ( l("replaceGTE0", I, W), I.trim().replace(d[W.includePrerelease ? p.GTE0PRE : p.GTE0], "") ), T = (I) => (W, Q, se, H, K, V, Z, re, he, oe, ge, be) => ( w(se) ? (Q = "") : w(H) ? (Q = `>=${se}.0.0${I ? "-0" : ""}`) : w(K) ? (Q = `>=${se}.${H}.0${I ? "-0" : ""}`) : V ? (Q = `>=${Q}`) : (Q = `>=${Q}${I ? "-0" : ""}`), w(he) ? (re = "") : w(oe) ? (re = `<${+he + 1}.0.0-0`) : w(ge) ? (re = `<${he}.${+oe + 1}.0-0`) : be ? (re = `<=${he}.${oe}.${ge}-${be}`) : I ? (re = `<${he}.${oe}.${+ge + 1}-0`) : (re = `<=${re}`), `${Q} ${re}`.trim() ), k = (I, W, Q) => { for (let se = 0; se < I.length; se++) if (!I[se].test(W)) return !1; if (W.prerelease.length && !Q.includePrerelease) { for (let se = 0; se < I.length; se++) if ( (l(I[se].semver), I[se].semver !== u.ANY && I[se].semver.prerelease.length > 0) ) { let H = I[se].semver; if ( H.major === W.major && H.minor === W.minor && H.patch === W.patch ) return !0; } return !1; } return !0; }; }, }), Hd = Se({ "../../node_modules/semver/classes/comparator.js"(e, t) { var r = Symbol("SemVer ANY"), n = class gy { static get ANY() { return r; } constructor(f, h) { if (((h = a(h)), f instanceof gy)) { if (f.loose === !!h.loose) return f; f = f.value; } ((f = f.trim().split(/\s+/).join(" ")), l("comparator", f, h), (this.options = h), (this.loose = !!h.loose), this.parse(f), this.semver === r ? (this.value = "") : (this.value = this.operator + this.semver.version), l("comp", this)); } parse(f) { let h = this.options.loose ? o[i.COMPARATORLOOSE] : o[i.COMPARATOR], m = f.match(h); if (!m) throw new TypeError(`Invalid comparator: ${f}`); ((this.operator = m[1] !== void 0 ? m[1] : ""), this.operator === "=" && (this.operator = ""), m[2] ? (this.semver = new c(m[2], this.options.loose)) : (this.semver = r)); } toString() { return this.value; } test(f) { if ( (l("Comparator.test", f, this.options.loose), this.semver === r || f === r) ) return !0; if (typeof f == "string") try { f = new c(f, this.options); } catch { return !1; } return u(f, this.operator, this.semver, this.options); } intersects(f, h) { if (!(f instanceof gy)) throw new TypeError("a Comparator is required"); return this.operator === "" ? this.value === "" ? !0 : new d(f.value, h).test(this.value) : f.operator === "" ? f.value === "" ? !0 : new d(this.value, h).test(f.semver) : ((h = a(h)), (h.includePrerelease && (this.value === "<0.0.0-0" || f.value === "<0.0.0-0")) || (!h.includePrerelease && (this.value.startsWith("<0.0.0") || f.value.startsWith("<0.0.0"))) ? !1 : !!( (this.operator.startsWith(">") && f.operator.startsWith(">")) || (this.operator.startsWith("<") && f.operator.startsWith("<")) || (this.semver.version === f.semver.version && this.operator.includes("=") && f.operator.includes("=")) || (u(this.semver, "<", f.semver, h) && this.operator.startsWith(">") && f.operator.startsWith("<")) || (u(this.semver, ">", f.semver, h) && this.operator.startsWith("<") && f.operator.startsWith(">")) )); } }; t.exports = n; var a = aE(), { safeRe: o, t: i } = ks(), u = Mq(), l = $d(), c = lr(), d = Wr(); }, }), Vd = Se({ "../../node_modules/semver/functions/satisfies.js"(e, t) { var r = Wr(), n = (a, o, i) => { try { o = new r(o, i); } catch { return !1; } return o.test(a); }; t.exports = n; }, }), VY = Se({ "../../node_modules/semver/ranges/to-comparators.js"(e, t) { var r = Wr(), n = (a, o) => new r(a, o).set.map((i) => i .map((u) => u.value) .join(" ") .trim() .split(" "), ); t.exports = n; }, }), zY = Se({ "../../node_modules/semver/ranges/max-satisfying.js"(e, t) { var r = lr(), n = Wr(), a = (o, i, u) => { let l = null, c = null, d = null; try { d = new n(i, u); } catch { return null; } return ( o.forEach((p) => { d.test(p) && (!l || c.compare(p) === -1) && ((l = p), (c = new r(l, u))); }), l ); }; t.exports = a; }, }), GY = Se({ "../../node_modules/semver/ranges/min-satisfying.js"(e, t) { var r = lr(), n = Wr(), a = (o, i, u) => { let l = null, c = null, d = null; try { d = new n(i, u); } catch { return null; } return ( o.forEach((p) => { d.test(p) && (!l || c.compare(p) === 1) && ((l = p), (c = new r(l, u))); }), l ); }; t.exports = a; }, }), WY = Se({ "../../node_modules/semver/ranges/min-version.js"(e, t) { var r = lr(), n = Wr(), a = Ud(), o = (i, u) => { i = new n(i, u); let l = new r("0.0.0"); if (i.test(l) || ((l = new r("0.0.0-0")), i.test(l))) return l; l = null; for (let c = 0; c < i.set.length; ++c) { let d = i.set[c], p = null; (d.forEach((f) => { let h = new r(f.semver.version); switch (f.operator) { case ">": (h.prerelease.length === 0 ? h.patch++ : h.prerelease.push(0), (h.raw = h.format())); case "": case ">=": (!p || a(h, p)) && (p = h); break; case "<": case "<=": break; default: throw new Error(`Unexpected operation: ${f.operator}`); } }), p && (!l || a(l, p)) && (l = p)); } return l && i.test(l) ? l : null; }; t.exports = o; }, }), JY = Se({ "../../node_modules/semver/ranges/valid.js"(e, t) { var r = Wr(), n = (a, o) => { try { return new r(a, o).range || "*"; } catch { return null; } }; t.exports = n; }, }), lE = Se({ "../../node_modules/semver/ranges/outside.js"(e, t) { var r = lr(), n = Hd(), { ANY: a } = n, o = Wr(), i = Vd(), u = Ud(), l = iE(), c = uE(), d = sE(), p = (f, h, m, y) => { ((f = new r(f, y)), (h = new o(h, y))); let b, g, v, x, A; switch (m) { case ">": ((b = u), (g = c), (v = l), (x = ">"), (A = ">=")); break; case "<": ((b = l), (g = d), (v = u), (x = "<"), (A = "<=")); break; default: throw new TypeError('Must provide a hilo val of "<" or ">"'); } if (i(f, h, y)) return !1; for (let w = 0; w < h.set.length; ++w) { let C = h.set[w], E = null, _ = null; if ( (C.forEach((P) => { (P.semver === a && (P = new n(">=0.0.0")), (E = E || P), (_ = _ || P), b(P.semver, E.semver, y) ? (E = P) : v(P.semver, _.semver, y) && (_ = P)); }), E.operator === x || E.operator === A || ((!_.operator || _.operator === x) && g(f, _.semver)) || (_.operator === A && v(f, _.semver))) ) return !1; } return !0; }; t.exports = p; }, }), XY = Se({ "../../node_modules/semver/ranges/gtr.js"(e, t) { var r = lE(), n = (a, o, i) => r(a, o, ">", i); t.exports = n; }, }), KY = Se({ "../../node_modules/semver/ranges/ltr.js"(e, t) { var r = lE(), n = (a, o, i) => r(a, o, "<", i); t.exports = n; }, }), YY = Se({ "../../node_modules/semver/ranges/intersects.js"(e, t) { var r = Wr(), n = (a, o, i) => ( (a = new r(a, i)), (o = new r(o, i)), a.intersects(o, i) ); t.exports = n; }, }), QY = Se({ "../../node_modules/semver/ranges/simplify.js"(e, t) { var r = Vd(), n = Gr(); t.exports = (a, o, i) => { let u = [], l = null, c = null, d = a.sort((m, y) => n(m, y, i)); for (let m of d) r(m, o, i) ? ((c = m), l || (l = m)) : (c && u.push([l, c]), (c = null), (l = null)); l && u.push([l, null]); let p = []; for (let [m, y] of u) m === y ? p.push(m) : !y && m === d[0] ? p.push("*") : y ? m === d[0] ? p.push(`<=${y}`) : p.push(`${m} - ${y}`) : p.push(`>=${m}`); let f = p.join(" || "), h = typeof o.raw == "string" ? o.raw : String(o); return f.length < h.length ? f : o; }; }, }), ZY = Se({ "../../node_modules/semver/ranges/subset.js"(e, t) { var r = Wr(), n = Hd(), { ANY: a } = n, o = Vd(), i = Gr(), u = (h, m, y = {}) => { if (h === m) return !0; ((h = new r(h, y)), (m = new r(m, y))); let b = !1; e: for (let g of h.set) { for (let v of m.set) { let x = d(g, v, y); if (((b = b || x !== null), x)) continue e; } if (b) return !1; } return !0; }, l = [new n(">=0.0.0-0")], c = [new n(">=0.0.0")], d = (h, m, y) => { if (h === m) return !0; if (h.length === 1 && h[0].semver === a) { if (m.length === 1 && m[0].semver === a) return !0; y.includePrerelease ? (h = l) : (h = c); } if (m.length === 1 && m[0].semver === a) { if (y.includePrerelease) return !0; m = c; } let b = new Set(), g, v; for (let D of h) D.operator === ">" || D.operator === ">=" ? (g = p(g, D, y)) : D.operator === "<" || D.operator === "<=" ? (v = f(v, D, y)) : b.add(D.semver); if (b.size > 1) return null; let x; if ( g && v && ((x = i(g.semver, v.semver, y)), x > 0 || (x === 0 && (g.operator !== ">=" || v.operator !== "<="))) ) return null; for (let D of b) { if ((g && !o(D, String(g), y)) || (v && !o(D, String(v), y))) return null; for (let F of m) if (!o(D, String(F), y)) return !1; return !0; } let A, w, C, E, _ = v && !y.includePrerelease && v.semver.prerelease.length ? v.semver : !1, P = g && !y.includePrerelease && g.semver.prerelease.length ? g.semver : !1; _ && _.prerelease.length === 1 && v.operator === "<" && _.prerelease[0] === 0 && (_ = !1); for (let D of m) { if ( ((E = E || D.operator === ">" || D.operator === ">="), (C = C || D.operator === "<" || D.operator === "<="), g) ) { if ( (P && D.semver.prerelease && D.semver.prerelease.length && D.semver.major === P.major && D.semver.minor === P.minor && D.semver.patch === P.patch && (P = !1), D.operator === ">" || D.operator === ">=") ) { if (((A = p(g, D, y)), A === D && A !== g)) return !1; } else if (g.operator === ">=" && !o(g.semver, String(D), y)) return !1; } if (v) { if ( (_ && D.semver.prerelease && D.semver.prerelease.length && D.semver.major === _.major && D.semver.minor === _.minor && D.semver.patch === _.patch && (_ = !1), D.operator === "<" || D.operator === "<=") ) { if (((w = f(v, D, y)), w === D && w !== v)) return !1; } else if (v.operator === "<=" && !o(v.semver, String(D), y)) return !1; } if (!D.operator && (v || g) && x !== 0) return !1; } return !( (g && C && !v && x !== 0) || (v && E && !g && x !== 0) || P || _ ); }, p = (h, m, y) => { if (!h) return m; let b = i(h.semver, m.semver, y); return b > 0 ? h : b < 0 || (m.operator === ">" && h.operator === ">=") ? m : h; }, f = (h, m, y) => { if (!h) return m; let b = i(h.semver, m.semver, y); return b < 0 ? h : b > 0 || (m.operator === "<" && h.operator === "<=") ? m : h; }; t.exports = u; }, }), eQ = Se({ "../../node_modules/semver/index.js"(e, t) { var r = ks(), n = Ld(), a = lr(), o = jq(), i = ni(), u = OY(), l = DY(), c = FY(), d = IY(), p = NY(), f = jY(), h = kY(), m = qY(), y = Gr(), b = MY(), g = BY(), v = oE(), x = LY(), A = $Y(), w = Ud(), C = iE(), E = kq(), _ = qq(), P = sE(), D = uE(), F = Mq(), L = UY(), q = Hd(), T = Wr(), k = Vd(), I = VY(), W = zY(), Q = GY(), se = WY(), H = JY(), K = lE(), V = XY(), Z = KY(), re = YY(), he = QY(), oe = ZY(); t.exports = { parse: i, valid: u, clean: l, inc: c, diff: d, major: p, minor: f, patch: h, prerelease: m, compare: y, rcompare: b, compareLoose: g, compareBuild: v, sort: x, rsort: A, gt: w, lt: C, eq: E, neq: _, gte: P, lte: D, cmp: F, coerce: L, Comparator: q, Range: T, satisfies: k, toComparators: I, maxSatisfying: W, minSatisfying: Q, minVersion: se, validRange: H, outside: K, gtr: V, ltr: Z, intersects: re, simplifyRange: he, subset: oe, SemVer: a, re: r.re, src: r.src, tokens: r.t, SEMVER_SPEC_VERSION: n.SEMVER_SPEC_VERSION, RELEASE_TYPES: n.RELEASE_TYPES, compareIdentifiers: o.compareIdentifiers, rcompareIdentifiers: o.rcompareIdentifiers, }; }, }), tQ = {}; Bd(tQ, { applyDecorators: () => rE, beforeAll: () => Gq, decorators: () => Vq, mount: () => Hq, parameters: () => zq, render: () => Lq, renderToCanvas: () => Uq, }); var LC = ri(eQ()); function $C(e) { globalThis.IS_REACT_ACT_ENVIRONMENT = e; } function rQ() { return globalThis.IS_REACT_ACT_ENVIRONMENT; } var Bq = async ({ disableAct: e = !1 } = {}) => (t) => t(), Lq = (e, t) => { let { id: r, component: n } = t; if (!n) throw new Error( `Unable to render story ${r} as the component annotation is missing from the default export`, ); return $t.createElement(n, { ...e }); }, { FRAMEWORK_OPTIONS: nQ } = TY, aQ = class extends lt.Component { constructor() { (super(...arguments), (this.state = { hasError: !1 })); } static getDerivedStateFromError() { return { hasError: !0 }; } componentDidMount() { let { hasError: e } = this.state, { showMain: t } = this.props; e || t(); } componentDidCatch(e) { let { showException: t } = this.props; t(e); } render() { let { hasError: e } = this.state, { children: t } = this.props; return e ? null : t; } }, UC = nQ?.strictMode ? lt.StrictMode : lt.Fragment, by = [], xp = !1, $q = async () => { if (xp || by.length === 0) return; xp = !0; let e = by.shift(); (e && (await e()), (xp = !1), $q()); }; async function Uq( { storyContext: e, unboundStoryFn: t, showMain: r, showException: n, forceRemount: a, }, o, ) { let { renderElement: i, unmountElement: u } = await jt( async () => { const { renderElement: f, unmountElement: h } = await import( "./react-18-TXN0K6I-.js" ); return { renderElement: f, unmountElement: h }; }, __vite__mapDeps([34, 3]), ), l = t, c = e.parameters.__isPortableStory ? $t.createElement(l, { ...e }) : $t.createElement( aQ, { key: e.id, showMain: r, showException: n }, $t.createElement(l, { ...e }), ), d = UC ? $t.createElement(UC, null, c) : c; a && u(o); let p = await Bq({ disableAct: e.viewMode === "docs" }); return ( await new Promise(async (f, h) => { (by.push(async () => { try { (await p(async () => { await i(d, o, e?.parameters?.react?.rootOptions); }), f()); } catch (m) { h(m); } }), $q()); }), async () => { await p(() => { u(o); }); } ); } var Hq = (e) => async (t) => ( t != null && (e.originalStoryFn = () => t), await e.renderToCanvas(), e.canvas ), Vq = [ (e, t) => { if (!t.parameters?.react?.rsc) return e(); let r = LC.default.major(lt.version), n = LC.default.minor(lt.version); if (r < 18 || (r === 18 && n < 3)) throw new Error("React Server Components require React >= 18.3"); return lt.createElement(lt.Suspense, null, e()); }, ], zq = { renderer: "react" }, Gq = async () => { try { let { configure: e } = await import(__STORYBOOK_MODULE_TEST__), t = await Bq(); e({ unstable_advanceTimersWrapper: (r) => t(r), asyncWrapper: async (r) => { let n = rQ(); $C(!1); try { let a = await r(); return ( await new Promise((o) => { (setTimeout(() => { o(); }, 0), oQ() && jest.advanceTimersByTime(0)); }), a ); } finally { $C(n); } }, eventWrapper: (r) => { let n; return (t(() => ((n = r()), n)), n); }, }); } catch {} }; function oQ() { return typeof jest < "u" && jest !== null ? setTimeout._isMockFunction === !0 || Object.prototype.hasOwnProperty.call(setTimeout, "clock") : !1; } const iQ = Object.freeze( Object.defineProperty( { __proto__: null, applyDecorators: rE, beforeAll: Gq, decorators: Vq, mount: Hq, parameters: zq, render: Lq, renderToCanvas: Uq, }, Symbol.toStringTag, { value: "Module" }, ), ); var sQ = Se({ "../../node_modules/@base2/pretty-print-object/dist/index.js"(e) { var t = (e && e.__assign) || function () { return ( (t = Object.assign || function (l) { for (var c, d = 1, p = arguments.length; d < p; d++) { c = arguments[d]; for (var f in c) Object.prototype.hasOwnProperty.call(c, f) && (l[f] = c[f]); } return l; }), t.apply(this, arguments) ); }, r = (e && e.__spreadArrays) || function () { for (var l = 0, c = 0, d = arguments.length; c < d; c++) l += arguments[c].length; for (var p = Array(l), f = 0, c = 0; c < d; c++) for (var h = arguments[c], m = 0, y = h.length; m < y; m++, f++) p[f] = h[m]; return p; }; Object.defineProperty(e, "__esModule", { value: !0 }); var n = []; function a(l) { var c = typeof l; return l !== null && (c === "object" || c === "function"); } function o(l) { return Object.prototype.toString.call(l) === "[object RegExp]"; } function i(l) { return Object.getOwnPropertySymbols(l).filter(function (c) { return Object.prototype.propertyIsEnumerable.call(l, c); }); } function u(l, c, d) { d === void 0 && (d = ""); var p = { indent: " ", singleQuotes: !0 }, f = t(t({}, p), c), h; f.inlineCharacterLimit === void 0 ? (h = { newLine: ` `, newLineOrSpace: ` `, pad: d, indent: d + f.indent, }) : (h = { newLine: "@@__PRETTY_PRINT_NEW_LINE__@@", newLineOrSpace: "@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@", pad: "@@__PRETTY_PRINT_PAD__@@", indent: "@@__PRETTY_PRINT_INDENT__@@", }); var m = function (g) { if (f.inlineCharacterLimit === void 0) return g; var v = g .replace(new RegExp(h.newLine, "g"), "") .replace(new RegExp(h.newLineOrSpace, "g"), " ") .replace(new RegExp(h.pad + "|" + h.indent, "g"), ""); return v.length <= f.inlineCharacterLimit ? v : g .replace( new RegExp(h.newLine + "|" + h.newLineOrSpace, "g"), ` `, ) .replace(new RegExp(h.pad, "g"), d) .replace(new RegExp(h.indent, "g"), d + f.indent); }; if (n.indexOf(l) !== -1) return '"[Circular]"'; if ( l == null || typeof l == "number" || typeof l == "boolean" || typeof l == "function" || typeof l == "symbol" || o(l) ) return String(l); if (l instanceof Date) return "new Date('" + l.toISOString() + "')"; if (Array.isArray(l)) { if (l.length === 0) return "[]"; n.push(l); var y = "[" + h.newLine + l .map(function (g, v) { var x = l.length - 1 === v ? h.newLine : "," + h.newLineOrSpace, A = u(g, f, d + f.indent); return ( f.transform && (A = f.transform(l, v, A)), h.indent + A + x ); }) .join("") + h.pad + "]"; return (n.pop(), m(y)); } if (a(l)) { var b = r(Object.keys(l), i(l)); if ( (f.filter && (b = b.filter(function (v) { return f.filter && f.filter(l, v); })), b.length === 0) ) return "{}"; n.push(l); var y = "{" + h.newLine + b .map(function (v, x) { var A = b.length - 1 === x ? h.newLine : "," + h.newLineOrSpace, w = typeof v == "symbol", C = !w && /^[a-z$_][a-z$_0-9]*$/i.test(v.toString()), E = w || C ? v : u(v, f), _ = u(l[v], f, d + f.indent); return ( f.transform && (_ = f.transform(l, v, _)), h.indent + String(E) + ": " + _ + A ); }) .join("") + h.pad + "}"; return (n.pop(), m(y)); } return ( (l = String(l).replace(/[\r\n]/g, function (g) { return g === ` ` ? "\\n" : "\\r"; })), f.singleQuotes ? ((l = l.replace(/\\?'/g, "\\'")), "'" + l + "'") : ((l = l.replace(/"/g, '\\"')), '"' + l + '"') ); } e.prettyPrint = u; }, }), uQ = Se({ "../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"( e, ) { var t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y; y = Symbol.for("react.module.reference"); function b(g) { if (typeof g == "object" && g !== null) { var v = g.$$typeof; switch (v) { case t: switch (((g = g.type), g)) { case n: case o: case a: case d: case p: return g; default: switch (((g = g && g.$$typeof), g)) { case l: case u: case c: case h: case f: case i: return g; default: return v; } } case r: return v; } } } ((e.ContextConsumer = u), (e.ContextProvider = i), (e.Element = t), (e.ForwardRef = c), (e.Fragment = n), (e.Lazy = h), (e.Memo = f), (e.Portal = r), (e.Profiler = o), (e.StrictMode = a), (e.Suspense = d), (e.SuspenseList = p), (e.isAsyncMode = function () { return !1; }), (e.isConcurrentMode = function () { return !1; }), (e.isContextConsumer = function (g) { return b(g) === u; }), (e.isContextProvider = function (g) { return b(g) === i; }), (e.isElement = function (g) { return typeof g == "object" && g !== null && g.$$typeof === t; }), (e.isForwardRef = function (g) { return b(g) === c; }), (e.isFragment = function (g) { return b(g) === n; }), (e.isLazy = function (g) { return b(g) === h; }), (e.isMemo = function (g) { return b(g) === f; }), (e.isPortal = function (g) { return b(g) === r; }), (e.isProfiler = function (g) { return b(g) === o; }), (e.isStrictMode = function (g) { return b(g) === a; }), (e.isSuspense = function (g) { return b(g) === d; }), (e.isSuspenseList = function (g) { return b(g) === p; }), (e.isValidElementType = function (g) { return ( typeof g == "string" || typeof g == "function" || g === n || g === o || g === a || g === d || g === p || g === m || (typeof g == "object" && g !== null && (g.$$typeof === h || g.$$typeof === f || g.$$typeof === i || g.$$typeof === u || g.$$typeof === c || g.$$typeof === y || g.getModuleId !== void 0)) ); }), (e.typeOf = b)); }, }), lQ = Se({ "../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"( e, t, ) { t.exports = uQ(); }, }), Wq = (e) => e.$$typeof === Symbol.for("react.memo"), cQ = (e) => e.$$typeof === Symbol.for("react.forward_ref"); function HC(e) { return Object.prototype.toString.call(e) === "[object Object]"; } function dQ(e) { var t, r; return HC(e) === !1 ? !1 : ((t = e.constructor), t === void 0 ? !0 : ((r = t.prototype), !(HC(r) === !1 || r.hasOwnProperty("isPrototypeOf") === !1))); } var pQ = ri(sQ()), rn = ri(lQ()), Tn = function (e, t) { return e === 0 ? "" : new Array(e * t).fill(" ").join(""); }; function vy(e, t) { (t == null || t > e.length) && (t = e.length); for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r]; return n; } function fQ(e) { if (Array.isArray(e)) return vy(e); } function hQ(e, t, r) { return ( (t = EQ(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0, }) : (e[t] = r), e ); } function mQ(e) { if ( (typeof Symbol < "u" && e[Symbol.iterator] != null) || e["@@iterator"] != null ) return Array.from(e); } function yQ() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function VC(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); (t && (n = n.filter(function (a) { return Object.getOwnPropertyDescriptor(e, a).enumerable; })), r.push.apply(r, n)); } return r; } function gQ(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? VC(Object(r), !0).forEach(function (n) { hQ(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : VC(Object(r)).forEach(function (n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } function bQ(e) { return fQ(e) || mQ(e) || _Q(e) || yQ(); } function vQ(e, t) { if (typeof e != "object" || !e) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var n = r.call(e, t); if (typeof n != "object") return n; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function EQ(e) { var t = vQ(e, "string"); return typeof t == "symbol" ? t : t + ""; } function ds(e) { "@babel/helpers - typeof"; return ( (ds = 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; }), ds(e) ); } function _Q(e, t) { if (e) { if (typeof e == "string") return vy(e, t); var r = {}.toString.call(e).slice(8, -1); return ( r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? vy(e, t) : void 0 ); } } function Ey(e, t) { if ( e === null || ds(e) !== "object" || e instanceof Date || e instanceof RegExp ) return e; if (lt.isValidElement(e)) { var r = gQ({}, e); return (delete r._owner, r); } return ( t.add(e), Array.isArray(e) ? e.map(function (n) { return Ey(n, t); }) : Object.keys(e) .sort() .reduce(function (n, a) { return ( a === "current" || t.has(e[a]) ? (n[a] = "[Circular]") : (n[a] = Ey(e[a], t)), n ); }, {}) ); } function CQ(e) { return Ey(e, new WeakSet()); } var Jq = function (e) { return { type: "string", value: e }; }, wQ = function (e) { return { type: "number", value: e }; }, AQ = function (e, t, r, n) { return { type: "ReactElement", displayName: e, props: t, defaultProps: r, childrens: n, }; }, SQ = function (e, t) { return { type: "ReactFragment", key: e, childrens: t }; }, xQ = !!lt.Fragment, Xq = function (e) { return !e.name || e.name === "_default" ? "No Display Name" : e.name; }, _y = function (e) { switch (!0) { case !!e.displayName: return e.displayName; case e.$$typeof === rn.Memo: return _y(e.type); case e.$$typeof === rn.ForwardRef: return _y(e.render); default: return Xq(e); } }, PQ = function (e) { switch (!0) { case typeof e.type == "string": return e.type; case typeof e.type == "function": return e.type.displayName ? e.type.displayName : Xq(e.type); case (0, rn.isForwardRef)(e): case (0, rn.isMemo)(e): return _y(e.type); case (0, rn.isContextConsumer)(e): return "".concat(e.type._context.displayName || "Context", ".Consumer"); case (0, rn.isContextProvider)(e): return "".concat(e.type._context.displayName || "Context", ".Provider"); case (0, rn.isLazy)(e): return "Lazy"; case (0, rn.isProfiler)(e): return "Profiler"; case (0, rn.isStrictMode)(e): return "StrictMode"; case (0, rn.isSuspense)(e): return "Suspense"; default: return "UnknownElementType"; } }, zC = function (e, t) { return t !== "children"; }, RQ = function (e) { return e !== !0 && e !== !1 && e !== null && e !== ""; }, GC = function (e, t) { var r = {}; return ( Object.keys(e) .filter(function (n) { return t(e[n], n); }) .forEach(function (n) { return (r[n] = e[n]); }), r ); }, zd = function (e, t) { var r = t.displayName, n = r === void 0 ? PQ : r; if (typeof e == "string") return Jq(e); if (typeof e == "number") return wQ(e); if (!$t.isValidElement(e)) throw new Error( "react-element-to-jsx-string: Expected a React.Element, got `".concat( ds(e), "`", ), ); var a = n(e), o = GC(e.props, zC); e.ref !== null && (o.ref = e.ref); var i = e.key; typeof i == "string" && i.search(/^\./) && (o.key = i); var u = GC(e.type.defaultProps || {}, zC), l = $t.Children.toArray(e.props.children) .filter(RQ) .map(function (c) { return zd(c, t); }); return xQ && e.type === lt.Fragment ? SQ(i, l) : AQ(a, o, u, l); }; function TQ() {} var OQ = function (e) { return e .toString() .split( ` `, ) .map(function (t) { return t.trim(); }) .join(""); }, WC = OQ, Kq = function (e, t) { var r = t.functionValue, n = r === void 0 ? WC : r, a = t.showFunctions; return n(!a && n === WC ? TQ : e); }, DQ = function (e, t, r, n) { var a = CQ(e), o = (0, pQ.prettyPrint)(a, { transform: function (i, u, l) { var c = i[u]; return c && lt.isValidElement(c) ? Gd(zd(c, n), !0, r, n) : typeof c == "function" ? Kq(c, n) : l; }, }); return t ? o .replace(/\s+/g, " ") .replace(/{ /g, "{") .replace(/ }/g, "}") .replace(/\[ /g, "[") .replace(/ ]/g, "]") : o.replace(/\t/g, Tn(1, n.tabStop)).replace( /\n([^$])/g, ` `.concat(Tn(r + 1, n.tabStop), "$1"), ); }, FQ = function (e) { return e.replace(/"/g, """); }, IQ = function (e, t, r, n) { if (typeof e == "number") return "{".concat(String(e), "}"); if (typeof e == "string") return '"'.concat(FQ(e), '"'); if (ds(e) === "symbol") { var a = e .valueOf() .toString() .replace(/Symbol\((.*)\)/, "$1"); return a ? "{Symbol('".concat(a, "')}") : "{Symbol()}"; } return typeof e == "function" ? "{".concat(Kq(e, n), "}") : lt.isValidElement(e) ? "{".concat(Gd(zd(e, n), !0, r, n), "}") : e instanceof Date ? isNaN(e.valueOf()) ? "{new Date(NaN)}" : '{new Date("'.concat(e.toISOString(), '")}') : dQ(e) || Array.isArray(e) ? "{".concat(DQ(e, t, r, n), "}") : "{".concat(String(e), "}"); }, NQ = function (e, t, r, n, a, o, i, u) { if (!t && !n) throw new Error( 'The prop "'.concat( e, '" has no value and no default: could not be formatted', ), ); var l = t ? r : a, c = u.useBooleanShorthandSyntax, d = u.tabStop, p = IQ(l, o, i, u), f = " ", h = ` `.concat(Tn(i + 1, d)), m = p.includes(` `); return ( c && p === "{false}" && !n ? ((f = ""), (h = "")) : c && p === "{true}" ? ((f += "".concat(e)), (h += "".concat(e))) : ((f += "".concat(e, "=").concat(p)), (h += "".concat(e, "=").concat(p))), { attributeFormattedInline: f, attributeFormattedMultiline: h, isMultilineAttribute: m, } ); }, jQ = function (e, t) { var r = e.slice(0, e.length > 0 ? e.length - 1 : 0), n = e[e.length - 1]; return ( n && (t.type === "string" || t.type === "number") && (n.type === "string" || n.type === "number") ? r.push(Jq(String(n.value) + String(t.value))) : (n && r.push(n), r.push(t)), r ); }, kQ = function (e) { return ["key", "ref"].includes(e); }, qQ = function (e) { return function (t) { var r = t.includes("key"), n = t.includes("ref"), a = t.filter(function (i) { return !kQ(i); }), o = bQ(e ? a.sort() : a); return (n && o.unshift("ref"), r && o.unshift("key"), o); }; }; function MQ(e, t) { return Array.isArray(t) ? function (r) { return t.indexOf(r) === -1; } : function (r) { return t(e[r], r); }; } var BQ = function (e, t, r, n, a) { var o = a.tabStop; return e.type === "string" ? t .split( ` `, ) .map(function (i, u) { return u === 0 ? i : "".concat(Tn(n, o)).concat(i); }).join(` `) : t; }, LQ = function (e, t, r) { return function (n) { return BQ(n, Gd(n, e, t, r), e, t, r); }; }, $Q = function (e, t) { return function (r) { var n = Object.keys(e).includes(r); return !n || (n && e[r] !== t[r]); }; }, Yq = function (e, t, r, n, a) { return a ? Tn(r, n).length + t.length > a : e.length > 1; }, UQ = function (e, t, r, n, a, o, i) { return (Yq(e, t, a, o, i) || r) && !n; }, Qq = function (e, t, r, n) { var a = e.type, o = e.displayName, i = o === void 0 ? "" : o, u = e.childrens, l = e.props, c = l === void 0 ? {} : l, d = e.defaultProps, p = d === void 0 ? {} : d; if (a !== "ReactElement") throw new Error( 'The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat( a, ), ); var f = n.filterProps, h = n.maxInlineAttributesLineLength, m = n.showDefaultProps, y = n.sortProps, b = n.tabStop, g = "<".concat(i), v = g, x = g, A = !1, w = [], C = MQ(c, f); (Object.keys(c) .filter(C) .filter($Q(p, c)) .forEach(function (P) { return w.push(P); }), Object.keys(p) .filter(C) .filter(function () { return m; }) .filter(function (P) { return !w.includes(P); }) .forEach(function (P) { return w.push(P); })); var E = qQ(y)(w); if ( (E.forEach(function (P) { var D = NQ( P, Object.keys(c).includes(P), c[P], Object.keys(p).includes(P), p[P], t, r, n, ), F = D.attributeFormattedInline, L = D.attributeFormattedMultiline, q = D.isMultilineAttribute; (q && (A = !0), (v += F), (x += L)); }), (x += ` `.concat(Tn(r, b))), UQ(E, v, A, t, r, b, h) ? (g = x) : (g = v), u && u.length > 0) ) { var _ = r + 1; ((g += ">"), t || ((g += ` `), (g += Tn(_, b))), (g += u .reduce(jQ, []) .map(LQ(t, _, n)) .join( t ? "" : ` `.concat(Tn(_, b)), )), t || ((g += ` `), (g += Tn(_ - 1, b))), (g += ""))); } else (Yq(E, v, r, b, h) || (g += " "), (g += "/>")); return g; }, HQ = "", JC = "React.Fragment", VQ = function (e, t, r) { var n = {}; return ( t && (n = { key: t }), { type: "ReactElement", displayName: e, props: n, defaultProps: {}, childrens: r, } ); }, zQ = function (e) { var t = e.key; return !!t; }, GQ = function (e) { var t = e.childrens; return t.length === 0; }, WQ = function (e, t, r, n) { var a = e.type, o = e.key, i = e.childrens; if (a !== "ReactFragment") throw new Error( 'The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat( a, ), ); var u = n.useFragmentShortSyntax, l; return ( u ? (GQ(e) || zQ(e) ? (l = JC) : (l = HQ)) : (l = JC), Qq(VQ(l, o, i), t, r, n) ); }, JQ = ["<", ">", "{", "}"], XQ = function (e) { return JQ.some(function (t) { return e.includes(t); }); }, KQ = function (e) { return XQ(e) ? "{`".concat(e, "`}") : e; }, YQ = function (e) { var t = e; return ( t.endsWith(" ") && (t = t.replace(/^(.*?)(\s+)$/, "$1{'$2'}")), t.startsWith(" ") && (t = t.replace(/^(\s+)(.*)$/, "{'$1'}$2")), t ); }, Gd = function (e, t, r, n) { if (e.type === "number") return String(e.value); if (e.type === "string") return e.value ? "".concat(YQ(KQ(String(e.value)))) : ""; if (e.type === "ReactElement") return Qq(e, t, r, n); if (e.type === "ReactFragment") return WQ(e, t, r, n); throw new TypeError('Unknow format type "'.concat(e.type, '"')); }, QQ = function (e, t) { return Gd(e, !1, 0, t); }, Zq = function (e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.filterProps, n = r === void 0 ? [] : r, a = t.showDefaultProps, o = a === void 0 ? !0 : a, i = t.showFunctions, u = i === void 0 ? !1 : i, l = t.functionValue, c = t.tabStop, d = c === void 0 ? 2 : c, p = t.useBooleanShorthandSyntax, f = p === void 0 ? !0 : p, h = t.useFragmentShortSyntax, m = h === void 0 ? !0 : h, y = t.sortProps, b = y === void 0 ? !0 : y, g = t.maxInlineAttributesLineLength, v = t.displayName; if (!e) throw new Error("react-element-to-jsx-string: Expected a ReactElement"); var x = { filterProps: n, showDefaultProps: o, showFunctions: u, functionValue: l, tabStop: d, useBooleanShorthandSyntax: f, useFragmentShortSyntax: m, sortProps: b, maxInlineAttributesLineLength: g, displayName: v, }; return QQ(zd(e, x), x); }, ZQ = Object.create, cE = Object.defineProperty, eZ = Object.getOwnPropertyDescriptor, tZ = Object.getOwnPropertyNames, rZ = Object.getPrototypeOf, nZ = Object.prototype.hasOwnProperty, $ = (e, t) => cE(e, "name", { value: t, configurable: !0 }), aZ = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), oZ = (e, t, r, n) => { if ((t && typeof t == "object") || typeof t == "function") for (let a of tZ(t)) !nZ.call(e, a) && a !== r && cE(e, a, { get: () => t[a], enumerable: !(n = eZ(t, a)) || n.enumerable, }); return e; }, iZ = (e, t, r) => ( (r = e != null ? ZQ(rZ(e)) : {}), oZ(cE(r, "default", { value: e, enumerable: !0 }), e) ), sZ = aZ((e, t) => { (function (r, n) { typeof e == "object" && typeof t < "u" ? n(e) : typeof define == "function" && define.amd ? define(["exports"], n) : ((r = typeof globalThis < "u" ? globalThis : r || self), n((r.jtpp = {}))); })(e, function (r) { function n(S) { return S.text !== void 0 && S.text !== "" ? `'${S.type}' with value '${S.text}'` : `'${S.type}'`; } $(n, "tokenToString"); let a = class eM extends Error { constructor(M) { (super(`No parslet found for token: ${n(M)}`), (this.token = M), Object.setPrototypeOf(this, eM.prototype)); } getToken() { return this.token; } }; $(a, "NoParsletFoundError"); let o = a, i = class tM extends Error { constructor(M) { (super(`The parsing ended early. The next token was: ${n(M)}`), (this.token = M), Object.setPrototypeOf(this, tM.prototype)); } getToken() { return this.token; } }; $(i, "EarlyEndOfParseError"); let u = i, l = class rM extends Error { constructor(M, Y) { let pe = `Unexpected type: '${M.type}'.`; (Y !== void 0 && (pe += ` Message: ${Y}`), super(pe), Object.setPrototypeOf(this, rM.prototype)); } }; $(l, "UnexpectedTypeError"); let c = l; function d(S) { return (M) => (M.startsWith(S) ? { type: S, text: S } : null); } $(d, "makePunctuationRule"); function p(S) { let M = 0, Y, pe = S[0], _e = !1; if (pe !== "'" && pe !== '"') return null; for (; M < S.length; ) { if ((M++, (Y = S[M]), !_e && Y === pe)) { M++; break; } _e = !_e && Y === "\\"; } if (Y !== pe) throw new Error("Unterminated String"); return S.slice(0, M); } $(p, "getQuoted"); let f = new RegExp( "[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}", "u", ), h = new RegExp( "[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}", "u", ); function m(S) { let M = S[0]; if (!f.test(M)) return null; let Y = 1; do { if (((M = S[Y]), !h.test(M))) break; Y++; } while (Y < S.length); return S.slice(0, Y); } $(m, "getIdentifier"); let y = /^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/; function b(S) { var M, Y; return (Y = (M = y.exec(S)) === null || M === void 0 ? void 0 : M[0]) !== null && Y !== void 0 ? Y : null; } $(b, "getNumber"); let g = $((S) => { let M = m(S); return M == null ? null : { type: "Identifier", text: M }; }, "identifierRule"); function v(S) { return (M) => { if (!M.startsWith(S)) return null; let Y = M[S.length]; return Y !== void 0 && h.test(Y) ? null : { type: S, text: S }; }; } $(v, "makeKeyWordRule"); let x = $((S) => { let M = p(S); return M == null ? null : { type: "StringValue", text: M }; }, "stringValueRule"), A = $( (S) => (S.length > 0 ? null : { type: "EOF", text: "" }), "eofRule", ), w = $((S) => { let M = b(S); return M === null ? null : { type: "Number", text: M }; }, "numberRule"), C = [ A, d("=>"), d("("), d(")"), d("{"), d("}"), d("["), d("]"), d("|"), d("&"), d("<"), d(">"), d(","), d(";"), d("*"), d("?"), d("!"), d("="), d(":"), d("..."), d("."), d("#"), d("~"), d("/"), d("@"), v("undefined"), v("null"), v("function"), v("this"), v("new"), v("module"), v("event"), v("external"), v("typeof"), v("keyof"), v("readonly"), v("import"), v("is"), v("in"), v("asserts"), w, g, x, ], E = /^\s*\n\s*/, _ = class nl { static create(M) { let Y = this.read(M); M = Y.text; let pe = this.read(M); return ((M = pe.text), new nl(M, void 0, Y.token, pe.token)); } constructor(M, Y, pe, _e) { ((this.text = ""), (this.text = M), (this.previous = Y), (this.current = pe), (this.next = _e)); } static read(M, Y = !1) { ((Y = Y || E.test(M)), (M = M.trim())); for (let pe of C) { let _e = pe(M); if (_e !== null) { let Fe = Object.assign(Object.assign({}, _e), { startOfLine: Y, }); return ((M = M.slice(Fe.text.length)), { text: M, token: Fe }); } } throw new Error("Unexpected Token " + M); } advance() { let M = nl.read(this.text); return new nl(M.text, this.current, this.next, M.token); } }; $(_, "Lexer"); let P = _; function D(S) { if (S === void 0) throw new Error("Unexpected undefined"); if ( S.type === "JsdocTypeKeyValue" || S.type === "JsdocTypeParameterList" || S.type === "JsdocTypeProperty" || S.type === "JsdocTypeReadonlyProperty" || S.type === "JsdocTypeObjectField" || S.type === "JsdocTypeJsdocObjectField" || S.type === "JsdocTypeIndexSignature" || S.type === "JsdocTypeMappedType" ) throw new c(S); return S; } $(D, "assertRootResult"); function F(S) { return S.type === "JsdocTypeKeyValue" ? q(S) : D(S); } $(F, "assertPlainKeyValueOrRootResult"); function L(S) { return S.type === "JsdocTypeName" ? S : q(S); } $(L, "assertPlainKeyValueOrNameResult"); function q(S) { if (S.type !== "JsdocTypeKeyValue") throw new c(S); return S; } $(q, "assertPlainKeyValueResult"); function T(S) { var M; if (S.type === "JsdocTypeVariadic") { if ( ((M = S.element) === null || M === void 0 ? void 0 : M.type) === "JsdocTypeName" ) return S; throw new c(S); } if (S.type !== "JsdocTypeNumber" && S.type !== "JsdocTypeName") throw new c(S); return S; } $(T, "assertNumberOrVariadicNameResult"); function k(S) { return ( S.type === "JsdocTypeIndexSignature" || S.type === "JsdocTypeMappedType" ); } $(k, "isSquaredProperty"); var I; (function (S) { ((S[(S.ALL = 0)] = "ALL"), (S[(S.PARAMETER_LIST = 1)] = "PARAMETER_LIST"), (S[(S.OBJECT = 2)] = "OBJECT"), (S[(S.KEY_VALUE = 3)] = "KEY_VALUE"), (S[(S.INDEX_BRACKETS = 4)] = "INDEX_BRACKETS"), (S[(S.UNION = 5)] = "UNION"), (S[(S.INTERSECTION = 6)] = "INTERSECTION"), (S[(S.PREFIX = 7)] = "PREFIX"), (S[(S.INFIX = 8)] = "INFIX"), (S[(S.TUPLE = 9)] = "TUPLE"), (S[(S.SYMBOL = 10)] = "SYMBOL"), (S[(S.OPTIONAL = 11)] = "OPTIONAL"), (S[(S.NULLABLE = 12)] = "NULLABLE"), (S[(S.KEY_OF_TYPE_OF = 13)] = "KEY_OF_TYPE_OF"), (S[(S.FUNCTION = 14)] = "FUNCTION"), (S[(S.ARROW = 15)] = "ARROW"), (S[(S.ARRAY_BRACKETS = 16)] = "ARRAY_BRACKETS"), (S[(S.GENERIC = 17)] = "GENERIC"), (S[(S.NAME_PATH = 18)] = "NAME_PATH"), (S[(S.PARENTHESIS = 19)] = "PARENTHESIS"), (S[(S.SPECIAL_TYPES = 20)] = "SPECIAL_TYPES")); })(I || (I = {})); let W = class { constructor(M, Y, pe) { ((this.grammar = M), typeof Y == "string" ? (this._lexer = P.create(Y)) : (this._lexer = Y), (this.baseParser = pe)); } get lexer() { return this._lexer; } parse() { let M = this.parseType(I.ALL); if (this.lexer.current.type !== "EOF") throw new u(this.lexer.current); return M; } parseType(M) { return D(this.parseIntermediateType(M)); } parseIntermediateType(M) { let Y = this.tryParslets(null, M); if (Y === null) throw new o(this.lexer.current); return this.parseInfixIntermediateType(Y, M); } parseInfixIntermediateType(M, Y) { let pe = this.tryParslets(M, Y); for (; pe !== null; ) ((M = pe), (pe = this.tryParslets(M, Y))); return M; } tryParslets(M, Y) { for (let pe of this.grammar) { let _e = pe(this, Y, M); if (_e !== null) return _e; } return null; } consume(M) { return ( Array.isArray(M) || (M = [M]), M.includes(this.lexer.current.type) ? ((this._lexer = this.lexer.advance()), !0) : !1 ); } acceptLexerState(M) { this._lexer = M.lexer; } }; $(W, "Parser"); let Q = W; function se(S) { return S === "EOF" || S === "|" || S === "," || S === ")" || S === ">"; } $(se, "isQuestionMarkUnknownType"); let H = $((S, M, Y) => { let pe = S.lexer.current.type, _e = S.lexer.next.type; return (Y == null && pe === "?" && !se(_e)) || (Y != null && pe === "?") ? (S.consume("?"), Y == null ? { type: "JsdocTypeNullable", element: S.parseType(I.NULLABLE), meta: { position: "prefix" }, } : { type: "JsdocTypeNullable", element: D(Y), meta: { position: "suffix" }, }) : null; }, "nullableParslet"); function K(S) { let M = $((Y, pe, _e) => { let Fe = Y.lexer.current.type, Ve = Y.lexer.next.type; if (_e === null) { if ("parsePrefix" in S && S.accept(Fe, Ve)) return S.parsePrefix(Y); } else if ("parseInfix" in S && S.precedence > pe && S.accept(Fe, Ve)) return S.parseInfix(Y, _e); return null; }, "parslet"); return (Object.defineProperty(M, "name", { value: S.name }), M); } $(K, "composeParslet"); let V = K({ name: "optionalParslet", accept: $((S) => S === "=", "accept"), precedence: I.OPTIONAL, parsePrefix: $( (S) => ( S.consume("="), { type: "JsdocTypeOptional", element: S.parseType(I.OPTIONAL), meta: { position: "prefix" }, } ), "parsePrefix", ), parseInfix: $( (S, M) => ( S.consume("="), { type: "JsdocTypeOptional", element: D(M), meta: { position: "suffix" }, } ), "parseInfix", ), }), Z = K({ name: "numberParslet", accept: $((S) => S === "Number", "accept"), parsePrefix: $((S) => { let M = parseFloat(S.lexer.current.text); return (S.consume("Number"), { type: "JsdocTypeNumber", value: M }); }, "parsePrefix"), }), re = K({ name: "parenthesisParslet", accept: $((S) => S === "(", "accept"), parsePrefix: $((S) => { if ((S.consume("("), S.consume(")"))) return { type: "JsdocTypeParameterList", elements: [] }; let M = S.parseIntermediateType(I.ALL); if (!S.consume(")")) throw new Error("Unterminated parenthesis"); return M.type === "JsdocTypeParameterList" ? M : M.type === "JsdocTypeKeyValue" ? { type: "JsdocTypeParameterList", elements: [M] } : { type: "JsdocTypeParenthesis", element: D(M) }; }, "parsePrefix"), }), he = K({ name: "specialTypesParslet", accept: $( (S, M) => (S === "?" && se(M)) || S === "null" || S === "undefined" || S === "*", "accept", ), parsePrefix: $((S) => { if (S.consume("null")) return { type: "JsdocTypeNull" }; if (S.consume("undefined")) return { type: "JsdocTypeUndefined" }; if (S.consume("*")) return { type: "JsdocTypeAny" }; if (S.consume("?")) return { type: "JsdocTypeUnknown" }; throw new Error("Unacceptable token: " + S.lexer.current.text); }, "parsePrefix"), }), oe = K({ name: "notNullableParslet", accept: $((S) => S === "!", "accept"), precedence: I.NULLABLE, parsePrefix: $( (S) => ( S.consume("!"), { type: "JsdocTypeNotNullable", element: S.parseType(I.NULLABLE), meta: { position: "prefix" }, } ), "parsePrefix", ), parseInfix: $( (S, M) => ( S.consume("!"), { type: "JsdocTypeNotNullable", element: D(M), meta: { position: "suffix" }, } ), "parseInfix", ), }); function ge({ allowTrailingComma: S }) { return K({ name: "parameterListParslet", accept: $((M) => M === ",", "accept"), precedence: I.PARAMETER_LIST, parseInfix: $((M, Y) => { let pe = [F(Y)]; M.consume(","); do try { let _e = M.parseIntermediateType(I.PARAMETER_LIST); pe.push(F(_e)); } catch (_e) { if (S && _e instanceof o) break; throw _e; } while (M.consume(",")); if ( pe.length > 0 && pe.slice(0, -1).some((_e) => _e.type === "JsdocTypeVariadic") ) throw new Error( "Only the last parameter may be a rest parameter", ); return { type: "JsdocTypeParameterList", elements: pe }; }, "parseInfix"), }); } $(ge, "createParameterListParslet"); let be = K({ name: "genericParslet", accept: $((S, M) => S === "<" || (S === "." && M === "<"), "accept"), precedence: I.GENERIC, parseInfix: $((S, M) => { let Y = S.consume("."); S.consume("<"); let pe = []; do pe.push(S.parseType(I.PARAMETER_LIST)); while (S.consume(",")); if (!S.consume(">")) throw new Error("Unterminated generic parameter list"); return { type: "JsdocTypeGeneric", left: D(M), elements: pe, meta: { brackets: "angle", dot: Y }, }; }, "parseInfix"), }), rt = K({ name: "unionParslet", accept: $((S) => S === "|", "accept"), precedence: I.UNION, parseInfix: $((S, M) => { S.consume("|"); let Y = []; do Y.push(S.parseType(I.UNION)); while (S.consume("|")); return { type: "JsdocTypeUnion", elements: [D(M), ...Y] }; }, "parseInfix"), }), Ke = [H, V, Z, re, he, oe, ge({ allowTrailingComma: !0 }), be, rt, V]; function z({ allowSquareBracketsOnAnyType: S, allowJsdocNamePaths: M, pathGrammar: Y, }) { return $(function (pe, _e, Fe) { if (Fe == null || _e >= I.NAME_PATH) return null; let Ve = pe.lexer.current.type, Tt = pe.lexer.next.type; if ( !( (Ve === "." && Tt !== "<") || (Ve === "[" && (S || Fe.type === "JsdocTypeName")) || (M && (Ve === "~" || Ve === "#")) ) ) return null; let Nt, tr = !1; pe.consume(".") ? (Nt = "property") : pe.consume("[") ? ((Nt = "property-brackets"), (tr = !0)) : pe.consume("~") ? (Nt = "inner") : (pe.consume("#"), (Nt = "instance")); let mn = Y !== null ? new Q(Y, pe.lexer, pe) : pe, Mr = mn.parseIntermediateType(I.NAME_PATH); pe.acceptLexerState(mn); let ii; switch (Mr.type) { case "JsdocTypeName": ii = { type: "JsdocTypeProperty", value: Mr.value, meta: { quote: void 0 }, }; break; case "JsdocTypeNumber": ii = { type: "JsdocTypeProperty", value: Mr.value.toString(10), meta: { quote: void 0 }, }; break; case "JsdocTypeStringValue": ii = { type: "JsdocTypeProperty", value: Mr.value, meta: { quote: Mr.meta.quote }, }; break; case "JsdocTypeSpecialNamePath": if (Mr.specialType === "event") ii = Mr; else throw new c( Mr, "Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'", ); break; default: throw new c( Mr, "Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'", ); } if (tr && !pe.consume("]")) { let HE = pe.lexer.current; throw new Error( `Unterminated square brackets. Next token is '${HE.type}' with text '${HE.text}'`, ); } return { type: "JsdocTypeNamePath", left: D(Fe), right: ii, pathType: Nt, }; }, "namePathParslet"); } $(z, "createNamePathParslet"); function ne({ allowedAdditionalTokens: S }) { return K({ name: "nameParslet", accept: $( (M) => M === "Identifier" || M === "this" || M === "new" || S.includes(M), "accept", ), parsePrefix: $((M) => { let { type: Y, text: pe } = M.lexer.current; return (M.consume(Y), { type: "JsdocTypeName", value: pe }); }, "parsePrefix"), }); } $(ne, "createNameParslet"); let ue = K({ name: "stringValueParslet", accept: $((S) => S === "StringValue", "accept"), parsePrefix: $((S) => { let M = S.lexer.current.text; return ( S.consume("StringValue"), { type: "JsdocTypeStringValue", value: M.slice(1, -1), meta: { quote: M[0] === "'" ? "single" : "double" }, } ); }, "parsePrefix"), }); function te({ pathGrammar: S, allowedTypes: M }) { return K({ name: "specialNamePathParslet", accept: $((Y) => M.includes(Y), "accept"), parsePrefix: $((Y) => { let pe = Y.lexer.current.type; if ((Y.consume(pe), !Y.consume(":"))) return { type: "JsdocTypeName", value: pe }; let _e, Fe = Y.lexer.current; if (Y.consume("StringValue")) _e = { type: "JsdocTypeSpecialNamePath", value: Fe.text.slice(1, -1), specialType: pe, meta: { quote: Fe.text[0] === "'" ? "single" : "double" }, }; else { let Nt = "", tr = ["Identifier", "@", "/"]; for (; tr.some((mn) => Y.consume(mn)); ) ((Nt += Fe.text), (Fe = Y.lexer.current)); _e = { type: "JsdocTypeSpecialNamePath", value: Nt, specialType: pe, meta: { quote: void 0 }, }; } let Ve = new Q(S, Y.lexer, Y), Tt = Ve.parseInfixIntermediateType(_e, I.ALL); return (Y.acceptLexerState(Ve), D(Tt)); }, "parsePrefix"), }); } $(te, "createSpecialNamePathParslet"); let ae = [ ne({ allowedAdditionalTokens: ["external", "module"] }), ue, Z, z({ allowSquareBracketsOnAnyType: !1, allowJsdocNamePaths: !0, pathGrammar: null, }), ], ee = [...ae, te({ allowedTypes: ["event"], pathGrammar: ae })]; function fe(S) { let M; if (S.type === "JsdocTypeParameterList") M = S.elements; else if (S.type === "JsdocTypeParenthesis") M = [S.element]; else throw new c(S); return M.map((Y) => F(Y)); } $(fe, "getParameters"); function we(S) { let M = fe(S); if (M.some((Y) => Y.type === "JsdocTypeKeyValue")) throw new Error("No parameter should be named"); return M; } $(we, "getUnnamedParameters"); function Pe({ allowNamedParameters: S, allowNoReturnType: M, allowWithoutParenthesis: Y, allowNewAsFunctionKeyword: pe, }) { return K({ name: "functionParslet", accept: $( (_e, Fe) => _e === "function" || (pe && _e === "new" && Fe === "("), "accept", ), parsePrefix: $((_e) => { let Fe = _e.consume("new"); _e.consume("function"); let Ve = _e.lexer.current.type === "("; if (!Ve) { if (!Y) throw new Error("function is missing parameter list"); return { type: "JsdocTypeName", value: "function" }; } let Tt = { type: "JsdocTypeFunction", parameters: [], arrow: !1, constructor: Fe, parenthesis: Ve, }, Nt = _e.parseIntermediateType(I.FUNCTION); if (S === void 0) Tt.parameters = we(Nt); else { if (Fe && Nt.type === "JsdocTypeFunction" && Nt.arrow) return ((Tt = Nt), (Tt.constructor = !0), Tt); Tt.parameters = fe(Nt); for (let tr of Tt.parameters) if (tr.type === "JsdocTypeKeyValue" && !S.includes(tr.key)) throw new Error( `only allowed named parameters are ${S.join(", ")} but got ${tr.type}`, ); } if (_e.consume(":")) Tt.returnType = _e.parseType(I.PREFIX); else if (!M) throw new Error("function is missing return type"); return Tt; }, "parsePrefix"), }); } $(Pe, "createFunctionParslet"); function xe({ allowPostfix: S, allowEnclosingBrackets: M }) { return K({ name: "variadicParslet", accept: $((Y) => Y === "...", "accept"), precedence: I.PREFIX, parsePrefix: $((Y) => { Y.consume("..."); let pe = M && Y.consume("["); try { let _e = Y.parseType(I.PREFIX); if (pe && !Y.consume("]")) throw new Error("Unterminated variadic type. Missing ']'"); return { type: "JsdocTypeVariadic", element: D(_e), meta: { position: "prefix", squareBrackets: pe }, }; } catch (_e) { if (_e instanceof o) { if (pe) throw new Error( "Empty square brackets for variadic are not allowed.", ); return { type: "JsdocTypeVariadic", meta: { position: void 0, squareBrackets: !1 }, }; } else throw _e; } }, "parsePrefix"), parseInfix: S ? (Y, pe) => ( Y.consume("..."), { type: "JsdocTypeVariadic", element: D(pe), meta: { position: "suffix", squareBrackets: !1 }, } ) : void 0, }); } $(xe, "createVariadicParslet"); let ke = K({ name: "symbolParslet", accept: $((S) => S === "(", "accept"), precedence: I.SYMBOL, parseInfix: $((S, M) => { if (M.type !== "JsdocTypeName") throw new Error( "Symbol expects a name on the left side. (Reacting on '(')", ); S.consume("("); let Y = { type: "JsdocTypeSymbol", value: M.value }; if (!S.consume(")")) { let pe = S.parseIntermediateType(I.SYMBOL); if (((Y.element = T(pe)), !S.consume(")"))) throw new Error("Symbol does not end after value"); } return Y; }, "parseInfix"), }), Te = K({ name: "arrayBracketsParslet", precedence: I.ARRAY_BRACKETS, accept: $((S, M) => S === "[" && M === "]", "accept"), parseInfix: $( (S, M) => ( S.consume("["), S.consume("]"), { type: "JsdocTypeGeneric", left: { type: "JsdocTypeName", value: "Array" }, elements: [D(M)], meta: { brackets: "square", dot: !1 }, } ), "parseInfix", ), }); function je({ objectFieldGrammar: S, allowKeyTypes: M }) { return K({ name: "objectParslet", accept: $((Y) => Y === "{", "accept"), parsePrefix: $((Y) => { Y.consume("{"); let pe = { type: "JsdocTypeObject", meta: { separator: "comma" }, elements: [], }; if (!Y.consume("}")) { let _e, Fe = new Q(S, Y.lexer, Y); for (;;) { Fe.acceptLexerState(Y); let Ve = Fe.parseIntermediateType(I.OBJECT); (Y.acceptLexerState(Fe), Ve === void 0 && M && (Ve = Y.parseIntermediateType(I.OBJECT))); let Tt = !1; if ( (Ve.type === "JsdocTypeNullable" && ((Tt = !0), (Ve = Ve.element)), Ve.type === "JsdocTypeNumber" || Ve.type === "JsdocTypeName" || Ve.type === "JsdocTypeStringValue") ) { let Nt; (Ve.type === "JsdocTypeStringValue" && (Nt = Ve.meta.quote), pe.elements.push({ type: "JsdocTypeObjectField", key: Ve.value.toString(), right: void 0, optional: Tt, readonly: !1, meta: { quote: Nt }, })); } else if ( Ve.type === "JsdocTypeObjectField" || Ve.type === "JsdocTypeJsdocObjectField" ) pe.elements.push(Ve); else throw new c(Ve); if (Y.lexer.current.startOfLine) _e = "linebreak"; else if (Y.consume(",")) _e = "comma"; else if (Y.consume(";")) _e = "semicolon"; else break; if (Y.lexer.current.type === "}") break; } if (((pe.meta.separator = _e ?? "comma"), !Y.consume("}"))) throw new Error("Unterminated record type. Missing '}'"); } return pe; }, "parsePrefix"), }); } $(je, "createObjectParslet"); function Le({ allowSquaredProperties: S, allowKeyTypes: M, allowReadonly: Y, allowOptional: pe, }) { return K({ name: "objectFieldParslet", precedence: I.KEY_VALUE, accept: $((_e) => _e === ":", "accept"), parseInfix: $((_e, Fe) => { var Ve; let Tt = !1, Nt = !1; (pe && Fe.type === "JsdocTypeNullable" && ((Tt = !0), (Fe = Fe.element)), Y && Fe.type === "JsdocTypeReadonlyProperty" && ((Nt = !0), (Fe = Fe.element))); let tr = (Ve = _e.baseParser) !== null && Ve !== void 0 ? Ve : _e; if ( (tr.acceptLexerState(_e), Fe.type === "JsdocTypeNumber" || Fe.type === "JsdocTypeName" || Fe.type === "JsdocTypeStringValue" || k(Fe)) ) { if (k(Fe) && !S) throw new c(Fe); tr.consume(":"); let mn; Fe.type === "JsdocTypeStringValue" && (mn = Fe.meta.quote); let Mr = tr.parseType(I.KEY_VALUE); return ( _e.acceptLexerState(tr), { type: "JsdocTypeObjectField", key: k(Fe) ? Fe : Fe.value.toString(), right: Mr, optional: Tt, readonly: Nt, meta: { quote: mn }, } ); } else { if (!M) throw new c(Fe); tr.consume(":"); let mn = tr.parseType(I.KEY_VALUE); return ( _e.acceptLexerState(tr), { type: "JsdocTypeJsdocObjectField", left: D(Fe), right: mn } ); } }, "parseInfix"), }); } $(Le, "createObjectFieldParslet"); function ve({ allowOptional: S, allowVariadic: M }) { return K({ name: "keyValueParslet", precedence: I.KEY_VALUE, accept: $((Y) => Y === ":", "accept"), parseInfix: $((Y, pe) => { let _e = !1, Fe = !1; if ( (S && pe.type === "JsdocTypeNullable" && ((_e = !0), (pe = pe.element)), M && pe.type === "JsdocTypeVariadic" && pe.element !== void 0 && ((Fe = !0), (pe = pe.element)), pe.type !== "JsdocTypeName") ) throw new c(pe); Y.consume(":"); let Ve = Y.parseType(I.KEY_VALUE); return { type: "JsdocTypeKeyValue", key: pe.value, right: Ve, optional: _e, variadic: Fe, }; }, "parseInfix"), }); } $(ve, "createKeyValueParslet"); let De = [ ...Ke, Pe({ allowWithoutParenthesis: !0, allowNamedParameters: ["this", "new"], allowNoReturnType: !0, allowNewAsFunctionKeyword: !1, }), ue, te({ allowedTypes: ["module", "external", "event"], pathGrammar: ee, }), xe({ allowEnclosingBrackets: !0, allowPostfix: !0 }), ne({ allowedAdditionalTokens: ["keyof"] }), ke, Te, z({ allowSquareBracketsOnAnyType: !1, allowJsdocNamePaths: !0, pathGrammar: ee, }), ], ye = [ ...De, je({ objectFieldGrammar: [ ne({ allowedAdditionalTokens: ["module", "in"] }), Le({ allowSquaredProperties: !1, allowKeyTypes: !0, allowOptional: !1, allowReadonly: !1, }), ...De, ], allowKeyTypes: !0, }), ve({ allowOptional: !0, allowVariadic: !0 }), ], Oe = K({ name: "typeOfParslet", accept: $((S) => S === "typeof", "accept"), parsePrefix: $( (S) => ( S.consume("typeof"), { type: "JsdocTypeTypeof", element: D(S.parseType(I.KEY_OF_TYPE_OF)), } ), "parsePrefix", ), }), Ne = [ ne({ allowedAdditionalTokens: [ "module", "keyof", "event", "external", "in", ], }), H, V, ue, Z, Le({ allowSquaredProperties: !1, allowKeyTypes: !1, allowOptional: !1, allowReadonly: !1, }), ], mt = [ ...Ke, je({ allowKeyTypes: !1, objectFieldGrammar: Ne }), ne({ allowedAdditionalTokens: ["event", "external", "in"] }), Oe, Pe({ allowWithoutParenthesis: !1, allowNamedParameters: ["this", "new"], allowNoReturnType: !0, allowNewAsFunctionKeyword: !1, }), xe({ allowEnclosingBrackets: !1, allowPostfix: !1 }), ne({ allowedAdditionalTokens: ["keyof"] }), te({ allowedTypes: ["module"], pathGrammar: ee }), z({ allowSquareBracketsOnAnyType: !1, allowJsdocNamePaths: !0, pathGrammar: ee, }), ve({ allowOptional: !1, allowVariadic: !1 }), ke, ], ot = K({ name: "assertsParslet", accept: $((S) => S === "asserts", "accept"), parsePrefix: $((S) => { S.consume("asserts"); let M = S.parseIntermediateType(I.SYMBOL); if (M.type !== "JsdocTypeName") throw new c( M, "A typescript asserts always has to have a name on the left side.", ); return ( S.consume("is"), { type: "JsdocTypeAsserts", left: M, right: D(S.parseIntermediateType(I.INFIX)), } ); }, "parsePrefix"), }); function Be({ allowQuestionMark: S }) { return K({ name: "tupleParslet", accept: $((M) => M === "[", "accept"), parsePrefix: $((M) => { M.consume("["); let Y = { type: "JsdocTypeTuple", elements: [] }; if (M.consume("]")) return Y; let pe = M.parseIntermediateType(I.ALL); if ( (pe.type === "JsdocTypeParameterList" ? pe.elements[0].type === "JsdocTypeKeyValue" ? (Y.elements = pe.elements.map(q)) : (Y.elements = pe.elements.map(D)) : pe.type === "JsdocTypeKeyValue" ? (Y.elements = [q(pe)]) : (Y.elements = [D(pe)]), !M.consume("]")) ) throw new Error("Unterminated '['"); if (!S && Y.elements.some((_e) => _e.type === "JsdocTypeUnknown")) throw new Error("Question mark in tuple not allowed"); return Y; }, "parsePrefix"), }); } $(Be, "createTupleParslet"); let Ge = K({ name: "keyOfParslet", accept: $((S) => S === "keyof", "accept"), parsePrefix: $( (S) => ( S.consume("keyof"), { type: "JsdocTypeKeyof", element: D(S.parseType(I.KEY_OF_TYPE_OF)), } ), "parsePrefix", ), }), pt = K({ name: "importParslet", accept: $((S) => S === "import", "accept"), parsePrefix: $((S) => { if ((S.consume("import"), !S.consume("("))) throw new Error("Missing parenthesis after import keyword"); let M = S.parseType(I.PREFIX); if (M.type !== "JsdocTypeStringValue") throw new Error( "Only string values are allowed as paths for imports", ); if (!S.consume(")")) throw new Error( "Missing closing parenthesis after import keyword", ); return { type: "JsdocTypeImport", element: M }; }, "parsePrefix"), }), ut = K({ name: "readonlyPropertyParslet", accept: $((S) => S === "readonly", "accept"), parsePrefix: $( (S) => ( S.consume("readonly"), { type: "JsdocTypeReadonlyProperty", element: S.parseType(I.KEY_VALUE), } ), "parsePrefix", ), }), Bt = K({ name: "arrowFunctionParslet", precedence: I.ARROW, accept: $((S) => S === "=>", "accept"), parseInfix: $( (S, M) => ( S.consume("=>"), { type: "JsdocTypeFunction", parameters: fe(M).map(L), arrow: !0, constructor: !1, parenthesis: !0, returnType: S.parseType(I.OBJECT), } ), "parseInfix", ), }), ft = K({ name: "intersectionParslet", accept: $((S) => S === "&", "accept"), precedence: I.INTERSECTION, parseInfix: $((S, M) => { S.consume("&"); let Y = []; do Y.push(S.parseType(I.INTERSECTION)); while (S.consume("&")); return { type: "JsdocTypeIntersection", elements: [D(M), ...Y] }; }, "parseInfix"), }), Re = K({ name: "predicateParslet", precedence: I.INFIX, accept: $((S) => S === "is", "accept"), parseInfix: $((S, M) => { if (M.type !== "JsdocTypeName") throw new c( M, "A typescript predicate always has to have a name on the left side.", ); return ( S.consume("is"), { type: "JsdocTypePredicate", left: M, right: D(S.parseIntermediateType(I.INFIX)), } ); }, "parseInfix"), }), Ze = K({ name: "objectSquareBracketPropertyParslet", accept: $((S) => S === "[", "accept"), parsePrefix: $((S) => { if (S.baseParser === void 0) throw new Error("Only allowed inside object grammar"); S.consume("["); let M = S.lexer.current.text; S.consume("Identifier"); let Y; if (S.consume(":")) { let pe = S.baseParser; (pe.acceptLexerState(S), (Y = { type: "JsdocTypeIndexSignature", key: M, right: pe.parseType(I.INDEX_BRACKETS), }), S.acceptLexerState(pe)); } else if (S.consume("in")) { let pe = S.baseParser; (pe.acceptLexerState(S), (Y = { type: "JsdocTypeMappedType", key: M, right: pe.parseType(I.ARRAY_BRACKETS), }), S.acceptLexerState(pe)); } else throw new Error( "Missing ':' or 'in' inside square bracketed property.", ); if (!S.consume("]")) throw new Error("Unterminated square brackets"); return Y; }, "parsePrefix"), }), Pt = [ ut, ne({ allowedAdditionalTokens: [ "module", "event", "keyof", "event", "external", "in", ], }), H, V, ue, Z, Le({ allowSquaredProperties: !0, allowKeyTypes: !1, allowOptional: !0, allowReadonly: !0, }), Ze, ], It = [ ...Ke, je({ allowKeyTypes: !1, objectFieldGrammar: Pt }), Oe, Ge, pt, ue, Pe({ allowWithoutParenthesis: !0, allowNoReturnType: !1, allowNamedParameters: ["this", "new", "args"], allowNewAsFunctionKeyword: !0, }), Be({ allowQuestionMark: !1 }), xe({ allowEnclosingBrackets: !1, allowPostfix: !1 }), ot, ne({ allowedAdditionalTokens: ["event", "external", "in"] }), te({ allowedTypes: ["module"], pathGrammar: ee }), Te, Bt, z({ allowSquareBracketsOnAnyType: !0, allowJsdocNamePaths: !1, pathGrammar: ee, }), ft, Re, ve({ allowVariadic: !0, allowOptional: !0 }), ]; function Gt(S, M) { switch (M) { case "closure": return new Q(mt, S).parse(); case "jsdoc": return new Q(ye, S).parse(); case "typescript": return new Q(It, S).parse(); } } $(Gt, "parse"); function cr(S, M = ["typescript", "closure", "jsdoc"]) { let Y; for (let pe of M) try { return Gt(S, pe); } catch (_e) { Y = _e; } throw Y; } $(cr, "tryParse"); function bt(S, M) { let Y = S[M.type]; if (Y === void 0) throw new Error( `In this set of transform rules exists no rule for type ${M.type}.`, ); return Y(M, (pe) => bt(S, pe)); } $(bt, "transform"); function R(S) { throw new Error( "This transform is not available. Are you trying the correct parsing mode?", ); } $(R, "notAvailableTransform"); function B(S) { let M = { params: [] }; for (let Y of S.parameters) Y.type === "JsdocTypeKeyValue" ? Y.key === "this" ? (M.this = Y.right) : Y.key === "new" ? (M.new = Y.right) : M.params.push(Y) : M.params.push(Y); return M; } $(B, "extractSpecialParams"); function j(S, M, Y) { return S === "prefix" ? Y + M : M + Y; } $(j, "applyPosition"); function O(S, M) { switch (M) { case "double": return `"${S}"`; case "single": return `'${S}'`; case void 0: return S; } } $(O, "quote"); function G() { return { JsdocTypeParenthesis: $( (S, M) => `(${S.element !== void 0 ? M(S.element) : ""})`, "JsdocTypeParenthesis", ), JsdocTypeKeyof: $( (S, M) => `keyof ${M(S.element)}`, "JsdocTypeKeyof", ), JsdocTypeFunction: $((S, M) => { if (S.arrow) { if (S.returnType === void 0) throw new Error("Arrow function needs a return type."); let Y = `(${S.parameters.map(M).join(", ")}) => ${M(S.returnType)}`; return (S.constructor && (Y = "new " + Y), Y); } else { let Y = S.constructor ? "new" : "function"; return ( S.parenthesis && ((Y += `(${S.parameters.map(M).join(", ")})`), S.returnType !== void 0 && (Y += `: ${M(S.returnType)}`)), Y ); } }, "JsdocTypeFunction"), JsdocTypeName: $((S) => S.value, "JsdocTypeName"), JsdocTypeTuple: $( (S, M) => `[${S.elements.map(M).join(", ")}]`, "JsdocTypeTuple", ), JsdocTypeVariadic: $( (S, M) => S.meta.position === void 0 ? "..." : j(S.meta.position, M(S.element), "..."), "JsdocTypeVariadic", ), JsdocTypeNamePath: $((S, M) => { let Y = M(S.left), pe = M(S.right); switch (S.pathType) { case "inner": return `${Y}~${pe}`; case "instance": return `${Y}#${pe}`; case "property": return `${Y}.${pe}`; case "property-brackets": return `${Y}[${pe}]`; } }, "JsdocTypeNamePath"), JsdocTypeStringValue: $( (S) => O(S.value, S.meta.quote), "JsdocTypeStringValue", ), JsdocTypeAny: $(() => "*", "JsdocTypeAny"), JsdocTypeGeneric: $((S, M) => { if (S.meta.brackets === "square") { let Y = S.elements[0], pe = M(Y); return Y.type === "JsdocTypeUnion" || Y.type === "JsdocTypeIntersection" ? `(${pe})[]` : `${pe}[]`; } else return `${M(S.left)}${S.meta.dot ? "." : ""}<${S.elements.map(M).join(", ")}>`; }, "JsdocTypeGeneric"), JsdocTypeImport: $( (S, M) => `import(${M(S.element)})`, "JsdocTypeImport", ), JsdocTypeObjectField: $((S, M) => { let Y = ""; return ( S.readonly && (Y += "readonly "), typeof S.key == "string" ? (Y += O(S.key, S.meta.quote)) : (Y += M(S.key)), S.optional && (Y += "?"), S.right === void 0 ? Y : Y + `: ${M(S.right)}` ); }, "JsdocTypeObjectField"), JsdocTypeJsdocObjectField: $( (S, M) => `${M(S.left)}: ${M(S.right)}`, "JsdocTypeJsdocObjectField", ), JsdocTypeKeyValue: $((S, M) => { let Y = S.key; return ( S.optional && (Y += "?"), S.variadic && (Y = "..." + Y), S.right === void 0 ? Y : Y + `: ${M(S.right)}` ); }, "JsdocTypeKeyValue"), JsdocTypeSpecialNamePath: $( (S) => `${S.specialType}:${O(S.value, S.meta.quote)}`, "JsdocTypeSpecialNamePath", ), JsdocTypeNotNullable: $( (S, M) => j(S.meta.position, M(S.element), "!"), "JsdocTypeNotNullable", ), JsdocTypeNull: $(() => "null", "JsdocTypeNull"), JsdocTypeNullable: $( (S, M) => j(S.meta.position, M(S.element), "?"), "JsdocTypeNullable", ), JsdocTypeNumber: $((S) => S.value.toString(), "JsdocTypeNumber"), JsdocTypeObject: $( (S, M) => `{${S.elements.map(M).join((S.meta.separator === "comma" ? "," : ";") + " ")}}`, "JsdocTypeObject", ), JsdocTypeOptional: $( (S, M) => j(S.meta.position, M(S.element), "="), "JsdocTypeOptional", ), JsdocTypeSymbol: $( (S, M) => `${S.value}(${S.element !== void 0 ? M(S.element) : ""})`, "JsdocTypeSymbol", ), JsdocTypeTypeof: $( (S, M) => `typeof ${M(S.element)}`, "JsdocTypeTypeof", ), JsdocTypeUndefined: $(() => "undefined", "JsdocTypeUndefined"), JsdocTypeUnion: $( (S, M) => S.elements.map(M).join(" | "), "JsdocTypeUnion", ), JsdocTypeUnknown: $(() => "?", "JsdocTypeUnknown"), JsdocTypeIntersection: $( (S, M) => S.elements.map(M).join(" & "), "JsdocTypeIntersection", ), JsdocTypeProperty: $( (S) => O(S.value, S.meta.quote), "JsdocTypeProperty", ), JsdocTypePredicate: $( (S, M) => `${M(S.left)} is ${M(S.right)}`, "JsdocTypePredicate", ), JsdocTypeIndexSignature: $( (S, M) => `[${S.key}: ${M(S.right)}]`, "JsdocTypeIndexSignature", ), JsdocTypeMappedType: $( (S, M) => `[${S.key} in ${M(S.right)}]`, "JsdocTypeMappedType", ), JsdocTypeAsserts: $( (S, M) => `asserts ${M(S.left)} is ${M(S.right)}`, "JsdocTypeAsserts", ), }; } $(G, "stringifyRules"); let de = G(); function le(S) { return bt(de, S); } $(le, "stringify"); let me = [ "null", "true", "false", "break", "case", "catch", "class", "const", "continue", "debugger", "default", "delete", "do", "else", "export", "extends", "finally", "for", "function", "if", "import", "in", "instanceof", "new", "return", "super", "switch", "this", "throw", "try", "typeof", "var", "void", "while", "with", "yield", ]; function Ee(S) { let M = { type: "NameExpression", name: S }; return (me.includes(S) && (M.reservedWord = !0), M); } $(Ee, "makeName"); let qe = { JsdocTypeOptional: $((S, M) => { let Y = M(S.element); return ((Y.optional = !0), Y); }, "JsdocTypeOptional"), JsdocTypeNullable: $((S, M) => { let Y = M(S.element); return ((Y.nullable = !0), Y); }, "JsdocTypeNullable"), JsdocTypeNotNullable: $((S, M) => { let Y = M(S.element); return ((Y.nullable = !1), Y); }, "JsdocTypeNotNullable"), JsdocTypeVariadic: $((S, M) => { if (S.element === void 0) throw new Error( "dots without value are not allowed in catharsis mode", ); let Y = M(S.element); return ((Y.repeatable = !0), Y); }, "JsdocTypeVariadic"), JsdocTypeAny: $(() => ({ type: "AllLiteral" }), "JsdocTypeAny"), JsdocTypeNull: $(() => ({ type: "NullLiteral" }), "JsdocTypeNull"), JsdocTypeStringValue: $( (S) => Ee(O(S.value, S.meta.quote)), "JsdocTypeStringValue", ), JsdocTypeUndefined: $( () => ({ type: "UndefinedLiteral" }), "JsdocTypeUndefined", ), JsdocTypeUnknown: $( () => ({ type: "UnknownLiteral" }), "JsdocTypeUnknown", ), JsdocTypeFunction: $((S, M) => { let Y = B(S), pe = { type: "FunctionType", params: Y.params.map(M) }; return ( Y.this !== void 0 && (pe.this = M(Y.this)), Y.new !== void 0 && (pe.new = M(Y.new)), S.returnType !== void 0 && (pe.result = M(S.returnType)), pe ); }, "JsdocTypeFunction"), JsdocTypeGeneric: $( (S, M) => ({ type: "TypeApplication", applications: S.elements.map((Y) => M(Y)), expression: M(S.left), }), "JsdocTypeGeneric", ), JsdocTypeSpecialNamePath: $( (S) => Ee(S.specialType + ":" + O(S.value, S.meta.quote)), "JsdocTypeSpecialNamePath", ), JsdocTypeName: $( (S) => S.value !== "function" ? Ee(S.value) : { type: "FunctionType", params: [] }, "JsdocTypeName", ), JsdocTypeNumber: $((S) => Ee(S.value.toString()), "JsdocTypeNumber"), JsdocTypeObject: $((S, M) => { let Y = { type: "RecordType", fields: [] }; for (let pe of S.elements) pe.type !== "JsdocTypeObjectField" && pe.type !== "JsdocTypeJsdocObjectField" ? Y.fields.push({ type: "FieldType", key: M(pe), value: void 0 }) : Y.fields.push(M(pe)); return Y; }, "JsdocTypeObject"), JsdocTypeObjectField: $((S, M) => { if (typeof S.key != "string") throw new Error( "Index signatures and mapped types are not supported", ); return { type: "FieldType", key: Ee(O(S.key, S.meta.quote)), value: S.right === void 0 ? void 0 : M(S.right), }; }, "JsdocTypeObjectField"), JsdocTypeJsdocObjectField: $( (S, M) => ({ type: "FieldType", key: M(S.left), value: M(S.right) }), "JsdocTypeJsdocObjectField", ), JsdocTypeUnion: $( (S, M) => ({ type: "TypeUnion", elements: S.elements.map((Y) => M(Y)), }), "JsdocTypeUnion", ), JsdocTypeKeyValue: $( (S, M) => ({ type: "FieldType", key: Ee(S.key), value: S.right === void 0 ? void 0 : M(S.right), }), "JsdocTypeKeyValue", ), JsdocTypeNamePath: $((S, M) => { let Y = M(S.left), pe; S.right.type === "JsdocTypeSpecialNamePath" ? (pe = M(S.right).name) : (pe = O(S.right.value, S.right.meta.quote)); let _e = S.pathType === "inner" ? "~" : S.pathType === "instance" ? "#" : "."; return Ee(`${Y.name}${_e}${pe}`); }, "JsdocTypeNamePath"), JsdocTypeSymbol: $((S) => { let M = "", Y = S.element, pe = !1; return ( Y?.type === "JsdocTypeVariadic" && (Y.meta.position === "prefix" ? (M = "...") : (pe = !0), (Y = Y.element)), Y?.type === "JsdocTypeName" ? (M += Y.value) : Y?.type === "JsdocTypeNumber" && (M += Y.value.toString()), pe && (M += "..."), Ee(`${S.value}(${M})`) ); }, "JsdocTypeSymbol"), JsdocTypeParenthesis: $( (S, M) => M(D(S.element)), "JsdocTypeParenthesis", ), JsdocTypeMappedType: R, JsdocTypeIndexSignature: R, JsdocTypeImport: R, JsdocTypeKeyof: R, JsdocTypeTuple: R, JsdocTypeTypeof: R, JsdocTypeIntersection: R, JsdocTypeProperty: R, JsdocTypePredicate: R, JsdocTypeAsserts: R, }; function vt(S) { return bt(qe, S); } $(vt, "catharsisTransform"); function Rt(S) { switch (S) { case void 0: return "none"; case "single": return "single"; case "double": return "double"; } } $(Rt, "getQuoteStyle"); function er(S) { switch (S) { case "inner": return "INNER_MEMBER"; case "instance": return "INSTANCE_MEMBER"; case "property": return "MEMBER"; case "property-brackets": return "MEMBER"; } } $(er, "getMemberType"); function qn(S, M) { return M.length === 2 ? { type: S, left: M[0], right: M[1] } : { type: S, left: M[0], right: qn(S, M.slice(1)) }; } $(qn, "nestResults"); let xt = { JsdocTypeOptional: $( (S, M) => ({ type: "OPTIONAL", value: M(S.element), meta: { syntax: S.meta.position === "prefix" ? "PREFIX_EQUAL_SIGN" : "SUFFIX_EQUALS_SIGN", }, }), "JsdocTypeOptional", ), JsdocTypeNullable: $( (S, M) => ({ type: "NULLABLE", value: M(S.element), meta: { syntax: S.meta.position === "prefix" ? "PREFIX_QUESTION_MARK" : "SUFFIX_QUESTION_MARK", }, }), "JsdocTypeNullable", ), JsdocTypeNotNullable: $( (S, M) => ({ type: "NOT_NULLABLE", value: M(S.element), meta: { syntax: S.meta.position === "prefix" ? "PREFIX_BANG" : "SUFFIX_BANG", }, }), "JsdocTypeNotNullable", ), JsdocTypeVariadic: $((S, M) => { let Y = { type: "VARIADIC", meta: { syntax: S.meta.position === "prefix" ? "PREFIX_DOTS" : S.meta.position === "suffix" ? "SUFFIX_DOTS" : "ONLY_DOTS", }, }; return (S.element !== void 0 && (Y.value = M(S.element)), Y); }, "JsdocTypeVariadic"), JsdocTypeName: $( (S) => ({ type: "NAME", name: S.value }), "JsdocTypeName", ), JsdocTypeTypeof: $( (S, M) => ({ type: "TYPE_QUERY", name: M(S.element) }), "JsdocTypeTypeof", ), JsdocTypeTuple: $( (S, M) => ({ type: "TUPLE", entries: S.elements.map(M) }), "JsdocTypeTuple", ), JsdocTypeKeyof: $( (S, M) => ({ type: "KEY_QUERY", value: M(S.element) }), "JsdocTypeKeyof", ), JsdocTypeImport: $( (S) => ({ type: "IMPORT", path: { type: "STRING_VALUE", quoteStyle: Rt(S.element.meta.quote), string: S.element.value, }, }), "JsdocTypeImport", ), JsdocTypeUndefined: $( () => ({ type: "NAME", name: "undefined" }), "JsdocTypeUndefined", ), JsdocTypeAny: $(() => ({ type: "ANY" }), "JsdocTypeAny"), JsdocTypeFunction: $((S, M) => { let Y = B(S), pe = { type: S.arrow ? "ARROW" : "FUNCTION", params: Y.params.map((_e) => { if (_e.type === "JsdocTypeKeyValue") { if (_e.right === void 0) throw new Error( "Function parameter without ':' is not expected to be 'KEY_VALUE'", ); return { type: "NAMED_PARAMETER", name: _e.key, typeName: M(_e.right), }; } else return M(_e); }), new: null, returns: null, }; return ( Y.this !== void 0 ? (pe.this = M(Y.this)) : S.arrow || (pe.this = null), Y.new !== void 0 && (pe.new = M(Y.new)), S.returnType !== void 0 && (pe.returns = M(S.returnType)), pe ); }, "JsdocTypeFunction"), JsdocTypeGeneric: $((S, M) => { let Y = { type: "GENERIC", subject: M(S.left), objects: S.elements.map(M), meta: { syntax: S.meta.brackets === "square" ? "SQUARE_BRACKET" : S.meta.dot ? "ANGLE_BRACKET_WITH_DOT" : "ANGLE_BRACKET", }, }; return ( S.meta.brackets === "square" && S.elements[0].type === "JsdocTypeFunction" && !S.elements[0].parenthesis && (Y.objects[0] = { type: "NAME", name: "function" }), Y ); }, "JsdocTypeGeneric"), JsdocTypeObjectField: $((S, M) => { if (typeof S.key != "string") throw new Error( "Index signatures and mapped types are not supported", ); if (S.right === void 0) return { type: "RECORD_ENTRY", key: S.key, quoteStyle: Rt(S.meta.quote), value: null, readonly: !1, }; let Y = M(S.right); return ( S.optional && (Y = { type: "OPTIONAL", value: Y, meta: { syntax: "SUFFIX_KEY_QUESTION_MARK" }, }), { type: "RECORD_ENTRY", key: S.key.toString(), quoteStyle: Rt(S.meta.quote), value: Y, readonly: !1, } ); }, "JsdocTypeObjectField"), JsdocTypeJsdocObjectField: $(() => { throw new Error("Keys may not be typed in jsdoctypeparser."); }, "JsdocTypeJsdocObjectField"), JsdocTypeKeyValue: $((S, M) => { if (S.right === void 0) return { type: "RECORD_ENTRY", key: S.key, quoteStyle: "none", value: null, readonly: !1, }; let Y = M(S.right); return ( S.optional && (Y = { type: "OPTIONAL", value: Y, meta: { syntax: "SUFFIX_KEY_QUESTION_MARK" }, }), { type: "RECORD_ENTRY", key: S.key, quoteStyle: "none", value: Y, readonly: !1, } ); }, "JsdocTypeKeyValue"), JsdocTypeObject: $((S, M) => { let Y = []; for (let pe of S.elements) (pe.type === "JsdocTypeObjectField" || pe.type === "JsdocTypeJsdocObjectField") && Y.push(M(pe)); return { type: "RECORD", entries: Y }; }, "JsdocTypeObject"), JsdocTypeSpecialNamePath: $((S) => { if (S.specialType !== "module") throw new Error( `jsdoctypeparser does not support type ${S.specialType} at this point.`, ); return { type: "MODULE", value: { type: "FILE_PATH", quoteStyle: Rt(S.meta.quote), path: S.value, }, }; }, "JsdocTypeSpecialNamePath"), JsdocTypeNamePath: $((S, M) => { let Y = !1, pe, _e; S.right.type === "JsdocTypeSpecialNamePath" && S.right.specialType === "event" ? ((Y = !0), (pe = S.right.value), (_e = Rt(S.right.meta.quote))) : ((pe = S.right.value), (_e = Rt(S.right.meta.quote))); let Fe = { type: er(S.pathType), owner: M(S.left), name: pe, quoteStyle: _e, hasEventPrefix: Y, }; if (Fe.owner.type === "MODULE") { let Ve = Fe.owner; return ((Fe.owner = Fe.owner.value), (Ve.value = Fe), Ve); } else return Fe; }, "JsdocTypeNamePath"), JsdocTypeUnion: $( (S, M) => qn("UNION", S.elements.map(M)), "JsdocTypeUnion", ), JsdocTypeParenthesis: $( (S, M) => ({ type: "PARENTHESIS", value: M(D(S.element)) }), "JsdocTypeParenthesis", ), JsdocTypeNull: $( () => ({ type: "NAME", name: "null" }), "JsdocTypeNull", ), JsdocTypeUnknown: $(() => ({ type: "UNKNOWN" }), "JsdocTypeUnknown"), JsdocTypeStringValue: $( (S) => ({ type: "STRING_VALUE", quoteStyle: Rt(S.meta.quote), string: S.value, }), "JsdocTypeStringValue", ), JsdocTypeIntersection: $( (S, M) => qn("INTERSECTION", S.elements.map(M)), "JsdocTypeIntersection", ), JsdocTypeNumber: $( (S) => ({ type: "NUMBER_VALUE", number: S.value.toString() }), "JsdocTypeNumber", ), JsdocTypeSymbol: R, JsdocTypeProperty: R, JsdocTypePredicate: R, JsdocTypeMappedType: R, JsdocTypeIndexSignature: R, JsdocTypeAsserts: R, }; function yt(S) { return bt(xt, S); } $(yt, "jtpTransform"); function hn() { return { JsdocTypeIntersection: $( (S, M) => ({ type: "JsdocTypeIntersection", elements: S.elements.map(M), }), "JsdocTypeIntersection", ), JsdocTypeGeneric: $( (S, M) => ({ type: "JsdocTypeGeneric", left: M(S.left), elements: S.elements.map(M), meta: { dot: S.meta.dot, brackets: S.meta.brackets }, }), "JsdocTypeGeneric", ), JsdocTypeNullable: $((S) => S, "JsdocTypeNullable"), JsdocTypeUnion: $( (S, M) => ({ type: "JsdocTypeUnion", elements: S.elements.map(M) }), "JsdocTypeUnion", ), JsdocTypeUnknown: $((S) => S, "JsdocTypeUnknown"), JsdocTypeUndefined: $((S) => S, "JsdocTypeUndefined"), JsdocTypeTypeof: $( (S, M) => ({ type: "JsdocTypeTypeof", element: M(S.element) }), "JsdocTypeTypeof", ), JsdocTypeSymbol: $((S, M) => { let Y = { type: "JsdocTypeSymbol", value: S.value }; return (S.element !== void 0 && (Y.element = M(S.element)), Y); }, "JsdocTypeSymbol"), JsdocTypeOptional: $( (S, M) => ({ type: "JsdocTypeOptional", element: M(S.element), meta: { position: S.meta.position }, }), "JsdocTypeOptional", ), JsdocTypeObject: $( (S, M) => ({ type: "JsdocTypeObject", meta: { separator: "comma" }, elements: S.elements.map(M), }), "JsdocTypeObject", ), JsdocTypeNumber: $((S) => S, "JsdocTypeNumber"), JsdocTypeNull: $((S) => S, "JsdocTypeNull"), JsdocTypeNotNullable: $( (S, M) => ({ type: "JsdocTypeNotNullable", element: M(S.element), meta: { position: S.meta.position }, }), "JsdocTypeNotNullable", ), JsdocTypeSpecialNamePath: $((S) => S, "JsdocTypeSpecialNamePath"), JsdocTypeObjectField: $( (S, M) => ({ type: "JsdocTypeObjectField", key: S.key, right: S.right === void 0 ? void 0 : M(S.right), optional: S.optional, readonly: S.readonly, meta: S.meta, }), "JsdocTypeObjectField", ), JsdocTypeJsdocObjectField: $( (S, M) => ({ type: "JsdocTypeJsdocObjectField", left: M(S.left), right: M(S.right), }), "JsdocTypeJsdocObjectField", ), JsdocTypeKeyValue: $( (S, M) => ({ type: "JsdocTypeKeyValue", key: S.key, right: S.right === void 0 ? void 0 : M(S.right), optional: S.optional, variadic: S.variadic, }), "JsdocTypeKeyValue", ), JsdocTypeImport: $( (S, M) => ({ type: "JsdocTypeImport", element: M(S.element) }), "JsdocTypeImport", ), JsdocTypeAny: $((S) => S, "JsdocTypeAny"), JsdocTypeStringValue: $((S) => S, "JsdocTypeStringValue"), JsdocTypeNamePath: $((S) => S, "JsdocTypeNamePath"), JsdocTypeVariadic: $((S, M) => { let Y = { type: "JsdocTypeVariadic", meta: { position: S.meta.position, squareBrackets: S.meta.squareBrackets, }, }; return (S.element !== void 0 && (Y.element = M(S.element)), Y); }, "JsdocTypeVariadic"), JsdocTypeTuple: $( (S, M) => ({ type: "JsdocTypeTuple", elements: S.elements.map(M) }), "JsdocTypeTuple", ), JsdocTypeName: $((S) => S, "JsdocTypeName"), JsdocTypeFunction: $((S, M) => { let Y = { type: "JsdocTypeFunction", arrow: S.arrow, parameters: S.parameters.map(M), constructor: S.constructor, parenthesis: S.parenthesis, }; return ( S.returnType !== void 0 && (Y.returnType = M(S.returnType)), Y ); }, "JsdocTypeFunction"), JsdocTypeKeyof: $( (S, M) => ({ type: "JsdocTypeKeyof", element: M(S.element) }), "JsdocTypeKeyof", ), JsdocTypeParenthesis: $( (S, M) => ({ type: "JsdocTypeParenthesis", element: M(S.element) }), "JsdocTypeParenthesis", ), JsdocTypeProperty: $((S) => S, "JsdocTypeProperty"), JsdocTypePredicate: $( (S, M) => ({ type: "JsdocTypePredicate", left: M(S.left), right: M(S.right), }), "JsdocTypePredicate", ), JsdocTypeIndexSignature: $( (S, M) => ({ type: "JsdocTypeIndexSignature", key: S.key, right: M(S.right), }), "JsdocTypeIndexSignature", ), JsdocTypeMappedType: $( (S, M) => ({ type: "JsdocTypeMappedType", key: S.key, right: M(S.right), }), "JsdocTypeMappedType", ), JsdocTypeAsserts: $( (S, M) => ({ type: "JsdocTypeAsserts", left: M(S.left), right: M(S.right), }), "JsdocTypeAsserts", ), }; } $(hn, "identityTransformRules"); let Xa = { JsdocTypeAny: [], JsdocTypeFunction: ["parameters", "returnType"], JsdocTypeGeneric: ["left", "elements"], JsdocTypeImport: [], JsdocTypeIndexSignature: ["right"], JsdocTypeIntersection: ["elements"], JsdocTypeKeyof: ["element"], JsdocTypeKeyValue: ["right"], JsdocTypeMappedType: ["right"], JsdocTypeName: [], JsdocTypeNamePath: ["left", "right"], JsdocTypeNotNullable: ["element"], JsdocTypeNull: [], JsdocTypeNullable: ["element"], JsdocTypeNumber: [], JsdocTypeObject: ["elements"], JsdocTypeObjectField: ["right"], JsdocTypeJsdocObjectField: ["left", "right"], JsdocTypeOptional: ["element"], JsdocTypeParenthesis: ["element"], JsdocTypeSpecialNamePath: [], JsdocTypeStringValue: [], JsdocTypeSymbol: ["element"], JsdocTypeTuple: ["elements"], JsdocTypeTypeof: ["element"], JsdocTypeUndefined: [], JsdocTypeUnion: ["elements"], JsdocTypeUnknown: [], JsdocTypeVariadic: ["element"], JsdocTypeProperty: [], JsdocTypePredicate: ["left", "right"], JsdocTypeAsserts: ["left", "right"], }; function da(S, M, Y, pe, _e) { pe?.(S, M, Y); let Fe = Xa[S.type]; for (let Ve of Fe) { let Tt = S[Ve]; if (Tt !== void 0) if (Array.isArray(Tt)) for (let Nt of Tt) da(Nt, S, Ve, pe, _e); else da(Tt, S, Ve, pe, _e); } _e?.(S, M, Y); } $(da, "_traverse"); function UE(S, M, Y) { da(S, void 0, void 0, M, Y); } ($(UE, "traverse"), (r.catharsisTransform = vt), (r.identityTransformRules = hn), (r.jtpTransform = yt), (r.parse = Gt), (r.stringify = le), (r.stringifyRules = G), (r.transform = bt), (r.traverse = UE), (r.tryParse = cr), (r.visitorKeys = Xa)); }); }); const { UnknownArgTypesError: uZ } = __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__; var lZ = $((e) => e.name === "literal", "isLiteral"), cZ = $((e) => e.value.replace(/['|"]/g, ""), "toEnumOption"), dZ = $((e) => { switch (e.type) { case "function": return { name: "function" }; case "object": let t = {}; return ( e.signature.properties.forEach((r) => { t[r.key] = Mi(r.value); }), { name: "object", value: t } ); default: throw new uZ({ type: e, language: "Flow" }); } }, "convertSig"), Mi = $((e) => { let { name: t, raw: r } = e, n = {}; switch ((typeof r < "u" && (n.raw = r), e.name)) { case "literal": return { ...n, name: "other", value: e.value }; case "string": case "number": case "symbol": case "boolean": return { ...n, name: t }; case "Array": return { ...n, name: "array", value: e.elements.map(Mi) }; case "signature": return { ...n, ...dZ(e) }; case "union": return e.elements?.every(lZ) ? { ...n, name: "enum", value: e.elements?.map(cZ) } : { ...n, name: t, value: e.elements?.map(Mi) }; case "intersection": return { ...n, name: t, value: e.elements?.map(Mi) }; default: return { ...n, name: "other", value: t }; } }, "convert"); function al(e) { if (!e || typeof e != "object") return !1; let t = Object.getPrototypeOf(e); return t === null || t === Object.prototype || Object.getPrototypeOf(t) === null ? Object.prototype.toString.call(e) === "[object Object]" : !1; } $(al, "isPlainObject"); function nM(e, t) { let r = {}, n = Object.keys(e); for (let a = 0; a < n.length; a++) { let o = n[a], i = e[o]; r[o] = t(i, o, e); } return r; } $(nM, "mapValues"); var aM = /^['"]|['"]$/g, pZ = $((e) => e.replace(aM, ""), "trimQuotes"), fZ = $((e) => aM.test(e), "includesQuotes"), oM = $((e) => { let t = pZ(e); return fZ(e) || Number.isNaN(Number(t)) ? t : Number(t); }, "parseLiteral"), hZ = /^\(.*\) => /, Ai = $((e) => { let { name: t, raw: r, computed: n, value: a } = e, o = {}; switch ((typeof r < "u" && (o.raw = r), t)) { case "enum": { let u = n ? a : a.map((l) => oM(l.value)); return { ...o, name: t, value: u }; } case "string": case "number": case "symbol": return { ...o, name: t }; case "func": return { ...o, name: "function" }; case "bool": case "boolean": return { ...o, name: "boolean" }; case "arrayOf": case "array": return { ...o, name: "array", value: a && Ai(a) }; case "object": return { ...o, name: t }; case "objectOf": return { ...o, name: t, value: Ai(a) }; case "shape": case "exact": let i = nM(a, (u) => Ai(u)); return { ...o, name: "object", value: i }; case "union": return { ...o, name: "union", value: a.map((u) => Ai(u)) }; case "instanceOf": case "element": case "elementType": default: { if (t?.indexOf("|") > 0) try { let c = t.split("|").map((d) => JSON.parse(d)); return { ...o, name: "enum", value: c }; } catch {} let u = a ? `${t}(${a})` : t, l = hZ.test(t) ? "function" : "other"; return { ...o, name: l, value: u }; } } }, "convert"); const { UnknownArgTypesError: mZ } = __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__; var yZ = $((e) => { switch (e.type) { case "function": return { name: "function" }; case "object": let t = {}; return ( e.signature.properties.forEach((r) => { t[r.key] = Bi(r.value); }), { name: "object", value: t } ); default: throw new mZ({ type: e, language: "Typescript" }); } }, "convertSig"), Bi = $((e) => { let { name: t, raw: r } = e, n = {}; switch ((typeof r < "u" && (n.raw = r), e.name)) { case "string": case "number": case "symbol": case "boolean": return { ...n, name: t }; case "Array": return { ...n, name: "array", value: e.elements.map(Bi) }; case "signature": return { ...n, ...yZ(e) }; case "union": let a; return ( e.elements?.every((o) => o.name === "literal") ? (a = { ...n, name: "enum", value: e.elements?.map((o) => oM(o.value)), }) : (a = { ...n, name: t, value: e.elements?.map(Bi) }), a ); case "intersection": return { ...n, name: t, value: e.elements?.map(Bi) }; default: return { ...n, name: "other", value: t }; } }, "convert"), dE = $((e) => { let { type: t, tsType: r, flowType: n } = e; try { if (t != null) return Ai(t); if (r != null) return Bi(r); if (n != null) return Mi(n); } catch (a) { console.error(a); } return null; }, "convert"), Cy = ((e) => ( (e.JAVASCRIPT = "JavaScript"), (e.FLOW = "Flow"), (e.TYPESCRIPT = "TypeScript"), (e.UNKNOWN = "Unknown"), e ))(Cy || {}), gZ = ["null", "undefined"]; function Wd(e) { return gZ.some((t) => t === e); } $(Wd, "isDefaultValueBlacklisted"); var bZ = $((e) => { if (!e) return ""; if (typeof e == "string") return e; throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`); }, "str"); function Jd(e) { return !!e.__docgenInfo; } $(Jd, "hasDocgen"); function iM(e) { return e != null && Object.keys(e).length > 0; } $(iM, "isValidDocgenSection"); function nc(e, t) { return Jd(e) ? e.__docgenInfo[t] : null; } $(nc, "getDocgenSection"); function sM(e) { return Jd(e) ? bZ(e.__docgenInfo.description) : ""; } $(sM, "getDocgenDescription"); var Qn; (function (e) { ((e.start = "/**"), (e.nostart = "/***"), (e.delim = "*"), (e.end = "*/")); })((Qn = Qn || (Qn = {}))); function uM(e) { return /^\s+$/.test(e); } $(uM, "isSpace"); function lM(e) { let t = e.match(/\r+$/); return t == null ? ["", e] : [e.slice(-t[0].length), e.slice(0, -t[0].length)]; } $(lM, "splitCR"); function Pa(e) { let t = e.match(/^\s+/); return t == null ? ["", e] : [e.slice(0, t[0].length), e.slice(t[0].length)]; } $(Pa, "splitSpace"); function cM(e) { return e.split(/\n/); } $(cM, "splitLines"); function dM(e = {}) { return Object.assign( { tag: "", name: "", type: "", optional: !1, description: "", problems: [], source: [], }, e, ); } $(dM, "seedSpec"); function pM(e = {}) { return Object.assign( { start: "", delimiter: "", postDelimiter: "", tag: "", postTag: "", name: "", postName: "", type: "", postType: "", description: "", end: "", lineEnd: "", }, e, ); } $(pM, "seedTokens"); var vZ = /^@\S+/; function fM({ fence: e = "```" } = {}) { let t = hM(e), r = $((n, a) => (t(n) ? !a : a), "toggleFence"); return $(function (n) { let a = [[]], o = !1; for (let i of n) (vZ.test(i.tokens.description) && !o ? a.push([i]) : a[a.length - 1].push(i), (o = r(i.tokens.description, o))); return a; }, "parseBlock"); } $(fM, "getParser"); function hM(e) { return typeof e == "string" ? (t) => t.split(e).length % 2 === 0 : e; } $(hM, "getFencer"); function mM({ startLine: e = 0, markers: t = Qn } = {}) { let r = null, n = e; return $(function (a) { let o = a, i = pM(); if ( (([i.lineEnd, o] = lM(o)), ([i.start, o] = Pa(o)), r === null && o.startsWith(t.start) && !o.startsWith(t.nostart) && ((r = []), (i.delimiter = o.slice(0, t.start.length)), (o = o.slice(t.start.length)), ([i.postDelimiter, o] = Pa(o))), r === null) ) return (n++, null); let u = o.trimRight().endsWith(t.end); if ( (i.delimiter === "" && o.startsWith(t.delim) && !o.startsWith(t.end) && ((i.delimiter = t.delim), (o = o.slice(t.delim.length)), ([i.postDelimiter, o] = Pa(o))), u) ) { let l = o.trimRight(); ((i.end = o.slice(l.length - t.end.length)), (o = l.slice(0, -t.end.length))); } if ( ((i.description = o), r.push({ number: n, source: a, tokens: i }), n++, u) ) { let l = r.slice(); return ((r = null), l); } return null; }, "parseSource"); } $(mM, "getParser"); function yM({ tokenizers: e }) { return $(function (t) { var r; let n = dM({ source: t }); for (let a of e) if ( ((n = a(n)), !((r = n.problems[n.problems.length - 1]) === null || r === void 0) && r.critical) ) break; return n; }, "parseSpec"); } $(yM, "getParser"); function gM() { return (e) => { let { tokens: t } = e.source[0], r = t.description.match(/\s*(@(\S+))(\s*)/); return r === null ? (e.problems.push({ code: "spec:tag:prefix", message: 'tag should start with "@" symbol', line: e.source[0].number, critical: !0, }), e) : ((t.tag = r[1]), (t.postTag = r[3]), (t.description = t.description.slice(r[0].length)), (e.tag = r[2]), e); }; } $(gM, "tagTokenizer"); function bM(e = "compact") { let t = vM(e); return (r) => { let n = 0, a = []; for (let [u, { tokens: l }] of r.source.entries()) { let c = ""; if (u === 0 && l.description[0] !== "{") return r; for (let d of l.description) if ((d === "{" && n++, d === "}" && n--, (c += d), n === 0)) break; if ((a.push([l, c]), n === 0)) break; } if (n !== 0) return ( r.problems.push({ code: "spec:type:unpaired-curlies", message: "unpaired curlies", line: r.source[0].number, critical: !0, }), r ); let o = [], i = a[0][0].postDelimiter.length; for (let [u, [l, c]] of a.entries()) ((l.type = c), u > 0 && ((l.type = l.postDelimiter.slice(i) + c), (l.postDelimiter = l.postDelimiter.slice(0, i))), ([l.postType, l.description] = Pa(l.description.slice(c.length))), o.push(l.type)); return ( (o[0] = o[0].slice(1)), (o[o.length - 1] = o[o.length - 1].slice(0, -1)), (r.type = t(o)), r ); }; } $(bM, "typeTokenizer"); var EZ = $((e) => e.trim(), "trim"); function vM(e) { return e === "compact" ? (t) => t.map(EZ).join("") : e === "preserve" ? (t) => t.join(` `) : e; } $(vM, "getJoiner"); var _Z = $((e) => e && e.startsWith('"') && e.endsWith('"'), "isQuoted"); function EM() { let e = $((t, { tokens: r }, n) => (r.type === "" ? t : n), "typeEnd"); return (t) => { let { tokens: r } = t.source[t.source.reduce(e, 0)], n = r.description.trimLeft(), a = n.split('"'); if (a.length > 1 && a[0] === "" && a.length % 2 === 1) return ( (t.name = a[1]), (r.name = `"${a[1]}"`), ([r.postName, r.description] = Pa(n.slice(r.name.length))), t ); let o = 0, i = "", u = !1, l; for (let d of n) { if (o === 0 && uM(d)) break; (d === "[" && o++, d === "]" && o--, (i += d)); } if (o !== 0) return ( t.problems.push({ code: "spec:name:unpaired-brackets", message: "unpaired brackets", line: t.source[0].number, critical: !0, }), t ); let c = i; if (i[0] === "[" && i[i.length - 1] === "]") { ((u = !0), (i = i.slice(1, -1))); let d = i.split("="); if ( ((i = d[0].trim()), d[1] !== void 0 && (l = d.slice(1).join("=").trim()), i === "") ) return ( t.problems.push({ code: "spec:name:empty-name", message: "empty name", line: t.source[0].number, critical: !0, }), t ); if (l === "") return ( t.problems.push({ code: "spec:name:empty-default", message: "empty default value", line: t.source[0].number, critical: !0, }), t ); if (!_Z(l) && /=(?!>)/.test(l)) return ( t.problems.push({ code: "spec:name:invalid-default", message: "invalid default value syntax", line: t.source[0].number, critical: !0, }), t ); } return ( (t.optional = u), (t.name = i), (r.name = c), l !== void 0 && (t.default = l), ([r.postName, r.description] = Pa(n.slice(r.name.length))), t ); }; } $(EM, "nameTokenizer"); function _M(e = "compact", t = Qn) { let r = pE(e); return (n) => ((n.description = r(n.source, t)), n); } $(_M, "descriptionTokenizer"); function pE(e) { return e === "compact" ? CM : e === "preserve" ? wM : e; } $(pE, "getJoiner"); function CM(e, t = Qn) { return e .map(({ tokens: { description: r } }) => r.trim()) .filter((r) => r !== "") .join(" "); } $(CM, "compactJoiner"); var CZ = $((e, { tokens: t }, r) => (t.type === "" ? e : r), "lineNo"), wZ = $( ({ tokens: e }) => (e.delimiter === "" ? e.start : e.postDelimiter.slice(1)) + e.description, "getDescription", ); function wM(e, t = Qn) { if (e.length === 0) return ""; e[0].tokens.description === "" && e[0].tokens.delimiter === t.start && (e = e.slice(1)); let r = e[e.length - 1]; return ( r !== void 0 && r.tokens.description === "" && r.tokens.end.endsWith(t.end) && (e = e.slice(0, -1)), (e = e.slice(e.reduce(CZ, 0))), e.map(wZ).join(` `) ); } $(wM, "preserveJoiner"); function AM({ startLine: e = 0, fence: t = "```", spacing: r = "compact", markers: n = Qn, tokenizers: a = [gM(), bM(r), EM(), _M(r)], } = {}) { if (e < 0 || e % 1 > 0) throw new Error("Invalid startLine"); let o = mM({ startLine: e, markers: n }), i = fM({ fence: t }), u = yM({ tokenizers: a }), l = pE(r); return function (c) { let d = []; for (let p of cM(c)) { let f = o(p); if (f === null) continue; let h = i(f), m = h.slice(1).map(u); d.push({ description: l(h[0], n), tags: m, source: f, problems: m.reduce((y, b) => y.concat(b.problems), []), }); } return d; }; } $(AM, "getParser"); function SM(e) { return ( e.start + e.delimiter + e.postDelimiter + e.tag + e.postTag + e.type + e.postType + e.name + e.postName + e.description + e.end + e.lineEnd ); } $(SM, "join"); function AZ() { return (e) => e.source.map(({ tokens: t }) => SM(t)).join(` `); } $(AZ, "getStringifier"); function xM(e, t = {}) { return AM(t)(e); } $(xM, "parse"); var fE = iZ(sZ()); function PM(e) { return e != null && e.includes("@"); } $(PM, "containsJsDoc"); function RM(e) { let t = `/** ` + (e ?? "") .split( ` `, ) .map((n) => ` * ${n}`).join(` `) + ` */`, r = xM(t, { spacing: "preserve" }); if (!r || r.length === 0) throw new Error("Cannot parse JSDoc tags."); return r[0]; } $(RM, "parse"); var SZ = { tags: ["param", "arg", "argument", "returns", "ignore", "deprecated"], }, xZ = $((e, t = SZ) => { if (!PM(e)) return { includesJsDoc: !1, ignore: !1 }; let r = RM(e), n = TM(r, t.tags); return n.ignore ? { includesJsDoc: !0, ignore: !0 } : { includesJsDoc: !0, ignore: !1, description: r.description.trim(), extractedTags: n, }; }, "parseJsDoc"); function TM(e, t) { let r = { params: null, deprecated: null, returns: null, ignore: !1 }; for (let n of e.tags) if (!(t !== void 0 && !t.includes(n.tag))) if (n.tag === "ignore") { r.ignore = !0; break; } else switch (n.tag) { case "param": case "arg": case "argument": { let a = DM(n); a != null && (r.params == null && (r.params = []), r.params.push(a)); break; } case "deprecated": { let a = FM(n); a != null && (r.deprecated = a); break; } case "returns": { let a = IM(n); a != null && (r.returns = a); break; } } return r; } $(TM, "extractJsDocTags"); function OM(e) { return e.replace(/[\.-]$/, ""); } $(OM, "normaliseParamName"); function DM(e) { if (!e.name || e.name === "-") return null; let t = yE(e.type); return { name: e.name, type: t, description: mE(e.description), getPrettyName: $(() => OM(e.name), "getPrettyName"), getTypeName: $(() => (t ? gE(t) : null), "getTypeName"), }; } $(DM, "extractParam"); function FM(e) { return e.name ? hE(e.name, e.description) : null; } $(FM, "extractDeprecated"); function hE(e, t) { let r = e === "" ? t : `${e} ${t}`; return mE(r); } $(hE, "joinNameAndDescription"); function mE(e) { let t = e.replace(/^- /g, "").trim(); return t === "" ? null : t; } $(mE, "normaliseDescription"); function IM(e) { let t = yE(e.type); return t ? { type: t, description: hE(e.name, e.description), getTypeName: $(() => gE(t), "getTypeName"), } : null; } $(IM, "extractReturns"); var la = (0, fE.stringifyRules)(), PZ = la.JsdocTypeObject; la.JsdocTypeAny = () => "any"; la.JsdocTypeObject = (e, t) => `(${PZ(e, t)})`; la.JsdocTypeOptional = (e, t) => t(e.element); la.JsdocTypeNullable = (e, t) => t(e.element); la.JsdocTypeNotNullable = (e, t) => t(e.element); la.JsdocTypeUnion = (e, t) => e.elements.map(t).join("|"); function yE(e) { try { return (0, fE.parse)(e, "typescript"); } catch { return null; } } $(yE, "extractType"); function gE(e) { return (0, fE.transform)(la, e); } $(gE, "extractTypeName"); function Xd(e) { return e.length > 90; } $(Xd, "isTooLongForTypeSummary"); function Ga(e) { return e.length > 50; } $(Ga, "isTooLongForDefaultValueSummary"); function Me(e, t) { return e === t ? { summary: e } : { summary: e, detail: t }; } $(Me, "createSummaryValue"); function NM(e, t) { if (e != null) { let { value: r } = e; if (!Wd(r)) return Ga(r) ? Me(t?.name, r) : Me(r); } return null; } $(NM, "createDefaultValue"); function bE({ name: e, value: t, elements: r, raw: n }) { return t ?? (r != null ? r.map(bE).join(" | ") : (n ?? e)); } $(bE, "generateUnionElement"); function jM({ name: e, raw: t, elements: r }) { return r != null ? Me(r.map(bE).join(" | ")) : t != null ? Me(t.replace(/^\|\s*/, "")) : Me(e); } $(jM, "generateUnion"); function kM({ type: e, raw: t }) { return t != null ? Me(t) : Me(e); } $(kM, "generateFuncSignature"); function qM({ type: e, raw: t }) { return t != null ? (Xd(t) ? Me(e, t) : Me(t)) : Me(e); } $(qM, "generateObjectSignature"); function MM(e) { let { type: t } = e; return t === "object" ? qM(e) : kM(e); } $(MM, "generateSignature"); function BM({ name: e, raw: t }) { return t != null ? (Xd(t) ? Me(e, t) : Me(t)) : Me(e); } $(BM, "generateDefault"); function LM(e) { if (e == null) return null; switch (e.name) { case "union": return jM(e); case "signature": return MM(e); default: return BM(e); } } $(LM, "createType"); var RZ = $((e, t) => { let { flowType: r, description: n, required: a, defaultValue: o } = t; return { name: e, type: LM(r), required: a, description: n, defaultValue: NM(o ?? null, r ?? null), }; }, "createFlowPropDef"); function $M({ defaultValue: e }) { if (e != null) { let { value: t } = e; if (!Wd(t)) return Me(t); } return null; } $($M, "createDefaultValue"); function UM({ tsType: e, required: t }) { if (e == null) return null; let r = e.name; return ( t || (r = r.replace(" | undefined", "")), Me(["Array", "Record", "signature"].includes(e.name) ? e.raw : r) ); } $(UM, "createType"); var TZ = $((e, t) => { let { description: r, required: n } = t; return { name: e, type: UM(t), required: n, description: r, defaultValue: $M(t), }; }, "createTsPropDef"); function HM(e) { return e != null ? Me(e.name) : null; } $(HM, "createType"); function VM(e) { let { computed: t, func: r } = e; return typeof t > "u" && typeof r > "u"; } $(VM, "isReactDocgenTypescript"); function zM(e) { return e ? e.name === "string" ? !0 : e.name === "enum" ? Array.isArray(e.value) && e.value.every( ({ value: t }) => typeof t == "string" && t[0] === '"' && t[t.length - 1] === '"', ) : !1 : !1; } $(zM, "isStringValued"); function GM(e, t) { if (e != null) { let { value: r } = e; if (!Wd(r)) return VM(e) && zM(t) ? Me(JSON.stringify(r)) : Me(r); } return null; } $(GM, "createDefaultValue"); function vE(e, t, r) { let { description: n, required: a, defaultValue: o } = r; return { name: e, type: HM(t), required: a, description: n, defaultValue: GM(o, t), }; } $(vE, "createBasicPropDef"); function qs(e, t) { if (t?.includesJsDoc) { let { description: r, extractedTags: n } = t; r != null && (e.description = t.description); let a = { ...n, params: n?.params?.map((o) => ({ name: o.getPrettyName(), description: o.description, })), }; Object.values(a).filter(Boolean).length > 0 && (e.jsDocTags = a); } return e; } $(qs, "applyJsDocResult"); var OZ = $((e, t, r) => { let n = vE(e, t.type, t); return ((n.sbType = dE(t)), qs(n, r)); }, "javaScriptFactory"), DZ = $((e, t, r) => { let n = TZ(e, t); return ((n.sbType = dE(t)), qs(n, r)); }, "tsFactory"), FZ = $((e, t, r) => { let n = RZ(e, t); return ((n.sbType = dE(t)), qs(n, r)); }, "flowFactory"), IZ = $((e, t, r) => { let n = vE(e, { name: "unknown" }, t); return qs(n, r); }, "unknownFactory"), WM = $((e) => { switch (e) { case "JavaScript": return OZ; case "TypeScript": return DZ; case "Flow": return FZ; default: return IZ; } }, "getPropDefFactory"), JM = $( (e) => e.type != null ? "JavaScript" : e.flowType != null ? "Flow" : e.tsType != null ? "TypeScript" : "Unknown", "getTypeSystem", ), NZ = $((e) => { let t = JM(e[0]), r = WM(t); return e.map((n) => { let a = n; return ( n.type?.elements && (a = { ...n, type: { ...n.type, value: n.type.elements } }), EE(a.name, a, t, r) ); }); }, "extractComponentSectionArray"), jZ = $((e) => { let t = Object.keys(e), r = JM(e[t[0]]), n = WM(r); return t .map((a) => { let o = e[a]; return o != null ? EE(a, o, r, n) : null; }) .filter(Boolean); }, "extractComponentSectionObject"), kZ = $((e, t) => { let r = nc(e, t); return iM(r) ? (Array.isArray(r) ? NZ(r) : jZ(r)) : []; }, "extractComponentProps"); function EE(e, t, r, n) { let a = xZ(t.description); return a.includesJsDoc && a.ignore ? null : { propDef: n(e, t, a), jsDocTags: a.extractedTags, docgenInfo: t, typeSystem: r, }; } $(EE, "extractProp"); function XM(e) { return e != null ? sM(e) : ""; } $(XM, "extractComponentDescription"); var KM = $((...e) => { let t = {}, r = e.filter(Boolean), n = r.reduce( (a, o) => ( Object.entries(o).forEach(([i, u]) => { let l = a[i]; Array.isArray(u) || typeof l > "u" ? (a[i] = u) : al(u) && al(l) ? (t[i] = !0) : typeof u < "u" && (a[i] = u); }), a ), {}, ); return ( Object.keys(t).forEach((a) => { let o = r .filter(Boolean) .map((i) => i[a]) .filter((i) => typeof i < "u"); o.every((i) => al(i)) ? (n[a] = KM(...o)) : (n[a] = o[o.length - 1]); }), n ); }, "combineParameters"), qZ = $((e) => { let { component: t, argTypes: r, parameters: { docs: n = {} }, } = e, { extractArgTypes: a } = n; if (!a || !t) return r; let o = a(t); return o ? KM(o, r) : r; }, "enhanceArgTypes"), MZ = "storybook/docs", soe = `${MZ}/snippet-rendered`, wy = ((e) => ( (e.AUTO = "auto"), (e.CODE = "code"), (e.DYNAMIC = "dynamic"), e ))(wy || {}), BZ = Se({ "../../node_modules/estraverse/estraverse.js"(e) { (function t(r) { var n, a, o, i, u, l; function c(w) { var C = {}, E, _; for (E in w) w.hasOwnProperty(E) && ((_ = w[E]), typeof _ == "object" && _ !== null ? (C[E] = c(_)) : (C[E] = _)); return C; } function d(w, C) { var E, _, P, D; for (_ = w.length, P = 0; _; ) ((E = _ >>> 1), (D = P + E), C(w[D]) ? (_ = E) : ((P = D + 1), (_ -= E + 1))); return P; } ((n = { AssignmentExpression: "AssignmentExpression", AssignmentPattern: "AssignmentPattern", ArrayExpression: "ArrayExpression", ArrayPattern: "ArrayPattern", ArrowFunctionExpression: "ArrowFunctionExpression", AwaitExpression: "AwaitExpression", BlockStatement: "BlockStatement", BinaryExpression: "BinaryExpression", BreakStatement: "BreakStatement", CallExpression: "CallExpression", CatchClause: "CatchClause", ChainExpression: "ChainExpression", ClassBody: "ClassBody", ClassDeclaration: "ClassDeclaration", ClassExpression: "ClassExpression", ComprehensionBlock: "ComprehensionBlock", ComprehensionExpression: "ComprehensionExpression", ConditionalExpression: "ConditionalExpression", ContinueStatement: "ContinueStatement", DebuggerStatement: "DebuggerStatement", DirectiveStatement: "DirectiveStatement", DoWhileStatement: "DoWhileStatement", EmptyStatement: "EmptyStatement", ExportAllDeclaration: "ExportAllDeclaration", ExportDefaultDeclaration: "ExportDefaultDeclaration", ExportNamedDeclaration: "ExportNamedDeclaration", ExportSpecifier: "ExportSpecifier", ExpressionStatement: "ExpressionStatement", ForStatement: "ForStatement", ForInStatement: "ForInStatement", ForOfStatement: "ForOfStatement", FunctionDeclaration: "FunctionDeclaration", FunctionExpression: "FunctionExpression", GeneratorExpression: "GeneratorExpression", Identifier: "Identifier", IfStatement: "IfStatement", ImportExpression: "ImportExpression", ImportDeclaration: "ImportDeclaration", ImportDefaultSpecifier: "ImportDefaultSpecifier", ImportNamespaceSpecifier: "ImportNamespaceSpecifier", ImportSpecifier: "ImportSpecifier", Literal: "Literal", LabeledStatement: "LabeledStatement", LogicalExpression: "LogicalExpression", MemberExpression: "MemberExpression", MetaProperty: "MetaProperty", MethodDefinition: "MethodDefinition", ModuleSpecifier: "ModuleSpecifier", NewExpression: "NewExpression", ObjectExpression: "ObjectExpression", ObjectPattern: "ObjectPattern", PrivateIdentifier: "PrivateIdentifier", Program: "Program", Property: "Property", PropertyDefinition: "PropertyDefinition", RestElement: "RestElement", ReturnStatement: "ReturnStatement", SequenceExpression: "SequenceExpression", SpreadElement: "SpreadElement", Super: "Super", SwitchStatement: "SwitchStatement", SwitchCase: "SwitchCase", TaggedTemplateExpression: "TaggedTemplateExpression", TemplateElement: "TemplateElement", TemplateLiteral: "TemplateLiteral", ThisExpression: "ThisExpression", ThrowStatement: "ThrowStatement", TryStatement: "TryStatement", UnaryExpression: "UnaryExpression", UpdateExpression: "UpdateExpression", VariableDeclaration: "VariableDeclaration", VariableDeclarator: "VariableDeclarator", WhileStatement: "WhileStatement", WithStatement: "WithStatement", YieldExpression: "YieldExpression", }), (o = { AssignmentExpression: ["left", "right"], AssignmentPattern: ["left", "right"], ArrayExpression: ["elements"], ArrayPattern: ["elements"], ArrowFunctionExpression: ["params", "body"], AwaitExpression: ["argument"], BlockStatement: ["body"], BinaryExpression: ["left", "right"], BreakStatement: ["label"], CallExpression: ["callee", "arguments"], CatchClause: ["param", "body"], ChainExpression: ["expression"], ClassBody: ["body"], ClassDeclaration: ["id", "superClass", "body"], ClassExpression: ["id", "superClass", "body"], ComprehensionBlock: ["left", "right"], ComprehensionExpression: ["blocks", "filter", "body"], ConditionalExpression: ["test", "consequent", "alternate"], ContinueStatement: ["label"], DebuggerStatement: [], DirectiveStatement: [], DoWhileStatement: ["body", "test"], EmptyStatement: [], ExportAllDeclaration: ["source"], ExportDefaultDeclaration: ["declaration"], ExportNamedDeclaration: ["declaration", "specifiers", "source"], ExportSpecifier: ["exported", "local"], ExpressionStatement: ["expression"], ForStatement: ["init", "test", "update", "body"], ForInStatement: ["left", "right", "body"], ForOfStatement: ["left", "right", "body"], FunctionDeclaration: ["id", "params", "body"], FunctionExpression: ["id", "params", "body"], GeneratorExpression: ["blocks", "filter", "body"], Identifier: [], IfStatement: ["test", "consequent", "alternate"], ImportExpression: ["source"], ImportDeclaration: ["specifiers", "source"], ImportDefaultSpecifier: ["local"], ImportNamespaceSpecifier: ["local"], ImportSpecifier: ["imported", "local"], Literal: [], LabeledStatement: ["label", "body"], LogicalExpression: ["left", "right"], MemberExpression: ["object", "property"], MetaProperty: ["meta", "property"], MethodDefinition: ["key", "value"], ModuleSpecifier: [], NewExpression: ["callee", "arguments"], ObjectExpression: ["properties"], ObjectPattern: ["properties"], PrivateIdentifier: [], Program: ["body"], Property: ["key", "value"], PropertyDefinition: ["key", "value"], RestElement: ["argument"], ReturnStatement: ["argument"], SequenceExpression: ["expressions"], SpreadElement: ["argument"], Super: [], SwitchStatement: ["discriminant", "cases"], SwitchCase: ["test", "consequent"], TaggedTemplateExpression: ["tag", "quasi"], TemplateElement: [], TemplateLiteral: ["quasis", "expressions"], ThisExpression: [], ThrowStatement: ["argument"], TryStatement: ["block", "handler", "finalizer"], UnaryExpression: ["argument"], UpdateExpression: ["argument"], VariableDeclaration: ["declarations"], VariableDeclarator: ["id", "init"], WhileStatement: ["test", "body"], WithStatement: ["object", "body"], YieldExpression: ["argument"], }), (i = {}), (u = {}), (l = {}), (a = { Break: i, Skip: u, Remove: l })); function p(w, C) { ((this.parent = w), (this.key = C)); } ((p.prototype.replace = function (w) { this.parent[this.key] = w; }), (p.prototype.remove = function () { return Array.isArray(this.parent) ? (this.parent.splice(this.key, 1), !0) : (this.replace(null), !1); })); function f(w, C, E, _) { ((this.node = w), (this.path = C), (this.wrap = E), (this.ref = _)); } function h() {} ((h.prototype.path = function () { var w, C, E, _, P, D; function F(L, q) { if (Array.isArray(q)) for (E = 0, _ = q.length; E < _; ++E) L.push(q[E]); else L.push(q); } if (!this.__current.path) return null; for (P = [], w = 2, C = this.__leavelist.length; w < C; ++w) ((D = this.__leavelist[w]), F(P, D.path)); return (F(P, this.__current.path), P); }), (h.prototype.type = function () { var w = this.current(); return w.type || this.__current.wrap; }), (h.prototype.parents = function () { var w, C, E; for (E = [], w = 1, C = this.__leavelist.length; w < C; ++w) E.push(this.__leavelist[w].node); return E; }), (h.prototype.current = function () { return this.__current.node; }), (h.prototype.__execute = function (w, C) { var E, _; return ( (_ = void 0), (E = this.__current), (this.__current = C), (this.__state = null), w && (_ = w.call( this, C.node, this.__leavelist[this.__leavelist.length - 1].node, )), (this.__current = E), _ ); }), (h.prototype.notify = function (w) { this.__state = w; }), (h.prototype.skip = function () { this.notify(u); }), (h.prototype.break = function () { this.notify(i); }), (h.prototype.remove = function () { this.notify(l); }), (h.prototype.__initialize = function (w, C) { ((this.visitor = C), (this.root = w), (this.__worklist = []), (this.__leavelist = []), (this.__current = null), (this.__state = null), (this.__fallback = null), C.fallback === "iteration" ? (this.__fallback = Object.keys) : typeof C.fallback == "function" && (this.__fallback = C.fallback), (this.__keys = o), C.keys && (this.__keys = Object.assign( Object.create(this.__keys), C.keys, ))); })); function m(w) { return w == null ? !1 : typeof w == "object" && typeof w.type == "string"; } function y(w, C) { return ( (w === n.ObjectExpression || w === n.ObjectPattern) && C === "properties" ); } function b(w, C) { for (var E = w.length - 1; E >= 0; --E) if (w[E].node === C) return !0; return !1; } ((h.prototype.traverse = function (w, C) { var E, _, P, D, F, L, q, T, k, I, W, Q; for ( this.__initialize(w, C), Q = {}, E = this.__worklist, _ = this.__leavelist, E.push(new f(w, null, null, null)), _.push(new f(null, null, null, null)); E.length; ) { if (((P = E.pop()), P === Q)) { if ( ((P = _.pop()), (L = this.__execute(C.leave, P)), this.__state === i || L === i) ) return; continue; } if (P.node) { if ( ((L = this.__execute(C.enter, P)), this.__state === i || L === i) ) return; if ((E.push(Q), _.push(P), this.__state === u || L === u)) continue; if ( ((D = P.node), (F = D.type || P.wrap), (I = this.__keys[F]), !I) ) if (this.__fallback) I = this.__fallback(D); else throw new Error("Unknown node type " + F + "."); for (T = I.length; (T -= 1) >= 0; ) if (((q = I[T]), (W = D[q]), !!W)) { if (Array.isArray(W)) { for (k = W.length; (k -= 1) >= 0; ) if (W[k] && !b(_, W[k])) { if (y(F, I[T])) P = new f(W[k], [q, k], "Property", null); else if (m(W[k])) P = new f(W[k], [q, k], null, null); else continue; E.push(P); } } else if (m(W)) { if (b(_, W)) continue; E.push(new f(W, q, null, null)); } } } } }), (h.prototype.replace = function (w, C) { var E, _, P, D, F, L, q, T, k, I, W, Q, se; function H(K) { var V, Z, re, he; if (K.ref.remove()) { for (Z = K.ref.key, he = K.ref.parent, V = E.length; V--; ) if (((re = E[V]), re.ref && re.ref.parent === he)) { if (re.ref.key < Z) break; --re.ref.key; } } } for ( this.__initialize(w, C), W = {}, E = this.__worklist, _ = this.__leavelist, Q = { root: w }, L = new f(w, null, null, new p(Q, "root")), E.push(L), _.push(L); E.length; ) { if (((L = E.pop()), L === W)) { if ( ((L = _.pop()), (F = this.__execute(C.leave, L)), F !== void 0 && F !== i && F !== u && F !== l && L.ref.replace(F), (this.__state === l || F === l) && H(L), this.__state === i || F === i) ) return Q.root; continue; } if ( ((F = this.__execute(C.enter, L)), F !== void 0 && F !== i && F !== u && F !== l && (L.ref.replace(F), (L.node = F)), (this.__state === l || F === l) && (H(L), (L.node = null)), this.__state === i || F === i) ) return Q.root; if ( ((P = L.node), !!P && (E.push(W), _.push(L), !(this.__state === u || F === u))) ) { if (((D = P.type || L.wrap), (k = this.__keys[D]), !k)) if (this.__fallback) k = this.__fallback(P); else throw new Error("Unknown node type " + D + "."); for (q = k.length; (q -= 1) >= 0; ) if (((se = k[q]), (I = P[se]), !!I)) if (Array.isArray(I)) { for (T = I.length; (T -= 1) >= 0; ) if (I[T]) { if (y(D, k[q])) L = new f(I[T], [se, T], "Property", new p(I, T)); else if (m(I[T])) L = new f(I[T], [se, T], null, new p(I, T)); else continue; E.push(L); } } else m(I) && E.push(new f(I, se, null, new p(P, se))); } } return Q.root; })); function g(w, C) { var E = new h(); return E.traverse(w, C); } function v(w, C) { var E = new h(); return E.replace(w, C); } function x(w, C) { var E; return ( (E = d(C, function (_) { return _.range[0] > w.range[0]; })), (w.extendedRange = [w.range[0], w.range[1]]), E !== C.length && (w.extendedRange[1] = C[E].range[0]), (E -= 1), E >= 0 && (w.extendedRange[0] = C[E].range[1]), w ); } function A(w, C, E) { var _ = [], P, D, F, L; if (!w.range) throw new Error("attachComments needs range information"); if (!E.length) { if (C.length) { for (F = 0, D = C.length; F < D; F += 1) ((P = c(C[F])), (P.extendedRange = [0, w.range[0]]), _.push(P)); w.leadingComments = _; } return w; } for (F = 0, D = C.length; F < D; F += 1) _.push(x(c(C[F]), E)); return ( (L = 0), g(w, { enter: function (q) { for ( var T; L < _.length && ((T = _[L]), !(T.extendedRange[1] > q.range[0])); ) T.extendedRange[1] === q.range[0] ? (q.leadingComments || (q.leadingComments = []), q.leadingComments.push(T), _.splice(L, 1)) : (L += 1); if (L === _.length) return a.Break; if (_[L].extendedRange[0] > q.range[1]) return a.Skip; }, }), (L = 0), g(w, { leave: function (q) { for ( var T; L < _.length && ((T = _[L]), !(q.range[1] < T.extendedRange[0])); ) q.range[1] === T.extendedRange[0] ? (q.trailingComments || (q.trailingComments = []), q.trailingComments.push(T), _.splice(L, 1)) : (L += 1); if (L === _.length) return a.Break; if (_[L].extendedRange[0] > q.range[1]) return a.Skip; }, }), w ); } return ( (r.Syntax = n), (r.traverse = g), (r.replace = v), (r.attachComments = A), (r.VisitorKeys = o), (r.VisitorOption = a), (r.Controller = h), (r.cloneEnvironment = function () { return t({}); }), r ); })(e); }, }), LZ = Se({ "../../node_modules/esutils/lib/ast.js"(e, t) { (function () { function r(l) { if (l == null) return !1; switch (l.type) { case "ArrayExpression": case "AssignmentExpression": case "BinaryExpression": case "CallExpression": case "ConditionalExpression": case "FunctionExpression": case "Identifier": case "Literal": case "LogicalExpression": case "MemberExpression": case "NewExpression": case "ObjectExpression": case "SequenceExpression": case "ThisExpression": case "UnaryExpression": case "UpdateExpression": return !0; } return !1; } function n(l) { if (l == null) return !1; switch (l.type) { case "DoWhileStatement": case "ForInStatement": case "ForStatement": case "WhileStatement": return !0; } return !1; } function a(l) { if (l == null) return !1; switch (l.type) { case "BlockStatement": case "BreakStatement": case "ContinueStatement": case "DebuggerStatement": case "DoWhileStatement": case "EmptyStatement": case "ExpressionStatement": case "ForInStatement": case "ForStatement": case "IfStatement": case "LabeledStatement": case "ReturnStatement": case "SwitchStatement": case "ThrowStatement": case "TryStatement": case "VariableDeclaration": case "WhileStatement": case "WithStatement": return !0; } return !1; } function o(l) { return a(l) || (l != null && l.type === "FunctionDeclaration"); } function i(l) { switch (l.type) { case "IfStatement": return l.alternate != null ? l.alternate : l.consequent; case "LabeledStatement": case "ForStatement": case "ForInStatement": case "WhileStatement": case "WithStatement": return l.body; } return null; } function u(l) { var c; if (l.type !== "IfStatement" || l.alternate == null) return !1; c = l.consequent; do { if (c.type === "IfStatement" && c.alternate == null) return !0; c = i(c); } while (c); return !1; } t.exports = { isExpression: r, isStatement: a, isIterationStatement: n, isSourceElement: o, isProblematicIfStatement: u, trailingStatement: i, }; })(); }, }), YM = Se({ "../../node_modules/esutils/lib/code.js"(e, t) { (function () { var r, n, a, o, i, u; ((n = { NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/, NonAsciiIdentifierPart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/, }), (r = { NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/, NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/, })); function l(v) { return 48 <= v && v <= 57; } function c(v) { return ( (48 <= v && v <= 57) || (97 <= v && v <= 102) || (65 <= v && v <= 70) ); } function d(v) { return v >= 48 && v <= 55; } a = [ 5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, 8201, 8202, 8239, 8287, 12288, 65279, ]; function p(v) { return ( v === 32 || v === 9 || v === 11 || v === 12 || v === 160 || (v >= 5760 && a.indexOf(v) >= 0) ); } function f(v) { return v === 10 || v === 13 || v === 8232 || v === 8233; } function h(v) { if (v <= 65535) return String.fromCharCode(v); var x = String.fromCharCode(Math.floor((v - 65536) / 1024) + 55296), A = String.fromCharCode(((v - 65536) % 1024) + 56320); return x + A; } for (o = new Array(128), u = 0; u < 128; ++u) o[u] = (u >= 97 && u <= 122) || (u >= 65 && u <= 90) || u === 36 || u === 95; for (i = new Array(128), u = 0; u < 128; ++u) i[u] = (u >= 97 && u <= 122) || (u >= 65 && u <= 90) || (u >= 48 && u <= 57) || u === 36 || u === 95; function m(v) { return v < 128 ? o[v] : n.NonAsciiIdentifierStart.test(h(v)); } function y(v) { return v < 128 ? i[v] : n.NonAsciiIdentifierPart.test(h(v)); } function b(v) { return v < 128 ? o[v] : r.NonAsciiIdentifierStart.test(h(v)); } function g(v) { return v < 128 ? i[v] : r.NonAsciiIdentifierPart.test(h(v)); } t.exports = { isDecimalDigit: l, isHexDigit: c, isOctalDigit: d, isWhiteSpace: p, isLineTerminator: f, isIdentifierStartES5: m, isIdentifierPartES5: y, isIdentifierStartES6: b, isIdentifierPartES6: g, }; })(); }, }), $Z = Se({ "../../node_modules/esutils/lib/keyword.js"(e, t) { (function () { var r = YM(); function n(m) { switch (m) { case "implements": case "interface": case "package": case "private": case "protected": case "public": case "static": case "let": return !0; default: return !1; } } function a(m, y) { return !y && m === "yield" ? !1 : o(m, y); } function o(m, y) { if (y && n(m)) return !0; switch (m.length) { case 2: return m === "if" || m === "in" || m === "do"; case 3: return m === "var" || m === "for" || m === "new" || m === "try"; case 4: return ( m === "this" || m === "else" || m === "case" || m === "void" || m === "with" || m === "enum" ); case 5: return ( m === "while" || m === "break" || m === "catch" || m === "throw" || m === "const" || m === "yield" || m === "class" || m === "super" ); case 6: return ( m === "return" || m === "typeof" || m === "delete" || m === "switch" || m === "export" || m === "import" ); case 7: return m === "default" || m === "finally" || m === "extends"; case 8: return m === "function" || m === "continue" || m === "debugger"; case 10: return m === "instanceof"; default: return !1; } } function i(m, y) { return m === "null" || m === "true" || m === "false" || a(m, y); } function u(m, y) { return m === "null" || m === "true" || m === "false" || o(m, y); } function l(m) { return m === "eval" || m === "arguments"; } function c(m) { var y, b, g; if ( m.length === 0 || ((g = m.charCodeAt(0)), !r.isIdentifierStartES5(g)) ) return !1; for (y = 1, b = m.length; y < b; ++y) if (((g = m.charCodeAt(y)), !r.isIdentifierPartES5(g))) return !1; return !0; } function d(m, y) { return (m - 55296) * 1024 + (y - 56320) + 65536; } function p(m) { var y, b, g, v, x; if (m.length === 0) return !1; for (x = r.isIdentifierStartES6, y = 0, b = m.length; y < b; ++y) { if (((g = m.charCodeAt(y)), 55296 <= g && g <= 56319)) { if ( (++y, y >= b || ((v = m.charCodeAt(y)), !(56320 <= v && v <= 57343))) ) return !1; g = d(g, v); } if (!x(g)) return !1; x = r.isIdentifierPartES6; } return !0; } function f(m, y) { return c(m) && !i(m, y); } function h(m, y) { return p(m) && !u(m, y); } t.exports = { isKeywordES5: a, isKeywordES6: o, isReservedWordES5: i, isReservedWordES6: u, isRestrictedWord: l, isIdentifierNameES5: c, isIdentifierNameES6: p, isIdentifierES5: f, isIdentifierES6: h, }; })(); }, }), UZ = Se({ "../../node_modules/esutils/lib/utils.js"(e) { (function () { ((e.ast = LZ()), (e.code = YM()), (e.keyword = $Z())); })(); }, }), HZ = Se({ "../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(e) { var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split( "", ); ((e.encode = function (r) { if (0 <= r && r < t.length) return t[r]; throw new TypeError("Must be between 0 and 63: " + r); }), (e.decode = function (r) { var n = 65, a = 90, o = 97, i = 122, u = 48, l = 57, c = 43, d = 47, p = 26, f = 52; return n <= r && r <= a ? r - n : o <= r && r <= i ? r - o + p : u <= r && r <= l ? r - u + f : r == c ? 62 : r == d ? 63 : -1; })); }, }), QM = Se({ "../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"( e, ) { var t = HZ(), r = 5, n = 1 << r, a = n - 1, o = n; function i(l) { return l < 0 ? (-l << 1) + 1 : (l << 1) + 0; } function u(l) { var c = (l & 1) === 1, d = l >> 1; return c ? -d : d; } ((e.encode = function (l) { var c = "", d, p = i(l); do ((d = p & a), (p >>>= r), p > 0 && (d |= o), (c += t.encode(d))); while (p > 0); return c; }), (e.decode = function (l, c, d) { var p = l.length, f = 0, h = 0, m, y; do { if (c >= p) throw new Error("Expected more digits in base 64 VLQ value."); if (((y = t.decode(l.charCodeAt(c++))), y === -1)) throw new Error("Invalid base64 digit: " + l.charAt(c - 1)); ((m = !!(y & o)), (y &= a), (f = f + (y << h)), (h += r)); } while (m); ((d.value = u(f)), (d.rest = c)); })); }, }), Ms = Se({ "../../node_modules/escodegen/node_modules/source-map/lib/util.js"(e) { function t(A, w, C) { if (w in A) return A[w]; if (arguments.length === 3) return C; throw new Error('"' + w + '" is a required argument.'); } e.getArg = t; var r = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, n = /^data:.+\,.+$/; function a(A) { var w = A.match(r); return w ? { scheme: w[1], auth: w[2], host: w[3], port: w[4], path: w[5] } : null; } e.urlParse = a; function o(A) { var w = ""; return ( A.scheme && (w += A.scheme + ":"), (w += "//"), A.auth && (w += A.auth + "@"), A.host && (w += A.host), A.port && (w += ":" + A.port), A.path && (w += A.path), w ); } e.urlGenerate = o; function i(A) { var w = A, C = a(A); if (C) { if (!C.path) return A; w = C.path; } for ( var E = e.isAbsolute(w), _ = w.split(/\/+/), P, D = 0, F = _.length - 1; F >= 0; F-- ) ((P = _[F]), P === "." ? _.splice(F, 1) : P === ".." ? D++ : D > 0 && (P === "" ? (_.splice(F + 1, D), (D = 0)) : (_.splice(F, 2), D--))); return ( (w = _.join("/")), w === "" && (w = E ? "/" : "."), C ? ((C.path = w), o(C)) : w ); } e.normalize = i; function u(A, w) { (A === "" && (A = "."), w === "" && (w = ".")); var C = a(w), E = a(A); if ((E && (A = E.path || "/"), C && !C.scheme)) return (E && (C.scheme = E.scheme), o(C)); if (C || w.match(n)) return w; if (E && !E.host && !E.path) return ((E.host = w), o(E)); var _ = w.charAt(0) === "/" ? w : i(A.replace(/\/+$/, "") + "/" + w); return E ? ((E.path = _), o(E)) : _; } ((e.join = u), (e.isAbsolute = function (A) { return A.charAt(0) === "/" || r.test(A); })); function l(A, w) { (A === "" && (A = "."), (A = A.replace(/\/$/, ""))); for (var C = 0; w.indexOf(A + "/") !== 0; ) { var E = A.lastIndexOf("/"); if (E < 0 || ((A = A.slice(0, E)), A.match(/^([^\/]+:\/)?\/*$/))) return w; ++C; } return Array(C + 1).join("../") + w.substr(A.length + 1); } e.relative = l; var c = (function () { var A = Object.create(null); return !("__proto__" in A); })(); function d(A) { return A; } function p(A) { return h(A) ? "$" + A : A; } e.toSetString = c ? d : p; function f(A) { return h(A) ? A.slice(1) : A; } e.fromSetString = c ? d : f; function h(A) { if (!A) return !1; var w = A.length; if ( w < 9 || A.charCodeAt(w - 1) !== 95 || A.charCodeAt(w - 2) !== 95 || A.charCodeAt(w - 3) !== 111 || A.charCodeAt(w - 4) !== 116 || A.charCodeAt(w - 5) !== 111 || A.charCodeAt(w - 6) !== 114 || A.charCodeAt(w - 7) !== 112 || A.charCodeAt(w - 8) !== 95 || A.charCodeAt(w - 9) !== 95 ) return !1; for (var C = w - 10; C >= 0; C--) if (A.charCodeAt(C) !== 36) return !1; return !0; } function m(A, w, C) { var E = b(A.source, w.source); return E !== 0 || ((E = A.originalLine - w.originalLine), E !== 0) || ((E = A.originalColumn - w.originalColumn), E !== 0 || C) || ((E = A.generatedColumn - w.generatedColumn), E !== 0) || ((E = A.generatedLine - w.generatedLine), E !== 0) ? E : b(A.name, w.name); } e.compareByOriginalPositions = m; function y(A, w, C) { var E = A.generatedLine - w.generatedLine; return E !== 0 || ((E = A.generatedColumn - w.generatedColumn), E !== 0 || C) || ((E = b(A.source, w.source)), E !== 0) || ((E = A.originalLine - w.originalLine), E !== 0) || ((E = A.originalColumn - w.originalColumn), E !== 0) ? E : b(A.name, w.name); } e.compareByGeneratedPositionsDeflated = y; function b(A, w) { return A === w ? 0 : A === null ? 1 : w === null ? -1 : A > w ? 1 : -1; } function g(A, w) { var C = A.generatedLine - w.generatedLine; return C !== 0 || ((C = A.generatedColumn - w.generatedColumn), C !== 0) || ((C = b(A.source, w.source)), C !== 0) || ((C = A.originalLine - w.originalLine), C !== 0) || ((C = A.originalColumn - w.originalColumn), C !== 0) ? C : b(A.name, w.name); } e.compareByGeneratedPositionsInflated = g; function v(A) { return JSON.parse(A.replace(/^\)]}'[^\n]*\n/, "")); } e.parseSourceMapInput = v; function x(A, w, C) { if ( ((w = w || ""), A && (A[A.length - 1] !== "/" && w[0] !== "/" && (A += "/"), (w = A + w)), C) ) { var E = a(C); if (!E) throw new Error("sourceMapURL could not be parsed"); if (E.path) { var _ = E.path.lastIndexOf("/"); _ >= 0 && (E.path = E.path.substring(0, _ + 1)); } w = u(o(E), w); } return i(w); } e.computeSourceURL = x; }, }), ZM = Se({ "../../node_modules/escodegen/node_modules/source-map/lib/array-set.js"(e) { var t = Ms(), r = Object.prototype.hasOwnProperty, n = typeof Map < "u"; function a() { ((this._array = []), (this._set = n ? new Map() : Object.create(null))); } ((a.fromArray = function (o, i) { for (var u = new a(), l = 0, c = o.length; l < c; l++) u.add(o[l], i); return u; }), (a.prototype.size = function () { return n ? this._set.size : Object.getOwnPropertyNames(this._set).length; }), (a.prototype.add = function (o, i) { var u = n ? o : t.toSetString(o), l = n ? this.has(o) : r.call(this._set, u), c = this._array.length; ((!l || i) && this._array.push(o), l || (n ? this._set.set(o, c) : (this._set[u] = c))); }), (a.prototype.has = function (o) { if (n) return this._set.has(o); var i = t.toSetString(o); return r.call(this._set, i); }), (a.prototype.indexOf = function (o) { if (n) { var i = this._set.get(o); if (i >= 0) return i; } else { var u = t.toSetString(o); if (r.call(this._set, u)) return this._set[u]; } throw new Error('"' + o + '" is not in the set.'); }), (a.prototype.at = function (o) { if (o >= 0 && o < this._array.length) return this._array[o]; throw new Error("No element indexed by " + o); }), (a.prototype.toArray = function () { return this._array.slice(); }), (e.ArraySet = a)); }, }), VZ = Se({ "../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"( e, ) { var t = Ms(); function r(a, o) { var i = a.generatedLine, u = o.generatedLine, l = a.generatedColumn, c = o.generatedColumn; return ( u > i || (u == i && c >= l) || t.compareByGeneratedPositionsInflated(a, o) <= 0 ); } function n() { ((this._array = []), (this._sorted = !0), (this._last = { generatedLine: -1, generatedColumn: 0 })); } ((n.prototype.unsortedForEach = function (a, o) { this._array.forEach(a, o); }), (n.prototype.add = function (a) { r(this._last, a) ? ((this._last = a), this._array.push(a)) : ((this._sorted = !1), this._array.push(a)); }), (n.prototype.toArray = function () { return ( this._sorted || (this._array.sort(t.compareByGeneratedPositionsInflated), (this._sorted = !0)), this._array ); }), (e.MappingList = n)); }, }), eB = Se({ "../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"( e, ) { var t = QM(), r = Ms(), n = ZM().ArraySet, a = VZ().MappingList; function o(i) { (i || (i = {}), (this._file = r.getArg(i, "file", null)), (this._sourceRoot = r.getArg(i, "sourceRoot", null)), (this._skipValidation = r.getArg(i, "skipValidation", !1)), (this._sources = new n()), (this._names = new n()), (this._mappings = new a()), (this._sourcesContents = null)); } ((o.prototype._version = 3), (o.fromSourceMap = function (i) { var u = i.sourceRoot, l = new o({ file: i.file, sourceRoot: u }); return ( i.eachMapping(function (c) { var d = { generated: { line: c.generatedLine, column: c.generatedColumn }, }; (c.source != null && ((d.source = c.source), u != null && (d.source = r.relative(u, d.source)), (d.original = { line: c.originalLine, column: c.originalColumn, }), c.name != null && (d.name = c.name)), l.addMapping(d)); }), i.sources.forEach(function (c) { var d = c; (u !== null && (d = r.relative(u, c)), l._sources.has(d) || l._sources.add(d)); var p = i.sourceContentFor(c); p != null && l.setSourceContent(c, p); }), l ); }), (o.prototype.addMapping = function (i) { var u = r.getArg(i, "generated"), l = r.getArg(i, "original", null), c = r.getArg(i, "source", null), d = r.getArg(i, "name", null); (this._skipValidation || this._validateMapping(u, l, c, d), c != null && ((c = String(c)), this._sources.has(c) || this._sources.add(c)), d != null && ((d = String(d)), this._names.has(d) || this._names.add(d)), this._mappings.add({ generatedLine: u.line, generatedColumn: u.column, originalLine: l != null && l.line, originalColumn: l != null && l.column, source: c, name: d, })); }), (o.prototype.setSourceContent = function (i, u) { var l = i; (this._sourceRoot != null && (l = r.relative(this._sourceRoot, l)), u != null ? (this._sourcesContents || (this._sourcesContents = Object.create(null)), (this._sourcesContents[r.toSetString(l)] = u)) : this._sourcesContents && (delete this._sourcesContents[r.toSetString(l)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null))); }), (o.prototype.applySourceMap = function (i, u, l) { var c = u; if (u == null) { if (i.file == null) throw new Error( `SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`, ); c = i.file; } var d = this._sourceRoot; d != null && (c = r.relative(d, c)); var p = new n(), f = new n(); (this._mappings.unsortedForEach(function (h) { if (h.source === c && h.originalLine != null) { var m = i.originalPositionFor({ line: h.originalLine, column: h.originalColumn, }); m.source != null && ((h.source = m.source), l != null && (h.source = r.join(l, h.source)), d != null && (h.source = r.relative(d, h.source)), (h.originalLine = m.line), (h.originalColumn = m.column), m.name != null && (h.name = m.name)); } var y = h.source; y != null && !p.has(y) && p.add(y); var b = h.name; b != null && !f.has(b) && f.add(b); }, this), (this._sources = p), (this._names = f), i.sources.forEach(function (h) { var m = i.sourceContentFor(h); m != null && (l != null && (h = r.join(l, h)), d != null && (h = r.relative(d, h)), this.setSourceContent(h, m)); }, this)); }), (o.prototype._validateMapping = function (i, u, l, c) { if (u && typeof u.line != "number" && typeof u.column != "number") throw new Error( "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.", ); if ( !( i && "line" in i && "column" in i && i.line > 0 && i.column >= 0 && !u && !l && !c ) ) { if ( i && "line" in i && "column" in i && u && "line" in u && "column" in u && i.line > 0 && i.column >= 0 && u.line > 0 && u.column >= 0 && l ) return; throw new Error( "Invalid mapping: " + JSON.stringify({ generated: i, source: l, original: u, name: c, }), ); } }), (o.prototype._serializeMappings = function () { for ( var i = 0, u = 1, l = 0, c = 0, d = 0, p = 0, f = "", h, m, y, b, g = this._mappings.toArray(), v = 0, x = g.length; v < x; v++ ) { if (((m = g[v]), (h = ""), m.generatedLine !== u)) for (i = 0; m.generatedLine !== u; ) ((h += ";"), u++); else if (v > 0) { if (!r.compareByGeneratedPositionsInflated(m, g[v - 1])) continue; h += ","; } ((h += t.encode(m.generatedColumn - i)), (i = m.generatedColumn), m.source != null && ((b = this._sources.indexOf(m.source)), (h += t.encode(b - p)), (p = b), (h += t.encode(m.originalLine - 1 - c)), (c = m.originalLine - 1), (h += t.encode(m.originalColumn - l)), (l = m.originalColumn), m.name != null && ((y = this._names.indexOf(m.name)), (h += t.encode(y - d)), (d = y))), (f += h)); } return f; }), (o.prototype._generateSourcesContent = function (i, u) { return i.map(function (l) { if (!this._sourcesContents) return null; u != null && (l = r.relative(u, l)); var c = r.toSetString(l); return Object.prototype.hasOwnProperty.call( this._sourcesContents, c, ) ? this._sourcesContents[c] : null; }, this); }), (o.prototype.toJSON = function () { var i = { version: this._version, sources: this._sources.toArray(), names: this._names.toArray(), mappings: this._serializeMappings(), }; return ( this._file != null && (i.file = this._file), this._sourceRoot != null && (i.sourceRoot = this._sourceRoot), this._sourcesContents && (i.sourcesContent = this._generateSourcesContent( i.sources, i.sourceRoot, )), i ); }), (o.prototype.toString = function () { return JSON.stringify(this.toJSON()); }), (e.SourceMapGenerator = o)); }, }), zZ = Se({ "../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"( e, ) { ((e.GREATEST_LOWER_BOUND = 1), (e.LEAST_UPPER_BOUND = 2)); function t(r, n, a, o, i, u) { var l = Math.floor((n - r) / 2) + r, c = i(a, o[l], !0); return c === 0 ? l : c > 0 ? n - l > 1 ? t(l, n, a, o, i, u) : u == e.LEAST_UPPER_BOUND ? n < o.length ? n : -1 : l : l - r > 1 ? t(r, l, a, o, i, u) : u == e.LEAST_UPPER_BOUND ? l : r < 0 ? -1 : r; } e.search = function (r, n, a, o) { if (n.length === 0) return -1; var i = t(-1, n.length, r, n, a, o || e.GREATEST_LOWER_BOUND); if (i < 0) return -1; for (; i - 1 >= 0 && a(n[i], n[i - 1], !0) === 0; ) --i; return i; }; }, }), GZ = Se({ "../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"( e, ) { function t(a, o, i) { var u = a[o]; ((a[o] = a[i]), (a[i] = u)); } function r(a, o) { return Math.round(a + Math.random() * (o - a)); } function n(a, o, i, u) { if (i < u) { var l = r(i, u), c = i - 1; t(a, l, u); for (var d = a[u], p = i; p < u; p++) o(a[p], d) <= 0 && ((c += 1), t(a, c, p)); t(a, c + 1, p); var f = c + 1; (n(a, o, i, f - 1), n(a, o, f + 1, u)); } } e.quickSort = function (a, o) { n(a, o, 0, a.length - 1); }; }, }), WZ = Se({ "../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"( e, ) { var t = Ms(), r = zZ(), n = ZM().ArraySet, a = QM(), o = GZ().quickSort; function i(d, p) { var f = d; return ( typeof d == "string" && (f = t.parseSourceMapInput(d)), f.sections != null ? new c(f, p) : new u(f, p) ); } ((i.fromSourceMap = function (d, p) { return u.fromSourceMap(d, p); }), (i.prototype._version = 3), (i.prototype.__generatedMappings = null), Object.defineProperty(i.prototype, "_generatedMappings", { configurable: !0, enumerable: !0, get: function () { return ( this.__generatedMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__generatedMappings ); }, }), (i.prototype.__originalMappings = null), Object.defineProperty(i.prototype, "_originalMappings", { configurable: !0, enumerable: !0, get: function () { return ( this.__originalMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__originalMappings ); }, }), (i.prototype._charIsMappingSeparator = function (d, p) { var f = d.charAt(p); return f === ";" || f === ","; }), (i.prototype._parseMappings = function (d, p) { throw new Error("Subclasses must implement _parseMappings"); }), (i.GENERATED_ORDER = 1), (i.ORIGINAL_ORDER = 2), (i.GREATEST_LOWER_BOUND = 1), (i.LEAST_UPPER_BOUND = 2), (i.prototype.eachMapping = function (d, p, f) { var h = p || null, m = f || i.GENERATED_ORDER, y; switch (m) { case i.GENERATED_ORDER: y = this._generatedMappings; break; case i.ORIGINAL_ORDER: y = this._originalMappings; break; default: throw new Error("Unknown order of iteration."); } var b = this.sourceRoot; y.map(function (g) { var v = g.source === null ? null : this._sources.at(g.source); return ( (v = t.computeSourceURL(b, v, this._sourceMapURL)), { source: v, generatedLine: g.generatedLine, generatedColumn: g.generatedColumn, originalLine: g.originalLine, originalColumn: g.originalColumn, name: g.name === null ? null : this._names.at(g.name), } ); }, this).forEach(d, h); }), (i.prototype.allGeneratedPositionsFor = function (d) { var p = t.getArg(d, "line"), f = { source: t.getArg(d, "source"), originalLine: p, originalColumn: t.getArg(d, "column", 0), }; if (((f.source = this._findSourceIndex(f.source)), f.source < 0)) return []; var h = [], m = this._findMapping( f, this._originalMappings, "originalLine", "originalColumn", t.compareByOriginalPositions, r.LEAST_UPPER_BOUND, ); if (m >= 0) { var y = this._originalMappings[m]; if (d.column === void 0) for (var b = y.originalLine; y && y.originalLine === b; ) (h.push({ line: t.getArg(y, "generatedLine", null), column: t.getArg(y, "generatedColumn", null), lastColumn: t.getArg(y, "lastGeneratedColumn", null), }), (y = this._originalMappings[++m])); else for ( var g = y.originalColumn; y && y.originalLine === p && y.originalColumn == g; ) (h.push({ line: t.getArg(y, "generatedLine", null), column: t.getArg(y, "generatedColumn", null), lastColumn: t.getArg(y, "lastGeneratedColumn", null), }), (y = this._originalMappings[++m])); } return h; }), (e.SourceMapConsumer = i)); function u(d, p) { var f = d; typeof d == "string" && (f = t.parseSourceMapInput(d)); var h = t.getArg(f, "version"), m = t.getArg(f, "sources"), y = t.getArg(f, "names", []), b = t.getArg(f, "sourceRoot", null), g = t.getArg(f, "sourcesContent", null), v = t.getArg(f, "mappings"), x = t.getArg(f, "file", null); if (h != this._version) throw new Error("Unsupported version: " + h); (b && (b = t.normalize(b)), (m = m .map(String) .map(t.normalize) .map(function (A) { return b && t.isAbsolute(b) && t.isAbsolute(A) ? t.relative(b, A) : A; })), (this._names = n.fromArray(y.map(String), !0)), (this._sources = n.fromArray(m, !0)), (this._absoluteSources = this._sources.toArray().map(function (A) { return t.computeSourceURL(b, A, p); })), (this.sourceRoot = b), (this.sourcesContent = g), (this._mappings = v), (this._sourceMapURL = p), (this.file = x)); } ((u.prototype = Object.create(i.prototype)), (u.prototype.consumer = i), (u.prototype._findSourceIndex = function (d) { var p = d; if ( (this.sourceRoot != null && (p = t.relative(this.sourceRoot, p)), this._sources.has(p)) ) return this._sources.indexOf(p); var f; for (f = 0; f < this._absoluteSources.length; ++f) if (this._absoluteSources[f] == d) return f; return -1; }), (u.fromSourceMap = function (d, p) { var f = Object.create(u.prototype), h = (f._names = n.fromArray(d._names.toArray(), !0)), m = (f._sources = n.fromArray(d._sources.toArray(), !0)); ((f.sourceRoot = d._sourceRoot), (f.sourcesContent = d._generateSourcesContent( f._sources.toArray(), f.sourceRoot, )), (f.file = d._file), (f._sourceMapURL = p), (f._absoluteSources = f._sources.toArray().map(function (C) { return t.computeSourceURL(f.sourceRoot, C, p); }))); for ( var y = d._mappings.toArray().slice(), b = (f.__generatedMappings = []), g = (f.__originalMappings = []), v = 0, x = y.length; v < x; v++ ) { var A = y[v], w = new l(); ((w.generatedLine = A.generatedLine), (w.generatedColumn = A.generatedColumn), A.source && ((w.source = m.indexOf(A.source)), (w.originalLine = A.originalLine), (w.originalColumn = A.originalColumn), A.name && (w.name = h.indexOf(A.name)), g.push(w)), b.push(w)); } return (o(f.__originalMappings, t.compareByOriginalPositions), f); }), (u.prototype._version = 3), Object.defineProperty(u.prototype, "sources", { get: function () { return this._absoluteSources.slice(); }, })); function l() { ((this.generatedLine = 0), (this.generatedColumn = 0), (this.source = null), (this.originalLine = null), (this.originalColumn = null), (this.name = null)); } ((u.prototype._parseMappings = function (d, p) { for ( var f = 1, h = 0, m = 0, y = 0, b = 0, g = 0, v = d.length, x = 0, A = {}, w = {}, C = [], E = [], _, P, D, F, L; x < v; ) if (d.charAt(x) === ";") (f++, x++, (h = 0)); else if (d.charAt(x) === ",") x++; else { for ( _ = new l(), _.generatedLine = f, F = x; F < v && !this._charIsMappingSeparator(d, F); F++ ); if (((P = d.slice(x, F)), (D = A[P]), D)) x += P.length; else { for (D = []; x < F; ) (a.decode(d, x, w), (L = w.value), (x = w.rest), D.push(L)); if (D.length === 2) throw new Error("Found a source, but no line and column"); if (D.length === 3) throw new Error("Found a source and line, but no column"); A[P] = D; } ((_.generatedColumn = h + D[0]), (h = _.generatedColumn), D.length > 1 && ((_.source = b + D[1]), (b += D[1]), (_.originalLine = m + D[2]), (m = _.originalLine), (_.originalLine += 1), (_.originalColumn = y + D[3]), (y = _.originalColumn), D.length > 4 && ((_.name = g + D[4]), (g += D[4]))), E.push(_), typeof _.originalLine == "number" && C.push(_)); } (o(E, t.compareByGeneratedPositionsDeflated), (this.__generatedMappings = E), o(C, t.compareByOriginalPositions), (this.__originalMappings = C)); }), (u.prototype._findMapping = function (d, p, f, h, m, y) { if (d[f] <= 0) throw new TypeError( "Line must be greater than or equal to 1, got " + d[f], ); if (d[h] < 0) throw new TypeError( "Column must be greater than or equal to 0, got " + d[h], ); return r.search(d, p, m, y); }), (u.prototype.computeColumnSpans = function () { for (var d = 0; d < this._generatedMappings.length; ++d) { var p = this._generatedMappings[d]; if (d + 1 < this._generatedMappings.length) { var f = this._generatedMappings[d + 1]; if (p.generatedLine === f.generatedLine) { p.lastGeneratedColumn = f.generatedColumn - 1; continue; } } p.lastGeneratedColumn = 1 / 0; } }), (u.prototype.originalPositionFor = function (d) { var p = { generatedLine: t.getArg(d, "line"), generatedColumn: t.getArg(d, "column"), }, f = this._findMapping( p, this._generatedMappings, "generatedLine", "generatedColumn", t.compareByGeneratedPositionsDeflated, t.getArg(d, "bias", i.GREATEST_LOWER_BOUND), ); if (f >= 0) { var h = this._generatedMappings[f]; if (h.generatedLine === p.generatedLine) { var m = t.getArg(h, "source", null); m !== null && ((m = this._sources.at(m)), (m = t.computeSourceURL( this.sourceRoot, m, this._sourceMapURL, ))); var y = t.getArg(h, "name", null); return ( y !== null && (y = this._names.at(y)), { source: m, line: t.getArg(h, "originalLine", null), column: t.getArg(h, "originalColumn", null), name: y, } ); } } return { source: null, line: null, column: null, name: null }; }), (u.prototype.hasContentsOfAllSources = function () { return this.sourcesContent ? this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function (d) { return d == null; }) : !1; }), (u.prototype.sourceContentFor = function (d, p) { if (!this.sourcesContent) return null; var f = this._findSourceIndex(d); if (f >= 0) return this.sourcesContent[f]; var h = d; this.sourceRoot != null && (h = t.relative(this.sourceRoot, h)); var m; if (this.sourceRoot != null && (m = t.urlParse(this.sourceRoot))) { var y = h.replace(/^file:\/\//, ""); if (m.scheme == "file" && this._sources.has(y)) return this.sourcesContent[this._sources.indexOf(y)]; if ((!m.path || m.path == "/") && this._sources.has("/" + h)) return this.sourcesContent[this._sources.indexOf("/" + h)]; } if (p) return null; throw new Error('"' + h + '" is not in the SourceMap.'); }), (u.prototype.generatedPositionFor = function (d) { var p = t.getArg(d, "source"); if (((p = this._findSourceIndex(p)), p < 0)) return { line: null, column: null, lastColumn: null }; var f = { source: p, originalLine: t.getArg(d, "line"), originalColumn: t.getArg(d, "column"), }, h = this._findMapping( f, this._originalMappings, "originalLine", "originalColumn", t.compareByOriginalPositions, t.getArg(d, "bias", i.GREATEST_LOWER_BOUND), ); if (h >= 0) { var m = this._originalMappings[h]; if (m.source === f.source) return { line: t.getArg(m, "generatedLine", null), column: t.getArg(m, "generatedColumn", null), lastColumn: t.getArg(m, "lastGeneratedColumn", null), }; } return { line: null, column: null, lastColumn: null }; }), (e.BasicSourceMapConsumer = u)); function c(d, p) { var f = d; typeof d == "string" && (f = t.parseSourceMapInput(d)); var h = t.getArg(f, "version"), m = t.getArg(f, "sections"); if (h != this._version) throw new Error("Unsupported version: " + h); ((this._sources = new n()), (this._names = new n())); var y = { line: -1, column: 0 }; this._sections = m.map(function (b) { if (b.url) throw new Error( "Support for url field in sections not implemented.", ); var g = t.getArg(b, "offset"), v = t.getArg(g, "line"), x = t.getArg(g, "column"); if (v < y.line || (v === y.line && x < y.column)) throw new Error( "Section offsets must be ordered and non-overlapping.", ); return ( (y = g), { generatedOffset: { generatedLine: v + 1, generatedColumn: x + 1 }, consumer: new i(t.getArg(b, "map"), p), } ); }); } ((c.prototype = Object.create(i.prototype)), (c.prototype.constructor = i), (c.prototype._version = 3), Object.defineProperty(c.prototype, "sources", { get: function () { for (var d = [], p = 0; p < this._sections.length; p++) for ( var f = 0; f < this._sections[p].consumer.sources.length; f++ ) d.push(this._sections[p].consumer.sources[f]); return d; }, }), (c.prototype.originalPositionFor = function (d) { var p = { generatedLine: t.getArg(d, "line"), generatedColumn: t.getArg(d, "column"), }, f = r.search(p, this._sections, function (m, y) { var b = m.generatedLine - y.generatedOffset.generatedLine; return b || m.generatedColumn - y.generatedOffset.generatedColumn; }), h = this._sections[f]; return h ? h.consumer.originalPositionFor({ line: p.generatedLine - (h.generatedOffset.generatedLine - 1), column: p.generatedColumn - (h.generatedOffset.generatedLine === p.generatedLine ? h.generatedOffset.generatedColumn - 1 : 0), bias: d.bias, }) : { source: null, line: null, column: null, name: null }; }), (c.prototype.hasContentsOfAllSources = function () { return this._sections.every(function (d) { return d.consumer.hasContentsOfAllSources(); }); }), (c.prototype.sourceContentFor = function (d, p) { for (var f = 0; f < this._sections.length; f++) { var h = this._sections[f], m = h.consumer.sourceContentFor(d, !0); if (m) return m; } if (p) return null; throw new Error('"' + d + '" is not in the SourceMap.'); }), (c.prototype.generatedPositionFor = function (d) { for (var p = 0; p < this._sections.length; p++) { var f = this._sections[p]; if (f.consumer._findSourceIndex(t.getArg(d, "source")) !== -1) { var h = f.consumer.generatedPositionFor(d); if (h) { var m = { line: h.line + (f.generatedOffset.generatedLine - 1), column: h.column + (f.generatedOffset.generatedLine === h.line ? f.generatedOffset.generatedColumn - 1 : 0), }; return m; } } } return { line: null, column: null }; }), (c.prototype._parseMappings = function (d, p) { ((this.__generatedMappings = []), (this.__originalMappings = [])); for (var f = 0; f < this._sections.length; f++) for ( var h = this._sections[f], m = h.consumer._generatedMappings, y = 0; y < m.length; y++ ) { var b = m[y], g = h.consumer._sources.at(b.source); ((g = t.computeSourceURL( h.consumer.sourceRoot, g, this._sourceMapURL, )), this._sources.add(g), (g = this._sources.indexOf(g))); var v = null; b.name && ((v = h.consumer._names.at(b.name)), this._names.add(v), (v = this._names.indexOf(v))); var x = { source: g, generatedLine: b.generatedLine + (h.generatedOffset.generatedLine - 1), generatedColumn: b.generatedColumn + (h.generatedOffset.generatedLine === b.generatedLine ? h.generatedOffset.generatedColumn - 1 : 0), originalLine: b.originalLine, originalColumn: b.originalColumn, name: v, }; (this.__generatedMappings.push(x), typeof x.originalLine == "number" && this.__originalMappings.push(x)); } (o(this.__generatedMappings, t.compareByGeneratedPositionsDeflated), o(this.__originalMappings, t.compareByOriginalPositions)); }), (e.IndexedSourceMapConsumer = c)); }, }), JZ = Se({ "../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"( e, ) { var t = eB().SourceMapGenerator, r = Ms(), n = /(\r?\n)/, a = 10, o = "$$$isSourceNode$$$"; function i(u, l, c, d, p) { ((this.children = []), (this.sourceContents = {}), (this.line = u ?? null), (this.column = l ?? null), (this.source = c ?? null), (this.name = p ?? null), (this[o] = !0), d != null && this.add(d)); } ((i.fromStringWithSourceMap = function (u, l, c) { var d = new i(), p = u.split(n), f = 0, h = function () { var v = A(), x = A() || ""; return v + x; function A() { return f < p.length ? p[f++] : void 0; } }, m = 1, y = 0, b = null; return ( l.eachMapping(function (v) { if (b !== null) if (m < v.generatedLine) (g(b, h()), m++, (y = 0)); else { var x = p[f] || "", A = x.substr(0, v.generatedColumn - y); ((p[f] = x.substr(v.generatedColumn - y)), (y = v.generatedColumn), g(b, A), (b = v)); return; } for (; m < v.generatedLine; ) (d.add(h()), m++); if (y < v.generatedColumn) { var x = p[f] || ""; (d.add(x.substr(0, v.generatedColumn)), (p[f] = x.substr(v.generatedColumn)), (y = v.generatedColumn)); } b = v; }, this), f < p.length && (b && g(b, h()), d.add(p.splice(f).join(""))), l.sources.forEach(function (v) { var x = l.sourceContentFor(v); x != null && (c != null && (v = r.join(c, v)), d.setSourceContent(v, x)); }), d ); function g(v, x) { if (v === null || v.source === void 0) d.add(x); else { var A = c ? r.join(c, v.source) : v.source; d.add(new i(v.originalLine, v.originalColumn, A, x, v.name)); } } }), (i.prototype.add = function (u) { if (Array.isArray(u)) u.forEach(function (l) { this.add(l); }, this); else if (u[o] || typeof u == "string") u && this.children.push(u); else throw new TypeError( "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + u, ); return this; }), (i.prototype.prepend = function (u) { if (Array.isArray(u)) for (var l = u.length - 1; l >= 0; l--) this.prepend(u[l]); else if (u[o] || typeof u == "string") this.children.unshift(u); else throw new TypeError( "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + u, ); return this; }), (i.prototype.walk = function (u) { for (var l, c = 0, d = this.children.length; c < d; c++) ((l = this.children[c]), l[o] ? l.walk(u) : l !== "" && u(l, { source: this.source, line: this.line, column: this.column, name: this.name, })); }), (i.prototype.join = function (u) { var l, c, d = this.children.length; if (d > 0) { for (l = [], c = 0; c < d - 1; c++) (l.push(this.children[c]), l.push(u)); (l.push(this.children[c]), (this.children = l)); } return this; }), (i.prototype.replaceRight = function (u, l) { var c = this.children[this.children.length - 1]; return ( c[o] ? c.replaceRight(u, l) : typeof c == "string" ? (this.children[this.children.length - 1] = c.replace(u, l)) : this.children.push("".replace(u, l)), this ); }), (i.prototype.setSourceContent = function (u, l) { this.sourceContents[r.toSetString(u)] = l; }), (i.prototype.walkSourceContents = function (u) { for (var l = 0, c = this.children.length; l < c; l++) this.children[l][o] && this.children[l].walkSourceContents(u); for ( var d = Object.keys(this.sourceContents), l = 0, c = d.length; l < c; l++ ) u(r.fromSetString(d[l]), this.sourceContents[d[l]]); }), (i.prototype.toString = function () { var u = ""; return ( this.walk(function (l) { u += l; }), u ); }), (i.prototype.toStringWithSourceMap = function (u) { var l = { code: "", line: 1, column: 0 }, c = new t(u), d = !1, p = null, f = null, h = null, m = null; return ( this.walk(function (y, b) { ((l.code += y), b.source !== null && b.line !== null && b.column !== null ? ((p !== b.source || f !== b.line || h !== b.column || m !== b.name) && c.addMapping({ source: b.source, original: { line: b.line, column: b.column }, generated: { line: l.line, column: l.column }, name: b.name, }), (p = b.source), (f = b.line), (h = b.column), (m = b.name), (d = !0)) : d && (c.addMapping({ generated: { line: l.line, column: l.column }, }), (p = null), (d = !1))); for (var g = 0, v = y.length; g < v; g++) y.charCodeAt(g) === a ? (l.line++, (l.column = 0), g + 1 === v ? ((p = null), (d = !1)) : d && c.addMapping({ source: b.source, original: { line: b.line, column: b.column }, generated: { line: l.line, column: l.column }, name: b.name, })) : l.column++; }), this.walkSourceContents(function (y, b) { c.setSourceContent(y, b); }), { code: l.code, map: c } ); }), (e.SourceNode = i)); }, }), XZ = Se({ "../../node_modules/escodegen/node_modules/source-map/source-map.js"(e) { ((e.SourceMapGenerator = eB().SourceMapGenerator), (e.SourceMapConsumer = WZ().SourceMapConsumer), (e.SourceNode = JZ().SourceNode)); }, }), KZ = Se({ "../../node_modules/escodegen/package.json"(e, t) { t.exports = { name: "escodegen", description: "ECMAScript code generator", homepage: "http://github.com/estools/escodegen", main: "escodegen.js", bin: { esgenerate: "./bin/esgenerate.js", escodegen: "./bin/escodegen.js", }, files: [ "LICENSE.BSD", "README.md", "bin", "escodegen.js", "package.json", ], version: "2.1.0", engines: { node: ">=6.0" }, maintainers: [ { name: "Yusuke Suzuki", email: "utatane.tea@gmail.com", web: "http://github.com/Constellation", }, ], repository: { type: "git", url: "http://github.com/estools/escodegen.git", }, dependencies: { estraverse: "^5.2.0", esutils: "^2.0.2", esprima: "^4.0.1", }, optionalDependencies: { "source-map": "~0.6.1" }, devDependencies: { acorn: "^8.0.4", bluebird: "^3.4.7", "bower-registry-client": "^1.0.0", chai: "^4.2.0", "chai-exclude": "^2.0.2", "commonjs-everywhere": "^0.9.7", gulp: "^4.0.2", "gulp-eslint": "^6.0.0", "gulp-mocha": "^7.0.2", minimist: "^1.2.5", optionator: "^0.9.1", semver: "^7.3.4", }, license: "BSD-2-Clause", scripts: { test: "gulp travis", "unit-test": "gulp test", lint: "gulp lint", release: "node tools/release.js", "build-min": "./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js", build: "./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js", }, }; }, }), YZ = Se({ "../../node_modules/escodegen/escodegen.js"(e) { (function () { var t, r, n, a, o, i, u, l, c, d, p, f, h, m, y, b, g, v, x, A, w, C, E, _, P, D; ((o = BZ()), (i = UZ()), (t = o.Syntax)); function F(R) { return Re.Expression.hasOwnProperty(R.type); } function L(R) { return Re.Statement.hasOwnProperty(R.type); } ((r = { Sequence: 0, Yield: 1, Assignment: 1, Conditional: 2, ArrowFunction: 2, Coalesce: 3, LogicalOR: 4, LogicalAND: 5, BitwiseOR: 6, BitwiseXOR: 7, BitwiseAND: 8, Equality: 9, Relational: 10, BitwiseSHIFT: 11, Additive: 12, Multiplicative: 13, Exponentiation: 14, Await: 15, Unary: 15, Postfix: 16, OptionalChaining: 17, Call: 18, New: 19, TaggedTemplate: 20, Member: 21, Primary: 22, }), (n = { "??": r.Coalesce, "||": r.LogicalOR, "&&": r.LogicalAND, "|": r.BitwiseOR, "^": r.BitwiseXOR, "&": r.BitwiseAND, "==": r.Equality, "!=": r.Equality, "===": r.Equality, "!==": r.Equality, is: r.Equality, isnt: r.Equality, "<": r.Relational, ">": r.Relational, "<=": r.Relational, ">=": r.Relational, in: r.Relational, instanceof: r.Relational, "<<": r.BitwiseSHIFT, ">>": r.BitwiseSHIFT, ">>>": r.BitwiseSHIFT, "+": r.Additive, "-": r.Additive, "*": r.Multiplicative, "%": r.Multiplicative, "/": r.Multiplicative, "**": r.Exponentiation, })); var q = 1, T = 2, k = 4, I = 8, W = 16, Q = 32, se = 64, H = T | k, K = q | T, V = q | T | k, Z = q, re = k, he = q | k, oe = q, ge = q | Q, be = 0, rt = q | W, Ke = q | I; function z() { return { indent: null, base: null, parse: null, comment: !1, format: { indent: { style: " ", base: 0, adjustMultilineComment: !1 }, newline: ` `, space: " ", json: !1, renumber: !1, hexadecimal: !1, quotes: "single", escapeless: !1, compact: !1, parentheses: !0, semicolons: !0, safeConcatenation: !1, preserveBlankLines: !1, }, moz: { comprehensionExpressionStartsWithAssignment: !1, starlessGenerator: !1, }, sourceMap: null, sourceMapRoot: null, sourceMapWithCode: !1, directive: !1, raw: !0, verbatim: null, sourceCode: null, }; } function ne(R, B) { var j = ""; for (B |= 0; B > 0; B >>>= 1, R += R) B & 1 && (j += R); return j; } function ue(R) { return /[\r\n]/g.test(R); } function te(R) { var B = R.length; return B && i.code.isLineTerminator(R.charCodeAt(B - 1)); } function ae(R, B) { var j; for (j in B) B.hasOwnProperty(j) && (R[j] = B[j]); return R; } function ee(R, B) { var j, O; function G(de) { return ( typeof de == "object" && de instanceof Object && !(de instanceof RegExp) ); } for (j in B) B.hasOwnProperty(j) && ((O = B[j]), G(O) ? (G(R[j]) ? ee(R[j], O) : (R[j] = ee({}, O))) : (R[j] = O)); return R; } function fe(R) { var B, j, O, G, de; if (R !== R) throw new Error("Numeric literal whose value is NaN"); if (R < 0 || (R === 0 && 1 / R < 0)) throw new Error("Numeric literal whose value is negative"); if (R === 1 / 0) return c ? "null" : d ? "1e400" : "1e+400"; if (((B = "" + R), !d || B.length < 3)) return B; for ( j = B.indexOf("."), !c && B.charCodeAt(0) === 48 && j === 1 && ((j = 0), (B = B.slice(1))), O = B, B = B.replace("e+", "e"), G = 0, (de = O.indexOf("e")) > 0 && ((G = +O.slice(de + 1)), (O = O.slice(0, de))), j >= 0 && ((G -= O.length - j - 1), (O = +(O.slice(0, j) + O.slice(j + 1)) + "")), de = 0; O.charCodeAt(O.length + de - 1) === 48; ) --de; return ( de !== 0 && ((G -= de), (O = O.slice(0, de))), G !== 0 && (O += "e" + G), (O.length < B.length || (p && R > 1e12 && Math.floor(R) === R && (O = "0x" + R.toString(16)).length < B.length)) && +O === R && (B = O), B ); } function we(R, B) { return (R & -2) === 8232 ? (B ? "u" : "\\u") + (R === 8232 ? "2028" : "2029") : R === 10 || R === 13 ? (B ? "" : "\\") + (R === 10 ? "n" : "r") : String.fromCharCode(R); } function Pe(R) { var B, j, O, G, de, le, me, Ee; if (((j = R.toString()), R.source)) { if (((B = j.match(/\/([^/]*)$/)), !B)) return j; for ( O = B[1], j = "", me = !1, Ee = !1, G = 0, de = R.source.length; G < de; ++G ) ((le = R.source.charCodeAt(G)), Ee ? ((j += we(le, Ee)), (Ee = !1)) : (me ? le === 93 && (me = !1) : le === 47 ? (j += "\\") : le === 91 && (me = !0), (j += we(le, Ee)), (Ee = le === 92))); return "/" + j + "/" + O; } return j; } function xe(R, B) { var j; return R === 8 ? "\\b" : R === 12 ? "\\f" : R === 9 ? "\\t" : ((j = R.toString(16).toUpperCase()), c || R > 255 ? "\\u" + "0000".slice(j.length) + j : R === 0 && !i.code.isDecimalDigit(B) ? "\\0" : R === 11 ? "\\x0B" : "\\x" + "00".slice(j.length) + j); } function ke(R) { if (R === 92) return "\\\\"; if (R === 10) return "\\n"; if (R === 13) return "\\r"; if (R === 8232) return "\\u2028"; if (R === 8233) return "\\u2029"; throw new Error("Incorrectly classified character"); } function Te(R) { var B, j, O, G; for (G = f === "double" ? '"' : "'", B = 0, j = R.length; B < j; ++B) if (((O = R.charCodeAt(B)), O === 39)) { G = '"'; break; } else if (O === 34) { G = "'"; break; } else O === 92 && ++B; return G + R + G; } function je(R) { var B = "", j, O, G, de = 0, le = 0, me, Ee; for (j = 0, O = R.length; j < O; ++j) { if (((G = R.charCodeAt(j)), G === 39)) ++de; else if (G === 34) ++le; else if (G === 47 && c) B += "\\"; else if (i.code.isLineTerminator(G) || G === 92) { B += ke(G); continue; } else if ( !i.code.isIdentifierPartES5(G) && ((c && G < 32) || (!c && !h && (G < 32 || G > 126))) ) { B += xe(G, R.charCodeAt(j + 1)); continue; } B += String.fromCharCode(G); } if ( ((me = !(f === "double" || (f === "auto" && le < de))), (Ee = me ? "'" : '"'), !(me ? de : le)) ) return Ee + B + Ee; for (R = B, B = Ee, j = 0, O = R.length; j < O; ++j) ((G = R.charCodeAt(j)), ((G === 39 && me) || (G === 34 && !me)) && (B += "\\"), (B += String.fromCharCode(G))); return B + Ee; } function Le(R) { var B, j, O, G = ""; for (B = 0, j = R.length; B < j; ++B) ((O = R[B]), (G += Array.isArray(O) ? Le(O) : O)); return G; } function ve(R, B) { if (!C) return Array.isArray(R) ? Le(R) : R; if (B == null) { if (R instanceof a) return R; B = {}; } return B.loc == null ? new a(null, null, C, R, B.name || null) : new a( B.loc.start.line, B.loc.start.column, C === !0 ? B.loc.source || null : C, R, B.name || null, ); } function De() { return y || " "; } function ye(R, B) { var j, O, G, de; return ( (j = ve(R).toString()), j.length === 0 ? [B] : ((O = ve(B).toString()), O.length === 0 ? [R] : ((G = j.charCodeAt(j.length - 1)), (de = O.charCodeAt(0)), ((G === 43 || G === 45) && G === de) || (i.code.isIdentifierPartES5(G) && i.code.isIdentifierPartES5(de)) || (G === 47 && de === 105) ? [R, De(), B] : i.code.isWhiteSpace(G) || i.code.isLineTerminator(G) || i.code.isWhiteSpace(de) || i.code.isLineTerminator(de) ? [R, B] : [R, y, B])) ); } function Oe(R) { return [u, R]; } function Ne(R) { var B; ((B = u), (u += l), R(u), (u = B)); } function mt(R) { var B; for ( B = R.length - 1; B >= 0 && !i.code.isLineTerminator(R.charCodeAt(B)); --B ); return R.length - 1 - B; } function ot(R, B) { var j, O, G, de, le, me, Ee, qe; for ( j = R.split(/\r\n|[\r\n]/), me = Number.MAX_VALUE, O = 1, G = j.length; O < G; ++O ) { for ( de = j[O], le = 0; le < de.length && i.code.isWhiteSpace(de.charCodeAt(le)); ) ++le; me > le && (me = le); } for ( typeof B < "u" ? ((Ee = u), j[1][me] === "*" && (B += " "), (u = B)) : (me & 1 && --me, (Ee = u)), O = 1, G = j.length; O < G; ++O ) ((qe = ve(Oe(j[O].slice(me)))), (j[O] = C ? qe.join("") : qe)); return ( (u = Ee), j.join(` `) ); } function Be(R, B) { if (R.type === "Line") { if (te(R.value)) return "//" + R.value; var j = "//" + R.value; return ( _ || (j += ` `), j ); } return A.format.indent.adjustMultilineComment && /[\n\r]/.test(R.value) ? ot("/*" + R.value + "*/", B) : "/*" + R.value + "*/"; } function Ge(R, B) { var j, O, G, de, le, me, Ee, qe, vt, Rt, er, qn, xt, yt; if (R.leadingComments && R.leadingComments.length > 0) { if (((de = B), _)) { for ( G = R.leadingComments[0], B = [], qe = G.extendedRange, vt = G.range, er = E.substring(qe[0], vt[0]), yt = (er.match(/\n/g) || []).length, yt > 0 ? (B.push( ne( ` `, yt, ), ), B.push(Oe(Be(G)))) : (B.push(er), B.push(Be(G))), Rt = vt, j = 1, O = R.leadingComments.length; j < O; j++ ) ((G = R.leadingComments[j]), (vt = G.range), (qn = E.substring(Rt[1], vt[0])), (yt = (qn.match(/\n/g) || []).length), B.push( ne( ` `, yt, ), ), B.push(Oe(Be(G))), (Rt = vt)); ((xt = E.substring(vt[1], qe[1])), (yt = (xt.match(/\n/g) || []).length), B.push( ne( ` `, yt, ), )); } else for ( G = R.leadingComments[0], B = [], v && R.type === t.Program && R.body.length === 0 && B.push(` `), B.push(Be(G)), te(ve(B).toString()) || B.push(` `), j = 1, O = R.leadingComments.length; j < O; ++j ) ((G = R.leadingComments[j]), (Ee = [Be(G)]), te(ve(Ee).toString()) || Ee.push(` `), B.push(Oe(Ee))); B.push(Oe(de)); } if (R.trailingComments) if (_) ((G = R.trailingComments[0]), (qe = G.extendedRange), (vt = G.range), (er = E.substring(qe[0], vt[0])), (yt = (er.match(/\n/g) || []).length), yt > 0 ? (B.push( ne( ` `, yt, ), ), B.push(Oe(Be(G)))) : (B.push(er), B.push(Be(G)))); else for ( le = !te(ve(B).toString()), me = ne(" ", mt(ve([u, B, l]).toString())), j = 0, O = R.trailingComments.length; j < O; ++j ) ((G = R.trailingComments[j]), le ? (j === 0 ? (B = [B, l]) : (B = [B, me]), B.push(Be(G, me))) : (B = [B, Oe(Be(G))]), j !== O - 1 && !te(ve(B).toString()) && (B = [ B, ` `, ])); return B; } function pt(R, B, j) { var O, G = 0; for (O = R; O < B; O++) E[O] === ` ` && G++; for (O = 1; O < G; O++) j.push(m); } function ut(R, B, j) { return B < j ? ["(", R, ")"] : R; } function Bt(R) { var B, j, O; for (O = R.split(/\r\n|\n/), B = 1, j = O.length; B < j; B++) O[B] = m + u + O[B]; return O; } function ft(R, B) { var j, O, G; return ( (j = R[A.verbatim]), typeof j == "string" ? (O = ut(Bt(j), r.Sequence, B)) : ((O = Bt(j.content)), (G = j.precedence != null ? j.precedence : r.Sequence), (O = ut(O, G, B))), ve(O, R) ); } function Re() {} ((Re.prototype.maybeBlock = function (R, B) { var j, O, G = this; return ( (O = !A.comment || !R.leadingComments), R.type === t.BlockStatement && O ? [y, this.generateStatement(R, B)] : R.type === t.EmptyStatement && O ? ";" : (Ne(function () { j = [m, Oe(G.generateStatement(R, B))]; }), j) ); }), (Re.prototype.maybeBlockSuffix = function (R, B) { var j = te(ve(B).toString()); return R.type === t.BlockStatement && (!A.comment || !R.leadingComments) && !j ? [B, y] : j ? [B, u] : [B, m, u]; })); function Ze(R) { return ve(R.name, R); } function Pt(R, B) { return R.async ? "async" + (B ? De() : y) : ""; } function It(R) { var B = R.generator && !A.moz.starlessGenerator; return B ? "*" + y : ""; } function Gt(R) { var B = R.value, j = ""; return ( B.async && (j += Pt(B, !R.computed)), B.generator && (j += It(B) ? "*" : ""), j ); } ((Re.prototype.generatePattern = function (R, B, j) { return R.type === t.Identifier ? Ze(R) : this.generateExpression(R, B, j); }), (Re.prototype.generateFunctionParams = function (R) { var B, j, O, G; if ( ((G = !1), R.type === t.ArrowFunctionExpression && !R.rest && (!R.defaults || R.defaults.length === 0) && R.params.length === 1 && R.params[0].type === t.Identifier) ) O = [Pt(R, !0), Ze(R.params[0])]; else { for ( O = R.type === t.ArrowFunctionExpression ? [Pt(R, !1)] : [], O.push("("), R.defaults && (G = !0), B = 0, j = R.params.length; B < j; ++B ) (G && R.defaults[B] ? O.push( this.generateAssignment( R.params[B], R.defaults[B], "=", r.Assignment, V, ), ) : O.push(this.generatePattern(R.params[B], r.Assignment, V)), B + 1 < j && O.push("," + y)); (R.rest && (R.params.length && O.push("," + y), O.push("..."), O.push(Ze(R.rest))), O.push(")")); } return O; }), (Re.prototype.generateFunctionBody = function (R) { var B, j; return ( (B = this.generateFunctionParams(R)), R.type === t.ArrowFunctionExpression && (B.push(y), B.push("=>")), R.expression ? (B.push(y), (j = this.generateExpression(R.body, r.Assignment, V)), j.toString().charAt(0) === "{" && (j = ["(", j, ")"]), B.push(j)) : B.push(this.maybeBlock(R.body, Ke)), B ); }), (Re.prototype.generateIterationForStatement = function (R, B, j) { var O = ["for" + (B.await ? De() + "await" : "") + y + "("], G = this; return ( Ne(function () { (B.left.type === t.VariableDeclaration ? Ne(function () { (O.push(B.left.kind + De()), O.push( G.generateStatement(B.left.declarations[0], be), )); }) : O.push(G.generateExpression(B.left, r.Call, V)), (O = ye(O, R)), (O = [ ye(O, G.generateExpression(B.right, r.Assignment, V)), ")", ])); }), O.push(this.maybeBlock(B.body, j)), O ); }), (Re.prototype.generatePropertyKey = function (R, B) { var j = []; return ( B && j.push("["), j.push(this.generateExpression(R, r.Assignment, V)), B && j.push("]"), j ); }), (Re.prototype.generateAssignment = function (R, B, j, O, G) { return ( r.Assignment < O && (G |= q), ut( [ this.generateExpression(R, r.Call, G), y + j + y, this.generateExpression(B, r.Assignment, G), ], r.Assignment, O, ) ); }), (Re.prototype.semicolon = function (R) { return !g && R & Q ? "" : ";"; }), (Re.Statement = { BlockStatement: function (R, B) { var j, O, G = ["{", m], de = this; return ( Ne(function () { R.body.length === 0 && _ && ((j = R.range), j[1] - j[0] > 2 && ((O = E.substring(j[0] + 1, j[1] - 1)), O[0] === ` ` && (G = ["{"]), G.push(O))); var le, me, Ee, qe; for ( qe = oe, B & I && (qe |= W), le = 0, me = R.body.length; le < me; ++le ) (_ && (le === 0 && (R.body[0].leadingComments && ((j = R.body[0].leadingComments[0].extendedRange), (O = E.substring(j[0], j[1])), O[0] === ` ` && (G = ["{"])), R.body[0].leadingComments || pt(R.range[0], R.body[0].range[0], G)), le > 0 && !R.body[le - 1].trailingComments && !R.body[le].leadingComments && pt(R.body[le - 1].range[1], R.body[le].range[0], G)), le === me - 1 && (qe |= Q), R.body[le].leadingComments && _ ? (Ee = de.generateStatement(R.body[le], qe)) : (Ee = Oe(de.generateStatement(R.body[le], qe))), G.push(Ee), te(ve(Ee).toString()) || (_ && le < me - 1 && R.body[le + 1].leadingComments) || G.push(m), _ && le === me - 1 && (R.body[le].trailingComments || pt(R.body[le].range[1], R.range[1], G))); }), G.push(Oe("}")), G ); }, BreakStatement: function (R, B) { return R.label ? "break " + R.label.name + this.semicolon(B) : "break" + this.semicolon(B); }, ContinueStatement: function (R, B) { return R.label ? "continue " + R.label.name + this.semicolon(B) : "continue" + this.semicolon(B); }, ClassBody: function (R, B) { var j = ["{", m], O = this; return ( Ne(function (G) { var de, le; for (de = 0, le = R.body.length; de < le; ++de) (j.push(G), j.push(O.generateExpression(R.body[de], r.Sequence, V)), de + 1 < le && j.push(m)); }), te(ve(j).toString()) || j.push(m), j.push(u), j.push("}"), j ); }, ClassDeclaration: function (R, B) { var j, O; return ( (j = ["class"]), R.id && (j = ye(j, this.generateExpression(R.id, r.Sequence, V))), R.superClass && ((O = ye( "extends", this.generateExpression(R.superClass, r.Unary, V), )), (j = ye(j, O))), j.push(y), j.push(this.generateStatement(R.body, ge)), j ); }, DirectiveStatement: function (R, B) { return A.raw && R.raw ? R.raw + this.semicolon(B) : Te(R.directive) + this.semicolon(B); }, DoWhileStatement: function (R, B) { var j = ye("do", this.maybeBlock(R.body, oe)); return ( (j = this.maybeBlockSuffix(R.body, j)), ye(j, [ "while" + y + "(", this.generateExpression(R.test, r.Sequence, V), ")" + this.semicolon(B), ]) ); }, CatchClause: function (R, B) { var j, O = this; return ( Ne(function () { var G; R.param ? ((j = [ "catch" + y + "(", O.generateExpression(R.param, r.Sequence, V), ")", ]), R.guard && ((G = O.generateExpression(R.guard, r.Sequence, V)), j.splice(2, 0, " if ", G))) : (j = ["catch"]); }), j.push(this.maybeBlock(R.body, oe)), j ); }, DebuggerStatement: function (R, B) { return "debugger" + this.semicolon(B); }, EmptyStatement: function (R, B) { return ";"; }, ExportDefaultDeclaration: function (R, B) { var j = ["export"], O; return ( (O = B & Q ? ge : oe), (j = ye(j, "default")), L(R.declaration) ? (j = ye(j, this.generateStatement(R.declaration, O))) : (j = ye( j, this.generateExpression(R.declaration, r.Assignment, V) + this.semicolon(B), )), j ); }, ExportNamedDeclaration: function (R, B) { var j = ["export"], O, G = this; return ( (O = B & Q ? ge : oe), R.declaration ? ye(j, this.generateStatement(R.declaration, O)) : (R.specifiers && (R.specifiers.length === 0 ? (j = ye(j, "{" + y + "}")) : R.specifiers[0].type === t.ExportBatchSpecifier ? (j = ye( j, this.generateExpression( R.specifiers[0], r.Sequence, V, ), )) : ((j = ye(j, "{")), Ne(function (de) { var le, me; for ( j.push(m), le = 0, me = R.specifiers.length; le < me; ++le ) (j.push(de), j.push( G.generateExpression( R.specifiers[le], r.Sequence, V, ), ), le + 1 < me && j.push("," + m)); }), te(ve(j).toString()) || j.push(m), j.push(u + "}")), R.source ? (j = ye(j, [ "from" + y, this.generateExpression(R.source, r.Sequence, V), this.semicolon(B), ])) : j.push(this.semicolon(B))), j) ); }, ExportAllDeclaration: function (R, B) { return [ "export" + y, "*" + y, "from" + y, this.generateExpression(R.source, r.Sequence, V), this.semicolon(B), ]; }, ExpressionStatement: function (R, B) { var j, O; function G(me) { var Ee; return me.slice(0, 5) !== "class" ? !1 : ((Ee = me.charCodeAt(5)), Ee === 123 || i.code.isWhiteSpace(Ee) || i.code.isLineTerminator(Ee)); } function de(me) { var Ee; return me.slice(0, 8) !== "function" ? !1 : ((Ee = me.charCodeAt(8)), Ee === 40 || i.code.isWhiteSpace(Ee) || Ee === 42 || i.code.isLineTerminator(Ee)); } function le(me) { var Ee, qe, vt; if ( me.slice(0, 5) !== "async" || !i.code.isWhiteSpace(me.charCodeAt(5)) ) return !1; for ( qe = 6, vt = me.length; qe < vt && i.code.isWhiteSpace(me.charCodeAt(qe)); ++qe ); return qe === vt || me.slice(qe, qe + 8) !== "function" ? !1 : ((Ee = me.charCodeAt(qe + 8)), Ee === 40 || i.code.isWhiteSpace(Ee) || Ee === 42 || i.code.isLineTerminator(Ee)); } return ( (j = [this.generateExpression(R.expression, r.Sequence, V)]), (O = ve(j).toString()), O.charCodeAt(0) === 123 || G(O) || de(O) || le(O) || (x && B & W && R.expression.type === t.Literal && typeof R.expression.value == "string") ? (j = ["(", j, ")" + this.semicolon(B)]) : j.push(this.semicolon(B)), j ); }, ImportDeclaration: function (R, B) { var j, O, G = this; return R.specifiers.length === 0 ? [ "import", y, this.generateExpression(R.source, r.Sequence, V), this.semicolon(B), ] : ((j = ["import"]), (O = 0), R.specifiers[O].type === t.ImportDefaultSpecifier && ((j = ye(j, [ this.generateExpression(R.specifiers[O], r.Sequence, V), ])), ++O), R.specifiers[O] && (O !== 0 && j.push(","), R.specifiers[O].type === t.ImportNamespaceSpecifier ? (j = ye(j, [ y, this.generateExpression( R.specifiers[O], r.Sequence, V, ), ])) : (j.push(y + "{"), R.specifiers.length - O === 1 ? (j.push(y), j.push( this.generateExpression( R.specifiers[O], r.Sequence, V, ), ), j.push(y + "}" + y)) : (Ne(function (de) { var le, me; for ( j.push(m), le = O, me = R.specifiers.length; le < me; ++le ) (j.push(de), j.push( G.generateExpression( R.specifiers[le], r.Sequence, V, ), ), le + 1 < me && j.push("," + m)); }), te(ve(j).toString()) || j.push(m), j.push(u + "}" + y)))), (j = ye(j, [ "from" + y, this.generateExpression(R.source, r.Sequence, V), this.semicolon(B), ])), j); }, VariableDeclarator: function (R, B) { var j = B & q ? V : H; return R.init ? [ this.generateExpression(R.id, r.Assignment, j), y, "=", y, this.generateExpression(R.init, r.Assignment, j), ] : this.generatePattern(R.id, r.Assignment, j); }, VariableDeclaration: function (R, B) { var j, O, G, de, le, me = this; ((j = [R.kind]), (le = B & q ? oe : be)); function Ee() { for ( de = R.declarations[0], A.comment && de.leadingComments ? (j.push(` `), j.push(Oe(me.generateStatement(de, le)))) : (j.push(De()), j.push(me.generateStatement(de, le))), O = 1, G = R.declarations.length; O < G; ++O ) ((de = R.declarations[O]), A.comment && de.leadingComments ? (j.push("," + m), j.push(Oe(me.generateStatement(de, le)))) : (j.push("," + y), j.push(me.generateStatement(de, le)))); } return ( R.declarations.length > 1 ? Ne(Ee) : Ee(), j.push(this.semicolon(B)), j ); }, ThrowStatement: function (R, B) { return [ ye("throw", this.generateExpression(R.argument, r.Sequence, V)), this.semicolon(B), ]; }, TryStatement: function (R, B) { var j, O, G, de; if ( ((j = ["try", this.maybeBlock(R.block, oe)]), (j = this.maybeBlockSuffix(R.block, j)), R.handlers) ) for (O = 0, G = R.handlers.length; O < G; ++O) ((j = ye(j, this.generateStatement(R.handlers[O], oe))), (R.finalizer || O + 1 !== G) && (j = this.maybeBlockSuffix(R.handlers[O].body, j))); else { for ( de = R.guardedHandlers || [], O = 0, G = de.length; O < G; ++O ) ((j = ye(j, this.generateStatement(de[O], oe))), (R.finalizer || O + 1 !== G) && (j = this.maybeBlockSuffix(de[O].body, j))); if (R.handler) if (Array.isArray(R.handler)) for (O = 0, G = R.handler.length; O < G; ++O) ((j = ye(j, this.generateStatement(R.handler[O], oe))), (R.finalizer || O + 1 !== G) && (j = this.maybeBlockSuffix(R.handler[O].body, j))); else ((j = ye(j, this.generateStatement(R.handler, oe))), R.finalizer && (j = this.maybeBlockSuffix(R.handler.body, j))); } return ( R.finalizer && (j = ye(j, ["finally", this.maybeBlock(R.finalizer, oe)])), j ); }, SwitchStatement: function (R, B) { var j, O, G, de, le, me = this; if ( (Ne(function () { j = [ "switch" + y + "(", me.generateExpression(R.discriminant, r.Sequence, V), ")" + y + "{" + m, ]; }), R.cases) ) for (le = oe, G = 0, de = R.cases.length; G < de; ++G) (G === de - 1 && (le |= Q), (O = Oe(this.generateStatement(R.cases[G], le))), j.push(O), te(ve(O).toString()) || j.push(m)); return (j.push(Oe("}")), j); }, SwitchCase: function (R, B) { var j, O, G, de, le, me = this; return ( Ne(function () { for ( R.test ? (j = [ ye( "case", me.generateExpression(R.test, r.Sequence, V), ), ":", ]) : (j = ["default:"]), G = 0, de = R.consequent.length, de && R.consequent[0].type === t.BlockStatement && ((O = me.maybeBlock(R.consequent[0], oe)), j.push(O), (G = 1)), G !== de && !te(ve(j).toString()) && j.push(m), le = oe; G < de; ++G ) (G === de - 1 && B & Q && (le |= Q), (O = Oe(me.generateStatement(R.consequent[G], le))), j.push(O), G + 1 !== de && !te(ve(O).toString()) && j.push(m)); }), j ); }, IfStatement: function (R, B) { var j, O, G, de = this; return ( Ne(function () { j = [ "if" + y + "(", de.generateExpression(R.test, r.Sequence, V), ")", ]; }), (G = B & Q), (O = oe), G && (O |= Q), R.alternate ? (j.push(this.maybeBlock(R.consequent, oe)), (j = this.maybeBlockSuffix(R.consequent, j)), R.alternate.type === t.IfStatement ? (j = ye(j, [ "else ", this.generateStatement(R.alternate, O), ])) : (j = ye( j, ye("else", this.maybeBlock(R.alternate, O)), ))) : j.push(this.maybeBlock(R.consequent, O)), j ); }, ForStatement: function (R, B) { var j, O = this; return ( Ne(function () { ((j = ["for" + y + "("]), R.init ? R.init.type === t.VariableDeclaration ? j.push(O.generateStatement(R.init, be)) : (j.push(O.generateExpression(R.init, r.Sequence, H)), j.push(";")) : j.push(";"), R.test && (j.push(y), j.push(O.generateExpression(R.test, r.Sequence, V))), j.push(";"), R.update && (j.push(y), j.push(O.generateExpression(R.update, r.Sequence, V))), j.push(")")); }), j.push(this.maybeBlock(R.body, B & Q ? ge : oe)), j ); }, ForInStatement: function (R, B) { return this.generateIterationForStatement( "in", R, B & Q ? ge : oe, ); }, ForOfStatement: function (R, B) { return this.generateIterationForStatement( "of", R, B & Q ? ge : oe, ); }, LabeledStatement: function (R, B) { return [ R.label.name + ":", this.maybeBlock(R.body, B & Q ? ge : oe), ]; }, Program: function (R, B) { var j, O, G, de, le; for ( de = R.body.length, j = [ v && de > 0 ? ` ` : "", ], le = rt, G = 0; G < de; ++G ) (!v && G === de - 1 && (le |= Q), _ && (G === 0 && (R.body[0].leadingComments || pt(R.range[0], R.body[G].range[0], j)), G > 0 && !R.body[G - 1].trailingComments && !R.body[G].leadingComments && pt(R.body[G - 1].range[1], R.body[G].range[0], j)), (O = Oe(this.generateStatement(R.body[G], le))), j.push(O), G + 1 < de && !te(ve(O).toString()) && ((_ && R.body[G + 1].leadingComments) || j.push(m)), _ && G === de - 1 && (R.body[G].trailingComments || pt(R.body[G].range[1], R.range[1], j))); return j; }, FunctionDeclaration: function (R, B) { return [ Pt(R, !0), "function", It(R) || De(), R.id ? Ze(R.id) : "", this.generateFunctionBody(R), ]; }, ReturnStatement: function (R, B) { return R.argument ? [ ye( "return", this.generateExpression(R.argument, r.Sequence, V), ), this.semicolon(B), ] : ["return" + this.semicolon(B)]; }, WhileStatement: function (R, B) { var j, O = this; return ( Ne(function () { j = [ "while" + y + "(", O.generateExpression(R.test, r.Sequence, V), ")", ]; }), j.push(this.maybeBlock(R.body, B & Q ? ge : oe)), j ); }, WithStatement: function (R, B) { var j, O = this; return ( Ne(function () { j = [ "with" + y + "(", O.generateExpression(R.object, r.Sequence, V), ")", ]; }), j.push(this.maybeBlock(R.body, B & Q ? ge : oe)), j ); }, }), ae(Re.prototype, Re.Statement), (Re.Expression = { SequenceExpression: function (R, B, j) { var O, G, de; for ( r.Sequence < B && (j |= q), O = [], G = 0, de = R.expressions.length; G < de; ++G ) (O.push( this.generateExpression(R.expressions[G], r.Assignment, j), ), G + 1 < de && O.push("," + y)); return ut(O, r.Sequence, B); }, AssignmentExpression: function (R, B, j) { return this.generateAssignment(R.left, R.right, R.operator, B, j); }, ArrowFunctionExpression: function (R, B, j) { return ut(this.generateFunctionBody(R), r.ArrowFunction, B); }, ConditionalExpression: function (R, B, j) { return ( r.Conditional < B && (j |= q), ut( [ this.generateExpression(R.test, r.Coalesce, j), y + "?" + y, this.generateExpression(R.consequent, r.Assignment, j), y + ":" + y, this.generateExpression(R.alternate, r.Assignment, j), ], r.Conditional, B, ) ); }, LogicalExpression: function (R, B, j) { return ( R.operator === "??" && (j |= se), this.BinaryExpression(R, B, j) ); }, BinaryExpression: function (R, B, j) { var O, G, de, le, me, Ee; return ( (le = n[R.operator]), (G = R.operator === "**" ? r.Postfix : le), (de = R.operator === "**" ? le : le + 1), le < B && (j |= q), (me = this.generateExpression(R.left, G, j)), (Ee = me.toString()), Ee.charCodeAt(Ee.length - 1) === 47 && i.code.isIdentifierPartES5(R.operator.charCodeAt(0)) ? (O = [me, De(), R.operator]) : (O = ye(me, R.operator)), (me = this.generateExpression(R.right, de, j)), (R.operator === "/" && me.toString().charAt(0) === "/") || (R.operator.slice(-1) === "<" && me.toString().slice(0, 3) === "!--") ? (O.push(De()), O.push(me)) : (O = ye(O, me)), R.operator === "in" && !(j & q) ? ["(", O, ")"] : (R.operator === "||" || R.operator === "&&") && j & se ? ["(", O, ")"] : ut(O, le, B) ); }, CallExpression: function (R, B, j) { var O, G, de; for ( O = [this.generateExpression(R.callee, r.Call, K)], R.optional && O.push("?."), O.push("("), G = 0, de = R.arguments.length; G < de; ++G ) (O.push( this.generateExpression(R.arguments[G], r.Assignment, V), ), G + 1 < de && O.push("," + y)); return (O.push(")"), j & T ? ut(O, r.Call, B) : ["(", O, ")"]); }, ChainExpression: function (R, B, j) { r.OptionalChaining < B && (j |= T); var O = this.generateExpression( R.expression, r.OptionalChaining, j, ); return ut(O, r.OptionalChaining, B); }, NewExpression: function (R, B, j) { var O, G, de, le, me; if ( ((G = R.arguments.length), (me = j & k && !b && G === 0 ? he : Z), (O = ye("new", this.generateExpression(R.callee, r.New, me))), !(j & k) || b || G > 0) ) { for (O.push("("), de = 0, le = G; de < le; ++de) (O.push( this.generateExpression(R.arguments[de], r.Assignment, V), ), de + 1 < le && O.push("," + y)); O.push(")"); } return ut(O, r.New, B); }, MemberExpression: function (R, B, j) { var O, G; return ( (O = [ this.generateExpression(R.object, r.Call, j & T ? K : Z), ]), R.computed ? (R.optional && O.push("?."), O.push("["), O.push( this.generateExpression( R.property, r.Sequence, j & T ? V : he, ), ), O.push("]")) : (!R.optional && R.object.type === t.Literal && typeof R.object.value == "number" && ((G = ve(O).toString()), G.indexOf(".") < 0 && !/[eExX]/.test(G) && i.code.isDecimalDigit(G.charCodeAt(G.length - 1)) && !(G.length >= 2 && G.charCodeAt(0) === 48) && O.push(" ")), O.push(R.optional ? "?." : "."), O.push(Ze(R.property))), ut(O, r.Member, B) ); }, MetaProperty: function (R, B, j) { var O; return ( (O = []), O.push(typeof R.meta == "string" ? R.meta : Ze(R.meta)), O.push("."), O.push( typeof R.property == "string" ? R.property : Ze(R.property), ), ut(O, r.Member, B) ); }, UnaryExpression: function (R, B, j) { var O, G, de, le, me; return ( (G = this.generateExpression(R.argument, r.Unary, V)), y === "" ? (O = ye(R.operator, G)) : ((O = [R.operator]), R.operator.length > 2 ? (O = ye(O, G)) : ((le = ve(O).toString()), (me = le.charCodeAt(le.length - 1)), (de = G.toString().charCodeAt(0)), (((me === 43 || me === 45) && me === de) || (i.code.isIdentifierPartES5(me) && i.code.isIdentifierPartES5(de))) && O.push(De()), O.push(G))), ut(O, r.Unary, B) ); }, YieldExpression: function (R, B, j) { var O; return ( R.delegate ? (O = "yield*") : (O = "yield"), R.argument && (O = ye(O, this.generateExpression(R.argument, r.Yield, V))), ut(O, r.Yield, B) ); }, AwaitExpression: function (R, B, j) { var O = ye( R.all ? "await*" : "await", this.generateExpression(R.argument, r.Await, V), ); return ut(O, r.Await, B); }, UpdateExpression: function (R, B, j) { return R.prefix ? ut( [ R.operator, this.generateExpression(R.argument, r.Unary, V), ], r.Unary, B, ) : ut( [ this.generateExpression(R.argument, r.Postfix, V), R.operator, ], r.Postfix, B, ); }, FunctionExpression: function (R, B, j) { var O = [Pt(R, !0), "function"]; return ( R.id ? (O.push(It(R) || De()), O.push(Ze(R.id))) : O.push(It(R) || y), O.push(this.generateFunctionBody(R)), O ); }, ArrayPattern: function (R, B, j) { return this.ArrayExpression(R, B, j, !0); }, ArrayExpression: function (R, B, j, O) { var G, de, le = this; return R.elements.length ? ((de = O ? !1 : R.elements.length > 1), (G = ["[", de ? m : ""]), Ne(function (me) { var Ee, qe; for (Ee = 0, qe = R.elements.length; Ee < qe; ++Ee) (R.elements[Ee] ? (G.push(de ? me : ""), G.push( le.generateExpression( R.elements[Ee], r.Assignment, V, ), )) : (de && G.push(me), Ee + 1 === qe && G.push(",")), Ee + 1 < qe && G.push("," + (de ? m : y))); }), de && !te(ve(G).toString()) && G.push(m), G.push(de ? u : ""), G.push("]"), G) : "[]"; }, RestElement: function (R, B, j) { return "..." + this.generatePattern(R.argument); }, ClassExpression: function (R, B, j) { var O, G; return ( (O = ["class"]), R.id && (O = ye(O, this.generateExpression(R.id, r.Sequence, V))), R.superClass && ((G = ye( "extends", this.generateExpression(R.superClass, r.Unary, V), )), (O = ye(O, G))), O.push(y), O.push(this.generateStatement(R.body, ge)), O ); }, MethodDefinition: function (R, B, j) { var O, G; return ( R.static ? (O = ["static" + y]) : (O = []), R.kind === "get" || R.kind === "set" ? (G = [ ye(R.kind, this.generatePropertyKey(R.key, R.computed)), this.generateFunctionBody(R.value), ]) : (G = [ Gt(R), this.generatePropertyKey(R.key, R.computed), this.generateFunctionBody(R.value), ]), ye(O, G) ); }, Property: function (R, B, j) { return R.kind === "get" || R.kind === "set" ? [ R.kind, De(), this.generatePropertyKey(R.key, R.computed), this.generateFunctionBody(R.value), ] : R.shorthand ? R.value.type === "AssignmentPattern" ? this.AssignmentPattern(R.value, r.Sequence, V) : this.generatePropertyKey(R.key, R.computed) : R.method ? [ Gt(R), this.generatePropertyKey(R.key, R.computed), this.generateFunctionBody(R.value), ] : [ this.generatePropertyKey(R.key, R.computed), ":" + y, this.generateExpression(R.value, r.Assignment, V), ]; }, ObjectExpression: function (R, B, j) { var O, G, de, le = this; return R.properties.length ? ((O = R.properties.length > 1), Ne(function () { de = le.generateExpression(R.properties[0], r.Sequence, V); }), !O && !ue(ve(de).toString()) ? ["{", y, de, y, "}"] : (Ne(function (me) { var Ee, qe; if (((G = ["{", m, me, de]), O)) for ( G.push("," + m), Ee = 1, qe = R.properties.length; Ee < qe; ++Ee ) (G.push(me), G.push( le.generateExpression( R.properties[Ee], r.Sequence, V, ), ), Ee + 1 < qe && G.push("," + m)); }), te(ve(G).toString()) || G.push(m), G.push(u), G.push("}"), G)) : "{}"; }, AssignmentPattern: function (R, B, j) { return this.generateAssignment(R.left, R.right, "=", B, j); }, ObjectPattern: function (R, B, j) { var O, G, de, le, me, Ee = this; if (!R.properties.length) return "{}"; if (((le = !1), R.properties.length === 1)) ((me = R.properties[0]), me.type === t.Property && me.value.type !== t.Identifier && (le = !0)); else for (G = 0, de = R.properties.length; G < de; ++G) if ( ((me = R.properties[G]), me.type === t.Property && !me.shorthand) ) { le = !0; break; } return ( (O = ["{", le ? m : ""]), Ne(function (qe) { var vt, Rt; for (vt = 0, Rt = R.properties.length; vt < Rt; ++vt) (O.push(le ? qe : ""), O.push( Ee.generateExpression(R.properties[vt], r.Sequence, V), ), vt + 1 < Rt && O.push("," + (le ? m : y))); }), le && !te(ve(O).toString()) && O.push(m), O.push(le ? u : ""), O.push("}"), O ); }, ThisExpression: function (R, B, j) { return "this"; }, Super: function (R, B, j) { return "super"; }, Identifier: function (R, B, j) { return Ze(R); }, ImportDefaultSpecifier: function (R, B, j) { return Ze(R.id || R.local); }, ImportNamespaceSpecifier: function (R, B, j) { var O = ["*"], G = R.id || R.local; return (G && O.push(y + "as" + De() + Ze(G)), O); }, ImportSpecifier: function (R, B, j) { var O = R.imported, G = [O.name], de = R.local; return ( de && de.name !== O.name && G.push(De() + "as" + De() + Ze(de)), G ); }, ExportSpecifier: function (R, B, j) { var O = R.local, G = [O.name], de = R.exported; return ( de && de.name !== O.name && G.push(De() + "as" + De() + Ze(de)), G ); }, Literal: function (R, B, j) { var O; if (R.hasOwnProperty("raw") && w && A.raw) try { if ( ((O = w(R.raw).body[0].expression), O.type === t.Literal && O.value === R.value) ) return R.raw; } catch {} return R.regex ? "/" + R.regex.pattern + "/" + R.regex.flags : typeof R.value == "bigint" ? R.value.toString() + "n" : R.bigint ? R.bigint + "n" : R.value === null ? "null" : typeof R.value == "string" ? je(R.value) : typeof R.value == "number" ? fe(R.value) : typeof R.value == "boolean" ? R.value ? "true" : "false" : Pe(R.value); }, GeneratorExpression: function (R, B, j) { return this.ComprehensionExpression(R, B, j); }, ComprehensionExpression: function (R, B, j) { var O, G, de, le, me = this; return ( (O = R.type === t.GeneratorExpression ? ["("] : ["["]), A.moz.comprehensionExpressionStartsWithAssignment && ((le = this.generateExpression(R.body, r.Assignment, V)), O.push(le)), R.blocks && Ne(function () { for (G = 0, de = R.blocks.length; G < de; ++G) ((le = me.generateExpression(R.blocks[G], r.Sequence, V)), G > 0 || A.moz.comprehensionExpressionStartsWithAssignment ? (O = ye(O, le)) : O.push(le)); }), R.filter && ((O = ye(O, "if" + y)), (le = this.generateExpression(R.filter, r.Sequence, V)), (O = ye(O, ["(", le, ")"]))), A.moz.comprehensionExpressionStartsWithAssignment || ((le = this.generateExpression(R.body, r.Assignment, V)), (O = ye(O, le))), O.push(R.type === t.GeneratorExpression ? ")" : "]"), O ); }, ComprehensionBlock: function (R, B, j) { var O; return ( R.left.type === t.VariableDeclaration ? (O = [ R.left.kind, De(), this.generateStatement(R.left.declarations[0], be), ]) : (O = this.generateExpression(R.left, r.Call, V)), (O = ye(O, R.of ? "of" : "in")), (O = ye(O, this.generateExpression(R.right, r.Sequence, V))), ["for" + y + "(", O, ")"] ); }, SpreadElement: function (R, B, j) { return [ "...", this.generateExpression(R.argument, r.Assignment, V), ]; }, TaggedTemplateExpression: function (R, B, j) { var O = K; j & T || (O = Z); var G = [ this.generateExpression(R.tag, r.Call, O), this.generateExpression(R.quasi, r.Primary, re), ]; return ut(G, r.TaggedTemplate, B); }, TemplateElement: function (R, B, j) { return R.value.raw; }, TemplateLiteral: function (R, B, j) { var O, G, de; for (O = ["`"], G = 0, de = R.quasis.length; G < de; ++G) (O.push(this.generateExpression(R.quasis[G], r.Primary, V)), G + 1 < de && (O.push("${" + y), O.push( this.generateExpression(R.expressions[G], r.Sequence, V), ), O.push(y + "}"))); return (O.push("`"), O); }, ModuleSpecifier: function (R, B, j) { return this.Literal(R, B, j); }, ImportExpression: function (R, B, j) { return ut( [ "import(", this.generateExpression(R.source, r.Assignment, V), ")", ], r.Call, B, ); }, }), ae(Re.prototype, Re.Expression), (Re.prototype.generateExpression = function (R, B, j) { var O, G; return ( (G = R.type || t.Property), A.verbatim && R.hasOwnProperty(A.verbatim) ? ft(R, B) : ((O = this[G](R, B, j)), A.comment && (O = Ge(R, O)), ve(O, R)) ); }), (Re.prototype.generateStatement = function (R, B) { var j, O; return ( (j = this[R.type](R, B)), A.comment && (j = Ge(R, j)), (O = ve(j).toString()), R.type === t.Program && !v && m === "" && O.charAt(O.length - 1) === ` ` && (j = C ? ve(j).replaceRight(/\s+$/, "") : O.replace(/\s+$/, "")), ve(j, R) ); })); function cr(R) { var B; if (((B = new Re()), L(R))) return B.generateStatement(R, oe); if (F(R)) return B.generateExpression(R, r.Sequence, V); throw new Error("Unknown node type: " + R.type); } function bt(R, B) { var j = z(), O, G; return ( B != null ? (typeof B.indent == "string" && (j.format.indent.style = B.indent), typeof B.base == "number" && (j.format.indent.base = B.base), (B = ee(j, B)), (l = B.format.indent.style), typeof B.base == "string" ? (u = B.base) : (u = ne(l, B.format.indent.base))) : ((B = j), (l = B.format.indent.style), (u = ne(l, B.format.indent.base))), (c = B.format.json), (d = B.format.renumber), (p = c ? !1 : B.format.hexadecimal), (f = c ? "double" : B.format.quotes), (h = B.format.escapeless), (m = B.format.newline), (y = B.format.space), B.format.compact && (m = y = l = u = ""), (b = B.format.parentheses), (g = B.format.semicolons), (v = B.format.safeConcatenation), (x = B.directive), (w = c ? null : B.parse), (C = B.sourceMap), (E = B.sourceCode), (_ = B.format.preserveBlankLines && E !== null), (A = B), C && (e.browser ? (a = global.sourceMap.SourceNode) : (a = XZ().SourceNode)), (O = cr(R)), C ? ((G = O.toStringWithSourceMap({ file: B.file, sourceRoot: B.sourceMapRoot, })), B.sourceContent && G.map.setSourceContent(B.sourceMap, B.sourceContent), B.sourceMapWithCode ? G : G.map.toString()) : ((G = { code: O.toString(), map: null }), B.sourceMapWithCode ? G : G.code) ); } ((P = { indent: { style: "", base: 0 }, renumber: !0, hexadecimal: !0, quotes: "auto", escapeless: !0, compact: !0, parentheses: !1, semicolons: !1, }), (D = z().format), (e.version = KZ().version), (e.generate = bt), (e.attachComments = o.attachComments), (e.Precedence = ee({}, r)), (e.browser = !1), (e.FORMAT_MINIFY = P), (e.FORMAT_DEFAULTS = D)); })(); }, }), Ay = {}; Bd(Ay, { Node: () => Si, Parser: () => Ct, Position: () => ma, SourceLocation: () => mo, TokContext: () => _r, Token: () => xi, TokenType: () => nt, defaultOptions: () => ps, getLineInfo: () => xy, isIdentifierChar: () => ha, isIdentifierStart: () => wn, isNewLine: () => io, keywordTypes: () => Li, lineBreak: () => pr, lineBreakG: () => _a, nonASCIIwhitespace: () => sl, parse: () => iee, parseExpressionAt: () => see, tokContexts: () => Ot, tokTypes: () => U, tokenizer: () => uee, version: () => Fy, }); function Sy(e, t) { for (var r = 65536, n = 0; n < t.length; n += 2) { if (((r += t[n]), r > e)) return !1; if (((r += t[n + 1]), r >= e)) return !0; } } function wn(e, t) { return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && nB.test(String.fromCharCode(e)) : t === !1 ? !1 : Sy(e, _E); } function ha(e, t) { return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && aB.test(String.fromCharCode(e)) : t === !1 ? !1 : Sy(e, _E) || Sy(e, oB); } function Or(e, t) { return new nt(e, { beforeExpr: !0, binop: t }); } function et(e, t) { return (t === void 0 && (t = {}), (t.keyword = e), (Li[e] = new nt(e, t))); } function io(e, t) { return e === 10 || e === 13 || (!t && (e === 8232 || e === 8233)); } function ol(e, t) { return iB.call(e, t); } function Ea(e) { return new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"); } function xy(e, t) { for (var r = 1, n = 0; ; ) { _a.lastIndex = n; var a = _a.exec(e); if (a && a.index < t) (++r, (n = a.index + a[0].length)); else return new ma(r, t - n); } } function QZ(e) { var t = {}; for (var r in ps) t[r] = e && ol(e, r) ? e[r] : ps[r]; if ( (t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), Py(t.onToken)) ) { var n = t.onToken; t.onToken = function (a) { return n.push(a); }; } return (Py(t.onComment) && (t.onComment = ZZ(t, t.onComment)), t); } function ZZ(e, t) { return function (r, n, a, o, i, u) { var l = { type: r ? "Block" : "Line", value: n, start: a, end: o }; (e.locations && (l.loc = new mo(this, i, u)), e.ranges && (l.range = [a, o]), t.push(l)); }; } function Pp(e, t) { return so | (e ? Ry : 0) | (t ? Ty : 0); } function Ks() { this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1; } function XC(e, t, r, n) { return ( (e.type = t), (e.end = r), this.options.locations && (e.loc.end = n), this.options.ranges && (e.range[1] = r), e ); } function Rp(e) { var t = (Dy[e] = { binary: Ea(sB[e] + " " + Oy), nonBinary: { General_Category: Ea(Oy), Script: Ea(uB[e]) }, }); ((t.nonBinary.Script_Extensions = t.nonBinary.Script), (t.nonBinary.gc = t.nonBinary.General_Category), (t.nonBinary.sc = t.nonBinary.Script), (t.nonBinary.scx = t.nonBinary.Script_Extensions)); } function Ys(e) { return e <= 65535 ? String.fromCharCode(e) : ((e -= 65536), String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320)); } function KC(e) { return ( e === 36 || (e >= 40 && e <= 43) || e === 46 || e === 63 || (e >= 91 && e <= 94) || (e >= 123 && e <= 125) ); } function eee(e) { return wn(e, !0) || e === 36 || e === 95; } function tee(e) { return ha(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205; } function tB(e) { return (e >= 65 && e <= 90) || (e >= 97 && e <= 122); } function ree(e) { return e >= 0 && e <= 1114111; } function nee(e) { return ( e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87 ); } function rB(e) { return tB(e) || e === 95; } function aee(e) { return rB(e) || il(e); } function il(e) { return e >= 48 && e <= 57; } function YC(e) { return (e >= 48 && e <= 57) || (e >= 65 && e <= 70) || (e >= 97 && e <= 102); } function QC(e) { return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48; } function ZC(e) { return e >= 48 && e <= 55; } function oee(e, t) { return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, "")); } function ew(e) { return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, "")); } function Tp(e) { return e <= 65535 ? String.fromCharCode(e) : ((e -= 65536), String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320)); } function iee(e, t) { return Ct.parse(e, t); } function see(e, t, r) { return Ct.parseExpressionAt(e, t, r); } function uee(e, t) { return Ct.tokenizer(e, t); } var Qs, Zs, tw, rw, eu, Op, nB, aB, _E, oB, nt, gr, dr, Li, U, pr, _a, sl, br, Dp, iB, nw, Py, ma, mo, ps, Qa, so, tu, Ry, Ty, Fp, Ip, Np, jp, kp, ru, Xr, qp, Mp, Bp, Ct, Mn, nr, aw, $e, nu, ow, iw, Za, au, Lp, Kr, We, sw, di, bn, uw, Si, pi, _r, Ot, fi, $p, Up, lw, sB, Oy, Hp, Vp, cw, uB, Dy, Ie, Yr, xi, Ye, zp, Fy, Iy = RY({ "../../node_modules/acorn/dist/acorn.mjs"() { ((Qs = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments", }), (Zs = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), (tw = { 5: Zs, "5module": Zs + " export import", 6: Zs + " const class extends export import super", }), (rw = /^in(stanceof)?$/), (eu = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"), (Op = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_"), (nB = new RegExp("[" + eu + "]")), (aB = new RegExp("[" + eu + Op + "]")), (eu = Op = null), (_E = [ 0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 157, 310, 10, 21, 11, 7, 153, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 107, 20, 28, 22, 13, 52, 76, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 85, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 230, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 35, 56, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 190, 0, 80, 921, 103, 110, 18, 195, 2749, 1070, 4050, 582, 8634, 568, 8, 30, 114, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8952, 286, 50, 2, 18, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 2357, 44, 11, 6, 17, 0, 370, 43, 1301, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42717, 35, 4148, 12, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, ]), (oB = [ 509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 154, 10, 176, 2, 54, 14, 32, 9, 16, 3, 46, 10, 54, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 161, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 19306, 9, 135, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 5319, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 262, 6, 10, 9, 419, 13, 1495, 6, 110, 6, 6, 9, 4759, 9, 787719, 239, ]), (nt = function (e, t) { (t === void 0 && (t = {}), (this.label = e), (this.keyword = t.keyword), (this.beforeExpr = !!t.beforeExpr), (this.startsExpr = !!t.startsExpr), (this.isLoop = !!t.isLoop), (this.isAssign = !!t.isAssign), (this.prefix = !!t.prefix), (this.postfix = !!t.postfix), (this.binop = t.binop || null), (this.updateContext = null)); }), (gr = { beforeExpr: !0 }), (dr = { startsExpr: !0 }), (Li = {}), (U = { num: new nt("num", dr), regexp: new nt("regexp", dr), string: new nt("string", dr), name: new nt("name", dr), eof: new nt("eof"), bracketL: new nt("[", { beforeExpr: !0, startsExpr: !0 }), bracketR: new nt("]"), braceL: new nt("{", { beforeExpr: !0, startsExpr: !0 }), braceR: new nt("}"), parenL: new nt("(", { beforeExpr: !0, startsExpr: !0 }), parenR: new nt(")"), comma: new nt(",", gr), semi: new nt(";", gr), colon: new nt(":", gr), dot: new nt("."), question: new nt("?", gr), questionDot: new nt("?."), arrow: new nt("=>", gr), template: new nt("template"), invalidTemplate: new nt("invalidTemplate"), ellipsis: new nt("...", gr), backQuote: new nt("`", dr), dollarBraceL: new nt("${", { beforeExpr: !0, startsExpr: !0 }), eq: new nt("=", { beforeExpr: !0, isAssign: !0 }), assign: new nt("_=", { beforeExpr: !0, isAssign: !0 }), incDec: new nt("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }), prefix: new nt("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), logicalOR: Or("||", 1), logicalAND: Or("&&", 2), bitwiseOR: Or("|", 3), bitwiseXOR: Or("^", 4), bitwiseAND: Or("&", 5), equality: Or("==/!=/===/!==", 6), relational: Or("/<=/>=", 7), bitShift: Or("<>/>>>", 8), plusMin: new nt("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0, }), modulo: Or("%", 10), star: Or("*", 10), slash: Or("/", 10), starstar: new nt("**", { beforeExpr: !0 }), coalesce: Or("??", 1), _break: et("break"), _case: et("case", gr), _catch: et("catch"), _continue: et("continue"), _debugger: et("debugger"), _default: et("default", gr), _do: et("do", { isLoop: !0, beforeExpr: !0 }), _else: et("else", gr), _finally: et("finally"), _for: et("for", { isLoop: !0 }), _function: et("function", dr), _if: et("if"), _return: et("return", gr), _switch: et("switch"), _throw: et("throw", gr), _try: et("try"), _var: et("var"), _const: et("const"), _while: et("while", { isLoop: !0 }), _with: et("with"), _new: et("new", { beforeExpr: !0, startsExpr: !0 }), _this: et("this", dr), _super: et("super", dr), _class: et("class", dr), _extends: et("extends", gr), _export: et("export"), _import: et("import", dr), _null: et("null", dr), _true: et("true", dr), _false: et("false", dr), _in: et("in", { beforeExpr: !0, binop: 7 }), _instanceof: et("instanceof", { beforeExpr: !0, binop: 7 }), _typeof: et("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), _void: et("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), _delete: et("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), }), (pr = /\r\n?|\n|\u2028|\u2029/), (_a = new RegExp(pr.source, "g")), (sl = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/), (br = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g), (Dp = Object.prototype), (iB = Dp.hasOwnProperty), (nw = Dp.toString), (Py = Array.isArray || function (e) { return nw.call(e) === "[object Array]"; }), (ma = function (e, t) { ((this.line = e), (this.column = t)); }), (ma.prototype.offset = function (e) { return new ma(this.line, this.column + e); }), (mo = function (e, t, r) { ((this.start = t), (this.end = r), e.sourceFile !== null && (this.source = e.sourceFile)); }), (ps = { ecmaVersion: 10, sourceType: "script", onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: !1, allowImportExportEverywhere: !1, allowAwaitOutsideFunction: !1, allowHashBang: !1, locations: !1, onToken: null, onComment: null, ranges: !1, program: null, sourceFile: null, directSourceFile: null, preserveParens: !1, }), (Qa = 1), (so = 2), (tu = Qa | so), (Ry = 4), (Ty = 8), (Fp = 16), (Ip = 32), (Np = 64), (jp = 128), (kp = 0), (ru = 1), (Xr = 2), (qp = 3), (Mp = 4), (Bp = 5), (Ct = function (e, t, r) { ((this.options = e = QZ(e)), (this.sourceFile = e.sourceFile), (this.keywords = Ea( tw[ e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5 ], ))); var n = ""; if (e.allowReserved !== !0) { for (var a = e.ecmaVersion; !(n = Qs[a]); a--); e.sourceType === "module" && (n += " await"); } this.reservedWords = Ea(n); var o = (n ? n + " " : "") + Qs.strict; ((this.reservedWordsStrict = Ea(o)), (this.reservedWordsStrictBind = Ea(o + " " + Qs.strictBind)), (this.input = String(t)), (this.containsEsc = !1), r ? ((this.pos = r), (this.lineStart = this.input.lastIndexOf( ` `, r - 1, ) + 1), (this.curLine = this.input .slice(0, this.lineStart) .split(pr).length)) : ((this.pos = this.lineStart = 0), (this.curLine = 1)), (this.type = U.eof), (this.value = null), (this.start = this.end = this.pos), (this.startLoc = this.endLoc = this.curPosition()), (this.lastTokEndLoc = this.lastTokStartLoc = null), (this.lastTokStart = this.lastTokEnd = this.pos), (this.context = this.initialContext()), (this.exprAllowed = !0), (this.inModule = e.sourceType === "module"), (this.strict = this.inModule || this.strictDirective(this.pos)), (this.potentialArrowAt = -1), (this.yieldPos = this.awaitPos = this.awaitIdentPos = 0), (this.labels = []), (this.undefinedExports = {}), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), (this.scopeStack = []), this.enterScope(Qa), (this.regexpState = null)); }), (Mn = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, }), (Ct.prototype.parse = function () { var e = this.options.program || this.startNode(); return (this.nextToken(), this.parseTopLevel(e)); }), (Mn.inFunction.get = function () { return (this.currentVarScope().flags & so) > 0; }), (Mn.inGenerator.get = function () { return (this.currentVarScope().flags & Ty) > 0; }), (Mn.inAsync.get = function () { return (this.currentVarScope().flags & Ry) > 0; }), (Mn.allowSuper.get = function () { return (this.currentThisScope().flags & Np) > 0; }), (Mn.allowDirectSuper.get = function () { return (this.currentThisScope().flags & jp) > 0; }), (Mn.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()); }), (Ct.prototype.inNonArrowFunction = function () { return (this.currentThisScope().flags & so) > 0; }), (Ct.extend = function () { for (var e = [], t = arguments.length; t--; ) e[t] = arguments[t]; for (var r = this, n = 0; n < e.length; n++) r = e[n](r); return r; }), (Ct.parse = function (e, t) { return new this(t, e).parse(); }), (Ct.parseExpressionAt = function (e, t, r) { var n = new this(r, e, t); return (n.nextToken(), n.parseExpression()); }), (Ct.tokenizer = function (e, t) { return new this(t, e); }), Object.defineProperties(Ct.prototype, Mn), (nr = Ct.prototype), (aw = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/), (nr.strictDirective = function (e) { for (;;) { ((br.lastIndex = e), (e += br.exec(this.input)[0].length)); var t = aw.exec(this.input.slice(e)); if (!t) return !1; if ((t[1] || t[2]) === "use strict") { br.lastIndex = e + t[0].length; var r = br.exec(this.input), n = r.index + r[0].length, a = this.input.charAt(n); return ( a === ";" || a === "}" || (pr.test(r[0]) && !( /[(`.[+\-/*%<>=,?^&]/.test(a) || (a === "!" && this.input.charAt(n + 1) === "=") )) ); } ((e += t[0].length), (br.lastIndex = e), (e += br.exec(this.input)[0].length), this.input[e] === ";" && e++); } }), (nr.eat = function (e) { return this.type === e ? (this.next(), !0) : !1; }), (nr.isContextual = function (e) { return this.type === U.name && this.value === e && !this.containsEsc; }), (nr.eatContextual = function (e) { return this.isContextual(e) ? (this.next(), !0) : !1; }), (nr.expectContextual = function (e) { this.eatContextual(e) || this.unexpected(); }), (nr.canInsertSemicolon = function () { return ( this.type === U.eof || this.type === U.braceR || pr.test(this.input.slice(this.lastTokEnd, this.start)) ); }), (nr.insertSemicolon = function () { if (this.canInsertSemicolon()) return ( this.options.onInsertedSemicolon && this.options.onInsertedSemicolon( this.lastTokEnd, this.lastTokEndLoc, ), !0 ); }), (nr.semicolon = function () { !this.eat(U.semi) && !this.insertSemicolon() && this.unexpected(); }), (nr.afterTrailingComma = function (e, t) { if (this.type === e) return ( this.options.onTrailingComma && this.options.onTrailingComma( this.lastTokStart, this.lastTokStartLoc, ), t || this.next(), !0 ); }), (nr.expect = function (e) { this.eat(e) || this.unexpected(); }), (nr.unexpected = function (e) { this.raise(e ?? this.start, "Unexpected token"); }), (nr.checkPatternErrors = function (e, t) { if (e) { e.trailingComma > -1 && this.raiseRecoverable( e.trailingComma, "Comma is not permitted after the rest element", ); var r = t ? e.parenthesizedAssign : e.parenthesizedBind; r > -1 && this.raiseRecoverable(r, "Parenthesized pattern"); } }), (nr.checkExpressionErrors = function (e, t) { if (!e) return !1; var r = e.shorthandAssign, n = e.doubleProto; if (!t) return r >= 0 || n >= 0; (r >= 0 && this.raise( r, "Shorthand property assignments are valid only in destructuring patterns", ), n >= 0 && this.raiseRecoverable(n, "Redefinition of __proto__ property")); }), (nr.checkYieldAwaitInDefaultParams = function () { (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos) && this.raise( this.yieldPos, "Yield expression cannot be a default value", ), this.awaitPos && this.raise( this.awaitPos, "Await expression cannot be a default value", )); }), (nr.isSimpleAssignTarget = function (e) { return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression"; }), ($e = Ct.prototype), ($e.parseTopLevel = function (e) { var t = {}; for (e.body || (e.body = []); this.type !== U.eof; ) { var r = this.parseStatement(null, !0, t); e.body.push(r); } if (this.inModule) for ( var n = 0, a = Object.keys(this.undefinedExports); n < a.length; n += 1 ) { var o = a[n]; this.raiseRecoverable( this.undefinedExports[o].start, "Export '" + o + "' is not defined", ); } return ( this.adaptDirectivePrologue(e.body), this.next(), (e.sourceType = this.options.sourceType), this.finishNode(e, "Program") ); }), (nu = { kind: "loop" }), (ow = { kind: "switch" }), ($e.isLet = function (e) { if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return !1; br.lastIndex = this.pos; var t = br.exec(this.input), r = this.pos + t[0].length, n = this.input.charCodeAt(r); if (n === 91) return !0; if (e) return !1; if (n === 123) return !0; if (wn(n, !0)) { for (var a = r + 1; ha(this.input.charCodeAt(a), !0); ) ++a; var o = this.input.slice(r, a); if (!rw.test(o)) return !0; } return !1; }), ($e.isAsyncFunction = function () { if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return !1; br.lastIndex = this.pos; var e = br.exec(this.input), t = this.pos + e[0].length; return ( !pr.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !ha(this.input.charAt(t + 8))) ); }), ($e.parseStatement = function (e, t, r) { var n = this.type, a = this.startNode(), o; switch ((this.isLet(e) && ((n = U._var), (o = "let")), n)) { case U._break: case U._continue: return this.parseBreakContinueStatement(a, n.keyword); case U._debugger: return this.parseDebuggerStatement(a); case U._do: return this.parseDoStatement(a); case U._for: return this.parseForStatement(a); case U._function: return ( e && (this.strict || (e !== "if" && e !== "label")) && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(a, !1, !e) ); case U._class: return (e && this.unexpected(), this.parseClass(a, !0)); case U._if: return this.parseIfStatement(a); case U._return: return this.parseReturnStatement(a); case U._switch: return this.parseSwitchStatement(a); case U._throw: return this.parseThrowStatement(a); case U._try: return this.parseTryStatement(a); case U._const: case U._var: return ( (o = o || this.value), e && o !== "var" && this.unexpected(), this.parseVarStatement(a, o) ); case U._while: return this.parseWhileStatement(a); case U._with: return this.parseWithStatement(a); case U.braceL: return this.parseBlock(!0, a); case U.semi: return this.parseEmptyStatement(a); case U._export: case U._import: if (this.options.ecmaVersion > 10 && n === U._import) { br.lastIndex = this.pos; var i = br.exec(this.input), u = this.pos + i[0].length, l = this.input.charCodeAt(u); if (l === 40 || l === 46) return this.parseExpressionStatement( a, this.parseExpression(), ); } return ( this.options.allowImportExportEverywhere || (t || this.raise( this.start, "'import' and 'export' may only appear at the top level", ), this.inModule || this.raise( this.start, "'import' and 'export' may appear only with 'sourceType: module'", )), n === U._import ? this.parseImport(a) : this.parseExport(a, r) ); default: if (this.isAsyncFunction()) return ( e && this.unexpected(), this.next(), this.parseFunctionStatement(a, !0, !e) ); var c = this.value, d = this.parseExpression(); return n === U.name && d.type === "Identifier" && this.eat(U.colon) ? this.parseLabeledStatement(a, c, d, e) : this.parseExpressionStatement(a, d); } }), ($e.parseBreakContinueStatement = function (e, t) { var r = t === "break"; (this.next(), this.eat(U.semi) || this.insertSemicolon() ? (e.label = null) : this.type !== U.name ? this.unexpected() : ((e.label = this.parseIdent()), this.semicolon())); for (var n = 0; n < this.labels.length; ++n) { var a = this.labels[n]; if ( (e.label == null || a.name === e.label.name) && ((a.kind != null && (r || a.kind === "loop")) || (e.label && r)) ) break; } return ( n === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, r ? "BreakStatement" : "ContinueStatement") ); }), ($e.parseDebuggerStatement = function (e) { return ( this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement") ); }), ($e.parseDoStatement = function (e) { return ( this.next(), this.labels.push(nu), (e.body = this.parseStatement("do")), this.labels.pop(), this.expect(U._while), (e.test = this.parseParenExpression()), this.options.ecmaVersion >= 6 ? this.eat(U.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement") ); }), ($e.parseForStatement = function (e) { this.next(); var t = this.options.ecmaVersion >= 9 && (this.inAsync || (!this.inFunction && this.options.allowAwaitOutsideFunction)) && this.eatContextual("await") ? this.lastTokStart : -1; if ( (this.labels.push(nu), this.enterScope(0), this.expect(U.parenL), this.type === U.semi) ) return (t > -1 && this.unexpected(t), this.parseFor(e, null)); var r = this.isLet(); if (this.type === U._var || this.type === U._const || r) { var n = this.startNode(), a = r ? "let" : this.value; return ( this.next(), this.parseVar(n, !0, a), this.finishNode(n, "VariableDeclaration"), (this.type === U._in || (this.options.ecmaVersion >= 6 && this.isContextual("of"))) && n.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === U._in ? t > -1 && this.unexpected(t) : (e.await = t > -1)), this.parseForIn(e, n)) : (t > -1 && this.unexpected(t), this.parseFor(e, n)) ); } var o = new Ks(), i = this.parseExpression(!0, o); return this.type === U._in || (this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (this.options.ecmaVersion >= 9 && (this.type === U._in ? t > -1 && this.unexpected(t) : (e.await = t > -1)), this.toAssignable(i, !1, o), this.checkLVal(i), this.parseForIn(e, i)) : (this.checkExpressionErrors(o, !0), t > -1 && this.unexpected(t), this.parseFor(e, i)); }), ($e.parseFunctionStatement = function (e, t, r) { return (this.next(), this.parseFunction(e, Za | (r ? 0 : au), !1, t)); }), ($e.parseIfStatement = function (e) { return ( this.next(), (e.test = this.parseParenExpression()), (e.consequent = this.parseStatement("if")), (e.alternate = this.eat(U._else) ? this.parseStatement("if") : null), this.finishNode(e, "IfStatement") ); }), ($e.parseReturnStatement = function (e) { return ( !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(U.semi) || this.insertSemicolon() ? (e.argument = null) : ((e.argument = this.parseExpression()), this.semicolon()), this.finishNode(e, "ReturnStatement") ); }), ($e.parseSwitchStatement = function (e) { (this.next(), (e.discriminant = this.parseParenExpression()), (e.cases = []), this.expect(U.braceL), this.labels.push(ow), this.enterScope(0)); for (var t, r = !1; this.type !== U.braceR; ) if (this.type === U._case || this.type === U._default) { var n = this.type === U._case; (t && this.finishNode(t, "SwitchCase"), e.cases.push((t = this.startNode())), (t.consequent = []), this.next(), n ? (t.test = this.parseExpression()) : (r && this.raiseRecoverable( this.lastTokStart, "Multiple default clauses", ), (r = !0), (t.test = null)), this.expect(U.colon)); } else (t || this.unexpected(), t.consequent.push(this.parseStatement(null))); return ( this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement") ); }), ($e.parseThrowStatement = function (e) { return ( this.next(), pr.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), (e.argument = this.parseExpression()), this.semicolon(), this.finishNode(e, "ThrowStatement") ); }), (iw = []), ($e.parseTryStatement = function (e) { if ( (this.next(), (e.block = this.parseBlock()), (e.handler = null), this.type === U._catch) ) { var t = this.startNode(); if ((this.next(), this.eat(U.parenL))) { t.param = this.parseBindingAtom(); var r = t.param.type === "Identifier"; (this.enterScope(r ? Ip : 0), this.checkLVal(t.param, r ? Mp : Xr), this.expect(U.parenR)); } else (this.options.ecmaVersion < 10 && this.unexpected(), (t.param = null), this.enterScope(0)); ((t.body = this.parseBlock(!1)), this.exitScope(), (e.handler = this.finishNode(t, "CatchClause"))); } return ( (e.finalizer = this.eat(U._finally) ? this.parseBlock() : null), !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement") ); }), ($e.parseVarStatement = function (e, t) { return ( this.next(), this.parseVar(e, !1, t), this.semicolon(), this.finishNode(e, "VariableDeclaration") ); }), ($e.parseWhileStatement = function (e) { return ( this.next(), (e.test = this.parseParenExpression()), this.labels.push(nu), (e.body = this.parseStatement("while")), this.labels.pop(), this.finishNode(e, "WhileStatement") ); }), ($e.parseWithStatement = function (e) { return ( this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), (e.object = this.parseParenExpression()), (e.body = this.parseStatement("with")), this.finishNode(e, "WithStatement") ); }), ($e.parseEmptyStatement = function (e) { return (this.next(), this.finishNode(e, "EmptyStatement")); }), ($e.parseLabeledStatement = function (e, t, r, n) { for (var a = 0, o = this.labels; a < o.length; a += 1) { var i = o[a]; i.name === t && this.raise(r.start, "Label '" + t + "' is already declared"); } for ( var u = this.type.isLoop ? "loop" : this.type === U._switch ? "switch" : null, l = this.labels.length - 1; l >= 0; l-- ) { var c = this.labels[l]; if (c.statementStart === e.start) ((c.statementStart = this.start), (c.kind = u)); else break; } return ( this.labels.push({ name: t, kind: u, statementStart: this.start }), (e.body = this.parseStatement( n ? (n.indexOf("label") === -1 ? n + "label" : n) : "label", )), this.labels.pop(), (e.label = r), this.finishNode(e, "LabeledStatement") ); }), ($e.parseExpressionStatement = function (e, t) { return ( (e.expression = t), this.semicolon(), this.finishNode(e, "ExpressionStatement") ); }), ($e.parseBlock = function (e, t, r) { for ( e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(U.braceL), e && this.enterScope(0); this.type !== U.braceR; ) { var n = this.parseStatement(null); t.body.push(n); } return ( r && (this.strict = !1), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement") ); }), ($e.parseFor = function (e, t) { return ( (e.init = t), this.expect(U.semi), (e.test = this.type === U.semi ? null : this.parseExpression()), this.expect(U.semi), (e.update = this.type === U.parenR ? null : this.parseExpression()), this.expect(U.parenR), (e.body = this.parseStatement("for")), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement") ); }), ($e.parseForIn = function (e, t) { var r = this.type === U._in; return ( this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!r || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") ? this.raise( t.start, (r ? "for-in" : "for-of") + " loop variable declaration may not have an initializer", ) : t.type === "AssignmentPattern" && this.raise(t.start, "Invalid left-hand side in for-loop"), (e.left = t), (e.right = r ? this.parseExpression() : this.parseMaybeAssign()), this.expect(U.parenR), (e.body = this.parseStatement("for")), this.exitScope(), this.labels.pop(), this.finishNode(e, r ? "ForInStatement" : "ForOfStatement") ); }), ($e.parseVar = function (e, t, r) { for (e.declarations = [], e.kind = r; ; ) { var n = this.startNode(); if ( (this.parseVarId(n, r), this.eat(U.eq) ? (n.init = this.parseMaybeAssign(t)) : r === "const" && !( this.type === U._in || (this.options.ecmaVersion >= 6 && this.isContextual("of")) ) ? this.unexpected() : n.id.type !== "Identifier" && !(t && (this.type === U._in || this.isContextual("of"))) ? this.raise( this.lastTokEnd, "Complex binding patterns require an initialization value", ) : (n.init = null), e.declarations.push(this.finishNode(n, "VariableDeclarator")), !this.eat(U.comma)) ) break; } return e; }), ($e.parseVarId = function (e, t) { ((e.id = this.parseBindingAtom()), this.checkLVal(e.id, t === "var" ? ru : Xr, !1)); }), (Za = 1), (au = 2), (Lp = 4), ($e.parseFunction = function (e, t, r, n) { (this.initFunction(e), (this.options.ecmaVersion >= 9 || (this.options.ecmaVersion >= 6 && !n)) && (this.type === U.star && t & au && this.unexpected(), (e.generator = this.eat(U.star))), this.options.ecmaVersion >= 8 && (e.async = !!n), t & Za && ((e.id = t & Lp && this.type !== U.name ? null : this.parseIdent()), e.id && !(t & au) && this.checkLVal( e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? ru : Xr : qp, ))); var a = this.yieldPos, o = this.awaitPos, i = this.awaitIdentPos; return ( (this.yieldPos = 0), (this.awaitPos = 0), (this.awaitIdentPos = 0), this.enterScope(Pp(e.async, e.generator)), t & Za || (e.id = this.type === U.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, r, !1), (this.yieldPos = a), (this.awaitPos = o), (this.awaitIdentPos = i), this.finishNode( e, t & Za ? "FunctionDeclaration" : "FunctionExpression", ) ); }), ($e.parseFunctionParams = function (e) { (this.expect(U.parenL), (e.params = this.parseBindingList( U.parenR, !1, this.options.ecmaVersion >= 8, )), this.checkYieldAwaitInDefaultParams()); }), ($e.parseClass = function (e, t) { this.next(); var r = this.strict; ((this.strict = !0), this.parseClassId(e, t), this.parseClassSuper(e)); var n = this.startNode(), a = !1; for (n.body = [], this.expect(U.braceL); this.type !== U.braceR; ) { var o = this.parseClassElement(e.superClass !== null); o && (n.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" && (a && this.raise( o.start, "Duplicate constructor in the same class", ), (a = !0))); } return ( (this.strict = r), this.next(), (e.body = this.finishNode(n, "ClassBody")), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression") ); }), ($e.parseClassElement = function (e) { var t = this; if (this.eat(U.semi)) return null; var r = this.startNode(), n = function (l, c) { c === void 0 && (c = !1); var d = t.start, p = t.startLoc; return t.eatContextual(l) ? t.type !== U.parenL && (!c || !t.canInsertSemicolon()) ? !0 : (r.key && t.unexpected(), (r.computed = !1), (r.key = t.startNodeAt(d, p)), (r.key.name = l), t.finishNode(r.key, "Identifier"), !1) : !1; }; ((r.kind = "method"), (r.static = n("static"))); var a = this.eat(U.star), o = !1; (a || (this.options.ecmaVersion >= 8 && n("async", !0) ? ((o = !0), (a = this.options.ecmaVersion >= 9 && this.eat(U.star))) : n("get") ? (r.kind = "get") : n("set") && (r.kind = "set")), r.key || this.parsePropertyName(r)); var i = r.key, u = !1; return ( !r.computed && !r.static && ((i.type === "Identifier" && i.name === "constructor") || (i.type === "Literal" && i.value === "constructor")) ? (r.kind !== "method" && this.raise( i.start, "Constructor can't have get/set modifier", ), a && this.raise(i.start, "Constructor can't be a generator"), o && this.raise(i.start, "Constructor can't be an async method"), (r.kind = "constructor"), (u = e)) : r.static && i.type === "Identifier" && i.name === "prototype" && this.raise( i.start, "Classes may not have a static property named prototype", ), this.parseClassMethod(r, a, o, u), r.kind === "get" && r.value.params.length !== 0 && this.raiseRecoverable( r.value.start, "getter should have no params", ), r.kind === "set" && r.value.params.length !== 1 && this.raiseRecoverable( r.value.start, "setter should have exactly one param", ), r.kind === "set" && r.value.params[0].type === "RestElement" && this.raiseRecoverable( r.value.params[0].start, "Setter cannot use rest params", ), r ); }), ($e.parseClassMethod = function (e, t, r, n) { return ( (e.value = this.parseMethod(t, r, n)), this.finishNode(e, "MethodDefinition") ); }), ($e.parseClassId = function (e, t) { this.type === U.name ? ((e.id = this.parseIdent()), t && this.checkLVal(e.id, Xr, !1)) : (t === !0 && this.unexpected(), (e.id = null)); }), ($e.parseClassSuper = function (e) { e.superClass = this.eat(U._extends) ? this.parseExprSubscripts() : null; }), ($e.parseExport = function (e, t) { if ((this.next(), this.eat(U.star))) return ( this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? ((e.exported = this.parseIdent(!0)), this.checkExport(t, e.exported.name, this.lastTokStart)) : (e.exported = null)), this.expectContextual("from"), this.type !== U.string && this.unexpected(), (e.source = this.parseExprAtom()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration") ); if (this.eat(U._default)) { this.checkExport(t, "default", this.lastTokStart); var r; if (this.type === U._function || (r = this.isAsyncFunction())) { var n = this.startNode(); (this.next(), r && this.next(), (e.declaration = this.parseFunction(n, Za | Lp, !1, r))); } else if (this.type === U._class) { var a = this.startNode(); e.declaration = this.parseClass(a, "nullableID"); } else ((e.declaration = this.parseMaybeAssign()), this.semicolon()); return this.finishNode(e, "ExportDefaultDeclaration"); } if (this.shouldParseExportStatement()) ((e.declaration = this.parseStatement(null)), e.declaration.type === "VariableDeclaration" ? this.checkVariableExport(t, e.declaration.declarations) : this.checkExport( t, e.declaration.id.name, e.declaration.id.start, ), (e.specifiers = []), (e.source = null)); else { if ( ((e.declaration = null), (e.specifiers = this.parseExportSpecifiers(t)), this.eatContextual("from")) ) (this.type !== U.string && this.unexpected(), (e.source = this.parseExprAtom())); else { for (var o = 0, i = e.specifiers; o < i.length; o += 1) { var u = i[o]; (this.checkUnreserved(u.local), this.checkLocalExport(u.local)); } e.source = null; } this.semicolon(); } return this.finishNode(e, "ExportNamedDeclaration"); }), ($e.checkExport = function (e, t, r) { e && (ol(e, t) && this.raiseRecoverable(r, "Duplicate export '" + t + "'"), (e[t] = !0)); }), ($e.checkPatternExport = function (e, t) { var r = t.type; if (r === "Identifier") this.checkExport(e, t.name, t.start); else if (r === "ObjectPattern") for (var n = 0, a = t.properties; n < a.length; n += 1) { var o = a[n]; this.checkPatternExport(e, o); } else if (r === "ArrayPattern") for (var i = 0, u = t.elements; i < u.length; i += 1) { var l = u[i]; l && this.checkPatternExport(e, l); } else r === "Property" ? this.checkPatternExport(e, t.value) : r === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : r === "RestElement" ? this.checkPatternExport(e, t.argument) : r === "ParenthesizedExpression" && this.checkPatternExport(e, t.expression); }), ($e.checkVariableExport = function (e, t) { if (e) for (var r = 0, n = t; r < n.length; r += 1) { var a = n[r]; this.checkPatternExport(e, a.id); } }), ($e.shouldParseExportStatement = function () { return ( this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction() ); }), ($e.parseExportSpecifiers = function (e) { var t = [], r = !0; for (this.expect(U.braceL); !this.eat(U.braceR); ) { if (r) r = !1; else if ((this.expect(U.comma), this.afterTrailingComma(U.braceR))) break; var n = this.startNode(); ((n.local = this.parseIdent(!0)), (n.exported = this.eatContextual("as") ? this.parseIdent(!0) : n.local), this.checkExport(e, n.exported.name, n.exported.start), t.push(this.finishNode(n, "ExportSpecifier"))); } return t; }), ($e.parseImport = function (e) { return ( this.next(), this.type === U.string ? ((e.specifiers = iw), (e.source = this.parseExprAtom())) : ((e.specifiers = this.parseImportSpecifiers()), this.expectContextual("from"), (e.source = this.type === U.string ? this.parseExprAtom() : this.unexpected())), this.semicolon(), this.finishNode(e, "ImportDeclaration") ); }), ($e.parseImportSpecifiers = function () { var e = [], t = !0; if (this.type === U.name) { var r = this.startNode(); if ( ((r.local = this.parseIdent()), this.checkLVal(r.local, Xr), e.push(this.finishNode(r, "ImportDefaultSpecifier")), !this.eat(U.comma)) ) return e; } if (this.type === U.star) { var n = this.startNode(); return ( this.next(), this.expectContextual("as"), (n.local = this.parseIdent()), this.checkLVal(n.local, Xr), e.push(this.finishNode(n, "ImportNamespaceSpecifier")), e ); } for (this.expect(U.braceL); !this.eat(U.braceR); ) { if (t) t = !1; else if ((this.expect(U.comma), this.afterTrailingComma(U.braceR))) break; var a = this.startNode(); ((a.imported = this.parseIdent(!0)), this.eatContextual("as") ? (a.local = this.parseIdent()) : (this.checkUnreserved(a.imported), (a.local = a.imported)), this.checkLVal(a.local, Xr), e.push(this.finishNode(a, "ImportSpecifier"))); } return e; }), ($e.adaptDirectivePrologue = function (e) { for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t) e[t].directive = e[t].expression.raw.slice(1, -1); }), ($e.isDirectiveCandidate = function (e) { return ( e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && (this.input[e.start] === '"' || this.input[e.start] === "'") ); }), (Kr = Ct.prototype), (Kr.toAssignable = function (e, t, r) { if (this.options.ecmaVersion >= 6 && e) switch (e.type) { case "Identifier": this.inAsync && e.name === "await" && this.raise( e.start, "Cannot use 'await' as identifier inside an async function", ); break; case "ObjectPattern": case "ArrayPattern": case "RestElement": break; case "ObjectExpression": ((e.type = "ObjectPattern"), r && this.checkPatternErrors(r, !0)); for (var n = 0, a = e.properties; n < a.length; n += 1) { var o = a[n]; (this.toAssignable(o, t), o.type === "RestElement" && (o.argument.type === "ArrayPattern" || o.argument.type === "ObjectPattern") && this.raise(o.argument.start, "Unexpected token")); } break; case "Property": (e.kind !== "init" && this.raise( e.key.start, "Object pattern can't contain getter or setter", ), this.toAssignable(e.value, t)); break; case "ArrayExpression": ((e.type = "ArrayPattern"), r && this.checkPatternErrors(r, !0), this.toAssignableList(e.elements, t)); break; case "SpreadElement": ((e.type = "RestElement"), this.toAssignable(e.argument, t), e.argument.type === "AssignmentPattern" && this.raise( e.argument.start, "Rest elements cannot have a default value", )); break; case "AssignmentExpression": (e.operator !== "=" && this.raise( e.left.end, "Only '=' operator can be used for specifying default value.", ), (e.type = "AssignmentPattern"), delete e.operator, this.toAssignable(e.left, t)); case "AssignmentPattern": break; case "ParenthesizedExpression": this.toAssignable(e.expression, t, r); break; case "ChainExpression": this.raiseRecoverable( e.start, "Optional chaining cannot appear in left-hand side", ); break; case "MemberExpression": if (!t) break; default: this.raise(e.start, "Assigning to rvalue"); } else r && this.checkPatternErrors(r, !0); return e; }), (Kr.toAssignableList = function (e, t) { for (var r = e.length, n = 0; n < r; n++) { var a = e[n]; a && this.toAssignable(a, t); } if (r) { var o = e[r - 1]; this.options.ecmaVersion === 6 && t && o && o.type === "RestElement" && o.argument.type !== "Identifier" && this.unexpected(o.argument.start); } return e; }), (Kr.parseSpread = function (e) { var t = this.startNode(); return ( this.next(), (t.argument = this.parseMaybeAssign(!1, e)), this.finishNode(t, "SpreadElement") ); }), (Kr.parseRestBinding = function () { var e = this.startNode(); return ( this.next(), this.options.ecmaVersion === 6 && this.type !== U.name && this.unexpected(), (e.argument = this.parseBindingAtom()), this.finishNode(e, "RestElement") ); }), (Kr.parseBindingAtom = function () { if (this.options.ecmaVersion >= 6) switch (this.type) { case U.bracketL: var e = this.startNode(); return ( this.next(), (e.elements = this.parseBindingList(U.bracketR, !0, !0)), this.finishNode(e, "ArrayPattern") ); case U.braceL: return this.parseObj(!0); } return this.parseIdent(); }), (Kr.parseBindingList = function (e, t, r) { for (var n = [], a = !0; !this.eat(e); ) if ( (a ? (a = !1) : this.expect(U.comma), t && this.type === U.comma) ) n.push(null); else { if (r && this.afterTrailingComma(e)) break; if (this.type === U.ellipsis) { var o = this.parseRestBinding(); (this.parseBindingListItem(o), n.push(o), this.type === U.comma && this.raise( this.start, "Comma is not permitted after the rest element", ), this.expect(e)); break; } else { var i = this.parseMaybeDefault(this.start, this.startLoc); (this.parseBindingListItem(i), n.push(i)); } } return n; }), (Kr.parseBindingListItem = function (e) { return e; }), (Kr.parseMaybeDefault = function (e, t, r) { if ( ((r = r || this.parseBindingAtom()), this.options.ecmaVersion < 6 || !this.eat(U.eq)) ) return r; var n = this.startNodeAt(e, t); return ( (n.left = r), (n.right = this.parseMaybeAssign()), this.finishNode(n, "AssignmentPattern") ); }), (Kr.checkLVal = function (e, t, r) { switch ((t === void 0 && (t = kp), e.type)) { case "Identifier": (t === Xr && e.name === "let" && this.raiseRecoverable( e.start, "let is disallowed as a lexically bound name", ), this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable( e.start, (t ? "Binding " : "Assigning to ") + e.name + " in strict mode", ), r && (ol(r, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), (r[e.name] = !0)), t !== kp && t !== Bp && this.declareName(e.name, t, e.start)); break; case "ChainExpression": this.raiseRecoverable( e.start, "Optional chaining cannot appear in left-hand side", ); break; case "MemberExpression": t && this.raiseRecoverable(e.start, "Binding member expression"); break; case "ObjectPattern": for (var n = 0, a = e.properties; n < a.length; n += 1) { var o = a[n]; this.checkLVal(o, t, r); } break; case "Property": this.checkLVal(e.value, t, r); break; case "ArrayPattern": for (var i = 0, u = e.elements; i < u.length; i += 1) { var l = u[i]; l && this.checkLVal(l, t, r); } break; case "AssignmentPattern": this.checkLVal(e.left, t, r); break; case "RestElement": this.checkLVal(e.argument, t, r); break; case "ParenthesizedExpression": this.checkLVal(e.expression, t, r); break; default: this.raise(e.start, (t ? "Binding" : "Assigning to") + " rvalue"); } }), (We = Ct.prototype), (We.checkPropClash = function (e, t, r) { if ( !(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !( this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand) ) ) { var n = e.key, a; switch (n.type) { case "Identifier": a = n.name; break; case "Literal": a = String(n.value); break; default: return; } var o = e.kind; if (this.options.ecmaVersion >= 6) { a === "__proto__" && o === "init" && (t.proto && (r ? r.doubleProto < 0 && (r.doubleProto = n.start) : this.raiseRecoverable( n.start, "Redefinition of __proto__ property", )), (t.proto = !0)); return; } a = "$" + a; var i = t[a]; if (i) { var u; (o === "init" ? (u = (this.strict && i.init) || i.get || i.set) : (u = i.init || i[o]), u && this.raiseRecoverable(n.start, "Redefinition of property")); } else i = t[a] = { init: !1, get: !1, set: !1 }; i[o] = !0; } }), (We.parseExpression = function (e, t) { var r = this.start, n = this.startLoc, a = this.parseMaybeAssign(e, t); if (this.type === U.comma) { var o = this.startNodeAt(r, n); for (o.expressions = [a]; this.eat(U.comma); ) o.expressions.push(this.parseMaybeAssign(e, t)); return this.finishNode(o, "SequenceExpression"); } return a; }), (We.parseMaybeAssign = function (e, t, r) { if (this.isContextual("yield")) { if (this.inGenerator) return this.parseYield(e); this.exprAllowed = !1; } var n = !1, a = -1, o = -1; t ? ((a = t.parenthesizedAssign), (o = t.trailingComma), (t.parenthesizedAssign = t.trailingComma = -1)) : ((t = new Ks()), (n = !0)); var i = this.start, u = this.startLoc; (this.type === U.parenL || this.type === U.name) && (this.potentialArrowAt = this.start); var l = this.parseMaybeConditional(e, t); if ((r && (l = r.call(this, l, i, u)), this.type.isAssign)) { var c = this.startNodeAt(i, u); return ( (c.operator = this.value), (c.left = this.type === U.eq ? this.toAssignable(l, !1, t) : l), n || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= c.left.start && (t.shorthandAssign = -1), this.checkLVal(l), this.next(), (c.right = this.parseMaybeAssign(e)), this.finishNode(c, "AssignmentExpression") ); } else n && this.checkExpressionErrors(t, !0); return ( a > -1 && (t.parenthesizedAssign = a), o > -1 && (t.trailingComma = o), l ); }), (We.parseMaybeConditional = function (e, t) { var r = this.start, n = this.startLoc, a = this.parseExprOps(e, t); if (this.checkExpressionErrors(t)) return a; if (this.eat(U.question)) { var o = this.startNodeAt(r, n); return ( (o.test = a), (o.consequent = this.parseMaybeAssign()), this.expect(U.colon), (o.alternate = this.parseMaybeAssign(e)), this.finishNode(o, "ConditionalExpression") ); } return a; }), (We.parseExprOps = function (e, t) { var r = this.start, n = this.startLoc, a = this.parseMaybeUnary(t, !1); return this.checkExpressionErrors(t) || (a.start === r && a.type === "ArrowFunctionExpression") ? a : this.parseExprOp(a, r, n, -1, e); }), (We.parseExprOp = function (e, t, r, n, a) { var o = this.type.binop; if (o != null && (!a || this.type !== U._in) && o > n) { var i = this.type === U.logicalOR || this.type === U.logicalAND, u = this.type === U.coalesce; u && (o = U.logicalAND.binop); var l = this.value; this.next(); var c = this.start, d = this.startLoc, p = this.parseExprOp(this.parseMaybeUnary(null, !1), c, d, o, a), f = this.buildBinary(t, r, e, p, l, i || u); return ( ((i && this.type === U.coalesce) || (u && (this.type === U.logicalOR || this.type === U.logicalAND))) && this.raiseRecoverable( this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses", ), this.parseExprOp(f, t, r, n, a) ); } return e; }), (We.buildBinary = function (e, t, r, n, a, o) { var i = this.startNodeAt(e, t); return ( (i.left = r), (i.operator = a), (i.right = n), this.finishNode(i, o ? "LogicalExpression" : "BinaryExpression") ); }), (We.parseMaybeUnary = function (e, t) { var r = this.start, n = this.startLoc, a; if ( this.isContextual("await") && (this.inAsync || (!this.inFunction && this.options.allowAwaitOutsideFunction)) ) ((a = this.parseAwait()), (t = !0)); else if (this.type.prefix) { var o = this.startNode(), i = this.type === U.incDec; ((o.operator = this.value), (o.prefix = !0), this.next(), (o.argument = this.parseMaybeUnary(null, !0)), this.checkExpressionErrors(e, !0), i ? this.checkLVal(o.argument) : this.strict && o.operator === "delete" && o.argument.type === "Identifier" ? this.raiseRecoverable( o.start, "Deleting local variable in strict mode", ) : (t = !0), (a = this.finishNode( o, i ? "UpdateExpression" : "UnaryExpression", ))); } else { if ( ((a = this.parseExprSubscripts(e)), this.checkExpressionErrors(e)) ) return a; for (; this.type.postfix && !this.canInsertSemicolon(); ) { var u = this.startNodeAt(r, n); ((u.operator = this.value), (u.prefix = !1), (u.argument = a), this.checkLVal(a), this.next(), (a = this.finishNode(u, "UpdateExpression"))); } } return !t && this.eat(U.starstar) ? this.buildBinary( r, n, a, this.parseMaybeUnary(null, !1), "**", !1, ) : a; }), (We.parseExprSubscripts = function (e) { var t = this.start, r = this.startLoc, n = this.parseExprAtom(e); if ( n.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")" ) return n; var a = this.parseSubscripts(n, t, r); return ( e && a.type === "MemberExpression" && (e.parenthesizedAssign >= a.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= a.start && (e.parenthesizedBind = -1)), a ); }), (We.parseSubscripts = function (e, t, r, n) { for ( var a = this.options.ecmaVersion >= 8 && e.type === "Identifier" && e.name === "async" && this.lastTokEnd === e.end && !this.canInsertSemicolon() && e.end - e.start === 5 && this.potentialArrowAt === e.start, o = !1; ; ) { var i = this.parseSubscript(e, t, r, n, a, o); if ( (i.optional && (o = !0), i === e || i.type === "ArrowFunctionExpression") ) { if (o) { var u = this.startNodeAt(t, r); ((u.expression = i), (i = this.finishNode(u, "ChainExpression"))); } return i; } e = i; } }), (We.parseSubscript = function (e, t, r, n, a, o) { var i = this.options.ecmaVersion >= 11, u = i && this.eat(U.questionDot); n && u && this.raise( this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions", ); var l = this.eat(U.bracketL); if ( l || (u && this.type !== U.parenL && this.type !== U.backQuote) || this.eat(U.dot) ) { var c = this.startNodeAt(t, r); ((c.object = e), (c.property = l ? this.parseExpression() : this.parseIdent(this.options.allowReserved !== "never")), (c.computed = !!l), l && this.expect(U.bracketR), i && (c.optional = u), (e = this.finishNode(c, "MemberExpression"))); } else if (!n && this.eat(U.parenL)) { var d = new Ks(), p = this.yieldPos, f = this.awaitPos, h = this.awaitIdentPos; ((this.yieldPos = 0), (this.awaitPos = 0), (this.awaitIdentPos = 0)); var m = this.parseExprList( U.parenR, this.options.ecmaVersion >= 8, !1, d, ); if (a && !u && !this.canInsertSemicolon() && this.eat(U.arrow)) return ( this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise( this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function", ), (this.yieldPos = p), (this.awaitPos = f), (this.awaitIdentPos = h), this.parseArrowExpression(this.startNodeAt(t, r), m, !0) ); (this.checkExpressionErrors(d, !0), (this.yieldPos = p || this.yieldPos), (this.awaitPos = f || this.awaitPos), (this.awaitIdentPos = h || this.awaitIdentPos)); var y = this.startNodeAt(t, r); ((y.callee = e), (y.arguments = m), i && (y.optional = u), (e = this.finishNode(y, "CallExpression"))); } else if (this.type === U.backQuote) { (u || o) && this.raise( this.start, "Optional chaining cannot appear in the tag of tagged template expressions", ); var b = this.startNodeAt(t, r); ((b.tag = e), (b.quasi = this.parseTemplate({ isTagged: !0 })), (e = this.finishNode(b, "TaggedTemplateExpression"))); } return e; }), (We.parseExprAtom = function (e) { this.type === U.slash && this.readRegexp(); var t, r = this.potentialArrowAt === this.start; switch (this.type) { case U._super: return ( this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), (t = this.startNode()), this.next(), this.type === U.parenL && !this.allowDirectSuper && this.raise( t.start, "super() call outside constructor of a subclass", ), this.type !== U.dot && this.type !== U.bracketL && this.type !== U.parenL && this.unexpected(), this.finishNode(t, "Super") ); case U._this: return ( (t = this.startNode()), this.next(), this.finishNode(t, "ThisExpression") ); case U.name: var n = this.start, a = this.startLoc, o = this.containsEsc, i = this.parseIdent(!1); if ( this.options.ecmaVersion >= 8 && !o && i.name === "async" && !this.canInsertSemicolon() && this.eat(U._function) ) return this.parseFunction(this.startNodeAt(n, a), 0, !1, !0); if (r && !this.canInsertSemicolon()) { if (this.eat(U.arrow)) return this.parseArrowExpression( this.startNodeAt(n, a), [i], !1, ); if ( this.options.ecmaVersion >= 8 && i.name === "async" && this.type === U.name && !o ) return ( (i = this.parseIdent(!1)), (this.canInsertSemicolon() || !this.eat(U.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(n, a), [i], !0) ); } return i; case U.regexp: var u = this.value; return ( (t = this.parseLiteral(u.value)), (t.regex = { pattern: u.pattern, flags: u.flags }), t ); case U.num: case U.string: return this.parseLiteral(this.value); case U._null: case U._true: case U._false: return ( (t = this.startNode()), (t.value = this.type === U._null ? null : this.type === U._true), (t.raw = this.type.keyword), this.next(), this.finishNode(t, "Literal") ); case U.parenL: var l = this.start, c = this.parseParenAndDistinguishExpression(r); return ( e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(c) && (e.parenthesizedAssign = l), e.parenthesizedBind < 0 && (e.parenthesizedBind = l)), c ); case U.bracketL: return ( (t = this.startNode()), this.next(), (t.elements = this.parseExprList(U.bracketR, !0, !0, e)), this.finishNode(t, "ArrayExpression") ); case U.braceL: return this.parseObj(!1, e); case U._function: return ( (t = this.startNode()), this.next(), this.parseFunction(t, 0) ); case U._class: return this.parseClass(this.startNode(), !1); case U._new: return this.parseNew(); case U.backQuote: return this.parseTemplate(); case U._import: return this.options.ecmaVersion >= 11 ? this.parseExprImport() : this.unexpected(); default: this.unexpected(); } }), (We.parseExprImport = function () { var e = this.startNode(); this.containsEsc && this.raiseRecoverable( this.start, "Escape sequence in keyword import", ); var t = this.parseIdent(!0); switch (this.type) { case U.parenL: return this.parseDynamicImport(e); case U.dot: return ((e.meta = t), this.parseImportMeta(e)); default: this.unexpected(); } }), (We.parseDynamicImport = function (e) { if ( (this.next(), (e.source = this.parseMaybeAssign()), !this.eat(U.parenR)) ) { var t = this.start; this.eat(U.comma) && this.eat(U.parenR) ? this.raiseRecoverable( t, "Trailing comma is not allowed in import()", ) : this.unexpected(t); } return this.finishNode(e, "ImportExpression"); }), (We.parseImportMeta = function (e) { this.next(); var t = this.containsEsc; return ( (e.property = this.parseIdent(!0)), e.property.name !== "meta" && this.raiseRecoverable( e.property.start, "The only valid meta property for import is 'import.meta'", ), t && this.raiseRecoverable( e.start, "'import.meta' must not contain escaped characters", ), this.options.sourceType !== "module" && this.raiseRecoverable( e.start, "Cannot use 'import.meta' outside a module", ), this.finishNode(e, "MetaProperty") ); }), (We.parseLiteral = function (e) { var t = this.startNode(); return ( (t.value = e), (t.raw = this.input.slice(this.start, this.end)), t.raw.charCodeAt(t.raw.length - 1) === 110 && (t.bigint = t.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(t, "Literal") ); }), (We.parseParenExpression = function () { this.expect(U.parenL); var e = this.parseExpression(); return (this.expect(U.parenR), e); }), (We.parseParenAndDistinguishExpression = function (e) { var t = this.start, r = this.startLoc, n, a = this.options.ecmaVersion >= 8; if (this.options.ecmaVersion >= 6) { this.next(); var o = this.start, i = this.startLoc, u = [], l = !0, c = !1, d = new Ks(), p = this.yieldPos, f = this.awaitPos, h; for (this.yieldPos = 0, this.awaitPos = 0; this.type !== U.parenR; ) if ( (l ? (l = !1) : this.expect(U.comma), a && this.afterTrailingComma(U.parenR, !0)) ) { c = !0; break; } else if (this.type === U.ellipsis) { ((h = this.start), u.push(this.parseParenItem(this.parseRestBinding())), this.type === U.comma && this.raise( this.start, "Comma is not permitted after the rest element", )); break; } else u.push(this.parseMaybeAssign(!1, d, this.parseParenItem)); var m = this.start, y = this.startLoc; if ( (this.expect(U.parenR), e && !this.canInsertSemicolon() && this.eat(U.arrow)) ) return ( this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), (this.yieldPos = p), (this.awaitPos = f), this.parseParenArrowList(t, r, u) ); ((!u.length || c) && this.unexpected(this.lastTokStart), h && this.unexpected(h), this.checkExpressionErrors(d, !0), (this.yieldPos = p || this.yieldPos), (this.awaitPos = f || this.awaitPos), u.length > 1 ? ((n = this.startNodeAt(o, i)), (n.expressions = u), this.finishNodeAt(n, "SequenceExpression", m, y)) : (n = u[0])); } else n = this.parseParenExpression(); if (this.options.preserveParens) { var b = this.startNodeAt(t, r); return ( (b.expression = n), this.finishNode(b, "ParenthesizedExpression") ); } else return n; }), (We.parseParenItem = function (e) { return e; }), (We.parseParenArrowList = function (e, t, r) { return this.parseArrowExpression(this.startNodeAt(e, t), r); }), (sw = []), (We.parseNew = function () { this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new"); var e = this.startNode(), t = this.parseIdent(!0); if (this.options.ecmaVersion >= 6 && this.eat(U.dot)) { e.meta = t; var r = this.containsEsc; return ( (e.property = this.parseIdent(!0)), e.property.name !== "target" && this.raiseRecoverable( e.property.start, "The only valid meta property for new is 'new.target'", ), r && this.raiseRecoverable( e.start, "'new.target' must not contain escaped characters", ), this.inNonArrowFunction() || this.raiseRecoverable( e.start, "'new.target' can only be used in functions", ), this.finishNode(e, "MetaProperty") ); } var n = this.start, a = this.startLoc, o = this.type === U._import; return ( (e.callee = this.parseSubscripts(this.parseExprAtom(), n, a, !0)), o && e.callee.type === "ImportExpression" && this.raise(n, "Cannot use new with import()"), this.eat(U.parenL) ? (e.arguments = this.parseExprList( U.parenR, this.options.ecmaVersion >= 8, !1, )) : (e.arguments = sw), this.finishNode(e, "NewExpression") ); }), (We.parseTemplateElement = function (e) { var t = e.isTagged, r = this.startNode(); return ( this.type === U.invalidTemplate ? (t || this.raiseRecoverable( this.start, "Bad escape sequence in untagged template literal", ), (r.value = { raw: this.value, cooked: null })) : (r.value = { raw: this.input.slice(this.start, this.end).replace( /\r\n?/g, ` `, ), cooked: this.value, }), this.next(), (r.tail = this.type === U.backQuote), this.finishNode(r, "TemplateElement") ); }), (We.parseTemplate = function (e) { e === void 0 && (e = {}); var t = e.isTagged; t === void 0 && (t = !1); var r = this.startNode(); (this.next(), (r.expressions = [])); var n = this.parseTemplateElement({ isTagged: t }); for (r.quasis = [n]; !n.tail; ) (this.type === U.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(U.dollarBraceL), r.expressions.push(this.parseExpression()), this.expect(U.braceR), r.quasis.push((n = this.parseTemplateElement({ isTagged: t })))); return (this.next(), this.finishNode(r, "TemplateLiteral")); }), (We.isAsyncProp = function (e) { return ( !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === U.name || this.type === U.num || this.type === U.string || this.type === U.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === U.star)) && !pr.test(this.input.slice(this.lastTokEnd, this.start)) ); }), (We.parseObj = function (e, t) { var r = this.startNode(), n = !0, a = {}; for (r.properties = [], this.next(); !this.eat(U.braceR); ) { if (n) n = !1; else if ( (this.expect(U.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(U.braceR)) ) break; var o = this.parseProperty(e, t); (e || this.checkPropClash(o, a, t), r.properties.push(o)); } return this.finishNode(r, e ? "ObjectPattern" : "ObjectExpression"); }), (We.parseProperty = function (e, t) { var r = this.startNode(), n, a, o, i; if (this.options.ecmaVersion >= 9 && this.eat(U.ellipsis)) return e ? ((r.argument = this.parseIdent(!1)), this.type === U.comma && this.raise( this.start, "Comma is not permitted after the rest element", ), this.finishNode(r, "RestElement")) : (this.type === U.parenL && t && (t.parenthesizedAssign < 0 && (t.parenthesizedAssign = this.start), t.parenthesizedBind < 0 && (t.parenthesizedBind = this.start)), (r.argument = this.parseMaybeAssign(!1, t)), this.type === U.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(r, "SpreadElement")); this.options.ecmaVersion >= 6 && ((r.method = !1), (r.shorthand = !1), (e || t) && ((o = this.start), (i = this.startLoc)), e || (n = this.eat(U.star))); var u = this.containsEsc; return ( this.parsePropertyName(r), !e && !u && this.options.ecmaVersion >= 8 && !n && this.isAsyncProp(r) ? ((a = !0), (n = this.options.ecmaVersion >= 9 && this.eat(U.star)), this.parsePropertyName(r, t)) : (a = !1), this.parsePropertyValue(r, e, n, a, o, i, t, u), this.finishNode(r, "Property") ); }), (We.parsePropertyValue = function (e, t, r, n, a, o, i, u) { if ( ((r || n) && this.type === U.colon && this.unexpected(), this.eat(U.colon)) ) ((e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, i)), (e.kind = "init")); else if (this.options.ecmaVersion >= 6 && this.type === U.parenL) (t && this.unexpected(), (e.kind = "init"), (e.method = !0), (e.value = this.parseMethod(r, n))); else if ( !t && !u && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== U.comma && this.type !== U.braceR && this.type !== U.eq ) { ((r || n) && this.unexpected(), (e.kind = e.key.name), this.parsePropertyName(e), (e.value = this.parseMethod(!1))); var l = e.kind === "get" ? 0 : 1; if (e.value.params.length !== l) { var c = e.value.start; e.kind === "get" ? this.raiseRecoverable(c, "getter should have no params") : this.raiseRecoverable( c, "setter should have exactly one param", ); } else e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable( e.value.params[0].start, "Setter cannot use rest params", ); } else this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((r || n) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = a), (e.kind = "init"), t ? (e.value = this.parseMaybeDefault(a, o, e.key)) : this.type === U.eq && i ? (i.shorthandAssign < 0 && (i.shorthandAssign = this.start), (e.value = this.parseMaybeDefault(a, o, e.key))) : (e.value = e.key), (e.shorthand = !0)) : this.unexpected(); }), (We.parsePropertyName = function (e) { if (this.options.ecmaVersion >= 6) { if (this.eat(U.bracketL)) return ( (e.computed = !0), (e.key = this.parseMaybeAssign()), this.expect(U.bracketR), e.key ); e.computed = !1; } return (e.key = this.type === U.num || this.type === U.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never")); }), (We.initFunction = function (e) { ((e.id = null), this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1)); }), (We.parseMethod = function (e, t, r) { var n = this.startNode(), a = this.yieldPos, o = this.awaitPos, i = this.awaitIdentPos; return ( this.initFunction(n), this.options.ecmaVersion >= 6 && (n.generator = e), this.options.ecmaVersion >= 8 && (n.async = !!t), (this.yieldPos = 0), (this.awaitPos = 0), (this.awaitIdentPos = 0), this.enterScope(Pp(t, n.generator) | Np | (r ? jp : 0)), this.expect(U.parenL), (n.params = this.parseBindingList( U.parenR, !1, this.options.ecmaVersion >= 8, )), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(n, !1, !0), (this.yieldPos = a), (this.awaitPos = o), (this.awaitIdentPos = i), this.finishNode(n, "FunctionExpression") ); }), (We.parseArrowExpression = function (e, t, r) { var n = this.yieldPos, a = this.awaitPos, o = this.awaitIdentPos; return ( this.enterScope(Pp(r, !1) | Fp), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!r), (this.yieldPos = 0), (this.awaitPos = 0), (this.awaitIdentPos = 0), (e.params = this.toAssignableList(t, !0)), this.parseFunctionBody(e, !0, !1), (this.yieldPos = n), (this.awaitPos = a), (this.awaitIdentPos = o), this.finishNode(e, "ArrowFunctionExpression") ); }), (We.parseFunctionBody = function (e, t, r) { var n = t && this.type !== U.braceL, a = this.strict, o = !1; if (n) ((e.body = this.parseMaybeAssign()), (e.expression = !0), this.checkParams(e, !1)); else { var i = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params); (!a || i) && ((o = this.strictDirective(this.end)), o && i && this.raiseRecoverable( e.start, "Illegal 'use strict' directive in function with non-simple parameter list", )); var u = this.labels; ((this.labels = []), o && (this.strict = !0), this.checkParams( e, !a && !o && !t && !r && this.isSimpleParamList(e.params), ), this.strict && e.id && this.checkLVal(e.id, Bp), (e.body = this.parseBlock(!1, void 0, o && !a)), (e.expression = !1), this.adaptDirectivePrologue(e.body.body), (this.labels = u)); } this.exitScope(); }), (We.isSimpleParamList = function (e) { for (var t = 0, r = e; t < r.length; t += 1) { var n = r[t]; if (n.type !== "Identifier") return !1; } return !0; }), (We.checkParams = function (e, t) { for (var r = {}, n = 0, a = e.params; n < a.length; n += 1) { var o = a[n]; this.checkLVal(o, ru, t ? null : r); } }), (We.parseExprList = function (e, t, r, n) { for (var a = [], o = !0; !this.eat(e); ) { if (o) o = !1; else if ((this.expect(U.comma), t && this.afterTrailingComma(e))) break; var i = void 0; (r && this.type === U.comma ? (i = null) : this.type === U.ellipsis ? ((i = this.parseSpread(n)), n && this.type === U.comma && n.trailingComma < 0 && (n.trailingComma = this.start)) : (i = this.parseMaybeAssign(!1, n)), a.push(i)); } return a; }), (We.checkUnreserved = function (e) { var t = e.start, r = e.end, n = e.name; if ( (this.inGenerator && n === "yield" && this.raiseRecoverable( t, "Cannot use 'yield' as identifier inside a generator", ), this.inAsync && n === "await" && this.raiseRecoverable( t, "Cannot use 'await' as identifier inside an async function", ), this.keywords.test(n) && this.raise(t, "Unexpected keyword '" + n + "'"), !( this.options.ecmaVersion < 6 && this.input.slice(t, r).indexOf("\\") !== -1 )) ) { var a = this.strict ? this.reservedWordsStrict : this.reservedWords; a.test(n) && (!this.inAsync && n === "await" && this.raiseRecoverable( t, "Cannot use keyword 'await' outside an async function", ), this.raiseRecoverable(t, "The keyword '" + n + "' is reserved")); } }), (We.parseIdent = function (e, t) { var r = this.startNode(); return ( this.type === U.name ? (r.name = this.value) : this.type.keyword ? ((r.name = this.type.keyword), (r.name === "class" || r.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop()) : this.unexpected(), this.next(!!e), this.finishNode(r, "Identifier"), e || (this.checkUnreserved(r), r.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = r.start)), r ); }), (We.parseYield = function (e) { this.yieldPos || (this.yieldPos = this.start); var t = this.startNode(); return ( this.next(), this.type === U.semi || this.canInsertSemicolon() || (this.type !== U.star && !this.type.startsExpr) ? ((t.delegate = !1), (t.argument = null)) : ((t.delegate = this.eat(U.star)), (t.argument = this.parseMaybeAssign(e))), this.finishNode(t, "YieldExpression") ); }), (We.parseAwait = function () { this.awaitPos || (this.awaitPos = this.start); var e = this.startNode(); return ( this.next(), (e.argument = this.parseMaybeUnary(null, !1)), this.finishNode(e, "AwaitExpression") ); }), (di = Ct.prototype), (di.raise = function (e, t) { var r = xy(this.input, e); t += " (" + r.line + ":" + r.column + ")"; var n = new SyntaxError(t); throw ((n.pos = e), (n.loc = r), (n.raisedAt = this.pos), n); }), (di.raiseRecoverable = di.raise), (di.curPosition = function () { if (this.options.locations) return new ma(this.curLine, this.pos - this.lineStart); }), (bn = Ct.prototype), (uw = function (e) { ((this.flags = e), (this.var = []), (this.lexical = []), (this.functions = [])); }), (bn.enterScope = function (e) { this.scopeStack.push(new uw(e)); }), (bn.exitScope = function () { this.scopeStack.pop(); }), (bn.treatFunctionsAsVarInScope = function (e) { return e.flags & so || (!this.inModule && e.flags & Qa); }), (bn.declareName = function (e, t, r) { var n = !1; if (t === Xr) { var a = this.currentScope(); ((n = a.lexical.indexOf(e) > -1 || a.functions.indexOf(e) > -1 || a.var.indexOf(e) > -1), a.lexical.push(e), this.inModule && a.flags & Qa && delete this.undefinedExports[e]); } else if (t === Mp) { var o = this.currentScope(); o.lexical.push(e); } else if (t === qp) { var i = this.currentScope(); (this.treatFunctionsAsVar ? (n = i.lexical.indexOf(e) > -1) : (n = i.lexical.indexOf(e) > -1 || i.var.indexOf(e) > -1), i.functions.push(e)); } else for (var u = this.scopeStack.length - 1; u >= 0; --u) { var l = this.scopeStack[u]; if ( (l.lexical.indexOf(e) > -1 && !(l.flags & Ip && l.lexical[0] === e)) || (!this.treatFunctionsAsVarInScope(l) && l.functions.indexOf(e) > -1) ) { n = !0; break; } if ( (l.var.push(e), this.inModule && l.flags & Qa && delete this.undefinedExports[e], l.flags & tu) ) break; } n && this.raiseRecoverable( r, "Identifier '" + e + "' has already been declared", ); }), (bn.checkLocalExport = function (e) { this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e); }), (bn.currentScope = function () { return this.scopeStack[this.scopeStack.length - 1]; }), (bn.currentVarScope = function () { for (var e = this.scopeStack.length - 1; ; e--) { var t = this.scopeStack[e]; if (t.flags & tu) return t; } }), (bn.currentThisScope = function () { for (var e = this.scopeStack.length - 1; ; e--) { var t = this.scopeStack[e]; if (t.flags & tu && !(t.flags & Fp)) return t; } }), (Si = function (e, t, r) { ((this.type = ""), (this.start = t), (this.end = 0), e.options.locations && (this.loc = new mo(e, r)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [t, 0])); }), (pi = Ct.prototype), (pi.startNode = function () { return new Si(this, this.start, this.startLoc); }), (pi.startNodeAt = function (e, t) { return new Si(this, e, t); }), (pi.finishNode = function (e, t) { return XC.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc); }), (pi.finishNodeAt = function (e, t, r, n) { return XC.call(this, e, t, r, n); }), (_r = function (e, t, r, n, a) { ((this.token = e), (this.isExpr = !!t), (this.preserveSpace = !!r), (this.override = n), (this.generator = !!a)); }), (Ot = { b_stat: new _r("{", !1), b_expr: new _r("{", !0), b_tmpl: new _r("${", !1), p_stat: new _r("(", !1), p_expr: new _r("(", !0), q_tmpl: new _r("`", !0, !0, function (e) { return e.tryReadTemplateToken(); }), f_stat: new _r("function", !1), f_expr: new _r("function", !0), f_expr_gen: new _r("function", !0, !1, null, !0), f_gen: new _r("function", !1, !1, null, !0), }), (fi = Ct.prototype), (fi.initialContext = function () { return [Ot.b_stat]; }), (fi.braceIsBlock = function (e) { var t = this.curContext(); return t === Ot.f_expr || t === Ot.f_stat ? !0 : e === U.colon && (t === Ot.b_stat || t === Ot.b_expr) ? !t.isExpr : e === U._return || (e === U.name && this.exprAllowed) ? pr.test(this.input.slice(this.lastTokEnd, this.start)) : e === U._else || e === U.semi || e === U.eof || e === U.parenR || e === U.arrow ? !0 : e === U.braceL ? t === Ot.b_stat : e === U._var || e === U._const || e === U.name ? !1 : !this.exprAllowed; }), (fi.inGeneratorContext = function () { for (var e = this.context.length - 1; e >= 1; e--) { var t = this.context[e]; if (t.token === "function") return t.generator; } return !1; }), (fi.updateContext = function (e) { var t, r = this.type; r.keyword && e === U.dot ? (this.exprAllowed = !1) : (t = r.updateContext) ? t.call(this, e) : (this.exprAllowed = r.beforeExpr); }), (U.parenR.updateContext = U.braceR.updateContext = function () { if (this.context.length === 1) { this.exprAllowed = !0; return; } var e = this.context.pop(); (e === Ot.b_stat && this.curContext().token === "function" && (e = this.context.pop()), (this.exprAllowed = !e.isExpr)); }), (U.braceL.updateContext = function (e) { (this.context.push(this.braceIsBlock(e) ? Ot.b_stat : Ot.b_expr), (this.exprAllowed = !0)); }), (U.dollarBraceL.updateContext = function () { (this.context.push(Ot.b_tmpl), (this.exprAllowed = !0)); }), (U.parenL.updateContext = function (e) { var t = e === U._if || e === U._for || e === U._with || e === U._while; (this.context.push(t ? Ot.p_stat : Ot.p_expr), (this.exprAllowed = !0)); }), (U.incDec.updateContext = function () {}), (U._function.updateContext = U._class.updateContext = function (e) { (e.beforeExpr && e !== U.semi && e !== U._else && !( e === U._return && pr.test(this.input.slice(this.lastTokEnd, this.start)) ) && !( (e === U.colon || e === U.braceL) && this.curContext() === Ot.b_stat ) ? this.context.push(Ot.f_expr) : this.context.push(Ot.f_stat), (this.exprAllowed = !1)); }), (U.backQuote.updateContext = function () { (this.curContext() === Ot.q_tmpl ? this.context.pop() : this.context.push(Ot.q_tmpl), (this.exprAllowed = !1)); }), (U.star.updateContext = function (e) { if (e === U._function) { var t = this.context.length - 1; this.context[t] === Ot.f_expr ? (this.context[t] = Ot.f_expr_gen) : (this.context[t] = Ot.f_gen); } this.exprAllowed = !0; }), (U.name.updateContext = function (e) { var t = !1; (this.options.ecmaVersion >= 6 && e !== U.dot && ((this.value === "of" && !this.exprAllowed) || (this.value === "yield" && this.inGeneratorContext())) && (t = !0), (this.exprAllowed = t)); }), ($p = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS"), (Up = $p + " Extended_Pictographic"), (lw = Up), (sB = { 9: $p, 10: Up, 11: lw }), (Oy = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu"), (Hp = "Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb"), (Vp = Hp + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd"), (cw = Vp + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"), (uB = { 9: Hp, 10: Vp, 11: cw }), (Dy = {}), Rp(9), Rp(10), Rp(11), (Ie = Ct.prototype), (Yr = function (e) { ((this.parser = e), (this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : "")), (this.unicodeProperties = Dy[e.options.ecmaVersion >= 11 ? 11 : e.options.ecmaVersion]), (this.source = ""), (this.flags = ""), (this.start = 0), (this.switchU = !1), (this.switchN = !1), (this.pos = 0), (this.lastIntValue = 0), (this.lastStringValue = ""), (this.lastAssertionIsQuantifiable = !1), (this.numCapturingParens = 0), (this.maxBackReference = 0), (this.groupNames = []), (this.backReferenceNames = [])); }), (Yr.prototype.reset = function (e, t, r) { var n = r.indexOf("u") !== -1; ((this.start = e | 0), (this.source = t + ""), (this.flags = r), (this.switchU = n && this.parser.options.ecmaVersion >= 6), (this.switchN = n && this.parser.options.ecmaVersion >= 9)); }), (Yr.prototype.raise = function (e) { this.parser.raiseRecoverable( this.start, "Invalid regular expression: /" + this.source + "/: " + e, ); }), (Yr.prototype.at = function (e, t) { t === void 0 && (t = !1); var r = this.source, n = r.length; if (e >= n) return -1; var a = r.charCodeAt(e); if (!(t || this.switchU) || a <= 55295 || a >= 57344 || e + 1 >= n) return a; var o = r.charCodeAt(e + 1); return o >= 56320 && o <= 57343 ? (a << 10) + o - 56613888 : a; }), (Yr.prototype.nextIndex = function (e, t) { t === void 0 && (t = !1); var r = this.source, n = r.length; if (e >= n) return n; var a = r.charCodeAt(e), o; return !(t || this.switchU) || a <= 55295 || a >= 57344 || e + 1 >= n || (o = r.charCodeAt(e + 1)) < 56320 || o > 57343 ? e + 1 : e + 2; }), (Yr.prototype.current = function (e) { return (e === void 0 && (e = !1), this.at(this.pos, e)); }), (Yr.prototype.lookahead = function (e) { return ( e === void 0 && (e = !1), this.at(this.nextIndex(this.pos, e), e) ); }), (Yr.prototype.advance = function (e) { (e === void 0 && (e = !1), (this.pos = this.nextIndex(this.pos, e))); }), (Yr.prototype.eat = function (e, t) { return ( t === void 0 && (t = !1), this.current(t) === e ? (this.advance(t), !0) : !1 ); }), (Ie.validateRegExpFlags = function (e) { for (var t = e.validFlags, r = e.flags, n = 0; n < r.length; n++) { var a = r.charAt(n); (t.indexOf(a) === -1 && this.raise(e.start, "Invalid regular expression flag"), r.indexOf(a, n + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag")); } }), (Ie.validateRegExpPattern = function (e) { (this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && e.groupNames.length > 0 && ((e.switchN = !0), this.regexp_pattern(e))); }), (Ie.regexp_pattern = function (e) { ((e.pos = 0), (e.lastIntValue = 0), (e.lastStringValue = ""), (e.lastAssertionIsQuantifiable = !1), (e.numCapturingParens = 0), (e.maxBackReference = 0), (e.groupNames.length = 0), (e.backReferenceNames.length = 0), this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(41) && e.raise("Unmatched ')'"), (e.eat(93) || e.eat(125)) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape")); for (var t = 0, r = e.backReferenceNames; t < r.length; t += 1) { var n = r[t]; e.groupNames.indexOf(n) === -1 && e.raise("Invalid named capture referenced"); } }), (Ie.regexp_disjunction = function (e) { for (this.regexp_alternative(e); e.eat(124); ) this.regexp_alternative(e); (this.regexp_eatQuantifier(e, !0) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets")); }), (Ie.regexp_alternative = function (e) { for (; e.pos < e.source.length && this.regexp_eatTerm(e); ); }), (Ie.regexp_eatTerm = function (e) { return this.regexp_eatAssertion(e) ? (e.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e) && e.switchU && e.raise("Invalid quantifier"), !0) : ( e.switchU ? this.regexp_eatAtom(e) : this.regexp_eatExtendedAtom(e) ) ? (this.regexp_eatQuantifier(e), !0) : !1; }), (Ie.regexp_eatAssertion = function (e) { var t = e.pos; if (((e.lastAssertionIsQuantifiable = !1), e.eat(94) || e.eat(36))) return !0; if (e.eat(92)) { if (e.eat(66) || e.eat(98)) return !0; e.pos = t; } if (e.eat(40) && e.eat(63)) { var r = !1; if ( (this.options.ecmaVersion >= 9 && (r = e.eat(60)), e.eat(61) || e.eat(33)) ) return ( this.regexp_disjunction(e), e.eat(41) || e.raise("Unterminated group"), (e.lastAssertionIsQuantifiable = !r), !0 ); } return ((e.pos = t), !1); }), (Ie.regexp_eatQuantifier = function (e, t) { return ( t === void 0 && (t = !1), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), !0) : !1 ); }), (Ie.regexp_eatQuantifierPrefix = function (e, t) { return ( e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t) ); }), (Ie.regexp_eatBracedQuantifier = function (e, t) { var r = e.pos; if (e.eat(123)) { var n = 0, a = -1; if ( this.regexp_eatDecimalDigits(e) && ((n = e.lastIntValue), e.eat(44) && this.regexp_eatDecimalDigits(e) && (a = e.lastIntValue), e.eat(125)) ) return ( a !== -1 && a < n && !t && e.raise("numbers out of order in {} quantifier"), !0 ); (e.switchU && !t && e.raise("Incomplete quantifier"), (e.pos = r)); } return !1; }), (Ie.regexp_eatAtom = function (e) { return ( this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e) ); }), (Ie.regexp_eatReverseSolidusAtomEscape = function (e) { var t = e.pos; if (e.eat(92)) { if (this.regexp_eatAtomEscape(e)) return !0; e.pos = t; } return !1; }), (Ie.regexp_eatUncapturingGroup = function (e) { var t = e.pos; if (e.eat(40)) { if (e.eat(63) && e.eat(58)) { if ((this.regexp_disjunction(e), e.eat(41))) return !0; e.raise("Unterminated group"); } e.pos = t; } return !1; }), (Ie.regexp_eatCapturingGroup = function (e) { if (e.eat(40)) { if ( (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(e) : e.current() === 63 && e.raise("Invalid group"), this.regexp_disjunction(e), e.eat(41)) ) return ((e.numCapturingParens += 1), !0); e.raise("Unterminated group"); } return !1; }), (Ie.regexp_eatExtendedAtom = function (e) { return ( e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e) || this.regexp_eatInvalidBracedQuantifier(e) || this.regexp_eatExtendedPatternCharacter(e) ); }), (Ie.regexp_eatInvalidBracedQuantifier = function (e) { return ( this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1 ); }), (Ie.regexp_eatSyntaxCharacter = function (e) { var t = e.current(); return KC(t) ? ((e.lastIntValue = t), e.advance(), !0) : !1; }), (Ie.regexp_eatPatternCharacters = function (e) { for (var t = e.pos, r = 0; (r = e.current()) !== -1 && !KC(r); ) e.advance(); return e.pos !== t; }), (Ie.regexp_eatExtendedPatternCharacter = function (e) { var t = e.current(); return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), !0) : !1; }), (Ie.regexp_groupSpecifier = function (e) { if (e.eat(63)) { if (this.regexp_eatGroupName(e)) { (e.groupNames.indexOf(e.lastStringValue) !== -1 && e.raise("Duplicate capture group name"), e.groupNames.push(e.lastStringValue)); return; } e.raise("Invalid group"); } }), (Ie.regexp_eatGroupName = function (e) { if (((e.lastStringValue = ""), e.eat(60))) { if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62)) return !0; e.raise("Invalid capture group name"); } return !1; }), (Ie.regexp_eatRegExpIdentifierName = function (e) { if ( ((e.lastStringValue = ""), this.regexp_eatRegExpIdentifierStart(e)) ) { for ( e.lastStringValue += Ys(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); ) e.lastStringValue += Ys(e.lastIntValue); return !0; } return !1; }), (Ie.regexp_eatRegExpIdentifierStart = function (e) { var t = e.pos, r = this.options.ecmaVersion >= 11, n = e.current(r); return ( e.advance(r), n === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (n = e.lastIntValue), eee(n) ? ((e.lastIntValue = n), !0) : ((e.pos = t), !1) ); }), (Ie.regexp_eatRegExpIdentifierPart = function (e) { var t = e.pos, r = this.options.ecmaVersion >= 11, n = e.current(r); return ( e.advance(r), n === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (n = e.lastIntValue), tee(n) ? ((e.lastIntValue = n), !0) : ((e.pos = t), !1) ); }), (Ie.regexp_eatAtomEscape = function (e) { return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || (e.switchN && this.regexp_eatKGroupName(e)) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1); }), (Ie.regexp_eatBackReference = function (e) { var t = e.pos; if (this.regexp_eatDecimalEscape(e)) { var r = e.lastIntValue; if (e.switchU) return (r > e.maxBackReference && (e.maxBackReference = r), !0); if (r <= e.numCapturingParens) return !0; e.pos = t; } return !1; }), (Ie.regexp_eatKGroupName = function (e) { if (e.eat(107)) { if (this.regexp_eatGroupName(e)) return (e.backReferenceNames.push(e.lastStringValue), !0); e.raise("Invalid named reference"); } return !1; }), (Ie.regexp_eatCharacterEscape = function (e) { return ( this.regexp_eatControlEscape(e) || this.regexp_eatCControlLetter(e) || this.regexp_eatZero(e) || this.regexp_eatHexEscapeSequence(e) || this.regexp_eatRegExpUnicodeEscapeSequence(e, !1) || (!e.switchU && this.regexp_eatLegacyOctalEscapeSequence(e)) || this.regexp_eatIdentityEscape(e) ); }), (Ie.regexp_eatCControlLetter = function (e) { var t = e.pos; if (e.eat(99)) { if (this.regexp_eatControlLetter(e)) return !0; e.pos = t; } return !1; }), (Ie.regexp_eatZero = function (e) { return e.current() === 48 && !il(e.lookahead()) ? ((e.lastIntValue = 0), e.advance(), !0) : !1; }), (Ie.regexp_eatControlEscape = function (e) { var t = e.current(); return t === 116 ? ((e.lastIntValue = 9), e.advance(), !0) : t === 110 ? ((e.lastIntValue = 10), e.advance(), !0) : t === 118 ? ((e.lastIntValue = 11), e.advance(), !0) : t === 102 ? ((e.lastIntValue = 12), e.advance(), !0) : t === 114 ? ((e.lastIntValue = 13), e.advance(), !0) : !1; }), (Ie.regexp_eatControlLetter = function (e) { var t = e.current(); return tB(t) ? ((e.lastIntValue = t % 32), e.advance(), !0) : !1; }), (Ie.regexp_eatRegExpUnicodeEscapeSequence = function (e, t) { t === void 0 && (t = !1); var r = e.pos, n = t || e.switchU; if (e.eat(117)) { if (this.regexp_eatFixedHexDigits(e, 4)) { var a = e.lastIntValue; if (n && a >= 55296 && a <= 56319) { var o = e.pos; if ( e.eat(92) && e.eat(117) && this.regexp_eatFixedHexDigits(e, 4) ) { var i = e.lastIntValue; if (i >= 56320 && i <= 57343) return ( (e.lastIntValue = (a - 55296) * 1024 + (i - 56320) + 65536), !0 ); } ((e.pos = o), (e.lastIntValue = a)); } return !0; } if ( n && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && ree(e.lastIntValue) ) return !0; (n && e.raise("Invalid unicode escape"), (e.pos = r)); } return !1; }), (Ie.regexp_eatIdentityEscape = function (e) { if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? !0 : e.eat(47) ? ((e.lastIntValue = 47), !0) : !1; var t = e.current(); return t !== 99 && (!e.switchN || t !== 107) ? ((e.lastIntValue = t), e.advance(), !0) : !1; }), (Ie.regexp_eatDecimalEscape = function (e) { e.lastIntValue = 0; var t = e.current(); if (t >= 49 && t <= 57) { do ((e.lastIntValue = 10 * e.lastIntValue + (t - 48)), e.advance()); while ((t = e.current()) >= 48 && t <= 57); return !0; } return !1; }), (Ie.regexp_eatCharacterClassEscape = function (e) { var t = e.current(); if (nee(t)) return ((e.lastIntValue = -1), e.advance(), !0); if ( e.switchU && this.options.ecmaVersion >= 9 && (t === 80 || t === 112) ) { if ( ((e.lastIntValue = -1), e.advance(), e.eat(123) && this.regexp_eatUnicodePropertyValueExpression(e) && e.eat(125)) ) return !0; e.raise("Invalid property name"); } return !1; }), (Ie.regexp_eatUnicodePropertyValueExpression = function (e) { var t = e.pos; if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) { var r = e.lastStringValue; if (this.regexp_eatUnicodePropertyValue(e)) { var n = e.lastStringValue; return ( this.regexp_validateUnicodePropertyNameAndValue(e, r, n), !0 ); } } if (((e.pos = t), this.regexp_eatLoneUnicodePropertyNameOrValue(e))) { var a = e.lastStringValue; return (this.regexp_validateUnicodePropertyNameOrValue(e, a), !0); } return !1; }), (Ie.regexp_validateUnicodePropertyNameAndValue = function (e, t, r) { (ol(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(r) || e.raise("Invalid property value")); }), (Ie.regexp_validateUnicodePropertyNameOrValue = function (e, t) { e.unicodeProperties.binary.test(t) || e.raise("Invalid property name"); }), (Ie.regexp_eatUnicodePropertyName = function (e) { var t = 0; for (e.lastStringValue = ""; rB((t = e.current())); ) ((e.lastStringValue += Ys(t)), e.advance()); return e.lastStringValue !== ""; }), (Ie.regexp_eatUnicodePropertyValue = function (e) { var t = 0; for (e.lastStringValue = ""; aee((t = e.current())); ) ((e.lastStringValue += Ys(t)), e.advance()); return e.lastStringValue !== ""; }), (Ie.regexp_eatLoneUnicodePropertyNameOrValue = function (e) { return this.regexp_eatUnicodePropertyValue(e); }), (Ie.regexp_eatCharacterClass = function (e) { if (e.eat(91)) { if ((e.eat(94), this.regexp_classRanges(e), e.eat(93))) return !0; e.raise("Unterminated character class"); } return !1; }), (Ie.regexp_classRanges = function (e) { for (; this.regexp_eatClassAtom(e); ) { var t = e.lastIntValue; if (e.eat(45) && this.regexp_eatClassAtom(e)) { var r = e.lastIntValue; (e.switchU && (t === -1 || r === -1) && e.raise("Invalid character class"), t !== -1 && r !== -1 && t > r && e.raise("Range out of order in character class")); } } }), (Ie.regexp_eatClassAtom = function (e) { var t = e.pos; if (e.eat(92)) { if (this.regexp_eatClassEscape(e)) return !0; if (e.switchU) { var r = e.current(); ((r === 99 || ZC(r)) && e.raise("Invalid class escape"), e.raise("Invalid escape")); } e.pos = t; } var n = e.current(); return n !== 93 ? ((e.lastIntValue = n), e.advance(), !0) : !1; }), (Ie.regexp_eatClassEscape = function (e) { var t = e.pos; if (e.eat(98)) return ((e.lastIntValue = 8), !0); if (e.switchU && e.eat(45)) return ((e.lastIntValue = 45), !0); if (!e.switchU && e.eat(99)) { if (this.regexp_eatClassControlLetter(e)) return !0; e.pos = t; } return ( this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) ); }), (Ie.regexp_eatClassControlLetter = function (e) { var t = e.current(); return il(t) || t === 95 ? ((e.lastIntValue = t % 32), e.advance(), !0) : !1; }), (Ie.regexp_eatHexEscapeSequence = function (e) { var t = e.pos; if (e.eat(120)) { if (this.regexp_eatFixedHexDigits(e, 2)) return !0; (e.switchU && e.raise("Invalid escape"), (e.pos = t)); } return !1; }), (Ie.regexp_eatDecimalDigits = function (e) { var t = e.pos, r = 0; for (e.lastIntValue = 0; il((r = e.current())); ) ((e.lastIntValue = 10 * e.lastIntValue + (r - 48)), e.advance()); return e.pos !== t; }), (Ie.regexp_eatHexDigits = function (e) { var t = e.pos, r = 0; for (e.lastIntValue = 0; YC((r = e.current())); ) ((e.lastIntValue = 16 * e.lastIntValue + QC(r)), e.advance()); return e.pos !== t; }), (Ie.regexp_eatLegacyOctalEscapeSequence = function (e) { if (this.regexp_eatOctalDigit(e)) { var t = e.lastIntValue; if (this.regexp_eatOctalDigit(e)) { var r = e.lastIntValue; t <= 3 && this.regexp_eatOctalDigit(e) ? (e.lastIntValue = t * 64 + r * 8 + e.lastIntValue) : (e.lastIntValue = t * 8 + r); } else e.lastIntValue = t; return !0; } return !1; }), (Ie.regexp_eatOctalDigit = function (e) { var t = e.current(); return ZC(t) ? ((e.lastIntValue = t - 48), e.advance(), !0) : ((e.lastIntValue = 0), !1); }), (Ie.regexp_eatFixedHexDigits = function (e, t) { var r = e.pos; e.lastIntValue = 0; for (var n = 0; n < t; ++n) { var a = e.current(); if (!YC(a)) return ((e.pos = r), !1); ((e.lastIntValue = 16 * e.lastIntValue + QC(a)), e.advance()); } return !0; }), (xi = function (e) { ((this.type = e.type), (this.value = e.value), (this.start = e.start), (this.end = e.end), e.options.locations && (this.loc = new mo(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end])); }), (Ye = Ct.prototype), (Ye.next = function (e) { (!e && this.type.keyword && this.containsEsc && this.raiseRecoverable( this.start, "Escape sequence in keyword " + this.type.keyword, ), this.options.onToken && this.options.onToken(new xi(this)), (this.lastTokEnd = this.end), (this.lastTokStart = this.start), (this.lastTokEndLoc = this.endLoc), (this.lastTokStartLoc = this.startLoc), this.nextToken()); }), (Ye.getToken = function () { return (this.next(), new xi(this)); }), typeof Symbol < "u" && (Ye[Symbol.iterator] = function () { var e = this; return { next: function () { var t = e.getToken(); return { done: t.type === U.eof, value: t }; }, }; }), (Ye.curContext = function () { return this.context[this.context.length - 1]; }), (Ye.nextToken = function () { var e = this.curContext(); if ( ((!e || !e.preserveSpace) && this.skipSpace(), (this.start = this.pos), this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length) ) return this.finishToken(U.eof); if (e.override) return e.override(this); this.readToken(this.fullCharCodeAtPos()); }), (Ye.readToken = function (e) { return wn(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e); }), (Ye.fullCharCodeAtPos = function () { var e = this.input.charCodeAt(this.pos); if (e <= 55295 || e >= 57344) return e; var t = this.input.charCodeAt(this.pos + 1); return (e << 10) + t - 56613888; }), (Ye.skipBlockComment = function () { var e = this.options.onComment && this.curPosition(), t = this.pos, r = this.input.indexOf("*/", (this.pos += 2)); if ( (r === -1 && this.raise(this.pos - 2, "Unterminated comment"), (this.pos = r + 2), this.options.locations) ) { _a.lastIndex = t; for (var n; (n = _a.exec(this.input)) && n.index < this.pos; ) (++this.curLine, (this.lineStart = n.index + n[0].length)); } this.options.onComment && this.options.onComment( !0, this.input.slice(t + 2, r), t, this.pos, e, this.curPosition(), ); }), (Ye.skipLineComment = function (e) { for ( var t = this.pos, r = this.options.onComment && this.curPosition(), n = this.input.charCodeAt((this.pos += e)); this.pos < this.input.length && !io(n); ) n = this.input.charCodeAt(++this.pos); this.options.onComment && this.options.onComment( !1, this.input.slice(t + e, this.pos), t, this.pos, r, this.curPosition(), ); }), (Ye.skipSpace = function () { e: for (; this.pos < this.input.length; ) { var e = this.input.charCodeAt(this.pos); switch (e) { case 32: case 160: ++this.pos; break; case 13: this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos; case 10: case 8232: case 8233: (++this.pos, this.options.locations && (++this.curLine, (this.lineStart = this.pos))); break; case 47: switch (this.input.charCodeAt(this.pos + 1)) { case 42: this.skipBlockComment(); break; case 47: this.skipLineComment(2); break; default: break e; } break; default: if ( (e > 8 && e < 14) || (e >= 5760 && sl.test(String.fromCharCode(e))) ) ++this.pos; else break e; } } }), (Ye.finishToken = function (e, t) { ((this.end = this.pos), this.options.locations && (this.endLoc = this.curPosition())); var r = this.type; ((this.type = e), (this.value = t), this.updateContext(r)); }), (Ye.readToken_dot = function () { var e = this.input.charCodeAt(this.pos + 1); if (e >= 48 && e <= 57) return this.readNumber(!0); var t = this.input.charCodeAt(this.pos + 2); return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? ((this.pos += 3), this.finishToken(U.ellipsis)) : (++this.pos, this.finishToken(U.dot)); }), (Ye.readToken_slash = function () { var e = this.input.charCodeAt(this.pos + 1); return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(U.assign, 2) : this.finishOp(U.slash, 1); }), (Ye.readToken_mult_modulo_exp = function (e) { var t = this.input.charCodeAt(this.pos + 1), r = 1, n = e === 42 ? U.star : U.modulo; return ( this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++r, (n = U.starstar), (t = this.input.charCodeAt(this.pos + 2))), t === 61 ? this.finishOp(U.assign, r + 1) : this.finishOp(n, r) ); }), (Ye.readToken_pipe_amp = function (e) { var t = this.input.charCodeAt(this.pos + 1); if (t === e) { if (this.options.ecmaVersion >= 12) { var r = this.input.charCodeAt(this.pos + 2); if (r === 61) return this.finishOp(U.assign, 3); } return this.finishOp(e === 124 ? U.logicalOR : U.logicalAND, 2); } return t === 61 ? this.finishOp(U.assign, 2) : this.finishOp(e === 124 ? U.bitwiseOR : U.bitwiseAND, 1); }), (Ye.readToken_caret = function () { var e = this.input.charCodeAt(this.pos + 1); return e === 61 ? this.finishOp(U.assign, 2) : this.finishOp(U.bitwiseXOR, 1); }), (Ye.readToken_plus_min = function (e) { var t = this.input.charCodeAt(this.pos + 1); return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || pr.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(U.incDec, 2) : t === 61 ? this.finishOp(U.assign, 2) : this.finishOp(U.plusMin, 1); }), (Ye.readToken_lt_gt = function (e) { var t = this.input.charCodeAt(this.pos + 1), r = 1; return t === e ? ((r = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2), this.input.charCodeAt(this.pos + r) === 61 ? this.finishOp(U.assign, r + 1) : this.finishOp(U.bitShift, r)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (r = 2), this.finishOp(U.relational, r)); }), (Ye.readToken_eq_excl = function (e) { var t = this.input.charCodeAt(this.pos + 1); return t === 61 ? this.finishOp( U.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2, ) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? ((this.pos += 2), this.finishToken(U.arrow)) : this.finishOp(e === 61 ? U.eq : U.prefix, 1); }), (Ye.readToken_question = function () { var e = this.options.ecmaVersion; if (e >= 11) { var t = this.input.charCodeAt(this.pos + 1); if (t === 46) { var r = this.input.charCodeAt(this.pos + 2); if (r < 48 || r > 57) return this.finishOp(U.questionDot, 2); } if (t === 63) { if (e >= 12) { var n = this.input.charCodeAt(this.pos + 2); if (n === 61) return this.finishOp(U.assign, 3); } return this.finishOp(U.coalesce, 2); } } return this.finishOp(U.question, 1); }), (Ye.getTokenFromCode = function (e) { switch (e) { case 46: return this.readToken_dot(); case 40: return (++this.pos, this.finishToken(U.parenL)); case 41: return (++this.pos, this.finishToken(U.parenR)); case 59: return (++this.pos, this.finishToken(U.semi)); case 44: return (++this.pos, this.finishToken(U.comma)); case 91: return (++this.pos, this.finishToken(U.bracketL)); case 93: return (++this.pos, this.finishToken(U.bracketR)); case 123: return (++this.pos, this.finishToken(U.braceL)); case 125: return (++this.pos, this.finishToken(U.braceR)); case 58: return (++this.pos, this.finishToken(U.colon)); case 96: if (this.options.ecmaVersion < 6) break; return (++this.pos, this.finishToken(U.backQuote)); case 48: var t = this.input.charCodeAt(this.pos + 1); if (t === 120 || t === 88) return this.readRadixNumber(16); if (this.options.ecmaVersion >= 6) { if (t === 111 || t === 79) return this.readRadixNumber(8); if (t === 98 || t === 66) return this.readRadixNumber(2); } case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: return this.readNumber(!1); case 34: case 39: return this.readString(e); case 47: return this.readToken_slash(); case 37: case 42: return this.readToken_mult_modulo_exp(e); case 124: case 38: return this.readToken_pipe_amp(e); case 94: return this.readToken_caret(); case 43: case 45: return this.readToken_plus_min(e); case 60: case 62: return this.readToken_lt_gt(e); case 61: case 33: return this.readToken_eq_excl(e); case 63: return this.readToken_question(); case 126: return this.finishOp(U.prefix, 1); } this.raise(this.pos, "Unexpected character '" + Tp(e) + "'"); }), (Ye.finishOp = function (e, t) { var r = this.input.slice(this.pos, this.pos + t); return ((this.pos += t), this.finishToken(e, r)); }), (Ye.readRegexp = function () { for (var e, t, r = this.pos; ; ) { this.pos >= this.input.length && this.raise(r, "Unterminated regular expression"); var n = this.input.charAt(this.pos); if ( (pr.test(n) && this.raise(r, "Unterminated regular expression"), e) ) e = !1; else { if (n === "[") t = !0; else if (n === "]" && t) t = !1; else if (n === "/" && !t) break; e = n === "\\"; } ++this.pos; } var a = this.input.slice(r, this.pos); ++this.pos; var o = this.pos, i = this.readWord1(); this.containsEsc && this.unexpected(o); var u = this.regexpState || (this.regexpState = new Yr(this)); (u.reset(r, a, i), this.validateRegExpFlags(u), this.validateRegExpPattern(u)); var l = null; try { l = new RegExp(a, i); } catch {} return this.finishToken(U.regexp, { pattern: a, flags: i, value: l }); }), (Ye.readInt = function (e, t, r) { for ( var n = this.options.ecmaVersion >= 12 && t === void 0, a = r && this.input.charCodeAt(this.pos) === 48, o = this.pos, i = 0, u = 0, l = 0, c = t ?? 1 / 0; l < c; ++l, ++this.pos ) { var d = this.input.charCodeAt(this.pos), p = void 0; if (n && d === 95) { (a && this.raiseRecoverable( this.pos, "Numeric separator is not allowed in legacy octal numeric literals", ), u === 95 && this.raiseRecoverable( this.pos, "Numeric separator must be exactly one underscore", ), l === 0 && this.raiseRecoverable( this.pos, "Numeric separator is not allowed at the first of digits", ), (u = d)); continue; } if ( (d >= 97 ? (p = d - 97 + 10) : d >= 65 ? (p = d - 65 + 10) : d >= 48 && d <= 57 ? (p = d - 48) : (p = 1 / 0), p >= e) ) break; ((u = d), (i = i * e + p)); } return ( n && u === 95 && this.raiseRecoverable( this.pos - 1, "Numeric separator is not allowed at the last of digits", ), this.pos === o || (t != null && this.pos - o !== t) ? null : i ); }), (Ye.readRadixNumber = function (e) { var t = this.pos; this.pos += 2; var r = this.readInt(e); return ( r == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? ((r = ew(this.input.slice(t, this.pos))), ++this.pos) : wn(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(U.num, r) ); }), (Ye.readNumber = function (e) { var t = this.pos; !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number"); var r = this.pos - t >= 2 && this.input.charCodeAt(t) === 48; r && this.strict && this.raise(t, "Invalid number"); var n = this.input.charCodeAt(this.pos); if (!r && !e && this.options.ecmaVersion >= 11 && n === 110) { var a = ew(this.input.slice(t, this.pos)); return ( ++this.pos, wn(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(U.num, a) ); } (r && /[89]/.test(this.input.slice(t, this.pos)) && (r = !1), n === 46 && !r && (++this.pos, this.readInt(10), (n = this.input.charCodeAt(this.pos))), (n === 69 || n === 101) && !r && ((n = this.input.charCodeAt(++this.pos)), (n === 43 || n === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), wn(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number")); var o = oee(this.input.slice(t, this.pos), r); return this.finishToken(U.num, o); }), (Ye.readCodePoint = function () { var e = this.input.charCodeAt(this.pos), t; if (e === 123) { this.options.ecmaVersion < 6 && this.unexpected(); var r = ++this.pos; ((t = this.readHexChar( this.input.indexOf("}", this.pos) - this.pos, )), ++this.pos, t > 1114111 && this.invalidStringToken(r, "Code point out of bounds")); } else t = this.readHexChar(4); return t; }), (Ye.readString = function (e) { for (var t = "", r = ++this.pos; ; ) { this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant"); var n = this.input.charCodeAt(this.pos); if (n === e) break; n === 92 ? ((t += this.input.slice(r, this.pos)), (t += this.readEscapedChar(!1)), (r = this.pos)) : (io(n, this.options.ecmaVersion >= 10) && this.raise(this.start, "Unterminated string constant"), ++this.pos); } return ( (t += this.input.slice(r, this.pos++)), this.finishToken(U.string, t) ); }), (zp = {}), (Ye.tryReadTemplateToken = function () { this.inTemplateElement = !0; try { this.readTmplToken(); } catch (e) { if (e === zp) this.readInvalidTemplateToken(); else throw e; } this.inTemplateElement = !1; }), (Ye.invalidStringToken = function (e, t) { if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw zp; this.raise(e, t); }), (Ye.readTmplToken = function () { for (var e = "", t = this.pos; ; ) { this.pos >= this.input.length && this.raise(this.start, "Unterminated template"); var r = this.input.charCodeAt(this.pos); if ( r === 96 || (r === 36 && this.input.charCodeAt(this.pos + 1) === 123) ) return this.pos === this.start && (this.type === U.template || this.type === U.invalidTemplate) ? r === 36 ? ((this.pos += 2), this.finishToken(U.dollarBraceL)) : (++this.pos, this.finishToken(U.backQuote)) : ((e += this.input.slice(t, this.pos)), this.finishToken(U.template, e)); if (r === 92) ((e += this.input.slice(t, this.pos)), (e += this.readEscapedChar(!0)), (t = this.pos)); else if (io(r)) { switch (((e += this.input.slice(t, this.pos)), ++this.pos, r)) { case 13: this.input.charCodeAt(this.pos) === 10 && ++this.pos; case 10: e += ` `; break; default: e += String.fromCharCode(r); break; } (this.options.locations && (++this.curLine, (this.lineStart = this.pos)), (t = this.pos)); } else ++this.pos; } }), (Ye.readInvalidTemplateToken = function () { for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) { case "\\": ++this.pos; break; case "$": if (this.input[this.pos + 1] !== "{") break; case "`": return this.finishToken( U.invalidTemplate, this.input.slice(this.start, this.pos), ); } this.raise(this.start, "Unterminated template"); }), (Ye.readEscapedChar = function (e) { var t = this.input.charCodeAt(++this.pos); switch ((++this.pos, t)) { case 110: return ` `; case 114: return "\r"; case 120: return String.fromCharCode(this.readHexChar(2)); case 117: return Tp(this.readCodePoint()); case 116: return " "; case 98: return "\b"; case 118: return "\v"; case 102: return "\f"; case 13: this.input.charCodeAt(this.pos) === 10 && ++this.pos; case 10: return ( this.options.locations && ((this.lineStart = this.pos), ++this.curLine), "" ); case 56: case 57: if (e) { var r = this.pos - 1; return ( this.invalidStringToken( r, "Invalid escape sequence in template string", ), null ); } default: if (t >= 48 && t <= 55) { var n = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], a = parseInt(n, 8); return ( a > 255 && ((n = n.slice(0, -1)), (a = parseInt(n, 8))), (this.pos += n.length - 1), (t = this.input.charCodeAt(this.pos)), (n !== "0" || t === 56 || t === 57) && (this.strict || e) && this.invalidStringToken( this.pos - 1 - n.length, e ? "Octal literal in template string" : "Octal literal in strict mode", ), String.fromCharCode(a) ); } return io(t) ? "" : String.fromCharCode(t); } }), (Ye.readHexChar = function (e) { var t = this.pos, r = this.readInt(16, e); return ( r === null && this.invalidStringToken(t, "Bad character escape sequence"), r ); }), (Ye.readWord1 = function () { this.containsEsc = !1; for ( var e = "", t = !0, r = this.pos, n = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) { var a = this.fullCharCodeAtPos(); if (ha(a, n)) this.pos += a <= 65535 ? 1 : 2; else if (a === 92) { ((this.containsEsc = !0), (e += this.input.slice(r, this.pos))); var o = this.pos; (this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken( this.pos, "Expecting Unicode escape sequence \\uXXXX", ), ++this.pos); var i = this.readCodePoint(); ((t ? wn : ha)(i, n) || this.invalidStringToken(o, "Invalid Unicode escape"), (e += Tp(i)), (r = this.pos)); } else break; t = !1; } return e + this.input.slice(r, this.pos); }), (Ye.readWord = function () { var e = this.readWord1(), t = U.name; return (this.keywords.test(e) && (t = Li[e]), this.finishToken(t, e)); }), (Fy = "7.4.1"), (Ct.acorn = { Parser: Ct, version: Fy, defaultOptions: ps, Position: ma, SourceLocation: mo, getLineInfo: xy, Node: Si, TokenType: nt, tokTypes: U, keywordTypes: Li, TokContext: _r, tokContexts: Ot, isIdentifierChar: ha, isIdentifierStart: wn, Token: xi, isNewLine: io, lineBreak: pr, lineBreakG: _a, nonASCIIwhitespace: sl, })); }, }), lee = Se({ "../../node_modules/acorn-jsx/xhtml.js"(e, t) { t.exports = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "­", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "‌", zwj: "‍", lrm: "‎", rlm: "‏", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦", }; }, }), cee = Se({ "../../node_modules/acorn-jsx/index.js"(e, t) { var r = lee(), n = /^[\da-fA-F]+$/, a = /^\d+$/, o = new WeakMap(); function i(c) { c = c.Parser.acorn || c; let d = o.get(c); if (!d) { let p = c.tokTypes, f = c.TokContext, h = c.TokenType, m = new f("...", !0, !0), g = { tc_oTag: m, tc_cTag: y, tc_expr: b }, v = { jsxName: new h("jsxName"), jsxText: new h("jsxText", { beforeExpr: !0 }), jsxTagStart: new h("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: new h("jsxTagEnd"), }; ((v.jsxTagStart.updateContext = function () { (this.context.push(b), this.context.push(m), (this.exprAllowed = !1)); }), (v.jsxTagEnd.updateContext = function (x) { let A = this.context.pop(); (A === m && x === p.slash) || A === y ? (this.context.pop(), (this.exprAllowed = this.curContext() === b)) : (this.exprAllowed = !0); }), (d = { tokContexts: g, tokTypes: v }), o.set(c, d)); } return d; } function u(c) { if (!c) return c; if (c.type === "JSXIdentifier") return c.name; if (c.type === "JSXNamespacedName") return c.namespace.name + ":" + c.name.name; if (c.type === "JSXMemberExpression") return u(c.object) + "." + u(c.property); } ((t.exports = function (c) { return ( (c = c || {}), function (d) { return l( { allowNamespaces: c.allowNamespaces !== !1, allowNamespacedObjects: !!c.allowNamespacedObjects, }, d, ); } ); }), Object.defineProperty(t.exports, "tokTypes", { get: function () { return i((Iy(), BC(Ay))).tokTypes; }, configurable: !0, enumerable: !0, })); function l(c, d) { let p = d.acorn || (Iy(), BC(Ay)), f = i(p), h = p.tokTypes, m = f.tokTypes, y = p.tokContexts, b = f.tokContexts.tc_oTag, g = f.tokContexts.tc_cTag, v = f.tokContexts.tc_expr, x = p.isNewLine, A = p.isIdentifierStart, w = p.isIdentifierChar; return class extends d { static get acornJsx() { return f; } jsx_readToken() { let C = "", E = this.pos; for (;;) { this.pos >= this.input.length && this.raise(this.start, "Unterminated JSX contents"); let _ = this.input.charCodeAt(this.pos); switch (_) { case 60: case 123: return this.pos === this.start ? _ === 60 && this.exprAllowed ? (++this.pos, this.finishToken(m.jsxTagStart)) : this.getTokenFromCode(_) : ((C += this.input.slice(E, this.pos)), this.finishToken(m.jsxText, C)); case 38: ((C += this.input.slice(E, this.pos)), (C += this.jsx_readEntity()), (E = this.pos)); break; case 62: case 125: this.raise( this.pos, "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (_ === 62 ? ">" : "}") + '` or `{"' + this.input[this.pos] + '"}`?', ); default: x(_) ? ((C += this.input.slice(E, this.pos)), (C += this.jsx_readNewLine(!0)), (E = this.pos)) : ++this.pos; } } } jsx_readNewLine(C) { let E = this.input.charCodeAt(this.pos), _; return ( ++this.pos, E === 13 && this.input.charCodeAt(this.pos) === 10 ? (++this.pos, (_ = C ? ` ` : `\r `)) : (_ = String.fromCharCode(E)), this.options.locations && (++this.curLine, (this.lineStart = this.pos)), _ ); } jsx_readString(C) { let E = "", _ = ++this.pos; for (;;) { this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant"); let P = this.input.charCodeAt(this.pos); if (P === C) break; P === 38 ? ((E += this.input.slice(_, this.pos)), (E += this.jsx_readEntity()), (_ = this.pos)) : x(P) ? ((E += this.input.slice(_, this.pos)), (E += this.jsx_readNewLine(!1)), (_ = this.pos)) : ++this.pos; } return ( (E += this.input.slice(_, this.pos++)), this.finishToken(h.string, E) ); } jsx_readEntity() { let C = "", E = 0, _, P = this.input[this.pos]; P !== "&" && this.raise(this.pos, "Entity must start with an ampersand"); let D = ++this.pos; for (; this.pos < this.input.length && E++ < 10; ) { if (((P = this.input[this.pos++]), P === ";")) { C[0] === "#" ? C[1] === "x" ? ((C = C.substr(2)), n.test(C) && (_ = String.fromCharCode(parseInt(C, 16)))) : ((C = C.substr(1)), a.test(C) && (_ = String.fromCharCode(parseInt(C, 10)))) : (_ = r[C]); break; } C += P; } return _ || ((this.pos = D), "&"); } jsx_readWord() { let C, E = this.pos; do C = this.input.charCodeAt(++this.pos); while (w(C) || C === 45); return this.finishToken(m.jsxName, this.input.slice(E, this.pos)); } jsx_parseIdentifier() { let C = this.startNode(); return ( this.type === m.jsxName ? (C.name = this.value) : this.type.keyword ? (C.name = this.type.keyword) : this.unexpected(), this.next(), this.finishNode(C, "JSXIdentifier") ); } jsx_parseNamespacedName() { let C = this.start, E = this.startLoc, _ = this.jsx_parseIdentifier(); if (!c.allowNamespaces || !this.eat(h.colon)) return _; var P = this.startNodeAt(C, E); return ( (P.namespace = _), (P.name = this.jsx_parseIdentifier()), this.finishNode(P, "JSXNamespacedName") ); } jsx_parseElementName() { if (this.type === m.jsxTagEnd) return ""; let C = this.start, E = this.startLoc, _ = this.jsx_parseNamespacedName(); for ( this.type === h.dot && _.type === "JSXNamespacedName" && !c.allowNamespacedObjects && this.unexpected(); this.eat(h.dot); ) { let P = this.startNodeAt(C, E); ((P.object = _), (P.property = this.jsx_parseIdentifier()), (_ = this.finishNode(P, "JSXMemberExpression"))); } return _; } jsx_parseAttributeValue() { switch (this.type) { case h.braceL: let C = this.jsx_parseExpressionContainer(); return ( C.expression.type === "JSXEmptyExpression" && this.raise( C.start, "JSX attributes must only be assigned a non-empty expression", ), C ); case m.jsxTagStart: case h.string: return this.parseExprAtom(); default: this.raise( this.start, "JSX value should be either an expression or a quoted JSX text", ); } } jsx_parseEmptyExpression() { let C = this.startNodeAt(this.lastTokEnd, this.lastTokEndLoc); return this.finishNodeAt( C, "JSXEmptyExpression", this.start, this.startLoc, ); } jsx_parseExpressionContainer() { let C = this.startNode(); return ( this.next(), (C.expression = this.type === h.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression()), this.expect(h.braceR), this.finishNode(C, "JSXExpressionContainer") ); } jsx_parseAttribute() { let C = this.startNode(); return this.eat(h.braceL) ? (this.expect(h.ellipsis), (C.argument = this.parseMaybeAssign()), this.expect(h.braceR), this.finishNode(C, "JSXSpreadAttribute")) : ((C.name = this.jsx_parseNamespacedName()), (C.value = this.eat(h.eq) ? this.jsx_parseAttributeValue() : null), this.finishNode(C, "JSXAttribute")); } jsx_parseOpeningElementAt(C, E) { let _ = this.startNodeAt(C, E); _.attributes = []; let P = this.jsx_parseElementName(); for ( P && (_.name = P); this.type !== h.slash && this.type !== m.jsxTagEnd; ) _.attributes.push(this.jsx_parseAttribute()); return ( (_.selfClosing = this.eat(h.slash)), this.expect(m.jsxTagEnd), this.finishNode(_, P ? "JSXOpeningElement" : "JSXOpeningFragment") ); } jsx_parseClosingElementAt(C, E) { let _ = this.startNodeAt(C, E), P = this.jsx_parseElementName(); return ( P && (_.name = P), this.expect(m.jsxTagEnd), this.finishNode(_, P ? "JSXClosingElement" : "JSXClosingFragment") ); } jsx_parseElementAt(C, E) { let _ = this.startNodeAt(C, E), P = [], D = this.jsx_parseOpeningElementAt(C, E), F = null; if (!D.selfClosing) { e: for (;;) switch (this.type) { case m.jsxTagStart: if ( ((C = this.start), (E = this.startLoc), this.next(), this.eat(h.slash)) ) { F = this.jsx_parseClosingElementAt(C, E); break e; } P.push(this.jsx_parseElementAt(C, E)); break; case m.jsxText: P.push(this.parseExprAtom()); break; case h.braceL: P.push(this.jsx_parseExpressionContainer()); break; default: this.unexpected(); } u(F.name) !== u(D.name) && this.raise( F.start, "Expected corresponding JSX closing tag for <" + u(D.name) + ">", ); } let L = D.name ? "Element" : "Fragment"; return ( (_["opening" + L] = D), (_["closing" + L] = F), (_.children = P), this.type === h.relational && this.value === "<" && this.raise( this.start, "Adjacent JSX elements must be wrapped in an enclosing tag", ), this.finishNode(_, "JSX" + L) ); } jsx_parseText() { let C = this.parseLiteral(this.value); return ((C.type = "JSXText"), C); } jsx_parseElement() { let C = this.start, E = this.startLoc; return (this.next(), this.jsx_parseElementAt(C, E)); } parseExprAtom(C) { return this.type === m.jsxText ? this.jsx_parseText() : this.type === m.jsxTagStart ? this.jsx_parseElement() : super.parseExprAtom(C); } readToken(C) { let E = this.curContext(); if (E === v) return this.jsx_readToken(); if (E === b || E === g) { if (A(C)) return this.jsx_readWord(); if (C == 62) return (++this.pos, this.finishToken(m.jsxTagEnd)); if ((C === 34 || C === 39) && E == b) return this.jsx_readString(C); } return C === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33 ? (++this.pos, this.finishToken(m.jsxTagStart)) : super.readToken(C); } updateContext(C) { if (this.type == h.braceL) { var E = this.curContext(); (E == b ? this.context.push(y.b_expr) : E == v ? this.context.push(y.b_tmpl) : super.updateContext(C), (this.exprAllowed = !0)); } else if (this.type === h.slash && C === m.jsxTagStart) ((this.context.length -= 2), this.context.push(g), (this.exprAllowed = !1)); else return super.updateContext(C); } }; } }, }), dee = Se({ "../../node_modules/html-tags/html-tags.json"(e, t) { t.exports = [ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "search", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", ]; }, }), pee = Se({ "../../node_modules/html-tags/index.js"(e, t) { t.exports = dee(); }, }), fee = {}; Bd(fee, { argTypesEnhancers: () => wB, parameters: () => CB }); var Ny = "custom", Bs = "object", CE = "array", hee = "class", $o = "func", ai = "element", mee = ri(YZ()); function yee(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; var n = Array.from(typeof e == "string" ? [e] : e); n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); var a = n.reduce(function (u, l) { var c = l.match(/\n([\t ]+|(?!\s).)/g); return c ? u.concat( c.map(function (d) { var p, f; return (f = (p = d.match(/[\t ]/g)) === null || p === void 0 ? void 0 : p.length) !== null && f !== void 0 ? f : 0; }), ) : u; }, []); if (a.length) { var o = new RegExp( ` [ ]{` + Math.min.apply(Math, a) + "}", "g", ); n = n.map(function (u) { return u.replace( o, ` `, ); }); } n[0] = n[0].replace(/^\r?\n/, ""); var i = n[0]; return ( t.forEach(function (u, l) { var c = i.match(/(?:^|\n)( *)$/), d = c ? c[1] : "", p = u; (typeof u == "string" && u.includes(` `) && (p = String(u) .split( ` `, ) .map(function (f, h) { return h === 0 ? f : "" + d + f; }).join(` `)), (i += p + n[l + 1])); }), i ); } var lB = { format: { indent: { style: " " }, semicolons: !1 } }, gee = { ...lB, format: { newline: "" } }, bee = { ...lB }; function Zn(e, t = !1) { return (0, mee.generate)(e, t ? gee : bee); } function jy(e, t = !1) { return t ? vee(e) : Zn(e); } function vee(e) { let t = Zn(e, !0); return (t.endsWith(" }") || (t = `${t.slice(0, -1)} }`), t); } function dw(e, t = !1) { return t ? _ee(e) : Eee(e); } function Eee(e) { let t = Zn(e); return (t.endsWith(" }]") && (t = yee(t)), t); } function _ee(e) { let t = Zn(e, !0); return (t.startsWith("[ ") && (t = t.replace("[ ", "[")), t); } Iy(); var Cee = ri(cee()); function cB(e, t, r, n, a) { (r || (r = Ce), (function o(i, u, l) { var c = l || i.type, d = t[c]; (r[c](i, u, o), d && d(i, u)); })(e, n, a)); } function wee(e, t, r, n, a) { var o = []; (r || (r = Ce), (function i(u, l, c) { var d = c || u.type, p = t[d], f = u !== o[o.length - 1]; (f && o.push(u), r[d](u, l, i), p && p(u, l || o, o), f && o.pop()); })(e, n, a)); } function wE(e, t, r) { r(e, t); } function Wa(e, t, r) {} var Ce = {}; Ce.Program = Ce.BlockStatement = function (e, t, r) { for (var n = 0, a = e.body; n < a.length; n += 1) { var o = a[n]; r(o, t, "Statement"); } }; Ce.Statement = wE; Ce.EmptyStatement = Wa; Ce.ExpressionStatement = Ce.ParenthesizedExpression = Ce.ChainExpression = function (e, t, r) { return r(e.expression, t, "Expression"); }; Ce.IfStatement = function (e, t, r) { (r(e.test, t, "Expression"), r(e.consequent, t, "Statement"), e.alternate && r(e.alternate, t, "Statement")); }; Ce.LabeledStatement = function (e, t, r) { return r(e.body, t, "Statement"); }; Ce.BreakStatement = Ce.ContinueStatement = Wa; Ce.WithStatement = function (e, t, r) { (r(e.object, t, "Expression"), r(e.body, t, "Statement")); }; Ce.SwitchStatement = function (e, t, r) { r(e.discriminant, t, "Expression"); for (var n = 0, a = e.cases; n < a.length; n += 1) { var o = a[n]; o.test && r(o.test, t, "Expression"); for (var i = 0, u = o.consequent; i < u.length; i += 1) { var l = u[i]; r(l, t, "Statement"); } } }; Ce.SwitchCase = function (e, t, r) { e.test && r(e.test, t, "Expression"); for (var n = 0, a = e.consequent; n < a.length; n += 1) { var o = a[n]; r(o, t, "Statement"); } }; Ce.ReturnStatement = Ce.YieldExpression = Ce.AwaitExpression = function (e, t, r) { e.argument && r(e.argument, t, "Expression"); }; Ce.ThrowStatement = Ce.SpreadElement = function (e, t, r) { return r(e.argument, t, "Expression"); }; Ce.TryStatement = function (e, t, r) { (r(e.block, t, "Statement"), e.handler && r(e.handler, t), e.finalizer && r(e.finalizer, t, "Statement")); }; Ce.CatchClause = function (e, t, r) { (e.param && r(e.param, t, "Pattern"), r(e.body, t, "Statement")); }; Ce.WhileStatement = Ce.DoWhileStatement = function (e, t, r) { (r(e.test, t, "Expression"), r(e.body, t, "Statement")); }; Ce.ForStatement = function (e, t, r) { (e.init && r(e.init, t, "ForInit"), e.test && r(e.test, t, "Expression"), e.update && r(e.update, t, "Expression"), r(e.body, t, "Statement")); }; Ce.ForInStatement = Ce.ForOfStatement = function (e, t, r) { (r(e.left, t, "ForInit"), r(e.right, t, "Expression"), r(e.body, t, "Statement")); }; Ce.ForInit = function (e, t, r) { e.type === "VariableDeclaration" ? r(e, t) : r(e, t, "Expression"); }; Ce.DebuggerStatement = Wa; Ce.FunctionDeclaration = function (e, t, r) { return r(e, t, "Function"); }; Ce.VariableDeclaration = function (e, t, r) { for (var n = 0, a = e.declarations; n < a.length; n += 1) { var o = a[n]; r(o, t); } }; Ce.VariableDeclarator = function (e, t, r) { (r(e.id, t, "Pattern"), e.init && r(e.init, t, "Expression")); }; Ce.Function = function (e, t, r) { e.id && r(e.id, t, "Pattern"); for (var n = 0, a = e.params; n < a.length; n += 1) { var o = a[n]; r(o, t, "Pattern"); } r(e.body, t, e.expression ? "Expression" : "Statement"); }; Ce.Pattern = function (e, t, r) { e.type === "Identifier" ? r(e, t, "VariablePattern") : e.type === "MemberExpression" ? r(e, t, "MemberPattern") : r(e, t); }; Ce.VariablePattern = Wa; Ce.MemberPattern = wE; Ce.RestElement = function (e, t, r) { return r(e.argument, t, "Pattern"); }; Ce.ArrayPattern = function (e, t, r) { for (var n = 0, a = e.elements; n < a.length; n += 1) { var o = a[n]; o && r(o, t, "Pattern"); } }; Ce.ObjectPattern = function (e, t, r) { for (var n = 0, a = e.properties; n < a.length; n += 1) { var o = a[n]; o.type === "Property" ? (o.computed && r(o.key, t, "Expression"), r(o.value, t, "Pattern")) : o.type === "RestElement" && r(o.argument, t, "Pattern"); } }; Ce.Expression = wE; Ce.ThisExpression = Ce.Super = Ce.MetaProperty = Wa; Ce.ArrayExpression = function (e, t, r) { for (var n = 0, a = e.elements; n < a.length; n += 1) { var o = a[n]; o && r(o, t, "Expression"); } }; Ce.ObjectExpression = function (e, t, r) { for (var n = 0, a = e.properties; n < a.length; n += 1) { var o = a[n]; r(o, t); } }; Ce.FunctionExpression = Ce.ArrowFunctionExpression = Ce.FunctionDeclaration; Ce.SequenceExpression = function (e, t, r) { for (var n = 0, a = e.expressions; n < a.length; n += 1) { var o = a[n]; r(o, t, "Expression"); } }; Ce.TemplateLiteral = function (e, t, r) { for (var n = 0, a = e.quasis; n < a.length; n += 1) { var o = a[n]; r(o, t); } for (var i = 0, u = e.expressions; i < u.length; i += 1) { var l = u[i]; r(l, t, "Expression"); } }; Ce.TemplateElement = Wa; Ce.UnaryExpression = Ce.UpdateExpression = function (e, t, r) { r(e.argument, t, "Expression"); }; Ce.BinaryExpression = Ce.LogicalExpression = function (e, t, r) { (r(e.left, t, "Expression"), r(e.right, t, "Expression")); }; Ce.AssignmentExpression = Ce.AssignmentPattern = function (e, t, r) { (r(e.left, t, "Pattern"), r(e.right, t, "Expression")); }; Ce.ConditionalExpression = function (e, t, r) { (r(e.test, t, "Expression"), r(e.consequent, t, "Expression"), r(e.alternate, t, "Expression")); }; Ce.NewExpression = Ce.CallExpression = function (e, t, r) { if ((r(e.callee, t, "Expression"), e.arguments)) for (var n = 0, a = e.arguments; n < a.length; n += 1) { var o = a[n]; r(o, t, "Expression"); } }; Ce.MemberExpression = function (e, t, r) { (r(e.object, t, "Expression"), e.computed && r(e.property, t, "Expression")); }; Ce.ExportNamedDeclaration = Ce.ExportDefaultDeclaration = function (e, t, r) { (e.declaration && r( e.declaration, t, e.type === "ExportNamedDeclaration" || e.declaration.id ? "Statement" : "Expression", ), e.source && r(e.source, t, "Expression")); }; Ce.ExportAllDeclaration = function (e, t, r) { (e.exported && r(e.exported, t), r(e.source, t, "Expression")); }; Ce.ImportDeclaration = function (e, t, r) { for (var n = 0, a = e.specifiers; n < a.length; n += 1) { var o = a[n]; r(o, t); } r(e.source, t, "Expression"); }; Ce.ImportExpression = function (e, t, r) { r(e.source, t, "Expression"); }; Ce.ImportSpecifier = Ce.ImportDefaultSpecifier = Ce.ImportNamespaceSpecifier = Ce.Identifier = Ce.Literal = Wa; Ce.TaggedTemplateExpression = function (e, t, r) { (r(e.tag, t, "Expression"), r(e.quasi, t, "Expression")); }; Ce.ClassDeclaration = Ce.ClassExpression = function (e, t, r) { return r(e, t, "Class"); }; Ce.Class = function (e, t, r) { (e.id && r(e.id, t, "Pattern"), e.superClass && r(e.superClass, t, "Expression"), r(e.body, t)); }; Ce.ClassBody = function (e, t, r) { for (var n = 0, a = e.body; n < a.length; n += 1) { var o = a[n]; r(o, t); } }; Ce.MethodDefinition = Ce.Property = function (e, t, r) { (e.computed && r(e.key, t, "Expression"), r(e.value, t, "Expression")); }; var AE = { ...Ce, JSXElement: () => {} }, Aee = Ct.extend((0, Cee.default)()); function Ls(e) { return e != null ? e.name : null; } function pw(e) { return e.filter( (t) => t.type === "ObjectExpression" || t.type === "ArrayExpression", ); } function dB(e) { let t = []; return ( wee( e, { ObjectExpression(r, n) { t.push(pw(n).length); }, ArrayExpression(r, n) { t.push(pw(n).length); }, }, AE, ), Math.max(...t) ); } function See(e) { return { inferredType: { type: "Identifier", identifier: Ls(e) }, ast: e }; } function xee(e) { return { inferredType: { type: "Literal" }, ast: e }; } function Pee(e) { let t; cB( e.body, { JSXElement(a) { t = a; }, }, AE, ); let r = { type: t != null ? "Element" : "Function", params: e.params, hasParams: e.params.length !== 0, }, n = Ls(e.id); return (n != null && (r.identifier = n), { inferredType: r, ast: e }); } function Ree(e) { let t; return ( cB( e.body, { JSXElement(r) { t = r; }, }, AE, ), { inferredType: { type: t != null ? "Element" : "Class", identifier: Ls(e.id), }, ast: e, } ); } function Tee(e) { let t = { type: "Element" }, r = Ls(e.openingElement.name); return (r != null && (t.identifier = r), { inferredType: t, ast: e }); } function Oee(e) { let t = e.callee.type === "MemberExpression" ? e.callee.property : e.callee; return Ls(t) === "shape" ? pB(e.arguments[0]) : null; } function pB(e) { return { inferredType: { type: "Object", depth: dB(e) }, ast: e }; } function Dee(e) { return { inferredType: { type: "Array", depth: dB(e) }, ast: e }; } function Fee(e) { switch (e.type) { case "Identifier": return See(e); case "Literal": return xee(e); case "FunctionExpression": case "ArrowFunctionExpression": return Pee(e); case "ClassExpression": return Ree(e); case "JSXElement": return Tee(e); case "CallExpression": return Oee(e); case "ObjectExpression": return pB(e); case "ArrayExpression": return Dee(e); default: return null; } } function Iee(e) { let t = Aee.parse(`(${e})`, { ecmaVersion: 2020 }), r = { inferredType: { type: "Unknown" }, ast: t }; if (t.body[0] != null) { let n = t.body[0]; switch (n.type) { case "ExpressionStatement": { let a = Fee(n.expression); a != null && (r = a); break; } } } return r; } function oa(e) { try { return { ...Iee(e) }; } catch {} return { inferredType: { type: "Unknown" } }; } var Nee = ri(pee()); function SE(e) { return Nee.default.includes(e.toLowerCase()); } function fB({ inferredType: e, ast: t }) { let { depth: r } = e; if (r <= 2) { let n = dw(t, !0); if (!Ga(n)) return Me(n); } return Me(CE, dw(t)); } function hB({ inferredType: e, ast: t }) { let { depth: r } = e; if (r === 1) { let n = jy(t, !0); if (!Ga(n)) return Me(n); } return Me(Bs, jy(t)); } function xE(e, t) { return t ? `${e}( ... )` : `${e}()`; } function Kd(e) { return `<${e} />`; } function mB(e) { let { type: t, identifier: r } = e; switch (t) { case "Function": return xE(r, e.hasParams); case "Element": return Kd(r); default: return r; } } function jee({ inferredType: e, ast: t }) { let { identifier: r } = e; if (r != null) return Me(mB(e), Zn(t)); let n = Zn(t, !0); return Ga(n) ? Me($o, Zn(t)) : Me(n); } function kee(e, t) { let { inferredType: r } = t, { identifier: n } = r; if (n != null && !SE(n)) { let a = mB(r); return Me(a, e); } return Ga(e) ? Me(ai, e) : Me(e); } function yB(e) { try { let t = oa(e); switch (t.inferredType.type) { case "Object": return hB(t); case "Function": return jee(t); case "Element": return kee(e, t); case "Array": return fB(t); default: return null; } } catch (t) { console.error(t); } return null; } function qee(e) { if (typeof e != "object" || e == null) return !1; if (Object.getPrototypeOf(e) === null) return !0; if (Object.prototype.toString.call(e) !== "[object Object]") { let r = e[Symbol.toStringTag]; return r == null || !Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)?.writable ? !1 : e.toString() === `[object ${r}]`; } let t = e; for (; Object.getPrototypeOf(t) !== null; ) t = Object.getPrototypeOf(t); return Object.getPrototypeOf(e) === t; } function fw(e) { return typeof e == "function"; } function Mee(e) { return typeof e == "string" || e instanceof String; } var hw = Zq; function gB(e) { return e.$$typeof != null; } function bB(e, t) { let { name: r } = e; return r !== "" && r !== "anonymous" && r !== t ? r : null; } var Bee = (e) => Me(JSON.stringify(e)); function Lee(e) { let { type: t } = e, { displayName: r } = t, n = hw(e, {}); if (r != null) { let a = Kd(r); return Me(a, n); } if (Mee(t) && SE(t)) { let a = hw(e, { tabStop: 0 }).replace(/\r?\n|\r/g, ""); if (!Ga(a)) return Me(a); } return Me(ai, n); } var $ee = (e) => { if (gB(e) && e.type != null) return Lee(e); if (qee(e)) { let t = oa(JSON.stringify(e)); return hB(t); } if (Array.isArray(e)) { let t = oa(JSON.stringify(e)); return fB(t); } return Me(Bs); }, Uee = (e, t) => { let r = !1, n; if (fw(e.render)) r = !0; else if (e.prototype != null && fw(e.prototype.render)) r = !0; else { let o; try { n = oa(e.toString()); let { hasParams: i, params: u } = n.inferredType; (i ? u.length === 1 && u[0].type === "ObjectPattern" && (o = e({})) : (o = e()), o != null && gB(o) && (r = !0)); } catch {} } let a = bB(e, t.name); if (a != null) { if (r) return Me(Kd(a)); n != null && (n = oa(e.toString())); let { hasParams: o } = n.inferredType; return Me(xE(a, o)); } return Me(r ? ai : $o); }, Hee = (e) => Me(e.toString()), vB = { string: Bee, object: $ee, function: Uee, default: Hee }; function Vee(e = {}) { return { ...vB, ...e }; } function zee(e, t, r = vB) { try { switch (typeof e) { case "string": return r.string(e, t); case "object": return r.object(e, t); case "function": return r.function(e, t); default: return r.default(e, t); } } catch (n) { console.error(n); } return null; } function Gee(e, t) { let r = e != null, n = t != null; if (!r && !n) return ""; let a = []; if (r) { let o = e.map((i) => { let u = i.getPrettyName(), l = i.getTypeName(); return l != null ? `${u}: ${l}` : u; }); a.push(`(${o.join(", ")})`); } else a.push("()"); return (n && a.push(`=> ${t.getTypeName()}`), a.join(" ")); } function Wee(e, t) { let r = e != null, n = t != null; if (!r && !n) return ""; let a = []; return ( r ? a.push("( ... )") : a.push("()"), n && a.push(`=> ${t.getTypeName()}`), a.join(" ") ); } function Jee(e) { return e.replace( /,/g, `,\r `, ); } var Xee = 150; function ir({ name: e, short: t, compact: r, full: n, inferredType: a }) { return { name: e, short: t, compact: r, full: n ?? t, inferredType: a }; } function EB(e) { return e.replace(/PropTypes./g, "").replace(/.isRequired/g, ""); } function mw(e) { return e.split(/\r?\n/); } function ac(e, t = !1) { return EB(jy(e, t)); } function yw(e, t = !1) { return EB(Zn(e, t)); } function Kee(e) { switch (e) { case "Object": return Bs; case "Array": return CE; case "Class": return hee; case "Function": return $o; case "Element": return ai; default: return Ny; } } function _B(e, t) { let { inferredType: r, ast: n } = oa(e), { type: a } = r, o, i, u; switch (a) { case "Identifier": case "Literal": ((o = e), (i = e)); break; case "Object": { let { depth: l } = r; ((o = Bs), (i = l === 1 ? ac(n, !0) : null), (u = ac(n))); break; } case "Element": { let { identifier: l } = r; ((o = l != null && !SE(l) ? l : ai), (i = mw(e).length === 1 ? e : null), (u = e)); break; } case "Array": { let { depth: l } = r; ((o = CE), (i = l <= 2 ? yw(n, !0) : null), (u = yw(n))); break; } default: ((o = Kee(a)), (i = mw(e).length === 1 ? e : null), (u = e)); break; } return ir({ name: t, short: o, compact: i, full: u, inferredType: a }); } function Yee({ raw: e }) { return e != null ? _B(e, "custom") : ir({ name: "custom", short: Ny, compact: Ny }); } function Qee(e) { let { jsDocTags: t } = e; return t != null && (t.params != null || t.returns != null) ? ir({ name: "func", short: Wee(t.params, t.returns), compact: null, full: Gee(t.params, t.returns), }) : ir({ name: "func", short: $o, compact: $o }); } function Zee(e, t) { let r = Object.keys(e.value) .map((i) => `${i}: ${Uo(e.value[i], t).full}`) .join(", "), { inferredType: n, ast: a } = oa(`{ ${r} }`), { depth: o } = n; return ir({ name: "shape", short: Bs, compact: o === 1 && a ? ac(a, !0) : null, full: a ? ac(a) : null, }); } function Gp(e) { return `objectOf(${e})`; } function ete(e, t) { let { short: r, compact: n, full: a } = Uo(e.value, t); return ir({ name: "objectOf", short: Gp(r), compact: n != null ? Gp(n) : null, full: a && Gp(a), }); } function tte(e, t) { if (Array.isArray(e.value)) { let r = e.value.reduce( (n, a) => { let { short: o, compact: i, full: u } = Uo(a, t); return (n.short.push(o), n.compact.push(i), n.full.push(u), n); }, { short: [], compact: [], full: [] }, ); return ir({ name: "union", short: r.short.join(" | "), compact: r.compact.every((n) => n != null) ? r.compact.join(" | ") : null, full: r.full.join(" | "), }); } return ir({ name: "union", short: e.value, compact: null }); } function rte({ value: e, computed: t }) { return t ? _B(e, "enumvalue") : ir({ name: "enumvalue", short: e, compact: e }); } function nte(e) { if (Array.isArray(e.value)) { let t = e.value.reduce( (r, n) => { let { short: a, compact: o, full: i } = rte(n); return (r.short.push(a), r.compact.push(o), r.full.push(i), r); }, { short: [], compact: [], full: [] }, ); return ir({ name: "enum", short: t.short.join(" | "), compact: t.compact.every((r) => r != null) ? t.compact.join(" | ") : null, full: t.full.join(" | "), }); } return ir({ name: "enum", short: e.value, compact: e.value }); } function ky(e) { return `${e}[]`; } function gw(e) { return `[${e}]`; } function bw(e, t, r) { return ir({ name: "arrayOf", short: ky(e), compact: t != null ? gw(t) : null, full: r && gw(r), }); } function ate(e, t) { let { name: r, short: n, compact: a, full: o, inferredType: i, } = Uo(e.value, t); if (r === "custom") { if (i === "Object") return bw(n, a, o); } else if (r === "shape") return bw(n, a, o); return ir({ name: "arrayOf", short: ky(n), compact: ky(n) }); } function Uo(e, t) { try { switch (e.name) { case "custom": return Yee(e); case "func": return Qee(t); case "shape": return Zee(e, t); case "instanceOf": return ir({ name: "instanceOf", short: e.value, compact: e.value }); case "objectOf": return ete(e, t); case "union": return tte(e, t); case "enum": return nte(e); case "arrayOf": return ate(e, t); default: return ir({ name: e.name, short: e.name, compact: e.name }); } } catch (r) { console.error(r); } return ir({ name: "unknown", short: "unknown", compact: "unknown" }); } function ote(e) { let { type: t } = e.docgenInfo; if (t == null) return null; try { switch (t.name) { case "custom": case "shape": case "instanceOf": case "objectOf": case "union": case "enum": case "arrayOf": { let { short: r, compact: n, full: a } = Uo(t, e); return n != null && !Xd(n) ? Me(n) : a ? Me(r, a) : Me(r); } case "func": { let { short: r, full: n } = Uo(t, e), a = r, o; return (n && n.length < Xee ? (a = n) : n && (o = Jee(n)), Me(a, o)); } default: return null; } } catch (r) { console.error(r); } return null; } var ite = (e, { name: t, type: r }) => { let n = r?.summary === "element" || r?.summary === "elementType", a = bB(e, t); if (a != null) { if (n) return Me(Kd(a)); let { hasParams: o } = oa(e.toString()).inferredType; return Me(xE(a, o)); } return Me(n ? ai : $o); }, ste = Vee({ function: ite }); function ute(e, t) { let { propTypes: r } = t; return r != null ? Object.keys(r) .map((n) => e.find((a) => a.name === n)) .filter(Boolean) : e; } function lte(e, t) { let { propDef: r } = e, n = ote(e); n != null && (r.type = n); let { defaultValue: a } = e.docgenInfo; if (a != null && a.value != null) { let o = yB(a.value); o != null && (r.defaultValue = o); } else if (t != null) { let o = zee(t, r, ste); o != null && (r.defaultValue = o); } return r; } function cte(e, t) { let r = t.defaultProps != null ? t.defaultProps : {}, n = e.map((a) => lte(a, r[a.propDef.name])); return ute(n, t); } function dte(e, t) { let { propDef: r } = e, { defaultValue: n } = e.docgenInfo; if (n != null && n.value != null) { let a = yB(n.value); a != null && (r.defaultValue = a); } return r; } function pte(e) { return e.map((t) => dte(t)); } function fte(e, t) { let r = e; !Jd(e) && !e.propTypes && Wq(e) && (r = e.type); let n = kZ(r, t); if (n.length === 0) return []; switch (n[0].typeSystem) { case Cy.JAVASCRIPT: return cte(n, e); case Cy.TYPESCRIPT: return pte(n); default: return n.map((a) => a.propDef); } } var hte = (e) => ({ rows: fte(e, "props") }), mte = (e) => { if (e) { let { rows: t } = hte(e); if (t) return t.reduce((r, n) => { let { name: a, description: o, type: i, sbType: u, defaultValue: l, jsDocTags: c, required: d, } = n; return ( (r[a] = { name: a, description: o, type: { required: d, ...u }, table: { type: i ?? void 0, jsDocTags: c, defaultValue: l ?? void 0, }, }), r ); }, {}); } return null; }, CB = { docs: { extractArgTypes: mte, extractComponentDescription: XM } }, wB = [qZ]; const yte = Object.freeze( Object.defineProperty( { __proto__: null, argTypesEnhancers: wB, parameters: CB }, Symbol.toStringTag, { value: "Module" }, ), ), { logger: ou } = __STORYBOOK_MODULE_CLIENT_LOGGER__, { useRef: gte, useEffect: bte, emitTransformCode: vte, } = __STORYBOOK_MODULE_PREVIEW_API__; var Ete = {}; Bd(Ete, { applyDecorators: () => xB, decorators: () => PB, parameters: () => RB, }); var Wp = Zq, _te = (e) => e.charAt(0).toUpperCase() + e.slice(1), Cte = (e) => (e.$$typeof || e) .toString() .replace(/^Symbol\((.*)\)$/, "$1") .split(".") .map((t) => t.split("_").map(_te).join("")) .join("."); function qy(e) { if (lt.isValidElement(e)) { let t = Object.keys(e.props).reduce( (r, n) => ((r[n] = qy(e.props[n])), r), {}, ); return { ...e, props: t, _owner: null }; } return Array.isArray(e) ? e.map(qy) : e; } var wte = (e, t) => { if (typeof e > "u") return (ou.warn("Too many skip or undefined component"), null); let r = e, n = r.type; for (let i = 0; i < t?.skip; i += 1) { if (typeof r > "u") return (ou.warn("Cannot skip undefined element"), null); if ($t.Children.count(r) > 1) return (ou.warn("Trying to skip an array of elements"), null); typeof r.props.children > "u" ? (ou.warn("Not enough children to skip elements."), typeof r.type == "function" && r.type.name === "" && (r = $t.createElement(n, { ...r.props }))) : typeof r.props.children == "function" ? (r = r.props.children()) : (r = r.props.children); } let a; typeof t?.displayName == "string" ? (a = { showFunctions: !0, displayName: () => t.displayName }) : (a = { displayName: (i) => i.type.displayName ? i.type.displayName : nc(i.type, "displayName") ? nc(i.type, "displayName") : i.type.render?.displayName ? i.type.render.displayName : typeof i.type == "symbol" || (i.type.$$typeof && typeof i.type.$$typeof == "symbol") ? Cte(i.type) : i.type.name && i.type.name !== "_default" ? i.type.name : typeof i.type == "function" ? "No Display Name" : cQ(i.type) ? i.type.render.name : Wq(i.type) ? i.type.type.name : i.type, }); let o = { ...a, filterProps: (i, u) => i !== void 0, ...t }; return $t.Children.map(e, (i) => { let u = typeof i == "number" ? i.toString() : i, l = (typeof Wp == "function" ? Wp : Wp.default)(qy(u), o); if (l.indexOf(""") > -1) { let c = l.match(/\S+=\\"([^"]*)\\"/g); c && c.forEach((d) => { l = l.replace(d, d.replace(/"/g, "'")); }); } return l; }) .join( ` `, ) .replace(/function\s+noRefCheck\(\)\s*\{\}/g, "() => {}"); }, Ate = { skip: 0, showFunctions: !1, enableBeautify: !0, showDefaultProps: !1, }, Ste = (e) => { let t = e?.parameters.docs?.source, r = e?.parameters.__isArgsStory; return t?.type === wy.DYNAMIC ? !1 : !r || t?.code || t?.type === wy.CODE; }, xte = (e) => e.type?.displayName === "MDXCreateElement" && !!e.props?.mdxType, AB = (e) => { if (!xte(e)) return e; let { mdxType: t, originalType: r, children: n, ...a } = e.props, o = []; return ( n && (o = (Array.isArray(n) ? n : [n]).map(AB)), lt.createElement(r, a, ...o) ); }, SB = (e, t) => { let r = gte(void 0), n = e(), a = Ste(t), o = { ...Ate, ...(t?.parameters.jsx || {}) }, i = t.originalStoryFn(t.args, t); return ( bte(() => { if (a) return; let u = AB(i), l = wte(u, o); l && r.current !== l && (vte(l, t), (r.current = l)); }), n ); }, xB = (e, t) => { let r = t.findIndex((a) => a.originalFn === SB), n = r === -1 ? t : [...t.splice(r, 1), ...t]; return rE(e, n); }, PB = [SB], RB = { docs: { story: { inline: !0 } } }; const Pte = Object.freeze( Object.defineProperty( { __proto__: null, applyDecorators: xB, decorators: PB, parameters: RB }, Symbol.toStringTag, { value: "Module" }, ), ); var Rte = lt.createContext({}), Tte = (e, { parameters: t }) => t.nextjs?.image ? lt.createElement( Rte.Provider, { value: t.nextjs.image }, lt.createElement(e, null), ) : lt.createElement(e, null), Ote = Object.defineProperty, Dte = (e, t) => { for (var r in t) Ote(e, r, { get: t[r], enumerable: !0 }); }, iu = { exports: {} }, Jp = {}, Xp = {}, vw; function ca() { if (vw) return Xp; vw = 1; function e(t) { return t && t.__esModule ? t : { default: t }; } return ((Xp._ = e), Xp); } var Ew; function TB() { return ( Ew || ((Ew = 1), (function (e) { "use client"; Object.defineProperty(e, "__esModule", { value: !0 }); function t(c, d) { for (var p in d) Object.defineProperty(c, p, { enumerable: !0, get: d[p] }); } t(e, { AppRouterContext: function () { return a; }, GlobalLayoutRouterContext: function () { return i; }, LayoutRouterContext: function () { return o; }, MissingSlotContext: function () { return l; }, TemplateContext: function () { return u; }, }); const n = ca()._(yr()), a = n.default.createContext(null), o = n.default.createContext(null), i = n.default.createContext(null), u = n.default.createContext(null), l = n.default.createContext(new Set()); })(Jp)), Jp ); } var Kp = {}, _w; function OB() { return ( _w || ((_w = 1), (function (e) { "use client"; Object.defineProperty(e, "__esModule", { value: !0 }); function t(i, u) { for (var l in u) Object.defineProperty(i, l, { enumerable: !0, get: u[l] }); } t(e, { PathParamsContext: function () { return o; }, PathnameContext: function () { return a; }, SearchParamsContext: function () { return n; }, }); const r = yr(), n = (0, r.createContext)(null), a = (0, r.createContext)(null), o = (0, r.createContext)(null); })(Kp)), Kp ); } var su = { exports: {} }, Cw; function Fte() { return ( Cw || ((Cw = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "getSegmentValue", { enumerable: !0, get: function () { return r; }, })); function r(n) { return Array.isArray(n) ? n[1] : n; } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(su, su.exports)), su.exports ); } var Yp = {}, ww; function PE() { return ( ww || ((ww = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(u, l) { for (var c in l) Object.defineProperty(u, c, { enumerable: !0, get: l[c] }); } t(e, { DEFAULT_SEGMENT_KEY: function () { return i; }, PAGE_SEGMENT_KEY: function () { return o; }, addSearchParamsIfPageSegment: function () { return a; }, isGroupSegment: function () { return r; }, isParallelRouteSegment: function () { return n; }, }); function r(u) { return u[0] === "(" && u.endsWith(")"); } function n(u) { return u.startsWith("@") && u !== "@children"; } function a(u, l) { if (u.includes(o)) { const d = JSON.stringify(l); return d !== "{}" ? o + "?" + d : o; } return u; } const o = "__PAGE__", i = "__DEFAULT__"; })(Yp)), Yp ); } var uu = { exports: {} }, lu = { exports: {} }, cu = { exports: {} }, Aw; function RE() { return ( Aw || ((Aw = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "RedirectStatusCode", { enumerable: !0, get: function () { return r; }, })); var r = (function (n) { return ( (n[(n.SeeOther = 303)] = "SeeOther"), (n[(n.TemporaryRedirect = 307)] = "TemporaryRedirect"), (n[(n.PermanentRedirect = 308)] = "PermanentRedirect"), n ); })({}); (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(cu, cu.exports)), cu.exports ); } var du = { exports: {} }, Sw; function Yd() { return ( Sw || ((Sw = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(u, l) { for (var c in l) Object.defineProperty(u, c, { enumerable: !0, get: l[c] }); } r(t, { REDIRECT_ERROR_CODE: function () { return a; }, RedirectType: function () { return o; }, isRedirectError: function () { return i; }, }); const n = RE(), a = "NEXT_REDIRECT"; var o = (function (u) { return ((u.push = "push"), (u.replace = "replace"), u); })({}); function i(u) { if ( typeof u != "object" || u === null || !("digest" in u) || typeof u.digest != "string" ) return !1; const l = u.digest.split(";"), [c, d] = l, p = l.slice(2, -2).join(";"), f = l.at(-2), h = Number(f); return ( c === a && (d === "replace" || d === "push") && typeof p == "string" && !isNaN(h) && h in n.RedirectStatusCode ); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(du, du.exports)), du.exports ); } var Qp = {}, Zp = {}, ef = {}, xw; function TE() { return ( xw || ((xw = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(l, c) { for (var d in c) Object.defineProperty(l, d, { enumerable: !0, get: c[d] }); } t(e, { bindSnapshot: function () { return i; }, createAsyncLocalStorage: function () { return o; }, createSnapshot: function () { return u; }, }); const r = Object.defineProperty( new Error( "Invariant: AsyncLocalStorage accessed in runtime where it is not available", ), "__NEXT_ERROR_CODE", { value: "E504", enumerable: !1, configurable: !0 }, ); class n { disable() { throw r; } getStore() {} run() { throw r; } exit() { throw r; } enterWith() { throw r; } static bind(c) { return c; } } const a = typeof globalThis < "u" && globalThis.AsyncLocalStorage; function o() { return a ? new a() : new n(); } function i(l) { return a ? a.bind(l) : n.bind(l); } function u() { return a ? a.snapshot() : function (l, ...c) { return l(...c); }; } })(ef)), ef ); } var Pw; function Ite() { return ( Pw || ((Pw = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "actionAsyncStorageInstance", { enumerable: !0, get: function () { return r; }, })); const r = (0, TE().createAsyncLocalStorage)(); })(Zp)), Zp ); } var Rw; function Nte() { return ( Rw || ((Rw = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "actionAsyncStorage", { enumerable: !0, get: function () { return t.actionAsyncStorageInstance; }, })); const t = Ite(); })(Qp)), Qp ); } var Tw; function OE() { return ( Tw || ((Tw = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(f, h) { for (var m in h) Object.defineProperty(f, m, { enumerable: !0, get: h[m] }); } r(t, { getRedirectError: function () { return i; }, getRedirectStatusCodeFromError: function () { return p; }, getRedirectTypeFromError: function () { return d; }, getURLFromRedirectError: function () { return c; }, permanentRedirect: function () { return l; }, redirect: function () { return u; }, }); const n = RE(), a = Yd(), o = typeof window > "u" ? Nte().actionAsyncStorage : void 0; function i(f, h, m) { m === void 0 && (m = n.RedirectStatusCode.TemporaryRedirect); const y = Object.defineProperty( new Error(a.REDIRECT_ERROR_CODE), "__NEXT_ERROR_CODE", { value: "E394", enumerable: !1, configurable: !0 }, ); return ( (y.digest = a.REDIRECT_ERROR_CODE + ";" + h + ";" + f + ";" + m + ";"), y ); } function u(f, h) { var m; throw ( h ?? (h = !(o == null || (m = o.getStore()) == null) && m.isAction ? a.RedirectType.push : a.RedirectType.replace), i(f, h, n.RedirectStatusCode.TemporaryRedirect) ); } function l(f, h) { throw ( h === void 0 && (h = a.RedirectType.replace), i(f, h, n.RedirectStatusCode.PermanentRedirect) ); } function c(f) { return (0, a.isRedirectError)(f) ? f.digest.split(";").slice(2, -2).join(";") : null; } function d(f) { if (!(0, a.isRedirectError)(f)) throw Object.defineProperty( new Error("Not a redirect error"), "__NEXT_ERROR_CODE", { value: "E260", enumerable: !1, configurable: !0 }, ); return f.digest.split(";", 2)[1]; } function p(f) { if (!(0, a.isRedirectError)(f)) throw Object.defineProperty( new Error("Not a redirect error"), "__NEXT_ERROR_CODE", { value: "E260", enumerable: !1, configurable: !0 }, ); return Number(f.digest.split(";").at(-2)); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(lu, lu.exports)), lu.exports ); } var pu = { exports: {} }, fu = { exports: {} }, Ow; function Qd() { return ( Ow || ((Ow = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(c, d) { for (var p in d) Object.defineProperty(c, p, { enumerable: !0, get: d[p] }); } r(t, { HTTPAccessErrorStatus: function () { return n; }, HTTP_ERROR_FALLBACK_ERROR_CODE: function () { return o; }, getAccessFallbackErrorTypeByStatus: function () { return l; }, getAccessFallbackHTTPStatus: function () { return u; }, isHTTPAccessFallbackError: function () { return i; }, }); const n = { NOT_FOUND: 404, FORBIDDEN: 403, UNAUTHORIZED: 401 }, a = new Set(Object.values(n)), o = "NEXT_HTTP_ERROR_FALLBACK"; function i(c) { if ( typeof c != "object" || c === null || !("digest" in c) || typeof c.digest != "string" ) return !1; const [d, p] = c.digest.split(";"); return d === o && a.has(Number(p)); } function u(c) { const d = c.digest.split(";")[1]; return Number(d); } function l(c) { switch (c) { case 401: return "unauthorized"; case 403: return "forbidden"; case 404: return "not-found"; default: return; } } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(fu, fu.exports)), fu.exports ); } var Dw; function jte() { return ( Dw || ((Dw = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "notFound", { enumerable: !0, get: function () { return a; }, })); const n = "" + Qd().HTTP_ERROR_FALLBACK_ERROR_CODE + ";404"; function a() { const o = Object.defineProperty(new Error(n), "__NEXT_ERROR_CODE", { value: "E394", enumerable: !1, configurable: !0, }); throw ((o.digest = n), o); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(pu, pu.exports)), pu.exports ); } var hu = { exports: {} }, Fw; function kte() { return ( Fw || ((Fw = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "forbidden", { enumerable: !0, get: function () { return n; }, }), "" + Qd().HTTP_ERROR_FALLBACK_ERROR_CODE); function n() { throw Object.defineProperty( new Error( "`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled.", ), "__NEXT_ERROR_CODE", { value: "E488", enumerable: !1, configurable: !0 }, ); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(hu, hu.exports)), hu.exports ); } var mu = { exports: {} }, Iw; function qte() { return ( Iw || ((Iw = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "unauthorized", { enumerable: !0, get: function () { return n; }, }), "" + Qd().HTTP_ERROR_FALLBACK_ERROR_CODE); function n() { throw Object.defineProperty( new Error( "`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled.", ), "__NEXT_ERROR_CODE", { value: "E411", enumerable: !1, configurable: !0 }, ); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(mu, mu.exports)), mu.exports ); } var yu = { exports: {} }, gu = { exports: {} }, tf = {}, Nw; function DB() { return ( Nw || ((Nw = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(u, l) { for (var c in l) Object.defineProperty(u, c, { enumerable: !0, get: l[c] }); } t(e, { isHangingPromiseRejectionError: function () { return r; }, makeHangingPromise: function () { return o; }, }); function r(u) { return typeof u != "object" || u === null || !("digest" in u) ? !1 : u.digest === n; } const n = "HANGING_PROMISE_REJECTION"; class a extends Error { constructor(l) { (super( `During prerendering, ${l} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${l} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`, ), (this.expression = l), (this.digest = n)); } } function o(u, l) { const c = new Promise((d, p) => { u.addEventListener( "abort", () => { p(new a(l)); }, { once: !0 }, ); }); return (c.catch(i), c); } function i() {} })(tf)), tf ); } var rf = {}, jw; function Mte() { return ( jw || ((jw = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "isPostpone", { enumerable: !0, get: function () { return r; }, })); const t = Symbol.for("react.postpone"); function r(n) { return typeof n == "object" && n !== null && n.$$typeof === t; } })(rf)), rf ); } var nf = {}, kw; function DE() { return ( kw || ((kw = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(o, i) { for (var u in i) Object.defineProperty(o, u, { enumerable: !0, get: i[u] }); } t(e, { BailoutToCSRError: function () { return n; }, isBailoutToCSRError: function () { return a; }, }); const r = "BAILOUT_TO_CLIENT_SIDE_RENDERING"; class n extends Error { constructor(i) { (super("Bail out to client-side rendering: " + i), (this.reason = i), (this.digest = r)); } } function a(o) { return typeof o != "object" || o === null || !("digest" in o) ? !1 : o.digest === r; } })(nf)), nf ); } var bu = { exports: {} }, qw; function FE() { return ( qw || ((qw = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "isNextRouterError", { enumerable: !0, get: function () { return a; }, })); const r = Qd(), n = Yd(); function a(o) { return ( (0, n.isRedirectError)(o) || (0, r.isHTTPAccessFallbackError)(o) ); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(bu, bu.exports)), bu.exports ); } var af = {}, vu = { exports: {} }, Mw; function FB() { return ( Mw || ((Mw = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(i, u) { for (var l in u) Object.defineProperty(i, l, { enumerable: !0, get: u[l] }); } r(t, { DynamicServerError: function () { return a; }, isDynamicServerError: function () { return o; }, }); const n = "DYNAMIC_SERVER_USAGE"; class a extends Error { constructor(u) { (super("Dynamic server usage: " + u), (this.description = u), (this.digest = n)); } } function o(i) { return typeof i != "object" || i === null || !("digest" in i) || typeof i.digest != "string" ? !1 : i.digest === n; } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(vu, vu.exports)), vu.exports ); } var Eu = { exports: {} }, Bw; function Bte() { return ( Bw || ((Bw = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(i, u) { for (var l in u) Object.defineProperty(i, l, { enumerable: !0, get: u[l] }); } r(t, { StaticGenBailoutError: function () { return a; }, isStaticGenBailoutError: function () { return o; }, }); const n = "NEXT_STATIC_GEN_BAILOUT"; class a extends Error { constructor(...u) { (super(...u), (this.code = n)); } } function o(i) { return typeof i != "object" || i === null || !("code" in i) ? !1 : i.code === n; } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Eu, Eu.exports)), Eu.exports ); } var of = {}, sf = {}, Lw; function Lte() { return ( Lw || ((Lw = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "workUnitAsyncStorageInstance", { enumerable: !0, get: function () { return r; }, })); const r = (0, TE().createAsyncLocalStorage)(); })(sf)), sf ); } var $w; function $te() { return ( $w || (($w = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(u, l) { for (var c in l) Object.defineProperty(u, c, { enumerable: !0, get: l[c] }); } t(e, { getExpectedRequestStore: function () { return n; }, getHmrRefreshHash: function () { return i; }, getPrerenderResumeDataCache: function () { return a; }, getRenderResumeDataCache: function () { return o; }, workUnitAsyncStorage: function () { return r.workUnitAsyncStorageInstance; }, }); const r = Lte(); function n(u) { const l = r.workUnitAsyncStorageInstance.getStore(); if (l) { if (l.type === "request") return l; if ( l.type === "prerender" || l.type === "prerender-ppr" || l.type === "prerender-legacy" ) throw Object.defineProperty( new Error( `\`${u}\` cannot be called inside a prerender. This is a bug in Next.js.`, ), "__NEXT_ERROR_CODE", { value: "E401", enumerable: !1, configurable: !0 }, ); if (l.type === "cache") throw Object.defineProperty( new Error( `\`${u}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`, ), "__NEXT_ERROR_CODE", { value: "E37", enumerable: !1, configurable: !0 }, ); if (l.type === "unstable-cache") throw Object.defineProperty( new Error( `\`${u}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`, ), "__NEXT_ERROR_CODE", { value: "E69", enumerable: !1, configurable: !0 }, ); } throw Object.defineProperty( new Error( `\`${u}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`, ), "__NEXT_ERROR_CODE", { value: "E251", enumerable: !1, configurable: !0 }, ); } function a(u) { return u.type === "prerender" || u.type === "prerender-ppr" ? u.prerenderResumeDataCache : null; } function o(u) { return u.type !== "prerender-legacy" && u.type !== "cache" && u.type !== "unstable-cache" ? u.type === "request" ? u.renderResumeDataCache : u.prerenderResumeDataCache : null; } function i(u) { var l; return u.type === "cache" ? u.hmrRefreshHash : u.type === "request" ? (l = u.cookies.get("__next_hmr_refresh_hash__")) == null ? void 0 : l.value : void 0; } })(of)), of ); } var uf = {}, lf = {}, Uw; function Ute() { return ( Uw || ((Uw = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "workAsyncStorageInstance", { enumerable: !0, get: function () { return r; }, })); const r = (0, TE().createAsyncLocalStorage)(); })(lf)), lf ); } var Hw; function IB() { return ( Hw || ((Hw = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "workAsyncStorage", { enumerable: !0, get: function () { return t.workAsyncStorageInstance; }, })); const t = Ute(); })(uf)), uf ); } var cf = {}, Vw; function Hte() { return ( Vw || ((Vw = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(o, i) { for (var u in i) Object.defineProperty(o, u, { enumerable: !0, get: i[u] }); } t(e, { METADATA_BOUNDARY_NAME: function () { return r; }, OUTLET_BOUNDARY_NAME: function () { return a; }, VIEWPORT_BOUNDARY_NAME: function () { return n; }, }); const r = "__next_metadata_boundary__", n = "__next_viewport_boundary__", a = "__next_outlet_boundary__"; })(cf)), cf ); } var df = {}, zw; function Vte() { return ( zw || ((zw = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(i, u) { for (var l in u) Object.defineProperty(i, l, { enumerable: !0, get: u[l] }); } t(e, { atLeastOneTask: function () { return a; }, scheduleImmediate: function () { return n; }, scheduleOnNextTick: function () { return r; }, waitAtLeastOneReactRenderTask: function () { return o; }, }); const r = (i) => { Promise.resolve().then(() => { process.nextTick(i); }); }, n = (i) => { setImmediate(i); }; function a() { return new Promise((i) => n(i)); } function o() { return new Promise((i) => setImmediate(i)); } })(df)), df ); } var Gw; function NB() { return ( Gw || ((Gw = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(z, ne) { for (var ue in ne) Object.defineProperty(z, ue, { enumerable: !0, get: ne[ue] }); } t(e, { Postpone: function () { return _; }, abortAndThrowOnSynchronousRequestDataAccess: function () { return C; }, abortOnSynchronousPlatformIOAccess: function () { return A; }, accessedDynamicData: function () { return I; }, annotateDynamicAccess: function () { return V; }, consumeDynamicAccess: function () { return W; }, createDynamicTrackingState: function () { return f; }, createDynamicValidationState: function () { return h; }, createHangingInputAbortSignal: function () { return K; }, createPostponedAbortSignal: function () { return H; }, formatDynamicAPIAccesses: function () { return Q; }, getFirstDynamicReason: function () { return m; }, isDynamicPostpone: function () { return F; }, isPrerenderInterruptedError: function () { return k; }, markCurrentScopeAsDynamic: function () { return y; }, postponeWithTracking: function () { return P; }, throwIfDisallowedDynamic: function () { return Ke; }, throwToInterruptStaticGeneration: function () { return g; }, trackAllowedDynamicAccess: function () { return be; }, trackDynamicDataInDynamicRender: function () { return v; }, trackFallbackParamAccessed: function () { return b; }, trackSynchronousPlatformIOAccessInDev: function () { return w; }, trackSynchronousRequestDataAccessInDev: function () { return E; }, useDynamicRouteParams: function () { return Z; }, }); const r = d(yr()), n = FB(), a = Bte(), o = $te(), i = IB(), u = DB(), l = Hte(), c = Vte(); function d(z) { return z && z.__esModule ? z : { default: z }; } const p = typeof r.default.unstable_postpone == "function"; function f(z) { return { isDebugDynamicAccesses: z, dynamicAccesses: [], syncDynamicExpression: void 0, syncDynamicErrorWithStack: null, }; } function h() { return { hasSuspendedDynamic: !1, hasDynamicMetadata: !1, hasDynamicViewport: !1, hasSyncDynamicErrors: !1, dynamicErrors: [], }; } function m(z) { var ne; return (ne = z.dynamicAccesses[0]) == null ? void 0 : ne.expression; } function y(z, ne, ue) { if ( !(ne && (ne.type === "cache" || ne.type === "unstable-cache")) && !(z.forceDynamic || z.forceStatic) ) { if (z.dynamicShouldError) throw Object.defineProperty( new a.StaticGenBailoutError( `Route ${z.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${ue}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`, ), "__NEXT_ERROR_CODE", { value: "E553", enumerable: !1, configurable: !0 }, ); if (ne) { if (ne.type === "prerender-ppr") P(z.route, ue, ne.dynamicTracking); else if (ne.type === "prerender-legacy") { ne.revalidate = 0; const te = Object.defineProperty( new n.DynamicServerError( `Route ${z.route} couldn't be rendered statically because it used ${ue}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`, ), "__NEXT_ERROR_CODE", { value: "E550", enumerable: !1, configurable: !0 }, ); throw ( (z.dynamicUsageDescription = ue), (z.dynamicUsageStack = te.stack), te ); } } } } function b(z, ne) { const ue = o.workUnitAsyncStorage.getStore(); !ue || ue.type !== "prerender-ppr" || P(z.route, ne, ue.dynamicTracking); } function g(z, ne, ue) { const te = Object.defineProperty( new n.DynamicServerError( `Route ${ne.route} couldn't be rendered statically because it used \`${z}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`, ), "__NEXT_ERROR_CODE", { value: "E558", enumerable: !1, configurable: !0 }, ); throw ( (ue.revalidate = 0), (ne.dynamicUsageDescription = z), (ne.dynamicUsageStack = te.stack), te ); } function v(z, ne) { if (ne) { if (ne.type === "cache" || ne.type === "unstable-cache") return; (ne.type === "prerender" || ne.type === "prerender-legacy") && (ne.revalidate = 0); } } function x(z, ne, ue) { const te = `Route ${z} needs to bail out of prerendering at this point because it used ${ne}.`, ae = T(te); ue.controller.abort(ae); const ee = ue.dynamicTracking; ee && ee.dynamicAccesses.push({ stack: ee.isDebugDynamicAccesses ? new Error().stack : void 0, expression: ne, }); } function A(z, ne, ue, te) { const ae = te.dynamicTracking; return ( ae && ae.syncDynamicErrorWithStack === null && ((ae.syncDynamicExpression = ne), (ae.syncDynamicErrorWithStack = ue)), x(z, ne, te) ); } function w(z) { z.prerenderPhase = !1; } function C(z, ne, ue, te) { const ae = te.dynamicTracking; throw ( ae && ae.syncDynamicErrorWithStack === null && ((ae.syncDynamicExpression = ne), (ae.syncDynamicErrorWithStack = ue), te.validating === !0 && (ae.syncDynamicLogged = !0)), x(z, ne, te), T( `Route ${z} needs to bail out of prerendering at this point because it used ${ne}.`, ) ); } const E = w; function _({ reason: z, route: ne }) { const ue = o.workUnitAsyncStorage.getStore(), te = ue && ue.type === "prerender-ppr" ? ue.dynamicTracking : null; P(ne, z, te); } function P(z, ne, ue) { (se(), ue && ue.dynamicAccesses.push({ stack: ue.isDebugDynamicAccesses ? new Error().stack : void 0, expression: ne, }), r.default.unstable_postpone(D(z, ne))); } function D(z, ne) { return `Route ${z} needs to bail out of prerendering at this point because it used ${ne}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`; } function F(z) { return typeof z == "object" && z !== null && typeof z.message == "string" ? L(z.message) : !1; } function L(z) { return ( z.includes( "needs to bail out of prerendering at this point because it used", ) && z.includes( "Learn more: https://nextjs.org/docs/messages/ppr-caught-error", ) ); } if (L(D("%%%", "^^^")) === !1) throw Object.defineProperty( new Error( "Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js", ), "__NEXT_ERROR_CODE", { value: "E296", enumerable: !1, configurable: !0 }, ); const q = "NEXT_PRERENDER_INTERRUPTED"; function T(z) { const ne = Object.defineProperty(new Error(z), "__NEXT_ERROR_CODE", { value: "E394", enumerable: !1, configurable: !0, }); return ((ne.digest = q), ne); } function k(z) { return ( typeof z == "object" && z !== null && z.digest === q && "name" in z && "message" in z && z instanceof Error ); } function I(z) { return z.length > 0; } function W(z, ne) { return ( z.dynamicAccesses.push(...ne.dynamicAccesses), z.dynamicAccesses ); } function Q(z) { return z .filter((ne) => typeof ne.stack == "string" && ne.stack.length > 0) .map( ({ expression: ne, stack: ue }) => ( (ue = ue .split( ` `, ) .slice(4) .filter( (te) => !( te.includes("node_modules/next/") || te.includes(" ()") || te.includes(" (node:") ), ).join(` `)), `Dynamic API Usage Debug - ${ne}: ${ue}` ), ); } function se() { if (!p) throw Object.defineProperty( new Error( "Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js", ), "__NEXT_ERROR_CODE", { value: "E224", enumerable: !1, configurable: !0 }, ); } function H(z) { se(); const ne = new AbortController(); try { r.default.unstable_postpone(z); } catch (ue) { ne.abort(ue); } return ne.signal; } function K(z) { const ne = new AbortController(); return ( z.cacheSignal ? z.cacheSignal.inputReady().then(() => { ne.abort(); }) : (0, c.scheduleOnNextTick)(() => ne.abort()), ne.signal ); } function V(z, ne) { const ue = ne.dynamicTracking; ue && ue.dynamicAccesses.push({ stack: ue.isDebugDynamicAccesses ? new Error().stack : void 0, expression: z, }); } function Z(z) { const ne = i.workAsyncStorage.getStore(); if ( ne && ne.isStaticGeneration && ne.fallbackRouteParams && ne.fallbackRouteParams.size > 0 ) { const ue = o.workUnitAsyncStorage.getStore(); ue && (ue.type === "prerender" ? r.default.use((0, u.makeHangingPromise)(ue.renderSignal, z)) : ue.type === "prerender-ppr" ? P(ne.route, z, ue.dynamicTracking) : ue.type === "prerender-legacy" && g(z, ne, ue)); } } const re = /\n\s+at Suspense \(\)/, he = new RegExp(`\\n\\s+at ${l.METADATA_BOUNDARY_NAME}[\\n\\s]`), oe = new RegExp(`\\n\\s+at ${l.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), ge = new RegExp(`\\n\\s+at ${l.OUTLET_BOUNDARY_NAME}[\\n\\s]`); function be(z, ne, ue, te, ae) { if (!ge.test(ne)) if (he.test(ne)) { ue.hasDynamicMetadata = !0; return; } else if (oe.test(ne)) { ue.hasDynamicViewport = !0; return; } else if (re.test(ne)) { ue.hasSuspendedDynamic = !0; return; } else if ( te.syncDynamicErrorWithStack || ae.syncDynamicErrorWithStack ) { ue.hasSyncDynamicErrors = !0; return; } else { const ee = `Route "${z}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`, fe = rt(ee, ne); ue.dynamicErrors.push(fe); return; } } function rt(z, ne) { const ue = Object.defineProperty(new Error(z), "__NEXT_ERROR_CODE", { value: "E394", enumerable: !1, configurable: !0, }); return ((ue.stack = "Error: " + z + ne), ue); } function Ke(z, ne, ue, te) { let ae, ee, fe; if ( (ue.syncDynamicErrorWithStack ? ((ae = ue.syncDynamicErrorWithStack), (ee = ue.syncDynamicExpression), (fe = ue.syncDynamicLogged === !0)) : te.syncDynamicErrorWithStack ? ((ae = te.syncDynamicErrorWithStack), (ee = te.syncDynamicExpression), (fe = te.syncDynamicLogged === !0)) : ((ae = null), (ee = void 0), (fe = !1)), ne.hasSyncDynamicErrors && ae) ) throw (fe || console.error(ae), new a.StaticGenBailoutError()); const we = ne.dynamicErrors; if (we.length) { for (let Pe = 0; Pe < we.length; Pe++) console.error(we[Pe]); throw new a.StaticGenBailoutError(); } if (!ne.hasSuspendedDynamic) { if (ne.hasDynamicMetadata) throw ae ? (console.error(ae), Object.defineProperty( new a.StaticGenBailoutError( `Route "${z}" has a \`generateMetadata\` that could not finish rendering before ${ee} was used. Follow the instructions in the error for this expression to resolve.`, ), "__NEXT_ERROR_CODE", { value: "E608", enumerable: !1, configurable: !0 }, )) : Object.defineProperty( new a.StaticGenBailoutError( `Route "${z}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateMetadata\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`, ), "__NEXT_ERROR_CODE", { value: "E534", enumerable: !1, configurable: !0 }, ); if (ne.hasDynamicViewport) throw ae ? (console.error(ae), Object.defineProperty( new a.StaticGenBailoutError( `Route "${z}" has a \`generateViewport\` that could not finish rendering before ${ee} was used. Follow the instructions in the error for this expression to resolve.`, ), "__NEXT_ERROR_CODE", { value: "E573", enumerable: !1, configurable: !0 }, )) : Object.defineProperty( new a.StaticGenBailoutError( `Route "${z}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateViewport\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`, ), "__NEXT_ERROR_CODE", { value: "E590", enumerable: !1, configurable: !0 }, ); } } })(af)), af ); } var Ww; function zte() { return ( Ww || ((Ww = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "unstable_rethrow", { enumerable: !0, get: function () { return l; }, })); const r = DB(), n = Mte(), a = DE(), o = FE(), i = NB(), u = FB(); function l(c) { if ( (0, o.isNextRouterError)(c) || (0, a.isBailoutToCSRError)(c) || (0, u.isDynamicServerError)(c) || (0, i.isDynamicPostpone)(c) || (0, n.isPostpone)(c) || (0, r.isHangingPromiseRejectionError)(c) ) throw c; c instanceof Error && "cause" in c && l(c.cause); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(gu, gu.exports)), gu.exports ); } var _u = { exports: {} }, Jw; function Gte() { return ( Jw || ((Jw = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "unstable_rethrow", { enumerable: !0, get: function () { return a; }, })); const r = DE(), n = FE(); function a(o) { if ((0, n.isNextRouterError)(o) || (0, r.isBailoutToCSRError)(o)) throw o; o instanceof Error && "cause" in o && a(o.cause); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(_u, _u.exports)), _u.exports ); } var Xw; function Wte() { return ( Xw || ((Xw = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "unstable_rethrow", { enumerable: !0, get: function () { return r; }, })); const r = typeof window > "u" ? zte().unstable_rethrow : Gte().unstable_rethrow; (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(yu, yu.exports)), yu.exports ); } var Kw; function Jte() { return ( Kw || ((Kw = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(p, f) { for (var h in f) Object.defineProperty(p, h, { enumerable: !0, get: f[h] }); } r(t, { ReadonlyURLSearchParams: function () { return d; }, RedirectType: function () { return a.RedirectType; }, forbidden: function () { return i.forbidden; }, notFound: function () { return o.notFound; }, permanentRedirect: function () { return n.permanentRedirect; }, redirect: function () { return n.redirect; }, unauthorized: function () { return u.unauthorized; }, unstable_rethrow: function () { return l.unstable_rethrow; }, }); const n = OE(), a = Yd(), o = jte(), i = kte(), u = qte(), l = Wte(); class c extends Error { constructor() { super( "Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams", ); } } class d extends URLSearchParams { append() { throw new c(); } delete() { throw new c(); } set() { throw new c(); } sort() { throw new c(); } } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(uu, uu.exports)), uu.exports ); } var pf = {}, ff = {}, Yw; function $s() { if (Yw) return ff; Yw = 1; function e(r) { if (typeof WeakMap != "function") return null; var n = new WeakMap(), a = new WeakMap(); return (e = function (o) { return o ? a : n; })(r); } function t(r, n) { if (!n && r && r.__esModule) return r; if (r === null || (typeof r != "object" && typeof r != "function")) return { default: r }; var a = e(n); if (a && a.has(r)) return a.get(r); var o = { __proto__: null }, i = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in r) if (u !== "default" && Object.prototype.hasOwnProperty.call(r, u)) { var l = i ? Object.getOwnPropertyDescriptor(r, u) : null; l && (l.get || l.set) ? Object.defineProperty(o, u, l) : (o[u] = r[u]); } return ((o.default = r), a && a.set(r, o), o); } return ((ff._ = t), ff); } var Qw; function Xte() { return ( Qw || ((Qw = 1), (function (e) { "use client"; Object.defineProperty(e, "__esModule", { value: !0 }); function t(i, u) { for (var l in u) Object.defineProperty(i, l, { enumerable: !0, get: u[l] }); } t(e, { ServerInsertedHTMLContext: function () { return a; }, useServerInsertedHTML: function () { return o; }, }); const n = $s()._(yr()), a = n.default.createContext(null); function o(i) { const u = (0, n.useContext)(a); u && u(i); } })(pf)), pf ); } var Cu = { exports: {} }, Zw; function Kte() { return ( Zw || ((Zw = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "bailoutToClientRendering", { enumerable: !0, get: function () { return a; }, })); const r = DE(), n = IB(); function a(o) { const i = n.workAsyncStorage.getStore(); if (!i?.forceStatic && i?.isStaticGeneration) throw Object.defineProperty( new r.BailoutToCSRError(o), "__NEXT_ERROR_CODE", { value: "E394", enumerable: !1, configurable: !0 }, ); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Cu, Cu.exports)), Cu.exports ); } var eA; function jB() { return ( eA || ((eA = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(v, x) { for (var A in x) Object.defineProperty(v, A, { enumerable: !0, get: x[A] }); } r(t, { ReadonlyURLSearchParams: function () { return l.ReadonlyURLSearchParams; }, RedirectType: function () { return l.RedirectType; }, ServerInsertedHTMLContext: function () { return c.ServerInsertedHTMLContext; }, forbidden: function () { return l.forbidden; }, notFound: function () { return l.notFound; }, permanentRedirect: function () { return l.permanentRedirect; }, redirect: function () { return l.redirect; }, unauthorized: function () { return l.unauthorized; }, unstable_rethrow: function () { return l.unstable_rethrow; }, useParams: function () { return m; }, usePathname: function () { return f; }, useRouter: function () { return h; }, useSearchParams: function () { return p; }, useSelectedLayoutSegment: function () { return g; }, useSelectedLayoutSegments: function () { return b; }, useServerInsertedHTML: function () { return c.useServerInsertedHTML; }, }); const n = yr(), a = TB(), o = OB(), i = Fte(), u = PE(), l = Jte(), c = Xte(), d = typeof window > "u" ? NB().useDynamicRouteParams : void 0; function p() { const v = (0, n.useContext)(o.SearchParamsContext), x = (0, n.useMemo)( () => (v ? new l.ReadonlyURLSearchParams(v) : null), [v], ); if (typeof window > "u") { const { bailoutToClientRendering: A } = Kte(); A("useSearchParams()"); } return x; } function f() { return (d?.("usePathname()"), (0, n.useContext)(o.PathnameContext)); } function h() { const v = (0, n.useContext)(a.AppRouterContext); if (v === null) throw Object.defineProperty( new Error("invariant expected app router to be mounted"), "__NEXT_ERROR_CODE", { value: "E238", enumerable: !1, configurable: !0 }, ); return v; } function m() { return (d?.("useParams()"), (0, n.useContext)(o.PathParamsContext)); } function y(v, x, A, w) { (A === void 0 && (A = !0), w === void 0 && (w = [])); let C; if (A) C = v[1][x]; else { const D = v[1]; var E; C = (E = D.children) != null ? E : Object.values(D)[0]; } if (!C) return w; const _ = C[0]; let P = (0, i.getSegmentValue)(_); return !P || P.startsWith(u.PAGE_SEGMENT_KEY) ? w : (w.push(P), y(C, x, !1, w)); } function b(v) { (v === void 0 && (v = "children"), d?.("useSelectedLayoutSegments()")); const x = (0, n.useContext)(a.LayoutRouterContext); return x ? y(x.parentTree, v) : null; } function g(v) { (v === void 0 && (v = "children"), d?.("useSelectedLayoutSegment()")); const x = b(v); if (!x || x.length === 0) return null; const A = v === "children" ? x[0] : x[x.length - 1]; return A === u.DEFAULT_SEGMENT_KEY ? null : A; } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(iu, iu.exports)), iu.exports ); } var fn = jB(), kB = RE(), qB = OE(); const { NextjsRouterMocksNotAvailable: Yte } = __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__, { fn: Xt } = __STORYBOOK_MODULE_TEST__; var oc, Qte = (e) => { const t = { push: Xt().mockName("next/navigation::useRouter().push"), replace: Xt().mockName("next/navigation::useRouter().replace"), forward: Xt().mockName("next/navigation::useRouter().forward"), back: Xt().mockName("next/navigation::useRouter().back"), prefetch: Xt().mockName("next/navigation::useRouter().prefetch"), refresh: Xt().mockName("next/navigation::useRouter().refresh"), }; if (e) for (const r of Object.keys(t)) r in e && (t[r] = Xt((...n) => e[r](...n)).mockName(`useRouter().${r}`)); return ((oc = t), oc); }, Zte = () => { if (!oc) throw new Yte({ importType: "next/navigation" }); return oc; }; Xt((e, t = fn.RedirectType.push) => { throw qB.getRedirectError(e, t, kB.RedirectStatusCode.SeeOther); }).mockName("next/navigation::redirect"); Xt((e, t = fn.RedirectType.push) => { throw qB.getRedirectError(e, t, kB.RedirectStatusCode.SeeOther); }).mockName("next/navigation::permanentRedirect"); Xt(fn.useSearchParams).mockName("next/navigation::useSearchParams"); Xt(fn.usePathname).mockName("next/navigation::usePathname"); Xt(fn.useSelectedLayoutSegment).mockName( "next/navigation::useSelectedLayoutSegment", ); Xt(fn.useSelectedLayoutSegments).mockName( "next/navigation::useSelectedLayoutSegments", ); Xt(fn.useRouter).mockName("next/navigation::useRouter"); Xt(fn.useServerInsertedHTML).mockName("next/navigation::useServerInsertedHTML"); Xt(fn.notFound).mockName("next/navigation::notFound"); Xt(fn.useParams).mockName("next/navigation::useParams"); var wu = { exports: {} }, hf = {}, mf = {}, tA; function Us() { return ( tA || ((tA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "removeTrailingSlash", { enumerable: !0, get: function () { return t; }, })); function t(r) { return r.replace(/\/$/, "") || "/"; } })(mf)), mf ); } var Au = { exports: {} }, yf = {}, rA; function ere() { return ( rA || ((rA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "default", { enumerable: !0, get: function () { return t; }, })); function t(r, n) { return ( n === void 0 && (n = ""), (r === "/" ? "/index" : /^\/index(\/|$)/.test(r) ? "/index" + r : r) + n ); } })(yf)), yf ); } var Su = { exports: {} }, nA; function tre() { return ( nA || ((nA = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "__unsafeCreateTrustedScriptURL", { enumerable: !0, get: function () { return a; }, })); let r; function n() { if (typeof r > "u" && typeof window < "u") { var o; r = ((o = window.trustedTypes) == null ? void 0 : o.createPolicy("nextjs", { createHTML: (i) => i, createScript: (i) => i, createScriptURL: (i) => i, })) || null; } return r; } function a(o) { var i; return ((i = n()) == null ? void 0 : i.createScriptURL(o)) || o; } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Su, Su.exports)), Su.exports ); } var xu = { exports: {} }, aA; function MB() { return ( aA || ((aA = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(o, i) { for (var u in i) Object.defineProperty(o, u, { enumerable: !0, get: i[u] }); } r(t, { cancelIdleCallback: function () { return a; }, requestIdleCallback: function () { return n; }, }); const n = (typeof self < "u" && self.requestIdleCallback && self.requestIdleCallback.bind(window)) || function (o) { let i = Date.now(); return self.setTimeout(function () { o({ didTimeout: !1, timeRemaining: function () { return Math.max(0, 50 - (Date.now() - i)); }, }); }, 1); }, a = (typeof self < "u" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window)) || function (o) { return clearTimeout(o); }; (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(xu, xu.exports)), xu.exports ); } var gf = {}, oA; function rre() { return ( oA || ((oA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getDeploymentIdQueryOrEmptyString", { enumerable: !0, get: function () { return t; }, })); function t() { return ""; } })(gf)), gf ); } var bf = {}, iA; function nre() { return ( iA || ((iA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "encodeURIPath", { enumerable: !0, get: function () { return t; }, })); function t(r) { return r .split("/") .map((n) => encodeURIComponent(n)) .join("/"); } })(bf)), bf ); } var sA; function are() { return ( sA || ((sA = 1), (function (e, t) { var r = {}; Object.defineProperty(t, "__esModule", { value: !0 }); function n(E, _) { for (var P in _) Object.defineProperty(E, P, { enumerable: !0, get: _[P] }); } n(t, { createRouteLoader: function () { return C; }, getClientBuildManifest: function () { return A; }, isAssetError: function () { return h; }, markAssetError: function () { return f; }, }); const a = ca(); ere(); const o = tre(), i = MB(), u = rre(), l = nre(), c = 3800; function d(E, _, P) { let D = _.get(E); if (D) return "future" in D ? D.future : Promise.resolve(D); let F; const L = new Promise((q) => { F = q; }); return ( _.set(E, { resolve: F, future: L }), P ? P() .then((q) => (F(q), q)) .catch((q) => { throw (_.delete(E), q); }) : L ); } const p = Symbol("ASSET_LOAD_ERROR"); function f(E) { return Object.defineProperty(E, p, {}); } function h(E) { return E && p in E; } function m(E) { try { return ( (E = document.createElement("link")), (!!window.MSInputMethodContext && !!document.documentMode) || E.relList.supports("prefetch") ); } catch { return !1; } } const y = m(), b = () => (0, u.getDeploymentIdQueryOrEmptyString)(); function g(E, _, P) { return new Promise((D, F) => { const L = ` link[rel="prefetch"][href^="` + E + `"], link[rel="preload"][href^="` + E + `"], script[src^="` + E + '"]'; if (document.querySelector(L)) return D(); ((P = document.createElement("link")), (P.as = _), (P.rel = "prefetch"), (P.crossOrigin = r.__NEXT_CROSS_ORIGIN), (P.onload = D), (P.onerror = () => F( f( Object.defineProperty( new Error("Failed to prefetch: " + E), "__NEXT_ERROR_CODE", { value: "E268", enumerable: !1, configurable: !0 }, ), ), )), (P.href = E), document.head.appendChild(P)); }); } function v(E, _) { return new Promise((P, D) => { ((_ = document.createElement("script")), (_.onload = P), (_.onerror = () => D( f( Object.defineProperty( new Error("Failed to load script: " + E), "__NEXT_ERROR_CODE", { value: "E74", enumerable: !1, configurable: !0 }, ), ), )), (_.crossOrigin = r.__NEXT_CROSS_ORIGIN), (_.src = E), document.body.appendChild(_)); }); } function x(E, _, P) { return new Promise((D, F) => { let L = !1; (E.then((q) => { ((L = !0), D(q)); }).catch(F), (0, i.requestIdleCallback)(() => setTimeout(() => { L || F(P); }, _), )); }); } function A() { if (self.__BUILD_MANIFEST) return Promise.resolve(self.__BUILD_MANIFEST); const E = new Promise((_) => { const P = self.__BUILD_MANIFEST_CB; self.__BUILD_MANIFEST_CB = () => { (_(self.__BUILD_MANIFEST), P && P()); }; }); return x( E, c, f( Object.defineProperty( new Error("Failed to load client build manifest"), "__NEXT_ERROR_CODE", { value: "E273", enumerable: !1, configurable: !0 }, ), ), ); } function w(E, _) { return A().then((P) => { if (!(_ in P)) throw f( Object.defineProperty( new Error("Failed to lookup route: " + _), "__NEXT_ERROR_CODE", { value: "E446", enumerable: !1, configurable: !0 }, ), ); const D = P[_].map((F) => E + "/_next/" + (0, l.encodeURIPath)(F)); return { scripts: D.filter((F) => F.endsWith(".js")).map( (F) => (0, o.__unsafeCreateTrustedScriptURL)(F) + b(), ), css: D.filter((F) => F.endsWith(".css")).map((F) => F + b()), }; }); } function C(E) { const _ = new Map(), P = new Map(), D = new Map(), F = new Map(); function L(T) { { let k = P.get(T.toString()); return ( k || (document.querySelector('script[src^="' + T + '"]') ? Promise.resolve() : (P.set(T.toString(), (k = v(T))), k)) ); } } function q(T) { let k = D.get(T); return ( k || (D.set( T, (k = fetch(T, { credentials: "same-origin" }) .then((I) => { if (!I.ok) throw Object.defineProperty( new Error("Failed to load stylesheet: " + T), "__NEXT_ERROR_CODE", { value: "E189", enumerable: !1, configurable: !0 }, ); return I.text().then((W) => ({ href: T, content: W })); }) .catch((I) => { throw f(I); })), ), k) ); } return { whenEntrypoint(T) { return d(T, _); }, onEntrypoint(T, k) { (k ? Promise.resolve() .then(() => k()) .then( (I) => ({ component: (I && I.default) || I, exports: I }), (I) => ({ error: I }), ) : Promise.resolve(void 0) ).then((I) => { const W = _.get(T); W && "resolve" in W ? I && (_.set(T, I), W.resolve(I)) : (I ? _.set(T, I) : _.delete(T), F.delete(T)); }); }, loadRoute(T, k) { return d(T, F, () => x( w(E, T) .then((I) => { let { scripts: W, css: Q } = I; return Promise.all([ _.has(T) ? [] : Promise.all(W.map(L)), Promise.all(Q.map(q)), ]); }) .then((I) => this.whenEntrypoint(T).then((W) => ({ entrypoint: W, styles: I[1], })), ), c, f( Object.defineProperty( new Error("Route did not complete loading: " + T), "__NEXT_ERROR_CODE", { value: "E12", enumerable: !1, configurable: !0 }, ), ), ) .then((I) => { let { entrypoint: W, styles: Q } = I; const se = Object.assign({ styles: Q }, W); return "error" in W ? W : se; }) .catch((I) => { if (k) throw I; return { error: I }; }) .finally(() => {}), ); }, prefetch(T) { let k; return (k = navigator.connection) && (k.saveData || /2g/.test(k.effectiveType)) ? Promise.resolve() : w(E, T) .then((I) => Promise.all( y ? I.scripts.map((W) => g(W.toString(), "script")) : [], ), ) .then(() => { (0, i.requestIdleCallback)(() => this.loadRoute(T, !0).catch(() => {}), ); }) .catch(() => {}); }, }; } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Au, Au.exports)), Au.exports ); } var Pu = { exports: {} }, vf = { exports: {} }, hi = {}; /** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var uA; function ore() { if (uA) return hi; uA = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment"); function r(n, a, o) { var i = null; if ( (o !== void 0 && (i = "" + o), a.key !== void 0 && (i = "" + a.key), "key" in a) ) { o = {}; for (var u in a) u !== "key" && (o[u] = a[u]); } else o = a; return ( (a = o.ref), { $$typeof: e, type: n, key: i, ref: a !== void 0 ? a : null, props: o } ); } return ((hi.Fragment = t), (hi.jsx = r), (hi.jsxs = r), hi); } var lA; function IE() { return (lA || ((lA = 1), (vf.exports = ore())), vf.exports); } var Ef = { exports: {} }, ar = {}; /** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var cA; function ire() { if (cA) return ar; cA = 1; var e = yr(); function t(l) { var c = "https://react.dev/errors/" + l; if (1 < arguments.length) { c += "?args[]=" + encodeURIComponent(arguments[1]); for (var d = 2; d < arguments.length; d++) c += "&args[]=" + encodeURIComponent(arguments[d]); } return ( "Minified React error #" + l + "; visit " + c + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } function r() {} var n = { d: { f: r, r: function () { throw Error(t(522)); }, D: r, C: r, L: r, m: r, X: r, S: r, M: r, }, p: 0, findDOMNode: null, }, a = Symbol.for("react.portal"); function o(l, c, d) { var p = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: a, key: p == null ? null : "" + p, children: l, containerInfo: c, implementation: d, }; } var i = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; function u(l, c) { if (l === "font") return ""; if (typeof c == "string") return c === "use-credentials" ? c : ""; } return ( (ar.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n), (ar.createPortal = function (l, c) { var d = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!c || (c.nodeType !== 1 && c.nodeType !== 9 && c.nodeType !== 11)) throw Error(t(299)); return o(l, c, null, d); }), (ar.flushSync = function (l) { var c = i.T, d = n.p; try { if (((i.T = null), (n.p = 2), l)) return l(); } finally { ((i.T = c), (n.p = d), n.d.f()); } }), (ar.preconnect = function (l, c) { typeof l == "string" && (c ? ((c = c.crossOrigin), (c = typeof c == "string" ? c === "use-credentials" ? c : "" : void 0)) : (c = null), n.d.C(l, c)); }), (ar.prefetchDNS = function (l) { typeof l == "string" && n.d.D(l); }), (ar.preinit = function (l, c) { if (typeof l == "string" && c && typeof c.as == "string") { var d = c.as, p = u(d, c.crossOrigin), f = typeof c.integrity == "string" ? c.integrity : void 0, h = typeof c.fetchPriority == "string" ? c.fetchPriority : void 0; d === "style" ? n.d.S(l, typeof c.precedence == "string" ? c.precedence : void 0, { crossOrigin: p, integrity: f, fetchPriority: h, }) : d === "script" && n.d.X(l, { crossOrigin: p, integrity: f, fetchPriority: h, nonce: typeof c.nonce == "string" ? c.nonce : void 0, }); } }), (ar.preinitModule = function (l, c) { if (typeof l == "string") if (typeof c == "object" && c !== null) { if (c.as == null || c.as === "script") { var d = u(c.as, c.crossOrigin); n.d.M(l, { crossOrigin: d, integrity: typeof c.integrity == "string" ? c.integrity : void 0, nonce: typeof c.nonce == "string" ? c.nonce : void 0, }); } } else c == null && n.d.M(l); }), (ar.preload = function (l, c) { if ( typeof l == "string" && typeof c == "object" && c !== null && typeof c.as == "string" ) { var d = c.as, p = u(d, c.crossOrigin); n.d.L(l, d, { crossOrigin: p, integrity: typeof c.integrity == "string" ? c.integrity : void 0, nonce: typeof c.nonce == "string" ? c.nonce : void 0, type: typeof c.type == "string" ? c.type : void 0, fetchPriority: typeof c.fetchPriority == "string" ? c.fetchPriority : void 0, referrerPolicy: typeof c.referrerPolicy == "string" ? c.referrerPolicy : void 0, imageSrcSet: typeof c.imageSrcSet == "string" ? c.imageSrcSet : void 0, imageSizes: typeof c.imageSizes == "string" ? c.imageSizes : void 0, media: typeof c.media == "string" ? c.media : void 0, }); } }), (ar.preloadModule = function (l, c) { if (typeof l == "string") if (c) { var d = u(c.as, c.crossOrigin); n.d.m(l, { as: typeof c.as == "string" && c.as !== "script" ? c.as : void 0, crossOrigin: d, integrity: typeof c.integrity == "string" ? c.integrity : void 0, }); } else n.d.m(l); }), (ar.requestFormReset = function (l) { n.d.r(l); }), (ar.unstable_batchedUpdates = function (l, c) { return l(c); }), (ar.useFormState = function (l, c, d) { return i.H.useFormState(l, c, d); }), (ar.useFormStatus = function () { return i.H.useHostTransitionStatus(); }), (ar.version = "19.1.0-canary-029e8bd6-20250306"), ar ); } var dA; function sre() { if (dA) return Ef.exports; dA = 1; function e() { if ( !( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function" ) ) try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e); } catch (t) { console.error(t); } } return (e(), (Ef.exports = ire()), Ef.exports); } var _f = {}, pA; function BB() { return ( pA || ((pA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "HeadManagerContext", { enumerable: !0, get: function () { return n; }, })); const n = ca()._(yr()).default.createContext({}); })(_f)), _f ); } var Ru = { exports: {} }, fA; function LB() { return ( fA || ((fA = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "setAttributesFromProps", { enumerable: !0, get: function () { return o; }, })); const r = { acceptCharset: "accept-charset", className: "class", htmlFor: "for", httpEquiv: "http-equiv", noModule: "noModule", }, n = [ "onLoad", "onReady", "dangerouslySetInnerHTML", "children", "onError", "strategy", "stylesheets", ]; function a(i) { return ["async", "defer", "noModule"].includes(i); } function o(i, u) { for (const [l, c] of Object.entries(u)) { if (!u.hasOwnProperty(l) || n.includes(l) || c === void 0) continue; const d = r[l] || l.toLowerCase(); (i.tagName === "SCRIPT" && a(d) ? (i[d] = !!c) : i.setAttribute(d, String(c)), (c === !1 || (i.tagName === "SCRIPT" && a(d) && (!c || c === "false"))) && (i.setAttribute(d, ""), i.removeAttribute(d))); } } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Ru, Ru.exports)), Ru.exports ); } var hA; function ure() { return ( hA || ((hA = 1), (function (e, t) { "use client"; Object.defineProperty(t, "__esModule", { value: !0 }); function r(w, C) { for (var E in C) Object.defineProperty(w, E, { enumerable: !0, get: C[E] }); } r(t, { default: function () { return A; }, handleClientScriptLoad: function () { return y; }, initScriptLoader: function () { return v; }, }); const n = ca(), a = $s(), o = IE(), i = n._(sre()), u = a._(yr()), l = BB(), c = LB(), d = MB(), p = new Map(), f = new Set(), h = (w) => { if (i.default.preinit) { w.forEach((C) => { i.default.preinit(C, { as: "style" }); }); return; } if (typeof window < "u") { let C = document.head; w.forEach((E) => { let _ = document.createElement("link"); ((_.type = "text/css"), (_.rel = "stylesheet"), (_.href = E), C.appendChild(_)); }); } }, m = (w) => { const { src: C, id: E, onLoad: _ = () => {}, onReady: P = null, dangerouslySetInnerHTML: D, children: F = "", strategy: L = "afterInteractive", onError: q, stylesheets: T, } = w, k = E || C; if (k && f.has(k)) return; if (p.has(C)) { (f.add(k), p.get(C).then(_, q)); return; } const I = () => { (P && P(), f.add(k)); }, W = document.createElement("script"), Q = new Promise((se, H) => { (W.addEventListener("load", function (K) { (se(), _ && _.call(this, K), I()); }), W.addEventListener("error", function (K) { H(K); })); }).catch(function (se) { q && q(se); }); (D ? ((W.innerHTML = D.__html || ""), I()) : F ? ((W.textContent = typeof F == "string" ? F : Array.isArray(F) ? F.join("") : ""), I()) : C && ((W.src = C), p.set(C, Q)), (0, c.setAttributesFromProps)(W, w), L === "worker" && W.setAttribute("type", "text/partytown"), W.setAttribute("data-nscript", L), T && h(T), document.body.appendChild(W)); }; function y(w) { const { strategy: C = "afterInteractive" } = w; C === "lazyOnload" ? window.addEventListener("load", () => { (0, d.requestIdleCallback)(() => m(w)); }) : m(w); } function b(w) { document.readyState === "complete" ? (0, d.requestIdleCallback)(() => m(w)) : window.addEventListener("load", () => { (0, d.requestIdleCallback)(() => m(w)); }); } function g() { [ ...document.querySelectorAll('[data-nscript="beforeInteractive"]'), ...document.querySelectorAll('[data-nscript="beforePageRender"]'), ].forEach((C) => { const E = C.id || C.getAttribute("src"); f.add(E); }); } function v(w) { (w.forEach(y), g()); } function x(w) { const { id: C, src: E = "", onLoad: _ = () => {}, onReady: P = null, strategy: D = "afterInteractive", onError: F, stylesheets: L, ...q } = w, { updateScripts: T, scripts: k, getIsSsr: I, appDir: W, nonce: Q, } = (0, u.useContext)(l.HeadManagerContext), se = (0, u.useRef)(!1); (0, u.useEffect)(() => { const K = C || E; se.current || (P && K && f.has(K) && P(), (se.current = !0)); }, [P, C, E]); const H = (0, u.useRef)(!1); if ( ((0, u.useEffect)(() => { H.current || (D === "afterInteractive" ? m(w) : D === "lazyOnload" && b(w), (H.current = !0)); }, [w, D]), (D === "beforeInteractive" || D === "worker") && (T ? ((k[D] = (k[D] || []).concat([ { id: C, src: E, onLoad: _, onReady: P, onError: F, ...q }, ])), T(k)) : I && I() ? f.add(C || E) : I && !I() && m(w)), W) ) { if ( (L && L.forEach((K) => { i.default.preinit(K, { as: "style" }); }), D === "beforeInteractive") ) return E ? (i.default.preload( E, q.integrity ? { as: "script", integrity: q.integrity, nonce: Q, crossOrigin: q.crossOrigin, } : { as: "script", nonce: Q, crossOrigin: q.crossOrigin }, ), (0, o.jsx)("script", { nonce: Q, dangerouslySetInnerHTML: { __html: "(self.__next_s=self.__next_s||[]).push(" + JSON.stringify([E, { ...q, id: C }]) + ")", }, })) : (q.dangerouslySetInnerHTML && ((q.children = q.dangerouslySetInnerHTML.__html), delete q.dangerouslySetInnerHTML), (0, o.jsx)("script", { nonce: Q, dangerouslySetInnerHTML: { __html: "(self.__next_s=self.__next_s||[]).push(" + JSON.stringify([0, { ...q, id: C }]) + ")", }, })); D === "afterInteractive" && E && i.default.preload( E, q.integrity ? { as: "script", integrity: q.integrity, nonce: Q, crossOrigin: q.crossOrigin, } : { as: "script", nonce: Q, crossOrigin: q.crossOrigin }, ); } return null; } Object.defineProperty(x, "__nextScript", { value: !0 }); const A = x; (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Pu, Pu.exports)), Pu.exports ); } var Cf = {}, wf = {}, mA; function lre() { return ( mA || ((mA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(a, o) { for (var i in o) Object.defineProperty(a, i, { enumerable: !0, get: o[i] }); } t(e, { getObjectClassLabel: function () { return r; }, isPlainObject: function () { return n; }, }); function r(a) { return Object.prototype.toString.call(a); } function n(a) { if (r(a) !== "[object Object]") return !1; const o = Object.getPrototypeOf(a); return o === null || o.hasOwnProperty("isPrototypeOf"); } })(wf)), wf ); } var yA; function $B() { return ( yA || ((yA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(i, u) { for (var l in u) Object.defineProperty(i, l, { enumerable: !0, get: u[l] }); } t(e, { default: function () { return n; }, getProperError: function () { return o; }, }); const r = lre(); function n(i) { return ( typeof i == "object" && i !== null && "name" in i && "message" in i ); } function a(i) { const u = new WeakSet(); return JSON.stringify(i, (l, c) => { if (typeof c == "object" && c !== null) { if (u.has(c)) return "[Circular]"; u.add(c); } return c; }); } function o(i) { return n(i) ? i : Object.defineProperty( new Error((0, r.isPlainObject)(i) ? a(i) : i + ""), "__NEXT_ERROR_CODE", { value: "E394", enumerable: !1, configurable: !0 }, ); } })(Cf)), Cf ); } var Af = {}, Sf = {}, xf = {}, gA; function cre() { return ( gA || ((gA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(o, i) { for (var u in i) Object.defineProperty(o, u, { enumerable: !0, get: i[u] }); } t(e, { getSortedRouteObjects: function () { return a; }, getSortedRoutes: function () { return n; }, }); class r { insert(i) { this._insert(i.split("/").filter(Boolean), [], !1); } smoosh() { return this._smoosh(); } _smoosh(i) { i === void 0 && (i = "/"); const u = [...this.children.keys()].sort(); (this.slugName !== null && u.splice(u.indexOf("[]"), 1), this.restSlugName !== null && u.splice(u.indexOf("[...]"), 1), this.optionalRestSlugName !== null && u.splice(u.indexOf("[[...]]"), 1)); const l = u .map((c) => this.children.get(c)._smoosh("" + i + c + "/")) .reduce((c, d) => [...c, ...d], []); if ( (this.slugName !== null && l.push( ...this.children .get("[]") ._smoosh(i + "[" + this.slugName + "]/"), ), !this.placeholder) ) { const c = i === "/" ? "/" : i.slice(0, -1); if (this.optionalRestSlugName != null) throw Object.defineProperty( new Error( 'You cannot define a route with the same specificity as a optional catch-all route ("' + c + '" and "' + c + "[[..." + this.optionalRestSlugName + ']]").', ), "__NEXT_ERROR_CODE", { value: "E458", enumerable: !1, configurable: !0 }, ); l.unshift(c); } return ( this.restSlugName !== null && l.push( ...this.children .get("[...]") ._smoosh(i + "[..." + this.restSlugName + "]/"), ), this.optionalRestSlugName !== null && l.push( ...this.children .get("[[...]]") ._smoosh(i + "[[..." + this.optionalRestSlugName + "]]/"), ), l ); } _insert(i, u, l) { if (i.length === 0) { this.placeholder = !1; return; } if (l) throw Object.defineProperty( new Error("Catch-all must be the last part of the URL."), "__NEXT_ERROR_CODE", { value: "E392", enumerable: !1, configurable: !0 }, ); let c = i[0]; if (c.startsWith("[") && c.endsWith("]")) { let f = function (h, m) { if (h !== null && h !== m) throw Object.defineProperty( new Error( "You cannot use different slug names for the same dynamic path ('" + h + "' !== '" + m + "').", ), "__NEXT_ERROR_CODE", { value: "E337", enumerable: !1, configurable: !0 }, ); (u.forEach((y) => { if (y === m) throw Object.defineProperty( new Error( 'You cannot have the same slug name "' + m + '" repeat within a single dynamic path', ), "__NEXT_ERROR_CODE", { value: "E247", enumerable: !1, configurable: !0 }, ); if (y.replace(/\W/g, "") === c.replace(/\W/g, "")) throw Object.defineProperty( new Error( 'You cannot have the slug names "' + y + '" and "' + m + '" differ only by non-word symbols within a single dynamic path', ), "__NEXT_ERROR_CODE", { value: "E499", enumerable: !1, configurable: !0 }, ); }), u.push(m)); }, d = c.slice(1, -1), p = !1; if ( (d.startsWith("[") && d.endsWith("]") && ((d = d.slice(1, -1)), (p = !0)), d.startsWith("…")) ) throw Object.defineProperty( new Error( "Detected a three-dot character ('…') at ('" + d + "'). Did you mean ('...')?", ), "__NEXT_ERROR_CODE", { value: "E147", enumerable: !1, configurable: !0 }, ); if ( (d.startsWith("...") && ((d = d.substring(3)), (l = !0)), d.startsWith("[") || d.endsWith("]")) ) throw Object.defineProperty( new Error( "Segment names may not start or end with extra brackets ('" + d + "').", ), "__NEXT_ERROR_CODE", { value: "E421", enumerable: !1, configurable: !0 }, ); if (d.startsWith(".")) throw Object.defineProperty( new Error( "Segment names may not start with erroneous periods ('" + d + "').", ), "__NEXT_ERROR_CODE", { value: "E288", enumerable: !1, configurable: !0 }, ); if (l) if (p) { if (this.restSlugName != null) throw Object.defineProperty( new Error( 'You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + i[0] + '" ).', ), "__NEXT_ERROR_CODE", { value: "E299", enumerable: !1, configurable: !0 }, ); (f(this.optionalRestSlugName, d), (this.optionalRestSlugName = d), (c = "[[...]]")); } else { if (this.optionalRestSlugName != null) throw Object.defineProperty( new Error( 'You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + i[0] + '").', ), "__NEXT_ERROR_CODE", { value: "E300", enumerable: !1, configurable: !0 }, ); (f(this.restSlugName, d), (this.restSlugName = d), (c = "[...]")); } else { if (p) throw Object.defineProperty( new Error( 'Optional route parameters are not yet supported ("' + i[0] + '").', ), "__NEXT_ERROR_CODE", { value: "E435", enumerable: !1, configurable: !0 }, ); (f(this.slugName, d), (this.slugName = d), (c = "[]")); } } (this.children.has(c) || this.children.set(c, new r()), this.children.get(c)._insert(i.slice(1), u, l)); } constructor() { ((this.placeholder = !0), (this.children = new Map()), (this.slugName = null), (this.restSlugName = null), (this.optionalRestSlugName = null)); } } function n(o) { const i = new r(); return (o.forEach((u) => i.insert(u)), i.smoosh()); } function a(o, i) { const u = {}, l = []; for (let d = 0; d < o.length; d++) { const p = i(o[d]); ((u[p] = d), (l[d] = p)); } return n(l).map((d) => o[u[d]]); } })(xf)), xf ); } var Pf = {}, Rf = {}, Tf = {}, Of = {}, bA; function dre() { return ( bA || ((bA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "ensureLeadingSlash", { enumerable: !0, get: function () { return t; }, })); function t(r) { return r.startsWith("/") ? r : "/" + r; } })(Of)), Of ); } var vA; function pre() { return ( vA || ((vA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(i, u) { for (var l in u) Object.defineProperty(i, l, { enumerable: !0, get: u[l] }); } t(e, { normalizeAppPath: function () { return a; }, normalizeRscURL: function () { return o; }, }); const r = dre(), n = PE(); function a(i) { return (0, r.ensureLeadingSlash)( i .split("/") .reduce( (u, l, c, d) => !l || (0, n.isGroupSegment)(l) || l[0] === "@" || ((l === "page" || l === "route") && c === d.length - 1) ? u : u + "/" + l, "", ), ); } function o(i) { return i.replace(/\.rsc($|\?)/, "$1"); } })(Tf)), Tf ); } var EA; function NE() { return ( EA || ((EA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(i, u) { for (var l in u) Object.defineProperty(i, l, { enumerable: !0, get: u[l] }); } t(e, { INTERCEPTION_ROUTE_MARKERS: function () { return n; }, extractInterceptionRouteInformation: function () { return o; }, isInterceptionRouteAppPath: function () { return a; }, }); const r = pre(), n = ["(..)(..)", "(.)", "(..)", "(...)"]; function a(i) { return ( i.split("/").find((u) => n.find((l) => u.startsWith(l))) !== void 0 ); } function o(i) { let u, l, c; for (const d of i.split("/")) if (((l = n.find((p) => d.startsWith(p))), l)) { [u, c] = i.split(l, 2); break; } if (!u || !l || !c) throw Object.defineProperty( new Error( "Invalid interception route: " + i + ". Must be in the format //(..|...|..)(..)/", ), "__NEXT_ERROR_CODE", { value: "E269", enumerable: !1, configurable: !0 }, ); switch (((u = (0, r.normalizeAppPath)(u)), l)) { case "(.)": u === "/" ? (c = "/" + c) : (c = u + "/" + c); break; case "(..)": if (u === "/") throw Object.defineProperty( new Error( "Invalid interception route: " + i + ". Cannot use (..) marker at the root level, use (.) instead.", ), "__NEXT_ERROR_CODE", { value: "E207", enumerable: !1, configurable: !0 }, ); c = u.split("/").slice(0, -1).concat(c).join("/"); break; case "(...)": c = "/" + c; break; case "(..)(..)": const d = u.split("/"); if (d.length <= 2) throw Object.defineProperty( new Error( "Invalid interception route: " + i + ". Cannot use (..)(..) marker at the root level or one level up.", ), "__NEXT_ERROR_CODE", { value: "E486", enumerable: !1, configurable: !0 }, ); c = d.slice(0, -2).concat(c).join("/"); break; default: throw Object.defineProperty( new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", { value: "E112", enumerable: !1, configurable: !0 }, ); } return { interceptingRoute: u, interceptedRoute: c }; } })(Rf)), Rf ); } var _A; function UB() { return ( _A || ((_A = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "isDynamicRoute", { enumerable: !0, get: function () { return a; }, })); const t = NE(), r = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/, n = /\/\[[^/]+\](?=\/|$)/; function a(o, i) { return ( i === void 0 && (i = !0), (0, t.isInterceptionRouteAppPath)(o) && (o = (0, t.extractInterceptionRouteInformation)( o, ).interceptedRoute), i ? n.test(o) : r.test(o) ); } })(Pf)), Pf ); } var CA; function HB() { return ( CA || ((CA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(a, o) { for (var i in o) Object.defineProperty(a, i, { enumerable: !0, get: o[i] }); } t(e, { getSortedRouteObjects: function () { return r.getSortedRouteObjects; }, getSortedRoutes: function () { return r.getSortedRoutes; }, isDynamicRoute: function () { return n.isDynamicRoute; }, }); const r = cre(), n = UB(); })(Sf)), Sf ); } var Df = {}, wA; function fre() { return ( wA || ((wA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "normalizePathSep", { enumerable: !0, get: function () { return t; }, })); function t(r) { return r.replace(/\\/g, "/"); } })(Df)), Df ); } var AA; function hre() { return ( AA || ((AA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "denormalizePagePath", { enumerable: !0, get: function () { return n; }, })); const t = HB(), r = fre(); function n(a) { let o = (0, r.normalizePathSep)(a); return o.startsWith("/index/") && !(0, t.isDynamicRoute)(o) ? o.slice(6) : o !== "/index" ? o : "/"; } })(Af)), Af ); } var Ff = {}, SA; function jE() { return ( SA || ((SA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "normalizeLocalePath", { enumerable: !0, get: function () { return r; }, })); const t = new WeakMap(); function r(n, a) { if (!a) return { pathname: n }; let o = t.get(a); o || ((o = a.map((d) => d.toLowerCase())), t.set(a, o)); let i; const u = n.split("/", 2); if (!u[1]) return { pathname: n }; const l = u[1].toLowerCase(), c = o.indexOf(l); return c < 0 ? { pathname: n } : ((i = a[c]), (n = n.slice(i.length + 1) || "/"), { pathname: n, detectedLocale: i }); } })(Ff)), Ff ); } var If = {}, xA; function mre() { return ( xA || ((xA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "default", { enumerable: !0, get: function () { return t; }, })); function t() { const r = Object.create(null); return { on(n, a) { (r[n] || (r[n] = [])).push(a); }, off(n, a) { r[n] && r[n].splice(r[n].indexOf(a) >>> 0, 1); }, emit(n) { for ( var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), i = 1; i < a; i++ ) o[i - 1] = arguments[i]; (r[n] || []).slice().map((u) => { u(...o); }); }, }; } })(If)), If ); } var Nf = {}, PA; function Hs() { return ( PA || ((PA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(A, w) { for (var C in w) Object.defineProperty(A, C, { enumerable: !0, get: w[C] }); } t(e, { DecodeError: function () { return m; }, MiddlewareNotFoundError: function () { return v; }, MissingStaticPage: function () { return g; }, NormalizeError: function () { return y; }, PageNotFoundError: function () { return b; }, SP: function () { return f; }, ST: function () { return h; }, WEB_VITALS: function () { return r; }, execOnce: function () { return n; }, getDisplayName: function () { return l; }, getLocationOrigin: function () { return i; }, getURL: function () { return u; }, isAbsoluteUrl: function () { return o; }, isResSent: function () { return c; }, loadGetInitialProps: function () { return p; }, normalizeRepeatedSlashes: function () { return d; }, stringifyError: function () { return x; }, }); const r = ["CLS", "FCP", "FID", "INP", "LCP", "TTFB"]; function n(A) { let w = !1, C; return function () { for (var E = arguments.length, _ = new Array(E), P = 0; P < E; P++) _[P] = arguments[P]; return (w || ((w = !0), (C = A(..._))), C); }; } const a = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, o = (A) => a.test(A); function i() { const { protocol: A, hostname: w, port: C } = window.location; return A + "//" + w + (C ? ":" + C : ""); } function u() { const { href: A } = window.location, w = i(); return A.substring(w.length); } function l(A) { return typeof A == "string" ? A : A.displayName || A.name || "Unknown"; } function c(A) { return A.finished || A.headersSent; } function d(A) { const w = A.split("?"); return ( w[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (w[1] ? "?" + w.slice(1).join("?") : "") ); } async function p(A, w) { const C = w.res || (w.ctx && w.ctx.res); if (!A.getInitialProps) return w.ctx && w.Component ? { pageProps: await p(w.Component, w.ctx) } : {}; const E = await A.getInitialProps(w); if (C && c(C)) return E; if (!E) { const _ = '"' + l(A) + '.getInitialProps()" should resolve to an object. But found "' + E + '" instead.'; throw Object.defineProperty(new Error(_), "__NEXT_ERROR_CODE", { value: "E394", enumerable: !1, configurable: !0, }); } return E; } const f = typeof performance < "u", h = f && ["mark", "measure", "getEntriesByName"].every( (A) => typeof performance[A] == "function", ); class m extends Error {} class y extends Error {} class b extends Error { constructor(w) { (super(), (this.code = "ENOENT"), (this.name = "PageNotFoundError"), (this.message = "Cannot find module for page: " + w)); } } class g extends Error { constructor(w, C) { (super(), (this.message = "Failed to load static file for page: " + w + " " + C)); } } class v extends Error { constructor() { (super(), (this.code = "ENOENT"), (this.message = "Cannot find the middleware module")); } } function x(A) { return JSON.stringify({ message: A.message, stack: A.stack }); } })(Nf)), Nf ); } var jf = {}, kf = {}, RA; function Zd() { return ( RA || ((RA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(i, u) { for (var l in u) Object.defineProperty(i, l, { enumerable: !0, get: u[l] }); } t(e, { assign: function () { return o; }, searchParamsToUrlQuery: function () { return r; }, urlQueryToSearchParams: function () { return a; }, }); function r(i) { const u = {}; for (const [l, c] of i.entries()) { const d = u[l]; typeof d > "u" ? (u[l] = c) : Array.isArray(d) ? d.push(c) : (u[l] = [d, c]); } return u; } function n(i) { return typeof i == "string" ? i : (typeof i == "number" && !isNaN(i)) || typeof i == "boolean" ? String(i) : ""; } function a(i) { const u = new URLSearchParams(); for (const [l, c] of Object.entries(i)) if (Array.isArray(c)) for (const d of c) u.append(l, n(d)); else u.set(l, n(c)); return u; } function o(i) { for ( var u = arguments.length, l = new Array(u > 1 ? u - 1 : 0), c = 1; c < u; c++ ) l[c - 1] = arguments[c]; for (const d of l) { for (const p of d.keys()) i.delete(p); for (const [p, f] of d.entries()) i.append(p, f); } return i; } })(kf)), kf ); } var TA; function kE() { return ( TA || ((TA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "parseRelativeUrl", { enumerable: !0, get: function () { return n; }, })); const t = Hs(), r = Zd(); function n(a, o, i) { i === void 0 && (i = !0); const u = new URL( typeof window > "u" ? "http://n" : (0, t.getLocationOrigin)(), ), l = o ? new URL(o, u) : a.startsWith(".") ? new URL( typeof window > "u" ? "http://n" : window.location.href, ) : u, { pathname: c, searchParams: d, search: p, hash: f, href: h, origin: m, } = new URL(a, l); if (m !== u.origin) throw Object.defineProperty( new Error( "invariant: invalid relative URL, router received " + a, ), "__NEXT_ERROR_CODE", { value: "E159", enumerable: !1, configurable: !0 }, ); return { pathname: c, query: i ? (0, r.searchParamsToUrlQuery)(d) : void 0, search: p, hash: f, href: h.slice(m.length), }; } })(jf)), jf ); } var qf = {}, Mf = {}, Bf = { exports: {} }, OA; function VB() { return ( OA || ((OA = 1), (() => { typeof __nccwpck_require__ < "u" && (__nccwpck_require__.ab = __dirname + "/"); var e = {}; ((() => { var t = e; Object.defineProperty(t, "__esModule", { value: !0 }); function r(y) { for (var b = [], g = 0; g < y.length; ) { var v = y[g]; if (v === "*" || v === "+" || v === "?") { b.push({ type: "MODIFIER", index: g, value: y[g++] }); continue; } if (v === "\\") { b.push({ type: "ESCAPED_CHAR", index: g++, value: y[g++] }); continue; } if (v === "{") { b.push({ type: "OPEN", index: g, value: y[g++] }); continue; } if (v === "}") { b.push({ type: "CLOSE", index: g, value: y[g++] }); continue; } if (v === ":") { for (var x = "", A = g + 1; A < y.length; ) { var w = y.charCodeAt(A); if ( (w >= 48 && w <= 57) || (w >= 65 && w <= 90) || (w >= 97 && w <= 122) || w === 95 ) { x += y[A++]; continue; } break; } if (!x) throw new TypeError("Missing parameter name at " + g); (b.push({ type: "NAME", index: g, value: x }), (g = A)); continue; } if (v === "(") { var C = 1, E = "", A = g + 1; if (y[A] === "?") throw new TypeError('Pattern cannot start with "?" at ' + A); for (; A < y.length; ) { if (y[A] === "\\") { E += y[A++] + y[A++]; continue; } if (y[A] === ")") { if ((C--, C === 0)) { A++; break; } } else if (y[A] === "(" && (C++, y[A + 1] !== "?")) throw new TypeError( "Capturing groups are not allowed at " + A, ); E += y[A++]; } if (C) throw new TypeError("Unbalanced pattern at " + g); if (!E) throw new TypeError("Missing pattern at " + g); (b.push({ type: "PATTERN", index: g, value: E }), (g = A)); continue; } b.push({ type: "CHAR", index: g, value: y[g++] }); } return (b.push({ type: "END", index: g, value: "" }), b); } function n(y, b) { b === void 0 && (b = {}); for ( var g = r(y), v = b.prefixes, x = v === void 0 ? "./" : v, A = "[^" + l(b.delimiter || "/#?") + "]+?", w = [], C = 0, E = 0, _ = "", P = function (K) { if (E < g.length && g[E].type === K) return g[E++].value; }, D = function (K) { var V = P(K); if (V !== void 0) return V; var Z = g[E], re = Z.type, he = Z.index; throw new TypeError( "Unexpected " + re + " at " + he + ", expected " + K, ); }, F = function () { for (var K = "", V; (V = P("CHAR") || P("ESCAPED_CHAR")); ) K += V; return K; }; E < g.length; ) { var L = P("CHAR"), q = P("NAME"), T = P("PATTERN"); if (q || T) { var k = L || ""; (x.indexOf(k) === -1 && ((_ += k), (k = "")), _ && (w.push(_), (_ = "")), w.push({ name: q || C++, prefix: k, suffix: "", pattern: T || A, modifier: P("MODIFIER") || "", })); continue; } var I = L || P("ESCAPED_CHAR"); if (I) { _ += I; continue; } _ && (w.push(_), (_ = "")); var W = P("OPEN"); if (W) { var k = F(), Q = P("NAME") || "", se = P("PATTERN") || "", H = F(); (D("CLOSE"), w.push({ name: Q || (se ? C++ : ""), pattern: Q && !se ? A : se, prefix: k, suffix: H, modifier: P("MODIFIER") || "", })); continue; } D("END"); } return w; } t.parse = n; function a(y, b) { return o(n(y, b), b); } t.compile = a; function o(y, b) { b === void 0 && (b = {}); var g = c(b), v = b.encode, x = v === void 0 ? function (E) { return E; } : v, A = b.validate, w = A === void 0 ? !0 : A, C = y.map(function (E) { if (typeof E == "object") return new RegExp("^(?:" + E.pattern + ")$", g); }); return function (E) { for (var _ = "", P = 0; P < y.length; P++) { var D = y[P]; if (typeof D == "string") { _ += D; continue; } var F = E ? E[D.name] : void 0, L = D.modifier === "?" || D.modifier === "*", q = D.modifier === "*" || D.modifier === "+"; if (Array.isArray(F)) { if (!q) throw new TypeError( 'Expected "' + D.name + '" to not repeat, but got an array', ); if (F.length === 0) { if (L) continue; throw new TypeError( 'Expected "' + D.name + '" to not be empty', ); } for (var T = 0; T < F.length; T++) { var k = x(F[T], D); if (w && !C[P].test(k)) throw new TypeError( 'Expected all "' + D.name + '" to match "' + D.pattern + '", but got "' + k + '"', ); _ += D.prefix + k + D.suffix; } continue; } if (typeof F == "string" || typeof F == "number") { var k = x(String(F), D); if (w && !C[P].test(k)) throw new TypeError( 'Expected "' + D.name + '" to match "' + D.pattern + '", but got "' + k + '"', ); _ += D.prefix + k + D.suffix; continue; } if (!L) { var I = q ? "an array" : "a string"; throw new TypeError('Expected "' + D.name + '" to be ' + I); } } return _; }; } t.tokensToFunction = o; function i(y, b) { var g = [], v = m(y, g, b); return u(v, g, b); } t.match = i; function u(y, b, g) { g === void 0 && (g = {}); var v = g.decode, x = v === void 0 ? function (A) { return A; } : v; return function (A) { var w = y.exec(A); if (!w) return !1; for ( var C = w[0], E = w.index, _ = Object.create(null), P = function (F) { if (w[F] === void 0) return "continue"; var L = b[F - 1]; L.modifier === "*" || L.modifier === "+" ? (_[L.name] = w[F].split(L.prefix + L.suffix).map( function (q) { return x(q, L); }, )) : (_[L.name] = x(w[F], L)); }, D = 1; D < w.length; D++ ) P(D); return { path: C, index: E, params: _ }; }; } t.regexpToFunction = u; function l(y) { return y.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"); } function c(y) { return y && y.sensitive ? "" : "i"; } function d(y, b) { if (!b) return y; var g = y.source.match(/\((?!\?)/g); if (g) for (var v = 0; v < g.length; v++) b.push({ name: v, prefix: "", suffix: "", modifier: "", pattern: "", }); return y; } function p(y, b, g) { var v = y.map(function (x) { return m(x, b, g).source; }); return new RegExp("(?:" + v.join("|") + ")", c(g)); } function f(y, b, g) { return h(n(y, g), b, g); } function h(y, b, g) { g === void 0 && (g = {}); for ( var v = g.strict, x = v === void 0 ? !1 : v, A = g.start, w = A === void 0 ? !0 : A, C = g.end, E = C === void 0 ? !0 : C, _ = g.encode, P = _ === void 0 ? function (K) { return K; } : _, D = "[" + l(g.endsWith || "") + "]|$", F = "[" + l(g.delimiter || "/#?") + "]", L = w ? "^" : "", q = 0, T = y; q < T.length; q++ ) { var k = T[q]; if (typeof k == "string") L += l(P(k)); else { var I = l(P(k.prefix)), W = l(P(k.suffix)); if (k.pattern) if ((b && b.push(k), I || W)) if (k.modifier === "+" || k.modifier === "*") { var Q = k.modifier === "*" ? "?" : ""; L += "(?:" + I + "((?:" + k.pattern + ")(?:" + W + I + "(?:" + k.pattern + "))*)" + W + ")" + Q; } else L += "(?:" + I + "(" + k.pattern + ")" + W + ")" + k.modifier; else L += "(" + k.pattern + ")" + k.modifier; else L += "(?:" + I + W + ")" + k.modifier; } } if (E) (x || (L += F + "?"), (L += g.endsWith ? "(?=" + D + ")" : "$")); else { var se = y[y.length - 1], H = typeof se == "string" ? F.indexOf(se[se.length - 1]) > -1 : se === void 0; (x || (L += "(?:" + F + "(?=" + D + "))?"), H || (L += "(?=" + F + "|" + D + ")")); } return new RegExp(L, c(g)); } t.tokensToRegexp = h; function m(y, b, g) { return y instanceof RegExp ? d(y, b) : Array.isArray(y) ? p(y, b, g) : f(y, b, g); } t.pathToRegexp = m; })(), (Bf.exports = e)); })()), Bf.exports ); } var DA; function yre() { return ( DA || ((DA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getPathMatch", { enumerable: !0, get: function () { return r; }, })); const t = VB(); function r(n, a) { const o = [], i = (0, t.pathToRegexp)(n, o, { delimiter: "/", sensitive: typeof a?.sensitive == "boolean" ? a.sensitive : !1, strict: a?.strict, }), u = (0, t.regexpToFunction)( a?.regexModifier ? new RegExp(a.regexModifier(i.source), i.flags) : i, o, ); return (l, c) => { if (typeof l != "string") return !1; const d = u(l); if (!d) return !1; if (a?.removeUnnamedParams) for (const p of o) typeof p.name == "number" && delete d.params[p.name]; return { ...c, ...d.params }; }; } })(Mf)), Mf ); } var Lf = {}, $f = {}, FA; function zB() { return ( FA || ((FA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "escapeStringRegexp", { enumerable: !0, get: function () { return n; }, })); const t = /[|\\{}()[\]^$+*?.-]/, r = /[|\\{}()[\]^$+*?.-]/g; function n(a) { return t.test(a) ? a.replace(r, "\\$&") : a; } })($f)), $f ); } var Uf = {}, IA; function gre() { return ( IA || ((IA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "parseUrl", { enumerable: !0, get: function () { return n; }, })); const t = Zd(), r = kE(); function n(a) { if (a.startsWith("/")) return (0, r.parseRelativeUrl)(a); const o = new URL(a); return { hash: o.hash, hostname: o.hostname, href: o.href, pathname: o.pathname, port: o.port, protocol: o.protocol, query: (0, t.searchParamsToUrlQuery)(o.searchParams), search: o.search, }; } })(Uf)), Uf ); } var Tu = { exports: {} }, NA; function bre() { return ( NA || ((NA = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(v, x) { for (var A in x) Object.defineProperty(v, A, { enumerable: !0, get: x[A] }); } r(t, { ACTION_HEADER: function () { return a; }, FLIGHT_HEADERS: function () { return p; }, NEXT_DID_POSTPONE_HEADER: function () { return m; }, NEXT_HMR_REFRESH_HEADER: function () { return l; }, NEXT_IS_PRERENDER_HEADER: function () { return g; }, NEXT_REWRITTEN_PATH_HEADER: function () { return y; }, NEXT_REWRITTEN_QUERY_HEADER: function () { return b; }, NEXT_ROUTER_PREFETCH_HEADER: function () { return i; }, NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function () { return u; }, NEXT_ROUTER_STALE_TIME_HEADER: function () { return h; }, NEXT_ROUTER_STATE_TREE_HEADER: function () { return o; }, NEXT_RSC_UNION_QUERY: function () { return f; }, NEXT_URL: function () { return c; }, RSC_CONTENT_TYPE_HEADER: function () { return d; }, RSC_HEADER: function () { return n; }, }); const n = "RSC", a = "Next-Action", o = "Next-Router-State-Tree", i = "Next-Router-Prefetch", u = "Next-Router-Segment-Prefetch", l = "Next-HMR-Refresh", c = "Next-Url", d = "text/x-component", p = [n, o, i, l, u], f = "_rsc", h = "x-nextjs-stale-time", m = "x-nextjs-postponed", y = "x-nextjs-rewritten-path", b = "x-nextjs-rewritten-query", g = "x-nextjs-prerender"; (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Tu, Tu.exports)), Tu.exports ); } var Hf = {}, Vf = { exports: {} }, jA; function vre() { return ( jA || ((jA = 1), (() => { typeof __nccwpck_require__ < "u" && (__nccwpck_require__.ab = __dirname + "/"); var e = {}; ((() => { var t = e; /*! * cookie * Copyright(c) 2012-2014 Roman Shtylman * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ ((t.parse = i), (t.serialize = u)); var r = decodeURIComponent, n = encodeURIComponent, a = /; */, o = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/; function i(c, d) { if (typeof c != "string") throw new TypeError("argument str must be a string"); for ( var p = {}, f = d || {}, h = c.split(a), m = f.decode || r, y = 0; y < h.length; y++ ) { var b = h[y], g = b.indexOf("="); if (!(g < 0)) { var v = b.substr(0, g).trim(), x = b.substr(++g, b.length).trim(); (x[0] == '"' && (x = x.slice(1, -1)), p[v] == null && (p[v] = l(x, m))); } } return p; } function u(c, d, p) { var f = p || {}, h = f.encode || n; if (typeof h != "function") throw new TypeError("option encode is invalid"); if (!o.test(c)) throw new TypeError("argument name is invalid"); var m = h(d); if (m && !o.test(m)) throw new TypeError("argument val is invalid"); var y = c + "=" + m; if (f.maxAge != null) { var b = f.maxAge - 0; if (isNaN(b) || !isFinite(b)) throw new TypeError("option maxAge is invalid"); y += "; Max-Age=" + Math.floor(b); } if (f.domain) { if (!o.test(f.domain)) throw new TypeError("option domain is invalid"); y += "; Domain=" + f.domain; } if (f.path) { if (!o.test(f.path)) throw new TypeError("option path is invalid"); y += "; Path=" + f.path; } if (f.expires) { if (typeof f.expires.toUTCString != "function") throw new TypeError("option expires is invalid"); y += "; Expires=" + f.expires.toUTCString(); } if ( (f.httpOnly && (y += "; HttpOnly"), f.secure && (y += "; Secure"), f.sameSite) ) { var g = typeof f.sameSite == "string" ? f.sameSite.toLowerCase() : f.sameSite; switch (g) { case !0: y += "; SameSite=Strict"; break; case "lax": y += "; SameSite=Lax"; break; case "strict": y += "; SameSite=Strict"; break; case "none": y += "; SameSite=None"; break; default: throw new TypeError("option sameSite is invalid"); } } return y; } function l(c, d) { try { return d(c); } catch { return c; } } })(), (Vf.exports = e)); })()), Vf.exports ); } var kA; function Ere() { return ( kA || ((kA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getCookieParser", { enumerable: !0, get: function () { return t; }, })); function t(r) { return function () { const { cookie: a } = r; if (!a) return {}; const { parse: o } = vre(); return o(Array.isArray(a) ? a.join("; ") : a); }; } })(Hf)), Hf ); } var qA; function _re() { return ( qA || ((qA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(y, b) { for (var g in b) Object.defineProperty(y, g, { enumerable: !0, get: b[g] }); } t(e, { compileNonPath: function () { return f; }, matchHas: function () { return p; }, parseDestination: function () { return h; }, prepareDestination: function () { return m; }, }); const r = VB(), n = zB(), a = gre(), o = NE(), i = bre(), u = Ere(); function l(y) { let b = ""; for (let g = 0; g < y.length; g++) { const v = y.charCodeAt(g); ((v > 64 && v < 91) || (v > 96 && v < 123)) && (b += y[g]); } return b; } function c(y, b) { return y.replace( new RegExp(":" + (0, n.escapeStringRegexp)(b), "g"), "__ESC_COLON_" + b, ); } function d(y) { return y.replace(/__ESC_COLON_/gi, ":"); } function p(y, b, g, v) { (g === void 0 && (g = []), v === void 0 && (v = [])); const x = {}, A = (C) => { let E, _ = C.key; switch (C.type) { case "header": { ((_ = _.toLowerCase()), (E = y.headers[_])); break; } case "cookie": { "cookies" in y ? (E = y.cookies[C.key]) : (E = (0, u.getCookieParser)(y.headers)()[C.key]); break; } case "query": { E = b[_]; break; } case "host": { const { host: P } = y?.headers || {}; E = P?.split(":", 1)[0].toLowerCase(); break; } } if (!C.value && E) return ((x[l(_)] = E), !0); if (E) { const P = new RegExp("^" + C.value + "$"), D = Array.isArray(E) ? E.slice(-1)[0].match(P) : E.match(P); if (D) return ( Array.isArray(D) && (D.groups ? Object.keys(D.groups).forEach((F) => { x[F] = D.groups[F]; }) : C.type === "host" && D[0] && (x.host = D[0])), !0 ); } return !1; }; return g.every((C) => A(C)) && !v.some((C) => A(C)) ? x : !1; } function f(y, b) { if (!y.includes(":")) return y; for (const g of Object.keys(b)) y.includes(":" + g) && (y = y .replace( new RegExp(":" + g + "\\*", "g"), ":" + g + "--ESCAPED_PARAM_ASTERISKS", ) .replace( new RegExp(":" + g + "\\?", "g"), ":" + g + "--ESCAPED_PARAM_QUESTION", ) .replace( new RegExp(":" + g + "\\+", "g"), ":" + g + "--ESCAPED_PARAM_PLUS", ) .replace( new RegExp(":" + g + "(?!\\w)", "g"), "--ESCAPED_PARAM_COLON" + g, )); return ( (y = y .replace(/(:|\*|\?|\+|\(|\)|\{|\})/g, "\\$1") .replace(/--ESCAPED_PARAM_PLUS/g, "+") .replace(/--ESCAPED_PARAM_COLON/g, ":") .replace(/--ESCAPED_PARAM_QUESTION/g, "?") .replace(/--ESCAPED_PARAM_ASTERISKS/g, "*")), (0, r.compile)("/" + y, { validate: !1 })(b).slice(1) ); } function h(y) { let b = y.destination; for (const C of Object.keys({ ...y.params, ...y.query })) C && (b = c(b, C)); const g = (0, a.parseUrl)(b); let v = g.pathname; v && (v = d(v)); let x = g.href; x && (x = d(x)); let A = g.hostname; A && (A = d(A)); let w = g.hash; return ( w && (w = d(w)), { ...g, pathname: v, hostname: A, href: x, hash: w } ); } function m(y) { const b = Object.assign({}, y.query); delete b[i.NEXT_RSC_UNION_QUERY]; const g = h(y), { hostname: v, query: x } = g; let A = g.pathname; g.hash && (A = "" + A + g.hash); const w = [], C = []; (0, r.pathToRegexp)(A, C); for (const F of C) w.push(F.name); if (v) { const F = []; (0, r.pathToRegexp)(v, F); for (const L of F) w.push(L.name); } const E = (0, r.compile)(A, { validate: !1 }); let _; v && (_ = (0, r.compile)(v, { validate: !1 })); for (const [F, L] of Object.entries(x)) Array.isArray(L) ? (x[F] = L.map((q) => f(d(q), y.params))) : typeof L == "string" && (x[F] = f(d(L), y.params)); let P = Object.keys(y.params).filter( (F) => F !== "nextInternalLocale", ); if (y.appendParamsToQuery && !P.some((F) => w.includes(F))) for (const F of P) F in x || (x[F] = y.params[F]); let D; if ((0, o.isInterceptionRouteAppPath)(A)) for (const F of A.split("/")) { const L = o.INTERCEPTION_ROUTE_MARKERS.find((q) => F.startsWith(q), ); if (L) { L === "(..)(..)" ? ((y.params[0] = "(..)"), (y.params[1] = "(..)")) : (y.params[0] = L); break; } } try { D = E(y.params); const [F, L] = D.split("#", 2); (_ && (g.hostname = _(y.params)), (g.pathname = F), (g.hash = (L ? "#" : "") + (L || "")), delete g.search); } catch (F) { throw F.message.match( /Expected .*? to not repeat, but got an array/, ) ? Object.defineProperty( new Error( "To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match", ), "__NEXT_ERROR_CODE", { value: "E329", enumerable: !1, configurable: !0 }, ) : F; } return ( (g.query = { ...b, ...g.query }), { newUrl: D, destQuery: x, parsedDestination: g } ); } })(Lf)), Lf ); } var Ou = { exports: {} }, Du = { exports: {} }, zf = {}, Gf = {}, MA; function oi() { return ( MA || ((MA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "parsePath", { enumerable: !0, get: function () { return t; }, })); function t(r) { const n = r.indexOf("#"), a = r.indexOf("?"), o = a > -1 && (n < 0 || a < n); return o || n > -1 ? { pathname: r.substring(0, o ? a : n), query: o ? r.substring(a, n > -1 ? n : void 0) : "", hash: n > -1 ? r.slice(n) : "", } : { pathname: r, query: "", hash: "" }; } })(Gf)), Gf ); } var BA; function ep() { return ( BA || ((BA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "pathHasPrefix", { enumerable: !0, get: function () { return r; }, })); const t = oi(); function r(n, a) { if (typeof n != "string") return !1; const { pathname: o } = (0, t.parsePath)(n); return o === a || o.startsWith(a + "/"); } })(zf)), zf ); } var LA; function qE() { return ( LA || ((LA = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "hasBasePath", { enumerable: !0, get: function () { return a; }, })); const r = ep(), n = ""; function a(o) { return (0, r.pathHasPrefix)(o, n); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Du, Du.exports)), Du.exports ); } var $A; function GB() { return ( $A || (($A = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "removeBasePath", { enumerable: !0, get: function () { return n; }, }), qE()); const r = ""; function n(a) { return ( r.length === 0 || ((a = a.slice(r.length)), a.startsWith("/") || (a = "/" + a)), a ); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Ou, Ou.exports)), Ou.exports ); } var UA; function Cre() { return ( UA || ((UA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "default", { enumerable: !0, get: function () { return u; }, })); const t = yre(), r = _re(), n = Us(), a = jE(), o = GB(), i = kE(); function u(l, c, d, p, f, h) { let m = !1, y = !1, b = (0, i.parseRelativeUrl)(l), g = (0, n.removeTrailingSlash)( (0, a.normalizeLocalePath)((0, o.removeBasePath)(b.pathname), h) .pathname, ), v; const x = (w) => { let E = (0, t.getPathMatch)(w.source + "", { removeUnnamedParams: !0, strict: !0, })(b.pathname); if ((w.has || w.missing) && E) { const _ = (0, r.matchHas)( { headers: { host: document.location.hostname, "user-agent": navigator.userAgent, }, cookies: document.cookie.split("; ").reduce((P, D) => { const [F, ...L] = D.split("="); return ((P[F] = L.join("=")), P); }, {}), }, b.query, w.has, w.missing, ); _ ? Object.assign(E, _) : (E = !1); } if (E) { if (!w.destination) return ((y = !0), !0); const _ = (0, r.prepareDestination)({ appendParamsToQuery: !0, destination: w.destination, params: E, query: p, }); if ( ((b = _.parsedDestination), (l = _.newUrl), Object.assign(p, _.parsedDestination.query), (g = (0, n.removeTrailingSlash)( (0, a.normalizeLocalePath)((0, o.removeBasePath)(l), h) .pathname, )), c.includes(g)) ) return ((m = !0), (v = g), !0); if (((v = f(g)), v !== l && c.includes(v))) return ((m = !0), !0); } }; let A = !1; for (let w = 0; w < d.beforeFiles.length; w++) x(d.beforeFiles[w]); if (((m = c.includes(g)), !m)) { if (!A) { for (let w = 0; w < d.afterFiles.length; w++) if (x(d.afterFiles[w])) { A = !0; break; } } if ((A || ((v = f(g)), (m = c.includes(v)), (A = m)), !A)) { for (let w = 0; w < d.fallback.length; w++) if (x(d.fallback[w])) { A = !0; break; } } } return { asPath: l, parsedAs: b, matchedPage: m, resolvedHref: v, externalDest: y, }; } })(qf)), qf ); } var Wf = {}, HA; function WB() { return ( HA || ((HA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getRouteMatcher", { enumerable: !0, get: function () { return r; }, })); const t = Hs(); function r(n) { let { re: a, groups: o } = n; return (i) => { const u = a.exec(i); if (!u) return !1; const l = (d) => { try { return decodeURIComponent(d); } catch { throw Object.defineProperty( new t.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", { value: "E528", enumerable: !1, configurable: !0 }, ); } }, c = {}; for (const [d, p] of Object.entries(o)) { const f = u[p.pos]; f !== void 0 && (p.repeat ? (c[d] = f.split("/").map((h) => l(h))) : (c[d] = l(f))); } return c; }; } })(Wf)), Wf ); } var Jf = {}, Xf = {}, VA; function JB() { return ( VA || ((VA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(Pe, xe) { for (var ke in xe) Object.defineProperty(Pe, ke, { enumerable: !0, get: xe[ke] }); } t(e, { ACTION_SUFFIX: function () { return p; }, APP_DIR_ALIAS: function () { return k; }, CACHE_ONE_YEAR: function () { return E; }, DOT_NEXT_ALIAS: function () { return q; }, ESLINT_DEFAULT_DIRS: function () { return te; }, GSP_NO_RETURNED_VALUE: function () { return be; }, GSSP_COMPONENT_MEMBER_ERROR: function () { return z; }, GSSP_NO_RETURNED_VALUE: function () { return rt; }, INFINITE_CACHE: function () { return _; }, INSTRUMENTATION_HOOK_FILENAME: function () { return F; }, MATCHED_PATH_HEADER: function () { return a; }, MIDDLEWARE_FILENAME: function () { return P; }, MIDDLEWARE_LOCATION_REGEXP: function () { return D; }, NEXT_BODY_SUFFIX: function () { return m; }, NEXT_CACHE_IMPLICIT_TAG_ID: function () { return C; }, NEXT_CACHE_REVALIDATED_TAGS_HEADER: function () { return b; }, NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function () { return g; }, NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function () { return w; }, NEXT_CACHE_TAGS_HEADER: function () { return y; }, NEXT_CACHE_TAG_MAX_ITEMS: function () { return x; }, NEXT_CACHE_TAG_MAX_LENGTH: function () { return A; }, NEXT_DATA_SUFFIX: function () { return f; }, NEXT_INTERCEPTION_MARKER_PREFIX: function () { return n; }, NEXT_META_SUFFIX: function () { return h; }, NEXT_QUERY_PARAM_PREFIX: function () { return r; }, NEXT_RESUME_HEADER: function () { return v; }, NON_STANDARD_NODE_ENV: function () { return ne; }, PAGES_DIR_ALIAS: function () { return L; }, PRERENDER_REVALIDATE_HEADER: function () { return o; }, PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function () { return i; }, PUBLIC_DIR_MIDDLEWARE_CONFLICT: function () { return V; }, ROOT_DIR_ALIAS: function () { return T; }, RSC_ACTION_CLIENT_WRAPPER_ALIAS: function () { return K; }, RSC_ACTION_ENCRYPTION_ALIAS: function () { return H; }, RSC_ACTION_PROXY_ALIAS: function () { return Q; }, RSC_ACTION_VALIDATE_ALIAS: function () { return W; }, RSC_CACHE_WRAPPER_ALIAS: function () { return se; }, RSC_MOD_REF_PROXY_ALIAS: function () { return I; }, RSC_PREFETCH_SUFFIX: function () { return u; }, RSC_SEGMENTS_DIR_SUFFIX: function () { return l; }, RSC_SEGMENT_SUFFIX: function () { return c; }, RSC_SUFFIX: function () { return d; }, SERVER_PROPS_EXPORT_ERROR: function () { return ge; }, SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function () { return re; }, SERVER_PROPS_SSG_CONFLICT: function () { return he; }, SERVER_RUNTIME: function () { return ae; }, SSG_FALLBACK_EXPORT_ERROR: function () { return ue; }, SSG_GET_INITIAL_PROPS_CONFLICT: function () { return Z; }, STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function () { return oe; }, UNSTABLE_REVALIDATE_RENAME_ERROR: function () { return Ke; }, WEBPACK_LAYERS: function () { return fe; }, WEBPACK_RESOURCE_QUERIES: function () { return we; }, }); const r = "nxtP", n = "nxtI", a = "x-matched-path", o = "x-prerender-revalidate", i = "x-prerender-revalidate-if-generated", u = ".prefetch.rsc", l = ".segments", c = ".segment.rsc", d = ".rsc", p = ".action", f = ".json", h = ".meta", m = ".body", y = "x-next-cache-tags", b = "x-next-revalidated-tags", g = "x-next-revalidate-tag-token", v = "next-resume", x = 128, A = 256, w = 1024, C = "_N_T_", E = 31536e3, _ = 4294967294, P = "middleware", D = `(?:src/)?${P}`, F = "instrumentation", L = "private-next-pages", q = "private-dot-next", T = "private-next-root-dir", k = "private-next-app-dir", I = "private-next-rsc-mod-ref-proxy", W = "private-next-rsc-action-validate", Q = "private-next-rsc-server-reference", se = "private-next-rsc-cache-wrapper", H = "private-next-rsc-action-encryption", K = "private-next-rsc-action-client-wrapper", V = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", Z = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", re = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", he = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", oe = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", ge = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", be = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", rt = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", Ke = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", z = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", ne = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', ue = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", te = ["app", "pages", "components", "lib", "src"], ae = { edge: "edge", experimentalEdge: "experimental-edge", nodejs: "nodejs", }, ee = { shared: "shared", reactServerComponents: "rsc", serverSideRendering: "ssr", actionBrowser: "action-browser", apiNode: "api-node", apiEdge: "api-edge", middleware: "middleware", instrument: "instrument", edgeAsset: "edge-asset", appPagesBrowser: "app-pages-browser", pagesDirBrowser: "pages-dir-browser", pagesDirEdge: "pages-dir-edge", pagesDirNode: "pages-dir-node", }, fe = { ...ee, GROUP: { builtinReact: [ee.reactServerComponents, ee.actionBrowser], serverOnly: [ ee.reactServerComponents, ee.actionBrowser, ee.instrument, ee.middleware, ], neutralTarget: [ee.apiNode, ee.apiEdge], clientOnly: [ee.serverSideRendering, ee.appPagesBrowser], bundled: [ ee.reactServerComponents, ee.actionBrowser, ee.serverSideRendering, ee.appPagesBrowser, ee.shared, ee.instrument, ee.middleware, ], appPages: [ ee.reactServerComponents, ee.serverSideRendering, ee.appPagesBrowser, ee.actionBrowser, ], }, }, we = { edgeSSREntry: "__next_edge_ssr_entry__", metadata: "__next_metadata__", metadataRoute: "__next_metadata_route__", metadataImageMeta: "__next_metadata_image_meta__", }; })(Xf)), Xf ); } var zA; function XB() { return ( zA || ((zA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(b, g) { for (var v in g) Object.defineProperty(b, v, { enumerable: !0, get: g[v] }); } t(e, { getNamedMiddlewareRegex: function () { return y; }, getNamedRouteRegex: function () { return m; }, getRouteRegex: function () { return d; }, parseParameter: function () { return u; }, }); const r = JB(), n = NE(), a = zB(), o = Us(), i = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/; function u(b) { const g = b.match(i); return l(g ? g[2] : b); } function l(b) { const g = b.startsWith("[") && b.endsWith("]"); g && (b = b.slice(1, -1)); const v = b.startsWith("..."); return (v && (b = b.slice(3)), { key: b, repeat: v, optional: g }); } function c(b, g, v) { const x = {}; let A = 1; const w = []; for (const C of (0, o.removeTrailingSlash)(b).slice(1).split("/")) { const E = n.INTERCEPTION_ROUTE_MARKERS.find((P) => C.startsWith(P)), _ = C.match(i); if (E && _ && _[2]) { const { key: P, optional: D, repeat: F } = l(_[2]); ((x[P] = { pos: A++, repeat: F, optional: D }), w.push("/" + (0, a.escapeStringRegexp)(E) + "([^/]+?)")); } else if (_ && _[2]) { const { key: P, repeat: D, optional: F } = l(_[2]); ((x[P] = { pos: A++, repeat: D, optional: F }), v && _[1] && w.push("/" + (0, a.escapeStringRegexp)(_[1]))); let L = D ? (F ? "(?:/(.+?))?" : "/(.+?)") : "/([^/]+?)"; (v && _[1] && (L = L.substring(1)), w.push(L)); } else w.push("/" + (0, a.escapeStringRegexp)(C)); g && _ && _[3] && w.push((0, a.escapeStringRegexp)(_[3])); } return { parameterizedRoute: w.join(""), groups: x }; } function d(b, g) { let { includeSuffix: v = !1, includePrefix: x = !1, excludeOptionalTrailingSlash: A = !1, } = g === void 0 ? {} : g; const { parameterizedRoute: w, groups: C } = c(b, v, x); let E = w; return ( A || (E += "(?:/)?"), { re: new RegExp("^" + E + "$"), groups: C } ); } function p() { let b = 0; return () => { let g = "", v = ++b; for (; v > 0; ) ((g += String.fromCharCode(97 + ((v - 1) % 26))), (v = Math.floor((v - 1) / 26))); return g; }; } function f(b) { let { interceptionMarker: g, getSafeRouteKey: v, segment: x, routeKeys: A, keyPrefix: w, backreferenceDuplicateKeys: C, } = b; const { key: E, optional: _, repeat: P } = l(x); let D = E.replace(/\W/g, ""); w && (D = "" + w + D); let F = !1; ((D.length === 0 || D.length > 30) && (F = !0), isNaN(parseInt(D.slice(0, 1))) || (F = !0), F && (D = v())); const L = D in A; w ? (A[D] = "" + w + E) : (A[D] = E); const q = g ? (0, a.escapeStringRegexp)(g) : ""; let T; return ( L && C ? (T = "\\k<" + D + ">") : P ? (T = "(?<" + D + ">.+?)") : (T = "(?<" + D + ">[^/]+?)"), _ ? "(?:/" + q + T + ")?" : "/" + q + T ); } function h(b, g, v, x, A) { const w = p(), C = {}, E = []; for (const _ of (0, o.removeTrailingSlash)(b).slice(1).split("/")) { const P = n.INTERCEPTION_ROUTE_MARKERS.some((F) => _.startsWith(F)), D = _.match(i); if (P && D && D[2]) E.push( f({ getSafeRouteKey: w, interceptionMarker: D[1], segment: D[2], routeKeys: C, keyPrefix: g ? r.NEXT_INTERCEPTION_MARKER_PREFIX : void 0, backreferenceDuplicateKeys: A, }), ); else if (D && D[2]) { x && D[1] && E.push("/" + (0, a.escapeStringRegexp)(D[1])); let F = f({ getSafeRouteKey: w, segment: D[2], routeKeys: C, keyPrefix: g ? r.NEXT_QUERY_PARAM_PREFIX : void 0, backreferenceDuplicateKeys: A, }); (x && D[1] && (F = F.substring(1)), E.push(F)); } else E.push("/" + (0, a.escapeStringRegexp)(_)); v && D && D[3] && E.push((0, a.escapeStringRegexp)(D[3])); } return { namedParameterizedRoute: E.join(""), routeKeys: C }; } function m(b, g) { var v, x, A; const w = h( b, g.prefixRouteKeys, (v = g.includeSuffix) != null ? v : !1, (x = g.includePrefix) != null ? x : !1, (A = g.backreferenceDuplicateKeys) != null ? A : !1, ); let C = w.namedParameterizedRoute; return ( g.excludeOptionalTrailingSlash || (C += "(?:/)?"), { ...d(b, g), namedRegex: "^" + C + "$", routeKeys: w.routeKeys } ); } function y(b, g) { const { parameterizedRoute: v } = c(b, !1, !1), { catchAll: x = !0 } = g; if (v === "/") return { namedRegex: "^/" + (x ? ".*" : "") + "$" }; const { namedParameterizedRoute: A } = h(b, !1, !1, !1, !1); let w = x ? "(?:(/.*)?)" : ""; return { namedRegex: "^" + A + w + "$" }; } })(Jf)), Jf ); } var Kf = {}, GA; function KB() { return ( GA || ((GA = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(l, c) { for (var d in c) Object.defineProperty(l, d, { enumerable: !0, get: c[d] }); } t(e, { formatUrl: function () { return o; }, formatWithValidation: function () { return u; }, urlObjectKeys: function () { return i; }, }); const n = $s()._(Zd()), a = /https?|ftp|gopher|file/; function o(l) { let { auth: c, hostname: d } = l, p = l.protocol || "", f = l.pathname || "", h = l.hash || "", m = l.query || "", y = !1; ((c = c ? encodeURIComponent(c).replace(/%3A/i, ":") + "@" : ""), l.host ? (y = c + l.host) : d && ((y = c + (~d.indexOf(":") ? "[" + d + "]" : d)), l.port && (y += ":" + l.port)), m && typeof m == "object" && (m = String(n.urlQueryToSearchParams(m)))); let b = l.search || (m && "?" + m) || ""; return ( p && !p.endsWith(":") && (p += ":"), l.slashes || ((!p || a.test(p)) && y !== !1) ? ((y = "//" + (y || "")), f && f[0] !== "/" && (f = "/" + f)) : y || (y = ""), h && h[0] !== "#" && (h = "#" + h), b && b[0] !== "?" && (b = "?" + b), (f = f.replace(/[?#]/g, encodeURIComponent)), (b = b.replace("#", "%23")), "" + p + y + f + b + h ); } const i = [ "auth", "hash", "host", "hostname", "href", "path", "pathname", "port", "protocol", "query", "search", "slashes", ]; function u(l) { return o(l); } })(Kf)), Kf ); } var Fu = { exports: {} }, WA; function wre() { return ( WA || ((WA = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "detectDomainLocale", { enumerable: !0, get: function () { return r; }, })); const r = function () { for (var n = arguments.length, a = new Array(n), o = 0; o < n; o++) a[o] = arguments[o]; }; (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Fu, Fu.exports)), Fu.exports ); } var Iu = { exports: {} }, Nu = { exports: {} }, JA; function ME() { return ( JA || ((JA = 1), (function (e, t) { var r = {}; (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "normalizePathTrailingSlash", { enumerable: !0, get: function () { return o; }, })); const n = Us(), a = oi(), o = (i) => { if (!i.startsWith("/") || r.__NEXT_MANUAL_TRAILING_SLASH) return i; const { pathname: u, query: l, hash: c } = (0, a.parsePath)(i); return "" + (0, n.removeTrailingSlash)(u) + l + c; }; (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Nu, Nu.exports)), Nu.exports ); } var XA; function Are() { return ( XA || ((XA = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "addLocale", { enumerable: !0, get: function () { return r; }, }), ME()); const r = function (n) { for ( var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), i = 1; i < a; i++ ) o[i - 1] = arguments[i]; return n; }; (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Iu, Iu.exports)), Iu.exports ); } var ju = { exports: {} }, KA; function Sre() { return ( KA || ((KA = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "removeLocale", { enumerable: !0, get: function () { return r; }, }), oi()); function r(n, a) { return n; } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(ju, ju.exports)), ju.exports ); } var ku = { exports: {} }, Yf = {}, YA; function BE() { return ( YA || ((YA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addPathPrefix", { enumerable: !0, get: function () { return r; }, })); const t = oi(); function r(n, a) { if (!n.startsWith("/") || !a) return n; const { pathname: o, query: i, hash: u } = (0, t.parsePath)(n); return "" + a + o + i + u; } })(Yf)), Yf ); } var QA; function xre() { return ( QA || ((QA = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "addBasePath", { enumerable: !0, get: function () { return o; }, })); const r = BE(), n = ME(), a = ""; function o(i, u) { return (0, n.normalizePathTrailingSlash)((0, r.addPathPrefix)(i, a)); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(ku, ku.exports)), ku.exports ); } var qu = { exports: {} }, Qf = {}, ZA; function YB() { return ( ZA || ((ZA = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "omit", { enumerable: !0, get: function () { return t; }, })); function t(r, n) { const a = {}; return ( Object.keys(r).forEach((o) => { n.includes(o) || (a[o] = r[o]); }), a ); } })(Qf)), Qf ); } var Zf = {}, e1; function QB() { return ( e1 || ((e1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "isLocalURL", { enumerable: !0, get: function () { return n; }, })); const t = Hs(), r = qE(); function n(a) { if (!(0, t.isAbsoluteUrl)(a)) return !0; try { const o = (0, t.getLocationOrigin)(), i = new URL(a, o); return i.origin === o && (0, r.hasBasePath)(i.pathname); } catch { return !1; } } })(Zf)), Zf ); } var eh = {}, t1; function ZB() { return ( t1 || ((t1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "interpolateAs", { enumerable: !0, get: function () { return n; }, })); const t = WB(), r = XB(); function n(a, o, i) { let u = ""; const l = (0, r.getRouteRegex)(a), c = l.groups, d = (o !== a ? (0, t.getRouteMatcher)(l)(o) : "") || i; u = a; const p = Object.keys(c); return ( p.every((f) => { let h = d[f] || ""; const { repeat: m, optional: y } = c[f]; let b = "[" + (m ? "..." : "") + f + "]"; return ( y && (b = (h ? "" : "/") + "[" + b + "]"), m && !Array.isArray(h) && (h = [h]), (y || f in d) && (u = u.replace( b, m ? h.map((g) => encodeURIComponent(g)).join("/") : encodeURIComponent(h), ) || "/") ); }) || (u = ""), { params: p, result: u } ); } })(eh)), eh ); } var r1; function Pre() { return ( r1 || ((r1 = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "resolveHref", { enumerable: !0, get: function () { return d; }, })); const r = Zd(), n = KB(), a = YB(), o = Hs(), i = ME(), u = QB(), l = HB(), c = ZB(); function d(p, f, h) { let m, y = typeof f == "string" ? f : (0, n.formatWithValidation)(f); const b = y.match(/^[a-zA-Z]{1,}:\/\//), g = b ? y.slice(b[0].length) : y; if ((g.split("?", 1)[0] || "").match(/(\/\/|\\)/)) { console.error( "Invalid href '" + y + "' passed to next/router in page: '" + p.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.", ); const x = (0, o.normalizeRepeatedSlashes)(g); y = (b ? b[0] : "") + x; } if (!(0, u.isLocalURL)(y)) return h ? [y] : y; try { m = new URL(y.startsWith("#") ? p.asPath : p.pathname, "http://n"); } catch { m = new URL("/", "http://n"); } try { const x = new URL(y, m); x.pathname = (0, i.normalizePathTrailingSlash)(x.pathname); let A = ""; if ((0, l.isDynamicRoute)(x.pathname) && x.searchParams && h) { const C = (0, r.searchParamsToUrlQuery)(x.searchParams), { result: E, params: _ } = (0, c.interpolateAs)( x.pathname, x.pathname, C, ); E && (A = (0, n.formatWithValidation)({ pathname: E, hash: x.hash, query: (0, a.omit)(C, _), })); } const w = x.origin === m.origin ? x.href.slice(x.origin.length) : x.href; return h ? [w, A || w] : w; } catch { return h ? [y] : y; } } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(qu, qu.exports)), qu.exports ); } var th = {}, n1; function Rre() { return ( n1 || ((n1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "isAPIRoute", { enumerable: !0, get: function () { return t; }, })); function t(r) { return r === "/api" || !!r?.startsWith("/api/"); } })(th)), th ); } var rh = {}, nh = {}, a1; function Tre() { return ( a1 || ((a1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "removePathPrefix", { enumerable: !0, get: function () { return r; }, })); const t = ep(); function r(n, a) { if (!(0, t.pathHasPrefix)(n, a)) return n; const o = n.slice(a.length); return o.startsWith("/") ? o : "/" + o; } })(nh)), nh ); } var o1; function Ore() { return ( o1 || ((o1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getNextPathnameInfo", { enumerable: !0, get: function () { return a; }, })); const t = jE(), r = Tre(), n = ep(); function a(o, i) { var u; const { basePath: l, i18n: c, trailingSlash: d, } = (u = i.nextConfig) != null ? u : {}, p = { pathname: o, trailingSlash: o !== "/" ? o.endsWith("/") : d }; l && (0, n.pathHasPrefix)(p.pathname, l) && ((p.pathname = (0, r.removePathPrefix)(p.pathname, l)), (p.basePath = l)); let f = p.pathname; if ( p.pathname.startsWith("/_next/data/") && p.pathname.endsWith(".json") ) { const m = p.pathname .replace(/^\/_next\/data\//, "") .replace(/\.json$/, "") .split("/"), y = m[0]; ((p.buildId = y), (f = m[1] !== "index" ? "/" + m.slice(1).join("/") : "/"), i.parseData === !0 && (p.pathname = f)); } if (c) { let m = i.i18nProvider ? i.i18nProvider.analyze(p.pathname) : (0, t.normalizeLocalePath)(p.pathname, c.locales); p.locale = m.detectedLocale; var h; ((p.pathname = (h = m.pathname) != null ? h : p.pathname), !m.detectedLocale && p.buildId && ((m = i.i18nProvider ? i.i18nProvider.analyze(f) : (0, t.normalizeLocalePath)(f, c.locales)), m.detectedLocale && (p.locale = m.detectedLocale))); } return p; } })(rh)), rh ); } var ah = {}, oh = {}, i1; function Dre() { return ( i1 || ((i1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addPathSuffix", { enumerable: !0, get: function () { return r; }, })); const t = oi(); function r(n, a) { if (!n.startsWith("/") || !a) return n; const { pathname: o, query: i, hash: u } = (0, t.parsePath)(n); return "" + o + a + i + u; } })(oh)), oh ); } var ih = {}, s1; function Fre() { return ( s1 || ((s1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addLocale", { enumerable: !0, get: function () { return n; }, })); const t = BE(), r = ep(); function n(a, o, i, u) { if (!o || o === i) return a; const l = a.toLowerCase(); return !u && ((0, r.pathHasPrefix)(l, "/api") || (0, r.pathHasPrefix)(l, "/" + o.toLowerCase())) ? a : (0, t.addPathPrefix)(a, "/" + o); } })(ih)), ih ); } var u1; function Ire() { return ( u1 || ((u1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "formatNextPathnameInfo", { enumerable: !0, get: function () { return o; }, })); const t = Us(), r = BE(), n = Dre(), a = Fre(); function o(i) { let u = (0, a.addLocale)( i.pathname, i.locale, i.buildId ? void 0 : i.defaultLocale, i.ignorePrefix, ); return ( (i.buildId || !i.trailingSlash) && (u = (0, t.removeTrailingSlash)(u)), i.buildId && (u = (0, n.addPathSuffix)( (0, r.addPathPrefix)(u, "/_next/data/" + i.buildId), i.pathname === "/" ? "index.json" : ".json", )), (u = (0, r.addPathPrefix)(u, i.basePath)), !i.buildId && i.trailingSlash ? u.endsWith("/") ? u : (0, n.addPathSuffix)(u, "/") : (0, t.removeTrailingSlash)(u) ); } })(ah)), ah ); } var sh = {}, l1; function Nre() { return ( l1 || ((l1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "compareRouterStates", { enumerable: !0, get: function () { return t; }, })); function t(r, n) { const a = Object.keys(r); if (a.length !== Object.keys(n).length) return !1; for (let o = a.length; o--; ) { const i = a[o]; if (i === "query") { const u = Object.keys(r.query); if (u.length !== Object.keys(n.query).length) return !1; for (let l = u.length; l--; ) { const c = u[l]; if (!n.query.hasOwnProperty(c) || r.query[c] !== n.query[c]) return !1; } } else if (!n.hasOwnProperty(i) || r[i] !== n[i]) return !1; } return !0; } })(sh)), sh ); } var uh = {}, lh = {}, c1; function jre() { return ( c1 || ((c1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "HTML_LIMITED_BOT_UA_RE", { enumerable: !0, get: function () { return t; }, })); const t = /Mediapartners-Google|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview/i; })(lh)), lh ); } var d1; function kre() { return ( d1 || ((d1 = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(c, d) { for (var p in d) Object.defineProperty(c, p, { enumerable: !0, get: d[p] }); } t(e, { HTML_LIMITED_BOT_UA_RE: function () { return r.HTML_LIMITED_BOT_UA_RE; }, HTML_LIMITED_BOT_UA_RE_STRING: function () { return a; }, getBotType: function () { return l; }, isBot: function () { return u; }, }); const r = jre(), n = /Googlebot|Google-PageRenderer|AdsBot-Google|googleweblight|Storebot-Google/i, a = r.HTML_LIMITED_BOT_UA_RE.source; function o(c) { return n.test(c); } function i(c) { return r.HTML_LIMITED_BOT_UA_RE.test(c); } function u(c) { return o(c) || i(c); } function l(c) { if (o(c)) return "dom"; if (i(c)) return "html"; } })(uh)), uh ); } var ch = {}, p1; function qre() { return ( p1 || ((p1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "handleSmoothScroll", { enumerable: !0, get: function () { return t; }, })); function t(r, n) { if ((n === void 0 && (n = {}), n.onlyHashChange)) { r(); return; } const a = document.documentElement, o = a.style.scrollBehavior; ((a.style.scrollBehavior = "auto"), n.dontForceLayout || a.getClientRects(), r(), (a.style.scrollBehavior = o)); } })(ch)), ch ); } var dh = {}, f1; function Mre() { return ( f1 || ((f1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "BloomFilter", { enumerable: !0, get: function () { return n; }, })); function t(a) { let o = 0; for (let i = 0; i < a.length; i++) { const u = a.charCodeAt(i); ((o = Math.imul(o ^ u, 1540483477)), (o ^= o >>> 13), (o = Math.imul(o, 1540483477))); } return o >>> 0; } const r = 1e-4; class n { static from(o, i) { i === void 0 && (i = r); const u = new n(o.length, i); for (const l of o) u.add(l); return u; } export() { return { numItems: this.numItems, errorRate: this.errorRate, numBits: this.numBits, numHashes: this.numHashes, bitArray: this.bitArray, }; } import(o) { ((this.numItems = o.numItems), (this.errorRate = o.errorRate), (this.numBits = o.numBits), (this.numHashes = o.numHashes), (this.bitArray = o.bitArray)); } add(o) { this.getHashValues(o).forEach((u) => { this.bitArray[u] = 1; }); } contains(o) { return this.getHashValues(o).every((u) => this.bitArray[u]); } getHashValues(o) { const i = []; for (let u = 1; u <= this.numHashes; u++) { const l = t("" + o + u) % this.numBits; i.push(l); } return i; } constructor(o, i = r) { ((this.numItems = o), (this.errorRate = i), (this.numBits = Math.ceil( -(o * Math.log(i)) / (Math.log(2) * Math.log(2)), )), (this.numHashes = Math.ceil((this.numBits / o) * Math.log(2))), (this.bitArray = new Array(this.numBits).fill(0))); } } })(dh)), dh ); } var h1; function Bre() { return ( h1 || ((h1 = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(ue, te) { for (var ae in te) Object.defineProperty(ue, ae, { enumerable: !0, get: te[ae] }); } t(e, { createKey: function () { return rt; }, default: function () { return ne; }, matchesMiddleware: function () { return se; }, }); const r = ca(), n = $s(), a = Us(), o = are(), i = ure(), u = n._($B()), l = hre(), c = jE(), d = r._(mre()), p = Hs(), f = UB(), h = kE(); Cre(); const m = WB(), y = XB(), b = KB(); wre(); const g = oi(), v = Are(), x = Sre(), A = GB(), w = xre(), C = qE(), E = Pre(), _ = Rre(), P = Ore(), D = Ire(), F = Nre(), L = QB(), q = kre(), T = YB(), k = ZB(), I = qre(), W = JB(); function Q() { return Object.assign( Object.defineProperty( new Error("Route Cancelled"), "__NEXT_ERROR_CODE", { value: "E315", enumerable: !1, configurable: !0 }, ), { cancelled: !0 }, ); } async function se(ue) { const te = await Promise.resolve( ue.router.pageLoader.getMiddleware(), ); if (!te) return !1; const { pathname: ae } = (0, g.parsePath)(ue.asPath), ee = (0, C.hasBasePath)(ae) ? (0, A.removeBasePath)(ae) : ae, fe = (0, w.addBasePath)((0, v.addLocale)(ee, ue.locale)); return te.some((we) => new RegExp(we.regexp).test(fe)); } function H(ue) { const te = (0, p.getLocationOrigin)(); return ue.startsWith(te) ? ue.substring(te.length) : ue; } function K(ue, te, ae) { let [ee, fe] = (0, E.resolveHref)(ue, te, !0); const we = (0, p.getLocationOrigin)(), Pe = ee.startsWith(we), xe = fe && fe.startsWith(we); ((ee = H(ee)), (fe = fe && H(fe))); const ke = Pe ? ee : (0, w.addBasePath)(ee), Te = ae ? H((0, E.resolveHref)(ue, ae)) : fe || ee; return { url: ke, as: xe ? Te : (0, w.addBasePath)(Te) }; } function V(ue, te) { const ae = (0, a.removeTrailingSlash)((0, l.denormalizePagePath)(ue)); return ae === "/404" || ae === "/_error" ? ue : (te.includes(ae) || te.some((ee) => { if ( (0, f.isDynamicRoute)(ee) && (0, y.getRouteRegex)(ee).re.test(ae) ) return ((ue = ee), !0); }), (0, a.removeTrailingSlash)(ue)); } function Z(ue, te, ae) { const ee = { basePath: ae.router.basePath, i18n: { locales: ae.router.locales }, trailingSlash: !1, }, fe = te.headers.get("x-nextjs-rewrite"); let we = fe || te.headers.get("x-nextjs-matched-path"); const Pe = te.headers.get(W.MATCHED_PATH_HEADER); if ( (Pe && !we && !Pe.includes("__next_data_catchall") && !Pe.includes("/_error") && !Pe.includes("/404") && (we = Pe), we) ) { if (we.startsWith("/")) { const je = (0, h.parseRelativeUrl)(we), Le = (0, P.getNextPathnameInfo)(je.pathname, { nextConfig: ee, parseData: !0, }); let ve = (0, a.removeTrailingSlash)(Le.pathname); return Promise.all([ ae.router.pageLoader.getPageList(), (0, o.getClientBuildManifest)(), ]).then((De) => { let [ye, { __rewrites: Oe }] = De, Ne = (0, v.addLocale)(Le.pathname, Le.locale); if ( (0, f.isDynamicRoute)(Ne) || (!fe && ye.includes( (0, c.normalizeLocalePath)( (0, A.removeBasePath)(Ne), ae.router.locales, ).pathname, )) ) { const ot = (0, P.getNextPathnameInfo)( (0, h.parseRelativeUrl)(ue).pathname, { nextConfig: ee, parseData: !0 }, ); ((Ne = (0, w.addBasePath)(ot.pathname)), (je.pathname = Ne)); } if (!ye.includes(ve)) { const ot = V(ve, ye); ot !== ve && (ve = ot); } const mt = ye.includes(ve) ? ve : V( (0, c.normalizeLocalePath)( (0, A.removeBasePath)(je.pathname), ae.router.locales, ).pathname, ye, ); if ((0, f.isDynamicRoute)(mt)) { const ot = (0, m.getRouteMatcher)((0, y.getRouteRegex)(mt))( Ne, ); Object.assign(je.query, ot || {}); } return { type: "rewrite", parsedAs: je, resolvedHref: mt }; }); } const ke = (0, g.parsePath)(ue), Te = (0, D.formatNextPathnameInfo)({ ...(0, P.getNextPathnameInfo)(ke.pathname, { nextConfig: ee, parseData: !0, }), defaultLocale: ae.router.defaultLocale, buildId: "", }); return Promise.resolve({ type: "redirect-external", destination: "" + Te + ke.query + ke.hash, }); } const xe = te.headers.get("x-nextjs-redirect"); if (xe) { if (xe.startsWith("/")) { const ke = (0, g.parsePath)(xe), Te = (0, D.formatNextPathnameInfo)({ ...(0, P.getNextPathnameInfo)(ke.pathname, { nextConfig: ee, parseData: !0, }), defaultLocale: ae.router.defaultLocale, buildId: "", }); return Promise.resolve({ type: "redirect-internal", newAs: "" + Te + ke.query + ke.hash, newUrl: "" + Te + ke.query + ke.hash, }); } return Promise.resolve({ type: "redirect-external", destination: xe, }); } return Promise.resolve({ type: "next" }); } async function re(ue) { if (!(await se(ue)) || !ue.fetchData) return null; const ae = await ue.fetchData(), ee = await Z(ae.dataHref, ae.response, ue); return { dataHref: ae.dataHref, json: ae.json, response: ae.response, text: ae.text, cacheKey: ae.cacheKey, effect: ee, }; } const he = Symbol("SSG_DATA_NOT_FOUND"); function oe(ue, te, ae) { return fetch(ue, { credentials: "same-origin", method: ae.method || "GET", headers: Object.assign({}, ae.headers, { "x-nextjs-data": "1" }), }).then((ee) => !ee.ok && te > 1 && ee.status >= 500 ? oe(ue, te - 1, ae) : ee, ); } function ge(ue) { try { return JSON.parse(ue); } catch { return null; } } function be(ue) { let { dataHref: te, inflightCache: ae, isPrefetch: ee, hasMiddleware: fe, isServerRender: we, parseJSON: Pe, persistCache: xe, isBackground: ke, unstable_skipClientCache: Te, } = ue; const { href: je } = new URL(te, window.location.href), Le = (ve) => { var De; return oe(te, we ? 3 : 1, { headers: Object.assign( {}, ee ? { purpose: "prefetch" } : {}, ee && fe ? { "x-middleware-prefetch": "1" } : {}, {}, ), method: (De = ve?.method) != null ? De : "GET", }) .then((ye) => ye.ok && ve?.method === "HEAD" ? { dataHref: te, response: ye, text: "", json: {}, cacheKey: je, } : ye.text().then((Oe) => { if (!ye.ok) { if (fe && [301, 302, 307, 308].includes(ye.status)) return { dataHref: te, response: ye, text: Oe, json: {}, cacheKey: je, }; if (ye.status === 404) { var Ne; if ((Ne = ge(Oe)) != null && Ne.notFound) return { dataHref: te, json: { notFound: he }, response: ye, text: Oe, cacheKey: je, }; } const mt = Object.defineProperty( new Error("Failed to load static props"), "__NEXT_ERROR_CODE", { value: "E124", enumerable: !1, configurable: !0 }, ); throw (we || (0, o.markAssetError)(mt), mt); } return { dataHref: te, json: Pe ? ge(Oe) : null, response: ye, text: Oe, cacheKey: je, }; }), ) .then( (ye) => ( (!xe || ye.response.headers.get("x-middleware-cache") === "no-cache") && delete ae[je], ye ), ) .catch((ye) => { throw ( Te || delete ae[je], (ye.message === "Failed to fetch" || ye.message === "NetworkError when attempting to fetch resource." || ye.message === "Load failed") && (0, o.markAssetError)(ye), ye ); }); }; return Te && xe ? Le({}).then( (ve) => ( ve.response.headers.get("x-middleware-cache") !== "no-cache" && (ae[je] = Promise.resolve(ve)), ve ), ) : ae[je] !== void 0 ? ae[je] : (ae[je] = Le(ke ? { method: "HEAD" } : {})); } function rt() { return Math.random().toString(36).slice(2, 10); } function Ke(ue) { let { url: te, router: ae } = ue; if (te === (0, w.addBasePath)((0, v.addLocale)(ae.asPath, ae.locale))) throw Object.defineProperty( new Error( "Invariant: attempted to hard navigate to the same URL " + te + " " + location.href, ), "__NEXT_ERROR_CODE", { value: "E282", enumerable: !1, configurable: !0 }, ); window.location.href = te; } const z = (ue) => { let { route: te, router: ae } = ue, ee = !1; const fe = (ae.clc = () => { ee = !0; }); return () => { if (ee) { const Pe = Object.defineProperty( new Error('Abort fetching component for route: "' + te + '"'), "__NEXT_ERROR_CODE", { value: "E483", enumerable: !1, configurable: !0 }, ); throw ((Pe.cancelled = !0), Pe); } fe === ae.clc && (ae.clc = null); }; }; class ne { reload() { window.location.reload(); } back() { window.history.back(); } forward() { window.history.forward(); } push(te, ae, ee) { return ( ee === void 0 && (ee = {}), ({ url: te, as: ae } = K(this, te, ae)), this.change("pushState", te, ae, ee) ); } replace(te, ae, ee) { return ( ee === void 0 && (ee = {}), ({ url: te, as: ae } = K(this, te, ae)), this.change("replaceState", te, ae, ee) ); } async _bfl(te, ae, ee, fe) { { if (!this._bfl_s && !this._bfl_d) { const { BloomFilter: Le } = Mre(); let ve, De; try { ({ __routerFilterStatic: ve, __routerFilterDynamic: De } = await (0, o.getClientBuildManifest)()); } catch (ye) { return ( console.error(ye), fe ? !0 : (Ke({ url: (0, w.addBasePath)( (0, v.addLocale)( te, ee || this.locale, this.defaultLocale, ), ), router: this, }), new Promise(() => {})) ); } (ve?.numHashes && ((this._bfl_s = new Le(ve.numItems, ve.errorRate)), this._bfl_s.import(ve)), De?.numHashes && ((this._bfl_d = new Le(De.numItems, De.errorRate)), this._bfl_d.import(De))); } let ke = !1, Te = !1; const je = [{ as: te }, { as: ae }]; for (const { as: Le, allowMatchCurrent: ve } of je) if (Le) { const De = (0, a.removeTrailingSlash)( new URL(Le, "http://n").pathname, ), ye = (0, w.addBasePath)( (0, v.addLocale)(De, ee || this.locale), ); if ( ve || De !== (0, a.removeTrailingSlash)( new URL(this.asPath, "http://n").pathname, ) ) { var we, Pe; ke = ke || !!((we = this._bfl_s) != null && we.contains(De)) || !!((Pe = this._bfl_s) != null && Pe.contains(ye)); for (const Oe of [De, ye]) { const Ne = Oe.split("/"); for (let mt = 0; !Te && mt < Ne.length + 1; mt++) { var xe; const ot = Ne.slice(0, mt).join("/"); if ( ot && (xe = this._bfl_d) != null && xe.contains(ot) ) { Te = !0; break; } } } if (ke || Te) return fe ? !0 : (Ke({ url: (0, w.addBasePath)( (0, v.addLocale)( te, ee || this.locale, this.defaultLocale, ), ), router: this, }), new Promise(() => {})); } } } return !1; } async change(te, ae, ee, fe, we) { var Pe; if (!(0, L.isLocalURL)(ae)) return (Ke({ url: ae, router: this }), !1); const xe = fe._h === 1; !xe && !fe.shallow && (await this._bfl(ee, void 0, fe.locale)); let ke = xe || fe._shouldResolveHref || (0, g.parsePath)(ae).pathname === (0, g.parsePath)(ee).pathname; const Te = { ...this.state }, je = this.isReady !== !0; this.isReady = !0; const Le = this.isSsr; if ((xe || (this.isSsr = !1), xe && this.clc)) return !1; const ve = Te.locale; p.ST && performance.mark("routeChange"); const { shallow: De = !1, scroll: ye = !0 } = fe, Oe = { shallow: De }; (this._inFlightRoute && this.clc && (Le || ne.events.emit( "routeChangeError", Q(), this._inFlightRoute, Oe, ), this.clc(), (this.clc = null)), (ee = (0, w.addBasePath)( (0, v.addLocale)( (0, C.hasBasePath)(ee) ? (0, A.removeBasePath)(ee) : ee, fe.locale, this.defaultLocale, ), ))); const Ne = (0, x.removeLocale)( (0, C.hasBasePath)(ee) ? (0, A.removeBasePath)(ee) : ee, Te.locale, ); this._inFlightRoute = ee; const mt = ve !== Te.locale; if (!xe && this.onlyAHashChange(Ne) && !mt) { ((Te.asPath = Ne), ne.events.emit("hashChangeStart", ee, Oe), this.changeState(te, ae, ee, { ...fe, scroll: !1 }), ye && this.scrollToHash(Ne)); try { await this.set(Te, this.components[Te.route], null); } catch (le) { throw ( (0, u.default)(le) && le.cancelled && ne.events.emit("routeChangeError", le, Ne, Oe), le ); } return (ne.events.emit("hashChangeComplete", ee, Oe), !0); } let ot = (0, h.parseRelativeUrl)(ae), { pathname: Be, query: Ge } = ot, pt, ut; try { [pt, { __rewrites: ut }] = await Promise.all([ this.pageLoader.getPageList(), (0, o.getClientBuildManifest)(), this.pageLoader.getMiddleware(), ]); } catch { return (Ke({ url: ee, router: this }), !1); } !this.urlIsNew(Ne) && !mt && (te = "replaceState"); let Bt = ee; Be = Be && (0, a.removeTrailingSlash)((0, A.removeBasePath)(Be)); let ft = (0, a.removeTrailingSlash)(Be); const Re = ee.startsWith("/") && (0, h.parseRelativeUrl)(ee).pathname; if ((Pe = this.components[Be]) != null && Pe.__appRouter) return (Ke({ url: ee, router: this }), new Promise(() => {})); const Ze = !!( Re && ft !== Re && (!(0, f.isDynamicRoute)(ft) || !(0, m.getRouteMatcher)((0, y.getRouteRegex)(ft))(Re)) ), Pt = !fe.shallow && (await se({ asPath: ee, locale: Te.locale, router: this })); if ( (xe && Pt && (ke = !1), ke && Be !== "/_error" && ((fe._shouldResolveHref = !0), (ot.pathname = V(Be, pt)), ot.pathname !== Be && ((Be = ot.pathname), (ot.pathname = (0, w.addBasePath)(Be)), Pt || (ae = (0, b.formatWithValidation)(ot)))), !(0, L.isLocalURL)(ee)) ) return (Ke({ url: ee, router: this }), !1); ((Bt = (0, x.removeLocale)((0, A.removeBasePath)(Bt), Te.locale)), (ft = (0, a.removeTrailingSlash)(Be))); let It = !1; if ((0, f.isDynamicRoute)(ft)) { const le = (0, h.parseRelativeUrl)(Bt), me = le.pathname, Ee = (0, y.getRouteRegex)(ft); It = (0, m.getRouteMatcher)(Ee)(me); const qe = ft === me, vt = qe ? (0, k.interpolateAs)(ft, me, Ge) : {}; if (!It || (qe && !vt.result)) { const Rt = Object.keys(Ee.groups).filter( (er) => !Ge[er] && !Ee.groups[er].optional, ); if (Rt.length > 0 && !Pt) throw Object.defineProperty( new Error( (qe ? "The provided `href` (" + ae + ") value is missing query values (" + Rt.join(", ") + ") to be interpolated properly. " : "The provided `as` value (" + me + ") is incompatible with the `href` value (" + ft + "). ") + ("Read more: https://nextjs.org/docs/messages/" + (qe ? "href-interpolation-failed" : "incompatible-href-as")), ), "__NEXT_ERROR_CODE", { value: "E344", enumerable: !1, configurable: !0 }, ); } else qe ? (ee = (0, b.formatWithValidation)( Object.assign({}, le, { pathname: vt.result, query: (0, T.omit)(Ge, vt.params), }), )) : Object.assign(Ge, It); } xe || ne.events.emit("routeChangeStart", ee, Oe); const Gt = this.pathname === "/404" || this.pathname === "/_error"; try { var cr, bt, R; let le = await this.getRouteInfo({ route: ft, pathname: Be, query: Ge, as: ee, resolvedAs: Bt, routeProps: Oe, locale: Te.locale, isPreview: Te.isPreview, hasMiddleware: Pt, unstable_skipClientCache: fe.unstable_skipClientCache, isQueryUpdating: xe && !this.isFallback, isMiddlewareRewrite: Ze, }); if ( (!xe && !fe.shallow && (await this._bfl( ee, "resolvedAs" in le ? le.resolvedAs : void 0, Te.locale, )), "route" in le && Pt) ) { ((Be = le.route || ft), (ft = Be), Oe.shallow || (Ge = Object.assign({}, le.query || {}, Ge))); const xt = (0, C.hasBasePath)(ot.pathname) ? (0, A.removeBasePath)(ot.pathname) : ot.pathname; if ( (It && Be !== xt && Object.keys(It).forEach((yt) => { It && Ge[yt] === It[yt] && delete Ge[yt]; }), (0, f.isDynamicRoute)(Be)) ) { let hn = !Oe.shallow && le.resolvedAs ? le.resolvedAs : (0, w.addBasePath)( (0, v.addLocale)( new URL(ee, location.href).pathname, Te.locale, ), !0, ); (0, C.hasBasePath)(hn) && (hn = (0, A.removeBasePath)(hn)); const Xa = (0, y.getRouteRegex)(Be), da = (0, m.getRouteMatcher)(Xa)( new URL(hn, location.href).pathname, ); da && Object.assign(Ge, da); } } if ("type" in le) return le.type === "redirect-internal" ? this.change(te, le.newUrl, le.newAs, fe) : (Ke({ url: le.destination, router: this }), new Promise(() => {})); const me = le.Component; if ( (me && me.unstable_scriptLoader && [].concat(me.unstable_scriptLoader()).forEach((yt) => { (0, i.handleClientScriptLoad)(yt.props); }), (le.__N_SSG || le.__N_SSP) && le.props) ) { if (le.props.pageProps && le.props.pageProps.__N_REDIRECT) { fe.locale = !1; const xt = le.props.pageProps.__N_REDIRECT; if ( xt.startsWith("/") && le.props.pageProps.__N_REDIRECT_BASE_PATH !== !1 ) { const yt = (0, h.parseRelativeUrl)(xt); yt.pathname = V(yt.pathname, pt); const { url: hn, as: Xa } = K(this, xt, xt); return this.change(te, hn, Xa, fe); } return (Ke({ url: xt, router: this }), new Promise(() => {})); } if ( ((Te.isPreview = !!le.props.__N_PREVIEW), le.props.notFound === he) ) { let xt; try { (await this.fetchComponent("/404"), (xt = "/404")); } catch { xt = "/_error"; } if ( ((le = await this.getRouteInfo({ route: xt, pathname: xt, query: Ge, as: ee, resolvedAs: Bt, routeProps: { shallow: !1 }, locale: Te.locale, isPreview: Te.isPreview, isNotFound: !0, })), "type" in le) ) throw Object.defineProperty( new Error("Unexpected middleware effect on /404"), "__NEXT_ERROR_CODE", { value: "E158", enumerable: !1, configurable: !0 }, ); } } xe && this.pathname === "/_error" && ((bt = self.__NEXT_DATA__.props) == null || (cr = bt.pageProps) == null ? void 0 : cr.statusCode) === 500 && (R = le.props) != null && R.pageProps && (le.props.pageProps.statusCode = 500); var B; const Ee = fe.shallow && Te.route === ((B = le.route) != null ? B : ft); var j; const qe = (j = fe.scroll) != null ? j : !xe && !Ee, Rt = we ?? (qe ? { x: 0, y: 0 } : null), er = { ...Te, route: ft, pathname: Be, query: Ge, asPath: Ne, isFallback: !1, }; if (xe && Gt) { var O, G, de; if ( ((le = await this.getRouteInfo({ route: this.pathname, pathname: this.pathname, query: Ge, as: ee, resolvedAs: Bt, routeProps: { shallow: !1 }, locale: Te.locale, isPreview: Te.isPreview, isQueryUpdating: xe && !this.isFallback, })), "type" in le) ) throw Object.defineProperty( new Error( "Unexpected middleware effect on " + this.pathname, ), "__NEXT_ERROR_CODE", { value: "E225", enumerable: !1, configurable: !0 }, ); this.pathname === "/_error" && ((G = self.__NEXT_DATA__.props) == null || (O = G.pageProps) == null ? void 0 : O.statusCode) === 500 && (de = le.props) != null && de.pageProps && (le.props.pageProps.statusCode = 500); try { await this.set(er, le, Rt); } catch (xt) { throw ( (0, u.default)(xt) && xt.cancelled && ne.events.emit("routeChangeError", xt, Ne, Oe), xt ); } return !0; } if ( (ne.events.emit("beforeHistoryChange", ee, Oe), this.changeState(te, ae, ee, fe), !( xe && !Rt && !je && !mt && (0, F.compareRouterStates)(er, this.state) )) ) { try { await this.set(er, le, Rt); } catch (yt) { if (yt.cancelled) le.error = le.error || yt; else throw yt; } if (le.error) throw ( xe || ne.events.emit("routeChangeError", le.error, Ne, Oe), le.error ); (xe || ne.events.emit("routeChangeComplete", ee, Oe), qe && /#.+$/.test(ee) && this.scrollToHash(ee)); } return !0; } catch (le) { if ((0, u.default)(le) && le.cancelled) return !1; throw le; } } changeState(te, ae, ee, fe) { (fe === void 0 && (fe = {}), (te !== "pushState" || (0, p.getURL)() !== ee) && ((this._shallow = fe.shallow), window.history[te]( { url: ae, as: ee, options: fe, __N: !0, key: (this._key = te !== "pushState" ? this._key : rt()), }, "", ee, ))); } async handleRouteInfoError(te, ae, ee, fe, we, Pe) { if (te.cancelled) throw te; if ((0, o.isAssetError)(te) || Pe) throw ( ne.events.emit("routeChangeError", te, fe, we), Ke({ url: fe, router: this }), Q() ); console.error(te); try { let xe; const { page: ke, styleSheets: Te } = await this.fetchComponent("/_error"), je = { props: xe, Component: ke, styleSheets: Te, err: te, error: te, }; if (!je.props) try { je.props = await this.getInitialProps(ke, { err: te, pathname: ae, query: ee, }); } catch (Le) { (console.error("Error in error page `getInitialProps`: ", Le), (je.props = {})); } return je; } catch (xe) { return this.handleRouteInfoError( (0, u.default)(xe) ? xe : Object.defineProperty( new Error(xe + ""), "__NEXT_ERROR_CODE", { value: "E394", enumerable: !1, configurable: !0 }, ), ae, ee, fe, we, !0, ); } } async getRouteInfo(te) { let { route: ae, pathname: ee, query: fe, as: we, resolvedAs: Pe, routeProps: xe, locale: ke, hasMiddleware: Te, isPreview: je, unstable_skipClientCache: Le, isQueryUpdating: ve, isMiddlewareRewrite: De, isNotFound: ye, } = te, Oe = ae; try { var Ne, mt, ot, Be; let Ge = this.components[Oe]; if (xe.shallow && Ge && this.route === Oe) return Ge; const pt = z({ route: Oe, router: this }); Te && (Ge = void 0); let ut = Ge && !("initial" in Ge) ? Ge : void 0; const Bt = ve, ft = { dataHref: this.pageLoader.getDataHref({ href: (0, b.formatWithValidation)({ pathname: ee, query: fe, }), skipInterpolation: !0, asPath: ye ? "/404" : Pe, locale: ke, }), hasMiddleware: !0, isServerRender: this.isSsr, parseJSON: !0, inflightCache: Bt ? this.sbc : this.sdc, persistCache: !je, isPrefetch: !1, unstable_skipClientCache: Le, isBackground: Bt, }; let Re = ve && !De ? null : await re({ fetchData: () => be(ft), asPath: ye ? "/404" : Pe, locale: ke, router: this, }).catch((bt) => { if (ve) return null; throw bt; }); if ( (Re && (ee === "/_error" || ee === "/404") && (Re.effect = void 0), ve && (Re ? (Re.json = self.__NEXT_DATA__.props) : (Re = { json: self.__NEXT_DATA__.props })), pt(), (Re == null || (Ne = Re.effect) == null ? void 0 : Ne.type) === "redirect-internal" || (Re == null || (mt = Re.effect) == null ? void 0 : mt.type) === "redirect-external") ) return Re.effect; if ( (Re == null || (ot = Re.effect) == null ? void 0 : ot.type) === "rewrite" ) { const bt = (0, a.removeTrailingSlash)(Re.effect.resolvedHref), R = await this.pageLoader.getPageList(); if ( (!ve || R.includes(bt)) && ((Oe = bt), (ee = Re.effect.resolvedHref), (fe = { ...fe, ...Re.effect.parsedAs.query }), (Pe = (0, A.removeBasePath)( (0, c.normalizeLocalePath)( Re.effect.parsedAs.pathname, this.locales, ).pathname, )), (Ge = this.components[Oe]), xe.shallow && Ge && this.route === Oe && !Te) ) return { ...Ge, route: Oe }; } if ((0, _.isAPIRoute)(Oe)) return (Ke({ url: we, router: this }), new Promise(() => {})); const Ze = ut || (await this.fetchComponent(Oe).then((bt) => ({ Component: bt.page, styleSheets: bt.styleSheets, __N_SSG: bt.mod.__N_SSG, __N_SSP: bt.mod.__N_SSP, }))), Pt = Re == null || (Be = Re.response) == null ? void 0 : Be.headers.get("x-middleware-skip"), It = Ze.__N_SSG || Ze.__N_SSP; Pt && Re?.dataHref && delete this.sdc[Re.dataHref]; const { props: Gt, cacheKey: cr } = await this._getData( async () => { if (It) { if (Re?.json && !Pt) return { cacheKey: Re.cacheKey, props: Re.json }; const bt = Re?.dataHref ? Re.dataHref : this.pageLoader.getDataHref({ href: (0, b.formatWithValidation)({ pathname: ee, query: fe, }), asPath: Pe, locale: ke, }), R = await be({ dataHref: bt, isServerRender: this.isSsr, parseJSON: !0, inflightCache: Pt ? {} : this.sdc, persistCache: !je, isPrefetch: !1, unstable_skipClientCache: Le, }); return { cacheKey: R.cacheKey, props: R.json || {} }; } return { headers: {}, props: await this.getInitialProps(Ze.Component, { pathname: ee, query: fe, asPath: we, locale: ke, locales: this.locales, defaultLocale: this.defaultLocale, }), }; }, ); return ( Ze.__N_SSP && ft.dataHref && cr && delete this.sdc[cr], !this.isPreview && Ze.__N_SSG && !ve && be( Object.assign({}, ft, { isBackground: !0, persistCache: !1, inflightCache: this.sbc, }), ).catch(() => {}), (Gt.pageProps = Object.assign({}, Gt.pageProps)), (Ze.props = Gt), (Ze.route = Oe), (Ze.query = fe), (Ze.resolvedAs = Pe), (this.components[Oe] = Ze), Ze ); } catch (Ge) { return this.handleRouteInfoError( (0, u.getProperError)(Ge), ee, fe, we, xe, ); } } set(te, ae, ee) { return ( (this.state = te), this.sub(ae, this.components["/_app"].Component, ee) ); } beforePopState(te) { this._bps = te; } onlyAHashChange(te) { if (!this.asPath) return !1; const [ae, ee] = this.asPath.split("#", 2), [fe, we] = te.split("#", 2); return we && ae === fe && ee === we ? !0 : ae !== fe ? !1 : ee !== we; } scrollToHash(te) { const [, ae = ""] = te.split("#", 2); (0, I.handleSmoothScroll)( () => { if (ae === "" || ae === "top") { window.scrollTo(0, 0); return; } const ee = decodeURIComponent(ae), fe = document.getElementById(ee); if (fe) { fe.scrollIntoView(); return; } const we = document.getElementsByName(ee)[0]; we && we.scrollIntoView(); }, { onlyHashChange: this.onlyAHashChange(te) }, ); } urlIsNew(te) { return this.asPath !== te; } async prefetch(te, ae, ee) { if ( (ae === void 0 && (ae = te), ee === void 0 && (ee = {}), typeof window < "u" && (0, q.isBot)(window.navigator.userAgent)) ) return; let fe = (0, h.parseRelativeUrl)(te); const we = fe.pathname; let { pathname: Pe, query: xe } = fe; const ke = Pe, Te = await this.pageLoader.getPageList(); let je = ae; const Le = typeof ee.locale < "u" ? ee.locale || void 0 : this.locale, ve = await se({ asPath: ae, locale: Le, router: this }); ((fe.pathname = V(fe.pathname, Te)), (0, f.isDynamicRoute)(fe.pathname) && ((Pe = fe.pathname), (fe.pathname = Pe), Object.assign( xe, (0, m.getRouteMatcher)((0, y.getRouteRegex)(fe.pathname))( (0, g.parsePath)(ae).pathname, ) || {}, ), ve || (te = (0, b.formatWithValidation)(fe)))); const De = await re({ fetchData: () => be({ dataHref: this.pageLoader.getDataHref({ href: (0, b.formatWithValidation)({ pathname: ke, query: xe, }), skipInterpolation: !0, asPath: je, locale: Le, }), hasMiddleware: !0, isServerRender: !1, parseJSON: !0, inflightCache: this.sdc, persistCache: !this.isPreview, isPrefetch: !0, }), asPath: ae, locale: Le, router: this, }); if ( (De?.effect.type === "rewrite" && ((fe.pathname = De.effect.resolvedHref), (Pe = De.effect.resolvedHref), (xe = { ...xe, ...De.effect.parsedAs.query }), (je = De.effect.parsedAs.pathname), (te = (0, b.formatWithValidation)(fe))), De?.effect.type === "redirect-external") ) return; const ye = (0, a.removeTrailingSlash)(Pe); ((await this._bfl(ae, je, ee.locale, !0)) && (this.components[we] = { __appRouter: !0 }), await Promise.all([ this.pageLoader._isSsg(ye).then((Oe) => Oe ? be({ dataHref: De?.json ? De?.dataHref : this.pageLoader.getDataHref({ href: te, asPath: je, locale: Le, }), isServerRender: !1, parseJSON: !0, inflightCache: this.sdc, persistCache: !this.isPreview, isPrefetch: !0, unstable_skipClientCache: ee.unstable_skipClientCache || (ee.priority && !0), }) .then(() => !1) .catch(() => !1) : !1, ), this.pageLoader[ee.priority ? "loadPage" : "prefetch"](ye), ])); } async fetchComponent(te) { const ae = z({ route: te, router: this }); try { const ee = await this.pageLoader.loadPage(te); return (ae(), ee); } catch (ee) { throw (ae(), ee); } } _getData(te) { let ae = !1; const ee = () => { ae = !0; }; return ( (this.clc = ee), te().then((fe) => { if ((ee === this.clc && (this.clc = null), ae)) { const we = Object.defineProperty( new Error("Loading initial props cancelled"), "__NEXT_ERROR_CODE", { value: "E405", enumerable: !1, configurable: !0 }, ); throw ((we.cancelled = !0), we); } return fe; }) ); } getInitialProps(te, ae) { const { Component: ee } = this.components["/_app"], fe = this._wrapApp(ee); return ( (ae.AppTree = fe), (0, p.loadGetInitialProps)(ee, { AppTree: fe, Component: te, router: this, ctx: ae, }) ); } get route() { return this.state.route; } get pathname() { return this.state.pathname; } get query() { return this.state.query; } get asPath() { return this.state.asPath; } get locale() { return this.state.locale; } get isFallback() { return this.state.isFallback; } get isPreview() { return this.state.isPreview; } constructor( te, ae, ee, { initialProps: fe, pageLoader: we, App: Pe, wrapApp: xe, Component: ke, err: Te, subscription: je, isFallback: Le, locale: ve, locales: De, defaultLocale: ye, domainLocales: Oe, isPreview: Ne, }, ) { ((this.sdc = {}), (this.sbc = {}), (this.isFirstPopStateEvent = !0), (this._key = rt()), (this.onPopState = (Be) => { const { isFirstPopStateEvent: Ge } = this; this.isFirstPopStateEvent = !1; const pt = Be.state; if (!pt) { const { pathname: It, query: Gt } = this; this.changeState( "replaceState", (0, b.formatWithValidation)({ pathname: (0, w.addBasePath)(It), query: Gt, }), (0, p.getURL)(), ); return; } if (pt.__NA) { window.location.reload(); return; } if ( !pt.__N || (Ge && this.locale === pt.options.locale && pt.as === this.asPath) ) return; let ut; const { url: Bt, as: ft, options: Re, key: Ze } = pt; this._key = Ze; const { pathname: Pt } = (0, h.parseRelativeUrl)(Bt); (this.isSsr && ft === (0, w.addBasePath)(this.asPath) && Pt === (0, w.addBasePath)(this.pathname)) || (this._bps && !this._bps(pt)) || this.change( "replaceState", Bt, ft, Object.assign({}, Re, { shallow: Re.shallow && this._shallow, locale: Re.locale || this.defaultLocale, _h: 0, }), ut, ); })); const mt = (0, a.removeTrailingSlash)(te); ((this.components = {}), te !== "/_error" && (this.components[mt] = { Component: ke, initial: !0, props: fe, err: Te, __N_SSG: fe && fe.__N_SSG, __N_SSP: fe && fe.__N_SSP, }), (this.components["/_app"] = { Component: Pe, styleSheets: [] }), (this.events = ne.events), (this.pageLoader = we)); const ot = (0, f.isDynamicRoute)(te) && self.__NEXT_DATA__.autoExport; if ( ((this.basePath = ""), (this.sub = je), (this.clc = null), (this._wrapApp = xe), (this.isSsr = !0), (this.isLocaleDomain = !1), (this.isReady = !!( self.__NEXT_DATA__.gssp || self.__NEXT_DATA__.gip || self.__NEXT_DATA__.isExperimentalCompile || (self.__NEXT_DATA__.appGip && !self.__NEXT_DATA__.gsp) || (!ot && !self.location.search) )), (this.state = { route: mt, pathname: te, query: ae, asPath: ot ? te : ee, isPreview: !!Ne, locale: void 0, isFallback: Le, }), (this._initialMatchesMiddlewarePromise = Promise.resolve(!1)), typeof window < "u") ) { if (!ee.startsWith("//")) { const Be = { locale: ve }, Ge = (0, p.getURL)(); this._initialMatchesMiddlewarePromise = se({ router: this, locale: ve, asPath: Ge, }).then( (pt) => ( (Be._shouldResolveHref = ee !== te), this.changeState( "replaceState", pt ? Ge : (0, b.formatWithValidation)({ pathname: (0, w.addBasePath)(te), query: ae, }), Ge, Be, ), pt ), ); } window.addEventListener("popstate", this.onPopState); } } } ne.events = (0, d.default)(); })(hf)), hf ); } var ph = {}, m1; function eL() { return ( m1 || ((m1 = 1), (function (e) { (Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "RouterContext", { enumerable: !0, get: function () { return n; }, })); const n = ca()._(yr()).default.createContext(null); })(ph)), ph ); } var Mu = { exports: {} }, y1; function Lre() { return ( y1 || ((y1 = 1), (function (e, t) { (Object.defineProperty(t, "__esModule", { value: !0 }), Object.defineProperty(t, "default", { enumerable: !0, get: function () { return o; }, })); const r = ca(), n = IE(); yr(); const a = tL(); function o(i) { function u(l) { return (0, n.jsx)(i, { router: (0, a.useRouter)(), ...l }); } return ( (u.getInitialProps = i.getInitialProps), (u.origGetInitialProps = i.origGetInitialProps), u ); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Mu, Mu.exports)), Mu.exports ); } var g1; function tL() { return ( g1 || ((g1 = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(v, x) { for (var A in x) Object.defineProperty(v, A, { enumerable: !0, get: x[A] }); } r(t, { Router: function () { return o.default; }, createRouter: function () { return b; }, default: function () { return m; }, makePublicRouterInstance: function () { return g; }, useRouter: function () { return y; }, withRouter: function () { return l.default; }, }); const n = ca(), a = n._(yr()), o = n._(Bre()), i = eL(), u = n._($B()), l = n._(Lre()), c = { router: null, readyCallbacks: [], ready(v) { if (this.router) return v(); typeof window < "u" && this.readyCallbacks.push(v); }, }, d = [ "pathname", "route", "query", "asPath", "components", "isFallback", "basePath", "locale", "locales", "defaultLocale", "isReady", "isPreview", "isLocaleDomain", "domainLocales", ], p = [ "routeChangeStart", "beforeHistoryChange", "routeChangeComplete", "routeChangeError", "hashChangeStart", "hashChangeComplete", ], f = [ "push", "replace", "reload", "back", "prefetch", "beforePopState", ]; Object.defineProperty(c, "events", { get() { return o.default.events; }, }); function h() { if (!c.router) { const v = `No router instance found. You should only use "next/router" on the client side of your app. `; throw Object.defineProperty(new Error(v), "__NEXT_ERROR_CODE", { value: "E394", enumerable: !1, configurable: !0, }); } return c.router; } (d.forEach((v) => { Object.defineProperty(c, v, { get() { return h()[v]; }, }); }), f.forEach((v) => { c[v] = function () { for ( var x = arguments.length, A = new Array(x), w = 0; w < x; w++ ) A[w] = arguments[w]; return h()[v](...A); }; }), p.forEach((v) => { c.ready(() => { o.default.events.on(v, function () { for ( var x = arguments.length, A = new Array(x), w = 0; w < x; w++ ) A[w] = arguments[w]; const C = "on" + v.charAt(0).toUpperCase() + v.substring(1), E = c; if (E[C]) try { E[C](...A); } catch (_) { (console.error("Error when running the Router event: " + C), console.error( (0, u.default)(_) ? _.message + ` ` + _.stack : _ + "", )); } }); }); })); const m = c; function y() { const v = a.default.useContext(i.RouterContext); if (!v) throw Object.defineProperty( new Error( "NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted", ), "__NEXT_ERROR_CODE", { value: "E509", enumerable: !1, configurable: !0 }, ); return v; } function b() { for (var v = arguments.length, x = new Array(v), A = 0; A < v; A++) x[A] = arguments[A]; return ( (c.router = new o.default(...x)), c.readyCallbacks.forEach((w) => w()), (c.readyCallbacks = []), c.router ); } function g(v) { const x = v, A = {}; for (const w of d) { if (typeof x[w] == "object") { A[w] = Object.assign(Array.isArray(x[w]) ? [] : {}, x[w]); continue; } A[w] = x[w]; } return ( (A.events = o.default.events), f.forEach((w) => { A[w] = function () { for ( var C = arguments.length, E = new Array(C), _ = 0; _ < C; _++ ) E[_] = arguments[_]; return x[w](...E); }; }), A ); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(wu, wu.exports)), wu.exports ); } var LE = tL(); const fh = tE(LE), { NextjsRouterMocksNotAvailable: $re } = __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__, { fn: fr } = __STORYBOOK_MODULE_TEST__; var Ure = { route: "/", asPath: "/", basePath: "/", pathname: "/", query: {}, isFallback: !1, isLocaleDomain: !1, isReady: !0, isPreview: !1, }, $i, Hre = (e) => { const t = { push: fr((...n) => Promise.resolve(!0)).mockName( "next/router::useRouter().push", ), replace: fr((...n) => Promise.resolve(!0)).mockName( "next/router::useRouter().replace", ), reload: fr((...n) => {}).mockName("next/router::useRouter().reload"), back: fr((...n) => {}).mockName("next/router::useRouter().back"), forward: fr(() => {}).mockName("next/router::useRouter().forward"), prefetch: fr((...n) => Promise.resolve()).mockName( "next/router::useRouter().prefetch", ), beforePopState: fr((...n) => {}).mockName( "next/router::useRouter().beforePopState", ), }, r = { on: fr((...n) => {}).mockName("next/router::useRouter().events.on"), off: fr((...n) => {}).mockName("next/router::useRouter().events.off"), emit: fr((...n) => {}).mockName("next/router::useRouter().events.emit"), }; if (e) for (const n of Object.keys(t)) n in e && (t[n] = fr((...a) => e[n](...a)).mockName(`useRouter().${n}`)); if (e?.events) for (const n of Object.keys(r)) n in r && (r[n] = fr((...a) => e.events[n](...a)).mockName( `useRouter().events.${n}`, )); (($i = { ...Ure, ...e, ...t, events: r }), (fh.router = $i)); for (const n of fh.readyCallbacks) n(); return ((fh.readyCallbacks = []), $i); }, Vre = () => { if (!$i) throw new $re({ importType: "next/router" }); return $i; }; fr(LE.useRouter).mockName("next/router::useRouter"); fr(LE.withRouter).mockName("next/router::withRouter"); var $E = FE(), hh = {}, b1; function zre() { return ( b1 || ((b1 = 1), (function (e) { Object.defineProperty(e, "__esModule", { value: !0 }); function t(o, i) { for (var u in i) Object.defineProperty(o, u, { enumerable: !0, get: i[u] }); } t(e, { default: function () { return n; }, setConfig: function () { return a; }, }); let r; const n = () => r; function a(o) { r = o; } })(hh)), hh ); } var mh, v1; function Gre() { return (v1 || ((v1 = 1), (mh = zre())), mh); } var Wre = Gre(), Bu = { exports: {} }, E1; function Jre() { return ( E1 || ((E1 = 1), (function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }); function r(l, c) { for (var d in c) Object.defineProperty(l, d, { enumerable: !0, get: c[d] }); } r(t, { default: function () { return u; }, isEqualNode: function () { return o; }, }); const n = LB(); function a(l) { let { type: c, props: d } = l; const p = document.createElement(c); (0, n.setAttributesFromProps)(p, d); const { children: f, dangerouslySetInnerHTML: h } = d; return ( h ? (p.innerHTML = h.__html || "") : f && (p.textContent = typeof f == "string" ? f : Array.isArray(f) ? f.join("") : ""), p ); } function o(l, c) { if (l instanceof HTMLElement && c instanceof HTMLElement) { const d = c.getAttribute("nonce"); if (d && !l.getAttribute("nonce")) { const p = c.cloneNode(!0); return ( p.setAttribute("nonce", ""), (p.nonce = d), d === l.nonce && l.isEqualNode(p) ); } } return l.isEqualNode(c); } let i; i = (l, c) => { const d = document.querySelector("head"); if (!d) return; const p = new Set(d.querySelectorAll("" + l + "[data-next-head]")); if (l === "meta") { const m = d.querySelector("meta[charset]"); m !== null && p.add(m); } const f = []; for (let m = 0; m < c.length; m++) { const y = c[m], b = a(y); b.setAttribute("data-next-head", ""); let g = !0; for (const v of p) if (o(v, b)) { (p.delete(v), (g = !1)); break; } g && f.push(b); } for (const m of p) { var h; (h = m.parentNode) == null || h.removeChild(m); } for (const m of f) (m.tagName.toLowerCase() === "meta" && m.getAttribute("charset") !== null && d.prepend(m), d.appendChild(m)); }; function u() { return { mountedInstances: new Set(), updateHead: (l) => { const c = {}; l.forEach((f) => { if (f.type === "link" && f.props["data-optimized-fonts"]) { if ( document.querySelector( 'style[data-href="' + f.props["data-href"] + '"]', ) ) return; ((f.props.href = f.props["data-href"]), (f.props["data-href"] = void 0)); } const h = c[f.type] || []; (h.push(f), (c[f.type] = h)); }); const d = c.title ? c.title[0] : null; let p = ""; if (d) { const { children: f } = d.props; p = typeof f == "string" ? f : Array.isArray(f) ? f.join("") : ""; } (p !== document.title && (document.title = p), ["meta", "base", "link", "style", "script"].forEach((f) => { i(f, c[f] || []); })); }, }; } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Bu, Bu.exports)), Bu.exports ); } var Xre = Jre(); const Kre = tE(Xre); var Yre = BB(), Lu = { exports: {} }, _1; function Qre() { return ( _1 || ((_1 = 1), (function (e, t) { "use client"; Object.defineProperty(t, "__esModule", { value: !0 }); function r(f, h) { for (var m in h) Object.defineProperty(f, m, { enumerable: !0, get: h[m] }); } r(t, { RedirectBoundary: function () { return p; }, RedirectErrorBoundary: function () { return d; }, }); const n = $s(), a = IE(), o = n._(yr()), i = jB(), u = OE(), l = Yd(); function c(f) { let { redirect: h, reset: m, redirectType: y } = f; const b = (0, i.useRouter)(); return ( (0, o.useEffect)(() => { o.default.startTransition(() => { (y === l.RedirectType.push ? b.push(h, {}) : b.replace(h, {}), m()); }); }, [h, y, m, b]), null ); } class d extends o.default.Component { static getDerivedStateFromError(h) { if ((0, l.isRedirectError)(h)) { const m = (0, u.getURLFromRedirectError)(h), y = (0, u.getRedirectTypeFromError)(h); return { redirect: m, redirectType: y }; } throw h; } render() { const { redirect: h, redirectType: m } = this.state; return h !== null && m !== null ? (0, a.jsx)(c, { redirect: h, redirectType: m, reset: () => this.setState({ redirect: null }), }) : this.props.children; } constructor(h) { (super(h), (this.state = { redirect: null, redirectType: null })); } } function p(f) { let { children: h } = f; const m = (0, i.useRouter)(); return (0, a.jsx)(d, { router: m, children: h }); } (typeof t.default == "function" || (typeof t.default == "object" && t.default !== null)) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), (e.exports = t.default)); })(Lu, Lu.exports)), Lu.exports ); } var Zre = Qre(), yh = TB(), gh = OB(); PE(); var ene = eL(), eo = {}, C1; function tne() { if (C1) return eo; C1 = 1; var e = {}, t = yr(); function r(D) { return D && typeof D == "object" && "default" in D ? D : { default: D }; } var n = r(t); function a(D, F) { for (var L = 0; L < F.length; L++) { var q = F[L]; ((q.enumerable = q.enumerable || !1), (q.configurable = !0), "value" in q && (q.writable = !0), Object.defineProperty(D, q.key, q)); } } function o(D, F, L) { return (F && a(D.prototype, F), D); } var i = typeof process < "u" && e && !0, u = function (D) { return Object.prototype.toString.call(D) === "[object String]"; }, l = (function () { function D(L) { var q = L === void 0 ? {} : L, T = q.name, k = T === void 0 ? "stylesheet" : T, I = q.optimizeForSpeed, W = I === void 0 ? i : I; (c(u(k), "`name` must be a string"), (this._name = k), (this._deletedRulePlaceholder = "#" + k + "-deleted-rule____{}"), c(typeof W == "boolean", "`optimizeForSpeed` must be a boolean"), (this._optimizeForSpeed = W), (this._serverSheet = void 0), (this._tags = []), (this._injected = !1), (this._rulesCount = 0)); var Q = typeof window < "u" && document.querySelector('meta[property="csp-nonce"]'); this._nonce = Q ? Q.getAttribute("content") : null; } var F = D.prototype; return ( (F.setOptimizeForSpeed = function (q) { (c(typeof q == "boolean", "`setOptimizeForSpeed` accepts a boolean"), c( this._rulesCount === 0, "optimizeForSpeed cannot be when rules have already been inserted", ), this.flush(), (this._optimizeForSpeed = q), this.inject()); }), (F.isOptimizeForSpeed = function () { return this._optimizeForSpeed; }), (F.inject = function () { var q = this; if ( (c(!this._injected, "sheet already injected"), (this._injected = !0), typeof window < "u" && this._optimizeForSpeed) ) { ((this._tags[0] = this.makeStyleTag(this._name)), (this._optimizeForSpeed = "insertRule" in this.getSheet()), this._optimizeForSpeed || (i || console.warn( "StyleSheet: optimizeForSpeed mode not supported falling back to standard mode.", ), this.flush(), (this._injected = !0))); return; } this._serverSheet = { cssRules: [], insertRule: function (T, k) { return ( typeof k == "number" ? (q._serverSheet.cssRules[k] = { cssText: T }) : q._serverSheet.cssRules.push({ cssText: T }), k ); }, deleteRule: function (T) { q._serverSheet.cssRules[T] = null; }, }; }), (F.getSheetForTag = function (q) { if (q.sheet) return q.sheet; for (var T = 0; T < document.styleSheets.length; T++) if (document.styleSheets[T].ownerNode === q) return document.styleSheets[T]; }), (F.getSheet = function () { return this.getSheetForTag(this._tags[this._tags.length - 1]); }), (F.insertRule = function (q, T) { if ( (c(u(q), "`insertRule` accepts only strings"), typeof window > "u") ) return ( typeof T != "number" && (T = this._serverSheet.cssRules.length), this._serverSheet.insertRule(q, T), this._rulesCount++ ); if (this._optimizeForSpeed) { var k = this.getSheet(); typeof T != "number" && (T = k.cssRules.length); try { k.insertRule(q, T); } catch { return ( i || console.warn( `StyleSheet: illegal rule: ` + q + ` See https://stackoverflow.com/q/20007992 for more info`, ), -1 ); } } else { var I = this._tags[T]; this._tags.push(this.makeStyleTag(this._name, q, I)); } return this._rulesCount++; }), (F.replaceRule = function (q, T) { if (this._optimizeForSpeed || typeof window > "u") { var k = typeof window < "u" ? this.getSheet() : this._serverSheet; if ( (T.trim() || (T = this._deletedRulePlaceholder), !k.cssRules[q]) ) return q; k.deleteRule(q); try { k.insertRule(T, q); } catch { (i || console.warn( `StyleSheet: illegal rule: ` + T + ` See https://stackoverflow.com/q/20007992 for more info`, ), k.insertRule(this._deletedRulePlaceholder, q)); } } else { var I = this._tags[q]; (c(I, "old rule at index `" + q + "` not found"), (I.textContent = T)); } return q; }), (F.deleteRule = function (q) { if (typeof window > "u") { this._serverSheet.deleteRule(q); return; } if (this._optimizeForSpeed) this.replaceRule(q, ""); else { var T = this._tags[q]; (c(T, "rule at index `" + q + "` not found"), T.parentNode.removeChild(T), (this._tags[q] = null)); } }), (F.flush = function () { ((this._injected = !1), (this._rulesCount = 0), typeof window < "u" ? (this._tags.forEach(function (q) { return q && q.parentNode.removeChild(q); }), (this._tags = [])) : (this._serverSheet.cssRules = [])); }), (F.cssRules = function () { var q = this; return typeof window > "u" ? this._serverSheet.cssRules : this._tags.reduce(function (T, k) { return ( k ? (T = T.concat( Array.prototype.map.call( q.getSheetForTag(k).cssRules, function (I) { return I.cssText === q._deletedRulePlaceholder ? null : I; }, ), )) : T.push(null), T ); }, []); }), (F.makeStyleTag = function (q, T, k) { T && c(u(T), "makeStyleTag accepts only strings as second parameter"); var I = document.createElement("style"); (this._nonce && I.setAttribute("nonce", this._nonce), (I.type = "text/css"), I.setAttribute("data-" + q, ""), T && I.appendChild(document.createTextNode(T))); var W = document.head || document.getElementsByTagName("head")[0]; return (k ? W.insertBefore(I, k) : W.appendChild(I), I); }), o(D, [ { key: "length", get: function () { return this._rulesCount; }, }, ]), D ); })(); function c(D, F) { if (!D) throw new Error("StyleSheet: " + F + "."); } function d(D) { for (var F = 5381, L = D.length; L; ) F = (F * 33) ^ D.charCodeAt(--L); return F >>> 0; } var p = d, f = function (D) { return D.replace(/\/style/gi, "\\/style"); }, h = {}; function m(D, F) { if (!F) return "jsx-" + D; var L = String(F), q = D + L; return (h[q] || (h[q] = "jsx-" + p(D + "-" + L)), h[q]); } function y(D, F) { var L = /__jsx-style-dynamic-selector/g; typeof window > "u" && (F = f(F)); var q = D + F; return (h[q] || (h[q] = F.replace(L, D)), h[q]); } function b(D, F) { return ( F === void 0 && (F = {}), D.map(function (L) { var q = L[0], T = L[1]; return n.default.createElement("style", { id: "__" + q, key: "__" + q, nonce: F.nonce ? F.nonce : void 0, dangerouslySetInnerHTML: { __html: T }, }); }) ); } var g = (function () { function D(L) { var q = L === void 0 ? {} : L, T = q.styleSheet, k = T === void 0 ? null : T, I = q.optimizeForSpeed, W = I === void 0 ? !1 : I; ((this._sheet = k || new l({ name: "styled-jsx", optimizeForSpeed: W })), this._sheet.inject(), k && typeof W == "boolean" && (this._sheet.setOptimizeForSpeed(W), (this._optimizeForSpeed = this._sheet.isOptimizeForSpeed())), (this._fromServer = void 0), (this._indices = {}), (this._instancesCounts = {})); } var F = D.prototype; return ( (F.add = function (q) { var T = this; (this._optimizeForSpeed === void 0 && ((this._optimizeForSpeed = Array.isArray(q.children)), this._sheet.setOptimizeForSpeed(this._optimizeForSpeed), (this._optimizeForSpeed = this._sheet.isOptimizeForSpeed())), typeof window < "u" && !this._fromServer && ((this._fromServer = this.selectFromServer()), (this._instancesCounts = Object.keys(this._fromServer).reduce( function (se, H) { return ((se[H] = 0), se); }, {}, )))); var k = this.getIdAndRules(q), I = k.styleId, W = k.rules; if (I in this._instancesCounts) { this._instancesCounts[I] += 1; return; } var Q = W.map(function (se) { return T._sheet.insertRule(se); }).filter(function (se) { return se !== -1; }); ((this._indices[I] = Q), (this._instancesCounts[I] = 1)); }), (F.remove = function (q) { var T = this, k = this.getIdAndRules(q).styleId; if ( (v(k in this._instancesCounts, "styleId: `" + k + "` not found"), (this._instancesCounts[k] -= 1), this._instancesCounts[k] < 1) ) { var I = this._fromServer && this._fromServer[k]; (I ? (I.parentNode.removeChild(I), delete this._fromServer[k]) : (this._indices[k].forEach(function (W) { return T._sheet.deleteRule(W); }), delete this._indices[k]), delete this._instancesCounts[k]); } }), (F.update = function (q, T) { (this.add(T), this.remove(q)); }), (F.flush = function () { (this._sheet.flush(), this._sheet.inject(), (this._fromServer = void 0), (this._indices = {}), (this._instancesCounts = {})); }), (F.cssRules = function () { var q = this, T = this._fromServer ? Object.keys(this._fromServer).map(function (I) { return [I, q._fromServer[I]]; }) : [], k = this._sheet.cssRules(); return T.concat( Object.keys(this._indices) .map(function (I) { return [ I, q._indices[I].map(function (W) { return k[W].cssText; }).join( q._optimizeForSpeed ? "" : ` `, ), ]; }) .filter(function (I) { return !!I[1]; }), ); }), (F.styles = function (q) { return b(this.cssRules(), q); }), (F.getIdAndRules = function (q) { var T = q.children, k = q.dynamic, I = q.id; if (k) { var W = m(I, k); return { styleId: W, rules: Array.isArray(T) ? T.map(function (Q) { return y(W, Q); }) : [y(W, T)], }; } return { styleId: m(I), rules: Array.isArray(T) ? T : [T] }; }), (F.selectFromServer = function () { var q = Array.prototype.slice.call( document.querySelectorAll('[id^="__jsx-"]'), ); return q.reduce(function (T, k) { var I = k.id.slice(2); return ((T[I] = k), T); }, {}); }), D ); })(); function v(D, F) { if (!D) throw new Error("StyleSheetRegistry: " + F + "."); } var x = t.createContext(null); x.displayName = "StyleSheetContext"; function A() { return new g(); } function w(D) { var F = D.registry, L = D.children, q = t.useContext(x), T = t.useState(function () { return q || F || A(); }), k = T[0]; return n.default.createElement(x.Provider, { value: k }, L); } function C() { return t.useContext(x); } var E = n.default.useInsertionEffect || n.default.useLayoutEffect, _ = typeof window < "u" ? A() : void 0; function P(D) { var F = _ || C(); return F ? typeof window > "u" ? (F.add(D), null) : (E( function () { return ( F.add(D), function () { F.remove(D); } ); }, [D.id, String(D.dynamic)], ), null) : null; } return ( (P.dynamic = function (D) { return D.map(function (F) { var L = F[0], q = F[1]; return m(L, q); }).join(" "); }), (eo.StyleRegistry = w), (eo.createStyleRegistry = A), (eo.style = P), (eo.useStyleRegistry = C), eo ); } var bh, w1; function rne() { return (w1 || ((w1 = 1), (bh = tne())), bh); } var nne = rne(), ane = {}, one = {}; Dte(one, { decorators: () => aL, loaders: () => oL, parameters: () => iL }); Wre.setConfig(ane.__NEXT_RUNTIME_CONFIG); var ine = ({ children: e }) => { let t = lt.useMemo(Kre, []); return ( (t.getIsSsr = () => !1), $t.createElement(Yre.HeadManagerContext.Provider, { value: t }, e) ); }, sne = ine, une = (e) => lt.createElement(sne, null, lt.createElement(e, null)), rL = (e) => { let t = e.shift(); return t ? [t, { children: rL(e) }] : []; }, A1 = ({ children: e, routeParams: t }) => { let { pathname: r, query: n, segments: a = [] } = t, o = [r, { children: rL([...a]) }], i = lt.useMemo(() => { let l = {}, c = t.segments; if (c) { if (Array.isArray(c)) { for (let d of c) if ( Array.isArray(d) && d.length === 2 && typeof d[0] == "string" ) { let p = d[0], f = d[1]; l[p] = f; } } else if (typeof c == "object" && !Array.isArray(c)) { let d = c; for (let p in d) Object.prototype.hasOwnProperty.call(d, p) && (l[p] = d[p]); } } return l; }, [t.segments]), u = { lazyData: null, rsc: null, prefetchRsc: null, head: null, prefetchHead: null, parallelRoutes: new Map(), loading: null, }; return $t.createElement( gh.PathParamsContext.Provider, { value: i }, $t.createElement( gh.PathnameContext.Provider, { value: r }, $t.createElement( gh.SearchParamsContext.Provider, { value: new URLSearchParams(n) }, $t.createElement( yh.GlobalLayoutRouterContext.Provider, { value: { changeByServerResponse() {}, buildId: "storybook", tree: o, focusAndScrollRef: { apply: !1, hashFragment: null, segmentPaths: [o], onlyHashChange: !1, }, nextUrl: r, }, }, $t.createElement( yh.AppRouterContext.Provider, { value: Zte() }, $t.createElement( yh.LayoutRouterContext.Provider, { value: { childNodes: new Map(), tree: o, parentTree: o, parentCacheNode: u, url: r, loading: null, }, }, e, ), ), ), ), ), ); }, lne = ({ children: e }) => $t.createElement(ene.RouterContext.Provider, { value: Vre() }, e), cne = { pathname: "/", query: {} }, dne = (e, { parameters: t }) => (t.nextjs?.appDirectory ?? !1) ? A1 ? lt.createElement( A1, { routeParams: { ...cne, ...t.nextjs?.navigation } }, lt.createElement( Zre.RedirectBoundary, null, lt.createElement(e, null), ), ) : null : lt.createElement(lne, null, lt.createElement(e, null)), pne = (e) => lt.createElement(nne.StyleRegistry, null, lt.createElement(e, null)); function fne() { let e = document.createElement("meta"); ((e.name = "next-head-count"), (e.content = "0"), document.head.appendChild(e)); } function nL(e) { return ( typeof e == "string" && (e.includes("Only Server Components can be async at the moment.") || e.includes("A component was suspended by an uncached promise.") || e.includes("async/await is not yet supported in Client Components")) ); } fne(); var hne = globalThis.console.error; globalThis.console.error = (...e) => { let t = e[0]; $E.isNextRouterError(t) || nL(t) || hne.apply(globalThis.console, e); }; globalThis.addEventListener("error", (e) => { if ($E.isNextRouterError(e.error) || nL(e.error)) { e.preventDefault(); return; } }); var $u = (e) => e, aL = [$u(pne), $u(Tte), $u(dne), $u(une)], oL = async ({ globals: e, parameters: t }) => { let { router: r, appDirectory: n } = t.nextjs ?? {}; n ? Qte(r) : Hre({ locale: e.locale, ...r }); }, iL = { docs: { source: { excludeDecorators: !0 } }, react: { rootOptions: { onCaughtError(e) { $E.isNextRouterError(e) || console.error(e); }, }, }, }; const mne = Object.freeze( Object.defineProperty( { __proto__: null, decorators: aL, loaders: oL, parameters: iL }, Symbol.toStringTag, { value: "Module" }, ), ); var yne = Object.entries(globalThis.TAGS_OPTIONS ?? {}).reduce((e, t) => { let [r, n] = t; return (n.excludeFromDocsStories && (e[r] = !0), e); }, {}), gne = { docs: { renderer: async () => { let { DocsRenderer: e } = await jt( () => import("./DocsRenderer-PQXLIZUC-CZs-lgH4.js").then((t) => t.D), __vite__mapDeps([35, 3, 34, 1]), ); return new e(); }, stories: { filter: (e) => (e.tags || []).filter((t) => yne[t]).length === 0 && !e.parameters.docs?.disable, }, }, }; const bne = Object.freeze( Object.defineProperty( { __proto__: null, parameters: gne }, Symbol.toStringTag, { value: "Module" }, ), ), { expect: S1 } = __STORYBOOK_MODULE_TEST__, { ElementA11yParameterError: vne } = __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__, { global: sL } = __STORYBOOK_MODULE_GLOBAL__, { addons: Ene, waitForAnimations: _ne } = __STORYBOOK_MODULE_PREVIEW_API__; var Ja = "storybook/a11y", Cne = `${Ja}/panel`, wne = `${Ja}/result`, Ane = `${Ja}/request`, Sne = `${Ja}/running`, xne = `${Ja}/error`, Pne = `${Ja}/manual`, Rne = `${Ja}/select`, vh = { RESULT: wne, REQUEST: Ane, RUNNING: Sne, ERROR: xne, MANUAL: Pne, SELECT: Rne, }, { document: Tne } = sL, One = (e, t) => { let r = Tne.location.pathname.replace(/iframe\.html$/, ""), n = { ...e }; return ( ["incomplete", "passes", "violations"].forEach((a) => { Array.isArray(e[a]) && (n[a] = e[a].map((o) => ({ ...o, nodes: o.nodes.map((i, u) => { let l = `${a}.${o.id}.${u + 1}`, c = `${r}?path=/story/${t}&addonPanel=${Cne}&a11ySelection=${l}`; return { id: l, ...i, linkPath: c }; }), }))); }), n ); }, { document: x1 } = sL, Eh = Ene.getChannel(), uL = { config: {}, options: {} }, Dne = ["region"], My = [], By = !1, lL = async () => { if (My.length === 0) { By = !1; return; } By = !0; let e = My.shift(); (e && (await e()), lL()); }, cL = async (e = uL, t) => { let r = ( await jt(async () => { const { default: u } = await import("./axe-kJbNpjRz.js").then( (l) => l.a, ); return { default: u }; }, []) )?.default || globalThis.axe, { config: n = {}, options: a = {} } = e; if (e.element) throw new vne(); let o = { include: x1?.body, exclude: [".sb-wrapper", "#storybook-docs", "#storybook-highlights-root"], }; if (e.context) { let u = typeof e.context == "object" && "include" in e.context && e.context.include !== void 0, l = typeof e.context == "object" && "exclude" in e.context && e.context.exclude !== void 0; (u ? (o.include = e.context.include) : !u && !l && (o.include = e.context), l && (o.exclude = o.exclude.concat(e.context.exclude))); } r.reset(); let i = { ...n, rules: [...Dne.map((u) => ({ id: u, enabled: !1 })), ...(n?.rules ?? [])], }; return ( r.configure(i), new Promise((u, l) => { let c = x1?.getElementById("storybook-highlights-root"); c && (c.style.display = "none"); let d = async () => { try { let p = await r.run(o, a), f = One(p, t); u(f); } catch (p) { l(p); } }; (My.push(d), By || lL(), c && (c.style.display = "")); }) ); }; Eh.on(vh.MANUAL, async (e, t = uL) => { try { await _ne(); let r = await cL(t, e), n = JSON.parse(JSON.stringify(r)); Eh.emit(vh.RESULT, n, e); } catch (r) { Eh.emit(vh.ERROR, r); } }); function P1() { try { return !1; } catch { return !1; } } var R1 = !1, Fne = async ({ id: e, reporting: t, parameters: r, globals: n, viewMode: a, }) => { let o = r.a11y, i = n.a11y, u = o?.disable !== !0 && o?.test !== "off" && i?.manual !== !0, l = () => { switch (o?.test) { case "todo": return "warning"; case "error": default: return "failed"; } }; if (u && a === "story") try { let c = await cL(o, e); if (c) { let d = (c?.violations.length ?? 0) > 0; if ( (t.addReport({ type: "a11y", version: 1, result: c, status: d ? l() : "passed", }), P1() && d && l() === "failed") ) { if (!R1) { let { toHaveNoViolations: p } = await jt(async () => { const { toHaveNoViolations: f } = await import( "./matchers-7Z3WT2CE-CcSi9QFY.js" ); return { toHaveNoViolations: f }; }, []); (S1.extend({ toHaveNoViolations: p }), (R1 = !0)); } S1(c).toHaveNoViolations(); } } } catch (c) { if ( (t.addReport({ type: "a11y", version: 1, result: { error: c }, status: "failed", }), P1()) ) throw c; } }, Ine = { a11y: { manual: !1 } }, Nne = { a11y: { test: "todo" } }; const jne = Object.freeze( Object.defineProperty( { __proto__: null, afterEach: Fne, initialGlobals: Ine, parameters: Nne }, Symbol.toStringTag, { value: "Module" }, ), ), kne = { parameters: { nextjs: { appDirectory: !0 }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/i } }, a11y: { test: "todo" }, backgrounds: { default: "dark", values: [ { name: "dark", value: "#000000" }, { name: "light", value: "#ffffff" }, ], }, viewport: { defaultViewport: "md", viewports: { xsm: { name: "XSmall (≤429px)", styles: { width: "429px", height: "800px" }, }, sm: { name: "Small (≥430px)", styles: { width: "430px", height: "800px" }, }, md: { name: "Medium (≥640px)", styles: { width: "640px", height: "800px" }, }, lg: { name: "Large (≥1024px)", styles: { width: "1024px", height: "800px" }, }, xl: { name: "XLarge (≥1440px)", styles: { width: "1440px", height: "900px" }, }, }, }, }, }, qne = Object.freeze( Object.defineProperty( { __proto__: null, default: kne }, Symbol.toStringTag, { value: "Module" }, ), ); Z0(); const { composeConfigs: Mne, PreviewWeb: Bne } = __STORYBOOK_MODULE_PREVIEW_API__, Lne = (e = []) => { const t = [ e[0] ?? iQ, e[1] ?? yte, e[2] ?? Pte, e[3] ?? mne, e[4] ?? bne, e[5] ?? jne, e[6] ?? qne, ]; return Mne(t); }; window.__STORYBOOK_PREVIEW__ = window.__STORYBOOK_PREVIEW__ || new Bne(_Y, Lne); window.__STORYBOOK_STORY_STORE__ = window.__STORYBOOK_STORY_STORE__ || window.__STORYBOOK_PREVIEW__.storyStore; export { $t as R, wy as T, ooe as V, sre as a, IE as b, yr as c, tE as g, soe as h, lt as r, };