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

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 (49) 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/Search.d.ts +1 -1
  5. package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
  6. package/contexts/index.d.ts +4 -4
  7. package/data/api/aviseme/index.d.ts +18 -0
  8. package/data/api/preview/exit-preview/index.d.ts +13 -0
  9. package/data/api/preview/index.d.ts +36 -0
  10. package/data/api/xml/index.d.ts +3 -0
  11. package/data/helpers/plp/index.d.ts +3 -7
  12. package/data/helpers/search/facets.d.ts +0 -1
  13. package/data/helpers/search/index.d.ts +0 -4
  14. package/data/helpers/search/product/index.d.ts +1 -13
  15. package/data/helpers/search/search.d.ts +0 -1
  16. package/data/index.d.ts +0 -2
  17. package/{index-CIVkR1d_.mjs → index-BM8vTUKg.mjs} +712 -776
  18. package/index-CZjoMPpQ.js +4 -0
  19. package/index.js +18 -18
  20. package/index.mjs +8751 -11007
  21. package/index2.js +2 -2
  22. package/index2.mjs +666 -578
  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/Page/Composite/Card.d.ts +1 -1
  26. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  27. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +1 -4
  28. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  29. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +3 -10
  30. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  31. package/layout/template/PDC/PDC.d.ts +1 -1
  32. package/layout/template/PDC/index.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/server.d.ts +8 -4
  35. package/style.css +1 -1
  36. package/types/contexts/contexts/plp.d.ts +21 -63
  37. package/types/contexts/contexts/search.d.ts +17 -39
  38. package/types/contexts/hooks/index.d.ts +2 -0
  39. package/types/layout/team-components/PLPNavigation/index.d.ts +2 -0
  40. package/types/layout/templates/PLP/index.d.ts +3 -7
  41. package/contexts/contexts/search/QueryFacets.d.ts +0 -5
  42. package/contexts/contexts/search/QueryProducts.d.ts +0 -5
  43. package/contexts/contexts/search/RootTank.d.ts +0 -9
  44. package/contexts/store/plp-scroll.d.ts +0 -3
  45. package/index-BFjIPkXv.js +0 -4
  46. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +0 -11
  47. package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +0 -1
  48. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +0 -7
  49. package/layout/template/SearchResult/Composite/Products.d.ts +0 -7
package/index2.mjs CHANGED
@@ -1,20 +1,21 @@
1
1
  import { jsx as O, jsxs as pe, Fragment as W } from "react/jsx-runtime";
2
- import { I as F, A as oe, S as yt, J as T, K as _t, L as Rt, M as It, a as Pt, k as xt, n as St, r as Ct, t as kt, l as Be, o as At, q as Et, m as Ot, N as Tt, O as qt, P as Nt, Q as jt, p as Ft, R as $t, T as Lt } from "./index-CIVkR1d_.mjs";
2
+ import { G as $, z as oe, S as yt, H as T, I as _t, J as Rt, K as It, a as Pt, j as xt, m as St, r as Ct, q as kt, k as Be, n as Et, o as At, l as Ot, D as Tt, C as qt, L as Nt, p as jt, M as $t, N as Ft, O as Lt, P as Dt, e as Ut, Q as Ht } from "./index-BM8vTUKg.mjs";
3
3
  import { Utils as se, helpers as le } from "@soma-vertical-web/core-components";
4
- import * as c from "yup";
5
- import Dt from "sanitize-html";
6
- import { decodeJwt as Ut } from "jose";
7
- const Ht = async ({
4
+ import * as l from "yup";
5
+ import Mt from "sanitize-html";
6
+ import { decodeJwt as Bt } from "jose";
7
+ import zt from "axios";
8
+ const Gt = async ({
8
9
  children: e,
9
10
  ClientCartProvider: t,
10
11
  ...r
11
12
  }) => {
12
- const { data: n } = await F(
13
+ const { data: n } = await $(
13
14
  "mini_cart",
14
15
  r
15
16
  );
16
17
  return /* @__PURE__ */ O(t, { ...n ? Array.isArray(n) ? { data: n[0] } : { data: n } : {}, children: e });
17
- }, Mt = ({
18
+ }, Vt = ({
18
19
  slug: e,
19
20
  data: t,
20
21
  SectionZone: r,
@@ -26,7 +27,7 @@ const Ht = async ({
26
27
  var w, v, y, _;
27
28
  return ((v = (w = u.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "desktop" && ((_ = (y = u.config) == null ? void 0 : y.seo) == null ? void 0 : _.slug) === e;
28
29
  }
29
- ), l = o == null ? void 0 : o.config.responsive.gapCustom, i = o == null ? void 0 : o.config.responsive.gapSections, d = t == null ? void 0 : t.find(
30
+ ), c = o == null ? void 0 : o.config.responsive.gapCustom, i = o == null ? void 0 : o.config.responsive.gapSections, d = t == null ? void 0 : t.find(
30
31
  (u) => {
31
32
  var w, v, y, _;
32
33
  return ((v = (w = u.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "mobile" && ((_ = (y = u.config) == null ? void 0 : y.seo) == null ? void 0 : _.slug) === e;
@@ -36,7 +37,7 @@ const Ht = async ({
36
37
  /* @__PURE__ */ O(
37
38
  se.Column,
38
39
  {
39
- gap: l && i ? i : n,
40
+ gap: c && i ? i : n,
40
41
  className: le.classNameConcat(
41
42
  oe["responsive-desktop-flex"],
42
43
  "utils-column-modifier"
@@ -56,19 +57,19 @@ const Ht = async ({
56
57
  }
57
58
  )
58
59
  ] });
59
- }, Bt = async ({
60
+ }, Wt = async ({
60
61
  slug: e,
61
62
  SectionZone: t,
62
63
  COMMON_PAGE_COLUMN_GAP: r,
63
64
  identifyWhoIsFirst: n = !1,
64
65
  ...a
65
66
  }) => {
66
- const { data: o } = await F(
67
+ const { data: o } = await $(
67
68
  "common_page",
68
69
  a
69
70
  );
70
71
  return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ O(
71
- Mt,
72
+ Vt,
72
73
  {
73
74
  data: o,
74
75
  slug: e,
@@ -77,30 +78,30 @@ const Ht = async ({
77
78
  identifyWhoIsFirst: n
78
79
  }
79
80
  );
80
- }, zt = async ({
81
+ }, Qt = async ({
81
82
  children: e,
82
83
  ClientFlagsAndTagsProvider: t,
83
84
  ...r
84
85
  }) => {
85
- const { data: n } = await F(
86
+ const { data: n } = await $(
86
87
  "flags_and_tags",
87
88
  r
88
89
  );
89
90
  return !n || !Array.isArray(n) ? null : /* @__PURE__ */ O(t, { data: n[0], children: e });
90
- }, Gt = async ({
91
+ }, Xt = async ({
91
92
  className: e,
92
93
  PAYMENT_FLAGS_DICTIONARY: t,
93
94
  PAYMENT_FLAGS: r,
94
95
  LEGAL_INFORMATION_TEXT: n,
95
96
  ICONS: a,
96
97
  SectionZone: o,
97
- Footer: l,
98
+ Footer: c,
98
99
  FooterSupport: i,
99
100
  hasFooterStamps: d,
100
101
  ...g
101
102
  }) => {
102
- var v, y, _, p, b, m, h, f, A, N, I;
103
- const { data: s } = await F("footer", g), u = Array.isArray(s) && ((v = s[0]) == null ? void 0 : v.type) === "footer" ? s[0] : null, w = {
103
+ var v, y, _, p, b, m, f, h, E, N, I;
104
+ const { data: s } = await $("footer", g), u = Array.isArray(s) && ((v = s[0]) == null ? void 0 : v.type) === "footer" ? s[0] : null, w = {
104
105
  ...(y = u == null ? void 0 : u.paymentInfo) == null ? void 0 : y.paymentInfo,
105
106
  acceptedFlags: Array.isArray(
106
107
  (_ = u == null ? void 0 : u.paymentInfo) == null ? void 0 : _.paymentInfo.acceptedFlags
@@ -109,16 +110,16 @@ const Ht = async ({
109
110
  ) : []
110
111
  };
111
112
  return u ? /* @__PURE__ */ O(
112
- l,
113
+ c,
113
114
  {
114
115
  className: e,
115
116
  data: { ...u },
116
117
  socialInfo: (b = u.socialMedia) == null ? void 0 : b.socialMedia,
117
- socialMedias: (h = (m = u.socialMedia) == null ? void 0 : m.socialMedia) == null ? void 0 : h.medias,
118
+ socialMedias: (f = (m = u.socialMedia) == null ? void 0 : m.socialMedia) == null ? void 0 : f.medias,
118
119
  payments: w,
119
120
  hasFooterStamps: d,
120
121
  adornment: {
121
- ...(A = (f = u.supportInfo) == null ? void 0 : f.supportInfo) != null && A.content ? {
122
+ ...(E = (h = u.supportInfo) == null ? void 0 : h.supportInfo) != null && E.content ? {
122
123
  bottom: /* @__PURE__ */ O(
123
124
  i,
124
125
  {
@@ -137,13 +138,13 @@ const Ht = async ({
137
138
  ICONS: a
138
139
  }
139
140
  ) : null;
140
- }, Vt = async ({
141
+ }, Kt = async ({
141
142
  children: e,
142
143
  ClientHeaderProvider: t,
143
144
  ...r
144
145
  }) => {
145
- var o, l, i, d, g, s;
146
- const { data: n } = await F(
146
+ var o, c, i, d, g, s;
147
+ const { data: n } = await $(
147
148
  "header",
148
149
  r
149
150
  ), a = Array.isArray(n) ? n[0] : void 0;
@@ -152,16 +153,16 @@ const Ht = async ({
152
153
  {
153
154
  headerData: {
154
155
  ...((o = a == null ? void 0 : a.layerConfig) == null ? void 0 : o.config) ?? {},
155
- subMenus: ((l = a == null ? void 0 : a.sections) == null ? void 0 : l.map((u) => u.data)) ?? [],
156
+ subMenus: ((c = a == null ? void 0 : a.sections) == null ? void 0 : c.map((u) => u.data)) ?? [],
156
157
  categories: ((d = (i = a == null ? void 0 : a.categories) == null ? void 0 : i.categories) == null ? void 0 : d.items) ?? [],
157
158
  navigationLinks: ((s = (g = a == null ? void 0 : a.navigationLinks) == null ? void 0 : g.navigationLinks) == null ? void 0 : s.items) ?? []
158
159
  },
159
160
  children: e
160
161
  }
161
162
  );
162
- }, Wt = (e) => {
163
- var l, i;
164
- const t = (i = (l = e[0]) == null ? void 0 : l.items) == null ? void 0 : i.items;
163
+ }, Zt = (e) => {
164
+ var c, i;
165
+ const t = (i = (c = e[0]) == null ? void 0 : c.items) == null ? void 0 : i.items;
165
166
  if ((t == null ? void 0 : t.items.length) === 0 || e.length === 0)
166
167
  return {
167
168
  iconLabel: "",
@@ -188,19 +189,19 @@ const Ht = async ({
188
189
  helpButtonSize: a,
189
190
  content: o
190
191
  };
191
- }, Qt = async ({
192
+ }, Jt = async ({
192
193
  HelpButton: e,
193
194
  ICONS: t,
194
195
  className: r,
195
196
  ...n
196
197
  }) => {
197
- const { data: a } = await F(
198
+ const { data: a } = await $(
198
199
  "helpbutton",
199
200
  n
200
201
  );
201
202
  if (!a || !Array.isArray(a) || a.length === 0)
202
203
  return null;
203
- const o = Wt(a);
204
+ const o = Zt(a);
204
205
  return /* @__PURE__ */ O(
205
206
  e,
206
207
  {
@@ -209,24 +210,24 @@ const Ht = async ({
209
210
  className: r
210
211
  }
211
212
  );
212
- }, Kt = async ({
213
+ }, Yt = async ({
213
214
  SectionZone: e,
214
215
  LPCadastro: t,
215
216
  ...r
216
217
  }) => {
217
218
  var d;
218
- const { data: n } = await F(
219
+ const { data: n } = await $(
219
220
  "lp_cadastro",
220
221
  r
221
222
  );
222
223
  if (!n || !Array.isArray(n) || n.length === 0)
223
224
  return null;
224
- const [a] = n, o = (a == null ? void 0 : a.sections) || [], l = ((d = a == null ? void 0 : a.content) == null ? void 0 : d.conteúdo) || {}, i = a == null ? void 0 : a.sections;
225
+ const [a] = n, o = (a == null ? void 0 : a.sections) || [], c = ((d = a == null ? void 0 : a.content) == null ? void 0 : d.conteúdo) || {}, i = a == null ? void 0 : a.sections;
225
226
  return /* @__PURE__ */ pe(W, { children: [
226
- /* @__PURE__ */ O(t, { sections: o, content: l }),
227
+ /* @__PURE__ */ O(t, { sections: o, content: c }),
227
228
  /* @__PURE__ */ O(e, { data: i })
228
229
  ] });
229
- }, Xt = async ({
230
+ }, er = async ({
230
231
  LPLOJAS_TEMPLATE_RETURN_BUTTON: e,
231
232
  ICONS: t,
232
233
  entity: r,
@@ -235,25 +236,25 @@ const Ht = async ({
235
236
  ...o
236
237
  }) => {
237
238
  var g;
238
- const { data: l } = await F("lp_lojas", o), d = (g = (Array.isArray(l) ? l : [])[0]) == null ? void 0 : g.config.config;
239
+ const { data: c } = await $("lp_lojas", o), d = (g = (Array.isArray(c) ? c : [])[0]) == null ? void 0 : g.config.config;
239
240
  return /* @__PURE__ */ O(
240
241
  a,
241
242
  {
242
243
  entity: r,
243
244
  content: d,
244
- data: l,
245
+ data: c,
245
246
  showVendor: n,
246
247
  ICONS: t,
247
248
  LPLOJAS_TEMPLATE_RETURN_BUTTON: e
248
249
  }
249
250
  );
250
- }, Zt = async ({
251
+ }, tr = async ({
251
252
  ERROR_TEMPLATE_RETURN_BUTTON: e,
252
253
  ErrorTemplate: t,
253
254
  ...r
254
255
  }) => {
255
256
  var o;
256
- const { data: n } = await F(
257
+ const { data: n } = await $(
257
258
  "notfound_page",
258
259
  r
259
260
  ), a = Array.isArray(n) ? (o = n[0]) == null ? void 0 : o.config.config : null;
@@ -264,7 +265,7 @@ const Ht = async ({
264
265
  ERROR_TEMPLATE_RETURN_BUTTON: e
265
266
  }
266
267
  ) : /* @__PURE__ */ O(W, {});
267
- }, Jt = async ({
268
+ }, rr = async ({
268
269
  children: e,
269
270
  productId: t,
270
271
  COMMON_PAGE_COLUMN_GAP: r,
@@ -272,34 +273,34 @@ const Ht = async ({
272
273
  PDPContentProvider: a,
273
274
  ...o
274
275
  }) => {
275
- const { data: l } = await F(
276
+ const { data: c } = await $(
276
277
  "product_page",
277
278
  o
278
279
  );
279
- return !l || !Array.isArray(l) || l.length === 0 ? null : /* @__PURE__ */ O(
280
+ return !c || !Array.isArray(c) || c.length === 0 ? null : /* @__PURE__ */ O(
280
281
  a,
281
282
  {
282
- data: l[0],
283
+ data: c[0],
283
284
  productId: t,
284
285
  COMMON_PAGE_COLUMN_GAP: r,
285
286
  SectionZone: n,
286
287
  children: e
287
288
  }
288
289
  );
289
- }, Yt = {
290
+ }, nr = {
290
291
  "column-modifier": "_column-modifier_1tqap_1"
291
- }, er = async ({
292
+ }, ar = async ({
292
293
  className: e,
293
294
  children: t,
294
295
  slug: r,
295
296
  SectionZone: n,
296
297
  COMMON_PAGE_COLUMN_GAP_PDC: a,
297
298
  PLPContentProvider: o,
298
- ...l
299
+ ...c
299
300
  }) => {
300
- const { data: i } = await F(
301
+ const { data: i } = await $(
301
302
  "categories_page",
302
- l
303
+ c
303
304
  );
304
305
  if (!i || !Array.isArray(i))
305
306
  return null;
@@ -330,7 +331,7 @@ const Ht = async ({
330
331
  {
331
332
  className: le.classNameConcat(
332
333
  oe["responsive-desktop-flex"],
333
- [Yt["column-modifier"], ...w]
334
+ [nr["column-modifier"], ...w]
334
335
  ),
335
336
  style: {
336
337
  minHeight: "100vh"
@@ -358,9 +359,9 @@ const Ht = async ({
358
359
  }
359
360
  ) })
360
361
  ] });
361
- }, tr = async ({ slug: e, ...t }) => {
362
- var l, i, d;
363
- const { data: r } = await F(
362
+ }, ir = async ({ slug: e, ...t }) => {
363
+ var c, i, d;
364
+ const { data: r } = await $(
364
365
  "redirect_to_search",
365
366
  t
366
367
  );
@@ -370,7 +371,7 @@ const Ht = async ({
370
371
  query: null,
371
372
  redirect: !1
372
373
  };
373
- const n = ((d = (i = (l = r[0]) == null ? void 0 : l.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
374
+ const n = ((d = (i = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
374
375
  if (!!!n.length)
375
376
  return {
376
377
  slug: e,
@@ -398,15 +399,15 @@ const Ht = async ({
398
399
  filters: null,
399
400
  sort: null
400
401
  };
401
- }, rr = async ({ slug: e, ...t }) => {
402
- var l, i, d;
403
- const { data: r } = await F(
402
+ }, or = async ({ slug: e, ...t }) => {
403
+ var c, i, d;
404
+ const { data: r } = await $(
404
405
  "redirect_to_search",
405
406
  t
406
407
  );
407
408
  if (!r || !Array.isArray(r))
408
409
  return null;
409
- const n = ((d = (i = (l = r[0]) == null ? void 0 : l.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
410
+ const n = ((d = (i = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
410
411
  if (!!!n.length)
411
412
  return null;
412
413
  const o = n.find(
@@ -420,20 +421,20 @@ const Ht = async ({
420
421
  title: o.pageTitle,
421
422
  description: o.pageDescription
422
423
  } : null;
423
- }, nr = async ({
424
+ }, sr = async ({
424
425
  slug: e,
425
426
  Politicas: t,
426
427
  SectionZone: r,
427
428
  oneTrust: n,
428
429
  ...a
429
430
  }) => {
430
- const { data: o } = await F(
431
+ const { data: o } = await $(
431
432
  "policy_page",
432
433
  a
433
- ), { data: l } = await F(
434
+ ), { data: c } = await $(
434
435
  "policy_tab",
435
436
  a
436
- ), i = Array.isArray(o) ? o : null, d = Array.isArray(l) ? l : null, g = i ? i[0].sections : null;
437
+ ), i = Array.isArray(o) ? o : null, d = Array.isArray(c) ? c : null, g = i ? i[0].sections : null;
437
438
  return !i || !d ? null : /* @__PURE__ */ pe(W, { children: [
438
439
  /* @__PURE__ */ O(
439
440
  t,
@@ -446,13 +447,13 @@ const Ht = async ({
446
447
  ),
447
448
  g && /* @__PURE__ */ O(r, { data: g })
448
449
  ] });
449
- }, ar = async ({
450
+ }, lr = async ({
450
451
  children: e,
451
452
  SectionZone: t,
452
453
  className: r,
453
454
  ...n
454
455
  }) => {
455
- const { data: a } = await F(
456
+ const { data: a } = await $(
456
457
  "search_page",
457
458
  n
458
459
  );
@@ -465,22 +466,22 @@ const Ht = async ({
465
466
  children: e
466
467
  }
467
468
  ) : /* @__PURE__ */ O(W, { children: "children" });
468
- }, ir = async ({
469
+ }, cr = async ({
469
470
  ClientTipbarContent: e,
470
471
  ...t
471
472
  }) => {
472
- const { data: r } = await F(
473
+ const { data: r } = await $(
473
474
  "tipbar",
474
475
  t
475
476
  );
476
477
  return /* @__PURE__ */ O(e, { data: r });
477
- }, or = async ({
478
+ }, ur = async ({
478
479
  children: e,
479
480
  SectionZone: t,
480
481
  WishlistScreening: r,
481
482
  ...n
482
483
  }) => {
483
- const { data: a } = await F(
484
+ const { data: a } = await $(
484
485
  "wishlist_page",
485
486
  n
486
487
  );
@@ -492,34 +493,34 @@ const Ht = async ({
492
493
  children: e
493
494
  }
494
495
  );
495
- }, sr = {
496
- CommonPageContent: Bt,
497
- CartContent: Ht,
498
- FlagsAndTagsContent: zt,
499
- HeaderContent: Vt,
500
- TipbarContent: ir,
501
- FooterContent: Gt,
502
- PLPContent: er,
503
- PDPContent: Jt,
504
- getRedirectData: tr,
505
- getPLPSynteticMetaData: rr,
506
- SearchPageContent: ar,
507
- HelpButtonContent: Qt,
508
- LPCadastroContent: Kt,
509
- LPLojasContent: Xt,
510
- PolicyPageContent: nr,
511
- NotFoundContent: Zt,
512
- WishlistContent: or
513
- }, sa = { Components: sr }, lr = c.object({
514
- country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
515
- postalCode: c.string().nullable()
496
+ }, dr = {
497
+ CommonPageContent: Wt,
498
+ CartContent: Gt,
499
+ FlagsAndTagsContent: Qt,
500
+ HeaderContent: Kt,
501
+ TipbarContent: cr,
502
+ FooterContent: Xt,
503
+ PLPContent: ar,
504
+ PDPContent: rr,
505
+ getRedirectData: ir,
506
+ getPLPSynteticMetaData: or,
507
+ SearchPageContent: lr,
508
+ HelpButtonContent: Jt,
509
+ LPCadastroContent: Yt,
510
+ LPLojasContent: er,
511
+ PolicyPageContent: sr,
512
+ NotFoundContent: tr,
513
+ WishlistContent: ur
514
+ }, Ra = { Components: dr }, pr = l.object({
515
+ country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
516
+ postalCode: l.string().nullable()
516
517
  });
517
- async function cr({ apiUrl: e, body: t, fetchOptions: r }) {
518
+ async function mr({ apiUrl: e, body: t, fetchOptions: r }) {
518
519
  if (!t) {
519
520
  console.error("[ERROR FETCHING] Body is required");
520
521
  return;
521
522
  }
522
- await lr.validate(t);
523
+ await pr.validate(t);
523
524
  const { country: n, postalCode: a } = t;
524
525
  return await T(
525
526
  `${e}/api/checkout/pub/postal-code/${n}/${a}`,
@@ -530,10 +531,10 @@ async function cr({ apiUrl: e, body: t, fetchOptions: r }) {
530
531
  }
531
532
  );
532
533
  }
533
- const ur = c.object({
534
- orderFormId: c.string().nullable(),
535
- sellerCode: c.string().nullable(),
536
- sellerName: c.string().nullable()
534
+ const fr = l.object({
535
+ orderFormId: l.string().nullable(),
536
+ sellerCode: l.string().nullable(),
537
+ sellerName: l.string().nullable()
537
538
  });
538
539
  async function ze({
539
540
  apiUrl: e,
@@ -544,23 +545,23 @@ async function ze({
544
545
  console.error("[ERROR FETCHING] Body is required");
545
546
  return;
546
547
  }
547
- await ur.validate(t);
548
- const { orderFormId: n, sellerCode: a, sellerName: o } = t, l = a ? `${a.trim()} - ${o}` : null;
548
+ await fr.validate(t);
549
+ const { orderFormId: n, sellerCode: a, sellerName: o } = t, c = a ? `${a.trim()} - ${o}` : null;
549
550
  return T(
550
551
  `${e}/api/checkout/pub/orderForm/${n}/attachments/openTextField`,
551
552
  {
552
553
  method: "POST",
553
554
  body: {
554
- value: l
555
+ value: c
555
556
  },
556
557
  ...r
557
558
  }
558
559
  );
559
560
  }
560
- const dr = c.object({
561
- orderFormId: c.string().nullable(),
562
- sellerCode: c.string().nullable(),
563
- marketingData: c.object()
561
+ const hr = l.object({
562
+ orderFormId: l.string().nullable(),
563
+ sellerCode: l.string().nullable(),
564
+ marketingData: l.object()
564
565
  });
565
566
  async function Ge({
566
567
  apiUrl: e,
@@ -572,8 +573,8 @@ async function Ge({
572
573
  console.error("[ERROR FETCHING] Body is required");
573
574
  return;
574
575
  }
575
- await dr.validate(t);
576
- const { orderFormId: a, sellerCode: o, marketingData: l } = t, i = o ? {
576
+ await hr.validate(t);
577
+ const { orderFormId: a, sellerCode: o, marketingData: c } = t, i = o ? {
577
578
  utmCampaign: o ? o.toUpperCase() : "",
578
579
  utmiCampaign: o ? `${r.VENDOR_CODE}` : "semcodigo"
579
580
  } : {};
@@ -582,24 +583,24 @@ async function Ge({
582
583
  {
583
584
  method: "POST",
584
585
  body: {
585
- ...l,
586
+ ...c,
586
587
  ...i
587
588
  },
588
589
  ...n
589
590
  }
590
591
  );
591
592
  }
592
- const pr = c.object({
593
- orderFormId: c.string().nullable(),
594
- sellerCode: c.string().nullable(),
595
- sellerName: c.string().nullable()
593
+ const gr = l.object({
594
+ orderFormId: l.string().nullable(),
595
+ sellerCode: l.string().nullable(),
596
+ sellerName: l.string().nullable()
596
597
  });
597
- async function mr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
598
+ async function br({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
598
599
  if (!t) {
599
600
  console.error("[ERROR FETCHING] Body is required");
600
601
  return;
601
602
  }
602
- await pr.validate(t);
603
+ await gr.validate(t);
603
604
  const a = await ze({ apiUrl: e, body: t, fetchOptions: r });
604
605
  return Ge({
605
606
  apiUrl: e,
@@ -611,11 +612,11 @@ async function mr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
611
612
  fetchOptions: r
612
613
  });
613
614
  }
614
- const hr = c.object({
615
- orderFormId: c.string().nullable(),
616
- coupon: c.string().nullable()
615
+ const wr = l.object({
616
+ orderFormId: l.string().nullable(),
617
+ coupon: l.string().nullable()
617
618
  });
618
- async function fr({
619
+ async function vr({
619
620
  apiUrl: e,
620
621
  body: t,
621
622
  fetchOptions: r
@@ -624,7 +625,7 @@ async function fr({
624
625
  console.error("[ERROR FETCHING] Body is required");
625
626
  return;
626
627
  }
627
- await hr.validate(t);
628
+ await wr.validate(t);
628
629
  const { coupon: n = "", orderFormId: a } = t;
629
630
  return T(
630
631
  `${e}/api/checkout/pub/orderForm/${a}/coupons`,
@@ -635,12 +636,12 @@ async function fr({
635
636
  }
636
637
  );
637
638
  }
638
- const gr = c.object({
639
- appId: c.string().required("App ID is required"),
640
- orderFormId: c.string().nullable(),
641
- key: c.array().of(c.string())
639
+ const yr = l.object({
640
+ appId: l.string().required("App ID is required"),
641
+ orderFormId: l.string().nullable(),
642
+ key: l.array().of(l.string())
642
643
  });
643
- async function br({
644
+ async function _r({
644
645
  apiUrl: e,
645
646
  body: t,
646
647
  fetchOptions: r
@@ -649,7 +650,7 @@ async function br({
649
650
  console.error("[ERROR FETCHING] Body is required");
650
651
  return;
651
652
  }
652
- await gr.validate(t);
653
+ await yr.validate(t);
653
654
  const { appId: n = "faststore", orderFormId: a, key: o } = t;
654
655
  return T(
655
656
  `${e}/api/checkout/pub/orderForm/${a}/customData/${n}/${o}`,
@@ -659,23 +660,23 @@ async function br({
659
660
  }
660
661
  );
661
662
  }
662
- const wr = c.object().shape({
663
- name: c.string().required("Attachment name is required"),
664
- content: c.object().nullable()
663
+ const Rr = l.object().shape({
664
+ name: l.string().required("Attachment name is required"),
665
+ content: l.object().nullable()
665
666
  });
666
667
  var He;
667
- const vr = c.object().shape({
668
- attachments: (He = c.array().of(wr)) == null ? void 0 : He.nullable(),
669
- id: c.string().required("ID of SKU is required"),
670
- index: c.number().integer().nullable(),
671
- quantity: c.number().integer().nullable(),
672
- seller: c.string().required("Seller is required"),
673
- price: c.number().integer()
674
- }), yr = c.object({
675
- orderFormId: c.string().required("OrderFormId is required"),
676
- orderItems: c.array().of(vr)
668
+ const Ir = l.object().shape({
669
+ attachments: (He = l.array().of(Rr)) == null ? void 0 : He.nullable(),
670
+ id: l.string().required("ID of SKU is required"),
671
+ index: l.number().integer().nullable(),
672
+ quantity: l.number().integer().nullable(),
673
+ seller: l.string().required("Seller is required"),
674
+ price: l.number().integer()
675
+ }), Pr = l.object({
676
+ orderFormId: l.string().required("OrderFormId is required"),
677
+ orderItems: l.array().of(Ir)
677
678
  });
678
- async function _r({
679
+ async function xr({
679
680
  apiUrl: e,
680
681
  body: t,
681
682
  fetchOptions: r
@@ -684,7 +685,7 @@ async function _r({
684
685
  console.error("[ERROR FETCHING] Body is required");
685
686
  return;
686
687
  }
687
- await yr.validate(t);
688
+ await Pr.validate(t);
688
689
  const { orderFormId: n, orderItems: a } = t;
689
690
  return T(
690
691
  `${e}/api/checkout/pub/orderForm/${n}/items`,
@@ -695,10 +696,10 @@ async function _r({
695
696
  }
696
697
  );
697
698
  }
698
- const Rr = c.object({
699
- orderFormId: c.string().nullable()
699
+ const Sr = l.object({
700
+ orderFormId: l.string().nullable()
700
701
  });
701
- async function Ir({
702
+ async function Cr({
702
703
  apiUrl: e,
703
704
  body: t,
704
705
  fetchOptions: r
@@ -707,7 +708,7 @@ async function Ir({
707
708
  console.error("[ERROR FETCHING] Body is required");
708
709
  return;
709
710
  }
710
- await Rr.validate(t);
711
+ await Sr.validate(t);
711
712
  const { orderFormId: n } = t;
712
713
  return T(
713
714
  `${e}/api/checkout/pub/orderForm/${n}/items/removeAll`,
@@ -717,23 +718,23 @@ async function Ir({
717
718
  }
718
719
  );
719
720
  }
720
- const Pr = c.object().shape({
721
- name: c.string().required("Attachment name is required"),
722
- content: c.object().nullable()
721
+ const kr = l.object().shape({
722
+ name: l.string().required("Attachment name is required"),
723
+ content: l.object().nullable()
723
724
  });
724
725
  var Me;
725
- const xr = c.object().shape({
726
- attachments: (Me = c.array().of(Pr)) == null ? void 0 : Me.nullable(),
727
- id: c.string().required("ID of SKU is required"),
728
- index: c.number().integer().nullable(),
729
- quantity: c.number().integer().nullable(),
730
- seller: c.string().required("Seller is required"),
731
- price: c.number().integer()
732
- }), Sr = c.object({
733
- orderFormId: c.string().nullable(),
734
- orderItems: c.array().of(xr)
726
+ const Er = l.object().shape({
727
+ attachments: (Me = l.array().of(kr)) == null ? void 0 : Me.nullable(),
728
+ id: l.string().required("ID of SKU is required"),
729
+ index: l.number().integer().nullable(),
730
+ quantity: l.number().integer().nullable(),
731
+ seller: l.string().required("Seller is required"),
732
+ price: l.number().integer()
733
+ }), Ar = l.object({
734
+ orderFormId: l.string().nullable(),
735
+ orderItems: l.array().of(Er)
735
736
  });
736
- async function Cr({
737
+ async function Or({
737
738
  apiUrl: e,
738
739
  body: t,
739
740
  fetchOptions: r
@@ -742,7 +743,7 @@ async function Cr({
742
743
  console.error("[ERROR FETCHING] Body is required");
743
744
  return;
744
745
  }
745
- await Sr.validate(t);
746
+ await Ar.validate(t);
746
747
  const { orderFormId: n, orderItems: a } = t;
747
748
  return T(
748
749
  `${e}/api/checkout/pub/orderForm/${n}/items/update`,
@@ -753,10 +754,10 @@ async function Cr({
753
754
  }
754
755
  );
755
756
  }
756
- const kr = c.object({
757
- orderFormId: c.string().nullable()
757
+ const Tr = l.object({
758
+ orderFormId: l.string().nullable()
758
759
  });
759
- async function Ar({
760
+ async function qr({
760
761
  apiUrl: e,
761
762
  body: t,
762
763
  fetchOptions: r
@@ -765,7 +766,7 @@ async function Ar({
765
766
  console.error("[ERROR FETCHING] Body is required");
766
767
  return;
767
768
  }
768
- await kr.validate(t);
769
+ await Tr.validate(t);
769
770
  const { orderFormId: n } = t;
770
771
  return T(
771
772
  `${e}/api/checkout/pub/orderForm/${n}/messages/clear`,
@@ -775,56 +776,56 @@ async function Ar({
775
776
  }
776
777
  );
777
778
  }
778
- const Er = c.object({
779
- id: c.string().nullable(),
779
+ const Nr = l.object({
780
+ id: l.string().nullable(),
780
781
  // id offering
781
- itemIndex: c.number().nullable(),
782
- orderFormId: c.string().nullable(),
783
- remove: c.boolean().nullable()
782
+ itemIndex: l.number().nullable(),
783
+ orderFormId: l.string().nullable(),
784
+ remove: l.boolean().nullable()
784
785
  });
785
- async function Or({ apiUrl: e, body: t, fetchOptions: r }) {
786
+ async function jr({ apiUrl: e, body: t, fetchOptions: r }) {
786
787
  if (!t) {
787
788
  console.error("[ERROR FETCHING] Body is required");
788
789
  return;
789
790
  }
790
- await Er.validate(t);
791
- const { itemIndex: n, orderFormId: a, id: o, remove: l } = t, i = l ? `/${o}/remove` : "", d = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${i}`;
791
+ await Nr.validate(t);
792
+ const { itemIndex: n, orderFormId: a, id: o, remove: c } = t, i = c ? `/${o}/remove` : "", d = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${i}`;
792
793
  return T(d, {
793
794
  method: "POST",
794
795
  body: { id: o },
795
796
  ...r
796
797
  });
797
798
  }
798
- const Tr = c.object({
799
- orderFormId: c.string().nullable()
799
+ const $r = l.object({
800
+ orderFormId: l.string().nullable()
800
801
  });
801
- async function qr({
802
+ async function Fr({
802
803
  apiUrl: e,
803
804
  body: t,
804
805
  fetchOptions: r,
805
806
  extraData: n
806
807
  }) {
807
- var l;
808
+ var c;
808
809
  if (!t) {
809
810
  console.error("[ERROR FETCHING] Body is required");
810
811
  return;
811
812
  }
812
- await Tr.validate(t);
813
+ await $r.validate(t);
813
814
  const a = new URLSearchParams({
814
815
  refreshOutdatedData: "true"
815
- }), o = t.orderFormId && ((l = n.orderFormPurchaseId) == null ? void 0 : l.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(a)}` : `${e}/api/checkout/pub/orderForm`;
816
+ }), o = t.orderFormId && ((c = n.orderFormPurchaseId) == null ? void 0 : c.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(a)}` : `${e}/api/checkout/pub/orderForm`;
816
817
  return T(o, { method: "GET", ...r });
817
818
  }
818
- const Nr = c.object({
819
- orderFormId: c.string().nullable(),
820
- email: c.string().email().required(),
821
- firstName: c.string().required(),
822
- lastName: c.string().required(),
823
- documentType: c.string().required(),
824
- document: c.string().required(),
825
- phone: c.string().matches(/^\+\d{1,3}\d{10,11}$/)
819
+ const Lr = l.object({
820
+ orderFormId: l.string().nullable(),
821
+ email: l.string().email().required(),
822
+ firstName: l.string().required(),
823
+ lastName: l.string().required(),
824
+ documentType: l.string().required(),
825
+ document: l.string().required(),
826
+ phone: l.string().matches(/^\+\d{1,3}\d{10,11}$/)
826
827
  });
827
- async function jr({
828
+ async function Dr({
828
829
  apiUrl: e,
829
830
  body: t,
830
831
  fetchOptions: r
@@ -833,7 +834,7 @@ async function jr({
833
834
  console.error("[ERROR FETCHING] Body is required");
834
835
  return;
835
836
  }
836
- await Nr.validate(t);
837
+ await Lr.validate(t);
837
838
  const { orderFormId: n, ...a } = t;
838
839
  return T(
839
840
  `${e}/api/checkout/pub/orderForm/${n}/attachments/clientProfileData`,
@@ -844,10 +845,10 @@ async function jr({
844
845
  }
845
846
  );
846
847
  }
847
- const Fr = c.object({
848
- sellerCode: c.string().nullable()
848
+ const Ur = l.object({
849
+ sellerCode: l.string().nullable()
849
850
  });
850
- async function $r({
851
+ async function Hr({
851
852
  apiUrl: e,
852
853
  body: t,
853
854
  extraData: r,
@@ -857,7 +858,7 @@ async function $r({
857
858
  console.error("[ERROR FETCHING] Body is required");
858
859
  return;
859
860
  }
860
- await Fr.validate(t);
861
+ await Ur.validate(t);
861
862
  const { sellerCode: a = "" } = t;
862
863
  return T(
863
864
  `${e}/api/dataentities/${r.ENTITIES}/search?_fields=${r.FIELDS}&${r.FILTER}=${a}`,
@@ -870,12 +871,12 @@ async function $r({
870
871
  }
871
872
  );
872
873
  }
873
- const Lr = c.object().shape({
874
- country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
875
- orderFormId: c.string().nullable(),
876
- postalCode: c.string().nullable()
874
+ const Mr = l.object().shape({
875
+ country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
876
+ orderFormId: l.string().nullable(),
877
+ postalCode: l.string().nullable()
877
878
  });
878
- async function Dr({
879
+ async function Br({
879
880
  apiUrl: e,
880
881
  body: t,
881
882
  fetchOptions: r
@@ -884,8 +885,8 @@ async function Dr({
884
885
  console.error("[ERROR FETCHING] Body is required");
885
886
  return;
886
887
  }
887
- await Lr.validate(t);
888
- const { country: n, orderFormId: a, postalCode: o } = t, l = o ? {
888
+ await Mr.validate(t);
889
+ const { country: n, orderFormId: a, postalCode: o } = t, c = o ? {
889
890
  address: {
890
891
  addressType: "residential",
891
892
  postalCode: o,
@@ -899,45 +900,45 @@ async function Dr({
899
900
  `${e}/api/checkout/pub/orderForm/${a}/attachments/shippingData`,
900
901
  {
901
902
  method: "POST",
902
- body: l,
903
+ body: c,
903
904
  ...r
904
905
  }
905
906
  );
906
907
  }
907
- const Ur = c.object().shape({
908
- orderFormId: c.string().nullable(),
909
- options: c.array().of(
910
- c.object().shape({
911
- itemIndex: c.number(),
912
- selectedDeliveryChannel: c.string(),
913
- selectedSla: c.string()
908
+ const zr = l.object().shape({
909
+ orderFormId: l.string().nullable(),
910
+ options: l.array().of(
911
+ l.object().shape({
912
+ itemIndex: l.number(),
913
+ selectedDeliveryChannel: l.string(),
914
+ selectedSla: l.string()
914
915
  })
915
916
  ),
916
- selectedAddresses: c.array().of(
917
- c.object().shape({
918
- addressId: c.string().required(),
919
- addressType: c.string().required(),
920
- city: c.string().nullable(),
921
- complement: c.string().nullable(),
922
- country: c.string().required().length(3),
923
- geoCoordinates: c.array().of(c.number()).required().min(0),
924
- isDisposable: c.boolean().required(),
925
- neighborhood: c.string().nullable(),
926
- number: c.string().nullable(),
927
- postalCode: c.string().required(),
928
- receiverName: c.string().nullable(),
929
- reference: c.string().nullable(),
930
- state: c.string().nullable(),
931
- street: c.string().nullable()
917
+ selectedAddresses: l.array().of(
918
+ l.object().shape({
919
+ addressId: l.string().required(),
920
+ addressType: l.string().required(),
921
+ city: l.string().nullable(),
922
+ complement: l.string().nullable(),
923
+ country: l.string().required().length(3),
924
+ geoCoordinates: l.array().of(l.number()).required().min(0),
925
+ isDisposable: l.boolean().required(),
926
+ neighborhood: l.string().nullable(),
927
+ number: l.string().nullable(),
928
+ postalCode: l.string().required(),
929
+ receiverName: l.string().nullable(),
930
+ reference: l.string().nullable(),
931
+ state: l.string().nullable(),
932
+ street: l.string().nullable()
932
933
  })
933
934
  )
934
935
  });
935
- async function Hr({ apiUrl: e, body: t, fetchOptions: r }) {
936
+ async function Gr({ apiUrl: e, body: t, fetchOptions: r }) {
936
937
  if (!t) {
937
938
  console.error("[ERROR FETCHING] Body is required");
938
939
  return;
939
940
  }
940
- await Ur.validate(t);
941
+ await zr.validate(t);
941
942
  const { orderFormId: n, options: a, selectedAddresses: o } = t;
942
943
  return T(
943
944
  `${e}/api/checkout/pub/orderForm/${n}/attachments/shippingData`,
@@ -952,48 +953,48 @@ async function Hr({ apiUrl: e, body: t, fetchOptions: r }) {
952
953
  }
953
954
  );
954
955
  }
955
- const Mr = c.object({
956
- country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
957
- postalCode: c.string().nullable(),
958
- geoCoordinates: c.object().shape({
959
- longitude: c.number().required(),
960
- latitude: c.number().required()
956
+ const Vr = l.object({
957
+ country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
958
+ postalCode: l.string().nullable(),
959
+ geoCoordinates: l.object().shape({
960
+ longitude: l.number().required(),
961
+ latitude: l.number().required()
961
962
  })
962
963
  });
963
- async function Br({ apiUrl: e, body: t, fetchOptions: r }) {
964
+ async function Wr({ apiUrl: e, body: t, fetchOptions: r }) {
964
965
  if (!t) {
965
966
  console.error("[ERROR FETCHING] Body is required");
966
967
  return;
967
968
  }
968
- await Mr.validate(t);
969
- const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t, l = new URLSearchParams({ country: String(n) });
970
- return o ? l.append("postalCode", o) : l.append(
969
+ await Vr.validate(t);
970
+ const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t, c = new URLSearchParams({ country: String(n) });
971
+ return o ? c.append("postalCode", o) : c.append(
971
972
  "geoCoordinates",
972
973
  `${a == null ? void 0 : a.longitude};${a == null ? void 0 : a.latitude}`
973
974
  ), await T(
974
- `${e}/api/checkout/pub/regions/?${l.toString()}`,
975
+ `${e}/api/checkout/pub/regions/?${c.toString()}`,
975
976
  {
976
977
  method: "GET",
977
978
  ...r
978
979
  }
979
980
  );
980
981
  }
981
- const zr = c.object({
982
- id: c.string().required("ID of SKU is required"),
983
- quantity: c.number().integer().required("Quantity of item is required"),
984
- seller: c.string()
985
- }), Gr = c.object({
986
- items: c.array().of(zr),
987
- country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
988
- postalCode: c.string().nullable(),
989
- geoCoordinates: c.array().nullable().of(c.number()).length(2)
982
+ const Qr = l.object({
983
+ id: l.string().required("ID of SKU is required"),
984
+ quantity: l.number().integer().required("Quantity of item is required"),
985
+ seller: l.string()
986
+ }), Xr = l.object({
987
+ items: l.array().of(Qr),
988
+ country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
989
+ postalCode: l.string().nullable(),
990
+ geoCoordinates: l.array().nullable().of(l.number()).length(2)
990
991
  });
991
- async function Vr({ apiUrl: e, body: t, fetchOptions: r }) {
992
+ async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
992
993
  if (!t) {
993
994
  console.error("[ERROR FETCHING] Body is required");
994
995
  return;
995
996
  }
996
- return await Gr.validate(t), T(
997
+ return await Xr.validate(t), T(
997
998
  `${e}/api/checkout/pub/orderForms/simulation`,
998
999
  {
999
1000
  method: "POST",
@@ -1002,35 +1003,35 @@ async function Vr({ apiUrl: e, body: t, fetchOptions: r }) {
1002
1003
  }
1003
1004
  );
1004
1005
  }
1005
- const Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1006
+ const Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1006
1007
  __proto__: null,
1007
- getMasterDataSellerCode: $r,
1008
- getOrderForm: qr,
1009
- postOrderFormAddCoupon: fr,
1010
- postOrderFormAttachClientProfileData: jr,
1011
- postOrderFormAttachOrderFormData: mr,
1012
- postOrderFormAttachShippingData: Dr,
1008
+ getMasterDataSellerCode: Hr,
1009
+ getOrderForm: Fr,
1010
+ postOrderFormAddCoupon: vr,
1011
+ postOrderFormAttachClientProfileData: Dr,
1012
+ postOrderFormAttachOrderFormData: br,
1013
+ postOrderFormAttachShippingData: Br,
1013
1014
  postOrderFormAttachmentsMarketingData: Ge,
1014
1015
  postOrderFormAttachmentsOpenTextField: ze,
1015
- postOrderFormClearMessages: Ar,
1016
- postOrderFormFreightSimulation: Vr,
1017
- postOrderFormItems: _r,
1018
- postOrderFormRegion: Br,
1019
- postOrderFormRemoveAllItems: Ir,
1020
- postOrderFormUpdateItems: Cr,
1021
- postOrderFormUpdateShippingData: Hr,
1022
- postOrderformAddress: cr,
1023
- putOrderFormCustomData: br,
1024
- updateOrderFormOffering: Or
1025
- }, Symbol.toStringTag, { value: "Module" })), Qr = c.object({
1026
- skuId: c.string()
1016
+ postOrderFormClearMessages: qr,
1017
+ postOrderFormFreightSimulation: Kr,
1018
+ postOrderFormItems: xr,
1019
+ postOrderFormRegion: Wr,
1020
+ postOrderFormRemoveAllItems: Cr,
1021
+ postOrderFormUpdateItems: Or,
1022
+ postOrderFormUpdateShippingData: Gr,
1023
+ postOrderformAddress: mr,
1024
+ putOrderFormCustomData: _r,
1025
+ updateOrderFormOffering: jr
1026
+ }, Symbol.toStringTag, { value: "Module" })), Jr = l.object({
1027
+ skuId: l.string()
1027
1028
  });
1028
- async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
1029
+ async function Yr({ apiUrl: e, body: t, fetchOptions: r }) {
1029
1030
  if (!t) {
1030
1031
  console.error("[ERROR FETCHING] Body is required");
1031
1032
  return;
1032
1033
  }
1033
- await Qr.validate(t);
1034
+ await Jr.validate(t);
1034
1035
  const { skuId: n } = t;
1035
1036
  return T(
1036
1037
  `${e}/api/catalog/pvt/stockkeepingunitkit?parentSkuId=${n}`,
@@ -1039,15 +1040,15 @@ async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
1039
1040
  }
1040
1041
  );
1041
1042
  }
1042
- const Xr = c.object({
1043
- ids: c.array().of(c.string().required("ID are required")).required("IDs are required")
1043
+ const en = l.object({
1044
+ ids: l.array().of(l.string().required("ID are required")).required("IDs are required")
1044
1045
  });
1045
- async function Zr({ apiUrl: e, body: t, fetchOptions: r }) {
1046
+ async function tn({ apiUrl: e, body: t, fetchOptions: r }) {
1046
1047
  if (!t) {
1047
1048
  console.error("[ERROR FETCHING] Body is required");
1048
1049
  return;
1049
1050
  }
1050
- await Xr.validate(t);
1051
+ await en.validate(t);
1051
1052
  const { ids: n } = t;
1052
1053
  return T(
1053
1054
  `${e}/api/catalog_system/pub/products/search?fq=${n.map((a) => `productId:${a}`).join("&fq=")}`,
@@ -1056,15 +1057,15 @@ async function Zr({ apiUrl: e, body: t, fetchOptions: r }) {
1056
1057
  }
1057
1058
  );
1058
1059
  }
1059
- const Jr = c.object({
1060
- productId: c.number().required("Product ID is required")
1060
+ const rn = l.object({
1061
+ productId: l.number().required("Product ID is required")
1061
1062
  });
1062
- async function Yr({ apiUrl: e, body: t, fetchOptions: r }) {
1063
+ async function nn({ apiUrl: e, body: t, fetchOptions: r }) {
1063
1064
  if (!t) {
1064
1065
  console.error("[ERROR FETCHING] Body is required");
1065
1066
  return;
1066
1067
  }
1067
- await Jr.validate(t);
1068
+ await rn.validate(t);
1068
1069
  const { productId: n } = t;
1069
1070
  return T(
1070
1071
  `${e}/api/catalog_system/pub/products/crossselling/similars/${n.toString()}`,
@@ -1073,7 +1074,7 @@ async function Yr({ apiUrl: e, body: t, fetchOptions: r }) {
1073
1074
  }
1074
1075
  );
1075
1076
  }
1076
- async function en({
1077
+ async function an({
1077
1078
  apiUrl: e,
1078
1079
  params: t,
1079
1080
  fetchOptions: r
@@ -1085,16 +1086,16 @@ async function en({
1085
1086
  }
1086
1087
  ) : (console.error("[ERROR FETCHING] slug is required"), null);
1087
1088
  }
1088
- const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1089
+ const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1089
1090
  __proto__: null,
1090
- getCatalogKitProducts: Kr,
1091
- getCatalogPageInfo: en,
1092
- getCatalogProducts: Zr,
1093
- getCatalogSimilars: Yr
1094
- }, Symbol.toStringTag, { value: "Module" })), rn = c.object({
1095
- query: c.string()
1091
+ getCatalogKitProducts: Yr,
1092
+ getCatalogPageInfo: an,
1093
+ getCatalogProducts: tn,
1094
+ getCatalogSimilars: nn
1095
+ }, Symbol.toStringTag, { value: "Module" })), sn = l.object({
1096
+ query: l.string()
1096
1097
  });
1097
- async function nn({
1098
+ async function ln({
1098
1099
  apiUrl: e,
1099
1100
  body: t,
1100
1101
  fetchOptions: r
@@ -1103,7 +1104,7 @@ async function nn({
1103
1104
  console.error("[ERROR FETCHING] Body is required");
1104
1105
  return;
1105
1106
  }
1106
- await rn.validate(t);
1107
+ await sn.validate(t);
1107
1108
  const { query: n = "" } = t, a = new URLSearchParams({ query: n });
1108
1109
  return T(
1109
1110
  `${e}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${a.toString()}`,
@@ -1112,10 +1113,10 @@ async function nn({
1112
1113
  }
1113
1114
  );
1114
1115
  }
1115
- const an = (e, t) => Dt(e, t), on = (e) => ({
1116
+ const cn = (e, t) => Mt(e, t), un = (e) => ({
1116
1117
  ...e,
1117
- description: e.description ? an(e.description) : e.description
1118
- }), sn = ({
1118
+ description: e.description ? cn(e.description) : e.description
1119
+ }), dn = ({
1119
1120
  offer: e,
1120
1121
  seller: t,
1121
1122
  product: r
@@ -1125,8 +1126,8 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1125
1126
  seller: t
1126
1127
  }), Ve = (e, t) => ({
1127
1128
  ...e,
1128
- isVariantOf: on(t)
1129
- }), ln = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ie = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, cn = (e) => e.Price ?? 0, We = (e, t) => ie(e) && !ie(t) ? -1 : !ie(e) && ie(t) ? 1 : Le(e) - Le(t), un = (e, t) => {
1129
+ isVariantOf: un(t)
1130
+ }), pn = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ie = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, mn = (e) => e.Price ?? 0, We = (e, t) => ie(e) && !ie(t) ? -1 : !ie(e) && ie(t) ? 1 : Le(e) - Le(t), fn = (e, t) => {
1130
1131
  let r = 0;
1131
1132
  for (let n = 1; n < e.length; n++)
1132
1133
  t(e[r], e[n]) > 0 && (r = n);
@@ -1137,12 +1138,12 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1137
1138
  offer: a.commertialOffer,
1138
1139
  sku: n
1139
1140
  }))
1140
- ), r = un(
1141
+ ), r = fn(
1141
1142
  t,
1142
1143
  ({ offer: n }, { offer: a }) => We(n, a)
1143
1144
  );
1144
1145
  return r ? r.sku : e[0];
1145
- }, Ke = (e) => e.map(
1146
+ }, Xe = (e) => e.map(
1146
1147
  ({ imageUrl: t, imageText: r, imageLabel: n }) => ({
1147
1148
  alternateName: r ?? "",
1148
1149
  url: t.replace("vteximg.com.br", "vtexassets.com"),
@@ -1152,11 +1153,11 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1152
1153
  attachment: "ATTACHMENT",
1153
1154
  specification: "SPECIFICATION",
1154
1155
  attribute: "ATTRIBUTE"
1155
- }, dn = (e) => ({
1156
+ }, hn = (e) => ({
1156
1157
  name: e.name,
1157
1158
  value: e.content,
1158
1159
  valueReference: ce.attachment
1159
- }), pn = (e) => ({
1160
+ }), gn = (e) => ({
1160
1161
  propertyID: e.id,
1161
1162
  name: e.name,
1162
1163
  value: e.value,
@@ -1165,31 +1166,31 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1165
1166
  visible: e.visible
1166
1167
  }
1167
1168
  }), ue = (e, t, r) => {
1168
- const n = e.flatMap(({ name: l, values: i }) => i ? i.map((d) => ({
1169
- name: l,
1169
+ const n = e.flatMap(({ name: c, values: i }) => i ? i.map((d) => ({
1170
+ name: c,
1170
1171
  value: d,
1171
1172
  valueReference: ce.specification
1172
1173
  })) : {
1173
- name: l,
1174
+ name: c,
1174
1175
  value: "",
1175
1176
  valueReference: ce.specification
1176
- }), a = Array.isArray(r) ? r.map(dn) : [], o = t ? t.map(pn) : [];
1177
+ }), a = Array.isArray(r) ? r.map(hn) : [], o = t ? t.map(gn) : [];
1177
1178
  return [
1178
1179
  ...n,
1179
1180
  ...a,
1180
1181
  ...o
1181
1182
  ];
1182
- }, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", mn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", hn = (e) => {
1183
+ }, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", bn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", wn = (e) => {
1183
1184
  let t = e.slice(0);
1184
1185
  for (let r = 0; r < De.length; r++)
1185
1186
  t = t.replace(
1186
1187
  new RegExp(De.charAt(r), "g"),
1187
- mn.charAt(r)
1188
+ bn.charAt(r)
1188
1189
  );
1189
1190
  return t;
1190
- }, fn = (e) => e.replace(/[·/_,:]/, "-"), Xe = (e) => {
1191
+ }, vn = (e) => e.replace(/[·/_,:]/, "-"), Ke = (e) => {
1191
1192
  const r = e.replace(/,/g, "").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g, "-");
1192
- return fn(hn(r)).toLowerCase();
1193
+ return vn(wn(r)).toLowerCase();
1193
1194
  }, Ze = (e) => `/${e}/p`, Je = (e) => {
1194
1195
  const t = Math.max(
1195
1196
  ...e.map((n) => n.NumberOfInstallments)
@@ -1206,7 +1207,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1206
1207
  listPrice: 0,
1207
1208
  sellerDefault: !1
1208
1209
  }, a = e.map(
1209
- (o) => sn({
1210
+ (o) => dn({
1210
1211
  offer: o.commertialOffer,
1211
1212
  seller: o,
1212
1213
  product: t
@@ -1214,7 +1215,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1214
1215
  ).sort(We).map((o) => (o.seller.sellerId === "1" && o.AvailableQuantity > 0 && (r.price = o.Price, r.listPrice = o.ListPrice, r.sellerDefault = !0), {
1215
1216
  availability: o.AvailableQuantity > 0,
1216
1217
  listPrice: o.ListPrice,
1217
- price: cn(o),
1218
+ price: mn(o),
1218
1219
  priceValidUntil: o.PriceValidUntil,
1219
1220
  priceCurrency: "BRL",
1220
1221
  installments: o.Installments,
@@ -1235,20 +1236,20 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1235
1236
  additionalProperty: ue(o, t, []),
1236
1237
  name: n,
1237
1238
  offers: {
1238
- offers: a == null ? void 0 : a.map(({ sellerId: l, commertialOffer: i }) => ({
1239
- availability: ln(i.AvailableQuantity > 0),
1239
+ offers: a == null ? void 0 : a.map(({ sellerId: c, commertialOffer: i }) => ({
1240
+ availability: pn(i.AvailableQuantity > 0),
1240
1241
  listPrice: i.ListPrice,
1241
1242
  price: i.Price,
1242
1243
  quantity: i.AvailableQuantity,
1243
1244
  seller: {
1244
- identifier: l
1245
+ identifier: c
1245
1246
  }
1246
1247
  }))
1247
1248
  },
1248
1249
  sku: r
1249
1250
  // slug: getSlug('', itemId), // getSlug('', itemId) que tipo de slug é esse?
1250
1251
  };
1251
- }, gn = (e) => {
1252
+ }, yn = (e) => {
1252
1253
  var R;
1253
1254
  const {
1254
1255
  attributes: t,
@@ -1256,7 +1257,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1256
1257
  isVariantOf: n,
1257
1258
  images: a,
1258
1259
  itemId: o,
1259
- name: l,
1260
+ name: c,
1260
1261
  sellers: i,
1261
1262
  videos: d,
1262
1263
  variations: g
@@ -1270,20 +1271,20 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1270
1271
  clusterHighlights: p,
1271
1272
  productName: b,
1272
1273
  properties: m,
1273
- productId: h,
1274
- productReference: f
1275
- } = n, A = u.slice().reverse(), N = Ye(i, e.isVariantOf), I = Je(N.offers[0].installments);
1274
+ productId: f,
1275
+ productReference: h
1276
+ } = n, E = u.slice().reverse(), N = Ye(i, e.isVariantOf), I = Je(N.offers[0].installments);
1276
1277
  return {
1277
1278
  sku: o,
1278
- gtin: ((R = r == null ? void 0 : r[0]) == null ? void 0 : R.Value) ?? f ?? "",
1279
- name: b ?? l,
1279
+ gtin: ((R = r == null ? void 0 : r[0]) == null ? void 0 : R.Value) ?? h ?? "",
1280
+ name: b ?? c,
1280
1281
  description: v,
1281
1282
  releaseDate: n.releaseDate ?? "",
1282
1283
  slug: y,
1283
1284
  video: d[0],
1284
1285
  categories: u,
1285
1286
  categoriesIds: w,
1286
- id: h,
1287
+ id: f,
1287
1288
  brand: { name: s, brandName: s },
1288
1289
  seo: {
1289
1290
  description: v,
@@ -1298,8 +1299,8 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1298
1299
  availability: { status: N.offers[0].availability },
1299
1300
  breadcrumbList: {
1300
1301
  itemListElement: [
1301
- ...A.map((C, j) => {
1302
- const $ = C.split("/"), D = $[$.length - 2], U = $.map(Xe).join("/");
1302
+ ...E.map((C, j) => {
1303
+ const F = C.split("/"), D = F[F.length - 2], U = F.map(Ke).join("/");
1303
1304
  return {
1304
1305
  name: D,
1305
1306
  item: U,
@@ -1314,7 +1315,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1314
1315
  ],
1315
1316
  numberOfItems: u.length
1316
1317
  },
1317
- image: Ke(a),
1318
+ image: Xe(a),
1318
1319
  offers: N,
1319
1320
  additionalProperty: ue(g, t, []),
1320
1321
  isVariantOf: {
@@ -1323,7 +1324,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1323
1324
  },
1324
1325
  installments: I
1325
1326
  };
1326
- }, bn = (e) => {
1327
+ }, _n = (e) => {
1327
1328
  var I;
1328
1329
  const {
1329
1330
  attributes: t,
@@ -1331,7 +1332,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1331
1332
  isVariantOf: n,
1332
1333
  images: a,
1333
1334
  itemId: o,
1334
- name: l,
1335
+ name: c,
1335
1336
  sellers: i,
1336
1337
  Videos: d,
1337
1338
  variations: g
@@ -1345,12 +1346,12 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1345
1346
  productName: p,
1346
1347
  Coleção: b,
1347
1348
  "ID Coleção": m,
1348
- productId: h
1349
- } = n, f = u.slice().reverse(), A = Ye(i, e.isVariantOf), N = Je(A.offers[0].installments);
1349
+ productId: f
1350
+ } = n, h = u.slice().reverse(), E = Ye(i, e.isVariantOf), N = Je(E.offers[0].installments);
1350
1351
  return {
1351
1352
  sku: o,
1352
1353
  gtin: ((I = r[0]) == null ? void 0 : I.Value) ?? "",
1353
- name: p ?? l,
1354
+ name: p ?? c,
1354
1355
  description: v,
1355
1356
  releaseDate: n.releaseDate ?? "",
1356
1357
  slug: y,
@@ -1359,7 +1360,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1359
1360
  categoriesIds: w,
1360
1361
  collection: b,
1361
1362
  collectionId: m,
1362
- id: h,
1363
+ id: f,
1363
1364
  brand: { name: s, brandName: s },
1364
1365
  seo: {
1365
1366
  description: v,
@@ -1371,13 +1372,13 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1371
1372
  highlights: []
1372
1373
  // TODO: add highlights
1373
1374
  },
1374
- availability: { status: A.offers[0].availability },
1375
+ availability: { status: E.offers[0].availability },
1375
1376
  breadcrumbList: {
1376
1377
  itemListElement: [
1377
- ...f.map((R, C) => {
1378
- const j = R.split("/"), $ = j[j.length - 2], D = j.map(Xe).join("/");
1378
+ ...h.map((R, C) => {
1379
+ const j = R.split("/"), F = j[j.length - 2], D = j.map(Ke).join("/");
1379
1380
  return {
1380
- name: $,
1381
+ name: F,
1381
1382
  item: D,
1382
1383
  position: C + 1
1383
1384
  };
@@ -1390,15 +1391,15 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1390
1391
  ],
1391
1392
  numberOfItems: u.length
1392
1393
  },
1393
- image: Ke(a),
1394
- offers: A,
1394
+ image: Xe(a),
1395
+ offers: E,
1395
1396
  additionalProperty: ue(g, t, []),
1396
1397
  isVariantOf: {
1397
1398
  productGroupID: n.productId,
1398
1399
  hasVariant: n.items.map((R) => {
1399
- const { variations: C } = R, j = C.map(($) => ({
1400
- name: $,
1401
- values: R[$]
1400
+ const { variations: C } = R, j = C.map((F) => ({
1401
+ name: F,
1402
+ values: R[F]
1402
1403
  }));
1403
1404
  return {
1404
1405
  ...et(R),
@@ -1412,13 +1413,13 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
1412
1413
  },
1413
1414
  installments: N
1414
1415
  };
1415
- }, wn = c.array().of(
1416
- c.object({
1417
- key: c.string().required(),
1418
- value: c.string().required()
1416
+ }, Rn = l.array().of(
1417
+ l.object({
1418
+ key: l.string().required(),
1419
+ value: l.string().required()
1419
1420
  })
1420
1421
  ).required("Facets are required");
1421
- async function vn({
1422
+ async function In({
1422
1423
  apiUrl: e,
1423
1424
  body: t,
1424
1425
  fetchOptions: r
@@ -1427,18 +1428,18 @@ async function vn({
1427
1428
  console.error("[ERROR FETCHING] Body is required");
1428
1429
  return;
1429
1430
  }
1430
- await wn.validate(t);
1431
- const n = new URLSearchParams({}), a = t.map(({ key: l, value: i }) => `${l}/${i}`).join("/");
1431
+ await Rn.validate(t);
1432
+ const n = new URLSearchParams({}), a = t.map(({ key: c, value: i }) => `${c}/${i}`).join("/");
1432
1433
  _t(t, n);
1433
1434
  const o = `${e}/api/catalog_system/pub/products/crossselling/${a}`;
1434
1435
  return T(o, {
1435
1436
  cache: "no-store",
1436
1437
  ...r
1437
- }).then((l) => l.map((d) => {
1438
+ }).then((c) => c.map((d) => {
1438
1439
  const g = Qe(d.items);
1439
1440
  return g && Ve(g, d);
1440
1441
  }).filter((d) => !!d).map((d) => ({
1441
- node: bn(d)
1442
+ node: _n(d)
1442
1443
  })));
1443
1444
  }
1444
1445
  const tt = ({
@@ -1454,7 +1455,7 @@ const tt = ({
1454
1455
  const {
1455
1456
  query: a = "",
1456
1457
  page: o = 1,
1457
- count: l,
1458
+ count: c,
1458
1459
  sort: i = "",
1459
1460
  facets: d = [],
1460
1461
  type: g,
@@ -1462,7 +1463,7 @@ const tt = ({
1462
1463
  locale: u = ""
1463
1464
  } = t, w = new URLSearchParams({
1464
1465
  page: o.toString(),
1465
- count: (l == null ? void 0 : l.toString()) ?? (n == null ? void 0 : n.ITEMS_PER_PAGE) ?? 24,
1466
+ count: (c == null ? void 0 : c.toString()) ?? (n == null ? void 0 : n.ITEMS_PER_PAGE) ?? 24,
1466
1467
  query: a,
1467
1468
  sort: i,
1468
1469
  locale: u
@@ -1480,7 +1481,7 @@ const tt = ({
1480
1481
  }
1481
1482
  );
1482
1483
  };
1483
- async function yn({
1484
+ async function Pn({
1484
1485
  body: e,
1485
1486
  extraData: t,
1486
1487
  ...r
@@ -1499,25 +1500,25 @@ async function yn({
1499
1500
  }), a = (n == null ? void 0 : n.products.map((i) => {
1500
1501
  const d = Qe(i.items);
1501
1502
  return d && Ve(d, i);
1502
- }).filter((i) => !!i)) ?? [], { pagination: o, recordsFiltered: l } = n;
1503
+ }).filter((i) => !!i)) ?? [], { pagination: o, recordsFiltered: c } = n;
1503
1504
  return {
1504
1505
  data: {
1505
1506
  pagination: {
1506
1507
  nextPage: o.after.length > 0,
1507
1508
  previousPage: o.before.length > 0,
1508
1509
  startCursor: "0",
1509
- endCursor: l.toString(),
1510
- count: l,
1510
+ endCursor: c.toString(),
1511
+ count: c,
1511
1512
  total: o.count
1512
1513
  },
1513
1514
  products: a.map((i, d) => ({
1514
- node: gn(i),
1515
+ node: yn(i),
1515
1516
  cursor: d.toString()
1516
1517
  }))
1517
1518
  }
1518
1519
  };
1519
1520
  }
1520
- async function _n({ body: e, extraData: t, ...r }) {
1521
+ async function xn({ body: e, extraData: t, ...r }) {
1521
1522
  if (!e) {
1522
1523
  console.error("[ERROR FETCHING] Body is required");
1523
1524
  return;
@@ -1537,16 +1538,16 @@ async function _n({ body: e, extraData: t, ...r }) {
1537
1538
  }
1538
1539
  };
1539
1540
  }
1540
- const Rn = c.object({
1541
- query: c.string().optional(),
1542
- locale: c.string().optional()
1541
+ const Sn = l.object({
1542
+ query: l.string().optional(),
1543
+ locale: l.string().optional()
1543
1544
  });
1544
- async function In({ apiUrl: e, body: t, fetchOptions: r }) {
1545
+ async function Cn({ apiUrl: e, body: t, fetchOptions: r }) {
1545
1546
  if (!t) {
1546
1547
  console.error("[ERROR FETCHING] Body is required");
1547
1548
  return;
1548
1549
  }
1549
- await Rn.validate(t);
1550
+ await Sn.validate(t);
1550
1551
  const { query: n = "", locale: a = "default_locale" } = t, o = new URLSearchParams({ query: n, locale: a });
1551
1552
  return T(
1552
1553
  `${e}/api/io/_v/api/intelligent-search/search_suggestions?${o.toString()}`,
@@ -1555,22 +1556,22 @@ async function In({ apiUrl: e, body: t, fetchOptions: r }) {
1555
1556
  }
1556
1557
  );
1557
1558
  }
1558
- async function Pn({ apiUrl: e }) {
1559
+ async function kn({ apiUrl: e }) {
1559
1560
  return T(`${e}/api/io/_v/api/intelligent-search/top_searches`);
1560
1561
  }
1561
- const xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1562
+ const En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1562
1563
  __proto__: null,
1563
- getSearchAutoCompleteSuggestions: nn,
1564
- getSearchCrossellingProducts: vn,
1565
- getSearchFacets: _n,
1566
- getSearchProducts: yn,
1567
- getSearchSuggestedTerms: In,
1568
- getSearchTopSearchs: Pn
1569
- }, Symbol.toStringTag, { value: "Module" })), Sn = c.object({
1570
- masterDataEntity: c.string().nonNullable(),
1571
- payload: c.object().shape({}).nullable()
1564
+ getSearchAutoCompleteSuggestions: ln,
1565
+ getSearchCrossellingProducts: In,
1566
+ getSearchFacets: xn,
1567
+ getSearchProducts: Pn,
1568
+ getSearchSuggestedTerms: Cn,
1569
+ getSearchTopSearchs: kn
1570
+ }, Symbol.toStringTag, { value: "Module" })), An = l.object({
1571
+ masterDataEntity: l.string().nonNullable(),
1572
+ payload: l.object().shape({}).nullable()
1572
1573
  });
1573
- async function Cn({
1574
+ async function On({
1574
1575
  apiUrl: e,
1575
1576
  body: t,
1576
1577
  fetchOptions: r
@@ -1579,7 +1580,7 @@ async function Cn({
1579
1580
  console.error("[ERROR FETCHING] Body is required");
1580
1581
  return;
1581
1582
  }
1582
- await Sn.validate(t);
1583
+ await An.validate(t);
1583
1584
  const { masterDataEntity: n, payload: a } = t, o = `${e}/api/dataentities/${n}/documents`;
1584
1585
  return T(o, {
1585
1586
  method: "POST",
@@ -1589,21 +1590,21 @@ async function Cn({
1589
1590
  ...r
1590
1591
  });
1591
1592
  }
1592
- const kn = c.object().shape({
1593
- _where: c.string().optional(),
1594
- _fields: c.string().optional(),
1595
- _sort: c.string().optional(),
1596
- _from: c.number().integer().min(0).optional(),
1597
- _to: c.number().integer().min(0).optional(),
1598
- _keyword: c.string().optional()
1599
- }), An = c.object({
1600
- masterDataEntity: c.string().required(),
1601
- searchFields: kn,
1602
- headers: c.object().shape({
1603
- "REST-Range": c.string().notRequired()
1593
+ const Tn = l.object().shape({
1594
+ _where: l.string().optional(),
1595
+ _fields: l.string().optional(),
1596
+ _sort: l.string().optional(),
1597
+ _from: l.number().integer().min(0).optional(),
1598
+ _to: l.number().integer().min(0).optional(),
1599
+ _keyword: l.string().optional()
1600
+ }), qn = l.object({
1601
+ masterDataEntity: l.string().required(),
1602
+ searchFields: Tn,
1603
+ headers: l.object().shape({
1604
+ "REST-Range": l.string().notRequired()
1604
1605
  })
1605
1606
  });
1606
- async function En({
1607
+ async function Nn({
1607
1608
  apiUrl: e,
1608
1609
  body: t,
1609
1610
  fetchOptions: r
@@ -1613,8 +1614,8 @@ async function En({
1613
1614
  return;
1614
1615
  }
1615
1616
  const n = new URLSearchParams();
1616
- await An.validate(t);
1617
- const { masterDataEntity: a, searchFields: o, headers: l } = t;
1617
+ await qn.validate(t);
1618
+ const { masterDataEntity: a, searchFields: o, headers: c } = t;
1618
1619
  o && Object.entries(o).forEach(([g, s]) => {
1619
1620
  n.append(g, String(s));
1620
1621
  }), "_fields" in o || n == null || n.append("_fields", "_all");
@@ -1626,7 +1627,7 @@ async function En({
1626
1627
  {
1627
1628
  method: "GET",
1628
1629
  headers: {
1629
- "REST-Range": (l == null ? void 0 : l["REST-Range"]) ?? "resources=0-100",
1630
+ "REST-Range": (c == null ? void 0 : c["REST-Range"]) ?? "resources=0-100",
1630
1631
  ...r == null ? void 0 : r.headers
1631
1632
  },
1632
1633
  cache: "no-store"
@@ -1641,12 +1642,12 @@ async function En({
1641
1642
  } while (d);
1642
1643
  return i;
1643
1644
  }
1644
- const On = c.object({
1645
- dataEntityName: c.string().required(),
1646
- id: c.string().required(),
1647
- fieldsToBeUpdated: c.object().shape({})
1645
+ const jn = l.object({
1646
+ dataEntityName: l.string().required(),
1647
+ id: l.string().required(),
1648
+ fieldsToBeUpdated: l.object().shape({})
1648
1649
  });
1649
- async function Tn({
1650
+ async function $n({
1650
1651
  apiUrl: e,
1651
1652
  body: t,
1652
1653
  fetchOptions: r
@@ -1655,9 +1656,9 @@ async function Tn({
1655
1656
  console.error("[ERROR FETCHING] Body is required");
1656
1657
  return;
1657
1658
  }
1658
- await On.validate(t);
1659
- const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t, l = `${e}/api/dataentities/${n}/documents/${a}`;
1660
- return T(l, {
1659
+ await jn.validate(t);
1660
+ const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t, c = `${e}/api/dataentities/${n}/documents/${a}`;
1661
+ return T(c, {
1661
1662
  body: {
1662
1663
  fieldsToBeUpdated: o
1663
1664
  },
@@ -1665,28 +1666,28 @@ async function Tn({
1665
1666
  ...r
1666
1667
  });
1667
1668
  }
1668
- const qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1669
+ const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1669
1670
  __proto__: null,
1670
- getSearchMasterdata: En,
1671
- patchUpdateMasterdata: Tn,
1672
- postMasterdata: Cn
1671
+ getSearchMasterdata: Nn,
1672
+ patchUpdateMasterdata: $n,
1673
+ postMasterdata: On
1673
1674
  }, Symbol.toStringTag, { value: "Module" }));
1674
- async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1675
+ async function Ln({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1675
1676
  const { productIds: a } = e;
1676
1677
  if (!a)
1677
1678
  return console.error("[ERROR FETCHING] productIds is required"), [];
1678
1679
  const { NAME_SPLIT_SYMBOL: o } = r;
1679
1680
  if (!o)
1680
1681
  return console.error("[ERROR FETCHING] NAME_SPLIT_SYMBOL is required"), [];
1681
- const l = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), i = await T(
1682
- `${t}/api/catalog_system/pub/products/search?fq=${l}`,
1682
+ const c = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), i = await T(
1683
+ `${t}/api/catalog_system/pub/products/search?fq=${c}`,
1683
1684
  {
1684
1685
  ...n
1685
1686
  }
1686
1687
  ), d = (s) => Object.keys(s).map((u) => ({ id: u, name: s[u] }));
1687
1688
  return i.map((s, u) => {
1688
- var h;
1689
- const { installments: w, price: v, listPrice: y, sizes: _, allSizesAvailable: p } = Pt({ items: s.items, NAME_SPLIT_SYMBOL: o }), b = p ? !0 : _.some((f) => f.available), m = s.items[0].sellers[0].commertialOffer;
1689
+ var f;
1690
+ const { installments: w, price: v, listPrice: y, sizes: _, allSizesAvailable: p } = Pt({ items: s.items, NAME_SPLIT_SYMBOL: o }), b = p ? !0 : _.some((h) => h.available), m = s.items[0].sellers[0].commertialOffer;
1690
1691
  return {
1691
1692
  node: {
1692
1693
  sku: s.items[0].itemId,
@@ -1716,12 +1717,12 @@ async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1716
1717
  },
1717
1718
  image: s.items[0].images.map(
1718
1719
  ({
1719
- imageLabel: f,
1720
- imageUrl: A
1720
+ imageLabel: h,
1721
+ imageUrl: E
1721
1722
  }) => ({
1722
- alternateName: f,
1723
- url: A,
1724
- keywords: f
1723
+ alternateName: h,
1724
+ url: E,
1725
+ keywords: h
1725
1726
  })
1726
1727
  ),
1727
1728
  offers: {
@@ -1743,27 +1744,27 @@ async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1743
1744
  }
1744
1745
  ]
1745
1746
  },
1746
- additionalProperty: (h = s == null ? void 0 : s.skuSpecifications) == null ? void 0 : h.map((f) => ({
1747
+ additionalProperty: (f = s == null ? void 0 : s.skuSpecifications) == null ? void 0 : f.map((h) => ({
1747
1748
  name: s == null ? void 0 : s.skuSpecifications[0].field.name,
1748
- value: f,
1749
+ value: h,
1749
1750
  valueReference: "SPECIFICATION"
1750
1751
  })),
1751
1752
  isVariantOf: {
1752
1753
  productGroupID: s.productId,
1753
- hasVariant: s.items.map((f) => {
1754
- var A;
1754
+ hasVariant: s.items.map((h) => {
1755
+ var E;
1755
1756
  return {
1756
- additionalProperty: f == null ? void 0 : f.variations.map(() => {
1757
+ additionalProperty: h == null ? void 0 : h.variations.map(() => {
1757
1758
  var N, I, R;
1758
1759
  return {
1759
- name: (N = f == null ? void 0 : f.variations) == null ? void 0 : N[0],
1760
- value: (R = f == null ? void 0 : f[(I = f == null ? void 0 : f.variations) == null ? void 0 : I[0]]) == null ? void 0 : R[0],
1760
+ name: (N = h == null ? void 0 : h.variations) == null ? void 0 : N[0],
1761
+ value: (R = h == null ? void 0 : h[(I = h == null ? void 0 : h.variations) == null ? void 0 : I[0]]) == null ? void 0 : R[0],
1761
1762
  valueReference: "SPECIFICATION"
1762
1763
  };
1763
1764
  }),
1764
- name: f.name,
1765
+ name: h.name,
1765
1766
  offers: {
1766
- offers: (A = f.sellers) == null ? void 0 : A.map(
1767
+ offers: (E = h.sellers) == null ? void 0 : E.map(
1767
1768
  ({ commertialOffer: N, sellerId: I }) => ({
1768
1769
  availability: "https://schema.org/InStock",
1769
1770
  listPrice: N.ListPrice,
@@ -1775,8 +1776,8 @@ async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1775
1776
  })
1776
1777
  )
1777
1778
  },
1778
- sku: f.itemId,
1779
- slug: `-${f.itemId}`
1779
+ sku: h.itemId,
1780
+ slug: `-${h.itemId}`
1780
1781
  };
1781
1782
  })
1782
1783
  },
@@ -1786,9 +1787,9 @@ async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1786
1787
  };
1787
1788
  });
1788
1789
  }
1789
- const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1790
+ const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1790
1791
  __proto__: null,
1791
- getWishlistProducts: Nn
1792
+ getWishlistProducts: Ln
1792
1793
  }, Symbol.toStringTag, { value: "Module" }));
1793
1794
  var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
1794
1795
  (function(e) {
@@ -1804,8 +1805,8 @@ var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
1804
1805
  function r(n, a) {
1805
1806
  if (!n.startsWith("/") || !a)
1806
1807
  return n;
1807
- const { pathname: o, query: l, hash: i } = (0, t.parsePath)(n);
1808
- return "" + o + a + l + i;
1808
+ const { pathname: o, query: c, hash: i } = (0, t.parsePath)(n);
1809
+ return "" + o + a + c + i;
1809
1810
  }
1810
1811
  })(at);
1811
1812
  (function(e) {
@@ -1818,9 +1819,9 @@ var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
1818
1819
  }
1819
1820
  });
1820
1821
  const t = Ct, r = kt, n = at, a = St;
1821
- function o(l) {
1822
- let i = (0, a.addLocale)(l.pathname, l.locale, l.buildId ? void 0 : l.defaultLocale, l.ignorePrefix);
1823
- return (l.buildId || !l.trailingSlash) && (i = (0, t.removeTrailingSlash)(i)), l.buildId && (i = (0, n.addPathSuffix)((0, r.addPathPrefix)(i, "/_next/data/" + l.buildId), l.pathname === "/" ? "index.json" : ".json")), i = (0, r.addPathPrefix)(i, l.basePath), !l.buildId && l.trailingSlash ? i.endsWith("/") ? i : (0, n.addPathSuffix)(i, "/") : (0, t.removeTrailingSlash)(i);
1822
+ function o(c) {
1823
+ let i = (0, a.addLocale)(c.pathname, c.locale, c.buildId ? void 0 : c.defaultLocale, c.ignorePrefix);
1824
+ return (c.buildId || !c.trailingSlash) && (i = (0, t.removeTrailingSlash)(i)), c.buildId && (i = (0, n.addPathSuffix)((0, r.addPathPrefix)(i, "/_next/data/" + c.buildId), c.pathname === "/" ? "index.json" : ".json")), i = (0, r.addPathPrefix)(i, c.basePath), !c.buildId && c.trailingSlash ? i.endsWith("/") ? i : (0, n.addPathSuffix)(i, "/") : (0, t.removeTrailingSlash)(i);
1824
1825
  }
1825
1826
  })(nt);
1826
1827
  var it = {};
@@ -1870,10 +1871,10 @@ var ot = {}, st = {};
1870
1871
  return a;
1871
1872
  }
1872
1873
  });
1873
- const t = At, r = st, n = Be;
1874
- function a(o, l) {
1874
+ const t = Et, r = st, n = Be;
1875
+ function a(o, c) {
1875
1876
  var i;
1876
- const { basePath: d, i18n: g, trailingSlash: s } = (i = l.nextConfig) != null ? i : {}, u = {
1877
+ const { basePath: d, i18n: g, trailingSlash: s } = (i = c.nextConfig) != null ? i : {}, u = {
1877
1878
  pathname: o,
1878
1879
  trailingSlash: o !== "/" ? o.endsWith("/") : s
1879
1880
  };
@@ -1881,13 +1882,13 @@ var ot = {}, st = {};
1881
1882
  let w = u.pathname;
1882
1883
  if (u.pathname.startsWith("/_next/data/") && u.pathname.endsWith(".json")) {
1883
1884
  const y = u.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), _ = y[0];
1884
- u.buildId = _, w = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/", l.parseData === !0 && (u.pathname = w);
1885
+ u.buildId = _, w = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/", c.parseData === !0 && (u.pathname = w);
1885
1886
  }
1886
1887
  if (g) {
1887
- let y = l.i18nProvider ? l.i18nProvider.analyze(u.pathname) : (0, t.normalizeLocalePath)(u.pathname, g.locales);
1888
+ let y = c.i18nProvider ? c.i18nProvider.analyze(u.pathname) : (0, t.normalizeLocalePath)(u.pathname, g.locales);
1888
1889
  u.locale = y.detectedLocale;
1889
1890
  var v;
1890
- u.pathname = (v = y.pathname) != null ? v : u.pathname, !y.detectedLocale && u.buildId && (y = l.i18nProvider ? l.i18nProvider.analyze(w) : (0, t.normalizeLocalePath)(w, g.locales), y.detectedLocale && (u.locale = y.detectedLocale));
1891
+ u.pathname = (v = y.pathname) != null ? v : u.pathname, !y.detectedLocale && u.buildId && (y = c.i18nProvider ? c.i18nProvider.analyze(w) : (0, t.normalizeLocalePath)(w, g.locales), y.detectedLocale && (u.locale = y.detectedLocale));
1891
1892
  }
1892
1893
  return u;
1893
1894
  }
@@ -1901,8 +1902,8 @@ var ot = {}, st = {};
1901
1902
  return d;
1902
1903
  }
1903
1904
  });
1904
- const t = Et, r = nt, n = it, a = ot, o = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
1905
- function l(g, s) {
1905
+ const t = At, r = nt, n = it, a = ot, o = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
1906
+ function c(g, s) {
1906
1907
  return new URL(String(g).replace(o, "localhost"), s && String(s).replace(o, "localhost"));
1907
1908
  }
1908
1909
  const i = Symbol("NextURLInternal");
@@ -1910,7 +1911,7 @@ var ot = {}, st = {};
1910
1911
  constructor(s, u, w) {
1911
1912
  let v, y;
1912
1913
  typeof u == "object" && "pathname" in u || typeof u == "string" ? (v = u, y = w || {}) : y = w || u || {}, this[i] = {
1913
- url: l(s, v ?? y.base),
1914
+ url: c(s, v ?? y.base),
1914
1915
  options: y,
1915
1916
  basePath: ""
1916
1917
  }, this.analyze();
@@ -1992,7 +1993,7 @@ var ot = {}, st = {};
1992
1993
  return `${this.protocol}//${this.host}${s}${u}${this.hash}`;
1993
1994
  }
1994
1995
  set href(s) {
1995
- this[i].url = l(s), this.analyze();
1996
+ this[i].url = c(s), this.analyze();
1996
1997
  }
1997
1998
  get origin() {
1998
1999
  return this[i].url.origin;
@@ -2085,7 +2086,7 @@ var Pe = {};
2085
2086
  return o;
2086
2087
  },
2087
2088
  validateURL: function() {
2088
- return l;
2089
+ return c;
2089
2090
  }
2090
2091
  });
2091
2092
  const r = Ot;
@@ -2129,7 +2130,7 @@ var Pe = {};
2129
2130
  u.toLowerCase() === "set-cookie" ? (s.push(...a(w)), g[u] = s.length === 1 ? s[0] : s) : g[u] = w;
2130
2131
  return g;
2131
2132
  }
2132
- function l(d) {
2133
+ function c(d) {
2133
2134
  try {
2134
2135
  return String(new URL(String(d)));
2135
2136
  } catch (g) {
@@ -2155,10 +2156,10 @@ var lt = {};
2155
2156
  Object.defineProperty(e, "__esModule", {
2156
2157
  value: !0
2157
2158
  });
2158
- function t(o, l) {
2159
- for (var i in l) Object.defineProperty(o, i, {
2159
+ function t(o, c) {
2160
+ for (var i in c) Object.defineProperty(o, i, {
2160
2161
  enumerable: !0,
2161
- get: l[i]
2162
+ get: c[i]
2162
2163
  });
2163
2164
  }
2164
2165
  t(e, {
@@ -2173,8 +2174,8 @@ var lt = {};
2173
2174
  }
2174
2175
  });
2175
2176
  class r extends Error {
2176
- constructor({ page: l }) {
2177
- super(`The middleware "${l}" accepts an async API directly with the form:
2177
+ constructor({ page: c }) {
2178
+ super(`The middleware "${c}" accepts an async API directly with the form:
2178
2179
 
2179
2180
  export function middleware(request, event) {
2180
2181
  return NextResponse.redirect('/new-location')
@@ -2195,24 +2196,24 @@ var lt = {};
2195
2196
  }
2196
2197
  }
2197
2198
  })(lt);
2198
- var de = {}, xe = Object.defineProperty, Fn = Object.getOwnPropertyDescriptor, $n = Object.getOwnPropertyNames, Ln = Object.prototype.hasOwnProperty, Dn = (e, t) => {
2199
+ var de = {}, xe = Object.defineProperty, Un = Object.getOwnPropertyDescriptor, Hn = Object.getOwnPropertyNames, Mn = Object.prototype.hasOwnProperty, Bn = (e, t) => {
2199
2200
  for (var r in t)
2200
2201
  xe(e, r, { get: t[r], enumerable: !0 });
2201
- }, Un = (e, t, r, n) => {
2202
+ }, zn = (e, t, r, n) => {
2202
2203
  if (t && typeof t == "object" || typeof t == "function")
2203
- for (let a of $n(t))
2204
- !Ln.call(e, a) && a !== r && xe(e, a, { get: () => t[a], enumerable: !(n = Fn(t, a)) || n.enumerable });
2204
+ for (let a of Hn(t))
2205
+ !Mn.call(e, a) && a !== r && xe(e, a, { get: () => t[a], enumerable: !(n = Un(t, a)) || n.enumerable });
2205
2206
  return e;
2206
- }, Hn = (e) => Un(xe({}, "__esModule", { value: !0 }), e), ct = {};
2207
- Dn(ct, {
2208
- RequestCookies: () => Kn,
2209
- ResponseCookies: () => Xn,
2207
+ }, Gn = (e) => zn(xe({}, "__esModule", { value: !0 }), e), ct = {};
2208
+ Bn(ct, {
2209
+ RequestCookies: () => Yn,
2210
+ ResponseCookies: () => ea,
2210
2211
  parseCookie: () => Se,
2211
2212
  parseSetCookie: () => ut,
2212
- stringifyCookie: () => X
2213
+ stringifyCookie: () => K
2213
2214
  });
2214
- var Mn = Hn(ct);
2215
- function X(e) {
2215
+ var Vn = Gn(ct);
2216
+ function K(e) {
2216
2217
  var t;
2217
2218
  const r = [
2218
2219
  "path" in e && e.path && `Path=${e.path}`,
@@ -2251,7 +2252,7 @@ function ut(e) {
2251
2252
  const [[t, r], ...n] = Se(e), {
2252
2253
  domain: a,
2253
2254
  expires: o,
2254
- httponly: l,
2255
+ httponly: c,
2255
2256
  maxage: i,
2256
2257
  path: d,
2257
2258
  samesite: g,
@@ -2265,34 +2266,34 @@ function ut(e) {
2265
2266
  value: decodeURIComponent(r),
2266
2267
  domain: a,
2267
2268
  ...o && { expires: new Date(o) },
2268
- ...l && { httpOnly: !0 },
2269
+ ...c && { httpOnly: !0 },
2269
2270
  ...typeof i == "string" && { maxAge: Number(i) },
2270
2271
  path: d,
2271
- ...g && { sameSite: Gn(g) },
2272
+ ...g && { sameSite: Xn(g) },
2272
2273
  ...s && { secure: !0 },
2273
- ...w && { priority: Wn(w) },
2274
+ ...w && { priority: Zn(w) },
2274
2275
  ...u && { partitioned: !0 }
2275
2276
  };
2276
- return Bn(v);
2277
+ return Wn(v);
2277
2278
  }
2278
- function Bn(e) {
2279
+ function Wn(e) {
2279
2280
  const t = {};
2280
2281
  for (const r in e)
2281
2282
  e[r] && (t[r] = e[r]);
2282
2283
  return t;
2283
2284
  }
2284
- var zn = ["strict", "lax", "none"];
2285
- function Gn(e) {
2286
- return e = e.toLowerCase(), zn.includes(e) ? e : void 0;
2285
+ var Qn = ["strict", "lax", "none"];
2286
+ function Xn(e) {
2287
+ return e = e.toLowerCase(), Qn.includes(e) ? e : void 0;
2287
2288
  }
2288
- var Vn = ["low", "medium", "high"];
2289
- function Wn(e) {
2290
- return e = e.toLowerCase(), Vn.includes(e) ? e : void 0;
2289
+ var Kn = ["low", "medium", "high"];
2290
+ function Zn(e) {
2291
+ return e = e.toLowerCase(), Kn.includes(e) ? e : void 0;
2291
2292
  }
2292
- function Qn(e) {
2293
+ function Jn(e) {
2293
2294
  if (!e)
2294
2295
  return [];
2295
- var t = [], r = 0, n, a, o, l, i;
2296
+ var t = [], r = 0, n, a, o, c, i;
2296
2297
  function d() {
2297
2298
  for (; r < e.length && /\s/.test(e.charAt(r)); )
2298
2299
  r += 1;
@@ -2304,16 +2305,16 @@ function Qn(e) {
2304
2305
  for (; r < e.length; ) {
2305
2306
  for (n = r, i = !1; d(); )
2306
2307
  if (a = e.charAt(r), a === ",") {
2307
- for (o = r, r += 1, d(), l = r; r < e.length && g(); )
2308
+ for (o = r, r += 1, d(), c = r; r < e.length && g(); )
2308
2309
  r += 1;
2309
- r < e.length && e.charAt(r) === "=" ? (i = !0, r = l, t.push(e.substring(n, o)), n = r) : r = o + 1;
2310
+ r < e.length && e.charAt(r) === "=" ? (i = !0, r = c, t.push(e.substring(n, o)), n = r) : r = o + 1;
2310
2311
  } else
2311
2312
  r += 1;
2312
2313
  (!i || r >= e.length) && t.push(e.substring(n, e.length));
2313
2314
  }
2314
2315
  return t;
2315
2316
  }
2316
- var Kn = class {
2317
+ var Yn = class {
2317
2318
  constructor(e) {
2318
2319
  this._parsed = /* @__PURE__ */ new Map(), this._headers = e;
2319
2320
  const t = e.get("cookie");
@@ -2351,7 +2352,7 @@ var Kn = class {
2351
2352
  const [t, r] = e.length === 1 ? [e[0].name, e[0].value] : e, n = this._parsed;
2352
2353
  return n.set(t, { name: t, value: r }), this._headers.set(
2353
2354
  "cookie",
2354
- Array.from(n).map(([a, o]) => X(o)).join("; ")
2355
+ Array.from(n).map(([a, o]) => K(o)).join("; ")
2355
2356
  ), this;
2356
2357
  }
2357
2358
  /**
@@ -2361,7 +2362,7 @@ var Kn = class {
2361
2362
  const t = this._parsed, r = Array.isArray(e) ? e.map((n) => t.delete(n)) : t.delete(e);
2362
2363
  return this._headers.set(
2363
2364
  "cookie",
2364
- Array.from(t).map(([n, a]) => X(a)).join("; ")
2365
+ Array.from(t).map(([n, a]) => K(a)).join("; ")
2365
2366
  ), r;
2366
2367
  }
2367
2368
  /**
@@ -2379,14 +2380,14 @@ var Kn = class {
2379
2380
  toString() {
2380
2381
  return [...this._parsed.values()].map((e) => `${e.name}=${encodeURIComponent(e.value)}`).join("; ");
2381
2382
  }
2382
- }, Xn = class {
2383
+ }, ea = class {
2383
2384
  constructor(e) {
2384
2385
  this._parsed = /* @__PURE__ */ new Map();
2385
2386
  var t, r, n;
2386
2387
  this._headers = e;
2387
- const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a : Qn(a);
2388
- for (const l of o) {
2389
- const i = ut(l);
2388
+ const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a : Jn(a);
2389
+ for (const c of o) {
2390
+ const i = ut(c);
2390
2391
  i && this._parsed.set(i.name, i);
2391
2392
  }
2392
2393
  }
@@ -2416,7 +2417,7 @@ var Kn = class {
2416
2417
  */
2417
2418
  set(...e) {
2418
2419
  const [t, r, n] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e, a = this._parsed;
2419
- return a.set(t, Jn({ name: t, value: r, ...n })), Zn(a, this._headers), this;
2420
+ return a.set(t, ra({ name: t, value: r, ...n })), ta(a, this._headers), this;
2420
2421
  }
2421
2422
  /**
2422
2423
  * {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
@@ -2429,17 +2430,17 @@ var Kn = class {
2429
2430
  return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
2430
2431
  }
2431
2432
  toString() {
2432
- return [...this._parsed.values()].map(X).join("; ");
2433
+ return [...this._parsed.values()].map(K).join("; ");
2433
2434
  }
2434
2435
  };
2435
- function Zn(e, t) {
2436
+ function ta(e, t) {
2436
2437
  t.delete("set-cookie");
2437
2438
  for (const [, r] of e) {
2438
- const n = X(r);
2439
+ const n = K(r);
2439
2440
  t.append("set-cookie", n);
2440
2441
  }
2441
2442
  }
2442
- function Jn(e = { name: "", value: "" }) {
2443
+ function ra(e = { name: "", value: "" }) {
2443
2444
  return typeof e.expires == "number" && (e.expires = new Date(e.expires)), e.maxAge && (e.expires = new Date(Date.now() + e.maxAge * 1e3)), (e.path === null || e.path === void 0) && (e.path = "/"), e;
2444
2445
  }
2445
2446
  (function(e) {
@@ -2463,7 +2464,7 @@ function Jn(e = { name: "", value: "" }) {
2463
2464
  return r.stringifyCookie;
2464
2465
  }
2465
2466
  });
2466
- const r = Mn;
2467
+ const r = Vn;
2467
2468
  })(de);
2468
2469
  (function(e) {
2469
2470
  Object.defineProperty(e, "__esModule", {
@@ -2477,13 +2478,13 @@ function Jn(e = { name: "", value: "" }) {
2477
2478
  }
2478
2479
  t(e, {
2479
2480
  INTERNALS: function() {
2480
- return l;
2481
+ return c;
2481
2482
  },
2482
2483
  NextRequest: function() {
2483
2484
  return i;
2484
2485
  }
2485
2486
  });
2486
- const r = Ie, n = Pe, a = lt, o = de, l = Symbol("internal request");
2487
+ const r = Ie, n = Pe, a = lt, o = de, c = Symbol("internal request");
2487
2488
  class i extends Request {
2488
2489
  constructor(g, s = {}) {
2489
2490
  const u = typeof g != "string" && "url" in g ? g.url : String(g);
@@ -2492,7 +2493,7 @@ function Jn(e = { name: "", value: "" }) {
2492
2493
  headers: (0, n.toNodeOutgoingHttpHeaders)(this.headers),
2493
2494
  nextConfig: s.nextConfig
2494
2495
  });
2495
- this[l] = {
2496
+ this[c] = {
2496
2497
  cookies: new o.RequestCookies(this.headers),
2497
2498
  geo: s.geo || {},
2498
2499
  ip: s.ip,
@@ -2524,16 +2525,16 @@ function Jn(e = { name: "", value: "" }) {
2524
2525
  };
2525
2526
  }
2526
2527
  get cookies() {
2527
- return this[l].cookies;
2528
+ return this[c].cookies;
2528
2529
  }
2529
2530
  get geo() {
2530
- return this[l].geo;
2531
+ return this[c].geo;
2531
2532
  }
2532
2533
  get ip() {
2533
- return this[l].ip;
2534
+ return this[c].ip;
2534
2535
  }
2535
2536
  get nextUrl() {
2536
- return this[l].nextUrl;
2537
+ return this[c].nextUrl;
2537
2538
  }
2538
2539
  /**
2539
2540
  * @deprecated
@@ -2552,7 +2553,7 @@ function Jn(e = { name: "", value: "" }) {
2552
2553
  throw new a.RemovedUAError();
2553
2554
  }
2554
2555
  get url() {
2555
- return this[l].url;
2556
+ return this[c].url;
2556
2557
  }
2557
2558
  }
2558
2559
  })(rt);
@@ -2568,11 +2569,11 @@ var dt = {}, pt = {};
2568
2569
  });
2569
2570
  class t {
2570
2571
  static get(n, a, o) {
2571
- const l = Reflect.get(n, a, o);
2572
- return typeof l == "function" ? l.bind(n) : l;
2572
+ const c = Reflect.get(n, a, o);
2573
+ return typeof c == "function" ? c.bind(n) : c;
2573
2574
  }
2574
- static set(n, a, o, l) {
2575
- return Reflect.set(n, a, o, l);
2575
+ static set(n, a, o, c) {
2576
+ return Reflect.set(n, a, o, c);
2576
2577
  }
2577
2578
  static has(n, a) {
2578
2579
  return Reflect.has(n, a);
@@ -2591,7 +2592,7 @@ var dt = {}, pt = {};
2591
2592
  return g;
2592
2593
  }
2593
2594
  });
2594
- const t = de, r = Ie, n = Pe, a = pt, o = de, l = Symbol("internal response"), i = /* @__PURE__ */ new Set([
2595
+ const t = de, r = Ie, n = Pe, a = pt, o = de, c = Symbol("internal response"), i = /* @__PURE__ */ new Set([
2595
2596
  301,
2596
2597
  302,
2597
2598
  303,
@@ -2617,16 +2618,16 @@ var dt = {}, pt = {};
2617
2618
  switch (b) {
2618
2619
  case "delete":
2619
2620
  case "set":
2620
- return (...h) => {
2621
- const f = Reflect.apply(p[b], p, h), A = new Headers(v);
2622
- return f instanceof o.ResponseCookies && v.set("x-middleware-set-cookie", f.getAll().map((N) => (0, t.stringifyCookie)(N)).join(",")), d(w, A), f;
2621
+ return (...f) => {
2622
+ const h = Reflect.apply(p[b], p, f), E = new Headers(v);
2623
+ return h instanceof o.ResponseCookies && v.set("x-middleware-set-cookie", h.getAll().map((N) => (0, t.stringifyCookie)(N)).join(",")), d(w, E), h;
2623
2624
  };
2624
2625
  default:
2625
2626
  return a.ReflectAdapter.get(p, b, m);
2626
2627
  }
2627
2628
  }
2628
2629
  });
2629
- this[l] = {
2630
+ this[c] = {
2630
2631
  cookies: _,
2631
2632
  url: w.url ? new r.NextURL(w.url, {
2632
2633
  headers: (0, n.toNodeOutgoingHttpHeaders)(v),
@@ -2650,7 +2651,7 @@ var dt = {}, pt = {};
2650
2651
  };
2651
2652
  }
2652
2653
  get cookies() {
2653
- return this[l].cookies;
2654
+ return this[c].cookies;
2654
2655
  }
2655
2656
  static json(u, w) {
2656
2657
  const v = Response.json(u, w);
@@ -2697,65 +2698,65 @@ var mt = {};
2697
2698
  throw new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead');
2698
2699
  }
2699
2700
  })(mt);
2700
- var Re = {}, ht = { exports: {} };
2701
+ var Re = {}, ft = { exports: {} };
2701
2702
  (() => {
2702
2703
  var e = { 226: function(a, o) {
2703
- (function(l, i) {
2704
- var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", h = "vendor", f = "version", A = "architecture", N = "console", I = "mobile", R = "tablet", C = "smarttv", j = "wearable", $ = "embedded", D = 350, U = "Amazon", B = "Apple", Z = "ASUS", Ce = "BlackBerry", G = "Browser", J = "Chrome", gt = "Edge", Y = "Firefox", ee = "Google", ke = "Huawei", me = "LG", he = "Microsoft", Ae = "Motorola", te = "Opera", fe = "Samsung", Ee = "Sharp", re = "Sony", ge = "Xiaomi", be = "Zebra", Oe = "Facebook", Te = "Chromium OS", qe = "Mac OS", bt = function(S, E) {
2704
+ (function(c, i) {
2705
+ var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", f = "vendor", h = "version", E = "architecture", N = "console", I = "mobile", R = "tablet", C = "smarttv", j = "wearable", F = "embedded", D = 350, U = "Amazon", B = "Apple", Z = "ASUS", Ce = "BlackBerry", G = "Browser", J = "Chrome", gt = "Edge", Y = "Firefox", ee = "Google", ke = "Huawei", me = "LG", fe = "Microsoft", Ee = "Motorola", te = "Opera", he = "Samsung", Ae = "Sharp", re = "Sony", ge = "Xiaomi", be = "Zebra", Oe = "Facebook", Te = "Chromium OS", qe = "Mac OS", bt = function(S, A) {
2705
2706
  var x = {};
2706
2707
  for (var q in S)
2707
- E[q] && E[q].length % 2 === 0 ? x[q] = E[q].concat(S[q]) : x[q] = S[q];
2708
+ A[q] && A[q].length % 2 === 0 ? x[q] = A[q].concat(S[q]) : x[q] = S[q];
2708
2709
  return x;
2709
2710
  }, ne = function(S) {
2710
- for (var E = {}, x = 0; x < S.length; x++)
2711
- E[S[x].toUpperCase()] = S[x];
2712
- return E;
2713
- }, Ne = function(S, E) {
2714
- return typeof S === y ? Q(E).indexOf(Q(S)) !== -1 : !1;
2711
+ for (var A = {}, x = 0; x < S.length; x++)
2712
+ A[S[x].toUpperCase()] = S[x];
2713
+ return A;
2714
+ }, Ne = function(S, A) {
2715
+ return typeof S === y ? Q(A).indexOf(Q(S)) !== -1 : !1;
2715
2716
  }, Q = function(S) {
2716
2717
  return S.toLowerCase();
2717
2718
  }, wt = function(S) {
2718
2719
  return typeof S === y ? S.replace(/[^\d\.]/g, g).split(".")[0] : i;
2719
- }, we = function(S, E) {
2720
+ }, we = function(S, A) {
2720
2721
  if (typeof S === y)
2721
- return S = S.replace(/^\s\s*/, g), typeof E === w ? S : S.substring(0, D);
2722
- }, K = function(S, E) {
2723
- for (var x = 0, q, z, H, k, P, M; x < E.length && !P; ) {
2724
- var ye = E[x], $e = E[x + 1];
2722
+ return S = S.replace(/^\s\s*/, g), typeof A === w ? S : S.substring(0, D);
2723
+ }, X = function(S, A) {
2724
+ for (var x = 0, q, z, H, k, P, M; x < A.length && !P; ) {
2725
+ var ye = A[x], Fe = A[x + 1];
2725
2726
  for (q = z = 0; q < ye.length && !P && ye[q]; )
2726
2727
  if (P = ye[q++].exec(S), P)
2727
- for (H = 0; H < $e.length; H++)
2728
- M = P[++z], k = $e[H], typeof k === v && k.length > 0 ? k.length === 2 ? typeof k[1] == u ? this[k[0]] = k[1].call(this, M) : this[k[0]] = k[1] : k.length === 3 ? typeof k[1] === u && !(k[1].exec && k[1].test) ? this[k[0]] = M ? k[1].call(this, M, k[2]) : i : this[k[0]] = M ? M.replace(k[1], k[2]) : i : k.length === 4 && (this[k[0]] = M ? k[3].call(this, M.replace(k[1], k[2])) : i) : this[k] = M || i;
2728
+ for (H = 0; H < Fe.length; H++)
2729
+ M = P[++z], k = Fe[H], typeof k === v && k.length > 0 ? k.length === 2 ? typeof k[1] == u ? this[k[0]] = k[1].call(this, M) : this[k[0]] = k[1] : k.length === 3 ? typeof k[1] === u && !(k[1].exec && k[1].test) ? this[k[0]] = M ? k[1].call(this, M, k[2]) : i : this[k[0]] = M ? M.replace(k[1], k[2]) : i : k.length === 4 && (this[k[0]] = M ? k[3].call(this, M.replace(k[1], k[2])) : i) : this[k] = M || i;
2729
2730
  x += 2;
2730
2731
  }
2731
- }, ve = function(S, E) {
2732
- for (var x in E)
2733
- if (typeof E[x] === v && E[x].length > 0) {
2734
- for (var q = 0; q < E[x].length; q++)
2735
- if (Ne(E[x][q], S))
2732
+ }, ve = function(S, A) {
2733
+ for (var x in A)
2734
+ if (typeof A[x] === v && A[x].length > 0) {
2735
+ for (var q = 0; q < A[x].length; q++)
2736
+ if (Ne(A[x][q], S))
2736
2737
  return x === s ? i : x;
2737
- } else if (Ne(E[x], S))
2738
+ } else if (Ne(A[x], S))
2738
2739
  return x === s ? i : x;
2739
2740
  return S;
2740
- }, vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, je = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, f], [/opios[\/ ]+([\w\.]+)/i], [f, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], f], [/\bfocus\/([\w\.]+)/i], [f, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [f, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], f], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Oe], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [b, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, J + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [f, ve, vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [b, Y + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, f], [/(cobalt)\/([\w\.]+)/i], [b, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[A, "amd64"]], [/(ia32(?=;))/i], [[A, Q]], [/((?:i[346]|x)86)[;\)]/i], [[A, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[A, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[A, "armhf"]], [/windows (ce|mobile); ppc;/i], [[A, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[A, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[A, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[A, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [h, fe], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [h, fe], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [h, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [h, B], [m, R]], [/(macintosh);/i], [p, [h, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [h, Ee], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [h, ke], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [h, ke], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [h, ge], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [h, ge], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [h, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [h, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [h, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [h, Ae], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [h, Ae], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [h, me], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [h, me], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [h, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [h, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [h, ee], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [h, ee], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [h, re], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [h, re], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [h, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [h, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [h, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, h, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [h, Ce], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [h, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [h, Z], [m, I]], [/(nexus 9)/i], [p, [h, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [h, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [h, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [h, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [h, p, [m, R]], [/(surface duo)/i], [p, [h, he], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [h, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [h, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [h, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [h, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [h, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [h, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [h, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [h, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [h, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [h, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [h, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [h, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [h, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [h, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [h, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [h, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [h, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [h, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [h, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [h, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [h, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [h, he], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [h, be], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [h, be], [m, I]], [/smart-tv.+(samsung)/i], [h, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [h, fe], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, me], [m, C]], [/(apple) ?tv/i], [h, [p, B + " TV"], [m, C]], [/crkey/i], [[p, J + "cast"], [h, ee], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [h, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [h, Ee], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [h, re], [m, C]], [/(mitv-\w{5}) bui/i], [p, [h, ge], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [h, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, we], [p, we], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, p, [m, N]], [/droid.+; (shield) bui/i], [p, [h, "Nvidia"], [m, N]], [/(playstation [345portablevi]+)/i], [p, [h, re], [m, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [h, he], [m, N]], [/((pebble))app/i], [h, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [h, B], [m, j]], [/droid.+; (glass) \d/i], [p, [h, ee], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [h, be], [m, j]], [/(quest( 2| pro)?)/i], [p, [h, Oe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [m, $]], [/(aeobc)\b/i], [p, [h, U], [m, $]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, I]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, I]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [b, gt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [f, ve, je]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [f, ve, je]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, qe], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, f], [/\(bb(10);/i], [f, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [b, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, f], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, f]] }, L = function(S, E) {
2741
- if (typeof S === v && (E = S, S = i), !(this instanceof L))
2742
- return new L(S, E).getResult();
2743
- var x = typeof l !== w && l.navigator ? l.navigator : i, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, H = E ? bt(Fe, E) : Fe, k = x && x.userAgent == q;
2741
+ }, vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, je = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, $e = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [h, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [h, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, h], [/opios[\/ ]+([\w\.]+)/i], [h, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [h, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, h], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [h, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [h, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [h, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [h, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [h, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [h, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], h], [/\bfocus\/([\w\.]+)/i], [h, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [h, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [h, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [h, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [h, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [h, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [h, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], h], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], h], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, h], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Oe], h], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, h], [/\bgsa\/([\w\.]+) .*safari\//i], [h, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [h, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [h, [b, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, J + " WebView"], h], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [h, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, h], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [h, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [h, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [h, ve, vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, h], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], h], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [h, [b, Y + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, h], [/(cobalt)\/([\w\.]+)/i], [b, [h, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[E, "amd64"]], [/(ia32(?=;))/i], [[E, Q]], [/((?:i[346]|x)86)[;\)]/i], [[E, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[E, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[E, "armhf"]], [/windows (ce|mobile); ppc;/i], [[E, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[E, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[E, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[E, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [f, he], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [f, he], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [f, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [f, B], [m, R]], [/(macintosh);/i], [p, [f, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [f, Ae], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [f, ke], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [f, ke], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [f, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [f, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [f, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [f, Ee], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [f, Ee], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [f, me], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [f, me], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [f, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [f, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [f, ee], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [f, ee], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [f, re], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [f, re], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [f, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [f, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [f, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, f, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [f, Ce], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [f, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [f, Z], [m, I]], [/(nexus 9)/i], [p, [f, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [f, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [f, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [f, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [f, p, [m, R]], [/(surface duo)/i], [p, [f, fe], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [f, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [f, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [f, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [f, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [f, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [f, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [f, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [f, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [f, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [f, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [f, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [f, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [f, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [f, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [f, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [f, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [f, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [f, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [f, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [f, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [f, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [f, fe], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [f, be], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [f, be], [m, I]], [/smart-tv.+(samsung)/i], [f, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [f, he], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, me], [m, C]], [/(apple) ?tv/i], [f, [p, B + " TV"], [m, C]], [/crkey/i], [[p, J + "cast"], [f, ee], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [f, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [f, Ae], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [f, re], [m, C]], [/(mitv-\w{5}) bui/i], [p, [f, ge], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [f, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, we], [p, we], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, p, [m, N]], [/droid.+; (shield) bui/i], [p, [f, "Nvidia"], [m, N]], [/(playstation [345portablevi]+)/i], [p, [f, re], [m, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [f, fe], [m, N]], [/((pebble))app/i], [f, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [f, B], [m, j]], [/droid.+; (glass) \d/i], [p, [f, ee], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [f, be], [m, j]], [/(quest( 2| pro)?)/i], [p, [f, Oe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [m, F]], [/(aeobc)\b/i], [p, [f, U], [m, F]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, I]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, I]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [h, [b, gt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [h, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, h], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [h, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, h], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [h, ve, je]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [h, ve, je]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[h, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, qe], [h, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [h, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, h], [/\(bb(10);/i], [h, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [h, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [h, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [h, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [h, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [h, [b, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], h], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, h], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], h], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, h]] }, L = function(S, A) {
2742
+ if (typeof S === v && (A = S, S = i), !(this instanceof L))
2743
+ return new L(S, A).getResult();
2744
+ var x = typeof c !== w && c.navigator ? c.navigator : i, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, H = A ? bt($e, A) : $e, k = x && x.userAgent == q;
2744
2745
  return this.getBrowser = function() {
2745
2746
  var P = {};
2746
- return P[b] = i, P[f] = i, K.call(P, q, H.browser), P[_] = wt(P[f]), k && x && x.brave && typeof x.brave.isBrave == u && (P[b] = "Brave"), P;
2747
+ return P[b] = i, P[h] = i, X.call(P, q, H.browser), P[_] = wt(P[h]), k && x && x.brave && typeof x.brave.isBrave == u && (P[b] = "Brave"), P;
2747
2748
  }, this.getCPU = function() {
2748
2749
  var P = {};
2749
- return P[A] = i, K.call(P, q, H.cpu), P;
2750
+ return P[E] = i, X.call(P, q, H.cpu), P;
2750
2751
  }, this.getDevice = function() {
2751
2752
  var P = {};
2752
- return P[h] = i, P[p] = i, P[m] = i, K.call(P, q, H.device), k && !P[m] && z && z.mobile && (P[m] = I), k && P[p] == "Macintosh" && x && typeof x.standalone !== w && x.maxTouchPoints && x.maxTouchPoints > 2 && (P[p] = "iPad", P[m] = R), P;
2753
+ return P[f] = i, P[p] = i, P[m] = i, X.call(P, q, H.device), k && !P[m] && z && z.mobile && (P[m] = I), k && P[p] == "Macintosh" && x && typeof x.standalone !== w && x.maxTouchPoints && x.maxTouchPoints > 2 && (P[p] = "iPad", P[m] = R), P;
2753
2754
  }, this.getEngine = function() {
2754
2755
  var P = {};
2755
- return P[b] = i, P[f] = i, K.call(P, q, H.engine), P;
2756
+ return P[b] = i, P[h] = i, X.call(P, q, H.engine), P;
2756
2757
  }, this.getOS = function() {
2757
2758
  var P = {};
2758
- return P[b] = i, P[f] = i, K.call(P, q, H.os), k && !P[b] && z && z.platform != "Unknown" && (P[b] = z.platform.replace(/chrome os/i, Te).replace(/macos/i, qe)), P;
2759
+ return P[b] = i, P[h] = i, X.call(P, q, H.os), k && !P[b] && z && z.platform != "Unknown" && (P[b] = z.platform.replace(/chrome os/i, Te).replace(/macos/i, qe)), P;
2759
2760
  }, this.getResult = function() {
2760
2761
  return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
2761
2762
  }, this.getUA = function() {
@@ -2764,17 +2765,17 @@ var Re = {}, ht = { exports: {} };
2764
2765
  return q = typeof P === y && P.length > D ? we(P, D) : P, this;
2765
2766
  }, this.setUA(q), this;
2766
2767
  };
2767
- L.VERSION = d, L.BROWSER = ne([b, f, _]), L.CPU = ne([A]), L.DEVICE = ne([p, h, m, N, I, C, R, j, $]), L.ENGINE = L.OS = ne([b, f]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof l !== w && (l.UAParser = L);
2768
- var V = typeof l !== w && (l.jQuery || l.Zepto);
2768
+ L.VERSION = d, L.BROWSER = ne([b, h, _]), L.CPU = ne([E]), L.DEVICE = ne([p, f, m, N, I, C, R, j, F]), L.ENGINE = L.OS = ne([b, h]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof c !== w && (c.UAParser = L);
2769
+ var V = typeof c !== w && (c.jQuery || c.Zepto);
2769
2770
  if (V && !V.ua) {
2770
2771
  var ae = new L();
2771
2772
  V.ua = ae.getResult(), V.ua.get = function() {
2772
2773
  return ae.getUA();
2773
2774
  }, V.ua.set = function(S) {
2774
2775
  ae.setUA(S);
2775
- var E = ae.getResult();
2776
- for (var x in E)
2777
- V.ua[x] = E[x];
2776
+ var A = ae.getResult();
2777
+ for (var x in A)
2778
+ V.ua[x] = A[x];
2778
2779
  };
2779
2780
  }
2780
2781
  })(typeof window == "object" ? window : this);
@@ -2783,19 +2784,19 @@ var Re = {}, ht = { exports: {} };
2783
2784
  var o = t[a];
2784
2785
  if (o !== void 0)
2785
2786
  return o.exports;
2786
- var l = t[a] = { exports: {} }, i = !0;
2787
+ var c = t[a] = { exports: {} }, i = !0;
2787
2788
  try {
2788
- e[a].call(l.exports, l, l.exports, r), i = !1;
2789
+ e[a].call(c.exports, c, c.exports, r), i = !1;
2789
2790
  } finally {
2790
2791
  i && delete t[a];
2791
2792
  }
2792
- return l.exports;
2793
+ return c.exports;
2793
2794
  }
2794
2795
  typeof r < "u" && (r.ab = __dirname + "/");
2795
2796
  var n = r(226);
2796
- ht.exports = n;
2797
+ ft.exports = n;
2797
2798
  })();
2798
- var Yn = ht.exports;
2799
+ var na = ft.exports;
2799
2800
  (function(e) {
2800
2801
  Object.defineProperty(e, "__esModule", {
2801
2802
  value: !0
@@ -2811,13 +2812,13 @@ var Yn = ht.exports;
2811
2812
  return a;
2812
2813
  },
2813
2814
  userAgent: function() {
2814
- return l;
2815
+ return c;
2815
2816
  },
2816
2817
  userAgentFromString: function() {
2817
2818
  return o;
2818
2819
  }
2819
2820
  });
2820
- const r = /* @__PURE__ */ n(Yn);
2821
+ const r = /* @__PURE__ */ n(na);
2821
2822
  function n(i) {
2822
2823
  return i && i.__esModule ? i : {
2823
2824
  default: i
@@ -2832,11 +2833,11 @@ var Yn = ht.exports;
2832
2833
  isBot: i === void 0 ? !1 : a(i)
2833
2834
  };
2834
2835
  }
2835
- function l({ headers: i }) {
2836
+ function c({ headers: i }) {
2836
2837
  return o(i.get("user-agent") || void 0);
2837
2838
  }
2838
2839
  })(Re);
2839
- var ft = {};
2840
+ var ht = {};
2840
2841
  (function(e) {
2841
2842
  Object.defineProperty(e, "__esModule", {
2842
2843
  value: !0
@@ -2850,7 +2851,7 @@ var ft = {};
2850
2851
  // @ts-expect-error: URLPattern is not available in Node.js
2851
2852
  typeof URLPattern > "u" ? void 0 : URLPattern
2852
2853
  );
2853
- })(ft);
2854
+ })(ht);
2854
2855
  (function(e, t) {
2855
2856
  const r = {
2856
2857
  NextRequest: rt.NextRequest,
@@ -2858,30 +2859,30 @@ var ft = {};
2858
2859
  ImageResponse: mt.ImageResponse,
2859
2860
  userAgentFromString: Re.userAgentFromString,
2860
2861
  userAgent: Re.userAgent,
2861
- URLPattern: ft.URLPattern
2862
+ URLPattern: ht.URLPattern
2862
2863
  };
2863
2864
  e.exports = r, t.NextRequest = r.NextRequest, t.NextResponse = r.NextResponse, t.ImageResponse = r.ImageResponse, t.userAgentFromString = r.userAgentFromString, t.userAgent = r.userAgent, t.URLPattern = r.URLPattern;
2864
2865
  })(_e, _e.exports);
2865
2866
  var Ue = _e.exports;
2866
- async function ea({ apiUrl: e, extraData: t, fetchOptions: r }) {
2867
+ async function aa({ apiUrl: e, extraData: t, fetchOptions: r }) {
2867
2868
  var I, R;
2868
2869
  const n = `${e}/api/dataentities`, a = `${e}/api/io/v1/extrato/get-total`, {
2869
2870
  MASTER_DATA_ENTITY: o,
2870
- MASTER_DATA_FIELDS: l,
2871
+ MASTER_DATA_FIELDS: c,
2871
2872
  AUTH_TOKEN_COOKIE: i,
2872
2873
  requestHeaders: d,
2873
2874
  cookies: g
2874
- } = t, { address: s, client: u } = o, { address: w, client: v } = l, y = ((I = g == null ? void 0 : g.find((C) => (C == null ? void 0 : C.name) === i)) == null ? void 0 : I.value) || "";
2875
+ } = t, { address: s, client: u } = o, { address: w, client: v } = c, y = ((I = g == null ? void 0 : g.find((C) => (C == null ? void 0 : C.name) === i)) == null ? void 0 : I.value) || "";
2875
2876
  if (!y)
2876
2877
  return Ue.NextResponse.json(
2877
2878
  { error: "Token not found. Unauthorized" },
2878
2879
  { status: 200 }
2879
2880
  );
2880
- const { sub: _, userId: p } = Ut(y), b = Object.fromEntries(
2881
+ const { sub: _, userId: p } = Bt(y), b = Object.fromEntries(
2881
2882
  Object.entries(d).map(([C, j]) => [C, String(j || "")])
2882
- ), m = async (C, j, $ = !1) => {
2883
+ ), m = async (C, j, F = !1) => {
2883
2884
  try {
2884
- const U = await fetch(`${$ ? a : n}${C}`, {
2885
+ const U = await fetch(`${F ? a : n}${C}`, {
2885
2886
  headers: {
2886
2887
  ...j,
2887
2888
  ...r == null ? void 0 : r.headers
@@ -2891,54 +2892,141 @@ async function ea({ apiUrl: e, extraData: t, fetchOptions: r }) {
2891
2892
  } catch (D) {
2892
2893
  return console.error(`Erro no fetch: ${C}`, D), null;
2893
2894
  }
2894
- }, h = await m(
2895
+ }, f = await m(
2895
2896
  `/${u}/search?email=${_}&_fields=${v.join(",")}`,
2896
2897
  b
2897
2898
  );
2898
- if (!(h != null && h.id))
2899
+ if (!(f != null && f.id))
2899
2900
  return Ue.NextResponse.json({ sub: _ }, { status: 200 });
2900
- const f = (R = h.document) == null ? void 0 : R.replace(/\D/g, ""), A = await m(
2901
- `/${s}/search?userId=${h.id}&_fields=${w.join(
2901
+ const h = (R = f.document) == null ? void 0 : R.replace(/\D/g, ""), E = await m(
2902
+ `/${s}/search?userId=${f.id}&_fields=${w.join(
2902
2903
  ","
2903
2904
  )}&_sort=lastInteractionIn DESC`,
2904
2905
  { ...b, "REST-Range": "resources=0-1000" }
2905
- ), N = f ? await m(
2906
- `/${f}?user_code=${h.userId},${_}&per_page=1&page=1`,
2906
+ ), N = h ? await m(
2907
+ `/${h}?user_code=${f.userId},${_}&per_page=1&page=1`,
2907
2908
  b,
2908
2909
  !0
2909
2910
  ) : null;
2910
- return { ...h, ...A, userCredits: N, sub: _, userId: p };
2911
+ return { ...f, ...E, userCredits: N, sub: _, userId: p };
2912
+ }
2913
+ const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2914
+ __proto__: null,
2915
+ getUserData: aa
2916
+ }, Symbol.toStringTag, { value: "Module" })), oa = {
2917
+ parseSearchState: jt,
2918
+ convertSearchParams: Nt,
2919
+ filterNonRootFacets: qt,
2920
+ filterNonCategorySelected: Tt
2921
+ }, sa = l.object({
2922
+ userName: l.string().optional(),
2923
+ email: l.string().optional(),
2924
+ sku: l.string().optional()
2925
+ });
2926
+ async function la({
2927
+ apiUrl: e,
2928
+ body: t
2929
+ }) {
2930
+ if (!t) {
2931
+ console.error("[ERROR FETCHING] Body is required");
2932
+ return;
2933
+ }
2934
+ await sa.validate(t);
2935
+ const r = `https://${e}.myvtex.com/no-cache/AviseMe.aspx`, n = await fetch(r, {
2936
+ method: "POST",
2937
+ headers: {
2938
+ "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
2939
+ },
2940
+ body: `notifymeClientName=${t == null ? void 0 : t.userName}&notifymeClientEmail=${t == null ? void 0 : t.email}&notifymeIdSku=${t == null ? void 0 : t.sku}`
2941
+ }), a = await n.text;
2942
+ return {
2943
+ ok: n.ok,
2944
+ status: n.status,
2945
+ text: a
2946
+ };
2947
+ }
2948
+ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2949
+ __proto__: null,
2950
+ aviseMe: la
2951
+ }, Symbol.toStringTag, { value: "Module" }));
2952
+ function ua({
2953
+ platformCMS: e,
2954
+ request: t
2955
+ }) {
2956
+ const { searchParams: r } = new URL(t.url), n = r.get("url") ?? "/", a = e === "vtex" ? "draft" : r.get("status");
2957
+ return e !== "vtex" && r.get("secret") !== process.env.PREVIEW_SECRET ? { error: !0 } : {
2958
+ url: n,
2959
+ isDraft: a !== "published",
2960
+ previewData: e === "vtex" ? {
2961
+ versionId: r.get("versionId") ?? "",
2962
+ releaseId: r.get("releaseId") ?? "",
2963
+ documentId: r.get("documentId") ?? "",
2964
+ contentType: r.get("contentType") ?? ""
2965
+ } : null
2966
+ };
2967
+ }
2968
+ const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2969
+ __proto__: null,
2970
+ getCMSPreviewData: ua
2971
+ }, Symbol.toStringTag, { value: "Module" }));
2972
+ function pa(e) {
2973
+ return {
2974
+ redirectTo: e.nextUrl.searchParams.get("redirect") ?? "/",
2975
+ clearCookies: ["cms_preview_data"],
2976
+ disableDraft: !0
2977
+ };
2978
+ }
2979
+ const ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2980
+ __proto__: null,
2981
+ getCMSPreviewExitData: pa
2982
+ }, Symbol.toStringTag, { value: "Module" }));
2983
+ async function fa({ pathname: e }) {
2984
+ return (await zt.get(
2985
+ `https://mariafilo.vtexcommercestable.com.br${e}`,
2986
+ {
2987
+ headers: {
2988
+ "Content-Type": "application/xml"
2989
+ }
2990
+ }
2991
+ )).data.replace(
2992
+ /mariafilo.vtexcommercestable/g,
2993
+ "www.multimarcassoma"
2994
+ );
2911
2995
  }
2912
- const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2996
+ const ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2913
2997
  __proto__: null,
2914
- getUserData: ea
2915
- }, Symbol.toStringTag, { value: "Module" })), la = {
2916
- checkout: Wr,
2917
- catalog: tn,
2918
- cms: qt,
2919
- search: xn,
2920
- masterdata: qn,
2921
- marketingdata: Tt,
2922
- user: ta,
2998
+ getVtexXmlProxyData: fa
2999
+ }, Symbol.toStringTag, { value: "Module" })), Ia = {
3000
+ checkout: Zr,
3001
+ catalog: on,
3002
+ cms: Ft,
3003
+ search: En,
3004
+ masterdata: Fn,
3005
+ marketingdata: $t,
3006
+ user: ia,
3007
+ aviseme: ca,
3008
+ preview: da,
3009
+ exitpreview: ma,
3010
+ vtexXmlProxy: ha,
2923
3011
  wishlist: {
2924
- ...jn
3012
+ ...Dn
2925
3013
  }
2926
- }, ca = {
2927
- catalog: Lt,
2928
- search: $t,
2929
- product: Ft,
3014
+ }, Pa = {
3015
+ catalog: Ht,
3016
+ search: oa,
3017
+ product: Ut,
2930
3018
  cms: {
2931
- ...jt,
2932
- ...Nt
3019
+ ...Dt,
3020
+ ...Lt
2933
3021
  }
2934
- }, ua = {
3022
+ }, xa = {
2935
3023
  template: {
2936
3024
  pdp: {}
2937
3025
  }
2938
3026
  };
2939
3027
  export {
2940
- la as serverAPIs,
2941
- sa as serverCMS,
2942
- ua as serverComponents,
2943
- ca as serverHelpers
3028
+ Ia as serverAPIs,
3029
+ Ra as serverCMS,
3030
+ xa as serverComponents,
3031
+ Pa as serverHelpers
2944
3032
  };