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