UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

1,226 lines 2.55 MB
// dist/igniteui-angular-elements/browser/polyfills.js var ae = globalThis; function ee(t) { return (ae.__Zone_symbol_prefix || "__zone_symbol__") + t; } function kt() { let t = ae.performance; function e(O) { t && t.mark && t.mark(O); } function i(O, E10) { t && t.measure && t.measure(O, E10); } e("Zone"); let n40 = (() => { class O { static { this.__symbol__ = ee; } static assertZonePatched() { if (ae.Promise !== N10.ZoneAwarePromise) throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)"); } static get root() { let r = O.current; for (; r.parent; ) r = r.parent; return r; } static get current() { return v10.zone; } static get currentTask() { return D10; } static __load_patch(r, o, y10 = false) { if (N10.hasOwnProperty(r)) { let w = ae[ee("forceDuplicateZoneCheck")] === true; if (!y10 && w) throw Error("Already loaded patch: " + r); } else if (!ae["__Zone_disable_" + r]) { let w = "Zone:" + r; e(w), N10[r] = o(ae, O, S10), i(w, w); } } get parent() { return this._parent; } get name() { return this._name; } constructor(r, o) { this._parent = r, this._name = o ? o.name || "unnamed" : "<root>", this._properties = o && o.properties || {}, this._zoneDelegate = new c(this, this._parent && this._parent._zoneDelegate, o); } get(r) { let o = this.getZoneWith(r); if (o) return o._properties[r]; } getZoneWith(r) { let o = this; for (; o; ) { if (o._properties.hasOwnProperty(r)) return o; o = o._parent; } return null; } fork(r) { if (!r) throw new Error("ZoneSpec required!"); return this._zoneDelegate.fork(this, r); } wrap(r, o) { if (typeof r != "function") throw new Error("Expecting function got: " + r); let y10 = this._zoneDelegate.intercept(this, r, o), w = this; return function() { return w.runGuarded(y10, this, arguments, o); }; } run(r, o, y10, w) { v10 = { parent: v10, zone: this }; try { return this._zoneDelegate.invoke(this, r, o, y10, w); } finally { v10 = v10.parent; } } runGuarded(r, o = null, y10, w) { v10 = { parent: v10, zone: this }; try { try { return this._zoneDelegate.invoke(this, r, o, y10, w); } catch (q10) { if (this._zoneDelegate.handleError(this, q10)) throw q10; } } finally { v10 = v10.parent; } } runTask(r, o, y10) { if (r.zone != this) throw new Error("A task can only be run in the zone of creation! (Creation: " + (r.zone || J10).name + "; Execution: " + this.name + ")"); let w = r, { type: q10, data: { isPeriodic: Z10 = false, isRefreshable: _e2 = false } = {} } = r; if (r.state === X && (q10 === W10 || q10 === m10)) return; let ce2 = r.state != H10; ce2 && w._transitionTo(H10, f10); let le2 = D10; D10 = w, v10 = { parent: v10, zone: this }; try { q10 == m10 && r.data && !Z10 && !_e2 && (r.cancelFn = void 0); try { return this._zoneDelegate.invokeTask(this, w, o, y10); } catch (ne2) { if (this._zoneDelegate.handleError(this, ne2)) throw ne2; } } finally { let ne2 = r.state; if (ne2 !== X && ne2 !== Y10) if (q10 == W10 || Z10 || _e2 && ne2 === k10) ce2 && w._transitionTo(f10, H10, k10); else { let h5 = w._zoneDelegates; this._updateTaskCount(w, -1), ce2 && w._transitionTo(X, H10, X), _e2 && (w._zoneDelegates = h5); } v10 = v10.parent, D10 = le2; } } scheduleTask(r) { if (r.zone && r.zone !== this) { let y10 = this; for (; y10; ) { if (y10 === r.zone) throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`); y10 = y10.parent; } } r._transitionTo(k10, X); let o = []; r._zoneDelegates = o, r._zone = this; try { r = this._zoneDelegate.scheduleTask(this, r); } catch (y10) { throw r._transitionTo(Y10, k10, X), this._zoneDelegate.handleError(this, y10), y10; } return r._zoneDelegates === o && this._updateTaskCount(r, 1), r.state == k10 && r._transitionTo(f10, k10), r; } scheduleMicroTask(r, o, y10, w) { return this.scheduleTask(new d10(F10, r, o, y10, w, void 0)); } scheduleMacroTask(r, o, y10, w, q10) { return this.scheduleTask(new d10(m10, r, o, y10, w, q10)); } scheduleEventTask(r, o, y10, w, q10) { return this.scheduleTask(new d10(W10, r, o, y10, w, q10)); } cancelTask(r) { if (r.zone != this) throw new Error("A task can only be cancelled in the zone of creation! (Creation: " + (r.zone || J10).name + "; Execution: " + this.name + ")"); if (!(r.state !== f10 && r.state !== H10)) { r._transitionTo(V, f10, H10); try { this._zoneDelegate.cancelTask(this, r); } catch (o) { throw r._transitionTo(Y10, V), this._zoneDelegate.handleError(this, o), o; } return this._updateTaskCount(r, -1), r._transitionTo(X, V), r.runCount = -1, r; } } _updateTaskCount(r, o) { let y10 = r._zoneDelegates; o == -1 && (r._zoneDelegates = null); for (let w = 0; w < y10.length; w++) y10[w]._updateTaskCount(r.type, o); } } return O; })(), a = { name: "", onHasTask: (O, E10, r, o) => O.hasTask(r, o), onScheduleTask: (O, E10, r, o) => O.scheduleTask(r, o), onInvokeTask: (O, E10, r, o, y10, w) => O.invokeTask(r, o, y10, w), onCancelTask: (O, E10, r, o) => O.cancelTask(r, o) }; class c { get zone() { return this._zone; } constructor(E10, r, o) { this._taskCounts = { microTask: 0, macroTask: 0, eventTask: 0 }, this._zone = E10, this._parentDelegate = r, this._forkZS = o && (o && o.onFork ? o : r._forkZS), this._forkDlgt = o && (o.onFork ? r : r._forkDlgt), this._forkCurrZone = o && (o.onFork ? this._zone : r._forkCurrZone), this._interceptZS = o && (o.onIntercept ? o : r._interceptZS), this._interceptDlgt = o && (o.onIntercept ? r : r._interceptDlgt), this._interceptCurrZone = o && (o.onIntercept ? this._zone : r._interceptCurrZone), this._invokeZS = o && (o.onInvoke ? o : r._invokeZS), this._invokeDlgt = o && (o.onInvoke ? r : r._invokeDlgt), this._invokeCurrZone = o && (o.onInvoke ? this._zone : r._invokeCurrZone), this._handleErrorZS = o && (o.onHandleError ? o : r._handleErrorZS), this._handleErrorDlgt = o && (o.onHandleError ? r : r._handleErrorDlgt), this._handleErrorCurrZone = o && (o.onHandleError ? this._zone : r._handleErrorCurrZone), this._scheduleTaskZS = o && (o.onScheduleTask ? o : r._scheduleTaskZS), this._scheduleTaskDlgt = o && (o.onScheduleTask ? r : r._scheduleTaskDlgt), this._scheduleTaskCurrZone = o && (o.onScheduleTask ? this._zone : r._scheduleTaskCurrZone), this._invokeTaskZS = o && (o.onInvokeTask ? o : r._invokeTaskZS), this._invokeTaskDlgt = o && (o.onInvokeTask ? r : r._invokeTaskDlgt), this._invokeTaskCurrZone = o && (o.onInvokeTask ? this._zone : r._invokeTaskCurrZone), this._cancelTaskZS = o && (o.onCancelTask ? o : r._cancelTaskZS), this._cancelTaskDlgt = o && (o.onCancelTask ? r : r._cancelTaskDlgt), this._cancelTaskCurrZone = o && (o.onCancelTask ? this._zone : r._cancelTaskCurrZone), this._hasTaskZS = null, this._hasTaskDlgt = null, this._hasTaskDlgtOwner = null, this._hasTaskCurrZone = null; let y10 = o && o.onHasTask, w = r && r._hasTaskZS; (y10 || w) && (this._hasTaskZS = y10 ? o : a, this._hasTaskDlgt = r, this._hasTaskDlgtOwner = this, this._hasTaskCurrZone = this._zone, o.onScheduleTask || (this._scheduleTaskZS = a, this._scheduleTaskDlgt = r, this._scheduleTaskCurrZone = this._zone), o.onInvokeTask || (this._invokeTaskZS = a, this._invokeTaskDlgt = r, this._invokeTaskCurrZone = this._zone), o.onCancelTask || (this._cancelTaskZS = a, this._cancelTaskDlgt = r, this._cancelTaskCurrZone = this._zone)); } fork(E10, r) { return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, E10, r) : new n40(E10, r); } intercept(E10, r, o) { return this._interceptZS ? this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, E10, r, o) : r; } invoke(E10, r, o, y10, w) { return this._invokeZS ? this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, E10, r, o, y10, w) : r.apply(o, y10); } handleError(E10, r) { return this._handleErrorZS ? this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, E10, r) : true; } scheduleTask(E10, r) { let o = r; if (this._scheduleTaskZS) this._hasTaskZS && o._zoneDelegates.push(this._hasTaskDlgtOwner), o = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, E10, r), o || (o = r); else if (r.scheduleFn) r.scheduleFn(r); else if (r.type == F10) z(r); else throw new Error("Task is missing scheduleFn."); return o; } invokeTask(E10, r, o, y10) { return this._invokeTaskZS ? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, E10, r, o, y10) : r.callback.apply(o, y10); } cancelTask(E10, r) { let o; if (this._cancelTaskZS) o = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, E10, r); else { if (!r.cancelFn) throw Error("Task is not cancelable"); o = r.cancelFn(r); } return o; } hasTask(E10, r) { try { this._hasTaskZS && this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, E10, r); } catch (o) { this.handleError(E10, o); } } _updateTaskCount(E10, r) { let o = this._taskCounts, y10 = o[E10], w = o[E10] = y10 + r; if (w < 0) throw new Error("More tasks executed then were scheduled."); if (y10 == 0 || w == 0) { let q10 = { microTask: o.microTask > 0, macroTask: o.macroTask > 0, eventTask: o.eventTask > 0, change: E10 }; this.hasTask(this._zone, q10); } } } class d10 { constructor(E10, r, o, y10, w, q10) { if (this._zone = null, this.runCount = 0, this._zoneDelegates = null, this._state = "notScheduled", this.type = E10, this.source = r, this.data = y10, this.scheduleFn = w, this.cancelFn = q10, !o) throw new Error("callback is not defined"); this.callback = o; let Z10 = this; E10 === W10 && y10 && y10.useG ? this.invoke = d10.invokeTask : this.invoke = function() { return d10.invokeTask.call(ae, Z10, this, arguments); }; } static invokeTask(E10, r, o) { E10 || (E10 = this), Q++; try { return E10.runCount++, E10.zone.runTask(E10, r, o); } finally { Q == 1 && K10(), Q--; } } get zone() { return this._zone; } get state() { return this._state; } cancelScheduleRequest() { this._transitionTo(X, k10); } _transitionTo(E10, r, o) { if (this._state === r || this._state === o) this._state = E10, E10 == X && (this._zoneDelegates = null); else throw new Error(`${this.type} '${this.source}': can not transition to '${E10}', expecting state '${r}'${o ? " or '" + o + "'" : ""}, was '${this._state}'.`); } toString() { return this.data && typeof this.data.handleId < "u" ? this.data.handleId.toString() : Object.prototype.toString.call(this); } toJSON() { return { type: this.type, state: this.state, source: this.source, zone: this.zone.name, runCount: this.runCount }; } } let T10 = ee("setTimeout"), g = ee("Promise"), C10 = ee("then"), _10 = [], R10 = false, A10; function x(O) { if (A10 || ae[g] && (A10 = ae[g].resolve(0)), A10) { let E10 = A10[C10]; E10 || (E10 = A10.then), E10.call(A10, O); } else ae[T10](O, 0); } function z(O) { Q === 0 && _10.length === 0 && x(K10), O && _10.push(O); } function K10() { if (!R10) { for (R10 = true; _10.length; ) { let O = _10; _10 = []; for (let E10 = 0; E10 < O.length; E10++) { let r = O[E10]; try { r.zone.runTask(r, null, null); } catch (o) { S10.onUnhandledError(o); } } } S10.microtaskDrainDone(), R10 = false; } } let J10 = { name: "NO ZONE" }, X = "notScheduled", k10 = "scheduling", f10 = "scheduled", H10 = "running", V = "canceling", Y10 = "unknown", F10 = "microTask", m10 = "macroTask", W10 = "eventTask", N10 = {}, S10 = { symbol: ee, currentZoneFrame: () => v10, onUnhandledError: U10, microtaskDrainDone: U10, scheduleMicroTask: z, showUncaughtError: () => !n40[ee("ignoreConsoleErrorUncaughtError")], patchEventTarget: () => [], patchOnProperties: U10, patchMethod: () => U10, bindArguments: () => [], patchThen: () => U10, patchMacroTask: () => U10, patchEventPrototype: () => U10, isIEOrEdge: () => false, getGlobalObjects: () => { }, ObjectDefineProperty: () => U10, ObjectGetOwnPropertyDescriptor: () => { }, ObjectCreate: () => { }, ArraySlice: () => [], patchClass: () => U10, wrapWithCurrentZone: () => U10, filterProperties: () => [], attachOriginToPatched: () => U10, _redefineProperty: () => U10, patchCallbacks: () => U10, nativeScheduleMicroTask: x }, v10 = { parent: null, zone: new n40(null, null) }, D10 = null, Q = 0; function U10() { } return i("Zone", "Zone"), n40; } function bt() { let t = globalThis, e = t[ee("forceDuplicateZoneCheck")] === true; if (t.Zone && (e || typeof t.Zone.__symbol__ != "function")) throw new Error("Zone already loaded."); return t.Zone ??= kt(), t.Zone; } var ve = Object.getOwnPropertyDescriptor; var He = Object.defineProperty; var je = Object.getPrototypeOf; var vt = Object.create; var wt = Array.prototype.slice; var xe = "addEventListener"; var Ve = "removeEventListener"; var Me = ee(xe); var Le = ee(Ve); var ue = "true"; var he = "false"; var we = ee(""); function Fe(t, e) { return Zone.current.wrap(t, e); } function Be(t, e, i, n40, a) { return Zone.current.scheduleMacroTask(t, e, i, n40, a); } var j = ee; var De = typeof window < "u"; var ye = De ? window : void 0; var $ = De && ye || globalThis; var Rt = "removeAttribute"; function Ge(t, e) { for (let i = t.length - 1; i >= 0; i--) typeof t[i] == "function" && (t[i] = Fe(t[i], e + "_" + i)); return t; } function St(t, e) { let i = t.constructor.name; for (let n40 = 0; n40 < e.length; n40++) { let a = e[n40], c = t[a]; if (c) { let d10 = ve(t, a); if (!rt(d10)) continue; t[a] = ((T10) => { let g = function() { return T10.apply(this, Ge(arguments, i + "." + a)); }; return de(g, T10), g; })(c); } } } function rt(t) { return t ? t.writable === false ? false : !(typeof t.get == "function" && typeof t.set > "u") : true; } var ot = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope; var Ne = !("nw" in $) && typeof $.process < "u" && $.process.toString() === "[object process]"; var ze = !Ne && !ot && !!(De && ye.HTMLElement); var st = typeof $.process < "u" && $.process.toString() === "[object process]" && !ot && !!(De && ye.HTMLElement); var Ce = {}; var Pt = j("enable_beforeunload"); var Ke = function(t) { if (t = t || $.event, !t) return; let e = Ce[t.type]; e || (e = Ce[t.type] = j("ON_PROPERTY" + t.type)); let i = this || t.target || $, n40 = i[e], a; if (ze && i === ye && t.type === "error") { let c = t; a = n40 && n40.call(this, c.message, c.filename, c.lineno, c.colno, c.error), a === true && t.preventDefault(); } else a = n40 && n40.apply(this, arguments), t.type === "beforeunload" && $[Pt] && typeof a == "string" ? t.returnValue = a : a != null && !a && t.preventDefault(); return a; }; function Je(t, e, i) { let n40 = ve(t, e); if (!n40 && i && ve(i, e) && (n40 = { enumerable: true, configurable: true }), !n40 || !n40.configurable) return; let a = j("on" + e + "patched"); if (t.hasOwnProperty(a) && t[a]) return; delete n40.writable, delete n40.value; let c = n40.get, d10 = n40.set, T10 = e.slice(2), g = Ce[T10]; g || (g = Ce[T10] = j("ON_PROPERTY" + T10)), n40.set = function(C10) { let _10 = this; if (!_10 && t === $ && (_10 = $), !_10) return; typeof _10[g] == "function" && _10.removeEventListener(T10, Ke), d10 && d10.call(_10, null), _10[g] = C10, typeof C10 == "function" && _10.addEventListener(T10, Ke, false); }, n40.get = function() { let C10 = this; if (!C10 && t === $ && (C10 = $), !C10) return null; let _10 = C10[g]; if (_10) return _10; if (c) { let R10 = c.call(this); if (R10) return n40.set.call(this, R10), typeof C10[Rt] == "function" && C10.removeAttribute(e), R10; } return null; }, He(t, e, n40), t[a] = true; } function it(t, e, i) { if (e) for (let n40 = 0; n40 < e.length; n40++) Je(t, "on" + e[n40], i); else { let n40 = []; for (let a in t) a.slice(0, 2) == "on" && n40.push(a); for (let a = 0; a < n40.length; a++) Je(t, n40[a], i); } } var oe = j("originalInstance"); function be(t) { let e = $[t]; if (!e) return; $[j(t)] = e, $[t] = function() { let a = Ge(arguments, t); switch (a.length) { case 0: this[oe] = new e(); break; case 1: this[oe] = new e(a[0]); break; case 2: this[oe] = new e(a[0], a[1]); break; case 3: this[oe] = new e(a[0], a[1], a[2]); break; case 4: this[oe] = new e(a[0], a[1], a[2], a[3]); break; default: throw new Error("Arg list too long."); } }, de($[t], e); let i = new e(function() { }), n40; for (n40 in i) t === "XMLHttpRequest" && n40 === "responseBlob" || function(a) { typeof i[a] == "function" ? $[t].prototype[a] = function() { return this[oe][a].apply(this[oe], arguments); } : He($[t].prototype, a, { set: function(c) { typeof c == "function" ? (this[oe][a] = Fe(c, t + "." + a), de(this[oe][a], c)) : this[oe][a] = c; }, get: function() { return this[oe][a]; } }); }(n40); for (n40 in e) n40 !== "prototype" && e.hasOwnProperty(n40) && ($[t][n40] = e[n40]); } function fe(t, e, i) { let n40 = t; for (; n40 && !n40.hasOwnProperty(e); ) n40 = je(n40); !n40 && t[e] && (n40 = t); let a = j(e), c = null; if (n40 && (!(c = n40[a]) || !n40.hasOwnProperty(a))) { c = n40[a] = n40[e]; let d10 = n40 && ve(n40, e); if (rt(d10)) { let T10 = i(c, a, e); n40[e] = function() { return T10(this, arguments); }, de(n40[e], c); } } return c; } function Ct(t, e, i) { let n40 = null; function a(c) { let d10 = c.data; return d10.args[d10.cbIdx] = function() { c.invoke.apply(this, arguments); }, n40.apply(d10.target, d10.args), c; } n40 = fe(t, e, (c) => function(d10, T10) { let g = i(d10, T10); return g.cbIdx >= 0 && typeof T10[g.cbIdx] == "function" ? Be(g.name, T10[g.cbIdx], g, a) : c.apply(d10, T10); }); } function de(t, e) { t[j("OriginalDelegate")] = e; } var Qe = false; var Ae = false; function Dt() { try { let t = ye.navigator.userAgent; if (t.indexOf("MSIE ") !== -1 || t.indexOf("Trident/") !== -1) return true; } catch { } return false; } function Nt() { if (Qe) return Ae; Qe = true; try { let t = ye.navigator.userAgent; (t.indexOf("MSIE ") !== -1 || t.indexOf("Trident/") !== -1 || t.indexOf("Edge/") !== -1) && (Ae = true); } catch { } return Ae; } function et(t) { return typeof t == "function"; } function tt(t) { return typeof t == "number"; } var ge = false; if (typeof window < "u") try { let t = Object.defineProperty({}, "passive", { get: function() { ge = true; } }); window.addEventListener("test", t, t), window.removeEventListener("test", t, t); } catch { ge = false; } var Ot = { useG: true }; var te = {}; var at = {}; var ct = new RegExp("^" + we + "(\\w+)(true|false)$"); var lt = j("propagationStopped"); function ut(t, e) { let i = (e ? e(t) : t) + he, n40 = (e ? e(t) : t) + ue, a = we + i, c = we + n40; te[t] = {}, te[t][he] = a, te[t][ue] = c; } function It(t, e, i, n40) { let a = n40 && n40.add || xe, c = n40 && n40.rm || Ve, d10 = n40 && n40.listeners || "eventListeners", T10 = n40 && n40.rmAll || "removeAllListeners", g = j(a), C10 = "." + a + ":", _10 = "prependListener", R10 = "." + _10 + ":", A10 = function(k10, f10, H10) { if (k10.isRemoved) return; let V = k10.callback; typeof V == "object" && V.handleEvent && (k10.callback = (m10) => V.handleEvent(m10), k10.originalDelegate = V); let Y10; try { k10.invoke(k10, f10, [H10]); } catch (m10) { Y10 = m10; } let F10 = k10.options; if (F10 && typeof F10 == "object" && F10.once) { let m10 = k10.originalDelegate ? k10.originalDelegate : k10.callback; f10[c].call(f10, H10.type, m10, F10); } return Y10; }; function x(k10, f10, H10) { if (f10 = f10 || t.event, !f10) return; let V = k10 || f10.target || t, Y10 = V[te[f10.type][H10 ? ue : he]]; if (Y10) { let F10 = []; if (Y10.length === 1) { let m10 = A10(Y10[0], V, f10); m10 && F10.push(m10); } else { let m10 = Y10.slice(); for (let W10 = 0; W10 < m10.length && !(f10 && f10[lt] === true); W10++) { let N10 = A10(m10[W10], V, f10); N10 && F10.push(N10); } } if (F10.length === 1) throw F10[0]; for (let m10 = 0; m10 < F10.length; m10++) { let W10 = F10[m10]; e.nativeScheduleMicroTask(() => { throw W10; }); } } } let z = function(k10) { return x(this, k10, false); }, K10 = function(k10) { return x(this, k10, true); }; function J10(k10, f10) { if (!k10) return false; let H10 = true; f10 && f10.useG !== void 0 && (H10 = f10.useG); let V = f10 && f10.vh, Y10 = true; f10 && f10.chkDup !== void 0 && (Y10 = f10.chkDup); let F10 = false; f10 && f10.rt !== void 0 && (F10 = f10.rt); let m10 = k10; for (; m10 && !m10.hasOwnProperty(a); ) m10 = je(m10); if (!m10 && k10[a] && (m10 = k10), !m10 || m10[g]) return false; let W10 = f10 && f10.eventNameToString, N10 = {}, S10 = m10[g] = m10[a], v10 = m10[j(c)] = m10[c], D10 = m10[j(d10)] = m10[d10], Q = m10[j(T10)] = m10[T10], U10; f10 && f10.prepend && (U10 = m10[j(f10.prepend)] = m10[f10.prepend]); function O(s, u10) { return !ge && typeof s == "object" && s ? !!s.capture : !ge || !u10 ? s : typeof s == "boolean" ? { capture: s, passive: true } : s ? typeof s == "object" && s.passive !== false ? { ...s, passive: true } : s : { passive: true }; } let E10 = function(s) { if (!N10.isExisting) return S10.call(N10.target, N10.eventName, N10.capture ? K10 : z, N10.options); }, r = function(s) { if (!s.isRemoved) { let u10 = te[s.eventName], b; u10 && (b = u10[s.capture ? ue : he]); let P10 = b && s.target[b]; if (P10) { for (let p = 0; p < P10.length; p++) if (P10[p] === s) { P10.splice(p, 1), s.isRemoved = true, s.removeAbortListener && (s.removeAbortListener(), s.removeAbortListener = null), P10.length === 0 && (s.allRemoved = true, s.target[b] = null); break; } } } if (s.allRemoved) return v10.call(s.target, s.eventName, s.capture ? K10 : z, s.options); }, o = function(s) { return S10.call(N10.target, N10.eventName, s.invoke, N10.options); }, y10 = function(s) { return U10.call(N10.target, N10.eventName, s.invoke, N10.options); }, w = function(s) { return v10.call(s.target, s.eventName, s.invoke, s.options); }, q10 = H10 ? E10 : o, Z10 = H10 ? r : w, _e2 = function(s, u10) { let b = typeof u10; return b === "function" && s.callback === u10 || b === "object" && s.originalDelegate === u10; }, ce2 = f10 && f10.diff ? f10.diff : _e2, le2 = Zone[j("UNPATCHED_EVENTS")], ne2 = t[j("PASSIVE_EVENTS")]; function h5(s) { if (typeof s == "object" && s !== null) { let u10 = { ...s }; return s.signal && (u10.signal = s.signal), u10; } return s; } let l = function(s, u10, b, P10, p = false, I10 = false) { return function() { let M10 = this || t, L10 = arguments[0]; f10 && f10.transferEventName && (L10 = f10.transferEventName(L10)); let B10 = arguments[1]; if (!B10) return s.apply(this, arguments); if (Ne && L10 === "uncaughtException") return s.apply(this, arguments); let G10 = false; if (typeof B10 != "function") { if (!B10.handleEvent) return s.apply(this, arguments); G10 = true; } if (V && !V(s, B10, M10, arguments)) return; let Ee2 = ge && !!ne2 && ne2.indexOf(L10) !== -1, se2 = h5(O(arguments[2], Ee2)), Te2 = se2?.signal; if (Te2?.aborted) return; if (le2) { for (let ie2 = 0; ie2 < le2.length; ie2++) if (L10 === le2[ie2]) return Ee2 ? s.call(M10, L10, B10, se2) : s.apply(this, arguments); } let Oe2 = se2 ? typeof se2 == "boolean" ? true : se2.capture : false, Ue2 = se2 && typeof se2 == "object" ? se2.once : false, yt2 = Zone.current, Ie2 = te[L10]; Ie2 || (ut(L10, W10), Ie2 = te[L10]); let qe = Ie2[Oe2 ? ue : he], me2 = M10[qe], Xe2 = false; if (me2) { if (Xe2 = true, Y10) { for (let ie2 = 0; ie2 < me2.length; ie2++) if (ce2(me2[ie2], B10)) return; } } else me2 = M10[qe] = []; let Se2, Ye = M10.constructor.name, $e2 = at[Ye]; $e2 && (Se2 = $e2[L10]), Se2 || (Se2 = Ye + u10 + (W10 ? W10(L10) : L10)), N10.options = se2, Ue2 && (N10.options.once = false), N10.target = M10, N10.capture = Oe2, N10.eventName = L10, N10.isExisting = Xe2; let ke2 = H10 ? Ot : void 0; ke2 && (ke2.taskData = N10), Te2 && (N10.options.signal = void 0); let re2 = yt2.scheduleEventTask(Se2, B10, ke2, b, P10); if (Te2) { N10.options.signal = Te2; let ie2 = () => re2.zone.cancelTask(re2); s.call(Te2, "abort", ie2, { once: true }), re2.removeAbortListener = () => Te2.removeEventListener("abort", ie2); } if (N10.target = null, ke2 && (ke2.taskData = null), Ue2 && (N10.options.once = true), !ge && typeof re2.options == "boolean" || (re2.options = se2), re2.target = M10, re2.capture = Oe2, re2.eventName = L10, G10 && (re2.originalDelegate = B10), I10 ? me2.unshift(re2) : me2.push(re2), p) return M10; }; }; return m10[a] = l(S10, C10, q10, Z10, F10), U10 && (m10[_10] = l(U10, R10, y10, Z10, F10, true)), m10[c] = function() { let s = this || t, u10 = arguments[0]; f10 && f10.transferEventName && (u10 = f10.transferEventName(u10)); let b = arguments[2], P10 = b ? typeof b == "boolean" ? true : b.capture : false, p = arguments[1]; if (!p) return v10.apply(this, arguments); if (V && !V(v10, p, s, arguments)) return; let I10 = te[u10], M10; I10 && (M10 = I10[P10 ? ue : he]); let L10 = M10 && s[M10]; if (L10) for (let B10 = 0; B10 < L10.length; B10++) { let G10 = L10[B10]; if (ce2(G10, p)) { if (L10.splice(B10, 1), G10.isRemoved = true, L10.length === 0 && (G10.allRemoved = true, s[M10] = null, !P10 && typeof u10 == "string")) { let Ee2 = we + "ON_PROPERTY" + u10; s[Ee2] = null; } return G10.zone.cancelTask(G10), F10 ? s : void 0; } } return v10.apply(this, arguments); }, m10[d10] = function() { let s = this || t, u10 = arguments[0]; f10 && f10.transferEventName && (u10 = f10.transferEventName(u10)); let b = [], P10 = ht(s, W10 ? W10(u10) : u10); for (let p = 0; p < P10.length; p++) { let I10 = P10[p], M10 = I10.originalDelegate ? I10.originalDelegate : I10.callback; b.push(M10); } return b; }, m10[T10] = function() { let s = this || t, u10 = arguments[0]; if (u10) { f10 && f10.transferEventName && (u10 = f10.transferEventName(u10)); let b = te[u10]; if (b) { let P10 = b[he], p = b[ue], I10 = s[P10], M10 = s[p]; if (I10) { let L10 = I10.slice(); for (let B10 = 0; B10 < L10.length; B10++) { let G10 = L10[B10], Ee2 = G10.originalDelegate ? G10.originalDelegate : G10.callback; this[c].call(this, u10, Ee2, G10.options); } } if (M10) { let L10 = M10.slice(); for (let B10 = 0; B10 < L10.length; B10++) { let G10 = L10[B10], Ee2 = G10.originalDelegate ? G10.originalDelegate : G10.callback; this[c].call(this, u10, Ee2, G10.options); } } } } else { let b = Object.keys(s); for (let P10 = 0; P10 < b.length; P10++) { let p = b[P10], I10 = ct.exec(p), M10 = I10 && I10[1]; M10 && M10 !== "removeListener" && this[T10].call(this, M10); } this[T10].call(this, "removeListener"); } if (F10) return this; }, de(m10[a], S10), de(m10[c], v10), Q && de(m10[T10], Q), D10 && de(m10[d10], D10), true; } let X = []; for (let k10 = 0; k10 < i.length; k10++) X[k10] = J10(i[k10], n40); return X; } function ht(t, e) { if (!e) { let c = []; for (let d10 in t) { let T10 = ct.exec(d10), g = T10 && T10[1]; if (g && (!e || g === e)) { let C10 = t[d10]; if (C10) for (let _10 = 0; _10 < C10.length; _10++) c.push(C10[_10]); } } return c; } let i = te[e]; i || (ut(e), i = te[e]); let n40 = t[i[he]], a = t[i[ue]]; return n40 ? a ? n40.concat(a) : n40.slice() : a ? a.slice() : []; } function Mt(t, e) { let i = t.Event; i && i.prototype && e.patchMethod(i.prototype, "stopImmediatePropagation", (n40) => function(a, c) { a[lt] = true, n40 && n40.apply(a, c); }); } function Lt(t, e) { e.patchMethod(t, "queueMicrotask", (i) => function(n40, a) { Zone.current.scheduleMicroTask("queueMicrotask", a[0]); }); } var Pe = j("zoneTask"); function pe(t, e, i, n40) { let a = null, c = null; e += n40, i += n40; let d10 = {}; function T10(C10) { let _10 = C10.data; _10.args[0] = function() { return C10.invoke.apply(this, arguments); }; let R10 = a.apply(t, _10.args); return tt(R10) ? _10.handleId = R10 : (_10.handle = R10, _10.isRefreshable = et(R10.refresh)), C10; } function g(C10) { let { handle: _10, handleId: R10 } = C10.data; return c.call(t, _10 ?? R10); } a = fe(t, e, (C10) => function(_10, R10) { if (et(R10[0])) { let A10 = { isRefreshable: false, isPeriodic: n40 === "Interval", delay: n40 === "Timeout" || n40 === "Interval" ? R10[1] || 0 : void 0, args: R10 }, x = R10[0]; R10[0] = function() { try { return x.apply(this, arguments); } finally { let { handle: H10, handleId: V, isPeriodic: Y10, isRefreshable: F10 } = A10; !Y10 && !F10 && (V ? delete d10[V] : H10 && (H10[Pe] = null)); } }; let z = Be(e, R10[0], A10, T10, g); if (!z) return z; let { handleId: K10, handle: J10, isRefreshable: X, isPeriodic: k10 } = z.data; if (K10) d10[K10] = z; else if (J10 && (J10[Pe] = z, X && !k10)) { let f10 = J10.refresh; J10.refresh = function() { let { zone: H10, state: V } = z; return V === "notScheduled" ? (z._state = "scheduled", H10._updateTaskCount(z, 1)) : V === "running" && (z._state = "scheduling"), f10.call(this); }; } return J10 ?? K10 ?? z; } else return C10.apply(t, R10); }), c = fe(t, i, (C10) => function(_10, R10) { let A10 = R10[0], x; tt(A10) ? (x = d10[A10], delete d10[A10]) : (x = A10?.[Pe], x ? A10[Pe] = null : x = A10), x?.type ? x.cancelFn && x.zone.cancelTask(x) : C10.apply(t, R10); }); } function At(t, e) { let { isBrowser: i, isMix: n40 } = e.getGlobalObjects(); if (!i && !n40 || !t.customElements || !("customElements" in t)) return; let a = ["connectedCallback", "disconnectedCallback", "adoptedCallback", "attributeChangedCallback", "formAssociatedCallback", "formDisabledCallback", "formResetCallback", "formStateRestoreCallback"]; e.patchCallbacks(e, t.customElements, "customElements", "define", a); } function Zt(t, e) { if (Zone[e.symbol("patchEventTarget")]) return; let { eventNames: i, zoneSymbolEventNames: n40, TRUE_STR: a, FALSE_STR: c, ZONE_SYMBOL_PREFIX: d10 } = e.getGlobalObjects(); for (let g = 0; g < i.length; g++) { let C10 = i[g], _10 = C10 + c, R10 = C10 + a, A10 = d10 + _10, x = d10 + R10; n40[C10] = {}, n40[C10][c] = A10, n40[C10][a] = x; } let T10 = t.EventTarget; if (!(!T10 || !T10.prototype)) return e.patchEventTarget(t, e, [T10 && T10.prototype]), true; } function Ht(t, e) { e.patchEventPrototype(t, e); } function ft(t, e, i) { if (!i || i.length === 0) return e; let n40 = i.filter((c) => c.target === t); if (!n40 || n40.length === 0) return e; let a = n40[0].ignoreProperties; return e.filter((c) => a.indexOf(c) === -1); } function nt(t, e, i, n40) { if (!t) return; let a = ft(t, e, i); it(t, a, n40); } function Ze(t) { return Object.getOwnPropertyNames(t).filter((e) => e.startsWith("on") && e.length > 2).map((e) => e.substring(2)); } function jt(t, e) { if (Ne && !st || Zone[t.symbol("patchEvents")]) return; let i = e.__Zone_ignore_on_properties, n40 = []; if (ze) { let a = window; n40 = n40.concat(["Document", "SVGElement", "Element", "HTMLElement", "HTMLBodyElement", "HTMLMediaElement", "HTMLFrameSetElement", "HTMLFrameElement", "HTMLIFrameElement", "HTMLMarqueeElement", "Worker"]); let c = Dt() ? [{ target: a, ignoreProperties: ["error"] }] : []; nt(a, Ze(a), i && i.concat(c), je(a)); } n40 = n40.concat(["XMLHttpRequest", "XMLHttpRequestEventTarget", "IDBIndex", "IDBRequest", "IDBOpenDBRequest", "IDBDatabase", "IDBTransaction", "IDBCursor", "WebSocket"]); for (let a = 0; a < n40.length; a++) { let c = e[n40[a]]; c && c.prototype && nt(c.prototype, Ze(c.prototype), i); } } function xt(t) { t.__load_patch("legacy", (e) => { let i = e[t.__symbol__("legacyPatch")]; i && i(); }), t.__load_patch("timers", (e) => { let i = "set", n40 = "clear"; pe(e, i, n40, "Timeout"), pe(e, i, n40, "Interval"), pe(e, i, n40, "Immediate"); }), t.__load_patch("requestAnimationFrame", (e) => { pe(e, "request", "cancel", "AnimationFrame"), pe(e, "mozRequest", "mozCancel", "AnimationFrame"), pe(e, "webkitRequest", "webkitCancel", "AnimationFrame"); }), t.__load_patch("blocking", (e, i) => { let n40 = ["alert", "prompt", "confirm"]; for (let a = 0; a < n40.length; a++) { let c = n40[a]; fe(e, c, (d10, T10, g) => function(C10, _10) { return i.current.run(d10, e, _10, g); }); } }), t.__load_patch("EventTarget", (e, i, n40) => { Ht(e, n40), Zt(e, n40); let a = e.XMLHttpRequestEventTarget; a && a.prototype && n40.patchEventTarget(e, n40, [a.prototype]); }), t.__load_patch("MutationObserver", (e, i, n40) => { be("MutationObserver"), be("WebKitMutationObserver"); }), t.__load_patch("IntersectionObserver", (e, i, n40) => { be("IntersectionObserver"); }), t.__load_patch("FileReader", (e, i, n40) => { be("FileReader"); }), t.__load_patch("on_property", (e, i, n40) => { jt(n40, e); }), t.__load_patch("customElements", (e, i, n40) => { At(e, n40); }), t.__load_patch("XHR", (e, i) => { C10(e); let n40 = j("xhrTask"), a = j("xhrSync"), c = j("xhrListener"), d10 = j("xhrScheduled"), T10 = j("xhrURL"), g = j("xhrErrorBeforeScheduled"); function C10(_10) { let R10 = _10.XMLHttpRequest; if (!R10) return; let A10 = R10.prototype; function x(S10) { return S10[n40]; } let z = A10[Me], K10 = A10[Le]; if (!z) { let S10 = _10.XMLHttpRequestEventTarget; if (S10) { let v10 = S10.prototype; z = v10[Me], K10 = v10[Le]; } } let J10 = "readystatechange", X = "scheduled"; function k10(S10) { let v10 = S10.data, D10 = v10.target; D10[d10] = false, D10[g] = false; let Q = D10[c]; z || (z = D10[Me], K10 = D10[Le]), Q && K10.call(D10, J10, Q); let U10 = D10[c] = () => { if (D10.readyState === D10.DONE) if (!v10.aborted && D10[d10] && S10.state === X) { let E10 = D10[i.__symbol__("loadfalse")]; if (D10.status !== 0 && E10 && E10.length > 0) { let r = S10.invoke; S10.invoke = function() { let o = D10[i.__symbol__("loadfalse")]; for (let y10 = 0; y10 < o.length; y10++) o[y10] === S10 && o.splice(y10, 1); !v10.aborted && S10.state === X && r.call(S10); }, E10.push(S10); } else S10.invoke(); } else !v10.aborted && D10[d10] === false && (D10[g] = true); }; return z.call(D10, J10, U10), D10[n40] || (D10[n40] = S10), W10.apply(D10, v10.args), D10[d10] = true, S10; } function f10() { } function H10(S10) { let v10 = S10.data; return v10.aborted = true, N10.apply(v10.target, v10.args); } let V = fe(A10, "open", () => function(S10, v10) { return S10[a] = v10[2] == false, S10[T10] = v10[1], V.apply(S10, v10); }), Y10 = "XMLHttpRequest.send", F10 = j("fetchTaskAborting"), m10 = j("fetchTaskScheduling"), W10 = fe(A10, "send", () => function(S10, v10) { if (i.current[m10] === true || S10[a]) return W10.apply(S10, v10); { let D10 = { target: S10, url: S10[T10], isPeriodic: false, args: v10, aborted: false }, Q = Be(Y10, f10, D10, k10, H10); S10 && S10[g] === true && !D10.aborted && Q.state === X && Q.invoke(); } }), N10 = fe(A10, "abort", () => function(S10, v10) { let D10 = x(S10); if (D10 && typeof D10.type == "string") { if (D10.cancelFn == null || D10.data && D10.data.aborted) return; D10.zone.cancelTask(D10); } else if (i.current[F10] === true) return N10.apply(S10, v10); }); } }), t.__load_patch("geolocation", (e) => { e.navigator && e.navigator.geolocation && St(e.navigator.geolocation, ["getCurrentPosition", "watchPosition"]); }), t.__load_patch("PromiseRejectionEvent", (e, i) => { function n40(a) { return function(c) { ht(e, a).forEach((T10) => { let g = e.PromiseRejectionEvent; if (g) { let C10 = new g(a, { promise: c.promise, reason: c.rejection }); T10.invoke(C10); } }); }; } e.PromiseRejectionEvent && (i[j("unhandledPromiseRejectionHandler")] = n40("unhandledrejection"), i[j("rejectionHandledHandler")] = n40("rejectionhandled")); }), t.__load_patch("queueMicrotask", (e, i, n40) => { Lt(e, n40); }); } function Vt(t) { t.__load_patch("ZoneAwarePromise", (e, i, n40) => { let a = Object.getOwnPropertyDescriptor, c = Object.defineProperty; function d10(h5) { if (h5 && h5.toString === Object.prototype.toString) { let l = h5.constructor && h5.constructor.name; return (l || "") + ": " + JSON.stringify(h5); } return h5 ? h5.toString() : Object.prototype.toString.call(h5); } let T10 = n40.symbol, g = [], C10 = e[T10("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")] !== false, _10 = T10("Promise"), R10 = T10("then"), A10 = "__creationTrace__"; n40.onUnhandledError = (h5) => { if (n40.showUncaughtError()) { let l = h5 && h5.rejection; l ? console.error("Unhandled Promise rejection:", l instanceof Error ? l.message : l, "; Zone:", h5.zone.name, "; Task:", h5.task && h5.task.source, "; Value:", l, l instanceof Error ? l.stack : void 0) : console.error(h5); } }, n40.microtaskDrainDone = () => { for (; g.length; ) { let h5 = g.shift(); try { h5.zone.runGuarded(() => { throw h5.throwOriginal ? h5.rejection : h5; }); } catch (l) { z(l); } } }; let x = T10("unhandledPromiseRejectionHandler"); function z(h5) { n40.onUnhandledError(h5); try { let l = i[x]; typeof l == "function" && l.call(this, h5); } catch { } } function K10(h5) { return h5 && h5.then; } function J10(h5) { return h5; } function X(h5) { return Z10.reject(h5); } let k10 = T10("state"), f10 = T10("value"), H10 = T10("finally"), V = T10("parentPromiseValue"), Y10 = T10("parentPromiseState"), F10 = "Promise.then", m10 = null, W10 = true, N10 = false, S10 = 0; function v10(h5, l) { return (s) => { try { O(h5, l, s); } catch (u10) { O(h5, false, u10); } }; } let D10 = function() { let h5 = false; return function(s) { return function() { h5 || (h5 = true, s.apply(null, arguments)); }; }; }, Q = "Promise resolved with itself", U10 = T10("currentTaskTrace"); function O(h5, l, s) { let u10 = D10(); if (h5 === s) throw new TypeError(Q); if (h5[k10] === m10) { let b = null; try { (typeof s == "object" || typeof s == "function") && (b = s && s.then); } catch (P10) { return u10(() => { O(h5, false, P10); })(), h5; } if (l !== N10 && s instanceof Z10 && s.hasOwnProperty(k10) && s.hasOwnProperty(f10) && s[k10] !== m10) r(s), O(h5, s[k10], s[f10]); else if (l !== N10 && typeof b == "function") try { b.call(s, u10(v10(h5, l)), u10(v10(h5, false))); } catch (P10) { u10(() => { O(h5, false, P10); })(); } else { h5[k10] = l; let P10 = h5[f10]; if (h5[f10] = s, h5[H10] === H10 && l === W10 && (h5[k10] = h5[Y10], h5[f10] = h5[V]), l === N10 && s instanceof Error) { let p = i.currentTask && i.currentTask.data && i.currentTask.data[A10]; p && c(s, U10, { configurable: true, enumerable: false, writable: true, value: p }); } for (let p = 0; p < P10.length; ) o(h5, P10[p++], P10[p++], P10[p++], P10[p++]); if (P10.length == 0 && l == N10) { h5[k10] = S10; let p = s; try { throw new Error("Uncaught (in promise): " + d10(s) + (s && s.stack ? ` ` + s.stack : "")); } catch (I10) { p = I10; } C10 && (p.throwOriginal = true), p.rejection = s, p.promise = h5, p.zone = i.current, p.task = i.currentTask, g.push(p), n40.scheduleMicroTask(); } } } return h5; } let E10 = T10("rejectionHandledHandler"); function r(h5) { if (h5[k10] === S10) { try { let l = i[E10]; l && typeof l == "function" && l.call(this, { rejection: h5[f10], promise: h5 }); } catch { } h5[k10] = N10; for (let l = 0; l < g.length; l++) h5 === g[l].promise && g.splice(l, 1); } } function o(h5, l, s, u10, b) { r(h5); let P10 = h5[k10], p = P10 ? typeof u10 == "function" ? u10 : J10 : typeof b == "function" ? b : X; l.scheduleMicroTask(F10, () => { try { let I10 = h5[f10], M10 = !!s && H10 === s[H10]; M10 && (s[V] = I10, s[Y10] = P10); let L10 = l.run(p, void 0, M10 && p !== X && p !== J10 ? [] : [I10]); O(s, true, L10); } catch (I10) { O(s, false, I10); } }, s); } let y10 = "function ZoneAwarePromise() { [native code] }", w = function() { }, q10 = e.AggregateError; class Z10 { static toString() { return y10; } static resolve(l) { return l instanceof Z10 ? l : O(new this(null), W10, l); } static reject(l) { return O(new this(null), N10, l); } static withResolvers() { let l = {}; return l.promise = new Z10((s, u10) => { l.resolve = s, l.reject = u10; }), l; } static any(l) { if (!l || typeof l[Symbol.iterator] != "function") return Promise.reject(new q10([], "All promises were rejected")); let s = [], u10 = 0; try { for (let p of l) u10++, s.push(Z10.resolve(p)); } catch { return Promise.reject(new q10([], "All promises were rejected")); } if (u10 === 0) return Promise.reject(new q10([], "All promises were rejected")); let b = false, P10 = []; return new Z10((p, I10) => { for (let M10 = 0; M10 < s.length; M10++) s[M10].then((L10) => { b || (b = true, p(L10)); }, (L10) => { P10.push(L10), u10--, u10 === 0 && (b = true, I10(new q10(P10, "All promises were rejected"))); }); }); } static race(l) { let s, u10, b = new this((I10, M10) => { s = I10, u10 = M10; }); function P10(I10) { s(I10); } function p(I10) { u10(I10); } for (let I10 of l) K10(I10) || (I10 = this.resolve(I10)), I10.then(P10, p); return b; } static all(l) { return Z10.allWithCallback(l); } static allSettled(l) { return (this && this.prototype instanceof Z10 ? this : Z10).allWithCallback(l, { thenCallback: (u10) => ({ status: "fulfilled", value: u10 }), errorCallback: (u10) => ({ status: "rejected", reason: u10 }) }); } static allWithCallback(l, s) { let u10, b, P10 = new this((L10, B10) => { u10 = L10, b = B10; }), p = 2, I10 = 0, M10 = []; for (let L10 of l) { K10(L10) || (L10 = this.resolve(L10)); let B10 = I10; try { L10.then((G10) => { M10[B10] = s ? s.thenCallback(G10) : G10, p--, p === 0 && u10(M10); }, (G10) => { s ? (M10[B10] = s.errorCallback(G10), p--, p === 0 && u10(M10)) : b(G10); }); } catch (G10) { b(G10); } p++, I10++; } return p -= 2, p === 0 && u10(M10), P10; } constructor(l) { let s = this; if (!(s instanceof Z10)) throw new Error("Must be an instanceof Promise."); s[k10] = m10, s[f10] = []; try { let u10 = D10(); l && l(u10(v10(s, W10)), u10(v10(s, N10))); } catch (u10) { O(s, false, u10); } } get [Symbol.toStringTag]() { return "Promise"; } get [Symbol.species]() { return Z10; } then(l, s) { let u10 = this.constructor?.[Symbol.species]; (!u10 || typeof u10 != "function") && (u10 = this.constructor || Z10); let b = new u10(w), P10 = i.current; return this[k10] == m10 ? this[f10].push(P10, b, l, s) : o(this, P10, b, l, s), b; } catch(l) { return this.then(null, l); } finally(l) { let s = this.constructor?.[Symbol.species]; (!s || typeof s != "function") && (s = Z10); let u10 = new s(w); u10[H10] = H10; let b = i.current; return this[k10] == m10 ? this[f10].push(b, u10, l, l) : o(this, b, u10, l, l), u10; } } Z10.resolve = Z10.resolve, Z10.reject = Z10.reject, Z10.race = Z10.race, Z10.all = Z10.all; let _e2 = e[_10] = e.Promise; e.Promise = Z10; let ce2 = T10("thenPatched"); function le2(h5) { let l = h5.prototype, s = a(l, "then"); if (s && (s.writable === false || !s.configurable)) return; let u10 = l.then; l[R10] = u10, h5.prototype.then = function(b, P10) { return new Z10((I10, M10) => { u10.call(this, I10, M10); }).then(b, P10); }, h5[ce2] = true; } n40.patchThen = le2; function ne2(h5) { return function(l, s) { let u10 = h5.apply(l, s); if (u10 instanceof Z10) return u10; let b = u10.constructor; return b[ce2] || le2(b), u10; }; } return _e2 && (le2(_e2), fe(e, "fetch", (h5) => ne2(h5))), Promise[i.__symbol__("uncaughtPromiseErrors")] = g, Z10; }); } function Ft(t) { t.__load_patch("toString", (e) => { let i = Function.prototype.toString, n40 = j("OriginalDelegate"), a = j("Promise"), c = j("Error"), d10 = function() { if (typeof this == "function") { let _10 = this[n40]; if (_10) return typeof _10 == "function" ? i.call(_10) : Object.prototype.toString.call(_10); if (this === Promise) { let R10 = e[a]; if (R10) return i.call(R10); } if (this === Error) { let R10 = e[c]; if (R10) return i.call(R