@soma-vertical-web/multi-lib 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/cms/ContentTypes/LPLojas/LPLojaClientWrapper.d.ts +1 -1
  2. package/cms/ContentTypes/LPLojas/LPLojasContent.d.ts +1 -1
  3. package/cms/ContentTypes/LPLojas/helpers.d.ts +1 -7
  4. package/cms/ContentTypes/PolicyPage/PolicyPageContent.d.ts +3 -0
  5. package/cms/index.d.ts +1 -1
  6. package/cms/server.d.ts +2 -1
  7. package/contexts/contexts/lplojas/Context.d.ts +1 -1
  8. package/contexts/index.d.ts +2 -2
  9. package/index-D61YFVi9.mjs +2261 -0
  10. package/index-DyKuIyRP.js +4 -0
  11. package/index.js +16 -16
  12. package/index.mjs +7158 -6900
  13. package/index2.js +2 -2
  14. package/index2.mjs +949 -999
  15. package/layout/index.d.ts +6 -4
  16. package/layout/template/LPLojas/Composite/Details/Details.d.ts +1 -1
  17. package/layout/template/LPLojas/Composite/Details/Item.d.ts +1 -1
  18. package/layout/template/LPLojas/Composite/Details/Vendor.d.ts +1 -1
  19. package/layout/template/LPLojas/Composite/DropDown/DropDown.d.ts +1 -1
  20. package/layout/template/LPLojas/Composite/Root.d.ts +1 -1
  21. package/layout/template/LPLojas/index.d.ts +3 -3
  22. package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
  23. package/layout/template/PDC/index.d.ts +1 -1
  24. package/layout/template/PDP/Composite/Info/MainContent/Similars/index.d.ts +1 -1
  25. package/layout/template/PDP/index.d.ts +2 -2
  26. package/layout/template/Politicas/Composite/Banner.d.ts +4 -0
  27. package/layout/template/Politicas/Composite/Container.d.ts +7 -0
  28. package/layout/template/Politicas/Composite/OneTrustPolicy.d.ts +14 -0
  29. package/layout/template/Politicas/Politicas.d.ts +10 -0
  30. package/package.json +1 -1
  31. package/server.d.ts +1 -3
  32. package/style.css +1 -1
  33. package/types/cms/ContentTypes/LPLojas/index.d.ts +22 -1
  34. package/types/cms/ContentTypes/PolicyPage/index.d.ts +17 -0
  35. package/types/cms/Sections/SectionZone/index.d.ts +1 -0
  36. package/types/contexts/contexts/plp.d.ts +1 -0
  37. package/types/contexts/hooks/index.d.ts +12 -0
  38. package/types/layout/team-components/ProductCard/index.d.ts +1 -0
  39. package/types/layout/team-components/ProductList/index.d.ts +2 -1
  40. package/types/layout/templates/LPLojas/Details/index.d.ts +18 -0
  41. package/types/layout/templates/LPLojas/DropDown/index.d.ts +10 -0
  42. package/types/layout/templates/LPLojas/index.d.ts +18 -0
  43. package/types/layout/templates/PDP/index.d.ts +1 -2
  44. package/types/layout/templates/PLP/index.d.ts +1 -0
  45. package/types/layout/templates/Politicas/index.d.ts +27 -0
package/index2.mjs CHANGED
@@ -1,106 +1,106 @@
1
- import { jsx as N, jsxs as K, Fragment as me } from "react/jsx-runtime";
2
- import { F as $, y as se, S as Pt, G as St, H as Ct, a as xt, j as kt, m as Et, r as At, q as Tt, k as Ve, n as Ot, o as qt, l as Nt, D as jt, C as Ft, I as $t, p as Lt, A as Re, J as Dt, K as Ut, L as Ht, e as Mt } from "./index-BhiCzrut.mjs";
1
+ import { jsx as N, jsxs as me, Fragment as J } from "react/jsx-runtime";
2
+ import { F, z as se, S as _t, G as Rt, H as It, a as Pt, j as xt, m as St, r as Ct, q as kt, k as ze, n as Et, o as At, l as Ot, D as Tt, C as qt, I as Nt, p as jt, J as Ft, K as $t, L as Lt, e as Dt, M as Ut } from "./index-D61YFVi9.mjs";
3
3
  import { Utils as le, helpers as ce } from "@soma-vertical-web/core-components";
4
4
  import * as c from "yup";
5
- import Bt from "sanitize-html";
6
- import { decodeJwt as zt } from "jose";
7
- const Gt = async ({
5
+ import Ht from "sanitize-html";
6
+ import { decodeJwt as Mt } from "jose";
7
+ const Bt = async ({
8
8
  children: e,
9
9
  ClientCartProvider: t,
10
10
  ...r
11
11
  }) => {
12
- const { data: n } = await $(
12
+ const { data: n } = await F(
13
13
  "mini_cart",
14
14
  r
15
15
  );
16
16
  return /* @__PURE__ */ N(t, { ...n ? Array.isArray(n) ? { data: n[0] } : { data: n } : {}, children: e });
17
- }, Vt = ({
17
+ }, zt = ({
18
18
  slug: e,
19
19
  data: t,
20
20
  SectionZone: r,
21
21
  COMMON_PAGE_COLUMN_GAP: n,
22
- identifyWhoIsFirst: i
22
+ identifyWhoIsFirst: a
23
23
  }) => {
24
- const a = t == null ? void 0 : t.find(
24
+ const o = t == null ? void 0 : t.find(
25
25
  (u) => {
26
26
  var w, v, y, _;
27
27
  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
28
  }
29
- ), s = a == null ? void 0 : a.config.responsive.gapCustom, o = a == null ? void 0 : a.config.responsive.gapSections, d = t == null ? void 0 : t.find(
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
30
  (u) => {
31
31
  var w, v, y, _;
32
32
  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;
33
33
  }
34
- ), g = d == null ? void 0 : d.config.responsive.gapCustom, l = d == null ? void 0 : d.config.responsive.gapSections;
35
- return /* @__PURE__ */ K(me, { children: [
34
+ ), g = d == null ? void 0 : d.config.responsive.gapCustom, s = d == null ? void 0 : d.config.responsive.gapSections;
35
+ return /* @__PURE__ */ me(J, { children: [
36
36
  /* @__PURE__ */ N(
37
37
  le.Column,
38
38
  {
39
- gap: s && o ? o : n,
39
+ gap: l && i ? i : n,
40
40
  className: ce.classNameConcat(
41
41
  se["responsive-desktop-flex"],
42
42
  "utils-column-modifier"
43
43
  ),
44
- children: /* @__PURE__ */ N(r, { data: (a == null ? void 0 : a.sections) ?? [], identifyWhoIsFirst: i })
44
+ children: /* @__PURE__ */ N(r, { data: (o == null ? void 0 : o.sections) ?? [], identifyWhoIsFirst: a })
45
45
  }
46
46
  ),
47
47
  /* @__PURE__ */ N(
48
48
  le.Column,
49
49
  {
50
- gap: g && l ? l : n,
50
+ gap: g && s ? s : n,
51
51
  className: ce.classNameConcat(
52
52
  se["responsive-mobile-flex"],
53
53
  "utils-column-modifier"
54
54
  ),
55
- children: /* @__PURE__ */ N(r, { data: (d == null ? void 0 : d.sections) ?? [], identifyWhoIsFirst: i })
55
+ children: /* @__PURE__ */ N(r, { data: (d == null ? void 0 : d.sections) ?? [], identifyWhoIsFirst: a })
56
56
  }
57
57
  )
58
58
  ] });
59
- }, Wt = async ({
59
+ }, Gt = async ({
60
60
  slug: e,
61
61
  SectionZone: t,
62
62
  COMMON_PAGE_COLUMN_GAP: r,
63
63
  identifyWhoIsFirst: n = !1,
64
- ...i
64
+ ...a
65
65
  }) => {
66
- const { data: a } = await $(
66
+ const { data: o } = await F(
67
67
  "common_page",
68
- i
68
+ a
69
69
  );
70
- return !a || !Array.isArray(a) || a.length === 0 ? null : /* @__PURE__ */ N(
71
- Vt,
70
+ return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ N(
71
+ zt,
72
72
  {
73
- data: a,
73
+ data: o,
74
74
  slug: e,
75
75
  SectionZone: t,
76
76
  COMMON_PAGE_COLUMN_GAP: r,
77
77
  identifyWhoIsFirst: n
78
78
  }
79
79
  );
80
- }, Qt = async ({
80
+ }, Vt = async ({
81
81
  children: e,
82
82
  ClientFlagsAndTagsProvider: t,
83
83
  ...r
84
84
  }) => {
85
- const { data: n } = await $(
85
+ const { data: n } = await F(
86
86
  "flags_and_tags",
87
87
  r
88
88
  );
89
89
  return !n || !Array.isArray(n) ? null : /* @__PURE__ */ N(t, { data: n[0], children: e });
90
- }, Xt = async ({
90
+ }, Wt = async ({
91
91
  className: e,
92
92
  PAYMENT_FLAGS_DICTIONARY: t,
93
93
  PAYMENT_FLAGS: r,
94
94
  LEGAL_INFORMATION_TEXT: n,
95
- ICONS: i,
96
- SectionZone: a,
97
- Footer: s,
98
- FooterSupport: o,
95
+ ICONS: a,
96
+ SectionZone: o,
97
+ Footer: l,
98
+ FooterSupport: i,
99
99
  hasFooterStamps: d,
100
100
  ...g
101
101
  }) => {
102
102
  var v, y, _, p, b, m, h, f, E, q, I;
103
- const { data: l } = await $("footer", g), u = Array.isArray(l) && ((v = l[0]) == null ? void 0 : v.type) === "footer" ? l[0] : null, w = {
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 = {
104
104
  ...(y = u == null ? void 0 : u.paymentInfo) == null ? void 0 : y.paymentInfo,
105
105
  acceptedFlags: Array.isArray(
106
106
  (_ = u == null ? void 0 : u.paymentInfo) == null ? void 0 : _.paymentInfo.acceptedFlags
@@ -109,7 +109,7 @@ const Gt = async ({
109
109
  ) : []
110
110
  };
111
111
  return u ? /* @__PURE__ */ N(
112
- s,
112
+ l,
113
113
  {
114
114
  className: e,
115
115
  data: { ...u },
@@ -120,55 +120,55 @@ const Gt = async ({
120
120
  adornment: {
121
121
  ...(E = (f = u.supportInfo) == null ? void 0 : f.supportInfo) != null && E.content ? {
122
122
  bottom: /* @__PURE__ */ N(
123
- o,
123
+ i,
124
124
  {
125
125
  content: (I = (q = u.supportInfo) == null ? void 0 : q.supportInfo) == null ? void 0 : I.content,
126
126
  CONSTANTS: {
127
- ICONS: i,
127
+ ICONS: a,
128
128
  PAYMENT_FLAGS: r,
129
129
  PAYMENT_FLAGS_DICTIONARY: t
130
130
  }
131
131
  }
132
132
  )
133
133
  } : {},
134
- ...u.sections.length ? { top: /* @__PURE__ */ N(a, { data: u.sections }) } : {}
134
+ ...u.sections.length ? { top: /* @__PURE__ */ N(o, { data: u.sections }) } : {}
135
135
  },
136
136
  LEGAL_INFORMATION_TEXT: n,
137
- ICONS: i
137
+ ICONS: a
138
138
  }
139
139
  ) : null;
140
- }, Kt = async ({
140
+ }, Qt = async ({
141
141
  children: e,
142
142
  ClientHeaderProvider: t,
143
143
  ...r
144
144
  }) => {
145
- var a, s, o, d, g, l;
146
- const { data: n } = await $(
145
+ var o, l, i, d, g, s;
146
+ const { data: n } = await F(
147
147
  "header",
148
148
  r
149
- ), i = Array.isArray(n) ? n[0] : void 0;
149
+ ), a = Array.isArray(n) ? n[0] : void 0;
150
150
  return /* @__PURE__ */ N(
151
151
  t,
152
152
  {
153
153
  headerData: {
154
- ...((a = i == null ? void 0 : i.layerConfig) == null ? void 0 : a.config) ?? {},
155
- subMenus: ((s = i == null ? void 0 : i.sections) == null ? void 0 : s.map((u) => u.data)) ?? [],
156
- categories: ((d = (o = i == null ? void 0 : i.categories) == null ? void 0 : o.categories) == null ? void 0 : d.items) ?? [],
157
- navigationLinks: ((l = (g = i == null ? void 0 : i.navigationLinks) == null ? void 0 : g.navigationLinks) == null ? void 0 : l.items) ?? []
154
+ ...((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
+ categories: ((d = (i = a == null ? void 0 : a.categories) == null ? void 0 : i.categories) == null ? void 0 : d.items) ?? [],
157
+ navigationLinks: ((s = (g = a == null ? void 0 : a.navigationLinks) == null ? void 0 : g.navigationLinks) == null ? void 0 : s.items) ?? []
158
158
  },
159
159
  children: e
160
160
  }
161
161
  );
162
- }, Jt = (e) => {
163
- var s, o;
164
- const t = (o = (s = e[0]) == null ? void 0 : s.items) == null ? void 0 : o.items;
162
+ }, Xt = (e) => {
163
+ var l, i;
164
+ const t = (i = (l = e[0]) == null ? void 0 : l.items) == null ? void 0 : i.items;
165
165
  if ((t == null ? void 0 : t.items.length) === 0 || e.length === 0)
166
166
  return {
167
167
  iconLabel: "",
168
168
  label: "",
169
169
  content: []
170
170
  };
171
- const r = t == null ? void 0 : t.iconLabel, n = t == null ? void 0 : t.label, i = t == null ? void 0 : t.helpButtonSize, a = t.items.map(
171
+ const r = t == null ? void 0 : t.iconLabel, n = t == null ? void 0 : t.label, a = t == null ? void 0 : t.helpButtonSize, o = t.items.map(
172
172
  (d, g) => ({
173
173
  type: d.type,
174
174
  id: `${g.toString()}-${d.title.toLowerCase()}`,
@@ -185,165 +185,165 @@ const Gt = async ({
185
185
  return {
186
186
  iconLabel: r,
187
187
  label: n,
188
- helpButtonSize: i,
189
- content: a
188
+ helpButtonSize: a,
189
+ content: o
190
190
  };
191
- }, Zt = async ({
191
+ }, Kt = async ({
192
192
  HelpButton: e,
193
193
  ICONS: t,
194
194
  className: r,
195
195
  ...n
196
196
  }) => {
197
- const { data: i } = await $(
197
+ const { data: a } = await F(
198
198
  "helpbutton",
199
199
  n
200
200
  );
201
- if (!i || !Array.isArray(i) || i.length === 0)
201
+ if (!a || !Array.isArray(a) || a.length === 0)
202
202
  return null;
203
- const a = Jt(i);
203
+ const o = Xt(a);
204
204
  return /* @__PURE__ */ N(
205
205
  e,
206
206
  {
207
- data: a,
207
+ data: o,
208
208
  ICONS: t,
209
209
  className: r
210
210
  }
211
211
  );
212
- }, Yt = async ({
212
+ }, Jt = async ({
213
213
  SectionZone: e,
214
214
  LPCadastro: t,
215
215
  ...r
216
216
  }) => {
217
217
  var d;
218
- const { data: n } = await $(
218
+ const { data: n } = await F(
219
219
  "lp_cadastro",
220
220
  r
221
221
  );
222
222
  if (!n || !Array.isArray(n) || n.length === 0)
223
223
  return null;
224
- const [i] = n, a = (i == null ? void 0 : i.sections) || [], s = ((d = i == null ? void 0 : i.content) == null ? void 0 : d.conteúdo) || {}, o = i == null ? void 0 : i.sections;
225
- return /* @__PURE__ */ K(me, { children: [
226
- /* @__PURE__ */ N(t, { sections: a, content: s }),
227
- /* @__PURE__ */ N(e, { data: o })
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
+ return /* @__PURE__ */ me(J, { children: [
226
+ /* @__PURE__ */ N(t, { sections: o, content: l }),
227
+ /* @__PURE__ */ N(e, { data: i })
228
228
  ] });
229
- }, er = async ({
229
+ }, Zt = async ({
230
230
  LPLOJAS_TEMPLATE_RETURN_BUTTON: e,
231
231
  ICONS: t,
232
232
  entity: r,
233
233
  showVendor: n,
234
- LPStoresClientWrapper: i,
235
- ...a
234
+ LPStoresClientWrapper: a,
235
+ ...o
236
236
  }) => {
237
237
  var g;
238
- const { data: s } = await $("lp_lojas", a), d = (g = (Array.isArray(s) ? s : [])[0]) == null ? void 0 : g.config.config;
238
+ const { data: l } = await F("lp_lojas", o), d = (g = (Array.isArray(l) ? l : [])[0]) == null ? void 0 : g.config.config;
239
239
  return /* @__PURE__ */ N(
240
- i,
240
+ a,
241
241
  {
242
242
  entity: r,
243
243
  content: d,
244
- data: s,
244
+ data: l,
245
245
  showVendor: n,
246
246
  ICONS: t,
247
247
  LPLOJAS_TEMPLATE_RETURN_BUTTON: e
248
248
  }
249
249
  );
250
- }, tr = async ({
250
+ }, Yt = async ({
251
251
  children: e,
252
252
  productId: t,
253
253
  COMMON_PAGE_COLUMN_GAP: r,
254
254
  SectionZone: n,
255
- PDPContentProvider: i,
256
- ...a
255
+ PDPContentProvider: a,
256
+ ...o
257
257
  }) => {
258
- const { data: s } = await $(
258
+ const { data: l } = await F(
259
259
  "product_page",
260
- a
260
+ o
261
261
  );
262
- return !s || !Array.isArray(s) || s.length === 0 ? null : /* @__PURE__ */ N(
263
- i,
262
+ return !l || !Array.isArray(l) || l.length === 0 ? null : /* @__PURE__ */ N(
263
+ a,
264
264
  {
265
- data: s[0],
265
+ data: l[0],
266
266
  productId: t,
267
267
  COMMON_PAGE_COLUMN_GAP: r,
268
268
  SectionZone: n,
269
269
  children: e
270
270
  }
271
271
  );
272
- }, rr = {
272
+ }, er = {
273
273
  "column-modifier": "_column-modifier_1tqap_1"
274
- }, nr = async ({
274
+ }, tr = async ({
275
275
  className: e,
276
276
  children: t,
277
277
  slug: r,
278
278
  SectionZone: n,
279
- COMMON_PAGE_COLUMN_GAP_PDC: i,
280
- PLPContentProvider: a,
281
- ...s
279
+ COMMON_PAGE_COLUMN_GAP_PDC: a,
280
+ PLPContentProvider: o,
281
+ ...l
282
282
  }) => {
283
- const { data: o } = await $(
283
+ const { data: i } = await F(
284
284
  "categories_page",
285
- s
285
+ l
286
286
  );
287
- if (!o || !Array.isArray(o))
287
+ if (!i || !Array.isArray(i))
288
288
  return null;
289
- const d = o.find(
289
+ const d = i.find(
290
290
  (v) => {
291
291
  var y, _, p;
292
292
  return ((y = v.config) == null ? void 0 : y.seo.slug) === r && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "desktop";
293
293
  }
294
- ), g = o.find(
294
+ ), g = i.find(
295
295
  (v) => {
296
296
  var y, _, p;
297
297
  return ((y = v.config) == null ? void 0 : y.seo.slug) === r && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "mobile";
298
298
  }
299
- ), l = o.find(
299
+ ), s = i.find(
300
300
  (v) => {
301
301
  var y, _, p;
302
302
  return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "desktop";
303
303
  }
304
- ), u = o.find(
304
+ ), u = i.find(
305
305
  (v) => {
306
306
  var y, _, p;
307
307
  return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "mobile";
308
308
  }
309
309
  ), w = Array.isArray(e) ? e : [e];
310
- return /* @__PURE__ */ K(me, { children: [
310
+ return /* @__PURE__ */ me(J, { children: [
311
311
  /* @__PURE__ */ N(
312
312
  le.Column,
313
313
  {
314
314
  className: ce.classNameConcat(
315
315
  se["responsive-desktop-flex"],
316
- [rr["column-modifier"], ...w]
316
+ [er["column-modifier"], ...w]
317
317
  ),
318
318
  style: {
319
319
  minHeight: "100vh"
320
320
  },
321
321
  children: /* @__PURE__ */ N(
322
- a,
322
+ o,
323
323
  {
324
- data: d ?? l,
324
+ data: d ?? s,
325
325
  device: "desktop",
326
326
  SectionZone: n,
327
- COMMON_PAGE_COLUMN_GAP_PDC: i,
327
+ COMMON_PAGE_COLUMN_GAP_PDC: a,
328
328
  children: t
329
329
  }
330
330
  )
331
331
  }
332
332
  ),
333
333
  /* @__PURE__ */ N(le.Column, { className: ce.classNameConcat(se["responsive-mobile-flex"], e), children: /* @__PURE__ */ N(
334
- a,
334
+ o,
335
335
  {
336
336
  data: g ?? u,
337
337
  device: "mobile",
338
338
  SectionZone: n,
339
- COMMON_PAGE_COLUMN_GAP_PDC: i,
339
+ COMMON_PAGE_COLUMN_GAP_PDC: a,
340
340
  children: t
341
341
  }
342
342
  ) })
343
343
  ] });
344
- }, ir = async ({ slug: e, ...t }) => {
345
- var s, o, d;
346
- const { data: r } = await $(
344
+ }, rr = async ({ slug: e, ...t }) => {
345
+ var l, i, d;
346
+ const { data: r } = await F(
347
347
  "redirect_to_search",
348
348
  t
349
349
  );
@@ -353,26 +353,26 @@ const Gt = async ({
353
353
  query: null,
354
354
  redirect: !1
355
355
  };
356
- const n = ((d = (o = (s = r[0]) == null ? void 0 : s.redirectToSearch) == null ? void 0 : o.redirectToSearch) == null ? void 0 : d.paths) ?? [];
356
+ const n = ((d = (i = (l = r[0]) == null ? void 0 : l.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
357
357
  if (!!!n.length)
358
358
  return {
359
359
  slug: e,
360
360
  query: null,
361
361
  redirect: !1
362
362
  };
363
- const a = n.find(
363
+ const o = n.find(
364
364
  (g) => {
365
- var l, u;
366
- return ((l = g.path) == null ? void 0 : l.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((u = g.path) == null ? void 0 : u.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
365
+ var s, u;
366
+ return ((s = g.path) == null ? void 0 : s.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((u = g.path) == null ? void 0 : u.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
367
367
  }
368
368
  );
369
- return a ? {
369
+ return o ? {
370
370
  slug: e,
371
- query: a == null ? void 0 : a.searchQuery,
371
+ query: o == null ? void 0 : o.searchQuery,
372
372
  redirect: !0,
373
- collectionId: a == null ? void 0 : a.collectionId,
374
- filters: a == null ? void 0 : a.filters,
375
- sort: a == null ? void 0 : a.sort
373
+ collectionId: o == null ? void 0 : o.collectionId,
374
+ filters: o == null ? void 0 : o.filters,
375
+ sort: o == null ? void 0 : o.sort
376
376
  } : {
377
377
  slug: e,
378
378
  query: null,
@@ -381,98 +381,125 @@ const Gt = async ({
381
381
  filters: null,
382
382
  sort: null
383
383
  };
384
- }, or = async ({ slug: e, ...t }) => {
385
- var s, o, d;
386
- const { data: r } = await $(
384
+ }, nr = async ({ slug: e, ...t }) => {
385
+ var l, i, d;
386
+ const { data: r } = await F(
387
387
  "redirect_to_search",
388
388
  t
389
389
  );
390
390
  if (!r || !Array.isArray(r))
391
391
  return null;
392
- const n = ((d = (o = (s = r[0]) == null ? void 0 : s.redirectToSearch) == null ? void 0 : o.redirectToSearch) == null ? void 0 : d.paths) ?? [];
392
+ const n = ((d = (i = (l = r[0]) == null ? void 0 : l.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
393
393
  if (!!!n.length)
394
394
  return null;
395
- const a = n.find(
395
+ const o = n.find(
396
396
  (g) => {
397
- var l, u;
398
- return ((l = g.path) == null ? void 0 : l.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((u = g.path) == null ? void 0 : u.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
397
+ var s, u;
398
+ return ((s = g.path) == null ? void 0 : s.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((u = g.path) == null ? void 0 : u.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
399
399
  }
400
400
  );
401
- return a ? {
401
+ return o ? {
402
402
  slug: e,
403
- title: a.pageTitle,
404
- description: a.pageDescription
403
+ title: o.pageTitle,
404
+ description: o.pageDescription
405
405
  } : null;
406
406
  }, ar = async ({
407
+ slug: e,
408
+ Politicas: t,
409
+ SectionZone: r,
410
+ oneTrust: n,
411
+ ...a
412
+ }) => {
413
+ const { data: o } = await F(
414
+ "policy_page",
415
+ a
416
+ ), { data: l } = await F(
417
+ "policy_tab",
418
+ a
419
+ ), i = Array.isArray(o) ? o : null, d = Array.isArray(l) ? l : null, g = i ? i[0].sections : null;
420
+ return !i || !d ? null : /* @__PURE__ */ me(J, { children: [
421
+ /* @__PURE__ */ N(
422
+ t,
423
+ {
424
+ slug: e,
425
+ pageData: i[0],
426
+ tabsData: d,
427
+ oneTrust: n
428
+ }
429
+ ),
430
+ g && /* @__PURE__ */ N(r, { data: g })
431
+ ] });
432
+ }, ir = async ({
407
433
  children: e,
408
434
  SectionZone: t,
409
435
  className: r,
410
436
  ...n
411
437
  }) => {
412
- const { data: i } = await $(
438
+ const { data: a } = await F(
413
439
  "search_page",
414
440
  n
415
441
  );
416
- return Array.isArray(i) && i.length > 0 ? /* @__PURE__ */ N(
417
- Pt,
442
+ return Array.isArray(a) && a.length > 0 ? /* @__PURE__ */ N(
443
+ _t,
418
444
  {
419
- data: i,
445
+ data: a,
420
446
  SectionZone: t,
421
447
  className: r,
422
448
  children: e
423
449
  }
424
- ) : /* @__PURE__ */ N(me, { children: "children" });
425
- }, sr = async ({
450
+ ) : /* @__PURE__ */ N(J, { children: "children" });
451
+ }, or = async ({
426
452
  ClientTipbarContent: e,
427
453
  ...t
428
454
  }) => {
429
- const { data: r } = await $(
455
+ const { data: r } = await F(
430
456
  "tipbar",
431
457
  t
432
458
  );
433
459
  return /* @__PURE__ */ N(e, { data: r });
434
- }, lr = {
435
- CommonPageContent: Wt,
436
- CartContent: Gt,
437
- FlagsAndTagsContent: Qt,
438
- HeaderContent: Kt,
439
- TipbarContent: sr,
440
- FooterContent: Xt,
441
- PLPContent: nr,
442
- PDPContent: tr,
443
- getRedirectData: ir,
444
- getPLPSynteticMetaData: or,
445
- SearchPageContent: ar,
446
- HelpButtonContent: Zt,
447
- LPCadastroContent: Yt,
448
- LPLojasContent: er
449
- }, vi = { Components: lr }, T = async (e, t = {}) => {
450
- const { method: r = "GET", body: n, headers: i = {}, priority: a = "auto", cache: s = "default" } = t;
460
+ }, sr = {
461
+ CommonPageContent: Gt,
462
+ CartContent: Bt,
463
+ FlagsAndTagsContent: Vt,
464
+ HeaderContent: Qt,
465
+ TipbarContent: or,
466
+ FooterContent: Wt,
467
+ PLPContent: tr,
468
+ PDPContent: Yt,
469
+ getRedirectData: rr,
470
+ getPLPSynteticMetaData: nr,
471
+ SearchPageContent: ir,
472
+ HelpButtonContent: Kt,
473
+ LPCadastroContent: Jt,
474
+ LPLojasContent: Zt,
475
+ PolicyPageContent: ar
476
+ }, la = { Components: sr }, O = async (e, t = {}) => {
477
+ const { method: r = "GET", body: n, headers: a = {}, priority: o = "auto", cache: l = "default" } = t;
451
478
  return fetch(e, {
452
479
  method: r,
453
480
  headers: {
454
- ...i,
481
+ ...a,
455
482
  Accept: "application/json",
456
483
  "Content-Type": "application/json"
457
484
  },
458
- priority: a,
459
- cache: s,
485
+ priority: o,
486
+ cache: l,
460
487
  ...n ? { body: JSON.stringify(n) } : {}
461
488
  // not body in get
462
- }).then((o) => o.json()).catch((o) => {
463
- console.error("[ERROR FETCH VTEX]", o);
489
+ }).then((i) => i.json()).catch((i) => {
490
+ console.error("[ERROR FETCH VTEX]", i);
464
491
  });
465
492
  }, X = /* @__PURE__ */ new Map();
466
- async function cr(e, t = {}) {
493
+ async function lr(e, t = {}) {
467
494
  var r;
468
495
  try {
469
- const { abort: n = !1 } = t, i = new AbortController();
470
- n && (X.has(e) && ((r = X.get(e)) == null || r.abort(), X.delete(e)), X.set(e, i));
471
- const a = T(e, {
496
+ const { abort: n = !1 } = t, a = new AbortController();
497
+ n && (X.has(e) && ((r = X.get(e)) == null || r.abort(), X.delete(e)), X.set(e, a));
498
+ const o = O(e, {
472
499
  ...t,
473
- ...n ? { signal: i.signal } : {}
500
+ ...n ? { signal: a.signal } : {}
474
501
  });
475
- return n && X.delete(e), a;
502
+ return n && X.delete(e), o;
476
503
  } catch (n) {
477
504
  if (n.name === "AbortError") {
478
505
  console.log(`[REQUEST CANCELLED]: ${e}`);
@@ -481,19 +508,19 @@ async function cr(e, t = {}) {
481
508
  throw console.error(`[ERROR API]: ${n.message}`), n;
482
509
  }
483
510
  }
484
- const ur = c.object({
511
+ const cr = c.object({
485
512
  country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
486
513
  postalCode: c.string().nullable()
487
514
  });
488
- async function dr({ apiUrl: e, body: t, fetchOptions: r }) {
515
+ async function ur({ apiUrl: e, body: t, fetchOptions: r }) {
489
516
  if (!t) {
490
517
  console.error("[ERROR FETCHING] Body is required");
491
518
  return;
492
519
  }
493
- await ur.validate(t);
494
- const { country: n, postalCode: i } = t;
495
- return await T(
496
- `${e}/api/checkout/pub/postal-code/${n}/${i}`,
520
+ await cr.validate(t);
521
+ const { country: n, postalCode: a } = t;
522
+ return await O(
523
+ `${e}/api/checkout/pub/postal-code/${n}/${a}`,
497
524
  {
498
525
  method: "POST",
499
526
  body: t,
@@ -501,12 +528,12 @@ async function dr({ apiUrl: e, body: t, fetchOptions: r }) {
501
528
  }
502
529
  );
503
530
  }
504
- const pr = c.object({
531
+ const dr = c.object({
505
532
  orderFormId: c.string().nullable(),
506
533
  sellerCode: c.string().nullable(),
507
534
  sellerName: c.string().nullable()
508
535
  });
509
- async function We({
536
+ async function Ge({
510
537
  apiUrl: e,
511
538
  body: t,
512
539
  fetchOptions: r
@@ -515,25 +542,25 @@ async function We({
515
542
  console.error("[ERROR FETCHING] Body is required");
516
543
  return;
517
544
  }
518
- await pr.validate(t);
519
- const { orderFormId: n, sellerCode: i, sellerName: a } = t, s = i ? `${i.trim()} - ${a}` : null;
520
- return T(
545
+ await dr.validate(t);
546
+ const { orderFormId: n, sellerCode: a, sellerName: o } = t, l = a ? `${a.trim()} - ${o}` : null;
547
+ return O(
521
548
  `${e}/api/checkout/pub/orderForm/${n}/attachments/openTextField`,
522
549
  {
523
550
  method: "POST",
524
551
  body: {
525
- value: s
552
+ value: l
526
553
  },
527
554
  ...r
528
555
  }
529
556
  );
530
557
  }
531
- const mr = c.object({
558
+ const pr = c.object({
532
559
  orderFormId: c.string().nullable(),
533
560
  sellerCode: c.string().nullable(),
534
561
  marketingData: c.object()
535
562
  });
536
- async function Qe({
563
+ async function Ve({
537
564
  apiUrl: e,
538
565
  body: t,
539
566
  extraData: r = {},
@@ -543,50 +570,50 @@ async function Qe({
543
570
  console.error("[ERROR FETCHING] Body is required");
544
571
  return;
545
572
  }
546
- await mr.validate(t);
547
- const { orderFormId: i, sellerCode: a, marketingData: s } = t, o = a ? {
548
- utmCampaign: a ? a.toUpperCase() : "",
549
- utmiCampaign: a ? `${r.VENDOR_CODE}` : "semcodigo"
573
+ await pr.validate(t);
574
+ const { orderFormId: a, sellerCode: o, marketingData: l } = t, i = o ? {
575
+ utmCampaign: o ? o.toUpperCase() : "",
576
+ utmiCampaign: o ? `${r.VENDOR_CODE}` : "semcodigo"
550
577
  } : {};
551
- return T(
552
- `${e}/api/checkout/pub/orderForm/${i}/attachments/marketingData`,
578
+ return O(
579
+ `${e}/api/checkout/pub/orderForm/${a}/attachments/marketingData`,
553
580
  {
554
581
  method: "POST",
555
582
  body: {
556
- ...s,
557
- ...o
583
+ ...l,
584
+ ...i
558
585
  },
559
586
  ...n
560
587
  }
561
588
  );
562
589
  }
563
- const hr = c.object({
590
+ const mr = c.object({
564
591
  orderFormId: c.string().nullable(),
565
592
  sellerCode: c.string().nullable(),
566
593
  sellerName: c.string().nullable()
567
594
  });
568
- async function fr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
595
+ async function hr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
569
596
  if (!t) {
570
597
  console.error("[ERROR FETCHING] Body is required");
571
598
  return;
572
599
  }
573
- await hr.validate(t);
574
- const i = await We({ apiUrl: e, body: t, fetchOptions: r });
575
- return Qe({
600
+ await mr.validate(t);
601
+ const a = await Ge({ apiUrl: e, body: t, fetchOptions: r });
602
+ return Ve({
576
603
  apiUrl: e,
577
604
  body: {
578
605
  ...t,
579
- marketingData: i == null ? void 0 : i.marketingData
606
+ marketingData: a == null ? void 0 : a.marketingData
580
607
  },
581
608
  extraData: n,
582
609
  fetchOptions: r
583
610
  });
584
611
  }
585
- const gr = c.object({
612
+ const fr = c.object({
586
613
  orderFormId: c.string().nullable(),
587
614
  coupon: c.string().nullable()
588
615
  });
589
- async function br({
616
+ async function gr({
590
617
  apiUrl: e,
591
618
  body: t,
592
619
  fetchOptions: r
@@ -595,10 +622,10 @@ async function br({
595
622
  console.error("[ERROR FETCHING] Body is required");
596
623
  return;
597
624
  }
598
- await gr.validate(t);
599
- const { coupon: n = "", orderFormId: i } = t;
600
- return T(
601
- `${e}/api/checkout/pub/orderForm/${i}/coupons`,
625
+ await fr.validate(t);
626
+ const { coupon: n = "", orderFormId: a } = t;
627
+ return O(
628
+ `${e}/api/checkout/pub/orderForm/${a}/coupons`,
602
629
  {
603
630
  method: "POST",
604
631
  body: { text: n },
@@ -606,12 +633,12 @@ async function br({
606
633
  }
607
634
  );
608
635
  }
609
- const wr = c.object({
636
+ const br = c.object({
610
637
  appId: c.string().required("App ID is required"),
611
638
  orderFormId: c.string().nullable(),
612
639
  key: c.array().of(c.string())
613
640
  });
614
- async function vr({
641
+ async function wr({
615
642
  apiUrl: e,
616
643
  body: t,
617
644
  fetchOptions: r
@@ -620,33 +647,33 @@ async function vr({
620
647
  console.error("[ERROR FETCHING] Body is required");
621
648
  return;
622
649
  }
623
- await wr.validate(t);
624
- const { appId: n = "faststore", orderFormId: i, key: a } = t;
625
- return T(
626
- `${e}/api/checkout/pub/orderForm/${i}/customData/${n}/${a}`,
650
+ await br.validate(t);
651
+ const { appId: n = "faststore", orderFormId: a, key: o } = t;
652
+ return O(
653
+ `${e}/api/checkout/pub/orderForm/${a}/customData/${n}/${o}`,
627
654
  {
628
655
  method: "PUT",
629
656
  ...r
630
657
  }
631
658
  );
632
659
  }
633
- const yr = c.object().shape({
660
+ const vr = c.object().shape({
634
661
  name: c.string().required("Attachment name is required"),
635
662
  content: c.object().nullable()
636
663
  });
637
- var ze;
638
- const _r = c.object().shape({
639
- attachments: (ze = c.array().of(yr)) == null ? void 0 : ze.nullable(),
664
+ var Me;
665
+ const yr = c.object().shape({
666
+ attachments: (Me = c.array().of(vr)) == null ? void 0 : Me.nullable(),
640
667
  id: c.string().required("ID of SKU is required"),
641
668
  index: c.number().integer().nullable(),
642
669
  quantity: c.number().integer().nullable(),
643
670
  seller: c.string().required("Seller is required"),
644
671
  price: c.number().integer()
645
- }), Rr = c.object({
672
+ }), _r = c.object({
646
673
  orderFormId: c.string().required("OrderFormId is required"),
647
- orderItems: c.array().of(_r)
674
+ orderItems: c.array().of(yr)
648
675
  });
649
- async function Ir({
676
+ async function Rr({
650
677
  apiUrl: e,
651
678
  body: t,
652
679
  fetchOptions: r
@@ -655,21 +682,21 @@ async function Ir({
655
682
  console.error("[ERROR FETCHING] Body is required");
656
683
  return;
657
684
  }
658
- await Rr.validate(t);
659
- const { orderFormId: n, orderItems: i } = t;
660
- return T(
685
+ await _r.validate(t);
686
+ const { orderFormId: n, orderItems: a } = t;
687
+ return O(
661
688
  `${e}/api/checkout/pub/orderForm/${n}/items`,
662
689
  {
663
690
  method: "POST",
664
- body: { orderItems: i },
691
+ body: { orderItems: a },
665
692
  ...r
666
693
  }
667
694
  );
668
695
  }
669
- const Pr = c.object({
696
+ const Ir = c.object({
670
697
  orderFormId: c.string().nullable()
671
698
  });
672
- async function Sr({
699
+ async function Pr({
673
700
  apiUrl: e,
674
701
  body: t,
675
702
  fetchOptions: r
@@ -678,9 +705,9 @@ async function Sr({
678
705
  console.error("[ERROR FETCHING] Body is required");
679
706
  return;
680
707
  }
681
- await Pr.validate(t);
708
+ await Ir.validate(t);
682
709
  const { orderFormId: n } = t;
683
- return T(
710
+ return O(
684
711
  `${e}/api/checkout/pub/orderForm/${n}/items/removeAll`,
685
712
  {
686
713
  method: "POST",
@@ -688,23 +715,23 @@ async function Sr({
688
715
  }
689
716
  );
690
717
  }
691
- const Cr = c.object().shape({
718
+ const xr = c.object().shape({
692
719
  name: c.string().required("Attachment name is required"),
693
720
  content: c.object().nullable()
694
721
  });
695
- var Ge;
696
- const xr = c.object().shape({
697
- attachments: (Ge = c.array().of(Cr)) == null ? void 0 : Ge.nullable(),
722
+ var Be;
723
+ const Sr = c.object().shape({
724
+ attachments: (Be = c.array().of(xr)) == null ? void 0 : Be.nullable(),
698
725
  id: c.string().required("ID of SKU is required"),
699
726
  index: c.number().integer().nullable(),
700
727
  quantity: c.number().integer().nullable(),
701
728
  seller: c.string().required("Seller is required"),
702
729
  price: c.number().integer()
703
- }), kr = c.object({
730
+ }), Cr = c.object({
704
731
  orderFormId: c.string().nullable(),
705
- orderItems: c.array().of(xr)
732
+ orderItems: c.array().of(Sr)
706
733
  });
707
- async function Er({
734
+ async function kr({
708
735
  apiUrl: e,
709
736
  body: t,
710
737
  fetchOptions: r
@@ -713,21 +740,21 @@ async function Er({
713
740
  console.error("[ERROR FETCHING] Body is required");
714
741
  return;
715
742
  }
716
- await kr.validate(t);
717
- const { orderFormId: n, orderItems: i } = t;
718
- return T(
743
+ await Cr.validate(t);
744
+ const { orderFormId: n, orderItems: a } = t;
745
+ return O(
719
746
  `${e}/api/checkout/pub/orderForm/${n}/items/update`,
720
747
  {
721
748
  method: "POST",
722
- body: { orderItems: i },
749
+ body: { orderItems: a },
723
750
  ...r
724
751
  }
725
752
  );
726
753
  }
727
- const Ar = c.object({
754
+ const Er = c.object({
728
755
  orderFormId: c.string().nullable()
729
756
  });
730
- async function Tr({
757
+ async function Ar({
731
758
  apiUrl: e,
732
759
  body: t,
733
760
  fetchOptions: r
@@ -736,9 +763,9 @@ async function Tr({
736
763
  console.error("[ERROR FETCHING] Body is required");
737
764
  return;
738
765
  }
739
- await Ar.validate(t);
766
+ await Er.validate(t);
740
767
  const { orderFormId: n } = t;
741
- return T(
768
+ return O(
742
769
  `${e}/api/checkout/pub/orderForm/${n}/messages/clear`,
743
770
  {
744
771
  method: "POST",
@@ -753,40 +780,40 @@ const Or = c.object({
753
780
  orderFormId: c.string().nullable(),
754
781
  remove: c.boolean().nullable()
755
782
  });
756
- async function qr({ apiUrl: e, body: t, fetchOptions: r }) {
783
+ async function Tr({ apiUrl: e, body: t, fetchOptions: r }) {
757
784
  if (!t) {
758
785
  console.error("[ERROR FETCHING] Body is required");
759
786
  return;
760
787
  }
761
788
  await Or.validate(t);
762
- const { itemIndex: n, orderFormId: i, id: a, remove: s } = t, o = s ? `/${a}/remove` : "", d = `${e}/api/checkout/pub/orderForm/${i}/items/${n}/offerings${o}`;
763
- return T(d, {
789
+ 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}`;
790
+ return O(d, {
764
791
  method: "POST",
765
- body: { id: a },
792
+ body: { id: o },
766
793
  ...r
767
794
  });
768
795
  }
769
- const Nr = c.object({
796
+ const qr = c.object({
770
797
  orderFormId: c.string().nullable()
771
798
  });
772
- async function jr({
799
+ async function Nr({
773
800
  apiUrl: e,
774
801
  body: t,
775
802
  fetchOptions: r,
776
803
  extraData: n
777
804
  }) {
778
- var s;
805
+ var l;
779
806
  if (!t) {
780
807
  console.error("[ERROR FETCHING] Body is required");
781
808
  return;
782
809
  }
783
- await Nr.validate(t);
784
- const i = new URLSearchParams({
810
+ await qr.validate(t);
811
+ const a = new URLSearchParams({
785
812
  refreshOutdatedData: "true"
786
- }), a = t.orderFormId && ((s = n.orderFormPurchaseId) == null ? void 0 : s.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(i)}` : `${e}/api/checkout/pub/orderForm`;
787
- return T(a, { method: "GET", ...r });
813
+ }), 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`;
814
+ return O(o, { method: "GET", ...r });
788
815
  }
789
- const Fr = c.object({
816
+ const jr = c.object({
790
817
  orderFormId: c.string().nullable(),
791
818
  email: c.string().email().required(),
792
819
  firstName: c.string().required(),
@@ -795,7 +822,7 @@ const Fr = c.object({
795
822
  document: c.string().required(),
796
823
  phone: c.string().matches(/^\+\d{1,3}\d{10,11}$/)
797
824
  });
798
- async function $r({
825
+ async function Fr({
799
826
  apiUrl: e,
800
827
  body: t,
801
828
  fetchOptions: r
@@ -804,21 +831,21 @@ async function $r({
804
831
  console.error("[ERROR FETCHING] Body is required");
805
832
  return;
806
833
  }
807
- await Fr.validate(t);
808
- const { orderFormId: n, ...i } = t;
809
- return T(
834
+ await jr.validate(t);
835
+ const { orderFormId: n, ...a } = t;
836
+ return O(
810
837
  `${e}/api/checkout/pub/orderForm/${n}/attachments/clientProfileData`,
811
838
  {
812
839
  method: "POST",
813
- body: { ...i },
840
+ body: { ...a },
814
841
  ...r
815
842
  }
816
843
  );
817
844
  }
818
- const Lr = c.object({
845
+ const $r = c.object({
819
846
  sellerCode: c.string().nullable()
820
847
  });
821
- async function Dr({
848
+ async function Lr({
822
849
  apiUrl: e,
823
850
  body: t,
824
851
  extraData: r,
@@ -828,10 +855,10 @@ async function Dr({
828
855
  console.error("[ERROR FETCHING] Body is required");
829
856
  return;
830
857
  }
831
- await Lr.validate(t);
832
- const { sellerCode: i = "" } = t;
833
- return T(
834
- `${e}/api/dataentities/${r.ENTITIES}/search?_fields=${r.FIELDS}&${r.FILTER}=${i}`,
858
+ await $r.validate(t);
859
+ const { sellerCode: a = "" } = t;
860
+ return O(
861
+ `${e}/api/dataentities/${r.ENTITIES}/search?_fields=${r.FIELDS}&${r.FILTER}=${a}`,
835
862
  {
836
863
  method: "GET",
837
864
  headers: {
@@ -841,12 +868,12 @@ async function Dr({
841
868
  }
842
869
  );
843
870
  }
844
- const Ur = c.object().shape({
871
+ const Dr = c.object().shape({
845
872
  country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
846
873
  orderFormId: c.string().nullable(),
847
874
  postalCode: c.string().nullable()
848
875
  });
849
- async function Hr({
876
+ async function Ur({
850
877
  apiUrl: e,
851
878
  body: t,
852
879
  fetchOptions: r
@@ -855,27 +882,27 @@ async function Hr({
855
882
  console.error("[ERROR FETCHING] Body is required");
856
883
  return;
857
884
  }
858
- await Ur.validate(t);
859
- const { country: n, orderFormId: i, postalCode: a } = t, s = a ? {
885
+ await Dr.validate(t);
886
+ const { country: n, orderFormId: a, postalCode: o } = t, l = o ? {
860
887
  address: {
861
888
  addressType: "residential",
862
- postalCode: a,
889
+ postalCode: o,
863
890
  country: n
864
891
  }
865
892
  } : {
866
893
  logisticsInfo: [],
867
894
  clearAddressIfPostalCodeNotFound: !0
868
895
  };
869
- return T(
870
- `${e}/api/checkout/pub/orderForm/${i}/attachments/shippingData`,
896
+ return O(
897
+ `${e}/api/checkout/pub/orderForm/${a}/attachments/shippingData`,
871
898
  {
872
899
  method: "POST",
873
- body: s,
900
+ body: l,
874
901
  ...r
875
902
  }
876
903
  );
877
904
  }
878
- const Mr = c.object().shape({
905
+ const Hr = c.object().shape({
879
906
  orderFormId: c.string().nullable(),
880
907
  options: c.array().of(
881
908
  c.object().shape({
@@ -903,27 +930,27 @@ const Mr = c.object().shape({
903
930
  })
904
931
  )
905
932
  });
906
- async function Br({ apiUrl: e, body: t, fetchOptions: r }) {
933
+ async function Mr({ apiUrl: e, body: t, fetchOptions: r }) {
907
934
  if (!t) {
908
935
  console.error("[ERROR FETCHING] Body is required");
909
936
  return;
910
937
  }
911
- await Mr.validate(t);
912
- const { orderFormId: n, options: i, selectedAddresses: a } = t;
913
- return T(
938
+ await Hr.validate(t);
939
+ const { orderFormId: n, options: a, selectedAddresses: o } = t;
940
+ return O(
914
941
  `${e}/api/checkout/pub/orderForm/${n}/attachments/shippingData`,
915
942
  {
916
943
  method: "POST",
917
944
  body: {
918
- selectedAddresses: a,
945
+ selectedAddresses: o,
919
946
  clearAddressIfPostalCodeNotFound: !1,
920
- logisticsInfo: i
947
+ logisticsInfo: a
921
948
  },
922
949
  ...r
923
950
  }
924
951
  );
925
952
  }
926
- const zr = c.object({
953
+ const Br = c.object({
927
954
  country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
928
955
  postalCode: c.string().nullable(),
929
956
  geoCoordinates: c.object().shape({
@@ -931,40 +958,40 @@ const zr = c.object({
931
958
  latitude: c.number().required()
932
959
  })
933
960
  });
934
- async function Gr({ apiUrl: e, body: t, fetchOptions: r }) {
961
+ async function zr({ apiUrl: e, body: t, fetchOptions: r }) {
935
962
  if (!t) {
936
963
  console.error("[ERROR FETCHING] Body is required");
937
964
  return;
938
965
  }
939
- await zr.validate(t);
940
- const { country: n = "", geoCoordinates: i, postalCode: a = "" } = t, s = new URLSearchParams({ country: String(n) });
941
- return a ? s.append("postalCode", a) : s.append(
966
+ await Br.validate(t);
967
+ const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t, l = new URLSearchParams({ country: String(n) });
968
+ return o ? l.append("postalCode", o) : l.append(
942
969
  "geoCoordinates",
943
- `${i == null ? void 0 : i.longitude};${i == null ? void 0 : i.latitude}`
944
- ), await T(
945
- `${e}/api/checkout/pub/regions/?${s.toString()}`,
970
+ `${a == null ? void 0 : a.longitude};${a == null ? void 0 : a.latitude}`
971
+ ), await O(
972
+ `${e}/api/checkout/pub/regions/?${l.toString()}`,
946
973
  {
947
974
  method: "GET",
948
975
  ...r
949
976
  }
950
977
  );
951
978
  }
952
- const Vr = c.object({
979
+ const Gr = c.object({
953
980
  id: c.string().required("ID of SKU is required"),
954
981
  quantity: c.number().integer().required("Quantity of item is required"),
955
982
  seller: c.string()
956
- }), Wr = c.object({
957
- items: c.array().of(Vr),
983
+ }), Vr = c.object({
984
+ items: c.array().of(Gr),
958
985
  country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
959
986
  postalCode: c.string().nullable(),
960
987
  geoCoordinates: c.array().nullable().of(c.number()).length(2)
961
988
  });
962
- async function Qr({ apiUrl: e, body: t, fetchOptions: r }) {
989
+ async function Wr({ apiUrl: e, body: t, fetchOptions: r }) {
963
990
  if (!t) {
964
991
  console.error("[ERROR FETCHING] Body is required");
965
992
  return;
966
993
  }
967
- return await Wr.validate(t), T(
994
+ return await Vr.validate(t), O(
968
995
  `${e}/api/checkout/pub/orderForms/simulation`,
969
996
  {
970
997
  method: "POST",
@@ -973,86 +1000,86 @@ async function Qr({ apiUrl: e, body: t, fetchOptions: r }) {
973
1000
  }
974
1001
  );
975
1002
  }
976
- const Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1003
+ const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
977
1004
  __proto__: null,
978
- getMasterDataSellerCode: Dr,
979
- getOrderForm: jr,
980
- postOrderFormAddCoupon: br,
981
- postOrderFormAttachClientProfileData: $r,
982
- postOrderFormAttachOrderFormData: fr,
983
- postOrderFormAttachShippingData: Hr,
984
- postOrderFormAttachmentsMarketingData: Qe,
985
- postOrderFormAttachmentsOpenTextField: We,
986
- postOrderFormClearMessages: Tr,
987
- postOrderFormFreightSimulation: Qr,
988
- postOrderFormItems: Ir,
989
- postOrderFormRegion: Gr,
990
- postOrderFormRemoveAllItems: Sr,
991
- postOrderFormUpdateItems: Er,
992
- postOrderFormUpdateShippingData: Br,
993
- postOrderformAddress: dr,
994
- putOrderFormCustomData: vr,
995
- updateOrderFormOffering: qr
996
- }, Symbol.toStringTag, { value: "Module" })), Kr = c.object({
1005
+ getMasterDataSellerCode: Lr,
1006
+ getOrderForm: Nr,
1007
+ postOrderFormAddCoupon: gr,
1008
+ postOrderFormAttachClientProfileData: Fr,
1009
+ postOrderFormAttachOrderFormData: hr,
1010
+ postOrderFormAttachShippingData: Ur,
1011
+ postOrderFormAttachmentsMarketingData: Ve,
1012
+ postOrderFormAttachmentsOpenTextField: Ge,
1013
+ postOrderFormClearMessages: Ar,
1014
+ postOrderFormFreightSimulation: Wr,
1015
+ postOrderFormItems: Rr,
1016
+ postOrderFormRegion: zr,
1017
+ postOrderFormRemoveAllItems: Pr,
1018
+ postOrderFormUpdateItems: kr,
1019
+ postOrderFormUpdateShippingData: Mr,
1020
+ postOrderformAddress: ur,
1021
+ putOrderFormCustomData: wr,
1022
+ updateOrderFormOffering: Tr
1023
+ }, Symbol.toStringTag, { value: "Module" })), Xr = c.object({
997
1024
  skuId: c.string()
998
1025
  });
999
- async function Jr({ apiUrl: e, body: t, fetchOptions: r }) {
1026
+ async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
1000
1027
  if (!t) {
1001
1028
  console.error("[ERROR FETCHING] Body is required");
1002
1029
  return;
1003
1030
  }
1004
- await Kr.validate(t);
1031
+ await Xr.validate(t);
1005
1032
  const { skuId: n } = t;
1006
- return T(
1033
+ return O(
1007
1034
  `${e}/api/catalog/pvt/stockkeepingunitkit?parentSkuId=${n}`,
1008
1035
  {
1009
1036
  ...r
1010
1037
  }
1011
1038
  );
1012
1039
  }
1013
- const Zr = c.object({
1040
+ const Jr = c.object({
1014
1041
  ids: c.array().of(c.string().required("ID are required")).required("IDs are required")
1015
1042
  });
1016
- async function Yr({ apiUrl: e, body: t, fetchOptions: r }) {
1043
+ async function Zr({ apiUrl: e, body: t, fetchOptions: r }) {
1017
1044
  if (!t) {
1018
1045
  console.error("[ERROR FETCHING] Body is required");
1019
1046
  return;
1020
1047
  }
1021
- await Zr.validate(t);
1048
+ await Jr.validate(t);
1022
1049
  const { ids: n } = t;
1023
- return T(
1024
- `${e}/api/catalog_system/pub/products/search?fq=${n.map((i) => `productId:${i}`).join("&fq=")}`,
1050
+ return O(
1051
+ `${e}/api/catalog_system/pub/products/search?fq=${n.map((a) => `productId:${a}`).join("&fq=")}`,
1025
1052
  {
1026
1053
  ...r
1027
1054
  }
1028
1055
  );
1029
1056
  }
1030
- const en = c.object({
1057
+ const Yr = c.object({
1031
1058
  productId: c.number().required("Product ID is required")
1032
1059
  });
1033
- async function tn({ apiUrl: e, body: t, fetchOptions: r }) {
1060
+ async function en({ apiUrl: e, body: t, fetchOptions: r }) {
1034
1061
  if (!t) {
1035
1062
  console.error("[ERROR FETCHING] Body is required");
1036
1063
  return;
1037
1064
  }
1038
- await en.validate(t);
1065
+ await Yr.validate(t);
1039
1066
  const { productId: n } = t;
1040
- return T(
1067
+ return O(
1041
1068
  `${e}/api/catalog_system/pub/products/crossselling/similars/${n.toString()}`,
1042
1069
  {
1043
1070
  ...r
1044
1071
  }
1045
1072
  );
1046
1073
  }
1047
- const rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1074
+ const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1048
1075
  __proto__: null,
1049
- getCatalogKitProducts: Jr,
1050
- getCatalogProducts: Yr,
1051
- getCatalogSimilars: tn
1052
- }, Symbol.toStringTag, { value: "Module" })), nn = c.object({
1076
+ getCatalogKitProducts: Kr,
1077
+ getCatalogProducts: Zr,
1078
+ getCatalogSimilars: en
1079
+ }, Symbol.toStringTag, { value: "Module" })), rn = c.object({
1053
1080
  query: c.string()
1054
1081
  });
1055
- async function on({
1082
+ async function nn({
1056
1083
  apiUrl: e,
1057
1084
  body: t,
1058
1085
  fetchOptions: r
@@ -1061,19 +1088,19 @@ async function on({
1061
1088
  console.error("[ERROR FETCHING] Body is required");
1062
1089
  return;
1063
1090
  }
1064
- await nn.validate(t);
1065
- const { query: n = "" } = t, i = new URLSearchParams({ query: n });
1066
- return T(
1067
- `${e}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${i.toString()}`,
1091
+ await rn.validate(t);
1092
+ const { query: n = "" } = t, a = new URLSearchParams({ query: n });
1093
+ return O(
1094
+ `${e}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${a.toString()}`,
1068
1095
  {
1069
1096
  ...r
1070
1097
  }
1071
1098
  );
1072
1099
  }
1073
- const an = (e, t) => Bt(e, t), sn = (e) => ({
1100
+ const an = (e, t) => Ht(e, t), on = (e) => ({
1074
1101
  ...e,
1075
1102
  description: e.description ? an(e.description) : e.description
1076
- }), ln = ({
1103
+ }), sn = ({
1077
1104
  offer: e,
1078
1105
  seller: t,
1079
1106
  product: r
@@ -1081,26 +1108,26 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1081
1108
  ...e,
1082
1109
  product: r,
1083
1110
  seller: t
1084
- }), Xe = (e, t) => ({
1111
+ }), We = (e, t) => ({
1085
1112
  ...e,
1086
- isVariantOf: sn(t)
1087
- }), cn = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ae = (e) => e.AvailableQuantity > 0, Ue = (e) => e.spotPrice ?? 0, un = (e) => e.Price ?? 0, Ke = (e, t) => ae(e) && !ae(t) ? -1 : !ae(e) && ae(t) ? 1 : Ue(e) - Ue(t), dn = (e, t) => {
1113
+ isVariantOf: on(t)
1114
+ }), ln = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", oe = (e) => e.AvailableQuantity > 0, De = (e) => e.spotPrice ?? 0, cn = (e) => e.Price ?? 0, Qe = (e, t) => oe(e) && !oe(t) ? -1 : !oe(e) && oe(t) ? 1 : De(e) - De(t), un = (e, t) => {
1088
1115
  let r = 0;
1089
1116
  for (let n = 1; n < e.length; n++)
1090
1117
  t(e[r], e[n]) > 0 && (r = n);
1091
1118
  return e[r];
1092
- }, Je = (e) => {
1119
+ }, Xe = (e) => {
1093
1120
  const t = e.flatMap(
1094
- (n) => n.sellers.map((i) => ({
1095
- offer: i.commertialOffer,
1121
+ (n) => n.sellers.map((a) => ({
1122
+ offer: a.commertialOffer,
1096
1123
  sku: n
1097
1124
  }))
1098
- ), r = dn(
1125
+ ), r = un(
1099
1126
  t,
1100
- ({ offer: n }, { offer: i }) => Ke(n, i)
1127
+ ({ offer: n }, { offer: a }) => Qe(n, a)
1101
1128
  );
1102
1129
  return r ? r.sku : e[0];
1103
- }, Ze = (e) => e.map(
1130
+ }, Ke = (e) => e.map(
1104
1131
  ({ imageUrl: t, imageText: r, imageLabel: n }) => ({
1105
1132
  alternateName: r ?? "",
1106
1133
  url: t.replace("vteximg.com.br", "vtexassets.com"),
@@ -1110,11 +1137,11 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1110
1137
  attachment: "ATTACHMENT",
1111
1138
  specification: "SPECIFICATION",
1112
1139
  attribute: "ATTRIBUTE"
1113
- }, pn = (e) => ({
1140
+ }, dn = (e) => ({
1114
1141
  name: e.name,
1115
1142
  value: e.content,
1116
1143
  valueReference: ue.attachment
1117
- }), mn = (e) => ({
1144
+ }), pn = (e) => ({
1118
1145
  propertyID: e.id,
1119
1146
  name: e.name,
1120
1147
  value: e.value,
@@ -1123,32 +1150,32 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1123
1150
  visible: e.visible
1124
1151
  }
1125
1152
  }), de = (e, t, r) => {
1126
- const n = e.flatMap(({ name: s, values: o }) => o ? o.map((d) => ({
1127
- name: s,
1153
+ const n = e.flatMap(({ name: l, values: i }) => i ? i.map((d) => ({
1154
+ name: l,
1128
1155
  value: d,
1129
1156
  valueReference: ue.specification
1130
1157
  })) : {
1131
- name: s,
1158
+ name: l,
1132
1159
  value: "",
1133
1160
  valueReference: ue.specification
1134
- }), i = Array.isArray(r) ? r.map(pn) : [], a = t ? t.map(mn) : [];
1161
+ }), a = Array.isArray(r) ? r.map(dn) : [], o = t ? t.map(pn) : [];
1135
1162
  return [
1136
1163
  ...n,
1137
- ...i,
1138
- ...a
1164
+ ...a,
1165
+ ...o
1139
1166
  ];
1140
- }, He = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", hn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", fn = (e) => {
1167
+ }, Ue = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", mn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", hn = (e) => {
1141
1168
  let t = e.slice(0);
1142
- for (let r = 0; r < He.length; r++)
1169
+ for (let r = 0; r < Ue.length; r++)
1143
1170
  t = t.replace(
1144
- new RegExp(He.charAt(r), "g"),
1145
- hn.charAt(r)
1171
+ new RegExp(Ue.charAt(r), "g"),
1172
+ mn.charAt(r)
1146
1173
  );
1147
1174
  return t;
1148
- }, gn = (e) => e.replace(/[·/_,:]/, "-"), Ye = (e) => {
1175
+ }, fn = (e) => e.replace(/[·/_,:]/, "-"), Je = (e) => {
1149
1176
  const r = e.replace(/,/g, "").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g, "-");
1150
- return gn(fn(r)).toLowerCase();
1151
- }, et = (e) => `/${e}/p`, tt = (e) => {
1177
+ return fn(hn(r)).toLowerCase();
1178
+ }, Ze = (e) => `/${e}/p`, Ye = (e) => {
1152
1179
  const t = Math.max(
1153
1180
  ...e.map((n) => n.NumberOfInstallments)
1154
1181
  ), r = e.find(
@@ -1158,68 +1185,68 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1158
1185
  count: (r == null ? void 0 : r.NumberOfInstallments) ?? 0,
1159
1186
  value: (r == null ? void 0 : r.Value) ?? 0
1160
1187
  };
1161
- }, rt = (e, t) => {
1188
+ }, et = (e, t) => {
1162
1189
  const r = {
1163
1190
  price: 0,
1164
1191
  listPrice: 0,
1165
1192
  sellerDefault: !1
1166
- }, i = e.map(
1167
- (a) => ln({
1168
- offer: a.commertialOffer,
1169
- seller: a,
1193
+ }, a = e.map(
1194
+ (o) => sn({
1195
+ offer: o.commertialOffer,
1196
+ seller: o,
1170
1197
  product: t
1171
1198
  })
1172
- ).sort(Ke).map((a) => (a.seller.sellerId === "1" && a.AvailableQuantity > 0 && (r.price = a.Price, r.listPrice = a.ListPrice, r.sellerDefault = !0), {
1173
- availability: a.AvailableQuantity > 0,
1174
- listPrice: a.ListPrice,
1175
- price: un(a),
1176
- priceValidUntil: a.PriceValidUntil,
1199
+ ).sort(Qe).map((o) => (o.seller.sellerId === "1" && o.AvailableQuantity > 0 && (r.price = o.Price, r.listPrice = o.ListPrice, r.sellerDefault = !0), {
1200
+ availability: o.AvailableQuantity > 0,
1201
+ listPrice: o.ListPrice,
1202
+ price: cn(o),
1203
+ priceValidUntil: o.PriceValidUntil,
1177
1204
  priceCurrency: "BRL",
1178
- installments: a.Installments,
1179
- lowPrice: a.spotPrice,
1180
- quantity: a.AvailableQuantity,
1205
+ installments: o.Installments,
1206
+ lowPrice: o.spotPrice,
1207
+ quantity: o.AvailableQuantity,
1181
1208
  seller: {
1182
- identifier: a.seller.sellerId
1209
+ identifier: o.seller.sellerId
1183
1210
  }
1184
1211
  }));
1185
1212
  return {
1186
- lowPrice: r.sellerDefault ? r.price : i[0].price,
1187
- highPrice: r.sellerDefault ? r.listPrice : i[0].listPrice,
1188
- offers: i
1213
+ lowPrice: r.sellerDefault ? r.price : a[0].price,
1214
+ highPrice: r.sellerDefault ? r.listPrice : a[0].listPrice,
1215
+ offers: a
1189
1216
  };
1190
- }, nt = (e) => {
1191
- const { attributes: t, itemId: r, name: n, sellers: i, variations: a } = e;
1217
+ }, tt = (e) => {
1218
+ const { attributes: t, itemId: r, name: n, sellers: a, variations: o } = e;
1192
1219
  return {
1193
- additionalProperty: de(a, t, []),
1220
+ additionalProperty: de(o, t, []),
1194
1221
  name: n,
1195
1222
  offers: {
1196
- offers: i == null ? void 0 : i.map(({ sellerId: s, commertialOffer: o }) => ({
1197
- availability: cn(o.AvailableQuantity > 0),
1198
- listPrice: o.ListPrice,
1199
- price: o.Price,
1200
- quantity: o.AvailableQuantity,
1223
+ offers: a == null ? void 0 : a.map(({ sellerId: l, commertialOffer: i }) => ({
1224
+ availability: ln(i.AvailableQuantity > 0),
1225
+ listPrice: i.ListPrice,
1226
+ price: i.Price,
1227
+ quantity: i.AvailableQuantity,
1201
1228
  seller: {
1202
- identifier: s
1229
+ identifier: l
1203
1230
  }
1204
1231
  }))
1205
1232
  },
1206
1233
  sku: r
1207
1234
  // slug: getSlug('', itemId), // getSlug('', itemId) que tipo de slug é esse?
1208
1235
  };
1209
- }, bn = (e) => {
1236
+ }, gn = (e) => {
1210
1237
  var R;
1211
1238
  const {
1212
1239
  attributes: t,
1213
1240
  referenceId: r,
1214
1241
  isVariantOf: n,
1215
- images: i,
1216
- itemId: a,
1217
- name: s,
1218
- sellers: o,
1242
+ images: a,
1243
+ itemId: o,
1244
+ name: l,
1245
+ sellers: i,
1219
1246
  videos: d,
1220
1247
  variations: g
1221
1248
  } = e, {
1222
- brand: l,
1249
+ brand: s,
1223
1250
  categories: u,
1224
1251
  categoriesIds: w,
1225
1252
  description: v,
@@ -1230,11 +1257,11 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1230
1257
  properties: m,
1231
1258
  productId: h,
1232
1259
  productReference: f
1233
- } = n, E = u.slice().reverse(), q = rt(o, e.isVariantOf), I = tt(q.offers[0].installments);
1260
+ } = n, E = u.slice().reverse(), q = et(i, e.isVariantOf), I = Ye(q.offers[0].installments);
1234
1261
  return {
1235
- sku: a,
1262
+ sku: o,
1236
1263
  gtin: ((R = r == null ? void 0 : r[0]) == null ? void 0 : R.Value) ?? f ?? "",
1237
- name: b ?? s,
1264
+ name: b ?? l,
1238
1265
  description: v,
1239
1266
  releaseDate: n.releaseDate ?? "",
1240
1267
  slug: y,
@@ -1242,11 +1269,11 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1242
1269
  categories: u,
1243
1270
  categoriesIds: w,
1244
1271
  id: h,
1245
- brand: { name: l, brandName: l },
1272
+ brand: { name: s, brandName: s },
1246
1273
  seo: {
1247
1274
  description: v,
1248
1275
  title: b,
1249
- canonical: et(y)
1276
+ canonical: Ze(y)
1250
1277
  },
1251
1278
  cluster: {
1252
1279
  generals: _,
@@ -1256,8 +1283,8 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1256
1283
  availability: { status: q.offers[0].availability },
1257
1284
  breadcrumbList: {
1258
1285
  itemListElement: [
1259
- ...E.map((x, j) => {
1260
- const F = x.split("/"), D = F[F.length - 2], U = F.map(Ye).join("/");
1286
+ ...E.map((C, j) => {
1287
+ const $ = C.split("/"), D = $[$.length - 2], U = $.map(Je).join("/");
1261
1288
  return {
1262
1289
  name: D,
1263
1290
  item: U,
@@ -1272,29 +1299,29 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1272
1299
  ],
1273
1300
  numberOfItems: u.length
1274
1301
  },
1275
- image: Ze(i),
1302
+ image: Ke(a),
1276
1303
  offers: q,
1277
1304
  additionalProperty: de(g, t, []),
1278
1305
  isVariantOf: {
1279
1306
  productGroupID: n.productId,
1280
- hasVariant: n.items.map((x) => nt(x))
1307
+ hasVariant: n.items.map((C) => tt(C))
1281
1308
  },
1282
1309
  installments: I
1283
1310
  };
1284
- }, wn = (e) => {
1311
+ }, bn = (e) => {
1285
1312
  var I;
1286
1313
  const {
1287
1314
  attributes: t,
1288
1315
  referenceId: r,
1289
1316
  isVariantOf: n,
1290
- images: i,
1291
- itemId: a,
1292
- name: s,
1293
- sellers: o,
1317
+ images: a,
1318
+ itemId: o,
1319
+ name: l,
1320
+ sellers: i,
1294
1321
  Videos: d,
1295
1322
  variations: g
1296
1323
  } = e, {
1297
- brand: l,
1324
+ brand: s,
1298
1325
  categories: u,
1299
1326
  categoriesIds: w,
1300
1327
  description: v,
@@ -1304,11 +1331,11 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1304
1331
  Coleção: b,
1305
1332
  "ID Coleção": m,
1306
1333
  productId: h
1307
- } = n, f = u.slice().reverse(), E = rt(o, e.isVariantOf), q = tt(E.offers[0].installments);
1334
+ } = n, f = u.slice().reverse(), E = et(i, e.isVariantOf), q = Ye(E.offers[0].installments);
1308
1335
  return {
1309
- sku: a,
1336
+ sku: o,
1310
1337
  gtin: ((I = r[0]) == null ? void 0 : I.Value) ?? "",
1311
- name: p ?? s,
1338
+ name: p ?? l,
1312
1339
  description: v,
1313
1340
  releaseDate: n.releaseDate ?? "",
1314
1341
  slug: y,
@@ -1318,11 +1345,11 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1318
1345
  collection: b,
1319
1346
  collectionId: m,
1320
1347
  id: h,
1321
- brand: { name: l, brandName: l },
1348
+ brand: { name: s, brandName: s },
1322
1349
  seo: {
1323
1350
  description: v,
1324
1351
  title: p,
1325
- canonical: et(y)
1352
+ canonical: Ze(y)
1326
1353
  },
1327
1354
  cluster: {
1328
1355
  generals: _,
@@ -1332,12 +1359,12 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1332
1359
  availability: { status: E.offers[0].availability },
1333
1360
  breadcrumbList: {
1334
1361
  itemListElement: [
1335
- ...f.map((R, x) => {
1336
- const j = R.split("/"), F = j[j.length - 2], D = j.map(Ye).join("/");
1362
+ ...f.map((R, C) => {
1363
+ const j = R.split("/"), $ = j[j.length - 2], D = j.map(Je).join("/");
1337
1364
  return {
1338
- name: F,
1365
+ name: $,
1339
1366
  item: D,
1340
- position: x + 1
1367
+ position: C + 1
1341
1368
  };
1342
1369
  }),
1343
1370
  {
@@ -1348,18 +1375,18 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1348
1375
  ],
1349
1376
  numberOfItems: u.length
1350
1377
  },
1351
- image: Ze(i),
1378
+ image: Ke(a),
1352
1379
  offers: E,
1353
1380
  additionalProperty: de(g, t, []),
1354
1381
  isVariantOf: {
1355
1382
  productGroupID: n.productId,
1356
1383
  hasVariant: n.items.map((R) => {
1357
- const { variations: x } = R, j = x.map((F) => ({
1358
- name: F,
1359
- values: R[F]
1384
+ const { variations: C } = R, j = C.map(($) => ({
1385
+ name: $,
1386
+ values: R[$]
1360
1387
  }));
1361
1388
  return {
1362
- ...nt(R),
1389
+ ...tt(R),
1363
1390
  additionalProperty: de(
1364
1391
  j,
1365
1392
  t,
@@ -1370,30 +1397,30 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
1370
1397
  },
1371
1398
  installments: q
1372
1399
  };
1373
- }, vn = c.array().of(c.object({
1400
+ }, wn = c.array().of(c.object({
1374
1401
  key: c.string().required(),
1375
1402
  value: c.string().required()
1376
1403
  })).required("Facets are required");
1377
- async function yn({ apiUrl: e, body: t, fetchOptions: r }) {
1404
+ async function vn({ apiUrl: e, body: t, fetchOptions: r }) {
1378
1405
  if (!t) {
1379
1406
  console.error("[ERROR FETCHING] Body is required");
1380
1407
  return;
1381
1408
  }
1382
- await vn.validate(t);
1383
- const n = new URLSearchParams({}), i = t.map(({ key: s, value: o }) => `${s}/${o}`).join("/");
1384
- St(t, n);
1385
- const a = `${e}/api/catalog_system/pub/products/crossselling/${i}`;
1386
- return T(a, {
1409
+ await wn.validate(t);
1410
+ const n = new URLSearchParams({}), a = t.map(({ key: l, value: i }) => `${l}/${i}`).join("/");
1411
+ Rt(t, n);
1412
+ const o = `${e}/api/catalog_system/pub/products/crossselling/${a}`;
1413
+ return O(o, {
1387
1414
  cache: "no-store",
1388
1415
  ...r
1389
- }).then((s) => s.map((d) => {
1390
- const g = Je(d.items);
1391
- return g && Xe(g, d);
1416
+ }).then((l) => l.map((d) => {
1417
+ const g = Xe(d.items);
1418
+ return g && We(g, d);
1392
1419
  }).filter((d) => !!d).map((d) => ({
1393
- node: wn(d)
1420
+ node: bn(d)
1394
1421
  })));
1395
1422
  }
1396
- const it = ({
1423
+ const rt = ({
1397
1424
  apiUrl: e,
1398
1425
  body: t,
1399
1426
  fetchOptions: r,
@@ -1404,24 +1431,24 @@ const it = ({
1404
1431
  return;
1405
1432
  }
1406
1433
  const {
1407
- query: i = "",
1408
- page: a = 1,
1409
- count: s,
1410
- sort: o = "",
1434
+ query: a = "",
1435
+ page: o = 1,
1436
+ count: l,
1437
+ sort: i = "",
1411
1438
  facets: d = [],
1412
1439
  type: g,
1413
- hideUnavailableItems: l = !0,
1440
+ hideUnavailableItems: s = !0,
1414
1441
  locale: u = ""
1415
1442
  } = t, w = new URLSearchParams({
1416
- page: a.toString(),
1417
- count: (s == null ? void 0 : s.toString()) ?? (n == null ? void 0 : n.ITEMS_PER_PAGE) ?? 24,
1418
- query: i,
1419
- sort: o,
1443
+ page: o.toString(),
1444
+ count: (l == null ? void 0 : l.toString()) ?? (n == null ? void 0 : n.ITEMS_PER_PAGE) ?? 24,
1445
+ query: a,
1446
+ sort: i,
1420
1447
  locale: u
1421
1448
  });
1422
- l !== void 0 && w.append("hideUnavailableItems", l.toString());
1449
+ s !== void 0 && w.append("hideUnavailableItems", s.toString());
1423
1450
  const v = d.map((y) => `${y.key}/${y.value}`).join("/") ?? "";
1424
- return cr(
1451
+ return lr(
1425
1452
  `${e}/api/io/_v/api/intelligent-search/${g}/${v}?${w.toString()}`,
1426
1453
  {
1427
1454
  headers: {
@@ -1432,48 +1459,48 @@ const it = ({
1432
1459
  }
1433
1460
  );
1434
1461
  };
1435
- async function _n({ body: e, extraData: t, ...r }) {
1462
+ async function yn({ body: e, extraData: t, ...r }) {
1436
1463
  if (!e) {
1437
1464
  console.error("[ERROR FETCHING] Body is required");
1438
1465
  return;
1439
1466
  }
1440
- const n = await it({
1467
+ const n = await rt({
1441
1468
  body: {
1442
1469
  ...e,
1443
1470
  type: "product_search"
1444
1471
  },
1445
1472
  extraData: t,
1446
1473
  ...r
1447
- }), i = (n == null ? void 0 : n.products.map((o) => {
1448
- const d = Je(o.items);
1449
- return d && Xe(d, o);
1450
- }).filter((o) => !!o)) ?? [], {
1451
- pagination: a,
1452
- recordsFiltered: s
1474
+ }), a = (n == null ? void 0 : n.products.map((i) => {
1475
+ const d = Xe(i.items);
1476
+ return d && We(d, i);
1477
+ }).filter((i) => !!i)) ?? [], {
1478
+ pagination: o,
1479
+ recordsFiltered: l
1453
1480
  } = n;
1454
1481
  return {
1455
1482
  data: {
1456
1483
  pagination: {
1457
- nextPage: a.after.length > 0,
1458
- previousPage: a.before.length > 0,
1484
+ nextPage: o.after.length > 0,
1485
+ previousPage: o.before.length > 0,
1459
1486
  startCursor: "0",
1460
- endCursor: s.toString(),
1461
- count: s,
1462
- total: a.count
1487
+ endCursor: l.toString(),
1488
+ count: l,
1489
+ total: o.count
1463
1490
  },
1464
- products: i.map((o, d) => ({
1465
- node: bn(o),
1491
+ products: a.map((i, d) => ({
1492
+ node: gn(i),
1466
1493
  cursor: d.toString()
1467
1494
  }))
1468
1495
  }
1469
1496
  };
1470
1497
  }
1471
- async function Rn({ body: e, extraData: t, ...r }) {
1498
+ async function _n({ body: e, extraData: t, ...r }) {
1472
1499
  if (!e) {
1473
1500
  console.error("[ERROR FETCHING] Body is required");
1474
1501
  return;
1475
1502
  }
1476
- const n = await it({
1503
+ const n = await rt({
1477
1504
  body: {
1478
1505
  ...e,
1479
1506
  type: "facets"
@@ -1484,44 +1511,44 @@ async function Rn({ body: e, extraData: t, ...r }) {
1484
1511
  return !n || !n.facets ? (console.error("[ERROR FETCHING] No facets found"), { data: { facets: [] } }) : {
1485
1512
  data: {
1486
1513
  ...n,
1487
- facets: Ct(n, e == null ? void 0 : e.selectedFacets, (e == null ? void 0 : e.query) ?? "")
1514
+ facets: It(n, e == null ? void 0 : e.selectedFacets, (e == null ? void 0 : e.query) ?? "")
1488
1515
  }
1489
1516
  };
1490
1517
  }
1491
- const In = c.object({
1518
+ const Rn = c.object({
1492
1519
  query: c.string().optional(),
1493
1520
  locale: c.string().optional()
1494
1521
  });
1495
- async function Pn({ apiUrl: e, body: t, fetchOptions: r }) {
1522
+ async function In({ apiUrl: e, body: t, fetchOptions: r }) {
1496
1523
  if (!t) {
1497
1524
  console.error("[ERROR FETCHING] Body is required");
1498
1525
  return;
1499
1526
  }
1500
- await In.validate(t);
1501
- const { query: n = "", locale: i = "default_locale" } = t, a = new URLSearchParams({ query: n, locale: i });
1502
- return T(
1503
- `${e}/api/io/_v/api/intelligent-search/search_suggestions?${a.toString()}`,
1527
+ await Rn.validate(t);
1528
+ const { query: n = "", locale: a = "default_locale" } = t, o = new URLSearchParams({ query: n, locale: a });
1529
+ return O(
1530
+ `${e}/api/io/_v/api/intelligent-search/search_suggestions?${o.toString()}`,
1504
1531
  {
1505
1532
  ...r
1506
1533
  }
1507
1534
  );
1508
1535
  }
1509
- async function Sn({ apiUrl: e }) {
1510
- return T(`${e}/api/io/_v/api/intelligent-search/top_searches`);
1536
+ async function Pn({ apiUrl: e }) {
1537
+ return O(`${e}/api/io/_v/api/intelligent-search/top_searches`);
1511
1538
  }
1512
- const Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1539
+ const xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1513
1540
  __proto__: null,
1514
- getSearchAutoCompleteSuggestions: on,
1515
- getSearchCrossellingProducts: yn,
1516
- getSearchFacets: Rn,
1517
- getSearchProducts: _n,
1518
- getSearchSuggestedTerms: Pn,
1519
- getSearchTopSearchs: Sn
1520
- }, Symbol.toStringTag, { value: "Module" })), xn = c.object({
1541
+ getSearchAutoCompleteSuggestions: nn,
1542
+ getSearchCrossellingProducts: vn,
1543
+ getSearchFacets: _n,
1544
+ getSearchProducts: yn,
1545
+ getSearchSuggestedTerms: In,
1546
+ getSearchTopSearchs: Pn
1547
+ }, Symbol.toStringTag, { value: "Module" })), Sn = c.object({
1521
1548
  masterDataEntity: c.string().nonNullable(),
1522
1549
  payload: c.object().shape({}).nullable()
1523
1550
  });
1524
- async function kn({
1551
+ async function Cn({
1525
1552
  apiUrl: e,
1526
1553
  body: t,
1527
1554
  fetchOptions: r
@@ -1530,31 +1557,31 @@ async function kn({
1530
1557
  console.error("[ERROR FETCHING] Body is required");
1531
1558
  return;
1532
1559
  }
1533
- await xn.validate(t);
1534
- const { masterDataEntity: n, payload: i } = t, a = `${e}/api/dataentities/${n}/documents`;
1535
- return T(a, {
1560
+ await Sn.validate(t);
1561
+ const { masterDataEntity: n, payload: a } = t, o = `${e}/api/dataentities/${n}/documents`;
1562
+ return O(o, {
1536
1563
  method: "POST",
1537
1564
  body: {
1538
- payload: i
1565
+ payload: a
1539
1566
  },
1540
1567
  ...r
1541
1568
  });
1542
1569
  }
1543
- const En = c.object().shape({
1570
+ const kn = c.object().shape({
1544
1571
  _where: c.string().optional(),
1545
1572
  _fields: c.string().optional(),
1546
1573
  _sort: c.string().optional(),
1547
1574
  _from: c.number().integer().min(0).optional(),
1548
1575
  _to: c.number().integer().min(0).optional(),
1549
1576
  _keyword: c.string().optional()
1550
- }), An = c.object({
1577
+ }), En = c.object({
1551
1578
  masterDataEntity: c.string().required(),
1552
- searchFields: En,
1579
+ searchFields: kn,
1553
1580
  headers: c.object().shape({
1554
1581
  "REST-Range": c.string().notRequired()
1555
1582
  })
1556
1583
  });
1557
- async function Tn({
1584
+ async function An({
1558
1585
  apiUrl: e,
1559
1586
  body: t,
1560
1587
  fetchOptions: r
@@ -1564,20 +1591,20 @@ async function Tn({
1564
1591
  return;
1565
1592
  }
1566
1593
  const n = new URLSearchParams();
1567
- await An.validate(t);
1568
- const { masterDataEntity: i, searchFields: a, headers: s } = t;
1569
- a && Object.entries(a).forEach(([g, l]) => {
1570
- n.append(g, String(l));
1571
- }), "_fields" in a || n == null || n.append("_fields", "_all");
1572
- let o = [], d = null;
1594
+ await En.validate(t);
1595
+ const { masterDataEntity: a, searchFields: o, headers: l } = t;
1596
+ o && Object.entries(o).forEach(([g, s]) => {
1597
+ n.append(g, String(s));
1598
+ }), "_fields" in o || n == null || n.append("_fields", "_all");
1599
+ let i = [], d = null;
1573
1600
  do {
1574
1601
  d && n.set("_scroll", d);
1575
1602
  const g = await fetch(
1576
- `${e}/api/dataentities/${i}/search?${n.toString()}`,
1603
+ `${e}/api/dataentities/${a}/search?${n.toString()}`,
1577
1604
  {
1578
1605
  method: "GET",
1579
1606
  headers: {
1580
- "REST-Range": (s == null ? void 0 : s["REST-Range"]) ?? "resources=0-100",
1607
+ "REST-Range": (l == null ? void 0 : l["REST-Range"]) ?? "resources=0-100",
1581
1608
  ...r == null ? void 0 : r.headers
1582
1609
  },
1583
1610
  cache: "no-store"
@@ -1587,17 +1614,17 @@ async function Tn({
1587
1614
  throw new Error(
1588
1615
  `[MasterData] ${g.status} - ${g.statusText}`
1589
1616
  );
1590
- const l = await g.json();
1591
- o.push(...l), d = g.headers.get("x-vtex-md-scroll");
1617
+ const s = await g.json();
1618
+ i.push(...s), d = g.headers.get("x-vtex-md-scroll");
1592
1619
  } while (d);
1593
- return o;
1620
+ return i;
1594
1621
  }
1595
1622
  const On = c.object({
1596
1623
  dataEntityName: c.string().required(),
1597
1624
  id: c.string().required(),
1598
1625
  fieldsToBeUpdated: c.object().shape({})
1599
1626
  });
1600
- async function qn({
1627
+ async function Tn({
1601
1628
  apiUrl: e,
1602
1629
  body: t,
1603
1630
  fetchOptions: r
@@ -1607,65 +1634,65 @@ async function qn({
1607
1634
  return;
1608
1635
  }
1609
1636
  await On.validate(t);
1610
- const { dataEntityName: n, id: i, fieldsToBeUpdated: a } = t, s = `${e}/api/dataentities/${n}/documents/${i}`;
1611
- return T(s, {
1637
+ const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t, l = `${e}/api/dataentities/${n}/documents/${a}`;
1638
+ return O(l, {
1612
1639
  body: {
1613
- fieldsToBeUpdated: a
1640
+ fieldsToBeUpdated: o
1614
1641
  },
1615
1642
  method: "PATCH",
1616
1643
  ...r
1617
1644
  });
1618
1645
  }
1619
- const Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1646
+ const qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1620
1647
  __proto__: null,
1621
- getSearchMasterdata: Tn,
1622
- patchUpdateMasterdata: qn,
1623
- postMasterdata: kn
1648
+ getSearchMasterdata: An,
1649
+ patchUpdateMasterdata: Tn,
1650
+ postMasterdata: Cn
1624
1651
  }, Symbol.toStringTag, { value: "Module" }));
1625
- async function jn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1626
- const { productIds: i } = e;
1627
- if (!i)
1628
- return console.error("[ERROR FETCHING] productIds is required"), [];
1629
- const { NAME_SPLIT_SYMBOL: a } = r;
1652
+ async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1653
+ const { productIds: a } = e;
1630
1654
  if (!a)
1655
+ return console.error("[ERROR FETCHING] productIds is required"), [];
1656
+ const { NAME_SPLIT_SYMBOL: o } = r;
1657
+ if (!o)
1631
1658
  return console.error("[ERROR FETCHING] NAME_SPLIT_SYMBOL is required"), [];
1632
- const s = i.map((l) => typeof l == "string" || typeof l == "number" ? `productId:${l}` : "").join("&fq="), o = await T(
1633
- `${t}/api/catalog_system/pub/products/search?fq=${s}`,
1659
+ const l = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), i = await O(
1660
+ `${t}/api/catalog_system/pub/products/search?fq=${l}`,
1634
1661
  {
1635
1662
  ...n
1636
1663
  }
1637
- ), d = (l) => Object.keys(l).map((u) => ({ id: u, name: l[u] }));
1638
- return o.map((l, u) => {
1664
+ ), d = (s) => Object.keys(s).map((u) => ({ id: u, name: s[u] }));
1665
+ return i.map((s, u) => {
1639
1666
  var h;
1640
- const { installments: w, price: v, listPrice: y, sizes: _, allSizesAvailable: p } = xt({ items: l.items, NAME_SPLIT_SYMBOL: a }), b = p ? !0 : _.some((f) => f.available), m = l.items[0].sellers[0].commertialOffer;
1667
+ 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;
1641
1668
  return {
1642
1669
  node: {
1643
- sku: l.items[0].itemId,
1644
- gtin: l.productReference,
1645
- name: l.productName,
1646
- description: l.description,
1647
- releaseDate: l.releaseDate,
1648
- slug: l.linkText,
1649
- categories: l.categories,
1650
- categoriesIds: l.categoriesIds,
1651
- id: l.items[0].itemId,
1670
+ sku: s.items[0].itemId,
1671
+ gtin: s.productReference,
1672
+ name: s.productName,
1673
+ description: s.description,
1674
+ releaseDate: s.releaseDate,
1675
+ slug: s.linkText,
1676
+ categories: s.categories,
1677
+ categoriesIds: s.categoriesIds,
1678
+ id: s.items[0].itemId,
1652
1679
  brand: {
1653
- name: l.brand,
1654
- brandName: l.brand
1680
+ name: s.brand,
1681
+ brandName: s.brand
1655
1682
  },
1656
1683
  seo: {
1657
- description: l.description,
1658
- title: l.productName,
1659
- canonical: `/${l.linkText}/p`
1684
+ description: s.description,
1685
+ title: s.productName,
1686
+ canonical: `/${s.linkText}/p`
1660
1687
  },
1661
1688
  cluster: {
1662
- generals: d(l.productClusters),
1663
- highlights: d(l.clusterHighlights)
1689
+ generals: d(s.productClusters),
1690
+ highlights: d(s.clusterHighlights)
1664
1691
  },
1665
1692
  availability: {
1666
1693
  status: b
1667
1694
  },
1668
- image: l.items[0].images.map(
1695
+ image: s.items[0].images.map(
1669
1696
  ({
1670
1697
  imageLabel: f,
1671
1698
  imageUrl: E
@@ -1689,19 +1716,19 @@ async function jn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1689
1716
  lowPrice: v,
1690
1717
  quantity: m.AvailableQuantity,
1691
1718
  seller: {
1692
- identifier: l.items[0].sellers[0].sellerId
1719
+ identifier: s.items[0].sellers[0].sellerId
1693
1720
  }
1694
1721
  }
1695
1722
  ]
1696
1723
  },
1697
- additionalProperty: (h = l == null ? void 0 : l.skuSpecifications) == null ? void 0 : h.map((f) => ({
1698
- name: l == null ? void 0 : l.skuSpecifications[0].field.name,
1724
+ additionalProperty: (h = s == null ? void 0 : s.skuSpecifications) == null ? void 0 : h.map((f) => ({
1725
+ name: s == null ? void 0 : s.skuSpecifications[0].field.name,
1699
1726
  value: f,
1700
1727
  valueReference: "SPECIFICATION"
1701
1728
  })),
1702
1729
  isVariantOf: {
1703
- productGroupID: l.productId,
1704
- hasVariant: l.items.map((f) => {
1730
+ productGroupID: s.productId,
1731
+ hasVariant: s.items.map((f) => {
1705
1732
  var E;
1706
1733
  return {
1707
1734
  additionalProperty: f == null ? void 0 : f.variations.map(() => {
@@ -1737,11 +1764,11 @@ async function jn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1737
1764
  };
1738
1765
  });
1739
1766
  }
1740
- const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1767
+ const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1741
1768
  __proto__: null,
1742
- getWishlistProducts: jn
1769
+ getWishlistProducts: Nn
1743
1770
  }, Symbol.toStringTag, { value: "Module" }));
1744
- var Ie = { exports: {} }, ot = {}, Se = {}, at = {}, st = {};
1771
+ var Re = { exports: {} }, nt = {}, Pe = {}, at = {}, it = {};
1745
1772
  (function(e) {
1746
1773
  Object.defineProperty(e, "__esModule", {
1747
1774
  value: !0
@@ -1751,30 +1778,30 @@ var Ie = { exports: {} }, ot = {}, Se = {}, at = {}, st = {};
1751
1778
  return r;
1752
1779
  }
1753
1780
  });
1754
- const t = kt;
1755
- function r(n, i) {
1756
- if (!n.startsWith("/") || !i)
1781
+ const t = xt;
1782
+ function r(n, a) {
1783
+ if (!n.startsWith("/") || !a)
1757
1784
  return n;
1758
- const { pathname: a, query: s, hash: o } = (0, t.parsePath)(n);
1759
- return "" + a + i + s + o;
1785
+ const { pathname: o, query: l, hash: i } = (0, t.parsePath)(n);
1786
+ return "" + o + a + l + i;
1760
1787
  }
1761
- })(st);
1788
+ })(it);
1762
1789
  (function(e) {
1763
1790
  Object.defineProperty(e, "__esModule", {
1764
1791
  value: !0
1765
1792
  }), Object.defineProperty(e, "formatNextPathnameInfo", {
1766
1793
  enumerable: !0,
1767
1794
  get: function() {
1768
- return a;
1795
+ return o;
1769
1796
  }
1770
1797
  });
1771
- const t = At, r = Tt, n = st, i = Et;
1772
- function a(s) {
1773
- let o = (0, i.addLocale)(s.pathname, s.locale, s.buildId ? void 0 : s.defaultLocale, s.ignorePrefix);
1774
- return (s.buildId || !s.trailingSlash) && (o = (0, t.removeTrailingSlash)(o)), s.buildId && (o = (0, n.addPathSuffix)((0, r.addPathPrefix)(o, "/_next/data/" + s.buildId), s.pathname === "/" ? "index.json" : ".json")), o = (0, r.addPathPrefix)(o, s.basePath), !s.buildId && s.trailingSlash ? o.endsWith("/") ? o : (0, n.addPathSuffix)(o, "/") : (0, t.removeTrailingSlash)(o);
1798
+ const t = Ct, r = kt, n = it, a = St;
1799
+ function o(l) {
1800
+ let i = (0, a.addLocale)(l.pathname, l.locale, l.buildId ? void 0 : l.defaultLocale, l.ignorePrefix);
1801
+ 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);
1775
1802
  }
1776
1803
  })(at);
1777
- var lt = {};
1804
+ var ot = {};
1778
1805
  (function(e) {
1779
1806
  Object.defineProperty(e, "__esModule", {
1780
1807
  value: !0
@@ -1785,16 +1812,16 @@ var lt = {};
1785
1812
  }
1786
1813
  });
1787
1814
  function t(r, n) {
1788
- let i;
1815
+ let a;
1789
1816
  if (n != null && n.host && !Array.isArray(n.host))
1790
- i = n.host.toString().split(":", 1)[0];
1817
+ a = n.host.toString().split(":", 1)[0];
1791
1818
  else if (r.hostname)
1792
- i = r.hostname;
1819
+ a = r.hostname;
1793
1820
  else return;
1794
- return i.toLowerCase();
1821
+ return a.toLowerCase();
1795
1822
  }
1796
- })(lt);
1797
- var ct = {}, ut = {};
1823
+ })(ot);
1824
+ var st = {}, lt = {};
1798
1825
  (function(e) {
1799
1826
  Object.defineProperty(e, "__esModule", {
1800
1827
  value: !0
@@ -1804,45 +1831,45 @@ var ct = {}, ut = {};
1804
1831
  return r;
1805
1832
  }
1806
1833
  });
1807
- const t = Ve;
1808
- function r(n, i) {
1809
- if (!(0, t.pathHasPrefix)(n, i))
1834
+ const t = ze;
1835
+ function r(n, a) {
1836
+ if (!(0, t.pathHasPrefix)(n, a))
1810
1837
  return n;
1811
- const a = n.slice(i.length);
1812
- return a.startsWith("/") ? a : "/" + a;
1838
+ const o = n.slice(a.length);
1839
+ return o.startsWith("/") ? o : "/" + o;
1813
1840
  }
1814
- })(ut);
1841
+ })(lt);
1815
1842
  (function(e) {
1816
1843
  Object.defineProperty(e, "__esModule", {
1817
1844
  value: !0
1818
1845
  }), Object.defineProperty(e, "getNextPathnameInfo", {
1819
1846
  enumerable: !0,
1820
1847
  get: function() {
1821
- return i;
1848
+ return a;
1822
1849
  }
1823
1850
  });
1824
- const t = Ot, r = ut, n = Ve;
1825
- function i(a, s) {
1826
- var o;
1827
- const { basePath: d, i18n: g, trailingSlash: l } = (o = s.nextConfig) != null ? o : {}, u = {
1828
- pathname: a,
1829
- trailingSlash: a !== "/" ? a.endsWith("/") : l
1851
+ const t = Et, r = lt, n = ze;
1852
+ function a(o, l) {
1853
+ var i;
1854
+ const { basePath: d, i18n: g, trailingSlash: s } = (i = l.nextConfig) != null ? i : {}, u = {
1855
+ pathname: o,
1856
+ trailingSlash: o !== "/" ? o.endsWith("/") : s
1830
1857
  };
1831
1858
  d && (0, n.pathHasPrefix)(u.pathname, d) && (u.pathname = (0, r.removePathPrefix)(u.pathname, d), u.basePath = d);
1832
1859
  let w = u.pathname;
1833
1860
  if (u.pathname.startsWith("/_next/data/") && u.pathname.endsWith(".json")) {
1834
1861
  const y = u.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), _ = y[0];
1835
- u.buildId = _, w = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/", s.parseData === !0 && (u.pathname = w);
1862
+ u.buildId = _, w = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/", l.parseData === !0 && (u.pathname = w);
1836
1863
  }
1837
1864
  if (g) {
1838
- let y = s.i18nProvider ? s.i18nProvider.analyze(u.pathname) : (0, t.normalizeLocalePath)(u.pathname, g.locales);
1865
+ let y = l.i18nProvider ? l.i18nProvider.analyze(u.pathname) : (0, t.normalizeLocalePath)(u.pathname, g.locales);
1839
1866
  u.locale = y.detectedLocale;
1840
1867
  var v;
1841
- u.pathname = (v = y.pathname) != null ? v : u.pathname, !y.detectedLocale && u.buildId && (y = s.i18nProvider ? s.i18nProvider.analyze(w) : (0, t.normalizeLocalePath)(w, g.locales), y.detectedLocale && (u.locale = y.detectedLocale));
1868
+ 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));
1842
1869
  }
1843
1870
  return u;
1844
1871
  }
1845
- })(ct);
1872
+ })(st);
1846
1873
  (function(e) {
1847
1874
  Object.defineProperty(e, "__esModule", {
1848
1875
  value: !0
@@ -1852,137 +1879,137 @@ var ct = {}, ut = {};
1852
1879
  return d;
1853
1880
  }
1854
1881
  });
1855
- const t = qt, r = at, n = lt, i = ct, a = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
1856
- function s(g, l) {
1857
- return new URL(String(g).replace(a, "localhost"), l && String(l).replace(a, "localhost"));
1882
+ const t = At, r = at, n = ot, a = st, o = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
1883
+ function l(g, s) {
1884
+ return new URL(String(g).replace(o, "localhost"), s && String(s).replace(o, "localhost"));
1858
1885
  }
1859
- const o = Symbol("NextURLInternal");
1886
+ const i = Symbol("NextURLInternal");
1860
1887
  class d {
1861
- constructor(l, u, w) {
1888
+ constructor(s, u, w) {
1862
1889
  let v, y;
1863
- typeof u == "object" && "pathname" in u || typeof u == "string" ? (v = u, y = w || {}) : y = w || u || {}, this[o] = {
1864
- url: s(l, v ?? y.base),
1890
+ typeof u == "object" && "pathname" in u || typeof u == "string" ? (v = u, y = w || {}) : y = w || u || {}, this[i] = {
1891
+ url: l(s, v ?? y.base),
1865
1892
  options: y,
1866
1893
  basePath: ""
1867
1894
  }, this.analyze();
1868
1895
  }
1869
1896
  analyze() {
1870
- var l, u, w, v, y;
1871
- const _ = (0, i.getNextPathnameInfo)(this[o].url.pathname, {
1872
- nextConfig: this[o].options.nextConfig,
1897
+ var s, u, w, v, y;
1898
+ const _ = (0, a.getNextPathnameInfo)(this[i].url.pathname, {
1899
+ nextConfig: this[i].options.nextConfig,
1873
1900
  parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
1874
- i18nProvider: this[o].options.i18nProvider
1875
- }), p = (0, n.getHostname)(this[o].url, this[o].options.headers);
1876
- this[o].domainLocale = this[o].options.i18nProvider ? this[o].options.i18nProvider.detectDomainLocale(p) : (0, t.detectDomainLocale)((u = this[o].options.nextConfig) == null || (l = u.i18n) == null ? void 0 : l.domains, p);
1877
- const b = ((w = this[o].domainLocale) == null ? void 0 : w.defaultLocale) || ((y = this[o].options.nextConfig) == null || (v = y.i18n) == null ? void 0 : v.defaultLocale);
1878
- this[o].url.pathname = _.pathname, this[o].defaultLocale = b, this[o].basePath = _.basePath ?? "", this[o].buildId = _.buildId, this[o].locale = _.locale ?? b, this[o].trailingSlash = _.trailingSlash;
1901
+ i18nProvider: this[i].options.i18nProvider
1902
+ }), p = (0, n.getHostname)(this[i].url, this[i].options.headers);
1903
+ this[i].domainLocale = this[i].options.i18nProvider ? this[i].options.i18nProvider.detectDomainLocale(p) : (0, t.detectDomainLocale)((u = this[i].options.nextConfig) == null || (s = u.i18n) == null ? void 0 : s.domains, p);
1904
+ const b = ((w = this[i].domainLocale) == null ? void 0 : w.defaultLocale) || ((y = this[i].options.nextConfig) == null || (v = y.i18n) == null ? void 0 : v.defaultLocale);
1905
+ this[i].url.pathname = _.pathname, this[i].defaultLocale = b, this[i].basePath = _.basePath ?? "", this[i].buildId = _.buildId, this[i].locale = _.locale ?? b, this[i].trailingSlash = _.trailingSlash;
1879
1906
  }
1880
1907
  formatPathname() {
1881
1908
  return (0, r.formatNextPathnameInfo)({
1882
- basePath: this[o].basePath,
1883
- buildId: this[o].buildId,
1884
- defaultLocale: this[o].options.forceLocale ? void 0 : this[o].defaultLocale,
1885
- locale: this[o].locale,
1886
- pathname: this[o].url.pathname,
1887
- trailingSlash: this[o].trailingSlash
1909
+ basePath: this[i].basePath,
1910
+ buildId: this[i].buildId,
1911
+ defaultLocale: this[i].options.forceLocale ? void 0 : this[i].defaultLocale,
1912
+ locale: this[i].locale,
1913
+ pathname: this[i].url.pathname,
1914
+ trailingSlash: this[i].trailingSlash
1888
1915
  });
1889
1916
  }
1890
1917
  formatSearch() {
1891
- return this[o].url.search;
1918
+ return this[i].url.search;
1892
1919
  }
1893
1920
  get buildId() {
1894
- return this[o].buildId;
1921
+ return this[i].buildId;
1895
1922
  }
1896
- set buildId(l) {
1897
- this[o].buildId = l;
1923
+ set buildId(s) {
1924
+ this[i].buildId = s;
1898
1925
  }
1899
1926
  get locale() {
1900
- return this[o].locale ?? "";
1927
+ return this[i].locale ?? "";
1901
1928
  }
1902
- set locale(l) {
1929
+ set locale(s) {
1903
1930
  var u, w;
1904
- if (!this[o].locale || !(!((w = this[o].options.nextConfig) == null || (u = w.i18n) == null) && u.locales.includes(l)))
1905
- throw new TypeError(`The NextURL configuration includes no locale "${l}"`);
1906
- this[o].locale = l;
1931
+ if (!this[i].locale || !(!((w = this[i].options.nextConfig) == null || (u = w.i18n) == null) && u.locales.includes(s)))
1932
+ throw new TypeError(`The NextURL configuration includes no locale "${s}"`);
1933
+ this[i].locale = s;
1907
1934
  }
1908
1935
  get defaultLocale() {
1909
- return this[o].defaultLocale;
1936
+ return this[i].defaultLocale;
1910
1937
  }
1911
1938
  get domainLocale() {
1912
- return this[o].domainLocale;
1939
+ return this[i].domainLocale;
1913
1940
  }
1914
1941
  get searchParams() {
1915
- return this[o].url.searchParams;
1942
+ return this[i].url.searchParams;
1916
1943
  }
1917
1944
  get host() {
1918
- return this[o].url.host;
1945
+ return this[i].url.host;
1919
1946
  }
1920
- set host(l) {
1921
- this[o].url.host = l;
1947
+ set host(s) {
1948
+ this[i].url.host = s;
1922
1949
  }
1923
1950
  get hostname() {
1924
- return this[o].url.hostname;
1951
+ return this[i].url.hostname;
1925
1952
  }
1926
- set hostname(l) {
1927
- this[o].url.hostname = l;
1953
+ set hostname(s) {
1954
+ this[i].url.hostname = s;
1928
1955
  }
1929
1956
  get port() {
1930
- return this[o].url.port;
1957
+ return this[i].url.port;
1931
1958
  }
1932
- set port(l) {
1933
- this[o].url.port = l;
1959
+ set port(s) {
1960
+ this[i].url.port = s;
1934
1961
  }
1935
1962
  get protocol() {
1936
- return this[o].url.protocol;
1963
+ return this[i].url.protocol;
1937
1964
  }
1938
- set protocol(l) {
1939
- this[o].url.protocol = l;
1965
+ set protocol(s) {
1966
+ this[i].url.protocol = s;
1940
1967
  }
1941
1968
  get href() {
1942
- const l = this.formatPathname(), u = this.formatSearch();
1943
- return `${this.protocol}//${this.host}${l}${u}${this.hash}`;
1969
+ const s = this.formatPathname(), u = this.formatSearch();
1970
+ return `${this.protocol}//${this.host}${s}${u}${this.hash}`;
1944
1971
  }
1945
- set href(l) {
1946
- this[o].url = s(l), this.analyze();
1972
+ set href(s) {
1973
+ this[i].url = l(s), this.analyze();
1947
1974
  }
1948
1975
  get origin() {
1949
- return this[o].url.origin;
1976
+ return this[i].url.origin;
1950
1977
  }
1951
1978
  get pathname() {
1952
- return this[o].url.pathname;
1979
+ return this[i].url.pathname;
1953
1980
  }
1954
- set pathname(l) {
1955
- this[o].url.pathname = l;
1981
+ set pathname(s) {
1982
+ this[i].url.pathname = s;
1956
1983
  }
1957
1984
  get hash() {
1958
- return this[o].url.hash;
1985
+ return this[i].url.hash;
1959
1986
  }
1960
- set hash(l) {
1961
- this[o].url.hash = l;
1987
+ set hash(s) {
1988
+ this[i].url.hash = s;
1962
1989
  }
1963
1990
  get search() {
1964
- return this[o].url.search;
1991
+ return this[i].url.search;
1965
1992
  }
1966
- set search(l) {
1967
- this[o].url.search = l;
1993
+ set search(s) {
1994
+ this[i].url.search = s;
1968
1995
  }
1969
1996
  get password() {
1970
- return this[o].url.password;
1997
+ return this[i].url.password;
1971
1998
  }
1972
- set password(l) {
1973
- this[o].url.password = l;
1999
+ set password(s) {
2000
+ this[i].url.password = s;
1974
2001
  }
1975
2002
  get username() {
1976
- return this[o].url.username;
2003
+ return this[i].url.username;
1977
2004
  }
1978
- set username(l) {
1979
- this[o].url.username = l;
2005
+ set username(s) {
2006
+ this[i].url.username = s;
1980
2007
  }
1981
2008
  get basePath() {
1982
- return this[o].basePath;
2009
+ return this[i].basePath;
1983
2010
  }
1984
- set basePath(l) {
1985
- this[o].basePath = l.startsWith("/") ? l : `/${l}`;
2011
+ set basePath(s) {
2012
+ this[i].basePath = s.startsWith("/") ? s : `/${s}`;
1986
2013
  }
1987
2014
  toString() {
1988
2015
  return this.href;
@@ -2007,19 +2034,19 @@ var ct = {}, ut = {};
2007
2034
  };
2008
2035
  }
2009
2036
  clone() {
2010
- return new d(String(this), this[o].options);
2037
+ return new d(String(this), this[i].options);
2011
2038
  }
2012
2039
  }
2013
- })(Se);
2014
- var Ce = {};
2040
+ })(Pe);
2041
+ var xe = {};
2015
2042
  (function(e) {
2016
2043
  Object.defineProperty(e, "__esModule", {
2017
2044
  value: !0
2018
2045
  });
2019
2046
  function t(d, g) {
2020
- for (var l in g) Object.defineProperty(d, l, {
2047
+ for (var s in g) Object.defineProperty(d, s, {
2021
2048
  enumerable: !0,
2022
- get: g[l]
2049
+ get: g[s]
2023
2050
  });
2024
2051
  }
2025
2052
  t(e, {
@@ -2027,60 +2054,60 @@ var Ce = {};
2027
2054
  return n;
2028
2055
  },
2029
2056
  normalizeNextQueryParam: function() {
2030
- return o;
2057
+ return i;
2031
2058
  },
2032
2059
  splitCookiesString: function() {
2033
- return i;
2060
+ return a;
2034
2061
  },
2035
2062
  toNodeOutgoingHttpHeaders: function() {
2036
- return a;
2063
+ return o;
2037
2064
  },
2038
2065
  validateURL: function() {
2039
- return s;
2066
+ return l;
2040
2067
  }
2041
2068
  });
2042
- const r = Nt;
2069
+ const r = Ot;
2043
2070
  function n(d) {
2044
2071
  const g = new Headers();
2045
- for (let [l, u] of Object.entries(d)) {
2072
+ for (let [s, u] of Object.entries(d)) {
2046
2073
  const w = Array.isArray(u) ? u : [
2047
2074
  u
2048
2075
  ];
2049
2076
  for (let v of w)
2050
- typeof v > "u" || (typeof v == "number" && (v = v.toString()), g.append(l, v));
2077
+ typeof v > "u" || (typeof v == "number" && (v = v.toString()), g.append(s, v));
2051
2078
  }
2052
2079
  return g;
2053
2080
  }
2054
- function i(d) {
2055
- var g = [], l = 0, u, w, v, y, _;
2081
+ function a(d) {
2082
+ var g = [], s = 0, u, w, v, y, _;
2056
2083
  function p() {
2057
- for (; l < d.length && /\s/.test(d.charAt(l)); )
2058
- l += 1;
2059
- return l < d.length;
2084
+ for (; s < d.length && /\s/.test(d.charAt(s)); )
2085
+ s += 1;
2086
+ return s < d.length;
2060
2087
  }
2061
2088
  function b() {
2062
- return w = d.charAt(l), w !== "=" && w !== ";" && w !== ",";
2063
- }
2064
- for (; l < d.length; ) {
2065
- for (u = l, _ = !1; p(); )
2066
- if (w = d.charAt(l), w === ",") {
2067
- for (v = l, l += 1, p(), y = l; l < d.length && b(); )
2068
- l += 1;
2069
- l < d.length && d.charAt(l) === "=" ? (_ = !0, l = y, g.push(d.substring(u, v)), u = l) : l = v + 1;
2089
+ return w = d.charAt(s), w !== "=" && w !== ";" && w !== ",";
2090
+ }
2091
+ for (; s < d.length; ) {
2092
+ for (u = s, _ = !1; p(); )
2093
+ if (w = d.charAt(s), w === ",") {
2094
+ for (v = s, s += 1, p(), y = s; s < d.length && b(); )
2095
+ s += 1;
2096
+ s < d.length && d.charAt(s) === "=" ? (_ = !0, s = y, g.push(d.substring(u, v)), u = s) : s = v + 1;
2070
2097
  } else
2071
- l += 1;
2072
- (!_ || l >= d.length) && g.push(d.substring(u, d.length));
2098
+ s += 1;
2099
+ (!_ || s >= d.length) && g.push(d.substring(u, d.length));
2073
2100
  }
2074
2101
  return g;
2075
2102
  }
2076
- function a(d) {
2077
- const g = {}, l = [];
2103
+ function o(d) {
2104
+ const g = {}, s = [];
2078
2105
  if (d)
2079
2106
  for (const [u, w] of d.entries())
2080
- u.toLowerCase() === "set-cookie" ? (l.push(...i(w)), g[u] = l.length === 1 ? l[0] : l) : g[u] = w;
2107
+ u.toLowerCase() === "set-cookie" ? (s.push(...a(w)), g[u] = s.length === 1 ? s[0] : s) : g[u] = w;
2081
2108
  return g;
2082
2109
  }
2083
- function s(d) {
2110
+ function l(d) {
2084
2111
  try {
2085
2112
  return String(new URL(String(d)));
2086
2113
  } catch (g) {
@@ -2089,27 +2116,27 @@ var Ce = {};
2089
2116
  });
2090
2117
  }
2091
2118
  }
2092
- function o(d, g) {
2093
- const l = [
2119
+ function i(d, g) {
2120
+ const s = [
2094
2121
  r.NEXT_QUERY_PARAM_PREFIX,
2095
2122
  r.NEXT_INTERCEPTION_MARKER_PREFIX
2096
2123
  ];
2097
- for (const u of l)
2124
+ for (const u of s)
2098
2125
  if (d !== u && d.startsWith(u)) {
2099
2126
  const w = d.substring(u.length);
2100
2127
  g(w);
2101
2128
  }
2102
2129
  }
2103
- })(Ce);
2104
- var dt = {};
2130
+ })(xe);
2131
+ var ct = {};
2105
2132
  (function(e) {
2106
2133
  Object.defineProperty(e, "__esModule", {
2107
2134
  value: !0
2108
2135
  });
2109
- function t(a, s) {
2110
- for (var o in s) Object.defineProperty(a, o, {
2136
+ function t(o, l) {
2137
+ for (var i in l) Object.defineProperty(o, i, {
2111
2138
  enumerable: !0,
2112
- get: s[o]
2139
+ get: l[i]
2113
2140
  });
2114
2141
  }
2115
2142
  t(e, {
@@ -2120,12 +2147,12 @@ var dt = {};
2120
2147
  return n;
2121
2148
  },
2122
2149
  RemovedUAError: function() {
2123
- return i;
2150
+ return a;
2124
2151
  }
2125
2152
  });
2126
2153
  class r extends Error {
2127
- constructor({ page: s }) {
2128
- super(`The middleware "${s}" accepts an async API directly with the form:
2154
+ constructor({ page: l }) {
2155
+ super(`The middleware "${l}" accepts an async API directly with the form:
2129
2156
 
2130
2157
  export function middleware(request, event) {
2131
2158
  return NextResponse.redirect('/new-location')
@@ -2140,30 +2167,30 @@ var dt = {};
2140
2167
  super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ");
2141
2168
  }
2142
2169
  }
2143
- class i extends Error {
2170
+ class a extends Error {
2144
2171
  constructor() {
2145
2172
  super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ");
2146
2173
  }
2147
2174
  }
2148
- })(dt);
2149
- var pe = {}, xe = Object.defineProperty, $n = Object.getOwnPropertyDescriptor, Ln = Object.getOwnPropertyNames, Dn = Object.prototype.hasOwnProperty, Un = (e, t) => {
2175
+ })(ct);
2176
+ var pe = {}, Se = Object.defineProperty, Fn = Object.getOwnPropertyDescriptor, $n = Object.getOwnPropertyNames, Ln = Object.prototype.hasOwnProperty, Dn = (e, t) => {
2150
2177
  for (var r in t)
2151
- xe(e, r, { get: t[r], enumerable: !0 });
2152
- }, Hn = (e, t, r, n) => {
2178
+ Se(e, r, { get: t[r], enumerable: !0 });
2179
+ }, Un = (e, t, r, n) => {
2153
2180
  if (t && typeof t == "object" || typeof t == "function")
2154
- for (let i of Ln(t))
2155
- !Dn.call(e, i) && i !== r && xe(e, i, { get: () => t[i], enumerable: !(n = $n(t, i)) || n.enumerable });
2181
+ for (let a of $n(t))
2182
+ !Ln.call(e, a) && a !== r && Se(e, a, { get: () => t[a], enumerable: !(n = Fn(t, a)) || n.enumerable });
2156
2183
  return e;
2157
- }, Mn = (e) => Hn(xe({}, "__esModule", { value: !0 }), e), pt = {};
2158
- Un(pt, {
2159
- RequestCookies: () => Kn,
2160
- ResponseCookies: () => Jn,
2161
- parseCookie: () => ke,
2162
- parseSetCookie: () => mt,
2163
- stringifyCookie: () => J
2184
+ }, Hn = (e) => Un(Se({}, "__esModule", { value: !0 }), e), ut = {};
2185
+ Dn(ut, {
2186
+ RequestCookies: () => Xn,
2187
+ ResponseCookies: () => Kn,
2188
+ parseCookie: () => Ce,
2189
+ parseSetCookie: () => dt,
2190
+ stringifyCookie: () => K
2164
2191
  });
2165
- var Bn = Mn(pt);
2166
- function J(e) {
2192
+ var Mn = Hn(ut);
2193
+ function K(e) {
2167
2194
  var t;
2168
2195
  const r = [
2169
2196
  "path" in e && e.path && `Path=${e.path}`,
@@ -2178,7 +2205,7 @@ function J(e) {
2178
2205
  ].filter(Boolean), n = `${e.name}=${encodeURIComponent((t = e.value) != null ? t : "")}`;
2179
2206
  return r.length === 0 ? n : `${n}; ${r.join("; ")}`;
2180
2207
  }
2181
- function ke(e) {
2208
+ function Ce(e) {
2182
2209
  const t = /* @__PURE__ */ new Map();
2183
2210
  for (const r of e.split(/; */)) {
2184
2211
  if (!r)
@@ -2188,25 +2215,25 @@ function ke(e) {
2188
2215
  t.set(r, "true");
2189
2216
  continue;
2190
2217
  }
2191
- const [i, a] = [r.slice(0, n), r.slice(n + 1)];
2218
+ const [a, o] = [r.slice(0, n), r.slice(n + 1)];
2192
2219
  try {
2193
- t.set(i, decodeURIComponent(a ?? "true"));
2220
+ t.set(a, decodeURIComponent(o ?? "true"));
2194
2221
  } catch {
2195
2222
  }
2196
2223
  }
2197
2224
  return t;
2198
2225
  }
2199
- function mt(e) {
2226
+ function dt(e) {
2200
2227
  if (!e)
2201
2228
  return;
2202
- const [[t, r], ...n] = ke(e), {
2203
- domain: i,
2204
- expires: a,
2205
- httponly: s,
2206
- maxage: o,
2229
+ const [[t, r], ...n] = Ce(e), {
2230
+ domain: a,
2231
+ expires: o,
2232
+ httponly: l,
2233
+ maxage: i,
2207
2234
  path: d,
2208
2235
  samesite: g,
2209
- secure: l,
2236
+ secure: s,
2210
2237
  partitioned: u,
2211
2238
  priority: w
2212
2239
  } = Object.fromEntries(
@@ -2214,64 +2241,64 @@ function mt(e) {
2214
2241
  ), v = {
2215
2242
  name: t,
2216
2243
  value: decodeURIComponent(r),
2217
- domain: i,
2218
- ...a && { expires: new Date(a) },
2219
- ...s && { httpOnly: !0 },
2220
- ...typeof o == "string" && { maxAge: Number(o) },
2244
+ domain: a,
2245
+ ...o && { expires: new Date(o) },
2246
+ ...l && { httpOnly: !0 },
2247
+ ...typeof i == "string" && { maxAge: Number(i) },
2221
2248
  path: d,
2222
- ...g && { sameSite: Vn(g) },
2223
- ...l && { secure: !0 },
2224
- ...w && { priority: Qn(w) },
2249
+ ...g && { sameSite: Gn(g) },
2250
+ ...s && { secure: !0 },
2251
+ ...w && { priority: Wn(w) },
2225
2252
  ...u && { partitioned: !0 }
2226
2253
  };
2227
- return zn(v);
2254
+ return Bn(v);
2228
2255
  }
2229
- function zn(e) {
2256
+ function Bn(e) {
2230
2257
  const t = {};
2231
2258
  for (const r in e)
2232
2259
  e[r] && (t[r] = e[r]);
2233
2260
  return t;
2234
2261
  }
2235
- var Gn = ["strict", "lax", "none"];
2236
- function Vn(e) {
2237
- return e = e.toLowerCase(), Gn.includes(e) ? e : void 0;
2262
+ var zn = ["strict", "lax", "none"];
2263
+ function Gn(e) {
2264
+ return e = e.toLowerCase(), zn.includes(e) ? e : void 0;
2238
2265
  }
2239
- var Wn = ["low", "medium", "high"];
2240
- function Qn(e) {
2241
- return e = e.toLowerCase(), Wn.includes(e) ? e : void 0;
2266
+ var Vn = ["low", "medium", "high"];
2267
+ function Wn(e) {
2268
+ return e = e.toLowerCase(), Vn.includes(e) ? e : void 0;
2242
2269
  }
2243
- function Xn(e) {
2270
+ function Qn(e) {
2244
2271
  if (!e)
2245
2272
  return [];
2246
- var t = [], r = 0, n, i, a, s, o;
2273
+ var t = [], r = 0, n, a, o, l, i;
2247
2274
  function d() {
2248
2275
  for (; r < e.length && /\s/.test(e.charAt(r)); )
2249
2276
  r += 1;
2250
2277
  return r < e.length;
2251
2278
  }
2252
2279
  function g() {
2253
- return i = e.charAt(r), i !== "=" && i !== ";" && i !== ",";
2280
+ return a = e.charAt(r), a !== "=" && a !== ";" && a !== ",";
2254
2281
  }
2255
2282
  for (; r < e.length; ) {
2256
- for (n = r, o = !1; d(); )
2257
- if (i = e.charAt(r), i === ",") {
2258
- for (a = r, r += 1, d(), s = r; r < e.length && g(); )
2283
+ for (n = r, i = !1; d(); )
2284
+ if (a = e.charAt(r), a === ",") {
2285
+ for (o = r, r += 1, d(), l = r; r < e.length && g(); )
2259
2286
  r += 1;
2260
- r < e.length && e.charAt(r) === "=" ? (o = !0, r = s, t.push(e.substring(n, a)), n = r) : r = a + 1;
2287
+ r < e.length && e.charAt(r) === "=" ? (i = !0, r = l, t.push(e.substring(n, o)), n = r) : r = o + 1;
2261
2288
  } else
2262
2289
  r += 1;
2263
- (!o || r >= e.length) && t.push(e.substring(n, e.length));
2290
+ (!i || r >= e.length) && t.push(e.substring(n, e.length));
2264
2291
  }
2265
2292
  return t;
2266
2293
  }
2267
- var Kn = class {
2294
+ var Xn = class {
2268
2295
  constructor(e) {
2269
2296
  this._parsed = /* @__PURE__ */ new Map(), this._headers = e;
2270
2297
  const t = e.get("cookie");
2271
2298
  if (t) {
2272
- const r = ke(t);
2273
- for (const [n, i] of r)
2274
- this._parsed.set(n, { name: n, value: i });
2299
+ const r = Ce(t);
2300
+ for (const [n, a] of r)
2301
+ this._parsed.set(n, { name: n, value: a });
2275
2302
  }
2276
2303
  }
2277
2304
  [Symbol.iterator]() {
@@ -2291,9 +2318,9 @@ var Kn = class {
2291
2318
  var t;
2292
2319
  const r = Array.from(this._parsed);
2293
2320
  if (!e.length)
2294
- return r.map(([i, a]) => a);
2321
+ return r.map(([a, o]) => o);
2295
2322
  const n = typeof e[0] == "string" ? e[0] : (t = e[0]) == null ? void 0 : t.name;
2296
- return r.filter(([i]) => i === n).map(([i, a]) => a);
2323
+ return r.filter(([a]) => a === n).map(([a, o]) => o);
2297
2324
  }
2298
2325
  has(e) {
2299
2326
  return this._parsed.has(e);
@@ -2302,7 +2329,7 @@ var Kn = class {
2302
2329
  const [t, r] = e.length === 1 ? [e[0].name, e[0].value] : e, n = this._parsed;
2303
2330
  return n.set(t, { name: t, value: r }), this._headers.set(
2304
2331
  "cookie",
2305
- Array.from(n).map(([i, a]) => J(a)).join("; ")
2332
+ Array.from(n).map(([a, o]) => K(o)).join("; ")
2306
2333
  ), this;
2307
2334
  }
2308
2335
  /**
@@ -2312,7 +2339,7 @@ var Kn = class {
2312
2339
  const t = this._parsed, r = Array.isArray(e) ? e.map((n) => t.delete(n)) : t.delete(e);
2313
2340
  return this._headers.set(
2314
2341
  "cookie",
2315
- Array.from(t).map(([n, i]) => J(i)).join("; ")
2342
+ Array.from(t).map(([n, a]) => K(a)).join("; ")
2316
2343
  ), r;
2317
2344
  }
2318
2345
  /**
@@ -2330,15 +2357,15 @@ var Kn = class {
2330
2357
  toString() {
2331
2358
  return [...this._parsed.values()].map((e) => `${e.name}=${encodeURIComponent(e.value)}`).join("; ");
2332
2359
  }
2333
- }, Jn = class {
2360
+ }, Kn = class {
2334
2361
  constructor(e) {
2335
2362
  this._parsed = /* @__PURE__ */ new Map();
2336
2363
  var t, r, n;
2337
2364
  this._headers = e;
2338
- const i = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], a = Array.isArray(i) ? i : Xn(i);
2339
- for (const s of a) {
2340
- const o = mt(s);
2341
- o && this._parsed.set(o.name, o);
2365
+ 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);
2366
+ for (const l of o) {
2367
+ const i = dt(l);
2368
+ i && this._parsed.set(i.name, i);
2342
2369
  }
2343
2370
  }
2344
2371
  /**
@@ -2357,7 +2384,7 @@ var Kn = class {
2357
2384
  if (!e.length)
2358
2385
  return r;
2359
2386
  const n = typeof e[0] == "string" ? e[0] : (t = e[0]) == null ? void 0 : t.name;
2360
- return r.filter((i) => i.name === n);
2387
+ return r.filter((a) => a.name === n);
2361
2388
  }
2362
2389
  has(e) {
2363
2390
  return this._parsed.has(e);
@@ -2366,8 +2393,8 @@ var Kn = class {
2366
2393
  * {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
2367
2394
  */
2368
2395
  set(...e) {
2369
- const [t, r, n] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e, i = this._parsed;
2370
- return i.set(t, Yn({ name: t, value: r, ...n })), Zn(i, this._headers), this;
2396
+ const [t, r, n] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e, a = this._parsed;
2397
+ return a.set(t, Zn({ name: t, value: r, ...n })), Jn(a, this._headers), this;
2371
2398
  }
2372
2399
  /**
2373
2400
  * {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
@@ -2380,27 +2407,27 @@ var Kn = class {
2380
2407
  return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
2381
2408
  }
2382
2409
  toString() {
2383
- return [...this._parsed.values()].map(J).join("; ");
2410
+ return [...this._parsed.values()].map(K).join("; ");
2384
2411
  }
2385
2412
  };
2386
- function Zn(e, t) {
2413
+ function Jn(e, t) {
2387
2414
  t.delete("set-cookie");
2388
2415
  for (const [, r] of e) {
2389
- const n = J(r);
2416
+ const n = K(r);
2390
2417
  t.append("set-cookie", n);
2391
2418
  }
2392
2419
  }
2393
- function Yn(e = { name: "", value: "" }) {
2420
+ function Zn(e = { name: "", value: "" }) {
2394
2421
  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;
2395
2422
  }
2396
2423
  (function(e) {
2397
2424
  Object.defineProperty(e, "__esModule", {
2398
2425
  value: !0
2399
2426
  });
2400
- function t(n, i) {
2401
- for (var a in i) Object.defineProperty(n, a, {
2427
+ function t(n, a) {
2428
+ for (var o in a) Object.defineProperty(n, o, {
2402
2429
  enumerable: !0,
2403
- get: i[a]
2430
+ get: a[o]
2404
2431
  });
2405
2432
  }
2406
2433
  t(e, {
@@ -2414,39 +2441,39 @@ function Yn(e = { name: "", value: "" }) {
2414
2441
  return r.stringifyCookie;
2415
2442
  }
2416
2443
  });
2417
- const r = Bn;
2444
+ const r = Mn;
2418
2445
  })(pe);
2419
2446
  (function(e) {
2420
2447
  Object.defineProperty(e, "__esModule", {
2421
2448
  value: !0
2422
2449
  });
2423
2450
  function t(d, g) {
2424
- for (var l in g) Object.defineProperty(d, l, {
2451
+ for (var s in g) Object.defineProperty(d, s, {
2425
2452
  enumerable: !0,
2426
- get: g[l]
2453
+ get: g[s]
2427
2454
  });
2428
2455
  }
2429
2456
  t(e, {
2430
2457
  INTERNALS: function() {
2431
- return s;
2458
+ return l;
2432
2459
  },
2433
2460
  NextRequest: function() {
2434
- return o;
2461
+ return i;
2435
2462
  }
2436
2463
  });
2437
- const r = Se, n = Ce, i = dt, a = pe, s = Symbol("internal request");
2438
- class o extends Request {
2439
- constructor(g, l = {}) {
2464
+ const r = Pe, n = xe, a = ct, o = pe, l = Symbol("internal request");
2465
+ class i extends Request {
2466
+ constructor(g, s = {}) {
2440
2467
  const u = typeof g != "string" && "url" in g ? g.url : String(g);
2441
- (0, n.validateURL)(u), g instanceof Request ? super(g, l) : super(u, l);
2468
+ (0, n.validateURL)(u), g instanceof Request ? super(g, s) : super(u, s);
2442
2469
  const w = new r.NextURL(u, {
2443
2470
  headers: (0, n.toNodeOutgoingHttpHeaders)(this.headers),
2444
- nextConfig: l.nextConfig
2471
+ nextConfig: s.nextConfig
2445
2472
  });
2446
- this[s] = {
2447
- cookies: new a.RequestCookies(this.headers),
2448
- geo: l.geo || {},
2449
- ip: l.ip,
2473
+ this[l] = {
2474
+ cookies: new o.RequestCookies(this.headers),
2475
+ geo: s.geo || {},
2476
+ ip: s.ip,
2450
2477
  nextUrl: w,
2451
2478
  url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? u : w.toString()
2452
2479
  };
@@ -2475,16 +2502,16 @@ function Yn(e = { name: "", value: "" }) {
2475
2502
  };
2476
2503
  }
2477
2504
  get cookies() {
2478
- return this[s].cookies;
2505
+ return this[l].cookies;
2479
2506
  }
2480
2507
  get geo() {
2481
- return this[s].geo;
2508
+ return this[l].geo;
2482
2509
  }
2483
2510
  get ip() {
2484
- return this[s].ip;
2511
+ return this[l].ip;
2485
2512
  }
2486
2513
  get nextUrl() {
2487
- return this[s].nextUrl;
2514
+ return this[l].nextUrl;
2488
2515
  }
2489
2516
  /**
2490
2517
  * @deprecated
@@ -2492,7 +2519,7 @@ function Yn(e = { name: "", value: "" }) {
2492
2519
  * Read more: https://nextjs.org/docs/messages/middleware-request-page
2493
2520
  */
2494
2521
  get page() {
2495
- throw new i.RemovedPageError();
2522
+ throw new a.RemovedPageError();
2496
2523
  }
2497
2524
  /**
2498
2525
  * @deprecated
@@ -2500,14 +2527,14 @@ function Yn(e = { name: "", value: "" }) {
2500
2527
  * Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
2501
2528
  */
2502
2529
  get ua() {
2503
- throw new i.RemovedUAError();
2530
+ throw new a.RemovedUAError();
2504
2531
  }
2505
2532
  get url() {
2506
- return this[s].url;
2533
+ return this[l].url;
2507
2534
  }
2508
2535
  }
2509
- })(ot);
2510
- var ht = {}, ft = {};
2536
+ })(nt);
2537
+ var pt = {}, mt = {};
2511
2538
  (function(e) {
2512
2539
  Object.defineProperty(e, "__esModule", {
2513
2540
  value: !0
@@ -2518,21 +2545,21 @@ var ht = {}, ft = {};
2518
2545
  }
2519
2546
  });
2520
2547
  class t {
2521
- static get(n, i, a) {
2522
- const s = Reflect.get(n, i, a);
2523
- return typeof s == "function" ? s.bind(n) : s;
2548
+ static get(n, a, o) {
2549
+ const l = Reflect.get(n, a, o);
2550
+ return typeof l == "function" ? l.bind(n) : l;
2524
2551
  }
2525
- static set(n, i, a, s) {
2526
- return Reflect.set(n, i, a, s);
2552
+ static set(n, a, o, l) {
2553
+ return Reflect.set(n, a, o, l);
2527
2554
  }
2528
- static has(n, i) {
2529
- return Reflect.has(n, i);
2555
+ static has(n, a) {
2556
+ return Reflect.has(n, a);
2530
2557
  }
2531
- static deleteProperty(n, i) {
2532
- return Reflect.deleteProperty(n, i);
2558
+ static deleteProperty(n, a) {
2559
+ return Reflect.deleteProperty(n, a);
2533
2560
  }
2534
2561
  }
2535
- })(ft);
2562
+ })(mt);
2536
2563
  (function(e) {
2537
2564
  Object.defineProperty(e, "__esModule", {
2538
2565
  value: !0
@@ -2542,20 +2569,20 @@ var ht = {}, ft = {};
2542
2569
  return g;
2543
2570
  }
2544
2571
  });
2545
- const t = pe, r = Se, n = Ce, i = ft, a = pe, s = Symbol("internal response"), o = /* @__PURE__ */ new Set([
2572
+ const t = pe, r = Pe, n = xe, a = mt, o = pe, l = Symbol("internal response"), i = /* @__PURE__ */ new Set([
2546
2573
  301,
2547
2574
  302,
2548
2575
  303,
2549
2576
  307,
2550
2577
  308
2551
2578
  ]);
2552
- function d(l, u) {
2579
+ function d(s, u) {
2553
2580
  var w;
2554
- if (!(l == null || (w = l.request) == null) && w.headers) {
2555
- if (!(l.request.headers instanceof Headers))
2581
+ if (!(s == null || (w = s.request) == null) && w.headers) {
2582
+ if (!(s.request.headers instanceof Headers))
2556
2583
  throw new Error("request.headers must be an instance of Headers");
2557
2584
  const v = [];
2558
- for (const [y, _] of l.request.headers)
2585
+ for (const [y, _] of s.request.headers)
2559
2586
  u.set("x-middleware-request-" + y, _), v.push(y);
2560
2587
  u.set("x-middleware-override-headers", v.join(","));
2561
2588
  }
@@ -2563,21 +2590,21 @@ var ht = {}, ft = {};
2563
2590
  class g extends Response {
2564
2591
  constructor(u, w = {}) {
2565
2592
  super(u, w);
2566
- const v = this.headers, y = new a.ResponseCookies(v), _ = new Proxy(y, {
2593
+ const v = this.headers, y = new o.ResponseCookies(v), _ = new Proxy(y, {
2567
2594
  get(p, b, m) {
2568
2595
  switch (b) {
2569
2596
  case "delete":
2570
2597
  case "set":
2571
2598
  return (...h) => {
2572
2599
  const f = Reflect.apply(p[b], p, h), E = new Headers(v);
2573
- return f instanceof a.ResponseCookies && v.set("x-middleware-set-cookie", f.getAll().map((q) => (0, t.stringifyCookie)(q)).join(",")), d(w, E), f;
2600
+ return f instanceof o.ResponseCookies && v.set("x-middleware-set-cookie", f.getAll().map((q) => (0, t.stringifyCookie)(q)).join(",")), d(w, E), f;
2574
2601
  };
2575
2602
  default:
2576
- return i.ReflectAdapter.get(p, b, m);
2603
+ return a.ReflectAdapter.get(p, b, m);
2577
2604
  }
2578
2605
  }
2579
2606
  });
2580
- this[s] = {
2607
+ this[l] = {
2581
2608
  cookies: _,
2582
2609
  url: w.url ? new r.NextURL(w.url, {
2583
2610
  headers: (0, n.toNodeOutgoingHttpHeaders)(v),
@@ -2601,7 +2628,7 @@ var ht = {}, ft = {};
2601
2628
  };
2602
2629
  }
2603
2630
  get cookies() {
2604
- return this[s].cookies;
2631
+ return this[l].cookies;
2605
2632
  }
2606
2633
  static json(u, w) {
2607
2634
  const v = Response.json(u, w);
@@ -2609,7 +2636,7 @@ var ht = {}, ft = {};
2609
2636
  }
2610
2637
  static redirect(u, w) {
2611
2638
  const v = typeof w == "number" ? w : (w == null ? void 0 : w.status) ?? 307;
2612
- if (!o.has(v))
2639
+ if (!i.has(v))
2613
2640
  throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
2614
2641
  const y = typeof w == "object" ? w : {}, _ = new Headers(y == null ? void 0 : y.headers);
2615
2642
  return _.set("Location", (0, n.validateURL)(u)), new g(null, {
@@ -2633,8 +2660,8 @@ var ht = {}, ft = {};
2633
2660
  });
2634
2661
  }
2635
2662
  }
2636
- })(ht);
2637
- var gt = {};
2663
+ })(pt);
2664
+ var ht = {};
2638
2665
  (function(e) {
2639
2666
  Object.defineProperty(e, "__esModule", {
2640
2667
  value: !0
@@ -2647,147 +2674,147 @@ var gt = {};
2647
2674
  function t() {
2648
2675
  throw new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead');
2649
2676
  }
2650
- })(gt);
2651
- var Pe = {}, bt = { exports: {} };
2677
+ })(ht);
2678
+ var Ie = {}, ft = { exports: {} };
2652
2679
  (() => {
2653
- var e = { 226: function(i, a) {
2654
- (function(s, o) {
2655
- var d = "1.0.35", g = "", l = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", h = "vendor", f = "version", E = "architecture", q = "console", I = "mobile", R = "tablet", x = "smarttv", j = "wearable", F = "embedded", D = 350, U = "Amazon", B = "Apple", Z = "ASUS", Ee = "BlackBerry", G = "Browser", Y = "Chrome", yt = "Edge", ee = "Firefox", te = "Google", Ae = "Huawei", he = "LG", fe = "Microsoft", Te = "Motorola", re = "Opera", ge = "Samsung", Oe = "Sharp", ne = "Sony", be = "Xiaomi", we = "Zebra", qe = "Facebook", Ne = "Chromium OS", je = "Mac OS", _t = function(C, A) {
2656
- var S = {};
2657
- for (var O in C)
2658
- A[O] && A[O].length % 2 === 0 ? S[O] = A[O].concat(C[O]) : S[O] = C[O];
2659
- return S;
2660
- }, ie = function(C) {
2661
- for (var A = {}, S = 0; S < C.length; S++)
2662
- A[C[S].toUpperCase()] = C[S];
2680
+ var e = { 226: function(a, o) {
2681
+ (function(l, i) {
2682
+ 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", E = "architecture", q = "console", I = "mobile", R = "tablet", C = "smarttv", j = "wearable", $ = "embedded", D = 350, U = "Amazon", B = "Apple", Z = "ASUS", ke = "BlackBerry", G = "Browser", Y = "Chrome", bt = "Edge", ee = "Firefox", te = "Google", Ee = "Huawei", he = "LG", fe = "Microsoft", Ae = "Motorola", re = "Opera", ge = "Samsung", Oe = "Sharp", ne = "Sony", be = "Xiaomi", we = "Zebra", Te = "Facebook", qe = "Chromium OS", Ne = "Mac OS", wt = function(S, A) {
2683
+ var x = {};
2684
+ for (var T in S)
2685
+ A[T] && A[T].length % 2 === 0 ? x[T] = A[T].concat(S[T]) : x[T] = S[T];
2686
+ return x;
2687
+ }, ae = function(S) {
2688
+ for (var A = {}, x = 0; x < S.length; x++)
2689
+ A[S[x].toUpperCase()] = S[x];
2663
2690
  return A;
2664
- }, Fe = function(C, A) {
2665
- return typeof C === y ? W(A).indexOf(W(C)) !== -1 : !1;
2666
- }, W = function(C) {
2667
- return C.toLowerCase();
2668
- }, Rt = function(C) {
2669
- return typeof C === y ? C.replace(/[^\d\.]/g, g).split(".")[0] : o;
2670
- }, ve = function(C, A) {
2671
- if (typeof C === y)
2672
- return C = C.replace(/^\s\s*/, g), typeof A === w ? C : C.substring(0, D);
2673
- }, Q = function(C, A) {
2674
- for (var S = 0, O, z, H, k, P, M; S < A.length && !P; ) {
2675
- var _e = A[S], De = A[S + 1];
2676
- for (O = z = 0; O < _e.length && !P && _e[O]; )
2677
- if (P = _e[O++].exec(C), P)
2678
- for (H = 0; H < De.length; H++)
2679
- M = P[++z], k = De[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]) : o : this[k[0]] = M ? M.replace(k[1], k[2]) : o : k.length === 4 && (this[k[0]] = M ? k[3].call(this, M.replace(k[1], k[2])) : o) : this[k] = M || o;
2680
- S += 2;
2691
+ }, je = function(S, A) {
2692
+ return typeof S === y ? W(A).indexOf(W(S)) !== -1 : !1;
2693
+ }, W = function(S) {
2694
+ return S.toLowerCase();
2695
+ }, vt = function(S) {
2696
+ return typeof S === y ? S.replace(/[^\d\.]/g, g).split(".")[0] : i;
2697
+ }, ve = function(S, A) {
2698
+ if (typeof S === y)
2699
+ return S = S.replace(/^\s\s*/, g), typeof A === w ? S : S.substring(0, D);
2700
+ }, Q = function(S, A) {
2701
+ for (var x = 0, T, z, H, k, P, M; x < A.length && !P; ) {
2702
+ var _e = A[x], Le = A[x + 1];
2703
+ for (T = z = 0; T < _e.length && !P && _e[T]; )
2704
+ if (P = _e[T++].exec(S), P)
2705
+ for (H = 0; H < Le.length; H++)
2706
+ M = P[++z], k = Le[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;
2707
+ x += 2;
2681
2708
  }
2682
- }, ye = function(C, A) {
2683
- for (var S in A)
2684
- if (typeof A[S] === v && A[S].length > 0) {
2685
- for (var O = 0; O < A[S].length; O++)
2686
- if (Fe(A[S][O], C))
2687
- return S === l ? o : S;
2688
- } else if (Fe(A[S], C))
2689
- return S === l ? o : S;
2690
- return C;
2691
- }, It = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, $e = { 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" }, Le = { 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, re + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [b, re]], [/(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, ee + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [b, re + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [b, re + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [f, [b, ee]], [/\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, qe], 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, Y + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, Y + " 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, ye, It]], [/(webkit|khtml)\/([\w\.]+)/i], [b, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [b, ee + " 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], [[E, "amd64"]], [/(ia32(?=;))/i], [[E, W]], [/((?: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, W]], [/(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, W]]], 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, ge], [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, ge], [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, Oe], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [h, Ae], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [h, Ae], [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, be], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [h, be], [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, Te], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [h, Te], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [h, he], [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, he], [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, te], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [h, te], [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, ne], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [h, ne], [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, Ee], [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, fe], [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, fe], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [h, we], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [h, we], [m, I]], [/smart-tv.+(samsung)/i], [h, [m, x]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [h, ge], [m, x]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, he], [m, x]], [/(apple) ?tv/i], [h, [p, B + " TV"], [m, x]], [/crkey/i], [[p, Y + "cast"], [h, te], [m, x]], [/droid.+aft(\w)( bui|\))/i], [p, [h, U], [m, x]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [h, Oe], [m, x]], [/(bravia[\w ]+)( bui|\))/i], [p, [h, ne], [m, x]], [/(mitv-\w{5}) bui/i], [p, [h, be], [m, x]], [/Hbbtv.*(technisat) (.*);/i], [h, p, [m, x]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, ve], [p, ve], [m, x]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, x]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, p, [m, q]], [/droid.+; (shield) bui/i], [p, [h, "Nvidia"], [m, q]], [/(playstation [345portablevi]+)/i], [p, [h, ne], [m, q]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [h, fe], [m, q]], [/((pebble))app/i], [h, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [h, B], [m, j]], [/droid.+; (glass) \d/i], [p, [h, te], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [h, we], [m, j]], [/(quest( 2| pro)?)/i], [p, [h, qe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [m, F]], [/(aeobc)\b/i], [p, [h, 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, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [b, yt + "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, ye, $e]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [f, ye, $e]], [/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, je], [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, Ee]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [b, ee + " 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, Y + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Ne], 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(C, A) {
2692
- if (typeof C === v && (A = C, C = o), !(this instanceof L))
2693
- return new L(C, A).getResult();
2694
- var S = typeof s !== w && s.navigator ? s.navigator : o, O = C || (S && S.userAgent ? S.userAgent : g), z = S && S.userAgentData ? S.userAgentData : o, H = A ? _t(Le, A) : Le, k = S && S.userAgent == O;
2709
+ }, ye = function(S, A) {
2710
+ for (var x in A)
2711
+ if (typeof A[x] === v && A[x].length > 0) {
2712
+ for (var T = 0; T < A[x].length; T++)
2713
+ if (je(A[x][T], S))
2714
+ return x === s ? i : x;
2715
+ } else if (je(A[x], S))
2716
+ return x === s ? i : x;
2717
+ return S;
2718
+ }, yt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Fe = { 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], [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, re + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [b, re]], [/(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, ee + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [b, re + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [b, re + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [f, [b, ee]], [/\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, Te], 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, Y + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, Y + " 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, ye, yt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [b, ee + " 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], [[E, "amd64"]], [/(ia32(?=;))/i], [[E, W]], [/((?: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, W]], [/(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, W]]], 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, ge], [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, ge], [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, Oe], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [h, Ee], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [h, Ee], [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, be], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [h, be], [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, he], [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, he], [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, te], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [h, te], [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, ne], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [h, ne], [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, ke], [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, fe], [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, fe], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [h, we], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [h, we], [m, I]], [/smart-tv.+(samsung)/i], [h, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [h, ge], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, he], [m, C]], [/(apple) ?tv/i], [h, [p, B + " TV"], [m, C]], [/crkey/i], [[p, Y + "cast"], [h, te], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [h, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [h, Oe], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [h, ne], [m, C]], [/(mitv-\w{5}) bui/i], [p, [h, be], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [h, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, ve], [p, ve], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, p, [m, q]], [/droid.+; (shield) bui/i], [p, [h, "Nvidia"], [m, q]], [/(playstation [345portablevi]+)/i], [p, [h, ne], [m, q]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [h, fe], [m, q]], [/((pebble))app/i], [h, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [h, B], [m, j]], [/droid.+; (glass) \d/i], [p, [h, te], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [h, we], [m, j]], [/(quest( 2| pro)?)/i], [p, [h, Te], [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, bt + "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, ye, Fe]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [f, ye, Fe]], [/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, Ne], [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, ke]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [b, ee + " 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, Y + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, qe], 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, A) {
2719
+ if (typeof S === v && (A = S, S = i), !(this instanceof L))
2720
+ return new L(S, A).getResult();
2721
+ var x = typeof l !== w && l.navigator ? l.navigator : i, T = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, H = A ? wt($e, A) : $e, k = x && x.userAgent == T;
2695
2722
  return this.getBrowser = function() {
2696
2723
  var P = {};
2697
- return P[b] = o, P[f] = o, Q.call(P, O, H.browser), P[_] = Rt(P[f]), k && S && S.brave && typeof S.brave.isBrave == u && (P[b] = "Brave"), P;
2724
+ return P[b] = i, P[f] = i, Q.call(P, T, H.browser), P[_] = vt(P[f]), k && x && x.brave && typeof x.brave.isBrave == u && (P[b] = "Brave"), P;
2698
2725
  }, this.getCPU = function() {
2699
2726
  var P = {};
2700
- return P[E] = o, Q.call(P, O, H.cpu), P;
2727
+ return P[E] = i, Q.call(P, T, H.cpu), P;
2701
2728
  }, this.getDevice = function() {
2702
2729
  var P = {};
2703
- return P[h] = o, P[p] = o, P[m] = o, Q.call(P, O, H.device), k && !P[m] && z && z.mobile && (P[m] = I), k && P[p] == "Macintosh" && S && typeof S.standalone !== w && S.maxTouchPoints && S.maxTouchPoints > 2 && (P[p] = "iPad", P[m] = R), P;
2730
+ return P[h] = i, P[p] = i, P[m] = i, Q.call(P, T, 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;
2704
2731
  }, this.getEngine = function() {
2705
2732
  var P = {};
2706
- return P[b] = o, P[f] = o, Q.call(P, O, H.engine), P;
2733
+ return P[b] = i, P[f] = i, Q.call(P, T, H.engine), P;
2707
2734
  }, this.getOS = function() {
2708
2735
  var P = {};
2709
- return P[b] = o, P[f] = o, Q.call(P, O, H.os), k && !P[b] && z && z.platform != "Unknown" && (P[b] = z.platform.replace(/chrome os/i, Ne).replace(/macos/i, je)), P;
2736
+ return P[b] = i, P[f] = i, Q.call(P, T, H.os), k && !P[b] && z && z.platform != "Unknown" && (P[b] = z.platform.replace(/chrome os/i, qe).replace(/macos/i, Ne)), P;
2710
2737
  }, this.getResult = function() {
2711
2738
  return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
2712
2739
  }, this.getUA = function() {
2713
- return O;
2740
+ return T;
2714
2741
  }, this.setUA = function(P) {
2715
- return O = typeof P === y && P.length > D ? ve(P, D) : P, this;
2716
- }, this.setUA(O), this;
2742
+ return T = typeof P === y && P.length > D ? ve(P, D) : P, this;
2743
+ }, this.setUA(T), this;
2717
2744
  };
2718
- L.VERSION = d, L.BROWSER = ie([b, f, _]), L.CPU = ie([E]), L.DEVICE = ie([p, h, m, q, I, x, R, j, F]), L.ENGINE = L.OS = ie([b, f]), typeof a !== w ? (i.exports && (a = i.exports = L), a.UAParser = L) : typeof s !== w && (s.UAParser = L);
2719
- var V = typeof s !== w && (s.jQuery || s.Zepto);
2745
+ L.VERSION = d, L.BROWSER = ae([b, f, _]), L.CPU = ae([E]), L.DEVICE = ae([p, h, m, q, I, C, R, j, $]), L.ENGINE = L.OS = ae([b, f]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof l !== w && (l.UAParser = L);
2746
+ var V = typeof l !== w && (l.jQuery || l.Zepto);
2720
2747
  if (V && !V.ua) {
2721
- var oe = new L();
2722
- V.ua = oe.getResult(), V.ua.get = function() {
2723
- return oe.getUA();
2724
- }, V.ua.set = function(C) {
2725
- oe.setUA(C);
2726
- var A = oe.getResult();
2727
- for (var S in A)
2728
- V.ua[S] = A[S];
2748
+ var ie = new L();
2749
+ V.ua = ie.getResult(), V.ua.get = function() {
2750
+ return ie.getUA();
2751
+ }, V.ua.set = function(S) {
2752
+ ie.setUA(S);
2753
+ var A = ie.getResult();
2754
+ for (var x in A)
2755
+ V.ua[x] = A[x];
2729
2756
  };
2730
2757
  }
2731
2758
  })(typeof window == "object" ? window : this);
2732
2759
  } }, t = {};
2733
- function r(i) {
2734
- var a = t[i];
2735
- if (a !== void 0)
2736
- return a.exports;
2737
- var s = t[i] = { exports: {} }, o = !0;
2760
+ function r(a) {
2761
+ var o = t[a];
2762
+ if (o !== void 0)
2763
+ return o.exports;
2764
+ var l = t[a] = { exports: {} }, i = !0;
2738
2765
  try {
2739
- e[i].call(s.exports, s, s.exports, r), o = !1;
2766
+ e[a].call(l.exports, l, l.exports, r), i = !1;
2740
2767
  } finally {
2741
- o && delete t[i];
2768
+ i && delete t[a];
2742
2769
  }
2743
- return s.exports;
2770
+ return l.exports;
2744
2771
  }
2745
2772
  typeof r < "u" && (r.ab = __dirname + "/");
2746
2773
  var n = r(226);
2747
- bt.exports = n;
2774
+ ft.exports = n;
2748
2775
  })();
2749
- var ei = bt.exports;
2776
+ var Yn = ft.exports;
2750
2777
  (function(e) {
2751
2778
  Object.defineProperty(e, "__esModule", {
2752
2779
  value: !0
2753
2780
  });
2754
- function t(o, d) {
2755
- for (var g in d) Object.defineProperty(o, g, {
2781
+ function t(i, d) {
2782
+ for (var g in d) Object.defineProperty(i, g, {
2756
2783
  enumerable: !0,
2757
2784
  get: d[g]
2758
2785
  });
2759
2786
  }
2760
2787
  t(e, {
2761
2788
  isBot: function() {
2762
- return i;
2789
+ return a;
2763
2790
  },
2764
2791
  userAgent: function() {
2765
- return s;
2792
+ return l;
2766
2793
  },
2767
2794
  userAgentFromString: function() {
2768
- return a;
2795
+ return o;
2769
2796
  }
2770
2797
  });
2771
- const r = /* @__PURE__ */ n(ei);
2772
- function n(o) {
2773
- return o && o.__esModule ? o : {
2774
- default: o
2798
+ const r = /* @__PURE__ */ n(Yn);
2799
+ function n(i) {
2800
+ return i && i.__esModule ? i : {
2801
+ default: i
2775
2802
  };
2776
2803
  }
2777
- function i(o) {
2778
- return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(o);
2804
+ function a(i) {
2805
+ return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(i);
2779
2806
  }
2780
- function a(o) {
2807
+ function o(i) {
2781
2808
  return {
2782
- ...(0, r.default)(o),
2783
- isBot: o === void 0 ? !1 : i(o)
2809
+ ...(0, r.default)(i),
2810
+ isBot: i === void 0 ? !1 : a(i)
2784
2811
  };
2785
2812
  }
2786
- function s({ headers: o }) {
2787
- return a(o.get("user-agent") || void 0);
2813
+ function l({ headers: i }) {
2814
+ return o(i.get("user-agent") || void 0);
2788
2815
  }
2789
- })(Pe);
2790
- var wt = {};
2816
+ })(Ie);
2817
+ var gt = {};
2791
2818
  (function(e) {
2792
2819
  Object.defineProperty(e, "__esModule", {
2793
2820
  value: !0
@@ -2801,38 +2828,38 @@ var wt = {};
2801
2828
  // @ts-expect-error: URLPattern is not available in Node.js
2802
2829
  typeof URLPattern > "u" ? void 0 : URLPattern
2803
2830
  );
2804
- })(wt);
2831
+ })(gt);
2805
2832
  (function(e, t) {
2806
2833
  const r = {
2807
- NextRequest: ot.NextRequest,
2808
- NextResponse: ht.NextResponse,
2809
- ImageResponse: gt.ImageResponse,
2810
- userAgentFromString: Pe.userAgentFromString,
2811
- userAgent: Pe.userAgent,
2812
- URLPattern: wt.URLPattern
2834
+ NextRequest: nt.NextRequest,
2835
+ NextResponse: pt.NextResponse,
2836
+ ImageResponse: ht.ImageResponse,
2837
+ userAgentFromString: Ie.userAgentFromString,
2838
+ userAgent: Ie.userAgent,
2839
+ URLPattern: gt.URLPattern
2813
2840
  };
2814
2841
  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;
2815
- })(Ie, Ie.exports);
2816
- var Me = Ie.exports;
2817
- async function ti({ apiUrl: e, extraData: t, fetchOptions: r }) {
2842
+ })(Re, Re.exports);
2843
+ var He = Re.exports;
2844
+ async function ea({ apiUrl: e, extraData: t, fetchOptions: r }) {
2818
2845
  var I, R;
2819
- const n = `${e}/api/dataentities`, i = `${e}/api/io/v1/extrato/get-total`, {
2820
- MASTER_DATA_ENTITY: a,
2821
- MASTER_DATA_FIELDS: s,
2822
- AUTH_TOKEN_COOKIE: o,
2846
+ const n = `${e}/api/dataentities`, a = `${e}/api/io/v1/extrato/get-total`, {
2847
+ MASTER_DATA_ENTITY: o,
2848
+ MASTER_DATA_FIELDS: l,
2849
+ AUTH_TOKEN_COOKIE: i,
2823
2850
  requestHeaders: d,
2824
2851
  cookies: g
2825
- } = t, { address: l, client: u } = a, { address: w, client: v } = s, y = ((I = g == null ? void 0 : g.find((x) => (x == null ? void 0 : x.name) === o)) == null ? void 0 : I.value) || "";
2852
+ } = 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) || "";
2826
2853
  if (!y)
2827
- return Me.NextResponse.json(
2854
+ return He.NextResponse.json(
2828
2855
  { error: "Token not found. Unauthorized" },
2829
2856
  { status: 200 }
2830
2857
  );
2831
- const { sub: _, userId: p } = zt(y), b = Object.fromEntries(
2832
- Object.entries(d).map(([x, j]) => [x, String(j || "")])
2833
- ), m = async (x, j, F = !1) => {
2858
+ const { sub: _, userId: p } = Mt(y), b = Object.fromEntries(
2859
+ Object.entries(d).map(([C, j]) => [C, String(j || "")])
2860
+ ), m = async (C, j, $ = !1) => {
2834
2861
  try {
2835
- const U = await fetch(`${F ? i : n}${x}`, {
2862
+ const U = await fetch(`${$ ? a : n}${C}`, {
2836
2863
  headers: {
2837
2864
  ...j,
2838
2865
  ...r == null ? void 0 : r.headers
@@ -2840,16 +2867,16 @@ async function ti({ apiUrl: e, extraData: t, fetchOptions: r }) {
2840
2867
  }).then((Z) => Z.json()), B = Array.isArray(U) ? U[0] : U;
2841
2868
  return Array.isArray(B) ? B[0] : B;
2842
2869
  } catch (D) {
2843
- return console.error(`Erro no fetch: ${x}`, D), null;
2870
+ return console.error(`Erro no fetch: ${C}`, D), null;
2844
2871
  }
2845
2872
  }, h = await m(
2846
2873
  `/${u}/search?email=${_}&_fields=${v.join(",")}`,
2847
2874
  b
2848
2875
  );
2849
2876
  if (!(h != null && h.id))
2850
- return Me.NextResponse.json({ sub: _ }, { status: 200 });
2877
+ return He.NextResponse.json({ sub: _ }, { status: 200 });
2851
2878
  const f = (R = h.document) == null ? void 0 : R.replace(/\D/g, ""), E = await m(
2852
- `/${l}/search?userId=${h.id}&_fields=${w.join(
2879
+ `/${s}/search?userId=${h.id}&_fields=${w.join(
2853
2880
  ","
2854
2881
  )}&_sort=lastInteractionIn DESC`,
2855
2882
  { ...b, "REST-Range": "resources=0-1000" }
@@ -2860,117 +2887,40 @@ async function ti({ apiUrl: e, extraData: t, fetchOptions: r }) {
2860
2887
  ) : null;
2861
2888
  return { ...h, ...E, userCredits: q, sub: _, userId: p };
2862
2889
  }
2863
- const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2864
- __proto__: null,
2865
- getUserData: ti
2866
- }, Symbol.toStringTag, { value: "Module" })), ni = (e = "") => e.charAt(0).toUpperCase() + e.slice(1), Be = (e, t = " ") => !e || typeof e == "string" && e.length === 0 ? e : (Array.isArray(e) ? e : e.split("-")).map(ni).join(t), ii = ({ canonical: e, seo: t, slug: r }) => {
2867
- const n = Array.isArray(r) ? r.join(", ") : r;
2868
- return {
2869
- id: 0,
2870
- Title: `${Array.isArray(r) ? r.map((a) => Be(a)).join(",") : Be(r)} - ${t.title}`,
2871
- MetaTagDescription: t.description,
2872
- name: n,
2873
- hasChildren: !1,
2874
- url: e,
2875
- children: []
2876
- };
2877
- }, oi = ({ canonical: e, category: t, previousImages: r, seo: n }) => ({
2878
- category: String(t == null ? void 0 : t.id),
2879
- title: (t == null ? void 0 : t.Title) ?? n.title,
2880
- description: (t == null ? void 0 : t.MetaTagDescription) ?? n.description,
2881
- alternates: { canonical: e },
2882
- openGraph: {
2883
- type: "website",
2884
- title: (t == null ? void 0 : t.Title) ?? n.title,
2885
- description: (t == null ? void 0 : t.MetaTagDescription) ?? n.description,
2886
- images: Array.isArray(r) ? [...r] : []
2887
- }
2888
- }), ai = ({ items: e, parent: t, apiUrl: r, find: n }) => {
2889
- const i = e.find(
2890
- (s) => s.url.replace(r, "") === decodeURIComponent(t.toLowerCase())
2891
- );
2892
- return (i == null ? void 0 : i.children.find(
2893
- (s) => s.name.toLowerCase() === decodeURIComponent(String(n))
2894
- )) ?? i;
2895
- }, si = (e) => {
2896
- e instanceof Error ? (console.error(`[ERROR CATEGORY INFO]: ${e.message}`), console.error(e.stack)) : console.error("[ERROR CATEGORY INFO]: Unknown error", e);
2897
- }, li = /* @__PURE__ */ new Set([
2898
- "brand",
2899
- "category",
2900
- "department",
2901
- "subcategory",
2902
- "collection",
2903
- "cluster"
2904
- ]), ci = (e) => typeof (e == null ? void 0 : e.pageType) == "string" && li.has(e == null ? void 0 : e.pageType.toLowerCase()), ui = (e) => ({
2905
- collection: e.Coleção,
2906
- categoryId: e.categoryId,
2907
- current_collection: e["Coleção Atual"],
2908
- items: e.items
2909
- }), vt = (e, t) => e.reduce((r, n) => {
2910
- if (n.items.filter(
2911
- (s) => s.sellers.find((o) => o.commertialOffer.IsAvailable)
2912
- ).length === 0 || (r == null ? void 0 : r.find((s) => (s == null ? void 0 : s.productId) === (n == null ? void 0 : n.productId))) !== void 0)
2913
- return r;
2914
- const a = n.items[0].images.find(
2915
- (s) => t.includes(s.imageLabel)
2916
- );
2917
- return r.push({
2918
- slug: `/${n.linkText}/p`,
2919
- productId: n == null ? void 0 : n.productId,
2920
- textureImage: (a == null ? void 0 : a.imageUrl) ?? "",
2921
- textureAlt: (a == null ? void 0 : a.imageText) ?? ""
2922
- }), r;
2923
- }, []), di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2890
+ const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2924
2891
  __proto__: null,
2925
- createEmptySeoCategory: ii,
2926
- createSeoCategory: oi,
2927
- findCategory: ai,
2928
- formattedSimilars: vt,
2929
- isCollectionPageType: ci,
2930
- notFindCategoryError: si,
2931
- responseAdapter: ui
2932
- }, Symbol.toStringTag, { value: "Module" })), pi = {
2933
- parseSearchState: Lt,
2934
- convertSearchParams: $t,
2935
- filterNonRootFacets: Ft,
2936
- filterNonCategorySelected: jt
2937
- }, mi = async ({ children: e, apiUrl: t, productId: r, ClientItems: n, PDP_INFO: i, TEXTURE_IMAGE: a, TOGGLE_STYLE_MODIFIER: s }) => {
2938
- const o = await fetch(
2939
- `${t}/api/catalog_system/pub/products/crossselling/similars/${r.toString()}`
2940
- ).then((g) => g.json()), d = vt(o, a);
2941
- return /* @__PURE__ */ K("div", { className: Re.similars, children: [
2942
- /* @__PURE__ */ K("div", { className: Re["similars-info"], children: [
2943
- /* @__PURE__ */ N("span", { className: Re["sections-title"], children: i.product.color_title }),
2944
- e
2945
- ] }),
2946
- /* @__PURE__ */ N(n, { productId: r, similars: d, TOGGLE_STYLE_MODIFIER: s })
2947
- ] });
2948
- }, yi = {
2949
- checkout: Xr,
2950
- catalog: rn,
2951
- cms: Dt,
2952
- search: Cn,
2953
- masterdata: Nn,
2954
- user: ri,
2892
+ getUserData: ea
2893
+ }, Symbol.toStringTag, { value: "Module" })), ra = {
2894
+ parseSearchState: jt,
2895
+ convertSearchParams: Nt,
2896
+ filterNonRootFacets: qt,
2897
+ filterNonCategorySelected: Tt
2898
+ }, ca = {
2899
+ checkout: Qr,
2900
+ catalog: tn,
2901
+ cms: Ft,
2902
+ search: xn,
2903
+ masterdata: qn,
2904
+ user: ta,
2955
2905
  wishlist: {
2956
- ...Fn
2906
+ ...jn
2957
2907
  }
2958
- }, _i = {
2959
- catalog: di,
2960
- search: pi,
2961
- product: Mt,
2908
+ }, ua = {
2909
+ catalog: Ut,
2910
+ search: ra,
2911
+ product: Dt,
2962
2912
  cms: {
2963
- ...Ht,
2964
- ...Ut
2913
+ ...Lt,
2914
+ ...$t
2965
2915
  }
2966
- }, Ri = {
2916
+ }, da = {
2967
2917
  template: {
2968
- pdp: { PDPSimilars: mi }
2918
+ pdp: {}
2969
2919
  }
2970
2920
  };
2971
2921
  export {
2972
- yi as serverAPIs,
2973
- vi as serverCMS,
2974
- Ri as serverComponents,
2975
- _i as serverHelpers
2922
+ ca as serverAPIs,
2923
+ la as serverCMS,
2924
+ da as serverComponents,
2925
+ ua as serverHelpers
2976
2926
  };