UNPKG

@webwriter/automaton

Version:

Build, visualize, and interact with different kinds of automata (DFA, NFA, PDA).

1,104 lines (1,097 loc) 2.23 MB
var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name); var __typeError = (msg2) => { throw TypeError(msg2); }; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var __glob = (map) => (path) => { var fn = map[path]; if (fn) return fn(); throw new Error("Module not found in bundle: " + path); }; var __esm = (fn, res) => function __init() { return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; }; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __decoratorStart = (base) => [, , , __create(base?.[__knownSymbol("metadata")] ?? null)]; var __decoratorStrings = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"]; var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn; var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) }); var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]); var __runInitializers = (array, flags, self2, value) => { for (var i10 = 0, fns = array[flags >> 1], n8 = fns && fns.length; i10 < n8; i10++) flags & 1 ? fns[i10].call(self2) : value = fns[i10].call(self2, value); return value; }; var __decorateElement = (array, flags, name, decorators, target, extra) => { var fn, it, done, ctx, access, k3 = flags & 7, s5 = !!(flags & 8), p4 = !!(flags & 16); var j3 = k3 > 3 ? array.length + 1 : k3 ? s5 ? 1 : 2 : 0, key = __decoratorStrings[k3 + 5]; var initializers = k3 > 3 && (array[j3 - 1] = []), extraInitializers = array[j3] || (array[j3] = []); var desc = k3 && (!p4 && !s5 && (target = target.prototype), k3 < 5 && (k3 > 3 || !p4) && __getOwnPropDesc(k3 < 4 ? target : { get [name]() { return __privateGet(this, extra); }, set [name](x3) { return __privateSet(this, extra, x3); } }, name)); k3 ? p4 && k3 < 4 && __name(extra, (k3 > 2 ? "set " : k3 > 1 ? "get " : "") + name) : __name(target, name); for (var i10 = decorators.length - 1; i10 >= 0; i10--) { ctx = __decoratorContext(k3, name, done = {}, array[3], extraInitializers); if (k3) { ctx.static = s5, ctx.private = p4, access = ctx.access = { has: p4 ? (x3) => __privateIn(target, x3) : (x3) => name in x3 }; if (k3 ^ 3) access.get = p4 ? (x3) => (k3 ^ 1 ? __privateGet : __privateMethod)(x3, target, k3 ^ 4 ? extra : desc.get) : (x3) => x3[name]; if (k3 > 2) access.set = p4 ? (x3, y4) => __privateSet(x3, target, y4, k3 ^ 4 ? extra : desc.set) : (x3, y4) => x3[name] = y4; } it = (0, decorators[i10])(k3 ? k3 < 4 ? p4 ? extra : desc[key] : k3 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1; if (k3 ^ 4 || it === void 0) __expectFn(it) && (k3 > 4 ? initializers.unshift(it) : k3 ? p4 ? extra = it : desc[key] = it : target = it); else if (typeof it !== "object" || it === null) __typeError("Object expected"); else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn); } return k3 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p4 ? k3 ^ 4 ? extra : desc : target; }; var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); var __accessCheck = (obj, member, msg2) => member.has(obj) || __typeError("Cannot " + msg2); var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj); var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value); var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method); // node_modules/@lit/reactive-element/css-tag.js var t, e, s, o, n, r, i, S, c; var init_css_tag = __esm({ "node_modules/@lit/reactive-element/css-tag.js"() { t = globalThis; e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype; s = Symbol(); o = /* @__PURE__ */ new WeakMap(); n = class { constructor(t8, e13, o11) { if (this._$cssResult$ = true, o11 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); this.cssText = t8, this.t = e13; } get styleSheet() { let t8 = this.o; const s5 = this.t; if (e && void 0 === t8) { const e13 = void 0 !== s5 && 1 === s5.length; e13 && (t8 = o.get(s5)), void 0 === t8 && ((this.o = t8 = new CSSStyleSheet()).replaceSync(this.cssText), e13 && o.set(s5, t8)); } return t8; } toString() { return this.cssText; } }; r = (t8) => new n("string" == typeof t8 ? t8 : t8 + "", void 0, s); i = (t8, ...e13) => { const o11 = 1 === t8.length ? t8[0] : e13.reduce((e14, s5, o12) => e14 + ((t9) => { if (true === t9._$cssResult$) return t9.cssText; if ("number" == typeof t9) return t9; throw Error("Value passed to 'css' function must be a 'css' function result: " + t9 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security."); })(s5) + t8[o12 + 1], t8[0]); return new n(o11, t8, s); }; S = (s5, o11) => { if (e) s5.adoptedStyleSheets = o11.map((t8) => t8 instanceof CSSStyleSheet ? t8 : t8.styleSheet); else for (const e13 of o11) { const o12 = document.createElement("style"), n8 = t.litNonce; void 0 !== n8 && o12.setAttribute("nonce", n8), o12.textContent = e13.cssText, s5.appendChild(o12); } }; c = e ? (t8) => t8 : (t8) => t8 instanceof CSSStyleSheet ? ((t9) => { let e13 = ""; for (const s5 of t9.cssRules) e13 += s5.cssText; return r(e13); })(t8) : t8; } }); // node_modules/@lit/reactive-element/reactive-element.js var i2, e2, h, r2, o2, n2, a, c2, l, p, d, u, f, b, y; var init_reactive_element = __esm({ "node_modules/@lit/reactive-element/reactive-element.js"() { init_css_tag(); init_css_tag(); ({ is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object); a = globalThis; c2 = a.trustedTypes; l = c2 ? c2.emptyScript : ""; p = a.reactiveElementPolyfillSupport; d = (t8, s5) => t8; u = { toAttribute(t8, s5) { switch (s5) { case Boolean: t8 = t8 ? l : null; break; case Object: case Array: t8 = null == t8 ? t8 : JSON.stringify(t8); } return t8; }, fromAttribute(t8, s5) { let i10 = t8; switch (s5) { case Boolean: i10 = null !== t8; break; case Number: i10 = null === t8 ? null : Number(t8); break; case Object: case Array: try { i10 = JSON.parse(t8); } catch (t9) { i10 = null; } } return i10; } }; f = (t8, s5) => !i2(t8, s5); b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f }; Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap(); y = class extends HTMLElement { static addInitializer(t8) { this._$Ei(), (this.l ??= []).push(t8); } static get observedAttributes() { return this.finalize(), this._$Eh && [...this._$Eh.keys()]; } static createProperty(t8, s5 = b) { if (s5.state && (s5.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t8) && ((s5 = Object.create(s5)).wrapped = true), this.elementProperties.set(t8, s5), !s5.noAccessor) { const i10 = Symbol(), h4 = this.getPropertyDescriptor(t8, i10, s5); void 0 !== h4 && e2(this.prototype, t8, h4); } } static getPropertyDescriptor(t8, s5, i10) { const { get: e13, set: r8 } = h(this.prototype, t8) ?? { get() { return this[s5]; }, set(t9) { this[s5] = t9; } }; return { get: e13, set(s6) { const h4 = e13?.call(this); r8?.call(this, s6), this.requestUpdate(t8, h4, i10); }, configurable: true, enumerable: true }; } static getPropertyOptions(t8) { return this.elementProperties.get(t8) ?? b; } static _$Ei() { if (this.hasOwnProperty(d("elementProperties"))) return; const t8 = n2(this); t8.finalize(), void 0 !== t8.l && (this.l = [...t8.l]), this.elementProperties = new Map(t8.elementProperties); } static finalize() { if (this.hasOwnProperty(d("finalized"))) return; if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) { const t9 = this.properties, s5 = [...r2(t9), ...o2(t9)]; for (const i10 of s5) this.createProperty(i10, t9[i10]); } const t8 = this[Symbol.metadata]; if (null !== t8) { const s5 = litPropertyMetadata.get(t8); if (void 0 !== s5) for (const [t9, i10] of s5) this.elementProperties.set(t9, i10); } this._$Eh = /* @__PURE__ */ new Map(); for (const [t9, s5] of this.elementProperties) { const i10 = this._$Eu(t9, s5); void 0 !== i10 && this._$Eh.set(i10, t9); } this.elementStyles = this.finalizeStyles(this.styles); } static finalizeStyles(s5) { const i10 = []; if (Array.isArray(s5)) { const e13 = new Set(s5.flat(1 / 0).reverse()); for (const s6 of e13) i10.unshift(c(s6)); } else void 0 !== s5 && i10.push(c(s5)); return i10; } static _$Eu(t8, s5) { const i10 = s5.attribute; return false === i10 ? void 0 : "string" == typeof i10 ? i10 : "string" == typeof t8 ? t8.toLowerCase() : void 0; } constructor() { super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev(); } _$Ev() { this._$ES = new Promise((t8) => this.enableUpdating = t8), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t8) => t8(this)); } addController(t8) { (this._$EO ??= /* @__PURE__ */ new Set()).add(t8), void 0 !== this.renderRoot && this.isConnected && t8.hostConnected?.(); } removeController(t8) { this._$EO?.delete(t8); } _$E_() { const t8 = /* @__PURE__ */ new Map(), s5 = this.constructor.elementProperties; for (const i10 of s5.keys()) this.hasOwnProperty(i10) && (t8.set(i10, this[i10]), delete this[i10]); t8.size > 0 && (this._$Ep = t8); } createRenderRoot() { const t8 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); return S(t8, this.constructor.elementStyles), t8; } connectedCallback() { this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t8) => t8.hostConnected?.()); } enableUpdating(t8) { } disconnectedCallback() { this._$EO?.forEach((t8) => t8.hostDisconnected?.()); } attributeChangedCallback(t8, s5, i10) { this._$AK(t8, i10); } _$ET(t8, s5) { const i10 = this.constructor.elementProperties.get(t8), e13 = this.constructor._$Eu(t8, i10); if (void 0 !== e13 && true === i10.reflect) { const h4 = (void 0 !== i10.converter?.toAttribute ? i10.converter : u).toAttribute(s5, i10.type); this._$Em = t8, null == h4 ? this.removeAttribute(e13) : this.setAttribute(e13, h4), this._$Em = null; } } _$AK(t8, s5) { const i10 = this.constructor, e13 = i10._$Eh.get(t8); if (void 0 !== e13 && this._$Em !== e13) { const t9 = i10.getPropertyOptions(e13), h4 = "function" == typeof t9.converter ? { fromAttribute: t9.converter } : void 0 !== t9.converter?.fromAttribute ? t9.converter : u; this._$Em = e13, this[e13] = h4.fromAttribute(s5, t9.type) ?? this._$Ej?.get(e13) ?? null, this._$Em = null; } } requestUpdate(t8, s5, i10) { if (void 0 !== t8) { const e13 = this.constructor, h4 = this[t8]; if (i10 ??= e13.getPropertyOptions(t8), !((i10.hasChanged ?? f)(h4, s5) || i10.useDefault && i10.reflect && h4 === this._$Ej?.get(t8) && !this.hasAttribute(e13._$Eu(t8, i10)))) return; this.C(t8, s5, i10); } false === this.isUpdatePending && (this._$ES = this._$EP()); } C(t8, s5, { useDefault: i10, reflect: e13, wrapped: h4 }, r8) { i10 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t8) && (this._$Ej.set(t8, r8 ?? s5 ?? this[t8]), true !== h4 || void 0 !== r8) || (this._$AL.has(t8) || (this.hasUpdated || i10 || (s5 = void 0), this._$AL.set(t8, s5)), true === e13 && this._$Em !== t8 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t8)); } async _$EP() { this.isUpdatePending = true; try { await this._$ES; } catch (t9) { Promise.reject(t9); } const t8 = this.scheduleUpdate(); return null != t8 && await t8, !this.isUpdatePending; } scheduleUpdate() { return this.performUpdate(); } performUpdate() { if (!this.isUpdatePending) return; if (!this.hasUpdated) { if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) { for (const [t10, s6] of this._$Ep) this[t10] = s6; this._$Ep = void 0; } const t9 = this.constructor.elementProperties; if (t9.size > 0) for (const [s6, i10] of t9) { const { wrapped: t10 } = i10, e13 = this[s6]; true !== t10 || this._$AL.has(s6) || void 0 === e13 || this.C(s6, void 0, i10, e13); } } let t8 = false; const s5 = this._$AL; try { t8 = this.shouldUpdate(s5), t8 ? (this.willUpdate(s5), this._$EO?.forEach((t9) => t9.hostUpdate?.()), this.update(s5)) : this._$EM(); } catch (s6) { throw t8 = false, this._$EM(), s6; } t8 && this._$AE(s5); } willUpdate(t8) { } _$AE(t8) { this._$EO?.forEach((t9) => t9.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t8)), this.updated(t8); } _$EM() { this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false; } get updateComplete() { return this.getUpdateComplete(); } getUpdateComplete() { return this._$ES; } shouldUpdate(t8) { return true; } update(t8) { this._$Eq &&= this._$Eq.forEach((t9) => this._$ET(t9, this[t9])), this._$EM(); } updated(t8) { } firstUpdated(t8) { } }; y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ??= []).push("2.1.0"); } }); // node_modules/lit-html/lit-html.js function P(t8, i10) { if (!a2(t8) || !t8.hasOwnProperty("raw")) throw Error("invalid template strings array"); return void 0 !== s2 ? s2.createHTML(i10) : i10; } function S2(t8, i10, s5 = t8, e13) { if (i10 === T) return i10; let h4 = void 0 !== e13 ? s5._$Co?.[e13] : s5._$Cl; const o11 = c3(i10) ? void 0 : i10._$litDirective$; return h4?.constructor !== o11 && (h4?._$AO?.(false), void 0 === o11 ? h4 = void 0 : (h4 = new o11(t8), h4._$AT(t8, s5, e13)), void 0 !== e13 ? (s5._$Co ??= [])[e13] = h4 : s5._$Cl = h4), void 0 !== h4 && (i10 = S2(t8, h4._$AS(t8, i10.values), h4, e13)), i10; } var t2, i3, s2, e3, h2, o3, n3, r3, l2, c3, a2, u2, d2, f2, v, _, m, p2, g, $, y2, x, b2, w, T, E, A, C, V, N, M, R, k, H, I, L, z, Z, j, B; var init_lit_html = __esm({ "node_modules/lit-html/lit-html.js"() { t2 = globalThis; i3 = t2.trustedTypes; s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t8) => t8 }) : void 0; e3 = "$lit$"; h2 = `lit$${Math.random().toFixed(9).slice(2)}$`; o3 = "?" + h2; n3 = `<${o3}>`; r3 = document; l2 = () => r3.createComment(""); c3 = (t8) => null === t8 || "object" != typeof t8 && "function" != typeof t8; a2 = Array.isArray; u2 = (t8) => a2(t8) || "function" == typeof t8?.[Symbol.iterator]; d2 = "[ \n\f\r]"; f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g; v = /-->/g; _ = />/g; m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`, "g"); p2 = /'/g; g = /"/g; $ = /^(?:script|style|textarea|title)$/i; y2 = (t8) => (i10, ...s5) => ({ _$litType$: t8, strings: i10, values: s5 }); x = y2(1); b2 = y2(2); w = y2(3); T = Symbol.for("lit-noChange"); E = Symbol.for("lit-nothing"); A = /* @__PURE__ */ new WeakMap(); C = r3.createTreeWalker(r3, 129); V = (t8, i10) => { const s5 = t8.length - 1, o11 = []; let r8, l6 = 2 === i10 ? "<svg>" : 3 === i10 ? "<math>" : "", c6 = f2; for (let i11 = 0; i11 < s5; i11++) { const s6 = t8[i11]; let a5, u6, d4 = -1, y4 = 0; for (; y4 < s6.length && (c6.lastIndex = y4, u6 = c6.exec(s6), null !== u6); ) y4 = c6.lastIndex, c6 === f2 ? "!--" === u6[1] ? c6 = v : void 0 !== u6[1] ? c6 = _ : void 0 !== u6[2] ? ($.test(u6[2]) && (r8 = RegExp("</" + u6[2], "g")), c6 = m) : void 0 !== u6[3] && (c6 = m) : c6 === m ? ">" === u6[0] ? (c6 = r8 ?? f2, d4 = -1) : void 0 === u6[1] ? d4 = -2 : (d4 = c6.lastIndex - u6[2].length, a5 = u6[1], c6 = void 0 === u6[3] ? m : '"' === u6[3] ? g : p2) : c6 === g || c6 === p2 ? c6 = m : c6 === v || c6 === _ ? c6 = f2 : (c6 = m, r8 = void 0); const x3 = c6 === m && t8[i11 + 1].startsWith("/>") ? " " : ""; l6 += c6 === f2 ? s6 + n3 : d4 >= 0 ? (o11.push(a5), s6.slice(0, d4) + e3 + s6.slice(d4) + h2 + x3) : s6 + h2 + (-2 === d4 ? i11 : x3); } return [P(t8, l6 + (t8[s5] || "<?>") + (2 === i10 ? "</svg>" : 3 === i10 ? "</math>" : "")), o11]; }; N = class _N2 { constructor({ strings: t8, _$litType$: s5 }, n8) { let r8; this.parts = []; let c6 = 0, a5 = 0; const u6 = t8.length - 1, d4 = this.parts, [f5, v3] = V(t8, s5); if (this.el = _N2.createElement(f5, n8), C.currentNode = this.el.content, 2 === s5 || 3 === s5) { const t9 = this.el.content.firstChild; t9.replaceWith(...t9.childNodes); } for (; null !== (r8 = C.nextNode()) && d4.length < u6; ) { if (1 === r8.nodeType) { if (r8.hasAttributes()) for (const t9 of r8.getAttributeNames()) if (t9.endsWith(e3)) { const i10 = v3[a5++], s6 = r8.getAttribute(t9).split(h2), e13 = /([.?@])?(.*)/.exec(i10); d4.push({ type: 1, index: c6, name: e13[2], strings: s6, ctor: "." === e13[1] ? H : "?" === e13[1] ? I : "@" === e13[1] ? L : k }), r8.removeAttribute(t9); } else t9.startsWith(h2) && (d4.push({ type: 6, index: c6 }), r8.removeAttribute(t9)); if ($.test(r8.tagName)) { const t9 = r8.textContent.split(h2), s6 = t9.length - 1; if (s6 > 0) { r8.textContent = i3 ? i3.emptyScript : ""; for (let i10 = 0; i10 < s6; i10++) r8.append(t9[i10], l2()), C.nextNode(), d4.push({ type: 2, index: ++c6 }); r8.append(t9[s6], l2()); } } } else if (8 === r8.nodeType) if (r8.data === o3) d4.push({ type: 2, index: c6 }); else { let t9 = -1; for (; -1 !== (t9 = r8.data.indexOf(h2, t9 + 1)); ) d4.push({ type: 7, index: c6 }), t9 += h2.length - 1; } c6++; } } static createElement(t8, i10) { const s5 = r3.createElement("template"); return s5.innerHTML = t8, s5; } }; M = class { constructor(t8, i10) { this._$AV = [], this._$AN = void 0, this._$AD = t8, this._$AM = i10; } get parentNode() { return this._$AM.parentNode; } get _$AU() { return this._$AM._$AU; } u(t8) { const { el: { content: i10 }, parts: s5 } = this._$AD, e13 = (t8?.creationScope ?? r3).importNode(i10, true); C.currentNode = e13; let h4 = C.nextNode(), o11 = 0, n8 = 0, l6 = s5[0]; for (; void 0 !== l6; ) { if (o11 === l6.index) { let i11; 2 === l6.type ? i11 = new R(h4, h4.nextSibling, this, t8) : 1 === l6.type ? i11 = new l6.ctor(h4, l6.name, l6.strings, this, t8) : 6 === l6.type && (i11 = new z(h4, this, t8)), this._$AV.push(i11), l6 = s5[++n8]; } o11 !== l6?.index && (h4 = C.nextNode(), o11++); } return C.currentNode = r3, e13; } p(t8) { let i10 = 0; for (const s5 of this._$AV) void 0 !== s5 && (void 0 !== s5.strings ? (s5._$AI(t8, s5, i10), i10 += s5.strings.length - 2) : s5._$AI(t8[i10])), i10++; } }; R = class _R2 { get _$AU() { return this._$AM?._$AU ?? this._$Cv; } constructor(t8, i10, s5, e13) { this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t8, this._$AB = i10, this._$AM = s5, this.options = e13, this._$Cv = e13?.isConnected ?? true; } get parentNode() { let t8 = this._$AA.parentNode; const i10 = this._$AM; return void 0 !== i10 && 11 === t8?.nodeType && (t8 = i10.parentNode), t8; } get startNode() { return this._$AA; } get endNode() { return this._$AB; } _$AI(t8, i10 = this) { t8 = S2(this, t8, i10), c3(t8) ? t8 === E || null == t8 || "" === t8 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t8 !== this._$AH && t8 !== T && this._(t8) : void 0 !== t8._$litType$ ? this.$(t8) : void 0 !== t8.nodeType ? this.T(t8) : u2(t8) ? this.k(t8) : this._(t8); } O(t8) { return this._$AA.parentNode.insertBefore(t8, this._$AB); } T(t8) { this._$AH !== t8 && (this._$AR(), this._$AH = this.O(t8)); } _(t8) { this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t8 : this.T(r3.createTextNode(t8)), this._$AH = t8; } $(t8) { const { values: i10, _$litType$: s5 } = t8, e13 = "number" == typeof s5 ? this._$AC(t8) : (void 0 === s5.el && (s5.el = N.createElement(P(s5.h, s5.h[0]), this.options)), s5); if (this._$AH?._$AD === e13) this._$AH.p(i10); else { const t9 = new M(e13, this), s6 = t9.u(this.options); t9.p(i10), this.T(s6), this._$AH = t9; } } _$AC(t8) { let i10 = A.get(t8.strings); return void 0 === i10 && A.set(t8.strings, i10 = new N(t8)), i10; } k(t8) { a2(this._$AH) || (this._$AH = [], this._$AR()); const i10 = this._$AH; let s5, e13 = 0; for (const h4 of t8) e13 === i10.length ? i10.push(s5 = new _R2(this.O(l2()), this.O(l2()), this, this.options)) : s5 = i10[e13], s5._$AI(h4), e13++; e13 < i10.length && (this._$AR(s5 && s5._$AB.nextSibling, e13), i10.length = e13); } _$AR(t8 = this._$AA.nextSibling, i10) { for (this._$AP?.(false, true, i10); t8 && t8 !== this._$AB; ) { const i11 = t8.nextSibling; t8.remove(), t8 = i11; } } setConnected(t8) { void 0 === this._$AM && (this._$Cv = t8, this._$AP?.(t8)); } }; k = class { get tagName() { return this.element.tagName; } get _$AU() { return this._$AM._$AU; } constructor(t8, i10, s5, e13, h4) { this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t8, this.name = i10, this._$AM = e13, this.options = h4, s5.length > 2 || "" !== s5[0] || "" !== s5[1] ? (this._$AH = Array(s5.length - 1).fill(new String()), this.strings = s5) : this._$AH = E; } _$AI(t8, i10 = this, s5, e13) { const h4 = this.strings; let o11 = false; if (void 0 === h4) t8 = S2(this, t8, i10, 0), o11 = !c3(t8) || t8 !== this._$AH && t8 !== T, o11 && (this._$AH = t8); else { const e14 = t8; let n8, r8; for (t8 = h4[0], n8 = 0; n8 < h4.length - 1; n8++) r8 = S2(this, e14[s5 + n8], i10, n8), r8 === T && (r8 = this._$AH[n8]), o11 ||= !c3(r8) || r8 !== this._$AH[n8], r8 === E ? t8 = E : t8 !== E && (t8 += (r8 ?? "") + h4[n8 + 1]), this._$AH[n8] = r8; } o11 && !e13 && this.j(t8); } j(t8) { t8 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t8 ?? ""); } }; H = class extends k { constructor() { super(...arguments), this.type = 3; } j(t8) { this.element[this.name] = t8 === E ? void 0 : t8; } }; I = class extends k { constructor() { super(...arguments), this.type = 4; } j(t8) { this.element.toggleAttribute(this.name, !!t8 && t8 !== E); } }; L = class extends k { constructor(t8, i10, s5, e13, h4) { super(t8, i10, s5, e13, h4), this.type = 5; } _$AI(t8, i10 = this) { if ((t8 = S2(this, t8, i10, 0) ?? E) === T) return; const s5 = this._$AH, e13 = t8 === E && s5 !== E || t8.capture !== s5.capture || t8.once !== s5.once || t8.passive !== s5.passive, h4 = t8 !== E && (s5 === E || e13); e13 && this.element.removeEventListener(this.name, this, s5), h4 && this.element.addEventListener(this.name, this, t8), this._$AH = t8; } handleEvent(t8) { "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t8) : this._$AH.handleEvent(t8); } }; z = class { constructor(t8, i10, s5) { this.element = t8, this.type = 6, this._$AN = void 0, this._$AM = i10, this.options = s5; } get _$AU() { return this._$AM._$AU; } _$AI(t8) { S2(this, t8); } }; Z = { M: e3, P: h2, A: o3, C: 1, L: V, R: M, D: u2, V: S2, I: R, H: k, N: I, U: L, B: H, F: z }; j = t2.litHtmlPolyfillSupport; j?.(N, R), (t2.litHtmlVersions ??= []).push("3.3.0"); B = (t8, i10, s5) => { const e13 = s5?.renderBefore ?? i10; let h4 = e13._$litPart$; if (void 0 === h4) { const t9 = s5?.renderBefore ?? null; e13._$litPart$ = h4 = new R(i10.insertBefore(l2(), t9), t9, void 0, s5 ?? {}); } return h4._$AI(t8), h4; }; } }); // node_modules/lit-element/lit-element.js var s3, i4, o4; var init_lit_element = __esm({ "node_modules/lit-element/lit-element.js"() { init_reactive_element(); init_reactive_element(); init_lit_html(); init_lit_html(); s3 = globalThis; i4 = class extends y { constructor() { super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0; } createRenderRoot() { const t8 = super.createRenderRoot(); return this.renderOptions.renderBefore ??= t8.firstChild, t8; } update(t8) { const r8 = this.render(); this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t8), this._$Do = B(r8, this.renderRoot, this.renderOptions); } connectedCallback() { super.connectedCallback(), this._$Do?.setConnected(true); } disconnectedCallback() { super.disconnectedCallback(), this._$Do?.setConnected(false); } render() { return T; } }; i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 }); o4 = s3.litElementPolyfillSupport; o4?.({ LitElement: i4 }); (s3.litElementVersions ??= []).push("4.2.0"); } }); // node_modules/lit-html/is-server.js var init_is_server = __esm({ "node_modules/lit-html/is-server.js"() { } }); // node_modules/lit/index.js var init_lit = __esm({ "node_modules/lit/index.js"() { init_reactive_element(); init_lit_html(); init_lit_element(); init_is_server(); } }); // node_modules/vis-data/peer/umd/vis-data.js var require_vis_data = __commonJS({ "node_modules/vis-data/peer/umd/vis-data.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.vis = global2.vis || {})); })(exports, function(exports2) { function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; function getDefaultExportFromCjs(x3) { return x3 && x3.__esModule && Object.prototype.hasOwnProperty.call(x3, "default") ? x3["default"] : x3; } var defineProperty$f = { exports: {} }; var check = function(it) { return it && it.Math === Math && it; }; var global$p = ( // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback /* @__PURE__ */ function() { return this; }() || commonjsGlobal || Function("return this")() ); var fails$u = function(exec2) { try { return !!exec2(); } catch (error) { return true; } }; var fails$t = fails$u; var functionBindNative = !fails$t(function() { var test2 = function() { }.bind(); return typeof test2 != "function" || test2.hasOwnProperty("prototype"); }); var NATIVE_BIND$4 = functionBindNative; var FunctionPrototype$4 = Function.prototype; var apply$6 = FunctionPrototype$4.apply; var call$k = FunctionPrototype$4.call; var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$4 ? call$k.bind(apply$6) : function() { return call$k.apply(apply$6, arguments); }); var NATIVE_BIND$3 = functionBindNative; var FunctionPrototype$3 = Function.prototype; var call$j = FunctionPrototype$3.call; var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$3.bind.bind(call$j, call$j); var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function(fn) { return function() { return call$j.apply(fn, arguments); }; }; var uncurryThis$q = functionUncurryThis; var toString$9 = uncurryThis$q({}.toString); var stringSlice$1 = uncurryThis$q("".slice); var classofRaw$2 = function(it) { return stringSlice$1(toString$9(it), 8, -1); }; var classofRaw$1 = classofRaw$2; var uncurryThis$p = functionUncurryThis; var functionUncurryThisClause = function(fn) { if (classofRaw$1(fn) === "Function") return uncurryThis$p(fn); }; var documentAll$2 = typeof document == "object" && document.all; var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0; var documentAll_1 = { all: documentAll$2, IS_HTMLDDA }; var $documentAll$1 = documentAll_1; var documentAll$1 = $documentAll$1.all; var isCallable$m = $documentAll$1.IS_HTMLDDA ? function(argument) { return typeof argument == "function" || argument === documentAll$1; } : function(argument) { return typeof argument == "function"; }; var objectGetOwnPropertyDescriptor = {}; var fails$s = fails$u; var descriptors = !fails$s(function() { return Object.defineProperty({}, 1, { get: function() { return 7; } })[1] !== 7; }); var NATIVE_BIND$2 = functionBindNative; var call$i = Function.prototype.call; var functionCall = NATIVE_BIND$2 ? call$i.bind(call$i) : function() { return call$i.apply(call$i, arguments); }; var objectPropertyIsEnumerable = {}; var $propertyIsEnumerable$1 = {}.propertyIsEnumerable; var getOwnPropertyDescriptor$7 = Object.getOwnPropertyDescriptor; var NASHORN_BUG = getOwnPropertyDescriptor$7 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1); objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V3) { var descriptor = getOwnPropertyDescriptor$7(this, V3); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable$1; var createPropertyDescriptor$7 = function(bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value }; }; var uncurryThis$o = functionUncurryThis; var fails$r = fails$u; var classof$f = classofRaw$2; var $Object$4 = Object; var split = uncurryThis$o("".split); var indexedObject = fails$r(function() { return !$Object$4("z").propertyIsEnumerable(0); }) ? function(it) { return classof$f(it) === "String" ? split(it, "") : $Object$4(it); } : $Object$4; var isNullOrUndefined$6 = function(it) { return it === null || it === void 0; }; var isNullOrUndefined$5 = isNullOrUndefined$6; var $TypeError$g = TypeError; var requireObjectCoercible$3 = function(it) { if (isNullOrUndefined$5(it)) throw new $TypeError$g("Can't call method on " + it); return it; }; var IndexedObject$3 = indexedObject; var requireObjectCoercible$2 = requireObjectCoercible$3; var toIndexedObject$a = function(it) { return IndexedObject$3(requireObjectCoercible$2(it)); }; var isCallable$l = isCallable$m; var $documentAll = documentAll_1; var documentAll = $documentAll.all; var isObject$h = $documentAll.IS_HTMLDDA ? function(it) { return typeof it == "object" ? it !== null : isCallable$l(it) || it === documentAll; } : function(it) { return typeof it == "object" ? it !== null : isCallable$l(it); }; var path$o = {}; var path$n = path$o; var global$o = global$p; var isCallable$k = isCallable$m; var aFunction = function(variable) { return isCallable$k(variable) ? variable : void 0; }; var getBuiltIn$f = function(namespace, method2) { return arguments.length < 2 ? aFunction(path$n[namespace]) || aFunction(global$o[namespace]) : path$n[namespace] && path$n[namespace][method2] || global$o[namespace] && global$o[namespace][method2]; }; var uncurryThis$n = functionUncurryThis; var objectIsPrototypeOf = uncurryThis$n({}.isPrototypeOf); var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || ""; var global$n = global$p; var userAgent$5 = engineUserAgent; var process$3 = global$n.process; var Deno$1 = global$n.Deno; var versions2 = process$3 && process$3.versions || Deno$1 && Deno$1.version; var v8 = versions2 && versions2.v8; var match, version2; if (v8) { match = v8.split("."); version2 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); } if (!version2 && userAgent$5) { match = userAgent$5.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent$5.match(/Chrome\/(\d+)/); if (match) version2 = +match[1]; } } var engineV8Version = version2; var V8_VERSION$3 = engineV8Version; var fails$q = fails$u; var global$m = global$p; var $String$5 = global$m.String; var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$q(function() { var symbol2 = Symbol("symbol detection"); return !$String$5(symbol2) || !(Object(symbol2) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41; }); var NATIVE_SYMBOL$5 = symbolConstructorDetection; var useSymbolAsUid = NATIVE_SYMBOL$5 && !Symbol.sham && typeof Symbol.iterator == "symbol"; var getBuiltIn$e = getBuiltIn$f; var isCallable$j = isCallable$m; var isPrototypeOf$k = objectIsPrototypeOf; var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; var $Object$3 = Object; var isSymbol$5 = USE_SYMBOL_AS_UID$1 ? function(it) { return typeof it == "symbol"; } : function(it) { var $Symbol2 = getBuiltIn$e("Symbol"); return isCallable$j($Symbol2) && isPrototypeOf$k($Symbol2.prototype, $Object$3(it)); }; var $String$4 = String; var tryToString$6 = function(argument) { try { return $String$4(argument); } catch (error) { return "Object"; } }; var isCallable$i = isCallable$m; var tryToString$5 = tryToString$6; var $TypeError$f = TypeError; var aCallable$e = function(argument) { if (isCallable$i(argument)) return argument; throw new $TypeError$f(tryToString$5(argument) + " is not a function"); }; var aCallable$d = aCallable$e; var isNullOrUndefined$4 = isNullOrUndefined$6; var getMethod$3 = function(V3, P3) { var func = V3[P3]; return isNullOrUndefined$4(func) ? void 0 : aCallable$d(func); }; var call$h = functionCall; var isCallable$h = isCallable$m; var isObject$g = isObject$h; var $TypeError$e = TypeError; var ordinaryToPrimitive$1 = function(input, pref) { var fn, val; if (pref === "string" && isCallable$h(fn = input.toString) && !isObject$g(val = call$h(fn, input))) return val; if (isCallable$h(fn = input.valueOf) && !isObject$g(val = call$h(fn, input))) return val; if (pref !== "string" && isCallable$h(fn = input.toString) && !isObject$g(val = call$h(fn, input))) return val; throw new $TypeError$e("Can't convert object to primitive value"); }; var shared$7 = { exports: {} }; var isPure = true; var global$l = global$p; var defineProperty$e = Object.defineProperty; var defineGlobalProperty$1 = function(key, value) { try { defineProperty$e(global$l, key, { value, configurable: true, writable: true }); } catch (error) { global$l[key] = value; } return value; }; var global$k = global$p; var defineGlobalProperty = defineGlobalProperty$1; var SHARED = "__core-js_shared__"; var store$3 = global$k[SHARED] || defineGlobalProperty(SHARED, {}); var sharedStore = store$3; var store$2 = sharedStore; (shared$7.exports = function(key, value) { return store$2[key] || (store$2[key] = value !== void 0 ? value : {}); })("versions", []).push({ version: "3.33.2", mode: "pure", copyright: "\xA9 2014-2023 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE", source: "https://github.com/zloirock/core-js" }); var sharedExports = shared$7.exports; var requireObjectCoercible$1 = requireObjectCoercible$3; var $Object$2 = Object; var toObject$e = function(argument) { return $Object$2(requireObjectCoercible$1(argument)); }; var uncurryThis$m = functionUncurryThis; var toObject$d = toObject$e; var hasOwnProperty = uncurryThis$m({}.hasOwnProperty); var hasOwnProperty_1 = Object.hasOwn || function hasOwn2(it, key) { return hasOwnProperty(toObject$d(it), key); }; var uncurryThis$l = functionUncurryThis; var id$1 = 0; var postfix = Math.random(); var toString$8 = uncurryThis$l(1 .toString); var uid$4 = function(key) { return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$8(++id$1 + postfix, 36); }; var global$j = global$p; var shared$6 = sharedExports; var hasOwn$j = hasOwnProperty_1; var uid$3 = uid$4; var NATIVE_SYMBOL$4 = symbolConstructorDetection; var USE_SYMBOL_AS_UID = useSymbolAsUid; var Symbol$3 = global$j.Symbol; var WellKnownSymbolsStore$2 = shared$6("wks"); var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$3["for"] || Symbol$3 : Symbol$3 && Symbol$3.withoutSetter || uid$3; var wellKnownSymbol$n = function(name) { if (!hasOwn$j(WellKnownSymbolsStore$2, name)) { WellKnownSymbolsStore$2[name] = NATIVE_SYMBOL$4 && hasOwn$j(Symbol$3, name) ? Symbol$3[name] : createWellKnownSymbol("Symbol." + name); } return WellKnownSymbolsStore$2[name]; }; var call$g = functionCall; var isObject$f = isObject$h; var isSymbol$4 = isSymbol$5; var getMethod$2 = getMethod$3; var ordinaryToPrimitive = ordinaryToPrimitive$1; var wellKnownSymbol$m = wellKnownSymbol$n; var $TypeError$d = TypeError; var TO_PRIMITIVE = wellKnownSymbol$m("toPrimitive"); var toPrimitive$6 = function(input, pref) { if (!isObject$f(input) || isSymbol$4(input)) return input; var exoticToPrim = getMethod$2(input, TO_PRIMITIVE); var result; if (exoticToPrim) { if (pref === void 0) pref = "default"; result = call$g(exoticToPrim, input, pref); if (!isObject$f(result) || isSymbol$4(result)) return result; throw new $TypeError$d("Can't convert object to primitive value"); } if (pref === void 0) pref = "number"; return ordinaryToPrimitive(input, pref); }; var toPrimitive$5 = toPrimitive$6; var isSymbol$3 = isSymbol$5; var toPropertyKey$4 = function(argument) { var key = toPrimitive$5(argument, "string"); return isSymbol$3(key) ? key : key + ""; }; var global$i = global$p; var isObject$e = isObject$h; var document$3 = global$i.document; var EXISTS$1 = isObject$e(document$3) && isObject$e(document$3.createElement); var documentCreateElement$1 = function(it) { return EXISTS$1 ? document$3.createElement(it) : {}; }; var DESCRIPTORS$h = descriptors; var fails$p = fails$u; var createElement$1 = documentCreateElement$1; var ie8DomDefine = !DESCRIPTORS$h && !fails$p(function() { return Object.defineProperty(createElement$1("div"), "a", { get: function() { return 7; } }).a !== 7; }); var DESCRIPTORS$g = descriptors; var call$f = functionCall; var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable; var createPropertyDescriptor$6 = createPropertyDescriptor$7; var toIndexedObject$9 = toIndexedObject$a; var toPropertyKey$3 = toPropertyKey$4; var hasOwn$i = hasOwnProperty_1; var IE8_DOM_DEFINE$1 = ie8DomDefine; var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor; objectGetOwnPropertyDescriptor.f = DESCRIPTORS$g ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor2(O, P3) { O = toIndexedObject$9(O); P3 = toPropertyKey$3(P3); if (IE8_DOM_DEFINE$1) try { return $getOwnPropertyDescriptor$2(O, P3); } catch (error) { } if (hasOwn$i(O, P3)) return createPropertyDescriptor$6(!call$f(propertyIsEnumerableModule$2.f, O, P3), O[P3]); }; var fails$o = fails$u; var isCallable$g = isCallable$m; var replacement = /#|\.prototype\./; var isForced$2 = function(feature, detection) { var value = data[normalize(feature)]; return value === POLYFILL ? true : value === NATIVE ? false : isCallable$g(detection) ? fails$o(detection) : !!detection; }; var normalize = isForced$2.normalize = function(string) { return String(string).replace(replacement, ".").toLowerCase(); }; var data = isForced$2.data = {}; var NATIVE = isForced$2.NATIVE = "N"; var POLYFILL = isForced$2.POLYFILL = "P"; var isForced_1 = isForced$2; var uncurryThis$k = functionUncurryThisClause; var aCallable$c = aCallable$e; var NATIVE_BIND$1 = functionBindNative; var bind$i = uncurryThis$k(uncurryThis$k.bind); var functionBindContext = function(fn, that) { aCallable$c(fn); return that === void 0 ? fn : NATIVE_BIND$1 ? bind$i(fn, that) : function() { return fn.apply(that, arguments); }; }; var objectDefineProperty = {}; var DESCRIPTORS$f = descriptors; var fails$n = fails$u; var v8PrototypeDefineBug = DESCRIPTORS$f && fails$n(function() { return Object.defineProperty(function() { }, "prototype", { value: 42, writable: false }).prototype !== 42; }); var isObject$d = isObject$h; var $String$3 = String; var $TypeError$c = TypeError; var anObject$d = function(argument) { if (isObject$d(argument)) return argument; throw new $TypeError$c($String$3(argument) + " is not an object"); }; var DESCRIPTORS$e = descriptors; var IE8_DOM_DEFINE = ie8DomDefine; var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; var anObject$c = anObject$d; var toPropertyKey$2 = toPropertyKey$4; var $TypeError$b = TypeError; var $defineProperty$1 = Object.defineProperty; var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; var ENUMERABLE = "enumerable"; var CONFIGURABLE$1 = "configurable"; var WRITABLE = "writable"; objectDefineProperty.f = DESCRIPTORS$e ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty2(O, P3, Attributes) { anObject$c(O); P3 = toPropertyKey$2(P3); anObject$c(Attributes); if (typeof O === "function" && P3 === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { var current = $getOwnPropertyDescriptor$1(O, P3); if (current && current[WRITABLE]) { O[P3] = Attributes.value; Attributes = { configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1], enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], writable: false }; } } return $defineProperty$1(O, P3, Attributes); } : $defineProperty$1 : function defineProperty2(O, P3, Attributes) { anObject$c(O); P3 = toPropertyKey$2(P3); anObject$c(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty$1(O, P3, Attributes); } catch (error) { } if ("get" in Attributes || "set" in Attributes) throw new $TypeError$b("Accessors not supported"); if ("value" in Attributes) O[P3] = Attributes.value; return O; }; var D