UNPKG

@oslokommune/punkt-elements

Version:

Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo

1,253 lines 747 kB
/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const ov = globalThis, sy = ov.trustedTypes, ER = sy ? sy.createPolicy("lit-html", { createHTML: (A) => A }) : void 0, jR = "$lit$", Oo = `lit$${Math.random().toFixed(9).slice(2)}$`, PR = "?" + Oo, Hk = `<${PR}>`, nc = document, fv = () => nc.createComment(""), dv = (A) => A === null || typeof A != "object" && typeof A != "function", zE = Array.isArray, $k = (A) => zE(A) || typeof (A == null ? void 0 : A[Symbol.iterator]) == "function", kE = `[ \f\r]`, lv = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, CR = /-->/g, TR = />/g, Js = RegExp(`>|${kE}(?:([^\\s"'>=/]+)(${kE}*=${kE}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`, "g"), RR = /'/g, wR = /"/g, VR = /^(?:script|style|textarea|title)$/i, Fk = (A) => (y, ...E) => ({ _$litType$: A, strings: y, values: E }), TD = Fk(1), Xf = Symbol.for("lit-noChange"), ar = Symbol.for("lit-nothing"), _R = /* @__PURE__ */ new WeakMap(), ec = nc.createTreeWalker(nc, 129); function BR(A, y) { if (!zE(A) || !A.hasOwnProperty("raw")) throw Error("invalid template strings array"); return ER !== void 0 ? ER.createHTML(y) : y; } const jk = (A, y) => { const E = A.length - 1, D = []; let M, W = y === 2 ? "<svg>" : y === 3 ? "<math>" : "", S = lv; for (let xe = 0; xe < E; xe++) { const X = A[xe]; let ne, We, J = -1, ge = 0; for (; ge < X.length && (S.lastIndex = ge, We = S.exec(X), We !== null); ) ge = S.lastIndex, S === lv ? We[1] === "!--" ? S = CR : We[1] !== void 0 ? S = TR : We[2] !== void 0 ? (VR.test(We[2]) && (M = RegExp("</" + We[2], "g")), S = Js) : We[3] !== void 0 && (S = Js) : S === Js ? We[0] === ">" ? (S = M ?? lv, J = -1) : We[1] === void 0 ? J = -2 : (J = S.lastIndex - We[2].length, ne = We[1], S = We[3] === void 0 ? Js : We[3] === '"' ? wR : RR) : S === wR || S === RR ? S = Js : S === CR || S === TR ? S = lv : (S = Js, M = void 0); const le = S === Js && A[xe + 1].startsWith("/>") ? " " : ""; W += S === lv ? X + Hk : J >= 0 ? (D.push(ne), X.slice(0, J) + jR + X.slice(J) + Oo + le) : X + Oo + (J === -2 ? xe : le); } return [BR(A, W + (A[E] || "<?>") + (y === 2 ? "</svg>" : y === 3 ? "</math>" : "")), D]; }; class pv { constructor({ strings: y, _$litType$: E }, D) { let M; this.parts = []; let W = 0, S = 0; const xe = y.length - 1, X = this.parts, [ne, We] = jk(y, E); if (this.el = pv.createElement(ne, D), ec.currentNode = this.el.content, E === 2 || E === 3) { const J = this.el.content.firstChild; J.replaceWith(...J.childNodes); } for (; (M = ec.nextNode()) !== null && X.length < xe; ) { if (M.nodeType === 1) { if (M.hasAttributes()) for (const J of M.getAttributeNames()) if (J.endsWith(jR)) { const ge = We[S++], le = M.getAttribute(J).split(Oo), $e = /([.?@])?(.*)/.exec(ge); X.push({ type: 1, index: W, name: $e[2], strings: le, ctor: $e[1] === "." ? Vk : $e[1] === "?" ? Bk : $e[1] === "@" ? Ik : fy }), M.removeAttribute(J); } else J.startsWith(Oo) && (X.push({ type: 6, index: W }), M.removeAttribute(J)); if (VR.test(M.tagName)) { const J = M.textContent.split(Oo), ge = J.length - 1; if (ge > 0) { M.textContent = sy ? sy.emptyScript : ""; for (let le = 0; le < ge; le++) M.append(J[le], fv()), ec.nextNode(), X.push({ type: 2, index: ++W }); M.append(J[ge], fv()); } } } else if (M.nodeType === 8) if (M.data === PR) X.push({ type: 2, index: W }); else { let J = -1; for (; (J = M.data.indexOf(Oo, J + 1)) !== -1; ) X.push({ type: 7, index: W }), J += Oo.length - 1; } W++; } } static createElement(y, E) { const D = nc.createElement("template"); return D.innerHTML = y, D; } } function Kf(A, y, E = A, D) { var S, xe; if (y === Xf) return y; let M = D !== void 0 ? (S = E._$Co) == null ? void 0 : S[D] : E._$Cl; const W = dv(y) ? void 0 : y._$litDirective$; return (M == null ? void 0 : M.constructor) !== W && ((xe = M == null ? void 0 : M._$AO) == null || xe.call(M, !1), W === void 0 ? M = void 0 : (M = new W(A), M._$AT(A, E, D)), D !== void 0 ? (E._$Co ?? (E._$Co = []))[D] = M : E._$Cl = M), M !== void 0 && (y = Kf(A, M._$AS(A, y.values), M, D)), y; } class Pk { constructor(y, E) { this._$AV = [], this._$AN = void 0, this._$AD = y, this._$AM = E; } get parentNode() { return this._$AM.parentNode; } get _$AU() { return this._$AM._$AU; } u(y) { const { el: { content: E }, parts: D } = this._$AD, M = ((y == null ? void 0 : y.creationScope) ?? nc).importNode(E, !0); ec.currentNode = M; let W = ec.nextNode(), S = 0, xe = 0, X = D[0]; for (; X !== void 0; ) { if (S === X.index) { let ne; X.type === 2 ? ne = new Zf(W, W.nextSibling, this, y) : X.type === 1 ? ne = new X.ctor(W, X.name, X.strings, this, y) : X.type === 6 && (ne = new Yk(W, this, y)), this._$AV.push(ne), X = D[++xe]; } S !== (X == null ? void 0 : X.index) && (W = ec.nextNode(), S++); } return ec.currentNode = nc, M; } p(y) { let E = 0; for (const D of this._$AV) D !== void 0 && (D.strings !== void 0 ? (D._$AI(y, D, E), E += D.strings.length - 2) : D._$AI(y[E])), E++; } } class Zf { get _$AU() { var y; return ((y = this._$AM) == null ? void 0 : y._$AU) ?? this._$Cv; } constructor(y, E, D, M) { this.type = 2, this._$AH = ar, this._$AN = void 0, this._$AA = y, this._$AB = E, this._$AM = D, this.options = M, this._$Cv = (M == null ? void 0 : M.isConnected) ?? !0; } get parentNode() { let y = this._$AA.parentNode; const E = this._$AM; return E !== void 0 && (y == null ? void 0 : y.nodeType) === 11 && (y = E.parentNode), y; } get startNode() { return this._$AA; } get endNode() { return this._$AB; } _$AI(y, E = this) { y = Kf(this, y, E), dv(y) ? y === ar || y == null || y === "" ? (this._$AH !== ar && this._$AR(), this._$AH = ar) : y !== this._$AH && y !== Xf && this._(y) : y._$litType$ !== void 0 ? this.$(y) : y.nodeType !== void 0 ? this.T(y) : $k(y) ? this.k(y) : this._(y); } O(y) { return this._$AA.parentNode.insertBefore(y, this._$AB); } T(y) { this._$AH !== y && (this._$AR(), this._$AH = this.O(y)); } _(y) { this._$AH !== ar && dv(this._$AH) ? this._$AA.nextSibling.data = y : this.T(nc.createTextNode(y)), this._$AH = y; } $(y) { var W; const { values: E, _$litType$: D } = y, M = typeof D == "number" ? this._$AC(y) : (D.el === void 0 && (D.el = pv.createElement(BR(D.h, D.h[0]), this.options)), D); if (((W = this._$AH) == null ? void 0 : W._$AD) === M) this._$AH.p(E); else { const S = new Pk(M, this), xe = S.u(this.options); S.p(E), this.T(xe), this._$AH = S; } } _$AC(y) { let E = _R.get(y.strings); return E === void 0 && _R.set(y.strings, E = new pv(y)), E; } k(y) { zE(this._$AH) || (this._$AH = [], this._$AR()); const E = this._$AH; let D, M = 0; for (const W of y) M === E.length ? E.push(D = new Zf(this.O(fv()), this.O(fv()), this, this.options)) : D = E[M], D._$AI(W), M++; M < E.length && (this._$AR(D && D._$AB.nextSibling, M), E.length = M); } _$AR(y = this._$AA.nextSibling, E) { var D; for ((D = this._$AP) == null ? void 0 : D.call(this, !1, !0, E); y && y !== this._$AB; ) { const M = y.nextSibling; y.remove(), y = M; } } setConnected(y) { var E; this._$AM === void 0 && (this._$Cv = y, (E = this._$AP) == null || E.call(this, y)); } } class fy { get tagName() { return this.element.tagName; } get _$AU() { return this._$AM._$AU; } constructor(y, E, D, M, W) { this.type = 1, this._$AH = ar, this._$AN = void 0, this.element = y, this.name = E, this._$AM = M, this.options = W, D.length > 2 || D[0] !== "" || D[1] !== "" ? (this._$AH = Array(D.length - 1).fill(new String()), this.strings = D) : this._$AH = ar; } _$AI(y, E = this, D, M) { const W = this.strings; let S = !1; if (W === void 0) y = Kf(this, y, E, 0), S = !dv(y) || y !== this._$AH && y !== Xf, S && (this._$AH = y); else { const xe = y; let X, ne; for (y = W[0], X = 0; X < W.length - 1; X++) ne = Kf(this, xe[D + X], E, X), ne === Xf && (ne = this._$AH[X]), S || (S = !dv(ne) || ne !== this._$AH[X]), ne === ar ? y = ar : y !== ar && (y += (ne ?? "") + W[X + 1]), this._$AH[X] = ne; } S && !M && this.j(y); } j(y) { y === ar ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, y ?? ""); } } class Vk extends fy { constructor() { super(...arguments), this.type = 3; } j(y) { this.element[this.name] = y === ar ? void 0 : y; } } class Bk extends fy { constructor() { super(...arguments), this.type = 4; } j(y) { this.element.toggleAttribute(this.name, !!y && y !== ar); } } class Ik extends fy { constructor(y, E, D, M, W) { super(y, E, D, M, W), this.type = 5; } _$AI(y, E = this) { if ((y = Kf(this, y, E, 0) ?? ar) === Xf) return; const D = this._$AH, M = y === ar && D !== ar || y.capture !== D.capture || y.once !== D.once || y.passive !== D.passive, W = y !== ar && (D === ar || M); M && this.element.removeEventListener(this.name, this, D), W && this.element.addEventListener(this.name, this, y), this._$AH = y; } handleEvent(y) { var E; typeof this._$AH == "function" ? this._$AH.call(((E = this.options) == null ? void 0 : E.host) ?? this.element, y) : this._$AH.handleEvent(y); } } class Yk { constructor(y, E, D) { this.element = y, this.type = 6, this._$AN = void 0, this._$AM = E, this.options = D; } get _$AU() { return this._$AM._$AU; } _$AI(y) { Kf(this, y); } } const RD = { I: Zf }, DE = ov.litHtmlPolyfillSupport; DE == null || DE(pv, Zf), (ov.litHtmlVersions ?? (ov.litHtmlVersions = [])).push("3.3.0"); const Qk = (A, y, E) => { const D = (E == null ? void 0 : E.renderBefore) ?? y; let M = D._$litPart$; if (M === void 0) { const W = (E == null ? void 0 : E.renderBefore) ?? null; D._$litPart$ = M = new Zf(y.insertBefore(fv(), W), W, void 0, E ?? {}); } return M._$AI(A), M; }; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const wD = (A) => (y, E) => { E !== void 0 ? E.addInitializer(() => { customElements.define(A, y); }) : customElements.define(A, y); }; /** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const oy = globalThis, HE = oy.ShadowRoot && (oy.ShadyCSS === void 0 || oy.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, IR = Symbol(), xR = /* @__PURE__ */ new WeakMap(); let Wk = class { constructor(y, E, D) { if (this._$cssResult$ = !0, D !== IR) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); this.cssText = y, this.t = E; } get styleSheet() { let y = this.o; const E = this.t; if (HE && y === void 0) { const D = E !== void 0 && E.length === 1; D && (y = xR.get(E)), y === void 0 && ((this.o = y = new CSSStyleSheet()).replaceSync(this.cssText), D && xR.set(E, y)); } return y; } toString() { return this.cssText; } }; const Gk = (A) => new Wk(typeof A == "string" ? A : A + "", void 0, IR), qk = (A, y) => { if (HE) A.adoptedStyleSheets = y.map((E) => E instanceof CSSStyleSheet ? E : E.styleSheet); else for (const E of y) { const D = document.createElement("style"), M = oy.litNonce; M !== void 0 && D.setAttribute("nonce", M), D.textContent = E.cssText, A.appendChild(D); } }, bR = HE ? (A) => A : (A) => A instanceof CSSStyleSheet ? ((y) => { let E = ""; for (const D of y.cssRules) E += D.cssText; return Gk(E); })(A) : A; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const { is: Xk, defineProperty: Kk, getOwnPropertyDescriptor: Zk, getOwnPropertyNames: Jk, getOwnPropertySymbols: eD, getPrototypeOf: tD } = Object, Mo = globalThis, kR = Mo.trustedTypes, nD = kR ? kR.emptyScript : "", OE = Mo.reactiveElementPolyfillSupport, sv = (A, y) => A, cy = { toAttribute(A, y) { switch (y) { case Boolean: A = A ? nD : null; break; case Object: case Array: A = A == null ? A : JSON.stringify(A); } return A; }, fromAttribute(A, y) { let E = A; switch (y) { case Boolean: E = A !== null; break; case Number: E = A === null ? null : Number(A); break; case Object: case Array: try { E = JSON.parse(A); } catch { E = null; } } return E; } }, $E = (A, y) => !Xk(A, y), DR = { attribute: !0, type: String, converter: cy, reflect: !1, useDefault: !1, hasChanged: $E }; Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Mo.litPropertyMetadata ?? (Mo.litPropertyMetadata = /* @__PURE__ */ new WeakMap()); class qf extends HTMLElement { static addInitializer(y) { this._$Ei(), (this.l ?? (this.l = [])).push(y); } static get observedAttributes() { return this.finalize(), this._$Eh && [...this._$Eh.keys()]; } static createProperty(y, E = DR) { if (E.state && (E.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(y) && ((E = Object.create(E)).wrapped = !0), this.elementProperties.set(y, E), !E.noAccessor) { const D = Symbol(), M = this.getPropertyDescriptor(y, D, E); M !== void 0 && Kk(this.prototype, y, M); } } static getPropertyDescriptor(y, E, D) { const { get: M, set: W } = Zk(this.prototype, y) ?? { get() { return this[E]; }, set(S) { this[E] = S; } }; return { get: M, set(S) { const xe = M == null ? void 0 : M.call(this); W == null || W.call(this, S), this.requestUpdate(y, xe, D); }, configurable: !0, enumerable: !0 }; } static getPropertyOptions(y) { return this.elementProperties.get(y) ?? DR; } static _$Ei() { if (this.hasOwnProperty(sv("elementProperties"))) return; const y = tD(this); y.finalize(), y.l !== void 0 && (this.l = [...y.l]), this.elementProperties = new Map(y.elementProperties); } static finalize() { if (this.hasOwnProperty(sv("finalized"))) return; if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(sv("properties"))) { const E = this.properties, D = [...Jk(E), ...eD(E)]; for (const M of D) this.createProperty(M, E[M]); } const y = this[Symbol.metadata]; if (y !== null) { const E = litPropertyMetadata.get(y); if (E !== void 0) for (const [D, M] of E) this.elementProperties.set(D, M); } this._$Eh = /* @__PURE__ */ new Map(); for (const [E, D] of this.elementProperties) { const M = this._$Eu(E, D); M !== void 0 && this._$Eh.set(M, E); } this.elementStyles = this.finalizeStyles(this.styles); } static finalizeStyles(y) { const E = []; if (Array.isArray(y)) { const D = new Set(y.flat(1 / 0).reverse()); for (const M of D) E.unshift(bR(M)); } else y !== void 0 && E.push(bR(y)); return E; } static _$Eu(y, E) { const D = E.attribute; return D === !1 ? void 0 : typeof D == "string" ? D : typeof y == "string" ? y.toLowerCase() : void 0; } constructor() { super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev(); } _$Ev() { var y; this._$ES = new Promise((E) => this.enableUpdating = E), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (y = this.constructor.l) == null || y.forEach((E) => E(this)); } addController(y) { var E; (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(y), this.renderRoot !== void 0 && this.isConnected && ((E = y.hostConnected) == null || E.call(y)); } removeController(y) { var E; (E = this._$EO) == null || E.delete(y); } _$E_() { const y = /* @__PURE__ */ new Map(), E = this.constructor.elementProperties; for (const D of E.keys()) this.hasOwnProperty(D) && (y.set(D, this[D]), delete this[D]); y.size > 0 && (this._$Ep = y); } createRenderRoot() { const y = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); return qk(y, this.constructor.elementStyles), y; } connectedCallback() { var y; this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (y = this._$EO) == null || y.forEach((E) => { var D; return (D = E.hostConnected) == null ? void 0 : D.call(E); }); } enableUpdating(y) { } disconnectedCallback() { var y; (y = this._$EO) == null || y.forEach((E) => { var D; return (D = E.hostDisconnected) == null ? void 0 : D.call(E); }); } attributeChangedCallback(y, E, D) { this._$AK(y, D); } _$ET(y, E) { var W; const D = this.constructor.elementProperties.get(y), M = this.constructor._$Eu(y, D); if (M !== void 0 && D.reflect === !0) { const S = (((W = D.converter) == null ? void 0 : W.toAttribute) !== void 0 ? D.converter : cy).toAttribute(E, D.type); this._$Em = y, S == null ? this.removeAttribute(M) : this.setAttribute(M, S), this._$Em = null; } } _$AK(y, E) { var W, S; const D = this.constructor, M = D._$Eh.get(y); if (M !== void 0 && this._$Em !== M) { const xe = D.getPropertyOptions(M), X = typeof xe.converter == "function" ? { fromAttribute: xe.converter } : ((W = xe.converter) == null ? void 0 : W.fromAttribute) !== void 0 ? xe.converter : cy; this._$Em = M, this[M] = X.fromAttribute(E, xe.type) ?? ((S = this._$Ej) == null ? void 0 : S.get(M)) ?? null, this._$Em = null; } } requestUpdate(y, E, D) { var M; if (y !== void 0) { const W = this.constructor, S = this[y]; if (D ?? (D = W.getPropertyOptions(y)), !((D.hasChanged ?? $E)(S, E) || D.useDefault && D.reflect && S === ((M = this._$Ej) == null ? void 0 : M.get(y)) && !this.hasAttribute(W._$Eu(y, D)))) return; this.C(y, E, D); } this.isUpdatePending === !1 && (this._$ES = this._$EP()); } C(y, E, { useDefault: D, reflect: M, wrapped: W }, S) { D && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(y) && (this._$Ej.set(y, S ?? E ?? this[y]), W !== !0 || S !== void 0) || (this._$AL.has(y) || (this.hasUpdated || D || (E = void 0), this._$AL.set(y, E)), M === !0 && this._$Em !== y && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(y)); } async _$EP() { this.isUpdatePending = !0; try { await this._$ES; } catch (E) { Promise.reject(E); } const y = this.scheduleUpdate(); return y != null && await y, !this.isUpdatePending; } scheduleUpdate() { return this.performUpdate(); } performUpdate() { var D; if (!this.isUpdatePending) return; if (!this.hasUpdated) { if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) { for (const [W, S] of this._$Ep) this[W] = S; this._$Ep = void 0; } const M = this.constructor.elementProperties; if (M.size > 0) for (const [W, S] of M) { const { wrapped: xe } = S, X = this[W]; xe !== !0 || this._$AL.has(W) || X === void 0 || this.C(W, void 0, S, X); } } let y = !1; const E = this._$AL; try { y = this.shouldUpdate(E), y ? (this.willUpdate(E), (D = this._$EO) == null || D.forEach((M) => { var W; return (W = M.hostUpdate) == null ? void 0 : W.call(M); }), this.update(E)) : this._$EM(); } catch (M) { throw y = !1, this._$EM(), M; } y && this._$AE(E); } willUpdate(y) { } _$AE(y) { var E; (E = this._$EO) == null || E.forEach((D) => { var M; return (M = D.hostUpdated) == null ? void 0 : M.call(D); }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(y)), this.updated(y); } _$EM() { this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1; } get updateComplete() { return this.getUpdateComplete(); } getUpdateComplete() { return this._$ES; } shouldUpdate(y) { return !0; } update(y) { this._$Eq && (this._$Eq = this._$Eq.forEach((E) => this._$ET(E, this[E]))), this._$EM(); } updated(y) { } firstUpdated(y) { } } qf.elementStyles = [], qf.shadowRootOptions = { mode: "open" }, qf[sv("elementProperties")] = /* @__PURE__ */ new Map(), qf[sv("finalized")] = /* @__PURE__ */ new Map(), OE == null || OE({ ReactiveElement: qf }), (Mo.reactiveElementVersions ?? (Mo.reactiveElementVersions = [])).push("2.1.0"); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const rD = { attribute: !0, type: String, converter: cy, reflect: !1, hasChanged: $E }, aD = (A = rD, y, E) => { const { kind: D, metadata: M } = E; let W = globalThis.litPropertyMetadata.get(M); if (W === void 0 && globalThis.litPropertyMetadata.set(M, W = /* @__PURE__ */ new Map()), D === "setter" && ((A = Object.create(A)).wrapped = !0), W.set(E.name, A), D === "accessor") { const { name: S } = E; return { set(xe) { const X = y.get.call(this); y.set.call(this, xe), this.requestUpdate(S, X, A); }, init(xe) { return xe !== void 0 && this.C(S, void 0, A, xe), xe; } }; } if (D === "setter") { const { name: S } = E; return function(xe) { const X = this[S]; y.call(this, xe), this.requestUpdate(S, X, A); }; } throw Error("Unsupported decorator location: " + D); }; function YR(A) { return (y, E) => typeof E == "object" ? aD(A, y, E) : ((D, M, W) => { const S = M.hasOwnProperty(W); return M.constructor.createProperty(W, D), S ? Object.getOwnPropertyDescriptor(M, W) : void 0; })(A, y, E); } /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const tc = globalThis; let cv = class extends qf { constructor() { super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0; } createRenderRoot() { var E; const y = super.createRenderRoot(); return (E = this.renderOptions).renderBefore ?? (E.renderBefore = y.firstChild), y; } update(y) { const E = this.render(); this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(y), this._$Do = Qk(E, this.renderRoot, this.renderOptions); } connectedCallback() { var y; super.connectedCallback(), (y = this._$Do) == null || y.setConnected(!0); } disconnectedCallback() { var y; super.disconnectedCallback(), (y = this._$Do) == null || y.setConnected(!1); } render() { return Xf; } }; var FR; cv._$litElement$ = !0, cv.finalized = !0, (FR = tc.litElementHydrateSupport) == null || FR.call(tc, { LitElement: cv }); const ME = tc.litElementPolyfillSupport; ME == null || ME({ LitElement: cv }); (tc.litElementVersions ?? (tc.litElementVersions = [])).push("4.2.0"); var AE = { exports: {} }, ba = {}, iy = { exports: {} }, lt = {}; /** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var OR; function iD() { if (OR) return lt; OR = 1; var A = Symbol.for("react.element"), y = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), W = Symbol.for("react.provider"), S = Symbol.for("react.context"), xe = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), ne = Symbol.for("react.memo"), We = Symbol.for("react.lazy"), J = Symbol.iterator; function ge(k) { return k === null || typeof k != "object" ? null : (k = J && k[J] || k["@@iterator"], typeof k == "function" ? k : null); } var le = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, $e = Object.assign, ht = {}; function ut(k, I, Pe) { this.props = k, this.context = I, this.refs = ht, this.updater = Pe || le; } ut.prototype.isReactComponent = {}, ut.prototype.setState = function(k, I) { if (typeof k != "object" && typeof k != "function" && k != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); this.updater.enqueueSetState(this, k, I, "setState"); }, ut.prototype.forceUpdate = function(k) { this.updater.enqueueForceUpdate(this, k, "forceUpdate"); }; function $n() { } $n.prototype = ut.prototype; function nn(k, I, Pe) { this.props = k, this.context = I, this.refs = ht, this.updater = Pe || le; } var Ye = nn.prototype = new $n(); Ye.constructor = nn, $e(Ye, ut.prototype), Ye.isPureReactComponent = !0; var ot = Array.isArray, ke = Object.prototype.hasOwnProperty, tt = { current: null }, Fe = { key: !0, ref: !0, __self: !0, __source: !0 }; function Gt(k, I, Pe) { var Ue, Ze = {}, nt = null, Je = null; if (I != null) for (Ue in I.ref !== void 0 && (Je = I.ref), I.key !== void 0 && (nt = "" + I.key), I) ke.call(I, Ue) && !Fe.hasOwnProperty(Ue) && (Ze[Ue] = I[Ue]); var at = arguments.length - 2; if (at === 1) Ze.children = Pe; else if (1 < at) { for (var it = Array(at), It = 0; It < at; It++) it[It] = arguments[It + 2]; Ze.children = it; } if (k && k.defaultProps) for (Ue in at = k.defaultProps, at) Ze[Ue] === void 0 && (Ze[Ue] = at[Ue]); return { $$typeof: A, type: k, key: nt, ref: Je, props: Ze, _owner: tt.current }; } function Ut(k, I) { return { $$typeof: A, type: k.type, key: I, ref: k.ref, props: k.props, _owner: k._owner }; } function Bt(k) { return typeof k == "object" && k !== null && k.$$typeof === A; } function qt(k) { var I = { "=": "=0", ":": "=2" }; return "$" + k.replace(/[=:]/g, function(Pe) { return I[Pe]; }); } var Rt = /\/+/g; function Be(k, I) { return typeof k == "object" && k !== null && k.key != null ? qt("" + k.key) : I.toString(36); } function Xt(k, I, Pe, Ue, Ze) { var nt = typeof k; (nt === "undefined" || nt === "boolean") && (k = null); var Je = !1; if (k === null) Je = !0; else switch (nt) { case "string": case "number": Je = !0; break; case "object": switch (k.$$typeof) { case A: case y: Je = !0; } } if (Je) return Je = k, Ze = Ze(Je), k = Ue === "" ? "." + Be(Je, 0) : Ue, ot(Ze) ? (Pe = "", k != null && (Pe = k.replace(Rt, "$&/") + "/"), Xt(Ze, I, Pe, "", function(It) { return It; })) : Ze != null && (Bt(Ze) && (Ze = Ut(Ze, Pe + (!Ze.key || Je && Je.key === Ze.key ? "" : ("" + Ze.key).replace(Rt, "$&/") + "/") + k)), I.push(Ze)), 1; if (Je = 0, Ue = Ue === "" ? "." : Ue + ":", ot(k)) for (var at = 0; at < k.length; at++) { nt = k[at]; var it = Ue + Be(nt, at); Je += Xt(nt, I, Pe, it, Ze); } else if (it = ge(k), typeof it == "function") for (k = it.call(k), at = 0; !(nt = k.next()).done; ) nt = nt.value, it = Ue + Be(nt, at++), Je += Xt(nt, I, Pe, it, Ze); else if (nt === "object") throw I = String(k), Error("Objects are not valid as a React child (found: " + (I === "[object Object]" ? "object with keys {" + Object.keys(k).join(", ") + "}" : I) + "). If you meant to render a collection of children, use an array instead."); return Je; } function zt(k, I, Pe) { if (k == null) return k; var Ue = [], Ze = 0; return Xt(k, Ue, "", "", function(nt) { return I.call(Pe, nt, Ze++); }), Ue; } function xt(k) { if (k._status === -1) { var I = k._result; I = I(), I.then(function(Pe) { (k._status === 0 || k._status === -1) && (k._status = 1, k._result = Pe); }, function(Pe) { (k._status === 0 || k._status === -1) && (k._status = 2, k._result = Pe); }), k._status === -1 && (k._status = 0, k._result = I); } if (k._status === 1) return k._result.default; throw k._result; } var Ce = { current: null }, te = { transition: null }, be = { ReactCurrentDispatcher: Ce, ReactCurrentBatchConfig: te, ReactCurrentOwner: tt }; function se() { throw Error("act(...) is not supported in production builds of React."); } return lt.Children = { map: zt, forEach: function(k, I, Pe) { zt(k, function() { I.apply(this, arguments); }, Pe); }, count: function(k) { var I = 0; return zt(k, function() { I++; }), I; }, toArray: function(k) { return zt(k, function(I) { return I; }) || []; }, only: function(k) { if (!Bt(k)) throw Error("React.Children.only expected to receive a single React element child."); return k; } }, lt.Component = ut, lt.Fragment = E, lt.Profiler = M, lt.PureComponent = nn, lt.StrictMode = D, lt.Suspense = X, lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = be, lt.act = se, lt.cloneElement = function(k, I, Pe) { if (k == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + k + "."); var Ue = $e({}, k.props), Ze = k.key, nt = k.ref, Je = k._owner; if (I != null) { if (I.ref !== void 0 && (nt = I.ref, Je = tt.current), I.key !== void 0 && (Ze = "" + I.key), k.type && k.type.defaultProps) var at = k.type.defaultProps; for (it in I) ke.call(I, it) && !Fe.hasOwnProperty(it) && (Ue[it] = I[it] === void 0 && at !== void 0 ? at[it] : I[it]); } var it = arguments.length - 2; if (it === 1) Ue.children = Pe; else if (1 < it) { at = Array(it); for (var It = 0; It < it; It++) at[It] = arguments[It + 2]; Ue.children = at; } return { $$typeof: A, type: k.type, key: Ze, ref: nt, props: Ue, _owner: Je }; }, lt.createContext = function(k) { return k = { $$typeof: S, _currentValue: k, _currentValue2: k, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, k.Provider = { $$typeof: W, _context: k }, k.Consumer = k; }, lt.createElement = Gt, lt.createFactory = function(k) { var I = Gt.bind(null, k); return I.type = k, I; }, lt.createRef = function() { return { current: null }; }, lt.forwardRef = function(k) { return { $$typeof: xe, render: k }; }, lt.isValidElement = Bt, lt.lazy = function(k) { return { $$typeof: We, _payload: { _status: -1, _result: k }, _init: xt }; }, lt.memo = function(k, I) { return { $$typeof: ne, type: k, compare: I === void 0 ? null : I }; }, lt.startTransition = function(k) { var I = te.transition; te.transition = {}; try { k(); } finally { te.transition = I; } }, lt.unstable_act = se, lt.useCallback = function(k, I) { return Ce.current.useCallback(k, I); }, lt.useContext = function(k) { return Ce.current.useContext(k); }, lt.useDebugValue = function() { }, lt.useDeferredValue = function(k) { return Ce.current.useDeferredValue(k); }, lt.useEffect = function(k, I) { return Ce.current.useEffect(k, I); }, lt.useId = function() { return Ce.current.useId(); }, lt.useImperativeHandle = function(k, I, Pe) { return Ce.current.useImperativeHandle(k, I, Pe); }, lt.useInsertionEffect = function(k, I) { return Ce.current.useInsertionEffect(k, I); }, lt.useLayoutEffect = function(k, I) { return Ce.current.useLayoutEffect(k, I); }, lt.useMemo = function(k, I) { return Ce.current.useMemo(k, I); }, lt.useReducer = function(k, I, Pe) { return Ce.current.useReducer(k, I, Pe); }, lt.useRef = function(k) { return Ce.current.useRef(k); }, lt.useState = function(k) { return Ce.current.useState(k); }, lt.useSyncExternalStore = function(k, I, Pe) { return Ce.current.useSyncExternalStore(k, I, Pe); }, lt.useTransition = function() { return Ce.current.useTransition(); }, lt.version = "18.3.1", lt; } var uv = { exports: {} }; /** * @license React * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ uv.exports; var MR; function lD() { return MR || (MR = 1, function(A, y) { process.env.NODE_ENV !== "production" && function() { typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); var E = "18.3.1", D = Symbol.for("react.element"), M = Symbol.for("react.portal"), W = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), xe = Symbol.for("react.profiler"), X = Symbol.for("react.provider"), ne = Symbol.for("react.context"), We = Symbol.for("react.forward_ref"), J = Symbol.for("react.suspense"), ge = Symbol.for("react.suspense_list"), le = Symbol.for("react.memo"), $e = Symbol.for("react.lazy"), ht = Symbol.for("react.offscreen"), ut = Symbol.iterator, $n = "@@iterator"; function nn(h) { if (h === null || typeof h != "object") return null; var R = ut && h[ut] || h[$n]; return typeof R == "function" ? R : null; } var Ye = { /** * @internal * @type {ReactComponent} */ current: null }, ot = { transition: null }, ke = { current: null, // Used to reproduce behavior of `batchedUpdates` in legacy mode. isBatchingLegacy: !1, didScheduleLegacyUpdate: !1 }, tt = { /** * @internal * @type {ReactComponent} */ current: null }, Fe = {}, Gt = null; function Ut(h) { Gt = h; } Fe.setExtraStackFrame = function(h) { Gt = h; }, Fe.getCurrentStack = null, Fe.getStackAddendum = function() { var h = ""; Gt && (h += Gt); var R = Fe.getCurrentStack; return R && (h += R() || ""), h; }; var Bt = !1, qt = !1, Rt = !1, Be = !1, Xt = !1, zt = { ReactCurrentDispatcher: Ye, ReactCurrentBatchConfig: ot, ReactCurrentOwner: tt }; zt.ReactDebugCurrentFrame = Fe, zt.ReactCurrentActQueue = ke; function xt(h) { { for (var R = arguments.length, H = new Array(R > 1 ? R - 1 : 0), j = 1; j < R; j++) H[j - 1] = arguments[j]; te("warn", h, H); } } function Ce(h) { { for (var R = arguments.length, H = new Array(R > 1 ? R - 1 : 0), j = 1; j < R; j++) H[j - 1] = arguments[j]; te("error", h, H); } } function te(h, R, H) { { var j = zt.ReactDebugCurrentFrame, ee = j.getStackAddendum(); ee !== "" && (R += "%s", H = H.concat([ee])); var De = H.map(function(ie) { return String(ie); }); De.unshift("Warning: " + R), Function.prototype.apply.call(console[h], console, De); } } var be = {}; function se(h, R) { { var H = h.constructor, j = H && (H.displayName || H.name) || "ReactClass", ee = j + "." + R; if (be[ee]) return; Ce("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", R, j), be[ee] = !0; } } var k = { /** * Checks whether or not this composite component is mounted. * @param {ReactClass} publicInstance The instance we want to test. * @return {boolean} True if mounted, false otherwise. * @protected * @final */ isMounted: function(h) { return !1; }, /** * Forces an update. This should only be invoked when it is known with * certainty that we are **not** in a DOM transaction. * * You may want to call this when you know that some deeper aspect of the * component's state has changed but `setState` was not called. * * This will not invoke `shouldComponentUpdate`, but it will invoke * `componentWillUpdate` and `componentDidUpdate`. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {?function} callback Called after component is updated. * @param {?string} callerName name of the calling function in the public API. * @internal */ enqueueForceUpdate: function(h, R, H) { se(h, "forceUpdate"); }, /** * Replaces all of the state. Always use this or `setState` to mutate state. * You should treat `this.state` as immutable. * * There is no guarantee that `this.state` will be immediately updated, so * accessing `this.state` after calling this method may return the old value. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} completeState Next state. * @param {?function} callback Called after component is updated. * @param {?string} callerName name of the calling function in the public API. * @internal */ enqueueReplaceState: function(h, R, H, j) { se(h, "replaceState"); }, /** * Sets a subset of the state. This only exists because _pendingState is * internal. This provides a merging strategy that is not available to deep * properties which is confusing. TODO: Expose pendingState or don't use it * during the merge. * * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} partialState Next partial state to be merged with state. * @param {?function} callback Called after component is updated. * @param {?string} Name of the calling function in the public API. * @internal */ enqueueSetState: function(h, R, H, j) { se(h, "setState"); } }, I = Object.assign, Pe = {}; Object.freeze(Pe); function Ue(h, R, H) { this.props = h, this.context = R, this.refs = Pe, this.updater = H || k; } Ue.prototype.isReactComponent = {}, Ue.prototype.setState = function(h, R) { if (typeof h != "object" && typeof h != "function" && h != null) throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); this.updater.enqueueSetState(this, h, R, "setState"); }, Ue.prototype.forceUpdate = function(h) { this.updater.enqueueForceUpdate(this, h, "forceUpdate"); }; { var Ze = { isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] }, nt = function(h, R) { Object.defineProperty(Ue.prototype, h, { get: function() { xt("%s(...) is deprecated in plain JavaScript React classes. %s", R[0], R[1]); } }); }; for (var Je in Ze) Ze.hasOwnProperty(Je) && nt(Je, Ze[Je]); } function at() { } at.prototype = Ue.prototype; function it(h, R, H) { this.props = h, this.context = R, this.refs = Pe, this.updater = H || k; } var It = it.prototype = new at(); It.constructor = it, I(It, Ue.prototype), It.isPureReactComponent = !0; function Ln() { var h = { current: null }; return Object.seal(h), h; } var la = Array.isArray; function _n(h) { return la(h); } function ir(h) { { var R = typeof Symbol == "function" && Symbol.toStringTag, H = R && h[Symbol.toStringTag] || h.constructor.name || "Object"; return H; } } function Rr(h) { try { return Br(h), !1; } catch { return !0; } } function Br(h) { return "" + h; } function Da(h) { if (Rr(h)) return Ce("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(h)), Br(h); } function $l(h, R, H) { var j = h.displayName; if (j) return j; var ee = R.displayName || R.name || ""; return ee !== "" ? H + "(" + ee + ")" : H; } function qi(h) { return h.displayName || "Context"; } function Jn(h) { if (h == null) return null; if (typeof h.tag == "number" && Ce("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function") return h.displayName || h.name || null; if (typeof h == "string") return h; switch (h) { case W: return "Fragment"; case M: return "Portal"; case xe: return "Profiler"; case S: return "StrictMode"; case J: return "Suspense"; case ge: return "SuspenseList"; } if (typeof h == "object") switch (h.$$typeof) { case ne: var R = h; return qi(R) + ".Consumer"; case X: var H = h; return qi(H._context) + ".Provider"; case We: return $l(h, h.render, "ForwardRef"); case le: var j = h.displayName || null; return j !== null ? j : Jn(h.type) || "Memo"; case $e: { var ee = h, De = ee._payload, ie = ee._init; try { return Jn(ie(De)); } catch { return null; } } } return null; } var xn = Object.prototype.hasOwnProperty, lr = { key: !0, ref: !0, __self: !0, __source: !0 }, wr, hi, Fn; Fn = {}; function Ir(h) { if (xn.call(h, "ref")) { var R = Object.getOwnPropertyDescriptor(h, "ref").get; if (R && R.isReactWarning) return !1; } return h.ref !== void 0; } function Ia(h) { if (xn.call(h, "key")) { var R = Object.getOwnPropertyDescriptor(h, "key").get; if (R && R.isReactWarning) return !1; } return h.key !== void 0; } function mi(h, R) { var H = function() { wr || (wr = !0, Ce("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R)); }; H.isReactWarning = !0, Object.defineProperty(h, "key", { get: H, configurable: !0 }); } function Fl(h, R) { var H = function() { hi || (hi = !0, Ce("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R)); }; H.isReactWarning = !0, Object.defineProperty(h, "ref", { get: H, configurable: !0 }); } function re(h) { if (typeof h.ref == "string" && tt.current && h.__self && tt.current.stateNode !== h.__self) { var R = Jn(tt.current.type); Fn[R] || (Ce('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R, h.ref), Fn[R] = !0); } } var Te = function(h, R, H, j, ee, De, ie) { var Le = { // This tag allows us to uniquely identify this as a React Element $$typeof: D, // Built-in properties that belong on the element type: h, key: R, ref: H, props: ie, // Record the component responsible for creating this element. _owner: De }; return Le._store = {}, Object.defineProperty(Le._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(Le, "_self", { configurable: !1, enumerable: !1, writable: !1, value: j }), Object.defineProperty(Le, "_source", { configurable: !1, enumerable: !1, writable: !1, value: ee }), Object.freeze && (Object.freeze(Le.props), Object.freeze(Le)), Le; }; function Xe(h, R, H) { var j, ee = {}, De = null, ie = null, Le = null, Ke = null; if (R != null) { Ir(R) && (ie = R.ref, re(R)), Ia(R) && (Da(R.key), De = "" + R.key), Le = R.__self === void 0 ? null : R.__self, Ke = R.__source === void 0 ? null : R.__source; for (j in R) xn.call(R, j) && !lr.hasOwnProperty(j) && (ee[j] = R[j]); } var vt = arguments.length - 2; if (vt === 1) ee.children = H; else if (vt > 1) { for (var $t = Array(vt), Ot = 0; Ot < vt; Ot++) $t[Ot] = arguments[Ot + 2]; Object.freeze && Object.freeze($t), ee.children = $t; } if (h && h.defaultProps) { var Ge = h.defaultProps; for (j in Ge) ee[j] === void 0 && (ee[j] = Ge[j]); } if (De || ie) { var Mt = typeof h == "function" ? h.displayName || h.name || "Unknown" : h; De && mi(ee, Mt), ie && Fl(ee, Mt); } return Te(h, De, ie, Le, Ke, tt.current, ee); } function bt(h, R) { var H = Te(h.type, R, h.ref, h._self, h._source, h._owner, h.props); return H; } function Yt(h, R, H) { if (h == null) throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + h + "."); var j, ee = I({}, h.props), De = h.key, ie = h.ref, Le = h._self, Ke = h._source, vt = h._owner; if (R != null) { Ir(R) && (ie = R.ref, vt = tt.current), Ia(R) && (Da(R.key), De = "" + R.key); var $t; h.type && h.type.defaultProps && ($t = h.type.defaultProps); for (j in R) xn.call(R, j) && !lr.hasOwnProperty(j) && (R[j] === void 0 && $t !== void 0 ? ee[j] = $t[j] : ee[j] = R[j]); } var Ot = arguments.length - 2; if (Ot === 1) ee.children = H; else if (Ot > 1) { for (var Ge = Array(Ot), Mt = 0; Mt < Ot; Mt++) Ge[Mt] = arguments[Mt + 2]; ee.children = Ge; } return Te(h.type, De, ie, Le, Ke, vt, ee); } function ln(h) { return typeof h == "object" && h !== null && h.$$typeof === D; } var Kt = ".", er = ":"; function rn(h) { var R = /[=:]/g, H = { "=": "=0", ":": "=2" }, j = h.replace(R, function(ee) { return H[ee]; }); return "$" + j; } var jt = !1, un = /\/+/g; function yi(h) { return h.replace(un, "$&/"); } function ua(h, R) { return typeof h == "object" && h !== null && h.key != null ? (Da(h.key), rn("" + h.key)) : R.toString(36); } function gi(h, R, H, j, ee) { var De = typeof h; (De === "undefined" || De === "boolean") && (h = null); var ie = !1; if (h === null) ie = !0; else switch (De) { case "string": case "number": ie = !0; break; case "object": switch (h.$$typeof) { case D: case M: ie = !0; } } if (ie) { var Le = h, Ke = ee(Le), vt = j === "" ? Kt + ua(Le, 0) : j; if (_n(Ke)) { var $t = ""; vt != null && ($t = yi(vt) + "/"), gi(Ke, R, $t, "", function(ad) { return ad; }); } else Ke != null && (ln(Ke) && (Ke.key && (!Le || Le.key !== Ke.key) && Da(Ke.key), Ke = bt( Ke, // Keep both the (mapped) and old keys if they differ, just as // traverseAllChildren used to do for objects as children H + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key (Ke.key && (!Le || Le.key !== Ke.key) ? ( // $FlowFixMe Flow incorrectly thinks existing element's key can be a number // eslint-disable-next-line react-internal/safe-string-coercion yi("" + Ke.key) + "/" ) : "") + vt )), R.push(Ke)); return 1; } var Ot, Ge, Mt = 0, Zt = j === "" ? Kt : j + er; if (_n(h)) for (var ul = 0; ul < h.length; ul++) Ot = h[ul], Ge = Zt + ua(Ot, ul), Mt += gi(Ot, R, H, Ge, e