UNPKG

@deltablot/tg-oss-ove-umd

Version:
1,242 lines (1,236 loc) 7.39 MB
var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __pow = Math.pow; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var __objRest = (source, exclude) => { var target = {}; for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop]; if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) { if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop]; } return target; }; var __publicField = (obj, key, value) => { __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); return value; }; var __async = (__this, __arguments, generator) => { return new Promise((resolve, reject) => { var fulfilled = (value) => { try { step(generator.next(value)); } catch (e) { reject(e); } }; var rejected = (value) => { try { step(generator.throw(value)); } catch (e) { reject(e); } }; var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); step((generator = generator.apply(__this, __arguments)).next()); }); }; (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.ove = {})); })(this, function(exports2) { var _q, _r, _s, _t, _u, _v, _y, _B, _I; "use strict"; function _mergeNamespaces(n2, m2) { for (var i2 = 0; i2 < m2.length; i2++) { const e2 = m2[i2]; if (typeof e2 !== "string" && !Array.isArray(e2)) { for (const k2 in e2) { if (k2 !== "default" && !(k2 in n2)) { const d2 = Object.getOwnPropertyDescriptor(e2, k2); if (d2) { Object.defineProperty(n2, k2, d2.get ? d2 : { enumerable: true, get: () => e2[k2] }); } } } } } return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" })); } __name(_mergeNamespaces, "_mergeNamespaces"); var Alignment = { CENTER: "center", LEFT: "left", RIGHT: "right" }; var Elevation = { ZERO: 0, ONE: 1, TWO: 2, THREE: 3, FOUR: 4 }; var Intent = { NONE: "none", PRIMARY: "primary", SUCCESS: "success", WARNING: "warning", DANGER: "danger" }; var Position = { BOTTOM: "bottom", BOTTOM_LEFT: "bottom-left", BOTTOM_RIGHT: "bottom-right", LEFT: "left", LEFT_BOTTOM: "left-bottom", LEFT_TOP: "left-top", RIGHT: "right", RIGHT_BOTTOM: "right-bottom", RIGHT_TOP: "right-top", TOP: "top", TOP_LEFT: "top-left", TOP_RIGHT: "top-right" }; var _a$4, _b$1, _c, _d; var NS$3 = "bp3"; if (typeof process !== "undefined") { NS$3 = (_d = (_b$1 = (_a$4 = process.env) === null || _a$4 === void 0 ? void 0 : _a$4.BLUEPRINT_NAMESPACE) !== null && _b$1 !== void 0 ? _b$1 : (_c = process.env) === null || _c === void 0 ? void 0 : _c.REACT_APP_BLUEPRINT_NAMESPACE) !== null && _d !== void 0 ? _d : NS$3; } var ACTIVE = NS$3 + "-active"; var ALIGN_LEFT = NS$3 + "-align-left"; var ALIGN_RIGHT = NS$3 + "-align-right"; var DARK = NS$3 + "-dark"; var DISABLED = NS$3 + "-disabled"; var FILL = NS$3 + "-fill"; var FIXED = NS$3 + "-fixed"; var INLINE = NS$3 + "-inline"; var INTERACTIVE = NS$3 + "-interactive"; var LARGE = NS$3 + "-large"; var LOADING = NS$3 + "-loading"; var MINIMAL = NS$3 + "-minimal"; var OUTLINED = NS$3 + "-outlined"; var MULTILINE = NS$3 + "-multiline"; var ROUND = NS$3 + "-round"; var SMALL = NS$3 + "-small"; var VERTICAL = NS$3 + "-vertical"; var INTENT_PRIMARY = intentClass(Intent.PRIMARY); intentClass(Intent.SUCCESS); var INTENT_WARNING = intentClass(Intent.WARNING); var INTENT_DANGER = intentClass(Intent.DANGER); var FOCUS_DISABLED = NS$3 + "-focus-disabled"; var TEXT_MUTED = NS$3 + "-text-muted"; var TEXT_OVERFLOW_ELLIPSIS = NS$3 + "-text-overflow-ellipsis"; var HEADING = NS$3 + "-heading"; var BUTTON = NS$3 + "-button"; var BUTTON_GROUP = BUTTON + "-group"; var BUTTON_SPINNER = BUTTON + "-spinner"; var BUTTON_TEXT = BUTTON + "-text"; var CALLOUT = NS$3 + "-callout"; var CALLOUT_ICON = CALLOUT + "-icon"; var CARD = NS$3 + "-card"; var CONTEXT_MENU = NS$3 + "-context-menu"; var CONTEXT_MENU_POPOVER_TARGET = CONTEXT_MENU + "-popover-target"; var CONTROL_GROUP = NS$3 + "-control-group"; var DIALOG = NS$3 + "-dialog"; var DIALOG_CONTAINER = DIALOG + "-container"; var DIALOG_BODY = DIALOG + "-body"; var DIALOG_CLOSE_BUTTON = DIALOG + "-close-button"; var DIALOG_FOOTER = DIALOG + "-footer"; var DIALOG_FOOTER_ACTIONS = DIALOG + "-footer-actions"; var DIALOG_HEADER = DIALOG + "-header"; var DIVIDER = NS$3 + "-divider"; var EDITABLE_TEXT = NS$3 + "-editable-text"; var EDITABLE_TEXT_CONTENT = EDITABLE_TEXT + "-content"; var EDITABLE_TEXT_EDITING = EDITABLE_TEXT + "-editing"; var EDITABLE_TEXT_INPUT = EDITABLE_TEXT + "-input"; var EDITABLE_TEXT_PLACEHOLDER = EDITABLE_TEXT + "-placeholder"; var FLEX_EXPANDER = NS$3 + "-flex-expander"; var HTML_SELECT = NS$3 + "-html-select"; var SELECT$1 = NS$3 + "-select"; var HTML_TABLE = NS$3 + "-html-table"; var HTML_TABLE_BORDERED = HTML_TABLE + "-bordered"; var HTML_TABLE_STRIPED = HTML_TABLE + "-striped"; var INPUT = NS$3 + "-input"; var INPUT_GHOST = INPUT + "-ghost"; var INPUT_GROUP = INPUT + "-group"; var INPUT_LEFT_CONTAINER = INPUT + "-left-container"; var INPUT_ACTION = INPUT + "-action"; var CONTROL$1 = NS$3 + "-control"; var CONTROL_INDICATOR = CONTROL$1 + "-indicator"; var CONTROL_INDICATOR_CHILD = CONTROL_INDICATOR + "-child"; var CHECKBOX$1 = NS$3 + "-checkbox"; var RADIO$1 = NS$3 + "-radio"; var SWITCH = NS$3 + "-switch"; var SWITCH_INNER_TEXT = SWITCH + "-inner-text"; var KEY = NS$3 + "-key"; var KEY_COMBO = KEY + "-combo"; var MODIFIER_KEY = NS$3 + "-modifier-key"; var LABEL = NS$3 + "-label"; var FORM_GROUP = NS$3 + "-form-group"; var FORM_CONTENT = NS$3 + "-form-content"; var FORM_HELPER_TEXT = NS$3 + "-form-helper-text"; var FORM_GROUP_SUB_LABEL = NS$3 + "-form-group-sub-label"; var MENU = NS$3 + "-menu"; var MENU_ITEM = MENU + "-item"; var MENU_ITEM_LABEL = MENU_ITEM + "-label"; var MENU_SUBMENU = NS$3 + "-submenu"; var MENU_DIVIDER = MENU + "-divider"; var MENU_HEADER = MENU + "-header"; var NUMERIC_INPUT = NS$3 + "-numeric-input"; var OVERLAY = NS$3 + "-overlay"; var OVERLAY_BACKDROP = OVERLAY + "-backdrop"; var OVERLAY_CONTENT = OVERLAY + "-content"; var OVERLAY_INLINE = OVERLAY + "-inline"; var OVERLAY_OPEN = OVERLAY + "-open"; var OVERLAY_SCROLL_CONTAINER = OVERLAY + "-scroll-container"; var OVERLAY_START_FOCUS_TRAP = OVERLAY + "-start-focus-trap"; var OVERLAY_END_FOCUS_TRAP = OVERLAY + "-end-focus-trap"; var POPOVER = NS$3 + "-popover"; var POPOVER_ARROW = POPOVER + "-arrow"; var POPOVER_BACKDROP = POPOVER + "-backdrop"; var POPOVER_CAPTURING_DISMISS = POPOVER + "-capturing-dismiss"; var POPOVER_CONTENT = POPOVER + "-content"; var POPOVER_DISMISS = POPOVER + "-dismiss"; var POPOVER_DISMISS_OVERRIDE = POPOVER_DISMISS + "-override"; var POPOVER_OPEN = POPOVER + "-open"; var POPOVER_TARGET = POPOVER + "-target"; var POPOVER_WRAPPER = POPOVER + "-wrapper"; var TRANSITION_CONTAINER = NS$3 + "-transition-container"; var PORTAL = NS$3 + "-portal"; var SLIDER = NS$3 + "-slider"; var SLIDER_AXIS = SLIDER + "-axis"; var SLIDER_HANDLE = SLIDER + "-handle"; var SLIDER_LABEL = SLIDER + "-label"; var SLIDER_TRACK = SLIDER + "-track"; var SLIDER_PROGRESS = SLIDER + "-progress"; var START = NS$3 + "-start"; var END = NS$3 + "-end"; var SPINNER = NS$3 + "-spinner"; var SPINNER_ANIMATION = SPINNER + "-animation"; var SPINNER_HEAD = SPINNER + "-head"; var SPINNER_NO_SPIN = NS$3 + "-no-spin"; var SPINNER_TRACK$1 = SPINNER + "-track"; var TAB$1 = NS$3 + "-tab"; var TAB_INDICATOR = TAB$1 + "-indicator"; var TAB_INDICATOR_WRAPPER = TAB_INDICATOR + "-wrapper"; var TAB_LIST = TAB$1 + "-list"; var TAB_PANEL = TAB$1 + "-panel"; var TABS = TAB$1 + "s"; var TAG$2 = NS$3 + "-tag"; var TAG_REMOVE = TAG$2 + "-remove"; var TAG_INPUT = NS$3 + "-tag-input"; var TAG_INPUT_ICON = TAG_INPUT + "-icon"; var TAG_INPUT_VALUES = TAG_INPUT + "-values"; var TOAST = NS$3 + "-toast"; var TOAST_CONTAINER = TOAST + "-container"; var TOAST_MESSAGE = TOAST + "-message"; var TOOLTIP = NS$3 + "-tooltip"; var ICON = NS$3 + "-icon"; function getClassNamespace() { return NS$3; } __name(getClassNamespace, "getClassNamespace"); function alignmentClass(alignment) { switch (alignment) { case Alignment.LEFT: return ALIGN_LEFT; case Alignment.RIGHT: return ALIGN_RIGHT; default: return void 0; } } __name(alignmentClass, "alignmentClass"); function elevationClass(elevation) { if (elevation === void 0) { return void 0; } return NS$3 + "-elevation-" + elevation; } __name(elevationClass, "elevationClass"); function iconClass(iconName) { if (iconName == null) { return void 0; } return iconName.indexOf(NS$3 + "-icon-") === 0 ? iconName : NS$3 + "-icon-" + iconName; } __name(iconClass, "iconClass"); function intentClass(intent) { if (intent == null || intent === Intent.NONE) { return void 0; } return NS$3 + "-intent-" + intent.toLowerCase(); } __name(intentClass, "intentClass"); var TAB_KEY_CODE = 9; var InteractionModeEngine = ( /** @class */ function() { function InteractionModeEngine2(container, className) { var _this = this; this.container = container; this.className = className; this.isRunning = false; this.handleKeyDown = function(e2) { if (e2.which === TAB_KEY_CODE) { _this.reset(); _this.container.addEventListener("mousedown", _this.handleMouseDown); } }; this.handleMouseDown = function() { _this.reset(); _this.container.classList.add(_this.className); _this.container.addEventListener("keydown", _this.handleKeyDown); }; } __name(InteractionModeEngine2, "InteractionModeEngine"); InteractionModeEngine2.prototype.isActive = function() { return this.isRunning; }; InteractionModeEngine2.prototype.start = function() { this.container.addEventListener("mousedown", this.handleMouseDown); this.isRunning = true; }; InteractionModeEngine2.prototype.stop = function() { this.reset(); this.isRunning = false; }; InteractionModeEngine2.prototype.reset = function() { this.container.classList.remove(this.className); this.container.removeEventListener("keydown", this.handleKeyDown); this.container.removeEventListener("mousedown", this.handleMouseDown); }; return InteractionModeEngine2; }() ); var fakeFocusEngine = { isActive: function() { return true; }, start: function() { return true; }, stop: function() { return true; } }; var focusEngine = typeof document !== "undefined" ? new InteractionModeEngine(document.documentElement, FOCUS_DISABLED) : fakeFocusEngine; var FocusStyleManager = { alwaysShowFocus: function() { return focusEngine.stop(); }, isActive: function() { return focusEngine.isActive(); }, onlyShowFocusOnTabs: function() { return focusEngine.start(); } }; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var extendStatics$4 = /* @__PURE__ */ __name(function(d2, b3) { extendStatics$4 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b5) { d3.__proto__ = b5; } || function(d3, b5) { for (var p2 in b5) if (b5.hasOwnProperty(p2)) d3[p2] = b5[p2]; }; return extendStatics$4(d2, b3); }, "extendStatics$4"); function __extends$6(d2, b3) { extendStatics$4(d2, b3); function __() { this.constructor = d2; } __name(__, "__"); d2.prototype = b3 === null ? Object.create(b3) : (__.prototype = b3.prototype, new __()); } __name(__extends$6, "__extends$6"); var __assign$7 = /* @__PURE__ */ __name(function() { __assign$7 = Object.assign || /* @__PURE__ */ __name(function __assign2(t2) { for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) { s2 = arguments[i2]; for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2)) t2[p2] = s2[p2]; } return t2; }, "__assign"); return __assign$7.apply(this, arguments); }, "__assign$7"); function __rest$2(s2, e2) { var t2 = {}; for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0) t2[p2] = s2[p2]; if (s2 != null && typeof Object.getOwnPropertySymbols === "function") for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2); i2 < p2.length; i2++) { if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2])) t2[p2[i2]] = s2[p2[i2]]; } return t2; } __name(__rest$2, "__rest$2"); function __decorate$1(decorators, target, key2, desc) { var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key2) : desc, d2; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key2, desc); else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d2 = decorators[i2]) r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key2, r2) : d2(target, key2)) || r2; return c2 > 3 && r2 && Object.defineProperty(target, key2, r2), r2; } __name(__decorate$1, "__decorate$1"); function __spreadArrays$1() { for (var s2 = 0, i2 = 0, il2 = arguments.length; i2 < il2; i2++) s2 += arguments[i2].length; for (var r2 = Array(s2), k2 = 0, i2 = 0; i2 < il2; i2++) for (var a2 = arguments[i2], j2 = 0, jl2 = a2.length; j2 < jl2; j2++, k2++) r2[k2] = a2[j2]; return r2; } __name(__spreadArrays$1, "__spreadArrays$1"); var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; function getDefaultExportFromCjs(x2) { return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2; } __name(getDefaultExportFromCjs, "getDefaultExportFromCjs"); function getAugmentedNamespace(n2) { if (n2.__esModule) return n2; var f2 = n2.default; if (typeof f2 == "function") { var a2 = /* @__PURE__ */ __name(function a3() { if (this instanceof a3) { return Reflect.construct(f2, arguments, this.constructor); } return f2.apply(this, arguments); }, "a"); a2.prototype = f2.prototype; } else a2 = {}; Object.defineProperty(a2, "__esModule", { value: true }); Object.keys(n2).forEach(function(k2) { var d2 = Object.getOwnPropertyDescriptor(n2, k2); Object.defineProperty(a2, k2, d2.get ? d2 : { enumerable: true, get: function() { return n2[k2]; } }); }); return a2; } __name(getAugmentedNamespace, "getAugmentedNamespace"); var react = { exports: {} }; var react_production_min = {}; /** * @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 l$5 = Symbol.for("react.element"), n$6 = Symbol.for("react.portal"), p$7 = Symbol.for("react.fragment"), q$6 = Symbol.for("react.strict_mode"), r$6 = Symbol.for("react.profiler"), t$6 = Symbol.for("react.provider"), u$5 = Symbol.for("react.context"), v$6 = Symbol.for("react.forward_ref"), w$4 = Symbol.for("react.suspense"), x$4 = Symbol.for("react.memo"), y$3 = Symbol.for("react.lazy"), z$5 = Symbol.iterator; function A$5(a2) { if (null === a2 || "object" !== typeof a2) return null; a2 = z$5 && a2[z$5] || a2["@@iterator"]; return "function" === typeof a2 ? a2 : null; } __name(A$5, "A$5"); var B$2 = { isMounted: function() { return false; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, C$1 = Object.assign, D$2 = {}; function E$3(a2, b3, e2) { this.props = a2; this.context = b3; this.refs = D$2; this.updater = e2 || B$2; } __name(E$3, "E$3"); E$3.prototype.isReactComponent = {}; E$3.prototype.setState = function(a2, b3) { if ("object" !== typeof a2 && "function" !== typeof a2 && null != a2) 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, a2, b3, "setState"); }; E$3.prototype.forceUpdate = function(a2) { this.updater.enqueueForceUpdate(this, a2, "forceUpdate"); }; function F$1() { } __name(F$1, "F$1"); F$1.prototype = E$3.prototype; function G$2(a2, b3, e2) { this.props = a2; this.context = b3; this.refs = D$2; this.updater = e2 || B$2; } __name(G$2, "G$2"); var H$2 = G$2.prototype = new F$1(); H$2.constructor = G$2; C$1(H$2, E$3.prototype); H$2.isPureReactComponent = true; var I$2 = Array.isArray, J = Object.prototype.hasOwnProperty, K$1 = { current: null }, L$3 = { key: true, ref: true, __self: true, __source: true }; function M$2(a2, b3, e2) { var d2, c2 = {}, k2 = null, h2 = null; if (null != b3) for (d2 in void 0 !== b3.ref && (h2 = b3.ref), void 0 !== b3.key && (k2 = "" + b3.key), b3) J.call(b3, d2) && !L$3.hasOwnProperty(d2) && (c2[d2] = b3[d2]); var g2 = arguments.length - 2; if (1 === g2) c2.children = e2; else if (1 < g2) { for (var f2 = Array(g2), m2 = 0; m2 < g2; m2++) f2[m2] = arguments[m2 + 2]; c2.children = f2; } if (a2 && a2.defaultProps) for (d2 in g2 = a2.defaultProps, g2) void 0 === c2[d2] && (c2[d2] = g2[d2]); return { $$typeof: l$5, type: a2, key: k2, ref: h2, props: c2, _owner: K$1.current }; } __name(M$2, "M$2"); function N$2(a2, b3) { return { $$typeof: l$5, type: a2.type, key: b3, ref: a2.ref, props: a2.props, _owner: a2._owner }; } __name(N$2, "N$2"); function O$2(a2) { return "object" === typeof a2 && null !== a2 && a2.$$typeof === l$5; } __name(O$2, "O$2"); function escape$3(a2) { var b3 = { "=": "=0", ":": "=2" }; return "$" + a2.replace(/[=:]/g, function(a3) { return b3[a3]; }); } __name(escape$3, "escape$3"); var P$2 = /\/+/g; function Q$2(a2, b3) { return "object" === typeof a2 && null !== a2 && null != a2.key ? escape$3("" + a2.key) : b3.toString(36); } __name(Q$2, "Q$2"); function R$3(a2, b3, e2, d2, c2) { var k2 = typeof a2; if ("undefined" === k2 || "boolean" === k2) a2 = null; var h2 = false; if (null === a2) h2 = true; else switch (k2) { case "string": case "number": h2 = true; break; case "object": switch (a2.$$typeof) { case l$5: case n$6: h2 = true; } } if (h2) return h2 = a2, c2 = c2(h2), a2 = "" === d2 ? "." + Q$2(h2, 0) : d2, I$2(c2) ? (e2 = "", null != a2 && (e2 = a2.replace(P$2, "$&/") + "/"), R$3(c2, b3, e2, "", function(a3) { return a3; })) : null != c2 && (O$2(c2) && (c2 = N$2(c2, e2 + (!c2.key || h2 && h2.key === c2.key ? "" : ("" + c2.key).replace(P$2, "$&/") + "/") + a2)), b3.push(c2)), 1; h2 = 0; d2 = "" === d2 ? "." : d2 + ":"; if (I$2(a2)) for (var g2 = 0; g2 < a2.length; g2++) { k2 = a2[g2]; var f2 = d2 + Q$2(k2, g2); h2 += R$3(k2, b3, e2, f2, c2); } else if (f2 = A$5(a2), "function" === typeof f2) for (a2 = f2.call(a2), g2 = 0; !(k2 = a2.next()).done; ) k2 = k2.value, f2 = d2 + Q$2(k2, g2++), h2 += R$3(k2, b3, e2, f2, c2); else if ("object" === k2) throw b3 = String(a2), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b3 ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b3) + "). If you meant to render a collection of children, use an array instead."); return h2; } __name(R$3, "R$3"); function S$2(a2, b3, e2) { if (null == a2) return a2; var d2 = [], c2 = 0; R$3(a2, d2, "", "", function(a3) { return b3.call(e2, a3, c2++); }); return d2; } __name(S$2, "S$2"); function T$3(a2) { if (-1 === a2._status) { var b3 = a2._result; b3 = b3(); b3.then(function(b5) { if (0 === a2._status || -1 === a2._status) a2._status = 1, a2._result = b5; }, function(b5) { if (0 === a2._status || -1 === a2._status) a2._status = 2, a2._result = b5; }); -1 === a2._status && (a2._status = 0, a2._result = b3); } if (1 === a2._status) return a2._result.default; throw a2._result; } __name(T$3, "T$3"); var U$3 = { current: null }, V$3 = { transition: null }, W$2 = { ReactCurrentDispatcher: U$3, ReactCurrentBatchConfig: V$3, ReactCurrentOwner: K$1 }; react_production_min.Children = { map: S$2, forEach: function(a2, b3, e2) { S$2(a2, function() { b3.apply(this, arguments); }, e2); }, count: function(a2) { var b3 = 0; S$2(a2, function() { b3++; }); return b3; }, toArray: function(a2) { return S$2(a2, function(a3) { return a3; }) || []; }, only: function(a2) { if (!O$2(a2)) throw Error("React.Children.only expected to receive a single React element child."); return a2; } }; react_production_min.Component = E$3; react_production_min.Fragment = p$7; react_production_min.Profiler = r$6; react_production_min.PureComponent = G$2; react_production_min.StrictMode = q$6; react_production_min.Suspense = w$4; react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W$2; react_production_min.cloneElement = function(a2, b3, e2) { if (null === a2 || void 0 === a2) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a2 + "."); var d2 = C$1({}, a2.props), c2 = a2.key, k2 = a2.ref, h2 = a2._owner; if (null != b3) { void 0 !== b3.ref && (k2 = b3.ref, h2 = K$1.current); void 0 !== b3.key && (c2 = "" + b3.key); if (a2.type && a2.type.defaultProps) var g2 = a2.type.defaultProps; for (f2 in b3) J.call(b3, f2) && !L$3.hasOwnProperty(f2) && (d2[f2] = void 0 === b3[f2] && void 0 !== g2 ? g2[f2] : b3[f2]); } var f2 = arguments.length - 2; if (1 === f2) d2.children = e2; else if (1 < f2) { g2 = Array(f2); for (var m2 = 0; m2 < f2; m2++) g2[m2] = arguments[m2 + 2]; d2.children = g2; } return { $$typeof: l$5, type: a2.type, key: c2, ref: k2, props: d2, _owner: h2 }; }; react_production_min.createContext = function(a2) { a2 = { $$typeof: u$5, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }; a2.Provider = { $$typeof: t$6, _context: a2 }; return a2.Consumer = a2; }; react_production_min.createElement = M$2; react_production_min.createFactory = function(a2) { var b3 = M$2.bind(null, a2); b3.type = a2; return b3; }; react_production_min.createRef = function() { return { current: null }; }; react_production_min.forwardRef = function(a2) { return { $$typeof: v$6, render: a2 }; }; react_production_min.isValidElement = O$2; react_production_min.lazy = function(a2) { return { $$typeof: y$3, _payload: { _status: -1, _result: a2 }, _init: T$3 }; }; react_production_min.memo = function(a2, b3) { return { $$typeof: x$4, type: a2, compare: void 0 === b3 ? null : b3 }; }; react_production_min.startTransition = function(a2) { var b3 = V$3.transition; V$3.transition = {}; try { a2(); } finally { V$3.transition = b3; } }; react_production_min.unstable_act = function() { throw Error("act(...) is not supported in production builds of React."); }; react_production_min.useCallback = function(a2, b3) { return U$3.current.useCallback(a2, b3); }; react_production_min.useContext = function(a2) { return U$3.current.useContext(a2); }; react_production_min.useDebugValue = function() { }; react_production_min.useDeferredValue = function(a2) { return U$3.current.useDeferredValue(a2); }; react_production_min.useEffect = function(a2, b3) { return U$3.current.useEffect(a2, b3); }; react_production_min.useId = function() { return U$3.current.useId(); }; react_production_min.useImperativeHandle = function(a2, b3, e2) { return U$3.current.useImperativeHandle(a2, b3, e2); }; react_production_min.useInsertionEffect = function(a2, b3) { return U$3.current.useInsertionEffect(a2, b3); }; react_production_min.useLayoutEffect = function(a2, b3) { return U$3.current.useLayoutEffect(a2, b3); }; react_production_min.useMemo = function(a2, b3) { return U$3.current.useMemo(a2, b3); }; react_production_min.useReducer = function(a2, b3, e2) { return U$3.current.useReducer(a2, b3, e2); }; react_production_min.useRef = function(a2) { return U$3.current.useRef(a2); }; react_production_min.useState = function(a2) { return U$3.current.useState(a2); }; react_production_min.useSyncExternalStore = function(a2, b3, e2) { return U$3.current.useSyncExternalStore(a2, b3, e2); }; react_production_min.useTransition = function() { return U$3.current.useTransition(); }; react_production_min.version = "18.2.0"; { react.exports = react_production_min; } var reactExports = react.exports; const React$2 = /* @__PURE__ */ getDefaultExportFromCjs(reactExports); const React$3 = /* @__PURE__ */ _mergeNamespaces({ __proto__: null, default: React$2 }, [reactExports]); function arraysEqual(arrA, arrB, compare) { if (compare === void 0) { compare = /* @__PURE__ */ __name(function(a2, b3) { return a2 === b3; }, "compare"); } if (arrA == null && arrB == null) { return true; } else if (arrA == null || arrB == null || arrA.length !== arrB.length) { return false; } else { return arrA.every(function(a2, i2) { return compare(a2, arrB[i2]); }); } } __name(arraysEqual, "arraysEqual"); function shallowCompareKeys(objA, objB, keys2) { if (objA == null && objB == null) { return true; } else if (objA == null || objB == null) { return false; } else if (Array.isArray(objA) || Array.isArray(objB)) { return false; } else if (keys2 != null) { return shallowCompareKeysImpl(objA, objB, keys2); } else { var keysA = Object.keys(objA); var keysB = Object.keys(objB); return shallowCompareKeysImpl(objA, objB, { include: keysA }) && shallowCompareKeysImpl(objA, objB, { include: keysB }); } } __name(shallowCompareKeys, "shallowCompareKeys"); function shallowCompareKeysImpl(objA, objB, keys2) { return filterKeys(objA, objB, keys2).every(function(key2) { return objA.hasOwnProperty(key2) === objB.hasOwnProperty(key2) && objA[key2] === objB[key2]; }); } __name(shallowCompareKeysImpl, "shallowCompareKeysImpl"); function filterKeys(objA, objB, keys2) { if (isAllowlist(keys2)) { return keys2.include; } else if (isDenylist(keys2)) { var keysA = Object.keys(objA); var keysB = Object.keys(objB); var keySet_1 = arrayToObject$1(keysA.concat(keysB)); keys2.exclude.forEach(function(key2) { return delete keySet_1[key2]; }); return Object.keys(keySet_1); } return []; } __name(filterKeys, "filterKeys"); function isAllowlist(keys2) { return keys2 != null && keys2.include != null; } __name(isAllowlist, "isAllowlist"); function isDenylist(keys2) { return keys2 != null && keys2.exclude != null; } __name(isDenylist, "isDenylist"); function arrayToObject$1(arr) { return arr.reduce(function(obj, element2) { obj[element2] = true; return obj; }, {}); } __name(arrayToObject$1, "arrayToObject$1"); function isFunction$a(value) { return typeof value === "function"; } __name(isFunction$a, "isFunction$a"); function elementIsOrContains(element2, testElement) { return element2 === testElement || element2.contains(testElement); } __name(elementIsOrContains, "elementIsOrContains"); var ns$1 = "[Blueprint]"; var CLAMP_MIN_MAX = ns$1 + " clamp: max cannot be less than min"; var INPUT_WARN_LEFT_ELEMENT_LEFT_ICON_MUTEX = ns$1 + " <InputGroup> leftElement and leftIcon prop are mutually exclusive, with leftElement taking priority."; var NUMERIC_INPUT_MIN_MAX = ns$1 + " <NumericInput> requires min to be no greater than max if both are defined."; var NUMERIC_INPUT_MINOR_STEP_SIZE_BOUND = ns$1 + " <NumericInput> requires minorStepSize to be no greater than stepSize."; var NUMERIC_INPUT_MAJOR_STEP_SIZE_BOUND = ns$1 + " <NumericInput> requires stepSize to be no greater than majorStepSize."; var NUMERIC_INPUT_MINOR_STEP_SIZE_NON_POSITIVE = ns$1 + " <NumericInput> requires minorStepSize to be strictly greater than zero."; var NUMERIC_INPUT_MAJOR_STEP_SIZE_NON_POSITIVE = ns$1 + " <NumericInput> requires majorStepSize to be strictly greater than zero."; var NUMERIC_INPUT_STEP_SIZE_NON_POSITIVE = ns$1 + " <NumericInput> requires stepSize to be strictly greater than zero."; var NUMERIC_INPUT_CONTROLLED_VALUE_INVALID = ns$1 + " <NumericInput> controlled value prop does not adhere to stepSize, min, and/or max constraints."; var POPOVER_REQUIRES_TARGET = ns$1 + " <Popover> requires target prop or at least one child element."; var POPOVER_HAS_BACKDROP_INTERACTION = ns$1 + " <Popover hasBackdrop={true}> requires interactionKind={PopoverInteractionKind.CLICK}."; var POPOVER_WARN_TOO_MANY_CHILDREN = ns$1 + " <Popover> supports one or two children; additional children are ignored. First child is the target, second child is the content. You may instead supply these two as props."; var POPOVER_WARN_DOUBLE_CONTENT = ns$1 + " <Popover> with two children ignores content prop; use either prop or children."; var POPOVER_WARN_DOUBLE_TARGET = ns$1 + " <Popover> with children ignores target prop; use either prop or children."; var POPOVER_WARN_EMPTY_CONTENT = ns$1 + " Disabling <Popover> with empty/whitespace content..."; var POPOVER_WARN_HAS_BACKDROP_INLINE = ns$1 + " <Popover usePortal={false}> ignores hasBackdrop"; var POPOVER_WARN_PLACEMENT_AND_POSITION_MUTEX = ns$1 + " <Popover> supports either placement or position prop, not both."; var POPOVER_WARN_UNCONTROLLED_ONINTERACTION = ns$1 + " <Popover> onInteraction is ignored when uncontrolled."; var PORTAL_CONTEXT_CLASS_NAME_STRING = ns$1 + " <Portal> context blueprintPortalClassName must be string"; var RADIOGROUP_WARN_CHILDREN_OPTIONS_MUTEX = ns$1 + " <RadioGroup> children and options prop are mutually exclusive, with options taking priority."; var SLIDER_ZERO_STEP = ns$1 + " <Slider> stepSize must be greater than zero."; var SLIDER_ZERO_LABEL_STEP = ns$1 + " <Slider> labelStepSize must be greater than zero."; var MULTISLIDER_INVALID_CHILD = ns$1 + " <MultiSlider> children must be <SliderHandle>s or <SliderTrackStop>s"; var MULTISLIDER_WARN_LABEL_STEP_SIZE_LABEL_VALUES_MUTEX = ns$1 + " <MultiSlider> labelStepSize and labelValues prop are mutually exclusive, with labelStepSize taking priority."; var SPINNER_WARN_CLASSES_SIZE = ns$1 + " <Spinner> Classes.SMALL/LARGE are ignored if size prop is set."; var TOASTER_CREATE_NULL = ns$1 + " Toaster.create() is not supported inside React lifecycle methods in React 16. See usage example on the docs site."; var TOASTER_WARN_INLINE = ns$1 + " Toaster.create() ignores inline prop as it always creates a new element."; var DIALOG_WARN_NO_HEADER_ICON = ns$1 + " <Dialog> iconName is ignored if title is omitted."; var DIALOG_WARN_NO_HEADER_CLOSE_BUTTON = ns$1 + " <Dialog> isCloseButtonShown prop is ignored if title is omitted."; var TOASTER_MAX_TOASTS_INVALID = ns$1 + " <Toaster> maxToasts is set to an invalid number, must be greater than 0"; function isNodeEnv(env) { return typeof process !== "undefined" && process.env && "production" === env; } __name(isNodeEnv, "isNodeEnv"); function approxEqual(a2, b3, tolerance) { if (tolerance === void 0) { tolerance = 1e-5; } return Math.abs(a2 - b3) <= tolerance; } __name(approxEqual, "approxEqual"); function clamp$3(val2, min2, max2) { if (val2 == null) { return val2; } if (max2 < min2) { throw new Error(CLAMP_MIN_MAX); } return Math.min(Math.max(val2, min2), max2); } __name(clamp$3, "clamp$3"); function countDecimalPlaces(num) { if (!isFinite(num)) { return 0; } var e2 = 1; var p2 = 0; while (Math.round(num * e2) / e2 !== num) { e2 *= 10; p2++; } return p2; } __name(countDecimalPlaces, "countDecimalPlaces"); var uniqueCountForNamespace = /* @__PURE__ */ new Map(); function uniqueId(namespace) { var _a2; var curCount = (_a2 = uniqueCountForNamespace.get(namespace)) !== null && _a2 !== void 0 ? _a2 : 0; uniqueCountForNamespace.set(namespace, curCount + 1); return namespace + "-" + curCount; } __name(uniqueId, "uniqueId"); function isReactNodeEmpty(node2, skipArray) { if (skipArray === void 0) { skipArray = false; } return node2 == null || node2 === "" || node2 === false || !skipArray && Array.isArray(node2) && // only recurse one level through arrays, for performance (node2.length === 0 || node2.every(function(n2) { return isReactNodeEmpty(n2, true); })); } __name(isReactNodeEmpty, "isReactNodeEmpty"); function ensureElement(child, tagName) { if (tagName === void 0) { tagName = "span"; } if (child == null || typeof child === "boolean") { return void 0; } else if (typeof child === "string") { return child.trim().length > 0 ? reactExports.createElement(tagName, {}, child) : void 0; } else if (typeof child === "number" || typeof child.type === "symbol" || Array.isArray(child)) { return reactExports.createElement(tagName, {}, child); } else if (isReactElement(child)) { return child; } else { return void 0; } } __name(ensureElement, "ensureElement"); function isReactElement(child) { return typeof child === "object" && typeof child.type !== "undefined" && typeof child.props !== "undefined"; } __name(isReactElement, "isReactElement"); function isElementOfType(element2, ComponentType) { return element2 != null && element2.type != null && element2.type.displayName != null && element2.type.displayName === ComponentType.displayName; } __name(isElementOfType, "isElementOfType"); function createReactRef() { return typeof reactExports.createRef !== "undefined" ? reactExports.createRef() : { current: null }; } __name(createReactRef, "createReactRef"); function commonjsRequire(path2) { throw new Error('Could not dynamically require "' + path2 + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } __name(commonjsRequire, "commonjsRequire"); var dom4_max = {}; /*! Copyright (C) 2013-2015 by Andrea Giammarchi - @WebReflection Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var hasRequiredDom4_max; function requireDom4_max() { if (hasRequiredDom4_max) return dom4_max; hasRequiredDom4_max = 1; (function(window2) { function createDocumentFragment() { return document2.createDocumentFragment(); } __name(createDocumentFragment, "createDocumentFragment"); function createElement(nodeName) { return document2.createElement(nodeName); } __name(createElement, "createElement"); function enoughArguments(length, name2) { if (!length) throw new Error( "Failed to construct " + name2 + ": 1 argument required, but only 0 present." ); } __name(enoughArguments, "enoughArguments"); function mutationMacro(nodes) { if (nodes.length === 1) { return textNodeIfPrimitive(nodes[0]); } for (var fragment = createDocumentFragment(), list2 = slice2.call(nodes), i3 = 0; i3 < nodes.length; i3++) { fragment.appendChild(textNodeIfPrimitive(list2[i3])); } return fragment; } __name(mutationMacro, "mutationMacro"); function textNodeIfPrimitive(node2) { return typeof node2 === "object" ? node2 : document2.createTextNode(node2); } __name(textNodeIfPrimitive, "textNodeIfPrimitive"); for (var head, property2, TemporaryPrototype, TemporaryTokenList, wrapVerifyToken, document2 = window2.document, hOP = Object.prototype.hasOwnProperty, defineProperty2 = Object.defineProperty || function(object2, property3, descriptor2) { if (hOP.call(descriptor2, "value")) { object2[property3] = descriptor2.value; } else { if (hOP.call(descriptor2, "get")) object2.__defineGetter__(property3, descriptor2.get); if (hOP.call(descriptor2, "set")) object2.__defineSetter__(property3, descriptor2.set); } return object2; }, indexOf2 = [].indexOf || /* @__PURE__ */ __name(function indexOf3(value) { var length = this.length; while (length--) { if (this[length] === value) { break; } } return length; }, "indexOf"), verifyToken = function(token) { if (!token) { throw "SyntaxError"; } else if (spaces.test(token)) { throw "InvalidCharacterError"; } return token; }, DOMTokenList = function(node2) { var noClassName = typeof node2.className === "undefined", className = noClassName ? node2.getAttribute("class") || "" : node2.className, isSVG2 = noClassName || typeof className === "object", value = (isSVG2 ? noClassName ? className : className.baseVal : className).replace(trim2, ""); if (value.length) { properties.push.apply( this, value.split(spaces) ); } this._isSVG = isSVG2; this._ = node2; }, classListDescriptor = { get: /* @__PURE__ */ __name(function get2() { return new DOMTokenList(this); }, "get"), set: function() { } }, trim2 = /^\s+|\s+$/g, spaces = /\s+/, SPACE2 = " ", CLASS_LIST = "classList", toggle = /* @__PURE__ */ __name(function toggle2(token, force) { if (this.contains(token)) { if (!force) { this.remove(token); } } else if (force === void 0 || force) { force = true; this.add(token); } return !!force; }, "toggle"), DocumentFragmentPrototype = window2.DocumentFragment && DocumentFragment.prototype, Node2 = window2.Node, NodePrototype = (Node2 || Element).prototype, CharacterData = window2.CharacterData || Node2, CharacterDataPrototype = CharacterData && CharacterData.prototype, DocumentType = window2.DocumentType, DocumentTypePrototype = DocumentType && DocumentType.prototype, ElementPrototype = (window2.Element || Node2 || window2.HTMLElement).prototype, HTMLSelectElement = window2.HTMLSelectElement || createElement("select").constructor, selectRemove = HTMLSelectElement.prototype.remove, SVGElement2 = window2.SVGElement, properties = [ "matches", ElementPrototype.matchesSelector || ElementPrototype.webkitMatchesSelector || ElementPrototype.khtmlMatchesSelector || ElementPrototype.mozMatchesSelector || ElementPrototype.msMatchesSelector || ElementPrototype.oMatchesSelector || /* @__PURE__ */ __name(function matches(selector) { var parentNode = this.parentNode; return !!parentNode && -1 < indexOf2.call( parentNode.querySelectorAll(selector), this ); }, "matches"), "closest", /* @__PURE__ */ __name(function closest2(selector) { var parentNode = this, matches; while ( // document has no .matches (matches = parentNode && parentNode.matches) && !parentNode.matches(selector) ) { parentNode = parentNode.parentNode; } return matches ? parentNode : null; }, "closest"), "prepend", /* @__PURE__ */ __name(function prepend() { var firstChild = this.firstChild, node2 = mutationMacro(arguments); if (firstChild) { this.insertBefore(node2, firstChild); } else { this.appendChild(node2); } }, "prepend"), "append", /* @__PURE__ */ __name(function append() { this.appendChild(mutationMacro(arguments)); }, "append"), "before", /* @__PURE__ */ __name(function before() { var parentNode = this.parentNode; if (parentNode) { parentNode.insertBefore( mutationMacro(arguments), this ); } }, "before"), "after", /* @__PURE__ */ __name(function after() { var parentNode = this.parentNode, nextSibling = this.nextSibling, node2 = mutationMacro(arguments); if (parentNode) { if (nextSibling) { parentNode.insertBefore(node2, nextSibling); } else { parentNode.appendChild(node2); } } }, "after"), // https://dom.spec.whatwg.org/#dom-element-toggleattribute "toggleAttribute", /* @__PURE__ */ __name(function toggleAttribute(name2, force) { var had = this.hasAttribute(name2); if (1 < arguments.length) { if (had && !force) this.removeAttribute(name2); else if (force && !had) this.setAttribute(name2, ""); } else if (had) this.removeAttribute(name2); else this.setAttribute(name2, ""); return this.hasAttribute(name2); }, "toggleAttribute"), // WARNING - DEPRECATED - use .replaceWith() instead "replace", /* @__PURE__ */ __name(function replace2() { this.replaceWith.apply(this, arguments); }, "replace"), "replaceWith", /* @__PURE__ */ __name(function replaceWith() { var parentNode = this.parentNode; if (parentNode) { parentNode.replaceChild( mutationMacro(arguments), this ); } }, "replaceWith"), "remove", /* @__PURE__ */ __name(function remove2() { var parentNode = this.parentNode; if (parentNode) { parentNode.removeChild(this); } }, "remove") ], slice2 = properties.slice, i2 = properties.length; i2; i2 -= 2) { property2 = properties[i2 - 2]; if (!(property2 in ElementPrototype)) { ElementPrototype[property2] = properties[i2 - 1]; } if (property2 === "remove" && !selectRemove._dom4) { (HTMLSelectElement.prototype[property2] = function() { return 0 < arguments.length ? selectRemove.apply(this, arguments) : ElementPrototype.remove.call(this); })._dom4 = true; } if (/^(?:before|after|replace|replaceWith|remove)$/.test(property2)) { if (CharacterData && !(property2 in CharacterDataPrototype)) { CharacterDataPrototype[property2] = properties[i2 - 1]; } if (DocumentType && !(property2 in DocumentTypePrototype)) { DocumentTypePrototype[property2] = properties[i2 - 1]; } } if (/^(?:append|prepend)$/.test(property2)) { if (DocumentFragmentPrototype) { if (!(property2 in DocumentFragmentPrototype)) { DocumentFragmentPrototype[property2] = properties[i2 - 1]; } } else { try { createDocumentFragment().constructor.prototype[property2] = properties[i2 - 1]; } catch (o_O) { } } } } if (!createElement("a").matches("a")) { ElementPrototype[property2] = function(matches) { return function(selector) { return matches.call( this.parentNode ? this : createDocumentFragment().appendChild(this), selector ); }; }(ElementPrototype[property2]); } DOMTokenList.prototype = { length: 0, add: /* @__PURE__ */ __name(function add2() { for (var j2 = 0, token; j2 < arguments.length; j2++) { token = arguments[j2]; if (!this.contains(token)) { properties.push.call(this, property2); } } if (this._isSVG) { this._.setAttribute("class", "" + this); } else { this._.className = "" + this; } }, "add"), contains: function(indexOf3) { return /* @__PURE__ */ __name(function contains2(token) { i2 = indexOf3.call(this, property2 = verifyToken(token)); return -1 < i2; }, "contains"); }([].indexOf || function(token) { i2 = this.length; while (i2-- && this[i2] !== token) { } return i2; }), item: /* @__PURE__ */ __name(function item(i3) { return this[i3] || null; }, "item"), remove: /* @__PURE__ */ __name(function remove2() { for (var j2 = 0, token; j2 < arguments.length; j2++) { token = arguments[j2]; if (this.contains(token)) { properties.splice.call(this, i2, 1); } } if (this._isSVG) { this._.setAttribute("class", "" + this); } else { this._.className = "" + this; } }, "remove"), toggle, toString: /* @__P