@wandelbots/wandelbots-js-react-components
Version:
React UI toolkit for building applications on top of the Wandelbots platform
1,456 lines • 72.8 kB
JavaScript
import Ct from "react";
import { I18nextProvider as xt } from "react-i18next";
import _t from "i18next";
import kt from "i18next-browser-languagedetector";
var fe = { exports: {} }, te = {};
/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Me;
function Bt() {
if (Me) return te;
Me = 1;
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
function r(n, o, s) {
var i = null;
if (s !== void 0 && (i = "" + s), o.key !== void 0 && (i = "" + o.key), "key" in o) {
s = {};
for (var l in o)
l !== "key" && (s[l] = o[l]);
} else s = o;
return o = s.ref, {
$$typeof: e,
type: n,
key: i,
ref: o !== void 0 ? o : null,
props: s
};
}
return te.Fragment = t, te.jsx = r, te.jsxs = r, te;
}
var re = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var De;
function Nt() {
return De || (De = 1, process.env.NODE_ENV !== "production" && (function() {
function e(c) {
if (c == null) return null;
if (typeof c == "function")
return c.$$typeof === ce ? null : c.displayName || c.name || null;
if (typeof c == "string") return c;
switch (c) {
case m:
return "Fragment";
case _:
return "Profiler";
case T:
return "StrictMode";
case j:
return "Suspense";
case k:
return "SuspenseList";
case le:
return "Activity";
}
if (typeof c == "object")
switch (typeof c.tag == "number" && console.error(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
), c.$$typeof) {
case b:
return "Portal";
case C:
return c.displayName || "Context";
case O:
return (c._context.displayName || "Context") + ".Consumer";
case v:
var g = c.render;
return c = c.displayName, c || (c = g.displayName || g.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
case Z:
return g = c.displayName || null, g !== null ? g : e(c.type) || "Memo";
case L:
g = c._payload, c = c._init;
try {
return e(c(g));
} catch {
}
}
return null;
}
function t(c) {
return "" + c;
}
function r(c) {
try {
t(c);
var g = !1;
} catch {
g = !0;
}
if (g) {
g = console;
var R = g.error, E = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
return R.call(
g,
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
E
), t(c);
}
}
function n(c) {
if (c === m) return "<>";
if (typeof c == "object" && c !== null && c.$$typeof === L)
return "<...>";
try {
var g = e(c);
return g ? "<" + g + ">" : "<...>";
} catch {
return "<...>";
}
}
function o() {
var c = J.A;
return c === null ? null : c.getOwner();
}
function s() {
return Error("react-stack-top-frame");
}
function i(c) {
if (q.call(c, "key")) {
var g = Object.getOwnPropertyDescriptor(c, "key").get;
if (g && g.isReactWarning) return !1;
}
return c.key !== void 0;
}
function l(c, g) {
function R() {
F || (F = !0, console.error(
"%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://react.dev/link/special-props)",
g
));
}
R.isReactWarning = !0, Object.defineProperty(c, "key", {
get: R,
configurable: !0
});
}
function p() {
var c = e(this.type);
return Q[c] || (Q[c] = !0, console.error(
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
)), c = this.props.ref, c !== void 0 ? c : null;
}
function d(c, g, R, E, $, we) {
var P = R.ref;
return c = {
$$typeof: f,
type: c,
key: g,
props: R,
_owner: E
}, (P !== void 0 ? P : null) !== null ? Object.defineProperty(c, "ref", {
enumerable: !1,
get: p
}) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: 0
}), Object.defineProperty(c, "_debugInfo", {
configurable: !1,
enumerable: !1,
writable: !0,
value: null
}), Object.defineProperty(c, "_debugStack", {
configurable: !1,
enumerable: !1,
writable: !0,
value: $
}), Object.defineProperty(c, "_debugTask", {
configurable: !1,
enumerable: !1,
writable: !0,
value: we
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
}
function u(c, g, R, E, $, we) {
var P = g.children;
if (P !== void 0)
if (E)
if (U(P)) {
for (E = 0; E < P.length; E++)
h(P[E]);
Object.freeze && Object.freeze(P);
} else
console.error(
"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 h(P);
if (q.call(g, "key")) {
P = e(c);
var G = Object.keys(g).filter(function(Pt) {
return Pt !== "key";
});
E = 0 < G.length ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}", ue[P + E] || (G = 0 < G.length ? "{" + G.join(": ..., ") + ": ...}" : "{}", console.error(
`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} />`,
E,
P,
G,
P
), ue[P + E] = !0);
}
if (P = null, R !== void 0 && (r(R), P = "" + R), i(g) && (r(g.key), P = "" + g.key), "key" in g) {
R = {};
for (var Te in g)
Te !== "key" && (R[Te] = g[Te]);
} else R = g;
return P && l(
R,
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
), d(
c,
P,
R,
o(),
$,
we
);
}
function h(c) {
S(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === L && (c._payload.status === "fulfilled" ? S(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
}
function S(c) {
return typeof c == "object" && c !== null && c.$$typeof === f;
}
var w = Ct, f = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), C = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), Z = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ce = Symbol.for("react.client.reference"), J = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, U = Array.isArray, W = console.createTask ? console.createTask : function() {
return null;
};
w = {
react_stack_bottom_frame: function(c) {
return c();
}
};
var F, Q = {}, I = w.react_stack_bottom_frame.bind(
w,
s
)(), ee = W(n(s)), ue = {};
re.Fragment = m, re.jsx = function(c, g, R) {
var E = 1e4 > J.recentlyCreatedOwnerStacks++;
return u(
c,
g,
R,
!1,
E ? Error("react-stack-top-frame") : I,
E ? W(n(c)) : ee
);
}, re.jsxs = function(c, g, R) {
var E = 1e4 > J.recentlyCreatedOwnerStacks++;
return u(
c,
g,
R,
!0,
E ? Error("react-stack-top-frame") : I,
E ? W(n(c)) : ee
);
};
})()), re;
}
var je;
function vt() {
return je || (je = 1, process.env.NODE_ENV === "production" ? fe.exports = Bt() : fe.exports = Nt()), fe.exports;
}
var Ce = vt();
const Ft = {
"Jogging.Cartesian.Translation.velocityMmPerSec.lb": "{{amount}} mm/s",
"Jogging.Cartesian.Rotation.velocityDegPerSec.lb": "{{amount}}°/s",
"Jogging.Velocity.lb": "Geschwindigkeit",
"General.degree.variable": "{{amount}}°",
"General.mm.variable": "{{amount}} mm",
"Jogging.Blocked.ti": "Verbindung blockiert",
"Jogging.Blocked.lb": "Ein anderer Client kontrolliert das Jogging.",
"Jogging.Blocked.Reenable.bt": "Neu verbinden",
"Jogging.Cartesian.MotionType.lb": "Bewegungstyp",
"Jogging.Cartesian.Translation.bt": "Translation",
"Jogging.Cartesian.Rotation.bt": "Rotation",
"Jogging.Joints.JointValues.lb": "Gelenkwerte",
"Jogging.Increment.Continuous.dd": "Fortlaufend",
"Jogging.Cartesian.Orientation.lb": "Orientierung",
"Jogging.JointLimitsReached.lb": "Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht",
"Jogging.Orientation.coordsys": "Roboterbasis",
"Jogging.Orientation.tool": "Werkzeug",
"SafetyBar.ActivationToggle.Activate.bt": "Aktivieren",
"SafetyBar.ActivationToggle.Activated.bt": "Aktiviert",
"SafetyBar.ActivationToggle.Activating.bt": "Wird aktiviert…",
"SafetyBar.ActivationToggle.Deactivating.bt": "Wird deaktiviert…",
"SafetyBar.ControllerType.Physical.lb": "Physisch",
"SafetyBar.ControllerType.Virtual.lb": "Virtuell",
"SafetyBar.MotionGroup.Physical.Explanation.lb": "<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.",
"SafetyBar.MotionGroup.Virtual.Explanation.lb": "<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.",
"SafetyBar.OperationMode.Auto.Explanation.lb": "Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.",
"SafetyBar.OperationMode.Automatic.ti": "Automatisch",
"SafetyBar.OperationMode.Error.Explanation.lb": "Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.",
"SafetyBar.OperationMode.Error.lb": "Fehler",
"SafetyBar.OperationMode.Manual.Explanation.lb": `Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,
"SafetyBar.OperationMode.Manual.lb": "Manuell",
"SafetyBar.OperationMode.ti": "Betriebsmodus",
"SafetyBar.SafetyState.Error.Explanation.lb": "Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.",
"SafetyBar.SafetyState.Error.lb": "Fehler",
"SafetyBar.SafetyState.Estop.lb": "NOT-AUS",
"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb": "Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.",
"SafetyBar.SafetyState.ManualActionRequired.lb": "Aktion erforderlich",
"SafetyBar.SafetyState.Normal.Explanation.lb": "Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.",
"SafetyBar.SafetyState.Normal.lb": "Sicher",
"SafetyBar.SafetyState.Stop.Explanation.lb": "Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.",
"SafetyBar.SafetyState.Stop.lb": "Stopp",
"SafetyBar.SafetyState.ti": "Sicherheitszustand",
"SafetyBar.StopState.Estop.Explanation.lb": "NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.",
"Jogging.Increment.hlb": "Schrittgröße",
"Jogging.CoordinateSystem.hlb": "Koordinatensystem",
"Jogging.Cartesian.bt": "Kartesisch",
"Jogging.Joints.bt": "Gelenke",
"Jogging.Velocity.bt": "Geschwindigkeit",
"CycleTimer.RemainingTime.lb": "Verbleibende Zeit",
"CycleTimer.OfTime.lb": "von {{time}}",
"CycleTimer.Time.lb": "{{time}}",
"CycleTimer.Error.lb": "Fehler",
"CycleTimer.WaitingForCycle.lb": "Warten auf Programmzyklus",
"CycleTimer.CycleTime.lb": "Zykluszeit",
"CycleTimer.Measuring.lb": "wird gemessen...",
"CycleTimer.Determined.lb": "bestimmt",
"Timer.error": "Fehler",
"ProgramControl.Start.bt": "Start",
"ProgramControl.Resume.bt": "Weiter",
"ProgramControl.Retry.bt": "Wiederholen",
"ProgramControl.Pause.bt": "Pause",
"ProgramControl.Stop.bt": "Stopp",
"ProgramStateIndicator.Preparing.lb": "Vorbereitung",
"ProgramStateIndicator.Starting.lb": "Startet",
"ProgramStateIndicator.Running.lb": "In Betrieb",
"ProgramStateIndicator.Pausing.lb": "Pausiert",
"ProgramStateIndicator.Stopping.lb": "Stoppt",
"ProgramStateIndicator.Completed.lb": "Abgeschlossen",
"ProgramStateIndicator.Failed.lb": "Fehlgeschlagen",
"ProgramStateIndicator.Error.lb": "Fehler",
"ProgramStateIndicator.EStop.lb": "Not-Aus",
"ProgramStateIndicator.Idle.lb": "Leerlauf",
"ProgramStateIndicator.Paused.lb": "Pausiert",
"ProgramStateIndicator.Ready.lb": "Bereit",
"ProgramStateIndicator.Stopped.lb": "Gestoppt",
"ProgramStateIndicator.Auto.lb": "Auto",
"ProgramStateIndicator.Manual.lb": "Manuell",
"ProgramStateIndicator.ManualT1.lb": "Manuell T1",
"ProgramStateIndicator.ManualT2.lb": "Manuell T2",
"RobotSetupReadinessIndicator.Ready.lb": "Bereit",
"RobotSetupReadinessIndicator.RobotDisconnected.lb": "Roboter getrennt",
"RobotSetupReadinessIndicator.CellOpen.lb": "Zelle offen",
"RobotSetupReadinessIndicator.EStop.lb": "Not-Stopp",
"RobotSetupReadinessIndicator.ManualMode.lb": "Manueller Modus",
"RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb": "Voraussetzung nicht erfüllt",
"RobotCard.Runtime.lb": "Laufzeit",
"RobotCard.DriveToHome.bt": "Zur Home-Position fahren"
}, It = {
"Jogging.Cartesian.Translation.velocityMmPerSec.lb": "{{amount}} mm/s",
"Jogging.Cartesian.Rotation.velocityDegPerSec.lb": "{{amount}}°/s",
"Jogging.Velocity.lb": "Velocity",
"General.degree.variable": "{{amount}}°",
"General.mm.variable": "{{amount}} mm",
"Jogging.Blocked.ti": "Connection blocked",
"Jogging.Blocked.lb": "Another client is currently controlling the jogging.",
"Jogging.Blocked.Reenable.bt": "Reconnect",
"Jogging.Cartesian.MotionType.lb": "Motion type",
"Jogging.Cartesian.Translation.bt": "Translation",
"Jogging.Cartesian.Rotation.bt": "Rotation",
"Jogging.Joints.JointValues.lb": "Joint values",
"Jogging.Increment.Continuous.dd": "Continuous",
"Jogging.Cartesian.Orientation.lb": "Orientation",
"Jogging.Activating.lb": "Activating jogging",
"Jogging.JointLimitsReached.lb": "Joint limit reached for joint {{jointNumbers}}",
"Jogging.Orientation.coordsys": "Robot base",
"Jogging.Orientation.tool": "Tool",
"SafetyBar.ActivationToggle.Activate.bt": "Activate",
"SafetyBar.ActivationToggle.Activated.bt": "Activated",
"SafetyBar.ActivationToggle.Activating.bt": "Activating",
"SafetyBar.ActivationToggle.Deactivating.bt": "Deactivating",
"SafetyBar.ControllerType.Physical.lb": "Physical",
"SafetyBar.ControllerType.Virtual.lb": "Virtual",
"SafetyBar.MotionGroup.Physical.Explanation.lb": "<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.",
"SafetyBar.MotionGroup.Virtual.Explanation.lb": "<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.",
"SafetyBar.OperationMode.Auto.Explanation.lb": "Automatic operation mode active. Automated movement without manual confirmation enabled.",
"SafetyBar.OperationMode.Automatic.ti": "Automatic",
"SafetyBar.OperationMode.Error.Explanation.lb": "Failed to get operation mode. Use the original control panel to resolve the error.",
"SafetyBar.OperationMode.Error.lb": "Error",
"SafetyBar.OperationMode.Manual.Explanation.lb": "The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.",
"SafetyBar.OperationMode.Manual.lb": "Manual",
"SafetyBar.OperationMode.ti": "Operation mode",
"SafetyBar.SafetyState.Error.Explanation.lb": "The robot controller has entered an unexpected safety state.",
"SafetyBar.SafetyState.Error.lb": "Error",
"SafetyBar.SafetyState.Estop.lb": "E-Stop",
"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb": "The robot controller has entered a safety state requiring manual action to resolve.",
"SafetyBar.SafetyState.ManualActionRequired.lb": "Action required",
"SafetyBar.SafetyState.Normal.Explanation.lb": "The robot controller is in a safe state. Robot movement is enabled.",
"SafetyBar.SafetyState.Normal.lb": "Safe",
"SafetyBar.SafetyState.Stop.Explanation.lb": "The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.",
"SafetyBar.SafetyState.Stop.lb": "Stop",
"SafetyBar.SafetyState.ti": "Safety state",
"SafetyBar.StopState.Estop.Explanation.lb": "An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.",
"Jogging.Increment.hlb": "Increment",
"Jogging.CoordinateSystem.hlb": "Coordinate system",
"Jogging.Cartesian.bt": "Cartesian",
"Jogging.Joints.bt": "Joints",
"Jogging.Velocity.bt": "Velocity",
"CycleTimer.RemainingTime.lb": "Time remaining",
"CycleTimer.OfTime.lb": "of {{time}}",
"CycleTimer.Time.lb": "{{time}}",
"CycleTimer.Error.lb": "Error",
"CycleTimer.WaitingForCycle.lb": "Waiting for program cycle",
"CycleTimer.CycleTime.lb": "Cycle Time",
"CycleTimer.Measuring.lb": "measuring...",
"CycleTimer.Determined.lb": "determined",
"Timer.error": "Error",
"ProgramControl.Start.bt": "Start",
"ProgramControl.Resume.bt": "Resume",
"ProgramControl.Retry.bt": "Retry",
"ProgramControl.Pause.bt": "Pause",
"ProgramControl.Stop.bt": "Stop",
"ProgramStateIndicator.Preparing.lb": "Preparing",
"ProgramStateIndicator.Starting.lb": "Starting",
"ProgramStateIndicator.Running.lb": "Running",
"ProgramStateIndicator.Pausing.lb": "Pausing",
"ProgramStateIndicator.Stopping.lb": "Stopping",
"ProgramStateIndicator.Completed.lb": "Completed",
"ProgramStateIndicator.Failed.lb": "Failed",
"ProgramStateIndicator.Error.lb": "Error",
"ProgramStateIndicator.EStop.lb": "E-Stop",
"ProgramStateIndicator.Idle.lb": "Idle",
"ProgramStateIndicator.Paused.lb": "Paused",
"ProgramStateIndicator.Ready.lb": "Ready",
"ProgramStateIndicator.Stopped.lb": "Stopped",
"ProgramStateIndicator.Auto.lb": "Auto",
"ProgramStateIndicator.Manual.lb": "Manual",
"ProgramStateIndicator.ManualT1.lb": "Manual T1",
"ProgramStateIndicator.ManualT2.lb": "Manual T2",
"RobotSetupReadinessIndicator.Ready.lb": "Ready",
"RobotSetupReadinessIndicator.RobotDisconnected.lb": "Robot disconnected",
"RobotSetupReadinessIndicator.CellOpen.lb": "Cell open",
"RobotSetupReadinessIndicator.EStop.lb": "E-Stop",
"RobotSetupReadinessIndicator.ManualMode.lb": "Manual mode",
"RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb": "Precondition not fulfilled",
"RobotCard.Runtime.lb": "Runtime",
"RobotCard.DriveToHome.bt": "Drive to Home"
}, tt = _t.createInstance();
tt.use(kt).init({
supportedLngs: ["en", "de"],
resources: {
en: {
translations: It
},
de: {
translations: Ft
}
},
ns: ["translations"],
defaultNS: "translations",
detection: {
order: ["navigator", "htmlTag"]
}
});
function gn(e) {
return ((r) => /* @__PURE__ */ Ce.jsx(Mt, { children: /* @__PURE__ */ Ce.jsx(e, { ...r }) }));
}
const Mt = ({
children: e
}) => /* @__PURE__ */ Ce.jsx(xt, { i18n: tt, children: e });
function rt(e, t) {
return function() {
return e.apply(t, arguments);
};
}
const { toString: Dt } = Object.prototype, { getPrototypeOf: Ne } = Object, { iterator: ge, toStringTag: nt } = Symbol, ye = /* @__PURE__ */ ((e) => (t) => {
const r = Dt.call(t);
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), M = (e) => (e = e.toLowerCase(), (t) => ye(t) === e), Se = (e) => (t) => typeof t === e, { isArray: K } = Array, Y = Se("undefined");
function oe(e) {
return e !== null && !Y(e) && e.constructor !== null && !Y(e.constructor) && B(e.constructor.isBuffer) && e.constructor.isBuffer(e);
}
const ot = M("ArrayBuffer");
function jt(e) {
let t;
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ot(e.buffer), t;
}
const Ut = Se("string"), B = Se("function"), it = Se("number"), ie = (e) => e !== null && typeof e == "object", Lt = (e) => e === !0 || e === !1, pe = (e) => {
if (ye(e) !== "object")
return !1;
const t = Ne(e);
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(nt in e) && !(ge in e);
}, Jt = (e) => {
if (!ie(e) || oe(e))
return !1;
try {
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
} catch {
return !1;
}
}, qt = M("Date"), $t = M("File"), Ht = M("Blob"), zt = M("FileList"), Vt = (e) => ie(e) && B(e.pipe), Wt = (e) => {
let t;
return e && (typeof FormData == "function" && e instanceof FormData || B(e.append) && ((t = ye(e)) === "formdata" || // detect form-data instance
t === "object" && B(e.toString) && e.toString() === "[object FormData]"));
}, Gt = M("URLSearchParams"), [Yt, Kt, Xt, Zt] = ["ReadableStream", "Request", "Response", "Headers"].map(M), Qt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function se(e, t, { allOwnKeys: r = !1 } = {}) {
if (e === null || typeof e > "u")
return;
let n, o;
if (typeof e != "object" && (e = [e]), K(e))
for (n = 0, o = e.length; n < o; n++)
t.call(null, e[n], n, e);
else {
if (oe(e))
return;
const s = r ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
let l;
for (n = 0; n < i; n++)
l = s[n], t.call(null, e[l], l, e);
}
}
function st(e, t) {
if (oe(e))
return null;
t = t.toLowerCase();
const r = Object.keys(e);
let n = r.length, o;
for (; n-- > 0; )
if (o = r[n], t === o.toLowerCase())
return o;
return null;
}
const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, at = (e) => !Y(e) && e !== H;
function xe() {
const { caseless: e, skipUndefined: t } = at(this) && this || {}, r = {}, n = (o, s) => {
const i = e && st(r, s) || s;
pe(r[i]) && pe(o) ? r[i] = xe(r[i], o) : pe(o) ? r[i] = xe({}, o) : K(o) ? r[i] = o.slice() : (!t || !Y(o)) && (r[i] = o);
};
for (let o = 0, s = arguments.length; o < s; o++)
arguments[o] && se(arguments[o], n);
return r;
}
const er = (e, t, r, { allOwnKeys: n } = {}) => (se(t, (o, s) => {
r && B(o) ? e[s] = rt(o, r) : e[s] = o;
}, { allOwnKeys: n }), e), tr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), rr = (e, t, r, n) => {
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
value: t.prototype
}), r && Object.assign(e.prototype, r);
}, nr = (e, t, r, n) => {
let o, s, i;
const l = {};
if (t = t || {}, e == null) return t;
do {
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
i = o[s], (!n || n(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
e = r !== !1 && Ne(e);
} while (e && (!r || r(e, t)) && e !== Object.prototype);
return t;
}, or = (e, t, r) => {
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
const n = e.indexOf(t, r);
return n !== -1 && n === r;
}, ir = (e) => {
if (!e) return null;
if (K(e)) return e;
let t = e.length;
if (!it(t)) return null;
const r = new Array(t);
for (; t-- > 0; )
r[t] = e[t];
return r;
}, sr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ne(Uint8Array)), ar = (e, t) => {
const n = (e && e[ge]).call(e);
let o;
for (; (o = n.next()) && !o.done; ) {
const s = o.value;
t.call(e, s[0], s[1]);
}
}, lr = (e, t) => {
let r;
const n = [];
for (; (r = e.exec(t)) !== null; )
n.push(r);
return n;
}, cr = M("HTMLFormElement"), ur = (e) => e.toLowerCase().replace(
/[-_\s]([a-z\d])(\w*)/g,
function(r, n, o) {
return n.toUpperCase() + o;
}
), Ue = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), fr = M("RegExp"), lt = (e, t) => {
const r = Object.getOwnPropertyDescriptors(e), n = {};
se(r, (o, s) => {
let i;
(i = t(o, s, e)) !== !1 && (n[s] = i || o);
}), Object.defineProperties(e, n);
}, dr = (e) => {
lt(e, (t, r) => {
if (B(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
return !1;
const n = e[r];
if (B(n)) {
if (t.enumerable = !1, "writable" in t) {
t.writable = !1;
return;
}
t.set || (t.set = () => {
throw Error("Can not rewrite read-only method '" + r + "'");
});
}
});
}, pr = (e, t) => {
const r = {}, n = (o) => {
o.forEach((s) => {
r[s] = !0;
});
};
return K(e) ? n(e) : n(String(e).split(t)), r;
}, mr = () => {
}, hr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
function br(e) {
return !!(e && B(e.append) && e[nt] === "FormData" && e[ge]);
}
const gr = (e) => {
const t = new Array(10), r = (n, o) => {
if (ie(n)) {
if (t.indexOf(n) >= 0)
return;
if (oe(n))
return n;
if (!("toJSON" in n)) {
t[o] = n;
const s = K(n) ? [] : {};
return se(n, (i, l) => {
const p = r(i, o + 1);
!Y(p) && (s[l] = p);
}), t[o] = void 0, s;
}
}
return n;
};
return r(e, 0);
}, yr = M("AsyncFunction"), Sr = (e) => e && (ie(e) || B(e)) && B(e.then) && B(e.catch), ct = ((e, t) => e ? setImmediate : t ? ((r, n) => (H.addEventListener("message", ({ source: o, data: s }) => {
o === H && s === r && n.length && n.shift()();
}, !1), (o) => {
n.push(o), H.postMessage(r, "*");
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
typeof setImmediate == "function",
B(H.postMessage)
), Rr = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || ct, Er = (e) => e != null && B(e[ge]), a = {
isArray: K,
isArrayBuffer: ot,
isBuffer: oe,
isFormData: Wt,
isArrayBufferView: jt,
isString: Ut,
isNumber: it,
isBoolean: Lt,
isObject: ie,
isPlainObject: pe,
isEmptyObject: Jt,
isReadableStream: Yt,
isRequest: Kt,
isResponse: Xt,
isHeaders: Zt,
isUndefined: Y,
isDate: qt,
isFile: $t,
isBlob: Ht,
isRegExp: fr,
isFunction: B,
isStream: Vt,
isURLSearchParams: Gt,
isTypedArray: sr,
isFileList: zt,
forEach: se,
merge: xe,
extend: er,
trim: Qt,
stripBOM: tr,
inherits: rr,
toFlatObject: nr,
kindOf: ye,
kindOfTest: M,
endsWith: or,
toArray: ir,
forEachEntry: ar,
matchAll: lr,
isHTMLForm: cr,
hasOwnProperty: Ue,
hasOwnProp: Ue,
// an alias to avoid ESLint no-prototype-builtins detection
reduceDescriptors: lt,
freezeMethods: dr,
toObjectSet: pr,
toCamelCase: ur,
noop: mr,
toFiniteNumber: hr,
findKey: st,
global: H,
isContextDefined: at,
isSpecCompliantForm: br,
toJSONObject: gr,
isAsyncFn: yr,
isThenable: Sr,
setImmediate: ct,
asap: Rr,
isIterable: Er
};
function y(e, t, r, n, o) {
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
}
a.inherits(y, 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: a.toJSONObject(this.config),
code: this.code,
status: this.status
};
}
});
const ut = y.prototype, ft = {};
[
"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((e) => {
ft[e] = { value: e };
});
Object.defineProperties(y, ft);
Object.defineProperty(ut, "isAxiosError", { value: !0 });
y.from = (e, t, r, n, o, s) => {
const i = Object.create(ut);
a.toFlatObject(e, i, function(u) {
return u !== Error.prototype;
}, (d) => d !== "isAxiosError");
const l = e && e.message ? e.message : "Error", p = t == null && e ? e.code : t;
return y.call(i, l, p, r, n, o), e && i.cause == null && Object.defineProperty(i, "cause", { value: e, configurable: !0 }), i.name = e && e.name || "Error", s && Object.assign(i, s), i;
};
const wr = null;
function _e(e) {
return a.isPlainObject(e) || a.isArray(e);
}
function dt(e) {
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
}
function Le(e, t, r) {
return e ? e.concat(t).map(function(o, s) {
return o = dt(o), !r && s ? "[" + o + "]" : o;
}).join(r ? "." : "") : t;
}
function Tr(e) {
return a.isArray(e) && !e.some(_e);
}
const Or = a.toFlatObject(a, {}, null, function(t) {
return /^is[A-Z]/.test(t);
});
function Re(e, t, r) {
if (!a.isObject(e))
throw new TypeError("target must be an object");
t = t || new FormData(), r = a.toFlatObject(r, {
metaTokens: !0,
dots: !1,
indexes: !1
}, !1, function(b, m) {
return !a.isUndefined(m[b]);
});
const n = r.metaTokens, o = r.visitor || u, s = r.dots, i = r.indexes, p = (r.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
if (!a.isFunction(o))
throw new TypeError("visitor must be a function");
function d(f) {
if (f === null) return "";
if (a.isDate(f))
return f.toISOString();
if (a.isBoolean(f))
return f.toString();
if (!p && a.isBlob(f))
throw new y("Blob is not supported. Use a Buffer instead.");
return a.isArrayBuffer(f) || a.isTypedArray(f) ? p && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
}
function u(f, b, m) {
let T = f;
if (f && !m && typeof f == "object") {
if (a.endsWith(b, "{}"))
b = n ? b : b.slice(0, -2), f = JSON.stringify(f);
else if (a.isArray(f) && Tr(f) || (a.isFileList(f) || a.endsWith(b, "[]")) && (T = a.toArray(f)))
return b = dt(b), T.forEach(function(O, C) {
!(a.isUndefined(O) || O === null) && t.append(
// eslint-disable-next-line no-nested-ternary
i === !0 ? Le([b], C, s) : i === null ? b : b + "[]",
d(O)
);
}), !1;
}
return _e(f) ? !0 : (t.append(Le(m, b, s), d(f)), !1);
}
const h = [], S = Object.assign(Or, {
defaultVisitor: u,
convertValue: d,
isVisitable: _e
});
function w(f, b) {
if (!a.isUndefined(f)) {
if (h.indexOf(f) !== -1)
throw Error("Circular reference detected in " + b.join("."));
h.push(f), a.forEach(f, function(T, _) {
(!(a.isUndefined(T) || T === null) && o.call(
t,
T,
a.isString(_) ? _.trim() : _,
b,
S
)) === !0 && w(T, b ? b.concat(_) : [_]);
}), h.pop();
}
}
if (!a.isObject(e))
throw new TypeError("data must be an object");
return w(e), t;
}
function Je(e) {
const t = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
"%00": "\0"
};
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
return t[n];
});
}
function ve(e, t) {
this._pairs = [], e && Re(e, this, t);
}
const pt = ve.prototype;
pt.append = function(t, r) {
this._pairs.push([t, r]);
};
pt.toString = function(t) {
const r = t ? function(n) {
return t.call(this, n, Je);
} : Je;
return this._pairs.map(function(o) {
return r(o[0]) + "=" + r(o[1]);
}, "").join("&");
};
function Ar(e) {
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
}
function mt(e, t, r) {
if (!t)
return e;
const n = r && r.encode || Ar;
a.isFunction(r) && (r = {
serialize: r
});
const o = r && r.serialize;
let s;
if (o ? s = o(t, r) : s = a.isURLSearchParams(t) ? t.toString() : new ve(t, r).toString(n), s) {
const i = e.indexOf("#");
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
}
return e;
}
class qe {
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(t, r, n) {
return this.handlers.push({
fulfilled: t,
rejected: r,
synchronous: n ? n.synchronous : !1,
runWhen: n ? n.runWhen : null
}), this.handlers.length - 1;
}
/**
* Remove an interceptor from the stack
*
* @param {Number} id The ID that was returned by `use`
*
* @returns {void}
*/
eject(t) {
this.handlers[t] && (this.handlers[t] = 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(t) {
a.forEach(this.handlers, function(n) {
n !== null && t(n);
});
}
}
const ht = {
silentJSONParsing: !0,
forcedJSONParsing: !0,
clarifyTimeoutError: !1
}, Pr = typeof URLSearchParams < "u" ? URLSearchParams : ve, Cr = typeof FormData < "u" ? FormData : null, xr = typeof Blob < "u" ? Blob : null, _r = {
isBrowser: !0,
classes: {
URLSearchParams: Pr,
FormData: Cr,
Blob: xr
},
protocols: ["http", "https", "file", "blob", "url", "data"]
}, Fe = typeof window < "u" && typeof document < "u", ke = typeof navigator == "object" && navigator || void 0, kr = Fe && (!ke || ["ReactNative", "NativeScript", "NS"].indexOf(ke.product) < 0), Br = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Nr = Fe && window.location.href || "http://localhost", vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
hasBrowserEnv: Fe,
hasStandardBrowserEnv: kr,
hasStandardBrowserWebWorkerEnv: Br,
navigator: ke,
origin: Nr
}, Symbol.toStringTag, { value: "Module" })), x = {
...vr,
..._r
};
function Fr(e, t) {
return Re(e, new x.classes.URLSearchParams(), {
visitor: function(r, n, o, s) {
return x.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
},
...t
});
}
function Ir(e) {
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
}
function Mr(e) {
const t = {}, r = Object.keys(e);
let n;
const o = r.length;
let s;
for (n = 0; n < o; n++)
s = r[n], t[s] = e[s];
return t;
}
function bt(e) {
function t(r, n, o, s) {
let i = r[s++];
if (i === "__proto__") return !0;
const l = Number.isFinite(+i), p = s >= r.length;
return i = !i && a.isArray(o) ? o.length : i, p ? (a.hasOwnProp(o, i) ? o[i] = [o[i], n] : o[i] = n, !l) : ((!o[i] || !a.isObject(o[i])) && (o[i] = []), t(r, n, o[i], s) && a.isArray(o[i]) && (o[i] = Mr(o[i])), !l);
}
if (a.isFormData(e) && a.isFunction(e.entries)) {
const r = {};
return a.forEachEntry(e, (n, o) => {
t(Ir(n), o, r, 0);
}), r;
}
return null;
}
function Dr(e, t, r) {
if (a.isString(e))
try {
return (t || JSON.parse)(e), a.trim(e);
} catch (n) {
if (n.name !== "SyntaxError")
throw n;
}
return (r || JSON.stringify)(e);
}
const ae = {
transitional: ht,
adapter: ["xhr", "http", "fetch"],
transformRequest: [function(t, r) {
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, s = a.isObject(t);
if (s && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
return o ? JSON.stringify(bt(t)) : t;
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
return t;
if (a.isArrayBufferView(t))
return t.buffer;
if (a.isURLSearchParams(t))
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
let l;
if (s) {
if (n.indexOf("application/x-www-form-urlencoded") > -1)
return Fr(t, this.formSerializer).toString();
if ((l = a.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
const p = this.env && this.env.FormData;
return Re(
l ? { "files[]": t } : t,
p && new p(),
this.formSerializer
);
}
}
return s || o ? (r.setContentType("application/json", !1), Dr(t)) : t;
}],
transformResponse: [function(t) {
const r = this.transitional || ae.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
if (a.isResponse(t) || a.isReadableStream(t))
return t;
if (t && a.isString(t) && (n && !this.responseType || o)) {
const i = !(r && r.silentJSONParsing) && o;
try {
return JSON.parse(t, this.parseReviver);
} catch (l) {
if (i)
throw l.name === "SyntaxError" ? y.from(l, y.ERR_BAD_RESPONSE, this, null, this.response) : l;
}
}
return t;
}],
/**
* A timeout in milliseconds to abort a request. If set to 0 (default) a
* timeout is not created.
*/
timeout: 0,
xsrfCookieName: "XSRF-TOKEN",
xsrfHeaderName: "X-XSRF-TOKEN",
maxContentLength: -1,
maxBodyLength: -1,
env: {
FormData: x.classes.FormData,
Blob: x.classes.Blob
},
validateStatus: function(t) {
return t >= 200 && t < 300;
},
headers: {
common: {
Accept: "application/json, text/plain, */*",
"Content-Type": void 0
}
}
};
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
ae.headers[e] = {};
});
const jr = a.toObjectSet([
"age",
"authorization",
"content-length",
"content-type",
"etag",
"expires",
"from",
"host",
"if-modified-since",
"if-unmodified-since",
"last-modified",
"location",
"max-forwards",
"proxy-authorization",
"referer",
"retry-after",
"user-agent"
]), Ur = (e) => {
const t = {};
let r, n, o;
return e && e.split(`
`).forEach(function(i) {
o = i.indexOf(":"), r = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!r || t[r] && jr[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
}), t;
}, $e = Symbol("internals");
function ne(e) {
return e && String(e).trim().toLowerCase();
}
function me(e) {
return e === !1 || e == null ? e : a.isArray(e) ? e.map(me) : String(e);
}
function Lr(e) {
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
let n;
for (; n = r.exec(e); )
t[n[1]] = n[2];
return t;
}
const Jr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
function Oe(e, t, r, n, o) {
if (a.isFunction(n))
return n.call(this, t, r);
if (o && (t = r), !!a.isString(t)) {
if (a.isString(n))
return t.indexOf(n) !== -1;
if (a.isRegExp(n))
return n.test(t);
}
}
function qr(e) {
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
}
function $r(e, t) {
const r = a.toCamelCase(" " + t);
["get", "set", "has"].forEach((n) => {
Object.defineProperty(e, n + r, {
value: function(o, s, i) {
return this[n].call(this, t, o, s, i);
},
configurable: !0
});
});
}
let N = class {
constructor(t) {
t && this.set(t);
}
set(t, r, n) {
const o = this;
function s(l, p, d) {
const u = ne(p);
if (!u)
throw new Error("header name must be a non-empty string");
const h = a.findKey(o, u);
(!h || o[h] === void 0 || d === !0 || d === void 0 && o[h] !== !1) && (o[h || p] = me(l));
}
const i = (l, p) => a.forEach(l, (d, u) => s(d, u, p));
if (a.isPlainObject(t) || t instanceof this.constructor)
i(t, r);
else if (a.isString(t) && (t = t.trim()) && !Jr(t))
i(Ur(t), r);
else if (a.isObject(t) && a.isIterable(t)) {
let l = {}, p, d;
for (const u of t) {
if (!a.isArray(u))
throw TypeError("Object iterator must return a key-value pair");
l[d = u[0]] = (p = l[d]) ? a.isArray(p) ? [...p, u[1]] : [p, u[1]] : u[1];
}
i(l, r);
} else
t != null && s(r, t, n);
return this;
}
get(t, r) {
if (t = ne(t), t) {
const n = a.findKey(this, t);
if (n) {
const o = this[n];
if (!r)
return o;
if (r === !0)
return Lr(o);
if (a.isFunction(r))
return r.call(this, o, n);
if (a.isRegExp(r))
return r.exec(o);
throw new TypeError("parser must be boolean|regexp|function");
}
}
}
has(t, r) {
if (t = ne(t), t) {
const n = a.findKey(this, t);
return !!(n && this[n] !== void 0 && (!r || Oe(this, this[n], n, r)));
}
return !1;
}
delete(t, r) {
const n = this;
let o = !1;
function s(i) {
if (i = ne(i), i) {
const l = a.findKey(n, i);
l && (!r || Oe(n, n[l], l, r)) && (delete n[l], o = !0);
}
}
return a.isArray(t) ? t.forEach(s) : s(t), o;
}
clear(t) {
const r = Object.keys(this);
let n = r.length, o = !1;
for (; n--; ) {
const s = r[n];
(!t || Oe(this, this[s], s, t, !0)) && (delete this[s], o = !0);
}
return o;
}
normalize(t) {
const r = this, n = {};
return a.forEach(this, (o, s) => {
const i = a.findKey(n, s);
if (i) {
r[i] = me(o), delete r[s];
return;
}
const l = t ? qr(s) : String(s).trim();
l !== s && delete r[s], r[l] = me(o), n[l] = !0;
}), this;
}
concat(...t) {
return this.constructor.concat(this, ...t);
}
toJSON(t) {
const r = /* @__PURE__ */ Object.create(null);
return a.forEach(this, (n, o) => {
n != null && n !== !1 && (r[o] = t && a.isArray(n) ? n.join(", ") : n);
}), r;
}
[Symbol.iterator]() {
return Object.entries(this.toJSON())[Symbol.iterator]();
}
toString() {
return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
`);
}
getSetCookie() {
return this.get("set-cookie") || [];
}
get [Symbol.toStringTag]() {
return "AxiosHeaders";
}
static from(t) {
return t instanceof this ? t : new this(t);
}
static concat(t, ...r) {
const n = new this(t);
return r.forEach((o) => n.set(o)), n;
}
static accessor(t) {
const n = (this[$e] = this[$e] = {
accessors: {}
}).accessors, o = this.prototype;
function s(i) {
const l = ne(i);
n[l] || ($r(o, i), n[l] = !0);
}
return a.isArray(t) ? t.forEach(s) : s(t), this;
}
};
N.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
a.reduceDescriptors(N.prototype, ({ value: e }, t) => {
let r = t[0].toUpperCase() + t.slice(1);
return {
get: () => e,
set(n) {
this[r] = n;
}
};
});
a.freezeMethods(N);
function Ae(e, t) {
const r = this || ae, n = t || r, o = N.from(n.headers);
let s = n.data;
return a.forEach(e, function(l) {
s = l.call(r, s, o.normalize(), t ? t.status : void 0);
}), o.normalize(), s;
}
function gt(e) {
return !!(e && e.__CANCEL__);
}
function X(e, t, r) {
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, r), this.name = "CanceledError";
}
a.inherits(X, y, {
__CANCEL__: !0
});
function yt(e, t, r) {
const n = r.config.validateStatus;
!r.status || !n || n(r.status) ? e(r) : t(new y(
"Request failed with status code " + r.status,
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
r.config,
r.request,
r
));
}
function Hr(e) {
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
return t && t[1] || "";
}
function zr(e, t) {
e = e || 10;
const r = new Array(e), n = new Array(e);
let o = 0, s = 0, i;
return t = t !== void 0 ? t : 1e3, function(p) {
const d = Date.now(), u = n[s];
i || (i = d), r[o] = p, n[o] = d;
let h = s, S = 0;
for (; h !== o; )
S += r[h++], h = h % e;
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), d - i < t)
return;
const w = u && d - u;
return w ? Math.round(S * 1e3 / w) : void 0;
};
}
function Vr(e, t) {
let r = 0, n = 1e3 / t, o, s;
const i = (d, u = Date.now()) => {
r = u, o = null, s && (clearTimeout(s), s = null), e(...d);
};
return [(...d) => {
const u = Date.now(), h = u - r;
h >= n ? i(d, u) : (o = d, s || (s = setTimeout(() => {
s = null, i(o);
}, n - h)));
}, () => o && i(o)];
}
const be = (e, t, r = 3) => {
let n = 0;
const o = zr(50, 250);
return Vr((s) => {
const i = s.loaded, l = s.lengthComputable ? s.total : void 0, p = i - n, d = o(p), u = i <= l;
n = i;
const h = {
loaded: i,
total: l,
progress: l ? i / l : void 0,
bytes: p,
rate: d || void 0,
estimated: d && l && u ? (l - i) / d : void 0,
event: s,
lengthComputable: l != null,
[t ? "download" : "upload"]: !0
};
e(h);
}, r);
}, He = (e, t) => {
const r = e != null;
return [(n) => t[0]({
lengthComputable: r,
total: e,
loaded: n
}), t[1]];
}, ze = (e) => (...t) => a.asap(() => e(...t)), Wr = x.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, x.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
new URL(x.origin),
x.navigator && /(msie|trident)/i.test(x.navigator.userAgent)
) : () => !0, Gr = x.hasStandardBrowserEnv ? (
// Standard browser envs support document.cookie
{
write(e, t, r, n, o, s, i) {
if (typeof document > "u") return;
const l = [`${e}=${encodeURIComponent(t)}`];
a.isNumber(r) && l.push(`expires=${new Date(r).toUTCString()}`), a.isString(n) && l.push(`path=${n}`), a.isString(o) && l.push(`domain=${o}`), s === !0 && l.push("secure"), a.isString(i) && l.push(`SameSite=${i}`), document.cookie = l.join("; ");
},
read(e) {
if (typeof document > "u") return null;
const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
return t ? decodeURIComponent(t[1]) : null;
},
remove(e) {
this.write(e, "", Date.now() - 864e5, "/");
}
}
) : (
// Non-standard browser env (web workers, react-native) lack needed support.
{
write() {
},
read() {
return null;
},
remove() {
}
}
);
function Yr(e) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
}
function Kr(e, t) {
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
}
function St(e, t, r) {
let n = !Yr(t);
return e && (n || r == !1) ? Kr(e, t) : t;
}
const Ve = (e) => e instanceof N ? { ...e } : e;
function V(e, t) {
t = t || {};
const r = {};
function n(d, u, h, S) {
return a.isPlainObject(d) && a.isPlainObject(u) ? a.merge.call({ caseless: S }, d, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
}
function o(d, u, h, S) {
if (a.isUndefined(u)) {
if (!a.isUndefined(d))
return n(void 0, d, h, S);
} else return n(d, u, h, S);
}
function s(d, u) {
if (!a.isUndefined(u))
return n(void 0, u);
}
function i(d, u) {
if (a.isUndefined(u)) {
if (!a.isUndefined(d))
return n(void 0, d);
} else return n(void 0, u);
}
function l(d, u, h) {
if (h in t)
return n(d, u);
if (h in e)
return n(void 0, d);
}
const p = {
url: s,
method: s,
data: s,
baseURL: i,
transformRequest: i,
transformResponse: