@chat-lab/ui 0.1.0-beta.36 → 0.1.0-beta.38

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 (663) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +0 -26
  2. package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
  3. package/dist/_virtual/_commonjsHelpers.js +1 -26
  4. package/dist/_virtual/_commonjsHelpers.js.map +1 -1
  5. package/dist/_virtual/index.cjs +2 -2
  6. package/dist/_virtual/index.js +2 -2
  7. package/dist/_virtual/index2.cjs +2 -2
  8. package/dist/_virtual/index2.js +2 -2
  9. package/dist/_virtual/index3.cjs +2 -2
  10. package/dist/_virtual/index3.js +2 -2
  11. package/dist/_virtual/index4.cjs +2 -5
  12. package/dist/_virtual/index4.cjs.map +1 -1
  13. package/dist/_virtual/index4.js +2 -5
  14. package/dist/_virtual/index4.js.map +1 -1
  15. package/dist/_virtual/index5.cjs +5 -2
  16. package/dist/_virtual/index5.cjs.map +1 -1
  17. package/dist/_virtual/index5.js +5 -2
  18. package/dist/_virtual/index5.js.map +1 -1
  19. package/dist/adk/components/Debug/Events/index.cjs +2 -2
  20. package/dist/adk/components/Debug/Events/index.cjs.map +1 -1
  21. package/dist/adk/components/Debug/Events/index.js +2 -2
  22. package/dist/adk/components/Debug/Events/index.js.map +1 -1
  23. package/dist/adk/components/Debug/Trace/TraceDetail.cjs +0 -1
  24. package/dist/adk/components/Debug/Trace/TraceDetail.cjs.map +1 -1
  25. package/dist/adk/components/Debug/Trace/TraceDetail.d.ts.map +1 -1
  26. package/dist/adk/components/Debug/Trace/TraceDetail.js +0 -1
  27. package/dist/adk/components/Debug/Trace/TraceDetail.js.map +1 -1
  28. package/dist/adk/components/Debug/Trace/TraceMessageGroup.cjs +2 -2
  29. package/dist/adk/components/Debug/Trace/TraceMessageGroup.cjs.map +1 -1
  30. package/dist/adk/components/Debug/Trace/TraceMessageGroup.js +2 -2
  31. package/dist/adk/components/Debug/Trace/TraceMessageGroup.js.map +1 -1
  32. package/dist/adk/components/Debug/Trace/index.cjs +10 -7
  33. package/dist/adk/components/Debug/Trace/index.cjs.map +1 -1
  34. package/dist/adk/components/Debug/Trace/index.d.ts +1 -1
  35. package/dist/adk/components/Debug/Trace/index.d.ts.map +1 -1
  36. package/dist/adk/components/Debug/Trace/index.js +10 -7
  37. package/dist/adk/components/Debug/Trace/index.js.map +1 -1
  38. package/dist/adk/components/Debug/Trace/store.cjs +3 -3
  39. package/dist/adk/components/Debug/Trace/store.cjs.map +1 -1
  40. package/dist/adk/components/Debug/Trace/store.js +1 -1
  41. package/dist/adk/components/Debug/Trace/types.d.ts +1 -0
  42. package/dist/adk/components/Debug/Trace/types.d.ts.map +1 -1
  43. package/dist/adk/components/Debug/Trace/utils.cjs +2 -1
  44. package/dist/adk/components/Debug/Trace/utils.cjs.map +1 -1
  45. package/dist/adk/components/Debug/Trace/utils.d.ts.map +1 -1
  46. package/dist/adk/components/Debug/Trace/utils.js +2 -1
  47. package/dist/adk/components/Debug/Trace/utils.js.map +1 -1
  48. package/dist/adk/components/Debug/index.cjs.map +1 -1
  49. package/dist/adk/components/Debug/index.d.ts +3 -1
  50. package/dist/adk/components/Debug/index.d.ts.map +1 -1
  51. package/dist/adk/components/Debug/index.js.map +1 -1
  52. package/dist/adk/hooks/useEvents.cjs +15 -6
  53. package/dist/adk/hooks/useEvents.cjs.map +1 -1
  54. package/dist/adk/hooks/useEvents.d.ts +1 -1
  55. package/dist/adk/hooks/useEvents.d.ts.map +1 -1
  56. package/dist/adk/hooks/useEvents.js +13 -4
  57. package/dist/adk/hooks/useEvents.js.map +1 -1
  58. package/dist/components/Chatkit/index.cjs +4 -10
  59. package/dist/components/Chatkit/index.cjs.map +1 -1
  60. package/dist/components/Chatkit/index.d.ts.map +1 -1
  61. package/dist/components/Chatkit/index.js +4 -10
  62. package/dist/components/Chatkit/index.js.map +1 -1
  63. package/dist/components/Chatkit/types.d.ts +1 -0
  64. package/dist/components/Chatkit/types.d.ts.map +1 -1
  65. package/dist/components/ThreadOptionsMenu.cjs +10 -23
  66. package/dist/components/ThreadOptionsMenu.cjs.map +1 -1
  67. package/dist/components/ThreadOptionsMenu.d.ts.map +1 -1
  68. package/dist/components/ThreadOptionsMenu.js +11 -24
  69. package/dist/components/ThreadOptionsMenu.js.map +1 -1
  70. package/dist/components/assistant-ui/thread.cjs +2 -2
  71. package/dist/components/assistant-ui/thread.cjs.map +1 -1
  72. package/dist/components/assistant-ui/thread.js +1 -1
  73. package/dist/components/assistant-ui/thread.js.map +1 -1
  74. package/dist/components/thread-list.cjs +5 -5
  75. package/dist/components/thread-list.cjs.map +1 -1
  76. package/dist/index.css +1 -2
  77. package/dist/node_modules/.pnpm/@cloudfun_web-sdk@3.1.7_@volcengine_console-web-sdk@6.2.0/node_modules/@cloudfun/web-sdk/lib/util.cjs +1 -1
  78. package/dist/node_modules/.pnpm/@cloudfun_web-sdk@3.1.7_@volcengine_console-web-sdk@6.2.0/node_modules/@cloudfun/web-sdk/lib/util.js +1 -1
  79. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.cjs +0 -18
  80. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.cjs.map +1 -1
  81. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js +1 -17
  82. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js.map +1 -1
  83. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs +1 -1
  84. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +1 -1
  85. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.cjs +1 -1
  86. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.js +1 -1
  87. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.cjs +1 -4
  88. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.cjs.map +1 -1
  89. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js +1 -1
  90. package/dist/node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.cjs +1 -1
  91. package/dist/node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.js +1 -1
  92. package/dist/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.cjs +1 -1
  93. package/dist/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.js +1 -1
  94. package/dist/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.cjs +1 -1
  95. package/dist/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.js +1 -1
  96. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@17.0.2_react@17.0.2/node_modules/use-sidecar/dist/es2015/medium.cjs +0 -5
  97. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@17.0.2_react@17.0.2/node_modules/use-sidecar/dist/es2015/medium.cjs.map +1 -1
  98. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@17.0.2_react@17.0.2/node_modules/use-sidecar/dist/es2015/medium.js +1 -5
  99. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@17.0.2_react@17.0.2/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
  100. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@17.0.2/node_modules/use-sync-external-store/shim/index.cjs +1 -1
  101. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@17.0.2/node_modules/use-sync-external-store/shim/index.js +1 -1
  102. package/dist/node_modules/@byted/iaas-monitor/lib/common.cjs +55 -0
  103. package/dist/node_modules/@byted/iaas-monitor/lib/common.cjs.map +1 -0
  104. package/dist/node_modules/@byted/iaas-monitor/lib/common.js +52 -0
  105. package/dist/node_modules/@byted/iaas-monitor/lib/common.js.map +1 -0
  106. package/dist/node_modules/@byted/iaas-monitor/lib/const.cjs +63 -0
  107. package/dist/node_modules/@byted/iaas-monitor/lib/const.cjs.map +1 -0
  108. package/dist/node_modules/@byted/iaas-monitor/lib/const.js +57 -0
  109. package/dist/node_modules/@byted/iaas-monitor/lib/const.js.map +1 -0
  110. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.cjs +72 -0
  111. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.cjs.map +1 -0
  112. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.js +70 -0
  113. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.js.map +1 -0
  114. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.cjs +65 -0
  115. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.cjs.map +1 -0
  116. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.js +63 -0
  117. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.js.map +1 -0
  118. package/dist/node_modules/@byted/iaas-monitor/lib/monitor.cjs +21 -0
  119. package/dist/node_modules/@byted/iaas-monitor/lib/monitor.cjs.map +1 -0
  120. package/dist/node_modules/@byted/iaas-monitor/lib/monitor.js +19 -0
  121. package/dist/node_modules/@byted/iaas-monitor/lib/monitor.js.map +1 -0
  122. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.cjs +12 -0
  123. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.cjs.map +1 -0
  124. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.js +10 -0
  125. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.js.map +1 -0
  126. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.cjs +15 -0
  127. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.cjs.map +1 -0
  128. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.js +13 -0
  129. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.js.map +1 -0
  130. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.cjs +11 -0
  131. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.cjs.map +1 -0
  132. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js +9 -0
  133. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js.map +1 -0
  134. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.cjs +14 -0
  135. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.cjs.map +1 -0
  136. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js +12 -0
  137. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js.map +1 -0
  138. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.cjs +31 -0
  139. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.cjs.map +1 -0
  140. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js +29 -0
  141. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js.map +1 -0
  142. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.cjs +157 -0
  143. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.cjs.map +1 -0
  144. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.js +155 -0
  145. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.js.map +1 -0
  146. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.cjs +73 -0
  147. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.cjs.map +1 -0
  148. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.js +71 -0
  149. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.js.map +1 -0
  150. package/dist/node_modules/@byted/iaas-monitor/lib/utils.cjs +195 -0
  151. package/dist/node_modules/@byted/iaas-monitor/lib/utils.cjs.map +1 -0
  152. package/dist/node_modules/@byted/iaas-monitor/lib/utils.js +183 -0
  153. package/dist/node_modules/@byted/iaas-monitor/lib/utils.js.map +1 -0
  154. package/dist/node_modules/@byted-iaas/fetch/lib/basic.cjs +41 -0
  155. package/dist/node_modules/@byted-iaas/fetch/lib/basic.cjs.map +1 -0
  156. package/dist/node_modules/@byted-iaas/fetch/lib/basic.js +39 -0
  157. package/dist/node_modules/@byted-iaas/fetch/lib/basic.js.map +1 -0
  158. package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.cjs +109 -0
  159. package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.cjs.map +1 -0
  160. package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.js +88 -0
  161. package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.js.map +1 -0
  162. package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.cjs +78 -0
  163. package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.cjs.map +1 -0
  164. package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.js +76 -0
  165. package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.js.map +1 -0
  166. package/dist/node_modules/@byted-iaas/fetch/lib/fetch.cjs +237 -0
  167. package/dist/node_modules/@byted-iaas/fetch/lib/fetch.cjs.map +1 -0
  168. package/dist/node_modules/@byted-iaas/fetch/lib/fetch.js +235 -0
  169. package/dist/node_modules/@byted-iaas/fetch/lib/fetch.js.map +1 -0
  170. package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.cjs +28 -0
  171. package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.cjs.map +1 -0
  172. package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.js +26 -0
  173. package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.js.map +1 -0
  174. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.cjs +34 -0
  175. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.cjs.map +1 -0
  176. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.js +31 -0
  177. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.js.map +1 -0
  178. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.cjs +13 -0
  179. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.cjs.map +1 -0
  180. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.js +11 -0
  181. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.js.map +1 -0
  182. package/dist/node_modules/@byted-paas/vfetch/dist/es/index.cjs +445 -0
  183. package/dist/node_modules/@byted-paas/vfetch/dist/es/index.cjs.map +1 -0
  184. package/dist/node_modules/@byted-paas/vfetch/dist/es/index.js +442 -0
  185. package/dist/node_modules/@byted-paas/vfetch/dist/es/index.js.map +1 -0
  186. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs +12 -0
  187. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs.map +1 -0
  188. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
  189. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
  190. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.cjs +40 -0
  191. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.cjs.map +1 -0
  192. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +38 -0
  193. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js.map +1 -0
  194. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.cjs +10 -0
  195. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.cjs.map +1 -0
  196. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +8 -0
  197. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +1 -0
  198. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.cjs +24 -0
  199. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.cjs.map +1 -0
  200. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.js +22 -0
  201. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.js.map +1 -0
  202. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.cjs +23 -0
  203. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.cjs.map +1 -0
  204. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.js +21 -0
  205. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.js.map +1 -0
  206. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +19 -0
  207. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +1 -0
  208. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.js +17 -0
  209. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
  210. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.cjs +11 -0
  211. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.cjs.map +1 -0
  212. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +9 -0
  213. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -0
  214. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.cjs +24 -0
  215. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.cjs.map +1 -0
  216. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.js +22 -0
  217. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -0
  218. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.cjs +8 -0
  219. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.cjs.map +1 -0
  220. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +6 -0
  221. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js.map +1 -0
  222. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +17 -0
  223. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs.map +1 -0
  224. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +15 -0
  225. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js.map +1 -0
  226. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.cjs +17 -0
  227. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.cjs.map +1 -0
  228. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +15 -0
  229. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -0
  230. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs +12 -0
  231. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs.map +1 -0
  232. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +10 -0
  233. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  234. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.cjs +14 -0
  235. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.cjs.map +1 -0
  236. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.js +12 -0
  237. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
  238. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.cjs +43 -0
  239. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.cjs.map +1 -0
  240. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +41 -0
  241. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js.map +1 -0
  242. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.cjs +365 -0
  243. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.cjs.map +1 -0
  244. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +363 -0
  245. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.js.map +1 -0
  246. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.cjs +22 -0
  247. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.cjs.map +1 -0
  248. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.js +20 -0
  249. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.js.map +1 -0
  250. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.cjs +25 -0
  251. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.cjs.map +1 -0
  252. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.js +23 -0
  253. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.js.map +1 -0
  254. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.cjs +14 -0
  255. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.cjs.map +1 -0
  256. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.js +12 -0
  257. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.js.map +1 -0
  258. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.cjs +23 -0
  259. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.cjs.map +1 -0
  260. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.js +21 -0
  261. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.js.map +1 -0
  262. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.cjs +21 -0
  263. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.cjs.map +1 -0
  264. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.js +19 -0
  265. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.js.map +1 -0
  266. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.cjs +22 -0
  267. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.cjs.map +1 -0
  268. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.js +20 -0
  269. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.js.map +1 -0
  270. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs +137 -0
  271. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs.map +1 -0
  272. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js +134 -0
  273. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js.map +1 -0
  274. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.cjs +63 -0
  275. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.cjs.map +1 -0
  276. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.js +61 -0
  277. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.js.map +1 -0
  278. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.cjs +236 -0
  279. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.cjs.map +1 -0
  280. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.js +232 -0
  281. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.js.map +1 -0
  282. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.cjs +26 -0
  283. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.cjs.map +1 -0
  284. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.js +24 -0
  285. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.js.map +1 -0
  286. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.cjs +87 -0
  287. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.cjs.map +1 -0
  288. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.js +82 -0
  289. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.js.map +1 -0
  290. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.cjs +19 -0
  291. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.cjs.map +1 -0
  292. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.js +16 -0
  293. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.js.map +1 -0
  294. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.cjs +11 -0
  295. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.cjs.map +1 -0
  296. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.js +9 -0
  297. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.js.map +1 -0
  298. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.cjs +235 -0
  299. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.cjs.map +1 -0
  300. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.js +233 -0
  301. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.js.map +1 -0
  302. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.cjs +75 -0
  303. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.cjs.map +1 -0
  304. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.js +73 -0
  305. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.js.map +1 -0
  306. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.cjs +31 -0
  307. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.cjs.map +1 -0
  308. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.js +29 -0
  309. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.js.map +1 -0
  310. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.cjs +133 -0
  311. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.cjs.map +1 -0
  312. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.js +131 -0
  313. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
  314. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.cjs +17 -0
  315. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.cjs.map +1 -0
  316. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.js +15 -0
  317. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
  318. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.cjs +158 -0
  319. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.cjs.map +1 -0
  320. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.js +156 -0
  321. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.js.map +1 -0
  322. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.cjs +59 -0
  323. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.cjs.map +1 -0
  324. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.js +57 -0
  325. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
  326. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.cjs +35 -0
  327. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.cjs.map +1 -0
  328. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.js +33 -0
  329. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
  330. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.cjs +32 -0
  331. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.cjs.map +1 -0
  332. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.js +30 -0
  333. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.js.map +1 -0
  334. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.cjs +96 -0
  335. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.cjs.map +1 -0
  336. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.js +94 -0
  337. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
  338. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.cjs +46 -0
  339. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.cjs.map +1 -0
  340. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.js +44 -0
  341. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.js.map +1 -0
  342. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.cjs +104 -0
  343. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.cjs.map +1 -0
  344. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.js +102 -0
  345. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
  346. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.cjs +39 -0
  347. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.cjs.map +1 -0
  348. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.js +37 -0
  349. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.js.map +1 -0
  350. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.cjs +28 -0
  351. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.cjs.map +1 -0
  352. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.js +26 -0
  353. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.js.map +1 -0
  354. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.cjs +151 -0
  355. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.cjs.map +1 -0
  356. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.js +149 -0
  357. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.js.map +1 -0
  358. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.cjs +16 -0
  359. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.cjs.map +1 -0
  360. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.js +14 -0
  361. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.js.map +1 -0
  362. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.cjs +14 -0
  363. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.cjs.map +1 -0
  364. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.js +12 -0
  365. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.js.map +1 -0
  366. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.cjs +75 -0
  367. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.cjs.map +1 -0
  368. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.js +73 -0
  369. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
  370. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.cjs +26 -0
  371. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.cjs.map +1 -0
  372. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.js +24 -0
  373. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
  374. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.cjs +67 -0
  375. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.cjs.map +1 -0
  376. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.js +65 -0
  377. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.js.map +1 -0
  378. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +26 -0
  379. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.cjs.map +1 -0
  380. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js +24 -0
  381. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
  382. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.cjs +23 -0
  383. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.cjs.map +1 -0
  384. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.js +21 -0
  385. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
  386. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +82 -0
  387. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.cjs.map +1 -0
  388. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +80 -0
  389. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
  390. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.cjs +17 -0
  391. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.cjs.map +1 -0
  392. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js +15 -0
  393. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js.map +1 -0
  394. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.cjs +67 -0
  395. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.cjs.map +1 -0
  396. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.js +65 -0
  397. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
  398. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.cjs +39 -0
  399. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.cjs.map +1 -0
  400. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.js +37 -0
  401. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.js.map +1 -0
  402. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.cjs +87 -0
  403. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.cjs.map +1 -0
  404. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.js +85 -0
  405. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.js.map +1 -0
  406. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.cjs +354 -0
  407. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.cjs.map +1 -0
  408. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.js +352 -0
  409. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.js.map +1 -0
  410. package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.cjs +173 -0
  411. package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.cjs.map +1 -0
  412. package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.js +171 -0
  413. package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.js.map +1 -0
  414. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.cjs +135 -0
  415. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.cjs.map +1 -0
  416. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.js +133 -0
  417. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.js.map +1 -0
  418. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.cjs +29 -0
  419. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.cjs.map +1 -0
  420. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.js +26 -0
  421. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.js.map +1 -0
  422. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.cjs +11 -0
  423. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.cjs.map +1 -0
  424. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.js +11 -0
  425. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.js.map +1 -0
  426. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.cjs +67 -0
  427. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.cjs.map +1 -0
  428. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.js +65 -0
  429. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.js.map +1 -0
  430. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.cjs +11 -0
  431. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.cjs.map +1 -0
  432. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.js +9 -0
  433. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.js.map +1 -0
  434. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.cjs +40 -0
  435. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.cjs.map +1 -0
  436. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.js +38 -0
  437. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.js.map +1 -0
  438. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.cjs +53 -0
  439. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.cjs.map +1 -0
  440. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.js +51 -0
  441. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.js.map +1 -0
  442. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.cjs +197 -0
  443. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.cjs.map +1 -0
  444. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.js +195 -0
  445. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.js.map +1 -0
  446. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.cjs +21 -0
  447. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.cjs.map +1 -0
  448. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.js +19 -0
  449. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.js.map +1 -0
  450. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.cjs +166 -0
  451. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.cjs.map +1 -0
  452. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.js +149 -0
  453. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.js.map +1 -0
  454. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.cjs +13 -0
  455. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.cjs.map +1 -0
  456. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.js +8 -0
  457. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.js.map +1 -0
  458. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.cjs +57 -0
  459. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.cjs.map +1 -0
  460. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.js +54 -0
  461. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.js.map +1 -0
  462. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.cjs +114 -0
  463. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.cjs.map +1 -0
  464. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.js +108 -0
  465. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.js.map +1 -0
  466. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.cjs +495 -0
  467. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.cjs.map +1 -0
  468. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.js +493 -0
  469. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.js.map +1 -0
  470. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.cjs +86 -0
  471. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.cjs.map +1 -0
  472. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.js +80 -0
  473. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.js.map +1 -0
  474. package/dist/node_modules/@slardar/integrations/dist/action.cjs +982 -0
  475. package/dist/node_modules/@slardar/integrations/dist/action.cjs.map +1 -0
  476. package/dist/node_modules/@slardar/integrations/dist/action.js +980 -0
  477. package/dist/node_modules/@slardar/integrations/dist/action.js.map +1 -0
  478. package/dist/node_modules/@slardar/integrations/dist/captureConsole.cjs +162 -0
  479. package/dist/node_modules/@slardar/integrations/dist/captureConsole.cjs.map +1 -0
  480. package/dist/node_modules/@slardar/integrations/dist/captureConsole.js +160 -0
  481. package/dist/node_modules/@slardar/integrations/dist/captureConsole.js.map +1 -0
  482. package/dist/node_modules/@slardar/integrations/dist/heatmap.cjs +534 -0
  483. package/dist/node_modules/@slardar/integrations/dist/heatmap.cjs.map +1 -0
  484. package/dist/node_modules/@slardar/integrations/dist/heatmap.js +532 -0
  485. package/dist/node_modules/@slardar/integrations/dist/heatmap.js.map +1 -0
  486. package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs +139 -0
  487. package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs.map +1 -0
  488. package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js +137 -0
  489. package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js.map +1 -0
  490. package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +19 -0
  491. package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +1 -0
  492. package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.js +17 -0
  493. package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
  494. package/dist/node_modules/ahooks/es/createUpdateEffect/index.cjs +27 -0
  495. package/dist/node_modules/ahooks/es/createUpdateEffect/index.cjs.map +1 -0
  496. package/dist/node_modules/ahooks/es/createUpdateEffect/index.js +22 -0
  497. package/dist/node_modules/ahooks/es/createUpdateEffect/index.js.map +1 -0
  498. package/dist/node_modules/ahooks/es/useCreation/index.cjs +22 -0
  499. package/dist/node_modules/ahooks/es/useCreation/index.cjs.map +1 -0
  500. package/dist/node_modules/ahooks/es/useCreation/index.js +20 -0
  501. package/dist/node_modules/ahooks/es/useCreation/index.js.map +1 -0
  502. package/dist/node_modules/ahooks/es/useEventListener/index.cjs +41 -0
  503. package/dist/node_modules/ahooks/es/useEventListener/index.cjs.map +1 -0
  504. package/dist/node_modules/ahooks/es/useEventListener/index.js +39 -0
  505. package/dist/node_modules/ahooks/es/useEventListener/index.js.map +1 -0
  506. package/dist/node_modules/ahooks/es/useLatest/index.cjs +12 -0
  507. package/dist/node_modules/ahooks/es/useLatest/index.cjs.map +1 -0
  508. package/dist/node_modules/ahooks/es/useLatest/index.js +10 -0
  509. package/dist/node_modules/ahooks/es/useLatest/index.js.map +1 -0
  510. package/dist/node_modules/ahooks/es/useMemoizedFn/index.cjs +32 -0
  511. package/dist/node_modules/ahooks/es/useMemoizedFn/index.cjs.map +1 -0
  512. package/dist/node_modules/ahooks/es/useMemoizedFn/index.js +30 -0
  513. package/dist/node_modules/ahooks/es/useMemoizedFn/index.js.map +1 -0
  514. package/dist/node_modules/ahooks/es/useMount/index.cjs +25 -0
  515. package/dist/node_modules/ahooks/es/useMount/index.cjs.map +1 -0
  516. package/dist/node_modules/ahooks/es/useMount/index.js +23 -0
  517. package/dist/node_modules/ahooks/es/useMount/index.js.map +1 -0
  518. package/dist/node_modules/ahooks/es/useRafState/index.cjs +23 -0
  519. package/dist/node_modules/ahooks/es/useRafState/index.cjs.map +1 -0
  520. package/dist/node_modules/ahooks/es/useRafState/index.js +21 -0
  521. package/dist/node_modules/ahooks/es/useRafState/index.js.map +1 -0
  522. package/dist/node_modules/ahooks/es/useRequest/index.cjs +8 -0
  523. package/dist/node_modules/ahooks/es/useRequest/index.cjs.map +1 -0
  524. package/dist/node_modules/ahooks/es/useRequest/index.js +6 -0
  525. package/dist/node_modules/ahooks/es/useRequest/index.js.map +1 -0
  526. package/dist/node_modules/ahooks/es/useRequest/src/Fetch.cjs +150 -0
  527. package/dist/node_modules/ahooks/es/useRequest/src/Fetch.cjs.map +1 -0
  528. package/dist/node_modules/ahooks/es/useRequest/src/Fetch.js +148 -0
  529. package/dist/node_modules/ahooks/es/useRequest/src/Fetch.js.map +1 -0
  530. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.cjs +51 -0
  531. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.cjs.map +1 -0
  532. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.js +49 -0
  533. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.js.map +1 -0
  534. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.cjs +127 -0
  535. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.cjs.map +1 -0
  536. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.js +125 -0
  537. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.js.map +1 -0
  538. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.cjs +64 -0
  539. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.cjs.map +1 -0
  540. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.js +62 -0
  541. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.js.map +1 -0
  542. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.cjs +44 -0
  543. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.cjs.map +1 -0
  544. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.js +42 -0
  545. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.js.map +1 -0
  546. package/dist/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.cjs +66 -0
  547. package/dist/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.cjs.map +1 -0
  548. package/dist/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.js +64 -0
  549. package/dist/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.js.map +1 -0
  550. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.cjs +34 -0
  551. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.cjs.map +1 -0
  552. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.js +32 -0
  553. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.js.map +1 -0
  554. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.cjs +51 -0
  555. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.cjs.map +1 -0
  556. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.js +49 -0
  557. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.js.map +1 -0
  558. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.cjs +58 -0
  559. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.cjs.map +1 -0
  560. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.js +56 -0
  561. package/dist/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.js.map +1 -0
  562. package/dist/node_modules/ahooks/es/useRequest/src/useRequest.cjs +38 -0
  563. package/dist/node_modules/ahooks/es/useRequest/src/useRequest.cjs.map +1 -0
  564. package/dist/node_modules/ahooks/es/useRequest/src/useRequest.js +36 -0
  565. package/dist/node_modules/ahooks/es/useRequest/src/useRequest.js.map +1 -0
  566. package/dist/node_modules/ahooks/es/useRequest/src/useRequestImplement.cjs +58 -0
  567. package/dist/node_modules/ahooks/es/useRequest/src/useRequestImplement.cjs.map +1 -0
  568. package/dist/node_modules/ahooks/es/useRequest/src/useRequestImplement.js +56 -0
  569. package/dist/node_modules/ahooks/es/useRequest/src/useRequestImplement.js.map +1 -0
  570. package/dist/node_modules/ahooks/es/useRequest/src/utils/cache.cjs +26 -0
  571. package/dist/node_modules/ahooks/es/useRequest/src/utils/cache.cjs.map +1 -0
  572. package/dist/node_modules/ahooks/es/useRequest/src/utils/cache.js +23 -0
  573. package/dist/node_modules/ahooks/es/useRequest/src/utils/cache.js.map +1 -0
  574. package/dist/node_modules/ahooks/es/useRequest/src/utils/cachePromise.cjs +24 -0
  575. package/dist/node_modules/ahooks/es/useRequest/src/utils/cachePromise.cjs.map +1 -0
  576. package/dist/node_modules/ahooks/es/useRequest/src/utils/cachePromise.js +21 -0
  577. package/dist/node_modules/ahooks/es/useRequest/src/utils/cachePromise.js.map +1 -0
  578. package/dist/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.cjs +22 -0
  579. package/dist/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.cjs.map +1 -0
  580. package/dist/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.js +19 -0
  581. package/dist/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.js.map +1 -0
  582. package/dist/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.cjs +13 -0
  583. package/dist/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.cjs.map +1 -0
  584. package/dist/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.js +11 -0
  585. package/dist/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.js.map +1 -0
  586. package/dist/node_modules/ahooks/es/useRequest/src/utils/isOnline.cjs +14 -0
  587. package/dist/node_modules/ahooks/es/useRequest/src/utils/isOnline.cjs.map +1 -0
  588. package/dist/node_modules/ahooks/es/useRequest/src/utils/isOnline.js +12 -0
  589. package/dist/node_modules/ahooks/es/useRequest/src/utils/isOnline.js.map +1 -0
  590. package/dist/node_modules/ahooks/es/useRequest/src/utils/limit.cjs +23 -0
  591. package/dist/node_modules/ahooks/es/useRequest/src/utils/limit.cjs.map +1 -0
  592. package/dist/node_modules/ahooks/es/useRequest/src/utils/limit.js +21 -0
  593. package/dist/node_modules/ahooks/es/useRequest/src/utils/limit.js.map +1 -0
  594. package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.cjs +26 -0
  595. package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.cjs.map +1 -0
  596. package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.js +24 -0
  597. package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.js.map +1 -0
  598. package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.cjs +23 -0
  599. package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.cjs.map +1 -0
  600. package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.js +21 -0
  601. package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.js.map +1 -0
  602. package/dist/node_modules/ahooks/es/useSize/index.cjs +34 -0
  603. package/dist/node_modules/ahooks/es/useSize/index.cjs.map +1 -0
  604. package/dist/node_modules/ahooks/es/useSize/index.js +32 -0
  605. package/dist/node_modules/ahooks/es/useSize/index.js.map +1 -0
  606. package/dist/node_modules/ahooks/es/useUnmount/index.cjs +22 -0
  607. package/dist/node_modules/ahooks/es/useUnmount/index.cjs.map +1 -0
  608. package/dist/node_modules/ahooks/es/useUnmount/index.js +20 -0
  609. package/dist/node_modules/ahooks/es/useUnmount/index.js.map +1 -0
  610. package/dist/node_modules/ahooks/es/useUpdate/index.cjs +13 -0
  611. package/dist/node_modules/ahooks/es/useUpdate/index.cjs.map +1 -0
  612. package/dist/node_modules/ahooks/es/useUpdate/index.js +11 -0
  613. package/dist/node_modules/ahooks/es/useUpdate/index.js.map +1 -0
  614. package/dist/node_modules/ahooks/es/useUpdateEffect/index.cjs +9 -0
  615. package/dist/node_modules/ahooks/es/useUpdateEffect/index.cjs.map +1 -0
  616. package/dist/node_modules/ahooks/es/useUpdateEffect/index.js +7 -0
  617. package/dist/node_modules/ahooks/es/useUpdateEffect/index.js.map +1 -0
  618. package/dist/node_modules/ahooks/es/useVirtualList/index.cjs +123 -0
  619. package/dist/node_modules/ahooks/es/useVirtualList/index.cjs.map +1 -0
  620. package/dist/node_modules/ahooks/es/useVirtualList/index.js +121 -0
  621. package/dist/node_modules/ahooks/es/useVirtualList/index.js.map +1 -0
  622. package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.cjs +53 -0
  623. package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.cjs.map +1 -0
  624. package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.js +51 -0
  625. package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.js.map +1 -0
  626. package/dist/node_modules/ahooks/es/utils/depsAreSame.cjs +16 -0
  627. package/dist/node_modules/ahooks/es/utils/depsAreSame.cjs.map +1 -0
  628. package/dist/node_modules/ahooks/es/utils/depsAreSame.js +14 -0
  629. package/dist/node_modules/ahooks/es/utils/depsAreSame.js.map +1 -0
  630. package/dist/node_modules/ahooks/es/utils/domTarget.cjs +27 -0
  631. package/dist/node_modules/ahooks/es/utils/domTarget.cjs.map +1 -0
  632. package/dist/node_modules/ahooks/es/utils/domTarget.js +25 -0
  633. package/dist/node_modules/ahooks/es/utils/domTarget.js.map +1 -0
  634. package/dist/node_modules/ahooks/es/utils/index.cjs +10 -0
  635. package/dist/node_modules/ahooks/es/utils/index.cjs.map +1 -0
  636. package/dist/node_modules/ahooks/es/utils/index.js +7 -0
  637. package/dist/node_modules/ahooks/es/utils/index.js.map +1 -0
  638. package/dist/node_modules/ahooks/es/utils/isBrowser.cjs +9 -0
  639. package/dist/node_modules/ahooks/es/utils/isBrowser.cjs.map +1 -0
  640. package/dist/node_modules/ahooks/es/utils/isBrowser.js +7 -0
  641. package/dist/node_modules/ahooks/es/utils/isBrowser.js.map +1 -0
  642. package/dist/node_modules/ahooks/es/utils/isDev.cjs +7 -0
  643. package/dist/node_modules/ahooks/es/utils/isDev.cjs.map +1 -0
  644. package/dist/node_modules/ahooks/es/utils/isDev.js +5 -0
  645. package/dist/node_modules/ahooks/es/utils/isDev.js.map +1 -0
  646. package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.cjs +10 -0
  647. package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.cjs.map +1 -0
  648. package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.js +8 -0
  649. package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.js.map +1 -0
  650. package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.cjs +13 -0
  651. package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.cjs.map +1 -0
  652. package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.js +11 -0
  653. package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.js.map +1 -0
  654. package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.cjs +10 -0
  655. package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.cjs.map +1 -0
  656. package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.js +8 -0
  657. package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.js.map +1 -0
  658. package/dist/packages/core/dist/index.cjs +28 -40
  659. package/dist/packages/core/dist/index.cjs.map +1 -1
  660. package/dist/packages/core/dist/index.js +20 -32
  661. package/dist/packages/core/dist/index.js.map +1 -1
  662. package/dist/plugins/adkPlugin.d.ts.map +1 -1
  663. package/package.json +1 -1
@@ -0,0 +1,195 @@
1
+ import { logger } from '../logger.js';
2
+ import { WebStorage } from '../storage/index.js';
3
+ import { safeGet } from '../util.js';
4
+ import { fetchErrlangData } from './util.js';
5
+
6
+ const NAME_SPACE = 'top_proxy_cache';
7
+ const ERR_LANG_KEY = 'errLang';
8
+ class Translator {
9
+ constructor() {
10
+ //TODO: 这里需要优化, 页面刷新时不重新请求 tcc , 仅 5min 更新一次
11
+ this.init = async (_, set) => {
12
+ try {
13
+ const data = await fetchErrlangData();
14
+ await set(ERR_LANG_KEY, data, {
15
+ interval: 1000 * 60 * 5,
16
+ fetcher: async () => {
17
+ return await fetchErrlangData();
18
+ },
19
+ maxRetries: 1, // 更新失败时最大重试次数,默认3次
20
+ });
21
+ logger.log('init errLang success');
22
+ }
23
+ catch (e) {
24
+ logger.error('init errLang error: ', e);
25
+ }
26
+ };
27
+ this.storage = new WebStorage({
28
+ name: NAME_SPACE,
29
+ cacheOption: {
30
+ maxSize: 20 * 1024 * 1024,
31
+ fallbackToMemory: true, // 可选,存储失败时是否回退到内存存储,默认 true
32
+ },
33
+ initCallback: this.init,
34
+ });
35
+ }
36
+ async getErrLangData() {
37
+ return await this.storage.get(ERR_LANG_KEY);
38
+ }
39
+ async fetchServiceList() {
40
+ try {
41
+ const data = await this.getErrLangData();
42
+ const keys = Object.keys(data);
43
+ return keys
44
+ .filter((k) => k.startsWith('err_lang_'))
45
+ .map((k) => { var _a; return ((_a = k.match(/err_lang_(\w+)/)) === null || _a === void 0 ? void 0 : _a[1]) || ''; });
46
+ }
47
+ catch (e) {
48
+ logger.error('[Translator] get tcc keylist error: ', e);
49
+ return null;
50
+ }
51
+ }
52
+ async transferError(body) {
53
+ var _a, _b, _c, _d;
54
+ try {
55
+ if (typeof body === 'string') {
56
+ try {
57
+ body = JSON.parse(body);
58
+ }
59
+ catch (e) {
60
+ //ignore
61
+ return body;
62
+ }
63
+ }
64
+ let errorMsg = '';
65
+ const errLangData = await this.getErrLangData();
66
+ const service_list = await this.fetchServiceList();
67
+ const service = (_a = body.ResponseMetadata) === null || _a === void 0 ? void 0 : _a.Service;
68
+ const product = (_b = body.ResponseMetadata) === null || _b === void 0 ? void 0 : _b.Product;
69
+ const { Code, CodeN, Message } = ((_c = body.ResponseMetadata) === null || _c === void 0 ? void 0 : _c.Error) || {};
70
+ const Action = ((_d = body.ResponseMetadata) === null || _d === void 0 ? void 0 : _d.Action) || '';
71
+ if (Code !== undefined || CodeN !== undefined) {
72
+ /** 公有云查询服务翻译映射 */
73
+ if (service_list.includes(service)) {
74
+ const tcc_data = errLangData[`err_lang_${product || service}`];
75
+ const err_lang = tcc_data;
76
+ //1. 各自产品的err_lang_${product}中寻找对应Action的翻译
77
+ const actionErrorTrans = safeGet(err_lang, Action, {});
78
+ errorMsg = actionErrorTrans[Code];
79
+ //2. 各自产品的err_lang_${product}中寻找Common中的翻译(Common为该产品公共错误码)
80
+ if (!errorMsg) {
81
+ const commonLang = safeGet(tcc_data, 'Common') || safeGet(tcc_data, 'common', {});
82
+ errorMsg = commonLang[Code];
83
+ }
84
+ //3. 各自产品的err_lang_${product}中寻找Extra中的翻译 (Extra为透传的别的产品的错误码)
85
+ if (!errorMsg) {
86
+ errorMsg = safeGet(err_lang, 'Extra', {})[Code];
87
+ }
88
+ }
89
+ //4. 寻找err_lang中的翻译
90
+ if (!errorMsg) {
91
+ const { common = {} } = safeGet(errLangData, 'err_lang', {});
92
+ errorMsg = common[Code];
93
+ }
94
+ //errMsg如果是对象的话,再以Message作为key进行取值
95
+ if (errorMsg && typeof errorMsg === 'object') {
96
+ // errorMsg = errorMsg?.[Message] || '';
97
+ errorMsg = safeGet(errorMsg, `${Message}`);
98
+ }
99
+ if (errorMsg) {
100
+ body.ResponseMetadata.Error.OriMessage = Message;
101
+ body.ResponseMetadata.Error.Message = errorMsg;
102
+ }
103
+ if (Code === 'InvalidAccessKey') {
104
+ logger.error('InvalidAccessKey %j', safeGet(body, 'ResponseMetadata', {}));
105
+ }
106
+ }
107
+ }
108
+ catch (e) {
109
+ logger.error('[Error Trans Failed] %s', e.stack);
110
+ }
111
+ return body;
112
+ }
113
+ /**
114
+ * 根据Service、Action、Code、Message四个维度确定错误翻译, 供 transferBatchError 使用
115
+ * @param params
116
+ * @returns
117
+ */
118
+ async getErrMessage(params) {
119
+ logger.debug('getErrMessage params: ', params);
120
+ const { Service, Action, Code, Message } = params;
121
+ let errorMsg = '';
122
+ const errLangData = await this.getErrLangData();
123
+ const service_list = await this.fetchServiceList();
124
+ /** 公有云查询服务翻译映射 */
125
+ if (service_list.includes(Service)) {
126
+ //'directconnect', 'natgateway', 'vpn', 'cen'四个服务的翻译存于err_lang_net中
127
+ const tcc_data = errLangData[`err_lang_${Service}`];
128
+ const err_lang = tcc_data;
129
+ //1. 各自产品的err_lang_${product}中寻找对应Action的翻译
130
+ const actionErrorTrans = safeGet(err_lang, Action, {});
131
+ errorMsg = actionErrorTrans[Code];
132
+ //2. 各自产品的err_lang_${product}中寻找Common中的翻译(Common为该产品公共错误码)
133
+ if (!errorMsg) {
134
+ const commonLang = safeGet(err_lang, 'Common') || safeGet(err_lang, 'common', {});
135
+ errorMsg = commonLang[Code];
136
+ }
137
+ //3. 各自产品的err_lang_${product}中寻找Extra中的翻译 (Extra为透传的别的产品的错误码)
138
+ if (!errorMsg) {
139
+ errorMsg = safeGet(err_lang, 'Extra', {})[Code];
140
+ }
141
+ }
142
+ //4. 寻找err_lang中的翻译
143
+ if (!errorMsg) {
144
+ const { common = {} } = safeGet(errLangData, 'err_lang', {});
145
+ errorMsg = common[Code];
146
+ }
147
+ //errMsg如果是对象的话,再以Message作为key进行取值
148
+ if (typeof errorMsg === 'object') {
149
+ errorMsg = errorMsg[Message];
150
+ }
151
+ return errorMsg;
152
+ }
153
+ /**
154
+ * 针对具有operationDetails结构的批量OpenAPI返回结果, 进行错误翻译
155
+ * ecs批量接口的结构为 { operationDetails: [{ error: {message, code} }]},
156
+ * @param response
157
+ * @param options
158
+ * @returns
159
+ */
160
+ async transferBatchError(resp, options) {
161
+ var _a;
162
+ if (!resp.OperationDetails || !Array.isArray(resp.OperationDetails)) {
163
+ return;
164
+ }
165
+ for (const d of resp.OperationDetails) {
166
+ if ((_a = d.Error) === null || _a === void 0 ? void 0 : _a.Code) {
167
+ d.Error.Orimessage = d.Error.Message;
168
+ d.Error.Message = await this.getErrMessage({
169
+ Service: options.service,
170
+ Action: options.action,
171
+ Code: d.Error.Code,
172
+ Message: d.Error.Message,
173
+ });
174
+ }
175
+ }
176
+ return resp;
177
+ }
178
+ isTopError(error) {
179
+ var _a, _b;
180
+ const msg = error.message;
181
+ try {
182
+ const json = JSON.parse(msg);
183
+ if ((_b = (_a = json === null || json === void 0 ? void 0 : json.ResponseMetadata) === null || _a === void 0 ? void 0 : _a.Error) === null || _b === void 0 ? void 0 : _b.Message) {
184
+ return true;
185
+ }
186
+ }
187
+ catch (error) {
188
+ return false;
189
+ }
190
+ return false;
191
+ }
192
+ }
193
+
194
+ export { Translator as default };
195
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.js"],"sourcesContent":["import { logger } from '../logger';\nimport { WebStorage } from '../storage';\nimport { safeGet } from '../util';\nimport { fetchErrlangData } from './util';\nconst NAME_SPACE = 'top_proxy_cache';\nconst ERR_LANG_KEY = 'errLang';\nclass Translator {\n constructor() {\n //TODO: 这里需要优化, 页面刷新时不重新请求 tcc , 仅 5min 更新一次\n this.init = async (_, set) => {\n try {\n const data = await fetchErrlangData();\n await set(ERR_LANG_KEY, data, {\n interval: 1000 * 60 * 5,\n fetcher: async () => {\n return await fetchErrlangData();\n },\n maxRetries: 1, // 更新失败时最大重试次数,默认3次\n });\n logger.log('init errLang success');\n }\n catch (e) {\n logger.error('init errLang error: ', e);\n }\n };\n this.storage = new WebStorage({\n name: NAME_SPACE,\n cacheOption: {\n maxSize: 20 * 1024 * 1024,\n fallbackToMemory: true, // 可选,存储失败时是否回退到内存存储,默认 true\n },\n initCallback: this.init,\n });\n }\n async getErrLangData() {\n return await this.storage.get(ERR_LANG_KEY);\n }\n async fetchServiceList() {\n try {\n const data = await this.getErrLangData();\n const keys = Object.keys(data);\n return keys\n .filter((k) => k.startsWith('err_lang_'))\n .map((k) => { var _a; return ((_a = k.match(/err_lang_(\\w+)/)) === null || _a === void 0 ? void 0 : _a[1]) || ''; });\n }\n catch (e) {\n logger.error('[Translator] get tcc keylist error: ', e);\n return null;\n }\n }\n async transferError(body) {\n var _a, _b, _c, _d;\n try {\n if (typeof body === 'string') {\n try {\n body = JSON.parse(body);\n }\n catch (e) {\n //ignore\n return body;\n }\n }\n let errorMsg = '';\n const errLangData = await this.getErrLangData();\n const service_list = await this.fetchServiceList();\n const service = (_a = body.ResponseMetadata) === null || _a === void 0 ? void 0 : _a.Service;\n const product = (_b = body.ResponseMetadata) === null || _b === void 0 ? void 0 : _b.Product;\n const { Code, CodeN, Message } = ((_c = body.ResponseMetadata) === null || _c === void 0 ? void 0 : _c.Error) || {};\n const Action = ((_d = body.ResponseMetadata) === null || _d === void 0 ? void 0 : _d.Action) || '';\n if (Code !== undefined || CodeN !== undefined) {\n /** 公有云查询服务翻译映射 */\n if (service_list.includes(service)) {\n const tcc_data = errLangData[`err_lang_${product || service}`];\n const err_lang = tcc_data;\n //1. 各自产品的err_lang_${product}中寻找对应Action的翻译\n const actionErrorTrans = safeGet(err_lang, Action, {});\n errorMsg = actionErrorTrans[Code];\n //2. 各自产品的err_lang_${product}中寻找Common中的翻译(Common为该产品公共错误码)\n if (!errorMsg) {\n const commonLang = safeGet(tcc_data, 'Common') || safeGet(tcc_data, 'common', {});\n errorMsg = commonLang[Code];\n }\n //3. 各自产品的err_lang_${product}中寻找Extra中的翻译 (Extra为透传的别的产品的错误码)\n if (!errorMsg) {\n errorMsg = safeGet(err_lang, 'Extra', {})[Code];\n }\n }\n //4. 寻找err_lang中的翻译\n if (!errorMsg) {\n const { common = {} } = safeGet(errLangData, 'err_lang', {});\n errorMsg = common[Code];\n }\n //errMsg如果是对象的话,再以Message作为key进行取值\n if (errorMsg && typeof errorMsg === 'object') {\n // errorMsg = errorMsg?.[Message] || '';\n errorMsg = safeGet(errorMsg, `${Message}`);\n }\n if (errorMsg) {\n body.ResponseMetadata.Error.OriMessage = Message;\n body.ResponseMetadata.Error.Message = errorMsg;\n }\n if (Code === 'InvalidAccessKey') {\n logger.error('InvalidAccessKey %j', safeGet(body, 'ResponseMetadata', {}));\n }\n }\n }\n catch (e) {\n logger.error('[Error Trans Failed] %s', e.stack);\n }\n return body;\n }\n /**\n * 根据Service、Action、Code、Message四个维度确定错误翻译, 供 transferBatchError 使用\n * @param params\n * @returns\n */\n async getErrMessage(params) {\n logger.debug('getErrMessage params: ', params);\n const { Service, Action, Code, Message } = params;\n let errorMsg = '';\n const errLangData = await this.getErrLangData();\n const service_list = await this.fetchServiceList();\n /** 公有云查询服务翻译映射 */\n if (service_list.includes(Service)) {\n //'directconnect', 'natgateway', 'vpn', 'cen'四个服务的翻译存于err_lang_net中\n const tcc_data = errLangData[`err_lang_${Service}`];\n const err_lang = tcc_data;\n //1. 各自产品的err_lang_${product}中寻找对应Action的翻译\n const actionErrorTrans = safeGet(err_lang, Action, {});\n errorMsg = actionErrorTrans[Code];\n //2. 各自产品的err_lang_${product}中寻找Common中的翻译(Common为该产品公共错误码)\n if (!errorMsg) {\n const commonLang = safeGet(err_lang, 'Common') || safeGet(err_lang, 'common', {});\n errorMsg = commonLang[Code];\n }\n //3. 各自产品的err_lang_${product}中寻找Extra中的翻译 (Extra为透传的别的产品的错误码)\n if (!errorMsg) {\n errorMsg = safeGet(err_lang, 'Extra', {})[Code];\n }\n }\n //4. 寻找err_lang中的翻译\n if (!errorMsg) {\n const { common = {} } = safeGet(errLangData, 'err_lang', {});\n errorMsg = common[Code];\n }\n //errMsg如果是对象的话,再以Message作为key进行取值\n if (typeof errorMsg === 'object') {\n errorMsg = errorMsg[Message];\n }\n return errorMsg;\n }\n /**\n * 针对具有operationDetails结构的批量OpenAPI返回结果, 进行错误翻译\n * ecs批量接口的结构为 { operationDetails: [{ error: {message, code} }]},\n * @param response\n * @param options\n * @returns\n */\n async transferBatchError(resp, options) {\n var _a;\n if (!resp.OperationDetails || !Array.isArray(resp.OperationDetails)) {\n return;\n }\n for (const d of resp.OperationDetails) {\n if ((_a = d.Error) === null || _a === void 0 ? void 0 : _a.Code) {\n d.Error.Orimessage = d.Error.Message;\n d.Error.Message = await this.getErrMessage({\n Service: options.service,\n Action: options.action,\n Code: d.Error.Code,\n Message: d.Error.Message,\n });\n }\n }\n return resp;\n }\n isTopError(error) {\n var _a, _b;\n const msg = error.message;\n try {\n const json = JSON.parse(msg);\n if ((_b = (_a = json === null || json === void 0 ? void 0 : json.ResponseMetadata) === null || _a === void 0 ? void 0 : _a.Error) === null || _b === void 0 ? void 0 : _b.Message) {\n return true;\n }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AAM;AAC1C,oBAAoB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI;AACtC,oBAAoB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO;AAC5C,iBAAiB,CAAC,CAAC;AACnB,aAAa;AACb,SAAS;AACT,QAAQ,OAAO,IAAI,CAAC;AACpB,KAAK;AACL,IAAI,UAAU,CAAC,KAAK,EAAE;AACtB,QAAQ,IAAI,EAAE,EAAE,EAAE,CAAC;AACnB,QAAQ,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC;AAClC,QAAQ,IAAI;AACZ,YAAY,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACzC,YAAY,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,gBAAgB,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;AAC/L,gBAAgB,OAAO,IAAI,CAAC;AAC5B,aAAa;AACb,SAAS;AACT,QAAQ,OAAO,KAAK,EAAE;AACtB,YAAY,OAAO,KAAK,CAAC;AACzB,SAAS;AACT,QAAQ,OAAO,KAAK,CAAC;AACrB,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var constant = require('../constant.cjs');
4
+ var logger = require('../logger.cjs');
5
+ var util = require('../util.cjs');
6
+
7
+ async function fetchErrlangData() {
8
+ const resp = await fetch(constant.getApiUrl('errLang'));
9
+ const isJson = util.isJsonResponse(resp);
10
+ if (resp.ok && resp.status === 200 && isJson) {
11
+ return await resp.json();
12
+ }
13
+ else {
14
+ const text = isJson ? await resp.json() : await resp.text();
15
+ logger.logger.error('[fetchErrlangData] 获取 tcc errlang 数据失败: ', text);
16
+ return {};
17
+ }
18
+ }
19
+
20
+ exports.fetchErrlangData = fetchErrlangData;
21
+ //# sourceMappingURL=util.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.cjs","sources":["../../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.js"],"sourcesContent":["import { getApiUrl } from '../constant';\nimport { logger } from '../logger';\nimport { isJsonResponse } from '../util';\nexport async function fetchErrlangData() {\n const resp = await fetch(getApiUrl('errLang'));\n const isJson = isJsonResponse(resp);\n if (resp.ok && resp.status === 200 && isJson) {\n return await resp.json();\n }\n else {\n const text = isJson ? await resp.json() : await resp.text();\n logger.error('[fetchErrlangData] 获取 tcc errlang 数据失败: ', text);\n return {};\n }\n}\n"],"names":["getApiUrl","isJsonResponse","logger"],"mappings":";;;;;;AAGO,eAAe,gBAAgB,GAAG;AACzC,IAAI,MAAM,IAAI,GAAG,MAAM,KAAK,CAACA,kBAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AACnD,IAAI,MAAM,MAAM,GAAGC,mBAAc,CAAC,IAAI,CAAC,CAAC;AACxC,IAAI,IAAI,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,IAAI,MAAM,EAAE;AAClD,QAAQ,OAAO,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;AACjC,KAAK;AACL,SAAS;AACT,QAAQ,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;AACpE,QAAQC,aAAM,CAAC,KAAK,CAAC,0CAA0C,EAAE,IAAI,CAAC,CAAC;AACvE,QAAQ,OAAO,EAAE,CAAC;AAClB,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,19 @@
1
+ import { getApiUrl } from '../constant.js';
2
+ import { logger } from '../logger.js';
3
+ import { isJsonResponse } from '../util.js';
4
+
5
+ async function fetchErrlangData() {
6
+ const resp = await fetch(getApiUrl('errLang'));
7
+ const isJson = isJsonResponse(resp);
8
+ if (resp.ok && resp.status === 200 && isJson) {
9
+ return await resp.json();
10
+ }
11
+ else {
12
+ const text = isJson ? await resp.json() : await resp.text();
13
+ logger.error('[fetchErrlangData] 获取 tcc errlang 数据失败: ', text);
14
+ return {};
15
+ }
16
+ }
17
+
18
+ export { fetchErrlangData };
19
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sources":["../../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.js"],"sourcesContent":["import { getApiUrl } from '../constant';\nimport { logger } from '../logger';\nimport { isJsonResponse } from '../util';\nexport async function fetchErrlangData() {\n const resp = await fetch(getApiUrl('errLang'));\n const isJson = isJsonResponse(resp);\n if (resp.ok && resp.status === 200 && isJson) {\n return await resp.json();\n }\n else {\n const text = isJson ? await resp.json() : await resp.text();\n logger.error('[fetchErrlangData] 获取 tcc errlang 数据失败: ', text);\n return {};\n }\n}\n"],"names":[],"mappings":";;;;AAGO,eAAe,gBAAgB,GAAG;AACzC,IAAI,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AACnD,IAAI,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AACxC,IAAI,IAAI,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,IAAI,MAAM,EAAE;AAClD,QAAQ,OAAO,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;AACjC,KAAK;AACL,SAAS;AACT,QAAQ,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;AACpE,QAAQ,MAAM,CAAC,KAAK,CAAC,0CAA0C,EAAE,IAAI,CAAC,CAAC;AACvE,QAAQ,OAAO,EAAE,CAAC;AAClB,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,166 @@
1
+ 'use strict';
2
+
3
+ function getCookies() {
4
+ var _a, _b;
5
+ if (!isBrowser())
6
+ return {};
7
+ const cookies = {};
8
+ const list = (_b = (_a = window === null || window === void 0 ? void 0 : window.document) === null || _a === void 0 ? void 0 : _a.cookie) === null || _b === void 0 ? void 0 : _b.split(';');
9
+ list.forEach((item) => {
10
+ const temp = item.split('=');
11
+ const key = temp[0].replace('"', '').trim();
12
+ // 对齐nodejs cookie解析逻辑,同名key
13
+ if (!cookies[key]) {
14
+ cookies[key] = temp[1];
15
+ }
16
+ });
17
+ return cookies;
18
+ }
19
+ function isGetMethod(method) {
20
+ return (method === null || method === void 0 ? void 0 : method.toLowerCase()) === 'get';
21
+ }
22
+ function isBrowser() {
23
+ return typeof window !== 'undefined' && typeof window.document !== 'undefined';
24
+ }
25
+ const getRegionFromUrl = (pathname) => {
26
+ var _a;
27
+ pathname = pathname || location.pathname;
28
+ let region = (_a = pathname.match(/\/region:.+\+(.+)/)) === null || _a === void 0 ? void 0 : _a[1];
29
+ region && (region = region.replace(/\/.*/, ''));
30
+ return region;
31
+ };
32
+ function getRegion(option) {
33
+ const cookies = getCookies();
34
+ const { params } = option;
35
+ const region = (params === null || params === void 0 ? void 0 : params['Region']) ||
36
+ (params === null || params === void 0 ? void 0 : params['region']) ||
37
+ (isBrowser() && getRegionFromUrl()) ||
38
+ cookies['iaas_global_region'];
39
+ return region;
40
+ }
41
+ function isOpenAPIError(err) {
42
+ var _a;
43
+ return !!((_a = err === null || err === void 0 ? void 0 : err.ResponseMetadata) === null || _a === void 0 ? void 0 : _a.Error);
44
+ }
45
+ /**
46
+ * v2 版本的 API 要求将数据全部摊平后通过 url query 传递。
47
+ * ````js
48
+ * {
49
+ * b: 1,
50
+ * a: [{ aa: 10, bb: [ { c: 'c' }, 'd' ]}]
51
+ * }
52
+ * ````
53
+ * 会被递归摊平成:
54
+ * ````
55
+ * {
56
+ * b: 1,
57
+ * "a.0.aa": 10,
58
+ * "a.0.bb.0.c": "c",
59
+ * "a.0.bb.1": "d"
60
+ * }
61
+ * ````
62
+ */
63
+ const flattenParams = (target, propPath) => {
64
+ if (typeof target !== 'object' || target === null) {
65
+ return propPath
66
+ ? {
67
+ [propPath]: target,
68
+ }
69
+ : target;
70
+ }
71
+ if (Array.isArray(target)) {
72
+ return target.reduce((obj, val, i) => {
73
+ // 跟后端一致,数组统一从 1 开始计数。
74
+ return Object.assign(obj, flattenParams(val, `${propPath ? propPath + '.' : ''}${i + 1}`));
75
+ }, {});
76
+ }
77
+ else {
78
+ return Object.keys(target).reduce((obj, prop) => {
79
+ return Object.assign(obj, flattenParams(target[prop], `${propPath ? propPath + '.' : ''}${firstLetterUppercase(prop)}`));
80
+ }, {});
81
+ }
82
+ };
83
+ const formatParams = (option) => {
84
+ var _a;
85
+ const { needFlatten, disableUpperCamel, headers } = option;
86
+ let params = option.target;
87
+ // 递归摊平
88
+ needFlatten && (params = flattenParams(params));
89
+ // 首字母转大写
90
+ if (!disableUpperCamel) {
91
+ params = firstLetterTransform(params, 'upperCase');
92
+ }
93
+ if ((_a = headers['content-type']) === null || _a === void 0 ? void 0 : _a.includes('x-www-form-urlencoded')) {
94
+ if (Object.keys(params).length > 0) {
95
+ const searchParams = new URLSearchParams();
96
+ Object.keys(params).forEach((key) => params[key] && searchParams.append(key, params[key]));
97
+ return searchParams;
98
+ }
99
+ }
100
+ return params;
101
+ };
102
+ const formatResult = (target) => {
103
+ return firstLetterTransform(target, 'lowerCase');
104
+ };
105
+ const firstLetterUppercase = (str) => {
106
+ return str.charAt(0).toLocaleUpperCase() + str.slice(1);
107
+ };
108
+ const firstLetterLowercase = (str) => {
109
+ return str.charAt(0).toLocaleLowerCase() + str.slice(1);
110
+ };
111
+ /** 首字母大小写的转换, 默认转小写 */
112
+ const firstLetterTransform = (target, type = 'lowerCase') => {
113
+ if (target === null ||
114
+ typeof target !== 'object' ||
115
+ target instanceof URLSearchParams) {
116
+ return target;
117
+ }
118
+ const fn = type === 'upperCase' ? firstLetterUppercase : firstLetterLowercase;
119
+ if (Array.isArray(target)) {
120
+ target = target.map((t) => firstLetterTransform(t, type));
121
+ }
122
+ else if (typeof target === 'object') {
123
+ target = Object.keys(target).reduce((obj, key) => {
124
+ obj[fn(key)] = firstLetterTransform(target[key], type);
125
+ return obj;
126
+ }, {});
127
+ }
128
+ return target;
129
+ };
130
+ function isJsonResponse(resp) {
131
+ var _a, _b, _c;
132
+ return (_c = (_b = (_a = resp === null || resp === void 0 ? void 0 : resp.headers) === null || _a === void 0 ? void 0 : _a.get) === null || _b === void 0 ? void 0 : _b.call(_a, 'content-type')) === null || _c === void 0 ? void 0 : _c.includes('application/json');
133
+ }
134
+ function safeGet(obj, key, defaultValue) {
135
+ return obj[key] !== undefined ? obj[key] : defaultValue;
136
+ }
137
+ /**
138
+ * 解码
139
+ * @param s
140
+ * @returns
141
+ */
142
+ const urlDecode = (s) => atob(s)
143
+ .split('')
144
+ .map((c) => String.fromCharCode(c.charCodeAt(0) ^ 0x7f))
145
+ .join('');
146
+ const clientKey = (service, version) => {
147
+ return `${service}-${version}`;
148
+ };
149
+
150
+ exports.clientKey = clientKey;
151
+ exports.firstLetterLowercase = firstLetterLowercase;
152
+ exports.firstLetterTransform = firstLetterTransform;
153
+ exports.firstLetterUppercase = firstLetterUppercase;
154
+ exports.flattenParams = flattenParams;
155
+ exports.formatParams = formatParams;
156
+ exports.formatResult = formatResult;
157
+ exports.getCookies = getCookies;
158
+ exports.getRegion = getRegion;
159
+ exports.getRegionFromUrl = getRegionFromUrl;
160
+ exports.isBrowser = isBrowser;
161
+ exports.isGetMethod = isGetMethod;
162
+ exports.isJsonResponse = isJsonResponse;
163
+ exports.isOpenAPIError = isOpenAPIError;
164
+ exports.safeGet = safeGet;
165
+ exports.urlDecode = urlDecode;
166
+ //# sourceMappingURL=util.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.cjs","sources":["../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/util.js"],"sourcesContent":["export function getCookies() {\n var _a, _b;\n if (!isBrowser())\n return {};\n const cookies = {};\n const list = (_b = (_a = window === null || window === void 0 ? void 0 : window.document) === null || _a === void 0 ? void 0 : _a.cookie) === null || _b === void 0 ? void 0 : _b.split(';');\n list.forEach((item) => {\n const temp = item.split('=');\n const key = temp[0].replace('\"', '').trim();\n // 对齐nodejs cookie解析逻辑,同名key\n if (!cookies[key]) {\n cookies[key] = temp[1];\n }\n });\n return cookies;\n}\nexport function isGetMethod(method) {\n return (method === null || method === void 0 ? void 0 : method.toLowerCase()) === 'get';\n}\nexport function isBrowser() {\n return typeof window !== 'undefined' && typeof window.document !== 'undefined';\n}\nexport const getRegionFromUrl = (pathname) => {\n var _a;\n pathname = pathname || location.pathname;\n let region = (_a = pathname.match(/\\/region:.+\\+(.+)/)) === null || _a === void 0 ? void 0 : _a[1];\n region && (region = region.replace(/\\/.*/, ''));\n return region;\n};\nexport function getRegion(option) {\n const cookies = getCookies();\n const { params } = option;\n const region = (params === null || params === void 0 ? void 0 : params['Region']) ||\n (params === null || params === void 0 ? void 0 : params['region']) ||\n (isBrowser() && getRegionFromUrl()) ||\n cookies['iaas_global_region'];\n return region;\n}\nexport function isOpenAPIError(err) {\n var _a;\n return !!((_a = err === null || err === void 0 ? void 0 : err.ResponseMetadata) === null || _a === void 0 ? void 0 : _a.Error);\n}\nexport function isHttpError(err) {\n return (err === null || err === void 0 ? void 0 : err.httpError) === true;\n}\nexport function isNetWorkError(err) {\n return (err === null || err === void 0 ? void 0 : err['name']) === 'NetworkError';\n}\n/**\n * v2 版本的 API 要求将数据全部摊平后通过 url query 传递。\n * ````js\n * {\n * b: 1,\n * a: [{ aa: 10, bb: [ { c: 'c' }, 'd' ]}]\n * }\n * ````\n * 会被递归摊平成:\n * ````\n * {\n * b: 1,\n * \"a.0.aa\": 10,\n * \"a.0.bb.0.c\": \"c\",\n * \"a.0.bb.1\": \"d\"\n * }\n * ````\n */\nexport const flattenParams = (target, propPath) => {\n if (typeof target !== 'object' || target === null) {\n return propPath\n ? {\n [propPath]: target,\n }\n : target;\n }\n if (Array.isArray(target)) {\n return target.reduce((obj, val, i) => {\n // 跟后端一致,数组统一从 1 开始计数。\n return Object.assign(obj, flattenParams(val, `${propPath ? propPath + '.' : ''}${i + 1}`));\n }, {});\n }\n else {\n return Object.keys(target).reduce((obj, prop) => {\n return Object.assign(obj, flattenParams(target[prop], `${propPath ? propPath + '.' : ''}${firstLetterUppercase(prop)}`));\n }, {});\n }\n};\nexport const formatParams = (option) => {\n var _a;\n const { needFlatten, disableUpperCamel, headers } = option;\n let params = option.target;\n // 递归摊平\n needFlatten && (params = flattenParams(params));\n // 首字母转大写\n if (!disableUpperCamel) {\n params = firstLetterTransform(params, 'upperCase');\n }\n if ((_a = headers['content-type']) === null || _a === void 0 ? void 0 : _a.includes('x-www-form-urlencoded')) {\n if (Object.keys(params).length > 0) {\n const searchParams = new URLSearchParams();\n Object.keys(params).forEach((key) => params[key] && searchParams.append(key, params[key]));\n return searchParams;\n }\n }\n return params;\n};\nexport const formatResult = (target) => {\n return firstLetterTransform(target, 'lowerCase');\n};\nexport const firstLetterUppercase = (str) => {\n return str.charAt(0).toLocaleUpperCase() + str.slice(1);\n};\nexport const firstLetterLowercase = (str) => {\n return str.charAt(0).toLocaleLowerCase() + str.slice(1);\n};\n/** 首字母大小写的转换, 默认转小写 */\nexport const firstLetterTransform = (target, type = 'lowerCase') => {\n if (target === null ||\n typeof target !== 'object' ||\n target instanceof URLSearchParams) {\n return target;\n }\n const fn = type === 'upperCase' ? firstLetterUppercase : firstLetterLowercase;\n if (Array.isArray(target)) {\n target = target.map((t) => firstLetterTransform(t, type));\n }\n else if (typeof target === 'object') {\n target = Object.keys(target).reduce((obj, key) => {\n obj[fn(key)] = firstLetterTransform(target[key], type);\n return obj;\n }, {});\n }\n return target;\n};\nexport function encodeBody(body, isJson = false) {\n if (!body || Object.keys(body).length === 0) {\n return undefined;\n }\n if (isJson) {\n return JSON.stringify(body);\n }\n else {\n if (Object.keys(body).length > 0) {\n const params = new URLSearchParams();\n Object.keys(body).forEach((key) => body[key] && params.append(key, body[key]));\n return params;\n }\n }\n return body;\n}\nexport function isJsonResponse(resp) {\n var _a, _b, _c;\n return (_c = (_b = (_a = resp === null || resp === void 0 ? void 0 : resp.headers) === null || _a === void 0 ? void 0 : _a.get) === null || _b === void 0 ? void 0 : _b.call(_a, 'content-type')) === null || _c === void 0 ? void 0 : _c.includes('application/json');\n}\nexport function safeGet(obj, key, defaultValue) {\n return obj[key] !== undefined ? obj[key] : defaultValue;\n}\n/**\n * 解码\n * @param s\n * @returns\n */\nexport const urlDecode = (s) => atob(s)\n .split('')\n .map((c) => String.fromCharCode(c.charCodeAt(0) ^ 0x7f))\n .join('');\n/**\n * 编码\n * @param s\n * @returns\n */\nexport const urlEncode = (s) => btoa(s\n .split('')\n .map((c) => String.fromCharCode(c.charCodeAt(0) ^ 0x7f))\n .join(''));\nexport const clientKey = (service, version) => {\n return `${service}-${version}`;\n};\n"],"names":[],"mappings":";;AAAO,SAAS,UAAU,GAAG;AAC7B,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC;AACf,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,OAAO,EAAE,CAAC;AAClB,IAAI,MAAM,OAAO,GAAG,EAAE,CAAC;AACvB,IAAI,MAAM,IAAI,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,QAAQ,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACjM,IA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AACM,SAAS,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,YAAY,EAAE;AAChD,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,SAAS,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC;AAC5D,CAAC;AACD;AACA;AACA;AACA;AACA;AACY,MAAC,SAAS,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;AACvC,KAAK,KAAK,CAAC,EAAE,CAAC;AACd,KAAK,GAAG,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAC5D,KAAK,IAAI,CAAC,EAAE,EAAE;AAUF,MAAC,SAAS,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK;AAC/C,IAAI,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;AACnC;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,149 @@
1
+ function getCookies() {
2
+ var _a, _b;
3
+ if (!isBrowser())
4
+ return {};
5
+ const cookies = {};
6
+ const list = (_b = (_a = window === null || window === void 0 ? void 0 : window.document) === null || _a === void 0 ? void 0 : _a.cookie) === null || _b === void 0 ? void 0 : _b.split(';');
7
+ list.forEach((item) => {
8
+ const temp = item.split('=');
9
+ const key = temp[0].replace('"', '').trim();
10
+ // 对齐nodejs cookie解析逻辑,同名key
11
+ if (!cookies[key]) {
12
+ cookies[key] = temp[1];
13
+ }
14
+ });
15
+ return cookies;
16
+ }
17
+ function isGetMethod(method) {
18
+ return (method === null || method === void 0 ? void 0 : method.toLowerCase()) === 'get';
19
+ }
20
+ function isBrowser() {
21
+ return typeof window !== 'undefined' && typeof window.document !== 'undefined';
22
+ }
23
+ const getRegionFromUrl = (pathname) => {
24
+ var _a;
25
+ pathname = pathname || location.pathname;
26
+ let region = (_a = pathname.match(/\/region:.+\+(.+)/)) === null || _a === void 0 ? void 0 : _a[1];
27
+ region && (region = region.replace(/\/.*/, ''));
28
+ return region;
29
+ };
30
+ function getRegion(option) {
31
+ const cookies = getCookies();
32
+ const { params } = option;
33
+ const region = (params === null || params === void 0 ? void 0 : params['Region']) ||
34
+ (params === null || params === void 0 ? void 0 : params['region']) ||
35
+ (isBrowser() && getRegionFromUrl()) ||
36
+ cookies['iaas_global_region'];
37
+ return region;
38
+ }
39
+ function isOpenAPIError(err) {
40
+ var _a;
41
+ return !!((_a = err === null || err === void 0 ? void 0 : err.ResponseMetadata) === null || _a === void 0 ? void 0 : _a.Error);
42
+ }
43
+ /**
44
+ * v2 版本的 API 要求将数据全部摊平后通过 url query 传递。
45
+ * ````js
46
+ * {
47
+ * b: 1,
48
+ * a: [{ aa: 10, bb: [ { c: 'c' }, 'd' ]}]
49
+ * }
50
+ * ````
51
+ * 会被递归摊平成:
52
+ * ````
53
+ * {
54
+ * b: 1,
55
+ * "a.0.aa": 10,
56
+ * "a.0.bb.0.c": "c",
57
+ * "a.0.bb.1": "d"
58
+ * }
59
+ * ````
60
+ */
61
+ const flattenParams = (target, propPath) => {
62
+ if (typeof target !== 'object' || target === null) {
63
+ return propPath
64
+ ? {
65
+ [propPath]: target,
66
+ }
67
+ : target;
68
+ }
69
+ if (Array.isArray(target)) {
70
+ return target.reduce((obj, val, i) => {
71
+ // 跟后端一致,数组统一从 1 开始计数。
72
+ return Object.assign(obj, flattenParams(val, `${propPath ? propPath + '.' : ''}${i + 1}`));
73
+ }, {});
74
+ }
75
+ else {
76
+ return Object.keys(target).reduce((obj, prop) => {
77
+ return Object.assign(obj, flattenParams(target[prop], `${propPath ? propPath + '.' : ''}${firstLetterUppercase(prop)}`));
78
+ }, {});
79
+ }
80
+ };
81
+ const formatParams = (option) => {
82
+ var _a;
83
+ const { needFlatten, disableUpperCamel, headers } = option;
84
+ let params = option.target;
85
+ // 递归摊平
86
+ needFlatten && (params = flattenParams(params));
87
+ // 首字母转大写
88
+ if (!disableUpperCamel) {
89
+ params = firstLetterTransform(params, 'upperCase');
90
+ }
91
+ if ((_a = headers['content-type']) === null || _a === void 0 ? void 0 : _a.includes('x-www-form-urlencoded')) {
92
+ if (Object.keys(params).length > 0) {
93
+ const searchParams = new URLSearchParams();
94
+ Object.keys(params).forEach((key) => params[key] && searchParams.append(key, params[key]));
95
+ return searchParams;
96
+ }
97
+ }
98
+ return params;
99
+ };
100
+ const formatResult = (target) => {
101
+ return firstLetterTransform(target, 'lowerCase');
102
+ };
103
+ const firstLetterUppercase = (str) => {
104
+ return str.charAt(0).toLocaleUpperCase() + str.slice(1);
105
+ };
106
+ const firstLetterLowercase = (str) => {
107
+ return str.charAt(0).toLocaleLowerCase() + str.slice(1);
108
+ };
109
+ /** 首字母大小写的转换, 默认转小写 */
110
+ const firstLetterTransform = (target, type = 'lowerCase') => {
111
+ if (target === null ||
112
+ typeof target !== 'object' ||
113
+ target instanceof URLSearchParams) {
114
+ return target;
115
+ }
116
+ const fn = type === 'upperCase' ? firstLetterUppercase : firstLetterLowercase;
117
+ if (Array.isArray(target)) {
118
+ target = target.map((t) => firstLetterTransform(t, type));
119
+ }
120
+ else if (typeof target === 'object') {
121
+ target = Object.keys(target).reduce((obj, key) => {
122
+ obj[fn(key)] = firstLetterTransform(target[key], type);
123
+ return obj;
124
+ }, {});
125
+ }
126
+ return target;
127
+ };
128
+ function isJsonResponse(resp) {
129
+ var _a, _b, _c;
130
+ return (_c = (_b = (_a = resp === null || resp === void 0 ? void 0 : resp.headers) === null || _a === void 0 ? void 0 : _a.get) === null || _b === void 0 ? void 0 : _b.call(_a, 'content-type')) === null || _c === void 0 ? void 0 : _c.includes('application/json');
131
+ }
132
+ function safeGet(obj, key, defaultValue) {
133
+ return obj[key] !== undefined ? obj[key] : defaultValue;
134
+ }
135
+ /**
136
+ * 解码
137
+ * @param s
138
+ * @returns
139
+ */
140
+ const urlDecode = (s) => atob(s)
141
+ .split('')
142
+ .map((c) => String.fromCharCode(c.charCodeAt(0) ^ 0x7f))
143
+ .join('');
144
+ const clientKey = (service, version) => {
145
+ return `${service}-${version}`;
146
+ };
147
+
148
+ export { clientKey, firstLetterLowercase, firstLetterTransform, firstLetterUppercase, flattenParams, formatParams, formatResult, getCookies, getRegion, getRegionFromUrl, isBrowser, isGetMethod, isJsonResponse, isOpenAPIError, safeGet, urlDecode };
149
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sources":["../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/util.js"],"sourcesContent":["export function getCookies() {\n var _a, _b;\n if (!isBrowser())\n return {};\n const cookies = {};\n const list = (_b = (_a = window === null || window === void 0 ? void 0 : window.document) === null || _a === void 0 ? void 0 : _a.cookie) === null || _b === void 0 ? void 0 : _b.split(';');\n list.forEach((item) => {\n const temp = item.split('=');\n const key = temp[0].replace('\"', '').trim();\n // 对齐nodejs cookie解析逻辑,同名key\n if (!cookies[key]) {\n cookies[key] = temp[1];\n }\n });\n return cookies;\n}\nexport function isGetMethod(method) {\n return (method === null || method === void 0 ? void 0 : method.toLowerCase()) === 'get';\n}\nexport function isBrowser() {\n return typeof window !== 'undefined' && typeof window.document !== 'undefined';\n}\nexport const getRegionFromUrl = (pathname) => {\n var _a;\n pathname = pathname || location.pathname;\n let region = (_a = pathname.match(/\\/region:.+\\+(.+)/)) === null || _a === void 0 ? void 0 : _a[1];\n region && (region = region.replace(/\\/.*/, ''));\n return region;\n};\nexport function getRegion(option) {\n const cookies = getCookies();\n const { params } = option;\n const region = (params === null || params === void 0 ? void 0 : params['Region']) ||\n (params === null || params === void 0 ? void 0 : params['region']) ||\n (isBrowser() && getRegionFromUrl()) ||\n cookies['iaas_global_region'];\n return region;\n}\nexport function isOpenAPIError(err) {\n var _a;\n return !!((_a = err === null || err === void 0 ? void 0 : err.ResponseMetadata) === null || _a === void 0 ? void 0 : _a.Error);\n}\nexport function isHttpError(err) {\n return (err === null || err === void 0 ? void 0 : err.httpError) === true;\n}\nexport function isNetWorkError(err) {\n return (err === null || err === void 0 ? void 0 : err['name']) === 'NetworkError';\n}\n/**\n * v2 版本的 API 要求将数据全部摊平后通过 url query 传递。\n * ````js\n * {\n * b: 1,\n * a: [{ aa: 10, bb: [ { c: 'c' }, 'd' ]}]\n * }\n * ````\n * 会被递归摊平成:\n * ````\n * {\n * b: 1,\n * \"a.0.aa\": 10,\n * \"a.0.bb.0.c\": \"c\",\n * \"a.0.bb.1\": \"d\"\n * }\n * ````\n */\nexport const flattenParams = (target, propPath) => {\n if (typeof target !== 'object' || target === null) {\n return propPath\n ? {\n [propPath]: target,\n }\n : target;\n }\n if (Array.isArray(target)) {\n return target.reduce((obj, val, i) => {\n // 跟后端一致,数组统一从 1 开始计数。\n return Object.assign(obj, flattenParams(val, `${propPath ? propPath + '.' : ''}${i + 1}`));\n }, {});\n }\n else {\n return Object.keys(target).reduce((obj, prop) => {\n return Object.assign(obj, flattenParams(target[prop], `${propPath ? propPath + '.' : ''}${firstLetterUppercase(prop)}`));\n }, {});\n }\n};\nexport const formatParams = (option) => {\n var _a;\n const { needFlatten, disableUpperCamel, headers } = option;\n let params = option.target;\n // 递归摊平\n needFlatten && (params = flattenParams(params));\n // 首字母转大写\n if (!disableUpperCamel) {\n params = firstLetterTransform(params, 'upperCase');\n }\n if ((_a = headers['content-type']) === null || _a === void 0 ? void 0 : _a.includes('x-www-form-urlencoded')) {\n if (Object.keys(params).length > 0) {\n const searchParams = new URLSearchParams();\n Object.keys(params).forEach((key) => params[key] && searchParams.append(key, params[key]));\n return searchParams;\n }\n }\n return params;\n};\nexport const formatResult = (target) => {\n return firstLetterTransform(target, 'lowerCase');\n};\nexport const firstLetterUppercase = (str) => {\n return str.charAt(0).toLocaleUpperCase() + str.slice(1);\n};\nexport const firstLetterLowercase = (str) => {\n return str.charAt(0).toLocaleLowerCase() + str.slice(1);\n};\n/** 首字母大小写的转换, 默认转小写 */\nexport const firstLetterTransform = (target, type = 'lowerCase') => {\n if (target === null ||\n typeof target !== 'object' ||\n target instanceof URLSearchParams) {\n return target;\n }\n const fn = type === 'upperCase' ? firstLetterUppercase : firstLetterLowercase;\n if (Array.isArray(target)) {\n target = target.map((t) => firstLetterTransform(t, type));\n }\n else if (typeof target === 'object') {\n target = Object.keys(target).reduce((obj, key) => {\n obj[fn(key)] = firstLetterTransform(target[key], type);\n return obj;\n }, {});\n }\n return target;\n};\nexport function encodeBody(body, isJson = false) {\n if (!body || Object.keys(body).length === 0) {\n return undefined;\n }\n if (isJson) {\n return JSON.stringify(body);\n }\n else {\n if (Object.keys(body).length > 0) {\n const params = new URLSearchParams();\n Object.keys(body).forEach((key) => body[key] && params.append(key, body[key]));\n return params;\n }\n }\n return body;\n}\nexport function isJsonResponse(resp) {\n var _a, _b, _c;\n return (_c = (_b = (_a = resp === null || resp === void 0 ? void 0 : resp.headers) === null || _a === void 0 ? void 0 : _a.get) === null || _b === void 0 ? void 0 : _b.call(_a, 'content-type')) === null || _c === void 0 ? void 0 : _c.includes('application/json');\n}\nexport function safeGet(obj, key, defaultValue) {\n return obj[key] !== undefined ? obj[key] : defaultValue;\n}\n/**\n * 解码\n * @param s\n * @returns\n */\nexport const urlDecode = (s) => atob(s)\n .split('')\n .map((c) => String.fromCharCode(c.charCodeAt(0) ^ 0x7f))\n .join('');\n/**\n * 编码\n * @param s\n * @returns\n */\nexport const urlEncode = (s) => btoa(s\n .split('')\n .map((c) => String.fromCharCode(c.charCodeAt(0) ^ 0x7f))\n .join(''));\nexport const clientKey = (service, version) => {\n return `${service}-${version}`;\n};\n"],"names":[],"mappings":"AAAO,SAAS,UAAU,GAAG;AAC7B,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC;AACf,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,OAAO,EAAE,CAAC;AAClB,IAAI,MAAM,OAAO,GAAG,EAAE,CAAC;AACvB,IAAI,MAAM,IAAI,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,MAAM,KAAK,IAAI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