(() => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a4, b3) => {
for (var prop in b3 || (b3 = {}))
if (__hasOwnProp.call(b3, prop))
__defNormalProp(a4, prop, b3[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b3)) {
if (__propIsEnum.call(b3, prop))
__defNormalProp(a4, prop, b3[prop]);
}
return a4;
};
var __spreadProps = (a4, b3) => __defProps(a4, __getOwnPropDescs(b3));
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __require = /* @__PURE__ */ ((x3) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x3, {
get: (a4, b3) => (typeof require !== "undefined" ? require : a4)[b3]
}) : x3)(function(x3) {
if (typeof require !== "undefined")
return require.apply(this, arguments);
throw new Error('Dynamic require of "' + x3 + '" is not supported');
});
var __esm = (fn3, res) => function __init() {
return fn3 && (res = (0, fn3[__getOwnPropNames(fn3)[0]])(fn3 = 0)), res;
};
var __commonJS = (cb, mod) => function __require2() {
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 __reExport = (target, module2, copyDefault, desc) => {
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
for (let key of __getOwnPropNames(module2))
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
}
return target;
};
var __toESM = (module2, isNodeMode) => {
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
};
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var __async = (__this, __arguments, generator) => {
return new Promise((resolve3, reject) => {
var fulfilled = (value) => {
try {
step(generator.next(value));
} catch (e4) {
reject(e4);
}
};
var rejected = (value) => {
try {
step(generator.throw(value));
} catch (e4) {
reject(e4);
}
};
var step = (x3) => x3.done ? resolve3(x3.value) : Promise.resolve(x3.value).then(fulfilled, rejected);
step((generator = generator.apply(__this, __arguments)).next());
});
};
// node_modules/core-js/internals/global.js
var require_global = __commonJS({
"node_modules/core-js/internals/global.js"(exports2, module2) {
var check = function(it2) {
return it2 && it2.Math == Math && it2;
};
module2.exports = check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || check(typeof self == "object" && self) || check(typeof global == "object" && global) || function() {
return this;
}() || Function("return this")();
}
});
// node_modules/core-js/internals/fails.js
var require_fails = __commonJS({
"node_modules/core-js/internals/fails.js"(exports2, module2) {
module2.exports = function(exec) {
try {
return !!exec();
} catch (error2) {
return true;
}
};
}
});
// node_modules/core-js/internals/descriptors.js
var require_descriptors = __commonJS({
"node_modules/core-js/internals/descriptors.js"(exports2, module2) {
var fails = require_fails();
module2.exports = !fails(function() {
return Object.defineProperty({}, 1, { get: function() {
return 7;
} })[1] != 7;
});
}
});
// node_modules/core-js/internals/function-bind-native.js
var require_function_bind_native = __commonJS({
"node_modules/core-js/internals/function-bind-native.js"(exports2, module2) {
var fails = require_fails();
module2.exports = !fails(function() {
var test = function() {
}.bind();
return typeof test != "function" || test.hasOwnProperty("prototype");
});
}
});
// node_modules/core-js/internals/function-call.js
var require_function_call = __commonJS({
"node_modules/core-js/internals/function-call.js"(exports2, module2) {
var NATIVE_BIND = require_function_bind_native();
var call = Function.prototype.call;
module2.exports = NATIVE_BIND ? call.bind(call) : function() {
return call.apply(call, arguments);
};
}
});
// node_modules/core-js/internals/object-property-is-enumerable.js
var require_object_property_is_enumerable = __commonJS({
"node_modules/core-js/internals/object-property-is-enumerable.js"(exports2) {
"use strict";
var $propertyIsEnumerable = {}.propertyIsEnumerable;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
exports2.f = NASHORN_BUG ? function propertyIsEnumerable(V2) {
var descriptor = getOwnPropertyDescriptor(this, V2);
return !!descriptor && descriptor.enumerable;
} : $propertyIsEnumerable;
}
});
// node_modules/core-js/internals/create-property-descriptor.js
var require_create_property_descriptor = __commonJS({
"node_modules/core-js/internals/create-property-descriptor.js"(exports2, module2) {
module2.exports = function(bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value
};
};
}
});
// node_modules/core-js/internals/function-uncurry-this.js
var require_function_uncurry_this = __commonJS({
"node_modules/core-js/internals/function-uncurry-this.js"(exports2, module2) {
var NATIVE_BIND = require_function_bind_native();
var FunctionPrototype = Function.prototype;
var bind2 = FunctionPrototype.bind;
var call = FunctionPrototype.call;
var uncurryThis = NATIVE_BIND && bind2.bind(call, call);
module2.exports = NATIVE_BIND ? function(fn3) {
return fn3 && uncurryThis(fn3);
} : function(fn3) {
return fn3 && function() {
return call.apply(fn3, arguments);
};
};
}
});
// node_modules/core-js/internals/classof-raw.js
var require_classof_raw = __commonJS({
"node_modules/core-js/internals/classof-raw.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var toString = uncurryThis({}.toString);
var stringSlice = uncurryThis("".slice);
module2.exports = function(it2) {
return stringSlice(toString(it2), 8, -1);
};
}
});
// node_modules/core-js/internals/indexed-object.js
var require_indexed_object = __commonJS({
"node_modules/core-js/internals/indexed-object.js"(exports2, module2) {
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var classof = require_classof_raw();
var Object2 = global2.Object;
var split = uncurryThis("".split);
module2.exports = fails(function() {
return !Object2("z").propertyIsEnumerable(0);
}) ? function(it2) {
return classof(it2) == "String" ? split(it2, "") : Object2(it2);
} : Object2;
}
});
// node_modules/core-js/internals/require-object-coercible.js
var require_require_object_coercible = __commonJS({
"node_modules/core-js/internals/require-object-coercible.js"(exports2, module2) {
var global2 = require_global();
var TypeError2 = global2.TypeError;
module2.exports = function(it2) {
if (it2 == void 0)
throw TypeError2("Can't call method on " + it2);
return it2;
};
}
});
// node_modules/core-js/internals/to-indexed-object.js
var require_to_indexed_object = __commonJS({
"node_modules/core-js/internals/to-indexed-object.js"(exports2, module2) {
var IndexedObject = require_indexed_object();
var requireObjectCoercible = require_require_object_coercible();
module2.exports = function(it2) {
return IndexedObject(requireObjectCoercible(it2));
};
}
});
// node_modules/core-js/internals/is-callable.js
var require_is_callable = __commonJS({
"node_modules/core-js/internals/is-callable.js"(exports2, module2) {
module2.exports = function(argument) {
return typeof argument == "function";
};
}
});
// node_modules/core-js/internals/is-object.js
var require_is_object = __commonJS({
"node_modules/core-js/internals/is-object.js"(exports2, module2) {
var isCallable = require_is_callable();
module2.exports = function(it2) {
return typeof it2 == "object" ? it2 !== null : isCallable(it2);
};
}
});
// node_modules/core-js/internals/get-built-in.js
var require_get_built_in = __commonJS({
"node_modules/core-js/internals/get-built-in.js"(exports2, module2) {
var global2 = require_global();
var isCallable = require_is_callable();
var aFunction = function(argument) {
return isCallable(argument) ? argument : void 0;
};
module2.exports = function(namespace, method) {
return arguments.length < 2 ? aFunction(global2[namespace]) : global2[namespace] && global2[namespace][method];
};
}
});
// node_modules/core-js/internals/object-is-prototype-of.js
var require_object_is_prototype_of = __commonJS({
"node_modules/core-js/internals/object-is-prototype-of.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
module2.exports = uncurryThis({}.isPrototypeOf);
}
});
// node_modules/core-js/internals/engine-user-agent.js
var require_engine_user_agent = __commonJS({
"node_modules/core-js/internals/engine-user-agent.js"(exports2, module2) {
var getBuiltIn = require_get_built_in();
module2.exports = getBuiltIn("navigator", "userAgent") || "";
}
});
// node_modules/core-js/internals/engine-v8-version.js
var require_engine_v8_version = __commonJS({
"node_modules/core-js/internals/engine-v8-version.js"(exports2, module2) {
var global2 = require_global();
var userAgent = require_engine_user_agent();
var process2 = global2.process;
var Deno = global2.Deno;
var versions = process2 && process2.versions || Deno && Deno.version;
var v8 = versions && versions.v8;
var match2;
var version4;
if (v8) {
match2 = v8.split(".");
version4 = match2[0] > 0 && match2[0] < 4 ? 1 : +(match2[0] + match2[1]);
}
if (!version4 && userAgent) {
match2 = userAgent.match(/Edge\/(\d+)/);
if (!match2 || match2[1] >= 74) {
match2 = userAgent.match(/Chrome\/(\d+)/);
if (match2)
version4 = +match2[1];
}
}
module2.exports = version4;
}
});
// node_modules/core-js/internals/native-symbol.js
var require_native_symbol = __commonJS({
"node_modules/core-js/internals/native-symbol.js"(exports2, module2) {
var V8_VERSION = require_engine_v8_version();
var fails = require_fails();
module2.exports = !!Object.getOwnPropertySymbols && !fails(function() {
var symbol = Symbol();
return !String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41;
});
}
});
// node_modules/core-js/internals/use-symbol-as-uid.js
var require_use_symbol_as_uid = __commonJS({
"node_modules/core-js/internals/use-symbol-as-uid.js"(exports2, module2) {
var NATIVE_SYMBOL = require_native_symbol();
module2.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol";
}
});
// node_modules/core-js/internals/is-symbol.js
var require_is_symbol = __commonJS({
"node_modules/core-js/internals/is-symbol.js"(exports2, module2) {
var global2 = require_global();
var getBuiltIn = require_get_built_in();
var isCallable = require_is_callable();
var isPrototypeOf = require_object_is_prototype_of();
var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
var Object2 = global2.Object;
module2.exports = USE_SYMBOL_AS_UID ? function(it2) {
return typeof it2 == "symbol";
} : function(it2) {
var $Symbol = getBuiltIn("Symbol");
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object2(it2));
};
}
});
// node_modules/core-js/internals/try-to-string.js
var require_try_to_string = __commonJS({
"node_modules/core-js/internals/try-to-string.js"(exports2, module2) {
var global2 = require_global();
var String2 = global2.String;
module2.exports = function(argument) {
try {
return String2(argument);
} catch (error2) {
return "Object";
}
};
}
});
// node_modules/core-js/internals/a-callable.js
var require_a_callable = __commonJS({
"node_modules/core-js/internals/a-callable.js"(exports2, module2) {
var global2 = require_global();
var isCallable = require_is_callable();
var tryToString = require_try_to_string();
var TypeError2 = global2.TypeError;
module2.exports = function(argument) {
if (isCallable(argument))
return argument;
throw TypeError2(tryToString(argument) + " is not a function");
};
}
});
// node_modules/core-js/internals/get-method.js
var require_get_method = __commonJS({
"node_modules/core-js/internals/get-method.js"(exports2, module2) {
var aCallable = require_a_callable();
module2.exports = function(V2, P3) {
var func = V2[P3];
return func == null ? void 0 : aCallable(func);
};
}
});
// node_modules/core-js/internals/ordinary-to-primitive.js
var require_ordinary_to_primitive = __commonJS({
"node_modules/core-js/internals/ordinary-to-primitive.js"(exports2, module2) {
var global2 = require_global();
var call = require_function_call();
var isCallable = require_is_callable();
var isObject4 = require_is_object();
var TypeError2 = global2.TypeError;
module2.exports = function(input, pref) {
var fn3, val;
if (pref === "string" && isCallable(fn3 = input.toString) && !isObject4(val = call(fn3, input)))
return val;
if (isCallable(fn3 = input.valueOf) && !isObject4(val = call(fn3, input)))
return val;
if (pref !== "string" && isCallable(fn3 = input.toString) && !isObject4(val = call(fn3, input)))
return val;
throw TypeError2("Can't convert object to primitive value");
};
}
});
// node_modules/core-js/internals/is-pure.js
var require_is_pure = __commonJS({
"node_modules/core-js/internals/is-pure.js"(exports2, module2) {
module2.exports = false;
}
});
// node_modules/core-js/internals/set-global.js
var require_set_global = __commonJS({
"node_modules/core-js/internals/set-global.js"(exports2, module2) {
var global2 = require_global();
var defineProperty = Object.defineProperty;
module2.exports = function(key, value) {
try {
defineProperty(global2, key, { value, configurable: true, writable: true });
} catch (error2) {
global2[key] = value;
}
return value;
};
}
});
// node_modules/core-js/internals/shared-store.js
var require_shared_store = __commonJS({
"node_modules/core-js/internals/shared-store.js"(exports2, module2) {
var global2 = require_global();
var setGlobal = require_set_global();
var SHARED = "__core-js_shared__";
var store = global2[SHARED] || setGlobal(SHARED, {});
module2.exports = store;
}
});
// node_modules/core-js/internals/shared.js
var require_shared = __commonJS({
"node_modules/core-js/internals/shared.js"(exports2, module2) {
var IS_PURE = require_is_pure();
var store = require_shared_store();
(module2.exports = function(key, value) {
return store[key] || (store[key] = value !== void 0 ? value : {});
})("versions", []).push({
version: "3.21.0",
mode: IS_PURE ? "pure" : "global",
copyright: "\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",
license: "https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE",
source: "https://github.com/zloirock/core-js"
});
}
});
// node_modules/core-js/internals/to-object.js
var require_to_object = __commonJS({
"node_modules/core-js/internals/to-object.js"(exports2, module2) {
var global2 = require_global();
var requireObjectCoercible = require_require_object_coercible();
var Object2 = global2.Object;
module2.exports = function(argument) {
return Object2(requireObjectCoercible(argument));
};
}
});
// node_modules/core-js/internals/has-own-property.js
var require_has_own_property = __commonJS({
"node_modules/core-js/internals/has-own-property.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var toObject = require_to_object();
var hasOwnProperty2 = uncurryThis({}.hasOwnProperty);
module2.exports = Object.hasOwn || function hasOwn(it2, key) {
return hasOwnProperty2(toObject(it2), key);
};
}
});
// node_modules/core-js/internals/uid.js
var require_uid = __commonJS({
"node_modules/core-js/internals/uid.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var id = 0;
var postfix = Math.random();
var toString = uncurryThis(1 .toString);
module2.exports = function(key) {
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString(++id + postfix, 36);
};
}
});
// node_modules/core-js/internals/well-known-symbol.js
var require_well_known_symbol = __commonJS({
"node_modules/core-js/internals/well-known-symbol.js"(exports2, module2) {
var global2 = require_global();
var shared = require_shared();
var hasOwn = require_has_own_property();
var uid2 = require_uid();
var NATIVE_SYMBOL = require_native_symbol();
var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
var WellKnownSymbolsStore = shared("wks");
var Symbol2 = global2.Symbol;
var symbolFor = Symbol2 && Symbol2["for"];
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2 : Symbol2 && Symbol2.withoutSetter || uid2;
module2.exports = function(name) {
if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == "string")) {
var description = "Symbol." + name;
if (NATIVE_SYMBOL && hasOwn(Symbol2, name)) {
WellKnownSymbolsStore[name] = Symbol2[name];
} else if (USE_SYMBOL_AS_UID && symbolFor) {
WellKnownSymbolsStore[name] = symbolFor(description);
} else {
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
}
}
return WellKnownSymbolsStore[name];
};
}
});
// node_modules/core-js/internals/to-primitive.js
var require_to_primitive = __commonJS({
"node_modules/core-js/internals/to-primitive.js"(exports2, module2) {
var global2 = require_global();
var call = require_function_call();
var isObject4 = require_is_object();
var isSymbol = require_is_symbol();
var getMethod = require_get_method();
var ordinaryToPrimitive = require_ordinary_to_primitive();
var wellKnownSymbol = require_well_known_symbol();
var TypeError2 = global2.TypeError;
var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
module2.exports = function(input, pref) {
if (!isObject4(input) || isSymbol(input))
return input;
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
var result;
if (exoticToPrim) {
if (pref === void 0)
pref = "default";
result = call(exoticToPrim, input, pref);
if (!isObject4(result) || isSymbol(result))
return result;
throw TypeError2("Can't convert object to primitive value");
}
if (pref === void 0)
pref = "number";
return ordinaryToPrimitive(input, pref);
};
}
});
// node_modules/core-js/internals/to-property-key.js
var require_to_property_key = __commonJS({
"node_modules/core-js/internals/to-property-key.js"(exports2, module2) {
var toPrimitive = require_to_primitive();
var isSymbol = require_is_symbol();
module2.exports = function(argument) {
var key = toPrimitive(argument, "string");
return isSymbol(key) ? key : key + "";
};
}
});
// node_modules/core-js/internals/document-create-element.js
var require_document_create_element = __commonJS({
"node_modules/core-js/internals/document-create-element.js"(exports2, module2) {
var global2 = require_global();
var isObject4 = require_is_object();
var document2 = global2.document;
var EXISTS = isObject4(document2) && isObject4(document2.createElement);
module2.exports = function(it2) {
return EXISTS ? document2.createElement(it2) : {};
};
}
});
// node_modules/core-js/internals/ie8-dom-define.js
var require_ie8_dom_define = __commonJS({
"node_modules/core-js/internals/ie8-dom-define.js"(exports2, module2) {
var DESCRIPTORS = require_descriptors();
var fails = require_fails();
var createElement2 = require_document_create_element();
module2.exports = !DESCRIPTORS && !fails(function() {
return Object.defineProperty(createElement2("div"), "a", {
get: function() {
return 7;
}
}).a != 7;
});
}
});
// node_modules/core-js/internals/object-get-own-property-descriptor.js
var require_object_get_own_property_descriptor = __commonJS({
"node_modules/core-js/internals/object-get-own-property-descriptor.js"(exports2) {
var DESCRIPTORS = require_descriptors();
var call = require_function_call();
var propertyIsEnumerableModule = require_object_property_is_enumerable();
var createPropertyDescriptor = require_create_property_descriptor();
var toIndexedObject = require_to_indexed_object();
var toPropertyKey = require_to_property_key();
var hasOwn = require_has_own_property();
var IE8_DOM_DEFINE = require_ie8_dom_define();
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
exports2.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O2, P3) {
O2 = toIndexedObject(O2);
P3 = toPropertyKey(P3);
if (IE8_DOM_DEFINE)
try {
return $getOwnPropertyDescriptor(O2, P3);
} catch (error2) {
}
if (hasOwn(O2, P3))
return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O2, P3), O2[P3]);
};
}
});
// node_modules/core-js/internals/v8-prototype-define-bug.js
var require_v8_prototype_define_bug = __commonJS({
"node_modules/core-js/internals/v8-prototype-define-bug.js"(exports2, module2) {
var DESCRIPTORS = require_descriptors();
var fails = require_fails();
module2.exports = DESCRIPTORS && fails(function() {
return Object.defineProperty(function() {
}, "prototype", {
value: 42,
writable: false
}).prototype != 42;
});
}
});
// node_modules/core-js/internals/an-object.js
var require_an_object = __commonJS({
"node_modules/core-js/internals/an-object.js"(exports2, module2) {
var global2 = require_global();
var isObject4 = require_is_object();
var String2 = global2.String;
var TypeError2 = global2.TypeError;
module2.exports = function(argument) {
if (isObject4(argument))
return argument;
throw TypeError2(String2(argument) + " is not an object");
};
}
});
// node_modules/core-js/internals/object-define-property.js
var require_object_define_property = __commonJS({
"node_modules/core-js/internals/object-define-property.js"(exports2) {
var global2 = require_global();
var DESCRIPTORS = require_descriptors();
var IE8_DOM_DEFINE = require_ie8_dom_define();
var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();
var anObject = require_an_object();
var toPropertyKey = require_to_property_key();
var TypeError2 = global2.TypeError;
var $defineProperty = Object.defineProperty;
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var ENUMERABLE = "enumerable";
var CONFIGURABLE = "configurable";
var WRITABLE = "writable";
exports2.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O2, P3, Attributes) {
anObject(O2);
P3 = toPropertyKey(P3);
anObject(Attributes);
if (typeof O2 === "function" && P3 === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
var current = $getOwnPropertyDescriptor(O2, P3);
if (current && current[WRITABLE]) {
O2[P3] = Attributes.value;
Attributes = {
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
writable: false
};
}
}
return $defineProperty(O2, P3, Attributes);
} : $defineProperty : function defineProperty(O2, P3, Attributes) {
anObject(O2);
P3 = toPropertyKey(P3);
anObject(Attributes);
if (IE8_DOM_DEFINE)
try {
return $defineProperty(O2, P3, Attributes);
} catch (error2) {
}
if ("get" in Attributes || "set" in Attributes)
throw TypeError2("Accessors not supported");
if ("value" in Attributes)
O2[P3] = Attributes.value;
return O2;
};
}
});
// node_modules/core-js/internals/create-non-enumerable-property.js
var require_create_non_enumerable_property = __commonJS({
"node_modules/core-js/internals/create-non-enumerable-property.js"(exports2, module2) {
var DESCRIPTORS = require_descriptors();
var definePropertyModule = require_object_define_property();
var createPropertyDescriptor = require_create_property_descriptor();
module2.exports = DESCRIPTORS ? function(object, key, value) {
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
} : function(object, key, value) {
object[key] = value;
return object;
};
}
});
// node_modules/core-js/internals/inspect-source.js
var require_inspect_source = __commonJS({
"node_modules/core-js/internals/inspect-source.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var isCallable = require_is_callable();
var store = require_shared_store();
var functionToString = uncurryThis(Function.toString);
if (!isCallable(store.inspectSource)) {
store.inspectSource = function(it2) {
return functionToString(it2);
};
}
module2.exports = store.inspectSource;
}
});
// node_modules/core-js/internals/native-weak-map.js
var require_native_weak_map = __commonJS({
"node_modules/core-js/internals/native-weak-map.js"(exports2, module2) {
var global2 = require_global();
var isCallable = require_is_callable();
var inspectSource = require_inspect_source();
var WeakMap2 = global2.WeakMap;
module2.exports = isCallable(WeakMap2) && /native code/.test(inspectSource(WeakMap2));
}
});
// node_modules/core-js/internals/shared-key.js
var require_shared_key = __commonJS({
"node_modules/core-js/internals/shared-key.js"(exports2, module2) {
var shared = require_shared();
var uid2 = require_uid();
var keys = shared("keys");
module2.exports = function(key) {
return keys[key] || (keys[key] = uid2(key));
};
}
});
// node_modules/core-js/internals/hidden-keys.js
var require_hidden_keys = __commonJS({
"node_modules/core-js/internals/hidden-keys.js"(exports2, module2) {
module2.exports = {};
}
});
// node_modules/core-js/internals/internal-state.js
var require_internal_state = __commonJS({
"node_modules/core-js/internals/internal-state.js"(exports2, module2) {
var NATIVE_WEAK_MAP = require_native_weak_map();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var isObject4 = require_is_object();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var hasOwn = require_has_own_property();
var shared = require_shared_store();
var sharedKey = require_shared_key();
var hiddenKeys = require_hidden_keys();
var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
var TypeError2 = global2.TypeError;
var WeakMap2 = global2.WeakMap;
var set2;
var get;
var has;
var enforce = function(it2) {
return has(it2) ? get(it2) : set2(it2, {});
};
var getterFor = function(TYPE) {
return function(it2) {
var state;
if (!isObject4(it2) || (state = get(it2)).type !== TYPE) {
throw TypeError2("Incompatible receiver, " + TYPE + " required");
}
return state;
};
};
if (NATIVE_WEAK_MAP || shared.state) {
store = shared.state || (shared.state = new WeakMap2());
wmget = uncurryThis(store.get);
wmhas = uncurryThis(store.has);
wmset = uncurryThis(store.set);
set2 = function(it2, metadata) {
if (wmhas(store, it2))
throw new TypeError2(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it2;
wmset(store, it2, metadata);
return metadata;
};
get = function(it2) {
return wmget(store, it2) || {};
};
has = function(it2) {
return wmhas(store, it2);
};
} else {
STATE = sharedKey("state");
hiddenKeys[STATE] = true;
set2 = function(it2, metadata) {
if (hasOwn(it2, STATE))
throw new TypeError2(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it2;
createNonEnumerableProperty(it2, STATE, metadata);
return metadata;
};
get = function(it2) {
return hasOwn(it2, STATE) ? it2[STATE] : {};
};
has = function(it2) {
return hasOwn(it2, STATE);
};
}
var store;
var wmget;
var wmhas;
var wmset;
var STATE;
module2.exports = {
set: set2,
get,
has,
enforce,
getterFor
};
}
});
// node_modules/core-js/internals/function-name.js
var require_function_name = __commonJS({
"node_modules/core-js/internals/function-name.js"(exports2, module2) {
var DESCRIPTORS = require_descriptors();
var hasOwn = require_has_own_property();
var FunctionPrototype = Function.prototype;
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
var EXISTS = hasOwn(FunctionPrototype, "name");
var PROPER = EXISTS && function something() {
}.name === "something";
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, "name").configurable);
module2.exports = {
EXISTS,
PROPER,
CONFIGURABLE
};
}
});
// node_modules/core-js/internals/redefine.js
var require_redefine = __commonJS({
"node_modules/core-js/internals/redefine.js"(exports2, module2) {
var global2 = require_global();
var isCallable = require_is_callable();
var hasOwn = require_has_own_property();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var setGlobal = require_set_global();
var inspectSource = require_inspect_source();
var InternalStateModule = require_internal_state();
var CONFIGURABLE_FUNCTION_NAME = require_function_name().CONFIGURABLE;
var getInternalState = InternalStateModule.get;
var enforceInternalState = InternalStateModule.enforce;
var TEMPLATE = String(String).split("String");
(module2.exports = function(O2, key, value, options) {
var unsafe = options ? !!options.unsafe : false;
var simple = options ? !!options.enumerable : false;
var noTargetGet = options ? !!options.noTargetGet : false;
var name = options && options.name !== void 0 ? options.name : key;
var state;
if (isCallable(value)) {
if (String(name).slice(0, 7) === "Symbol(") {
name = "[" + String(name).replace(/^Symbol\(([^)]*)\)/, "$1") + "]";
}
if (!hasOwn(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
createNonEnumerableProperty(value, "name", name);
}
state = enforceInternalState(value);
if (!state.source) {
state.source = TEMPLATE.join(typeof name == "string" ? name : "");
}
}
if (O2 === global2) {
if (simple)
O2[key] = value;
else
setGlobal(key, value);
return;
} else if (!unsafe) {
delete O2[key];
} else if (!noTargetGet && O2[key]) {
simple = true;
}
if (simple)
O2[key] = value;
else
createNonEnumerableProperty(O2, key, value);
})(Function.prototype, "toString", function toString() {
return isCallable(this) && getInternalState(this).source || inspectSource(this);
});
}
});
// node_modules/core-js/internals/to-integer-or-infinity.js
var require_to_integer_or_infinity = __commonJS({
"node_modules/core-js/internals/to-integer-or-infinity.js"(exports2, module2) {
var ceil = Math.ceil;
var floor = Math.floor;
module2.exports = function(argument) {
var number = +argument;
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
};
}
});
// node_modules/core-js/internals/to-absolute-index.js
var require_to_absolute_index = __commonJS({
"node_modules/core-js/internals/to-absolute-index.js"(exports2, module2) {
var toIntegerOrInfinity = require_to_integer_or_infinity();
var max2 = Math.max;
var min2 = Math.min;
module2.exports = function(index2, length) {
var integer = toIntegerOrInfinity(index2);
return integer < 0 ? max2(integer + length, 0) : min2(integer, length);
};
}
});
// node_modules/core-js/internals/to-length.js
var require_to_length = __commonJS({
"node_modules/core-js/internals/to-length.js"(exports2, module2) {
var toIntegerOrInfinity = require_to_integer_or_infinity();
var min2 = Math.min;
module2.exports = function(argument) {
return argument > 0 ? min2(toIntegerOrInfinity(argument), 9007199254740991) : 0;
};
}
});
// node_modules/core-js/internals/length-of-array-like.js
var require_length_of_array_like = __commonJS({
"node_modules/core-js/internals/length-of-array-like.js"(exports2, module2) {
var toLength = require_to_length();
module2.exports = function(obj) {
return toLength(obj.length);
};
}
});
// node_modules/core-js/internals/array-includes.js
var require_array_includes = __commonJS({
"node_modules/core-js/internals/array-includes.js"(exports2, module2) {
var toIndexedObject = require_to_indexed_object();
var toAbsoluteIndex = require_to_absolute_index();
var lengthOfArrayLike = require_length_of_array_like();
var createMethod = function(IS_INCLUDES) {
return function($this, el, fromIndex) {
var O2 = toIndexedObject($this);
var length = lengthOfArrayLike(O2);
var index2 = toAbsoluteIndex(fromIndex, length);
var value;
if (IS_INCLUDES && el != el)
while (length > index2) {
value = O2[index2++];
if (value != value)
return true;
}
else
for (; length > index2; index2++) {
if ((IS_INCLUDES || index2 in O2) && O2[index2] === el)
return IS_INCLUDES || index2 || 0;
}
return !IS_INCLUDES && -1;
};
};
module2.exports = {
includes: createMethod(true),
indexOf: createMethod(false)
};
}
});
// node_modules/core-js/internals/object-keys-internal.js
var require_object_keys_internal = __commonJS({
"node_modules/core-js/internals/object-keys-internal.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var hasOwn = require_has_own_property();
var toIndexedObject = require_to_indexed_object();
var indexOf2 = require_array_includes().indexOf;
var hiddenKeys = require_hidden_keys();
var push = uncurryThis([].push);
module2.exports = function(object, names2) {
var O2 = toIndexedObject(object);
var i4 = 0;
var result = [];
var key;
for (key in O2)
!hasOwn(hiddenKeys, key) && hasOwn(O2, key) && push(result, key);
while (names2.length > i4)
if (hasOwn(O2, key = names2[i4++])) {
~indexOf2(result, key) || push(result, key);
}
return result;
};
}
});
// node_modules/core-js/internals/enum-bug-keys.js
var require_enum_bug_keys = __commonJS({
"node_modules/core-js/internals/enum-bug-keys.js"(exports2, module2) {
module2.exports = [
"constructor",
"hasOwnProperty",
"isPrototypeOf",
"propertyIsEnumerable",
"toLocaleString",
"toString",
"valueOf"
];
}
});
// node_modules/core-js/internals/object-get-own-property-names.js
var require_object_get_own_property_names = __commonJS({
"node_modules/core-js/internals/object-get-own-property-names.js"(exports2) {
var internalObjectKeys = require_object_keys_internal();
var enumBugKeys = require_enum_bug_keys();
var hiddenKeys = enumBugKeys.concat("length", "prototype");
exports2.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O2) {
return internalObjectKeys(O2, hiddenKeys);
};
}
});
// node_modules/core-js/internals/object-get-own-property-symbols.js
var require_object_get_own_property_symbols = __commonJS({
"node_modules/core-js/internals/object-get-own-property-symbols.js"(exports2) {
exports2.f = Object.getOwnPropertySymbols;
}
});
// node_modules/core-js/internals/own-keys.js
var require_own_keys = __commonJS({
"node_modules/core-js/internals/own-keys.js"(exports2, module2) {
var getBuiltIn = require_get_built_in();
var uncurryThis = require_function_uncurry_this();
var getOwnPropertyNamesModule = require_object_get_own_property_names();
var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
var anObject = require_an_object();
var concat = uncurryThis([].concat);
module2.exports = getBuiltIn("Reflect", "ownKeys") || function ownKeys20(it2) {
var keys = getOwnPropertyNamesModule.f(anObject(it2));
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it2)) : keys;
};
}
});
// node_modules/core-js/internals/copy-constructor-properties.js
var require_copy_constructor_properties = __commonJS({
"node_modules/core-js/internals/copy-constructor-properties.js"(exports2, module2) {
var hasOwn = require_has_own_property();
var ownKeys20 = require_own_keys();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var definePropertyModule = require_object_define_property();
module2.exports = function(target, source, exceptions) {
var keys = ownKeys20(source);
var defineProperty = definePropertyModule.f;
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
for (var i4 = 0; i4 < keys.length; i4++) {
var key = keys[i4];
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
}
}
};
}
});
// node_modules/core-js/internals/is-forced.js
var require_is_forced = __commonJS({
"node_modules/core-js/internals/is-forced.js"(exports2, module2) {
var fails = require_fails();
var isCallable = require_is_callable();
var replacement = /#|\.prototype\./;
var isForced = function(feature, detection) {
var value = data[normalize(feature)];
return value == POLYFILL ? true : value == NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection;
};
var normalize = isForced.normalize = function(string) {
return String(string).replace(replacement, ".").toLowerCase();
};
var data = isForced.data = {};
var NATIVE = isForced.NATIVE = "N";
var POLYFILL = isForced.POLYFILL = "P";
module2.exports = isForced;
}
});
// node_modules/core-js/internals/export.js
var require_export = __commonJS({
"node_modules/core-js/internals/export.js"(exports2, module2) {
var global2 = require_global();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var createNonEnumerableProperty = require_create_non_enumerable_property();
var redefine = require_redefine();
var setGlobal = require_set_global();
var copyConstructorProperties = require_copy_constructor_properties();
var isForced = require_is_forced();
module2.exports = function(options, source) {
var TARGET = options.target;
var GLOBAL = options.global;
var STATIC = options.stat;
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
if (GLOBAL) {
target = global2;
} else if (STATIC) {
target = global2[TARGET] || setGlobal(TARGET, {});
} else {
target = (global2[TARGET] || {}).prototype;
}
if (target)
for (key in source) {
sourceProperty = source[key];
if (options.noTargetGet) {
descriptor = getOwnPropertyDescriptor(target, key);
targetProperty = descriptor && descriptor.value;
} else
targetProperty = target[key];
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
if (!FORCED && targetProperty !== void 0) {
if (typeof sourceProperty == typeof targetProperty)
continue;
copyConstructorProperties(sourceProperty, targetProperty);
}
if (options.sham || targetProperty && targetProperty.sham) {
createNonEnumerableProperty(sourceProperty, "sham", true);
}
redefine(target, key, sourceProperty, options);
}
};
}
});
// node_modules/core-js/internals/function-apply.js
var require_function_apply = __commonJS({
"node_modules/core-js/internals/function-apply.js"(exports2, module2) {
var NATIVE_BIND = require_function_bind_native();
var FunctionPrototype = Function.prototype;
var apply = FunctionPrototype.apply;
var call = FunctionPrototype.call;
module2.exports = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function() {
return call.apply(apply, arguments);
});
}
});
// node_modules/core-js/internals/is-array.js
var require_is_array = __commonJS({
"node_modules/core-js/internals/is-array.js"(exports2, module2) {
var classof = require_classof_raw();
module2.exports = Array.isArray || function isArray2(argument) {
return classof(argument) == "Array";
};
}
});
// node_modules/core-js/internals/to-string-tag-support.js
var require_to_string_tag_support = __commonJS({
"node_modules/core-js/internals/to-string-tag-support.js"(exports2, module2) {
var wellKnownSymbol = require_well_known_symbol();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var test = {};
test[TO_STRING_TAG] = "z";
module2.exports = String(test) === "[object z]";
}
});
// node_modules/core-js/internals/classof.js
var require_classof = __commonJS({
"node_modules/core-js/internals/classof.js"(exports2, module2) {
var global2 = require_global();
var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();
var isCallable = require_is_callable();
var classofRaw = require_classof_raw();
var wellKnownSymbol = require_well_known_symbol();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var Object2 = global2.Object;
var CORRECT_ARGUMENTS = classofRaw(function() {
return arguments;
}()) == "Arguments";
var tryGet = function(it2, key) {
try {
return it2[key];
} catch (error2) {
}
};
module2.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it2) {
var O2, tag, result;
return it2 === void 0 ? "Undefined" : it2 === null ? "Null" : typeof (tag = tryGet(O2 = Object2(it2), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O2) : (result = classofRaw(O2)) == "Object" && isCallable(O2.callee) ? "Arguments" : result;
};
}
});
// node_modules/core-js/internals/to-string.js
var require_to_string = __commonJS({
"node_modules/core-js/internals/to-string.js"(exports2, module2) {
var global2 = require_global();
var classof = require_classof();
var String2 = global2.String;
module2.exports = function(argument) {
if (classof(argument) === "Symbol")
throw TypeError("Cannot convert a Symbol value to a string");
return String2(argument);
};
}
});
// node_modules/core-js/internals/object-keys.js
var require_object_keys = __commonJS({
"node_modules/core-js/internals/object-keys.js"(exports2, module2) {
var internalObjectKeys = require_object_keys_internal();
var enumBugKeys = require_enum_bug_keys();
module2.exports = Object.keys || function keys(O2) {
return internalObjectKeys(O2, enumBugKeys);
};
}
});
// node_modules/core-js/internals/object-define-properties.js
var require_object_define_properties = __commonJS({
"node_modules/core-js/internals/object-define-properties.js"(exports2) {
var DESCRIPTORS = require_descriptors();
var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();
var definePropertyModule = require_object_define_property();
var anObject = require_an_object();
var toIndexedObject = require_to_indexed_object();
var objectKeys = require_object_keys();
exports2.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O2, Properties) {
anObject(O2);
var props = toIndexedObject(Properties);
var keys = objectKeys(Properties);
var length = keys.length;
var index2 = 0;
var key;
while (length > index2)
definePropertyModule.f(O2, key = keys[index2++], props[key]);
return O2;
};
}
});
// node_modules/core-js/internals/html.js
var require_html = __commonJS({
"node_modules/core-js/internals/html.js"(exports2, module2) {
var getBuiltIn = require_get_built_in();
module2.exports = getBuiltIn("document", "documentElement");
}
});
// node_modules/core-js/internals/object-create.js
var require_object_create = __commonJS({
"node_modules/core-js/internals/object-create.js"(exports2, module2) {
var anObject = require_an_object();
var definePropertiesModule = require_object_define_properties();
var enumBugKeys = require_enum_bug_keys();
var hiddenKeys = require_hidden_keys();
var html = require_html();
var documentCreateElement = require_document_create_element();
var sharedKey = require_shared_key();
var GT = ">";
var LT = "<";
var PROTOTYPE = "prototype";
var SCRIPT = "script";
var IE_PROTO = sharedKey("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("iframe");
var JS = "java" + SCRIPT + ":";
var iframeDocument;
iframe.style.display = "none";
html.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 (error2) {
}
NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
var length = enumBugKeys.length;
while (length--)
delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
return NullProtoObject();
};
hiddenKeys[IE_PROTO] = true;
module2.exports = Object.create || function create(O2, Properties) {
var result;
if (O2 !== null) {
EmptyConstructor[PROTOTYPE] = anObject(O2);
result = new EmptyConstructor();
EmptyConstructor[PROTOTYPE] = null;
result[IE_PROTO] = O2;
} else
result = NullProtoObject();
return Properties === void 0 ? result : definePropertiesModule.f(result, Properties);
};
}
});
// node_modules/core-js/internals/create-property.js
var require_create_property = __commonJS({
"node_modules/core-js/internals/create-property.js"(exports2, module2) {
"use strict";
var toPropertyKey = require_to_property_key();
var definePropertyModule = require_object_define_property();
var createPropertyDescriptor = require_create_property_descriptor();
module2.exports = function(object, key, value) {
var propertyKey = toPropertyKey(key);
if (propertyKey in object)
definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
else
object[propertyKey] = value;
};
}
});
// node_modules/core-js/internals/array-slice-simple.js
var require_array_slice_simple = __commonJS({
"node_modules/core-js/internals/array-slice-simple.js"(exports2, module2) {
var global2 = require_global();
var toAbsoluteIndex = require_to_absolute_index();
var lengthOfArrayLike = require_length_of_array_like();
var createProperty = require_create_property();
var Array2 = global2.Array;
var max2 = Math.max;
module2.exports = function(O2, start3, end2) {
var length = lengthOfArrayLike(O2);
var k3 = toAbsoluteIndex(start3, length);
var fin = toAbsoluteIndex(end2 === void 0 ? length : end2, length);
var result = Array2(max2(fin - k3, 0));
for (var n4 = 0; k3 < fin; k3++, n4++)
createProperty(result, n4, O2[k3]);
result.length = n4;
return result;
};
}
});
// node_modules/core-js/internals/object-get-own-property-names-external.js
var require_object_get_own_property_names_external = __commonJS({
"node_modules/core-js/internals/object-get-own-property-names-external.js"(exports2, module2) {
var classof = require_classof_raw();
var toIndexedObject = require_to_indexed_object();
var $getOwnPropertyNames = require_object_get_own_property_names().f;
var arraySlice = require_array_slice_simple();
var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function(it2) {
try {
return $getOwnPropertyNames(it2);
} catch (error2) {
return arraySlice(windowNames);
}
};
module2.exports.f = function getOwnPropertyNames(it2) {
return windowNames && classof(it2) == "Window" ? getWindowNames(it2) : $getOwnPropertyNames(toIndexedObject(it2));
};
}
});
// node_modules/core-js/internals/array-slice.js
var require_array_slice = __commonJS({
"node_modules/core-js/internals/array-slice.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
module2.exports = uncurryThis([].slice);
}
});
// node_modules/core-js/internals/well-known-symbol-wrapped.js
var require_well_known_symbol_wrapped = __commonJS({
"node_modules/core-js/internals/well-known-symbol-wrapped.js"(exports2) {
var wellKnownSymbol = require_well_known_symbol();
exports2.f = wellKnownSymbol;
}
});
// node_modules/core-js/internals/path.js
var require_path = __commonJS({
"node_modules/core-js/internals/path.js"(exports2, module2) {
var global2 = require_global();
module2.exports = global2;
}
});
// node_modules/core-js/internals/define-well-known-symbol.js
var require_define_well_known_symbol = __commonJS({
"node_modules/core-js/internals/define-well-known-symbol.js"(exports2, module2) {
var path = require_path();
var hasOwn = require_has_own_property();
var wrappedWellKnownSymbolModule = require_well_known_symbol_wrapped();
var defineProperty = require_object_define_property().f;
module2.exports = function(NAME) {
var Symbol2 = path.Symbol || (path.Symbol = {});
if (!hasOwn(Symbol2, NAME))
defineProperty(Symbol2, NAME, {
value: wrappedWellKnownSymbolModule.f(NAME)
});
};
}
});
// node_modules/core-js/internals/set-to-string-tag.js
var require_set_to_string_tag = __commonJS({
"node_modules/core-js/internals/set-to-string-tag.js"(exports2, module2) {
var defineProperty = require_object_define_property().f;
var hasOwn = require_has_own_property();
var wellKnownSymbol = require_well_known_symbol();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
module2.exports = function(target, TAG, STATIC) {
if (target && !STATIC)
target = target.prototype;
if (target && !hasOwn(target, TO_STRING_TAG)) {
defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
}
};
}
});
// node_modules/core-js/internals/function-bind-context.js
var require_function_bind_context = __commonJS({
"node_modules/core-js/internals/function-bind-context.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var aCallable = require_a_callable();
var NATIVE_BIND = require_function_bind_native();
var bind2 = uncurryThis(uncurryThis.bind);
module2.exports = function(fn3, that) {
aCallable(fn3);
return that === void 0 ? fn3 : NATIVE_BIND ? bind2(fn3, that) : function() {
return fn3.apply(that, arguments);
};
};
}
});
// node_modules/core-js/internals/is-constructor.js
var require_is_constructor = __commonJS({
"node_modules/core-js/internals/is-constructor.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var isCallable = require_is_callable();
var classof = require_classof();
var getBuiltIn = require_get_built_in();
var inspectSource = require_inspect_source();
var noop5 = function() {
};
var empty = [];
var construct = getBuiltIn("Reflect", "construct");
var constructorRegExp = /^\s*(?:class|function)\b/;
var exec = uncurryThis(constructorRegExp.exec);
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop5);
var isConstructorModern = function isConstructor(argument) {
if (!isCallable(argument))
return false;
try {
construct(noop5, empty, argument);
return true;
} catch (error2) {
return false;
}
};
var isConstructorLegacy = function isConstructor(argument) {
if (!isCallable(argument))
return false;
switch (classof(argument)) {
case "AsyncFunction":
case "GeneratorFunction":
case "AsyncGeneratorFunction":
return false;
}
try {
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
} catch (error2) {
return true;
}
};
isConstructorLegacy.sham = true;
module2.exports = !construct || fails(function() {
var called;
return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {
called = true;
}) || called;
}) ? isConstructorLegacy : isConstructorModern;
}
});
// node_modules/core-js/internals/array-species-constructor.js
var require_array_species_constructor = __commonJS({
"node_modules/core-js/internals/array-species-constructor.js"(exports2, module2) {
var global2 = require_global();
var isArray2 = require_is_array();
var isConstructor = require_is_constructor();
var isObject4 = require_is_object();
var wellKnownSymbol = require_well_known_symbol();
var SPECIES = wellKnownSymbol("species");
var Array2 = global2.Array;
module2.exports = function(originalArray) {
var C3;
if (isArray2(originalArray)) {
C3 = originalArray.constructor;
if (isConstructor(C3) && (C3 === Array2 || isArray2(C3.prototype)))
C3 = void 0;
else if (isObject4(C3)) {
C3 = C3[SPECIES];
if (C3 === null)
C3 = void 0;
}
}
return C3 === void 0 ? Array2 : C3;
};
}
});
// node_modules/core-js/internals/array-species-create.js
var require_array_species_create = __commonJS({
"node_modules/core-js/internals/array-species-create.js"(exports2, module2) {
var arraySpeciesConstructor = require_array_species_constructor();
module2.exports = function(originalArray, length) {
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
};
}
});
// node_modules/core-js/internals/array-iteration.js
var require_array_iteration = __commonJS({
"node_modules/core-js/internals/array-iteration.js"(exports2, module2) {
var bind2 = require_function_bind_context();
var uncurryThis = require_function_uncurry_this();
var IndexedObject = require_indexed_object();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var arraySpeciesCreate = require_array_species_create();
var push = uncurryThis([].push);
var createMethod = 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 O2 = toObject($this);
var self2 = IndexedObject(O2);
var boundFunction = bind2(callbackfn, that);
var length = lengthOfArrayLike(self2);
var index2 = 0;
var create = specificCreate || arraySpeciesCreate;
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : void 0;
var value, result;
for (; length > index2; index2++)
if (NO_HOLES || index2 in self2) {
value = self2[index2];
result = boundFunction(value, index2, O2);
if (TYPE) {
if (IS_MAP)
target[index2] = result;
else if (result)
switch (TYPE) {
case 3:
return true;
case 5:
return value;
case 6:
return index2;
case 2:
push(target, value);
}
else
switch (TYPE) {
case 4:
return false;
case 7:
push(target, value);
}
}
}
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
};
};
module2.exports = {
forEach: createMethod(0),
map: createMethod(1),
filter: createMethod(2),
some: createMethod(3),
every: createMethod(4),
find: createMethod(5),
findIndex: createMethod(6),
filterReject: createMethod(7)
};
}
});
// node_modules/core-js/modules/es.symbol.js
var require_es_symbol = __commonJS({
"node_modules/core-js/modules/es.symbol.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var getBuiltIn = require_get_built_in();
var apply = require_function_apply();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var IS_PURE = require_is_pure();
var DESCRIPTORS = require_descriptors();
var NATIVE_SYMBOL = require_native_symbol();
var fails = require_fails();
var hasOwn = require_has_own_property();
var isArray2 = require_is_array();
var isCallable = require_is_callable();
var isObject4 = require_is_object();
var isPrototypeOf = require_object_is_prototype_of();
var isSymbol = require_is_symbol();
var anObject = require_an_object();
var toObject = require_to_object();
var toIndexedObject = require_to_indexed_object();
var toPropertyKey = require_to_property_key();
var $toString = require_to_string();
var createPropertyDescriptor = require_create_property_descriptor();
var nativeObjectCreate = require_object_create();
var objectKeys = require_object_keys();
var getOwnPropertyNamesModule = require_object_get_own_property_names();
var getOwnPropertyNamesExternal = require_object_get_own_property_names_external();
var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var definePropertyModule = require_object_define_property();
var definePropertiesModule = require_object_define_properties();
var propertyIsEnumerableModule = require_object_property_is_enumerable();
var arraySlice = require_array_slice();
var redefine = require_redefine();
var shared = require_shared();
var sharedKey = require_shared_key();
var hiddenKeys = require_hidden_keys();
var uid2 = require_uid();
var wellKnownSymbol = require_well_known_symbol();
var wrappedWellKnownSymbolModule = require_well_known_symbol_wrapped();
var defineWellKnownSymbol = require_define_well_known_symbol();
var setToStringTag = require_set_to_string_tag();
var InternalStateModule = require_internal_state();
var $forEach = require_array_iteration().forEach;
var HIDDEN = sharedKey("hidden");
var SYMBOL = "Symbol";
var PROTOTYPE = "prototype";
var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(SYMBOL);
var ObjectPrototype = Object[PROTOTYPE];
var $Symbol = global2.Symbol;
var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];
var TypeError2 = global2.TypeError;
var QObject = global2.QObject;
var $stringify = getBuiltIn("JSON", "stringify");
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
var push = uncurryThis([].push);
var AllSymbols = shared("symbols");
var ObjectPrototypeSymbols = shared("op-symbols");
var StringToSymbolRegistry = shared("string-to-symbol-registry");
var SymbolToStringRegistry = shared("symbol-to-string-registry");
var WellKnownSymbolsStore = shared("wks");
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
var setSymbolDescriptor = DESCRIPTORS && fails(function() {
return nativeObjectCreate(nativeDefineProperty({}, "a", {
get: function() {
return nativeDefineProperty(this, "a", { value: 7 }).a;
}
})).a != 7;
}) ? function(O2, P3, Attributes) {
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P3);
if (ObjectPrototypeDescriptor)
delete ObjectPrototype[P3];
nativeDefineProperty(O2, P3, Attributes);
if (ObjectPrototypeDescriptor && O2 !== ObjectPrototype) {
nativeDefineProperty(ObjectPrototype, P3, ObjectPrototypeDescriptor);
}
} : nativeDefineProperty;
var wrap = function(tag, description) {
var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);
setInternalState(symbol, {
type: SYMBOL,
tag,
description
});
if (!DESCRIPTORS)
symbol.description = description;
return symbol;
};
var $defineProperty = function defineProperty(O2, P3, Attributes) {
if (O2 === ObjectPrototype)
$defineProperty(ObjectPrototypeSymbols, P3, Attributes);
anObject(O2);
var key = toPropertyKey(P3);
anObject(Attributes);
if (hasOwn(AllSymbols, key)) {
if (!Attributes.enumerable) {
if (!hasOwn(O2, HIDDEN))
nativeDefineProperty(O2, HIDDEN, createPropertyDescriptor(1, {}));
O2[HIDDEN][key] = true;
} else {
if (hasOwn(O2, HIDDEN) && O2[HIDDEN][key])
O2[HIDDEN][key] = false;
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
}
return setSymbolDescriptor(O2, key, Attributes);
}
return nativeDefineProperty(O2, key, Attributes);
};
var $defineProperties = function defineProperties(O2, Properties) {
anObject(O2);
var properties = toIndexedObject(Properties);
var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
$forEach(keys, function(key) {
if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key))
$defineProperty(O2, key, properties[key]);
});
return O2;
};
var $create = function create(O2, Properties) {
return Properties === void 0 ? nativeObjectCreate(O2) : $defineProperties(nativeObjectCreate(O2), Properties);
};
var $propertyIsEnumerable = function propertyIsEnumerable(V2) {
var P3 = toPropertyKey(V2);
var enumerable2 = call(nativePropertyIsEnumerable, this, P3);
if (this === ObjectPrototype && hasOwn(AllSymbols, P3) && !hasOwn(ObjectPrototypeSymbols, P3))
return false;
return enumerable2 || !hasOwn(this, P3) || !hasOwn(AllSymbols, P3) || hasOwn(this, HIDDEN) && this[HIDDEN][P3] ? enumerable2 : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O2, P3) {
var it2 = toIndexedObject(O2);
var key = toPropertyKey(P3);
if (it2 === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key))
return;
var descriptor = nativeGetOwnPropertyDescriptor(it2, key);
if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it2, HIDDEN) && it2[HIDDEN][key])) {
descriptor.enumerable = true;
}
return descriptor;
};
var $getOwnPropertyNames = function getOwnPropertyNames(O2) {
var names2 = nativeGetOwnPropertyNames(toIndexedObject(O2));
var result = [];
$forEach(names2, function(key) {
if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key))
push(result, key);
});
return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(O2) {
var IS_OBJECT_PROTOTYPE = O2 === ObjectPrototype;
var names2 = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O2));
var result = [];
$forEach(names2, function(key) {
if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) {
push(result, AllSymbols[key]);
}
});
return result;
};
if (!NATIVE_SYMBOL) {
$Symbol = function Symbol2() {
if (isPrototypeOf(SymbolPrototype, this))
throw TypeError2("Symbol is not a constructor");
var description = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]);
var tag = uid2(description);
var setter = function(value) {
if (this === ObjectPrototype)
call(setter, ObjectPrototypeSymbols, value);
if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag))
this[HIDDEN][tag] = false;
setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
};
if (DESCRIPTORS && USE_SETTER)
setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
return wrap(tag, description);
};
SymbolPrototype = $Symbol[PROTOTYPE];
redefine(SymbolPrototype, "toString", function toString() {
return getInternalState(this).tag;
});
redefine($Symbol, "withoutSetter", function(description) {
return wrap(uid2(description), description);
});
propertyIsEnumerableModule.f = $propertyIsEnumerable;
definePropertyModule.f = $defineProperty;
definePropertiesModule.f = $defineProperties;
getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
wrappedWellKnownSymbolModule.f = function(name) {
return wrap(wellKnownSymbol(name), name);
};
if (DESCRIPTORS) {
nativeDefineProperty(SymbolPrototype, "description", {
configurable: true,
get: function description() {
return getInternalState(this).description;
}
});
if (!IS_PURE) {
redefine(ObjectPrototype, "propertyIsEnumerable", $propertyIsEnumerable, { unsafe: true });
}
}
}
$3({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
Symbol: $Symbol
});
$forEach(objectKeys(WellKnownSymbolsStore), function(name) {
defineWellKnownSymbol(name);
});
$3({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
"for": function(key) {
var string = $toString(key);
if (hasOwn(StringToSymbolRegistry, string))
return StringToSymbolRegistry[string];
var symbol = $Symbol(string);
StringToSymbolRegistry[string] = symbol;
SymbolToStringRegistry[symbol] = string;
return symbol;
},
keyFor: function keyFor(sym) {
if (!isSymbol(sym))
throw TypeError2(sym + " is not a symbol");
if (hasOwn(SymbolToStringRegistry, sym))
return SymbolToStringRegistry[sym];
},
useSetter: function() {
USE_SETTER = true;
},
useSimple: function() {
USE_SETTER = false;
}
});
$3({ target: "Object", stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
create: $create,
defineProperty: $defineProperty,
defineProperties: $defineProperties,
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
});
$3({ target: "Object", stat: true, forced: !NATIVE_SYMBOL }, {
getOwnPropertyNames: $getOwnPropertyNames,
getOwnPropertySymbols: $getOwnPropertySymbols
});
$3({ target: "Object", stat: true, forced: fails(function() {
getOwnPropertySymbolsModule.f(1);
}) }, {
getOwnPropertySymbols: function getOwnPropertySymbols(it2) {
return getOwnPropertySymbolsModule.f(toObject(it2));
}
});
if ($stringify) {
FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function() {
var symbol = $Symbol();
return $stringify([symbol]) != "[null]" || $stringify({ a: symbol }) != "{}" || $stringify(Object(symbol)) != "{}";
});
$3({ target: "JSON", stat: true, forced: FORCED_JSON_STRINGIFY }, {
stringify: function stringify(it2, replacer, space) {
var args = arraySlice(arguments);
var $replacer = replacer;
if (!isObject4(replacer) && it2 === void 0 || isSymbol(it2))
return;
if (!isArray2(replacer))
replacer = function(key, value) {
if (isCallable($replacer))
value = call($replacer, this, key, value);
if (!isSymbol(value))
return value;
};
args[1] = replacer;
return apply($stringify, null, args);
}
});
}
var FORCED_JSON_STRINGIFY;
if (!SymbolPrototype[TO_PRIMITIVE]) {
valueOf = SymbolPrototype.valueOf;
redefine(SymbolPrototype, TO_PRIMITIVE, function(hint) {
return call(valueOf, this);
});
}
var valueOf;
setToStringTag($Symbol, SYMBOL);
hiddenKeys[HIDDEN] = true;
}
});
// node_modules/core-js/modules/es.symbol.description.js
var require_es_symbol_description = __commonJS({
"node_modules/core-js/modules/es.symbol.description.js"() {
"use strict";
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var hasOwn = require_has_own_property();
var isCallable = require_is_callable();
var isPrototypeOf = require_object_is_prototype_of();
var toString = require_to_string();
var defineProperty = require_object_define_property().f;
var copyConstructorProperties = require_copy_constructor_properties();
var NativeSymbol = global2.Symbol;
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
if (DESCRIPTORS && isCallable(NativeSymbol) && (!("description" in SymbolPrototype) || NativeSymbol().description !== void 0)) {
EmptyStringDescriptionStore = {};
SymbolWrapper = function Symbol2() {
var description = arguments.length < 1 || arguments[0] === void 0 ? void 0 : toString(arguments[0]);
var result = isPrototypeOf(SymbolPrototype, this) ? new NativeSymbol(description) : description === void 0 ? NativeSymbol() : NativeSymbol(description);
if (description === "")
EmptyStringDescriptionStore[result] = true;
return result;
};
copyConstructorProperties(SymbolWrapper, NativeSymbol);
SymbolWrapper.prototype = SymbolPrototype;
SymbolPrototype.constructor = SymbolWrapper;
NATIVE_SYMBOL = String(NativeSymbol("test")) == "Symbol(test)";
symbolToString = uncurryThis(SymbolPrototype.toString);
symbolValueOf = uncurryThis(SymbolPrototype.valueOf);
regexp = /^Symbol\((.*)\)[^)]+$/;
replace = uncurryThis("".replace);
stringSlice = uncurryThis("".slice);
defineProperty(SymbolPrototype, "description", {
configurable: true,
get: function description() {
var symbol = symbolValueOf(this);
var string = symbolToString(symbol);
if (hasOwn(EmptyStringDescriptionStore, symbol))
return "";
var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, "$1");
return desc === "" ? void 0 : desc;
}
});
$3({ global: true, forced: true }, {
Symbol: SymbolWrapper
});
}
var EmptyStringDescriptionStore;
var SymbolWrapper;
var NATIVE_SYMBOL;
var symbolToString;
var symbolValueOf;
var regexp;
var replace;
var stringSlice;
}
});
// node_modules/core-js/modules/es.symbol.async-iterator.js
var require_es_symbol_async_iterator = __commonJS({
"node_modules/core-js/modules/es.symbol.async-iterator.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("asyncIterator");
}
});
// node_modules/core-js/modules/es.symbol.has-instance.js
var require_es_symbol_has_instance = __commonJS({
"node_modules/core-js/modules/es.symbol.has-instance.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("hasInstance");
}
});
// node_modules/core-js/modules/es.symbol.is-concat-spreadable.js
var require_es_symbol_is_concat_spreadable = __commonJS({
"node_modules/core-js/modules/es.symbol.is-concat-spreadable.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("isConcatSpreadable");
}
});
// node_modules/core-js/modules/es.symbol.iterator.js
var require_es_symbol_iterator = __commonJS({
"node_modules/core-js/modules/es.symbol.iterator.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("iterator");
}
});
// node_modules/core-js/modules/es.symbol.match.js
var require_es_symbol_match = __commonJS({
"node_modules/core-js/modules/es.symbol.match.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("match");
}
});
// node_modules/core-js/modules/es.symbol.match-all.js
var require_es_symbol_match_all = __commonJS({
"node_modules/core-js/modules/es.symbol.match-all.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("matchAll");
}
});
// node_modules/core-js/modules/es.symbol.replace.js
var require_es_symbol_replace = __commonJS({
"node_modules/core-js/modules/es.symbol.replace.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("replace");
}
});
// node_modules/core-js/modules/es.symbol.search.js
var require_es_symbol_search = __commonJS({
"node_modules/core-js/modules/es.symbol.search.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("search");
}
});
// node_modules/core-js/modules/es.symbol.species.js
var require_es_symbol_species = __commonJS({
"node_modules/core-js/modules/es.symbol.species.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("species");
}
});
// node_modules/core-js/modules/es.symbol.split.js
var require_es_symbol_split = __commonJS({
"node_modules/core-js/modules/es.symbol.split.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("split");
}
});
// node_modules/core-js/modules/es.symbol.to-primitive.js
var require_es_symbol_to_primitive = __commonJS({
"node_modules/core-js/modules/es.symbol.to-primitive.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("toPrimitive");
}
});
// node_modules/core-js/modules/es.symbol.to-string-tag.js
var require_es_symbol_to_string_tag = __commonJS({
"node_modules/core-js/modules/es.symbol.to-string-tag.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("toStringTag");
}
});
// node_modules/core-js/modules/es.symbol.unscopables.js
var require_es_symbol_unscopables = __commonJS({
"node_modules/core-js/modules/es.symbol.unscopables.js"() {
var defineWellKnownSymbol = require_define_well_known_symbol();
defineWellKnownSymbol("unscopables");
}
});
// node_modules/core-js/internals/a-possible-prototype.js
var require_a_possible_prototype = __commonJS({
"node_modules/core-js/internals/a-possible-prototype.js"(exports2, module2) {
var global2 = require_global();
var isCallable = require_is_callable();
var String2 = global2.String;
var TypeError2 = global2.TypeError;
module2.exports = function(argument) {
if (typeof argument == "object" || isCallable(argument))
return argument;
throw TypeError2("Can't set " + String2(argument) + " as a prototype");
};
}
});
// node_modules/core-js/internals/object-set-prototype-of.js
var require_object_set_prototype_of = __commonJS({
"node_modules/core-js/internals/object-set-prototype-of.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var anObject = require_an_object();
var aPossiblePrototype = require_a_possible_prototype();
module2.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
var CORRECT_SETTER = false;
var test = {};
var setter;
try {
setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set);
setter(test, []);
CORRECT_SETTER = test instanceof Array;
} catch (error2) {
}
return function setPrototypeOf(O2, proto) {
anObject(O2);
aPossiblePrototype(proto);
if (CORRECT_SETTER)
setter(O2, proto);
else
O2.__proto__ = proto;
return O2;
};
}() : void 0);
}
});
// node_modules/core-js/internals/inherit-if-required.js
var require_inherit_if_required = __commonJS({
"node_modules/core-js/internals/inherit-if-required.js"(exports2, module2) {
var isCallable = require_is_callable();
var isObject4 = require_is_object();
var setPrototypeOf = require_object_set_prototype_of();
module2.exports = function($this, dummy, Wrapper) {
var NewTarget, NewTargetPrototype;
if (setPrototypeOf && isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject4(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype)
setPrototypeOf($this, NewTargetPrototype);
return $this;
};
}
});
// node_modules/core-js/internals/normalize-string-argument.js
var require_normalize_string_argument = __commonJS({
"node_modules/core-js/internals/normalize-string-argument.js"(exports2, module2) {
var toString = require_to_string();
module2.exports = function(argument, $default) {
return argument === void 0 ? arguments.length < 2 ? "" : $default : toString(argument);
};
}
});
// node_modules/core-js/internals/install-error-cause.js
var require_install_error_cause = __commonJS({
"node_modules/core-js/internals/install-error-cause.js"(exports2, module2) {
var isObject4 = require_is_object();
var createNonEnumerableProperty = require_create_non_enumerable_property();
module2.exports = function(O2, options) {
if (isObject4(options) && "cause" in options) {
createNonEnumerableProperty(O2, "cause", options.cause);
}
};
}
});
// node_modules/core-js/internals/clear-error-stack.js
var require_clear_error_stack = __commonJS({
"node_modules/core-js/internals/clear-error-stack.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var replace = uncurryThis("".replace);
var TEST = function(arg) {
return String(Error(arg).stack);
}("zxcasd");
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
module2.exports = function(stack, dropEntries) {
if (IS_V8_OR_CHAKRA_STACK && typeof stack == "string") {
while (dropEntries--)
stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, "");
}
return stack;
};
}
});
// node_modules/core-js/internals/error-stack-installable.js
var require_error_stack_installable = __commonJS({
"node_modules/core-js/internals/error-stack-installable.js"(exports2, module2) {
var fails = require_fails();
var createPropertyDescriptor = require_create_property_descriptor();
module2.exports = !fails(function() {
var error2 = Error("a");
if (!("stack" in error2))
return true;
Object.defineProperty(error2, "stack", createPropertyDescriptor(1, 7));
return error2.stack !== 7;
});
}
});
// node_modules/core-js/internals/wrap-error-constructor-with-cause.js
var require_wrap_error_constructor_with_cause = __commonJS({
"node_modules/core-js/internals/wrap-error-constructor-with-cause.js"(exports2, module2) {
"use strict";
var getBuiltIn = require_get_built_in();
var hasOwn = require_has_own_property();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var isPrototypeOf = require_object_is_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var copyConstructorProperties = require_copy_constructor_properties();
var inheritIfRequired = require_inherit_if_required();
var normalizeStringArgument = require_normalize_string_argument();
var installErrorCause = require_install_error_cause();
var clearErrorStack = require_clear_error_stack();
var ERROR_STACK_INSTALLABLE = require_error_stack_installable();
var IS_PURE = require_is_pure();
module2.exports = function(FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
var path = FULL_NAME.split(".");
var ERROR_NAME = path[path.length - 1];
var OriginalError = getBuiltIn.apply(null, path);
if (!OriginalError)
return;
var OriginalErrorPrototype = OriginalError.prototype;
if (!IS_PURE && hasOwn(OriginalErrorPrototype, "cause"))
delete OriginalErrorPrototype.cause;
if (!FORCED)
return OriginalError;
var BaseError = getBuiltIn("Error");
var WrappedError = wrapper(function(a4, b3) {
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b3 : a4, void 0);
var result = IS_AGGREGATE_ERROR ? new OriginalError(a4) : new OriginalError();
if (message !== void 0)
createNonEnumerableProperty(result, "message", message);
if (ERROR_STACK_INSTALLABLE)
createNonEnumerableProperty(result, "stack", clearErrorStack(result.stack, 2));
if (this && isPrototypeOf(OriginalErrorPrototype, this))
inheritIfRequired(result, this, WrappedError);
if (arguments.length > OPTIONS_POSITION)
installErrorCause(result, arguments[OPTIONS_POSITION]);
return result;
});
WrappedError.prototype = OriginalErrorPrototype;
if (ERROR_NAME !== "Error") {
if (setPrototypeOf)
setPrototypeOf(WrappedError, BaseError);
else
copyConstructorProperties(WrappedError, BaseError, { name: true });
}
copyConstructorProperties(WrappedError, OriginalError);
if (!IS_PURE)
try {
if (OriginalErrorPrototype.name !== ERROR_NAME) {
createNonEnumerableProperty(OriginalErrorPrototype, "name", ERROR_NAME);
}
OriginalErrorPrototype.constructor = WrappedError;
} catch (error2) {
}
return WrappedError;
};
}
});
// node_modules/core-js/modules/es.error.cause.js
var require_es_error_cause = __commonJS({
"node_modules/core-js/modules/es.error.cause.js"() {
var $3 = require_export();
var global2 = require_global();
var apply = require_function_apply();
var wrapErrorConstructorWithCause = require_wrap_error_constructor_with_cause();
var WEB_ASSEMBLY = "WebAssembly";
var WebAssembly = global2[WEB_ASSEMBLY];
var FORCED = Error("e", { cause: 7 }).cause !== 7;
var exportGlobalErrorCauseWrapper = function(ERROR_NAME, wrapper) {
var O2 = {};
O2[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
$3({ global: true, forced: FORCED }, O2);
};
var exportWebAssemblyErrorCauseWrapper = function(ERROR_NAME, wrapper) {
if (WebAssembly && WebAssembly[ERROR_NAME]) {
var O2 = {};
O2[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + "." + ERROR_NAME, wrapper, FORCED);
$3({ target: WEB_ASSEMBLY, stat: true, forced: FORCED }, O2);
}
};
exportGlobalErrorCauseWrapper("Error", function(init2) {
return function Error2(message) {
return apply(init2, this, arguments);
};
});
exportGlobalErrorCauseWrapper("EvalError", function(init2) {
return function EvalError(message) {
return apply(init2, this, arguments);
};
});
exportGlobalErrorCauseWrapper("RangeError", function(init2) {
return function RangeError2(message) {
return apply(init2, this, arguments);
};
});
exportGlobalErrorCauseWrapper("ReferenceError", function(init2) {
return function ReferenceError2(message) {
return apply(init2, this, arguments);
};
});
exportGlobalErrorCauseWrapper("SyntaxError", function(init2) {
return function SyntaxError(message) {
return apply(init2, this, arguments);
};
});
exportGlobalErrorCauseWrapper("TypeError", function(init2) {
return function TypeError2(message) {
return apply(init2, this, arguments);
};
});
exportGlobalErrorCauseWrapper("URIError", function(init2) {
return function URIError(message) {
return apply(init2, this, arguments);
};
});
exportWebAssemblyErrorCauseWrapper("CompileError", function(init2) {
return function CompileError(message) {
return apply(init2, this, arguments);
};
});
exportWebAssemblyErrorCauseWrapper("LinkError", function(init2) {
return function LinkError(message) {
return apply(init2, this, arguments);
};
});
exportWebAssemblyErrorCauseWrapper("RuntimeError", function(init2) {
return function RuntimeError(message) {
return apply(init2, this, arguments);
};
});
}
});
// node_modules/core-js/internals/error-to-string.js
var require_error_to_string = __commonJS({
"node_modules/core-js/internals/error-to-string.js"(exports2, module2) {
"use strict";
var DESCRIPTORS = require_descriptors();
var fails = require_fails();
var anObject = require_an_object();
var create = require_object_create();
var normalizeStringArgument = require_normalize_string_argument();
var nativeErrorToString = Error.prototype.toString;
var INCORRECT_TO_STRING = fails(function() {
if (DESCRIPTORS) {
var object = create(Object.defineProperty({}, "name", { get: function() {
return this === object;
} }));
if (nativeErrorToString.call(object) !== "true")
return true;
}
return nativeErrorToString.call({ message: 1, name: 2 }) !== "2: 1" || nativeErrorToString.call({}) !== "Error";
});
module2.exports = INCORRECT_TO_STRING ? function toString() {
var O2 = anObject(this);
var name = normalizeStringArgument(O2.name, "Error");
var message = normalizeStringArgument(O2.message);
return !name ? message : !message ? name : name + ": " + message;
} : nativeErrorToString;
}
});
// node_modules/core-js/modules/es.error.to-string.js
var require_es_error_to_string = __commonJS({
"node_modules/core-js/modules/es.error.to-string.js"() {
var redefine = require_redefine();
var errorToString = require_error_to_string();
var ErrorPrototype = Error.prototype;
if (ErrorPrototype.toString !== errorToString) {
redefine(ErrorPrototype, "toString", errorToString);
}
}
});
// node_modules/core-js/internals/correct-prototype-getter.js
var require_correct_prototype_getter = __commonJS({
"node_modules/core-js/internals/correct-prototype-getter.js"(exports2, module2) {
var fails = require_fails();
module2.exports = !fails(function() {
function F2() {
}
F2.prototype.constructor = null;
return Object.getPrototypeOf(new F2()) !== F2.prototype;
});
}
});
// node_modules/core-js/internals/object-get-prototype-of.js
var require_object_get_prototype_of = __commonJS({
"node_modules/core-js/internals/object-get-prototype-of.js"(exports2, module2) {
var global2 = require_global();
var hasOwn = require_has_own_property();
var isCallable = require_is_callable();
var toObject = require_to_object();
var sharedKey = require_shared_key();
var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter();
var IE_PROTO = sharedKey("IE_PROTO");
var Object2 = global2.Object;
var ObjectPrototype = Object2.prototype;
module2.exports = CORRECT_PROTOTYPE_GETTER ? Object2.getPrototypeOf : function(O2) {
var object = toObject(O2);
if (hasOwn(object, IE_PROTO))
return object[IE_PROTO];
var constructor = object.constructor;
if (isCallable(constructor) && object instanceof constructor) {
return constructor.prototype;
}
return object instanceof Object2 ? ObjectPrototype : null;
};
}
});
// node_modules/core-js/internals/iterators.js
var require_iterators = __commonJS({
"node_modules/core-js/internals/iterators.js"(exports2, module2) {
module2.exports = {};
}
});
// node_modules/core-js/internals/is-array-iterator-method.js
var require_is_array_iterator_method = __commonJS({
"node_modules/core-js/internals/is-array-iterator-method.js"(exports2, module2) {
var wellKnownSymbol = require_well_known_symbol();
var Iterators = require_iterators();
var ITERATOR = wellKnownSymbol("iterator");
var ArrayPrototype = Array.prototype;
module2.exports = function(it2) {
return it2 !== void 0 && (Iterators.Array === it2 || ArrayPrototype[ITERATOR] === it2);
};
}
});
// node_modules/core-js/internals/get-iterator-method.js
var require_get_iterator_method = __commonJS({
"node_modules/core-js/internals/get-iterator-method.js"(exports2, module2) {
var classof = require_classof();
var getMethod = require_get_method();
var Iterators = require_iterators();
var wellKnownSymbol = require_well_known_symbol();
var ITERATOR = wellKnownSymbol("iterator");
module2.exports = function(it2) {
if (it2 != void 0)
return getMethod(it2, ITERATOR) || getMethod(it2, "@@iterator") || Iterators[classof(it2)];
};
}
});
// node_modules/core-js/internals/get-iterator.js
var require_get_iterator = __commonJS({
"node_modules/core-js/internals/get-iterator.js"(exports2, module2) {
var global2 = require_global();
var call = require_function_call();
var aCallable = require_a_callable();
var anObject = require_an_object();
var tryToString = require_try_to_string();
var getIteratorMethod = require_get_iterator_method();
var TypeError2 = global2.TypeError;
module2.exports = function(argument, usingIterator) {
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
if (aCallable(iteratorMethod))
return anObject(call(iteratorMethod, argument));
throw TypeError2(tryToString(argument) + " is not iterable");
};
}
});
// node_modules/core-js/internals/iterator-close.js
var require_iterator_close = __commonJS({
"node_modules/core-js/internals/iterator-close.js"(exports2, module2) {
var call = require_function_call();
var anObject = require_an_object();
var getMethod = require_get_method();
module2.exports = function(iterator, kind, value) {
var innerResult, innerError;
anObject(iterator);
try {
innerResult = getMethod(iterator, "return");
if (!innerResult) {
if (kind === "throw")
throw value;
return value;
}
innerResult = call(innerResult, iterator);
} catch (error2) {
innerError = true;
innerResult = error2;
}
if (kind === "throw")
throw value;
if (innerError)
throw innerResult;
anObject(innerResult);
return value;
};
}
});
// node_modules/core-js/internals/iterate.js
var require_iterate = __commonJS({
"node_modules/core-js/internals/iterate.js"(exports2, module2) {
var global2 = require_global();
var bind2 = require_function_bind_context();
var call = require_function_call();
var anObject = require_an_object();
var tryToString = require_try_to_string();
var isArrayIteratorMethod = require_is_array_iterator_method();
var lengthOfArrayLike = require_length_of_array_like();
var isPrototypeOf = require_object_is_prototype_of();
var getIterator = require_get_iterator();
var getIteratorMethod = require_get_iterator_method();
var iteratorClose = require_iterator_close();
var TypeError2 = global2.TypeError;
var Result = function(stopped, result) {
this.stopped = stopped;
this.result = result;
};
var ResultPrototype = Result.prototype;
module2.exports = function(iterable, unboundFunction, options) {
var that = options && options.that;
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
var INTERRUPTED = !!(options && options.INTERRUPTED);
var fn3 = bind2(unboundFunction, that);
var iterator, iterFn, index2, length, result, next, step;
var stop = function(condition) {
if (iterator)
iteratorClose(iterator, "normal", condition);
return new Result(true, condition);
};
var callFn = function(value) {
if (AS_ENTRIES) {
anObject(value);
return INTERRUPTED ? fn3(value[0], value[1], stop) : fn3(value[0], value[1]);
}
return INTERRUPTED ? fn3(value, stop) : fn3(value);
};
if (IS_ITERATOR) {
iterator = iterable;
} else {
iterFn = getIteratorMethod(iterable);
if (!iterFn)
throw TypeError2(tryToString(iterable) + " is not iterable");
if (isArrayIteratorMethod(iterFn)) {
for (index2 = 0, length = lengthOfArrayLike(iterable); length > index2; index2++) {
result = callFn(iterable[index2]);
if (result && isPrototypeOf(ResultPrototype, result))
return result;
}
return new Result(false);
}
iterator = getIterator(iterable, iterFn);
}
next = iterator.next;
while (!(step = call(next, iterator)).done) {
try {
result = callFn(step.value);
} catch (error2) {
iteratorClose(iterator, "throw", error2);
}
if (typeof result == "object" && result && isPrototypeOf(ResultPrototype, result))
return result;
}
return new Result(false);
};
}
});
// node_modules/core-js/modules/es.aggregate-error.js
var require_es_aggregate_error = __commonJS({
"node_modules/core-js/modules/es.aggregate-error.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var isPrototypeOf = require_object_is_prototype_of();
var getPrototypeOf = require_object_get_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var copyConstructorProperties = require_copy_constructor_properties();
var create = require_object_create();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var createPropertyDescriptor = require_create_property_descriptor();
var clearErrorStack = require_clear_error_stack();
var installErrorCause = require_install_error_cause();
var iterate = require_iterate();
var normalizeStringArgument = require_normalize_string_argument();
var wellKnownSymbol = require_well_known_symbol();
var ERROR_STACK_INSTALLABLE = require_error_stack_installable();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var Error2 = global2.Error;
var push = [].push;
var $AggregateError = function AggregateError(errors, message) {
var options = arguments.length > 2 ? arguments[2] : void 0;
var isInstance = isPrototypeOf(AggregateErrorPrototype, this);
var that;
if (setPrototypeOf) {
that = setPrototypeOf(new Error2(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);
} else {
that = isInstance ? this : create(AggregateErrorPrototype);
createNonEnumerableProperty(that, TO_STRING_TAG, "Error");
}
if (message !== void 0)
createNonEnumerableProperty(that, "message", normalizeStringArgument(message));
if (ERROR_STACK_INSTALLABLE)
createNonEnumerableProperty(that, "stack", clearErrorStack(that.stack, 1));
installErrorCause(that, options);
var errorsArray = [];
iterate(errors, push, { that: errorsArray });
createNonEnumerableProperty(that, "errors", errorsArray);
return that;
};
if (setPrototypeOf)
setPrototypeOf($AggregateError, Error2);
else
copyConstructorProperties($AggregateError, Error2, { name: true });
var AggregateErrorPrototype = $AggregateError.prototype = create(Error2.prototype, {
constructor: createPropertyDescriptor(1, $AggregateError),
message: createPropertyDescriptor(1, ""),
name: createPropertyDescriptor(1, "AggregateError")
});
$3({ global: true }, {
AggregateError: $AggregateError
});
}
});
// node_modules/core-js/modules/es.aggregate-error.cause.js
var require_es_aggregate_error_cause = __commonJS({
"node_modules/core-js/modules/es.aggregate-error.cause.js"() {
var $3 = require_export();
var getBuiltIn = require_get_built_in();
var apply = require_function_apply();
var fails = require_fails();
var wrapErrorConstructorWithCause = require_wrap_error_constructor_with_cause();
var AGGREGATE_ERROR = "AggregateError";
var $AggregateError = getBuiltIn(AGGREGATE_ERROR);
var FORCED = !fails(function() {
return $AggregateError([1]).errors[0] !== 1;
}) && fails(function() {
return $AggregateError([1], AGGREGATE_ERROR, { cause: 7 }).cause !== 7;
});
$3({ global: true, forced: FORCED }, {
AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function(init2) {
return function AggregateError(errors, message) {
return apply(init2, this, arguments);
};
}, FORCED, true)
});
}
});
// node_modules/core-js/internals/add-to-unscopables.js
var require_add_to_unscopables = __commonJS({
"node_modules/core-js/internals/add-to-unscopables.js"(exports2, module2) {
var wellKnownSymbol = require_well_known_symbol();
var create = require_object_create();
var definePropertyModule = require_object_define_property();
var UNSCOPABLES = wellKnownSymbol("unscopables");
var ArrayPrototype = Array.prototype;
if (ArrayPrototype[UNSCOPABLES] == void 0) {
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
configurable: true,
value: create(null)
});
}
module2.exports = function(key) {
ArrayPrototype[UNSCOPABLES][key] = true;
};
}
});
// node_modules/core-js/modules/es.array.at.js
var require_es_array_at = __commonJS({
"node_modules/core-js/modules/es.array.at.js"() {
"use strict";
var $3 = require_export();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var addToUnscopables = require_add_to_unscopables();
$3({ target: "Array", proto: true }, {
at: function at2(index2) {
var O2 = toObject(this);
var len = lengthOfArrayLike(O2);
var relativeIndex = toIntegerOrInfinity(index2);
var k3 = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return k3 < 0 || k3 >= len ? void 0 : O2[k3];
}
});
addToUnscopables("at");
}
});
// node_modules/core-js/internals/array-method-has-species-support.js
var require_array_method_has_species_support = __commonJS({
"node_modules/core-js/internals/array-method-has-species-support.js"(exports2, module2) {
var fails = require_fails();
var wellKnownSymbol = require_well_known_symbol();
var V8_VERSION = require_engine_v8_version();
var SPECIES = wellKnownSymbol("species");
module2.exports = function(METHOD_NAME) {
return V8_VERSION >= 51 || !fails(function() {
var array = [];
var constructor = array.constructor = {};
constructor[SPECIES] = function() {
return { foo: 1 };
};
return array[METHOD_NAME](Boolean).foo !== 1;
});
};
}
});
// node_modules/core-js/modules/es.array.concat.js
var require_es_array_concat = __commonJS({
"node_modules/core-js/modules/es.array.concat.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var fails = require_fails();
var isArray2 = require_is_array();
var isObject4 = require_is_object();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var createProperty = require_create_property();
var arraySpeciesCreate = require_array_species_create();
var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
var wellKnownSymbol = require_well_known_symbol();
var V8_VERSION = require_engine_v8_version();
var IS_CONCAT_SPREADABLE = wellKnownSymbol("isConcatSpreadable");
var MAX_SAFE_INTEGER = 9007199254740991;
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = "Maximum allowed index exceeded";
var TypeError2 = global2.TypeError;
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function() {
var array = [];
array[IS_CONCAT_SPREADABLE] = false;
return array.concat()[0] !== array;
});
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("concat");
var isConcatSpreadable = function(O2) {
if (!isObject4(O2))
return false;
var spreadable = O2[IS_CONCAT_SPREADABLE];
return spreadable !== void 0 ? !!spreadable : isArray2(O2);
};
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
$3({ target: "Array", proto: true, forced: FORCED }, {
concat: function concat(arg) {
var O2 = toObject(this);
var A3 = arraySpeciesCreate(O2, 0);
var n4 = 0;
var i4, k3, length, len, E2;
for (i4 = -1, length = arguments.length; i4 < length; i4++) {
E2 = i4 === -1 ? O2 : arguments[i4];
if (isConcatSpreadable(E2)) {
len = lengthOfArrayLike(E2);
if (n4 + len > MAX_SAFE_INTEGER)
throw TypeError2(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
for (k3 = 0; k3 < len; k3++, n4++)
if (k3 in E2)
createProperty(A3, n4, E2[k3]);
} else {
if (n4 >= MAX_SAFE_INTEGER)
throw TypeError2(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
createProperty(A3, n4++, E2);
}
}
A3.length = n4;
return A3;
}
});
}
});
// node_modules/core-js/internals/array-copy-within.js
var require_array_copy_within = __commonJS({
"node_modules/core-js/internals/array-copy-within.js"(exports2, module2) {
"use strict";
var toObject = require_to_object();
var toAbsoluteIndex = require_to_absolute_index();
var lengthOfArrayLike = require_length_of_array_like();
var min2 = Math.min;
module2.exports = [].copyWithin || function copyWithin(target, start3) {
var O2 = toObject(this);
var len = lengthOfArrayLike(O2);
var to = toAbsoluteIndex(target, len);
var from = toAbsoluteIndex(start3, len);
var end2 = arguments.length > 2 ? arguments[2] : void 0;
var count = min2((end2 === void 0 ? len : toAbsoluteIndex(end2, len)) - from, len - to);
var inc = 1;
if (from < to && to < from + count) {
inc = -1;
from += count - 1;
to += count - 1;
}
while (count-- > 0) {
if (from in O2)
O2[to] = O2[from];
else
delete O2[to];
to += inc;
from += inc;
}
return O2;
};
}
});
// node_modules/core-js/modules/es.array.copy-within.js
var require_es_array_copy_within = __commonJS({
"node_modules/core-js/modules/es.array.copy-within.js"() {
var $3 = require_export();
var copyWithin = require_array_copy_within();
var addToUnscopables = require_add_to_unscopables();
$3({ target: "Array", proto: true }, {
copyWithin
});
addToUnscopables("copyWithin");
}
});
// node_modules/core-js/internals/array-method-is-strict.js
var require_array_method_is_strict = __commonJS({
"node_modules/core-js/internals/array-method-is-strict.js"(exports2, module2) {
"use strict";
var fails = require_fails();
module2.exports = function(METHOD_NAME, argument) {
var method = [][METHOD_NAME];
return !!method && fails(function() {
method.call(null, argument || function() {
throw 1;
}, 1);
});
};
}
});
// node_modules/core-js/modules/es.array.every.js
var require_es_array_every = __commonJS({
"node_modules/core-js/modules/es.array.every.js"() {
"use strict";
var $3 = require_export();
var $every = require_array_iteration().every;
var arrayMethodIsStrict = require_array_method_is_strict();
var STRICT_METHOD = arrayMethodIsStrict("every");
$3({ target: "Array", proto: true, forced: !STRICT_METHOD }, {
every: function every(callbackfn) {
return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/internals/array-fill.js
var require_array_fill = __commonJS({
"node_modules/core-js/internals/array-fill.js"(exports2, module2) {
"use strict";
var toObject = require_to_object();
var toAbsoluteIndex = require_to_absolute_index();
var lengthOfArrayLike = require_length_of_array_like();
module2.exports = function fill(value) {
var O2 = toObject(this);
var length = lengthOfArrayLike(O2);
var argumentsLength = arguments.length;
var index2 = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : void 0, length);
var end2 = argumentsLength > 2 ? arguments[2] : void 0;
var endPos = end2 === void 0 ? length : toAbsoluteIndex(end2, length);
while (endPos > index2)
O2[index2++] = value;
return O2;
};
}
});
// node_modules/core-js/modules/es.array.fill.js
var require_es_array_fill = __commonJS({
"node_modules/core-js/modules/es.array.fill.js"() {
var $3 = require_export();
var fill = require_array_fill();
var addToUnscopables = require_add_to_unscopables();
$3({ target: "Array", proto: true }, {
fill
});
addToUnscopables("fill");
}
});
// node_modules/core-js/modules/es.array.filter.js
var require_es_array_filter = __commonJS({
"node_modules/core-js/modules/es.array.filter.js"() {
"use strict";
var $3 = require_export();
var $filter = require_array_iteration().filter;
var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("filter");
$3({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
filter: function filter2(callbackfn) {
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.array.find.js
var require_es_array_find = __commonJS({
"node_modules/core-js/modules/es.array.find.js"() {
"use strict";
var $3 = require_export();
var $find = require_array_iteration().find;
var addToUnscopables = require_add_to_unscopables();
var FIND = "find";
var SKIPS_HOLES = true;
if (FIND in [])
Array(1)[FIND](function() {
SKIPS_HOLES = false;
});
$3({ target: "Array", proto: true, forced: SKIPS_HOLES }, {
find: function find(callbackfn) {
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
addToUnscopables(FIND);
}
});
// node_modules/core-js/modules/es.array.find-index.js
var require_es_array_find_index = __commonJS({
"node_modules/core-js/modules/es.array.find-index.js"() {
"use strict";
var $3 = require_export();
var $findIndex = require_array_iteration().findIndex;
var addToUnscopables = require_add_to_unscopables();
var FIND_INDEX = "findIndex";
var SKIPS_HOLES = true;
if (FIND_INDEX in [])
Array(1)[FIND_INDEX](function() {
SKIPS_HOLES = false;
});
$3({ target: "Array", proto: true, forced: SKIPS_HOLES }, {
findIndex: function findIndex2(callbackfn) {
return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
addToUnscopables(FIND_INDEX);
}
});
// node_modules/core-js/internals/flatten-into-array.js
var require_flatten_into_array = __commonJS({
"node_modules/core-js/internals/flatten-into-array.js"(exports2, module2) {
"use strict";
var global2 = require_global();
var isArray2 = require_is_array();
var lengthOfArrayLike = require_length_of_array_like();
var bind2 = require_function_bind_context();
var TypeError2 = global2.TypeError;
var flattenIntoArray = function(target, original, source, sourceLen, start3, depth, mapper, thisArg) {
var targetIndex = start3;
var sourceIndex = 0;
var mapFn = mapper ? bind2(mapper, thisArg) : false;
var element, elementLen;
while (sourceIndex < sourceLen) {
if (sourceIndex in source) {
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
if (depth > 0 && isArray2(element)) {
elementLen = lengthOfArrayLike(element);
targetIndex = flattenIntoArray(target, original, element, elementLen, targetIndex, depth - 1) - 1;
} else {
if (targetIndex >= 9007199254740991)
throw TypeError2("Exceed the acceptable array length");
target[targetIndex] = element;
}
targetIndex++;
}
sourceIndex++;
}
return targetIndex;
};
module2.exports = flattenIntoArray;
}
});
// node_modules/core-js/modules/es.array.flat.js
var require_es_array_flat = __commonJS({
"node_modules/core-js/modules/es.array.flat.js"() {
"use strict";
var $3 = require_export();
var flattenIntoArray = require_flatten_into_array();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var arraySpeciesCreate = require_array_species_create();
$3({ target: "Array", proto: true }, {
flat: function flat() {
var depthArg = arguments.length ? arguments[0] : void 0;
var O2 = toObject(this);
var sourceLen = lengthOfArrayLike(O2);
var A3 = arraySpeciesCreate(O2, 0);
A3.length = flattenIntoArray(A3, O2, O2, sourceLen, 0, depthArg === void 0 ? 1 : toIntegerOrInfinity(depthArg));
return A3;
}
});
}
});
// node_modules/core-js/modules/es.array.flat-map.js
var require_es_array_flat_map = __commonJS({
"node_modules/core-js/modules/es.array.flat-map.js"() {
"use strict";
var $3 = require_export();
var flattenIntoArray = require_flatten_into_array();
var aCallable = require_a_callable();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var arraySpeciesCreate = require_array_species_create();
$3({ target: "Array", proto: true }, {
flatMap: function flatMap(callbackfn) {
var O2 = toObject(this);
var sourceLen = lengthOfArrayLike(O2);
var A3;
aCallable(callbackfn);
A3 = arraySpeciesCreate(O2, 0);
A3.length = flattenIntoArray(A3, O2, O2, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
return A3;
}
});
}
});
// node_modules/core-js/internals/array-for-each.js
var require_array_for_each = __commonJS({
"node_modules/core-js/internals/array-for-each.js"(exports2, module2) {
"use strict";
var $forEach = require_array_iteration().forEach;
var arrayMethodIsStrict = require_array_method_is_strict();
var STRICT_METHOD = arrayMethodIsStrict("forEach");
module2.exports = !STRICT_METHOD ? function forEach(callbackfn) {
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
} : [].forEach;
}
});
// node_modules/core-js/modules/es.array.for-each.js
var require_es_array_for_each = __commonJS({
"node_modules/core-js/modules/es.array.for-each.js"() {
"use strict";
var $3 = require_export();
var forEach = require_array_for_each();
$3({ target: "Array", proto: true, forced: [].forEach != forEach }, {
forEach
});
}
});
// node_modules/core-js/internals/call-with-safe-iteration-closing.js
var require_call_with_safe_iteration_closing = __commonJS({
"node_modules/core-js/internals/call-with-safe-iteration-closing.js"(exports2, module2) {
var anObject = require_an_object();
var iteratorClose = require_iterator_close();
module2.exports = function(iterator, fn3, value, ENTRIES) {
try {
return ENTRIES ? fn3(anObject(value)[0], value[1]) : fn3(value);
} catch (error2) {
iteratorClose(iterator, "throw", error2);
}
};
}
});
// node_modules/core-js/internals/array-from.js
var require_array_from = __commonJS({
"node_modules/core-js/internals/array-from.js"(exports2, module2) {
"use strict";
var global2 = require_global();
var bind2 = require_function_bind_context();
var call = require_function_call();
var toObject = require_to_object();
var callWithSafeIterationClosing = require_call_with_safe_iteration_closing();
var isArrayIteratorMethod = require_is_array_iterator_method();
var isConstructor = require_is_constructor();
var lengthOfArrayLike = require_length_of_array_like();
var createProperty = require_create_property();
var getIterator = require_get_iterator();
var getIteratorMethod = require_get_iterator_method();
var Array2 = global2.Array;
module2.exports = function from(arrayLike) {
var O2 = toObject(arrayLike);
var IS_CONSTRUCTOR = isConstructor(this);
var argumentsLength = arguments.length;
var mapfn = argumentsLength > 1 ? arguments[1] : void 0;
var mapping = mapfn !== void 0;
if (mapping)
mapfn = bind2(mapfn, argumentsLength > 2 ? arguments[2] : void 0);
var iteratorMethod = getIteratorMethod(O2);
var index2 = 0;
var length, result, step, iterator, next, value;
if (iteratorMethod && !(this == Array2 && isArrayIteratorMethod(iteratorMethod))) {
iterator = getIterator(O2, iteratorMethod);
next = iterator.next;
result = IS_CONSTRUCTOR ? new this() : [];
for (; !(step = call(next, iterator)).done; index2++) {
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index2], true) : step.value;
createProperty(result, index2, value);
}
} else {
length = lengthOfArrayLike(O2);
result = IS_CONSTRUCTOR ? new this(length) : Array2(length);
for (; length > index2; index2++) {
value = mapping ? mapfn(O2[index2], index2) : O2[index2];
createProperty(result, index2, value);
}
}
result.length = index2;
return result;
};
}
});
// node_modules/core-js/internals/check-correctness-of-iteration.js
var require_check_correctness_of_iteration = __commonJS({
"node_modules/core-js/internals/check-correctness-of-iteration.js"(exports2, module2) {
var wellKnownSymbol = require_well_known_symbol();
var ITERATOR = wellKnownSymbol("iterator");
var SAFE_CLOSING = false;
try {
called = 0;
iteratorWithReturn = {
next: function() {
return { done: !!called++ };
},
"return": function() {
SAFE_CLOSING = true;
}
};
iteratorWithReturn[ITERATOR] = function() {
return this;
};
Array.from(iteratorWithReturn, function() {
throw 2;
});
} catch (error2) {
}
var called;
var iteratorWithReturn;
module2.exports = function(exec, SKIP_CLOSING) {
if (!SKIP_CLOSING && !SAFE_CLOSING)
return false;
var ITERATION_SUPPORT = false;
try {
var object = {};
object[ITERATOR] = function() {
return {
next: function() {
return { done: ITERATION_SUPPORT = true };
}
};
};
exec(object);
} catch (error2) {
}
return ITERATION_SUPPORT;
};
}
});
// node_modules/core-js/modules/es.array.from.js
var require_es_array_from = __commonJS({
"node_modules/core-js/modules/es.array.from.js"() {
var $3 = require_export();
var from = require_array_from();
var checkCorrectnessOfIteration = require_check_correctness_of_iteration();
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function(iterable) {
Array.from(iterable);
});
$3({ target: "Array", stat: true, forced: INCORRECT_ITERATION }, {
from
});
}
});
// node_modules/core-js/modules/es.array.includes.js
var require_es_array_includes = __commonJS({
"node_modules/core-js/modules/es.array.includes.js"() {
"use strict";
var $3 = require_export();
var $includes = require_array_includes().includes;
var addToUnscopables = require_add_to_unscopables();
$3({ target: "Array", proto: true }, {
includes: function includes(el) {
return $includes(this, el, arguments.length > 1 ? arguments[1] : void 0);
}
});
addToUnscopables("includes");
}
});
// node_modules/core-js/modules/es.array.index-of.js
var require_es_array_index_of = __commonJS({
"node_modules/core-js/modules/es.array.index-of.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var $IndexOf = require_array_includes().indexOf;
var arrayMethodIsStrict = require_array_method_is_strict();
var un$IndexOf = uncurryThis([].indexOf);
var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
var STRICT_METHOD = arrayMethodIsStrict("indexOf");
$3({ target: "Array", proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
indexOf: function indexOf2(searchElement) {
var fromIndex = arguments.length > 1 ? arguments[1] : void 0;
return NEGATIVE_ZERO ? un$IndexOf(this, searchElement, fromIndex) || 0 : $IndexOf(this, searchElement, fromIndex);
}
});
}
});
// node_modules/core-js/modules/es.array.is-array.js
var require_es_array_is_array = __commonJS({
"node_modules/core-js/modules/es.array.is-array.js"() {
var $3 = require_export();
var isArray2 = require_is_array();
$3({ target: "Array", stat: true }, {
isArray: isArray2
});
}
});
// node_modules/core-js/internals/iterators-core.js
var require_iterators_core = __commonJS({
"node_modules/core-js/internals/iterators-core.js"(exports2, module2) {
"use strict";
var fails = require_fails();
var isCallable = require_is_callable();
var create = require_object_create();
var getPrototypeOf = require_object_get_prototype_of();
var redefine = require_redefine();
var wellKnownSymbol = require_well_known_symbol();
var IS_PURE = require_is_pure();
var ITERATOR = wellKnownSymbol("iterator");
var BUGGY_SAFARI_ITERATORS = false;
var IteratorPrototype;
var PrototypeOfArrayIteratorPrototype;
var arrayIterator;
if ([].keys) {
arrayIterator = [].keys();
if (!("next" in arrayIterator))
BUGGY_SAFARI_ITERATORS = true;
else {
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
IteratorPrototype = PrototypeOfArrayIteratorPrototype;
}
}
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == void 0 || fails(function() {
var test = {};
return IteratorPrototype[ITERATOR].call(test) !== test;
});
if (NEW_ITERATOR_PROTOTYPE)
IteratorPrototype = {};
else if (IS_PURE)
IteratorPrototype = create(IteratorPrototype);
if (!isCallable(IteratorPrototype[ITERATOR])) {
redefine(IteratorPrototype, ITERATOR, function() {
return this;
});
}
module2.exports = {
IteratorPrototype,
BUGGY_SAFARI_ITERATORS
};
}
});
// node_modules/core-js/internals/create-iterator-constructor.js
var require_create_iterator_constructor = __commonJS({
"node_modules/core-js/internals/create-iterator-constructor.js"(exports2, module2) {
"use strict";
var IteratorPrototype = require_iterators_core().IteratorPrototype;
var create = require_object_create();
var createPropertyDescriptor = require_create_property_descriptor();
var setToStringTag = require_set_to_string_tag();
var Iterators = require_iterators();
var returnThis = function() {
return this;
};
module2.exports = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
var TO_STRING_TAG = NAME + " Iterator";
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
Iterators[TO_STRING_TAG] = returnThis;
return IteratorConstructor;
};
}
});
// node_modules/core-js/internals/define-iterator.js
var require_define_iterator = __commonJS({
"node_modules/core-js/internals/define-iterator.js"(exports2, module2) {
"use strict";
var $3 = require_export();
var call = require_function_call();
var IS_PURE = require_is_pure();
var FunctionName = require_function_name();
var isCallable = require_is_callable();
var createIteratorConstructor = require_create_iterator_constructor();
var getPrototypeOf = require_object_get_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var setToStringTag = require_set_to_string_tag();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var redefine = require_redefine();
var wellKnownSymbol = require_well_known_symbol();
var Iterators = require_iterators();
var IteratorsCore = require_iterators_core();
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
var IteratorPrototype = IteratorsCore.IteratorPrototype;
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
var ITERATOR = wellKnownSymbol("iterator");
var KEYS = "keys";
var VALUES = "values";
var ENTRIES = "entries";
var returnThis = function() {
return this;
};
module2.exports = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
createIteratorConstructor(IteratorConstructor, NAME, next);
var getIterationMethod = function(KIND) {
if (KIND === DEFAULT && defaultIterator)
return defaultIterator;
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype)
return IterablePrototype[KIND];
switch (KIND) {
case KEYS:
return function keys() {
return new IteratorConstructor(this, KIND);
};
case VALUES:
return function values() {
return new IteratorConstructor(this, KIND);
};
case ENTRIES:
return function entries() {
return new IteratorConstructor(this, KIND);
};
}
return function() {
return new IteratorConstructor(this);
};
};
var TO_STRING_TAG = NAME + " Iterator";
var INCORRECT_VALUES_NAME = false;
var IterablePrototype = Iterable.prototype;
var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT];
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
var anyNativeIterator = NAME == "Array" ? IterablePrototype.entries || nativeIterator : nativeIterator;
var CurrentIteratorPrototype, methods, KEY;
if (anyNativeIterator) {
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
if (setPrototypeOf) {
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
redefine(CurrentIteratorPrototype, ITERATOR, returnThis);
}
}
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
if (IS_PURE)
Iterators[TO_STRING_TAG] = returnThis;
}
}
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
createNonEnumerableProperty(IterablePrototype, "name", VALUES);
} else {
INCORRECT_VALUES_NAME = true;
defaultIterator = function values() {
return call(nativeIterator, this);
};
}
}
if (DEFAULT) {
methods = {
values: getIterationMethod(VALUES),
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
entries: getIterationMethod(ENTRIES)
};
if (FORCED)
for (KEY in methods) {
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
redefine(IterablePrototype, KEY, methods[KEY]);
}
}
else
$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
}
if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
redefine(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
}
Iterators[NAME] = defaultIterator;
return methods;
};
}
});
// node_modules/core-js/modules/es.array.iterator.js
var require_es_array_iterator = __commonJS({
"node_modules/core-js/modules/es.array.iterator.js"(exports2, module2) {
"use strict";
var toIndexedObject = require_to_indexed_object();
var addToUnscopables = require_add_to_unscopables();
var Iterators = require_iterators();
var InternalStateModule = require_internal_state();
var defineProperty = require_object_define_property().f;
var defineIterator = require_define_iterator();
var IS_PURE = require_is_pure();
var DESCRIPTORS = require_descriptors();
var ARRAY_ITERATOR = "Array Iterator";
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
module2.exports = defineIterator(Array, "Array", function(iterated, kind) {
setInternalState(this, {
type: ARRAY_ITERATOR,
target: toIndexedObject(iterated),
index: 0,
kind
});
}, function() {
var state = getInternalState(this);
var target = state.target;
var kind = state.kind;
var index2 = state.index++;
if (!target || index2 >= target.length) {
state.target = void 0;
return { value: void 0, done: true };
}
if (kind == "keys")
return { value: index2, done: false };
if (kind == "values")
return { value: target[index2], done: false };
return { value: [index2, target[index2]], done: false };
}, "values");
var values = Iterators.Arguments = Iterators.Array;
addToUnscopables("keys");
addToUnscopables("values");
addToUnscopables("entries");
if (!IS_PURE && DESCRIPTORS && values.name !== "values")
try {
defineProperty(values, "name", { value: "values" });
} catch (error2) {
}
}
});
// node_modules/core-js/modules/es.array.join.js
var require_es_array_join = __commonJS({
"node_modules/core-js/modules/es.array.join.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var IndexedObject = require_indexed_object();
var toIndexedObject = require_to_indexed_object();
var arrayMethodIsStrict = require_array_method_is_strict();
var un$Join = uncurryThis([].join);
var ES3_STRINGS = IndexedObject != Object;
var STRICT_METHOD = arrayMethodIsStrict("join", ",");
$3({ target: "Array", proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
join: function join(separator) {
return un$Join(toIndexedObject(this), separator === void 0 ? "," : separator);
}
});
}
});
// node_modules/core-js/internals/array-last-index-of.js
var require_array_last_index_of = __commonJS({
"node_modules/core-js/internals/array-last-index-of.js"(exports2, module2) {
"use strict";
var apply = require_function_apply();
var toIndexedObject = require_to_indexed_object();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var lengthOfArrayLike = require_length_of_array_like();
var arrayMethodIsStrict = require_array_method_is_strict();
var min2 = Math.min;
var $lastIndexOf = [].lastIndexOf;
var NEGATIVE_ZERO = !!$lastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;
var STRICT_METHOD = arrayMethodIsStrict("lastIndexOf");
var FORCED = NEGATIVE_ZERO || !STRICT_METHOD;
module2.exports = FORCED ? function lastIndexOf(searchElement) {
if (NEGATIVE_ZERO)
return apply($lastIndexOf, this, arguments) || 0;
var O2 = toIndexedObject(this);
var length = lengthOfArrayLike(O2);
var index2 = length - 1;
if (arguments.length > 1)
index2 = min2(index2, toIntegerOrInfinity(arguments[1]));
if (index2 < 0)
index2 = length + index2;
for (; index2 >= 0; index2--)
if (index2 in O2 && O2[index2] === searchElement)
return index2 || 0;
return -1;
} : $lastIndexOf;
}
});
// node_modules/core-js/modules/es.array.last-index-of.js
var require_es_array_last_index_of = __commonJS({
"node_modules/core-js/modules/es.array.last-index-of.js"() {
var $3 = require_export();
var lastIndexOf = require_array_last_index_of();
$3({ target: "Array", proto: true, forced: lastIndexOf !== [].lastIndexOf }, {
lastIndexOf
});
}
});
// node_modules/core-js/modules/es.array.map.js
var require_es_array_map = __commonJS({
"node_modules/core-js/modules/es.array.map.js"() {
"use strict";
var $3 = require_export();
var $map = require_array_iteration().map;
var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("map");
$3({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
map: function map3(callbackfn) {
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.array.of.js
var require_es_array_of = __commonJS({
"node_modules/core-js/modules/es.array.of.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var fails = require_fails();
var isConstructor = require_is_constructor();
var createProperty = require_create_property();
var Array2 = global2.Array;
var ISNT_GENERIC = fails(function() {
function F2() {
}
return !(Array2.of.call(F2) instanceof F2);
});
$3({ target: "Array", stat: true, forced: ISNT_GENERIC }, {
of: function of() {
var index2 = 0;
var argumentsLength = arguments.length;
var result = new (isConstructor(this) ? this : Array2)(argumentsLength);
while (argumentsLength > index2)
createProperty(result, index2, arguments[index2++]);
result.length = argumentsLength;
return result;
}
});
}
});
// node_modules/core-js/internals/array-reduce.js
var require_array_reduce = __commonJS({
"node_modules/core-js/internals/array-reduce.js"(exports2, module2) {
var global2 = require_global();
var aCallable = require_a_callable();
var toObject = require_to_object();
var IndexedObject = require_indexed_object();
var lengthOfArrayLike = require_length_of_array_like();
var TypeError2 = global2.TypeError;
var createMethod = function(IS_RIGHT) {
return function(that, callbackfn, argumentsLength, memo) {
aCallable(callbackfn);
var O2 = toObject(that);
var self2 = IndexedObject(O2);
var length = lengthOfArrayLike(O2);
var index2 = IS_RIGHT ? length - 1 : 0;
var i4 = IS_RIGHT ? -1 : 1;
if (argumentsLength < 2)
while (true) {
if (index2 in self2) {
memo = self2[index2];
index2 += i4;
break;
}
index2 += i4;
if (IS_RIGHT ? index2 < 0 : length <= index2) {
throw TypeError2("Reduce of empty array with no initial value");
}
}
for (; IS_RIGHT ? index2 >= 0 : length > index2; index2 += i4)
if (index2 in self2) {
memo = callbackfn(memo, self2[index2], index2, O2);
}
return memo;
};
};
module2.exports = {
left: createMethod(false),
right: createMethod(true)
};
}
});
// node_modules/core-js/internals/engine-is-node.js
var require_engine_is_node = __commonJS({
"node_modules/core-js/internals/engine-is-node.js"(exports2, module2) {
var classof = require_classof_raw();
var global2 = require_global();
module2.exports = classof(global2.process) == "process";
}
});
// node_modules/core-js/modules/es.array.reduce.js
var require_es_array_reduce = __commonJS({
"node_modules/core-js/modules/es.array.reduce.js"() {
"use strict";
var $3 = require_export();
var $reduce = require_array_reduce().left;
var arrayMethodIsStrict = require_array_method_is_strict();
var CHROME_VERSION = require_engine_v8_version();
var IS_NODE = require_engine_is_node();
var STRICT_METHOD = arrayMethodIsStrict("reduce");
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
$3({ target: "Array", proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
reduce: function reduce(callbackfn) {
var length = arguments.length;
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.array.reduce-right.js
var require_es_array_reduce_right = __commonJS({
"node_modules/core-js/modules/es.array.reduce-right.js"() {
"use strict";
var $3 = require_export();
var $reduceRight = require_array_reduce().right;
var arrayMethodIsStrict = require_array_method_is_strict();
var CHROME_VERSION = require_engine_v8_version();
var IS_NODE = require_engine_is_node();
var STRICT_METHOD = arrayMethodIsStrict("reduceRight");
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
$3({ target: "Array", proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
reduceRight: function reduceRight(callbackfn) {
return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.array.reverse.js
var require_es_array_reverse = __commonJS({
"node_modules/core-js/modules/es.array.reverse.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var isArray2 = require_is_array();
var un$Reverse = uncurryThis([].reverse);
var test = [1, 2];
$3({ target: "Array", proto: true, forced: String(test) === String(test.reverse()) }, {
reverse: function reverse() {
if (isArray2(this))
this.length = this.length;
return un$Reverse(this);
}
});
}
});
// node_modules/core-js/modules/es.array.slice.js
var require_es_array_slice = __commonJS({
"node_modules/core-js/modules/es.array.slice.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var isArray2 = require_is_array();
var isConstructor = require_is_constructor();
var isObject4 = require_is_object();
var toAbsoluteIndex = require_to_absolute_index();
var lengthOfArrayLike = require_length_of_array_like();
var toIndexedObject = require_to_indexed_object();
var createProperty = require_create_property();
var wellKnownSymbol = require_well_known_symbol();
var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
var un$Slice = require_array_slice();
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("slice");
var SPECIES = wellKnownSymbol("species");
var Array2 = global2.Array;
var max2 = Math.max;
$3({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
slice: function slice(start3, end2) {
var O2 = toIndexedObject(this);
var length = lengthOfArrayLike(O2);
var k3 = toAbsoluteIndex(start3, length);
var fin = toAbsoluteIndex(end2 === void 0 ? length : end2, length);
var Constructor, result, n4;
if (isArray2(O2)) {
Constructor = O2.constructor;
if (isConstructor(Constructor) && (Constructor === Array2 || isArray2(Constructor.prototype))) {
Constructor = void 0;
} else if (isObject4(Constructor)) {
Constructor = Constructor[SPECIES];
if (Constructor === null)
Constructor = void 0;
}
if (Constructor === Array2 || Constructor === void 0) {
return un$Slice(O2, k3, fin);
}
}
result = new (Constructor === void 0 ? Array2 : Constructor)(max2(fin - k3, 0));
for (n4 = 0; k3 < fin; k3++, n4++)
if (k3 in O2)
createProperty(result, n4, O2[k3]);
result.length = n4;
return result;
}
});
}
});
// node_modules/core-js/modules/es.array.some.js
var require_es_array_some = __commonJS({
"node_modules/core-js/modules/es.array.some.js"() {
"use strict";
var $3 = require_export();
var $some = require_array_iteration().some;
var arrayMethodIsStrict = require_array_method_is_strict();
var STRICT_METHOD = arrayMethodIsStrict("some");
$3({ target: "Array", proto: true, forced: !STRICT_METHOD }, {
some: function some(callbackfn) {
return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/internals/array-sort.js
var require_array_sort = __commonJS({
"node_modules/core-js/internals/array-sort.js"(exports2, module2) {
var arraySlice = require_array_slice_simple();
var floor = Math.floor;
var mergeSort = function(array, comparefn) {
var length = array.length;
var middle = floor(length / 2);
return length < 8 ? insertionSort(array, comparefn) : merge2(array, mergeSort(arraySlice(array, 0, middle), comparefn), mergeSort(arraySlice(array, middle), comparefn), comparefn);
};
var insertionSort = function(array, comparefn) {
var length = array.length;
var i4 = 1;
var element, j3;
while (i4 < length) {
j3 = i4;
element = array[i4];
while (j3 && comparefn(array[j3 - 1], element) > 0) {
array[j3] = array[--j3];
}
if (j3 !== i4++)
array[j3] = element;
}
return array;
};
var merge2 = function(array, left2, right2, comparefn) {
var llength = left2.length;
var rlength = right2.length;
var lindex = 0;
var rindex = 0;
while (lindex < llength || rindex < rlength) {
array[lindex + rindex] = lindex < llength && rindex < rlength ? comparefn(left2[lindex], right2[rindex]) <= 0 ? left2[lindex++] : right2[rindex++] : lindex < llength ? left2[lindex++] : right2[rindex++];
}
return array;
};
module2.exports = mergeSort;
}
});
// node_modules/core-js/internals/engine-ff-version.js
var require_engine_ff_version = __commonJS({
"node_modules/core-js/internals/engine-ff-version.js"(exports2, module2) {
var userAgent = require_engine_user_agent();
var firefox = userAgent.match(/firefox\/(\d+)/i);
module2.exports = !!firefox && +firefox[1];
}
});
// node_modules/core-js/internals/engine-is-ie-or-edge.js
var require_engine_is_ie_or_edge = __commonJS({
"node_modules/core-js/internals/engine-is-ie-or-edge.js"(exports2, module2) {
var UA = require_engine_user_agent();
module2.exports = /MSIE|Trident/.test(UA);
}
});
// node_modules/core-js/internals/engine-webkit-version.js
var require_engine_webkit_version = __commonJS({
"node_modules/core-js/internals/engine-webkit-version.js"(exports2, module2) {
var userAgent = require_engine_user_agent();
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
module2.exports = !!webkit && +webkit[1];
}
});
// node_modules/core-js/modules/es.array.sort.js
var require_es_array_sort = __commonJS({
"node_modules/core-js/modules/es.array.sort.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var aCallable = require_a_callable();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var toString = require_to_string();
var fails = require_fails();
var internalSort = require_array_sort();
var arrayMethodIsStrict = require_array_method_is_strict();
var FF = require_engine_ff_version();
var IE_OR_EDGE = require_engine_is_ie_or_edge();
var V8 = require_engine_v8_version();
var WEBKIT = require_engine_webkit_version();
var test = [];
var un$Sort = uncurryThis(test.sort);
var push = uncurryThis(test.push);
var FAILS_ON_UNDEFINED = fails(function() {
test.sort(void 0);
});
var FAILS_ON_NULL = fails(function() {
test.sort(null);
});
var STRICT_METHOD = arrayMethodIsStrict("sort");
var STABLE_SORT = !fails(function() {
if (V8)
return V8 < 70;
if (FF && FF > 3)
return;
if (IE_OR_EDGE)
return true;
if (WEBKIT)
return WEBKIT < 603;
var result = "";
var code3, chr, value, index2;
for (code3 = 65; code3 < 76; code3++) {
chr = String.fromCharCode(code3);
switch (code3) {
case 66:
case 69:
case 70:
case 72:
value = 3;
break;
case 68:
case 71:
value = 4;
break;
default:
value = 2;
}
for (index2 = 0; index2 < 47; index2++) {
test.push({ k: chr + index2, v: value });
}
}
test.sort(function(a4, b3) {
return b3.v - a4.v;
});
for (index2 = 0; index2 < test.length; index2++) {
chr = test[index2].k.charAt(0);
if (result.charAt(result.length - 1) !== chr)
result += chr;
}
return result !== "DGBEFHACIJK";
});
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
var getSortCompare = function(comparefn) {
return function(x3, y3) {
if (y3 === void 0)
return -1;
if (x3 === void 0)
return 1;
if (comparefn !== void 0)
return +comparefn(x3, y3) || 0;
return toString(x3) > toString(y3) ? 1 : -1;
};
};
$3({ target: "Array", proto: true, forced: FORCED }, {
sort: function sort(comparefn) {
if (comparefn !== void 0)
aCallable(comparefn);
var array = toObject(this);
if (STABLE_SORT)
return comparefn === void 0 ? un$Sort(array) : un$Sort(array, comparefn);
var items = [];
var arrayLength = lengthOfArrayLike(array);
var itemsLength, index2;
for (index2 = 0; index2 < arrayLength; index2++) {
if (index2 in array)
push(items, array[index2]);
}
internalSort(items, getSortCompare(comparefn));
itemsLength = items.length;
index2 = 0;
while (index2 < itemsLength)
array[index2] = items[index2++];
while (index2 < arrayLength)
delete array[index2++];
return array;
}
});
}
});
// node_modules/core-js/internals/set-species.js
var require_set_species = __commonJS({
"node_modules/core-js/internals/set-species.js"(exports2, module2) {
"use strict";
var getBuiltIn = require_get_built_in();
var definePropertyModule = require_object_define_property();
var wellKnownSymbol = require_well_known_symbol();
var DESCRIPTORS = require_descriptors();
var SPECIES = wellKnownSymbol("species");
module2.exports = function(CONSTRUCTOR_NAME) {
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
var defineProperty = definePropertyModule.f;
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
defineProperty(Constructor, SPECIES, {
configurable: true,
get: function() {
return this;
}
});
}
};
}
});
// node_modules/core-js/modules/es.array.species.js
var require_es_array_species = __commonJS({
"node_modules/core-js/modules/es.array.species.js"() {
var setSpecies = require_set_species();
setSpecies("Array");
}
});
// node_modules/core-js/modules/es.array.splice.js
var require_es_array_splice = __commonJS({
"node_modules/core-js/modules/es.array.splice.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var toAbsoluteIndex = require_to_absolute_index();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var lengthOfArrayLike = require_length_of_array_like();
var toObject = require_to_object();
var arraySpeciesCreate = require_array_species_create();
var createProperty = require_create_property();
var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("splice");
var TypeError2 = global2.TypeError;
var max2 = Math.max;
var min2 = Math.min;
var MAX_SAFE_INTEGER = 9007199254740991;
var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = "Maximum allowed length exceeded";
$3({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
splice: function splice(start3, deleteCount) {
var O2 = toObject(this);
var len = lengthOfArrayLike(O2);
var actualStart = toAbsoluteIndex(start3, len);
var argumentsLength = arguments.length;
var insertCount, actualDeleteCount, A3, k3, from, to;
if (argumentsLength === 0) {
insertCount = actualDeleteCount = 0;
} else if (argumentsLength === 1) {
insertCount = 0;
actualDeleteCount = len - actualStart;
} else {
insertCount = argumentsLength - 2;
actualDeleteCount = min2(max2(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
}
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
throw TypeError2(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
}
A3 = arraySpeciesCreate(O2, actualDeleteCount);
for (k3 = 0; k3 < actualDeleteCount; k3++) {
from = actualStart + k3;
if (from in O2)
createProperty(A3, k3, O2[from]);
}
A3.length = actualDeleteCount;
if (insertCount < actualDeleteCount) {
for (k3 = actualStart; k3 < len - actualDeleteCount; k3++) {
from = k3 + actualDeleteCount;
to = k3 + insertCount;
if (from in O2)
O2[to] = O2[from];
else
delete O2[to];
}
for (k3 = len; k3 > len - actualDeleteCount + insertCount; k3--)
delete O2[k3 - 1];
} else if (insertCount > actualDeleteCount) {
for (k3 = len - actualDeleteCount; k3 > actualStart; k3--) {
from = k3 + actualDeleteCount - 1;
to = k3 + insertCount - 1;
if (from in O2)
O2[to] = O2[from];
else
delete O2[to];
}
}
for (k3 = 0; k3 < insertCount; k3++) {
O2[k3 + actualStart] = arguments[k3 + 2];
}
O2.length = len - actualDeleteCount + insertCount;
return A3;
}
});
}
});
// node_modules/core-js/modules/es.array.unscopables.flat.js
var require_es_array_unscopables_flat = __commonJS({
"node_modules/core-js/modules/es.array.unscopables.flat.js"() {
var addToUnscopables = require_add_to_unscopables();
addToUnscopables("flat");
}
});
// node_modules/core-js/modules/es.array.unscopables.flat-map.js
var require_es_array_unscopables_flat_map = __commonJS({
"node_modules/core-js/modules/es.array.unscopables.flat-map.js"() {
var addToUnscopables = require_add_to_unscopables();
addToUnscopables("flatMap");
}
});
// node_modules/core-js/internals/array-buffer-native.js
var require_array_buffer_native = __commonJS({
"node_modules/core-js/internals/array-buffer-native.js"(exports2, module2) {
module2.exports = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined";
}
});
// node_modules/core-js/internals/redefine-all.js
var require_redefine_all = __commonJS({
"node_modules/core-js/internals/redefine-all.js"(exports2, module2) {
var redefine = require_redefine();
module2.exports = function(target, src, options) {
for (var key in src)
redefine(target, key, src[key], options);
return target;
};
}
});
// node_modules/core-js/internals/an-instance.js
var require_an_instance = __commonJS({
"node_modules/core-js/internals/an-instance.js"(exports2, module2) {
var global2 = require_global();
var isPrototypeOf = require_object_is_prototype_of();
var TypeError2 = global2.TypeError;
module2.exports = function(it2, Prototype) {
if (isPrototypeOf(Prototype, it2))
return it2;
throw TypeError2("Incorrect invocation");
};
}
});
// node_modules/core-js/internals/to-index.js
var require_to_index = __commonJS({
"node_modules/core-js/internals/to-index.js"(exports2, module2) {
var global2 = require_global();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toLength = require_to_length();
var RangeError2 = global2.RangeError;
module2.exports = function(it2) {
if (it2 === void 0)
return 0;
var number = toIntegerOrInfinity(it2);
var length = toLength(number);
if (number !== length)
throw RangeError2("Wrong length or index");
return length;
};
}
});
// node_modules/core-js/internals/ieee754.js
var require_ieee754 = __commonJS({
"node_modules/core-js/internals/ieee754.js"(exports2, module2) {
var global2 = require_global();
var Array2 = global2.Array;
var abs = Math.abs;
var pow = Math.pow;
var floor = Math.floor;
var log = Math.log;
var LN2 = Math.LN2;
var pack = function(number, mantissaLength, bytes) {
var buffer = Array2(bytes);
var exponentLength = bytes * 8 - mantissaLength - 1;
var eMax = (1 << exponentLength) - 1;
var eBias = eMax >> 1;
var rt2 = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;
var sign2 = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;
var index2 = 0;
var exponent, mantissa, c3;
number = abs(number);
if (number != number || number === Infinity) {
mantissa = number != number ? 1 : 0;
exponent = eMax;
} else {
exponent = floor(log(number) / LN2);
c3 = pow(2, -exponent);
if (number * c3 < 1) {
exponent--;
c3 *= 2;
}
if (exponent + eBias >= 1) {
number += rt2 / c3;
} else {
number += rt2 * pow(2, 1 - eBias);
}
if (number * c3 >= 2) {
exponent++;
c3 /= 2;
}
if (exponent + eBias >= eMax) {
mantissa = 0;
exponent = eMax;
} else if (exponent + eBias >= 1) {
mantissa = (number * c3 - 1) * pow(2, mantissaLength);
exponent = exponent + eBias;
} else {
mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);
exponent = 0;
}
}
while (mantissaLength >= 8) {
buffer[index2++] = mantissa & 255;
mantissa /= 256;
mantissaLength -= 8;
}
exponent = exponent << mantissaLength | mantissa;
exponentLength += mantissaLength;
while (exponentLength > 0) {
buffer[index2++] = exponent & 255;
exponent /= 256;
exponentLength -= 8;
}
buffer[--index2] |= sign2 * 128;
return buffer;
};
var unpack2 = function(buffer, mantissaLength) {
var bytes = buffer.length;
var exponentLength = bytes * 8 - mantissaLength - 1;
var eMax = (1 << exponentLength) - 1;
var eBias = eMax >> 1;
var nBits = exponentLength - 7;
var index2 = bytes - 1;
var sign2 = buffer[index2--];
var exponent = sign2 & 127;
var mantissa;
sign2 >>= 7;
while (nBits > 0) {
exponent = exponent * 256 + buffer[index2--];
nBits -= 8;
}
mantissa = exponent & (1 << -nBits) - 1;
exponent >>= -nBits;
nBits += mantissaLength;
while (nBits > 0) {
mantissa = mantissa * 256 + buffer[index2--];
nBits -= 8;
}
if (exponent === 0) {
exponent = 1 - eBias;
} else if (exponent === eMax) {
return mantissa ? NaN : sign2 ? -Infinity : Infinity;
} else {
mantissa = mantissa + pow(2, mantissaLength);
exponent = exponent - eBias;
}
return (sign2 ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
};
module2.exports = {
pack,
unpack: unpack2
};
}
});
// node_modules/core-js/internals/array-buffer.js
var require_array_buffer = __commonJS({
"node_modules/core-js/internals/array-buffer.js"(exports2, module2) {
"use strict";
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var DESCRIPTORS = require_descriptors();
var NATIVE_ARRAY_BUFFER = require_array_buffer_native();
var FunctionName = require_function_name();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var redefineAll = require_redefine_all();
var fails = require_fails();
var anInstance = require_an_instance();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toLength = require_to_length();
var toIndex = require_to_index();
var IEEE754 = require_ieee754();
var getPrototypeOf = require_object_get_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var getOwnPropertyNames = require_object_get_own_property_names().f;
var defineProperty = require_object_define_property().f;
var arrayFill = require_array_fill();
var arraySlice = require_array_slice_simple();
var setToStringTag = require_set_to_string_tag();
var InternalStateModule = require_internal_state();
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
var getInternalState = InternalStateModule.get;
var setInternalState = InternalStateModule.set;
var ARRAY_BUFFER = "ArrayBuffer";
var DATA_VIEW = "DataView";
var PROTOTYPE = "prototype";
var WRONG_LENGTH = "Wrong length";
var WRONG_INDEX = "Wrong index";
var NativeArrayBuffer = global2[ARRAY_BUFFER];
var $ArrayBuffer = NativeArrayBuffer;
var ArrayBufferPrototype = $ArrayBuffer && $ArrayBuffer[PROTOTYPE];
var $DataView = global2[DATA_VIEW];
var DataViewPrototype = $DataView && $DataView[PROTOTYPE];
var ObjectPrototype = Object.prototype;
var Array2 = global2.Array;
var RangeError2 = global2.RangeError;
var fill = uncurryThis(arrayFill);
var reverse = uncurryThis([].reverse);
var packIEEE754 = IEEE754.pack;
var unpackIEEE754 = IEEE754.unpack;
var packInt8 = function(number) {
return [number & 255];
};
var packInt16 = function(number) {
return [number & 255, number >> 8 & 255];
};
var packInt32 = function(number) {
return [number & 255, number >> 8 & 255, number >> 16 & 255, number >> 24 & 255];
};
var unpackInt32 = function(buffer) {
return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0];
};
var packFloat32 = function(number) {
return packIEEE754(number, 23, 4);
};
var packFloat64 = function(number) {
return packIEEE754(number, 52, 8);
};
var addGetter = function(Constructor, key2) {
defineProperty(Constructor[PROTOTYPE], key2, { get: function() {
return getInternalState(this)[key2];
} });
};
var get = function(view, count, index2, isLittleEndian) {
var intIndex = toIndex(index2);
var store = getInternalState(view);
if (intIndex + count > store.byteLength)
throw RangeError2(WRONG_INDEX);
var bytes = getInternalState(store.buffer).bytes;
var start3 = intIndex + store.byteOffset;
var pack = arraySlice(bytes, start3, start3 + count);
return isLittleEndian ? pack : reverse(pack);
};
var set2 = function(view, count, index2, conversion, value, isLittleEndian) {
var intIndex = toIndex(index2);
var store = getInternalState(view);
if (intIndex + count > store.byteLength)
throw RangeError2(WRONG_INDEX);
var bytes = getInternalState(store.buffer).bytes;
var start3 = intIndex + store.byteOffset;
var pack = conversion(+value);
for (var i4 = 0; i4 < count; i4++)
bytes[start3 + i4] = pack[isLittleEndian ? i4 : count - i4 - 1];
};
if (!NATIVE_ARRAY_BUFFER) {
$ArrayBuffer = function ArrayBuffer2(length) {
anInstance(this, ArrayBufferPrototype);
var byteLength = toIndex(length);
setInternalState(this, {
bytes: fill(Array2(byteLength), 0),
byteLength
});
if (!DESCRIPTORS)
this.byteLength = byteLength;
};
ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE];
$DataView = function DataView2(buffer, byteOffset, byteLength) {
anInstance(this, DataViewPrototype);
anInstance(buffer, ArrayBufferPrototype);
var bufferLength = getInternalState(buffer).byteLength;
var offset2 = toIntegerOrInfinity(byteOffset);
if (offset2 < 0 || offset2 > bufferLength)
throw RangeError2("Wrong offset");
byteLength = byteLength === void 0 ? bufferLength - offset2 : toLength(byteLength);
if (offset2 + byteLength > bufferLength)
throw RangeError2(WRONG_LENGTH);
setInternalState(this, {
buffer,
byteLength,
byteOffset: offset2
});
if (!DESCRIPTORS) {
this.buffer = buffer;
this.byteLength = byteLength;
this.byteOffset = offset2;
}
};
DataViewPrototype = $DataView[PROTOTYPE];
if (DESCRIPTORS) {
addGetter($ArrayBuffer, "byteLength");
addGetter($DataView, "buffer");
addGetter($DataView, "byteLength");
addGetter($DataView, "byteOffset");
}
redefineAll(DataViewPrototype, {
getInt8: function getInt8(byteOffset) {
return get(this, 1, byteOffset)[0] << 24 >> 24;
},
getUint8: function getUint8(byteOffset) {
return get(this, 1, byteOffset)[0];
},
getInt16: function getInt16(byteOffset) {
var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : void 0);
return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
},
getUint16: function getUint16(byteOffset) {
var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : void 0);
return bytes[1] << 8 | bytes[0];
},
getInt32: function getInt32(byteOffset) {
return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : void 0));
},
getUint32: function getUint32(byteOffset) {
return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : void 0)) >>> 0;
},
getFloat32: function getFloat32(byteOffset) {
return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : void 0), 23);
},
getFloat64: function getFloat64(byteOffset) {
return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : void 0), 52);
},
setInt8: function setInt8(byteOffset, value) {
set2(this, 1, byteOffset, packInt8, value);
},
setUint8: function setUint8(byteOffset, value) {
set2(this, 1, byteOffset, packInt8, value);
},
setInt16: function setInt16(byteOffset, value) {
set2(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : void 0);
},
setUint16: function setUint16(byteOffset, value) {
set2(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : void 0);
},
setInt32: function setInt32(byteOffset, value) {
set2(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : void 0);
},
setUint32: function setUint32(byteOffset, value) {
set2(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : void 0);
},
setFloat32: function setFloat32(byteOffset, value) {
set2(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : void 0);
},
setFloat64: function setFloat64(byteOffset, value) {
set2(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : void 0);
}
});
} else {
INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER;
if (!fails(function() {
NativeArrayBuffer(1);
}) || !fails(function() {
new NativeArrayBuffer(-1);
}) || fails(function() {
new NativeArrayBuffer();
new NativeArrayBuffer(1.5);
new NativeArrayBuffer(NaN);
return INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME;
})) {
$ArrayBuffer = function ArrayBuffer2(length) {
anInstance(this, ArrayBufferPrototype);
return new NativeArrayBuffer(toIndex(length));
};
$ArrayBuffer[PROTOTYPE] = ArrayBufferPrototype;
for (keys = getOwnPropertyNames(NativeArrayBuffer), j3 = 0; keys.length > j3; ) {
if (!((key = keys[j3++]) in $ArrayBuffer)) {
createNonEnumerableProperty($ArrayBuffer, key, NativeArrayBuffer[key]);
}
}
ArrayBufferPrototype.constructor = $ArrayBuffer;
} else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) {
createNonEnumerableProperty(NativeArrayBuffer, "name", ARRAY_BUFFER);
}
if (setPrototypeOf && getPrototypeOf(DataViewPrototype) !== ObjectPrototype) {
setPrototypeOf(DataViewPrototype, ObjectPrototype);
}
testView = new $DataView(new $ArrayBuffer(2));
$setInt8 = uncurryThis(DataViewPrototype.setInt8);
testView.setInt8(0, 2147483648);
testView.setInt8(1, 2147483649);
if (testView.getInt8(0) || !testView.getInt8(1))
redefineAll(DataViewPrototype, {
setInt8: function setInt8(byteOffset, value) {
$setInt8(this, byteOffset, value << 24 >> 24);
},
setUint8: function setUint8(byteOffset, value) {
$setInt8(this, byteOffset, value << 24 >> 24);
}
}, { unsafe: true });
}
var INCORRECT_ARRAY_BUFFER_NAME;
var keys;
var j3;
var key;
var testView;
var $setInt8;
setToStringTag($ArrayBuffer, ARRAY_BUFFER);
setToStringTag($DataView, DATA_VIEW);
module2.exports = {
ArrayBuffer: $ArrayBuffer,
DataView: $DataView
};
}
});
// node_modules/core-js/modules/es.array-buffer.constructor.js
var require_es_array_buffer_constructor = __commonJS({
"node_modules/core-js/modules/es.array-buffer.constructor.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var arrayBufferModule = require_array_buffer();
var setSpecies = require_set_species();
var ARRAY_BUFFER = "ArrayBuffer";
var ArrayBuffer2 = arrayBufferModule[ARRAY_BUFFER];
var NativeArrayBuffer = global2[ARRAY_BUFFER];
$3({ global: true, forced: NativeArrayBuffer !== ArrayBuffer2 }, {
ArrayBuffer: ArrayBuffer2
});
setSpecies(ARRAY_BUFFER);
}
});
// node_modules/core-js/internals/array-buffer-view-core.js
var require_array_buffer_view_core = __commonJS({
"node_modules/core-js/internals/array-buffer-view-core.js"(exports2, module2) {
"use strict";
var NATIVE_ARRAY_BUFFER = require_array_buffer_native();
var DESCRIPTORS = require_descriptors();
var global2 = require_global();
var isCallable = require_is_callable();
var isObject4 = require_is_object();
var hasOwn = require_has_own_property();
var classof = require_classof();
var tryToString = require_try_to_string();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var redefine = require_redefine();
var defineProperty = require_object_define_property().f;
var isPrototypeOf = require_object_is_prototype_of();
var getPrototypeOf = require_object_get_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var wellKnownSymbol = require_well_known_symbol();
var uid2 = require_uid();
var Int8Array2 = global2.Int8Array;
var Int8ArrayPrototype = Int8Array2 && Int8Array2.prototype;
var Uint8ClampedArray2 = global2.Uint8ClampedArray;
var Uint8ClampedArrayPrototype = Uint8ClampedArray2 && Uint8ClampedArray2.prototype;
var TypedArray = Int8Array2 && getPrototypeOf(Int8Array2);
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
var ObjectPrototype = Object.prototype;
var TypeError2 = global2.TypeError;
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var TYPED_ARRAY_TAG = uid2("TYPED_ARRAY_TAG");
var TYPED_ARRAY_CONSTRUCTOR = uid2("TYPED_ARRAY_CONSTRUCTOR");
var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global2.opera) !== "Opera";
var TYPED_ARRAY_TAG_REQUIRED = false;
var NAME;
var Constructor;
var Prototype;
var TypedArrayConstructorsList = {
Int8Array: 1,
Uint8Array: 1,
Uint8ClampedArray: 1,
Int16Array: 2,
Uint16Array: 2,
Int32Array: 4,
Uint32Array: 4,
Float32Array: 4,
Float64Array: 8
};
var BigIntArrayConstructorsList = {
BigInt64Array: 8,
BigUint64Array: 8
};
var isView = function isView2(it2) {
if (!isObject4(it2))
return false;
var klass = classof(it2);
return klass === "DataView" || hasOwn(TypedArrayConstructorsList, klass) || hasOwn(BigIntArrayConstructorsList, klass);
};
var isTypedArray = function(it2) {
if (!isObject4(it2))
return false;
var klass = classof(it2);
return hasOwn(TypedArrayConstructorsList, klass) || hasOwn(BigIntArrayConstructorsList, klass);
};
var aTypedArray = function(it2) {
if (isTypedArray(it2))
return it2;
throw TypeError2("Target is not a typed array");
};
var aTypedArrayConstructor = function(C3) {
if (isCallable(C3) && (!setPrototypeOf || isPrototypeOf(TypedArray, C3)))
return C3;
throw TypeError2(tryToString(C3) + " is not a typed array constructor");
};
var exportTypedArrayMethod = function(KEY, property, forced, options) {
if (!DESCRIPTORS)
return;
if (forced)
for (var ARRAY in TypedArrayConstructorsList) {
var TypedArrayConstructor = global2[ARRAY];
if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY))
try {
delete TypedArrayConstructor.prototype[KEY];
} catch (error2) {
try {
TypedArrayConstructor.prototype[KEY] = property;
} catch (error22) {
}
}
}
if (!TypedArrayPrototype[KEY] || forced) {
redefine(TypedArrayPrototype, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);
}
};
var exportTypedArrayStaticMethod = function(KEY, property, forced) {
var ARRAY, TypedArrayConstructor;
if (!DESCRIPTORS)
return;
if (setPrototypeOf) {
if (forced)
for (ARRAY in TypedArrayConstructorsList) {
TypedArrayConstructor = global2[ARRAY];
if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY))
try {
delete TypedArrayConstructor[KEY];
} catch (error2) {
}
}
if (!TypedArray[KEY] || forced) {
try {
return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);
} catch (error2) {
}
} else
return;
}
for (ARRAY in TypedArrayConstructorsList) {
TypedArrayConstructor = global2[ARRAY];
if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
redefine(TypedArrayConstructor, KEY, property);
}
}
};
for (NAME in TypedArrayConstructorsList) {
Constructor = global2[NAME];
Prototype = Constructor && Constructor.prototype;
if (Prototype)
createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR, Constructor);
else
NATIVE_ARRAY_BUFFER_VIEWS = false;
}
for (NAME in BigIntArrayConstructorsList) {
Constructor = global2[NAME];
Prototype = Constructor && Constructor.prototype;
if (Prototype)
createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR, Constructor);
}
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
TypedArray = function TypedArray2() {
throw TypeError2("Incorrect invocation");
};
if (NATIVE_ARRAY_BUFFER_VIEWS)
for (NAME in TypedArrayConstructorsList) {
if (global2[NAME])
setPrototypeOf(global2[NAME], TypedArray);
}
}
if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
TypedArrayPrototype = TypedArray.prototype;
if (NATIVE_ARRAY_BUFFER_VIEWS)
for (NAME in TypedArrayConstructorsList) {
if (global2[NAME])
setPrototypeOf(global2[NAME].prototype, TypedArrayPrototype);
}
}
if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
}
if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {
TYPED_ARRAY_TAG_REQUIRED = true;
defineProperty(TypedArrayPrototype, TO_STRING_TAG, { get: function() {
return isObject4(this) ? this[TYPED_ARRAY_TAG] : void 0;
} });
for (NAME in TypedArrayConstructorsList)
if (global2[NAME]) {
createNonEnumerableProperty(global2[NAME], TYPED_ARRAY_TAG, NAME);
}
}
module2.exports = {
NATIVE_ARRAY_BUFFER_VIEWS,
TYPED_ARRAY_CONSTRUCTOR,
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,
aTypedArray,
aTypedArrayConstructor,
exportTypedArrayMethod,
exportTypedArrayStaticMethod,
isView,
isTypedArray,
TypedArray,
TypedArrayPrototype
};
}
});
// node_modules/core-js/modules/es.array-buffer.is-view.js
var require_es_array_buffer_is_view = __commonJS({
"node_modules/core-js/modules/es.array-buffer.is-view.js"() {
var $3 = require_export();
var ArrayBufferViewCore = require_array_buffer_view_core();
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
$3({ target: "ArrayBuffer", stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
isView: ArrayBufferViewCore.isView
});
}
});
// node_modules/core-js/internals/a-constructor.js
var require_a_constructor = __commonJS({
"node_modules/core-js/internals/a-constructor.js"(exports2, module2) {
var global2 = require_global();
var isConstructor = require_is_constructor();
var tryToString = require_try_to_string();
var TypeError2 = global2.TypeError;
module2.exports = function(argument) {
if (isConstructor(argument))
return argument;
throw TypeError2(tryToString(argument) + " is not a constructor");
};
}
});
// node_modules/core-js/internals/species-constructor.js
var require_species_constructor = __commonJS({
"node_modules/core-js/internals/species-constructor.js"(exports2, module2) {
var anObject = require_an_object();
var aConstructor = require_a_constructor();
var wellKnownSymbol = require_well_known_symbol();
var SPECIES = wellKnownSymbol("species");
module2.exports = function(O2, defaultConstructor) {
var C3 = anObject(O2).constructor;
var S2;
return C3 === void 0 || (S2 = anObject(C3)[SPECIES]) == void 0 ? defaultConstructor : aConstructor(S2);
};
}
});
// node_modules/core-js/modules/es.array-buffer.slice.js
var require_es_array_buffer_slice = __commonJS({
"node_modules/core-js/modules/es.array-buffer.slice.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var ArrayBufferModule = require_array_buffer();
var anObject = require_an_object();
var toAbsoluteIndex = require_to_absolute_index();
var toLength = require_to_length();
var speciesConstructor = require_species_constructor();
var ArrayBuffer2 = ArrayBufferModule.ArrayBuffer;
var DataView2 = ArrayBufferModule.DataView;
var DataViewPrototype = DataView2.prototype;
var un$ArrayBufferSlice = uncurryThis(ArrayBuffer2.prototype.slice);
var getUint8 = uncurryThis(DataViewPrototype.getUint8);
var setUint8 = uncurryThis(DataViewPrototype.setUint8);
var INCORRECT_SLICE = fails(function() {
return !new ArrayBuffer2(2).slice(1, void 0).byteLength;
});
$3({ target: "ArrayBuffer", proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
slice: function slice(start3, end2) {
if (un$ArrayBufferSlice && end2 === void 0) {
return un$ArrayBufferSlice(anObject(this), start3);
}
var length = anObject(this).byteLength;
var first = toAbsoluteIndex(start3, length);
var fin = toAbsoluteIndex(end2 === void 0 ? length : end2, length);
var result = new (speciesConstructor(this, ArrayBuffer2))(toLength(fin - first));
var viewSource = new DataView2(this);
var viewTarget = new DataView2(result);
var index2 = 0;
while (first < fin) {
setUint8(viewTarget, index2++, getUint8(viewSource, first++));
}
return result;
}
});
}
});
// node_modules/core-js/modules/es.data-view.js
var require_es_data_view = __commonJS({
"node_modules/core-js/modules/es.data-view.js"() {
var $3 = require_export();
var ArrayBufferModule = require_array_buffer();
var NATIVE_ARRAY_BUFFER = require_array_buffer_native();
$3({ global: true, forced: !NATIVE_ARRAY_BUFFER }, {
DataView: ArrayBufferModule.DataView
});
}
});
// node_modules/core-js/modules/es.date.get-year.js
var require_es_date_get_year = __commonJS({
"node_modules/core-js/modules/es.date.get-year.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var FORCED = fails(function() {
return new Date(16e11).getYear() !== 120;
});
var getFullYear = uncurryThis(Date.prototype.getFullYear);
$3({ target: "Date", proto: true, forced: FORCED }, {
getYear: function getYear() {
return getFullYear(this) - 1900;
}
});
}
});
// node_modules/core-js/modules/es.date.now.js
var require_es_date_now = __commonJS({
"node_modules/core-js/modules/es.date.now.js"() {
var $3 = require_export();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var Date2 = global2.Date;
var getTime = uncurryThis(Date2.prototype.getTime);
$3({ target: "Date", stat: true }, {
now: function now2() {
return getTime(new Date2());
}
});
}
});
// node_modules/core-js/modules/es.date.set-year.js
var require_es_date_set_year = __commonJS({
"node_modules/core-js/modules/es.date.set-year.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var DatePrototype = Date.prototype;
var getTime = uncurryThis(DatePrototype.getTime);
var setFullYear = uncurryThis(DatePrototype.setFullYear);
$3({ target: "Date", proto: true }, {
setYear: function setYear(year) {
getTime(this);
var yi2 = toIntegerOrInfinity(year);
var yyyy = 0 <= yi2 && yi2 <= 99 ? yi2 + 1900 : yi2;
return setFullYear(this, yyyy);
}
});
}
});
// node_modules/core-js/modules/es.date.to-gmt-string.js
var require_es_date_to_gmt_string = __commonJS({
"node_modules/core-js/modules/es.date.to-gmt-string.js"() {
var $3 = require_export();
$3({ target: "Date", proto: true }, {
toGMTString: Date.prototype.toUTCString
});
}
});
// node_modules/core-js/internals/string-repeat.js
var require_string_repeat = __commonJS({
"node_modules/core-js/internals/string-repeat.js"(exports2, module2) {
"use strict";
var global2 = require_global();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toString = require_to_string();
var requireObjectCoercible = require_require_object_coercible();
var RangeError2 = global2.RangeError;
module2.exports = function repeat(count) {
var str = toString(requireObjectCoercible(this));
var result = "";
var n4 = toIntegerOrInfinity(count);
if (n4 < 0 || n4 == Infinity)
throw RangeError2("Wrong number of repetitions");
for (; n4 > 0; (n4 >>>= 1) && (str += str))
if (n4 & 1)
result += str;
return result;
};
}
});
// node_modules/core-js/internals/string-pad.js
var require_string_pad = __commonJS({
"node_modules/core-js/internals/string-pad.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var toLength = require_to_length();
var toString = require_to_string();
var $repeat = require_string_repeat();
var requireObjectCoercible = require_require_object_coercible();
var repeat = uncurryThis($repeat);
var stringSlice = uncurryThis("".slice);
var ceil = Math.ceil;
var createMethod = function(IS_END) {
return function($this, maxLength, fillString) {
var S2 = toString(requireObjectCoercible($this));
var intMaxLength = toLength(maxLength);
var stringLength = S2.length;
var fillStr = fillString === void 0 ? " " : toString(fillString);
var fillLen, stringFiller;
if (intMaxLength <= stringLength || fillStr == "")
return S2;
fillLen = intMaxLength - stringLength;
stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
if (stringFiller.length > fillLen)
stringFiller = stringSlice(stringFiller, 0, fillLen);
return IS_END ? S2 + stringFiller : stringFiller + S2;
};
};
module2.exports = {
start: createMethod(false),
end: createMethod(true)
};
}
});
// node_modules/core-js/internals/date-to-iso-string.js
var require_date_to_iso_string = __commonJS({
"node_modules/core-js/internals/date-to-iso-string.js"(exports2, module2) {
"use strict";
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var padStart = require_string_pad().start;
var RangeError2 = global2.RangeError;
var abs = Math.abs;
var DatePrototype = Date.prototype;
var n$DateToISOString = DatePrototype.toISOString;
var getTime = uncurryThis(DatePrototype.getTime);
var getUTCDate = uncurryThis(DatePrototype.getUTCDate);
var getUTCFullYear = uncurryThis(DatePrototype.getUTCFullYear);
var getUTCHours = uncurryThis(DatePrototype.getUTCHours);
var getUTCMilliseconds = uncurryThis(DatePrototype.getUTCMilliseconds);
var getUTCMinutes = uncurryThis(DatePrototype.getUTCMinutes);
var getUTCMonth = uncurryThis(DatePrototype.getUTCMonth);
var getUTCSeconds = uncurryThis(DatePrototype.getUTCSeconds);
module2.exports = fails(function() {
return n$DateToISOString.call(new Date(-5e13 - 1)) != "0385-07-25T07:06:39.999Z";
}) || !fails(function() {
n$DateToISOString.call(new Date(NaN));
}) ? function toISOString() {
if (!isFinite(getTime(this)))
throw RangeError2("Invalid time value");
var date = this;
var year = getUTCFullYear(date);
var milliseconds = getUTCMilliseconds(date);
var sign2 = year < 0 ? "-" : year > 9999 ? "+" : "";
return sign2 + padStart(abs(year), sign2 ? 6 : 4, 0) + "-" + padStart(getUTCMonth(date) + 1, 2, 0) + "-" + padStart(getUTCDate(date), 2, 0) + "T" + padStart(getUTCHours(date), 2, 0) + ":" + padStart(getUTCMinutes(date), 2, 0) + ":" + padStart(getUTCSeconds(date), 2, 0) + "." + padStart(milliseconds, 3, 0) + "Z";
} : n$DateToISOString;
}
});
// node_modules/core-js/modules/es.date.to-iso-string.js
var require_es_date_to_iso_string = __commonJS({
"node_modules/core-js/modules/es.date.to-iso-string.js"() {
var $3 = require_export();
var toISOString = require_date_to_iso_string();
$3({ target: "Date", proto: true, forced: Date.prototype.toISOString !== toISOString }, {
toISOString
});
}
});
// node_modules/core-js/modules/es.date.to-json.js
var require_es_date_to_json = __commonJS({
"node_modules/core-js/modules/es.date.to-json.js"() {
"use strict";
var $3 = require_export();
var fails = require_fails();
var toObject = require_to_object();
var toPrimitive = require_to_primitive();
var FORCED = fails(function() {
return new Date(NaN).toJSON() !== null || Date.prototype.toJSON.call({ toISOString: function() {
return 1;
} }) !== 1;
});
$3({ target: "Date", proto: true, forced: FORCED }, {
toJSON: function toJSON(key) {
var O2 = toObject(this);
var pv = toPrimitive(O2, "number");
return typeof pv == "number" && !isFinite(pv) ? null : O2.toISOString();
}
});
}
});
// node_modules/core-js/internals/date-to-primitive.js
var require_date_to_primitive = __commonJS({
"node_modules/core-js/internals/date-to-primitive.js"(exports2, module2) {
"use strict";
var global2 = require_global();
var anObject = require_an_object();
var ordinaryToPrimitive = require_ordinary_to_primitive();
var TypeError2 = global2.TypeError;
module2.exports = function(hint) {
anObject(this);
if (hint === "string" || hint === "default")
hint = "string";
else if (hint !== "number")
throw TypeError2("Incorrect hint");
return ordinaryToPrimitive(this, hint);
};
}
});
// node_modules/core-js/modules/es.date.to-primitive.js
var require_es_date_to_primitive = __commonJS({
"node_modules/core-js/modules/es.date.to-primitive.js"() {
var hasOwn = require_has_own_property();
var redefine = require_redefine();
var dateToPrimitive = require_date_to_primitive();
var wellKnownSymbol = require_well_known_symbol();
var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
var DatePrototype = Date.prototype;
if (!hasOwn(DatePrototype, TO_PRIMITIVE)) {
redefine(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
}
}
});
// node_modules/core-js/modules/es.date.to-string.js
var require_es_date_to_string = __commonJS({
"node_modules/core-js/modules/es.date.to-string.js"() {
var uncurryThis = require_function_uncurry_this();
var redefine = require_redefine();
var DatePrototype = Date.prototype;
var INVALID_DATE = "Invalid Date";
var TO_STRING = "toString";
var un$DateToString = uncurryThis(DatePrototype[TO_STRING]);
var getTime = uncurryThis(DatePrototype.getTime);
if (String(new Date(NaN)) != INVALID_DATE) {
redefine(DatePrototype, TO_STRING, function toString() {
var value = getTime(this);
return value === value ? un$DateToString(this) : INVALID_DATE;
});
}
}
});
// node_modules/core-js/modules/es.escape.js
var require_es_escape = __commonJS({
"node_modules/core-js/modules/es.escape.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var toString = require_to_string();
var charAt = uncurryThis("".charAt);
var charCodeAt = uncurryThis("".charCodeAt);
var exec = uncurryThis(/./.exec);
var numberToString = uncurryThis(1 .toString);
var toUpperCase = uncurryThis("".toUpperCase);
var raw = /[\w*+\-./@]/;
var hex2 = function(code3, length) {
var result = numberToString(code3, 16);
while (result.length < length)
result = "0" + result;
return result;
};
$3({ global: true }, {
escape: function escape2(string) {
var str = toString(string);
var result = "";
var length = str.length;
var index2 = 0;
var chr, code3;
while (index2 < length) {
chr = charAt(str, index2++);
if (exec(raw, chr)) {
result += chr;
} else {
code3 = charCodeAt(chr, 0);
if (code3 < 256) {
result += "%" + hex2(code3, 2);
} else {
result += "%u" + toUpperCase(hex2(code3, 4));
}
}
}
return result;
}
});
}
});
// node_modules/core-js/internals/function-bind.js
var require_function_bind = __commonJS({
"node_modules/core-js/internals/function-bind.js"(exports2, module2) {
"use strict";
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var aCallable = require_a_callable();
var isObject4 = require_is_object();
var hasOwn = require_has_own_property();
var arraySlice = require_array_slice();
var NATIVE_BIND = require_function_bind_native();
var Function2 = global2.Function;
var concat = uncurryThis([].concat);
var join = uncurryThis([].join);
var factories = {};
var construct = function(C3, argsLength, args) {
if (!hasOwn(factories, argsLength)) {
for (var list = [], i4 = 0; i4 < argsLength; i4++)
list[i4] = "a[" + i4 + "]";
factories[argsLength] = Function2("C,a", "return new C(" + join(list, ",") + ")");
}
return factories[argsLength](C3, args);
};
module2.exports = NATIVE_BIND ? Function2.bind : function bind2(that) {
var F2 = aCallable(this);
var Prototype = F2.prototype;
var partArgs = arraySlice(arguments, 1);
var boundFunction = function bound() {
var args = concat(partArgs, arraySlice(arguments));
return this instanceof boundFunction ? construct(F2, args.length, args) : F2.apply(that, args);
};
if (isObject4(Prototype))
boundFunction.prototype = Prototype;
return boundFunction;
};
}
});
// node_modules/core-js/modules/es.function.bind.js
var require_es_function_bind = __commonJS({
"node_modules/core-js/modules/es.function.bind.js"() {
var $3 = require_export();
var bind2 = require_function_bind();
$3({ target: "Function", proto: true, forced: Function.bind !== bind2 }, {
bind: bind2
});
}
});
// node_modules/core-js/modules/es.function.has-instance.js
var require_es_function_has_instance = __commonJS({
"node_modules/core-js/modules/es.function.has-instance.js"() {
"use strict";
var isCallable = require_is_callable();
var isObject4 = require_is_object();
var definePropertyModule = require_object_define_property();
var getPrototypeOf = require_object_get_prototype_of();
var wellKnownSymbol = require_well_known_symbol();
var HAS_INSTANCE = wellKnownSymbol("hasInstance");
var FunctionPrototype = Function.prototype;
if (!(HAS_INSTANCE in FunctionPrototype)) {
definePropertyModule.f(FunctionPrototype, HAS_INSTANCE, { value: function(O2) {
if (!isCallable(this) || !isObject4(O2))
return false;
var P3 = this.prototype;
if (!isObject4(P3))
return O2 instanceof this;
while (O2 = getPrototypeOf(O2))
if (P3 === O2)
return true;
return false;
} });
}
}
});
// node_modules/core-js/modules/es.function.name.js
var require_es_function_name = __commonJS({
"node_modules/core-js/modules/es.function.name.js"() {
var DESCRIPTORS = require_descriptors();
var FUNCTION_NAME_EXISTS = require_function_name().EXISTS;
var uncurryThis = require_function_uncurry_this();
var defineProperty = require_object_define_property().f;
var FunctionPrototype = Function.prototype;
var functionToString = uncurryThis(FunctionPrototype.toString);
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
var regExpExec = uncurryThis(nameRE.exec);
var NAME = "name";
if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
defineProperty(FunctionPrototype, NAME, {
configurable: true,
get: function() {
try {
return regExpExec(nameRE, functionToString(this))[1];
} catch (error2) {
return "";
}
}
});
}
}
});
// node_modules/core-js/modules/es.global-this.js
var require_es_global_this = __commonJS({
"node_modules/core-js/modules/es.global-this.js"() {
var $3 = require_export();
var global2 = require_global();
$3({ global: true }, {
globalThis: global2
});
}
});
// node_modules/core-js/modules/es.json.stringify.js
var require_es_json_stringify = __commonJS({
"node_modules/core-js/modules/es.json.stringify.js"() {
var $3 = require_export();
var global2 = require_global();
var getBuiltIn = require_get_built_in();
var apply = require_function_apply();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var Array2 = global2.Array;
var $stringify = getBuiltIn("JSON", "stringify");
var exec = uncurryThis(/./.exec);
var charAt = uncurryThis("".charAt);
var charCodeAt = uncurryThis("".charCodeAt);
var replace = uncurryThis("".replace);
var numberToString = uncurryThis(1 .toString);
var tester = /[\uD800-\uDFFF]/g;
var low = /^[\uD800-\uDBFF]$/;
var hi2 = /^[\uDC00-\uDFFF]$/;
var fix = function(match2, offset2, string) {
var prev = charAt(string, offset2 - 1);
var next = charAt(string, offset2 + 1);
if (exec(low, match2) && !exec(hi2, next) || exec(hi2, match2) && !exec(low, prev)) {
return "\\u" + numberToString(charCodeAt(match2, 0), 16);
}
return match2;
};
var FORCED = fails(function() {
return $stringify("\uDF06\uD834") !== '"\\udf06\\ud834"' || $stringify("\uDEAD") !== '"\\udead"';
});
if ($stringify) {
$3({ target: "JSON", stat: true, forced: FORCED }, {
stringify: function stringify(it2, replacer, space) {
for (var i4 = 0, l4 = arguments.length, args = Array2(l4); i4 < l4; i4++)
args[i4] = arguments[i4];
var result = apply($stringify, null, args);
return typeof result == "string" ? replace(result, tester, fix) : result;
}
});
}
}
});
// node_modules/core-js/modules/es.json.to-string-tag.js
var require_es_json_to_string_tag = __commonJS({
"node_modules/core-js/modules/es.json.to-string-tag.js"() {
var global2 = require_global();
var setToStringTag = require_set_to_string_tag();
setToStringTag(global2.JSON, "JSON", true);
}
});
// node_modules/core-js/internals/array-buffer-non-extensible.js
var require_array_buffer_non_extensible = __commonJS({
"node_modules/core-js/internals/array-buffer-non-extensible.js"(exports2, module2) {
var fails = require_fails();
module2.exports = fails(function() {
if (typeof ArrayBuffer == "function") {
var buffer = new ArrayBuffer(8);
if (Object.isExtensible(buffer))
Object.defineProperty(buffer, "a", { value: 8 });
}
});
}
});
// node_modules/core-js/internals/object-is-extensible.js
var require_object_is_extensible = __commonJS({
"node_modules/core-js/internals/object-is-extensible.js"(exports2, module2) {
var fails = require_fails();
var isObject4 = require_is_object();
var classof = require_classof_raw();
var ARRAY_BUFFER_NON_EXTENSIBLE = require_array_buffer_non_extensible();
var $isExtensible = Object.isExtensible;
var FAILS_ON_PRIMITIVES = fails(function() {
$isExtensible(1);
});
module2.exports = FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it2) {
if (!isObject4(it2))
return false;
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it2) == "ArrayBuffer")
return false;
return $isExtensible ? $isExtensible(it2) : true;
} : $isExtensible;
}
});
// node_modules/core-js/internals/freezing.js
var require_freezing = __commonJS({
"node_modules/core-js/internals/freezing.js"(exports2, module2) {
var fails = require_fails();
module2.exports = !fails(function() {
return Object.isExtensible(Object.preventExtensions({}));
});
}
});
// node_modules/core-js/internals/internal-metadata.js
var require_internal_metadata = __commonJS({
"node_modules/core-js/internals/internal-metadata.js"(exports2, module2) {
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var hiddenKeys = require_hidden_keys();
var isObject4 = require_is_object();
var hasOwn = require_has_own_property();
var defineProperty = require_object_define_property().f;
var getOwnPropertyNamesModule = require_object_get_own_property_names();
var getOwnPropertyNamesExternalModule = require_object_get_own_property_names_external();
var isExtensible = require_object_is_extensible();
var uid2 = require_uid();
var FREEZING = require_freezing();
var REQUIRED = false;
var METADATA = uid2("meta");
var id = 0;
var setMetadata = function(it2) {
defineProperty(it2, METADATA, { value: {
objectID: "O" + id++,
weakData: {}
} });
};
var fastKey = function(it2, create) {
if (!isObject4(it2))
return typeof it2 == "symbol" ? it2 : (typeof it2 == "string" ? "S" : "P") + it2;
if (!hasOwn(it2, METADATA)) {
if (!isExtensible(it2))
return "F";
if (!create)
return "E";
setMetadata(it2);
}
return it2[METADATA].objectID;
};
var getWeakData = function(it2, create) {
if (!hasOwn(it2, METADATA)) {
if (!isExtensible(it2))
return true;
if (!create)
return false;
setMetadata(it2);
}
return it2[METADATA].weakData;
};
var onFreeze = function(it2) {
if (FREEZING && REQUIRED && isExtensible(it2) && !hasOwn(it2, METADATA))
setMetadata(it2);
return it2;
};
var enable = function() {
meta.enable = function() {
};
REQUIRED = true;
var getOwnPropertyNames = getOwnPropertyNamesModule.f;
var splice = uncurryThis([].splice);
var test = {};
test[METADATA] = 1;
if (getOwnPropertyNames(test).length) {
getOwnPropertyNamesModule.f = function(it2) {
var result = getOwnPropertyNames(it2);
for (var i4 = 0, length = result.length; i4 < length; i4++) {
if (result[i4] === METADATA) {
splice(result, i4, 1);
break;
}
}
return result;
};
$3({ target: "Object", stat: true, forced: true }, {
getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
});
}
};
var meta = module2.exports = {
enable,
fastKey,
getWeakData,
onFreeze
};
hiddenKeys[METADATA] = true;
}
});
// node_modules/core-js/internals/collection.js
var require_collection = __commonJS({
"node_modules/core-js/internals/collection.js"(exports2, module2) {
"use strict";
var $3 = require_export();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var isForced = require_is_forced();
var redefine = require_redefine();
var InternalMetadataModule = require_internal_metadata();
var iterate = require_iterate();
var anInstance = require_an_instance();
var isCallable = require_is_callable();
var isObject4 = require_is_object();
var fails = require_fails();
var checkCorrectnessOfIteration = require_check_correctness_of_iteration();
var setToStringTag = require_set_to_string_tag();
var inheritIfRequired = require_inherit_if_required();
module2.exports = function(CONSTRUCTOR_NAME, wrapper, common) {
var IS_MAP = CONSTRUCTOR_NAME.indexOf("Map") !== -1;
var IS_WEAK = CONSTRUCTOR_NAME.indexOf("Weak") !== -1;
var ADDER = IS_MAP ? "set" : "add";
var NativeConstructor = global2[CONSTRUCTOR_NAME];
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
var Constructor = NativeConstructor;
var exported = {};
var fixMethod = function(KEY) {
var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);
redefine(NativePrototype, KEY, KEY == "add" ? function add2(value) {
uncurriedNativeMethod(this, value === 0 ? 0 : value);
return this;
} : KEY == "delete" ? function(key) {
return IS_WEAK && !isObject4(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
} : KEY == "get" ? function get(key) {
return IS_WEAK && !isObject4(key) ? void 0 : uncurriedNativeMethod(this, key === 0 ? 0 : key);
} : KEY == "has" ? function has(key) {
return IS_WEAK && !isObject4(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
} : function set2(key, value) {
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
return this;
});
};
var REPLACE = isForced(CONSTRUCTOR_NAME, !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function() {
new NativeConstructor().entries().next();
})));
if (REPLACE) {
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
InternalMetadataModule.enable();
} else if (isForced(CONSTRUCTOR_NAME, true)) {
var instance = new Constructor();
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
var THROWS_ON_PRIMITIVES = fails(function() {
instance.has(1);
});
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function(iterable) {
new NativeConstructor(iterable);
});
var BUGGY_ZERO = !IS_WEAK && fails(function() {
var $instance = new NativeConstructor();
var index2 = 5;
while (index2--)
$instance[ADDER](index2, index2);
return !$instance.has(-0);
});
if (!ACCEPT_ITERABLES) {
Constructor = wrapper(function(dummy, iterable) {
anInstance(dummy, NativePrototype);
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
if (iterable != void 0)
iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
return that;
});
Constructor.prototype = NativePrototype;
NativePrototype.constructor = Constructor;
}
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
fixMethod("delete");
fixMethod("has");
IS_MAP && fixMethod("get");
}
if (BUGGY_ZERO || HASNT_CHAINING)
fixMethod(ADDER);
if (IS_WEAK && NativePrototype.clear)
delete NativePrototype.clear;
}
exported[CONSTRUCTOR_NAME] = Constructor;
$3({ global: true, forced: Constructor != NativeConstructor }, exported);
setToStringTag(Constructor, CONSTRUCTOR_NAME);
if (!IS_WEAK)
common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
return Constructor;
};
}
});
// node_modules/core-js/internals/collection-strong.js
var require_collection_strong = __commonJS({
"node_modules/core-js/internals/collection-strong.js"(exports2, module2) {
"use strict";
var defineProperty = require_object_define_property().f;
var create = require_object_create();
var redefineAll = require_redefine_all();
var bind2 = require_function_bind_context();
var anInstance = require_an_instance();
var iterate = require_iterate();
var defineIterator = require_define_iterator();
var setSpecies = require_set_species();
var DESCRIPTORS = require_descriptors();
var fastKey = require_internal_metadata().fastKey;
var InternalStateModule = require_internal_state();
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
module2.exports = {
getConstructor: function(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var Constructor = wrapper(function(that, iterable) {
anInstance(that, Prototype);
setInternalState(that, {
type: CONSTRUCTOR_NAME,
index: create(null),
first: void 0,
last: void 0,
size: 0
});
if (!DESCRIPTORS)
that.size = 0;
if (iterable != void 0)
iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
});
var Prototype = Constructor.prototype;
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
var define2 = function(that, key, value) {
var state = getInternalState(that);
var entry = getEntry(that, key);
var previous, index2;
if (entry) {
entry.value = value;
} else {
state.last = entry = {
index: index2 = fastKey(key, true),
key,
value,
previous: previous = state.last,
next: void 0,
removed: false
};
if (!state.first)
state.first = entry;
if (previous)
previous.next = entry;
if (DESCRIPTORS)
state.size++;
else
that.size++;
if (index2 !== "F")
state.index[index2] = entry;
}
return that;
};
var getEntry = function(that, key) {
var state = getInternalState(that);
var index2 = fastKey(key);
var entry;
if (index2 !== "F")
return state.index[index2];
for (entry = state.first; entry; entry = entry.next) {
if (entry.key == key)
return entry;
}
};
redefineAll(Prototype, {
clear: function clear() {
var that = this;
var state = getInternalState(that);
var data = state.index;
var entry = state.first;
while (entry) {
entry.removed = true;
if (entry.previous)
entry.previous = entry.previous.next = void 0;
delete data[entry.index];
entry = entry.next;
}
state.first = state.last = void 0;
if (DESCRIPTORS)
state.size = 0;
else
that.size = 0;
},
"delete": function(key) {
var that = this;
var state = getInternalState(that);
var entry = getEntry(that, key);
if (entry) {
var next = entry.next;
var prev = entry.previous;
delete state.index[entry.index];
entry.removed = true;
if (prev)
prev.next = next;
if (next)
next.previous = prev;
if (state.first == entry)
state.first = next;
if (state.last == entry)
state.last = prev;
if (DESCRIPTORS)
state.size--;
else
that.size--;
}
return !!entry;
},
forEach: function forEach(callbackfn) {
var state = getInternalState(this);
var boundFunction = bind2(callbackfn, arguments.length > 1 ? arguments[1] : void 0);
var entry;
while (entry = entry ? entry.next : state.first) {
boundFunction(entry.value, entry.key, this);
while (entry && entry.removed)
entry = entry.previous;
}
},
has: function has(key) {
return !!getEntry(this, key);
}
});
redefineAll(Prototype, IS_MAP ? {
get: function get(key) {
var entry = getEntry(this, key);
return entry && entry.value;
},
set: function set2(key, value) {
return define2(this, key === 0 ? 0 : key, value);
}
} : {
add: function add2(value) {
return define2(this, value = value === 0 ? 0 : value, value);
}
});
if (DESCRIPTORS)
defineProperty(Prototype, "size", {
get: function() {
return getInternalState(this).size;
}
});
return Constructor;
},
setStrong: function(Constructor, CONSTRUCTOR_NAME, IS_MAP) {
var ITERATOR_NAME = CONSTRUCTOR_NAME + " Iterator";
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
defineIterator(Constructor, CONSTRUCTOR_NAME, function(iterated, kind) {
setInternalState(this, {
type: ITERATOR_NAME,
target: iterated,
state: getInternalCollectionState(iterated),
kind,
last: void 0
});
}, function() {
var state = getInternalIteratorState(this);
var kind = state.kind;
var entry = state.last;
while (entry && entry.removed)
entry = entry.previous;
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
state.target = void 0;
return { value: void 0, done: true };
}
if (kind == "keys")
return { value: entry.key, done: false };
if (kind == "values")
return { value: entry.value, done: false };
return { value: [entry.key, entry.value], done: false };
}, IS_MAP ? "entries" : "values", !IS_MAP, true);
setSpecies(CONSTRUCTOR_NAME);
}
};
}
});
// node_modules/core-js/modules/es.map.js
var require_es_map = __commonJS({
"node_modules/core-js/modules/es.map.js"() {
"use strict";
var collection = require_collection();
var collectionStrong = require_collection_strong();
collection("Map", function(init2) {
return function Map2() {
return init2(this, arguments.length ? arguments[0] : void 0);
};
}, collectionStrong);
}
});
// node_modules/core-js/internals/math-log1p.js
var require_math_log1p = __commonJS({
"node_modules/core-js/internals/math-log1p.js"(exports2, module2) {
var log = Math.log;
module2.exports = Math.log1p || function log1p(x3) {
return (x3 = +x3) > -1e-8 && x3 < 1e-8 ? x3 - x3 * x3 / 2 : log(1 + x3);
};
}
});
// node_modules/core-js/modules/es.math.acosh.js
var require_es_math_acosh = __commonJS({
"node_modules/core-js/modules/es.math.acosh.js"() {
var $3 = require_export();
var log1p = require_math_log1p();
var $acosh = Math.acosh;
var log = Math.log;
var sqrt = Math.sqrt;
var LN2 = Math.LN2;
var FORCED = !$acosh || Math.floor($acosh(Number.MAX_VALUE)) != 710 || $acosh(Infinity) != Infinity;
$3({ target: "Math", stat: true, forced: FORCED }, {
acosh: function acosh(x3) {
return (x3 = +x3) < 1 ? NaN : x3 > 9490626562425156e-8 ? log(x3) + LN2 : log1p(x3 - 1 + sqrt(x3 - 1) * sqrt(x3 + 1));
}
});
}
});
// node_modules/core-js/modules/es.math.asinh.js
var require_es_math_asinh = __commonJS({
"node_modules/core-js/modules/es.math.asinh.js"() {
var $3 = require_export();
var $asinh = Math.asinh;
var log = Math.log;
var sqrt = Math.sqrt;
function asinh(x3) {
return !isFinite(x3 = +x3) || x3 == 0 ? x3 : x3 < 0 ? -asinh(-x3) : log(x3 + sqrt(x3 * x3 + 1));
}
$3({ target: "Math", stat: true, forced: !($asinh && 1 / $asinh(0) > 0) }, {
asinh
});
}
});
// node_modules/core-js/modules/es.math.atanh.js
var require_es_math_atanh = __commonJS({
"node_modules/core-js/modules/es.math.atanh.js"() {
var $3 = require_export();
var $atanh = Math.atanh;
var log = Math.log;
$3({ target: "Math", stat: true, forced: !($atanh && 1 / $atanh(-0) < 0) }, {
atanh: function atanh(x3) {
return (x3 = +x3) == 0 ? x3 : log((1 + x3) / (1 - x3)) / 2;
}
});
}
});
// node_modules/core-js/internals/math-sign.js
var require_math_sign = __commonJS({
"node_modules/core-js/internals/math-sign.js"(exports2, module2) {
module2.exports = Math.sign || function sign2(x3) {
return (x3 = +x3) == 0 || x3 != x3 ? x3 : x3 < 0 ? -1 : 1;
};
}
});
// node_modules/core-js/modules/es.math.cbrt.js
var require_es_math_cbrt = __commonJS({
"node_modules/core-js/modules/es.math.cbrt.js"() {
var $3 = require_export();
var sign2 = require_math_sign();
var abs = Math.abs;
var pow = Math.pow;
$3({ target: "Math", stat: true }, {
cbrt: function cbrt(x3) {
return sign2(x3 = +x3) * pow(abs(x3), 1 / 3);
}
});
}
});
// node_modules/core-js/modules/es.math.clz32.js
var require_es_math_clz32 = __commonJS({
"node_modules/core-js/modules/es.math.clz32.js"() {
var $3 = require_export();
var floor = Math.floor;
var log = Math.log;
var LOG2E = Math.LOG2E;
$3({ target: "Math", stat: true }, {
clz32: function clz32(x3) {
return (x3 >>>= 0) ? 31 - floor(log(x3 + 0.5) * LOG2E) : 32;
}
});
}
});
// node_modules/core-js/internals/math-expm1.js
var require_math_expm1 = __commonJS({
"node_modules/core-js/internals/math-expm1.js"(exports2, module2) {
var $expm1 = Math.expm1;
var exp = Math.exp;
module2.exports = !$expm1 || $expm1(10) > 22025.465794806718 || $expm1(10) < 22025.465794806718 || $expm1(-2e-17) != -2e-17 ? function expm1(x3) {
return (x3 = +x3) == 0 ? x3 : x3 > -1e-6 && x3 < 1e-6 ? x3 + x3 * x3 / 2 : exp(x3) - 1;
} : $expm1;
}
});
// node_modules/core-js/modules/es.math.cosh.js
var require_es_math_cosh = __commonJS({
"node_modules/core-js/modules/es.math.cosh.js"() {
var $3 = require_export();
var expm1 = require_math_expm1();
var $cosh = Math.cosh;
var abs = Math.abs;
var E2 = Math.E;
$3({ target: "Math", stat: true, forced: !$cosh || $cosh(710) === Infinity }, {
cosh: function cosh(x3) {
var t3 = expm1(abs(x3) - 1) + 1;
return (t3 + 1 / (t3 * E2 * E2)) * (E2 / 2);
}
});
}
});
// node_modules/core-js/modules/es.math.expm1.js
var require_es_math_expm1 = __commonJS({
"node_modules/core-js/modules/es.math.expm1.js"() {
var $3 = require_export();
var expm1 = require_math_expm1();
$3({ target: "Math", stat: true, forced: expm1 != Math.expm1 }, { expm1 });
}
});
// node_modules/core-js/internals/math-fround.js
var require_math_fround = __commonJS({
"node_modules/core-js/internals/math-fround.js"(exports2, module2) {
var sign2 = require_math_sign();
var abs = Math.abs;
var pow = Math.pow;
var EPSILON2 = pow(2, -52);
var EPSILON32 = pow(2, -23);
var MAX32 = pow(2, 127) * (2 - EPSILON32);
var MIN32 = pow(2, -126);
var roundTiesToEven = function(n4) {
return n4 + 1 / EPSILON2 - 1 / EPSILON2;
};
module2.exports = Math.fround || function fround(x3) {
var $abs = abs(x3);
var $sign = sign2(x3);
var a4, result;
if ($abs < MIN32)
return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
a4 = (1 + EPSILON32 / EPSILON2) * $abs;
result = a4 - (a4 - $abs);
if (result > MAX32 || result != result)
return $sign * Infinity;
return $sign * result;
};
}
});
// node_modules/core-js/modules/es.math.fround.js
var require_es_math_fround = __commonJS({
"node_modules/core-js/modules/es.math.fround.js"() {
var $3 = require_export();
var fround = require_math_fround();
$3({ target: "Math", stat: true }, { fround });
}
});
// node_modules/core-js/modules/es.math.hypot.js
var require_es_math_hypot = __commonJS({
"node_modules/core-js/modules/es.math.hypot.js"() {
var $3 = require_export();
var $hypot = Math.hypot;
var abs = Math.abs;
var sqrt = Math.sqrt;
var BUGGY = !!$hypot && $hypot(Infinity, NaN) !== Infinity;
$3({ target: "Math", stat: true, forced: BUGGY }, {
hypot: function hypot(value1, value2) {
var sum = 0;
var i4 = 0;
var aLen = arguments.length;
var larg = 0;
var arg, div2;
while (i4 < aLen) {
arg = abs(arguments[i4++]);
if (larg < arg) {
div2 = larg / arg;
sum = sum * div2 * div2 + 1;
larg = arg;
} else if (arg > 0) {
div2 = arg / larg;
sum += div2 * div2;
} else
sum += arg;
}
return larg === Infinity ? Infinity : larg * sqrt(sum);
}
});
}
});
// node_modules/core-js/modules/es.math.imul.js
var require_es_math_imul = __commonJS({
"node_modules/core-js/modules/es.math.imul.js"() {
var $3 = require_export();
var fails = require_fails();
var $imul = Math.imul;
var FORCED = fails(function() {
return $imul(4294967295, 5) != -5 || $imul.length != 2;
});
$3({ target: "Math", stat: true, forced: FORCED }, {
imul: function imul(x3, y3) {
var UINT16 = 65535;
var xn2 = +x3;
var yn2 = +y3;
var xl = UINT16 & xn2;
var yl = UINT16 & yn2;
return 0 | xl * yl + ((UINT16 & xn2 >>> 16) * yl + xl * (UINT16 & yn2 >>> 16) << 16 >>> 0);
}
});
}
});
// node_modules/core-js/internals/math-log10.js
var require_math_log10 = __commonJS({
"node_modules/core-js/internals/math-log10.js"(exports2, module2) {
var log = Math.log;
var LOG10E = Math.LOG10E;
module2.exports = Math.log10 || function log102(x3) {
return log(x3) * LOG10E;
};
}
});
// node_modules/core-js/modules/es.math.log10.js
var require_es_math_log10 = __commonJS({
"node_modules/core-js/modules/es.math.log10.js"() {
var $3 = require_export();
var log102 = require_math_log10();
$3({ target: "Math", stat: true }, {
log10: log102
});
}
});
// node_modules/core-js/modules/es.math.log1p.js
var require_es_math_log1p = __commonJS({
"node_modules/core-js/modules/es.math.log1p.js"() {
var $3 = require_export();
var log1p = require_math_log1p();
$3({ target: "Math", stat: true }, { log1p });
}
});
// node_modules/core-js/modules/es.math.log2.js
var require_es_math_log2 = __commonJS({
"node_modules/core-js/modules/es.math.log2.js"() {
var $3 = require_export();
var log = Math.log;
var LN2 = Math.LN2;
$3({ target: "Math", stat: true }, {
log2: function log2(x3) {
return log(x3) / LN2;
}
});
}
});
// node_modules/core-js/modules/es.math.sign.js
var require_es_math_sign = __commonJS({
"node_modules/core-js/modules/es.math.sign.js"() {
var $3 = require_export();
var sign2 = require_math_sign();
$3({ target: "Math", stat: true }, {
sign: sign2
});
}
});
// node_modules/core-js/modules/es.math.sinh.js
var require_es_math_sinh = __commonJS({
"node_modules/core-js/modules/es.math.sinh.js"() {
var $3 = require_export();
var fails = require_fails();
var expm1 = require_math_expm1();
var abs = Math.abs;
var exp = Math.exp;
var E2 = Math.E;
var FORCED = fails(function() {
return Math.sinh(-2e-17) != -2e-17;
});
$3({ target: "Math", stat: true, forced: FORCED }, {
sinh: function sinh(x3) {
return abs(x3 = +x3) < 1 ? (expm1(x3) - expm1(-x3)) / 2 : (exp(x3 - 1) - exp(-x3 - 1)) * (E2 / 2);
}
});
}
});
// node_modules/core-js/modules/es.math.tanh.js
var require_es_math_tanh = __commonJS({
"node_modules/core-js/modules/es.math.tanh.js"() {
var $3 = require_export();
var expm1 = require_math_expm1();
var exp = Math.exp;
$3({ target: "Math", stat: true }, {
tanh: function tanh(x3) {
var a4 = expm1(x3 = +x3);
var b3 = expm1(-x3);
return a4 == Infinity ? 1 : b3 == Infinity ? -1 : (a4 - b3) / (exp(x3) + exp(-x3));
}
});
}
});
// node_modules/core-js/modules/es.math.to-string-tag.js
var require_es_math_to_string_tag = __commonJS({
"node_modules/core-js/modules/es.math.to-string-tag.js"() {
var setToStringTag = require_set_to_string_tag();
setToStringTag(Math, "Math", true);
}
});
// node_modules/core-js/modules/es.math.trunc.js
var require_es_math_trunc = __commonJS({
"node_modules/core-js/modules/es.math.trunc.js"() {
var $3 = require_export();
var ceil = Math.ceil;
var floor = Math.floor;
$3({ target: "Math", stat: true }, {
trunc: function trunc(it2) {
return (it2 > 0 ? floor : ceil)(it2);
}
});
}
});
// node_modules/core-js/internals/this-number-value.js
var require_this_number_value = __commonJS({
"node_modules/core-js/internals/this-number-value.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
module2.exports = uncurryThis(1 .valueOf);
}
});
// node_modules/core-js/internals/whitespaces.js
var require_whitespaces = __commonJS({
"node_modules/core-js/internals/whitespaces.js"(exports2, module2) {
module2.exports = " \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF";
}
});
// node_modules/core-js/internals/string-trim.js
var require_string_trim = __commonJS({
"node_modules/core-js/internals/string-trim.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var toString = require_to_string();
var whitespaces = require_whitespaces();
var replace = uncurryThis("".replace);
var whitespace = "[" + whitespaces + "]";
var ltrim = RegExp("^" + whitespace + whitespace + "*");
var rtrim = RegExp(whitespace + whitespace + "*$");
var createMethod = function(TYPE) {
return function($this) {
var string = toString(requireObjectCoercible($this));
if (TYPE & 1)
string = replace(string, ltrim, "");
if (TYPE & 2)
string = replace(string, rtrim, "");
return string;
};
};
module2.exports = {
start: createMethod(1),
end: createMethod(2),
trim: createMethod(3)
};
}
});
// node_modules/core-js/modules/es.number.constructor.js
var require_es_number_constructor = __commonJS({
"node_modules/core-js/modules/es.number.constructor.js"() {
"use strict";
var DESCRIPTORS = require_descriptors();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var isForced = require_is_forced();
var redefine = require_redefine();
var hasOwn = require_has_own_property();
var inheritIfRequired = require_inherit_if_required();
var isPrototypeOf = require_object_is_prototype_of();
var isSymbol = require_is_symbol();
var toPrimitive = require_to_primitive();
var fails = require_fails();
var getOwnPropertyNames = require_object_get_own_property_names().f;
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var defineProperty = require_object_define_property().f;
var thisNumberValue = require_this_number_value();
var trim = require_string_trim().trim;
var NUMBER = "Number";
var NativeNumber = global2[NUMBER];
var NumberPrototype = NativeNumber.prototype;
var TypeError2 = global2.TypeError;
var arraySlice = uncurryThis("".slice);
var charCodeAt = uncurryThis("".charCodeAt);
var toNumeric = function(value) {
var primValue = toPrimitive(value, "number");
return typeof primValue == "bigint" ? primValue : toNumber(primValue);
};
var toNumber = function(argument) {
var it2 = toPrimitive(argument, "number");
var first, third, radix, maxCode, digits, length, index2, code3;
if (isSymbol(it2))
throw TypeError2("Cannot convert a Symbol value to a number");
if (typeof it2 == "string" && it2.length > 2) {
it2 = trim(it2);
first = charCodeAt(it2, 0);
if (first === 43 || first === 45) {
third = charCodeAt(it2, 2);
if (third === 88 || third === 120)
return NaN;
} else if (first === 48) {
switch (charCodeAt(it2, 1)) {
case 66:
case 98:
radix = 2;
maxCode = 49;
break;
case 79:
case 111:
radix = 8;
maxCode = 55;
break;
default:
return +it2;
}
digits = arraySlice(it2, 2);
length = digits.length;
for (index2 = 0; index2 < length; index2++) {
code3 = charCodeAt(digits, index2);
if (code3 < 48 || code3 > maxCode)
return NaN;
}
return parseInt(digits, radix);
}
}
return +it2;
};
if (isForced(NUMBER, !NativeNumber(" 0o1") || !NativeNumber("0b1") || NativeNumber("+0x1"))) {
NumberWrapper = function Number2(value) {
var n4 = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
var dummy = this;
return isPrototypeOf(NumberPrototype, dummy) && fails(function() {
thisNumberValue(dummy);
}) ? inheritIfRequired(Object(n4), dummy, NumberWrapper) : n4;
};
for (keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","), j3 = 0; keys.length > j3; j3++) {
if (hasOwn(NativeNumber, key = keys[j3]) && !hasOwn(NumberWrapper, key)) {
defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
}
}
NumberWrapper.prototype = NumberPrototype;
NumberPrototype.constructor = NumberWrapper;
redefine(global2, NUMBER, NumberWrapper);
}
var NumberWrapper;
var keys;
var j3;
var key;
}
});
// node_modules/core-js/modules/es.number.epsilon.js
var require_es_number_epsilon = __commonJS({
"node_modules/core-js/modules/es.number.epsilon.js"() {
var $3 = require_export();
$3({ target: "Number", stat: true }, {
EPSILON: Math.pow(2, -52)
});
}
});
// node_modules/core-js/internals/number-is-finite.js
var require_number_is_finite = __commonJS({
"node_modules/core-js/internals/number-is-finite.js"(exports2, module2) {
var global2 = require_global();
var globalIsFinite = global2.isFinite;
module2.exports = Number.isFinite || function isFinite2(it2) {
return typeof it2 == "number" && globalIsFinite(it2);
};
}
});
// node_modules/core-js/modules/es.number.is-finite.js
var require_es_number_is_finite = __commonJS({
"node_modules/core-js/modules/es.number.is-finite.js"() {
var $3 = require_export();
var numberIsFinite = require_number_is_finite();
$3({ target: "Number", stat: true }, { isFinite: numberIsFinite });
}
});
// node_modules/core-js/internals/is-integral-number.js
var require_is_integral_number = __commonJS({
"node_modules/core-js/internals/is-integral-number.js"(exports2, module2) {
var isObject4 = require_is_object();
var floor = Math.floor;
module2.exports = Number.isInteger || function isInteger(it2) {
return !isObject4(it2) && isFinite(it2) && floor(it2) === it2;
};
}
});
// node_modules/core-js/modules/es.number.is-integer.js
var require_es_number_is_integer = __commonJS({
"node_modules/core-js/modules/es.number.is-integer.js"() {
var $3 = require_export();
var isIntegralNumber = require_is_integral_number();
$3({ target: "Number", stat: true }, {
isInteger: isIntegralNumber
});
}
});
// node_modules/core-js/modules/es.number.is-nan.js
var require_es_number_is_nan = __commonJS({
"node_modules/core-js/modules/es.number.is-nan.js"() {
var $3 = require_export();
$3({ target: "Number", stat: true }, {
isNaN: function isNaN2(number) {
return number != number;
}
});
}
});
// node_modules/core-js/modules/es.number.is-safe-integer.js
var require_es_number_is_safe_integer = __commonJS({
"node_modules/core-js/modules/es.number.is-safe-integer.js"() {
var $3 = require_export();
var isIntegralNumber = require_is_integral_number();
var abs = Math.abs;
$3({ target: "Number", stat: true }, {
isSafeInteger: function isSafeInteger(number) {
return isIntegralNumber(number) && abs(number) <= 9007199254740991;
}
});
}
});
// node_modules/core-js/modules/es.number.max-safe-integer.js
var require_es_number_max_safe_integer = __commonJS({
"node_modules/core-js/modules/es.number.max-safe-integer.js"() {
var $3 = require_export();
$3({ target: "Number", stat: true }, {
MAX_SAFE_INTEGER: 9007199254740991
});
}
});
// node_modules/core-js/modules/es.number.min-safe-integer.js
var require_es_number_min_safe_integer = __commonJS({
"node_modules/core-js/modules/es.number.min-safe-integer.js"() {
var $3 = require_export();
$3({ target: "Number", stat: true }, {
MIN_SAFE_INTEGER: -9007199254740991
});
}
});
// node_modules/core-js/internals/number-parse-float.js
var require_number_parse_float = __commonJS({
"node_modules/core-js/internals/number-parse-float.js"(exports2, module2) {
var global2 = require_global();
var fails = require_fails();
var uncurryThis = require_function_uncurry_this();
var toString = require_to_string();
var trim = require_string_trim().trim;
var whitespaces = require_whitespaces();
var charAt = uncurryThis("".charAt);
var n$ParseFloat = global2.parseFloat;
var Symbol2 = global2.Symbol;
var ITERATOR = Symbol2 && Symbol2.iterator;
var FORCED = 1 / n$ParseFloat(whitespaces + "-0") !== -Infinity || ITERATOR && !fails(function() {
n$ParseFloat(Object(ITERATOR));
});
module2.exports = FORCED ? function parseFloat2(string) {
var trimmedString = trim(toString(string));
var result = n$ParseFloat(trimmedString);
return result === 0 && charAt(trimmedString, 0) == "-" ? -0 : result;
} : n$ParseFloat;
}
});
// node_modules/core-js/modules/es.number.parse-float.js
var require_es_number_parse_float = __commonJS({
"node_modules/core-js/modules/es.number.parse-float.js"() {
var $3 = require_export();
var parseFloat2 = require_number_parse_float();
$3({ target: "Number", stat: true, forced: Number.parseFloat != parseFloat2 }, {
parseFloat: parseFloat2
});
}
});
// node_modules/core-js/internals/number-parse-int.js
var require_number_parse_int = __commonJS({
"node_modules/core-js/internals/number-parse-int.js"(exports2, module2) {
var global2 = require_global();
var fails = require_fails();
var uncurryThis = require_function_uncurry_this();
var toString = require_to_string();
var trim = require_string_trim().trim;
var whitespaces = require_whitespaces();
var $parseInt = global2.parseInt;
var Symbol2 = global2.Symbol;
var ITERATOR = Symbol2 && Symbol2.iterator;
var hex2 = /^[+-]?0x/i;
var exec = uncurryThis(hex2.exec);
var FORCED = $parseInt(whitespaces + "08") !== 8 || $parseInt(whitespaces + "0x16") !== 22 || ITERATOR && !fails(function() {
$parseInt(Object(ITERATOR));
});
module2.exports = FORCED ? function parseInt2(string, radix) {
var S2 = trim(toString(string));
return $parseInt(S2, radix >>> 0 || (exec(hex2, S2) ? 16 : 10));
} : $parseInt;
}
});
// node_modules/core-js/modules/es.number.parse-int.js
var require_es_number_parse_int = __commonJS({
"node_modules/core-js/modules/es.number.parse-int.js"() {
var $3 = require_export();
var parseInt2 = require_number_parse_int();
$3({ target: "Number", stat: true, forced: Number.parseInt != parseInt2 }, {
parseInt: parseInt2
});
}
});
// node_modules/core-js/modules/es.number.to-exponential.js
var require_es_number_to_exponential = __commonJS({
"node_modules/core-js/modules/es.number.to-exponential.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var thisNumberValue = require_this_number_value();
var $repeat = require_string_repeat();
var log102 = require_math_log10();
var fails = require_fails();
var RangeError2 = global2.RangeError;
var String2 = global2.String;
var isFinite2 = global2.isFinite;
var abs = Math.abs;
var floor = Math.floor;
var pow = Math.pow;
var round3 = Math.round;
var un$ToExponential = uncurryThis(1 .toExponential);
var repeat = uncurryThis($repeat);
var stringSlice = uncurryThis("".slice);
var ROUNDS_PROPERLY = un$ToExponential(-69e-12, 4) === "-6.9000e-11" && un$ToExponential(1.255, 2) === "1.25e+0" && un$ToExponential(12345, 3) === "1.235e+4" && un$ToExponential(25, 0) === "3e+1";
var THROWS_ON_INFINITY_FRACTION = fails(function() {
un$ToExponential(1, Infinity);
}) && fails(function() {
un$ToExponential(1, -Infinity);
});
var PROPER_NON_FINITE_THIS_CHECK = !fails(function() {
un$ToExponential(Infinity, Infinity);
}) && !fails(function() {
un$ToExponential(NaN, Infinity);
});
var FORCED = !ROUNDS_PROPERLY || !THROWS_ON_INFINITY_FRACTION || !PROPER_NON_FINITE_THIS_CHECK;
$3({ target: "Number", proto: true, forced: FORCED }, {
toExponential: function toExponential(fractionDigits) {
var x3 = thisNumberValue(this);
if (fractionDigits === void 0)
return un$ToExponential(x3);
var f3 = toIntegerOrInfinity(fractionDigits);
if (!isFinite2(x3))
return String2(x3);
if (f3 < 0 || f3 > 20)
throw RangeError2("Incorrect fraction digits");
if (ROUNDS_PROPERLY)
return un$ToExponential(x3, f3);
var s4 = "";
var m3 = "";
var e4 = 0;
var c3 = "";
var d3 = "";
if (x3 < 0) {
s4 = "-";
x3 = -x3;
}
if (x3 === 0) {
e4 = 0;
m3 = repeat("0", f3 + 1);
} else {
var l4 = log102(x3);
e4 = floor(l4);
var n4 = 0;
var w2 = pow(10, e4 - f3);
n4 = round3(x3 / w2);
if (2 * x3 >= (2 * n4 + 1) * w2) {
n4 += 1;
}
if (n4 >= pow(10, f3 + 1)) {
n4 /= 10;
e4 += 1;
}
m3 = String2(n4);
}
if (f3 !== 0) {
m3 = stringSlice(m3, 0, 1) + "." + stringSlice(m3, 1);
}
if (e4 === 0) {
c3 = "+";
d3 = "0";
} else {
c3 = e4 > 0 ? "+" : "-";
d3 = String2(abs(e4));
}
m3 += "e" + c3 + d3;
return s4 + m3;
}
});
}
});
// node_modules/core-js/modules/es.number.to-fixed.js
var require_es_number_to_fixed = __commonJS({
"node_modules/core-js/modules/es.number.to-fixed.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var thisNumberValue = require_this_number_value();
var $repeat = require_string_repeat();
var fails = require_fails();
var RangeError2 = global2.RangeError;
var String2 = global2.String;
var floor = Math.floor;
var repeat = uncurryThis($repeat);
var stringSlice = uncurryThis("".slice);
var un$ToFixed = uncurryThis(1 .toFixed);
var pow = function(x3, n4, acc) {
return n4 === 0 ? acc : n4 % 2 === 1 ? pow(x3, n4 - 1, acc * x3) : pow(x3 * x3, n4 / 2, acc);
};
var log = function(x3) {
var n4 = 0;
var x22 = x3;
while (x22 >= 4096) {
n4 += 12;
x22 /= 4096;
}
while (x22 >= 2) {
n4 += 1;
x22 /= 2;
}
return n4;
};
var multiply = function(data, n4, c3) {
var index2 = -1;
var c22 = c3;
while (++index2 < 6) {
c22 += n4 * data[index2];
data[index2] = c22 % 1e7;
c22 = floor(c22 / 1e7);
}
};
var divide = function(data, n4) {
var index2 = 6;
var c3 = 0;
while (--index2 >= 0) {
c3 += data[index2];
data[index2] = floor(c3 / n4);
c3 = c3 % n4 * 1e7;
}
};
var dataToString = function(data) {
var index2 = 6;
var s4 = "";
while (--index2 >= 0) {
if (s4 !== "" || index2 === 0 || data[index2] !== 0) {
var t3 = String2(data[index2]);
s4 = s4 === "" ? t3 : s4 + repeat("0", 7 - t3.length) + t3;
}
}
return s4;
};
var FORCED = fails(function() {
return un$ToFixed(8e-5, 3) !== "0.000" || un$ToFixed(0.9, 0) !== "1" || un$ToFixed(1.255, 2) !== "1.25" || un$ToFixed(1000000000000000100, 0) !== "1000000000000000128";
}) || !fails(function() {
un$ToFixed({});
});
$3({ target: "Number", proto: true, forced: FORCED }, {
toFixed: function toFixed(fractionDigits) {
var number = thisNumberValue(this);
var fractDigits = toIntegerOrInfinity(fractionDigits);
var data = [0, 0, 0, 0, 0, 0];
var sign2 = "";
var result = "0";
var e4, z3, j3, k3;
if (fractDigits < 0 || fractDigits > 20)
throw RangeError2("Incorrect fraction digits");
if (number != number)
return "NaN";
if (number <= -1e21 || number >= 1e21)
return String2(number);
if (number < 0) {
sign2 = "-";
number = -number;
}
if (number > 1e-21) {
e4 = log(number * pow(2, 69, 1)) - 69;
z3 = e4 < 0 ? number * pow(2, -e4, 1) : number / pow(2, e4, 1);
z3 *= 4503599627370496;
e4 = 52 - e4;
if (e4 > 0) {
multiply(data, 0, z3);
j3 = fractDigits;
while (j3 >= 7) {
multiply(data, 1e7, 0);
j3 -= 7;
}
multiply(data, pow(10, j3, 1), 0);
j3 = e4 - 1;
while (j3 >= 23) {
divide(data, 1 << 23);
j3 -= 23;
}
divide(data, 1 << j3);
multiply(data, 1, 1);
divide(data, 2);
result = dataToString(data);
} else {
multiply(data, 0, z3);
multiply(data, 1 << -e4, 0);
result = dataToString(data) + repeat("0", fractDigits);
}
}
if (fractDigits > 0) {
k3 = result.length;
result = sign2 + (k3 <= fractDigits ? "0." + repeat("0", fractDigits - k3) + result : stringSlice(result, 0, k3 - fractDigits) + "." + stringSlice(result, k3 - fractDigits));
} else {
result = sign2 + result;
}
return result;
}
});
}
});
// node_modules/core-js/modules/es.number.to-precision.js
var require_es_number_to_precision = __commonJS({
"node_modules/core-js/modules/es.number.to-precision.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var thisNumberValue = require_this_number_value();
var un$ToPrecision = uncurryThis(1 .toPrecision);
var FORCED = fails(function() {
return un$ToPrecision(1, void 0) !== "1";
}) || !fails(function() {
un$ToPrecision({});
});
$3({ target: "Number", proto: true, forced: FORCED }, {
toPrecision: function toPrecision(precision) {
return precision === void 0 ? un$ToPrecision(thisNumberValue(this)) : un$ToPrecision(thisNumberValue(this), precision);
}
});
}
});
// node_modules/core-js/internals/object-assign.js
var require_object_assign = __commonJS({
"node_modules/core-js/internals/object-assign.js"(exports2, module2) {
"use strict";
var DESCRIPTORS = require_descriptors();
var uncurryThis = require_function_uncurry_this();
var call = require_function_call();
var fails = require_fails();
var objectKeys = require_object_keys();
var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
var propertyIsEnumerableModule = require_object_property_is_enumerable();
var toObject = require_to_object();
var IndexedObject = require_indexed_object();
var $assign = Object.assign;
var defineProperty = Object.defineProperty;
var concat = uncurryThis([].concat);
module2.exports = !$assign || fails(function() {
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, "a", {
enumerable: true,
get: function() {
defineProperty(this, "b", {
value: 3,
enumerable: false
});
}
}), { b: 2 })).b !== 1)
return true;
var A3 = {};
var B2 = {};
var symbol = Symbol();
var alphabet = "abcdefghijklmnopqrst";
A3[symbol] = 7;
alphabet.split("").forEach(function(chr) {
B2[chr] = chr;
});
return $assign({}, A3)[symbol] != 7 || objectKeys($assign({}, B2)).join("") != alphabet;
}) ? function assign3(target, source) {
var T3 = toObject(target);
var argumentsLength = arguments.length;
var index2 = 1;
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
var propertyIsEnumerable = propertyIsEnumerableModule.f;
while (argumentsLength > index2) {
var S2 = IndexedObject(arguments[index2++]);
var keys = getOwnPropertySymbols ? concat(objectKeys(S2), getOwnPropertySymbols(S2)) : objectKeys(S2);
var length = keys.length;
var j3 = 0;
var key;
while (length > j3) {
key = keys[j3++];
if (!DESCRIPTORS || call(propertyIsEnumerable, S2, key))
T3[key] = S2[key];
}
}
return T3;
} : $assign;
}
});
// node_modules/core-js/modules/es.object.assign.js
var require_es_object_assign = __commonJS({
"node_modules/core-js/modules/es.object.assign.js"() {
var $3 = require_export();
var assign3 = require_object_assign();
$3({ target: "Object", stat: true, forced: Object.assign !== assign3 }, {
assign: assign3
});
}
});
// node_modules/core-js/modules/es.object.create.js
var require_es_object_create = __commonJS({
"node_modules/core-js/modules/es.object.create.js"() {
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var create = require_object_create();
$3({ target: "Object", stat: true, sham: !DESCRIPTORS }, {
create
});
}
});
// node_modules/core-js/internals/object-prototype-accessors-forced.js
var require_object_prototype_accessors_forced = __commonJS({
"node_modules/core-js/internals/object-prototype-accessors-forced.js"(exports2, module2) {
"use strict";
var IS_PURE = require_is_pure();
var global2 = require_global();
var fails = require_fails();
var WEBKIT = require_engine_webkit_version();
module2.exports = IS_PURE || !fails(function() {
if (WEBKIT && WEBKIT < 535)
return;
var key = Math.random();
__defineSetter__.call(null, key, function() {
});
delete global2[key];
});
}
});
// node_modules/core-js/modules/es.object.define-getter.js
var require_es_object_define_getter = __commonJS({
"node_modules/core-js/modules/es.object.define-getter.js"() {
"use strict";
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var FORCED = require_object_prototype_accessors_forced();
var aCallable = require_a_callable();
var toObject = require_to_object();
var definePropertyModule = require_object_define_property();
if (DESCRIPTORS) {
$3({ target: "Object", proto: true, forced: FORCED }, {
__defineGetter__: function __defineGetter__(P3, getter) {
definePropertyModule.f(toObject(this), P3, { get: aCallable(getter), enumerable: true, configurable: true });
}
});
}
}
});
// node_modules/core-js/modules/es.object.define-properties.js
var require_es_object_define_properties = __commonJS({
"node_modules/core-js/modules/es.object.define-properties.js"() {
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var defineProperties = require_object_define_properties().f;
$3({ target: "Object", stat: true, forced: Object.defineProperties !== defineProperties, sham: !DESCRIPTORS }, {
defineProperties
});
}
});
// node_modules/core-js/modules/es.object.define-property.js
var require_es_object_define_property = __commonJS({
"node_modules/core-js/modules/es.object.define-property.js"() {
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var defineProperty = require_object_define_property().f;
$3({ target: "Object", stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, {
defineProperty
});
}
});
// node_modules/core-js/modules/es.object.define-setter.js
var require_es_object_define_setter = __commonJS({
"node_modules/core-js/modules/es.object.define-setter.js"() {
"use strict";
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var FORCED = require_object_prototype_accessors_forced();
var aCallable = require_a_callable();
var toObject = require_to_object();
var definePropertyModule = require_object_define_property();
if (DESCRIPTORS) {
$3({ target: "Object", proto: true, forced: FORCED }, {
__defineSetter__: function __defineSetter__2(P3, setter) {
definePropertyModule.f(toObject(this), P3, { set: aCallable(setter), enumerable: true, configurable: true });
}
});
}
}
});
// node_modules/core-js/internals/object-to-array.js
var require_object_to_array = __commonJS({
"node_modules/core-js/internals/object-to-array.js"(exports2, module2) {
var DESCRIPTORS = require_descriptors();
var uncurryThis = require_function_uncurry_this();
var objectKeys = require_object_keys();
var toIndexedObject = require_to_indexed_object();
var $propertyIsEnumerable = require_object_property_is_enumerable().f;
var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
var push = uncurryThis([].push);
var createMethod = function(TO_ENTRIES) {
return function(it2) {
var O2 = toIndexedObject(it2);
var keys = objectKeys(O2);
var length = keys.length;
var i4 = 0;
var result = [];
var key;
while (length > i4) {
key = keys[i4++];
if (!DESCRIPTORS || propertyIsEnumerable(O2, key)) {
push(result, TO_ENTRIES ? [key, O2[key]] : O2[key]);
}
}
return result;
};
};
module2.exports = {
entries: createMethod(true),
values: createMethod(false)
};
}
});
// node_modules/core-js/modules/es.object.entries.js
var require_es_object_entries = __commonJS({
"node_modules/core-js/modules/es.object.entries.js"() {
var $3 = require_export();
var $entries = require_object_to_array().entries;
$3({ target: "Object", stat: true }, {
entries: function entries(O2) {
return $entries(O2);
}
});
}
});
// node_modules/core-js/modules/es.object.freeze.js
var require_es_object_freeze = __commonJS({
"node_modules/core-js/modules/es.object.freeze.js"() {
var $3 = require_export();
var FREEZING = require_freezing();
var fails = require_fails();
var isObject4 = require_is_object();
var onFreeze = require_internal_metadata().onFreeze;
var $freeze = Object.freeze;
var FAILS_ON_PRIMITIVES = fails(function() {
$freeze(1);
});
$3({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
freeze: function freeze(it2) {
return $freeze && isObject4(it2) ? $freeze(onFreeze(it2)) : it2;
}
});
}
});
// node_modules/core-js/modules/es.object.from-entries.js
var require_es_object_from_entries = __commonJS({
"node_modules/core-js/modules/es.object.from-entries.js"() {
var $3 = require_export();
var iterate = require_iterate();
var createProperty = require_create_property();
$3({ target: "Object", stat: true }, {
fromEntries: function fromEntries(iterable) {
var obj = {};
iterate(iterable, function(k3, v3) {
createProperty(obj, k3, v3);
}, { AS_ENTRIES: true });
return obj;
}
});
}
});
// node_modules/core-js/modules/es.object.get-own-property-descriptor.js
var require_es_object_get_own_property_descriptor = __commonJS({
"node_modules/core-js/modules/es.object.get-own-property-descriptor.js"() {
var $3 = require_export();
var fails = require_fails();
var toIndexedObject = require_to_indexed_object();
var nativeGetOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var DESCRIPTORS = require_descriptors();
var FAILS_ON_PRIMITIVES = fails(function() {
nativeGetOwnPropertyDescriptor(1);
});
var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
$3({ target: "Object", stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it2, key) {
return nativeGetOwnPropertyDescriptor(toIndexedObject(it2), key);
}
});
}
});
// node_modules/core-js/modules/es.object.get-own-property-descriptors.js
var require_es_object_get_own_property_descriptors = __commonJS({
"node_modules/core-js/modules/es.object.get-own-property-descriptors.js"() {
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var ownKeys20 = require_own_keys();
var toIndexedObject = require_to_indexed_object();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var createProperty = require_create_property();
$3({ target: "Object", stat: true, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
var O2 = toIndexedObject(object);
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var keys = ownKeys20(O2);
var result = {};
var index2 = 0;
var key, descriptor;
while (keys.length > index2) {
descriptor = getOwnPropertyDescriptor(O2, key = keys[index2++]);
if (descriptor !== void 0)
createProperty(result, key, descriptor);
}
return result;
}
});
}
});
// node_modules/core-js/modules/es.object.get-own-property-names.js
var require_es_object_get_own_property_names = __commonJS({
"node_modules/core-js/modules/es.object.get-own-property-names.js"() {
var $3 = require_export();
var fails = require_fails();
var getOwnPropertyNames = require_object_get_own_property_names_external().f;
var FAILS_ON_PRIMITIVES = fails(function() {
return !Object.getOwnPropertyNames(1);
});
$3({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES }, {
getOwnPropertyNames
});
}
});
// node_modules/core-js/modules/es.object.get-prototype-of.js
var require_es_object_get_prototype_of = __commonJS({
"node_modules/core-js/modules/es.object.get-prototype-of.js"() {
var $3 = require_export();
var fails = require_fails();
var toObject = require_to_object();
var nativeGetPrototypeOf = require_object_get_prototype_of();
var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter();
var FAILS_ON_PRIMITIVES = fails(function() {
nativeGetPrototypeOf(1);
});
$3({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
getPrototypeOf: function getPrototypeOf(it2) {
return nativeGetPrototypeOf(toObject(it2));
}
});
}
});
// node_modules/core-js/modules/es.object.has-own.js
var require_es_object_has_own = __commonJS({
"node_modules/core-js/modules/es.object.has-own.js"() {
var $3 = require_export();
var hasOwn = require_has_own_property();
$3({ target: "Object", stat: true }, {
hasOwn
});
}
});
// node_modules/core-js/internals/same-value.js
var require_same_value = __commonJS({
"node_modules/core-js/internals/same-value.js"(exports2, module2) {
module2.exports = Object.is || function is(x3, y3) {
return x3 === y3 ? x3 !== 0 || 1 / x3 === 1 / y3 : x3 != x3 && y3 != y3;
};
}
});
// node_modules/core-js/modules/es.object.is.js
var require_es_object_is = __commonJS({
"node_modules/core-js/modules/es.object.is.js"() {
var $3 = require_export();
var is = require_same_value();
$3({ target: "Object", stat: true }, {
is
});
}
});
// node_modules/core-js/modules/es.object.is-extensible.js
var require_es_object_is_extensible = __commonJS({
"node_modules/core-js/modules/es.object.is-extensible.js"() {
var $3 = require_export();
var $isExtensible = require_object_is_extensible();
$3({ target: "Object", stat: true, forced: Object.isExtensible !== $isExtensible }, {
isExtensible: $isExtensible
});
}
});
// node_modules/core-js/modules/es.object.is-frozen.js
var require_es_object_is_frozen = __commonJS({
"node_modules/core-js/modules/es.object.is-frozen.js"() {
var $3 = require_export();
var fails = require_fails();
var isObject4 = require_is_object();
var classof = require_classof_raw();
var ARRAY_BUFFER_NON_EXTENSIBLE = require_array_buffer_non_extensible();
var $isFrozen = Object.isFrozen;
var FAILS_ON_PRIMITIVES = fails(function() {
$isFrozen(1);
});
$3({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE }, {
isFrozen: function isFrozen(it2) {
if (!isObject4(it2))
return true;
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it2) == "ArrayBuffer")
return true;
return $isFrozen ? $isFrozen(it2) : false;
}
});
}
});
// node_modules/core-js/modules/es.object.is-sealed.js
var require_es_object_is_sealed = __commonJS({
"node_modules/core-js/modules/es.object.is-sealed.js"() {
var $3 = require_export();
var fails = require_fails();
var isObject4 = require_is_object();
var classof = require_classof_raw();
var ARRAY_BUFFER_NON_EXTENSIBLE = require_array_buffer_non_extensible();
var $isSealed = Object.isSealed;
var FAILS_ON_PRIMITIVES = fails(function() {
$isSealed(1);
});
$3({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE }, {
isSealed: function isSealed(it2) {
if (!isObject4(it2))
return true;
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it2) == "ArrayBuffer")
return true;
return $isSealed ? $isSealed(it2) : false;
}
});
}
});
// node_modules/core-js/modules/es.object.keys.js
var require_es_object_keys = __commonJS({
"node_modules/core-js/modules/es.object.keys.js"() {
var $3 = require_export();
var toObject = require_to_object();
var nativeKeys = require_object_keys();
var fails = require_fails();
var FAILS_ON_PRIMITIVES = fails(function() {
nativeKeys(1);
});
$3({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES }, {
keys: function keys(it2) {
return nativeKeys(toObject(it2));
}
});
}
});
// node_modules/core-js/modules/es.object.lookup-getter.js
var require_es_object_lookup_getter = __commonJS({
"node_modules/core-js/modules/es.object.lookup-getter.js"() {
"use strict";
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var FORCED = require_object_prototype_accessors_forced();
var toObject = require_to_object();
var toPropertyKey = require_to_property_key();
var getPrototypeOf = require_object_get_prototype_of();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
if (DESCRIPTORS) {
$3({ target: "Object", proto: true, forced: FORCED }, {
__lookupGetter__: function __lookupGetter__(P3) {
var O2 = toObject(this);
var key = toPropertyKey(P3);
var desc;
do {
if (desc = getOwnPropertyDescriptor(O2, key))
return desc.get;
} while (O2 = getPrototypeOf(O2));
}
});
}
}
});
// node_modules/core-js/modules/es.object.lookup-setter.js
var require_es_object_lookup_setter = __commonJS({
"node_modules/core-js/modules/es.object.lookup-setter.js"() {
"use strict";
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var FORCED = require_object_prototype_accessors_forced();
var toObject = require_to_object();
var toPropertyKey = require_to_property_key();
var getPrototypeOf = require_object_get_prototype_of();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
if (DESCRIPTORS) {
$3({ target: "Object", proto: true, forced: FORCED }, {
__lookupSetter__: function __lookupSetter__(P3) {
var O2 = toObject(this);
var key = toPropertyKey(P3);
var desc;
do {
if (desc = getOwnPropertyDescriptor(O2, key))
return desc.set;
} while (O2 = getPrototypeOf(O2));
}
});
}
}
});
// node_modules/core-js/modules/es.object.prevent-extensions.js
var require_es_object_prevent_extensions = __commonJS({
"node_modules/core-js/modules/es.object.prevent-extensions.js"() {
var $3 = require_export();
var isObject4 = require_is_object();
var onFreeze = require_internal_metadata().onFreeze;
var FREEZING = require_freezing();
var fails = require_fails();
var $preventExtensions = Object.preventExtensions;
var FAILS_ON_PRIMITIVES = fails(function() {
$preventExtensions(1);
});
$3({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
preventExtensions: function preventExtensions(it2) {
return $preventExtensions && isObject4(it2) ? $preventExtensions(onFreeze(it2)) : it2;
}
});
}
});
// node_modules/core-js/modules/es.object.seal.js
var require_es_object_seal = __commonJS({
"node_modules/core-js/modules/es.object.seal.js"() {
var $3 = require_export();
var isObject4 = require_is_object();
var onFreeze = require_internal_metadata().onFreeze;
var FREEZING = require_freezing();
var fails = require_fails();
var $seal = Object.seal;
var FAILS_ON_PRIMITIVES = fails(function() {
$seal(1);
});
$3({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
seal: function seal(it2) {
return $seal && isObject4(it2) ? $seal(onFreeze(it2)) : it2;
}
});
}
});
// node_modules/core-js/modules/es.object.set-prototype-of.js
var require_es_object_set_prototype_of = __commonJS({
"node_modules/core-js/modules/es.object.set-prototype-of.js"() {
var $3 = require_export();
var setPrototypeOf = require_object_set_prototype_of();
$3({ target: "Object", stat: true }, {
setPrototypeOf
});
}
});
// node_modules/core-js/internals/object-to-string.js
var require_object_to_string = __commonJS({
"node_modules/core-js/internals/object-to-string.js"(exports2, module2) {
"use strict";
var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();
var classof = require_classof();
module2.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
return "[object " + classof(this) + "]";
};
}
});
// node_modules/core-js/modules/es.object.to-string.js
var require_es_object_to_string = __commonJS({
"node_modules/core-js/modules/es.object.to-string.js"() {
var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();
var redefine = require_redefine();
var toString = require_object_to_string();
if (!TO_STRING_TAG_SUPPORT) {
redefine(Object.prototype, "toString", toString, { unsafe: true });
}
}
});
// node_modules/core-js/modules/es.object.values.js
var require_es_object_values = __commonJS({
"node_modules/core-js/modules/es.object.values.js"() {
var $3 = require_export();
var $values = require_object_to_array().values;
$3({ target: "Object", stat: true }, {
values: function values(O2) {
return $values(O2);
}
});
}
});
// node_modules/core-js/modules/es.parse-float.js
var require_es_parse_float = __commonJS({
"node_modules/core-js/modules/es.parse-float.js"() {
var $3 = require_export();
var $parseFloat = require_number_parse_float();
$3({ global: true, forced: parseFloat != $parseFloat }, {
parseFloat: $parseFloat
});
}
});
// node_modules/core-js/modules/es.parse-int.js
var require_es_parse_int = __commonJS({
"node_modules/core-js/modules/es.parse-int.js"() {
var $3 = require_export();
var $parseInt = require_number_parse_int();
$3({ global: true, forced: parseInt != $parseInt }, {
parseInt: $parseInt
});
}
});
// node_modules/core-js/internals/native-promise-constructor.js
var require_native_promise_constructor = __commonJS({
"node_modules/core-js/internals/native-promise-constructor.js"(exports2, module2) {
var global2 = require_global();
module2.exports = global2.Promise;
}
});
// node_modules/core-js/internals/validate-arguments-length.js
var require_validate_arguments_length = __commonJS({
"node_modules/core-js/internals/validate-arguments-length.js"(exports2, module2) {
var global2 = require_global();
var TypeError2 = global2.TypeError;
module2.exports = function(passed, required) {
if (passed < required)
throw TypeError2("Not enough arguments");
return passed;
};
}
});
// node_modules/core-js/internals/engine-is-ios.js
var require_engine_is_ios = __commonJS({
"node_modules/core-js/internals/engine-is-ios.js"(exports2, module2) {
var userAgent = require_engine_user_agent();
module2.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);
}
});
// node_modules/core-js/internals/task.js
var require_task = __commonJS({
"node_modules/core-js/internals/task.js"(exports2, module2) {
var global2 = require_global();
var apply = require_function_apply();
var bind2 = require_function_bind_context();
var isCallable = require_is_callable();
var hasOwn = require_has_own_property();
var fails = require_fails();
var html = require_html();
var arraySlice = require_array_slice();
var createElement2 = require_document_create_element();
var validateArgumentsLength = require_validate_arguments_length();
var IS_IOS = require_engine_is_ios();
var IS_NODE = require_engine_is_node();
var set2 = global2.setImmediate;
var clear = global2.clearImmediate;
var process2 = global2.process;
var Dispatch = global2.Dispatch;
var Function2 = global2.Function;
var MessageChannel2 = global2.MessageChannel;
var String2 = global2.String;
var counter = 0;
var queue = {};
var ONREADYSTATECHANGE = "onreadystatechange";
var location2;
var defer;
var channel;
var port;
try {
location2 = global2.location;
} catch (error2) {
}
var run = function(id) {
if (hasOwn(queue, id)) {
var fn3 = queue[id];
delete queue[id];
fn3();
}
};
var runner = function(id) {
return function() {
run(id);
};
};
var listener = function(event) {
run(event.data);
};
var post = function(id) {
global2.postMessage(String2(id), location2.protocol + "//" + location2.host);
};
if (!set2 || !clear) {
set2 = function setImmediate(handler) {
validateArgumentsLength(arguments.length, 1);
var fn3 = isCallable(handler) ? handler : Function2(handler);
var args = arraySlice(arguments, 1);
queue[++counter] = function() {
apply(fn3, void 0, args);
};
defer(counter);
return counter;
};
clear = function clearImmediate(id) {
delete queue[id];
};
if (IS_NODE) {
defer = function(id) {
process2.nextTick(runner(id));
};
} else if (Dispatch && Dispatch.now) {
defer = function(id) {
Dispatch.now(runner(id));
};
} else if (MessageChannel2 && !IS_IOS) {
channel = new MessageChannel2();
port = channel.port2;
channel.port1.onmessage = listener;
defer = bind2(port.postMessage, port);
} else if (global2.addEventListener && isCallable(global2.postMessage) && !global2.importScripts && location2 && location2.protocol !== "file:" && !fails(post)) {
defer = post;
global2.addEventListener("message", listener, false);
} else if (ONREADYSTATECHANGE in createElement2("script")) {
defer = function(id) {
html.appendChild(createElement2("script"))[ONREADYSTATECHANGE] = function() {
html.removeChild(this);
run(id);
};
};
} else {
defer = function(id) {
setTimeout(runner(id), 0);
};
}
}
module2.exports = {
set: set2,
clear
};
}
});
// node_modules/core-js/internals/engine-is-ios-pebble.js
var require_engine_is_ios_pebble = __commonJS({
"node_modules/core-js/internals/engine-is-ios-pebble.js"(exports2, module2) {
var userAgent = require_engine_user_agent();
var global2 = require_global();
module2.exports = /ipad|iphone|ipod/i.test(userAgent) && global2.Pebble !== void 0;
}
});
// node_modules/core-js/internals/engine-is-webos-webkit.js
var require_engine_is_webos_webkit = __commonJS({
"node_modules/core-js/internals/engine-is-webos-webkit.js"(exports2, module2) {
var userAgent = require_engine_user_agent();
module2.exports = /web0s(?!.*chrome)/i.test(userAgent);
}
});
// node_modules/core-js/internals/microtask.js
var require_microtask = __commonJS({
"node_modules/core-js/internals/microtask.js"(exports2, module2) {
var global2 = require_global();
var bind2 = require_function_bind_context();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var macrotask = require_task().set;
var IS_IOS = require_engine_is_ios();
var IS_IOS_PEBBLE = require_engine_is_ios_pebble();
var IS_WEBOS_WEBKIT = require_engine_is_webos_webkit();
var IS_NODE = require_engine_is_node();
var MutationObserver2 = global2.MutationObserver || global2.WebKitMutationObserver;
var document2 = global2.document;
var process2 = global2.process;
var Promise2 = global2.Promise;
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global2, "queueMicrotask");
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
var flush;
var head;
var last;
var notify;
var toggle2;
var node;
var promise;
var then;
if (!queueMicrotask) {
flush = function() {
var parent, fn3;
if (IS_NODE && (parent = process2.domain))
parent.exit();
while (head) {
fn3 = head.fn;
head = head.next;
try {
fn3();
} catch (error2) {
if (head)
notify();
else
last = void 0;
throw error2;
}
}
last = void 0;
if (parent)
parent.enter();
};
if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver2 && document2) {
toggle2 = true;
node = document2.createTextNode("");
new MutationObserver2(flush).observe(node, { characterData: true });
notify = function() {
node.data = toggle2 = !toggle2;
};
} else if (!IS_IOS_PEBBLE && Promise2 && Promise2.resolve) {
promise = Promise2.resolve(void 0);
promise.constructor = Promise2;
then = bind2(promise.then, promise);
notify = function() {
then(flush);
};
} else if (IS_NODE) {
notify = function() {
process2.nextTick(flush);
};
} else {
macrotask = bind2(macrotask, global2);
notify = function() {
macrotask(flush);
};
}
}
module2.exports = queueMicrotask || function(fn3) {
var task = { fn: fn3, next: void 0 };
if (last)
last.next = task;
if (!head) {
head = task;
notify();
}
last = task;
};
}
});
// node_modules/core-js/internals/new-promise-capability.js
var require_new_promise_capability = __commonJS({
"node_modules/core-js/internals/new-promise-capability.js"(exports2, module2) {
"use strict";
var aCallable = require_a_callable();
var PromiseCapability = function(C3) {
var resolve3, reject;
this.promise = new C3(function($$resolve, $$reject) {
if (resolve3 !== void 0 || reject !== void 0)
throw TypeError("Bad Promise constructor");
resolve3 = $$resolve;
reject = $$reject;
});
this.resolve = aCallable(resolve3);
this.reject = aCallable(reject);
};
module2.exports.f = function(C3) {
return new PromiseCapability(C3);
};
}
});
// node_modules/core-js/internals/promise-resolve.js
var require_promise_resolve = __commonJS({
"node_modules/core-js/internals/promise-resolve.js"(exports2, module2) {
var anObject = require_an_object();
var isObject4 = require_is_object();
var newPromiseCapability = require_new_promise_capability();
module2.exports = function(C3, x3) {
anObject(C3);
if (isObject4(x3) && x3.constructor === C3)
return x3;
var promiseCapability = newPromiseCapability.f(C3);
var resolve3 = promiseCapability.resolve;
resolve3(x3);
return promiseCapability.promise;
};
}
});
// node_modules/core-js/internals/host-report-errors.js
var require_host_report_errors = __commonJS({
"node_modules/core-js/internals/host-report-errors.js"(exports2, module2) {
var global2 = require_global();
module2.exports = function(a4, b3) {
var console2 = global2.console;
if (console2 && console2.error) {
arguments.length == 1 ? console2.error(a4) : console2.error(a4, b3);
}
};
}
});
// node_modules/core-js/internals/perform.js
var require_perform = __commonJS({
"node_modules/core-js/internals/perform.js"(exports2, module2) {
module2.exports = function(exec) {
try {
return { error: false, value: exec() };
} catch (error2) {
return { error: true, value: error2 };
}
};
}
});
// node_modules/core-js/internals/queue.js
var require_queue = __commonJS({
"node_modules/core-js/internals/queue.js"(exports2, module2) {
var Queue = function() {
this.head = null;
this.tail = null;
};
Queue.prototype = {
add: function(item) {
var entry = { item, next: null };
if (this.head)
this.tail.next = entry;
else
this.head = entry;
this.tail = entry;
},
get: function() {
var entry = this.head;
if (entry) {
this.head = entry.next;
if (this.tail === entry)
this.tail = null;
return entry.item;
}
}
};
module2.exports = Queue;
}
});
// node_modules/core-js/internals/engine-is-browser.js
var require_engine_is_browser = __commonJS({
"node_modules/core-js/internals/engine-is-browser.js"(exports2, module2) {
module2.exports = typeof window == "object";
}
});
// node_modules/core-js/modules/es.promise.js
var require_es_promise = __commonJS({
"node_modules/core-js/modules/es.promise.js"() {
"use strict";
var $3 = require_export();
var IS_PURE = require_is_pure();
var global2 = require_global();
var getBuiltIn = require_get_built_in();
var call = require_function_call();
var NativePromise = require_native_promise_constructor();
var redefine = require_redefine();
var redefineAll = require_redefine_all();
var setPrototypeOf = require_object_set_prototype_of();
var setToStringTag = require_set_to_string_tag();
var setSpecies = require_set_species();
var aCallable = require_a_callable();
var isCallable = require_is_callable();
var isObject4 = require_is_object();
var anInstance = require_an_instance();
var inspectSource = require_inspect_source();
var iterate = require_iterate();
var checkCorrectnessOfIteration = require_check_correctness_of_iteration();
var speciesConstructor = require_species_constructor();
var task = require_task().set;
var microtask = require_microtask();
var promiseResolve = require_promise_resolve();
var hostReportErrors = require_host_report_errors();
var newPromiseCapabilityModule = require_new_promise_capability();
var perform = require_perform();
var Queue = require_queue();
var InternalStateModule = require_internal_state();
var isForced = require_is_forced();
var wellKnownSymbol = require_well_known_symbol();
var IS_BROWSER = require_engine_is_browser();
var IS_NODE = require_engine_is_node();
var V8_VERSION = require_engine_v8_version();
var SPECIES = wellKnownSymbol("species");
var PROMISE = "Promise";
var getInternalState = InternalStateModule.getterFor(PROMISE);
var setInternalState = InternalStateModule.set;
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
var NativePromisePrototype = NativePromise && NativePromise.prototype;
var PromiseConstructor = NativePromise;
var PromisePrototype = NativePromisePrototype;
var TypeError2 = global2.TypeError;
var document2 = global2.document;
var process2 = global2.process;
var newPromiseCapability = newPromiseCapabilityModule.f;
var newGenericPromiseCapability = newPromiseCapability;
var DISPATCH_EVENT = !!(document2 && document2.createEvent && global2.dispatchEvent);
var NATIVE_REJECTION_EVENT = isCallable(global2.PromiseRejectionEvent);
var UNHANDLED_REJECTION = "unhandledrejection";
var REJECTION_HANDLED = "rejectionhandled";
var PENDING = 0;
var FULFILLED = 1;
var REJECTED = 2;
var HANDLED = 1;
var UNHANDLED = 2;
var SUBCLASSING = false;
var Internal;
var OwnPromiseCapability;
var PromiseWrapper;
var nativeThen;
var FORCED = isForced(PROMISE, function() {
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66)
return true;
if (IS_PURE && !PromisePrototype["finally"])
return true;
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE))
return false;
var promise = new PromiseConstructor(function(resolve3) {
resolve3(1);
});
var FakePromise = function(exec) {
exec(function() {
}, function() {
});
};
var constructor = promise.constructor = {};
constructor[SPECIES] = FakePromise;
SUBCLASSING = promise.then(function() {
}) instanceof FakePromise;
if (!SUBCLASSING)
return true;
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
});
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function(iterable) {
PromiseConstructor.all(iterable)["catch"](function() {
});
});
var isThenable = function(it2) {
var then;
return isObject4(it2) && isCallable(then = it2.then) ? then : false;
};
var callReaction = function(reaction, state) {
var value = state.value;
var ok = state.state == FULFILLED;
var handler = ok ? reaction.ok : reaction.fail;
var resolve3 = reaction.resolve;
var reject = reaction.reject;
var domain = reaction.domain;
var result, then, exited;
try {
if (handler) {
if (!ok) {
if (state.rejection === UNHANDLED)
onHandleUnhandled(state);
state.rejection = HANDLED;
}
if (handler === true)
result = value;
else {
if (domain)
domain.enter();
result = handler(value);
if (domain) {
domain.exit();
exited = true;
}
}
if (result === reaction.promise) {
reject(TypeError2("Promise-chain cycle"));
} else if (then = isThenable(result)) {
call(then, result, resolve3, reject);
} else
resolve3(result);
} else
reject(value);
} catch (error2) {
if (domain && !exited)
domain.exit();
reject(error2);
}
};
var notify = function(state, isReject) {
if (state.notified)
return;
state.notified = true;
microtask(function() {
var reactions = state.reactions;
var reaction;
while (reaction = reactions.get()) {
callReaction(reaction, state);
}
state.notified = false;
if (isReject && !state.rejection)
onUnhandled(state);
});
};
var dispatchEvent2 = function(name, promise, reason) {
var event, handler;
if (DISPATCH_EVENT) {
event = document2.createEvent("Event");
event.promise = promise;
event.reason = reason;
event.initEvent(name, false, true);
global2.dispatchEvent(event);
} else
event = { promise, reason };
if (!NATIVE_REJECTION_EVENT && (handler = global2["on" + name]))
handler(event);
else if (name === UNHANDLED_REJECTION)
hostReportErrors("Unhandled promise rejection", reason);
};
var onUnhandled = function(state) {
call(task, global2, function() {
var promise = state.facade;
var value = state.value;
var IS_UNHANDLED = isUnhandled(state);
var result;
if (IS_UNHANDLED) {
result = perform(function() {
if (IS_NODE) {
process2.emit("unhandledRejection", value, promise);
} else
dispatchEvent2(UNHANDLED_REJECTION, promise, value);
});
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
if (result.error)
throw result.value;
}
});
};
var isUnhandled = function(state) {
return state.rejection !== HANDLED && !state.parent;
};
var onHandleUnhandled = function(state) {
call(task, global2, function() {
var promise = state.facade;
if (IS_NODE) {
process2.emit("rejectionHandled", promise);
} else
dispatchEvent2(REJECTION_HANDLED, promise, state.value);
});
};
var bind2 = function(fn3, state, unwrap) {
return function(value) {
fn3(state, value, unwrap);
};
};
var internalReject = function(state, value, unwrap) {
if (state.done)
return;
state.done = true;
if (unwrap)
state = unwrap;
state.value = value;
state.state = REJECTED;
notify(state, true);
};
var internalResolve = function(state, value, unwrap) {
if (state.done)
return;
state.done = true;
if (unwrap)
state = unwrap;
try {
if (state.facade === value)
throw TypeError2("Promise can't be resolved itself");
var then = isThenable(value);
if (then) {
microtask(function() {
var wrapper = { done: false };
try {
call(then, value, bind2(internalResolve, wrapper, state), bind2(internalReject, wrapper, state));
} catch (error2) {
internalReject(wrapper, error2, state);
}
});
} else {
state.value = value;
state.state = FULFILLED;
notify(state, false);
}
} catch (error2) {
internalReject({ done: false }, error2, state);
}
};
if (FORCED) {
PromiseConstructor = function Promise2(executor) {
anInstance(this, PromisePrototype);
aCallable(executor);
call(Internal, this);
var state = getInternalState(this);
try {
executor(bind2(internalResolve, state), bind2(internalReject, state));
} catch (error2) {
internalReject(state, error2);
}
};
PromisePrototype = PromiseConstructor.prototype;
Internal = function Promise2(executor) {
setInternalState(this, {
type: PROMISE,
done: false,
notified: false,
parent: false,
reactions: new Queue(),
rejection: false,
state: PENDING,
value: void 0
});
};
Internal.prototype = redefineAll(PromisePrototype, {
then: function then(onFulfilled, onRejected) {
var state = getInternalPromiseState(this);
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
state.parent = true;
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
reaction.fail = isCallable(onRejected) && onRejected;
reaction.domain = IS_NODE ? process2.domain : void 0;
if (state.state == PENDING)
state.reactions.add(reaction);
else
microtask(function() {
callReaction(reaction, state);
});
return reaction.promise;
},
"catch": function(onRejected) {
return this.then(void 0, onRejected);
}
});
OwnPromiseCapability = function() {
var promise = new Internal();
var state = getInternalState(promise);
this.promise = promise;
this.resolve = bind2(internalResolve, state);
this.reject = bind2(internalReject, state);
};
newPromiseCapabilityModule.f = newPromiseCapability = function(C3) {
return C3 === PromiseConstructor || C3 === PromiseWrapper ? new OwnPromiseCapability(C3) : newGenericPromiseCapability(C3);
};
if (!IS_PURE && isCallable(NativePromise) && NativePromisePrototype !== Object.prototype) {
nativeThen = NativePromisePrototype.then;
if (!SUBCLASSING) {
redefine(NativePromisePrototype, "then", function then(onFulfilled, onRejected) {
var that = this;
return new PromiseConstructor(function(resolve3, reject) {
call(nativeThen, that, resolve3, reject);
}).then(onFulfilled, onRejected);
}, { unsafe: true });
redefine(NativePromisePrototype, "catch", PromisePrototype["catch"], { unsafe: true });
}
try {
delete NativePromisePrototype.constructor;
} catch (error2) {
}
if (setPrototypeOf) {
setPrototypeOf(NativePromisePrototype, PromisePrototype);
}
}
}
$3({ global: true, wrap: true, forced: FORCED }, {
Promise: PromiseConstructor
});
setToStringTag(PromiseConstructor, PROMISE, false, true);
setSpecies(PROMISE);
PromiseWrapper = getBuiltIn(PROMISE);
$3({ target: PROMISE, stat: true, forced: FORCED }, {
reject: function reject(r4) {
var capability = newPromiseCapability(this);
call(capability.reject, void 0, r4);
return capability.promise;
}
});
$3({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
resolve: function resolve3(x3) {
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x3);
}
});
$3({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
all: function all(iterable) {
var C3 = this;
var capability = newPromiseCapability(C3);
var resolve3 = capability.resolve;
var reject = capability.reject;
var result = perform(function() {
var $promiseResolve = aCallable(C3.resolve);
var values = [];
var counter = 0;
var remaining = 1;
iterate(iterable, function(promise) {
var index2 = counter++;
var alreadyCalled = false;
remaining++;
call($promiseResolve, C3, promise).then(function(value) {
if (alreadyCalled)
return;
alreadyCalled = true;
values[index2] = value;
--remaining || resolve3(values);
}, reject);
});
--remaining || resolve3(values);
});
if (result.error)
reject(result.value);
return capability.promise;
},
race: function race(iterable) {
var C3 = this;
var capability = newPromiseCapability(C3);
var reject = capability.reject;
var result = perform(function() {
var $promiseResolve = aCallable(C3.resolve);
iterate(iterable, function(promise) {
call($promiseResolve, C3, promise).then(capability.resolve, reject);
});
});
if (result.error)
reject(result.value);
return capability.promise;
}
});
}
});
// node_modules/core-js/modules/es.promise.all-settled.js
var require_es_promise_all_settled = __commonJS({
"node_modules/core-js/modules/es.promise.all-settled.js"() {
"use strict";
var $3 = require_export();
var call = require_function_call();
var aCallable = require_a_callable();
var newPromiseCapabilityModule = require_new_promise_capability();
var perform = require_perform();
var iterate = require_iterate();
$3({ target: "Promise", stat: true }, {
allSettled: function allSettled(iterable) {
var C3 = this;
var capability = newPromiseCapabilityModule.f(C3);
var resolve3 = capability.resolve;
var reject = capability.reject;
var result = perform(function() {
var promiseResolve = aCallable(C3.resolve);
var values = [];
var counter = 0;
var remaining = 1;
iterate(iterable, function(promise) {
var index2 = counter++;
var alreadyCalled = false;
remaining++;
call(promiseResolve, C3, promise).then(function(value) {
if (alreadyCalled)
return;
alreadyCalled = true;
values[index2] = { status: "fulfilled", value };
--remaining || resolve3(values);
}, function(error2) {
if (alreadyCalled)
return;
alreadyCalled = true;
values[index2] = { status: "rejected", reason: error2 };
--remaining || resolve3(values);
});
});
--remaining || resolve3(values);
});
if (result.error)
reject(result.value);
return capability.promise;
}
});
}
});
// node_modules/core-js/modules/es.promise.any.js
var require_es_promise_any = __commonJS({
"node_modules/core-js/modules/es.promise.any.js"() {
"use strict";
var $3 = require_export();
var aCallable = require_a_callable();
var getBuiltIn = require_get_built_in();
var call = require_function_call();
var newPromiseCapabilityModule = require_new_promise_capability();
var perform = require_perform();
var iterate = require_iterate();
var PROMISE_ANY_ERROR = "No one promise resolved";
$3({ target: "Promise", stat: true }, {
any: function any(iterable) {
var C3 = this;
var AggregateError = getBuiltIn("AggregateError");
var capability = newPromiseCapabilityModule.f(C3);
var resolve3 = capability.resolve;
var reject = capability.reject;
var result = perform(function() {
var promiseResolve = aCallable(C3.resolve);
var errors = [];
var counter = 0;
var remaining = 1;
var alreadyResolved = false;
iterate(iterable, function(promise) {
var index2 = counter++;
var alreadyRejected = false;
remaining++;
call(promiseResolve, C3, promise).then(function(value) {
if (alreadyRejected || alreadyResolved)
return;
alreadyResolved = true;
resolve3(value);
}, function(error2) {
if (alreadyRejected || alreadyResolved)
return;
alreadyRejected = true;
errors[index2] = error2;
--remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));
});
});
--remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));
});
if (result.error)
reject(result.value);
return capability.promise;
}
});
}
});
// node_modules/core-js/modules/es.promise.finally.js
var require_es_promise_finally = __commonJS({
"node_modules/core-js/modules/es.promise.finally.js"() {
"use strict";
var $3 = require_export();
var IS_PURE = require_is_pure();
var NativePromise = require_native_promise_constructor();
var fails = require_fails();
var getBuiltIn = require_get_built_in();
var isCallable = require_is_callable();
var speciesConstructor = require_species_constructor();
var promiseResolve = require_promise_resolve();
var redefine = require_redefine();
var NON_GENERIC = !!NativePromise && fails(function() {
NativePromise.prototype["finally"].call({ then: function() {
} }, function() {
});
});
$3({ target: "Promise", proto: true, real: true, forced: NON_GENERIC }, {
"finally": function(onFinally) {
var C3 = speciesConstructor(this, getBuiltIn("Promise"));
var isFunction2 = isCallable(onFinally);
return this.then(isFunction2 ? function(x3) {
return promiseResolve(C3, onFinally()).then(function() {
return x3;
});
} : onFinally, isFunction2 ? function(e4) {
return promiseResolve(C3, onFinally()).then(function() {
throw e4;
});
} : onFinally);
}
});
if (!IS_PURE && isCallable(NativePromise)) {
method = getBuiltIn("Promise").prototype["finally"];
if (NativePromise.prototype["finally"] !== method) {
redefine(NativePromise.prototype, "finally", method, { unsafe: true });
}
}
var method;
}
});
// node_modules/core-js/modules/es.reflect.apply.js
var require_es_reflect_apply = __commonJS({
"node_modules/core-js/modules/es.reflect.apply.js"() {
var $3 = require_export();
var functionApply = require_function_apply();
var aCallable = require_a_callable();
var anObject = require_an_object();
var fails = require_fails();
var OPTIONAL_ARGUMENTS_LIST = !fails(function() {
Reflect.apply(function() {
});
});
$3({ target: "Reflect", stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, {
apply: function apply(target, thisArgument, argumentsList) {
return functionApply(aCallable(target), thisArgument, anObject(argumentsList));
}
});
}
});
// node_modules/core-js/modules/es.reflect.construct.js
var require_es_reflect_construct = __commonJS({
"node_modules/core-js/modules/es.reflect.construct.js"() {
var $3 = require_export();
var getBuiltIn = require_get_built_in();
var apply = require_function_apply();
var bind2 = require_function_bind();
var aConstructor = require_a_constructor();
var anObject = require_an_object();
var isObject4 = require_is_object();
var create = require_object_create();
var fails = require_fails();
var nativeConstruct = getBuiltIn("Reflect", "construct");
var ObjectPrototype = Object.prototype;
var push = [].push;
var NEW_TARGET_BUG = fails(function() {
function F2() {
}
return !(nativeConstruct(function() {
}, [], F2) instanceof F2);
});
var ARGS_BUG = !fails(function() {
nativeConstruct(function() {
});
});
var FORCED = NEW_TARGET_BUG || ARGS_BUG;
$3({ target: "Reflect", stat: true, forced: FORCED, sham: FORCED }, {
construct: function construct(Target, args) {
aConstructor(Target);
anObject(args);
var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]);
if (ARGS_BUG && !NEW_TARGET_BUG)
return nativeConstruct(Target, args, newTarget);
if (Target == newTarget) {
switch (args.length) {
case 0:
return new Target();
case 1:
return new Target(args[0]);
case 2:
return new Target(args[0], args[1]);
case 3:
return new Target(args[0], args[1], args[2]);
case 4:
return new Target(args[0], args[1], args[2], args[3]);
}
var $args = [null];
apply(push, $args, args);
return new (apply(bind2, Target, $args))();
}
var proto = newTarget.prototype;
var instance = create(isObject4(proto) ? proto : ObjectPrototype);
var result = apply(Target, instance, args);
return isObject4(result) ? result : instance;
}
});
}
});
// node_modules/core-js/modules/es.reflect.define-property.js
var require_es_reflect_define_property = __commonJS({
"node_modules/core-js/modules/es.reflect.define-property.js"() {
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var anObject = require_an_object();
var toPropertyKey = require_to_property_key();
var definePropertyModule = require_object_define_property();
var fails = require_fails();
var ERROR_INSTEAD_OF_FALSE = fails(function() {
Reflect.defineProperty(definePropertyModule.f({}, 1, { value: 1 }), 1, { value: 2 });
});
$3({ target: "Reflect", stat: true, forced: ERROR_INSTEAD_OF_FALSE, sham: !DESCRIPTORS }, {
defineProperty: function defineProperty(target, propertyKey, attributes) {
anObject(target);
var key = toPropertyKey(propertyKey);
anObject(attributes);
try {
definePropertyModule.f(target, key, attributes);
return true;
} catch (error2) {
return false;
}
}
});
}
});
// node_modules/core-js/modules/es.reflect.delete-property.js
var require_es_reflect_delete_property = __commonJS({
"node_modules/core-js/modules/es.reflect.delete-property.js"() {
var $3 = require_export();
var anObject = require_an_object();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
$3({ target: "Reflect", stat: true }, {
deleteProperty: function deleteProperty(target, propertyKey) {
var descriptor = getOwnPropertyDescriptor(anObject(target), propertyKey);
return descriptor && !descriptor.configurable ? false : delete target[propertyKey];
}
});
}
});
// node_modules/core-js/internals/is-data-descriptor.js
var require_is_data_descriptor = __commonJS({
"node_modules/core-js/internals/is-data-descriptor.js"(exports2, module2) {
var hasOwn = require_has_own_property();
module2.exports = function(descriptor) {
return descriptor !== void 0 && (hasOwn(descriptor, "value") || hasOwn(descriptor, "writable"));
};
}
});
// node_modules/core-js/modules/es.reflect.get.js
var require_es_reflect_get = __commonJS({
"node_modules/core-js/modules/es.reflect.get.js"() {
var $3 = require_export();
var call = require_function_call();
var isObject4 = require_is_object();
var anObject = require_an_object();
var isDataDescriptor = require_is_data_descriptor();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var getPrototypeOf = require_object_get_prototype_of();
function get(target, propertyKey) {
var receiver = arguments.length < 3 ? target : arguments[2];
var descriptor, prototype;
if (anObject(target) === receiver)
return target[propertyKey];
descriptor = getOwnPropertyDescriptorModule.f(target, propertyKey);
if (descriptor)
return isDataDescriptor(descriptor) ? descriptor.value : descriptor.get === void 0 ? void 0 : call(descriptor.get, receiver);
if (isObject4(prototype = getPrototypeOf(target)))
return get(prototype, propertyKey, receiver);
}
$3({ target: "Reflect", stat: true }, {
get
});
}
});
// node_modules/core-js/modules/es.reflect.get-own-property-descriptor.js
var require_es_reflect_get_own_property_descriptor = __commonJS({
"node_modules/core-js/modules/es.reflect.get-own-property-descriptor.js"() {
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var anObject = require_an_object();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
$3({ target: "Reflect", stat: true, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
return getOwnPropertyDescriptorModule.f(anObject(target), propertyKey);
}
});
}
});
// node_modules/core-js/modules/es.reflect.get-prototype-of.js
var require_es_reflect_get_prototype_of = __commonJS({
"node_modules/core-js/modules/es.reflect.get-prototype-of.js"() {
var $3 = require_export();
var anObject = require_an_object();
var objectGetPrototypeOf = require_object_get_prototype_of();
var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter();
$3({ target: "Reflect", stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, {
getPrototypeOf: function getPrototypeOf(target) {
return objectGetPrototypeOf(anObject(target));
}
});
}
});
// node_modules/core-js/modules/es.reflect.has.js
var require_es_reflect_has = __commonJS({
"node_modules/core-js/modules/es.reflect.has.js"() {
var $3 = require_export();
$3({ target: "Reflect", stat: true }, {
has: function has(target, propertyKey) {
return propertyKey in target;
}
});
}
});
// node_modules/core-js/modules/es.reflect.is-extensible.js
var require_es_reflect_is_extensible = __commonJS({
"node_modules/core-js/modules/es.reflect.is-extensible.js"() {
var $3 = require_export();
var anObject = require_an_object();
var $isExtensible = require_object_is_extensible();
$3({ target: "Reflect", stat: true }, {
isExtensible: function isExtensible(target) {
anObject(target);
return $isExtensible(target);
}
});
}
});
// node_modules/core-js/modules/es.reflect.own-keys.js
var require_es_reflect_own_keys = __commonJS({
"node_modules/core-js/modules/es.reflect.own-keys.js"() {
var $3 = require_export();
var ownKeys20 = require_own_keys();
$3({ target: "Reflect", stat: true }, {
ownKeys: ownKeys20
});
}
});
// node_modules/core-js/modules/es.reflect.prevent-extensions.js
var require_es_reflect_prevent_extensions = __commonJS({
"node_modules/core-js/modules/es.reflect.prevent-extensions.js"() {
var $3 = require_export();
var getBuiltIn = require_get_built_in();
var anObject = require_an_object();
var FREEZING = require_freezing();
$3({ target: "Reflect", stat: true, sham: !FREEZING }, {
preventExtensions: function preventExtensions(target) {
anObject(target);
try {
var objectPreventExtensions = getBuiltIn("Object", "preventExtensions");
if (objectPreventExtensions)
objectPreventExtensions(target);
return true;
} catch (error2) {
return false;
}
}
});
}
});
// node_modules/core-js/modules/es.reflect.set.js
var require_es_reflect_set = __commonJS({
"node_modules/core-js/modules/es.reflect.set.js"() {
var $3 = require_export();
var call = require_function_call();
var anObject = require_an_object();
var isObject4 = require_is_object();
var isDataDescriptor = require_is_data_descriptor();
var fails = require_fails();
var definePropertyModule = require_object_define_property();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var getPrototypeOf = require_object_get_prototype_of();
var createPropertyDescriptor = require_create_property_descriptor();
function set2(target, propertyKey, V2) {
var receiver = arguments.length < 4 ? target : arguments[3];
var ownDescriptor = getOwnPropertyDescriptorModule.f(anObject(target), propertyKey);
var existingDescriptor, prototype, setter;
if (!ownDescriptor) {
if (isObject4(prototype = getPrototypeOf(target))) {
return set2(prototype, propertyKey, V2, receiver);
}
ownDescriptor = createPropertyDescriptor(0);
}
if (isDataDescriptor(ownDescriptor)) {
if (ownDescriptor.writable === false || !isObject4(receiver))
return false;
if (existingDescriptor = getOwnPropertyDescriptorModule.f(receiver, propertyKey)) {
if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false)
return false;
existingDescriptor.value = V2;
definePropertyModule.f(receiver, propertyKey, existingDescriptor);
} else
definePropertyModule.f(receiver, propertyKey, createPropertyDescriptor(0, V2));
} else {
setter = ownDescriptor.set;
if (setter === void 0)
return false;
call(setter, receiver, V2);
}
return true;
}
var MS_EDGE_BUG = fails(function() {
var Constructor = function() {
};
var object = definePropertyModule.f(new Constructor(), "a", { configurable: true });
return Reflect.set(Constructor.prototype, "a", 1, object) !== false;
});
$3({ target: "Reflect", stat: true, forced: MS_EDGE_BUG }, {
set: set2
});
}
});
// node_modules/core-js/modules/es.reflect.set-prototype-of.js
var require_es_reflect_set_prototype_of = __commonJS({
"node_modules/core-js/modules/es.reflect.set-prototype-of.js"() {
var $3 = require_export();
var anObject = require_an_object();
var aPossiblePrototype = require_a_possible_prototype();
var objectSetPrototypeOf = require_object_set_prototype_of();
if (objectSetPrototypeOf)
$3({ target: "Reflect", stat: true }, {
setPrototypeOf: function setPrototypeOf(target, proto) {
anObject(target);
aPossiblePrototype(proto);
try {
objectSetPrototypeOf(target, proto);
return true;
} catch (error2) {
return false;
}
}
});
}
});
// node_modules/core-js/modules/es.reflect.to-string-tag.js
var require_es_reflect_to_string_tag = __commonJS({
"node_modules/core-js/modules/es.reflect.to-string-tag.js"() {
var $3 = require_export();
var global2 = require_global();
var setToStringTag = require_set_to_string_tag();
$3({ global: true }, { Reflect: {} });
setToStringTag(global2.Reflect, "Reflect", true);
}
});
// node_modules/core-js/internals/is-regexp.js
var require_is_regexp = __commonJS({
"node_modules/core-js/internals/is-regexp.js"(exports2, module2) {
var isObject4 = require_is_object();
var classof = require_classof_raw();
var wellKnownSymbol = require_well_known_symbol();
var MATCH = wellKnownSymbol("match");
module2.exports = function(it2) {
var isRegExp;
return isObject4(it2) && ((isRegExp = it2[MATCH]) !== void 0 ? !!isRegExp : classof(it2) == "RegExp");
};
}
});
// node_modules/core-js/internals/regexp-flags.js
var require_regexp_flags = __commonJS({
"node_modules/core-js/internals/regexp-flags.js"(exports2, module2) {
"use strict";
var anObject = require_an_object();
module2.exports = function() {
var that = anObject(this);
var result = "";
if (that.global)
result += "g";
if (that.ignoreCase)
result += "i";
if (that.multiline)
result += "m";
if (that.dotAll)
result += "s";
if (that.unicode)
result += "u";
if (that.sticky)
result += "y";
return result;
};
}
});
// node_modules/core-js/internals/regexp-sticky-helpers.js
var require_regexp_sticky_helpers = __commonJS({
"node_modules/core-js/internals/regexp-sticky-helpers.js"(exports2, module2) {
var fails = require_fails();
var global2 = require_global();
var $RegExp = global2.RegExp;
var UNSUPPORTED_Y = fails(function() {
var re2 = $RegExp("a", "y");
re2.lastIndex = 2;
return re2.exec("abcd") != null;
});
var MISSED_STICKY = UNSUPPORTED_Y || fails(function() {
return !$RegExp("a", "y").sticky;
});
var BROKEN_CARET = UNSUPPORTED_Y || fails(function() {
var re2 = $RegExp("^r", "gy");
re2.lastIndex = 2;
return re2.exec("str") != null;
});
module2.exports = {
BROKEN_CARET,
MISSED_STICKY,
UNSUPPORTED_Y
};
}
});
// node_modules/core-js/internals/regexp-unsupported-dot-all.js
var require_regexp_unsupported_dot_all = __commonJS({
"node_modules/core-js/internals/regexp-unsupported-dot-all.js"(exports2, module2) {
var fails = require_fails();
var global2 = require_global();
var $RegExp = global2.RegExp;
module2.exports = fails(function() {
var re2 = $RegExp(".", "s");
return !(re2.dotAll && re2.exec("\n") && re2.flags === "s");
});
}
});
// node_modules/core-js/internals/regexp-unsupported-ncg.js
var require_regexp_unsupported_ncg = __commonJS({
"node_modules/core-js/internals/regexp-unsupported-ncg.js"(exports2, module2) {
var fails = require_fails();
var global2 = require_global();
var $RegExp = global2.RegExp;
module2.exports = fails(function() {
var re2 = $RegExp("(?b)", "g");
return re2.exec("b").groups.a !== "b" || "b".replace(re2, "$c") !== "bc";
});
}
});
// node_modules/core-js/modules/es.regexp.constructor.js
var require_es_regexp_constructor = __commonJS({
"node_modules/core-js/modules/es.regexp.constructor.js"() {
var DESCRIPTORS = require_descriptors();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var isForced = require_is_forced();
var inheritIfRequired = require_inherit_if_required();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var defineProperty = require_object_define_property().f;
var getOwnPropertyNames = require_object_get_own_property_names().f;
var isPrototypeOf = require_object_is_prototype_of();
var isRegExp = require_is_regexp();
var toString = require_to_string();
var regExpFlags = require_regexp_flags();
var stickyHelpers = require_regexp_sticky_helpers();
var redefine = require_redefine();
var fails = require_fails();
var hasOwn = require_has_own_property();
var enforceInternalState = require_internal_state().enforce;
var setSpecies = require_set_species();
var wellKnownSymbol = require_well_known_symbol();
var UNSUPPORTED_DOT_ALL = require_regexp_unsupported_dot_all();
var UNSUPPORTED_NCG = require_regexp_unsupported_ncg();
var MATCH = wellKnownSymbol("match");
var NativeRegExp = global2.RegExp;
var RegExpPrototype = NativeRegExp.prototype;
var SyntaxError = global2.SyntaxError;
var getFlags = uncurryThis(regExpFlags);
var exec = uncurryThis(RegExpPrototype.exec);
var charAt = uncurryThis("".charAt);
var replace = uncurryThis("".replace);
var stringIndexOf = uncurryThis("".indexOf);
var stringSlice = uncurryThis("".slice);
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
var re1 = /a/g;
var re2 = /a/g;
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
var MISSED_STICKY = stickyHelpers.MISSED_STICKY;
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
var BASE_FORCED = DESCRIPTORS && (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function() {
re2[MATCH] = false;
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, "i") != "/a/i";
}));
var handleDotAll = function(string) {
var length = string.length;
var index3 = 0;
var result = "";
var brackets = false;
var chr;
for (; index3 <= length; index3++) {
chr = charAt(string, index3);
if (chr === "\\") {
result += chr + charAt(string, ++index3);
continue;
}
if (!brackets && chr === ".") {
result += "[\\s\\S]";
} else {
if (chr === "[") {
brackets = true;
} else if (chr === "]") {
brackets = false;
}
result += chr;
}
}
return result;
};
var handleNCG = function(string) {
var length = string.length;
var index3 = 0;
var result = "";
var named = [];
var names2 = {};
var brackets = false;
var ncg = false;
var groupid = 0;
var groupname = "";
var chr;
for (; index3 <= length; index3++) {
chr = charAt(string, index3);
if (chr === "\\") {
chr = chr + charAt(string, ++index3);
} else if (chr === "]") {
brackets = false;
} else if (!brackets)
switch (true) {
case chr === "[":
brackets = true;
break;
case chr === "(":
if (exec(IS_NCG, stringSlice(string, index3 + 1))) {
index3 += 2;
ncg = true;
}
result += chr;
groupid++;
continue;
case (chr === ">" && ncg):
if (groupname === "" || hasOwn(names2, groupname)) {
throw new SyntaxError("Invalid capture group name");
}
names2[groupname] = true;
named[named.length] = [groupname, groupid];
ncg = false;
groupname = "";
continue;
}
if (ncg)
groupname += chr;
else
result += chr;
}
return [result, named];
};
if (isForced("RegExp", BASE_FORCED)) {
RegExpWrapper = function RegExp2(pattern, flags) {
var thisIsRegExp = isPrototypeOf(RegExpPrototype, this);
var patternIsRegExp = isRegExp(pattern);
var flagsAreUndefined = flags === void 0;
var groups = [];
var rawPattern = pattern;
var rawFlags, dotAll, sticky, handled, result, state;
if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
return pattern;
}
if (patternIsRegExp || isPrototypeOf(RegExpPrototype, pattern)) {
pattern = pattern.source;
if (flagsAreUndefined)
flags = "flags" in rawPattern ? rawPattern.flags : getFlags(rawPattern);
}
pattern = pattern === void 0 ? "" : toString(pattern);
flags = flags === void 0 ? "" : toString(flags);
rawPattern = pattern;
if (UNSUPPORTED_DOT_ALL && "dotAll" in re1) {
dotAll = !!flags && stringIndexOf(flags, "s") > -1;
if (dotAll)
flags = replace(flags, /s/g, "");
}
rawFlags = flags;
if (MISSED_STICKY && "sticky" in re1) {
sticky = !!flags && stringIndexOf(flags, "y") > -1;
if (sticky && UNSUPPORTED_Y)
flags = replace(flags, /y/g, "");
}
if (UNSUPPORTED_NCG) {
handled = handleNCG(pattern);
pattern = handled[0];
groups = handled[1];
}
result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper);
if (dotAll || sticky || groups.length) {
state = enforceInternalState(result);
if (dotAll) {
state.dotAll = true;
state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
}
if (sticky)
state.sticky = true;
if (groups.length)
state.groups = groups;
}
if (pattern !== rawPattern)
try {
createNonEnumerableProperty(result, "source", rawPattern === "" ? "(?:)" : rawPattern);
} catch (error2) {
}
return result;
};
proxy = function(key) {
key in RegExpWrapper || defineProperty(RegExpWrapper, key, {
configurable: true,
get: function() {
return NativeRegExp[key];
},
set: function(it2) {
NativeRegExp[key] = it2;
}
});
};
for (keys = getOwnPropertyNames(NativeRegExp), index2 = 0; keys.length > index2; ) {
proxy(keys[index2++]);
}
RegExpPrototype.constructor = RegExpWrapper;
RegExpWrapper.prototype = RegExpPrototype;
redefine(global2, "RegExp", RegExpWrapper);
}
var RegExpWrapper;
var proxy;
var keys;
var index2;
setSpecies("RegExp");
}
});
// node_modules/core-js/modules/es.regexp.dot-all.js
var require_es_regexp_dot_all = __commonJS({
"node_modules/core-js/modules/es.regexp.dot-all.js"() {
var global2 = require_global();
var DESCRIPTORS = require_descriptors();
var UNSUPPORTED_DOT_ALL = require_regexp_unsupported_dot_all();
var classof = require_classof_raw();
var defineProperty = require_object_define_property().f;
var getInternalState = require_internal_state().get;
var RegExpPrototype = RegExp.prototype;
var TypeError2 = global2.TypeError;
if (DESCRIPTORS && UNSUPPORTED_DOT_ALL) {
defineProperty(RegExpPrototype, "dotAll", {
configurable: true,
get: function() {
if (this === RegExpPrototype)
return void 0;
if (classof(this) === "RegExp") {
return !!getInternalState(this).dotAll;
}
throw TypeError2("Incompatible receiver, RegExp required");
}
});
}
}
});
// node_modules/core-js/internals/regexp-exec.js
var require_regexp_exec = __commonJS({
"node_modules/core-js/internals/regexp-exec.js"(exports2, module2) {
"use strict";
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var toString = require_to_string();
var regexpFlags = require_regexp_flags();
var stickyHelpers = require_regexp_sticky_helpers();
var shared = require_shared();
var create = require_object_create();
var getInternalState = require_internal_state().get;
var UNSUPPORTED_DOT_ALL = require_regexp_unsupported_dot_all();
var UNSUPPORTED_NCG = require_regexp_unsupported_ncg();
var nativeReplace = shared("native-string-replace", String.prototype.replace);
var nativeExec = RegExp.prototype.exec;
var patchedExec = nativeExec;
var charAt = uncurryThis("".charAt);
var indexOf2 = uncurryThis("".indexOf);
var replace = uncurryThis("".replace);
var stringSlice = uncurryThis("".slice);
var UPDATES_LAST_INDEX_WRONG = function() {
var re1 = /a/;
var re2 = /b*/g;
call(nativeExec, re1, "a");
call(nativeExec, re2, "a");
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
}();
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
var NPCG_INCLUDED = /()??/.exec("")[1] !== void 0;
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
if (PATCH) {
patchedExec = function exec(string) {
var re2 = this;
var state = getInternalState(re2);
var str = toString(string);
var raw = state.raw;
var result, reCopy, lastIndex, match2, i4, object, group;
if (raw) {
raw.lastIndex = re2.lastIndex;
result = call(patchedExec, raw, str);
re2.lastIndex = raw.lastIndex;
return result;
}
var groups = state.groups;
var sticky = UNSUPPORTED_Y && re2.sticky;
var flags = call(regexpFlags, re2);
var source = re2.source;
var charsAdded = 0;
var strCopy = str;
if (sticky) {
flags = replace(flags, "y", "");
if (indexOf2(flags, "g") === -1) {
flags += "g";
}
strCopy = stringSlice(str, re2.lastIndex);
if (re2.lastIndex > 0 && (!re2.multiline || re2.multiline && charAt(str, re2.lastIndex - 1) !== "\n")) {
source = "(?: " + source + ")";
strCopy = " " + strCopy;
charsAdded++;
}
reCopy = new RegExp("^(?:" + source + ")", flags);
}
if (NPCG_INCLUDED) {
reCopy = new RegExp("^" + source + "$(?!\\s)", flags);
}
if (UPDATES_LAST_INDEX_WRONG)
lastIndex = re2.lastIndex;
match2 = call(nativeExec, sticky ? reCopy : re2, strCopy);
if (sticky) {
if (match2) {
match2.input = stringSlice(match2.input, charsAdded);
match2[0] = stringSlice(match2[0], charsAdded);
match2.index = re2.lastIndex;
re2.lastIndex += match2[0].length;
} else
re2.lastIndex = 0;
} else if (UPDATES_LAST_INDEX_WRONG && match2) {
re2.lastIndex = re2.global ? match2.index + match2[0].length : lastIndex;
}
if (NPCG_INCLUDED && match2 && match2.length > 1) {
call(nativeReplace, match2[0], reCopy, function() {
for (i4 = 1; i4 < arguments.length - 2; i4++) {
if (arguments[i4] === void 0)
match2[i4] = void 0;
}
});
}
if (match2 && groups) {
match2.groups = object = create(null);
for (i4 = 0; i4 < groups.length; i4++) {
group = groups[i4];
object[group[0]] = match2[group[1]];
}
}
return match2;
};
}
module2.exports = patchedExec;
}
});
// node_modules/core-js/modules/es.regexp.exec.js
var require_es_regexp_exec = __commonJS({
"node_modules/core-js/modules/es.regexp.exec.js"() {
"use strict";
var $3 = require_export();
var exec = require_regexp_exec();
$3({ target: "RegExp", proto: true, forced: /./.exec !== exec }, {
exec
});
}
});
// node_modules/core-js/modules/es.regexp.flags.js
var require_es_regexp_flags = __commonJS({
"node_modules/core-js/modules/es.regexp.flags.js"() {
var DESCRIPTORS = require_descriptors();
var objectDefinePropertyModule = require_object_define_property();
var regExpFlags = require_regexp_flags();
var fails = require_fails();
var RegExpPrototype = RegExp.prototype;
var FORCED = DESCRIPTORS && fails(function() {
return Object.getOwnPropertyDescriptor(RegExpPrototype, "flags").get.call({ dotAll: true, sticky: true }) !== "sy";
});
if (FORCED)
objectDefinePropertyModule.f(RegExpPrototype, "flags", {
configurable: true,
get: regExpFlags
});
}
});
// node_modules/core-js/modules/es.regexp.sticky.js
var require_es_regexp_sticky = __commonJS({
"node_modules/core-js/modules/es.regexp.sticky.js"() {
var global2 = require_global();
var DESCRIPTORS = require_descriptors();
var MISSED_STICKY = require_regexp_sticky_helpers().MISSED_STICKY;
var classof = require_classof_raw();
var defineProperty = require_object_define_property().f;
var getInternalState = require_internal_state().get;
var RegExpPrototype = RegExp.prototype;
var TypeError2 = global2.TypeError;
if (DESCRIPTORS && MISSED_STICKY) {
defineProperty(RegExpPrototype, "sticky", {
configurable: true,
get: function() {
if (this === RegExpPrototype)
return void 0;
if (classof(this) === "RegExp") {
return !!getInternalState(this).sticky;
}
throw TypeError2("Incompatible receiver, RegExp required");
}
});
}
}
});
// node_modules/core-js/modules/es.regexp.test.js
var require_es_regexp_test = __commonJS({
"node_modules/core-js/modules/es.regexp.test.js"() {
"use strict";
require_es_regexp_exec();
var $3 = require_export();
var global2 = require_global();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var isCallable = require_is_callable();
var isObject4 = require_is_object();
var DELEGATES_TO_EXEC = function() {
var execCalled = false;
var re2 = /[ac]/;
re2.exec = function() {
execCalled = true;
return /./.exec.apply(this, arguments);
};
return re2.test("abc") === true && execCalled;
}();
var Error2 = global2.Error;
var un$Test = uncurryThis(/./.test);
$3({ target: "RegExp", proto: true, forced: !DELEGATES_TO_EXEC }, {
test: function(str) {
var exec = this.exec;
if (!isCallable(exec))
return un$Test(this, str);
var result = call(exec, this, str);
if (result !== null && !isObject4(result)) {
throw new Error2("RegExp exec method returned something other than an Object or null");
}
return !!result;
}
});
}
});
// node_modules/core-js/modules/es.regexp.to-string.js
var require_es_regexp_to_string = __commonJS({
"node_modules/core-js/modules/es.regexp.to-string.js"() {
"use strict";
var uncurryThis = require_function_uncurry_this();
var PROPER_FUNCTION_NAME = require_function_name().PROPER;
var redefine = require_redefine();
var anObject = require_an_object();
var isPrototypeOf = require_object_is_prototype_of();
var $toString = require_to_string();
var fails = require_fails();
var regExpFlags = require_regexp_flags();
var TO_STRING = "toString";
var RegExpPrototype = RegExp.prototype;
var n$ToString = RegExpPrototype[TO_STRING];
var getFlags = uncurryThis(regExpFlags);
var NOT_GENERIC = fails(function() {
return n$ToString.call({ source: "a", flags: "b" }) != "/a/b";
});
var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
if (NOT_GENERIC || INCORRECT_NAME) {
redefine(RegExp.prototype, TO_STRING, function toString() {
var R2 = anObject(this);
var p3 = $toString(R2.source);
var rf = R2.flags;
var f3 = $toString(rf === void 0 && isPrototypeOf(RegExpPrototype, R2) && !("flags" in RegExpPrototype) ? getFlags(R2) : rf);
return "/" + p3 + "/" + f3;
}, { unsafe: true });
}
}
});
// node_modules/core-js/modules/es.set.js
var require_es_set = __commonJS({
"node_modules/core-js/modules/es.set.js"() {
"use strict";
var collection = require_collection();
var collectionStrong = require_collection_strong();
collection("Set", function(init2) {
return function Set2() {
return init2(this, arguments.length ? arguments[0] : void 0);
};
}, collectionStrong);
}
});
// node_modules/core-js/modules/es.string.at-alternative.js
var require_es_string_at_alternative = __commonJS({
"node_modules/core-js/modules/es.string.at-alternative.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toString = require_to_string();
var fails = require_fails();
var charAt = uncurryThis("".charAt);
var FORCED = fails(function() {
return "\u{20BB7}".at(-2) !== "\uD842";
});
$3({ target: "String", proto: true, forced: FORCED }, {
at: function at2(index2) {
var S2 = toString(requireObjectCoercible(this));
var len = S2.length;
var relativeIndex = toIntegerOrInfinity(index2);
var k3 = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return k3 < 0 || k3 >= len ? void 0 : charAt(S2, k3);
}
});
}
});
// node_modules/core-js/internals/string-multibyte.js
var require_string_multibyte = __commonJS({
"node_modules/core-js/internals/string-multibyte.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toString = require_to_string();
var requireObjectCoercible = require_require_object_coercible();
var charAt = uncurryThis("".charAt);
var charCodeAt = uncurryThis("".charCodeAt);
var stringSlice = uncurryThis("".slice);
var createMethod = function(CONVERT_TO_STRING) {
return function($this, pos) {
var S2 = toString(requireObjectCoercible($this));
var position = toIntegerOrInfinity(pos);
var size = S2.length;
var first, second;
if (position < 0 || position >= size)
return CONVERT_TO_STRING ? "" : void 0;
first = charCodeAt(S2, position);
return first < 55296 || first > 56319 || position + 1 === size || (second = charCodeAt(S2, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt(S2, position) : first : CONVERT_TO_STRING ? stringSlice(S2, position, position + 2) : (first - 55296 << 10) + (second - 56320) + 65536;
};
};
module2.exports = {
codeAt: createMethod(false),
charAt: createMethod(true)
};
}
});
// node_modules/core-js/modules/es.string.code-point-at.js
var require_es_string_code_point_at = __commonJS({
"node_modules/core-js/modules/es.string.code-point-at.js"() {
"use strict";
var $3 = require_export();
var codeAt = require_string_multibyte().codeAt;
$3({ target: "String", proto: true }, {
codePointAt: function codePointAt(pos) {
return codeAt(this, pos);
}
});
}
});
// node_modules/core-js/internals/not-a-regexp.js
var require_not_a_regexp = __commonJS({
"node_modules/core-js/internals/not-a-regexp.js"(exports2, module2) {
var global2 = require_global();
var isRegExp = require_is_regexp();
var TypeError2 = global2.TypeError;
module2.exports = function(it2) {
if (isRegExp(it2)) {
throw TypeError2("The method doesn't accept regular expressions");
}
return it2;
};
}
});
// node_modules/core-js/internals/correct-is-regexp-logic.js
var require_correct_is_regexp_logic = __commonJS({
"node_modules/core-js/internals/correct-is-regexp-logic.js"(exports2, module2) {
var wellKnownSymbol = require_well_known_symbol();
var MATCH = wellKnownSymbol("match");
module2.exports = function(METHOD_NAME) {
var regexp = /./;
try {
"/./"[METHOD_NAME](regexp);
} catch (error1) {
try {
regexp[MATCH] = false;
return "/./"[METHOD_NAME](regexp);
} catch (error2) {
}
}
return false;
};
}
});
// node_modules/core-js/modules/es.string.ends-with.js
var require_es_string_ends_with = __commonJS({
"node_modules/core-js/modules/es.string.ends-with.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var toLength = require_to_length();
var toString = require_to_string();
var notARegExp = require_not_a_regexp();
var requireObjectCoercible = require_require_object_coercible();
var correctIsRegExpLogic = require_correct_is_regexp_logic();
var IS_PURE = require_is_pure();
var un$EndsWith = uncurryThis("".endsWith);
var slice = uncurryThis("".slice);
var min2 = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic("endsWith");
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function() {
var descriptor = getOwnPropertyDescriptor(String.prototype, "endsWith");
return descriptor && !descriptor.writable;
}();
$3({ target: "String", proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
endsWith: function endsWith(searchString) {
var that = toString(requireObjectCoercible(this));
notARegExp(searchString);
var endPosition = arguments.length > 1 ? arguments[1] : void 0;
var len = that.length;
var end2 = endPosition === void 0 ? len : min2(toLength(endPosition), len);
var search = toString(searchString);
return un$EndsWith ? un$EndsWith(that, search, end2) : slice(that, end2 - search.length, end2) === search;
}
});
}
});
// node_modules/core-js/modules/es.string.from-code-point.js
var require_es_string_from_code_point = __commonJS({
"node_modules/core-js/modules/es.string.from-code-point.js"() {
var $3 = require_export();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var toAbsoluteIndex = require_to_absolute_index();
var RangeError2 = global2.RangeError;
var fromCharCode = String.fromCharCode;
var $fromCodePoint = String.fromCodePoint;
var join = uncurryThis([].join);
var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length != 1;
$3({ target: "String", stat: true, forced: INCORRECT_LENGTH }, {
fromCodePoint: function fromCodePoint(x3) {
var elements2 = [];
var length = arguments.length;
var i4 = 0;
var code3;
while (length > i4) {
code3 = +arguments[i4++];
if (toAbsoluteIndex(code3, 1114111) !== code3)
throw RangeError2(code3 + " is not a valid code point");
elements2[i4] = code3 < 65536 ? fromCharCode(code3) : fromCharCode(((code3 -= 65536) >> 10) + 55296, code3 % 1024 + 56320);
}
return join(elements2, "");
}
});
}
});
// node_modules/core-js/modules/es.string.includes.js
var require_es_string_includes = __commonJS({
"node_modules/core-js/modules/es.string.includes.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var notARegExp = require_not_a_regexp();
var requireObjectCoercible = require_require_object_coercible();
var toString = require_to_string();
var correctIsRegExpLogic = require_correct_is_regexp_logic();
var stringIndexOf = uncurryThis("".indexOf);
$3({ target: "String", proto: true, forced: !correctIsRegExpLogic("includes") }, {
includes: function includes(searchString) {
return !!~stringIndexOf(toString(requireObjectCoercible(this)), toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.string.iterator.js
var require_es_string_iterator = __commonJS({
"node_modules/core-js/modules/es.string.iterator.js"() {
"use strict";
var charAt = require_string_multibyte().charAt;
var toString = require_to_string();
var InternalStateModule = require_internal_state();
var defineIterator = require_define_iterator();
var STRING_ITERATOR = "String Iterator";
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
defineIterator(String, "String", function(iterated) {
setInternalState(this, {
type: STRING_ITERATOR,
string: toString(iterated),
index: 0
});
}, function next() {
var state = getInternalState(this);
var string = state.string;
var index2 = state.index;
var point;
if (index2 >= string.length)
return { value: void 0, done: true };
point = charAt(string, index2);
state.index += point.length;
return { value: point, done: false };
});
}
});
// node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js
var require_fix_regexp_well_known_symbol_logic = __commonJS({
"node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"(exports2, module2) {
"use strict";
require_es_regexp_exec();
var uncurryThis = require_function_uncurry_this();
var redefine = require_redefine();
var regexpExec = require_regexp_exec();
var fails = require_fails();
var wellKnownSymbol = require_well_known_symbol();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var SPECIES = wellKnownSymbol("species");
var RegExpPrototype = RegExp.prototype;
module2.exports = function(KEY, exec, FORCED, SHAM) {
var SYMBOL = wellKnownSymbol(KEY);
var DELEGATES_TO_SYMBOL = !fails(function() {
var O2 = {};
O2[SYMBOL] = function() {
return 7;
};
return ""[KEY](O2) != 7;
});
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function() {
var execCalled = false;
var re2 = /a/;
if (KEY === "split") {
re2 = {};
re2.constructor = {};
re2.constructor[SPECIES] = function() {
return re2;
};
re2.flags = "";
re2[SYMBOL] = /./[SYMBOL];
}
re2.exec = function() {
execCalled = true;
return null;
};
re2[SYMBOL]("");
return !execCalled;
});
if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED) {
var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]);
var methods = exec(SYMBOL, ""[KEY], function(nativeMethod, regexp, str, arg2, forceStringMethod) {
var uncurriedNativeMethod = uncurryThis(nativeMethod);
var $exec = regexp.exec;
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
}
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
}
return { done: false };
});
redefine(String.prototype, KEY, methods[0]);
redefine(RegExpPrototype, SYMBOL, methods[1]);
}
if (SHAM)
createNonEnumerableProperty(RegExpPrototype[SYMBOL], "sham", true);
};
}
});
// node_modules/core-js/internals/advance-string-index.js
var require_advance_string_index = __commonJS({
"node_modules/core-js/internals/advance-string-index.js"(exports2, module2) {
"use strict";
var charAt = require_string_multibyte().charAt;
module2.exports = function(S2, index2, unicode) {
return index2 + (unicode ? charAt(S2, index2).length : 1);
};
}
});
// node_modules/core-js/internals/regexp-exec-abstract.js
var require_regexp_exec_abstract = __commonJS({
"node_modules/core-js/internals/regexp-exec-abstract.js"(exports2, module2) {
var global2 = require_global();
var call = require_function_call();
var anObject = require_an_object();
var isCallable = require_is_callable();
var classof = require_classof_raw();
var regexpExec = require_regexp_exec();
var TypeError2 = global2.TypeError;
module2.exports = function(R2, S2) {
var exec = R2.exec;
if (isCallable(exec)) {
var result = call(exec, R2, S2);
if (result !== null)
anObject(result);
return result;
}
if (classof(R2) === "RegExp")
return call(regexpExec, R2, S2);
throw TypeError2("RegExp#exec called on incompatible receiver");
};
}
});
// node_modules/core-js/modules/es.string.match.js
var require_es_string_match = __commonJS({
"node_modules/core-js/modules/es.string.match.js"() {
"use strict";
var call = require_function_call();
var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic();
var anObject = require_an_object();
var toLength = require_to_length();
var toString = require_to_string();
var requireObjectCoercible = require_require_object_coercible();
var getMethod = require_get_method();
var advanceStringIndex = require_advance_string_index();
var regExpExec = require_regexp_exec_abstract();
fixRegExpWellKnownSymbolLogic("match", function(MATCH, nativeMatch, maybeCallNative) {
return [
function match2(regexp) {
var O2 = requireObjectCoercible(this);
var matcher = regexp == void 0 ? void 0 : getMethod(regexp, MATCH);
return matcher ? call(matcher, regexp, O2) : new RegExp(regexp)[MATCH](toString(O2));
},
function(string) {
var rx = anObject(this);
var S2 = toString(string);
var res = maybeCallNative(nativeMatch, rx, S2);
if (res.done)
return res.value;
if (!rx.global)
return regExpExec(rx, S2);
var fullUnicode = rx.unicode;
rx.lastIndex = 0;
var A3 = [];
var n4 = 0;
var result;
while ((result = regExpExec(rx, S2)) !== null) {
var matchStr = toString(result[0]);
A3[n4] = matchStr;
if (matchStr === "")
rx.lastIndex = advanceStringIndex(S2, toLength(rx.lastIndex), fullUnicode);
n4++;
}
return n4 === 0 ? null : A3;
}
];
});
}
});
// node_modules/core-js/modules/es.string.match-all.js
var require_es_string_match_all = __commonJS({
"node_modules/core-js/modules/es.string.match-all.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var createIteratorConstructor = require_create_iterator_constructor();
var requireObjectCoercible = require_require_object_coercible();
var toLength = require_to_length();
var toString = require_to_string();
var anObject = require_an_object();
var classof = require_classof_raw();
var isPrototypeOf = require_object_is_prototype_of();
var isRegExp = require_is_regexp();
var regExpFlags = require_regexp_flags();
var getMethod = require_get_method();
var redefine = require_redefine();
var fails = require_fails();
var wellKnownSymbol = require_well_known_symbol();
var speciesConstructor = require_species_constructor();
var advanceStringIndex = require_advance_string_index();
var regExpExec = require_regexp_exec_abstract();
var InternalStateModule = require_internal_state();
var IS_PURE = require_is_pure();
var MATCH_ALL = wellKnownSymbol("matchAll");
var REGEXP_STRING = "RegExp String";
var REGEXP_STRING_ITERATOR = REGEXP_STRING + " Iterator";
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(REGEXP_STRING_ITERATOR);
var RegExpPrototype = RegExp.prototype;
var TypeError2 = global2.TypeError;
var getFlags = uncurryThis(regExpFlags);
var stringIndexOf = uncurryThis("".indexOf);
var un$MatchAll = uncurryThis("".matchAll);
var WORKS_WITH_NON_GLOBAL_REGEX = !!un$MatchAll && !fails(function() {
un$MatchAll("a", /./);
});
var $RegExpStringIterator = createIteratorConstructor(function RegExpStringIterator(regexp, string, $global, fullUnicode) {
setInternalState(this, {
type: REGEXP_STRING_ITERATOR,
regexp,
string,
global: $global,
unicode: fullUnicode,
done: false
});
}, REGEXP_STRING, function next() {
var state = getInternalState(this);
if (state.done)
return { value: void 0, done: true };
var R2 = state.regexp;
var S2 = state.string;
var match2 = regExpExec(R2, S2);
if (match2 === null)
return { value: void 0, done: state.done = true };
if (state.global) {
if (toString(match2[0]) === "")
R2.lastIndex = advanceStringIndex(S2, toLength(R2.lastIndex), state.unicode);
return { value: match2, done: false };
}
state.done = true;
return { value: match2, done: false };
});
var $matchAll = function(string) {
var R2 = anObject(this);
var S2 = toString(string);
var C3, flagsValue, flags, matcher, $global, fullUnicode;
C3 = speciesConstructor(R2, RegExp);
flagsValue = R2.flags;
if (flagsValue === void 0 && isPrototypeOf(RegExpPrototype, R2) && !("flags" in RegExpPrototype)) {
flagsValue = getFlags(R2);
}
flags = flagsValue === void 0 ? "" : toString(flagsValue);
matcher = new C3(C3 === RegExp ? R2.source : R2, flags);
$global = !!~stringIndexOf(flags, "g");
fullUnicode = !!~stringIndexOf(flags, "u");
matcher.lastIndex = toLength(R2.lastIndex);
return new $RegExpStringIterator(matcher, S2, $global, fullUnicode);
};
$3({ target: "String", proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, {
matchAll: function matchAll(regexp) {
var O2 = requireObjectCoercible(this);
var flags, S2, matcher, rx;
if (regexp != null) {
if (isRegExp(regexp)) {
flags = toString(requireObjectCoercible("flags" in RegExpPrototype ? regexp.flags : getFlags(regexp)));
if (!~stringIndexOf(flags, "g"))
throw TypeError2("`.matchAll` does not allow non-global regexes");
}
if (WORKS_WITH_NON_GLOBAL_REGEX)
return un$MatchAll(O2, regexp);
matcher = getMethod(regexp, MATCH_ALL);
if (matcher === void 0 && IS_PURE && classof(regexp) == "RegExp")
matcher = $matchAll;
if (matcher)
return call(matcher, regexp, O2);
} else if (WORKS_WITH_NON_GLOBAL_REGEX)
return un$MatchAll(O2, regexp);
S2 = toString(O2);
rx = new RegExp(regexp, "g");
return IS_PURE ? call($matchAll, rx, S2) : rx[MATCH_ALL](S2);
}
});
IS_PURE || MATCH_ALL in RegExpPrototype || redefine(RegExpPrototype, MATCH_ALL, $matchAll);
}
});
// node_modules/core-js/internals/string-pad-webkit-bug.js
var require_string_pad_webkit_bug = __commonJS({
"node_modules/core-js/internals/string-pad-webkit-bug.js"(exports2, module2) {
var userAgent = require_engine_user_agent();
module2.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
}
});
// node_modules/core-js/modules/es.string.pad-end.js
var require_es_string_pad_end = __commonJS({
"node_modules/core-js/modules/es.string.pad-end.js"() {
"use strict";
var $3 = require_export();
var $padEnd = require_string_pad().end;
var WEBKIT_BUG = require_string_pad_webkit_bug();
$3({ target: "String", proto: true, forced: WEBKIT_BUG }, {
padEnd: function padEnd(maxLength) {
return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.string.pad-start.js
var require_es_string_pad_start = __commonJS({
"node_modules/core-js/modules/es.string.pad-start.js"() {
"use strict";
var $3 = require_export();
var $padStart = require_string_pad().start;
var WEBKIT_BUG = require_string_pad_webkit_bug();
$3({ target: "String", proto: true, forced: WEBKIT_BUG }, {
padStart: function padStart(maxLength) {
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.string.raw.js
var require_es_string_raw = __commonJS({
"node_modules/core-js/modules/es.string.raw.js"() {
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var toIndexedObject = require_to_indexed_object();
var toObject = require_to_object();
var toString = require_to_string();
var lengthOfArrayLike = require_length_of_array_like();
var push = uncurryThis([].push);
var join = uncurryThis([].join);
$3({ target: "String", stat: true }, {
raw: function raw(template) {
var rawTemplate = toIndexedObject(toObject(template).raw);
var literalSegments = lengthOfArrayLike(rawTemplate);
var argumentsLength = arguments.length;
var elements2 = [];
var i4 = 0;
while (literalSegments > i4) {
push(elements2, toString(rawTemplate[i4++]));
if (i4 === literalSegments)
return join(elements2, "");
if (i4 < argumentsLength)
push(elements2, toString(arguments[i4]));
}
}
});
}
});
// node_modules/core-js/modules/es.string.repeat.js
var require_es_string_repeat = __commonJS({
"node_modules/core-js/modules/es.string.repeat.js"() {
var $3 = require_export();
var repeat = require_string_repeat();
$3({ target: "String", proto: true }, {
repeat
});
}
});
// node_modules/core-js/internals/get-substitution.js
var require_get_substitution = __commonJS({
"node_modules/core-js/internals/get-substitution.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var toObject = require_to_object();
var floor = Math.floor;
var charAt = uncurryThis("".charAt);
var replace = uncurryThis("".replace);
var stringSlice = uncurryThis("".slice);
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
module2.exports = function(matched, str, position, captures, namedCaptures, replacement) {
var tailPos = position + matched.length;
var m3 = captures.length;
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
if (namedCaptures !== void 0) {
namedCaptures = toObject(namedCaptures);
symbols = SUBSTITUTION_SYMBOLS;
}
return replace(replacement, symbols, function(match2, ch) {
var capture;
switch (charAt(ch, 0)) {
case "$":
return "$";
case "&":
return matched;
case "`":
return stringSlice(str, 0, position);
case "'":
return stringSlice(str, tailPos);
case "<":
capture = namedCaptures[stringSlice(ch, 1, -1)];
break;
default:
var n4 = +ch;
if (n4 === 0)
return match2;
if (n4 > m3) {
var f3 = floor(n4 / 10);
if (f3 === 0)
return match2;
if (f3 <= m3)
return captures[f3 - 1] === void 0 ? charAt(ch, 1) : captures[f3 - 1] + charAt(ch, 1);
return match2;
}
capture = captures[n4 - 1];
}
return capture === void 0 ? "" : capture;
});
};
}
});
// node_modules/core-js/modules/es.string.replace.js
var require_es_string_replace = __commonJS({
"node_modules/core-js/modules/es.string.replace.js"() {
"use strict";
var apply = require_function_apply();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic();
var fails = require_fails();
var anObject = require_an_object();
var isCallable = require_is_callable();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toLength = require_to_length();
var toString = require_to_string();
var requireObjectCoercible = require_require_object_coercible();
var advanceStringIndex = require_advance_string_index();
var getMethod = require_get_method();
var getSubstitution = require_get_substitution();
var regExpExec = require_regexp_exec_abstract();
var wellKnownSymbol = require_well_known_symbol();
var REPLACE = wellKnownSymbol("replace");
var max2 = Math.max;
var min2 = Math.min;
var concat = uncurryThis([].concat);
var push = uncurryThis([].push);
var stringIndexOf = uncurryThis("".indexOf);
var stringSlice = uncurryThis("".slice);
var maybeToString = function(it2) {
return it2 === void 0 ? it2 : String(it2);
};
var REPLACE_KEEPS_$0 = function() {
return "a".replace(/./, "$0") === "$0";
}();
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = function() {
if (/./[REPLACE]) {
return /./[REPLACE]("a", "$0") === "";
}
return false;
}();
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function() {
var re2 = /./;
re2.exec = function() {
var result = [];
result.groups = { a: "7" };
return result;
};
return "".replace(re2, "$") !== "7";
});
fixRegExpWellKnownSymbolLogic("replace", function(_3, nativeReplace, maybeCallNative) {
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? "$" : "$0";
return [
function replace(searchValue, replaceValue) {
var O2 = requireObjectCoercible(this);
var replacer = searchValue == void 0 ? void 0 : getMethod(searchValue, REPLACE);
return replacer ? call(replacer, searchValue, O2, replaceValue) : call(nativeReplace, toString(O2), searchValue, replaceValue);
},
function(string, replaceValue) {
var rx = anObject(this);
var S2 = toString(string);
if (typeof replaceValue == "string" && stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && stringIndexOf(replaceValue, "$<") === -1) {
var res = maybeCallNative(nativeReplace, rx, S2, replaceValue);
if (res.done)
return res.value;
}
var functionalReplace = isCallable(replaceValue);
if (!functionalReplace)
replaceValue = toString(replaceValue);
var global2 = rx.global;
if (global2) {
var fullUnicode = rx.unicode;
rx.lastIndex = 0;
}
var results = [];
while (true) {
var result = regExpExec(rx, S2);
if (result === null)
break;
push(results, result);
if (!global2)
break;
var matchStr = toString(result[0]);
if (matchStr === "")
rx.lastIndex = advanceStringIndex(S2, toLength(rx.lastIndex), fullUnicode);
}
var accumulatedResult = "";
var nextSourcePosition = 0;
for (var i4 = 0; i4 < results.length; i4++) {
result = results[i4];
var matched = toString(result[0]);
var position = max2(min2(toIntegerOrInfinity(result.index), S2.length), 0);
var captures = [];
for (var j3 = 1; j3 < result.length; j3++)
push(captures, maybeToString(result[j3]));
var namedCaptures = result.groups;
if (functionalReplace) {
var replacerArgs = concat([matched], captures, position, S2);
if (namedCaptures !== void 0)
push(replacerArgs, namedCaptures);
var replacement = toString(apply(replaceValue, void 0, replacerArgs));
} else {
replacement = getSubstitution(matched, S2, position, captures, namedCaptures, replaceValue);
}
if (position >= nextSourcePosition) {
accumulatedResult += stringSlice(S2, nextSourcePosition, position) + replacement;
nextSourcePosition = position + matched.length;
}
}
return accumulatedResult + stringSlice(S2, nextSourcePosition);
}
];
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
}
});
// node_modules/core-js/modules/es.string.replace-all.js
var require_es_string_replace_all = __commonJS({
"node_modules/core-js/modules/es.string.replace-all.js"() {
"use strict";
var $3 = require_export();
var global2 = require_global();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var isCallable = require_is_callable();
var isRegExp = require_is_regexp();
var toString = require_to_string();
var getMethod = require_get_method();
var regExpFlags = require_regexp_flags();
var getSubstitution = require_get_substitution();
var wellKnownSymbol = require_well_known_symbol();
var IS_PURE = require_is_pure();
var REPLACE = wellKnownSymbol("replace");
var RegExpPrototype = RegExp.prototype;
var TypeError2 = global2.TypeError;
var getFlags = uncurryThis(regExpFlags);
var indexOf2 = uncurryThis("".indexOf);
var replace = uncurryThis("".replace);
var stringSlice = uncurryThis("".slice);
var max2 = Math.max;
var stringIndexOf = function(string, searchValue, fromIndex) {
if (fromIndex > string.length)
return -1;
if (searchValue === "")
return fromIndex;
return indexOf2(string, searchValue, fromIndex);
};
$3({ target: "String", proto: true }, {
replaceAll: function replaceAll(searchValue, replaceValue) {
var O2 = requireObjectCoercible(this);
var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;
var position = 0;
var endOfLastMatch = 0;
var result = "";
if (searchValue != null) {
IS_REG_EXP = isRegExp(searchValue);
if (IS_REG_EXP) {
flags = toString(requireObjectCoercible("flags" in RegExpPrototype ? searchValue.flags : getFlags(searchValue)));
if (!~indexOf2(flags, "g"))
throw TypeError2("`.replaceAll` does not allow non-global regexes");
}
replacer = getMethod(searchValue, REPLACE);
if (replacer) {
return call(replacer, searchValue, O2, replaceValue);
} else if (IS_PURE && IS_REG_EXP) {
return replace(toString(O2), searchValue, replaceValue);
}
}
string = toString(O2);
searchString = toString(searchValue);
functionalReplace = isCallable(replaceValue);
if (!functionalReplace)
replaceValue = toString(replaceValue);
searchLength = searchString.length;
advanceBy = max2(1, searchLength);
position = stringIndexOf(string, searchString, 0);
while (position !== -1) {
replacement = functionalReplace ? toString(replaceValue(searchString, position, string)) : getSubstitution(searchString, string, position, [], void 0, replaceValue);
result += stringSlice(string, endOfLastMatch, position) + replacement;
endOfLastMatch = position + searchLength;
position = stringIndexOf(string, searchString, position + advanceBy);
}
if (endOfLastMatch < string.length) {
result += stringSlice(string, endOfLastMatch);
}
return result;
}
});
}
});
// node_modules/core-js/modules/es.string.search.js
var require_es_string_search = __commonJS({
"node_modules/core-js/modules/es.string.search.js"() {
"use strict";
var call = require_function_call();
var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic();
var anObject = require_an_object();
var requireObjectCoercible = require_require_object_coercible();
var sameValue = require_same_value();
var toString = require_to_string();
var getMethod = require_get_method();
var regExpExec = require_regexp_exec_abstract();
fixRegExpWellKnownSymbolLogic("search", function(SEARCH, nativeSearch, maybeCallNative) {
return [
function search(regexp) {
var O2 = requireObjectCoercible(this);
var searcher = regexp == void 0 ? void 0 : getMethod(regexp, SEARCH);
return searcher ? call(searcher, regexp, O2) : new RegExp(regexp)[SEARCH](toString(O2));
},
function(string) {
var rx = anObject(this);
var S2 = toString(string);
var res = maybeCallNative(nativeSearch, rx, S2);
if (res.done)
return res.value;
var previousLastIndex = rx.lastIndex;
if (!sameValue(previousLastIndex, 0))
rx.lastIndex = 0;
var result = regExpExec(rx, S2);
if (!sameValue(rx.lastIndex, previousLastIndex))
rx.lastIndex = previousLastIndex;
return result === null ? -1 : result.index;
}
];
});
}
});
// node_modules/core-js/modules/es.string.split.js
var require_es_string_split = __commonJS({
"node_modules/core-js/modules/es.string.split.js"() {
"use strict";
var apply = require_function_apply();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic();
var isRegExp = require_is_regexp();
var anObject = require_an_object();
var requireObjectCoercible = require_require_object_coercible();
var speciesConstructor = require_species_constructor();
var advanceStringIndex = require_advance_string_index();
var toLength = require_to_length();
var toString = require_to_string();
var getMethod = require_get_method();
var arraySlice = require_array_slice_simple();
var callRegExpExec = require_regexp_exec_abstract();
var regexpExec = require_regexp_exec();
var stickyHelpers = require_regexp_sticky_helpers();
var fails = require_fails();
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
var MAX_UINT32 = 4294967295;
var min2 = Math.min;
var $push = [].push;
var exec = uncurryThis(/./.exec);
var push = uncurryThis($push);
var stringSlice = uncurryThis("".slice);
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function() {
var re2 = /(?:)/;
var originalExec = re2.exec;
re2.exec = function() {
return originalExec.apply(this, arguments);
};
var result = "ab".split(re2);
return result.length !== 2 || result[0] !== "a" || result[1] !== "b";
});
fixRegExpWellKnownSymbolLogic("split", function(SPLIT, nativeSplit, maybeCallNative) {
var internalSplit;
if ("abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length) {
internalSplit = function(separator, limit) {
var string = toString(requireObjectCoercible(this));
var lim2 = limit === void 0 ? MAX_UINT32 : limit >>> 0;
if (lim2 === 0)
return [];
if (separator === void 0)
return [string];
if (!isRegExp(separator)) {
return call(nativeSplit, string, separator, lim2);
}
var output = [];
var flags = (separator.ignoreCase ? "i" : "") + (separator.multiline ? "m" : "") + (separator.unicode ? "u" : "") + (separator.sticky ? "y" : "");
var lastLastIndex = 0;
var separatorCopy = new RegExp(separator.source, flags + "g");
var match2, lastIndex, lastLength;
while (match2 = call(regexpExec, separatorCopy, string)) {
lastIndex = separatorCopy.lastIndex;
if (lastIndex > lastLastIndex) {
push(output, stringSlice(string, lastLastIndex, match2.index));
if (match2.length > 1 && match2.index < string.length)
apply($push, output, arraySlice(match2, 1));
lastLength = match2[0].length;
lastLastIndex = lastIndex;
if (output.length >= lim2)
break;
}
if (separatorCopy.lastIndex === match2.index)
separatorCopy.lastIndex++;
}
if (lastLastIndex === string.length) {
if (lastLength || !exec(separatorCopy, ""))
push(output, "");
} else
push(output, stringSlice(string, lastLastIndex));
return output.length > lim2 ? arraySlice(output, 0, lim2) : output;
};
} else if ("0".split(void 0, 0).length) {
internalSplit = function(separator, limit) {
return separator === void 0 && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
};
} else
internalSplit = nativeSplit;
return [
function split(separator, limit) {
var O2 = requireObjectCoercible(this);
var splitter = separator == void 0 ? void 0 : getMethod(separator, SPLIT);
return splitter ? call(splitter, separator, O2, limit) : call(internalSplit, toString(O2), separator, limit);
},
function(string, limit) {
var rx = anObject(this);
var S2 = toString(string);
var res = maybeCallNative(internalSplit, rx, S2, limit, internalSplit !== nativeSplit);
if (res.done)
return res.value;
var C3 = speciesConstructor(rx, RegExp);
var unicodeMatching = rx.unicode;
var flags = (rx.ignoreCase ? "i" : "") + (rx.multiline ? "m" : "") + (rx.unicode ? "u" : "") + (UNSUPPORTED_Y ? "g" : "y");
var splitter = new C3(UNSUPPORTED_Y ? "^(?:" + rx.source + ")" : rx, flags);
var lim2 = limit === void 0 ? MAX_UINT32 : limit >>> 0;
if (lim2 === 0)
return [];
if (S2.length === 0)
return callRegExpExec(splitter, S2) === null ? [S2] : [];
var p3 = 0;
var q2 = 0;
var A3 = [];
while (q2 < S2.length) {
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q2;
var z3 = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S2, q2) : S2);
var e4;
if (z3 === null || (e4 = min2(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q2 : 0)), S2.length)) === p3) {
q2 = advanceStringIndex(S2, q2, unicodeMatching);
} else {
push(A3, stringSlice(S2, p3, q2));
if (A3.length === lim2)
return A3;
for (var i4 = 1; i4 <= z3.length - 1; i4++) {
push(A3, z3[i4]);
if (A3.length === lim2)
return A3;
}
q2 = p3 = e4;
}
}
push(A3, stringSlice(S2, p3));
return A3;
}
];
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
}
});
// node_modules/core-js/modules/es.string.starts-with.js
var require_es_string_starts_with = __commonJS({
"node_modules/core-js/modules/es.string.starts-with.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var toLength = require_to_length();
var toString = require_to_string();
var notARegExp = require_not_a_regexp();
var requireObjectCoercible = require_require_object_coercible();
var correctIsRegExpLogic = require_correct_is_regexp_logic();
var IS_PURE = require_is_pure();
var un$StartsWith = uncurryThis("".startsWith);
var stringSlice = uncurryThis("".slice);
var min2 = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic("startsWith");
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function() {
var descriptor = getOwnPropertyDescriptor(String.prototype, "startsWith");
return descriptor && !descriptor.writable;
}();
$3({ target: "String", proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
startsWith: function startsWith(searchString) {
var that = toString(requireObjectCoercible(this));
notARegExp(searchString);
var index2 = toLength(min2(arguments.length > 1 ? arguments[1] : void 0, that.length));
var search = toString(searchString);
return un$StartsWith ? un$StartsWith(that, search, index2) : stringSlice(that, index2, index2 + search.length) === search;
}
});
}
});
// node_modules/core-js/modules/es.string.substr.js
var require_es_string_substr = __commonJS({
"node_modules/core-js/modules/es.string.substr.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toString = require_to_string();
var stringSlice = uncurryThis("".slice);
var max2 = Math.max;
var min2 = Math.min;
var FORCED = !"".substr || "ab".substr(-1) !== "b";
$3({ target: "String", proto: true, forced: FORCED }, {
substr: function substr(start3, length) {
var that = toString(requireObjectCoercible(this));
var size = that.length;
var intStart = toIntegerOrInfinity(start3);
var intLength, intEnd;
if (intStart === Infinity)
intStart = 0;
if (intStart < 0)
intStart = max2(size + intStart, 0);
intLength = length === void 0 ? size : toIntegerOrInfinity(length);
if (intLength <= 0 || intLength === Infinity)
return "";
intEnd = min2(intStart + intLength, size);
return intStart >= intEnd ? "" : stringSlice(that, intStart, intEnd);
}
});
}
});
// node_modules/core-js/internals/string-trim-forced.js
var require_string_trim_forced = __commonJS({
"node_modules/core-js/internals/string-trim-forced.js"(exports2, module2) {
var PROPER_FUNCTION_NAME = require_function_name().PROPER;
var fails = require_fails();
var whitespaces = require_whitespaces();
var non = "\u200B\x85\u180E";
module2.exports = function(METHOD_NAME) {
return fails(function() {
return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() !== non || PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME;
});
};
}
});
// node_modules/core-js/modules/es.string.trim.js
var require_es_string_trim = __commonJS({
"node_modules/core-js/modules/es.string.trim.js"() {
"use strict";
var $3 = require_export();
var $trim = require_string_trim().trim;
var forcedStringTrimMethod = require_string_trim_forced();
$3({ target: "String", proto: true, forced: forcedStringTrimMethod("trim") }, {
trim: function trim() {
return $trim(this);
}
});
}
});
// node_modules/core-js/modules/es.string.trim-end.js
var require_es_string_trim_end = __commonJS({
"node_modules/core-js/modules/es.string.trim-end.js"() {
"use strict";
var $3 = require_export();
var $trimEnd = require_string_trim().end;
var forcedStringTrimMethod = require_string_trim_forced();
var FORCED = forcedStringTrimMethod("trimEnd");
var trimEnd = FORCED ? function trimEnd2() {
return $trimEnd(this);
} : "".trimEnd;
$3({ target: "String", proto: true, name: "trimEnd", forced: FORCED }, {
trimEnd,
trimRight: trimEnd
});
}
});
// node_modules/core-js/modules/es.string.trim-start.js
var require_es_string_trim_start = __commonJS({
"node_modules/core-js/modules/es.string.trim-start.js"() {
"use strict";
var $3 = require_export();
var $trimStart = require_string_trim().start;
var forcedStringTrimMethod = require_string_trim_forced();
var FORCED = forcedStringTrimMethod("trimStart");
var trimStart = FORCED ? function trimStart2() {
return $trimStart(this);
} : "".trimStart;
$3({ target: "String", proto: true, name: "trimStart", forced: FORCED }, {
trimStart,
trimLeft: trimStart
});
}
});
// node_modules/core-js/internals/create-html.js
var require_create_html = __commonJS({
"node_modules/core-js/internals/create-html.js"(exports2, module2) {
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var toString = require_to_string();
var quot = /"/g;
var replace = uncurryThis("".replace);
module2.exports = function(string, tag, attribute, value) {
var S2 = toString(requireObjectCoercible(string));
var p1 = "<" + tag;
if (attribute !== "")
p1 += " " + attribute + '="' + replace(toString(value), quot, """) + '"';
return p1 + ">" + S2 + "" + tag + ">";
};
}
});
// node_modules/core-js/internals/string-html-forced.js
var require_string_html_forced = __commonJS({
"node_modules/core-js/internals/string-html-forced.js"(exports2, module2) {
var fails = require_fails();
module2.exports = function(METHOD_NAME) {
return fails(function() {
var test = ""[METHOD_NAME]('"');
return test !== test.toLowerCase() || test.split('"').length > 3;
});
};
}
});
// node_modules/core-js/modules/es.string.anchor.js
var require_es_string_anchor = __commonJS({
"node_modules/core-js/modules/es.string.anchor.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("anchor") }, {
anchor: function anchor(name) {
return createHTML(this, "a", "name", name);
}
});
}
});
// node_modules/core-js/modules/es.string.big.js
var require_es_string_big = __commonJS({
"node_modules/core-js/modules/es.string.big.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("big") }, {
big: function big() {
return createHTML(this, "big", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.blink.js
var require_es_string_blink = __commonJS({
"node_modules/core-js/modules/es.string.blink.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("blink") }, {
blink: function blink() {
return createHTML(this, "blink", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.bold.js
var require_es_string_bold = __commonJS({
"node_modules/core-js/modules/es.string.bold.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("bold") }, {
bold: function bold() {
return createHTML(this, "b", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.fixed.js
var require_es_string_fixed = __commonJS({
"node_modules/core-js/modules/es.string.fixed.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("fixed") }, {
fixed: function fixed() {
return createHTML(this, "tt", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.fontcolor.js
var require_es_string_fontcolor = __commonJS({
"node_modules/core-js/modules/es.string.fontcolor.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("fontcolor") }, {
fontcolor: function fontcolor(color2) {
return createHTML(this, "font", "color", color2);
}
});
}
});
// node_modules/core-js/modules/es.string.fontsize.js
var require_es_string_fontsize = __commonJS({
"node_modules/core-js/modules/es.string.fontsize.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("fontsize") }, {
fontsize: function fontsize(size) {
return createHTML(this, "font", "size", size);
}
});
}
});
// node_modules/core-js/modules/es.string.italics.js
var require_es_string_italics = __commonJS({
"node_modules/core-js/modules/es.string.italics.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("italics") }, {
italics: function italics() {
return createHTML(this, "i", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.link.js
var require_es_string_link = __commonJS({
"node_modules/core-js/modules/es.string.link.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("link") }, {
link: function link(url) {
return createHTML(this, "a", "href", url);
}
});
}
});
// node_modules/core-js/modules/es.string.small.js
var require_es_string_small = __commonJS({
"node_modules/core-js/modules/es.string.small.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("small") }, {
small: function small() {
return createHTML(this, "small", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.strike.js
var require_es_string_strike = __commonJS({
"node_modules/core-js/modules/es.string.strike.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("strike") }, {
strike: function strike() {
return createHTML(this, "strike", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.sub.js
var require_es_string_sub = __commonJS({
"node_modules/core-js/modules/es.string.sub.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("sub") }, {
sub: function sub() {
return createHTML(this, "sub", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.sup.js
var require_es_string_sup = __commonJS({
"node_modules/core-js/modules/es.string.sup.js"() {
"use strict";
var $3 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$3({ target: "String", proto: true, forced: forcedStringHTMLMethod("sup") }, {
sup: function sup() {
return createHTML(this, "sup", "", "");
}
});
}
});
// node_modules/core-js/internals/typed-array-constructors-require-wrappers.js
var require_typed_array_constructors_require_wrappers = __commonJS({
"node_modules/core-js/internals/typed-array-constructors-require-wrappers.js"(exports2, module2) {
var global2 = require_global();
var fails = require_fails();
var checkCorrectnessOfIteration = require_check_correctness_of_iteration();
var NATIVE_ARRAY_BUFFER_VIEWS = require_array_buffer_view_core().NATIVE_ARRAY_BUFFER_VIEWS;
var ArrayBuffer2 = global2.ArrayBuffer;
var Int8Array2 = global2.Int8Array;
module2.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function() {
Int8Array2(1);
}) || !fails(function() {
new Int8Array2(-1);
}) || !checkCorrectnessOfIteration(function(iterable) {
new Int8Array2();
new Int8Array2(null);
new Int8Array2(1.5);
new Int8Array2(iterable);
}, true) || fails(function() {
return new Int8Array2(new ArrayBuffer2(2), 1, void 0).length !== 1;
});
}
});
// node_modules/core-js/internals/to-positive-integer.js
var require_to_positive_integer = __commonJS({
"node_modules/core-js/internals/to-positive-integer.js"(exports2, module2) {
var global2 = require_global();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var RangeError2 = global2.RangeError;
module2.exports = function(it2) {
var result = toIntegerOrInfinity(it2);
if (result < 0)
throw RangeError2("The argument can't be less than 0");
return result;
};
}
});
// node_modules/core-js/internals/to-offset.js
var require_to_offset = __commonJS({
"node_modules/core-js/internals/to-offset.js"(exports2, module2) {
var global2 = require_global();
var toPositiveInteger = require_to_positive_integer();
var RangeError2 = global2.RangeError;
module2.exports = function(it2, BYTES) {
var offset2 = toPositiveInteger(it2);
if (offset2 % BYTES)
throw RangeError2("Wrong offset");
return offset2;
};
}
});
// node_modules/core-js/internals/typed-array-from.js
var require_typed_array_from = __commonJS({
"node_modules/core-js/internals/typed-array-from.js"(exports2, module2) {
var bind2 = require_function_bind_context();
var call = require_function_call();
var aConstructor = require_a_constructor();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var getIterator = require_get_iterator();
var getIteratorMethod = require_get_iterator_method();
var isArrayIteratorMethod = require_is_array_iterator_method();
var aTypedArrayConstructor = require_array_buffer_view_core().aTypedArrayConstructor;
module2.exports = function from(source) {
var C3 = aConstructor(this);
var O2 = toObject(source);
var argumentsLength = arguments.length;
var mapfn = argumentsLength > 1 ? arguments[1] : void 0;
var mapping = mapfn !== void 0;
var iteratorMethod = getIteratorMethod(O2);
var i4, length, result, step, iterator, next;
if (iteratorMethod && !isArrayIteratorMethod(iteratorMethod)) {
iterator = getIterator(O2, iteratorMethod);
next = iterator.next;
O2 = [];
while (!(step = call(next, iterator)).done) {
O2.push(step.value);
}
}
if (mapping && argumentsLength > 2) {
mapfn = bind2(mapfn, arguments[2]);
}
length = lengthOfArrayLike(O2);
result = new (aTypedArrayConstructor(C3))(length);
for (i4 = 0; length > i4; i4++) {
result[i4] = mapping ? mapfn(O2[i4], i4) : O2[i4];
}
return result;
};
}
});
// node_modules/core-js/internals/typed-array-constructor.js
var require_typed_array_constructor = __commonJS({
"node_modules/core-js/internals/typed-array-constructor.js"(exports2, module2) {
"use strict";
var $3 = require_export();
var global2 = require_global();
var call = require_function_call();
var DESCRIPTORS = require_descriptors();
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require_typed_array_constructors_require_wrappers();
var ArrayBufferViewCore = require_array_buffer_view_core();
var ArrayBufferModule = require_array_buffer();
var anInstance = require_an_instance();
var createPropertyDescriptor = require_create_property_descriptor();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var isIntegralNumber = require_is_integral_number();
var toLength = require_to_length();
var toIndex = require_to_index();
var toOffset = require_to_offset();
var toPropertyKey = require_to_property_key();
var hasOwn = require_has_own_property();
var classof = require_classof();
var isObject4 = require_is_object();
var isSymbol = require_is_symbol();
var create = require_object_create();
var isPrototypeOf = require_object_is_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var getOwnPropertyNames = require_object_get_own_property_names().f;
var typedArrayFrom = require_typed_array_from();
var forEach = require_array_iteration().forEach;
var setSpecies = require_set_species();
var definePropertyModule = require_object_define_property();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var InternalStateModule = require_internal_state();
var inheritIfRequired = require_inherit_if_required();
var getInternalState = InternalStateModule.get;
var setInternalState = InternalStateModule.set;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var round3 = Math.round;
var RangeError2 = global2.RangeError;
var ArrayBuffer2 = ArrayBufferModule.ArrayBuffer;
var ArrayBufferPrototype = ArrayBuffer2.prototype;
var DataView2 = ArrayBufferModule.DataView;
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
var TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG;
var TypedArray = ArrayBufferViewCore.TypedArray;
var TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var isTypedArray = ArrayBufferViewCore.isTypedArray;
var BYTES_PER_ELEMENT = "BYTES_PER_ELEMENT";
var WRONG_LENGTH = "Wrong length";
var fromList = function(C3, list) {
aTypedArrayConstructor(C3);
var index2 = 0;
var length = list.length;
var result = new C3(length);
while (length > index2)
result[index2] = list[index2++];
return result;
};
var addGetter = function(it2, key) {
nativeDefineProperty(it2, key, { get: function() {
return getInternalState(this)[key];
} });
};
var isArrayBuffer = function(it2) {
var klass;
return isPrototypeOf(ArrayBufferPrototype, it2) || (klass = classof(it2)) == "ArrayBuffer" || klass == "SharedArrayBuffer";
};
var isTypedArrayIndex = function(target, key) {
return isTypedArray(target) && !isSymbol(key) && key in target && isIntegralNumber(+key) && key >= 0;
};
var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {
key = toPropertyKey(key);
return isTypedArrayIndex(target, key) ? createPropertyDescriptor(2, target[key]) : nativeGetOwnPropertyDescriptor(target, key);
};
var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
key = toPropertyKey(key);
if (isTypedArrayIndex(target, key) && isObject4(descriptor) && hasOwn(descriptor, "value") && !hasOwn(descriptor, "get") && !hasOwn(descriptor, "set") && !descriptor.configurable && (!hasOwn(descriptor, "writable") || descriptor.writable) && (!hasOwn(descriptor, "enumerable") || descriptor.enumerable)) {
target[key] = descriptor.value;
return target;
}
return nativeDefineProperty(target, key, descriptor);
};
if (DESCRIPTORS) {
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor;
definePropertyModule.f = wrappedDefineProperty;
addGetter(TypedArrayPrototype, "buffer");
addGetter(TypedArrayPrototype, "byteOffset");
addGetter(TypedArrayPrototype, "byteLength");
addGetter(TypedArrayPrototype, "length");
}
$3({ target: "Object", stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
defineProperty: wrappedDefineProperty
});
module2.exports = function(TYPE, wrapper, CLAMPED) {
var BYTES = TYPE.match(/\d+$/)[0] / 8;
var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? "Clamped" : "") + "Array";
var GETTER = "get" + TYPE;
var SETTER = "set" + TYPE;
var NativeTypedArrayConstructor = global2[CONSTRUCTOR_NAME];
var TypedArrayConstructor = NativeTypedArrayConstructor;
var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;
var exported = {};
var getter = function(that, index2) {
var data = getInternalState(that);
return data.view[GETTER](index2 * BYTES + data.byteOffset, true);
};
var setter = function(that, index2, value) {
var data = getInternalState(that);
if (CLAMPED)
value = (value = round3(value)) < 0 ? 0 : value > 255 ? 255 : value & 255;
data.view[SETTER](index2 * BYTES + data.byteOffset, value, true);
};
var addElement = function(that, index2) {
nativeDefineProperty(that, index2, {
get: function() {
return getter(this, index2);
},
set: function(value) {
return setter(this, index2, value);
},
enumerable: true
});
};
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
TypedArrayConstructor = wrapper(function(that, data, offset2, $length) {
anInstance(that, TypedArrayConstructorPrototype);
var index2 = 0;
var byteOffset = 0;
var buffer, byteLength, length;
if (!isObject4(data)) {
length = toIndex(data);
byteLength = length * BYTES;
buffer = new ArrayBuffer2(byteLength);
} else if (isArrayBuffer(data)) {
buffer = data;
byteOffset = toOffset(offset2, BYTES);
var $len = data.byteLength;
if ($length === void 0) {
if ($len % BYTES)
throw RangeError2(WRONG_LENGTH);
byteLength = $len - byteOffset;
if (byteLength < 0)
throw RangeError2(WRONG_LENGTH);
} else {
byteLength = toLength($length) * BYTES;
if (byteLength + byteOffset > $len)
throw RangeError2(WRONG_LENGTH);
}
length = byteLength / BYTES;
} else if (isTypedArray(data)) {
return fromList(TypedArrayConstructor, data);
} else {
return call(typedArrayFrom, TypedArrayConstructor, data);
}
setInternalState(that, {
buffer,
byteOffset,
byteLength,
length,
view: new DataView2(buffer)
});
while (index2 < length)
addElement(that, index2++);
});
if (setPrototypeOf)
setPrototypeOf(TypedArrayConstructor, TypedArray);
TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype);
} else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {
TypedArrayConstructor = wrapper(function(dummy, data, typedArrayOffset, $length) {
anInstance(dummy, TypedArrayConstructorPrototype);
return inheritIfRequired(function() {
if (!isObject4(data))
return new NativeTypedArrayConstructor(toIndex(data));
if (isArrayBuffer(data))
return $length !== void 0 ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length) : typedArrayOffset !== void 0 ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES)) : new NativeTypedArrayConstructor(data);
if (isTypedArray(data))
return fromList(TypedArrayConstructor, data);
return call(typedArrayFrom, TypedArrayConstructor, data);
}(), dummy, TypedArrayConstructor);
});
if (setPrototypeOf)
setPrototypeOf(TypedArrayConstructor, TypedArray);
forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function(key) {
if (!(key in TypedArrayConstructor)) {
createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]);
}
});
TypedArrayConstructor.prototype = TypedArrayConstructorPrototype;
}
if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) {
createNonEnumerableProperty(TypedArrayConstructorPrototype, "constructor", TypedArrayConstructor);
}
createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_CONSTRUCTOR, TypedArrayConstructor);
if (TYPED_ARRAY_TAG) {
createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
}
exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
$3({
global: true,
forced: TypedArrayConstructor != NativeTypedArrayConstructor,
sham: !NATIVE_ARRAY_BUFFER_VIEWS
}, exported);
if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
}
if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) {
createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES);
}
setSpecies(CONSTRUCTOR_NAME);
};
} else
module2.exports = function() {
};
}
});
// node_modules/core-js/modules/es.typed-array.float32-array.js
var require_es_typed_array_float32_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.float32-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Float32", function(init2) {
return function Float32Array2(data, byteOffset, length) {
return init2(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.float64-array.js
var require_es_typed_array_float64_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.float64-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Float64", function(init2) {
return function Float64Array2(data, byteOffset, length) {
return init2(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.int8-array.js
var require_es_typed_array_int8_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.int8-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Int8", function(init2) {
return function Int8Array2(data, byteOffset, length) {
return init2(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.int16-array.js
var require_es_typed_array_int16_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.int16-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Int16", function(init2) {
return function Int16Array2(data, byteOffset, length) {
return init2(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.int32-array.js
var require_es_typed_array_int32_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.int32-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Int32", function(init2) {
return function Int32Array2(data, byteOffset, length) {
return init2(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.uint8-array.js
var require_es_typed_array_uint8_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.uint8-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Uint8", function(init2) {
return function Uint8Array2(data, byteOffset, length) {
return init2(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js
var require_es_typed_array_uint8_clamped_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Uint8", function(init2) {
return function Uint8ClampedArray2(data, byteOffset, length) {
return init2(this, data, byteOffset, length);
};
}, true);
}
});
// node_modules/core-js/modules/es.typed-array.uint16-array.js
var require_es_typed_array_uint16_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.uint16-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Uint16", function(init2) {
return function Uint16Array2(data, byteOffset, length) {
return init2(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.uint32-array.js
var require_es_typed_array_uint32_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.uint32-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Uint32", function(init2) {
return function Uint32Array2(data, byteOffset, length) {
return init2(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.at.js
var require_es_typed_array_at = __commonJS({
"node_modules/core-js/modules/es.typed-array.at.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var lengthOfArrayLike = require_length_of_array_like();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("at", function at2(index2) {
var O2 = aTypedArray(this);
var len = lengthOfArrayLike(O2);
var relativeIndex = toIntegerOrInfinity(index2);
var k3 = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return k3 < 0 || k3 >= len ? void 0 : O2[k3];
});
}
});
// node_modules/core-js/modules/es.typed-array.copy-within.js
var require_es_typed_array_copy_within = __commonJS({
"node_modules/core-js/modules/es.typed-array.copy-within.js"() {
"use strict";
var uncurryThis = require_function_uncurry_this();
var ArrayBufferViewCore = require_array_buffer_view_core();
var $ArrayCopyWithin = require_array_copy_within();
var u$ArrayCopyWithin = uncurryThis($ArrayCopyWithin);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("copyWithin", function copyWithin(target, start3) {
return u$ArrayCopyWithin(aTypedArray(this), target, start3, arguments.length > 2 ? arguments[2] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.every.js
var require_es_typed_array_every = __commonJS({
"node_modules/core-js/modules/es.typed-array.every.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $every = require_array_iteration().every;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("every", function every(callbackfn) {
return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.fill.js
var require_es_typed_array_fill = __commonJS({
"node_modules/core-js/modules/es.typed-array.fill.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var call = require_function_call();
var $fill = require_array_fill();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("fill", function fill(value) {
var length = arguments.length;
return call($fill, aTypedArray(this), value, length > 1 ? arguments[1] : void 0, length > 2 ? arguments[2] : void 0);
});
}
});
// node_modules/core-js/internals/array-from-constructor-and-list.js
var require_array_from_constructor_and_list = __commonJS({
"node_modules/core-js/internals/array-from-constructor-and-list.js"(exports2, module2) {
var lengthOfArrayLike = require_length_of_array_like();
module2.exports = function(Constructor, list) {
var index2 = 0;
var length = lengthOfArrayLike(list);
var result = new Constructor(length);
while (length > index2)
result[index2] = list[index2++];
return result;
};
}
});
// node_modules/core-js/internals/typed-array-species-constructor.js
var require_typed_array_species_constructor = __commonJS({
"node_modules/core-js/internals/typed-array-species-constructor.js"(exports2, module2) {
var ArrayBufferViewCore = require_array_buffer_view_core();
var speciesConstructor = require_species_constructor();
var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
module2.exports = function(originalArray) {
return aTypedArrayConstructor(speciesConstructor(originalArray, originalArray[TYPED_ARRAY_CONSTRUCTOR]));
};
}
});
// node_modules/core-js/internals/typed-array-from-species-and-list.js
var require_typed_array_from_species_and_list = __commonJS({
"node_modules/core-js/internals/typed-array-from-species-and-list.js"(exports2, module2) {
var arrayFromConstructorAndList = require_array_from_constructor_and_list();
var typedArraySpeciesConstructor = require_typed_array_species_constructor();
module2.exports = function(instance, list) {
return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance), list);
};
}
});
// node_modules/core-js/modules/es.typed-array.filter.js
var require_es_typed_array_filter = __commonJS({
"node_modules/core-js/modules/es.typed-array.filter.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $filter = require_array_iteration().filter;
var fromSpeciesAndList = require_typed_array_from_species_and_list();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("filter", function filter2(callbackfn) {
var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
return fromSpeciesAndList(this, list);
});
}
});
// node_modules/core-js/modules/es.typed-array.find.js
var require_es_typed_array_find = __commonJS({
"node_modules/core-js/modules/es.typed-array.find.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $find = require_array_iteration().find;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("find", function find(predicate) {
return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.find-index.js
var require_es_typed_array_find_index = __commonJS({
"node_modules/core-js/modules/es.typed-array.find-index.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $findIndex = require_array_iteration().findIndex;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("findIndex", function findIndex2(predicate) {
return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.for-each.js
var require_es_typed_array_for_each = __commonJS({
"node_modules/core-js/modules/es.typed-array.for-each.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $forEach = require_array_iteration().forEach;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("forEach", function forEach(callbackfn) {
$forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.from.js
var require_es_typed_array_from = __commonJS({
"node_modules/core-js/modules/es.typed-array.from.js"() {
"use strict";
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require_typed_array_constructors_require_wrappers();
var exportTypedArrayStaticMethod = require_array_buffer_view_core().exportTypedArrayStaticMethod;
var typedArrayFrom = require_typed_array_from();
exportTypedArrayStaticMethod("from", typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
}
});
// node_modules/core-js/modules/es.typed-array.includes.js
var require_es_typed_array_includes = __commonJS({
"node_modules/core-js/modules/es.typed-array.includes.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $includes = require_array_includes().includes;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("includes", function includes(searchElement) {
return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.index-of.js
var require_es_typed_array_index_of = __commonJS({
"node_modules/core-js/modules/es.typed-array.index-of.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $indexOf = require_array_includes().indexOf;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("indexOf", function indexOf2(searchElement) {
return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.iterator.js
var require_es_typed_array_iterator = __commonJS({
"node_modules/core-js/modules/es.typed-array.iterator.js"() {
"use strict";
var global2 = require_global();
var fails = require_fails();
var uncurryThis = require_function_uncurry_this();
var ArrayBufferViewCore = require_array_buffer_view_core();
var ArrayIterators = require_es_array_iterator();
var wellKnownSymbol = require_well_known_symbol();
var ITERATOR = wellKnownSymbol("iterator");
var Uint8Array2 = global2.Uint8Array;
var arrayValues = uncurryThis(ArrayIterators.values);
var arrayKeys = uncurryThis(ArrayIterators.keys);
var arrayEntries = uncurryThis(ArrayIterators.entries);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var TypedArrayPrototype = Uint8Array2 && Uint8Array2.prototype;
var GENERIC = !fails(function() {
TypedArrayPrototype[ITERATOR].call([1]);
});
var ITERATOR_IS_VALUES = !!TypedArrayPrototype && TypedArrayPrototype.values && TypedArrayPrototype[ITERATOR] === TypedArrayPrototype.values && TypedArrayPrototype.values.name === "values";
var typedArrayValues = function values() {
return arrayValues(aTypedArray(this));
};
exportTypedArrayMethod("entries", function entries() {
return arrayEntries(aTypedArray(this));
}, GENERIC);
exportTypedArrayMethod("keys", function keys() {
return arrayKeys(aTypedArray(this));
}, GENERIC);
exportTypedArrayMethod("values", typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: "values" });
exportTypedArrayMethod(ITERATOR, typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: "values" });
}
});
// node_modules/core-js/modules/es.typed-array.join.js
var require_es_typed_array_join = __commonJS({
"node_modules/core-js/modules/es.typed-array.join.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var uncurryThis = require_function_uncurry_this();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $join = uncurryThis([].join);
exportTypedArrayMethod("join", function join(separator) {
return $join(aTypedArray(this), separator);
});
}
});
// node_modules/core-js/modules/es.typed-array.last-index-of.js
var require_es_typed_array_last_index_of = __commonJS({
"node_modules/core-js/modules/es.typed-array.last-index-of.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var apply = require_function_apply();
var $lastIndexOf = require_array_last_index_of();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("lastIndexOf", function lastIndexOf(searchElement) {
var length = arguments.length;
return apply($lastIndexOf, aTypedArray(this), length > 1 ? [searchElement, arguments[1]] : [searchElement]);
});
}
});
// node_modules/core-js/modules/es.typed-array.map.js
var require_es_typed_array_map = __commonJS({
"node_modules/core-js/modules/es.typed-array.map.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $map = require_array_iteration().map;
var typedArraySpeciesConstructor = require_typed_array_species_constructor();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("map", function map3(mapfn) {
return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : void 0, function(O2, length) {
return new (typedArraySpeciesConstructor(O2))(length);
});
});
}
});
// node_modules/core-js/modules/es.typed-array.of.js
var require_es_typed_array_of = __commonJS({
"node_modules/core-js/modules/es.typed-array.of.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require_typed_array_constructors_require_wrappers();
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod;
exportTypedArrayStaticMethod("of", function of() {
var index2 = 0;
var length = arguments.length;
var result = new (aTypedArrayConstructor(this))(length);
while (length > index2)
result[index2] = arguments[index2++];
return result;
}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
}
});
// node_modules/core-js/modules/es.typed-array.reduce.js
var require_es_typed_array_reduce = __commonJS({
"node_modules/core-js/modules/es.typed-array.reduce.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $reduce = require_array_reduce().left;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("reduce", function reduce(callbackfn) {
var length = arguments.length;
return $reduce(aTypedArray(this), callbackfn, length, length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.reduce-right.js
var require_es_typed_array_reduce_right = __commonJS({
"node_modules/core-js/modules/es.typed-array.reduce-right.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $reduceRight = require_array_reduce().right;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("reduceRight", function reduceRight(callbackfn) {
var length = arguments.length;
return $reduceRight(aTypedArray(this), callbackfn, length, length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.reverse.js
var require_es_typed_array_reverse = __commonJS({
"node_modules/core-js/modules/es.typed-array.reverse.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var floor = Math.floor;
exportTypedArrayMethod("reverse", function reverse() {
var that = this;
var length = aTypedArray(that).length;
var middle = floor(length / 2);
var index2 = 0;
var value;
while (index2 < middle) {
value = that[index2];
that[index2++] = that[--length];
that[length] = value;
}
return that;
});
}
});
// node_modules/core-js/modules/es.typed-array.set.js
var require_es_typed_array_set = __commonJS({
"node_modules/core-js/modules/es.typed-array.set.js"() {
"use strict";
var global2 = require_global();
var call = require_function_call();
var ArrayBufferViewCore = require_array_buffer_view_core();
var lengthOfArrayLike = require_length_of_array_like();
var toOffset = require_to_offset();
var toIndexedObject = require_to_object();
var fails = require_fails();
var RangeError2 = global2.RangeError;
var Int8Array2 = global2.Int8Array;
var Int8ArrayPrototype = Int8Array2 && Int8Array2.prototype;
var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails(function() {
var array = new Uint8ClampedArray(2);
call($set, array, { length: 1, 0: 3 }, 1);
return array[1] !== 3;
});
var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function() {
var array = new Int8Array2(2);
array.set(1);
array.set("2", 1);
return array[0] !== 0 || array[1] !== 2;
});
exportTypedArrayMethod("set", function set2(arrayLike) {
aTypedArray(this);
var offset2 = toOffset(arguments.length > 1 ? arguments[1] : void 0, 1);
var src = toIndexedObject(arrayLike);
if (WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS)
return call($set, this, src, offset2);
var length = this.length;
var len = lengthOfArrayLike(src);
var index2 = 0;
if (len + offset2 > length)
throw RangeError2("Wrong length");
while (index2 < len)
this[offset2 + index2] = src[index2++];
}, !WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);
}
});
// node_modules/core-js/modules/es.typed-array.slice.js
var require_es_typed_array_slice = __commonJS({
"node_modules/core-js/modules/es.typed-array.slice.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var typedArraySpeciesConstructor = require_typed_array_species_constructor();
var fails = require_fails();
var arraySlice = require_array_slice();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var FORCED = fails(function() {
new Int8Array(1).slice();
});
exportTypedArrayMethod("slice", function slice(start3, end2) {
var list = arraySlice(aTypedArray(this), start3, end2);
var C3 = typedArraySpeciesConstructor(this);
var index2 = 0;
var length = list.length;
var result = new C3(length);
while (length > index2)
result[index2] = list[index2++];
return result;
}, FORCED);
}
});
// node_modules/core-js/modules/es.typed-array.some.js
var require_es_typed_array_some = __commonJS({
"node_modules/core-js/modules/es.typed-array.some.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $some = require_array_iteration().some;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("some", function some(callbackfn) {
return $some(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.sort.js
var require_es_typed_array_sort = __commonJS({
"node_modules/core-js/modules/es.typed-array.sort.js"() {
"use strict";
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var aCallable = require_a_callable();
var internalSort = require_array_sort();
var ArrayBufferViewCore = require_array_buffer_view_core();
var FF = require_engine_ff_version();
var IE_OR_EDGE = require_engine_is_ie_or_edge();
var V8 = require_engine_v8_version();
var WEBKIT = require_engine_webkit_version();
var Array2 = global2.Array;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var Uint16Array2 = global2.Uint16Array;
var un$Sort = Uint16Array2 && uncurryThis(Uint16Array2.prototype.sort);
var ACCEPT_INCORRECT_ARGUMENTS = !!un$Sort && !(fails(function() {
un$Sort(new Uint16Array2(2), null);
}) && fails(function() {
un$Sort(new Uint16Array2(2), {});
}));
var STABLE_SORT = !!un$Sort && !fails(function() {
if (V8)
return V8 < 74;
if (FF)
return FF < 67;
if (IE_OR_EDGE)
return true;
if (WEBKIT)
return WEBKIT < 602;
var array = new Uint16Array2(516);
var expected = Array2(516);
var index2, mod;
for (index2 = 0; index2 < 516; index2++) {
mod = index2 % 4;
array[index2] = 515 - index2;
expected[index2] = index2 - 2 * mod + 3;
}
un$Sort(array, function(a4, b3) {
return (a4 / 4 | 0) - (b3 / 4 | 0);
});
for (index2 = 0; index2 < 516; index2++) {
if (array[index2] !== expected[index2])
return true;
}
});
var getSortCompare = function(comparefn) {
return function(x3, y3) {
if (comparefn !== void 0)
return +comparefn(x3, y3) || 0;
if (y3 !== y3)
return -1;
if (x3 !== x3)
return 1;
if (x3 === 0 && y3 === 0)
return 1 / x3 > 0 && 1 / y3 < 0 ? 1 : -1;
return x3 > y3;
};
};
exportTypedArrayMethod("sort", function sort(comparefn) {
if (comparefn !== void 0)
aCallable(comparefn);
if (STABLE_SORT)
return un$Sort(this, comparefn);
return internalSort(aTypedArray(this), getSortCompare(comparefn));
}, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);
}
});
// node_modules/core-js/modules/es.typed-array.subarray.js
var require_es_typed_array_subarray = __commonJS({
"node_modules/core-js/modules/es.typed-array.subarray.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var toLength = require_to_length();
var toAbsoluteIndex = require_to_absolute_index();
var typedArraySpeciesConstructor = require_typed_array_species_constructor();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("subarray", function subarray(begin, end2) {
var O2 = aTypedArray(this);
var length = O2.length;
var beginIndex = toAbsoluteIndex(begin, length);
var C3 = typedArraySpeciesConstructor(O2);
return new C3(O2.buffer, O2.byteOffset + beginIndex * O2.BYTES_PER_ELEMENT, toLength((end2 === void 0 ? length : toAbsoluteIndex(end2, length)) - beginIndex));
});
}
});
// node_modules/core-js/modules/es.typed-array.to-locale-string.js
var require_es_typed_array_to_locale_string = __commonJS({
"node_modules/core-js/modules/es.typed-array.to-locale-string.js"() {
"use strict";
var global2 = require_global();
var apply = require_function_apply();
var ArrayBufferViewCore = require_array_buffer_view_core();
var fails = require_fails();
var arraySlice = require_array_slice();
var Int8Array2 = global2.Int8Array;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $toLocaleString = [].toLocaleString;
var TO_LOCALE_STRING_BUG = !!Int8Array2 && fails(function() {
$toLocaleString.call(new Int8Array2(1));
});
var FORCED = fails(function() {
return [1, 2].toLocaleString() != new Int8Array2([1, 2]).toLocaleString();
}) || !fails(function() {
Int8Array2.prototype.toLocaleString.call([1, 2]);
});
exportTypedArrayMethod("toLocaleString", function toLocaleString() {
return apply($toLocaleString, TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray(this)) : aTypedArray(this), arraySlice(arguments));
}, FORCED);
}
});
// node_modules/core-js/modules/es.typed-array.to-string.js
var require_es_typed_array_to_string = __commonJS({
"node_modules/core-js/modules/es.typed-array.to-string.js"() {
"use strict";
var exportTypedArrayMethod = require_array_buffer_view_core().exportTypedArrayMethod;
var fails = require_fails();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var Uint8Array2 = global2.Uint8Array;
var Uint8ArrayPrototype = Uint8Array2 && Uint8Array2.prototype || {};
var arrayToString = [].toString;
var join = uncurryThis([].join);
if (fails(function() {
arrayToString.call({});
})) {
arrayToString = function toString() {
return join(this);
};
}
var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString;
exportTypedArrayMethod("toString", arrayToString, IS_NOT_ARRAY_METHOD);
}
});
// node_modules/core-js/modules/es.unescape.js
var require_es_unescape = __commonJS({
"node_modules/core-js/modules/es.unescape.js"() {
"use strict";
var $3 = require_export();
var uncurryThis = require_function_uncurry_this();
var toString = require_to_string();
var fromCharCode = String.fromCharCode;
var charAt = uncurryThis("".charAt);
var exec = uncurryThis(/./.exec);
var stringSlice = uncurryThis("".slice);
var hex2 = /^[\da-f]{2}$/i;
var hex4 = /^[\da-f]{4}$/i;
$3({ global: true }, {
unescape: function unescape3(string) {
var str = toString(string);
var result = "";
var length = str.length;
var index2 = 0;
var chr, part;
while (index2 < length) {
chr = charAt(str, index2++);
if (chr === "%") {
if (charAt(str, index2) === "u") {
part = stringSlice(str, index2 + 1, index2 + 5);
if (exec(hex4, part)) {
result += fromCharCode(parseInt(part, 16));
index2 += 5;
continue;
}
} else {
part = stringSlice(str, index2, index2 + 2);
if (exec(hex2, part)) {
result += fromCharCode(parseInt(part, 16));
index2 += 2;
continue;
}
}
}
result += chr;
}
return result;
}
});
}
});
// node_modules/core-js/internals/collection-weak.js
var require_collection_weak = __commonJS({
"node_modules/core-js/internals/collection-weak.js"(exports2, module2) {
"use strict";
var uncurryThis = require_function_uncurry_this();
var redefineAll = require_redefine_all();
var getWeakData = require_internal_metadata().getWeakData;
var anObject = require_an_object();
var isObject4 = require_is_object();
var anInstance = require_an_instance();
var iterate = require_iterate();
var ArrayIterationModule = require_array_iteration();
var hasOwn = require_has_own_property();
var InternalStateModule = require_internal_state();
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
var find = ArrayIterationModule.find;
var findIndex2 = ArrayIterationModule.findIndex;
var splice = uncurryThis([].splice);
var id = 0;
var uncaughtFrozenStore = function(store) {
return store.frozen || (store.frozen = new UncaughtFrozenStore());
};
var UncaughtFrozenStore = function() {
this.entries = [];
};
var findUncaughtFrozen = function(store, key) {
return find(store.entries, function(it2) {
return it2[0] === key;
});
};
UncaughtFrozenStore.prototype = {
get: function(key) {
var entry = findUncaughtFrozen(this, key);
if (entry)
return entry[1];
},
has: function(key) {
return !!findUncaughtFrozen(this, key);
},
set: function(key, value) {
var entry = findUncaughtFrozen(this, key);
if (entry)
entry[1] = value;
else
this.entries.push([key, value]);
},
"delete": function(key) {
var index2 = findIndex2(this.entries, function(it2) {
return it2[0] === key;
});
if (~index2)
splice(this.entries, index2, 1);
return !!~index2;
}
};
module2.exports = {
getConstructor: function(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var Constructor = wrapper(function(that, iterable) {
anInstance(that, Prototype);
setInternalState(that, {
type: CONSTRUCTOR_NAME,
id: id++,
frozen: void 0
});
if (iterable != void 0)
iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
});
var Prototype = Constructor.prototype;
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
var define2 = function(that, key, value) {
var state = getInternalState(that);
var data = getWeakData(anObject(key), true);
if (data === true)
uncaughtFrozenStore(state).set(key, value);
else
data[state.id] = value;
return that;
};
redefineAll(Prototype, {
"delete": function(key) {
var state = getInternalState(this);
if (!isObject4(key))
return false;
var data = getWeakData(key);
if (data === true)
return uncaughtFrozenStore(state)["delete"](key);
return data && hasOwn(data, state.id) && delete data[state.id];
},
has: function has(key) {
var state = getInternalState(this);
if (!isObject4(key))
return false;
var data = getWeakData(key);
if (data === true)
return uncaughtFrozenStore(state).has(key);
return data && hasOwn(data, state.id);
}
});
redefineAll(Prototype, IS_MAP ? {
get: function get(key) {
var state = getInternalState(this);
if (isObject4(key)) {
var data = getWeakData(key);
if (data === true)
return uncaughtFrozenStore(state).get(key);
return data ? data[state.id] : void 0;
}
},
set: function set2(key, value) {
return define2(this, key, value);
}
} : {
add: function add2(value) {
return define2(this, value, true);
}
});
return Constructor;
}
};
}
});
// node_modules/core-js/modules/es.weak-map.js
var require_es_weak_map = __commonJS({
"node_modules/core-js/modules/es.weak-map.js"() {
"use strict";
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var redefineAll = require_redefine_all();
var InternalMetadataModule = require_internal_metadata();
var collection = require_collection();
var collectionWeak = require_collection_weak();
var isObject4 = require_is_object();
var isExtensible = require_object_is_extensible();
var enforceInternalState = require_internal_state().enforce;
var NATIVE_WEAK_MAP = require_native_weak_map();
var IS_IE11 = !global2.ActiveXObject && "ActiveXObject" in global2;
var InternalWeakMap;
var wrapper = function(init2) {
return function WeakMap2() {
return init2(this, arguments.length ? arguments[0] : void 0);
};
};
var $WeakMap = collection("WeakMap", wrapper, collectionWeak);
if (NATIVE_WEAK_MAP && IS_IE11) {
InternalWeakMap = collectionWeak.getConstructor(wrapper, "WeakMap", true);
InternalMetadataModule.enable();
WeakMapPrototype = $WeakMap.prototype;
nativeDelete = uncurryThis(WeakMapPrototype["delete"]);
nativeHas = uncurryThis(WeakMapPrototype.has);
nativeGet = uncurryThis(WeakMapPrototype.get);
nativeSet = uncurryThis(WeakMapPrototype.set);
redefineAll(WeakMapPrototype, {
"delete": function(key) {
if (isObject4(key) && !isExtensible(key)) {
var state = enforceInternalState(this);
if (!state.frozen)
state.frozen = new InternalWeakMap();
return nativeDelete(this, key) || state.frozen["delete"](key);
}
return nativeDelete(this, key);
},
has: function has(key) {
if (isObject4(key) && !isExtensible(key)) {
var state = enforceInternalState(this);
if (!state.frozen)
state.frozen = new InternalWeakMap();
return nativeHas(this, key) || state.frozen.has(key);
}
return nativeHas(this, key);
},
get: function get(key) {
if (isObject4(key) && !isExtensible(key)) {
var state = enforceInternalState(this);
if (!state.frozen)
state.frozen = new InternalWeakMap();
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
}
return nativeGet(this, key);
},
set: function set2(key, value) {
if (isObject4(key) && !isExtensible(key)) {
var state = enforceInternalState(this);
if (!state.frozen)
state.frozen = new InternalWeakMap();
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
} else
nativeSet(this, key, value);
return this;
}
});
}
var WeakMapPrototype;
var nativeDelete;
var nativeHas;
var nativeGet;
var nativeSet;
}
});
// node_modules/core-js/modules/es.weak-set.js
var require_es_weak_set = __commonJS({
"node_modules/core-js/modules/es.weak-set.js"() {
"use strict";
var collection = require_collection();
var collectionWeak = require_collection_weak();
collection("WeakSet", function(init2) {
return function WeakSet2() {
return init2(this, arguments.length ? arguments[0] : void 0);
};
}, collectionWeak);
}
});
// node_modules/core-js/internals/base64-map.js
var require_base64_map = __commonJS({
"node_modules/core-js/internals/base64-map.js"(exports2, module2) {
var itoc = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var ctoi = {};
for (index2 = 0; index2 < 66; index2++)
ctoi[itoc.charAt(index2)] = index2;
var index2;
module2.exports = {
itoc,
ctoi
};
}
});
// node_modules/core-js/modules/web.atob.js
var require_web_atob = __commonJS({
"node_modules/core-js/modules/web.atob.js"() {
var $3 = require_export();
var getBuiltIn = require_get_built_in();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var toString = require_to_string();
var hasOwn = require_has_own_property();
var validateArgumentsLength = require_validate_arguments_length();
var ctoi = require_base64_map().ctoi;
var disallowed = /[^\d+/a-z]/i;
var whitespaces = /[\t\n\f\r ]+/g;
var finalEq = /[=]+$/;
var $atob = getBuiltIn("atob");
var fromCharCode = String.fromCharCode;
var charAt = uncurryThis("".charAt);
var replace = uncurryThis("".replace);
var exec = uncurryThis(disallowed.exec);
var NO_SPACES_IGNORE = fails(function() {
return atob(" ") !== "";
});
var NO_ARG_RECEIVING_CHECK = !NO_SPACES_IGNORE && !fails(function() {
$atob();
});
$3({ global: true, enumerable: true, forced: NO_SPACES_IGNORE || NO_ARG_RECEIVING_CHECK }, {
atob: function atob2(data) {
validateArgumentsLength(arguments.length, 1);
if (NO_ARG_RECEIVING_CHECK)
return $atob(data);
var string = replace(toString(data), whitespaces, "");
var output = "";
var position = 0;
var bc = 0;
var chr, bs;
if (string.length % 4 == 0) {
string = replace(string, finalEq, "");
}
if (string.length % 4 == 1 || exec(disallowed, string)) {
throw new (getBuiltIn("DOMException"))("The string is not correctly encoded", "InvalidCharacterError");
}
while (chr = charAt(string, position++)) {
if (hasOwn(ctoi, chr)) {
bs = bc % 4 ? bs * 64 + ctoi[chr] : ctoi[chr];
if (bc++ % 4)
output += fromCharCode(255 & bs >> (-2 * bc & 6));
}
}
return output;
}
});
}
});
// node_modules/core-js/modules/web.btoa.js
var require_web_btoa = __commonJS({
"node_modules/core-js/modules/web.btoa.js"() {
var $3 = require_export();
var getBuiltIn = require_get_built_in();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var toString = require_to_string();
var validateArgumentsLength = require_validate_arguments_length();
var itoc = require_base64_map().itoc;
var $btoa = getBuiltIn("btoa");
var charAt = uncurryThis("".charAt);
var charCodeAt = uncurryThis("".charCodeAt);
var NO_ARG_RECEIVING_CHECK = !!$btoa && !fails(function() {
$btoa();
});
$3({ global: true, enumerable: true, forced: NO_ARG_RECEIVING_CHECK }, {
btoa: function btoa2(data) {
validateArgumentsLength(arguments.length, 1);
if (NO_ARG_RECEIVING_CHECK)
return $btoa(data);
var string = toString(data);
var output = "";
var position = 0;
var map3 = itoc;
var block, charCode;
while (charAt(string, position) || (map3 = "=", position % 1)) {
charCode = charCodeAt(string, position += 3 / 4);
if (charCode > 255) {
throw new (getBuiltIn("DOMException"))("The string contains characters outside of the Latin1 range", "InvalidCharacterError");
}
block = block << 8 | charCode;
output += charAt(map3, 63 & block >> 8 - position % 1 * 8);
}
return output;
}
});
}
});
// node_modules/core-js/internals/dom-iterables.js
var require_dom_iterables = __commonJS({
"node_modules/core-js/internals/dom-iterables.js"(exports2, module2) {
module2.exports = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0
};
}
});
// node_modules/core-js/internals/dom-token-list-prototype.js
var require_dom_token_list_prototype = __commonJS({
"node_modules/core-js/internals/dom-token-list-prototype.js"(exports2, module2) {
var documentCreateElement = require_document_create_element();
var classList = documentCreateElement("span").classList;
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
module2.exports = DOMTokenListPrototype === Object.prototype ? void 0 : DOMTokenListPrototype;
}
});
// node_modules/core-js/modules/web.dom-collections.for-each.js
var require_web_dom_collections_for_each = __commonJS({
"node_modules/core-js/modules/web.dom-collections.for-each.js"() {
var global2 = require_global();
var DOMIterables = require_dom_iterables();
var DOMTokenListPrototype = require_dom_token_list_prototype();
var forEach = require_array_for_each();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var handlePrototype = function(CollectionPrototype) {
if (CollectionPrototype && CollectionPrototype.forEach !== forEach)
try {
createNonEnumerableProperty(CollectionPrototype, "forEach", forEach);
} catch (error2) {
CollectionPrototype.forEach = forEach;
}
};
for (COLLECTION_NAME in DOMIterables) {
if (DOMIterables[COLLECTION_NAME]) {
handlePrototype(global2[COLLECTION_NAME] && global2[COLLECTION_NAME].prototype);
}
}
var COLLECTION_NAME;
handlePrototype(DOMTokenListPrototype);
}
});
// node_modules/core-js/modules/web.dom-collections.iterator.js
var require_web_dom_collections_iterator = __commonJS({
"node_modules/core-js/modules/web.dom-collections.iterator.js"() {
var global2 = require_global();
var DOMIterables = require_dom_iterables();
var DOMTokenListPrototype = require_dom_token_list_prototype();
var ArrayIteratorMethods = require_es_array_iterator();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var wellKnownSymbol = require_well_known_symbol();
var ITERATOR = wellKnownSymbol("iterator");
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var ArrayValues = ArrayIteratorMethods.values;
var handlePrototype = function(CollectionPrototype, COLLECTION_NAME2) {
if (CollectionPrototype) {
if (CollectionPrototype[ITERATOR] !== ArrayValues)
try {
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
} catch (error2) {
CollectionPrototype[ITERATOR] = ArrayValues;
}
if (!CollectionPrototype[TO_STRING_TAG]) {
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME2);
}
if (DOMIterables[COLLECTION_NAME2])
for (var METHOD_NAME in ArrayIteratorMethods) {
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME])
try {
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
} catch (error2) {
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
}
}
}
};
for (COLLECTION_NAME in DOMIterables) {
handlePrototype(global2[COLLECTION_NAME] && global2[COLLECTION_NAME].prototype, COLLECTION_NAME);
}
var COLLECTION_NAME;
handlePrototype(DOMTokenListPrototype, "DOMTokenList");
}
});
// node_modules/core-js/internals/try-node-require.js
var require_try_node_require = __commonJS({
"node_modules/core-js/internals/try-node-require.js"(exports2, module2) {
var IS_NODE = require_engine_is_node();
module2.exports = function(name) {
try {
if (IS_NODE)
return Function('return require("' + name + '")')();
} catch (error2) {
}
};
}
});
// node_modules/core-js/internals/dom-exception-constants.js
var require_dom_exception_constants = __commonJS({
"node_modules/core-js/internals/dom-exception-constants.js"(exports2, module2) {
module2.exports = {
IndexSizeError: { s: "INDEX_SIZE_ERR", c: 1, m: 1 },
DOMStringSizeError: { s: "DOMSTRING_SIZE_ERR", c: 2, m: 0 },
HierarchyRequestError: { s: "HIERARCHY_REQUEST_ERR", c: 3, m: 1 },
WrongDocumentError: { s: "WRONG_DOCUMENT_ERR", c: 4, m: 1 },
InvalidCharacterError: { s: "INVALID_CHARACTER_ERR", c: 5, m: 1 },
NoDataAllowedError: { s: "NO_DATA_ALLOWED_ERR", c: 6, m: 0 },
NoModificationAllowedError: { s: "NO_MODIFICATION_ALLOWED_ERR", c: 7, m: 1 },
NotFoundError: { s: "NOT_FOUND_ERR", c: 8, m: 1 },
NotSupportedError: { s: "NOT_SUPPORTED_ERR", c: 9, m: 1 },
InUseAttributeError: { s: "INUSE_ATTRIBUTE_ERR", c: 10, m: 1 },
InvalidStateError: { s: "INVALID_STATE_ERR", c: 11, m: 1 },
SyntaxError: { s: "SYNTAX_ERR", c: 12, m: 1 },
InvalidModificationError: { s: "INVALID_MODIFICATION_ERR", c: 13, m: 1 },
NamespaceError: { s: "NAMESPACE_ERR", c: 14, m: 1 },
InvalidAccessError: { s: "INVALID_ACCESS_ERR", c: 15, m: 1 },
ValidationError: { s: "VALIDATION_ERR", c: 16, m: 0 },
TypeMismatchError: { s: "TYPE_MISMATCH_ERR", c: 17, m: 1 },
SecurityError: { s: "SECURITY_ERR", c: 18, m: 1 },
NetworkError: { s: "NETWORK_ERR", c: 19, m: 1 },
AbortError: { s: "ABORT_ERR", c: 20, m: 1 },
URLMismatchError: { s: "URL_MISMATCH_ERR", c: 21, m: 1 },
QuotaExceededError: { s: "QUOTA_EXCEEDED_ERR", c: 22, m: 1 },
TimeoutError: { s: "TIMEOUT_ERR", c: 23, m: 1 },
InvalidNodeTypeError: { s: "INVALID_NODE_TYPE_ERR", c: 24, m: 1 },
DataCloneError: { s: "DATA_CLONE_ERR", c: 25, m: 1 }
};
}
});
// node_modules/core-js/modules/web.dom-exception.constructor.js
var require_web_dom_exception_constructor = __commonJS({
"node_modules/core-js/modules/web.dom-exception.constructor.js"() {
"use strict";
var $3 = require_export();
var tryNodeRequire = require_try_node_require();
var getBuiltIn = require_get_built_in();
var fails = require_fails();
var create = require_object_create();
var createPropertyDescriptor = require_create_property_descriptor();
var defineProperty = require_object_define_property().f;
var defineProperties = require_object_define_properties().f;
var redefine = require_redefine();
var hasOwn = require_has_own_property();
var anInstance = require_an_instance();
var anObject = require_an_object();
var errorToString = require_error_to_string();
var normalizeStringArgument = require_normalize_string_argument();
var DOMExceptionConstants = require_dom_exception_constants();
var clearErrorStack = require_clear_error_stack();
var InternalStateModule = require_internal_state();
var DESCRIPTORS = require_descriptors();
var IS_PURE = require_is_pure();
var DOM_EXCEPTION = "DOMException";
var DATA_CLONE_ERR = "DATA_CLONE_ERR";
var Error2 = getBuiltIn("Error");
var NativeDOMException = getBuiltIn(DOM_EXCEPTION) || function() {
try {
var MessageChannel2 = getBuiltIn("MessageChannel") || tryNodeRequire("worker_threads").MessageChannel;
new MessageChannel2().port1.postMessage(/* @__PURE__ */ new WeakMap());
} catch (error2) {
if (error2.name == DATA_CLONE_ERR && error2.code == 25)
return error2.constructor;
}
}();
var NativeDOMExceptionPrototype = NativeDOMException && NativeDOMException.prototype;
var ErrorPrototype = Error2.prototype;
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(DOM_EXCEPTION);
var HAS_STACK = "stack" in Error2(DOM_EXCEPTION);
var codeFor = function(name) {
return hasOwn(DOMExceptionConstants, name) && DOMExceptionConstants[name].m ? DOMExceptionConstants[name].c : 0;
};
var $DOMException = function DOMException2() {
anInstance(this, DOMExceptionPrototype);
var argumentsLength = arguments.length;
var message = normalizeStringArgument(argumentsLength < 1 ? void 0 : arguments[0]);
var name = normalizeStringArgument(argumentsLength < 2 ? void 0 : arguments[1], "Error");
var code3 = codeFor(name);
setInternalState(this, {
type: DOM_EXCEPTION,
name,
message,
code: code3
});
if (!DESCRIPTORS) {
this.name = name;
this.message = message;
this.code = code3;
}
if (HAS_STACK) {
var error2 = Error2(message);
error2.name = DOM_EXCEPTION;
defineProperty(this, "stack", createPropertyDescriptor(1, clearErrorStack(error2.stack, 1)));
}
};
var DOMExceptionPrototype = $DOMException.prototype = create(ErrorPrototype);
var createGetterDescriptor = function(get) {
return { enumerable: true, configurable: true, get };
};
var getterFor = function(key2) {
return createGetterDescriptor(function() {
return getInternalState(this)[key2];
});
};
if (DESCRIPTORS)
defineProperties(DOMExceptionPrototype, {
name: getterFor("name"),
message: getterFor("message"),
code: getterFor("code")
});
defineProperty(DOMExceptionPrototype, "constructor", createPropertyDescriptor(1, $DOMException));
var INCORRECT_CONSTRUCTOR = fails(function() {
return !(new NativeDOMException() instanceof Error2);
});
var INCORRECT_TO_STRING = INCORRECT_CONSTRUCTOR || fails(function() {
return ErrorPrototype.toString !== errorToString || String(new NativeDOMException(1, 2)) !== "2: 1";
});
var INCORRECT_CODE = INCORRECT_CONSTRUCTOR || fails(function() {
return new NativeDOMException(1, "DataCloneError").code !== 25;
});
var MISSED_CONSTANTS = INCORRECT_CONSTRUCTOR || NativeDOMException[DATA_CLONE_ERR] !== 25 || NativeDOMExceptionPrototype[DATA_CLONE_ERR] !== 25;
var FORCED_CONSTRUCTOR = IS_PURE ? INCORRECT_TO_STRING || INCORRECT_CODE || MISSED_CONSTANTS : INCORRECT_CONSTRUCTOR;
$3({ global: true, forced: FORCED_CONSTRUCTOR }, {
DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
});
var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);
var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;
if (INCORRECT_TO_STRING && (IS_PURE || NativeDOMException === PolyfilledDOMException)) {
redefine(PolyfilledDOMExceptionPrototype, "toString", errorToString);
}
if (INCORRECT_CODE && DESCRIPTORS && NativeDOMException === PolyfilledDOMException) {
defineProperty(PolyfilledDOMExceptionPrototype, "code", createGetterDescriptor(function() {
return codeFor(anObject(this).name);
}));
}
for (key in DOMExceptionConstants)
if (hasOwn(DOMExceptionConstants, key)) {
constant = DOMExceptionConstants[key];
constantName = constant.s;
descriptor = createPropertyDescriptor(6, constant.c);
if (!hasOwn(PolyfilledDOMException, constantName)) {
defineProperty(PolyfilledDOMException, constantName, descriptor);
}
if (!hasOwn(PolyfilledDOMExceptionPrototype, constantName)) {
defineProperty(PolyfilledDOMExceptionPrototype, constantName, descriptor);
}
}
var constant;
var constantName;
var descriptor;
var key;
}
});
// node_modules/core-js/modules/web.dom-exception.stack.js
var require_web_dom_exception_stack = __commonJS({
"node_modules/core-js/modules/web.dom-exception.stack.js"() {
"use strict";
var $3 = require_export();
var getBuiltIn = require_get_built_in();
var createPropertyDescriptor = require_create_property_descriptor();
var defineProperty = require_object_define_property().f;
var hasOwn = require_has_own_property();
var anInstance = require_an_instance();
var inheritIfRequired = require_inherit_if_required();
var normalizeStringArgument = require_normalize_string_argument();
var DOMExceptionConstants = require_dom_exception_constants();
var clearErrorStack = require_clear_error_stack();
var IS_PURE = require_is_pure();
var DOM_EXCEPTION = "DOMException";
var Error2 = getBuiltIn("Error");
var NativeDOMException = getBuiltIn(DOM_EXCEPTION);
var $DOMException = function DOMException2() {
anInstance(this, DOMExceptionPrototype);
var argumentsLength = arguments.length;
var message = normalizeStringArgument(argumentsLength < 1 ? void 0 : arguments[0]);
var name = normalizeStringArgument(argumentsLength < 2 ? void 0 : arguments[1], "Error");
var that = new NativeDOMException(message, name);
var error2 = Error2(message);
error2.name = DOM_EXCEPTION;
defineProperty(that, "stack", createPropertyDescriptor(1, clearErrorStack(error2.stack, 1)));
inheritIfRequired(that, this, $DOMException);
return that;
};
var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;
var ERROR_HAS_STACK = "stack" in Error2(DOM_EXCEPTION);
var DOM_EXCEPTION_HAS_STACK = "stack" in new NativeDOMException(1, 2);
var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !DOM_EXCEPTION_HAS_STACK;
$3({ global: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, {
DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
});
var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);
var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;
if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {
if (!IS_PURE) {
defineProperty(PolyfilledDOMExceptionPrototype, "constructor", createPropertyDescriptor(1, PolyfilledDOMException));
}
for (key in DOMExceptionConstants)
if (hasOwn(DOMExceptionConstants, key)) {
constant = DOMExceptionConstants[key];
constantName = constant.s;
if (!hasOwn(PolyfilledDOMException, constantName)) {
defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));
}
}
}
var constant;
var constantName;
var key;
}
});
// node_modules/core-js/modules/web.dom-exception.to-string-tag.js
var require_web_dom_exception_to_string_tag = __commonJS({
"node_modules/core-js/modules/web.dom-exception.to-string-tag.js"() {
var getBuiltIn = require_get_built_in();
var setToStringTag = require_set_to_string_tag();
var DOM_EXCEPTION = "DOMException";
setToStringTag(getBuiltIn(DOM_EXCEPTION), DOM_EXCEPTION);
}
});
// node_modules/core-js/modules/web.immediate.js
var require_web_immediate = __commonJS({
"node_modules/core-js/modules/web.immediate.js"() {
var $3 = require_export();
var global2 = require_global();
var task = require_task();
var FORCED = !global2.setImmediate || !global2.clearImmediate;
$3({ global: true, bind: true, enumerable: true, forced: FORCED }, {
setImmediate: task.set,
clearImmediate: task.clear
});
}
});
// node_modules/core-js/modules/web.queue-microtask.js
var require_web_queue_microtask = __commonJS({
"node_modules/core-js/modules/web.queue-microtask.js"() {
var $3 = require_export();
var global2 = require_global();
var microtask = require_microtask();
var aCallable = require_a_callable();
var validateArgumentsLength = require_validate_arguments_length();
var IS_NODE = require_engine_is_node();
var process2 = global2.process;
$3({ global: true, enumerable: true, noTargetGet: true }, {
queueMicrotask: function queueMicrotask(fn3) {
validateArgumentsLength(arguments.length, 1);
aCallable(fn3);
var domain = IS_NODE && process2.domain;
microtask(domain ? domain.bind(fn3) : fn3);
}
});
}
});
// node_modules/core-js/modules/web.structured-clone.js
var require_web_structured_clone = __commonJS({
"node_modules/core-js/modules/web.structured-clone.js"() {
var IS_PURE = require_is_pure();
var $3 = require_export();
var global2 = require_global();
var getBuiltin = require_get_built_in();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var uid2 = require_uid();
var isCallable = require_is_callable();
var isConstructor = require_is_constructor();
var isObject4 = require_is_object();
var isSymbol = require_is_symbol();
var iterate = require_iterate();
var anObject = require_an_object();
var classof = require_classof();
var hasOwn = require_has_own_property();
var createProperty = require_create_property();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var lengthOfArrayLike = require_length_of_array_like();
var validateArgumentsLength = require_validate_arguments_length();
var regExpFlags = require_regexp_flags();
var ERROR_STACK_INSTALLABLE = require_error_stack_installable();
var Object2 = global2.Object;
var Date2 = global2.Date;
var Error2 = global2.Error;
var EvalError = global2.EvalError;
var RangeError2 = global2.RangeError;
var ReferenceError2 = global2.ReferenceError;
var SyntaxError = global2.SyntaxError;
var TypeError2 = global2.TypeError;
var URIError = global2.URIError;
var PerformanceMark = global2.PerformanceMark;
var WebAssembly = global2.WebAssembly;
var CompileError = WebAssembly && WebAssembly.CompileError || Error2;
var LinkError = WebAssembly && WebAssembly.LinkError || Error2;
var RuntimeError = WebAssembly && WebAssembly.RuntimeError || Error2;
var DOMException2 = getBuiltin("DOMException");
var Set2 = getBuiltin("Set");
var Map2 = getBuiltin("Map");
var MapPrototype = Map2.prototype;
var mapHas = uncurryThis(MapPrototype.has);
var mapGet = uncurryThis(MapPrototype.get);
var mapSet = uncurryThis(MapPrototype.set);
var setAdd = uncurryThis(Set2.prototype.add);
var objectKeys = getBuiltin("Object", "keys");
var push = uncurryThis([].push);
var booleanValueOf = uncurryThis(true.valueOf);
var numberValueOf = uncurryThis(1 .valueOf);
var stringValueOf = uncurryThis("".valueOf);
var getFlags = uncurryThis(regExpFlags);
var getTime = uncurryThis(Date2.prototype.getTime);
var PERFORMANCE_MARK = uid2("structuredClone");
var DATA_CLONE_ERROR = "DataCloneError";
var TRANSFERRING = "Transferring";
var checkBasicSemantic = function(structuredCloneImplementation) {
return !fails(function() {
var set1 = new global2.Set([7]);
var set2 = structuredCloneImplementation(set1);
var number = structuredCloneImplementation(Object2(7));
return set2 == set1 || !set2.has(7) || typeof number != "object" || number != 7;
}) && structuredCloneImplementation;
};
var checkNewErrorsSemantic = function(structuredCloneImplementation) {
return !fails(function() {
var test = structuredCloneImplementation(new global2.AggregateError([1], PERFORMANCE_MARK, { cause: 3 }));
return test.name != "AggregateError" || test.errors[0] != 1 || test.message != PERFORMANCE_MARK || test.cause != 3;
}) && structuredCloneImplementation;
};
var nativeStructuredClone = global2.structuredClone;
var FORCED_REPLACEMENT = IS_PURE || !checkNewErrorsSemantic(nativeStructuredClone);
var structuredCloneFromMark = !nativeStructuredClone && checkBasicSemantic(function(value) {
return new PerformanceMark(PERFORMANCE_MARK, { detail: value }).detail;
});
var nativeRestrictedStructuredClone = checkBasicSemantic(nativeStructuredClone) || structuredCloneFromMark;
var throwUncloneable = function(type) {
throw new DOMException2("Uncloneable type: " + type, DATA_CLONE_ERROR);
};
var throwUnpolyfillable = function(type, kind) {
throw new DOMException2((kind || "Cloning") + " of " + type + " cannot be properly polyfilled in this engine", DATA_CLONE_ERROR);
};
var structuredCloneInternal = function(value, map3) {
if (isSymbol(value))
throwUncloneable("Symbol");
if (!isObject4(value))
return value;
if (map3) {
if (mapHas(map3, value))
return mapGet(map3, value);
} else
map3 = new Map2();
var type = classof(value);
var deep = false;
var C3, name, cloned, dataTransfer, i4, length, keys, key, source, target;
switch (type) {
case "Array":
cloned = [];
deep = true;
break;
case "Object":
cloned = {};
deep = true;
break;
case "Map":
cloned = new Map2();
deep = true;
break;
case "Set":
cloned = new Set2();
deep = true;
break;
case "RegExp":
cloned = new RegExp(value.source, "flags" in value ? value.flags : getFlags(value));
break;
case "Error":
name = value.name;
switch (name) {
case "AggregateError":
cloned = getBuiltin("AggregateError")([]);
break;
case "EvalError":
cloned = EvalError();
break;
case "RangeError":
cloned = RangeError2();
break;
case "ReferenceError":
cloned = ReferenceError2();
break;
case "SyntaxError":
cloned = SyntaxError();
break;
case "TypeError":
cloned = TypeError2();
break;
case "URIError":
cloned = URIError();
break;
case "CompileError":
cloned = CompileError();
break;
case "LinkError":
cloned = LinkError();
break;
case "RuntimeError":
cloned = RuntimeError();
break;
default:
cloned = Error2();
}
deep = true;
break;
case "DOMException":
cloned = new DOMException2(value.message, value.name);
deep = true;
break;
case "DataView":
case "Int8Array":
case "Uint8Array":
case "Uint8ClampedArray":
case "Int16Array":
case "Uint16Array":
case "Int32Array":
case "Uint32Array":
case "Float32Array":
case "Float64Array":
case "BigInt64Array":
case "BigUint64Array":
C3 = global2[type];
if (!isObject4(C3))
throwUnpolyfillable(type);
cloned = new C3(structuredCloneInternal(value.buffer, map3), value.byteOffset, type === "DataView" ? value.byteLength : value.length);
break;
case "DOMQuad":
try {
cloned = new DOMQuad(structuredCloneInternal(value.p1, map3), structuredCloneInternal(value.p2, map3), structuredCloneInternal(value.p3, map3), structuredCloneInternal(value.p4, map3));
} catch (error2) {
if (nativeRestrictedStructuredClone) {
cloned = nativeRestrictedStructuredClone(value);
} else
throwUnpolyfillable(type);
}
break;
case "FileList":
C3 = global2.DataTransfer;
if (isConstructor(C3)) {
dataTransfer = new C3();
for (i4 = 0, length = lengthOfArrayLike(value); i4 < length; i4++) {
dataTransfer.items.add(structuredCloneInternal(value[i4], map3));
}
cloned = dataTransfer.files;
} else if (nativeRestrictedStructuredClone) {
cloned = nativeRestrictedStructuredClone(value);
} else
throwUnpolyfillable(type);
break;
case "ImageData":
try {
cloned = new ImageData(structuredCloneInternal(value.data, map3), value.width, value.height, { colorSpace: value.colorSpace });
} catch (error2) {
if (nativeRestrictedStructuredClone) {
cloned = nativeRestrictedStructuredClone(value);
} else
throwUnpolyfillable(type);
}
break;
default:
if (nativeRestrictedStructuredClone) {
cloned = nativeRestrictedStructuredClone(value);
} else
switch (type) {
case "BigInt":
cloned = Object2(value.valueOf());
break;
case "Boolean":
cloned = Object2(booleanValueOf(value));
break;
case "Number":
cloned = Object2(numberValueOf(value));
break;
case "String":
cloned = Object2(stringValueOf(value));
break;
case "Date":
cloned = new Date2(getTime(value));
break;
case "ArrayBuffer":
C3 = global2.DataView;
if (!C3 && typeof value.slice != "function")
throwUnpolyfillable(type);
try {
if (typeof value.slice == "function") {
cloned = value.slice(0);
} else {
length = value.byteLength;
cloned = new ArrayBuffer(length);
source = new C3(value);
target = new C3(cloned);
for (i4 = 0; i4 < length; i4++) {
target.setUint8(i4, source.getUint8(i4));
}
}
} catch (error2) {
throw new DOMException2("ArrayBuffer is detached", DATA_CLONE_ERROR);
}
break;
case "SharedArrayBuffer":
cloned = value;
break;
case "Blob":
try {
cloned = value.slice(0, value.size, value.type);
} catch (error2) {
throwUnpolyfillable(type);
}
break;
case "DOMPoint":
case "DOMPointReadOnly":
C3 = global2[type];
try {
cloned = C3.fromPoint ? C3.fromPoint(value) : new C3(value.x, value.y, value.z, value.w);
} catch (error2) {
throwUnpolyfillable(type);
}
break;
case "DOMRect":
case "DOMRectReadOnly":
C3 = global2[type];
try {
cloned = C3.fromRect ? C3.fromRect(value) : new C3(value.x, value.y, value.width, value.height);
} catch (error2) {
throwUnpolyfillable(type);
}
break;
case "DOMMatrix":
case "DOMMatrixReadOnly":
C3 = global2[type];
try {
cloned = C3.fromMatrix ? C3.fromMatrix(value) : new C3(value);
} catch (error2) {
throwUnpolyfillable(type);
}
break;
case "AudioData":
case "VideoFrame":
if (!isCallable(value.clone))
throwUnpolyfillable(type);
try {
cloned = value.clone();
} catch (error2) {
throwUncloneable(type);
}
break;
case "File":
try {
cloned = new File([value], value.name, value);
} catch (error2) {
throwUnpolyfillable(type);
}
break;
case "CryptoKey":
case "GPUCompilationMessage":
case "GPUCompilationInfo":
case "ImageBitmap":
case "RTCCertificate":
case "WebAssembly.Module":
throwUnpolyfillable(type);
default:
throwUncloneable(type);
}
}
mapSet(map3, value, cloned);
if (deep)
switch (type) {
case "Array":
case "Object":
keys = objectKeys(value);
for (i4 = 0, length = lengthOfArrayLike(keys); i4 < length; i4++) {
key = keys[i4];
createProperty(cloned, key, structuredCloneInternal(value[key], map3));
}
break;
case "Map":
value.forEach(function(v3, k3) {
mapSet(cloned, structuredCloneInternal(k3, map3), structuredCloneInternal(v3, map3));
});
break;
case "Set":
value.forEach(function(v3) {
setAdd(cloned, structuredCloneInternal(v3, map3));
});
break;
case "Error":
createNonEnumerableProperty(cloned, "message", structuredCloneInternal(value.message, map3));
if (hasOwn(value, "cause")) {
createNonEnumerableProperty(cloned, "cause", structuredCloneInternal(value.cause, map3));
}
if (name == "AggregateError") {
cloned.errors = structuredCloneInternal(value.errors, map3);
}
case "DOMException":
if (ERROR_STACK_INSTALLABLE) {
createNonEnumerableProperty(cloned, "stack", structuredCloneInternal(value.stack, map3));
}
}
return cloned;
};
var PROPER_TRANSFER = nativeStructuredClone && !fails(function() {
var buffer = new ArrayBuffer(8);
var clone2 = nativeStructuredClone(buffer, { transfer: [buffer] });
return buffer.byteLength != 0 || clone2.byteLength != 8;
});
var tryToTransfer = function(rawTransfer, map3) {
if (!isObject4(rawTransfer))
throw TypeError2("Transfer option cannot be converted to a sequence");
var transfer = [];
iterate(rawTransfer, function(value2) {
push(transfer, anObject(value2));
});
var i4 = 0;
var length = lengthOfArrayLike(transfer);
var value, type, C3, transferredArray, transferred, canvas, context;
if (PROPER_TRANSFER) {
transferredArray = nativeStructuredClone(transfer, { transfer });
while (i4 < length)
mapSet(map3, transfer[i4], transferredArray[i4++]);
} else
while (i4 < length) {
value = transfer[i4++];
if (mapHas(map3, value))
throw new DOMException2("Duplicate transferable", DATA_CLONE_ERROR);
type = classof(value);
switch (type) {
case "ImageBitmap":
C3 = global2.OffscreenCanvas;
if (!isConstructor(C3))
throwUnpolyfillable(type, TRANSFERRING);
try {
canvas = new C3(value.width, value.height);
context = canvas.getContext("bitmaprenderer");
context.transferFromImageBitmap(value);
transferred = canvas.transferToImageBitmap();
} catch (error2) {
}
break;
case "AudioData":
case "VideoFrame":
if (!isCallable(value.clone) || !isCallable(value.close))
throwUnpolyfillable(type, TRANSFERRING);
try {
transferred = value.clone();
value.close();
} catch (error2) {
}
break;
case "ArrayBuffer":
case "MessagePort":
case "OffscreenCanvas":
case "ReadableStream":
case "TransformStream":
case "WritableStream":
throwUnpolyfillable(type, TRANSFERRING);
}
if (transferred === void 0)
throw new DOMException2("This object cannot be transferred: " + type, DATA_CLONE_ERROR);
mapSet(map3, value, transferred);
}
};
$3({ global: true, enumerable: true, sham: !PROPER_TRANSFER, forced: FORCED_REPLACEMENT }, {
structuredClone: function structuredClone(value) {
var options = validateArgumentsLength(arguments.length, 1) > 1 ? anObject(arguments[1]) : void 0;
var transfer = options ? options.transfer : void 0;
var map3;
if (transfer !== void 0) {
map3 = new Map2();
tryToTransfer(transfer, map3);
}
return structuredCloneInternal(value, map3);
}
});
}
});
// node_modules/core-js/modules/web.timers.js
var require_web_timers = __commonJS({
"node_modules/core-js/modules/web.timers.js"() {
var $3 = require_export();
var global2 = require_global();
var apply = require_function_apply();
var isCallable = require_is_callable();
var userAgent = require_engine_user_agent();
var arraySlice = require_array_slice();
var validateArgumentsLength = require_validate_arguments_length();
var MSIE = /MSIE .\./.test(userAgent);
var Function2 = global2.Function;
var wrap = function(scheduler) {
return function(handler, timeout) {
var boundArgs = validateArgumentsLength(arguments.length, 1) > 2;
var fn3 = isCallable(handler) ? handler : Function2(handler);
var args = boundArgs ? arraySlice(arguments, 2) : void 0;
return scheduler(boundArgs ? function() {
apply(fn3, this, args);
} : fn3, timeout);
};
};
$3({ global: true, bind: true, forced: MSIE }, {
setTimeout: wrap(global2.setTimeout),
setInterval: wrap(global2.setInterval)
});
}
});
// node_modules/core-js/internals/native-url.js
var require_native_url = __commonJS({
"node_modules/core-js/internals/native-url.js"(exports2, module2) {
var fails = require_fails();
var wellKnownSymbol = require_well_known_symbol();
var IS_PURE = require_is_pure();
var ITERATOR = wellKnownSymbol("iterator");
module2.exports = !fails(function() {
var url = new URL("b?a=1&b=2&c=3", "http://a");
var searchParams = url.searchParams;
var result = "";
url.pathname = "c%20d";
searchParams.forEach(function(value, key) {
searchParams["delete"]("b");
result += key + value;
});
return IS_PURE && !url.toJSON || !searchParams.sort || url.href !== "http://a/c%20d?a=1&c=3" || searchParams.get("c") !== "3" || String(new URLSearchParams("?a=1")) !== "a=1" || !searchParams[ITERATOR] || new URL("https://a@b").username !== "a" || new URLSearchParams(new URLSearchParams("a=b")).get("a") !== "b" || new URL("http://\u0442\u0435\u0441\u0442").host !== "xn--e1aybc" || new URL("http://a#\u0431").hash !== "#%D0%B1" || result !== "a1c3" || new URL("http://x", void 0).host !== "x";
});
}
});
// node_modules/core-js/internals/string-punycode-to-ascii.js
var require_string_punycode_to_ascii = __commonJS({
"node_modules/core-js/internals/string-punycode-to-ascii.js"(exports2, module2) {
"use strict";
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var maxInt = 2147483647;
var base = 36;
var tMin = 1;
var tMax = 26;
var skew = 38;
var damp = 700;
var initialBias = 72;
var initialN = 128;
var delimiter = "-";
var regexNonASCII = /[^\0-\u007E]/;
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g;
var OVERFLOW_ERROR = "Overflow: input needs wider integers to process";
var baseMinusTMin = base - tMin;
var RangeError2 = global2.RangeError;
var exec = uncurryThis(regexSeparators.exec);
var floor = Math.floor;
var fromCharCode = String.fromCharCode;
var charCodeAt = uncurryThis("".charCodeAt);
var join = uncurryThis([].join);
var push = uncurryThis([].push);
var replace = uncurryThis("".replace);
var split = uncurryThis("".split);
var toLowerCase = uncurryThis("".toLowerCase);
var ucs2decode = function(string) {
var output = [];
var counter = 0;
var length = string.length;
while (counter < length) {
var value = charCodeAt(string, counter++);
if (value >= 55296 && value <= 56319 && counter < length) {
var extra = charCodeAt(string, counter++);
if ((extra & 64512) == 56320) {
push(output, ((value & 1023) << 10) + (extra & 1023) + 65536);
} else {
push(output, value);
counter--;
}
} else {
push(output, value);
}
}
return output;
};
var digitToBasic = function(digit) {
return digit + 22 + 75 * (digit < 26);
};
var adapt = function(delta, numPoints, firstTime) {
var k3 = 0;
delta = firstTime ? floor(delta / damp) : delta >> 1;
delta += floor(delta / numPoints);
while (delta > baseMinusTMin * tMax >> 1) {
delta = floor(delta / baseMinusTMin);
k3 += base;
}
return floor(k3 + (baseMinusTMin + 1) * delta / (delta + skew));
};
var encode = function(input) {
var output = [];
input = ucs2decode(input);
var inputLength = input.length;
var n4 = initialN;
var delta = 0;
var bias = initialBias;
var i4, currentValue;
for (i4 = 0; i4 < input.length; i4++) {
currentValue = input[i4];
if (currentValue < 128) {
push(output, fromCharCode(currentValue));
}
}
var basicLength = output.length;
var handledCPCount = basicLength;
if (basicLength) {
push(output, delimiter);
}
while (handledCPCount < inputLength) {
var m3 = maxInt;
for (i4 = 0; i4 < input.length; i4++) {
currentValue = input[i4];
if (currentValue >= n4 && currentValue < m3) {
m3 = currentValue;
}
}
var handledCPCountPlusOne = handledCPCount + 1;
if (m3 - n4 > floor((maxInt - delta) / handledCPCountPlusOne)) {
throw RangeError2(OVERFLOW_ERROR);
}
delta += (m3 - n4) * handledCPCountPlusOne;
n4 = m3;
for (i4 = 0; i4 < input.length; i4++) {
currentValue = input[i4];
if (currentValue < n4 && ++delta > maxInt) {
throw RangeError2(OVERFLOW_ERROR);
}
if (currentValue == n4) {
var q2 = delta;
var k3 = base;
while (true) {
var t3 = k3 <= bias ? tMin : k3 >= bias + tMax ? tMax : k3 - bias;
if (q2 < t3)
break;
var qMinusT = q2 - t3;
var baseMinusT = base - t3;
push(output, fromCharCode(digitToBasic(t3 + qMinusT % baseMinusT)));
q2 = floor(qMinusT / baseMinusT);
k3 += base;
}
push(output, fromCharCode(digitToBasic(q2)));
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
delta = 0;
handledCPCount++;
}
}
delta++;
n4++;
}
return join(output, "");
};
module2.exports = function(input) {
var encoded = [];
var labels = split(replace(toLowerCase(input), regexSeparators, "."), ".");
var i4, label;
for (i4 = 0; i4 < labels.length; i4++) {
label = labels[i4];
push(encoded, exec(regexNonASCII, label) ? "xn--" + encode(label) : label);
}
return join(encoded, ".");
};
}
});
// node_modules/core-js/modules/web.url-search-params.js
var require_web_url_search_params = __commonJS({
"node_modules/core-js/modules/web.url-search-params.js"(exports2, module2) {
"use strict";
require_es_array_iterator();
var $3 = require_export();
var global2 = require_global();
var getBuiltIn = require_get_built_in();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var USE_NATIVE_URL = require_native_url();
var redefine = require_redefine();
var redefineAll = require_redefine_all();
var setToStringTag = require_set_to_string_tag();
var createIteratorConstructor = require_create_iterator_constructor();
var InternalStateModule = require_internal_state();
var anInstance = require_an_instance();
var isCallable = require_is_callable();
var hasOwn = require_has_own_property();
var bind2 = require_function_bind_context();
var classof = require_classof();
var anObject = require_an_object();
var isObject4 = require_is_object();
var $toString = require_to_string();
var create = require_object_create();
var createPropertyDescriptor = require_create_property_descriptor();
var getIterator = require_get_iterator();
var getIteratorMethod = require_get_iterator_method();
var validateArgumentsLength = require_validate_arguments_length();
var wellKnownSymbol = require_well_known_symbol();
var arraySort = require_array_sort();
var ITERATOR = wellKnownSymbol("iterator");
var URL_SEARCH_PARAMS = "URLSearchParams";
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + "Iterator";
var setInternalState = InternalStateModule.set;
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
var n$Fetch = getBuiltIn("fetch");
var N$Request = getBuiltIn("Request");
var Headers = getBuiltIn("Headers");
var RequestPrototype = N$Request && N$Request.prototype;
var HeadersPrototype = Headers && Headers.prototype;
var RegExp2 = global2.RegExp;
var TypeError2 = global2.TypeError;
var decodeURIComponent2 = global2.decodeURIComponent;
var encodeURIComponent2 = global2.encodeURIComponent;
var charAt = uncurryThis("".charAt);
var join = uncurryThis([].join);
var push = uncurryThis([].push);
var replace = uncurryThis("".replace);
var shift = uncurryThis([].shift);
var splice = uncurryThis([].splice);
var split = uncurryThis("".split);
var stringSlice = uncurryThis("".slice);
var plus = /\+/g;
var sequences = Array(4);
var percentSequence = function(bytes) {
return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp2("((?:%[\\da-f]{2}){" + bytes + "})", "gi"));
};
var percentDecode = function(sequence) {
try {
return decodeURIComponent2(sequence);
} catch (error2) {
return sequence;
}
};
var deserialize = function(it2) {
var result = replace(it2, plus, " ");
var bytes = 4;
try {
return decodeURIComponent2(result);
} catch (error2) {
while (bytes) {
result = replace(result, percentSequence(bytes--), percentDecode);
}
return result;
}
};
var find = /[!'()~]|%20/g;
var replacements = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+"
};
var replacer = function(match2) {
return replacements[match2];
};
var serialize = function(it2) {
return replace(encodeURIComponent2(it2), find, replacer);
};
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
setInternalState(this, {
type: URL_SEARCH_PARAMS_ITERATOR,
iterator: getIterator(getInternalParamsState(params).entries),
kind
});
}, "Iterator", function next() {
var state = getInternalIteratorState(this);
var kind = state.kind;
var step = state.iterator.next();
var entry = step.value;
if (!step.done) {
step.value = kind === "keys" ? entry.key : kind === "values" ? entry.value : [entry.key, entry.value];
}
return step;
}, true);
var URLSearchParamsState = function(init2) {
this.entries = [];
this.url = null;
if (init2 !== void 0) {
if (isObject4(init2))
this.parseObject(init2);
else
this.parseQuery(typeof init2 == "string" ? charAt(init2, 0) === "?" ? stringSlice(init2, 1) : init2 : $toString(init2));
}
};
URLSearchParamsState.prototype = {
type: URL_SEARCH_PARAMS,
bindURL: function(url) {
this.url = url;
this.update();
},
parseObject: function(object) {
var iteratorMethod = getIteratorMethod(object);
var iterator, next, step, entryIterator, entryNext, first, second;
if (iteratorMethod) {
iterator = getIterator(object, iteratorMethod);
next = iterator.next;
while (!(step = call(next, iterator)).done) {
entryIterator = getIterator(anObject(step.value));
entryNext = entryIterator.next;
if ((first = call(entryNext, entryIterator)).done || (second = call(entryNext, entryIterator)).done || !call(entryNext, entryIterator).done)
throw TypeError2("Expected sequence with length 2");
push(this.entries, { key: $toString(first.value), value: $toString(second.value) });
}
} else
for (var key in object)
if (hasOwn(object, key)) {
push(this.entries, { key, value: $toString(object[key]) });
}
},
parseQuery: function(query) {
if (query) {
var attributes = split(query, "&");
var index2 = 0;
var attribute, entry;
while (index2 < attributes.length) {
attribute = attributes[index2++];
if (attribute.length) {
entry = split(attribute, "=");
push(this.entries, {
key: deserialize(shift(entry)),
value: deserialize(join(entry, "="))
});
}
}
}
},
serialize: function() {
var entries = this.entries;
var result = [];
var index2 = 0;
var entry;
while (index2 < entries.length) {
entry = entries[index2++];
push(result, serialize(entry.key) + "=" + serialize(entry.value));
}
return join(result, "&");
},
update: function() {
this.entries.length = 0;
this.parseQuery(this.url.query);
},
updateURL: function() {
if (this.url)
this.url.update();
}
};
var URLSearchParamsConstructor = function URLSearchParams2() {
anInstance(this, URLSearchParamsPrototype);
var init2 = arguments.length > 0 ? arguments[0] : void 0;
setInternalState(this, new URLSearchParamsState(init2));
};
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
redefineAll(URLSearchParamsPrototype, {
append: function append(name, value) {
validateArgumentsLength(arguments.length, 2);
var state = getInternalParamsState(this);
push(state.entries, { key: $toString(name), value: $toString(value) });
state.updateURL();
},
"delete": function(name) {
validateArgumentsLength(arguments.length, 1);
var state = getInternalParamsState(this);
var entries = state.entries;
var key = $toString(name);
var index2 = 0;
while (index2 < entries.length) {
if (entries[index2].key === key)
splice(entries, index2, 1);
else
index2++;
}
state.updateURL();
},
get: function get(name) {
validateArgumentsLength(arguments.length, 1);
var entries = getInternalParamsState(this).entries;
var key = $toString(name);
var index2 = 0;
for (; index2 < entries.length; index2++) {
if (entries[index2].key === key)
return entries[index2].value;
}
return null;
},
getAll: function getAll(name) {
validateArgumentsLength(arguments.length, 1);
var entries = getInternalParamsState(this).entries;
var key = $toString(name);
var result = [];
var index2 = 0;
for (; index2 < entries.length; index2++) {
if (entries[index2].key === key)
push(result, entries[index2].value);
}
return result;
},
has: function has(name) {
validateArgumentsLength(arguments.length, 1);
var entries = getInternalParamsState(this).entries;
var key = $toString(name);
var index2 = 0;
while (index2 < entries.length) {
if (entries[index2++].key === key)
return true;
}
return false;
},
set: function set2(name, value) {
validateArgumentsLength(arguments.length, 1);
var state = getInternalParamsState(this);
var entries = state.entries;
var found = false;
var key = $toString(name);
var val = $toString(value);
var index2 = 0;
var entry;
for (; index2 < entries.length; index2++) {
entry = entries[index2];
if (entry.key === key) {
if (found)
splice(entries, index2--, 1);
else {
found = true;
entry.value = val;
}
}
}
if (!found)
push(entries, { key, value: val });
state.updateURL();
},
sort: function sort() {
var state = getInternalParamsState(this);
arraySort(state.entries, function(a4, b3) {
return a4.key > b3.key ? 1 : -1;
});
state.updateURL();
},
forEach: function forEach(callback2) {
var entries = getInternalParamsState(this).entries;
var boundFunction = bind2(callback2, arguments.length > 1 ? arguments[1] : void 0);
var index2 = 0;
var entry;
while (index2 < entries.length) {
entry = entries[index2++];
boundFunction(entry.value, entry.key, this);
}
},
keys: function keys() {
return new URLSearchParamsIterator(this, "keys");
},
values: function values() {
return new URLSearchParamsIterator(this, "values");
},
entries: function entries() {
return new URLSearchParamsIterator(this, "entries");
}
}, { enumerable: true });
redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: "entries" });
redefine(URLSearchParamsPrototype, "toString", function toString() {
return getInternalParamsState(this).serialize();
}, { enumerable: true });
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
$3({ global: true, forced: !USE_NATIVE_URL }, {
URLSearchParams: URLSearchParamsConstructor
});
if (!USE_NATIVE_URL && isCallable(Headers)) {
headersHas = uncurryThis(HeadersPrototype.has);
headersSet = uncurryThis(HeadersPrototype.set);
wrapRequestOptions = function(init2) {
if (isObject4(init2)) {
var body = init2.body;
var headers;
if (classof(body) === URL_SEARCH_PARAMS) {
headers = init2.headers ? new Headers(init2.headers) : new Headers();
if (!headersHas(headers, "content-type")) {
headersSet(headers, "content-type", "application/x-www-form-urlencoded;charset=UTF-8");
}
return create(init2, {
body: createPropertyDescriptor(0, $toString(body)),
headers: createPropertyDescriptor(0, headers)
});
}
}
return init2;
};
if (isCallable(n$Fetch)) {
$3({ global: true, enumerable: true, forced: true }, {
fetch: function fetch3(input) {
return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
}
});
}
if (isCallable(N$Request)) {
RequestConstructor = function Request(input) {
anInstance(this, RequestPrototype);
return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
};
RequestPrototype.constructor = RequestConstructor;
RequestConstructor.prototype = RequestPrototype;
$3({ global: true, forced: true }, {
Request: RequestConstructor
});
}
}
var headersHas;
var headersSet;
var wrapRequestOptions;
var RequestConstructor;
module2.exports = {
URLSearchParams: URLSearchParamsConstructor,
getState: getInternalParamsState
};
}
});
// node_modules/core-js/modules/web.url.js
var require_web_url = __commonJS({
"node_modules/core-js/modules/web.url.js"() {
"use strict";
require_es_string_iterator();
var $3 = require_export();
var DESCRIPTORS = require_descriptors();
var USE_NATIVE_URL = require_native_url();
var global2 = require_global();
var bind2 = require_function_bind_context();
var uncurryThis = require_function_uncurry_this();
var defineProperties = require_object_define_properties().f;
var redefine = require_redefine();
var anInstance = require_an_instance();
var hasOwn = require_has_own_property();
var assign3 = require_object_assign();
var arrayFrom2 = require_array_from();
var arraySlice = require_array_slice_simple();
var codeAt = require_string_multibyte().codeAt;
var toASCII = require_string_punycode_to_ascii();
var $toString = require_to_string();
var setToStringTag = require_set_to_string_tag();
var validateArgumentsLength = require_validate_arguments_length();
var URLSearchParamsModule = require_web_url_search_params();
var InternalStateModule = require_internal_state();
var setInternalState = InternalStateModule.set;
var getInternalURLState = InternalStateModule.getterFor("URL");
var URLSearchParams2 = URLSearchParamsModule.URLSearchParams;
var getInternalSearchParamsState = URLSearchParamsModule.getState;
var NativeURL = global2.URL;
var TypeError2 = global2.TypeError;
var parseInt2 = global2.parseInt;
var floor = Math.floor;
var pow = Math.pow;
var charAt = uncurryThis("".charAt);
var exec = uncurryThis(/./.exec);
var join = uncurryThis([].join);
var numberToString = uncurryThis(1 .toString);
var pop = uncurryThis([].pop);
var push = uncurryThis([].push);
var replace = uncurryThis("".replace);
var shift = uncurryThis([].shift);
var split = uncurryThis("".split);
var stringSlice = uncurryThis("".slice);
var toLowerCase = uncurryThis("".toLowerCase);
var unshift = uncurryThis([].unshift);
var INVALID_AUTHORITY = "Invalid authority";
var INVALID_SCHEME = "Invalid scheme";
var INVALID_HOST = "Invalid host";
var INVALID_PORT = "Invalid port";
var ALPHA = /[a-z]/i;
var ALPHANUMERIC = /[\d+-.a-z]/i;
var DIGIT = /\d/;
var HEX_START = /^0x/i;
var OCT = /^[0-7]+$/;
var DEC = /^\d+$/;
var HEX = /^[\da-f]+$/i;
var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g;
var TAB_AND_NEW_LINE = /[\t\n\r]/g;
var EOF;
var parseIPv4 = function(input) {
var parts = split(input, ".");
var partsLength, numbers2, index2, part, radix, number, ipv4;
if (parts.length && parts[parts.length - 1] == "") {
parts.length--;
}
partsLength = parts.length;
if (partsLength > 4)
return input;
numbers2 = [];
for (index2 = 0; index2 < partsLength; index2++) {
part = parts[index2];
if (part == "")
return input;
radix = 10;
if (part.length > 1 && charAt(part, 0) == "0") {
radix = exec(HEX_START, part) ? 16 : 8;
part = stringSlice(part, radix == 8 ? 1 : 2);
}
if (part === "") {
number = 0;
} else {
if (!exec(radix == 10 ? DEC : radix == 8 ? OCT : HEX, part))
return input;
number = parseInt2(part, radix);
}
push(numbers2, number);
}
for (index2 = 0; index2 < partsLength; index2++) {
number = numbers2[index2];
if (index2 == partsLength - 1) {
if (number >= pow(256, 5 - partsLength))
return null;
} else if (number > 255)
return null;
}
ipv4 = pop(numbers2);
for (index2 = 0; index2 < numbers2.length; index2++) {
ipv4 += numbers2[index2] * pow(256, 3 - index2);
}
return ipv4;
};
var parseIPv6 = function(input) {
var address = [0, 0, 0, 0, 0, 0, 0, 0];
var pieceIndex = 0;
var compress = null;
var pointer = 0;
var value, length, numbersSeen, ipv4Piece, number, swaps, swap2;
var chr = function() {
return charAt(input, pointer);
};
if (chr() == ":") {
if (charAt(input, 1) != ":")
return;
pointer += 2;
pieceIndex++;
compress = pieceIndex;
}
while (chr()) {
if (pieceIndex == 8)
return;
if (chr() == ":") {
if (compress !== null)
return;
pointer++;
pieceIndex++;
compress = pieceIndex;
continue;
}
value = length = 0;
while (length < 4 && exec(HEX, chr())) {
value = value * 16 + parseInt2(chr(), 16);
pointer++;
length++;
}
if (chr() == ".") {
if (length == 0)
return;
pointer -= length;
if (pieceIndex > 6)
return;
numbersSeen = 0;
while (chr()) {
ipv4Piece = null;
if (numbersSeen > 0) {
if (chr() == "." && numbersSeen < 4)
pointer++;
else
return;
}
if (!exec(DIGIT, chr()))
return;
while (exec(DIGIT, chr())) {
number = parseInt2(chr(), 10);
if (ipv4Piece === null)
ipv4Piece = number;
else if (ipv4Piece == 0)
return;
else
ipv4Piece = ipv4Piece * 10 + number;
if (ipv4Piece > 255)
return;
pointer++;
}
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
numbersSeen++;
if (numbersSeen == 2 || numbersSeen == 4)
pieceIndex++;
}
if (numbersSeen != 4)
return;
break;
} else if (chr() == ":") {
pointer++;
if (!chr())
return;
} else if (chr())
return;
address[pieceIndex++] = value;
}
if (compress !== null) {
swaps = pieceIndex - compress;
pieceIndex = 7;
while (pieceIndex != 0 && swaps > 0) {
swap2 = address[pieceIndex];
address[pieceIndex--] = address[compress + swaps - 1];
address[compress + --swaps] = swap2;
}
} else if (pieceIndex != 8)
return;
return address;
};
var findLongestZeroSequence = function(ipv6) {
var maxIndex = null;
var maxLength = 1;
var currStart = null;
var currLength = 0;
var index2 = 0;
for (; index2 < 8; index2++) {
if (ipv6[index2] !== 0) {
if (currLength > maxLength) {
maxIndex = currStart;
maxLength = currLength;
}
currStart = null;
currLength = 0;
} else {
if (currStart === null)
currStart = index2;
++currLength;
}
}
if (currLength > maxLength) {
maxIndex = currStart;
maxLength = currLength;
}
return maxIndex;
};
var serializeHost = function(host) {
var result, index2, compress, ignore0;
if (typeof host == "number") {
result = [];
for (index2 = 0; index2 < 4; index2++) {
unshift(result, host % 256);
host = floor(host / 256);
}
return join(result, ".");
} else if (typeof host == "object") {
result = "";
compress = findLongestZeroSequence(host);
for (index2 = 0; index2 < 8; index2++) {
if (ignore0 && host[index2] === 0)
continue;
if (ignore0)
ignore0 = false;
if (compress === index2) {
result += index2 ? ":" : "::";
ignore0 = true;
} else {
result += numberToString(host[index2], 16);
if (index2 < 7)
result += ":";
}
}
return "[" + result + "]";
}
return host;
};
var C0ControlPercentEncodeSet = {};
var fragmentPercentEncodeSet = assign3({}, C0ControlPercentEncodeSet, {
" ": 1,
'"': 1,
"<": 1,
">": 1,
"`": 1
});
var pathPercentEncodeSet = assign3({}, fragmentPercentEncodeSet, {
"#": 1,
"?": 1,
"{": 1,
"}": 1
});
var userinfoPercentEncodeSet = assign3({}, pathPercentEncodeSet, {
"/": 1,
":": 1,
";": 1,
"=": 1,
"@": 1,
"[": 1,
"\\": 1,
"]": 1,
"^": 1,
"|": 1
});
var percentEncode = function(chr, set2) {
var code3 = codeAt(chr, 0);
return code3 > 32 && code3 < 127 && !hasOwn(set2, chr) ? chr : encodeURIComponent(chr);
};
var specialSchemes = {
ftp: 21,
file: null,
http: 80,
https: 443,
ws: 80,
wss: 443
};
var isWindowsDriveLetter = function(string, normalized) {
var second;
return string.length == 2 && exec(ALPHA, charAt(string, 0)) && ((second = charAt(string, 1)) == ":" || !normalized && second == "|");
};
var startsWithWindowsDriveLetter = function(string) {
var third;
return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (string.length == 2 || ((third = charAt(string, 2)) === "/" || third === "\\" || third === "?" || third === "#"));
};
var isSingleDot = function(segment) {
return segment === "." || toLowerCase(segment) === "%2e";
};
var isDoubleDot = function(segment) {
segment = toLowerCase(segment);
return segment === ".." || segment === "%2e." || segment === ".%2e" || segment === "%2e%2e";
};
var SCHEME_START = {};
var SCHEME = {};
var NO_SCHEME = {};
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
var PATH_OR_AUTHORITY = {};
var RELATIVE = {};
var RELATIVE_SLASH = {};
var SPECIAL_AUTHORITY_SLASHES = {};
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
var AUTHORITY = {};
var HOST = {};
var HOSTNAME = {};
var PORT = {};
var FILE = {};
var FILE_SLASH = {};
var FILE_HOST = {};
var PATH_START = {};
var PATH = {};
var CANNOT_BE_A_BASE_URL_PATH = {};
var QUERY = {};
var FRAGMENT = {};
var URLState = function(url, isBase, base) {
var urlString = $toString(url);
var baseState, failure, searchParams;
if (isBase) {
failure = this.parse(urlString);
if (failure)
throw TypeError2(failure);
this.searchParams = null;
} else {
if (base !== void 0)
baseState = new URLState(base, true);
failure = this.parse(urlString, null, baseState);
if (failure)
throw TypeError2(failure);
searchParams = getInternalSearchParamsState(new URLSearchParams2());
searchParams.bindURL(this);
this.searchParams = searchParams;
}
};
URLState.prototype = {
type: "URL",
parse: function(input, stateOverride, base) {
var url = this;
var state = stateOverride || SCHEME_START;
var pointer = 0;
var buffer = "";
var seenAt = false;
var seenBracket = false;
var seenPasswordToken = false;
var codePoints, chr, bufferCodePoints, failure;
input = $toString(input);
if (!stateOverride) {
url.scheme = "";
url.username = "";
url.password = "";
url.host = null;
url.port = null;
url.path = [];
url.query = null;
url.fragment = null;
url.cannotBeABaseURL = false;
input = replace(input, LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, "");
}
input = replace(input, TAB_AND_NEW_LINE, "");
codePoints = arrayFrom2(input);
while (pointer <= codePoints.length) {
chr = codePoints[pointer];
switch (state) {
case SCHEME_START:
if (chr && exec(ALPHA, chr)) {
buffer += toLowerCase(chr);
state = SCHEME;
} else if (!stateOverride) {
state = NO_SCHEME;
continue;
} else
return INVALID_SCHEME;
break;
case SCHEME:
if (chr && (exec(ALPHANUMERIC, chr) || chr == "+" || chr == "-" || chr == ".")) {
buffer += toLowerCase(chr);
} else if (chr == ":") {
if (stateOverride && (url.isSpecial() != hasOwn(specialSchemes, buffer) || buffer == "file" && (url.includesCredentials() || url.port !== null) || url.scheme == "file" && !url.host))
return;
url.scheme = buffer;
if (stateOverride) {
if (url.isSpecial() && specialSchemes[url.scheme] == url.port)
url.port = null;
return;
}
buffer = "";
if (url.scheme == "file") {
state = FILE;
} else if (url.isSpecial() && base && base.scheme == url.scheme) {
state = SPECIAL_RELATIVE_OR_AUTHORITY;
} else if (url.isSpecial()) {
state = SPECIAL_AUTHORITY_SLASHES;
} else if (codePoints[pointer + 1] == "/") {
state = PATH_OR_AUTHORITY;
pointer++;
} else {
url.cannotBeABaseURL = true;
push(url.path, "");
state = CANNOT_BE_A_BASE_URL_PATH;
}
} else if (!stateOverride) {
buffer = "";
state = NO_SCHEME;
pointer = 0;
continue;
} else
return INVALID_SCHEME;
break;
case NO_SCHEME:
if (!base || base.cannotBeABaseURL && chr != "#")
return INVALID_SCHEME;
if (base.cannotBeABaseURL && chr == "#") {
url.scheme = base.scheme;
url.path = arraySlice(base.path);
url.query = base.query;
url.fragment = "";
url.cannotBeABaseURL = true;
state = FRAGMENT;
break;
}
state = base.scheme == "file" ? FILE : RELATIVE;
continue;
case SPECIAL_RELATIVE_OR_AUTHORITY:
if (chr == "/" && codePoints[pointer + 1] == "/") {
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
pointer++;
} else {
state = RELATIVE;
continue;
}
break;
case PATH_OR_AUTHORITY:
if (chr == "/") {
state = AUTHORITY;
break;
} else {
state = PATH;
continue;
}
case RELATIVE:
url.scheme = base.scheme;
if (chr == EOF) {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = arraySlice(base.path);
url.query = base.query;
} else if (chr == "/" || chr == "\\" && url.isSpecial()) {
state = RELATIVE_SLASH;
} else if (chr == "?") {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = arraySlice(base.path);
url.query = "";
state = QUERY;
} else if (chr == "#") {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = arraySlice(base.path);
url.query = base.query;
url.fragment = "";
state = FRAGMENT;
} else {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = arraySlice(base.path);
url.path.length--;
state = PATH;
continue;
}
break;
case RELATIVE_SLASH:
if (url.isSpecial() && (chr == "/" || chr == "\\")) {
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
} else if (chr == "/") {
state = AUTHORITY;
} else {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
state = PATH;
continue;
}
break;
case SPECIAL_AUTHORITY_SLASHES:
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
if (chr != "/" || charAt(buffer, pointer + 1) != "/")
continue;
pointer++;
break;
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
if (chr != "/" && chr != "\\") {
state = AUTHORITY;
continue;
}
break;
case AUTHORITY:
if (chr == "@") {
if (seenAt)
buffer = "%40" + buffer;
seenAt = true;
bufferCodePoints = arrayFrom2(buffer);
for (var i4 = 0; i4 < bufferCodePoints.length; i4++) {
var codePoint = bufferCodePoints[i4];
if (codePoint == ":" && !seenPasswordToken) {
seenPasswordToken = true;
continue;
}
var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
if (seenPasswordToken)
url.password += encodedCodePoints;
else
url.username += encodedCodePoints;
}
buffer = "";
} else if (chr == EOF || chr == "/" || chr == "?" || chr == "#" || chr == "\\" && url.isSpecial()) {
if (seenAt && buffer == "")
return INVALID_AUTHORITY;
pointer -= arrayFrom2(buffer).length + 1;
buffer = "";
state = HOST;
} else
buffer += chr;
break;
case HOST:
case HOSTNAME:
if (stateOverride && url.scheme == "file") {
state = FILE_HOST;
continue;
} else if (chr == ":" && !seenBracket) {
if (buffer == "")
return INVALID_HOST;
failure = url.parseHost(buffer);
if (failure)
return failure;
buffer = "";
state = PORT;
if (stateOverride == HOSTNAME)
return;
} else if (chr == EOF || chr == "/" || chr == "?" || chr == "#" || chr == "\\" && url.isSpecial()) {
if (url.isSpecial() && buffer == "")
return INVALID_HOST;
if (stateOverride && buffer == "" && (url.includesCredentials() || url.port !== null))
return;
failure = url.parseHost(buffer);
if (failure)
return failure;
buffer = "";
state = PATH_START;
if (stateOverride)
return;
continue;
} else {
if (chr == "[")
seenBracket = true;
else if (chr == "]")
seenBracket = false;
buffer += chr;
}
break;
case PORT:
if (exec(DIGIT, chr)) {
buffer += chr;
} else if (chr == EOF || chr == "/" || chr == "?" || chr == "#" || chr == "\\" && url.isSpecial() || stateOverride) {
if (buffer != "") {
var port = parseInt2(buffer, 10);
if (port > 65535)
return INVALID_PORT;
url.port = url.isSpecial() && port === specialSchemes[url.scheme] ? null : port;
buffer = "";
}
if (stateOverride)
return;
state = PATH_START;
continue;
} else
return INVALID_PORT;
break;
case FILE:
url.scheme = "file";
if (chr == "/" || chr == "\\")
state = FILE_SLASH;
else if (base && base.scheme == "file") {
if (chr == EOF) {
url.host = base.host;
url.path = arraySlice(base.path);
url.query = base.query;
} else if (chr == "?") {
url.host = base.host;
url.path = arraySlice(base.path);
url.query = "";
state = QUERY;
} else if (chr == "#") {
url.host = base.host;
url.path = arraySlice(base.path);
url.query = base.query;
url.fragment = "";
state = FRAGMENT;
} else {
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ""))) {
url.host = base.host;
url.path = arraySlice(base.path);
url.shortenPath();
}
state = PATH;
continue;
}
} else {
state = PATH;
continue;
}
break;
case FILE_SLASH:
if (chr == "/" || chr == "\\") {
state = FILE_HOST;
break;
}
if (base && base.scheme == "file" && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ""))) {
if (isWindowsDriveLetter(base.path[0], true))
push(url.path, base.path[0]);
else
url.host = base.host;
}
state = PATH;
continue;
case FILE_HOST:
if (chr == EOF || chr == "/" || chr == "\\" || chr == "?" || chr == "#") {
if (!stateOverride && isWindowsDriveLetter(buffer)) {
state = PATH;
} else if (buffer == "") {
url.host = "";
if (stateOverride)
return;
state = PATH_START;
} else {
failure = url.parseHost(buffer);
if (failure)
return failure;
if (url.host == "localhost")
url.host = "";
if (stateOverride)
return;
buffer = "";
state = PATH_START;
}
continue;
} else
buffer += chr;
break;
case PATH_START:
if (url.isSpecial()) {
state = PATH;
if (chr != "/" && chr != "\\")
continue;
} else if (!stateOverride && chr == "?") {
url.query = "";
state = QUERY;
} else if (!stateOverride && chr == "#") {
url.fragment = "";
state = FRAGMENT;
} else if (chr != EOF) {
state = PATH;
if (chr != "/")
continue;
}
break;
case PATH:
if (chr == EOF || chr == "/" || chr == "\\" && url.isSpecial() || !stateOverride && (chr == "?" || chr == "#")) {
if (isDoubleDot(buffer)) {
url.shortenPath();
if (chr != "/" && !(chr == "\\" && url.isSpecial())) {
push(url.path, "");
}
} else if (isSingleDot(buffer)) {
if (chr != "/" && !(chr == "\\" && url.isSpecial())) {
push(url.path, "");
}
} else {
if (url.scheme == "file" && !url.path.length && isWindowsDriveLetter(buffer)) {
if (url.host)
url.host = "";
buffer = charAt(buffer, 0) + ":";
}
push(url.path, buffer);
}
buffer = "";
if (url.scheme == "file" && (chr == EOF || chr == "?" || chr == "#")) {
while (url.path.length > 1 && url.path[0] === "") {
shift(url.path);
}
}
if (chr == "?") {
url.query = "";
state = QUERY;
} else if (chr == "#") {
url.fragment = "";
state = FRAGMENT;
}
} else {
buffer += percentEncode(chr, pathPercentEncodeSet);
}
break;
case CANNOT_BE_A_BASE_URL_PATH:
if (chr == "?") {
url.query = "";
state = QUERY;
} else if (chr == "#") {
url.fragment = "";
state = FRAGMENT;
} else if (chr != EOF) {
url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
}
break;
case QUERY:
if (!stateOverride && chr == "#") {
url.fragment = "";
state = FRAGMENT;
} else if (chr != EOF) {
if (chr == "'" && url.isSpecial())
url.query += "%27";
else if (chr == "#")
url.query += "%23";
else
url.query += percentEncode(chr, C0ControlPercentEncodeSet);
}
break;
case FRAGMENT:
if (chr != EOF)
url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
break;
}
pointer++;
}
},
parseHost: function(input) {
var result, codePoints, index2;
if (charAt(input, 0) == "[") {
if (charAt(input, input.length - 1) != "]")
return INVALID_HOST;
result = parseIPv6(stringSlice(input, 1, -1));
if (!result)
return INVALID_HOST;
this.host = result;
} else if (!this.isSpecial()) {
if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input))
return INVALID_HOST;
result = "";
codePoints = arrayFrom2(input);
for (index2 = 0; index2 < codePoints.length; index2++) {
result += percentEncode(codePoints[index2], C0ControlPercentEncodeSet);
}
this.host = result;
} else {
input = toASCII(input);
if (exec(FORBIDDEN_HOST_CODE_POINT, input))
return INVALID_HOST;
result = parseIPv4(input);
if (result === null)
return INVALID_HOST;
this.host = result;
}
},
cannotHaveUsernamePasswordPort: function() {
return !this.host || this.cannotBeABaseURL || this.scheme == "file";
},
includesCredentials: function() {
return this.username != "" || this.password != "";
},
isSpecial: function() {
return hasOwn(specialSchemes, this.scheme);
},
shortenPath: function() {
var path = this.path;
var pathSize = path.length;
if (pathSize && (this.scheme != "file" || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
path.length--;
}
},
serialize: function() {
var url = this;
var scheme = url.scheme;
var username = url.username;
var password = url.password;
var host = url.host;
var port = url.port;
var path = url.path;
var query = url.query;
var fragment = url.fragment;
var output = scheme + ":";
if (host !== null) {
output += "//";
if (url.includesCredentials()) {
output += username + (password ? ":" + password : "") + "@";
}
output += serializeHost(host);
if (port !== null)
output += ":" + port;
} else if (scheme == "file")
output += "//";
output += url.cannotBeABaseURL ? path[0] : path.length ? "/" + join(path, "/") : "";
if (query !== null)
output += "?" + query;
if (fragment !== null)
output += "#" + fragment;
return output;
},
setHref: function(href) {
var failure = this.parse(href);
if (failure)
throw TypeError2(failure);
this.searchParams.update();
},
getOrigin: function() {
var scheme = this.scheme;
var port = this.port;
if (scheme == "blob")
try {
return new URLConstructor(scheme.path[0]).origin;
} catch (error2) {
return "null";
}
if (scheme == "file" || !this.isSpecial())
return "null";
return scheme + "://" + serializeHost(this.host) + (port !== null ? ":" + port : "");
},
getProtocol: function() {
return this.scheme + ":";
},
setProtocol: function(protocol) {
this.parse($toString(protocol) + ":", SCHEME_START);
},
getUsername: function() {
return this.username;
},
setUsername: function(username) {
var codePoints = arrayFrom2($toString(username));
if (this.cannotHaveUsernamePasswordPort())
return;
this.username = "";
for (var i4 = 0; i4 < codePoints.length; i4++) {
this.username += percentEncode(codePoints[i4], userinfoPercentEncodeSet);
}
},
getPassword: function() {
return this.password;
},
setPassword: function(password) {
var codePoints = arrayFrom2($toString(password));
if (this.cannotHaveUsernamePasswordPort())
return;
this.password = "";
for (var i4 = 0; i4 < codePoints.length; i4++) {
this.password += percentEncode(codePoints[i4], userinfoPercentEncodeSet);
}
},
getHost: function() {
var host = this.host;
var port = this.port;
return host === null ? "" : port === null ? serializeHost(host) : serializeHost(host) + ":" + port;
},
setHost: function(host) {
if (this.cannotBeABaseURL)
return;
this.parse(host, HOST);
},
getHostname: function() {
var host = this.host;
return host === null ? "" : serializeHost(host);
},
setHostname: function(hostname) {
if (this.cannotBeABaseURL)
return;
this.parse(hostname, HOSTNAME);
},
getPort: function() {
var port = this.port;
return port === null ? "" : $toString(port);
},
setPort: function(port) {
if (this.cannotHaveUsernamePasswordPort())
return;
port = $toString(port);
if (port == "")
this.port = null;
else
this.parse(port, PORT);
},
getPathname: function() {
var path = this.path;
return this.cannotBeABaseURL ? path[0] : path.length ? "/" + join(path, "/") : "";
},
setPathname: function(pathname) {
if (this.cannotBeABaseURL)
return;
this.path = [];
this.parse(pathname, PATH_START);
},
getSearch: function() {
var query = this.query;
return query ? "?" + query : "";
},
setSearch: function(search) {
search = $toString(search);
if (search == "") {
this.query = null;
} else {
if (charAt(search, 0) == "?")
search = stringSlice(search, 1);
this.query = "";
this.parse(search, QUERY);
}
this.searchParams.update();
},
getSearchParams: function() {
return this.searchParams.facade;
},
getHash: function() {
var fragment = this.fragment;
return fragment ? "#" + fragment : "";
},
setHash: function(hash3) {
hash3 = $toString(hash3);
if (hash3 == "") {
this.fragment = null;
return;
}
if (charAt(hash3, 0) == "#")
hash3 = stringSlice(hash3, 1);
this.fragment = "";
this.parse(hash3, FRAGMENT);
},
update: function() {
this.query = this.searchParams.serialize() || null;
}
};
var URLConstructor = function URL2(url) {
var that = anInstance(this, URLPrototype);
var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : void 0;
var state = setInternalState(that, new URLState(url, false, base));
if (!DESCRIPTORS) {
that.href = state.serialize();
that.origin = state.getOrigin();
that.protocol = state.getProtocol();
that.username = state.getUsername();
that.password = state.getPassword();
that.host = state.getHost();
that.hostname = state.getHostname();
that.port = state.getPort();
that.pathname = state.getPathname();
that.search = state.getSearch();
that.searchParams = state.getSearchParams();
that.hash = state.getHash();
}
};
var URLPrototype = URLConstructor.prototype;
var accessorDescriptor = function(getter, setter) {
return {
get: function() {
return getInternalURLState(this)[getter]();
},
set: setter && function(value) {
return getInternalURLState(this)[setter](value);
},
configurable: true,
enumerable: true
};
};
if (DESCRIPTORS) {
defineProperties(URLPrototype, {
href: accessorDescriptor("serialize", "setHref"),
origin: accessorDescriptor("getOrigin"),
protocol: accessorDescriptor("getProtocol", "setProtocol"),
username: accessorDescriptor("getUsername", "setUsername"),
password: accessorDescriptor("getPassword", "setPassword"),
host: accessorDescriptor("getHost", "setHost"),
hostname: accessorDescriptor("getHostname", "setHostname"),
port: accessorDescriptor("getPort", "setPort"),
pathname: accessorDescriptor("getPathname", "setPathname"),
search: accessorDescriptor("getSearch", "setSearch"),
searchParams: accessorDescriptor("getSearchParams"),
hash: accessorDescriptor("getHash", "setHash")
});
}
redefine(URLPrototype, "toJSON", function toJSON() {
return getInternalURLState(this).serialize();
}, { enumerable: true });
redefine(URLPrototype, "toString", function toString() {
return getInternalURLState(this).serialize();
}, { enumerable: true });
if (NativeURL) {
nativeCreateObjectURL = NativeURL.createObjectURL;
nativeRevokeObjectURL = NativeURL.revokeObjectURL;
if (nativeCreateObjectURL)
redefine(URLConstructor, "createObjectURL", bind2(nativeCreateObjectURL, NativeURL));
if (nativeRevokeObjectURL)
redefine(URLConstructor, "revokeObjectURL", bind2(nativeRevokeObjectURL, NativeURL));
}
var nativeCreateObjectURL;
var nativeRevokeObjectURL;
setToStringTag(URLConstructor, "URL");
$3({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
URL: URLConstructor
});
}
});
// node_modules/core-js/modules/web.url.to-json.js
var require_web_url_to_json = __commonJS({
"node_modules/core-js/modules/web.url.to-json.js"() {
"use strict";
var $3 = require_export();
var call = require_function_call();
$3({ target: "URL", proto: true, enumerable: true }, {
toJSON: function toJSON() {
return call(URL.prototype.toString, this);
}
});
}
});
// node_modules/core-js/stable/index.js
var require_stable = __commonJS({
"node_modules/core-js/stable/index.js"(exports2, module2) {
require_es_symbol();
require_es_symbol_description();
require_es_symbol_async_iterator();
require_es_symbol_has_instance();
require_es_symbol_is_concat_spreadable();
require_es_symbol_iterator();
require_es_symbol_match();
require_es_symbol_match_all();
require_es_symbol_replace();
require_es_symbol_search();
require_es_symbol_species();
require_es_symbol_split();
require_es_symbol_to_primitive();
require_es_symbol_to_string_tag();
require_es_symbol_unscopables();
require_es_error_cause();
require_es_error_to_string();
require_es_aggregate_error();
require_es_aggregate_error_cause();
require_es_array_at();
require_es_array_concat();
require_es_array_copy_within();
require_es_array_every();
require_es_array_fill();
require_es_array_filter();
require_es_array_find();
require_es_array_find_index();
require_es_array_flat();
require_es_array_flat_map();
require_es_array_for_each();
require_es_array_from();
require_es_array_includes();
require_es_array_index_of();
require_es_array_is_array();
require_es_array_iterator();
require_es_array_join();
require_es_array_last_index_of();
require_es_array_map();
require_es_array_of();
require_es_array_reduce();
require_es_array_reduce_right();
require_es_array_reverse();
require_es_array_slice();
require_es_array_some();
require_es_array_sort();
require_es_array_species();
require_es_array_splice();
require_es_array_unscopables_flat();
require_es_array_unscopables_flat_map();
require_es_array_buffer_constructor();
require_es_array_buffer_is_view();
require_es_array_buffer_slice();
require_es_data_view();
require_es_date_get_year();
require_es_date_now();
require_es_date_set_year();
require_es_date_to_gmt_string();
require_es_date_to_iso_string();
require_es_date_to_json();
require_es_date_to_primitive();
require_es_date_to_string();
require_es_escape();
require_es_function_bind();
require_es_function_has_instance();
require_es_function_name();
require_es_global_this();
require_es_json_stringify();
require_es_json_to_string_tag();
require_es_map();
require_es_math_acosh();
require_es_math_asinh();
require_es_math_atanh();
require_es_math_cbrt();
require_es_math_clz32();
require_es_math_cosh();
require_es_math_expm1();
require_es_math_fround();
require_es_math_hypot();
require_es_math_imul();
require_es_math_log10();
require_es_math_log1p();
require_es_math_log2();
require_es_math_sign();
require_es_math_sinh();
require_es_math_tanh();
require_es_math_to_string_tag();
require_es_math_trunc();
require_es_number_constructor();
require_es_number_epsilon();
require_es_number_is_finite();
require_es_number_is_integer();
require_es_number_is_nan();
require_es_number_is_safe_integer();
require_es_number_max_safe_integer();
require_es_number_min_safe_integer();
require_es_number_parse_float();
require_es_number_parse_int();
require_es_number_to_exponential();
require_es_number_to_fixed();
require_es_number_to_precision();
require_es_object_assign();
require_es_object_create();
require_es_object_define_getter();
require_es_object_define_properties();
require_es_object_define_property();
require_es_object_define_setter();
require_es_object_entries();
require_es_object_freeze();
require_es_object_from_entries();
require_es_object_get_own_property_descriptor();
require_es_object_get_own_property_descriptors();
require_es_object_get_own_property_names();
require_es_object_get_prototype_of();
require_es_object_has_own();
require_es_object_is();
require_es_object_is_extensible();
require_es_object_is_frozen();
require_es_object_is_sealed();
require_es_object_keys();
require_es_object_lookup_getter();
require_es_object_lookup_setter();
require_es_object_prevent_extensions();
require_es_object_seal();
require_es_object_set_prototype_of();
require_es_object_to_string();
require_es_object_values();
require_es_parse_float();
require_es_parse_int();
require_es_promise();
require_es_promise_all_settled();
require_es_promise_any();
require_es_promise_finally();
require_es_reflect_apply();
require_es_reflect_construct();
require_es_reflect_define_property();
require_es_reflect_delete_property();
require_es_reflect_get();
require_es_reflect_get_own_property_descriptor();
require_es_reflect_get_prototype_of();
require_es_reflect_has();
require_es_reflect_is_extensible();
require_es_reflect_own_keys();
require_es_reflect_prevent_extensions();
require_es_reflect_set();
require_es_reflect_set_prototype_of();
require_es_reflect_to_string_tag();
require_es_regexp_constructor();
require_es_regexp_dot_all();
require_es_regexp_exec();
require_es_regexp_flags();
require_es_regexp_sticky();
require_es_regexp_test();
require_es_regexp_to_string();
require_es_set();
require_es_string_at_alternative();
require_es_string_code_point_at();
require_es_string_ends_with();
require_es_string_from_code_point();
require_es_string_includes();
require_es_string_iterator();
require_es_string_match();
require_es_string_match_all();
require_es_string_pad_end();
require_es_string_pad_start();
require_es_string_raw();
require_es_string_repeat();
require_es_string_replace();
require_es_string_replace_all();
require_es_string_search();
require_es_string_split();
require_es_string_starts_with();
require_es_string_substr();
require_es_string_trim();
require_es_string_trim_end();
require_es_string_trim_start();
require_es_string_anchor();
require_es_string_big();
require_es_string_blink();
require_es_string_bold();
require_es_string_fixed();
require_es_string_fontcolor();
require_es_string_fontsize();
require_es_string_italics();
require_es_string_link();
require_es_string_small();
require_es_string_strike();
require_es_string_sub();
require_es_string_sup();
require_es_typed_array_float32_array();
require_es_typed_array_float64_array();
require_es_typed_array_int8_array();
require_es_typed_array_int16_array();
require_es_typed_array_int32_array();
require_es_typed_array_uint8_array();
require_es_typed_array_uint8_clamped_array();
require_es_typed_array_uint16_array();
require_es_typed_array_uint32_array();
require_es_typed_array_at();
require_es_typed_array_copy_within();
require_es_typed_array_every();
require_es_typed_array_fill();
require_es_typed_array_filter();
require_es_typed_array_find();
require_es_typed_array_find_index();
require_es_typed_array_for_each();
require_es_typed_array_from();
require_es_typed_array_includes();
require_es_typed_array_index_of();
require_es_typed_array_iterator();
require_es_typed_array_join();
require_es_typed_array_last_index_of();
require_es_typed_array_map();
require_es_typed_array_of();
require_es_typed_array_reduce();
require_es_typed_array_reduce_right();
require_es_typed_array_reverse();
require_es_typed_array_set();
require_es_typed_array_slice();
require_es_typed_array_some();
require_es_typed_array_sort();
require_es_typed_array_subarray();
require_es_typed_array_to_locale_string();
require_es_typed_array_to_string();
require_es_unescape();
require_es_weak_map();
require_es_weak_set();
require_web_atob();
require_web_btoa();
require_web_dom_collections_for_each();
require_web_dom_collections_iterator();
require_web_dom_exception_constructor();
require_web_dom_exception_stack();
require_web_dom_exception_to_string_tag();
require_web_immediate();
require_web_queue_microtask();
require_web_structured_clone();
require_web_timers();
require_web_url();
require_web_url_to_json();
require_web_url_search_params();
module2.exports = require_path();
}
});
// node_modules/regenerator-runtime/runtime.js
var require_runtime = __commonJS({
"node_modules/regenerator-runtime/runtime.js"(exports2, module2) {
var runtime = function(exports3) {
"use strict";
var Op = Object.prototype;
var hasOwn = Op.hasOwnProperty;
var undefined2;
var $Symbol = typeof Symbol === "function" ? Symbol : {};
var iteratorSymbol = $Symbol.iterator || "@@iterator";
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
function define2(obj, key, value) {
Object.defineProperty(obj, key, {
value,
enumerable: true,
configurable: true,
writable: true
});
return obj[key];
}
try {
define2({}, "");
} catch (err) {
define2 = function(obj, key, value) {
return obj[key] = value;
};
}
function wrap(innerFn, outerFn, self2, tryLocsList) {
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
var generator = Object.create(protoGenerator.prototype);
var context = new Context2(tryLocsList || []);
generator._invoke = makeInvokeMethod(innerFn, self2, context);
return generator;
}
exports3.wrap = wrap;
function tryCatch(fn3, obj, arg) {
try {
return { type: "normal", arg: fn3.call(obj, arg) };
} catch (err) {
return { type: "throw", arg: err };
}
}
var GenStateSuspendedStart = "suspendedStart";
var GenStateSuspendedYield = "suspendedYield";
var GenStateExecuting = "executing";
var GenStateCompleted = "completed";
var ContinueSentinel = {};
function Generator() {
}
function GeneratorFunction() {
}
function GeneratorFunctionPrototype() {
}
var IteratorPrototype = {};
define2(IteratorPrototype, iteratorSymbol, function() {
return this;
});
var getProto = Object.getPrototypeOf;
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
IteratorPrototype = NativeIteratorPrototype;
}
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
GeneratorFunction.prototype = GeneratorFunctionPrototype;
define2(Gp, "constructor", GeneratorFunctionPrototype);
define2(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
GeneratorFunction.displayName = define2(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction");
function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function(method) {
define2(prototype, method, function(arg) {
return this._invoke(method, arg);
});
});
}
exports3.isGeneratorFunction = function(genFun) {
var ctor = typeof genFun === "function" && genFun.constructor;
return ctor ? ctor === GeneratorFunction || (ctor.displayName || ctor.name) === "GeneratorFunction" : false;
};
exports3.mark = function(genFun) {
if (Object.setPrototypeOf) {
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
} else {
genFun.__proto__ = GeneratorFunctionPrototype;
define2(genFun, toStringTagSymbol, "GeneratorFunction");
}
genFun.prototype = Object.create(Gp);
return genFun;
};
exports3.awrap = function(arg) {
return { __await: arg };
};
function AsyncIterator(generator, PromiseImpl) {
function invoke2(method, arg, resolve3, reject) {
var record = tryCatch(generator[method], generator, arg);
if (record.type === "throw") {
reject(record.arg);
} else {
var result = record.arg;
var value = result.value;
if (value && typeof value === "object" && hasOwn.call(value, "__await")) {
return PromiseImpl.resolve(value.__await).then(function(value2) {
invoke2("next", value2, resolve3, reject);
}, function(err) {
invoke2("throw", err, resolve3, reject);
});
}
return PromiseImpl.resolve(value).then(function(unwrapped) {
result.value = unwrapped;
resolve3(result);
}, function(error2) {
return invoke2("throw", error2, resolve3, reject);
});
}
}
var previousPromise;
function enqueue(method, arg) {
function callInvokeWithMethodAndArg() {
return new PromiseImpl(function(resolve3, reject) {
invoke2(method, arg, resolve3, reject);
});
}
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
}
this._invoke = enqueue;
}
defineIteratorMethods(AsyncIterator.prototype);
define2(AsyncIterator.prototype, asyncIteratorSymbol, function() {
return this;
});
exports3.AsyncIterator = AsyncIterator;
exports3.async = function(innerFn, outerFn, self2, tryLocsList, PromiseImpl) {
if (PromiseImpl === void 0)
PromiseImpl = Promise;
var iter = new AsyncIterator(wrap(innerFn, outerFn, self2, tryLocsList), PromiseImpl);
return exports3.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
return result.done ? result.value : iter.next();
});
};
function makeInvokeMethod(innerFn, self2, context) {
var state = GenStateSuspendedStart;
return function invoke2(method, arg) {
if (state === GenStateExecuting) {
throw new Error("Generator is already running");
}
if (state === GenStateCompleted) {
if (method === "throw") {
throw arg;
}
return doneResult();
}
context.method = method;
context.arg = arg;
while (true) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(delegate, context);
if (delegateResult) {
if (delegateResult === ContinueSentinel)
continue;
return delegateResult;
}
}
if (context.method === "next") {
context.sent = context._sent = context.arg;
} else if (context.method === "throw") {
if (state === GenStateSuspendedStart) {
state = GenStateCompleted;
throw context.arg;
}
context.dispatchException(context.arg);
} else if (context.method === "return") {
context.abrupt("return", context.arg);
}
state = GenStateExecuting;
var record = tryCatch(innerFn, self2, context);
if (record.type === "normal") {
state = context.done ? GenStateCompleted : GenStateSuspendedYield;
if (record.arg === ContinueSentinel) {
continue;
}
return {
value: record.arg,
done: context.done
};
} else if (record.type === "throw") {
state = GenStateCompleted;
context.method = "throw";
context.arg = record.arg;
}
}
};
}
function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (method === undefined2) {
context.delegate = null;
if (context.method === "throw") {
if (delegate.iterator["return"]) {
context.method = "return";
context.arg = undefined2;
maybeInvokeDelegate(delegate, context);
if (context.method === "throw") {
return ContinueSentinel;
}
}
context.method = "throw";
context.arg = new TypeError("The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var record = tryCatch(method, delegate.iterator, context.arg);
if (record.type === "throw") {
context.method = "throw";
context.arg = record.arg;
context.delegate = null;
return ContinueSentinel;
}
var info = record.arg;
if (!info) {
context.method = "throw";
context.arg = new TypeError("iterator result is not an object");
context.delegate = null;
return ContinueSentinel;
}
if (info.done) {
context[delegate.resultName] = info.value;
context.next = delegate.nextLoc;
if (context.method !== "return") {
context.method = "next";
context.arg = undefined2;
}
} else {
return info;
}
context.delegate = null;
return ContinueSentinel;
}
defineIteratorMethods(Gp);
define2(Gp, toStringTagSymbol, "Generator");
define2(Gp, iteratorSymbol, function() {
return this;
});
define2(Gp, "toString", function() {
return "[object Generator]";
});
function pushTryEntry(locs) {
var entry = { tryLoc: locs[0] };
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {
entry.finallyLoc = locs[2];
entry.afterLoc = locs[3];
}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
var record = entry.completion || {};
record.type = "normal";
delete record.arg;
entry.completion = record;
}
function Context2(tryLocsList) {
this.tryEntries = [{ tryLoc: "root" }];
tryLocsList.forEach(pushTryEntry, this);
this.reset(true);
}
exports3.keys = function(object) {
var keys = [];
for (var key in object) {
keys.push(key);
}
keys.reverse();
return function next() {
while (keys.length) {
var key2 = keys.pop();
if (key2 in object) {
next.value = key2;
next.done = false;
return next;
}
}
next.done = true;
return next;
};
};
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (typeof iterable.next === "function") {
return iterable;
}
if (!isNaN(iterable.length)) {
var i4 = -1, next = function next2() {
while (++i4 < iterable.length) {
if (hasOwn.call(iterable, i4)) {
next2.value = iterable[i4];
next2.done = false;
return next2;
}
}
next2.value = undefined2;
next2.done = true;
return next2;
};
return next.next = next;
}
}
return { next: doneResult };
}
exports3.values = values;
function doneResult() {
return { value: undefined2, done: true };
}
Context2.prototype = {
constructor: Context2,
reset: function(skipTempReset) {
this.prev = 0;
this.next = 0;
this.sent = this._sent = undefined2;
this.done = false;
this.delegate = null;
this.method = "next";
this.arg = undefined2;
this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {
for (var name in this) {
if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
this[name] = undefined2;
}
}
}
},
stop: function() {
this.done = true;
var rootEntry = this.tryEntries[0];
var rootRecord = rootEntry.completion;
if (rootRecord.type === "throw") {
throw rootRecord.arg;
}
return this.rval;
},
dispatchException: function(exception) {
if (this.done) {
throw exception;
}
var context = this;
function handle(loc, caught) {
record.type = "throw";
record.arg = exception;
context.next = loc;
if (caught) {
context.method = "next";
context.arg = undefined2;
}
return !!caught;
}
for (var i4 = this.tryEntries.length - 1; i4 >= 0; --i4) {
var entry = this.tryEntries[i4];
var record = entry.completion;
if (entry.tryLoc === "root") {
return handle("end");
}
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc");
var hasFinally = hasOwn.call(entry, "finallyLoc");
if (hasCatch && hasFinally) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
} else if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else if (hasCatch) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
}
} else if (hasFinally) {
if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else {
throw new Error("try statement without catch or finally");
}
}
}
},
abrupt: function(type, arg) {
for (var i4 = this.tryEntries.length - 1; i4 >= 0; --i4) {
var entry = this.tryEntries[i4];
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
var finallyEntry = entry;
break;
}
}
if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
finallyEntry = null;
}
var record = finallyEntry ? finallyEntry.completion : {};
record.type = type;
record.arg = arg;
if (finallyEntry) {
this.method = "next";
this.next = finallyEntry.finallyLoc;
return ContinueSentinel;
}
return this.complete(record);
},
complete: function(record, afterLoc) {
if (record.type === "throw") {
throw record.arg;
}
if (record.type === "break" || record.type === "continue") {
this.next = record.arg;
} else if (record.type === "return") {
this.rval = this.arg = record.arg;
this.method = "return";
this.next = "end";
} else if (record.type === "normal" && afterLoc) {
this.next = afterLoc;
}
return ContinueSentinel;
},
finish: function(finallyLoc) {
for (var i4 = this.tryEntries.length - 1; i4 >= 0; --i4) {
var entry = this.tryEntries[i4];
if (entry.finallyLoc === finallyLoc) {
this.complete(entry.completion, entry.afterLoc);
resetTryEntry(entry);
return ContinueSentinel;
}
}
},
"catch": function(tryLoc) {
for (var i4 = this.tryEntries.length - 1; i4 >= 0; --i4) {
var entry = this.tryEntries[i4];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if (record.type === "throw") {
var thrown = record.arg;
resetTryEntry(entry);
}
return thrown;
}
}
throw new Error("illegal catch attempt");
},
delegateYield: function(iterable, resultName, nextLoc) {
this.delegate = {
iterator: values(iterable),
resultName,
nextLoc
};
if (this.method === "next") {
this.arg = undefined2;
}
return ContinueSentinel;
}
};
return exports3;
}(typeof module2 === "object" ? module2.exports : {});
try {
regeneratorRuntime = runtime;
} catch (accidentalStrictMode) {
if (typeof globalThis === "object") {
globalThis.regeneratorRuntime = runtime;
} else {
Function("r", "regeneratorRuntime = r")(runtime);
}
}
}
});
// node_modules/@rails/activestorage/app/assets/javascripts/activestorage.js
var require_activestorage = __commonJS({
"node_modules/@rails/activestorage/app/assets/javascripts/activestorage.js"(exports2, module2) {
(function(global2, factory) {
typeof exports2 === "object" && typeof module2 !== "undefined" ? factory(exports2) : typeof define === "function" && define.amd ? define(["exports"], factory) : factory(global2.ActiveStorage = {});
})(exports2, function(exports3) {
"use strict";
function createCommonjsModule(fn3, module3) {
return module3 = {
exports: {}
}, fn3(module3, module3.exports), module3.exports;
}
var sparkMd5 = createCommonjsModule(function(module3, exports4) {
(function(factory) {
{
module3.exports = factory();
}
})(function(undefined2) {
var hex_chr = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
function md5cycle(x3, k3) {
var a4 = x3[0], b3 = x3[1], c3 = x3[2], d3 = x3[3];
a4 += (b3 & c3 | ~b3 & d3) + k3[0] - 680876936 | 0;
a4 = (a4 << 7 | a4 >>> 25) + b3 | 0;
d3 += (a4 & b3 | ~a4 & c3) + k3[1] - 389564586 | 0;
d3 = (d3 << 12 | d3 >>> 20) + a4 | 0;
c3 += (d3 & a4 | ~d3 & b3) + k3[2] + 606105819 | 0;
c3 = (c3 << 17 | c3 >>> 15) + d3 | 0;
b3 += (c3 & d3 | ~c3 & a4) + k3[3] - 1044525330 | 0;
b3 = (b3 << 22 | b3 >>> 10) + c3 | 0;
a4 += (b3 & c3 | ~b3 & d3) + k3[4] - 176418897 | 0;
a4 = (a4 << 7 | a4 >>> 25) + b3 | 0;
d3 += (a4 & b3 | ~a4 & c3) + k3[5] + 1200080426 | 0;
d3 = (d3 << 12 | d3 >>> 20) + a4 | 0;
c3 += (d3 & a4 | ~d3 & b3) + k3[6] - 1473231341 | 0;
c3 = (c3 << 17 | c3 >>> 15) + d3 | 0;
b3 += (c3 & d3 | ~c3 & a4) + k3[7] - 45705983 | 0;
b3 = (b3 << 22 | b3 >>> 10) + c3 | 0;
a4 += (b3 & c3 | ~b3 & d3) + k3[8] + 1770035416 | 0;
a4 = (a4 << 7 | a4 >>> 25) + b3 | 0;
d3 += (a4 & b3 | ~a4 & c3) + k3[9] - 1958414417 | 0;
d3 = (d3 << 12 | d3 >>> 20) + a4 | 0;
c3 += (d3 & a4 | ~d3 & b3) + k3[10] - 42063 | 0;
c3 = (c3 << 17 | c3 >>> 15) + d3 | 0;
b3 += (c3 & d3 | ~c3 & a4) + k3[11] - 1990404162 | 0;
b3 = (b3 << 22 | b3 >>> 10) + c3 | 0;
a4 += (b3 & c3 | ~b3 & d3) + k3[12] + 1804603682 | 0;
a4 = (a4 << 7 | a4 >>> 25) + b3 | 0;
d3 += (a4 & b3 | ~a4 & c3) + k3[13] - 40341101 | 0;
d3 = (d3 << 12 | d3 >>> 20) + a4 | 0;
c3 += (d3 & a4 | ~d3 & b3) + k3[14] - 1502002290 | 0;
c3 = (c3 << 17 | c3 >>> 15) + d3 | 0;
b3 += (c3 & d3 | ~c3 & a4) + k3[15] + 1236535329 | 0;
b3 = (b3 << 22 | b3 >>> 10) + c3 | 0;
a4 += (b3 & d3 | c3 & ~d3) + k3[1] - 165796510 | 0;
a4 = (a4 << 5 | a4 >>> 27) + b3 | 0;
d3 += (a4 & c3 | b3 & ~c3) + k3[6] - 1069501632 | 0;
d3 = (d3 << 9 | d3 >>> 23) + a4 | 0;
c3 += (d3 & b3 | a4 & ~b3) + k3[11] + 643717713 | 0;
c3 = (c3 << 14 | c3 >>> 18) + d3 | 0;
b3 += (c3 & a4 | d3 & ~a4) + k3[0] - 373897302 | 0;
b3 = (b3 << 20 | b3 >>> 12) + c3 | 0;
a4 += (b3 & d3 | c3 & ~d3) + k3[5] - 701558691 | 0;
a4 = (a4 << 5 | a4 >>> 27) + b3 | 0;
d3 += (a4 & c3 | b3 & ~c3) + k3[10] + 38016083 | 0;
d3 = (d3 << 9 | d3 >>> 23) + a4 | 0;
c3 += (d3 & b3 | a4 & ~b3) + k3[15] - 660478335 | 0;
c3 = (c3 << 14 | c3 >>> 18) + d3 | 0;
b3 += (c3 & a4 | d3 & ~a4) + k3[4] - 405537848 | 0;
b3 = (b3 << 20 | b3 >>> 12) + c3 | 0;
a4 += (b3 & d3 | c3 & ~d3) + k3[9] + 568446438 | 0;
a4 = (a4 << 5 | a4 >>> 27) + b3 | 0;
d3 += (a4 & c3 | b3 & ~c3) + k3[14] - 1019803690 | 0;
d3 = (d3 << 9 | d3 >>> 23) + a4 | 0;
c3 += (d3 & b3 | a4 & ~b3) + k3[3] - 187363961 | 0;
c3 = (c3 << 14 | c3 >>> 18) + d3 | 0;
b3 += (c3 & a4 | d3 & ~a4) + k3[8] + 1163531501 | 0;
b3 = (b3 << 20 | b3 >>> 12) + c3 | 0;
a4 += (b3 & d3 | c3 & ~d3) + k3[13] - 1444681467 | 0;
a4 = (a4 << 5 | a4 >>> 27) + b3 | 0;
d3 += (a4 & c3 | b3 & ~c3) + k3[2] - 51403784 | 0;
d3 = (d3 << 9 | d3 >>> 23) + a4 | 0;
c3 += (d3 & b3 | a4 & ~b3) + k3[7] + 1735328473 | 0;
c3 = (c3 << 14 | c3 >>> 18) + d3 | 0;
b3 += (c3 & a4 | d3 & ~a4) + k3[12] - 1926607734 | 0;
b3 = (b3 << 20 | b3 >>> 12) + c3 | 0;
a4 += (b3 ^ c3 ^ d3) + k3[5] - 378558 | 0;
a4 = (a4 << 4 | a4 >>> 28) + b3 | 0;
d3 += (a4 ^ b3 ^ c3) + k3[8] - 2022574463 | 0;
d3 = (d3 << 11 | d3 >>> 21) + a4 | 0;
c3 += (d3 ^ a4 ^ b3) + k3[11] + 1839030562 | 0;
c3 = (c3 << 16 | c3 >>> 16) + d3 | 0;
b3 += (c3 ^ d3 ^ a4) + k3[14] - 35309556 | 0;
b3 = (b3 << 23 | b3 >>> 9) + c3 | 0;
a4 += (b3 ^ c3 ^ d3) + k3[1] - 1530992060 | 0;
a4 = (a4 << 4 | a4 >>> 28) + b3 | 0;
d3 += (a4 ^ b3 ^ c3) + k3[4] + 1272893353 | 0;
d3 = (d3 << 11 | d3 >>> 21) + a4 | 0;
c3 += (d3 ^ a4 ^ b3) + k3[7] - 155497632 | 0;
c3 = (c3 << 16 | c3 >>> 16) + d3 | 0;
b3 += (c3 ^ d3 ^ a4) + k3[10] - 1094730640 | 0;
b3 = (b3 << 23 | b3 >>> 9) + c3 | 0;
a4 += (b3 ^ c3 ^ d3) + k3[13] + 681279174 | 0;
a4 = (a4 << 4 | a4 >>> 28) + b3 | 0;
d3 += (a4 ^ b3 ^ c3) + k3[0] - 358537222 | 0;
d3 = (d3 << 11 | d3 >>> 21) + a4 | 0;
c3 += (d3 ^ a4 ^ b3) + k3[3] - 722521979 | 0;
c3 = (c3 << 16 | c3 >>> 16) + d3 | 0;
b3 += (c3 ^ d3 ^ a4) + k3[6] + 76029189 | 0;
b3 = (b3 << 23 | b3 >>> 9) + c3 | 0;
a4 += (b3 ^ c3 ^ d3) + k3[9] - 640364487 | 0;
a4 = (a4 << 4 | a4 >>> 28) + b3 | 0;
d3 += (a4 ^ b3 ^ c3) + k3[12] - 421815835 | 0;
d3 = (d3 << 11 | d3 >>> 21) + a4 | 0;
c3 += (d3 ^ a4 ^ b3) + k3[15] + 530742520 | 0;
c3 = (c3 << 16 | c3 >>> 16) + d3 | 0;
b3 += (c3 ^ d3 ^ a4) + k3[2] - 995338651 | 0;
b3 = (b3 << 23 | b3 >>> 9) + c3 | 0;
a4 += (c3 ^ (b3 | ~d3)) + k3[0] - 198630844 | 0;
a4 = (a4 << 6 | a4 >>> 26) + b3 | 0;
d3 += (b3 ^ (a4 | ~c3)) + k3[7] + 1126891415 | 0;
d3 = (d3 << 10 | d3 >>> 22) + a4 | 0;
c3 += (a4 ^ (d3 | ~b3)) + k3[14] - 1416354905 | 0;
c3 = (c3 << 15 | c3 >>> 17) + d3 | 0;
b3 += (d3 ^ (c3 | ~a4)) + k3[5] - 57434055 | 0;
b3 = (b3 << 21 | b3 >>> 11) + c3 | 0;
a4 += (c3 ^ (b3 | ~d3)) + k3[12] + 1700485571 | 0;
a4 = (a4 << 6 | a4 >>> 26) + b3 | 0;
d3 += (b3 ^ (a4 | ~c3)) + k3[3] - 1894986606 | 0;
d3 = (d3 << 10 | d3 >>> 22) + a4 | 0;
c3 += (a4 ^ (d3 | ~b3)) + k3[10] - 1051523 | 0;
c3 = (c3 << 15 | c3 >>> 17) + d3 | 0;
b3 += (d3 ^ (c3 | ~a4)) + k3[1] - 2054922799 | 0;
b3 = (b3 << 21 | b3 >>> 11) + c3 | 0;
a4 += (c3 ^ (b3 | ~d3)) + k3[8] + 1873313359 | 0;
a4 = (a4 << 6 | a4 >>> 26) + b3 | 0;
d3 += (b3 ^ (a4 | ~c3)) + k3[15] - 30611744 | 0;
d3 = (d3 << 10 | d3 >>> 22) + a4 | 0;
c3 += (a4 ^ (d3 | ~b3)) + k3[6] - 1560198380 | 0;
c3 = (c3 << 15 | c3 >>> 17) + d3 | 0;
b3 += (d3 ^ (c3 | ~a4)) + k3[13] + 1309151649 | 0;
b3 = (b3 << 21 | b3 >>> 11) + c3 | 0;
a4 += (c3 ^ (b3 | ~d3)) + k3[4] - 145523070 | 0;
a4 = (a4 << 6 | a4 >>> 26) + b3 | 0;
d3 += (b3 ^ (a4 | ~c3)) + k3[11] - 1120210379 | 0;
d3 = (d3 << 10 | d3 >>> 22) + a4 | 0;
c3 += (a4 ^ (d3 | ~b3)) + k3[2] + 718787259 | 0;
c3 = (c3 << 15 | c3 >>> 17) + d3 | 0;
b3 += (d3 ^ (c3 | ~a4)) + k3[9] - 343485551 | 0;
b3 = (b3 << 21 | b3 >>> 11) + c3 | 0;
x3[0] = a4 + x3[0] | 0;
x3[1] = b3 + x3[1] | 0;
x3[2] = c3 + x3[2] | 0;
x3[3] = d3 + x3[3] | 0;
}
function md5blk(s4) {
var md5blks = [], i4;
for (i4 = 0; i4 < 64; i4 += 4) {
md5blks[i4 >> 2] = s4.charCodeAt(i4) + (s4.charCodeAt(i4 + 1) << 8) + (s4.charCodeAt(i4 + 2) << 16) + (s4.charCodeAt(i4 + 3) << 24);
}
return md5blks;
}
function md5blk_array(a4) {
var md5blks = [], i4;
for (i4 = 0; i4 < 64; i4 += 4) {
md5blks[i4 >> 2] = a4[i4] + (a4[i4 + 1] << 8) + (a4[i4 + 2] << 16) + (a4[i4 + 3] << 24);
}
return md5blks;
}
function md51(s4) {
var n4 = s4.length, state = [1732584193, -271733879, -1732584194, 271733878], i4, length, tail, tmp, lo, hi2;
for (i4 = 64; i4 <= n4; i4 += 64) {
md5cycle(state, md5blk(s4.substring(i4 - 64, i4)));
}
s4 = s4.substring(i4 - 64);
length = s4.length;
tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
for (i4 = 0; i4 < length; i4 += 1) {
tail[i4 >> 2] |= s4.charCodeAt(i4) << (i4 % 4 << 3);
}
tail[i4 >> 2] |= 128 << (i4 % 4 << 3);
if (i4 > 55) {
md5cycle(state, tail);
for (i4 = 0; i4 < 16; i4 += 1) {
tail[i4] = 0;
}
}
tmp = n4 * 8;
tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);
lo = parseInt(tmp[2], 16);
hi2 = parseInt(tmp[1], 16) || 0;
tail[14] = lo;
tail[15] = hi2;
md5cycle(state, tail);
return state;
}
function md51_array(a4) {
var n4 = a4.length, state = [1732584193, -271733879, -1732584194, 271733878], i4, length, tail, tmp, lo, hi2;
for (i4 = 64; i4 <= n4; i4 += 64) {
md5cycle(state, md5blk_array(a4.subarray(i4 - 64, i4)));
}
a4 = i4 - 64 < n4 ? a4.subarray(i4 - 64) : new Uint8Array(0);
length = a4.length;
tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
for (i4 = 0; i4 < length; i4 += 1) {
tail[i4 >> 2] |= a4[i4] << (i4 % 4 << 3);
}
tail[i4 >> 2] |= 128 << (i4 % 4 << 3);
if (i4 > 55) {
md5cycle(state, tail);
for (i4 = 0; i4 < 16; i4 += 1) {
tail[i4] = 0;
}
}
tmp = n4 * 8;
tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);
lo = parseInt(tmp[2], 16);
hi2 = parseInt(tmp[1], 16) || 0;
tail[14] = lo;
tail[15] = hi2;
md5cycle(state, tail);
return state;
}
function rhex(n4) {
var s4 = "", j3;
for (j3 = 0; j3 < 4; j3 += 1) {
s4 += hex_chr[n4 >> j3 * 8 + 4 & 15] + hex_chr[n4 >> j3 * 8 & 15];
}
return s4;
}
function hex2(x3) {
var i4;
for (i4 = 0; i4 < x3.length; i4 += 1) {
x3[i4] = rhex(x3[i4]);
}
return x3.join("");
}
if (hex2(md51("hello")) !== "5d41402abc4b2a76b9719d911017c592")
;
if (typeof ArrayBuffer !== "undefined" && !ArrayBuffer.prototype.slice) {
(function() {
function clamp(val, length) {
val = val | 0 || 0;
if (val < 0) {
return Math.max(val + length, 0);
}
return Math.min(val, length);
}
ArrayBuffer.prototype.slice = function(from, to) {
var length = this.byteLength, begin = clamp(from, length), end2 = length, num, target, targetArray, sourceArray;
if (to !== undefined2) {
end2 = clamp(to, length);
}
if (begin > end2) {
return new ArrayBuffer(0);
}
num = end2 - begin;
target = new ArrayBuffer(num);
targetArray = new Uint8Array(target);
sourceArray = new Uint8Array(this, begin, num);
targetArray.set(sourceArray);
return target;
};
})();
}
function toUtf8(str) {
if (/[\u0080-\uFFFF]/.test(str)) {
str = unescape(encodeURIComponent(str));
}
return str;
}
function utf8Str2ArrayBuffer(str, returnUInt8Array) {
var length = str.length, buff = new ArrayBuffer(length), arr = new Uint8Array(buff), i4;
for (i4 = 0; i4 < length; i4 += 1) {
arr[i4] = str.charCodeAt(i4);
}
return returnUInt8Array ? arr : buff;
}
function arrayBuffer2Utf8Str(buff) {
return String.fromCharCode.apply(null, new Uint8Array(buff));
}
function concatenateArrayBuffers(first, second, returnUInt8Array) {
var result = new Uint8Array(first.byteLength + second.byteLength);
result.set(new Uint8Array(first));
result.set(new Uint8Array(second), first.byteLength);
return returnUInt8Array ? result : result.buffer;
}
function hexToBinaryString(hex3) {
var bytes = [], length = hex3.length, x3;
for (x3 = 0; x3 < length - 1; x3 += 2) {
bytes.push(parseInt(hex3.substr(x3, 2), 16));
}
return String.fromCharCode.apply(String, bytes);
}
function SparkMD5() {
this.reset();
}
SparkMD5.prototype.append = function(str) {
this.appendBinary(toUtf8(str));
return this;
};
SparkMD5.prototype.appendBinary = function(contents) {
this._buff += contents;
this._length += contents.length;
var length = this._buff.length, i4;
for (i4 = 64; i4 <= length; i4 += 64) {
md5cycle(this._hash, md5blk(this._buff.substring(i4 - 64, i4)));
}
this._buff = this._buff.substring(i4 - 64);
return this;
};
SparkMD5.prototype.end = function(raw) {
var buff = this._buff, length = buff.length, i4, tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ret;
for (i4 = 0; i4 < length; i4 += 1) {
tail[i4 >> 2] |= buff.charCodeAt(i4) << (i4 % 4 << 3);
}
this._finish(tail, length);
ret = hex2(this._hash);
if (raw) {
ret = hexToBinaryString(ret);
}
this.reset();
return ret;
};
SparkMD5.prototype.reset = function() {
this._buff = "";
this._length = 0;
this._hash = [1732584193, -271733879, -1732584194, 271733878];
return this;
};
SparkMD5.prototype.getState = function() {
return {
buff: this._buff,
length: this._length,
hash: this._hash
};
};
SparkMD5.prototype.setState = function(state) {
this._buff = state.buff;
this._length = state.length;
this._hash = state.hash;
return this;
};
SparkMD5.prototype.destroy = function() {
delete this._hash;
delete this._buff;
delete this._length;
};
SparkMD5.prototype._finish = function(tail, length) {
var i4 = length, tmp, lo, hi2;
tail[i4 >> 2] |= 128 << (i4 % 4 << 3);
if (i4 > 55) {
md5cycle(this._hash, tail);
for (i4 = 0; i4 < 16; i4 += 1) {
tail[i4] = 0;
}
}
tmp = this._length * 8;
tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);
lo = parseInt(tmp[2], 16);
hi2 = parseInt(tmp[1], 16) || 0;
tail[14] = lo;
tail[15] = hi2;
md5cycle(this._hash, tail);
};
SparkMD5.hash = function(str, raw) {
return SparkMD5.hashBinary(toUtf8(str), raw);
};
SparkMD5.hashBinary = function(content, raw) {
var hash3 = md51(content), ret = hex2(hash3);
return raw ? hexToBinaryString(ret) : ret;
};
SparkMD5.ArrayBuffer = function() {
this.reset();
};
SparkMD5.ArrayBuffer.prototype.append = function(arr) {
var buff = concatenateArrayBuffers(this._buff.buffer, arr, true), length = buff.length, i4;
this._length += arr.byteLength;
for (i4 = 64; i4 <= length; i4 += 64) {
md5cycle(this._hash, md5blk_array(buff.subarray(i4 - 64, i4)));
}
this._buff = i4 - 64 < length ? new Uint8Array(buff.buffer.slice(i4 - 64)) : new Uint8Array(0);
return this;
};
SparkMD5.ArrayBuffer.prototype.end = function(raw) {
var buff = this._buff, length = buff.length, tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], i4, ret;
for (i4 = 0; i4 < length; i4 += 1) {
tail[i4 >> 2] |= buff[i4] << (i4 % 4 << 3);
}
this._finish(tail, length);
ret = hex2(this._hash);
if (raw) {
ret = hexToBinaryString(ret);
}
this.reset();
return ret;
};
SparkMD5.ArrayBuffer.prototype.reset = function() {
this._buff = new Uint8Array(0);
this._length = 0;
this._hash = [1732584193, -271733879, -1732584194, 271733878];
return this;
};
SparkMD5.ArrayBuffer.prototype.getState = function() {
var state = SparkMD5.prototype.getState.call(this);
state.buff = arrayBuffer2Utf8Str(state.buff);
return state;
};
SparkMD5.ArrayBuffer.prototype.setState = function(state) {
state.buff = utf8Str2ArrayBuffer(state.buff, true);
return SparkMD5.prototype.setState.call(this, state);
};
SparkMD5.ArrayBuffer.prototype.destroy = SparkMD5.prototype.destroy;
SparkMD5.ArrayBuffer.prototype._finish = SparkMD5.prototype._finish;
SparkMD5.ArrayBuffer.hash = function(arr, raw) {
var hash3 = md51_array(new Uint8Array(arr)), ret = hex2(hash3);
return raw ? hexToBinaryString(ret) : ret;
};
return SparkMD5;
});
});
var classCallCheck = function(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
var createClass = function() {
function defineProperties(target, props) {
for (var i4 = 0; i4 < props.length; i4++) {
var descriptor = props[i4];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor)
descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function(Constructor, protoProps, staticProps) {
if (protoProps)
defineProperties(Constructor.prototype, protoProps);
if (staticProps)
defineProperties(Constructor, staticProps);
return Constructor;
};
}();
var fileSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;
var FileChecksum = function() {
createClass(FileChecksum2, null, [{
key: "create",
value: function create(file, callback2) {
var instance = new FileChecksum2(file);
instance.create(callback2);
}
}]);
function FileChecksum2(file) {
classCallCheck(this, FileChecksum2);
this.file = file;
this.chunkSize = 2097152;
this.chunkCount = Math.ceil(this.file.size / this.chunkSize);
this.chunkIndex = 0;
}
createClass(FileChecksum2, [{
key: "create",
value: function create(callback2) {
var _this = this;
this.callback = callback2;
this.md5Buffer = new sparkMd5.ArrayBuffer();
this.fileReader = new FileReader();
this.fileReader.addEventListener("load", function(event) {
return _this.fileReaderDidLoad(event);
});
this.fileReader.addEventListener("error", function(event) {
return _this.fileReaderDidError(event);
});
this.readNextChunk();
}
}, {
key: "fileReaderDidLoad",
value: function fileReaderDidLoad(event) {
this.md5Buffer.append(event.target.result);
if (!this.readNextChunk()) {
var binaryDigest = this.md5Buffer.end(true);
var base64digest = btoa(binaryDigest);
this.callback(null, base64digest);
}
}
}, {
key: "fileReaderDidError",
value: function fileReaderDidError(event) {
this.callback("Error reading " + this.file.name);
}
}, {
key: "readNextChunk",
value: function readNextChunk() {
if (this.chunkIndex < this.chunkCount || this.chunkIndex == 0 && this.chunkCount == 0) {
var start4 = this.chunkIndex * this.chunkSize;
var end2 = Math.min(start4 + this.chunkSize, this.file.size);
var bytes = fileSlice.call(this.file, start4, end2);
this.fileReader.readAsArrayBuffer(bytes);
this.chunkIndex++;
return true;
} else {
return false;
}
}
}]);
return FileChecksum2;
}();
function getMetaValue(name) {
var element = findElement(document.head, 'meta[name="' + name + '"]');
if (element) {
return element.getAttribute("content");
}
}
function findElements(root, selector) {
if (typeof root == "string") {
selector = root;
root = document;
}
var elements2 = root.querySelectorAll(selector);
return toArray$1(elements2);
}
function findElement(root, selector) {
if (typeof root == "string") {
selector = root;
root = document;
}
return root.querySelector(selector);
}
function dispatchEvent2(element, type) {
var eventInit = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
var disabled = element.disabled;
var bubbles = eventInit.bubbles, cancelable = eventInit.cancelable, detail = eventInit.detail;
var event = document.createEvent("Event");
event.initEvent(type, bubbles || true, cancelable || true);
event.detail = detail || {};
try {
element.disabled = false;
element.dispatchEvent(event);
} finally {
element.disabled = disabled;
}
return event;
}
function toArray$1(value) {
if (Array.isArray(value)) {
return value;
} else if (Array.from) {
return Array.from(value);
} else {
return [].slice.call(value);
}
}
var BlobRecord = function() {
function BlobRecord2(file, checksum, url) {
var _this = this;
classCallCheck(this, BlobRecord2);
this.file = file;
this.attributes = {
filename: file.name,
content_type: file.type || "application/octet-stream",
byte_size: file.size,
checksum
};
this.xhr = new XMLHttpRequest();
this.xhr.open("POST", url, true);
this.xhr.responseType = "json";
this.xhr.setRequestHeader("Content-Type", "application/json");
this.xhr.setRequestHeader("Accept", "application/json");
this.xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
var csrfToken = getMetaValue("csrf-token");
if (csrfToken != void 0) {
this.xhr.setRequestHeader("X-CSRF-Token", csrfToken);
}
this.xhr.addEventListener("load", function(event) {
return _this.requestDidLoad(event);
});
this.xhr.addEventListener("error", function(event) {
return _this.requestDidError(event);
});
}
createClass(BlobRecord2, [{
key: "create",
value: function create(callback2) {
this.callback = callback2;
this.xhr.send(JSON.stringify({
blob: this.attributes
}));
}
}, {
key: "requestDidLoad",
value: function requestDidLoad(event) {
if (this.status >= 200 && this.status < 300) {
var response = this.response;
var direct_upload = response.direct_upload;
delete response.direct_upload;
this.attributes = response;
this.directUploadData = direct_upload;
this.callback(null, this.toJSON());
} else {
this.requestDidError(event);
}
}
}, {
key: "requestDidError",
value: function requestDidError(event) {
this.callback('Error creating Blob for "' + this.file.name + '". Status: ' + this.status);
}
}, {
key: "toJSON",
value: function toJSON() {
var result = {};
for (var key in this.attributes) {
result[key] = this.attributes[key];
}
return result;
}
}, {
key: "status",
get: function get$$1() {
return this.xhr.status;
}
}, {
key: "response",
get: function get$$1() {
var _xhr = this.xhr, responseType = _xhr.responseType, response = _xhr.response;
if (responseType == "json") {
return response;
} else {
return JSON.parse(response);
}
}
}]);
return BlobRecord2;
}();
var BlobUpload = function() {
function BlobUpload2(blob) {
var _this = this;
classCallCheck(this, BlobUpload2);
this.blob = blob;
this.file = blob.file;
var _blob$directUploadDat = blob.directUploadData, url = _blob$directUploadDat.url, headers = _blob$directUploadDat.headers;
this.xhr = new XMLHttpRequest();
this.xhr.open("PUT", url, true);
this.xhr.responseType = "text";
for (var key in headers) {
this.xhr.setRequestHeader(key, headers[key]);
}
this.xhr.addEventListener("load", function(event) {
return _this.requestDidLoad(event);
});
this.xhr.addEventListener("error", function(event) {
return _this.requestDidError(event);
});
}
createClass(BlobUpload2, [{
key: "create",
value: function create(callback2) {
this.callback = callback2;
this.xhr.send(this.file.slice());
}
}, {
key: "requestDidLoad",
value: function requestDidLoad(event) {
var _xhr = this.xhr, status = _xhr.status, response = _xhr.response;
if (status >= 200 && status < 300) {
this.callback(null, response);
} else {
this.requestDidError(event);
}
}
}, {
key: "requestDidError",
value: function requestDidError(event) {
this.callback('Error storing "' + this.file.name + '". Status: ' + this.xhr.status);
}
}]);
return BlobUpload2;
}();
var id = 0;
var DirectUpload = function() {
function DirectUpload2(file, url, delegate) {
classCallCheck(this, DirectUpload2);
this.id = ++id;
this.file = file;
this.url = url;
this.delegate = delegate;
}
createClass(DirectUpload2, [{
key: "create",
value: function create(callback2) {
var _this = this;
FileChecksum.create(this.file, function(error2, checksum) {
if (error2) {
callback2(error2);
return;
}
var blob = new BlobRecord(_this.file, checksum, _this.url);
notify(_this.delegate, "directUploadWillCreateBlobWithXHR", blob.xhr);
blob.create(function(error3) {
if (error3) {
callback2(error3);
} else {
var upload = new BlobUpload(blob);
notify(_this.delegate, "directUploadWillStoreFileWithXHR", upload.xhr);
upload.create(function(error4) {
if (error4) {
callback2(error4);
} else {
callback2(null, blob.toJSON());
}
});
}
});
});
}
}]);
return DirectUpload2;
}();
function notify(object, methodName) {
if (object && typeof object[methodName] == "function") {
for (var _len = arguments.length, messages = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
messages[_key - 2] = arguments[_key];
}
return object[methodName].apply(object, messages);
}
}
var DirectUploadController = function() {
function DirectUploadController2(input, file) {
classCallCheck(this, DirectUploadController2);
this.input = input;
this.file = file;
this.directUpload = new DirectUpload(this.file, this.url, this);
this.dispatch("initialize");
}
createClass(DirectUploadController2, [{
key: "start",
value: function start4(callback2) {
var _this = this;
var hiddenInput = document.createElement("input");
hiddenInput.type = "hidden";
hiddenInput.name = this.input.name;
this.input.insertAdjacentElement("beforebegin", hiddenInput);
this.dispatch("start");
this.directUpload.create(function(error2, attributes) {
if (error2) {
hiddenInput.parentNode.removeChild(hiddenInput);
_this.dispatchError(error2);
} else {
hiddenInput.value = attributes.signed_id;
}
_this.dispatch("end");
callback2(error2);
});
}
}, {
key: "uploadRequestDidProgress",
value: function uploadRequestDidProgress(event) {
var progress = event.loaded / event.total * 100;
if (progress) {
this.dispatch("progress", {
progress
});
}
}
}, {
key: "dispatch",
value: function dispatch3(name) {
var detail = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
detail.file = this.file;
detail.id = this.directUpload.id;
return dispatchEvent2(this.input, "direct-upload:" + name, {
detail
});
}
}, {
key: "dispatchError",
value: function dispatchError(error2) {
var event = this.dispatch("error", {
error: error2
});
if (!event.defaultPrevented) {
alert(error2);
}
}
}, {
key: "directUploadWillCreateBlobWithXHR",
value: function directUploadWillCreateBlobWithXHR(xhr) {
this.dispatch("before-blob-request", {
xhr
});
}
}, {
key: "directUploadWillStoreFileWithXHR",
value: function directUploadWillStoreFileWithXHR(xhr) {
var _this2 = this;
this.dispatch("before-storage-request", {
xhr
});
xhr.upload.addEventListener("progress", function(event) {
return _this2.uploadRequestDidProgress(event);
});
}
}, {
key: "url",
get: function get$$1() {
return this.input.getAttribute("data-direct-upload-url");
}
}]);
return DirectUploadController2;
}();
var inputSelector = "input[type=file][data-direct-upload-url]:not([disabled])";
var DirectUploadsController = function() {
function DirectUploadsController2(form) {
classCallCheck(this, DirectUploadsController2);
this.form = form;
this.inputs = findElements(form, inputSelector).filter(function(input) {
return input.files.length;
});
}
createClass(DirectUploadsController2, [{
key: "start",
value: function start4(callback2) {
var _this = this;
var controllers2 = this.createDirectUploadControllers();
var startNextController = function startNextController2() {
var controller = controllers2.shift();
if (controller) {
controller.start(function(error2) {
if (error2) {
callback2(error2);
_this.dispatch("end");
} else {
startNextController2();
}
});
} else {
callback2();
_this.dispatch("end");
}
};
this.dispatch("start");
startNextController();
}
}, {
key: "createDirectUploadControllers",
value: function createDirectUploadControllers() {
var controllers2 = [];
this.inputs.forEach(function(input) {
toArray$1(input.files).forEach(function(file) {
var controller = new DirectUploadController(input, file);
controllers2.push(controller);
});
});
return controllers2;
}
}, {
key: "dispatch",
value: function dispatch3(name) {
var detail = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return dispatchEvent2(this.form, "direct-uploads:" + name, {
detail
});
}
}]);
return DirectUploadsController2;
}();
var processingAttribute = "data-direct-uploads-processing";
var submitButtonsByForm = /* @__PURE__ */ new WeakMap();
var started = false;
function start3() {
if (!started) {
started = true;
document.addEventListener("click", didClick, true);
document.addEventListener("submit", didSubmitForm);
document.addEventListener("ajax:before", didSubmitRemoteElement);
}
}
function didClick(event) {
var target = event.target;
if ((target.tagName == "INPUT" || target.tagName == "BUTTON") && target.type == "submit" && target.form) {
submitButtonsByForm.set(target.form, target);
}
}
function didSubmitForm(event) {
handleFormSubmissionEvent(event);
}
function didSubmitRemoteElement(event) {
if (event.target.tagName == "FORM") {
handleFormSubmissionEvent(event);
}
}
function handleFormSubmissionEvent(event) {
var form = event.target;
if (form.hasAttribute(processingAttribute)) {
event.preventDefault();
return;
}
var controller = new DirectUploadsController(form);
var inputs = controller.inputs;
if (inputs.length) {
event.preventDefault();
form.setAttribute(processingAttribute, "");
inputs.forEach(disable);
controller.start(function(error2) {
form.removeAttribute(processingAttribute);
if (error2) {
inputs.forEach(enable);
} else {
submitForm(form);
}
});
}
}
function submitForm(form) {
var button = submitButtonsByForm.get(form) || findElement(form, "input[type=submit], button[type=submit]");
if (button) {
var _button = button, disabled = _button.disabled;
button.disabled = false;
button.focus();
button.click();
button.disabled = disabled;
} else {
button = document.createElement("input");
button.type = "submit";
button.style.display = "none";
form.appendChild(button);
button.click();
form.removeChild(button);
}
submitButtonsByForm.delete(form);
}
function disable(input) {
input.disabled = true;
}
function enable(input) {
input.disabled = false;
}
function autostart() {
if (window.ActiveStorage) {
start3();
}
}
setTimeout(autostart, 1);
exports3.start = start3;
exports3.DirectUpload = DirectUpload;
Object.defineProperty(exports3, "__esModule", {
value: true
});
});
}
});
// node_modules/mousetrap/mousetrap.js
var require_mousetrap = __commonJS({
"node_modules/mousetrap/mousetrap.js"(exports2, module2) {
(function(window2, document2, undefined2) {
if (!window2) {
return;
}
var _MAP = {
8: "backspace",
9: "tab",
13: "enter",
16: "shift",
17: "ctrl",
18: "alt",
20: "capslock",
27: "esc",
32: "space",
33: "pageup",
34: "pagedown",
35: "end",
36: "home",
37: "left",
38: "up",
39: "right",
40: "down",
45: "ins",
46: "del",
91: "meta",
93: "meta",
224: "meta"
};
var _KEYCODE_MAP = {
106: "*",
107: "+",
109: "-",
110: ".",
111: "/",
186: ";",
187: "=",
188: ",",
189: "-",
190: ".",
191: "/",
192: "`",
219: "[",
220: "\\",
221: "]",
222: "'"
};
var _SHIFT_MAP = {
"~": "`",
"!": "1",
"@": "2",
"#": "3",
"$": "4",
"%": "5",
"^": "6",
"&": "7",
"*": "8",
"(": "9",
")": "0",
"_": "-",
"+": "=",
":": ";",
'"': "'",
"<": ",",
">": ".",
"?": "/",
"|": "\\"
};
var _SPECIAL_ALIASES = {
"option": "alt",
"command": "meta",
"return": "enter",
"escape": "esc",
"plus": "+",
"mod": /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? "meta" : "ctrl"
};
var _REVERSE_MAP;
for (var i4 = 1; i4 < 20; ++i4) {
_MAP[111 + i4] = "f" + i4;
}
for (i4 = 0; i4 <= 9; ++i4) {
_MAP[i4 + 96] = i4.toString();
}
function _addEvent(object, type, callback2) {
if (object.addEventListener) {
object.addEventListener(type, callback2, false);
return;
}
object.attachEvent("on" + type, callback2);
}
function _characterFromEvent(e4) {
if (e4.type == "keypress") {
var character = String.fromCharCode(e4.which);
if (!e4.shiftKey) {
character = character.toLowerCase();
}
return character;
}
if (_MAP[e4.which]) {
return _MAP[e4.which];
}
if (_KEYCODE_MAP[e4.which]) {
return _KEYCODE_MAP[e4.which];
}
return String.fromCharCode(e4.which).toLowerCase();
}
function _modifiersMatch(modifiers1, modifiers2) {
return modifiers1.sort().join(",") === modifiers2.sort().join(",");
}
function _eventModifiers(e4) {
var modifiers = [];
if (e4.shiftKey) {
modifiers.push("shift");
}
if (e4.altKey) {
modifiers.push("alt");
}
if (e4.ctrlKey) {
modifiers.push("ctrl");
}
if (e4.metaKey) {
modifiers.push("meta");
}
return modifiers;
}
function _preventDefault(e4) {
if (e4.preventDefault) {
e4.preventDefault();
return;
}
e4.returnValue = false;
}
function _stopPropagation(e4) {
if (e4.stopPropagation) {
e4.stopPropagation();
return;
}
e4.cancelBubble = true;
}
function _isModifier(key) {
return key == "shift" || key == "ctrl" || key == "alt" || key == "meta";
}
function _getReverseMap() {
if (!_REVERSE_MAP) {
_REVERSE_MAP = {};
for (var key in _MAP) {
if (key > 95 && key < 112) {
continue;
}
if (_MAP.hasOwnProperty(key)) {
_REVERSE_MAP[_MAP[key]] = key;
}
}
}
return _REVERSE_MAP;
}
function _pickBestAction(key, modifiers, action) {
if (!action) {
action = _getReverseMap()[key] ? "keydown" : "keypress";
}
if (action == "keypress" && modifiers.length) {
action = "keydown";
}
return action;
}
function _keysFromString(combination) {
if (combination === "+") {
return ["+"];
}
combination = combination.replace(/\+{2}/g, "+plus");
return combination.split("+");
}
function _getKeyInfo(combination, action) {
var keys;
var key;
var i5;
var modifiers = [];
keys = _keysFromString(combination);
for (i5 = 0; i5 < keys.length; ++i5) {
key = keys[i5];
if (_SPECIAL_ALIASES[key]) {
key = _SPECIAL_ALIASES[key];
}
if (action && action != "keypress" && _SHIFT_MAP[key]) {
key = _SHIFT_MAP[key];
modifiers.push("shift");
}
if (_isModifier(key)) {
modifiers.push(key);
}
}
action = _pickBestAction(key, modifiers, action);
return {
key,
modifiers,
action
};
}
function _belongsTo(element, ancestor) {
if (element === null || element === document2) {
return false;
}
if (element === ancestor) {
return true;
}
return _belongsTo(element.parentNode, ancestor);
}
function Mousetrap2(targetElement) {
var self2 = this;
targetElement = targetElement || document2;
if (!(self2 instanceof Mousetrap2)) {
return new Mousetrap2(targetElement);
}
self2.target = targetElement;
self2._callbacks = {};
self2._directMap = {};
var _sequenceLevels = {};
var _resetTimer;
var _ignoreNextKeyup = false;
var _ignoreNextKeypress = false;
var _nextExpectedAction = false;
function _resetSequences(doNotReset) {
doNotReset = doNotReset || {};
var activeSequences = false, key;
for (key in _sequenceLevels) {
if (doNotReset[key]) {
activeSequences = true;
continue;
}
_sequenceLevels[key] = 0;
}
if (!activeSequences) {
_nextExpectedAction = false;
}
}
function _getMatches(character, modifiers, e4, sequenceName, combination, level) {
var i5;
var callback2;
var matches = [];
var action = e4.type;
if (!self2._callbacks[character]) {
return [];
}
if (action == "keyup" && _isModifier(character)) {
modifiers = [character];
}
for (i5 = 0; i5 < self2._callbacks[character].length; ++i5) {
callback2 = self2._callbacks[character][i5];
if (!sequenceName && callback2.seq && _sequenceLevels[callback2.seq] != callback2.level) {
continue;
}
if (action != callback2.action) {
continue;
}
if (action == "keypress" && !e4.metaKey && !e4.ctrlKey || _modifiersMatch(modifiers, callback2.modifiers)) {
var deleteCombo = !sequenceName && callback2.combo == combination;
var deleteSequence = sequenceName && callback2.seq == sequenceName && callback2.level == level;
if (deleteCombo || deleteSequence) {
self2._callbacks[character].splice(i5, 1);
}
matches.push(callback2);
}
}
return matches;
}
function _fireCallback(callback2, e4, combo, sequence) {
if (self2.stopCallback(e4, e4.target || e4.srcElement, combo, sequence)) {
return;
}
if (callback2(e4, combo) === false) {
_preventDefault(e4);
_stopPropagation(e4);
}
}
self2._handleKey = function(character, modifiers, e4) {
var callbacks = _getMatches(character, modifiers, e4);
var i5;
var doNotReset = {};
var maxLevel = 0;
var processedSequenceCallback = false;
for (i5 = 0; i5 < callbacks.length; ++i5) {
if (callbacks[i5].seq) {
maxLevel = Math.max(maxLevel, callbacks[i5].level);
}
}
for (i5 = 0; i5 < callbacks.length; ++i5) {
if (callbacks[i5].seq) {
if (callbacks[i5].level != maxLevel) {
continue;
}
processedSequenceCallback = true;
doNotReset[callbacks[i5].seq] = 1;
_fireCallback(callbacks[i5].callback, e4, callbacks[i5].combo, callbacks[i5].seq);
continue;
}
if (!processedSequenceCallback) {
_fireCallback(callbacks[i5].callback, e4, callbacks[i5].combo);
}
}
var ignoreThisKeypress = e4.type == "keypress" && _ignoreNextKeypress;
if (e4.type == _nextExpectedAction && !_isModifier(character) && !ignoreThisKeypress) {
_resetSequences(doNotReset);
}
_ignoreNextKeypress = processedSequenceCallback && e4.type == "keydown";
};
function _handleKeyEvent(e4) {
if (typeof e4.which !== "number") {
e4.which = e4.keyCode;
}
var character = _characterFromEvent(e4);
if (!character) {
return;
}
if (e4.type == "keyup" && _ignoreNextKeyup === character) {
_ignoreNextKeyup = false;
return;
}
self2.handleKey(character, _eventModifiers(e4), e4);
}
function _resetSequenceTimer() {
clearTimeout(_resetTimer);
_resetTimer = setTimeout(_resetSequences, 1e3);
}
function _bindSequence(combo, keys, callback2, action) {
_sequenceLevels[combo] = 0;
function _increaseSequence(nextAction) {
return function() {
_nextExpectedAction = nextAction;
++_sequenceLevels[combo];
_resetSequenceTimer();
};
}
function _callbackAndReset(e4) {
_fireCallback(callback2, e4, combo);
if (action !== "keyup") {
_ignoreNextKeyup = _characterFromEvent(e4);
}
setTimeout(_resetSequences, 10);
}
for (var i5 = 0; i5 < keys.length; ++i5) {
var isFinal = i5 + 1 === keys.length;
var wrappedCallback = isFinal ? _callbackAndReset : _increaseSequence(action || _getKeyInfo(keys[i5 + 1]).action);
_bindSingle(keys[i5], wrappedCallback, action, combo, i5);
}
}
function _bindSingle(combination, callback2, action, sequenceName, level) {
self2._directMap[combination + ":" + action] = callback2;
combination = combination.replace(/\s+/g, " ");
var sequence = combination.split(" ");
var info;
if (sequence.length > 1) {
_bindSequence(combination, sequence, callback2, action);
return;
}
info = _getKeyInfo(combination, action);
self2._callbacks[info.key] = self2._callbacks[info.key] || [];
_getMatches(info.key, info.modifiers, { type: info.action }, sequenceName, combination, level);
self2._callbacks[info.key][sequenceName ? "unshift" : "push"]({
callback: callback2,
modifiers: info.modifiers,
action: info.action,
seq: sequenceName,
level,
combo: combination
});
}
self2._bindMultiple = function(combinations, callback2, action) {
for (var i5 = 0; i5 < combinations.length; ++i5) {
_bindSingle(combinations[i5], callback2, action);
}
};
_addEvent(targetElement, "keypress", _handleKeyEvent);
_addEvent(targetElement, "keydown", _handleKeyEvent);
_addEvent(targetElement, "keyup", _handleKeyEvent);
}
Mousetrap2.prototype.bind = function(keys, callback2, action) {
var self2 = this;
keys = keys instanceof Array ? keys : [keys];
self2._bindMultiple.call(self2, keys, callback2, action);
return self2;
};
Mousetrap2.prototype.unbind = function(keys, action) {
var self2 = this;
return self2.bind.call(self2, keys, function() {
}, action);
};
Mousetrap2.prototype.trigger = function(keys, action) {
var self2 = this;
if (self2._directMap[keys + ":" + action]) {
self2._directMap[keys + ":" + action]({}, keys);
}
return self2;
};
Mousetrap2.prototype.reset = function() {
var self2 = this;
self2._callbacks = {};
self2._directMap = {};
return self2;
};
Mousetrap2.prototype.stopCallback = function(e4, element) {
var self2 = this;
if ((" " + element.className + " ").indexOf(" mousetrap ") > -1) {
return false;
}
if (_belongsTo(element, self2.target)) {
return false;
}
if ("composedPath" in e4 && typeof e4.composedPath === "function") {
var initialEventTarget = e4.composedPath()[0];
if (initialEventTarget !== e4.target) {
element = initialEventTarget;
}
}
return element.tagName == "INPUT" || element.tagName == "SELECT" || element.tagName == "TEXTAREA" || element.isContentEditable;
};
Mousetrap2.prototype.handleKey = function() {
var self2 = this;
return self2._handleKey.apply(self2, arguments);
};
Mousetrap2.addKeycodes = function(object) {
for (var key in object) {
if (object.hasOwnProperty(key)) {
_MAP[key] = object[key];
}
}
_REVERSE_MAP = null;
};
Mousetrap2.init = function() {
var documentMousetrap = Mousetrap2(document2);
for (var method in documentMousetrap) {
if (method.charAt(0) !== "_") {
Mousetrap2[method] = function(method2) {
return function() {
return documentMousetrap[method2].apply(documentMousetrap, arguments);
};
}(method);
}
}
};
Mousetrap2.init();
window2.Mousetrap = Mousetrap2;
if (typeof module2 !== "undefined" && module2.exports) {
module2.exports = Mousetrap2;
}
if (typeof define === "function" && define.amd) {
define(function() {
return Mousetrap2;
});
}
})(typeof window !== "undefined" ? window : null, typeof window !== "undefined" ? document : null);
}
});
// node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js
var turbo_es2017_esm_exports = {};
__export(turbo_es2017_esm_exports, {
FrameElement: () => FrameElement,
FrameLoadingStyle: () => FrameLoadingStyle,
FrameRenderer: () => FrameRenderer,
PageRenderer: () => PageRenderer,
PageSnapshot: () => PageSnapshot,
StreamActions: () => StreamActions,
StreamElement: () => StreamElement,
StreamSourceElement: () => StreamSourceElement,
cache: () => cache,
clearCache: () => clearCache,
connectStreamSource: () => connectStreamSource,
disconnectStreamSource: () => disconnectStreamSource,
navigator: () => navigator$1,
registerAdapter: () => registerAdapter,
renderStreamMessage: () => renderStreamMessage,
session: () => session,
setConfirmMethod: () => setConfirmMethod,
setFormMode: () => setFormMode,
setProgressBarDelay: () => setProgressBarDelay,
start: () => start,
visit: () => visit
});
function findSubmitterFromClickTarget(target) {
const element = target instanceof Element ? target : target instanceof Node ? target.parentElement : null;
const candidate = element ? element.closest("input, button") : null;
return (candidate === null || candidate === void 0 ? void 0 : candidate.type) == "submit" ? candidate : null;
}
function clickCaptured(event) {
const submitter = findSubmitterFromClickTarget(event.target);
if (submitter && submitter.form) {
submittersByForm.set(submitter.form, submitter);
}
}
function frameLoadingStyleFromString(style) {
switch (style.toLowerCase()) {
case "lazy":
return FrameLoadingStyle.lazy;
default:
return FrameLoadingStyle.eager;
}
}
function expandURL(locatable) {
return new URL(locatable.toString(), document.baseURI);
}
function getAnchor(url) {
let anchorMatch;
if (url.hash) {
return url.hash.slice(1);
} else if (anchorMatch = url.href.match(/#(.*)$/)) {
return anchorMatch[1];
}
}
function getAction(form, submitter) {
const action = (submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute("formaction")) || form.getAttribute("action") || form.action;
return expandURL(action);
}
function getExtension(url) {
return (getLastPathComponent(url).match(/\.[^.]*$/) || [])[0] || "";
}
function isHTML(url) {
return !!getExtension(url).match(/^(?:|\.(?:htm|html|xhtml|php))$/);
}
function isPrefixedBy(baseURL, url) {
const prefix = getPrefix(url);
return baseURL.href === expandURL(prefix).href || baseURL.href.startsWith(prefix);
}
function locationIsVisitable(location2, rootLocation) {
return isPrefixedBy(location2, rootLocation) && isHTML(location2);
}
function getRequestURL(url) {
const anchor = getAnchor(url);
return anchor != null ? url.href.slice(0, -(anchor.length + 1)) : url.href;
}
function toCacheKey(url) {
return getRequestURL(url);
}
function urlsAreEqual(left2, right2) {
return expandURL(left2).href == expandURL(right2).href;
}
function getPathComponents(url) {
return url.pathname.split("/").slice(1);
}
function getLastPathComponent(url) {
return getPathComponents(url).slice(-1)[0];
}
function getPrefix(url) {
return addTrailingSlash(url.origin + url.pathname);
}
function addTrailingSlash(value) {
return value.endsWith("/") ? value : value + "/";
}
function activateScriptElement(element) {
if (element.getAttribute("data-turbo-eval") == "false") {
return element;
} else {
const createdScriptElement = document.createElement("script");
const cspNonce = getMetaContent("csp-nonce");
if (cspNonce) {
createdScriptElement.nonce = cspNonce;
}
createdScriptElement.textContent = element.textContent;
createdScriptElement.async = false;
copyElementAttributes(createdScriptElement, element);
return createdScriptElement;
}
}
function copyElementAttributes(destinationElement, sourceElement) {
for (const { name, value } of sourceElement.attributes) {
destinationElement.setAttribute(name, value);
}
}
function createDocumentFragment(html) {
const template = document.createElement("template");
template.innerHTML = html;
return template.content;
}
function dispatch(eventName, { target, cancelable, detail } = {}) {
const event = new CustomEvent(eventName, {
cancelable,
bubbles: true,
composed: true,
detail
});
if (target && target.isConnected) {
target.dispatchEvent(event);
} else {
document.documentElement.dispatchEvent(event);
}
return event;
}
function nextAnimationFrame() {
return new Promise((resolve3) => requestAnimationFrame(() => resolve3()));
}
function nextEventLoopTick() {
return new Promise((resolve3) => setTimeout(() => resolve3(), 0));
}
function nextMicrotask() {
return Promise.resolve();
}
function parseHTMLDocument(html = "") {
return new DOMParser().parseFromString(html, "text/html");
}
function unindent(strings, ...values) {
const lines = interpolate(strings, values).replace(/^\n/, "").split("\n");
const match2 = lines[0].match(/^\s+/);
const indent = match2 ? match2[0].length : 0;
return lines.map((line) => line.slice(indent)).join("\n");
}
function interpolate(strings, values) {
return strings.reduce((result, string, i4) => {
const value = values[i4] == void 0 ? "" : values[i4];
return result + string + value;
}, "");
}
function uuid() {
return Array.from({ length: 36 }).map((_3, i4) => {
if (i4 == 8 || i4 == 13 || i4 == 18 || i4 == 23) {
return "-";
} else if (i4 == 14) {
return "4";
} else if (i4 == 19) {
return (Math.floor(Math.random() * 4) + 8).toString(16);
} else {
return Math.floor(Math.random() * 15).toString(16);
}
}).join("");
}
function getAttribute(attributeName, ...elements2) {
for (const value of elements2.map((element) => element === null || element === void 0 ? void 0 : element.getAttribute(attributeName))) {
if (typeof value == "string")
return value;
}
return null;
}
function hasAttribute(attributeName, ...elements2) {
return elements2.some((element) => element && element.hasAttribute(attributeName));
}
function markAsBusy(...elements2) {
for (const element of elements2) {
if (element.localName == "turbo-frame") {
element.setAttribute("busy", "");
}
element.setAttribute("aria-busy", "true");
}
}
function clearBusyState(...elements2) {
for (const element of elements2) {
if (element.localName == "turbo-frame") {
element.removeAttribute("busy");
}
element.removeAttribute("aria-busy");
}
}
function waitForLoad(element, timeoutInMilliseconds = 2e3) {
return new Promise((resolve3) => {
const onComplete = () => {
element.removeEventListener("error", onComplete);
element.removeEventListener("load", onComplete);
resolve3();
};
element.addEventListener("load", onComplete, { once: true });
element.addEventListener("error", onComplete, { once: true });
setTimeout(resolve3, timeoutInMilliseconds);
});
}
function getHistoryMethodForAction(action) {
switch (action) {
case "replace":
return history.replaceState;
case "advance":
case "restore":
return history.pushState;
}
}
function isAction(action) {
return action == "advance" || action == "replace" || action == "restore";
}
function getVisitAction(...elements2) {
const action = getAttribute("data-turbo-action", ...elements2);
return isAction(action) ? action : null;
}
function getMetaElement(name) {
return document.querySelector(`meta[name="${name}"]`);
}
function getMetaContent(name) {
const element = getMetaElement(name);
return element && element.content;
}
function setMetaContent(name, content) {
let element = getMetaElement(name);
if (!element) {
element = document.createElement("meta");
element.setAttribute("name", name);
document.head.appendChild(element);
}
element.setAttribute("content", content);
return element;
}
function findClosestRecursively(element, selector) {
var _a;
if (element instanceof Element) {
return element.closest(selector) || findClosestRecursively(element.assignedSlot || ((_a = element.getRootNode()) === null || _a === void 0 ? void 0 : _a.host), selector);
}
}
function fetchMethodFromString(method) {
switch (method.toLowerCase()) {
case "get":
return FetchMethod.get;
case "post":
return FetchMethod.post;
case "put":
return FetchMethod.put;
case "patch":
return FetchMethod.patch;
case "delete":
return FetchMethod.delete;
}
}
function importStreamElements(fragment) {
for (const element of fragment.querySelectorAll("turbo-stream")) {
const streamElement = document.importNode(element, true);
for (const inertScriptElement of streamElement.templateElement.content.querySelectorAll("script")) {
inertScriptElement.replaceWith(activateScriptElement(inertScriptElement));
}
element.replaceWith(streamElement);
}
return fragment;
}
function formEnctypeFromString(encoding) {
switch (encoding.toLowerCase()) {
case FormEnctype.multipart:
return FormEnctype.multipart;
case FormEnctype.plain:
return FormEnctype.plain;
default:
return FormEnctype.urlEncoded;
}
}
function buildFormData(formElement, submitter) {
const formData = new FormData(formElement);
const name = submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute("name");
const value = submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute("value");
if (name) {
formData.append(name, value || "");
}
return formData;
}
function getCookieValue(cookieName) {
if (cookieName != null) {
const cookies = document.cookie ? document.cookie.split("; ") : [];
const cookie = cookies.find((cookie2) => cookie2.startsWith(cookieName));
if (cookie) {
const value = cookie.split("=").slice(1).join("=");
return value ? decodeURIComponent(value) : void 0;
}
}
}
function responseSucceededWithoutRedirect(response) {
return response.statusCode == 200 && !response.redirected;
}
function mergeFormDataEntries(url, entries) {
const searchParams = new URLSearchParams();
for (const [name, value] of entries) {
if (value instanceof File)
continue;
searchParams.append(name, value);
}
url.search = searchParams.toString();
return url;
}
function getPermanentElementById(node, id) {
return node.querySelector(`#${id}[data-turbo-permanent]`);
}
function queryPermanentElementsAll(node) {
return node.querySelectorAll("[id][data-turbo-permanent]");
}
function submissionDoesNotDismissDialog(form, submitter) {
const method = (submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute("formmethod")) || form.getAttribute("method");
return method != "dialog";
}
function submissionDoesNotTargetIFrame(form, submitter) {
if ((submitter === null || submitter === void 0 ? void 0 : submitter.hasAttribute("formtarget")) || form.hasAttribute("target")) {
const target = (submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute("formtarget")) || form.target;
for (const element of document.getElementsByName(target)) {
if (element instanceof HTMLIFrameElement)
return false;
}
return true;
} else {
return true;
}
}
function doesNotTargetIFrame(anchor) {
if (anchor.hasAttribute("target")) {
for (const element of document.getElementsByName(anchor.target)) {
if (element instanceof HTMLIFrameElement)
return false;
}
return true;
} else {
return true;
}
}
function createPlaceholderForPermanentElement(permanentElement) {
const element = document.createElement("meta");
element.setAttribute("name", "turbo-permanent-placeholder");
element.setAttribute("content", permanentElement.id);
return element;
}
function elementIsFocusable(element) {
return element && typeof element.focus == "function";
}
function readScrollLogicalPosition(value, defaultValue) {
if (value == "end" || value == "start" || value == "center" || value == "nearest") {
return value;
} else {
return defaultValue;
}
}
function readScrollBehavior(value, defaultValue) {
if (value == "auto" || value == "smooth") {
return value;
} else {
return defaultValue;
}
}
function elementType(element) {
if (elementIsScript(element)) {
return "script";
} else if (elementIsStylesheet(element)) {
return "stylesheet";
}
}
function elementIsTracked(element) {
return element.getAttribute("data-turbo-track") == "reload";
}
function elementIsScript(element) {
const tagName = element.localName;
return tagName == "script";
}
function elementIsNoscript(element) {
const tagName = element.localName;
return tagName == "noscript";
}
function elementIsStylesheet(element) {
const tagName = element.localName;
return tagName == "style" || tagName == "link" && element.getAttribute("rel") == "stylesheet";
}
function elementIsMetaElementWithName(element, name) {
const tagName = element.localName;
return tagName == "meta" && element.getAttribute("name") == name;
}
function elementWithoutNonce(element) {
if (element.hasAttribute("nonce")) {
element.setAttribute("nonce", "");
}
return element;
}
function isSuccessful(statusCode) {
return statusCode >= 200 && statusCode < 300;
}
function getPermanentElementMapForFragment(fragment) {
const permanentElementsInDocument = queryPermanentElementsAll(document.documentElement);
const permanentElementMap = {};
for (const permanentElementInDocument of permanentElementsInDocument) {
const { id } = permanentElementInDocument;
for (const streamElement of fragment.querySelectorAll("turbo-stream")) {
const elementInStream = getPermanentElementById(streamElement.templateElement.content, id);
if (elementInStream) {
permanentElementMap[id] = [permanentElementInDocument, elementInStream];
}
}
}
return permanentElementMap;
}
function fetchResponseFromEvent(event) {
var _a;
const fetchResponse = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.fetchResponse;
if (fetchResponse instanceof FetchResponse) {
return fetchResponse;
}
}
function fetchResponseIsStream(response) {
var _a;
const contentType = (_a = response.contentType) !== null && _a !== void 0 ? _a : "";
return contentType.startsWith(StreamMessage.contentType);
}
function extendURLWithDeprecatedProperties(url) {
Object.defineProperties(url, deprecatedLocationPropertyDescriptors);
}
function start() {
session.start();
}
function registerAdapter(adapter) {
session.registerAdapter(adapter);
}
function visit(location2, options) {
session.visit(location2, options);
}
function connectStreamSource(source) {
session.connectStreamSource(source);
}
function disconnectStreamSource(source) {
session.disconnectStreamSource(source);
}
function renderStreamMessage(message) {
session.renderStreamMessage(message);
}
function clearCache() {
console.warn("Please replace `Turbo.clearCache()` with `Turbo.cache.clear()`. The top-level function is deprecated and will be removed in a future version of Turbo.`");
session.clearCache();
}
function setProgressBarDelay(delay) {
session.setProgressBarDelay(delay);
}
function setConfirmMethod(confirmMethod) {
FormSubmission.confirmMethod = confirmMethod;
}
function setFormMode(mode) {
session.setFormMode(mode);
}
function getFrameElementById(id) {
if (id != null) {
const element = document.getElementById(id);
if (element instanceof FrameElement) {
return element;
}
}
}
function activateElement(element, currentURL) {
if (element) {
const src = element.getAttribute("src");
if (src != null && currentURL != null && urlsAreEqual(src, currentURL)) {
throw new Error(`Matching element has a source URL which references itself`);
}
if (element.ownerDocument !== document) {
element = document.importNode(element, true);
}
if (element instanceof FrameElement) {
element.connectedCallback();
element.disconnectedCallback();
return element;
}
}
}
var submittersByForm, FrameLoadingStyle, FrameElement, FetchResponse, FetchMethod, FetchRequest, AppearanceObserver, StreamMessage, FormSubmissionState, FormEnctype, FormSubmission, Snapshot, FormSubmitObserver, View, FrameView, LinkInterceptor, LinkClickObserver, FormLinkClickObserver, Bardo, Renderer, FrameRenderer, ProgressBar, HeadSnapshot, PageSnapshot, TimingMetric, VisitState, defaultOptions, SystemStatusCode, Visit, BrowserAdapter, CacheObserver, FrameRedirector, History, Navigator, PageStage, PageObserver, ScrollObserver, StreamMessageRenderer, StreamObserver, ErrorRenderer, PageRenderer, SnapshotCache, PageView, Preloader, Session, deprecatedLocationPropertyDescriptors, Cache, StreamActions, session, cache, navigator$1, Turbo2, TurboFrameMissingError, FrameController, StreamElement, StreamSourceElement;
var init_turbo_es2017_esm = __esm({
"node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js"() {
(function() {
if (window.Reflect === void 0 || window.customElements === void 0 || window.customElements.polyfillWrapFlushCallback) {
return;
}
const BuiltInHTMLElement = HTMLElement;
const wrapperForTheName = {
HTMLElement: function HTMLElement2() {
return Reflect.construct(BuiltInHTMLElement, [], this.constructor);
}
};
window.HTMLElement = wrapperForTheName["HTMLElement"];
HTMLElement.prototype = BuiltInHTMLElement.prototype;
HTMLElement.prototype.constructor = HTMLElement;
Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
})();
(function(prototype) {
if (typeof prototype.requestSubmit == "function")
return;
prototype.requestSubmit = function(submitter) {
if (submitter) {
validateSubmitter(submitter, this);
submitter.click();
} else {
submitter = document.createElement("input");
submitter.type = "submit";
submitter.hidden = true;
this.appendChild(submitter);
submitter.click();
this.removeChild(submitter);
}
};
function validateSubmitter(submitter, form) {
submitter instanceof HTMLElement || raise(TypeError, "parameter 1 is not of type 'HTMLElement'");
submitter.type == "submit" || raise(TypeError, "The specified element is not a submit button");
submitter.form == form || raise(DOMException, "The specified element is not owned by this form element", "NotFoundError");
}
function raise(errorConstructor, message, name) {
throw new errorConstructor("Failed to execute 'requestSubmit' on 'HTMLFormElement': " + message + ".", name);
}
})(HTMLFormElement.prototype);
submittersByForm = /* @__PURE__ */ new WeakMap();
(function() {
if ("submitter" in Event.prototype)
return;
let prototype = window.Event.prototype;
if ("SubmitEvent" in window && /Apple Computer/.test(navigator.vendor)) {
prototype = window.SubmitEvent.prototype;
} else if ("SubmitEvent" in window) {
return;
}
addEventListener("click", clickCaptured, true);
Object.defineProperty(prototype, "submitter", {
get() {
if (this.type == "submit" && this.target instanceof HTMLFormElement) {
return submittersByForm.get(this.target);
}
}
});
})();
(function(FrameLoadingStyle2) {
FrameLoadingStyle2["eager"] = "eager";
FrameLoadingStyle2["lazy"] = "lazy";
})(FrameLoadingStyle || (FrameLoadingStyle = {}));
FrameElement = class extends HTMLElement {
static get observedAttributes() {
return ["disabled", "complete", "loading", "src"];
}
constructor() {
super();
this.loaded = Promise.resolve();
this.delegate = new FrameElement.delegateConstructor(this);
}
connectedCallback() {
this.delegate.connect();
}
disconnectedCallback() {
this.delegate.disconnect();
}
reload() {
return this.delegate.sourceURLReloaded();
}
attributeChangedCallback(name) {
if (name == "loading") {
this.delegate.loadingStyleChanged();
} else if (name == "complete") {
this.delegate.completeChanged();
} else if (name == "src") {
this.delegate.sourceURLChanged();
} else {
this.delegate.disabledChanged();
}
}
get src() {
return this.getAttribute("src");
}
set src(value) {
if (value) {
this.setAttribute("src", value);
} else {
this.removeAttribute("src");
}
}
get loading() {
return frameLoadingStyleFromString(this.getAttribute("loading") || "");
}
set loading(value) {
if (value) {
this.setAttribute("loading", value);
} else {
this.removeAttribute("loading");
}
}
get disabled() {
return this.hasAttribute("disabled");
}
set disabled(value) {
if (value) {
this.setAttribute("disabled", "");
} else {
this.removeAttribute("disabled");
}
}
get autoscroll() {
return this.hasAttribute("autoscroll");
}
set autoscroll(value) {
if (value) {
this.setAttribute("autoscroll", "");
} else {
this.removeAttribute("autoscroll");
}
}
get complete() {
return !this.delegate.isLoading;
}
get isActive() {
return this.ownerDocument === document && !this.isPreview;
}
get isPreview() {
var _a, _b;
return (_b = (_a = this.ownerDocument) === null || _a === void 0 ? void 0 : _a.documentElement) === null || _b === void 0 ? void 0 : _b.hasAttribute("data-turbo-preview");
}
};
FetchResponse = class {
constructor(response) {
this.response = response;
}
get succeeded() {
return this.response.ok;
}
get failed() {
return !this.succeeded;
}
get clientError() {
return this.statusCode >= 400 && this.statusCode <= 499;
}
get serverError() {
return this.statusCode >= 500 && this.statusCode <= 599;
}
get redirected() {
return this.response.redirected;
}
get location() {
return expandURL(this.response.url);
}
get isHTML() {
return this.contentType && this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/);
}
get statusCode() {
return this.response.status;
}
get contentType() {
return this.header("Content-Type");
}
get responseText() {
return this.response.clone().text();
}
get responseHTML() {
if (this.isHTML) {
return this.response.clone().text();
} else {
return Promise.resolve(void 0);
}
}
header(name) {
return this.response.headers.get(name);
}
};
(function(FetchMethod2) {
FetchMethod2[FetchMethod2["get"] = 0] = "get";
FetchMethod2[FetchMethod2["post"] = 1] = "post";
FetchMethod2[FetchMethod2["put"] = 2] = "put";
FetchMethod2[FetchMethod2["patch"] = 3] = "patch";
FetchMethod2[FetchMethod2["delete"] = 4] = "delete";
})(FetchMethod || (FetchMethod = {}));
FetchRequest = class {
constructor(delegate, method, location2, body = new URLSearchParams(), target = null) {
this.abortController = new AbortController();
this.resolveRequestPromise = (_value) => {
};
this.delegate = delegate;
this.method = method;
this.headers = this.defaultHeaders;
this.body = body;
this.url = location2;
this.target = target;
}
get location() {
return this.url;
}
get params() {
return this.url.searchParams;
}
get entries() {
return this.body ? Array.from(this.body.entries()) : [];
}
cancel() {
this.abortController.abort();
}
async perform() {
const { fetchOptions } = this;
this.delegate.prepareRequest(this);
await this.allowRequestToBeIntercepted(fetchOptions);
try {
this.delegate.requestStarted(this);
const response = await fetch(this.url.href, fetchOptions);
return await this.receive(response);
} catch (error2) {
if (error2.name !== "AbortError") {
if (this.willDelegateErrorHandling(error2)) {
this.delegate.requestErrored(this, error2);
}
throw error2;
}
} finally {
this.delegate.requestFinished(this);
}
}
async receive(response) {
const fetchResponse = new FetchResponse(response);
const event = dispatch("turbo:before-fetch-response", {
cancelable: true,
detail: { fetchResponse },
target: this.target
});
if (event.defaultPrevented) {
this.delegate.requestPreventedHandlingResponse(this, fetchResponse);
} else if (fetchResponse.succeeded) {
this.delegate.requestSucceededWithResponse(this, fetchResponse);
} else {
this.delegate.requestFailedWithResponse(this, fetchResponse);
}
return fetchResponse;
}
get fetchOptions() {
var _a;
return {
method: FetchMethod[this.method].toUpperCase(),
credentials: "same-origin",
headers: this.headers,
redirect: "follow",
body: this.isSafe ? null : this.body,
signal: this.abortSignal,
referrer: (_a = this.delegate.referrer) === null || _a === void 0 ? void 0 : _a.href
};
}
get defaultHeaders() {
return {
Accept: "text/html, application/xhtml+xml"
};
}
get isSafe() {
return this.method === FetchMethod.get;
}
get abortSignal() {
return this.abortController.signal;
}
acceptResponseType(mimeType) {
this.headers["Accept"] = [mimeType, this.headers["Accept"]].join(", ");
}
async allowRequestToBeIntercepted(fetchOptions) {
const requestInterception = new Promise((resolve3) => this.resolveRequestPromise = resolve3);
const event = dispatch("turbo:before-fetch-request", {
cancelable: true,
detail: {
fetchOptions,
url: this.url,
resume: this.resolveRequestPromise
},
target: this.target
});
if (event.defaultPrevented)
await requestInterception;
}
willDelegateErrorHandling(error2) {
const event = dispatch("turbo:fetch-request-error", {
target: this.target,
cancelable: true,
detail: { request: this, error: error2 }
});
return !event.defaultPrevented;
}
};
AppearanceObserver = class {
constructor(delegate, element) {
this.started = false;
this.intersect = (entries) => {
const lastEntry = entries.slice(-1)[0];
if (lastEntry === null || lastEntry === void 0 ? void 0 : lastEntry.isIntersecting) {
this.delegate.elementAppearedInViewport(this.element);
}
};
this.delegate = delegate;
this.element = element;
this.intersectionObserver = new IntersectionObserver(this.intersect);
}
start() {
if (!this.started) {
this.started = true;
this.intersectionObserver.observe(this.element);
}
}
stop() {
if (this.started) {
this.started = false;
this.intersectionObserver.unobserve(this.element);
}
}
};
StreamMessage = class {
static wrap(message) {
if (typeof message == "string") {
return new this(createDocumentFragment(message));
} else {
return message;
}
}
constructor(fragment) {
this.fragment = importStreamElements(fragment);
}
};
StreamMessage.contentType = "text/vnd.turbo-stream.html";
(function(FormSubmissionState2) {
FormSubmissionState2[FormSubmissionState2["initialized"] = 0] = "initialized";
FormSubmissionState2[FormSubmissionState2["requesting"] = 1] = "requesting";
FormSubmissionState2[FormSubmissionState2["waiting"] = 2] = "waiting";
FormSubmissionState2[FormSubmissionState2["receiving"] = 3] = "receiving";
FormSubmissionState2[FormSubmissionState2["stopping"] = 4] = "stopping";
FormSubmissionState2[FormSubmissionState2["stopped"] = 5] = "stopped";
})(FormSubmissionState || (FormSubmissionState = {}));
(function(FormEnctype2) {
FormEnctype2["urlEncoded"] = "application/x-www-form-urlencoded";
FormEnctype2["multipart"] = "multipart/form-data";
FormEnctype2["plain"] = "text/plain";
})(FormEnctype || (FormEnctype = {}));
FormSubmission = class {
static confirmMethod(message, _element, _submitter) {
return Promise.resolve(confirm(message));
}
constructor(delegate, formElement, submitter, mustRedirect = false) {
this.state = FormSubmissionState.initialized;
this.delegate = delegate;
this.formElement = formElement;
this.submitter = submitter;
this.formData = buildFormData(formElement, submitter);
this.location = expandURL(this.action);
if (this.method == FetchMethod.get) {
mergeFormDataEntries(this.location, [...this.body.entries()]);
}
this.fetchRequest = new FetchRequest(this, this.method, this.location, this.body, this.formElement);
this.mustRedirect = mustRedirect;
}
get method() {
var _a;
const method = ((_a = this.submitter) === null || _a === void 0 ? void 0 : _a.getAttribute("formmethod")) || this.formElement.getAttribute("method") || "";
return fetchMethodFromString(method.toLowerCase()) || FetchMethod.get;
}
get action() {
var _a;
const formElementAction = typeof this.formElement.action === "string" ? this.formElement.action : null;
if ((_a = this.submitter) === null || _a === void 0 ? void 0 : _a.hasAttribute("formaction")) {
return this.submitter.getAttribute("formaction") || "";
} else {
return this.formElement.getAttribute("action") || formElementAction || "";
}
}
get body() {
if (this.enctype == FormEnctype.urlEncoded || this.method == FetchMethod.get) {
return new URLSearchParams(this.stringFormData);
} else {
return this.formData;
}
}
get enctype() {
var _a;
return formEnctypeFromString(((_a = this.submitter) === null || _a === void 0 ? void 0 : _a.getAttribute("formenctype")) || this.formElement.enctype);
}
get isSafe() {
return this.fetchRequest.isSafe;
}
get stringFormData() {
return [...this.formData].reduce((entries, [name, value]) => {
return entries.concat(typeof value == "string" ? [[name, value]] : []);
}, []);
}
async start() {
const { initialized, requesting } = FormSubmissionState;
const confirmationMessage = getAttribute("data-turbo-confirm", this.submitter, this.formElement);
if (typeof confirmationMessage === "string") {
const answer = await FormSubmission.confirmMethod(confirmationMessage, this.formElement, this.submitter);
if (!answer) {
return;
}
}
if (this.state == initialized) {
this.state = requesting;
return this.fetchRequest.perform();
}
}
stop() {
const { stopping, stopped } = FormSubmissionState;
if (this.state != stopping && this.state != stopped) {
this.state = stopping;
this.fetchRequest.cancel();
return true;
}
}
prepareRequest(request) {
if (!request.isSafe) {
const token = getCookieValue(getMetaContent("csrf-param")) || getMetaContent("csrf-token");
if (token) {
request.headers["X-CSRF-Token"] = token;
}
}
if (this.requestAcceptsTurboStreamResponse(request)) {
request.acceptResponseType(StreamMessage.contentType);
}
}
requestStarted(_request) {
var _a;
this.state = FormSubmissionState.waiting;
(_a = this.submitter) === null || _a === void 0 ? void 0 : _a.setAttribute("disabled", "");
this.setSubmitsWith();
dispatch("turbo:submit-start", {
target: this.formElement,
detail: { formSubmission: this }
});
this.delegate.formSubmissionStarted(this);
}
requestPreventedHandlingResponse(request, response) {
this.result = { success: response.succeeded, fetchResponse: response };
}
requestSucceededWithResponse(request, response) {
if (response.clientError || response.serverError) {
this.delegate.formSubmissionFailedWithResponse(this, response);
} else if (this.requestMustRedirect(request) && responseSucceededWithoutRedirect(response)) {
const error2 = new Error("Form responses must redirect to another location");
this.delegate.formSubmissionErrored(this, error2);
} else {
this.state = FormSubmissionState.receiving;
this.result = { success: true, fetchResponse: response };
this.delegate.formSubmissionSucceededWithResponse(this, response);
}
}
requestFailedWithResponse(request, response) {
this.result = { success: false, fetchResponse: response };
this.delegate.formSubmissionFailedWithResponse(this, response);
}
requestErrored(request, error2) {
this.result = { success: false, error: error2 };
this.delegate.formSubmissionErrored(this, error2);
}
requestFinished(_request) {
var _a;
this.state = FormSubmissionState.stopped;
(_a = this.submitter) === null || _a === void 0 ? void 0 : _a.removeAttribute("disabled");
this.resetSubmitterText();
dispatch("turbo:submit-end", {
target: this.formElement,
detail: Object.assign({ formSubmission: this }, this.result)
});
this.delegate.formSubmissionFinished(this);
}
setSubmitsWith() {
if (!this.submitter || !this.submitsWith)
return;
if (this.submitter.matches("button")) {
this.originalSubmitText = this.submitter.innerHTML;
this.submitter.innerHTML = this.submitsWith;
} else if (this.submitter.matches("input")) {
const input = this.submitter;
this.originalSubmitText = input.value;
input.value = this.submitsWith;
}
}
resetSubmitterText() {
if (!this.submitter || !this.originalSubmitText)
return;
if (this.submitter.matches("button")) {
this.submitter.innerHTML = this.originalSubmitText;
} else if (this.submitter.matches("input")) {
const input = this.submitter;
input.value = this.originalSubmitText;
}
}
requestMustRedirect(request) {
return !request.isSafe && this.mustRedirect;
}
requestAcceptsTurboStreamResponse(request) {
return !request.isSafe || hasAttribute("data-turbo-stream", this.submitter, this.formElement);
}
get submitsWith() {
var _a;
return (_a = this.submitter) === null || _a === void 0 ? void 0 : _a.getAttribute("data-turbo-submits-with");
}
};
Snapshot = class {
constructor(element) {
this.element = element;
}
get activeElement() {
return this.element.ownerDocument.activeElement;
}
get children() {
return [...this.element.children];
}
hasAnchor(anchor) {
return this.getElementForAnchor(anchor) != null;
}
getElementForAnchor(anchor) {
return anchor ? this.element.querySelector(`[id='${anchor}'], a[name='${anchor}']`) : null;
}
get isConnected() {
return this.element.isConnected;
}
get firstAutofocusableElement() {
const inertDisabledOrHidden = "[inert], :disabled, [hidden], details:not([open]), dialog:not([open])";
for (const element of this.element.querySelectorAll("[autofocus]")) {
if (element.closest(inertDisabledOrHidden) == null)
return element;
else
continue;
}
return null;
}
get permanentElements() {
return queryPermanentElementsAll(this.element);
}
getPermanentElementById(id) {
return getPermanentElementById(this.element, id);
}
getPermanentElementMapForSnapshot(snapshot) {
const permanentElementMap = {};
for (const currentPermanentElement of this.permanentElements) {
const { id } = currentPermanentElement;
const newPermanentElement = snapshot.getPermanentElementById(id);
if (newPermanentElement) {
permanentElementMap[id] = [currentPermanentElement, newPermanentElement];
}
}
return permanentElementMap;
}
};
FormSubmitObserver = class {
constructor(delegate, eventTarget) {
this.started = false;
this.submitCaptured = () => {
this.eventTarget.removeEventListener("submit", this.submitBubbled, false);
this.eventTarget.addEventListener("submit", this.submitBubbled, false);
};
this.submitBubbled = (event) => {
if (!event.defaultPrevented) {
const form = event.target instanceof HTMLFormElement ? event.target : void 0;
const submitter = event.submitter || void 0;
if (form && submissionDoesNotDismissDialog(form, submitter) && submissionDoesNotTargetIFrame(form, submitter) && this.delegate.willSubmitForm(form, submitter)) {
event.preventDefault();
event.stopImmediatePropagation();
this.delegate.formSubmitted(form, submitter);
}
}
};
this.delegate = delegate;
this.eventTarget = eventTarget;
}
start() {
if (!this.started) {
this.eventTarget.addEventListener("submit", this.submitCaptured, true);
this.started = true;
}
}
stop() {
if (this.started) {
this.eventTarget.removeEventListener("submit", this.submitCaptured, true);
this.started = false;
}
}
};
View = class {
constructor(delegate, element) {
this.resolveRenderPromise = (_value) => {
};
this.resolveInterceptionPromise = (_value) => {
};
this.delegate = delegate;
this.element = element;
}
scrollToAnchor(anchor) {
const element = this.snapshot.getElementForAnchor(anchor);
if (element) {
this.scrollToElement(element);
this.focusElement(element);
} else {
this.scrollToPosition({ x: 0, y: 0 });
}
}
scrollToAnchorFromLocation(location2) {
this.scrollToAnchor(getAnchor(location2));
}
scrollToElement(element) {
element.scrollIntoView();
}
focusElement(element) {
if (element instanceof HTMLElement) {
if (element.hasAttribute("tabindex")) {
element.focus();
} else {
element.setAttribute("tabindex", "-1");
element.focus();
element.removeAttribute("tabindex");
}
}
}
scrollToPosition({ x: x3, y: y3 }) {
this.scrollRoot.scrollTo(x3, y3);
}
scrollToTop() {
this.scrollToPosition({ x: 0, y: 0 });
}
get scrollRoot() {
return window;
}
async render(renderer) {
const { isPreview, shouldRender, newSnapshot: snapshot } = renderer;
if (shouldRender) {
try {
this.renderPromise = new Promise((resolve3) => this.resolveRenderPromise = resolve3);
this.renderer = renderer;
await this.prepareToRenderSnapshot(renderer);
const renderInterception = new Promise((resolve3) => this.resolveInterceptionPromise = resolve3);
const options = { resume: this.resolveInterceptionPromise, render: this.renderer.renderElement };
const immediateRender = this.delegate.allowsImmediateRender(snapshot, options);
if (!immediateRender)
await renderInterception;
await this.renderSnapshot(renderer);
this.delegate.viewRenderedSnapshot(snapshot, isPreview);
this.delegate.preloadOnLoadLinksForView(this.element);
this.finishRenderingSnapshot(renderer);
} finally {
delete this.renderer;
this.resolveRenderPromise(void 0);
delete this.renderPromise;
}
} else {
this.invalidate(renderer.reloadReason);
}
}
invalidate(reason) {
this.delegate.viewInvalidated(reason);
}
async prepareToRenderSnapshot(renderer) {
this.markAsPreview(renderer.isPreview);
await renderer.prepareToRender();
}
markAsPreview(isPreview) {
if (isPreview) {
this.element.setAttribute("data-turbo-preview", "");
} else {
this.element.removeAttribute("data-turbo-preview");
}
}
async renderSnapshot(renderer) {
await renderer.render();
}
finishRenderingSnapshot(renderer) {
renderer.finishRendering();
}
};
FrameView = class extends View {
missing() {
this.element.innerHTML = `Content missing`;
}
get snapshot() {
return new Snapshot(this.element);
}
};
LinkInterceptor = class {
constructor(delegate, element) {
this.clickBubbled = (event) => {
if (this.respondsToEventTarget(event.target)) {
this.clickEvent = event;
} else {
delete this.clickEvent;
}
};
this.linkClicked = (event) => {
if (this.clickEvent && this.respondsToEventTarget(event.target) && event.target instanceof Element) {
if (this.delegate.shouldInterceptLinkClick(event.target, event.detail.url, event.detail.originalEvent)) {
this.clickEvent.preventDefault();
event.preventDefault();
this.delegate.linkClickIntercepted(event.target, event.detail.url, event.detail.originalEvent);
}
}
delete this.clickEvent;
};
this.willVisit = (_event) => {
delete this.clickEvent;
};
this.delegate = delegate;
this.element = element;
}
start() {
this.element.addEventListener("click", this.clickBubbled);
document.addEventListener("turbo:click", this.linkClicked);
document.addEventListener("turbo:before-visit", this.willVisit);
}
stop() {
this.element.removeEventListener("click", this.clickBubbled);
document.removeEventListener("turbo:click", this.linkClicked);
document.removeEventListener("turbo:before-visit", this.willVisit);
}
respondsToEventTarget(target) {
const element = target instanceof Element ? target : target instanceof Node ? target.parentElement : null;
return element && element.closest("turbo-frame, html") == this.element;
}
};
LinkClickObserver = class {
constructor(delegate, eventTarget) {
this.started = false;
this.clickCaptured = () => {
this.eventTarget.removeEventListener("click", this.clickBubbled, false);
this.eventTarget.addEventListener("click", this.clickBubbled, false);
};
this.clickBubbled = (event) => {
if (event instanceof MouseEvent && this.clickEventIsSignificant(event)) {
const target = event.composedPath && event.composedPath()[0] || event.target;
const link = this.findLinkFromClickTarget(target);
if (link && doesNotTargetIFrame(link)) {
const location2 = this.getLocationForLink(link);
if (this.delegate.willFollowLinkToLocation(link, location2, event)) {
event.preventDefault();
this.delegate.followedLinkToLocation(link, location2);
}
}
}
};
this.delegate = delegate;
this.eventTarget = eventTarget;
}
start() {
if (!this.started) {
this.eventTarget.addEventListener("click", this.clickCaptured, true);
this.started = true;
}
}
stop() {
if (this.started) {
this.eventTarget.removeEventListener("click", this.clickCaptured, true);
this.started = false;
}
}
clickEventIsSignificant(event) {
return !(event.target && event.target.isContentEditable || event.defaultPrevented || event.which > 1 || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey);
}
findLinkFromClickTarget(target) {
return findClosestRecursively(target, "a[href]:not([target^=_]):not([download])");
}
getLocationForLink(link) {
return expandURL(link.getAttribute("href") || "");
}
};
FormLinkClickObserver = class {
constructor(delegate, element) {
this.delegate = delegate;
this.linkInterceptor = new LinkClickObserver(this, element);
}
start() {
this.linkInterceptor.start();
}
stop() {
this.linkInterceptor.stop();
}
willFollowLinkToLocation(link, location2, originalEvent) {
return this.delegate.willSubmitFormLinkToLocation(link, location2, originalEvent) && link.hasAttribute("data-turbo-method");
}
followedLinkToLocation(link, location2) {
const form = document.createElement("form");
const type = "hidden";
for (const [name, value] of location2.searchParams) {
form.append(Object.assign(document.createElement("input"), { type, name, value }));
}
const action = Object.assign(location2, { search: "" });
form.setAttribute("data-turbo", "true");
form.setAttribute("action", action.href);
form.setAttribute("hidden", "");
const method = link.getAttribute("data-turbo-method");
if (method)
form.setAttribute("method", method);
const turboFrame = link.getAttribute("data-turbo-frame");
if (turboFrame)
form.setAttribute("data-turbo-frame", turboFrame);
const turboAction = getVisitAction(link);
if (turboAction)
form.setAttribute("data-turbo-action", turboAction);
const turboConfirm = link.getAttribute("data-turbo-confirm");
if (turboConfirm)
form.setAttribute("data-turbo-confirm", turboConfirm);
const turboStream = link.hasAttribute("data-turbo-stream");
if (turboStream)
form.setAttribute("data-turbo-stream", "");
this.delegate.submittedFormLinkToLocation(link, location2, form);
document.body.appendChild(form);
form.addEventListener("turbo:submit-end", () => form.remove(), { once: true });
requestAnimationFrame(() => form.requestSubmit());
}
};
Bardo = class {
static async preservingPermanentElements(delegate, permanentElementMap, callback2) {
const bardo = new this(delegate, permanentElementMap);
bardo.enter();
await callback2();
bardo.leave();
}
constructor(delegate, permanentElementMap) {
this.delegate = delegate;
this.permanentElementMap = permanentElementMap;
}
enter() {
for (const id in this.permanentElementMap) {
const [currentPermanentElement, newPermanentElement] = this.permanentElementMap[id];
this.delegate.enteringBardo(currentPermanentElement, newPermanentElement);
this.replaceNewPermanentElementWithPlaceholder(newPermanentElement);
}
}
leave() {
for (const id in this.permanentElementMap) {
const [currentPermanentElement] = this.permanentElementMap[id];
this.replaceCurrentPermanentElementWithClone(currentPermanentElement);
this.replacePlaceholderWithPermanentElement(currentPermanentElement);
this.delegate.leavingBardo(currentPermanentElement);
}
}
replaceNewPermanentElementWithPlaceholder(permanentElement) {
const placeholder = createPlaceholderForPermanentElement(permanentElement);
permanentElement.replaceWith(placeholder);
}
replaceCurrentPermanentElementWithClone(permanentElement) {
const clone2 = permanentElement.cloneNode(true);
permanentElement.replaceWith(clone2);
}
replacePlaceholderWithPermanentElement(permanentElement) {
const placeholder = this.getPlaceholderById(permanentElement.id);
placeholder === null || placeholder === void 0 ? void 0 : placeholder.replaceWith(permanentElement);
}
getPlaceholderById(id) {
return this.placeholders.find((element) => element.content == id);
}
get placeholders() {
return [...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")];
}
};
Renderer = class {
constructor(currentSnapshot, newSnapshot, renderElement, isPreview, willRender = true) {
this.activeElement = null;
this.currentSnapshot = currentSnapshot;
this.newSnapshot = newSnapshot;
this.isPreview = isPreview;
this.willRender = willRender;
this.renderElement = renderElement;
this.promise = new Promise((resolve3, reject) => this.resolvingFunctions = { resolve: resolve3, reject });
}
get shouldRender() {
return true;
}
get reloadReason() {
return;
}
prepareToRender() {
return;
}
finishRendering() {
if (this.resolvingFunctions) {
this.resolvingFunctions.resolve();
delete this.resolvingFunctions;
}
}
async preservingPermanentElements(callback2) {
await Bardo.preservingPermanentElements(this, this.permanentElementMap, callback2);
}
focusFirstAutofocusableElement() {
const element = this.connectedSnapshot.firstAutofocusableElement;
if (elementIsFocusable(element)) {
element.focus();
}
}
enteringBardo(currentPermanentElement) {
if (this.activeElement)
return;
if (currentPermanentElement.contains(this.currentSnapshot.activeElement)) {
this.activeElement = this.currentSnapshot.activeElement;
}
}
leavingBardo(currentPermanentElement) {
if (currentPermanentElement.contains(this.activeElement) && this.activeElement instanceof HTMLElement) {
this.activeElement.focus();
this.activeElement = null;
}
}
get connectedSnapshot() {
return this.newSnapshot.isConnected ? this.newSnapshot : this.currentSnapshot;
}
get currentElement() {
return this.currentSnapshot.element;
}
get newElement() {
return this.newSnapshot.element;
}
get permanentElementMap() {
return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot);
}
};
FrameRenderer = class extends Renderer {
static renderElement(currentElement, newElement) {
var _a;
const destinationRange = document.createRange();
destinationRange.selectNodeContents(currentElement);
destinationRange.deleteContents();
const frameElement = newElement;
const sourceRange = (_a = frameElement.ownerDocument) === null || _a === void 0 ? void 0 : _a.createRange();
if (sourceRange) {
sourceRange.selectNodeContents(frameElement);
currentElement.appendChild(sourceRange.extractContents());
}
}
constructor(delegate, currentSnapshot, newSnapshot, renderElement, isPreview, willRender = true) {
super(currentSnapshot, newSnapshot, renderElement, isPreview, willRender);
this.delegate = delegate;
}
get shouldRender() {
return true;
}
async render() {
await nextAnimationFrame();
this.preservingPermanentElements(() => {
this.loadFrameElement();
});
this.scrollFrameIntoView();
await nextAnimationFrame();
this.focusFirstAutofocusableElement();
await nextAnimationFrame();
this.activateScriptElements();
}
loadFrameElement() {
this.delegate.willRenderFrame(this.currentElement, this.newElement);
this.renderElement(this.currentElement, this.newElement);
}
scrollFrameIntoView() {
if (this.currentElement.autoscroll || this.newElement.autoscroll) {
const element = this.currentElement.firstElementChild;
const block = readScrollLogicalPosition(this.currentElement.getAttribute("data-autoscroll-block"), "end");
const behavior = readScrollBehavior(this.currentElement.getAttribute("data-autoscroll-behavior"), "auto");
if (element) {
element.scrollIntoView({ block, behavior });
return true;
}
}
return false;
}
activateScriptElements() {
for (const inertScriptElement of this.newScriptElements) {
const activatedScriptElement = activateScriptElement(inertScriptElement);
inertScriptElement.replaceWith(activatedScriptElement);
}
}
get newScriptElements() {
return this.currentElement.querySelectorAll("script");
}
};
ProgressBar = class {
static get defaultCSS() {
return unindent`
.turbo-progress-bar {
position: fixed;
display: block;
top: 0;
left: 0;
height: 3px;
background: #0076ff;
z-index: 2147483647;
transition:
width ${ProgressBar.animationDuration}ms ease-out,
opacity ${ProgressBar.animationDuration / 2}ms ${ProgressBar.animationDuration / 2}ms ease-in;
transform: translate3d(0, 0, 0);
}
`;
}
constructor() {
this.hiding = false;
this.value = 0;
this.visible = false;
this.trickle = () => {
this.setValue(this.value + Math.random() / 100);
};
this.stylesheetElement = this.createStylesheetElement();
this.progressElement = this.createProgressElement();
this.installStylesheetElement();
this.setValue(0);
}
show() {
if (!this.visible) {
this.visible = true;
this.installProgressElement();
this.startTrickling();
}
}
hide() {
if (this.visible && !this.hiding) {
this.hiding = true;
this.fadeProgressElement(() => {
this.uninstallProgressElement();
this.stopTrickling();
this.visible = false;
this.hiding = false;
});
}
}
setValue(value) {
this.value = value;
this.refresh();
}
installStylesheetElement() {
document.head.insertBefore(this.stylesheetElement, document.head.firstChild);
}
installProgressElement() {
this.progressElement.style.width = "0";
this.progressElement.style.opacity = "1";
document.documentElement.insertBefore(this.progressElement, document.body);
this.refresh();
}
fadeProgressElement(callback2) {
this.progressElement.style.opacity = "0";
setTimeout(callback2, ProgressBar.animationDuration * 1.5);
}
uninstallProgressElement() {
if (this.progressElement.parentNode) {
document.documentElement.removeChild(this.progressElement);
}
}
startTrickling() {
if (!this.trickleInterval) {
this.trickleInterval = window.setInterval(this.trickle, ProgressBar.animationDuration);
}
}
stopTrickling() {
window.clearInterval(this.trickleInterval);
delete this.trickleInterval;
}
refresh() {
requestAnimationFrame(() => {
this.progressElement.style.width = `${10 + this.value * 90}%`;
});
}
createStylesheetElement() {
const element = document.createElement("style");
element.type = "text/css";
element.textContent = ProgressBar.defaultCSS;
if (this.cspNonce) {
element.nonce = this.cspNonce;
}
return element;
}
createProgressElement() {
const element = document.createElement("div");
element.className = "turbo-progress-bar";
return element;
}
get cspNonce() {
return getMetaContent("csp-nonce");
}
};
ProgressBar.animationDuration = 300;
HeadSnapshot = class extends Snapshot {
constructor() {
super(...arguments);
this.detailsByOuterHTML = this.children.filter((element) => !elementIsNoscript(element)).map((element) => elementWithoutNonce(element)).reduce((result, element) => {
const { outerHTML } = element;
const details = outerHTML in result ? result[outerHTML] : {
type: elementType(element),
tracked: elementIsTracked(element),
elements: []
};
return Object.assign(Object.assign({}, result), { [outerHTML]: Object.assign(Object.assign({}, details), { elements: [...details.elements, element] }) });
}, {});
}
get trackedElementSignature() {
return Object.keys(this.detailsByOuterHTML).filter((outerHTML) => this.detailsByOuterHTML[outerHTML].tracked).join("");
}
getScriptElementsNotInSnapshot(snapshot) {
return this.getElementsMatchingTypeNotInSnapshot("script", snapshot);
}
getStylesheetElementsNotInSnapshot(snapshot) {
return this.getElementsMatchingTypeNotInSnapshot("stylesheet", snapshot);
}
getElementsMatchingTypeNotInSnapshot(matchedType, snapshot) {
return Object.keys(this.detailsByOuterHTML).filter((outerHTML) => !(outerHTML in snapshot.detailsByOuterHTML)).map((outerHTML) => this.detailsByOuterHTML[outerHTML]).filter(({ type }) => type == matchedType).map(({ elements: [element] }) => element);
}
get provisionalElements() {
return Object.keys(this.detailsByOuterHTML).reduce((result, outerHTML) => {
const { type, tracked, elements: elements2 } = this.detailsByOuterHTML[outerHTML];
if (type == null && !tracked) {
return [...result, ...elements2];
} else if (elements2.length > 1) {
return [...result, ...elements2.slice(1)];
} else {
return result;
}
}, []);
}
getMetaValue(name) {
const element = this.findMetaElementByName(name);
return element ? element.getAttribute("content") : null;
}
findMetaElementByName(name) {
return Object.keys(this.detailsByOuterHTML).reduce((result, outerHTML) => {
const { elements: [element] } = this.detailsByOuterHTML[outerHTML];
return elementIsMetaElementWithName(element, name) ? element : result;
}, void 0);
}
};
PageSnapshot = class extends Snapshot {
static fromHTMLString(html = "") {
return this.fromDocument(parseHTMLDocument(html));
}
static fromElement(element) {
return this.fromDocument(element.ownerDocument);
}
static fromDocument({ head, body }) {
return new this(body, new HeadSnapshot(head));
}
constructor(element, headSnapshot) {
super(element);
this.headSnapshot = headSnapshot;
}
clone() {
const clonedElement = this.element.cloneNode(true);
const selectElements = this.element.querySelectorAll("select");
const clonedSelectElements = clonedElement.querySelectorAll("select");
for (const [index2, source] of selectElements.entries()) {
const clone2 = clonedSelectElements[index2];
for (const option of clone2.selectedOptions)
option.selected = false;
for (const option of source.selectedOptions)
clone2.options[option.index].selected = true;
}
for (const clonedPasswordInput of clonedElement.querySelectorAll('input[type="password"]')) {
clonedPasswordInput.value = "";
}
return new PageSnapshot(clonedElement, this.headSnapshot);
}
get headElement() {
return this.headSnapshot.element;
}
get rootLocation() {
var _a;
const root = (_a = this.getSetting("root")) !== null && _a !== void 0 ? _a : "/";
return expandURL(root);
}
get cacheControlValue() {
return this.getSetting("cache-control");
}
get isPreviewable() {
return this.cacheControlValue != "no-preview";
}
get isCacheable() {
return this.cacheControlValue != "no-cache";
}
get isVisitable() {
return this.getSetting("visit-control") != "reload";
}
getSetting(name) {
return this.headSnapshot.getMetaValue(`turbo-${name}`);
}
};
(function(TimingMetric2) {
TimingMetric2["visitStart"] = "visitStart";
TimingMetric2["requestStart"] = "requestStart";
TimingMetric2["requestEnd"] = "requestEnd";
TimingMetric2["visitEnd"] = "visitEnd";
})(TimingMetric || (TimingMetric = {}));
(function(VisitState2) {
VisitState2["initialized"] = "initialized";
VisitState2["started"] = "started";
VisitState2["canceled"] = "canceled";
VisitState2["failed"] = "failed";
VisitState2["completed"] = "completed";
})(VisitState || (VisitState = {}));
defaultOptions = {
action: "advance",
historyChanged: false,
visitCachedSnapshot: () => {
},
willRender: true,
updateHistory: true,
shouldCacheSnapshot: true,
acceptsStreamResponse: false
};
(function(SystemStatusCode2) {
SystemStatusCode2[SystemStatusCode2["networkFailure"] = 0] = "networkFailure";
SystemStatusCode2[SystemStatusCode2["timeoutFailure"] = -1] = "timeoutFailure";
SystemStatusCode2[SystemStatusCode2["contentTypeMismatch"] = -2] = "contentTypeMismatch";
})(SystemStatusCode || (SystemStatusCode = {}));
Visit = class {
constructor(delegate, location2, restorationIdentifier, options = {}) {
this.identifier = uuid();
this.timingMetrics = {};
this.followedRedirect = false;
this.historyChanged = false;
this.scrolled = false;
this.shouldCacheSnapshot = true;
this.acceptsStreamResponse = false;
this.snapshotCached = false;
this.state = VisitState.initialized;
this.delegate = delegate;
this.location = location2;
this.restorationIdentifier = restorationIdentifier || uuid();
const { action, historyChanged, referrer, snapshot, snapshotHTML, response, visitCachedSnapshot, willRender, updateHistory, shouldCacheSnapshot, acceptsStreamResponse } = Object.assign(Object.assign({}, defaultOptions), options);
this.action = action;
this.historyChanged = historyChanged;
this.referrer = referrer;
this.snapshot = snapshot;
this.snapshotHTML = snapshotHTML;
this.response = response;
this.isSamePage = this.delegate.locationWithActionIsSamePage(this.location, this.action);
this.visitCachedSnapshot = visitCachedSnapshot;
this.willRender = willRender;
this.updateHistory = updateHistory;
this.scrolled = !willRender;
this.shouldCacheSnapshot = shouldCacheSnapshot;
this.acceptsStreamResponse = acceptsStreamResponse;
}
get adapter() {
return this.delegate.adapter;
}
get view() {
return this.delegate.view;
}
get history() {
return this.delegate.history;
}
get restorationData() {
return this.history.getRestorationDataForIdentifier(this.restorationIdentifier);
}
get silent() {
return this.isSamePage;
}
start() {
if (this.state == VisitState.initialized) {
this.recordTimingMetric(TimingMetric.visitStart);
this.state = VisitState.started;
this.adapter.visitStarted(this);
this.delegate.visitStarted(this);
}
}
cancel() {
if (this.state == VisitState.started) {
if (this.request) {
this.request.cancel();
}
this.cancelRender();
this.state = VisitState.canceled;
}
}
complete() {
if (this.state == VisitState.started) {
this.recordTimingMetric(TimingMetric.visitEnd);
this.state = VisitState.completed;
this.followRedirect();
if (!this.followedRedirect) {
this.adapter.visitCompleted(this);
this.delegate.visitCompleted(this);
}
}
}
fail() {
if (this.state == VisitState.started) {
this.state = VisitState.failed;
this.adapter.visitFailed(this);
}
}
changeHistory() {
var _a;
if (!this.historyChanged && this.updateHistory) {
const actionForHistory = this.location.href === ((_a = this.referrer) === null || _a === void 0 ? void 0 : _a.href) ? "replace" : this.action;
const method = getHistoryMethodForAction(actionForHistory);
this.history.update(method, this.location, this.restorationIdentifier);
this.historyChanged = true;
}
}
issueRequest() {
if (this.hasPreloadedResponse()) {
this.simulateRequest();
} else if (this.shouldIssueRequest() && !this.request) {
this.request = new FetchRequest(this, FetchMethod.get, this.location);
this.request.perform();
}
}
simulateRequest() {
if (this.response) {
this.startRequest();
this.recordResponse();
this.finishRequest();
}
}
startRequest() {
this.recordTimingMetric(TimingMetric.requestStart);
this.adapter.visitRequestStarted(this);
}
recordResponse(response = this.response) {
this.response = response;
if (response) {
const { statusCode } = response;
if (isSuccessful(statusCode)) {
this.adapter.visitRequestCompleted(this);
} else {
this.adapter.visitRequestFailedWithStatusCode(this, statusCode);
}
}
}
finishRequest() {
this.recordTimingMetric(TimingMetric.requestEnd);
this.adapter.visitRequestFinished(this);
}
loadResponse() {
if (this.response) {
const { statusCode, responseHTML } = this.response;
this.render(async () => {
if (this.shouldCacheSnapshot)
this.cacheSnapshot();
if (this.view.renderPromise)
await this.view.renderPromise;
if (isSuccessful(statusCode) && responseHTML != null) {
await this.view.renderPage(PageSnapshot.fromHTMLString(responseHTML), false, this.willRender, this);
this.performScroll();
this.adapter.visitRendered(this);
this.complete();
} else {
await this.view.renderError(PageSnapshot.fromHTMLString(responseHTML), this);
this.adapter.visitRendered(this);
this.fail();
}
});
}
}
getCachedSnapshot() {
const snapshot = this.view.getCachedSnapshotForLocation(this.location) || this.getPreloadedSnapshot();
if (snapshot && (!getAnchor(this.location) || snapshot.hasAnchor(getAnchor(this.location)))) {
if (this.action == "restore" || snapshot.isPreviewable) {
return snapshot;
}
}
}
getPreloadedSnapshot() {
if (this.snapshotHTML) {
return PageSnapshot.fromHTMLString(this.snapshotHTML);
}
}
hasCachedSnapshot() {
return this.getCachedSnapshot() != null;
}
loadCachedSnapshot() {
const snapshot = this.getCachedSnapshot();
if (snapshot) {
const isPreview = this.shouldIssueRequest();
this.render(async () => {
this.cacheSnapshot();
if (this.isSamePage) {
this.adapter.visitRendered(this);
} else {
if (this.view.renderPromise)
await this.view.renderPromise;
await this.view.renderPage(snapshot, isPreview, this.willRender, this);
this.performScroll();
this.adapter.visitRendered(this);
if (!isPreview) {
this.complete();
}
}
});
}
}
followRedirect() {
var _a;
if (this.redirectedToLocation && !this.followedRedirect && ((_a = this.response) === null || _a === void 0 ? void 0 : _a.redirected)) {
this.adapter.visitProposedToLocation(this.redirectedToLocation, {
action: "replace",
response: this.response,
shouldCacheSnapshot: false,
willRender: false
});
this.followedRedirect = true;
}
}
goToSamePageAnchor() {
if (this.isSamePage) {
this.render(async () => {
this.cacheSnapshot();
this.performScroll();
this.changeHistory();
this.adapter.visitRendered(this);
});
}
}
prepareRequest(request) {
if (this.acceptsStreamResponse) {
request.acceptResponseType(StreamMessage.contentType);
}
}
requestStarted() {
this.startRequest();
}
requestPreventedHandlingResponse(_request, _response) {
}
async requestSucceededWithResponse(request, response) {
const responseHTML = await response.responseHTML;
const { redirected, statusCode } = response;
if (responseHTML == void 0) {
this.recordResponse({
statusCode: SystemStatusCode.contentTypeMismatch,
redirected
});
} else {
this.redirectedToLocation = response.redirected ? response.location : void 0;
this.recordResponse({ statusCode, responseHTML, redirected });
}
}
async requestFailedWithResponse(request, response) {
const responseHTML = await response.responseHTML;
const { redirected, statusCode } = response;
if (responseHTML == void 0) {
this.recordResponse({
statusCode: SystemStatusCode.contentTypeMismatch,
redirected
});
} else {
this.recordResponse({ statusCode, responseHTML, redirected });
}
}
requestErrored(_request, _error) {
this.recordResponse({
statusCode: SystemStatusCode.networkFailure,
redirected: false
});
}
requestFinished() {
this.finishRequest();
}
performScroll() {
if (!this.scrolled && !this.view.forceReloaded) {
if (this.action == "restore") {
this.scrollToRestoredPosition() || this.scrollToAnchor() || this.view.scrollToTop();
} else {
this.scrollToAnchor() || this.view.scrollToTop();
}
if (this.isSamePage) {
this.delegate.visitScrolledToSamePageLocation(this.view.lastRenderedLocation, this.location);
}
this.scrolled = true;
}
}
scrollToRestoredPosition() {
const { scrollPosition } = this.restorationData;
if (scrollPosition) {
this.view.scrollToPosition(scrollPosition);
return true;
}
}
scrollToAnchor() {
const anchor = getAnchor(this.location);
if (anchor != null) {
this.view.scrollToAnchor(anchor);
return true;
}
}
recordTimingMetric(metric) {
this.timingMetrics[metric] = new Date().getTime();
}
getTimingMetrics() {
return Object.assign({}, this.timingMetrics);
}
getHistoryMethodForAction(action) {
switch (action) {
case "replace":
return history.replaceState;
case "advance":
case "restore":
return history.pushState;
}
}
hasPreloadedResponse() {
return typeof this.response == "object";
}
shouldIssueRequest() {
if (this.isSamePage) {
return false;
} else if (this.action == "restore") {
return !this.hasCachedSnapshot();
} else {
return this.willRender;
}
}
cacheSnapshot() {
if (!this.snapshotCached) {
this.view.cacheSnapshot(this.snapshot).then((snapshot) => snapshot && this.visitCachedSnapshot(snapshot));
this.snapshotCached = true;
}
}
async render(callback2) {
this.cancelRender();
await new Promise((resolve3) => {
this.frame = requestAnimationFrame(() => resolve3());
});
await callback2();
delete this.frame;
}
cancelRender() {
if (this.frame) {
cancelAnimationFrame(this.frame);
delete this.frame;
}
}
};
BrowserAdapter = class {
constructor(session2) {
this.progressBar = new ProgressBar();
this.showProgressBar = () => {
this.progressBar.show();
};
this.session = session2;
}
visitProposedToLocation(location2, options) {
this.navigator.startVisit(location2, (options === null || options === void 0 ? void 0 : options.restorationIdentifier) || uuid(), options);
}
visitStarted(visit2) {
this.location = visit2.location;
visit2.loadCachedSnapshot();
visit2.issueRequest();
visit2.goToSamePageAnchor();
}
visitRequestStarted(visit2) {
this.progressBar.setValue(0);
if (visit2.hasCachedSnapshot() || visit2.action != "restore") {
this.showVisitProgressBarAfterDelay();
} else {
this.showProgressBar();
}
}
visitRequestCompleted(visit2) {
visit2.loadResponse();
}
visitRequestFailedWithStatusCode(visit2, statusCode) {
switch (statusCode) {
case SystemStatusCode.networkFailure:
case SystemStatusCode.timeoutFailure:
case SystemStatusCode.contentTypeMismatch:
return this.reload({
reason: "request_failed",
context: {
statusCode
}
});
default:
return visit2.loadResponse();
}
}
visitRequestFinished(_visit) {
this.progressBar.setValue(1);
this.hideVisitProgressBar();
}
visitCompleted(_visit) {
}
pageInvalidated(reason) {
this.reload(reason);
}
visitFailed(_visit) {
}
visitRendered(_visit) {
}
formSubmissionStarted(_formSubmission) {
this.progressBar.setValue(0);
this.showFormProgressBarAfterDelay();
}
formSubmissionFinished(_formSubmission) {
this.progressBar.setValue(1);
this.hideFormProgressBar();
}
showVisitProgressBarAfterDelay() {
this.visitProgressBarTimeout = window.setTimeout(this.showProgressBar, this.session.progressBarDelay);
}
hideVisitProgressBar() {
this.progressBar.hide();
if (this.visitProgressBarTimeout != null) {
window.clearTimeout(this.visitProgressBarTimeout);
delete this.visitProgressBarTimeout;
}
}
showFormProgressBarAfterDelay() {
if (this.formProgressBarTimeout == null) {
this.formProgressBarTimeout = window.setTimeout(this.showProgressBar, this.session.progressBarDelay);
}
}
hideFormProgressBar() {
this.progressBar.hide();
if (this.formProgressBarTimeout != null) {
window.clearTimeout(this.formProgressBarTimeout);
delete this.formProgressBarTimeout;
}
}
reload(reason) {
var _a;
dispatch("turbo:reload", { detail: reason });
window.location.href = ((_a = this.location) === null || _a === void 0 ? void 0 : _a.toString()) || window.location.href;
}
get navigator() {
return this.session.navigator;
}
};
CacheObserver = class {
constructor() {
this.selector = "[data-turbo-temporary]";
this.deprecatedSelector = "[data-turbo-cache=false]";
this.started = false;
this.removeTemporaryElements = (_event) => {
for (const element of this.temporaryElements) {
element.remove();
}
};
}
start() {
if (!this.started) {
this.started = true;
addEventListener("turbo:before-cache", this.removeTemporaryElements, false);
}
}
stop() {
if (this.started) {
this.started = false;
removeEventListener("turbo:before-cache", this.removeTemporaryElements, false);
}
}
get temporaryElements() {
return [...document.querySelectorAll(this.selector), ...this.temporaryElementsWithDeprecation];
}
get temporaryElementsWithDeprecation() {
const elements2 = document.querySelectorAll(this.deprecatedSelector);
if (elements2.length) {
console.warn(`The ${this.deprecatedSelector} selector is deprecated and will be removed in a future version. Use ${this.selector} instead.`);
}
return [...elements2];
}
};
FrameRedirector = class {
constructor(session2, element) {
this.session = session2;
this.element = element;
this.linkInterceptor = new LinkInterceptor(this, element);
this.formSubmitObserver = new FormSubmitObserver(this, element);
}
start() {
this.linkInterceptor.start();
this.formSubmitObserver.start();
}
stop() {
this.linkInterceptor.stop();
this.formSubmitObserver.stop();
}
shouldInterceptLinkClick(element, _location, _event) {
return this.shouldRedirect(element);
}
linkClickIntercepted(element, url, event) {
const frame = this.findFrameElement(element);
if (frame) {
frame.delegate.linkClickIntercepted(element, url, event);
}
}
willSubmitForm(element, submitter) {
return element.closest("turbo-frame") == null && this.shouldSubmit(element, submitter) && this.shouldRedirect(element, submitter);
}
formSubmitted(element, submitter) {
const frame = this.findFrameElement(element, submitter);
if (frame) {
frame.delegate.formSubmitted(element, submitter);
}
}
shouldSubmit(form, submitter) {
var _a;
const action = getAction(form, submitter);
const meta = this.element.ownerDocument.querySelector(`meta[name="turbo-root"]`);
const rootLocation = expandURL((_a = meta === null || meta === void 0 ? void 0 : meta.content) !== null && _a !== void 0 ? _a : "/");
return this.shouldRedirect(form, submitter) && locationIsVisitable(action, rootLocation);
}
shouldRedirect(element, submitter) {
const isNavigatable = element instanceof HTMLFormElement ? this.session.submissionIsNavigatable(element, submitter) : this.session.elementIsNavigatable(element);
if (isNavigatable) {
const frame = this.findFrameElement(element, submitter);
return frame ? frame != element.closest("turbo-frame") : false;
} else {
return false;
}
}
findFrameElement(element, submitter) {
const id = (submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute("data-turbo-frame")) || element.getAttribute("data-turbo-frame");
if (id && id != "_top") {
const frame = this.element.querySelector(`#${id}:not([disabled])`);
if (frame instanceof FrameElement) {
return frame;
}
}
}
};
History = class {
constructor(delegate) {
this.restorationIdentifier = uuid();
this.restorationData = {};
this.started = false;
this.pageLoaded = false;
this.onPopState = (event) => {
if (this.shouldHandlePopState()) {
const { turbo } = event.state || {};
if (turbo) {
this.location = new URL(window.location.href);
const { restorationIdentifier } = turbo;
this.restorationIdentifier = restorationIdentifier;
this.delegate.historyPoppedToLocationWithRestorationIdentifier(this.location, restorationIdentifier);
}
}
};
this.onPageLoad = async (_event) => {
await nextMicrotask();
this.pageLoaded = true;
};
this.delegate = delegate;
}
start() {
if (!this.started) {
addEventListener("popstate", this.onPopState, false);
addEventListener("load", this.onPageLoad, false);
this.started = true;
this.replace(new URL(window.location.href));
}
}
stop() {
if (this.started) {
removeEventListener("popstate", this.onPopState, false);
removeEventListener("load", this.onPageLoad, false);
this.started = false;
}
}
push(location2, restorationIdentifier) {
this.update(history.pushState, location2, restorationIdentifier);
}
replace(location2, restorationIdentifier) {
this.update(history.replaceState, location2, restorationIdentifier);
}
update(method, location2, restorationIdentifier = uuid()) {
const state = { turbo: { restorationIdentifier } };
method.call(history, state, "", location2.href);
this.location = location2;
this.restorationIdentifier = restorationIdentifier;
}
getRestorationDataForIdentifier(restorationIdentifier) {
return this.restorationData[restorationIdentifier] || {};
}
updateRestorationData(additionalData) {
const { restorationIdentifier } = this;
const restorationData = this.restorationData[restorationIdentifier];
this.restorationData[restorationIdentifier] = Object.assign(Object.assign({}, restorationData), additionalData);
}
assumeControlOfScrollRestoration() {
var _a;
if (!this.previousScrollRestoration) {
this.previousScrollRestoration = (_a = history.scrollRestoration) !== null && _a !== void 0 ? _a : "auto";
history.scrollRestoration = "manual";
}
}
relinquishControlOfScrollRestoration() {
if (this.previousScrollRestoration) {
history.scrollRestoration = this.previousScrollRestoration;
delete this.previousScrollRestoration;
}
}
shouldHandlePopState() {
return this.pageIsLoaded();
}
pageIsLoaded() {
return this.pageLoaded || document.readyState == "complete";
}
};
Navigator = class {
constructor(delegate) {
this.delegate = delegate;
}
proposeVisit(location2, options = {}) {
if (this.delegate.allowsVisitingLocationWithAction(location2, options.action)) {
if (locationIsVisitable(location2, this.view.snapshot.rootLocation)) {
this.delegate.visitProposedToLocation(location2, options);
} else {
window.location.href = location2.toString();
}
}
}
startVisit(locatable, restorationIdentifier, options = {}) {
this.stop();
this.currentVisit = new Visit(this, expandURL(locatable), restorationIdentifier, Object.assign({ referrer: this.location }, options));
this.currentVisit.start();
}
submitForm(form, submitter) {
this.stop();
this.formSubmission = new FormSubmission(this, form, submitter, true);
this.formSubmission.start();
}
stop() {
if (this.formSubmission) {
this.formSubmission.stop();
delete this.formSubmission;
}
if (this.currentVisit) {
this.currentVisit.cancel();
delete this.currentVisit;
}
}
get adapter() {
return this.delegate.adapter;
}
get view() {
return this.delegate.view;
}
get history() {
return this.delegate.history;
}
formSubmissionStarted(formSubmission) {
if (typeof this.adapter.formSubmissionStarted === "function") {
this.adapter.formSubmissionStarted(formSubmission);
}
}
async formSubmissionSucceededWithResponse(formSubmission, fetchResponse) {
if (formSubmission == this.formSubmission) {
const responseHTML = await fetchResponse.responseHTML;
if (responseHTML) {
const shouldCacheSnapshot = formSubmission.isSafe;
if (!shouldCacheSnapshot) {
this.view.clearSnapshotCache();
}
const { statusCode, redirected } = fetchResponse;
const action = this.getActionForFormSubmission(formSubmission);
const visitOptions = {
action,
shouldCacheSnapshot,
response: { statusCode, responseHTML, redirected }
};
this.proposeVisit(fetchResponse.location, visitOptions);
}
}
}
async formSubmissionFailedWithResponse(formSubmission, fetchResponse) {
const responseHTML = await fetchResponse.responseHTML;
if (responseHTML) {
const snapshot = PageSnapshot.fromHTMLString(responseHTML);
if (fetchResponse.serverError) {
await this.view.renderError(snapshot, this.currentVisit);
} else {
await this.view.renderPage(snapshot, false, true, this.currentVisit);
}
this.view.scrollToTop();
this.view.clearSnapshotCache();
}
}
formSubmissionErrored(formSubmission, error2) {
console.error(error2);
}
formSubmissionFinished(formSubmission) {
if (typeof this.adapter.formSubmissionFinished === "function") {
this.adapter.formSubmissionFinished(formSubmission);
}
}
visitStarted(visit2) {
this.delegate.visitStarted(visit2);
}
visitCompleted(visit2) {
this.delegate.visitCompleted(visit2);
}
locationWithActionIsSamePage(location2, action) {
const anchor = getAnchor(location2);
const currentAnchor = getAnchor(this.view.lastRenderedLocation);
const isRestorationToTop = action === "restore" && typeof anchor === "undefined";
return action !== "replace" && getRequestURL(location2) === getRequestURL(this.view.lastRenderedLocation) && (isRestorationToTop || anchor != null && anchor !== currentAnchor);
}
visitScrolledToSamePageLocation(oldURL, newURL) {
this.delegate.visitScrolledToSamePageLocation(oldURL, newURL);
}
get location() {
return this.history.location;
}
get restorationIdentifier() {
return this.history.restorationIdentifier;
}
getActionForFormSubmission({ submitter, formElement }) {
return getVisitAction(submitter, formElement) || "advance";
}
};
(function(PageStage2) {
PageStage2[PageStage2["initial"] = 0] = "initial";
PageStage2[PageStage2["loading"] = 1] = "loading";
PageStage2[PageStage2["interactive"] = 2] = "interactive";
PageStage2[PageStage2["complete"] = 3] = "complete";
})(PageStage || (PageStage = {}));
PageObserver = class {
constructor(delegate) {
this.stage = PageStage.initial;
this.started = false;
this.interpretReadyState = () => {
const { readyState } = this;
if (readyState == "interactive") {
this.pageIsInteractive();
} else if (readyState == "complete") {
this.pageIsComplete();
}
};
this.pageWillUnload = () => {
this.delegate.pageWillUnload();
};
this.delegate = delegate;
}
start() {
if (!this.started) {
if (this.stage == PageStage.initial) {
this.stage = PageStage.loading;
}
document.addEventListener("readystatechange", this.interpretReadyState, false);
addEventListener("pagehide", this.pageWillUnload, false);
this.started = true;
}
}
stop() {
if (this.started) {
document.removeEventListener("readystatechange", this.interpretReadyState, false);
removeEventListener("pagehide", this.pageWillUnload, false);
this.started = false;
}
}
pageIsInteractive() {
if (this.stage == PageStage.loading) {
this.stage = PageStage.interactive;
this.delegate.pageBecameInteractive();
}
}
pageIsComplete() {
this.pageIsInteractive();
if (this.stage == PageStage.interactive) {
this.stage = PageStage.complete;
this.delegate.pageLoaded();
}
}
get readyState() {
return document.readyState;
}
};
ScrollObserver = class {
constructor(delegate) {
this.started = false;
this.onScroll = () => {
this.updatePosition({ x: window.pageXOffset, y: window.pageYOffset });
};
this.delegate = delegate;
}
start() {
if (!this.started) {
addEventListener("scroll", this.onScroll, false);
this.onScroll();
this.started = true;
}
}
stop() {
if (this.started) {
removeEventListener("scroll", this.onScroll, false);
this.started = false;
}
}
updatePosition(position) {
this.delegate.scrollPositionChanged(position);
}
};
StreamMessageRenderer = class {
render({ fragment }) {
Bardo.preservingPermanentElements(this, getPermanentElementMapForFragment(fragment), () => document.documentElement.appendChild(fragment));
}
enteringBardo(currentPermanentElement, newPermanentElement) {
newPermanentElement.replaceWith(currentPermanentElement.cloneNode(true));
}
leavingBardo() {
}
};
StreamObserver = class {
constructor(delegate) {
this.sources = /* @__PURE__ */ new Set();
this.started = false;
this.inspectFetchResponse = (event) => {
const response = fetchResponseFromEvent(event);
if (response && fetchResponseIsStream(response)) {
event.preventDefault();
this.receiveMessageResponse(response);
}
};
this.receiveMessageEvent = (event) => {
if (this.started && typeof event.data == "string") {
this.receiveMessageHTML(event.data);
}
};
this.delegate = delegate;
}
start() {
if (!this.started) {
this.started = true;
addEventListener("turbo:before-fetch-response", this.inspectFetchResponse, false);
}
}
stop() {
if (this.started) {
this.started = false;
removeEventListener("turbo:before-fetch-response", this.inspectFetchResponse, false);
}
}
connectStreamSource(source) {
if (!this.streamSourceIsConnected(source)) {
this.sources.add(source);
source.addEventListener("message", this.receiveMessageEvent, false);
}
}
disconnectStreamSource(source) {
if (this.streamSourceIsConnected(source)) {
this.sources.delete(source);
source.removeEventListener("message", this.receiveMessageEvent, false);
}
}
streamSourceIsConnected(source) {
return this.sources.has(source);
}
async receiveMessageResponse(response) {
const html = await response.responseHTML;
if (html) {
this.receiveMessageHTML(html);
}
}
receiveMessageHTML(html) {
this.delegate.receivedMessageFromStream(StreamMessage.wrap(html));
}
};
ErrorRenderer = class extends Renderer {
static renderElement(currentElement, newElement) {
const { documentElement, body } = document;
documentElement.replaceChild(newElement, body);
}
async render() {
this.replaceHeadAndBody();
this.activateScriptElements();
}
replaceHeadAndBody() {
const { documentElement, head } = document;
documentElement.replaceChild(this.newHead, head);
this.renderElement(this.currentElement, this.newElement);
}
activateScriptElements() {
for (const replaceableElement of this.scriptElements) {
const parentNode = replaceableElement.parentNode;
if (parentNode) {
const element = activateScriptElement(replaceableElement);
parentNode.replaceChild(element, replaceableElement);
}
}
}
get newHead() {
return this.newSnapshot.headSnapshot.element;
}
get scriptElements() {
return document.documentElement.querySelectorAll("script");
}
};
PageRenderer = class extends Renderer {
static renderElement(currentElement, newElement) {
if (document.body && newElement instanceof HTMLBodyElement) {
document.body.replaceWith(newElement);
} else {
document.documentElement.appendChild(newElement);
}
}
get shouldRender() {
return this.newSnapshot.isVisitable && this.trackedElementsAreIdentical;
}
get reloadReason() {
if (!this.newSnapshot.isVisitable) {
return {
reason: "turbo_visit_control_is_reload"
};
}
if (!this.trackedElementsAreIdentical) {
return {
reason: "tracked_element_mismatch"
};
}
}
async prepareToRender() {
await this.mergeHead();
}
async render() {
if (this.willRender) {
await this.replaceBody();
}
}
finishRendering() {
super.finishRendering();
if (!this.isPreview) {
this.focusFirstAutofocusableElement();
}
}
get currentHeadSnapshot() {
return this.currentSnapshot.headSnapshot;
}
get newHeadSnapshot() {
return this.newSnapshot.headSnapshot;
}
get newElement() {
return this.newSnapshot.element;
}
async mergeHead() {
const mergedHeadElements = this.mergeProvisionalElements();
const newStylesheetElements = this.copyNewHeadStylesheetElements();
this.copyNewHeadScriptElements();
await mergedHeadElements;
await newStylesheetElements;
}
async replaceBody() {
await this.preservingPermanentElements(async () => {
this.activateNewBody();
await this.assignNewBody();
});
}
get trackedElementsAreIdentical() {
return this.currentHeadSnapshot.trackedElementSignature == this.newHeadSnapshot.trackedElementSignature;
}
async copyNewHeadStylesheetElements() {
const loadingElements = [];
for (const element of this.newHeadStylesheetElements) {
loadingElements.push(waitForLoad(element));
document.head.appendChild(element);
}
await Promise.all(loadingElements);
}
copyNewHeadScriptElements() {
for (const element of this.newHeadScriptElements) {
document.head.appendChild(activateScriptElement(element));
}
}
async mergeProvisionalElements() {
const newHeadElements = [...this.newHeadProvisionalElements];
for (const element of this.currentHeadProvisionalElements) {
if (!this.isCurrentElementInElementList(element, newHeadElements)) {
document.head.removeChild(element);
}
}
for (const element of newHeadElements) {
document.head.appendChild(element);
}
}
isCurrentElementInElementList(element, elementList) {
for (const [index2, newElement] of elementList.entries()) {
if (element.tagName == "TITLE") {
if (newElement.tagName != "TITLE") {
continue;
}
if (element.innerHTML == newElement.innerHTML) {
elementList.splice(index2, 1);
return true;
}
}
if (newElement.isEqualNode(element)) {
elementList.splice(index2, 1);
return true;
}
}
return false;
}
removeCurrentHeadProvisionalElements() {
for (const element of this.currentHeadProvisionalElements) {
document.head.removeChild(element);
}
}
copyNewHeadProvisionalElements() {
for (const element of this.newHeadProvisionalElements) {
document.head.appendChild(element);
}
}
activateNewBody() {
document.adoptNode(this.newElement);
this.activateNewBodyScriptElements();
}
activateNewBodyScriptElements() {
for (const inertScriptElement of this.newBodyScriptElements) {
const activatedScriptElement = activateScriptElement(inertScriptElement);
inertScriptElement.replaceWith(activatedScriptElement);
}
}
async assignNewBody() {
await this.renderElement(this.currentElement, this.newElement);
}
get newHeadStylesheetElements() {
return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot);
}
get newHeadScriptElements() {
return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot);
}
get currentHeadProvisionalElements() {
return this.currentHeadSnapshot.provisionalElements;
}
get newHeadProvisionalElements() {
return this.newHeadSnapshot.provisionalElements;
}
get newBodyScriptElements() {
return this.newElement.querySelectorAll("script");
}
};
SnapshotCache = class {
constructor(size) {
this.keys = [];
this.snapshots = {};
this.size = size;
}
has(location2) {
return toCacheKey(location2) in this.snapshots;
}
get(location2) {
if (this.has(location2)) {
const snapshot = this.read(location2);
this.touch(location2);
return snapshot;
}
}
put(location2, snapshot) {
this.write(location2, snapshot);
this.touch(location2);
return snapshot;
}
clear() {
this.snapshots = {};
}
read(location2) {
return this.snapshots[toCacheKey(location2)];
}
write(location2, snapshot) {
this.snapshots[toCacheKey(location2)] = snapshot;
}
touch(location2) {
const key = toCacheKey(location2);
const index2 = this.keys.indexOf(key);
if (index2 > -1)
this.keys.splice(index2, 1);
this.keys.unshift(key);
this.trim();
}
trim() {
for (const key of this.keys.splice(this.size)) {
delete this.snapshots[key];
}
}
};
PageView = class extends View {
constructor() {
super(...arguments);
this.snapshotCache = new SnapshotCache(10);
this.lastRenderedLocation = new URL(location.href);
this.forceReloaded = false;
}
renderPage(snapshot, isPreview = false, willRender = true, visit2) {
const renderer = new PageRenderer(this.snapshot, snapshot, PageRenderer.renderElement, isPreview, willRender);
if (!renderer.shouldRender) {
this.forceReloaded = true;
} else {
visit2 === null || visit2 === void 0 ? void 0 : visit2.changeHistory();
}
return this.render(renderer);
}
renderError(snapshot, visit2) {
visit2 === null || visit2 === void 0 ? void 0 : visit2.changeHistory();
const renderer = new ErrorRenderer(this.snapshot, snapshot, ErrorRenderer.renderElement, false);
return this.render(renderer);
}
clearSnapshotCache() {
this.snapshotCache.clear();
}
async cacheSnapshot(snapshot = this.snapshot) {
if (snapshot.isCacheable) {
this.delegate.viewWillCacheSnapshot();
const { lastRenderedLocation: location2 } = this;
await nextEventLoopTick();
const cachedSnapshot = snapshot.clone();
this.snapshotCache.put(location2, cachedSnapshot);
return cachedSnapshot;
}
}
getCachedSnapshotForLocation(location2) {
return this.snapshotCache.get(location2);
}
get snapshot() {
return PageSnapshot.fromElement(this.element);
}
};
Preloader = class {
constructor(delegate) {
this.selector = "a[data-turbo-preload]";
this.delegate = delegate;
}
get snapshotCache() {
return this.delegate.navigator.view.snapshotCache;
}
start() {
if (document.readyState === "loading") {
return document.addEventListener("DOMContentLoaded", () => {
this.preloadOnLoadLinksForView(document.body);
});
} else {
this.preloadOnLoadLinksForView(document.body);
}
}
preloadOnLoadLinksForView(element) {
for (const link of element.querySelectorAll(this.selector)) {
this.preloadURL(link);
}
}
async preloadURL(link) {
const location2 = new URL(link.href);
if (this.snapshotCache.has(location2)) {
return;
}
try {
const response = await fetch(location2.toString(), { headers: { "VND.PREFETCH": "true", Accept: "text/html" } });
const responseText = await response.text();
const snapshot = PageSnapshot.fromHTMLString(responseText);
this.snapshotCache.put(location2, snapshot);
} catch (_3) {
}
}
};
Session = class {
constructor() {
this.navigator = new Navigator(this);
this.history = new History(this);
this.preloader = new Preloader(this);
this.view = new PageView(this, document.documentElement);
this.adapter = new BrowserAdapter(this);
this.pageObserver = new PageObserver(this);
this.cacheObserver = new CacheObserver();
this.linkClickObserver = new LinkClickObserver(this, window);
this.formSubmitObserver = new FormSubmitObserver(this, document);
this.scrollObserver = new ScrollObserver(this);
this.streamObserver = new StreamObserver(this);
this.formLinkClickObserver = new FormLinkClickObserver(this, document.documentElement);
this.frameRedirector = new FrameRedirector(this, document.documentElement);
this.streamMessageRenderer = new StreamMessageRenderer();
this.drive = true;
this.enabled = true;
this.progressBarDelay = 500;
this.started = false;
this.formMode = "on";
}
start() {
if (!this.started) {
this.pageObserver.start();
this.cacheObserver.start();
this.formLinkClickObserver.start();
this.linkClickObserver.start();
this.formSubmitObserver.start();
this.scrollObserver.start();
this.streamObserver.start();
this.frameRedirector.start();
this.history.start();
this.preloader.start();
this.started = true;
this.enabled = true;
}
}
disable() {
this.enabled = false;
}
stop() {
if (this.started) {
this.pageObserver.stop();
this.cacheObserver.stop();
this.formLinkClickObserver.stop();
this.linkClickObserver.stop();
this.formSubmitObserver.stop();
this.scrollObserver.stop();
this.streamObserver.stop();
this.frameRedirector.stop();
this.history.stop();
this.started = false;
}
}
registerAdapter(adapter) {
this.adapter = adapter;
}
visit(location2, options = {}) {
const frameElement = options.frame ? document.getElementById(options.frame) : null;
if (frameElement instanceof FrameElement) {
frameElement.src = location2.toString();
frameElement.loaded;
} else {
this.navigator.proposeVisit(expandURL(location2), options);
}
}
connectStreamSource(source) {
this.streamObserver.connectStreamSource(source);
}
disconnectStreamSource(source) {
this.streamObserver.disconnectStreamSource(source);
}
renderStreamMessage(message) {
this.streamMessageRenderer.render(StreamMessage.wrap(message));
}
clearCache() {
this.view.clearSnapshotCache();
}
setProgressBarDelay(delay) {
this.progressBarDelay = delay;
}
setFormMode(mode) {
this.formMode = mode;
}
get location() {
return this.history.location;
}
get restorationIdentifier() {
return this.history.restorationIdentifier;
}
historyPoppedToLocationWithRestorationIdentifier(location2, restorationIdentifier) {
if (this.enabled) {
this.navigator.startVisit(location2, restorationIdentifier, {
action: "restore",
historyChanged: true
});
} else {
this.adapter.pageInvalidated({
reason: "turbo_disabled"
});
}
}
scrollPositionChanged(position) {
this.history.updateRestorationData({ scrollPosition: position });
}
willSubmitFormLinkToLocation(link, location2) {
return this.elementIsNavigatable(link) && locationIsVisitable(location2, this.snapshot.rootLocation);
}
submittedFormLinkToLocation() {
}
willFollowLinkToLocation(link, location2, event) {
return this.elementIsNavigatable(link) && locationIsVisitable(location2, this.snapshot.rootLocation) && this.applicationAllowsFollowingLinkToLocation(link, location2, event);
}
followedLinkToLocation(link, location2) {
const action = this.getActionForLink(link);
const acceptsStreamResponse = link.hasAttribute("data-turbo-stream");
this.visit(location2.href, { action, acceptsStreamResponse });
}
allowsVisitingLocationWithAction(location2, action) {
return this.locationWithActionIsSamePage(location2, action) || this.applicationAllowsVisitingLocation(location2);
}
visitProposedToLocation(location2, options) {
extendURLWithDeprecatedProperties(location2);
this.adapter.visitProposedToLocation(location2, options);
}
visitStarted(visit2) {
if (!visit2.acceptsStreamResponse) {
markAsBusy(document.documentElement);
}
extendURLWithDeprecatedProperties(visit2.location);
if (!visit2.silent) {
this.notifyApplicationAfterVisitingLocation(visit2.location, visit2.action);
}
}
visitCompleted(visit2) {
clearBusyState(document.documentElement);
this.notifyApplicationAfterPageLoad(visit2.getTimingMetrics());
}
locationWithActionIsSamePage(location2, action) {
return this.navigator.locationWithActionIsSamePage(location2, action);
}
visitScrolledToSamePageLocation(oldURL, newURL) {
this.notifyApplicationAfterVisitingSamePageLocation(oldURL, newURL);
}
willSubmitForm(form, submitter) {
const action = getAction(form, submitter);
return this.submissionIsNavigatable(form, submitter) && locationIsVisitable(expandURL(action), this.snapshot.rootLocation);
}
formSubmitted(form, submitter) {
this.navigator.submitForm(form, submitter);
}
pageBecameInteractive() {
this.view.lastRenderedLocation = this.location;
this.notifyApplicationAfterPageLoad();
}
pageLoaded() {
this.history.assumeControlOfScrollRestoration();
}
pageWillUnload() {
this.history.relinquishControlOfScrollRestoration();
}
receivedMessageFromStream(message) {
this.renderStreamMessage(message);
}
viewWillCacheSnapshot() {
var _a;
if (!((_a = this.navigator.currentVisit) === null || _a === void 0 ? void 0 : _a.silent)) {
this.notifyApplicationBeforeCachingSnapshot();
}
}
allowsImmediateRender({ element }, options) {
const event = this.notifyApplicationBeforeRender(element, options);
const { defaultPrevented, detail: { render: render2 } } = event;
if (this.view.renderer && render2) {
this.view.renderer.renderElement = render2;
}
return !defaultPrevented;
}
viewRenderedSnapshot(_snapshot, _isPreview) {
this.view.lastRenderedLocation = this.history.location;
this.notifyApplicationAfterRender();
}
preloadOnLoadLinksForView(element) {
this.preloader.preloadOnLoadLinksForView(element);
}
viewInvalidated(reason) {
this.adapter.pageInvalidated(reason);
}
frameLoaded(frame) {
this.notifyApplicationAfterFrameLoad(frame);
}
frameRendered(fetchResponse, frame) {
this.notifyApplicationAfterFrameRender(fetchResponse, frame);
}
applicationAllowsFollowingLinkToLocation(link, location2, ev) {
const event = this.notifyApplicationAfterClickingLinkToLocation(link, location2, ev);
return !event.defaultPrevented;
}
applicationAllowsVisitingLocation(location2) {
const event = this.notifyApplicationBeforeVisitingLocation(location2);
return !event.defaultPrevented;
}
notifyApplicationAfterClickingLinkToLocation(link, location2, event) {
return dispatch("turbo:click", {
target: link,
detail: { url: location2.href, originalEvent: event },
cancelable: true
});
}
notifyApplicationBeforeVisitingLocation(location2) {
return dispatch("turbo:before-visit", {
detail: { url: location2.href },
cancelable: true
});
}
notifyApplicationAfterVisitingLocation(location2, action) {
return dispatch("turbo:visit", { detail: { url: location2.href, action } });
}
notifyApplicationBeforeCachingSnapshot() {
return dispatch("turbo:before-cache");
}
notifyApplicationBeforeRender(newBody, options) {
return dispatch("turbo:before-render", {
detail: Object.assign({ newBody }, options),
cancelable: true
});
}
notifyApplicationAfterRender() {
return dispatch("turbo:render");
}
notifyApplicationAfterPageLoad(timing = {}) {
return dispatch("turbo:load", {
detail: { url: this.location.href, timing }
});
}
notifyApplicationAfterVisitingSamePageLocation(oldURL, newURL) {
dispatchEvent(new HashChangeEvent("hashchange", {
oldURL: oldURL.toString(),
newURL: newURL.toString()
}));
}
notifyApplicationAfterFrameLoad(frame) {
return dispatch("turbo:frame-load", { target: frame });
}
notifyApplicationAfterFrameRender(fetchResponse, frame) {
return dispatch("turbo:frame-render", {
detail: { fetchResponse },
target: frame,
cancelable: true
});
}
submissionIsNavigatable(form, submitter) {
if (this.formMode == "off") {
return false;
} else {
const submitterIsNavigatable = submitter ? this.elementIsNavigatable(submitter) : true;
if (this.formMode == "optin") {
return submitterIsNavigatable && form.closest('[data-turbo="true"]') != null;
} else {
return submitterIsNavigatable && this.elementIsNavigatable(form);
}
}
}
elementIsNavigatable(element) {
const container = findClosestRecursively(element, "[data-turbo]");
const withinFrame = findClosestRecursively(element, "turbo-frame");
if (this.drive || withinFrame) {
if (container) {
return container.getAttribute("data-turbo") != "false";
} else {
return true;
}
} else {
if (container) {
return container.getAttribute("data-turbo") == "true";
} else {
return false;
}
}
}
getActionForLink(link) {
return getVisitAction(link) || "advance";
}
get snapshot() {
return this.view.snapshot;
}
};
deprecatedLocationPropertyDescriptors = {
absoluteURL: {
get() {
return this.toString();
}
}
};
Cache = class {
constructor(session2) {
this.session = session2;
}
clear() {
this.session.clearCache();
}
resetCacheControl() {
this.setCacheControl("");
}
exemptPageFromCache() {
this.setCacheControl("no-cache");
}
exemptPageFromPreview() {
this.setCacheControl("no-preview");
}
setCacheControl(value) {
setMetaContent("turbo-cache-control", value);
}
};
StreamActions = {
after() {
this.targetElements.forEach((e4) => {
var _a;
return (_a = e4.parentElement) === null || _a === void 0 ? void 0 : _a.insertBefore(this.templateContent, e4.nextSibling);
});
},
append() {
this.removeDuplicateTargetChildren();
this.targetElements.forEach((e4) => e4.append(this.templateContent));
},
before() {
this.targetElements.forEach((e4) => {
var _a;
return (_a = e4.parentElement) === null || _a === void 0 ? void 0 : _a.insertBefore(this.templateContent, e4);
});
},
prepend() {
this.removeDuplicateTargetChildren();
this.targetElements.forEach((e4) => e4.prepend(this.templateContent));
},
remove() {
this.targetElements.forEach((e4) => e4.remove());
},
replace() {
this.targetElements.forEach((e4) => e4.replaceWith(this.templateContent));
},
update() {
this.targetElements.forEach((targetElement) => {
targetElement.innerHTML = "";
targetElement.append(this.templateContent);
});
}
};
session = new Session();
cache = new Cache(session);
({ navigator: navigator$1 } = session);
Turbo2 = /* @__PURE__ */ Object.freeze({
__proto__: null,
navigator: navigator$1,
session,
cache,
PageRenderer,
PageSnapshot,
FrameRenderer,
start,
registerAdapter,
visit,
connectStreamSource,
disconnectStreamSource,
renderStreamMessage,
clearCache,
setProgressBarDelay,
setConfirmMethod,
setFormMode,
StreamActions
});
TurboFrameMissingError = class extends Error {
};
FrameController = class {
constructor(element) {
this.fetchResponseLoaded = (_fetchResponse) => {
};
this.currentFetchRequest = null;
this.resolveVisitPromise = () => {
};
this.connected = false;
this.hasBeenLoaded = false;
this.ignoredAttributes = /* @__PURE__ */ new Set();
this.action = null;
this.visitCachedSnapshot = ({ element: element2 }) => {
const frame = element2.querySelector("#" + this.element.id);
if (frame && this.previousFrameElement) {
frame.replaceChildren(...this.previousFrameElement.children);
}
delete this.previousFrameElement;
};
this.element = element;
this.view = new FrameView(this, this.element);
this.appearanceObserver = new AppearanceObserver(this, this.element);
this.formLinkClickObserver = new FormLinkClickObserver(this, this.element);
this.linkInterceptor = new LinkInterceptor(this, this.element);
this.restorationIdentifier = uuid();
this.formSubmitObserver = new FormSubmitObserver(this, this.element);
}
connect() {
if (!this.connected) {
this.connected = true;
if (this.loadingStyle == FrameLoadingStyle.lazy) {
this.appearanceObserver.start();
} else {
this.loadSourceURL();
}
this.formLinkClickObserver.start();
this.linkInterceptor.start();
this.formSubmitObserver.start();
}
}
disconnect() {
if (this.connected) {
this.connected = false;
this.appearanceObserver.stop();
this.formLinkClickObserver.stop();
this.linkInterceptor.stop();
this.formSubmitObserver.stop();
}
}
disabledChanged() {
if (this.loadingStyle == FrameLoadingStyle.eager) {
this.loadSourceURL();
}
}
sourceURLChanged() {
if (this.isIgnoringChangesTo("src"))
return;
if (this.element.isConnected) {
this.complete = false;
}
if (this.loadingStyle == FrameLoadingStyle.eager || this.hasBeenLoaded) {
this.loadSourceURL();
}
}
sourceURLReloaded() {
const { src } = this.element;
this.ignoringChangesToAttribute("complete", () => {
this.element.removeAttribute("complete");
});
this.element.src = null;
this.element.src = src;
return this.element.loaded;
}
completeChanged() {
if (this.isIgnoringChangesTo("complete"))
return;
this.loadSourceURL();
}
loadingStyleChanged() {
if (this.loadingStyle == FrameLoadingStyle.lazy) {
this.appearanceObserver.start();
} else {
this.appearanceObserver.stop();
this.loadSourceURL();
}
}
async loadSourceURL() {
if (this.enabled && this.isActive && !this.complete && this.sourceURL) {
this.element.loaded = this.visit(expandURL(this.sourceURL));
this.appearanceObserver.stop();
await this.element.loaded;
this.hasBeenLoaded = true;
}
}
async loadResponse(fetchResponse) {
if (fetchResponse.redirected || fetchResponse.succeeded && fetchResponse.isHTML) {
this.sourceURL = fetchResponse.response.url;
}
try {
const html = await fetchResponse.responseHTML;
if (html) {
const document2 = parseHTMLDocument(html);
const pageSnapshot = PageSnapshot.fromDocument(document2);
if (pageSnapshot.isVisitable) {
await this.loadFrameResponse(fetchResponse, document2);
} else {
await this.handleUnvisitableFrameResponse(fetchResponse);
}
}
} finally {
this.fetchResponseLoaded = () => {
};
}
}
elementAppearedInViewport(element) {
this.proposeVisitIfNavigatedWithAction(element, element);
this.loadSourceURL();
}
willSubmitFormLinkToLocation(link) {
return this.shouldInterceptNavigation(link);
}
submittedFormLinkToLocation(link, _location, form) {
const frame = this.findFrameElement(link);
if (frame)
form.setAttribute("data-turbo-frame", frame.id);
}
shouldInterceptLinkClick(element, _location, _event) {
return this.shouldInterceptNavigation(element);
}
linkClickIntercepted(element, location2) {
this.navigateFrame(element, location2);
}
willSubmitForm(element, submitter) {
return element.closest("turbo-frame") == this.element && this.shouldInterceptNavigation(element, submitter);
}
formSubmitted(element, submitter) {
if (this.formSubmission) {
this.formSubmission.stop();
}
this.formSubmission = new FormSubmission(this, element, submitter);
const { fetchRequest } = this.formSubmission;
this.prepareRequest(fetchRequest);
this.formSubmission.start();
}
prepareRequest(request) {
var _a;
request.headers["Turbo-Frame"] = this.id;
if ((_a = this.currentNavigationElement) === null || _a === void 0 ? void 0 : _a.hasAttribute("data-turbo-stream")) {
request.acceptResponseType(StreamMessage.contentType);
}
}
requestStarted(_request) {
markAsBusy(this.element);
}
requestPreventedHandlingResponse(_request, _response) {
this.resolveVisitPromise();
}
async requestSucceededWithResponse(request, response) {
await this.loadResponse(response);
this.resolveVisitPromise();
}
async requestFailedWithResponse(request, response) {
await this.loadResponse(response);
this.resolveVisitPromise();
}
requestErrored(request, error2) {
console.error(error2);
this.resolveVisitPromise();
}
requestFinished(_request) {
clearBusyState(this.element);
}
formSubmissionStarted({ formElement }) {
markAsBusy(formElement, this.findFrameElement(formElement));
}
formSubmissionSucceededWithResponse(formSubmission, response) {
const frame = this.findFrameElement(formSubmission.formElement, formSubmission.submitter);
frame.delegate.proposeVisitIfNavigatedWithAction(frame, formSubmission.formElement, formSubmission.submitter);
frame.delegate.loadResponse(response);
if (!formSubmission.isSafe) {
session.clearCache();
}
}
formSubmissionFailedWithResponse(formSubmission, fetchResponse) {
this.element.delegate.loadResponse(fetchResponse);
session.clearCache();
}
formSubmissionErrored(formSubmission, error2) {
console.error(error2);
}
formSubmissionFinished({ formElement }) {
clearBusyState(formElement, this.findFrameElement(formElement));
}
allowsImmediateRender({ element: newFrame }, options) {
const event = dispatch("turbo:before-frame-render", {
target: this.element,
detail: Object.assign({ newFrame }, options),
cancelable: true
});
const { defaultPrevented, detail: { render: render2 } } = event;
if (this.view.renderer && render2) {
this.view.renderer.renderElement = render2;
}
return !defaultPrevented;
}
viewRenderedSnapshot(_snapshot, _isPreview) {
}
preloadOnLoadLinksForView(element) {
session.preloadOnLoadLinksForView(element);
}
viewInvalidated() {
}
willRenderFrame(currentElement, _newElement) {
this.previousFrameElement = currentElement.cloneNode(true);
}
async loadFrameResponse(fetchResponse, document2) {
const newFrameElement = await this.extractForeignFrameElement(document2.body);
if (newFrameElement) {
const snapshot = new Snapshot(newFrameElement);
const renderer = new FrameRenderer(this, this.view.snapshot, snapshot, FrameRenderer.renderElement, false, false);
if (this.view.renderPromise)
await this.view.renderPromise;
this.changeHistory();
await this.view.render(renderer);
this.complete = true;
session.frameRendered(fetchResponse, this.element);
session.frameLoaded(this.element);
this.fetchResponseLoaded(fetchResponse);
} else if (this.willHandleFrameMissingFromResponse(fetchResponse)) {
this.handleFrameMissingFromResponse(fetchResponse);
}
}
async visit(url) {
var _a;
const request = new FetchRequest(this, FetchMethod.get, url, new URLSearchParams(), this.element);
(_a = this.currentFetchRequest) === null || _a === void 0 ? void 0 : _a.cancel();
this.currentFetchRequest = request;
return new Promise((resolve3) => {
this.resolveVisitPromise = () => {
this.resolveVisitPromise = () => {
};
this.currentFetchRequest = null;
resolve3();
};
request.perform();
});
}
navigateFrame(element, url, submitter) {
const frame = this.findFrameElement(element, submitter);
frame.delegate.proposeVisitIfNavigatedWithAction(frame, element, submitter);
this.withCurrentNavigationElement(element, () => {
frame.src = url;
});
}
proposeVisitIfNavigatedWithAction(frame, element, submitter) {
this.action = getVisitAction(submitter, element, frame);
if (this.action) {
const pageSnapshot = PageSnapshot.fromElement(frame).clone();
const { visitCachedSnapshot } = frame.delegate;
frame.delegate.fetchResponseLoaded = (fetchResponse) => {
if (frame.src) {
const { statusCode, redirected } = fetchResponse;
const responseHTML = frame.ownerDocument.documentElement.outerHTML;
const response = { statusCode, redirected, responseHTML };
const options = {
response,
visitCachedSnapshot,
willRender: false,
updateHistory: false,
restorationIdentifier: this.restorationIdentifier,
snapshot: pageSnapshot
};
if (this.action)
options.action = this.action;
session.visit(frame.src, options);
}
};
}
}
changeHistory() {
if (this.action) {
const method = getHistoryMethodForAction(this.action);
session.history.update(method, expandURL(this.element.src || ""), this.restorationIdentifier);
}
}
async handleUnvisitableFrameResponse(fetchResponse) {
console.warn(`The response (${fetchResponse.statusCode}) from is performing a full page visit due to turbo-visit-control.`);
await this.visitResponse(fetchResponse.response);
}
willHandleFrameMissingFromResponse(fetchResponse) {
this.element.setAttribute("complete", "");
const response = fetchResponse.response;
const visit2 = async (url, options = {}) => {
if (url instanceof Response) {
this.visitResponse(url);
} else {
session.visit(url, options);
}
};
const event = dispatch("turbo:frame-missing", {
target: this.element,
detail: { response, visit: visit2 },
cancelable: true
});
return !event.defaultPrevented;
}
handleFrameMissingFromResponse(fetchResponse) {
this.view.missing();
this.throwFrameMissingError(fetchResponse);
}
throwFrameMissingError(fetchResponse) {
const message = `The response (${fetchResponse.statusCode}) did not contain the expected and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.`;
throw new TurboFrameMissingError(message);
}
async visitResponse(response) {
const wrapped = new FetchResponse(response);
const responseHTML = await wrapped.responseHTML;
const { location: location2, redirected, statusCode } = wrapped;
return session.visit(location2, { response: { redirected, statusCode, responseHTML } });
}
findFrameElement(element, submitter) {
var _a;
const id = getAttribute("data-turbo-frame", submitter, element) || this.element.getAttribute("target");
return (_a = getFrameElementById(id)) !== null && _a !== void 0 ? _a : this.element;
}
async extractForeignFrameElement(container) {
let element;
const id = CSS.escape(this.id);
try {
element = activateElement(container.querySelector(`turbo-frame#${id}`), this.sourceURL);
if (element) {
return element;
}
element = activateElement(container.querySelector(`turbo-frame[src][recurse~=${id}]`), this.sourceURL);
if (element) {
await element.loaded;
return await this.extractForeignFrameElement(element);
}
} catch (error2) {
console.error(error2);
return new FrameElement();
}
return null;
}
formActionIsVisitable(form, submitter) {
const action = getAction(form, submitter);
return locationIsVisitable(expandURL(action), this.rootLocation);
}
shouldInterceptNavigation(element, submitter) {
const id = getAttribute("data-turbo-frame", submitter, element) || this.element.getAttribute("target");
if (element instanceof HTMLFormElement && !this.formActionIsVisitable(element, submitter)) {
return false;
}
if (!this.enabled || id == "_top") {
return false;
}
if (id) {
const frameElement = getFrameElementById(id);
if (frameElement) {
return !frameElement.disabled;
}
}
if (!session.elementIsNavigatable(element)) {
return false;
}
if (submitter && !session.elementIsNavigatable(submitter)) {
return false;
}
return true;
}
get id() {
return this.element.id;
}
get enabled() {
return !this.element.disabled;
}
get sourceURL() {
if (this.element.src) {
return this.element.src;
}
}
set sourceURL(sourceURL) {
this.ignoringChangesToAttribute("src", () => {
this.element.src = sourceURL !== null && sourceURL !== void 0 ? sourceURL : null;
});
}
get loadingStyle() {
return this.element.loading;
}
get isLoading() {
return this.formSubmission !== void 0 || this.resolveVisitPromise() !== void 0;
}
get complete() {
return this.element.hasAttribute("complete");
}
set complete(value) {
this.ignoringChangesToAttribute("complete", () => {
if (value) {
this.element.setAttribute("complete", "");
} else {
this.element.removeAttribute("complete");
}
});
}
get isActive() {
return this.element.isActive && this.connected;
}
get rootLocation() {
var _a;
const meta = this.element.ownerDocument.querySelector(`meta[name="turbo-root"]`);
const root = (_a = meta === null || meta === void 0 ? void 0 : meta.content) !== null && _a !== void 0 ? _a : "/";
return expandURL(root);
}
isIgnoringChangesTo(attributeName) {
return this.ignoredAttributes.has(attributeName);
}
ignoringChangesToAttribute(attributeName, callback2) {
this.ignoredAttributes.add(attributeName);
callback2();
this.ignoredAttributes.delete(attributeName);
}
withCurrentNavigationElement(element, callback2) {
this.currentNavigationElement = element;
callback2();
delete this.currentNavigationElement;
}
};
StreamElement = class extends HTMLElement {
static async renderElement(newElement) {
await newElement.performAction();
}
async connectedCallback() {
try {
await this.render();
} catch (error2) {
console.error(error2);
} finally {
this.disconnect();
}
}
async render() {
var _a;
return (_a = this.renderPromise) !== null && _a !== void 0 ? _a : this.renderPromise = (async () => {
const event = this.beforeRenderEvent;
if (this.dispatchEvent(event)) {
await nextAnimationFrame();
await event.detail.render(this);
}
})();
}
disconnect() {
try {
this.remove();
} catch (_a) {
}
}
removeDuplicateTargetChildren() {
this.duplicateChildren.forEach((c3) => c3.remove());
}
get duplicateChildren() {
var _a;
const existingChildren = this.targetElements.flatMap((e4) => [...e4.children]).filter((c3) => !!c3.id);
const newChildrenIds = [...((_a = this.templateContent) === null || _a === void 0 ? void 0 : _a.children) || []].filter((c3) => !!c3.id).map((c3) => c3.id);
return existingChildren.filter((c3) => newChildrenIds.includes(c3.id));
}
get performAction() {
if (this.action) {
const actionFunction = StreamActions[this.action];
if (actionFunction) {
return actionFunction;
}
this.raise("unknown action");
}
this.raise("action attribute is missing");
}
get targetElements() {
if (this.target) {
return this.targetElementsById;
} else if (this.targets) {
return this.targetElementsByQuery;
} else {
this.raise("target or targets attribute is missing");
}
}
get templateContent() {
return this.templateElement.content.cloneNode(true);
}
get templateElement() {
if (this.firstElementChild === null) {
const template = this.ownerDocument.createElement("template");
this.appendChild(template);
return template;
} else if (this.firstElementChild instanceof HTMLTemplateElement) {
return this.firstElementChild;
}
this.raise("first child element must be a element");
}
get action() {
return this.getAttribute("action");
}
get target() {
return this.getAttribute("target");
}
get targets() {
return this.getAttribute("targets");
}
raise(message) {
throw new Error(`${this.description}: ${message}`);
}
get description() {
var _a, _b;
return (_b = ((_a = this.outerHTML.match(/<[^>]+>/)) !== null && _a !== void 0 ? _a : [])[0]) !== null && _b !== void 0 ? _b : "";
}
get beforeRenderEvent() {
return new CustomEvent("turbo:before-stream-render", {
bubbles: true,
cancelable: true,
detail: { newStream: this, render: StreamElement.renderElement }
});
}
get targetElementsById() {
var _a;
const element = (_a = this.ownerDocument) === null || _a === void 0 ? void 0 : _a.getElementById(this.target);
if (element !== null) {
return [element];
} else {
return [];
}
}
get targetElementsByQuery() {
var _a;
const elements2 = (_a = this.ownerDocument) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.targets);
if (elements2.length !== 0) {
return Array.prototype.slice.call(elements2);
} else {
return [];
}
}
};
StreamSourceElement = class extends HTMLElement {
constructor() {
super(...arguments);
this.streamSource = null;
}
connectedCallback() {
this.streamSource = this.src.match(/^ws{1,2}:/) ? new WebSocket(this.src) : new EventSource(this.src);
connectStreamSource(this.streamSource);
}
disconnectedCallback() {
if (this.streamSource) {
disconnectStreamSource(this.streamSource);
}
}
get src() {
return this.getAttribute("src") || "";
}
};
FrameElement.delegateConstructor = FrameController;
if (customElements.get("turbo-frame") === void 0) {
customElements.define("turbo-frame", FrameElement);
}
if (customElements.get("turbo-stream") === void 0) {
customElements.define("turbo-stream", StreamElement);
}
if (customElements.get("turbo-stream-source") === void 0) {
customElements.define("turbo-stream-source", StreamSourceElement);
}
(() => {
let element = document.currentScript;
if (!element)
return;
if (element.hasAttribute("data-turbo-suppress-warning"))
return;
element = element.parentElement;
while (element) {
if (element == document.body) {
return console.warn(unindent`
You are loading Turbo from a