@das-fed/upf-utils 6.4.0-dev.124

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 (203) hide show
  1. package/__VLS_types.d.ts +124 -0
  2. package/api-services/i18n/index.d.ts +53 -0
  3. package/api-services/i18n/index.js +27 -0
  4. package/api-services/i18n/index.js.gz +0 -0
  5. package/api-services/index.d.ts +2 -0
  6. package/api-services/index.js +3141 -0
  7. package/api-services/index.js.gz +0 -0
  8. package/api-services/modules/app-manage/index.d.ts +2 -0
  9. package/api-services/modules/app-manage/index.js +2827 -0
  10. package/api-services/modules/app-manage/index.js.gz +0 -0
  11. package/api-services/modules/authentication/index.d.ts +2 -0
  12. package/api-services/modules/authentication/index.js +2827 -0
  13. package/api-services/modules/authentication/index.js.gz +0 -0
  14. package/api-services/modules/bems/index.d.ts +6 -0
  15. package/api-services/modules/bems/index.js +2831 -0
  16. package/api-services/modules/bems/index.js.gz +0 -0
  17. package/api-services/modules/contract/index.d.ts +2 -0
  18. package/api-services/modules/contract/index.js +2827 -0
  19. package/api-services/modules/contract/index.js.gz +0 -0
  20. package/api-services/modules/duty-manage/index.d.ts +7 -0
  21. package/api-services/modules/duty-manage/index.js +2836 -0
  22. package/api-services/modules/duty-manage/index.js.gz +0 -0
  23. package/api-services/modules/enterpriseright/index.d.ts +2 -0
  24. package/api-services/modules/enterpriseright/index.js +2827 -0
  25. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  26. package/api-services/modules/file/index.d.ts +37 -0
  27. package/api-services/modules/file/index.js +3059 -0
  28. package/api-services/modules/file/index.js.gz +0 -0
  29. package/api-services/modules/gateway-edge/index.d.ts +2 -0
  30. package/api-services/modules/gateway-edge/index.js +2827 -0
  31. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  32. package/api-services/modules/index.d.ts +21 -0
  33. package/api-services/modules/index.js +3115 -0
  34. package/api-services/modules/index.js.gz +0 -0
  35. package/api-services/modules/iot/index.d.ts +16 -0
  36. package/api-services/modules/iot/index.js +2841 -0
  37. package/api-services/modules/iot/index.js.gz +0 -0
  38. package/api-services/modules/justauth/index.d.ts +3 -0
  39. package/api-services/modules/justauth/index.js +2828 -0
  40. package/api-services/modules/justauth/index.js.gz +0 -0
  41. package/api-services/modules/knowledge/index.d.ts +2 -0
  42. package/api-services/modules/knowledge/index.js +2827 -0
  43. package/api-services/modules/knowledge/index.js.gz +0 -0
  44. package/api-services/modules/link/index.d.ts +2 -0
  45. package/api-services/modules/link/index.js +2827 -0
  46. package/api-services/modules/link/index.js.gz +0 -0
  47. package/api-services/modules/permission/index.d.ts +2 -0
  48. package/api-services/modules/permission/index.js +2827 -0
  49. package/api-services/modules/permission/index.js.gz +0 -0
  50. package/api-services/modules/platformManage/index.d.ts +14 -0
  51. package/api-services/modules/platformManage/index.js +2835 -0
  52. package/api-services/modules/platformManage/index.js.gz +0 -0
  53. package/api-services/modules/portal/index.d.ts +2 -0
  54. package/api-services/modules/portal/index.js +2827 -0
  55. package/api-services/modules/portal/index.js.gz +0 -0
  56. package/api-services/modules/space-manage/index.d.ts +2 -0
  57. package/api-services/modules/space-manage/index.js +2827 -0
  58. package/api-services/modules/space-manage/index.js.gz +0 -0
  59. package/api-services/modules/super-admin/index.d.ts +8 -0
  60. package/api-services/modules/super-admin/index.js +2830 -0
  61. package/api-services/modules/super-admin/index.js.gz +0 -0
  62. package/api-services/modules/supplier/index.d.ts +6 -0
  63. package/api-services/modules/supplier/index.js +2829 -0
  64. package/api-services/modules/supplier/index.js.gz +0 -0
  65. package/api-services/modules/supplychain-manage/index.d.ts +2 -0
  66. package/api-services/modules/supplychain-manage/index.js +2827 -0
  67. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  68. package/api-services/modules/systemConfiguration/index.d.ts +2 -0
  69. package/api-services/modules/systemConfiguration/index.js +2827 -0
  70. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  71. package/api-services/modules/tool/index.d.ts +2 -0
  72. package/api-services/modules/tool/index.js +2827 -0
  73. package/api-services/modules/tool/index.js.gz +0 -0
  74. package/api-services/src/create-service/index.d.ts +1 -0
  75. package/api-services/src/create-service/index.js +2827 -0
  76. package/api-services/src/create-service/index.js.gz +0 -0
  77. package/atob/index.d.ts +2 -0
  78. package/atob/index.js +11 -0
  79. package/common-info/getIframeUrl/index.d.ts +9 -0
  80. package/common-info/getIframeUrl/index.js +10 -0
  81. package/common-info/getInfoFromUrl/index.d.ts +8 -0
  82. package/common-info/getInfoFromUrl/index.js +84 -0
  83. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  84. package/common-info/index.d.ts +61 -0
  85. package/common-info/index.js +171 -0
  86. package/common-info/index.js.gz +0 -0
  87. package/common-info/set-personal-info/index.d.ts +5 -0
  88. package/common-info/set-personal-info/index.js +1474 -0
  89. package/common-info/set-personal-info/index.js.gz +0 -0
  90. package/common-info/type.d.ts +214 -0
  91. package/common-tools/arr-tools/index.d.ts +15 -0
  92. package/common-tools/arr-tools/index.js +8 -0
  93. package/common-tools/calc-text-width/index.d.ts +1 -0
  94. package/common-tools/calc-text-width/index.js +10 -0
  95. package/common-tools/date-format/index.d.ts +7 -0
  96. package/common-tools/date-format/index.js +19 -0
  97. package/common-tools/extract-file-name/index.d.ts +1 -0
  98. package/common-tools/extract-file-name/index.js +1466 -0
  99. package/common-tools/extract-file-name/index.js.gz +0 -0
  100. package/common-tools/get-file-extension/index.d.ts +6 -0
  101. package/common-tools/get-file-extension/index.js +7 -0
  102. package/common-tools/get-url-params/index.d.ts +46 -0
  103. package/common-tools/get-url-params/index.js +63 -0
  104. package/common-tools/get-url-params/index.js.gz +0 -0
  105. package/common-tools/handle-data/index.d.ts +6 -0
  106. package/common-tools/handle-data/index.js +4 -0
  107. package/common-tools/index.d.ts +14 -0
  108. package/common-tools/index.js +14 -0
  109. package/common-tools/nest-tree-format/index.d.ts +30 -0
  110. package/common-tools/nest-tree-format/index.js +24 -0
  111. package/common-tools/obj-tools/index.d.ts +7 -0
  112. package/common-tools/obj-tools/index.js +14 -0
  113. package/common-tools/platform-tools/index.d.ts +19 -0
  114. package/common-tools/platform-tools/index.js +19 -0
  115. package/common-tools/queue-promise/index.d.ts +6 -0
  116. package/common-tools/queue-promise/index.js +9 -0
  117. package/common-tools/setHtmlMinWH/index.d.ts +5 -0
  118. package/common-tools/setHtmlMinWH/index.js +7 -0
  119. package/common-tools/update-browser-title/index.d.ts +1 -0
  120. package/common-tools/update-browser-title/index.js +12 -0
  121. package/common-tools/update-fav-icon/index.d.ts +11 -0
  122. package/common-tools/update-fav-icon/index.js +22 -0
  123. package/config/index.d.ts +2 -0
  124. package/config/index.js +9 -0
  125. package/create-api-service/i18n/index.d.ts +33 -0
  126. package/create-api-service/i18n/index.js +15 -0
  127. package/create-api-service/index.d.ts +3 -0
  128. package/create-api-service/index.js +2827 -0
  129. package/create-api-service/index.js.gz +0 -0
  130. package/create-api-service/proxy-sso/index.d.ts +3 -0
  131. package/create-api-service/proxy-sso/index.js +21 -0
  132. package/create-api-service/sso/index.d.ts +21 -0
  133. package/create-api-service/sso/index.js +1845 -0
  134. package/create-api-service/sso/index.js.gz +0 -0
  135. package/curring-http/index.d.ts +12 -0
  136. package/curring-http/index.js +2002 -0
  137. package/curring-http/index.js.gz +0 -0
  138. package/curring-http/type.d.ts +89 -0
  139. package/dimple-canvas/index.d.ts +3 -0
  140. package/dimple-canvas/index.js +5 -0
  141. package/directive/auth/index.d.ts +8 -0
  142. package/directive/auth/index.js +62 -0
  143. package/directive/auth/index.js.gz +0 -0
  144. package/directive/clickOutside/index.d.ts +6 -0
  145. package/directive/clickOutside/index.js +27 -0
  146. package/directive/hoverInside/index.d.ts +6 -0
  147. package/directive/hoverInside/index.js +21 -0
  148. package/directive/index.d.ts +3 -0
  149. package/directive/index.js +8 -0
  150. package/directive/utils/index.d.ts +7 -0
  151. package/directive/utils/index.js +7 -0
  152. package/dom-check-in/index.d.ts +6 -0
  153. package/dom-check-in/index.js +8 -0
  154. package/dom-watcher/index.d.ts +25 -0
  155. package/dom-watcher/index.js +9 -0
  156. package/esm-map.json +146 -0
  157. package/hooks/popup-manager/use-zindex/index.d.ts +3 -0
  158. package/hooks/popup-manager/use-zindex/index.js +9 -0
  159. package/hooks/use-get-auth/apis.d.ts +4 -0
  160. package/hooks/use-get-auth/index.d.ts +9 -0
  161. package/hooks/use-get-auth/index.js +53 -0
  162. package/hooks/use-get-auth/index.js.gz +0 -0
  163. package/index.d.ts +2 -0
  164. package/index.js +2 -0
  165. package/load-js/index.d.ts +3 -0
  166. package/load-js/index.js +12 -0
  167. package/nextTiken/index.d.ts +12 -0
  168. package/nextTiken/index.js +45 -0
  169. package/nextTiken/index.js.gz +0 -0
  170. package/oss/index.d.ts +2 -0
  171. package/oss/index.js +11 -0
  172. package/package.json +49 -0
  173. package/pinyin-first-character/index.d.ts +2 -0
  174. package/pinyin-first-character/index.js +25022 -0
  175. package/pinyin-first-character/index.js.gz +0 -0
  176. package/process-engine-info/index.d.ts +13 -0
  177. package/process-engine-info/index.js +15 -0
  178. package/pure-image-src/index.d.ts +2 -0
  179. package/pure-image-src/index.js +4 -0
  180. package/size-watcher/index.d.ts +6 -0
  181. package/size-watcher/index.js +20 -0
  182. package/style/index.d.ts +2 -0
  183. package/style/index.js +70 -0
  184. package/style/index.js.gz +0 -0
  185. package/style/math.d.ts +9 -0
  186. package/style/style.d.ts +31 -0
  187. package/token-tools/index.d.ts +21 -0
  188. package/token-tools/index.js +11 -0
  189. package/use-low-code/index.d.ts +1 -0
  190. package/use-low-code/index.js +69 -0
  191. package/use-low-code/index.js.gz +0 -0
  192. package/use-low-code/low-code-iframe.vue.d.ts +2 -0
  193. package/use-low-code/style.css +1 -0
  194. package/vue/hooks/use-model-value/index.d.ts +9 -0
  195. package/vue/hooks/use-model-value/index.js +10 -0
  196. package/vue/index.d.ts +1 -0
  197. package/vue/index.js +4 -0
  198. package/webSocket-service/index.d.ts +41 -0
  199. package/webSocket-service/index.js +83 -0
  200. package/webSocket-service/index.js.gz +0 -0
  201. package/webSocket-service/type.d.ts +28 -0
  202. package/with-install/index.d.ts +11 -0
  203. package/with-install/index.js +6 -0
@@ -0,0 +1,1474 @@
1
+ import { currentLang as De } from "@das-fed/upf-web/packages/i18n/index";
2
+ import { getProjectInfo as Ue } from "@das-fed/upf-utils/common-info";
3
+ import { getConfig as ke } from "@das-fed/upf-utils/config";
4
+ function fe(e, t) {
5
+ return function() {
6
+ return e.apply(t, arguments);
7
+ };
8
+ }
9
+ const { toString: je } = Object.prototype, { getPrototypeOf: Q } = Object, I = /* @__PURE__ */ ((e) => (t) => {
10
+ const n = je.call(t);
11
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
12
+ })(/* @__PURE__ */ Object.create(null)), T = (e) => (e = e.toLowerCase(), (t) => I(t) === e), H = (e) => (t) => typeof t === e, { isArray: F } = Array, B = H("undefined");
13
+ function Ie(e) {
14
+ return e !== null && !B(e) && e.constructor !== null && !B(e.constructor) && R(e.constructor.isBuffer) && e.constructor.isBuffer(e);
15
+ }
16
+ const de = T("ArrayBuffer");
17
+ function He(e) {
18
+ let t;
19
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && de(e.buffer), t;
20
+ }
21
+ const qe = H("string"), R = H("function"), pe = H("number"), q = (e) => e !== null && typeof e == "object", Me = (e) => e === !0 || e === !1, k = (e) => {
22
+ if (I(e) !== "object")
23
+ return !1;
24
+ const t = Q(e);
25
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
26
+ }, ze = T("Date"), Je = T("File"), $e = T("Blob"), Ve = T("FileList"), We = (e) => q(e) && R(e.pipe), Ke = (e) => {
27
+ let t;
28
+ return e && (typeof FormData == "function" && e instanceof FormData || R(e.append) && ((t = I(e)) === "formdata" || // detect form-data instance
29
+ t === "object" && R(e.toString) && e.toString() === "[object FormData]"));
30
+ }, Xe = T("URLSearchParams"), Ge = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
31
+ function L(e, t, { allOwnKeys: n = !1 } = {}) {
32
+ if (e === null || typeof e > "u")
33
+ return;
34
+ let r, s;
35
+ if (typeof e != "object" && (e = [e]), F(e))
36
+ for (r = 0, s = e.length; r < s; r++)
37
+ t.call(null, e[r], r, e);
38
+ else {
39
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
40
+ let c;
41
+ for (r = 0; r < i; r++)
42
+ c = o[r], t.call(null, e[c], c, e);
43
+ }
44
+ }
45
+ function he(e, t) {
46
+ t = t.toLowerCase();
47
+ const n = Object.keys(e);
48
+ let r = n.length, s;
49
+ for (; r-- > 0; )
50
+ if (s = n[r], t === s.toLowerCase())
51
+ return s;
52
+ return null;
53
+ }
54
+ const me = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ye = (e) => !B(e) && e !== me;
55
+ function W() {
56
+ const { caseless: e } = ye(this) && this || {}, t = {}, n = (r, s) => {
57
+ const o = e && he(t, s) || s;
58
+ k(t[o]) && k(r) ? t[o] = W(t[o], r) : k(r) ? t[o] = W({}, r) : F(r) ? t[o] = r.slice() : t[o] = r;
59
+ };
60
+ for (let r = 0, s = arguments.length; r < s; r++)
61
+ arguments[r] && L(arguments[r], n);
62
+ return t;
63
+ }
64
+ const ve = (e, t, n, { allOwnKeys: r } = {}) => (L(t, (s, o) => {
65
+ n && R(s) ? e[o] = fe(s, n) : e[o] = s;
66
+ }, { allOwnKeys: r }), e), Qe = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ze = (e, t, n, r) => {
67
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
68
+ value: t.prototype
69
+ }), n && Object.assign(e.prototype, n);
70
+ }, Ye = (e, t, n, r) => {
71
+ let s, o, i;
72
+ const c = {};
73
+ if (t = t || {}, e == null) return t;
74
+ do {
75
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
76
+ i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
77
+ e = n !== !1 && Q(e);
78
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
79
+ return t;
80
+ }, et = (e, t, n) => {
81
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
82
+ const r = e.indexOf(t, n);
83
+ return r !== -1 && r === n;
84
+ }, tt = (e) => {
85
+ if (!e) return null;
86
+ if (F(e)) return e;
87
+ let t = e.length;
88
+ if (!pe(t)) return null;
89
+ const n = new Array(t);
90
+ for (; t-- > 0; )
91
+ n[t] = e[t];
92
+ return n;
93
+ }, nt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Q(Uint8Array)), rt = (e, t) => {
94
+ const r = (e && e[Symbol.iterator]).call(e);
95
+ let s;
96
+ for (; (s = r.next()) && !s.done; ) {
97
+ const o = s.value;
98
+ t.call(e, o[0], o[1]);
99
+ }
100
+ }, st = (e, t) => {
101
+ let n;
102
+ const r = [];
103
+ for (; (n = e.exec(t)) !== null; )
104
+ r.push(n);
105
+ return r;
106
+ }, ot = T("HTMLFormElement"), it = (e) => e.toLowerCase().replace(
107
+ /[-_\s]([a-z\d])(\w*)/g,
108
+ function(n, r, s) {
109
+ return r.toUpperCase() + s;
110
+ }
111
+ ), ee = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), at = T("RegExp"), Ee = (e, t) => {
112
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
113
+ L(n, (s, o) => {
114
+ let i;
115
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
116
+ }), Object.defineProperties(e, r);
117
+ }, ct = (e) => {
118
+ Ee(e, (t, n) => {
119
+ if (R(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
120
+ return !1;
121
+ const r = e[n];
122
+ if (R(r)) {
123
+ if (t.enumerable = !1, "writable" in t) {
124
+ t.writable = !1;
125
+ return;
126
+ }
127
+ t.set || (t.set = () => {
128
+ throw Error("Can not rewrite read-only method '" + n + "'");
129
+ });
130
+ }
131
+ });
132
+ }, ut = (e, t) => {
133
+ const n = {}, r = (s) => {
134
+ s.forEach((o) => {
135
+ n[o] = !0;
136
+ });
137
+ };
138
+ return F(e) ? r(e) : r(String(e).split(t)), n;
139
+ }, lt = () => {
140
+ }, ft = (e, t) => (e = +e, Number.isFinite(e) ? e : t), z = "abcdefghijklmnopqrstuvwxyz", te = "0123456789", we = {
141
+ DIGIT: te,
142
+ ALPHA: z,
143
+ ALPHA_DIGIT: z + z.toUpperCase() + te
144
+ }, dt = (e = 16, t = we.ALPHA_DIGIT) => {
145
+ let n = "";
146
+ const { length: r } = t;
147
+ for (; e--; )
148
+ n += t[Math.random() * r | 0];
149
+ return n;
150
+ };
151
+ function pt(e) {
152
+ return !!(e && R(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
153
+ }
154
+ const ht = (e) => {
155
+ const t = new Array(10), n = (r, s) => {
156
+ if (q(r)) {
157
+ if (t.indexOf(r) >= 0)
158
+ return;
159
+ if (!("toJSON" in r)) {
160
+ t[s] = r;
161
+ const o = F(r) ? [] : {};
162
+ return L(r, (i, c) => {
163
+ const p = n(i, s + 1);
164
+ !B(p) && (o[c] = p);
165
+ }), t[s] = void 0, o;
166
+ }
167
+ }
168
+ return r;
169
+ };
170
+ return n(e, 0);
171
+ }, mt = T("AsyncFunction"), yt = (e) => e && (q(e) || R(e)) && R(e.then) && R(e.catch), a = {
172
+ isArray: F,
173
+ isArrayBuffer: de,
174
+ isBuffer: Ie,
175
+ isFormData: Ke,
176
+ isArrayBufferView: He,
177
+ isString: qe,
178
+ isNumber: pe,
179
+ isBoolean: Me,
180
+ isObject: q,
181
+ isPlainObject: k,
182
+ isUndefined: B,
183
+ isDate: ze,
184
+ isFile: Je,
185
+ isBlob: $e,
186
+ isRegExp: at,
187
+ isFunction: R,
188
+ isStream: We,
189
+ isURLSearchParams: Xe,
190
+ isTypedArray: nt,
191
+ isFileList: Ve,
192
+ forEach: L,
193
+ merge: W,
194
+ extend: ve,
195
+ trim: Ge,
196
+ stripBOM: Qe,
197
+ inherits: Ze,
198
+ toFlatObject: Ye,
199
+ kindOf: I,
200
+ kindOfTest: T,
201
+ endsWith: et,
202
+ toArray: tt,
203
+ forEachEntry: rt,
204
+ matchAll: st,
205
+ isHTMLForm: ot,
206
+ hasOwnProperty: ee,
207
+ hasOwnProp: ee,
208
+ // an alias to avoid ESLint no-prototype-builtins detection
209
+ reduceDescriptors: Ee,
210
+ freezeMethods: ct,
211
+ toObjectSet: ut,
212
+ toCamelCase: it,
213
+ noop: lt,
214
+ toFiniteNumber: ft,
215
+ findKey: he,
216
+ global: me,
217
+ isContextDefined: ye,
218
+ ALPHABET: we,
219
+ generateString: dt,
220
+ isSpecCompliantForm: pt,
221
+ toJSONObject: ht,
222
+ isAsyncFn: mt,
223
+ isThenable: yt
224
+ };
225
+ function m(e, t, n, r, s) {
226
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
227
+ }
228
+ a.inherits(m, Error, {
229
+ toJSON: function() {
230
+ return {
231
+ // Standard
232
+ message: this.message,
233
+ name: this.name,
234
+ // Microsoft
235
+ description: this.description,
236
+ number: this.number,
237
+ // Mozilla
238
+ fileName: this.fileName,
239
+ lineNumber: this.lineNumber,
240
+ columnNumber: this.columnNumber,
241
+ stack: this.stack,
242
+ // Axios
243
+ config: a.toJSONObject(this.config),
244
+ code: this.code,
245
+ status: this.response && this.response.status ? this.response.status : null
246
+ };
247
+ }
248
+ });
249
+ const be = m.prototype, Se = {};
250
+ [
251
+ "ERR_BAD_OPTION_VALUE",
252
+ "ERR_BAD_OPTION",
253
+ "ECONNABORTED",
254
+ "ETIMEDOUT",
255
+ "ERR_NETWORK",
256
+ "ERR_FR_TOO_MANY_REDIRECTS",
257
+ "ERR_DEPRECATED",
258
+ "ERR_BAD_RESPONSE",
259
+ "ERR_BAD_REQUEST",
260
+ "ERR_CANCELED",
261
+ "ERR_NOT_SUPPORT",
262
+ "ERR_INVALID_URL"
263
+ // eslint-disable-next-line func-names
264
+ ].forEach((e) => {
265
+ Se[e] = { value: e };
266
+ });
267
+ Object.defineProperties(m, Se);
268
+ Object.defineProperty(be, "isAxiosError", { value: !0 });
269
+ m.from = (e, t, n, r, s, o) => {
270
+ const i = Object.create(be);
271
+ return a.toFlatObject(e, i, function(p) {
272
+ return p !== Error.prototype;
273
+ }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
274
+ };
275
+ const Et = null;
276
+ function K(e) {
277
+ return a.isPlainObject(e) || a.isArray(e);
278
+ }
279
+ function Re(e) {
280
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
281
+ }
282
+ function ne(e, t, n) {
283
+ return e ? e.concat(t).map(function(s, o) {
284
+ return s = Re(s), !n && o ? "[" + s + "]" : s;
285
+ }).join(n ? "." : "") : t;
286
+ }
287
+ function wt(e) {
288
+ return a.isArray(e) && !e.some(K);
289
+ }
290
+ const bt = a.toFlatObject(a, {}, null, function(t) {
291
+ return /^is[A-Z]/.test(t);
292
+ });
293
+ function M(e, t, n) {
294
+ if (!a.isObject(e))
295
+ throw new TypeError("target must be an object");
296
+ t = t || new FormData(), n = a.toFlatObject(n, {
297
+ metaTokens: !0,
298
+ dots: !1,
299
+ indexes: !1
300
+ }, !1, function(d, w) {
301
+ return !a.isUndefined(w[d]);
302
+ });
303
+ const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
304
+ if (!a.isFunction(s))
305
+ throw new TypeError("visitor must be a function");
306
+ function h(f) {
307
+ if (f === null) return "";
308
+ if (a.isDate(f))
309
+ return f.toISOString();
310
+ if (!p && a.isBlob(f))
311
+ throw new m("Blob is not supported. Use a Buffer instead.");
312
+ return a.isArrayBuffer(f) || a.isTypedArray(f) ? p && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
313
+ }
314
+ function l(f, d, w) {
315
+ let b = f;
316
+ if (f && !w && typeof f == "object") {
317
+ if (a.endsWith(d, "{}"))
318
+ d = r ? d : d.slice(0, -2), f = JSON.stringify(f);
319
+ else if (a.isArray(f) && wt(f) || (a.isFileList(f) || a.endsWith(d, "[]")) && (b = a.toArray(f)))
320
+ return d = Re(d), b.forEach(function(x, Le) {
321
+ !(a.isUndefined(x) || x === null) && t.append(
322
+ // eslint-disable-next-line no-nested-ternary
323
+ i === !0 ? ne([d], Le, o) : i === null ? d : d + "[]",
324
+ h(x)
325
+ );
326
+ }), !1;
327
+ }
328
+ return K(f) ? !0 : (t.append(ne(w, d, o), h(f)), !1);
329
+ }
330
+ const u = [], E = Object.assign(bt, {
331
+ defaultVisitor: l,
332
+ convertValue: h,
333
+ isVisitable: K
334
+ });
335
+ function S(f, d) {
336
+ if (!a.isUndefined(f)) {
337
+ if (u.indexOf(f) !== -1)
338
+ throw Error("Circular reference detected in " + d.join("."));
339
+ u.push(f), a.forEach(f, function(b, g) {
340
+ (!(a.isUndefined(b) || b === null) && s.call(
341
+ t,
342
+ b,
343
+ a.isString(g) ? g.trim() : g,
344
+ d,
345
+ E
346
+ )) === !0 && S(b, d ? d.concat(g) : [g]);
347
+ }), u.pop();
348
+ }
349
+ }
350
+ if (!a.isObject(e))
351
+ throw new TypeError("data must be an object");
352
+ return S(e), t;
353
+ }
354
+ function re(e) {
355
+ const t = {
356
+ "!": "%21",
357
+ "'": "%27",
358
+ "(": "%28",
359
+ ")": "%29",
360
+ "~": "%7E",
361
+ "%20": "+",
362
+ "%00": "\0"
363
+ };
364
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
365
+ return t[r];
366
+ });
367
+ }
368
+ function Z(e, t) {
369
+ this._pairs = [], e && M(e, this, t);
370
+ }
371
+ const Oe = Z.prototype;
372
+ Oe.append = function(t, n) {
373
+ this._pairs.push([t, n]);
374
+ };
375
+ Oe.toString = function(t) {
376
+ const n = t ? function(r) {
377
+ return t.call(this, r, re);
378
+ } : re;
379
+ return this._pairs.map(function(s) {
380
+ return n(s[0]) + "=" + n(s[1]);
381
+ }, "").join("&");
382
+ };
383
+ function St(e) {
384
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
385
+ }
386
+ function Ae(e, t, n) {
387
+ if (!t)
388
+ return e;
389
+ const r = n && n.encode || St, s = n && n.serialize;
390
+ let o;
391
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Z(t, n).toString(r), o) {
392
+ const i = e.indexOf("#");
393
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
394
+ }
395
+ return e;
396
+ }
397
+ class se {
398
+ constructor() {
399
+ this.handlers = [];
400
+ }
401
+ /**
402
+ * Add a new interceptor to the stack
403
+ *
404
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
405
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
406
+ *
407
+ * @return {Number} An ID used to remove interceptor later
408
+ */
409
+ use(t, n, r) {
410
+ return this.handlers.push({
411
+ fulfilled: t,
412
+ rejected: n,
413
+ synchronous: r ? r.synchronous : !1,
414
+ runWhen: r ? r.runWhen : null
415
+ }), this.handlers.length - 1;
416
+ }
417
+ /**
418
+ * Remove an interceptor from the stack
419
+ *
420
+ * @param {Number} id The ID that was returned by `use`
421
+ *
422
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
423
+ */
424
+ eject(t) {
425
+ this.handlers[t] && (this.handlers[t] = null);
426
+ }
427
+ /**
428
+ * Clear all interceptors from the stack
429
+ *
430
+ * @returns {void}
431
+ */
432
+ clear() {
433
+ this.handlers && (this.handlers = []);
434
+ }
435
+ /**
436
+ * Iterate over all the registered interceptors
437
+ *
438
+ * This method is particularly useful for skipping over any
439
+ * interceptors that may have become `null` calling `eject`.
440
+ *
441
+ * @param {Function} fn The function to call for each interceptor
442
+ *
443
+ * @returns {void}
444
+ */
445
+ forEach(t) {
446
+ a.forEach(this.handlers, function(r) {
447
+ r !== null && t(r);
448
+ });
449
+ }
450
+ }
451
+ const Te = {
452
+ silentJSONParsing: !0,
453
+ forcedJSONParsing: !0,
454
+ clarifyTimeoutError: !1
455
+ }, Rt = typeof URLSearchParams < "u" ? URLSearchParams : Z, Ot = typeof FormData < "u" ? FormData : null, At = typeof Blob < "u" ? Blob : null, Tt = {
456
+ isBrowser: !0,
457
+ classes: {
458
+ URLSearchParams: Rt,
459
+ FormData: Ot,
460
+ Blob: At
461
+ },
462
+ protocols: ["http", "https", "file", "blob", "url", "data"]
463
+ }, ge = typeof window < "u" && typeof document < "u", gt = ((e) => ge && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), xt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
464
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
465
+ __proto__: null,
466
+ hasBrowserEnv: ge,
467
+ hasStandardBrowserEnv: gt,
468
+ hasStandardBrowserWebWorkerEnv: xt
469
+ }, Symbol.toStringTag, { value: "Module" })), A = {
470
+ ...Nt,
471
+ ...Tt
472
+ };
473
+ function Pt(e, t) {
474
+ return M(e, new A.classes.URLSearchParams(), Object.assign({
475
+ visitor: function(n, r, s, o) {
476
+ return A.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
477
+ }
478
+ }, t));
479
+ }
480
+ function Ct(e) {
481
+ return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
482
+ }
483
+ function Ft(e) {
484
+ const t = {}, n = Object.keys(e);
485
+ let r;
486
+ const s = n.length;
487
+ let o;
488
+ for (r = 0; r < s; r++)
489
+ o = n[r], t[o] = e[o];
490
+ return t;
491
+ }
492
+ function xe(e) {
493
+ function t(n, r, s, o) {
494
+ let i = n[o++];
495
+ if (i === "__proto__") return !0;
496
+ const c = Number.isFinite(+i), p = o >= n.length;
497
+ return i = !i && a.isArray(s) ? s.length : i, p ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Ft(s[i])), !c);
498
+ }
499
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
500
+ const n = {};
501
+ return a.forEachEntry(e, (r, s) => {
502
+ t(Ct(r), s, n, 0);
503
+ }), n;
504
+ }
505
+ return null;
506
+ }
507
+ function _t(e, t, n) {
508
+ if (a.isString(e))
509
+ try {
510
+ return (t || JSON.parse)(e), a.trim(e);
511
+ } catch (r) {
512
+ if (r.name !== "SyntaxError")
513
+ throw r;
514
+ }
515
+ return (n || JSON.stringify)(e);
516
+ }
517
+ const D = {
518
+ transitional: Te,
519
+ adapter: ["xhr", "http"],
520
+ transformRequest: [function(t, n) {
521
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
522
+ if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
523
+ return s ? JSON.stringify(xe(t)) : t;
524
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
525
+ return t;
526
+ if (a.isArrayBufferView(t))
527
+ return t.buffer;
528
+ if (a.isURLSearchParams(t))
529
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
530
+ let c;
531
+ if (o) {
532
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
533
+ return Pt(t, this.formSerializer).toString();
534
+ if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
535
+ const p = this.env && this.env.FormData;
536
+ return M(
537
+ c ? { "files[]": t } : t,
538
+ p && new p(),
539
+ this.formSerializer
540
+ );
541
+ }
542
+ }
543
+ return o || s ? (n.setContentType("application/json", !1), _t(t)) : t;
544
+ }],
545
+ transformResponse: [function(t) {
546
+ const n = this.transitional || D.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
547
+ if (t && a.isString(t) && (r && !this.responseType || s)) {
548
+ const i = !(n && n.silentJSONParsing) && s;
549
+ try {
550
+ return JSON.parse(t);
551
+ } catch (c) {
552
+ if (i)
553
+ throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
554
+ }
555
+ }
556
+ return t;
557
+ }],
558
+ /**
559
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
560
+ * timeout is not created.
561
+ */
562
+ timeout: 0,
563
+ xsrfCookieName: "XSRF-TOKEN",
564
+ xsrfHeaderName: "X-XSRF-TOKEN",
565
+ maxContentLength: -1,
566
+ maxBodyLength: -1,
567
+ env: {
568
+ FormData: A.classes.FormData,
569
+ Blob: A.classes.Blob
570
+ },
571
+ validateStatus: function(t) {
572
+ return t >= 200 && t < 300;
573
+ },
574
+ headers: {
575
+ common: {
576
+ Accept: "application/json, text/plain, */*",
577
+ "Content-Type": void 0
578
+ }
579
+ }
580
+ };
581
+ a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
582
+ D.headers[e] = {};
583
+ });
584
+ const Bt = a.toObjectSet([
585
+ "age",
586
+ "authorization",
587
+ "content-length",
588
+ "content-type",
589
+ "etag",
590
+ "expires",
591
+ "from",
592
+ "host",
593
+ "if-modified-since",
594
+ "if-unmodified-since",
595
+ "last-modified",
596
+ "location",
597
+ "max-forwards",
598
+ "proxy-authorization",
599
+ "referer",
600
+ "retry-after",
601
+ "user-agent"
602
+ ]), Lt = (e) => {
603
+ const t = {};
604
+ let n, r, s;
605
+ return e && e.split(`
606
+ `).forEach(function(i) {
607
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Bt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
608
+ }), t;
609
+ }, oe = Symbol("internals");
610
+ function _(e) {
611
+ return e && String(e).trim().toLowerCase();
612
+ }
613
+ function j(e) {
614
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(j) : String(e);
615
+ }
616
+ function Dt(e) {
617
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
618
+ let r;
619
+ for (; r = n.exec(e); )
620
+ t[r[1]] = r[2];
621
+ return t;
622
+ }
623
+ const Ut = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
624
+ function J(e, t, n, r, s) {
625
+ if (a.isFunction(r))
626
+ return r.call(this, t, n);
627
+ if (s && (t = n), !!a.isString(t)) {
628
+ if (a.isString(r))
629
+ return t.indexOf(r) !== -1;
630
+ if (a.isRegExp(r))
631
+ return r.test(t);
632
+ }
633
+ }
634
+ function kt(e) {
635
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
636
+ }
637
+ function jt(e, t) {
638
+ const n = a.toCamelCase(" " + t);
639
+ ["get", "set", "has"].forEach((r) => {
640
+ Object.defineProperty(e, r + n, {
641
+ value: function(s, o, i) {
642
+ return this[r].call(this, t, s, o, i);
643
+ },
644
+ configurable: !0
645
+ });
646
+ });
647
+ }
648
+ let O = class {
649
+ constructor(t) {
650
+ t && this.set(t);
651
+ }
652
+ set(t, n, r) {
653
+ const s = this;
654
+ function o(c, p, h) {
655
+ const l = _(p);
656
+ if (!l)
657
+ throw new Error("header name must be a non-empty string");
658
+ const u = a.findKey(s, l);
659
+ (!u || s[u] === void 0 || h === !0 || h === void 0 && s[u] !== !1) && (s[u || p] = j(c));
660
+ }
661
+ const i = (c, p) => a.forEach(c, (h, l) => o(h, l, p));
662
+ return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !Ut(t) ? i(Lt(t), n) : t != null && o(n, t, r), this;
663
+ }
664
+ get(t, n) {
665
+ if (t = _(t), t) {
666
+ const r = a.findKey(this, t);
667
+ if (r) {
668
+ const s = this[r];
669
+ if (!n)
670
+ return s;
671
+ if (n === !0)
672
+ return Dt(s);
673
+ if (a.isFunction(n))
674
+ return n.call(this, s, r);
675
+ if (a.isRegExp(n))
676
+ return n.exec(s);
677
+ throw new TypeError("parser must be boolean|regexp|function");
678
+ }
679
+ }
680
+ }
681
+ has(t, n) {
682
+ if (t = _(t), t) {
683
+ const r = a.findKey(this, t);
684
+ return !!(r && this[r] !== void 0 && (!n || J(this, this[r], r, n)));
685
+ }
686
+ return !1;
687
+ }
688
+ delete(t, n) {
689
+ const r = this;
690
+ let s = !1;
691
+ function o(i) {
692
+ if (i = _(i), i) {
693
+ const c = a.findKey(r, i);
694
+ c && (!n || J(r, r[c], c, n)) && (delete r[c], s = !0);
695
+ }
696
+ }
697
+ return a.isArray(t) ? t.forEach(o) : o(t), s;
698
+ }
699
+ clear(t) {
700
+ const n = Object.keys(this);
701
+ let r = n.length, s = !1;
702
+ for (; r--; ) {
703
+ const o = n[r];
704
+ (!t || J(this, this[o], o, t, !0)) && (delete this[o], s = !0);
705
+ }
706
+ return s;
707
+ }
708
+ normalize(t) {
709
+ const n = this, r = {};
710
+ return a.forEach(this, (s, o) => {
711
+ const i = a.findKey(r, o);
712
+ if (i) {
713
+ n[i] = j(s), delete n[o];
714
+ return;
715
+ }
716
+ const c = t ? kt(o) : String(o).trim();
717
+ c !== o && delete n[o], n[c] = j(s), r[c] = !0;
718
+ }), this;
719
+ }
720
+ concat(...t) {
721
+ return this.constructor.concat(this, ...t);
722
+ }
723
+ toJSON(t) {
724
+ const n = /* @__PURE__ */ Object.create(null);
725
+ return a.forEach(this, (r, s) => {
726
+ r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
727
+ }), n;
728
+ }
729
+ [Symbol.iterator]() {
730
+ return Object.entries(this.toJSON())[Symbol.iterator]();
731
+ }
732
+ toString() {
733
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
734
+ `);
735
+ }
736
+ get [Symbol.toStringTag]() {
737
+ return "AxiosHeaders";
738
+ }
739
+ static from(t) {
740
+ return t instanceof this ? t : new this(t);
741
+ }
742
+ static concat(t, ...n) {
743
+ const r = new this(t);
744
+ return n.forEach((s) => r.set(s)), r;
745
+ }
746
+ static accessor(t) {
747
+ const r = (this[oe] = this[oe] = {
748
+ accessors: {}
749
+ }).accessors, s = this.prototype;
750
+ function o(i) {
751
+ const c = _(i);
752
+ r[c] || (jt(s, i), r[c] = !0);
753
+ }
754
+ return a.isArray(t) ? t.forEach(o) : o(t), this;
755
+ }
756
+ };
757
+ O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
758
+ a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
759
+ let n = t[0].toUpperCase() + t.slice(1);
760
+ return {
761
+ get: () => e,
762
+ set(r) {
763
+ this[n] = r;
764
+ }
765
+ };
766
+ });
767
+ a.freezeMethods(O);
768
+ function $(e, t) {
769
+ const n = this || D, r = t || n, s = O.from(r.headers);
770
+ let o = r.data;
771
+ return a.forEach(e, function(c) {
772
+ o = c.call(n, o, s.normalize(), t ? t.status : void 0);
773
+ }), s.normalize(), o;
774
+ }
775
+ function Ne(e) {
776
+ return !!(e && e.__CANCEL__);
777
+ }
778
+ function U(e, t, n) {
779
+ m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
780
+ }
781
+ a.inherits(U, m, {
782
+ __CANCEL__: !0
783
+ });
784
+ function It(e, t, n) {
785
+ const r = n.config.validateStatus;
786
+ !n.status || !r || r(n.status) ? e(n) : t(new m(
787
+ "Request failed with status code " + n.status,
788
+ [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
789
+ n.config,
790
+ n.request,
791
+ n
792
+ ));
793
+ }
794
+ const Ht = A.hasStandardBrowserEnv ? (
795
+ // Standard browser envs support document.cookie
796
+ {
797
+ write(e, t, n, r, s, o) {
798
+ const i = [e + "=" + encodeURIComponent(t)];
799
+ a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
800
+ },
801
+ read(e) {
802
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
803
+ return t ? decodeURIComponent(t[3]) : null;
804
+ },
805
+ remove(e) {
806
+ this.write(e, "", Date.now() - 864e5);
807
+ }
808
+ }
809
+ ) : (
810
+ // Non-standard browser env (web workers, react-native) lack needed support.
811
+ {
812
+ write() {
813
+ },
814
+ read() {
815
+ return null;
816
+ },
817
+ remove() {
818
+ }
819
+ }
820
+ );
821
+ function qt(e) {
822
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
823
+ }
824
+ function Mt(e, t) {
825
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
826
+ }
827
+ function Pe(e, t) {
828
+ return e && !qt(t) ? Mt(e, t) : t;
829
+ }
830
+ const zt = A.hasStandardBrowserEnv ? (
831
+ // Standard browser envs have full support of the APIs needed to test
832
+ // whether the request URL is of the same origin as current location.
833
+ function() {
834
+ const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
835
+ let r;
836
+ function s(o) {
837
+ let i = o;
838
+ return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
839
+ href: n.href,
840
+ protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
841
+ host: n.host,
842
+ search: n.search ? n.search.replace(/^\?/, "") : "",
843
+ hash: n.hash ? n.hash.replace(/^#/, "") : "",
844
+ hostname: n.hostname,
845
+ port: n.port,
846
+ pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
847
+ };
848
+ }
849
+ return r = s(window.location.href), function(i) {
850
+ const c = a.isString(i) ? s(i) : i;
851
+ return c.protocol === r.protocol && c.host === r.host;
852
+ };
853
+ }()
854
+ ) : (
855
+ // Non standard browser envs (web workers, react-native) lack needed support.
856
+ /* @__PURE__ */ function() {
857
+ return function() {
858
+ return !0;
859
+ };
860
+ }()
861
+ );
862
+ function Jt(e) {
863
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
864
+ return t && t[1] || "";
865
+ }
866
+ function $t(e, t) {
867
+ e = e || 10;
868
+ const n = new Array(e), r = new Array(e);
869
+ let s = 0, o = 0, i;
870
+ return t = t !== void 0 ? t : 1e3, function(p) {
871
+ const h = Date.now(), l = r[o];
872
+ i || (i = h), n[s] = p, r[s] = h;
873
+ let u = o, E = 0;
874
+ for (; u !== s; )
875
+ E += n[u++], u = u % e;
876
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), h - i < t)
877
+ return;
878
+ const S = l && h - l;
879
+ return S ? Math.round(E * 1e3 / S) : void 0;
880
+ };
881
+ }
882
+ function ie(e, t) {
883
+ let n = 0;
884
+ const r = $t(50, 250);
885
+ return (s) => {
886
+ const o = s.loaded, i = s.lengthComputable ? s.total : void 0, c = o - n, p = r(c), h = o <= i;
887
+ n = o;
888
+ const l = {
889
+ loaded: o,
890
+ total: i,
891
+ progress: i ? o / i : void 0,
892
+ bytes: c,
893
+ rate: p || void 0,
894
+ estimated: p && i && h ? (i - o) / p : void 0,
895
+ event: s
896
+ };
897
+ l[t ? "download" : "upload"] = !0, e(l);
898
+ };
899
+ }
900
+ const Vt = typeof XMLHttpRequest < "u", Wt = Vt && function(e) {
901
+ return new Promise(function(n, r) {
902
+ let s = e.data;
903
+ const o = O.from(e.headers).normalize();
904
+ let { responseType: i, withXSRFToken: c } = e, p;
905
+ function h() {
906
+ e.cancelToken && e.cancelToken.unsubscribe(p), e.signal && e.signal.removeEventListener("abort", p);
907
+ }
908
+ let l;
909
+ if (a.isFormData(s)) {
910
+ if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
911
+ o.setContentType(!1);
912
+ else if ((l = o.getContentType()) !== !1) {
913
+ const [d, ...w] = l ? l.split(";").map((b) => b.trim()).filter(Boolean) : [];
914
+ o.setContentType([d || "multipart/form-data", ...w].join("; "));
915
+ }
916
+ }
917
+ let u = new XMLHttpRequest();
918
+ if (e.auth) {
919
+ const d = e.auth.username || "", w = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
920
+ o.set("Authorization", "Basic " + btoa(d + ":" + w));
921
+ }
922
+ const E = Pe(e.baseURL, e.url);
923
+ u.open(e.method.toUpperCase(), Ae(E, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
924
+ function S() {
925
+ if (!u)
926
+ return;
927
+ const d = O.from(
928
+ "getAllResponseHeaders" in u && u.getAllResponseHeaders()
929
+ ), b = {
930
+ data: !i || i === "text" || i === "json" ? u.responseText : u.response,
931
+ status: u.status,
932
+ statusText: u.statusText,
933
+ headers: d,
934
+ config: e,
935
+ request: u
936
+ };
937
+ It(function(x) {
938
+ n(x), h();
939
+ }, function(x) {
940
+ r(x), h();
941
+ }, b), u = null;
942
+ }
943
+ if ("onloadend" in u ? u.onloadend = S : u.onreadystatechange = function() {
944
+ !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(S);
945
+ }, u.onabort = function() {
946
+ u && (r(new m("Request aborted", m.ECONNABORTED, e, u)), u = null);
947
+ }, u.onerror = function() {
948
+ r(new m("Network Error", m.ERR_NETWORK, e, u)), u = null;
949
+ }, u.ontimeout = function() {
950
+ let w = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
951
+ const b = e.transitional || Te;
952
+ e.timeoutErrorMessage && (w = e.timeoutErrorMessage), r(new m(
953
+ w,
954
+ b.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
955
+ e,
956
+ u
957
+ )), u = null;
958
+ }, A.hasStandardBrowserEnv && (c && a.isFunction(c) && (c = c(e)), c || c !== !1 && zt(E))) {
959
+ const d = e.xsrfHeaderName && e.xsrfCookieName && Ht.read(e.xsrfCookieName);
960
+ d && o.set(e.xsrfHeaderName, d);
961
+ }
962
+ s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(w, b) {
963
+ u.setRequestHeader(b, w);
964
+ }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", ie(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", ie(e.onUploadProgress)), (e.cancelToken || e.signal) && (p = (d) => {
965
+ u && (r(!d || d.type ? new U(null, e, u) : d), u.abort(), u = null);
966
+ }, e.cancelToken && e.cancelToken.subscribe(p), e.signal && (e.signal.aborted ? p() : e.signal.addEventListener("abort", p)));
967
+ const f = Jt(E);
968
+ if (f && A.protocols.indexOf(f) === -1) {
969
+ r(new m("Unsupported protocol " + f + ":", m.ERR_BAD_REQUEST, e));
970
+ return;
971
+ }
972
+ u.send(s || null);
973
+ });
974
+ }, X = {
975
+ http: Et,
976
+ xhr: Wt
977
+ };
978
+ a.forEach(X, (e, t) => {
979
+ if (e) {
980
+ try {
981
+ Object.defineProperty(e, "name", { value: t });
982
+ } catch {
983
+ }
984
+ Object.defineProperty(e, "adapterName", { value: t });
985
+ }
986
+ });
987
+ const ae = (e) => `- ${e}`, Kt = (e) => a.isFunction(e) || e === null || e === !1, Ce = {
988
+ getAdapter: (e) => {
989
+ e = a.isArray(e) ? e : [e];
990
+ const { length: t } = e;
991
+ let n, r;
992
+ const s = {};
993
+ for (let o = 0; o < t; o++) {
994
+ n = e[o];
995
+ let i;
996
+ if (r = n, !Kt(n) && (r = X[(i = String(n)).toLowerCase()], r === void 0))
997
+ throw new m(`Unknown adapter '${i}'`);
998
+ if (r)
999
+ break;
1000
+ s[i || "#" + o] = r;
1001
+ }
1002
+ if (!r) {
1003
+ const o = Object.entries(s).map(
1004
+ ([c, p]) => `adapter ${c} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1005
+ );
1006
+ let i = t ? o.length > 1 ? `since :
1007
+ ` + o.map(ae).join(`
1008
+ `) : " " + ae(o[0]) : "as no adapter specified";
1009
+ throw new m(
1010
+ "There is no suitable adapter to dispatch the request " + i,
1011
+ "ERR_NOT_SUPPORT"
1012
+ );
1013
+ }
1014
+ return r;
1015
+ },
1016
+ adapters: X
1017
+ };
1018
+ function V(e) {
1019
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1020
+ throw new U(null, e);
1021
+ }
1022
+ function ce(e) {
1023
+ return V(e), e.headers = O.from(e.headers), e.data = $.call(
1024
+ e,
1025
+ e.transformRequest
1026
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ce.getAdapter(e.adapter || D.adapter)(e).then(function(r) {
1027
+ return V(e), r.data = $.call(
1028
+ e,
1029
+ e.transformResponse,
1030
+ r
1031
+ ), r.headers = O.from(r.headers), r;
1032
+ }, function(r) {
1033
+ return Ne(r) || (V(e), r && r.response && (r.response.data = $.call(
1034
+ e,
1035
+ e.transformResponse,
1036
+ r.response
1037
+ ), r.response.headers = O.from(r.response.headers))), Promise.reject(r);
1038
+ });
1039
+ }
1040
+ const ue = (e) => e instanceof O ? e.toJSON() : e;
1041
+ function C(e, t) {
1042
+ t = t || {};
1043
+ const n = {};
1044
+ function r(h, l, u) {
1045
+ return a.isPlainObject(h) && a.isPlainObject(l) ? a.merge.call({ caseless: u }, h, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
1046
+ }
1047
+ function s(h, l, u) {
1048
+ if (a.isUndefined(l)) {
1049
+ if (!a.isUndefined(h))
1050
+ return r(void 0, h, u);
1051
+ } else return r(h, l, u);
1052
+ }
1053
+ function o(h, l) {
1054
+ if (!a.isUndefined(l))
1055
+ return r(void 0, l);
1056
+ }
1057
+ function i(h, l) {
1058
+ if (a.isUndefined(l)) {
1059
+ if (!a.isUndefined(h))
1060
+ return r(void 0, h);
1061
+ } else return r(void 0, l);
1062
+ }
1063
+ function c(h, l, u) {
1064
+ if (u in t)
1065
+ return r(h, l);
1066
+ if (u in e)
1067
+ return r(void 0, h);
1068
+ }
1069
+ const p = {
1070
+ url: o,
1071
+ method: o,
1072
+ data: o,
1073
+ baseURL: i,
1074
+ transformRequest: i,
1075
+ transformResponse: i,
1076
+ paramsSerializer: i,
1077
+ timeout: i,
1078
+ timeoutMessage: i,
1079
+ withCredentials: i,
1080
+ withXSRFToken: i,
1081
+ adapter: i,
1082
+ responseType: i,
1083
+ xsrfCookieName: i,
1084
+ xsrfHeaderName: i,
1085
+ onUploadProgress: i,
1086
+ onDownloadProgress: i,
1087
+ decompress: i,
1088
+ maxContentLength: i,
1089
+ maxBodyLength: i,
1090
+ beforeRedirect: i,
1091
+ transport: i,
1092
+ httpAgent: i,
1093
+ httpsAgent: i,
1094
+ cancelToken: i,
1095
+ socketPath: i,
1096
+ responseEncoding: i,
1097
+ validateStatus: c,
1098
+ headers: (h, l) => s(ue(h), ue(l), !0)
1099
+ };
1100
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
1101
+ const u = p[l] || s, E = u(e[l], t[l], l);
1102
+ a.isUndefined(E) && u !== c || (n[l] = E);
1103
+ }), n;
1104
+ }
1105
+ const Fe = "1.6.7", Y = {};
1106
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1107
+ Y[e] = function(r) {
1108
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1109
+ };
1110
+ });
1111
+ const le = {};
1112
+ Y.transitional = function(t, n, r) {
1113
+ function s(o, i) {
1114
+ return "[Axios v" + Fe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1115
+ }
1116
+ return (o, i, c) => {
1117
+ if (t === !1)
1118
+ throw new m(
1119
+ s(i, " has been removed" + (n ? " in " + n : "")),
1120
+ m.ERR_DEPRECATED
1121
+ );
1122
+ return n && !le[i] && (le[i] = !0), t ? t(o, i, c) : !0;
1123
+ };
1124
+ };
1125
+ function Xt(e, t, n) {
1126
+ if (typeof e != "object")
1127
+ throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1128
+ const r = Object.keys(e);
1129
+ let s = r.length;
1130
+ for (; s-- > 0; ) {
1131
+ const o = r[s], i = t[o];
1132
+ if (i) {
1133
+ const c = e[o], p = c === void 0 || i(c, o, e);
1134
+ if (p !== !0)
1135
+ throw new m("option " + o + " must be " + p, m.ERR_BAD_OPTION_VALUE);
1136
+ continue;
1137
+ }
1138
+ if (n !== !0)
1139
+ throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1140
+ }
1141
+ }
1142
+ const G = {
1143
+ assertOptions: Xt,
1144
+ validators: Y
1145
+ }, N = G.validators;
1146
+ let P = class {
1147
+ constructor(t) {
1148
+ this.defaults = t, this.interceptors = {
1149
+ request: new se(),
1150
+ response: new se()
1151
+ };
1152
+ }
1153
+ /**
1154
+ * Dispatch a request
1155
+ *
1156
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1157
+ * @param {?Object} config
1158
+ *
1159
+ * @returns {Promise} The Promise to be fulfilled
1160
+ */
1161
+ async request(t, n) {
1162
+ try {
1163
+ return await this._request(t, n);
1164
+ } catch (r) {
1165
+ if (r instanceof Error) {
1166
+ let s;
1167
+ Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
1168
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1169
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1170
+ ` + o) : r.stack = o;
1171
+ }
1172
+ throw r;
1173
+ }
1174
+ }
1175
+ _request(t, n) {
1176
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = C(this.defaults, n);
1177
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1178
+ r !== void 0 && G.assertOptions(r, {
1179
+ silentJSONParsing: N.transitional(N.boolean),
1180
+ forcedJSONParsing: N.transitional(N.boolean),
1181
+ clarifyTimeoutError: N.transitional(N.boolean)
1182
+ }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1183
+ serialize: s
1184
+ } : G.assertOptions(s, {
1185
+ encode: N.function,
1186
+ serialize: N.function
1187
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1188
+ let i = o && a.merge(
1189
+ o.common,
1190
+ o[n.method]
1191
+ );
1192
+ o && a.forEach(
1193
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1194
+ (f) => {
1195
+ delete o[f];
1196
+ }
1197
+ ), n.headers = O.concat(i, o);
1198
+ const c = [];
1199
+ let p = !0;
1200
+ this.interceptors.request.forEach(function(d) {
1201
+ typeof d.runWhen == "function" && d.runWhen(n) === !1 || (p = p && d.synchronous, c.unshift(d.fulfilled, d.rejected));
1202
+ });
1203
+ const h = [];
1204
+ this.interceptors.response.forEach(function(d) {
1205
+ h.push(d.fulfilled, d.rejected);
1206
+ });
1207
+ let l, u = 0, E;
1208
+ if (!p) {
1209
+ const f = [ce.bind(this), void 0];
1210
+ for (f.unshift.apply(f, c), f.push.apply(f, h), E = f.length, l = Promise.resolve(n); u < E; )
1211
+ l = l.then(f[u++], f[u++]);
1212
+ return l;
1213
+ }
1214
+ E = c.length;
1215
+ let S = n;
1216
+ for (u = 0; u < E; ) {
1217
+ const f = c[u++], d = c[u++];
1218
+ try {
1219
+ S = f(S);
1220
+ } catch (w) {
1221
+ d.call(this, w);
1222
+ break;
1223
+ }
1224
+ }
1225
+ try {
1226
+ l = ce.call(this, S);
1227
+ } catch (f) {
1228
+ return Promise.reject(f);
1229
+ }
1230
+ for (u = 0, E = h.length; u < E; )
1231
+ l = l.then(h[u++], h[u++]);
1232
+ return l;
1233
+ }
1234
+ getUri(t) {
1235
+ t = C(this.defaults, t);
1236
+ const n = Pe(t.baseURL, t.url);
1237
+ return Ae(n, t.params, t.paramsSerializer);
1238
+ }
1239
+ };
1240
+ a.forEach(["delete", "get", "head", "options"], function(t) {
1241
+ P.prototype[t] = function(n, r) {
1242
+ return this.request(C(r || {}, {
1243
+ method: t,
1244
+ url: n,
1245
+ data: (r || {}).data
1246
+ }));
1247
+ };
1248
+ });
1249
+ a.forEach(["post", "put", "patch"], function(t) {
1250
+ function n(r) {
1251
+ return function(o, i, c) {
1252
+ return this.request(C(c || {}, {
1253
+ method: t,
1254
+ headers: r ? {
1255
+ "Content-Type": "multipart/form-data"
1256
+ } : {},
1257
+ url: o,
1258
+ data: i
1259
+ }));
1260
+ };
1261
+ }
1262
+ P.prototype[t] = n(), P.prototype[t + "Form"] = n(!0);
1263
+ });
1264
+ let Gt = class _e {
1265
+ constructor(t) {
1266
+ if (typeof t != "function")
1267
+ throw new TypeError("executor must be a function.");
1268
+ let n;
1269
+ this.promise = new Promise(function(o) {
1270
+ n = o;
1271
+ });
1272
+ const r = this;
1273
+ this.promise.then((s) => {
1274
+ if (!r._listeners) return;
1275
+ let o = r._listeners.length;
1276
+ for (; o-- > 0; )
1277
+ r._listeners[o](s);
1278
+ r._listeners = null;
1279
+ }), this.promise.then = (s) => {
1280
+ let o;
1281
+ const i = new Promise((c) => {
1282
+ r.subscribe(c), o = c;
1283
+ }).then(s);
1284
+ return i.cancel = function() {
1285
+ r.unsubscribe(o);
1286
+ }, i;
1287
+ }, t(function(o, i, c) {
1288
+ r.reason || (r.reason = new U(o, i, c), n(r.reason));
1289
+ });
1290
+ }
1291
+ /**
1292
+ * Throws a `CanceledError` if cancellation has been requested.
1293
+ */
1294
+ throwIfRequested() {
1295
+ if (this.reason)
1296
+ throw this.reason;
1297
+ }
1298
+ /**
1299
+ * Subscribe to the cancel signal
1300
+ */
1301
+ subscribe(t) {
1302
+ if (this.reason) {
1303
+ t(this.reason);
1304
+ return;
1305
+ }
1306
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1307
+ }
1308
+ /**
1309
+ * Unsubscribe from the cancel signal
1310
+ */
1311
+ unsubscribe(t) {
1312
+ if (!this._listeners)
1313
+ return;
1314
+ const n = this._listeners.indexOf(t);
1315
+ n !== -1 && this._listeners.splice(n, 1);
1316
+ }
1317
+ /**
1318
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1319
+ * cancels the `CancelToken`.
1320
+ */
1321
+ static source() {
1322
+ let t;
1323
+ return {
1324
+ token: new _e(function(s) {
1325
+ t = s;
1326
+ }),
1327
+ cancel: t
1328
+ };
1329
+ }
1330
+ };
1331
+ function vt(e) {
1332
+ return function(n) {
1333
+ return e.apply(null, n);
1334
+ };
1335
+ }
1336
+ function Qt(e) {
1337
+ return a.isObject(e) && e.isAxiosError === !0;
1338
+ }
1339
+ const v = {
1340
+ Continue: 100,
1341
+ SwitchingProtocols: 101,
1342
+ Processing: 102,
1343
+ EarlyHints: 103,
1344
+ Ok: 200,
1345
+ Created: 201,
1346
+ Accepted: 202,
1347
+ NonAuthoritativeInformation: 203,
1348
+ NoContent: 204,
1349
+ ResetContent: 205,
1350
+ PartialContent: 206,
1351
+ MultiStatus: 207,
1352
+ AlreadyReported: 208,
1353
+ ImUsed: 226,
1354
+ MultipleChoices: 300,
1355
+ MovedPermanently: 301,
1356
+ Found: 302,
1357
+ SeeOther: 303,
1358
+ NotModified: 304,
1359
+ UseProxy: 305,
1360
+ Unused: 306,
1361
+ TemporaryRedirect: 307,
1362
+ PermanentRedirect: 308,
1363
+ BadRequest: 400,
1364
+ Unauthorized: 401,
1365
+ PaymentRequired: 402,
1366
+ Forbidden: 403,
1367
+ NotFound: 404,
1368
+ MethodNotAllowed: 405,
1369
+ NotAcceptable: 406,
1370
+ ProxyAuthenticationRequired: 407,
1371
+ RequestTimeout: 408,
1372
+ Conflict: 409,
1373
+ Gone: 410,
1374
+ LengthRequired: 411,
1375
+ PreconditionFailed: 412,
1376
+ PayloadTooLarge: 413,
1377
+ UriTooLong: 414,
1378
+ UnsupportedMediaType: 415,
1379
+ RangeNotSatisfiable: 416,
1380
+ ExpectationFailed: 417,
1381
+ ImATeapot: 418,
1382
+ MisdirectedRequest: 421,
1383
+ UnprocessableEntity: 422,
1384
+ Locked: 423,
1385
+ FailedDependency: 424,
1386
+ TooEarly: 425,
1387
+ UpgradeRequired: 426,
1388
+ PreconditionRequired: 428,
1389
+ TooManyRequests: 429,
1390
+ RequestHeaderFieldsTooLarge: 431,
1391
+ UnavailableForLegalReasons: 451,
1392
+ InternalServerError: 500,
1393
+ NotImplemented: 501,
1394
+ BadGateway: 502,
1395
+ ServiceUnavailable: 503,
1396
+ GatewayTimeout: 504,
1397
+ HttpVersionNotSupported: 505,
1398
+ VariantAlsoNegotiates: 506,
1399
+ InsufficientStorage: 507,
1400
+ LoopDetected: 508,
1401
+ NotExtended: 510,
1402
+ NetworkAuthenticationRequired: 511
1403
+ };
1404
+ Object.entries(v).forEach(([e, t]) => {
1405
+ v[t] = e;
1406
+ });
1407
+ function Be(e) {
1408
+ const t = new P(e), n = fe(P.prototype.request, t);
1409
+ return a.extend(n, P.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1410
+ return Be(C(e, s));
1411
+ }, n;
1412
+ }
1413
+ const y = Be(D);
1414
+ y.Axios = P;
1415
+ y.CanceledError = U;
1416
+ y.CancelToken = Gt;
1417
+ y.isCancel = Ne;
1418
+ y.VERSION = Fe;
1419
+ y.toFormData = M;
1420
+ y.AxiosError = m;
1421
+ y.Cancel = y.CanceledError;
1422
+ y.all = function(t) {
1423
+ return Promise.all(t);
1424
+ };
1425
+ y.spread = vt;
1426
+ y.isAxiosError = Qt;
1427
+ y.mergeConfig = C;
1428
+ y.AxiosHeaders = O;
1429
+ y.formToJSON = (e) => xe(a.isHTMLForm(e) ? new FormData(e) : e);
1430
+ y.getAdapter = Ce.getAdapter;
1431
+ y.HttpStatusCode = v;
1432
+ y.default = y;
1433
+ const {
1434
+ Axios: rn,
1435
+ AxiosError: sn,
1436
+ CanceledError: on,
1437
+ isCancel: an,
1438
+ CancelToken: cn,
1439
+ VERSION: un,
1440
+ all: ln,
1441
+ Cancel: fn,
1442
+ isAxiosError: dn,
1443
+ spread: pn,
1444
+ toFormData: hn,
1445
+ AxiosHeaders: mn,
1446
+ HttpStatusCode: yn,
1447
+ formToJSON: En,
1448
+ getAdapter: wn,
1449
+ mergeConfig: bn
1450
+ } = y, Sn = async (e) => {
1451
+ var n;
1452
+ const t = {
1453
+ personalInfo: "/api/personal-center/personal-server/v1/info"
1454
+ };
1455
+ try {
1456
+ const r = await y.create().get(t.personalInfo, {
1457
+ baseURL: ke().baseURL,
1458
+ params: {
1459
+ project: (n = Ue()) == null ? void 0 : n.id,
1460
+ timestamp: (/* @__PURE__ */ new Date()).getTime()
1461
+ },
1462
+ headers: {
1463
+ Authorization: `Bearer ${e}`,
1464
+ "X-Origin": location.origin,
1465
+ "Accept-Language": De.value
1466
+ }
1467
+ });
1468
+ r != null && r.data && sessionStorage.setItem("userInfo", JSON.stringify(r.data));
1469
+ } catch {
1470
+ }
1471
+ };
1472
+ export {
1473
+ Sn as setPersonalInfo
1474
+ };