@soma-vertical-web/multi-lib 1.0.39 → 1.0.41

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.
package/index2.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as T, jsxs as pe, Fragment as W } from "react/jsx-runtime";
2
- import { a4 as F, W as oe, a5 as _t, a6 as j, a7 as Rt, a8 as It, a9 as Pt, a as xt, J as St, N as Ct, K as kt, Q as Et, L as Be, O as Ot, P as At, M as Tt, B as jt, aa as qt, ab as Nt, ac as Ft, ad as $t, D as Lt, ae as Dt, af as Ut } from "./index-DbyPXL-x.mjs";
2
+ import { a4 as F, W as ie, a5 as _t, a6 as j, a7 as Rt, a8 as It, a9 as Pt, a as xt, J as St, N as Ct, K as kt, Q as Et, L as Be, O as Ot, P as At, M as Tt, B as jt, aa as qt, ab as Nt, ac as Ft, ad as $t, D as Lt, ae as Dt, af as Ut } from "./index-YdrSlTYb.mjs";
3
3
  import { Utils as se, helpers as ce } from "@soma-vertical-web/core-components";
4
4
  import * as l from "yup";
5
5
  import Mt from "sanitize-html";
@@ -21,12 +21,12 @@ const Bt = async ({
21
21
  COMMON_PAGE_COLUMN_GAP: n,
22
22
  identifyWhoIsFirst: a
23
23
  }) => {
24
- const o = t == null ? void 0 : t.find(
24
+ const i = t == null ? void 0 : t.find(
25
25
  (d) => {
26
26
  var w, v, y, R;
27
27
  return ((v = (w = d.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "desktop" && ((R = (y = d.config) == null ? void 0 : y.seo) == null ? void 0 : R.slug) === e;
28
28
  }
29
- ), c = o == null ? void 0 : o.config.responsive.gapCustom, i = o == null ? void 0 : o.config.responsive.gapSections, u = t == null ? void 0 : t.find(
29
+ ), c = i == null ? void 0 : i.config.responsive.gapCustom, o = i == null ? void 0 : i.config.responsive.gapSections, u = t == null ? void 0 : t.find(
30
30
  (d) => {
31
31
  var w, v, y, R;
32
32
  return ((v = (w = d.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "mobile" && ((R = (y = d.config) == null ? void 0 : y.seo) == null ? void 0 : R.slug) === e;
@@ -36,12 +36,12 @@ const Bt = async ({
36
36
  /* @__PURE__ */ T(
37
37
  se.Column,
38
38
  {
39
- gap: c && i ? i : n,
39
+ gap: c && o ? o : n,
40
40
  className: ce.classNameConcat(
41
- oe["responsive-desktop-flex"],
41
+ ie["responsive-desktop-flex"],
42
42
  "utils-column-modifier"
43
43
  ),
44
- children: /* @__PURE__ */ T(r, { data: (o == null ? void 0 : o.sections) ?? [], identifyWhoIsFirst: a })
44
+ children: /* @__PURE__ */ T(r, { data: (i == null ? void 0 : i.sections) ?? [], identifyWhoIsFirst: a })
45
45
  }
46
46
  ),
47
47
  /* @__PURE__ */ T(
@@ -49,7 +49,7 @@ const Bt = async ({
49
49
  {
50
50
  gap: g && s ? s : n,
51
51
  className: ce.classNameConcat(
52
- oe["responsive-mobile-flex"],
52
+ ie["responsive-mobile-flex"],
53
53
  "utils-column-modifier"
54
54
  ),
55
55
  children: /* @__PURE__ */ T(r, { data: (u == null ? void 0 : u.sections) ?? [], identifyWhoIsFirst: a })
@@ -63,14 +63,14 @@ const Bt = async ({
63
63
  identifyWhoIsFirst: n = !1,
64
64
  ...a
65
65
  }) => {
66
- const { data: o } = await F(
66
+ const { data: i } = await F(
67
67
  "common_page",
68
68
  a
69
69
  );
70
- return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ T(
70
+ return !i || !Array.isArray(i) || i.length === 0 ? null : /* @__PURE__ */ T(
71
71
  zt,
72
72
  {
73
- data: o,
73
+ data: i,
74
74
  slug: e,
75
75
  SectionZone: t,
76
76
  COMMON_PAGE_COLUMN_GAP: r,
@@ -93,9 +93,9 @@ const Bt = async ({
93
93
  PAYMENT_FLAGS: r,
94
94
  LEGAL_INFORMATION_TEXT: n,
95
95
  ICONS: a,
96
- SectionZone: o,
96
+ SectionZone: i,
97
97
  Footer: c,
98
- FooterSupport: i,
98
+ FooterSupport: o,
99
99
  hasFooterStamps: u,
100
100
  ...g
101
101
  }) => {
@@ -120,7 +120,7 @@ const Bt = async ({
120
120
  adornment: {
121
121
  ...(C = (h = d.supportInfo) == null ? void 0 : h.supportInfo) != null && C.content ? {
122
122
  bottom: /* @__PURE__ */ T(
123
- i,
123
+ o,
124
124
  {
125
125
  content: (_ = (A = d.supportInfo) == null ? void 0 : A.supportInfo) == null ? void 0 : _.content,
126
126
  CONSTANTS: {
@@ -131,7 +131,7 @@ const Bt = async ({
131
131
  }
132
132
  )
133
133
  } : {},
134
- ...d.sections.length ? { top: /* @__PURE__ */ T(o, { data: d.sections }) } : {}
134
+ ...d.sections.length ? { top: /* @__PURE__ */ T(i, { data: d.sections }) } : {}
135
135
  },
136
136
  LEGAL_INFORMATION_TEXT: n,
137
137
  ICONS: a
@@ -142,7 +142,7 @@ const Bt = async ({
142
142
  ClientHeaderProvider: t,
143
143
  ...r
144
144
  }) => {
145
- var o, c, i, u, g, s;
145
+ var i, c, o, u, g, s;
146
146
  const { data: n } = await F(
147
147
  "header",
148
148
  r
@@ -151,24 +151,24 @@ const Bt = async ({
151
151
  t,
152
152
  {
153
153
  headerData: {
154
- ...((o = a == null ? void 0 : a.layerConfig) == null ? void 0 : o.config) ?? {},
154
+ ...((i = a == null ? void 0 : a.layerConfig) == null ? void 0 : i.config) ?? {},
155
155
  subMenus: ((c = a == null ? void 0 : a.sections) == null ? void 0 : c.map((d) => d.data)) ?? [],
156
- categories: ((u = (i = a == null ? void 0 : a.categories) == null ? void 0 : i.categories) == null ? void 0 : u.items) ?? [],
156
+ categories: ((u = (o = a == null ? void 0 : a.categories) == null ? void 0 : o.categories) == null ? void 0 : u.items) ?? [],
157
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
162
  }, Xt = (e) => {
163
- var c, i;
164
- const t = (i = (c = e[0]) == null ? void 0 : c.items) == null ? void 0 : i.items;
163
+ var c, o;
164
+ const t = (o = (c = e[0]) == null ? void 0 : c.items) == null ? void 0 : o.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, a = t == null ? void 0 : t.helpButtonSize, o = 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, i = t.items.map(
172
172
  (u, g) => ({
173
173
  type: u.type,
174
174
  id: `${g.toString()}-${u.title.toLowerCase()}`,
@@ -186,7 +186,7 @@ const Bt = async ({
186
186
  iconLabel: r,
187
187
  label: n,
188
188
  helpButtonSize: a,
189
- content: o
189
+ content: i
190
190
  };
191
191
  }, Kt = async ({
192
192
  HelpButton: e,
@@ -200,11 +200,11 @@ const Bt = async ({
200
200
  );
201
201
  if (!a || !Array.isArray(a) || a.length === 0)
202
202
  return null;
203
- const o = Xt(a);
203
+ const i = Xt(a);
204
204
  return /* @__PURE__ */ T(
205
205
  e,
206
206
  {
207
- data: o,
207
+ data: i,
208
208
  ICONS: t,
209
209
  className: r
210
210
  }
@@ -221,10 +221,10 @@ const Bt = async ({
221
221
  );
222
222
  if (!n || !Array.isArray(n) || n.length === 0)
223
223
  return null;
224
- const [a] = n, o = (a == null ? void 0 : a.sections) || [], c = ((u = a == null ? void 0 : a.content) == null ? void 0 : u.conteúdo) || {}, i = a == null ? void 0 : a.sections;
224
+ const [a] = n, i = (a == null ? void 0 : a.sections) || [], c = ((u = a == null ? void 0 : a.content) == null ? void 0 : u.conteúdo) || {}, o = a == null ? void 0 : a.sections;
225
225
  return /* @__PURE__ */ pe(W, { children: [
226
- /* @__PURE__ */ T(t, { sections: o, content: c }),
227
- /* @__PURE__ */ T(e, { data: i })
226
+ /* @__PURE__ */ T(t, { sections: i, content: c }),
227
+ /* @__PURE__ */ T(e, { data: o })
228
228
  ] });
229
229
  }, Zt = async ({
230
230
  LPLOJAS_TEMPLATE_RETURN_BUTTON: e,
@@ -232,10 +232,10 @@ const Bt = async ({
232
232
  entity: r,
233
233
  showVendor: n,
234
234
  LPStoresClientWrapper: a,
235
- ...o
235
+ ...i
236
236
  }) => {
237
237
  var g;
238
- const { data: c } = await F("lp_lojas", o), u = (g = (Array.isArray(c) ? c : [])[0]) == null ? void 0 : g.config.config;
238
+ const { data: c } = await F("lp_lojas", i), u = (g = (Array.isArray(c) ? c : [])[0]) == null ? void 0 : g.config.config;
239
239
  return /* @__PURE__ */ T(
240
240
  a,
241
241
  {
@@ -252,11 +252,11 @@ const Bt = async ({
252
252
  ErrorTemplate: t,
253
253
  ...r
254
254
  }) => {
255
- var o;
255
+ var i;
256
256
  const { data: n } = await F(
257
257
  "notfound_page",
258
258
  r
259
- ), a = Array.isArray(n) ? (o = n[0]) == null ? void 0 : o.config.config : null;
259
+ ), a = Array.isArray(n) ? (i = n[0]) == null ? void 0 : i.config.config : null;
260
260
  return n && a ? /* @__PURE__ */ T(
261
261
  t,
262
262
  {
@@ -270,11 +270,11 @@ const Bt = async ({
270
270
  COMMON_PAGE_COLUMN_GAP: r,
271
271
  SectionZone: n,
272
272
  PDPContentProvider: a,
273
- ...o
273
+ ...i
274
274
  }) => {
275
275
  const { data: c } = await F(
276
276
  "product_page",
277
- o
277
+ i
278
278
  );
279
279
  return !c || !Array.isArray(c) || c.length === 0 ? null : /* @__PURE__ */ T(
280
280
  a,
@@ -294,31 +294,31 @@ const Bt = async ({
294
294
  slug: r,
295
295
  SectionZone: n,
296
296
  COMMON_PAGE_COLUMN_GAP_PDC: a,
297
- PLPContentProvider: o,
297
+ PLPContentProvider: i,
298
298
  ...c
299
299
  }) => {
300
- const { data: i } = await F(
300
+ const { data: o } = await F(
301
301
  "categories_page",
302
302
  c
303
303
  );
304
- if (!i || !Array.isArray(i))
304
+ if (!o || !Array.isArray(o))
305
305
  return null;
306
- const u = i.find(
306
+ const u = o.find(
307
307
  (v) => {
308
308
  var y, R, p;
309
309
  return ((y = v.config) == null ? void 0 : y.seo.slug) === r && ((p = (R = v.config) == null ? void 0 : R.responsive) == null ? void 0 : p.deviceType) === "desktop";
310
310
  }
311
- ), g = i.find(
311
+ ), g = o.find(
312
312
  (v) => {
313
313
  var y, R, p;
314
314
  return ((y = v.config) == null ? void 0 : y.seo.slug) === r && ((p = (R = v.config) == null ? void 0 : R.responsive) == null ? void 0 : p.deviceType) === "mobile";
315
315
  }
316
- ), s = i.find(
316
+ ), s = o.find(
317
317
  (v) => {
318
318
  var y, R, p;
319
319
  return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (R = v.config) == null ? void 0 : R.responsive) == null ? void 0 : p.deviceType) === "desktop";
320
320
  }
321
- ), d = i.find(
321
+ ), d = o.find(
322
322
  (v) => {
323
323
  var y, R, p;
324
324
  return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (R = v.config) == null ? void 0 : R.responsive) == null ? void 0 : p.deviceType) === "mobile";
@@ -329,14 +329,14 @@ const Bt = async ({
329
329
  se.Column,
330
330
  {
331
331
  className: ce.classNameConcat(
332
- oe["responsive-desktop-flex"],
332
+ ie["responsive-desktop-flex"],
333
333
  [tr["column-modifier"], ...w]
334
334
  ),
335
335
  style: {
336
336
  minHeight: "100vh"
337
337
  },
338
338
  children: /* @__PURE__ */ T(
339
- o,
339
+ i,
340
340
  {
341
341
  data: u ?? s,
342
342
  device: "desktop",
@@ -347,8 +347,8 @@ const Bt = async ({
347
347
  )
348
348
  }
349
349
  ),
350
- /* @__PURE__ */ T(se.Column, { className: ce.classNameConcat(oe["responsive-mobile-flex"], e), children: /* @__PURE__ */ T(
351
- o,
350
+ /* @__PURE__ */ T(se.Column, { className: ce.classNameConcat(ie["responsive-mobile-flex"], e), children: /* @__PURE__ */ T(
351
+ i,
352
352
  {
353
353
  data: g ?? d,
354
354
  device: "mobile",
@@ -359,7 +359,7 @@ const Bt = async ({
359
359
  ) })
360
360
  ] });
361
361
  }, nr = async ({ slug: e, ...t }) => {
362
- var c, i, u;
362
+ var c, o, u;
363
363
  const { data: r } = await F(
364
364
  "redirect_to_search",
365
365
  t
@@ -370,26 +370,26 @@ const Bt = async ({
370
370
  query: null,
371
371
  redirect: !1
372
372
  };
373
- const n = ((u = (i = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : u.paths) ?? [];
373
+ const n = ((u = (o = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : o.redirectToSearch) == null ? void 0 : u.paths) ?? [];
374
374
  if (!!!n.length)
375
375
  return {
376
376
  slug: e,
377
377
  query: null,
378
378
  redirect: !1
379
379
  };
380
- const o = n.find(
380
+ const i = n.find(
381
381
  (g) => {
382
382
  var s, d;
383
383
  return ((s = g.path) == null ? void 0 : s.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((d = g.path) == null ? void 0 : d.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
384
384
  }
385
385
  );
386
- return o ? {
386
+ return i ? {
387
387
  slug: e,
388
- query: o == null ? void 0 : o.searchQuery,
388
+ query: i == null ? void 0 : i.searchQuery,
389
389
  redirect: !0,
390
- collectionId: o == null ? void 0 : o.collectionId,
391
- filters: o == null ? void 0 : o.filters,
392
- sort: o == null ? void 0 : o.sort
390
+ collectionId: i == null ? void 0 : i.collectionId,
391
+ filters: i == null ? void 0 : i.filters,
392
+ sort: i == null ? void 0 : i.sort
393
393
  } : {
394
394
  slug: e,
395
395
  query: null,
@@ -399,54 +399,54 @@ const Bt = async ({
399
399
  sort: null
400
400
  };
401
401
  }, ar = async ({ slug: e, ...t }) => {
402
- var c, i, u;
402
+ var c, o, u;
403
403
  const { data: r } = await F(
404
404
  "redirect_to_search",
405
405
  t
406
406
  );
407
407
  if (!r || !Array.isArray(r))
408
408
  return null;
409
- const n = ((u = (i = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : u.paths) ?? [];
409
+ const n = ((u = (o = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : o.redirectToSearch) == null ? void 0 : u.paths) ?? [];
410
410
  if (!!!n.length)
411
411
  return null;
412
- const o = n.find(
412
+ const i = n.find(
413
413
  (g) => {
414
414
  var s, d;
415
415
  return ((s = g.path) == null ? void 0 : s.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((d = g.path) == null ? void 0 : d.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
416
416
  }
417
417
  );
418
- return o ? {
418
+ return i ? {
419
419
  slug: e,
420
- title: o.pageTitle,
421
- description: o.pageDescription
420
+ title: i.pageTitle,
421
+ description: i.pageDescription
422
422
  } : null;
423
- }, ir = async ({
423
+ }, or = async ({
424
424
  slug: e,
425
425
  Politicas: t,
426
426
  SectionZone: r,
427
427
  oneTrust: n,
428
428
  ...a
429
429
  }) => {
430
- const { data: o } = await F(
430
+ const { data: i } = await F(
431
431
  "policy_page",
432
432
  a
433
433
  ), { data: c } = await F(
434
434
  "policy_tab",
435
435
  a
436
- ), i = Array.isArray(o) ? o : null, u = Array.isArray(c) ? c : null, g = i ? i[0].sections : null;
437
- return !i || !u ? null : /* @__PURE__ */ pe(W, { children: [
436
+ ), o = Array.isArray(i) ? i : null, u = Array.isArray(c) ? c : null, g = o ? o[0].sections : null;
437
+ return !o || !u ? null : /* @__PURE__ */ pe(W, { children: [
438
438
  /* @__PURE__ */ T(
439
439
  t,
440
440
  {
441
441
  slug: e,
442
- pageData: i[0],
442
+ pageData: o[0],
443
443
  tabsData: u,
444
444
  oneTrust: n
445
445
  }
446
446
  ),
447
447
  g && /* @__PURE__ */ T(r, { data: g })
448
448
  ] });
449
- }, or = async ({
449
+ }, ir = async ({
450
450
  children: e,
451
451
  SectionZone: t,
452
452
  className: r,
@@ -503,11 +503,11 @@ const Bt = async ({
503
503
  PDPContent: er,
504
504
  getRedirectData: nr,
505
505
  getPLPSynteticMetaData: ar,
506
- SearchPageContent: or,
506
+ SearchPageContent: ir,
507
507
  HelpButtonContent: Kt,
508
508
  LPCadastroContent: Jt,
509
509
  LPLojasContent: Zt,
510
- PolicyPageContent: ir,
510
+ PolicyPageContent: or,
511
511
  NotFoundContent: Yt,
512
512
  WishlistContent: cr
513
513
  }, Ia = { Components: lr }, ur = l.object({
@@ -545,7 +545,7 @@ async function ze({
545
545
  return;
546
546
  }
547
547
  await pr.validate(t);
548
- const { orderFormId: n, sellerCode: a, sellerName: o } = t, c = a ? `${a.trim()} - ${o}` : null;
548
+ const { orderFormId: n, sellerCode: a, sellerName: i } = t, c = a ? `${a.trim()} - ${i}` : null;
549
549
  return j(
550
550
  `${e}/api/checkout/pub/orderForm/${n}/attachments/openTextField`,
551
551
  {
@@ -573,9 +573,9 @@ async function Ge({
573
573
  return;
574
574
  }
575
575
  await mr.validate(t);
576
- const { orderFormId: a, sellerCode: o, marketingData: c } = t, i = o ? {
577
- utmCampaign: o ? o.toUpperCase() : "",
578
- utmiCampaign: o ? `${r.VENDOR_CODE}` : "semcodigo"
576
+ const { orderFormId: a, sellerCode: i, marketingData: c } = t, o = i ? {
577
+ utmCampaign: i ? i.toUpperCase() : "",
578
+ utmiCampaign: i ? `${r.VENDOR_CODE}` : "semcodigo"
579
579
  } : {};
580
580
  return j(
581
581
  `${e}/api/checkout/pub/orderForm/${a}/attachments/marketingData`,
@@ -583,7 +583,7 @@ async function Ge({
583
583
  method: "POST",
584
584
  body: {
585
585
  ...c,
586
- ...i
586
+ ...o
587
587
  },
588
588
  ...n
589
589
  }
@@ -650,9 +650,9 @@ async function vr({
650
650
  return;
651
651
  }
652
652
  await wr.validate(t);
653
- const { appId: n = "faststore", orderFormId: a, key: o } = t;
653
+ const { appId: n = "faststore", orderFormId: a, key: i } = t;
654
654
  return j(
655
- `${e}/api/checkout/pub/orderForm/${a}/customData/${n}/${o}`,
655
+ `${e}/api/checkout/pub/orderForm/${a}/customData/${n}/${i}`,
656
656
  {
657
657
  method: "PUT",
658
658
  ...r
@@ -788,10 +788,10 @@ async function jr({ apiUrl: e, body: t, fetchOptions: r }) {
788
788
  return;
789
789
  }
790
790
  await Tr.validate(t);
791
- const { itemIndex: n, orderFormId: a, id: o, remove: c } = t, i = c ? `/${o}/remove` : "", u = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${i}`;
791
+ const { itemIndex: n, orderFormId: a, id: i, remove: c } = t, o = c ? `/${i}/remove` : "", u = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${o}`;
792
792
  return j(u, {
793
793
  method: "POST",
794
- body: { id: o },
794
+ body: { id: i },
795
795
  ...r
796
796
  });
797
797
  }
@@ -812,8 +812,8 @@ async function Nr({
812
812
  await qr.validate(t);
813
813
  const a = new URLSearchParams({
814
814
  refreshOutdatedData: "true"
815
- }), o = t.orderFormId && ((c = n.orderFormPurchaseId) == null ? void 0 : c.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(a)}` : `${e}/api/checkout/pub/orderForm`;
816
- return j(o, { method: "GET", ...r });
815
+ }), i = t.orderFormId && ((c = n.orderFormPurchaseId) == null ? void 0 : c.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(a)}` : `${e}/api/checkout/pub/orderForm`;
816
+ return j(i, { method: "GET", ...r });
817
817
  }
818
818
  const Fr = l.object({
819
819
  orderFormId: l.string().nullable(),
@@ -885,10 +885,10 @@ async function Mr({
885
885
  return;
886
886
  }
887
887
  await Ur.validate(t);
888
- const { country: n, orderFormId: a, postalCode: o } = t, c = o ? {
888
+ const { country: n, orderFormId: a, postalCode: i } = t, c = i ? {
889
889
  address: {
890
890
  addressType: "residential",
891
- postalCode: o,
891
+ postalCode: i,
892
892
  country: n
893
893
  }
894
894
  } : {
@@ -938,13 +938,13 @@ async function Br({ apiUrl: e, body: t, fetchOptions: r }) {
938
938
  return;
939
939
  }
940
940
  await Hr.validate(t);
941
- const { orderFormId: n, options: a, selectedAddresses: o } = t;
941
+ const { orderFormId: n, options: a, selectedAddresses: i } = t;
942
942
  return j(
943
943
  `${e}/api/checkout/pub/orderForm/${n}/attachments/shippingData`,
944
944
  {
945
945
  method: "POST",
946
946
  body: {
947
- selectedAddresses: o,
947
+ selectedAddresses: i,
948
948
  clearAddressIfPostalCodeNotFound: !1,
949
949
  logisticsInfo: a
950
950
  },
@@ -966,8 +966,8 @@ async function Gr({ apiUrl: e, body: t, fetchOptions: r }) {
966
966
  return;
967
967
  }
968
968
  await zr.validate(t);
969
- const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t, c = new URLSearchParams({ country: String(n) });
970
- return o ? c.append("postalCode", o) : c.append(
969
+ const { country: n = "", geoCoordinates: a, postalCode: i = "" } = t, c = new URLSearchParams({ country: String(n) });
970
+ return i ? c.append("postalCode", i) : c.append(
971
971
  "geoCoordinates",
972
972
  `${a == null ? void 0 : a.longitude};${a == null ? void 0 : a.latitude}`
973
973
  ), await j(
@@ -1126,7 +1126,7 @@ const sn = (e, t) => Mt(e, t), cn = (e) => ({
1126
1126
  }), Ve = (e, t) => ({
1127
1127
  ...e,
1128
1128
  isVariantOf: cn(t)
1129
- }), un = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ie = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, dn = (e) => e.Price ?? 0, We = (e, t) => ie(e) && !ie(t) ? -1 : !ie(e) && ie(t) ? 1 : Le(e) - Le(t), pn = (e, t) => {
1129
+ }), un = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", oe = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, dn = (e) => e.Price ?? 0, We = (e, t) => oe(e) && !oe(t) ? -1 : !oe(e) && oe(t) ? 1 : Le(e) - Le(t), pn = (e, t) => {
1130
1130
  let r = 0;
1131
1131
  for (let n = 1; n < e.length; n++)
1132
1132
  t(e[r], e[n]) > 0 && (r = n);
@@ -1165,7 +1165,7 @@ const sn = (e, t) => Mt(e, t), cn = (e) => ({
1165
1165
  visible: e.visible
1166
1166
  }
1167
1167
  }), ue = (e, t, r) => {
1168
- const n = e.flatMap(({ name: c, values: i }) => i ? i.map((u) => ({
1168
+ const n = e.flatMap(({ name: c, values: o }) => o ? o.map((u) => ({
1169
1169
  name: c,
1170
1170
  value: u,
1171
1171
  valueReference: le.specification
@@ -1173,11 +1173,11 @@ const sn = (e, t) => Mt(e, t), cn = (e) => ({
1173
1173
  name: c,
1174
1174
  value: "",
1175
1175
  valueReference: le.specification
1176
- }), a = Array.isArray(r) ? r.map(mn) : [], o = t ? t.map(fn) : [];
1176
+ }), a = Array.isArray(r) ? r.map(mn) : [], i = t ? t.map(fn) : [];
1177
1177
  return [
1178
1178
  ...n,
1179
1179
  ...a,
1180
- ...o
1180
+ ...i
1181
1181
  ];
1182
1182
  }, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", hn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", gn = (e) => {
1183
1183
  let t = e.slice(0);
@@ -1206,22 +1206,22 @@ const sn = (e, t) => Mt(e, t), cn = (e) => ({
1206
1206
  listPrice: 0,
1207
1207
  sellerDefault: !1
1208
1208
  }, a = e.map(
1209
- (o) => ln({
1210
- offer: o.commertialOffer,
1211
- seller: o,
1209
+ (i) => ln({
1210
+ offer: i.commertialOffer,
1211
+ seller: i,
1212
1212
  product: t
1213
1213
  })
1214
- ).sort(We).map((o) => (o.seller.sellerId === "1" && o.AvailableQuantity > 0 && (r.price = o.Price, r.listPrice = o.ListPrice, r.sellerDefault = !0), {
1215
- availability: o.AvailableQuantity > 0,
1216
- listPrice: o.ListPrice,
1217
- price: dn(o),
1218
- priceValidUntil: o.PriceValidUntil,
1214
+ ).sort(We).map((i) => (i.seller.sellerId === "1" && i.AvailableQuantity > 0 && (r.price = i.Price, r.listPrice = i.ListPrice, r.sellerDefault = !0), {
1215
+ availability: i.AvailableQuantity > 0,
1216
+ listPrice: i.ListPrice,
1217
+ price: dn(i),
1218
+ priceValidUntil: i.PriceValidUntil,
1219
1219
  priceCurrency: "BRL",
1220
- installments: o.Installments,
1221
- lowPrice: o.spotPrice,
1222
- quantity: o.AvailableQuantity,
1220
+ installments: i.Installments,
1221
+ lowPrice: i.spotPrice,
1222
+ quantity: i.AvailableQuantity,
1223
1223
  seller: {
1224
- identifier: o.seller.sellerId
1224
+ identifier: i.seller.sellerId
1225
1225
  }
1226
1226
  }));
1227
1227
  return {
@@ -1230,16 +1230,16 @@ const sn = (e, t) => Mt(e, t), cn = (e) => ({
1230
1230
  offers: a
1231
1231
  };
1232
1232
  }, et = (e) => {
1233
- const { attributes: t, itemId: r, name: n, sellers: a, variations: o } = e;
1233
+ const { attributes: t, itemId: r, name: n, sellers: a, variations: i } = e;
1234
1234
  return {
1235
- additionalProperty: ue(o, t, []),
1235
+ additionalProperty: ue(i, t, []),
1236
1236
  name: n,
1237
1237
  offers: {
1238
- offers: a == null ? void 0 : a.map(({ sellerId: c, commertialOffer: i }) => ({
1239
- availability: un(i.AvailableQuantity > 0),
1240
- listPrice: i.ListPrice,
1241
- price: i.Price,
1242
- quantity: i.AvailableQuantity,
1238
+ offers: a == null ? void 0 : a.map(({ sellerId: c, commertialOffer: o }) => ({
1239
+ availability: un(o.AvailableQuantity > 0),
1240
+ listPrice: o.ListPrice,
1241
+ price: o.Price,
1242
+ quantity: o.AvailableQuantity,
1243
1243
  seller: {
1244
1244
  identifier: c
1245
1245
  }
@@ -1255,9 +1255,9 @@ const sn = (e, t) => Mt(e, t), cn = (e) => ({
1255
1255
  referenceId: r,
1256
1256
  isVariantOf: n,
1257
1257
  images: a,
1258
- itemId: o,
1258
+ itemId: i,
1259
1259
  name: c,
1260
- sellers: i,
1260
+ sellers: o,
1261
1261
  videos: u,
1262
1262
  variations: g
1263
1263
  } = e, {
@@ -1272,9 +1272,9 @@ const sn = (e, t) => Mt(e, t), cn = (e) => ({
1272
1272
  properties: m,
1273
1273
  productId: f,
1274
1274
  productReference: h
1275
- } = n, C = d.slice().reverse(), A = Ye(i, e.isVariantOf), _ = Ze(A.offers[0].installments);
1275
+ } = n, C = d.slice().reverse(), A = Ye(o, e.isVariantOf), _ = Ze(A.offers[0].installments);
1276
1276
  return {
1277
- sku: o,
1277
+ sku: i,
1278
1278
  gtin: ((I = r == null ? void 0 : r[0]) == null ? void 0 : I.Value) ?? h ?? "",
1279
1279
  name: b ?? c,
1280
1280
  description: v,
@@ -1330,9 +1330,9 @@ const sn = (e, t) => Mt(e, t), cn = (e) => ({
1330
1330
  referenceId: r,
1331
1331
  isVariantOf: n,
1332
1332
  images: a,
1333
- itemId: o,
1333
+ itemId: i,
1334
1334
  name: c,
1335
- sellers: i,
1335
+ sellers: o,
1336
1336
  Videos: u,
1337
1337
  variations: g
1338
1338
  } = e, {
@@ -1346,9 +1346,9 @@ const sn = (e, t) => Mt(e, t), cn = (e) => ({
1346
1346
  Coleção: b,
1347
1347
  "ID Coleção": m,
1348
1348
  productId: f
1349
- } = n, h = d.slice().reverse(), C = Ye(i, e.isVariantOf), A = Ze(C.offers[0].installments);
1349
+ } = n, h = d.slice().reverse(), C = Ye(o, e.isVariantOf), A = Ze(C.offers[0].installments);
1350
1350
  return {
1351
- sku: o,
1351
+ sku: i,
1352
1352
  gtin: ((_ = r[0]) == null ? void 0 : _.Value) ?? "",
1353
1353
  name: p ?? c,
1354
1354
  description: v,
@@ -1428,10 +1428,10 @@ async function _n({
1428
1428
  return;
1429
1429
  }
1430
1430
  await yn.validate(t);
1431
- const n = new URLSearchParams({}), a = t.map(({ key: c, value: i }) => `${c}/${i}`).join("/");
1431
+ const n = new URLSearchParams({}), a = t.map(({ key: c, value: o }) => `${c}/${o}`).join("/");
1432
1432
  Rt(t, n);
1433
- const o = `${e}/api/catalog_system/pub/products/crossselling/${a}`;
1434
- return j(o, {
1433
+ const i = `${e}/api/catalog_system/pub/products/crossselling/${a}`;
1434
+ return j(i, {
1435
1435
  cache: "no-store",
1436
1436
  ...r
1437
1437
  }).then((c) => c.map((u) => {
@@ -1453,18 +1453,18 @@ const tt = ({
1453
1453
  }
1454
1454
  const {
1455
1455
  query: a = "",
1456
- page: o = 1,
1456
+ page: i = 1,
1457
1457
  count: c,
1458
- sort: i = "",
1458
+ sort: o = "",
1459
1459
  facets: u = [],
1460
1460
  type: g,
1461
1461
  hideUnavailableItems: s = !0,
1462
1462
  locale: d = ""
1463
1463
  } = t, w = new URLSearchParams({
1464
- page: o.toString(),
1464
+ page: i.toString(),
1465
1465
  count: (c == null ? void 0 : c.toString()) ?? (n == null ? void 0 : n.ITEMS_PER_PAGE) ?? 24,
1466
1466
  query: a,
1467
- sort: i,
1467
+ sort: o,
1468
1468
  locale: d
1469
1469
  });
1470
1470
  s !== void 0 && w.append("hideUnavailableItems", s.toString());
@@ -1485,6 +1485,7 @@ async function Rn({
1485
1485
  extraData: t,
1486
1486
  ...r
1487
1487
  }) {
1488
+ var o;
1488
1489
  if (!e) {
1489
1490
  console.error("[ERROR FETCHING] Body is required");
1490
1491
  return;
@@ -1496,24 +1497,26 @@ async function Rn({
1496
1497
  },
1497
1498
  extraData: t,
1498
1499
  ...r
1499
- }), a = (n == null ? void 0 : n.products.map((i) => {
1500
- const u = Qe(i.items);
1501
- return u && Ve(u, i);
1502
- }).filter((i) => !!i)) ?? [], { pagination: o, recordsFiltered: c } = n;
1500
+ }), a = (n == null ? void 0 : n.products.map((u) => {
1501
+ const g = Qe(u.items);
1502
+ return g && Ve(g, u);
1503
+ }).filter((u) => !!u)) ?? [], { pagination: i, recordsFiltered: c } = n;
1503
1504
  return {
1504
1505
  data: {
1505
1506
  pagination: {
1506
- nextPage: o.after.length > 0,
1507
- previousPage: o.before.length > 0,
1507
+ nextPage: i.after.length > 0,
1508
+ previousPage: i.before.length > 0,
1508
1509
  startCursor: "0",
1509
1510
  endCursor: c.toString(),
1510
1511
  count: c,
1511
- total: o.count
1512
+ total: i.count
1512
1513
  },
1513
- products: a.map((i, u) => ({
1514
- node: wn(i),
1515
- cursor: u.toString()
1516
- }))
1514
+ products: a.map((u, g) => ({
1515
+ node: wn(u),
1516
+ cursor: g.toString()
1517
+ })),
1518
+ misspelled: (o = n.correction) == null ? void 0 : o.misspelled,
1519
+ operator: n.operator
1517
1520
  }
1518
1521
  };
1519
1522
  }
@@ -1547,9 +1550,9 @@ async function xn({ apiUrl: e, body: t, fetchOptions: r }) {
1547
1550
  return;
1548
1551
  }
1549
1552
  await Pn.validate(t);
1550
- const { query: n = "", locale: a = "default_locale" } = t, o = new URLSearchParams({ query: n, locale: a });
1553
+ const { query: n = "", locale: a = "default_locale" } = t, i = new URLSearchParams({ query: n, locale: a });
1551
1554
  return j(
1552
- `${e}/api/io/_v/api/intelligent-search/search_suggestions?${o.toString()}`,
1555
+ `${e}/api/io/_v/api/intelligent-search/search_suggestions?${i.toString()}`,
1553
1556
  {
1554
1557
  ...r
1555
1558
  }
@@ -1580,8 +1583,8 @@ async function En({
1580
1583
  return;
1581
1584
  }
1582
1585
  await kn.validate(t);
1583
- const { masterDataEntity: n, payload: a } = t, o = `${e}/api/dataentities/${n}/documents`;
1584
- return j(o, {
1586
+ const { masterDataEntity: n, payload: a } = t, i = `${e}/api/dataentities/${n}/documents`;
1587
+ return j(i, {
1585
1588
  method: "POST",
1586
1589
  body: {
1587
1590
  payload: a
@@ -1614,11 +1617,11 @@ async function rt({
1614
1617
  }
1615
1618
  const n = new URLSearchParams();
1616
1619
  await An.validate(t);
1617
- const { masterDataEntity: a, searchFields: o, headers: c } = t;
1618
- o && Object.entries(o).forEach(([g, s]) => {
1620
+ const { masterDataEntity: a, searchFields: i, headers: c } = t;
1621
+ i && Object.entries(i).forEach(([g, s]) => {
1619
1622
  n.append(g, String(s));
1620
- }), "_fields" in o || n == null || n.append("_fields", "_all");
1621
- let i = [], u = null;
1623
+ }), "_fields" in i || n == null || n.append("_fields", "_all");
1624
+ let o = [], u = null;
1622
1625
  do {
1623
1626
  u && n.set("_scroll", u);
1624
1627
  const g = await fetch(
@@ -1637,9 +1640,9 @@ async function rt({
1637
1640
  `[MasterData] ${g.status} - ${g.statusText}`
1638
1641
  );
1639
1642
  const s = await g.json();
1640
- i.push(...s), u = g.headers.get("x-vtex-md-scroll");
1643
+ o.push(...s), u = g.headers.get("x-vtex-md-scroll");
1641
1644
  } while (u);
1642
- return i;
1645
+ return o;
1643
1646
  }
1644
1647
  const Tn = l.object({
1645
1648
  dataEntityName: l.string().required(),
@@ -1656,10 +1659,10 @@ async function jn({
1656
1659
  return;
1657
1660
  }
1658
1661
  await Tn.validate(t);
1659
- const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t, c = `${e}/api/dataentities/${n}/documents/${a}`;
1662
+ const { dataEntityName: n, id: a, fieldsToBeUpdated: i } = t, c = `${e}/api/dataentities/${n}/documents/${a}`;
1660
1663
  return j(c, {
1661
1664
  body: {
1662
- fieldsToBeUpdated: o
1665
+ fieldsToBeUpdated: i
1663
1666
  },
1664
1667
  method: "PATCH",
1665
1668
  ...r
@@ -1675,18 +1678,18 @@ async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1675
1678
  const { productIds: a } = e;
1676
1679
  if (!a)
1677
1680
  return console.error("[ERROR FETCHING] productIds is required"), [];
1678
- const { NAME_SPLIT_SYMBOL: o } = r;
1679
- if (!o)
1681
+ const { NAME_SPLIT_SYMBOL: i } = r;
1682
+ if (!i)
1680
1683
  return console.error("[ERROR FETCHING] NAME_SPLIT_SYMBOL is required"), [];
1681
- const c = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), i = await j(
1684
+ const c = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), o = await j(
1682
1685
  `${t}/api/catalog_system/pub/products/search?fq=${c}`,
1683
1686
  {
1684
1687
  ...n
1685
1688
  }
1686
1689
  ), u = (s) => Object.keys(s).map((d) => ({ id: d, name: s[d] }));
1687
- return i.map((s, d) => {
1690
+ return o.map((s, d) => {
1688
1691
  var f;
1689
- const { installments: w, price: v, listPrice: y, sizes: R, allSizesAvailable: p } = xt({ items: s.items, NAME_SPLIT_SYMBOL: o }), b = p ? !0 : R.some((h) => h.available), m = s.items[0].sellers[0].commertialOffer;
1692
+ const { installments: w, price: v, listPrice: y, sizes: R, allSizesAvailable: p } = xt({ items: s.items, NAME_SPLIT_SYMBOL: i }), b = p ? !0 : R.some((h) => h.available), m = s.items[0].sellers[0].commertialOffer;
1690
1693
  return {
1691
1694
  node: {
1692
1695
  sku: s.items[0].itemId,
@@ -1790,7 +1793,7 @@ const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1790
1793
  __proto__: null,
1791
1794
  getWishlistProducts: Nn
1792
1795
  }, Symbol.toStringTag, { value: "Module" }));
1793
- var _e = { exports: {} }, nt = {}, Ie = {}, at = {}, it = {};
1796
+ var _e = { exports: {} }, nt = {}, Ie = {}, at = {}, ot = {};
1794
1797
  (function(e) {
1795
1798
  Object.defineProperty(e, "__esModule", {
1796
1799
  value: !0
@@ -1804,26 +1807,26 @@ var _e = { exports: {} }, nt = {}, Ie = {}, at = {}, it = {};
1804
1807
  function r(n, a) {
1805
1808
  if (!n.startsWith("/") || !a)
1806
1809
  return n;
1807
- const { pathname: o, query: c, hash: i } = (0, t.parsePath)(n);
1808
- return "" + o + a + c + i;
1810
+ const { pathname: i, query: c, hash: o } = (0, t.parsePath)(n);
1811
+ return "" + i + a + c + o;
1809
1812
  }
1810
- })(it);
1813
+ })(ot);
1811
1814
  (function(e) {
1812
1815
  Object.defineProperty(e, "__esModule", {
1813
1816
  value: !0
1814
1817
  }), Object.defineProperty(e, "formatNextPathnameInfo", {
1815
1818
  enumerable: !0,
1816
1819
  get: function() {
1817
- return o;
1820
+ return i;
1818
1821
  }
1819
1822
  });
1820
- const t = kt, r = Et, n = it, a = Ct;
1821
- function o(c) {
1822
- let i = (0, a.addLocale)(c.pathname, c.locale, c.buildId ? void 0 : c.defaultLocale, c.ignorePrefix);
1823
- return (c.buildId || !c.trailingSlash) && (i = (0, t.removeTrailingSlash)(i)), c.buildId && (i = (0, n.addPathSuffix)((0, r.addPathPrefix)(i, "/_next/data/" + c.buildId), c.pathname === "/" ? "index.json" : ".json")), i = (0, r.addPathPrefix)(i, c.basePath), !c.buildId && c.trailingSlash ? i.endsWith("/") ? i : (0, n.addPathSuffix)(i, "/") : (0, t.removeTrailingSlash)(i);
1823
+ const t = kt, r = Et, n = ot, a = Ct;
1824
+ function i(c) {
1825
+ let o = (0, a.addLocale)(c.pathname, c.locale, c.buildId ? void 0 : c.defaultLocale, c.ignorePrefix);
1826
+ return (c.buildId || !c.trailingSlash) && (o = (0, t.removeTrailingSlash)(o)), c.buildId && (o = (0, n.addPathSuffix)((0, r.addPathPrefix)(o, "/_next/data/" + c.buildId), c.pathname === "/" ? "index.json" : ".json")), o = (0, r.addPathPrefix)(o, c.basePath), !c.buildId && c.trailingSlash ? o.endsWith("/") ? o : (0, n.addPathSuffix)(o, "/") : (0, t.removeTrailingSlash)(o);
1824
1827
  }
1825
1828
  })(at);
1826
- var ot = {};
1829
+ var it = {};
1827
1830
  (function(e) {
1828
1831
  Object.defineProperty(e, "__esModule", {
1829
1832
  value: !0
@@ -1842,7 +1845,7 @@ var ot = {};
1842
1845
  else return;
1843
1846
  return a.toLowerCase();
1844
1847
  }
1845
- })(ot);
1848
+ })(it);
1846
1849
  var st = {}, ct = {};
1847
1850
  (function(e) {
1848
1851
  Object.defineProperty(e, "__esModule", {
@@ -1857,8 +1860,8 @@ var st = {}, ct = {};
1857
1860
  function r(n, a) {
1858
1861
  if (!(0, t.pathHasPrefix)(n, a))
1859
1862
  return n;
1860
- const o = n.slice(a.length);
1861
- return o.startsWith("/") ? o : "/" + o;
1863
+ const i = n.slice(a.length);
1864
+ return i.startsWith("/") ? i : "/" + i;
1862
1865
  }
1863
1866
  })(ct);
1864
1867
  (function(e) {
@@ -1871,11 +1874,11 @@ var st = {}, ct = {};
1871
1874
  }
1872
1875
  });
1873
1876
  const t = Ot, r = ct, n = Be;
1874
- function a(o, c) {
1875
- var i;
1876
- const { basePath: u, i18n: g, trailingSlash: s } = (i = c.nextConfig) != null ? i : {}, d = {
1877
- pathname: o,
1878
- trailingSlash: o !== "/" ? o.endsWith("/") : s
1877
+ function a(i, c) {
1878
+ var o;
1879
+ const { basePath: u, i18n: g, trailingSlash: s } = (o = c.nextConfig) != null ? o : {}, d = {
1880
+ pathname: i,
1881
+ trailingSlash: i !== "/" ? i.endsWith("/") : s
1879
1882
  };
1880
1883
  u && (0, n.pathHasPrefix)(d.pathname, u) && (d.pathname = (0, r.removePathPrefix)(d.pathname, u), d.basePath = u);
1881
1884
  let w = d.pathname;
@@ -1901,15 +1904,15 @@ var st = {}, ct = {};
1901
1904
  return u;
1902
1905
  }
1903
1906
  });
1904
- 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)/;
1907
+ const t = At, r = at, n = it, a = st, i = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
1905
1908
  function c(g, s) {
1906
- return new URL(String(g).replace(o, "localhost"), s && String(s).replace(o, "localhost"));
1909
+ return new URL(String(g).replace(i, "localhost"), s && String(s).replace(i, "localhost"));
1907
1910
  }
1908
- const i = Symbol("NextURLInternal");
1911
+ const o = Symbol("NextURLInternal");
1909
1912
  class u {
1910
1913
  constructor(s, d, w) {
1911
1914
  let v, y;
1912
- typeof d == "object" && "pathname" in d || typeof d == "string" ? (v = d, y = w || {}) : y = w || d || {}, this[i] = {
1915
+ typeof d == "object" && "pathname" in d || typeof d == "string" ? (v = d, y = w || {}) : y = w || d || {}, this[o] = {
1913
1916
  url: c(s, v ?? y.base),
1914
1917
  options: y,
1915
1918
  basePath: ""
@@ -1917,121 +1920,121 @@ var st = {}, ct = {};
1917
1920
  }
1918
1921
  analyze() {
1919
1922
  var s, d, w, v, y;
1920
- const R = (0, a.getNextPathnameInfo)(this[i].url.pathname, {
1921
- nextConfig: this[i].options.nextConfig,
1923
+ const R = (0, a.getNextPathnameInfo)(this[o].url.pathname, {
1924
+ nextConfig: this[o].options.nextConfig,
1922
1925
  parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
1923
- i18nProvider: this[i].options.i18nProvider
1924
- }), p = (0, n.getHostname)(this[i].url, this[i].options.headers);
1925
- this[i].domainLocale = this[i].options.i18nProvider ? this[i].options.i18nProvider.detectDomainLocale(p) : (0, t.detectDomainLocale)((d = this[i].options.nextConfig) == null || (s = d.i18n) == null ? void 0 : s.domains, p);
1926
- 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);
1927
- this[i].url.pathname = R.pathname, this[i].defaultLocale = b, this[i].basePath = R.basePath ?? "", this[i].buildId = R.buildId, this[i].locale = R.locale ?? b, this[i].trailingSlash = R.trailingSlash;
1926
+ i18nProvider: this[o].options.i18nProvider
1927
+ }), p = (0, n.getHostname)(this[o].url, this[o].options.headers);
1928
+ this[o].domainLocale = this[o].options.i18nProvider ? this[o].options.i18nProvider.detectDomainLocale(p) : (0, t.detectDomainLocale)((d = this[o].options.nextConfig) == null || (s = d.i18n) == null ? void 0 : s.domains, p);
1929
+ 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);
1930
+ this[o].url.pathname = R.pathname, this[o].defaultLocale = b, this[o].basePath = R.basePath ?? "", this[o].buildId = R.buildId, this[o].locale = R.locale ?? b, this[o].trailingSlash = R.trailingSlash;
1928
1931
  }
1929
1932
  formatPathname() {
1930
1933
  return (0, r.formatNextPathnameInfo)({
1931
- basePath: this[i].basePath,
1932
- buildId: this[i].buildId,
1933
- defaultLocale: this[i].options.forceLocale ? void 0 : this[i].defaultLocale,
1934
- locale: this[i].locale,
1935
- pathname: this[i].url.pathname,
1936
- trailingSlash: this[i].trailingSlash
1934
+ basePath: this[o].basePath,
1935
+ buildId: this[o].buildId,
1936
+ defaultLocale: this[o].options.forceLocale ? void 0 : this[o].defaultLocale,
1937
+ locale: this[o].locale,
1938
+ pathname: this[o].url.pathname,
1939
+ trailingSlash: this[o].trailingSlash
1937
1940
  });
1938
1941
  }
1939
1942
  formatSearch() {
1940
- return this[i].url.search;
1943
+ return this[o].url.search;
1941
1944
  }
1942
1945
  get buildId() {
1943
- return this[i].buildId;
1946
+ return this[o].buildId;
1944
1947
  }
1945
1948
  set buildId(s) {
1946
- this[i].buildId = s;
1949
+ this[o].buildId = s;
1947
1950
  }
1948
1951
  get locale() {
1949
- return this[i].locale ?? "";
1952
+ return this[o].locale ?? "";
1950
1953
  }
1951
1954
  set locale(s) {
1952
1955
  var d, w;
1953
- if (!this[i].locale || !(!((w = this[i].options.nextConfig) == null || (d = w.i18n) == null) && d.locales.includes(s)))
1956
+ if (!this[o].locale || !(!((w = this[o].options.nextConfig) == null || (d = w.i18n) == null) && d.locales.includes(s)))
1954
1957
  throw new TypeError(`The NextURL configuration includes no locale "${s}"`);
1955
- this[i].locale = s;
1958
+ this[o].locale = s;
1956
1959
  }
1957
1960
  get defaultLocale() {
1958
- return this[i].defaultLocale;
1961
+ return this[o].defaultLocale;
1959
1962
  }
1960
1963
  get domainLocale() {
1961
- return this[i].domainLocale;
1964
+ return this[o].domainLocale;
1962
1965
  }
1963
1966
  get searchParams() {
1964
- return this[i].url.searchParams;
1967
+ return this[o].url.searchParams;
1965
1968
  }
1966
1969
  get host() {
1967
- return this[i].url.host;
1970
+ return this[o].url.host;
1968
1971
  }
1969
1972
  set host(s) {
1970
- this[i].url.host = s;
1973
+ this[o].url.host = s;
1971
1974
  }
1972
1975
  get hostname() {
1973
- return this[i].url.hostname;
1976
+ return this[o].url.hostname;
1974
1977
  }
1975
1978
  set hostname(s) {
1976
- this[i].url.hostname = s;
1979
+ this[o].url.hostname = s;
1977
1980
  }
1978
1981
  get port() {
1979
- return this[i].url.port;
1982
+ return this[o].url.port;
1980
1983
  }
1981
1984
  set port(s) {
1982
- this[i].url.port = s;
1985
+ this[o].url.port = s;
1983
1986
  }
1984
1987
  get protocol() {
1985
- return this[i].url.protocol;
1988
+ return this[o].url.protocol;
1986
1989
  }
1987
1990
  set protocol(s) {
1988
- this[i].url.protocol = s;
1991
+ this[o].url.protocol = s;
1989
1992
  }
1990
1993
  get href() {
1991
1994
  const s = this.formatPathname(), d = this.formatSearch();
1992
1995
  return `${this.protocol}//${this.host}${s}${d}${this.hash}`;
1993
1996
  }
1994
1997
  set href(s) {
1995
- this[i].url = c(s), this.analyze();
1998
+ this[o].url = c(s), this.analyze();
1996
1999
  }
1997
2000
  get origin() {
1998
- return this[i].url.origin;
2001
+ return this[o].url.origin;
1999
2002
  }
2000
2003
  get pathname() {
2001
- return this[i].url.pathname;
2004
+ return this[o].url.pathname;
2002
2005
  }
2003
2006
  set pathname(s) {
2004
- this[i].url.pathname = s;
2007
+ this[o].url.pathname = s;
2005
2008
  }
2006
2009
  get hash() {
2007
- return this[i].url.hash;
2010
+ return this[o].url.hash;
2008
2011
  }
2009
2012
  set hash(s) {
2010
- this[i].url.hash = s;
2013
+ this[o].url.hash = s;
2011
2014
  }
2012
2015
  get search() {
2013
- return this[i].url.search;
2016
+ return this[o].url.search;
2014
2017
  }
2015
2018
  set search(s) {
2016
- this[i].url.search = s;
2019
+ this[o].url.search = s;
2017
2020
  }
2018
2021
  get password() {
2019
- return this[i].url.password;
2022
+ return this[o].url.password;
2020
2023
  }
2021
2024
  set password(s) {
2022
- this[i].url.password = s;
2025
+ this[o].url.password = s;
2023
2026
  }
2024
2027
  get username() {
2025
- return this[i].url.username;
2028
+ return this[o].url.username;
2026
2029
  }
2027
2030
  set username(s) {
2028
- this[i].url.username = s;
2031
+ this[o].url.username = s;
2029
2032
  }
2030
2033
  get basePath() {
2031
- return this[i].basePath;
2034
+ return this[o].basePath;
2032
2035
  }
2033
2036
  set basePath(s) {
2034
- this[i].basePath = s.startsWith("/") ? s : `/${s}`;
2037
+ this[o].basePath = s.startsWith("/") ? s : `/${s}`;
2035
2038
  }
2036
2039
  toString() {
2037
2040
  return this.href;
@@ -2056,7 +2059,7 @@ var st = {}, ct = {};
2056
2059
  };
2057
2060
  }
2058
2061
  clone() {
2059
- return new u(String(this), this[i].options);
2062
+ return new u(String(this), this[o].options);
2060
2063
  }
2061
2064
  }
2062
2065
  })(Ie);
@@ -2076,13 +2079,13 @@ var Pe = {};
2076
2079
  return n;
2077
2080
  },
2078
2081
  normalizeNextQueryParam: function() {
2079
- return i;
2082
+ return o;
2080
2083
  },
2081
2084
  splitCookiesString: function() {
2082
2085
  return a;
2083
2086
  },
2084
2087
  toNodeOutgoingHttpHeaders: function() {
2085
- return o;
2088
+ return i;
2086
2089
  },
2087
2090
  validateURL: function() {
2088
2091
  return c;
@@ -2122,7 +2125,7 @@ var Pe = {};
2122
2125
  }
2123
2126
  return g;
2124
2127
  }
2125
- function o(u) {
2128
+ function i(u) {
2126
2129
  const g = {}, s = [];
2127
2130
  if (u)
2128
2131
  for (const [d, w] of u.entries())
@@ -2138,7 +2141,7 @@ var Pe = {};
2138
2141
  });
2139
2142
  }
2140
2143
  }
2141
- function i(u, g) {
2144
+ function o(u, g) {
2142
2145
  const s = [
2143
2146
  r.NEXT_QUERY_PARAM_PREFIX,
2144
2147
  r.NEXT_INTERCEPTION_MARKER_PREFIX
@@ -2155,10 +2158,10 @@ var lt = {};
2155
2158
  Object.defineProperty(e, "__esModule", {
2156
2159
  value: !0
2157
2160
  });
2158
- function t(o, c) {
2159
- for (var i in c) Object.defineProperty(o, i, {
2161
+ function t(i, c) {
2162
+ for (var o in c) Object.defineProperty(i, o, {
2160
2163
  enumerable: !0,
2161
- get: c[i]
2164
+ get: c[o]
2162
2165
  });
2163
2166
  }
2164
2167
  t(e, {
@@ -2237,9 +2240,9 @@ function Se(e) {
2237
2240
  t.set(r, "true");
2238
2241
  continue;
2239
2242
  }
2240
- const [a, o] = [r.slice(0, n), r.slice(n + 1)];
2243
+ const [a, i] = [r.slice(0, n), r.slice(n + 1)];
2241
2244
  try {
2242
- t.set(a, decodeURIComponent(o ?? "true"));
2245
+ t.set(a, decodeURIComponent(i ?? "true"));
2243
2246
  } catch {
2244
2247
  }
2245
2248
  }
@@ -2250,9 +2253,9 @@ function dt(e) {
2250
2253
  return;
2251
2254
  const [[t, r], ...n] = Se(e), {
2252
2255
  domain: a,
2253
- expires: o,
2256
+ expires: i,
2254
2257
  httponly: c,
2255
- maxage: i,
2258
+ maxage: o,
2256
2259
  path: u,
2257
2260
  samesite: g,
2258
2261
  secure: s,
@@ -2264,9 +2267,9 @@ function dt(e) {
2264
2267
  name: t,
2265
2268
  value: decodeURIComponent(r),
2266
2269
  domain: a,
2267
- ...o && { expires: new Date(o) },
2270
+ ...i && { expires: new Date(i) },
2268
2271
  ...c && { httpOnly: !0 },
2269
- ...typeof i == "string" && { maxAge: Number(i) },
2272
+ ...typeof o == "string" && { maxAge: Number(o) },
2270
2273
  path: u,
2271
2274
  ...g && { sameSite: Vn(g) },
2272
2275
  ...s && { secure: !0 },
@@ -2292,7 +2295,7 @@ function Qn(e) {
2292
2295
  function Xn(e) {
2293
2296
  if (!e)
2294
2297
  return [];
2295
- var t = [], r = 0, n, a, o, c, i;
2298
+ var t = [], r = 0, n, a, i, c, o;
2296
2299
  function u() {
2297
2300
  for (; r < e.length && /\s/.test(e.charAt(r)); )
2298
2301
  r += 1;
@@ -2302,14 +2305,14 @@ function Xn(e) {
2302
2305
  return a = e.charAt(r), a !== "=" && a !== ";" && a !== ",";
2303
2306
  }
2304
2307
  for (; r < e.length; ) {
2305
- for (n = r, i = !1; u(); )
2308
+ for (n = r, o = !1; u(); )
2306
2309
  if (a = e.charAt(r), a === ",") {
2307
- for (o = r, r += 1, u(), c = r; r < e.length && g(); )
2310
+ for (i = r, r += 1, u(), c = r; r < e.length && g(); )
2308
2311
  r += 1;
2309
- r < e.length && e.charAt(r) === "=" ? (i = !0, r = c, t.push(e.substring(n, o)), n = r) : r = o + 1;
2312
+ r < e.length && e.charAt(r) === "=" ? (o = !0, r = c, t.push(e.substring(n, i)), n = r) : r = i + 1;
2310
2313
  } else
2311
2314
  r += 1;
2312
- (!i || r >= e.length) && t.push(e.substring(n, e.length));
2315
+ (!o || r >= e.length) && t.push(e.substring(n, e.length));
2313
2316
  }
2314
2317
  return t;
2315
2318
  }
@@ -2340,9 +2343,9 @@ var Kn = class {
2340
2343
  var t;
2341
2344
  const r = Array.from(this._parsed);
2342
2345
  if (!e.length)
2343
- return r.map(([a, o]) => o);
2346
+ return r.map(([a, i]) => i);
2344
2347
  const n = typeof e[0] == "string" ? e[0] : (t = e[0]) == null ? void 0 : t.name;
2345
- return r.filter(([a]) => a === n).map(([a, o]) => o);
2348
+ return r.filter(([a]) => a === n).map(([a, i]) => i);
2346
2349
  }
2347
2350
  has(e) {
2348
2351
  return this._parsed.has(e);
@@ -2351,7 +2354,7 @@ var Kn = class {
2351
2354
  const [t, r] = e.length === 1 ? [e[0].name, e[0].value] : e, n = this._parsed;
2352
2355
  return n.set(t, { name: t, value: r }), this._headers.set(
2353
2356
  "cookie",
2354
- Array.from(n).map(([a, o]) => K(o)).join("; ")
2357
+ Array.from(n).map(([a, i]) => K(i)).join("; ")
2355
2358
  ), this;
2356
2359
  }
2357
2360
  /**
@@ -2384,10 +2387,10 @@ var Kn = class {
2384
2387
  this._parsed = /* @__PURE__ */ new Map();
2385
2388
  var t, r, n;
2386
2389
  this._headers = e;
2387
- const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a : Xn(a);
2388
- for (const c of o) {
2389
- const i = dt(c);
2390
- i && this._parsed.set(i.name, i);
2390
+ const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], i = Array.isArray(a) ? a : Xn(a);
2391
+ for (const c of i) {
2392
+ const o = dt(c);
2393
+ o && this._parsed.set(o.name, o);
2391
2394
  }
2392
2395
  }
2393
2396
  /**
@@ -2447,9 +2450,9 @@ function Yn(e = { name: "", value: "" }) {
2447
2450
  value: !0
2448
2451
  });
2449
2452
  function t(n, a) {
2450
- for (var o in a) Object.defineProperty(n, o, {
2453
+ for (var i in a) Object.defineProperty(n, i, {
2451
2454
  enumerable: !0,
2452
- get: a[o]
2455
+ get: a[i]
2453
2456
  });
2454
2457
  }
2455
2458
  t(e, {
@@ -2480,11 +2483,11 @@ function Yn(e = { name: "", value: "" }) {
2480
2483
  return c;
2481
2484
  },
2482
2485
  NextRequest: function() {
2483
- return i;
2486
+ return o;
2484
2487
  }
2485
2488
  });
2486
- const r = Ie, n = Pe, a = lt, o = de, c = Symbol("internal request");
2487
- class i extends Request {
2489
+ const r = Ie, n = Pe, a = lt, i = de, c = Symbol("internal request");
2490
+ class o extends Request {
2488
2491
  constructor(g, s = {}) {
2489
2492
  const d = typeof g != "string" && "url" in g ? g.url : String(g);
2490
2493
  (0, n.validateURL)(d), g instanceof Request ? super(g, s) : super(d, s);
@@ -2493,7 +2496,7 @@ function Yn(e = { name: "", value: "" }) {
2493
2496
  nextConfig: s.nextConfig
2494
2497
  });
2495
2498
  this[c] = {
2496
- cookies: new o.RequestCookies(this.headers),
2499
+ cookies: new i.RequestCookies(this.headers),
2497
2500
  geo: s.geo || {},
2498
2501
  ip: s.ip,
2499
2502
  nextUrl: w,
@@ -2567,12 +2570,12 @@ var pt = {}, mt = {};
2567
2570
  }
2568
2571
  });
2569
2572
  class t {
2570
- static get(n, a, o) {
2571
- const c = Reflect.get(n, a, o);
2573
+ static get(n, a, i) {
2574
+ const c = Reflect.get(n, a, i);
2572
2575
  return typeof c == "function" ? c.bind(n) : c;
2573
2576
  }
2574
- static set(n, a, o, c) {
2575
- return Reflect.set(n, a, o, c);
2577
+ static set(n, a, i, c) {
2578
+ return Reflect.set(n, a, i, c);
2576
2579
  }
2577
2580
  static has(n, a) {
2578
2581
  return Reflect.has(n, a);
@@ -2591,7 +2594,7 @@ var pt = {}, mt = {};
2591
2594
  return g;
2592
2595
  }
2593
2596
  });
2594
- const t = de, r = Ie, n = Pe, a = mt, o = de, c = Symbol("internal response"), i = /* @__PURE__ */ new Set([
2597
+ const t = de, r = Ie, n = Pe, a = mt, i = de, c = Symbol("internal response"), o = /* @__PURE__ */ new Set([
2595
2598
  301,
2596
2599
  302,
2597
2600
  303,
@@ -2612,14 +2615,14 @@ var pt = {}, mt = {};
2612
2615
  class g extends Response {
2613
2616
  constructor(d, w = {}) {
2614
2617
  super(d, w);
2615
- const v = this.headers, y = new o.ResponseCookies(v), R = new Proxy(y, {
2618
+ const v = this.headers, y = new i.ResponseCookies(v), R = new Proxy(y, {
2616
2619
  get(p, b, m) {
2617
2620
  switch (b) {
2618
2621
  case "delete":
2619
2622
  case "set":
2620
2623
  return (...f) => {
2621
2624
  const h = Reflect.apply(p[b], p, f), C = new Headers(v);
2622
- return h instanceof o.ResponseCookies && v.set("x-middleware-set-cookie", h.getAll().map((A) => (0, t.stringifyCookie)(A)).join(",")), u(w, C), h;
2625
+ return h instanceof i.ResponseCookies && v.set("x-middleware-set-cookie", h.getAll().map((A) => (0, t.stringifyCookie)(A)).join(",")), u(w, C), h;
2623
2626
  };
2624
2627
  default:
2625
2628
  return a.ReflectAdapter.get(p, b, m);
@@ -2658,7 +2661,7 @@ var pt = {}, mt = {};
2658
2661
  }
2659
2662
  static redirect(d, w) {
2660
2663
  const v = typeof w == "number" ? w : (w == null ? void 0 : w.status) ?? 307;
2661
- if (!i.has(v))
2664
+ if (!o.has(v))
2662
2665
  throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
2663
2666
  const y = typeof w == "object" ? w : {}, R = new Headers(y == null ? void 0 : y.headers);
2664
2667
  return R.set("Location", (0, n.validateURL)(d)), new g(null, {
@@ -2699,8 +2702,8 @@ var ft = {};
2699
2702
  })(ft);
2700
2703
  var Re = {}, ht = { exports: {} };
2701
2704
  (() => {
2702
- var e = { 226: function(a, o) {
2703
- (function(c, i) {
2705
+ var e = { 226: function(a, i) {
2706
+ (function(c, o) {
2704
2707
  var u = "1.0.35", g = "", s = "?", d = "function", w = "undefined", v = "object", y = "string", R = "major", p = "model", b = "name", m = "type", f = "vendor", h = "version", C = "architecture", A = "console", _ = "mobile", I = "tablet", k = "smarttv", N = "wearable", $ = "embedded", D = 350, U = "Amazon", B = "Apple", J = "ASUS", Ce = "BlackBerry", G = "Browser", Z = "Chrome", bt = "Edge", Y = "Firefox", ee = "Google", ke = "Huawei", me = "LG", fe = "Microsoft", Ee = "Motorola", te = "Opera", he = "Samsung", Oe = "Sharp", re = "Sony", ge = "Xiaomi", be = "Zebra", Ae = "Facebook", Te = "Chromium OS", je = "Mac OS", wt = function(S, O) {
2705
2708
  var x = {};
2706
2709
  for (var q in S)
@@ -2715,7 +2718,7 @@ var Re = {}, ht = { exports: {} };
2715
2718
  }, Q = function(S) {
2716
2719
  return S.toLowerCase();
2717
2720
  }, vt = function(S) {
2718
- return typeof S === y ? S.replace(/[^\d\.]/g, g).split(".")[0] : i;
2721
+ return typeof S === y ? S.replace(/[^\d\.]/g, g).split(".")[0] : o;
2719
2722
  }, we = function(S, O) {
2720
2723
  if (typeof S === y)
2721
2724
  return S = S.replace(/^\s\s*/, g), typeof O === w ? S : S.substring(0, D);
@@ -2725,7 +2728,7 @@ var Re = {}, ht = { exports: {} };
2725
2728
  for (q = z = 0; q < ye.length && !P && ye[q]; )
2726
2729
  if (P = ye[q++].exec(S), P)
2727
2730
  for (M = 0; M < $e.length; M++)
2728
- H = P[++z], E = $e[M], typeof E === v && E.length > 0 ? E.length === 2 ? typeof E[1] == d ? this[E[0]] = E[1].call(this, H) : this[E[0]] = E[1] : E.length === 3 ? typeof E[1] === d && !(E[1].exec && E[1].test) ? this[E[0]] = H ? E[1].call(this, H, E[2]) : i : this[E[0]] = H ? H.replace(E[1], E[2]) : i : E.length === 4 && (this[E[0]] = H ? E[3].call(this, H.replace(E[1], E[2])) : i) : this[E] = H || i;
2731
+ H = P[++z], E = $e[M], typeof E === v && E.length > 0 ? E.length === 2 ? typeof E[1] == d ? this[E[0]] = E[1].call(this, H) : this[E[0]] = E[1] : E.length === 3 ? typeof E[1] === d && !(E[1].exec && E[1].test) ? this[E[0]] = H ? E[1].call(this, H, E[2]) : o : this[E[0]] = H ? H.replace(E[1], E[2]) : o : E.length === 4 && (this[E[0]] = H ? E[3].call(this, H.replace(E[1], E[2])) : o) : this[E] = H || o;
2729
2732
  x += 2;
2730
2733
  }
2731
2734
  }, ve = function(S, O) {
@@ -2733,29 +2736,29 @@ var Re = {}, ht = { exports: {} };
2733
2736
  if (typeof O[x] === v && O[x].length > 0) {
2734
2737
  for (var q = 0; q < O[x].length; q++)
2735
2738
  if (qe(O[x][q], S))
2736
- return x === s ? i : x;
2739
+ return x === s ? o : x;
2737
2740
  } else if (qe(O[x], S))
2738
- return x === s ? i : x;
2741
+ return x === s ? o : x;
2739
2742
  return S;
2740
2743
  }, 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", "?": "/" }, Ne = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [h, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [h, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, h], [/opios[\/ ]+([\w\.]+)/i], [h, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [h, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, h], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [h, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [h, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [h, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [h, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [h, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [h, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], h], [/\bfocus\/([\w\.]+)/i], [h, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [h, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [h, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [h, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [h, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [h, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [h, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], h], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], h], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, h], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Ae], h], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, h], [/\bgsa\/([\w\.]+) .*safari\//i], [h, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [h, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [h, [b, Z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, Z + " WebView"], h], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [h, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, h], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [h, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [h, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [h, ve, yt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, h], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], h], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [h, [b, Y + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, h], [/(cobalt)\/([\w\.]+)/i], [b, [h, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[C, "amd64"]], [/(ia32(?=;))/i], [[C, Q]], [/((?:i[346]|x)86)[;\)]/i], [[C, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[C, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[C, "armhf"]], [/windows (ce|mobile); ppc;/i], [[C, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[C, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[C, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[C, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [f, he], [m, I]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [f, he], [m, _]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [f, B], [m, _]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [f, B], [m, I]], [/(macintosh);/i], [p, [f, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [f, Oe], [m, _]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [f, ke], [m, I]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [f, ke], [m, _]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, _]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, I]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [f, "OPPO"], [m, _]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [f, "Vivo"], [m, _]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [f, "Realme"], [m, _]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [f, Ee], [m, _]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [f, Ee], [m, I]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [f, me], [m, I]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [f, me], [m, _]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [f, "Lenovo"], [m, I]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [f, "Nokia"], [m, _]], [/(pixel c)\b/i], [p, [f, ee], [m, I]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [f, ee], [m, _]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [f, re], [m, _]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [f, re], [m, I]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [f, "OnePlus"], [m, _]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [f, U], [m, I]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [f, U], [m, _]], [/(playbook);[-\w\),; ]+(rim)/i], [p, f, [m, I]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [f, Ce], [m, _]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [f, J], [m, I]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [f, J], [m, _]], [/(nexus 9)/i], [p, [f, "HTC"], [m, I]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [p, /_/g, " "], [m, _]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [f, "Acer"], [m, I]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [f, "Meizu"], [m, _]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [f, p, [m, _]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [f, p, [m, I]], [/(surface duo)/i], [p, [f, fe], [m, I]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [f, "Fairphone"], [m, _]], [/(u304aa)/i], [p, [f, "AT&T"], [m, _]], [/\bsie-(\w*)/i], [p, [f, "Siemens"], [m, _]], [/\b(rct\w+) b/i], [p, [f, "RCA"], [m, I]], [/\b(venue[\d ]{2,7}) b/i], [p, [f, "Dell"], [m, I]], [/\b(q(?:mv|ta)\w+) b/i], [p, [f, "Verizon"], [m, I]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [f, "Barnes & Noble"], [m, I]], [/\b(tm\d{3}\w+) b/i], [p, [f, "NuVision"], [m, I]], [/\b(k88) b/i], [p, [f, "ZTE"], [m, I]], [/\b(nx\d{3}j) b/i], [p, [f, "ZTE"], [m, _]], [/\b(gen\d{3}) b.+49h/i], [p, [f, "Swiss"], [m, _]], [/\b(zur\d{3}) b/i], [p, [f, "Swiss"], [m, I]], [/\b((zeki)?tb.*\b) b/i], [p, [f, "Zeki"], [m, I]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], p, [m, I]], [/\b(ns-?\w{0,9}) b/i], [p, [f, "Insignia"], [m, I]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [f, "NextBook"], [m, I]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], p, [m, _]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], p, [m, _]], [/\b(ph-1) /i], [p, [f, "Essential"], [m, _]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [f, "Envizen"], [m, I]], [/\b(trio[-\w\. ]+) b/i], [p, [f, "MachSpeed"], [m, I]], [/\btu_(1491) b/i], [p, [f, "Rotor"], [m, I]], [/(shield[\w ]+) b/i], [p, [f, "Nvidia"], [m, I]], [/(sprint) (\w+)/i], [f, p, [m, _]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [f, fe], [m, _]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [f, be], [m, I]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [f, be], [m, _]], [/smart-tv.+(samsung)/i], [f, [m, k]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [f, he], [m, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, me], [m, k]], [/(apple) ?tv/i], [f, [p, B + " TV"], [m, k]], [/crkey/i], [[p, Z + "cast"], [f, ee], [m, k]], [/droid.+aft(\w)( bui|\))/i], [p, [f, U], [m, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [f, Oe], [m, k]], [/(bravia[\w ]+)( bui|\))/i], [p, [f, re], [m, k]], [/(mitv-\w{5}) bui/i], [p, [f, ge], [m, k]], [/Hbbtv.*(technisat) (.*);/i], [f, p, [m, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, we], [p, we], [m, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, p, [m, A]], [/droid.+; (shield) bui/i], [p, [f, "Nvidia"], [m, A]], [/(playstation [345portablevi]+)/i], [p, [f, re], [m, A]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [f, fe], [m, A]], [/((pebble))app/i], [f, p, [m, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [f, B], [m, N]], [/droid.+; (glass) \d/i], [p, [f, ee], [m, N]], [/droid.+; (wt63?0{2,3})\)/i], [p, [f, be], [m, N]], [/(quest( 2| pro)?)/i], [p, [f, Ae], [m, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [m, $]], [/(aeobc)\b/i], [p, [f, U], [m, $]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, _]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, I]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, I]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, _]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [h, [b, bt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [h, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, h], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [h, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, h], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [h, ve, Ne]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [h, ve, Ne]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[h, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, je], [h, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [h, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, h], [/\(bb(10);/i], [h, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [h, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [h, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [h, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [h, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [h, [b, Z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], h], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, h], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], h], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, h]] }, L = function(S, O) {
2741
- if (typeof S === v && (O = S, S = i), !(this instanceof L))
2744
+ if (typeof S === v && (O = S, S = o), !(this instanceof L))
2742
2745
  return new L(S, O).getResult();
2743
- var x = typeof c !== w && c.navigator ? c.navigator : i, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, M = O ? wt(Fe, O) : Fe, E = x && x.userAgent == q;
2746
+ var x = typeof c !== w && c.navigator ? c.navigator : o, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : o, M = O ? wt(Fe, O) : Fe, E = x && x.userAgent == q;
2744
2747
  return this.getBrowser = function() {
2745
2748
  var P = {};
2746
- return P[b] = i, P[h] = i, X.call(P, q, M.browser), P[R] = vt(P[h]), E && x && x.brave && typeof x.brave.isBrave == d && (P[b] = "Brave"), P;
2749
+ return P[b] = o, P[h] = o, X.call(P, q, M.browser), P[R] = vt(P[h]), E && x && x.brave && typeof x.brave.isBrave == d && (P[b] = "Brave"), P;
2747
2750
  }, this.getCPU = function() {
2748
2751
  var P = {};
2749
- return P[C] = i, X.call(P, q, M.cpu), P;
2752
+ return P[C] = o, X.call(P, q, M.cpu), P;
2750
2753
  }, this.getDevice = function() {
2751
2754
  var P = {};
2752
- return P[f] = i, P[p] = i, P[m] = i, X.call(P, q, M.device), E && !P[m] && z && z.mobile && (P[m] = _), E && P[p] == "Macintosh" && x && typeof x.standalone !== w && x.maxTouchPoints && x.maxTouchPoints > 2 && (P[p] = "iPad", P[m] = I), P;
2755
+ return P[f] = o, P[p] = o, P[m] = o, X.call(P, q, M.device), E && !P[m] && z && z.mobile && (P[m] = _), E && P[p] == "Macintosh" && x && typeof x.standalone !== w && x.maxTouchPoints && x.maxTouchPoints > 2 && (P[p] = "iPad", P[m] = I), P;
2753
2756
  }, this.getEngine = function() {
2754
2757
  var P = {};
2755
- return P[b] = i, P[h] = i, X.call(P, q, M.engine), P;
2758
+ return P[b] = o, P[h] = o, X.call(P, q, M.engine), P;
2756
2759
  }, this.getOS = function() {
2757
2760
  var P = {};
2758
- return P[b] = i, P[h] = i, X.call(P, q, M.os), E && !P[b] && z && z.platform != "Unknown" && (P[b] = z.platform.replace(/chrome os/i, Te).replace(/macos/i, je)), P;
2761
+ return P[b] = o, P[h] = o, X.call(P, q, M.os), E && !P[b] && z && z.platform != "Unknown" && (P[b] = z.platform.replace(/chrome os/i, Te).replace(/macos/i, je)), P;
2759
2762
  }, this.getResult = function() {
2760
2763
  return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
2761
2764
  }, this.getUA = function() {
@@ -2764,7 +2767,7 @@ var Re = {}, ht = { exports: {} };
2764
2767
  return q = typeof P === y && P.length > D ? we(P, D) : P, this;
2765
2768
  }, this.setUA(q), this;
2766
2769
  };
2767
- L.VERSION = u, L.BROWSER = ne([b, h, R]), L.CPU = ne([C]), L.DEVICE = ne([p, f, m, A, _, k, I, N, $]), L.ENGINE = L.OS = ne([b, h]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof c !== w && (c.UAParser = L);
2770
+ L.VERSION = u, L.BROWSER = ne([b, h, R]), L.CPU = ne([C]), L.DEVICE = ne([p, f, m, A, _, k, I, N, $]), L.ENGINE = L.OS = ne([b, h]), typeof i !== w ? (a.exports && (i = a.exports = L), i.UAParser = L) : typeof c !== w && (c.UAParser = L);
2768
2771
  var V = typeof c !== w && (c.jQuery || c.Zepto);
2769
2772
  if (V && !V.ua) {
2770
2773
  var ae = new L();
@@ -2780,14 +2783,14 @@ var Re = {}, ht = { exports: {} };
2780
2783
  })(typeof window == "object" ? window : this);
2781
2784
  } }, t = {};
2782
2785
  function r(a) {
2783
- var o = t[a];
2784
- if (o !== void 0)
2785
- return o.exports;
2786
- var c = t[a] = { exports: {} }, i = !0;
2786
+ var i = t[a];
2787
+ if (i !== void 0)
2788
+ return i.exports;
2789
+ var c = t[a] = { exports: {} }, o = !0;
2787
2790
  try {
2788
- e[a].call(c.exports, c, c.exports, r), i = !1;
2791
+ e[a].call(c.exports, c, c.exports, r), o = !1;
2789
2792
  } finally {
2790
- i && delete t[a];
2793
+ o && delete t[a];
2791
2794
  }
2792
2795
  return c.exports;
2793
2796
  }
@@ -2800,8 +2803,8 @@ var ea = ht.exports;
2800
2803
  Object.defineProperty(e, "__esModule", {
2801
2804
  value: !0
2802
2805
  });
2803
- function t(i, u) {
2804
- for (var g in u) Object.defineProperty(i, g, {
2806
+ function t(o, u) {
2807
+ for (var g in u) Object.defineProperty(o, g, {
2805
2808
  enumerable: !0,
2806
2809
  get: u[g]
2807
2810
  });
@@ -2814,26 +2817,26 @@ var ea = ht.exports;
2814
2817
  return c;
2815
2818
  },
2816
2819
  userAgentFromString: function() {
2817
- return o;
2820
+ return i;
2818
2821
  }
2819
2822
  });
2820
2823
  const r = /* @__PURE__ */ n(ea);
2821
- function n(i) {
2822
- return i && i.__esModule ? i : {
2823
- default: i
2824
+ function n(o) {
2825
+ return o && o.__esModule ? o : {
2826
+ default: o
2824
2827
  };
2825
2828
  }
2826
- function a(i) {
2827
- 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);
2829
+ function a(o) {
2830
+ 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);
2828
2831
  }
2829
- function o(i) {
2832
+ function i(o) {
2830
2833
  return {
2831
- ...(0, r.default)(i),
2832
- isBot: i === void 0 ? !1 : a(i)
2834
+ ...(0, r.default)(o),
2835
+ isBot: o === void 0 ? !1 : a(o)
2833
2836
  };
2834
2837
  }
2835
- function c({ headers: i }) {
2836
- return o(i.get("user-agent") || void 0);
2838
+ function c({ headers: o }) {
2839
+ return i(o.get("user-agent") || void 0);
2837
2840
  }
2838
2841
  })(Re);
2839
2842
  var gt = {};
@@ -2870,12 +2873,12 @@ async function ta({
2870
2873
  }) {
2871
2874
  var _, I;
2872
2875
  const n = `${e}/api/dataentities`, a = `${e}/api/io/v1/extrato/get-total`, {
2873
- MASTER_DATA_ENTITY: o,
2876
+ MASTER_DATA_ENTITY: i,
2874
2877
  MASTER_DATA_FIELDS: c,
2875
- AUTH_TOKEN_COOKIE: i,
2878
+ AUTH_TOKEN_COOKIE: o,
2876
2879
  requestHeaders: u,
2877
2880
  cookies: g
2878
- } = t, { address: s, client: d } = o, { address: w, client: v } = c, y = ((_ = g == null ? void 0 : g.find((k) => (k == null ? void 0 : k.name) === i)) == null ? void 0 : _.value) || "";
2881
+ } = t, { address: s, client: d } = i, { address: w, client: v } = c, y = ((_ = g == null ? void 0 : g.find((k) => (k == null ? void 0 : k.name) === o)) == null ? void 0 : _.value) || "";
2879
2882
  if (!y)
2880
2883
  return Ue.NextResponse.json(
2881
2884
  { error: "Token not found. Unauthorized" },
@@ -2943,11 +2946,11 @@ async function aa({
2943
2946
  text: a
2944
2947
  };
2945
2948
  }
2946
- const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2949
+ const oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2947
2950
  __proto__: null,
2948
2951
  aviseMe: aa
2949
2952
  }, Symbol.toStringTag, { value: "Module" }));
2950
- function oa({
2953
+ function ia({
2951
2954
  platformCMS: e,
2952
2955
  request: t
2953
2956
  }) {
@@ -2965,7 +2968,7 @@ function oa({
2965
2968
  }
2966
2969
  const sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2967
2970
  __proto__: null,
2968
- getCMSPreviewData: oa
2971
+ getCMSPreviewData: ia
2969
2972
  }, Symbol.toStringTag, { value: "Module" }));
2970
2973
  function ca(e) {
2971
2974
  return {
@@ -3010,12 +3013,12 @@ function fa(e) {
3010
3013
  return t;
3011
3014
  }
3012
3015
  function ha(e) {
3013
- var i, u;
3014
- const t = ((i = e["sec-ch-ua-platform"]) == null ? void 0 : i.toLowerCase()) || "", r = e["sec-ch-ua-mobile"], n = ((u = e["user-agent"]) == null ? void 0 : u.toLowerCase()) || "";
3016
+ var o, u;
3017
+ const t = ((o = e["sec-ch-ua-platform"]) == null ? void 0 : o.toLowerCase()) || "", r = e["sec-ch-ua-mobile"], n = ((u = e["user-agent"]) == null ? void 0 : u.toLowerCase()) || "";
3015
3018
  let a = r === "?1" ? "Mobile" : "Desktop";
3016
3019
  r || (a = /Mobi|Android|iPhone|iPad|iPod/i.test(n) ? "Mobile" : "Desktop");
3017
- const o = /iphone|ipad|ipod/.test(n) || t.includes("ios") ? "iOS" : /android/.test(n) || t.includes("android") ? "Android" : "Desktop", c = /chrome/.test(n) && !/edg|opr/.test(n) ? "Chrome" : /safari/.test(n) && !/chrome/.test(n) ? "Safari" : /firefox/.test(n) ? "Firefox" : /edg/.test(n) ? "Edge" : "Other";
3018
- return { platform_name: a, os_name: o, browser_name: c };
3020
+ const i = /iphone|ipad|ipod/.test(n) || t.includes("ios") ? "iOS" : /android/.test(n) || t.includes("android") ? "Android" : "Desktop", c = /chrome/.test(n) && !/edg|opr/.test(n) ? "Chrome" : /safari/.test(n) && !/chrome/.test(n) ? "Safari" : /firefox/.test(n) ? "Firefox" : /edg/.test(n) ? "Edge" : "Other";
3021
+ return { platform_name: a, os_name: i, browser_name: c };
3019
3022
  }
3020
3023
  async function ga({
3021
3024
  body: e,
@@ -3025,7 +3028,7 @@ async function ga({
3025
3028
  apiUrl: a
3026
3029
  }) {
3027
3030
  var d, w;
3028
- const o = fa(r), c = await pa(n.authUrl), { platform_name: i, os_name: u, browser_name: g } = ha(o), s = e.findIndex(({ type: v }) => v === "IDENTIFY");
3031
+ const i = fa(r), c = await pa(n.authUrl), { platform_name: o, os_name: u, browser_name: g } = ha(i), s = e.findIndex(({ type: v }) => v === "IDENTIFY");
3029
3032
  if (s >= 0 && t) {
3030
3033
  const v = jt(t), y = e[s], R = await rt({
3031
3034
  apiUrl: a,
@@ -3037,13 +3040,13 @@ async function ga({
3037
3040
  headers: {}
3038
3041
  },
3039
3042
  fetchOptions: {
3040
- headers: o
3043
+ headers: i
3041
3044
  }
3042
3045
  }), p = Array.isArray(R) ? R[0] : null;
3043
3046
  if (p != null && p.userId) {
3044
3047
  const { gender: b, homePhone: m, birthDate: f, userId: h } = p, C = await fetch(
3045
3048
  `${a}/api/profile-system/pvt/profiles/${h}/addresses`,
3046
- { headers: o }
3049
+ { headers: i }
3047
3050
  ).then((I) => I.json()), A = (w = Object.keys(C)) == null ? void 0 : w[0], _ = A ? JSON.parse(C[A]) : null;
3048
3051
  y.traits = {
3049
3052
  ...y.traits,
@@ -3062,7 +3065,7 @@ async function ga({
3062
3065
  }
3063
3066
  return e.forEach((v) => {
3064
3067
  ma(v) && (v.properties.custom_data = {
3065
- platform_name: i,
3068
+ platform_name: o,
3066
3069
  os_name: u,
3067
3070
  browser_name: g,
3068
3071
  authenticated: !!t,
@@ -3088,7 +3091,7 @@ const ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3088
3091
  masterdata: qn,
3089
3092
  marketingdata: qt,
3090
3093
  user: ra,
3091
- aviseme: ia,
3094
+ aviseme: oa,
3092
3095
  preview: sa,
3093
3096
  exitpreview: la,
3094
3097
  vtexXmlProxy: da,