@soma-vertical-web/multi-lib 1.0.30 → 1.0.31

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 (45) hide show
  1. package/contexts/contexts/plp/FilterContext.d.ts +1 -1
  2. package/contexts/contexts/plp/PLPContext.d.ts +1 -1
  3. package/contexts/contexts/search/Facets.d.ts +1 -1
  4. package/contexts/contexts/search/QueryFacets.d.ts +5 -0
  5. package/contexts/contexts/search/QueryProducts.d.ts +5 -0
  6. package/contexts/contexts/search/RootTank.d.ts +9 -0
  7. package/contexts/contexts/search/Search.d.ts +1 -1
  8. package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
  9. package/contexts/index.d.ts +4 -4
  10. package/contexts/store/plp-scroll.d.ts +3 -0
  11. package/data/helpers/plp/index.d.ts +7 -3
  12. package/data/helpers/search/facets.d.ts +1 -0
  13. package/data/helpers/search/index.d.ts +4 -0
  14. package/data/helpers/search/product/index.d.ts +13 -1
  15. package/data/helpers/search/search.d.ts +1 -0
  16. package/data/index.d.ts +2 -0
  17. package/index-BFjIPkXv.js +4 -0
  18. package/{index-BM8vTUKg.mjs → index-CIVkR1d_.mjs} +776 -712
  19. package/index.js +18 -18
  20. package/index.mjs +11006 -8750
  21. package/index2.js +2 -2
  22. package/index2.mjs +281 -286
  23. package/layout/index.d.ts +2 -2
  24. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  25. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +11 -0
  26. package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +1 -0
  27. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +7 -0
  28. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
  29. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  30. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +4 -1
  31. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  32. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +10 -3
  33. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  34. package/layout/template/PDC/PDC.d.ts +1 -1
  35. package/layout/template/PDC/index.d.ts +1 -1
  36. package/layout/template/SearchResult/Composite/Products.d.ts +7 -0
  37. package/package.json +1 -1
  38. package/server.d.ts +4 -0
  39. package/style.css +1 -1
  40. package/types/contexts/contexts/plp.d.ts +63 -21
  41. package/types/contexts/contexts/search.d.ts +39 -17
  42. package/types/contexts/hooks/index.d.ts +0 -2
  43. package/types/layout/team-components/PLPNavigation/index.d.ts +0 -2
  44. package/types/layout/templates/PLP/index.d.ts +7 -3
  45. package/index-CZjoMPpQ.js +0 -4
@@ -1,28 +1,28 @@
1
- import * as x from "yup";
2
- import { jsxs as yt, Fragment as Mr, jsx as L } from "react/jsx-runtime";
3
- import { Utils as Ur } from "@soma-vertical-web/core-components";
4
- const Ye = (t, e = !0) => Intl.NumberFormat("pt-BR", {
1
+ import * as M from "yup";
2
+ import { jsxs as gt, Fragment as Xr, jsx as F } from "react/jsx-runtime";
3
+ import { Utils as Wr } from "@soma-vertical-web/core-components";
4
+ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
5
5
  style: "currency",
6
6
  currency: "BRL",
7
7
  minimumFractionDigits: e ? 2 : 0
8
- }).format(t), Gr = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : Ye(0) : Ye(t / 100), Br = (t, e) => {
8
+ }).format(t), Vr = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : Ze(0) : Ze(t / 100), qr = (t, e) => {
9
9
  const n = (t - e) * 100 / t;
10
10
  return Math.floor(n);
11
- }, Xt = (t, e) => {
11
+ }, zt = (t, e) => {
12
12
  const [r, n] = t.split(e);
13
13
  return { name: r.trim(), size: n ? n.trim() : "" };
14
- }, Hr = (t, e) => {
14
+ }, zr = (t, e) => {
15
15
  if (!t)
16
16
  return {};
17
17
  const [r, n] = t.split(e);
18
18
  return { color: r == null ? void 0 : r.trim(), size: n == null ? void 0 : n.trim() };
19
- }, kr = (t, e = "tamanho") => {
19
+ }, Kr = (t, e = "tamanho") => {
20
20
  if (t.additionalProperty) {
21
21
  const [r] = t.additionalProperty;
22
22
  return r != null && r.name ? r.name.toLocaleLowerCase() === e ? r.value : t.name : "";
23
23
  }
24
24
  return t.name;
25
- }, jr = (t, e) => t.replace(e, "").trim(), Xr = (t) => t.replace(/\//g, ""), Wr = ({ items: t, NAME_SPLIT_SYMBOL: e }) => {
25
+ }, Yr = (t, e) => t.replace(e, "").trim(), Qr = (t) => t.replace(/\//g, ""), Jr = ({ items: t, NAME_SPLIT_SYMBOL: e }) => {
26
26
  const r = {
27
27
  price: 0,
28
28
  listPrice: 0,
@@ -41,9 +41,9 @@ const Ye = (t, e = !0) => Intl.NumberFormat("pt-BR", {
41
41
  r.price = c, r.listPrice = s;
42
42
  const p = (f = u == null ? void 0 : u[0]) == null ? void 0 : f.installments;
43
43
  if (p) {
44
- const { count: v, value: y } = p[p.length - 1];
44
+ const { count: d, value: y } = p[p.length - 1];
45
45
  r.installments = {
46
- count: v,
46
+ count: d,
47
47
  value: y / 100
48
48
  };
49
49
  }
@@ -54,7 +54,7 @@ const Ye = (t, e = !0) => Intl.NumberFormat("pt-BR", {
54
54
  const c = {
55
55
  name: l.name,
56
56
  sku: l.itemId,
57
- value: ((u = l.Tamanho) == null ? void 0 : u[0]) ?? Xt(l.nameComplete ?? l.name, e).size,
57
+ value: ((u = l.Tamanho) == null ? void 0 : u[0]) ?? zt(l.nameComplete ?? l.name, e).size,
58
58
  available: !1,
59
59
  sellerId: "",
60
60
  sellerName: "",
@@ -71,26 +71,26 @@ const Ye = (t, e = !0) => Intl.NumberFormat("pt-BR", {
71
71
  sizes: a,
72
72
  allSizesAvailable: o
73
73
  };
74
- }, Vr = (t) => t ? !t.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, qr = (t, e) => {
74
+ }, Zr = (t) => t ? !t.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, en = (t, e) => {
75
75
  const r = t.find(
76
76
  (n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0 && n.seller.identifier === e
77
77
  );
78
78
  return r || t.find(
79
79
  (n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0
80
80
  );
81
- }, zr = ({ images: t, TEXTURE_IMAGE: e }) => t.find((r) => e.includes(r.imageLabel)) ?? t[0], Kr = (t, e) => {
81
+ }, tn = ({ images: t, TEXTURE_IMAGE: e }) => t.find((r) => e.includes(r.imageLabel)) ?? t[0], rn = (t, e) => {
82
82
  const r = /\/ids\/(\d+)\//, n = t.match(r);
83
83
  return n ? t.replace(
84
84
  `/${n[1]}/`,
85
85
  `/${n[1]}-${e.width}-${e.height}/`
86
86
  ) : t;
87
- }, Yr = (t, e) => {
87
+ }, nn = (t, e) => {
88
88
  const r = /\/ids\/(\d+)-(\d+)-(\d+)\//, n = t.match(r);
89
89
  return n ? t.replace(
90
90
  `/${n[1]}-${n[2]}-${n[3]}/`,
91
91
  `/${n[1]}-${e.width}-${e.height}/`
92
92
  ) : t;
93
- }, Qr = ({
93
+ }, on = ({
94
94
  images: t,
95
95
  label: e
96
96
  }) => {
@@ -98,35 +98,35 @@ const Ye = (t, e = !0) => Intl.NumberFormat("pt-BR", {
98
98
  (n) => n.keywords === e.first || n.keywords === e.second || n.alternateName === e.first || n.alternateName === e.second
99
99
  );
100
100
  return r.length === 0 ? t.slice(0, 2) : r;
101
- }, Jr = (t) => {
101
+ }, an = (t) => {
102
102
  const [e, r] = t.split("/").map(Number);
103
103
  if (Number.isNaN(e) || Number.isNaN(r))
104
104
  throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");
105
105
  return r / e;
106
- }, Zr = (t, e, r) => {
106
+ }, ln = (t, e, r) => {
107
107
  e && (t ? (e.getAttribute("src") || (e.src = r ?? ""), e.play()) : e.pause());
108
- }, Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
108
+ }, ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
109
109
  __proto__: null,
110
- disableSKU: Vr,
111
- formatPriceToCurrency: Ye,
112
- freightParsePrice: Gr,
113
- getAspectRatio: Jr,
114
- getColorAndSizeFromSkuName: Hr,
115
- getDiscountPercent: Br,
116
- getFirstImages: Qr,
117
- getProductNameWithoutSku: jr,
118
- getSKUName: kr,
119
- getSkuInfos: Wr,
120
- getThumbImage: zr,
121
- getValidOffer: qr,
122
- removeSlashes: Xr,
123
- resizingImg: Kr,
124
- setVideoPlay: Zr,
125
- splitNameAndSizeFromFullName: Xt,
126
- updatedResizedImg: Yr
127
- }, Symbol.toStringTag, { value: "Module" })), dt = "fuzzy", vt = "operator", en = (t) => ({
110
+ disableSKU: Zr,
111
+ formatPriceToCurrency: Ze,
112
+ freightParsePrice: Vr,
113
+ getAspectRatio: an,
114
+ getColorAndSizeFromSkuName: zr,
115
+ getDiscountPercent: qr,
116
+ getFirstImages: on,
117
+ getProductNameWithoutSku: Yr,
118
+ getSKUName: Kr,
119
+ getSkuInfos: Jr,
120
+ getThumbImage: tn,
121
+ getValidOffer: en,
122
+ removeSlashes: Qr,
123
+ resizingImg: rn,
124
+ setVideoPlay: ln,
125
+ splitNameAndSizeFromFullName: zt,
126
+ updatedResizedImg: nn
127
+ }, Symbol.toStringTag, { value: "Module" })), mt = "fuzzy", _t = "operator", cn = (t) => ({
128
128
  isDepartment: t != null && t.length ? t[0].key === "category-1" : !1
129
- }), Di = (t, e) => {
129
+ }), un = (t, e) => {
130
130
  const r = decodeURIComponent(e ?? "").slice(1).split("/");
131
131
  return t.map((n) => {
132
132
  if (n.key === "category-2" && n.__typename === "FacetBoolean") {
@@ -142,7 +142,7 @@ const Ye = (t, e = !0) => Intl.NumberFormat("pt-BR", {
142
142
  }
143
143
  return n;
144
144
  });
145
- }, Wt = (t, e) => e ? t === "category-1" : !1, tn = (t) => t.key === "operator" && (t.value === "and" || t.value === "or"), rn = (t) => t.type === "TEXT", nn = (t) => t.key === "fuzzy" && (t.value === "0" || t.value === "1" || t.value === "auto"), on = (t) => {
145
+ }, Kt = (t, e) => e ? t === "category-1" : !1, fn = (t) => t.key === "operator" && (t.value === "and" || t.value === "or"), sn = (t) => t.type === "TEXT", pn = (t) => t.key === "fuzzy" && (t.value === "0" || t.value === "1" || t.value === "auto"), yn = (t) => {
146
146
  const { key: e, name: r, values: n } = t;
147
147
  return {
148
148
  __typename: "FacetBoolean",
@@ -150,54 +150,71 @@ const Ye = (t, e = !0) => Intl.NumberFormat("pt-BR", {
150
150
  label: r,
151
151
  values: n.slice().sort((o, a) => o.name.localeCompare(a.name))
152
152
  };
153
- }, an = ({ key: t, values: e }) => ({
153
+ }, dn = ({ key: t, values: e }) => ({
154
154
  __typename: "FacetRange",
155
155
  key: t,
156
156
  values: e
157
- }), $i = (t, e, r) => {
157
+ }), Xi = (t, e, r) => {
158
158
  if (!(t instanceof Object) || !("facets" in t))
159
159
  return [];
160
160
  const { facets: n = [] } = t, o = e != null && e.length ? e[0].key === "category-1" : !1;
161
161
  return n.filter(
162
- (i) => !r || !Wt(i.key, o)
162
+ (i) => !r || !Kt(i.key, o)
163
163
  ).map(
164
- (i) => rn(i) ? on(i) : an(i)
164
+ (i) => sn(i) ? yn(i) : dn(i)
165
165
  );
166
- }, Fi = (t, e) => {
167
- const r = t.find(({ key: o }) => o === dt) ?? null, n = t.find(({ key: o }) => o === vt) ?? null;
168
- r && nn(r) && e.append(dt, r.value), n && tn(n) && e.append(vt, n.value);
169
- }, ln = (t) => t.map((e) => {
166
+ }, Wi = (t, e) => {
167
+ const r = t.find(({ key: o }) => o === mt) ?? null, n = t.find(({ key: o }) => o === _t) ?? null;
168
+ r && pn(r) && e.append(mt, r.value), n && fn(n) && e.append(_t, n.value);
169
+ }, Yt = (t) => t.map((e) => {
170
170
  const [r, n] = e.split("/");
171
171
  return { key: r, value: n };
172
- }), xi = (t, e) => {
172
+ }), vn = (t, e) => {
173
173
  const r = decodeURIComponent(e ?? "").slice(1).split("/"), n = t.filter(({ value: a }) => !r.includes(decodeURIComponent(a))).map((a) => ({
174
174
  ...a,
175
175
  value: decodeURIComponent(a.value)
176
- })), { isDepartment: o } = en(n);
177
- return n == null ? void 0 : n.filter((a) => !Wt(a.key, o));
178
- }, Li = ({ pathname: t, searchParams: e }, r) => {
176
+ })), { isDepartment: o } = cn(n);
177
+ return n == null ? void 0 : n.filter((a) => !Kt(a.key, o));
178
+ }, Vi = (t) => t.getAll("facets").flatMap((e) => {
179
+ const [r, ...n] = e.split("/");
180
+ return !r || n.length === 0 ? [] : [
181
+ {
182
+ key: r,
183
+ value: n.join("/")
184
+ }
185
+ ];
186
+ }), hn = ({ pathname: t, searchParams: e }, r) => {
179
187
  const n = e.get("sort") ?? "", o = e.get("query") ?? null, a = parseInt(e.get("page") ?? "1", 10);
180
188
  return {
181
189
  sort: n,
182
- facets: ln(r),
190
+ facets: Yt(r),
183
191
  term: o,
184
192
  base: o ? "" : t,
185
193
  page: a
186
194
  };
187
- }, Mi = (t) => {
195
+ }, gn = (t) => {
188
196
  const e = new URLSearchParams();
189
197
  return Object.entries(t).forEach(([r, n]) => {
190
198
  Array.isArray(n) ? n.forEach((o) => e.append(r, o)) : n !== void 0 && e.append(r, n);
191
199
  }), e;
192
- }, Ui = (t, e, r = 24, n = 1, o) => {
200
+ }, qi = (t, e, r = 24, n = 1, o) => {
193
201
  const a = `/search?query=${e ?? ""}&count=${r}&page=${n}${o ? `&sort=${o.replace("_", ":")}` : ""}`;
194
202
  t.push(a);
195
- };
196
- var ht = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
197
- function cn(t) {
203
+ }, mn = {
204
+ parseSearchState: hn,
205
+ convertSearchParams: gn,
206
+ filterNonRootFacets: vn,
207
+ selectedFacets: Yt,
208
+ filterNonCategorySelected: un
209
+ }, zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
210
+ __proto__: null,
211
+ default: mn
212
+ }, Symbol.toStringTag, { value: "Module" }));
213
+ var Et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
214
+ function _n(t) {
198
215
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
199
216
  }
200
- function un(t) {
217
+ function En(t) {
201
218
  if (t.__esModule) return t;
202
219
  var e = t.default;
203
220
  if (typeof e == "function") {
@@ -216,7 +233,7 @@ function un(t) {
216
233
  });
217
234
  }), r;
218
235
  }
219
- var fn = {};
236
+ var Sn = {};
220
237
  (function(t) {
221
238
  Object.defineProperty(t, "__esModule", {
222
239
  value: !0
@@ -229,8 +246,8 @@ var fn = {};
229
246
  function e(r) {
230
247
  return r.replace(/\/$/, "") || "/";
231
248
  }
232
- })(fn);
233
- var nt = {};
249
+ })(Sn);
250
+ var it = {};
234
251
  (function(t) {
235
252
  Object.defineProperty(t, "__esModule", {
236
253
  value: !0
@@ -252,8 +269,8 @@ var nt = {};
252
269
  hash: ""
253
270
  };
254
271
  }
255
- })(nt);
256
- var Vt = {};
272
+ })(it);
273
+ var Qt = {};
257
274
  (function(t) {
258
275
  Object.defineProperty(t, "__esModule", {
259
276
  value: !0
@@ -263,23 +280,23 @@ var Vt = {};
263
280
  return r;
264
281
  }
265
282
  });
266
- const e = nt;
283
+ const e = it;
267
284
  function r(n, o) {
268
285
  if (typeof n != "string")
269
286
  return !1;
270
287
  const { pathname: a } = (0, e.parsePath)(n);
271
288
  return a === o || a.startsWith(o + "/");
272
289
  }
273
- })(Vt);
274
- var sn = {};
290
+ })(Qt);
291
+ var An = {};
275
292
  (function(t) {
276
293
  Object.defineProperty(t, "__esModule", {
277
294
  value: !0
278
295
  });
279
- function e(Lr, st) {
280
- for (var pt in st) Object.defineProperty(Lr, pt, {
296
+ function e(kr, vt) {
297
+ for (var ht in vt) Object.defineProperty(kr, ht, {
281
298
  enumerable: !0,
282
- get: st[pt]
299
+ get: vt[ht]
283
300
  });
284
301
  }
285
302
  e(t, {
@@ -293,25 +310,25 @@ var sn = {};
293
310
  return I;
294
311
  },
295
312
  DOT_NEXT_ALIAS: function() {
296
- return F;
313
+ return x;
297
314
  },
298
315
  ESLINT_DEFAULT_DIRS: function() {
299
- return Dr;
316
+ return Gr;
300
317
  },
301
318
  GSP_NO_RETURNED_VALUE: function() {
302
- return br;
319
+ return $r;
303
320
  },
304
321
  GSSP_COMPONENT_MEMBER_ERROR: function() {
305
- return wr;
322
+ return Fr;
306
323
  },
307
324
  GSSP_NO_RETURNED_VALUE: function() {
308
- return Ir;
325
+ return xr;
309
326
  },
310
327
  INSTRUMENTATION_HOOK_FILENAME: function() {
311
328
  return U;
312
329
  },
313
330
  MIDDLEWARE_FILENAME: function() {
314
- return T;
331
+ return w;
315
332
  },
316
333
  MIDDLEWARE_LOCATION_REGEXP: function() {
317
334
  return k;
@@ -326,10 +343,10 @@ var sn = {};
326
343
  return y;
327
344
  },
328
345
  NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
329
- return E;
346
+ return _;
330
347
  },
331
348
  NEXT_CACHE_SOFT_TAGS_HEADER: function() {
332
- return v;
349
+ return d;
333
350
  },
334
351
  NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
335
352
  return b;
@@ -341,7 +358,7 @@ var sn = {};
341
358
  return A;
342
359
  },
343
360
  NEXT_CACHE_TAG_MAX_LENGTH: function() {
344
- return O;
361
+ return P;
345
362
  },
346
363
  NEXT_DATA_SUFFIX: function() {
347
364
  return s;
@@ -356,7 +373,7 @@ var sn = {};
356
373
  return r;
357
374
  },
358
375
  NON_STANDARD_NODE_ENV: function() {
359
- return Cr;
376
+ return Lr;
360
377
  },
361
378
  PAGES_DIR_ALIAS: function() {
362
379
  return z;
@@ -371,19 +388,19 @@ var sn = {};
371
388
  return ne;
372
389
  },
373
390
  ROOT_DIR_ALIAS: function() {
374
- return w;
391
+ return T;
375
392
  },
376
393
  RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
377
- return j;
394
+ return X;
378
395
  },
379
396
  RSC_ACTION_ENCRYPTION_ALIAS: function() {
380
- return P;
397
+ return R;
381
398
  },
382
399
  RSC_ACTION_PROXY_ALIAS: function() {
383
400
  return C;
384
401
  },
385
402
  RSC_ACTION_VALIDATE_ALIAS: function() {
386
- return R;
403
+ return O;
387
404
  },
388
405
  RSC_MOD_REF_PROXY_ALIAS: function() {
389
406
  return G;
@@ -395,7 +412,7 @@ var sn = {};
395
412
  return l;
396
413
  },
397
414
  SERVER_PROPS_EXPORT_ERROR: function() {
398
- return Or;
415
+ return Dr;
399
416
  },
400
417
  SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
401
418
  return ve;
@@ -404,38 +421,38 @@ var sn = {};
404
421
  return oe;
405
422
  },
406
423
  SERVER_RUNTIME: function() {
407
- return $r;
424
+ return Br;
408
425
  },
409
426
  SSG_FALLBACK_EXPORT_ERROR: function() {
410
- return Nr;
427
+ return Ur;
411
428
  },
412
429
  SSG_GET_INITIAL_PROPS_CONFLICT: function() {
413
- return Ne;
430
+ return xe;
414
431
  },
415
432
  STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
416
- return Pr;
433
+ return Nr;
417
434
  },
418
435
  UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
419
- return Tr;
436
+ return Mr;
420
437
  },
421
438
  WEBPACK_LAYERS: function() {
422
- return Fr;
439
+ return Hr;
423
440
  },
424
441
  WEBPACK_RESOURCE_QUERIES: function() {
425
- return xr;
442
+ return jr;
426
443
  }
427
444
  });
428
- const r = "nxtP", n = "nxtI", o = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", i = ".prefetch.rsc", l = ".rsc", c = ".action", s = ".json", u = ".meta", p = ".body", f = "x-next-cache-tags", v = "x-next-cache-soft-tags", y = "x-next-revalidated-tags", E = "x-next-revalidate-tag-token", A = 128, O = 256, b = 1024, h = "_N_T_", I = 31536e3, T = "middleware", k = `(?:src/)?${T}`, U = "instrumentation", z = "private-next-pages", F = "private-dot-next", w = "private-next-root-dir", K = "private-next-app-dir", G = "private-next-rsc-mod-ref-proxy", R = "private-next-rsc-action-validate", C = "private-next-rsc-server-reference", P = "private-next-rsc-action-encryption", j = "private-next-rsc-action-client-wrapper", ne = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", Ne = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ve = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", oe = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Pr = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", Or = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", br = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", Ir = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", Tr = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", wr = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", Cr = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', Nr = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", Dr = [
445
+ const r = "nxtP", n = "nxtI", o = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", i = ".prefetch.rsc", l = ".rsc", c = ".action", s = ".json", u = ".meta", p = ".body", f = "x-next-cache-tags", d = "x-next-cache-soft-tags", y = "x-next-revalidated-tags", _ = "x-next-revalidate-tag-token", A = 128, P = 256, b = 1024, h = "_N_T_", I = 31536e3, w = "middleware", k = `(?:src/)?${w}`, U = "instrumentation", z = "private-next-pages", x = "private-dot-next", T = "private-next-root-dir", K = "private-next-app-dir", G = "private-next-rsc-mod-ref-proxy", O = "private-next-rsc-action-validate", C = "private-next-rsc-server-reference", R = "private-next-rsc-action-encryption", X = "private-next-rsc-action-client-wrapper", ne = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", xe = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ve = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", oe = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Nr = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", Dr = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", $r = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", xr = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", Mr = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", Fr = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", Lr = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', Ur = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", Gr = [
429
446
  "app",
430
447
  "pages",
431
448
  "components",
432
449
  "lib",
433
450
  "src"
434
- ], $r = {
451
+ ], Br = {
435
452
  edge: "edge",
436
453
  experimentalEdge: "experimental-edge",
437
454
  nodejs: "nodejs"
438
- }, _ = {
455
+ }, E = {
439
456
  /**
440
457
  * The layer for the shared code between the client and server bundles.
441
458
  */
@@ -480,44 +497,44 @@ var sn = {};
480
497
  * The layer for the server bundle for App Route handlers.
481
498
  */
482
499
  appRouteHandler: "app-route-handler"
483
- }, Fr = {
484
- ..._,
500
+ }, Hr = {
501
+ ...E,
485
502
  GROUP: {
486
503
  serverOnly: [
487
- _.reactServerComponents,
488
- _.actionBrowser,
489
- _.appMetadataRoute,
490
- _.appRouteHandler,
491
- _.instrument
504
+ E.reactServerComponents,
505
+ E.actionBrowser,
506
+ E.appMetadataRoute,
507
+ E.appRouteHandler,
508
+ E.instrument
492
509
  ],
493
510
  clientOnly: [
494
- _.serverSideRendering,
495
- _.appPagesBrowser
511
+ E.serverSideRendering,
512
+ E.appPagesBrowser
496
513
  ],
497
514
  nonClientServerTarget: [
498
515
  // middleware and pages api
499
- _.middleware,
500
- _.api
516
+ E.middleware,
517
+ E.api
501
518
  ],
502
519
  app: [
503
- _.reactServerComponents,
504
- _.actionBrowser,
505
- _.appMetadataRoute,
506
- _.appRouteHandler,
507
- _.serverSideRendering,
508
- _.appPagesBrowser,
509
- _.shared,
510
- _.instrument
520
+ E.reactServerComponents,
521
+ E.actionBrowser,
522
+ E.appMetadataRoute,
523
+ E.appRouteHandler,
524
+ E.serverSideRendering,
525
+ E.appPagesBrowser,
526
+ E.shared,
527
+ E.instrument
511
528
  ]
512
529
  }
513
- }, xr = {
530
+ }, jr = {
514
531
  edgeSSREntry: "__next_edge_ssr_entry__",
515
532
  metadata: "__next_metadata__",
516
533
  metadataRoute: "__next_metadata_route__",
517
534
  metadataImageMeta: "__next_metadata_image_meta__"
518
535
  };
519
- })(sn);
520
- var pn = {}, qt = {};
536
+ })(An);
537
+ var On = {}, Jt = {};
521
538
  (function(t) {
522
539
  Object.defineProperty(t, "__esModule", {
523
540
  value: !0
@@ -527,14 +544,14 @@ var pn = {}, qt = {};
527
544
  return r;
528
545
  }
529
546
  });
530
- const e = nt;
547
+ const e = it;
531
548
  function r(n, o) {
532
549
  if (!n.startsWith("/") || !o)
533
550
  return n;
534
551
  const { pathname: a, query: i, hash: l } = (0, e.parsePath)(n);
535
552
  return "" + o + a + i + l;
536
553
  }
537
- })(qt);
554
+ })(Jt);
538
555
  (function(t) {
539
556
  Object.defineProperty(t, "__esModule", {
540
557
  value: !0
@@ -544,14 +561,14 @@ var pn = {}, qt = {};
544
561
  return n;
545
562
  }
546
563
  });
547
- const e = qt, r = Vt;
564
+ const e = Jt, r = Qt;
548
565
  function n(o, a, i, l) {
549
566
  if (!a || a === i) return o;
550
567
  const c = o.toLowerCase();
551
568
  return !l && ((0, r.pathHasPrefix)(c, "/api") || (0, r.pathHasPrefix)(c, "/" + a.toLowerCase())) ? o : (0, e.addPathPrefix)(o, "/" + a);
552
569
  }
553
- })(pn);
554
- var yn = {};
570
+ })(On);
571
+ var Rn = {};
555
572
  (function(t) {
556
573
  Object.defineProperty(t, "__esModule", {
557
574
  value: !0
@@ -569,8 +586,8 @@ var yn = {};
569
586
  detectedLocale: o
570
587
  };
571
588
  }
572
- })(yn);
573
- var dn = {};
589
+ })(Rn);
590
+ var Pn = {};
574
591
  (function(t) {
575
592
  Object.defineProperty(t, "__esModule", {
576
593
  value: !0
@@ -591,19 +608,19 @@ var dn = {};
591
608
  }
592
609
  }
593
610
  }
594
- })(dn);
595
- const vn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), gt = (t, e = " ") => !t || typeof t == "string" && t.length === 0 ? t : (Array.isArray(t) ? t : t.split("-")).map(vn).join(e), hn = ({ canonical: t, seo: e, slug: r }) => {
611
+ })(Pn);
612
+ const bn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), St = (t, e = " ") => !t || typeof t == "string" && t.length === 0 ? t : (Array.isArray(t) ? t : t.split("-")).map(bn).join(e), In = ({ canonical: t, seo: e, slug: r }) => {
596
613
  const n = Array.isArray(r) ? r.join(", ") : r;
597
614
  return {
598
615
  id: 0,
599
- Title: `${Array.isArray(r) ? r.map((a) => gt(a)).join(",") : gt(r)} - ${e.title}`,
616
+ Title: `${Array.isArray(r) ? r.map((a) => St(a)).join(",") : St(r)} - ${e.title}`,
600
617
  MetaTagDescription: e.description,
601
618
  name: n,
602
619
  hasChildren: !1,
603
620
  url: t,
604
621
  children: []
605
622
  };
606
- }, gn = ({ canonical: t, category: e, previousImages: r, seo: n }) => ({
623
+ }, wn = ({ canonical: t, category: e, previousImages: r, seo: n }) => ({
607
624
  category: String(e == null ? void 0 : e.id),
608
625
  title: (e == null ? void 0 : e.Title) ?? n.title,
609
626
  description: (e == null ? void 0 : e.MetaTagDescription) ?? n.description,
@@ -614,28 +631,28 @@ const vn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), gt = (t, e = " ")
614
631
  description: (e == null ? void 0 : e.MetaTagDescription) ?? n.description,
615
632
  images: Array.isArray(r) ? [...r] : []
616
633
  }
617
- }), mn = ({ items: t, parent: e, apiUrl: r, find: n }) => {
634
+ }), Tn = ({ items: t, parent: e, apiUrl: r, find: n }) => {
618
635
  const o = t.find(
619
636
  (i) => i.url.replace(r, "") === decodeURIComponent(e.toLowerCase())
620
637
  );
621
638
  return (o == null ? void 0 : o.children.find(
622
639
  (i) => i.name.toLowerCase() === decodeURIComponent(String(n))
623
640
  )) ?? o;
624
- }, En = (t) => {
641
+ }, Cn = (t) => {
625
642
  t instanceof Error ? (console.error(`[ERROR CATEGORY INFO]: ${t.message}`), console.error(t.stack)) : console.error("[ERROR CATEGORY INFO]: Unknown error", t);
626
- }, _n = /* @__PURE__ */ new Set([
643
+ }, Nn = /* @__PURE__ */ new Set([
627
644
  "brand",
628
645
  "category",
629
646
  "department",
630
647
  "subcategory",
631
648
  "collection",
632
649
  "cluster"
633
- ]), Sn = (t) => typeof (t == null ? void 0 : t.pageType) == "string" && _n.has(t == null ? void 0 : t.pageType.toLowerCase()), An = (t) => ({
650
+ ]), Dn = (t) => typeof (t == null ? void 0 : t.pageType) == "string" && Nn.has(t == null ? void 0 : t.pageType.toLowerCase()), $n = (t) => ({
634
651
  collection: t.Coleção,
635
652
  categoryId: t.categoryId,
636
653
  current_collection: t["Coleção Atual"],
637
654
  items: t.items
638
- }), Rn = (t, e) => t.reduce((r, n) => {
655
+ }), xn = (t, e) => t.reduce((r, n) => {
639
656
  if (n.items.filter(
640
657
  (i) => i.sellers.find((l) => l.commertialOffer.IsAvailable)
641
658
  ).length === 0 || (r == null ? void 0 : r.find((i) => (i == null ? void 0 : i.productId) === (n == null ? void 0 : n.productId))) !== void 0)
@@ -649,21 +666,21 @@ const vn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), gt = (t, e = " ")
649
666
  textureImage: (a == null ? void 0 : a.imageUrl) ?? "",
650
667
  textureAlt: (a == null ? void 0 : a.imageText) ?? ""
651
668
  }), r;
652
- }, []), Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
669
+ }, []), Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
653
670
  __proto__: null,
654
- createEmptySeoCategory: hn,
655
- createSeoCategory: gn,
656
- findCategory: mn,
657
- formattedSimilars: Rn,
658
- isCollectionPageType: Sn,
659
- notFindCategoryError: En,
660
- responseAdapter: An
671
+ createEmptySeoCategory: In,
672
+ createSeoCategory: wn,
673
+ findCategory: Tn,
674
+ formattedSimilars: xn,
675
+ isCollectionPageType: Dn,
676
+ notFindCategoryError: Cn,
677
+ responseAdapter: $n
661
678
  }, Symbol.toStringTag, { value: "Module" })), he = {
662
679
  "responsive-mobile-flex": "_responsive-mobile-flex_1e0ai_1",
663
680
  "responsive-desktop-flex": "_responsive-desktop-flex_1e0ai_15",
664
681
  "responsive-mobile-block": "_responsive-mobile-block_1e0ai_30",
665
682
  "responsive-desktop-block": "_responsive-desktop-block_1e0ai_41"
666
- }, zt = async (t, e = {}) => {
683
+ }, Zt = async (t, e = {}) => {
667
684
  const { method: r = "GET", body: n, headers: o = {}, priority: a = "auto", cache: i = "default" } = e;
668
685
  return fetch(t, {
669
686
  method: r,
@@ -680,12 +697,12 @@ const vn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), gt = (t, e = " ")
680
697
  console.error("[ERROR FETCH VTEX]", l);
681
698
  });
682
699
  }, ae = /* @__PURE__ */ new Map();
683
- async function Bi(t, e = {}) {
700
+ async function Yi(t, e = {}) {
684
701
  var r;
685
702
  try {
686
703
  const { abort: n = !1 } = e, o = new AbortController();
687
704
  n && (ae.has(t) && ((r = ae.get(t)) == null || r.abort(), ae.delete(t)), ae.set(t, o));
688
- const a = zt(t, {
705
+ const a = Zt(t, {
689
706
  ...e,
690
707
  ...n ? { signal: o.signal } : {}
691
708
  });
@@ -698,17 +715,17 @@ async function Bi(t, e = {}) {
698
715
  throw console.error(`[ERROR API]: ${n.message}`), n;
699
716
  }
700
717
  }
701
- const Pn = x.object({
702
- orderFormId: x.string().required(),
703
- coupon: x.string().nullable(),
704
- utmSource: x.string().optional(),
705
- utmMedium: x.string().optional(),
706
- utmCampaign: x.string().optional(),
707
- utmiCampaign: x.string().optional(),
708
- utmiPart: x.string().optional(),
709
- utmipage: x.string().optional()
718
+ const Mn = M.object({
719
+ orderFormId: M.string().required(),
720
+ coupon: M.string().nullable(),
721
+ utmSource: M.string().optional(),
722
+ utmMedium: M.string().optional(),
723
+ utmCampaign: M.string().optional(),
724
+ utmiCampaign: M.string().optional(),
725
+ utmiPart: M.string().optional(),
726
+ utmipage: M.string().optional()
710
727
  });
711
- async function On({
728
+ async function Fn({
712
729
  apiUrl: t,
713
730
  body: e
714
731
  }) {
@@ -716,9 +733,9 @@ async function On({
716
733
  console.error("[ERROR FETCHING] Body is required");
717
734
  return;
718
735
  }
719
- await Pn.validate(e);
736
+ await Mn.validate(e);
720
737
  const { orderFormId: r, utmiPart: n, coupon: o, ...a } = e, i = `${t}/api/checkout/pub/orderForm/${r}/attachments/marketingData`;
721
- return zt(i, {
738
+ return Zt(i, {
722
739
  method: "POST",
723
740
  body: {
724
741
  orderFormId: r,
@@ -728,10 +745,10 @@ async function On({
728
745
  }
729
746
  });
730
747
  }
731
- const Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
748
+ const Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
732
749
  __proto__: null,
733
- postMediaData: On
734
- }, Symbol.toStringTag, { value: "Module" })), ki = ({
750
+ postMediaData: Fn
751
+ }, Symbol.toStringTag, { value: "Module" })), Ji = ({
735
752
  children: t,
736
753
  data: e,
737
754
  SectionZone: r,
@@ -739,64 +756,64 @@ const Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
739
756
  }) => {
740
757
  var u, p;
741
758
  const o = ((u = e == null ? void 0 : e.filter((f) => {
742
- var v, y;
743
- return ((y = (v = f.config) == null ? void 0 : v.responsive) == null ? void 0 : y.deviceType) === "mobile";
759
+ var d, y;
760
+ return ((y = (d = f.config) == null ? void 0 : d.responsive) == null ? void 0 : y.deviceType) === "mobile";
744
761
  })[0]) == null ? void 0 : u.sections) || [], a = ((p = e == null ? void 0 : e.filter((f) => {
745
- var v, y;
746
- return ((y = (v = f.config) == null ? void 0 : v.responsive) == null ? void 0 : y.deviceType) === "desktop";
762
+ var d, y;
763
+ return ((y = (d = f.config) == null ? void 0 : d.responsive) == null ? void 0 : y.deviceType) === "desktop";
747
764
  })[0]) == null ? void 0 : p.sections) || [], i = o.slice(0, 1), l = o.slice(1, o.length), c = a.slice(0, 1), s = a.slice(1, a.length);
748
- return /* @__PURE__ */ yt(Mr, { children: [
749
- /* @__PURE__ */ yt("div", { className: n, children: [
750
- /* @__PURE__ */ L("div", { className: he["responsive-mobile-flex"], children: /* @__PURE__ */ L(r, { data: i ?? [] }) }),
751
- /* @__PURE__ */ L("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ L(r, { data: c ?? [] }) })
765
+ return /* @__PURE__ */ gt(Xr, { children: [
766
+ /* @__PURE__ */ gt("div", { className: n, children: [
767
+ /* @__PURE__ */ F("div", { className: he["responsive-mobile-flex"], children: /* @__PURE__ */ F(r, { data: i ?? [] }) }),
768
+ /* @__PURE__ */ F("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ F(r, { data: c ?? [] }) })
752
769
  ] }),
753
770
  t,
754
- /* @__PURE__ */ L("div", { className: he["responsive-mobile-flex"], children: /* @__PURE__ */ L(r, { data: l ?? [] }) }),
755
- /* @__PURE__ */ L("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ L(r, { data: s ?? [] }) }),
756
- /* @__PURE__ */ L(Ur.Divider, {})
771
+ /* @__PURE__ */ F("div", { className: he["responsive-mobile-flex"], children: /* @__PURE__ */ F(r, { data: l ?? [] }) }),
772
+ /* @__PURE__ */ F("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ F(r, { data: s ?? [] }) }),
773
+ /* @__PURE__ */ F(Wr.Divider, {})
757
774
  ] });
758
775
  };
759
776
  var re = TypeError;
760
- const bn = {}, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
777
+ const Ln = {}, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
761
778
  __proto__: null,
762
- default: bn
763
- }, Symbol.toStringTag, { value: "Module" })), Tn = /* @__PURE__ */ un(In);
764
- var ot = typeof Map == "function" && Map.prototype, De = Object.getOwnPropertyDescriptor && ot ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ae = ot && De && typeof De.get == "function" ? De.get : null, mt = ot && Map.prototype.forEach, at = typeof Set == "function" && Set.prototype, $e = Object.getOwnPropertyDescriptor && at ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Re = at && $e && typeof $e.get == "function" ? $e.get : null, Et = at && Set.prototype.forEach, wn = typeof WeakMap == "function" && WeakMap.prototype, le = wn ? WeakMap.prototype.has : null, Cn = typeof WeakSet == "function" && WeakSet.prototype, ce = Cn ? WeakSet.prototype.has : null, Nn = typeof WeakRef == "function" && WeakRef.prototype, _t = Nn ? WeakRef.prototype.deref : null, Dn = Boolean.prototype.valueOf, $n = Object.prototype.toString, Fn = Function.prototype.toString, xn = String.prototype.match, it = String.prototype.slice, B = String.prototype.replace, Ln = String.prototype.toUpperCase, St = String.prototype.toLowerCase, Kt = RegExp.prototype.test, At = Array.prototype.concat, $ = Array.prototype.join, Mn = Array.prototype.slice, Rt = Math.floor, Qe = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Fe = Object.getOwnPropertySymbols, Je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ee = typeof Symbol == "function" && typeof Symbol.iterator == "object", ue = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ee || !0) ? Symbol.toStringTag : null, Yt = Object.prototype.propertyIsEnumerable, Pt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
779
+ default: Ln
780
+ }, Symbol.toStringTag, { value: "Module" })), Gn = /* @__PURE__ */ En(Un);
781
+ var lt = typeof Map == "function" && Map.prototype, Me = Object.getOwnPropertyDescriptor && lt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Oe = lt && Me && typeof Me.get == "function" ? Me.get : null, At = lt && Map.prototype.forEach, ct = typeof Set == "function" && Set.prototype, Fe = Object.getOwnPropertyDescriptor && ct ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Re = ct && Fe && typeof Fe.get == "function" ? Fe.get : null, Ot = ct && Set.prototype.forEach, Bn = typeof WeakMap == "function" && WeakMap.prototype, le = Bn ? WeakMap.prototype.has : null, Hn = typeof WeakSet == "function" && WeakSet.prototype, ce = Hn ? WeakSet.prototype.has : null, jn = typeof WeakRef == "function" && WeakRef.prototype, Rt = jn ? WeakRef.prototype.deref : null, kn = Boolean.prototype.valueOf, Xn = Object.prototype.toString, Wn = Function.prototype.toString, Vn = String.prototype.match, ut = String.prototype.slice, B = String.prototype.replace, qn = String.prototype.toUpperCase, Pt = String.prototype.toLowerCase, er = RegExp.prototype.test, bt = Array.prototype.concat, $ = Array.prototype.join, zn = Array.prototype.slice, It = Math.floor, et = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Le = Object.getOwnPropertySymbols, tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ee = typeof Symbol == "function" && typeof Symbol.iterator == "object", ue = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ee || !0) ? Symbol.toStringTag : null, tr = Object.prototype.propertyIsEnumerable, wt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
765
782
  return t.__proto__;
766
783
  } : null);
767
- function Ot(t, e) {
768
- if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Kt.call(/e/, e))
784
+ function Tt(t, e) {
785
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || er.call(/e/, e))
769
786
  return e;
770
787
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
771
788
  if (typeof t == "number") {
772
- var n = t < 0 ? -Rt(-t) : Rt(t);
789
+ var n = t < 0 ? -It(-t) : It(t);
773
790
  if (n !== t) {
774
- var o = String(n), a = it.call(e, o.length + 1);
791
+ var o = String(n), a = ut.call(e, o.length + 1);
775
792
  return B.call(o, r, "$&_") + "." + B.call(B.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
776
793
  }
777
794
  }
778
795
  return B.call(e, r, "$&_");
779
796
  }
780
- var Ze = Tn, bt = Ze.custom, It = Zt(bt) ? bt : null, Qt = {
797
+ var rt = Gn, Ct = rt.custom, Nt = or(Ct) ? Ct : null, rr = {
781
798
  __proto__: null,
782
799
  double: '"',
783
800
  single: "'"
784
- }, Un = {
801
+ }, Kn = {
785
802
  __proto__: null,
786
803
  double: /(["\\])/g,
787
804
  single: /(['\\])/g
788
- }, be = function t(e, r, n, o) {
805
+ }, we = function t(e, r, n, o) {
789
806
  var a = r || {};
790
- if (M(a, "quoteStyle") && !M(Qt, a.quoteStyle))
807
+ if (L(a, "quoteStyle") && !L(rr, a.quoteStyle))
791
808
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
792
- if (M(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
809
+ if (L(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
793
810
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
794
- var i = M(a, "customInspect") ? a.customInspect : !0;
811
+ var i = L(a, "customInspect") ? a.customInspect : !0;
795
812
  if (typeof i != "boolean" && i !== "symbol")
796
813
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
797
- if (M(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
814
+ if (L(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
798
815
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
799
- if (M(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
816
+ if (L(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
800
817
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
801
818
  var l = a.numericSeparator;
802
819
  if (typeof e > "u")
@@ -806,168 +823,168 @@ var Ze = Tn, bt = Ze.custom, It = Zt(bt) ? bt : null, Qt = {
806
823
  if (typeof e == "boolean")
807
824
  return e ? "true" : "false";
808
825
  if (typeof e == "string")
809
- return tr(e, a);
826
+ return ir(e, a);
810
827
  if (typeof e == "number") {
811
828
  if (e === 0)
812
829
  return 1 / 0 / e > 0 ? "0" : "-0";
813
830
  var c = String(e);
814
- return l ? Ot(e, c) : c;
831
+ return l ? Tt(e, c) : c;
815
832
  }
816
833
  if (typeof e == "bigint") {
817
834
  var s = String(e) + "n";
818
- return l ? Ot(e, s) : s;
835
+ return l ? Tt(e, s) : s;
819
836
  }
820
837
  var u = typeof a.depth > "u" ? 5 : a.depth;
821
838
  if (typeof n > "u" && (n = 0), n >= u && u > 0 && typeof e == "object")
822
- return et(e) ? "[Array]" : "[Object]";
823
- var p = ro(a, n);
839
+ return nt(e) ? "[Array]" : "[Object]";
840
+ var p = yo(a, n);
824
841
  if (typeof o > "u")
825
842
  o = [];
826
- else if (er(o, e) >= 0)
843
+ else if (ar(o, e) >= 0)
827
844
  return "[Circular]";
828
- function f(R, C, P) {
829
- if (C && (o = Mn.call(o), o.push(C)), P) {
830
- var j = {
845
+ function f(O, C, R) {
846
+ if (C && (o = zn.call(o), o.push(C)), R) {
847
+ var X = {
831
848
  depth: a.depth
832
849
  };
833
- return M(a, "quoteStyle") && (j.quoteStyle = a.quoteStyle), t(R, j, n + 1, o);
850
+ return L(a, "quoteStyle") && (X.quoteStyle = a.quoteStyle), t(O, X, n + 1, o);
834
851
  }
835
- return t(R, a, n + 1, o);
852
+ return t(O, a, n + 1, o);
836
853
  }
837
- if (typeof e == "function" && !Tt(e)) {
838
- var v = qn(e), y = ge(e, f);
839
- return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + $.call(y, ", ") + " }" : "");
854
+ if (typeof e == "function" && !Dt(e)) {
855
+ var d = oo(e), y = ge(e, f);
856
+ return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " + $.call(y, ", ") + " }" : "");
840
857
  }
841
- if (Zt(e)) {
842
- var E = ee ? B.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Je.call(e);
843
- return typeof e == "object" && !ee ? ie(E) : E;
858
+ if (or(e)) {
859
+ var _ = ee ? B.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : tt.call(e);
860
+ return typeof e == "object" && !ee ? ie(_) : _;
844
861
  }
845
- if (Zn(e)) {
846
- for (var A = "<" + St.call(String(e.nodeName)), O = e.attributes || [], b = 0; b < O.length; b++)
847
- A += " " + O[b].name + "=" + Jt(Gn(O[b].value), "double", a);
848
- return A += ">", e.childNodes && e.childNodes.length && (A += "..."), A += "</" + St.call(String(e.nodeName)) + ">", A;
862
+ if (fo(e)) {
863
+ for (var A = "<" + Pt.call(String(e.nodeName)), P = e.attributes || [], b = 0; b < P.length; b++)
864
+ A += " " + P[b].name + "=" + nr(Yn(P[b].value), "double", a);
865
+ return A += ">", e.childNodes && e.childNodes.length && (A += "..."), A += "</" + Pt.call(String(e.nodeName)) + ">", A;
849
866
  }
850
- if (et(e)) {
867
+ if (nt(e)) {
851
868
  if (e.length === 0)
852
869
  return "[]";
853
870
  var h = ge(e, f);
854
- return p && !to(h) ? "[" + tt(h, p) + "]" : "[ " + $.call(h, ", ") + " ]";
871
+ return p && !po(h) ? "[" + ot(h, p) + "]" : "[ " + $.call(h, ", ") + " ]";
855
872
  }
856
- if (Hn(e)) {
873
+ if (Jn(e)) {
857
874
  var I = ge(e, f);
858
- return !("cause" in Error.prototype) && "cause" in e && !Yt.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(At.call("[cause]: " + f(e.cause), I), ", ") + " }" : I.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(I, ", ") + " }";
875
+ return !("cause" in Error.prototype) && "cause" in e && !tr.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(bt.call("[cause]: " + f(e.cause), I), ", ") + " }" : I.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(I, ", ") + " }";
859
876
  }
860
877
  if (typeof e == "object" && i) {
861
- if (It && typeof e[It] == "function" && Ze)
862
- return Ze(e, { depth: u - n });
878
+ if (Nt && typeof e[Nt] == "function" && rt)
879
+ return rt(e, { depth: u - n });
863
880
  if (i !== "symbol" && typeof e.inspect == "function")
864
881
  return e.inspect();
865
882
  }
866
- if (zn(e)) {
867
- var T = [];
868
- return mt && mt.call(e, function(R, C) {
869
- T.push(f(C, e, !0) + " => " + f(R, e));
870
- }), wt("Map", Ae.call(e), T, p);
883
+ if (ao(e)) {
884
+ var w = [];
885
+ return At && At.call(e, function(O, C) {
886
+ w.push(f(C, e, !0) + " => " + f(O, e));
887
+ }), $t("Map", Oe.call(e), w, p);
871
888
  }
872
- if (Qn(e)) {
889
+ if (co(e)) {
873
890
  var k = [];
874
- return Et && Et.call(e, function(R) {
875
- k.push(f(R, e));
876
- }), wt("Set", Re.call(e), k, p);
877
- }
878
- if (Kn(e))
879
- return xe("WeakMap");
880
- if (Jn(e))
881
- return xe("WeakSet");
882
- if (Yn(e))
883
- return xe("WeakRef");
884
- if (jn(e))
891
+ return Ot && Ot.call(e, function(O) {
892
+ k.push(f(O, e));
893
+ }), $t("Set", Re.call(e), k, p);
894
+ }
895
+ if (io(e))
896
+ return Ue("WeakMap");
897
+ if (uo(e))
898
+ return Ue("WeakSet");
899
+ if (lo(e))
900
+ return Ue("WeakRef");
901
+ if (eo(e))
885
902
  return ie(f(Number(e)));
886
- if (Wn(e))
887
- return ie(f(Qe.call(e)));
888
- if (Xn(e))
889
- return ie(Dn.call(e));
890
- if (kn(e))
903
+ if (ro(e))
904
+ return ie(f(et.call(e)));
905
+ if (to(e))
906
+ return ie(kn.call(e));
907
+ if (Zn(e))
891
908
  return ie(f(String(e)));
892
909
  if (typeof window < "u" && e === window)
893
910
  return "{ [object Window] }";
894
- if (typeof globalThis < "u" && e === globalThis || typeof ht < "u" && e === ht)
911
+ if (typeof globalThis < "u" && e === globalThis || typeof Et < "u" && e === Et)
895
912
  return "{ [object globalThis] }";
896
- if (!Bn(e) && !Tt(e)) {
897
- var U = ge(e, f), z = Pt ? Pt(e) === Object.prototype : e instanceof Object || e.constructor === Object, F = e instanceof Object ? "" : "null prototype", w = !z && ue && Object(e) === e && ue in e ? it.call(H(e), 8, -1) : F ? "Object" : "", K = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", G = K + (w || F ? "[" + $.call(At.call([], w || [], F || []), ": ") + "] " : "");
898
- return U.length === 0 ? G + "{}" : p ? G + "{" + tt(U, p) + "}" : G + "{ " + $.call(U, ", ") + " }";
913
+ if (!Qn(e) && !Dt(e)) {
914
+ var U = ge(e, f), z = wt ? wt(e) === Object.prototype : e instanceof Object || e.constructor === Object, x = e instanceof Object ? "" : "null prototype", T = !z && ue && Object(e) === e && ue in e ? ut.call(j(e), 8, -1) : x ? "Object" : "", K = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", G = K + (T || x ? "[" + $.call(bt.call([], T || [], x || []), ": ") + "] " : "");
915
+ return U.length === 0 ? G + "{}" : p ? G + "{" + ot(U, p) + "}" : G + "{ " + $.call(U, ", ") + " }";
899
916
  }
900
917
  return String(e);
901
918
  };
902
- function Jt(t, e, r) {
903
- var n = r.quoteStyle || e, o = Qt[n];
919
+ function nr(t, e, r) {
920
+ var n = r.quoteStyle || e, o = rr[n];
904
921
  return o + t + o;
905
922
  }
906
- function Gn(t) {
923
+ function Yn(t) {
907
924
  return B.call(String(t), /"/g, "&quot;");
908
925
  }
909
926
  function q(t) {
910
927
  return !ue || !(typeof t == "object" && (ue in t || typeof t[ue] < "u"));
911
928
  }
912
- function et(t) {
913
- return H(t) === "[object Array]" && q(t);
929
+ function nt(t) {
930
+ return j(t) === "[object Array]" && q(t);
914
931
  }
915
- function Bn(t) {
916
- return H(t) === "[object Date]" && q(t);
932
+ function Qn(t) {
933
+ return j(t) === "[object Date]" && q(t);
917
934
  }
918
- function Tt(t) {
919
- return H(t) === "[object RegExp]" && q(t);
935
+ function Dt(t) {
936
+ return j(t) === "[object RegExp]" && q(t);
920
937
  }
921
- function Hn(t) {
922
- return H(t) === "[object Error]" && q(t);
938
+ function Jn(t) {
939
+ return j(t) === "[object Error]" && q(t);
923
940
  }
924
- function kn(t) {
925
- return H(t) === "[object String]" && q(t);
941
+ function Zn(t) {
942
+ return j(t) === "[object String]" && q(t);
926
943
  }
927
- function jn(t) {
928
- return H(t) === "[object Number]" && q(t);
944
+ function eo(t) {
945
+ return j(t) === "[object Number]" && q(t);
929
946
  }
930
- function Xn(t) {
931
- return H(t) === "[object Boolean]" && q(t);
947
+ function to(t) {
948
+ return j(t) === "[object Boolean]" && q(t);
932
949
  }
933
- function Zt(t) {
950
+ function or(t) {
934
951
  if (ee)
935
952
  return t && typeof t == "object" && t instanceof Symbol;
936
953
  if (typeof t == "symbol")
937
954
  return !0;
938
- if (!t || typeof t != "object" || !Je)
955
+ if (!t || typeof t != "object" || !tt)
939
956
  return !1;
940
957
  try {
941
- return Je.call(t), !0;
958
+ return tt.call(t), !0;
942
959
  } catch {
943
960
  }
944
961
  return !1;
945
962
  }
946
- function Wn(t) {
947
- if (!t || typeof t != "object" || !Qe)
963
+ function ro(t) {
964
+ if (!t || typeof t != "object" || !et)
948
965
  return !1;
949
966
  try {
950
- return Qe.call(t), !0;
967
+ return et.call(t), !0;
951
968
  } catch {
952
969
  }
953
970
  return !1;
954
971
  }
955
- var Vn = Object.prototype.hasOwnProperty || function(t) {
972
+ var no = Object.prototype.hasOwnProperty || function(t) {
956
973
  return t in this;
957
974
  };
958
- function M(t, e) {
959
- return Vn.call(t, e);
975
+ function L(t, e) {
976
+ return no.call(t, e);
960
977
  }
961
- function H(t) {
962
- return $n.call(t);
978
+ function j(t) {
979
+ return Xn.call(t);
963
980
  }
964
- function qn(t) {
981
+ function oo(t) {
965
982
  if (t.name)
966
983
  return t.name;
967
- var e = xn.call(Fn.call(t), /^function\s*([\w$]+)/);
984
+ var e = Vn.call(Wn.call(t), /^function\s*([\w$]+)/);
968
985
  return e ? e[1] : null;
969
986
  }
970
- function er(t, e) {
987
+ function ar(t, e) {
971
988
  if (t.indexOf)
972
989
  return t.indexOf(e);
973
990
  for (var r = 0, n = t.length; r < n; r++)
@@ -975,11 +992,11 @@ function er(t, e) {
975
992
  return r;
976
993
  return -1;
977
994
  }
978
- function zn(t) {
979
- if (!Ae || !t || typeof t != "object")
995
+ function ao(t) {
996
+ if (!Oe || !t || typeof t != "object")
980
997
  return !1;
981
998
  try {
982
- Ae.call(t);
999
+ Oe.call(t);
983
1000
  try {
984
1001
  Re.call(t);
985
1002
  } catch {
@@ -990,7 +1007,7 @@ function zn(t) {
990
1007
  }
991
1008
  return !1;
992
1009
  }
993
- function Kn(t) {
1010
+ function io(t) {
994
1011
  if (!le || !t || typeof t != "object")
995
1012
  return !1;
996
1013
  try {
@@ -1005,22 +1022,22 @@ function Kn(t) {
1005
1022
  }
1006
1023
  return !1;
1007
1024
  }
1008
- function Yn(t) {
1009
- if (!_t || !t || typeof t != "object")
1025
+ function lo(t) {
1026
+ if (!Rt || !t || typeof t != "object")
1010
1027
  return !1;
1011
1028
  try {
1012
- return _t.call(t), !0;
1029
+ return Rt.call(t), !0;
1013
1030
  } catch {
1014
1031
  }
1015
1032
  return !1;
1016
1033
  }
1017
- function Qn(t) {
1034
+ function co(t) {
1018
1035
  if (!Re || !t || typeof t != "object")
1019
1036
  return !1;
1020
1037
  try {
1021
1038
  Re.call(t);
1022
1039
  try {
1023
- Ae.call(t);
1040
+ Oe.call(t);
1024
1041
  } catch {
1025
1042
  return !0;
1026
1043
  }
@@ -1029,7 +1046,7 @@ function Qn(t) {
1029
1046
  }
1030
1047
  return !1;
1031
1048
  }
1032
- function Jn(t) {
1049
+ function uo(t) {
1033
1050
  if (!ce || !t || typeof t != "object")
1034
1051
  return !1;
1035
1052
  try {
@@ -1044,20 +1061,20 @@ function Jn(t) {
1044
1061
  }
1045
1062
  return !1;
1046
1063
  }
1047
- function Zn(t) {
1064
+ function fo(t) {
1048
1065
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
1049
1066
  }
1050
- function tr(t, e) {
1067
+ function ir(t, e) {
1051
1068
  if (t.length > e.maxStringLength) {
1052
1069
  var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
1053
- return tr(it.call(t, 0, e.maxStringLength), e) + n;
1070
+ return ir(ut.call(t, 0, e.maxStringLength), e) + n;
1054
1071
  }
1055
- var o = Un[e.quoteStyle || "single"];
1072
+ var o = Kn[e.quoteStyle || "single"];
1056
1073
  o.lastIndex = 0;
1057
- var a = B.call(B.call(t, o, "\\$1"), /[\x00-\x1f]/g, eo);
1058
- return Jt(a, "single", e);
1074
+ var a = B.call(B.call(t, o, "\\$1"), /[\x00-\x1f]/g, so);
1075
+ return nr(a, "single", e);
1059
1076
  }
1060
- function eo(t) {
1077
+ function so(t) {
1061
1078
  var e = t.charCodeAt(0), r = {
1062
1079
  8: "b",
1063
1080
  9: "t",
@@ -1065,26 +1082,26 @@ function eo(t) {
1065
1082
  12: "f",
1066
1083
  13: "r"
1067
1084
  }[e];
1068
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Ln.call(e.toString(16));
1085
+ return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + qn.call(e.toString(16));
1069
1086
  }
1070
1087
  function ie(t) {
1071
1088
  return "Object(" + t + ")";
1072
1089
  }
1073
- function xe(t) {
1090
+ function Ue(t) {
1074
1091
  return t + " { ? }";
1075
1092
  }
1076
- function wt(t, e, r, n) {
1077
- var o = n ? tt(r, n) : $.call(r, ", ");
1093
+ function $t(t, e, r, n) {
1094
+ var o = n ? ot(r, n) : $.call(r, ", ");
1078
1095
  return t + " (" + e + ") {" + o + "}";
1079
1096
  }
1080
- function to(t) {
1097
+ function po(t) {
1081
1098
  for (var e = 0; e < t.length; e++)
1082
- if (er(t[e], `
1099
+ if (ar(t[e], `
1083
1100
  `) >= 0)
1084
1101
  return !1;
1085
1102
  return !0;
1086
1103
  }
1087
- function ro(t, e) {
1104
+ function yo(t, e) {
1088
1105
  var r;
1089
1106
  if (t.indent === " ")
1090
1107
  r = " ";
@@ -1097,7 +1114,7 @@ function ro(t, e) {
1097
1114
  prev: $.call(Array(e + 1), r)
1098
1115
  };
1099
1116
  }
1100
- function tt(t, e) {
1117
+ function ot(t, e) {
1101
1118
  if (t.length === 0)
1102
1119
  return "";
1103
1120
  var r = `
@@ -1106,37 +1123,37 @@ function tt(t, e) {
1106
1123
  ` + e.prev;
1107
1124
  }
1108
1125
  function ge(t, e) {
1109
- var r = et(t), n = [];
1126
+ var r = nt(t), n = [];
1110
1127
  if (r) {
1111
1128
  n.length = t.length;
1112
1129
  for (var o = 0; o < t.length; o++)
1113
- n[o] = M(t, o) ? e(t[o], t) : "";
1130
+ n[o] = L(t, o) ? e(t[o], t) : "";
1114
1131
  }
1115
- var a = typeof Fe == "function" ? Fe(t) : [], i;
1132
+ var a = typeof Le == "function" ? Le(t) : [], i;
1116
1133
  if (ee) {
1117
1134
  i = {};
1118
1135
  for (var l = 0; l < a.length; l++)
1119
1136
  i["$" + a[l]] = a[l];
1120
1137
  }
1121
1138
  for (var c in t)
1122
- M(t, c) && (r && String(Number(c)) === c && c < t.length || ee && i["$" + c] instanceof Symbol || (Kt.call(/[^\w$]/, c) ? n.push(e(c, t) + ": " + e(t[c], t)) : n.push(c + ": " + e(t[c], t))));
1123
- if (typeof Fe == "function")
1139
+ L(t, c) && (r && String(Number(c)) === c && c < t.length || ee && i["$" + c] instanceof Symbol || (er.call(/[^\w$]/, c) ? n.push(e(c, t) + ": " + e(t[c], t)) : n.push(c + ": " + e(t[c], t))));
1140
+ if (typeof Le == "function")
1124
1141
  for (var s = 0; s < a.length; s++)
1125
- Yt.call(t, a[s]) && n.push("[" + e(a[s]) + "]: " + e(t[a[s]], t));
1142
+ tr.call(t, a[s]) && n.push("[" + e(a[s]) + "]: " + e(t[a[s]], t));
1126
1143
  return n;
1127
1144
  }
1128
- var no = be, oo = re, Ie = function(t, e, r) {
1145
+ var vo = we, ho = re, Te = function(t, e, r) {
1129
1146
  for (var n = t, o; (o = n.next) != null; n = o)
1130
1147
  if (o.key === e)
1131
1148
  return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
1132
1149
  t.next, t.next = o), o;
1133
- }, ao = function(t, e) {
1150
+ }, go = function(t, e) {
1134
1151
  if (t) {
1135
- var r = Ie(t, e);
1152
+ var r = Te(t, e);
1136
1153
  return r && r.value;
1137
1154
  }
1138
- }, io = function(t, e, r) {
1139
- var n = Ie(t, e);
1155
+ }, mo = function(t, e, r) {
1156
+ var n = Te(t, e);
1140
1157
  n ? n.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
1141
1158
  {
1142
1159
  // eslint-disable-line no-param-reassign, no-extra-parens
@@ -1144,31 +1161,31 @@ var no = be, oo = re, Ie = function(t, e, r) {
1144
1161
  next: t.next,
1145
1162
  value: r
1146
1163
  };
1147
- }, lo = function(t, e) {
1148
- return t ? !!Ie(t, e) : !1;
1149
- }, co = function(t, e) {
1164
+ }, _o = function(t, e) {
1165
+ return t ? !!Te(t, e) : !1;
1166
+ }, Eo = function(t, e) {
1150
1167
  if (t)
1151
- return Ie(t, e, !0);
1152
- }, uo = function() {
1168
+ return Te(t, e, !0);
1169
+ }, So = function() {
1153
1170
  var e, r = {
1154
1171
  assert: function(n) {
1155
1172
  if (!r.has(n))
1156
- throw new oo("Side channel does not contain " + no(n));
1173
+ throw new ho("Side channel does not contain " + vo(n));
1157
1174
  },
1158
1175
  delete: function(n) {
1159
- var o = e && e.next, a = co(e, n);
1176
+ var o = e && e.next, a = Eo(e, n);
1160
1177
  return a && o && o === a && (e = void 0), !!a;
1161
1178
  },
1162
1179
  get: function(n) {
1163
- return ao(e, n);
1180
+ return go(e, n);
1164
1181
  },
1165
1182
  has: function(n) {
1166
- return lo(e, n);
1183
+ return _o(e, n);
1167
1184
  },
1168
1185
  set: function(n, o) {
1169
1186
  e || (e = {
1170
1187
  next: void 0
1171
- }), io(
1188
+ }), mo(
1172
1189
  /** @type {NonNullable<typeof $o>} */
1173
1190
  e,
1174
1191
  n,
@@ -1177,27 +1194,27 @@ var no = be, oo = re, Ie = function(t, e, r) {
1177
1194
  }
1178
1195
  };
1179
1196
  return r;
1180
- }, rr = Object, fo = Error, so = EvalError, po = RangeError, yo = ReferenceError, vo = SyntaxError, ho = URIError, go = Math.abs, mo = Math.floor, Eo = Math.max, _o = Math.min, So = Math.pow, Ao = Math.round, Ro = Number.isNaN || function(e) {
1197
+ }, lr = Object, Ao = Error, Oo = EvalError, Ro = RangeError, Po = ReferenceError, bo = SyntaxError, Io = URIError, wo = Math.abs, To = Math.floor, Co = Math.max, No = Math.min, Do = Math.pow, $o = Math.round, xo = Number.isNaN || function(e) {
1181
1198
  return e !== e;
1182
- }, Po = Ro, Oo = function(e) {
1183
- return Po(e) || e === 0 ? e : e < 0 ? -1 : 1;
1184
- }, bo = Object.getOwnPropertyDescriptor, Ee = bo;
1185
- if (Ee)
1199
+ }, Mo = xo, Fo = function(e) {
1200
+ return Mo(e) || e === 0 ? e : e < 0 ? -1 : 1;
1201
+ }, Lo = Object.getOwnPropertyDescriptor, _e = Lo;
1202
+ if (_e)
1186
1203
  try {
1187
- Ee([], "length");
1204
+ _e([], "length");
1188
1205
  } catch {
1189
- Ee = null;
1206
+ _e = null;
1190
1207
  }
1191
- var nr = Ee, _e = Object.defineProperty || !1;
1192
- if (_e)
1208
+ var cr = _e, Ee = Object.defineProperty || !1;
1209
+ if (Ee)
1193
1210
  try {
1194
- _e({}, "a", { value: 1 });
1211
+ Ee({}, "a", { value: 1 });
1195
1212
  } catch {
1196
- _e = !1;
1213
+ Ee = !1;
1197
1214
  }
1198
- var Io = _e, Le, Ct;
1199
- function To() {
1200
- return Ct || (Ct = 1, Le = function() {
1215
+ var Uo = Ee, Ge, xt;
1216
+ function Go() {
1217
+ return xt || (xt = 1, Ge = function() {
1201
1218
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1202
1219
  return !1;
1203
1220
  if (typeof Symbol.iterator == "symbol")
@@ -1223,79 +1240,79 @@ function To() {
1223
1240
  return !1;
1224
1241
  }
1225
1242
  return !0;
1226
- }), Le;
1243
+ }), Ge;
1227
1244
  }
1228
- var Me, Nt;
1229
- function wo() {
1230
- if (Nt) return Me;
1231
- Nt = 1;
1232
- var t = typeof Symbol < "u" && Symbol, e = To();
1233
- return Me = function() {
1245
+ var Be, Mt;
1246
+ function Bo() {
1247
+ if (Mt) return Be;
1248
+ Mt = 1;
1249
+ var t = typeof Symbol < "u" && Symbol, e = Go();
1250
+ return Be = function() {
1234
1251
  return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
1235
- }, Me;
1252
+ }, Be;
1236
1253
  }
1237
- var Ue, Dt;
1238
- function or() {
1239
- return Dt || (Dt = 1, Ue = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ue;
1254
+ var He, Ft;
1255
+ function ur() {
1256
+ return Ft || (Ft = 1, He = typeof Reflect < "u" && Reflect.getPrototypeOf || null), He;
1240
1257
  }
1241
- var Ge, $t;
1242
- function ar() {
1243
- if ($t) return Ge;
1244
- $t = 1;
1245
- var t = rr;
1246
- return Ge = t.getPrototypeOf || null, Ge;
1258
+ var je, Lt;
1259
+ function fr() {
1260
+ if (Lt) return je;
1261
+ Lt = 1;
1262
+ var t = lr;
1263
+ return je = t.getPrototypeOf || null, je;
1247
1264
  }
1248
- var Co = "Function.prototype.bind called on incompatible ", No = Object.prototype.toString, Do = Math.max, $o = "[object Function]", Ft = function(e, r) {
1265
+ var Ho = "Function.prototype.bind called on incompatible ", jo = Object.prototype.toString, ko = Math.max, Xo = "[object Function]", Ut = function(e, r) {
1249
1266
  for (var n = [], o = 0; o < e.length; o += 1)
1250
1267
  n[o] = e[o];
1251
1268
  for (var a = 0; a < r.length; a += 1)
1252
1269
  n[a + e.length] = r[a];
1253
1270
  return n;
1254
- }, Fo = function(e, r) {
1271
+ }, Wo = function(e, r) {
1255
1272
  for (var n = [], o = r, a = 0; o < e.length; o += 1, a += 1)
1256
1273
  n[a] = e[o];
1257
1274
  return n;
1258
- }, xo = function(t, e) {
1275
+ }, Vo = function(t, e) {
1259
1276
  for (var r = "", n = 0; n < t.length; n += 1)
1260
1277
  r += t[n], n + 1 < t.length && (r += e);
1261
1278
  return r;
1262
- }, Lo = function(e) {
1279
+ }, qo = function(e) {
1263
1280
  var r = this;
1264
- if (typeof r != "function" || No.apply(r) !== $o)
1265
- throw new TypeError(Co + r);
1266
- for (var n = Fo(arguments, 1), o, a = function() {
1281
+ if (typeof r != "function" || jo.apply(r) !== Xo)
1282
+ throw new TypeError(Ho + r);
1283
+ for (var n = Wo(arguments, 1), o, a = function() {
1267
1284
  if (this instanceof o) {
1268
1285
  var u = r.apply(
1269
1286
  this,
1270
- Ft(n, arguments)
1287
+ Ut(n, arguments)
1271
1288
  );
1272
1289
  return Object(u) === u ? u : this;
1273
1290
  }
1274
1291
  return r.apply(
1275
1292
  e,
1276
- Ft(n, arguments)
1293
+ Ut(n, arguments)
1277
1294
  );
1278
- }, i = Do(0, r.length - n.length), l = [], c = 0; c < i; c++)
1295
+ }, i = ko(0, r.length - n.length), l = [], c = 0; c < i; c++)
1279
1296
  l[c] = "$" + c;
1280
- if (o = Function("binder", "return function (" + xo(l, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
1297
+ if (o = Function("binder", "return function (" + Vo(l, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
1281
1298
  var s = function() {
1282
1299
  };
1283
1300
  s.prototype = r.prototype, o.prototype = new s(), s.prototype = null;
1284
1301
  }
1285
1302
  return o;
1286
- }, Mo = Lo, Te = Function.prototype.bind || Mo, lt = Function.prototype.call, Be, xt;
1287
- function ir() {
1288
- return xt || (xt = 1, Be = Function.prototype.apply), Be;
1303
+ }, zo = qo, Ce = Function.prototype.bind || zo, ft = Function.prototype.call, ke, Gt;
1304
+ function sr() {
1305
+ return Gt || (Gt = 1, ke = Function.prototype.apply), ke;
1289
1306
  }
1290
- var Uo = typeof Reflect < "u" && Reflect && Reflect.apply, Go = Te, Bo = ir(), Ho = lt, ko = Uo, jo = ko || Go.call(Ho, Bo), Xo = Te, Wo = re, Vo = lt, qo = jo, lr = function(e) {
1307
+ var Ko = typeof Reflect < "u" && Reflect && Reflect.apply, Yo = Ce, Qo = sr(), Jo = ft, Zo = Ko, ea = Zo || Yo.call(Jo, Qo), ta = Ce, ra = re, na = ft, oa = ea, pr = function(e) {
1291
1308
  if (e.length < 1 || typeof e[0] != "function")
1292
- throw new Wo("a function is required");
1293
- return qo(Xo, Vo, e);
1294
- }, He, Lt;
1295
- function zo() {
1296
- if (Lt) return He;
1297
- Lt = 1;
1298
- var t = lr, e = nr, r;
1309
+ throw new ra("a function is required");
1310
+ return oa(ta, na, e);
1311
+ }, Xe, Bt;
1312
+ function aa() {
1313
+ if (Bt) return Xe;
1314
+ Bt = 1;
1315
+ var t = pr, e = cr, r;
1299
1316
  try {
1300
1317
  r = /** @type {{ __proto__?: typeof Array.prototype }} */
1301
1318
  [].__proto__ === Array.prototype;
@@ -1308,19 +1325,19 @@ function zo() {
1308
1325
  /** @type {keyof typeof Object.prototype} */
1309
1326
  "__proto__"
1310
1327
  ), o = Object, a = o.getPrototypeOf;
1311
- return He = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
1328
+ return Xe = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
1312
1329
  /** @type {import('./get')} */
1313
1330
  function(l) {
1314
1331
  return a(l == null ? l : o(l));
1315
1332
  }
1316
- ) : !1, He;
1333
+ ) : !1, Xe;
1317
1334
  }
1318
- var ke, Mt;
1319
- function Ko() {
1320
- if (Mt) return ke;
1321
- Mt = 1;
1322
- var t = or(), e = ar(), r = zo();
1323
- return ke = t ? function(o) {
1335
+ var We, Ht;
1336
+ function ia() {
1337
+ if (Ht) return We;
1338
+ Ht = 1;
1339
+ var t = ur(), e = fr(), r = aa();
1340
+ return We = t ? function(o) {
1324
1341
  return t(o);
1325
1342
  } : e ? function(o) {
1326
1343
  if (!o || typeof o != "object" && typeof o != "function")
@@ -1328,131 +1345,131 @@ function Ko() {
1328
1345
  return e(o);
1329
1346
  } : r ? function(o) {
1330
1347
  return r(o);
1331
- } : null, ke;
1348
+ } : null, We;
1332
1349
  }
1333
- var je, Ut;
1334
- function Yo() {
1335
- if (Ut) return je;
1336
- Ut = 1;
1337
- var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = Te;
1338
- return je = r.call(t, e), je;
1350
+ var Ve, jt;
1351
+ function la() {
1352
+ if (jt) return Ve;
1353
+ jt = 1;
1354
+ var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = Ce;
1355
+ return Ve = r.call(t, e), Ve;
1339
1356
  }
1340
- var d, Qo = rr, Jo = fo, Zo = so, ea = po, ta = yo, te = vo, Z = re, ra = ho, na = go, oa = mo, aa = Eo, ia = _o, la = So, ca = Ao, ua = Oo, cr = Function, Xe = function(t) {
1357
+ var v, ca = lr, ua = Ao, fa = Oo, sa = Ro, pa = Po, te = bo, Z = re, ya = Io, da = wo, va = To, ha = Co, ga = No, ma = Do, _a = $o, Ea = Fo, yr = Function, qe = function(t) {
1341
1358
  try {
1342
- return cr('"use strict"; return (' + t + ").constructor;")();
1359
+ return yr('"use strict"; return (' + t + ").constructor;")();
1343
1360
  } catch {
1344
1361
  }
1345
- }, se = nr, fa = Io, We = function() {
1362
+ }, se = cr, Sa = Uo, ze = function() {
1346
1363
  throw new Z();
1347
- }, sa = se ? function() {
1364
+ }, Aa = se ? function() {
1348
1365
  try {
1349
- return arguments.callee, We;
1366
+ return arguments.callee, ze;
1350
1367
  } catch {
1351
1368
  try {
1352
1369
  return se(arguments, "callee").get;
1353
1370
  } catch {
1354
- return We;
1371
+ return ze;
1355
1372
  }
1356
1373
  }
1357
- }() : We, Y = wo()(), S = Ko(), pa = ar(), ya = or(), ur = ir(), pe = lt, J = {}, da = typeof Uint8Array > "u" || !S ? d : S(Uint8Array), W = {
1374
+ }() : ze, Y = Bo()(), S = ia(), Oa = fr(), Ra = ur(), dr = sr(), pe = ft, J = {}, Pa = typeof Uint8Array > "u" || !S ? v : S(Uint8Array), V = {
1358
1375
  __proto__: null,
1359
- "%AggregateError%": typeof AggregateError > "u" ? d : AggregateError,
1376
+ "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
1360
1377
  "%Array%": Array,
1361
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? d : ArrayBuffer,
1362
- "%ArrayIteratorPrototype%": Y && S ? S([][Symbol.iterator]()) : d,
1363
- "%AsyncFromSyncIteratorPrototype%": d,
1378
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
1379
+ "%ArrayIteratorPrototype%": Y && S ? S([][Symbol.iterator]()) : v,
1380
+ "%AsyncFromSyncIteratorPrototype%": v,
1364
1381
  "%AsyncFunction%": J,
1365
1382
  "%AsyncGenerator%": J,
1366
1383
  "%AsyncGeneratorFunction%": J,
1367
1384
  "%AsyncIteratorPrototype%": J,
1368
- "%Atomics%": typeof Atomics > "u" ? d : Atomics,
1369
- "%BigInt%": typeof BigInt > "u" ? d : BigInt,
1370
- "%BigInt64Array%": typeof BigInt64Array > "u" ? d : BigInt64Array,
1371
- "%BigUint64Array%": typeof BigUint64Array > "u" ? d : BigUint64Array,
1385
+ "%Atomics%": typeof Atomics > "u" ? v : Atomics,
1386
+ "%BigInt%": typeof BigInt > "u" ? v : BigInt,
1387
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
1388
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
1372
1389
  "%Boolean%": Boolean,
1373
- "%DataView%": typeof DataView > "u" ? d : DataView,
1390
+ "%DataView%": typeof DataView > "u" ? v : DataView,
1374
1391
  "%Date%": Date,
1375
1392
  "%decodeURI%": decodeURI,
1376
1393
  "%decodeURIComponent%": decodeURIComponent,
1377
1394
  "%encodeURI%": encodeURI,
1378
1395
  "%encodeURIComponent%": encodeURIComponent,
1379
- "%Error%": Jo,
1396
+ "%Error%": ua,
1380
1397
  "%eval%": eval,
1381
1398
  // eslint-disable-line no-eval
1382
- "%EvalError%": Zo,
1383
- "%Float16Array%": typeof Float16Array > "u" ? d : Float16Array,
1384
- "%Float32Array%": typeof Float32Array > "u" ? d : Float32Array,
1385
- "%Float64Array%": typeof Float64Array > "u" ? d : Float64Array,
1386
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? d : FinalizationRegistry,
1387
- "%Function%": cr,
1399
+ "%EvalError%": fa,
1400
+ "%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
1401
+ "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
1402
+ "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
1403
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
1404
+ "%Function%": yr,
1388
1405
  "%GeneratorFunction%": J,
1389
- "%Int8Array%": typeof Int8Array > "u" ? d : Int8Array,
1390
- "%Int16Array%": typeof Int16Array > "u" ? d : Int16Array,
1391
- "%Int32Array%": typeof Int32Array > "u" ? d : Int32Array,
1406
+ "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
1407
+ "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
1408
+ "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
1392
1409
  "%isFinite%": isFinite,
1393
1410
  "%isNaN%": isNaN,
1394
- "%IteratorPrototype%": Y && S ? S(S([][Symbol.iterator]())) : d,
1395
- "%JSON%": typeof JSON == "object" ? JSON : d,
1396
- "%Map%": typeof Map > "u" ? d : Map,
1397
- "%MapIteratorPrototype%": typeof Map > "u" || !Y || !S ? d : S((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1411
+ "%IteratorPrototype%": Y && S ? S(S([][Symbol.iterator]())) : v,
1412
+ "%JSON%": typeof JSON == "object" ? JSON : v,
1413
+ "%Map%": typeof Map > "u" ? v : Map,
1414
+ "%MapIteratorPrototype%": typeof Map > "u" || !Y || !S ? v : S((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1398
1415
  "%Math%": Math,
1399
1416
  "%Number%": Number,
1400
- "%Object%": Qo,
1417
+ "%Object%": ca,
1401
1418
  "%Object.getOwnPropertyDescriptor%": se,
1402
1419
  "%parseFloat%": parseFloat,
1403
1420
  "%parseInt%": parseInt,
1404
- "%Promise%": typeof Promise > "u" ? d : Promise,
1405
- "%Proxy%": typeof Proxy > "u" ? d : Proxy,
1406
- "%RangeError%": ea,
1407
- "%ReferenceError%": ta,
1408
- "%Reflect%": typeof Reflect > "u" ? d : Reflect,
1421
+ "%Promise%": typeof Promise > "u" ? v : Promise,
1422
+ "%Proxy%": typeof Proxy > "u" ? v : Proxy,
1423
+ "%RangeError%": sa,
1424
+ "%ReferenceError%": pa,
1425
+ "%Reflect%": typeof Reflect > "u" ? v : Reflect,
1409
1426
  "%RegExp%": RegExp,
1410
- "%Set%": typeof Set > "u" ? d : Set,
1411
- "%SetIteratorPrototype%": typeof Set > "u" || !Y || !S ? d : S((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1412
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? d : SharedArrayBuffer,
1427
+ "%Set%": typeof Set > "u" ? v : Set,
1428
+ "%SetIteratorPrototype%": typeof Set > "u" || !Y || !S ? v : S((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1429
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
1413
1430
  "%String%": String,
1414
- "%StringIteratorPrototype%": Y && S ? S(""[Symbol.iterator]()) : d,
1415
- "%Symbol%": Y ? Symbol : d,
1431
+ "%StringIteratorPrototype%": Y && S ? S(""[Symbol.iterator]()) : v,
1432
+ "%Symbol%": Y ? Symbol : v,
1416
1433
  "%SyntaxError%": te,
1417
- "%ThrowTypeError%": sa,
1418
- "%TypedArray%": da,
1434
+ "%ThrowTypeError%": Aa,
1435
+ "%TypedArray%": Pa,
1419
1436
  "%TypeError%": Z,
1420
- "%Uint8Array%": typeof Uint8Array > "u" ? d : Uint8Array,
1421
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? d : Uint8ClampedArray,
1422
- "%Uint16Array%": typeof Uint16Array > "u" ? d : Uint16Array,
1423
- "%Uint32Array%": typeof Uint32Array > "u" ? d : Uint32Array,
1424
- "%URIError%": ra,
1425
- "%WeakMap%": typeof WeakMap > "u" ? d : WeakMap,
1426
- "%WeakRef%": typeof WeakRef > "u" ? d : WeakRef,
1427
- "%WeakSet%": typeof WeakSet > "u" ? d : WeakSet,
1437
+ "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
1438
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
1439
+ "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
1440
+ "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
1441
+ "%URIError%": ya,
1442
+ "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
1443
+ "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
1444
+ "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
1428
1445
  "%Function.prototype.call%": pe,
1429
- "%Function.prototype.apply%": ur,
1430
- "%Object.defineProperty%": fa,
1431
- "%Object.getPrototypeOf%": pa,
1432
- "%Math.abs%": na,
1433
- "%Math.floor%": oa,
1434
- "%Math.max%": aa,
1435
- "%Math.min%": ia,
1436
- "%Math.pow%": la,
1437
- "%Math.round%": ca,
1438
- "%Math.sign%": ua,
1439
- "%Reflect.getPrototypeOf%": ya
1446
+ "%Function.prototype.apply%": dr,
1447
+ "%Object.defineProperty%": Sa,
1448
+ "%Object.getPrototypeOf%": Oa,
1449
+ "%Math.abs%": da,
1450
+ "%Math.floor%": va,
1451
+ "%Math.max%": ha,
1452
+ "%Math.min%": ga,
1453
+ "%Math.pow%": ma,
1454
+ "%Math.round%": _a,
1455
+ "%Math.sign%": Ea,
1456
+ "%Reflect.getPrototypeOf%": Ra
1440
1457
  };
1441
1458
  if (S)
1442
1459
  try {
1443
1460
  null.error;
1444
1461
  } catch (t) {
1445
- var va = S(S(t));
1446
- W["%Error.prototype%"] = va;
1462
+ var ba = S(S(t));
1463
+ V["%Error.prototype%"] = ba;
1447
1464
  }
1448
- var ha = function t(e) {
1465
+ var Ia = function t(e) {
1449
1466
  var r;
1450
1467
  if (e === "%AsyncFunction%")
1451
- r = Xe("async function () {}");
1468
+ r = qe("async function () {}");
1452
1469
  else if (e === "%GeneratorFunction%")
1453
- r = Xe("function* () {}");
1470
+ r = qe("function* () {}");
1454
1471
  else if (e === "%AsyncGeneratorFunction%")
1455
- r = Xe("async function* () {}");
1472
+ r = qe("async function* () {}");
1456
1473
  else if (e === "%AsyncGenerator%") {
1457
1474
  var n = t("%AsyncGeneratorFunction%");
1458
1475
  n && (r = n.prototype);
@@ -1460,8 +1477,8 @@ var ha = function t(e) {
1460
1477
  var o = t("%AsyncGenerator%");
1461
1478
  o && S && (r = S(o.prototype));
1462
1479
  }
1463
- return W[e] = r, r;
1464
- }, Gt = {
1480
+ return V[e] = r, r;
1481
+ }, kt = {
1465
1482
  __proto__: null,
1466
1483
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1467
1484
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -1514,21 +1531,21 @@ var ha = function t(e) {
1514
1531
  "%URIErrorPrototype%": ["URIError", "prototype"],
1515
1532
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1516
1533
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1517
- }, ye = Te, Pe = Yo(), ga = ye.call(pe, Array.prototype.concat), ma = ye.call(ur, Array.prototype.splice), Bt = ye.call(pe, String.prototype.replace), Oe = ye.call(pe, String.prototype.slice), Ea = ye.call(pe, RegExp.prototype.exec), _a = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Sa = /\\(\\)?/g, Aa = function(e) {
1518
- var r = Oe(e, 0, 1), n = Oe(e, -1);
1534
+ }, ye = Ce, Pe = la(), wa = ye.call(pe, Array.prototype.concat), Ta = ye.call(dr, Array.prototype.splice), Xt = ye.call(pe, String.prototype.replace), be = ye.call(pe, String.prototype.slice), Ca = ye.call(pe, RegExp.prototype.exec), Na = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Da = /\\(\\)?/g, $a = function(e) {
1535
+ var r = be(e, 0, 1), n = be(e, -1);
1519
1536
  if (r === "%" && n !== "%")
1520
1537
  throw new te("invalid intrinsic syntax, expected closing `%`");
1521
1538
  if (n === "%" && r !== "%")
1522
1539
  throw new te("invalid intrinsic syntax, expected opening `%`");
1523
1540
  var o = [];
1524
- return Bt(e, _a, function(a, i, l, c) {
1525
- o[o.length] = l ? Bt(c, Sa, "$1") : i || a;
1541
+ return Xt(e, Na, function(a, i, l, c) {
1542
+ o[o.length] = l ? Xt(c, Da, "$1") : i || a;
1526
1543
  }), o;
1527
- }, Ra = function(e, r) {
1544
+ }, xa = function(e, r) {
1528
1545
  var n = e, o;
1529
- if (Pe(Gt, n) && (o = Gt[n], n = "%" + o[0] + "%"), Pe(W, n)) {
1530
- var a = W[n];
1531
- if (a === J && (a = ha(n)), typeof a > "u" && !r)
1546
+ if (Pe(kt, n) && (o = kt[n], n = "%" + o[0] + "%"), Pe(V, n)) {
1547
+ var a = V[n];
1548
+ if (a === J && (a = Ia(n)), typeof a > "u" && !r)
1532
1549
  throw new Z("intrinsic " + e + " exists, but is not available. Please file an issue!");
1533
1550
  return {
1534
1551
  alias: o,
@@ -1537,21 +1554,21 @@ var ha = function t(e) {
1537
1554
  };
1538
1555
  }
1539
1556
  throw new te("intrinsic " + e + " does not exist!");
1540
- }, ct = function(e, r) {
1557
+ }, st = function(e, r) {
1541
1558
  if (typeof e != "string" || e.length === 0)
1542
1559
  throw new Z("intrinsic name must be a non-empty string");
1543
1560
  if (arguments.length > 1 && typeof r != "boolean")
1544
1561
  throw new Z('"allowMissing" argument must be a boolean');
1545
- if (Ea(/^%?[^%]*%?$/, e) === null)
1562
+ if (Ca(/^%?[^%]*%?$/, e) === null)
1546
1563
  throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1547
- var n = Aa(e), o = n.length > 0 ? n[0] : "", a = Ra("%" + o + "%", r), i = a.name, l = a.value, c = !1, s = a.alias;
1548
- s && (o = s[0], ma(n, ga([0, 1], s)));
1564
+ var n = $a(e), o = n.length > 0 ? n[0] : "", a = xa("%" + o + "%", r), i = a.name, l = a.value, c = !1, s = a.alias;
1565
+ s && (o = s[0], Ta(n, wa([0, 1], s)));
1549
1566
  for (var u = 1, p = !0; u < n.length; u += 1) {
1550
- var f = n[u], v = Oe(f, 0, 1), y = Oe(f, -1);
1551
- if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
1567
+ var f = n[u], d = be(f, 0, 1), y = be(f, -1);
1568
+ if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
1552
1569
  throw new te("property names with quotes must have matching quotes");
1553
- if ((f === "constructor" || !p) && (c = !0), o += "." + f, i = "%" + o + "%", Pe(W, i))
1554
- l = W[i];
1570
+ if ((f === "constructor" || !p) && (c = !0), o += "." + f, i = "%" + o + "%", Pe(V, i))
1571
+ l = V[i];
1555
1572
  else if (l != null) {
1556
1573
  if (!(f in l)) {
1557
1574
  if (!r)
@@ -1559,82 +1576,82 @@ var ha = function t(e) {
1559
1576
  return;
1560
1577
  }
1561
1578
  if (se && u + 1 >= n.length) {
1562
- var E = se(l, f);
1563
- p = !!E, p && "get" in E && !("originalValue" in E.get) ? l = E.get : l = l[f];
1579
+ var _ = se(l, f);
1580
+ p = !!_, p && "get" in _ && !("originalValue" in _.get) ? l = _.get : l = l[f];
1564
1581
  } else
1565
1582
  p = Pe(l, f), l = l[f];
1566
- p && !c && (W[i] = l);
1583
+ p && !c && (V[i] = l);
1567
1584
  }
1568
1585
  }
1569
1586
  return l;
1570
- }, fr = ct, sr = lr, Pa = sr([fr("%String.prototype.indexOf%")]), pr = function(e, r) {
1587
+ }, vr = st, hr = pr, Ma = hr([vr("%String.prototype.indexOf%")]), gr = function(e, r) {
1571
1588
  var n = (
1572
1589
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1573
- fr(e, !!r)
1590
+ vr(e, !!r)
1574
1591
  );
1575
- return typeof n == "function" && Pa(e, ".prototype.") > -1 ? sr(
1592
+ return typeof n == "function" && Ma(e, ".prototype.") > -1 ? hr(
1576
1593
  /** @type {const} */
1577
1594
  [n]
1578
1595
  ) : n;
1579
- }, Oa = ct, de = pr, ba = be, Ia = re, Ht = Oa("%Map%", !0), Ta = de("Map.prototype.get", !0), wa = de("Map.prototype.set", !0), Ca = de("Map.prototype.has", !0), Na = de("Map.prototype.delete", !0), Da = de("Map.prototype.size", !0), yr = !!Ht && /** @type {Exclude<import('.'), false>} */
1596
+ }, Fa = st, de = gr, La = we, Ua = re, Wt = Fa("%Map%", !0), Ga = de("Map.prototype.get", !0), Ba = de("Map.prototype.set", !0), Ha = de("Map.prototype.has", !0), ja = de("Map.prototype.delete", !0), ka = de("Map.prototype.size", !0), mr = !!Wt && /** @type {Exclude<import('.'), false>} */
1580
1597
  function() {
1581
1598
  var e, r = {
1582
1599
  assert: function(n) {
1583
1600
  if (!r.has(n))
1584
- throw new Ia("Side channel does not contain " + ba(n));
1601
+ throw new Ua("Side channel does not contain " + La(n));
1585
1602
  },
1586
1603
  delete: function(n) {
1587
1604
  if (e) {
1588
- var o = Na(e, n);
1589
- return Da(e) === 0 && (e = void 0), o;
1605
+ var o = ja(e, n);
1606
+ return ka(e) === 0 && (e = void 0), o;
1590
1607
  }
1591
1608
  return !1;
1592
1609
  },
1593
1610
  get: function(n) {
1594
1611
  if (e)
1595
- return Ta(e, n);
1612
+ return Ga(e, n);
1596
1613
  },
1597
1614
  has: function(n) {
1598
- return e ? Ca(e, n) : !1;
1615
+ return e ? Ha(e, n) : !1;
1599
1616
  },
1600
1617
  set: function(n, o) {
1601
- e || (e = new Ht()), wa(e, n, o);
1618
+ e || (e = new Wt()), Ba(e, n, o);
1602
1619
  }
1603
1620
  };
1604
1621
  return r;
1605
- }, $a = ct, we = pr, Fa = be, me = yr, xa = re, Q = $a("%WeakMap%", !0), La = we("WeakMap.prototype.get", !0), Ma = we("WeakMap.prototype.set", !0), Ua = we("WeakMap.prototype.has", !0), Ga = we("WeakMap.prototype.delete", !0), Ba = Q ? (
1622
+ }, Xa = st, Ne = gr, Wa = we, me = mr, Va = re, Q = Xa("%WeakMap%", !0), qa = Ne("WeakMap.prototype.get", !0), za = Ne("WeakMap.prototype.set", !0), Ka = Ne("WeakMap.prototype.has", !0), Ya = Ne("WeakMap.prototype.delete", !0), Qa = Q ? (
1606
1623
  /** @type {Exclude<import('.'), false>} */
1607
1624
  function() {
1608
1625
  var e, r, n = {
1609
1626
  assert: function(o) {
1610
1627
  if (!n.has(o))
1611
- throw new xa("Side channel does not contain " + Fa(o));
1628
+ throw new Va("Side channel does not contain " + Wa(o));
1612
1629
  },
1613
1630
  delete: function(o) {
1614
1631
  if (Q && o && (typeof o == "object" || typeof o == "function")) {
1615
1632
  if (e)
1616
- return Ga(e, o);
1633
+ return Ya(e, o);
1617
1634
  } else if (me && r)
1618
1635
  return r.delete(o);
1619
1636
  return !1;
1620
1637
  },
1621
1638
  get: function(o) {
1622
- return Q && o && (typeof o == "object" || typeof o == "function") && e ? La(e, o) : r && r.get(o);
1639
+ return Q && o && (typeof o == "object" || typeof o == "function") && e ? qa(e, o) : r && r.get(o);
1623
1640
  },
1624
1641
  has: function(o) {
1625
- return Q && o && (typeof o == "object" || typeof o == "function") && e ? Ua(e, o) : !!r && r.has(o);
1642
+ return Q && o && (typeof o == "object" || typeof o == "function") && e ? Ka(e, o) : !!r && r.has(o);
1626
1643
  },
1627
1644
  set: function(o, a) {
1628
- Q && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Q()), Ma(e, o, a)) : me && (r || (r = me()), r.set(o, a));
1645
+ Q && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Q()), za(e, o, a)) : me && (r || (r = me()), r.set(o, a));
1629
1646
  }
1630
1647
  };
1631
1648
  return n;
1632
1649
  }
1633
- ) : me, Ha = re, ka = be, ja = uo, Xa = yr, Wa = Ba, Va = Wa || Xa || ja, qa = function() {
1650
+ ) : me, Ja = re, Za = we, ei = So, ti = mr, ri = Qa, ni = ri || ti || ei, _r = function() {
1634
1651
  var e, r = {
1635
1652
  assert: function(n) {
1636
1653
  if (!r.has(n))
1637
- throw new Ha("Side channel does not contain " + ka(n));
1654
+ throw new Ja("Side channel does not contain " + Za(n));
1638
1655
  },
1639
1656
  delete: function(n) {
1640
1657
  return !!e && e.delete(n);
@@ -1646,72 +1663,91 @@ function() {
1646
1663
  return !!e && e.has(n);
1647
1664
  },
1648
1665
  set: function(n, o) {
1649
- e || (e = Va()), e.set(n, o);
1666
+ e || (e = ni()), e.set(n, o);
1650
1667
  }
1651
1668
  };
1652
1669
  return r;
1653
- }, za = String.prototype.replace, Ka = /%20/g, Ve = {
1670
+ }, oi = String.prototype.replace, ai = /%20/g, Ke = {
1654
1671
  RFC1738: "RFC1738",
1655
1672
  RFC3986: "RFC3986"
1656
- }, ut = {
1657
- default: Ve.RFC3986,
1673
+ }, pt = {
1674
+ default: Ke.RFC3986,
1658
1675
  formatters: {
1659
1676
  RFC1738: function(t) {
1660
- return za.call(t, Ka, "+");
1677
+ return oi.call(t, ai, "+");
1661
1678
  },
1662
1679
  RFC3986: function(t) {
1663
1680
  return String(t);
1664
1681
  }
1665
1682
  },
1666
- RFC1738: Ve.RFC1738,
1667
- RFC3986: Ve.RFC3986
1668
- }, Ya = ut, qe = Object.prototype.hasOwnProperty, X = Array.isArray, N = function() {
1683
+ RFC1738: Ke.RFC1738,
1684
+ RFC3986: Ke.RFC3986
1685
+ }, ii = pt, li = _r, Ye = Object.prototype.hasOwnProperty, W = Array.isArray, De = li(), Er = function(e, r) {
1686
+ return De.set(e, r), e;
1687
+ }, Ie = function(e) {
1688
+ return De.has(e);
1689
+ }, at = function(e) {
1690
+ return De.get(e);
1691
+ }, Sr = function(e, r) {
1692
+ De.set(e, r);
1693
+ }, N = function() {
1669
1694
  for (var t = [], e = 0; e < 256; ++e)
1670
1695
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1671
1696
  return t;
1672
- }(), Qa = function(e) {
1697
+ }(), ci = function(e) {
1673
1698
  for (; e.length > 1; ) {
1674
1699
  var r = e.pop(), n = r.obj[r.prop];
1675
- if (X(n)) {
1700
+ if (W(n)) {
1676
1701
  for (var o = [], a = 0; a < n.length; ++a)
1677
1702
  typeof n[a] < "u" && o.push(n[a]);
1678
1703
  r.obj[r.prop] = o;
1679
1704
  }
1680
1705
  }
1681
- }, dr = function(e, r) {
1706
+ }, yt = function(e, r) {
1682
1707
  for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
1683
1708
  typeof e[o] < "u" && (n[o] = e[o]);
1684
1709
  return n;
1685
- }, Ja = function t(e, r, n) {
1710
+ }, ui = function t(e, r, n) {
1686
1711
  if (!r)
1687
1712
  return e;
1688
1713
  if (typeof r != "object" && typeof r != "function") {
1689
- if (X(e))
1714
+ if (W(e))
1690
1715
  e.push(r);
1691
1716
  else if (e && typeof e == "object")
1692
- (n && (n.plainObjects || n.allowPrototypes) || !qe.call(Object.prototype, r)) && (e[r] = !0);
1717
+ if (Ie(e)) {
1718
+ var o = at(e) + 1;
1719
+ e[o] = r, Sr(e, o);
1720
+ } else (n && (n.plainObjects || n.allowPrototypes) || !Ye.call(Object.prototype, r)) && (e[r] = !0);
1693
1721
  else
1694
1722
  return [e, r];
1695
1723
  return e;
1696
1724
  }
1697
- if (!e || typeof e != "object")
1725
+ if (!e || typeof e != "object") {
1726
+ if (Ie(r)) {
1727
+ for (var a = Object.keys(r), i = n && n.plainObjects ? { __proto__: null, 0: e } : { 0: e }, l = 0; l < a.length; l++) {
1728
+ var c = parseInt(a[l], 10);
1729
+ i[c + 1] = r[a[l]];
1730
+ }
1731
+ return Er(i, at(r) + 1);
1732
+ }
1698
1733
  return [e].concat(r);
1699
- var o = e;
1700
- return X(e) && !X(r) && (o = dr(e, n)), X(e) && X(r) ? (r.forEach(function(a, i) {
1701
- if (qe.call(e, i)) {
1702
- var l = e[i];
1703
- l && typeof l == "object" && a && typeof a == "object" ? e[i] = t(l, a, n) : e.push(a);
1734
+ }
1735
+ var s = e;
1736
+ return W(e) && !W(r) && (s = yt(e, n)), W(e) && W(r) ? (r.forEach(function(u, p) {
1737
+ if (Ye.call(e, p)) {
1738
+ var f = e[p];
1739
+ f && typeof f == "object" && u && typeof u == "object" ? e[p] = t(f, u, n) : e.push(u);
1704
1740
  } else
1705
- e[i] = a;
1706
- }), e) : Object.keys(r).reduce(function(a, i) {
1707
- var l = r[i];
1708
- return qe.call(a, i) ? a[i] = t(a[i], l, n) : a[i] = l, a;
1709
- }, o);
1710
- }, Za = function(e, r) {
1741
+ e[p] = u;
1742
+ }), e) : Object.keys(r).reduce(function(u, p) {
1743
+ var f = r[p];
1744
+ return Ye.call(u, p) ? u[p] = t(u[p], f, n) : u[p] = f, u;
1745
+ }, s);
1746
+ }, fi = function(e, r) {
1711
1747
  return Object.keys(r).reduce(function(n, o) {
1712
1748
  return n[o] = r[o], n;
1713
1749
  }, e);
1714
- }, ei = function(t, e, r) {
1750
+ }, si = function(t, e, r) {
1715
1751
  var n = t.replace(/\+/g, " ");
1716
1752
  if (r === "iso-8859-1")
1717
1753
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -1720,18 +1756,18 @@ function() {
1720
1756
  } catch {
1721
1757
  return n;
1722
1758
  }
1723
- }, ze = 1024, ti = function(e, r, n, o, a) {
1759
+ }, Qe = 1024, pi = function(e, r, n, o, a) {
1724
1760
  if (e.length === 0)
1725
1761
  return e;
1726
1762
  var i = e;
1727
1763
  if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
1728
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
1729
- return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
1764
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(d) {
1765
+ return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
1730
1766
  });
1731
- for (var l = "", c = 0; c < i.length; c += ze) {
1732
- for (var s = i.length >= ze ? i.slice(c, c + ze) : i, u = [], p = 0; p < s.length; ++p) {
1767
+ for (var l = "", c = 0; c < i.length; c += Qe) {
1768
+ for (var s = i.length >= Qe ? i.slice(c, c + Qe) : i, u = [], p = 0; p < s.length; ++p) {
1733
1769
  var f = s.charCodeAt(p);
1734
- if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === Ya.RFC1738 && (f === 40 || f === 41)) {
1770
+ if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === ii.RFC1738 && (f === 40 || f === 41)) {
1735
1771
  u[u.length] = s.charAt(p);
1736
1772
  continue;
1737
1773
  }
@@ -1752,38 +1788,44 @@ function() {
1752
1788
  l += u.join("");
1753
1789
  }
1754
1790
  return l;
1755
- }, ri = function(e) {
1791
+ }, yi = function(e) {
1756
1792
  for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
1757
1793
  for (var a = r[o], i = a.obj[a.prop], l = Object.keys(i), c = 0; c < l.length; ++c) {
1758
1794
  var s = l[c], u = i[s];
1759
1795
  typeof u == "object" && u !== null && n.indexOf(u) === -1 && (r.push({ obj: i, prop: s }), n.push(u));
1760
1796
  }
1761
- return Qa(r), e;
1762
- }, ni = function(e) {
1797
+ return ci(r), e;
1798
+ }, di = function(e) {
1763
1799
  return Object.prototype.toString.call(e) === "[object RegExp]";
1764
- }, oi = function(e) {
1800
+ }, vi = function(e) {
1765
1801
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1766
- }, ai = function(e, r) {
1767
- return [].concat(e, r);
1768
- }, ii = function(e, r) {
1769
- if (X(e)) {
1802
+ }, hi = function(e, r, n, o) {
1803
+ if (Ie(e)) {
1804
+ var a = at(e) + 1;
1805
+ return e[a] = r, Sr(e, a), e;
1806
+ }
1807
+ var i = [].concat(e, r);
1808
+ return i.length > n ? Er(yt(i, { plainObjects: o }), i.length - 1) : i;
1809
+ }, gi = function(e, r) {
1810
+ if (W(e)) {
1770
1811
  for (var n = [], o = 0; o < e.length; o += 1)
1771
1812
  n.push(r(e[o]));
1772
1813
  return n;
1773
1814
  }
1774
1815
  return r(e);
1775
- }, vr = {
1776
- arrayToObject: dr,
1777
- assign: Za,
1778
- combine: ai,
1779
- compact: ri,
1780
- decode: ei,
1781
- encode: ti,
1782
- isBuffer: oi,
1783
- isRegExp: ni,
1784
- maybeMap: ii,
1785
- merge: Ja
1786
- }, hr = qa, Se = vr, fe = ut, li = Object.prototype.hasOwnProperty, gr = {
1816
+ }, Ar = {
1817
+ arrayToObject: yt,
1818
+ assign: fi,
1819
+ combine: hi,
1820
+ compact: yi,
1821
+ decode: si,
1822
+ encode: pi,
1823
+ isBuffer: vi,
1824
+ isOverflow: Ie,
1825
+ isRegExp: di,
1826
+ maybeMap: gi,
1827
+ merge: ui
1828
+ }, Or = _r, Se = Ar, fe = pt, mi = Object.prototype.hasOwnProperty, Rr = {
1787
1829
  brackets: function(e) {
1788
1830
  return e + "[]";
1789
1831
  },
@@ -1794,9 +1836,9 @@ function() {
1794
1836
  repeat: function(e) {
1795
1837
  return e;
1796
1838
  }
1797
- }, D = Array.isArray, ci = Array.prototype.push, mr = function(t, e) {
1798
- ci.apply(t, D(e) ? e : [e]);
1799
- }, ui = Date.prototype.toISOString, kt = fe.default, m = {
1839
+ }, D = Array.isArray, _i = Array.prototype.push, Pr = function(t, e) {
1840
+ _i.apply(t, D(e) ? e : [e]);
1841
+ }, Ei = Date.prototype.toISOString, Vt = fe.default, m = {
1800
1842
  addQueryPrefix: !1,
1801
1843
  allowDots: !1,
1802
1844
  allowEmptyArrays: !1,
@@ -1810,65 +1852,65 @@ function() {
1810
1852
  encoder: Se.encode,
1811
1853
  encodeValuesOnly: !1,
1812
1854
  filter: void 0,
1813
- format: kt,
1814
- formatter: fe.formatters[kt],
1855
+ format: Vt,
1856
+ formatter: fe.formatters[Vt],
1815
1857
  // deprecated
1816
1858
  indices: !1,
1817
1859
  serializeDate: function(e) {
1818
- return ui.call(e);
1860
+ return Ei.call(e);
1819
1861
  },
1820
1862
  skipNulls: !1,
1821
1863
  strictNullHandling: !1
1822
- }, fi = function(e) {
1864
+ }, Si = function(e) {
1823
1865
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1824
- }, Ke = {}, si = function t(e, r, n, o, a, i, l, c, s, u, p, f, v, y, E, A, O, b) {
1825
- for (var h = e, I = b, T = 0, k = !1; (I = I.get(Ke)) !== void 0 && !k; ) {
1866
+ }, Je = {}, Ai = function t(e, r, n, o, a, i, l, c, s, u, p, f, d, y, _, A, P, b) {
1867
+ for (var h = e, I = b, w = 0, k = !1; (I = I.get(Je)) !== void 0 && !k; ) {
1826
1868
  var U = I.get(e);
1827
- if (T += 1, typeof U < "u") {
1828
- if (U === T)
1869
+ if (w += 1, typeof U < "u") {
1870
+ if (U === w)
1829
1871
  throw new RangeError("Cyclic object value");
1830
1872
  k = !0;
1831
1873
  }
1832
- typeof I.get(Ke) > "u" && (T = 0);
1874
+ typeof I.get(Je) > "u" && (w = 0);
1833
1875
  }
1834
- if (typeof u == "function" ? h = u(r, h) : h instanceof Date ? h = v(h) : n === "comma" && D(h) && (h = Se.maybeMap(h, function(oe) {
1835
- return oe instanceof Date ? v(oe) : oe;
1876
+ if (typeof u == "function" ? h = u(r, h) : h instanceof Date ? h = d(h) : n === "comma" && D(h) && (h = Se.maybeMap(h, function(oe) {
1877
+ return oe instanceof Date ? d(oe) : oe;
1836
1878
  })), h === null) {
1837
1879
  if (i)
1838
- return s && !A ? s(r, m.encoder, O, "key", y) : r;
1880
+ return s && !A ? s(r, m.encoder, P, "key", y) : r;
1839
1881
  h = "";
1840
1882
  }
1841
- if (fi(h) || Se.isBuffer(h)) {
1883
+ if (Si(h) || Se.isBuffer(h)) {
1842
1884
  if (s) {
1843
- var z = A ? r : s(r, m.encoder, O, "key", y);
1844
- return [E(z) + "=" + E(s(h, m.encoder, O, "value", y))];
1885
+ var z = A ? r : s(r, m.encoder, P, "key", y);
1886
+ return [_(z) + "=" + _(s(h, m.encoder, P, "value", y))];
1845
1887
  }
1846
- return [E(r) + "=" + E(String(h))];
1888
+ return [_(r) + "=" + _(String(h))];
1847
1889
  }
1848
- var F = [];
1890
+ var x = [];
1849
1891
  if (typeof h > "u")
1850
- return F;
1851
- var w;
1892
+ return x;
1893
+ var T;
1852
1894
  if (n === "comma" && D(h))
1853
- A && s && (h = Se.maybeMap(h, s)), w = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
1895
+ A && s && (h = Se.maybeMap(h, s)), T = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
1854
1896
  else if (D(u))
1855
- w = u;
1897
+ T = u;
1856
1898
  else {
1857
1899
  var K = Object.keys(h);
1858
- w = p ? K.sort(p) : K;
1900
+ T = p ? K.sort(p) : K;
1859
1901
  }
1860
- var G = c ? String(r).replace(/\./g, "%2E") : String(r), R = o && D(h) && h.length === 1 ? G + "[]" : G;
1902
+ var G = c ? String(r).replace(/\./g, "%2E") : String(r), O = o && D(h) && h.length === 1 ? G + "[]" : G;
1861
1903
  if (a && D(h) && h.length === 0)
1862
- return R + "[]";
1863
- for (var C = 0; C < w.length; ++C) {
1864
- var P = w[C], j = typeof P == "object" && P && typeof P.value < "u" ? P.value : h[P];
1865
- if (!(l && j === null)) {
1866
- var ne = f && c ? String(P).replace(/\./g, "%2E") : String(P), Ne = D(h) ? typeof n == "function" ? n(R, ne) : R : R + (f ? "." + ne : "[" + ne + "]");
1867
- b.set(e, T);
1868
- var ve = hr();
1869
- ve.set(Ke, b), mr(F, t(
1870
- j,
1871
- Ne,
1904
+ return O + "[]";
1905
+ for (var C = 0; C < T.length; ++C) {
1906
+ var R = T[C], X = typeof R == "object" && R && typeof R.value < "u" ? R.value : h[R];
1907
+ if (!(l && X === null)) {
1908
+ var ne = f && c ? String(R).replace(/\./g, "%2E") : String(R), xe = D(h) ? typeof n == "function" ? n(O, ne) : O : O + (f ? "." + ne : "[" + ne + "]");
1909
+ b.set(e, w);
1910
+ var ve = Or();
1911
+ ve.set(Je, b), Pr(x, t(
1912
+ X,
1913
+ xe,
1872
1914
  n,
1873
1915
  o,
1874
1916
  a,
@@ -1879,17 +1921,17 @@ function() {
1879
1921
  u,
1880
1922
  p,
1881
1923
  f,
1882
- v,
1924
+ d,
1883
1925
  y,
1884
- E,
1926
+ _,
1885
1927
  A,
1886
- O,
1928
+ P,
1887
1929
  ve
1888
1930
  ));
1889
1931
  }
1890
1932
  }
1891
- return F;
1892
- }, pi = function(e) {
1933
+ return x;
1934
+ }, Oi = function(e) {
1893
1935
  if (!e)
1894
1936
  return m;
1895
1937
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -1903,14 +1945,14 @@ function() {
1903
1945
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1904
1946
  var n = fe.default;
1905
1947
  if (typeof e.format < "u") {
1906
- if (!li.call(fe.formatters, e.format))
1948
+ if (!mi.call(fe.formatters, e.format))
1907
1949
  throw new TypeError("Unknown format option provided.");
1908
1950
  n = e.format;
1909
1951
  }
1910
1952
  var o = fe.formatters[n], a = m.filter;
1911
1953
  (typeof e.filter == "function" || D(e.filter)) && (a = e.filter);
1912
1954
  var i;
1913
- if (e.arrayFormat in gr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = m.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1955
+ if (e.arrayFormat in Rr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = m.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1914
1956
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1915
1957
  var l = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : m.allowDots : !!e.allowDots;
1916
1958
  return {
@@ -1934,17 +1976,17 @@ function() {
1934
1976
  sort: typeof e.sort == "function" ? e.sort : null,
1935
1977
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : m.strictNullHandling
1936
1978
  };
1937
- }, yi = function(t, e) {
1938
- var r = t, n = pi(e), o, a;
1979
+ }, Ri = function(t, e) {
1980
+ var r = t, n = Oi(e), o, a;
1939
1981
  typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : D(n.filter) && (a = n.filter, o = a);
1940
1982
  var i = [];
1941
1983
  if (typeof r != "object" || r === null)
1942
1984
  return "";
1943
- var l = gr[n.arrayFormat], c = l === "comma" && n.commaRoundTrip;
1985
+ var l = Rr[n.arrayFormat], c = l === "comma" && n.commaRoundTrip;
1944
1986
  o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
1945
- for (var s = hr(), u = 0; u < o.length; ++u) {
1987
+ for (var s = Or(), u = 0; u < o.length; ++u) {
1946
1988
  var p = o[u], f = r[p];
1947
- n.skipNulls && f === null || mr(i, si(
1989
+ n.skipNulls && f === null || Pr(i, Ai(
1948
1990
  f,
1949
1991
  p,
1950
1992
  l,
@@ -1965,9 +2007,9 @@ function() {
1965
2007
  s
1966
2008
  ));
1967
2009
  }
1968
- var v = i.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
1969
- return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
1970
- }, V = vr, rt = Object.prototype.hasOwnProperty, jt = Array.isArray, g = {
2010
+ var d = i.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
2011
+ return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), d.length > 0 ? y + d : "";
2012
+ }, H = Ar, Ae = Object.prototype.hasOwnProperty, qt = Array.isArray, g = {
1971
2013
  allowDots: !1,
1972
2014
  allowEmptyArrays: !1,
1973
2015
  allowPrototypes: !1,
@@ -1977,7 +2019,7 @@ function() {
1977
2019
  charsetSentinel: !1,
1978
2020
  comma: !1,
1979
2021
  decodeDotInKeys: !1,
1980
- decoder: V.decode,
2022
+ decoder: H.decode,
1981
2023
  delimiter: "&",
1982
2024
  depth: 5,
1983
2025
  duplicates: "combine",
@@ -1989,17 +2031,17 @@ function() {
1989
2031
  strictDepth: !1,
1990
2032
  strictNullHandling: !1,
1991
2033
  throwOnLimitExceeded: !1
1992
- }, di = function(t) {
2034
+ }, Pi = function(t) {
1993
2035
  return t.replace(/&#(\d+);/g, function(e, r) {
1994
2036
  return String.fromCharCode(parseInt(r, 10));
1995
2037
  });
1996
- }, Er = function(t, e, r) {
2038
+ }, br = function(t, e, r) {
1997
2039
  if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
1998
2040
  return t.split(",");
1999
2041
  if (e.throwOnLimitExceeded && r >= e.arrayLimit)
2000
2042
  throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
2001
2043
  return t;
2002
- }, vi = "utf8=%26%2310003%3B", hi = "utf8=%E2%9C%93", gi = function(e, r) {
2044
+ }, bi = "utf8=%26%2310003%3B", Ii = "utf8=%E2%9C%93", wi = function(e, r) {
2003
2045
  var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
2004
2046
  o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
2005
2047
  var a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(
@@ -2011,34 +2053,45 @@ function() {
2011
2053
  var l = -1, c, s = r.charset;
2012
2054
  if (r.charsetSentinel)
2013
2055
  for (c = 0; c < i.length; ++c)
2014
- i[c].indexOf("utf8=") === 0 && (i[c] === hi ? s = "utf-8" : i[c] === vi && (s = "iso-8859-1"), l = c, c = i.length);
2056
+ i[c].indexOf("utf8=") === 0 && (i[c] === Ii ? s = "utf-8" : i[c] === bi && (s = "iso-8859-1"), l = c, c = i.length);
2015
2057
  for (c = 0; c < i.length; ++c)
2016
2058
  if (c !== l) {
2017
- var u = i[c], p = u.indexOf("]="), f = p === -1 ? u.indexOf("=") : p + 1, v, y;
2018
- f === -1 ? (v = r.decoder(u, g.decoder, s, "key"), y = r.strictNullHandling ? null : "") : (v = r.decoder(u.slice(0, f), g.decoder, s, "key"), y = V.maybeMap(
2019
- Er(
2059
+ var u = i[c], p = u.indexOf("]="), f = p === -1 ? u.indexOf("=") : p + 1, d, y;
2060
+ if (f === -1 ? (d = r.decoder(u, g.decoder, s, "key"), y = r.strictNullHandling ? null : "") : (d = r.decoder(u.slice(0, f), g.decoder, s, "key"), d !== null && (y = H.maybeMap(
2061
+ br(
2020
2062
  u.slice(f + 1),
2021
2063
  r,
2022
- jt(n[v]) ? n[v].length : 0
2064
+ qt(n[d]) ? n[d].length : 0
2023
2065
  ),
2024
2066
  function(A) {
2025
2067
  return r.decoder(A, g.decoder, s, "value");
2026
2068
  }
2027
- )), y && r.interpretNumericEntities && s === "iso-8859-1" && (y = di(String(y))), u.indexOf("[]=") > -1 && (y = jt(y) ? [y] : y);
2028
- var E = rt.call(n, v);
2029
- E && r.duplicates === "combine" ? n[v] = V.combine(n[v], y) : (!E || r.duplicates === "last") && (n[v] = y);
2069
+ ))), y && r.interpretNumericEntities && s === "iso-8859-1" && (y = Pi(String(y))), u.indexOf("[]=") > -1 && (y = qt(y) ? [y] : y), d !== null) {
2070
+ var _ = Ae.call(n, d);
2071
+ _ && r.duplicates === "combine" ? n[d] = H.combine(
2072
+ n[d],
2073
+ y,
2074
+ r.arrayLimit,
2075
+ r.plainObjects
2076
+ ) : (!_ || r.duplicates === "last") && (n[d] = y);
2077
+ }
2030
2078
  }
2031
2079
  return n;
2032
- }, mi = function(t, e, r, n) {
2080
+ }, Ti = function(t, e, r, n) {
2033
2081
  var o = 0;
2034
2082
  if (t.length > 0 && t[t.length - 1] === "[]") {
2035
2083
  var a = t.slice(0, -1).join("");
2036
2084
  o = Array.isArray(e) && e[a] ? e[a].length : 0;
2037
2085
  }
2038
- for (var i = n ? e : Er(e, r, o), l = t.length - 1; l >= 0; --l) {
2086
+ for (var i = n ? e : br(e, r, o), l = t.length - 1; l >= 0; --l) {
2039
2087
  var c, s = t[l];
2040
2088
  if (s === "[]" && r.parseArrays)
2041
- c = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : V.combine([], i);
2089
+ H.isOverflow(i) ? c = i : c = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : H.combine(
2090
+ [],
2091
+ i,
2092
+ r.arrayLimit,
2093
+ r.plainObjects
2094
+ );
2042
2095
  else {
2043
2096
  c = r.plainObjects ? { __proto__: null } : {};
2044
2097
  var u = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, p = r.decodeDotInKeys ? u.replace(/%2E/g, ".") : u, f = parseInt(p, 10);
@@ -2047,27 +2100,36 @@ function() {
2047
2100
  i = c;
2048
2101
  }
2049
2102
  return i;
2050
- }, Ei = function(e, r, n, o) {
2103
+ }, Ci = function(e, r) {
2104
+ var n = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
2105
+ if (r.depth <= 0)
2106
+ return !r.plainObjects && Ae.call(Object.prototype, n) && !r.allowPrototypes ? void 0 : [n];
2107
+ var o = /(\[[^[\]]*])/, a = /(\[[^[\]]*])/g, i = o.exec(n), l = i ? n.slice(0, i.index) : n, c = [];
2108
+ if (l) {
2109
+ if (!r.plainObjects && Ae.call(Object.prototype, l) && !r.allowPrototypes)
2110
+ return;
2111
+ c.push(l);
2112
+ }
2113
+ for (var s = 0; (i = a.exec(n)) !== null && s < r.depth; ) {
2114
+ s += 1;
2115
+ var u = i[1].slice(1, -1);
2116
+ if (!r.plainObjects && Ae.call(Object.prototype, u) && !r.allowPrototypes)
2117
+ return;
2118
+ c.push(i[1]);
2119
+ }
2120
+ if (i) {
2121
+ if (r.strictDepth === !0)
2122
+ throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
2123
+ c.push("[" + n.slice(i.index) + "]");
2124
+ }
2125
+ return c;
2126
+ }, Ni = function(e, r, n, o) {
2051
2127
  if (e) {
2052
- var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, c = n.depth > 0 && i.exec(a), s = c ? a.slice(0, c.index) : a, u = [];
2053
- if (s) {
2054
- if (!n.plainObjects && rt.call(Object.prototype, s) && !n.allowPrototypes)
2055
- return;
2056
- u.push(s);
2057
- }
2058
- for (var p = 0; n.depth > 0 && (c = l.exec(a)) !== null && p < n.depth; ) {
2059
- if (p += 1, !n.plainObjects && rt.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
2060
- return;
2061
- u.push(c[1]);
2062
- }
2063
- if (c) {
2064
- if (n.strictDepth === !0)
2065
- throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
2066
- u.push("[" + a.slice(c.index) + "]");
2067
- }
2068
- return mi(u, r, n, o);
2128
+ var a = Ci(e, n);
2129
+ if (a)
2130
+ return Ti(a, r, n, o);
2069
2131
  }
2070
- }, _i = function(e) {
2132
+ }, Di = function(e) {
2071
2133
  if (!e)
2072
2134
  return g;
2073
2135
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -2095,7 +2157,7 @@ function() {
2095
2157
  comma: typeof e.comma == "boolean" ? e.comma : g.comma,
2096
2158
  decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : g.decodeDotInKeys,
2097
2159
  decoder: typeof e.decoder == "function" ? e.decoder : g.decoder,
2098
- delimiter: typeof e.delimiter == "string" || V.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
2160
+ delimiter: typeof e.delimiter == "string" || H.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
2099
2161
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2100
2162
  depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : g.depth,
2101
2163
  duplicates: n,
@@ -2108,24 +2170,24 @@ function() {
2108
2170
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling,
2109
2171
  throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
2110
2172
  };
2111
- }, Si = function(t, e) {
2112
- var r = _i(e);
2173
+ }, $i = function(t, e) {
2174
+ var r = Di(e);
2113
2175
  if (t === "" || t === null || typeof t > "u")
2114
2176
  return r.plainObjects ? { __proto__: null } : {};
2115
- for (var n = typeof t == "string" ? gi(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
2116
- var l = a[i], c = Ei(l, n[l], r, typeof t == "string");
2117
- o = V.merge(o, c, r);
2118
- }
2119
- return r.allowSparse === !0 ? o : V.compact(o);
2120
- }, Ai = yi, Ri = Si, Pi = ut, Oi = {
2121
- formats: Pi,
2122
- parse: Ri,
2123
- stringify: Ai
2177
+ for (var n = typeof t == "string" ? wi(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
2178
+ var l = a[i], c = Ni(l, n[l], r, typeof t == "string");
2179
+ o = H.merge(o, c, r);
2180
+ }
2181
+ return r.allowSparse === !0 ? o : H.compact(o);
2182
+ }, xi = Ri, Mi = $i, Fi = pt, Li = {
2183
+ formats: Fi,
2184
+ parse: Mi,
2185
+ stringify: xi
2124
2186
  };
2125
- const bi = /* @__PURE__ */ cn(Oi);
2126
- async function Ce(t, e = {}, r) {
2187
+ const Ui = /* @__PURE__ */ _n(Li);
2188
+ async function $e(t, e = {}, r) {
2127
2189
  const { cms: n = "cms" } = e;
2128
- return fetch(`${t.href}?${bi.stringify(e)}`, {
2190
+ return fetch(`${t.href}?${Ui.stringify(e)}`, {
2129
2191
  method: "GET",
2130
2192
  cache: r ? "no-store" : "default",
2131
2193
  headers: {
@@ -2136,18 +2198,18 @@ async function Ce(t, e = {}, r) {
2136
2198
  }
2137
2199
  });
2138
2200
  }
2139
- function ft(t, e) {
2201
+ function dt(t, e) {
2140
2202
  return !(e != null && e.cms) || (e == null ? void 0 : e.cms) === "vtex" ? `https://${e == null ? void 0 : e.storeId}.myvtex.com/_v/cms/api/${e == null ? void 0 : e.name}/${t}` : String(
2141
2203
  new URL(`api/${t}`, process.env.NEXT_PUBLIC_API_URL)
2142
2204
  );
2143
2205
  }
2144
- function _r(t) {
2206
+ function Ir(t) {
2145
2207
  return Array.isArray(t) && t.length > 0 ? t[0] : Array.isArray(t) ? null : t;
2146
2208
  }
2147
- async function Sr(t, e = [], r = {}) {
2209
+ async function wr(t, e = [], r = {}) {
2148
2210
  var n;
2149
2211
  if ((r == null ? void 0 : r.contentType) === t) {
2150
- const o = (r == null ? void 0 : r.previewMode) === "true", a = (r == null ? void 0 : r.documentId) ?? "", i = a && ((n = String(a)) != null && n.length) ? `/${r.documentId}` : "", l = new URL(ft(`${t}${i}`, r)), c = await Ce(l, r, o);
2212
+ const o = (r == null ? void 0 : r.previewMode) === "true", a = (r == null ? void 0 : r.documentId) ?? "", i = a && ((n = String(a)) != null && n.length) ? `/${r.documentId}` : "", l = new URL(dt(`${t}${i}`, r)), c = await $e(l, r, o);
2151
2213
  if (!c.ok)
2152
2214
  return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`), [];
2153
2215
  const s = await c.json(), u = e.findIndex((p) => p.documentId === s.id);
@@ -2155,15 +2217,15 @@ async function Sr(t, e = [], r = {}) {
2155
2217
  }
2156
2218
  return e;
2157
2219
  }
2158
- const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2220
+ const Zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2159
2221
  __proto__: null,
2160
- createUrl: ft,
2161
- fetchCMS: Ce,
2162
- mergePreviewDocument: Sr,
2163
- spreadStrapiData: _r
2222
+ createUrl: dt,
2223
+ fetchCMS: $e,
2224
+ mergePreviewDocument: wr,
2225
+ spreadStrapiData: Ir
2164
2226
  }, Symbol.toStringTag, { value: "Module" }));
2165
- async function Ar(t, e = {}, r) {
2166
- const n = !!(e != null && e.previewMode), o = await Ce(t, e, n);
2227
+ async function Tr(t, e = {}, r) {
2228
+ const n = !!(e != null && e.previewMode), o = await $e(t, e, n);
2167
2229
  if (!o.ok)
2168
2230
  return console.log(
2169
2231
  `Failed to fetch Strapi (url=${String(t)}, status=${o.status})`
@@ -2171,15 +2233,15 @@ async function Ar(t, e = {}, r) {
2171
2233
  const { data: a } = await o.json();
2172
2234
  return a ? {
2173
2235
  status: 200,
2174
- data: r ? _r(a) : a
2236
+ data: r ? Ir(a) : a
2175
2237
  } : { status: 404, data: [], error: "No data found" };
2176
2238
  }
2177
- async function Rr(t, e, r = {}) {
2239
+ async function Cr(t, e, r = {}) {
2178
2240
  const n = (r == null ? void 0 : r.previewId) ?? "", o = (r == null ? void 0 : r.previewMode) === "true", a = { ...r, versionId: n }, i = [];
2179
2241
  let l = 1, c = 0, s = !0;
2180
2242
  try {
2181
2243
  do {
2182
- const u = await Ce(e, { ...a, page: l }, o).then((p) => p.json()).catch((p) => (console.error("Error fetching VTEX CMS data:", p), console.error("Error URL:", e.toString()), null));
2244
+ const u = await $e(e, { ...a, page: l }, o).then((p) => p.json()).catch((p) => (console.error("Error fetching VTEX CMS data:", p), console.error("Error URL:", e.toString()), null));
2183
2245
  l === 1 && (c = u.totalItems), Array.isArray(u == null ? void 0 : u.data) && i.push(...u.data), s = !!(u != null && u.hasNextPage), l++;
2184
2246
  } while (s && i.length < c);
2185
2247
  if (o && i.length > 0) {
@@ -2187,7 +2249,7 @@ async function Rr(t, e, r = {}) {
2187
2249
  throw new Error(
2188
2250
  "contentType and previewId are required for preview mode in vtexCMSData"
2189
2251
  );
2190
- const u = await Sr(
2252
+ const u = await wr(
2191
2253
  t,
2192
2254
  i,
2193
2255
  a
@@ -2209,12 +2271,12 @@ async function Rr(t, e, r = {}) {
2209
2271
  };
2210
2272
  }
2211
2273
  }
2212
- const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2274
+ const el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2213
2275
  __proto__: null,
2214
- strapiCMSData: Ar,
2215
- vtexCMSData: Rr
2276
+ strapiCMSData: Tr,
2277
+ vtexCMSData: Cr
2216
2278
  }, Symbol.toStringTag, { value: "Module" }));
2217
- async function Ii({
2279
+ async function Gi({
2218
2280
  contentType: t,
2219
2281
  documentId: e,
2220
2282
  versionId: r,
@@ -2227,63 +2289,65 @@ async function Ii({
2227
2289
  { cache: "no-cache" }
2228
2290
  );
2229
2291
  }
2230
- async function Ti(t, e = {}, r) {
2292
+ async function Bi(t, e = {}, r) {
2231
2293
  const { cms: n = "vtex" } = e ?? {};
2232
2294
  try {
2233
- const o = new URL(ft(t, e));
2234
- return n !== "vtex" ? Ar(o, e, r) : Rr(t, o, e);
2295
+ const o = new URL(dt(t, e));
2296
+ return n !== "vtex" ? Tr(o, e, r) : Cr(t, o, e);
2235
2297
  } catch (o) {
2236
2298
  return console.error(`[Fetch ContentType Error CMS ${n}]`, o), r ? { status: 400, data: null } : { status: 200, data: [] };
2237
2299
  }
2238
2300
  }
2239
- const Wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2301
+ const tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2240
2302
  __proto__: null,
2241
- fetchContentType: Ti,
2242
- getCMSContentType: Ii
2303
+ fetchContentType: Bi,
2304
+ getCMSContentType: Gi
2243
2305
  }, Symbol.toStringTag, { value: "Module" }));
2244
2306
  export {
2245
- jr as A,
2246
- Kr as B,
2247
- xi as C,
2248
- Di as D,
2249
- Ui as E,
2250
- On as F,
2251
- Ti as G,
2252
- zt as H,
2253
- Fi as I,
2254
- Bi as J,
2255
- $i as K,
2256
- Mi as L,
2257
- Hi as M,
2258
- Wi as N,
2259
- ji as O,
2260
- Xi as P,
2261
- Gi as Q,
2262
- ki as S,
2263
- Wr as a,
2264
- zr as b,
2265
- kr as c,
2266
- Vr as d,
2267
- Ni as e,
2268
- Ye as f,
2269
- Hr as g,
2270
- Gr as h,
2271
- qr as i,
2272
- nt as j,
2273
- Vt as k,
2274
- sn as l,
2275
- pn as m,
2276
- yn as n,
2277
- dn as o,
2278
- Li as p,
2279
- qt as q,
2280
- fn as r,
2281
- Xt as s,
2282
- cn as t,
2283
- Yr as u,
2284
- Rn as v,
2285
- Br as w,
2286
- Qr as x,
2287
- Zr as y,
2288
- he as z
2307
+ he as A,
2308
+ Yr as B,
2309
+ rn as C,
2310
+ Vi as D,
2311
+ vn as E,
2312
+ un as F,
2313
+ qi as G,
2314
+ Fn as H,
2315
+ Bi as I,
2316
+ Zt as J,
2317
+ Wi as K,
2318
+ Yi as L,
2319
+ Xi as M,
2320
+ Qi as N,
2321
+ tl as O,
2322
+ Zi as P,
2323
+ el as Q,
2324
+ mn as R,
2325
+ Ji as S,
2326
+ Ki as T,
2327
+ Jr as a,
2328
+ tn as b,
2329
+ Yt as c,
2330
+ Kr as d,
2331
+ Zr as e,
2332
+ zi as f,
2333
+ zr as g,
2334
+ Ze as h,
2335
+ Vr as i,
2336
+ en as j,
2337
+ it as k,
2338
+ Qt as l,
2339
+ An as m,
2340
+ On as n,
2341
+ Rn as o,
2342
+ ki as p,
2343
+ Pn as q,
2344
+ Sn as r,
2345
+ zt as s,
2346
+ Jt as t,
2347
+ nn as u,
2348
+ _n as v,
2349
+ xn as w,
2350
+ qr as x,
2351
+ on as y,
2352
+ ln as z
2289
2353
  };