UNPKG

usb-paint

Version:

A universal, simple, and beautiful hand-drawn style painting tool, USB-Paint. It can be introduced and used in any front-end framework or page.

1,298 lines 163 kB
var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; var check = function(it) { return it && it.Math === Math && it; }; var globalThis_1 = ( // 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) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback /* @__PURE__ */ function() { return this; }() || Function("return this")() ); var objectGetOwnPropertyDescriptor = {}; var fails$j = function(exec2) { try { return !!exec2(); } catch (error) { return true; } }; var fails$i = fails$j; var descriptors = !fails$i(function() { return Object.defineProperty({}, 1, { get: function() { return 7; } })[1] !== 7; }); var fails$h = fails$j; var functionBindNative = !fails$h(function() { var test2 = (function() { }).bind(); return typeof test2 != "function" || test2.hasOwnProperty("prototype"); }); var NATIVE_BIND$3 = functionBindNative; var call$h = Function.prototype.call; var functionCall = NATIVE_BIND$3 ? call$h.bind(call$h) : function() { return call$h.apply(call$h, arguments); }; var objectPropertyIsEnumerable = {}; var $propertyIsEnumerable$1 = {}.propertyIsEnumerable; var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor; var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1); objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V2) { var descriptor = getOwnPropertyDescriptor$2(this, V2); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable$1; var createPropertyDescriptor$7 = function(bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value }; }; var NATIVE_BIND$2 = functionBindNative; var FunctionPrototype$2 = Function.prototype; var call$g = FunctionPrototype$2.call; var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$g, call$g); var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function(fn) { return function() { return call$g.apply(fn, arguments); }; }; var uncurryThis$k = functionUncurryThis; var toString$9 = uncurryThis$k({}.toString); var stringSlice$3 = uncurryThis$k("".slice); var classofRaw$2 = function(it) { return stringSlice$3(toString$9(it), 8, -1); }; var uncurryThis$j = functionUncurryThis; var fails$g = fails$j; var classof$9 = classofRaw$2; var $Object$4 = Object; var split = uncurryThis$j("".split); var indexedObject = fails$g(function() { return !$Object$4("z").propertyIsEnumerable(0); }) ? function(it) { return classof$9(it) === "String" ? split(it, "") : $Object$4(it); } : $Object$4; var isNullOrUndefined$4 = function(it) { return it === null || it === void 0; }; var isNullOrUndefined$3 = isNullOrUndefined$4; var $TypeError$d = TypeError; var requireObjectCoercible$4 = function(it) { if (isNullOrUndefined$3(it)) throw new $TypeError$d("Can't call method on " + it); return it; }; var IndexedObject$1 = indexedObject; var requireObjectCoercible$3 = requireObjectCoercible$4; var toIndexedObject$7 = function(it) { return IndexedObject$1(requireObjectCoercible$3(it)); }; var documentAll = typeof document == "object" && document.all; var isCallable$n = typeof documentAll == "undefined" && documentAll !== void 0 ? function(argument) { return typeof argument == "function" || argument === documentAll; } : function(argument) { return typeof argument == "function"; }; var isCallable$m = isCallable$n; var isObject$d = function(it) { return typeof it == "object" ? it !== null : isCallable$m(it); }; var globalThis$p = globalThis_1; var isCallable$l = isCallable$n; var aFunction = function(argument) { return isCallable$l(argument) ? argument : void 0; }; var getBuiltIn$d = function(namespace, method) { return arguments.length < 2 ? aFunction(globalThis$p[namespace]) : globalThis$p[namespace] && globalThis$p[namespace][method]; }; var uncurryThis$i = functionUncurryThis; var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf); var globalThis$o = globalThis_1; var navigator = globalThis$o.navigator; var userAgent$5 = navigator && navigator.userAgent; var environmentUserAgent = userAgent$5 ? String(userAgent$5) : ""; var globalThis$n = globalThis_1; var userAgent$4 = environmentUserAgent; var process$3 = globalThis$n.process; var Deno$1 = globalThis$n.Deno; var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version; var v8 = versions && versions.v8; var match, version; if (v8) { match = v8.split("."); version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); } if (!version && userAgent$4) { match = userAgent$4.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent$4.match(/Chrome\/(\d+)/); if (match) version = +match[1]; } } var environmentV8Version = version; var V8_VERSION$3 = environmentV8Version; var fails$f = fails$j; var globalThis$m = globalThis_1; var $String$6 = globalThis$m.String; var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$f(function() { var symbol = Symbol("symbol detection"); return !$String$6(symbol) || !(Object(symbol) 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$6 = symbolConstructorDetection; var useSymbolAsUid = NATIVE_SYMBOL$6 && !Symbol.sham && typeof Symbol.iterator == "symbol"; var getBuiltIn$c = getBuiltIn$d; var isCallable$k = isCallable$n; var isPrototypeOf$5 = objectIsPrototypeOf; var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; var $Object$3 = Object; var isSymbol$4 = USE_SYMBOL_AS_UID$1 ? function(it) { return typeof it == "symbol"; } : function(it) { var $Symbol2 = getBuiltIn$c("Symbol"); return isCallable$k($Symbol2) && isPrototypeOf$5($Symbol2.prototype, $Object$3(it)); }; var $String$5 = String; var tryToString$5 = function(argument) { try { return $String$5(argument); } catch (error) { return "Object"; } }; var isCallable$j = isCallable$n; var tryToString$4 = tryToString$5; var $TypeError$c = TypeError; var aCallable$b = function(argument) { if (isCallable$j(argument)) return argument; throw new $TypeError$c(tryToString$4(argument) + " is not a function"); }; var aCallable$a = aCallable$b; var isNullOrUndefined$2 = isNullOrUndefined$4; var getMethod$3 = function(V2, P) { var func = V2[P]; return isNullOrUndefined$2(func) ? void 0 : aCallable$a(func); }; var call$f = functionCall; var isCallable$i = isCallable$n; var isObject$c = isObject$d; var $TypeError$b = TypeError; var ordinaryToPrimitive$1 = function(input, pref) { var fn, val; if (pref === "string" && isCallable$i(fn = input.toString) && !isObject$c(val = call$f(fn, input))) return val; if (isCallable$i(fn = input.valueOf) && !isObject$c(val = call$f(fn, input))) return val; if (pref !== "string" && isCallable$i(fn = input.toString) && !isObject$c(val = call$f(fn, input))) return val; throw new $TypeError$b("Can't convert object to primitive value"); }; var sharedStore = { exports: {} }; var globalThis$l = globalThis_1; var defineProperty$6 = Object.defineProperty; var defineGlobalProperty$3 = function(key, value) { try { defineProperty$6(globalThis$l, key, { value, configurable: true, writable: true }); } catch (error) { globalThis$l[key] = value; } return value; }; var globalThis$k = globalThis_1; var defineGlobalProperty$2 = defineGlobalProperty$3; var SHARED = "__core-js_shared__"; var store$3 = sharedStore.exports = globalThis$k[SHARED] || defineGlobalProperty$2(SHARED, {}); (store$3.versions || (store$3.versions = [])).push({ version: "3.39.0", mode: "global", copyright: "© 2014-2024 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE", source: "https://github.com/zloirock/core-js" }); var sharedStoreExports = sharedStore.exports; var store$2 = sharedStoreExports; var shared$6 = function(key, value) { return store$2[key] || (store$2[key] = value || {}); }; var requireObjectCoercible$2 = requireObjectCoercible$4; var $Object$2 = Object; var toObject$5 = function(argument) { return $Object$2(requireObjectCoercible$2(argument)); }; var uncurryThis$h = functionUncurryThis; var toObject$4 = toObject$5; var hasOwnProperty = uncurryThis$h({}.hasOwnProperty); var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty(toObject$4(it), key); }; var uncurryThis$g = functionUncurryThis; var id = 0; var postfix = Math.random(); var toString$8 = uncurryThis$g(1 .toString); var uid$3 = function(key) { return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$8(++id + postfix, 36); }; var globalThis$j = globalThis_1; var shared$5 = shared$6; var hasOwn$e = hasOwnProperty_1; var uid$2 = uid$3; var NATIVE_SYMBOL$5 = symbolConstructorDetection; var USE_SYMBOL_AS_UID = useSymbolAsUid; var Symbol$1 = globalThis$j.Symbol; var WellKnownSymbolsStore$1 = shared$5("wks"); var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1["for"] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$2; var wellKnownSymbol$l = function(name) { if (!hasOwn$e(WellKnownSymbolsStore$1, name)) { WellKnownSymbolsStore$1[name] = NATIVE_SYMBOL$5 && hasOwn$e(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol("Symbol." + name); } return WellKnownSymbolsStore$1[name]; }; var call$e = functionCall; var isObject$b = isObject$d; var isSymbol$3 = isSymbol$4; var getMethod$2 = getMethod$3; var ordinaryToPrimitive = ordinaryToPrimitive$1; var wellKnownSymbol$k = wellKnownSymbol$l; var $TypeError$a = TypeError; var TO_PRIMITIVE = wellKnownSymbol$k("toPrimitive"); var toPrimitive$1 = function(input, pref) { if (!isObject$b(input) || isSymbol$3(input)) return input; var exoticToPrim = getMethod$2(input, TO_PRIMITIVE); var result; if (exoticToPrim) { if (pref === void 0) pref = "default"; result = call$e(exoticToPrim, input, pref); if (!isObject$b(result) || isSymbol$3(result)) return result; throw new $TypeError$a("Can't convert object to primitive value"); } if (pref === void 0) pref = "number"; return ordinaryToPrimitive(input, pref); }; var toPrimitive = toPrimitive$1; var isSymbol$2 = isSymbol$4; var toPropertyKey$3 = function(argument) { var key = toPrimitive(argument, "string"); return isSymbol$2(key) ? key : key + ""; }; var globalThis$i = globalThis_1; var isObject$a = isObject$d; var document$3 = globalThis$i.document; var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement); var documentCreateElement$2 = function(it) { return EXISTS$1 ? document$3.createElement(it) : {}; }; var DESCRIPTORS$d = descriptors; var fails$e = fails$j; var createElement$1 = documentCreateElement$2; var ie8DomDefine = !DESCRIPTORS$d && !fails$e(function() { return Object.defineProperty(createElement$1("div"), "a", { get: function() { return 7; } }).a !== 7; }); var DESCRIPTORS$c = descriptors; var call$d = functionCall; var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; var createPropertyDescriptor$6 = createPropertyDescriptor$7; var toIndexedObject$6 = toIndexedObject$7; var toPropertyKey$2 = toPropertyKey$3; var hasOwn$d = hasOwnProperty_1; var IE8_DOM_DEFINE$1 = ie8DomDefine; var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor; objectGetOwnPropertyDescriptor.f = DESCRIPTORS$c ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject$6(O); P = toPropertyKey$2(P); if (IE8_DOM_DEFINE$1) try { return $getOwnPropertyDescriptor$2(O, P); } catch (error) { } if (hasOwn$d(O, P)) return createPropertyDescriptor$6(!call$d(propertyIsEnumerableModule$1.f, O, P), O[P]); }; var objectDefineProperty = {}; var DESCRIPTORS$b = descriptors; var fails$d = fails$j; var v8PrototypeDefineBug = DESCRIPTORS$b && fails$d(function() { return Object.defineProperty(function() { }, "prototype", { value: 42, writable: false }).prototype !== 42; }); var isObject$9 = isObject$d; var $String$4 = String; var $TypeError$9 = TypeError; var anObject$a = function(argument) { if (isObject$9(argument)) return argument; throw new $TypeError$9($String$4(argument) + " is not an object"); }; var DESCRIPTORS$a = descriptors; var IE8_DOM_DEFINE = ie8DomDefine; var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; var anObject$9 = anObject$a; var toPropertyKey$1 = toPropertyKey$3; var $TypeError$8 = TypeError; var $defineProperty$1 = Object.defineProperty; var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; var ENUMERABLE = "enumerable"; var CONFIGURABLE$1 = "configurable"; var WRITABLE = "writable"; objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { anObject$9(O); P = toPropertyKey$1(P); anObject$9(Attributes); if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { var current = $getOwnPropertyDescriptor$1(O, P); if (current && current[WRITABLE]) { O[P] = 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, P, Attributes); } : $defineProperty$1 : function defineProperty2(O, P, Attributes) { anObject$9(O); P = toPropertyKey$1(P); anObject$9(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty$1(O, P, Attributes); } catch (error) { } if ("get" in Attributes || "set" in Attributes) throw new $TypeError$8("Accessors not supported"); if ("value" in Attributes) O[P] = Attributes.value; return O; }; var DESCRIPTORS$9 = descriptors; var definePropertyModule$5 = objectDefineProperty; var createPropertyDescriptor$5 = createPropertyDescriptor$7; var createNonEnumerableProperty$7 = DESCRIPTORS$9 ? function(object, key, value) { return definePropertyModule$5.f(object, key, createPropertyDescriptor$5(1, value)); } : function(object, key, value) { object[key] = value; return object; }; var makeBuiltIn$3 = { exports: {} }; var DESCRIPTORS$8 = descriptors; var hasOwn$c = hasOwnProperty_1; var FunctionPrototype$1 = Function.prototype; var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor; var EXISTS = hasOwn$c(FunctionPrototype$1, "name"); var PROPER = EXISTS && (function something() { }).name === "something"; var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || DESCRIPTORS$8 && getDescriptor(FunctionPrototype$1, "name").configurable); var functionName = { EXISTS, PROPER, CONFIGURABLE }; var uncurryThis$f = functionUncurryThis; var isCallable$h = isCallable$n; var store$1 = sharedStoreExports; var functionToString = uncurryThis$f(Function.toString); if (!isCallable$h(store$1.inspectSource)) { store$1.inspectSource = function(it) { return functionToString(it); }; } var inspectSource$3 = store$1.inspectSource; var globalThis$h = globalThis_1; var isCallable$g = isCallable$n; var WeakMap$1 = globalThis$h.WeakMap; var weakMapBasicDetection = isCallable$g(WeakMap$1) && /native code/.test(String(WeakMap$1)); var shared$4 = shared$6; var uid$1 = uid$3; var keys = shared$4("keys"); var sharedKey$4 = function(key) { return keys[key] || (keys[key] = uid$1(key)); }; var hiddenKeys$5 = {}; var NATIVE_WEAK_MAP = weakMapBasicDetection; var globalThis$g = globalThis_1; var isObject$8 = isObject$d; var createNonEnumerableProperty$6 = createNonEnumerableProperty$7; var hasOwn$b = hasOwnProperty_1; var shared$3 = sharedStoreExports; var sharedKey$3 = sharedKey$4; var hiddenKeys$4 = hiddenKeys$5; var OBJECT_ALREADY_INITIALIZED = "Object already initialized"; var TypeError$3 = globalThis$g.TypeError; var WeakMap = globalThis$g.WeakMap; var set$1, get, has; var enforce = function(it) { return has(it) ? get(it) : set$1(it, {}); }; var getterFor = function(TYPE) { return function(it) { var state; if (!isObject$8(it) || (state = get(it)).type !== TYPE) { throw new TypeError$3("Incompatible receiver, " + TYPE + " required"); } return state; }; }; if (NATIVE_WEAK_MAP || shared$3.state) { var store = shared$3.state || (shared$3.state = new WeakMap()); store.get = store.get; store.has = store.has; store.set = store.set; set$1 = function(it, metadata) { if (store.has(it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; store.set(it, metadata); return metadata; }; get = function(it) { return store.get(it) || {}; }; has = function(it) { return store.has(it); }; } else { var STATE = sharedKey$3("state"); hiddenKeys$4[STATE] = true; set$1 = function(it, metadata) { if (hasOwn$b(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty$6(it, STATE, metadata); return metadata; }; get = function(it) { return hasOwn$b(it, STATE) ? it[STATE] : {}; }; has = function(it) { return hasOwn$b(it, STATE); }; } var internalState = { set: set$1, get, has, enforce, getterFor }; var uncurryThis$e = functionUncurryThis; var fails$c = fails$j; var isCallable$f = isCallable$n; var hasOwn$a = hasOwnProperty_1; var DESCRIPTORS$7 = descriptors; var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE; var inspectSource$2 = inspectSource$3; var InternalStateModule$4 = internalState; var enforceInternalState = InternalStateModule$4.enforce; var getInternalState$3 = InternalStateModule$4.get; var $String$3 = String; var defineProperty$5 = Object.defineProperty; var stringSlice$2 = uncurryThis$e("".slice); var replace$3 = uncurryThis$e("".replace); var join = uncurryThis$e([].join); var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$c(function() { return defineProperty$5(function() { }, "length", { value: 8 }).length !== 8; }); var TEMPLATE = String(String).split("String"); var makeBuiltIn$2 = makeBuiltIn$3.exports = function(value, name, options) { if (stringSlice$2($String$3(name), 0, 7) === "Symbol(") { name = "[" + replace$3($String$3(name), /^Symbol\(([^)]*)\).*$/, "$1") + "]"; } if (options && options.getter) name = "get " + name; if (options && options.setter) name = "set " + name; if (!hasOwn$a(value, "name") || CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name) { if (DESCRIPTORS$7) defineProperty$5(value, "name", { value: name, configurable: true }); else value.name = name; } if (CONFIGURABLE_LENGTH && options && hasOwn$a(options, "arity") && value.length !== options.arity) { defineProperty$5(value, "length", { value: options.arity }); } try { if (options && hasOwn$a(options, "constructor") && options.constructor) { if (DESCRIPTORS$7) defineProperty$5(value, "prototype", { writable: false }); } else if (value.prototype) value.prototype = void 0; } catch (error) { } var state = enforceInternalState(value); if (!hasOwn$a(state, "source")) { state.source = join(TEMPLATE, typeof name == "string" ? name : ""); } return value; }; Function.prototype.toString = makeBuiltIn$2(function toString() { return isCallable$f(this) && getInternalState$3(this).source || inspectSource$2(this); }, "toString"); var makeBuiltInExports = makeBuiltIn$3.exports; var isCallable$e = isCallable$n; var definePropertyModule$4 = objectDefineProperty; var makeBuiltIn$1 = makeBuiltInExports; var defineGlobalProperty$1 = defineGlobalProperty$3; var defineBuiltIn$9 = function(O, key, value, options) { if (!options) options = {}; var simple = options.enumerable; var name = options.name !== void 0 ? options.name : key; if (isCallable$e(value)) makeBuiltIn$1(value, name, options); if (options.global) { if (simple) O[key] = value; else defineGlobalProperty$1(key, value); } else { try { if (!options.unsafe) delete O[key]; else if (O[key]) simple = true; } catch (error) { } if (simple) O[key] = value; else definePropertyModule$4.f(O, key, { value, enumerable: false, configurable: !options.nonConfigurable, writable: !options.nonWritable }); } return O; }; var objectGetOwnPropertyNames = {}; var ceil = Math.ceil; var floor = Math.floor; var mathTrunc = Math.trunc || function trunc(x) { var n = +x; return (n > 0 ? floor : ceil)(n); }; var trunc2 = mathTrunc; var toIntegerOrInfinity$3 = function(argument) { var number = +argument; return number !== number || number === 0 ? 0 : trunc2(number); }; var toIntegerOrInfinity$2 = toIntegerOrInfinity$3; var max = Math.max; var min$1 = Math.min; var toAbsoluteIndex$1 = function(index, length) { var integer = toIntegerOrInfinity$2(index); return integer < 0 ? max(integer + length, 0) : min$1(integer, length); }; var toIntegerOrInfinity$1 = toIntegerOrInfinity$3; var min = Math.min; var toLength$1 = function(argument) { var len = toIntegerOrInfinity$1(argument); return len > 0 ? min(len, 9007199254740991) : 0; }; var toLength = toLength$1; var lengthOfArrayLike$4 = function(obj) { return toLength(obj.length); }; var toIndexedObject$5 = toIndexedObject$7; var toAbsoluteIndex = toAbsoluteIndex$1; var lengthOfArrayLike$3 = lengthOfArrayLike$4; var createMethod$2 = function(IS_INCLUDES) { return function($this, el, fromIndex) { var O = toIndexedObject$5($this); var length = lengthOfArrayLike$3(O); if (length === 0) return !IS_INCLUDES && -1; var index = toAbsoluteIndex(fromIndex, length); var value; if (IS_INCLUDES && el !== el) while (length > index) { value = O[index++]; if (value !== value) return true; } else for (; length > index; index++) { if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; var arrayIncludes = { // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes includes: createMethod$2(true), // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof indexOf: createMethod$2(false) }; var uncurryThis$d = functionUncurryThis; var hasOwn$9 = hasOwnProperty_1; var toIndexedObject$4 = toIndexedObject$7; var indexOf = arrayIncludes.indexOf; var hiddenKeys$3 = hiddenKeys$5; var push$4 = uncurryThis$d([].push); var objectKeysInternal = function(object, names) { var O = toIndexedObject$4(object); var i = 0; var result = []; var key; for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$4(result, key); while (names.length > i) if (hasOwn$9(O, key = names[i++])) { ~indexOf(result, key) || push$4(result, key); } return result; }; var enumBugKeys$3 = [ "constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf" ]; var internalObjectKeys$1 = objectKeysInternal; var enumBugKeys$2 = enumBugKeys$3; var hiddenKeys$2 = enumBugKeys$2.concat("length", "prototype"); objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return internalObjectKeys$1(O, hiddenKeys$2); }; var objectGetOwnPropertySymbols = {}; objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; var getBuiltIn$b = getBuiltIn$d; var uncurryThis$c = functionUncurryThis; var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames; var getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols; var anObject$8 = anObject$a; var concat = uncurryThis$c([].concat); var ownKeys$1 = getBuiltIn$b("Reflect", "ownKeys") || function ownKeys(it) { var keys3 = getOwnPropertyNamesModule$1.f(anObject$8(it)); var getOwnPropertySymbols2 = getOwnPropertySymbolsModule$2.f; return getOwnPropertySymbols2 ? concat(keys3, getOwnPropertySymbols2(it)) : keys3; }; var hasOwn$8 = hasOwnProperty_1; var ownKeys2 = ownKeys$1; var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor; var definePropertyModule$3 = objectDefineProperty; var copyConstructorProperties$3 = function(target, source, exceptions) { var keys3 = ownKeys2(source); var defineProperty5 = definePropertyModule$3.f; var getOwnPropertyDescriptor4 = getOwnPropertyDescriptorModule$1.f; for (var i = 0; i < keys3.length; i++) { var key = keys3[i]; if (!hasOwn$8(target, key) && !(exceptions && hasOwn$8(exceptions, key))) { defineProperty5(target, key, getOwnPropertyDescriptor4(source, key)); } } }; var fails$b = fails$j; var isCallable$d = isCallable$n; var replacement = /#|\.prototype\./; var isForced$2 = function(feature, detection) { var value = data[normalize(feature)]; return value === POLYFILL ? true : value === NATIVE ? false : isCallable$d(detection) ? fails$b(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 globalThis$f = globalThis_1; var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; var createNonEnumerableProperty$5 = createNonEnumerableProperty$7; var defineBuiltIn$8 = defineBuiltIn$9; var defineGlobalProperty = defineGlobalProperty$3; var copyConstructorProperties$2 = copyConstructorProperties$3; var isForced$1 = isForced_1; var _export = function(options, source) { var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var FORCED2, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { target = globalThis$f; } else if (STATIC) { target = globalThis$f[TARGET] || defineGlobalProperty(TARGET, {}); } else { target = globalThis$f[TARGET] && globalThis$f[TARGET].prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.dontCallGetSet) { descriptor = getOwnPropertyDescriptor$1(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; FORCED2 = isForced$1(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced); if (!FORCED2 && targetProperty !== void 0) { if (typeof sourceProperty == typeof targetProperty) continue; copyConstructorProperties$2(sourceProperty, targetProperty); } if (options.sham || targetProperty && targetProperty.sham) { createNonEnumerableProperty$5(sourceProperty, "sham", true); } defineBuiltIn$8(target, key, sourceProperty, options); } }; var classof$8 = classofRaw$2; var isArray$3 = Array.isArray || function isArray(argument) { return classof$8(argument) === "Array"; }; var $TypeError$7 = TypeError; var MAX_SAFE_INTEGER = 9007199254740991; var doesNotExceedSafeInteger$1 = function(it) { if (it > MAX_SAFE_INTEGER) throw $TypeError$7("Maximum allowed index exceeded"); return it; }; var DESCRIPTORS$6 = descriptors; var definePropertyModule$2 = objectDefineProperty; var createPropertyDescriptor$4 = createPropertyDescriptor$7; var createProperty$1 = function(object, key, value) { if (DESCRIPTORS$6) definePropertyModule$2.f(object, key, createPropertyDescriptor$4(0, value)); else object[key] = value; }; var wellKnownSymbol$j = wellKnownSymbol$l; var TO_STRING_TAG$3 = wellKnownSymbol$j("toStringTag"); var test = {}; test[TO_STRING_TAG$3] = "z"; var toStringTagSupport = String(test) === "[object z]"; var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport; var isCallable$c = isCallable$n; var classofRaw$1 = classofRaw$2; var wellKnownSymbol$i = wellKnownSymbol$l; var TO_STRING_TAG$2 = wellKnownSymbol$i("toStringTag"); var $Object$1 = Object; var CORRECT_ARGUMENTS = classofRaw$1(/* @__PURE__ */ function() { return arguments; }()) === "Arguments"; var tryGet = function(it, key) { try { return it[key]; } catch (error) { } }; var classof$7 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function(it) { var O, tag, result; return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$2)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw$1(O) : (result = classofRaw$1(O)) === "Object" && isCallable$c(O.callee) ? "Arguments" : result; }; var uncurryThis$b = functionUncurryThis; var fails$a = fails$j; var isCallable$b = isCallable$n; var classof$6 = classof$7; var getBuiltIn$a = getBuiltIn$d; var inspectSource$1 = inspectSource$3; var noop$1 = function() { }; var construct = getBuiltIn$a("Reflect", "construct"); var constructorRegExp = /^\s*(?:class|function)\b/; var exec$1 = uncurryThis$b(constructorRegExp.exec); var INCORRECT_TO_STRING = !constructorRegExp.test(noop$1); var isConstructorModern = function isConstructor(argument) { if (!isCallable$b(argument)) return false; try { construct(noop$1, [], argument); return true; } catch (error) { return false; } }; var isConstructorLegacy = function isConstructor2(argument) { if (!isCallable$b(argument)) return false; switch (classof$6(argument)) { case "AsyncFunction": case "GeneratorFunction": case "AsyncGeneratorFunction": return false; } try { return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument)); } catch (error) { return true; } }; isConstructorLegacy.sham = true; var isConstructor$2 = !construct || fails$a(function() { var called; return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() { called = true; }) || called; }) ? isConstructorLegacy : isConstructorModern; var isArray$2 = isArray$3; var isConstructor$1 = isConstructor$2; var isObject$7 = isObject$d; var wellKnownSymbol$h = wellKnownSymbol$l; var SPECIES$4 = wellKnownSymbol$h("species"); var $Array = Array; var arraySpeciesConstructor$1 = function(originalArray) { var C2; if (isArray$2(originalArray)) { C2 = originalArray.constructor; if (isConstructor$1(C2) && (C2 === $Array || isArray$2(C2.prototype))) C2 = void 0; else if (isObject$7(C2)) { C2 = C2[SPECIES$4]; if (C2 === null) C2 = void 0; } } return C2 === void 0 ? $Array : C2; }; var arraySpeciesConstructor = arraySpeciesConstructor$1; var arraySpeciesCreate$2 = function(originalArray, length) { return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); }; var fails$9 = fails$j; var wellKnownSymbol$g = wellKnownSymbol$l; var V8_VERSION$2 = environmentV8Version; var SPECIES$3 = wellKnownSymbol$g("species"); var arrayMethodHasSpeciesSupport$1 = function(METHOD_NAME) { return V8_VERSION$2 >= 51 || !fails$9(function() { var array = []; var constructor = array.constructor = {}; constructor[SPECIES$3] = function() { return { foo: 1 }; }; return array[METHOD_NAME](Boolean).foo !== 1; }); }; var $$l = _export; var fails$8 = fails$j; var isArray$1 = isArray$3; var isObject$6 = isObject$d; var toObject$3 = toObject$5; var lengthOfArrayLike$2 = lengthOfArrayLike$4; var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; var createProperty = createProperty$1; var arraySpeciesCreate$1 = arraySpeciesCreate$2; var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; var wellKnownSymbol$f = wellKnownSymbol$l; var V8_VERSION$1 = environmentV8Version; var IS_CONCAT_SPREADABLE = wellKnownSymbol$f("isConcatSpreadable"); var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$8(function() { var array = []; array[IS_CONCAT_SPREADABLE] = false; return array.concat()[0] !== array; }); var isConcatSpreadable = function(O) { if (!isObject$6(O)) return false; var spreadable = O[IS_CONCAT_SPREADABLE]; return spreadable !== void 0 ? !!spreadable : isArray$1(O); }; var FORCED$2 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport("concat"); $$l({ target: "Array", proto: true, arity: 1, forced: FORCED$2 }, { // eslint-disable-next-line no-unused-vars -- required for `.length` concat: function concat2(arg) { var O = toObject$3(this); var A2 = arraySpeciesCreate$1(O, 0); var n = 0; var i, k, length, len, E; for (i = -1, length = arguments.length; i < length; i++) { E = i === -1 ? O : arguments[i]; if (isConcatSpreadable(E)) { len = lengthOfArrayLike$2(E); doesNotExceedSafeInteger(n + len); for (k = 0; k < len; k++, n++) if (k in E) createProperty(A2, n, E[k]); } else { doesNotExceedSafeInteger(n + 1); createProperty(A2, n++, E); } } A2.length = n; return A2; } }); var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport; var classof$5 = classof$7; var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString2() { return "[object " + classof$5(this) + "]"; }; var TO_STRING_TAG_SUPPORT = toStringTagSupport; var defineBuiltIn$7 = defineBuiltIn$9; var toString$7 = objectToString; if (!TO_STRING_TAG_SUPPORT) { defineBuiltIn$7(Object.prototype, "toString", toString$7, { unsafe: true }); } var classof$4 = classof$7; var $String$2 = String; var toString$6 = function(argument) { if (classof$4(argument) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string"); return $String$2(argument); }; var objectDefineProperties = {}; var internalObjectKeys = objectKeysInternal; var enumBugKeys$1 = enumBugKeys$3; var objectKeys$2 = Object.keys || function keys2(O) { return internalObjectKeys(O, enumBugKeys$1); }; var DESCRIPTORS$5 = descriptors; var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; var definePropertyModule$1 = objectDefineProperty; var anObject$7 = anObject$a; var toIndexedObject$3 = toIndexedObject$7; var objectKeys$1 = objectKeys$2; objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { anObject$7(O); var props = toIndexedObject$3(Properties); var keys3 = objectKeys$1(Properties); var length = keys3.length; var index = 0; var key; while (length > index) definePropertyModule$1.f(O, key = keys3[index++], props[key]); return O; }; var getBuiltIn$9 = getBuiltIn$d; var html$2 = getBuiltIn$9("document", "documentElement"); var anObject$6 = anObject$a; var definePropertiesModule$1 = objectDefineProperties; var enumBugKeys = enumBugKeys$3; var hiddenKeys$1 = hiddenKeys$5; var html$1 = html$2; var documentCreateElement$1 = documentCreateElement$2; var sharedKey$2 = sharedKey$4; var GT = ">"; var LT = "<"; var PROTOTYPE$1 = "prototype"; var SCRIPT = "script"; var IE_PROTO$1 = sharedKey$2("IE_PROTO"); var EmptyConstructor = function() { }; var scriptTag = function(content) { return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT; }; var NullProtoObjectViaActiveX = function(activeXDocument2) { activeXDocument2.write(scriptTag("")); activeXDocument2.close(); var temp = activeXDocument2.parentWindow.Object; activeXDocument2 = null; return temp; }; var NullProtoObjectViaIFrame = function() { var iframe = documentCreateElement$1("iframe"); var JS = "java" + SCRIPT + ":"; var iframeDocument; iframe.style.display = "none"; html$1.appendChild(iframe); iframe.src = String(JS); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(scriptTag("document.F=Object")); iframeDocument.close(); return iframeDocument.F; }; var activeXDocument; var NullProtoObject = function() { try { activeXDocument = new ActiveXObject("htmlfile"); } catch (error) { } NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); var length = enumBugKeys.length; while (length--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys[length]]; return NullProtoObject(); }; hiddenKeys$1[IE_PROTO$1] = true; var objectCreate = Object.create || function create(O, Properties) { var result; if (O !== null) { EmptyConstructor[PROTOTYPE$1] = anObject$6(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE$1] = null; result[IE_PROTO$1] = O; } else result = NullProtoObject(); return Properties === void 0 ? result : definePropertiesModule$1.f(result, Properties); }; var objectGetOwnPropertyNamesExternal = {}; var uncurryThis$a = functionUncurryThis; var arraySlice$3 = uncurryThis$a([].slice); var classof$3 = classofRaw$2; var toIndexedObject$2 = toIndexedObject$7; var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f; var arraySlice$2 = arraySlice$3; var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function(it) { try { return $getOwnPropertyNames$1(it); } catch (error) { return arraySlice$2(windowNames); } }; objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames2(it) { return windowNames && classof$3(it) === "Window" ? getWindowNames(it) : $getOwnPropertyNames$1(toIndexedObject$2(it)); }; var makeBuiltIn = makeBuiltInExports; var defineProperty$4 = objectDefineProperty; var defineBuiltInAccessor$3 = function(target, name, descriptor) { if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true }); if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true }); return defineProperty$4.f(target, name, descriptor); }; var wellKnownSymbolWrapped = {}; var wellKnownSymbol$e = wellKnownSymbol$l; wellKnownSymbolWrapped.f = wellKnownSymbol$e; var globalThis$e = globalThis_1; var path$3 = globalThis$e; var path$2 = path$3; var hasOwn$7 = hasOwnProperty_1; var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped; var defineProperty$3 = objectDefineProperty.f; var wellKnownSymbolDefine = function(NAME) { var Symbol2 = path$2.Symbol || (path$2.Symbol = {}); if (!hasOwn$7(Symbol2, NAME)) defineProperty$3(Symbol2, NAME, { value: wrappedWellKnownSymbolModule$1.f(NAME) }); }; var call$c = functionCall; var getBuiltIn$8 = getBuiltIn$d; var wellKnownSymbol$d = wellKnownSymbol$l; var defineBuiltIn$6 = defineBuiltIn$9; var symbolDefineToPrimitive = function() { var Symbol2 = getBuiltIn$8("Symbol"); var SymbolPrototype2 = Symbol2 && Symbol2.prototype; var valueOf = SymbolPrototype2 && SymbolPrototype2.valueOf; var TO_PRIMITIVE2 = wellKnownSymbol$d("toPrimitive"); if (SymbolPrototype2 && !SymbolPrototype2[TO_PRIMITIVE2]) { defineBuiltIn$6(SymbolPrototype2, TO_PRIMITIVE2, function(hint) { return call$c(valueOf, this); }, { arity: 1 }); } }; var defineProperty$2 = objectDefineProperty.f; var hasOwn$6 = hasOwnProperty_1; var wellKnownSymbol$c = wellKnownSymbol$l; var TO_STRING_TAG$1 = wellKnownSymbol$c("toStringTag"); var setToStringTag$9 = function(target, TAG, STATIC) { if (target && !STATIC) target = target.prototype; if (target && !hasOwn$6(target, TO_STRING_TAG$1)) { defineProperty$2(target, TO_STRING_TAG$1, { configurable: true, value: TAG }); } }; var classofRaw = classofRaw$2; var uncurryThis$9 = functionUncurryThis; var functionUncurryThisClause = function(fn) { if (classofRaw(fn) === "Function") return uncurryThis$9(fn); }; var uncurryThis$8 = functionUncurryThisClause; var aCallable$9 = aCallable$b; var NATIVE_BIND$1 = functionBindNative; var bind$5 = uncurryThis$8(uncurryThis$8.bind); var functionBindContext = function(fn, that) { aCallable$9(fn); return that === void 0 ? fn : NATIVE_BIND$1 ? bind$5(fn, that) : function() { return fn.apply(that, arguments); }; }; var bind$4 = functionBindContext; var uncurryThis$7 = functionUncurryThis; var IndexedObject = indexedObject; var toObject$2 = toObject$5; var lengthOfArrayLike$1 = lengthOfArrayLike$4; var arraySpeciesCreate = arraySpeciesCreate$2; var push$3 = uncurryThis$7([].push); var createMethod$1 = function(TYPE) { var IS_MAP = TYPE === 1; var IS_FILTER = TYPE === 2; var IS_SOME = TYPE === 3; var IS_EVERY = TYPE === 4; var IS_FIND_INDEX = TYPE === 6; var IS_FILTER_REJECT = TYPE === 7; var NO_HOLES = TYPE === 5 || IS_FIND_INDEX; return function($this, callbackfn, that, specificCreate) { var O = toObject$2($this); var self2 = IndexedObject(O); var length = lengthOfArrayLike$1(self2); var boundFunction = bind$4(callbackfn, that); var index = 0; var create4 = specificCreate || arraySpeciesCreate; var target = IS_MAP ? create4($this, length) : IS_FILTER || IS_FILTER_REJECT ? create4($this, 0) : void 0; var value, result; for (; length > index; index++) if (NO_HOLES || index in self2) { value = self2[index]; result = boundFunction(value, index, O); if (TYPE) { if (IS_MAP) target[index] = result; else if (result) switch (TYPE) { case 3: return true; case 5: return value; case 6: return index; case 2: push$3(target, value); } else switch (TYPE) { case 4: return false; case 7: push$3(target, value); } } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; }; }; var arrayIteration = { // `Array.prototype.forEach` method // https://tc39.es/ecma262/#sec-array.prototype.foreach forEach: createMethod$1(0), // `Array.prototype.map` method // https://tc39.es/ecma262/#sec-array.prototype.map map: createMethod$1(1), // `Array.prototype.filter` method // https://tc39.es/ecma262/#sec-array.prototype.filter filter: createMethod$1(2), // `Array.prototype.some` method // https://tc39.es/ecma262/#sec-array.prototype.some some: createMethod$1(3), // `Array.prototype.every` method // https://tc39.es/ecma262/#sec-array.prototype.every every: createMethod$1(4), // `Array.prototype.find` method // https://tc39.es/ecma262/#sec-array.prototype.find find: createMethod$1(5), // `Array.prototype.findIndex` method // https://tc39.es/ecma262/#sec-array.prototype.findIndex findIndex: createMethod$1(6), // `Array.prototype.filterReject` method // https://github.com/tc39/proposal-array-filtering filterReject: createMethod$1(7) }; var $$k = _export; var globalThis$d = globalThis_1; var call$b = functionCall; var uncurryThis$6 = functionUncurryThis; var DESCRIPTORS$4 = descriptors; var NATIVE_SYMBOL$4 = symbolConstructorDetection; var fails$7 = fails$j; var hasOwn$5 = hasOwnProperty_1; var isPrototypeOf$4 = objectIsPrototypeOf; var anObject$5 = anObject$a; var toIndexedObject$1 = toIndexedObject$7; var toPropertyKey = toPropertyKey$3; var $toString = toString$6; var createPropertyDescriptor$3 = createPropertyDescriptor$7; var nativeObjectCreate = objectCreate; var objectKeys = objectKeys$2; var getOwnPropertyNamesModule = objectGetOwnPropertyNames; var getOwnPropertyNamesExternal = objectGetOwnPropertyNamesExternal; var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; var definePropertyModule = objectDefineProperty; var definePropertiesModule = objectDefineProperties; var propertyIsEnumerableModule = objectPropertyIsEnumerable; var defineBuiltIn$5 = defineBuiltIn$9; var defineBuiltInAccessor$2 = defineBuiltInAccessor$3; var shared$2 = shared$6; var sharedKey$1 = sharedKey$4; var hiddenKeys = hiddenKeys$5; var uid = uid$3; var wellKnownSymbol$b = wellKnownSymbol$l; var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped; var defineWellKnownSymbol$d = wellKnownSymbolDefine; var defineSymbolToPrimitive$1 = symbolDefineToPrimitive; var setToStringTag$8 = setToStringTag$9; var InternalStateModule$3 = internalState; var $forEach = arrayIteration.forEach; var HIDDEN = sharedKey$1("hidden"); var SYMBOL = "Symbol"; var PROTOTYPE = "prototype"; var setInternalState$3 = InternalStateModule$3.set; var getInternalState$2 = InternalStateModule$3.getterFor(SYMBOL); var ObjectPrototype$1 = Object[PROTOTYPE]; var $Symbol = globalThis$d.Symbol; var SymbolPrototype$1 = $Symbol && $Symbol[PROTOTYPE]; var RangeError = globalThis$d.RangeError; var TypeError$2 = globalThis$d.TypeError; var QObject = globalThis$d.QObject; var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var nativeDefineProperty = definePropertyModule.f; var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f; var nativePropertyIsEnumerable = propertyIsEnumerableModule.f; var push$2 = uncurryThis$6([].push); var AllSymbols = shared$2("symbols"); var ObjectPrototypeSymbols = shared$2("op-symbols"); var WellKnownSymbolsStore = shared$2("wks"); var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; var fallbackDefineProperty = function(O, P, Attributes) { var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype$1, P); if (ObjectPrototypeDescriptor) delete ObjectPrototype$1[P]; nativeDefineProperty(O, P, Attributes); if (ObjectPrototypeDescriptor && O !== ObjectPrototype$1) { nativeDefineProperty(ObjectPrototype$1, P, ObjectPrototypeDescriptor); } }; var setSymbolDescriptor = DESCRIPTORS$4 && fails$7(function() { return nativeObjectCreate(nativeDefineProperty({}, "a", { get: function() { return nativeDefineProperty(this, "a", { value: 7 }).a; } })).a !== 7; }) ? fallbackDefineProperty : nativeDefineProperty; var wrap = function(tag, description) { var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype$1); setInternalState$3(symbol, { type: SYMBOL, tag, description }); if (!DESCRIPTORS$4) symbol.description = description; return symbol; }; var $defineProperty = function defineProperty3(O, P, Attributes) { if (O === ObjectPrototype$1) $defineProperty(ObjectPrototypeSymbols, P, Attributes); anObject$5(O); var key = toPropertyKey(P); anObject$5(Attributes); if (hasOwn$5(AllSymbols, key)) { if (!Attributes.enumerable) { if (!hasOwn$5(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$3(1, nativeObjectCreate(null))); O[HIDDEN][key] = true; } else { if (hasOwn$5(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false; Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$3(0, false) }); } return setSymbolDescriptor(O, key, Attributes); } return nativeDefineProperty(O, key, Attributes); }; var $defineProperties = function defineProperties2(O, Properties) { anObject$5(O); var properties = toIndexedObject$1(Properties); var keys3 = objectKeys(properties).concat($getOwnPropertySymbols(properties)); $forEach(keys3, function(key) { if (!DESCRIPTORS$4 || call$b($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]); }); return O; }; var $create = function create2(O, Properties) { return Properties === void 0 ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); }; var $propertyIsEnumerable = function propertyIsEnumerable2(V2) { var P = toPropertyKey(V2); var enumerable = call$b(nativePropertyIsEnumerable, this, P); if (this === ObjectPrototype$1 && hasOwn$5(AllSymbols, P) && !hasOwn$5(ObjectPrototypeSymbols, P)) return false; return enumerable || !hasOwn$5(this, P) || !hasOwn$5(AllSymbols, P) || hasOwn$5(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true; }; var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor2(O, P) { var it = toIndexedObject$1(O); var key = toPropertyKey(P); if (it === ObjectPrototype$1 && hasOwn$5(AllSymbols, key) && !hasOwn$5(ObjectPrototypeSymbols, key)) return; var descriptor = nativeGetOwnPropertyDescriptor(it, key); if (descriptor && hasOwn$5(AllSymbols, key) && !(hasOwn$5(it, HIDDEN) && it[HIDDEN][key])) { descriptor.enumerable = true; } return descriptor; }; var $getOwnPropertyNames = function getOwnPropertyNames3(O) { var names = nativeGetOwnPropertyNames(toIndexedObject$1(O)); var result = []; $forEach(names, function(key) { if (!hasOwn$5(AllSymbols, key) && !hasOwn$5(hiddenKeys, key)) push$2(result, key); }); return result; }; var $getOwnPropertySymbols = function(O) { var IS_OBJECT_PROTOTYPE = O === ObjectPrototype$1; var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject$1(O)); var result = []; $forEach(names, function(key) { if (hasOwn$5(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn$5(ObjectPrototype$1, key))) { push$2(result, AllSymbols[key]); } }); return result; }; if (!NATIVE_SYMBOL$4) { $Symbol = function Symbol2() { if (isPrototypeOf$4(SymbolPrototype$1, this)) throw new TypeError$2("Symbol is not a constructor"); var description = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]); var tag = uid(description); var setter = function(value) { var $this = this === void 0 ? globalThis$d : this; if ($this === ObjectPrototype$1) call$b(setter, ObjectPrototypeSymbols, value); if (hasOwn$5($this, HIDDEN) && hasOwn$5($this[HIDDEN], tag)) $this[HIDDEN][tag] = false; var descriptor = createPro