react-aichatbot-widget 1.5.2 → 1.5.4

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.
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { jsxs as O, jsx as y, Fragment as Re } from "react/jsx-runtime";
2
- import { useState as B, useRef as St, useEffect as Et } from "react";
3
- import { Minus as Rt, MessageCircle as Ke, Send as Xe, Bot as Pe, Minimize2 as Ct, Maximize2 as Tt, X as Ot } from "lucide-react";
1
+ import { jsxs as k, jsx as y, Fragment as ce } from "react/jsx-runtime";
2
+ import { useState as I, useRef as Et, useEffect as Ke } from "react";
3
+ import { Minus as Ct, MessageCircle as Xe, Send as Ge, Bot as Ne, Minimize2 as Rt, Maximize2 as Tt, X as Ot } from "lucide-react";
4
4
  const At = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
5
- const o = r.position === "left", l = {
5
+ const o = r.position === "left", i = o ? "32px" : "auto", s = o ? "auto" : "32px", l = localStorage.getItem("clone67ChatSessionId"), p = {
6
6
  position: "fixed",
7
7
  bottom: "32px",
8
- left: o ? "32px" : "auto",
9
- right: o ? "auto" : "32px",
8
+ left: i,
9
+ right: s,
10
10
  background: `linear-gradient(135deg, ${n.primaryColor}, ${n.secondaryColor})`,
11
11
  color: n.fontColor,
12
12
  width: "64px",
@@ -22,14 +22,14 @@ const At = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
22
22
  transition: "all 300ms ease",
23
23
  outline: "none"
24
24
  };
25
- return /* @__PURE__ */ O(
25
+ return /* @__PURE__ */ k(
26
26
  "button",
27
27
  {
28
28
  onClick: e,
29
- style: l,
29
+ style: p,
30
30
  children: [
31
- t ? /* @__PURE__ */ y(Rt, { size: 20, strokeWidth: 2.5 }) : /* @__PURE__ */ y(Ke, { size: 20, strokeWidth: 2.5 }),
32
- !t && /* @__PURE__ */ y("span", { style: {
31
+ t ? /* @__PURE__ */ y(Ct, { size: 20, strokeWidth: 2.5 }) : /* @__PURE__ */ y(Xe, { size: 20, strokeWidth: 2.5 }),
32
+ !t && l && /* @__PURE__ */ y("span", { style: {
33
33
  position: "absolute",
34
34
  top: "-4px",
35
35
  right: "-4px",
@@ -44,10 +44,10 @@ const At = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
44
44
  }
45
45
  );
46
46
  }, kt = ({ onSendMessage: e, isLoading: t, theme: n }) => {
47
- const [r, o] = B(""), i = () => {
47
+ const [r, o] = I(""), i = () => {
48
48
  !r.trim() || t || (e(r.trim()), o(""));
49
- }, s = (u) => {
50
- u.key === "Enter" && !u.shiftKey && (u.preventDefault(), i());
49
+ }, s = (d) => {
50
+ d.key === "Enter" && !d.shiftKey && (d.preventDefault(), i());
51
51
  }, l = {
52
52
  padding: "16px",
53
53
  borderTop: "1px solid rgba(255, 255, 255, 0.2)",
@@ -58,7 +58,7 @@ const At = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
58
58
  display: "flex",
59
59
  gap: "12px",
60
60
  alignItems: "center"
61
- }, d = {
61
+ }, u = {
62
62
  flex: 1,
63
63
  padding: "12px 16px",
64
64
  background: n.inputBackgroundColor || n.backgroundColor,
@@ -88,22 +88,22 @@ const At = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
88
88
  transition: "all 0.2s ease",
89
89
  minWidth: "48px"
90
90
  };
91
- return /* @__PURE__ */ y("div", { style: l, children: /* @__PURE__ */ O("div", { style: p, children: [
91
+ return /* @__PURE__ */ y("div", { style: l, children: /* @__PURE__ */ k("div", { style: p, children: [
92
92
  /* @__PURE__ */ y(
93
93
  "input",
94
94
  {
95
95
  type: "text",
96
96
  placeholder: "Type a message...",
97
97
  value: r,
98
- onChange: (u) => o(u.target.value),
98
+ onChange: (d) => o(d.target.value),
99
99
  onKeyDown: s,
100
100
  disabled: t,
101
- style: d,
102
- onFocus: (u) => {
103
- u.target.style.boxShadow = "0 0 0 3px rgba(100, 150, 255, 0.3)", u.target.style.borderColor = "#60a5fa";
101
+ style: u,
102
+ onFocus: (d) => {
103
+ d.target.style.boxShadow = "0 0 0 3px rgba(100, 150, 255, 0.3)", d.target.style.borderColor = "#60a5fa";
104
104
  },
105
- onBlur: (u) => {
106
- u.target.style.boxShadow = "none", u.target.style.borderColor = n.fontColor;
105
+ onBlur: (d) => {
106
+ d.target.style.boxShadow = "none", d.target.style.borderColor = n.fontColor;
107
107
  }
108
108
  }
109
109
  ),
@@ -114,22 +114,23 @@ const At = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
114
114
  disabled: t || !r.trim(),
115
115
  style: c,
116
116
  "aria-label": "Send message",
117
- onMouseEnter: (u) => {
118
- !t && r.trim() && (u.currentTarget.style.transform = "translateY(-2px)", u.currentTarget.style.boxShadow = "0 8px 16px rgba(0,0,0,0.15)");
117
+ onMouseEnter: (d) => {
118
+ !t && r.trim() && (d.currentTarget.style.transform = "translateY(-2px)", d.currentTarget.style.boxShadow = "0 8px 16px rgba(0,0,0,0.15)");
119
119
  },
120
- onMouseLeave: (u) => {
121
- u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = "none";
120
+ onMouseLeave: (d) => {
121
+ d.currentTarget.style.transform = "translateY(0)", d.currentTarget.style.boxShadow = "none";
122
122
  },
123
- children: /* @__PURE__ */ y(Xe, { size: 18 })
123
+ children: /* @__PURE__ */ y(Ge, { size: 18 })
124
124
  }
125
125
  )
126
126
  ] }) });
127
127
  }, Ft = ({ messages: e, isLoading: t, theme: n }) => {
128
- const r = St(null), o = () => {
128
+ console.log("messages", e);
129
+ const r = Et(null), o = () => {
129
130
  r.current?.scrollIntoView({ behavior: "smooth" });
130
131
  };
131
- function i(u) {
132
- return new Date(u).toLocaleString("en-AU", {
132
+ function i(d) {
133
+ return new Date(d).toLocaleString("en-AU", {
133
134
  day: "numeric",
134
135
  month: "short",
135
136
  year: "numeric",
@@ -137,7 +138,7 @@ const At = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
137
138
  minute: "2-digit"
138
139
  });
139
140
  }
140
- Et(() => {
141
+ Ke(() => {
141
142
  o();
142
143
  }, [e, t]);
143
144
  const s = {
@@ -150,33 +151,33 @@ const At = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
150
151
  display: "flex",
151
152
  flexDirection: "column",
152
153
  gap: "16px"
153
- }, l = (u) => ({
154
+ }, l = (d) => ({
154
155
  display: "flex",
155
- justifyContent: u === "user" ? "flex-end" : "flex-start",
156
+ justifyContent: d === "user" ? "flex-end" : "flex-start",
156
157
  width: "100%"
157
158
  }), p = {
158
159
  display: "flex",
159
160
  flexDirection: "column",
160
161
  maxWidth: "80%"
161
- }, d = (u) => ({
162
+ }, u = (d) => ({
162
163
  padding: "12px 16px",
163
164
  borderRadius: "16px",
164
165
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)",
165
166
  border: "1px solid #e4e4e7",
166
167
  fontSize: "14px",
167
168
  lineHeight: "1.5",
168
- background: u === "user" ? n.primaryColor : n.backgroundColor,
169
+ background: d === "user" ? n.primaryColor : n.backgroundColor,
169
170
  color: n.fontColor,
170
171
  wordWrap: "break-word"
171
172
  }), c = {
172
- ...d("bot"),
173
+ ...u("bot"),
173
174
  animation: "fadeIn 0.3s ease-in-out, pulse 1.5s ease-in-out infinite",
174
175
  animationDelay: "0s, 0.3s"
175
176
  };
176
- return /* @__PURE__ */ O("div", { style: s, children: [
177
- e.map((u, g) => /* @__PURE__ */ y("div", { style: l(u.type), children: /* @__PURE__ */ O("div", { style: p, children: [
178
- u.type === "bot" && u.response_timestamp && /* @__PURE__ */ O("div", { style: { display: "flex", alignItems: "center", gap: "4px", justifyContent: "flex-start", marginLeft: "4px", marginBottom: "2px" }, children: [
179
- /* @__PURE__ */ y(Pe, { size: 14, color: n.fontColor }),
177
+ return /* @__PURE__ */ k("div", { style: s, children: [
178
+ e.map((d, b) => /* @__PURE__ */ y("div", { style: l(d.sender_type), children: /* @__PURE__ */ k("div", { style: p, children: [
179
+ d.sender_type === "bot" && d.created_at && /* @__PURE__ */ k("div", { style: { display: "flex", alignItems: "center", gap: "4px", justifyContent: "flex-start", marginLeft: "4px", marginBottom: "2px" }, children: [
180
+ /* @__PURE__ */ y(Ne, { size: 14, color: n.fontColor }),
180
181
  /* @__PURE__ */ y(
181
182
  "span",
182
183
  {
@@ -185,11 +186,11 @@ const At = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
185
186
  opacity: 0.55,
186
187
  color: n.fontColor
187
188
  },
188
- children: i(u.response_timestamp)
189
+ children: i(d.created_at)
189
190
  }
190
191
  )
191
192
  ] }),
192
- u.type === "user" && /* @__PURE__ */ y("div", { style: { display: "flex", alignItems: "center", gap: "4px", justifyContent: "flex-end", marginRight: "4px", marginBottom: "2px" }, children: /* @__PURE__ */ y(
193
+ d.sender_type === "user" && /* @__PURE__ */ y("div", { style: { display: "flex", alignItems: "center", gap: "4px", justifyContent: "flex-end", marginRight: "4px", marginBottom: "2px" }, children: /* @__PURE__ */ y(
193
194
  "span",
194
195
  {
195
196
  style: {
@@ -200,43 +201,43 @@ const At = ({ onMinimise: e, isOpen: t, theme: n, chatBotData: r }) => {
200
201
  children: "You"
201
202
  }
202
203
  ) }),
203
- /* @__PURE__ */ y("div", { style: d(u.type), children: u.text })
204
- ] }) }, g)),
205
- t && /* @__PURE__ */ y("div", { style: l("bot"), children: /* @__PURE__ */ O("div", { style: {
204
+ /* @__PURE__ */ y("div", { style: u(d.sender_type), children: d.message })
205
+ ] }) }, b)),
206
+ t && /* @__PURE__ */ y("div", { style: l("bot"), children: /* @__PURE__ */ k("div", { style: {
206
207
  ...c,
207
208
  display: "flex",
208
209
  alignItems: "center",
209
210
  gap: "8px"
210
211
  }, children: [
211
- /* @__PURE__ */ y(Pe, { size: 24 }),
212
+ /* @__PURE__ */ y(Ne, { size: 24 }),
212
213
  /* @__PURE__ */ y("span", { children: "Typing..." })
213
214
  ] }) }),
214
215
  /* @__PURE__ */ y("div", { ref: r })
215
216
  ] });
216
217
  };
217
- function Ge(e, t) {
218
+ function Ye(e, t) {
218
219
  return function() {
219
220
  return e.apply(t, arguments);
220
221
  };
221
222
  }
222
- const { toString: Nt } = Object.prototype, { getPrototypeOf: Ce } = Object, { iterator: ue, toStringTag: Ye } = Symbol, de = /* @__PURE__ */ ((e) => (t) => {
223
- const n = Nt.call(t);
223
+ const { toString: Pt } = Object.prototype, { getPrototypeOf: Re } = Object, { iterator: de, toStringTag: Qe } = Symbol, fe = /* @__PURE__ */ ((e) => (t) => {
224
+ const n = Pt.call(t);
224
225
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
225
- })(/* @__PURE__ */ Object.create(null)), I = (e) => (e = e.toLowerCase(), (t) => de(t) === e), fe = (e) => (t) => typeof t === e, { isArray: G } = Array, X = fe("undefined");
226
+ })(/* @__PURE__ */ Object.create(null)), L = (e) => (e = e.toLowerCase(), (t) => fe(t) === e), pe = (e) => (t) => typeof t === e, { isArray: X } = Array, K = pe("undefined");
226
227
  function Z(e) {
227
- return e !== null && !X(e) && e.constructor !== null && !X(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
228
+ return e !== null && !K(e) && e.constructor !== null && !K(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
228
229
  }
229
- const Qe = I("ArrayBuffer");
230
- function Pt(e) {
230
+ const Ze = L("ArrayBuffer");
231
+ function Nt(e) {
231
232
  let t;
232
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Qe(e.buffer), t;
233
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ze(e.buffer), t;
233
234
  }
234
- const _t = fe("string"), _ = fe("function"), Ze = fe("number"), ee = (e) => e !== null && typeof e == "object", Ut = (e) => e === !0 || e === !1, ie = (e) => {
235
- if (de(e) !== "object")
235
+ const _t = pe("string"), _ = pe("function"), et = pe("number"), ee = (e) => e !== null && typeof e == "object", Ut = (e) => e === !0 || e === !1, ie = (e) => {
236
+ if (fe(e) !== "object")
236
237
  return !1;
237
- const t = Ce(e);
238
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ye in e) && !(ue in e);
239
- }, Lt = (e) => {
238
+ const t = Re(e);
239
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Qe in e) && !(de in e);
240
+ }, It = (e) => {
240
241
  if (!ee(e) || Z(e))
241
242
  return !1;
242
243
  try {
@@ -244,16 +245,16 @@ const _t = fe("string"), _ = fe("function"), Ze = fe("number"), ee = (e) => e !=
244
245
  } catch {
245
246
  return !1;
246
247
  }
247
- }, Bt = I("Date"), It = I("File"), Dt = I("Blob"), jt = I("FileList"), vt = (e) => ee(e) && _(e.pipe), zt = (e) => {
248
+ }, Lt = L("Date"), Dt = L("File"), Bt = L("Blob"), jt = L("FileList"), vt = (e) => ee(e) && _(e.pipe), zt = (e) => {
248
249
  let t;
249
- return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = de(e)) === "formdata" || // detect form-data instance
250
+ return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = fe(e)) === "formdata" || // detect form-data instance
250
251
  t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
251
- }, Mt = I("URLSearchParams"), [qt, Ht, $t, Wt] = ["ReadableStream", "Request", "Response", "Headers"].map(I), Jt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
252
+ }, Ht = L("URLSearchParams"), [Mt, qt, $t, Wt] = ["ReadableStream", "Request", "Response", "Headers"].map(L), Jt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
252
253
  function te(e, t, { allOwnKeys: n = !1 } = {}) {
253
254
  if (e === null || typeof e > "u")
254
255
  return;
255
256
  let r, o;
256
- if (typeof e != "object" && (e = [e]), G(e))
257
+ if (typeof e != "object" && (e = [e]), X(e))
257
258
  for (r = 0, o = e.length; r < o; r++)
258
259
  t.call(null, e[r], r, e);
259
260
  else {
@@ -265,7 +266,7 @@ function te(e, t, { allOwnKeys: n = !1 } = {}) {
265
266
  l = i[r], t.call(null, e[l], l, e);
266
267
  }
267
268
  }
268
- function et(e, t) {
269
+ function tt(e, t) {
269
270
  if (Z(e))
270
271
  return null;
271
272
  t = t.toLowerCase();
@@ -276,18 +277,18 @@ function et(e, t) {
276
277
  return o;
277
278
  return null;
278
279
  }
279
- const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, tt = (e) => !X(e) && e !== q;
280
- function xe() {
281
- const { caseless: e, skipUndefined: t } = tt(this) && this || {}, n = {}, r = (o, i) => {
282
- const s = e && et(n, i) || i;
283
- ie(n[s]) && ie(o) ? n[s] = xe(n[s], o) : ie(o) ? n[s] = xe({}, o) : G(o) ? n[s] = o.slice() : (!t || !X(o)) && (n[s] = o);
280
+ const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, nt = (e) => !K(e) && e !== H;
281
+ function we() {
282
+ const { caseless: e, skipUndefined: t } = nt(this) && this || {}, n = {}, r = (o, i) => {
283
+ const s = e && tt(n, i) || i;
284
+ ie(n[s]) && ie(o) ? n[s] = we(n[s], o) : ie(o) ? n[s] = we({}, o) : X(o) ? n[s] = o.slice() : (!t || !K(o)) && (n[s] = o);
284
285
  };
285
286
  for (let o = 0, i = arguments.length; o < i; o++)
286
287
  arguments[o] && te(arguments[o], r);
287
288
  return n;
288
289
  }
289
290
  const Vt = (e, t, n, { allOwnKeys: r } = {}) => (te(t, (o, i) => {
290
- n && _(o) ? e[i] = Ge(o, n) : e[i] = o;
291
+ n && _(o) ? e[i] = Ye(o, n) : e[i] = o;
291
292
  }, { allOwnKeys: r }), e), Kt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Xt = (e, t, n, r) => {
292
293
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
293
294
  value: t.prototype
@@ -299,7 +300,7 @@ const Vt = (e, t, n, { allOwnKeys: r } = {}) => (te(t, (o, i) => {
299
300
  do {
300
301
  for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0; )
301
302
  s = o[i], (!r || r(s, e, t)) && !l[s] && (t[s] = e[s], l[s] = !0);
302
- e = n !== !1 && Ce(e);
303
+ e = n !== !1 && Re(e);
303
304
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
304
305
  return t;
305
306
  }, Yt = (e, t, n) => {
@@ -308,15 +309,15 @@ const Vt = (e, t, n, { allOwnKeys: r } = {}) => (te(t, (o, i) => {
308
309
  return r !== -1 && r === n;
309
310
  }, Qt = (e) => {
310
311
  if (!e) return null;
311
- if (G(e)) return e;
312
+ if (X(e)) return e;
312
313
  let t = e.length;
313
- if (!Ze(t)) return null;
314
+ if (!et(t)) return null;
314
315
  const n = new Array(t);
315
316
  for (; t-- > 0; )
316
317
  n[t] = e[t];
317
318
  return n;
318
- }, Zt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ce(Uint8Array)), en = (e, t) => {
319
- const r = (e && e[ue]).call(e);
319
+ }, Zt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Re(Uint8Array)), en = (e, t) => {
320
+ const r = (e && e[de]).call(e);
320
321
  let o;
321
322
  for (; (o = r.next()) && !o.done; ) {
322
323
  const i = o.value;
@@ -328,19 +329,19 @@ const Vt = (e, t, n, { allOwnKeys: r } = {}) => (te(t, (o, i) => {
328
329
  for (; (n = e.exec(t)) !== null; )
329
330
  r.push(n);
330
331
  return r;
331
- }, nn = I("HTMLFormElement"), rn = (e) => e.toLowerCase().replace(
332
+ }, nn = L("HTMLFormElement"), rn = (e) => e.toLowerCase().replace(
332
333
  /[-_\s]([a-z\d])(\w*)/g,
333
334
  function(n, r, o) {
334
335
  return r.toUpperCase() + o;
335
336
  }
336
- ), _e = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), on = I("RegExp"), nt = (e, t) => {
337
+ ), _e = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), on = L("RegExp"), rt = (e, t) => {
337
338
  const n = Object.getOwnPropertyDescriptors(e), r = {};
338
339
  te(n, (o, i) => {
339
340
  let s;
340
341
  (s = t(o, i, e)) !== !1 && (r[i] = s || o);
341
342
  }), Object.defineProperties(e, r);
342
343
  }, sn = (e) => {
343
- nt(e, (t, n) => {
344
+ rt(e, (t, n) => {
344
345
  if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
345
346
  return !1;
346
347
  const r = e[n];
@@ -360,11 +361,11 @@ const Vt = (e, t, n, { allOwnKeys: r } = {}) => (te(t, (o, i) => {
360
361
  n[i] = !0;
361
362
  });
362
363
  };
363
- return G(e) ? r(e) : r(String(e).split(t)), n;
364
+ return X(e) ? r(e) : r(String(e).split(t)), n;
364
365
  }, ln = () => {
365
366
  }, cn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
366
367
  function un(e) {
367
- return !!(e && _(e.append) && e[Ye] === "FormData" && e[ue]);
368
+ return !!(e && _(e.append) && e[Qe] === "FormData" && e[de]);
368
369
  }
369
370
  const dn = (e) => {
370
371
  const t = new Array(10), n = (r, o) => {
@@ -375,58 +376,58 @@ const dn = (e) => {
375
376
  return r;
376
377
  if (!("toJSON" in r)) {
377
378
  t[o] = r;
378
- const i = G(r) ? [] : {};
379
+ const i = X(r) ? [] : {};
379
380
  return te(r, (s, l) => {
380
381
  const p = n(s, o + 1);
381
- !X(p) && (i[l] = p);
382
+ !K(p) && (i[l] = p);
382
383
  }), t[o] = void 0, i;
383
384
  }
384
385
  }
385
386
  return r;
386
387
  };
387
388
  return n(e, 0);
388
- }, fn = I("AsyncFunction"), pn = (e) => e && (ee(e) || _(e)) && _(e.then) && _(e.catch), rt = ((e, t) => e ? setImmediate : t ? ((n, r) => (q.addEventListener("message", ({ source: o, data: i }) => {
389
- o === q && i === n && r.length && r.shift()();
389
+ }, fn = L("AsyncFunction"), pn = (e) => e && (ee(e) || _(e)) && _(e.then) && _(e.catch), ot = ((e, t) => e ? setImmediate : t ? ((n, r) => (H.addEventListener("message", ({ source: o, data: i }) => {
390
+ o === H && i === n && r.length && r.shift()();
390
391
  }, !1), (o) => {
391
- r.push(o), q.postMessage(n, "*");
392
+ r.push(o), H.postMessage(n, "*");
392
393
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
393
394
  typeof setImmediate == "function",
394
- _(q.postMessage)
395
- ), hn = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick || rt, mn = (e) => e != null && _(e[ue]), a = {
396
- isArray: G,
397
- isArrayBuffer: Qe,
395
+ _(H.postMessage)
396
+ ), hn = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || ot, mn = (e) => e != null && _(e[de]), a = {
397
+ isArray: X,
398
+ isArrayBuffer: Ze,
398
399
  isBuffer: Z,
399
400
  isFormData: zt,
400
- isArrayBufferView: Pt,
401
+ isArrayBufferView: Nt,
401
402
  isString: _t,
402
- isNumber: Ze,
403
+ isNumber: et,
403
404
  isBoolean: Ut,
404
405
  isObject: ee,
405
406
  isPlainObject: ie,
406
- isEmptyObject: Lt,
407
- isReadableStream: qt,
408
- isRequest: Ht,
407
+ isEmptyObject: It,
408
+ isReadableStream: Mt,
409
+ isRequest: qt,
409
410
  isResponse: $t,
410
411
  isHeaders: Wt,
411
- isUndefined: X,
412
- isDate: Bt,
413
- isFile: It,
414
- isBlob: Dt,
412
+ isUndefined: K,
413
+ isDate: Lt,
414
+ isFile: Dt,
415
+ isBlob: Bt,
415
416
  isRegExp: on,
416
417
  isFunction: _,
417
418
  isStream: vt,
418
- isURLSearchParams: Mt,
419
+ isURLSearchParams: Ht,
419
420
  isTypedArray: Zt,
420
421
  isFileList: jt,
421
422
  forEach: te,
422
- merge: xe,
423
+ merge: we,
423
424
  extend: Vt,
424
425
  trim: Jt,
425
426
  stripBOM: Kt,
426
427
  inherits: Xt,
427
428
  toFlatObject: Gt,
428
- kindOf: de,
429
- kindOfTest: I,
429
+ kindOf: fe,
430
+ kindOfTest: L,
430
431
  endsWith: Yt,
431
432
  toArray: Qt,
432
433
  forEachEntry: en,
@@ -435,27 +436,27 @@ const dn = (e) => {
435
436
  hasOwnProperty: _e,
436
437
  hasOwnProp: _e,
437
438
  // an alias to avoid ESLint no-prototype-builtins detection
438
- reduceDescriptors: nt,
439
+ reduceDescriptors: rt,
439
440
  freezeMethods: sn,
440
441
  toObjectSet: an,
441
442
  toCamelCase: rn,
442
443
  noop: ln,
443
444
  toFiniteNumber: cn,
444
- findKey: et,
445
- global: q,
446
- isContextDefined: tt,
445
+ findKey: tt,
446
+ global: H,
447
+ isContextDefined: nt,
447
448
  isSpecCompliantForm: un,
448
449
  toJSONObject: dn,
449
450
  isAsyncFn: fn,
450
451
  isThenable: pn,
451
- setImmediate: rt,
452
+ setImmediate: ot,
452
453
  asap: hn,
453
454
  isIterable: mn
454
455
  };
455
- function b(e, t, n, r, o) {
456
+ function g(e, t, n, r, o) {
456
457
  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), o && (this.response = o, this.status = o.status ? o.status : null);
457
458
  }
458
- a.inherits(b, Error, {
459
+ a.inherits(g, Error, {
459
460
  toJSON: function() {
460
461
  return {
461
462
  // Standard
@@ -476,7 +477,7 @@ a.inherits(b, Error, {
476
477
  };
477
478
  }
478
479
  });
479
- const ot = b.prototype, st = {};
480
+ const st = g.prototype, it = {};
480
481
  [
481
482
  "ERR_BAD_OPTION_VALUE",
482
483
  "ERR_BAD_OPTION",
@@ -492,37 +493,37 @@ const ot = b.prototype, st = {};
492
493
  "ERR_INVALID_URL"
493
494
  // eslint-disable-next-line func-names
494
495
  ].forEach((e) => {
495
- st[e] = { value: e };
496
+ it[e] = { value: e };
496
497
  });
497
- Object.defineProperties(b, st);
498
- Object.defineProperty(ot, "isAxiosError", { value: !0 });
499
- b.from = (e, t, n, r, o, i) => {
500
- const s = Object.create(ot);
498
+ Object.defineProperties(g, it);
499
+ Object.defineProperty(st, "isAxiosError", { value: !0 });
500
+ g.from = (e, t, n, r, o, i) => {
501
+ const s = Object.create(st);
501
502
  a.toFlatObject(e, s, function(c) {
502
503
  return c !== Error.prototype;
503
- }, (d) => d !== "isAxiosError");
504
+ }, (u) => u !== "isAxiosError");
504
505
  const l = e && e.message ? e.message : "Error", p = t == null && e ? e.code : t;
505
- return b.call(s, l, p, n, r, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", i && Object.assign(s, i), s;
506
+ return g.call(s, l, p, n, r, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", i && Object.assign(s, i), s;
506
507
  };
507
508
  const yn = null;
508
- function we(e) {
509
+ function Se(e) {
509
510
  return a.isPlainObject(e) || a.isArray(e);
510
511
  }
511
- function it(e) {
512
+ function at(e) {
512
513
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
513
514
  }
514
515
  function Ue(e, t, n) {
515
516
  return e ? e.concat(t).map(function(o, i) {
516
- return o = it(o), !n && i ? "[" + o + "]" : o;
517
+ return o = at(o), !n && i ? "[" + o + "]" : o;
517
518
  }).join(n ? "." : "") : t;
518
519
  }
519
- function bn(e) {
520
- return a.isArray(e) && !e.some(we);
520
+ function gn(e) {
521
+ return a.isArray(e) && !e.some(Se);
521
522
  }
522
- const gn = a.toFlatObject(a, {}, null, function(t) {
523
+ const bn = a.toFlatObject(a, {}, null, function(t) {
523
524
  return /^is[A-Z]/.test(t);
524
525
  });
525
- function pe(e, t, n) {
526
+ function he(e, t, n) {
526
527
  if (!a.isObject(e))
527
528
  throw new TypeError("target must be an object");
528
529
  t = t || new FormData(), n = a.toFlatObject(n, {
@@ -535,14 +536,14 @@ function pe(e, t, n) {
535
536
  const r = n.metaTokens, o = n.visitor || c, i = n.dots, s = n.indexes, p = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
536
537
  if (!a.isFunction(o))
537
538
  throw new TypeError("visitor must be a function");
538
- function d(f) {
539
+ function u(f) {
539
540
  if (f === null) return "";
540
541
  if (a.isDate(f))
541
542
  return f.toISOString();
542
543
  if (a.isBoolean(f))
543
544
  return f.toString();
544
545
  if (!p && a.isBlob(f))
545
- throw new b("Blob is not supported. Use a Buffer instead.");
546
+ throw new g("Blob is not supported. Use a Buffer instead.");
546
547
  return a.isArrayBuffer(f) || a.isTypedArray(f) ? p && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
547
548
  }
548
549
  function c(f, m, h) {
@@ -550,42 +551,42 @@ function pe(e, t, n) {
550
551
  if (f && !h && typeof f == "object") {
551
552
  if (a.endsWith(m, "{}"))
552
553
  m = r ? m : m.slice(0, -2), f = JSON.stringify(f);
553
- else if (a.isArray(f) && bn(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (S = a.toArray(f)))
554
- return m = it(m), S.forEach(function(w, C) {
554
+ else if (a.isArray(f) && gn(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (S = a.toArray(f)))
555
+ return m = at(m), S.forEach(function(w, A) {
555
556
  !(a.isUndefined(w) || w === null) && t.append(
556
557
  // eslint-disable-next-line no-nested-ternary
557
- s === !0 ? Ue([m], C, i) : s === null ? m : m + "[]",
558
- d(w)
558
+ s === !0 ? Ue([m], A, i) : s === null ? m : m + "[]",
559
+ u(w)
559
560
  );
560
561
  }), !1;
561
562
  }
562
- return we(f) ? !0 : (t.append(Ue(h, m, i), d(f)), !1);
563
+ return Se(f) ? !0 : (t.append(Ue(h, m, i), u(f)), !1);
563
564
  }
564
- const u = [], g = Object.assign(gn, {
565
+ const d = [], b = Object.assign(bn, {
565
566
  defaultVisitor: c,
566
- convertValue: d,
567
- isVisitable: we
567
+ convertValue: u,
568
+ isVisitable: Se
568
569
  });
569
- function E(f, m) {
570
+ function C(f, m) {
570
571
  if (!a.isUndefined(f)) {
571
- if (u.indexOf(f) !== -1)
572
+ if (d.indexOf(f) !== -1)
572
573
  throw Error("Circular reference detected in " + m.join("."));
573
- u.push(f), a.forEach(f, function(S, A) {
574
+ d.push(f), a.forEach(f, function(S, O) {
574
575
  (!(a.isUndefined(S) || S === null) && o.call(
575
576
  t,
576
577
  S,
577
- a.isString(A) ? A.trim() : A,
578
+ a.isString(O) ? O.trim() : O,
578
579
  m,
579
- g
580
- )) === !0 && E(S, m ? m.concat(A) : [A]);
581
- }), u.pop();
580
+ b
581
+ )) === !0 && C(S, m ? m.concat(O) : [O]);
582
+ }), d.pop();
582
583
  }
583
584
  }
584
585
  if (!a.isObject(e))
585
586
  throw new TypeError("data must be an object");
586
- return E(e), t;
587
+ return C(e), t;
587
588
  }
588
- function Le(e) {
589
+ function Ie(e) {
589
590
  const t = {
590
591
  "!": "%21",
591
592
  "'": "%27",
@@ -600,16 +601,16 @@ function Le(e) {
600
601
  });
601
602
  }
602
603
  function Te(e, t) {
603
- this._pairs = [], e && pe(e, this, t);
604
+ this._pairs = [], e && he(e, this, t);
604
605
  }
605
- const at = Te.prototype;
606
- at.append = function(t, n) {
606
+ const lt = Te.prototype;
607
+ lt.append = function(t, n) {
607
608
  this._pairs.push([t, n]);
608
609
  };
609
- at.toString = function(t) {
610
+ lt.toString = function(t) {
610
611
  const n = t ? function(r) {
611
- return t.call(this, r, Le);
612
- } : Le;
612
+ return t.call(this, r, Ie);
613
+ } : Ie;
613
614
  return this._pairs.map(function(o) {
614
615
  return n(o[0]) + "=" + n(o[1]);
615
616
  }, "").join("&");
@@ -617,7 +618,7 @@ at.toString = function(t) {
617
618
  function xn(e) {
618
619
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
619
620
  }
620
- function lt(e, t, n) {
621
+ function ct(e, t, n) {
621
622
  if (!t)
622
623
  return e;
623
624
  const r = n && n.encode || xn;
@@ -632,7 +633,7 @@ function lt(e, t, n) {
632
633
  }
633
634
  return e;
634
635
  }
635
- class Be {
636
+ class Le {
636
637
  constructor() {
637
638
  this.handlers = [];
638
639
  }
@@ -686,11 +687,11 @@ class Be {
686
687
  });
687
688
  }
688
689
  }
689
- const ct = {
690
+ const ut = {
690
691
  silentJSONParsing: !0,
691
692
  forcedJSONParsing: !0,
692
693
  clarifyTimeoutError: !1
693
- }, wn = typeof URLSearchParams < "u" ? URLSearchParams : Te, Sn = typeof FormData < "u" ? FormData : null, En = typeof Blob < "u" ? Blob : null, Rn = {
694
+ }, wn = typeof URLSearchParams < "u" ? URLSearchParams : Te, Sn = typeof FormData < "u" ? FormData : null, En = typeof Blob < "u" ? Blob : null, Cn = {
694
695
  isBrowser: !0,
695
696
  classes: {
696
697
  URLSearchParams: wn,
@@ -698,20 +699,20 @@ const ct = {
698
699
  Blob: En
699
700
  },
700
701
  protocols: ["http", "https", "file", "blob", "url", "data"]
701
- }, Oe = typeof window < "u" && typeof document < "u", Se = typeof navigator == "object" && navigator || void 0, Cn = Oe && (!Se || ["ReactNative", "NativeScript", "NS"].indexOf(Se.product) < 0), Tn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
702
+ }, Oe = typeof window < "u" && typeof document < "u", Ee = typeof navigator == "object" && navigator || void 0, Rn = Oe && (!Ee || ["ReactNative", "NativeScript", "NS"].indexOf(Ee.product) < 0), Tn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
702
703
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", On = Oe && window.location.href || "http://localhost", An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
703
704
  __proto__: null,
704
705
  hasBrowserEnv: Oe,
705
- hasStandardBrowserEnv: Cn,
706
+ hasStandardBrowserEnv: Rn,
706
707
  hasStandardBrowserWebWorkerEnv: Tn,
707
- navigator: Se,
708
+ navigator: Ee,
708
709
  origin: On
709
710
  }, Symbol.toStringTag, { value: "Module" })), N = {
710
711
  ...An,
711
- ...Rn
712
+ ...Cn
712
713
  };
713
714
  function kn(e, t) {
714
- return pe(e, new N.classes.URLSearchParams(), {
715
+ return he(e, new N.classes.URLSearchParams(), {
715
716
  visitor: function(n, r, o, i) {
716
717
  return N.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
717
718
  },
@@ -721,7 +722,7 @@ function kn(e, t) {
721
722
  function Fn(e) {
722
723
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
723
724
  }
724
- function Nn(e) {
725
+ function Pn(e) {
725
726
  const t = {}, n = Object.keys(e);
726
727
  let r;
727
728
  const o = n.length;
@@ -730,12 +731,12 @@ function Nn(e) {
730
731
  i = n[r], t[i] = e[i];
731
732
  return t;
732
733
  }
733
- function ut(e) {
734
+ function dt(e) {
734
735
  function t(n, r, o, i) {
735
736
  let s = n[i++];
736
737
  if (s === "__proto__") return !0;
737
738
  const l = Number.isFinite(+s), p = i >= n.length;
738
- return s = !s && a.isArray(o) ? o.length : s, p ? (a.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !l) : ((!o[s] || !a.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && a.isArray(o[s]) && (o[s] = Nn(o[s])), !l);
739
+ return s = !s && a.isArray(o) ? o.length : s, p ? (a.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !l) : ((!o[s] || !a.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && a.isArray(o[s]) && (o[s] = Pn(o[s])), !l);
739
740
  }
740
741
  if (a.isFormData(e) && a.isFunction(e.entries)) {
741
742
  const n = {};
@@ -745,7 +746,7 @@ function ut(e) {
745
746
  }
746
747
  return null;
747
748
  }
748
- function Pn(e, t, n) {
749
+ function Nn(e, t, n) {
749
750
  if (a.isString(e))
750
751
  try {
751
752
  return (t || JSON.parse)(e), a.trim(e);
@@ -756,12 +757,12 @@ function Pn(e, t, n) {
756
757
  return (n || JSON.stringify)(e);
757
758
  }
758
759
  const ne = {
759
- transitional: ct,
760
+ transitional: ut,
760
761
  adapter: ["xhr", "http", "fetch"],
761
762
  transformRequest: [function(t, n) {
762
763
  const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, i = a.isObject(t);
763
764
  if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
764
- return o ? JSON.stringify(ut(t)) : t;
765
+ return o ? JSON.stringify(dt(t)) : t;
765
766
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
766
767
  return t;
767
768
  if (a.isArrayBufferView(t))
@@ -774,14 +775,14 @@ const ne = {
774
775
  return kn(t, this.formSerializer).toString();
775
776
  if ((l = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
776
777
  const p = this.env && this.env.FormData;
777
- return pe(
778
+ return he(
778
779
  l ? { "files[]": t } : t,
779
780
  p && new p(),
780
781
  this.formSerializer
781
782
  );
782
783
  }
783
784
  }
784
- return i || o ? (n.setContentType("application/json", !1), Pn(t)) : t;
785
+ return i || o ? (n.setContentType("application/json", !1), Nn(t)) : t;
785
786
  }],
786
787
  transformResponse: [function(t) {
787
788
  const n = this.transitional || ne.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
@@ -793,7 +794,7 @@ const ne = {
793
794
  return JSON.parse(t, this.parseReviver);
794
795
  } catch (l) {
795
796
  if (s)
796
- throw l.name === "SyntaxError" ? b.from(l, b.ERR_BAD_RESPONSE, this, null, this.response) : l;
797
+ throw l.name === "SyntaxError" ? g.from(l, g.ERR_BAD_RESPONSE, this, null, this.response) : l;
797
798
  }
798
799
  }
799
800
  return t;
@@ -849,22 +850,22 @@ const _n = a.toObjectSet([
849
850
  `).forEach(function(s) {
850
851
  o = s.indexOf(":"), n = s.substring(0, o).trim().toLowerCase(), r = s.substring(o + 1).trim(), !(!n || t[n] && _n[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
851
852
  }), t;
852
- }, Ie = Symbol("internals");
853
+ }, De = Symbol("internals");
853
854
  function Q(e) {
854
855
  return e && String(e).trim().toLowerCase();
855
856
  }
856
857
  function ae(e) {
857
858
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(ae) : String(e);
858
859
  }
859
- function Ln(e) {
860
+ function In(e) {
860
861
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
861
862
  let r;
862
863
  for (; r = n.exec(e); )
863
864
  t[r[1]] = r[2];
864
865
  return t;
865
866
  }
866
- const Bn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
867
- function ye(e, t, n, r, o) {
867
+ const Ln = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
868
+ function ge(e, t, n, r, o) {
868
869
  if (a.isFunction(r))
869
870
  return r.call(this, t, n);
870
871
  if (o && (t = n), !!a.isString(t)) {
@@ -874,10 +875,10 @@ function ye(e, t, n, r, o) {
874
875
  return r.test(t);
875
876
  }
876
877
  }
877
- function In(e) {
878
+ function Dn(e) {
878
879
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
879
880
  }
880
- function Dn(e, t) {
881
+ function Bn(e, t) {
881
882
  const n = a.toCamelCase(" " + t);
882
883
  ["get", "set", "has"].forEach((r) => {
883
884
  Object.defineProperty(e, r + n, {
@@ -894,24 +895,24 @@ let U = class {
894
895
  }
895
896
  set(t, n, r) {
896
897
  const o = this;
897
- function i(l, p, d) {
898
+ function i(l, p, u) {
898
899
  const c = Q(p);
899
900
  if (!c)
900
901
  throw new Error("header name must be a non-empty string");
901
- const u = a.findKey(o, c);
902
- (!u || o[u] === void 0 || d === !0 || d === void 0 && o[u] !== !1) && (o[u || p] = ae(l));
902
+ const d = a.findKey(o, c);
903
+ (!d || o[d] === void 0 || u === !0 || u === void 0 && o[d] !== !1) && (o[d || p] = ae(l));
903
904
  }
904
- const s = (l, p) => a.forEach(l, (d, c) => i(d, c, p));
905
+ const s = (l, p) => a.forEach(l, (u, c) => i(u, c, p));
905
906
  if (a.isPlainObject(t) || t instanceof this.constructor)
906
907
  s(t, n);
907
- else if (a.isString(t) && (t = t.trim()) && !Bn(t))
908
+ else if (a.isString(t) && (t = t.trim()) && !Ln(t))
908
909
  s(Un(t), n);
909
910
  else if (a.isObject(t) && a.isIterable(t)) {
910
- let l = {}, p, d;
911
+ let l = {}, p, u;
911
912
  for (const c of t) {
912
913
  if (!a.isArray(c))
913
914
  throw TypeError("Object iterator must return a key-value pair");
914
- l[d = c[0]] = (p = l[d]) ? a.isArray(p) ? [...p, c[1]] : [p, c[1]] : c[1];
915
+ l[u = c[0]] = (p = l[u]) ? a.isArray(p) ? [...p, c[1]] : [p, c[1]] : c[1];
915
916
  }
916
917
  s(l, n);
917
918
  } else
@@ -926,7 +927,7 @@ let U = class {
926
927
  if (!n)
927
928
  return o;
928
929
  if (n === !0)
929
- return Ln(o);
930
+ return In(o);
930
931
  if (a.isFunction(n))
931
932
  return n.call(this, o, r);
932
933
  if (a.isRegExp(n))
@@ -938,7 +939,7 @@ let U = class {
938
939
  has(t, n) {
939
940
  if (t = Q(t), t) {
940
941
  const r = a.findKey(this, t);
941
- return !!(r && this[r] !== void 0 && (!n || ye(this, this[r], r, n)));
942
+ return !!(r && this[r] !== void 0 && (!n || ge(this, this[r], r, n)));
942
943
  }
943
944
  return !1;
944
945
  }
@@ -948,7 +949,7 @@ let U = class {
948
949
  function i(s) {
949
950
  if (s = Q(s), s) {
950
951
  const l = a.findKey(r, s);
951
- l && (!n || ye(r, r[l], l, n)) && (delete r[l], o = !0);
952
+ l && (!n || ge(r, r[l], l, n)) && (delete r[l], o = !0);
952
953
  }
953
954
  }
954
955
  return a.isArray(t) ? t.forEach(i) : i(t), o;
@@ -958,7 +959,7 @@ let U = class {
958
959
  let r = n.length, o = !1;
959
960
  for (; r--; ) {
960
961
  const i = n[r];
961
- (!t || ye(this, this[i], i, t, !0)) && (delete this[i], o = !0);
962
+ (!t || ge(this, this[i], i, t, !0)) && (delete this[i], o = !0);
962
963
  }
963
964
  return o;
964
965
  }
@@ -970,7 +971,7 @@ let U = class {
970
971
  n[s] = ae(o), delete n[i];
971
972
  return;
972
973
  }
973
- const l = t ? In(i) : String(i).trim();
974
+ const l = t ? Dn(i) : String(i).trim();
974
975
  l !== i && delete n[i], n[l] = ae(o), r[l] = !0;
975
976
  }), this;
976
977
  }
@@ -1004,12 +1005,12 @@ let U = class {
1004
1005
  return n.forEach((o) => r.set(o)), r;
1005
1006
  }
1006
1007
  static accessor(t) {
1007
- const r = (this[Ie] = this[Ie] = {
1008
+ const r = (this[De] = this[De] = {
1008
1009
  accessors: {}
1009
1010
  }).accessors, o = this.prototype;
1010
1011
  function i(s) {
1011
1012
  const l = Q(s);
1012
- r[l] || (Dn(o, s), r[l] = !0);
1013
+ r[l] || (Bn(o, s), r[l] = !0);
1013
1014
  }
1014
1015
  return a.isArray(t) ? t.forEach(i) : i(t), this;
1015
1016
  }
@@ -1032,20 +1033,20 @@ function be(e, t) {
1032
1033
  i = l.call(n, i, o.normalize(), t ? t.status : void 0);
1033
1034
  }), o.normalize(), i;
1034
1035
  }
1035
- function dt(e) {
1036
+ function ft(e) {
1036
1037
  return !!(e && e.__CANCEL__);
1037
1038
  }
1038
- function Y(e, t, n) {
1039
- b.call(this, e ?? "canceled", b.ERR_CANCELED, t, n), this.name = "CanceledError";
1039
+ function G(e, t, n) {
1040
+ g.call(this, e ?? "canceled", g.ERR_CANCELED, t, n), this.name = "CanceledError";
1040
1041
  }
1041
- a.inherits(Y, b, {
1042
+ a.inherits(G, g, {
1042
1043
  __CANCEL__: !0
1043
1044
  });
1044
- function ft(e, t, n) {
1045
+ function pt(e, t, n) {
1045
1046
  const r = n.config.validateStatus;
1046
- !n.status || !r || r(n.status) ? e(n) : t(new b(
1047
+ !n.status || !r || r(n.status) ? e(n) : t(new g(
1047
1048
  "Request failed with status code " + n.status,
1048
- [b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1049
+ [g.ERR_BAD_REQUEST, g.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1049
1050
  n.config,
1050
1051
  n.request,
1051
1052
  n
@@ -1060,59 +1061,59 @@ function vn(e, t) {
1060
1061
  const n = new Array(e), r = new Array(e);
1061
1062
  let o = 0, i = 0, s;
1062
1063
  return t = t !== void 0 ? t : 1e3, function(p) {
1063
- const d = Date.now(), c = r[i];
1064
- s || (s = d), n[o] = p, r[o] = d;
1065
- let u = i, g = 0;
1066
- for (; u !== o; )
1067
- g += n[u++], u = u % e;
1068
- if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
1064
+ const u = Date.now(), c = r[i];
1065
+ s || (s = u), n[o] = p, r[o] = u;
1066
+ let d = i, b = 0;
1067
+ for (; d !== o; )
1068
+ b += n[d++], d = d % e;
1069
+ if (o = (o + 1) % e, o === i && (i = (i + 1) % e), u - s < t)
1069
1070
  return;
1070
- const E = c && d - c;
1071
- return E ? Math.round(g * 1e3 / E) : void 0;
1071
+ const C = c && u - c;
1072
+ return C ? Math.round(b * 1e3 / C) : void 0;
1072
1073
  };
1073
1074
  }
1074
1075
  function zn(e, t) {
1075
1076
  let n = 0, r = 1e3 / t, o, i;
1076
- const s = (d, c = Date.now()) => {
1077
- n = c, o = null, i && (clearTimeout(i), i = null), e(...d);
1077
+ const s = (u, c = Date.now()) => {
1078
+ n = c, o = null, i && (clearTimeout(i), i = null), e(...u);
1078
1079
  };
1079
- return [(...d) => {
1080
- const c = Date.now(), u = c - n;
1081
- u >= r ? s(d, c) : (o = d, i || (i = setTimeout(() => {
1080
+ return [(...u) => {
1081
+ const c = Date.now(), d = c - n;
1082
+ d >= r ? s(u, c) : (o = u, i || (i = setTimeout(() => {
1082
1083
  i = null, s(o);
1083
- }, r - u)));
1084
+ }, r - d)));
1084
1085
  }, () => o && s(o)];
1085
1086
  }
1086
- const ce = (e, t, n = 3) => {
1087
+ const ue = (e, t, n = 3) => {
1087
1088
  let r = 0;
1088
1089
  const o = vn(50, 250);
1089
1090
  return zn((i) => {
1090
- const s = i.loaded, l = i.lengthComputable ? i.total : void 0, p = s - r, d = o(p), c = s <= l;
1091
+ const s = i.loaded, l = i.lengthComputable ? i.total : void 0, p = s - r, u = o(p), c = s <= l;
1091
1092
  r = s;
1092
- const u = {
1093
+ const d = {
1093
1094
  loaded: s,
1094
1095
  total: l,
1095
1096
  progress: l ? s / l : void 0,
1096
1097
  bytes: p,
1097
- rate: d || void 0,
1098
- estimated: d && l && c ? (l - s) / d : void 0,
1098
+ rate: u || void 0,
1099
+ estimated: u && l && c ? (l - s) / u : void 0,
1099
1100
  event: i,
1100
1101
  lengthComputable: l != null,
1101
1102
  [t ? "download" : "upload"]: !0
1102
1103
  };
1103
- e(u);
1104
+ e(d);
1104
1105
  }, n);
1105
- }, De = (e, t) => {
1106
+ }, Be = (e, t) => {
1106
1107
  const n = e != null;
1107
1108
  return [(r) => t[0]({
1108
1109
  lengthComputable: n,
1109
1110
  total: e,
1110
1111
  loaded: r
1111
1112
  }), t[1]];
1112
- }, je = (e) => (...t) => a.asap(() => e(...t)), Mn = N.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, N.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1113
+ }, je = (e) => (...t) => a.asap(() => e(...t)), Hn = N.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, N.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1113
1114
  new URL(N.origin),
1114
1115
  N.navigator && /(msie|trident)/i.test(N.navigator.userAgent)
1115
- ) : () => !0, qn = N.hasStandardBrowserEnv ? (
1116
+ ) : () => !0, Mn = N.hasStandardBrowserEnv ? (
1116
1117
  // Standard browser envs support document.cookie
1117
1118
  {
1118
1119
  write(e, t, n, r, o, i, s) {
@@ -1141,44 +1142,44 @@ const ce = (e, t, n = 3) => {
1141
1142
  }
1142
1143
  }
1143
1144
  );
1144
- function Hn(e) {
1145
+ function qn(e) {
1145
1146
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1146
1147
  }
1147
1148
  function $n(e, t) {
1148
1149
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1149
1150
  }
1150
- function pt(e, t, n) {
1151
- let r = !Hn(t);
1151
+ function ht(e, t, n) {
1152
+ let r = !qn(t);
1152
1153
  return e && (r || n == !1) ? $n(e, t) : t;
1153
1154
  }
1154
1155
  const ve = (e) => e instanceof U ? { ...e } : e;
1155
- function $(e, t) {
1156
+ function q(e, t) {
1156
1157
  t = t || {};
1157
1158
  const n = {};
1158
- function r(d, c, u, g) {
1159
- return a.isPlainObject(d) && a.isPlainObject(c) ? a.merge.call({ caseless: g }, d, c) : a.isPlainObject(c) ? a.merge({}, c) : a.isArray(c) ? c.slice() : c;
1159
+ function r(u, c, d, b) {
1160
+ return a.isPlainObject(u) && a.isPlainObject(c) ? a.merge.call({ caseless: b }, u, c) : a.isPlainObject(c) ? a.merge({}, c) : a.isArray(c) ? c.slice() : c;
1160
1161
  }
1161
- function o(d, c, u, g) {
1162
+ function o(u, c, d, b) {
1162
1163
  if (a.isUndefined(c)) {
1163
- if (!a.isUndefined(d))
1164
- return r(void 0, d, u, g);
1165
- } else return r(d, c, u, g);
1164
+ if (!a.isUndefined(u))
1165
+ return r(void 0, u, d, b);
1166
+ } else return r(u, c, d, b);
1166
1167
  }
1167
- function i(d, c) {
1168
+ function i(u, c) {
1168
1169
  if (!a.isUndefined(c))
1169
1170
  return r(void 0, c);
1170
1171
  }
1171
- function s(d, c) {
1172
+ function s(u, c) {
1172
1173
  if (a.isUndefined(c)) {
1173
- if (!a.isUndefined(d))
1174
- return r(void 0, d);
1174
+ if (!a.isUndefined(u))
1175
+ return r(void 0, u);
1175
1176
  } else return r(void 0, c);
1176
1177
  }
1177
- function l(d, c, u) {
1178
- if (u in t)
1179
- return r(d, c);
1180
- if (u in e)
1181
- return r(void 0, d);
1178
+ function l(u, c, d) {
1179
+ if (d in t)
1180
+ return r(u, c);
1181
+ if (d in e)
1182
+ return r(void 0, u);
1182
1183
  }
1183
1184
  const p = {
1184
1185
  url: i,
@@ -1209,42 +1210,42 @@ function $(e, t) {
1209
1210
  socketPath: s,
1210
1211
  responseEncoding: s,
1211
1212
  validateStatus: l,
1212
- headers: (d, c, u) => o(ve(d), ve(c), u, !0)
1213
+ headers: (u, c, d) => o(ve(u), ve(c), d, !0)
1213
1214
  };
1214
1215
  return a.forEach(Object.keys({ ...e, ...t }), function(c) {
1215
- const u = p[c] || o, g = u(e[c], t[c], c);
1216
- a.isUndefined(g) && u !== l || (n[c] = g);
1216
+ const d = p[c] || o, b = d(e[c], t[c], c);
1217
+ a.isUndefined(b) && d !== l || (n[c] = b);
1217
1218
  }), n;
1218
1219
  }
1219
- const ht = (e) => {
1220
- const t = $({}, e);
1220
+ const mt = (e) => {
1221
+ const t = q({}, e);
1221
1222
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: l } = t;
1222
- if (t.headers = s = U.from(s), t.url = lt(pt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), l && s.set(
1223
+ if (t.headers = s = U.from(s), t.url = ct(ht(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), l && s.set(
1223
1224
  "Authorization",
1224
1225
  "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
1225
1226
  ), a.isFormData(n)) {
1226
1227
  if (N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv)
1227
1228
  s.setContentType(void 0);
1228
1229
  else if (a.isFunction(n.getHeaders)) {
1229
- const p = n.getHeaders(), d = ["content-type", "content-length"];
1230
- Object.entries(p).forEach(([c, u]) => {
1231
- d.includes(c.toLowerCase()) && s.set(c, u);
1230
+ const p = n.getHeaders(), u = ["content-type", "content-length"];
1231
+ Object.entries(p).forEach(([c, d]) => {
1232
+ u.includes(c.toLowerCase()) && s.set(c, d);
1232
1233
  });
1233
1234
  }
1234
1235
  }
1235
- if (N.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Mn(t.url))) {
1236
- const p = o && i && qn.read(i);
1236
+ if (N.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Hn(t.url))) {
1237
+ const p = o && i && Mn.read(i);
1237
1238
  p && s.set(o, p);
1238
1239
  }
1239
1240
  return t;
1240
1241
  }, Wn = typeof XMLHttpRequest < "u", Jn = Wn && function(e) {
1241
1242
  return new Promise(function(n, r) {
1242
- const o = ht(e);
1243
+ const o = mt(e);
1243
1244
  let i = o.data;
1244
1245
  const s = U.from(o.headers).normalize();
1245
- let { responseType: l, onUploadProgress: p, onDownloadProgress: d } = o, c, u, g, E, f;
1246
+ let { responseType: l, onUploadProgress: p, onDownloadProgress: u } = o, c, d, b, C, f;
1246
1247
  function m() {
1247
- E && E(), f && f(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
1248
+ C && C(), f && f(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
1248
1249
  }
1249
1250
  let h = new XMLHttpRequest();
1250
1251
  h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
@@ -1253,7 +1254,7 @@ const ht = (e) => {
1253
1254
  return;
1254
1255
  const w = U.from(
1255
1256
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1256
- ), k = {
1257
+ ), P = {
1257
1258
  data: !l || l === "text" || l === "json" ? h.responseText : h.response,
1258
1259
  status: h.status,
1259
1260
  statusText: h.statusText,
@@ -1261,36 +1262,36 @@ const ht = (e) => {
1261
1262
  config: e,
1262
1263
  request: h
1263
1264
  };
1264
- ft(function(x) {
1265
- n(x), m();
1266
- }, function(x) {
1267
- r(x), m();
1268
- }, k), h = null;
1265
+ pt(function(R) {
1266
+ n(R), m();
1267
+ }, function(R) {
1268
+ r(R), m();
1269
+ }, P), h = null;
1269
1270
  }
1270
1271
  "onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
1271
1272
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
1272
1273
  }, h.onabort = function() {
1273
- h && (r(new b("Request aborted", b.ECONNABORTED, e, h)), h = null);
1274
- }, h.onerror = function(C) {
1275
- const k = C && C.message ? C.message : "Network Error", P = new b(k, b.ERR_NETWORK, e, h);
1276
- P.event = C || null, r(P), h = null;
1274
+ h && (r(new g("Request aborted", g.ECONNABORTED, e, h)), h = null);
1275
+ }, h.onerror = function(A) {
1276
+ const P = A && A.message ? A.message : "Network Error", E = new g(P, g.ERR_NETWORK, e, h);
1277
+ E.event = A || null, r(E), h = null;
1277
1278
  }, h.ontimeout = function() {
1278
- let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1279
- const k = o.transitional || ct;
1280
- o.timeoutErrorMessage && (C = o.timeoutErrorMessage), r(new b(
1281
- C,
1282
- k.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
1279
+ let A = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1280
+ const P = o.transitional || ut;
1281
+ o.timeoutErrorMessage && (A = o.timeoutErrorMessage), r(new g(
1282
+ A,
1283
+ P.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1283
1284
  e,
1284
1285
  h
1285
1286
  )), h = null;
1286
- }, i === void 0 && s.setContentType(null), "setRequestHeader" in h && a.forEach(s.toJSON(), function(C, k) {
1287
- h.setRequestHeader(k, C);
1288
- }), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), l && l !== "json" && (h.responseType = o.responseType), d && ([g, f] = ce(d, !0), h.addEventListener("progress", g)), p && h.upload && ([u, E] = ce(p), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", E)), (o.cancelToken || o.signal) && (c = (w) => {
1289
- h && (r(!w || w.type ? new Y(null, e, h) : w), h.abort(), h = null);
1287
+ }, i === void 0 && s.setContentType(null), "setRequestHeader" in h && a.forEach(s.toJSON(), function(A, P) {
1288
+ h.setRequestHeader(P, A);
1289
+ }), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), l && l !== "json" && (h.responseType = o.responseType), u && ([b, f] = ue(u, !0), h.addEventListener("progress", b)), p && h.upload && ([d, C] = ue(p), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", C)), (o.cancelToken || o.signal) && (c = (w) => {
1290
+ h && (r(!w || w.type ? new G(null, e, h) : w), h.abort(), h = null);
1290
1291
  }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
1291
- const A = jn(o.url);
1292
- if (A && N.protocols.indexOf(A) === -1) {
1293
- r(new b("Unsupported protocol " + A + ":", b.ERR_BAD_REQUEST, e));
1292
+ const O = jn(o.url);
1293
+ if (O && N.protocols.indexOf(O) === -1) {
1294
+ r(new g("Unsupported protocol " + O + ":", g.ERR_BAD_REQUEST, e));
1294
1295
  return;
1295
1296
  }
1296
1297
  h.send(i || null);
@@ -1299,22 +1300,22 @@ const ht = (e) => {
1299
1300
  const { length: n } = e = e ? e.filter(Boolean) : [];
1300
1301
  if (t || n) {
1301
1302
  let r = new AbortController(), o;
1302
- const i = function(d) {
1303
+ const i = function(u) {
1303
1304
  if (!o) {
1304
1305
  o = !0, l();
1305
- const c = d instanceof Error ? d : this.reason;
1306
- r.abort(c instanceof b ? c : new Y(c instanceof Error ? c.message : c));
1306
+ const c = u instanceof Error ? u : this.reason;
1307
+ r.abort(c instanceof g ? c : new G(c instanceof Error ? c.message : c));
1307
1308
  }
1308
1309
  };
1309
1310
  let s = t && setTimeout(() => {
1310
- s = null, i(new b(`timeout ${t} of ms exceeded`, b.ETIMEDOUT));
1311
+ s = null, i(new g(`timeout ${t} of ms exceeded`, g.ETIMEDOUT));
1311
1312
  }, t);
1312
1313
  const l = () => {
1313
- e && (s && clearTimeout(s), s = null, e.forEach((d) => {
1314
- d.unsubscribe ? d.unsubscribe(i) : d.removeEventListener("abort", i);
1314
+ e && (s && clearTimeout(s), s = null, e.forEach((u) => {
1315
+ u.unsubscribe ? u.unsubscribe(i) : u.removeEventListener("abort", i);
1315
1316
  }), e = null);
1316
1317
  };
1317
- e.forEach((d) => d.addEventListener("abort", i));
1318
+ e.forEach((u) => u.addEventListener("abort", i));
1318
1319
  const { signal: p } = r;
1319
1320
  return p.unsubscribe = () => a.asap(l), p;
1320
1321
  }
@@ -1354,19 +1355,19 @@ const ht = (e) => {
1354
1355
  return new ReadableStream({
1355
1356
  async pull(p) {
1356
1357
  try {
1357
- const { done: d, value: c } = await o.next();
1358
- if (d) {
1358
+ const { done: u, value: c } = await o.next();
1359
+ if (u) {
1359
1360
  l(), p.close();
1360
1361
  return;
1361
1362
  }
1362
- let u = c.byteLength;
1363
+ let d = c.byteLength;
1363
1364
  if (n) {
1364
- let g = i += u;
1365
- n(g);
1365
+ let b = i += d;
1366
+ n(b);
1366
1367
  }
1367
1368
  p.enqueue(new Uint8Array(c));
1368
- } catch (d) {
1369
- throw l(d), d;
1369
+ } catch (u) {
1370
+ throw l(u), u;
1370
1371
  }
1371
1372
  },
1372
1373
  cancel(p) {
@@ -1375,12 +1376,12 @@ const ht = (e) => {
1375
1376
  }, {
1376
1377
  highWaterMark: 2
1377
1378
  });
1378
- }, Me = 64 * 1024, { isFunction: se } = a, Yn = (({ Request: e, Response: t }) => ({
1379
+ }, He = 64 * 1024, { isFunction: se } = a, Yn = (({ Request: e, Response: t }) => ({
1379
1380
  Request: e,
1380
1381
  Response: t
1381
1382
  }))(a.global), {
1382
- ReadableStream: qe,
1383
- TextEncoder: He
1383
+ ReadableStream: Me,
1384
+ TextEncoder: qe
1384
1385
  } = a.global, $e = (e, ...t) => {
1385
1386
  try {
1386
1387
  return !!e(...t);
@@ -1394,28 +1395,28 @@ const ht = (e) => {
1394
1395
  const { fetch: t, Request: n, Response: r } = e, o = t ? se(t) : typeof fetch == "function", i = se(n), s = se(r);
1395
1396
  if (!o)
1396
1397
  return !1;
1397
- const l = o && se(qe), p = o && (typeof He == "function" ? /* @__PURE__ */ ((f) => (m) => f.encode(m))(new He()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())), d = i && l && $e(() => {
1398
+ const l = o && se(Me), p = o && (typeof qe == "function" ? /* @__PURE__ */ ((f) => (m) => f.encode(m))(new qe()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())), u = i && l && $e(() => {
1398
1399
  let f = !1;
1399
1400
  const m = new n(N.origin, {
1400
- body: new qe(),
1401
+ body: new Me(),
1401
1402
  method: "POST",
1402
1403
  get duplex() {
1403
1404
  return f = !0, "half";
1404
1405
  }
1405
1406
  }).headers.has("Content-Type");
1406
1407
  return f && !m;
1407
- }), c = s && l && $e(() => a.isReadableStream(new r("").body)), u = {
1408
+ }), c = s && l && $e(() => a.isReadableStream(new r("").body)), d = {
1408
1409
  stream: c && ((f) => f.body)
1409
1410
  };
1410
1411
  o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
1411
- !u[f] && (u[f] = (m, h) => {
1412
+ !d[f] && (d[f] = (m, h) => {
1412
1413
  let S = m && m[f];
1413
1414
  if (S)
1414
1415
  return S.call(m);
1415
- throw new b(`Response type '${f}' is not supported`, b.ERR_NOT_SUPPORT, h);
1416
+ throw new g(`Response type '${f}' is not supported`, g.ERR_NOT_SUPPORT, h);
1416
1417
  });
1417
1418
  });
1418
- const g = async (f) => {
1419
+ const b = async (f) => {
1419
1420
  if (f == null)
1420
1421
  return 0;
1421
1422
  if (a.isBlob(f))
@@ -1429,114 +1430,114 @@ const ht = (e) => {
1429
1430
  return f.byteLength;
1430
1431
  if (a.isURLSearchParams(f) && (f = f + ""), a.isString(f))
1431
1432
  return (await p(f)).byteLength;
1432
- }, E = async (f, m) => {
1433
+ }, C = async (f, m) => {
1433
1434
  const h = a.toFiniteNumber(f.getContentLength());
1434
- return h ?? g(m);
1435
+ return h ?? b(m);
1435
1436
  };
1436
1437
  return async (f) => {
1437
1438
  let {
1438
1439
  url: m,
1439
1440
  method: h,
1440
1441
  data: S,
1441
- signal: A,
1442
+ signal: O,
1442
1443
  cancelToken: w,
1443
- timeout: C,
1444
- onDownloadProgress: k,
1445
- onUploadProgress: P,
1446
- responseType: x,
1447
- headers: L,
1448
- withCredentials: W = "same-origin",
1449
- fetchOptions: M
1450
- } = ht(f), re = t || fetch;
1451
- x = x ? (x + "").toLowerCase() : "text";
1452
- let J = Vn([A, w && w.toAbortSignal()], C), R = null;
1453
- const F = J && J.unsubscribe && (() => {
1454
- J.unsubscribe();
1444
+ timeout: A,
1445
+ onDownloadProgress: P,
1446
+ onUploadProgress: E,
1447
+ responseType: R,
1448
+ headers: Y,
1449
+ withCredentials: $ = "same-origin",
1450
+ fetchOptions: re
1451
+ } = mt(f), z = t || fetch;
1452
+ R = R ? (R + "").toLowerCase() : "text";
1453
+ let W = Vn([O, w && w.toAbortSignal()], A), x = null;
1454
+ const F = W && W.unsubscribe && (() => {
1455
+ W.unsubscribe();
1455
1456
  });
1456
- let V;
1457
+ let J;
1457
1458
  try {
1458
- if (P && d && h !== "get" && h !== "head" && (V = await E(L, S)) !== 0) {
1459
- let z = new n(m, {
1459
+ if (E && u && h !== "get" && h !== "head" && (J = await C(Y, S)) !== 0) {
1460
+ let v = new n(m, {
1460
1461
  method: "POST",
1461
1462
  body: S,
1462
1463
  duplex: "half"
1463
- }), K;
1464
- if (a.isFormData(S) && (K = z.headers.get("content-type")) && L.setContentType(K), z.body) {
1465
- const [me, oe] = De(
1466
- V,
1467
- ce(je(P))
1464
+ }), V;
1465
+ if (a.isFormData(S) && (V = v.headers.get("content-type")) && Y.setContentType(V), v.body) {
1466
+ const [ye, oe] = Be(
1467
+ J,
1468
+ ue(je(E))
1468
1469
  );
1469
- S = ze(z.body, Me, me, oe);
1470
+ S = ze(v.body, He, ye, oe);
1470
1471
  }
1471
1472
  }
1472
- a.isString(W) || (W = W ? "include" : "omit");
1473
+ a.isString($) || ($ = $ ? "include" : "omit");
1473
1474
  const D = i && "credentials" in n.prototype, ke = {
1474
- ...M,
1475
- signal: J,
1475
+ ...re,
1476
+ signal: W,
1476
1477
  method: h.toUpperCase(),
1477
- headers: L.normalize().toJSON(),
1478
+ headers: Y.normalize().toJSON(),
1478
1479
  body: S,
1479
1480
  duplex: "half",
1480
- credentials: D ? W : void 0
1481
+ credentials: D ? $ : void 0
1481
1482
  };
1482
- R = i && new n(m, ke);
1483
- let v = await (i ? re(R, M) : re(m, ke));
1484
- const Fe = c && (x === "stream" || x === "response");
1485
- if (c && (k || Fe && F)) {
1486
- const z = {};
1487
- ["status", "statusText", "headers"].forEach((Ne) => {
1488
- z[Ne] = v[Ne];
1483
+ x = i && new n(m, ke);
1484
+ let j = await (i ? z(x, re) : z(m, ke));
1485
+ const Fe = c && (R === "stream" || R === "response");
1486
+ if (c && (P || Fe && F)) {
1487
+ const v = {};
1488
+ ["status", "statusText", "headers"].forEach((Pe) => {
1489
+ v[Pe] = j[Pe];
1489
1490
  });
1490
- const K = a.toFiniteNumber(v.headers.get("content-length")), [me, oe] = k && De(
1491
- K,
1492
- ce(je(k), !0)
1491
+ const V = a.toFiniteNumber(j.headers.get("content-length")), [ye, oe] = P && Be(
1492
+ V,
1493
+ ue(je(P), !0)
1493
1494
  ) || [];
1494
- v = new r(
1495
- ze(v.body, Me, me, () => {
1495
+ j = new r(
1496
+ ze(j.body, He, ye, () => {
1496
1497
  oe && oe(), F && F();
1497
1498
  }),
1498
- z
1499
+ v
1499
1500
  );
1500
1501
  }
1501
- x = x || "text";
1502
- let wt = await u[a.findKey(u, x) || "text"](v, f);
1503
- return !Fe && F && F(), await new Promise((z, K) => {
1504
- ft(z, K, {
1505
- data: wt,
1506
- headers: U.from(v.headers),
1507
- status: v.status,
1508
- statusText: v.statusText,
1502
+ R = R || "text";
1503
+ let St = await d[a.findKey(d, R) || "text"](j, f);
1504
+ return !Fe && F && F(), await new Promise((v, V) => {
1505
+ pt(v, V, {
1506
+ data: St,
1507
+ headers: U.from(j.headers),
1508
+ status: j.status,
1509
+ statusText: j.statusText,
1509
1510
  config: f,
1510
- request: R
1511
+ request: x
1511
1512
  });
1512
1513
  });
1513
1514
  } catch (D) {
1514
1515
  throw F && F(), D && D.name === "TypeError" && /Load failed|fetch/i.test(D.message) ? Object.assign(
1515
- new b("Network Error", b.ERR_NETWORK, f, R),
1516
+ new g("Network Error", g.ERR_NETWORK, f, x),
1516
1517
  {
1517
1518
  cause: D.cause || D
1518
1519
  }
1519
- ) : b.from(D, D && D.code, f, R);
1520
+ ) : g.from(D, D && D.code, f, x);
1520
1521
  }
1521
1522
  };
1522
- }, Zn = /* @__PURE__ */ new Map(), mt = (e) => {
1523
+ }, Zn = /* @__PURE__ */ new Map(), yt = (e) => {
1523
1524
  let t = e && e.env || {};
1524
1525
  const { fetch: n, Request: r, Response: o } = t, i = [
1525
1526
  r,
1526
1527
  o,
1527
1528
  n
1528
1529
  ];
1529
- let s = i.length, l = s, p, d, c = Zn;
1530
+ let s = i.length, l = s, p, u, c = Zn;
1530
1531
  for (; l--; )
1531
- p = i[l], d = c.get(p), d === void 0 && c.set(p, d = l ? /* @__PURE__ */ new Map() : Qn(t)), c = d;
1532
- return d;
1532
+ p = i[l], u = c.get(p), u === void 0 && c.set(p, u = l ? /* @__PURE__ */ new Map() : Qn(t)), c = u;
1533
+ return u;
1533
1534
  };
1534
- mt();
1535
+ yt();
1535
1536
  const Ae = {
1536
1537
  http: yn,
1537
1538
  xhr: Jn,
1538
1539
  fetch: {
1539
- get: mt
1540
+ get: yt
1540
1541
  }
1541
1542
  };
1542
1543
  a.forEach(Ae, (e, t) => {
@@ -1558,26 +1559,26 @@ function tr(e, t) {
1558
1559
  r = e[s];
1559
1560
  let l;
1560
1561
  if (o = r, !er(r) && (o = Ae[(l = String(r)).toLowerCase()], o === void 0))
1561
- throw new b(`Unknown adapter '${l}'`);
1562
+ throw new g(`Unknown adapter '${l}'`);
1562
1563
  if (o && (a.isFunction(o) || (o = o.get(t))))
1563
1564
  break;
1564
1565
  i[l || "#" + s] = o;
1565
1566
  }
1566
1567
  if (!o) {
1567
1568
  const s = Object.entries(i).map(
1568
- ([p, d]) => `adapter ${p} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
1569
+ ([p, u]) => `adapter ${p} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1569
1570
  );
1570
1571
  let l = n ? s.length > 1 ? `since :
1571
1572
  ` + s.map(We).join(`
1572
1573
  `) : " " + We(s[0]) : "as no adapter specified";
1573
- throw new b(
1574
+ throw new g(
1574
1575
  "There is no suitable adapter to dispatch the request " + l,
1575
1576
  "ERR_NOT_SUPPORT"
1576
1577
  );
1577
1578
  }
1578
1579
  return o;
1579
1580
  }
1580
- const yt = {
1581
+ const gt = {
1581
1582
  /**
1582
1583
  * Resolve an adapter from a list of adapter names or functions.
1583
1584
  * @type {Function}
@@ -1589,44 +1590,44 @@ const yt = {
1589
1590
  */
1590
1591
  adapters: Ae
1591
1592
  };
1592
- function ge(e) {
1593
+ function xe(e) {
1593
1594
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1594
- throw new Y(null, e);
1595
+ throw new G(null, e);
1595
1596
  }
1596
1597
  function Je(e) {
1597
- return ge(e), e.headers = U.from(e.headers), e.data = be.call(
1598
+ return xe(e), e.headers = U.from(e.headers), e.data = be.call(
1598
1599
  e,
1599
1600
  e.transformRequest
1600
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), yt.getAdapter(e.adapter || ne.adapter, e)(e).then(function(r) {
1601
- return ge(e), r.data = be.call(
1601
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), gt.getAdapter(e.adapter || ne.adapter, e)(e).then(function(r) {
1602
+ return xe(e), r.data = be.call(
1602
1603
  e,
1603
1604
  e.transformResponse,
1604
1605
  r
1605
1606
  ), r.headers = U.from(r.headers), r;
1606
1607
  }, function(r) {
1607
- return dt(r) || (ge(e), r && r.response && (r.response.data = be.call(
1608
+ return ft(r) || (xe(e), r && r.response && (r.response.data = be.call(
1608
1609
  e,
1609
1610
  e.transformResponse,
1610
1611
  r.response
1611
1612
  ), r.response.headers = U.from(r.response.headers))), Promise.reject(r);
1612
1613
  });
1613
1614
  }
1614
- const bt = "1.13.2", he = {};
1615
+ const bt = "1.13.2", me = {};
1615
1616
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1616
- he[e] = function(r) {
1617
+ me[e] = function(r) {
1617
1618
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1618
1619
  };
1619
1620
  });
1620
1621
  const Ve = {};
1621
- he.transitional = function(t, n, r) {
1622
+ me.transitional = function(t, n, r) {
1622
1623
  function o(i, s) {
1623
1624
  return "[Axios v" + bt + "] Transitional option '" + i + "'" + s + (r ? ". " + r : "");
1624
1625
  }
1625
1626
  return (i, s, l) => {
1626
1627
  if (t === !1)
1627
- throw new b(
1628
+ throw new g(
1628
1629
  o(s, " has been removed" + (n ? " in " + n : "")),
1629
- b.ERR_DEPRECATED
1630
+ g.ERR_DEPRECATED
1630
1631
  );
1631
1632
  return n && !Ve[s] && (Ve[s] = !0, console.warn(
1632
1633
  o(
@@ -1636,12 +1637,12 @@ he.transitional = function(t, n, r) {
1636
1637
  )), t ? t(i, s, l) : !0;
1637
1638
  };
1638
1639
  };
1639
- he.spelling = function(t) {
1640
+ me.spelling = function(t) {
1640
1641
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1641
1642
  };
1642
1643
  function nr(e, t, n) {
1643
1644
  if (typeof e != "object")
1644
- throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
1645
+ throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
1645
1646
  const r = Object.keys(e);
1646
1647
  let o = r.length;
1647
1648
  for (; o-- > 0; ) {
@@ -1649,22 +1650,22 @@ function nr(e, t, n) {
1649
1650
  if (s) {
1650
1651
  const l = e[i], p = l === void 0 || s(l, i, e);
1651
1652
  if (p !== !0)
1652
- throw new b("option " + i + " must be " + p, b.ERR_BAD_OPTION_VALUE);
1653
+ throw new g("option " + i + " must be " + p, g.ERR_BAD_OPTION_VALUE);
1653
1654
  continue;
1654
1655
  }
1655
1656
  if (n !== !0)
1656
- throw new b("Unknown option " + i, b.ERR_BAD_OPTION);
1657
+ throw new g("Unknown option " + i, g.ERR_BAD_OPTION);
1657
1658
  }
1658
1659
  }
1659
1660
  const le = {
1660
1661
  assertOptions: nr,
1661
- validators: he
1662
- }, j = le.validators;
1663
- let H = class {
1662
+ validators: me
1663
+ }, B = le.validators;
1664
+ let M = class {
1664
1665
  constructor(t) {
1665
1666
  this.defaults = t || {}, this.interceptors = {
1666
- request: new Be(),
1667
- response: new Be()
1667
+ request: new Le(),
1668
+ response: new Le()
1668
1669
  };
1669
1670
  }
1670
1671
  /**
@@ -1693,20 +1694,20 @@ let H = class {
1693
1694
  }
1694
1695
  }
1695
1696
  _request(t, n) {
1696
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = $(this.defaults, n);
1697
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = q(this.defaults, n);
1697
1698
  const { transitional: r, paramsSerializer: o, headers: i } = n;
1698
1699
  r !== void 0 && le.assertOptions(r, {
1699
- silentJSONParsing: j.transitional(j.boolean),
1700
- forcedJSONParsing: j.transitional(j.boolean),
1701
- clarifyTimeoutError: j.transitional(j.boolean)
1700
+ silentJSONParsing: B.transitional(B.boolean),
1701
+ forcedJSONParsing: B.transitional(B.boolean),
1702
+ clarifyTimeoutError: B.transitional(B.boolean)
1702
1703
  }, !1), o != null && (a.isFunction(o) ? n.paramsSerializer = {
1703
1704
  serialize: o
1704
1705
  } : le.assertOptions(o, {
1705
- encode: j.function,
1706
- serialize: j.function
1706
+ encode: B.function,
1707
+ serialize: B.function
1707
1708
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), le.assertOptions(n, {
1708
- baseUrl: j.spelling("baseURL"),
1709
- withXsrfToken: j.spelling("withXSRFToken")
1709
+ baseUrl: B.spelling("baseURL"),
1710
+ withXsrfToken: B.spelling("withXSRFToken")
1710
1711
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1711
1712
  let s = i && a.merge(
1712
1713
  i.common,
@@ -1723,46 +1724,46 @@ let H = class {
1723
1724
  this.interceptors.request.forEach(function(m) {
1724
1725
  typeof m.runWhen == "function" && m.runWhen(n) === !1 || (p = p && m.synchronous, l.unshift(m.fulfilled, m.rejected));
1725
1726
  });
1726
- const d = [];
1727
+ const u = [];
1727
1728
  this.interceptors.response.forEach(function(m) {
1728
- d.push(m.fulfilled, m.rejected);
1729
+ u.push(m.fulfilled, m.rejected);
1729
1730
  });
1730
- let c, u = 0, g;
1731
+ let c, d = 0, b;
1731
1732
  if (!p) {
1732
1733
  const f = [Je.bind(this), void 0];
1733
- for (f.unshift(...l), f.push(...d), g = f.length, c = Promise.resolve(n); u < g; )
1734
- c = c.then(f[u++], f[u++]);
1734
+ for (f.unshift(...l), f.push(...u), b = f.length, c = Promise.resolve(n); d < b; )
1735
+ c = c.then(f[d++], f[d++]);
1735
1736
  return c;
1736
1737
  }
1737
- g = l.length;
1738
- let E = n;
1739
- for (; u < g; ) {
1740
- const f = l[u++], m = l[u++];
1738
+ b = l.length;
1739
+ let C = n;
1740
+ for (; d < b; ) {
1741
+ const f = l[d++], m = l[d++];
1741
1742
  try {
1742
- E = f(E);
1743
+ C = f(C);
1743
1744
  } catch (h) {
1744
1745
  m.call(this, h);
1745
1746
  break;
1746
1747
  }
1747
1748
  }
1748
1749
  try {
1749
- c = Je.call(this, E);
1750
+ c = Je.call(this, C);
1750
1751
  } catch (f) {
1751
1752
  return Promise.reject(f);
1752
1753
  }
1753
- for (u = 0, g = d.length; u < g; )
1754
- c = c.then(d[u++], d[u++]);
1754
+ for (d = 0, b = u.length; d < b; )
1755
+ c = c.then(u[d++], u[d++]);
1755
1756
  return c;
1756
1757
  }
1757
1758
  getUri(t) {
1758
- t = $(this.defaults, t);
1759
- const n = pt(t.baseURL, t.url, t.allowAbsoluteUrls);
1760
- return lt(n, t.params, t.paramsSerializer);
1759
+ t = q(this.defaults, t);
1760
+ const n = ht(t.baseURL, t.url, t.allowAbsoluteUrls);
1761
+ return ct(n, t.params, t.paramsSerializer);
1761
1762
  }
1762
1763
  };
1763
1764
  a.forEach(["delete", "get", "head", "options"], function(t) {
1764
- H.prototype[t] = function(n, r) {
1765
- return this.request($(r || {}, {
1765
+ M.prototype[t] = function(n, r) {
1766
+ return this.request(q(r || {}, {
1766
1767
  method: t,
1767
1768
  url: n,
1768
1769
  data: (r || {}).data
@@ -1772,7 +1773,7 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
1772
1773
  a.forEach(["post", "put", "patch"], function(t) {
1773
1774
  function n(r) {
1774
1775
  return function(i, s, l) {
1775
- return this.request($(l || {}, {
1776
+ return this.request(q(l || {}, {
1776
1777
  method: t,
1777
1778
  headers: r ? {
1778
1779
  "Content-Type": "multipart/form-data"
@@ -1782,9 +1783,9 @@ a.forEach(["post", "put", "patch"], function(t) {
1782
1783
  }));
1783
1784
  };
1784
1785
  }
1785
- H.prototype[t] = n(), H.prototype[t + "Form"] = n(!0);
1786
+ M.prototype[t] = n(), M.prototype[t + "Form"] = n(!0);
1786
1787
  });
1787
- let rr = class gt {
1788
+ let rr = class xt {
1788
1789
  constructor(t) {
1789
1790
  if (typeof t != "function")
1790
1791
  throw new TypeError("executor must be a function.");
@@ -1808,7 +1809,7 @@ let rr = class gt {
1808
1809
  r.unsubscribe(i);
1809
1810
  }, s;
1810
1811
  }, t(function(i, s, l) {
1811
- r.reason || (r.reason = new Y(i, s, l), n(r.reason));
1812
+ r.reason || (r.reason = new G(i, s, l), n(r.reason));
1812
1813
  });
1813
1814
  }
1814
1815
  /**
@@ -1850,7 +1851,7 @@ let rr = class gt {
1850
1851
  static source() {
1851
1852
  let t;
1852
1853
  return {
1853
- token: new gt(function(o) {
1854
+ token: new xt(function(o) {
1854
1855
  t = o;
1855
1856
  }),
1856
1857
  cancel: t
@@ -1865,7 +1866,7 @@ function or(e) {
1865
1866
  function sr(e) {
1866
1867
  return a.isObject(e) && e.isAxiosError === !0;
1867
1868
  }
1868
- const Ee = {
1869
+ const Ce = {
1869
1870
  Continue: 100,
1870
1871
  SwitchingProtocols: 101,
1871
1872
  Processing: 102,
@@ -1936,51 +1937,51 @@ const Ee = {
1936
1937
  SslHandshakeFailed: 525,
1937
1938
  InvalidSslCertificate: 526
1938
1939
  };
1939
- Object.entries(Ee).forEach(([e, t]) => {
1940
- Ee[t] = e;
1940
+ Object.entries(Ce).forEach(([e, t]) => {
1941
+ Ce[t] = e;
1941
1942
  });
1942
- function xt(e) {
1943
- const t = new H(e), n = Ge(H.prototype.request, t);
1944
- return a.extend(n, H.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1945
- return xt($(e, o));
1943
+ function wt(e) {
1944
+ const t = new M(e), n = Ye(M.prototype.request, t);
1945
+ return a.extend(n, M.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1946
+ return wt(q(e, o));
1946
1947
  }, n;
1947
1948
  }
1948
- const T = xt(ne);
1949
- T.Axios = H;
1950
- T.CanceledError = Y;
1949
+ const T = wt(ne);
1950
+ T.Axios = M;
1951
+ T.CanceledError = G;
1951
1952
  T.CancelToken = rr;
1952
- T.isCancel = dt;
1953
+ T.isCancel = ft;
1953
1954
  T.VERSION = bt;
1954
- T.toFormData = pe;
1955
- T.AxiosError = b;
1955
+ T.toFormData = he;
1956
+ T.AxiosError = g;
1956
1957
  T.Cancel = T.CanceledError;
1957
1958
  T.all = function(t) {
1958
1959
  return Promise.all(t);
1959
1960
  };
1960
1961
  T.spread = or;
1961
1962
  T.isAxiosError = sr;
1962
- T.mergeConfig = $;
1963
+ T.mergeConfig = q;
1963
1964
  T.AxiosHeaders = U;
1964
- T.formToJSON = (e) => ut(a.isHTMLForm(e) ? new FormData(e) : e);
1965
- T.getAdapter = yt.getAdapter;
1966
- T.HttpStatusCode = Ee;
1965
+ T.formToJSON = (e) => dt(a.isHTMLForm(e) ? new FormData(e) : e);
1966
+ T.getAdapter = gt.getAdapter;
1967
+ T.HttpStatusCode = Ce;
1967
1968
  T.default = T;
1968
1969
  const {
1969
- Axios: mr,
1970
- AxiosError: yr,
1970
+ Axios: yr,
1971
+ AxiosError: gr,
1971
1972
  CanceledError: br,
1972
- isCancel: gr,
1973
- CancelToken: xr,
1974
- VERSION: wr,
1975
- all: Sr,
1976
- Cancel: Er,
1973
+ isCancel: xr,
1974
+ CancelToken: wr,
1975
+ VERSION: Sr,
1976
+ all: Er,
1977
+ Cancel: Cr,
1977
1978
  isAxiosError: Rr,
1978
- spread: Cr,
1979
- toFormData: Tr,
1980
- AxiosHeaders: Or,
1981
- HttpStatusCode: Ar,
1982
- formToJSON: kr,
1983
- getAdapter: Fr,
1979
+ spread: Tr,
1980
+ toFormData: Or,
1981
+ AxiosHeaders: Ar,
1982
+ HttpStatusCode: kr,
1983
+ formToJSON: Fr,
1984
+ getAdapter: Pr,
1984
1985
  mergeConfig: Nr
1985
1986
  } = T, ir = async (e, t, n, r, o) => {
1986
1987
  const i = {
@@ -2025,81 +2026,96 @@ const {
2025
2026
  } catch (i) {
2026
2027
  throw console.error("Error communicating with chat API:", i), i;
2027
2028
  }
2028
- }, lr = ({ handleMessageFromForm: e, theme: t, chatBotData: n, setChatSessionId: r }) => {
2029
- const [o, i] = B(""), [s, l] = B(""), [p, d] = B(""), [c, u] = B(""), [g, E] = B(!1), f = async (x) => {
2030
- if (x.preventDefault(), E(!0), u(""), !o.trim() || !s.trim()) {
2031
- u("Name and email are required"), E(!1);
2029
+ }, lr = async (e, t) => {
2030
+ const n = {
2031
+ sessionId: e
2032
+ };
2033
+ try {
2034
+ const r = await T.post(
2035
+ t,
2036
+ n,
2037
+ {
2038
+ headers: {
2039
+ "Content-Type": "application/json"
2040
+ }
2041
+ }
2042
+ );
2043
+ return r.data.n8n.message_found ? r.data.n8n.chats : null;
2044
+ } catch (r) {
2045
+ throw console.error("Error fetching with chat API:", r), r;
2046
+ }
2047
+ }, cr = ({ theme: e, chatBotData: t, trackFormSubmission: n }) => {
2048
+ const [r, o] = I(""), [i, s] = I(""), [l, p] = I(""), [u, c] = I(""), [d, b] = I(!1), C = async (E) => {
2049
+ if (E.preventDefault(), b(!0), c(""), !r.trim() || !i.trim()) {
2050
+ c("Name and email are required"), b(!1);
2032
2051
  return;
2033
2052
  }
2034
2053
  try {
2035
- const L = await ir(
2036
- p,
2037
- n.pineconeNamespace,
2038
- n.initiateChatUrl,
2039
- o,
2040
- s
2054
+ const R = await ir(
2055
+ l,
2056
+ t.pineconeNamespace,
2057
+ t.initiateChatUrl,
2058
+ r,
2059
+ i
2041
2060
  );
2042
- e([
2043
- { type: "user", text: p },
2044
- { type: "bot", text: L.n8n.response, response_timestamp: L.n8n.response_timestamp, sessionId: L.n8n.sessionId }
2045
- ]), r(L.n8n.sessionId);
2046
- } catch (L) {
2047
- console.log("error sending user details", L), u("Failed to submit. Please try again.");
2061
+ localStorage.setItem("clone67ChatSessionId", R.n8n.session_id), n(!0);
2062
+ } catch (R) {
2063
+ console.log("error sending user details", R), c("Failed to submit. Please try again.");
2048
2064
  } finally {
2049
- E(!1);
2065
+ b(!1);
2050
2066
  }
2051
- i(""), l(""), d("");
2052
- }, m = {
2067
+ o(""), s(""), p("");
2068
+ }, f = {
2053
2069
  padding: "20px",
2054
2070
  flexShrink: 0,
2055
- background: t.backgroundColor,
2071
+ background: e.backgroundColor,
2056
2072
  fontFamily: "system-ui, -apple-system, sans-serif"
2057
- }, h = {
2073
+ }, m = {
2058
2074
  display: "flex",
2059
2075
  flexDirection: "column",
2060
2076
  gap: "24px"
2061
- }, S = {
2077
+ }, h = {
2062
2078
  fontSize: "14px",
2063
2079
  fontWeight: "500",
2064
- color: t.fontColor,
2080
+ color: e.fontColor,
2065
2081
  margin: 0,
2066
2082
  lineHeight: "1.4"
2067
- }, A = {
2083
+ }, S = {
2068
2084
  display: "flex",
2069
2085
  flexDirection: "column",
2070
2086
  gap: "20px"
2071
- }, w = {
2087
+ }, O = {
2072
2088
  fontSize: "14px",
2073
- color: t.fontColor,
2089
+ color: e.fontColor,
2074
2090
  fontWeight: "500"
2075
- }, C = {
2091
+ }, w = {
2076
2092
  width: "100%",
2077
2093
  padding: "12px 16px",
2078
- background: t.backgroundColor,
2079
- color: t.fontColor,
2094
+ background: e.backgroundColor,
2095
+ color: e.fontColor,
2080
2096
  border: "1px solid #a1a1aa",
2081
2097
  borderRadius: "12px",
2082
2098
  fontSize: "15px",
2083
2099
  outline: "none",
2084
2100
  boxSizing: "border-box"
2085
- }, k = {
2101
+ }, A = {
2086
2102
  padding: "12px 20px",
2087
2103
  borderRadius: "12px",
2088
2104
  fontWeight: "600",
2089
2105
  fontSize: "15px",
2090
2106
  border: "none",
2091
- cursor: o.trim() && s.trim() && !g ? "pointer" : "not-allowed",
2092
- opacity: o.trim() && s.trim() && !g ? 1 : 0.5,
2093
- background: `linear-gradient(135deg, ${t.primaryColor}, ${t.secondaryColor})`,
2094
- color: t.fontColor,
2107
+ cursor: r.trim() && i.trim() && !d ? "pointer" : "not-allowed",
2108
+ opacity: r.trim() && i.trim() && !d ? 1 : 0.5,
2109
+ background: `linear-gradient(135deg, ${e.primaryColor}, ${e.secondaryColor})`,
2110
+ color: e.fontColor,
2095
2111
  display: "flex",
2096
2112
  alignItems: "center",
2097
2113
  justifyContent: "center",
2098
2114
  gap: "8px",
2099
2115
  transition: "all 0.2s ease"
2100
2116
  };
2101
- return /* @__PURE__ */ y("div", { style: m, children: /* @__PURE__ */ O("form", { onSubmit: f, style: h, children: [
2102
- c && /* @__PURE__ */ y("div", { style: {
2117
+ return /* @__PURE__ */ y("div", { style: f, children: /* @__PURE__ */ k("form", { onSubmit: C, style: m, children: [
2118
+ u && /* @__PURE__ */ y("div", { style: {
2103
2119
  backgroundColor: "#fee2e2",
2104
2120
  color: "#713f12",
2105
2121
  padding: "8px 12px",
@@ -2107,54 +2123,55 @@ const {
2107
2123
  fontSize: "13px",
2108
2124
  textAlign: "center",
2109
2125
  fontWeight: "500"
2110
- }, role: "alert", children: c }),
2111
- /* @__PURE__ */ y("p", { style: S, children: n.welcomeText }),
2112
- /* @__PURE__ */ O("div", { style: A, children: [
2113
- /* @__PURE__ */ O("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
2114
- /* @__PURE__ */ y("label", { style: w, children: "Full Name" }),
2126
+ }, role: "alert", children: u }),
2127
+ /* @__PURE__ */ y("p", { style: h, children: t.welcomeText }),
2128
+ /* @__PURE__ */ k("div", { style: S, children: [
2129
+ /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
2130
+ /* @__PURE__ */ y("label", { style: O, children: "Full Name" }),
2115
2131
  /* @__PURE__ */ y(
2116
2132
  "input",
2117
2133
  {
2118
2134
  type: "text",
2119
2135
  placeholder: "Enter your full name",
2120
- value: o,
2121
- onChange: (x) => {
2122
- i(x.target.value), u("");
2136
+ value: r,
2137
+ onChange: (E) => {
2138
+ o(E.target.value), c("");
2123
2139
  },
2124
- style: C,
2140
+ style: w,
2125
2141
  required: !0
2126
2142
  }
2127
2143
  )
2128
2144
  ] }),
2129
- /* @__PURE__ */ O("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
2130
- /* @__PURE__ */ y("label", { style: w, children: "Email Address" }),
2145
+ /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
2146
+ /* @__PURE__ */ y("label", { style: O, children: "Email Address" }),
2131
2147
  /* @__PURE__ */ y(
2132
2148
  "input",
2133
2149
  {
2134
2150
  type: "email",
2135
2151
  placeholder: "Enter your email",
2136
- value: s,
2137
- onChange: (x) => {
2138
- l(x.target.value), u("");
2152
+ value: i,
2153
+ onChange: (E) => {
2154
+ s(E.target.value), c("");
2139
2155
  },
2140
- style: C,
2156
+ style: w,
2141
2157
  required: !0
2142
2158
  }
2143
2159
  )
2144
2160
  ] }),
2145
- /* @__PURE__ */ O("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
2146
- /* @__PURE__ */ y("label", { style: w, children: "Message" }),
2161
+ /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
2162
+ /* @__PURE__ */ y("label", { style: O, children: "Message" }),
2147
2163
  /* @__PURE__ */ y(
2148
2164
  "textarea",
2149
2165
  {
2150
2166
  placeholder: "Enter your message",
2151
- value: p,
2152
- onChange: (x) => {
2153
- d(x.target.value), u("");
2167
+ value: l,
2168
+ onChange: (E) => {
2169
+ p(E.target.value), c("");
2154
2170
  },
2155
2171
  style: {
2156
- ...C,
2172
+ ...w,
2157
2173
  minHeight: "60px",
2174
+ maxHeight: "80px",
2158
2175
  resize: "vertical"
2159
2176
  },
2160
2177
  required: !0
@@ -2166,42 +2183,95 @@ const {
2166
2183
  "button",
2167
2184
  {
2168
2185
  type: "submit",
2169
- disabled: !o.trim() || !s.trim() || g,
2170
- style: k,
2171
- onMouseEnter: (x) => {
2172
- o.trim() && s.trim() && !g && (x.currentTarget.style.transform = "translateY(-2px)", x.currentTarget.style.boxShadow = "0 10px 20px rgba(0,0,0,0.15)");
2186
+ disabled: !r.trim() || !i.trim() || d,
2187
+ style: A,
2188
+ onMouseEnter: (E) => {
2189
+ r.trim() && i.trim() && !d && (E.currentTarget.style.transform = "translateY(-2px)", E.currentTarget.style.boxShadow = "0 10px 20px rgba(0,0,0,0.15)");
2173
2190
  },
2174
- onMouseLeave: (x) => {
2175
- x.currentTarget.style.transform = "translateY(0)", x.currentTarget.style.boxShadow = "none";
2191
+ onMouseLeave: (E) => {
2192
+ E.currentTarget.style.transform = "translateY(0)", E.currentTarget.style.boxShadow = "none";
2176
2193
  },
2177
- children: g ? "Submitting..." : /* @__PURE__ */ O(Re, { children: [
2178
- /* @__PURE__ */ y(Xe, { size: 18 }),
2194
+ children: d ? "Submitting..." : /* @__PURE__ */ k(ce, { children: [
2195
+ /* @__PURE__ */ y(Ge, { size: 18 }),
2179
2196
  "Submit"
2180
2197
  ] })
2181
2198
  }
2182
2199
  )
2183
2200
  ] }) });
2184
- }, cr = ({ onClose: e, theme: t, chatBotData: n }) => {
2185
- const [r, o] = B([]), [i, s] = B(!1), [l, p] = B(!1), [d, c] = B(!1), [u, g] = B(""), E = n.position === "left", f = (R) => {
2186
- g(R);
2187
- }, m = {
2201
+ }, ur = ({ onClose: e, theme: t, chatBotData: n }) => {
2202
+ const [r, o] = I([]), [i, s] = I(!1), [l, p] = I(!1), [u, c] = I(!1), d = n.position === "left", b = localStorage.getItem("clone67ChatSessionId"), C = (x) => {
2203
+ c(x);
2204
+ }, f = async () => {
2205
+ if (b) {
2206
+ s(!0);
2207
+ try {
2208
+ const x = await lr(
2209
+ b,
2210
+ n.fetchChatHistoryUrl
2211
+ );
2212
+ Array.isArray(x) ? o(x) : o(x ? [x] : []), console.log("chat history in layout", x);
2213
+ } catch (x) {
2214
+ console.log("Error fetching chat history", x);
2215
+ } finally {
2216
+ s(!1);
2217
+ }
2218
+ }
2219
+ };
2220
+ Ke(() => {
2221
+ f();
2222
+ }, [u, b]);
2223
+ const m = async (x) => {
2224
+ s(!0), o((F) => [
2225
+ ...F,
2226
+ { sender_type: "user", message: x }
2227
+ ]);
2228
+ try {
2229
+ const F = await ar(
2230
+ x,
2231
+ n.pineconeNamespace,
2232
+ n.onGoingChatUrl,
2233
+ b
2234
+ );
2235
+ o((J) => [
2236
+ ...J,
2237
+ {
2238
+ sender_type: "bot",
2239
+ message: F.n8n.message,
2240
+ created_at: F.n8n.created_at,
2241
+ suggested_prompts: F.n8n.suggested_prompts
2242
+ }
2243
+ ]);
2244
+ } catch (F) {
2245
+ console.error("Chat error:", F), o((J) => [
2246
+ ...J,
2247
+ {
2248
+ sender_type: "bot",
2249
+ message: "Sorry, there was an error processing your request. Please try again.",
2250
+ created_at: (/* @__PURE__ */ new Date()).toISOString(),
2251
+ suggested_prompts: []
2252
+ }
2253
+ ]);
2254
+ } finally {
2255
+ s(!1);
2256
+ }
2257
+ }, h = {
2188
2258
  position: "fixed",
2189
2259
  bottom: "112px",
2190
- [E ? "left" : "right"]: "32px",
2260
+ [d ? "left" : "right"]: "32px",
2191
2261
  zIndex: 50,
2192
- width: d ? "684px" : "384px",
2193
- height: d ? "620px" : "520px",
2262
+ width: l ? "684px" : "384px",
2263
+ height: l ? "620px" : "520px",
2194
2264
  background: `${t.backgroundColor}cc`,
2195
2265
  backdropFilter: "blur(16px)",
2196
2266
  WebkitBackdropFilter: "blur(16px)",
2197
2267
  borderRadius: "16px",
2198
2268
  border: "1px solid rgba(255, 255, 255, 0.3)",
2199
- boxShadow: "0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.1)",
2200
2269
  display: "flex",
2201
2270
  flexDirection: "column",
2202
2271
  overflow: "hidden",
2203
- fontFamily: "system-ui, -apple-system, sans-serif"
2204
- }, h = {
2272
+ fontFamily: "system-ui, -apple-system, sans-serif",
2273
+ boxShadow: "0 10px 25px -3px rgba(0,0,0,0.1)"
2274
+ }, S = {
2205
2275
  padding: "16px 20px",
2206
2276
  background: `linear-gradient(135deg, ${t.primaryColor}, ${t.secondaryColor})`,
2207
2277
  color: t.fontColor,
@@ -2210,9 +2280,9 @@ const {
2210
2280
  alignItems: "center",
2211
2281
  justifyContent: "space-between",
2212
2282
  boxShadow: "0 4px 6px -1px rgba(0,0,0,0.1)"
2213
- }, S = {
2283
+ }, O = {
2214
2284
  position: "relative"
2215
- }, A = {
2285
+ }, w = {
2216
2286
  width: "44px",
2217
2287
  height: "44px",
2218
2288
  borderRadius: "50%",
@@ -2220,7 +2290,7 @@ const {
2220
2290
  display: "flex",
2221
2291
  alignItems: "center",
2222
2292
  justifyContent: "center"
2223
- }, w = {
2293
+ }, A = {
2224
2294
  position: "absolute",
2225
2295
  bottom: 0,
2226
2296
  right: 0,
@@ -2229,79 +2299,68 @@ const {
2229
2299
  backgroundColor: "#34d399",
2230
2300
  borderRadius: "50%",
2231
2301
  border: "3px solid white"
2232
- }, C = {
2302
+ }, P = {
2233
2303
  fontSize: "18px",
2234
2304
  fontWeight: "600",
2235
2305
  margin: 0,
2236
2306
  lineHeight: "1.2"
2237
- }, k = {
2307
+ }, E = {
2238
2308
  fontSize: "12px",
2239
2309
  opacity: 0.9,
2240
2310
  margin: 0,
2241
2311
  lineHeight: "1.3"
2242
- }, P = {
2312
+ }, R = {
2243
2313
  padding: "8px",
2244
2314
  borderRadius: "50%",
2245
2315
  background: "transparent",
2246
2316
  border: "none",
2247
2317
  cursor: "pointer",
2248
2318
  transition: "background 0.2s"
2249
- }, x = {
2319
+ }, Y = {
2250
2320
  padding: "12px 20px",
2251
2321
  borderTop: "1px solid rgba(255,255,255,0.2)",
2252
2322
  background: t.backgroundColor,
2253
2323
  textAlign: "center"
2254
- }, L = {
2324
+ }, $ = {
2255
2325
  fontSize: "11px",
2256
2326
  color: t.fontColor,
2257
2327
  letterSpacing: "0.5px"
2258
- }, W = {
2328
+ }, re = {
2259
2329
  fontWeight: "600"
2260
- }, M = (R, F) => {
2261
- R.currentTarget.style.background = F ? "rgba(255,255,255,0.2)" : "transparent";
2262
- }, re = (R) => {
2263
- o(R), p(!0);
2264
- }, J = async (R) => {
2265
- s(!0), o((F) => [...F, { type: "user", text: R }]);
2266
- try {
2267
- const F = await ar(
2268
- R,
2269
- n.pineconeNamespace,
2270
- n.onGoingChatUrl,
2271
- u
2272
- );
2273
- o((V) => [...V, { type: "bot", text: F.n8n.response, response_timestamp: F.n8n.response_timestamp, suggested_prompts: F.n8n.suggested_prompt }]);
2274
- } catch (F) {
2275
- console.error("Chat error:", F), o((V) => [
2276
- ...V,
2277
- { type: "bot", text: "Sorry, something went wrong." }
2278
- ]);
2279
- } finally {
2280
- s(!1);
2281
- }
2330
+ }, z = (x, F) => {
2331
+ x.currentTarget.style.background = F ? "rgba(255,255,255,0.2)" : "transparent";
2332
+ }, W = {
2333
+ flex: 1,
2334
+ display: "flex",
2335
+ alignItems: "center",
2336
+ justifyContent: "center",
2337
+ gap: "8px",
2338
+ color: t.fontColor,
2339
+ opacity: 0.9,
2340
+ fontSize: "14px"
2282
2341
  };
2283
- return /* @__PURE__ */ O("div", { style: m, children: [
2284
- /* @__PURE__ */ O("div", { style: h, children: [
2285
- /* @__PURE__ */ O("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
2286
- /* @__PURE__ */ O("div", { style: S, children: [
2287
- /* @__PURE__ */ y("div", { style: A, children: /* @__PURE__ */ y(Ke, { size: 22 }) }),
2288
- /* @__PURE__ */ y("span", { style: w })
2342
+ return /* @__PURE__ */ k("div", { style: h, children: [
2343
+ /* @__PURE__ */ k("div", { style: S, children: [
2344
+ /* @__PURE__ */ k("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
2345
+ /* @__PURE__ */ k("div", { style: O, children: [
2346
+ /* @__PURE__ */ y("div", { style: w, children: /* @__PURE__ */ y(Xe, { size: 22 }) }),
2347
+ /* @__PURE__ */ y("span", { style: A })
2289
2348
  ] }),
2290
- /* @__PURE__ */ O("div", { children: [
2291
- /* @__PURE__ */ y("h3", { style: C, children: n.name }),
2292
- /* @__PURE__ */ y("p", { style: k, children: n.subTitle })
2349
+ /* @__PURE__ */ k("div", { children: [
2350
+ /* @__PURE__ */ y("h3", { style: P, children: n.name }),
2351
+ /* @__PURE__ */ y("p", { style: E, children: n.subTitle })
2293
2352
  ] })
2294
2353
  ] }),
2295
- /* @__PURE__ */ O("div", { style: { display: "flex", alignItems: "left" }, children: [
2354
+ /* @__PURE__ */ k("div", { style: { display: "flex", alignItems: "left" }, children: [
2296
2355
  /* @__PURE__ */ y(
2297
2356
  "button",
2298
2357
  {
2299
- onClick: () => c((R) => !R),
2358
+ onClick: () => p((x) => !x),
2300
2359
  "aria-label": "expand chat",
2301
- style: P,
2302
- onMouseEnter: (R) => M(R, !0),
2303
- onMouseLeave: (R) => M(R, !1),
2304
- children: d ? /* @__PURE__ */ y(Ct, { size: 20 }) : /* @__PURE__ */ y(Tt, { size: 20 })
2360
+ style: R,
2361
+ onMouseEnter: (x) => z(x, !0),
2362
+ onMouseLeave: (x) => z(x, !1),
2363
+ children: l ? /* @__PURE__ */ y(Rt, { size: 20 }) : /* @__PURE__ */ y(Tt, { size: 20 })
2305
2364
  }
2306
2365
  ),
2307
2366
  /* @__PURE__ */ y(
@@ -2309,95 +2368,96 @@ const {
2309
2368
  {
2310
2369
  onClick: e,
2311
2370
  "aria-label": "close chat",
2312
- style: P,
2313
- onMouseEnter: (R) => M(R, !0),
2314
- onMouseLeave: (R) => M(R, !1),
2371
+ style: R,
2372
+ onMouseEnter: (x) => z(x, !0),
2373
+ onMouseLeave: (x) => z(x, !1),
2315
2374
  children: /* @__PURE__ */ y(Ot, { size: 20 })
2316
2375
  }
2317
2376
  )
2318
2377
  ] })
2319
2378
  ] }),
2320
- u ? /* @__PURE__ */ O(Re, { children: [
2379
+ b ? /* @__PURE__ */ y(ce, { children: i && r.length === 0 ? /* @__PURE__ */ y("div", { style: W, children: /* @__PURE__ */ y("span", { children: "connecting server...." }) }) : /* @__PURE__ */ k(ce, { children: [
2321
2380
  /* @__PURE__ */ y(Ft, { messages: r, isLoading: i, theme: t }),
2322
- /* @__PURE__ */ y(kt, { onSendMessage: J, isLoading: i, theme: t })
2323
- ] }) : /* @__PURE__ */ y(
2324
- lr,
2381
+ /* @__PURE__ */ y(kt, { onSendMessage: m, isLoading: i, theme: t })
2382
+ ] }) }) : /* @__PURE__ */ y(
2383
+ cr,
2325
2384
  {
2326
- handleMessageFromForm: re,
2327
2385
  theme: t,
2328
2386
  chatBotData: n,
2329
- setChatSessionId: f
2387
+ trackFormSubmission: C
2330
2388
  }
2331
2389
  ),
2332
- /* @__PURE__ */ y("div", { style: x, children: /* @__PURE__ */ O("p", { style: L, children: [
2333
- "powered by",
2334
- " ",
2335
- /* @__PURE__ */ y("span", { style: W, children: "clone67.com" })
2390
+ /* @__PURE__ */ y("div", { style: Y, children: /* @__PURE__ */ k("p", { style: $, children: [
2391
+ "powered by ",
2392
+ /* @__PURE__ */ y("span", { style: re, children: "clone67.com" })
2336
2393
  ] }) })
2337
2394
  ] });
2338
- }, Pr = ({
2395
+ }, _r = ({
2339
2396
  pineconeNamespace: e,
2340
2397
  onGoingChatUrl: t,
2341
2398
  initiateChatUrl: n,
2342
- primaryColor: r = "#3b82f6",
2343
- secondaryColor: o = "#8b5cf6",
2344
- backgroundColor: i = "#ffffff",
2345
- fontColor: s = "#1f2937",
2346
- placeholderColor: l = "#9ca3af",
2347
- position: p = "right",
2348
- name: d = "Assistant",
2349
- subTitle: c = "Typically replies instantly",
2350
- welcomeText: u = "Hi! How can I help you today?"
2399
+ fetchChatHistoryUrl: r,
2400
+ primaryColor: o = "#3b82f6",
2401
+ secondaryColor: i = "#8b5cf6",
2402
+ backgroundColor: s = "#ffffff",
2403
+ fontColor: l = "#1f2937",
2404
+ placeholderColor: p = "#9ca3af",
2405
+ position: u = "right",
2406
+ name: c = "Assistant",
2407
+ subTitle: d = "Typically replies instantly",
2408
+ welcomeText: b = "Hi! How can I help you today?"
2351
2409
  }) => {
2352
- const [g, E] = B(!1), f = () => E((P) => !P), m = () => E((P) => !P), h = {
2353
- primaryColor: r,
2354
- secondaryColor: o,
2355
- backgroundColor: i,
2356
- fontColor: s,
2357
- placeholderColor: l,
2358
- inputBackgroundColor: i
2359
- }, S = {
2360
- name: d,
2361
- subTitle: c,
2362
- welcomeText: u,
2410
+ const [C, f] = I(!1), m = () => {
2411
+ f((R) => !R), localStorage.removeItem("clone67ChatSessionId");
2412
+ }, h = () => f((R) => !R), S = {
2413
+ primaryColor: o,
2414
+ secondaryColor: i,
2415
+ backgroundColor: s,
2416
+ fontColor: l,
2417
+ placeholderColor: p,
2418
+ inputBackgroundColor: s
2419
+ }, O = {
2420
+ name: c,
2421
+ subTitle: d,
2422
+ welcomeText: b,
2363
2423
  onGoingChatUrl: t,
2424
+ fetchChatHistoryUrl: r,
2364
2425
  initiateChatUrl: n,
2365
2426
  pineconeNamespace: e,
2366
- position: p
2367
- }, A = p === "left", w = "32px", C = {
2427
+ position: u
2428
+ }, w = u === "left", A = "32px", P = {
2368
2429
  position: "fixed",
2369
2430
  bottom: "104px",
2370
- // 8 + 64 + some margin
2371
- [A ? "left" : "right"]: w,
2431
+ [w ? "left" : "right"]: A,
2372
2432
  zIndex: 9999,
2373
2433
  pointerEvents: "auto"
2374
- }, k = {
2434
+ }, E = {
2375
2435
  position: "fixed",
2376
2436
  bottom: "32px",
2377
- [A ? "left" : "right"]: w,
2437
+ [w ? "left" : "right"]: A,
2378
2438
  zIndex: 1e4,
2379
2439
  pointerEvents: "auto"
2380
2440
  };
2381
- return /* @__PURE__ */ O(Re, { children: [
2382
- g && /* @__PURE__ */ y("div", { style: C, children: /* @__PURE__ */ y(
2383
- cr,
2441
+ return /* @__PURE__ */ k(ce, { children: [
2442
+ C && /* @__PURE__ */ y("div", { style: P, children: /* @__PURE__ */ y(
2443
+ ur,
2384
2444
  {
2385
- onClose: f,
2386
- theme: h,
2387
- chatBotData: S
2445
+ onClose: m,
2446
+ theme: S,
2447
+ chatBotData: O
2388
2448
  }
2389
2449
  ) }),
2390
- /* @__PURE__ */ y("div", { style: k, children: /* @__PURE__ */ y(
2450
+ /* @__PURE__ */ y("div", { style: E, children: /* @__PURE__ */ y(
2391
2451
  At,
2392
2452
  {
2393
- onMinimise: m,
2394
- isOpen: g,
2395
- theme: h,
2396
- chatBotData: S
2453
+ onMinimise: h,
2454
+ isOpen: C,
2455
+ theme: S,
2456
+ chatBotData: O
2397
2457
  }
2398
2458
  ) })
2399
2459
  ] });
2400
2460
  };
2401
2461
  export {
2402
- Pr as default
2462
+ _r as default
2403
2463
  };