quirk-ui 0.0.310 → 0.0.311

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