@minto-ai/microsoft-tts
Version:
微软LAT 语音转文本
1,418 lines • 1.67 MB
JavaScript
function _arrayLikeToArray(r, a) {
(null == a || a > r.length) && (a = r.length);
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
return n;
}
function _arrayWithHoles(r) {
if (Array.isArray(r)) return r;
}
function _arrayWithoutHoles(r) {
if (Array.isArray(r)) return _arrayLikeToArray(r);
}
function _assertThisInitialized(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e;
}
function asyncGeneratorStep(n, t, e, r, o, a, c) {
try {
var i = n[a](c), u = i.value;
} catch (n2) {
return void e(n2);
}
i.done ? t(u) : Promise.resolve(u).then(r, o);
}
function _asyncToGenerator(n) {
return function() {
var t = this, e = arguments;
return new Promise(function(r, o) {
var a = n.apply(t, e);
function _next(n2) {
asyncGeneratorStep(a, r, o, _next, _throw, "next", n2);
}
function _throw(n2) {
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n2);
}
_next(void 0);
});
};
}
function _callSuper(t, o, e) {
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
}
function _classCallCheck(a, n) {
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
}
function _construct(t, e, r) {
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
var o = [null];
o.push.apply(o, e);
var p = new (t.bind.apply(t, o))();
return r && _setPrototypeOf(p, r.prototype), p;
}
function _defineProperties(e, r) {
for (var t = 0; t < r.length; t++) {
var o = r[t];
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
}
}
function _createClass(e, r, t) {
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
writable: false
}), e;
}
function _createForOfIteratorHelper(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (!t) {
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
t && (r = t);
var n = 0, F = function() {
};
return {
s: F,
n: function() {
return n >= r.length ? {
done: true
} : {
done: false,
value: r[n++]
};
},
e: function(r2) {
throw r2;
},
f: F
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var o, a = true, u = false;
return {
s: function() {
t = t.call(r);
},
n: function() {
var r2 = t.next();
return a = r2.done, r2;
},
e: function(r2) {
u = true, o = r2;
},
f: function() {
try {
a || null == t.return || t.return();
} finally {
if (u) throw o;
}
}
};
}
function _defineProperty(e, r, t) {
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: true,
configurable: true,
writable: true
}) : e[r] = t, e;
}
function _get() {
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
var p = _superPropBase(e, t);
if (p) {
var n = Object.getOwnPropertyDescriptor(p, t);
return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
}
}, _get.apply(null, arguments);
}
function _getPrototypeOf(t) {
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
return t2.__proto__ || Object.getPrototypeOf(t2);
}, _getPrototypeOf(t);
}
function _inherits(t, e) {
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
t.prototype = Object.create(e && e.prototype, {
constructor: {
value: t,
writable: true,
configurable: true
}
}), Object.defineProperty(t, "prototype", {
writable: false
}), e && _setPrototypeOf(t, e);
}
function _isNativeFunction(t) {
try {
return -1 !== Function.toString.call(t).indexOf("[native code]");
} catch (n) {
return "function" == typeof t;
}
}
function _isNativeReflectConstruct() {
try {
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
}));
} catch (t2) {
}
return (_isNativeReflectConstruct = function() {
return !!t;
})();
}
function _iterableToArray(r) {
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
}
function _iterableToArrayLimit(r, l) {
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (null != t) {
var e, n, i, u, a = [], f2 = true, o = false;
try {
if (i = (t = t.call(r)).next, 0 === l) ;
else for (; !(f2 = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f2 = true) ;
} catch (r2) {
o = true, n = r2;
} finally {
try {
if (!f2 && null != t.return && (u = t.return(), Object(u) !== u)) return;
} finally {
if (o) throw n;
}
}
return a;
}
}
function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function ownKeys$2(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function(r2) {
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
})), t.push.apply(t, o);
}
return t;
}
function _objectSpread2(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2 ? ownKeys$2(Object(t), true).forEach(function(r2) {
_defineProperty(e, r2, t[r2]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function(r2) {
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
});
}
return e;
}
function _possibleConstructorReturn(t, e) {
if (e && ("object" == typeof e || "function" == typeof e)) return e;
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
return _assertThisInitialized(t);
}
function _regeneratorRuntime() {
_regeneratorRuntime = function() {
return r;
};
var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag";
function c(t2, r2, e2, n2) {
return Object.defineProperty(t2, r2, {
value: e2,
enumerable: !n2,
configurable: !n2,
writable: !n2
});
}
try {
c({}, "");
} catch (t2) {
c = function(t3, r2, e2) {
return t3[r2] = e2;
};
}
function h(r2, e2, n2, o2) {
var i2 = e2 && e2.prototype instanceof Generator ? e2 : Generator, a2 = Object.create(i2.prototype);
return c(a2, "_invoke", /* @__PURE__ */ function(r3, e3, n3) {
var o3 = 1;
return function(i3, a3) {
if (3 === o3) throw Error("Generator is already running");
if (4 === o3) {
if ("throw" === i3) throw a3;
return {
value: t,
done: true
};
}
for (n3.method = i3, n3.arg = a3; ; ) {
var u2 = n3.delegate;
if (u2) {
var c2 = d(u2, n3);
if (c2) {
if (c2 === f2) continue;
return c2;
}
}
if ("next" === n3.method) n3.sent = n3._sent = n3.arg;
else if ("throw" === n3.method) {
if (1 === o3) throw o3 = 4, n3.arg;
n3.dispatchException(n3.arg);
} else "return" === n3.method && n3.abrupt("return", n3.arg);
o3 = 3;
var h2 = s(r3, e3, n3);
if ("normal" === h2.type) {
if (o3 = n3.done ? 4 : 2, h2.arg === f2) continue;
return {
value: h2.arg,
done: n3.done
};
}
"throw" === h2.type && (o3 = 4, n3.method = "throw", n3.arg = h2.arg);
}
};
}(r2, n2, new Context(o2 || [])), true), a2;
}
function s(t2, r2, e2) {
try {
return {
type: "normal",
arg: t2.call(r2, e2)
};
} catch (t3) {
return {
type: "throw",
arg: t3
};
}
}
r.wrap = h;
var f2 = {};
function Generator() {
}
function GeneratorFunction() {
}
function GeneratorFunctionPrototype() {
}
var l = {};
c(l, i, function() {
return this;
});
var p = Object.getPrototypeOf, y = p && p(p(x([])));
y && y !== e && n.call(y, i) && (l = y);
var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
function g(t2) {
["next", "throw", "return"].forEach(function(r2) {
c(t2, r2, function(t3) {
return this._invoke(r2, t3);
});
});
}
function AsyncIterator(t2, r2) {
function e2(o3, i2, a2, u2) {
var c2 = s(t2[o3], t2, i2);
if ("throw" !== c2.type) {
var h2 = c2.arg, f3 = h2.value;
return f3 && "object" == typeof f3 && n.call(f3, "__await") ? r2.resolve(f3.__await).then(function(t3) {
e2("next", t3, a2, u2);
}, function(t3) {
e2("throw", t3, a2, u2);
}) : r2.resolve(f3).then(function(t3) {
h2.value = t3, a2(h2);
}, function(t3) {
return e2("throw", t3, a2, u2);
});
}
u2(c2.arg);
}
var o2;
c(this, "_invoke", function(t3, n2) {
function i2() {
return new r2(function(r3, o3) {
e2(t3, n2, r3, o3);
});
}
return o2 = o2 ? o2.then(i2, i2) : i2();
}, true);
}
function d(r2, e2) {
var n2 = e2.method, o2 = r2.i[n2];
if (o2 === t) return e2.delegate = null, "throw" === n2 && r2.i.return && (e2.method = "return", e2.arg = t, d(r2, e2), "throw" === e2.method) || "return" !== n2 && (e2.method = "throw", e2.arg = new TypeError("The iterator does not provide a '" + n2 + "' method")), f2;
var i2 = s(o2, r2.i, e2.arg);
if ("throw" === i2.type) return e2.method = "throw", e2.arg = i2.arg, e2.delegate = null, f2;
var a2 = i2.arg;
return a2 ? a2.done ? (e2[r2.r] = a2.value, e2.next = r2.n, "return" !== e2.method && (e2.method = "next", e2.arg = t), e2.delegate = null, f2) : a2 : (e2.method = "throw", e2.arg = new TypeError("iterator result is not an object"), e2.delegate = null, f2);
}
function w(t2) {
this.tryEntries.push(t2);
}
function m(r2) {
var e2 = r2[4] || {};
e2.type = "normal", e2.arg = t, r2[4] = e2;
}
function Context(t2) {
this.tryEntries = [[-1]], t2.forEach(w, this), this.reset(true);
}
function x(r2) {
if (null != r2) {
var e2 = r2[i];
if (e2) return e2.call(r2);
if ("function" == typeof r2.next) return r2;
if (!isNaN(r2.length)) {
var o2 = -1, a2 = function e3() {
for (; ++o2 < r2.length; ) if (n.call(r2, o2)) return e3.value = r2[o2], e3.done = false, e3;
return e3.value = t, e3.done = true, e3;
};
return a2.next = a2;
}
}
throw new TypeError(typeof r2 + " is not iterable");
}
return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function(t2) {
var r2 = "function" == typeof t2 && t2.constructor;
return !!r2 && (r2 === GeneratorFunction || "GeneratorFunction" === (r2.displayName || r2.name));
}, r.mark = function(t2) {
return Object.setPrototypeOf ? Object.setPrototypeOf(t2, GeneratorFunctionPrototype) : (t2.__proto__ = GeneratorFunctionPrototype, c(t2, u, "GeneratorFunction")), t2.prototype = Object.create(v), t2;
}, r.awrap = function(t2) {
return {
__await: t2
};
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function() {
return this;
}), r.AsyncIterator = AsyncIterator, r.async = function(t2, e2, n2, o2, i2) {
void 0 === i2 && (i2 = Promise);
var a2 = new AsyncIterator(h(t2, e2, n2, o2), i2);
return r.isGeneratorFunction(e2) ? a2 : a2.next().then(function(t3) {
return t3.done ? t3.value : a2.next();
});
}, g(v), c(v, u, "Generator"), c(v, i, function() {
return this;
}), c(v, "toString", function() {
return "[object Generator]";
}), r.keys = function(t2) {
var r2 = Object(t2), e2 = [];
for (var n2 in r2) e2.unshift(n2);
return function t3() {
for (; e2.length; ) if ((n2 = e2.pop()) in r2) return t3.value = n2, t3.done = false, t3;
return t3.done = true, t3;
};
}, r.values = x, Context.prototype = {
constructor: Context,
reset: function(r2) {
if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r2) for (var e2 in this) "t" === e2.charAt(0) && n.call(this, e2) && !isNaN(+e2.slice(1)) && (this[e2] = t);
},
stop: function() {
this.done = true;
var t2 = this.tryEntries[0][4];
if ("throw" === t2.type) throw t2.arg;
return this.rval;
},
dispatchException: function(r2) {
if (this.done) throw r2;
var e2 = this;
function n2(t2) {
a2.type = "throw", a2.arg = r2, e2.next = t2;
}
for (var o2 = e2.tryEntries.length - 1; o2 >= 0; --o2) {
var i2 = this.tryEntries[o2], a2 = i2[4], u2 = this.prev, c2 = i2[1], h2 = i2[2];
if (-1 === i2[0]) return n2("end"), false;
if (!c2 && !h2) throw Error("try statement without catch or finally");
if (null != i2[0] && i2[0] <= u2) {
if (u2 < c2) return this.method = "next", this.arg = t, n2(c2), true;
if (u2 < h2) return n2(h2), false;
}
}
},
abrupt: function(t2, r2) {
for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
var n2 = this.tryEntries[e2];
if (n2[0] > -1 && n2[0] <= this.prev && this.prev < n2[2]) {
var o2 = n2;
break;
}
}
o2 && ("break" === t2 || "continue" === t2) && o2[0] <= r2 && r2 <= o2[2] && (o2 = null);
var i2 = o2 ? o2[4] : {};
return i2.type = t2, i2.arg = r2, o2 ? (this.method = "next", this.next = o2[2], f2) : this.complete(i2);
},
complete: function(t2, r2) {
if ("throw" === t2.type) throw t2.arg;
return "break" === t2.type || "continue" === t2.type ? this.next = t2.arg : "return" === t2.type ? (this.rval = this.arg = t2.arg, this.method = "return", this.next = "end") : "normal" === t2.type && r2 && (this.next = r2), f2;
},
finish: function(t2) {
for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
var e2 = this.tryEntries[r2];
if (e2[2] === t2) return this.complete(e2[4], e2[3]), m(e2), f2;
}
},
catch: function(t2) {
for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
var e2 = this.tryEntries[r2];
if (e2[0] === t2) {
var n2 = e2[4];
if ("throw" === n2.type) {
var o2 = n2.arg;
m(e2);
}
return o2;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function(r2, e2, n2) {
return this.delegate = {
i: x(r2),
r: e2,
n: n2
}, "next" === this.method && (this.arg = t), f2;
}
}, r;
}
function _setPrototypeOf(t, e) {
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
return t2.__proto__ = e2, t2;
}, _setPrototypeOf(t, e);
}
function _slicedToArray(r, e) {
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
}
function _superPropBase(t, o) {
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)); ) ;
return t;
}
function _superPropGet(t, o, e, r) {
var p = _get(_getPrototypeOf(t.prototype), o, e);
return "function" == typeof p ? function(t2) {
return p.apply(e, t2);
} : p;
}
function _toConsumableArray(r) {
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
}
function _toPrimitive(t, r) {
if ("object" != typeof t || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r);
if ("object" != typeof i) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return String(t);
}
function _toPropertyKey(t) {
var i = _toPrimitive(t, "string");
return "symbol" == typeof i ? i : i + "";
}
function _typeof(o) {
"@babel/helpers - typeof";
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
return typeof o2;
} : function(o2) {
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
}, _typeof(o);
}
function _unsupportedIterableToArray(r, a) {
if (r) {
if ("string" == typeof r) return _arrayLikeToArray(r, a);
var t = {}.toString.call(r).slice(8, -1);
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
}
}
function _wrapNativeSuper(t) {
var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
return _wrapNativeSuper = function(t2) {
if (null === t2 || !_isNativeFunction(t2)) return t2;
if ("function" != typeof t2) throw new TypeError("Super expression must either be null or a function");
if (void 0 !== r) {
if (r.has(t2)) return r.get(t2);
r.set(t2, Wrapper);
}
function Wrapper() {
return _construct(t2, arguments, _getPrototypeOf(this).constructor);
}
return Wrapper.prototype = Object.create(t2.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
}
}), _setPrototypeOf(Wrapper, t2);
}, _wrapNativeSuper(t);
}
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
function getAugmentedNamespace(n) {
if (n.__esModule) return n;
var f2 = n.default;
if (typeof f2 == "function") {
var a = function a2() {
if (this instanceof a2) {
return Reflect.construct(f2, arguments, this.constructor);
}
return f2.apply(this, arguments);
};
a.prototype = f2.prototype;
} else a = {};
Object.defineProperty(a, "__esModule", { value: true });
Object.keys(n).forEach(function(k) {
var d = Object.getOwnPropertyDescriptor(n, k);
Object.defineProperty(a, k, d.get ? d : {
enumerable: true,
get: function() {
return n[k];
}
});
});
return a;
}
var $$1d = _export;
var globalThis$M = globalThis_1;
$$1d({
global: true,
forced: globalThis$M.globalThis !== globalThis$M
}, {
globalThis: globalThis$M
});
var check = function check2(it) {
return it && it.Math === Math && it;
};
var globalThis_1 = (
// eslint-disable-next-line es/no-global-this -- safe
check((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) == "object" && globalThis) || check((typeof window === "undefined" ? "undefined" : _typeof(window)) == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
check((typeof self === "undefined" ? "undefined" : _typeof(self)) == "object" && self) || check(_typeof(commonjsGlobal) == "object" && commonjsGlobal) || check(_typeof(commonjsGlobal) == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
/* @__PURE__ */ function() {
return this;
}() || Function("return this")()
);
var fails$W = function fails(exec2) {
try {
return !!exec2();
} catch (error) {
return true;
}
};
var fails$V = fails$W;
var functionBindNative = !fails$V(function() {
var test2 = (function() {
}).bind();
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
});
var NATIVE_BIND$4 = functionBindNative;
var FunctionPrototype$3 = Function.prototype;
var call$v = FunctionPrototype$3.call;
var uncurryThisWithBind = NATIVE_BIND$4 && FunctionPrototype$3.bind.bind(call$v, call$v);
var functionUncurryThis = NATIVE_BIND$4 ? uncurryThisWithBind : function(fn) {
return function() {
return call$v.apply(fn, arguments);
};
};
var fails$U = fails$W;
var arrayMethodIsStrict$7 = function arrayMethodIsStrict(METHOD_NAME, argument) {
var method = [][METHOD_NAME];
return !!method && fails$U(function() {
method.call(null, argument || function() {
return 1;
}, 1);
});
};
var $$1c = _export;
var uncurryThis$V = functionUncurryThis;
var IndexedObject$4 = indexedObject;
var toIndexedObject$c = toIndexedObject$4;
var arrayMethodIsStrict$6 = arrayMethodIsStrict$7;
var nativeJoin = uncurryThis$V([].join);
var ES3_STRINGS = IndexedObject$4 !== Object;
var FORCED$d = ES3_STRINGS || !arrayMethodIsStrict$6("join", ",");
$$1c({
target: "Array",
proto: true,
forced: FORCED$d
}, {
join: function join(separator) {
return nativeJoin(toIndexedObject$c(this), separator === void 0 ? "," : separator);
}
});
var documentAll = (typeof document === "undefined" ? "undefined" : _typeof(document)) == "object" && document.all;
var isCallable$u = typeof documentAll == "undefined" && documentAll !== void 0 ? function(argument) {
return typeof argument == "function" || argument === documentAll;
} : function(argument) {
return typeof argument == "function";
};
var $String$6 = String;
var tryToString$7 = function tryToString(argument) {
try {
return $String$6(argument);
} catch (error) {
return "Object";
}
};
var isCallable$t = isCallable$u;
var tryToString$6 = tryToString$7;
var $TypeError$j = TypeError;
var aCallable$d = function aCallable(argument) {
if (isCallable$t(argument)) return argument;
throw new $TypeError$j(tryToString$6(argument) + " is not a function");
};
var isCallable$s = isCallable$u;
var isObject$s = function isObject(it) {
return _typeof(it) == "object" ? it !== null : isCallable$s(it);
};
var isNullOrUndefined$6 = function isNullOrUndefined(it) {
return it === null || it === void 0;
};
var isNullOrUndefined$5 = isNullOrUndefined$6;
var $TypeError$i = TypeError;
var requireObjectCoercible$e = function requireObjectCoercible(it) {
if (isNullOrUndefined$5(it)) throw new $TypeError$i("Can't call method on " + it);
return it;
};
var requireObjectCoercible$d = requireObjectCoercible$e;
var $Object$4 = Object;
var toObject$h = function toObject(argument) {
return $Object$4(requireObjectCoercible$d(argument));
};
var uncurryThis$U = functionUncurryThis;
var toObject$g = toObject$h;
var hasOwnProperty = uncurryThis$U({}.hasOwnProperty);
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
return hasOwnProperty(toObject$g(it), key);
};
var $$1b = _export;
var isArray$7 = isArray$4;
$$1b({
target: "Array",
stat: true
}, {
isArray: isArray$7
});
var sharedStore = { exports: {} };
var isPure = false;
var fails$T = fails$W;
var descriptors = !fails$T(function() {
return Object.defineProperty({}, 1, {
get: function get5() {
return 7;
}
})[1] !== 7;
});
var objectDefineProperty = {};
var globalThis$L = globalThis_1;
var isObject$r = isObject$s;
var document$3 = globalThis$L.document;
var EXISTS$1 = isObject$r(document$3) && isObject$r(document$3.createElement);
var documentCreateElement$2 = function documentCreateElement(it) {
return EXISTS$1 ? document$3.createElement(it) : {};
};
var DESCRIPTORS$u = descriptors;
var fails$S = fails$W;
var createElement$1 = documentCreateElement$2;
var ie8DomDefine = !DESCRIPTORS$u && !fails$S(function() {
return Object.defineProperty(createElement$1("div"), "a", {
get: function get5() {
return 7;
}
}).a !== 7;
});
var DESCRIPTORS$t = descriptors;
var fails$R = fails$W;
var v8PrototypeDefineBug = DESCRIPTORS$t && fails$R(function() {
return Object.defineProperty(function() {
}, "prototype", {
value: 42,
writable: false
}).prototype !== 42;
});
var isObject$q = isObject$s;
var $String$5 = String;
var $TypeError$h = TypeError;
var anObject$l = function anObject(argument) {
if (isObject$q(argument)) return argument;
throw new $TypeError$h($String$5(argument) + " is not an object");
};
var NATIVE_BIND$3 = functionBindNative;
var call$u = Function.prototype.call;
var functionCall = NATIVE_BIND$3 ? call$u.bind(call$u) : function() {
return call$u.apply(call$u, arguments);
};
var globalThis$K = globalThis_1;
var isCallable$r = isCallable$u;
var aFunction = function aFunction2(argument) {
return isCallable$r(argument) ? argument : void 0;
};
var getBuiltIn$c = function getBuiltIn(namespace, method) {
return arguments.length < 2 ? aFunction(globalThis$K[namespace]) : globalThis$K[namespace] && globalThis$K[namespace][method];
};
var uncurryThis$T = functionUncurryThis;
var objectIsPrototypeOf = uncurryThis$T({}.isPrototypeOf);
var DESCRIPTORS$s = descriptors;
var hasOwn$n = hasOwnProperty_1;
var FunctionPrototype$2 = Function.prototype;
var getDescriptor = DESCRIPTORS$s && Object.getOwnPropertyDescriptor;
var EXISTS = hasOwn$n(FunctionPrototype$2, "name");
var PROPER = EXISTS && (function something() {
}).name === "something";
var CONFIGURABLE$1 = EXISTS && (!DESCRIPTORS$s || DESCRIPTORS$s && getDescriptor(FunctionPrototype$2, "name").configurable);
var functionName = {
EXISTS,
PROPER,
CONFIGURABLE: CONFIGURABLE$1
};
var makeBuiltIn$3 = { exports: {} };
var uncurryThis$S = functionUncurryThis;
var isCallable$q = isCallable$u;
var store$3 = sharedStoreExports;
var functionToString$1 = uncurryThis$S(Function.toString);
if (!isCallable$q(store$3.inspectSource)) {
store$3.inspectSource = function(it) {
return functionToString$1(it);
};
}
var inspectSource$3 = store$3.inspectSource;
var globalThis$J = globalThis_1;
var isCallable$p = isCallable$u;
var WeakMap$1 = globalThis$J.WeakMap;
var weakMapBasicDetection = isCallable$p(WeakMap$1) && /native code/.test(String(WeakMap$1));
var createPropertyDescriptor$7 = function createPropertyDescriptor(bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value
};
};
var DESCRIPTORS$r = descriptors;
var definePropertyModule$6 = objectDefineProperty;
var createPropertyDescriptor$6 = createPropertyDescriptor$7;
var createNonEnumerableProperty$a = DESCRIPTORS$r ? function(object, key, value) {
return definePropertyModule$6.f(object, key, createPropertyDescriptor$6(1, value));
} : function(object, key, value) {
object[key] = value;
return object;
};
var uncurryThis$R = functionUncurryThis;
var id$1 = 0;
var postfix = Math.random();
var toString$n = uncurryThis$R(1 .toString);
var uid$5 = function uid(key) {
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$n(++id$1 + postfix, 36);
};
var shared$7 = shared$2;
var uid$4 = uid$5;
var keys$1 = shared$7("keys");
var sharedKey$4 = function sharedKey(key) {
return keys$1[key] || (keys$1[key] = uid$4(key));
};
var hiddenKeys$6 = {};
var NATIVE_WEAK_MAP = weakMapBasicDetection;
var globalThis$I = globalThis_1;
var isObject$p = isObject$s;
var createNonEnumerableProperty$9 = createNonEnumerableProperty$a;
var hasOwn$m = hasOwnProperty_1;
var shared$6 = sharedStoreExports;
var sharedKey$3 = sharedKey$4;
var hiddenKeys$5 = hiddenKeys$6;
var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
var TypeError$7 = globalThis$I.TypeError;
var WeakMap = globalThis$I.WeakMap;
var set$2, get$1, has;
var enforce = function enforce2(it) {
return has(it) ? get$1(it) : set$2(it, {});
};
var getterFor = function getterFor2(TYPE) {
return function(it) {
var state;
if (!isObject$p(it) || (state = get$1(it)).type !== TYPE) {
throw new TypeError$7("Incompatible receiver, " + TYPE + " required");
}
return state;
};
};
if (NATIVE_WEAK_MAP || shared$6.state) {
var store$2 = shared$6.state || (shared$6.state = new WeakMap());
store$2.get = store$2.get;
store$2.has = store$2.has;
store$2.set = store$2.set;
set$2 = function set5(it, metadata) {
if (store$2.has(it)) throw new TypeError$7(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it;
store$2.set(it, metadata);
return metadata;
};
get$1 = function get5(it) {
return store$2.get(it) || {};
};
has = function has3(it) {
return store$2.has(it);
};
} else {
var STATE = sharedKey$3("state");
hiddenKeys$5[STATE] = true;
set$2 = function set5(it, metadata) {
if (hasOwn$m(it, STATE)) throw new TypeError$7(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it;
createNonEnumerableProperty$9(it, STATE, metadata);
return metadata;
};
get$1 = function get5(it) {
return hasOwn$m(it, STATE) ? it[STATE] : {};
};
has = function has3(it) {
return hasOwn$m(it, STATE);
};
}
var internalState = {
set: set$2,
get: get$1,
has,
enforce,
getterFor
};
var uncurryThis$Q = functionUncurryThis;
var fails$Q = fails$W;
var isCallable$o = isCallable$u;
var hasOwn$l = hasOwnProperty_1;
var DESCRIPTORS$q = descriptors;
var CONFIGURABLE_FUNCTION_NAME$2 = functionName.CONFIGURABLE;
var inspectSource$2 = inspectSource$3;
var InternalStateModule$a = internalState;
var enforceInternalState$3 = InternalStateModule$a.enforce;
var getInternalState$6 = InternalStateModule$a.get;
var $String$4 = String;
var defineProperty$b = Object.defineProperty;
var stringSlice$d = uncurryThis$Q("".slice);
var replace$9 = uncurryThis$Q("".replace);
var join$6 = uncurryThis$Q([].join);
var CONFIGURABLE_LENGTH = DESCRIPTORS$q && !fails$Q(function() {
return defineProperty$b(function() {
}, "length", {
value: 8
}).length !== 8;
});
var TEMPLATE = String(String).split("String");
var makeBuiltIn$2 = makeBuiltIn$3.exports = function(value, name, options) {
if (stringSlice$d($String$4(name), 0, 7) === "Symbol(") {
name = "[" + replace$9($String$4(name), /^Symbol\(([^)]*)\).*$/, "$1") + "]";
}
if (options && options.getter) name = "get " + name;
if (options && options.setter) name = "set " + name;
if (!hasOwn$l(value, "name") || CONFIGURABLE_FUNCTION_NAME$2 && value.name !== name) {
if (DESCRIPTORS$q) defineProperty$b(value, "name", {
value: name,
configurable: true
});
else value.name = name;
}
if (CONFIGURABLE_LENGTH && options && hasOwn$l(options, "arity") && value.length !== options.arity) {
defineProperty$b(value, "length", {
value: options.arity
});
}
try {
if (options && hasOwn$l(options, "constructor") && options.constructor) {
if (DESCRIPTORS$q) defineProperty$b(value, "prototype", {
writable: false
});
} else if (value.prototype) value.prototype = void 0;
} catch (error) {
}
var state = enforceInternalState$3(value);
if (!hasOwn$l(state, "source")) {
state.source = join$6(TEMPLATE, typeof name == "string" ? name : "");
}
return value;
};
Function.prototype.toString = makeBuiltIn$2(function toString() {
return isCallable$o(this) && getInternalState$6(this).source || inspectSource$2(this);
}, "toString");
var makeBuiltInExports = makeBuiltIn$3.exports;
var makeBuiltIn$1 = makeBuiltInExports;
var defineProperty$a = objectDefineProperty;
var defineBuiltInAccessor$b = function defineBuiltInAccessor(target, name, descriptor) {
if (descriptor.get) makeBuiltIn$1(descriptor.get, name, {
getter: true
});
if (descriptor.set) makeBuiltIn$1(descriptor.set, name, {
setter: true
});
return defineProperty$a.f(target, name, descriptor);
};
var DESCRIPTORS$p = descriptors;
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
var uncurryThis$P = functionUncurryThis;
var defineBuiltInAccessor$a = defineBuiltInAccessor$b;
var FunctionPrototype$1 = Function.prototype;
var functionToString = uncurryThis$P(FunctionPrototype$1.toString);
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
var regExpExec$4 = uncurryThis$P(nameRE.exec);
var NAME$1 = "name";
if (DESCRIPTORS$p && !FUNCTION_NAME_EXISTS) {
defineBuiltInAccessor$a(FunctionPrototype$1, NAME$1, {
configurable: true,
get: function get5() {
try {
return regExpExec$4(nameRE, functionToString(this))[1];
} catch (error) {
return "";
}
}
});
}
var isCallable$n = isCallable$u;
var definePropertyModule$5 = objectDefineProperty;
var makeBuiltIn = makeBuiltInExports;
var defineGlobalProperty$3 = defineGlobalProperty$2;
var defineBuiltIn$i = function defineBuiltIn(O, key, value, options) {
if (!options) options = {};
var simple = options.enumerable;
var name = options.name !== void 0 ? options.name : key;
if (isCallable$n(value)) makeBuiltIn(value, name, options);
if (options.global) {
if (simple) O[key] = value;
else defineGlobalProperty$3(key, value);
} else {
try {
if (!options.unsafe) delete O[key];
else if (O[key]) simple = true;
} catch (error) {
}
if (simple) O[key] = value;
else definePropertyModule$5.f(O, key, {
value,
enumerable: false,
configurable: !options.nonConfigurable,
writable: !options.nonWritable
});
}
return O;
};
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
var isCallable$m = isCallable$u;
var classofRaw$2 = classofRaw;
var wellKnownSymbol$u = wellKnownSymbol$i;
var TO_STRING_TAG$3 = wellKnownSymbol$u("toStringTag");
var $Object$3 = Object;
var CORRECT_ARGUMENTS = classofRaw$2(/* @__PURE__ */ function() {
return arguments;
}()) === "Arguments";
var tryGet = function tryGet2(it, key) {
try {
return it[key];
} catch (error) {
}
};
var classof$h = TO_STRING_TAG_SUPPORT$2 ? classofRaw$2 : function(it) {
var O, tag, result;
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object$3(it), TO_STRING_TAG$3)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw$2(O) : (result = classofRaw$2(O)) === "Object" && isCallable$m(O.callee) ? "Arguments" : result;
};
var classof$g = classof$h;
var $String$3 = String;
var toString$m = function toString2(argument) {
if (classof$g(argument) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
return $String$3(argument);
};
var anObject$k = anObject$l;
var regexpFlags$1 = function regexpFlags() {
var that = anObject$k(this);
var result = "";
if (that.hasIndices) result += "d";
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.unicodeSets) result += "v";
if (that.sticky) result += "y";
return result;
};
var globalThis$H = globalThis_1;
var DESCRIPTORS$o = descriptors;
var defineBuiltInAccessor$9 = defineBuiltInAccessor$b;
var regExpFlags$1 = regexpFlags$1;
var fails$P = fails$W;
var RegExp$1 = globalThis$H.RegExp;
var RegExpPrototype$4 = RegExp$1.prototype;
var FORCED$c = DESCRIPTORS$o && fails$P(function() {
var INDICES_SUPPORT = true;
try {
RegExp$1(".", "d");
} catch (error) {
INDICES_SUPPORT = false;
}
var O = {};
var calls = "";
var expected = INDICES_SUPPORT ? "dgimsy" : "gimsy";
var addGetter4 = function addGetter5(key2, chr) {
Object.defineProperty(O, key2, {
get: function get5() {
calls += chr;
return true;
}
});
};
var pairs = {
dotAll: "s",
global: "g",
ignoreCase: "i",
multiline: "m",
sticky: "y"
};
if (INDICES_SUPPORT) pairs.hasIndices = "d";
for (var key in pairs) addGetter4(key, pairs[key]);
var result = Object.getOwnPropertyDescriptor(RegExpPrototype$4, "flags").get.call(O);
return result !== expected || calls !== expected;
});
if (FORCED$c) defineBuiltInAccessor$9(RegExpPrototype$4, "flags", {
configurable: true,
get: regExpFlags$1
});
var call$t = functionCall;
var hasOwn$k = hasOwnProperty_1;
var isPrototypeOf$9 = objectIsPrototypeOf;
var regExpFlags = regexpFlags$1;
var RegExpPrototype$3 = RegExp.prototype;
var regexpGetFlags = function regexpGetFlags2(R) {
var flags = R.flags;
return flags === void 0 && !("flags" in RegExpPrototype$3) && !hasOwn$k(R, "flags") && isPrototypeOf$9(RegExpPrototype$3, R) ? call$t(regExpFlags, R) : flags;
};
var PROPER_FUNCTION_NAME$3 = functionName.PROPER;
var defineBuiltIn$h = defineBuiltIn$i;
var anObject$j = anObject$l;
var $toString$3 = toString$m;
var fails$O = fails$W;
var getRegExpFlags$1 = regexpGetFlags;
var TO_STRING$1 = "toString";
var RegExpPrototype$2 = RegExp.prototype;
var nativeToString = RegExpPrototype$2[TO_STRING$1];
var NOT_GENERIC = fails$O(function() {
return nativeToString.call({
source: "a",
flags: "b"
}) !== "/a/b";
});
var INCORRECT_NAME = PROPER_FUNCTION_NAME$3 && nativeToString.name !== TO_STRING$1;
if (NOT_GENERIC || INCORRECT_NAME) {
defineBuiltIn$h(RegExpPrototype$2, TO_STRING$1, function toString7() {
var R = anObject$j(this);
var pattern = $toString$3(R.source);
var flags = $toString$3(getRegExpFlags$1(R));
return "/" + pattern + "/" + flags;
}, {
unsafe: true
});
}
var objectGetOwnPropertyNamesExternal = {};
var classof$f = classofRaw;
var toIndexedObject$b = toIndexedObject$4;
var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
var arraySlice$a = arraySlice$8;
var windowNames = (typeof window === "undefined" ? "undefined" : _typeof(window)) == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function getWindowNames2(it) {
try {
return $getOwnPropertyNames$1(it);
} catch (error) {
return arraySlice$a(windowNames);
}
};
objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {
return windowNames && classof$f(it) === "Window" ? getWindowNames(it) : $getOwnPropertyNames$1(toIndexedObject$b(it));
};
var $$1a = _export;
var fails$N = fails$W;
var getOwnPropertyNames$3 = objectGetOwnPropertyNamesExternal.f;
var FAILS_ON_PRIMITIVES$4 = fails$N(function() {
return !Object.getOwnPropertyNames(1);
});
$$1a({
target: "Object",
stat: true,
forced: FAILS_ON_PRIMITIVES$4
}, {
getOwnPropertyNames: getOwnPropertyNames$3
});
var objectGetOwnPropertyNames = {};
var classofRaw$1 = classofRaw;
var uncurryThis$O = functionUncurryThis;
var functionUncurryThisClause = function functionUncurryThisClause2(fn) {
if (classofRaw$1(fn) === "Function") return uncurryThis$O(fn);
};
var $$19 = _export;
var trunc$1 = mathTrunc;
$$19({
target: "Math",
stat: true
}, {
trunc: trunc$1
});
var ceil$1 = Math.ceil;
var floor$7 = Math.floor;
var mathTrunc = Math.trunc || function trunc(x) {
var n = +x;
return (n > 0 ? floor$7 : ceil$1)(n);
};
var trunc2 = mathTrunc;
var toIntegerOrInfinity$a = function toIntegerOrInfinity(argument) {
var number = +argument;
return number !== number || number === 0 ? 0 : trunc2(number);
};
var toIntegerOrInfinity$9 = toIntegerOrInfinity$a;
var max$3 = Math.max;
var min$8 = Math.min;
var toAbsoluteIndex$8 = function toAbsoluteIndex(index, length) {
var integer = toIntegerOrInfinity$9(index);
return integer < 0 ? max$3(integer + length, 0) : min$8(integer, length);
};
var toIntegerOrInfinity$8 = toIntegerOrInfinity$a;
var min$7 = Math.min;
var toLength$c = function toLength(argument) {
var len = toIntegerOrInfinity$8(argument);
return len > 0 ? min$7(len, 9007199254740991) : 0;
};
var toLength$b = toLength$c;
var lengthOfArrayLike$f = function lengthOfArrayLike(obj) {
return toLength$b(obj.length);
};
var toIndexedObject$a = toIndexedObject$4;
var toAbsoluteIndex$7 = toAbsoluteIndex$8;
var lengthOfArrayLike$e = lengthOfArrayLike$f;
var createMethod$5 = function createMethod(IS_INCLUDES) {
return function($this, el, fromIndex) {
var O = toIndexedObject$a($this);
var length = lengthOfArrayLike$e(O);
if (length === 0) return !IS_INCLUDES && -1;
var index = toAbsoluteIndex$7(fromIndex, length);
var value;
if (IS_INCLUDES && el !== el) while (length > index) {
value = O[index++];
if (value !== value) return true;
}
else for (; length > index; index++) {
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
}
return !IS_INCLUDES && -1;
};
};
var arrayIncludes = {
// `Array.prototype.includes` method
// https://tc39.es/ecma262/#sec-array.prototype.includes
includes: createMethod$5(true),
// `Array.prototype.indexOf` method
// https://tc39.es/ecma262/#sec-array.prototype.indexof
indexOf: createMethod$5(false)
};
var $$18 = _export;
var uncurryThis$N = functionUncurryThisClause;
var $indexOf$1 = arrayIncludes.indexOf;
var arrayMethodIsStrict$5 = arrayMethodIsStrict$7;
var nativeIndexOf = uncurryThis$N([].indexOf);
var NEGATIVE_ZERO$1 = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
var FORCED$b = NEGATIVE_ZERO$1 || !arrayMethodIsStrict$5("indexOf");
$$18({
target: "Array",
proto: true,
forced: FORCED$b
}, {
indexOf: function indexOf(searchElement) {
var fromIndex = arguments.length > 1 ? arguments[1] : void 0;
return NEGATIVE_ZERO$1 ? nativeIndexOf(this, searchElement, fromIndex) || 0 : $indexOf$1(this, searchElement, fromIndex);
}
});
var uncurryThis$M = functionUncurryThis;
var hasOwn$j = hasOwnProperty_1;
var toIndexedObject$9 = toIndexedObject$4;
var indexOf$1 = arrayIncludes.indexOf;
var hiddenKeys$4 = hiddenKeys$6;
var push$9 = uncurryThis$M([].push);
var objectKeysInternal = function objectKeysInternal2(object, names) {
var O = toIndexedObject$9(object);
var i = 0;
var result = [];
var key;
for (key in O) !hasOwn$j(hiddenKeys$4, key) && hasOwn$j(O, key) && push$9(result, key);
while (names.length > i) if (hasOwn$j(O, key = names[i++])) {
~indexOf$1(result, key) || push$9(result, key);
}
return result;
};
var enumBugKeys$3 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
var internalObjectKeys$1 = objectKeysInternal;
var enumBugKeys$2 = enumBugKeys$3;
var hiddenKeys$3 = enumBugKeys$2.concat("length", "prototype");
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames2(O) {
return internalObjectKeys$1(O, hiddenKeys$3);
};
var objectGetOwnPropertySymbols = {};
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
var getBuiltIn$b = getBuiltIn$c;
var uncurryThis$L = functionUncurryThis;
var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames;
var getOwnPropertySymbolsModule$3 = objectGetOwnPropertySymbols;
var anObject$i = anObject$l;
var concat$3 = uncurryThis$L([].concat);
var ownKeys$1 = getBuiltIn$b("Reflect", "ownKeys") || function ownKeys(it) {
var keys5 = getOwnPropertyNamesModule$2.f(anObject$i(it));
var getOwnPropertySymbols2 = getOwnPropertySymbolsModule$3.f;
return getOwnPropertySymbols2 ? concat$3(keys5, getOwnPropertySymbols2(it)) : keys5;
};
var hasOwn$i = hasOwnProperty_1;
var ownKeys2 = ownKeys$1;
var getOwnPropertyDescriptorModule$2 = objectGetOwnPropertyDescriptor;
var definePropertyModule$4 = objectDefineProperty;
var copyConstructorProperties$4 = function copyConstructorProperties(target, source, exceptions) {
var keys5 = ownKeys2(source);
var defineProperty6 = definePropertyModule$4.f;
var getOwnPropertyDescriptor6 = getOwnPropertyDescriptorModule$2.f;
for (var i = 0; i < keys5.length; i++) {
var key = keys5[i];
if (!hasOwn$i(target, key) && !(exceptions && hasOwn$i(exceptions, key))) {
defineProperty6(target, key, getOwnPropertyDescriptor6(source, key));
}
}
};
var $$17 = _export;
var DESCRIPTORS$n = descriptors;
var globalThis$G = globalThis_1;
var uncurryThis$K = functionUncurryThis;
var hasOwn$h = hasOwnProperty_1;
var isCallable$l = isCallable$u;
var isPrototypeOf$8 = objectIsPrototypeOf;
var toString$l = toString$m;
var defineBuiltInAccessor$8 = defineBuiltInAccessor$b;
var copyConstructorProperties$3 = copyConstructorProperties$4;
var NativeSymbol = globalThis$G.Symbol;
var SymbolPrototype$1 = NativeSymbol && NativeSymbol.prototype;
if (DESCRIPTORS$n && isCallable$l(NativeSymbol) && (!("description" in SymbolPrototype$1) || // Safari 12 bug
NativeSymbol().description !== void 0)) {
var EmptyStringDescriptionStore = {};
var SymbolWrapper = function _Symbol2() {
var description = arguments.length < 1 || arguments[0] === void 0 ? void 0 : toString$l(arguments[0]);
var result = isPrototypeOf$8(SymbolPrototype$1, this) ? new NativeSymbol(description) : description === void 0 ? NativeSymbol() : NativeSymbol(description);
if (description === "") EmptyStringDescriptionStore[result] = true;
return result;
};
copyConstructorProperties$3(SymbolWrapper, NativeSymbol);
SymbolWrapper.prototype = SymbolPrototype$1;
SymbolPrototype$1.constructor = SymbolWrapper;
var NATIVE_SYMBOL$6 = String(NativeSymbol("description detection")) === "Symbol(description detection)";
var thisSymbolValue = uncurryThis$K(SymbolPrototype$1.valueOf);
var symbolDescriptiveString = uncurryThis$K(SymbolPrototype$1.toString);
var regexp = /^Symbol\((.*)\)[^)]+$/;
var replace$8 = uncurryThis$K("".replace);
var stringSlice$c = uncurryThis$K("".slice);
defineBuiltInAccessor$8(SymbolPrototype$1, "description", {
configurable: true,
get: function description() {
var symbol = thisSymbolValue(this);
if (hasOwn$h(EmptyStringDescriptionStore, symbol)) return "";
var string = symbolDescriptiveString(symbol);
var desc = NATIVE_SYMBOL$6 ? stringSlice$c(string, 7, -1) : replace$8(string, regexp, "$1");
return desc === "" ? void 0 : desc;
}
});
$$17({
global: true,
constructor: true,
forced: true
}, {
Symbol: SymbolWrapper
});
}
var domIterables = {
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
};
var documentCreateElement$1 = documentCreateElement$2;
var classList = documentCreateElement$1("span").classList;
var DOMTokenListPrototype$2 = classList && classList.constructor && classList.constructor.prototype;
var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? void 0 : DOMTokenListPrototype$2;
var globalThis$F = globalThis_1;
var DOMIterables$1 = domIterables;
var DOMTokenListPrototype$1 = domTokenListPrototype;
var forEach$2 = arrayForEach;
var createNonEnumerableProperty$8 = createNonEnumerableProperty$a;
var handlePrototype$1 = function handlePrototype(CollectionPrototype) {
if (CollectionPrototype && CollectionPrototype.forEach !== forEach$2) try {
createNonEnumerableProperty$8(CollectionPrototype, "forEach", forEach$2);
} catch (error) {
CollectionPrototype.forEach = forEach$2;
}
};
for (var COLLECTION_NAME$1 in DOMIterables$1) {
if (DOMIterables$1[COLLECTION_NAME$1]) {
handlePrototype$1(globalThis$F[COLLECTION_NAME$1] && globalThis$F[COLLECTION_NAME$1].prototype);
}
}
handlePrototype$1(DOMTokenListPrototype$1);
var uncurryThis$J = functionUncurryThisClause;
var aCallable$c = aCallable$d;
var NATIVE_BIND$2 = functionBindNative;
var bind$b = uncurryThis$J(uncurryThis$J.bind);
var functionBindContext = function functionBindContext2(fn, that) {
aCallable$c(fn);
return that === void 0 ? fn : NATIVE_BIND$2 ? bind$b(fn, that) : function() {
return fn.apply(that, arguments);
};
};
var uncurryThis$I = functionUncurryThis;
var fails$M = fails$W;
var isCallable$k = isCallable$u;
var classof$e = classof$h;
var getBuiltIn$a = getBuiltIn$c;
var inspectSource$1 = inspectSource$3;
var noop = function noop2() {
};
var construct$1 = getBuiltIn$a("Reflect", "construct");
var constructorRegExp = /^\s*(?:class|function)\b/;
var exec$7 = uncurryThis$I(constructorRegExp.exec);
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
var isConstructorModern = function isConstructor(argument) {
if (!isCallable$k(argument)) return false;
try {
construct$1(noop, [], argument);
return true;
} catch (error) {
return false;
}
};
var isConstructorLegacy = function isConstructor2(argument) {
if (!isCallable$k(argument)) return false;
switch (classof$e(argument)) {
case "AsyncFunction":
case "GeneratorFunction":
case "AsyncGeneratorFunction":
return false;
}
try {
return INCORRECT_TO_STRING || !!exec$7(constructorRegExp, inspectSource$1(argument));
} catch (error) {
return true;
}
};
is