@odynn/awayz-core 0.6.28 → 0.6.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/{AccountService-DEwilAk3.js → AccountService-CysoI2i-.js} +243 -238
  2. package/dist/{TripsService-Dqw5SICI.js → TripsService-DLwg0lrN.js} +1 -1
  3. package/dist/components/CashValue/CashValue.js +1 -1
  4. package/dist/components/CashValue/CashValue.stories.js +1 -1
  5. package/dist/components/Wallet/Card/Card.stories.js +1 -1
  6. package/dist/configs/msBaseUrl.js +8 -0
  7. package/dist/hooks/useAwayzAuth/useAwayzAuth.js +1 -1
  8. package/dist/hooks/useBookingManagement/useBookingManagement.js +1 -1
  9. package/dist/hooks/useBookingManagement/useBookingManagement.test.js +1 -1
  10. package/dist/hooks/useFeatureFlags.js +1 -1
  11. package/dist/hooks/useSearchLimit.js +1 -1
  12. package/dist/hooks/useTripManagement/useTripManagement.js +2 -2
  13. package/dist/hooks/useTripManagement/useTripManagement.test.js +2 -2
  14. package/dist/hooks/useWallet/useWallet.js +1 -1
  15. package/dist/hooks/useWallet/useWallet.test.js +1 -1
  16. package/dist/lib/configs/msBaseUrl.d.ts +2 -0
  17. package/dist/lib/services/instance.d.ts +1 -0
  18. package/dist/lib/services/instanceConfig.d.ts +50 -0
  19. package/dist/main.js +1 -1
  20. package/dist/providers/AwayzProvider.js +15 -14
  21. package/dist/services/account/AccountService.js +1 -1
  22. package/dist/services/bookings/BookingService.js +1 -1
  23. package/dist/services/currency/CurrencyService.js +1 -1
  24. package/dist/services/features/featureService.js +1 -1
  25. package/dist/services/index.js +1 -1
  26. package/dist/services/instance.js +4 -3
  27. package/dist/services/instanceConfig.js +7 -5
  28. package/dist/services/noRetryInstance.js +1 -1
  29. package/dist/services/preferences/PreferencesService.js +1 -1
  30. package/dist/services/rewards/RewardsService.js +1 -1
  31. package/dist/services/trips/TripsService.js +2 -2
  32. package/dist/services/wallet/WalletService.js +25 -25
  33. package/package.json +1 -1
@@ -1,54 +1,55 @@
1
1
  var lt = Object.defineProperty;
2
2
  var ft = (e, t, n) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var I = (e, t, n) => ft(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var U = (e, t, n) => ft(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import "./arrayExtensions-DlcBOj5a.js";
5
- import { a as k } from "./keys-BcBfU51M.js";
5
+ import { a as I } from "./keys-BcBfU51M.js";
6
6
  import "react";
7
7
  import { awayzClient as $ } from "./configs/awayzClient.js";
8
8
  import { EAuthEndpoints as T } from "./configs/endpoints.js";
9
9
  import { getBaseUrl as qe } from "./configs/baseUrl.js";
10
- import { EAuthFlow as dt } from "./types/EAuthFlow.js";
10
+ import { getMsBaseUrl as dt } from "./configs/msBaseUrl.js";
11
+ import { EAuthFlow as pt } from "./types/EAuthFlow.js";
11
12
  const P = (e) => Array.isArray(e) ? e.map((t) => P(t)) : typeof e == "object" && e !== null ? Object.keys(e).reduce((t, n) => {
12
- const r = mt(n);
13
+ const r = Et(n);
13
14
  return t[r] = P(e[n]), t;
14
15
  }, {}) : e;
15
- function pt(e) {
16
+ function ht(e) {
16
17
  return e.replace(/([A-Z])/g, "_$1").toLowerCase();
17
18
  }
18
19
  const we = (e) => Array.isArray(e) ? e.map((t) => we(t)) : typeof e == "object" && e !== null ? Object.keys(e).reduce((t, n) => {
19
- const r = pt(n);
20
+ const r = ht(n);
20
21
  return t[r] = we(e[n]), t;
21
- }, {}) : e, ht = (e) => (Object.keys(e).forEach(
22
+ }, {}) : e, mt = (e) => (Object.keys(e).forEach(
22
23
  (t) => !e[t] && delete e[t]
23
- ), e), mt = (e) => e.toLowerCase().replace(/_([a-z])/g, (t, n) => n.toUpperCase());
24
- var j = /* @__PURE__ */ ((e) => (e.LOCATIONS = "LOCATIONS", e.CHECK_USER = "CHECK_USER", e.USER_REGIONS = "USER_REGIONS", e.CONVERT_CURRENCY = "CONVERT_CURRENCY", e.CLIENT_COMPONENT_KEY = "CLIENT_COMPONENT_KEY", e.SEARCH_LIMIT = "SEARCH_LIMIT", e.PROGRAMS = "PROGRAMS", e.USER_PROGRAMS = "USER_PROGRAMS", e.LINKED_USER_PROGRAMS = "LINKED_USER_PROGRAMS", e.BANKS = "BANKS", e.CARDS = "CARDS", e.USER_CARDS = "USER_CARDS", e.TRIPS = "TRIPS", e.UNCATEGORISED_BOOKINGS = "UNCATEGORISED_BOOKINGS", e.BOOKING = "BOOKING", e.VALUE_CENTS = "VALUE_CENTS", e.AVAILABILITY_ALERTS = "AVAILABILITY_ALERTS", e.ALERT_NOTIFICATIONS = "ALERT_NOTIFICATIONS", e.POINTS_AS_CASH = "POINTS_AS_CASH", e.GET_USER_REGION = "get_user_region", e.PRICING = "pricing", e.FAQS = "faqs", e.FEATURES = "features", e.AIRLINE_HEALTH = "airline_health", e))(j || {}), Et = /* @__PURE__ */ ((e) => (e.HOTEL = "Hotel", e.AIRLINE = "Airline", e.BANK = "Bank", e))(Et || {});
24
+ ), e), Et = (e) => e.toLowerCase().replace(/_([a-z])/g, (t, n) => n.toUpperCase());
25
+ var j = /* @__PURE__ */ ((e) => (e.LOCATIONS = "LOCATIONS", e.CHECK_USER = "CHECK_USER", e.USER_REGIONS = "USER_REGIONS", e.CONVERT_CURRENCY = "CONVERT_CURRENCY", e.CLIENT_COMPONENT_KEY = "CLIENT_COMPONENT_KEY", e.SEARCH_LIMIT = "SEARCH_LIMIT", e.PROGRAMS = "PROGRAMS", e.USER_PROGRAMS = "USER_PROGRAMS", e.LINKED_USER_PROGRAMS = "LINKED_USER_PROGRAMS", e.BANKS = "BANKS", e.CARDS = "CARDS", e.USER_CARDS = "USER_CARDS", e.TRIPS = "TRIPS", e.UNCATEGORISED_BOOKINGS = "UNCATEGORISED_BOOKINGS", e.BOOKING = "BOOKING", e.VALUE_CENTS = "VALUE_CENTS", e.AVAILABILITY_ALERTS = "AVAILABILITY_ALERTS", e.ALERT_NOTIFICATIONS = "ALERT_NOTIFICATIONS", e.POINTS_AS_CASH = "POINTS_AS_CASH", e.GET_USER_REGION = "get_user_region", e.PRICING = "pricing", e.FAQS = "faqs", e.FEATURES = "features", e.AIRLINE_HEALTH = "airline_health", e))(j || {}), Rt = /* @__PURE__ */ ((e) => (e.HOTEL = "Hotel", e.AIRLINE = "Airline", e.BANK = "Bank", e))(Rt || {});
25
26
  function He(e, t) {
26
27
  return function() {
27
28
  return e.apply(t, arguments);
28
29
  };
29
30
  }
30
- const { toString: Rt } = Object.prototype, { getPrototypeOf: Re } = Object, { iterator: te, toStringTag: Me } = Symbol, ne = /* @__PURE__ */ ((e) => (t) => {
31
- const n = Rt.call(t);
31
+ const { toString: St } = Object.prototype, { getPrototypeOf: Re } = Object, { iterator: te, toStringTag: Me } = Symbol, ne = /* @__PURE__ */ ((e) => (t) => {
32
+ const n = St.call(t);
32
33
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
33
- })(/* @__PURE__ */ Object.create(null)), U = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), re = (e) => (t) => typeof t === e, { isArray: z } = Array, v = re("undefined");
34
- function St(e) {
34
+ })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), re = (e) => (t) => typeof t === e, { isArray: z } = Array, v = re("undefined");
35
+ function gt(e) {
35
36
  return e !== null && !v(e) && e.constructor !== null && !v(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
36
37
  }
37
- const je = U("ArrayBuffer");
38
- function gt(e) {
38
+ const je = x("ArrayBuffer");
39
+ function yt(e) {
39
40
  let t;
40
41
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && je(e.buffer), t;
41
42
  }
42
- const yt = re("string"), _ = re("function"), ze = re("number"), se = (e) => e !== null && typeof e == "object", wt = (e) => e === !0 || e === !1, X = (e) => {
43
+ const wt = re("string"), _ = re("function"), ze = re("number"), se = (e) => e !== null && typeof e == "object", bt = (e) => e === !0 || e === !1, X = (e) => {
43
44
  if (ne(e) !== "object")
44
45
  return !1;
45
46
  const t = Re(e);
46
47
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Me in e) && !(te in e);
47
- }, bt = U("Date"), Tt = U("File"), Ot = U("Blob"), At = U("FileList"), _t = (e) => se(e) && _(e.pipe), Nt = (e) => {
48
+ }, Tt = x("Date"), Ot = x("File"), At = x("Blob"), _t = x("FileList"), Nt = (e) => se(e) && _(e.pipe), Ct = (e) => {
48
49
  let t;
49
50
  return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = ne(e)) === "formdata" || // detect form-data instance
50
51
  t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
51
- }, Ct = U("URLSearchParams"), [It, Ut, xt, kt] = ["ReadableStream", "Request", "Response", "Headers"].map(U), Lt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
52
+ }, It = x("URLSearchParams"), [Ut, xt, Lt, kt] = ["ReadableStream", "Request", "Response", "Headers"].map(x), Pt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
52
53
  function V(e, t, { allOwnKeys: n = !1 } = {}) {
53
54
  if (e === null || typeof e > "u")
54
55
  return;
@@ -82,13 +83,13 @@ function fe() {
82
83
  arguments[r] && V(arguments[r], n);
83
84
  return t;
84
85
  }
85
- const Pt = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
86
+ const Ft = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
86
87
  n && _(s) ? e[o] = He(s, n) : e[o] = s;
87
- }, { allOwnKeys: r }), e), Ft = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Dt = (e, t, n, r) => {
88
+ }, { allOwnKeys: r }), e), Dt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Bt = (e, t, n, r) => {
88
89
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
89
90
  value: t.prototype
90
91
  }), n && Object.assign(e.prototype, n);
91
- }, Bt = (e, t, n, r) => {
92
+ }, qt = (e, t, n, r) => {
92
93
  let s, o, i;
93
94
  const c = {};
94
95
  if (t = t || {}, e == null) return t;
@@ -98,11 +99,11 @@ const Pt = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
98
99
  e = n !== !1 && Re(e);
99
100
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
100
101
  return t;
101
- }, qt = (e, t, n) => {
102
+ }, Ht = (e, t, n) => {
102
103
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
103
104
  const r = e.indexOf(t, n);
104
105
  return r !== -1 && r === n;
105
- }, Ht = (e) => {
106
+ }, Mt = (e) => {
106
107
  if (!e) return null;
107
108
  if (z(e)) return e;
108
109
  let t = e.length;
@@ -111,31 +112,31 @@ const Pt = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
111
112
  for (; t-- > 0; )
112
113
  n[t] = e[t];
113
114
  return n;
114
- }, Mt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Re(Uint8Array)), jt = (e, t) => {
115
+ }, jt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Re(Uint8Array)), zt = (e, t) => {
115
116
  const r = (e && e[te]).call(e);
116
117
  let s;
117
118
  for (; (s = r.next()) && !s.done; ) {
118
119
  const o = s.value;
119
120
  t.call(e, o[0], o[1]);
120
121
  }
121
- }, zt = (e, t) => {
122
+ }, Gt = (e, t) => {
122
123
  let n;
123
124
  const r = [];
124
125
  for (; (n = e.exec(t)) !== null; )
125
126
  r.push(n);
126
127
  return r;
127
- }, Gt = U("HTMLFormElement"), $t = (e) => e.toLowerCase().replace(
128
+ }, $t = x("HTMLFormElement"), Kt = (e) => e.toLowerCase().replace(
128
129
  /[-_\s]([a-z\d])(\w*)/g,
129
130
  function(n, r, s) {
130
131
  return r.toUpperCase() + s;
131
132
  }
132
- ), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kt = U("RegExp"), Ke = (e, t) => {
133
+ ), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), vt = x("RegExp"), Ke = (e, t) => {
133
134
  const n = Object.getOwnPropertyDescriptors(e), r = {};
134
135
  V(n, (s, o) => {
135
136
  let i;
136
137
  (i = t(s, o, e)) !== !1 && (r[o] = i || s);
137
138
  }), Object.defineProperties(e, r);
138
- }, vt = (e) => {
139
+ }, Vt = (e) => {
139
140
  Ke(e, (t, n) => {
140
141
  if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
141
142
  return !1;
@@ -150,19 +151,19 @@ const Pt = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
150
151
  });
151
152
  }
152
153
  });
153
- }, Vt = (e, t) => {
154
+ }, Jt = (e, t) => {
154
155
  const n = {}, r = (s) => {
155
156
  s.forEach((o) => {
156
157
  n[o] = !0;
157
158
  });
158
159
  };
159
160
  return z(e) ? r(e) : r(String(e).split(t)), n;
160
- }, Jt = () => {
161
- }, Wt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
162
- function Xt(e) {
161
+ }, Wt = () => {
162
+ }, Xt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
163
+ function Yt(e) {
163
164
  return !!(e && _(e.append) && e[Me] === "FormData" && e[te]);
164
165
  }
165
- const Yt = (e) => {
166
+ const Zt = (e) => {
166
167
  const t = new Array(10), n = (r, s) => {
167
168
  if (se(r)) {
168
169
  if (t.indexOf(r) >= 0)
@@ -179,71 +180,71 @@ const Yt = (e) => {
179
180
  return r;
180
181
  };
181
182
  return n(e, 0);
182
- }, Zt = U("AsyncFunction"), Qt = (e) => e && (se(e) || _(e)) && _(e.then) && _(e.catch), ve = ((e, t) => e ? setImmediate : t ? ((n, r) => (q.addEventListener("message", ({ source: s, data: o }) => {
183
+ }, Qt = x("AsyncFunction"), en = (e) => e && (se(e) || _(e)) && _(e.then) && _(e.catch), ve = ((e, t) => e ? setImmediate : t ? ((n, r) => (q.addEventListener("message", ({ source: s, data: o }) => {
183
184
  s === q && o === n && r.length && r.shift()();
184
185
  }, !1), (s) => {
185
186
  r.push(s), q.postMessage(n, "*");
186
187
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
187
188
  typeof setImmediate == "function",
188
189
  _(q.postMessage)
189
- ), en = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick || ve, tn = (e) => e != null && _(e[te]), a = {
190
+ ), tn = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick || ve, nn = (e) => e != null && _(e[te]), a = {
190
191
  isArray: z,
191
192
  isArrayBuffer: je,
192
- isBuffer: St,
193
- isFormData: Nt,
194
- isArrayBufferView: gt,
195
- isString: yt,
193
+ isBuffer: gt,
194
+ isFormData: Ct,
195
+ isArrayBufferView: yt,
196
+ isString: wt,
196
197
  isNumber: ze,
197
- isBoolean: wt,
198
+ isBoolean: bt,
198
199
  isObject: se,
199
200
  isPlainObject: X,
200
- isReadableStream: It,
201
- isRequest: Ut,
202
- isResponse: xt,
201
+ isReadableStream: Ut,
202
+ isRequest: xt,
203
+ isResponse: Lt,
203
204
  isHeaders: kt,
204
205
  isUndefined: v,
205
- isDate: bt,
206
- isFile: Tt,
207
- isBlob: Ot,
208
- isRegExp: Kt,
206
+ isDate: Tt,
207
+ isFile: Ot,
208
+ isBlob: At,
209
+ isRegExp: vt,
209
210
  isFunction: _,
210
- isStream: _t,
211
- isURLSearchParams: Ct,
212
- isTypedArray: Mt,
213
- isFileList: At,
211
+ isStream: Nt,
212
+ isURLSearchParams: It,
213
+ isTypedArray: jt,
214
+ isFileList: _t,
214
215
  forEach: V,
215
216
  merge: fe,
216
- extend: Pt,
217
- trim: Lt,
218
- stripBOM: Ft,
219
- inherits: Dt,
220
- toFlatObject: Bt,
217
+ extend: Ft,
218
+ trim: Pt,
219
+ stripBOM: Dt,
220
+ inherits: Bt,
221
+ toFlatObject: qt,
221
222
  kindOf: ne,
222
- kindOfTest: U,
223
- endsWith: qt,
224
- toArray: Ht,
225
- forEachEntry: jt,
226
- matchAll: zt,
227
- isHTMLForm: Gt,
223
+ kindOfTest: x,
224
+ endsWith: Ht,
225
+ toArray: Mt,
226
+ forEachEntry: zt,
227
+ matchAll: Gt,
228
+ isHTMLForm: $t,
228
229
  hasOwnProperty: be,
229
230
  hasOwnProp: be,
230
231
  // an alias to avoid ESLint no-prototype-builtins detection
231
232
  reduceDescriptors: Ke,
232
- freezeMethods: vt,
233
- toObjectSet: Vt,
234
- toCamelCase: $t,
235
- noop: Jt,
236
- toFiniteNumber: Wt,
233
+ freezeMethods: Vt,
234
+ toObjectSet: Jt,
235
+ toCamelCase: Kt,
236
+ noop: Wt,
237
+ toFiniteNumber: Xt,
237
238
  findKey: Ge,
238
239
  global: q,
239
240
  isContextDefined: $e,
240
- isSpecCompliantForm: Xt,
241
- toJSONObject: Yt,
242
- isAsyncFn: Zt,
243
- isThenable: Qt,
241
+ isSpecCompliantForm: Yt,
242
+ toJSONObject: Zt,
243
+ isAsyncFn: Qt,
244
+ isThenable: en,
244
245
  setImmediate: ve,
245
- asap: en,
246
- isIterable: tn
246
+ asap: tn,
247
+ isIterable: nn
247
248
  };
248
249
  function E(e, t, n, r, s) {
249
250
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
@@ -295,7 +296,7 @@ E.from = (e, t, n, r, s, o) => {
295
296
  return f !== Error.prototype;
296
297
  }, (c) => c !== "isAxiosError"), E.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
297
298
  };
298
- const nn = null;
299
+ const rn = null;
299
300
  function de(e) {
300
301
  return a.isPlainObject(e) || a.isArray(e);
301
302
  }
@@ -307,10 +308,10 @@ function Te(e, t, n) {
307
308
  return s = We(s), !n && o ? "[" + s + "]" : s;
308
309
  }).join(n ? "." : "") : t;
309
310
  }
310
- function rn(e) {
311
+ function sn(e) {
311
312
  return a.isArray(e) && !e.some(de);
312
313
  }
313
- const sn = a.toFlatObject(a, {}, null, function(t) {
314
+ const on = a.toFlatObject(a, {}, null, function(t) {
314
315
  return /^is[A-Z]/.test(t);
315
316
  });
316
317
  function oe(e, t, n) {
@@ -339,18 +340,18 @@ function oe(e, t, n) {
339
340
  if (h && !p && typeof h == "object") {
340
341
  if (a.endsWith(m, "{}"))
341
342
  m = r ? m : m.slice(0, -2), h = JSON.stringify(h);
342
- else if (a.isArray(h) && rn(h) || (a.isFileList(h) || a.endsWith(m, "[]")) && (g = a.toArray(h)))
343
- return m = We(m), g.forEach(function(b, L) {
343
+ else if (a.isArray(h) && sn(h) || (a.isFileList(h) || a.endsWith(m, "[]")) && (g = a.toArray(h)))
344
+ return m = We(m), g.forEach(function(b, k) {
344
345
  !(a.isUndefined(b) || b === null) && t.append(
345
346
  // eslint-disable-next-line no-nested-ternary
346
- i === !0 ? Te([m], L, o) : i === null ? m : m + "[]",
347
+ i === !0 ? Te([m], k, o) : i === null ? m : m + "[]",
347
348
  u(b)
348
349
  );
349
350
  }), !1;
350
351
  }
351
352
  return de(h) ? !0 : (t.append(Te(p, m, o), u(h)), !1);
352
353
  }
353
- const d = [], R = Object.assign(sn, {
354
+ const d = [], R = Object.assign(on, {
354
355
  defaultVisitor: l,
355
356
  convertValue: u,
356
357
  isVisitable: de
@@ -403,13 +404,13 @@ Xe.toString = function(t) {
403
404
  return n(s[0]) + "=" + n(s[1]);
404
405
  }, "").join("&");
405
406
  };
406
- function on(e) {
407
+ function an(e) {
407
408
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
408
409
  }
409
410
  function Ye(e, t, n) {
410
411
  if (!t)
411
412
  return e;
412
- const r = n && n.encode || on;
413
+ const r = n && n.encode || an;
413
414
  a.isFunction(n) && (n = {
414
415
  serialize: n
415
416
  });
@@ -479,37 +480,37 @@ const Ze = {
479
480
  silentJSONParsing: !0,
480
481
  forcedJSONParsing: !0,
481
482
  clarifyTimeoutError: !1
482
- }, an = typeof URLSearchParams < "u" ? URLSearchParams : Se, cn = typeof FormData < "u" ? FormData : null, un = typeof Blob < "u" ? Blob : null, ln = {
483
+ }, cn = typeof URLSearchParams < "u" ? URLSearchParams : Se, un = typeof FormData < "u" ? FormData : null, ln = typeof Blob < "u" ? Blob : null, fn = {
483
484
  isBrowser: !0,
484
485
  classes: {
485
- URLSearchParams: an,
486
- FormData: cn,
487
- Blob: un
486
+ URLSearchParams: cn,
487
+ FormData: un,
488
+ Blob: ln
488
489
  },
489
490
  protocols: ["http", "https", "file", "blob", "url", "data"]
490
- }, ge = typeof window < "u" && typeof document < "u", pe = typeof navigator == "object" && navigator || void 0, fn = ge && (!pe || ["ReactNative", "NativeScript", "NS"].indexOf(pe.product) < 0), dn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
491
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", pn = ge && window.location.href || "http://localhost", hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
491
+ }, ge = typeof window < "u" && typeof document < "u", pe = typeof navigator == "object" && navigator || void 0, dn = ge && (!pe || ["ReactNative", "NativeScript", "NS"].indexOf(pe.product) < 0), pn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
492
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", hn = ge && window.location.href || "http://localhost", mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
492
493
  __proto__: null,
493
494
  hasBrowserEnv: ge,
494
- hasStandardBrowserEnv: fn,
495
- hasStandardBrowserWebWorkerEnv: dn,
495
+ hasStandardBrowserEnv: dn,
496
+ hasStandardBrowserWebWorkerEnv: pn,
496
497
  navigator: pe,
497
- origin: pn
498
+ origin: hn
498
499
  }, Symbol.toStringTag, { value: "Module" })), O = {
499
- ...hn,
500
- ...ln
500
+ ...mn,
501
+ ...fn
501
502
  };
502
- function mn(e, t) {
503
+ function En(e, t) {
503
504
  return oe(e, new O.classes.URLSearchParams(), Object.assign({
504
505
  visitor: function(n, r, s, o) {
505
506
  return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
506
507
  }
507
508
  }, t));
508
509
  }
509
- function En(e) {
510
+ function Rn(e) {
510
511
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
511
512
  }
512
- function Rn(e) {
513
+ function Sn(e) {
513
514
  const t = {}, n = Object.keys(e);
514
515
  let r;
515
516
  const s = n.length;
@@ -523,17 +524,17 @@ function Qe(e) {
523
524
  let i = n[o++];
524
525
  if (i === "__proto__") return !0;
525
526
  const c = Number.isFinite(+i), f = o >= n.length;
526
- return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Rn(s[i])), !c);
527
+ return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Sn(s[i])), !c);
527
528
  }
528
529
  if (a.isFormData(e) && a.isFunction(e.entries)) {
529
530
  const n = {};
530
531
  return a.forEachEntry(e, (r, s) => {
531
- t(En(r), s, n, 0);
532
+ t(Rn(r), s, n, 0);
532
533
  }), n;
533
534
  }
534
535
  return null;
535
536
  }
536
- function Sn(e, t, n) {
537
+ function gn(e, t, n) {
537
538
  if (a.isString(e))
538
539
  try {
539
540
  return (t || JSON.parse)(e), a.trim(e);
@@ -559,7 +560,7 @@ const J = {
559
560
  let c;
560
561
  if (o) {
561
562
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
562
- return mn(t, this.formSerializer).toString();
563
+ return En(t, this.formSerializer).toString();
563
564
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
564
565
  const f = this.env && this.env.FormData;
565
566
  return oe(
@@ -569,7 +570,7 @@ const J = {
569
570
  );
570
571
  }
571
572
  }
572
- return o || s ? (n.setContentType("application/json", !1), Sn(t)) : t;
573
+ return o || s ? (n.setContentType("application/json", !1), gn(t)) : t;
573
574
  }],
574
575
  transformResponse: [function(t) {
575
576
  const n = this.transitional || J.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
@@ -612,7 +613,7 @@ const J = {
612
613
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
613
614
  J.headers[e] = {};
614
615
  });
615
- const gn = a.toObjectSet([
616
+ const yn = a.toObjectSet([
616
617
  "age",
617
618
  "authorization",
618
619
  "content-length",
@@ -630,12 +631,12 @@ const gn = a.toObjectSet([
630
631
  "referer",
631
632
  "retry-after",
632
633
  "user-agent"
633
- ]), yn = (e) => {
634
+ ]), wn = (e) => {
634
635
  const t = {};
635
636
  let n, r, s;
636
637
  return e && e.split(`
637
638
  `).forEach(function(i) {
638
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && gn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
639
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && yn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
639
640
  }), t;
640
641
  }, _e = Symbol("internals");
641
642
  function K(e) {
@@ -644,14 +645,14 @@ function K(e) {
644
645
  function Y(e) {
645
646
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(Y) : String(e);
646
647
  }
647
- function wn(e) {
648
+ function bn(e) {
648
649
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
649
650
  let r;
650
651
  for (; r = n.exec(e); )
651
652
  t[r[1]] = r[2];
652
653
  return t;
653
654
  }
654
- const bn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
655
+ const Tn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
655
656
  function ce(e, t, n, r, s) {
656
657
  if (a.isFunction(r))
657
658
  return r.call(this, t, n);
@@ -662,10 +663,10 @@ function ce(e, t, n, r, s) {
662
663
  return r.test(t);
663
664
  }
664
665
  }
665
- function Tn(e) {
666
+ function On(e) {
666
667
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
667
668
  }
668
- function On(e, t) {
669
+ function An(e, t) {
669
670
  const n = a.toCamelCase(" " + t);
670
671
  ["get", "set", "has"].forEach((r) => {
671
672
  Object.defineProperty(e, r + n, {
@@ -692,8 +693,8 @@ let N = class {
692
693
  const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
693
694
  if (a.isPlainObject(t) || t instanceof this.constructor)
694
695
  i(t, n);
695
- else if (a.isString(t) && (t = t.trim()) && !bn(t))
696
- i(yn(t), n);
696
+ else if (a.isString(t) && (t = t.trim()) && !Tn(t))
697
+ i(wn(t), n);
697
698
  else if (a.isObject(t) && a.isIterable(t)) {
698
699
  let c = {}, f, u;
699
700
  for (const l of t) {
@@ -714,7 +715,7 @@ let N = class {
714
715
  if (!n)
715
716
  return s;
716
717
  if (n === !0)
717
- return wn(s);
718
+ return bn(s);
718
719
  if (a.isFunction(n))
719
720
  return n.call(this, s, r);
720
721
  if (a.isRegExp(n))
@@ -758,7 +759,7 @@ let N = class {
758
759
  n[i] = Y(s), delete n[o];
759
760
  return;
760
761
  }
761
- const c = t ? Tn(o) : String(o).trim();
762
+ const c = t ? On(o) : String(o).trim();
762
763
  c !== o && delete n[o], n[c] = Y(s), r[c] = !0;
763
764
  }), this;
764
765
  }
@@ -797,7 +798,7 @@ let N = class {
797
798
  }).accessors, s = this.prototype;
798
799
  function o(i) {
799
800
  const c = K(i);
800
- r[c] || (On(s, i), r[c] = !0);
801
+ r[c] || (An(s, i), r[c] = !0);
801
802
  }
802
803
  return a.isArray(t) ? t.forEach(o) : o(t), this;
803
804
  }
@@ -839,11 +840,11 @@ function tt(e, t, n) {
839
840
  n
840
841
  ));
841
842
  }
842
- function An(e) {
843
+ function _n(e) {
843
844
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
844
845
  return t && t[1] || "";
845
846
  }
846
- function _n(e, t) {
847
+ function Nn(e, t) {
847
848
  e = e || 10;
848
849
  const n = new Array(e), r = new Array(e);
849
850
  let s = 0, o = 0, i;
@@ -859,7 +860,7 @@ function _n(e, t) {
859
860
  return S ? Math.round(R * 1e3 / S) : void 0;
860
861
  };
861
862
  }
862
- function Nn(e, t) {
863
+ function Cn(e, t) {
863
864
  let n = 0, r = 1e3 / t, s, o;
864
865
  const i = (u, l = Date.now()) => {
865
866
  n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
@@ -873,8 +874,8 @@ function Nn(e, t) {
873
874
  }
874
875
  const Q = (e, t, n = 3) => {
875
876
  let r = 0;
876
- const s = _n(50, 250);
877
- return Nn((o) => {
877
+ const s = Nn(50, 250);
878
+ return Cn((o) => {
878
879
  const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
879
880
  r = i;
880
881
  const d = {
@@ -897,10 +898,10 @@ const Q = (e, t, n = 3) => {
897
898
  total: e,
898
899
  loaded: r
899
900
  }), t[1]];
900
- }, Ce = (e) => (...t) => a.asap(() => e(...t)), Cn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
901
+ }, Ce = (e) => (...t) => a.asap(() => e(...t)), In = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
901
902
  new URL(O.origin),
902
903
  O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
903
- ) : () => !0, In = O.hasStandardBrowserEnv ? (
904
+ ) : () => !0, Un = O.hasStandardBrowserEnv ? (
904
905
  // Standard browser envs support document.cookie
905
906
  {
906
907
  write(e, t, n, r, s, o) {
@@ -927,15 +928,15 @@ const Q = (e, t, n = 3) => {
927
928
  }
928
929
  }
929
930
  );
930
- function Un(e) {
931
+ function xn(e) {
931
932
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
932
933
  }
933
- function xn(e, t) {
934
+ function Ln(e, t) {
934
935
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
935
936
  }
936
937
  function nt(e, t, n) {
937
- let r = !Un(t);
938
- return e && (r || n == !1) ? xn(e, t) : t;
938
+ let r = !xn(t);
939
+ return e && (r || n == !1) ? Ln(e, t) : t;
939
940
  }
940
941
  const Ie = (e) => e instanceof N ? { ...e } : e;
941
942
  function M(e, t) {
@@ -1018,12 +1019,12 @@ const rt = (e) => {
1018
1019
  i.setContentType([u || "multipart/form-data", ...l].join("; "));
1019
1020
  }
1020
1021
  }
1021
- if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Cn(t.url))) {
1022
- const u = s && o && In.read(o);
1022
+ if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && In(t.url))) {
1023
+ const u = s && o && Un.read(o);
1023
1024
  u && i.set(s, u);
1024
1025
  }
1025
1026
  return t;
1026
- }, kn = typeof XMLHttpRequest < "u", Ln = kn && function(e) {
1027
+ }, kn = typeof XMLHttpRequest < "u", Pn = kn && function(e) {
1027
1028
  return new Promise(function(n, r) {
1028
1029
  const s = rt(e);
1029
1030
  let o = s.data;
@@ -1060,27 +1061,27 @@ const rt = (e) => {
1060
1061
  }, p.onerror = function() {
1061
1062
  r(new E("Network Error", E.ERR_NETWORK, e, p)), p = null;
1062
1063
  }, p.ontimeout = function() {
1063
- let L = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1064
+ let k = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1064
1065
  const A = s.transitional || Ze;
1065
- s.timeoutErrorMessage && (L = s.timeoutErrorMessage), r(new E(
1066
- L,
1066
+ s.timeoutErrorMessage && (k = s.timeoutErrorMessage), r(new E(
1067
+ k,
1067
1068
  A.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
1068
1069
  e,
1069
1070
  p
1070
1071
  )), p = null;
1071
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(L, A) {
1072
- p.setRequestHeader(A, L);
1072
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(k, A) {
1073
+ p.setRequestHeader(A, k);
1073
1074
  }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([R, h] = Q(u, !0), p.addEventListener("progress", R)), f && p.upload && ([d, S] = Q(f), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (l = (b) => {
1074
1075
  p && (r(!b || b.type ? new G(null, e, p) : b), p.abort(), p = null);
1075
1076
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1076
- const w = An(s.url);
1077
+ const w = _n(s.url);
1077
1078
  if (w && O.protocols.indexOf(w) === -1) {
1078
1079
  r(new E("Unsupported protocol " + w + ":", E.ERR_BAD_REQUEST, e));
1079
1080
  return;
1080
1081
  }
1081
1082
  p.send(o || null);
1082
1083
  });
1083
- }, Pn = (e, t) => {
1084
+ }, Fn = (e, t) => {
1084
1085
  const { length: n } = e = e ? e.filter(Boolean) : [];
1085
1086
  if (t || n) {
1086
1087
  let r = new AbortController(), s;
@@ -1103,7 +1104,7 @@ const rt = (e) => {
1103
1104
  const { signal: f } = r;
1104
1105
  return f.unsubscribe = () => a.asap(c), f;
1105
1106
  }
1106
- }, Fn = function* (e, t) {
1107
+ }, Dn = function* (e, t) {
1107
1108
  let n = e.byteLength;
1108
1109
  if (n < t) {
1109
1110
  yield e;
@@ -1112,10 +1113,10 @@ const rt = (e) => {
1112
1113
  let r = 0, s;
1113
1114
  for (; r < n; )
1114
1115
  s = r + t, yield e.slice(r, s), r = s;
1115
- }, Dn = async function* (e, t) {
1116
- for await (const n of Bn(e))
1117
- yield* Fn(n, t);
1118
- }, Bn = async function* (e) {
1116
+ }, Bn = async function* (e, t) {
1117
+ for await (const n of qn(e))
1118
+ yield* Dn(n, t);
1119
+ }, qn = async function* (e) {
1119
1120
  if (e[Symbol.asyncIterator]) {
1120
1121
  yield* e;
1121
1122
  return;
@@ -1132,7 +1133,7 @@ const rt = (e) => {
1132
1133
  await t.cancel();
1133
1134
  }
1134
1135
  }, Ue = (e, t, n, r) => {
1135
- const s = Dn(e, t);
1136
+ const s = Bn(e, t);
1136
1137
  let o = 0, i, c = (f) => {
1137
1138
  i || (i = !0, r && r(f));
1138
1139
  };
@@ -1160,13 +1161,13 @@ const rt = (e) => {
1160
1161
  }, {
1161
1162
  highWaterMark: 2
1162
1163
  });
1163
- }, ie = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", st = ie && typeof ReadableStream == "function", qn = ie && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ot = (e, ...t) => {
1164
+ }, ie = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", st = ie && typeof ReadableStream == "function", Hn = ie && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ot = (e, ...t) => {
1164
1165
  try {
1165
1166
  return !!e(...t);
1166
1167
  } catch {
1167
1168
  return !1;
1168
1169
  }
1169
- }, Hn = st && ot(() => {
1170
+ }, Mn = st && ot(() => {
1170
1171
  let e = !1;
1171
1172
  const t = new Request(O.origin, {
1172
1173
  body: new ReadableStream(),
@@ -1186,7 +1187,7 @@ ie && ((e) => {
1186
1187
  });
1187
1188
  });
1188
1189
  })(new Response());
1189
- const Mn = async (e) => {
1190
+ const jn = async (e) => {
1190
1191
  if (e == null)
1191
1192
  return 0;
1192
1193
  if (a.isBlob(e))
@@ -1199,11 +1200,11 @@ const Mn = async (e) => {
1199
1200
  if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1200
1201
  return e.byteLength;
1201
1202
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1202
- return (await qn(e)).byteLength;
1203
- }, jn = async (e, t) => {
1203
+ return (await Hn(e)).byteLength;
1204
+ }, zn = async (e, t) => {
1204
1205
  const n = a.toFiniteNumber(e.getContentLength());
1205
- return n ?? Mn(t);
1206
- }, zn = ie && (async (e) => {
1206
+ return n ?? jn(t);
1207
+ }, Gn = ie && (async (e) => {
1207
1208
  let {
1208
1209
  url: t,
1209
1210
  method: n,
@@ -1219,13 +1220,13 @@ const Mn = async (e) => {
1219
1220
  fetchOptions: R
1220
1221
  } = rt(e);
1221
1222
  u = u ? (u + "").toLowerCase() : "text";
1222
- let S = Pn([s, o && o.toAbortSignal()], i), h;
1223
+ let S = Fn([s, o && o.toAbortSignal()], i), h;
1223
1224
  const m = S && S.unsubscribe && (() => {
1224
1225
  S.unsubscribe();
1225
1226
  });
1226
1227
  let p;
1227
1228
  try {
1228
- if (f && Hn && n !== "get" && n !== "head" && (p = await jn(l, r)) !== 0) {
1229
+ if (f && Mn && n !== "get" && n !== "head" && (p = await zn(l, r)) !== 0) {
1229
1230
  let A = new Request(t, {
1230
1231
  method: "POST",
1231
1232
  body: r,
@@ -1269,10 +1270,10 @@ const Mn = async (e) => {
1269
1270
  );
1270
1271
  }
1271
1272
  u = u || "text";
1272
- let L = await ee[a.findKey(ee, u) || "text"](w, e);
1273
+ let k = await ee[a.findKey(ee, u) || "text"](w, e);
1273
1274
  return !b && m && m(), await new Promise((A, F) => {
1274
1275
  tt(A, F, {
1275
- data: L,
1276
+ data: k,
1276
1277
  headers: N.from(w.headers),
1277
1278
  status: w.status,
1278
1279
  statusText: w.statusText,
@@ -1289,9 +1290,9 @@ const Mn = async (e) => {
1289
1290
  ) : E.from(g, g && g.code, e, h);
1290
1291
  }
1291
1292
  }), me = {
1292
- http: nn,
1293
- xhr: Ln,
1294
- fetch: zn
1293
+ http: rn,
1294
+ xhr: Pn,
1295
+ fetch: Gn
1295
1296
  };
1296
1297
  a.forEach(me, (e, t) => {
1297
1298
  if (e) {
@@ -1302,7 +1303,7 @@ a.forEach(me, (e, t) => {
1302
1303
  Object.defineProperty(e, "adapterName", { value: t });
1303
1304
  }
1304
1305
  });
1305
- const ke = (e) => `- ${e}`, Gn = (e) => a.isFunction(e) || e === null || e === !1, it = {
1306
+ const Le = (e) => `- ${e}`, $n = (e) => a.isFunction(e) || e === null || e === !1, it = {
1306
1307
  getAdapter: (e) => {
1307
1308
  e = a.isArray(e) ? e : [e];
1308
1309
  const { length: t } = e;
@@ -1311,7 +1312,7 @@ const ke = (e) => `- ${e}`, Gn = (e) => a.isFunction(e) || e === null || e === !
1311
1312
  for (let o = 0; o < t; o++) {
1312
1313
  n = e[o];
1313
1314
  let i;
1314
- if (r = n, !Gn(n) && (r = me[(i = String(n)).toLowerCase()], r === void 0))
1315
+ if (r = n, !$n(n) && (r = me[(i = String(n)).toLowerCase()], r === void 0))
1315
1316
  throw new E(`Unknown adapter '${i}'`);
1316
1317
  if (r)
1317
1318
  break;
@@ -1322,8 +1323,8 @@ const ke = (e) => `- ${e}`, Gn = (e) => a.isFunction(e) || e === null || e === !
1322
1323
  ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1323
1324
  );
1324
1325
  let i = t ? o.length > 1 ? `since :
1325
- ` + o.map(ke).join(`
1326
- `) : " " + ke(o[0]) : "as no adapter specified";
1326
+ ` + o.map(Le).join(`
1327
+ `) : " " + Le(o[0]) : "as no adapter specified";
1327
1328
  throw new E(
1328
1329
  "There is no suitable adapter to dispatch the request " + i,
1329
1330
  "ERR_NOT_SUPPORT"
@@ -1337,7 +1338,7 @@ function le(e) {
1337
1338
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1338
1339
  throw new G(null, e);
1339
1340
  }
1340
- function Le(e) {
1341
+ function ke(e) {
1341
1342
  return le(e), e.headers = N.from(e.headers), e.data = ue.call(
1342
1343
  e,
1343
1344
  e.transformRequest
@@ -1383,7 +1384,7 @@ ae.transitional = function(t, n, r) {
1383
1384
  ae.spelling = function(t) {
1384
1385
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1385
1386
  };
1386
- function $n(e, t, n) {
1387
+ function Kn(e, t, n) {
1387
1388
  if (typeof e != "object")
1388
1389
  throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
1389
1390
  const r = Object.keys(e);
@@ -1401,9 +1402,9 @@ function $n(e, t, n) {
1401
1402
  }
1402
1403
  }
1403
1404
  const Z = {
1404
- assertOptions: $n,
1405
+ assertOptions: Kn,
1405
1406
  validators: ae
1406
- }, x = Z.validators;
1407
+ }, L = Z.validators;
1407
1408
  let H = class {
1408
1409
  constructor(t) {
1409
1410
  this.defaults = t || {}, this.interceptors = {
@@ -1440,17 +1441,17 @@ let H = class {
1440
1441
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = M(this.defaults, n);
1441
1442
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1442
1443
  r !== void 0 && Z.assertOptions(r, {
1443
- silentJSONParsing: x.transitional(x.boolean),
1444
- forcedJSONParsing: x.transitional(x.boolean),
1445
- clarifyTimeoutError: x.transitional(x.boolean)
1444
+ silentJSONParsing: L.transitional(L.boolean),
1445
+ forcedJSONParsing: L.transitional(L.boolean),
1446
+ clarifyTimeoutError: L.transitional(L.boolean)
1446
1447
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1447
1448
  serialize: s
1448
1449
  } : Z.assertOptions(s, {
1449
- encode: x.function,
1450
- serialize: x.function
1450
+ encode: L.function,
1451
+ serialize: L.function
1451
1452
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Z.assertOptions(n, {
1452
- baseUrl: x.spelling("baseURL"),
1453
- withXsrfToken: x.spelling("withXSRFToken")
1453
+ baseUrl: L.spelling("baseURL"),
1454
+ withXsrfToken: L.spelling("withXSRFToken")
1454
1455
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1455
1456
  let i = o && a.merge(
1456
1457
  o.common,
@@ -1473,7 +1474,7 @@ let H = class {
1473
1474
  });
1474
1475
  let l, d = 0, R;
1475
1476
  if (!f) {
1476
- const h = [Le.bind(this), void 0];
1477
+ const h = [ke.bind(this), void 0];
1477
1478
  for (h.unshift.apply(h, c), h.push.apply(h, u), R = h.length, l = Promise.resolve(n); d < R; )
1478
1479
  l = l.then(h[d++], h[d++]);
1479
1480
  return l;
@@ -1490,7 +1491,7 @@ let H = class {
1490
1491
  }
1491
1492
  }
1492
1493
  try {
1493
- l = Le.call(this, S);
1494
+ l = ke.call(this, S);
1494
1495
  } catch (h) {
1495
1496
  return Promise.reject(h);
1496
1497
  }
@@ -1528,7 +1529,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1528
1529
  }
1529
1530
  H.prototype[t] = n(), H.prototype[t + "Form"] = n(!0);
1530
1531
  });
1531
- let Kn = class ct {
1532
+ let vn = class ct {
1532
1533
  constructor(t) {
1533
1534
  if (typeof t != "function")
1534
1535
  throw new TypeError("executor must be a function.");
@@ -1601,12 +1602,12 @@ let Kn = class ct {
1601
1602
  };
1602
1603
  }
1603
1604
  };
1604
- function vn(e) {
1605
+ function Vn(e) {
1605
1606
  return function(n) {
1606
1607
  return e.apply(null, n);
1607
1608
  };
1608
1609
  }
1609
- function Vn(e) {
1610
+ function Jn(e) {
1610
1611
  return a.isObject(e) && e.isAxiosError === !0;
1611
1612
  }
1612
1613
  const Ee = {
@@ -1686,7 +1687,7 @@ function ut(e) {
1686
1687
  const y = ut(J);
1687
1688
  y.Axios = H;
1688
1689
  y.CanceledError = G;
1689
- y.CancelToken = Kn;
1690
+ y.CancelToken = vn;
1690
1691
  y.isCancel = et;
1691
1692
  y.VERSION = at;
1692
1693
  y.toFormData = oe;
@@ -1695,8 +1696,8 @@ y.Cancel = y.CanceledError;
1695
1696
  y.all = function(t) {
1696
1697
  return Promise.all(t);
1697
1698
  };
1698
- y.spread = vn;
1699
- y.isAxiosError = Vn;
1699
+ y.spread = Vn;
1700
+ y.isAxiosError = Jn;
1700
1701
  y.mergeConfig = M;
1701
1702
  y.AxiosHeaders = N;
1702
1703
  y.formToJSON = (e) => Qe(a.isHTMLForm(e) ? new FormData(e) : e);
@@ -1704,31 +1705,31 @@ y.getAdapter = it.getAdapter;
1704
1705
  y.HttpStatusCode = Ee;
1705
1706
  y.default = y;
1706
1707
  const {
1707
- Axios: hr,
1708
- AxiosError: Jn,
1709
- CanceledError: mr,
1710
- isCancel: Er,
1711
- CancelToken: Rr,
1712
- VERSION: Sr,
1713
- all: gr,
1714
- Cancel: yr,
1715
- isAxiosError: wr,
1716
- spread: br,
1717
- toFormData: Tr,
1718
- AxiosHeaders: Or,
1708
+ Axios: Sr,
1709
+ AxiosError: Wn,
1710
+ CanceledError: gr,
1711
+ isCancel: yr,
1712
+ CancelToken: wr,
1713
+ VERSION: br,
1714
+ all: Tr,
1715
+ Cancel: Or,
1716
+ isAxiosError: Ar,
1717
+ spread: _r,
1718
+ toFormData: Nr,
1719
+ AxiosHeaders: Cr,
1719
1720
  HttpStatusCode: D,
1720
- formToJSON: Ar,
1721
- getAdapter: _r,
1722
- mergeConfig: Nr
1723
- } = y, Wn = (e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(k.TOKEN), e.headers["client-id"] = localStorage.getItem(k.CLIENT_ID), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Fe = (e, t, n) => {
1721
+ formToJSON: Ir,
1722
+ getAdapter: Ur,
1723
+ mergeConfig: xr
1724
+ } = y, Xn = (e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(I.TOKEN), e.headers["client-id"] = localStorage.getItem(I.CLIENT_ID), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Yn = (e) => (e.baseURL = dt(), e.headers.Authorization = localStorage.getItem(I.TOKEN), e.headers["client-id"] = localStorage.getItem(I.CLIENT_ID), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Fe = (e, t, n) => {
1724
1725
  for (const r of e)
1725
1726
  t ? r.rej(t) : r.res(n);
1726
- }, Xn = async (e) => new Promise((t, n) => {
1727
+ }, Zn = async (e) => new Promise((t, n) => {
1727
1728
  setTimeout(t, e);
1728
- }), Yn = async (e, t) => (await Xn(t), e()), De = (e, t) => {
1729
+ }), Qn = async (e, t) => (await Zn(t), e()), De = (e, t) => {
1729
1730
  var s, o;
1730
1731
  let n = "", r = t;
1731
- typeof t == "string" ? n = t : t instanceof Jn ? (n = t.message, r = {
1732
+ typeof t == "string" ? n = t : t instanceof Wn ? (n = t.message, r = {
1732
1733
  message: t.message,
1733
1734
  cause: t.cause,
1734
1735
  status: t.status,
@@ -1737,9 +1738,9 @@ const {
1737
1738
  { type: "auth_error", details: { message: n, action: e, info: r } },
1738
1739
  "*"
1739
1740
  );
1740
- }, Zn = async (e, t, n, r, s) => {
1741
+ }, er = async (e, t, n, r, s) => {
1741
1742
  var f, u, l;
1742
- const o = t.config, i = localStorage.getItem(k.REFRESH_TOKEN), c = ((f = t.response) == null ? void 0 : f.status) || D.InternalServerError;
1743
+ const o = t.config, i = localStorage.getItem(I.REFRESH_TOKEN), c = ((f = t.response) == null ? void 0 : f.status) || D.InternalServerError;
1743
1744
  if (!o || o.__retries === n)
1744
1745
  throw t;
1745
1746
  if (c === D.Unauthorized && o.url !== T.REFRESH_EMBED_TOKEN && o.url !== T.REFRESH_TOKEN && o.url !== T.SIGN_IN && o.url !== T.SIGN_UP) {
@@ -1755,7 +1756,7 @@ const {
1755
1756
  throw p;
1756
1757
  });
1757
1758
  r = !0;
1758
- const R = localStorage.getItem(k.AUTH_FLOW) === dt.POST_MESSAGE ? Be.refreshEmbedToken : Be.refreshToken, { data: S, success: h, message: m } = await R(i);
1759
+ const R = localStorage.getItem(I.AUTH_FLOW) === pt.POST_MESSAGE ? Be.refreshEmbedToken : Be.refreshToken, { data: S, success: h, message: m } = await R(i);
1759
1760
  if (!h)
1760
1761
  throw (u = o == null ? void 0 : o.url) != null && u.includes(T.EXCHANGE_TOKEN) || De("refresh_token", m), r = !1, Fe(e, t), t;
1761
1762
  return (l = o.url) != null && l.includes(T.EXCHANGE_TOKEN) && "id_token" in S && (o.data = JSON.stringify({ idToken: S.id_token })), r = !1, o.headers && (o.headers.Authorization = `Bearer ${S.token}`), Fe(e, null, S.token), s(o);
@@ -1769,29 +1770,31 @@ const {
1769
1770
  D.NotFound
1770
1771
  ].includes(c) || (o.__retries || (o.__retries = 0), o.__retries += 1, o.__retries > n))
1771
1772
  throw t;
1772
- return Yn(
1773
+ return Qn(
1773
1774
  () => s(o),
1774
1775
  Math.pow(10, o.__retries + 1) / 2
1775
1776
  // Exponential backoff 50ms, 500ms, 5000ms
1776
1777
  );
1777
- }, Qn = y.create();
1778
- Qn.interceptors.request.use((e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(k.TOKEN), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }));
1778
+ }, tr = y.create();
1779
+ tr.interceptors.request.use((e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(I.TOKEN), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }));
1779
1780
  const C = y.create();
1780
- C.interceptors.request.use((e) => (e = Wn(e), e));
1781
- const er = 3;
1782
- let tr = !1;
1783
- const nr = [];
1781
+ C.interceptors.request.use((e) => (e = Xn(e), e));
1782
+ const nr = y.create();
1783
+ nr.interceptors.request.use((e) => (e = Yn(e), e));
1784
+ const rr = 3;
1785
+ let sr = !1;
1786
+ const or = [];
1784
1787
  C.interceptors.response.use(
1785
1788
  null,
1786
- (e) => Zn(
1787
- nr,
1789
+ (e) => er(
1790
+ or,
1788
1791
  e,
1789
- er,
1790
- tr,
1792
+ rr,
1793
+ sr,
1791
1794
  C
1792
1795
  )
1793
1796
  );
1794
- class rr {
1797
+ class ir {
1795
1798
  constructor() {
1796
1799
  /**
1797
1800
  * Logs in a user with the provided email and password.
@@ -1799,7 +1802,7 @@ class rr {
1799
1802
  * @param params - The sign-in parameters containing email and password.
1800
1803
  * @returns A promise that resolves to a service response containing authentication data.
1801
1804
  */
1802
- I(this, "login", async (t) => {
1805
+ U(this, "login", async (t) => {
1803
1806
  var n, r, s, o;
1804
1807
  try {
1805
1808
  const { data: i } = await C.post(T.SIGN_IN, {
@@ -1809,7 +1812,7 @@ class rr {
1809
1812
  queryKey: [j.USER_REGIONS],
1810
1813
  queryFn: this.getRegions
1811
1814
  }), f = P(i.data), u = (n = i.data) == null ? void 0 : n.accessToken;
1812
- return localStorage.setItem(k.TOKEN, u), {
1815
+ return localStorage.setItem(I.TOKEN, u), {
1813
1816
  success: !0,
1814
1817
  data: P({
1815
1818
  ...i.data,
@@ -1835,7 +1838,7 @@ class rr {
1835
1838
  * @param params - The sign-up parameters containing email, password, and region.
1836
1839
  * @returns A promise that resolves to a service response containing authentication data.
1837
1840
  */
1838
- I(this, "signUp", async (t) => {
1841
+ U(this, "signUp", async (t) => {
1839
1842
  var n, r, s, o, i;
1840
1843
  try {
1841
1844
  const { data: c } = await C.post(T.SIGN_UP, {
@@ -1851,7 +1854,7 @@ class rr {
1851
1854
  queryKey: [j.USER_REGIONS],
1852
1855
  queryFn: this.getRegions
1853
1856
  }), u = P(c.data), l = (n = c.data) == null ? void 0 : n.tokens.accessToken;
1854
- return localStorage.setItem(k.TOKEN, l), {
1857
+ return localStorage.setItem(I.TOKEN, l), {
1855
1858
  success: !0,
1856
1859
  data: {
1857
1860
  token: l,
@@ -1871,7 +1874,7 @@ class rr {
1871
1874
  };
1872
1875
  }
1873
1876
  });
1874
- I(this, "getOrCreateGoogleUser", async (t, n) => {
1877
+ U(this, "getOrCreateGoogleUser", async (t, n) => {
1875
1878
  var r, s, o, i, c;
1876
1879
  try {
1877
1880
  const { data: f } = await C.post(T.GOOGLE_AUTH, {
@@ -1881,7 +1884,7 @@ class rr {
1881
1884
  queryKey: [j.USER_REGIONS],
1882
1885
  queryFn: this.getRegions
1883
1886
  }), l = P(f.data), d = (r = f.data) == null ? void 0 : r.tokens.accessToken;
1884
- return localStorage.setItem(k.TOKEN, d), {
1887
+ return localStorage.setItem(I.TOKEN, d), {
1885
1888
  success: !0,
1886
1889
  data: {
1887
1890
  token: d,
@@ -1901,7 +1904,7 @@ class rr {
1901
1904
  };
1902
1905
  }
1903
1906
  });
1904
- I(this, "resendVerificationEmail", async (t) => {
1907
+ U(this, "resendVerificationEmail", async (t) => {
1905
1908
  var n, r, s;
1906
1909
  try {
1907
1910
  return (await C.post(
@@ -1925,12 +1928,12 @@ class rr {
1925
1928
  * @param idToken - The ID token to authenticate with.
1926
1929
  * @returns A promise that resolves to a service response containing authentication data.
1927
1930
  */
1928
- I(this, "authenticateWithToken", async (t, n) => {
1931
+ U(this, "authenticateWithToken", async (t, n) => {
1929
1932
  var r, s, o;
1930
1933
  try {
1931
1934
  const { data: i } = await C.post(
1932
1935
  T.EXCHANGE_TOKEN,
1933
- ht({
1936
+ mt({
1934
1937
  idToken: t,
1935
1938
  exchangeTokenEndPoint: n
1936
1939
  })
@@ -1962,7 +1965,7 @@ class rr {
1962
1965
  *
1963
1966
  * @returns A promise that resolves to a service response containing the user details.
1964
1967
  */
1965
- I(this, "checkUser", async () => {
1968
+ U(this, "checkUser", async () => {
1966
1969
  try {
1967
1970
  const { data: t } = await C.get(T.ME), n = await $.ensureQueryData({
1968
1971
  queryKey: [j.USER_REGIONS],
@@ -1992,7 +1995,7 @@ class rr {
1992
1995
  *
1993
1996
  * @param refreshToken - The refresh token
1994
1997
  */
1995
- I(this, "refreshEmbedToken", async (t) => {
1998
+ U(this, "refreshEmbedToken", async (t) => {
1996
1999
  try {
1997
2000
  const { data: n } = await C.post(
1998
2001
  T.REFRESH_EMBED_TOKEN,
@@ -2000,7 +2003,7 @@ class rr {
2000
2003
  refreshToken: t
2001
2004
  }
2002
2005
  ), r = n.data.token;
2003
- return localStorage.setItem(k.TOKEN, r), {
2006
+ return localStorage.setItem(I.TOKEN, r), {
2004
2007
  success: !0,
2005
2008
  data: n.data
2006
2009
  };
@@ -2017,7 +2020,7 @@ class rr {
2017
2020
  *
2018
2021
  * @param refreshToken - The refresh token
2019
2022
  */
2020
- I(this, "refreshToken", async (t) => {
2023
+ U(this, "refreshToken", async (t) => {
2021
2024
  try {
2022
2025
  const { data: n } = await C.post(
2023
2026
  T.REFRESH_TOKEN,
@@ -2025,7 +2028,7 @@ class rr {
2025
2028
  refreshToken: t
2026
2029
  }
2027
2030
  ), r = n.data.accessToken;
2028
- return localStorage.setItem(k.TOKEN, r), {
2031
+ return localStorage.setItem(I.TOKEN, r), {
2029
2032
  success: !0,
2030
2033
  data: {
2031
2034
  ...n.data,
@@ -2045,36 +2048,38 @@ class rr {
2045
2048
  *
2046
2049
  * @returns A promise that resolves to a service response containing the request limit data.
2047
2050
  */
2048
- I(this, "getRequestLimit", async () => (await C.get(T.REQUEST_LIMIT)).data);
2051
+ U(this, "getRequestLimit", async () => (await C.get(T.REQUEST_LIMIT)).data);
2049
2052
  /**
2050
2053
  * Retrieves the regions available for user registration.
2051
2054
  *
2052
2055
  * @returns A promise that resolves to a service response containing the available regions.
2053
2056
  */
2054
- I(this, "getRegions", async () => {
2057
+ U(this, "getRegions", async () => {
2055
2058
  var n;
2056
2059
  const t = await C.get(T.REGIONS);
2057
2060
  return P((n = t.data) == null ? void 0 : n.data);
2058
2061
  });
2059
2062
  }
2060
2063
  }
2061
- const Be = new rr();
2064
+ const Be = new ir();
2062
2065
  export {
2063
2066
  Be as A,
2064
2067
  j as E,
2065
2068
  P as a,
2066
- Et as b,
2069
+ Rt as b,
2067
2070
  C as c,
2068
2071
  y as d,
2069
- Jn as e,
2072
+ Wn as e,
2070
2073
  we as f,
2071
- Wn as g,
2072
- Zn as h,
2073
- Qn as i,
2074
- Xn as j,
2075
- Yn as k,
2076
- De as l,
2074
+ Xn as g,
2075
+ er as h,
2076
+ tr as i,
2077
+ Yn as j,
2078
+ Zn as k,
2079
+ Qn as l,
2080
+ nr as m,
2081
+ De as n,
2077
2082
  Fe as p,
2078
- ht as r,
2079
- mt as t
2083
+ mt as r,
2084
+ Et as t
2080
2085
  };