@oslokommune/punkt-react
Version:
React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo
1,322 lines (1,319 loc) • 1.52 MB
JavaScript
if (typeof HTMLElement === 'undefined') { globalThis.HTMLElement = function() {} };
if (typeof document === 'undefined') {
globalThis.document = {
createTreeWalker: function() {
return {
currentNode: null,
nextNode: function() { return null; },
previousNode: function() { return null; },
parentNode: function() { return null; },
firstChild: function() { return null; },
lastChild: function() { return null; },
previousSibling: function() { return null; },
nextSibling: function() { return null; }
};
},
getElementsByTagName: function() { return []; },
querySelectorAll: function() { return []; },
querySelector: function() {
return {
querySelectorAll: function() { return []; },
getElementsByTagName: function() { return []; }
};
},
}
};
if (typeof customElements === 'undefined') { globalThis.customElements = { define: function() {} }; }
if (typeof window === 'undefined') { globalThis.window = globalThis; }
if (typeof SVGElement === 'undefined') { globalThis.SVGElement = function() {} };
if (typeof Element === 'undefined') {
globalThis.Element = function() {};
globalThis.Element.prototype.querySelectorAll = function() {
return [];
};
}
var qL = Object.defineProperty;
var VL = (r, n, i) => n in r ? qL(r, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[n] = i;
var Om = (r, n, i) => VL(r, typeof n != "symbol" ? n + "" : n, i);
import * as YL from "react";
import dn, { forwardRef as xr, useState as ou, Fragment as MS, isValidElement as dy, useRef as iF, useEffect as zS, cloneElement as GL } from "react";
import { Link as sE } from "react-router-dom";
function XL(r, n) {
for (var i = 0; i < n.length; i++) {
const l = n[i];
if (typeof l != "string" && !Array.isArray(l)) {
for (const c in l)
if (c !== "default" && !(c in r)) {
const h = Object.getOwnPropertyDescriptor(l, c);
h && Object.defineProperty(r, c, h.get ? h : {
enumerable: !0,
get: () => l[c]
});
}
}
}
return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
}
var Dp = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Dw(r) {
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
}
var cS = { exports: {} }, Gv = {};
/**
* @license React
* react-jsx-runtime.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 lE;
function JL() {
if (lE) return Gv;
lE = 1;
var r = dn, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
function m(D, x, E) {
var $, N = {}, L = null, O = null;
E !== void 0 && (L = "" + E), x.key !== void 0 && (L = "" + x.key), x.ref !== void 0 && (O = x.ref);
for ($ in x) l.call(x, $) && !h.hasOwnProperty($) && (N[$] = x[$]);
if (D && D.defaultProps) for ($ in x = D.defaultProps, x) N[$] === void 0 && (N[$] = x[$]);
return { $$typeof: n, type: D, key: L, ref: O, props: N, _owner: c.current };
}
return Gv.Fragment = i, Gv.jsx = m, Gv.jsxs = m, Gv;
}
var Xv = {};
/**
* @license React
* react-jsx-runtime.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.
*/
var uE;
function QL() {
return uE || (uE = 1, process.env.NODE_ENV !== "production" && function() {
var r = dn, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), D = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), I = Symbol.iterator, J = "@@iterator";
function V(X) {
if (X === null || typeof X != "object")
return null;
var Fe = I && X[I] || X[J];
return typeof Fe == "function" ? Fe : null;
}
var we = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function q(X) {
{
for (var Fe = arguments.length, et = new Array(Fe > 1 ? Fe - 1 : 0), dt = 1; dt < Fe; dt++)
et[dt - 1] = arguments[dt];
H("error", X, et);
}
}
function H(X, Fe, et) {
{
var dt = we.ReactDebugCurrentFrame, Mt = dt.getStackAddendum();
Mt !== "" && (Fe += "%s", et = et.concat([Mt]));
var Bt = et.map(function(Ht) {
return String(Ht);
});
Bt.unshift("Warning: " + Fe), Function.prototype.apply.call(console[X], console, Bt);
}
}
var K = !1, Y = !1, ne = !1, le = !1, _e = !1, me;
me = Symbol.for("react.module.reference");
function Ye(X) {
return !!(typeof X == "string" || typeof X == "function" || X === l || X === h || _e || X === c || X === E || X === $ || le || X === O || K || Y || ne || typeof X == "object" && X !== null && (X.$$typeof === L || X.$$typeof === N || X.$$typeof === m || X.$$typeof === D || X.$$typeof === x || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
X.$$typeof === me || X.getModuleId !== void 0));
}
function Ue(X, Fe, et) {
var dt = X.displayName;
if (dt)
return dt;
var Mt = Fe.displayName || Fe.name || "";
return Mt !== "" ? et + "(" + Mt + ")" : et;
}
function Ge(X) {
return X.displayName || "Context";
}
function qe(X) {
if (X == null)
return null;
if (typeof X.tag == "number" && q("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof X == "function")
return X.displayName || X.name || null;
if (typeof X == "string")
return X;
switch (X) {
case l:
return "Fragment";
case i:
return "Portal";
case h:
return "Profiler";
case c:
return "StrictMode";
case E:
return "Suspense";
case $:
return "SuspenseList";
}
if (typeof X == "object")
switch (X.$$typeof) {
case D:
var Fe = X;
return Ge(Fe) + ".Consumer";
case m:
var et = X;
return Ge(et._context) + ".Provider";
case x:
return Ue(X, X.render, "ForwardRef");
case N:
var dt = X.displayName || null;
return dt !== null ? dt : qe(X.type) || "Memo";
case L: {
var Mt = X, Bt = Mt._payload, Ht = Mt._init;
try {
return qe(Ht(Bt));
} catch {
return null;
}
}
}
return null;
}
var Be = Object.assign, it = 0, Re, Ae, ue, $e, xe, Q, de;
function Je() {
}
Je.__reactDisabledLog = !0;
function Qe() {
{
if (it === 0) {
Re = console.log, Ae = console.info, ue = console.warn, $e = console.error, xe = console.group, Q = console.groupCollapsed, de = console.groupEnd;
var X = {
configurable: !0,
enumerable: !0,
value: Je,
writable: !0
};
Object.defineProperties(console, {
info: X,
log: X,
warn: X,
error: X,
group: X,
groupCollapsed: X,
groupEnd: X
});
}
it++;
}
}
function mt() {
{
if (it--, it === 0) {
var X = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: Be({}, X, {
value: Re
}),
info: Be({}, X, {
value: Ae
}),
warn: Be({}, X, {
value: ue
}),
error: Be({}, X, {
value: $e
}),
group: Be({}, X, {
value: xe
}),
groupCollapsed: Be({}, X, {
value: Q
}),
groupEnd: Be({}, X, {
value: de
})
});
}
it < 0 && q("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var st = we.ReactCurrentDispatcher, gt;
function pt(X, Fe, et) {
{
if (gt === void 0)
try {
throw Error();
} catch (Mt) {
var dt = Mt.stack.trim().match(/\n( *(at )?)/);
gt = dt && dt[1] || "";
}
return `
` + gt + X;
}
}
var Tt = !1, Zt;
{
var Ut = typeof WeakMap == "function" ? WeakMap : Map;
Zt = new Ut();
}
function Nn(X, Fe) {
if (!X || Tt)
return "";
{
var et = Zt.get(X);
if (et !== void 0)
return et;
}
var dt;
Tt = !0;
var Mt = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var Bt;
Bt = st.current, st.current = null, Qe();
try {
if (Fe) {
var Ht = function() {
throw Error();
};
if (Object.defineProperty(Ht.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(Ht, []);
} catch (_t) {
dt = _t;
}
Reflect.construct(X, [], Ht);
} else {
try {
Ht.call();
} catch (_t) {
dt = _t;
}
X.call(Ht.prototype);
}
} else {
try {
throw Error();
} catch (_t) {
dt = _t;
}
X();
}
} catch (_t) {
if (_t && dt && typeof _t.stack == "string") {
for (var en = _t.stack.split(`
`), br = dt.stack.split(`
`), Jn = en.length - 1, Qn = br.length - 1; Jn >= 1 && Qn >= 0 && en[Jn] !== br[Qn]; )
Qn--;
for (; Jn >= 1 && Qn >= 0; Jn--, Qn--)
if (en[Jn] !== br[Qn]) {
if (Jn !== 1 || Qn !== 1)
do
if (Jn--, Qn--, Qn < 0 || en[Jn] !== br[Qn]) {
var Rr = `
` + en[Jn].replace(" at new ", " at ");
return X.displayName && Rr.includes("<anonymous>") && (Rr = Rr.replace("<anonymous>", X.displayName)), typeof X == "function" && Zt.set(X, Rr), Rr;
}
while (Jn >= 1 && Qn >= 0);
break;
}
}
} finally {
Tt = !1, st.current = Bt, mt(), Error.prepareStackTrace = Mt;
}
var Gi = X ? X.displayName || X.name : "", kr = Gi ? pt(Gi) : "";
return typeof X == "function" && Zt.set(X, kr), kr;
}
function Ft(X, Fe, et) {
return Nn(X, !1);
}
function at(X) {
var Fe = X.prototype;
return !!(Fe && Fe.isReactComponent);
}
function Vn(X, Fe, et) {
if (X == null)
return "";
if (typeof X == "function")
return Nn(X, at(X));
if (typeof X == "string")
return pt(X);
switch (X) {
case E:
return pt("Suspense");
case $:
return pt("SuspenseList");
}
if (typeof X == "object")
switch (X.$$typeof) {
case x:
return Ft(X.render);
case N:
return Vn(X.type, Fe, et);
case L: {
var dt = X, Mt = dt._payload, Bt = dt._init;
try {
return Vn(Bt(Mt), Fe, et);
} catch {
}
}
}
return "";
}
var wn = Object.prototype.hasOwnProperty, ar = {}, Ma = we.ReactDebugCurrentFrame;
function Pr(X) {
if (X) {
var Fe = X._owner, et = Vn(X.type, X._source, Fe ? Fe.type : null);
Ma.setExtraStackFrame(et);
} else
Ma.setExtraStackFrame(null);
}
function yr(X, Fe, et, dt, Mt) {
{
var Bt = Function.call.bind(wn);
for (var Ht in X)
if (Bt(X, Ht)) {
var en = void 0;
try {
if (typeof X[Ht] != "function") {
var br = Error((dt || "React class") + ": " + et + " type `" + Ht + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof X[Ht] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw br.name = "Invariant Violation", br;
}
en = X[Ht](Fe, Ht, dt, et, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (Jn) {
en = Jn;
}
en && !(en instanceof Error) && (Pr(Mt), q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", dt || "React class", et, Ht, typeof en), Pr(null)), en instanceof Error && !(en.message in ar) && (ar[en.message] = !0, Pr(Mt), q("Failed %s type: %s", et, en.message), Pr(null));
}
}
}
var Xn = Array.isArray;
function sn(X) {
return Xn(X);
}
function mn(X) {
{
var Fe = typeof Symbol == "function" && Symbol.toStringTag, et = Fe && X[Symbol.toStringTag] || X.constructor.name || "Object";
return et;
}
}
function an(X) {
try {
return fe(X), !1;
} catch {
return !0;
}
}
function fe(X) {
return "" + X;
}
function ee(X) {
if (an(X))
return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mn(X)), fe(X);
}
var ke = we.ReactCurrentOwner, Ne = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, Ee, Oe;
function Xe(X) {
if (wn.call(X, "ref")) {
var Fe = Object.getOwnPropertyDescriptor(X, "ref").get;
if (Fe && Fe.isReactWarning)
return !1;
}
return X.ref !== void 0;
}
function Ct(X) {
if (wn.call(X, "key")) {
var Fe = Object.getOwnPropertyDescriptor(X, "key").get;
if (Fe && Fe.isReactWarning)
return !1;
}
return X.key !== void 0;
}
function It(X, Fe) {
typeof X.ref == "string" && ke.current;
}
function Dn(X, Fe) {
{
var et = function() {
Ee || (Ee = !0, q("%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)", Fe));
};
et.isReactWarning = !0, Object.defineProperty(X, "key", {
get: et,
configurable: !0
});
}
}
function Cn(X, Fe) {
{
var et = function() {
Oe || (Oe = !0, q("%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)", Fe));
};
et.isReactWarning = !0, Object.defineProperty(X, "ref", {
get: et,
configurable: !0
});
}
}
var Cr = function(X, Fe, et, dt, Mt, Bt, Ht) {
var en = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: n,
// Built-in properties that belong on the element
type: X,
key: Fe,
ref: et,
props: Ht,
// Record the component responsible for creating this element.
_owner: Bt
};
return en._store = {}, Object.defineProperty(en._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(en, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: dt
}), Object.defineProperty(en, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: Mt
}), Object.freeze && (Object.freeze(en.props), Object.freeze(en)), en;
};
function gn(X, Fe, et, dt, Mt) {
{
var Bt, Ht = {}, en = null, br = null;
et !== void 0 && (ee(et), en = "" + et), Ct(Fe) && (ee(Fe.key), en = "" + Fe.key), Xe(Fe) && (br = Fe.ref, It(Fe, Mt));
for (Bt in Fe)
wn.call(Fe, Bt) && !Ne.hasOwnProperty(Bt) && (Ht[Bt] = Fe[Bt]);
if (X && X.defaultProps) {
var Jn = X.defaultProps;
for (Bt in Jn)
Ht[Bt] === void 0 && (Ht[Bt] = Jn[Bt]);
}
if (en || br) {
var Qn = typeof X == "function" ? X.displayName || X.name || "Unknown" : X;
en && Dn(Ht, Qn), br && Cn(Ht, Qn);
}
return Cr(X, en, br, Mt, dt, ke.current, Ht);
}
}
var ca = we.ReactCurrentOwner, hr = we.ReactDebugCurrentFrame;
function In(X) {
if (X) {
var Fe = X._owner, et = Vn(X.type, X._source, Fe ? Fe.type : null);
hr.setExtraStackFrame(et);
} else
hr.setExtraStackFrame(null);
}
var da;
da = !1;
function pa(X) {
return typeof X == "object" && X !== null && X.$$typeof === n;
}
function wi() {
{
if (ca.current) {
var X = qe(ca.current.type);
if (X)
return `
Check the render method of \`` + X + "`.";
}
return "";
}
}
function yo(X) {
return "";
}
var fl = {};
function hl(X) {
{
var Fe = wi();
if (!Fe) {
var et = typeof X == "string" ? X : X.displayName || X.name;
et && (Fe = `
Check the top-level render call using <` + et + ">.");
}
return Fe;
}
}
function Ts(X, Fe) {
{
if (!X._store || X._store.validated || X.key != null)
return;
X._store.validated = !0;
var et = hl(Fe);
if (fl[et])
return;
fl[et] = !0;
var dt = "";
X && X._owner && X._owner !== ca.current && (dt = " It was passed a child from " + qe(X._owner.type) + "."), In(X), q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', et, dt), In(null);
}
}
function Yi(X, Fe) {
{
if (typeof X != "object")
return;
if (sn(X))
for (var et = 0; et < X.length; et++) {
var dt = X[et];
pa(dt) && Ts(dt, Fe);
}
else if (pa(X))
X._store && (X._store.validated = !0);
else if (X) {
var Mt = V(X);
if (typeof Mt == "function" && Mt !== X.entries)
for (var Bt = Mt.call(X), Ht; !(Ht = Bt.next()).done; )
pa(Ht.value) && Ts(Ht.value, Fe);
}
}
}
function Di(X) {
{
var Fe = X.type;
if (Fe == null || typeof Fe == "string")
return;
var et;
if (typeof Fe == "function")
et = Fe.propTypes;
else if (typeof Fe == "object" && (Fe.$$typeof === x || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
Fe.$$typeof === N))
et = Fe.propTypes;
else
return;
if (et) {
var dt = qe(Fe);
yr(et, X.props, "prop", dt, X);
} else if (Fe.PropTypes !== void 0 && !da) {
da = !0;
var Mt = qe(Fe);
q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Mt || "Unknown");
}
typeof Fe.getDefaultProps == "function" && !Fe.getDefaultProps.isReactClassApproved && q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ir(X) {
{
for (var Fe = Object.keys(X.props), et = 0; et < Fe.length; et++) {
var dt = Fe[et];
if (dt !== "children" && dt !== "key") {
In(X), q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", dt), In(null);
break;
}
}
X.ref !== null && (In(X), q("Invalid attribute `ref` supplied to `React.Fragment`."), In(null));
}
}
var Da = {};
function ta(X, Fe, et, dt, Mt, Bt) {
{
var Ht = Ye(X);
if (!Ht) {
var en = "";
(X === void 0 || typeof X == "object" && X !== null && Object.keys(X).length === 0) && (en += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var br = yo();
br ? en += br : en += wi();
var Jn;
X === null ? Jn = "null" : sn(X) ? Jn = "array" : X !== void 0 && X.$$typeof === n ? (Jn = "<" + (qe(X.type) || "Unknown") + " />", en = " Did you accidentally export a JSX literal instead of a component?") : Jn = typeof X, q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Jn, en);
}
var Qn = gn(X, Fe, et, Mt, Bt);
if (Qn == null)
return Qn;
if (Ht) {
var Rr = Fe.children;
if (Rr !== void 0)
if (dt)
if (sn(Rr)) {
for (var Gi = 0; Gi < Rr.length; Gi++)
Yi(Rr[Gi], X);
Object.freeze && Object.freeze(Rr);
} else
q("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Yi(Rr, X);
}
if (wn.call(Fe, "key")) {
var kr = qe(X), _t = Object.keys(Fe).filter(function(Fs) {
return Fs !== "key";
}), Gt = _t.length > 0 ? "{key: someKey, " + _t.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!Da[kr + Gt]) {
var Xi = _t.length > 0 ? "{" + _t.join(": ..., ") + ": ...}" : "{}";
q(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, Gt, kr, Xi, kr), Da[kr + Gt] = !0;
}
}
return X === l ? ir(Qn) : Di(Qn), Qn;
}
}
function bo(X, Fe, et) {
return ta(X, Fe, et, !0);
}
function Si(X, Fe, et) {
return ta(X, Fe, et, !1);
}
var ko = Si, wo = bo;
Xv.Fragment = l, Xv.jsx = ko, Xv.jsxs = wo;
}()), Xv;
}
process.env.NODE_ENV === "production" ? cS.exports = JL() : cS.exports = QL();
var R = cS.exports;
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const KL = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), cE = /* @__PURE__ */ new WeakMap(), dE = (r, n, i, l, c) => {
const h = c == null ? void 0 : c[n];
h === void 0 ? (r[n] = i, i == null && n in HTMLElement.prototype && r.removeAttribute(n)) : i !== l && ((m, D, x) => {
let E = cE.get(m);
E === void 0 && cE.set(m, E = /* @__PURE__ */ new Map());
let $ = E.get(D);
x !== void 0 ? $ === void 0 ? (E.set(D, $ = { handleEvent: x }), m.addEventListener(D, $)) : $.handleEvent = x : $ !== void 0 && (E.delete(D), m.removeEventListener(D, $));
})(r, h, i);
}, bi = ({ react: r, tagName: n, elementClass: i, events: l, displayName: c }) => {
const h = new Set(Object.keys(l ?? {})), m = r.forwardRef((D, x) => {
const E = r.useRef(/* @__PURE__ */ new Map()), $ = r.useRef(null), N = {}, L = {};
for (const [O, I] of Object.entries(D)) KL.has(O) ? N[O === "className" ? "class" : O] = I : h.has(O) || O in i.prototype ? L[O] = I : N[O] = I;
return r.useLayoutEffect(() => {
if ($.current === null) return;
const O = /* @__PURE__ */ new Map();
for (const I in L) dE($.current, I, D[I], E.current.get(I), l), E.current.delete(I), O.set(I, D[I]);
for (const [I, J] of E.current) dE($.current, I, void 0, J, l);
E.current = O;
}), r.useLayoutEffect(() => {
var O;
(O = $.current) == null || O.removeAttribute("defer-hydration");
}, []), N.suppressHydrationWarning = !0, r.createElement(n, { ...N, ref: r.useCallback((O) => {
$.current = O, typeof x == "function" ? x(O) : x !== null && (x.current = O);
}, [x]) });
});
return m.displayName = c ?? i.name, m;
};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const dw = globalThis, pw = dw.trustedTypes, pE = pw ? pw.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, oF = "$lit$", bp = `lit$${Math.random().toFixed(9).slice(2)}$`, sF = "?" + bp, ZL = `<${sF}>`, ah = document, gy = () => ah.createComment(""), vy = (r) => r === null || typeof r != "object" && typeof r != "function", US = Array.isArray, eO = (r) => US(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", jD = `[
\f\r]`, Jv = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, fE = /-->/g, hE = />/g, qf = RegExp(`>|${jD}(?:([^\\s"'>=/]+)(${jD}*=${jD}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`, "g"), mE = /'/g, gE = /"/g, lF = /^(?:script|style|textarea|title)$/i, tO = (r) => (n, ...i) => ({ _$litType$: r, strings: n, values: i }), be = tO(1), Vo = Symbol.for("lit-noChange"), We = Symbol.for("lit-nothing"), vE = /* @__PURE__ */ new WeakMap(), eh = ah.createTreeWalker(ah, 129);
function uF(r, n) {
if (!US(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
return pE !== void 0 ? pE.createHTML(n) : n;
}
const nO = (r, n) => {
const i = r.length - 1, l = [];
let c, h = n === 2 ? "<svg>" : n === 3 ? "<math>" : "", m = Jv;
for (let D = 0; D < i; D++) {
const x = r[D];
let E, $, N = -1, L = 0;
for (; L < x.length && (m.lastIndex = L, $ = m.exec(x), $ !== null); ) L = m.lastIndex, m === Jv ? $[1] === "!--" ? m = fE : $[1] !== void 0 ? m = hE : $[2] !== void 0 ? (lF.test($[2]) && (c = RegExp("</" + $[2], "g")), m = qf) : $[3] !== void 0 && (m = qf) : m === qf ? $[0] === ">" ? (m = c ?? Jv, N = -1) : $[1] === void 0 ? N = -2 : (N = m.lastIndex - $[2].length, E = $[1], m = $[3] === void 0 ? qf : $[3] === '"' ? gE : mE) : m === gE || m === mE ? m = qf : m === fE || m === hE ? m = Jv : (m = qf, c = void 0);
const O = m === qf && r[D + 1].startsWith("/>") ? " " : "";
h += m === Jv ? x + ZL : N >= 0 ? (l.push(E), x.slice(0, N) + oF + x.slice(N) + bp + O) : x + bp + (N === -2 ? D : O);
}
return [uF(r, h + (r[i] || "<?>") + (n === 2 ? "</svg>" : n === 3 ? "</math>" : "")), l];
};
class yy {
constructor({ strings: n, _$litType$: i }, l) {
let c;
this.parts = [];
let h = 0, m = 0;
const D = n.length - 1, x = this.parts, [E, $] = nO(n, i);
if (this.el = yy.createElement(E, l), eh.currentNode = this.el.content, i === 2 || i === 3) {
const N = this.el.content.firstChild;
N.replaceWith(...N.childNodes);
}
for (; (c = eh.nextNode()) !== null && x.length < D; ) {
if (c.nodeType === 1) {
if (c.hasAttributes()) for (const N of c.getAttributeNames()) if (N.endsWith(oF)) {
const L = $[m++], O = c.getAttribute(N).split(bp), I = /([.?@])?(.*)/.exec(L);
x.push({ type: 1, index: h, name: I[2], strings: O, ctor: I[1] === "." ? aO : I[1] === "?" ? iO : I[1] === "@" ? oO : Sw }), c.removeAttribute(N);
} else N.startsWith(bp) && (x.push({ type: 6, index: h }), c.removeAttribute(N));
if (lF.test(c.tagName)) {
const N = c.textContent.split(bp), L = N.length - 1;
if (L > 0) {
c.textContent = pw ? pw.emptyScript : "";
for (let O = 0; O < L; O++) c.append(N[O], gy()), eh.nextNode(), x.push({ type: 2, index: ++h });
c.append(N[L], gy());
}
}
} else if (c.nodeType === 8) if (c.data === sF) x.push({ type: 2, index: h });
else {
let N = -1;
for (; (N = c.data.indexOf(bp, N + 1)) !== -1; ) x.push({ type: 7, index: h }), N += bp.length - 1;
}
h++;
}
}
static createElement(n, i) {
const l = ah.createElement("template");
return l.innerHTML = n, l;
}
}
function Qm(r, n, i = r, l) {
var c, h;
if (n === Vo) return n;
let m = l !== void 0 ? (c = i._$Co) == null ? void 0 : c[l] : i._$Cl;
const D = vy(n) ? void 0 : n._$litDirective$;
return (m == null ? void 0 : m.constructor) !== D && ((h = m == null ? void 0 : m._$AO) == null || h.call(m, !1), D === void 0 ? m = void 0 : (m = new D(r), m._$AT(r, i, l)), l !== void 0 ? (i._$Co ?? (i._$Co = []))[l] = m : i._$Cl = m), m !== void 0 && (n = Qm(r, m._$AS(r, n.values), m, l)), n;
}
class rO {
constructor(n, i) {
this._$AV = [], this._$AN = void 0, this._$AD = n, this._$AM = i;
}
get parentNode() {
return this._$AM.parentNode;
}
get _$AU() {
return this._$AM._$AU;
}
u(n) {
const { el: { content: i }, parts: l } = this._$AD, c = ((n == null ? void 0 : n.creationScope) ?? ah).importNode(i, !0);
eh.currentNode = c;
let h = eh.nextNode(), m = 0, D = 0, x = l[0];
for (; x !== void 0; ) {
if (m === x.index) {
let E;
x.type === 2 ? E = new og(h, h.nextSibling, this, n) : x.type === 1 ? E = new x.ctor(h, x.name, x.strings, this, n) : x.type === 6 && (E = new sO(h, this, n)), this._$AV.push(E), x = l[++D];
}
m !== (x == null ? void 0 : x.index) && (h = eh.nextNode(), m++);
}
return eh.currentNode = ah, c;
}
p(n) {
let i = 0;
for (const l of this._$AV) l !== void 0 && (l.strings !== void 0 ? (l._$AI(n, l, i), i += l.strings.length - 2) : l._$AI(n[i])), i++;
}
}
class og {
get _$AU() {
var n;
return ((n = this._$AM) == null ? void 0 : n._$AU) ?? this._$Cv;
}
constructor(n, i, l, c) {
this.type = 2, this._$AH = We, this._$AN = void 0, this._$AA = n, this._$AB = i, this._$AM = l, this.options = c, this._$Cv = (c == null ? void 0 : c.isConnected) ?? !0;
}
get parentNode() {
let n = this._$AA.parentNode;
const i = this._$AM;
return i !== void 0 && (n == null ? void 0 : n.nodeType) === 11 && (n = i.parentNode), n;
}
get startNode() {
return this._$AA;
}
get endNode() {
return this._$AB;
}
_$AI(n, i = this) {
n = Qm(this, n, i), vy(n) ? n === We || n == null || n === "" ? (this._$AH !== We && this._$AR(), this._$AH = We) : n !== this._$AH && n !== Vo && this._(n) : n._$litType$ !== void 0 ? this.$(n) : n.nodeType !== void 0 ? this.T(n) : eO(n) ? this.k(n) : this._(n);
}
O(n) {
return this._$AA.parentNode.insertBefore(n, this._$AB);
}
T(n) {
this._$AH !== n && (this._$AR(), this._$AH = this.O(n));
}
_(n) {
this._$AH !== We && vy(this._$AH) ? this._$AA.nextSibling.data = n : this.T(ah.createTextNode(n)), this._$AH = n;
}
$(n) {
var i;
const { values: l, _$litType$: c } = n, h = typeof c == "number" ? this._$AC(n) : (c.el === void 0 && (c.el = yy.createElement(uF(c.h, c.h[0]), this.options)), c);
if (((i = this._$AH) == null ? void 0 : i._$AD) === h) this._$AH.p(l);
else {
const m = new rO(h, this), D = m.u(this.options);
m.p(l), this.T(D), this._$AH = m;
}
}
_$AC(n) {
let i = vE.get(n.strings);
return i === void 0 && vE.set(n.strings, i = new yy(n)), i;
}
k(n) {
US(this._$AH) || (this._$AH = [], this._$AR());
const i = this._$AH;
let l, c = 0;
for (const h of n) c === i.length ? i.push(l = new og(this.O(gy()), this.O(gy()), this, this.options)) : l = i[c], l._$AI(h), c++;
c < i.length && (this._$AR(l && l._$AB.nextSibling, c), i.length = c);
}
_$AR(n = this._$AA.nextSibling, i) {
var l;
for ((l = this._$AP) == null ? void 0 : l.call(this, !1, !0, i); n && n !== this._$AB; ) {
const c = n.nextSibling;
n.remove(), n = c;
}
}
setConnected(n) {
var i;
this._$AM === void 0 && (this._$Cv = n, (i = this._$AP) == null || i.call(this, n));
}
}
class Sw {
get tagName() {
return this.element.tagName;
}
get _$AU() {
return this._$AM._$AU;
}
constructor(n, i, l, c, h) {
this.type = 1, this._$AH = We, this._$AN = void 0, this.element = n, this.name = i, this._$AM = c, this.options = h, l.length > 2 || l[0] !== "" || l[1] !== "" ? (this._$AH = Array(l.length - 1).fill(new String()), this.strings = l) : this._$AH = We;
}
_$AI(n, i = this, l, c) {
const h = this.strings;
let m = !1;
if (h === void 0) n = Qm(this, n, i, 0), m = !vy(n) || n !== this._$AH && n !== Vo, m && (this._$AH = n);
else {
const D = n;
let x, E;
for (n = h[0], x = 0; x < h.length - 1; x++) E = Qm(this, D[l + x], i, x), E === Vo && (E = this._$AH[x]), m || (m = !vy(E) || E !== this._$AH[x]), E === We ? n = We : n !== We && (n += (E ?? "") + h[x + 1]), this._$AH[x] = E;
}
m && !c && this.j(n);
}
j(n) {
n === We ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, n ?? "");
}
}
class aO extends Sw {
constructor() {
super(...arguments), this.type = 3;
}
j(n) {
this.element[this.name] = n === We ? void 0 : n;
}
}
class iO extends Sw {
constructor() {
super(...arguments), this.type = 4;
}
j(n) {
this.element.toggleAttribute(this.name, !!n && n !== We);
}
}
class oO extends Sw {
constructor(n, i, l, c, h) {
super(n, i, l, c, h), this.type = 5;
}
_$AI(n, i = this) {
if ((n = Qm(this, n, i, 0) ?? We) === Vo) return;
const l = this._$AH, c = n === We && l !== We || n.capture !== l.capture || n.once !== l.once || n.passive !== l.passive, h = n !== We && (l === We || c);
c && this.element.removeEventListener(this.name, this, l), h && this.element.addEventListener(this.name, this, n), this._$AH = n;
}
handleEvent(n) {
var i;
typeof this._$AH == "function" ? this._$AH.call(((i = this.options) == null ? void 0 : i.host) ?? this.element, n) : this._$AH.handleEvent(n);
}
}
class sO {
constructor(n, i, l) {
this.element = n, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = l;
}
get _$AU() {
return this._$AM._$AU;
}
_$AI(n) {
Qm(this, n);
}
}
const lO = { I: og }, yE = dw.litHtmlPolyfillSupport;
yE == null || yE(yy, og), (dw.litHtmlVersions ?? (dw.litHtmlVersions = [])).push("3.3.0");
const uO = (r, n, i) => {
const l = (i == null ? void 0 : i.renderBefore) ?? n;
let c = l._$litPart$;
if (c === void 0) {
const h = (i == null ? void 0 : i.renderBefore) ?? null;
l._$litPart$ = c = new og(n.insertBefore(gy(), h), h, void 0, i ?? {});
}
return c._$AI(r), c;
};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const pr = (r) => (n, i) => {
i !== void 0 ? i.addInitializer(() => {
customElements.define(r, n);
}) : customElements.define(r, n);
};
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const nw = globalThis, HS = nw.ShadowRoot && (nw.ShadyCSS === void 0 || nw.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, cF = Symbol(), bE = /* @__PURE__ */ new WeakMap();
let cO = class {
constructor(r, n, i) {
if (this._$cssResult$ = !0, i !== cF) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = r, this.t = n;
}
get styleSheet() {
let r = this.o;
const n = this.t;
if (HS && r === void 0) {
const i = n !== void 0 && n.length === 1;
i && (r = bE.get(n)), r === void 0 && ((this.o = r = new CSSStyleSheet()).replaceSync(this.cssText), i && bE.set(n, r));
}
return r;
}
toString() {
return this.cssText;
}
};
const dO = (r) => new cO(typeof r == "string" ? r : r + "", void 0, cF), pO = (r, n) => {
if (HS) r.adoptedStyleSheets = n.map((i) => i instanceof CSSStyleSheet ? i : i.styleSheet);
else for (const i of n) {
const l = document.createElement("style"), c = nw.litNonce;
c !== void 0 && l.setAttribute("nonce", c), l.textContent = i.cssText, r.appendChild(l);
}
}, kE = HS ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((n) => {
let i = "";
for (const l of n.cssRules) i += l.cssText;
return dO(i);
})(r) : r;
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const { is: fO, defineProperty: hO, getOwnPropertyDescriptor: mO, getOwnPropertyNames: gO, getOwnPropertySymbols: vO, getPrototypeOf: yO } = Object, Km = globalThis, wE = Km.trustedTypes, bO = wE ? wE.emptyScript : "", DE = Km.reactiveElementPolyfillSupport, py = (r, n) => r, fw = { toAttribute(r, n) {
switch (n) {
case Boolean:
r = r ? bO : null;
break;
case Object:
case Array:
r = r == null ? r : JSON.stringify(r);
}
return r;
}, fromAttribute(r, n) {
let i = r;
switch (n) {
case Boolean:
i = r !== null;
break;
case Number:
i = r === null ? null : Number(r);
break;
case Object:
case Array:
try {
i = JSON.parse(r);
} catch {
i = null;
}
}
return i;
} }, WS = (r, n) => !fO(r, n), SE = { attribute: !0, type: String, converter: fw, reflect: !1, useDefault: !1, hasChanged: WS };
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Km.litPropertyMetadata ?? (Km.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
class Mm extends HTMLElement {
static addInitializer(n) {
this._$Ei(), (this.l ?? (this.l = [])).push(n);
}
static get observedAttributes() {
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
}
static createProperty(n, i = SE) {
if (i.state && (i.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(n) && ((i = Object.create(i)).wrapped = !0), this.elementProperties.set(n, i), !i.noAccessor) {
const l = Symbol(), c = this.getPropertyDescriptor(n, l, i);
c !== void 0 && hO(this.prototype, n, c);
}
}
static getPropertyDescriptor(n, i, l) {
const { get: c, set: h } = mO(this.prototype, n) ?? { get() {
return this[i];
}, set(m) {
this[i] = m;
} };
return { get: c, set(m) {
const D = c == null ? void 0 : c.call(this);
h == null || h.call(this, m), this.requestUpdate(n, D, l);
}, configurable: !0, enumerable: !0 };
}
static getPropertyOptions(n) {
return this.elementProperties.get(n) ?? SE;
}
static _$Ei() {
if (this.hasOwnProperty(py("elementProperties"))) return;
const n = yO(this);
n.finalize(), n.l !== void 0 && (this.l = [...n.l]), this.elementProperties = new Map(n.elementProperties);
}
static finalize() {
if (this.hasOwnProperty(py("finalized"))) return;
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(py("properties"))) {
const i = this.properties, l = [...gO(i), ...vO(i)];
for (const c of l) this.createProperty(c, i[c]);
}
const n = this[Symbol.metadata];
if (n !== null) {
const i = litPropertyMetadata.get(n);
if (i !== void 0) for (const [l, c] of i) this.elementProperties.set(l, c);
}
this._$Eh = /* @__PURE__ */ new Map();
for (const [i, l] of this.elementProperties) {
const c = this._$Eu(i, l);
c !== void 0 && this._$Eh.set(c, i);
}
this.elementStyles = this.finalizeStyles(this.styles);
}
static finalizeStyles(n) {
const i = [];
if (Array.isArray(n)) {
const l = new Set(n.flat(1 / 0).reverse());
for (const c of l) i.unshift(kE(c));
} else n !== void 0 && i.push(kE(n));
return i;
}
static _$Eu(n, i) {
const l = i.attribute;
return l === !1 ? void 0 : typeof l == "string" ? l : typeof n == "string" ? n.toLowerCase() : void 0;
}
constructor() {
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
}
_$Ev() {
var n;
this._$ES = new Promise((i) => this.enableUpdating = i), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (n = this.constructor.l) == null || n.forEach((i) => i(this));
}
addController(n) {
var i;
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(n), this.renderRoot !== void 0 && this.isConnected && ((i = n.hostConnected) == null || i.call(n));
}
removeController(n) {
var i;
(i = this._$EO) == null || i.delete(n);
}
_$E_() {
const n = /* @__PURE__ */ new Map(), i = this.constructor.elementProperties;
for (const l of i.keys()) this.hasOwnProperty(l) && (n.set(l, this[l]), delete this[l]);
n.size > 0 && (this._$Ep = n);
}
createRenderRoot() {
const n = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
return pO(n, this.constructor.elementStyles), n;
}
connectedCallback() {
var n;
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (n = this._$EO) == null || n.forEach((i) => {
var l;
return (l = i.hostConnected) == null ? void 0 : l.call(i);
});
}
enableUpdating(n) {
}
disconnectedCallback() {
var n;
(n = this._$EO) == null || n.forEach((i) => {
var l;
return (l = i.hostDisconnected) == null ? void 0 : l.call(i);
});
}
attributeChangedCallback(n, i, l) {
this._$AK(n, l);
}
_$ET(n, i) {
var l;
const c = this.constructor.elementProperties.get(n), h = this.constructor._$Eu(n, c);
if (h !== void 0 && c.reflect === !0) {
const m = (((l = c.converter) == null ? void 0 : l.toAttribute) !== void 0 ? c.converter : fw).toAttribute(i, c.type);
this._$Em = n, m == null ? this.removeAttribute(h) : this.setAttribute(h, m), this._$Em = null;
}
}
_$AK(n, i) {
var l, c;
const h = this.constructor, m = h._$Eh.get(n);
if (m !== void 0 && this._$Em !== m) {
const D = h.getPropertyOptions(m), x = typeof D.converter == "function" ? { fromAttribute: D.converter } : ((l = D.converter) == null ? void 0 : l.fromAttribute) !== void 0 ? D.converter : fw;
this._$Em = m, this[m] = x.fromAttribute(i, D.type) ?? ((c = this._$Ej) == null ? void 0 : c.get(m)) ?? null, this._$Em = null;
}
}
requestUpdate(n, i, l) {
var c;
if (n !== void 0) {
const h = this.constructor, m = this[n];
if (l ?? (l = h.getPropertyOptions(n)), !((l.hasChanged ?? WS)(m, i) || l.useDefault && l.reflect && m === ((c = this._$Ej) == null ? void 0 : c.get(n)) && !this.hasAttribute(h._$Eu(n, l)))) return;
this.C(n, i, l);
}
this.isUpdatePending === !1 && (this._$ES = this._$EP());
}
C(n, i, { useDefault: l, reflect: c, wrapped: h }, m) {
l && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(n) && (this._$Ej.set(n, m ?? i ?? this[n]), h !== !0 || m !== void 0) || (this._$AL.has(n) || (this.hasUpdated || l || (i = void 0), this._$AL.set(n, i)), c === !0 && this._$Em !== n && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(n));
}
async _$EP() {
this.isUpdatePending = !0;
try {
await this._$ES;
} catch (i) {
Promise.reject(i);
}
const n = this.scheduleUpdate();
return n != null && await n, !this.isUpdatePending;
}
scheduleUpdate() {
return this.performUpdate();
}
performUpdate() {
var n;
if (!this.isUpdatePending) return;
if (!this.hasUpdated) {
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
for (const [h, m] of this._$Ep) this[h] = m;
this._$Ep = void 0;
}
const c = this.constructor.elementProperties;
if (c.size > 0) for (const [h, m] of c) {
const { wrapped: D } = m, x = this[h];
D !== !0 || this._$AL.has(h) || x === void 0 || this.C(h, void 0, m, x);
}
}
let i = !1;
const l = this._$AL;
try {
i = this.shouldUpdate(l), i ? (this.willUpdate(l), (n = this._$EO) == null || n.forEach((c) => {
var h;
return (h = c.hostUpdate) == null ? void 0 : h.call(c);
}), this.update(l)) : this._$EM();
} catch (c) {
throw i = !1, this._$EM(), c;
}
i && this._$AE(l);
}
willUpdate(n) {
}
_$AE(n) {
var i;
(i = this._$EO) == null || i.forEach((l) => {
var c;
return (c = l.hostUpdated) == null ? void 0 : c.call(l);
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(n)), this.updated(n);
}
_$EM() {
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
}
get updateComplete() {
return this.getUpdateComplete();
}
getUpdateComplete() {
return this._$ES;
}
shouldUpdate(n) {
return !0;
}
update(n) {
this._$Eq && (this._$Eq = this._$Eq.forEach((i) => this._$ET(i, this[i]))), this._$EM();
}
updated(n) {
}
firstUpdated(n) {
}
}
Mm.elementStyles = [], Mm.shadowRootOptions = { mode: "open" }, Mm[py("elementProperties")] = /* @__PURE__ */ new Map(), Mm[py("finalized")] = /* @__PURE__ */ new Map(), DE == null || DE({ ReactiveElement: Mm }), (Km.reactiveElementVersions ?? (Km.reactiveElementVersions = [])).push("2.1.0");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const kO = { attribute: !0, type: String, converter: fw, reflect: !1, hasChanged: WS }, wO = (r = kO, n, i) => {
const { kind: l, metadata: c } = i;
let h = globalThis.litPropertyMetadata.get(c);
if (h === void 0 && globalThis.litPropertyMetadata.set(c, h = /* @__PURE__ */ new Map()), l === "setter" && ((r = Object.create(r)).wrapped = !0), h.set(i.name, r), l === "accessor") {
const { name: m } = i;
return { set(D) {
const x = n.get.call(this);
n.set.call(this, D), this.requestUpdate(m, x, r);
}, init(D) {
return D !== void 0 && this.C(m, void 0, r, D), D;
} };
}
if (l === "setter") {
const { name: m } = i;
return function(D) {
const x = this[m];
n.call(this, D), this.requestUpdate(m, x, r);
};
}
throw Error("Unsupported decorator location: " + l);
};
function z(r) {
return (n, i) => typeof i == "object" ? wO(r, n, i) : ((l, c, h) => {
const m = c.hasOwnProperty(h);
return c.constructor.createProperty(h, l), m ? Object.getOwnPropertyDescriptor(c, h) : void 0;
})(r, n, i);
}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const by = globalThis;
let Xm = class extends Mm {
constructor() {
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
}
createRenderRoot() {
var r;
const n = super.createRenderRoot();
return (r = this.renderOptions).renderBefore ?? (r.renderBefore = n.firstChild), n;
}
update(r) {
const n = this.render();
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(r), this._$Do = uO(n, this.renderRoot, this.renderOptions);
}
connectedCallback() {
var r;
super.connectedCallback(), (r = this._$Do) == null || r.setConnected(!0);
}
disconnectedCallback() {
var r;
super.disconnectedCallback(), (r = this._$Do) == null || r.setConnected(!1);
}
render() {
return Vo;
}
};
var xE;
Xm._$litElement$ = !0, Xm.finalized = !0, (xE = by.litElementHydrateSupport) == null || xE.call(by, { LitElement: Xm });
const CE = by.litElementPolyfillSupport;
CE == null || CE({ LitElement: Xm });
(by.litElementVersions ?? (by.litElementVersions = [])).push("4.2.0");
var dS = { exports: {} }, Ho = {}, ID = { exports: {} }, bn = {};
/**
* @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 _E;
function DO() {
if (_E) return bn;
_E = 1;
var r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), m = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), E = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), N = Symbol.iterator;
function L(Q) {
return Q === null || typeof Q != "object" ? null : (Q =