@clickcns/vmedic-react 0.0.5 → 0.0.7

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 (84) hide show
  1. package/dist/cjs/api/index.js +1 -6
  2. package/dist/cjs/api/index.js.map +1 -1
  3. package/dist/cjs/hooks/index.js +1 -1
  4. package/dist/cjs/hooks/index.js.map +1 -1
  5. package/dist/cjs/shadcn-ui/index.js +2 -0
  6. package/dist/cjs/shadcn-ui/index.js.map +1 -0
  7. package/dist/cjs/ui/index.js +154 -0
  8. package/dist/cjs/ui/index.js.map +1 -0
  9. package/dist/cjs.js +1 -1
  10. package/dist/compiler-runtime-BNHg76kC.js +37 -0
  11. package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
  12. package/dist/compiler-runtime-BtE0QEUt.cjs +6 -0
  13. package/dist/compiler-runtime-BtE0QEUt.cjs.map +1 -0
  14. package/dist/es/api/index.js +170 -1938
  15. package/dist/es/api/index.js.map +1 -1
  16. package/dist/es/hooks/index.js +17 -2
  17. package/dist/es/hooks/index.js.map +1 -1
  18. package/dist/es/shadcn-ui/index.js +217 -0
  19. package/dist/es/shadcn-ui/index.js.map +1 -0
  20. package/dist/es/ui/index.js +24399 -0
  21. package/dist/es/ui/index.js.map +1 -0
  22. package/dist/es.js +1 -6
  23. package/dist/es.js.map +1 -1
  24. package/dist/index.d.ts +1 -3
  25. package/dist/lib/utils/index.d.ts +1 -0
  26. package/dist/lib/utils/utils.d.ts +2 -0
  27. package/dist/shadcn-ui/button.d.ts +10 -0
  28. package/dist/shadcn-ui/checkbox.d.ts +4 -0
  29. package/dist/shadcn-ui/combobox.d.ts +16 -0
  30. package/dist/shadcn-ui/command.d.ts +80 -0
  31. package/dist/shadcn-ui/dialog.d.ts +15 -0
  32. package/dist/shadcn-ui/drawer.d.ts +22 -0
  33. package/dist/shadcn-ui/field.d.ts +24 -0
  34. package/dist/shadcn-ui/hover-card.d.ts +6 -0
  35. package/dist/shadcn-ui/index.d.ts +20 -0
  36. package/dist/shadcn-ui/input.d.ts +3 -0
  37. package/dist/shadcn-ui/kbd.d.ts +3 -0
  38. package/dist/shadcn-ui/label.d.ts +4 -0
  39. package/dist/shadcn-ui/pagination.d.ts +32 -0
  40. package/dist/shadcn-ui/popover.d.ts +7 -0
  41. package/dist/shadcn-ui/resizable.d.ts +23 -0
  42. package/dist/shadcn-ui/scroll-area.d.ts +5 -0
  43. package/dist/shadcn-ui/separator.d.ts +4 -0
  44. package/dist/shadcn-ui/sheet.d.ts +25 -0
  45. package/dist/shadcn-ui/slider.d.ts +4 -0
  46. package/dist/shadcn-ui/textarea.d.ts +3 -0
  47. package/dist/shadcn-ui/tooltip.d.ts +7 -0
  48. package/dist/tooltip-CmhEZXRA.cjs +7 -0
  49. package/dist/tooltip-CmhEZXRA.cjs.map +1 -0
  50. package/dist/tooltip-UK77hYPj.js +1310 -0
  51. package/dist/tooltip-UK77hYPj.js.map +1 -0
  52. package/dist/ui/feedbacks/FeedbackDetailPageContent.d.ts +27 -0
  53. package/dist/ui/feedbacks/components/CommentActions.d.ts +6 -0
  54. package/dist/ui/feedbacks/components/CommentEditor.d.ts +19 -0
  55. package/dist/ui/feedbacks/components/CommentItem.d.ts +21 -0
  56. package/dist/ui/feedbacks/components/CommentSection.d.ts +25 -0
  57. package/dist/ui/feedbacks/components/FeedbackBody.d.ts +16 -0
  58. package/dist/ui/feedbacks/components/FeedbackHeader.d.ts +9 -0
  59. package/dist/ui/feedbacks/components/index.d.ts +6 -0
  60. package/dist/ui/feedbacks/hooks/index.d.ts +1 -0
  61. package/dist/ui/feedbacks/hooks/useCommentEditor.d.ts +10 -0
  62. package/dist/ui/feedbacks/index.d.ts +1 -0
  63. package/dist/ui/index.d.ts +1 -0
  64. package/package.json +54 -6
  65. package/dist/TestComponent-B7kGqbVF.js +0 -291
  66. package/dist/TestComponent-B7kGqbVF.js.map +0 -1
  67. package/dist/TestComponent-oikV159P.cjs +0 -7
  68. package/dist/TestComponent-oikV159P.cjs.map +0 -1
  69. package/dist/cjs/components/index.js +0 -2
  70. package/dist/cjs/components/index.js.map +0 -1
  71. package/dist/cjs/utils/index.js +0 -2
  72. package/dist/cjs/utils/index.js.map +0 -1
  73. package/dist/components/TestComponent.d.ts +0 -5
  74. package/dist/components/index.d.ts +0 -1
  75. package/dist/es/components/index.js +0 -5
  76. package/dist/es/components/index.js.map +0 -1
  77. package/dist/es/utils/index.js +0 -2
  78. package/dist/es/utils/index.js.map +0 -1
  79. package/dist/types/api/index copy.d.ts +0 -10
  80. package/dist/useTest-D5Q24BCy.cjs +0 -6
  81. package/dist/useTest-D5Q24BCy.cjs.map +0 -1
  82. package/dist/useTest-qnK2xvVl.js +0 -52
  83. package/dist/useTest-qnK2xvVl.js.map +0 -1
  84. package/dist/utils/index.d.ts +0 -1
@@ -1,1819 +1,51 @@
1
- function We(e, t) {
2
- return function() {
3
- return e.apply(t, arguments);
4
- };
5
- }
6
- const { toString: yt } = Object.prototype, { getPrototypeOf: be } = Object, { iterator: re, toStringTag: Ve } = Symbol, oe = /* @__PURE__ */ ((e) => (t) => {
7
- const n = yt.call(t);
8
- return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
9
- })(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => oe(t) === e), ae = (e) => (t) => typeof t === e, { isArray: M } = Array, H = ae("undefined");
10
- function V(e) {
11
- return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
12
- }
13
- const Ke = N("ArrayBuffer");
14
- function wt(e) {
15
- let t;
16
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ke(e.buffer), t;
17
- }
18
- const bt = ae("string"), T = ae("function"), ve = ae("number"), K = (e) => e !== null && typeof e == "object", gt = (e) => e === !0 || e === !1, ee = (e) => {
19
- if (oe(e) !== "object")
20
- return !1;
21
- const t = be(e);
22
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ve in e) && !(re in e);
23
- }, Et = (e) => {
24
- if (!K(e) || V(e))
25
- return !1;
26
- try {
27
- return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
28
- } catch {
29
- return !1;
30
- }
31
- }, Rt = N("Date"), St = N("File"), Ot = N("Blob"), At = N("FileList"), Tt = (e) => K(e) && T(e.pipe), Ct = (e) => {
32
- let t;
33
- return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = oe(e)) === "formdata" || // detect form-data instance
34
- t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
35
- }, xt = N("URLSearchParams"), [Pt, Ft, Nt, kt] = ["ReadableStream", "Request", "Response", "Headers"].map(N), Ut = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
36
- function v(e, t, { allOwnKeys: n = !1 } = {}) {
37
- if (e === null || typeof e > "u")
38
- return;
39
- let s, r;
40
- if (typeof e != "object" && (e = [e]), M(e))
41
- for (s = 0, r = e.length; s < r; s++)
42
- t.call(null, e[s], s, e);
43
- else {
44
- if (V(e))
45
- return;
46
- const a = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = a.length;
47
- let c;
48
- for (s = 0; s < o; s++)
49
- c = a[s], t.call(null, e[c], c, e);
50
- }
51
- }
52
- function Xe(e, t) {
53
- if (V(e))
54
- return null;
55
- t = t.toLowerCase();
56
- const n = Object.keys(e);
57
- let s = n.length, r;
58
- for (; s-- > 0; )
59
- if (r = n[s], t === r.toLowerCase())
60
- return r;
61
- return null;
62
- }
63
- const $ = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ge = (e) => !H(e) && e !== $;
64
- function he() {
65
- const { caseless: e, skipUndefined: t } = Ge(this) && this || {}, n = {}, s = (r, a) => {
66
- const o = e && Xe(n, a) || a;
67
- ee(n[o]) && ee(r) ? n[o] = he(n[o], r) : ee(r) ? n[o] = he({}, r) : M(r) ? n[o] = r.slice() : (!t || !H(r)) && (n[o] = r);
68
- };
69
- for (let r = 0, a = arguments.length; r < a; r++)
70
- arguments[r] && v(arguments[r], s);
71
- return n;
72
- }
73
- const _t = (e, t, n, { allOwnKeys: s } = {}) => (v(t, (r, a) => {
74
- n && T(r) ? e[a] = We(r, n) : e[a] = r;
75
- }, { allOwnKeys: s }), e), Bt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Dt = (e, t, n, s) => {
76
- e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
77
- value: t.prototype
78
- }), n && Object.assign(e.prototype, n);
79
- }, Lt = (e, t, n, s) => {
80
- let r, a, o;
81
- const c = {};
82
- if (t = t || {}, e == null) return t;
83
- do {
84
- for (r = Object.getOwnPropertyNames(e), a = r.length; a-- > 0; )
85
- o = r[a], (!s || s(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
86
- e = n !== !1 && be(e);
87
- } while (e && (!n || n(e, t)) && e !== Object.prototype);
88
- return t;
89
- }, $t = (e, t, n) => {
90
- e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
91
- const s = e.indexOf(t, n);
92
- return s !== -1 && s === n;
93
- }, jt = (e) => {
94
- if (!e) return null;
95
- if (M(e)) return e;
96
- let t = e.length;
97
- if (!ve(t)) return null;
98
- const n = new Array(t);
99
- for (; t-- > 0; )
100
- n[t] = e[t];
101
- return n;
102
- }, qt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && be(Uint8Array)), It = (e, t) => {
103
- const s = (e && e[re]).call(e);
104
- let r;
105
- for (; (r = s.next()) && !r.done; ) {
106
- const a = r.value;
107
- t.call(e, a[0], a[1]);
108
- }
109
- }, Ht = (e, t) => {
110
- let n;
111
- const s = [];
112
- for (; (n = e.exec(t)) !== null; )
113
- s.push(n);
114
- return s;
115
- }, Mt = N("HTMLFormElement"), zt = (e) => e.toLowerCase().replace(
116
- /[-_\s]([a-z\d])(\w*)/g,
117
- function(n, s, r) {
118
- return s.toUpperCase() + r;
119
- }
120
- ), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Jt = N("RegExp"), Qe = (e, t) => {
121
- const n = Object.getOwnPropertyDescriptors(e), s = {};
122
- v(n, (r, a) => {
123
- let o;
124
- (o = t(r, a, e)) !== !1 && (s[a] = o || r);
125
- }), Object.defineProperties(e, s);
126
- }, Wt = (e) => {
127
- Qe(e, (t, n) => {
128
- if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
129
- return !1;
130
- const s = e[n];
131
- if (T(s)) {
132
- if (t.enumerable = !1, "writable" in t) {
133
- t.writable = !1;
134
- return;
135
- }
136
- t.set || (t.set = () => {
137
- throw Error("Can not rewrite read-only method '" + n + "'");
138
- });
139
- }
140
- });
141
- }, Vt = (e, t) => {
142
- const n = {}, s = (r) => {
143
- r.forEach((a) => {
144
- n[a] = !0;
145
- });
146
- };
147
- return M(e) ? s(e) : s(String(e).split(t)), n;
148
- }, Kt = () => {
149
- }, vt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
150
- function Xt(e) {
151
- return !!(e && T(e.append) && e[Ve] === "FormData" && e[re]);
152
- }
153
- const Gt = (e) => {
154
- const t = new Array(10), n = (s, r) => {
155
- if (K(s)) {
156
- if (t.indexOf(s) >= 0)
157
- return;
158
- if (V(s))
159
- return s;
160
- if (!("toJSON" in s)) {
161
- t[r] = s;
162
- const a = M(s) ? [] : {};
163
- return v(s, (o, c) => {
164
- const p = n(o, r + 1);
165
- !H(p) && (a[c] = p);
166
- }), t[r] = void 0, a;
167
- }
168
- }
169
- return s;
170
- };
171
- return n(e, 0);
172
- }, Qt = N("AsyncFunction"), Zt = (e) => e && (K(e) || T(e)) && T(e.then) && T(e.catch), Ze = ((e, t) => e ? setImmediate : t ? ((n, s) => ($.addEventListener("message", ({ source: r, data: a }) => {
173
- r === $ && a === n && s.length && s.shift()();
174
- }, !1), (r) => {
175
- s.push(r), $.postMessage(n, "*");
176
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
177
- typeof setImmediate == "function",
178
- T($.postMessage)
179
- ), Yt = typeof queueMicrotask < "u" ? queueMicrotask.bind($) : typeof process < "u" && process.nextTick || Ze, en = (e) => e != null && T(e[re]), i = {
180
- isArray: M,
181
- isArrayBuffer: Ke,
182
- isBuffer: V,
183
- isFormData: Ct,
184
- isArrayBufferView: wt,
185
- isString: bt,
186
- isNumber: ve,
187
- isBoolean: gt,
188
- isObject: K,
189
- isPlainObject: ee,
190
- isEmptyObject: Et,
191
- isReadableStream: Pt,
192
- isRequest: Ft,
193
- isResponse: Nt,
194
- isHeaders: kt,
195
- isUndefined: H,
196
- isDate: Rt,
197
- isFile: St,
198
- isBlob: Ot,
199
- isRegExp: Jt,
200
- isFunction: T,
201
- isStream: Tt,
202
- isURLSearchParams: xt,
203
- isTypedArray: qt,
204
- isFileList: At,
205
- forEach: v,
206
- merge: he,
207
- extend: _t,
208
- trim: Ut,
209
- stripBOM: Bt,
210
- inherits: Dt,
211
- toFlatObject: Lt,
212
- kindOf: oe,
213
- kindOfTest: N,
214
- endsWith: $t,
215
- toArray: jt,
216
- forEachEntry: It,
217
- matchAll: Ht,
218
- isHTMLForm: Mt,
219
- hasOwnProperty: Pe,
220
- hasOwnProp: Pe,
221
- // an alias to avoid ESLint no-prototype-builtins detection
222
- reduceDescriptors: Qe,
223
- freezeMethods: Wt,
224
- toObjectSet: Vt,
225
- toCamelCase: zt,
226
- noop: Kt,
227
- toFiniteNumber: vt,
228
- findKey: Xe,
229
- global: $,
230
- isContextDefined: Ge,
231
- isSpecCompliantForm: Xt,
232
- toJSONObject: Gt,
233
- isAsyncFn: Qt,
234
- isThenable: Zt,
235
- setImmediate: Ze,
236
- asap: Yt,
237
- isIterable: en
238
- };
239
- function w(e, t, n, s, r) {
240
- 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), s && (this.request = s), r && (this.response = r, this.status = r.status ? r.status : null);
241
- }
242
- i.inherits(w, Error, {
243
- toJSON: function() {
244
- return {
245
- // Standard
246
- message: this.message,
247
- name: this.name,
248
- // Microsoft
249
- description: this.description,
250
- number: this.number,
251
- // Mozilla
252
- fileName: this.fileName,
253
- lineNumber: this.lineNumber,
254
- columnNumber: this.columnNumber,
255
- stack: this.stack,
256
- // Axios
257
- config: i.toJSONObject(this.config),
258
- code: this.code,
259
- status: this.status
260
- };
261
- }
262
- });
263
- const Ye = w.prototype, et = {};
264
- [
265
- "ERR_BAD_OPTION_VALUE",
266
- "ERR_BAD_OPTION",
267
- "ECONNABORTED",
268
- "ETIMEDOUT",
269
- "ERR_NETWORK",
270
- "ERR_FR_TOO_MANY_REDIRECTS",
271
- "ERR_DEPRECATED",
272
- "ERR_BAD_RESPONSE",
273
- "ERR_BAD_REQUEST",
274
- "ERR_CANCELED",
275
- "ERR_NOT_SUPPORT",
276
- "ERR_INVALID_URL"
277
- // eslint-disable-next-line func-names
278
- ].forEach((e) => {
279
- et[e] = { value: e };
280
- });
281
- Object.defineProperties(w, et);
282
- Object.defineProperty(Ye, "isAxiosError", { value: !0 });
283
- w.from = (e, t, n, s, r, a) => {
284
- const o = Object.create(Ye);
285
- i.toFlatObject(e, o, function(u) {
286
- return u !== Error.prototype;
287
- }, (l) => l !== "isAxiosError");
288
- const c = e && e.message ? e.message : "Error", p = t == null && e ? e.code : t;
289
- return w.call(o, c, p, n, s, r), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", a && Object.assign(o, a), o;
290
- };
291
- const tn = null;
292
- function me(e) {
293
- return i.isPlainObject(e) || i.isArray(e);
294
- }
295
- function tt(e) {
296
- return i.endsWith(e, "[]") ? e.slice(0, -2) : e;
297
- }
298
- function Fe(e, t, n) {
299
- return e ? e.concat(t).map(function(r, a) {
300
- return r = tt(r), !n && a ? "[" + r + "]" : r;
301
- }).join(n ? "." : "") : t;
302
- }
303
- function nn(e) {
304
- return i.isArray(e) && !e.some(me);
305
- }
306
- const sn = i.toFlatObject(i, {}, null, function(t) {
307
- return /^is[A-Z]/.test(t);
308
- });
309
- function ie(e, t, n) {
310
- if (!i.isObject(e))
311
- throw new TypeError("target must be an object");
312
- t = t || new FormData(), n = i.toFlatObject(n, {
313
- metaTokens: !0,
314
- dots: !1,
315
- indexes: !1
316
- }, !1, function(y, m) {
317
- return !i.isUndefined(m[y]);
318
- });
319
- const s = n.metaTokens, r = n.visitor || u, a = n.dots, o = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && i.isSpecCompliantForm(t);
320
- if (!i.isFunction(r))
321
- throw new TypeError("visitor must be a function");
322
- function l(d) {
323
- if (d === null) return "";
324
- if (i.isDate(d))
325
- return d.toISOString();
326
- if (i.isBoolean(d))
327
- return d.toString();
328
- if (!p && i.isBlob(d))
329
- throw new w("Blob is not supported. Use a Buffer instead.");
330
- return i.isArrayBuffer(d) || i.isTypedArray(d) ? p && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
331
- }
332
- function u(d, y, m) {
333
- let E = d;
334
- if (d && !m && typeof d == "object") {
335
- if (i.endsWith(y, "{}"))
336
- y = s ? y : y.slice(0, -2), d = JSON.stringify(d);
337
- else if (i.isArray(d) && nn(d) || (i.isFileList(d) || i.endsWith(y, "[]")) && (E = i.toArray(d)))
338
- return y = tt(y), E.forEach(function(R, A) {
339
- !(i.isUndefined(R) || R === null) && t.append(
340
- // eslint-disable-next-line no-nested-ternary
341
- o === !0 ? Fe([y], A, a) : o === null ? y : y + "[]",
342
- l(R)
343
- );
344
- }), !1;
345
- }
346
- return me(d) ? !0 : (t.append(Fe(m, y, a), l(d)), !1);
347
- }
348
- const h = [], b = Object.assign(sn, {
349
- defaultVisitor: u,
350
- convertValue: l,
351
- isVisitable: me
352
- });
353
- function S(d, y) {
354
- if (!i.isUndefined(d)) {
355
- if (h.indexOf(d) !== -1)
356
- throw Error("Circular reference detected in " + y.join("."));
357
- h.push(d), i.forEach(d, function(E, x) {
358
- (!(i.isUndefined(E) || E === null) && r.call(
359
- t,
360
- E,
361
- i.isString(x) ? x.trim() : x,
362
- y,
363
- b
364
- )) === !0 && S(E, y ? y.concat(x) : [x]);
365
- }), h.pop();
366
- }
367
- }
368
- if (!i.isObject(e))
369
- throw new TypeError("data must be an object");
370
- return S(e), t;
371
- }
372
- function Ne(e) {
373
- const t = {
374
- "!": "%21",
375
- "'": "%27",
376
- "(": "%28",
377
- ")": "%29",
378
- "~": "%7E",
379
- "%20": "+",
380
- "%00": "\0"
381
- };
382
- return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(s) {
383
- return t[s];
384
- });
385
- }
386
- function ge(e, t) {
387
- this._pairs = [], e && ie(e, this, t);
388
- }
389
- const nt = ge.prototype;
390
- nt.append = function(t, n) {
391
- this._pairs.push([t, n]);
392
- };
393
- nt.toString = function(t) {
394
- const n = t ? function(s) {
395
- return t.call(this, s, Ne);
396
- } : Ne;
397
- return this._pairs.map(function(r) {
398
- return n(r[0]) + "=" + n(r[1]);
399
- }, "").join("&");
400
- };
401
- function rn(e) {
402
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
403
- }
404
- function st(e, t, n) {
405
- if (!t)
406
- return e;
407
- const s = n && n.encode || rn;
408
- i.isFunction(n) && (n = {
409
- serialize: n
410
- });
411
- const r = n && n.serialize;
412
- let a;
413
- if (r ? a = r(t, n) : a = i.isURLSearchParams(t) ? t.toString() : new ge(t, n).toString(s), a) {
414
- const o = e.indexOf("#");
415
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
416
- }
417
- return e;
418
- }
419
- class ke {
420
- constructor() {
421
- this.handlers = [];
422
- }
423
- /**
424
- * Add a new interceptor to the stack
425
- *
426
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
427
- * @param {Function} rejected The function to handle `reject` for a `Promise`
428
- *
429
- * @return {Number} An ID used to remove interceptor later
430
- */
431
- use(t, n, s) {
432
- return this.handlers.push({
433
- fulfilled: t,
434
- rejected: n,
435
- synchronous: s ? s.synchronous : !1,
436
- runWhen: s ? s.runWhen : null
437
- }), this.handlers.length - 1;
438
- }
439
- /**
440
- * Remove an interceptor from the stack
441
- *
442
- * @param {Number} id The ID that was returned by `use`
443
- *
444
- * @returns {void}
445
- */
446
- eject(t) {
447
- this.handlers[t] && (this.handlers[t] = null);
448
- }
449
- /**
450
- * Clear all interceptors from the stack
451
- *
452
- * @returns {void}
453
- */
454
- clear() {
455
- this.handlers && (this.handlers = []);
456
- }
457
- /**
458
- * Iterate over all the registered interceptors
459
- *
460
- * This method is particularly useful for skipping over any
461
- * interceptors that may have become `null` calling `eject`.
462
- *
463
- * @param {Function} fn The function to call for each interceptor
464
- *
465
- * @returns {void}
466
- */
467
- forEach(t) {
468
- i.forEach(this.handlers, function(s) {
469
- s !== null && t(s);
470
- });
471
- }
472
- }
473
- const rt = {
474
- silentJSONParsing: !0,
475
- forcedJSONParsing: !0,
476
- clarifyTimeoutError: !1
477
- }, on = typeof URLSearchParams < "u" ? URLSearchParams : ge, an = typeof FormData < "u" ? FormData : null, cn = typeof Blob < "u" ? Blob : null, un = {
478
- isBrowser: !0,
479
- classes: {
480
- URLSearchParams: on,
481
- FormData: an,
482
- Blob: cn
483
- },
484
- protocols: ["http", "https", "file", "blob", "url", "data"]
485
- }, Ee = typeof window < "u" && typeof document < "u", ye = typeof navigator == "object" && navigator || void 0, ln = Ee && (!ye || ["ReactNative", "NativeScript", "NS"].indexOf(ye.product) < 0), dn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
486
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", fn = Ee && window.location.href || "http://localhost", pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
487
- __proto__: null,
488
- hasBrowserEnv: Ee,
489
- hasStandardBrowserEnv: ln,
490
- hasStandardBrowserWebWorkerEnv: dn,
491
- navigator: ye,
492
- origin: fn
493
- }, Symbol.toStringTag, { value: "Module" })), O = {
494
- ...pn,
495
- ...un
496
- };
497
- function hn(e, t) {
498
- return ie(e, new O.classes.URLSearchParams(), {
499
- visitor: function(n, s, r, a) {
500
- return O.isNode && i.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
501
- },
502
- ...t
503
- });
504
- }
505
- function mn(e) {
506
- return i.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
507
- }
508
- function yn(e) {
509
- const t = {}, n = Object.keys(e);
510
- let s;
511
- const r = n.length;
512
- let a;
513
- for (s = 0; s < r; s++)
514
- a = n[s], t[a] = e[a];
515
- return t;
516
- }
517
- function ot(e) {
518
- function t(n, s, r, a) {
519
- let o = n[a++];
520
- if (o === "__proto__") return !0;
521
- const c = Number.isFinite(+o), p = a >= n.length;
522
- return o = !o && i.isArray(r) ? r.length : o, p ? (i.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !c) : ((!r[o] || !i.isObject(r[o])) && (r[o] = []), t(n, s, r[o], a) && i.isArray(r[o]) && (r[o] = yn(r[o])), !c);
523
- }
524
- if (i.isFormData(e) && i.isFunction(e.entries)) {
525
- const n = {};
526
- return i.forEachEntry(e, (s, r) => {
527
- t(mn(s), r, n, 0);
528
- }), n;
529
- }
530
- return null;
531
- }
532
- function wn(e, t, n) {
533
- if (i.isString(e))
534
- try {
535
- return (t || JSON.parse)(e), i.trim(e);
536
- } catch (s) {
537
- if (s.name !== "SyntaxError")
538
- throw s;
539
- }
540
- return (n || JSON.stringify)(e);
541
- }
542
- const X = {
543
- transitional: rt,
544
- adapter: ["xhr", "http", "fetch"],
545
- transformRequest: [function(t, n) {
546
- const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, a = i.isObject(t);
547
- if (a && i.isHTMLForm(t) && (t = new FormData(t)), i.isFormData(t))
548
- return r ? JSON.stringify(ot(t)) : t;
549
- if (i.isArrayBuffer(t) || i.isBuffer(t) || i.isStream(t) || i.isFile(t) || i.isBlob(t) || i.isReadableStream(t))
550
- return t;
551
- if (i.isArrayBufferView(t))
552
- return t.buffer;
553
- if (i.isURLSearchParams(t))
554
- return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
555
- let c;
556
- if (a) {
557
- if (s.indexOf("application/x-www-form-urlencoded") > -1)
558
- return hn(t, this.formSerializer).toString();
559
- if ((c = i.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
560
- const p = this.env && this.env.FormData;
561
- return ie(
562
- c ? { "files[]": t } : t,
563
- p && new p(),
564
- this.formSerializer
565
- );
566
- }
567
- }
568
- return a || r ? (n.setContentType("application/json", !1), wn(t)) : t;
569
- }],
570
- transformResponse: [function(t) {
571
- const n = this.transitional || X.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
572
- if (i.isResponse(t) || i.isReadableStream(t))
573
- return t;
574
- if (t && i.isString(t) && (s && !this.responseType || r)) {
575
- const o = !(n && n.silentJSONParsing) && r;
576
- try {
577
- return JSON.parse(t, this.parseReviver);
578
- } catch (c) {
579
- if (o)
580
- throw c.name === "SyntaxError" ? w.from(c, w.ERR_BAD_RESPONSE, this, null, this.response) : c;
581
- }
582
- }
583
- return t;
584
- }],
585
- /**
586
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
587
- * timeout is not created.
588
- */
589
- timeout: 0,
590
- xsrfCookieName: "XSRF-TOKEN",
591
- xsrfHeaderName: "X-XSRF-TOKEN",
592
- maxContentLength: -1,
593
- maxBodyLength: -1,
594
- env: {
595
- FormData: O.classes.FormData,
596
- Blob: O.classes.Blob
597
- },
598
- validateStatus: function(t) {
599
- return t >= 200 && t < 300;
600
- },
601
- headers: {
602
- common: {
603
- Accept: "application/json, text/plain, */*",
604
- "Content-Type": void 0
605
- }
606
- }
607
- };
608
- i.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
609
- X.headers[e] = {};
610
- });
611
- const bn = i.toObjectSet([
612
- "age",
613
- "authorization",
614
- "content-length",
615
- "content-type",
616
- "etag",
617
- "expires",
618
- "from",
619
- "host",
620
- "if-modified-since",
621
- "if-unmodified-since",
622
- "last-modified",
623
- "location",
624
- "max-forwards",
625
- "proxy-authorization",
626
- "referer",
627
- "retry-after",
628
- "user-agent"
629
- ]), gn = (e) => {
630
- const t = {};
631
- let n, s, r;
632
- return e && e.split(`
633
- `).forEach(function(o) {
634
- r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || t[n] && bn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
635
- }), t;
636
- }, Ue = Symbol("internals");
637
- function W(e) {
638
- return e && String(e).trim().toLowerCase();
639
- }
640
- function te(e) {
641
- return e === !1 || e == null ? e : i.isArray(e) ? e.map(te) : String(e);
642
- }
643
- function En(e) {
644
- const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
645
- let s;
646
- for (; s = n.exec(e); )
647
- t[s[1]] = s[2];
648
- return t;
649
- }
650
- const Rn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
651
- function de(e, t, n, s, r) {
652
- if (i.isFunction(s))
653
- return s.call(this, t, n);
654
- if (r && (t = n), !!i.isString(t)) {
655
- if (i.isString(s))
656
- return t.indexOf(s) !== -1;
657
- if (i.isRegExp(s))
658
- return s.test(t);
659
- }
660
- }
661
- function Sn(e) {
662
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
663
- }
664
- function On(e, t) {
665
- const n = i.toCamelCase(" " + t);
666
- ["get", "set", "has"].forEach((s) => {
667
- Object.defineProperty(e, s + n, {
668
- value: function(r, a, o) {
669
- return this[s].call(this, t, r, a, o);
670
- },
671
- configurable: !0
672
- });
673
- });
674
- }
675
- let C = class {
676
- constructor(t) {
677
- t && this.set(t);
678
- }
679
- set(t, n, s) {
680
- const r = this;
681
- function a(c, p, l) {
682
- const u = W(p);
683
- if (!u)
684
- throw new Error("header name must be a non-empty string");
685
- const h = i.findKey(r, u);
686
- (!h || r[h] === void 0 || l === !0 || l === void 0 && r[h] !== !1) && (r[h || p] = te(c));
687
- }
688
- const o = (c, p) => i.forEach(c, (l, u) => a(l, u, p));
689
- if (i.isPlainObject(t) || t instanceof this.constructor)
690
- o(t, n);
691
- else if (i.isString(t) && (t = t.trim()) && !Rn(t))
692
- o(gn(t), n);
693
- else if (i.isObject(t) && i.isIterable(t)) {
694
- let c = {}, p, l;
695
- for (const u of t) {
696
- if (!i.isArray(u))
697
- throw TypeError("Object iterator must return a key-value pair");
698
- c[l = u[0]] = (p = c[l]) ? i.isArray(p) ? [...p, u[1]] : [p, u[1]] : u[1];
699
- }
700
- o(c, n);
701
- } else
702
- t != null && a(n, t, s);
703
- return this;
704
- }
705
- get(t, n) {
706
- if (t = W(t), t) {
707
- const s = i.findKey(this, t);
708
- if (s) {
709
- const r = this[s];
710
- if (!n)
711
- return r;
712
- if (n === !0)
713
- return En(r);
714
- if (i.isFunction(n))
715
- return n.call(this, r, s);
716
- if (i.isRegExp(n))
717
- return n.exec(r);
718
- throw new TypeError("parser must be boolean|regexp|function");
719
- }
720
- }
721
- }
722
- has(t, n) {
723
- if (t = W(t), t) {
724
- const s = i.findKey(this, t);
725
- return !!(s && this[s] !== void 0 && (!n || de(this, this[s], s, n)));
726
- }
727
- return !1;
728
- }
729
- delete(t, n) {
730
- const s = this;
731
- let r = !1;
732
- function a(o) {
733
- if (o = W(o), o) {
734
- const c = i.findKey(s, o);
735
- c && (!n || de(s, s[c], c, n)) && (delete s[c], r = !0);
736
- }
737
- }
738
- return i.isArray(t) ? t.forEach(a) : a(t), r;
739
- }
740
- clear(t) {
741
- const n = Object.keys(this);
742
- let s = n.length, r = !1;
743
- for (; s--; ) {
744
- const a = n[s];
745
- (!t || de(this, this[a], a, t, !0)) && (delete this[a], r = !0);
746
- }
747
- return r;
748
- }
749
- normalize(t) {
750
- const n = this, s = {};
751
- return i.forEach(this, (r, a) => {
752
- const o = i.findKey(s, a);
753
- if (o) {
754
- n[o] = te(r), delete n[a];
755
- return;
756
- }
757
- const c = t ? Sn(a) : String(a).trim();
758
- c !== a && delete n[a], n[c] = te(r), s[c] = !0;
759
- }), this;
760
- }
761
- concat(...t) {
762
- return this.constructor.concat(this, ...t);
763
- }
764
- toJSON(t) {
765
- const n = /* @__PURE__ */ Object.create(null);
766
- return i.forEach(this, (s, r) => {
767
- s != null && s !== !1 && (n[r] = t && i.isArray(s) ? s.join(", ") : s);
768
- }), n;
769
- }
770
- [Symbol.iterator]() {
771
- return Object.entries(this.toJSON())[Symbol.iterator]();
772
- }
773
- toString() {
774
- return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
775
- `);
776
- }
777
- getSetCookie() {
778
- return this.get("set-cookie") || [];
779
- }
780
- get [Symbol.toStringTag]() {
781
- return "AxiosHeaders";
782
- }
783
- static from(t) {
784
- return t instanceof this ? t : new this(t);
785
- }
786
- static concat(t, ...n) {
787
- const s = new this(t);
788
- return n.forEach((r) => s.set(r)), s;
789
- }
790
- static accessor(t) {
791
- const s = (this[Ue] = this[Ue] = {
792
- accessors: {}
793
- }).accessors, r = this.prototype;
794
- function a(o) {
795
- const c = W(o);
796
- s[c] || (On(r, o), s[c] = !0);
797
- }
798
- return i.isArray(t) ? t.forEach(a) : a(t), this;
799
- }
800
- };
801
- C.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
802
- i.reduceDescriptors(C.prototype, ({ value: e }, t) => {
803
- let n = t[0].toUpperCase() + t.slice(1);
804
- return {
805
- get: () => e,
806
- set(s) {
807
- this[n] = s;
808
- }
809
- };
810
- });
811
- i.freezeMethods(C);
812
- function fe(e, t) {
813
- const n = this || X, s = t || n, r = C.from(s.headers);
814
- let a = s.data;
815
- return i.forEach(e, function(c) {
816
- a = c.call(n, a, r.normalize(), t ? t.status : void 0);
817
- }), r.normalize(), a;
818
- }
819
- function at(e) {
820
- return !!(e && e.__CANCEL__);
821
- }
822
- function z(e, t, n) {
823
- w.call(this, e ?? "canceled", w.ERR_CANCELED, t, n), this.name = "CanceledError";
824
- }
825
- i.inherits(z, w, {
826
- __CANCEL__: !0
827
- });
828
- function it(e, t, n) {
829
- const s = n.config.validateStatus;
830
- !n.status || !s || s(n.status) ? e(n) : t(new w(
831
- "Request failed with status code " + n.status,
832
- [w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
833
- n.config,
834
- n.request,
835
- n
836
- ));
837
- }
838
- function An(e) {
839
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
840
- return t && t[1] || "";
841
- }
842
- function Tn(e, t) {
843
- e = e || 10;
844
- const n = new Array(e), s = new Array(e);
845
- let r = 0, a = 0, o;
846
- return t = t !== void 0 ? t : 1e3, function(p) {
847
- const l = Date.now(), u = s[a];
848
- o || (o = l), n[r] = p, s[r] = l;
849
- let h = a, b = 0;
850
- for (; h !== r; )
851
- b += n[h++], h = h % e;
852
- if (r = (r + 1) % e, r === a && (a = (a + 1) % e), l - o < t)
853
- return;
854
- const S = u && l - u;
855
- return S ? Math.round(b * 1e3 / S) : void 0;
856
- };
857
- }
858
- function Cn(e, t) {
859
- let n = 0, s = 1e3 / t, r, a;
860
- const o = (l, u = Date.now()) => {
861
- n = u, r = null, a && (clearTimeout(a), a = null), e(...l);
862
- };
863
- return [(...l) => {
864
- const u = Date.now(), h = u - n;
865
- h >= s ? o(l, u) : (r = l, a || (a = setTimeout(() => {
866
- a = null, o(r);
867
- }, s - h)));
868
- }, () => r && o(r)];
869
- }
870
- const se = (e, t, n = 3) => {
871
- let s = 0;
872
- const r = Tn(50, 250);
873
- return Cn((a) => {
874
- const o = a.loaded, c = a.lengthComputable ? a.total : void 0, p = o - s, l = r(p), u = o <= c;
875
- s = o;
876
- const h = {
877
- loaded: o,
878
- total: c,
879
- progress: c ? o / c : void 0,
880
- bytes: p,
881
- rate: l || void 0,
882
- estimated: l && c && u ? (c - o) / l : void 0,
883
- event: a,
884
- lengthComputable: c != null,
885
- [t ? "download" : "upload"]: !0
886
- };
887
- e(h);
888
- }, n);
889
- }, _e = (e, t) => {
890
- const n = e != null;
891
- return [(s) => t[0]({
892
- lengthComputable: n,
893
- total: e,
894
- loaded: s
895
- }), t[1]];
896
- }, Be = (e) => (...t) => i.asap(() => e(...t)), xn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
897
- new URL(O.origin),
898
- O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
899
- ) : () => !0, Pn = O.hasStandardBrowserEnv ? (
900
- // Standard browser envs support document.cookie
901
- {
902
- write(e, t, n, s, r, a, o) {
903
- if (typeof document > "u") return;
904
- const c = [`${e}=${encodeURIComponent(t)}`];
905
- i.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), i.isString(s) && c.push(`path=${s}`), i.isString(r) && c.push(`domain=${r}`), a === !0 && c.push("secure"), i.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
906
- },
907
- read(e) {
908
- if (typeof document > "u") return null;
909
- const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
910
- return t ? decodeURIComponent(t[1]) : null;
911
- },
912
- remove(e) {
913
- this.write(e, "", Date.now() - 864e5, "/");
914
- }
915
- }
916
- ) : (
917
- // Non-standard browser env (web workers, react-native) lack needed support.
918
- {
919
- write() {
920
- },
921
- read() {
922
- return null;
923
- },
924
- remove() {
925
- }
926
- }
927
- );
928
- function Fn(e) {
929
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
930
- }
931
- function Nn(e, t) {
932
- return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
933
- }
934
- function ct(e, t, n) {
935
- let s = !Fn(t);
936
- return e && (s || n == !1) ? Nn(e, t) : t;
937
- }
938
- const De = (e) => e instanceof C ? { ...e } : e;
939
- function q(e, t) {
940
- t = t || {};
941
- const n = {};
942
- function s(l, u, h, b) {
943
- return i.isPlainObject(l) && i.isPlainObject(u) ? i.merge.call({ caseless: b }, l, u) : i.isPlainObject(u) ? i.merge({}, u) : i.isArray(u) ? u.slice() : u;
944
- }
945
- function r(l, u, h, b) {
946
- if (i.isUndefined(u)) {
947
- if (!i.isUndefined(l))
948
- return s(void 0, l, h, b);
949
- } else return s(l, u, h, b);
950
- }
951
- function a(l, u) {
952
- if (!i.isUndefined(u))
953
- return s(void 0, u);
954
- }
955
- function o(l, u) {
956
- if (i.isUndefined(u)) {
957
- if (!i.isUndefined(l))
958
- return s(void 0, l);
959
- } else return s(void 0, u);
960
- }
961
- function c(l, u, h) {
962
- if (h in t)
963
- return s(l, u);
964
- if (h in e)
965
- return s(void 0, l);
966
- }
967
- const p = {
968
- url: a,
969
- method: a,
970
- data: a,
971
- baseURL: o,
972
- transformRequest: o,
973
- transformResponse: o,
974
- paramsSerializer: o,
975
- timeout: o,
976
- timeoutMessage: o,
977
- withCredentials: o,
978
- withXSRFToken: o,
979
- adapter: o,
980
- responseType: o,
981
- xsrfCookieName: o,
982
- xsrfHeaderName: o,
983
- onUploadProgress: o,
984
- onDownloadProgress: o,
985
- decompress: o,
986
- maxContentLength: o,
987
- maxBodyLength: o,
988
- beforeRedirect: o,
989
- transport: o,
990
- httpAgent: o,
991
- httpsAgent: o,
992
- cancelToken: o,
993
- socketPath: o,
994
- responseEncoding: o,
995
- validateStatus: c,
996
- headers: (l, u, h) => r(De(l), De(u), h, !0)
997
- };
998
- return i.forEach(Object.keys({ ...e, ...t }), function(u) {
999
- const h = p[u] || r, b = h(e[u], t[u], u);
1000
- i.isUndefined(b) && h !== c || (n[u] = b);
1001
- }), n;
1002
- }
1003
- const ut = (e) => {
1004
- const t = q({}, e);
1005
- let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: a, headers: o, auth: c } = t;
1006
- if (t.headers = o = C.from(o), t.url = st(ct(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1007
- "Authorization",
1008
- "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1009
- ), i.isFormData(n)) {
1010
- if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
1011
- o.setContentType(void 0);
1012
- else if (i.isFunction(n.getHeaders)) {
1013
- const p = n.getHeaders(), l = ["content-type", "content-length"];
1014
- Object.entries(p).forEach(([u, h]) => {
1015
- l.includes(u.toLowerCase()) && o.set(u, h);
1016
- });
1017
- }
1018
- }
1019
- if (O.hasStandardBrowserEnv && (s && i.isFunction(s) && (s = s(t)), s || s !== !1 && xn(t.url))) {
1020
- const p = r && a && Pn.read(a);
1021
- p && o.set(r, p);
1022
- }
1023
- return t;
1024
- }, kn = typeof XMLHttpRequest < "u", Un = kn && function(e) {
1025
- return new Promise(function(n, s) {
1026
- const r = ut(e);
1027
- let a = r.data;
1028
- const o = C.from(r.headers).normalize();
1029
- let { responseType: c, onUploadProgress: p, onDownloadProgress: l } = r, u, h, b, S, d;
1030
- function y() {
1031
- S && S(), d && d(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
1032
- }
1033
- let m = new XMLHttpRequest();
1034
- m.open(r.method.toUpperCase(), r.url, !0), m.timeout = r.timeout;
1035
- function E() {
1036
- if (!m)
1037
- return;
1038
- const R = C.from(
1039
- "getAllResponseHeaders" in m && m.getAllResponseHeaders()
1040
- ), F = {
1041
- data: !c || c === "text" || c === "json" ? m.responseText : m.response,
1042
- status: m.status,
1043
- statusText: m.statusText,
1044
- headers: R,
1045
- config: e,
1046
- request: m
1047
- };
1048
- it(function(P) {
1049
- n(P), y();
1050
- }, function(P) {
1051
- s(P), y();
1052
- }, F), m = null;
1053
- }
1054
- "onloadend" in m ? m.onloadend = E : m.onreadystatechange = function() {
1055
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(E);
1056
- }, m.onabort = function() {
1057
- m && (s(new w("Request aborted", w.ECONNABORTED, e, m)), m = null);
1058
- }, m.onerror = function(A) {
1059
- const F = A && A.message ? A.message : "Network Error", D = new w(F, w.ERR_NETWORK, e, m);
1060
- D.event = A || null, s(D), m = null;
1061
- }, m.ontimeout = function() {
1062
- let A = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
1063
- const F = r.transitional || rt;
1064
- r.timeoutErrorMessage && (A = r.timeoutErrorMessage), s(new w(
1065
- A,
1066
- F.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
1067
- e,
1068
- m
1069
- )), m = null;
1070
- }, a === void 0 && o.setContentType(null), "setRequestHeader" in m && i.forEach(o.toJSON(), function(A, F) {
1071
- m.setRequestHeader(F, A);
1072
- }), i.isUndefined(r.withCredentials) || (m.withCredentials = !!r.withCredentials), c && c !== "json" && (m.responseType = r.responseType), l && ([b, d] = se(l, !0), m.addEventListener("progress", b)), p && m.upload && ([h, S] = se(p), m.upload.addEventListener("progress", h), m.upload.addEventListener("loadend", S)), (r.cancelToken || r.signal) && (u = (R) => {
1073
- m && (s(!R || R.type ? new z(null, e, m) : R), m.abort(), m = null);
1074
- }, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
1075
- const x = An(r.url);
1076
- if (x && O.protocols.indexOf(x) === -1) {
1077
- s(new w("Unsupported protocol " + x + ":", w.ERR_BAD_REQUEST, e));
1078
- return;
1079
- }
1080
- m.send(a || null);
1081
- });
1082
- }, _n = (e, t) => {
1083
- const { length: n } = e = e ? e.filter(Boolean) : [];
1084
- if (t || n) {
1085
- let s = new AbortController(), r;
1086
- const a = function(l) {
1087
- if (!r) {
1088
- r = !0, c();
1089
- const u = l instanceof Error ? l : this.reason;
1090
- s.abort(u instanceof w ? u : new z(u instanceof Error ? u.message : u));
1091
- }
1092
- };
1093
- let o = t && setTimeout(() => {
1094
- o = null, a(new w(`timeout ${t} of ms exceeded`, w.ETIMEDOUT));
1095
- }, t);
1096
- const c = () => {
1097
- e && (o && clearTimeout(o), o = null, e.forEach((l) => {
1098
- l.unsubscribe ? l.unsubscribe(a) : l.removeEventListener("abort", a);
1099
- }), e = null);
1100
- };
1101
- e.forEach((l) => l.addEventListener("abort", a));
1102
- const { signal: p } = s;
1103
- return p.unsubscribe = () => i.asap(c), p;
1104
- }
1105
- }, Bn = function* (e, t) {
1106
- let n = e.byteLength;
1107
- if (n < t) {
1108
- yield e;
1109
- return;
1110
- }
1111
- let s = 0, r;
1112
- for (; s < n; )
1113
- r = s + t, yield e.slice(s, r), s = r;
1114
- }, Dn = async function* (e, t) {
1115
- for await (const n of Ln(e))
1116
- yield* Bn(n, t);
1117
- }, Ln = async function* (e) {
1118
- if (e[Symbol.asyncIterator]) {
1119
- yield* e;
1120
- return;
1121
- }
1122
- const t = e.getReader();
1123
- try {
1124
- for (; ; ) {
1125
- const { done: n, value: s } = await t.read();
1126
- if (n)
1127
- break;
1128
- yield s;
1129
- }
1130
- } finally {
1131
- await t.cancel();
1132
- }
1133
- }, Le = (e, t, n, s) => {
1134
- const r = Dn(e, t);
1135
- let a = 0, o, c = (p) => {
1136
- o || (o = !0, s && s(p));
1137
- };
1138
- return new ReadableStream({
1139
- async pull(p) {
1140
- try {
1141
- const { done: l, value: u } = await r.next();
1142
- if (l) {
1143
- c(), p.close();
1144
- return;
1145
- }
1146
- let h = u.byteLength;
1147
- if (n) {
1148
- let b = a += h;
1149
- n(b);
1150
- }
1151
- p.enqueue(new Uint8Array(u));
1152
- } catch (l) {
1153
- throw c(l), l;
1154
- }
1155
- },
1156
- cancel(p) {
1157
- return c(p), r.return();
1158
- }
1159
- }, {
1160
- highWaterMark: 2
1161
- });
1162
- }, $e = 64 * 1024, { isFunction: Y } = i, $n = (({ Request: e, Response: t }) => ({
1163
- Request: e,
1164
- Response: t
1165
- }))(i.global), {
1166
- ReadableStream: je,
1167
- TextEncoder: qe
1168
- } = i.global, Ie = (e, ...t) => {
1169
- try {
1170
- return !!e(...t);
1171
- } catch {
1172
- return !1;
1173
- }
1174
- }, jn = (e) => {
1175
- e = i.merge.call({
1176
- skipUndefined: !0
1177
- }, $n, e);
1178
- const { fetch: t, Request: n, Response: s } = e, r = t ? Y(t) : typeof fetch == "function", a = Y(n), o = Y(s);
1179
- if (!r)
1180
- return !1;
1181
- const c = r && Y(je), p = r && (typeof qe == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new qe()) : async (d) => new Uint8Array(await new n(d).arrayBuffer())), l = a && c && Ie(() => {
1182
- let d = !1;
1183
- const y = new n(O.origin, {
1184
- body: new je(),
1185
- method: "POST",
1186
- get duplex() {
1187
- return d = !0, "half";
1188
- }
1189
- }).headers.has("Content-Type");
1190
- return d && !y;
1191
- }), u = o && c && Ie(() => i.isReadableStream(new s("").body)), h = {
1192
- stream: u && ((d) => d.body)
1193
- };
1194
- r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
1195
- !h[d] && (h[d] = (y, m) => {
1196
- let E = y && y[d];
1197
- if (E)
1198
- return E.call(y);
1199
- throw new w(`Response type '${d}' is not supported`, w.ERR_NOT_SUPPORT, m);
1200
- });
1201
- });
1202
- const b = async (d) => {
1203
- if (d == null)
1204
- return 0;
1205
- if (i.isBlob(d))
1206
- return d.size;
1207
- if (i.isSpecCompliantForm(d))
1208
- return (await new n(O.origin, {
1209
- method: "POST",
1210
- body: d
1211
- }).arrayBuffer()).byteLength;
1212
- if (i.isArrayBufferView(d) || i.isArrayBuffer(d))
1213
- return d.byteLength;
1214
- if (i.isURLSearchParams(d) && (d = d + ""), i.isString(d))
1215
- return (await p(d)).byteLength;
1216
- }, S = async (d, y) => {
1217
- const m = i.toFiniteNumber(d.getContentLength());
1218
- return m ?? b(y);
1219
- };
1220
- return async (d) => {
1221
- let {
1222
- url: y,
1223
- method: m,
1224
- data: E,
1225
- signal: x,
1226
- cancelToken: R,
1227
- timeout: A,
1228
- onDownloadProgress: F,
1229
- onUploadProgress: D,
1230
- responseType: P,
1231
- headers: ue,
1232
- withCredentials: G = "same-origin",
1233
- fetchOptions: Se
1234
- } = ut(d), Oe = t || fetch;
1235
- P = P ? (P + "").toLowerCase() : "text";
1236
- let Q = _n([x, R && R.toAbortSignal()], A), J = null;
1237
- const L = Q && Q.unsubscribe && (() => {
1238
- Q.unsubscribe();
1239
- });
1240
- let Ae;
1241
- try {
1242
- if (D && l && m !== "get" && m !== "head" && (Ae = await S(ue, E)) !== 0) {
1243
- let B = new n(y, {
1244
- method: "POST",
1245
- body: E,
1246
- duplex: "half"
1247
- }), I;
1248
- if (i.isFormData(E) && (I = B.headers.get("content-type")) && ue.setContentType(I), B.body) {
1249
- const [le, Z] = _e(
1250
- Ae,
1251
- se(Be(D))
1252
- );
1253
- E = Le(B.body, $e, le, Z);
1254
- }
1255
- }
1256
- i.isString(G) || (G = G ? "include" : "omit");
1257
- const k = a && "credentials" in n.prototype, Te = {
1258
- ...Se,
1259
- signal: Q,
1260
- method: m.toUpperCase(),
1261
- headers: ue.normalize().toJSON(),
1262
- body: E,
1263
- duplex: "half",
1264
- credentials: k ? G : void 0
1265
- };
1266
- J = a && new n(y, Te);
1267
- let _ = await (a ? Oe(J, Se) : Oe(y, Te));
1268
- const Ce = u && (P === "stream" || P === "response");
1269
- if (u && (F || Ce && L)) {
1270
- const B = {};
1271
- ["status", "statusText", "headers"].forEach((xe) => {
1272
- B[xe] = _[xe];
1273
- });
1274
- const I = i.toFiniteNumber(_.headers.get("content-length")), [le, Z] = F && _e(
1275
- I,
1276
- se(Be(F), !0)
1277
- ) || [];
1278
- _ = new s(
1279
- Le(_.body, $e, le, () => {
1280
- Z && Z(), L && L();
1281
- }),
1282
- B
1283
- );
1284
- }
1285
- P = P || "text";
1286
- let mt = await h[i.findKey(h, P) || "text"](_, d);
1287
- return !Ce && L && L(), await new Promise((B, I) => {
1288
- it(B, I, {
1289
- data: mt,
1290
- headers: C.from(_.headers),
1291
- status: _.status,
1292
- statusText: _.statusText,
1293
- config: d,
1294
- request: J
1295
- });
1296
- });
1297
- } catch (k) {
1298
- throw L && L(), k && k.name === "TypeError" && /Load failed|fetch/i.test(k.message) ? Object.assign(
1299
- new w("Network Error", w.ERR_NETWORK, d, J),
1300
- {
1301
- cause: k.cause || k
1302
- }
1303
- ) : w.from(k, k && k.code, d, J);
1304
- }
1305
- };
1306
- }, qn = /* @__PURE__ */ new Map(), lt = (e) => {
1307
- let t = e && e.env || {};
1308
- const { fetch: n, Request: s, Response: r } = t, a = [
1309
- s,
1310
- r,
1311
- n
1312
- ];
1313
- let o = a.length, c = o, p, l, u = qn;
1314
- for (; c--; )
1315
- p = a[c], l = u.get(p), l === void 0 && u.set(p, l = c ? /* @__PURE__ */ new Map() : jn(t)), u = l;
1316
- return l;
1317
- };
1318
- lt();
1319
- const Re = {
1320
- http: tn,
1321
- xhr: Un,
1322
- fetch: {
1323
- get: lt
1324
- }
1325
- };
1326
- i.forEach(Re, (e, t) => {
1327
- if (e) {
1328
- try {
1329
- Object.defineProperty(e, "name", { value: t });
1330
- } catch {
1331
- }
1332
- Object.defineProperty(e, "adapterName", { value: t });
1333
- }
1334
- });
1335
- const He = (e) => `- ${e}`, In = (e) => i.isFunction(e) || e === null || e === !1;
1336
- function Hn(e, t) {
1337
- e = i.isArray(e) ? e : [e];
1338
- const { length: n } = e;
1339
- let s, r;
1340
- const a = {};
1341
- for (let o = 0; o < n; o++) {
1342
- s = e[o];
1343
- let c;
1344
- if (r = s, !In(s) && (r = Re[(c = String(s)).toLowerCase()], r === void 0))
1345
- throw new w(`Unknown adapter '${c}'`);
1346
- if (r && (i.isFunction(r) || (r = r.get(t))))
1347
- break;
1348
- a[c || "#" + o] = r;
1349
- }
1350
- if (!r) {
1351
- const o = Object.entries(a).map(
1352
- ([p, l]) => `adapter ${p} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1353
- );
1354
- let c = n ? o.length > 1 ? `since :
1355
- ` + o.map(He).join(`
1356
- `) : " " + He(o[0]) : "as no adapter specified";
1357
- throw new w(
1358
- "There is no suitable adapter to dispatch the request " + c,
1359
- "ERR_NOT_SUPPORT"
1360
- );
1361
- }
1362
- return r;
1363
- }
1364
- const dt = {
1365
- /**
1366
- * Resolve an adapter from a list of adapter names or functions.
1367
- * @type {Function}
1368
- */
1369
- getAdapter: Hn,
1370
- /**
1371
- * Exposes all known adapters
1372
- * @type {Object<string, Function|Object>}
1373
- */
1374
- adapters: Re
1375
- };
1376
- function pe(e) {
1377
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1378
- throw new z(null, e);
1379
- }
1380
- function Me(e) {
1381
- return pe(e), e.headers = C.from(e.headers), e.data = fe.call(
1382
- e,
1383
- e.transformRequest
1384
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), dt.getAdapter(e.adapter || X.adapter, e)(e).then(function(s) {
1385
- return pe(e), s.data = fe.call(
1386
- e,
1387
- e.transformResponse,
1388
- s
1389
- ), s.headers = C.from(s.headers), s;
1390
- }, function(s) {
1391
- return at(s) || (pe(e), s && s.response && (s.response.data = fe.call(
1392
- e,
1393
- e.transformResponse,
1394
- s.response
1395
- ), s.response.headers = C.from(s.response.headers))), Promise.reject(s);
1396
- });
1397
- }
1398
- const ft = "1.13.2", ce = {};
1399
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1400
- ce[e] = function(s) {
1401
- return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
1402
- };
1403
- });
1404
- const ze = {};
1405
- ce.transitional = function(t, n, s) {
1406
- function r(a, o) {
1407
- return "[Axios v" + ft + "] Transitional option '" + a + "'" + o + (s ? ". " + s : "");
1408
- }
1409
- return (a, o, c) => {
1410
- if (t === !1)
1411
- throw new w(
1412
- r(o, " has been removed" + (n ? " in " + n : "")),
1413
- w.ERR_DEPRECATED
1414
- );
1415
- return n && !ze[o] && (ze[o] = !0, console.warn(
1416
- r(
1417
- o,
1418
- " has been deprecated since v" + n + " and will be removed in the near future"
1419
- )
1420
- )), t ? t(a, o, c) : !0;
1421
- };
1422
- };
1423
- ce.spelling = function(t) {
1424
- return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
1425
- };
1426
- function Mn(e, t, n) {
1427
- if (typeof e != "object")
1428
- throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
1429
- const s = Object.keys(e);
1430
- let r = s.length;
1431
- for (; r-- > 0; ) {
1432
- const a = s[r], o = t[a];
1433
- if (o) {
1434
- const c = e[a], p = c === void 0 || o(c, a, e);
1435
- if (p !== !0)
1436
- throw new w("option " + a + " must be " + p, w.ERR_BAD_OPTION_VALUE);
1437
- continue;
1438
- }
1439
- if (n !== !0)
1440
- throw new w("Unknown option " + a, w.ERR_BAD_OPTION);
1441
- }
1442
- }
1443
- const ne = {
1444
- assertOptions: Mn,
1445
- validators: ce
1446
- }, U = ne.validators;
1447
- let j = class {
1448
- constructor(t) {
1449
- this.defaults = t || {}, this.interceptors = {
1450
- request: new ke(),
1451
- response: new ke()
1452
- };
1453
- }
1454
- /**
1455
- * Dispatch a request
1456
- *
1457
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1458
- * @param {?Object} config
1459
- *
1460
- * @returns {Promise} The Promise to be fulfilled
1461
- */
1462
- async request(t, n) {
1463
- try {
1464
- return await this._request(t, n);
1465
- } catch (s) {
1466
- if (s instanceof Error) {
1467
- let r = {};
1468
- Error.captureStackTrace ? Error.captureStackTrace(r) : r = new Error();
1469
- const a = r.stack ? r.stack.replace(/^.+\n/, "") : "";
1470
- try {
1471
- s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
1472
- ` + a) : s.stack = a;
1473
- } catch {
1474
- }
1475
- }
1476
- throw s;
1477
- }
1478
- }
1479
- _request(t, n) {
1480
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = q(this.defaults, n);
1481
- const { transitional: s, paramsSerializer: r, headers: a } = n;
1482
- s !== void 0 && ne.assertOptions(s, {
1483
- silentJSONParsing: U.transitional(U.boolean),
1484
- forcedJSONParsing: U.transitional(U.boolean),
1485
- clarifyTimeoutError: U.transitional(U.boolean)
1486
- }, !1), r != null && (i.isFunction(r) ? n.paramsSerializer = {
1487
- serialize: r
1488
- } : ne.assertOptions(r, {
1489
- encode: U.function,
1490
- serialize: U.function
1491
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ne.assertOptions(n, {
1492
- baseUrl: U.spelling("baseURL"),
1493
- withXsrfToken: U.spelling("withXSRFToken")
1494
- }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1495
- let o = a && i.merge(
1496
- a.common,
1497
- a[n.method]
1498
- );
1499
- a && i.forEach(
1500
- ["delete", "get", "head", "post", "put", "patch", "common"],
1501
- (d) => {
1502
- delete a[d];
1503
- }
1504
- ), n.headers = C.concat(o, a);
1505
- const c = [];
1506
- let p = !0;
1507
- this.interceptors.request.forEach(function(y) {
1508
- typeof y.runWhen == "function" && y.runWhen(n) === !1 || (p = p && y.synchronous, c.unshift(y.fulfilled, y.rejected));
1509
- });
1510
- const l = [];
1511
- this.interceptors.response.forEach(function(y) {
1512
- l.push(y.fulfilled, y.rejected);
1513
- });
1514
- let u, h = 0, b;
1515
- if (!p) {
1516
- const d = [Me.bind(this), void 0];
1517
- for (d.unshift(...c), d.push(...l), b = d.length, u = Promise.resolve(n); h < b; )
1518
- u = u.then(d[h++], d[h++]);
1519
- return u;
1520
- }
1521
- b = c.length;
1522
- let S = n;
1523
- for (; h < b; ) {
1524
- const d = c[h++], y = c[h++];
1525
- try {
1526
- S = d(S);
1527
- } catch (m) {
1528
- y.call(this, m);
1529
- break;
1530
- }
1531
- }
1532
- try {
1533
- u = Me.call(this, S);
1534
- } catch (d) {
1535
- return Promise.reject(d);
1536
- }
1537
- for (h = 0, b = l.length; h < b; )
1538
- u = u.then(l[h++], l[h++]);
1539
- return u;
1540
- }
1541
- getUri(t) {
1542
- t = q(this.defaults, t);
1543
- const n = ct(t.baseURL, t.url, t.allowAbsoluteUrls);
1544
- return st(n, t.params, t.paramsSerializer);
1545
- }
1546
- };
1547
- i.forEach(["delete", "get", "head", "options"], function(t) {
1548
- j.prototype[t] = function(n, s) {
1549
- return this.request(q(s || {}, {
1550
- method: t,
1551
- url: n,
1552
- data: (s || {}).data
1553
- }));
1554
- };
1555
- });
1556
- i.forEach(["post", "put", "patch"], function(t) {
1557
- function n(s) {
1558
- return function(a, o, c) {
1559
- return this.request(q(c || {}, {
1560
- method: t,
1561
- headers: s ? {
1562
- "Content-Type": "multipart/form-data"
1563
- } : {},
1564
- url: a,
1565
- data: o
1566
- }));
1567
- };
1568
- }
1569
- j.prototype[t] = n(), j.prototype[t + "Form"] = n(!0);
1570
- });
1571
- let zn = class pt {
1572
- constructor(t) {
1573
- if (typeof t != "function")
1574
- throw new TypeError("executor must be a function.");
1575
- let n;
1576
- this.promise = new Promise(function(a) {
1577
- n = a;
1578
- });
1579
- const s = this;
1580
- this.promise.then((r) => {
1581
- if (!s._listeners) return;
1582
- let a = s._listeners.length;
1583
- for (; a-- > 0; )
1584
- s._listeners[a](r);
1585
- s._listeners = null;
1586
- }), this.promise.then = (r) => {
1587
- let a;
1588
- const o = new Promise((c) => {
1589
- s.subscribe(c), a = c;
1590
- }).then(r);
1591
- return o.cancel = function() {
1592
- s.unsubscribe(a);
1593
- }, o;
1594
- }, t(function(a, o, c) {
1595
- s.reason || (s.reason = new z(a, o, c), n(s.reason));
1596
- });
1597
- }
1598
- /**
1599
- * Throws a `CanceledError` if cancellation has been requested.
1600
- */
1601
- throwIfRequested() {
1602
- if (this.reason)
1603
- throw this.reason;
1604
- }
1605
- /**
1606
- * Subscribe to the cancel signal
1607
- */
1608
- subscribe(t) {
1609
- if (this.reason) {
1610
- t(this.reason);
1611
- return;
1612
- }
1613
- this._listeners ? this._listeners.push(t) : this._listeners = [t];
1614
- }
1615
- /**
1616
- * Unsubscribe from the cancel signal
1617
- */
1618
- unsubscribe(t) {
1619
- if (!this._listeners)
1620
- return;
1621
- const n = this._listeners.indexOf(t);
1622
- n !== -1 && this._listeners.splice(n, 1);
1623
- }
1624
- toAbortSignal() {
1625
- const t = new AbortController(), n = (s) => {
1626
- t.abort(s);
1627
- };
1628
- return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1629
- }
1630
- /**
1631
- * Returns an object that contains a new `CancelToken` and a function that, when called,
1632
- * cancels the `CancelToken`.
1633
- */
1634
- static source() {
1635
- let t;
1636
- return {
1637
- token: new pt(function(r) {
1638
- t = r;
1639
- }),
1640
- cancel: t
1641
- };
1642
- }
1643
- };
1644
- function Jn(e) {
1645
- return function(n) {
1646
- return e.apply(null, n);
1647
- };
1648
- }
1649
- function Wn(e) {
1650
- return i.isObject(e) && e.isAxiosError === !0;
1651
- }
1652
- const we = {
1653
- Continue: 100,
1654
- SwitchingProtocols: 101,
1655
- Processing: 102,
1656
- EarlyHints: 103,
1657
- Ok: 200,
1658
- Created: 201,
1659
- Accepted: 202,
1660
- NonAuthoritativeInformation: 203,
1661
- NoContent: 204,
1662
- ResetContent: 205,
1663
- PartialContent: 206,
1664
- MultiStatus: 207,
1665
- AlreadyReported: 208,
1666
- ImUsed: 226,
1667
- MultipleChoices: 300,
1668
- MovedPermanently: 301,
1669
- Found: 302,
1670
- SeeOther: 303,
1671
- NotModified: 304,
1672
- UseProxy: 305,
1673
- Unused: 306,
1674
- TemporaryRedirect: 307,
1675
- PermanentRedirect: 308,
1676
- BadRequest: 400,
1677
- Unauthorized: 401,
1678
- PaymentRequired: 402,
1679
- Forbidden: 403,
1680
- NotFound: 404,
1681
- MethodNotAllowed: 405,
1682
- NotAcceptable: 406,
1683
- ProxyAuthenticationRequired: 407,
1684
- RequestTimeout: 408,
1685
- Conflict: 409,
1686
- Gone: 410,
1687
- LengthRequired: 411,
1688
- PreconditionFailed: 412,
1689
- PayloadTooLarge: 413,
1690
- UriTooLong: 414,
1691
- UnsupportedMediaType: 415,
1692
- RangeNotSatisfiable: 416,
1693
- ExpectationFailed: 417,
1694
- ImATeapot: 418,
1695
- MisdirectedRequest: 421,
1696
- UnprocessableEntity: 422,
1697
- Locked: 423,
1698
- FailedDependency: 424,
1699
- TooEarly: 425,
1700
- UpgradeRequired: 426,
1701
- PreconditionRequired: 428,
1702
- TooManyRequests: 429,
1703
- RequestHeaderFieldsTooLarge: 431,
1704
- UnavailableForLegalReasons: 451,
1705
- InternalServerError: 500,
1706
- NotImplemented: 501,
1707
- BadGateway: 502,
1708
- ServiceUnavailable: 503,
1709
- GatewayTimeout: 504,
1710
- HttpVersionNotSupported: 505,
1711
- VariantAlsoNegotiates: 506,
1712
- InsufficientStorage: 507,
1713
- LoopDetected: 508,
1714
- NotExtended: 510,
1715
- NetworkAuthenticationRequired: 511,
1716
- WebServerIsDown: 521,
1717
- ConnectionTimedOut: 522,
1718
- OriginIsUnreachable: 523,
1719
- TimeoutOccurred: 524,
1720
- SslHandshakeFailed: 525,
1721
- InvalidSslCertificate: 526
1722
- };
1723
- Object.entries(we).forEach(([e, t]) => {
1724
- we[t] = e;
1725
- });
1726
- function ht(e) {
1727
- const t = new j(e), n = We(j.prototype.request, t);
1728
- return i.extend(n, j.prototype, t, { allOwnKeys: !0 }), i.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
1729
- return ht(q(e, r));
1730
- }, n;
1731
- }
1732
- const g = ht(X);
1733
- g.Axios = j;
1734
- g.CanceledError = z;
1735
- g.CancelToken = zn;
1736
- g.isCancel = at;
1737
- g.VERSION = ft;
1738
- g.toFormData = ie;
1739
- g.AxiosError = w;
1740
- g.Cancel = g.CanceledError;
1741
- g.all = function(t) {
1742
- return Promise.all(t);
1743
- };
1744
- g.spread = Jn;
1745
- g.isAxiosError = Wn;
1746
- g.mergeConfig = q;
1747
- g.AxiosHeaders = C;
1748
- g.formToJSON = (e) => ot(i.isHTMLForm(e) ? new FormData(e) : e);
1749
- g.getAdapter = dt.getAdapter;
1750
- g.HttpStatusCode = we;
1751
- g.default = g;
1752
- const {
1753
- Axios: es,
1754
- AxiosError: ts,
1755
- CanceledError: ns,
1756
- isCancel: ss,
1757
- CancelToken: rs,
1758
- VERSION: os,
1759
- all: as,
1760
- Cancel: is,
1761
- isAxiosError: cs,
1762
- spread: us,
1763
- toFormData: ls,
1764
- AxiosHeaders: ds,
1765
- HttpStatusCode: fs,
1766
- formToJSON: ps,
1767
- getAdapter: hs,
1768
- mergeConfig: ms
1769
- } = g;
1770
- let f;
1771
- const ys = ({
1
+ import h from "axios";
2
+ let s;
3
+ const C = ({
1772
4
  baseURL: e,
1773
5
  timeout: t = 12e4,
1774
- withCredentials: n = !0,
1775
- headers: s,
1776
- getAccessToken: r,
1777
- getRefreshAccessToken: a,
1778
- onUnauthorized: o,
1779
- onRefreshTokenSuccess: c,
1780
- ...p
1781
- }) => (f = g.create({
6
+ withCredentials: a = !0,
7
+ headers: n,
8
+ getAccessToken: c,
9
+ getRefreshAccessToken: p,
10
+ onUnauthorized: r,
11
+ onRefreshTokenSuccess: u,
12
+ ...w
13
+ }) => (s = h.create({
1782
14
  baseURL: e,
1783
15
  timeout: t,
1784
- withCredentials: n,
1785
- headers: s || {
16
+ withCredentials: a,
17
+ headers: n || {
1786
18
  "Content-Type": "application/json"
1787
19
  },
1788
- ...p
1789
- }), f.interceptors.request.use((l) => {
1790
- const u = r();
1791
- return u && (l.headers.Authorization = `Bearer ${u}`), l;
1792
- }, (l) => Promise.reject(l)), f.interceptors.response.use((l) => l, async (l) => {
1793
- const u = l.config;
1794
- if (u.url?.includes("/auth/login"))
1795
- return Promise.reject(l);
1796
- if (l.response?.status === 401 && !u._retry) {
1797
- u._retry = !0;
20
+ ...w
21
+ }), s.interceptors.request.use((o) => {
22
+ const i = c();
23
+ return i && (o.headers.Authorization = `Bearer ${i}`), o;
24
+ }, (o) => Promise.reject(o)), s.interceptors.response.use((o) => o, async (o) => {
25
+ const i = o.config;
26
+ if (i.url?.includes("/auth/login"))
27
+ return Promise.reject(o);
28
+ if (o.response?.status === 401 && !i._retry) {
29
+ i._retry = !0;
1798
30
  try {
1799
- const h = await a();
1800
- if (!h)
31
+ const d = await p();
32
+ if (!d)
1801
33
  throw new Error("Failed to refresh access token");
1802
- return u.headers.Authorization = `Bearer ${h}`, c(h), f(u);
1803
- } catch (h) {
1804
- return o(), Promise.reject(h);
34
+ return i.headers.Authorization = `Bearer ${d}`, u(d), s(i);
35
+ } catch (d) {
36
+ return r(), Promise.reject(d);
1805
37
  }
1806
38
  }
1807
- return Promise.reject(l);
1808
- }), f), Vn = {
1809
- getChatRooms: async (e) => (await f.get(`/speech/chat/rooms/${e}`)).data,
39
+ return Promise.reject(o);
40
+ }), s), g = {
41
+ getChatRooms: async (e) => (await s.get(`/speech/chat/rooms/${e}`)).data,
1810
42
  deleteChatRoom: async ({
1811
43
  roomId: e
1812
- }) => (await f.delete(`/speech/chat/rooms/${e}`)).data,
44
+ }) => (await s.delete(`/speech/chat/rooms/${e}`)).data,
1813
45
  getChatMessages: async ({
1814
46
  roomId: e
1815
47
  }) => {
1816
- const t = await f.get(`/speech/chat/messages/${e}`);
48
+ const t = await s.get(`/speech/chat/messages/${e}`);
1817
49
  return {
1818
50
  roomId: e,
1819
51
  msgs: t.data
@@ -1822,119 +54,119 @@ const ys = ({
1822
54
  updateChatRoomName: async ({
1823
55
  roomId: e,
1824
56
  name: t
1825
- }) => (await f.patch(`/speech/chat/rooms/${e}`, {
57
+ }) => (await s.patch(`/speech/chat/rooms/${e}`, {
1826
58
  name: t
1827
59
  })).data
1828
- }, Kn = {
1829
- getRecords: async () => (await f.get("/speech/records")).data,
1830
- getRecordsWithPage: async (e) => (await f.post("/speech/records", e)).data,
60
+ }, m = {
61
+ getRecords: async () => (await s.get("/speech/records")).data,
62
+ getRecordsWithPage: async (e) => (await s.post("/speech/records", e)).data,
1831
63
  deleteRecord: async ({
1832
64
  recordId: e
1833
- }) => (await f.delete(`/speech/records/${e}`)).data,
65
+ }) => (await s.delete(`/speech/records/${e}`)).data,
1834
66
  getRecordById: async ({
1835
67
  recordId: e
1836
- }) => (await f.get(`/speech/records/${e}/details`)).data,
68
+ }) => (await s.get(`/speech/records/${e}/details`)).data,
1837
69
  getTodayRecord: async ({
1838
70
  chart: e
1839
- }) => (await f.get("/speech/records/details/today", {
71
+ }) => (await s.get("/speech/records/details/today", {
1840
72
  params: {
1841
73
  chart: e
1842
74
  }
1843
75
  })).data,
1844
76
  getRecordsByChart: async ({
1845
77
  chart: e
1846
- }) => (await f.get(`/speech/records/${e}`)).data,
78
+ }) => (await s.get(`/speech/records/${e}`)).data,
1847
79
  getRecordFromImage: async ({
1848
80
  imageUrl: e
1849
- }) => (await f.post("/speech/records/from-image", {
81
+ }) => (await s.post("/speech/records/from-image", {
1850
82
  imageUrl: e
1851
83
  })).data,
1852
- getRecordFromAgent: async (e) => (await f.post("/speech/records/from-agent", e)).data,
84
+ getRecordFromAgent: async (e) => (await s.post("/speech/records/from-agent", e)).data,
1853
85
  // --- admin ---
1854
86
  getRecordsByDates: async ({
1855
87
  startDate: e,
1856
88
  endDate: t,
1857
- page: n,
1858
- searchText: s,
1859
- ykiho: r,
1860
- username: a
1861
- }) => (await f.get("/speech/records/by-dates", {
89
+ page: a,
90
+ searchText: n,
91
+ ykiho: c,
92
+ username: p
93
+ }) => (await s.get("/speech/records/by-dates", {
1862
94
  params: {
1863
95
  startDate: e,
1864
96
  endDate: t,
1865
- page: Number(n),
1866
- ...s && {
1867
- searchText: s
97
+ page: Number(a),
98
+ ...n && {
99
+ searchText: n
1868
100
  },
1869
- ...r && {
1870
- ykiho: r
101
+ ...c && {
102
+ ykiho: c
1871
103
  },
1872
- ...a && {
1873
- username: a
104
+ ...p && {
105
+ username: p
1874
106
  }
1875
107
  }
1876
108
  })).data,
1877
- getPatients: async () => (await f.get("/speech/patients")).data,
109
+ getPatients: async () => (await s.get("/speech/patients")).data,
1878
110
  getRecordData: async ({
1879
111
  recordId: e
1880
- }) => (await f.get(`/speech/record-datas/${e}`)).data
1881
- }, vn = {
112
+ }) => (await s.get(`/speech/record-datas/${e}`)).data
113
+ }, l = {
1882
114
  getPatientByChart: async ({
1883
115
  chart: e
1884
- }) => (await f.get(`/speech/patients/${e}`)).data,
116
+ }) => (await s.get(`/speech/patients/${e}`)).data,
1885
117
  upsertPatient: async ({
1886
118
  chart: e,
1887
119
  name: t
1888
- }) => (await f.put("/speech/patients", {
120
+ }) => (await s.put("/speech/patients", {
1889
121
  chart: e,
1890
122
  name: t
1891
123
  })).data
1892
- }, Xn = {
124
+ }, b = {
1893
125
  deleteAudioFile: async ({
1894
126
  audioFileId: e
1895
- }) => (await f.delete(`/speech/audios/${e}`)).data
1896
- }, Gn = {
127
+ }) => (await s.delete(`/speech/audios/${e}`)).data
128
+ }, $ = {
1897
129
  resummaryPart: async ({
1898
130
  recordId: e,
1899
131
  level: t,
1900
- part: n
1901
- }) => (await f.post("/speech/record-datas/resummary/part", {
132
+ part: a
133
+ }) => (await s.post("/speech/record-datas/resummary/part", {
1902
134
  recordId: e,
1903
135
  level: t,
1904
- part: n
136
+ part: a
1905
137
  })).data
1906
- }, Qn = (e) => {
138
+ }, f = (e) => {
1907
139
  const t = e instanceof Blob ? e : new Blob([e], {
1908
140
  type: "audio/pcm"
1909
- }), n = new FormData();
1910
- return n.append("file", t, "audio.pcm"), n;
1911
- }, Je = async (e, t, n) => {
1912
- const s = Qn(t);
1913
- return n && s.append("language", n), (await f.post(e, s, {
141
+ }), a = new FormData();
142
+ return a.append("file", t, "audio.pcm"), a;
143
+ }, y = async (e, t, a) => {
144
+ const n = f(t);
145
+ return a && n.append("language", a), (await s.post(e, n, {
1914
146
  headers: {
1915
147
  "Content-Type": "multipart/form-data"
1916
148
  }
1917
149
  })).data;
1918
- }, ws = {
150
+ }, A = {
1919
151
  transcribeV2: async ({
1920
152
  buffer: e
1921
- }) => Je("/speech/transcribe-v2", e),
153
+ }) => y("/speech/transcribe-v2", e),
1922
154
  transcribeWithTranslation: async ({
1923
155
  buffer: e,
1924
156
  language: t
1925
- }) => Je("/speech/transcribe-with-translation", e, t),
157
+ }) => y("/speech/transcribe-with-translation", e, t),
1926
158
  uploadWithTranslation: async ({
1927
159
  opusBlob: e,
1928
160
  chart: t,
1929
- recordId: n,
1930
- transcript: s,
1931
- transcripts: r,
1932
- durationSeconds: a
161
+ recordId: a,
162
+ transcript: n,
163
+ transcripts: c,
164
+ durationSeconds: p
1933
165
  }) => {
1934
- const o = new FormData();
1935
- return o.append("opusFile", new Blob([e], {
166
+ const r = new FormData();
167
+ return r.append("opusFile", new Blob([e], {
1936
168
  type: "audio/webm"
1937
- }), "audio.webm"), o.append("chart", t), o.append("transcript", s), o.append("transcripts", JSON.stringify(r)), o.append("durationSeconds", a.toString()), n && o.append("recordId", n), (await f.post("/speech/upload-with-translation", o, {
169
+ }), "audio.webm"), r.append("chart", t), r.append("transcript", n), r.append("transcripts", JSON.stringify(c)), r.append("durationSeconds", p.toString()), a && r.append("recordId", a), (await s.post("/speech/upload-with-translation", r, {
1938
170
  headers: {
1939
171
  "Content-Type": "multipart/form-data"
1940
172
  }
@@ -1943,194 +175,194 @@ const ys = ({
1943
175
  upload: async ({
1944
176
  opusBlob: e,
1945
177
  vadBuffer: t,
1946
- totalBuffer: n,
1947
- chart: s,
1948
- recordId: r,
1949
- transcript: a
178
+ totalBuffer: a,
179
+ chart: n,
180
+ recordId: c,
181
+ transcript: p
1950
182
  }) => {
1951
- const o = new FormData();
1952
- return o.append("opusFile", new Blob([e], {
183
+ const r = new FormData();
184
+ return r.append("opusFile", new Blob([e], {
1953
185
  type: "audio/webm"
1954
- }), "audio.webm"), o.append("totalFile", new Blob([n], {
186
+ }), "audio.webm"), r.append("totalFile", new Blob([a], {
1955
187
  type: "audio/pcm"
1956
- }), "audio.pcm"), t && o.append("vadFile", new Blob([t], {
188
+ }), "audio.pcm"), t && r.append("vadFile", new Blob([t], {
1957
189
  type: "audio/pcm"
1958
- }), "audio.pcm"), o.append("chart", s), o.append("transcript", a), r && o.append("recordId", r), (await f.post("/speech/upload", o, {
190
+ }), "audio.pcm"), r.append("chart", n), r.append("transcript", p), c && r.append("recordId", c), (await s.post("/speech/upload", r, {
1959
191
  headers: {
1960
192
  "Content-Type": "multipart/form-data"
1961
193
  }
1962
194
  })).data;
1963
195
  },
1964
- chat: Vn,
1965
- records: Kn,
1966
- patients: vn,
1967
- audios: Xn,
1968
- recordData: Gn
1969
- }, bs = {
196
+ chat: g,
197
+ records: m,
198
+ patients: l,
199
+ audios: b,
200
+ recordData: $
201
+ }, k = {
1970
202
  getAudioFile: async ({
1971
203
  bucket: e,
1972
204
  keys: t
1973
- }) => (await f.get("/audio", {
205
+ }) => (await s.get("/audio", {
1974
206
  params: {
1975
207
  bucket: e,
1976
208
  keys: t
1977
209
  },
1978
210
  responseType: "blob"
1979
211
  })).data
1980
- }, gs = {
1981
- register: async (e) => (await f.post("/auth/register", e)).data,
1982
- login: async (e) => (await f.post("/auth/login", e)).data,
1983
- getMe: async () => (await f.get("/auth/me")).data,
212
+ }, F = {
213
+ register: async (e) => (await s.post("/auth/register", e)).data,
214
+ login: async (e) => (await s.post("/auth/login", e)).data,
215
+ getMe: async () => (await s.get("/auth/me")).data,
1984
216
  logout: async () => {
1985
- await f.post("/auth/logout");
217
+ await s.post("/auth/logout");
1986
218
  },
1987
- updateMe: async (e) => (await f.patch("/auth/me", e)).data,
219
+ updateMe: async (e) => (await s.patch("/auth/me", e)).data,
1988
220
  generateNewUserKey: async ({
1989
221
  userId: e
1990
- }) => (await f.put(`/auth/user/generate-key/${e}`)).data,
222
+ }) => (await s.put(`/auth/user/generate-key/${e}`)).data,
1991
223
  // --- 관리자 ---
1992
- adminLogin: async (e) => (await f.post("/auth/admin-login", e)).data,
1993
- updateUser: async (e) => (await f.put(`/auth/user/${e.id}`, e)).data,
224
+ adminLogin: async (e) => (await s.post("/auth/admin-login", e)).data,
225
+ updateUser: async (e) => (await s.put(`/auth/user/${e.id}`, e)).data,
1994
226
  deleteUser: async (e) => {
1995
- await f.delete(`/auth/user/${e}`);
227
+ await s.delete(`/auth/user/${e}`);
1996
228
  },
1997
229
  changePassword: async (e) => {
1998
- await f.patch("/auth/me/change-password", e);
230
+ await s.patch("/auth/me/change-password", e);
1999
231
  }
2000
- }, Es = {
2001
- getMy: async () => (await f.get("/capture-rects/my")).data,
232
+ }, P = {
233
+ getMy: async () => (await s.get("/capture-rects/my")).data,
2002
234
  // 모든 캡처 영역 조회 (GET /capture-rects)
2003
- getCaptureRects: async () => (await f.get("capture-rects")).data,
235
+ getCaptureRects: async () => (await s.get("capture-rects")).data,
2004
236
  // 특정 캡처 영역 조회 (GET /capture-rects/:id)
2005
- getCaptureRect: async (e) => (await f.get(`capture-rects/${e}`)).data,
237
+ getCaptureRect: async (e) => (await s.get(`capture-rects/${e}`)).data,
2006
238
  // 캡처 영역 생성 (POST /capture-rects)
2007
- createCaptureRect: async (e) => (await f.post("capture-rects", e)).data,
239
+ createCaptureRect: async (e) => (await s.post("capture-rects", e)).data,
2008
240
  // 캡처 영역 수정 (PATCH /capture-rects/:id)
2009
241
  updateCaptureRect: async ({
2010
242
  id: e,
2011
243
  data: t
2012
- }) => (await f.patch(`capture-rects/${e}`, t)).data,
244
+ }) => (await s.patch(`capture-rects/${e}`, t)).data,
2013
245
  // 캡처 영역 삭제 (DELETE /capture-rects/:id)
2014
- deleteCaptureRect: async (e) => (await f.delete(`capture-rects/${e}`)).data
2015
- }, Rs = {
246
+ deleteCaptureRect: async (e) => (await s.delete(`capture-rects/${e}`)).data
247
+ }, D = {
2016
248
  // 피드백 목록 조회 (페이지네이션)
2017
- listFeedbacks: async (e) => (await f.post("/feedbacks/page", {
249
+ listFeedbacks: async (e) => (await s.post("/feedbacks/page", {
2018
250
  page: e.page ?? 1,
2019
251
  count: e.count ?? 30,
2020
252
  status: e.status
2021
253
  })).data,
2022
254
  // 피드백 상세 조회
2023
- getFeedback: async (e) => (await f.get(`/feedbacks/${e}`)).data,
255
+ getFeedback: async (e) => (await s.get(`/feedbacks/${e}`)).data,
2024
256
  // 피드백 생성
2025
- createFeedback: async (e) => (await f.post("/feedbacks", e)).data,
257
+ createFeedback: async (e) => (await s.post("/feedbacks", e)).data,
2026
258
  // 피드백 수정
2027
- updateFeedback: async (e, t) => (await f.put(`/feedbacks/${e}`, t)).data,
259
+ updateFeedback: async (e, t) => (await s.put(`/feedbacks/${e}`, t)).data,
2028
260
  // 피드백 삭제
2029
- deleteFeedback: async (e) => (await f.delete(`/feedbacks/${e}`)).data,
261
+ deleteFeedback: async (e) => (await s.delete(`/feedbacks/${e}`)).data,
2030
262
  // 피드백 댓글 목록 조회
2031
- getComments: async (e) => (await f.get(`/feedbacks/${e}/comments`)).data,
263
+ getComments: async (e) => (await s.get(`/feedbacks/${e}/comments`)).data,
2032
264
  // 피드백 댓글 작성
2033
- createComment: async (e, t) => (await f.post(`/feedbacks/${e}/comments`, t)).data,
265
+ createComment: async (e, t) => (await s.post(`/feedbacks/${e}/comments`, t)).data,
2034
266
  // 피드백 댓글 삭제
2035
- deleteComment: async (e) => (await f.delete(`/feedbacks/comments/${e}`)).data,
267
+ deleteComment: async (e) => (await s.delete(`/feedbacks/comments/${e}`)).data,
2036
268
  // 피드백 댓글 수정
2037
- updateComment: async (e, t) => (await f.put(`/feedbacks/comments/${e}`, t)).data
2038
- }, Ss = {
2039
- diarization: async (e, t) => (await f.post("/llm/diarization", e, {
269
+ updateComment: async (e, t) => (await s.put(`/feedbacks/comments/${e}`, t)).data
270
+ }, B = {
271
+ diarization: async (e, t) => (await s.post("/llm/diarization", e, {
2040
272
  signal: t
2041
273
  })).data,
2042
274
  medicalSummary: async ({
2043
275
  request: e,
2044
276
  signal: t
2045
- }) => (await f.post("/llm/medical-summary", e, {
277
+ }) => (await s.post("/llm/medical-summary", e, {
2046
278
  signal: t
2047
279
  })).data,
2048
280
  mindmap: async ({
2049
281
  conversation: e
2050
- }) => (await f.post("/llm/mindmap", {
282
+ }) => (await s.post("/llm/mindmap", {
2051
283
  conversation: e
2052
284
  })).data,
2053
285
  diseaseRecommendation: async ({
2054
286
  conversation: e
2055
- }) => (await f.post("/llm/disease-recommendation", {
287
+ }) => (await s.post("/llm/disease-recommendation", {
2056
288
  conversation: e
2057
289
  })).data
2058
- }, Os = {
2059
- getNotices: async (e) => (await f.post("/notices/page", {
290
+ }, N = {
291
+ getNotices: async (e) => (await s.post("/notices/page", {
2060
292
  page: e?.page ?? 1,
2061
293
  count: e?.count ?? 10,
2062
294
  searchText: e?.searchText,
2063
295
  showPublishedOnly: e?.showPublishedOnly ?? !0
2064
296
  })).data,
2065
- getNotice: async (e) => (await f.get(`/notices/${e}`)).data,
297
+ getNotice: async (e) => (await s.get(`/notices/${e}`)).data,
2066
298
  // Create a new notice
2067
- createNotice: async (e) => (await f.post("/notices", e)).data,
299
+ createNotice: async (e) => (await s.post("/notices", e)).data,
2068
300
  // Update an existing notice
2069
- updateNotice: async (e, t) => (await f.put(`/notices/${e}`, t)).data,
301
+ updateNotice: async (e, t) => (await s.put(`/notices/${e}`, t)).data,
2070
302
  // Delete a notice
2071
303
  deleteNotice: async (e) => {
2072
- await f.delete(`/notices/${e}`);
304
+ await s.delete(`/notices/${e}`);
2073
305
  }
2074
- }, As = {
306
+ }, S = {
2075
307
  // 모든 파트너 조회
2076
- getPartners: async () => (await f.get("/partners")).data,
308
+ getPartners: async () => (await s.get("/partners")).data,
2077
309
  // 파트너 상세 조회
2078
- getPartner: async (e) => (await f.get(`/partners/${e}`)).data,
310
+ getPartner: async (e) => (await s.get(`/partners/${e}`)).data,
2079
311
  // 파트너 생성
2080
- createPartner: async (e) => (await f.post("/partners", e)).data,
312
+ createPartner: async (e) => (await s.post("/partners", e)).data,
2081
313
  // 파트너 수정
2082
- updatePartner: async (e, t) => (await f.patch(`/partners/${e}`, t)).data,
314
+ updatePartner: async (e, t) => (await s.patch(`/partners/${e}`, t)).data,
2083
315
  // 파트너 삭제
2084
- deletePartner: async (e) => (await f.delete(`/partners/${e}`)).data
2085
- }, Ts = {
316
+ deletePartner: async (e) => (await s.delete(`/partners/${e}`)).data
317
+ }, T = {
2086
318
  /**
2087
319
  * Push 구독 정보를 서버에 저장
2088
320
  */
2089
- subscribe: async (e) => (await f.post("/push/subscribe", e.toJSON())).data,
321
+ subscribe: async (e) => (await s.post("/push/subscribe", e.toJSON())).data,
2090
322
  /**
2091
323
  * Push 구독 해제
2092
324
  */
2093
- unsubscribe: async (e) => (await f.post("/push/unsubscribe", {
325
+ unsubscribe: async (e) => (await s.post("/push/unsubscribe", {
2094
326
  endpoint: e
2095
327
  })).data,
2096
328
  /**
2097
329
  * 현재 사용자의 Push 구독 상태 확인
2098
330
  */
2099
- getSubscriptionStatus: async () => (await f.get("/push/status")).data,
331
+ getSubscriptionStatus: async () => (await s.get("/push/status")).data,
2100
332
  /**
2101
333
  * Push 알림 전송
2102
334
  * @param notification - 알림 요청 데이터
2103
335
  */
2104
336
  sendNotification: async (e) => {
2105
- await f.post("/push/send", e);
2106
- }
2107
- }, Cs = {
2108
- getUserSettings: async () => (await f.get("/user-settings")).data,
2109
- updateUserSettings: async (e) => (await f.put("/user-settings", e)).data
2110
- }, xs = {
2111
- getInstitutions: async () => (await f.get("institutions")).data,
2112
- register: async (e) => (await f.post("institutions", e)).data,
337
+ await s.post("/push/send", e);
338
+ }
339
+ }, j = {
340
+ getUserSettings: async () => (await s.get("/user-settings")).data,
341
+ updateUserSettings: async (e) => (await s.put("/user-settings", e)).data
342
+ }, z = {
343
+ getInstitutions: async () => (await s.get("institutions")).data,
344
+ register: async (e) => (await s.post("institutions", e)).data,
2113
345
  update: async ({
2114
346
  ykiho: e,
2115
347
  data: t
2116
- }) => (await f.patch(`institutions/${e}`, t)).data,
348
+ }) => (await s.patch(`institutions/${e}`, t)).data,
2117
349
  delete: async (e) => {
2118
- await f.delete(`institutions/${e}`);
350
+ await s.delete(`institutions/${e}`);
2119
351
  }
2120
352
  };
2121
353
  export {
2122
- f as apiClient,
2123
- bs as audioApi,
2124
- gs as authApi,
2125
- Es as captureRectsApi,
2126
- Rs as feedbackApi,
2127
- ys as initializeAxios,
2128
- xs as institutionsApi,
2129
- Ss as llmApi,
2130
- Os as noticeApi,
2131
- As as partnersApi,
2132
- Ts as pushApi,
2133
- ws as speechApi,
2134
- Cs as userSettingsApi
354
+ s as apiClient,
355
+ k as audioApi,
356
+ F as authApi,
357
+ P as captureRectsApi,
358
+ D as feedbackApi,
359
+ C as initializeAxios,
360
+ z as institutionsApi,
361
+ B as llmApi,
362
+ N as noticeApi,
363
+ S as partnersApi,
364
+ T as pushApi,
365
+ A as speechApi,
366
+ j as userSettingsApi
2135
367
  };
2136
368
  //# sourceMappingURL=index.js.map