@haus-storefront-react/vendure-plugin-configs 0.0.21 → 0.0.23

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 (4) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/badge.js +20 -20
  3. package/badge.mjs +524 -519
  4. package/package.json +4 -4
package/badge.mjs CHANGED
@@ -1,21 +1,21 @@
1
- import { V as mn, l as Ct } from "./index-Wcc0o6jA.mjs";
2
- import { c as z, j, b as hn, t as yn, r as qt } from "./index-DlwdCtNm.mjs";
1
+ import { V as hn, l as Dt } from "./index-Wcc0o6jA.mjs";
2
+ import { c as J, j, b as yn, t as bn, r as jt } from "./index-DlwdCtNm.mjs";
3
3
  import * as E from "react";
4
- import { createContext as ye, useContext as bn, useRef as gn } from "react";
5
- import { initReactI18next as Ze } from "react-i18next";
6
- import et from "i18next";
4
+ import { createContext as be, useContext as gn, useRef as wn } from "react";
5
+ import { initReactI18next as tt } from "react-i18next";
6
+ import nt from "i18next";
7
7
  import { QueryClient as Ue } from "@tanstack/react-query";
8
- import { StyleSheet as se } from "react-native";
9
- const W = new mn({
8
+ import { StyleSheet as ae } from "react-native";
9
+ const X = new hn({
10
10
  name: "badges",
11
11
  enableFeatures: {
12
12
  showBadges: ({
13
13
  badges: t = [],
14
14
  parentComponent: e
15
15
  }) => {
16
- const r = e ? W.getSettings().availablePositions[e] : W.getSettings().defaultPositions;
16
+ const r = e ? X.getSettings().availablePositions[e] : X.getSettings().defaultPositions;
17
17
  return {
18
- badges: Ct.filter(t, (o) => r ? r.includes(o.position) : !0),
18
+ badges: Dt.filter(t, (o) => r ? r.includes(o.position) : !0),
19
19
  availablePositions: r
20
20
  };
21
21
  }
@@ -30,7 +30,7 @@ const W = new mn({
30
30
  }
31
31
  }
32
32
  });
33
- W.setQueryUpdates({
33
+ X.setQueryUpdates({
34
34
  product: {
35
35
  fields: [{
36
36
  badges: ["id", "position", "assetId", {
@@ -74,8 +74,8 @@ W.setQueryUpdates({
74
74
  }]
75
75
  }
76
76
  });
77
- W.setRequests({
78
- getBadges: async () => W.getSdk().createRequest({
77
+ X.setRequests({
78
+ getBadges: async () => X.getSdk().createRequest({
79
79
  operation: "badges",
80
80
  fields: ["totalItems", {
81
81
  items: ["id", "createdAt", "updatedAt", "collectionId", "position", "assetId", {
@@ -99,7 +99,7 @@ function vn(t) {
99
99
  const s = E.createContext(i), a = e.length;
100
100
  e.push(s);
101
101
  const u = (l) => {
102
- const d = z.c(8);
102
+ const d = J.c(8);
103
103
  let m, y, p;
104
104
  d[0] !== l ? ({
105
105
  scope: p,
@@ -109,9 +109,9 @@ function vn(t) {
109
109
  const b = p?.[t]?.[a] || s;
110
110
  let h;
111
111
  h = y;
112
- const v = h;
113
- let w;
114
- return d[4] !== b.Provider || d[5] !== m || d[6] !== v ? (w = /* @__PURE__ */ j.jsx(b.Provider, { value: v, children: m }), d[4] = b.Provider, d[5] = m, d[6] = v, d[7] = w) : w = d[7], w;
112
+ const w = h;
113
+ let v;
114
+ return d[4] !== b.Provider || d[5] !== m || d[6] !== w ? (v = /* @__PURE__ */ j.jsx(b.Provider, { value: w, children: m }), d[4] = b.Provider, d[5] = m, d[6] = w, d[7] = v) : v = d[7], v;
115
115
  };
116
116
  u.displayName = o + "Provider";
117
117
  function c(l, d) {
@@ -138,13 +138,13 @@ function vn(t) {
138
138
  }
139
139
  return n.scopeName = t, [r, n];
140
140
  }
141
- const wn = Symbol("radix.slottable");
142
- function Sn(...t) {
141
+ const Sn = Symbol("radix.slottable");
142
+ function On(...t) {
143
143
  return (e) => t.forEach((r) => {
144
144
  typeof r == "function" ? r(e) : r != null && (r.current = e);
145
145
  });
146
146
  }
147
- function On(t, e) {
147
+ function En(t, e) {
148
148
  const r = {
149
149
  ...e
150
150
  };
@@ -153,42 +153,42 @@ function On(t, e) {
153
153
  /^on[A-Z]/.test(n) ? o && i ? r[n] = (...a) => {
154
154
  const u = i(...a);
155
155
  return o(...a), u;
156
- } : o && (r[n] = o) : n === "style" ? r[n] = En(o, i) : n === "className" && (r[n] = [o, i].filter(Boolean).join(" "));
156
+ } : o && (r[n] = o) : n === "style" ? r[n] = An(o, i) : n === "className" && (r[n] = [o, i].filter(Boolean).join(" "));
157
157
  }
158
158
  return {
159
159
  ...t,
160
160
  ...r
161
161
  };
162
162
  }
163
- function En(t, e) {
164
- return typeof t == "function" && typeof e == "function" ? (r) => se.flatten([t(r), e(r)]) : typeof t == "function" ? (r) => e ? se.flatten([t(r), e]) : t(r) : typeof e == "function" ? (r) => t ? se.flatten([t, e(r)]) : e(r) : se.flatten([t, e].filter(Boolean));
165
- }
166
- function An(t) {
167
- return E.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === wn;
163
+ function An(t, e) {
164
+ return typeof t == "function" && typeof e == "function" ? (r) => ae.flatten([t(r), e(r)]) : typeof t == "function" ? (r) => e ? ae.flatten([t(r), e]) : t(r) : typeof e == "function" ? (r) => t ? ae.flatten([t, e(r)]) : e(r) : ae.flatten([t, e].filter(Boolean));
168
165
  }
169
166
  function Tn(t) {
167
+ return E.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Sn;
168
+ }
169
+ function _n(t) {
170
170
  let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning;
171
171
  return r ? t.ref : (e = Object.getOwnPropertyDescriptor(t, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
172
172
  }
173
- function _n(t, e) {
173
+ function Rn(t, e) {
174
174
  const r = E.forwardRef((n, o) => {
175
175
  const {
176
176
  children: i,
177
177
  ...s
178
178
  } = n;
179
179
  if (E.isValidElement(i)) {
180
- const a = Tn(i), u = On(s, i.props);
181
- return i.type !== E.Fragment && (u.ref = o ? Sn(o, a) : a), E.cloneElement(i, u);
180
+ const a = _n(i), u = En(s, i.props);
181
+ return i.type !== E.Fragment && (u.ref = o ? On(o, a) : a), E.cloneElement(i, u);
182
182
  }
183
183
  return E.Children.count(i) > 1 ? E.Children.only(null) : null;
184
184
  });
185
185
  return r.displayName = `${t}.SlotClone`, r;
186
186
  }
187
- function we(t, e = !1, r = "div") {
187
+ function Oe(t, e = !1, r = "div") {
188
188
  if (!e)
189
- return hn(r, t);
190
- const n = _n("Slot"), o = E.forwardRef((i, s) => {
191
- const a = z.c(15);
189
+ return yn(r, t);
190
+ const n = Rn("Slot"), o = E.forwardRef((i, s) => {
191
+ const a = J.c(15);
192
192
  let u, c;
193
193
  a[0] !== i ? ({
194
194
  children: u,
@@ -198,11 +198,11 @@ function we(t, e = !1, r = "div") {
198
198
  if (a[3] !== u || a[4] !== s || a[5] !== c) {
199
199
  l = Symbol.for("react.early_return_sentinel");
200
200
  e: {
201
- const m = E.Children.toArray(u), y = m.find(An);
201
+ const m = E.Children.toArray(u), y = m.find(Tn);
202
202
  if (y) {
203
- const p = y.props.children, b = m.map((w) => w === y ? E.Children.count(p) > 1 ? E.Children.only(null) : E.isValidElement(p) ? p.props.children : null : w), h = E.isValidElement(p) ? E.cloneElement(p, void 0, b) : null;
204
- let v;
205
- a[7] !== s || a[8] !== c || a[9] !== h ? (v = /* @__PURE__ */ j.jsx(n, { ...c, ref: s, children: h }), a[7] = s, a[8] = c, a[9] = h, a[10] = v) : v = a[10], l = v;
203
+ const p = y.props.children, b = m.map((v) => v === y ? E.Children.count(p) > 1 ? E.Children.only(null) : E.isValidElement(p) ? p.props.children : null : v), h = E.isValidElement(p) ? E.cloneElement(p, void 0, b) : null;
204
+ let w;
205
+ a[7] !== s || a[8] !== c || a[9] !== h ? (w = /* @__PURE__ */ j.jsx(n, { ...c, ref: s, children: h }), a[7] = s, a[8] = c, a[9] = h, a[10] = w) : w = a[10], l = w;
206
206
  break e;
207
207
  }
208
208
  }
@@ -216,16 +216,16 @@ function we(t, e = !1, r = "div") {
216
216
  });
217
217
  return o.displayName = "Slot", o;
218
218
  }
219
- const Rn = "debug", N = () => {
219
+ const Nn = "debug", N = () => {
220
220
  try {
221
221
  if (typeof window > "u" || typeof localStorage > "u")
222
222
  return !1;
223
- const t = localStorage.getItem(Rn);
223
+ const t = localStorage.getItem(Nn);
224
224
  return t === "true" || t === "1";
225
225
  } catch {
226
226
  return !1;
227
227
  }
228
- }, Nn = () => {
228
+ }, Pn = () => {
229
229
  const t = (e, r, n = []) => r ? typeof e == "string" ? [`<${r}> ${e}`, ...n] : [`<${r}>`, e, ...n] : Array.isArray(e) ? [...e, ...n] : [e, ...n];
230
230
  return {
231
231
  log: (e, r, ...n) => {
@@ -274,67 +274,67 @@ const Rn = "debug", N = () => {
274
274
  }
275
275
  }
276
276
  };
277
- }, Pn = Nn();
278
- let V;
277
+ }, M = Pn();
278
+ let W;
279
279
  try {
280
- V = require("@react-native-async-storage/async-storage").default;
280
+ W = require("@react-native-async-storage/async-storage").default;
281
281
  } catch {
282
- V = null;
282
+ W = null;
283
283
  }
284
- const Ce = typeof window < "u" && typeof window.localStorage < "u", qe = !!V, De = {}, ae = {}, Y = {
285
- getItem: async (t) => qe ? V.getItem(t) : Ce ? new Promise((e) => {
284
+ const De = typeof window < "u" && typeof window.localStorage < "u", je = !!W, xe = {}, ue = {}, Z = {
285
+ getItem: async (t) => je ? W.getItem(t) : De ? new Promise((e) => {
286
286
  Promise.resolve().then(() => {
287
- const r = window.localStorage.getItem(t), n = ae[t];
288
- r !== n && (ae[t] = r || ""), e(r);
287
+ const r = window.localStorage.getItem(t), n = ue[t];
288
+ r !== n && (ue[t] = r || ""), e(r);
289
289
  });
290
- }) : De[t] || null,
290
+ }) : xe[t] || null,
291
291
  setItem: async (t, e) => {
292
- if (qe)
293
- return V.setItem(t, e);
294
- if (Ce)
292
+ if (je)
293
+ return W.setItem(t, e);
294
+ if (De)
295
295
  return new Promise((r, n) => {
296
296
  Promise.resolve().then(() => {
297
297
  try {
298
298
  window.localStorage.setItem(t, e);
299
299
  const o = window.localStorage.getItem(t);
300
- o === e ? (ae[t] = e, r()) : n(new Error(`Failed to set localStorage item: expected "${e}", got "${o}"`));
300
+ o === e ? (ue[t] = e, r()) : n(new Error(`Failed to set localStorage item: expected "${e}", got "${o}"`));
301
301
  } catch (o) {
302
302
  n(o);
303
303
  }
304
304
  });
305
305
  });
306
- De[t] = e;
306
+ xe[t] = e;
307
307
  },
308
308
  removeItem: async (t) => {
309
- if (qe)
310
- return V.removeItem(t);
311
- if (Ce)
309
+ if (je)
310
+ return W.removeItem(t);
311
+ if (De)
312
312
  return new Promise((e, r) => {
313
313
  Promise.resolve().then(() => {
314
314
  try {
315
315
  window.localStorage.removeItem(t);
316
316
  const n = window.localStorage.getItem(t);
317
- n === null ? (delete ae[t], e()) : r(new Error(`Failed to remove localStorage item: key "${t}" still exists with value "${n}"`));
317
+ n === null ? (delete ue[t], e()) : r(new Error(`Failed to remove localStorage item: key "${t}" still exists with value "${n}"`));
318
318
  } catch (n) {
319
319
  r(n);
320
320
  }
321
321
  });
322
322
  });
323
- delete De[t];
323
+ delete xe[t];
324
324
  }
325
325
  };
326
- let je;
327
- typeof window < "u" ? (window.__STORE_I18N_INSTANCE__ || (window.__STORE_I18N_INSTANCE__ = et.createInstance()), window.__STORE_I18N_INSTANCE__.use(Ze), je = window.__STORE_I18N_INSTANCE__) : (je = et.createInstance(), je.use(Ze));
328
- function Ie(t) {
326
+ let Fe;
327
+ typeof window < "u" ? (window.__STORE_I18N_INSTANCE__ || (window.__STORE_I18N_INSTANCE__ = nt.createInstance()), window.__STORE_I18N_INSTANCE__.use(tt), Fe = window.__STORE_I18N_INSTANCE__) : (Fe = nt.createInstance(), Fe.use(tt));
328
+ function $e(t) {
329
329
  "@babel/helpers - typeof";
330
- return Ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
330
+ return $e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
331
331
  return typeof e;
332
332
  } : function(e) {
333
333
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
334
- }, Ie(t);
334
+ }, $e(t);
335
335
  }
336
- function Dt() {
337
- return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Ie(XMLHttpRequest)) === "object";
336
+ function xt() {
337
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : $e(XMLHttpRequest)) === "object";
338
338
  }
339
339
  function kn(t) {
340
340
  return !!t && typeof t.then == "function";
@@ -342,7 +342,7 @@ function kn(t) {
342
342
  function Cn(t) {
343
343
  return kn(t) ? t : Promise.resolve(t);
344
344
  }
345
- function tt(t, e) {
345
+ function rt(t, e) {
346
346
  var r = Object.keys(t);
347
347
  if (Object.getOwnPropertySymbols) {
348
348
  var n = Object.getOwnPropertySymbols(t);
@@ -352,12 +352,12 @@ function tt(t, e) {
352
352
  }
353
353
  return r;
354
354
  }
355
- function nt(t) {
355
+ function ot(t) {
356
356
  for (var e = 1; e < arguments.length; e++) {
357
357
  var r = arguments[e] != null ? arguments[e] : {};
358
- e % 2 ? tt(Object(r), !0).forEach(function(n) {
358
+ e % 2 ? rt(Object(r), !0).forEach(function(n) {
359
359
  qn(t, n, r[n]);
360
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : tt(Object(r)).forEach(function(n) {
360
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : rt(Object(r)).forEach(function(n) {
361
361
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
362
362
  });
363
363
  }
@@ -368,34 +368,34 @@ function qn(t, e, r) {
368
368
  }
369
369
  function Dn(t) {
370
370
  var e = jn(t, "string");
371
- return U(e) == "symbol" ? e : e + "";
371
+ return L(e) == "symbol" ? e : e + "";
372
372
  }
373
373
  function jn(t, e) {
374
- if (U(t) != "object" || !t) return t;
374
+ if (L(t) != "object" || !t) return t;
375
375
  var r = t[Symbol.toPrimitive];
376
376
  if (r !== void 0) {
377
377
  var n = r.call(t, e);
378
- if (U(n) != "object") return n;
378
+ if (L(n) != "object") return n;
379
379
  throw new TypeError("@@toPrimitive must return a primitive value.");
380
380
  }
381
381
  return (e === "string" ? String : Number)(t);
382
382
  }
383
- function U(t) {
383
+ function L(t) {
384
384
  "@babel/helpers - typeof";
385
- return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
385
+ return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
386
386
  return typeof e;
387
387
  } : function(e) {
388
388
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
389
- }, U(t);
389
+ }, L(t);
390
390
  }
391
391
  var x = typeof fetch == "function" ? fetch : void 0;
392
392
  typeof global < "u" && global.fetch ? x = global.fetch : typeof window < "u" && window.fetch && (x = window.fetch);
393
- var Z;
394
- Dt() && (typeof global < "u" && global.XMLHttpRequest ? Z = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (Z = window.XMLHttpRequest));
395
- var be;
396
- typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? be = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (be = window.ActiveXObject));
393
+ var ee;
394
+ xt() && (typeof global < "u" && global.XMLHttpRequest ? ee = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (ee = window.XMLHttpRequest));
395
+ var ge;
396
+ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? ge = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (ge = window.ActiveXObject));
397
397
  typeof x != "function" && (x = void 0);
398
- if (!x && !Z && !be)
398
+ if (!x && !ee && !ge)
399
399
  try {
400
400
  import("./browser-ponyfill-DYgay_ta.mjs").then((t) => t.b).then(function(t) {
401
401
  x = t.default;
@@ -403,8 +403,8 @@ if (!x && !Z && !be)
403
403
  });
404
404
  } catch {
405
405
  }
406
- var Le = function(e, r) {
407
- if (r && U(r) === "object") {
406
+ var He = function(e, r) {
407
+ if (r && L(r) === "object") {
408
408
  var n = "";
409
409
  for (var o in r)
410
410
  n += "&" + encodeURIComponent(o) + "=" + encodeURIComponent(r[o]);
@@ -412,7 +412,7 @@ var Le = function(e, r) {
412
412
  e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
413
413
  }
414
414
  return e;
415
- }, rt = function(e, r, n, o) {
415
+ }, it = function(e, r, n, o) {
416
416
  var i = function(u) {
417
417
  if (!u.ok) return n(u.statusText || "Error", {
418
418
  status: u.status
@@ -432,32 +432,32 @@ var Le = function(e, r) {
432
432
  }
433
433
  }
434
434
  typeof fetch == "function" ? fetch(e, r).then(i).catch(n) : x(e, r).then(i).catch(n);
435
- }, ot = !1, xn = function(e, r, n, o) {
436
- e.queryStringParams && (r = Le(r, e.queryStringParams));
437
- var i = nt({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
435
+ }, st = !1, xn = function(e, r, n, o) {
436
+ e.queryStringParams && (r = He(r, e.queryStringParams));
437
+ var i = ot({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
438
438
  typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (i["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), n && (i["Content-Type"] = "application/json");
439
- var s = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, a = nt({
439
+ var s = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, a = ot({
440
440
  method: n ? "POST" : "GET",
441
441
  body: n ? e.stringify(n) : void 0,
442
442
  headers: i
443
- }, ot ? {} : s), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
443
+ }, st ? {} : s), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
444
444
  try {
445
- rt(r, a, o, u);
445
+ it(r, a, o, u);
446
446
  } catch (c) {
447
447
  if (!s || Object.keys(s).length === 0 || !c.message || c.message.indexOf("not implemented") < 0)
448
448
  return o(c);
449
449
  try {
450
450
  Object.keys(s).forEach(function(l) {
451
451
  delete a[l];
452
- }), rt(r, a, o, u), ot = !0;
452
+ }), it(r, a, o, u), st = !0;
453
453
  } catch (l) {
454
454
  o(l);
455
455
  }
456
456
  }
457
457
  }, Fn = function(e, r, n, o) {
458
- n && U(n) === "object" && (n = Le("", n).slice(1)), e.queryStringParams && (r = Le(r, e.queryStringParams));
458
+ n && L(n) === "object" && (n = He("", n).slice(1)), e.queryStringParams && (r = He(r, e.queryStringParams));
459
459
  try {
460
- var i = Z ? new Z() : new be("MSXML2.XMLHTTP.3.0");
460
+ var i = ee ? new ee() : new ge("MSXML2.XMLHTTP.3.0");
461
461
  i.open(n ? "POST" : "GET", r, 1), e.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!e.withCredentials, n && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
462
462
  var s = e.customHeaders;
463
463
  if (s = typeof s == "function" ? s() : s, s)
@@ -476,19 +476,19 @@ var Le = function(e, r) {
476
476
  if (typeof n == "function" && (o = n, n = void 0), o = o || function() {
477
477
  }, x && r.indexOf("file:") !== 0)
478
478
  return xn(e, r, n, o);
479
- if (Dt() || typeof ActiveXObject == "function")
479
+ if (xt() || typeof ActiveXObject == "function")
480
480
  return Fn(e, r, n, o);
481
481
  o(new Error("No fetch and no xhr implementation found!"));
482
482
  };
483
- function X(t) {
483
+ function z(t) {
484
484
  "@babel/helpers - typeof";
485
- return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
485
+ return z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
486
486
  return typeof e;
487
487
  } : function(e) {
488
488
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
489
- }, X(t);
489
+ }, z(t);
490
490
  }
491
- function it(t, e) {
491
+ function at(t, e) {
492
492
  var r = Object.keys(t);
493
493
  if (Object.getOwnPropertySymbols) {
494
494
  var n = Object.getOwnPropertySymbols(t);
@@ -498,12 +498,12 @@ function it(t, e) {
498
498
  }
499
499
  return r;
500
500
  }
501
- function xe(t) {
501
+ function Me(t) {
502
502
  for (var e = 1; e < arguments.length; e++) {
503
503
  var r = arguments[e] != null ? arguments[e] : {};
504
- e % 2 ? it(Object(r), !0).forEach(function(n) {
505
- jt(t, n, r[n]);
506
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : it(Object(r)).forEach(function(n) {
504
+ e % 2 ? at(Object(r), !0).forEach(function(n) {
505
+ Ft(t, n, r[n]);
506
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : at(Object(r)).forEach(function(n) {
507
507
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
508
508
  });
509
509
  }
@@ -512,28 +512,28 @@ function xe(t) {
512
512
  function Bn(t, e) {
513
513
  if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
514
514
  }
515
- function Un(t, e) {
515
+ function In(t, e) {
516
516
  for (var r = 0; r < e.length; r++) {
517
517
  var n = e[r];
518
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, xt(n.key), n);
518
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Mt(n.key), n);
519
519
  }
520
520
  }
521
- function In(t, e, r) {
522
- return e && Un(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
521
+ function Ln(t, e, r) {
522
+ return e && In(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
523
523
  }
524
- function jt(t, e, r) {
525
- return (e = xt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
524
+ function Ft(t, e, r) {
525
+ return (e = Mt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
526
526
  }
527
- function xt(t) {
528
- var e = Ln(t, "string");
529
- return X(e) == "symbol" ? e : e + "";
527
+ function Mt(t) {
528
+ var e = Un(t, "string");
529
+ return z(e) == "symbol" ? e : e + "";
530
530
  }
531
- function Ln(t, e) {
532
- if (X(t) != "object" || !t) return t;
531
+ function Un(t, e) {
532
+ if (z(t) != "object" || !t) return t;
533
533
  var r = t[Symbol.toPrimitive];
534
534
  if (r !== void 0) {
535
535
  var n = r.call(t, e);
536
- if (X(n) != "object") return n;
536
+ if (z(n) != "object") return n;
537
537
  throw new TypeError("@@toPrimitive must return a primitive value.");
538
538
  }
539
539
  return String(t);
@@ -547,7 +547,7 @@ var $n = function() {
547
547
  },
548
548
  stringify: JSON.stringify,
549
549
  parsePayload: function(r, n, o) {
550
- return jt({}, n, o || "");
550
+ return Ft({}, n, o || "");
551
551
  },
552
552
  parseLoadPayload: function(r, n) {
553
553
  },
@@ -569,15 +569,15 @@ var $n = function() {
569
569
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
570
570
  Bn(this, t), this.services = e, this.options = r, this.allOptions = n, this.type = "backend", this.init(e, r, n);
571
571
  }
572
- return In(t, [{
572
+ return Ln(t, [{
573
573
  key: "init",
574
574
  value: function(r) {
575
575
  var n = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
576
- if (this.services = r, this.options = xe(xe(xe({}, $n()), this.options || {}), o), this.allOptions = i, this.services && this.options.reloadInterval) {
576
+ if (this.services = r, this.options = Me(Me(Me({}, $n()), this.options || {}), o), this.allOptions = i, this.services && this.options.reloadInterval) {
577
577
  var s = setInterval(function() {
578
578
  return n.reload();
579
579
  }, this.options.reloadInterval);
580
- X(s) === "object" && typeof s.unref == "function" && s.unref();
580
+ z(s) === "object" && typeof s.unref == "function" && s.unref();
581
581
  }
582
582
  }
583
583
  }, {
@@ -673,45 +673,45 @@ var $n = function() {
673
673
  }]);
674
674
  }();
675
675
  Hn.type = "backend";
676
- let $e;
677
- typeof window < "u" ? (window.__STORE_SDK_CONTEXT__ || (window.__STORE_SDK_CONTEXT__ = ye(void 0)), $e = window.__STORE_SDK_CONTEXT__) : $e = ye(void 0);
676
+ let Ve;
677
+ typeof window < "u" ? (window.__STORE_SDK_CONTEXT__ || (window.__STORE_SDK_CONTEXT__ = be(void 0)), Ve = window.__STORE_SDK_CONTEXT__) : Ve = be(void 0);
678
678
  const Vn = () => {
679
- const t = bn($e);
679
+ const t = gn(Ve);
680
680
  return t || console.error("You must wrap your component in a <DataProvider>"), t?.sdkType === "dummy" || t?.sdkType === "vendure", t;
681
681
  };
682
682
  new Ue();
683
- function Ft(t, e) {
683
+ function Bt(t, e) {
684
684
  return function() {
685
685
  return t.apply(e, arguments);
686
686
  };
687
687
  }
688
- const { toString: Wn } = Object.prototype, { getPrototypeOf: Ke } = Object, { iterator: Se, toStringTag: Mt } = Symbol, Oe = /* @__PURE__ */ ((t) => (e) => {
688
+ const { toString: Wn } = Object.prototype, { getPrototypeOf: Ge } = Object, { iterator: Ee, toStringTag: It } = Symbol, Ae = /* @__PURE__ */ ((t) => (e) => {
689
689
  const r = Wn.call(e);
690
690
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
691
- })(/* @__PURE__ */ Object.create(null)), k = (t) => (t = t.toLowerCase(), (e) => Oe(e) === t), Ee = (t) => (e) => typeof e === t, { isArray: J } = Array, ee = Ee("undefined");
691
+ })(/* @__PURE__ */ Object.create(null)), k = (t) => (t = t.toLowerCase(), (e) => Ae(e) === t), Te = (t) => (e) => typeof e === t, { isArray: Q } = Array, te = Te("undefined");
692
692
  function Xn(t) {
693
- return t !== null && !ee(t) && t.constructor !== null && !ee(t.constructor) && _(t.constructor.isBuffer) && t.constructor.isBuffer(t);
693
+ return t !== null && !te(t) && t.constructor !== null && !te(t.constructor) && _(t.constructor.isBuffer) && t.constructor.isBuffer(t);
694
694
  }
695
- const Bt = k("ArrayBuffer");
695
+ const Lt = k("ArrayBuffer");
696
696
  function zn(t) {
697
697
  let e;
698
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Bt(t.buffer), e;
698
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Lt(t.buffer), e;
699
699
  }
700
- const Jn = Ee("string"), _ = Ee("function"), Ut = Ee("number"), Ae = (t) => t !== null && typeof t == "object", Kn = (t) => t === !0 || t === !1, pe = (t) => {
701
- if (Oe(t) !== "object")
700
+ const Jn = Te("string"), _ = Te("function"), Ut = Te("number"), _e = (t) => t !== null && typeof t == "object", Qn = (t) => t === !0 || t === !1, me = (t) => {
701
+ if (Ae(t) !== "object")
702
702
  return !1;
703
- const e = Ke(t);
704
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Mt in t) && !(Se in t);
705
- }, Qn = k("Date"), Gn = k("File"), Yn = k("Blob"), Zn = k("FileList"), er = (t) => Ae(t) && _(t.pipe), tr = (t) => {
703
+ const e = Ge(t);
704
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(It in t) && !(Ee in t);
705
+ }, Kn = k("Date"), Gn = k("File"), Yn = k("Blob"), Zn = k("FileList"), er = (t) => _e(t) && _(t.pipe), tr = (t) => {
706
706
  let e;
707
- return t && (typeof FormData == "function" && t instanceof FormData || _(t.append) && ((e = Oe(t)) === "formdata" || // detect form-data instance
707
+ return t && (typeof FormData == "function" && t instanceof FormData || _(t.append) && ((e = Ae(t)) === "formdata" || // detect form-data instance
708
708
  e === "object" && _(t.toString) && t.toString() === "[object FormData]"));
709
709
  }, nr = k("URLSearchParams"), [rr, or, ir, sr] = ["ReadableStream", "Request", "Response", "Headers"].map(k), ar = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
710
- function te(t, e, { allOwnKeys: r = !1 } = {}) {
710
+ function ne(t, e, { allOwnKeys: r = !1 } = {}) {
711
711
  if (t === null || typeof t > "u")
712
712
  return;
713
713
  let n, o;
714
- if (typeof t != "object" && (t = [t]), J(t))
714
+ if (typeof t != "object" && (t = [t]), Q(t))
715
715
  for (n = 0, o = t.length; n < o; n++)
716
716
  e.call(null, t[n], n, t);
717
717
  else {
@@ -721,7 +721,7 @@ function te(t, e, { allOwnKeys: r = !1 } = {}) {
721
721
  a = i[n], e.call(null, t[a], a, t);
722
722
  }
723
723
  }
724
- function It(t, e) {
724
+ function $t(t, e) {
725
725
  e = e.toLowerCase();
726
726
  const r = Object.keys(t);
727
727
  let n = r.length, o;
@@ -730,18 +730,18 @@ function It(t, e) {
730
730
  return o;
731
731
  return null;
732
732
  }
733
- const M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Lt = (t) => !ee(t) && t !== M;
734
- function He() {
735
- const { caseless: t } = Lt(this) && this || {}, e = {}, r = (n, o) => {
736
- const i = t && It(e, o) || o;
737
- pe(e[i]) && pe(n) ? e[i] = He(e[i], n) : pe(n) ? e[i] = He({}, n) : J(n) ? e[i] = n.slice() : e[i] = n;
733
+ const B = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ht = (t) => !te(t) && t !== B;
734
+ function We() {
735
+ const { caseless: t } = Ht(this) && this || {}, e = {}, r = (n, o) => {
736
+ const i = t && $t(e, o) || o;
737
+ me(e[i]) && me(n) ? e[i] = We(e[i], n) : me(n) ? e[i] = We({}, n) : Q(n) ? e[i] = n.slice() : e[i] = n;
738
738
  };
739
739
  for (let n = 0, o = arguments.length; n < o; n++)
740
- arguments[n] && te(arguments[n], r);
740
+ arguments[n] && ne(arguments[n], r);
741
741
  return e;
742
742
  }
743
- const ur = (t, e, r, { allOwnKeys: n } = {}) => (te(e, (o, i) => {
744
- r && _(o) ? t[i] = Ft(o, r) : t[i] = o;
743
+ const ur = (t, e, r, { allOwnKeys: n } = {}) => (ne(e, (o, i) => {
744
+ r && _(o) ? t[i] = Bt(o, r) : t[i] = o;
745
745
  }, { allOwnKeys: n }), t), cr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), lr = (t, e, r, n) => {
746
746
  t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
747
747
  value: e.prototype
@@ -753,7 +753,7 @@ const ur = (t, e, r, { allOwnKeys: n } = {}) => (te(e, (o, i) => {
753
753
  do {
754
754
  for (o = Object.getOwnPropertyNames(t), i = o.length; i-- > 0; )
755
755
  s = o[i], (!n || n(s, t, e)) && !a[s] && (e[s] = t[s], a[s] = !0);
756
- t = r !== !1 && Ke(t);
756
+ t = r !== !1 && Ge(t);
757
757
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
758
758
  return e;
759
759
  }, dr = (t, e, r) => {
@@ -762,15 +762,15 @@ const ur = (t, e, r, { allOwnKeys: n } = {}) => (te(e, (o, i) => {
762
762
  return n !== -1 && n === r;
763
763
  }, pr = (t) => {
764
764
  if (!t) return null;
765
- if (J(t)) return t;
765
+ if (Q(t)) return t;
766
766
  let e = t.length;
767
767
  if (!Ut(e)) return null;
768
768
  const r = new Array(e);
769
769
  for (; e-- > 0; )
770
770
  r[e] = t[e];
771
771
  return r;
772
- }, mr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ke(Uint8Array)), hr = (t, e) => {
773
- const n = (t && t[Se]).call(t);
772
+ }, mr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ge(Uint8Array)), hr = (t, e) => {
773
+ const n = (t && t[Ee]).call(t);
774
774
  let o;
775
775
  for (; (o = n.next()) && !o.done; ) {
776
776
  const i = o.value;
@@ -787,14 +787,14 @@ const ur = (t, e, r, { allOwnKeys: n } = {}) => (te(e, (o, i) => {
787
787
  function(r, n, o) {
788
788
  return n.toUpperCase() + o;
789
789
  }
790
- ), st = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), vr = k("RegExp"), $t = (t, e) => {
790
+ ), ut = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), wr = k("RegExp"), Vt = (t, e) => {
791
791
  const r = Object.getOwnPropertyDescriptors(t), n = {};
792
- te(r, (o, i) => {
792
+ ne(r, (o, i) => {
793
793
  let s;
794
794
  (s = e(o, i, t)) !== !1 && (n[i] = s || o);
795
795
  }), Object.defineProperties(t, n);
796
- }, wr = (t) => {
797
- $t(t, (e, r) => {
796
+ }, vr = (t) => {
797
+ Vt(t, (e, r) => {
798
798
  if (_(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
799
799
  return !1;
800
800
  const n = t[r];
@@ -814,92 +814,92 @@ const ur = (t, e, r, { allOwnKeys: n } = {}) => (te(e, (o, i) => {
814
814
  r[i] = !0;
815
815
  });
816
816
  };
817
- return J(t) ? n(t) : n(String(t).split(e)), r;
817
+ return Q(t) ? n(t) : n(String(t).split(e)), r;
818
818
  }, Or = () => {
819
819
  }, Er = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
820
820
  function Ar(t) {
821
- return !!(t && _(t.append) && t[Mt] === "FormData" && t[Se]);
821
+ return !!(t && _(t.append) && t[It] === "FormData" && t[Ee]);
822
822
  }
823
823
  const Tr = (t) => {
824
824
  const e = new Array(10), r = (n, o) => {
825
- if (Ae(n)) {
825
+ if (_e(n)) {
826
826
  if (e.indexOf(n) >= 0)
827
827
  return;
828
828
  if (!("toJSON" in n)) {
829
829
  e[o] = n;
830
- const i = J(n) ? [] : {};
831
- return te(n, (s, a) => {
830
+ const i = Q(n) ? [] : {};
831
+ return ne(n, (s, a) => {
832
832
  const u = r(s, o + 1);
833
- !ee(u) && (i[a] = u);
833
+ !te(u) && (i[a] = u);
834
834
  }), e[o] = void 0, i;
835
835
  }
836
836
  }
837
837
  return n;
838
838
  };
839
839
  return r(t, 0);
840
- }, _r = k("AsyncFunction"), Rr = (t) => t && (Ae(t) || _(t)) && _(t.then) && _(t.catch), Ht = ((t, e) => t ? setImmediate : e ? ((r, n) => (M.addEventListener("message", ({ source: o, data: i }) => {
841
- o === M && i === r && n.length && n.shift()();
840
+ }, _r = k("AsyncFunction"), Rr = (t) => t && (_e(t) || _(t)) && _(t.then) && _(t.catch), Wt = ((t, e) => t ? setImmediate : e ? ((r, n) => (B.addEventListener("message", ({ source: o, data: i }) => {
841
+ o === B && i === r && n.length && n.shift()();
842
842
  }, !1), (o) => {
843
- n.push(o), M.postMessage(r, "*");
843
+ n.push(o), B.postMessage(r, "*");
844
844
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
845
845
  typeof setImmediate == "function",
846
- _(M.postMessage)
847
- ), Nr = typeof queueMicrotask < "u" ? queueMicrotask.bind(M) : typeof process < "u" && process.nextTick || Ht, Pr = (t) => t != null && _(t[Se]), f = {
848
- isArray: J,
849
- isArrayBuffer: Bt,
846
+ _(B.postMessage)
847
+ ), Nr = typeof queueMicrotask < "u" ? queueMicrotask.bind(B) : typeof process < "u" && process.nextTick || Wt, Pr = (t) => t != null && _(t[Ee]), f = {
848
+ isArray: Q,
849
+ isArrayBuffer: Lt,
850
850
  isBuffer: Xn,
851
851
  isFormData: tr,
852
852
  isArrayBufferView: zn,
853
853
  isString: Jn,
854
854
  isNumber: Ut,
855
- isBoolean: Kn,
856
- isObject: Ae,
857
- isPlainObject: pe,
855
+ isBoolean: Qn,
856
+ isObject: _e,
857
+ isPlainObject: me,
858
858
  isReadableStream: rr,
859
859
  isRequest: or,
860
860
  isResponse: ir,
861
861
  isHeaders: sr,
862
- isUndefined: ee,
863
- isDate: Qn,
862
+ isUndefined: te,
863
+ isDate: Kn,
864
864
  isFile: Gn,
865
865
  isBlob: Yn,
866
- isRegExp: vr,
866
+ isRegExp: wr,
867
867
  isFunction: _,
868
868
  isStream: er,
869
869
  isURLSearchParams: nr,
870
870
  isTypedArray: mr,
871
871
  isFileList: Zn,
872
- forEach: te,
873
- merge: He,
872
+ forEach: ne,
873
+ merge: We,
874
874
  extend: ur,
875
875
  trim: ar,
876
876
  stripBOM: cr,
877
877
  inherits: lr,
878
878
  toFlatObject: fr,
879
- kindOf: Oe,
879
+ kindOf: Ae,
880
880
  kindOfTest: k,
881
881
  endsWith: dr,
882
882
  toArray: pr,
883
883
  forEachEntry: hr,
884
884
  matchAll: yr,
885
885
  isHTMLForm: br,
886
- hasOwnProperty: st,
887
- hasOwnProp: st,
886
+ hasOwnProperty: ut,
887
+ hasOwnProp: ut,
888
888
  // an alias to avoid ESLint no-prototype-builtins detection
889
- reduceDescriptors: $t,
890
- freezeMethods: wr,
889
+ reduceDescriptors: Vt,
890
+ freezeMethods: vr,
891
891
  toObjectSet: Sr,
892
892
  toCamelCase: gr,
893
893
  noop: Or,
894
894
  toFiniteNumber: Er,
895
- findKey: It,
896
- global: M,
897
- isContextDefined: Lt,
895
+ findKey: $t,
896
+ global: B,
897
+ isContextDefined: Ht,
898
898
  isSpecCompliantForm: Ar,
899
899
  toJSONObject: Tr,
900
900
  isAsyncFn: _r,
901
901
  isThenable: Rr,
902
- setImmediate: Ht,
902
+ setImmediate: Wt,
903
903
  asap: Nr,
904
904
  isIterable: Pr
905
905
  };
@@ -927,7 +927,7 @@ f.inherits(g, Error, {
927
927
  };
928
928
  }
929
929
  });
930
- const Vt = g.prototype, Wt = {};
930
+ const Xt = g.prototype, zt = {};
931
931
  [
932
932
  "ERR_BAD_OPTION_VALUE",
933
933
  "ERR_BAD_OPTION",
@@ -943,35 +943,35 @@ const Vt = g.prototype, Wt = {};
943
943
  "ERR_INVALID_URL"
944
944
  // eslint-disable-next-line func-names
945
945
  ].forEach((t) => {
946
- Wt[t] = { value: t };
946
+ zt[t] = { value: t };
947
947
  });
948
- Object.defineProperties(g, Wt);
949
- Object.defineProperty(Vt, "isAxiosError", { value: !0 });
948
+ Object.defineProperties(g, zt);
949
+ Object.defineProperty(Xt, "isAxiosError", { value: !0 });
950
950
  g.from = (t, e, r, n, o, i) => {
951
- const s = Object.create(Vt);
951
+ const s = Object.create(Xt);
952
952
  return f.toFlatObject(t, s, function(u) {
953
953
  return u !== Error.prototype;
954
954
  }, (a) => a !== "isAxiosError"), g.call(s, t.message, e, r, n, o), s.cause = t, s.name = t.name, i && Object.assign(s, i), s;
955
955
  };
956
956
  const kr = null;
957
- function Ve(t) {
957
+ function Xe(t) {
958
958
  return f.isPlainObject(t) || f.isArray(t);
959
959
  }
960
- function Xt(t) {
960
+ function Jt(t) {
961
961
  return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
962
962
  }
963
- function at(t, e, r) {
963
+ function ct(t, e, r) {
964
964
  return t ? t.concat(e).map(function(o, i) {
965
- return o = Xt(o), !r && i ? "[" + o + "]" : o;
965
+ return o = Jt(o), !r && i ? "[" + o + "]" : o;
966
966
  }).join(r ? "." : "") : e;
967
967
  }
968
968
  function Cr(t) {
969
- return f.isArray(t) && !t.some(Ve);
969
+ return f.isArray(t) && !t.some(Xe);
970
970
  }
971
971
  const qr = f.toFlatObject(f, {}, null, function(e) {
972
972
  return /^is[A-Z]/.test(e);
973
973
  });
974
- function Te(t, e, r) {
974
+ function Re(t, e, r) {
975
975
  if (!f.isObject(t))
976
976
  throw new TypeError("target must be an object");
977
977
  e = e || new FormData(), r = f.toFlatObject(r, {
@@ -995,38 +995,38 @@ function Te(t, e, r) {
995
995
  return f.isArrayBuffer(p) || f.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
996
996
  }
997
997
  function l(p, b, h) {
998
- let v = p;
998
+ let w = p;
999
999
  if (p && !h && typeof p == "object") {
1000
1000
  if (f.endsWith(b, "{}"))
1001
1001
  b = n ? b : b.slice(0, -2), p = JSON.stringify(p);
1002
- else if (f.isArray(p) && Cr(p) || (f.isFileList(p) || f.endsWith(b, "[]")) && (v = f.toArray(p)))
1003
- return b = Xt(b), v.forEach(function(O, q) {
1002
+ else if (f.isArray(p) && Cr(p) || (f.isFileList(p) || f.endsWith(b, "[]")) && (w = f.toArray(p)))
1003
+ return b = Jt(b), w.forEach(function(O, q) {
1004
1004
  !(f.isUndefined(O) || O === null) && e.append(
1005
1005
  // eslint-disable-next-line no-nested-ternary
1006
- s === !0 ? at([b], q, i) : s === null ? b : b + "[]",
1006
+ s === !0 ? ct([b], q, i) : s === null ? b : b + "[]",
1007
1007
  c(O)
1008
1008
  );
1009
1009
  }), !1;
1010
1010
  }
1011
- return Ve(p) ? !0 : (e.append(at(h, b, i), c(p)), !1);
1011
+ return Xe(p) ? !0 : (e.append(ct(h, b, i), c(p)), !1);
1012
1012
  }
1013
1013
  const d = [], m = Object.assign(qr, {
1014
1014
  defaultVisitor: l,
1015
1015
  convertValue: c,
1016
- isVisitable: Ve
1016
+ isVisitable: Xe
1017
1017
  });
1018
1018
  function y(p, b) {
1019
1019
  if (!f.isUndefined(p)) {
1020
1020
  if (d.indexOf(p) !== -1)
1021
1021
  throw Error("Circular reference detected in " + b.join("."));
1022
- d.push(p), f.forEach(p, function(v, w) {
1023
- (!(f.isUndefined(v) || v === null) && o.call(
1022
+ d.push(p), f.forEach(p, function(w, v) {
1023
+ (!(f.isUndefined(w) || w === null) && o.call(
1024
1024
  e,
1025
- v,
1026
- f.isString(w) ? w.trim() : w,
1025
+ w,
1026
+ f.isString(v) ? v.trim() : v,
1027
1027
  b,
1028
1028
  m
1029
- )) === !0 && y(v, b ? b.concat(w) : [w]);
1029
+ )) === !0 && y(w, b ? b.concat(v) : [v]);
1030
1030
  }), d.pop();
1031
1031
  }
1032
1032
  }
@@ -1034,7 +1034,7 @@ function Te(t, e, r) {
1034
1034
  throw new TypeError("data must be an object");
1035
1035
  return y(t), e;
1036
1036
  }
1037
- function ut(t) {
1037
+ function lt(t) {
1038
1038
  const e = {
1039
1039
  "!": "%21",
1040
1040
  "'": "%27",
@@ -1048,17 +1048,17 @@ function ut(t) {
1048
1048
  return e[n];
1049
1049
  });
1050
1050
  }
1051
- function Qe(t, e) {
1052
- this._pairs = [], t && Te(t, this, e);
1051
+ function Ye(t, e) {
1052
+ this._pairs = [], t && Re(t, this, e);
1053
1053
  }
1054
- const zt = Qe.prototype;
1055
- zt.append = function(e, r) {
1054
+ const Qt = Ye.prototype;
1055
+ Qt.append = function(e, r) {
1056
1056
  this._pairs.push([e, r]);
1057
1057
  };
1058
- zt.toString = function(e) {
1058
+ Qt.toString = function(e) {
1059
1059
  const r = e ? function(n) {
1060
- return e.call(this, n, ut);
1061
- } : ut;
1060
+ return e.call(this, n, lt);
1061
+ } : lt;
1062
1062
  return this._pairs.map(function(o) {
1063
1063
  return r(o[0]) + "=" + r(o[1]);
1064
1064
  }, "").join("&");
@@ -1066,7 +1066,7 @@ zt.toString = function(e) {
1066
1066
  function Dr(t) {
1067
1067
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1068
1068
  }
1069
- function Jt(t, e, r) {
1069
+ function Kt(t, e, r) {
1070
1070
  if (!e)
1071
1071
  return t;
1072
1072
  const n = r && r.encode || Dr;
@@ -1075,13 +1075,13 @@ function Jt(t, e, r) {
1075
1075
  });
1076
1076
  const o = r && r.serialize;
1077
1077
  let i;
1078
- if (o ? i = o(e, r) : i = f.isURLSearchParams(e) ? e.toString() : new Qe(e, r).toString(n), i) {
1078
+ if (o ? i = o(e, r) : i = f.isURLSearchParams(e) ? e.toString() : new Ye(e, r).toString(n), i) {
1079
1079
  const s = t.indexOf("#");
1080
1080
  s !== -1 && (t = t.slice(0, s)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
1081
1081
  }
1082
1082
  return t;
1083
1083
  }
1084
- class ct {
1084
+ class ft {
1085
1085
  constructor() {
1086
1086
  this.handlers = [];
1087
1087
  }
@@ -1135,11 +1135,11 @@ class ct {
1135
1135
  });
1136
1136
  }
1137
1137
  }
1138
- const Kt = {
1138
+ const Gt = {
1139
1139
  silentJSONParsing: !0,
1140
1140
  forcedJSONParsing: !0,
1141
1141
  clarifyTimeoutError: !1
1142
- }, jr = typeof URLSearchParams < "u" ? URLSearchParams : Qe, xr = typeof FormData < "u" ? FormData : null, Fr = typeof Blob < "u" ? Blob : null, Mr = {
1142
+ }, jr = typeof URLSearchParams < "u" ? URLSearchParams : Ye, xr = typeof FormData < "u" ? FormData : null, Fr = typeof Blob < "u" ? Blob : null, Mr = {
1143
1143
  isBrowser: !0,
1144
1144
  classes: {
1145
1145
  URLSearchParams: jr,
@@ -1147,20 +1147,20 @@ const Kt = {
1147
1147
  Blob: Fr
1148
1148
  },
1149
1149
  protocols: ["http", "https", "file", "blob", "url", "data"]
1150
- }, Ge = typeof window < "u" && typeof document < "u", We = typeof navigator == "object" && navigator || void 0, Br = Ge && (!We || ["ReactNative", "NativeScript", "NS"].indexOf(We.product) < 0), Ur = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1151
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ir = Ge && window.location.href || "http://localhost", Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1150
+ }, Ze = typeof window < "u" && typeof document < "u", ze = typeof navigator == "object" && navigator || void 0, Br = Ze && (!ze || ["ReactNative", "NativeScript", "NS"].indexOf(ze.product) < 0), Ir = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1151
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Lr = Ze && window.location.href || "http://localhost", Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1152
1152
  __proto__: null,
1153
- hasBrowserEnv: Ge,
1153
+ hasBrowserEnv: Ze,
1154
1154
  hasStandardBrowserEnv: Br,
1155
- hasStandardBrowserWebWorkerEnv: Ur,
1156
- navigator: We,
1157
- origin: Ir
1155
+ hasStandardBrowserWebWorkerEnv: Ir,
1156
+ navigator: ze,
1157
+ origin: Lr
1158
1158
  }, Symbol.toStringTag, { value: "Module" })), A = {
1159
- ...Lr,
1159
+ ...Ur,
1160
1160
  ...Mr
1161
1161
  };
1162
1162
  function $r(t, e) {
1163
- return Te(t, new A.classes.URLSearchParams(), Object.assign({
1163
+ return Re(t, new A.classes.URLSearchParams(), Object.assign({
1164
1164
  visitor: function(r, n, o, i) {
1165
1165
  return A.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
1166
1166
  }
@@ -1178,7 +1178,7 @@ function Vr(t) {
1178
1178
  i = r[n], e[i] = t[i];
1179
1179
  return e;
1180
1180
  }
1181
- function Qt(t) {
1181
+ function Yt(t) {
1182
1182
  function e(r, n, o, i) {
1183
1183
  let s = r[i++];
1184
1184
  if (s === "__proto__") return !0;
@@ -1203,13 +1203,13 @@ function Wr(t, e, r) {
1203
1203
  }
1204
1204
  return (r || JSON.stringify)(t);
1205
1205
  }
1206
- const ne = {
1207
- transitional: Kt,
1206
+ const re = {
1207
+ transitional: Gt,
1208
1208
  adapter: ["xhr", "http", "fetch"],
1209
1209
  transformRequest: [function(e, r) {
1210
1210
  const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = f.isObject(e);
1211
1211
  if (i && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
1212
- return o ? JSON.stringify(Qt(e)) : e;
1212
+ return o ? JSON.stringify(Yt(e)) : e;
1213
1213
  if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
1214
1214
  return e;
1215
1215
  if (f.isArrayBufferView(e))
@@ -1222,7 +1222,7 @@ const ne = {
1222
1222
  return $r(e, this.formSerializer).toString();
1223
1223
  if ((a = f.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
1224
1224
  const u = this.env && this.env.FormData;
1225
- return Te(
1225
+ return Re(
1226
1226
  a ? { "files[]": e } : e,
1227
1227
  u && new u(),
1228
1228
  this.formSerializer
@@ -1232,7 +1232,7 @@ const ne = {
1232
1232
  return i || o ? (r.setContentType("application/json", !1), Wr(e)) : e;
1233
1233
  }],
1234
1234
  transformResponse: [function(e) {
1235
- const r = this.transitional || ne.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
1235
+ const r = this.transitional || re.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
1236
1236
  if (f.isResponse(e) || f.isReadableStream(e))
1237
1237
  return e;
1238
1238
  if (e && f.isString(e) && (n && !this.responseType || o)) {
@@ -1270,7 +1270,7 @@ const ne = {
1270
1270
  }
1271
1271
  };
1272
1272
  f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
1273
- ne.headers[t] = {};
1273
+ re.headers[t] = {};
1274
1274
  });
1275
1275
  const Xr = f.toObjectSet([
1276
1276
  "age",
@@ -1297,12 +1297,12 @@ const Xr = f.toObjectSet([
1297
1297
  `).forEach(function(s) {
1298
1298
  o = s.indexOf(":"), r = s.substring(0, o).trim().toLowerCase(), n = s.substring(o + 1).trim(), !(!r || e[r] && Xr[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
1299
1299
  }), e;
1300
- }, lt = Symbol("internals");
1301
- function Q(t) {
1300
+ }, dt = Symbol("internals");
1301
+ function G(t) {
1302
1302
  return t && String(t).trim().toLowerCase();
1303
1303
  }
1304
- function me(t) {
1305
- return t === !1 || t == null ? t : f.isArray(t) ? t.map(me) : String(t);
1304
+ function he(t) {
1305
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(he) : String(t);
1306
1306
  }
1307
1307
  function Jr(t) {
1308
1308
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -1311,8 +1311,8 @@ function Jr(t) {
1311
1311
  e[n[1]] = n[2];
1312
1312
  return e;
1313
1313
  }
1314
- const Kr = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
1315
- function Fe(t, e, r, n, o) {
1314
+ const Qr = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
1315
+ function Be(t, e, r, n, o) {
1316
1316
  if (f.isFunction(n))
1317
1317
  return n.call(this, e, r);
1318
1318
  if (o && (e = r), !!f.isString(e)) {
@@ -1322,7 +1322,7 @@ function Fe(t, e, r, n, o) {
1322
1322
  return n.test(e);
1323
1323
  }
1324
1324
  }
1325
- function Qr(t) {
1325
+ function Kr(t) {
1326
1326
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
1327
1327
  }
1328
1328
  function Gr(t, e) {
@@ -1343,16 +1343,16 @@ let R = class {
1343
1343
  set(e, r, n) {
1344
1344
  const o = this;
1345
1345
  function i(a, u, c) {
1346
- const l = Q(u);
1346
+ const l = G(u);
1347
1347
  if (!l)
1348
1348
  throw new Error("header name must be a non-empty string");
1349
1349
  const d = f.findKey(o, l);
1350
- (!d || o[d] === void 0 || c === !0 || c === void 0 && o[d] !== !1) && (o[d || u] = me(a));
1350
+ (!d || o[d] === void 0 || c === !0 || c === void 0 && o[d] !== !1) && (o[d || u] = he(a));
1351
1351
  }
1352
1352
  const s = (a, u) => f.forEach(a, (c, l) => i(c, l, u));
1353
1353
  if (f.isPlainObject(e) || e instanceof this.constructor)
1354
1354
  s(e, r);
1355
- else if (f.isString(e) && (e = e.trim()) && !Kr(e))
1355
+ else if (f.isString(e) && (e = e.trim()) && !Qr(e))
1356
1356
  s(zr(e), r);
1357
1357
  else if (f.isObject(e) && f.isIterable(e)) {
1358
1358
  let a = {}, u, c;
@@ -1367,7 +1367,7 @@ let R = class {
1367
1367
  return this;
1368
1368
  }
1369
1369
  get(e, r) {
1370
- if (e = Q(e), e) {
1370
+ if (e = G(e), e) {
1371
1371
  const n = f.findKey(this, e);
1372
1372
  if (n) {
1373
1373
  const o = this[n];
@@ -1384,9 +1384,9 @@ let R = class {
1384
1384
  }
1385
1385
  }
1386
1386
  has(e, r) {
1387
- if (e = Q(e), e) {
1387
+ if (e = G(e), e) {
1388
1388
  const n = f.findKey(this, e);
1389
- return !!(n && this[n] !== void 0 && (!r || Fe(this, this[n], n, r)));
1389
+ return !!(n && this[n] !== void 0 && (!r || Be(this, this[n], n, r)));
1390
1390
  }
1391
1391
  return !1;
1392
1392
  }
@@ -1394,9 +1394,9 @@ let R = class {
1394
1394
  const n = this;
1395
1395
  let o = !1;
1396
1396
  function i(s) {
1397
- if (s = Q(s), s) {
1397
+ if (s = G(s), s) {
1398
1398
  const a = f.findKey(n, s);
1399
- a && (!r || Fe(n, n[a], a, r)) && (delete n[a], o = !0);
1399
+ a && (!r || Be(n, n[a], a, r)) && (delete n[a], o = !0);
1400
1400
  }
1401
1401
  }
1402
1402
  return f.isArray(e) ? e.forEach(i) : i(e), o;
@@ -1406,7 +1406,7 @@ let R = class {
1406
1406
  let n = r.length, o = !1;
1407
1407
  for (; n--; ) {
1408
1408
  const i = r[n];
1409
- (!e || Fe(this, this[i], i, e, !0)) && (delete this[i], o = !0);
1409
+ (!e || Be(this, this[i], i, e, !0)) && (delete this[i], o = !0);
1410
1410
  }
1411
1411
  return o;
1412
1412
  }
@@ -1415,11 +1415,11 @@ let R = class {
1415
1415
  return f.forEach(this, (o, i) => {
1416
1416
  const s = f.findKey(n, i);
1417
1417
  if (s) {
1418
- r[s] = me(o), delete r[i];
1418
+ r[s] = he(o), delete r[i];
1419
1419
  return;
1420
1420
  }
1421
- const a = e ? Qr(i) : String(i).trim();
1422
- a !== i && delete r[i], r[a] = me(o), n[a] = !0;
1421
+ const a = e ? Kr(i) : String(i).trim();
1422
+ a !== i && delete r[i], r[a] = he(o), n[a] = !0;
1423
1423
  }), this;
1424
1424
  }
1425
1425
  concat(...e) {
@@ -1452,11 +1452,11 @@ let R = class {
1452
1452
  return r.forEach((o) => n.set(o)), n;
1453
1453
  }
1454
1454
  static accessor(e) {
1455
- const n = (this[lt] = this[lt] = {
1455
+ const n = (this[dt] = this[dt] = {
1456
1456
  accessors: {}
1457
1457
  }).accessors, o = this.prototype;
1458
1458
  function i(s) {
1459
- const a = Q(s);
1459
+ const a = G(s);
1460
1460
  n[a] || (Gr(o, s), n[a] = !0);
1461
1461
  }
1462
1462
  return f.isArray(e) ? e.forEach(i) : i(e), this;
@@ -1473,14 +1473,14 @@ f.reduceDescriptors(R.prototype, ({ value: t }, e) => {
1473
1473
  };
1474
1474
  });
1475
1475
  f.freezeMethods(R);
1476
- function Me(t, e) {
1477
- const r = this || ne, n = e || r, o = R.from(n.headers);
1476
+ function Ie(t, e) {
1477
+ const r = this || re, n = e || r, o = R.from(n.headers);
1478
1478
  let i = n.data;
1479
1479
  return f.forEach(t, function(a) {
1480
1480
  i = a.call(r, i, o.normalize(), e ? e.status : void 0);
1481
1481
  }), o.normalize(), i;
1482
1482
  }
1483
- function Gt(t) {
1483
+ function Zt(t) {
1484
1484
  return !!(t && t.__CANCEL__);
1485
1485
  }
1486
1486
  function K(t, e, r) {
@@ -1489,7 +1489,7 @@ function K(t, e, r) {
1489
1489
  f.inherits(K, g, {
1490
1490
  __CANCEL__: !0
1491
1491
  });
1492
- function Yt(t, e, r) {
1492
+ function en(t, e, r) {
1493
1493
  const n = r.config.validateStatus;
1494
1494
  !r.status || !n || n(r.status) ? t(r) : e(new g(
1495
1495
  "Request failed with status code " + r.status,
@@ -1531,7 +1531,7 @@ function eo(t, e) {
1531
1531
  }, n - d)));
1532
1532
  }, () => o && s(o)];
1533
1533
  }
1534
- const ge = (t, e, r = 3) => {
1534
+ const we = (t, e, r = 3) => {
1535
1535
  let n = 0;
1536
1536
  const o = Zr(50, 250);
1537
1537
  return eo((i) => {
@@ -1550,14 +1550,14 @@ const ge = (t, e, r = 3) => {
1550
1550
  };
1551
1551
  t(d);
1552
1552
  }, r);
1553
- }, ft = (t, e) => {
1553
+ }, pt = (t, e) => {
1554
1554
  const r = t != null;
1555
1555
  return [(n) => e[0]({
1556
1556
  lengthComputable: r,
1557
1557
  total: t,
1558
1558
  loaded: n
1559
1559
  }), e[1]];
1560
- }, dt = (t) => (...e) => f.asap(() => t(...e)), to = A.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, A.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1560
+ }, mt = (t) => (...e) => f.asap(() => t(...e)), to = A.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, A.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1561
1561
  new URL(A.origin),
1562
1562
  A.navigator && /(msie|trident)/i.test(A.navigator.userAgent)
1563
1563
  ) : () => !0, no = A.hasStandardBrowserEnv ? (
@@ -1593,12 +1593,12 @@ function ro(t) {
1593
1593
  function oo(t, e) {
1594
1594
  return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
1595
1595
  }
1596
- function Zt(t, e, r) {
1596
+ function tn(t, e, r) {
1597
1597
  let n = !ro(e);
1598
1598
  return t && (n || r == !1) ? oo(t, e) : e;
1599
1599
  }
1600
- const pt = (t) => t instanceof R ? { ...t } : t;
1601
- function I(t, e) {
1600
+ const ht = (t) => t instanceof R ? { ...t } : t;
1601
+ function U(t, e) {
1602
1602
  e = e || {};
1603
1603
  const r = {};
1604
1604
  function n(c, l, d, m) {
@@ -1655,17 +1655,17 @@ function I(t, e) {
1655
1655
  socketPath: s,
1656
1656
  responseEncoding: s,
1657
1657
  validateStatus: a,
1658
- headers: (c, l, d) => o(pt(c), pt(l), d, !0)
1658
+ headers: (c, l, d) => o(ht(c), ht(l), d, !0)
1659
1659
  };
1660
1660
  return f.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
1661
1661
  const d = u[l] || o, m = d(t[l], e[l], l);
1662
1662
  f.isUndefined(m) && d !== a || (r[l] = m);
1663
1663
  }), r;
1664
1664
  }
1665
- const en = (t) => {
1666
- const e = I({}, t);
1665
+ const nn = (t) => {
1666
+ const e = U({}, t);
1667
1667
  let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: a } = e;
1668
- e.headers = s = R.from(s), e.url = Jt(Zt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), a && s.set(
1668
+ e.headers = s = R.from(s), e.url = Kt(tn(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), a && s.set(
1669
1669
  "Authorization",
1670
1670
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1671
1671
  );
@@ -1685,7 +1685,7 @@ const en = (t) => {
1685
1685
  return e;
1686
1686
  }, io = typeof XMLHttpRequest < "u", so = io && function(t) {
1687
1687
  return new Promise(function(r, n) {
1688
- const o = en(t);
1688
+ const o = nn(t);
1689
1689
  let i = o.data;
1690
1690
  const s = R.from(o.headers).normalize();
1691
1691
  let { responseType: a, onUploadProgress: u, onDownloadProgress: c } = o, l, d, m, y, p;
@@ -1694,7 +1694,7 @@ const en = (t) => {
1694
1694
  }
1695
1695
  let h = new XMLHttpRequest();
1696
1696
  h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1697
- function v() {
1697
+ function w() {
1698
1698
  if (!h)
1699
1699
  return;
1700
1700
  const O = R.from(
@@ -1707,21 +1707,21 @@ const en = (t) => {
1707
1707
  config: t,
1708
1708
  request: h
1709
1709
  };
1710
- Yt(function(F) {
1710
+ en(function(F) {
1711
1711
  r(F), b();
1712
1712
  }, function(F) {
1713
1713
  n(F), b();
1714
1714
  }, T), h = null;
1715
1715
  }
1716
- "onloadend" in h ? h.onloadend = v : h.onreadystatechange = function() {
1717
- !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(v);
1716
+ "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
1717
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
1718
1718
  }, h.onabort = function() {
1719
1719
  h && (n(new g("Request aborted", g.ECONNABORTED, t, h)), h = null);
1720
1720
  }, h.onerror = function() {
1721
1721
  n(new g("Network Error", g.ERR_NETWORK, t, h)), h = null;
1722
1722
  }, h.ontimeout = function() {
1723
1723
  let q = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1724
- const T = o.transitional || Kt;
1724
+ const T = o.transitional || Gt;
1725
1725
  o.timeoutErrorMessage && (q = o.timeoutErrorMessage), n(new g(
1726
1726
  q,
1727
1727
  T.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
@@ -1730,12 +1730,12 @@ const en = (t) => {
1730
1730
  )), h = null;
1731
1731
  }, i === void 0 && s.setContentType(null), "setRequestHeader" in h && f.forEach(s.toJSON(), function(q, T) {
1732
1732
  h.setRequestHeader(T, q);
1733
- }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), a && a !== "json" && (h.responseType = o.responseType), c && ([m, p] = ge(c, !0), h.addEventListener("progress", m)), u && h.upload && ([d, y] = ge(u), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (l = (O) => {
1733
+ }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), a && a !== "json" && (h.responseType = o.responseType), c && ([m, p] = we(c, !0), h.addEventListener("progress", m)), u && h.upload && ([d, y] = we(u), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (l = (O) => {
1734
1734
  h && (n(!O || O.type ? new K(null, t, h) : O), h.abort(), h = null);
1735
1735
  }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
1736
- const w = Yr(o.url);
1737
- if (w && A.protocols.indexOf(w) === -1) {
1738
- n(new g("Unsupported protocol " + w + ":", g.ERR_BAD_REQUEST, t));
1736
+ const v = Yr(o.url);
1737
+ if (v && A.protocols.indexOf(v) === -1) {
1738
+ n(new g("Unsupported protocol " + v + ":", g.ERR_BAD_REQUEST, t));
1739
1739
  return;
1740
1740
  }
1741
1741
  h.send(i || null);
@@ -1791,7 +1791,7 @@ const en = (t) => {
1791
1791
  } finally {
1792
1792
  await e.cancel();
1793
1793
  }
1794
- }, mt = (t, e, r, n) => {
1794
+ }, yt = (t, e, r, n) => {
1795
1795
  const o = co(t, e);
1796
1796
  let i = 0, s, a = (u) => {
1797
1797
  s || (s = !0, n && n(u));
@@ -1820,13 +1820,13 @@ const en = (t) => {
1820
1820
  }, {
1821
1821
  highWaterMark: 2
1822
1822
  });
1823
- }, _e = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", tn = _e && typeof ReadableStream == "function", fo = _e && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), nn = (t, ...e) => {
1823
+ }, Ne = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", rn = Ne && typeof ReadableStream == "function", fo = Ne && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), on = (t, ...e) => {
1824
1824
  try {
1825
1825
  return !!t(...e);
1826
1826
  } catch {
1827
1827
  return !1;
1828
1828
  }
1829
- }, po = tn && nn(() => {
1829
+ }, po = rn && on(() => {
1830
1830
  let t = !1;
1831
1831
  const e = new Request(A.origin, {
1832
1832
  body: new ReadableStream(),
@@ -1836,10 +1836,10 @@ const en = (t) => {
1836
1836
  }
1837
1837
  }).headers.has("Content-Type");
1838
1838
  return t && !e;
1839
- }), ht = 64 * 1024, Xe = tn && nn(() => f.isReadableStream(new Response("").body)), ve = {
1840
- stream: Xe && ((t) => t.body)
1839
+ }), bt = 64 * 1024, Je = rn && on(() => f.isReadableStream(new Response("").body)), ve = {
1840
+ stream: Je && ((t) => t.body)
1841
1841
  };
1842
- _e && ((t) => {
1842
+ Ne && ((t) => {
1843
1843
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
1844
1844
  !ve[e] && (ve[e] = f.isFunction(t[e]) ? (r) => r[e]() : (r, n) => {
1845
1845
  throw new g(`Response type '${e}' is not supported`, g.ERR_NOT_SUPPORT, n);
@@ -1863,7 +1863,7 @@ const mo = async (t) => {
1863
1863
  }, ho = async (t, e) => {
1864
1864
  const r = f.toFiniteNumber(t.getContentLength());
1865
1865
  return r ?? mo(e);
1866
- }, yo = _e && (async (t) => {
1866
+ }, yo = Ne && (async (t) => {
1867
1867
  let {
1868
1868
  url: e,
1869
1869
  method: r,
@@ -1877,7 +1877,7 @@ const mo = async (t) => {
1877
1877
  headers: l,
1878
1878
  withCredentials: d = "same-origin",
1879
1879
  fetchOptions: m
1880
- } = en(t);
1880
+ } = nn(t);
1881
1881
  c = c ? (c + "").toLowerCase() : "text";
1882
1882
  let y = ao([o, i && i.toAbortSignal()], s), p;
1883
1883
  const b = y && y.unsubscribe && (() => {
@@ -1892,15 +1892,15 @@ const mo = async (t) => {
1892
1892
  duplex: "half"
1893
1893
  }), D;
1894
1894
  if (f.isFormData(n) && (D = T.headers.get("content-type")) && l.setContentType(D), T.body) {
1895
- const [F, ie] = ft(
1895
+ const [F, se] = pt(
1896
1896
  h,
1897
- ge(dt(u))
1897
+ we(mt(u))
1898
1898
  );
1899
- n = mt(T.body, ht, F, ie);
1899
+ n = yt(T.body, bt, F, se);
1900
1900
  }
1901
1901
  }
1902
1902
  f.isString(d) || (d = d ? "include" : "omit");
1903
- const v = "credentials" in Request.prototype;
1903
+ const w = "credentials" in Request.prototype;
1904
1904
  p = new Request(e, {
1905
1905
  ...m,
1906
1906
  signal: y,
@@ -1908,52 +1908,52 @@ const mo = async (t) => {
1908
1908
  headers: l.normalize().toJSON(),
1909
1909
  body: n,
1910
1910
  duplex: "half",
1911
- credentials: v ? d : void 0
1911
+ credentials: w ? d : void 0
1912
1912
  });
1913
- let w = await fetch(p, m);
1914
- const O = Xe && (c === "stream" || c === "response");
1915
- if (Xe && (a || O && b)) {
1913
+ let v = await fetch(p, m);
1914
+ const O = Je && (c === "stream" || c === "response");
1915
+ if (Je && (a || O && b)) {
1916
1916
  const T = {};
1917
- ["status", "statusText", "headers"].forEach((Ye) => {
1918
- T[Ye] = w[Ye];
1917
+ ["status", "statusText", "headers"].forEach((et) => {
1918
+ T[et] = v[et];
1919
1919
  });
1920
- const D = f.toFiniteNumber(w.headers.get("content-length")), [F, ie] = a && ft(
1920
+ const D = f.toFiniteNumber(v.headers.get("content-length")), [F, se] = a && pt(
1921
1921
  D,
1922
- ge(dt(a), !0)
1922
+ we(mt(a), !0)
1923
1923
  ) || [];
1924
- w = new Response(
1925
- mt(w.body, ht, F, () => {
1926
- ie && ie(), b && b();
1924
+ v = new Response(
1925
+ yt(v.body, bt, F, () => {
1926
+ se && se(), b && b();
1927
1927
  }),
1928
1928
  T
1929
1929
  );
1930
1930
  }
1931
1931
  c = c || "text";
1932
- let q = await ve[f.findKey(ve, c) || "text"](w, t);
1932
+ let q = await ve[f.findKey(ve, c) || "text"](v, t);
1933
1933
  return !O && b && b(), await new Promise((T, D) => {
1934
- Yt(T, D, {
1934
+ en(T, D, {
1935
1935
  data: q,
1936
- headers: R.from(w.headers),
1937
- status: w.status,
1938
- statusText: w.statusText,
1936
+ headers: R.from(v.headers),
1937
+ status: v.status,
1938
+ statusText: v.statusText,
1939
1939
  config: t,
1940
1940
  request: p
1941
1941
  });
1942
1942
  });
1943
- } catch (v) {
1944
- throw b && b(), v && v.name === "TypeError" && /Load failed|fetch/i.test(v.message) ? Object.assign(
1943
+ } catch (w) {
1944
+ throw b && b(), w && w.name === "TypeError" && /Load failed|fetch/i.test(w.message) ? Object.assign(
1945
1945
  new g("Network Error", g.ERR_NETWORK, t, p),
1946
1946
  {
1947
- cause: v.cause || v
1947
+ cause: w.cause || w
1948
1948
  }
1949
- ) : g.from(v, v && v.code, t, p);
1949
+ ) : g.from(w, w && w.code, t, p);
1950
1950
  }
1951
- }), ze = {
1951
+ }), Qe = {
1952
1952
  http: kr,
1953
1953
  xhr: so,
1954
1954
  fetch: yo
1955
1955
  };
1956
- f.forEach(ze, (t, e) => {
1956
+ f.forEach(Qe, (t, e) => {
1957
1957
  if (t) {
1958
1958
  try {
1959
1959
  Object.defineProperty(t, "name", { value: e });
@@ -1962,7 +1962,7 @@ f.forEach(ze, (t, e) => {
1962
1962
  Object.defineProperty(t, "adapterName", { value: e });
1963
1963
  }
1964
1964
  });
1965
- const yt = (t) => `- ${t}`, bo = (t) => f.isFunction(t) || t === null || t === !1, rn = {
1965
+ const gt = (t) => `- ${t}`, bo = (t) => f.isFunction(t) || t === null || t === !1, sn = {
1966
1966
  getAdapter: (t) => {
1967
1967
  t = f.isArray(t) ? t : [t];
1968
1968
  const { length: e } = t;
@@ -1971,7 +1971,7 @@ const yt = (t) => `- ${t}`, bo = (t) => f.isFunction(t) || t === null || t === !
1971
1971
  for (let i = 0; i < e; i++) {
1972
1972
  r = t[i];
1973
1973
  let s;
1974
- if (n = r, !bo(r) && (n = ze[(s = String(r)).toLowerCase()], n === void 0))
1974
+ if (n = r, !bo(r) && (n = Qe[(s = String(r)).toLowerCase()], n === void 0))
1975
1975
  throw new g(`Unknown adapter '${s}'`);
1976
1976
  if (n)
1977
1977
  break;
@@ -1982,8 +1982,8 @@ const yt = (t) => `- ${t}`, bo = (t) => f.isFunction(t) || t === null || t === !
1982
1982
  ([a, u]) => `adapter ${a} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1983
1983
  );
1984
1984
  let s = e ? i.length > 1 ? `since :
1985
- ` + i.map(yt).join(`
1986
- `) : " " + yt(i[0]) : "as no adapter specified";
1985
+ ` + i.map(gt).join(`
1986
+ `) : " " + gt(i[0]) : "as no adapter specified";
1987
1987
  throw new g(
1988
1988
  "There is no suitable adapter to dispatch the request " + s,
1989
1989
  "ERR_NOT_SUPPORT"
@@ -1991,40 +1991,40 @@ const yt = (t) => `- ${t}`, bo = (t) => f.isFunction(t) || t === null || t === !
1991
1991
  }
1992
1992
  return n;
1993
1993
  },
1994
- adapters: ze
1994
+ adapters: Qe
1995
1995
  };
1996
- function Be(t) {
1996
+ function Le(t) {
1997
1997
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1998
1998
  throw new K(null, t);
1999
1999
  }
2000
- function bt(t) {
2001
- return Be(t), t.headers = R.from(t.headers), t.data = Me.call(
2000
+ function wt(t) {
2001
+ return Le(t), t.headers = R.from(t.headers), t.data = Ie.call(
2002
2002
  t,
2003
2003
  t.transformRequest
2004
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), rn.getAdapter(t.adapter || ne.adapter)(t).then(function(n) {
2005
- return Be(t), n.data = Me.call(
2004
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), sn.getAdapter(t.adapter || re.adapter)(t).then(function(n) {
2005
+ return Le(t), n.data = Ie.call(
2006
2006
  t,
2007
2007
  t.transformResponse,
2008
2008
  n
2009
2009
  ), n.headers = R.from(n.headers), n;
2010
2010
  }, function(n) {
2011
- return Gt(n) || (Be(t), n && n.response && (n.response.data = Me.call(
2011
+ return Zt(n) || (Le(t), n && n.response && (n.response.data = Ie.call(
2012
2012
  t,
2013
2013
  t.transformResponse,
2014
2014
  n.response
2015
2015
  ), n.response.headers = R.from(n.response.headers))), Promise.reject(n);
2016
2016
  });
2017
2017
  }
2018
- const on = "1.10.0", Re = {};
2018
+ const an = "1.10.0", Pe = {};
2019
2019
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
2020
- Re[t] = function(n) {
2020
+ Pe[t] = function(n) {
2021
2021
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
2022
2022
  };
2023
2023
  });
2024
- const gt = {};
2025
- Re.transitional = function(e, r, n) {
2024
+ const vt = {};
2025
+ Pe.transitional = function(e, r, n) {
2026
2026
  function o(i, s) {
2027
- return "[Axios v" + on + "] Transitional option '" + i + "'" + s + (n ? ". " + n : "");
2027
+ return "[Axios v" + an + "] Transitional option '" + i + "'" + s + (n ? ". " + n : "");
2028
2028
  }
2029
2029
  return (i, s, a) => {
2030
2030
  if (e === !1)
@@ -2032,7 +2032,7 @@ Re.transitional = function(e, r, n) {
2032
2032
  o(s, " has been removed" + (r ? " in " + r : "")),
2033
2033
  g.ERR_DEPRECATED
2034
2034
  );
2035
- return r && !gt[s] && (gt[s] = !0, console.warn(
2035
+ return r && !vt[s] && (vt[s] = !0, console.warn(
2036
2036
  o(
2037
2037
  s,
2038
2038
  " has been deprecated since v" + r + " and will be removed in the near future"
@@ -2040,7 +2040,7 @@ Re.transitional = function(e, r, n) {
2040
2040
  )), e ? e(i, s, a) : !0;
2041
2041
  };
2042
2042
  };
2043
- Re.spelling = function(e) {
2043
+ Pe.spelling = function(e) {
2044
2044
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
2045
2045
  };
2046
2046
  function go(t, e, r) {
@@ -2060,15 +2060,15 @@ function go(t, e, r) {
2060
2060
  throw new g("Unknown option " + i, g.ERR_BAD_OPTION);
2061
2061
  }
2062
2062
  }
2063
- const he = {
2063
+ const ye = {
2064
2064
  assertOptions: go,
2065
- validators: Re
2066
- }, C = he.validators;
2067
- let B = class {
2065
+ validators: Pe
2066
+ }, C = ye.validators;
2067
+ let I = class {
2068
2068
  constructor(e) {
2069
2069
  this.defaults = e || {}, this.interceptors = {
2070
- request: new ct(),
2071
- response: new ct()
2070
+ request: new ft(),
2071
+ response: new ft()
2072
2072
  };
2073
2073
  }
2074
2074
  /**
@@ -2097,18 +2097,18 @@ let B = class {
2097
2097
  }
2098
2098
  }
2099
2099
  _request(e, r) {
2100
- typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = I(this.defaults, r);
2100
+ typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = U(this.defaults, r);
2101
2101
  const { transitional: n, paramsSerializer: o, headers: i } = r;
2102
- n !== void 0 && he.assertOptions(n, {
2102
+ n !== void 0 && ye.assertOptions(n, {
2103
2103
  silentJSONParsing: C.transitional(C.boolean),
2104
2104
  forcedJSONParsing: C.transitional(C.boolean),
2105
2105
  clarifyTimeoutError: C.transitional(C.boolean)
2106
2106
  }, !1), o != null && (f.isFunction(o) ? r.paramsSerializer = {
2107
2107
  serialize: o
2108
- } : he.assertOptions(o, {
2108
+ } : ye.assertOptions(o, {
2109
2109
  encode: C.function,
2110
2110
  serialize: C.function
2111
- }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), he.assertOptions(r, {
2111
+ }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), ye.assertOptions(r, {
2112
2112
  baseUrl: C.spelling("baseURL"),
2113
2113
  withXsrfToken: C.spelling("withXSRFToken")
2114
2114
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
@@ -2133,7 +2133,7 @@ let B = class {
2133
2133
  });
2134
2134
  let l, d = 0, m;
2135
2135
  if (!u) {
2136
- const p = [bt.bind(this), void 0];
2136
+ const p = [wt.bind(this), void 0];
2137
2137
  for (p.unshift.apply(p, a), p.push.apply(p, c), m = p.length, l = Promise.resolve(r); d < m; )
2138
2138
  l = l.then(p[d++], p[d++]);
2139
2139
  return l;
@@ -2150,7 +2150,7 @@ let B = class {
2150
2150
  }
2151
2151
  }
2152
2152
  try {
2153
- l = bt.call(this, y);
2153
+ l = wt.call(this, y);
2154
2154
  } catch (p) {
2155
2155
  return Promise.reject(p);
2156
2156
  }
@@ -2159,14 +2159,14 @@ let B = class {
2159
2159
  return l;
2160
2160
  }
2161
2161
  getUri(e) {
2162
- e = I(this.defaults, e);
2163
- const r = Zt(e.baseURL, e.url, e.allowAbsoluteUrls);
2164
- return Jt(r, e.params, e.paramsSerializer);
2162
+ e = U(this.defaults, e);
2163
+ const r = tn(e.baseURL, e.url, e.allowAbsoluteUrls);
2164
+ return Kt(r, e.params, e.paramsSerializer);
2165
2165
  }
2166
2166
  };
2167
2167
  f.forEach(["delete", "get", "head", "options"], function(e) {
2168
- B.prototype[e] = function(r, n) {
2169
- return this.request(I(n || {}, {
2168
+ I.prototype[e] = function(r, n) {
2169
+ return this.request(U(n || {}, {
2170
2170
  method: e,
2171
2171
  url: r,
2172
2172
  data: (n || {}).data
@@ -2176,7 +2176,7 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
2176
2176
  f.forEach(["post", "put", "patch"], function(e) {
2177
2177
  function r(n) {
2178
2178
  return function(i, s, a) {
2179
- return this.request(I(a || {}, {
2179
+ return this.request(U(a || {}, {
2180
2180
  method: e,
2181
2181
  headers: n ? {
2182
2182
  "Content-Type": "multipart/form-data"
@@ -2186,9 +2186,9 @@ f.forEach(["post", "put", "patch"], function(e) {
2186
2186
  }));
2187
2187
  };
2188
2188
  }
2189
- B.prototype[e] = r(), B.prototype[e + "Form"] = r(!0);
2189
+ I.prototype[e] = r(), I.prototype[e + "Form"] = r(!0);
2190
2190
  });
2191
- let vo = class sn {
2191
+ let wo = class un {
2192
2192
  constructor(e) {
2193
2193
  if (typeof e != "function")
2194
2194
  throw new TypeError("executor must be a function.");
@@ -2254,14 +2254,14 @@ let vo = class sn {
2254
2254
  static source() {
2255
2255
  let e;
2256
2256
  return {
2257
- token: new sn(function(o) {
2257
+ token: new un(function(o) {
2258
2258
  e = o;
2259
2259
  }),
2260
2260
  cancel: e
2261
2261
  };
2262
2262
  }
2263
2263
  };
2264
- function wo(t) {
2264
+ function vo(t) {
2265
2265
  return function(r) {
2266
2266
  return t.apply(null, r);
2267
2267
  };
@@ -2269,7 +2269,7 @@ function wo(t) {
2269
2269
  function So(t) {
2270
2270
  return f.isObject(t) && t.isAxiosError === !0;
2271
2271
  }
2272
- const Je = {
2272
+ const Ke = {
2273
2273
  Continue: 100,
2274
2274
  SwitchingProtocols: 101,
2275
2275
  Processing: 102,
@@ -2334,54 +2334,55 @@ const Je = {
2334
2334
  NotExtended: 510,
2335
2335
  NetworkAuthenticationRequired: 511
2336
2336
  };
2337
- Object.entries(Je).forEach(([t, e]) => {
2338
- Je[e] = t;
2337
+ Object.entries(Ke).forEach(([t, e]) => {
2338
+ Ke[e] = t;
2339
2339
  });
2340
- function an(t) {
2341
- const e = new B(t), r = Ft(B.prototype.request, e);
2342
- return f.extend(r, B.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(o) {
2343
- return an(I(t, o));
2340
+ function cn(t) {
2341
+ const e = new I(t), r = Bt(I.prototype.request, e);
2342
+ return f.extend(r, I.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(o) {
2343
+ return cn(U(t, o));
2344
2344
  }, r;
2345
2345
  }
2346
- const S = an(ne);
2347
- S.Axios = B;
2346
+ const S = cn(re);
2347
+ S.Axios = I;
2348
2348
  S.CanceledError = K;
2349
- S.CancelToken = vo;
2350
- S.isCancel = Gt;
2351
- S.VERSION = on;
2352
- S.toFormData = Te;
2349
+ S.CancelToken = wo;
2350
+ S.isCancel = Zt;
2351
+ S.VERSION = an;
2352
+ S.toFormData = Re;
2353
2353
  S.AxiosError = g;
2354
2354
  S.Cancel = S.CanceledError;
2355
2355
  S.all = function(e) {
2356
2356
  return Promise.all(e);
2357
2357
  };
2358
- S.spread = wo;
2358
+ S.spread = vo;
2359
2359
  S.isAxiosError = So;
2360
- S.mergeConfig = I;
2360
+ S.mergeConfig = U;
2361
2361
  S.AxiosHeaders = R;
2362
- S.formToJSON = (t) => Qt(f.isHTMLForm(t) ? new FormData(t) : t);
2363
- S.getAdapter = rn.getAdapter;
2364
- S.HttpStatusCode = Je;
2362
+ S.formToJSON = (t) => Yt(f.isHTMLForm(t) ? new FormData(t) : t);
2363
+ S.getAdapter = sn.getAdapter;
2364
+ S.HttpStatusCode = Ke;
2365
2365
  S.default = S;
2366
2366
  const {
2367
- Axios: ti,
2368
- AxiosError: vt,
2369
- CanceledError: ni,
2370
- isCancel: ri,
2371
- CancelToken: oi,
2372
- VERSION: ii,
2373
- all: si,
2374
- Cancel: ai,
2375
- isAxiosError: ui,
2376
- spread: ci,
2377
- toFormData: li,
2378
- AxiosHeaders: fi,
2379
- HttpStatusCode: di,
2380
- formToJSON: pi,
2381
- getAdapter: mi,
2382
- mergeConfig: hi
2383
- } = S, Oo = (t) => Ct.some(t, (e) => e && e.errorCode !== void 0) || t?.errorCode !== void 0;
2384
- typeof window < "u" ? window.__STORE_QUERY_CLIENT__ || (window.__STORE_QUERY_CLIENT__ = new Ue({
2367
+ Axios: ei,
2368
+ AxiosError: St,
2369
+ CanceledError: ti,
2370
+ isCancel: ni,
2371
+ CancelToken: ri,
2372
+ VERSION: oi,
2373
+ all: ii,
2374
+ Cancel: si,
2375
+ isAxiosError: ai,
2376
+ spread: ui,
2377
+ toFormData: ci,
2378
+ AxiosHeaders: li,
2379
+ HttpStatusCode: fi,
2380
+ formToJSON: di,
2381
+ getAdapter: pi,
2382
+ mergeConfig: mi
2383
+ } = S, Oo = (t) => Dt.some(t, (e) => e && e.errorCode !== void 0) || t?.errorCode !== void 0;
2384
+ let Se;
2385
+ typeof window < "u" ? (window.__STORE_QUERY_CLIENT__ ? M.log("Query client already exists in window", "vendure/axiosClient", window.__STORE_QUERY_CLIENT__) : (M.log("Creating query client in window", "vendure/axiosClient"), window.__STORE_QUERY_CLIENT__ = new Ue({
2385
2386
  defaultOptions: {
2386
2387
  queries: {
2387
2388
  refetchOnWindowFocus: !0,
@@ -2390,7 +2391,13 @@ typeof window < "u" ? window.__STORE_QUERY_CLIENT__ || (window.__STORE_QUERY_CLI
2390
2391
  staleTime: 1e3 * 60 * 5
2391
2392
  }
2392
2393
  }
2393
- })) : new Ue({
2394
+ })), window.__STORE_API_CLIENT__ ? M.log("Axios instance already exists in window", "vendure/axiosClient", window.__STORE_API_CLIENT__) : (M.log("Creating axios instance in window", "vendure/axiosClient"), window.__STORE_API_CLIENT__ = S.create({
2395
+ baseURL: "https://localhost:3000/shop-api",
2396
+ withCredentials: !0,
2397
+ headers: {
2398
+ "vendure-token": ""
2399
+ }
2400
+ })), Se = window.__STORE_API_CLIENT__) : (M.log("Creating query client", "vendure/axiosClient"), new Ue({
2394
2401
  defaultOptions: {
2395
2402
  queries: {
2396
2403
  refetchOnWindowFocus: !0,
@@ -2399,58 +2406,56 @@ typeof window < "u" ? window.__STORE_QUERY_CLIENT__ || (window.__STORE_QUERY_CLI
2399
2406
  staleTime: 1e3 * 60 * 5
2400
2407
  }
2401
2408
  }
2402
- });
2403
- const un = "auth_token", Eo = "https://localhost:3000/shop-api", Ao = "lang", To = "currencyCode", cn = S.create({
2404
- baseURL: Eo,
2409
+ }), M.log("Creating axios instance", "vendure/axiosClient"), Se = S.create({
2410
+ baseURL: "https://localhost:3000/shop-api",
2405
2411
  withCredentials: !0,
2406
- // Required for cookie-based sessions
2407
2412
  headers: {
2408
2413
  "vendure-token": ""
2409
- // We'll set this in the request interceptor
2410
2414
  }
2411
- });
2412
- let _o = async (t, e) => {
2415
+ }));
2416
+ const ln = "auth_token", Eo = "lang", Ao = "currencyCode";
2417
+ let To = async (t, e) => {
2413
2418
  await e(t);
2414
2419
  };
2415
- cn.interceptors.request.use(async (t) => (await _o(t, async (r) => {
2416
- const n = await Y.getItem(un), o = await Y.getItem("channelToken"), i = await Y.getItem(To), s = await Y.getItem(Ao);
2420
+ Se.interceptors.request.use(async (t) => (await To(t, async (r) => {
2421
+ const n = await Z.getItem(ln), o = await Z.getItem("channelToken"), i = await Z.getItem(Ao), s = await Z.getItem(Eo);
2417
2422
  n && (r.headers.Authorization = `Bearer ${n}`), o && (r.headers["vendure-token"] = o), r.params = r.params || {}, i && (r.params.currencyCode = i), s && (r.params.languageCode = s);
2418
2423
  }), t));
2419
- cn.interceptors.response.use((t) => {
2424
+ Se.interceptors.response.use((t) => {
2420
2425
  const e = t.headers["vendure-auth-token"];
2421
- if (e && Y.setItem(un, e), Oo(t.data.data)) {
2422
- const r = Object.values(t.data.data)[0], n = new vt(r.errorCode);
2426
+ if (e && Z.setItem(ln, e), Oo(t.data.data)) {
2427
+ const r = Object.values(t.data.data)[0], n = new St(r.errorCode);
2423
2428
  return n.response = t, n.request = t.request, n.config = t.config, Promise.reject(n);
2424
2429
  }
2425
2430
  if (t.data.errors?.length > 0) {
2426
- const r = t.data.errors[0], n = new vt(r.message);
2431
+ const r = t.data.errors[0], n = new St(r.message);
2427
2432
  return n.response = t, n.request = t.request, n.config = t.config, Promise.reject(n);
2428
2433
  }
2429
2434
  return t;
2430
- }, (t) => (Pn.error("Axios error", "vendure/axiosClient", t), Promise.reject(t)));
2431
- var P = {}, ue = {}, ce = {}, le = {}, wt;
2432
- function re() {
2433
- if (wt) return le;
2434
- wt = 1, Object.defineProperty(le, "__esModule", { value: !0 });
2435
+ }, (t) => (M.error("Axios error", "vendure/axiosClient", t), Promise.reject(t)));
2436
+ var P = {}, ce = {}, le = {}, fe = {}, Ot;
2437
+ function oe() {
2438
+ if (Ot) return fe;
2439
+ Ot = 1, Object.defineProperty(fe, "__esModule", { value: !0 });
2435
2440
  var t;
2436
2441
  return function(e) {
2437
2442
  e.Mutation = "mutation", e.Query = "query", e.Subscription = "subscription";
2438
- }(t || (t = {})), le.default = t, le;
2443
+ }(t || (t = {})), fe.default = t, fe;
2439
2444
  }
2440
- var L = {}, G = {}, St;
2441
- function Ro() {
2442
- if (St) return G;
2443
- St = 1, Object.defineProperty(G, "__esModule", { value: !0 }), G.isNestedField = void 0;
2445
+ var $ = {}, Y = {}, Et;
2446
+ function _o() {
2447
+ if (Et) return Y;
2448
+ Et = 1, Object.defineProperty(Y, "__esModule", { value: !0 }), Y.isNestedField = void 0;
2444
2449
  function t(e) {
2445
2450
  return typeof e == "object" && e.hasOwnProperty("operation") && e.hasOwnProperty("variables") && e.hasOwnProperty("fields") || typeof e == "object" && e.hasOwnProperty("operation") && e.hasOwnProperty("fragment") && e.hasOwnProperty("fields");
2446
2451
  }
2447
- return G.isNestedField = t, G;
2452
+ return Y.isNestedField = t, Y;
2448
2453
  }
2449
- var Ot;
2450
- function oe() {
2451
- if (Ot) return L;
2452
- Ot = 1;
2453
- var t = L && L.__assign || function() {
2454
+ var At;
2455
+ function ie() {
2456
+ if (At) return $;
2457
+ At = 1;
2458
+ var t = $ && $.__assign || function() {
2454
2459
  return t = Object.assign || function(n) {
2455
2460
  for (var o, i = 1, s = arguments.length; i < s; i++) {
2456
2461
  o = arguments[i];
@@ -2459,8 +2464,8 @@ function oe() {
2459
2464
  return n;
2460
2465
  }, t.apply(this, arguments);
2461
2466
  };
2462
- Object.defineProperty(L, "__esModule", { value: !0 });
2463
- var e = Ro(), r = (
2467
+ Object.defineProperty($, "__esModule", { value: !0 });
2468
+ var e = _o(), r = (
2464
2469
  /** @class */
2465
2470
  function() {
2466
2471
  function n() {
@@ -2544,13 +2549,13 @@ function oe() {
2544
2549
  }, n;
2545
2550
  }()
2546
2551
  );
2547
- return L.default = r, L;
2552
+ return $.default = r, $;
2548
2553
  }
2549
- var Et;
2550
- function No() {
2551
- if (Et) return ce;
2552
- Et = 1, Object.defineProperty(ce, "__esModule", { value: !0 });
2553
- var t = re(), e = oe(), r = (
2554
+ var Tt;
2555
+ function Ro() {
2556
+ if (Tt) return le;
2557
+ Tt = 1, Object.defineProperty(le, "__esModule", { value: !0 });
2558
+ var t = oe(), e = ie(), r = (
2554
2559
  /** @class */
2555
2560
  function() {
2556
2561
  function n(o) {
@@ -2593,13 +2598,13 @@ function No() {
2593
2598
  }, n;
2594
2599
  }()
2595
2600
  );
2596
- return ce.default = r, ce;
2601
+ return le.default = r, le;
2597
2602
  }
2598
- var fe = {}, At;
2599
- function Po() {
2600
- if (At) return fe;
2601
- At = 1, Object.defineProperty(fe, "__esModule", { value: !0 });
2602
- var t = re(), e = oe(), r = (
2603
+ var de = {}, _t;
2604
+ function No() {
2605
+ if (_t) return de;
2606
+ _t = 1, Object.defineProperty(de, "__esModule", { value: !0 });
2607
+ var t = oe(), e = ie(), r = (
2603
2608
  /** @class */
2604
2609
  function() {
2605
2610
  function n(o) {
@@ -2653,20 +2658,20 @@ function Po() {
2653
2658
  }, n;
2654
2659
  }()
2655
2660
  );
2656
- return fe.default = r, fe;
2661
+ return de.default = r, de;
2657
2662
  }
2658
- var Tt;
2659
- function ko() {
2660
- if (Tt) return ue;
2661
- Tt = 1, Object.defineProperty(ue, "__esModule", { value: !0 });
2662
- var t = No(), e = Po();
2663
- return ue.default = { DefaultAppSyncQueryAdapter: e.default, DefaultAppSyncMutationAdapter: t.default }, ue;
2663
+ var Rt;
2664
+ function Po() {
2665
+ if (Rt) return ce;
2666
+ Rt = 1, Object.defineProperty(ce, "__esModule", { value: !0 });
2667
+ var t = Ro(), e = No();
2668
+ return ce.default = { DefaultAppSyncQueryAdapter: e.default, DefaultAppSyncMutationAdapter: t.default }, ce;
2664
2669
  }
2665
- var $ = {}, _t;
2666
- function Co() {
2667
- if (_t) return $;
2668
- _t = 1;
2669
- var t = $ && $.__assign || function() {
2670
+ var H = {}, Nt;
2671
+ function ko() {
2672
+ if (Nt) return H;
2673
+ Nt = 1;
2674
+ var t = H && H.__assign || function() {
2670
2675
  return t = Object.assign || function(o) {
2671
2676
  for (var i, s = 1, a = arguments.length; s < a; s++) {
2672
2677
  i = arguments[s];
@@ -2675,8 +2680,8 @@ function Co() {
2675
2680
  return o;
2676
2681
  }, t.apply(this, arguments);
2677
2682
  };
2678
- Object.defineProperty($, "__esModule", { value: !0 });
2679
- var e = re(), r = oe(), n = (
2683
+ Object.defineProperty(H, "__esModule", { value: !0 });
2684
+ var e = oe(), r = ie(), n = (
2680
2685
  /** @class */
2681
2686
  function() {
2682
2687
  function o(i, s) {
@@ -2716,13 +2721,13 @@ function Co() {
2716
2721
  }, o;
2717
2722
  }()
2718
2723
  );
2719
- return $.default = n, $;
2724
+ return H.default = n, H;
2720
2725
  }
2721
- var H = {}, Rt;
2722
- function qo() {
2723
- if (Rt) return H;
2724
- Rt = 1;
2725
- var t = H && H.__assign || function() {
2726
+ var V = {}, Pt;
2727
+ function Co() {
2728
+ if (Pt) return V;
2729
+ Pt = 1;
2730
+ var t = V && V.__assign || function() {
2726
2731
  return t = Object.assign || function(o) {
2727
2732
  for (var i, s = 1, a = arguments.length; s < a; s++) {
2728
2733
  i = arguments[s];
@@ -2731,8 +2736,8 @@ function qo() {
2731
2736
  return o;
2732
2737
  }, t.apply(this, arguments);
2733
2738
  };
2734
- Object.defineProperty(H, "__esModule", { value: !0 });
2735
- var e = re(), r = oe(), n = (
2739
+ Object.defineProperty(V, "__esModule", { value: !0 });
2740
+ var e = oe(), r = ie(), n = (
2736
2741
  /** @class */
2737
2742
  function() {
2738
2743
  function o(i, s) {
@@ -2771,13 +2776,13 @@ function qo() {
2771
2776
  }, o;
2772
2777
  }()
2773
2778
  );
2774
- return H.default = n, H;
2779
+ return V.default = n, V;
2775
2780
  }
2776
- var de = {}, Nt;
2777
- function Do() {
2778
- if (Nt) return de;
2779
- Nt = 1, Object.defineProperty(de, "__esModule", { value: !0 });
2780
- var t = re(), e = oe(), r = (
2781
+ var pe = {}, kt;
2782
+ function qo() {
2783
+ if (kt) return pe;
2784
+ kt = 1, Object.defineProperty(pe, "__esModule", { value: !0 });
2785
+ var t = oe(), e = ie(), r = (
2781
2786
  /** @class */
2782
2787
  function() {
2783
2788
  function n(o) {
@@ -2819,15 +2824,15 @@ function Do() {
2819
2824
  }, n;
2820
2825
  }()
2821
2826
  );
2822
- return de.default = r, de;
2827
+ return pe.default = r, pe;
2823
2828
  }
2824
- var Pt;
2825
- function jo() {
2826
- if (Pt) return P;
2827
- Pt = 1, Object.defineProperty(P, "__esModule", { value: !0 }), P.adapters = P.query = P.mutation = P.subscription = void 0;
2828
- var t = ko();
2829
+ var Ct;
2830
+ function Do() {
2831
+ if (Ct) return P;
2832
+ Ct = 1, Object.defineProperty(P, "__esModule", { value: !0 }), P.adapters = P.query = P.mutation = P.subscription = void 0;
2833
+ var t = Po();
2829
2834
  P.adapters = t.default;
2830
- var e = Co(), r = qo(), n = Do();
2835
+ var e = ko(), r = Co(), n = qo();
2831
2836
  function o(a, u, c) {
2832
2837
  var l;
2833
2838
  if (Array.isArray(a)) {
@@ -2855,8 +2860,8 @@ function jo() {
2855
2860
  }
2856
2861
  return P.subscription = s, P;
2857
2862
  }
2858
- jo();
2859
- const xo = {
2863
+ Do();
2864
+ const jo = {
2860
2865
  kind: "Document",
2861
2866
  definitions: [{
2862
2867
  kind: "FragmentDefinition",
@@ -2900,7 +2905,7 @@ const xo = {
2900
2905
  }]
2901
2906
  }
2902
2907
  }]
2903
- }, Fo = {
2908
+ }, xo = {
2904
2909
  kind: "Document",
2905
2910
  definitions: [{
2906
2911
  kind: "OperationDefinition",
@@ -3075,7 +3080,7 @@ const xo = {
3075
3080
  }]
3076
3081
  }
3077
3082
  }]
3078
- }, Mo = {
3083
+ }, Fo = {
3079
3084
  kind: "Document",
3080
3085
  definitions: [{
3081
3086
  kind: "OperationDefinition",
@@ -3105,7 +3110,7 @@ const xo = {
3105
3110
  }]
3106
3111
  }
3107
3112
  }]
3108
- }, Bo = {
3113
+ }, Mo = {
3109
3114
  kind: "Document",
3110
3115
  definitions: [{
3111
3116
  kind: "OperationDefinition",
@@ -3135,7 +3140,7 @@ const xo = {
3135
3140
  }]
3136
3141
  }
3137
3142
  }]
3138
- }, Uo = {
3143
+ }, Bo = {
3139
3144
  kind: "Document",
3140
3145
  definitions: [{
3141
3146
  kind: "OperationDefinition",
@@ -3309,19 +3314,19 @@ const xo = {
3309
3314
  }]
3310
3315
  }
3311
3316
  }]
3312
- }, $o = {
3313
- "\n mutation login($email: String!, $password: String!, $rememberMe: Boolean) {\n login(username: $email, password: $password, rememberMe: $rememberMe) {\n __typename\n ... on CurrentUser {\n id\n identifier\n }\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n": Fo,
3314
- "\n mutation logout {\n logout {\n success\n }\n }\n": Mo,
3315
- "\n query me {\n me {\n id\n }\n }\n": Bo,
3316
- "\n mutation transitionOrderToState($input: String!) {\n transitionOrderToState(state: $input) {\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n": Uo,
3317
+ }, Uo = {
3318
+ "\n mutation login($email: String!, $password: String!, $rememberMe: Boolean) {\n login(username: $email, password: $password, rememberMe: $rememberMe) {\n __typename\n ... on CurrentUser {\n id\n identifier\n }\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n": xo,
3319
+ "\n mutation logout {\n logout {\n success\n }\n }\n": Fo,
3320
+ "\n query me {\n me {\n id\n }\n }\n": Mo,
3321
+ "\n mutation transitionOrderToState($input: String!) {\n transitionOrderToState(state: $input) {\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n": Bo,
3317
3322
  "\n query nextOrderStates {\n nextOrderStates\n }\n": Io,
3318
- "\n fragment EligiblePaymentMethods on PaymentMethodQuote {\n id\n name\n description\n code\n }\n": xo,
3323
+ "\n fragment EligiblePaymentMethods on PaymentMethodQuote {\n id\n name\n description\n code\n }\n": jo,
3319
3324
  "\n query EligiblePaymentMethods {\n eligiblePaymentMethods {\n ...EligiblePaymentMethods\n }\n }\n": Lo
3320
3325
  };
3321
- function Ne(t) {
3322
- return $o[t] ?? {};
3326
+ function ke(t) {
3327
+ return Uo[t] ?? {};
3323
3328
  }
3324
- Ne(
3329
+ ke(
3325
3330
  /* GraphQL */
3326
3331
  `
3327
3332
  mutation transitionOrderToState($input: String!) {
@@ -3334,7 +3339,7 @@ Ne(
3334
3339
  }
3335
3340
  `
3336
3341
  );
3337
- Ne(
3342
+ ke(
3338
3343
  /* GraphQL */
3339
3344
  `
3340
3345
  query nextOrderStates {
@@ -3342,7 +3347,7 @@ Ne(
3342
3347
  }
3343
3348
  `
3344
3349
  );
3345
- Ne(
3350
+ ke(
3346
3351
  /* GraphQL */
3347
3352
  `
3348
3353
  fragment EligiblePaymentMethods on PaymentMethodQuote {
@@ -3353,7 +3358,7 @@ Ne(
3353
3358
  }
3354
3359
  `
3355
3360
  );
3356
- Ne(
3361
+ ke(
3357
3362
  /* GraphQL */
3358
3363
  `
3359
3364
  query EligiblePaymentMethods {
@@ -3363,32 +3368,32 @@ Ne(
3363
3368
  }
3364
3369
  `
3365
3370
  );
3366
- let kt = "web";
3371
+ let qt = "web";
3367
3372
  try {
3368
3373
  const {
3369
3374
  Platform: t
3370
3375
  } = require("react-native");
3371
- kt = t.OS === "web" ? "web" : "native";
3376
+ qt = t.OS === "web" ? "web" : "native";
3372
3377
  } catch {
3373
- kt = "web";
3378
+ qt = "web";
3374
3379
  }
3375
- const Pe = () => {
3376
- const t = z.c(2), {
3380
+ const Ce = () => {
3381
+ const t = J.c(2), {
3377
3382
  getPlatform: e
3378
3383
  } = Vn();
3379
3384
  let r;
3380
3385
  return t[0] !== e ? (r = e(), t[0] = e, t[1] = r) : r = t[1], r;
3381
3386
  };
3382
- typeof window < "u" ? window.__STORE_COMPONENT_PROVIDER_CONTEXT__ || (window.__STORE_COMPONENT_PROVIDER_CONTEXT__ = ye(void 0)) : ye(void 0);
3383
- const ke = "ProductBadge", [Ho] = vn(ke), [Vo, Wo] = Ho(ke), ln = ({
3387
+ typeof window < "u" ? window.__STORE_COMPONENT_PROVIDER_CONTEXT__ || (window.__STORE_COMPONENT_PROVIDER_CONTEXT__ = be(void 0)) : be(void 0);
3388
+ const qe = "ProductBadge", [$o] = vn(qe), [Ho, Vo] = $o(qe), fn = ({
3384
3389
  children: t,
3385
3390
  product: e,
3386
3391
  __scopeProductBadge: r,
3387
3392
  style: n,
3388
3393
  ...o
3389
3394
  }) => {
3390
- const i = gn(null), s = Pe(), a = we(s);
3391
- if (!W.getEnabled())
3395
+ const i = wn(null), s = Ce(), a = Oe(s);
3396
+ if (!X.getEnabled())
3392
3397
  return null;
3393
3398
  const {
3394
3399
  badges: u
@@ -3401,11 +3406,11 @@ const ke = "ProductBadge", [Ho] = vn(ke), [Vo, Wo] = Ho(ke), ln = ({
3401
3406
  badgesRef: i,
3402
3407
  positions: l
3403
3408
  };
3404
- return /* @__PURE__ */ j.jsx(Vo, { scope: r, ...d, children: /* @__PURE__ */ j.jsx(a, { ...o, style: n, children: qt(t, d) }) });
3409
+ return /* @__PURE__ */ j.jsx(Ho, { scope: r, ...d, children: /* @__PURE__ */ j.jsx(a, { ...o, style: n, children: jt(t, d) }) });
3405
3410
  };
3406
- ln.displayName = ke;
3407
- const fn = (t) => {
3408
- const e = z.c(18);
3411
+ fn.displayName = qe;
3412
+ const dn = (t) => {
3413
+ const e = J.c(18);
3409
3414
  let r, n, o, i, s;
3410
3415
  e[0] !== t ? ({
3411
3416
  children: o,
@@ -3414,21 +3419,21 @@ const fn = (t) => {
3414
3419
  __scopeProductBadge: r,
3415
3420
  ...s
3416
3421
  } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = o, e[4] = i, e[5] = s) : (r = e[1], n = e[2], o = e[3], i = e[4], s = e[5]);
3417
- const a = Pe();
3422
+ const a = Ce();
3418
3423
  let u;
3419
- e[6] !== n || e[7] !== a ? (u = we(a, n, "div"), e[6] = n, e[7] = a, e[8] = u) : u = e[8];
3424
+ e[6] !== n || e[7] !== a ? (u = Oe(a, n, "div"), e[6] = n, e[7] = a, e[8] = u) : u = e[8];
3420
3425
  const c = u, {
3421
3426
  groupedBadges: l
3422
- } = Wo(ke, r), d = l[i];
3427
+ } = Vo(qe, r), d = l[i];
3423
3428
  let m;
3424
- e[9] !== d || e[10] !== o || e[11] !== i ? (m = qt(o, {
3429
+ e[9] !== d || e[10] !== o || e[11] !== i ? (m = jt(o, {
3425
3430
  badges: d,
3426
3431
  position: i
3427
3432
  }), e[9] = d, e[10] = o, e[11] = i, e[12] = m) : m = e[12];
3428
3433
  let y;
3429
3434
  return e[13] !== c || e[14] !== i || e[15] !== s || e[16] !== m ? (y = /* @__PURE__ */ j.jsx(c, { ...s, "data-position": i, children: m }), e[13] = c, e[14] = i, e[15] = s, e[16] = m, e[17] = y) : y = e[17], y;
3430
- }, dn = (t) => {
3431
- const e = z.c(13);
3435
+ }, pn = (t) => {
3436
+ const e = J.c(13);
3432
3437
  let r, n, o, i;
3433
3438
  e[0] !== t ? ({
3434
3439
  children: o,
@@ -3436,40 +3441,40 @@ const fn = (t) => {
3436
3441
  badge: n,
3437
3442
  ...i
3438
3443
  } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = o, e[4] = i) : (r = e[1], n = e[2], o = e[3], i = e[4]);
3439
- const s = Pe();
3444
+ const s = Ce();
3440
3445
  let a;
3441
- e[5] !== r || e[6] !== s ? (a = we(s, r, "div"), e[5] = r, e[6] = s, e[7] = a) : a = e[7];
3446
+ e[5] !== r || e[6] !== s ? (a = Oe(s, r, "div"), e[5] = r, e[6] = s, e[7] = a) : a = e[7];
3442
3447
  const u = a, c = n?.id;
3443
3448
  let l;
3444
3449
  return e[8] !== u || e[9] !== o || e[10] !== i || e[11] !== c ? (l = /* @__PURE__ */ j.jsx(u, { ...i, "data-badge-id": c, children: o }), e[8] = u, e[9] = o, e[10] = i, e[11] = c, e[12] = l) : l = e[12], l;
3445
- }, pn = (t) => {
3446
- const e = z.c(15);
3450
+ }, mn = (t) => {
3451
+ const e = J.c(15);
3447
3452
  let r, n, o;
3448
3453
  e[0] !== t ? ({
3449
3454
  badge: n,
3450
3455
  asChild: r,
3451
3456
  ...o
3452
3457
  } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = o) : (r = e[1], n = e[2], o = e[3]);
3453
- const i = Pe();
3458
+ const i = Ce();
3454
3459
  let s;
3455
- e[4] !== r || e[5] !== i ? (s = we(i, r, "img"), e[4] = r, e[5] = i, e[6] = s) : s = e[6];
3460
+ e[4] !== r || e[5] !== i ? (s = Oe(i, r, "img"), e[4] = r, e[5] = i, e[6] = s) : s = e[6];
3456
3461
  const a = s;
3457
3462
  let u;
3458
- e[7] !== i || e[8] !== o ? (u = yn(o, i), e[7] = i, e[8] = o, e[9] = u) : u = e[9];
3463
+ e[7] !== i || e[8] !== o ? (u = bn(o, i), e[7] = i, e[8] = o, e[9] = u) : u = e[9];
3459
3464
  const c = u, l = n.asset?.preview;
3460
3465
  let d;
3461
3466
  return e[10] !== a || e[11] !== n.collection.name || e[12] !== l || e[13] !== c ? (d = /* @__PURE__ */ j.jsx(a, { src: l, alt: n.collection.name, "data-badge-name": n.collection.name, ...c }), e[10] = a, e[11] = n.collection.name, e[12] = l, e[13] = c, e[14] = d) : d = e[14], d;
3462
3467
  };
3463
- fn.displayName = "ProductBadgeGroup";
3464
- dn.displayName = "ProductBadgeItem";
3465
- pn.displayName = "ProductBadgeImage";
3466
- const yi = {
3467
- Root: ln,
3468
- Group: fn,
3469
- Item: dn,
3470
- Image: pn
3468
+ dn.displayName = "ProductBadgeGroup";
3469
+ pn.displayName = "ProductBadgeItem";
3470
+ mn.displayName = "ProductBadgeImage";
3471
+ const hi = {
3472
+ Root: fn,
3473
+ Group: dn,
3474
+ Item: pn,
3475
+ Image: mn
3471
3476
  };
3472
3477
  export {
3473
- yi as ProductBadge,
3474
- W as VendureBadgePlugin
3478
+ hi as ProductBadge,
3479
+ X as VendureBadgePlugin
3475
3480
  };