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