@soma-vertical-web/multi-lib 1.0.17 → 1.0.19

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.
@@ -0,0 +1,1908 @@
1
+ import { jsxs as yr, Fragment as Pt, jsx as $ } from "react/jsx-runtime";
2
+ import { Utils as Et } from "@soma-vertical-web/core-components";
3
+ const Ye = (r, e = !0) => Intl.NumberFormat("pt-BR", {
4
+ style: "currency",
5
+ currency: "BRL",
6
+ minimumFractionDigits: e ? 2 : 0
7
+ }).format(r), $t = ({ valueInCents: r, hasFree: e, freeTaxMessage: t }) => r === 0 ? e ? t : Ye(0) : Ye(r / 100), It = (r, e) => {
8
+ const n = (r - e) * 100 / r;
9
+ return Math.floor(n);
10
+ }, Gr = (r, e) => {
11
+ const [t, n] = r.split(e);
12
+ return { name: t.trim(), size: n ? n.trim() : "" };
13
+ }, Rt = (r, e) => {
14
+ if (!r)
15
+ return {};
16
+ const [t, n] = r.split(e);
17
+ return { color: t == null ? void 0 : t.trim(), size: n == null ? void 0 : n.trim() };
18
+ }, kt = (r, e = "tamanho") => {
19
+ if (r.additionalProperty) {
20
+ const [t] = r.additionalProperty;
21
+ return t != null && t.name ? t.name.toLocaleLowerCase() === e ? t.value : r.name : "";
22
+ }
23
+ return r.name;
24
+ }, Ft = (r, e) => r.replace(e, "").trim(), Ct = (r) => r.replace(/\//g, ""), Mt = ({ items: r, NAME_SPLIT_SYMBOL: e }) => {
25
+ const t = {
26
+ price: 0,
27
+ listPrice: 0,
28
+ installments: {
29
+ count: 0,
30
+ value: 0
31
+ }
32
+ }, n = (i, u) => {
33
+ var f;
34
+ u && (u.sellerId = i.sellerId, u.sellerName = i.sellerName, u.available = !0, u.isSellerDefault = i.sellerDefault);
35
+ const {
36
+ Price: c,
37
+ ListPrice: s,
38
+ PaymentOptions: { installmentOptions: l }
39
+ } = i.commertialOffer;
40
+ t.price = c, t.listPrice = s;
41
+ const p = (f = l == null ? void 0 : l[0]) == null ? void 0 : f.installments;
42
+ if (p) {
43
+ const { count: d, value: y } = p[p.length - 1];
44
+ t.installments = {
45
+ count: d,
46
+ value: y / 100
47
+ };
48
+ }
49
+ };
50
+ let o = !0;
51
+ const a = r.reduce((i, u) => {
52
+ var l;
53
+ const c = {
54
+ name: u.name,
55
+ sku: u.itemId,
56
+ value: ((l = u.Tamanho) == null ? void 0 : l[0]) ?? Gr(u.nameComplete ?? u.name, e).size,
57
+ available: !1,
58
+ sellerId: "",
59
+ sellerName: "",
60
+ isSellerDefault: !1
61
+ }, s = u.sellers.filter((p) => (p.sellerDefault && p.commertialOffer.IsAvailable && (c.available = !0, n(p, c)), p.commertialOffer.IsAvailable));
62
+ return !c.isSellerDefault && s.length > 0 && (c.available = !0, n(s[0], {
63
+ ...c,
64
+ sellerId: s[0].sellerId,
65
+ sellerName: s[0].sellerName
66
+ })), c.available === !1 && (o = !1), i.push(c), i;
67
+ }, []);
68
+ return {
69
+ ...t,
70
+ sizes: a,
71
+ allSizesAvailable: o
72
+ };
73
+ }, Dt = (r) => r ? !r.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, Tt = (r, e) => {
74
+ const t = r.find(
75
+ (n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0 && n.seller.identifier === e
76
+ );
77
+ return t || r.find(
78
+ (n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0
79
+ );
80
+ }, Nt = ({ images: r, TEXTURE_IMAGE: e }) => r.find((t) => e.includes(t.imageLabel)) ?? r[0], jt = (r, e) => {
81
+ const t = /\/ids\/(\d+)\//, n = r.match(t);
82
+ return n ? r.replace(
83
+ `/${n[1]}/`,
84
+ `/${n[1]}-${e.width}-${e.height}/`
85
+ ) : r;
86
+ }, Bt = (r, e) => {
87
+ const t = /\/ids\/(\d+)-(\d+)-(\d+)\//, n = r.match(t);
88
+ return n ? r.replace(
89
+ `/${n[1]}-${n[2]}-${n[3]}/`,
90
+ `/${n[1]}-${e.width}-${e.height}/`
91
+ ) : r;
92
+ }, Lt = ({
93
+ images: r,
94
+ label: e
95
+ }) => {
96
+ const t = r.filter(
97
+ (n) => n.keywords === e.first || n.keywords === e.second || n.alternateName === e.first || n.alternateName === e.second
98
+ );
99
+ return t.length === 0 ? r.slice(0, 2) : t;
100
+ }, Ut = (r) => {
101
+ const [e, t] = r.split("/").map(Number);
102
+ if (Number.isNaN(e) || Number.isNaN(t))
103
+ throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");
104
+ return t / e;
105
+ }, qt = (r, e, t) => {
106
+ e && (r ? (e.getAttribute("src") || (e.src = t ?? ""), e.play()) : e.pause());
107
+ }, Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
108
+ __proto__: null,
109
+ disableSKU: Dt,
110
+ formatPriceToCurrency: Ye,
111
+ freightParsePrice: $t,
112
+ getAspectRatio: Ut,
113
+ getColorAndSizeFromSkuName: Rt,
114
+ getDiscountPercent: It,
115
+ getFirstImages: Lt,
116
+ getProductNameWithoutSku: Ft,
117
+ getSKUName: kt,
118
+ getSkuInfos: Mt,
119
+ getThumbImage: Nt,
120
+ getValidOffer: Tt,
121
+ removeSlashes: Ct,
122
+ resizingImg: jt,
123
+ setVideoPlay: qt,
124
+ splitNameAndSizeFromFullName: Gr,
125
+ updatedResizedImg: Bt
126
+ }, Symbol.toStringTag, { value: "Module" })), dr = "fuzzy", vr = "operator", Wt = (r) => ({
127
+ isDepartment: r != null && r.length ? r[0].key === "category-1" : !1
128
+ }), zt = (r, e) => {
129
+ const t = decodeURIComponent(e ?? "").slice(1).split("/");
130
+ return r.map((n) => {
131
+ if (n.key === "category-2" && n.__typename === "FacetBoolean") {
132
+ const o = n.values;
133
+ return {
134
+ ...n,
135
+ values: o.filter(
136
+ (a) => !t.find(
137
+ (i) => i.toLowerCase() === a.value || i.toLowerCase() === a.name.toLowerCase()
138
+ )
139
+ )
140
+ };
141
+ }
142
+ return n;
143
+ });
144
+ }, Hr = (r, e) => e ? r === "category-1" : !1, Gt = (r) => r.key === "operator" && (r.value === "and" || r.value === "or"), Ht = (r) => r.type === "TEXT", Kt = (r) => r.key === "fuzzy" && (r.value === "0" || r.value === "1" || r.value === "auto"), Vt = (r) => {
145
+ const { key: e, name: t, values: n } = r;
146
+ return {
147
+ __typename: "FacetBoolean",
148
+ key: e,
149
+ label: t,
150
+ values: n.slice().sort((o, a) => o.name.localeCompare(a.name))
151
+ };
152
+ }, Qt = ({ key: r, values: e }) => ({
153
+ __typename: "FacetRange",
154
+ key: r,
155
+ values: e
156
+ }), Pi = (r, e, t) => {
157
+ if (!(r instanceof Object) || !("facets" in r))
158
+ return [];
159
+ const { facets: n = [] } = r, o = e != null && e.length ? e[0].key === "category-1" : !1;
160
+ return n.filter(
161
+ (i) => !t || !Hr(i.key, o)
162
+ ).map(
163
+ (i) => Ht(i) ? Vt(i) : Qt(i)
164
+ );
165
+ }, Ei = (r, e) => {
166
+ const t = r.find(({ key: o }) => o === dr) ?? null, n = r.find(({ key: o }) => o === vr) ?? null;
167
+ t && Kt(t) && e.append(dr, t.value), n && Gt(n) && e.append(vr, n.value);
168
+ }, Kr = (r) => r.map((e) => {
169
+ const [t, n] = e.split("/");
170
+ return { key: t, value: n };
171
+ }), Jt = (r, e) => {
172
+ const t = decodeURIComponent(e ?? "").slice(1).split("/"), n = r.filter(({ value: a }) => !t.includes(decodeURIComponent(a))).map((a) => ({
173
+ ...a,
174
+ value: decodeURIComponent(a.value)
175
+ })), { isDepartment: o } = Wt(n);
176
+ return n == null ? void 0 : n.filter((a) => !Hr(a.key, o));
177
+ }, $i = (r) => r.getAll("facets").flatMap((e) => {
178
+ const [t, ...n] = e.split("/");
179
+ return !t || n.length === 0 ? [] : [
180
+ {
181
+ key: t,
182
+ value: n.join("/")
183
+ }
184
+ ];
185
+ }), Yt = ({ pathname: r, searchParams: e }, t) => {
186
+ const n = e.get("sort") ?? "", o = e.get("query") ?? null, a = parseInt(e.get("page") ?? "1", 10);
187
+ return {
188
+ sort: n,
189
+ facets: Kr(t),
190
+ term: o,
191
+ base: o ? "" : r,
192
+ page: a
193
+ };
194
+ }, Xt = (r) => {
195
+ const e = new URLSearchParams();
196
+ return Object.entries(r).forEach(([t, n]) => {
197
+ Array.isArray(n) ? n.forEach((o) => e.append(t, o)) : n !== void 0 && e.append(t, n);
198
+ }), e;
199
+ }, Ii = (r, e, t = 24, n = 1, o) => {
200
+ const a = `/search?query=${e ?? ""}&count=${t}&page=${n}${o ? `&sort=${o.replace("_", ":")}` : ""}`;
201
+ r.push(a);
202
+ }, Zt = {
203
+ parseSearchState: Yt,
204
+ convertSearchParams: Xt,
205
+ filterNonRootFacets: Jt,
206
+ selectedFacets: Kr,
207
+ filterNonCategorySelected: zt
208
+ }, Ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
209
+ __proto__: null,
210
+ default: Zt
211
+ }, Symbol.toStringTag, { value: "Module" }));
212
+ var mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
213
+ function en(r) {
214
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
215
+ }
216
+ function rn(r) {
217
+ if (r.__esModule) return r;
218
+ var e = r.default;
219
+ if (typeof e == "function") {
220
+ var t = function n() {
221
+ return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
222
+ };
223
+ t.prototype = e.prototype;
224
+ } else t = {};
225
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(n) {
226
+ var o = Object.getOwnPropertyDescriptor(r, n);
227
+ Object.defineProperty(t, n, o.get ? o : {
228
+ enumerable: !0,
229
+ get: function() {
230
+ return r[n];
231
+ }
232
+ });
233
+ }), t;
234
+ }
235
+ const ue = {
236
+ "responsive-mobile-flex": "_responsive-mobile-flex_1e0ai_1",
237
+ "responsive-desktop-flex": "_responsive-desktop-flex_1e0ai_15",
238
+ "responsive-mobile-block": "_responsive-mobile-block_1e0ai_30",
239
+ "responsive-desktop-block": "_responsive-desktop-block_1e0ai_41"
240
+ }, tn = "_header_9xxjk_57", nn = "_actions_9xxjk_131", on = "_breadcrumb_9xxjk_142", an = "_credits_9xxjk_157", ln = "_pdplinks_9xxjk_185", cn = "_similars_9xxjk_212", fn = "_sizes_9xxjk_251", un = "_measurementTable_9xxjk_267", sn = "_measurementHead_9xxjk_280", pn = "_measurementRows_9xxjk_285", yn = "_measurementRowsTitle_9xxjk_302", dn = "_measurementRowsText_9xxjk_314", vn = "_measurementImage_9xxjk_325", mn = "_measurementImageContainer_9xxjk_328", gn = "_measurementContent_9xxjk_337", hn = "_measurementTitle_9xxjk_341", _n = "_measurementClose_9xxjk_352", bn = "_productref_9xxjk_417", Sn = "_slideOut_9xxjk_1", wn = "_slideIn_9xxjk_1", xn = "_content_9xxjk_397", On = "_pdp_9xxjk_185", An = "_divider_9xxjk_575", ki = {
241
+ "bottom-navigation": "_bottom-navigation_9xxjk_1",
242
+ "bottom-navigation__credits-modifier": "_bottom-navigation__credits-modifier_9xxjk_18",
243
+ "bottom-navigation__header": "_bottom-navigation__header_9xxjk_21",
244
+ "bottom-navigation__header-content": "_bottom-navigation__header-content_9xxjk_26",
245
+ "golden-tag-content": "_golden-tag-content_9xxjk_45",
246
+ "bottom-navigation__price-and-promo": "_bottom-navigation__price-and-promo_9xxjk_48",
247
+ header: tn,
248
+ "golden-tag": "_golden-tag_9xxjk_45",
249
+ "golden-tag-video": "_golden-tag-video_9xxjk_86",
250
+ "golden-tag-content-text": "_golden-tag-content-text_9xxjk_105",
251
+ actions: nn,
252
+ "add-to-cart": "_add-to-cart_9xxjk_138",
253
+ breadcrumb: on,
254
+ "breadcrumb--active": "_breadcrumb--active_9xxjk_147",
255
+ credits: an,
256
+ "gallery-carousel-modifier": "_gallery-carousel-modifier_9xxjk_162",
257
+ pdplinks: ln,
258
+ "links-wrapper": "_links-wrapper_9xxjk_195",
259
+ similars: cn,
260
+ "similars-info": "_similars-info_9xxjk_224",
261
+ "toggle-style-modifier": "_toggle-style-modifier_9xxjk_233",
262
+ "accessibility-info": "_accessibility-info_9xxjk_237",
263
+ sizes: fn,
264
+ "price-wrapper": "_price-wrapper_9xxjk_263",
265
+ measurementTable: un,
266
+ measurementHead: sn,
267
+ measurementRows: pn,
268
+ measurementRowsTitle: yn,
269
+ measurementRowsText: dn,
270
+ measurementImage: vn,
271
+ measurementImageContainer: mn,
272
+ measurementContent: gn,
273
+ measurementTitle: hn,
274
+ measurementClose: _n,
275
+ "tabs-root-modifier": "_tabs-root-modifier_9xxjk_358",
276
+ "tabs-list-modifier": "_tabs-list-modifier_9xxjk_376",
277
+ "tabs-item-modifier": "_tabs-item-modifier_9xxjk_393",
278
+ "content-wrapper": "_content-wrapper_9xxjk_397",
279
+ productref: bn,
280
+ "tabs-panel": "_tabs-panel_9xxjk_428",
281
+ "tabs-panel-exit": "_tabs-panel-exit_9xxjk_434",
282
+ slideOut: Sn,
283
+ "tabs-panel-enter": "_tabs-panel-enter_9xxjk_438",
284
+ slideIn: wn,
285
+ content: xn,
286
+ pdp: On,
287
+ "pdp-main": "_pdp-main_9xxjk_496",
288
+ "pdp-main__gallery-wrapper": "_pdp-main__gallery-wrapper_9xxjk_501",
289
+ "pdp-main__info": "_pdp-main__info_9xxjk_518",
290
+ "pdp-main__info-main-content": "_pdp-main__info-main-content_9xxjk_533",
291
+ "pdp-main__info-subsection": "_pdp-main__info-subsection_9xxjk_533",
292
+ "subsection-product-info": "_subsection-product-info_9xxjk_544",
293
+ "subsection-similars": "_subsection-similars_9xxjk_547",
294
+ "subsection-sizes": "_subsection-sizes_9xxjk_550",
295
+ "subsection-actions": "_subsection-actions_9xxjk_553",
296
+ "pdp-main__info-secondary-content": "_pdp-main__info-secondary-content_9xxjk_557",
297
+ "sections-title": "_sections-title_9xxjk_563",
298
+ divider: An,
299
+ "breadcrumbs-desktop": "_breadcrumbs-desktop_9xxjk_580",
300
+ "breadcrumbs-mobile": "_breadcrumbs-mobile_9xxjk_589"
301
+ }, Fi = ({
302
+ children: r,
303
+ data: e,
304
+ SectionZone: t,
305
+ className: n
306
+ }) => {
307
+ var l, p;
308
+ const o = ((l = e == null ? void 0 : e.filter((f) => {
309
+ var d, y;
310
+ return ((y = (d = f.config) == null ? void 0 : d.responsive) == null ? void 0 : y.deviceType) === "mobile";
311
+ })[0]) == null ? void 0 : l.sections) || [], a = ((p = e == null ? void 0 : e.filter((f) => {
312
+ var d, y;
313
+ return ((y = (d = f.config) == null ? void 0 : d.responsive) == null ? void 0 : y.deviceType) === "desktop";
314
+ })[0]) == null ? void 0 : p.sections) || [], i = o.slice(0, 1), u = o.slice(1, o.length), c = a.slice(0, 1), s = a.slice(1, a.length);
315
+ return /* @__PURE__ */ yr(Pt, { children: [
316
+ /* @__PURE__ */ yr("div", { className: n, children: [
317
+ /* @__PURE__ */ $("div", { className: ue["responsive-mobile-flex"], children: /* @__PURE__ */ $(t, { data: i ?? [] }) }),
318
+ /* @__PURE__ */ $("div", { className: ue["responsive-desktop-flex"], children: /* @__PURE__ */ $(t, { data: c ?? [] }) })
319
+ ] }),
320
+ r,
321
+ /* @__PURE__ */ $("div", { className: ue["responsive-mobile-flex"], children: /* @__PURE__ */ $(t, { data: u ?? [] }) }),
322
+ /* @__PURE__ */ $("div", { className: ue["responsive-desktop-flex"], children: /* @__PURE__ */ $(t, { data: s ?? [] }) }),
323
+ /* @__PURE__ */ $(Et.Divider, {})
324
+ ] });
325
+ };
326
+ var J = TypeError;
327
+ const Pn = {}, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
328
+ __proto__: null,
329
+ default: Pn
330
+ }, Symbol.toStringTag, { value: "Module" })), $n = /* @__PURE__ */ rn(En);
331
+ var or = typeof Map == "function" && Map.prototype, Re = Object.getOwnPropertyDescriptor && or ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ge = or && Re && typeof Re.get == "function" ? Re.get : null, gr = or && Map.prototype.forEach, ar = typeof Set == "function" && Set.prototype, ke = Object.getOwnPropertyDescriptor && ar ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, he = ar && ke && typeof ke.get == "function" ? ke.get : null, hr = ar && Set.prototype.forEach, In = typeof WeakMap == "function" && WeakMap.prototype, ee = In ? WeakMap.prototype.has : null, Rn = typeof WeakSet == "function" && WeakSet.prototype, re = Rn ? WeakSet.prototype.has : null, kn = typeof WeakRef == "function" && WeakRef.prototype, _r = kn ? WeakRef.prototype.deref : null, Fn = Boolean.prototype.valueOf, Cn = Object.prototype.toString, Mn = Function.prototype.toString, Dn = String.prototype.match, ir = String.prototype.slice, M = String.prototype.replace, Tn = String.prototype.toUpperCase, br = String.prototype.toLowerCase, Vr = RegExp.prototype.test, Sr = Array.prototype.concat, P = Array.prototype.join, Nn = Array.prototype.slice, wr = Math.floor, Xe = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Fe = Object.getOwnPropertySymbols, Ze = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, V = typeof Symbol == "function" && typeof Symbol.iterator == "object", te = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === V || !0) ? Symbol.toStringTag : null, Qr = Object.prototype.propertyIsEnumerable, xr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
332
+ return r.__proto__;
333
+ } : null);
334
+ function Or(r, e) {
335
+ if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || Vr.call(/e/, e))
336
+ return e;
337
+ var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
338
+ if (typeof r == "number") {
339
+ var n = r < 0 ? -wr(-r) : wr(r);
340
+ if (n !== r) {
341
+ var o = String(n), a = ir.call(e, o.length + 1);
342
+ return M.call(o, t, "$&_") + "." + M.call(M.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
343
+ }
344
+ }
345
+ return M.call(e, t, "$&_");
346
+ }
347
+ var er = $n, Ar = er.custom, Pr = Xr(Ar) ? Ar : null, Jr = {
348
+ __proto__: null,
349
+ double: '"',
350
+ single: "'"
351
+ }, jn = {
352
+ __proto__: null,
353
+ double: /(["\\])/g,
354
+ single: /(['\\])/g
355
+ }, we = function r(e, t, n, o) {
356
+ var a = t || {};
357
+ if (I(a, "quoteStyle") && !I(Jr, a.quoteStyle))
358
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
359
+ if (I(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
360
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
361
+ var i = I(a, "customInspect") ? a.customInspect : !0;
362
+ if (typeof i != "boolean" && i !== "symbol")
363
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
364
+ if (I(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
365
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
366
+ if (I(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
367
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
368
+ var u = a.numericSeparator;
369
+ if (typeof e > "u")
370
+ return "undefined";
371
+ if (e === null)
372
+ return "null";
373
+ if (typeof e == "boolean")
374
+ return e ? "true" : "false";
375
+ if (typeof e == "string")
376
+ return et(e, a);
377
+ if (typeof e == "number") {
378
+ if (e === 0)
379
+ return 1 / 0 / e > 0 ? "0" : "-0";
380
+ var c = String(e);
381
+ return u ? Or(e, c) : c;
382
+ }
383
+ if (typeof e == "bigint") {
384
+ var s = String(e) + "n";
385
+ return u ? Or(e, s) : s;
386
+ }
387
+ var l = typeof a.depth > "u" ? 5 : a.depth;
388
+ if (typeof n > "u" && (n = 0), n >= l && l > 0 && typeof e == "object")
389
+ return rr(e) ? "[Array]" : "[Object]";
390
+ var p = to(a, n);
391
+ if (typeof o > "u")
392
+ o = [];
393
+ else if (Zr(o, e) >= 0)
394
+ return "[Circular]";
395
+ function f(x, C, E) {
396
+ if (C && (o = Nn.call(o), o.push(C)), E) {
397
+ var X = {
398
+ depth: a.depth
399
+ };
400
+ return I(a, "quoteStyle") && (X.quoteStyle = a.quoteStyle), r(x, X, n + 1, o);
401
+ }
402
+ return r(x, a, n + 1, o);
403
+ }
404
+ if (typeof e == "function" && !Er(e)) {
405
+ var d = Kn(e), y = se(e, f);
406
+ return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " + P.call(y, ", ") + " }" : "");
407
+ }
408
+ if (Xr(e)) {
409
+ var h = V ? M.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ze.call(e);
410
+ return typeof e == "object" && !V ? Z(h) : h;
411
+ }
412
+ if (Zn(e)) {
413
+ for (var S = "<" + br.call(String(e.nodeName)), w = e.attributes || [], R = 0; R < w.length; R++)
414
+ S += " " + w[R].name + "=" + Yr(Bn(w[R].value), "double", a);
415
+ return S += ">", e.childNodes && e.childNodes.length && (S += "..."), S += "</" + br.call(String(e.nodeName)) + ">", S;
416
+ }
417
+ if (rr(e)) {
418
+ if (e.length === 0)
419
+ return "[]";
420
+ var m = se(e, f);
421
+ return p && !ro(m) ? "[" + tr(m, p) + "]" : "[ " + P.call(m, ", ") + " ]";
422
+ }
423
+ if (Un(e)) {
424
+ var k = se(e, f);
425
+ return !("cause" in Error.prototype) && "cause" in e && !Qr.call(e, "cause") ? "{ [" + String(e) + "] " + P.call(Sr.call("[cause]: " + f(e.cause), k), ", ") + " }" : k.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + P.call(k, ", ") + " }";
426
+ }
427
+ if (typeof e == "object" && i) {
428
+ if (Pr && typeof e[Pr] == "function" && er)
429
+ return er(e, { depth: l - n });
430
+ if (i !== "symbol" && typeof e.inspect == "function")
431
+ return e.inspect();
432
+ }
433
+ if (Vn(e)) {
434
+ var N = [];
435
+ return gr && gr.call(e, function(x, C) {
436
+ N.push(f(C, e, !0) + " => " + f(x, e));
437
+ }), $r("Map", ge.call(e), N, p);
438
+ }
439
+ if (Yn(e)) {
440
+ var Y = [];
441
+ return hr && hr.call(e, function(x) {
442
+ Y.push(f(x, e));
443
+ }), $r("Set", he.call(e), Y, p);
444
+ }
445
+ if (Qn(e))
446
+ return Ce("WeakMap");
447
+ if (Xn(e))
448
+ return Ce("WeakSet");
449
+ if (Jn(e))
450
+ return Ce("WeakRef");
451
+ if (Wn(e))
452
+ return Z(f(Number(e)));
453
+ if (Gn(e))
454
+ return Z(f(Xe.call(e)));
455
+ if (zn(e))
456
+ return Z(Fn.call(e));
457
+ if (qn(e))
458
+ return Z(f(String(e)));
459
+ if (typeof window < "u" && e === window)
460
+ return "{ [object Window] }";
461
+ if (typeof globalThis < "u" && e === globalThis || typeof mr < "u" && e === mr)
462
+ return "{ [object globalThis] }";
463
+ if (!Ln(e) && !Er(e)) {
464
+ var q = se(e, f), ce = xr ? xr(e) === Object.prototype : e instanceof Object || e.constructor === Object, j = e instanceof Object ? "" : "null prototype", F = !ce && te && Object(e) === e && te in e ? ir.call(T(e), 8, -1) : j ? "Object" : "", fe = ce || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", W = fe + (F || j ? "[" + P.call(Sr.call([], F || [], j || []), ": ") + "] " : "");
465
+ return q.length === 0 ? W + "{}" : p ? W + "{" + tr(q, p) + "}" : W + "{ " + P.call(q, ", ") + " }";
466
+ }
467
+ return String(e);
468
+ };
469
+ function Yr(r, e, t) {
470
+ var n = t.quoteStyle || e, o = Jr[n];
471
+ return o + r + o;
472
+ }
473
+ function Bn(r) {
474
+ return M.call(String(r), /"/g, "&quot;");
475
+ }
476
+ function U(r) {
477
+ return !te || !(typeof r == "object" && (te in r || typeof r[te] < "u"));
478
+ }
479
+ function rr(r) {
480
+ return T(r) === "[object Array]" && U(r);
481
+ }
482
+ function Ln(r) {
483
+ return T(r) === "[object Date]" && U(r);
484
+ }
485
+ function Er(r) {
486
+ return T(r) === "[object RegExp]" && U(r);
487
+ }
488
+ function Un(r) {
489
+ return T(r) === "[object Error]" && U(r);
490
+ }
491
+ function qn(r) {
492
+ return T(r) === "[object String]" && U(r);
493
+ }
494
+ function Wn(r) {
495
+ return T(r) === "[object Number]" && U(r);
496
+ }
497
+ function zn(r) {
498
+ return T(r) === "[object Boolean]" && U(r);
499
+ }
500
+ function Xr(r) {
501
+ if (V)
502
+ return r && typeof r == "object" && r instanceof Symbol;
503
+ if (typeof r == "symbol")
504
+ return !0;
505
+ if (!r || typeof r != "object" || !Ze)
506
+ return !1;
507
+ try {
508
+ return Ze.call(r), !0;
509
+ } catch {
510
+ }
511
+ return !1;
512
+ }
513
+ function Gn(r) {
514
+ if (!r || typeof r != "object" || !Xe)
515
+ return !1;
516
+ try {
517
+ return Xe.call(r), !0;
518
+ } catch {
519
+ }
520
+ return !1;
521
+ }
522
+ var Hn = Object.prototype.hasOwnProperty || function(r) {
523
+ return r in this;
524
+ };
525
+ function I(r, e) {
526
+ return Hn.call(r, e);
527
+ }
528
+ function T(r) {
529
+ return Cn.call(r);
530
+ }
531
+ function Kn(r) {
532
+ if (r.name)
533
+ return r.name;
534
+ var e = Dn.call(Mn.call(r), /^function\s*([\w$]+)/);
535
+ return e ? e[1] : null;
536
+ }
537
+ function Zr(r, e) {
538
+ if (r.indexOf)
539
+ return r.indexOf(e);
540
+ for (var t = 0, n = r.length; t < n; t++)
541
+ if (r[t] === e)
542
+ return t;
543
+ return -1;
544
+ }
545
+ function Vn(r) {
546
+ if (!ge || !r || typeof r != "object")
547
+ return !1;
548
+ try {
549
+ ge.call(r);
550
+ try {
551
+ he.call(r);
552
+ } catch {
553
+ return !0;
554
+ }
555
+ return r instanceof Map;
556
+ } catch {
557
+ }
558
+ return !1;
559
+ }
560
+ function Qn(r) {
561
+ if (!ee || !r || typeof r != "object")
562
+ return !1;
563
+ try {
564
+ ee.call(r, ee);
565
+ try {
566
+ re.call(r, re);
567
+ } catch {
568
+ return !0;
569
+ }
570
+ return r instanceof WeakMap;
571
+ } catch {
572
+ }
573
+ return !1;
574
+ }
575
+ function Jn(r) {
576
+ if (!_r || !r || typeof r != "object")
577
+ return !1;
578
+ try {
579
+ return _r.call(r), !0;
580
+ } catch {
581
+ }
582
+ return !1;
583
+ }
584
+ function Yn(r) {
585
+ if (!he || !r || typeof r != "object")
586
+ return !1;
587
+ try {
588
+ he.call(r);
589
+ try {
590
+ ge.call(r);
591
+ } catch {
592
+ return !0;
593
+ }
594
+ return r instanceof Set;
595
+ } catch {
596
+ }
597
+ return !1;
598
+ }
599
+ function Xn(r) {
600
+ if (!re || !r || typeof r != "object")
601
+ return !1;
602
+ try {
603
+ re.call(r, re);
604
+ try {
605
+ ee.call(r, ee);
606
+ } catch {
607
+ return !0;
608
+ }
609
+ return r instanceof WeakSet;
610
+ } catch {
611
+ }
612
+ return !1;
613
+ }
614
+ function Zn(r) {
615
+ return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
616
+ }
617
+ function et(r, e) {
618
+ if (r.length > e.maxStringLength) {
619
+ var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
620
+ return et(ir.call(r, 0, e.maxStringLength), e) + n;
621
+ }
622
+ var o = jn[e.quoteStyle || "single"];
623
+ o.lastIndex = 0;
624
+ var a = M.call(M.call(r, o, "\\$1"), /[\x00-\x1f]/g, eo);
625
+ return Yr(a, "single", e);
626
+ }
627
+ function eo(r) {
628
+ var e = r.charCodeAt(0), t = {
629
+ 8: "b",
630
+ 9: "t",
631
+ 10: "n",
632
+ 12: "f",
633
+ 13: "r"
634
+ }[e];
635
+ return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + Tn.call(e.toString(16));
636
+ }
637
+ function Z(r) {
638
+ return "Object(" + r + ")";
639
+ }
640
+ function Ce(r) {
641
+ return r + " { ? }";
642
+ }
643
+ function $r(r, e, t, n) {
644
+ var o = n ? tr(t, n) : P.call(t, ", ");
645
+ return r + " (" + e + ") {" + o + "}";
646
+ }
647
+ function ro(r) {
648
+ for (var e = 0; e < r.length; e++)
649
+ if (Zr(r[e], `
650
+ `) >= 0)
651
+ return !1;
652
+ return !0;
653
+ }
654
+ function to(r, e) {
655
+ var t;
656
+ if (r.indent === " ")
657
+ t = " ";
658
+ else if (typeof r.indent == "number" && r.indent > 0)
659
+ t = P.call(Array(r.indent + 1), " ");
660
+ else
661
+ return null;
662
+ return {
663
+ base: t,
664
+ prev: P.call(Array(e + 1), t)
665
+ };
666
+ }
667
+ function tr(r, e) {
668
+ if (r.length === 0)
669
+ return "";
670
+ var t = `
671
+ ` + e.prev + e.base;
672
+ return t + P.call(r, "," + t) + `
673
+ ` + e.prev;
674
+ }
675
+ function se(r, e) {
676
+ var t = rr(r), n = [];
677
+ if (t) {
678
+ n.length = r.length;
679
+ for (var o = 0; o < r.length; o++)
680
+ n[o] = I(r, o) ? e(r[o], r) : "";
681
+ }
682
+ var a = typeof Fe == "function" ? Fe(r) : [], i;
683
+ if (V) {
684
+ i = {};
685
+ for (var u = 0; u < a.length; u++)
686
+ i["$" + a[u]] = a[u];
687
+ }
688
+ for (var c in r)
689
+ I(r, c) && (t && String(Number(c)) === c && c < r.length || V && i["$" + c] instanceof Symbol || (Vr.call(/[^\w$]/, c) ? n.push(e(c, r) + ": " + e(r[c], r)) : n.push(c + ": " + e(r[c], r))));
690
+ if (typeof Fe == "function")
691
+ for (var s = 0; s < a.length; s++)
692
+ Qr.call(r, a[s]) && n.push("[" + e(a[s]) + "]: " + e(r[a[s]], r));
693
+ return n;
694
+ }
695
+ var no = we, oo = J, xe = function(r, e, t) {
696
+ for (var n = r, o; (o = n.next) != null; n = o)
697
+ if (o.key === e)
698
+ return n.next = o.next, t || (o.next = /** @type {NonNullable<typeof list.next>} */
699
+ r.next, r.next = o), o;
700
+ }, ao = function(r, e) {
701
+ if (r) {
702
+ var t = xe(r, e);
703
+ return t && t.value;
704
+ }
705
+ }, io = function(r, e, t) {
706
+ var n = xe(r, e);
707
+ n ? n.value = t : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
708
+ {
709
+ // eslint-disable-line no-param-reassign, no-extra-parens
710
+ key: e,
711
+ next: r.next,
712
+ value: t
713
+ };
714
+ }, lo = function(r, e) {
715
+ return r ? !!xe(r, e) : !1;
716
+ }, co = function(r, e) {
717
+ if (r)
718
+ return xe(r, e, !0);
719
+ }, fo = function() {
720
+ var e, t = {
721
+ assert: function(n) {
722
+ if (!t.has(n))
723
+ throw new oo("Side channel does not contain " + no(n));
724
+ },
725
+ delete: function(n) {
726
+ var o = e && e.next, a = co(e, n);
727
+ return a && o && o === a && (e = void 0), !!a;
728
+ },
729
+ get: function(n) {
730
+ return ao(e, n);
731
+ },
732
+ has: function(n) {
733
+ return lo(e, n);
734
+ },
735
+ set: function(n, o) {
736
+ e || (e = {
737
+ next: void 0
738
+ }), io(
739
+ /** @type {NonNullable<typeof $o>} */
740
+ e,
741
+ n,
742
+ o
743
+ );
744
+ }
745
+ };
746
+ return t;
747
+ }, rt = Object, uo = Error, so = EvalError, po = RangeError, yo = ReferenceError, vo = SyntaxError, mo = URIError, go = Math.abs, ho = Math.floor, _o = Math.max, bo = Math.min, So = Math.pow, wo = Math.round, xo = Number.isNaN || function(e) {
748
+ return e !== e;
749
+ }, Oo = xo, Ao = function(e) {
750
+ return Oo(e) || e === 0 ? e : e < 0 ? -1 : 1;
751
+ }, Po = Object.getOwnPropertyDescriptor, ye = Po;
752
+ if (ye)
753
+ try {
754
+ ye([], "length");
755
+ } catch {
756
+ ye = null;
757
+ }
758
+ var tt = ye, de = Object.defineProperty || !1;
759
+ if (de)
760
+ try {
761
+ de({}, "a", { value: 1 });
762
+ } catch {
763
+ de = !1;
764
+ }
765
+ var Eo = de, Me, Ir;
766
+ function $o() {
767
+ return Ir || (Ir = 1, Me = function() {
768
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
769
+ return !1;
770
+ if (typeof Symbol.iterator == "symbol")
771
+ return !0;
772
+ var e = {}, t = Symbol("test"), n = Object(t);
773
+ if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
774
+ return !1;
775
+ var o = 42;
776
+ e[t] = o;
777
+ for (var a in e)
778
+ return !1;
779
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
780
+ return !1;
781
+ var i = Object.getOwnPropertySymbols(e);
782
+ if (i.length !== 1 || i[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
783
+ return !1;
784
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
785
+ var u = (
786
+ /** @type {PropertyDescriptor} */
787
+ Object.getOwnPropertyDescriptor(e, t)
788
+ );
789
+ if (u.value !== o || u.enumerable !== !0)
790
+ return !1;
791
+ }
792
+ return !0;
793
+ }), Me;
794
+ }
795
+ var De, Rr;
796
+ function Io() {
797
+ if (Rr) return De;
798
+ Rr = 1;
799
+ var r = typeof Symbol < "u" && Symbol, e = $o();
800
+ return De = function() {
801
+ return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
802
+ }, De;
803
+ }
804
+ var Te, kr;
805
+ function nt() {
806
+ return kr || (kr = 1, Te = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Te;
807
+ }
808
+ var Ne, Fr;
809
+ function ot() {
810
+ if (Fr) return Ne;
811
+ Fr = 1;
812
+ var r = rt;
813
+ return Ne = r.getPrototypeOf || null, Ne;
814
+ }
815
+ var je, Cr;
816
+ function Ro() {
817
+ if (Cr) return je;
818
+ Cr = 1;
819
+ var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", o = function(c, s) {
820
+ for (var l = [], p = 0; p < c.length; p += 1)
821
+ l[p] = c[p];
822
+ for (var f = 0; f < s.length; f += 1)
823
+ l[f + c.length] = s[f];
824
+ return l;
825
+ }, a = function(c, s) {
826
+ for (var l = [], p = s, f = 0; p < c.length; p += 1, f += 1)
827
+ l[f] = c[p];
828
+ return l;
829
+ }, i = function(u, c) {
830
+ for (var s = "", l = 0; l < u.length; l += 1)
831
+ s += u[l], l + 1 < u.length && (s += c);
832
+ return s;
833
+ };
834
+ return je = function(c) {
835
+ var s = this;
836
+ if (typeof s != "function" || e.apply(s) !== n)
837
+ throw new TypeError(r + s);
838
+ for (var l = a(arguments, 1), p, f = function() {
839
+ if (this instanceof p) {
840
+ var w = s.apply(
841
+ this,
842
+ o(l, arguments)
843
+ );
844
+ return Object(w) === w ? w : this;
845
+ }
846
+ return s.apply(
847
+ c,
848
+ o(l, arguments)
849
+ );
850
+ }, d = t(0, s.length - l.length), y = [], h = 0; h < d; h++)
851
+ y[h] = "$" + h;
852
+ if (p = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(f), s.prototype) {
853
+ var S = function() {
854
+ };
855
+ S.prototype = s.prototype, p.prototype = new S(), S.prototype = null;
856
+ }
857
+ return p;
858
+ }, je;
859
+ }
860
+ var Be, Mr;
861
+ function Oe() {
862
+ if (Mr) return Be;
863
+ Mr = 1;
864
+ var r = Ro();
865
+ return Be = Function.prototype.bind || r, Be;
866
+ }
867
+ var Le, Dr;
868
+ function lr() {
869
+ return Dr || (Dr = 1, Le = Function.prototype.call), Le;
870
+ }
871
+ var Ue, Tr;
872
+ function at() {
873
+ return Tr || (Tr = 1, Ue = Function.prototype.apply), Ue;
874
+ }
875
+ var ko = typeof Reflect < "u" && Reflect && Reflect.apply, Fo = Oe(), Co = at(), Mo = lr(), Do = ko, To = Do || Fo.call(Mo, Co), No = Oe(), jo = J, Bo = lr(), Lo = To, it = function(e) {
876
+ if (e.length < 1 || typeof e[0] != "function")
877
+ throw new jo("a function is required");
878
+ return Lo(No, Bo, e);
879
+ }, qe, Nr;
880
+ function Uo() {
881
+ if (Nr) return qe;
882
+ Nr = 1;
883
+ var r = it, e = tt, t;
884
+ try {
885
+ t = /** @type {{ __proto__?: typeof Array.prototype }} */
886
+ [].__proto__ === Array.prototype;
887
+ } catch (i) {
888
+ if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
889
+ throw i;
890
+ }
891
+ var n = !!t && e && e(
892
+ Object.prototype,
893
+ /** @type {keyof typeof Object.prototype} */
894
+ "__proto__"
895
+ ), o = Object, a = o.getPrototypeOf;
896
+ return qe = n && typeof n.get == "function" ? r([n.get]) : typeof a == "function" ? (
897
+ /** @type {import('./get')} */
898
+ function(u) {
899
+ return a(u == null ? u : o(u));
900
+ }
901
+ ) : !1, qe;
902
+ }
903
+ var We, jr;
904
+ function qo() {
905
+ if (jr) return We;
906
+ jr = 1;
907
+ var r = nt(), e = ot(), t = Uo();
908
+ return We = r ? function(o) {
909
+ return r(o);
910
+ } : e ? function(o) {
911
+ if (!o || typeof o != "object" && typeof o != "function")
912
+ throw new TypeError("getProto: not an object");
913
+ return e(o);
914
+ } : t ? function(o) {
915
+ return t(o);
916
+ } : null, We;
917
+ }
918
+ var ze, Br;
919
+ function Wo() {
920
+ if (Br) return ze;
921
+ Br = 1;
922
+ var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Oe();
923
+ return ze = t.call(r, e), ze;
924
+ }
925
+ var v, zo = rt, Go = uo, Ho = so, Ko = po, Vo = yo, Q = vo, K = J, Qo = mo, Jo = go, Yo = ho, Xo = _o, Zo = bo, ea = So, ra = wo, ta = Ao, lt = Function, Ge = function(r) {
926
+ try {
927
+ return lt('"use strict"; return (' + r + ").constructor;")();
928
+ } catch {
929
+ }
930
+ }, oe = tt, na = Eo, He = function() {
931
+ throw new K();
932
+ }, oa = oe ? function() {
933
+ try {
934
+ return arguments.callee, He;
935
+ } catch {
936
+ try {
937
+ return oe(arguments, "callee").get;
938
+ } catch {
939
+ return He;
940
+ }
941
+ }
942
+ }() : He, z = Io()(), b = qo(), aa = ot(), ia = nt(), ct = at(), ae = lr(), H = {}, la = typeof Uint8Array > "u" || !b ? v : b(Uint8Array), L = {
943
+ __proto__: null,
944
+ "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
945
+ "%Array%": Array,
946
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
947
+ "%ArrayIteratorPrototype%": z && b ? b([][Symbol.iterator]()) : v,
948
+ "%AsyncFromSyncIteratorPrototype%": v,
949
+ "%AsyncFunction%": H,
950
+ "%AsyncGenerator%": H,
951
+ "%AsyncGeneratorFunction%": H,
952
+ "%AsyncIteratorPrototype%": H,
953
+ "%Atomics%": typeof Atomics > "u" ? v : Atomics,
954
+ "%BigInt%": typeof BigInt > "u" ? v : BigInt,
955
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
956
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
957
+ "%Boolean%": Boolean,
958
+ "%DataView%": typeof DataView > "u" ? v : DataView,
959
+ "%Date%": Date,
960
+ "%decodeURI%": decodeURI,
961
+ "%decodeURIComponent%": decodeURIComponent,
962
+ "%encodeURI%": encodeURI,
963
+ "%encodeURIComponent%": encodeURIComponent,
964
+ "%Error%": Go,
965
+ "%eval%": eval,
966
+ // eslint-disable-line no-eval
967
+ "%EvalError%": Ho,
968
+ "%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
969
+ "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
970
+ "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
971
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
972
+ "%Function%": lt,
973
+ "%GeneratorFunction%": H,
974
+ "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
975
+ "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
976
+ "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
977
+ "%isFinite%": isFinite,
978
+ "%isNaN%": isNaN,
979
+ "%IteratorPrototype%": z && b ? b(b([][Symbol.iterator]())) : v,
980
+ "%JSON%": typeof JSON == "object" ? JSON : v,
981
+ "%Map%": typeof Map > "u" ? v : Map,
982
+ "%MapIteratorPrototype%": typeof Map > "u" || !z || !b ? v : b((/* @__PURE__ */ new Map())[Symbol.iterator]()),
983
+ "%Math%": Math,
984
+ "%Number%": Number,
985
+ "%Object%": zo,
986
+ "%Object.getOwnPropertyDescriptor%": oe,
987
+ "%parseFloat%": parseFloat,
988
+ "%parseInt%": parseInt,
989
+ "%Promise%": typeof Promise > "u" ? v : Promise,
990
+ "%Proxy%": typeof Proxy > "u" ? v : Proxy,
991
+ "%RangeError%": Ko,
992
+ "%ReferenceError%": Vo,
993
+ "%Reflect%": typeof Reflect > "u" ? v : Reflect,
994
+ "%RegExp%": RegExp,
995
+ "%Set%": typeof Set > "u" ? v : Set,
996
+ "%SetIteratorPrototype%": typeof Set > "u" || !z || !b ? v : b((/* @__PURE__ */ new Set())[Symbol.iterator]()),
997
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
998
+ "%String%": String,
999
+ "%StringIteratorPrototype%": z && b ? b(""[Symbol.iterator]()) : v,
1000
+ "%Symbol%": z ? Symbol : v,
1001
+ "%SyntaxError%": Q,
1002
+ "%ThrowTypeError%": oa,
1003
+ "%TypedArray%": la,
1004
+ "%TypeError%": K,
1005
+ "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
1006
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
1007
+ "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
1008
+ "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
1009
+ "%URIError%": Qo,
1010
+ "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
1011
+ "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
1012
+ "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
1013
+ "%Function.prototype.call%": ae,
1014
+ "%Function.prototype.apply%": ct,
1015
+ "%Object.defineProperty%": na,
1016
+ "%Object.getPrototypeOf%": aa,
1017
+ "%Math.abs%": Jo,
1018
+ "%Math.floor%": Yo,
1019
+ "%Math.max%": Xo,
1020
+ "%Math.min%": Zo,
1021
+ "%Math.pow%": ea,
1022
+ "%Math.round%": ra,
1023
+ "%Math.sign%": ta,
1024
+ "%Reflect.getPrototypeOf%": ia
1025
+ };
1026
+ if (b)
1027
+ try {
1028
+ null.error;
1029
+ } catch (r) {
1030
+ var ca = b(b(r));
1031
+ L["%Error.prototype%"] = ca;
1032
+ }
1033
+ var fa = function r(e) {
1034
+ var t;
1035
+ if (e === "%AsyncFunction%")
1036
+ t = Ge("async function () {}");
1037
+ else if (e === "%GeneratorFunction%")
1038
+ t = Ge("function* () {}");
1039
+ else if (e === "%AsyncGeneratorFunction%")
1040
+ t = Ge("async function* () {}");
1041
+ else if (e === "%AsyncGenerator%") {
1042
+ var n = r("%AsyncGeneratorFunction%");
1043
+ n && (t = n.prototype);
1044
+ } else if (e === "%AsyncIteratorPrototype%") {
1045
+ var o = r("%AsyncGenerator%");
1046
+ o && b && (t = b(o.prototype));
1047
+ }
1048
+ return L[e] = t, t;
1049
+ }, Lr = {
1050
+ __proto__: null,
1051
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1052
+ "%ArrayPrototype%": ["Array", "prototype"],
1053
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1054
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1055
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1056
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
1057
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1058
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1059
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1060
+ "%BooleanPrototype%": ["Boolean", "prototype"],
1061
+ "%DataViewPrototype%": ["DataView", "prototype"],
1062
+ "%DatePrototype%": ["Date", "prototype"],
1063
+ "%ErrorPrototype%": ["Error", "prototype"],
1064
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
1065
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1066
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1067
+ "%FunctionPrototype%": ["Function", "prototype"],
1068
+ "%Generator%": ["GeneratorFunction", "prototype"],
1069
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1070
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1071
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1072
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1073
+ "%JSONParse%": ["JSON", "parse"],
1074
+ "%JSONStringify%": ["JSON", "stringify"],
1075
+ "%MapPrototype%": ["Map", "prototype"],
1076
+ "%NumberPrototype%": ["Number", "prototype"],
1077
+ "%ObjectPrototype%": ["Object", "prototype"],
1078
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
1079
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1080
+ "%PromisePrototype%": ["Promise", "prototype"],
1081
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
1082
+ "%Promise_all%": ["Promise", "all"],
1083
+ "%Promise_reject%": ["Promise", "reject"],
1084
+ "%Promise_resolve%": ["Promise", "resolve"],
1085
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
1086
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1087
+ "%RegExpPrototype%": ["RegExp", "prototype"],
1088
+ "%SetPrototype%": ["Set", "prototype"],
1089
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1090
+ "%StringPrototype%": ["String", "prototype"],
1091
+ "%SymbolPrototype%": ["Symbol", "prototype"],
1092
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1093
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1094
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
1095
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1096
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1097
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1098
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1099
+ "%URIErrorPrototype%": ["URIError", "prototype"],
1100
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
1101
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
1102
+ }, ie = Oe(), _e = Wo(), ua = ie.call(ae, Array.prototype.concat), sa = ie.call(ct, Array.prototype.splice), Ur = ie.call(ae, String.prototype.replace), be = ie.call(ae, String.prototype.slice), pa = ie.call(ae, RegExp.prototype.exec), ya = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, da = /\\(\\)?/g, va = function(e) {
1103
+ var t = be(e, 0, 1), n = be(e, -1);
1104
+ if (t === "%" && n !== "%")
1105
+ throw new Q("invalid intrinsic syntax, expected closing `%`");
1106
+ if (n === "%" && t !== "%")
1107
+ throw new Q("invalid intrinsic syntax, expected opening `%`");
1108
+ var o = [];
1109
+ return Ur(e, ya, function(a, i, u, c) {
1110
+ o[o.length] = u ? Ur(c, da, "$1") : i || a;
1111
+ }), o;
1112
+ }, ma = function(e, t) {
1113
+ var n = e, o;
1114
+ if (_e(Lr, n) && (o = Lr[n], n = "%" + o[0] + "%"), _e(L, n)) {
1115
+ var a = L[n];
1116
+ if (a === H && (a = fa(n)), typeof a > "u" && !t)
1117
+ throw new K("intrinsic " + e + " exists, but is not available. Please file an issue!");
1118
+ return {
1119
+ alias: o,
1120
+ name: n,
1121
+ value: a
1122
+ };
1123
+ }
1124
+ throw new Q("intrinsic " + e + " does not exist!");
1125
+ }, cr = function(e, t) {
1126
+ if (typeof e != "string" || e.length === 0)
1127
+ throw new K("intrinsic name must be a non-empty string");
1128
+ if (arguments.length > 1 && typeof t != "boolean")
1129
+ throw new K('"allowMissing" argument must be a boolean');
1130
+ if (pa(/^%?[^%]*%?$/, e) === null)
1131
+ throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1132
+ var n = va(e), o = n.length > 0 ? n[0] : "", a = ma("%" + o + "%", t), i = a.name, u = a.value, c = !1, s = a.alias;
1133
+ s && (o = s[0], sa(n, ua([0, 1], s)));
1134
+ for (var l = 1, p = !0; l < n.length; l += 1) {
1135
+ var f = n[l], d = be(f, 0, 1), y = be(f, -1);
1136
+ if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
1137
+ throw new Q("property names with quotes must have matching quotes");
1138
+ if ((f === "constructor" || !p) && (c = !0), o += "." + f, i = "%" + o + "%", _e(L, i))
1139
+ u = L[i];
1140
+ else if (u != null) {
1141
+ if (!(f in u)) {
1142
+ if (!t)
1143
+ throw new K("base intrinsic for " + e + " exists, but the property is not available.");
1144
+ return;
1145
+ }
1146
+ if (oe && l + 1 >= n.length) {
1147
+ var h = oe(u, f);
1148
+ p = !!h, p && "get" in h && !("originalValue" in h.get) ? u = h.get : u = u[f];
1149
+ } else
1150
+ p = _e(u, f), u = u[f];
1151
+ p && !c && (L[i] = u);
1152
+ }
1153
+ }
1154
+ return u;
1155
+ }, ft = cr, ut = it, ga = ut([ft("%String.prototype.indexOf%")]), st = function(e, t) {
1156
+ var n = (
1157
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1158
+ ft(e, !!t)
1159
+ );
1160
+ return typeof n == "function" && ga(e, ".prototype.") > -1 ? ut(
1161
+ /** @type {const} */
1162
+ [n]
1163
+ ) : n;
1164
+ }, ha = cr, le = st, _a = we, ba = J, qr = ha("%Map%", !0), Sa = le("Map.prototype.get", !0), wa = le("Map.prototype.set", !0), xa = le("Map.prototype.has", !0), Oa = le("Map.prototype.delete", !0), Aa = le("Map.prototype.size", !0), pt = !!qr && /** @type {Exclude<import('.'), false>} */
1165
+ function() {
1166
+ var e, t = {
1167
+ assert: function(n) {
1168
+ if (!t.has(n))
1169
+ throw new ba("Side channel does not contain " + _a(n));
1170
+ },
1171
+ delete: function(n) {
1172
+ if (e) {
1173
+ var o = Oa(e, n);
1174
+ return Aa(e) === 0 && (e = void 0), o;
1175
+ }
1176
+ return !1;
1177
+ },
1178
+ get: function(n) {
1179
+ if (e)
1180
+ return Sa(e, n);
1181
+ },
1182
+ has: function(n) {
1183
+ return e ? xa(e, n) : !1;
1184
+ },
1185
+ set: function(n, o) {
1186
+ e || (e = new qr()), wa(e, n, o);
1187
+ }
1188
+ };
1189
+ return t;
1190
+ }, Pa = cr, Ae = st, Ea = we, pe = pt, $a = J, G = Pa("%WeakMap%", !0), Ia = Ae("WeakMap.prototype.get", !0), Ra = Ae("WeakMap.prototype.set", !0), ka = Ae("WeakMap.prototype.has", !0), Fa = Ae("WeakMap.prototype.delete", !0), Ca = G ? (
1191
+ /** @type {Exclude<import('.'), false>} */
1192
+ function() {
1193
+ var e, t, n = {
1194
+ assert: function(o) {
1195
+ if (!n.has(o))
1196
+ throw new $a("Side channel does not contain " + Ea(o));
1197
+ },
1198
+ delete: function(o) {
1199
+ if (G && o && (typeof o == "object" || typeof o == "function")) {
1200
+ if (e)
1201
+ return Fa(e, o);
1202
+ } else if (pe && t)
1203
+ return t.delete(o);
1204
+ return !1;
1205
+ },
1206
+ get: function(o) {
1207
+ return G && o && (typeof o == "object" || typeof o == "function") && e ? Ia(e, o) : t && t.get(o);
1208
+ },
1209
+ has: function(o) {
1210
+ return G && o && (typeof o == "object" || typeof o == "function") && e ? ka(e, o) : !!t && t.has(o);
1211
+ },
1212
+ set: function(o, a) {
1213
+ G && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new G()), Ra(e, o, a)) : pe && (t || (t = pe()), t.set(o, a));
1214
+ }
1215
+ };
1216
+ return n;
1217
+ }
1218
+ ) : pe, Ma = J, Da = we, Ta = fo, Na = pt, ja = Ca, Ba = ja || Na || Ta, yt = function() {
1219
+ var e, t = {
1220
+ assert: function(n) {
1221
+ if (!t.has(n))
1222
+ throw new Ma("Side channel does not contain " + Da(n));
1223
+ },
1224
+ delete: function(n) {
1225
+ return !!e && e.delete(n);
1226
+ },
1227
+ get: function(n) {
1228
+ return e && e.get(n);
1229
+ },
1230
+ has: function(n) {
1231
+ return !!e && e.has(n);
1232
+ },
1233
+ set: function(n, o) {
1234
+ e || (e = Ba()), e.set(n, o);
1235
+ }
1236
+ };
1237
+ return t;
1238
+ }, La = String.prototype.replace, Ua = /%20/g, Ke = {
1239
+ RFC1738: "RFC1738",
1240
+ RFC3986: "RFC3986"
1241
+ }, fr = {
1242
+ default: Ke.RFC3986,
1243
+ formatters: {
1244
+ RFC1738: function(r) {
1245
+ return La.call(r, Ua, "+");
1246
+ },
1247
+ RFC3986: function(r) {
1248
+ return String(r);
1249
+ }
1250
+ },
1251
+ RFC1738: Ke.RFC1738,
1252
+ RFC3986: Ke.RFC3986
1253
+ }, qa = fr, Wa = yt, Ve = Object.prototype.hasOwnProperty, B = Array.isArray, Pe = Wa(), dt = function(e, t) {
1254
+ return Pe.set(e, t), e;
1255
+ }, Se = function(e) {
1256
+ return Pe.has(e);
1257
+ }, nr = function(e) {
1258
+ return Pe.get(e);
1259
+ }, vt = function(e, t) {
1260
+ Pe.set(e, t);
1261
+ }, O = function() {
1262
+ for (var r = [], e = 0; e < 256; ++e)
1263
+ r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1264
+ return r;
1265
+ }(), za = function(e) {
1266
+ for (; e.length > 1; ) {
1267
+ var t = e.pop(), n = t.obj[t.prop];
1268
+ if (B(n)) {
1269
+ for (var o = [], a = 0; a < n.length; ++a)
1270
+ typeof n[a] < "u" && o.push(n[a]);
1271
+ t.obj[t.prop] = o;
1272
+ }
1273
+ }
1274
+ }, ur = function(e, t) {
1275
+ for (var n = t && t.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
1276
+ typeof e[o] < "u" && (n[o] = e[o]);
1277
+ return n;
1278
+ }, Ga = function r(e, t, n) {
1279
+ if (!t)
1280
+ return e;
1281
+ if (typeof t != "object" && typeof t != "function") {
1282
+ if (B(e))
1283
+ e.push(t);
1284
+ else if (e && typeof e == "object")
1285
+ if (Se(e)) {
1286
+ var o = nr(e) + 1;
1287
+ e[o] = t, vt(e, o);
1288
+ } else (n && (n.plainObjects || n.allowPrototypes) || !Ve.call(Object.prototype, t)) && (e[t] = !0);
1289
+ else
1290
+ return [e, t];
1291
+ return e;
1292
+ }
1293
+ if (!e || typeof e != "object") {
1294
+ if (Se(t)) {
1295
+ for (var a = Object.keys(t), i = n && n.plainObjects ? { __proto__: null, 0: e } : { 0: e }, u = 0; u < a.length; u++) {
1296
+ var c = parseInt(a[u], 10);
1297
+ i[c + 1] = t[a[u]];
1298
+ }
1299
+ return dt(i, nr(t) + 1);
1300
+ }
1301
+ return [e].concat(t);
1302
+ }
1303
+ var s = e;
1304
+ return B(e) && !B(t) && (s = ur(e, n)), B(e) && B(t) ? (t.forEach(function(l, p) {
1305
+ if (Ve.call(e, p)) {
1306
+ var f = e[p];
1307
+ f && typeof f == "object" && l && typeof l == "object" ? e[p] = r(f, l, n) : e.push(l);
1308
+ } else
1309
+ e[p] = l;
1310
+ }), e) : Object.keys(t).reduce(function(l, p) {
1311
+ var f = t[p];
1312
+ return Ve.call(l, p) ? l[p] = r(l[p], f, n) : l[p] = f, l;
1313
+ }, s);
1314
+ }, Ha = function(e, t) {
1315
+ return Object.keys(t).reduce(function(n, o) {
1316
+ return n[o] = t[o], n;
1317
+ }, e);
1318
+ }, Ka = function(r, e, t) {
1319
+ var n = r.replace(/\+/g, " ");
1320
+ if (t === "iso-8859-1")
1321
+ return n.replace(/%[0-9a-f]{2}/gi, unescape);
1322
+ try {
1323
+ return decodeURIComponent(n);
1324
+ } catch {
1325
+ return n;
1326
+ }
1327
+ }, Qe = 1024, Va = function(e, t, n, o, a) {
1328
+ if (e.length === 0)
1329
+ return e;
1330
+ var i = e;
1331
+ if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
1332
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(d) {
1333
+ return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
1334
+ });
1335
+ for (var u = "", c = 0; c < i.length; c += Qe) {
1336
+ for (var s = i.length >= Qe ? i.slice(c, c + Qe) : i, l = [], p = 0; p < s.length; ++p) {
1337
+ var f = s.charCodeAt(p);
1338
+ if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === qa.RFC1738 && (f === 40 || f === 41)) {
1339
+ l[l.length] = s.charAt(p);
1340
+ continue;
1341
+ }
1342
+ if (f < 128) {
1343
+ l[l.length] = O[f];
1344
+ continue;
1345
+ }
1346
+ if (f < 2048) {
1347
+ l[l.length] = O[192 | f >> 6] + O[128 | f & 63];
1348
+ continue;
1349
+ }
1350
+ if (f < 55296 || f >= 57344) {
1351
+ l[l.length] = O[224 | f >> 12] + O[128 | f >> 6 & 63] + O[128 | f & 63];
1352
+ continue;
1353
+ }
1354
+ p += 1, f = 65536 + ((f & 1023) << 10 | s.charCodeAt(p) & 1023), l[l.length] = O[240 | f >> 18] + O[128 | f >> 12 & 63] + O[128 | f >> 6 & 63] + O[128 | f & 63];
1355
+ }
1356
+ u += l.join("");
1357
+ }
1358
+ return u;
1359
+ }, Qa = function(e) {
1360
+ for (var t = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < t.length; ++o)
1361
+ for (var a = t[o], i = a.obj[a.prop], u = Object.keys(i), c = 0; c < u.length; ++c) {
1362
+ var s = u[c], l = i[s];
1363
+ typeof l == "object" && l !== null && n.indexOf(l) === -1 && (t.push({ obj: i, prop: s }), n.push(l));
1364
+ }
1365
+ return za(t), e;
1366
+ }, Ja = function(e) {
1367
+ return Object.prototype.toString.call(e) === "[object RegExp]";
1368
+ }, Ya = function(e) {
1369
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1370
+ }, Xa = function(e, t, n, o) {
1371
+ if (Se(e)) {
1372
+ var a = nr(e) + 1;
1373
+ return e[a] = t, vt(e, a), e;
1374
+ }
1375
+ var i = [].concat(e, t);
1376
+ return i.length > n ? dt(ur(i, { plainObjects: o }), i.length - 1) : i;
1377
+ }, Za = function(e, t) {
1378
+ if (B(e)) {
1379
+ for (var n = [], o = 0; o < e.length; o += 1)
1380
+ n.push(t(e[o]));
1381
+ return n;
1382
+ }
1383
+ return t(e);
1384
+ }, mt = {
1385
+ arrayToObject: ur,
1386
+ assign: Ha,
1387
+ combine: Xa,
1388
+ compact: Qa,
1389
+ decode: Ka,
1390
+ encode: Va,
1391
+ isBuffer: Ya,
1392
+ isOverflow: Se,
1393
+ isRegExp: Ja,
1394
+ maybeMap: Za,
1395
+ merge: Ga
1396
+ }, gt = yt, ve = mt, ne = fr, ei = Object.prototype.hasOwnProperty, ht = {
1397
+ brackets: function(e) {
1398
+ return e + "[]";
1399
+ },
1400
+ comma: "comma",
1401
+ indices: function(e, t) {
1402
+ return e + "[" + t + "]";
1403
+ },
1404
+ repeat: function(e) {
1405
+ return e;
1406
+ }
1407
+ }, A = Array.isArray, ri = Array.prototype.push, _t = function(r, e) {
1408
+ ri.apply(r, A(e) ? e : [e]);
1409
+ }, ti = Date.prototype.toISOString, Wr = ne.default, _ = {
1410
+ addQueryPrefix: !1,
1411
+ allowDots: !1,
1412
+ allowEmptyArrays: !1,
1413
+ arrayFormat: "indices",
1414
+ charset: "utf-8",
1415
+ charsetSentinel: !1,
1416
+ commaRoundTrip: !1,
1417
+ delimiter: "&",
1418
+ encode: !0,
1419
+ encodeDotInKeys: !1,
1420
+ encoder: ve.encode,
1421
+ encodeValuesOnly: !1,
1422
+ filter: void 0,
1423
+ format: Wr,
1424
+ formatter: ne.formatters[Wr],
1425
+ // deprecated
1426
+ indices: !1,
1427
+ serializeDate: function(e) {
1428
+ return ti.call(e);
1429
+ },
1430
+ skipNulls: !1,
1431
+ strictNullHandling: !1
1432
+ }, ni = function(e) {
1433
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1434
+ }, Je = {}, oi = function r(e, t, n, o, a, i, u, c, s, l, p, f, d, y, h, S, w, R) {
1435
+ for (var m = e, k = R, N = 0, Y = !1; (k = k.get(Je)) !== void 0 && !Y; ) {
1436
+ var q = k.get(e);
1437
+ if (N += 1, typeof q < "u") {
1438
+ if (q === N)
1439
+ throw new RangeError("Cyclic object value");
1440
+ Y = !0;
1441
+ }
1442
+ typeof k.get(Je) > "u" && (N = 0);
1443
+ }
1444
+ if (typeof l == "function" ? m = l(t, m) : m instanceof Date ? m = d(m) : n === "comma" && A(m) && (m = ve.maybeMap(m, function(Ie) {
1445
+ return Ie instanceof Date ? d(Ie) : Ie;
1446
+ })), m === null) {
1447
+ if (i)
1448
+ return s && !S ? s(t, _.encoder, w, "key", y) : t;
1449
+ m = "";
1450
+ }
1451
+ if (ni(m) || ve.isBuffer(m)) {
1452
+ if (s) {
1453
+ var ce = S ? t : s(t, _.encoder, w, "key", y);
1454
+ return [h(ce) + "=" + h(s(m, _.encoder, w, "value", y))];
1455
+ }
1456
+ return [h(t) + "=" + h(String(m))];
1457
+ }
1458
+ var j = [];
1459
+ if (typeof m > "u")
1460
+ return j;
1461
+ var F;
1462
+ if (n === "comma" && A(m))
1463
+ S && s && (m = ve.maybeMap(m, s)), F = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
1464
+ else if (A(l))
1465
+ F = l;
1466
+ else {
1467
+ var fe = Object.keys(m);
1468
+ F = p ? fe.sort(p) : fe;
1469
+ }
1470
+ var W = c ? String(t).replace(/\./g, "%2E") : String(t), x = o && A(m) && m.length === 1 ? W + "[]" : W;
1471
+ if (a && A(m) && m.length === 0)
1472
+ return x + "[]";
1473
+ for (var C = 0; C < F.length; ++C) {
1474
+ var E = F[C], X = typeof E == "object" && E && typeof E.value < "u" ? E.value : m[E];
1475
+ if (!(u && X === null)) {
1476
+ var $e = f && c ? String(E).replace(/\./g, "%2E") : String(E), At = A(m) ? typeof n == "function" ? n(x, $e) : x : x + (f ? "." + $e : "[" + $e + "]");
1477
+ R.set(e, N);
1478
+ var pr = gt();
1479
+ pr.set(Je, R), _t(j, r(
1480
+ X,
1481
+ At,
1482
+ n,
1483
+ o,
1484
+ a,
1485
+ i,
1486
+ u,
1487
+ c,
1488
+ n === "comma" && S && A(m) ? null : s,
1489
+ l,
1490
+ p,
1491
+ f,
1492
+ d,
1493
+ y,
1494
+ h,
1495
+ S,
1496
+ w,
1497
+ pr
1498
+ ));
1499
+ }
1500
+ }
1501
+ return j;
1502
+ }, ai = function(e) {
1503
+ if (!e)
1504
+ return _;
1505
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1506
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1507
+ if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
1508
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1509
+ if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1510
+ throw new TypeError("Encoder has to be a function.");
1511
+ var t = e.charset || _.charset;
1512
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1513
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1514
+ var n = ne.default;
1515
+ if (typeof e.format < "u") {
1516
+ if (!ei.call(ne.formatters, e.format))
1517
+ throw new TypeError("Unknown format option provided.");
1518
+ n = e.format;
1519
+ }
1520
+ var o = ne.formatters[n], a = _.filter;
1521
+ (typeof e.filter == "function" || A(e.filter)) && (a = e.filter);
1522
+ var i;
1523
+ if (e.arrayFormat in ht ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = _.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1524
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1525
+ var u = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : _.allowDots : !!e.allowDots;
1526
+ return {
1527
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : _.addQueryPrefix,
1528
+ allowDots: u,
1529
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : _.allowEmptyArrays,
1530
+ arrayFormat: i,
1531
+ charset: t,
1532
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : _.charsetSentinel,
1533
+ commaRoundTrip: !!e.commaRoundTrip,
1534
+ delimiter: typeof e.delimiter > "u" ? _.delimiter : e.delimiter,
1535
+ encode: typeof e.encode == "boolean" ? e.encode : _.encode,
1536
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : _.encodeDotInKeys,
1537
+ encoder: typeof e.encoder == "function" ? e.encoder : _.encoder,
1538
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : _.encodeValuesOnly,
1539
+ filter: a,
1540
+ format: n,
1541
+ formatter: o,
1542
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : _.serializeDate,
1543
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : _.skipNulls,
1544
+ sort: typeof e.sort == "function" ? e.sort : null,
1545
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : _.strictNullHandling
1546
+ };
1547
+ }, ii = function(r, e) {
1548
+ var t = r, n = ai(e), o, a;
1549
+ typeof n.filter == "function" ? (a = n.filter, t = a("", t)) : A(n.filter) && (a = n.filter, o = a);
1550
+ var i = [];
1551
+ if (typeof t != "object" || t === null)
1552
+ return "";
1553
+ var u = ht[n.arrayFormat], c = u === "comma" && n.commaRoundTrip;
1554
+ o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
1555
+ for (var s = gt(), l = 0; l < o.length; ++l) {
1556
+ var p = o[l], f = t[p];
1557
+ n.skipNulls && f === null || _t(i, oi(
1558
+ f,
1559
+ p,
1560
+ u,
1561
+ c,
1562
+ n.allowEmptyArrays,
1563
+ n.strictNullHandling,
1564
+ n.skipNulls,
1565
+ n.encodeDotInKeys,
1566
+ n.encode ? n.encoder : null,
1567
+ n.filter,
1568
+ n.sort,
1569
+ n.allowDots,
1570
+ n.serializeDate,
1571
+ n.format,
1572
+ n.formatter,
1573
+ n.encodeValuesOnly,
1574
+ n.charset,
1575
+ s
1576
+ ));
1577
+ }
1578
+ var d = i.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
1579
+ return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), d.length > 0 ? y + d : "";
1580
+ }, D = mt, me = Object.prototype.hasOwnProperty, zr = Array.isArray, g = {
1581
+ allowDots: !1,
1582
+ allowEmptyArrays: !1,
1583
+ allowPrototypes: !1,
1584
+ allowSparse: !1,
1585
+ arrayLimit: 20,
1586
+ charset: "utf-8",
1587
+ charsetSentinel: !1,
1588
+ comma: !1,
1589
+ decodeDotInKeys: !1,
1590
+ decoder: D.decode,
1591
+ delimiter: "&",
1592
+ depth: 5,
1593
+ duplicates: "combine",
1594
+ ignoreQueryPrefix: !1,
1595
+ interpretNumericEntities: !1,
1596
+ parameterLimit: 1e3,
1597
+ parseArrays: !0,
1598
+ plainObjects: !1,
1599
+ strictDepth: !1,
1600
+ strictNullHandling: !1,
1601
+ throwOnLimitExceeded: !1
1602
+ }, li = function(r) {
1603
+ return r.replace(/&#(\d+);/g, function(e, t) {
1604
+ return String.fromCharCode(parseInt(t, 10));
1605
+ });
1606
+ }, bt = function(r, e, t) {
1607
+ if (r && typeof r == "string" && e.comma && r.indexOf(",") > -1)
1608
+ return r.split(",");
1609
+ if (e.throwOnLimitExceeded && t >= e.arrayLimit)
1610
+ throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1611
+ return r;
1612
+ }, ci = "utf8=%26%2310003%3B", fi = "utf8=%E2%9C%93", ui = function(e, t) {
1613
+ var n = { __proto__: null }, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1614
+ o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1615
+ var a = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, i = o.split(
1616
+ t.delimiter,
1617
+ t.throwOnLimitExceeded ? a + 1 : a
1618
+ );
1619
+ if (t.throwOnLimitExceeded && i.length > a)
1620
+ throw new RangeError("Parameter limit exceeded. Only " + a + " parameter" + (a === 1 ? "" : "s") + " allowed.");
1621
+ var u = -1, c, s = t.charset;
1622
+ if (t.charsetSentinel)
1623
+ for (c = 0; c < i.length; ++c)
1624
+ i[c].indexOf("utf8=") === 0 && (i[c] === fi ? s = "utf-8" : i[c] === ci && (s = "iso-8859-1"), u = c, c = i.length);
1625
+ for (c = 0; c < i.length; ++c)
1626
+ if (c !== u) {
1627
+ var l = i[c], p = l.indexOf("]="), f = p === -1 ? l.indexOf("=") : p + 1, d, y;
1628
+ if (f === -1 ? (d = t.decoder(l, g.decoder, s, "key"), y = t.strictNullHandling ? null : "") : (d = t.decoder(l.slice(0, f), g.decoder, s, "key"), d !== null && (y = D.maybeMap(
1629
+ bt(
1630
+ l.slice(f + 1),
1631
+ t,
1632
+ zr(n[d]) ? n[d].length : 0
1633
+ ),
1634
+ function(S) {
1635
+ return t.decoder(S, g.decoder, s, "value");
1636
+ }
1637
+ ))), y && t.interpretNumericEntities && s === "iso-8859-1" && (y = li(String(y))), l.indexOf("[]=") > -1 && (y = zr(y) ? [y] : y), d !== null) {
1638
+ var h = me.call(n, d);
1639
+ h && t.duplicates === "combine" ? n[d] = D.combine(
1640
+ n[d],
1641
+ y,
1642
+ t.arrayLimit,
1643
+ t.plainObjects
1644
+ ) : (!h || t.duplicates === "last") && (n[d] = y);
1645
+ }
1646
+ }
1647
+ return n;
1648
+ }, si = function(r, e, t, n) {
1649
+ var o = 0;
1650
+ if (r.length > 0 && r[r.length - 1] === "[]") {
1651
+ var a = r.slice(0, -1).join("");
1652
+ o = Array.isArray(e) && e[a] ? e[a].length : 0;
1653
+ }
1654
+ for (var i = n ? e : bt(e, t, o), u = r.length - 1; u >= 0; --u) {
1655
+ var c, s = r[u];
1656
+ if (s === "[]" && t.parseArrays)
1657
+ D.isOverflow(i) ? c = i : c = t.allowEmptyArrays && (i === "" || t.strictNullHandling && i === null) ? [] : D.combine(
1658
+ [],
1659
+ i,
1660
+ t.arrayLimit,
1661
+ t.plainObjects
1662
+ );
1663
+ else {
1664
+ c = t.plainObjects ? { __proto__: null } : {};
1665
+ var l = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, p = t.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, f = parseInt(p, 10);
1666
+ !t.parseArrays && p === "" ? c = { 0: i } : !isNaN(f) && s !== p && String(f) === p && f >= 0 && t.parseArrays && f <= t.arrayLimit ? (c = [], c[f] = i) : p !== "__proto__" && (c[p] = i);
1667
+ }
1668
+ i = c;
1669
+ }
1670
+ return i;
1671
+ }, pi = function(e, t) {
1672
+ var n = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
1673
+ if (t.depth <= 0)
1674
+ return !t.plainObjects && me.call(Object.prototype, n) && !t.allowPrototypes ? void 0 : [n];
1675
+ var o = /(\[[^[\]]*])/, a = /(\[[^[\]]*])/g, i = o.exec(n), u = i ? n.slice(0, i.index) : n, c = [];
1676
+ if (u) {
1677
+ if (!t.plainObjects && me.call(Object.prototype, u) && !t.allowPrototypes)
1678
+ return;
1679
+ c.push(u);
1680
+ }
1681
+ for (var s = 0; (i = a.exec(n)) !== null && s < t.depth; ) {
1682
+ s += 1;
1683
+ var l = i[1].slice(1, -1);
1684
+ if (!t.plainObjects && me.call(Object.prototype, l) && !t.allowPrototypes)
1685
+ return;
1686
+ c.push(i[1]);
1687
+ }
1688
+ if (i) {
1689
+ if (t.strictDepth === !0)
1690
+ throw new RangeError("Input depth exceeded depth option of " + t.depth + " and strictDepth is true");
1691
+ c.push("[" + n.slice(i.index) + "]");
1692
+ }
1693
+ return c;
1694
+ }, yi = function(e, t, n, o) {
1695
+ if (e) {
1696
+ var a = pi(e, n);
1697
+ if (a)
1698
+ return si(a, t, n, o);
1699
+ }
1700
+ }, di = function(e) {
1701
+ if (!e)
1702
+ return g;
1703
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1704
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1705
+ if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
1706
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
1707
+ if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
1708
+ throw new TypeError("Decoder has to be a function.");
1709
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1710
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1711
+ if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
1712
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
1713
+ var t = typeof e.charset > "u" ? g.charset : e.charset, n = typeof e.duplicates > "u" ? g.duplicates : e.duplicates;
1714
+ if (n !== "combine" && n !== "first" && n !== "last")
1715
+ throw new TypeError("The duplicates option must be either combine, first, or last");
1716
+ var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : g.allowDots : !!e.allowDots;
1717
+ return {
1718
+ allowDots: o,
1719
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : g.allowEmptyArrays,
1720
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : g.allowPrototypes,
1721
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : g.allowSparse,
1722
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : g.arrayLimit,
1723
+ charset: t,
1724
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : g.charsetSentinel,
1725
+ comma: typeof e.comma == "boolean" ? e.comma : g.comma,
1726
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : g.decodeDotInKeys,
1727
+ decoder: typeof e.decoder == "function" ? e.decoder : g.decoder,
1728
+ delimiter: typeof e.delimiter == "string" || D.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
1729
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1730
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : g.depth,
1731
+ duplicates: n,
1732
+ ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1733
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : g.interpretNumericEntities,
1734
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : g.parameterLimit,
1735
+ parseArrays: e.parseArrays !== !1,
1736
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : g.plainObjects,
1737
+ strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : g.strictDepth,
1738
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling,
1739
+ throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
1740
+ };
1741
+ }, vi = function(r, e) {
1742
+ var t = di(e);
1743
+ if (r === "" || r === null || typeof r > "u")
1744
+ return t.plainObjects ? { __proto__: null } : {};
1745
+ for (var n = typeof r == "string" ? ui(r, t) : r, o = t.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
1746
+ var u = a[i], c = yi(u, n[u], t, typeof r == "string");
1747
+ o = D.merge(o, c, t);
1748
+ }
1749
+ return t.allowSparse === !0 ? o : D.compact(o);
1750
+ }, mi = ii, gi = vi, hi = fr, _i = {
1751
+ formats: hi,
1752
+ parse: gi,
1753
+ stringify: mi
1754
+ };
1755
+ const bi = /* @__PURE__ */ en(_i);
1756
+ async function Ee(r, e = {}, t) {
1757
+ const { cms: n = "cms" } = e;
1758
+ return fetch(`${r.href}?${bi.stringify(e)}`, {
1759
+ method: "GET",
1760
+ cache: t ? "no-store" : "default",
1761
+ headers: {
1762
+ Accept: "application/json",
1763
+ "Content-Type": "application/json",
1764
+ "strapi-encode-source-maps": n === "strapi" && t ? "true" : "false"
1765
+ // strapi
1766
+ }
1767
+ });
1768
+ }
1769
+ function sr(r, e) {
1770
+ return !(e != null && e.cms) || (e == null ? void 0 : e.cms) === "vtex" ? `https://${e == null ? void 0 : e.storeId}.myvtex.com/_v/cms/api/${e == null ? void 0 : e.name}/${r}` : String(
1771
+ new URL(`api/${r}`, process.env.NEXT_PUBLIC_API_URL)
1772
+ );
1773
+ }
1774
+ function St(r) {
1775
+ return Array.isArray(r) && r.length > 0 ? r[0] : Array.isArray(r) ? null : r;
1776
+ }
1777
+ async function wt(r, e = [], t = {}) {
1778
+ var n;
1779
+ if ((t == null ? void 0 : t.contentType) === r) {
1780
+ const o = (t == null ? void 0 : t.previewMode) === "true", a = (t == null ? void 0 : t.documentId) ?? "", i = a && ((n = String(a)) != null && n.length) ? `/${t.documentId}` : "", u = new URL(sr(`${r}${i}`, t)), c = await Ee(u, t, o);
1781
+ if (!c.ok)
1782
+ return console.error(`[Error fetching preview data]: ${r} - status: ${c.statusText}`), [];
1783
+ const s = await c.json(), l = e.findIndex((p) => p.documentId === s.id);
1784
+ return l !== -1 ? (e[l] = s, [...e]) : [s, ...e];
1785
+ }
1786
+ return e;
1787
+ }
1788
+ const Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1789
+ __proto__: null,
1790
+ createUrl: sr,
1791
+ fetchCMS: Ee,
1792
+ mergePreviewDocument: wt,
1793
+ spreadStrapiData: St
1794
+ }, Symbol.toStringTag, { value: "Module" }));
1795
+ async function xt(r, e = {}, t) {
1796
+ const n = !!(e != null && e.previewMode), o = await Ee(r, e, n);
1797
+ if (!o.ok)
1798
+ return console.log(
1799
+ `Failed to fetch Strapi (url=${String(r)}, status=${o.status})`
1800
+ ), { status: 404, data: [], error: String(o.status) };
1801
+ const { data: a } = await o.json();
1802
+ return a ? {
1803
+ status: 200,
1804
+ data: t ? St(a) : a
1805
+ } : { status: 404, data: [], error: "No data found" };
1806
+ }
1807
+ async function Ot(r, e, t = {}) {
1808
+ const n = (t == null ? void 0 : t.previewId) ?? "", o = (t == null ? void 0 : t.previewMode) === "true", a = { ...t, versionId: n }, i = [];
1809
+ let u = 1, c = 0, s = !0;
1810
+ try {
1811
+ do {
1812
+ const l = await Ee(e, { ...a, page: u }, o).then((p) => p.json()).catch((p) => (console.error("Error fetching VTEX CMS data:", p), console.error("Error URL:", e.toString()), null));
1813
+ u === 1 && (c = l.totalItems), Array.isArray(l == null ? void 0 : l.data) && i.push(...l.data), s = !!(l != null && l.hasNextPage), u++;
1814
+ } while (s && i.length < c);
1815
+ if (o && i.length > 0) {
1816
+ if (!r || !n)
1817
+ throw new Error(
1818
+ "contentType and previewId are required for preview mode in vtexCMSData"
1819
+ );
1820
+ const l = await wt(
1821
+ r,
1822
+ i,
1823
+ a
1824
+ );
1825
+ return {
1826
+ status: l.length > 0 ? 200 : 404,
1827
+ data: l
1828
+ };
1829
+ }
1830
+ return {
1831
+ status: i.length ? 200 : 404,
1832
+ data: i
1833
+ };
1834
+ } catch (l) {
1835
+ return {
1836
+ status: 500,
1837
+ data: [],
1838
+ error: l instanceof Error ? l.message : String(l)
1839
+ };
1840
+ }
1841
+ }
1842
+ const Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1843
+ __proto__: null,
1844
+ strapiCMSData: xt,
1845
+ vtexCMSData: Ot
1846
+ }, Symbol.toStringTag, { value: "Module" }));
1847
+ async function Si({
1848
+ contentType: r,
1849
+ documentId: e,
1850
+ versionId: t,
1851
+ storeId: n,
1852
+ CMS_PROJECT_NAME: o
1853
+ }) {
1854
+ const a = e && e.length ? `/${e}` : "", i = t && t.length ? `?versionId=${t}` : "";
1855
+ return fetch(
1856
+ `https://${n}.myvtex.com/_v/cms/api/${o}/${r}${a}${i}`,
1857
+ { cache: "no-cache" }
1858
+ );
1859
+ }
1860
+ async function wi(r, e = {}, t) {
1861
+ const { cms: n = "vtex" } = e ?? {};
1862
+ try {
1863
+ const o = new URL(sr(r, e));
1864
+ return n !== "vtex" ? xt(o, e, t) : Ot(r, o, e);
1865
+ } catch (o) {
1866
+ return console.error(`[Fetch ContentType Error CMS ${n}]`, o), t ? { status: 400, data: null } : { status: 200, data: [] };
1867
+ }
1868
+ }
1869
+ const Di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1870
+ __proto__: null,
1871
+ fetchContentType: wi,
1872
+ getCMSContentType: Si
1873
+ }, Symbol.toStringTag, { value: "Module" }));
1874
+ export {
1875
+ Ei as A,
1876
+ Pi as B,
1877
+ Di as C,
1878
+ Ci as D,
1879
+ Mi as E,
1880
+ Zt as F,
1881
+ Fi as S,
1882
+ Mt as a,
1883
+ Nt as b,
1884
+ Kr as c,
1885
+ kt as d,
1886
+ Dt as e,
1887
+ Ri as f,
1888
+ Rt as g,
1889
+ Ye as h,
1890
+ $t as i,
1891
+ Tt as j,
1892
+ en as k,
1893
+ It as l,
1894
+ Lt as m,
1895
+ qt as n,
1896
+ Ft as o,
1897
+ Ai as p,
1898
+ ki as q,
1899
+ ue as r,
1900
+ Gr as s,
1901
+ jt as t,
1902
+ Bt as u,
1903
+ $i as v,
1904
+ Jt as w,
1905
+ zt as x,
1906
+ Ii as y,
1907
+ wi as z
1908
+ };