@nsshunt/stsuxvue 1.0.97 → 1.0.100

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
@@ -5984,7 +5984,7 @@ const NODE_TYPE = {
5984
5984
  comment: 8,
5985
5985
  document: 9
5986
5986
  };
5987
- const getGlobal = function getGlobal2() {
5987
+ const getGlobal$1 = function getGlobal() {
5988
5988
  return typeof window === "undefined" ? null : window;
5989
5989
  };
5990
5990
  const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, purifyHostElement) {
@@ -6025,9 +6025,9 @@ const _createHooksMap = function _createHooksMap2() {
6025
6025
  };
6026
6026
  };
6027
6027
  function createDOMPurify() {
6028
- let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
6028
+ let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal$1();
6029
6029
  const DOMPurify = (root) => createDOMPurify(root);
6030
- DOMPurify.version = "3.3.1";
6030
+ DOMPurify.version = "3.3.2";
6031
6031
  DOMPurify.removed = [];
6032
6032
  if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
6033
6033
  DOMPurify.isSupported = false;
@@ -6228,7 +6228,7 @@ function createDOMPurify() {
6228
6228
  }
6229
6229
  if (USE_PROFILES) {
6230
6230
  ALLOWED_TAGS = addToSet({}, text);
6231
- ALLOWED_ATTR = [];
6231
+ ALLOWED_ATTR = create(null);
6232
6232
  if (USE_PROFILES.html === true) {
6233
6233
  addToSet(ALLOWED_TAGS, html$1);
6234
6234
  addToSet(ALLOWED_ATTR, html);
@@ -6249,6 +6249,12 @@ function createDOMPurify() {
6249
6249
  addToSet(ALLOWED_ATTR, xml);
6250
6250
  }
6251
6251
  }
6252
+ if (!objectHasOwnProperty(cfg, "ADD_TAGS")) {
6253
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
6254
+ }
6255
+ if (!objectHasOwnProperty(cfg, "ADD_ATTR")) {
6256
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
6257
+ }
6252
6258
  if (cfg.ADD_TAGS) {
6253
6259
  if (typeof cfg.ADD_TAGS === "function") {
6254
6260
  EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
@@ -6527,6 +6533,9 @@ function createDOMPurify() {
6527
6533
  return false;
6528
6534
  };
6529
6535
  const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
6536
+ if (FORBID_ATTR[lcName]) {
6537
+ return false;
6538
+ }
6530
6539
  if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document2 || value in formElement)) {
6531
6540
  return false;
6532
6541
  }
@@ -6593,7 +6602,7 @@ function createDOMPurify() {
6593
6602
  _removeAttribute(name, currentNode);
6594
6603
  value = SANITIZE_NAMED_PROPS_PREFIX + value;
6595
6604
  }
6596
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
6605
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
6597
6606
  _removeAttribute(name, currentNode);
6598
6607
  continue;
6599
6608
  }
@@ -10091,12 +10100,25 @@ const isEmptyObject = (val) => {
10091
10100
  };
10092
10101
  const isDate = kindOfTest("Date");
10093
10102
  const isFile = kindOfTest("File");
10103
+ const isReactNativeBlob = (value) => {
10104
+ return !!(value && typeof value.uri !== "undefined");
10105
+ };
10106
+ const isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
10094
10107
  const isBlob = kindOfTest("Blob");
10095
10108
  const isFileList = kindOfTest("FileList");
10096
10109
  const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
10110
+ function getGlobal2() {
10111
+ if (typeof globalThis !== "undefined") return globalThis;
10112
+ if (typeof self !== "undefined") return self;
10113
+ if (typeof window !== "undefined") return window;
10114
+ if (typeof global !== "undefined") return global;
10115
+ return {};
10116
+ }
10117
+ const G = getGlobal2();
10118
+ const FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
10097
10119
  const isFormData = (thing) => {
10098
10120
  let kind;
10099
- return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
10121
+ return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
10100
10122
  kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
10101
10123
  };
10102
10124
  const isURLSearchParams = kindOfTest("URLSearchParams");
@@ -10106,7 +10128,9 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = [
10106
10128
  "Response",
10107
10129
  "Headers"
10108
10130
  ].map(kindOfTest);
10109
- const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
10131
+ const trim = (str) => {
10132
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
10133
+ };
10110
10134
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
10111
10135
  if (obj === null || typeof obj === "undefined") {
10112
10136
  return;
@@ -10208,10 +10232,7 @@ const stripBOM = (content) => {
10208
10232
  return content;
10209
10233
  };
10210
10234
  const inherits = (constructor, superConstructor, props, descriptors) => {
10211
- constructor.prototype = Object.create(
10212
- superConstructor.prototype,
10213
- descriptors
10214
- );
10235
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
10215
10236
  Object.defineProperty(constructor.prototype, "constructor", {
10216
10237
  value: constructor,
10217
10238
  writable: true,
@@ -10410,6 +10431,8 @@ const utils$1 = {
10410
10431
  isUndefined,
10411
10432
  isDate,
10412
10433
  isFile,
10434
+ isReactNativeBlob,
10435
+ isReactNative,
10413
10436
  isBlob,
10414
10437
  isRegExp,
10415
10438
  isFunction: isFunction$1,
@@ -10456,6 +10479,9 @@ let AxiosError$1 = class AxiosError extends Error {
10456
10479
  const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
10457
10480
  axiosError.cause = error;
10458
10481
  axiosError.name = error.name;
10482
+ if (error.status != null && axiosError.status == null) {
10483
+ axiosError.status = error.status;
10484
+ }
10459
10485
  customProps && Object.assign(axiosError, customProps);
10460
10486
  return axiosError;
10461
10487
  }
@@ -10472,6 +10498,12 @@ let AxiosError$1 = class AxiosError extends Error {
10472
10498
  */
10473
10499
  constructor(message, code, config, request, response) {
10474
10500
  super(message);
10501
+ Object.defineProperty(this, "message", {
10502
+ value: message,
10503
+ enumerable: true,
10504
+ writable: true,
10505
+ configurable: true
10506
+ });
10475
10507
  this.name = "AxiosError";
10476
10508
  this.isAxiosError = true;
10477
10509
  code && (this.code = code);
@@ -10539,13 +10571,18 @@ function toFormData$1(obj, formData, options) {
10539
10571
  throw new TypeError("target must be an object");
10540
10572
  }
10541
10573
  formData = formData || new FormData();
10542
- options = utils$1.toFlatObject(options, {
10543
- metaTokens: true,
10544
- dots: false,
10545
- indexes: false
10546
- }, false, function defined(option, source2) {
10547
- return !utils$1.isUndefined(source2[option]);
10548
- });
10574
+ options = utils$1.toFlatObject(
10575
+ options,
10576
+ {
10577
+ metaTokens: true,
10578
+ dots: false,
10579
+ indexes: false
10580
+ },
10581
+ false,
10582
+ function defined(option, source2) {
10583
+ return !utils$1.isUndefined(source2[option]);
10584
+ }
10585
+ );
10549
10586
  const metaTokens = options.metaTokens;
10550
10587
  const visitor = options.visitor || defaultVisitor;
10551
10588
  const dots = options.dots;
@@ -10573,6 +10610,10 @@ function toFormData$1(obj, formData, options) {
10573
10610
  }
10574
10611
  function defaultVisitor(value, key, path) {
10575
10612
  let arr = value;
10613
+ if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
10614
+ formData.append(renderKey(path, key, dots), convertValue(value));
10615
+ return false;
10616
+ }
10576
10617
  if (value && !path && typeof value === "object") {
10577
10618
  if (utils$1.endsWith(key, "{}")) {
10578
10619
  key = metaTokens ? key : key.slice(0, -2);
@@ -10608,13 +10649,7 @@ function toFormData$1(obj, formData, options) {
10608
10649
  }
10609
10650
  stack.push(value);
10610
10651
  utils$1.forEach(value, function each(el2, key) {
10611
- const result = !(utils$1.isUndefined(el2) || el2 === null) && visitor.call(
10612
- formData,
10613
- el2,
10614
- utils$1.isString(key) ? key.trim() : key,
10615
- path,
10616
- exposedHelpers
10617
- );
10652
+ const result = !(utils$1.isUndefined(el2) || el2 === null) && visitor.call(formData, el2, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
10618
10653
  if (result === true) {
10619
10654
  build(el2, path ? path.concat(key) : [key]);
10620
10655
  }
@@ -10862,70 +10897,74 @@ function stringifySafely(rawValue, parser, encoder) {
10862
10897
  const defaults = {
10863
10898
  transitional: transitionalDefaults,
10864
10899
  adapter: ["xhr", "http", "fetch"],
10865
- transformRequest: [function transformRequest(data, headers) {
10866
- const contentType = headers.getContentType() || "";
10867
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
10868
- const isObjectPayload = utils$1.isObject(data);
10869
- if (isObjectPayload && utils$1.isHTMLForm(data)) {
10870
- data = new FormData(data);
10871
- }
10872
- const isFormData2 = utils$1.isFormData(data);
10873
- if (isFormData2) {
10874
- return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
10875
- }
10876
- if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
10877
- return data;
10878
- }
10879
- if (utils$1.isArrayBufferView(data)) {
10880
- return data.buffer;
10881
- }
10882
- if (utils$1.isURLSearchParams(data)) {
10883
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
10884
- return data.toString();
10885
- }
10886
- let isFileList2;
10887
- if (isObjectPayload) {
10888
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
10889
- return toURLEncodedForm(data, this.formSerializer).toString();
10900
+ transformRequest: [
10901
+ function transformRequest(data, headers) {
10902
+ const contentType = headers.getContentType() || "";
10903
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
10904
+ const isObjectPayload = utils$1.isObject(data);
10905
+ if (isObjectPayload && utils$1.isHTMLForm(data)) {
10906
+ data = new FormData(data);
10907
+ }
10908
+ const isFormData2 = utils$1.isFormData(data);
10909
+ if (isFormData2) {
10910
+ return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
10911
+ }
10912
+ if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
10913
+ return data;
10914
+ }
10915
+ if (utils$1.isArrayBufferView(data)) {
10916
+ return data.buffer;
10917
+ }
10918
+ if (utils$1.isURLSearchParams(data)) {
10919
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
10920
+ return data.toString();
10921
+ }
10922
+ let isFileList2;
10923
+ if (isObjectPayload) {
10924
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
10925
+ return toURLEncodedForm(data, this.formSerializer).toString();
10926
+ }
10927
+ if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
10928
+ const _FormData = this.env && this.env.FormData;
10929
+ return toFormData$1(
10930
+ isFileList2 ? { "files[]": data } : data,
10931
+ _FormData && new _FormData(),
10932
+ this.formSerializer
10933
+ );
10934
+ }
10890
10935
  }
10891
- if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
10892
- const _FormData = this.env && this.env.FormData;
10893
- return toFormData$1(
10894
- isFileList2 ? { "files[]": data } : data,
10895
- _FormData && new _FormData(),
10896
- this.formSerializer
10897
- );
10936
+ if (isObjectPayload || hasJSONContentType) {
10937
+ headers.setContentType("application/json", false);
10938
+ return stringifySafely(data);
10898
10939
  }
10899
- }
10900
- if (isObjectPayload || hasJSONContentType) {
10901
- headers.setContentType("application/json", false);
10902
- return stringifySafely(data);
10903
- }
10904
- return data;
10905
- }],
10906
- transformResponse: [function transformResponse(data) {
10907
- const transitional2 = this.transitional || defaults.transitional;
10908
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
10909
- const JSONRequested = this.responseType === "json";
10910
- if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
10911
10940
  return data;
10912
10941
  }
10913
- if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
10914
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
10915
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
10916
- try {
10917
- return JSON.parse(data, this.parseReviver);
10918
- } catch (e) {
10919
- if (strictJSONParsing) {
10920
- if (e.name === "SyntaxError") {
10921
- throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
10942
+ ],
10943
+ transformResponse: [
10944
+ function transformResponse(data) {
10945
+ const transitional2 = this.transitional || defaults.transitional;
10946
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
10947
+ const JSONRequested = this.responseType === "json";
10948
+ if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
10949
+ return data;
10950
+ }
10951
+ if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
10952
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
10953
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
10954
+ try {
10955
+ return JSON.parse(data, this.parseReviver);
10956
+ } catch (e) {
10957
+ if (strictJSONParsing) {
10958
+ if (e.name === "SyntaxError") {
10959
+ throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
10960
+ }
10961
+ throw e;
10922
10962
  }
10923
- throw e;
10924
10963
  }
10925
10964
  }
10965
+ return data;
10926
10966
  }
10927
- return data;
10928
- }],
10967
+ ],
10929
10968
  /**
10930
10969
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
10931
10970
  * timeout is not created.
@@ -10944,7 +10983,7 @@ const defaults = {
10944
10983
  },
10945
10984
  headers: {
10946
10985
  common: {
10947
- "Accept": "application/json, text/plain, */*",
10986
+ Accept: "application/json, text/plain, */*",
10948
10987
  "Content-Type": void 0
10949
10988
  }
10950
10989
  }
@@ -11210,7 +11249,14 @@ let AxiosHeaders$1 = class AxiosHeaders {
11210
11249
  return this;
11211
11250
  }
11212
11251
  };
11213
- AxiosHeaders$1.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
11252
+ AxiosHeaders$1.accessor([
11253
+ "Content-Type",
11254
+ "Content-Length",
11255
+ "Accept",
11256
+ "Accept-Encoding",
11257
+ "User-Agent",
11258
+ "Authorization"
11259
+ ]);
11214
11260
  utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
11215
11261
  let mapped = key[0].toUpperCase() + key.slice(1);
11216
11262
  return {
@@ -11256,13 +11302,15 @@ function settle(resolve, reject, response) {
11256
11302
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
11257
11303
  resolve(response);
11258
11304
  } else {
11259
- reject(new AxiosError$1(
11260
- "Request failed with status code " + response.status,
11261
- [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
11262
- response.config,
11263
- response.request,
11264
- response
11265
- ));
11305
+ reject(
11306
+ new AxiosError$1(
11307
+ "Request failed with status code " + response.status,
11308
+ [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
11309
+ response.config,
11310
+ response.request,
11311
+ response
11312
+ )
11313
+ );
11266
11314
  }
11267
11315
  }
11268
11316
  function parseProtocol(url) {
@@ -11360,11 +11408,14 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
11360
11408
  };
11361
11409
  const progressEventDecorator = (total, throttled) => {
11362
11410
  const lengthComputable = total != null;
11363
- return [(loaded) => throttled[0]({
11364
- lengthComputable,
11365
- total,
11366
- loaded
11367
- }), throttled[1]];
11411
+ return [
11412
+ (loaded) => throttled[0]({
11413
+ lengthComputable,
11414
+ total,
11415
+ loaded
11416
+ }),
11417
+ throttled[1]
11418
+ ];
11368
11419
  };
11369
11420
  const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
11370
11421
  const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
@@ -11505,27 +11556,29 @@ function mergeConfig$1(config1, config2) {
11505
11556
  validateStatus: mergeDirectKeys,
11506
11557
  headers: (a, b, prop2) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop2, true)
11507
11558
  };
11508
- utils$1.forEach(
11509
- Object.keys({ ...config1, ...config2 }),
11510
- function computeConfigValue(prop2) {
11511
- if (prop2 === "__proto__" || prop2 === "constructor" || prop2 === "prototype")
11512
- return;
11513
- const merge2 = utils$1.hasOwnProp(mergeMap, prop2) ? mergeMap[prop2] : mergeDeepProperties;
11514
- const configValue = merge2(config1[prop2], config2[prop2], prop2);
11515
- utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop2] = configValue);
11516
- }
11517
- );
11559
+ utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop2) {
11560
+ if (prop2 === "__proto__" || prop2 === "constructor" || prop2 === "prototype") return;
11561
+ const merge2 = utils$1.hasOwnProp(mergeMap, prop2) ? mergeMap[prop2] : mergeDeepProperties;
11562
+ const configValue = merge2(config1[prop2], config2[prop2], prop2);
11563
+ utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop2] = configValue);
11564
+ });
11518
11565
  return config;
11519
11566
  }
11520
11567
  const resolveConfig = (config) => {
11521
11568
  const newConfig = mergeConfig$1({}, config);
11522
11569
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
11523
11570
  newConfig.headers = headers = AxiosHeaders$1.from(headers);
11524
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
11571
+ newConfig.url = buildURL(
11572
+ buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
11573
+ config.params,
11574
+ config.paramsSerializer
11575
+ );
11525
11576
  if (auth) {
11526
11577
  headers.set(
11527
11578
  "Authorization",
11528
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
11579
+ "Basic " + btoa(
11580
+ (auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
11581
+ )
11529
11582
  );
11530
11583
  }
11531
11584
  if (utils$1.isFormData(data)) {
@@ -11587,13 +11640,17 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
11587
11640
  config,
11588
11641
  request
11589
11642
  };
11590
- settle(function _resolve(value) {
11591
- resolve(value);
11592
- done();
11593
- }, function _reject(err) {
11594
- reject(err);
11595
- done();
11596
- }, response);
11643
+ settle(
11644
+ function _resolve(value) {
11645
+ resolve(value);
11646
+ done();
11647
+ },
11648
+ function _reject(err) {
11649
+ reject(err);
11650
+ done();
11651
+ },
11652
+ response
11653
+ );
11597
11654
  request = null;
11598
11655
  }
11599
11656
  if ("onloadend" in request) {
@@ -11629,12 +11686,14 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
11629
11686
  if (_config.timeoutErrorMessage) {
11630
11687
  timeoutErrorMessage = _config.timeoutErrorMessage;
11631
11688
  }
11632
- reject(new AxiosError$1(
11633
- timeoutErrorMessage,
11634
- transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
11635
- config,
11636
- request
11637
- ));
11689
+ reject(
11690
+ new AxiosError$1(
11691
+ timeoutErrorMessage,
11692
+ transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
11693
+ config,
11694
+ request
11695
+ )
11696
+ );
11638
11697
  request = null;
11639
11698
  };
11640
11699
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -11674,7 +11733,13 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
11674
11733
  }
11675
11734
  const protocol = parseProtocol(_config.url);
11676
11735
  if (protocol && platform.protocols.indexOf(protocol) === -1) {
11677
- reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
11736
+ reject(
11737
+ new AxiosError$1(
11738
+ "Unsupported protocol " + protocol + ":",
11739
+ AxiosError$1.ERR_BAD_REQUEST,
11740
+ config
11741
+ )
11742
+ );
11678
11743
  return;
11679
11744
  }
11680
11745
  request.send(requestData || null);
@@ -11690,7 +11755,9 @@ const composeSignals = (signals, timeout) => {
11690
11755
  aborted = true;
11691
11756
  unsubscribe();
11692
11757
  const err = reason instanceof Error ? reason : this.reason;
11693
- controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
11758
+ controller.abort(
11759
+ err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)
11760
+ );
11694
11761
  }
11695
11762
  };
11696
11763
  let timer = timeout && setTimeout(() => {
@@ -11760,33 +11827,36 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
11760
11827
  onFinish && onFinish(e);
11761
11828
  }
11762
11829
  };
11763
- return new ReadableStream({
11764
- async pull(controller) {
11765
- try {
11766
- const { done: done2, value } = await iterator2.next();
11767
- if (done2) {
11768
- _onFinish();
11769
- controller.close();
11770
- return;
11771
- }
11772
- let len = value.byteLength;
11773
- if (onProgress) {
11774
- let loadedBytes = bytes += len;
11775
- onProgress(loadedBytes);
11830
+ return new ReadableStream(
11831
+ {
11832
+ async pull(controller) {
11833
+ try {
11834
+ const { done: done2, value } = await iterator2.next();
11835
+ if (done2) {
11836
+ _onFinish();
11837
+ controller.close();
11838
+ return;
11839
+ }
11840
+ let len = value.byteLength;
11841
+ if (onProgress) {
11842
+ let loadedBytes = bytes += len;
11843
+ onProgress(loadedBytes);
11844
+ }
11845
+ controller.enqueue(new Uint8Array(value));
11846
+ } catch (err) {
11847
+ _onFinish(err);
11848
+ throw err;
11776
11849
  }
11777
- controller.enqueue(new Uint8Array(value));
11778
- } catch (err) {
11779
- _onFinish(err);
11780
- throw err;
11850
+ },
11851
+ cancel(reason) {
11852
+ _onFinish(reason);
11853
+ return iterator2.return();
11781
11854
  }
11782
11855
  },
11783
- cancel(reason) {
11784
- _onFinish(reason);
11785
- return iterator2.return();
11856
+ {
11857
+ highWaterMark: 2
11786
11858
  }
11787
- }, {
11788
- highWaterMark: 2
11789
- });
11859
+ );
11790
11860
  };
11791
11861
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
11792
11862
  const { isFunction } = utils$1;
@@ -11794,10 +11864,7 @@ const globalFetchAPI = (({ Request, Response }) => ({
11794
11864
  Request,
11795
11865
  Response
11796
11866
  }))(utils$1.global);
11797
- const {
11798
- ReadableStream: ReadableStream$1,
11799
- TextEncoder: TextEncoder$1
11800
- } = utils$1.global;
11867
+ const { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 } = utils$1.global;
11801
11868
  const test = (fn, ...args) => {
11802
11869
  try {
11803
11870
  return !!fn(...args);
@@ -11806,9 +11873,13 @@ const test = (fn, ...args) => {
11806
11873
  }
11807
11874
  };
11808
11875
  const factory = (env) => {
11809
- env = utils$1.merge.call({
11810
- skipUndefined: true
11811
- }, globalFetchAPI, env);
11876
+ env = utils$1.merge.call(
11877
+ {
11878
+ skipUndefined: true
11879
+ },
11880
+ globalFetchAPI,
11881
+ env
11882
+ );
11812
11883
  const { fetch: envFetch, Request, Response } = env;
11813
11884
  const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
11814
11885
  const isRequestSupported = isFunction(Request);
@@ -11841,7 +11912,11 @@ const factory = (env) => {
11841
11912
  if (method) {
11842
11913
  return method.call(res);
11843
11914
  }
11844
- throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
11915
+ throw new AxiosError$1(
11916
+ `Response type '${type}' is not supported`,
11917
+ AxiosError$1.ERR_NOT_SUPPORT,
11918
+ config
11919
+ );
11845
11920
  });
11846
11921
  });
11847
11922
  })();
@@ -11890,7 +11965,10 @@ const factory = (env) => {
11890
11965
  } = resolveConfig(config);
11891
11966
  let _fetch = envFetch || fetch;
11892
11967
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
11893
- let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
11968
+ let composedSignal = composeSignals(
11969
+ [signal, cancelToken && cancelToken.toAbortSignal()],
11970
+ timeout
11971
+ );
11894
11972
  let request = null;
11895
11973
  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
11896
11974
  composedSignal.unsubscribe();
@@ -11950,7 +12028,10 @@ const factory = (env) => {
11950
12028
  );
11951
12029
  }
11952
12030
  responseType = responseType || "text";
11953
- let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
12031
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
12032
+ response,
12033
+ config
12034
+ );
11954
12035
  !isStreamResponse && unsubscribe && unsubscribe();
11955
12036
  return await new Promise((resolve, reject) => {
11956
12037
  settle(resolve, reject, {
@@ -11966,7 +12047,13 @@ const factory = (env) => {
11966
12047
  unsubscribe && unsubscribe();
11967
12048
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
11968
12049
  throw Object.assign(
11969
- new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request, err && err.response),
12050
+ new AxiosError$1(
12051
+ "Network Error",
12052
+ AxiosError$1.ERR_NETWORK,
12053
+ config,
12054
+ request,
12055
+ err && err.response
12056
+ ),
11970
12057
  {
11971
12058
  cause: err.cause || err
11972
12059
  }
@@ -11980,11 +12067,7 @@ const seedCache = /* @__PURE__ */ new Map();
11980
12067
  const getFetch = (config) => {
11981
12068
  let env = config && config.env || {};
11982
12069
  const { fetch: fetch2, Request, Response } = env;
11983
- const seeds = [
11984
- Request,
11985
- Response,
11986
- fetch2
11987
- ];
12070
+ const seeds = [Request, Response, fetch2];
11988
12071
  let len = seeds.length, i = len, seed, target2, map2 = seedCache;
11989
12072
  while (i--) {
11990
12073
  seed = seeds[i];
@@ -12069,39 +12152,35 @@ function throwIfCancellationRequested(config) {
12069
12152
  function dispatchRequest(config) {
12070
12153
  throwIfCancellationRequested(config);
12071
12154
  config.headers = AxiosHeaders$1.from(config.headers);
12072
- config.data = transformData.call(
12073
- config,
12074
- config.transformRequest
12075
- );
12155
+ config.data = transformData.call(config, config.transformRequest);
12076
12156
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
12077
12157
  config.headers.setContentType("application/x-www-form-urlencoded", false);
12078
12158
  }
12079
12159
  const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
12080
- return adapter(config).then(function onAdapterResolution(response) {
12081
- throwIfCancellationRequested(config);
12082
- response.data = transformData.call(
12083
- config,
12084
- config.transformResponse,
12085
- response
12086
- );
12087
- response.headers = AxiosHeaders$1.from(response.headers);
12088
- return response;
12089
- }, function onAdapterRejection(reason) {
12090
- if (!isCancel$1(reason)) {
12160
+ return adapter(config).then(
12161
+ function onAdapterResolution(response) {
12091
12162
  throwIfCancellationRequested(config);
12092
- if (reason && reason.response) {
12093
- reason.response.data = transformData.call(
12094
- config,
12095
- config.transformResponse,
12096
- reason.response
12097
- );
12098
- reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
12163
+ response.data = transformData.call(config, config.transformResponse, response);
12164
+ response.headers = AxiosHeaders$1.from(response.headers);
12165
+ return response;
12166
+ },
12167
+ function onAdapterRejection(reason) {
12168
+ if (!isCancel$1(reason)) {
12169
+ throwIfCancellationRequested(config);
12170
+ if (reason && reason.response) {
12171
+ reason.response.data = transformData.call(
12172
+ config,
12173
+ config.transformResponse,
12174
+ reason.response
12175
+ );
12176
+ reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
12177
+ }
12099
12178
  }
12179
+ return Promise.reject(reason);
12100
12180
  }
12101
- return Promise.reject(reason);
12102
- });
12181
+ );
12103
12182
  }
12104
- const VERSION$1 = "1.13.5";
12183
+ const VERSION$1 = "1.13.6";
12105
12184
  const validators$1 = {};
12106
12185
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
12107
12186
  validators$1[type] = function validator2(thing) {
@@ -12151,7 +12230,10 @@ function assertOptions(options, schema, allowUnknown) {
12151
12230
  const value = options[opt];
12152
12231
  const result = value === void 0 || validator2(value, opt, options);
12153
12232
  if (result !== true) {
12154
- throw new AxiosError$1("option " + opt + " must be " + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
12233
+ throw new AxiosError$1(
12234
+ "option " + opt + " must be " + result,
12235
+ AxiosError$1.ERR_BAD_OPTION_VALUE
12236
+ );
12155
12237
  }
12156
12238
  continue;
12157
12239
  }
@@ -12211,12 +12293,16 @@ let Axios$1 = class Axios {
12211
12293
  config = mergeConfig$1(this.defaults, config);
12212
12294
  const { transitional: transitional2, paramsSerializer, headers } = config;
12213
12295
  if (transitional2 !== void 0) {
12214
- validator.assertOptions(transitional2, {
12215
- silentJSONParsing: validators.transitional(validators.boolean),
12216
- forcedJSONParsing: validators.transitional(validators.boolean),
12217
- clarifyTimeoutError: validators.transitional(validators.boolean),
12218
- legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
12219
- }, false);
12296
+ validator.assertOptions(
12297
+ transitional2,
12298
+ {
12299
+ silentJSONParsing: validators.transitional(validators.boolean),
12300
+ forcedJSONParsing: validators.transitional(validators.boolean),
12301
+ clarifyTimeoutError: validators.transitional(validators.boolean),
12302
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
12303
+ },
12304
+ false
12305
+ );
12220
12306
  }
12221
12307
  if (paramsSerializer != null) {
12222
12308
  if (utils$1.isFunction(paramsSerializer)) {
@@ -12224,10 +12310,14 @@ let Axios$1 = class Axios {
12224
12310
  serialize: paramsSerializer
12225
12311
  };
12226
12312
  } else {
12227
- validator.assertOptions(paramsSerializer, {
12228
- encode: validators.function,
12229
- serialize: validators.function
12230
- }, true);
12313
+ validator.assertOptions(
12314
+ paramsSerializer,
12315
+ {
12316
+ encode: validators.function,
12317
+ serialize: validators.function
12318
+ },
12319
+ true
12320
+ );
12231
12321
  }
12232
12322
  }
12233
12323
  if (config.allowAbsoluteUrls !== void 0) ;
@@ -12236,21 +12326,19 @@ let Axios$1 = class Axios {
12236
12326
  } else {
12237
12327
  config.allowAbsoluteUrls = true;
12238
12328
  }
12239
- validator.assertOptions(config, {
12240
- baseUrl: validators.spelling("baseURL"),
12241
- withXsrfToken: validators.spelling("withXSRFToken")
12242
- }, true);
12243
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
12244
- let contextHeaders = headers && utils$1.merge(
12245
- headers.common,
12246
- headers[config.method]
12247
- );
12248
- headers && utils$1.forEach(
12249
- ["delete", "get", "head", "post", "put", "patch", "common"],
12250
- (method) => {
12251
- delete headers[method];
12252
- }
12329
+ validator.assertOptions(
12330
+ config,
12331
+ {
12332
+ baseUrl: validators.spelling("baseURL"),
12333
+ withXsrfToken: validators.spelling("withXSRFToken")
12334
+ },
12335
+ true
12253
12336
  );
12337
+ config.method = (config.method || this.defaults.method || "get").toLowerCase();
12338
+ let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
12339
+ headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
12340
+ delete headers[method];
12341
+ });
12254
12342
  config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
12255
12343
  const requestInterceptorChain = [];
12256
12344
  let synchronousRequestInterceptors = true;
@@ -12317,24 +12405,28 @@ let Axios$1 = class Axios {
12317
12405
  };
12318
12406
  utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
12319
12407
  Axios$1.prototype[method] = function(url, config) {
12320
- return this.request(mergeConfig$1(config || {}, {
12321
- method,
12322
- url,
12323
- data: (config || {}).data
12324
- }));
12408
+ return this.request(
12409
+ mergeConfig$1(config || {}, {
12410
+ method,
12411
+ url,
12412
+ data: (config || {}).data
12413
+ })
12414
+ );
12325
12415
  };
12326
12416
  });
12327
12417
  utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
12328
12418
  function generateHTTPMethod(isForm) {
12329
12419
  return function httpMethod(url, data, config) {
12330
- return this.request(mergeConfig$1(config || {}, {
12331
- method,
12332
- headers: isForm ? {
12333
- "Content-Type": "multipart/form-data"
12334
- } : {},
12335
- url,
12336
- data
12337
- }));
12420
+ return this.request(
12421
+ mergeConfig$1(config || {}, {
12422
+ method,
12423
+ headers: isForm ? {
12424
+ "Content-Type": "multipart/form-data"
12425
+ } : {},
12426
+ url,
12427
+ data
12428
+ })
12429
+ );
12338
12430
  };
12339
12431
  }
12340
12432
  Axios$1.prototype[method] = generateHTTPMethod();
@@ -16276,7 +16368,7 @@ function v4$1(options, buf, offset) {
16276
16368
  }
16277
16369
  return _v4$1(options);
16278
16370
  }
16279
- const SOCKET_NAMESPACE = "stsinstrumentmanager/stsmonitor";
16371
+ const SOCKET_NAMESPACE$1 = "stsinstrumentmanager/stsmonitor";
16280
16372
  class SocketClientSubscriber extends SocketIoClient {
16281
16373
  #options;
16282
16374
  #id;
@@ -16287,7 +16379,7 @@ class SocketClientSubscriber extends SocketIoClient {
16287
16379
  this.#id = v4$1();
16288
16380
  this.#options = options;
16289
16381
  this.LogDebugMessage(chalk.cyan(`${this.logPrefix}Start()`));
16290
- const url = `${this.#options.instrumentManagerEndpoint}:${this.#options.instrumentManagerPort}/${SOCKET_NAMESPACE}/`;
16382
+ const url = `${this.#options.instrumentManagerEndpoint}:${this.#options.instrumentManagerPort}/${SOCKET_NAMESPACE$1}/`;
16291
16383
  this.LogDebugMessage(chalk.cyan(`${this.logPrefix}SetupSocket() url: [${url}]`));
16292
16384
  this.WithAddress(url).WithLogger(this.#options.logger ?? stsutils.defaultLogger).SetupSocket();
16293
16385
  }