@jigowatts/jigowatts-ui 1.1.0 → 1.1.2
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/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/components/CustomLink/index.js +1 -1
- package/dist/components/DataTable/index.js +1 -1
- package/dist/components/LoadingOverlay/index.js +1 -1
- package/dist/components/Map/index.js +1 -1
- package/dist/components/OfflineLabel/index.js +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/Pagination/index.test.js +1 -1
- package/dist/components/SearchForm/index.js +1 -1
- package/dist/components/SideMenu/index.d.ts +2 -1
- package/dist/components/SideMenu/index.js +1702 -61
- package/dist/components/SideMenu/index.test.js +1 -1
- package/dist/{index-Ng1Gk0N9.js → index-Dqxvyh3z.js} +1 -1
- package/dist/index.js +75 -78
- package/dist/{link-DKxv6PwW.js → link-CjdKDftr.js} +236 -234
- package/package.json +1 -1
- package/dist/navigation-lUua5mCE.js +0 -2205
|
@@ -1,96 +1,1737 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { g as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { Drawer as
|
|
7
|
-
import { c as
|
|
8
|
-
import '../../assets/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import Fe, { jsx as he, jsxs as He } from "react/jsx-runtime";
|
|
2
|
+
import me, { useState as Qe, useEffect as Ye } from "react";
|
|
3
|
+
import { g as Ze } from "../../_commonjsHelpers-CT_km90n.js";
|
|
4
|
+
import { _ as _e, a as Ke, r as Je, L as Pe } from "../../link-CjdKDftr.js";
|
|
5
|
+
import et from "react-dom";
|
|
6
|
+
import { Drawer as tt } from "@mui/material";
|
|
7
|
+
import { c as nt } from "../../index-DWRHnq8_.js";
|
|
8
|
+
import '../../assets/index27.css';var We = {}, Te = {}, ve = {};
|
|
9
|
+
(function(L) {
|
|
10
|
+
Object.defineProperty(L, "__esModule", {
|
|
11
|
+
value: !0
|
|
12
|
+
}), Object.defineProperty(L, "warnOnce", {
|
|
13
|
+
enumerable: !0,
|
|
14
|
+
get: function() {
|
|
15
|
+
return R;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
let R = (N) => {
|
|
19
|
+
};
|
|
20
|
+
if (process.env.NODE_ENV !== "production") {
|
|
21
|
+
const N = /* @__PURE__ */ new Set();
|
|
22
|
+
R = (j) => {
|
|
23
|
+
N.has(j) || console.warn(j), N.add(j);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
})(ve);
|
|
27
|
+
var Xe = {};
|
|
28
|
+
(function(L) {
|
|
29
|
+
Object.defineProperty(L, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), Object.defineProperty(L, "getImageBlurSvg", {
|
|
32
|
+
enumerable: !0,
|
|
33
|
+
get: function() {
|
|
34
|
+
return R;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
function R(N) {
|
|
38
|
+
let { widthInt: j, heightInt: S, blurWidth: u, blurHeight: m, blurDataURL: p, objectFit: E } = N;
|
|
39
|
+
const O = 20, x = u ? u * 40 : j, h = m ? m * 40 : S, y = x && h ? "viewBox='0 0 " + x + " " + h + "'" : "", c = y ? "none" : E === "contain" ? "xMidYMid" : E === "cover" ? "xMidYMid slice" : "none";
|
|
40
|
+
return "%3Csvg xmlns='http://www.w3.org/2000/svg' " + y + "%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='" + O + "'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='" + O + "'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='" + c + "' style='filter: url(%23b);' href='" + p + "'/%3E%3C/svg%3E";
|
|
41
|
+
}
|
|
42
|
+
})(Xe);
|
|
43
|
+
var Re = {};
|
|
44
|
+
(function(L) {
|
|
45
|
+
Object.defineProperty(L, "__esModule", {
|
|
46
|
+
value: !0
|
|
47
|
+
});
|
|
48
|
+
function R(S, u) {
|
|
49
|
+
for (var m in u)
|
|
50
|
+
Object.defineProperty(S, m, {
|
|
51
|
+
enumerable: !0,
|
|
52
|
+
get: u[m]
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
R(L, {
|
|
56
|
+
VALID_LOADERS: function() {
|
|
57
|
+
return N;
|
|
58
|
+
},
|
|
59
|
+
imageConfigDefault: function() {
|
|
60
|
+
return j;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const N = [
|
|
64
|
+
"default",
|
|
65
|
+
"imgix",
|
|
66
|
+
"cloudinary",
|
|
67
|
+
"akamai",
|
|
68
|
+
"custom"
|
|
69
|
+
], j = {
|
|
70
|
+
deviceSizes: [
|
|
71
|
+
640,
|
|
72
|
+
750,
|
|
73
|
+
828,
|
|
74
|
+
1080,
|
|
75
|
+
1200,
|
|
76
|
+
1920,
|
|
77
|
+
2048,
|
|
78
|
+
3840
|
|
79
|
+
],
|
|
80
|
+
imageSizes: [
|
|
81
|
+
16,
|
|
82
|
+
32,
|
|
83
|
+
48,
|
|
84
|
+
64,
|
|
85
|
+
96,
|
|
86
|
+
128,
|
|
87
|
+
256,
|
|
88
|
+
384
|
|
89
|
+
],
|
|
90
|
+
path: "/_next/image",
|
|
91
|
+
loader: "default",
|
|
92
|
+
loaderFile: "",
|
|
93
|
+
domains: [],
|
|
94
|
+
disableStaticImages: !1,
|
|
95
|
+
minimumCacheTTL: 60,
|
|
96
|
+
formats: [
|
|
97
|
+
"image/webp"
|
|
98
|
+
],
|
|
99
|
+
dangerouslyAllowSVG: !1,
|
|
100
|
+
contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;",
|
|
101
|
+
contentDispositionType: "inline",
|
|
102
|
+
remotePatterns: [],
|
|
103
|
+
unoptimized: !1
|
|
104
|
+
};
|
|
105
|
+
})(Re);
|
|
106
|
+
(function(L) {
|
|
107
|
+
Object.defineProperty(L, "__esModule", {
|
|
108
|
+
value: !0
|
|
109
|
+
}), Object.defineProperty(L, "getImgProps", {
|
|
110
|
+
enumerable: !0,
|
|
111
|
+
get: function() {
|
|
112
|
+
return c;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
const R = ve, N = Xe, j = Re, S = [
|
|
116
|
+
"lazy",
|
|
117
|
+
"eager",
|
|
118
|
+
void 0
|
|
119
|
+
];
|
|
120
|
+
function u(i) {
|
|
121
|
+
return i.default !== void 0;
|
|
122
|
+
}
|
|
123
|
+
function m(i) {
|
|
124
|
+
return i.src !== void 0;
|
|
125
|
+
}
|
|
126
|
+
function p(i) {
|
|
127
|
+
return typeof i == "object" && (u(i) || m(i));
|
|
128
|
+
}
|
|
129
|
+
const E = /* @__PURE__ */ new Map();
|
|
130
|
+
let O;
|
|
131
|
+
function x(i) {
|
|
132
|
+
return typeof i > "u" ? i : typeof i == "number" ? Number.isFinite(i) ? i : NaN : typeof i == "string" && /^[0-9]+$/.test(i) ? parseInt(i, 10) : NaN;
|
|
133
|
+
}
|
|
134
|
+
function h(i, b, f) {
|
|
135
|
+
let { deviceSizes: d, allSizes: C } = i;
|
|
136
|
+
if (f) {
|
|
137
|
+
const o = /(^|\s)(1?\d?\d)vw/g, g = [];
|
|
138
|
+
for (let l; l = o.exec(f); l)
|
|
139
|
+
g.push(parseInt(l[2]));
|
|
140
|
+
if (g.length) {
|
|
141
|
+
const l = Math.min(...g) * 0.01;
|
|
142
|
+
return {
|
|
143
|
+
widths: C.filter((_) => _ >= d[0] * l),
|
|
144
|
+
kind: "w"
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
widths: C,
|
|
149
|
+
kind: "w"
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
return typeof b != "number" ? {
|
|
153
|
+
widths: d,
|
|
154
|
+
kind: "w"
|
|
155
|
+
} : {
|
|
156
|
+
widths: [
|
|
157
|
+
...new Set(
|
|
158
|
+
// > This means that most OLED screens that say they are 3x resolution,
|
|
159
|
+
// > are actually 3x in the green color, but only 1.5x in the red and
|
|
160
|
+
// > blue colors. Showing a 3x resolution image in the app vs a 2x
|
|
161
|
+
// > resolution image will be visually the same, though the 3x image
|
|
162
|
+
// > takes significantly more data. Even true 3x resolution screens are
|
|
163
|
+
// > wasteful as the human eye cannot see that level of detail without
|
|
164
|
+
// > something like a magnifying glass.
|
|
165
|
+
// https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html
|
|
166
|
+
[
|
|
167
|
+
b,
|
|
168
|
+
b * 2
|
|
169
|
+
/*, width * 3*/
|
|
170
|
+
].map((o) => C.find((g) => g >= o) || C[C.length - 1])
|
|
171
|
+
)
|
|
172
|
+
],
|
|
173
|
+
kind: "x"
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
function y(i) {
|
|
177
|
+
let { config: b, src: f, unoptimized: d, width: C, quality: r, sizes: o, loader: g } = i;
|
|
178
|
+
if (d)
|
|
179
|
+
return {
|
|
180
|
+
src: f,
|
|
181
|
+
srcSet: void 0,
|
|
182
|
+
sizes: void 0
|
|
183
|
+
};
|
|
184
|
+
const { widths: l, kind: _ } = h(b, C, o), T = l.length - 1;
|
|
185
|
+
return {
|
|
186
|
+
sizes: !o && _ === "w" ? "100vw" : o,
|
|
187
|
+
srcSet: l.map((H, v) => g({
|
|
188
|
+
config: b,
|
|
189
|
+
src: f,
|
|
190
|
+
quality: r,
|
|
191
|
+
width: H
|
|
192
|
+
}) + " " + (_ === "w" ? H : v + 1) + _).join(", "),
|
|
193
|
+
// It's intended to keep `src` the last attribute because React updates
|
|
194
|
+
// attributes in order. If we keep `src` the first one, Safari will
|
|
195
|
+
// immediately start to fetch `src`, before `sizes` and `srcSet` are even
|
|
196
|
+
// updated by React. That causes multiple unnecessary requests if `srcSet`
|
|
197
|
+
// and `sizes` are defined.
|
|
198
|
+
// This bug cannot be reproduced in Chrome or Firefox.
|
|
199
|
+
src: g({
|
|
200
|
+
config: b,
|
|
201
|
+
src: f,
|
|
202
|
+
quality: r,
|
|
203
|
+
width: l[T]
|
|
204
|
+
})
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
function c(i, b) {
|
|
208
|
+
let { src: f, sizes: d, unoptimized: C = !1, priority: r = !1, loading: o, className: g, quality: l, width: _, height: T, fill: H = !1, style: v, overrideSrc: K, onLoad: k, onLoadingComplete: U, placeholder: P = "empty", blurDataURL: z, fetchPriority: q, layout: Q, objectFit: X, objectPosition: M, lazyBoundary: G, lazyRoot: re, ...ie } = i;
|
|
209
|
+
const { imgConf: V, showAltText: F, blurComplete: ae, defaultLoader: te } = b;
|
|
210
|
+
let e, W = V || j.imageConfigDefault;
|
|
211
|
+
if ("allSizes" in W)
|
|
212
|
+
e = W;
|
|
213
|
+
else {
|
|
214
|
+
const A = [
|
|
215
|
+
...W.deviceSizes,
|
|
216
|
+
...W.imageSizes
|
|
217
|
+
].sort((D, s) => D - s), a = W.deviceSizes.sort((D, s) => D - s);
|
|
218
|
+
e = {
|
|
219
|
+
...W,
|
|
220
|
+
allSizes: A,
|
|
221
|
+
deviceSizes: a
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
if (typeof te > "u")
|
|
225
|
+
throw new Error(`images.loaderFile detected but the file is missing default export.
|
|
226
|
+
Read more: https://nextjs.org/docs/messages/invalid-images-config`);
|
|
227
|
+
let se = ie.loader || te;
|
|
228
|
+
delete ie.loader, delete ie.srcSet;
|
|
229
|
+
const fe = "__next_img_default" in se;
|
|
230
|
+
if (fe) {
|
|
231
|
+
if (e.loader === "custom")
|
|
232
|
+
throw new Error('Image with src "' + f + `" is missing "loader" prop.
|
|
233
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`);
|
|
234
|
+
} else {
|
|
235
|
+
const A = se;
|
|
236
|
+
se = (a) => {
|
|
237
|
+
const { config: D, ...s } = a;
|
|
238
|
+
return A(s);
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
if (Q) {
|
|
242
|
+
Q === "fill" && (H = !0);
|
|
243
|
+
const A = {
|
|
244
|
+
intrinsic: {
|
|
245
|
+
maxWidth: "100%",
|
|
246
|
+
height: "auto"
|
|
247
|
+
},
|
|
248
|
+
responsive: {
|
|
249
|
+
width: "100%",
|
|
250
|
+
height: "auto"
|
|
251
|
+
}
|
|
252
|
+
}, a = {
|
|
253
|
+
responsive: "100vw",
|
|
254
|
+
fill: "100vw"
|
|
255
|
+
}, D = A[Q];
|
|
256
|
+
D && (v = {
|
|
257
|
+
...v,
|
|
258
|
+
...D
|
|
259
|
+
});
|
|
260
|
+
const s = a[Q];
|
|
261
|
+
s && !d && (d = s);
|
|
262
|
+
}
|
|
263
|
+
let n = "", t = x(_), Z = x(T), w, B;
|
|
264
|
+
if (p(f)) {
|
|
265
|
+
const A = u(f) ? f.default : f;
|
|
266
|
+
if (!A.src)
|
|
267
|
+
throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received " + JSON.stringify(A));
|
|
268
|
+
if (!A.height || !A.width)
|
|
269
|
+
throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received " + JSON.stringify(A));
|
|
270
|
+
if (w = A.blurWidth, B = A.blurHeight, z = z || A.blurDataURL, n = A.src, !H) {
|
|
271
|
+
if (!t && !Z)
|
|
272
|
+
t = A.width, Z = A.height;
|
|
273
|
+
else if (t && !Z) {
|
|
274
|
+
const a = t / A.width;
|
|
275
|
+
Z = Math.round(A.height * a);
|
|
276
|
+
} else if (!t && Z) {
|
|
277
|
+
const a = Z / A.height;
|
|
278
|
+
t = Math.round(A.width * a);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
f = typeof f == "string" ? f : n;
|
|
283
|
+
let ce = !r && (o === "lazy" || typeof o > "u");
|
|
284
|
+
(!f || f.startsWith("data:") || f.startsWith("blob:")) && (C = !0, ce = !1), e.unoptimized && (C = !0), fe && f.endsWith(".svg") && !e.dangerouslyAllowSVG && (C = !0), r && (q = "high");
|
|
285
|
+
const pe = x(l);
|
|
286
|
+
if (process.env.NODE_ENV !== "production") {
|
|
287
|
+
if (e.output === "export" && fe && !C)
|
|
288
|
+
throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");
|
|
289
|
+
if (!f)
|
|
290
|
+
C = !0;
|
|
291
|
+
else if (H) {
|
|
292
|
+
if (_)
|
|
293
|
+
throw new Error('Image with src "' + f + '" has both "width" and "fill" properties. Only one should be used.');
|
|
294
|
+
if (T)
|
|
295
|
+
throw new Error('Image with src "' + f + '" has both "height" and "fill" properties. Only one should be used.');
|
|
296
|
+
if (v != null && v.position && v.position !== "absolute")
|
|
297
|
+
throw new Error('Image with src "' + f + '" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');
|
|
298
|
+
if (v != null && v.width && v.width !== "100%")
|
|
299
|
+
throw new Error('Image with src "' + f + '" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');
|
|
300
|
+
if (v != null && v.height && v.height !== "100%")
|
|
301
|
+
throw new Error('Image with src "' + f + '" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.');
|
|
302
|
+
} else {
|
|
303
|
+
if (typeof t > "u")
|
|
304
|
+
throw new Error('Image with src "' + f + '" is missing required "width" property.');
|
|
305
|
+
if (isNaN(t))
|
|
306
|
+
throw new Error('Image with src "' + f + '" has invalid "width" property. Expected a numeric value in pixels but received "' + _ + '".');
|
|
307
|
+
if (typeof Z > "u")
|
|
308
|
+
throw new Error('Image with src "' + f + '" is missing required "height" property.');
|
|
309
|
+
if (isNaN(Z))
|
|
310
|
+
throw new Error('Image with src "' + f + '" has invalid "height" property. Expected a numeric value in pixels but received "' + T + '".');
|
|
311
|
+
}
|
|
312
|
+
if (!S.includes(o))
|
|
313
|
+
throw new Error('Image with src "' + f + '" has invalid "loading" property. Provided "' + o + '" should be one of ' + S.map(String).join(",") + ".");
|
|
314
|
+
if (r && o === "lazy")
|
|
315
|
+
throw new Error('Image with src "' + f + `" has both "priority" and "loading='lazy'" properties. Only one should be used.`);
|
|
316
|
+
if (P !== "empty" && P !== "blur" && !P.startsWith("data:image/"))
|
|
317
|
+
throw new Error('Image with src "' + f + '" has invalid "placeholder" property "' + P + '".');
|
|
318
|
+
if (P !== "empty" && t && Z && t * Z < 1600 && (0, R.warnOnce)('Image with src "' + f + '" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'), P === "blur" && !z) {
|
|
319
|
+
const A = [
|
|
320
|
+
"jpeg",
|
|
321
|
+
"png",
|
|
322
|
+
"webp",
|
|
323
|
+
"avif"
|
|
324
|
+
];
|
|
325
|
+
throw new Error('Image with src "' + f + `" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
326
|
+
Possible solutions:
|
|
327
|
+
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
328
|
+
- Change the "src" property to a static import with one of the supported file types: ` + A.join(",") + ` (animated images not supported)
|
|
329
|
+
- Remove the "placeholder" property, effectively no blur effect
|
|
330
|
+
Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`);
|
|
331
|
+
}
|
|
332
|
+
if ("ref" in ie && (0, R.warnOnce)('Image with src "' + f + '" is using unsupported "ref" property. Consider using the "onLoad" property instead.'), !C && !fe) {
|
|
333
|
+
const A = se({
|
|
334
|
+
config: e,
|
|
335
|
+
src: f,
|
|
336
|
+
width: t || 400,
|
|
337
|
+
quality: pe || 75
|
|
338
|
+
});
|
|
339
|
+
let a;
|
|
340
|
+
try {
|
|
341
|
+
a = new URL(A);
|
|
342
|
+
} catch {
|
|
343
|
+
}
|
|
344
|
+
(A === f || a && a.pathname === f && !a.search) && (0, R.warnOnce)('Image with src "' + f + `" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
|
|
345
|
+
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`);
|
|
346
|
+
}
|
|
347
|
+
U && (0, R.warnOnce)('Image with src "' + f + '" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');
|
|
348
|
+
for (const [A, a] of Object.entries({
|
|
349
|
+
layout: Q,
|
|
350
|
+
objectFit: X,
|
|
351
|
+
objectPosition: M,
|
|
352
|
+
lazyBoundary: G,
|
|
353
|
+
lazyRoot: re
|
|
354
|
+
}))
|
|
355
|
+
a && (0, R.warnOnce)('Image with src "' + f + '" has legacy prop "' + A + `". Did you forget to run the codemod?
|
|
356
|
+
Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);
|
|
357
|
+
if (typeof window < "u" && !O && window.PerformanceObserver) {
|
|
358
|
+
O = new PerformanceObserver((A) => {
|
|
359
|
+
for (const D of A.getEntries()) {
|
|
360
|
+
var a;
|
|
361
|
+
const s = (D == null || (a = D.element) == null ? void 0 : a.src) || "", $ = E.get(s);
|
|
362
|
+
$ && !$.priority && $.placeholder === "empty" && !$.src.startsWith("data:") && !$.src.startsWith("blob:") && (0, R.warnOnce)('Image with src "' + $.src + `" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
|
|
363
|
+
Read more: https://nextjs.org/docs/api-reference/next/image#priority`);
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
try {
|
|
367
|
+
O.observe({
|
|
368
|
+
type: "largest-contentful-paint",
|
|
369
|
+
buffered: !0
|
|
370
|
+
});
|
|
371
|
+
} catch (A) {
|
|
372
|
+
console.error(A);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
const J = Object.assign(H ? {
|
|
377
|
+
position: "absolute",
|
|
378
|
+
height: "100%",
|
|
379
|
+
width: "100%",
|
|
380
|
+
left: 0,
|
|
381
|
+
top: 0,
|
|
382
|
+
right: 0,
|
|
383
|
+
bottom: 0,
|
|
384
|
+
objectFit: X,
|
|
385
|
+
objectPosition: M
|
|
386
|
+
} : {}, F ? {} : {
|
|
387
|
+
color: "transparent"
|
|
388
|
+
}, v), ee = !ae && P !== "empty" ? P === "blur" ? 'url("data:image/svg+xml;charset=utf-8,' + (0, N.getImageBlurSvg)({
|
|
389
|
+
widthInt: t,
|
|
390
|
+
heightInt: Z,
|
|
391
|
+
blurWidth: w,
|
|
392
|
+
blurHeight: B,
|
|
393
|
+
blurDataURL: z || "",
|
|
394
|
+
objectFit: J.objectFit
|
|
395
|
+
}) + '")' : 'url("' + P + '")' : null;
|
|
396
|
+
let de = ee ? {
|
|
397
|
+
backgroundSize: J.objectFit || "cover",
|
|
398
|
+
backgroundPosition: J.objectPosition || "50% 50%",
|
|
399
|
+
backgroundRepeat: "no-repeat",
|
|
400
|
+
backgroundImage: ee
|
|
401
|
+
} : {};
|
|
402
|
+
process.env.NODE_ENV === "development" && de.backgroundImage && P === "blur" && z != null && z.startsWith("/") && (de.backgroundImage = 'url("' + z + '")');
|
|
403
|
+
const ne = y({
|
|
404
|
+
config: e,
|
|
405
|
+
src: f,
|
|
406
|
+
unoptimized: C,
|
|
407
|
+
width: t,
|
|
408
|
+
quality: pe,
|
|
409
|
+
sizes: d,
|
|
410
|
+
loader: se
|
|
411
|
+
});
|
|
412
|
+
if (process.env.NODE_ENV !== "production" && typeof window < "u") {
|
|
413
|
+
let A;
|
|
414
|
+
try {
|
|
415
|
+
A = new URL(ne.src);
|
|
416
|
+
} catch {
|
|
417
|
+
A = new URL(ne.src, window.location.href);
|
|
418
|
+
}
|
|
419
|
+
E.set(A.href, {
|
|
420
|
+
src: f,
|
|
421
|
+
priority: r,
|
|
422
|
+
placeholder: P
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
return {
|
|
426
|
+
props: {
|
|
427
|
+
...ie,
|
|
428
|
+
loading: ce ? "lazy" : o,
|
|
429
|
+
fetchPriority: q,
|
|
430
|
+
width: t,
|
|
431
|
+
height: Z,
|
|
432
|
+
decoding: "async",
|
|
433
|
+
className: g,
|
|
434
|
+
style: {
|
|
435
|
+
...J,
|
|
436
|
+
...de
|
|
437
|
+
},
|
|
438
|
+
sizes: ne.sizes,
|
|
439
|
+
srcSet: ne.srcSet,
|
|
440
|
+
src: K || ne.src
|
|
441
|
+
},
|
|
442
|
+
meta: {
|
|
443
|
+
unoptimized: C,
|
|
444
|
+
priority: r,
|
|
445
|
+
placeholder: P,
|
|
446
|
+
fill: H
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
})(Te);
|
|
451
|
+
var Le = { exports: {} }, be = { exports: {} }, we = {}, ke;
|
|
452
|
+
function rt() {
|
|
453
|
+
return ke || (ke = 1, function(L) {
|
|
454
|
+
Object.defineProperty(L, "__esModule", {
|
|
455
|
+
value: !0
|
|
456
|
+
}), Object.defineProperty(L, "default", {
|
|
457
|
+
enumerable: !0,
|
|
458
|
+
get: function() {
|
|
459
|
+
return u;
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
const R = me, N = typeof window > "u", j = N ? () => {
|
|
463
|
+
} : R.useLayoutEffect, S = N ? () => {
|
|
464
|
+
} : R.useEffect;
|
|
465
|
+
function u(m) {
|
|
466
|
+
const { headManager: p, reduceComponentsToState: E } = m;
|
|
467
|
+
function O() {
|
|
468
|
+
if (p && p.mountedInstances) {
|
|
469
|
+
const h = R.Children.toArray(Array.from(p.mountedInstances).filter(Boolean));
|
|
470
|
+
p.updateHead(E(h, m));
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
if (N) {
|
|
474
|
+
var x;
|
|
475
|
+
p == null || (x = p.mountedInstances) == null || x.add(m.children), O();
|
|
476
|
+
}
|
|
477
|
+
return j(() => {
|
|
478
|
+
var h;
|
|
479
|
+
return p == null || (h = p.mountedInstances) == null || h.add(m.children), () => {
|
|
480
|
+
var y;
|
|
481
|
+
p == null || (y = p.mountedInstances) == null || y.delete(m.children);
|
|
482
|
+
};
|
|
483
|
+
}), j(() => (p && (p._pendingUpdate = O), () => {
|
|
484
|
+
p && (p._pendingUpdate = O);
|
|
485
|
+
})), S(() => (p && p._pendingUpdate && (p._pendingUpdate(), p._pendingUpdate = null), () => {
|
|
486
|
+
p && p._pendingUpdate && (p._pendingUpdate(), p._pendingUpdate = null);
|
|
487
|
+
})), null;
|
|
488
|
+
}
|
|
489
|
+
}(we)), we;
|
|
490
|
+
}
|
|
491
|
+
var Ae = {}, Ne;
|
|
492
|
+
function ot() {
|
|
493
|
+
return Ne || (Ne = 1, function(L) {
|
|
494
|
+
Object.defineProperty(L, "__esModule", {
|
|
495
|
+
value: !0
|
|
496
|
+
}), Object.defineProperty(L, "AmpStateContext", {
|
|
497
|
+
enumerable: !0,
|
|
498
|
+
get: function() {
|
|
499
|
+
return j;
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
const j = (/* @__PURE__ */ _e._(me)).default.createContext({});
|
|
503
|
+
process.env.NODE_ENV !== "production" && (j.displayName = "AmpStateContext");
|
|
504
|
+
}(Ae)), Ae;
|
|
505
|
+
}
|
|
506
|
+
var Se = {}, Me;
|
|
507
|
+
function it() {
|
|
508
|
+
return Me || (Me = 1, function(L) {
|
|
509
|
+
Object.defineProperty(L, "__esModule", {
|
|
510
|
+
value: !0
|
|
511
|
+
}), Object.defineProperty(L, "HeadManagerContext", {
|
|
512
|
+
enumerable: !0,
|
|
513
|
+
get: function() {
|
|
514
|
+
return j;
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
const j = (/* @__PURE__ */ _e._(me)).default.createContext({});
|
|
518
|
+
process.env.NODE_ENV !== "production" && (j.displayName = "HeadManagerContext");
|
|
519
|
+
}(Se)), Se;
|
|
520
|
+
}
|
|
521
|
+
var xe = {}, De;
|
|
522
|
+
function st() {
|
|
523
|
+
return De || (De = 1, function(L) {
|
|
524
|
+
Object.defineProperty(L, "__esModule", {
|
|
525
|
+
value: !0
|
|
526
|
+
}), Object.defineProperty(L, "isInAmpMode", {
|
|
527
|
+
enumerable: !0,
|
|
528
|
+
get: function() {
|
|
529
|
+
return R;
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
function R(N) {
|
|
533
|
+
let { ampFirst: j = !1, hybrid: S = !1, hasQuery: u = !1 } = N === void 0 ? {} : N;
|
|
534
|
+
return j || S && u;
|
|
535
|
+
}
|
|
536
|
+
}(xe)), xe;
|
|
537
|
+
}
|
|
538
|
+
var je;
|
|
539
|
+
function at() {
|
|
540
|
+
return je || (je = 1, function(L, R) {
|
|
541
|
+
"use client";
|
|
542
|
+
Object.defineProperty(R, "__esModule", {
|
|
543
|
+
value: !0
|
|
544
|
+
});
|
|
545
|
+
function N(r, o) {
|
|
546
|
+
for (var g in o)
|
|
547
|
+
Object.defineProperty(r, g, {
|
|
548
|
+
enumerable: !0,
|
|
549
|
+
get: o[g]
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
N(R, {
|
|
553
|
+
default: function() {
|
|
554
|
+
return C;
|
|
555
|
+
},
|
|
556
|
+
defaultHead: function() {
|
|
557
|
+
return y;
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
const j = _e, S = Ke, u = Fe, m = /* @__PURE__ */ S._(me), p = /* @__PURE__ */ j._(rt()), E = ot(), O = it(), x = st(), h = ve;
|
|
561
|
+
function y(r) {
|
|
562
|
+
r === void 0 && (r = !1);
|
|
563
|
+
const o = [
|
|
564
|
+
/* @__PURE__ */ (0, u.jsx)("meta", {
|
|
565
|
+
charSet: "utf-8"
|
|
566
|
+
})
|
|
567
|
+
];
|
|
568
|
+
return r || o.push(/* @__PURE__ */ (0, u.jsx)("meta", {
|
|
569
|
+
name: "viewport",
|
|
570
|
+
content: "width=device-width"
|
|
571
|
+
})), o;
|
|
572
|
+
}
|
|
573
|
+
function c(r, o) {
|
|
574
|
+
return typeof o == "string" || typeof o == "number" ? r : o.type === m.default.Fragment ? r.concat(
|
|
575
|
+
// @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
|
|
576
|
+
m.default.Children.toArray(o.props.children).reduce(
|
|
577
|
+
// @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
|
|
578
|
+
(g, l) => typeof l == "string" || typeof l == "number" ? g : g.concat(l),
|
|
579
|
+
[]
|
|
580
|
+
)
|
|
581
|
+
) : r.concat(o);
|
|
582
|
+
}
|
|
583
|
+
const i = [
|
|
584
|
+
"name",
|
|
585
|
+
"httpEquiv",
|
|
586
|
+
"charSet",
|
|
587
|
+
"itemProp"
|
|
588
|
+
];
|
|
589
|
+
function b() {
|
|
590
|
+
const r = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), l = {};
|
|
591
|
+
return (_) => {
|
|
592
|
+
let T = !0, H = !1;
|
|
593
|
+
if (_.key && typeof _.key != "number" && _.key.indexOf("$") > 0) {
|
|
594
|
+
H = !0;
|
|
595
|
+
const v = _.key.slice(_.key.indexOf("$") + 1);
|
|
596
|
+
r.has(v) ? T = !1 : r.add(v);
|
|
597
|
+
}
|
|
598
|
+
switch (_.type) {
|
|
599
|
+
case "title":
|
|
600
|
+
case "base":
|
|
601
|
+
o.has(_.type) ? T = !1 : o.add(_.type);
|
|
602
|
+
break;
|
|
603
|
+
case "meta":
|
|
604
|
+
for (let v = 0, K = i.length; v < K; v++) {
|
|
605
|
+
const k = i[v];
|
|
606
|
+
if (_.props.hasOwnProperty(k))
|
|
607
|
+
if (k === "charSet")
|
|
608
|
+
g.has(k) ? T = !1 : g.add(k);
|
|
609
|
+
else {
|
|
610
|
+
const U = _.props[k], P = l[k] || /* @__PURE__ */ new Set();
|
|
611
|
+
(k !== "name" || !H) && P.has(U) ? T = !1 : (P.add(U), l[k] = P);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
break;
|
|
615
|
+
}
|
|
616
|
+
return T;
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
function f(r, o) {
|
|
620
|
+
const { inAmpMode: g } = o;
|
|
621
|
+
return r.reduce(c, []).reverse().concat(y(g).reverse()).filter(b()).reverse().map((l, _) => {
|
|
622
|
+
const T = l.key || _;
|
|
623
|
+
if (process.env.NODE_ENV !== "development" && process.env.__NEXT_OPTIMIZE_FONTS && !g && l.type === "link" && l.props.href && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
|
|
624
|
+
[
|
|
625
|
+
"https://fonts.googleapis.com/css",
|
|
626
|
+
"https://use.typekit.net/"
|
|
627
|
+
].some((H) => l.props.href.startsWith(H))) {
|
|
628
|
+
const H = {
|
|
629
|
+
...l.props || {}
|
|
630
|
+
};
|
|
631
|
+
return H["data-href"] = H.href, H.href = void 0, H["data-optimized-fonts"] = !0, /* @__PURE__ */ m.default.cloneElement(l, H);
|
|
632
|
+
}
|
|
633
|
+
if (process.env.NODE_ENV === "development")
|
|
634
|
+
if (l.type === "script" && l.props.type !== "application/ld+json") {
|
|
635
|
+
const H = l.props.src ? '<script> tag with src="' + l.props.src + '"' : "inline <script>";
|
|
636
|
+
(0, h.warnOnce)("Do not add <script> tags using next/head (see " + H + `). Use next/script instead.
|
|
637
|
+
See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`);
|
|
638
|
+
} else
|
|
639
|
+
l.type === "link" && l.props.rel === "stylesheet" && (0, h.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="' + l.props.href + `"). Use Document instead.
|
|
640
|
+
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);
|
|
641
|
+
return /* @__PURE__ */ m.default.cloneElement(l, {
|
|
642
|
+
key: T
|
|
643
|
+
});
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
function d(r) {
|
|
647
|
+
let { children: o } = r;
|
|
648
|
+
const g = (0, m.useContext)(E.AmpStateContext), l = (0, m.useContext)(O.HeadManagerContext);
|
|
649
|
+
return /* @__PURE__ */ (0, u.jsx)(p.default, {
|
|
650
|
+
reduceComponentsToState: f,
|
|
651
|
+
headManager: l,
|
|
652
|
+
inAmpMode: (0, x.isInAmpMode)(g),
|
|
653
|
+
children: o
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
const C = d;
|
|
657
|
+
(typeof R.default == "function" || typeof R.default == "object" && R.default !== null) && typeof R.default.__esModule > "u" && (Object.defineProperty(R.default, "__esModule", { value: !0 }), Object.assign(R.default, R), L.exports = R.default);
|
|
658
|
+
}(be, be.exports)), be.exports;
|
|
659
|
+
}
|
|
660
|
+
var Ce = {}, ze;
|
|
661
|
+
function ut() {
|
|
662
|
+
return ze || (ze = 1, function(L) {
|
|
663
|
+
Object.defineProperty(L, "__esModule", {
|
|
664
|
+
value: !0
|
|
665
|
+
}), Object.defineProperty(L, "ImageConfigContext", {
|
|
666
|
+
enumerable: !0,
|
|
667
|
+
get: function() {
|
|
668
|
+
return S;
|
|
669
|
+
}
|
|
670
|
+
});
|
|
671
|
+
const N = /* @__PURE__ */ _e._(me), j = Re, S = N.default.createContext(j.imageConfigDefault);
|
|
672
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "ImageConfigContext");
|
|
673
|
+
}(Ce)), Ce;
|
|
674
|
+
}
|
|
675
|
+
var Oe = {}, Ie = {}, $e = { exports: {} }, Be;
|
|
676
|
+
function ct() {
|
|
677
|
+
return Be || (Be = 1, (() => {
|
|
678
|
+
var L = { 170: (S, u, m) => {
|
|
679
|
+
const p = m(510), E = () => {
|
|
680
|
+
if (typeof navigator < "u" && navigator.platform) {
|
|
681
|
+
const x = navigator.platform.toLowerCase();
|
|
682
|
+
return x === "win32" || x === "windows";
|
|
683
|
+
}
|
|
684
|
+
return typeof process < "u" && process.platform ? process.platform === "win32" : !1;
|
|
685
|
+
};
|
|
686
|
+
function O(x, h, y = !1) {
|
|
687
|
+
return h && (h.windows === null || h.windows === void 0) && (h = { ...h, windows: E() }), p(x, h, y);
|
|
688
|
+
}
|
|
689
|
+
Object.assign(O, p), S.exports = O;
|
|
690
|
+
}, 154: (S) => {
|
|
691
|
+
const u = "\\\\/", m = `[^${u}]`, p = "\\.", E = "\\+", O = "\\?", x = "\\/", h = "(?=.)", y = "[^/]", c = `(?:${x}|$)`, i = `(?:^|${x})`, b = `${p}{1,2}${c}`, f = `(?!${p})`, d = `(?!${i}${b})`, C = `(?!${p}{0,1}${c})`, r = `(?!${b})`, o = `[^.${x}]`, g = `${y}*?`, _ = { DOT_LITERAL: p, PLUS_LITERAL: E, QMARK_LITERAL: O, SLASH_LITERAL: x, ONE_CHAR: h, QMARK: y, END_ANCHOR: c, DOTS_SLASH: b, NO_DOT: f, NO_DOTS: d, NO_DOT_SLASH: C, NO_DOTS_SLASH: r, QMARK_NO_DOT: o, STAR: g, START_ANCHOR: i, SEP: "/" }, T = { ..._, SLASH_LITERAL: `[${u}]`, QMARK: m, STAR: `${m}*?`, DOTS_SLASH: `${p}{1,2}(?:[${u}]|$)`, NO_DOT: `(?!${p})`, NO_DOTS: `(?!(?:^|[${u}])${p}{1,2}(?:[${u}]|$))`, NO_DOT_SLASH: `(?!${p}{0,1}(?:[${u}]|$))`, NO_DOTS_SLASH: `(?!${p}{1,2}(?:[${u}]|$))`, QMARK_NO_DOT: `[^.${u}]`, START_ANCHOR: `(?:^|[${u}])`, END_ANCHOR: `(?:[${u}]|$)`, SEP: "\\" }, H = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
|
692
|
+
S.exports = { MAX_LENGTH: 65536, POSIX_REGEX_SOURCE: H, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, extglobChars(v) {
|
|
693
|
+
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${v.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
694
|
+
}, globChars(v) {
|
|
695
|
+
return v === !0 ? T : _;
|
|
696
|
+
} };
|
|
697
|
+
}, 697: (S, u, m) => {
|
|
698
|
+
const p = m(154), E = m(96), { MAX_LENGTH: O, POSIX_REGEX_SOURCE: x, REGEX_NON_SPECIAL_CHARS: h, REGEX_SPECIAL_CHARS_BACKREF: y, REPLACEMENTS: c } = p, i = (d, C) => {
|
|
699
|
+
if (typeof C.expandRange == "function")
|
|
700
|
+
return C.expandRange(...d, C);
|
|
701
|
+
d.sort();
|
|
702
|
+
const r = `[${d.join("-")}]`;
|
|
703
|
+
try {
|
|
704
|
+
new RegExp(r);
|
|
705
|
+
} catch {
|
|
706
|
+
return d.map((g) => E.escapeRegex(g)).join("..");
|
|
707
|
+
}
|
|
708
|
+
return r;
|
|
709
|
+
}, b = (d, C) => `Missing ${d}: "${C}" - use "\\\\${C}" to match literal characters`, f = (d, C) => {
|
|
710
|
+
if (typeof d != "string")
|
|
711
|
+
throw new TypeError("Expected a string");
|
|
712
|
+
d = c[d] || d;
|
|
713
|
+
const r = { ...C }, o = typeof r.maxLength == "number" ? Math.min(O, r.maxLength) : O;
|
|
714
|
+
let g = d.length;
|
|
715
|
+
if (g > o)
|
|
716
|
+
throw new SyntaxError(`Input length: ${g}, exceeds maximum allowed length: ${o}`);
|
|
717
|
+
const l = { type: "bos", value: "", output: r.prepend || "" }, _ = [l], T = r.capture ? "" : "?:", H = p.globChars(r.windows), v = p.extglobChars(H), { DOT_LITERAL: K, PLUS_LITERAL: k, SLASH_LITERAL: U, ONE_CHAR: P, DOTS_SLASH: z, NO_DOT: q, NO_DOT_SLASH: Q, NO_DOTS_SLASH: X, QMARK: M, QMARK_NO_DOT: G, STAR: re, START_ANCHOR: ie } = H, V = (a) => `(${T}(?:(?!${ie}${a.dot ? z : K}).)*?)`, F = r.dot ? "" : q, ae = r.dot ? M : G;
|
|
718
|
+
let te = r.bash === !0 ? V(r) : re;
|
|
719
|
+
r.capture && (te = `(${te})`), typeof r.noext == "boolean" && (r.noextglob = r.noext);
|
|
720
|
+
const e = { input: d, index: -1, start: 0, dot: r.dot === !0, consumed: "", output: "", prefix: "", backtrack: !1, negated: !1, brackets: 0, braces: 0, parens: 0, quotes: 0, globstar: !1, tokens: _ };
|
|
721
|
+
d = E.removePrefix(d, e), g = d.length;
|
|
722
|
+
const W = [], se = [], fe = [];
|
|
723
|
+
let n = l, t;
|
|
724
|
+
const Z = () => e.index === g - 1, w = e.peek = (a = 1) => d[e.index + a], B = e.advance = () => d[++e.index] || "", ce = () => d.slice(e.index + 1), pe = (a = "", D = 0) => {
|
|
725
|
+
e.consumed += a, e.index += D;
|
|
726
|
+
}, J = (a) => {
|
|
727
|
+
e.output += a.output != null ? a.output : a.value, pe(a.value);
|
|
728
|
+
}, ee = () => {
|
|
729
|
+
let a = 1;
|
|
730
|
+
for (; w() === "!" && (w(2) !== "(" || w(3) === "?"); )
|
|
731
|
+
B(), e.start++, a++;
|
|
732
|
+
return a % 2 === 0 ? !1 : (e.negated = !0, e.start++, !0);
|
|
733
|
+
}, de = (a) => {
|
|
734
|
+
e[a]++, fe.push(a);
|
|
735
|
+
}, ne = (a) => {
|
|
736
|
+
e[a]--, fe.pop();
|
|
737
|
+
}, I = (a) => {
|
|
738
|
+
if (n.type === "globstar") {
|
|
739
|
+
const D = e.braces > 0 && (a.type === "comma" || a.type === "brace"), s = a.extglob === !0 || W.length && (a.type === "pipe" || a.type === "paren");
|
|
740
|
+
a.type !== "slash" && a.type !== "paren" && !D && !s && (e.output = e.output.slice(0, -n.output.length), n.type = "star", n.value = "*", n.output = te, e.output += n.output);
|
|
741
|
+
}
|
|
742
|
+
if (W.length && a.type !== "paren" && (W[W.length - 1].inner += a.value), (a.value || a.output) && J(a), n && n.type === "text" && a.type === "text") {
|
|
743
|
+
n.output = (n.output || n.value) + a.value, n.value += a.value;
|
|
744
|
+
return;
|
|
745
|
+
}
|
|
746
|
+
a.prev = n, _.push(a), n = a;
|
|
747
|
+
}, ue = (a, D) => {
|
|
748
|
+
const s = { ...v[D], conditions: 1, inner: "" };
|
|
749
|
+
s.prev = n, s.parens = e.parens, s.output = e.output;
|
|
750
|
+
const $ = (r.capture ? "(" : "") + s.open;
|
|
751
|
+
de("parens"), I({ type: a, value: D, output: e.output ? "" : P }), I({ type: "paren", extglob: !0, value: B(), output: $ }), W.push(s);
|
|
752
|
+
}, A = (a) => {
|
|
753
|
+
let D = a.close + (r.capture ? ")" : ""), s;
|
|
754
|
+
if (a.type === "negate") {
|
|
755
|
+
let $ = te;
|
|
756
|
+
if (a.inner && a.inner.length > 1 && a.inner.includes("/") && ($ = V(r)), ($ !== te || Z() || /^\)+$/.test(ce())) && (D = a.close = `)$))${$}`), a.inner.includes("*") && (s = ce()) && /^\.[^\\/.]+$/.test(s)) {
|
|
757
|
+
const Y = f(s, { ...C, fastpaths: !1 }).output;
|
|
758
|
+
D = a.close = `)${Y})${$})`;
|
|
759
|
+
}
|
|
760
|
+
a.prev.type === "bos" && (e.negatedExtglob = !0);
|
|
761
|
+
}
|
|
762
|
+
I({ type: "paren", extglob: !0, value: t, output: D }), ne("parens");
|
|
763
|
+
};
|
|
764
|
+
if (r.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(d)) {
|
|
765
|
+
let a = !1, D = d.replace(y, (s, $, Y, le, oe, Ee) => le === "\\" ? (a = !0, s) : le === "?" ? $ ? $ + le + (oe ? M.repeat(oe.length) : "") : Ee === 0 ? ae + (oe ? M.repeat(oe.length) : "") : M.repeat(Y.length) : le === "." ? K.repeat(Y.length) : le === "*" ? $ ? $ + le + (oe ? te : "") : te : $ ? s : `\\${s}`);
|
|
766
|
+
return a === !0 && (r.unescape === !0 ? D = D.replace(/\\/g, "") : D = D.replace(/\\+/g, (s) => s.length % 2 === 0 ? "\\\\" : s ? "\\" : "")), D === d && r.contains === !0 ? (e.output = d, e) : (e.output = E.wrapOutput(D, e, C), e);
|
|
767
|
+
}
|
|
768
|
+
for (; !Z(); ) {
|
|
769
|
+
if (t = B(), t === "\0")
|
|
770
|
+
continue;
|
|
771
|
+
if (t === "\\") {
|
|
772
|
+
const s = w();
|
|
773
|
+
if (s === "/" && r.bash !== !0 || s === "." || s === ";")
|
|
774
|
+
continue;
|
|
775
|
+
if (!s) {
|
|
776
|
+
t += "\\", I({ type: "text", value: t });
|
|
777
|
+
continue;
|
|
778
|
+
}
|
|
779
|
+
const $ = /^\\+/.exec(ce());
|
|
780
|
+
let Y = 0;
|
|
781
|
+
if ($ && $[0].length > 2 && (Y = $[0].length, e.index += Y, Y % 2 !== 0 && (t += "\\")), r.unescape === !0 ? t = B() : t += B(), e.brackets === 0) {
|
|
782
|
+
I({ type: "text", value: t });
|
|
783
|
+
continue;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
if (e.brackets > 0 && (t !== "]" || n.value === "[" || n.value === "[^")) {
|
|
787
|
+
if (r.posix !== !1 && t === ":") {
|
|
788
|
+
const s = n.value.slice(1);
|
|
789
|
+
if (s.includes("[") && (n.posix = !0, s.includes(":"))) {
|
|
790
|
+
const $ = n.value.lastIndexOf("["), Y = n.value.slice(0, $), le = n.value.slice($ + 2), oe = x[le];
|
|
791
|
+
if (oe) {
|
|
792
|
+
n.value = Y + oe, e.backtrack = !0, B(), !l.output && _.indexOf(n) === 1 && (l.output = P);
|
|
793
|
+
continue;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
(t === "[" && w() !== ":" || t === "-" && w() === "]") && (t = `\\${t}`), t === "]" && (n.value === "[" || n.value === "[^") && (t = `\\${t}`), r.posix === !0 && t === "!" && n.value === "[" && (t = "^"), n.value += t, J({ value: t });
|
|
798
|
+
continue;
|
|
799
|
+
}
|
|
800
|
+
if (e.quotes === 1 && t !== '"') {
|
|
801
|
+
t = E.escapeRegex(t), n.value += t, J({ value: t });
|
|
802
|
+
continue;
|
|
803
|
+
}
|
|
804
|
+
if (t === '"') {
|
|
805
|
+
e.quotes = e.quotes === 1 ? 0 : 1, r.keepQuotes === !0 && I({ type: "text", value: t });
|
|
806
|
+
continue;
|
|
807
|
+
}
|
|
808
|
+
if (t === "(") {
|
|
809
|
+
de("parens"), I({ type: "paren", value: t });
|
|
810
|
+
continue;
|
|
811
|
+
}
|
|
812
|
+
if (t === ")") {
|
|
813
|
+
if (e.parens === 0 && r.strictBrackets === !0)
|
|
814
|
+
throw new SyntaxError(b("opening", "("));
|
|
815
|
+
const s = W[W.length - 1];
|
|
816
|
+
if (s && e.parens === s.parens + 1) {
|
|
817
|
+
A(W.pop());
|
|
818
|
+
continue;
|
|
819
|
+
}
|
|
820
|
+
I({ type: "paren", value: t, output: e.parens ? ")" : "\\)" }), ne("parens");
|
|
821
|
+
continue;
|
|
822
|
+
}
|
|
823
|
+
if (t === "[") {
|
|
824
|
+
if (r.nobracket === !0 || !ce().includes("]")) {
|
|
825
|
+
if (r.nobracket !== !0 && r.strictBrackets === !0)
|
|
826
|
+
throw new SyntaxError(b("closing", "]"));
|
|
827
|
+
t = `\\${t}`;
|
|
828
|
+
} else
|
|
829
|
+
de("brackets");
|
|
830
|
+
I({ type: "bracket", value: t });
|
|
831
|
+
continue;
|
|
832
|
+
}
|
|
833
|
+
if (t === "]") {
|
|
834
|
+
if (r.nobracket === !0 || n && n.type === "bracket" && n.value.length === 1) {
|
|
835
|
+
I({ type: "text", value: t, output: `\\${t}` });
|
|
836
|
+
continue;
|
|
837
|
+
}
|
|
838
|
+
if (e.brackets === 0) {
|
|
839
|
+
if (r.strictBrackets === !0)
|
|
840
|
+
throw new SyntaxError(b("opening", "["));
|
|
841
|
+
I({ type: "text", value: t, output: `\\${t}` });
|
|
842
|
+
continue;
|
|
843
|
+
}
|
|
844
|
+
ne("brackets");
|
|
845
|
+
const s = n.value.slice(1);
|
|
846
|
+
if (n.posix !== !0 && s[0] === "^" && !s.includes("/") && (t = `/${t}`), n.value += t, J({ value: t }), r.literalBrackets === !1 || E.hasRegexChars(s))
|
|
847
|
+
continue;
|
|
848
|
+
const $ = E.escapeRegex(n.value);
|
|
849
|
+
if (e.output = e.output.slice(0, -n.value.length), r.literalBrackets === !0) {
|
|
850
|
+
e.output += $, n.value = $;
|
|
851
|
+
continue;
|
|
852
|
+
}
|
|
853
|
+
n.value = `(${T}${$}|${n.value})`, e.output += n.value;
|
|
854
|
+
continue;
|
|
855
|
+
}
|
|
856
|
+
if (t === "{" && r.nobrace !== !0) {
|
|
857
|
+
de("braces");
|
|
858
|
+
const s = { type: "brace", value: t, output: "(", outputIndex: e.output.length, tokensIndex: e.tokens.length };
|
|
859
|
+
se.push(s), I(s);
|
|
860
|
+
continue;
|
|
861
|
+
}
|
|
862
|
+
if (t === "}") {
|
|
863
|
+
const s = se[se.length - 1];
|
|
864
|
+
if (r.nobrace === !0 || !s) {
|
|
865
|
+
I({ type: "text", value: t, output: t });
|
|
866
|
+
continue;
|
|
867
|
+
}
|
|
868
|
+
let $ = ")";
|
|
869
|
+
if (s.dots === !0) {
|
|
870
|
+
const Y = _.slice(), le = [];
|
|
871
|
+
for (let oe = Y.length - 1; oe >= 0 && (_.pop(), Y[oe].type !== "brace"); oe--)
|
|
872
|
+
Y[oe].type !== "dots" && le.unshift(Y[oe].value);
|
|
873
|
+
$ = i(le, r), e.backtrack = !0;
|
|
874
|
+
}
|
|
875
|
+
if (s.comma !== !0 && s.dots !== !0) {
|
|
876
|
+
const Y = e.output.slice(0, s.outputIndex), le = e.tokens.slice(s.tokensIndex);
|
|
877
|
+
s.value = s.output = "\\{", t = $ = "\\}", e.output = Y;
|
|
878
|
+
for (const oe of le)
|
|
879
|
+
e.output += oe.output || oe.value;
|
|
880
|
+
}
|
|
881
|
+
I({ type: "brace", value: t, output: $ }), ne("braces"), se.pop();
|
|
882
|
+
continue;
|
|
883
|
+
}
|
|
884
|
+
if (t === "|") {
|
|
885
|
+
W.length > 0 && W[W.length - 1].conditions++, I({ type: "text", value: t });
|
|
886
|
+
continue;
|
|
887
|
+
}
|
|
888
|
+
if (t === ",") {
|
|
889
|
+
let s = t;
|
|
890
|
+
const $ = se[se.length - 1];
|
|
891
|
+
$ && fe[fe.length - 1] === "braces" && ($.comma = !0, s = "|"), I({ type: "comma", value: t, output: s });
|
|
892
|
+
continue;
|
|
893
|
+
}
|
|
894
|
+
if (t === "/") {
|
|
895
|
+
if (n.type === "dot" && e.index === e.start + 1) {
|
|
896
|
+
e.start = e.index + 1, e.consumed = "", e.output = "", _.pop(), n = l;
|
|
897
|
+
continue;
|
|
898
|
+
}
|
|
899
|
+
I({ type: "slash", value: t, output: U });
|
|
900
|
+
continue;
|
|
901
|
+
}
|
|
902
|
+
if (t === ".") {
|
|
903
|
+
if (e.braces > 0 && n.type === "dot") {
|
|
904
|
+
n.value === "." && (n.output = K);
|
|
905
|
+
const s = se[se.length - 1];
|
|
906
|
+
n.type = "dots", n.output += t, n.value += t, s.dots = !0;
|
|
907
|
+
continue;
|
|
908
|
+
}
|
|
909
|
+
if (e.braces + e.parens === 0 && n.type !== "bos" && n.type !== "slash") {
|
|
910
|
+
I({ type: "text", value: t, output: K });
|
|
911
|
+
continue;
|
|
912
|
+
}
|
|
913
|
+
I({ type: "dot", value: t, output: K });
|
|
914
|
+
continue;
|
|
915
|
+
}
|
|
916
|
+
if (t === "?") {
|
|
917
|
+
if (!(n && n.value === "(") && r.noextglob !== !0 && w() === "(" && w(2) !== "?") {
|
|
918
|
+
ue("qmark", t);
|
|
919
|
+
continue;
|
|
920
|
+
}
|
|
921
|
+
if (n && n.type === "paren") {
|
|
922
|
+
const $ = w();
|
|
923
|
+
let Y = t;
|
|
924
|
+
(n.value === "(" && !/[!=<:]/.test($) || $ === "<" && !/<([!=]|\w+>)/.test(ce())) && (Y = `\\${t}`), I({ type: "text", value: t, output: Y });
|
|
925
|
+
continue;
|
|
926
|
+
}
|
|
927
|
+
if (r.dot !== !0 && (n.type === "slash" || n.type === "bos")) {
|
|
928
|
+
I({ type: "qmark", value: t, output: G });
|
|
929
|
+
continue;
|
|
930
|
+
}
|
|
931
|
+
I({ type: "qmark", value: t, output: M });
|
|
932
|
+
continue;
|
|
933
|
+
}
|
|
934
|
+
if (t === "!") {
|
|
935
|
+
if (r.noextglob !== !0 && w() === "(" && (w(2) !== "?" || !/[!=<:]/.test(w(3)))) {
|
|
936
|
+
ue("negate", t);
|
|
937
|
+
continue;
|
|
938
|
+
}
|
|
939
|
+
if (r.nonegate !== !0 && e.index === 0) {
|
|
940
|
+
ee();
|
|
941
|
+
continue;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
if (t === "+") {
|
|
945
|
+
if (r.noextglob !== !0 && w() === "(" && w(2) !== "?") {
|
|
946
|
+
ue("plus", t);
|
|
947
|
+
continue;
|
|
948
|
+
}
|
|
949
|
+
if (n && n.value === "(" || r.regex === !1) {
|
|
950
|
+
I({ type: "plus", value: t, output: k });
|
|
951
|
+
continue;
|
|
952
|
+
}
|
|
953
|
+
if (n && (n.type === "bracket" || n.type === "paren" || n.type === "brace") || e.parens > 0) {
|
|
954
|
+
I({ type: "plus", value: t });
|
|
955
|
+
continue;
|
|
956
|
+
}
|
|
957
|
+
I({ type: "plus", value: k });
|
|
958
|
+
continue;
|
|
959
|
+
}
|
|
960
|
+
if (t === "@") {
|
|
961
|
+
if (r.noextglob !== !0 && w() === "(" && w(2) !== "?") {
|
|
962
|
+
I({ type: "at", extglob: !0, value: t, output: "" });
|
|
963
|
+
continue;
|
|
964
|
+
}
|
|
965
|
+
I({ type: "text", value: t });
|
|
966
|
+
continue;
|
|
967
|
+
}
|
|
968
|
+
if (t !== "*") {
|
|
969
|
+
(t === "$" || t === "^") && (t = `\\${t}`);
|
|
970
|
+
const s = h.exec(ce());
|
|
971
|
+
s && (t += s[0], e.index += s[0].length), I({ type: "text", value: t });
|
|
972
|
+
continue;
|
|
973
|
+
}
|
|
974
|
+
if (n && (n.type === "globstar" || n.star === !0)) {
|
|
975
|
+
n.type = "star", n.star = !0, n.value += t, n.output = te, e.backtrack = !0, e.globstar = !0, pe(t);
|
|
976
|
+
continue;
|
|
977
|
+
}
|
|
978
|
+
let a = ce();
|
|
979
|
+
if (r.noextglob !== !0 && /^\([^?]/.test(a)) {
|
|
980
|
+
ue("star", t);
|
|
981
|
+
continue;
|
|
982
|
+
}
|
|
983
|
+
if (n.type === "star") {
|
|
984
|
+
if (r.noglobstar === !0) {
|
|
985
|
+
pe(t);
|
|
986
|
+
continue;
|
|
987
|
+
}
|
|
988
|
+
const s = n.prev, $ = s.prev, Y = s.type === "slash" || s.type === "bos", le = $ && ($.type === "star" || $.type === "globstar");
|
|
989
|
+
if (r.bash === !0 && (!Y || a[0] && a[0] !== "/")) {
|
|
990
|
+
I({ type: "star", value: t, output: "" });
|
|
991
|
+
continue;
|
|
992
|
+
}
|
|
993
|
+
const oe = e.braces > 0 && (s.type === "comma" || s.type === "brace"), Ee = W.length && (s.type === "pipe" || s.type === "paren");
|
|
994
|
+
if (!Y && s.type !== "paren" && !oe && !Ee) {
|
|
995
|
+
I({ type: "star", value: t, output: "" });
|
|
996
|
+
continue;
|
|
997
|
+
}
|
|
998
|
+
for (; a.slice(0, 3) === "/**"; ) {
|
|
999
|
+
const ye = d[e.index + 4];
|
|
1000
|
+
if (ye && ye !== "/")
|
|
1001
|
+
break;
|
|
1002
|
+
a = a.slice(3), pe("/**", 3);
|
|
1003
|
+
}
|
|
1004
|
+
if (s.type === "bos" && Z()) {
|
|
1005
|
+
n.type = "globstar", n.value += t, n.output = V(r), e.output = n.output, e.globstar = !0, pe(t);
|
|
1006
|
+
continue;
|
|
1007
|
+
}
|
|
1008
|
+
if (s.type === "slash" && s.prev.type !== "bos" && !le && Z()) {
|
|
1009
|
+
e.output = e.output.slice(0, -(s.output + n.output).length), s.output = `(?:${s.output}`, n.type = "globstar", n.output = V(r) + (r.strictSlashes ? ")" : "|$)"), n.value += t, e.globstar = !0, e.output += s.output + n.output, pe(t);
|
|
1010
|
+
continue;
|
|
1011
|
+
}
|
|
1012
|
+
if (s.type === "slash" && s.prev.type !== "bos" && a[0] === "/") {
|
|
1013
|
+
const ye = a[1] !== void 0 ? "|$" : "";
|
|
1014
|
+
e.output = e.output.slice(0, -(s.output + n.output).length), s.output = `(?:${s.output}`, n.type = "globstar", n.output = `${V(r)}${U}|${U}${ye})`, n.value += t, e.output += s.output + n.output, e.globstar = !0, pe(t + B()), I({ type: "slash", value: "/", output: "" });
|
|
1015
|
+
continue;
|
|
1016
|
+
}
|
|
1017
|
+
if (s.type === "bos" && a[0] === "/") {
|
|
1018
|
+
n.type = "globstar", n.value += t, n.output = `(?:^|${U}|${V(r)}${U})`, e.output = n.output, e.globstar = !0, pe(t + B()), I({ type: "slash", value: "/", output: "" });
|
|
1019
|
+
continue;
|
|
1020
|
+
}
|
|
1021
|
+
e.output = e.output.slice(0, -n.output.length), n.type = "globstar", n.output = V(r), n.value += t, e.output += n.output, e.globstar = !0, pe(t);
|
|
1022
|
+
continue;
|
|
1023
|
+
}
|
|
1024
|
+
const D = { type: "star", value: t, output: te };
|
|
1025
|
+
if (r.bash === !0) {
|
|
1026
|
+
D.output = ".*?", (n.type === "bos" || n.type === "slash") && (D.output = F + D.output), I(D);
|
|
1027
|
+
continue;
|
|
1028
|
+
}
|
|
1029
|
+
if (n && (n.type === "bracket" || n.type === "paren") && r.regex === !0) {
|
|
1030
|
+
D.output = t, I(D);
|
|
1031
|
+
continue;
|
|
1032
|
+
}
|
|
1033
|
+
(e.index === e.start || n.type === "slash" || n.type === "dot") && (n.type === "dot" ? (e.output += Q, n.output += Q) : r.dot === !0 ? (e.output += X, n.output += X) : (e.output += F, n.output += F), w() !== "*" && (e.output += P, n.output += P)), I(D);
|
|
1034
|
+
}
|
|
1035
|
+
for (; e.brackets > 0; ) {
|
|
1036
|
+
if (r.strictBrackets === !0)
|
|
1037
|
+
throw new SyntaxError(b("closing", "]"));
|
|
1038
|
+
e.output = E.escapeLast(e.output, "["), ne("brackets");
|
|
1039
|
+
}
|
|
1040
|
+
for (; e.parens > 0; ) {
|
|
1041
|
+
if (r.strictBrackets === !0)
|
|
1042
|
+
throw new SyntaxError(b("closing", ")"));
|
|
1043
|
+
e.output = E.escapeLast(e.output, "("), ne("parens");
|
|
1044
|
+
}
|
|
1045
|
+
for (; e.braces > 0; ) {
|
|
1046
|
+
if (r.strictBrackets === !0)
|
|
1047
|
+
throw new SyntaxError(b("closing", "}"));
|
|
1048
|
+
e.output = E.escapeLast(e.output, "{"), ne("braces");
|
|
1049
|
+
}
|
|
1050
|
+
if (r.strictSlashes !== !0 && (n.type === "star" || n.type === "bracket") && I({ type: "maybe_slash", value: "", output: `${U}?` }), e.backtrack === !0) {
|
|
1051
|
+
e.output = "";
|
|
1052
|
+
for (const a of e.tokens)
|
|
1053
|
+
e.output += a.output != null ? a.output : a.value, a.suffix && (e.output += a.suffix);
|
|
1054
|
+
}
|
|
1055
|
+
return e;
|
|
1056
|
+
};
|
|
1057
|
+
f.fastpaths = (d, C) => {
|
|
1058
|
+
const r = { ...C }, o = typeof r.maxLength == "number" ? Math.min(O, r.maxLength) : O, g = d.length;
|
|
1059
|
+
if (g > o)
|
|
1060
|
+
throw new SyntaxError(`Input length: ${g}, exceeds maximum allowed length: ${o}`);
|
|
1061
|
+
d = c[d] || d;
|
|
1062
|
+
const { DOT_LITERAL: l, SLASH_LITERAL: _, ONE_CHAR: T, DOTS_SLASH: H, NO_DOT: v, NO_DOTS: K, NO_DOTS_SLASH: k, STAR: U, START_ANCHOR: P } = p.globChars(r.windows), z = r.dot ? K : v, q = r.dot ? k : v, Q = r.capture ? "" : "?:", X = { negated: !1, prefix: "" };
|
|
1063
|
+
let M = r.bash === !0 ? ".*?" : U;
|
|
1064
|
+
r.capture && (M = `(${M})`);
|
|
1065
|
+
const G = (F) => F.noglobstar === !0 ? M : `(${Q}(?:(?!${P}${F.dot ? H : l}).)*?)`, re = (F) => {
|
|
1066
|
+
switch (F) {
|
|
1067
|
+
case "*":
|
|
1068
|
+
return `${z}${T}${M}`;
|
|
1069
|
+
case ".*":
|
|
1070
|
+
return `${l}${T}${M}`;
|
|
1071
|
+
case "*.*":
|
|
1072
|
+
return `${z}${M}${l}${T}${M}`;
|
|
1073
|
+
case "*/*":
|
|
1074
|
+
return `${z}${M}${_}${T}${q}${M}`;
|
|
1075
|
+
case "**":
|
|
1076
|
+
return z + G(r);
|
|
1077
|
+
case "**/*":
|
|
1078
|
+
return `(?:${z}${G(r)}${_})?${q}${T}${M}`;
|
|
1079
|
+
case "**/*.*":
|
|
1080
|
+
return `(?:${z}${G(r)}${_})?${q}${M}${l}${T}${M}`;
|
|
1081
|
+
case "**/.*":
|
|
1082
|
+
return `(?:${z}${G(r)}${_})?${l}${T}${M}`;
|
|
1083
|
+
default: {
|
|
1084
|
+
const ae = /^(.*?)\.(\w+)$/.exec(F);
|
|
1085
|
+
if (!ae)
|
|
1086
|
+
return;
|
|
1087
|
+
const te = re(ae[1]);
|
|
1088
|
+
return te ? te + l + ae[2] : void 0;
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
}, ie = E.removePrefix(d, X);
|
|
1092
|
+
let V = re(ie);
|
|
1093
|
+
return V && r.strictSlashes !== !0 && (V += `${_}?`), V;
|
|
1094
|
+
}, S.exports = f;
|
|
1095
|
+
}, 510: (S, u, m) => {
|
|
1096
|
+
const p = m(716), E = m(697), O = m(96), x = m(154), h = (c) => c && typeof c == "object" && !Array.isArray(c), y = (c, i, b = !1) => {
|
|
1097
|
+
if (Array.isArray(c)) {
|
|
1098
|
+
const _ = c.map((H) => y(H, i, b));
|
|
1099
|
+
return (H) => {
|
|
1100
|
+
for (const v of _) {
|
|
1101
|
+
const K = v(H);
|
|
1102
|
+
if (K)
|
|
1103
|
+
return K;
|
|
1104
|
+
}
|
|
1105
|
+
return !1;
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
const f = h(c) && c.tokens && c.input;
|
|
1109
|
+
if (c === "" || typeof c != "string" && !f)
|
|
1110
|
+
throw new TypeError("Expected pattern to be a non-empty string");
|
|
1111
|
+
const d = i || {}, C = d.windows, r = f ? y.compileRe(c, i) : y.makeRe(c, i, !1, !0), o = r.state;
|
|
1112
|
+
delete r.state;
|
|
1113
|
+
let g = () => !1;
|
|
1114
|
+
if (d.ignore) {
|
|
1115
|
+
const _ = { ...i, ignore: null, onMatch: null, onResult: null };
|
|
1116
|
+
g = y(d.ignore, _, b);
|
|
1117
|
+
}
|
|
1118
|
+
const l = (_, T = !1) => {
|
|
1119
|
+
const { isMatch: H, match: v, output: K } = y.test(_, r, i, { glob: c, posix: C }), k = { glob: c, state: o, regex: r, posix: C, input: _, output: K, match: v, isMatch: H };
|
|
1120
|
+
return typeof d.onResult == "function" && d.onResult(k), H === !1 ? (k.isMatch = !1, T ? k : !1) : g(_) ? (typeof d.onIgnore == "function" && d.onIgnore(k), k.isMatch = !1, T ? k : !1) : (typeof d.onMatch == "function" && d.onMatch(k), T ? k : !0);
|
|
1121
|
+
};
|
|
1122
|
+
return b && (l.state = o), l;
|
|
1123
|
+
};
|
|
1124
|
+
y.test = (c, i, b, { glob: f, posix: d } = {}) => {
|
|
1125
|
+
if (typeof c != "string")
|
|
1126
|
+
throw new TypeError("Expected input to be a string");
|
|
1127
|
+
if (c === "")
|
|
1128
|
+
return { isMatch: !1, output: "" };
|
|
1129
|
+
const C = b || {}, r = C.format || (d ? O.toPosixSlashes : null);
|
|
1130
|
+
let o = c === f, g = o && r ? r(c) : c;
|
|
1131
|
+
return o === !1 && (g = r ? r(c) : c, o = g === f), (o === !1 || C.capture === !0) && (C.matchBase === !0 || C.basename === !0 ? o = y.matchBase(c, i, b, d) : o = i.exec(g)), { isMatch: !!o, match: o, output: g };
|
|
1132
|
+
}, y.matchBase = (c, i, b) => (i instanceof RegExp ? i : y.makeRe(i, b)).test(O.basename(c)), y.isMatch = (c, i, b) => y(i, b)(c), y.parse = (c, i) => Array.isArray(c) ? c.map((b) => y.parse(b, i)) : E(c, { ...i, fastpaths: !1 }), y.scan = (c, i) => p(c, i), y.compileRe = (c, i, b = !1, f = !1) => {
|
|
1133
|
+
if (b === !0)
|
|
1134
|
+
return c.output;
|
|
1135
|
+
const d = i || {}, C = d.contains ? "" : "^", r = d.contains ? "" : "$";
|
|
1136
|
+
let o = `${C}(?:${c.output})${r}`;
|
|
1137
|
+
c && c.negated === !0 && (o = `^(?!${o}).*$`);
|
|
1138
|
+
const g = y.toRegex(o, i);
|
|
1139
|
+
return f === !0 && (g.state = c), g;
|
|
1140
|
+
}, y.makeRe = (c, i = {}, b = !1, f = !1) => {
|
|
1141
|
+
if (!c || typeof c != "string")
|
|
1142
|
+
throw new TypeError("Expected a non-empty string");
|
|
1143
|
+
let d = { negated: !1, fastpaths: !0 };
|
|
1144
|
+
return i.fastpaths !== !1 && (c[0] === "." || c[0] === "*") && (d.output = E.fastpaths(c, i)), d.output || (d = E(c, i)), y.compileRe(d, i, b, f);
|
|
1145
|
+
}, y.toRegex = (c, i) => {
|
|
1146
|
+
try {
|
|
1147
|
+
const b = i || {};
|
|
1148
|
+
return new RegExp(c, b.flags || (b.nocase ? "i" : ""));
|
|
1149
|
+
} catch (b) {
|
|
1150
|
+
if (i && i.debug === !0)
|
|
1151
|
+
throw b;
|
|
1152
|
+
return /$^/;
|
|
1153
|
+
}
|
|
1154
|
+
}, y.constants = x, S.exports = y;
|
|
1155
|
+
}, 716: (S, u, m) => {
|
|
1156
|
+
const p = m(96), { CHAR_ASTERISK: E, CHAR_AT: O, CHAR_BACKWARD_SLASH: x, CHAR_COMMA: h, CHAR_DOT: y, CHAR_EXCLAMATION_MARK: c, CHAR_FORWARD_SLASH: i, CHAR_LEFT_CURLY_BRACE: b, CHAR_LEFT_PARENTHESES: f, CHAR_LEFT_SQUARE_BRACKET: d, CHAR_PLUS: C, CHAR_QUESTION_MARK: r, CHAR_RIGHT_CURLY_BRACE: o, CHAR_RIGHT_PARENTHESES: g, CHAR_RIGHT_SQUARE_BRACKET: l } = m(154), _ = (v) => v === i || v === x, T = (v) => {
|
|
1157
|
+
v.isPrefix !== !0 && (v.depth = v.isGlobstar ? 1 / 0 : 1);
|
|
1158
|
+
}, H = (v, K) => {
|
|
1159
|
+
const k = K || {}, U = v.length - 1, P = k.parts === !0 || k.scanToEnd === !0, z = [], q = [], Q = [];
|
|
1160
|
+
let X = v, M = -1, G = 0, re = 0, ie = !1, V = !1, F = !1, ae = !1, te = !1, e = !1, W = !1, se = !1, fe = !1, n = !1, t = 0, Z, w, B = { value: "", depth: 0, isGlob: !1 };
|
|
1161
|
+
const ce = () => M >= U, pe = () => X.charCodeAt(M + 1), J = () => (Z = w, X.charCodeAt(++M));
|
|
1162
|
+
for (; M < U; ) {
|
|
1163
|
+
w = J();
|
|
1164
|
+
let ue;
|
|
1165
|
+
if (w === x) {
|
|
1166
|
+
W = B.backslashes = !0, w = J(), w === b && (e = !0);
|
|
1167
|
+
continue;
|
|
1168
|
+
}
|
|
1169
|
+
if (e === !0 || w === b) {
|
|
1170
|
+
for (t++; ce() !== !0 && (w = J()); ) {
|
|
1171
|
+
if (w === x) {
|
|
1172
|
+
W = B.backslashes = !0, J();
|
|
1173
|
+
continue;
|
|
1174
|
+
}
|
|
1175
|
+
if (w === b) {
|
|
1176
|
+
t++;
|
|
1177
|
+
continue;
|
|
1178
|
+
}
|
|
1179
|
+
if (e !== !0 && w === y && (w = J()) === y) {
|
|
1180
|
+
if (ie = B.isBrace = !0, F = B.isGlob = !0, n = !0, P === !0)
|
|
1181
|
+
continue;
|
|
1182
|
+
break;
|
|
1183
|
+
}
|
|
1184
|
+
if (e !== !0 && w === h) {
|
|
1185
|
+
if (ie = B.isBrace = !0, F = B.isGlob = !0, n = !0, P === !0)
|
|
1186
|
+
continue;
|
|
1187
|
+
break;
|
|
1188
|
+
}
|
|
1189
|
+
if (w === o && (t--, t === 0)) {
|
|
1190
|
+
e = !1, ie = B.isBrace = !0, n = !0;
|
|
1191
|
+
break;
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
if (P === !0)
|
|
1195
|
+
continue;
|
|
1196
|
+
break;
|
|
1197
|
+
}
|
|
1198
|
+
if (w === i) {
|
|
1199
|
+
if (z.push(M), q.push(B), B = { value: "", depth: 0, isGlob: !1 }, n === !0)
|
|
1200
|
+
continue;
|
|
1201
|
+
if (Z === y && M === G + 1) {
|
|
1202
|
+
G += 2;
|
|
1203
|
+
continue;
|
|
1204
|
+
}
|
|
1205
|
+
re = M + 1;
|
|
1206
|
+
continue;
|
|
1207
|
+
}
|
|
1208
|
+
if (k.noext !== !0 && (w === C || w === O || w === E || w === r || w === c) === !0 && pe() === f) {
|
|
1209
|
+
if (F = B.isGlob = !0, ae = B.isExtglob = !0, n = !0, w === c && M === G && (fe = !0), P === !0) {
|
|
1210
|
+
for (; ce() !== !0 && (w = J()); ) {
|
|
1211
|
+
if (w === x) {
|
|
1212
|
+
W = B.backslashes = !0, w = J();
|
|
1213
|
+
continue;
|
|
1214
|
+
}
|
|
1215
|
+
if (w === g) {
|
|
1216
|
+
F = B.isGlob = !0, n = !0;
|
|
1217
|
+
break;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
continue;
|
|
1221
|
+
}
|
|
1222
|
+
break;
|
|
1223
|
+
}
|
|
1224
|
+
if (w === E) {
|
|
1225
|
+
if (Z === E && (te = B.isGlobstar = !0), F = B.isGlob = !0, n = !0, P === !0)
|
|
1226
|
+
continue;
|
|
1227
|
+
break;
|
|
1228
|
+
}
|
|
1229
|
+
if (w === r) {
|
|
1230
|
+
if (F = B.isGlob = !0, n = !0, P === !0)
|
|
1231
|
+
continue;
|
|
1232
|
+
break;
|
|
1233
|
+
}
|
|
1234
|
+
if (w === d) {
|
|
1235
|
+
for (; ce() !== !0 && (ue = J()); ) {
|
|
1236
|
+
if (ue === x) {
|
|
1237
|
+
W = B.backslashes = !0, J();
|
|
1238
|
+
continue;
|
|
1239
|
+
}
|
|
1240
|
+
if (ue === l) {
|
|
1241
|
+
V = B.isBracket = !0, F = B.isGlob = !0, n = !0;
|
|
1242
|
+
break;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
if (P === !0)
|
|
1246
|
+
continue;
|
|
1247
|
+
break;
|
|
1248
|
+
}
|
|
1249
|
+
if (k.nonegate !== !0 && w === c && M === G) {
|
|
1250
|
+
se = B.negated = !0, G++;
|
|
1251
|
+
continue;
|
|
1252
|
+
}
|
|
1253
|
+
if (k.noparen !== !0 && w === f) {
|
|
1254
|
+
if (F = B.isGlob = !0, P === !0) {
|
|
1255
|
+
for (; ce() !== !0 && (w = J()); ) {
|
|
1256
|
+
if (w === f) {
|
|
1257
|
+
W = B.backslashes = !0, w = J();
|
|
1258
|
+
continue;
|
|
1259
|
+
}
|
|
1260
|
+
if (w === g) {
|
|
1261
|
+
n = !0;
|
|
1262
|
+
break;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
continue;
|
|
1266
|
+
}
|
|
1267
|
+
break;
|
|
1268
|
+
}
|
|
1269
|
+
if (F === !0) {
|
|
1270
|
+
if (n = !0, P === !0)
|
|
1271
|
+
continue;
|
|
1272
|
+
break;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
k.noext === !0 && (ae = !1, F = !1);
|
|
1276
|
+
let ee = X, de = "", ne = "";
|
|
1277
|
+
G > 0 && (de = X.slice(0, G), X = X.slice(G), re -= G), ee && F === !0 && re > 0 ? (ee = X.slice(0, re), ne = X.slice(re)) : F === !0 ? (ee = "", ne = X) : ee = X, ee && ee !== "" && ee !== "/" && ee !== X && _(ee.charCodeAt(ee.length - 1)) && (ee = ee.slice(0, -1)), k.unescape === !0 && (ne && (ne = p.removeBackslashes(ne)), ee && W === !0 && (ee = p.removeBackslashes(ee)));
|
|
1278
|
+
const I = { prefix: de, input: v, start: G, base: ee, glob: ne, isBrace: ie, isBracket: V, isGlob: F, isExtglob: ae, isGlobstar: te, negated: se, negatedExtglob: fe };
|
|
1279
|
+
if (k.tokens === !0 && (I.maxDepth = 0, _(w) || q.push(B), I.tokens = q), k.parts === !0 || k.tokens === !0) {
|
|
1280
|
+
let ue;
|
|
1281
|
+
for (let A = 0; A < z.length; A++) {
|
|
1282
|
+
const a = ue ? ue + 1 : G, D = z[A], s = v.slice(a, D);
|
|
1283
|
+
k.tokens && (A === 0 && G !== 0 ? (q[A].isPrefix = !0, q[A].value = de) : q[A].value = s, T(q[A]), I.maxDepth += q[A].depth), (A !== 0 || s !== "") && Q.push(s), ue = D;
|
|
1284
|
+
}
|
|
1285
|
+
if (ue && ue + 1 < v.length) {
|
|
1286
|
+
const A = v.slice(ue + 1);
|
|
1287
|
+
Q.push(A), k.tokens && (q[q.length - 1].value = A, T(q[q.length - 1]), I.maxDepth += q[q.length - 1].depth);
|
|
1288
|
+
}
|
|
1289
|
+
I.slashes = z, I.parts = Q;
|
|
1290
|
+
}
|
|
1291
|
+
return I;
|
|
1292
|
+
};
|
|
1293
|
+
S.exports = H;
|
|
1294
|
+
}, 96: (S, u, m) => {
|
|
1295
|
+
const { REGEX_BACKSLASH: p, REGEX_REMOVE_BACKSLASH: E, REGEX_SPECIAL_CHARS: O, REGEX_SPECIAL_CHARS_GLOBAL: x } = m(154);
|
|
1296
|
+
u.isObject = (h) => h !== null && typeof h == "object" && !Array.isArray(h), u.hasRegexChars = (h) => O.test(h), u.isRegexChar = (h) => h.length === 1 && u.hasRegexChars(h), u.escapeRegex = (h) => h.replace(x, "\\$1"), u.toPosixSlashes = (h) => h.replace(p, "/"), u.removeBackslashes = (h) => h.replace(E, (y) => y === "\\" ? "" : y), u.escapeLast = (h, y, c) => {
|
|
1297
|
+
const i = h.lastIndexOf(y, c);
|
|
1298
|
+
return i === -1 ? h : h[i - 1] === "\\" ? u.escapeLast(h, y, i - 1) : `${h.slice(0, i)}\\${h.slice(i)}`;
|
|
1299
|
+
}, u.removePrefix = (h, y = {}) => {
|
|
1300
|
+
let c = h;
|
|
1301
|
+
return c.startsWith("./") && (c = c.slice(2), y.prefix = "./"), c;
|
|
1302
|
+
}, u.wrapOutput = (h, y = {}, c = {}) => {
|
|
1303
|
+
const i = c.contains ? "" : "^", b = c.contains ? "" : "$";
|
|
1304
|
+
let f = `${i}(?:${h})${b}`;
|
|
1305
|
+
return y.negated === !0 && (f = `(?:^(?!${f}).*$)`), f;
|
|
1306
|
+
}, u.basename = (h, { windows: y } = {}) => {
|
|
1307
|
+
const c = h.split(y ? /[\\/]/ : "/"), i = c[c.length - 1];
|
|
1308
|
+
return i === "" ? c[c.length - 2] : i;
|
|
1309
|
+
};
|
|
1310
|
+
} }, R = {};
|
|
1311
|
+
function N(S) {
|
|
1312
|
+
var u = R[S];
|
|
1313
|
+
if (u !== void 0)
|
|
1314
|
+
return u.exports;
|
|
1315
|
+
var m = R[S] = { exports: {} }, p = !0;
|
|
1316
|
+
try {
|
|
1317
|
+
L[S](m, m.exports, N), p = !1;
|
|
1318
|
+
} finally {
|
|
1319
|
+
p && delete R[S];
|
|
1320
|
+
}
|
|
1321
|
+
return m.exports;
|
|
1322
|
+
}
|
|
1323
|
+
typeof N < "u" && (N.ab = __dirname + "/");
|
|
1324
|
+
var j = N(170);
|
|
1325
|
+
$e.exports = j;
|
|
1326
|
+
})()), $e.exports;
|
|
1327
|
+
}
|
|
1328
|
+
var Ue;
|
|
1329
|
+
function lt() {
|
|
1330
|
+
return Ue || (Ue = 1, function(L) {
|
|
1331
|
+
Object.defineProperty(L, "__esModule", {
|
|
1332
|
+
value: !0
|
|
1333
|
+
});
|
|
1334
|
+
function R(u, m) {
|
|
1335
|
+
for (var p in m)
|
|
1336
|
+
Object.defineProperty(u, p, {
|
|
1337
|
+
enumerable: !0,
|
|
1338
|
+
get: m[p]
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
R(L, {
|
|
1342
|
+
hasMatch: function() {
|
|
1343
|
+
return S;
|
|
1344
|
+
},
|
|
1345
|
+
matchRemotePattern: function() {
|
|
1346
|
+
return j;
|
|
1347
|
+
}
|
|
1348
|
+
});
|
|
1349
|
+
const N = ct();
|
|
1350
|
+
function j(u, m) {
|
|
1351
|
+
if (u.protocol !== void 0) {
|
|
1352
|
+
const E = m.protocol.slice(0, -1);
|
|
1353
|
+
if (u.protocol !== E)
|
|
1354
|
+
return !1;
|
|
1355
|
+
}
|
|
1356
|
+
if (u.port !== void 0 && u.port !== m.port)
|
|
1357
|
+
return !1;
|
|
1358
|
+
if (u.hostname === void 0)
|
|
1359
|
+
throw new Error(`Pattern should define hostname but found
|
|
1360
|
+
` + JSON.stringify(u));
|
|
1361
|
+
if (!(0, N.makeRe)(u.hostname).test(m.hostname))
|
|
1362
|
+
return !1;
|
|
1363
|
+
var p;
|
|
1364
|
+
return !!(0, N.makeRe)((p = u.pathname) != null ? p : "**", {
|
|
1365
|
+
dot: !0
|
|
1366
|
+
}).test(m.pathname);
|
|
1367
|
+
}
|
|
1368
|
+
function S(u, m, p) {
|
|
1369
|
+
return u.some((E) => p.hostname === E) || m.some((E) => j(E, p));
|
|
1370
|
+
}
|
|
1371
|
+
}(Ie)), Ie;
|
|
1372
|
+
}
|
|
1373
|
+
var qe;
|
|
1374
|
+
function Ve() {
|
|
1375
|
+
return qe || (qe = 1, function(L) {
|
|
1376
|
+
Object.defineProperty(L, "__esModule", {
|
|
1377
|
+
value: !0
|
|
1378
|
+
}), Object.defineProperty(L, "default", {
|
|
1379
|
+
enumerable: !0,
|
|
1380
|
+
get: function() {
|
|
1381
|
+
return N;
|
|
1382
|
+
}
|
|
1383
|
+
});
|
|
1384
|
+
function R(j) {
|
|
1385
|
+
let { config: S, src: u, width: m, quality: p } = j;
|
|
1386
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1387
|
+
const E = [];
|
|
1388
|
+
if (u || E.push("src"), m || E.push("width"), E.length > 0)
|
|
1389
|
+
throw new Error("Next Image Optimization requires " + E.join(", ") + " to be provided. Make sure you pass them as props to the `next/image` component. Received: " + JSON.stringify({
|
|
1390
|
+
src: u,
|
|
1391
|
+
width: m,
|
|
1392
|
+
quality: p
|
|
1393
|
+
}));
|
|
1394
|
+
if (u.startsWith("//"))
|
|
1395
|
+
throw new Error('Failed to parse src "' + u + '" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');
|
|
1396
|
+
if (!u.startsWith("/") && (S.domains || S.remotePatterns)) {
|
|
1397
|
+
let O;
|
|
1398
|
+
try {
|
|
1399
|
+
O = new URL(u);
|
|
1400
|
+
} catch (x) {
|
|
1401
|
+
throw console.error(x), new Error('Failed to parse src "' + u + '" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)');
|
|
1402
|
+
}
|
|
1403
|
+
if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
|
|
1404
|
+
process.env.NEXT_RUNTIME !== "edge") {
|
|
1405
|
+
const { hasMatch: x } = lt();
|
|
1406
|
+
if (!x(S.domains, S.remotePatterns, O))
|
|
1407
|
+
throw new Error("Invalid src prop (" + u + ') on `next/image`, hostname "' + O.hostname + '" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host');
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
return S.path + "?url=" + encodeURIComponent(u) + "&w=" + m + "&q=" + (p || 75) + (process.env.NEXT_DEPLOYMENT_ID ? "&dpl=" + process.env.NEXT_DEPLOYMENT_ID : "");
|
|
1412
|
+
}
|
|
1413
|
+
R.__next_img_default = !0;
|
|
1414
|
+
const N = R;
|
|
1415
|
+
}(Oe)), Oe;
|
|
1416
|
+
}
|
|
1417
|
+
(function(L, R) {
|
|
1418
|
+
"use client";
|
|
1419
|
+
Object.defineProperty(R, "__esModule", {
|
|
1420
|
+
value: !0
|
|
1421
|
+
}), Object.defineProperty(R, "Image", {
|
|
1422
|
+
enumerable: !0,
|
|
1423
|
+
get: function() {
|
|
1424
|
+
return r;
|
|
1425
|
+
}
|
|
1426
|
+
});
|
|
1427
|
+
const N = _e, j = Ke, S = Fe, u = /* @__PURE__ */ j._(me), m = /* @__PURE__ */ N._(et), p = /* @__PURE__ */ N._(at()), E = Te, O = Re, x = ut(), h = ve, y = Je(), c = /* @__PURE__ */ N._(Ve()), i = process.env.__NEXT_IMAGE_OPTS;
|
|
1428
|
+
typeof window > "u" && (globalThis.__NEXT_IMAGE_IMPORTED = !0);
|
|
1429
|
+
function b(o, g, l, _, T, H, v) {
|
|
1430
|
+
const K = o == null ? void 0 : o.src;
|
|
1431
|
+
if (!o || o["data-loaded-src"] === K)
|
|
1432
|
+
return;
|
|
1433
|
+
o["data-loaded-src"] = K, ("decode" in o ? o.decode() : Promise.resolve()).catch(() => {
|
|
1434
|
+
}).then(() => {
|
|
1435
|
+
if (!(!o.parentElement || !o.isConnected)) {
|
|
1436
|
+
if (g !== "empty" && T(!0), l != null && l.current) {
|
|
1437
|
+
const U = new Event("load");
|
|
1438
|
+
Object.defineProperty(U, "target", {
|
|
1439
|
+
writable: !1,
|
|
1440
|
+
value: o
|
|
1441
|
+
});
|
|
1442
|
+
let P = !1, z = !1;
|
|
1443
|
+
l.current({
|
|
1444
|
+
...U,
|
|
1445
|
+
nativeEvent: U,
|
|
1446
|
+
currentTarget: o,
|
|
1447
|
+
target: o,
|
|
1448
|
+
isDefaultPrevented: () => P,
|
|
1449
|
+
isPropagationStopped: () => z,
|
|
1450
|
+
persist: () => {
|
|
1451
|
+
},
|
|
1452
|
+
preventDefault: () => {
|
|
1453
|
+
P = !0, U.preventDefault();
|
|
1454
|
+
},
|
|
1455
|
+
stopPropagation: () => {
|
|
1456
|
+
z = !0, U.stopPropagation();
|
|
1457
|
+
}
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
if (_ != null && _.current && _.current(o), process.env.NODE_ENV !== "production") {
|
|
1461
|
+
const U = new URL(K, "http://n").searchParams.get("url") || K;
|
|
1462
|
+
if (o.getAttribute("data-nimg") === "fill") {
|
|
1463
|
+
if (!H && (!v || v === "100vw") && o.getBoundingClientRect().width / window.innerWidth < 0.6 && (v === "100vw" ? (0, h.warnOnce)('Image with src "' + U + '" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes') : (0, h.warnOnce)('Image with src "' + U + '" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes')), o.parentElement) {
|
|
1464
|
+
const { position: q } = window.getComputedStyle(o.parentElement), Q = [
|
|
1465
|
+
"absolute",
|
|
1466
|
+
"fixed",
|
|
1467
|
+
"relative"
|
|
1468
|
+
];
|
|
1469
|
+
Q.includes(q) || (0, h.warnOnce)('Image with src "' + U + '" has "fill" and parent element with invalid "position". Provided "' + q + '" should be one of ' + Q.map(String).join(",") + ".");
|
|
1470
|
+
}
|
|
1471
|
+
o.height === 0 && (0, h.warnOnce)('Image with src "' + U + '" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.');
|
|
1472
|
+
}
|
|
1473
|
+
const P = o.height.toString() !== o.getAttribute("height"), z = o.width.toString() !== o.getAttribute("width");
|
|
1474
|
+
(P && !z || !P && z) && (0, h.warnOnce)('Image with src "' + U + `" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`);
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1479
|
+
function f(o) {
|
|
1480
|
+
const [g, l] = u.version.split(".", 2), _ = parseInt(g, 10), T = parseInt(l, 10);
|
|
1481
|
+
return _ > 18 || _ === 18 && T >= 3 ? {
|
|
1482
|
+
fetchPriority: o
|
|
1483
|
+
} : {
|
|
1484
|
+
fetchpriority: o
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
const d = /* @__PURE__ */ (0, u.forwardRef)((o, g) => {
|
|
1488
|
+
let { src: l, srcSet: _, sizes: T, height: H, width: v, decoding: K, className: k, style: U, fetchPriority: P, placeholder: z, loading: q, unoptimized: Q, fill: X, onLoadRef: M, onLoadingCompleteRef: G, setBlurComplete: re, setShowAltText: ie, sizesInput: V, onLoad: F, onError: ae, ...te } = o;
|
|
1489
|
+
return /* @__PURE__ */ (0, S.jsx)("img", {
|
|
1490
|
+
...te,
|
|
1491
|
+
...f(P),
|
|
1492
|
+
// It's intended to keep `loading` before `src` because React updates
|
|
1493
|
+
// props in order which causes Safari/Firefox to not lazy load properly.
|
|
1494
|
+
// See https://github.com/facebook/react/issues/25883
|
|
1495
|
+
loading: q,
|
|
1496
|
+
width: v,
|
|
1497
|
+
height: H,
|
|
1498
|
+
decoding: K,
|
|
1499
|
+
"data-nimg": X ? "fill" : "1",
|
|
1500
|
+
className: k,
|
|
1501
|
+
style: U,
|
|
1502
|
+
// It's intended to keep `src` the last attribute because React updates
|
|
1503
|
+
// attributes in order. If we keep `src` the first one, Safari will
|
|
1504
|
+
// immediately start to fetch `src`, before `sizes` and `srcSet` are even
|
|
1505
|
+
// updated by React. That causes multiple unnecessary requests if `srcSet`
|
|
1506
|
+
// and `sizes` are defined.
|
|
1507
|
+
// This bug cannot be reproduced in Chrome or Firefox.
|
|
1508
|
+
sizes: T,
|
|
1509
|
+
srcSet: _,
|
|
1510
|
+
src: l,
|
|
1511
|
+
ref: (0, u.useCallback)((e) => {
|
|
1512
|
+
g && (typeof g == "function" ? g(e) : typeof g == "object" && (g.current = e)), e && (ae && (e.src = e.src), process.env.NODE_ENV !== "production" && (l || console.error('Image is missing required "src" property:', e), e.getAttribute("alt") === null && console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')), e.complete && b(e, z, M, G, re, Q, V));
|
|
1513
|
+
}, [
|
|
1514
|
+
l,
|
|
1515
|
+
z,
|
|
1516
|
+
M,
|
|
1517
|
+
G,
|
|
1518
|
+
re,
|
|
1519
|
+
ae,
|
|
1520
|
+
Q,
|
|
1521
|
+
V,
|
|
1522
|
+
g
|
|
1523
|
+
]),
|
|
1524
|
+
onLoad: (e) => {
|
|
1525
|
+
const W = e.currentTarget;
|
|
1526
|
+
b(W, z, M, G, re, Q, V);
|
|
1527
|
+
},
|
|
1528
|
+
onError: (e) => {
|
|
1529
|
+
ie(!0), z !== "empty" && re(!0), ae && ae(e);
|
|
1530
|
+
}
|
|
1531
|
+
});
|
|
1532
|
+
});
|
|
1533
|
+
function C(o) {
|
|
1534
|
+
let { isAppRouter: g, imgAttributes: l } = o;
|
|
1535
|
+
const _ = {
|
|
1536
|
+
as: "image",
|
|
1537
|
+
imageSrcSet: l.srcSet,
|
|
1538
|
+
imageSizes: l.sizes,
|
|
1539
|
+
crossOrigin: l.crossOrigin,
|
|
1540
|
+
referrerPolicy: l.referrerPolicy,
|
|
1541
|
+
...f(l.fetchPriority)
|
|
1542
|
+
};
|
|
1543
|
+
return g && m.default.preload ? (m.default.preload(
|
|
1544
|
+
l.src,
|
|
1545
|
+
// @ts-expect-error TODO: upgrade to `@types/react-dom@18.3.x`
|
|
1546
|
+
_
|
|
1547
|
+
), null) : /* @__PURE__ */ (0, S.jsx)(p.default, {
|
|
1548
|
+
children: /* @__PURE__ */ (0, S.jsx)("link", {
|
|
1549
|
+
rel: "preload",
|
|
1550
|
+
// Note how we omit the `href` attribute, as it would only be relevant
|
|
1551
|
+
// for browsers that do not support `imagesrcset`, and in those cases
|
|
1552
|
+
// it would cause the incorrect image to be preloaded.
|
|
1553
|
+
//
|
|
1554
|
+
// https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
|
|
1555
|
+
href: l.srcSet ? void 0 : l.src,
|
|
1556
|
+
..._
|
|
1557
|
+
}, "__nimg-" + l.src + l.srcSet + l.sizes)
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
const r = /* @__PURE__ */ (0, u.forwardRef)((o, g) => {
|
|
1561
|
+
const _ = !(0, u.useContext)(y.RouterContext), T = (0, u.useContext)(x.ImageConfigContext), H = (0, u.useMemo)(() => {
|
|
1562
|
+
const G = i || T || O.imageConfigDefault, re = [
|
|
1563
|
+
...G.deviceSizes,
|
|
1564
|
+
...G.imageSizes
|
|
1565
|
+
].sort((V, F) => V - F), ie = G.deviceSizes.sort((V, F) => V - F);
|
|
1566
|
+
return {
|
|
1567
|
+
...G,
|
|
1568
|
+
allSizes: re,
|
|
1569
|
+
deviceSizes: ie
|
|
1570
|
+
};
|
|
1571
|
+
}, [
|
|
1572
|
+
T
|
|
1573
|
+
]), { onLoad: v, onLoadingComplete: K } = o, k = (0, u.useRef)(v);
|
|
1574
|
+
(0, u.useEffect)(() => {
|
|
1575
|
+
k.current = v;
|
|
1576
|
+
}, [
|
|
1577
|
+
v
|
|
1578
|
+
]);
|
|
1579
|
+
const U = (0, u.useRef)(K);
|
|
1580
|
+
(0, u.useEffect)(() => {
|
|
1581
|
+
U.current = K;
|
|
1582
|
+
}, [
|
|
1583
|
+
K
|
|
1584
|
+
]);
|
|
1585
|
+
const [P, z] = (0, u.useState)(!1), [q, Q] = (0, u.useState)(!1), { props: X, meta: M } = (0, E.getImgProps)(o, {
|
|
1586
|
+
defaultLoader: c.default,
|
|
1587
|
+
imgConf: H,
|
|
1588
|
+
blurComplete: P,
|
|
1589
|
+
showAltText: q
|
|
1590
|
+
});
|
|
1591
|
+
return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, {
|
|
1592
|
+
children: [
|
|
1593
|
+
/* @__PURE__ */ (0, S.jsx)(d, {
|
|
1594
|
+
...X,
|
|
1595
|
+
unoptimized: M.unoptimized,
|
|
1596
|
+
placeholder: M.placeholder,
|
|
1597
|
+
fill: M.fill,
|
|
1598
|
+
onLoadRef: k,
|
|
1599
|
+
onLoadingCompleteRef: U,
|
|
1600
|
+
setBlurComplete: z,
|
|
1601
|
+
setShowAltText: Q,
|
|
1602
|
+
sizesInput: o.sizes,
|
|
1603
|
+
ref: g
|
|
1604
|
+
}),
|
|
1605
|
+
M.priority ? /* @__PURE__ */ (0, S.jsx)(C, {
|
|
1606
|
+
isAppRouter: _,
|
|
1607
|
+
imgAttributes: X
|
|
1608
|
+
}) : null
|
|
1609
|
+
]
|
|
1610
|
+
});
|
|
1611
|
+
});
|
|
1612
|
+
(typeof R.default == "function" || typeof R.default == "object" && R.default !== null) && typeof R.default.__esModule > "u" && (Object.defineProperty(R.default, "__esModule", { value: !0 }), Object.assign(R.default, R), L.exports = R.default);
|
|
1613
|
+
})(Le, Le.exports);
|
|
1614
|
+
var pt = Le.exports;
|
|
1615
|
+
(function(L) {
|
|
1616
|
+
Object.defineProperty(L, "__esModule", {
|
|
1617
|
+
value: !0
|
|
1618
|
+
});
|
|
1619
|
+
function R(E, O) {
|
|
1620
|
+
for (var x in O)
|
|
1621
|
+
Object.defineProperty(E, x, {
|
|
1622
|
+
enumerable: !0,
|
|
1623
|
+
get: O[x]
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
R(L, {
|
|
1627
|
+
default: function() {
|
|
1628
|
+
return p;
|
|
1629
|
+
},
|
|
1630
|
+
getImageProps: function() {
|
|
1631
|
+
return m;
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
const N = _e, j = Te, S = pt, u = /* @__PURE__ */ N._(Ve());
|
|
1635
|
+
function m(E) {
|
|
1636
|
+
const { props: O } = (0, j.getImgProps)(E, {
|
|
1637
|
+
defaultLoader: u.default,
|
|
1638
|
+
// This is replaced by webpack define plugin
|
|
1639
|
+
imgConf: process.env.__NEXT_IMAGE_OPTS
|
|
1640
|
+
});
|
|
1641
|
+
for (const [x, h] of Object.entries(O))
|
|
1642
|
+
h === void 0 && delete O[x];
|
|
1643
|
+
return {
|
|
1644
|
+
props: O
|
|
1645
|
+
};
|
|
1646
|
+
}
|
|
1647
|
+
const p = S.Image;
|
|
1648
|
+
})(We);
|
|
1649
|
+
var ft = We;
|
|
1650
|
+
const dt = /* @__PURE__ */ Ze(ft), ht = "_sideMenu_1f66p_1", gt = "_logo_1f66p_7", mt = "_menus_1f66p_12", _t = "_menuTitle_1f66p_19", yt = "_menuItem_1f66p_27", bt = "_selected_1f66p_41", ge = {
|
|
1651
|
+
sideMenu: ht,
|
|
1652
|
+
logo: gt,
|
|
1653
|
+
menus: mt,
|
|
1654
|
+
menuTitle: _t,
|
|
1655
|
+
menuItem: yt,
|
|
1656
|
+
selected: bt
|
|
1657
|
+
}, Ge = 235, Ct = (L) => {
|
|
20
1658
|
const {
|
|
21
|
-
isOpen:
|
|
22
|
-
isMobile:
|
|
23
|
-
onClose:
|
|
24
|
-
menus:
|
|
25
|
-
logoSrc:
|
|
26
|
-
topPageUrl:
|
|
27
|
-
isStorybook:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1659
|
+
isOpen: R,
|
|
1660
|
+
isMobile: N,
|
|
1661
|
+
onClose: j,
|
|
1662
|
+
menus: S,
|
|
1663
|
+
logoSrc: u,
|
|
1664
|
+
topPageUrl: m = "/",
|
|
1665
|
+
isStorybook: p = !1,
|
|
1666
|
+
currentPath: E
|
|
1667
|
+
} = L, O = (E == null ? void 0 : E.split("/")[1]) ?? null, x = O === "" ? "/" : "/" + O, [h, y] = Qe(x);
|
|
1668
|
+
Ye(() => {
|
|
1669
|
+
y(x);
|
|
1670
|
+
}, [x, E]);
|
|
1671
|
+
const c = (i) => {
|
|
1672
|
+
N && j(), p && i.preventDefault();
|
|
32
1673
|
};
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
1674
|
+
return /* @__PURE__ */ he(
|
|
1675
|
+
tt,
|
|
35
1676
|
{
|
|
36
|
-
variant:
|
|
37
|
-
open:
|
|
38
|
-
onClose:
|
|
1677
|
+
variant: N ? "temporary" : "permanent",
|
|
1678
|
+
open: R,
|
|
1679
|
+
onClose: j,
|
|
39
1680
|
sx: {
|
|
40
|
-
width:
|
|
1681
|
+
width: Ge,
|
|
41
1682
|
flexShrink: 0,
|
|
42
1683
|
"& .MuiDrawer-paper": {
|
|
43
|
-
width:
|
|
1684
|
+
width: Ge,
|
|
44
1685
|
boxSizing: "border-box"
|
|
45
1686
|
}
|
|
46
1687
|
},
|
|
47
|
-
children: /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
1688
|
+
children: /* @__PURE__ */ He("div", { className: ge.sideMenu, children: [
|
|
1689
|
+
/* @__PURE__ */ he("div", { className: ge.logo, children: /* @__PURE__ */ he(
|
|
1690
|
+
Pe,
|
|
50
1691
|
{
|
|
51
|
-
href:
|
|
1692
|
+
href: m,
|
|
52
1693
|
style: { textDecoration: "none" },
|
|
53
|
-
onClick: (
|
|
54
|
-
children: /* @__PURE__ */
|
|
55
|
-
|
|
1694
|
+
onClick: (i) => c(i),
|
|
1695
|
+
children: /* @__PURE__ */ he(
|
|
1696
|
+
dt,
|
|
56
1697
|
{
|
|
57
|
-
src:
|
|
1698
|
+
src: u,
|
|
58
1699
|
alt: "logo",
|
|
59
1700
|
width: 204,
|
|
60
1701
|
height: 49,
|
|
61
|
-
|
|
1702
|
+
className: "object-contain",
|
|
62
1703
|
priority: !0
|
|
63
1704
|
}
|
|
64
1705
|
)
|
|
65
1706
|
}
|
|
66
1707
|
) }),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
(
|
|
69
|
-
|
|
1708
|
+
/* @__PURE__ */ he("div", { className: ge.menus, children: S.map(
|
|
1709
|
+
(i) => i.isTitle ? /* @__PURE__ */ he("div", { className: ge.menuTitle, children: i.label }, i.label) : /* @__PURE__ */ he(
|
|
1710
|
+
Pe,
|
|
70
1711
|
{
|
|
71
|
-
href:
|
|
1712
|
+
href: i.href ?? "",
|
|
72
1713
|
style: { textDecoration: "none" },
|
|
73
1714
|
role: "menuitem",
|
|
74
|
-
"aria-current":
|
|
75
|
-
children: /* @__PURE__ */
|
|
1715
|
+
"aria-current": h === i.href ? "page" : void 0,
|
|
1716
|
+
children: /* @__PURE__ */ He(
|
|
76
1717
|
"div",
|
|
77
1718
|
{
|
|
78
|
-
onClick: (
|
|
79
|
-
className:
|
|
80
|
-
[
|
|
1719
|
+
onClick: (b) => c(b),
|
|
1720
|
+
className: nt(ge.menuItem, {
|
|
1721
|
+
[ge.selected]: h === i.href
|
|
81
1722
|
}),
|
|
82
1723
|
tabIndex: 0,
|
|
83
|
-
onKeyDown: (
|
|
84
|
-
(
|
|
1724
|
+
onKeyDown: (b) => {
|
|
1725
|
+
(b.key === "Enter" || b.key === " ") && c(b);
|
|
85
1726
|
},
|
|
86
1727
|
children: [
|
|
87
|
-
|
|
88
|
-
/* @__PURE__ */
|
|
1728
|
+
i.icon,
|
|
1729
|
+
/* @__PURE__ */ he("div", { children: i.label })
|
|
89
1730
|
]
|
|
90
1731
|
}
|
|
91
1732
|
)
|
|
92
1733
|
},
|
|
93
|
-
|
|
1734
|
+
i.label
|
|
94
1735
|
)
|
|
95
1736
|
) })
|
|
96
1737
|
] })
|
|
@@ -98,5 +1739,5 @@ const C = "_sideMenu_1f66p_1", E = "_logo_1f66p_7", N = "_menus_1f66p_12", j = "
|
|
|
98
1739
|
);
|
|
99
1740
|
};
|
|
100
1741
|
export {
|
|
101
|
-
|
|
1742
|
+
Ct as SideMenu
|
|
102
1743
|
};
|