@cfxjs/sirius-next-common 0.2.22 → 0.2.24

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 (134) hide show
  1. package/dist/{chunk-VVEA44KS.js → chunk-4B7BV62E.js} +3 -3
  2. package/dist/{chunk-LQCS5PT5.js → chunk-4BS66NNM.js} +2 -2
  3. package/dist/{chunk-CRTD2R3I.js → chunk-6C5NQACS.js} +4 -4
  4. package/dist/{chunk-7IGZGPFM.js → chunk-7RLNWQIR.js} +5 -5
  5. package/dist/{chunk-7P6KYI3Z.js → chunk-7WDLTRBN.js} +2 -2
  6. package/dist/{chunk-EQWC4NEP.js → chunk-A46LVI25.js} +2 -2
  7. package/dist/{chunk-N5X4DZS3.js → chunk-A6B5V6XY.js} +2 -2
  8. package/dist/{chunk-6KG65RIO.js → chunk-AQFNXW4W.js} +2 -2
  9. package/dist/{chunk-KHUI4JLS.js → chunk-ASS6TOFE.js} +4 -4
  10. package/dist/{chunk-XF2CMO2A.js → chunk-C6GUZVQ2.js} +2 -2
  11. package/dist/{chunk-YXREYDKU.js → chunk-CNXGYDZG.js} +6 -6
  12. package/dist/{chunk-KZ2KYINT.js → chunk-DASMAZXS.js} +4 -4
  13. package/dist/{chunk-ZSOMTVP5.js → chunk-E7FB4S3X.js} +8 -7
  14. package/dist/chunk-E7FB4S3X.js.map +1 -0
  15. package/dist/{chunk-TTNJMHOJ.js → chunk-EHRGH3HS.js} +4 -4
  16. package/dist/{chunk-6XLSWPR3.js → chunk-FGPRA3A4.js} +4 -4
  17. package/dist/{chunk-FUKVDD7K.js → chunk-FSYB23NA.js} +2 -2
  18. package/dist/{chunk-2KBVDLVC.js → chunk-FTAFV6RE.js} +5 -5
  19. package/dist/{chunk-TJZKPAAH.js → chunk-FW5ON36S.js} +5 -5
  20. package/dist/{chunk-ABO5SDB4.js → chunk-HCEXWKMZ.js} +4 -4
  21. package/dist/{chunk-VXHLESK7.js → chunk-J536GL5G.js} +2 -2
  22. package/dist/{chunk-6TKFGXSA.js → chunk-MQY7EQPG.js} +2 -2
  23. package/dist/{chunk-OMU7JQ6Y.js → chunk-MWSXXVVL.js} +7 -7
  24. package/dist/{chunk-DEZ6AV62.js → chunk-O6BP54O6.js} +3 -3
  25. package/dist/{chunk-DV3GFG5Q.js → chunk-OFAM2QTT.js} +2 -2
  26. package/dist/{chunk-2TO4UOX3.js → chunk-OT252GGM.js} +4 -4
  27. package/dist/{chunk-SQI2F34Q.js → chunk-OTSNM4CR.js} +2 -2
  28. package/dist/chunk-OTSNM4CR.js.map +1 -0
  29. package/dist/{chunk-FTRICVXA.js → chunk-R62HRSIY.js} +2 -2
  30. package/dist/{chunk-7PQ6YKBC.js → chunk-SIZYE6WH.js} +2 -2
  31. package/dist/{chunk-G246NFI4.js → chunk-SNUPCZY7.js} +2 -2
  32. package/dist/{chunk-P7M7B7ER.js → chunk-UVRMLFMC.js} +2 -2
  33. package/dist/{chunk-E7ZFE6KT.js → chunk-UX6IRX2M.js} +3 -3
  34. package/dist/{chunk-MF6LAIGP.js → chunk-VD73ULXJ.js} +3 -3
  35. package/dist/{chunk-RJOY6FMD.js → chunk-VEK5DLFI.js} +2 -2
  36. package/dist/{chunk-SFCNLOQ5.js → chunk-XI5WO2NW.js} +1 -1
  37. package/dist/chunk-XI5WO2NW.js.map +1 -0
  38. package/dist/components/AAFailedReason/index.js +3 -3
  39. package/dist/components/AceEditor/index.js +4 -4
  40. package/dist/components/AddressContainer/CoreAddressContainer.js +10 -10
  41. package/dist/components/AddressContainer/EVMAddressContainer.js +9 -9
  42. package/dist/components/AddressContainer/addressSwitcher.js +7 -7
  43. package/dist/components/AddressContainer/addressView.js +6 -6
  44. package/dist/components/AddressContainer/label.js +3 -3
  45. package/dist/components/AddressContainer/utils.js +3 -3
  46. package/dist/components/Age/index.js +4 -4
  47. package/dist/components/AutoComplete/index.js +3 -3
  48. package/dist/components/Charts/PreviewChartTemplate.js +1 -1
  49. package/dist/components/Charts/StockChartTemplate.js +1 -1
  50. package/dist/components/CopyButton/index.js +3 -3
  51. package/dist/components/DecimalsSelect/index.js +3 -3
  52. package/dist/components/DownloadCSV/index.js +4 -4
  53. package/dist/components/GasPriceDropdown/index.js +2 -2
  54. package/dist/components/IncreasePercent/index.js +2 -2
  55. package/dist/components/InfoIconWithTooltip/index.js +4 -4
  56. package/dist/components/InputData/AddressLabel.js +8 -8
  57. package/dist/components/InputData/ContractDetail.js +5 -5
  58. package/dist/components/InputData/JsonDecode.js +6 -6
  59. package/dist/components/InputData/OptimizationDecode.js +13 -13
  60. package/dist/components/InputData/UTF8.js +3 -3
  61. package/dist/components/InputData/index.js +17 -17
  62. package/dist/components/InputData/utils.js +1 -1
  63. package/dist/components/Modal/index.js +3 -3
  64. package/dist/components/NetworkIcon/index.js +2 -2
  65. package/dist/components/OutputData/ErrorDecode.js +16 -16
  66. package/dist/components/OutputData/index.js +18 -18
  67. package/dist/components/PhishingAddressContainer/index.js +4 -4
  68. package/dist/components/Popover/index.js +3 -3
  69. package/dist/components/Price/index.js +3 -3
  70. package/dist/components/ProxyContractAddress/index.js +6 -6
  71. package/dist/components/Radio/index.js +2 -2
  72. package/dist/components/SearchInput/index.js +4 -4
  73. package/dist/components/Select/index.js +4 -4
  74. package/dist/components/Select/select.js +3 -3
  75. package/dist/components/SmartAccountAddress/index.js +6 -6
  76. package/dist/components/Text/index.js +4 -4
  77. package/dist/components/Tooltip/index.js +3 -3
  78. package/dist/components/TransactionAction/coreTransactionAction.js +10 -10
  79. package/dist/components/TransactionAction/evmTransactionAction.js +9 -9
  80. package/dist/components/TransactionTrace/TraceDetail.js +26 -26
  81. package/dist/components/TransactionTrace/TreeTraceTable.js +27 -27
  82. package/dist/components/TransactionTrace/index.js +27 -27
  83. package/dist/utils/address.js +2 -2
  84. package/dist/utils/contractManagerTool.js +2 -2
  85. package/dist/utils/hooks/useAddressLabel.js +3 -3
  86. package/dist/utils/hooks/useAddressNameMap.js +2 -2
  87. package/dist/utils/hooks/useAutoSetHolderFilterParams.js +2 -2
  88. package/dist/utils/hooks/useContractDetail.js +2 -2
  89. package/dist/utils/hooks/useDecodeFunctionData.js +5 -5
  90. package/dist/utils/hooks/useDecodeFunctionError.js +3 -3
  91. package/dist/utils/hooks/useENS.js +3 -3
  92. package/dist/utils/hooks/useEnhanceDataWithNameMap.js +2 -2
  93. package/dist/utils/hooks/useMethodAbi.js +2 -2
  94. package/dist/utils/hooks/useTableData.js +1 -1
  95. package/dist/utils/hooks/useTxTrace.js +3 -3
  96. package/dist/utils/hooks/useTxTrace.js.map +1 -1
  97. package/dist/utils/index.js +2 -2
  98. package/dist/utils/request.d.ts +1 -0
  99. package/dist/utils/request.js +1 -1
  100. package/package.json +4 -4
  101. package/dist/chunk-SFCNLOQ5.js.map +0 -1
  102. package/dist/chunk-SQI2F34Q.js.map +0 -1
  103. package/dist/chunk-ZSOMTVP5.js.map +0 -1
  104. /package/dist/{chunk-VVEA44KS.js.map → chunk-4B7BV62E.js.map} +0 -0
  105. /package/dist/{chunk-LQCS5PT5.js.map → chunk-4BS66NNM.js.map} +0 -0
  106. /package/dist/{chunk-CRTD2R3I.js.map → chunk-6C5NQACS.js.map} +0 -0
  107. /package/dist/{chunk-7IGZGPFM.js.map → chunk-7RLNWQIR.js.map} +0 -0
  108. /package/dist/{chunk-7P6KYI3Z.js.map → chunk-7WDLTRBN.js.map} +0 -0
  109. /package/dist/{chunk-EQWC4NEP.js.map → chunk-A46LVI25.js.map} +0 -0
  110. /package/dist/{chunk-N5X4DZS3.js.map → chunk-A6B5V6XY.js.map} +0 -0
  111. /package/dist/{chunk-6KG65RIO.js.map → chunk-AQFNXW4W.js.map} +0 -0
  112. /package/dist/{chunk-KHUI4JLS.js.map → chunk-ASS6TOFE.js.map} +0 -0
  113. /package/dist/{chunk-XF2CMO2A.js.map → chunk-C6GUZVQ2.js.map} +0 -0
  114. /package/dist/{chunk-YXREYDKU.js.map → chunk-CNXGYDZG.js.map} +0 -0
  115. /package/dist/{chunk-KZ2KYINT.js.map → chunk-DASMAZXS.js.map} +0 -0
  116. /package/dist/{chunk-TTNJMHOJ.js.map → chunk-EHRGH3HS.js.map} +0 -0
  117. /package/dist/{chunk-6XLSWPR3.js.map → chunk-FGPRA3A4.js.map} +0 -0
  118. /package/dist/{chunk-FUKVDD7K.js.map → chunk-FSYB23NA.js.map} +0 -0
  119. /package/dist/{chunk-2KBVDLVC.js.map → chunk-FTAFV6RE.js.map} +0 -0
  120. /package/dist/{chunk-TJZKPAAH.js.map → chunk-FW5ON36S.js.map} +0 -0
  121. /package/dist/{chunk-ABO5SDB4.js.map → chunk-HCEXWKMZ.js.map} +0 -0
  122. /package/dist/{chunk-VXHLESK7.js.map → chunk-J536GL5G.js.map} +0 -0
  123. /package/dist/{chunk-6TKFGXSA.js.map → chunk-MQY7EQPG.js.map} +0 -0
  124. /package/dist/{chunk-OMU7JQ6Y.js.map → chunk-MWSXXVVL.js.map} +0 -0
  125. /package/dist/{chunk-DEZ6AV62.js.map → chunk-O6BP54O6.js.map} +0 -0
  126. /package/dist/{chunk-DV3GFG5Q.js.map → chunk-OFAM2QTT.js.map} +0 -0
  127. /package/dist/{chunk-2TO4UOX3.js.map → chunk-OT252GGM.js.map} +0 -0
  128. /package/dist/{chunk-FTRICVXA.js.map → chunk-R62HRSIY.js.map} +0 -0
  129. /package/dist/{chunk-7PQ6YKBC.js.map → chunk-SIZYE6WH.js.map} +0 -0
  130. /package/dist/{chunk-G246NFI4.js.map → chunk-SNUPCZY7.js.map} +0 -0
  131. /package/dist/{chunk-P7M7B7ER.js.map → chunk-UVRMLFMC.js.map} +0 -0
  132. /package/dist/{chunk-E7ZFE6KT.js.map → chunk-UX6IRX2M.js.map} +0 -0
  133. /package/dist/{chunk-MF6LAIGP.js.map → chunk-VD73ULXJ.js.map} +0 -0
  134. /package/dist/{chunk-RJOY6FMD.js.map → chunk-VEK5DLFI.js.map} +0 -0
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-TOKKKTFG.js";
4
4
  import {
5
5
  Tooltip
6
- } from "./chunk-VXHLESK7.js";
6
+ } from "./chunk-J536GL5G.js";
7
7
  import {
8
8
  selectText
9
- } from "./chunk-G246NFI4.js";
9
+ } from "./chunk-SNUPCZY7.js";
10
10
 
11
11
  // src/components/Text/index.tsx
12
12
  import React from "react";
@@ -102,4 +102,4 @@ var Text = React.memo(
102
102
  export {
103
103
  Text
104
104
  };
105
- //# sourceMappingURL=chunk-VVEA44KS.js.map
105
+ //# sourceMappingURL=chunk-4B7BV62E.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  fetchAddressNameMap
3
- } from "./chunk-ZSOMTVP5.js";
3
+ } from "./chunk-E7FB4S3X.js";
4
4
 
5
5
  // src/utils/hooks/useAddressNameMap.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -26,4 +26,4 @@ export {
26
26
  transformNameMapKeysToLowerCase,
27
27
  useAddressNameMap
28
28
  };
29
- //# sourceMappingURL=chunk-LQCS5PT5.js.map
29
+ //# sourceMappingURL=chunk-4BS66NNM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useMethodAbi
3
- } from "./chunk-7P6KYI3Z.js";
3
+ } from "./chunk-7WDLTRBN.js";
4
4
  import {
5
5
  decodeFunctionData,
6
6
  decodeFunctionResult
@@ -10,10 +10,10 @@ import {
10
10
  } from "./chunk-JIRLY7OG.js";
11
11
  import {
12
12
  useContractDetail
13
- } from "./chunk-DV3GFG5Q.js";
13
+ } from "./chunk-OFAM2QTT.js";
14
14
  import {
15
15
  formatABI
16
- } from "./chunk-G246NFI4.js";
16
+ } from "./chunk-SNUPCZY7.js";
17
17
 
18
18
  // src/utils/hooks/useDecodeFunctionData.ts
19
19
  import { useMemo } from "react";
@@ -199,4 +199,4 @@ var useDecodeFunctionData = ({
199
199
  export {
200
200
  useDecodeFunctionData
201
201
  };
202
- //# sourceMappingURL=chunk-CRTD2R3I.js.map
202
+ //# sourceMappingURL=chunk-6C5NQACS.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  useDecodeFunctionData
3
- } from "./chunk-CRTD2R3I.js";
3
+ } from "./chunk-6C5NQACS.js";
4
4
  import {
5
5
  useDecodedDataType
6
6
  } from "./chunk-UM5J477V.js";
7
7
  import {
8
8
  Select
9
- } from "./chunk-MF6LAIGP.js";
9
+ } from "./chunk-VD73ULXJ.js";
10
10
  import {
11
11
  OutputData
12
- } from "./chunk-KHUI4JLS.js";
12
+ } from "./chunk-ASS6TOFE.js";
13
13
  import {
14
14
  InputData
15
- } from "./chunk-2TO4UOX3.js";
15
+ } from "./chunk-OT252GGM.js";
16
16
  import {
17
17
  AbiWarning
18
18
  } from "./chunk-XBEBAU77.js";
@@ -189,4 +189,4 @@ var TraceDetail = (props) => {
189
189
  export {
190
190
  TraceDetail
191
191
  };
192
- //# sourceMappingURL=chunk-7IGZGPFM.js.map
192
+ //# sourceMappingURL=chunk-7RLNWQIR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  reqAbiByMethodId
3
- } from "./chunk-ZSOMTVP5.js";
3
+ } from "./chunk-E7FB4S3X.js";
4
4
 
5
5
  // src/utils/hooks/useMethodAbi.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -14,4 +14,4 @@ var useMethodAbi = (methodId, shouldFetch = true) => {
14
14
  export {
15
15
  useMethodAbi
16
16
  };
17
- //# sourceMappingURL=chunk-7P6KYI3Z.js.map
17
+ //# sourceMappingURL=chunk-7WDLTRBN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TraceDetail
3
- } from "./chunk-7IGZGPFM.js";
3
+ } from "./chunk-7RLNWQIR.js";
4
4
  import {
5
5
  Table
6
6
  } from "./chunk-XZ7IV2FF.js";
@@ -79,4 +79,4 @@ var TreeTraceTable = ({
79
79
  export {
80
80
  TreeTraceTable
81
81
  };
82
- //# sourceMappingURL=chunk-EQWC4NEP.js.map
82
+ //# sourceMappingURL=chunk-A46LVI25.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-XCKMXAL2.js";
4
4
  import {
5
5
  cn
6
- } from "./chunk-G246NFI4.js";
6
+ } from "./chunk-SNUPCZY7.js";
7
7
 
8
8
  // src/components/Modal/index.tsx
9
9
  import { useEffect, useCallback, useMemo } from "react";
@@ -137,4 +137,4 @@ var Modal = ({
137
137
  export {
138
138
  Modal
139
139
  };
140
- //# sourceMappingURL=chunk-N5X4DZS3.js.map
140
+ //# sourceMappingURL=chunk-A6B5V6XY.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-65X53DMW.js";
4
4
  import {
5
5
  Tooltip
6
- } from "./chunk-VXHLESK7.js";
6
+ } from "./chunk-J536GL5G.js";
7
7
 
8
8
  // src/components/InfoIconWithTooltip/index.tsx
9
9
  import clsx from "clsx";
@@ -23,4 +23,4 @@ var InfoIconWithTooltip = ({
23
23
  export {
24
24
  InfoIconWithTooltip
25
25
  };
26
- //# sourceMappingURL=chunk-6KG65RIO.js.map
26
+ //# sourceMappingURL=chunk-AQFNXW4W.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  ErrorDecode
3
- } from "./chunk-ABO5SDB4.js";
3
+ } from "./chunk-HCEXWKMZ.js";
4
4
  import {
5
5
  GeneralDecode
6
6
  } from "./chunk-OYESIV3F.js";
7
7
  import {
8
8
  DecodedParameters
9
- } from "./chunk-OMU7JQ6Y.js";
9
+ } from "./chunk-MWSXXVVL.js";
10
10
  import {
11
11
  Original
12
12
  } from "./chunk-5AM5HM3B.js";
13
13
  import {
14
14
  UTF8
15
- } from "./chunk-P7M7B7ER.js";
15
+ } from "./chunk-UVRMLFMC.js";
16
16
 
17
17
  // src/components/OutputData/index.tsx
18
18
  import { jsx } from "react/jsx-runtime";
@@ -69,4 +69,4 @@ var OutputData = ({
69
69
  export {
70
70
  OutputData
71
71
  };
72
- //# sourceMappingURL=chunk-KHUI4JLS.js.map
72
+ //# sourceMappingURL=chunk-ASS6TOFE.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-6SXAFSBF.js";
4
4
  import {
5
5
  useContractDetail
6
- } from "./chunk-DV3GFG5Q.js";
6
+ } from "./chunk-OFAM2QTT.js";
7
7
  import {
8
8
  CommonError_default
9
9
  } from "./chunk-5TGK2EA2.js";
@@ -127,4 +127,4 @@ var useDecodeFunctionError = ({
127
127
  export {
128
128
  useDecodeFunctionError
129
129
  };
130
- //# sourceMappingURL=chunk-XF2CMO2A.js.map
130
+ //# sourceMappingURL=chunk-C6GUZVQ2.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useENS
3
- } from "./chunk-DEZ6AV62.js";
3
+ } from "./chunk-O6BP54O6.js";
4
4
  import {
5
5
  getAddressNameInfo
6
- } from "./chunk-SQI2F34Q.js";
6
+ } from "./chunk-OTSNM4CR.js";
7
7
  import {
8
8
  ContractAddress,
9
9
  ContractCreatedAddress,
@@ -11,16 +11,16 @@ import {
11
11
  InvalidAddress,
12
12
  MyAddress,
13
13
  PosAddress
14
- } from "./chunk-TJZKPAAH.js";
14
+ } from "./chunk-FW5ON36S.js";
15
15
  import {
16
16
  RenderAddress
17
- } from "./chunk-E7ZFE6KT.js";
17
+ } from "./chunk-UX6IRX2M.js";
18
18
  import {
19
19
  formatAddress,
20
20
  isCoreAddress,
21
21
  isCoreContractAddress,
22
22
  isZeroAddress
23
- } from "./chunk-6TKFGXSA.js";
23
+ } from "./chunk-MQY7EQPG.js";
24
24
  import {
25
25
  getTranslations,
26
26
  useGlobalData
@@ -143,4 +143,4 @@ var CoreAddressContainer = withTranslation()(
143
143
  export {
144
144
  CoreAddressContainer
145
145
  };
146
- //# sourceMappingURL=chunk-YXREYDKU.js.map
146
+ //# sourceMappingURL=chunk-CNXGYDZG.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  parseArgs
3
- } from "./chunk-SFCNLOQ5.js";
3
+ } from "./chunk-XI5WO2NW.js";
4
4
  import {
5
5
  AceEditor
6
- } from "./chunk-FTRICVXA.js";
6
+ } from "./chunk-R62HRSIY.js";
7
7
  import {
8
8
  formatABI
9
- } from "./chunk-G246NFI4.js";
9
+ } from "./chunk-SNUPCZY7.js";
10
10
 
11
11
  // src/components/InputData/JsonDecode.tsx
12
12
  import { useId, useMemo } from "react";
@@ -68,4 +68,4 @@ var JsonDecode = ({
68
68
  export {
69
69
  JsonDecode
70
70
  };
71
- //# sourceMappingURL=chunk-KZ2KYINT.js.map
71
+ //# sourceMappingURL=chunk-DASMAZXS.js.map
@@ -36,8 +36,8 @@ var parseJSON = async (response) => {
36
36
  if (error.name === "AbortError") {
37
37
  return { data: response, response };
38
38
  }
39
- publishRequestError({ url: response.url, code: 20001 }, "http");
40
39
  error.response = response;
40
+ error.status = 20001;
41
41
  throw error;
42
42
  }
43
43
  };
@@ -51,21 +51,22 @@ var checkResponse = function(url, {
51
51
  return response;
52
52
  } else {
53
53
  const code = Number(data.status ?? data.code);
54
- publishRequestError({ url, code, message: data.message }, "http");
55
54
  const error = new Error(data.message);
56
55
  error.response = data;
56
+ error.status = code;
57
57
  throw error;
58
58
  }
59
59
  };
60
60
  var fetchWithAbort = (url, options = {}) => {
61
61
  const controller = new AbortController();
62
62
  const opts = { ...options, signal: controller.signal };
63
+ const showErrorMessage = options.showErrorMessage ?? true;
63
64
  const timeout = options.timeout || TIMEOUT_TIMESTAMP;
64
65
  let timeoutId;
65
66
  const promise = new Promise((resolve, reject) => {
66
67
  timeoutId = setTimeout(() => {
67
68
  controller.abort();
68
- publishRequestError(
69
+ showErrorMessage && publishRequestError(
69
70
  { url, code: 20002, message: "Request timeout" },
70
71
  "http"
71
72
  );
@@ -76,16 +77,16 @@ var fetchWithAbort = (url, options = {}) => {
76
77
  return resolve({});
77
78
  }
78
79
  if (error.name === "TypeError") {
79
- publishRequestError({ url, code: 20004 }, "http");
80
+ showErrorMessage && publishRequestError({ url, code: 20004 }, "http");
80
81
  reject(new Error("Network error"));
81
82
  } else if (error.name === "AbortError") {
82
- publishRequestError(
83
+ showErrorMessage && publishRequestError(
83
84
  { url, code: 20003, message: "Fetch aborted" },
84
85
  "http"
85
86
  );
86
87
  reject(new Error("Fetch aborted"));
87
88
  } else {
88
- publishRequestError(
89
+ showErrorMessage && publishRequestError(
89
90
  { url, code: error.status, message: error.message },
90
91
  "http"
91
92
  );
@@ -272,4 +273,4 @@ export {
272
273
  reqAbiByMethodId,
273
274
  fetchAddressNameMap
274
275
  };
275
- //# sourceMappingURL=chunk-ZSOMTVP5.js.map
276
+ //# sourceMappingURL=chunk-E7FB4S3X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/request.ts"],"sourcesContent":["import qs from 'query-string';\nimport { publishRequestError } from './pubsub';\nimport {\n AddressNameMap,\n BaseContractInfo,\n DetectAccountTypeResponse,\n MethodAbiItemResponse,\n} from './request.types';\nimport { getEnvConfig } from '../store';\nimport { fetchWithCache } from './cache';\ninterface FetchWithAbortType<T> {\n promise: Promise<T>;\n abort: () => void;\n}\n\ninterface FetchOptions extends RequestInit {\n timeout?: number;\n showErrorMessage?: boolean;\n}\n\nconst TIMEOUT_TIMESTAMP = 60000;\n\nconst checkStatus = (response: Response) => {\n if (\n (response.status >= 200 && response.status < 300) ||\n response.status === 600\n ) {\n return response;\n } else {\n const error = new Error(response.statusText);\n error.name = 'HttpError';\n (error as any).status = response.status;\n (error as any).response = response;\n throw error;\n }\n};\n\n// 格式化 response data\nconst parseJSON = async (response: Response) => {\n const contentType = response.headers.get('content-type');\n try {\n if (contentType?.includes('application/json')) {\n return { data: await response.json(), response };\n } else if (contentType?.includes('text/html')) {\n return { data: await response.text(), response };\n } else {\n // contentType 还有其他类型,目前项目中用不到\n // 不能简单的报错,比如 image/x-icon 是 favicon 请求\n // 此处直接返回 response,由业务代码处理其他类型的数据\n return { data: response, response };\n }\n } catch (error) {\n if ((error as any).name === 'AbortError') {\n return { data: response, response };\n }\n (error as any).response = response;\n (error as any).status = 20001;\n throw error;\n }\n};\n\n// 检查返回值中是否包含错误\nconst checkResponse = function (\n url: string,\n {\n data,\n response,\n }: {\n data: any;\n response: Response;\n },\n opts: FetchOptions,\n) {\n // 兼容 data.code 和 data.data, 是关于 core space 的数据结构\n if (response.status === 200 && (data.status === '1' || data.code === 0)) {\n return data.result || data.data;\n } else if (/HEAD/i.test(opts?.method || '')) {\n // handle of HEAD method\n return response;\n } else {\n const code = Number(data.status ?? data.code);\n const error: Partial<ErrorEvent> & {\n response?: ResponseType;\n status?: number;\n } = new Error(data.message);\n error.response = data;\n error.status = code;\n throw error;\n }\n};\n\nconst fetchWithAbort = <T>(\n url: string,\n options: FetchOptions = {},\n): FetchWithAbortType<T> => {\n const controller = new AbortController();\n const opts: FetchOptions = { ...options, signal: controller.signal };\n const showErrorMessage = options.showErrorMessage ?? true;\n const timeout = options.timeout || TIMEOUT_TIMESTAMP;\n\n let timeoutId: ReturnType<typeof setTimeout>;\n const promise: Promise<T> = new Promise((resolve, reject) => {\n timeoutId = setTimeout(() => {\n controller.abort();\n showErrorMessage &&\n publishRequestError(\n { url, code: 20002, message: 'Request timeout' },\n 'http',\n );\n reject(new Error('Request timeout'));\n }, timeout);\n\n window\n .fetch(url, opts)\n .then(checkStatus)\n .then(parseJSON)\n .then((...args) => checkResponse(url, ...args, opts))\n .then(data => resolve(data as T))\n .catch(error => {\n if (/HEAD/i.test(opts?.method || '')) {\n return resolve({} as T);\n }\n\n // A fetch() promise will reject with a TypeError when a network error is encountered or CORS is misconfigured on the server-side,\n // although this usually means permission issues or similar — a 404 does not constitute a network error, for example.\n // For detail: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch\n if (error.name === 'TypeError') {\n showErrorMessage && publishRequestError({ url, code: 20004 }, 'http');\n reject(new Error('Network error'));\n } else if (error.name === 'AbortError') {\n showErrorMessage &&\n publishRequestError(\n { url, code: 20003, message: 'Fetch aborted' },\n 'http',\n );\n reject(new Error('Fetch aborted'));\n } else {\n showErrorMessage &&\n publishRequestError(\n { url, code: (error as any).status, message: error.message },\n 'http',\n );\n reject(error);\n }\n })\n .finally(() => clearTimeout(timeoutId));\n });\n\n return {\n promise,\n abort: () => {\n clearTimeout(timeoutId);\n controller.abort();\n },\n };\n};\n\nexport const fetch = <T>(\n url: string,\n options: FetchOptions = {},\n): Promise<T> => {\n const { promise } = fetchWithAbort<T>(url, options);\n return promise;\n};\n\nexport const appendApiPrefix = (url: string) => {\n // for cfx top N\n if (url.startsWith('/stat/')) {\n return url;\n }\n if (url.startsWith('http')) {\n return url;\n }\n return `/v1${url.startsWith('/') ? url : '/' + url}`;\n};\n\nexport const fetchWithPrefix = <T>(url: string, opts?: FetchOptions) => {\n return fetch<T>(appendApiPrefix(url), opts);\n};\n\nexport const fetchWithOpenApi = <T>(url: string, opts?: FetchOptions) => {\n const ENV_CONFIG = getEnvConfig();\n if (!ENV_CONFIG.ENV_OPEN_API_HOST) {\n throw new Error('ENV_OPEN_API_HOST is not set');\n }\n return fetch<T>(\n `${ENV_CONFIG.ENV_OPEN_API_HOST}${url.startsWith('/') ? url : '/' + url}`,\n opts,\n );\n};\n\nexport const simpleGetFetcher = async <T>(args: any[]) => {\n let [url, query] = args;\n if (query) {\n url = qs.stringifyUrl({ url, query });\n }\n return await fetchWithPrefix<T>(url, {\n method: 'get',\n });\n};\n\ntype RequestMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';\ninterface QueryParams {\n [key: string]: string | undefined;\n}\ninterface Config {\n url: string;\n query: QueryParams;\n type?: RequestMethod;\n body?: any;\n headers?: Headers;\n signal?: AbortSignal;\n}\n\nconst queryAddress = (address: string[]) => {\n return address.reduce((prev, curr, index) => {\n return !index ? `address=${curr}` : `${prev}&address=${curr}`;\n }, '');\n};\n\nexport const sendRequestChart = async (config: Config) => {\n try {\n const res: any = await fetch(\n qs.stringifyUrl({ url: config.url, query: config.query }),\n {\n method: config.type || 'GET',\n body: config.body,\n headers: config.headers,\n signal: config.signal,\n },\n );\n const data = res;\n data.list = [...(data.list || [])].reverse();\n return data;\n } catch (error) {\n console.error('Request failed', error);\n throw error;\n }\n};\n\nexport const sendRequestENSInfo = async (url?: string | null) => {\n if (!url) return {};\n try {\n const res: any = await fetch(url, {\n method: 'GET',\n });\n\n return res?.map;\n } catch (error) {\n console.error('Request failed', error);\n throw error;\n }\n};\n\nexport const sendRequestGasPrice = async () => {\n try {\n const res: any = await fetch(`/stat/gasprice/tracker`, {\n method: 'GET',\n });\n return res;\n } catch (error) {\n console.error('Request failed', error);\n throw error;\n }\n};\n\nexport const reqNametag = async (address: string[]) => {\n const query = queryAddress(address);\n\n const res: any = await fetch(`/v1/nametag?${query}`, {\n method: 'GET',\n });\n return res?.map;\n};\n\nexport const reqContractAndToken = fetchWithCache(\n async (address: string[]) => {\n const query = queryAddress(address);\n\n const res: any = await fetch(`/v1/contract-and-token?${query}`, {\n method: 'GET',\n });\n return res;\n },\n {\n key: 'contract-and-token',\n maxAge: 1000 * 60 * 60,\n },\n);\n\nexport const getContractDetail = fetchWithCache(\n <T extends string>(contractAddress?: string, fields: T[] = []) => {\n const url = qs.stringifyUrl({\n url: `/v1/contract/${contractAddress}`,\n query: { fields },\n });\n\n return fetch<BaseContractInfo & Record<T, unknown>>(url, {\n method: 'GET',\n });\n },\n {\n key: 'contract-detail',\n maxAge: 1000 * 60 * 60,\n },\n);\n\nexport const detectAccountType = fetchWithCache(\n (address: string) => {\n return fetchWithOpenApi<DetectAccountTypeResponse>(\n `/util/detectAccountType?hex=${address}`,\n {\n method: 'GET',\n },\n );\n },\n {\n // 10 seconds\n maxAge: 1000 * 10,\n },\n);\n\nexport const reqAbiByMethodId = (methodId: string) => {\n return fetchWithPrefix<{\n list: MethodAbiItemResponse[];\n }>(\n qs.stringifyUrl({\n url: '/stat/list-abi-method',\n query: {\n id: methodId,\n },\n }),\n );\n};\n\nexport const fetchAddressNameMap = (\n addresses: string[],\n params: {\n withContractInfo?: 'true' | 'false';\n withNameTagInfo?: 'true' | 'false';\n withENSInfo?: 'true' | 'false';\n } = {},\n) => {\n const url = qs.stringifyUrl({\n url: '/account/infos',\n query: {\n accounts: addresses.join(','),\n ...params,\n },\n });\n return fetchWithOpenApi<Record<string, AddressNameMap>>(url, {\n method: 'GET',\n });\n};\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,QAAQ;AAoBf,IAAM,oBAAoB;AAE1B,IAAM,cAAc,CAAC,aAAuB;AAC1C,MACG,SAAS,UAAU,OAAO,SAAS,SAAS,OAC7C,SAAS,WAAW,KACpB;AACA,WAAO;AAAA,EACT,OAAO;AACL,UAAM,QAAQ,IAAI,MAAM,SAAS,UAAU;AAC3C,UAAM,OAAO;AACb,IAAC,MAAc,SAAS,SAAS;AACjC,IAAC,MAAc,WAAW;AAC1B,UAAM;AAAA,EACR;AACF;AAGA,IAAM,YAAY,OAAO,aAAuB;AAC9C,QAAM,cAAc,SAAS,QAAQ,IAAI,cAAc;AACvD,MAAI;AACF,QAAI,aAAa,SAAS,kBAAkB,GAAG;AAC7C,aAAO,EAAE,MAAM,MAAM,SAAS,KAAK,GAAG,SAAS;AAAA,IACjD,WAAW,aAAa,SAAS,WAAW,GAAG;AAC7C,aAAO,EAAE,MAAM,MAAM,SAAS,KAAK,GAAG,SAAS;AAAA,IACjD,OAAO;AAIL,aAAO,EAAE,MAAM,UAAU,SAAS;AAAA,IACpC;AAAA,EACF,SAAS,OAAP;AACA,QAAK,MAAc,SAAS,cAAc;AACxC,aAAO,EAAE,MAAM,UAAU,SAAS;AAAA,IACpC;AACA,IAAC,MAAc,WAAW;AAC1B,IAAC,MAAc,SAAS;AACxB,UAAM;AAAA,EACR;AACF;AAGA,IAAM,gBAAgB,SACpB,KACA;AAAA,EACE;AAAA,EACA;AACF,GAIA,MACA;AAEA,MAAI,SAAS,WAAW,QAAQ,KAAK,WAAW,OAAO,KAAK,SAAS,IAAI;AACvE,WAAO,KAAK,UAAU,KAAK;AAAA,EAC7B,WAAW,QAAQ,KAAK,MAAM,UAAU,EAAE,GAAG;AAE3C,WAAO;AAAA,EACT,OAAO;AACL,UAAM,OAAO,OAAO,K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
  useENS
6
- } from "./chunk-DEZ6AV62.js";
6
+ } from "./chunk-O6BP54O6.js";
7
7
  import {
8
8
  Text
9
- } from "./chunk-VVEA44KS.js";
9
+ } from "./chunk-4B7BV62E.js";
10
10
  import {
11
11
  getTranslations
12
12
  } from "./chunk-DQGLZCIG.js";
@@ -48,4 +48,4 @@ var AddressLabel = ({
48
48
  export {
49
49
  AddressLabel
50
50
  };
51
- //# sourceMappingURL=chunk-TTNJMHOJ.js.map
51
+ //# sourceMappingURL=chunk-EHRGH3HS.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  useAddressNameMap
3
- } from "./chunk-LQCS5PT5.js";
3
+ } from "./chunk-4BS66NNM.js";
4
4
  import {
5
5
  Link
6
6
  } from "./chunk-2Y57U43P.js";
7
7
  import {
8
8
  getAddressNameInfo
9
- } from "./chunk-SQI2F34Q.js";
9
+ } from "./chunk-OTSNM4CR.js";
10
10
  import {
11
11
  DefaultTokenIcon
12
12
  } from "./chunk-MWAD4CIG.js";
13
13
  import {
14
14
  formatAddress
15
- } from "./chunk-6TKFGXSA.js";
15
+ } from "./chunk-MQY7EQPG.js";
16
16
 
17
17
  // src/components/InputData/ContractDetail.tsx
18
18
  import clsx from "clsx";
@@ -77,4 +77,4 @@ var ContractDetail = ({ address, addressType }) => {
77
77
  export {
78
78
  ContractDetail
79
79
  };
80
- //# sourceMappingURL=chunk-6XLSWPR3.js.map
80
+ //# sourceMappingURL=chunk-FGPRA3A4.js.map
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-BMO4IZHV.js";
30
30
  import {
31
31
  cn
32
- } from "./chunk-G246NFI4.js";
32
+ } from "./chunk-SNUPCZY7.js";
33
33
 
34
34
  // src/components/Popover/index.tsx
35
35
  import { useRef } from "react";
@@ -2146,4 +2146,4 @@ focus-trap/dist/focus-trap.esm.js:
2146
2146
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2147
2147
  *)
2148
2148
  */
2149
- //# sourceMappingURL=chunk-FUKVDD7K.js.map
2149
+ //# sourceMappingURL=chunk-FSYB23NA.js.map
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  getAddressNameInfo
3
- } from "./chunk-SQI2F34Q.js";
3
+ } from "./chunk-OTSNM4CR.js";
4
4
  import {
5
5
  ContractAddress,
6
6
  ContractCreatedAddress,
7
7
  InvalidAddress,
8
8
  MyAddress
9
- } from "./chunk-TJZKPAAH.js";
9
+ } from "./chunk-FW5ON36S.js";
10
10
  import {
11
11
  RenderAddress
12
- } from "./chunk-E7ZFE6KT.js";
12
+ } from "./chunk-UX6IRX2M.js";
13
13
  import {
14
14
  convertCheckSum,
15
15
  formatAddress,
16
16
  isEvmAddress,
17
17
  isZeroAddress
18
- } from "./chunk-6TKFGXSA.js";
18
+ } from "./chunk-MQY7EQPG.js";
19
19
  import {
20
20
  getTranslations,
21
21
  useGlobalData
@@ -109,4 +109,4 @@ var EVMAddressContainer = withTranslation()(
109
109
  export {
110
110
  EVMAddressContainer
111
111
  };
112
- //# sourceMappingURL=chunk-2KBVDLVC.js.map
112
+ //# sourceMappingURL=chunk-FTAFV6RE.js.map
@@ -3,18 +3,18 @@ import {
3
3
  } from "./chunk-MWAD4CIG.js";
4
4
  import {
5
5
  RenderAddress
6
- } from "./chunk-E7ZFE6KT.js";
6
+ } from "./chunk-UX6IRX2M.js";
7
7
  import {
8
8
  formatAddress,
9
9
  isInnerContractAddress
10
- } from "./chunk-6TKFGXSA.js";
10
+ } from "./chunk-MQY7EQPG.js";
11
11
  import {
12
12
  Tooltip
13
- } from "./chunk-VXHLESK7.js";
13
+ } from "./chunk-J536GL5G.js";
14
14
  import {
15
15
  coreCorrespondsToEspace,
16
16
  getNetwork
17
- } from "./chunk-G246NFI4.js";
17
+ } from "./chunk-SNUPCZY7.js";
18
18
  import {
19
19
  getEnvConfig,
20
20
  getTranslations,
@@ -209,4 +209,4 @@ export {
209
209
  MyAddress,
210
210
  PosAddress
211
211
  };
212
- //# sourceMappingURL=chunk-TJZKPAAH.js.map
212
+ //# sourceMappingURL=chunk-FW5ON36S.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DecodedParameters
3
- } from "./chunk-OMU7JQ6Y.js";
3
+ } from "./chunk-MWSXXVVL.js";
4
4
  import {
5
5
  FunctionName
6
6
  } from "./chunk-FYLAXC3R.js";
@@ -12,10 +12,10 @@ import {
12
12
  } from "./chunk-XBEBAU77.js";
13
13
  import {
14
14
  useDecodeFunctionError
15
- } from "./chunk-XF2CMO2A.js";
15
+ } from "./chunk-C6GUZVQ2.js";
16
16
  import {
17
17
  cn
18
- } from "./chunk-G246NFI4.js";
18
+ } from "./chunk-SNUPCZY7.js";
19
19
 
20
20
  // src/components/OutputData/ErrorDecode.tsx
21
21
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -87,4 +87,4 @@ var ErrorDecode = ({
87
87
  export {
88
88
  ErrorDecode
89
89
  };
90
- //# sourceMappingURL=chunk-ABO5SDB4.js.map
90
+ //# sourceMappingURL=chunk-HCEXWKMZ.js.map
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-BMO4IZHV.js";
24
24
  import {
25
25
  cn
26
- } from "./chunk-G246NFI4.js";
26
+ } from "./chunk-SNUPCZY7.js";
27
27
 
28
28
  // src/components/Tooltip/index.tsx
29
29
  import {
@@ -531,4 +531,4 @@ var Tooltip2 = ({
531
531
  export {
532
532
  Tooltip2 as Tooltip
533
533
  };
534
- //# sourceMappingURL=chunk-VXHLESK7.js.map
534
+ //# sourceMappingURL=chunk-J536GL5G.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WIB76E7O.js";
4
4
  import {
5
5
  detectAccountType
6
- } from "./chunk-ZSOMTVP5.js";
6
+ } from "./chunk-E7FB4S3X.js";
7
7
 
8
8
  // src/utils/address.ts
9
9
  import SDK from "js-conflux-sdk";
@@ -281,4 +281,4 @@ export {
281
281
  formatAddressHexToBase32,
282
282
  isAddressEqual
283
283
  };
284
- //# sourceMappingURL=chunk-6TKFGXSA.js.map
284
+ //# sourceMappingURL=chunk-MQY7EQPG.js.map
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  AddressLabel
3
- } from "./chunk-TTNJMHOJ.js";
3
+ } from "./chunk-EHRGH3HS.js";
4
4
  import {
5
5
  ContractDetail
6
- } from "./chunk-6XLSWPR3.js";
6
+ } from "./chunk-FGPRA3A4.js";
7
7
  import {
8
8
  FunctionName,
9
9
  getParameterType
10
10
  } from "./chunk-FYLAXC3R.js";
11
11
  import {
12
12
  parseArgs
13
- } from "./chunk-SFCNLOQ5.js";
13
+ } from "./chunk-XI5WO2NW.js";
14
14
  import {
15
15
  Link
16
16
  } from "./chunk-2Y57U43P.js";
17
17
  import {
18
18
  convertCheckSum
19
- } from "./chunk-6TKFGXSA.js";
19
+ } from "./chunk-MQY7EQPG.js";
20
20
  import {
21
21
  Text
22
- } from "./chunk-VVEA44KS.js";
22
+ } from "./chunk-4B7BV62E.js";
23
23
  import {
24
24
  cn
25
- } from "./chunk-G246NFI4.js";
25
+ } from "./chunk-SNUPCZY7.js";
26
26
 
27
27
  // src/components/InputData/OptimizationDecode.tsx
28
28
  import { useMemo } from "react";
@@ -154,4 +154,4 @@ export {
154
154
  DecodedParameters,
155
155
  OptimizationDecode
156
156
  };
157
- //# sourceMappingURL=chunk-OMU7JQ6Y.js.map
157
+ //# sourceMappingURL=chunk-MWSXXVVL.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  isCoreMainOrTestAddress
3
- } from "./chunk-6TKFGXSA.js";
3
+ } from "./chunk-MQY7EQPG.js";
4
4
  import {
5
5
  apiPrefix
6
6
  } from "./chunk-WIB76E7O.js";
7
7
  import {
8
8
  sendRequestENSInfo
9
- } from "./chunk-ZSOMTVP5.js";
9
+ } from "./chunk-E7FB4S3X.js";
10
10
  import {
11
11
  useENSStore
12
12
  } from "./chunk-DQGLZCIG.js";
@@ -60,4 +60,4 @@ var useENS = (address) => {
60
60
  export {
61
61
  useENS
62
62
  };
63
- //# sourceMappingURL=chunk-DEZ6AV62.js.map
63
+ //# sourceMappingURL=chunk-O6BP54O6.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getContractDetail
3
- } from "./chunk-ZSOMTVP5.js";
3
+ } from "./chunk-E7FB4S3X.js";
4
4
 
5
5
  // src/utils/hooks/useContractDetail.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -14,4 +14,4 @@ var useContractDetail = (contractAddress, fields = [], shouldFetch = true) => {
14
14
  export {
15
15
  useContractDetail
16
16
  };
17
- //# sourceMappingURL=chunk-DV3GFG5Q.js.map
17
+ //# sourceMappingURL=chunk-OFAM2QTT.js.map
@@ -3,16 +3,16 @@ import {
3
3
  } from "./chunk-OYESIV3F.js";
4
4
  import {
5
5
  JsonDecode
6
- } from "./chunk-KZ2KYINT.js";
6
+ } from "./chunk-DASMAZXS.js";
7
7
  import {
8
8
  OptimizationDecode
9
- } from "./chunk-OMU7JQ6Y.js";
9
+ } from "./chunk-MWSXXVVL.js";
10
10
  import {
11
11
  Original
12
12
  } from "./chunk-5AM5HM3B.js";
13
13
  import {
14
14
  UTF8
15
- } from "./chunk-P7M7B7ER.js";
15
+ } from "./chunk-UVRMLFMC.js";
16
16
 
17
17
  // src/components/InputData/index.tsx
18
18
  import { jsx } from "react/jsx-runtime";
@@ -63,4 +63,4 @@ var InputData = ({
63
63
  export {
64
64
  InputData
65
65
  };
66
- //# sourceMappingURL=chunk-2TO4UOX3.js.map
66
+ //# sourceMappingURL=chunk-OT252GGM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isZeroAddress
3
- } from "./chunk-6TKFGXSA.js";
3
+ } from "./chunk-MQY7EQPG.js";
4
4
 
5
5
  // src/components/AddressContainer/utils.ts
6
6
  var getPocketAlias = ({
@@ -48,4 +48,4 @@ export {
48
48
  getPocketAlias,
49
49
  getAddressNameInfo
50
50
  };
51
- //# sourceMappingURL=chunk-SQI2F34Q.js.map
51
+ //# sourceMappingURL=chunk-OTSNM4CR.js.map