@indfnd/utils 0.1.35 → 0.1.36

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/ind-utils.es.js +407 -527
  3. package/dist/ind-utils.umd.cjs +20 -20
  4. package/package.json +1 -1
  5. package/src/api/com.ts +5 -2
  6. package/src/api/item.ts +9 -4
  7. package/src/api/platform/oss.ts +75 -75
  8. package/types/api/com.d.ts +4 -2
  9. package/types/api/com.d.ts.map +1 -1
  10. package/types/api/index-desc.d.ts +4 -2
  11. package/types/api/index-desc.d.ts.map +1 -1
  12. package/types/api/index.d.ts +7 -7
  13. package/types/api/item.d.ts +6 -4
  14. package/types/api/item.d.ts.map +1 -1
  15. package/types/api/permission.d.ts +2 -2
  16. package/types/api/platform/base64.d.ts +5 -5
  17. package/types/api/platform/config.d.ts +2 -2
  18. package/types/api/platform/dict.d.ts +6 -4
  19. package/types/api/platform/dict.d.ts.map +1 -1
  20. package/types/api/platform/index.d.ts +6 -6
  21. package/types/api/platform/menu.d.ts +21 -11
  22. package/types/api/platform/menu.d.ts.map +1 -1
  23. package/types/api/platform/oss.d.ts +16 -8
  24. package/types/api/platform/oss.d.ts.map +1 -1
  25. package/types/api/platform/user.d.ts +19 -12
  26. package/types/api/platform/user.d.ts.map +1 -1
  27. package/types/api/user.d.ts +2 -2
  28. package/types/config/base.config.d.ts +33 -33
  29. package/types/config/dev.config.d.ts +3 -3
  30. package/types/config/index.d.ts +6 -6
  31. package/types/config/prod.config.d.ts +3 -3
  32. package/types/index.d.ts +4 -4
  33. package/types/utils/base64.d.ts +22 -22
  34. package/types/utils/blob.d.ts +3 -3
  35. package/types/utils/cache/dict-cache.d.ts +3 -3
  36. package/types/utils/cache/index-desc.d.ts +4 -4
  37. package/types/utils/cache/index.d.ts +4 -4
  38. package/types/utils/cache/permission-cache.d.ts +4 -4
  39. package/types/utils/cache/user-cache.d.ts +4 -4
  40. package/types/utils/date.d.ts +4 -4
  41. package/types/utils/enum.d.ts +43 -39
  42. package/types/utils/event.d.ts +13 -5
  43. package/types/utils/excel.d.ts +4 -4
  44. package/types/utils/half-year.d.ts +6 -6
  45. package/types/utils/index.d.ts +20 -20
  46. package/types/utils/is-type.d.ts +33 -33
  47. package/types/utils/mime-type.d.ts +67 -67
  48. package/types/utils/number.d.ts +8 -8
  49. package/types/utils/quarter.d.ts +7 -7
  50. package/types/utils/request/axios.extends.d.ts +18 -6
  51. package/types/utils/request/cache-rules.d.ts +3 -3
  52. package/types/utils/request/content-type.d.ts +9 -9
  53. package/types/utils/request/index.d.ts +16 -13
  54. package/types/utils/request/interceptors.d.ts +4 -4
  55. package/types/utils/request/url-params.d.ts +6 -6
  56. package/types/utils/sm3/index.d.ts +6 -6
  57. package/types/utils/sm3/sm3.d.ts +3 -3
  58. package/types/utils/storage.d.ts +8 -8
  59. package/types/utils/table.d.ts +40 -31
  60. package/types/utils/token.d.ts +3 -3
  61. package/types/utils/uuid.d.ts +4 -4
  62. package/types/utils/validate.d.ts +5 -5
@@ -96,8 +96,8 @@ const INDEX_DESC_KEY = "indexDesc";
96
96
  function getIndexDescCache() {
97
97
  return getLocalStorage(INDEX_DESC_KEY);
98
98
  }
99
- function setIndexDescCache(data) {
100
- setLocalStorage(INDEX_DESC_KEY, data);
99
+ function setIndexDescCache(data2) {
100
+ setLocalStorage(INDEX_DESC_KEY, data2);
101
101
  }
102
102
  function clearIndexDescCache() {
103
103
  removeLocalStorage(INDEX_DESC_KEY);
@@ -106,8 +106,8 @@ const PERMISSION_KEY = "ibp-sc-permission";
106
106
  function getPermissionCache() {
107
107
  return getSessionStorage(PERMISSION_KEY);
108
108
  }
109
- function setPermissionCache(data) {
110
- setSessionStorage(PERMISSION_KEY, data);
109
+ function setPermissionCache(data2) {
110
+ setSessionStorage(PERMISSION_KEY, data2);
111
111
  }
112
112
  function clearPermissionCache() {
113
113
  removeSessionStorage(PERMISSION_KEY);
@@ -116,8 +116,8 @@ const USER_INFO_KEY = "lambo-userInfo";
116
116
  function getUserInfoCache() {
117
117
  return getSessionStorage(USER_INFO_KEY);
118
118
  }
119
- function setUserInfoCache(data) {
120
- setSessionStorage(USER_INFO_KEY, data);
119
+ function setUserInfoCache(data2) {
120
+ setSessionStorage(USER_INFO_KEY, data2);
121
121
  }
122
122
  function clearUserInfoCache() {
123
123
  removeSessionStorage(USER_INFO_KEY);
@@ -366,10 +366,10 @@ InterceptorManager$1.prototype.forEach = function forEach2(fn) {
366
366
  var InterceptorManager_1 = InterceptorManager$1;
367
367
  var utils$d = utils$g;
368
368
  var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName) {
369
- utils$d.forEach(headers, function processHeader(value, name2) {
370
- if (name2 !== normalizedName && name2.toUpperCase() === normalizedName.toUpperCase()) {
369
+ utils$d.forEach(headers, function processHeader(value, name) {
370
+ if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
371
371
  headers[normalizedName] = value;
372
- delete headers[name2];
372
+ delete headers[name];
373
373
  }
374
374
  });
375
375
  };
@@ -392,7 +392,8 @@ var enhanceError$2 = function enhanceError(error, config2, code, request2, respo
392
392
  columnNumber: this.columnNumber,
393
393
  stack: this.stack,
394
394
  config: this.config,
395
- code: this.code
395
+ code: this.code,
396
+ status: this.response && this.response.status ? this.response.status : null
396
397
  };
397
398
  };
398
399
  return error;
@@ -420,9 +421,9 @@ var settle$1 = function settle(resolve, reject, response) {
420
421
  var utils$c = utils$g;
421
422
  var cookies$1 = utils$c.isStandardBrowserEnv() ? function standardBrowserEnv() {
422
423
  return {
423
- write: function write(name2, value, expires, path, domain, secure) {
424
+ write: function write(name, value, expires, path, domain, secure) {
424
425
  var cookie = [];
425
- cookie.push(name2 + "=" + encodeURIComponent(value));
426
+ cookie.push(name + "=" + encodeURIComponent(value));
426
427
  if (utils$c.isNumber(expires)) {
427
428
  cookie.push("expires=" + new Date(expires).toGMTString());
428
429
  }
@@ -437,12 +438,12 @@ var cookies$1 = utils$c.isStandardBrowserEnv() ? function standardBrowserEnv() {
437
438
  }
438
439
  document.cookie = cookie.join("; ");
439
440
  },
440
- read: function read(name2) {
441
- var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name2 + ")=([^;]*)"));
441
+ read: function read(name) {
442
+ var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
442
443
  return match ? decodeURIComponent(match[3]) : null;
443
444
  },
444
- remove: function remove(name2) {
445
- this.write(name2, "", Date.now() - 864e5);
445
+ remove: function remove(name) {
446
+ this.write(name, "", Date.now() - 864e5);
446
447
  }
447
448
  };
448
449
  }() : function nonStandardBrowserEnv() {
@@ -548,6 +549,14 @@ var isURLSameOrigin$1 = utils$a.isStandardBrowserEnv() ? function standardBrowse
548
549
  return true;
549
550
  };
550
551
  }();
552
+ function Cancel$3(message) {
553
+ this.message = message;
554
+ }
555
+ Cancel$3.prototype.toString = function toString() {
556
+ return "Cancel" + (this.message ? ": " + this.message : "");
557
+ };
558
+ Cancel$3.prototype.__CANCEL__ = true;
559
+ var Cancel_1 = Cancel$3;
551
560
  var utils$9 = utils$g;
552
561
  var settle2 = settle$1;
553
562
  var cookies = cookies$1;
@@ -556,11 +565,22 @@ var buildFullPath2 = buildFullPath$1;
556
565
  var parseHeaders2 = parseHeaders$1;
557
566
  var isURLSameOrigin = isURLSameOrigin$1;
558
567
  var createError2 = createError$2;
568
+ var defaults$6 = defaults_1;
569
+ var Cancel$2 = Cancel_1;
559
570
  var xhr = function xhrAdapter(config2) {
560
571
  return new Promise(function dispatchXhrRequest(resolve, reject) {
561
572
  var requestData = config2.data;
562
573
  var requestHeaders = config2.headers;
563
574
  var responseType = config2.responseType;
575
+ var onCanceled;
576
+ function done() {
577
+ if (config2.cancelToken) {
578
+ config2.cancelToken.unsubscribe(onCanceled);
579
+ }
580
+ if (config2.signal) {
581
+ config2.signal.removeEventListener("abort", onCanceled);
582
+ }
583
+ }
564
584
  if (utils$9.isFormData(requestData)) {
565
585
  delete requestHeaders["Content-Type"];
566
586
  }
@@ -587,7 +607,13 @@ var xhr = function xhrAdapter(config2) {
587
607
  config: config2,
588
608
  request: request2
589
609
  };
590
- settle2(resolve, reject, response);
610
+ settle2(function _resolve(value) {
611
+ resolve(value);
612
+ done();
613
+ }, function _reject(err) {
614
+ reject(err);
615
+ done();
616
+ }, response);
591
617
  request2 = null;
592
618
  }
593
619
  if ("onloadend" in request2) {
@@ -615,14 +641,15 @@ var xhr = function xhrAdapter(config2) {
615
641
  request2 = null;
616
642
  };
617
643
  request2.ontimeout = function handleTimeout() {
618
- var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
644
+ var timeoutErrorMessage = config2.timeout ? "timeout of " + config2.timeout + "ms exceeded" : "timeout exceeded";
645
+ var transitional2 = config2.transitional || defaults$6.transitional;
619
646
  if (config2.timeoutErrorMessage) {
620
647
  timeoutErrorMessage = config2.timeoutErrorMessage;
621
648
  }
622
649
  reject(createError2(
623
650
  timeoutErrorMessage,
624
651
  config2,
625
- config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
652
+ transitional2.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
626
653
  request2
627
654
  ));
628
655
  request2 = null;
@@ -654,15 +681,19 @@ var xhr = function xhrAdapter(config2) {
654
681
  if (typeof config2.onUploadProgress === "function" && request2.upload) {
655
682
  request2.upload.addEventListener("progress", config2.onUploadProgress);
656
683
  }
657
- if (config2.cancelToken) {
658
- config2.cancelToken.promise.then(function onCanceled(cancel) {
684
+ if (config2.cancelToken || config2.signal) {
685
+ onCanceled = function(cancel) {
659
686
  if (!request2) {
660
687
  return;
661
688
  }
689
+ reject(!cancel || cancel && cancel.type ? new Cancel$2("canceled") : cancel);
662
690
  request2.abort();
663
- reject(cancel);
664
691
  request2 = null;
665
- });
692
+ };
693
+ config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
694
+ if (config2.signal) {
695
+ config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
696
+ }
666
697
  }
667
698
  if (!requestData) {
668
699
  requestData = null;
@@ -710,33 +741,33 @@ var defaults$5 = {
710
741
  clarifyTimeoutError: false
711
742
  },
712
743
  adapter: getDefaultAdapter(),
713
- transformRequest: [function transformRequest(data, headers) {
744
+ transformRequest: [function transformRequest(data2, headers) {
714
745
  normalizeHeaderName2(headers, "Accept");
715
746
  normalizeHeaderName2(headers, "Content-Type");
716
- if (utils$8.isFormData(data) || utils$8.isArrayBuffer(data) || utils$8.isBuffer(data) || utils$8.isStream(data) || utils$8.isFile(data) || utils$8.isBlob(data)) {
717
- return data;
747
+ if (utils$8.isFormData(data2) || utils$8.isArrayBuffer(data2) || utils$8.isBuffer(data2) || utils$8.isStream(data2) || utils$8.isFile(data2) || utils$8.isBlob(data2)) {
748
+ return data2;
718
749
  }
719
- if (utils$8.isArrayBufferView(data)) {
720
- return data.buffer;
750
+ if (utils$8.isArrayBufferView(data2)) {
751
+ return data2.buffer;
721
752
  }
722
- if (utils$8.isURLSearchParams(data)) {
753
+ if (utils$8.isURLSearchParams(data2)) {
723
754
  setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
724
- return data.toString();
755
+ return data2.toString();
725
756
  }
726
- if (utils$8.isObject(data) || headers && headers["Content-Type"] === "application/json") {
757
+ if (utils$8.isObject(data2) || headers && headers["Content-Type"] === "application/json") {
727
758
  setContentTypeIfUnset(headers, "application/json");
728
- return stringifySafely(data);
759
+ return stringifySafely(data2);
729
760
  }
730
- return data;
761
+ return data2;
731
762
  }],
732
- transformResponse: [function transformResponse(data) {
733
- var transitional2 = this.transitional;
763
+ transformResponse: [function transformResponse(data2) {
764
+ var transitional2 = this.transitional || defaults$5.transitional;
734
765
  var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
735
766
  var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
736
767
  var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
737
- if (strictJSONParsing || forcedJSONParsing && utils$8.isString(data) && data.length) {
768
+ if (strictJSONParsing || forcedJSONParsing && utils$8.isString(data2) && data2.length) {
738
769
  try {
739
- return JSON.parse(data);
770
+ return JSON.parse(data2);
740
771
  } catch (e) {
741
772
  if (strictJSONParsing) {
742
773
  if (e.name === "SyntaxError") {
@@ -746,7 +777,7 @@ var defaults$5 = {
746
777
  }
747
778
  }
748
779
  }
749
- return data;
780
+ return data2;
750
781
  }],
751
782
  timeout: 0,
752
783
  xsrfCookieName: "XSRF-TOKEN",
@@ -755,11 +786,11 @@ var defaults$5 = {
755
786
  maxBodyLength: -1,
756
787
  validateStatus: function validateStatus(status) {
757
788
  return status >= 200 && status < 300;
758
- }
759
- };
760
- defaults$5.headers = {
761
- common: {
762
- "Accept": "application/json, text/plain, */*"
789
+ },
790
+ headers: {
791
+ common: {
792
+ "Accept": "application/json, text/plain, */*"
793
+ }
763
794
  }
764
795
  };
765
796
  utils$8.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
@@ -771,12 +802,12 @@ utils$8.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
771
802
  var defaults_1 = defaults$5;
772
803
  var utils$7 = utils$g;
773
804
  var defaults$4 = defaults_1;
774
- var transformData$1 = function transformData(data, headers, fns) {
805
+ var transformData$1 = function transformData(data2, headers, fns) {
775
806
  var context = this || defaults$4;
776
807
  utils$7.forEach(fns, function transform(fn) {
777
- data = fn.call(context, data, headers);
808
+ data2 = fn.call(context, data2, headers);
778
809
  });
779
- return data;
810
+ return data2;
780
811
  };
781
812
  var isCancel$1 = function isCancel(value) {
782
813
  return !!(value && value.__CANCEL__);
@@ -785,10 +816,14 @@ var utils$6 = utils$g;
785
816
  var transformData2 = transformData$1;
786
817
  var isCancel2 = isCancel$1;
787
818
  var defaults$3 = defaults_1;
819
+ var Cancel$1 = Cancel_1;
788
820
  function throwIfCancellationRequested(config2) {
789
821
  if (config2.cancelToken) {
790
822
  config2.cancelToken.throwIfRequested();
791
823
  }
824
+ if (config2.signal && config2.signal.aborted) {
825
+ throw new Cancel$1("canceled");
826
+ }
792
827
  }
793
828
  var dispatchRequest$1 = function dispatchRequest(config2) {
794
829
  throwIfCancellationRequested(config2);
@@ -839,34 +874,6 @@ var utils$5 = utils$g;
839
874
  var mergeConfig$2 = function mergeConfig(config1, config2) {
840
875
  config2 = config2 || {};
841
876
  var config3 = {};
842
- var valueFromConfig2Keys = ["url", "method", "data"];
843
- var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
844
- var defaultToConfig2Keys = [
845
- "baseURL",
846
- "transformRequest",
847
- "transformResponse",
848
- "paramsSerializer",
849
- "timeout",
850
- "timeoutMessage",
851
- "withCredentials",
852
- "adapter",
853
- "responseType",
854
- "xsrfCookieName",
855
- "xsrfHeaderName",
856
- "onUploadProgress",
857
- "onDownloadProgress",
858
- "decompress",
859
- "maxContentLength",
860
- "maxBodyLength",
861
- "maxRedirects",
862
- "transport",
863
- "httpAgent",
864
- "httpsAgent",
865
- "cancelToken",
866
- "socketPath",
867
- "responseEncoding"
868
- ];
869
- var directMergeKeys = ["validateStatus"];
870
877
  function getMergedValue(target, source2) {
871
878
  if (utils$5.isPlainObject(target) && utils$5.isPlainObject(source2)) {
872
879
  return utils$5.merge(target, source2);
@@ -879,141 +886,69 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
879
886
  }
880
887
  function mergeDeepProperties(prop) {
881
888
  if (!utils$5.isUndefined(config2[prop])) {
882
- config3[prop] = getMergedValue(config1[prop], config2[prop]);
889
+ return getMergedValue(config1[prop], config2[prop]);
883
890
  } else if (!utils$5.isUndefined(config1[prop])) {
884
- config3[prop] = getMergedValue(void 0, config1[prop]);
891
+ return getMergedValue(void 0, config1[prop]);
885
892
  }
886
893
  }
887
- utils$5.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
894
+ function valueFromConfig2(prop) {
888
895
  if (!utils$5.isUndefined(config2[prop])) {
889
- config3[prop] = getMergedValue(void 0, config2[prop]);
896
+ return getMergedValue(void 0, config2[prop]);
890
897
  }
891
- });
892
- utils$5.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
893
- utils$5.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
898
+ }
899
+ function defaultToConfig2(prop) {
894
900
  if (!utils$5.isUndefined(config2[prop])) {
895
- config3[prop] = getMergedValue(void 0, config2[prop]);
901
+ return getMergedValue(void 0, config2[prop]);
896
902
  } else if (!utils$5.isUndefined(config1[prop])) {
897
- config3[prop] = getMergedValue(void 0, config1[prop]);
903
+ return getMergedValue(void 0, config1[prop]);
898
904
  }
899
- });
900
- utils$5.forEach(directMergeKeys, function merge3(prop) {
905
+ }
906
+ function mergeDirectKeys(prop) {
901
907
  if (prop in config2) {
902
- config3[prop] = getMergedValue(config1[prop], config2[prop]);
908
+ return getMergedValue(config1[prop], config2[prop]);
903
909
  } else if (prop in config1) {
904
- config3[prop] = getMergedValue(void 0, config1[prop]);
905
- }
906
- });
907
- var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
908
- var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
909
- return axiosKeys.indexOf(key) === -1;
910
+ return getMergedValue(void 0, config1[prop]);
911
+ }
912
+ }
913
+ var mergeMap = {
914
+ "url": valueFromConfig2,
915
+ "method": valueFromConfig2,
916
+ "data": valueFromConfig2,
917
+ "baseURL": defaultToConfig2,
918
+ "transformRequest": defaultToConfig2,
919
+ "transformResponse": defaultToConfig2,
920
+ "paramsSerializer": defaultToConfig2,
921
+ "timeout": defaultToConfig2,
922
+ "timeoutMessage": defaultToConfig2,
923
+ "withCredentials": defaultToConfig2,
924
+ "adapter": defaultToConfig2,
925
+ "responseType": defaultToConfig2,
926
+ "xsrfCookieName": defaultToConfig2,
927
+ "xsrfHeaderName": defaultToConfig2,
928
+ "onUploadProgress": defaultToConfig2,
929
+ "onDownloadProgress": defaultToConfig2,
930
+ "decompress": defaultToConfig2,
931
+ "maxContentLength": defaultToConfig2,
932
+ "maxBodyLength": defaultToConfig2,
933
+ "transport": defaultToConfig2,
934
+ "httpAgent": defaultToConfig2,
935
+ "httpsAgent": defaultToConfig2,
936
+ "cancelToken": defaultToConfig2,
937
+ "socketPath": defaultToConfig2,
938
+ "responseEncoding": defaultToConfig2,
939
+ "validateStatus": mergeDirectKeys
940
+ };
941
+ utils$5.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
942
+ var merge3 = mergeMap[prop] || mergeDeepProperties;
943
+ var configValue = merge3(prop);
944
+ utils$5.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config3[prop] = configValue);
910
945
  });
911
- utils$5.forEach(otherKeys, mergeDeepProperties);
912
946
  return config3;
913
947
  };
914
- const name = "axios";
915
- const version = "0.21.4";
916
- const description = "Promise based HTTP client for the browser and node.js";
917
- const main = "index.js";
918
- const scripts = {
919
- test: "grunt test",
920
- start: "node ./sandbox/server.js",
921
- build: "NODE_ENV=production grunt build",
922
- preversion: "npm test",
923
- version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
924
- postversion: "git push && git push --tags",
925
- examples: "node ./examples/server.js",
926
- coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
927
- fix: "eslint --fix lib/**/*.js"
928
- };
929
- const repository = {
930
- type: "git",
931
- url: "https://github.com/axios/axios.git"
932
- };
933
- const keywords = [
934
- "xhr",
935
- "http",
936
- "ajax",
937
- "promise",
938
- "node"
939
- ];
940
- const author = "Matt Zabriskie";
941
- const license = "MIT";
942
- const bugs = {
943
- url: "https://github.com/axios/axios/issues"
944
- };
945
- const homepage = "https://axios-http.com";
946
- const devDependencies = {
947
- coveralls: "^3.0.0",
948
- "es6-promise": "^4.2.4",
949
- grunt: "^1.3.0",
950
- "grunt-banner": "^0.6.0",
951
- "grunt-cli": "^1.2.0",
952
- "grunt-contrib-clean": "^1.1.0",
953
- "grunt-contrib-watch": "^1.0.0",
954
- "grunt-eslint": "^23.0.0",
955
- "grunt-karma": "^4.0.0",
956
- "grunt-mocha-test": "^0.13.3",
957
- "grunt-ts": "^6.0.0-beta.19",
958
- "grunt-webpack": "^4.0.2",
959
- "istanbul-instrumenter-loader": "^1.0.0",
960
- "jasmine-core": "^2.4.1",
961
- karma: "^6.3.2",
962
- "karma-chrome-launcher": "^3.1.0",
963
- "karma-firefox-launcher": "^2.1.0",
964
- "karma-jasmine": "^1.1.1",
965
- "karma-jasmine-ajax": "^0.1.13",
966
- "karma-safari-launcher": "^1.0.0",
967
- "karma-sauce-launcher": "^4.3.6",
968
- "karma-sinon": "^1.0.5",
969
- "karma-sourcemap-loader": "^0.3.8",
970
- "karma-webpack": "^4.0.2",
971
- "load-grunt-tasks": "^3.5.2",
972
- minimist: "^1.2.0",
973
- mocha: "^8.2.1",
974
- sinon: "^4.5.0",
975
- "terser-webpack-plugin": "^4.2.3",
976
- typescript: "^4.0.5",
977
- "url-search-params": "^0.10.0",
978
- webpack: "^4.44.2",
979
- "webpack-dev-server": "^3.11.0"
980
- };
981
- const browser = {
982
- "./lib/adapters/http.js": "./lib/adapters/xhr.js"
983
- };
984
- const jsdelivr = "dist/axios.min.js";
985
- const unpkg = "dist/axios.min.js";
986
- const typings = "./index.d.ts";
987
- const dependencies = {
988
- "follow-redirects": "^1.14.0"
989
- };
990
- const bundlesize = [
991
- {
992
- path: "./dist/axios.min.js",
993
- threshold: "5kB"
994
- }
995
- ];
996
- var require$$0$1 = {
997
- name,
998
- version,
999
- description,
1000
- main,
1001
- scripts,
1002
- repository,
1003
- keywords,
1004
- author,
1005
- license,
1006
- bugs,
1007
- homepage,
1008
- devDependencies,
1009
- browser,
1010
- jsdelivr,
1011
- unpkg,
1012
- typings,
1013
- dependencies,
1014
- bundlesize
1015
- };
1016
- var pkg = require$$0$1;
948
+ var data = {
949
+ "version": "0.24.0"
950
+ };
951
+ var VERSION = data.version;
1017
952
  var validators$1 = {};
1018
953
  ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type, i) {
1019
954
  validators$1[type] = function validator2(thing) {
@@ -1021,34 +956,20 @@ var validators$1 = {};
1021
956
  };
1022
957
  });
1023
958
  var deprecatedWarnings = {};
1024
- var currentVerArr = pkg.version.split(".");
1025
- function isOlderVersion(version2, thanVersion) {
1026
- var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
1027
- var destVer = version2.split(".");
1028
- for (var i = 0; i < 3; i++) {
1029
- if (pkgVersionArr[i] > destVer[i]) {
1030
- return true;
1031
- } else if (pkgVersionArr[i] < destVer[i]) {
1032
- return false;
1033
- }
1034
- }
1035
- return false;
1036
- }
1037
- validators$1.transitional = function transitional(validator2, version2, message) {
1038
- var isDeprecated = version2 && isOlderVersion(version2);
959
+ validators$1.transitional = function transitional(validator2, version, message) {
1039
960
  function formatMessage(opt, desc) {
1040
- return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
961
+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
1041
962
  }
1042
963
  return function(value, opt, opts) {
1043
964
  if (validator2 === false) {
1044
- throw new Error(formatMessage(opt, " has been removed in " + version2));
965
+ throw new Error(formatMessage(opt, " has been removed" + (version ? " in " + version : "")));
1045
966
  }
1046
- if (isDeprecated && !deprecatedWarnings[opt]) {
967
+ if (version && !deprecatedWarnings[opt]) {
1047
968
  deprecatedWarnings[opt] = true;
1048
969
  console.warn(
1049
970
  formatMessage(
1050
971
  opt,
1051
- " has been deprecated since v" + version2 + " and will be removed in the near future"
972
+ " has been deprecated since v" + version + " and will be removed in the near future"
1052
973
  )
1053
974
  );
1054
975
  }
@@ -1078,7 +999,6 @@ function assertOptions(options, schema, allowUnknown) {
1078
999
  }
1079
1000
  }
1080
1001
  var validator$1 = {
1081
- isOlderVersion,
1082
1002
  assertOptions,
1083
1003
  validators: validators$1
1084
1004
  };
@@ -1114,9 +1034,9 @@ Axios$1.prototype.request = function request(config2) {
1114
1034
  var transitional2 = config2.transitional;
1115
1035
  if (transitional2 !== void 0) {
1116
1036
  validator.assertOptions(transitional2, {
1117
- silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
1118
- forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
1119
- clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
1037
+ silentJSONParsing: validators.transitional(validators.boolean),
1038
+ forcedJSONParsing: validators.transitional(validators.boolean),
1039
+ clarifyTimeoutError: validators.transitional(validators.boolean)
1120
1040
  }, false);
1121
1041
  }
1122
1042
  var requestInterceptorChain = [];
@@ -1178,23 +1098,15 @@ utils$4.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
1178
1098
  };
1179
1099
  });
1180
1100
  utils$4.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
1181
- Axios$1.prototype[method] = function(url, data, config2) {
1101
+ Axios$1.prototype[method] = function(url, data2, config2) {
1182
1102
  return this.request(mergeConfig$1(config2 || {}, {
1183
1103
  method,
1184
1104
  url,
1185
- data
1105
+ data: data2
1186
1106
  }));
1187
1107
  };
1188
1108
  });
1189
1109
  var Axios_1 = Axios$1;
1190
- function Cancel$1(message) {
1191
- this.message = message;
1192
- }
1193
- Cancel$1.prototype.toString = function toString() {
1194
- return "Cancel" + (this.message ? ": " + this.message : "");
1195
- };
1196
- Cancel$1.prototype.__CANCEL__ = true;
1197
- var Cancel_1 = Cancel$1;
1198
1110
  var Cancel = Cancel_1;
1199
1111
  function CancelToken(executor) {
1200
1112
  if (typeof executor !== "function") {
@@ -1205,6 +1117,27 @@ function CancelToken(executor) {
1205
1117
  resolvePromise = resolve;
1206
1118
  });
1207
1119
  var token = this;
1120
+ this.promise.then(function(cancel) {
1121
+ if (!token._listeners)
1122
+ return;
1123
+ var i;
1124
+ var l = token._listeners.length;
1125
+ for (i = 0; i < l; i++) {
1126
+ token._listeners[i](cancel);
1127
+ }
1128
+ token._listeners = null;
1129
+ });
1130
+ this.promise.then = function(onfulfilled) {
1131
+ var _resolve;
1132
+ var promise = new Promise(function(resolve) {
1133
+ token.subscribe(resolve);
1134
+ _resolve = resolve;
1135
+ }).then(onfulfilled);
1136
+ promise.cancel = function reject() {
1137
+ token.unsubscribe(_resolve);
1138
+ };
1139
+ return promise;
1140
+ };
1208
1141
  executor(function cancel(message) {
1209
1142
  if (token.reason) {
1210
1143
  return;
@@ -1218,6 +1151,26 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
1218
1151
  throw this.reason;
1219
1152
  }
1220
1153
  };
1154
+ CancelToken.prototype.subscribe = function subscribe(listener) {
1155
+ if (this.reason) {
1156
+ listener(this.reason);
1157
+ return;
1158
+ }
1159
+ if (this._listeners) {
1160
+ this._listeners.push(listener);
1161
+ } else {
1162
+ this._listeners = [listener];
1163
+ }
1164
+ };
1165
+ CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
1166
+ if (!this._listeners) {
1167
+ return;
1168
+ }
1169
+ var index = this._listeners.indexOf(listener);
1170
+ if (index !== -1) {
1171
+ this._listeners.splice(index, 1);
1172
+ }
1173
+ };
1221
1174
  CancelToken.source = function source() {
1222
1175
  var cancel;
1223
1176
  var token = new CancelToken(function executor(c) {
@@ -1247,16 +1200,17 @@ function createInstance(defaultConfig) {
1247
1200
  var instance2 = bind$2(Axios.prototype.request, context);
1248
1201
  utils$3.extend(instance2, Axios.prototype, context);
1249
1202
  utils$3.extend(instance2, context);
1203
+ instance2.create = function create(instanceConfig) {
1204
+ return createInstance(mergeConfig2(defaultConfig, instanceConfig));
1205
+ };
1250
1206
  return instance2;
1251
1207
  }
1252
1208
  var axios$1 = createInstance(defaults$2);
1253
1209
  axios$1.Axios = Axios;
1254
- axios$1.create = function create(instanceConfig) {
1255
- return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
1256
- };
1257
1210
  axios$1.Cancel = Cancel_1;
1258
1211
  axios$1.CancelToken = CancelToken_1;
1259
1212
  axios$1.isCancel = isCancel$1;
1213
+ axios$1.VERSION = data.version;
1260
1214
  axios$1.all = function all(promises) {
1261
1215
  return Promise.all(promises);
1262
1216
  };
@@ -1525,26 +1479,26 @@ if (getProto) {
1525
1479
  INTRINSICS["%Error.prototype%"] = errorProto;
1526
1480
  }
1527
1481
  }
1528
- var doEval = function doEval2(name2) {
1482
+ var doEval = function doEval2(name) {
1529
1483
  var value;
1530
- if (name2 === "%AsyncFunction%") {
1484
+ if (name === "%AsyncFunction%") {
1531
1485
  value = getEvalledConstructor("async function () {}");
1532
- } else if (name2 === "%GeneratorFunction%") {
1486
+ } else if (name === "%GeneratorFunction%") {
1533
1487
  value = getEvalledConstructor("function* () {}");
1534
- } else if (name2 === "%AsyncGeneratorFunction%") {
1488
+ } else if (name === "%AsyncGeneratorFunction%") {
1535
1489
  value = getEvalledConstructor("async function* () {}");
1536
- } else if (name2 === "%AsyncGenerator%") {
1490
+ } else if (name === "%AsyncGenerator%") {
1537
1491
  var fn = doEval2("%AsyncGeneratorFunction%");
1538
1492
  if (fn) {
1539
1493
  value = fn.prototype;
1540
1494
  }
1541
- } else if (name2 === "%AsyncIteratorPrototype%") {
1495
+ } else if (name === "%AsyncIteratorPrototype%") {
1542
1496
  var gen = doEval2("%AsyncGenerator%");
1543
1497
  if (gen && getProto) {
1544
1498
  value = getProto(gen.prototype);
1545
1499
  }
1546
1500
  }
1547
- INTRINSICS[name2] = value;
1501
+ INTRINSICS[name] = value;
1548
1502
  return value;
1549
1503
  };
1550
1504
  var LEGACY_ALIASES = {
@@ -1623,8 +1577,8 @@ var stringToPath = function stringToPath2(string) {
1623
1577
  });
1624
1578
  return result;
1625
1579
  };
1626
- var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
1627
- var intrinsicName = name2;
1580
+ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
1581
+ var intrinsicName = name;
1628
1582
  var alias;
1629
1583
  if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
1630
1584
  alias = LEGACY_ALIASES[intrinsicName];
@@ -1636,7 +1590,7 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
1636
1590
  value = doEval(intrinsicName);
1637
1591
  }
1638
1592
  if (typeof value === "undefined" && !allowMissing) {
1639
- throw new $TypeError$3("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
1593
+ throw new $TypeError$3("intrinsic " + name + " exists, but is not available. Please file an issue!");
1640
1594
  }
1641
1595
  return {
1642
1596
  alias,
@@ -1644,19 +1598,19 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
1644
1598
  value
1645
1599
  };
1646
1600
  }
1647
- throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!");
1601
+ throw new $SyntaxError$1("intrinsic " + name + " does not exist!");
1648
1602
  };
1649
- var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
1650
- if (typeof name2 !== "string" || name2.length === 0) {
1603
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1604
+ if (typeof name !== "string" || name.length === 0) {
1651
1605
  throw new $TypeError$3("intrinsic name must be a non-empty string");
1652
1606
  }
1653
1607
  if (arguments.length > 1 && typeof allowMissing !== "boolean") {
1654
1608
  throw new $TypeError$3('"allowMissing" argument must be a boolean');
1655
1609
  }
1656
- if ($exec(/^%?[^%]*%?$/, name2) === null) {
1610
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
1657
1611
  throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1658
1612
  }
1659
- var parts = stringToPath(name2);
1613
+ var parts = stringToPath(name);
1660
1614
  var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
1661
1615
  var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
1662
1616
  var intrinsicRealName = intrinsic.name;
@@ -1684,7 +1638,7 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
1684
1638
  } else if (value != null) {
1685
1639
  if (!(part in value)) {
1686
1640
  if (!allowMissing) {
1687
- throw new $TypeError$3("base intrinsic for " + name2 + " exists, but the property is not available.");
1641
+ throw new $TypeError$3("base intrinsic for " + name + " exists, but the property is not available.");
1688
1642
  }
1689
1643
  return void 0;
1690
1644
  }
@@ -1866,9 +1820,9 @@ var setFunctionLength = function setFunctionLength2(fn, length) {
1866
1820
  var GetIntrinsic$1 = getIntrinsic;
1867
1821
  var callBind = callBind$1.exports;
1868
1822
  var $indexOf = callBind(GetIntrinsic$1("String.prototype.indexOf"));
1869
- var callBound$1 = function callBoundIntrinsic(name2, allowMissing) {
1870
- var intrinsic = GetIntrinsic$1(name2, !!allowMissing);
1871
- if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
1823
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
1824
+ var intrinsic = GetIntrinsic$1(name, !!allowMissing);
1825
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
1872
1826
  return callBind(intrinsic);
1873
1827
  }
1874
1828
  return intrinsic;
@@ -2005,9 +1959,9 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2005
1959
  return inspect_(value, opts, depth + 1, seen);
2006
1960
  }
2007
1961
  if (typeof obj === "function" && !isRegExp$2(obj)) {
2008
- var name2 = nameOf(obj);
1962
+ var name = nameOf(obj);
2009
1963
  var keys = arrObjKeys(obj, inspect2);
2010
- return "[Function" + (name2 ? ": " + name2 : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
1964
+ return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
2011
1965
  }
2012
1966
  if (isSymbol(obj)) {
2013
1967
  var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
@@ -2536,7 +2490,7 @@ var compactQueue = function compactQueue2(queue) {
2536
2490
  }
2537
2491
  };
2538
2492
  var arrayToObject = function arrayToObject2(source2, options) {
2539
- var obj = options && options.plainObjects ? { __proto__: null } : {};
2493
+ var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2540
2494
  for (var i = 0; i < source2.length; ++i) {
2541
2495
  if (typeof source2[i] !== "undefined") {
2542
2496
  obj[i] = source2[i];
@@ -2548,7 +2502,7 @@ var merge = function merge2(target, source2, options) {
2548
2502
  if (!source2) {
2549
2503
  return target;
2550
2504
  }
2551
- if (typeof source2 !== "object" && typeof source2 !== "function") {
2505
+ if (typeof source2 !== "object") {
2552
2506
  if (isArray$3(target)) {
2553
2507
  target.push(source2);
2554
2508
  } else if (target && typeof target === "object") {
@@ -2598,7 +2552,7 @@ var assign = function assignSingleSource(target, source2) {
2598
2552
  return acc;
2599
2553
  }, target);
2600
2554
  };
2601
- var decode = function(str, defaultDecoder, charset) {
2555
+ var decode = function(str, decoder, charset) {
2602
2556
  var strWithoutPlus = str.replace(/\+/g, " ");
2603
2557
  if (charset === "iso-8859-1") {
2604
2558
  return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -2609,7 +2563,6 @@ var decode = function(str, defaultDecoder, charset) {
2609
2563
  return strWithoutPlus;
2610
2564
  }
2611
2565
  };
2612
- var limit = 1024;
2613
2566
  var encode = function encode2(str, defaultEncoder, charset, kind, format) {
2614
2567
  if (str.length === 0) {
2615
2568
  return str;
@@ -2626,32 +2579,27 @@ var encode = function encode2(str, defaultEncoder, charset, kind, format) {
2626
2579
  });
2627
2580
  }
2628
2581
  var out = "";
2629
- for (var j = 0; j < string.length; j += limit) {
2630
- var segment = string.length >= limit ? string.slice(j, j + limit) : string;
2631
- var arr = [];
2632
- for (var i = 0; i < segment.length; ++i) {
2633
- var c = segment.charCodeAt(i);
2634
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats$2.RFC1738 && (c === 40 || c === 41)) {
2635
- arr[arr.length] = segment.charAt(i);
2636
- continue;
2637
- }
2638
- if (c < 128) {
2639
- arr[arr.length] = hexTable[c];
2640
- continue;
2641
- }
2642
- if (c < 2048) {
2643
- arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
2644
- continue;
2645
- }
2646
- if (c < 55296 || c >= 57344) {
2647
- arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
2648
- continue;
2649
- }
2650
- i += 1;
2651
- c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
2652
- arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
2582
+ for (var i = 0; i < string.length; ++i) {
2583
+ var c = string.charCodeAt(i);
2584
+ if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats$2.RFC1738 && (c === 40 || c === 41)) {
2585
+ out += string.charAt(i);
2586
+ continue;
2587
+ }
2588
+ if (c < 128) {
2589
+ out = out + hexTable[c];
2590
+ continue;
2591
+ }
2592
+ if (c < 2048) {
2593
+ out = out + (hexTable[192 | c >> 6] + hexTable[128 | c & 63]);
2594
+ continue;
2653
2595
  }
2654
- out += arr.join("");
2596
+ if (c < 55296 || c >= 57344) {
2597
+ out = out + (hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]);
2598
+ continue;
2599
+ }
2600
+ i += 1;
2601
+ c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023);
2602
+ out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
2655
2603
  }
2656
2604
  return out;
2657
2605
  };
@@ -2734,17 +2682,12 @@ var defaultFormat = formats$1["default"];
2734
2682
  var defaults$1 = {
2735
2683
  addQueryPrefix: false,
2736
2684
  allowDots: false,
2737
- allowEmptyArrays: false,
2738
- arrayFormat: "indices",
2739
2685
  charset: "utf-8",
2740
2686
  charsetSentinel: false,
2741
- commaRoundTrip: false,
2742
2687
  delimiter: "&",
2743
2688
  encode: true,
2744
- encodeDotInKeys: false,
2745
2689
  encoder: utils$1.encode,
2746
2690
  encodeValuesOnly: false,
2747
- filter: void 0,
2748
2691
  format: defaultFormat,
2749
2692
  formatter: formats$1.formatters[defaultFormat],
2750
2693
  indices: false,
@@ -2758,7 +2701,7 @@ var isNonNullishPrimitive = function isNonNullishPrimitive2(v) {
2758
2701
  return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
2759
2702
  };
2760
2703
  var sentinel = {};
2761
- var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate2, format, formatter, encodeValuesOnly, charset, sideChannel2) {
2704
+ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate2, format, formatter, encodeValuesOnly, charset, sideChannel2) {
2762
2705
  var obj = object;
2763
2706
  var tmpSc = sideChannel2;
2764
2707
  var step = 0;
@@ -2818,19 +2761,14 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
2818
2761
  var keys = Object.keys(obj);
2819
2762
  objKeys = sort ? keys.sort(sort) : keys;
2820
2763
  }
2821
- var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
2822
- var adjustedPrefix = commaRoundTrip && isArray$2(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
2823
- if (allowEmptyArrays && isArray$2(obj) && obj.length === 0) {
2824
- return adjustedPrefix + "[]";
2825
- }
2764
+ var adjustedPrefix = commaRoundTrip && isArray$2(obj) && obj.length === 1 ? prefix + "[]" : prefix;
2826
2765
  for (var j = 0; j < objKeys.length; ++j) {
2827
2766
  var key = objKeys[j];
2828
- var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
2767
+ var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
2829
2768
  if (skipNulls && value === null) {
2830
2769
  continue;
2831
2770
  }
2832
- var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
2833
- var keyPrefix = isArray$2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
2771
+ var keyPrefix = isArray$2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
2834
2772
  sideChannel2.set(object, step);
2835
2773
  var valueSideChannel = getSideChannel2();
2836
2774
  valueSideChannel.set(sentinel, sideChannel2);
@@ -2839,10 +2777,8 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
2839
2777
  keyPrefix,
2840
2778
  generateArrayPrefix,
2841
2779
  commaRoundTrip,
2842
- allowEmptyArrays,
2843
2780
  strictNullHandling,
2844
2781
  skipNulls,
2845
- encodeDotInKeys,
2846
2782
  generateArrayPrefix === "comma" && encodeValuesOnly && isArray$2(obj) ? null : encoder,
2847
2783
  filter,
2848
2784
  sort,
@@ -2861,12 +2797,6 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
2861
2797
  if (!opts) {
2862
2798
  return defaults$1;
2863
2799
  }
2864
- if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
2865
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
2866
- }
2867
- if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
2868
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
2869
- }
2870
2800
  if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
2871
2801
  throw new TypeError("Encoder has to be a function.");
2872
2802
  }
@@ -2886,29 +2816,13 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
2886
2816
  if (typeof opts.filter === "function" || isArray$2(opts.filter)) {
2887
2817
  filter = opts.filter;
2888
2818
  }
2889
- var arrayFormat;
2890
- if (opts.arrayFormat in arrayPrefixGenerators) {
2891
- arrayFormat = opts.arrayFormat;
2892
- } else if ("indices" in opts) {
2893
- arrayFormat = opts.indices ? "indices" : "repeat";
2894
- } else {
2895
- arrayFormat = defaults$1.arrayFormat;
2896
- }
2897
- if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
2898
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2899
- }
2900
- var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults$1.allowDots : !!opts.allowDots;
2901
2819
  return {
2902
2820
  addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
2903
- allowDots,
2904
- allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults$1.allowEmptyArrays,
2905
- arrayFormat,
2821
+ allowDots: typeof opts.allowDots === "undefined" ? defaults$1.allowDots : !!opts.allowDots,
2906
2822
  charset,
2907
2823
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$1.charsetSentinel,
2908
- commaRoundTrip: !!opts.commaRoundTrip,
2909
2824
  delimiter: typeof opts.delimiter === "undefined" ? defaults$1.delimiter : opts.delimiter,
2910
2825
  encode: typeof opts.encode === "boolean" ? opts.encode : defaults$1.encode,
2911
- encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults$1.encodeDotInKeys,
2912
2826
  encoder: typeof opts.encoder === "function" ? opts.encoder : defaults$1.encoder,
2913
2827
  encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
2914
2828
  filter,
@@ -2936,8 +2850,19 @@ var stringify_1 = function(object, opts) {
2936
2850
  if (typeof obj !== "object" || obj === null) {
2937
2851
  return "";
2938
2852
  }
2939
- var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
2940
- var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
2853
+ var arrayFormat;
2854
+ if (opts && opts.arrayFormat in arrayPrefixGenerators) {
2855
+ arrayFormat = opts.arrayFormat;
2856
+ } else if (opts && "indices" in opts) {
2857
+ arrayFormat = opts.indices ? "indices" : "repeat";
2858
+ } else {
2859
+ arrayFormat = "indices";
2860
+ }
2861
+ var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
2862
+ if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
2863
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2864
+ }
2865
+ var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
2941
2866
  if (!objKeys) {
2942
2867
  objKeys = Object.keys(obj);
2943
2868
  }
@@ -2947,19 +2872,16 @@ var stringify_1 = function(object, opts) {
2947
2872
  var sideChannel2 = getSideChannel2();
2948
2873
  for (var i = 0; i < objKeys.length; ++i) {
2949
2874
  var key = objKeys[i];
2950
- var value = obj[key];
2951
- if (options.skipNulls && value === null) {
2875
+ if (options.skipNulls && obj[key] === null) {
2952
2876
  continue;
2953
2877
  }
2954
2878
  pushToArray(keys, stringify$1(
2955
- value,
2879
+ obj[key],
2956
2880
  key,
2957
2881
  generateArrayPrefix,
2958
2882
  commaRoundTrip,
2959
- options.allowEmptyArrays,
2960
2883
  options.strictNullHandling,
2961
2884
  options.skipNulls,
2962
- options.encodeDotInKeys,
2963
2885
  options.encode ? options.encoder : null,
2964
2886
  options.filter,
2965
2887
  options.sort,
@@ -2988,39 +2910,31 @@ var has = Object.prototype.hasOwnProperty;
2988
2910
  var isArray$1 = Array.isArray;
2989
2911
  var defaults = {
2990
2912
  allowDots: false,
2991
- allowEmptyArrays: false,
2992
2913
  allowPrototypes: false,
2993
2914
  allowSparse: false,
2994
2915
  arrayLimit: 20,
2995
2916
  charset: "utf-8",
2996
2917
  charsetSentinel: false,
2997
2918
  comma: false,
2998
- decodeDotInKeys: false,
2999
2919
  decoder: utils.decode,
3000
2920
  delimiter: "&",
3001
2921
  depth: 5,
3002
- duplicates: "combine",
3003
2922
  ignoreQueryPrefix: false,
3004
2923
  interpretNumericEntities: false,
3005
2924
  parameterLimit: 1e3,
3006
2925
  parseArrays: true,
3007
2926
  plainObjects: false,
3008
- strictDepth: false,
3009
- strictNullHandling: false,
3010
- throwOnLimitExceeded: false
2927
+ strictNullHandling: false
3011
2928
  };
3012
2929
  var interpretNumericEntities = function(str) {
3013
2930
  return str.replace(/&#(\d+);/g, function($0, numberStr) {
3014
2931
  return String.fromCharCode(parseInt(numberStr, 10));
3015
2932
  });
3016
2933
  };
3017
- var parseArrayValue = function(val, options, currentArrayLength) {
2934
+ var parseArrayValue = function(val, options) {
3018
2935
  if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
3019
2936
  return val.split(",");
3020
2937
  }
3021
- if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
3022
- throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
3023
- }
3024
2938
  return val;
3025
2939
  };
3026
2940
  var isoSentinel = "utf8=%26%2310003%3B";
@@ -3028,15 +2942,8 @@ var charsetSentinel = "utf8=%E2%9C%93";
3028
2942
  var parseValues = function parseQueryStringValues(str, options) {
3029
2943
  var obj = { __proto__: null };
3030
2944
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
3031
- cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3032
- var limit2 = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
3033
- var parts = cleanStr.split(
3034
- options.delimiter,
3035
- options.throwOnLimitExceeded ? limit2 + 1 : limit2
3036
- );
3037
- if (options.throwOnLimitExceeded && parts.length > limit2) {
3038
- throw new RangeError("Parameter limit exceeded. Only " + limit2 + " parameter" + (limit2 === 1 ? "" : "s") + " allowed.");
3039
- }
2945
+ var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
2946
+ var parts = cleanStr.split(options.delimiter, limit);
3040
2947
  var skipIndex = -1;
3041
2948
  var i;
3042
2949
  var charset = options.charset;
@@ -3060,63 +2967,51 @@ var parseValues = function parseQueryStringValues(str, options) {
3060
2967
  var part = parts[i];
3061
2968
  var bracketEqualsPos = part.indexOf("]=");
3062
2969
  var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
3063
- var key;
3064
- var val;
2970
+ var key, val;
3065
2971
  if (pos === -1) {
3066
2972
  key = options.decoder(part, defaults.decoder, charset, "key");
3067
2973
  val = options.strictNullHandling ? null : "";
3068
2974
  } else {
3069
2975
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
3070
2976
  val = utils.maybeMap(
3071
- parseArrayValue(
3072
- part.slice(pos + 1),
3073
- options,
3074
- isArray$1(obj[key]) ? obj[key].length : 0
3075
- ),
2977
+ parseArrayValue(part.slice(pos + 1), options),
3076
2978
  function(encodedVal) {
3077
2979
  return options.decoder(encodedVal, defaults.decoder, charset, "value");
3078
2980
  }
3079
2981
  );
3080
2982
  }
3081
2983
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
3082
- val = interpretNumericEntities(String(val));
2984
+ val = interpretNumericEntities(val);
3083
2985
  }
3084
2986
  if (part.indexOf("[]=") > -1) {
3085
2987
  val = isArray$1(val) ? [val] : val;
3086
2988
  }
3087
- var existing = has.call(obj, key);
3088
- if (existing && options.duplicates === "combine") {
2989
+ if (has.call(obj, key)) {
3089
2990
  obj[key] = utils.combine(obj[key], val);
3090
- } else if (!existing || options.duplicates === "last") {
2991
+ } else {
3091
2992
  obj[key] = val;
3092
2993
  }
3093
2994
  }
3094
2995
  return obj;
3095
2996
  };
3096
2997
  var parseObject = function(chain, val, options, valuesParsed) {
3097
- var currentArrayLength = 0;
3098
- if (chain.length > 0 && chain[chain.length - 1] === "[]") {
3099
- var parentKey = chain.slice(0, -1).join("");
3100
- currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
3101
- }
3102
- var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
2998
+ var leaf = valuesParsed ? val : parseArrayValue(val, options);
3103
2999
  for (var i = chain.length - 1; i >= 0; --i) {
3104
3000
  var obj;
3105
3001
  var root = chain[i];
3106
3002
  if (root === "[]" && options.parseArrays) {
3107
- obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf);
3003
+ obj = [].concat(leaf);
3108
3004
  } else {
3109
- obj = options.plainObjects ? { __proto__: null } : {};
3005
+ obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3110
3006
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
3111
- var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
3112
- var index = parseInt(decodedRoot, 10);
3113
- if (!options.parseArrays && decodedRoot === "") {
3007
+ var index = parseInt(cleanRoot, 10);
3008
+ if (!options.parseArrays && cleanRoot === "") {
3114
3009
  obj = { 0: leaf };
3115
- } else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
3010
+ } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
3116
3011
  obj = [];
3117
3012
  obj[index] = leaf;
3118
- } else if (decodedRoot !== "__proto__") {
3119
- obj[decodedRoot] = leaf;
3013
+ } else if (cleanRoot !== "__proto__") {
3014
+ obj[cleanRoot] = leaf;
3120
3015
  }
3121
3016
  }
3122
3017
  leaf = obj;
@@ -3152,9 +3047,6 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
3152
3047
  keys.push(segment[1]);
3153
3048
  }
3154
3049
  if (segment) {
3155
- if (options.strictDepth === true) {
3156
- throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
3157
- }
3158
3050
  keys.push("[" + key.slice(segment.index) + "]");
3159
3051
  }
3160
3052
  return parseObject(keys, val, options, valuesParsed);
@@ -3163,58 +3055,39 @@ var normalizeParseOptions = function normalizeParseOptions2(opts) {
3163
3055
  if (!opts) {
3164
3056
  return defaults;
3165
3057
  }
3166
- if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
3167
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3168
- }
3169
- if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
3170
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
3171
- }
3172
- if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
3058
+ if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
3173
3059
  throw new TypeError("Decoder has to be a function.");
3174
3060
  }
3175
3061
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
3176
3062
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3177
3063
  }
3178
- if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
3179
- throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
3180
- }
3181
3064
  var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
3182
- var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
3183
- if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
3184
- throw new TypeError("The duplicates option must be either combine, first, or last");
3185
- }
3186
- var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
3187
3065
  return {
3188
- allowDots,
3189
- allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
3066
+ allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
3190
3067
  allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
3191
3068
  allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
3192
3069
  arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
3193
3070
  charset,
3194
3071
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
3195
3072
  comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
3196
- decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
3197
3073
  decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
3198
3074
  delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
3199
3075
  depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
3200
- duplicates,
3201
3076
  ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
3202
3077
  interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
3203
3078
  parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
3204
3079
  parseArrays: opts.parseArrays !== false,
3205
3080
  plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
3206
- strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
3207
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
3208
- throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
3081
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
3209
3082
  };
3210
3083
  };
3211
3084
  var parse$1 = function(str, opts) {
3212
3085
  var options = normalizeParseOptions(opts);
3213
3086
  if (str === "" || str === null || typeof str === "undefined") {
3214
- return options.plainObjects ? { __proto__: null } : {};
3087
+ return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3215
3088
  }
3216
3089
  var tempObj = typeof str === "string" ? parseValues(str, options) : str;
3217
- var obj = options.plainObjects ? { __proto__: null } : {};
3090
+ var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3218
3091
  var keys = Object.keys(tempObj);
3219
3092
  for (var i = 0; i < keys.length; ++i) {
3220
3093
  var key = keys[i];
@@ -3234,7 +3107,6 @@ var lib = {
3234
3107
  parse,
3235
3108
  stringify: stringify2
3236
3109
  };
3237
- var qs = lib;
3238
3110
  function getUrlParams() {
3239
3111
  const url = location.search;
3240
3112
  const theRequest = new Object();
@@ -3394,7 +3266,7 @@ function requestInterceptors(config2) {
3394
3266
  const contentType = getContentType(config2.headers);
3395
3267
  if (config2.method === "post") {
3396
3268
  if (contentType === CONTENT_TYPE.form) {
3397
- config2.data = qs.stringify(config2.data);
3269
+ config2.data = lib.stringify(config2.data);
3398
3270
  }
3399
3271
  } else if (config2.method === "get")
3400
3272
  ;
@@ -3402,23 +3274,23 @@ function requestInterceptors(config2) {
3402
3274
  }
3403
3275
  function responseInterceptors(response) {
3404
3276
  var _a;
3405
- let data = response.data;
3277
+ let data2 = response.data;
3406
3278
  const contentType = getContentType(response.headers);
3407
3279
  if (contentType !== CONTENT_TYPE.json) {
3408
- return data;
3280
+ return data2;
3409
3281
  }
3410
3282
  if (typeof response.data === "string") {
3411
- data = JSON.parse(response.data);
3283
+ data2 = JSON.parse(response.data);
3412
3284
  }
3413
- const code = data.code;
3285
+ const code = data2.code;
3414
3286
  switch (code) {
3415
3287
  case SUCCESS_CODE: {
3416
- if (sessionStorage.getItem("isFromIM") == "1" && ((_a = data == null ? void 0 : data.extInfo) == null ? void 0 : _a.handleTask)) {
3288
+ if (sessionStorage.getItem("isFromIM") == "1" && ((_a = data2 == null ? void 0 : data2.extInfo) == null ? void 0 : _a.handleTask)) {
3417
3289
  if (typeof window.native != "undefined") {
3418
3290
  window.native.goHome();
3419
3291
  }
3420
3292
  }
3421
- return data;
3293
+ return data2;
3422
3294
  }
3423
3295
  case NO_SESSION_CODE: {
3424
3296
  _debounce(function() {
@@ -3427,11 +3299,11 @@ function responseInterceptors(response) {
3427
3299
  break;
3428
3300
  }
3429
3301
  default: {
3430
- let msg = data.message || data.msg || config.errorMessage;
3302
+ let msg = data2.message || data2.msg || config.errorMessage;
3431
3303
  window.apiErrorHandler && window.apiErrorHandler(msg);
3432
3304
  }
3433
3305
  }
3434
- return Promise.reject(data);
3306
+ return Promise.reject(data2);
3435
3307
  }
3436
3308
  function inspectorError(error) {
3437
3309
  var _a;
@@ -3445,10 +3317,10 @@ function inspectorError(error) {
3445
3317
  const instance = axios.create({ timeout: 5 * 60 * 1e3 });
3446
3318
  instance.interceptors.request.use(requestInterceptors, inspectorError);
3447
3319
  instance.interceptors.response.use(responseInterceptors, inspectorError);
3448
- instance.formPost = function(url, data, config2) {
3320
+ instance.formPost = function(url, data2, config2) {
3449
3321
  const headers = (config2 == null ? void 0 : config2.headers) || {};
3450
3322
  setContentType(headers, CONTENT_TYPE.form);
3451
- return instance.post(url, data, __spreadProps(__spreadValues({}, config2), { headers }));
3323
+ return instance.post(url, data2, __spreadProps(__spreadValues({}, config2), { headers }));
3452
3324
  };
3453
3325
  const wrapApi = (api, isPost = false) => {
3454
3326
  let currentController = null;
@@ -4499,7 +4371,7 @@ var lodash = { exports: {} };
4499
4371
  (function(module, exports) {
4500
4372
  (function() {
4501
4373
  var undefined$12;
4502
- var VERSION = "4.17.21";
4374
+ var VERSION2 = "4.17.21";
4503
4375
  var LARGE_ARRAY_SIZE = 200;
4504
4376
  var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
4505
4377
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
@@ -5094,9 +4966,9 @@ var lodash = { exports: {} };
5094
4966
  return reHasUnicodeWord.test(string);
5095
4967
  }
5096
4968
  function iteratorToArray(iterator) {
5097
- var data, result = [];
5098
- while (!(data = iterator.next()).done) {
5099
- result.push(data.value);
4969
+ var data2, result = [];
4970
+ while (!(data2 = iterator.next()).done) {
4971
+ result.push(data2.value);
5100
4972
  }
5101
4973
  return result;
5102
4974
  }
@@ -5305,7 +5177,7 @@ var lodash = { exports: {} };
5305
5177
  index += dir;
5306
5178
  var iterIndex = -1, value = array[index];
5307
5179
  while (++iterIndex < iterLength) {
5308
- var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value);
5180
+ var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type = data2.type, computed = iteratee2(value);
5309
5181
  if (type == LAZY_MAP_FLAG) {
5310
5182
  value = computed;
5311
5183
  } else if (!computed) {
@@ -5340,21 +5212,21 @@ var lodash = { exports: {} };
5340
5212
  return result2;
5341
5213
  }
5342
5214
  function hashGet(key) {
5343
- var data = this.__data__;
5215
+ var data2 = this.__data__;
5344
5216
  if (nativeCreate) {
5345
- var result2 = data[key];
5217
+ var result2 = data2[key];
5346
5218
  return result2 === HASH_UNDEFINED ? undefined$12 : result2;
5347
5219
  }
5348
- return hasOwnProperty2.call(data, key) ? data[key] : undefined$12;
5220
+ return hasOwnProperty2.call(data2, key) ? data2[key] : undefined$12;
5349
5221
  }
5350
5222
  function hashHas(key) {
5351
- var data = this.__data__;
5352
- return nativeCreate ? data[key] !== undefined$12 : hasOwnProperty2.call(data, key);
5223
+ var data2 = this.__data__;
5224
+ return nativeCreate ? data2[key] !== undefined$12 : hasOwnProperty2.call(data2, key);
5353
5225
  }
5354
5226
  function hashSet(key, value) {
5355
- var data = this.__data__;
5227
+ var data2 = this.__data__;
5356
5228
  this.size += this.has(key) ? 0 : 1;
5357
- data[key] = nativeCreate && value === undefined$12 ? HASH_UNDEFINED : value;
5229
+ data2[key] = nativeCreate && value === undefined$12 ? HASH_UNDEFINED : value;
5358
5230
  return this;
5359
5231
  }
5360
5232
  Hash.prototype.clear = hashClear;
@@ -5375,33 +5247,33 @@ var lodash = { exports: {} };
5375
5247
  this.size = 0;
5376
5248
  }
5377
5249
  function listCacheDelete(key) {
5378
- var data = this.__data__, index = assocIndexOf(data, key);
5250
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
5379
5251
  if (index < 0) {
5380
5252
  return false;
5381
5253
  }
5382
- var lastIndex = data.length - 1;
5254
+ var lastIndex = data2.length - 1;
5383
5255
  if (index == lastIndex) {
5384
- data.pop();
5256
+ data2.pop();
5385
5257
  } else {
5386
- splice.call(data, index, 1);
5258
+ splice.call(data2, index, 1);
5387
5259
  }
5388
5260
  --this.size;
5389
5261
  return true;
5390
5262
  }
5391
5263
  function listCacheGet(key) {
5392
- var data = this.__data__, index = assocIndexOf(data, key);
5393
- return index < 0 ? undefined$12 : data[index][1];
5264
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
5265
+ return index < 0 ? undefined$12 : data2[index][1];
5394
5266
  }
5395
5267
  function listCacheHas(key) {
5396
5268
  return assocIndexOf(this.__data__, key) > -1;
5397
5269
  }
5398
5270
  function listCacheSet(key, value) {
5399
- var data = this.__data__, index = assocIndexOf(data, key);
5271
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
5400
5272
  if (index < 0) {
5401
5273
  ++this.size;
5402
- data.push([key, value]);
5274
+ data2.push([key, value]);
5403
5275
  } else {
5404
- data[index][1] = value;
5276
+ data2[index][1] = value;
5405
5277
  }
5406
5278
  return this;
5407
5279
  }
@@ -5438,9 +5310,9 @@ var lodash = { exports: {} };
5438
5310
  return getMapData(this, key).has(key);
5439
5311
  }
5440
5312
  function mapCacheSet(key, value) {
5441
- var data = getMapData(this, key), size2 = data.size;
5442
- data.set(key, value);
5443
- this.size += data.size == size2 ? 0 : 1;
5313
+ var data2 = getMapData(this, key), size2 = data2.size;
5314
+ data2.set(key, value);
5315
+ this.size += data2.size == size2 ? 0 : 1;
5444
5316
  return this;
5445
5317
  }
5446
5318
  MapCache.prototype.clear = mapCacheClear;
@@ -5465,16 +5337,16 @@ var lodash = { exports: {} };
5465
5337
  SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
5466
5338
  SetCache.prototype.has = setCacheHas;
5467
5339
  function Stack(entries) {
5468
- var data = this.__data__ = new ListCache(entries);
5469
- this.size = data.size;
5340
+ var data2 = this.__data__ = new ListCache(entries);
5341
+ this.size = data2.size;
5470
5342
  }
5471
5343
  function stackClear() {
5472
5344
  this.__data__ = new ListCache();
5473
5345
  this.size = 0;
5474
5346
  }
5475
5347
  function stackDelete(key) {
5476
- var data = this.__data__, result2 = data["delete"](key);
5477
- this.size = data.size;
5348
+ var data2 = this.__data__, result2 = data2["delete"](key);
5349
+ this.size = data2.size;
5478
5350
  return result2;
5479
5351
  }
5480
5352
  function stackGet(key) {
@@ -5484,18 +5356,18 @@ var lodash = { exports: {} };
5484
5356
  return this.__data__.has(key);
5485
5357
  }
5486
5358
  function stackSet(key, value) {
5487
- var data = this.__data__;
5488
- if (data instanceof ListCache) {
5489
- var pairs = data.__data__;
5359
+ var data2 = this.__data__;
5360
+ if (data2 instanceof ListCache) {
5361
+ var pairs = data2.__data__;
5490
5362
  if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
5491
5363
  pairs.push([key, value]);
5492
- this.size = ++data.size;
5364
+ this.size = ++data2.size;
5493
5365
  return this;
5494
5366
  }
5495
- data = this.__data__ = new MapCache(pairs);
5367
+ data2 = this.__data__ = new MapCache(pairs);
5496
5368
  }
5497
- data.set(key, value);
5498
- this.size = data.size;
5369
+ data2.set(key, value);
5370
+ this.size = data2.size;
5499
5371
  return this;
5500
5372
  }
5501
5373
  Stack.prototype.clear = stackClear;
@@ -5914,15 +5786,15 @@ var lodash = { exports: {} };
5914
5786
  }
5915
5787
  object = Object2(object);
5916
5788
  while (index--) {
5917
- var data = matchData[index];
5918
- if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
5789
+ var data2 = matchData[index];
5790
+ if (noCustomizer && data2[2] ? data2[1] !== object[data2[0]] : !(data2[0] in object)) {
5919
5791
  return false;
5920
5792
  }
5921
5793
  }
5922
5794
  while (++index < length) {
5923
- data = matchData[index];
5924
- var key = data[0], objValue = object[key], srcValue = data[1];
5925
- if (noCustomizer && data[2]) {
5795
+ data2 = matchData[index];
5796
+ var key = data2[0], objValue = object[key], srcValue = data2[1];
5797
+ if (noCustomizer && data2[2]) {
5926
5798
  if (objValue === undefined$12 && !(key in object)) {
5927
5799
  return false;
5928
5800
  }
@@ -6225,8 +6097,8 @@ var lodash = { exports: {} };
6225
6097
  }
6226
6098
  return object;
6227
6099
  }
6228
- var baseSetData = !metaMap ? identity : function(func, data) {
6229
- metaMap.set(func, data);
6100
+ var baseSetData = !metaMap ? identity : function(func, data2) {
6101
+ metaMap.set(func, data2);
6230
6102
  return func;
6231
6103
  };
6232
6104
  var baseSetToString = !defineProperty ? identity : function(func, string) {
@@ -6730,9 +6602,9 @@ var lodash = { exports: {} };
6730
6602
  index = wrapper ? index : length;
6731
6603
  while (++index < length) {
6732
6604
  func = funcs[index];
6733
- var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$12;
6734
- if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
6735
- wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
6605
+ var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined$12;
6606
+ if (data2 && isLaziable(data2[0]) && data2[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data2[4].length && data2[9] == 1) {
6607
+ wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]);
6736
6608
  } else {
6737
6609
  wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func);
6738
6610
  }
@@ -6959,7 +6831,7 @@ var lodash = { exports: {} };
6959
6831
  var partialsRight = partials, holdersRight = holders;
6960
6832
  partials = holders = undefined$12;
6961
6833
  }
6962
- var data = isBindKey ? undefined$12 : getData(func);
6834
+ var data2 = isBindKey ? undefined$12 : getData(func);
6963
6835
  var newData = [
6964
6836
  func,
6965
6837
  bitmask,
@@ -6972,8 +6844,8 @@ var lodash = { exports: {} };
6972
6844
  ary2,
6973
6845
  arity
6974
6846
  ];
6975
- if (data) {
6976
- mergeData(newData, data);
6847
+ if (data2) {
6848
+ mergeData(newData, data2);
6977
6849
  }
6978
6850
  func = newData[0];
6979
6851
  bitmask = newData[1];
@@ -6993,7 +6865,7 @@ var lodash = { exports: {} };
6993
6865
  } else {
6994
6866
  result2 = createHybrid.apply(undefined$12, newData);
6995
6867
  }
6996
- var setter = data ? baseSetData : setData;
6868
+ var setter = data2 ? baseSetData : setData;
6997
6869
  return setWrapToString(setter(result2, newData), func, bitmask);
6998
6870
  }
6999
6871
  function customDefaultsAssignIn(objValue, srcValue, key, object) {
@@ -7160,9 +7032,9 @@ var lodash = { exports: {} };
7160
7032
  function getFuncName(func) {
7161
7033
  var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty2.call(realNames, result2) ? array.length : 0;
7162
7034
  while (length--) {
7163
- var data = array[length], otherFunc = data.func;
7035
+ var data2 = array[length], otherFunc = data2.func;
7164
7036
  if (otherFunc == null || otherFunc == func) {
7165
- return data.name;
7037
+ return data2.name;
7166
7038
  }
7167
7039
  }
7168
7040
  return result2;
@@ -7177,8 +7049,8 @@ var lodash = { exports: {} };
7177
7049
  return arguments.length ? result2(arguments[0], arguments[1]) : result2;
7178
7050
  }
7179
7051
  function getMapData(map2, key) {
7180
- var data = map2.__data__;
7181
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
7052
+ var data2 = map2.__data__;
7053
+ return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
7182
7054
  }
7183
7055
  function getMatchData(object) {
7184
7056
  var result2 = keys(object), length = result2.length;
@@ -7250,8 +7122,8 @@ var lodash = { exports: {} };
7250
7122
  function getView(start, end, transforms) {
7251
7123
  var index = -1, length = transforms.length;
7252
7124
  while (++index < length) {
7253
- var data = transforms[index], size2 = data.size;
7254
- switch (data.type) {
7125
+ var data2 = transforms[index], size2 = data2.size;
7126
+ switch (data2.type) {
7255
7127
  case "drop":
7256
7128
  start += size2;
7257
7129
  break;
@@ -7382,8 +7254,8 @@ var lodash = { exports: {} };
7382
7254
  if (func === other) {
7383
7255
  return true;
7384
7256
  }
7385
- var data = getData(other);
7386
- return !!data && func === data[0];
7257
+ var data2 = getData(other);
7258
+ return !!data2 && func === data2[0];
7387
7259
  }
7388
7260
  function isMasked(func) {
7389
7261
  return !!maskSrcKey && maskSrcKey in func;
@@ -7414,41 +7286,41 @@ var lodash = { exports: {} };
7414
7286
  var cache = result2.cache;
7415
7287
  return result2;
7416
7288
  }
7417
- function mergeData(data, source2) {
7418
- var bitmask = data[1], srcBitmask = source2[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
7419
- var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source2[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source2[7].length <= source2[8] && bitmask == WRAP_CURRY_FLAG;
7289
+ function mergeData(data2, source2) {
7290
+ var bitmask = data2[1], srcBitmask = source2[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
7291
+ var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data2[7].length <= source2[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source2[7].length <= source2[8] && bitmask == WRAP_CURRY_FLAG;
7420
7292
  if (!(isCommon || isCombo)) {
7421
- return data;
7293
+ return data2;
7422
7294
  }
7423
7295
  if (srcBitmask & WRAP_BIND_FLAG) {
7424
- data[2] = source2[2];
7296
+ data2[2] = source2[2];
7425
7297
  newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
7426
7298
  }
7427
7299
  var value = source2[3];
7428
7300
  if (value) {
7429
- var partials = data[3];
7430
- data[3] = partials ? composeArgs(partials, value, source2[4]) : value;
7431
- data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source2[4];
7301
+ var partials = data2[3];
7302
+ data2[3] = partials ? composeArgs(partials, value, source2[4]) : value;
7303
+ data2[4] = partials ? replaceHolders(data2[3], PLACEHOLDER) : source2[4];
7432
7304
  }
7433
7305
  value = source2[5];
7434
7306
  if (value) {
7435
- partials = data[5];
7436
- data[5] = partials ? composeArgsRight(partials, value, source2[6]) : value;
7437
- data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source2[6];
7307
+ partials = data2[5];
7308
+ data2[5] = partials ? composeArgsRight(partials, value, source2[6]) : value;
7309
+ data2[6] = partials ? replaceHolders(data2[5], PLACEHOLDER) : source2[6];
7438
7310
  }
7439
7311
  value = source2[7];
7440
7312
  if (value) {
7441
- data[7] = value;
7313
+ data2[7] = value;
7442
7314
  }
7443
7315
  if (srcBitmask & WRAP_ARY_FLAG) {
7444
- data[8] = data[8] == null ? source2[8] : nativeMin(data[8], source2[8]);
7316
+ data2[8] = data2[8] == null ? source2[8] : nativeMin(data2[8], source2[8]);
7445
7317
  }
7446
- if (data[9] == null) {
7447
- data[9] = source2[9];
7318
+ if (data2[9] == null) {
7319
+ data2[9] = source2[9];
7448
7320
  }
7449
- data[0] = source2[0];
7450
- data[1] = newBitmask;
7451
- return data;
7321
+ data2[0] = source2[0];
7322
+ data2[1] = newBitmask;
7323
+ return data2;
7452
7324
  }
7453
7325
  function nativeKeysIn(object) {
7454
7326
  var result2 = [];
@@ -8714,7 +8586,7 @@ var lodash = { exports: {} };
8714
8586
  copyObject(source2, keys(source2), object, customizer);
8715
8587
  });
8716
8588
  var at = flatRest(baseAt);
8717
- function create2(prototype, properties) {
8589
+ function create(prototype, properties) {
8718
8590
  var result2 = baseCreate(prototype);
8719
8591
  return properties == null ? result2 : baseAssign(result2, properties);
8720
8592
  }
@@ -9065,22 +8937,22 @@ var lodash = { exports: {} };
9065
8937
  var snakeCase = createCompounder(function(result2, word, index) {
9066
8938
  return result2 + (index ? "_" : "") + word.toLowerCase();
9067
8939
  });
9068
- function split(string, separator, limit2) {
9069
- if (limit2 && typeof limit2 != "number" && isIterateeCall(string, separator, limit2)) {
9070
- separator = limit2 = undefined$12;
8940
+ function split(string, separator, limit) {
8941
+ if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
8942
+ separator = limit = undefined$12;
9071
8943
  }
9072
- limit2 = limit2 === undefined$12 ? MAX_ARRAY_LENGTH : limit2 >>> 0;
9073
- if (!limit2) {
8944
+ limit = limit === undefined$12 ? MAX_ARRAY_LENGTH : limit >>> 0;
8945
+ if (!limit) {
9074
8946
  return [];
9075
8947
  }
9076
8948
  string = toString3(string);
9077
8949
  if (string && (typeof separator == "string" || separator != null && !isRegExp3(separator))) {
9078
8950
  separator = baseToString(separator);
9079
8951
  if (!separator && hasUnicode(string)) {
9080
- return castSlice(stringToArray(string), 0, limit2);
8952
+ return castSlice(stringToArray(string), 0, limit);
9081
8953
  }
9082
8954
  }
9083
- return string.split(separator, limit2);
8955
+ return string.split(separator, limit);
9084
8956
  }
9085
8957
  var startCase = createCompounder(function(result2, word, index) {
9086
8958
  return result2 + (index ? " " : "") + upperFirst(word);
@@ -9461,7 +9333,7 @@ var lodash = { exports: {} };
9461
9333
  lodash2.conforms = conforms;
9462
9334
  lodash2.constant = constant;
9463
9335
  lodash2.countBy = countBy;
9464
- lodash2.create = create2;
9336
+ lodash2.create = create;
9465
9337
  lodash2.curry = curry;
9466
9338
  lodash2.curryRight = curryRight;
9467
9339
  lodash2.debounce = debounce;
@@ -9756,7 +9628,7 @@ var lodash = { exports: {} };
9756
9628
  });
9757
9629
  return source2;
9758
9630
  }(), { "chain": false });
9759
- lodash2.VERSION = VERSION;
9631
+ lodash2.VERSION = VERSION2;
9760
9632
  arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
9761
9633
  lodash2[methodName].placeholder = lodash2;
9762
9634
  });
@@ -10824,7 +10696,7 @@ function renderHeaderTooltip({
10824
10696
  }
10825
10697
  return text;
10826
10698
  }
10827
- function renderColumnTree(data, columnGroup, option = {}) {
10699
+ function renderColumnTree(data2, columnGroup, option = {}) {
10828
10700
  var _b;
10829
10701
  const _a = columnGroup, {
10830
10702
  key,
@@ -10853,7 +10725,7 @@ function renderColumnTree(data, columnGroup, option = {}) {
10853
10725
  ]);
10854
10726
  const { keyPropName = "key", titlePropName = "title", keyPrefix = "", parents = [] } = option;
10855
10727
  if (keyProp) {
10856
- let columnUniqData = ((_b = _.uniqBy(data, columnGroup.keyProp)) == null ? void 0 : _b.filter((item) => !isNil(item[columnGroup.keyProp]))) || [];
10728
+ let columnUniqData = ((_b = _.uniqBy(data2, columnGroup.keyProp)) == null ? void 0 : _b.filter((item) => !isNil(item[columnGroup.keyProp]))) || [];
10857
10729
  if (sortProp) {
10858
10730
  const unSortData = columnUniqData.filter((item) => isNil(item[sortProp]));
10859
10731
  const sortData = columnUniqData.filter((item) => !isNil(item[sortProp]));
@@ -10864,7 +10736,7 @@ function renderColumnTree(data, columnGroup, option = {}) {
10864
10736
  if (children && children.length) {
10865
10737
  const prefix = `${keyPrefix}${keyProp}${VALUE_SEP}${item[keyProp]}${GROUP_SEP}`;
10866
10738
  const columnChildren = children.map((child) => {
10867
- let nextData = isLimitChildren ? data.filter((temp) => temp[keyProp] === item[keyProp]) : data;
10739
+ let nextData = isLimitChildren ? data2.filter((temp) => temp[keyProp] === item[keyProp]) : data2;
10868
10740
  return renderColumnTree(nextData, child, __spreadProps(__spreadValues({}, option), {
10869
10741
  keyPrefix: prefix,
10870
10742
  parents: [...parents, item]
@@ -10903,7 +10775,7 @@ function renderColumnTree(data, columnGroup, option = {}) {
10903
10775
  if (children && children.length) {
10904
10776
  const prefix = `${keyPrefix}${key || ""}`;
10905
10777
  const columnChildren = children.map((child) => {
10906
- return renderColumnTree(data, child, __spreadProps(__spreadValues({}, option), { keyPrefix: prefix }));
10778
+ return renderColumnTree(data2, child, __spreadProps(__spreadValues({}, option), { keyPrefix: prefix }));
10907
10779
  });
10908
10780
  return __spreadProps(__spreadValues({}, args), {
10909
10781
  [titlePropName]: title,
@@ -10928,7 +10800,7 @@ function getLeafColumns(columns = []) {
10928
10800
  }
10929
10801
  }, []);
10930
10802
  }
10931
- function renderRowData(data, keys) {
10803
+ function renderRowData(data2, keys) {
10932
10804
  var _a;
10933
10805
  if (!keys.length)
10934
10806
  return;
@@ -10936,13 +10808,13 @@ function renderRowData(data, keys) {
10936
10808
  keys = keys.slice(1);
10937
10809
  if (key.includes(VALUE_SEP) && keys.length) {
10938
10810
  const [keyProp, keyValue] = key.split(VALUE_SEP);
10939
- const matchData = _.filter(data, { [keyProp]: keyValue });
10811
+ const matchData = _.filter(data2, { [keyProp]: keyValue });
10940
10812
  return renderRowData(matchData, keys);
10941
10813
  }
10942
10814
  if (keys.length) {
10943
10815
  console.error("\u600E\u4E48\u4F1A\u4E0D\u662F\u6700\u540E\u4E00\u5C42\u5206\u7EC4\u5462\uFF0C\u8BF7\u8054\u7CFB\u5F00\u53D1\u4EBA\u5458\u67E5\u770B\uFF01");
10944
10816
  }
10945
- const value = (_a = data == null ? void 0 : data[0]) == null ? void 0 : _a[key];
10817
+ const value = (_a = data2 == null ? void 0 : data2[0]) == null ? void 0 : _a[key];
10946
10818
  return value;
10947
10819
  }
10948
10820
  function getRowKeyValue(item, rowKey) {
@@ -10982,19 +10854,19 @@ function renderSumColumns({ sumColumnDefs }) {
10982
10854
  }
10983
10855
  return columns;
10984
10856
  }
10985
- function row2column(data = [], columnGroups = [], rowKey, option = {}) {
10857
+ function row2column(data2 = [], columnGroups = [], rowKey, option = {}) {
10986
10858
  var _a;
10987
10859
  const columns = [];
10988
10860
  if (option.sumColumnDefs && option.sumColumnDefs.length) {
10989
10861
  columns.push(...renderSumColumns(option));
10990
10862
  }
10991
- const groupColumns = _.flatten(columnGroups.map((group) => renderColumnTree(data, group, option))) || [];
10863
+ const groupColumns = _.flatten(columnGroups.map((group) => renderColumnTree(data2, group, option))) || [];
10992
10864
  columns.push(...groupColumns);
10993
10865
  const leafColumns = getLeafColumns(columns);
10994
- const rowKeyUniqData = ((_a = _.uniqBy(data, (item) => getRowKeyValue(item, rowKey))) == null ? void 0 : _a.filter(
10866
+ const rowKeyUniqData = ((_a = _.uniqBy(data2, (item) => getRowKeyValue(item, rowKey))) == null ? void 0 : _a.filter(
10995
10867
  (item) => !isNil(getRowKeyValue(item, rowKey))
10996
10868
  )) || [];
10997
- const groupData = _.groupBy(data, (item) => getRowKeyValue(item, rowKey));
10869
+ const groupData = _.groupBy(data2, (item) => getRowKeyValue(item, rowKey));
10998
10870
  const rltData = rowKeyUniqData.map((item) => {
10999
10871
  const rowKeyValue = getRowKeyValue(item, rowKey);
11000
10872
  const rowGroupData = groupData[rowKeyValue] || [];
@@ -11054,9 +10926,9 @@ function flattenRowData(rowData = {}, leafColumns = [], option = {}) {
11054
10926
  });
11055
10927
  return rlt;
11056
10928
  }
11057
- function flattenRow2ColumnData(data = [], columns = [], option = {}) {
10929
+ function flattenRow2ColumnData(data2 = [], columns = [], option = {}) {
11058
10930
  const leafColumns = getLeafColumns(columns);
11059
- return data.reduce(
10931
+ return data2.reduce(
11060
10932
  (rlt, rowData) => [...rlt, ...flattenRowData(rowData, leafColumns, option)],
11061
10933
  []
11062
10934
  );
@@ -11200,8 +11072,8 @@ const DICT_KEY = "ind-dict_";
11200
11072
  function getDictCache(dictId) {
11201
11073
  return getSessionStorage(`${DICT_KEY}${dictId}`);
11202
11074
  }
11203
- function setDictCache(dictId, data) {
11204
- setSessionStorage(`${DICT_KEY}${dictId}`, data);
11075
+ function setDictCache(dictId, data2) {
11076
+ setSessionStorage(`${DICT_KEY}${dictId}`, data2);
11205
11077
  }
11206
11078
  const CONTEXT$5 = config.authServerContext;
11207
11079
  function getDictsMapApi(dictId) {
@@ -11217,9 +11089,9 @@ function getDictApi(dictId) {
11217
11089
  return dictValue;
11218
11090
  }
11219
11091
  try {
11220
- const { data } = yield instance.get(`${CONTEXT$5}/dict/getDicts`, { params: { dictId } });
11221
- setDictCache(dictId, data);
11222
- return data;
11092
+ const { data: data2 } = yield instance.get(`${CONTEXT$5}/dict/getDicts`, { params: { dictId } });
11093
+ setDictCache(dictId, data2);
11094
+ return data2;
11223
11095
  } catch (error) {
11224
11096
  console.error(`getDict error dictId=${dictId}`, error);
11225
11097
  }
@@ -11327,8 +11199,8 @@ function downLoadScDcApi(fileId, fileName) {
11327
11199
  fileName = getFilenameFromResponse(response);
11328
11200
  }
11329
11201
  let mimeType = "application/octet-stream";
11330
- const name2 = fileName == null ? void 0 : fileName.toLowerCase();
11331
- const match = name2.match(/\.([a-z0-9]+)$/);
11202
+ const name = fileName == null ? void 0 : fileName.toLowerCase();
11203
+ const match = name.match(/\.([a-z0-9]+)$/);
11332
11204
  const extension = match == null ? void 0 : match[1];
11333
11205
  if (MIME_TYPE[extension]) {
11334
11206
  mimeType = MIME_TYPE[extension];
@@ -11557,8 +11429,8 @@ function loginApi({ userName, password, validCodeId, validCodeInput }) {
11557
11429
  let nodeRSA = new window.NodeRSA(publicKey, "pkcs8-public");
11558
11430
  let rsaPaswword = nodeRSA.encrypt(password, "base64");
11559
11431
  let upw = Base64.encode(rsaPaswword);
11560
- const data = { usn: userName, upw, validCodeId, validCodeInput };
11561
- return instance.formPost(CONTEXT$2 + "/sso/auth/login", data);
11432
+ const data2 = { usn: userName, upw, validCodeId, validCodeInput };
11433
+ return instance.formPost(CONTEXT$2 + "/sso/auth/login", data2);
11562
11434
  }
11563
11435
  function getUserInfoApi() {
11564
11436
  return instance.get(`${CONTEXT$2}/manage/user/getCurrentInfo`);
@@ -11566,8 +11438,8 @@ function getUserInfoApi() {
11566
11438
  function getGlobalPolicyApi() {
11567
11439
  return instance.get(`${CONTEXT$2}/anon/user/getGlobalPolicy`);
11568
11440
  }
11569
- function updatePasswordApi(data) {
11570
- return instance.post(`${CONTEXT$2}/manage/user/updatePassword`, data);
11441
+ function updatePasswordApi(data2) {
11442
+ return instance.post(`${CONTEXT$2}/manage/user/updatePassword`, data2);
11571
11443
  }
11572
11444
  function getCaptchaURL(validCodeId) {
11573
11445
  return `${CONTEXT$2}/anon/user/getCaptcha/` + validCodeId;
@@ -11581,16 +11453,20 @@ const getGlobalConfig = () => __async(void 0, null, function* () {
11581
11453
  return getSessionStorage(GLOBAL_CACHE_KEY);
11582
11454
  } else {
11583
11455
  let url = location.protocol + "//" + location.host + "/ibp-sc/manage/global?t=" + new Date().getTime();
11584
- return axios.get(url).then(({ data }) => {
11585
- setSessionStorage(GLOBAL_CACHE_KEY, data);
11586
- return data;
11456
+ return axios.get(url).then(({ data: data2 }) => {
11457
+ setSessionStorage(GLOBAL_CACHE_KEY, data2);
11458
+ return data2;
11587
11459
  });
11588
11460
  }
11589
11461
  });
11462
+ const isHb$1 = location.pathname.includes("scyxweb");
11590
11463
  const CONTEXT$1 = config.ismAmServerContext;
11591
11464
  function listComTreeApi(params) {
11592
11465
  if (config.useDddComItemTree) {
11593
- return instance.get(`${config.ucExtServerContext}/manage/tree/getBusiComTree`, { params });
11466
+ return instance.get(
11467
+ `${isHb$1 ? "/scyxgateway" : ""}${config.ucExtServerContext}/manage/tree/getBusiComTree`,
11468
+ { params }
11469
+ );
11594
11470
  }
11595
11471
  return instance.get(`${CONTEXT$1}/tree/com/listComTree`, { params });
11596
11472
  }
@@ -11598,12 +11474,16 @@ const UC_CONTEXT$2 = config.ucExtServerContext;
11598
11474
  function listIndexDescApi(params) {
11599
11475
  return instance.get(`${UC_CONTEXT$2}/index-desc/list`, { params });
11600
11476
  }
11477
+ const isHb = location.pathname.includes("scyxweb");
11601
11478
  const CONTEXT = config.ismAmServerContext;
11602
11479
  function listItemTreeApi(params) {
11603
11480
  if (config.useDddComItemTree) {
11604
- return instance.get(`${config.ucExtServerContext}/manage/tree/getProductInfoAsTreeData`, {
11605
- params
11606
- });
11481
+ return instance.get(
11482
+ `${isHb ? "/scyxgateway" : ""}${config.ucExtServerContext}/manage/tree/getProductInfoAsTreeData`,
11483
+ {
11484
+ params
11485
+ }
11486
+ );
11607
11487
  }
11608
11488
  return instance.get(`${CONTEXT}/tree/item/listItemTree`, { params });
11609
11489
  }