react-addsearch-ui
Version:
AddSearch UI for React
1,501 lines (1,499 loc) • 568 kB
JavaScript
var xs = Object.defineProperty;
var ws = (t, i, p) => i in t ? xs(t, i, { enumerable: !0, configurable: !0, writable: !0, value: p }) : t[i] = p;
var ze = (t, i, p) => ws(t, typeof i != "symbol" ? i + "" : i, p);
import * as wt from "react";
import gi from "react";
var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function yi(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var hr = { exports: {} }, an = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var qr;
function bs() {
if (qr) return an;
qr = 1;
var t = gi, i = Symbol.for("react.element"), p = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, E = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
function c(n, y, r) {
var e, d = {}, C = null, l = null;
r !== void 0 && (C = "" + r), y.key !== void 0 && (C = "" + y.key), y.ref !== void 0 && (l = y.ref);
for (e in y) o.call(y, e) && !b.hasOwnProperty(e) && (d[e] = y[e]);
if (n && n.defaultProps) for (e in y = n.defaultProps, y) d[e] === void 0 && (d[e] = y[e]);
return { $$typeof: i, type: n, key: C, ref: l, props: d, _owner: E.current };
}
return an.Fragment = p, an.jsx = c, an.jsxs = c, an;
}
var ln = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Vr;
function Ss() {
return Vr || (Vr = 1, process.env.NODE_ENV !== "production" && function() {
var t = gi, i = Symbol.for("react.element"), p = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), n = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), r = Symbol.for("react.suspense"), e = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), a = Symbol.iterator, s = "@@iterator";
function v(B) {
if (B === null || typeof B != "object")
return null;
var ae = a && B[a] || B[s];
return typeof ae == "function" ? ae : null;
}
var f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function g(B) {
{
for (var ae = arguments.length, he = new Array(ae > 1 ? ae - 1 : 0), Ee = 1; Ee < ae; Ee++)
he[Ee - 1] = arguments[Ee];
h("error", B, he);
}
}
function h(B, ae, he) {
{
var Ee = f.ReactDebugCurrentFrame, je = Ee.getStackAddendum();
je !== "" && (ae += "%s", he = he.concat([je]));
var $e = he.map(function(Ne) {
return String(Ne);
});
$e.unshift("Warning: " + ae), Function.prototype.apply.call(console[B], console, $e);
}
}
var u = !1, _ = !1, S = !1, F = !1, P = !1, T;
T = Symbol.for("react.module.reference");
function N(B) {
return !!(typeof B == "string" || typeof B == "function" || B === o || B === b || P || B === E || B === r || B === e || F || B === l || u || _ || S || typeof B == "object" && B !== null && (B.$$typeof === C || B.$$typeof === d || B.$$typeof === c || B.$$typeof === n || B.$$typeof === y || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
B.$$typeof === T || B.getModuleId !== void 0));
}
function q(B, ae, he) {
var Ee = B.displayName;
if (Ee)
return Ee;
var je = ae.displayName || ae.name || "";
return je !== "" ? he + "(" + je + ")" : he;
}
function j(B) {
return B.displayName || "Context";
}
function D(B) {
if (B == null)
return null;
if (typeof B.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof B == "function")
return B.displayName || B.name || null;
if (typeof B == "string")
return B;
switch (B) {
case o:
return "Fragment";
case p:
return "Portal";
case b:
return "Profiler";
case E:
return "StrictMode";
case r:
return "Suspense";
case e:
return "SuspenseList";
}
if (typeof B == "object")
switch (B.$$typeof) {
case n:
var ae = B;
return j(ae) + ".Consumer";
case c:
var he = B;
return j(he._context) + ".Provider";
case y:
return q(B, B.render, "ForwardRef");
case d:
var Ee = B.displayName || null;
return Ee !== null ? Ee : D(B.type) || "Memo";
case C: {
var je = B, $e = je._payload, Ne = je._init;
try {
return D(Ne($e));
} catch {
return null;
}
}
}
return null;
}
var L = Object.assign, V = 0, J, oe, ne, Y, W, X, ue;
function xe() {
}
xe.__reactDisabledLog = !0;
function Re() {
{
if (V === 0) {
J = console.log, oe = console.info, ne = console.warn, Y = console.error, W = console.group, X = console.groupCollapsed, ue = console.groupEnd;
var B = {
configurable: !0,
enumerable: !0,
value: xe,
writable: !0
};
Object.defineProperties(console, {
info: B,
log: B,
warn: B,
error: B,
group: B,
groupCollapsed: B,
groupEnd: B
});
}
V++;
}
}
function Oe() {
{
if (V--, V === 0) {
var B = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: L({}, B, {
value: J
}),
info: L({}, B, {
value: oe
}),
warn: L({}, B, {
value: ne
}),
error: L({}, B, {
value: Y
}),
group: L({}, B, {
value: W
}),
groupCollapsed: L({}, B, {
value: X
}),
groupEnd: L({}, B, {
value: ue
})
});
}
V < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var _e = f.ReactCurrentDispatcher, He;
function Ie(B, ae, he) {
{
if (He === void 0)
try {
throw Error();
} catch (je) {
var Ee = je.stack.trim().match(/\n( *(at )?)/);
He = Ee && Ee[1] || "";
}
return `
` + He + B;
}
}
var Ke = !1, Me;
{
var We = typeof WeakMap == "function" ? WeakMap : Map;
Me = new We();
}
function z(B, ae) {
if (!B || Ke)
return "";
{
var he = Me.get(B);
if (he !== void 0)
return he;
}
var Ee;
Ke = !0;
var je = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var $e;
$e = _e.current, _e.current = null, Re();
try {
if (ae) {
var Ne = function() {
throw Error();
};
if (Object.defineProperty(Ne.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(Ne, []);
} catch (nt) {
Ee = nt;
}
Reflect.construct(B, [], Ne);
} else {
try {
Ne.call();
} catch (nt) {
Ee = nt;
}
B.call(Ne.prototype);
}
} else {
try {
throw Error();
} catch (nt) {
Ee = nt;
}
B();
}
} catch (nt) {
if (nt && Ee && typeof nt.stack == "string") {
for (var Le = nt.stack.split(`
`), Ze = Ee.stack.split(`
`), Je = Le.length - 1, Ye = Ze.length - 1; Je >= 1 && Ye >= 0 && Le[Je] !== Ze[Ye]; )
Ye--;
for (; Je >= 1 && Ye >= 0; Je--, Ye--)
if (Le[Je] !== Ze[Ye]) {
if (Je !== 1 || Ye !== 1)
do
if (Je--, Ye--, Ye < 0 || Le[Je] !== Ze[Ye]) {
var lt = `
` + Le[Je].replace(" at new ", " at ");
return B.displayName && lt.includes("<anonymous>") && (lt = lt.replace("<anonymous>", B.displayName)), typeof B == "function" && Me.set(B, lt), lt;
}
while (Je >= 1 && Ye >= 0);
break;
}
}
} finally {
Ke = !1, _e.current = $e, Oe(), Error.prepareStackTrace = je;
}
var Tt = B ? B.displayName || B.name : "", ut = Tt ? Ie(Tt) : "";
return typeof B == "function" && Me.set(B, ut), ut;
}
function H(B, ae, he) {
return z(B, !1);
}
function se(B) {
var ae = B.prototype;
return !!(ae && ae.isReactComponent);
}
function de(B, ae, he) {
if (B == null)
return "";
if (typeof B == "function")
return z(B, se(B));
if (typeof B == "string")
return Ie(B);
switch (B) {
case r:
return Ie("Suspense");
case e:
return Ie("SuspenseList");
}
if (typeof B == "object")
switch (B.$$typeof) {
case y:
return H(B.render);
case d:
return de(B.type, ae, he);
case C: {
var Ee = B, je = Ee._payload, $e = Ee._init;
try {
return de($e(je), ae, he);
} catch {
}
}
}
return "";
}
var be = Object.prototype.hasOwnProperty, Se = {}, Ae = f.ReactDebugCurrentFrame;
function me(B) {
if (B) {
var ae = B._owner, he = de(B.type, B._source, ae ? ae.type : null);
Ae.setExtraStackFrame(he);
} else
Ae.setExtraStackFrame(null);
}
function ye(B, ae, he, Ee, je) {
{
var $e = Function.call.bind(be);
for (var Ne in B)
if ($e(B, Ne)) {
var Le = void 0;
try {
if (typeof B[Ne] != "function") {
var Ze = Error((Ee || "React class") + ": " + he + " type `" + Ne + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof B[Ne] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw Ze.name = "Invariant Violation", Ze;
}
Le = B[Ne](ae, Ne, Ee, he, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (Je) {
Le = Je;
}
Le && !(Le instanceof Error) && (me(je), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ee || "React class", he, Ne, typeof Le), me(null)), Le instanceof Error && !(Le.message in Se) && (Se[Le.message] = !0, me(je), g("Failed %s type: %s", he, Le.message), me(null));
}
}
}
var we = Array.isArray;
function Be(B) {
return we(B);
}
function Q(B) {
{
var ae = typeof Symbol == "function" && Symbol.toStringTag, he = ae && B[Symbol.toStringTag] || B.constructor.name || "Object";
return he;
}
}
function le(B) {
try {
return ie(B), !1;
} catch {
return !0;
}
}
function ie(B) {
return "" + B;
}
function fe(B) {
if (le(B))
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Q(B)), ie(B);
}
var O = f.ReactCurrentOwner, m = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, w, I, U;
U = {};
function K(B) {
if (be.call(B, "ref")) {
var ae = Object.getOwnPropertyDescriptor(B, "ref").get;
if (ae && ae.isReactWarning)
return !1;
}
return B.ref !== void 0;
}
function ee(B) {
if (be.call(B, "key")) {
var ae = Object.getOwnPropertyDescriptor(B, "key").get;
if (ae && ae.isReactWarning)
return !1;
}
return B.key !== void 0;
}
function Pe(B, ae) {
if (typeof B.ref == "string" && O.current && ae && O.current.stateNode !== ae) {
var he = D(O.current.type);
U[he] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(O.current.type), B.ref), U[he] = !0);
}
}
function Ve(B, ae) {
{
var he = function() {
w || (w = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ae));
};
he.isReactWarning = !0, Object.defineProperty(B, "key", {
get: he,
configurable: !0
});
}
}
function Fe(B, ae) {
{
var he = function() {
I || (I = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ae));
};
he.isReactWarning = !0, Object.defineProperty(B, "ref", {
get: he,
configurable: !0
});
}
}
var Ge = function(B, ae, he, Ee, je, $e, Ne) {
var Le = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: i,
// Built-in properties that belong on the element
type: B,
key: ae,
ref: he,
props: Ne,
// Record the component responsible for creating this element.
_owner: $e
};
return Le._store = {}, Object.defineProperty(Le._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(Le, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: Ee
}), Object.defineProperty(Le, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: je
}), Object.freeze && (Object.freeze(Le.props), Object.freeze(Le)), Le;
};
function ge(B, ae, he, Ee, je) {
{
var $e, Ne = {}, Le = null, Ze = null;
he !== void 0 && (fe(he), Le = "" + he), ee(ae) && (fe(ae.key), Le = "" + ae.key), K(ae) && (Ze = ae.ref, Pe(ae, je));
for ($e in ae)
be.call(ae, $e) && !m.hasOwnProperty($e) && (Ne[$e] = ae[$e]);
if (B && B.defaultProps) {
var Je = B.defaultProps;
for ($e in Je)
Ne[$e] === void 0 && (Ne[$e] = Je[$e]);
}
if (Le || Ze) {
var Ye = typeof B == "function" ? B.displayName || B.name || "Unknown" : B;
Le && Ve(Ne, Ye), Ze && Fe(Ne, Ye);
}
return Ge(B, Le, Ze, je, Ee, O.current, Ne);
}
}
var Ut = f.ReactCurrentOwner, At = f.ReactDebugCurrentFrame;
function Ct(B) {
if (B) {
var ae = B._owner, he = de(B.type, B._source, ae ? ae.type : null);
At.setExtraStackFrame(he);
} else
At.setExtraStackFrame(null);
}
var Ot;
Ot = !1;
function $t(B) {
return typeof B == "object" && B !== null && B.$$typeof === i;
}
function It() {
{
if (Ut.current) {
var B = D(Ut.current.type);
if (B)
return `
Check the render method of \`` + B + "`.";
}
return "";
}
}
function Lt(B) {
return "";
}
var en = {};
function xn(B) {
{
var ae = It();
if (!ae) {
var he = typeof B == "string" ? B : B.displayName || B.name;
he && (ae = `
Check the top-level render call using <` + he + ">.");
}
return ae;
}
}
function qt(B, ae) {
{
if (!B._store || B._store.validated || B.key != null)
return;
B._store.validated = !0;
var he = xn(ae);
if (en[he])
return;
en[he] = !0;
var Ee = "";
B && B._owner && B._owner !== Ut.current && (Ee = " It was passed a child from " + D(B._owner.type) + "."), Ct(B), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', he, Ee), Ct(null);
}
}
function Vt(B, ae) {
{
if (typeof B != "object")
return;
if (Be(B))
for (var he = 0; he < B.length; he++) {
var Ee = B[he];
$t(Ee) && qt(Ee, ae);
}
else if ($t(B))
B._store && (B._store.validated = !0);
else if (B) {
var je = v(B);
if (typeof je == "function" && je !== B.entries)
for (var $e = je.call(B), Ne; !(Ne = $e.next()).done; )
$t(Ne.value) && qt(Ne.value, ae);
}
}
}
function Wn(B) {
{
var ae = B.type;
if (ae == null || typeof ae == "string")
return;
var he;
if (typeof ae == "function")
he = ae.propTypes;
else if (typeof ae == "object" && (ae.$$typeof === y || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
ae.$$typeof === d))
he = ae.propTypes;
else
return;
if (he) {
var Ee = D(ae);
ye(he, B.props, "prop", Ee, B);
} else if (ae.PropTypes !== void 0 && !Ot) {
Ot = !0;
var je = D(ae);
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", je || "Unknown");
}
typeof ae.getDefaultProps == "function" && !ae.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function Jn(B) {
{
for (var ae = Object.keys(B.props), he = 0; he < ae.length; he++) {
var Ee = ae[he];
if (Ee !== "children" && Ee !== "key") {
Ct(B), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ee), Ct(null);
break;
}
}
B.ref !== null && (Ct(B), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ct(null));
}
}
var jt = {};
function zt(B, ae, he, Ee, je, $e) {
{
var Ne = N(B);
if (!Ne) {
var Le = "";
(B === void 0 || typeof B == "object" && B !== null && Object.keys(B).length === 0) && (Le += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var Ze = Lt();
Ze ? Le += Ze : Le += It();
var Je;
B === null ? Je = "null" : Be(B) ? Je = "array" : B !== void 0 && B.$$typeof === i ? (Je = "<" + (D(B.type) || "Unknown") + " />", Le = " Did you accidentally export a JSX literal instead of a component?") : Je = typeof B, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Je, Le);
}
var Ye = ge(B, ae, he, je, $e);
if (Ye == null)
return Ye;
if (Ne) {
var lt = ae.children;
if (lt !== void 0)
if (Ee)
if (Be(lt)) {
for (var Tt = 0; Tt < lt.length; Tt++)
Vt(lt[Tt], B);
Object.freeze && Object.freeze(lt);
} else
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Vt(lt, B);
}
if (be.call(ae, "key")) {
var ut = D(B), nt = Object.keys(ae).filter(function(nn) {
return nn !== "key";
}), Gt = nt.length > 0 ? "{key: someKey, " + nt.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!jt[ut + Gt]) {
var Sn = nt.length > 0 ? "{" + nt.join(": ..., ") + ": ...}" : "{}";
g(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, Gt, ut, Sn, ut), jt[ut + Gt] = !0;
}
}
return B === o ? Jn(Ye) : Wn(Ye), Ye;
}
}
function Yn(B, ae, he) {
return zt(B, ae, he, !0);
}
function wn(B, ae, he) {
return zt(B, ae, he, !1);
}
var tn = wn, bn = Yn;
ln.Fragment = o, ln.jsx = tn, ln.jsxs = bn;
}()), ln;
}
process.env.NODE_ENV === "production" ? hr.exports = bs() : hr.exports = Ss();
var Ce = hr.exports, vr = {};
function Es(t) {
throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
}
var vi = { exports: {} };
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/
(function(t, i) {
(function(p, o) {
t.exports = o();
})(tt, function() {
function p(Q) {
var le = typeof Q;
return Q !== null && (le === "object" || le === "function");
}
function o(Q) {
return typeof Q == "function";
}
var E = void 0;
Array.isArray ? E = Array.isArray : E = function(Q) {
return Object.prototype.toString.call(Q) === "[object Array]";
};
var b = E, c = 0, n = void 0, y = void 0, r = function(le, ie) {
S[c] = le, S[c + 1] = ie, c += 2, c === 2 && (y ? y(F) : T());
};
function e(Q) {
y = Q;
}
function d(Q) {
r = Q;
}
var C = typeof window < "u" ? window : void 0, l = C || {}, a = l.MutationObserver || l.WebKitMutationObserver, s = typeof self > "u" && typeof process < "u" && {}.toString.call(process) === "[object process]", v = typeof Uint8ClampedArray < "u" && typeof importScripts < "u" && typeof MessageChannel < "u";
function f() {
return function() {
return process.nextTick(F);
};
}
function g() {
return typeof n < "u" ? function() {
n(F);
} : _();
}
function h() {
var Q = 0, le = new a(F), ie = document.createTextNode("");
return le.observe(ie, { characterData: !0 }), function() {
ie.data = Q = ++Q % 2;
};
}
function u() {
var Q = new MessageChannel();
return Q.port1.onmessage = F, function() {
return Q.port2.postMessage(0);
};
}
function _() {
var Q = setTimeout;
return function() {
return Q(F, 1);
};
}
var S = new Array(1e3);
function F() {
for (var Q = 0; Q < c; Q += 2) {
var le = S[Q], ie = S[Q + 1];
le(ie), S[Q] = void 0, S[Q + 1] = void 0;
}
c = 0;
}
function P() {
try {
var Q = Function("return this")().require("vertx");
return n = Q.runOnLoop || Q.runOnContext, g();
} catch {
return _();
}
}
var T = void 0;
s ? T = f() : a ? T = h() : v ? T = u() : C === void 0 && typeof Es == "function" ? T = P() : T = _();
function N(Q, le) {
var ie = this, fe = new this.constructor(D);
fe[j] === void 0 && H(fe);
var O = ie._state;
if (O) {
var m = arguments[O - 1];
r(function() {
return Ke(O, fe, m, ie._result);
});
} else
He(ie, fe, Q, le);
return fe;
}
function q(Q) {
var le = this;
if (Q && typeof Q == "object" && Q.constructor === le)
return Q;
var ie = new le(D);
return xe(ie, Q), ie;
}
var j = Math.random().toString(36).substring(2);
function D() {
}
var L = void 0, V = 1, J = 2;
function oe() {
return new TypeError("You cannot resolve a promise with itself");
}
function ne() {
return new TypeError("A promises callback cannot return that same promise.");
}
function Y(Q, le, ie, fe) {
try {
Q.call(le, ie, fe);
} catch (O) {
return O;
}
}
function W(Q, le, ie) {
r(function(fe) {
var O = !1, m = Y(ie, le, function(w) {
O || (O = !0, le !== w ? xe(fe, w) : Oe(fe, w));
}, function(w) {
O || (O = !0, _e(fe, w));
}, "Settle: " + (fe._label || " unknown promise"));
!O && m && (O = !0, _e(fe, m));
}, Q);
}
function X(Q, le) {
le._state === V ? Oe(Q, le._result) : le._state === J ? _e(Q, le._result) : He(le, void 0, function(ie) {
return xe(Q, ie);
}, function(ie) {
return _e(Q, ie);
});
}
function ue(Q, le, ie) {
le.constructor === Q.constructor && ie === N && le.constructor.resolve === q ? X(Q, le) : ie === void 0 ? Oe(Q, le) : o(ie) ? W(Q, le, ie) : Oe(Q, le);
}
function xe(Q, le) {
if (Q === le)
_e(Q, oe());
else if (p(le)) {
var ie = void 0;
try {
ie = le.then;
} catch (fe) {
_e(Q, fe);
return;
}
ue(Q, le, ie);
} else
Oe(Q, le);
}
function Re(Q) {
Q._onerror && Q._onerror(Q._result), Ie(Q);
}
function Oe(Q, le) {
Q._state === L && (Q._result = le, Q._state = V, Q._subscribers.length !== 0 && r(Ie, Q));
}
function _e(Q, le) {
Q._state === L && (Q._state = J, Q._result = le, r(Re, Q));
}
function He(Q, le, ie, fe) {
var O = Q._subscribers, m = O.length;
Q._onerror = null, O[m] = le, O[m + V] = ie, O[m + J] = fe, m === 0 && Q._state && r(Ie, Q);
}
function Ie(Q) {
var le = Q._subscribers, ie = Q._state;
if (le.length !== 0) {
for (var fe = void 0, O = void 0, m = Q._result, w = 0; w < le.length; w += 3)
fe = le[w], O = le[w + ie], fe ? Ke(ie, fe, O, m) : O(m);
Q._subscribers.length = 0;
}
}
function Ke(Q, le, ie, fe) {
var O = o(ie), m = void 0, w = void 0, I = !0;
if (O) {
try {
m = ie(fe);
} catch (U) {
I = !1, w = U;
}
if (le === m) {
_e(le, ne());
return;
}
} else
m = fe;
le._state !== L || (O && I ? xe(le, m) : I === !1 ? _e(le, w) : Q === V ? Oe(le, m) : Q === J && _e(le, m));
}
function Me(Q, le) {
try {
le(function(fe) {
xe(Q, fe);
}, function(fe) {
_e(Q, fe);
});
} catch (ie) {
_e(Q, ie);
}
}
var We = 0;
function z() {
return We++;
}
function H(Q) {
Q[j] = We++, Q._state = void 0, Q._result = void 0, Q._subscribers = [];
}
function se() {
return new Error("Array Methods must be provided an Array");
}
var de = function() {
function Q(le, ie) {
this._instanceConstructor = le, this.promise = new le(D), this.promise[j] || H(this.promise), b(ie) ? (this.length = ie.length, this._remaining = ie.length, this._result = new Array(this.length), this.length === 0 ? Oe(this.promise, this._result) : (this.length = this.length || 0, this._enumerate(ie), this._remaining === 0 && Oe(this.promise, this._result))) : _e(this.promise, se());
}
return Q.prototype._enumerate = function(ie) {
for (var fe = 0; this._state === L && fe < ie.length; fe++)
this._eachEntry(ie[fe], fe);
}, Q.prototype._eachEntry = function(ie, fe) {
var O = this._instanceConstructor, m = O.resolve;
if (m === q) {
var w = void 0, I = void 0, U = !1;
try {
w = ie.then;
} catch (ee) {
U = !0, I = ee;
}
if (w === N && ie._state !== L)
this._settledAt(ie._state, fe, ie._result);
else if (typeof w != "function")
this._remaining--, this._result[fe] = ie;
else if (O === we) {
var K = new O(D);
U ? _e(K, I) : ue(K, ie, w), this._willSettleAt(K, fe);
} else
this._willSettleAt(new O(function(ee) {
return ee(ie);
}), fe);
} else
this._willSettleAt(m(ie), fe);
}, Q.prototype._settledAt = function(ie, fe, O) {
var m = this.promise;
m._state === L && (this._remaining--, ie === J ? _e(m, O) : this._result[fe] = O), this._remaining === 0 && Oe(m, this._result);
}, Q.prototype._willSettleAt = function(ie, fe) {
var O = this;
He(ie, void 0, function(m) {
return O._settledAt(V, fe, m);
}, function(m) {
return O._settledAt(J, fe, m);
});
}, Q;
}();
function be(Q) {
return new de(this, Q).promise;
}
function Se(Q) {
var le = this;
return b(Q) ? new le(function(ie, fe) {
for (var O = Q.length, m = 0; m < O; m++)
le.resolve(Q[m]).then(ie, fe);
}) : new le(function(ie, fe) {
return fe(new TypeError("You must pass an array to race."));
});
}
function Ae(Q) {
var le = this, ie = new le(D);
return _e(ie, Q), ie;
}
function me() {
throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
}
function ye() {
throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
}
var we = function() {
function Q(le) {
this[j] = z(), this._result = this._state = void 0, this._subscribers = [], D !== le && (typeof le != "function" && me(), this instanceof Q ? Me(this, le) : ye());
}
return Q.prototype.catch = function(ie) {
return this.then(null, ie);
}, Q.prototype.finally = function(ie) {
var fe = this, O = fe.constructor;
return o(ie) ? fe.then(function(m) {
return O.resolve(ie()).then(function() {
return m;
});
}, function(m) {
return O.resolve(ie()).then(function() {
throw m;
});
}) : fe.then(ie, ie);
}, Q;
}();
we.prototype.then = N, we.all = be, we.race = Se, we.resolve = q, we.reject = Ae, we._setScheduler = e, we._setAsap = d, we._asap = r;
function Be() {
var Q = void 0;
if (typeof tt < "u")
Q = tt;
else if (typeof self < "u")
Q = self;
else
try {
Q = Function("return this")();
} catch {
throw new Error("polyfill failed because global object is unavailable in this environment");
}
var le = Q.Promise;
if (le) {
var ie = null;
try {
ie = Object.prototype.toString.call(le.resolve());
} catch {
}
if (ie === "[object Promise]" && !le.cast)
return;
}
Q.Promise = we;
}
return we.polyfill = Be, we.Promise = we, we;
});
})(vi);
var xi = vi.exports;
xi.polyfill();
var et = {};
/*! Axios v1.10.0 Copyright (c) 2025 Matt Zabriskie and contributors */
function wi(t, i) {
return function() {
return t.apply(i, arguments);
};
}
const { toString: ks } = Object.prototype, { getPrototypeOf: xr } = Object, { iterator: jn, toStringTag: bi } = Symbol, Nn = /* @__PURE__ */ ((t) => (i) => {
const p = ks.call(i);
return t[p] || (t[p] = p.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), St = (t) => (t = t.toLowerCase(), (i) => Nn(i) === t), Mn = (t) => (i) => typeof i === t, { isArray: Jt } = Array, dn = Mn("undefined");
function _s(t) {
return t !== null && !dn(t) && t.constructor !== null && !dn(t.constructor) && ct(t.constructor.isBuffer) && t.constructor.isBuffer(t);
}
const Si = St("ArrayBuffer");
function Cs(t) {
let i;
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? i = ArrayBuffer.isView(t) : i = t && t.buffer && Si(t.buffer), i;
}
const Os = Mn("string"), ct = Mn("function"), Ei = Mn("number"), Bn = (t) => t !== null && typeof t == "object", Rs = (t) => t === !0 || t === !1, Rn = (t) => {
if (Nn(t) !== "object")
return !1;
const i = xr(t);
return (i === null || i === Object.prototype || Object.getPrototypeOf(i) === null) && !(bi in t) && !(jn in t);
}, As = St("Date"), Ts = St("File"), Ps = St("Blob"), Fs = St("FileList"), Is = (t) => Bn(t) && ct(t.pipe), Ls = (t) => {
let i;
return t && (typeof FormData == "function" && t instanceof FormData || ct(t.append) && ((i = Nn(t)) === "formdata" || // detect form-data instance
i === "object" && ct(t.toString) && t.toString() === "[object FormData]"));
}, js = St("URLSearchParams"), [Ns, Ms, Bs, Ds] = ["ReadableStream", "Request", "Response", "Headers"].map(St), Hs = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function pn(t, i, { allOwnKeys: p = !1 } = {}) {
if (t === null || typeof t > "u")
return;
let o, E;
if (typeof t != "object" && (t = [t]), Jt(t))
for (o = 0, E = t.length; o < E; o++)
i.call(null, t[o], o, t);
else {
const b = p ? Object.getOwnPropertyNames(t) : Object.keys(t), c = b.length;
let n;
for (o = 0; o < c; o++)
n = b[o], i.call(null, t[n], n, t);
}
}
function ki(t, i) {
i = i.toLowerCase();
const p = Object.keys(t);
let o = p.length, E;
for (; o-- > 0; )
if (E = p[o], i === E.toLowerCase())
return E;
return null;
}
const Dt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : tt, _i = (t) => !dn(t) && t !== Dt;
function fr() {
const { caseless: t } = _i(this) && this || {}, i = {}, p = (o, E) => {
const b = t && ki(i, E) || E;
Rn(i[b]) && Rn(o) ? i[b] = fr(i[b], o) : Rn(o) ? i[b] = fr({}, o) : Jt(o) ? i[b] = o.slice() : i[b] = o;
};
for (let o = 0, E = arguments.length; o < E; o++)
arguments[o] && pn(arguments[o], p);
return i;
}
const Us = (t, i, p, { allOwnKeys: o } = {}) => (pn(i, (E, b) => {
p && ct(E) ? t[b] = wi(E, p) : t[b] = E;
}, { allOwnKeys: o }), t), $s = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), qs = (t, i, p, o) => {
t.prototype = Object.create(i.prototype, o), t.prototype.constructor = t, Object.defineProperty(t, "super", {
value: i.prototype
}), p && Object.assign(t.prototype, p);
}, Vs = (t, i, p, o) => {
let E, b, c;
const n = {};
if (i = i || {}, t == null) return i;
do {
for (E = Object.getOwnPropertyNames(t), b = E.length; b-- > 0; )
c = E[b], (!o || o(c, t, i)) && !n[c] && (i[c] = t[c], n[c] = !0);
t = p !== !1 && xr(t);
} while (t && (!p || p(t, i)) && t !== Object.prototype);
return i;
}, zs = (t, i, p) => {
t = String(t), (p === void 0 || p > t.length) && (p = t.length), p -= i.length;
const o = t.indexOf(i, p);
return o !== -1 && o === p;
}, Gs = (t) => {
if (!t) return null;
if (Jt(t)) return t;
let i = t.length;
if (!Ei(i)) return null;
const p = new Array(i);
for (; i-- > 0; )
p[i] = t[i];
return p;
}, Ks = /* @__PURE__ */ ((t) => (i) => t && i instanceof t)(typeof Uint8Array < "u" && xr(Uint8Array)), Ws = (t, i) => {
const o = (t && t[jn]).call(t);
let E;
for (; (E = o.next()) && !E.done; ) {
const b = E.value;
i.call(t, b[0], b[1]);
}
}, Js = (t, i) => {
let p;
const o = [];
for (; (p = t.exec(i)) !== null; )
o.push(p);
return o;
}, Ys = St("HTMLFormElement"), Qs = (t) => t.toLowerCase().replace(
/[-_\s]([a-z\d])(\w*)/g,
function(p, o, E) {
return o.toUpperCase() + E;
}
), zr = (({ hasOwnProperty: t }) => (i, p) => t.call(i, p))(Object.prototype), Zs = St("RegExp"), Ci = (t, i) => {
const p = Object.getOwnPropertyDescriptors(t), o = {};
pn(p, (E, b) => {
let c;
(c = i(E, b, t)) !== !1 && (o[b] = c || E);
}), Object.defineProperties(t, o);
}, Xs = (t) => {
Ci(t, (i, p) => {
if (ct(t) && ["arguments", "caller", "callee"].indexOf(p) !== -1)
return !1;
const o = t[p];
if (ct(o)) {
if (i.enumerable = !1, "writable" in i) {
i.writable = !1;
return;
}
i.set || (i.set = () => {
throw Error("Can not rewrite read-only method '" + p + "'");
});
}
});
}, eo = (t, i) => {
const p = {}, o = (E) => {
E.forEach((b) => {
p[b] = !0;
});
};
return Jt(t) ? o(t) : o(String(t).split(i)), p;
}, to = () => {
}, no = (t, i) => t != null && Number.isFinite(t = +t) ? t : i;
function ro(t) {
return !!(t && ct(t.append) && t[bi] === "FormData" && t[jn]);
}
const io = (t) => {
const i = new Array(10), p = (o, E) => {
if (Bn(o)) {
if (i.indexOf(o) >= 0)
return;
if (!("toJSON" in o)) {
i[E] = o;
const b = Jt(o) ? [] : {};
return pn(o, (c, n) => {
const y = p(c, E + 1);
!dn(y) && (b[n] = y);
}), i[E] = void 0, b;
}
}
return o;
};
return p(t, 0);
}, so = St("AsyncFunction"), oo = (t) => t && (Bn(t) || ct(t)) && ct(t.then) && ct(t.catch), Oi = ((t, i) => t ? setImmediate : i ? ((p, o) => (Dt.addEventListener("message", ({ source: E, data: b }) => {
E === Dt && b === p && o.length && o.shift()();
}, !1), (E) => {
o.push(E), Dt.postMessage(p, "*");
}))(`axios@${Math.random()}`, []) : (p) => setTimeout(p))(
typeof setImmediate == "function",
ct(Dt.postMessage)
), ao = typeof queueMicrotask < "u" ? queueMicrotask.bind(Dt) : typeof process < "u" && process.nextTick || Oi, lo = (t) => t != null && ct(t[jn]);
var Z = {
isArray: Jt,
isArrayBuffer: Si,
isBuffer: _s,
isFormData: Ls,
isArrayBufferView: Cs,
isString: Os,
isNumber: Ei,
isBoolean: Rs,
isObject: Bn,
isPlainObject: Rn,
isReadableStream: Ns,
isRequest: Ms,
isResponse: Bs,
isHeaders: Ds,
isUndefined: dn,
isDate: As,
isFile: Ts,
isBlob: Ps,
isRegExp: Zs,
isFunction: ct,
isStream: Is,
isURLSearchParams: js,
isTypedArray: Ks,
isFileList: Fs,
forEach: pn,
merge: fr,
extend: Us,
trim: Hs,
stripBOM: $s,
inherits: qs,
toFlatObject: Vs,
kindOf: Nn,
kindOfTest: St,
endsWith: zs,
toArray: Gs,
forEachEntry: Ws,
matchAll: Js,
isHTMLForm: Ys,
hasOwnProperty: zr,
hasOwnProp: zr,
// an alias to avoid ESLint no-prototype-builtins detection
reduceDescriptors: Ci,
freezeMethods: Xs,
toObjectSet: eo,
toCamelCase: Qs,
noop: to,
toFiniteNumber: no,
findKey: ki,
global: Dt,
isContextDefined: _i,
isSpecCompliantForm: ro,
toJSONObject: io,
isAsyncFn: so,
isThenable: oo,
setImmediate: Oi,
asap: ao,
isIterable: lo
};
function Te(t, i, p, o, E) {
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", i && (this.code = i), p && (this.config = p), o && (this.request = o), E && (this.response = E, this.status = E.status ? E.status : null);
}
Z.inherits(Te, Error, {
toJSON: function() {
return {
// Standard
message: this.message,
name: this.name,
// Microsoft
description: this.description,
number: this.number,
// Mozilla
fileName: this.fileName,
lineNumber: this.lineNumber,
columnNumber: this.columnNumber,
stack: this.stack,
// Axios
config: Z.toJSONObject(this.config),
code: this.code,
status: this.status
};
}
});
const Ri = Te.prototype, Ai = {};
[
"ERR_BAD_OPTION_VALUE",
"ERR_BAD_OPTION",
"ECONNABORTED",
"ETIMEDOUT",
"ERR_NETWORK",
"ERR_FR_TOO_MANY_REDIRECTS",
"ERR_DEPRECATED",
"ERR_BAD_RESPONSE",
"ERR_BAD_REQUEST",
"ERR_CANCELED",
"ERR_NOT_SUPPORT",
"ERR_INVALID_URL"
// eslint-disable-next-line func-names
].forEach((t) => {
Ai[t] = { value: t };
});
Object.defineProperties(Te, Ai);
Object.defineProperty(Ri, "isAxiosError", { value: !0 });
Te.from = (t, i, p, o, E, b) => {
const c = Object.create(Ri);
return Z.toFlatObject(t, c, function(y) {
return y !== Error.prototype;
}, (n) => n !== "isAxiosError"), Te.call(c, t.message, i, p, o, E), c.cause = t, c.name = t.name, b && Object.assign(c, b), c;
};
var co = null;
function dr(t) {
return Z.isPlainObject(t) || Z.isArray(t);
}
function Ti(t) {
return Z.endsWith(t, "[]") ? t.slice(0, -2) : t;
}
function Gr(t, i, p) {
return t ? t.concat(i).map(function(E, b) {
return E = Ti(E), !p && b ? "[" + E + "]" : E;
}).join(p ? "." : "") : i;
}
function uo(t) {
return Z.isArray(t) && !t.some(dr);
}
const ho = Z.toFlatObject(Z, {}, null, function(i) {
return /^is[A-Z]/.test(i);
});
function Dn(t, i, p) {
if (!Z.isObject(t))
throw new TypeError("target must be an object");
i = i || new FormData(), p = Z.toFlatObject(p, {
metaTokens: !0,
dots: !1,
indexes: !1
}, !1, function(s, v) {
return !Z.isUndefined(v[s]);
});
const o = p.metaTokens, E = p.visitor || e, b = p.dots, c = p.indexes, y = (p.Blob || typeof Blob < "u" && Blob) && Z.isSpecCompliantForm(i);
if (!Z.isFunction(E))
throw new TypeError("visitor must be a function");
function r(a) {
if (a === null) return "";
if (Z.isDate(a))
return a.toISOString();
if (Z.isBoolean(a))
return a.toString();
if (!y && Z.isBlob(a))
throw new Te("Blob is not supported. Use a Buffer instead.");
return Z.isArrayBuffer(a) || Z.isTypedArray(a) ? y && typeof Blob == "function" ? new Blob([a]) : Buffer.from(a) : a;
}
function e(a, s, v) {
let f = a;
if (a && !v && typeof a == "object") {
if (Z.endsWith(s, "{}"))
s = o ? s : s.slice(0, -2), a = JSON.stringify(a);
else if (Z.isArray(a) && uo(a) || (Z.isFileList(a) || Z.endsWith(s, "[]")) && (f = Z.toArray(a)))
return s = Ti(s), f.forEach(function(h, u) {
!(Z.isUndefined(h) || h === null) && i.append(
// eslint-disable-next-line no-nested-ternary
c === !0 ? Gr([s], u, b) : c === null ? s : s + "[]",
r(h)
);
}), !1;
}
return dr(a) ? !0 : (i.append(Gr(v, s, b), r(a)), !1);
}
const d = [], C = Object.assign(ho, {
defaultVisitor: e,
convertValue: r,
isVisitable: dr
});
function l(a, s) {
if (!Z.isUndefined(a)) {
if (d.indexOf(a) !== -1)
throw Error("Circular reference detected in " + s.join("."));
d.push(a), Z.forEach(a, function(f, g) {
(!(Z.isUndefined(f) || f === null) && E.call(
i,
f,
Z.isString(g) ? g.trim() : g,
s,
C
)) === !0 && l(f, s ? s.concat(g) : [g]);
}), d.pop();
}
}
if (!Z.isObject(t))
throw new TypeError("data must be an object");
return l(t), i;
}
function Kr(t) {
const i = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
"%00": "\0"
};
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(o) {
return i[o];
});
}
function wr(t, i) {
this._pairs = [], t && Dn(t, this, i);
}
const Pi = wr.prototype;
Pi.append = function(i, p) {
this._pairs.push([i, p]);
};
Pi.toString = function(i) {
const p = i ? function(o) {
return i.call(this, o, Kr);
} : Kr;
return this._pairs.map(function(E) {
return p(E[0]) + "=" + p(E[1]);
}, "").join("&");
};
function fo(t) {
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function Fi(t, i, p) {
if (!i)
return t;
const o = p && p.encode || fo;
Z.isFunction(p) && (p = {
serialize: p
});
const E = p && p.serialize;
let b;
if (E ? b = E(i, p) : b = Z.isURLSearchParams(i) ? i.toString() : new wr(i, p).toString(o), b) {
const c = t.indexOf("#");
c !== -1 && (t = t.slice(0, c)), t += (t.indexOf("?") === -1 ? "?" : "&") + b;
}
return t;
}
class po {
constructor() {
this.handlers = [];
}
/**
* Add a new interceptor to the stack
*
* @param {Function} fulfilled The function to handle `then` for a `Promise`
* @param {Function} rejected The function to handle `reject` for a `Promise`
*
* @return {Number} An ID used to remove interceptor later
*/
use(i, p, o) {
return this.handlers.push({
fulfilled: i,
rejected: p,
synchronous: o ? o.synchronous : !1,
runWhen: o ? o.runWhen : null
}), this.handlers.length - 1;
}
/**
* Remove an interceptor from the stack
*
* @param {Number} id The ID that was returned by `use`
*
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
*/
eject(i) {
this.handlers[i] && (this.handlers[i] = null);
}
/**
* Clear all interceptors from the stack
*
* @returns {void}
*/
clear() {
this.handlers && (this.handlers = []);
}
/**
* Iterate over all the registered interceptors
*
* This method is particularly useful for skipping over any
* interceptors that may have become `null` calling `eject`.
*
* @param {Function} fn The function to call for each interceptor
*
* @returns {void}
*/
forEach(i) {
Z.forEach(this.handlers, function(o) {
o !== null && i(o);
});
}
}
var Wr = po, Ii = {
silentJSONParsing: !0,
forcedJSONParsing: !0,
clarifyTimeoutError: !1
}, mo = typeof URLSearchParams < "u" ? URLSearchParams : wr, go = typeof FormData < "u" ? FormData : null, yo = typeof Blob < "u" ? Blob : null, vo = {
isBrowser: !0,
classes: {
URLSearchParams: mo,
FormData: go,
Blob: yo
},
protocols: ["http", "https", "file", "blob", "url", "data"]
};
const br = typeof window < "u" && typeof document < "u", pr = typeof navigator == "object" && navigator || void 0, xo = br && (!pr || ["ReactNative", "NativeScript", "NS"].indexOf(pr.product) < 0), wo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", bo = br && window.location.href || "http://localhost";
var So = /* @__PURE__ */ Object.freeze({
__proto__: null,
hasBrowserEnv: br,
hasStandardBrowserWebWorkerEnv: wo,
hasStandardBrowserEnv: xo,
navigator: pr,
origin: bo
}), at = {
...So,
...vo
};
function Eo(t, i) {
return Dn(t, new at.classes.URLSearchParams(), Object.assign({
visitor: function(p, o, E, b) {
return at.isNode && Z.isBuffer(p) ? (this.append(o, p.toString("base64")), !1) : b.defaultVisitor.apply(this, arguments);
}
}, i));
}
function ko(t) {
return Z.matchAll(/\w+|\[(\w*)]/g, t).map((i) => i[0] === "[]" ? "" : i[1] || i[0]);
}
function _o(t) {
const i = {}, p = Object.keys(t);
let o;
const E = p.length;
let b;
for (o = 0; o < E; o++)
b = p[o], i[b] = t[b];
return i;
}
function Li(t) {
function i(p, o, E, b) {
let c = p[b++];
if (c === "__proto__") return !0;
const n = Number.isFinite(+c), y = b >= p.length;
return c = !c && Z.isArray(E) ? E.length : c, y ? (Z.hasOwnProp(E, c) ? E[c] = [E[c], o] : E[c] = o, !n) : ((!E[c] || !Z.isObject(E[c])) && (E[c] = []), i(p, o, E[c], b) && Z.isArray(E[c]) && (E[c] = _o(E[c])), !n);
}
if (Z.isFormData(t) && Z.isFunction(t.entries)) {
const p = {};
return Z.forEachEntry(t, (o, E) => {
i(ko(o), E, p, 0);
}), p;
}
return null;
}
function Co(t, i, p) {
if (Z.isString(t))
try {
return (i || JSON.parse)(t), Z.trim(t);
} catch (o) {
if (o.name !== "SyntaxError")
throw o;
}
return (0, JSON.stringify)(t);
}
const Sr = {
transitional: Ii,
adapter: ["xhr", "http", "fetch"],
transformRequest: [function(i, p) {
const o = p.getContentType() || "", E = o.indexOf("application/json") > -1, b = Z.isObject(i);
if (b && Z.isHTMLForm(i) && (i = new FormData(i)), Z.isFormData(i))
return E ? JSON.stringify(Li(i)) : i;
if (Z.isArrayBuffer(i) || Z.isBuffer(i) || Z.isStream(i) || Z.isFile(i) || Z.isBlob(i) || Z.isReadableStream(i))
return i;
if (Z.isArrayBufferView