@nsshunt/stsuxvue 1.0.121 → 1.0.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stsuxvue.cjs CHANGED
@@ -58,7 +58,7 @@ var ModelStore = (0, pinia.defineStore)("__sts__ModelStore", {
58
58
  },
59
59
  actions: {
60
60
  GetSate(modelId) {
61
- if (!this._state[modelId]) this._state[modelId] = _estate.IDLE;
61
+ if (!this._state[modelId]) this._state[modelId] = "idle";
62
62
  return this._state[modelId];
63
63
  },
64
64
  UpdateSate(modelId, newSate) {
@@ -6036,10 +6036,50 @@ var import_ansi_to_html = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
6036
6036
  return Filter;
6037
6037
  }();
6038
6038
  })))(), 1);
6039
- /*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
6040
- var { entries, setPrototypeOf, isFrozen, getPrototypeOf: getPrototypeOf$1, getOwnPropertyDescriptor } = Object;
6041
- var { freeze, seal, create } = Object;
6042
- var { apply, construct } = typeof Reflect !== "undefined" && Reflect;
6039
+ /*! @license DOMPurify 3.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.3/LICENSE */
6040
+ function _arrayLikeToArray(r, a) {
6041
+ (null == a || a > r.length) && (a = r.length);
6042
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
6043
+ return n;
6044
+ }
6045
+ function _arrayWithHoles(r) {
6046
+ if (Array.isArray(r)) return r;
6047
+ }
6048
+ function _iterableToArrayLimit(r, l) {
6049
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
6050
+ if (null != t) {
6051
+ var e, n, i, u, a = [], f = true, o = false;
6052
+ try {
6053
+ if (i = (t = t.call(r)).next, 0 === l);
6054
+ else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
6055
+ } catch (r) {
6056
+ o = true, n = r;
6057
+ } finally {
6058
+ try {
6059
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
6060
+ } finally {
6061
+ if (o) throw n;
6062
+ }
6063
+ }
6064
+ return a;
6065
+ }
6066
+ }
6067
+ function _nonIterableRest() {
6068
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6069
+ }
6070
+ function _slicedToArray(r, e) {
6071
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
6072
+ }
6073
+ function _unsupportedIterableToArray(r, a) {
6074
+ if (r) {
6075
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
6076
+ var t = {}.toString.call(r).slice(8, -1);
6077
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
6078
+ }
6079
+ }
6080
+ var entries = Object.entries, setPrototypeOf = Object.setPrototypeOf, isFrozen = Object.isFrozen, getPrototypeOf$1 = Object.getPrototypeOf, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
6081
+ var freeze = Object.freeze, seal = Object.seal, create = Object.create;
6082
+ var _ref = typeof Reflect !== "undefined" && Reflect, apply = _ref.apply, construct = _ref.construct;
6043
6083
  if (!freeze) freeze = function freeze(x) {
6044
6084
  return x;
6045
6085
  };
@@ -6143,9 +6183,14 @@ function cleanArray(array) {
6143
6183
  */
6144
6184
  function clone(object) {
6145
6185
  const newObject = create(null);
6146
- for (const [property, value] of entries(object)) if (objectHasOwnProperty(object, property)) if (arrayIsArray(value)) newObject[property] = cleanArray(value);
6147
- else if (value && typeof value === "object" && value.constructor === Object) newObject[property] = clone(value);
6148
- else newObject[property] = value;
6186
+ for (const _ref2 of entries(object)) {
6187
+ var _ref3 = _slicedToArray(_ref2, 2);
6188
+ const property = _ref3[0];
6189
+ const value = _ref3[1];
6190
+ if (objectHasOwnProperty(object, property)) if (arrayIsArray(value)) newObject[property] = cleanArray(value);
6191
+ else if (value && typeof value === "object" && value.constructor === Object) newObject[property] = clone(value);
6192
+ else newObject[property] = value;
6193
+ }
6149
6194
  return newObject;
6150
6195
  }
6151
6196
  /**
@@ -6847,9 +6892,9 @@ var xml = freeze([
6847
6892
  "xml:space",
6848
6893
  "xmlns:xlink"
6849
6894
  ]);
6850
- var MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
6851
- var ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
6852
- var TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
6895
+ var MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
6896
+ var ERB_EXPR = seal(/<%[\w\W]*|^[\w\W]*%>/g);
6897
+ var TMPLIT_EXPR = seal(/\${[\w\W]*/g);
6853
6898
  var DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
6854
6899
  var ARIA_ATTR = seal(/^aria-[\-\w]+$/);
6855
6900
  var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);
@@ -6857,19 +6902,6 @@ var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
6857
6902
  var ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);
6858
6903
  var DOCTYPE_NAME = seal(/^html$/i);
6859
6904
  var CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
6860
- var EXPRESSIONS = /* @__PURE__ */ Object.freeze({
6861
- __proto__: null,
6862
- ARIA_ATTR,
6863
- ATTR_WHITESPACE,
6864
- CUSTOM_ELEMENT,
6865
- DATA_ATTR,
6866
- DOCTYPE_NAME,
6867
- ERB_EXPR,
6868
- IS_ALLOWED_URI,
6869
- IS_SCRIPT_OR_DATA,
6870
- MUSTACHE_EXPR,
6871
- TMPLIT_EXPR
6872
- });
6873
6905
  var NODE_TYPE = {
6874
6906
  element: 1,
6875
6907
  text: 3,
@@ -6924,16 +6956,16 @@ var _createHooksMap = function _createHooksMap() {
6924
6956
  function createDOMPurify() {
6925
6957
  let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal$1();
6926
6958
  const DOMPurify = (root) => createDOMPurify(root);
6927
- DOMPurify.version = "3.4.2";
6959
+ DOMPurify.version = "3.4.3";
6928
6960
  DOMPurify.removed = [];
6929
6961
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
6930
6962
  DOMPurify.isSupported = false;
6931
6963
  return DOMPurify;
6932
6964
  }
6933
- let { document } = window;
6965
+ let document = window.document;
6934
6966
  const originalDocument = document;
6935
6967
  const currentScript = originalDocument.currentScript;
6936
- const { DocumentFragment, HTMLTemplateElement, Node, Element, NodeFilter, NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap, HTMLFormElement, DOMParser, trustedTypes } = window;
6968
+ const DocumentFragment = window.DocumentFragment, HTMLTemplateElement = window.HTMLTemplateElement, Node = window.Node, Element = window.Element, NodeFilter = window.NodeFilter, _window$NamedNodeMap = window.NamedNodeMap, NamedNodeMap = _window$NamedNodeMap === void 0 ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap, HTMLFormElement = window.HTMLFormElement, DOMParser = window.DOMParser, trustedTypes = window.trustedTypes;
6937
6969
  const ElementPrototype = Element.prototype;
6938
6970
  const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
6939
6971
  const remove = lookupGetter(ElementPrototype, "remove");
@@ -6946,15 +6978,15 @@ function createDOMPurify() {
6946
6978
  }
6947
6979
  let trustedTypesPolicy;
6948
6980
  let emptyHTML = "";
6949
- const { implementation, createNodeIterator, createDocumentFragment, getElementsByTagName } = document;
6950
- const { importNode } = originalDocument;
6981
+ const _document = document, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
6982
+ const importNode = originalDocument.importNode;
6951
6983
  let hooks = _createHooksMap();
6952
6984
  /**
6953
6985
  * Expose whether this browser supports running the full DOMPurify.
6954
6986
  */
6955
6987
  DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== void 0;
6956
- const { MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR, DATA_ATTR, ARIA_ATTR, IS_SCRIPT_OR_DATA, ATTR_WHITESPACE, CUSTOM_ELEMENT } = EXPRESSIONS;
6957
- let { IS_ALLOWED_URI: IS_ALLOWED_URI$1 } = EXPRESSIONS;
6988
+ const MUSTACHE_EXPR$1 = MUSTACHE_EXPR, ERB_EXPR$1 = ERB_EXPR, TMPLIT_EXPR$1 = TMPLIT_EXPR, DATA_ATTR$1 = DATA_ATTR, ARIA_ATTR$1 = ARIA_ATTR, IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA, ATTR_WHITESPACE$1 = ATTR_WHITESPACE, CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;
6989
+ let IS_ALLOWED_URI$1 = IS_ALLOWED_URI;
6958
6990
  /**
6959
6991
  * We consider the elements and attributes below to be safe. Ideally
6960
6992
  * don't add any new ones but feel free to remove unwanted ones.
@@ -7447,9 +7479,9 @@ function createDOMPurify() {
7447
7479
  if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
7448
7480
  content = currentNode.textContent;
7449
7481
  arrayForEach([
7450
- MUSTACHE_EXPR,
7451
- ERB_EXPR,
7452
- TMPLIT_EXPR
7482
+ MUSTACHE_EXPR$1,
7483
+ ERB_EXPR$1,
7484
+ TMPLIT_EXPR$1
7453
7485
  ], (expr) => {
7454
7486
  content = stringReplace(content, expr, " ");
7455
7487
  });
@@ -7473,14 +7505,14 @@ function createDOMPurify() {
7473
7505
  if (FORBID_ATTR[lcName]) return false;
7474
7506
  if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document || value in formElement)) return false;
7475
7507
  const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
7476
- if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName));
7477
- else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName));
7508
+ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$1, lcName));
7509
+ else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName));
7478
7510
  else if (!nameIsPermitted || FORBID_ATTR[lcName]) if (_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) || lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value)));
7479
7511
  else return false;
7480
7512
  else if (URI_SAFE_ATTRIBUTES[lcName]);
7481
- else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, "")));
7513
+ else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, "")));
7482
7514
  else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]);
7483
- else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, "")));
7515
+ else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, "")));
7484
7516
  else if (value) return false;
7485
7517
  return true;
7486
7518
  };
@@ -7503,7 +7535,7 @@ function createDOMPurify() {
7503
7535
  * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
7504
7536
  */
7505
7537
  const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
7506
- return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT, tagName);
7538
+ return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
7507
7539
  };
7508
7540
  /**
7509
7541
  * _sanitizeAttributes
@@ -7517,7 +7549,7 @@ function createDOMPurify() {
7517
7549
  */
7518
7550
  const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
7519
7551
  _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
7520
- const { attributes } = currentNode;
7552
+ const attributes = currentNode.attributes;
7521
7553
  if (!attributes || _isClobbered(currentNode)) return;
7522
7554
  const hookEvent = {
7523
7555
  attrName: "",
@@ -7528,7 +7560,8 @@ function createDOMPurify() {
7528
7560
  };
7529
7561
  let l = attributes.length;
7530
7562
  while (l--) {
7531
- const { name, namespaceURI, value: attrValue } = attributes[l];
7563
+ const attr = attributes[l];
7564
+ const name = attr.name, namespaceURI = attr.namespaceURI, attrValue = attr.value;
7532
7565
  const lcName = transformCaseFunc(name);
7533
7566
  const initValue = attrValue;
7534
7567
  let value = name === "value" ? initValue : stringTrim(initValue);
@@ -7560,9 +7593,9 @@ function createDOMPurify() {
7560
7593
  continue;
7561
7594
  }
7562
7595
  if (SAFE_FOR_TEMPLATES) arrayForEach([
7563
- MUSTACHE_EXPR,
7564
- ERB_EXPR,
7565
- TMPLIT_EXPR
7596
+ MUSTACHE_EXPR$1,
7597
+ ERB_EXPR$1,
7598
+ TMPLIT_EXPR$1
7566
7599
  ], (expr) => {
7567
7600
  value = stringReplace(value, expr, " ");
7568
7601
  });
@@ -7608,6 +7641,39 @@ function createDOMPurify() {
7608
7641
  }
7609
7642
  _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
7610
7643
  };
7644
+ /**
7645
+ * _sanitizeAttachedShadowRoots
7646
+ *
7647
+ * Walks `root` and feeds every attached shadow root we encounter into
7648
+ * the existing _sanitizeShadowDOM pipeline. The default node iterator
7649
+ * does not descend into shadow trees, so nodes inside an attached
7650
+ * shadow root would otherwise be skipped entirely.
7651
+ *
7652
+ * Two real input paths put attached shadow roots in front of us:
7653
+ * 1. IN_PLACE on a DOM node that already has shadow roots attached.
7654
+ * 2. DOM-node input where importNode(dirty, true) deep-clones the
7655
+ * shadow root because it was created with `clonable: true`.
7656
+ *
7657
+ * This pass runs once, up front, so the main iteration loop (and the
7658
+ * existing _sanitizeShadowDOM template-content recursion) stay
7659
+ * untouched — string-input paths are not affected.
7660
+ *
7661
+ * @param root the subtree root to walk for attached shadow roots
7662
+ */
7663
+ const _sanitizeAttachedShadowRoots2 = function _sanitizeAttachedShadowRoots(root) {
7664
+ if (root.nodeType === NODE_TYPE.element && root.shadowRoot instanceof DocumentFragment) {
7665
+ const sr = root.shadowRoot;
7666
+ _sanitizeAttachedShadowRoots2(sr);
7667
+ _sanitizeShadowDOM2(sr);
7668
+ }
7669
+ const childNodes = root.childNodes;
7670
+ if (!childNodes) return;
7671
+ const snapshot = [];
7672
+ arrayForEach(childNodes, (child) => {
7673
+ arrayPush(snapshot, child);
7674
+ });
7675
+ for (const child of snapshot) _sanitizeAttachedShadowRoots2(child);
7676
+ };
7611
7677
  DOMPurify.sanitize = function(dirty) {
7612
7678
  let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7613
7679
  let body = null;
@@ -7630,12 +7696,14 @@ function createDOMPurify() {
7630
7696
  const tagName = transformCaseFunc(nn);
7631
7697
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
7632
7698
  }
7699
+ _sanitizeAttachedShadowRoots2(dirty);
7633
7700
  } else if (dirty instanceof Node) {
7634
7701
  body = _initDocument("<!---->");
7635
7702
  importedNode = body.ownerDocument.importNode(dirty, true);
7636
7703
  if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") body = importedNode;
7637
7704
  else if (importedNode.nodeName === "HTML") body = importedNode;
7638
7705
  else body.appendChild(importedNode);
7706
+ _sanitizeAttachedShadowRoots2(importedNode);
7639
7707
  } else {
7640
7708
  if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && dirty.indexOf("<") === -1) return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
7641
7709
  body = _initDocument(dirty);
@@ -7654,9 +7722,9 @@ function createDOMPurify() {
7654
7722
  body.normalize();
7655
7723
  let html = body.innerHTML;
7656
7724
  arrayForEach([
7657
- MUSTACHE_EXPR,
7658
- ERB_EXPR,
7659
- TMPLIT_EXPR
7725
+ MUSTACHE_EXPR$1,
7726
+ ERB_EXPR$1,
7727
+ TMPLIT_EXPR$1
7660
7728
  ], (expr) => {
7661
7729
  html = stringReplace(html, expr, " ");
7662
7730
  });
@@ -7672,9 +7740,9 @@ function createDOMPurify() {
7672
7740
  let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
7673
7741
  if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) serializedHTML = "<!DOCTYPE " + body.ownerDocument.doctype.name + ">\n" + serializedHTML;
7674
7742
  if (SAFE_FOR_TEMPLATES) arrayForEach([
7675
- MUSTACHE_EXPR,
7676
- ERB_EXPR,
7677
- TMPLIT_EXPR
7743
+ MUSTACHE_EXPR$1,
7744
+ ERB_EXPR$1,
7745
+ TMPLIT_EXPR$1
7678
7746
  ], (expr) => {
7679
7747
  serializedHTML = stringReplace(serializedHTML, expr, " ");
7680
7748
  });
@@ -9680,9 +9748,9 @@ var isFile = kindOfTest("File");
9680
9748
  * also have a `name` and `type` attribute to specify filename and content type
9681
9749
  *
9682
9750
  * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
9683
- *
9751
+ *
9684
9752
  * @param {*} value The value to test
9685
- *
9753
+ *
9686
9754
  * @returns {boolean} True if value is a React Native Blob, otherwise false
9687
9755
  */
9688
9756
  var isReactNativeBlob = (value) => {
@@ -9691,9 +9759,9 @@ var isReactNativeBlob = (value) => {
9691
9759
  /**
9692
9760
  * Determine if environment is React Native
9693
9761
  * ReactNative `FormData` has a non-standard `getParts()` method
9694
- *
9762
+ *
9695
9763
  * @param {*} formData The formData to test
9696
- *
9764
+ *
9697
9765
  * @returns {boolean} True if environment is React Native, otherwise false
9698
9766
  */
9699
9767
  var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
@@ -9710,7 +9778,7 @@ var isBlob = kindOfTest("Blob");
9710
9778
  *
9711
9779
  * @param {*} val The value to test
9712
9780
  *
9713
- * @returns {boolean} True if value is a File, otherwise false
9781
+ * @returns {boolean} True if value is a FileList, otherwise false
9714
9782
  */
9715
9783
  var isFileList = kindOfTest("FileList");
9716
9784
  /**
@@ -9846,18 +9914,19 @@ var isContextDefined = (context) => !isUndefined(context) && context !== _global
9846
9914
  *
9847
9915
  * @returns {Object} Result of all merge properties
9848
9916
  */
9849
- function merge() {
9917
+ function merge(...objs) {
9850
9918
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
9851
9919
  const result = {};
9852
9920
  const assignValue = (val, key) => {
9853
9921
  if (key === "__proto__" || key === "constructor" || key === "prototype") return;
9854
9922
  const targetKey = caseless && findKey(result, key) || key;
9855
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) result[targetKey] = merge(result[targetKey], val);
9923
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
9924
+ if (isPlainObject(existing) && isPlainObject(val)) result[targetKey] = merge(existing, val);
9856
9925
  else if (isPlainObject(val)) result[targetKey] = merge({}, val);
9857
9926
  else if (isArray(val)) result[targetKey] = val.slice();
9858
9927
  else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
9859
9928
  };
9860
- for (let i = 0, l = arguments.length; i < l; i++) arguments[i] && forEach(arguments[i], assignValue);
9929
+ for (let i = 0, l = objs.length; i < l; i++) objs[i] && forEach(objs[i], assignValue);
9861
9930
  return result;
9862
9931
  }
9863
9932
  /**
@@ -9874,12 +9943,14 @@ function merge() {
9874
9943
  var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
9875
9944
  forEach(b, (val, key) => {
9876
9945
  if (thisArg && isFunction$1(val)) Object.defineProperty(a, key, {
9946
+ __proto__: null,
9877
9947
  value: bind(val, thisArg),
9878
9948
  writable: true,
9879
9949
  enumerable: true,
9880
9950
  configurable: true
9881
9951
  });
9882
9952
  else Object.defineProperty(a, key, {
9953
+ __proto__: null,
9883
9954
  value: val,
9884
9955
  writable: true,
9885
9956
  enumerable: true,
@@ -9911,12 +9982,16 @@ var stripBOM = (content) => {
9911
9982
  var inherits = (constructor, superConstructor, props, descriptors) => {
9912
9983
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
9913
9984
  Object.defineProperty(constructor.prototype, "constructor", {
9985
+ __proto__: null,
9914
9986
  value: constructor,
9915
9987
  writable: true,
9916
9988
  enumerable: false,
9917
9989
  configurable: true
9918
9990
  });
9919
- Object.defineProperty(constructor, "super", { value: superConstructor.prototype });
9991
+ Object.defineProperty(constructor, "super", {
9992
+ __proto__: null,
9993
+ value: superConstructor.prototype
9994
+ });
9920
9995
  props && Object.assign(constructor.prototype, props);
9921
9996
  };
9922
9997
  /**
@@ -10058,7 +10133,7 @@ var freezeMethods = (obj) => {
10058
10133
  "arguments",
10059
10134
  "caller",
10060
10135
  "callee"
10061
- ].indexOf(name) !== -1) return false;
10136
+ ].includes(name)) return false;
10062
10137
  const value = obj[name];
10063
10138
  if (!isFunction$1(value)) return;
10064
10139
  descriptor.enumerable = false;
@@ -10110,25 +10185,25 @@ function isSpecCompliantForm(thing) {
10110
10185
  * @returns {Object} The JSON-compatible object.
10111
10186
  */
10112
10187
  var toJSONObject = (obj) => {
10113
- const stack = new Array(10);
10114
- const visit = (source, i) => {
10188
+ const visited = /* @__PURE__ */ new WeakSet();
10189
+ const visit = (source) => {
10115
10190
  if (isObject(source)) {
10116
- if (stack.indexOf(source) >= 0) return;
10191
+ if (visited.has(source)) return;
10117
10192
  if (isBuffer(source)) return source;
10118
10193
  if (!("toJSON" in source)) {
10119
- stack[i] = source;
10194
+ visited.add(source);
10120
10195
  const target = isArray(source) ? [] : {};
10121
10196
  forEach(source, (value, key) => {
10122
- const reducedValue = visit(value, i + 1);
10197
+ const reducedValue = visit(value);
10123
10198
  !isUndefined(reducedValue) && (target[key] = reducedValue);
10124
10199
  });
10125
- stack[i] = void 0;
10200
+ visited.delete(source);
10126
10201
  return target;
10127
10202
  }
10128
10203
  }
10129
10204
  return source;
10130
10205
  };
10131
- return visit(obj, 0);
10206
+ return visit(obj);
10132
10207
  };
10133
10208
  /**
10134
10209
  * Determines if a value is an async function.
@@ -10234,181 +10309,513 @@ var utils_default = {
10234
10309
  isIterable
10235
10310
  };
10236
10311
  //#endregion
10237
- //#region node_modules/axios/lib/core/AxiosError.js
10238
- var AxiosError = class AxiosError extends Error {
10239
- static from(error, code, config, request, response, customProps) {
10240
- const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
10241
- axiosError.cause = error;
10242
- axiosError.name = error.name;
10243
- if (error.status != null && axiosError.status == null) axiosError.status = error.status;
10244
- customProps && Object.assign(axiosError, customProps);
10245
- return axiosError;
10246
- }
10247
- /**
10248
- * Create an Error with the specified message, config, error code, request and response.
10249
- *
10250
- * @param {string} message The error message.
10251
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
10252
- * @param {Object} [config] The config.
10253
- * @param {Object} [request] The request.
10254
- * @param {Object} [response] The response.
10255
- *
10256
- * @returns {Error} The created error.
10257
- */
10258
- constructor(message, code, config, request, response) {
10259
- super(message);
10260
- Object.defineProperty(this, "message", {
10261
- value: message,
10262
- enumerable: true,
10263
- writable: true,
10264
- configurable: true
10265
- });
10266
- this.name = "AxiosError";
10267
- this.isAxiosError = true;
10268
- code && (this.code = code);
10269
- config && (this.config = config);
10270
- request && (this.request = request);
10271
- if (response) {
10272
- this.response = response;
10273
- this.status = response.status;
10274
- }
10275
- }
10276
- toJSON() {
10277
- return {
10278
- message: this.message,
10279
- name: this.name,
10280
- description: this.description,
10281
- number: this.number,
10282
- fileName: this.fileName,
10283
- lineNumber: this.lineNumber,
10284
- columnNumber: this.columnNumber,
10285
- stack: this.stack,
10286
- config: utils_default.toJSONObject(this.config),
10287
- code: this.code,
10288
- status: this.status
10289
- };
10290
- }
10291
- };
10292
- AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
10293
- AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
10294
- AxiosError.ECONNABORTED = "ECONNABORTED";
10295
- AxiosError.ETIMEDOUT = "ETIMEDOUT";
10296
- AxiosError.ERR_NETWORK = "ERR_NETWORK";
10297
- AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
10298
- AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
10299
- AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
10300
- AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
10301
- AxiosError.ERR_CANCELED = "ERR_CANCELED";
10302
- AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
10303
- AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
10304
- AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
10305
- //#endregion
10306
- //#region node_modules/axios/lib/helpers/toFormData.js
10307
- /**
10308
- * Determines if the given thing is a array or js object.
10309
- *
10310
- * @param {string} thing - The object or array to be visited.
10311
- *
10312
- * @returns {boolean}
10313
- */
10314
- function isVisitable(thing) {
10315
- return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
10316
- }
10312
+ //#region node_modules/axios/lib/helpers/parseHeaders.js
10313
+ var ignoreDuplicateOf = utils_default.toObjectSet([
10314
+ "age",
10315
+ "authorization",
10316
+ "content-length",
10317
+ "content-type",
10318
+ "etag",
10319
+ "expires",
10320
+ "from",
10321
+ "host",
10322
+ "if-modified-since",
10323
+ "if-unmodified-since",
10324
+ "last-modified",
10325
+ "location",
10326
+ "max-forwards",
10327
+ "proxy-authorization",
10328
+ "referer",
10329
+ "retry-after",
10330
+ "user-agent"
10331
+ ]);
10317
10332
  /**
10318
- * It removes the brackets from the end of a string
10319
- *
10320
- * @param {string} key - The key of the parameter.
10333
+ * Parse headers into an object
10321
10334
  *
10322
- * @returns {string} the key without the brackets.
10323
- */
10324
- function removeBrackets(key) {
10325
- return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
10326
- }
10327
- /**
10328
- * It takes a path, a key, and a boolean, and returns a string
10335
+ * ```
10336
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
10337
+ * Content-Type: application/json
10338
+ * Connection: keep-alive
10339
+ * Transfer-Encoding: chunked
10340
+ * ```
10329
10341
  *
10330
- * @param {string} path - The path to the current key.
10331
- * @param {string} key - The key of the current object being iterated over.
10332
- * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
10342
+ * @param {String} rawHeaders Headers needing to be parsed
10333
10343
  *
10334
- * @returns {string} The path to the current key.
10344
+ * @returns {Object} Headers parsed into an object
10335
10345
  */
10336
- function renderKey(path, key, dots) {
10337
- if (!path) return key;
10338
- return path.concat(key).map(function each(token, i) {
10339
- token = removeBrackets(token);
10340
- return !dots && i ? "[" + token + "]" : token;
10341
- }).join(dots ? "." : "");
10346
+ var parseHeaders_default = (rawHeaders) => {
10347
+ const parsed = {};
10348
+ let key;
10349
+ let val;
10350
+ let i;
10351
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
10352
+ i = line.indexOf(":");
10353
+ key = line.substring(0, i).trim().toLowerCase();
10354
+ val = line.substring(i + 1).trim();
10355
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
10356
+ if (key === "set-cookie") if (parsed[key]) parsed[key].push(val);
10357
+ else parsed[key] = [val];
10358
+ else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
10359
+ });
10360
+ return parsed;
10361
+ };
10362
+ //#endregion
10363
+ //#region node_modules/axios/lib/helpers/sanitizeHeaderValue.js
10364
+ function trimSPorHTAB(str) {
10365
+ let start = 0;
10366
+ let end = str.length;
10367
+ while (start < end) {
10368
+ const code = str.charCodeAt(start);
10369
+ if (code !== 9 && code !== 32) break;
10370
+ start += 1;
10371
+ }
10372
+ while (end > start) {
10373
+ const code = str.charCodeAt(end - 1);
10374
+ if (code !== 9 && code !== 32) break;
10375
+ end -= 1;
10376
+ }
10377
+ return start === 0 && end === str.length ? str : str.slice(start, end);
10342
10378
  }
10343
- /**
10344
- * If the array is an array and none of its elements are visitable, then it's a flat array.
10345
- *
10346
- * @param {Array<any>} arr - The array to check
10347
- *
10348
- * @returns {boolean}
10349
- */
10350
- function isFlatArray(arr) {
10351
- return utils_default.isArray(arr) && !arr.some(isVisitable);
10379
+ var INVALID_UNICODE_HEADER_VALUE_CHARS = /* @__PURE__ */ new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
10380
+ var INVALID_BYTE_STRING_HEADER_VALUE_CHARS = /* @__PURE__ */ new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
10381
+ function sanitizeValue(value, invalidChars) {
10382
+ if (utils_default.isArray(value)) return value.map((item) => sanitizeValue(item, invalidChars));
10383
+ return trimSPorHTAB(String(value).replace(invalidChars, ""));
10352
10384
  }
10353
- var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
10354
- return /^is[A-Z]/.test(prop);
10355
- });
10356
- /**
10357
- * Convert a data object to FormData
10358
- *
10359
- * @param {Object} obj
10360
- * @param {?Object} [formData]
10361
- * @param {?Object} [options]
10362
- * @param {Function} [options.visitor]
10363
- * @param {Boolean} [options.metaTokens = true]
10364
- * @param {Boolean} [options.dots = false]
10365
- * @param {?Boolean} [options.indexes = false]
10366
- *
10367
- * @returns {Object}
10368
- **/
10369
- /**
10370
- * It converts an object into a FormData object
10371
- *
10372
- * @param {Object<any, any>} obj - The object to convert to form data.
10373
- * @param {string} formData - The FormData object to append to.
10374
- * @param {Object<string, any>} options
10375
- *
10376
- * @returns
10377
- */
10378
- function toFormData(obj, formData, options) {
10379
- if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
10380
- formData = formData || new FormData();
10381
- options = utils_default.toFlatObject(options, {
10382
- metaTokens: true,
10383
- dots: false,
10384
- indexes: false
10385
- }, false, function defined(option, source) {
10386
- return !utils_default.isUndefined(source[option]);
10385
+ var sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
10386
+ var sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
10387
+ function toByteStringHeaderObject(headers) {
10388
+ const byteStringHeaders = Object.create(null);
10389
+ utils_default.forEach(headers.toJSON(), (value, header) => {
10390
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
10387
10391
  });
10388
- const metaTokens = options.metaTokens;
10389
- const visitor = options.visitor || defaultVisitor;
10390
- const dots = options.dots;
10391
- const indexes = options.indexes;
10392
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
10393
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
10394
- const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
10395
- if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
10396
- function convertValue(value) {
10397
- if (value === null) return "";
10398
- if (utils_default.isDate(value)) return value.toISOString();
10399
- if (utils_default.isBoolean(value)) return value.toString();
10400
- if (!useBlob && utils_default.isBlob(value)) throw new AxiosError("Blob is not supported. Use a Buffer instead.");
10401
- if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
10402
- return value;
10403
- }
10404
- /**
10405
- * Default visitor.
10406
- *
10407
- * @param {*} value
10408
- * @param {String|Number} key
10409
- * @param {Array<String|Number>} path
10410
- * @this {FormData}
10411
- *
10392
+ return byteStringHeaders;
10393
+ }
10394
+ //#endregion
10395
+ //#region node_modules/axios/lib/core/AxiosHeaders.js
10396
+ var $internals = Symbol("internals");
10397
+ function normalizeHeader(header) {
10398
+ return header && String(header).trim().toLowerCase();
10399
+ }
10400
+ function normalizeValue(value) {
10401
+ if (value === false || value == null) return value;
10402
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
10403
+ }
10404
+ function parseTokens(str) {
10405
+ const tokens = Object.create(null);
10406
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
10407
+ let match;
10408
+ while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
10409
+ return tokens;
10410
+ }
10411
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
10412
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
10413
+ if (utils_default.isFunction(filter)) return filter.call(this, value, header);
10414
+ if (isHeaderNameFilter) value = header;
10415
+ if (!utils_default.isString(value)) return;
10416
+ if (utils_default.isString(filter)) return value.indexOf(filter) !== -1;
10417
+ if (utils_default.isRegExp(filter)) return filter.test(value);
10418
+ }
10419
+ function formatHeader(header) {
10420
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
10421
+ return char.toUpperCase() + str;
10422
+ });
10423
+ }
10424
+ function buildAccessors(obj, header) {
10425
+ const accessorName = utils_default.toCamelCase(" " + header);
10426
+ [
10427
+ "get",
10428
+ "set",
10429
+ "has"
10430
+ ].forEach((methodName) => {
10431
+ Object.defineProperty(obj, methodName + accessorName, {
10432
+ __proto__: null,
10433
+ value: function(arg1, arg2, arg3) {
10434
+ return this[methodName].call(this, header, arg1, arg2, arg3);
10435
+ },
10436
+ configurable: true
10437
+ });
10438
+ });
10439
+ }
10440
+ var AxiosHeaders = class {
10441
+ constructor(headers) {
10442
+ headers && this.set(headers);
10443
+ }
10444
+ set(header, valueOrRewrite, rewrite) {
10445
+ const self = this;
10446
+ function setHeader(_value, _header, _rewrite) {
10447
+ const lHeader = normalizeHeader(_header);
10448
+ if (!lHeader) throw new Error("header name must be a non-empty string");
10449
+ const key = utils_default.findKey(self, lHeader);
10450
+ if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
10451
+ }
10452
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
10453
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
10454
+ else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders_default(header), valueOrRewrite);
10455
+ else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
10456
+ let obj = {}, dest, key;
10457
+ for (const entry of header) {
10458
+ if (!utils_default.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
10459
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
10460
+ }
10461
+ setHeaders(obj, valueOrRewrite);
10462
+ } else header != null && setHeader(valueOrRewrite, header, rewrite);
10463
+ return this;
10464
+ }
10465
+ get(header, parser) {
10466
+ header = normalizeHeader(header);
10467
+ if (header) {
10468
+ const key = utils_default.findKey(this, header);
10469
+ if (key) {
10470
+ const value = this[key];
10471
+ if (!parser) return value;
10472
+ if (parser === true) return parseTokens(value);
10473
+ if (utils_default.isFunction(parser)) return parser.call(this, value, key);
10474
+ if (utils_default.isRegExp(parser)) return parser.exec(value);
10475
+ throw new TypeError("parser must be boolean|regexp|function");
10476
+ }
10477
+ }
10478
+ }
10479
+ has(header, matcher) {
10480
+ header = normalizeHeader(header);
10481
+ if (header) {
10482
+ const key = utils_default.findKey(this, header);
10483
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
10484
+ }
10485
+ return false;
10486
+ }
10487
+ delete(header, matcher) {
10488
+ const self = this;
10489
+ let deleted = false;
10490
+ function deleteHeader(_header) {
10491
+ _header = normalizeHeader(_header);
10492
+ if (_header) {
10493
+ const key = utils_default.findKey(self, _header);
10494
+ if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
10495
+ delete self[key];
10496
+ deleted = true;
10497
+ }
10498
+ }
10499
+ }
10500
+ if (utils_default.isArray(header)) header.forEach(deleteHeader);
10501
+ else deleteHeader(header);
10502
+ return deleted;
10503
+ }
10504
+ clear(matcher) {
10505
+ const keys = Object.keys(this);
10506
+ let i = keys.length;
10507
+ let deleted = false;
10508
+ while (i--) {
10509
+ const key = keys[i];
10510
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
10511
+ delete this[key];
10512
+ deleted = true;
10513
+ }
10514
+ }
10515
+ return deleted;
10516
+ }
10517
+ normalize(format) {
10518
+ const self = this;
10519
+ const headers = {};
10520
+ utils_default.forEach(this, (value, header) => {
10521
+ const key = utils_default.findKey(headers, header);
10522
+ if (key) {
10523
+ self[key] = normalizeValue(value);
10524
+ delete self[header];
10525
+ return;
10526
+ }
10527
+ const normalized = format ? formatHeader(header) : String(header).trim();
10528
+ if (normalized !== header) delete self[header];
10529
+ self[normalized] = normalizeValue(value);
10530
+ headers[normalized] = true;
10531
+ });
10532
+ return this;
10533
+ }
10534
+ concat(...targets) {
10535
+ return this.constructor.concat(this, ...targets);
10536
+ }
10537
+ toJSON(asStrings) {
10538
+ const obj = Object.create(null);
10539
+ utils_default.forEach(this, (value, header) => {
10540
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
10541
+ });
10542
+ return obj;
10543
+ }
10544
+ [Symbol.iterator]() {
10545
+ return Object.entries(this.toJSON())[Symbol.iterator]();
10546
+ }
10547
+ toString() {
10548
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
10549
+ }
10550
+ getSetCookie() {
10551
+ return this.get("set-cookie") || [];
10552
+ }
10553
+ get [Symbol.toStringTag]() {
10554
+ return "AxiosHeaders";
10555
+ }
10556
+ static from(thing) {
10557
+ return thing instanceof this ? thing : new this(thing);
10558
+ }
10559
+ static concat(first, ...targets) {
10560
+ const computed = new this(first);
10561
+ targets.forEach((target) => computed.set(target));
10562
+ return computed;
10563
+ }
10564
+ static accessor(header) {
10565
+ const accessors = (this[$internals] = this[$internals] = { accessors: {} }).accessors;
10566
+ const prototype = this.prototype;
10567
+ function defineAccessor(_header) {
10568
+ const lHeader = normalizeHeader(_header);
10569
+ if (!accessors[lHeader]) {
10570
+ buildAccessors(prototype, _header);
10571
+ accessors[lHeader] = true;
10572
+ }
10573
+ }
10574
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
10575
+ return this;
10576
+ }
10577
+ };
10578
+ AxiosHeaders.accessor([
10579
+ "Content-Type",
10580
+ "Content-Length",
10581
+ "Accept",
10582
+ "Accept-Encoding",
10583
+ "User-Agent",
10584
+ "Authorization"
10585
+ ]);
10586
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
10587
+ let mapped = key[0].toUpperCase() + key.slice(1);
10588
+ return {
10589
+ get: () => value,
10590
+ set(headerValue) {
10591
+ this[mapped] = headerValue;
10592
+ }
10593
+ };
10594
+ });
10595
+ utils_default.freezeMethods(AxiosHeaders);
10596
+ //#endregion
10597
+ //#region node_modules/axios/lib/core/AxiosError.js
10598
+ var REDACTED = "[REDACTED ****]";
10599
+ function hasOwnOrPrototypeToJSON(source) {
10600
+ if (utils_default.hasOwnProp(source, "toJSON")) return true;
10601
+ let prototype = Object.getPrototypeOf(source);
10602
+ while (prototype && prototype !== Object.prototype) {
10603
+ if (utils_default.hasOwnProp(prototype, "toJSON")) return true;
10604
+ prototype = Object.getPrototypeOf(prototype);
10605
+ }
10606
+ return false;
10607
+ }
10608
+ function redactConfig(config, redactKeys) {
10609
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
10610
+ const seen = [];
10611
+ const visit = (source) => {
10612
+ if (source === null || typeof source !== "object") return source;
10613
+ if (utils_default.isBuffer(source)) return source;
10614
+ if (seen.indexOf(source) !== -1) return void 0;
10615
+ if (source instanceof AxiosHeaders) source = source.toJSON();
10616
+ seen.push(source);
10617
+ let result;
10618
+ if (utils_default.isArray(source)) {
10619
+ result = [];
10620
+ source.forEach((v, i) => {
10621
+ const reducedValue = visit(v);
10622
+ if (!utils_default.isUndefined(reducedValue)) result[i] = reducedValue;
10623
+ });
10624
+ } else {
10625
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
10626
+ seen.pop();
10627
+ return source;
10628
+ }
10629
+ result = Object.create(null);
10630
+ for (const [key, value] of Object.entries(source)) {
10631
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
10632
+ if (!utils_default.isUndefined(reducedValue)) result[key] = reducedValue;
10633
+ }
10634
+ }
10635
+ seen.pop();
10636
+ return result;
10637
+ };
10638
+ return visit(config);
10639
+ }
10640
+ var AxiosError = class AxiosError extends Error {
10641
+ static from(error, code, config, request, response, customProps) {
10642
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
10643
+ axiosError.cause = error;
10644
+ axiosError.name = error.name;
10645
+ if (error.status != null && axiosError.status == null) axiosError.status = error.status;
10646
+ customProps && Object.assign(axiosError, customProps);
10647
+ return axiosError;
10648
+ }
10649
+ /**
10650
+ * Create an Error with the specified message, config, error code, request and response.
10651
+ *
10652
+ * @param {string} message The error message.
10653
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
10654
+ * @param {Object} [config] The config.
10655
+ * @param {Object} [request] The request.
10656
+ * @param {Object} [response] The response.
10657
+ *
10658
+ * @returns {Error} The created error.
10659
+ */
10660
+ constructor(message, code, config, request, response) {
10661
+ super(message);
10662
+ Object.defineProperty(this, "message", {
10663
+ __proto__: null,
10664
+ value: message,
10665
+ enumerable: true,
10666
+ writable: true,
10667
+ configurable: true
10668
+ });
10669
+ this.name = "AxiosError";
10670
+ this.isAxiosError = true;
10671
+ code && (this.code = code);
10672
+ config && (this.config = config);
10673
+ request && (this.request = request);
10674
+ if (response) {
10675
+ this.response = response;
10676
+ this.status = response.status;
10677
+ }
10678
+ }
10679
+ toJSON() {
10680
+ const config = this.config;
10681
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
10682
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
10683
+ return {
10684
+ message: this.message,
10685
+ name: this.name,
10686
+ description: this.description,
10687
+ number: this.number,
10688
+ fileName: this.fileName,
10689
+ lineNumber: this.lineNumber,
10690
+ columnNumber: this.columnNumber,
10691
+ stack: this.stack,
10692
+ config: serializedConfig,
10693
+ code: this.code,
10694
+ status: this.status
10695
+ };
10696
+ }
10697
+ };
10698
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
10699
+ AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
10700
+ AxiosError.ECONNABORTED = "ECONNABORTED";
10701
+ AxiosError.ETIMEDOUT = "ETIMEDOUT";
10702
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
10703
+ AxiosError.ERR_NETWORK = "ERR_NETWORK";
10704
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
10705
+ AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
10706
+ AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
10707
+ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
10708
+ AxiosError.ERR_CANCELED = "ERR_CANCELED";
10709
+ AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
10710
+ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
10711
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
10712
+ //#endregion
10713
+ //#region node_modules/axios/lib/helpers/toFormData.js
10714
+ /**
10715
+ * Determines if the given thing is a array or js object.
10716
+ *
10717
+ * @param {string} thing - The object or array to be visited.
10718
+ *
10719
+ * @returns {boolean}
10720
+ */
10721
+ function isVisitable(thing) {
10722
+ return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
10723
+ }
10724
+ /**
10725
+ * It removes the brackets from the end of a string
10726
+ *
10727
+ * @param {string} key - The key of the parameter.
10728
+ *
10729
+ * @returns {string} the key without the brackets.
10730
+ */
10731
+ function removeBrackets(key) {
10732
+ return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
10733
+ }
10734
+ /**
10735
+ * It takes a path, a key, and a boolean, and returns a string
10736
+ *
10737
+ * @param {string} path - The path to the current key.
10738
+ * @param {string} key - The key of the current object being iterated over.
10739
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
10740
+ *
10741
+ * @returns {string} The path to the current key.
10742
+ */
10743
+ function renderKey(path, key, dots) {
10744
+ if (!path) return key;
10745
+ return path.concat(key).map(function each(token, i) {
10746
+ token = removeBrackets(token);
10747
+ return !dots && i ? "[" + token + "]" : token;
10748
+ }).join(dots ? "." : "");
10749
+ }
10750
+ /**
10751
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
10752
+ *
10753
+ * @param {Array<any>} arr - The array to check
10754
+ *
10755
+ * @returns {boolean}
10756
+ */
10757
+ function isFlatArray(arr) {
10758
+ return utils_default.isArray(arr) && !arr.some(isVisitable);
10759
+ }
10760
+ var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
10761
+ return /^is[A-Z]/.test(prop);
10762
+ });
10763
+ /**
10764
+ * Convert a data object to FormData
10765
+ *
10766
+ * @param {Object} obj
10767
+ * @param {?Object} [formData]
10768
+ * @param {?Object} [options]
10769
+ * @param {Function} [options.visitor]
10770
+ * @param {Boolean} [options.metaTokens = true]
10771
+ * @param {Boolean} [options.dots = false]
10772
+ * @param {?Boolean} [options.indexes = false]
10773
+ *
10774
+ * @returns {Object}
10775
+ **/
10776
+ /**
10777
+ * It converts an object into a FormData object
10778
+ *
10779
+ * @param {Object<any, any>} obj - The object to convert to form data.
10780
+ * @param {string} formData - The FormData object to append to.
10781
+ * @param {Object<string, any>} options
10782
+ *
10783
+ * @returns
10784
+ */
10785
+ function toFormData(obj, formData, options) {
10786
+ if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
10787
+ formData = formData || new FormData();
10788
+ options = utils_default.toFlatObject(options, {
10789
+ metaTokens: true,
10790
+ dots: false,
10791
+ indexes: false
10792
+ }, false, function defined(option, source) {
10793
+ return !utils_default.isUndefined(source[option]);
10794
+ });
10795
+ const metaTokens = options.metaTokens;
10796
+ const visitor = options.visitor || defaultVisitor;
10797
+ const dots = options.dots;
10798
+ const indexes = options.indexes;
10799
+ const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
10800
+ const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
10801
+ const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
10802
+ if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
10803
+ function convertValue(value) {
10804
+ if (value === null) return "";
10805
+ if (utils_default.isDate(value)) return value.toISOString();
10806
+ if (utils_default.isBoolean(value)) return value.toString();
10807
+ if (!useBlob && utils_default.isBlob(value)) throw new AxiosError("Blob is not supported. Use a Buffer instead.");
10808
+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
10809
+ return value;
10810
+ }
10811
+ /**
10812
+ * Default visitor.
10813
+ *
10814
+ * @param {*} value
10815
+ * @param {String|Number} key
10816
+ * @param {Array<String|Number>} path
10817
+ * @this {FormData}
10818
+ *
10412
10819
  * @returns {boolean} return true to visit the each prop of the value recursively
10413
10820
  */
10414
10821
  function defaultVisitor(value, key, path) {
@@ -10488,646 +10895,376 @@ function AxiosURLSearchParams(params, options) {
10488
10895
  this._pairs = [];
10489
10896
  params && toFormData(params, this, options);
10490
10897
  }
10491
- var prototype = AxiosURLSearchParams.prototype;
10492
- prototype.append = function append(name, value) {
10493
- this._pairs.push([name, value]);
10494
- };
10495
- prototype.toString = function toString(encoder) {
10496
- const _encode = encoder ? function(value) {
10497
- return encoder.call(this, value, encode$1);
10498
- } : encode$1;
10499
- return this._pairs.map(function each(pair) {
10500
- return _encode(pair[0]) + "=" + _encode(pair[1]);
10501
- }, "").join("&");
10502
- };
10503
- //#endregion
10504
- //#region node_modules/axios/lib/helpers/buildURL.js
10505
- /**
10506
- * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
10507
- * their plain counterparts (`:`, `$`, `,`, `+`).
10508
- *
10509
- * @param {string} val The value to be encoded.
10510
- *
10511
- * @returns {string} The encoded value.
10512
- */
10513
- function encode(val) {
10514
- return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
10515
- }
10516
- /**
10517
- * Build a URL by appending params to the end
10518
- *
10519
- * @param {string} url The base of the url (e.g., http://www.google.com)
10520
- * @param {object} [params] The params to be appended
10521
- * @param {?(object|Function)} options
10522
- *
10523
- * @returns {string} The formatted url
10524
- */
10525
- function buildURL(url, params, options) {
10526
- if (!params) return url;
10527
- const _encode = options && options.encode || encode;
10528
- const _options = utils_default.isFunction(options) ? { serialize: options } : options;
10529
- const serializeFn = _options && _options.serialize;
10530
- let serializedParams;
10531
- if (serializeFn) serializedParams = serializeFn(params, _options);
10532
- else serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
10533
- if (serializedParams) {
10534
- const hashmarkIndex = url.indexOf("#");
10535
- if (hashmarkIndex !== -1) url = url.slice(0, hashmarkIndex);
10536
- url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
10537
- }
10538
- return url;
10539
- }
10540
- //#endregion
10541
- //#region node_modules/axios/lib/core/InterceptorManager.js
10542
- var InterceptorManager = class {
10543
- constructor() {
10544
- this.handlers = [];
10545
- }
10546
- /**
10547
- * Add a new interceptor to the stack
10548
- *
10549
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
10550
- * @param {Function} rejected The function to handle `reject` for a `Promise`
10551
- * @param {Object} options The options for the interceptor, synchronous and runWhen
10552
- *
10553
- * @return {Number} An ID used to remove interceptor later
10554
- */
10555
- use(fulfilled, rejected, options) {
10556
- this.handlers.push({
10557
- fulfilled,
10558
- rejected,
10559
- synchronous: options ? options.synchronous : false,
10560
- runWhen: options ? options.runWhen : null
10561
- });
10562
- return this.handlers.length - 1;
10563
- }
10564
- /**
10565
- * Remove an interceptor from the stack
10566
- *
10567
- * @param {Number} id The ID that was returned by `use`
10568
- *
10569
- * @returns {void}
10570
- */
10571
- eject(id) {
10572
- if (this.handlers[id]) this.handlers[id] = null;
10573
- }
10574
- /**
10575
- * Clear all interceptors from the stack
10576
- *
10577
- * @returns {void}
10578
- */
10579
- clear() {
10580
- if (this.handlers) this.handlers = [];
10581
- }
10582
- /**
10583
- * Iterate over all the registered interceptors
10584
- *
10585
- * This method is particularly useful for skipping over any
10586
- * interceptors that may have become `null` calling `eject`.
10587
- *
10588
- * @param {Function} fn The function to call for each interceptor
10589
- *
10590
- * @returns {void}
10591
- */
10592
- forEach(fn) {
10593
- utils_default.forEach(this.handlers, function forEachHandler(h) {
10594
- if (h !== null) fn(h);
10595
- });
10596
- }
10597
- };
10598
- //#endregion
10599
- //#region node_modules/axios/lib/defaults/transitional.js
10600
- var transitional_default = {
10601
- silentJSONParsing: true,
10602
- forcedJSONParsing: true,
10603
- clarifyTimeoutError: false,
10604
- legacyInterceptorReqResOrdering: true
10605
- };
10606
- //#endregion
10607
- //#region node_modules/axios/lib/platform/browser/index.js
10608
- var browser_default = {
10609
- isBrowser: true,
10610
- classes: {
10611
- URLSearchParams: typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams,
10612
- FormData: typeof FormData !== "undefined" ? FormData : null,
10613
- Blob: typeof Blob !== "undefined" ? Blob : null
10614
- },
10615
- protocols: [
10616
- "http",
10617
- "https",
10618
- "file",
10619
- "blob",
10620
- "url",
10621
- "data"
10622
- ]
10623
- };
10624
- //#endregion
10625
- //#region node_modules/axios/lib/platform/common/utils.js
10626
- var utils_exports = /* @__PURE__ */ __exportAll({
10627
- hasBrowserEnv: () => hasBrowserEnv,
10628
- hasStandardBrowserEnv: () => hasStandardBrowserEnv,
10629
- hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
10630
- navigator: () => _navigator,
10631
- origin: () => origin
10632
- });
10633
- var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
10634
- var _navigator = typeof navigator === "object" && navigator || void 0;
10635
- /**
10636
- * Determine if we're running in a standard browser environment
10637
- *
10638
- * This allows axios to run in a web worker, and react-native.
10639
- * Both environments support XMLHttpRequest, but not fully standard globals.
10640
- *
10641
- * web workers:
10642
- * typeof window -> undefined
10643
- * typeof document -> undefined
10644
- *
10645
- * react-native:
10646
- * navigator.product -> 'ReactNative'
10647
- * nativescript
10648
- * navigator.product -> 'NativeScript' or 'NS'
10649
- *
10650
- * @returns {boolean}
10651
- */
10652
- var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
10653
- "ReactNative",
10654
- "NativeScript",
10655
- "NS"
10656
- ].indexOf(_navigator.product) < 0);
10657
- /**
10658
- * Determine if we're running in a standard browser webWorker environment
10659
- *
10660
- * Although the `isStandardBrowserEnv` method indicates that
10661
- * `allows axios to run in a web worker`, the WebWorker will still be
10662
- * filtered out due to its judgment standard
10663
- * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
10664
- * This leads to a problem when axios post `FormData` in webWorker
10665
- */
10666
- var hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
10667
- var origin = hasBrowserEnv && window.location.href || "http://localhost";
10668
- //#endregion
10669
- //#region node_modules/axios/lib/platform/index.js
10670
- var platform_default = {
10671
- ...utils_exports,
10672
- ...browser_default
10673
- };
10674
- //#endregion
10675
- //#region node_modules/axios/lib/helpers/toURLEncodedForm.js
10676
- function toURLEncodedForm(data, options) {
10677
- return toFormData(data, new platform_default.classes.URLSearchParams(), {
10678
- visitor: function(value, key, path, helpers) {
10679
- if (platform_default.isNode && utils_default.isBuffer(value)) {
10680
- this.append(key, value.toString("base64"));
10681
- return false;
10682
- }
10683
- return helpers.defaultVisitor.apply(this, arguments);
10684
- },
10685
- ...options
10686
- });
10687
- }
10688
- //#endregion
10689
- //#region node_modules/axios/lib/helpers/formDataToJSON.js
10690
- /**
10691
- * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
10692
- *
10693
- * @param {string} name - The name of the property to get.
10694
- *
10695
- * @returns An array of strings.
10696
- */
10697
- function parsePropPath(name) {
10698
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
10699
- return match[0] === "[]" ? "" : match[1] || match[0];
10700
- });
10701
- }
10702
- /**
10703
- * Convert an array to an object.
10704
- *
10705
- * @param {Array<any>} arr - The array to convert to an object.
10706
- *
10707
- * @returns An object with the same keys and values as the array.
10708
- */
10709
- function arrayToObject(arr) {
10710
- const obj = {};
10711
- const keys = Object.keys(arr);
10712
- let i;
10713
- const len = keys.length;
10714
- let key;
10715
- for (i = 0; i < len; i++) {
10716
- key = keys[i];
10717
- obj[key] = arr[key];
10718
- }
10719
- return obj;
10720
- }
10898
+ var prototype = AxiosURLSearchParams.prototype;
10899
+ prototype.append = function append(name, value) {
10900
+ this._pairs.push([name, value]);
10901
+ };
10902
+ prototype.toString = function toString(encoder) {
10903
+ const _encode = encoder ? function(value) {
10904
+ return encoder.call(this, value, encode$1);
10905
+ } : encode$1;
10906
+ return this._pairs.map(function each(pair) {
10907
+ return _encode(pair[0]) + "=" + _encode(pair[1]);
10908
+ }, "").join("&");
10909
+ };
10910
+ //#endregion
10911
+ //#region node_modules/axios/lib/helpers/buildURL.js
10721
10912
  /**
10722
- * It takes a FormData object and returns a JavaScript object
10913
+ * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
10914
+ * their plain counterparts (`:`, `$`, `,`, `+`).
10723
10915
  *
10724
- * @param {string} formData The FormData object to convert to JSON.
10916
+ * @param {string} val The value to be encoded.
10725
10917
  *
10726
- * @returns {Object<string, any> | null} The converted object.
10918
+ * @returns {string} The encoded value.
10727
10919
  */
10728
- function formDataToJSON(formData) {
10729
- function buildPath(path, value, target, index) {
10730
- let name = path[index++];
10731
- if (name === "__proto__") return true;
10732
- const isNumericKey = Number.isFinite(+name);
10733
- const isLast = index >= path.length;
10734
- name = !name && utils_default.isArray(target) ? target.length : name;
10735
- if (isLast) {
10736
- if (utils_default.hasOwnProp(target, name)) target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
10737
- else target[name] = value;
10738
- return !isNumericKey;
10739
- }
10740
- if (!target[name] || !utils_default.isObject(target[name])) target[name] = [];
10741
- if (buildPath(path, value, target[name], index) && utils_default.isArray(target[name])) target[name] = arrayToObject(target[name]);
10742
- return !isNumericKey;
10743
- }
10744
- if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
10745
- const obj = {};
10746
- utils_default.forEachEntry(formData, (name, value) => {
10747
- buildPath(parsePropPath(name), value, obj, 0);
10748
- });
10749
- return obj;
10750
- }
10751
- return null;
10920
+ function encode(val) {
10921
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
10752
10922
  }
10753
- //#endregion
10754
- //#region node_modules/axios/lib/defaults/index.js
10755
- var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
10756
10923
  /**
10757
- * It takes a string, tries to parse it, and if it fails, it returns the stringified version
10758
- * of the input
10924
+ * Build a URL by appending params to the end
10759
10925
  *
10760
- * @param {any} rawValue - The value to be stringified.
10761
- * @param {Function} parser - A function that parses a string into a JavaScript object.
10762
- * @param {Function} encoder - A function that takes a value and returns a string.
10926
+ * @param {string} url The base of the url (e.g., http://www.google.com)
10927
+ * @param {object} [params] The params to be appended
10928
+ * @param {?(object|Function)} options
10763
10929
  *
10764
- * @returns {string} A stringified version of the rawValue.
10930
+ * @returns {string} The formatted url
10765
10931
  */
10766
- function stringifySafely(rawValue, parser, encoder) {
10767
- if (utils_default.isString(rawValue)) try {
10768
- (parser || JSON.parse)(rawValue);
10769
- return utils_default.trim(rawValue);
10770
- } catch (e) {
10771
- if (e.name !== "SyntaxError") throw e;
10932
+ function buildURL(url, params, options) {
10933
+ if (!params) return url;
10934
+ const _encode = options && options.encode || encode;
10935
+ const _options = utils_default.isFunction(options) ? { serialize: options } : options;
10936
+ const serializeFn = _options && _options.serialize;
10937
+ let serializedParams;
10938
+ if (serializeFn) serializedParams = serializeFn(params, _options);
10939
+ else serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
10940
+ if (serializedParams) {
10941
+ const hashmarkIndex = url.indexOf("#");
10942
+ if (hashmarkIndex !== -1) url = url.slice(0, hashmarkIndex);
10943
+ url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
10772
10944
  }
10773
- return (encoder || JSON.stringify)(rawValue);
10945
+ return url;
10774
10946
  }
10775
- var defaults = {
10776
- transitional: transitional_default,
10777
- adapter: [
10778
- "xhr",
10779
- "http",
10780
- "fetch"
10781
- ],
10782
- transformRequest: [function transformRequest(data, headers) {
10783
- const contentType = headers.getContentType() || "";
10784
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
10785
- const isObjectPayload = utils_default.isObject(data);
10786
- if (isObjectPayload && utils_default.isHTMLForm(data)) data = new FormData(data);
10787
- if (utils_default.isFormData(data)) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
10788
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) return data;
10789
- if (utils_default.isArrayBufferView(data)) return data.buffer;
10790
- if (utils_default.isURLSearchParams(data)) {
10791
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
10792
- return data.toString();
10793
- }
10794
- let isFileList;
10795
- if (isObjectPayload) {
10796
- const formSerializer = own(this, "formSerializer");
10797
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, formSerializer).toString();
10798
- if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
10799
- const env = own(this, "env");
10800
- const _FormData = env && env.FormData;
10801
- return toFormData(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), formSerializer);
10802
- }
10803
- }
10804
- if (isObjectPayload || hasJSONContentType) {
10805
- headers.setContentType("application/json", false);
10806
- return stringifySafely(data);
10807
- }
10808
- return data;
10809
- }],
10810
- transformResponse: [function transformResponse(data) {
10811
- const transitional = own(this, "transitional") || defaults.transitional;
10812
- const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
10813
- const responseType = own(this, "responseType");
10814
- const JSONRequested = responseType === "json";
10815
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) return data;
10816
- if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
10817
- const strictJSONParsing = !(transitional && transitional.silentJSONParsing) && JSONRequested;
10818
- try {
10819
- return JSON.parse(data, own(this, "parseReviver"));
10820
- } catch (e) {
10821
- if (strictJSONParsing) {
10822
- if (e.name === "SyntaxError") throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, "response"));
10823
- throw e;
10824
- }
10825
- }
10826
- }
10827
- return data;
10828
- }],
10947
+ //#endregion
10948
+ //#region node_modules/axios/lib/core/InterceptorManager.js
10949
+ var InterceptorManager = class {
10950
+ constructor() {
10951
+ this.handlers = [];
10952
+ }
10829
10953
  /**
10830
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
10831
- * timeout is not created.
10954
+ * Add a new interceptor to the stack
10955
+ *
10956
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
10957
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
10958
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
10959
+ *
10960
+ * @return {Number} An ID used to remove interceptor later
10832
10961
  */
10833
- timeout: 0,
10834
- xsrfCookieName: "XSRF-TOKEN",
10835
- xsrfHeaderName: "X-XSRF-TOKEN",
10836
- maxContentLength: -1,
10837
- maxBodyLength: -1,
10838
- env: {
10839
- FormData: platform_default.classes.FormData,
10840
- Blob: platform_default.classes.Blob
10841
- },
10842
- validateStatus: function validateStatus(status) {
10843
- return status >= 200 && status < 300;
10844
- },
10845
- headers: { common: {
10846
- Accept: "application/json, text/plain, */*",
10847
- "Content-Type": void 0
10848
- } }
10962
+ use(fulfilled, rejected, options) {
10963
+ this.handlers.push({
10964
+ fulfilled,
10965
+ rejected,
10966
+ synchronous: options ? options.synchronous : false,
10967
+ runWhen: options ? options.runWhen : null
10968
+ });
10969
+ return this.handlers.length - 1;
10970
+ }
10971
+ /**
10972
+ * Remove an interceptor from the stack
10973
+ *
10974
+ * @param {Number} id The ID that was returned by `use`
10975
+ *
10976
+ * @returns {void}
10977
+ */
10978
+ eject(id) {
10979
+ if (this.handlers[id]) this.handlers[id] = null;
10980
+ }
10981
+ /**
10982
+ * Clear all interceptors from the stack
10983
+ *
10984
+ * @returns {void}
10985
+ */
10986
+ clear() {
10987
+ if (this.handlers) this.handlers = [];
10988
+ }
10989
+ /**
10990
+ * Iterate over all the registered interceptors
10991
+ *
10992
+ * This method is particularly useful for skipping over any
10993
+ * interceptors that may have become `null` calling `eject`.
10994
+ *
10995
+ * @param {Function} fn The function to call for each interceptor
10996
+ *
10997
+ * @returns {void}
10998
+ */
10999
+ forEach(fn) {
11000
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
11001
+ if (h !== null) fn(h);
11002
+ });
11003
+ }
10849
11004
  };
10850
- utils_default.forEach([
10851
- "delete",
10852
- "get",
10853
- "head",
10854
- "post",
10855
- "put",
10856
- "patch"
10857
- ], (method) => {
10858
- defaults.headers[method] = {};
10859
- });
10860
11005
  //#endregion
10861
- //#region node_modules/axios/lib/helpers/parseHeaders.js
10862
- var ignoreDuplicateOf = utils_default.toObjectSet([
10863
- "age",
10864
- "authorization",
10865
- "content-length",
10866
- "content-type",
10867
- "etag",
10868
- "expires",
10869
- "from",
10870
- "host",
10871
- "if-modified-since",
10872
- "if-unmodified-since",
10873
- "last-modified",
10874
- "location",
10875
- "max-forwards",
10876
- "proxy-authorization",
10877
- "referer",
10878
- "retry-after",
10879
- "user-agent"
10880
- ]);
11006
+ //#region node_modules/axios/lib/defaults/transitional.js
11007
+ var transitional_default = {
11008
+ silentJSONParsing: true,
11009
+ forcedJSONParsing: true,
11010
+ clarifyTimeoutError: false,
11011
+ legacyInterceptorReqResOrdering: true
11012
+ };
11013
+ //#endregion
11014
+ //#region node_modules/axios/lib/platform/browser/index.js
11015
+ var browser_default = {
11016
+ isBrowser: true,
11017
+ classes: {
11018
+ URLSearchParams: typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams,
11019
+ FormData: typeof FormData !== "undefined" ? FormData : null,
11020
+ Blob: typeof Blob !== "undefined" ? Blob : null
11021
+ },
11022
+ protocols: [
11023
+ "http",
11024
+ "https",
11025
+ "file",
11026
+ "blob",
11027
+ "url",
11028
+ "data"
11029
+ ]
11030
+ };
11031
+ //#endregion
11032
+ //#region node_modules/axios/lib/platform/common/utils.js
11033
+ var utils_exports = /* @__PURE__ */ __exportAll({
11034
+ hasBrowserEnv: () => hasBrowserEnv,
11035
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
11036
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
11037
+ navigator: () => _navigator,
11038
+ origin: () => origin
11039
+ });
11040
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
11041
+ var _navigator = typeof navigator === "object" && navigator || void 0;
10881
11042
  /**
10882
- * Parse headers into an object
11043
+ * Determine if we're running in a standard browser environment
10883
11044
  *
10884
- * ```
10885
- * Date: Wed, 27 Aug 2014 08:58:49 GMT
10886
- * Content-Type: application/json
10887
- * Connection: keep-alive
10888
- * Transfer-Encoding: chunked
10889
- * ```
11045
+ * This allows axios to run in a web worker, and react-native.
11046
+ * Both environments support XMLHttpRequest, but not fully standard globals.
10890
11047
  *
10891
- * @param {String} rawHeaders Headers needing to be parsed
11048
+ * web workers:
11049
+ * typeof window -> undefined
11050
+ * typeof document -> undefined
10892
11051
  *
10893
- * @returns {Object} Headers parsed into an object
11052
+ * react-native:
11053
+ * navigator.product -> 'ReactNative'
11054
+ * nativescript
11055
+ * navigator.product -> 'NativeScript' or 'NS'
11056
+ *
11057
+ * @returns {boolean}
10894
11058
  */
10895
- var parseHeaders_default = (rawHeaders) => {
10896
- const parsed = {};
10897
- let key;
10898
- let val;
10899
- let i;
10900
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
10901
- i = line.indexOf(":");
10902
- key = line.substring(0, i).trim().toLowerCase();
10903
- val = line.substring(i + 1).trim();
10904
- if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
10905
- if (key === "set-cookie") if (parsed[key]) parsed[key].push(val);
10906
- else parsed[key] = [val];
10907
- else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
10908
- });
10909
- return parsed;
11059
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
11060
+ "ReactNative",
11061
+ "NativeScript",
11062
+ "NS"
11063
+ ].indexOf(_navigator.product) < 0);
11064
+ /**
11065
+ * Determine if we're running in a standard browser webWorker environment
11066
+ *
11067
+ * Although the `isStandardBrowserEnv` method indicates that
11068
+ * `allows axios to run in a web worker`, the WebWorker will still be
11069
+ * filtered out due to its judgment standard
11070
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
11071
+ * This leads to a problem when axios post `FormData` in webWorker
11072
+ */
11073
+ var hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
11074
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
11075
+ //#endregion
11076
+ //#region node_modules/axios/lib/platform/index.js
11077
+ var platform_default = {
11078
+ ...utils_exports,
11079
+ ...browser_default
10910
11080
  };
10911
11081
  //#endregion
10912
- //#region node_modules/axios/lib/core/AxiosHeaders.js
10913
- var $internals = Symbol("internals");
10914
- var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
10915
- function trimSPorHTAB(str) {
10916
- let start = 0;
10917
- let end = str.length;
10918
- while (start < end) {
10919
- const code = str.charCodeAt(start);
10920
- if (code !== 9 && code !== 32) break;
10921
- start += 1;
10922
- }
10923
- while (end > start) {
10924
- const code = str.charCodeAt(end - 1);
10925
- if (code !== 9 && code !== 32) break;
10926
- end -= 1;
10927
- }
10928
- return start === 0 && end === str.length ? str : str.slice(start, end);
10929
- }
10930
- function normalizeHeader(header) {
10931
- return header && String(header).trim().toLowerCase();
10932
- }
10933
- function sanitizeHeaderValue(str) {
10934
- return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
10935
- }
10936
- function normalizeValue(value) {
10937
- if (value === false || value == null) return value;
10938
- return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
10939
- }
10940
- function parseTokens(str) {
10941
- const tokens = Object.create(null);
10942
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
10943
- let match;
10944
- while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
10945
- return tokens;
10946
- }
10947
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
10948
- function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
10949
- if (utils_default.isFunction(filter)) return filter.call(this, value, header);
10950
- if (isHeaderNameFilter) value = header;
10951
- if (!utils_default.isString(value)) return;
10952
- if (utils_default.isString(filter)) return value.indexOf(filter) !== -1;
10953
- if (utils_default.isRegExp(filter)) return filter.test(value);
10954
- }
10955
- function formatHeader(header) {
10956
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
10957
- return char.toUpperCase() + str;
11082
+ //#region node_modules/axios/lib/helpers/toURLEncodedForm.js
11083
+ function toURLEncodedForm(data, options) {
11084
+ return toFormData(data, new platform_default.classes.URLSearchParams(), {
11085
+ visitor: function(value, key, path, helpers) {
11086
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
11087
+ this.append(key, value.toString("base64"));
11088
+ return false;
11089
+ }
11090
+ return helpers.defaultVisitor.apply(this, arguments);
11091
+ },
11092
+ ...options
10958
11093
  });
10959
11094
  }
10960
- function buildAccessors(obj, header) {
10961
- const accessorName = utils_default.toCamelCase(" " + header);
10962
- [
10963
- "get",
10964
- "set",
10965
- "has"
10966
- ].forEach((methodName) => {
10967
- Object.defineProperty(obj, methodName + accessorName, {
10968
- value: function(arg1, arg2, arg3) {
10969
- return this[methodName].call(this, header, arg1, arg2, arg3);
10970
- },
10971
- configurable: true
10972
- });
11095
+ //#endregion
11096
+ //#region node_modules/axios/lib/helpers/formDataToJSON.js
11097
+ /**
11098
+ * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
11099
+ *
11100
+ * @param {string} name - The name of the property to get.
11101
+ *
11102
+ * @returns An array of strings.
11103
+ */
11104
+ function parsePropPath(name) {
11105
+ return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
11106
+ return match[0] === "[]" ? "" : match[1] || match[0];
10973
11107
  });
10974
11108
  }
10975
- var AxiosHeaders = class {
10976
- constructor(headers) {
10977
- headers && this.set(headers);
10978
- }
10979
- set(header, valueOrRewrite, rewrite) {
10980
- const self = this;
10981
- function setHeader(_value, _header, _rewrite) {
10982
- const lHeader = normalizeHeader(_header);
10983
- if (!lHeader) throw new Error("header name must be a non-empty string");
10984
- const key = utils_default.findKey(self, lHeader);
10985
- if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
10986
- }
10987
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
10988
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
10989
- else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders_default(header), valueOrRewrite);
10990
- else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
10991
- let obj = {}, dest, key;
10992
- for (const entry of header) {
10993
- if (!utils_default.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
10994
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
10995
- }
10996
- setHeaders(obj, valueOrRewrite);
10997
- } else header != null && setHeader(valueOrRewrite, header, rewrite);
10998
- return this;
10999
- }
11000
- get(header, parser) {
11001
- header = normalizeHeader(header);
11002
- if (header) {
11003
- const key = utils_default.findKey(this, header);
11004
- if (key) {
11005
- const value = this[key];
11006
- if (!parser) return value;
11007
- if (parser === true) return parseTokens(value);
11008
- if (utils_default.isFunction(parser)) return parser.call(this, value, key);
11009
- if (utils_default.isRegExp(parser)) return parser.exec(value);
11010
- throw new TypeError("parser must be boolean|regexp|function");
11011
- }
11012
- }
11013
- }
11014
- has(header, matcher) {
11015
- header = normalizeHeader(header);
11016
- if (header) {
11017
- const key = utils_default.findKey(this, header);
11018
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
11019
- }
11020
- return false;
11021
- }
11022
- delete(header, matcher) {
11023
- const self = this;
11024
- let deleted = false;
11025
- function deleteHeader(_header) {
11026
- _header = normalizeHeader(_header);
11027
- if (_header) {
11028
- const key = utils_default.findKey(self, _header);
11029
- if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
11030
- delete self[key];
11031
- deleted = true;
11032
- }
11033
- }
11034
- }
11035
- if (utils_default.isArray(header)) header.forEach(deleteHeader);
11036
- else deleteHeader(header);
11037
- return deleted;
11038
- }
11039
- clear(matcher) {
11040
- const keys = Object.keys(this);
11041
- let i = keys.length;
11042
- let deleted = false;
11043
- while (i--) {
11044
- const key = keys[i];
11045
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
11046
- delete this[key];
11047
- deleted = true;
11048
- }
11049
- }
11050
- return deleted;
11051
- }
11052
- normalize(format) {
11053
- const self = this;
11054
- const headers = {};
11055
- utils_default.forEach(this, (value, header) => {
11056
- const key = utils_default.findKey(headers, header);
11057
- if (key) {
11058
- self[key] = normalizeValue(value);
11059
- delete self[header];
11060
- return;
11061
- }
11062
- const normalized = format ? formatHeader(header) : String(header).trim();
11063
- if (normalized !== header) delete self[header];
11064
- self[normalized] = normalizeValue(value);
11065
- headers[normalized] = true;
11066
- });
11067
- return this;
11109
+ /**
11110
+ * Convert an array to an object.
11111
+ *
11112
+ * @param {Array<any>} arr - The array to convert to an object.
11113
+ *
11114
+ * @returns An object with the same keys and values as the array.
11115
+ */
11116
+ function arrayToObject(arr) {
11117
+ const obj = {};
11118
+ const keys = Object.keys(arr);
11119
+ let i;
11120
+ const len = keys.length;
11121
+ let key;
11122
+ for (i = 0; i < len; i++) {
11123
+ key = keys[i];
11124
+ obj[key] = arr[key];
11068
11125
  }
11069
- concat(...targets) {
11070
- return this.constructor.concat(this, ...targets);
11126
+ return obj;
11127
+ }
11128
+ /**
11129
+ * It takes a FormData object and returns a JavaScript object
11130
+ *
11131
+ * @param {string} formData The FormData object to convert to JSON.
11132
+ *
11133
+ * @returns {Object<string, any> | null} The converted object.
11134
+ */
11135
+ function formDataToJSON(formData) {
11136
+ function buildPath(path, value, target, index) {
11137
+ let name = path[index++];
11138
+ if (name === "__proto__") return true;
11139
+ const isNumericKey = Number.isFinite(+name);
11140
+ const isLast = index >= path.length;
11141
+ name = !name && utils_default.isArray(target) ? target.length : name;
11142
+ if (isLast) {
11143
+ if (utils_default.hasOwnProp(target, name)) target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
11144
+ else target[name] = value;
11145
+ return !isNumericKey;
11146
+ }
11147
+ if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) target[name] = [];
11148
+ if (buildPath(path, value, target[name], index) && utils_default.isArray(target[name])) target[name] = arrayToObject(target[name]);
11149
+ return !isNumericKey;
11071
11150
  }
11072
- toJSON(asStrings) {
11073
- const obj = Object.create(null);
11074
- utils_default.forEach(this, (value, header) => {
11075
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
11151
+ if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
11152
+ const obj = {};
11153
+ utils_default.forEachEntry(formData, (name, value) => {
11154
+ buildPath(parsePropPath(name), value, obj, 0);
11076
11155
  });
11077
11156
  return obj;
11078
11157
  }
11079
- [Symbol.iterator]() {
11080
- return Object.entries(this.toJSON())[Symbol.iterator]();
11081
- }
11082
- toString() {
11083
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
11084
- }
11085
- getSetCookie() {
11086
- return this.get("set-cookie") || [];
11087
- }
11088
- get [Symbol.toStringTag]() {
11089
- return "AxiosHeaders";
11090
- }
11091
- static from(thing) {
11092
- return thing instanceof this ? thing : new this(thing);
11093
- }
11094
- static concat(first, ...targets) {
11095
- const computed = new this(first);
11096
- targets.forEach((target) => computed.set(target));
11097
- return computed;
11158
+ return null;
11159
+ }
11160
+ //#endregion
11161
+ //#region node_modules/axios/lib/defaults/index.js
11162
+ var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
11163
+ /**
11164
+ * It takes a string, tries to parse it, and if it fails, it returns the stringified version
11165
+ * of the input
11166
+ *
11167
+ * @param {any} rawValue - The value to be stringified.
11168
+ * @param {Function} parser - A function that parses a string into a JavaScript object.
11169
+ * @param {Function} encoder - A function that takes a value and returns a string.
11170
+ *
11171
+ * @returns {string} A stringified version of the rawValue.
11172
+ */
11173
+ function stringifySafely(rawValue, parser, encoder) {
11174
+ if (utils_default.isString(rawValue)) try {
11175
+ (parser || JSON.parse)(rawValue);
11176
+ return utils_default.trim(rawValue);
11177
+ } catch (e) {
11178
+ if (e.name !== "SyntaxError") throw e;
11098
11179
  }
11099
- static accessor(header) {
11100
- const accessors = (this[$internals] = this[$internals] = { accessors: {} }).accessors;
11101
- const prototype = this.prototype;
11102
- function defineAccessor(_header) {
11103
- const lHeader = normalizeHeader(_header);
11104
- if (!accessors[lHeader]) {
11105
- buildAccessors(prototype, _header);
11106
- accessors[lHeader] = true;
11180
+ return (encoder || JSON.stringify)(rawValue);
11181
+ }
11182
+ var defaults = {
11183
+ transitional: transitional_default,
11184
+ adapter: [
11185
+ "xhr",
11186
+ "http",
11187
+ "fetch"
11188
+ ],
11189
+ transformRequest: [function transformRequest(data, headers) {
11190
+ const contentType = headers.getContentType() || "";
11191
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
11192
+ const isObjectPayload = utils_default.isObject(data);
11193
+ if (isObjectPayload && utils_default.isHTMLForm(data)) data = new FormData(data);
11194
+ if (utils_default.isFormData(data)) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
11195
+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) return data;
11196
+ if (utils_default.isArrayBufferView(data)) return data.buffer;
11197
+ if (utils_default.isURLSearchParams(data)) {
11198
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
11199
+ return data.toString();
11200
+ }
11201
+ let isFileList;
11202
+ if (isObjectPayload) {
11203
+ const formSerializer = own(this, "formSerializer");
11204
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, formSerializer).toString();
11205
+ if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
11206
+ const env = own(this, "env");
11207
+ const _FormData = env && env.FormData;
11208
+ return toFormData(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), formSerializer);
11107
11209
  }
11108
11210
  }
11109
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
11110
- return this;
11111
- }
11112
- };
11113
- AxiosHeaders.accessor([
11114
- "Content-Type",
11115
- "Content-Length",
11116
- "Accept",
11117
- "Accept-Encoding",
11118
- "User-Agent",
11119
- "Authorization"
11120
- ]);
11121
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
11122
- let mapped = key[0].toUpperCase() + key.slice(1);
11123
- return {
11124
- get: () => value,
11125
- set(headerValue) {
11126
- this[mapped] = headerValue;
11211
+ if (isObjectPayload || hasJSONContentType) {
11212
+ headers.setContentType("application/json", false);
11213
+ return stringifySafely(data);
11127
11214
  }
11128
- };
11215
+ return data;
11216
+ }],
11217
+ transformResponse: [function transformResponse(data) {
11218
+ const transitional = own(this, "transitional") || defaults.transitional;
11219
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
11220
+ const responseType = own(this, "responseType");
11221
+ const JSONRequested = responseType === "json";
11222
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) return data;
11223
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
11224
+ const strictJSONParsing = !(transitional && transitional.silentJSONParsing) && JSONRequested;
11225
+ try {
11226
+ return JSON.parse(data, own(this, "parseReviver"));
11227
+ } catch (e) {
11228
+ if (strictJSONParsing) {
11229
+ if (e.name === "SyntaxError") throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, "response"));
11230
+ throw e;
11231
+ }
11232
+ }
11233
+ }
11234
+ return data;
11235
+ }],
11236
+ /**
11237
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
11238
+ * timeout is not created.
11239
+ */
11240
+ timeout: 0,
11241
+ xsrfCookieName: "XSRF-TOKEN",
11242
+ xsrfHeaderName: "X-XSRF-TOKEN",
11243
+ maxContentLength: -1,
11244
+ maxBodyLength: -1,
11245
+ env: {
11246
+ FormData: platform_default.classes.FormData,
11247
+ Blob: platform_default.classes.Blob
11248
+ },
11249
+ validateStatus: function validateStatus(status) {
11250
+ return status >= 200 && status < 300;
11251
+ },
11252
+ headers: { common: {
11253
+ Accept: "application/json, text/plain, */*",
11254
+ "Content-Type": void 0
11255
+ } }
11256
+ };
11257
+ utils_default.forEach([
11258
+ "delete",
11259
+ "get",
11260
+ "head",
11261
+ "post",
11262
+ "put",
11263
+ "patch",
11264
+ "query"
11265
+ ], (method) => {
11266
+ defaults.headers[method] = {};
11129
11267
  });
11130
- utils_default.freezeMethods(AxiosHeaders);
11131
11268
  //#endregion
11132
11269
  //#region node_modules/axios/lib/core/transformData.js
11133
11270
  /**
@@ -11186,12 +11323,12 @@ var CanceledError = class extends AxiosError {
11186
11323
  function settle(resolve, reject, response) {
11187
11324
  const validateStatus = response.config.validateStatus;
11188
11325
  if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
11189
- else reject(new AxiosError("Request failed with status code " + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
11326
+ else reject(new AxiosError("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE, response.config, response.request, response));
11190
11327
  }
11191
11328
  //#endregion
11192
11329
  //#region node_modules/axios/lib/helpers/parseProtocol.js
11193
11330
  function parseProtocol(url) {
11194
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
11331
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
11195
11332
  return match && match[1] || "";
11196
11333
  }
11197
11334
  //#endregion
@@ -11272,6 +11409,7 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
11272
11409
  let bytesNotified = 0;
11273
11410
  const _speedometer = speedometer(50, 250);
11274
11411
  return throttle((e) => {
11412
+ if (!e || typeof e.loaded !== "number") return;
11275
11413
  const rawLoaded = e.loaded;
11276
11414
  const total = e.lengthComputable ? e.total : void 0;
11277
11415
  const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
@@ -11321,8 +11459,13 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
11321
11459
  },
11322
11460
  read(name) {
11323
11461
  if (typeof document === "undefined") return null;
11324
- const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
11325
- return match ? decodeURIComponent(match[1]) : null;
11462
+ const cookies = document.cookie.split(";");
11463
+ for (let i = 0; i < cookies.length; i++) {
11464
+ const cookie = cookies[i].replace(/^\s+/, "");
11465
+ const eq = cookie.indexOf("=");
11466
+ if (eq !== -1 && cookie.slice(0, eq) === name) return decodeURIComponent(cookie.slice(eq + 1));
11467
+ }
11468
+ return null;
11326
11469
  },
11327
11470
  remove(name) {
11328
11471
  this.write(name, "", Date.now() - 864e5, "/");
@@ -11393,6 +11536,7 @@ function mergeConfig(config1, config2) {
11393
11536
  config2 = config2 || {};
11394
11537
  const config = Object.create(null);
11395
11538
  Object.defineProperty(config, "hasOwnProperty", {
11539
+ __proto__: null,
11396
11540
  value: Object.prototype.hasOwnProperty,
11397
11541
  enumerable: false,
11398
11542
  writable: true,
@@ -11464,6 +11608,25 @@ function mergeConfig(config1, config2) {
11464
11608
  }
11465
11609
  //#endregion
11466
11610
  //#region node_modules/axios/lib/helpers/resolveConfig.js
11611
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
11612
+ function setFormDataHeaders(headers, formHeaders, policy) {
11613
+ if (policy !== "content-only") {
11614
+ headers.set(formHeaders);
11615
+ return;
11616
+ }
11617
+ Object.entries(formHeaders).forEach(([key, val]) => {
11618
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) headers.set(key, val);
11619
+ });
11620
+ }
11621
+ /**
11622
+ * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
11623
+ * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
11624
+ *
11625
+ * @param {string} str The string to encode
11626
+ *
11627
+ * @returns {string} UTF-8 bytes as a Latin-1 string
11628
+ */
11629
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
11467
11630
  var resolveConfig_default = (config) => {
11468
11631
  const newConfig = mergeConfig({}, config);
11469
11632
  const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
@@ -11478,16 +11641,10 @@ var resolveConfig_default = (config) => {
11478
11641
  const url = own("url");
11479
11642
  newConfig.headers = headers = AxiosHeaders.from(headers);
11480
11643
  newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls), config.params, config.paramsSerializer);
11481
- if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
11644
+ if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
11482
11645
  if (utils_default.isFormData(data)) {
11483
11646
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
11484
- else if (utils_default.isFunction(data.getHeaders)) {
11485
- const formHeaders = data.getHeaders();
11486
- const allowedHeaders = ["content-type", "content-length"];
11487
- Object.entries(formHeaders).forEach(([key, val]) => {
11488
- if (allowedHeaders.includes(key.toLowerCase())) headers.set(key, val);
11489
- });
11490
- }
11647
+ else if (utils_default.isFunction(data.getHeaders)) setFormDataHeaders(headers, data.getHeaders(), own("formDataHeaderPolicy"));
11491
11648
  }
11492
11649
  if (platform_default.hasStandardBrowserEnv) {
11493
11650
  if (utils_default.isFunction(withXSRFToken)) withXSRFToken = withXSRFToken(newConfig);
@@ -11538,18 +11695,20 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
11538
11695
  if ("onloadend" in request) request.onloadend = onloadend;
11539
11696
  else request.onreadystatechange = function handleLoad() {
11540
11697
  if (!request || request.readyState !== 4) return;
11541
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) return;
11698
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) return;
11542
11699
  setTimeout(onloadend);
11543
11700
  };
11544
11701
  request.onabort = function handleAbort() {
11545
11702
  if (!request) return;
11546
11703
  reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
11704
+ done();
11547
11705
  request = null;
11548
11706
  };
11549
11707
  request.onerror = function handleError(event) {
11550
11708
  const err = new AxiosError(event && event.message ? event.message : "Network Error", AxiosError.ERR_NETWORK, config, request);
11551
11709
  err.event = event || null;
11552
11710
  reject(err);
11711
+ done();
11553
11712
  request = null;
11554
11713
  };
11555
11714
  request.ontimeout = function handleTimeout() {
@@ -11557,10 +11716,11 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
11557
11716
  const transitional = _config.transitional || transitional_default;
11558
11717
  if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
11559
11718
  reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
11719
+ done();
11560
11720
  request = null;
11561
11721
  };
11562
11722
  requestData === void 0 && requestHeaders.setContentType(null);
11563
- if ("setRequestHeader" in request) utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
11723
+ if ("setRequestHeader" in request) utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
11564
11724
  request.setRequestHeader(key, val);
11565
11725
  });
11566
11726
  if (!utils_default.isUndefined(_config.withCredentials)) request.withCredentials = !!_config.withCredentials;
@@ -11579,13 +11739,14 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
11579
11739
  if (!request) return;
11580
11740
  reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
11581
11741
  request.abort();
11742
+ done();
11582
11743
  request = null;
11583
11744
  };
11584
11745
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
11585
11746
  if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
11586
11747
  }
11587
11748
  const protocol = parseProtocol(_config.url);
11588
- if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
11749
+ if (protocol && !platform_default.protocols.includes(protocol)) {
11589
11750
  reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
11590
11751
  return;
11591
11752
  }
@@ -11595,37 +11756,35 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
11595
11756
  //#endregion
11596
11757
  //#region node_modules/axios/lib/helpers/composeSignals.js
11597
11758
  var composeSignals = (signals, timeout) => {
11598
- const { length } = signals = signals ? signals.filter(Boolean) : [];
11599
- if (timeout || length) {
11600
- let controller = new AbortController();
11601
- let aborted;
11602
- const onabort = function(reason) {
11603
- if (!aborted) {
11604
- aborted = true;
11605
- unsubscribe();
11606
- const err = reason instanceof Error ? reason : this.reason;
11607
- controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
11608
- }
11609
- };
11610
- let timer = timeout && setTimeout(() => {
11611
- timer = null;
11612
- onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
11613
- }, timeout);
11614
- const unsubscribe = () => {
11615
- if (signals) {
11616
- timer && clearTimeout(timer);
11617
- timer = null;
11618
- signals.forEach((signal) => {
11619
- signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener("abort", onabort);
11620
- });
11621
- signals = null;
11622
- }
11623
- };
11624
- signals.forEach((signal) => signal.addEventListener("abort", onabort));
11625
- const { signal } = controller;
11626
- signal.unsubscribe = () => utils_default.asap(unsubscribe);
11627
- return signal;
11628
- }
11759
+ signals = signals ? signals.filter(Boolean) : [];
11760
+ if (!timeout && !signals.length) return;
11761
+ const controller = new AbortController();
11762
+ let aborted = false;
11763
+ const onabort = function(reason) {
11764
+ if (!aborted) {
11765
+ aborted = true;
11766
+ unsubscribe();
11767
+ const err = reason instanceof Error ? reason : this.reason;
11768
+ controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
11769
+ }
11770
+ };
11771
+ let timer = timeout && setTimeout(() => {
11772
+ timer = null;
11773
+ onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
11774
+ }, timeout);
11775
+ const unsubscribe = () => {
11776
+ if (!signals) return;
11777
+ timer && clearTimeout(timer);
11778
+ timer = null;
11779
+ signals.forEach((signal) => {
11780
+ signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener("abort", onabort);
11781
+ });
11782
+ signals = null;
11783
+ };
11784
+ signals.forEach((signal) => signal.addEventListener("abort", onabort));
11785
+ const { signal } = controller;
11786
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
11787
+ return signal;
11629
11788
  };
11630
11789
  //#endregion
11631
11790
  //#region node_modules/axios/lib/helpers/trackStream.js
@@ -11696,14 +11855,76 @@ var trackStream = (stream, chunkSize, onProgress, onFinish) => {
11696
11855
  }, { highWaterMark: 2 });
11697
11856
  };
11698
11857
  //#endregion
11858
+ //#region node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
11859
+ /**
11860
+ * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
11861
+ * - For base64: compute exact decoded size using length and padding;
11862
+ * handle %XX at the character-count level (no string allocation).
11863
+ * - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
11864
+ *
11865
+ * @param {string} url
11866
+ * @returns {number}
11867
+ */
11868
+ function estimateDataURLDecodedBytes(url) {
11869
+ if (!url || typeof url !== "string") return 0;
11870
+ if (!url.startsWith("data:")) return 0;
11871
+ const comma = url.indexOf(",");
11872
+ if (comma < 0) return 0;
11873
+ const meta = url.slice(5, comma);
11874
+ const body = url.slice(comma + 1);
11875
+ if (/;base64/i.test(meta)) {
11876
+ let effectiveLen = body.length;
11877
+ const len = body.length;
11878
+ for (let i = 0; i < len; i++) if (body.charCodeAt(i) === 37 && i + 2 < len) {
11879
+ const a = body.charCodeAt(i + 1);
11880
+ const b = body.charCodeAt(i + 2);
11881
+ if ((a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102)) {
11882
+ effectiveLen -= 2;
11883
+ i += 2;
11884
+ }
11885
+ }
11886
+ let pad = 0;
11887
+ let idx = len - 1;
11888
+ const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
11889
+ if (idx >= 0) {
11890
+ if (body.charCodeAt(idx) === 61) {
11891
+ pad++;
11892
+ idx--;
11893
+ } else if (tailIsPct3D(idx)) {
11894
+ pad++;
11895
+ idx -= 3;
11896
+ }
11897
+ }
11898
+ if (pad === 1 && idx >= 0) {
11899
+ if (body.charCodeAt(idx) === 61) pad++;
11900
+ else if (tailIsPct3D(idx)) pad++;
11901
+ }
11902
+ const bytes = Math.floor(effectiveLen / 4) * 3 - (pad || 0);
11903
+ return bytes > 0 ? bytes : 0;
11904
+ }
11905
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") return Buffer.byteLength(body, "utf8");
11906
+ let bytes = 0;
11907
+ for (let i = 0, len = body.length; i < len; i++) {
11908
+ const c = body.charCodeAt(i);
11909
+ if (c < 128) bytes += 1;
11910
+ else if (c < 2048) bytes += 2;
11911
+ else if (c >= 55296 && c <= 56319 && i + 1 < len) {
11912
+ const next = body.charCodeAt(i + 1);
11913
+ if (next >= 56320 && next <= 57343) {
11914
+ bytes += 4;
11915
+ i++;
11916
+ } else bytes += 3;
11917
+ } else bytes += 3;
11918
+ }
11919
+ return bytes;
11920
+ }
11921
+ //#endregion
11922
+ //#region node_modules/axios/lib/env/data.js
11923
+ var VERSION = "1.16.1";
11924
+ //#endregion
11699
11925
  //#region node_modules/axios/lib/adapters/fetch.js
11700
11926
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
11701
11927
  var { isFunction } = utils_default;
11702
- var globalFetchAPI = (({ Request, Response }) => ({
11703
- Request,
11704
- Response
11705
- }))(utils_default.global);
11706
- var { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 } = utils_default.global;
11707
11928
  var test = (fn, ...args) => {
11708
11929
  try {
11709
11930
  return !!fn(...args);
@@ -11712,18 +11933,23 @@ var test = (fn, ...args) => {
11712
11933
  }
11713
11934
  };
11714
11935
  var factory = (env) => {
11715
- env = utils_default.merge.call({ skipUndefined: true }, globalFetchAPI, env);
11936
+ const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
11937
+ const { ReadableStream, TextEncoder } = globalObject;
11938
+ env = utils_default.merge.call({ skipUndefined: true }, {
11939
+ Request: globalObject.Request,
11940
+ Response: globalObject.Response
11941
+ }, env);
11716
11942
  const { fetch: envFetch, Request, Response } = env;
11717
11943
  const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
11718
11944
  const isRequestSupported = isFunction(Request);
11719
11945
  const isResponseSupported = isFunction(Response);
11720
11946
  if (!isFetchSupported) return false;
11721
- const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
11722
- const encodeText = isFetchSupported && (typeof TextEncoder$1 === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
11947
+ const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
11948
+ const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
11723
11949
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
11724
11950
  let duplexAccessed = false;
11725
11951
  const request = new Request(platform_default.origin, {
11726
- body: new ReadableStream$1(),
11952
+ body: new ReadableStream(),
11727
11953
  method: "POST",
11728
11954
  get duplex() {
11729
11955
  duplexAccessed = true;
@@ -11765,7 +11991,9 @@ var factory = (env) => {
11765
11991
  return length == null ? getBodyLength(body) : length;
11766
11992
  };
11767
11993
  return async (config) => {
11768
- let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions } = resolveConfig_default(config);
11994
+ let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength } = resolveConfig_default(config);
11995
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
11996
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
11769
11997
  let _fetch = envFetch || fetch;
11770
11998
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
11771
11999
  let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -11775,6 +12003,13 @@ var factory = (env) => {
11775
12003
  });
11776
12004
  let requestContentLength;
11777
12005
  try {
12006
+ if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
12007
+ if (estimateDataURLDecodedBytes(url) > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
12008
+ }
12009
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
12010
+ const outboundLength = await resolveBodyLength(headers, data);
12011
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) throw new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, request);
12012
+ }
11778
12013
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
11779
12014
  let _request = new Request(url, {
11780
12015
  method: "POST",
@@ -11794,19 +12029,24 @@ var factory = (env) => {
11794
12029
  const contentType = headers.getContentType();
11795
12030
  if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) headers.delete("content-type");
11796
12031
  }
12032
+ headers.set("User-Agent", "axios/" + VERSION, false);
11797
12033
  const resolvedOptions = {
11798
12034
  ...fetchOptions,
11799
12035
  signal: composedSignal,
11800
12036
  method: method.toUpperCase(),
11801
- headers: headers.normalize().toJSON(),
12037
+ headers: toByteStringHeaderObject(headers.normalize()),
11802
12038
  body: data,
11803
12039
  duplex: "half",
11804
12040
  credentials: isCredentialsSupported ? withCredentials : void 0
11805
12041
  };
11806
12042
  request = isRequestSupported && new Request(url, resolvedOptions);
11807
12043
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
12044
+ if (hasMaxContentLength) {
12045
+ const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
12046
+ if (declaredLength != null && declaredLength > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
12047
+ }
11808
12048
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
11809
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
12049
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
11810
12050
  const options = {};
11811
12051
  [
11812
12052
  "status",
@@ -11817,13 +12057,30 @@ var factory = (env) => {
11817
12057
  });
11818
12058
  const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
11819
12059
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
11820
- response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
12060
+ let bytesRead = 0;
12061
+ const onChunkProgress = (loadedBytes) => {
12062
+ if (hasMaxContentLength) {
12063
+ bytesRead = loadedBytes;
12064
+ if (bytesRead > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
12065
+ }
12066
+ onProgress && onProgress(loadedBytes);
12067
+ };
12068
+ response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
11821
12069
  flush && flush();
11822
12070
  unsubscribe && unsubscribe();
11823
12071
  }), options);
11824
12072
  }
11825
12073
  responseType = responseType || "text";
11826
12074
  let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
12075
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
12076
+ let materializedSize;
12077
+ if (responseData != null) {
12078
+ if (typeof responseData.byteLength === "number") materializedSize = responseData.byteLength;
12079
+ else if (typeof responseData.size === "number") materializedSize = responseData.size;
12080
+ else if (typeof responseData === "string") materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length;
12081
+ }
12082
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
12083
+ }
11827
12084
  !isStreamResponse && unsubscribe && unsubscribe();
11828
12085
  return await new Promise((resolve, reject) => {
11829
12086
  settle(resolve, reject, {
@@ -11837,6 +12094,13 @@ var factory = (env) => {
11837
12094
  });
11838
12095
  } catch (err) {
11839
12096
  unsubscribe && unsubscribe();
12097
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError) {
12098
+ const canceledError = composedSignal.reason;
12099
+ canceledError.config = config;
12100
+ request && (canceledError.request = request);
12101
+ err !== canceledError && (canceledError.cause = err);
12102
+ throw canceledError;
12103
+ }
11840
12104
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response), { cause: err.cause || err });
11841
12105
  throw AxiosError.from(err, err && err.code, config, request, err && err.response);
11842
12106
  }
@@ -11880,9 +12144,15 @@ var knownAdapters = {
11880
12144
  utils_default.forEach(knownAdapters, (fn, value) => {
11881
12145
  if (fn) {
11882
12146
  try {
11883
- Object.defineProperty(fn, "name", { value });
12147
+ Object.defineProperty(fn, "name", {
12148
+ __proto__: null,
12149
+ value
12150
+ });
11884
12151
  } catch (e) {}
11885
- Object.defineProperty(fn, "adapterName", { value });
12152
+ Object.defineProperty(fn, "adapterName", {
12153
+ __proto__: null,
12154
+ value
12155
+ });
11886
12156
  }
11887
12157
  });
11888
12158
  /**
@@ -11978,14 +12248,24 @@ function dispatchRequest(config) {
11978
12248
  ].indexOf(config.method) !== -1) config.headers.setContentType("application/x-www-form-urlencoded", false);
11979
12249
  return adapters_default.getAdapter(config.adapter || defaults.adapter, config)(config).then(function onAdapterResolution(response) {
11980
12250
  throwIfCancellationRequested(config);
11981
- response.data = transformData.call(config, config.transformResponse, response);
12251
+ config.response = response;
12252
+ try {
12253
+ response.data = transformData.call(config, config.transformResponse, response);
12254
+ } finally {
12255
+ delete config.response;
12256
+ }
11982
12257
  response.headers = AxiosHeaders.from(response.headers);
11983
12258
  return response;
11984
12259
  }, function onAdapterRejection(reason) {
11985
12260
  if (!isCancel(reason)) {
11986
12261
  throwIfCancellationRequested(config);
11987
12262
  if (reason && reason.response) {
11988
- reason.response.data = transformData.call(config, config.transformResponse, reason.response);
12263
+ config.response = reason.response;
12264
+ try {
12265
+ reason.response.data = transformData.call(config, config.transformResponse, reason.response);
12266
+ } finally {
12267
+ delete config.response;
12268
+ }
11989
12269
  reason.response.headers = AxiosHeaders.from(reason.response.headers);
11990
12270
  }
11991
12271
  }
@@ -11993,9 +12273,6 @@ function dispatchRequest(config) {
11993
12273
  });
11994
12274
  }
11995
12275
  //#endregion
11996
- //#region node_modules/axios/lib/env/data.js
11997
- var VERSION = "1.15.2";
11998
- //#endregion
11999
12276
  //#region node_modules/axios/lib/helpers/validator.js
12000
12277
  var validators$1 = {};
12001
12278
  [
@@ -12152,6 +12429,7 @@ var Axios = class {
12152
12429
  "post",
12153
12430
  "put",
12154
12431
  "patch",
12432
+ "query",
12155
12433
  "common"
12156
12434
  ], (method) => {
12157
12435
  delete headers[method];
@@ -12226,7 +12504,8 @@ utils_default.forEach([
12226
12504
  utils_default.forEach([
12227
12505
  "post",
12228
12506
  "put",
12229
- "patch"
12507
+ "patch",
12508
+ "query"
12230
12509
  ], function forEachMethodWithData(method) {
12231
12510
  function generateHTTPMethod(isForm) {
12232
12511
  return function httpMethod(url, data, config) {
@@ -12239,7 +12518,7 @@ utils_default.forEach([
12239
12518
  };
12240
12519
  }
12241
12520
  Axios.prototype[method] = generateHTTPMethod();
12242
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
12521
+ if (method !== "query") Axios.prototype[method + "Form"] = generateHTTPMethod(true);
12243
12522
  });
12244
12523
  //#endregion
12245
12524
  //#region node_modules/axios/lib/cancel/CancelToken.js
@@ -12540,6 +12819,7 @@ var SocketIoClient = class extends import_tiny_emitter$1.TinyEmitter {
12540
12819
  #socket;
12541
12820
  #reconnectTimeout = 2e3;
12542
12821
  #ackTimeout = 5e3;
12822
+ #reconnectTimeoutVal = void 0;
12543
12823
  constructor(name) {
12544
12824
  super();
12545
12825
  this.#name = name;
@@ -12612,7 +12892,7 @@ var SocketIoClient = class extends import_tiny_emitter$1.TinyEmitter {
12612
12892
  return this;
12613
12893
  }
12614
12894
  SetupSocket() {
12615
- if (!this.#address) throw new Error(`SocketIoClientHelper:SetupSocket(): Error: [address not provided]`);
12895
+ if (!this.#address) throw new Error(`SocketIoClient:SetupSocket(): Error: [address not provided]`);
12616
12896
  this.#EstablishSocketConnect();
12617
12897
  return this;
12618
12898
  }
@@ -12622,17 +12902,20 @@ var SocketIoClient = class extends import_tiny_emitter$1.TinyEmitter {
12622
12902
  EngineReconnect(attempt) {}
12623
12903
  #EstablishSocketConnect() {
12624
12904
  if (this.#socket !== void 0) {
12625
- if (this.#socket.connected === true) this.#socket.disconnect();
12626
- this.#socket = void 0;
12627
- if (_nsshunt_stsutils.isNode) setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
12628
- else setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
12905
+ this.ResetSocket();
12906
+ if (_nsshunt_stsutils.isNode) this.#reconnectTimeoutVal = setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
12907
+ else this.#reconnectTimeoutVal = setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
12629
12908
  return;
12630
12909
  }
12631
12910
  let socketOptions;
12632
12911
  if (_nsshunt_stsutils.isNode) {
12633
12912
  socketOptions = { transports: ["websocket"] };
12634
12913
  if (this.#agentManager) {
12635
- if (!this.#address) throw new Error(`SocketIoClient:SetupSocket(): Error: [address not provided when using agentManager]`);
12914
+ if (!this.#address) {
12915
+ const message = `SocketIoClient:#EstablishSocketConnect(): Error: [address not provided when using agentManager]`;
12916
+ this.LogErrorMessage(message);
12917
+ throw new Error(message);
12918
+ }
12636
12919
  socketOptions.agent = this.#agentManager.GetAgent(this.#address);
12637
12920
  }
12638
12921
  } else socketOptions = { transports: ["websocket"] };
@@ -12643,30 +12926,30 @@ var SocketIoClient = class extends import_tiny_emitter$1.TinyEmitter {
12643
12926
  if (this.#socketIoCustomPath && this.#socketIoCustomPath.localeCompare("") !== 0) socketOptions.path = this.#socketIoCustomPath;
12644
12927
  this.#socket = (0, socket_io_client.io)(this.#address, socketOptions);
12645
12928
  this.#socket.io.on("error", (err) => {
12646
- this.LogErrorMessage(`socketDetail.socket.io.on('error'): [${err}] Address: [${this.#address}]`);
12929
+ this.LogErrorMessage(`SocketIoClient.socket.io.on('error'): [${err}] Address: [${this.#address}]`);
12647
12930
  this.EngineError(err);
12648
12931
  });
12649
12932
  this.#socket.io.on("reconnect_error", (err) => {
12650
- this.LogErrorMessage(`socketDetail.socket.io.on('reconnect_error'): [${err}] Address: [${this.#address}]`);
12933
+ this.LogErrorMessage(`SocketIoClient.socket.io.on('reconnect_error'): [${err}] Address: [${this.#address}]`);
12651
12934
  this.EngineReconnectError(err);
12652
12935
  });
12653
12936
  this.#socket.on("connect_error", (err) => {
12654
- this.LogErrorMessage(`socketDetail.socket.on('connect_error'): [${err}] Address: [${this.#address}]`);
12937
+ this.LogErrorMessage(`SocketIoClient.socket.on('connect_error'): [${err}] Address: [${this.#address}]`);
12655
12938
  this.EngineConnectError(err);
12656
12939
  });
12657
12940
  this.#socket.io.on("reconnect", (attempt) => {
12658
- this.LogErrorMessage(`socketDetail.socket.io.on('reconnect'): Number: [${attempt}] Address: [${this.#address}]`);
12941
+ this.LogErrorMessage(`SocketIoClient:socket.io.on('reconnect'): Number: [${attempt}] Address: [${this.#address}]`);
12659
12942
  this.EngineReconnect(attempt);
12660
12943
  });
12661
12944
  this.#socket.on("connect", () => {
12662
12945
  if (this.#socket) {
12663
- this.LogDebugMessage(`Socket: [${this.#socket.id}]: connected, Address: [${this.#address}]`);
12946
+ this.LogDebugMessage(`SocketIoClient:on("connect"): Socket: [${this.#socket.id}]: connected, Address: [${this.#address}]`);
12664
12947
  setTimeout(() => {
12665
12948
  this.SocketConnect(this.#socket);
12666
12949
  }, 0);
12667
12950
  this.SetupSocketEvents(this.#socket);
12668
12951
  } else {
12669
- const errorMessage = "Could not get socket object from socket.io, Address: [${socketDetail.address}]";
12952
+ const errorMessage = "SocketIoClient:on(\"connect\"): Could not get socket object from socket.io, Address: [${socketDetail.address}]";
12670
12953
  this.LogErrorMessage(errorMessage);
12671
12954
  this.SocketConnectError(new Error(errorMessage));
12672
12955
  }
@@ -12676,33 +12959,50 @@ var SocketIoClient = class extends import_tiny_emitter$1.TinyEmitter {
12676
12959
  this.SocketDisconnect(reason);
12677
12960
  switch (reason) {
12678
12961
  case "io server disconnect":
12679
- this.LogDebugMessage("The server disconnected using disconnectSockets, i.e. normal safe shutdown from explicit disconnection by the server.");
12680
- this.LogDebugMessage("The connection will be re-established when the server becomes available.");
12681
- this.#socket = void 0;
12682
- if (_nsshunt_stsutils.isNode) {
12683
- if (this.#agentManager) this.#agentManager.ResetAgent();
12684
- setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
12685
- } else setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
12962
+ this.LogDebugMessage("SocketIoClient:on(\"disconnect\"): The server disconnected using disconnectSockets, i.e. normal safe shutdown from explicit disconnection by the server.");
12963
+ this.LogDebugMessage("SocketIoClient:on(\"disconnect\"): The connection will be re-established when the server becomes available.");
12964
+ this.ResetSocket();
12965
+ if (_nsshunt_stsutils.isNode) this.#reconnectTimeoutVal = setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
12966
+ else this.#reconnectTimeoutVal = setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
12686
12967
  break;
12687
12968
  case "io client disconnect":
12688
- this.LogDebugMessage("The client disconnected using disconnectSockets, i.e. normal safe disconnection from explicit disconnection by the client.");
12689
- this.LogDebugMessage("The connection will not be re-established automatically.");
12969
+ this.LogDebugMessage("SocketIoClient:on(\"disconnect\"): The client disconnected using disconnectSockets, i.e. normal safe disconnection from explicit disconnection by the client.");
12970
+ this.LogDebugMessage("SocketIoClient:on(\"disconnect\"): The connection will not be re-established automatically.");
12971
+ this.ResetSocket();
12690
12972
  break;
12691
12973
  case "transport close":
12692
12974
  case "ping timeout":
12693
12975
  case "transport error":
12694
- this.LogDebugMessage(`Server unexpectedly disconnected. Reason: [${reason}]`);
12695
- this.LogDebugMessage("The connection will be re-established when the server becomes available.");
12696
- if (this.#socket) this.#socket.disconnect();
12697
- this.#socket = void 0;
12698
- if (_nsshunt_stsutils.isNode) {
12699
- if (this.#agentManager) this.#agentManager?.ResetAgent();
12700
- setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
12701
- } else setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
12976
+ this.LogDebugMessage(`SocketIoClient:on("disconnect"): Server unexpectedly disconnected. Reason: [${reason}]`);
12977
+ this.LogDebugMessage("SocketIoClient:on(\"disconnect\"): The connection will be re-established when the server becomes available.");
12978
+ this.ResetSocket();
12979
+ if (_nsshunt_stsutils.isNode) this.#reconnectTimeoutVal = setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout).unref();
12980
+ else this.#reconnectTimeoutVal = setTimeout(() => this.#EstablishSocketConnect(), this.#reconnectTimeout);
12702
12981
  break;
12703
12982
  }
12704
12983
  });
12705
12984
  }
12985
+ ResetSocket = () => {
12986
+ try {
12987
+ if (this.#reconnectTimeoutVal !== void 0) {
12988
+ clearTimeout(this.#reconnectTimeoutVal);
12989
+ this.#reconnectTimeoutVal = void 0;
12990
+ }
12991
+ if (this.#socket) {
12992
+ this.#socket.removeAllListeners();
12993
+ this.#socket.io.removeAllListeners();
12994
+ if (this.#socket.connected === true) this.#socket.disconnect();
12995
+ if (_nsshunt_stsutils.isNode) {
12996
+ if (this.#agentManager) this.#agentManager.ResetAgent();
12997
+ }
12998
+ this.#socket = void 0;
12999
+ }
13000
+ } catch (error) {
13001
+ const errorMessage = `SocketIoClient:ResetSocket(): Error: [${error}]`;
13002
+ this.LogErrorMessage(errorMessage);
13003
+ this.SocketConnectError(new Error(errorMessage));
13004
+ }
13005
+ };
12706
13006
  };
12707
13007
  //#endregion
12708
13008
  //#region node_modules/@nsshunt/stsinstrumentmanagerclient/dist/index.mjs
@@ -13198,12 +13498,6 @@ var timestampExtension = {
13198
13498
  else return new ExtData(type, data);
13199
13499
  }
13200
13500
  });
13201
- var influxDBDataType = /* @__PURE__ */ function(influxDBDataType) {
13202
- influxDBDataType["intField"] = "intField";
13203
- influxDBDataType["floatField"] = "floatField";
13204
- influxDBDataType["stringField"] = "stringField";
13205
- return influxDBDataType;
13206
- }({});
13207
13501
  var instrumentationObservationInterval = 1e3;
13208
13502
  var instrumentationTimeWindow = 600;
13209
13503
  var globalServiceDefinitions = {
@@ -13213,7 +13507,7 @@ var globalServiceDefinitions = {
13213
13507
  gauge: _nsshunt_stsobservability.Gauge.REQUEST_COUNT_GAUGE,
13214
13508
  instrumentProperty: "val",
13215
13509
  dataType: "number",
13216
- influxdbDataType: influxDBDataType.intField,
13510
+ influxdbDataType: "intField",
13217
13511
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13218
13512
  },
13219
13513
  {
@@ -13221,7 +13515,7 @@ var globalServiceDefinitions = {
13221
13515
  gauge: _nsshunt_stsobservability.Gauge.ERROR_COUNT_GAUGE,
13222
13516
  instrumentProperty: "val",
13223
13517
  dataType: "number",
13224
- influxdbDataType: influxDBDataType.intField,
13518
+ influxdbDataType: "intField",
13225
13519
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13226
13520
  },
13227
13521
  {
@@ -13229,7 +13523,7 @@ var globalServiceDefinitions = {
13229
13523
  gauge: _nsshunt_stsobservability.Gauge.RETRY_COUNT_GAUGE,
13230
13524
  instrumentProperty: "val",
13231
13525
  dataType: "number",
13232
- influxdbDataType: influxDBDataType.intField,
13526
+ influxdbDataType: "intField",
13233
13527
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13234
13528
  },
13235
13529
  {
@@ -13237,7 +13531,7 @@ var globalServiceDefinitions = {
13237
13531
  gauge: _nsshunt_stsobservability.Gauge.AUTHENTICATION_COUNT_GAUGE,
13238
13532
  instrumentProperty: "val",
13239
13533
  dataType: "number",
13240
- influxdbDataType: influxDBDataType.intField,
13534
+ influxdbDataType: "intField",
13241
13535
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13242
13536
  },
13243
13537
  {
@@ -13245,7 +13539,7 @@ var globalServiceDefinitions = {
13245
13539
  gauge: _nsshunt_stsobservability.Gauge.AUTHENTICATION_ERROR_COUNT_GAUGE,
13246
13540
  instrumentProperty: "val",
13247
13541
  dataType: "number",
13248
- influxdbDataType: influxDBDataType.intField,
13542
+ influxdbDataType: "intField",
13249
13543
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13250
13544
  },
13251
13545
  {
@@ -13253,7 +13547,7 @@ var globalServiceDefinitions = {
13253
13547
  gauge: _nsshunt_stsobservability.Gauge.AUTHENTICATION_RETRY_COUNT_GAUGE,
13254
13548
  instrumentProperty: "val",
13255
13549
  dataType: "number",
13256
- influxdbDataType: influxDBDataType.intField,
13550
+ influxdbDataType: "intField",
13257
13551
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13258
13552
  },
13259
13553
  {
@@ -13261,7 +13555,7 @@ var globalServiceDefinitions = {
13261
13555
  gauge: _nsshunt_stsobservability.Gauge.VELOCITY_GAUGE,
13262
13556
  instrumentProperty: "va",
13263
13557
  dataType: "number",
13264
- influxdbDataType: influxDBDataType.floatField,
13558
+ influxdbDataType: "floatField",
13265
13559
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_VELOCITY
13266
13560
  },
13267
13561
  {
@@ -13271,7 +13565,7 @@ var globalServiceDefinitions = {
13271
13565
  dataType: "number",
13272
13566
  timeSeriesIndex: true,
13273
13567
  quantile: true,
13274
- influxdbDataType: influxDBDataType.intField,
13568
+ influxdbDataType: "intField",
13275
13569
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE,
13276
13570
  instrumentOptions: {
13277
13571
  interval: instrumentationObservationInterval,
@@ -13283,7 +13577,7 @@ var globalServiceDefinitions = {
13283
13577
  gauge: _nsshunt_stsobservability.Gauge.CORE_COUNT_GAUGE,
13284
13578
  instrumentProperty: "val",
13285
13579
  dataType: "number",
13286
- influxdbDataType: influxDBDataType.intField,
13580
+ influxdbDataType: "intField",
13287
13581
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13288
13582
  },
13289
13583
  {
@@ -13291,7 +13585,7 @@ var globalServiceDefinitions = {
13291
13585
  gauge: _nsshunt_stsobservability.Gauge.NETWORK_RX_GAUGE,
13292
13586
  instrumentProperty: "va",
13293
13587
  dataType: "number",
13294
- influxdbDataType: influxDBDataType.floatField,
13588
+ influxdbDataType: "floatField",
13295
13589
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_VELOCITY
13296
13590
  },
13297
13591
  {
@@ -13299,7 +13593,7 @@ var globalServiceDefinitions = {
13299
13593
  gauge: _nsshunt_stsobservability.Gauge.NETWORK_TX_GAUGE,
13300
13594
  instrumentProperty: "va",
13301
13595
  dataType: "number",
13302
- influxdbDataType: influxDBDataType.floatField,
13596
+ influxdbDataType: "floatField",
13303
13597
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_VELOCITY
13304
13598
  },
13305
13599
  {
@@ -13307,7 +13601,7 @@ var globalServiceDefinitions = {
13307
13601
  gauge: _nsshunt_stsobservability.Gauge.TIMER_GAUGE,
13308
13602
  instrumentProperty: "val",
13309
13603
  dataType: "number",
13310
- influxdbDataType: influxDBDataType.floatField,
13604
+ influxdbDataType: "floatField",
13311
13605
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_TIMER
13312
13606
  },
13313
13607
  {
@@ -13317,7 +13611,7 @@ var globalServiceDefinitions = {
13317
13611
  dataType: "number",
13318
13612
  timeSeriesIndex: true,
13319
13613
  quantile: true,
13320
- influxdbDataType: influxDBDataType.floatField,
13614
+ influxdbDataType: "floatField",
13321
13615
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE,
13322
13616
  instrumentOptions: {
13323
13617
  interval: instrumentationObservationInterval,
@@ -13362,7 +13656,7 @@ var globalServiceDefinitions = {
13362
13656
  dataType: "number",
13363
13657
  timeSeriesIndex: true,
13364
13658
  quantile: true,
13365
- influxdbDataType: influxDBDataType.floatField,
13659
+ influxdbDataType: "floatField",
13366
13660
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE,
13367
13661
  instrumentOptions: {
13368
13662
  interval: instrumentationObservationInterval,
@@ -13408,7 +13702,7 @@ var globalServiceDefinitions = {
13408
13702
  dataType: "string",
13409
13703
  timeSeriesIndex: false,
13410
13704
  quantile: false,
13411
- influxdbDataType: influxDBDataType.stringField,
13705
+ influxdbDataType: "stringField",
13412
13706
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_LOG,
13413
13707
  instrumentOptions: {
13414
13708
  consoleLogging: false,
@@ -13441,7 +13735,7 @@ var globalServiceDefinitions = {
13441
13735
  dataType: "number",
13442
13736
  timeSeriesIndex: true,
13443
13737
  quantile: true,
13444
- influxdbDataType: influxDBDataType.floatField,
13738
+ influxdbDataType: "floatField",
13445
13739
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE,
13446
13740
  instrumentOptions: {
13447
13741
  interval: instrumentationObservationInterval,
@@ -13455,7 +13749,7 @@ var globalServiceDefinitions = {
13455
13749
  dataType: "number",
13456
13750
  timeSeriesIndex: true,
13457
13751
  quantile: true,
13458
- influxdbDataType: influxDBDataType.intField,
13752
+ influxdbDataType: "intField",
13459
13753
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE,
13460
13754
  instrumentOptions: {
13461
13755
  interval: instrumentationObservationInterval,
@@ -13467,7 +13761,7 @@ var globalServiceDefinitions = {
13467
13761
  gauge: _nsshunt_stsobservability.Gauge.CONNECTION_POOL_TOTAL_GAUGE,
13468
13762
  instrumentProperty: "val",
13469
13763
  dataType: "number",
13470
- influxdbDataType: influxDBDataType.intField,
13764
+ influxdbDataType: "intField",
13471
13765
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13472
13766
  },
13473
13767
  {
@@ -13475,7 +13769,7 @@ var globalServiceDefinitions = {
13475
13769
  gauge: _nsshunt_stsobservability.Gauge.CONNECTION_POOL_IDLE_GAUGE,
13476
13770
  instrumentProperty: "val",
13477
13771
  dataType: "number",
13478
- influxdbDataType: influxDBDataType.intField,
13772
+ influxdbDataType: "intField",
13479
13773
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13480
13774
  },
13481
13775
  {
@@ -13483,7 +13777,7 @@ var globalServiceDefinitions = {
13483
13777
  gauge: _nsshunt_stsobservability.Gauge.CONNECTION_POOL_WAITING_GAUGE,
13484
13778
  instrumentProperty: "val",
13485
13779
  dataType: "number",
13486
- influxdbDataType: influxDBDataType.intField,
13780
+ influxdbDataType: "intField",
13487
13781
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13488
13782
  },
13489
13783
  {
@@ -13493,7 +13787,7 @@ var globalServiceDefinitions = {
13493
13787
  dataType: "number",
13494
13788
  timeSeriesIndex: true,
13495
13789
  quantile: true,
13496
- influxdbDataType: influxDBDataType.floatField,
13790
+ influxdbDataType: "floatField",
13497
13791
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13498
13792
  },
13499
13793
  {
@@ -13501,7 +13795,7 @@ var globalServiceDefinitions = {
13501
13795
  gauge: _nsshunt_stsobservability.Gauge.OBJECT_GAUGE,
13502
13796
  instrumentProperty: "val",
13503
13797
  dataType: "JSON",
13504
- influxdbDataType: influxDBDataType.stringField,
13798
+ influxdbDataType: "stringField",
13505
13799
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_OBJECT,
13506
13800
  instrumentOptions: { label: "InstrumentObjectMaster" }
13507
13801
  }
@@ -13553,7 +13847,7 @@ var globalServiceDefinitions = {
13553
13847
  gauge: _nsshunt_stsobservability.Gauge.CHILD_COUNT,
13554
13848
  instrumentProperty: "val",
13555
13849
  dataType: "number",
13556
- influxdbDataType: influxDBDataType.intField,
13850
+ influxdbDataType: "intField",
13557
13851
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13558
13852
  }],
13559
13853
  GetPathFromContext(context) {
@@ -13610,7 +13904,7 @@ var globalServiceDefinitions = {
13610
13904
  dataType: "number",
13611
13905
  timeSeriesIndex: true,
13612
13906
  quantile: true,
13613
- influxdbDataType: influxDBDataType.floatField,
13907
+ influxdbDataType: "floatField",
13614
13908
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13615
13909
  },
13616
13910
  {
@@ -13620,7 +13914,7 @@ var globalServiceDefinitions = {
13620
13914
  dataType: "number",
13621
13915
  timeSeriesIndex: true,
13622
13916
  quantile: true,
13623
- influxdbDataType: influxDBDataType.intField,
13917
+ influxdbDataType: "intField",
13624
13918
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13625
13919
  },
13626
13920
  {
@@ -13628,7 +13922,7 @@ var globalServiceDefinitions = {
13628
13922
  gauge: _nsshunt_stsobservability.Gauge.CONNECTION_POOL_TOTAL_GAUGE,
13629
13923
  instrumentProperty: "val",
13630
13924
  dataType: "number",
13631
- influxdbDataType: influxDBDataType.intField,
13925
+ influxdbDataType: "intField",
13632
13926
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13633
13927
  },
13634
13928
  {
@@ -13636,7 +13930,7 @@ var globalServiceDefinitions = {
13636
13930
  gauge: _nsshunt_stsobservability.Gauge.CONNECTION_POOL_IDLE_GAUGE,
13637
13931
  instrumentProperty: "val",
13638
13932
  dataType: "number",
13639
- influxdbDataType: influxDBDataType.intField,
13933
+ influxdbDataType: "intField",
13640
13934
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13641
13935
  },
13642
13936
  {
@@ -13644,7 +13938,7 @@ var globalServiceDefinitions = {
13644
13938
  gauge: _nsshunt_stsobservability.Gauge.CONNECTION_POOL_WAITING_GAUGE,
13645
13939
  instrumentProperty: "val",
13646
13940
  dataType: "number",
13647
- influxdbDataType: influxDBDataType.intField,
13941
+ influxdbDataType: "intField",
13648
13942
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13649
13943
  },
13650
13944
  {
@@ -13654,7 +13948,7 @@ var globalServiceDefinitions = {
13654
13948
  dataType: "number",
13655
13949
  timeSeriesIndex: true,
13656
13950
  quantile: true,
13657
- influxdbDataType: influxDBDataType.floatField,
13951
+ influxdbDataType: "floatField",
13658
13952
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_GAUGE
13659
13953
  },
13660
13954
  {
@@ -13662,7 +13956,7 @@ var globalServiceDefinitions = {
13662
13956
  gauge: _nsshunt_stsobservability.Gauge.OBJECT_GAUGE,
13663
13957
  instrumentProperty: "val",
13664
13958
  dataType: "JSON",
13665
- influxdbDataType: influxDBDataType.stringField,
13959
+ influxdbDataType: "stringField",
13666
13960
  gaugeType: _nsshunt_stsobservability.GaugeTypes.INSTRUMENT_OBJECT
13667
13961
  }
13668
13962
  ],