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: i,
    paramsSerializer: i,
    timeout: i,
    timeoutMessage: i,
    withCredentials: i,
    withXSRFToken: i,
    adapter: i,
    responseType: i,
    xsrfCookieName: i,
    xsrfHeaderName: i,
    onUploadProgress: i,
    onDownloadProgress: i,
    decompress: i,
    maxContentLength: i,
    maxBodyLength: i,
    beforeRedirect: i,
    transport: i,
    httpAgent: i,
    httpsAgent: i,
    cancelToken: i,
    socketPath: i,
    responseEncoding: i,
    validateStatus: l,
    headers: (d, u, h) => o(Ve(d), Ve(u), h, !0)
  };
  return a.forEach(Object.keys({ ...e, ...t }), function(u) {
    const h = p[u] || o, S = h(e[u], t[u], u);
    a.isUndefined(S) && h !== l || (r[u] = S);
  }), r;
}
const Rt = (e) => {
  const t = V({}, e);
  let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: l } = t;
  if (t.headers = i = N.from(i), t.url = mt(St(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), l && i.set(
    "Authorization",
    "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
  ), a.isFormData(r)) {
    if (x.hasStandardBrowserEnv || x.hasStandardBrowserWebWorkerEnv)
      i.setContentType(void 0);
    else if (a.isFunction(r.getHeaders)) {
      const p = r.getHeaders(), d = ["content-type", "content-length"];
      Object.entries(p).forEach(([u, h]) => {
        d.includes(u.toLowerCase()) && i.set(u, h);
      });
    }
  }
  if (x.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(t)), n || n !== !1 && Wr(t.url))) {
    const p = o && s && Gr.read(s);
    p && i.set(o, p);
  }
  return t;
}, Xr = typeof XMLHttpRequest < "u", Zr = Xr && function(e) {
  return new Promise(function(r, n) {
    const o = Rt(e);
    let s = o.data;
    const i = N.from(o.headers).normalize();
    let { responseType: l, onUploadProgress: p, onDownloadProgress: d } = o, u, h, S, w, f;
    function b() {
      w && w(), f && f(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
    }
    let m = new XMLHttpRequest();
    m.open(o.method.toUpperCase(), o.url, !0), m.timeout = o.timeout;
    function T() {
      if (!m)
        return;
      const O = N.from(
        "getAllResponseHeaders" in m && m.getAllResponseHeaders()
      ), v = {
        data: !l || l === "text" || l === "json" ? m.responseText : m.response,
        status: m.status,
        statusText: m.statusText,
        headers: O,
        config: e,
        request: m
      };
      yt(function(k) {
        r(k), b();
      }, function(k) {
        n(k), b();
      }, v), m = null;
    }
    "onloadend" in m ? m.onloadend = T : m.onreadystatechange = function() {
      !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(T);
    }, m.onabort = function() {
      m && (n(new y("Request aborted", y.ECONNABORTED, e, m)), m = null);
    }, m.onerror = function(C) {
      const v = C && C.message ? C.message : "Network Error", j = new y(v, y.ERR_NETWORK, e, m);
      j.event = C || null, n(j), m = null;
    }, m.ontimeout = function() {
      let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
      const v = o.transitional || ht;
      o.timeoutErrorMessage && (C = o.timeoutErrorMessage), n(new y(
        C,
        v.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
        e,
        m
      )), m = null;
    }, s === void 0 && i.setContentType(null), "setRequestHeader" in m && a.forEach(i.toJSON(), function(C, v) {
      m.setRequestHeader(v, C);
    }), a.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), l && l !== "json" && (m.responseType = o.responseType), d && ([S, f] = be(d, !0), m.addEventListener("progress", S)), p && m.upload && ([h, w] = be(p), m.upload.addEventListener("progress", h), m.upload.addEventListener("loadend", w)), (o.cancelToken || o.signal) && (u = (O) => {
      m && (n(!O || O.type ? new X(null, e, m) : O), m.abort(), m = null);
    }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
    const _ = Hr(o.url);
    if (_ && x.protocols.indexOf(_) === -1) {
      n(new y("Unsupported protocol " + _ + ":", y.ERR_BAD_REQUEST, e));
      return;
    }
    m.send(s || null);
  });
}, Qr = (e, t) => {
  const { length: r } = e = e ? e.filter(Boolean) : [];
  if (t || r) {
    let n = new AbortController(), o;
    const s = function(d) {
      if (!o) {
        o = !0, l();
        const u = d instanceof Error ? d : this.reason;
        n.abort(u instanceof y ? u : new X(u instanceof Error ? u.message : u));
      }
    };
    let i = t && setTimeout(() => {
      i = null, s(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
    }, t);
    const l = () => {
      e && (i && clearTimeout(i), i = null, e.forEach((d) => {
        d.unsubscribe ? d.unsubscribe(s) : d.removeEventListener("abort", s);
      }), e = null);
    };
    e.forEach((d) => d.addEventListener("abort", s));
    const { signal: p } = n;
    return p.unsubscribe = () => a.asap(l), p;
  }
}, en = function* (e, t) {
  let r = e.byteLength;
  if (r < t) {
    yield e;
    return;
  }
  let n = 0, o;
  for (; n < r; )
    o = n + t, yield e.slice(n, o), n = o;
}, tn = async function* (e, t) {
  for await (const r of rn(e))
    yield* en(r, t);
}, rn = async function* (e) {
  if (e[Symbol.asyncIterator]) {
    yield* e;
    return;
  }
  const t = e.getReader();
  try {
    for (; ; ) {
      const { done: r, value: n } = await t.read();
      if (r)
        break;
      yield n;
    }
  } finally {
    await t.cancel();
  }
}, We = (e, t, r, n) => {
  const o = tn(e, t);
  let s = 0, i, l = (p) => {
    i || (i = !0, n && n(p));
  };
  return new ReadableStream({
    async pull(p) {
      try {
        const { done: d, value: u } = await o.next();
        if (d) {
          l(), p.close();
          return;
        }
        let h = u.byteLength;
        if (r) {
          let S = s += h;
          r(S);
        }
        p.enqueue(new Uint8Array(u));
      } catch (d) {
        throw l(d), d;
      }
    },
    cancel(p) {
      return l(p), o.return();
    }
  }, {
    highWaterMark: 2
  });
}, Ge = 64 * 1024, { isFunction: de } = a, nn = (({ Request: e, Response: t }) => ({
  Request: e,
  Response: t
}))(a.global), {
  ReadableStream: Ye,
  TextEncoder: Ke
} = a.global, Xe = (e, ...t) => {
  try {
    return !!e(...t);
  } catch {
    return !1;
  }
}, on = (e) => {
  e = a.merge.call({
    skipUndefined: !0
  }, nn, e);
  const { fetch: t, Request: r, Response: n } = e, o = t ? de(t) : typeof fetch == "function", s = de(r), i = de(n);
  if (!o)
    return !1;
  const l = o && de(Ye), p = o && (typeof Ke == "function" ? /* @__PURE__ */ ((f) => (b) => f.encode(b))(new Ke()) : async (f) => new Uint8Array(await new r(f).arrayBuffer())), d = s && l && Xe(() => {
    let f = !1;
    const b = new r(x.origin, {
      body: new Ye(),
      method: "POST",
      get duplex() {
        return f = !0, "half";
      }
    }).headers.has("Content-Type");
    return f && !b;
  }), u = i && l && Xe(() => a.isReadableStream(new n("").body)), h = {
    stream: u && ((f) => f.body)
  };
  o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
    !h[f] && (h[f] = (b, m) => {
      let T = b && b[f];
      if (T)
        return T.call(b);
      throw new y(`Response type '${f}' is not supported`, y.ERR_NOT_SUPPORT, m);
    });
  });
  const S = async (f) => {
    if (f == null)
      return 0;
    if (a.isBlob(f))
      return f.size;
    if (a.isSpecCompliantForm(f))
      return (await new r(x.origin, {
        method: "POST",
        body: f
      }).arrayBuffer()).byteLength;
    if (a.isArrayBufferView(f) || a.isArrayBuffer(f))
      return f.byteLength;
    if (a.isURLSearchParams(f) && (f = f + ""), a.isString(f))
      return (await p(f)).byteLength;
  }, w = async (f, b) => {
    const m = a.toFiniteNumber(f.getContentLength());
    return m ?? S(b);
  };
  return async (f) => {
    let {
      url: b,
      method: m,
      data: T,
      signal: _,
      cancelToken: O,
      timeout: C,
      onDownloadProgress: v,
      onUploadProgress: j,
      responseType: k,
      headers: Z,
      withCredentials: L = "same-origin",
      fetchOptions: le
    } = Rt(f), ce = t || fetch;
    k = k ? (k + "").toLowerCase() : "text";
    let J = Qr([_, O && O.toAbortSignal()], C), q = null;
    const U = J && J.unsubscribe && (() => {
      J.unsubscribe();
    });
    let W;
    try {
      if (j && d && m !== "get" && m !== "head" && (W = await w(Z, T)) !== 0) {
        let c = new r(b, {
          method: "POST",
          body: T,
          duplex: "half"
        }), g;
        if (a.isFormData(T) && (g = c.headers.get("content-type")) && Z.setContentType(g), c.body) {
          const [R, E] = He(
            W,
            be(ze(j))
          );
          T = We(c.body, Ge, R, E);
        }
      }
      a.isString(L) || (L = L ? "include" : "omit");
      const F = s && "credentials" in r.prototype, Q = {
        ...le,
        signal: J,
        method: m.toUpperCase(),
        headers: Z.normalize().toJSON(),
        body: T,
        duplex: "half",
        credentials: F ? L : void 0
      };
      q = s && new r(b, Q);
      let I = await (s ? ce(q, le) : ce(b, Q));
      const ee = u && (k === "stream" || k === "response");
      if (u && (v || ee && U)) {
        const c = {};
        ["status", "statusText", "headers"].forEach(($) => {
          c[$] = I[$];
        });
        const g = a.toFiniteNumber(I.headers.get("content-length")), [R, E] = v && He(
          g,
          be(ze(v), !0)
        ) || [];
        I = new n(
          We(I.body, Ge, R, () => {
            E && E(), U && U();
          }),
          c
        );
      }
      k = k || "text";
      let ue = await h[a.findKey(h, k) || "text"](I, f);
      return !ee && U && U(), await new Promise((c, g) => {
        yt(c, g, {
          data: ue,
          headers: N.from(I.headers),
          status: I.status,
          statusText: I.statusText,
          config: f,
          request: q
        });
      });
    } catch (F) {
      throw U && U(), F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign(
        new y("Network Error", y.ERR_NETWORK, f, q),
        {
          cause: F.cause || F
        }
      ) : y.from(F, F && F.code, f, q);
    }
  };
}, sn = /* @__PURE__ */ new Map(), Et = (e) => {
  let t = e && e.env || {};
  const { fetch: r, Request: n, Response: o } = t, s = [
    n,
    o,
    r
  ];
  let i = s.length, l = i, p, d, u = sn;
  for (; l--; )
    p = s[l], d = u.get(p), d === void 0 && u.set(p, d = l ? /* @__PURE__ */ new Map() : on(t)), u = d;
  return d;
};
Et();
const Ie = {
  http: wr,
  xhr: Zr,
  fetch: {
    get: Et
  }
};
a.forEach(Ie, (e, t) => {
  if (e) {
    try {
      Object.defineProperty(e, "name", { value: t });
    } catch {
    }
    Object.defineProperty(e, "adapterName", { value: t });
  }
});
const Ze = (e) => `- ${e}`, an = (e) => a.isFunction(e) || e === null || e === !1;
function ln(e, t) {
  e = a.isArray(e) ? e : [e];
  const { length: r } = e;
  let n, o;
  const s = {};
  for (let i = 0; i < r; i++) {
    n = e[i];
    let l;
    if (o = n, !an(n) && (o = Ie[(l = String(n)).toLowerCase()], o === void 0))
      throw new y(`Unknown adapter '${l}'`);
    if (o && (a.isFunction(o) || (o = o.get(t))))
      break;
    s[l || "#" + i] = o;
  }
  if (!o) {
    const i = Object.entries(s).map(
      ([p, d]) => `adapter ${p} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
    );
    let l = r ? i.length > 1 ? `since :
` + i.map(Ze).join(`
`) : " " + Ze(i[0]) : "as no adapter specified";
    throw new y(
      "There is no suitable adapter to dispatch the request " + l,
      "ERR_NOT_SUPPORT"
    );
  }
  return o;
}
const wt = {
  /**
   * Resolve an adapter from a list of adapter names or functions.
   * @type {Function}
   */
  getAdapter: ln,
  /**
   * Exposes all known adapters
   * @type {Object<string, Function|Object>}
   */
  adapters: Ie
};
function Pe(e) {
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
    throw new X(null, e);
}
function Qe(e) {
  return Pe(e), e.headers = N.from(e.headers), e.data = Ae.call(
    e,
    e.transformRequest
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), wt.getAdapter(e.adapter || ae.adapter, e)(e).then(function(n) {
    return Pe(e), n.data = Ae.call(
      e,
      e.transformResponse,
      n
    ), n.headers = N.from(n.headers), n;
  }, function(n) {
    return gt(n) || (Pe(e), n && n.response && (n.response.data = Ae.call(
      e,
      e.transformResponse,
      n.response
    ), n.response.headers = N.from(n.response.headers))), Promise.reject(n);
  });
}
const Tt = "1.13.2", Ee = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
  Ee[e] = function(n) {
    return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
  };
});
const et = {};
Ee.transitional = function(t, r, n) {
  function o(s, i) {
    return "[Axios v" + Tt + "] Transitional option '" + s + "'" + i + (n ? ". " + n : "");
  }
  return (s, i, l) => {
    if (t === !1)
      throw new y(
        o(i, " has been removed" + (r ? " in " + r : "")),
        y.ERR_DEPRECATED
      );
    return r && !et[i] && (et[i] = !0, console.warn(
      o(
        i,
        " has been deprecated since v" + r + " and will be removed in the near future"
      )
    )), t ? t(s, i, l) : !0;
  };
};
Ee.spelling = function(t) {
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
};
function cn(e, t, r) {
  if (typeof e != "object")
    throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
  const n = Object.keys(e);
  let o = n.length;
  for (; o-- > 0; ) {
    const s = n[o], i = t[s];
    if (i) {
      const l = e[s], p = l === void 0 || i(l, s, e);
      if (p !== !0)
        throw new y("option " + s + " must be " + p, y.ERR_BAD_OPTION_VALUE);
      continue;
    }
    if (r !== !0)
      throw new y("Unknown option " + s, y.ERR_BAD_OPTION);
  }
}
const he = {
  assertOptions: cn,
  validators: Ee
}, D = he.validators;
let z = class {
  constructor(t) {
    this.defaults = t || {}, this.interceptors = {
      request: new qe(),
      response: new qe()
    };
  }
  /**
   * Dispatch a request
   *
   * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
   * @param {?Object} config
   *
   * @returns {Promise} The Promise to be fulfilled
   */
  async request(t, r) {
    try {
      return await this._request(t, r);
    } catch (n) {
      if (n instanceof Error) {
        let o = {};
        Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
        const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
        try {
          n.stack ? s && !String(n.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (n.stack += `
` + s) : n.stack = s;
        } catch {
        }
      }
      throw n;
    }
  }
  _request(t, r) {
    typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = V(this.defaults, r);
    const { transitional: n, paramsSerializer: o, headers: s } = r;
    n !== void 0 && he.assertOptions(n, {
      silentJSONParsing: D.transitional(D.boolean),
      forcedJSONParsing: D.transitional(D.boolean),
      clarifyTimeoutError: D.transitional(D.boolean)
    }, !1), o != null && (a.isFunction(o) ? r.paramsSerializer = {
      serialize: o
    } : he.assertOptions(o, {
      encode: D.function,
      serialize: D.function
    }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), he.assertOptions(r, {
      baseUrl: D.spelling("baseURL"),
      withXsrfToken: D.spelling("withXSRFToken")
    }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
    let i = s && a.merge(
      s.common,
      s[r.method]
    );
    s && a.forEach(
      ["delete", "get", "head", "post", "put", "patch", "common"],
      (f) => {
        delete s[f];
      }
    ), r.headers = N.concat(i, s);
    const l = [];
    let p = !0;
    this.interceptors.request.forEach(function(b) {
      typeof b.runWhen == "function" && b.runWhen(r) === !1 || (p = p && b.synchronous, l.unshift(b.fulfilled, b.rejected));
    });
    const d = [];
    this.interceptors.response.forEach(function(b) {
      d.push(b.fulfilled, b.rejected);
    });
    let u, h = 0, S;
    if (!p) {
      const f = [Qe.bind(this), void 0];
      for (f.unshift(...l), f.push(...d), S = f.length, u = Promise.resolve(r); h < S; )
        u = u.then(f[h++], f[h++]);
      return u;
    }
    S = l.length;
    let w = r;
    for (; h < S; ) {
      const f = l[h++], b = l[h++];
      try {
        w = f(w);
      } catch (m) {
        b.call(this, m);
        break;
      }
    }
    try {
      u = Qe.call(this, w);
    } catch (f) {
      return Promise.reject(f);
    }
    for (h = 0, S = d.length; h < S; )
      u = u.then(d[h++], d[h++]);
    return u;
  }
  getUri(t) {
    t = V(this.defaults, t);
    const r = St(t.baseURL, t.url, t.allowAbsoluteUrls);
    return mt(r, t.params, t.paramsSerializer);
  }
};
a.forEach(["delete", "get", "head", "options"], function(t) {
  z.prototype[t] = function(r, n) {
    return this.request(V(n || {}, {
      method: t,
      url: r,
      data: (n || {}).data
    }));
  };
});
a.forEach(["post", "put", "patch"], function(t) {
  function r(n) {
    return function(s, i, l) {
      return this.request(V(l || {}, {
        method: t,
        headers: n ? {
          "Content-Type": "multipart/form-data"
        } : {},
        url: s,
        data: i
      }));
    };
  }
  z.prototype[t] = r(), z.prototype[t + "Form"] = r(!0);
});
let un = class Ot {
  constructor(t) {
    if (typeof t != "function")
      throw new TypeError("executor must be a function.");
    let r;
    this.promise = new Promise(function(s) {
      r = s;
    });
    const n = this;
    this.promise.then((o) => {
      if (!n._listeners) return;
      let s = n._listeners.length;
      for (; s-- > 0; )
        n._listeners[s](o);
      n._listeners = null;
    }), this.promise.then = (o) => {
      let s;
      const i = new Promise((l) => {
        n.subscribe(l), s = l;
      }).then(o);
      return i.cancel = function() {
        n.unsubscribe(s);
      }, i;
    }, t(function(s, i, l) {
      n.reason || (n.reason = new X(s, i, l), r(n.reason));
    });
  }
  /**
   * Throws a `CanceledError` if cancellation has been requested.
   */
  throwIfRequested() {
    if (this.reason)
      throw this.reason;
  }
  /**
   * Subscribe to the cancel signal
   */
  subscribe(t) {
    if (this.reason) {
      t(this.reason);
      return;
    }
    this._listeners ? this._listeners.push(t) : this._listeners = [t];
  }
  /**
   * Unsubscribe from the cancel signal
   */
  unsubscribe(t) {
    if (!this._listeners)
      return;
    const r = this._listeners.indexOf(t);
    r !== -1 && this._listeners.splice(r, 1);
  }
  toAbortSignal() {
    const t = new AbortController(), r = (n) => {
      t.abort(n);
    };
    return this.subscribe(r), t.signal.unsubscribe = () => this.unsubscribe(r), t.signal;
  }
  /**
   * Returns an object that contains a new `CancelToken` and a function that, when called,
   * cancels the `CancelToken`.
   */
  static source() {
    let t;
    return {
      token: new Ot(function(o) {
        t = o;
      }),
      cancel: t
    };
  }
};
function fn(e) {
  return function(r) {
    return e.apply(null, r);
  };
}
function dn(e) {
  return a.isObject(e) && e.isAxiosError === !0;
}
const Be = {
  Continue: 100,
  SwitchingProtocols: 101,
  Processing: 102,
  EarlyHints: 103,
  Ok: 200,
  Created: 201,
  Accepted: 202,
  NonAuthoritativeInformation: 203,
  NoContent: 204,
  ResetContent: 205,
  PartialContent: 206,
  MultiStatus: 207,
  AlreadyReported: 208,
  ImUsed: 226,
  MultipleChoices: 300,
  MovedPermanently: 301,
  Found: 302,
  SeeOther: 303,
  NotModified: 304,
  UseProxy: 305,
  Unused: 306,
  TemporaryRedirect: 307,
  PermanentRedirect: 308,
  BadRequest: 400,
  Unauthorized: 401,
  PaymentRequired: 402,
  Forbidden: 403,
  NotFound: 404,
  MethodNotAllowed: 405,
  NotAcceptable: 406,
  ProxyAuthenticationRequired: 407,
  RequestTimeout: 408,
  Conflict: 409,
  Gone: 410,
  LengthRequired: 411,
  PreconditionFailed: 412,
  PayloadTooLarge: 413,
  UriTooLong: 414,
  UnsupportedMediaType: 415,
  RangeNotSatisfiable: 416,
  ExpectationFailed: 417,
  ImATeapot: 418,
  MisdirectedRequest: 421,
  UnprocessableEntity: 422,
  Locked: 423,
  FailedDependency: 424,
  TooEarly: 425,
  UpgradeRequired: 426,
  PreconditionRequired: 428,
  TooManyRequests: 429,
  RequestHeaderFieldsTooLarge: 431,
  UnavailableForLegalReasons: 451,
  InternalServerError: 500,
  NotImplemented: 501,
  BadGateway: 502,
  ServiceUnavailable: 503,
  GatewayTimeout: 504,
  HttpVersionNotSupported: 505,
  VariantAlsoNegotiates: 506,
  InsufficientStorage: 507,
  LoopDetected: 508,
  NotExtended: 510,
  NetworkAuthenticationRequired: 511,
  WebServerIsDown: 521,
  ConnectionTimedOut: 522,
  OriginIsUnreachable: 523,
  TimeoutOccurred: 524,
  SslHandshakeFailed: 525,
  InvalidSslCertificate: 526
};
Object.entries(Be).forEach(([e, t]) => {
  Be[t] = e;
});
function At(e) {
  const t = new z(e), r = rt(z.prototype.request, t);
  return a.extend(r, z.prototype, t, { allOwnKeys: !0 }), a.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
    return At(V(e, o));
  }, r;
}
const A = At(ae);
A.Axios = z;
A.CanceledError = X;
A.CancelToken = un;
A.isCancel = gt;
A.VERSION = Tt;
A.toFormData = Re;
A.AxiosError = y;
A.Cancel = A.CanceledError;
A.all = function(t) {
  return Promise.all(t);
};
A.spread = fn;
A.isAxiosError = dn;
A.mergeConfig = V;
A.AxiosHeaders = N;
A.formToJSON = (e) => bt(a.isHTMLForm(e) ? new FormData(e) : e);
A.getAdapter = wt.getAdapter;
A.HttpStatusCode = Be;
A.default = A;
const {
  Axios: Rn,
  AxiosError: En,
  CanceledError: wn,
  isCancel: Tn,
  CancelToken: On,
  VERSION: An,
  all: Pn,
  Cancel: Cn,
  isAxiosError: xn,
  spread: _n,
  toFormData: kn,
  AxiosHeaders: Bn,
  HttpStatusCode: Nn,
  formToJSON: vn,
  getAdapter: Fn,
  mergeConfig: In
} = A;
export {
  En as A,
  A as a,
  xn as b,
  gn as e,
  tt as i,
  Ce as j
};
//# sourceMappingURL=index-CAib4NKw.js.map
