@jigowatts/jigowatts-ui 1.1.1 → 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.
Files changed (33) hide show
  1. package/dist/{AccordionSummary-DxK7r28g.js → AccordionSummary-B4zooGpd.js} +6 -6
  2. package/dist/{ButtonBase-CGAQ3bSQ.js → ButtonBase-pxtIu13Q.js} +2 -2
  3. package/dist/{DateTimePicker-BmYLBFzf.js → DateTimePicker-DJSOr5wM.js} +10 -10
  4. package/dist/{ListContext-DlcYOqnZ.js → ListContext-DOVwHqy-.js} +2 -2
  5. package/dist/{MenuItem-B8210q-E.js → MenuItem-yBaT3_db.js} +4 -4
  6. package/dist/{Paper-DdgPoeFO.js → Paper-COvYqxZa.js} +4 -4
  7. package/dist/{Tabs-C-lvqbGy.js → Tabs-D3lJRumZ.js} +6 -6
  8. package/dist/components/Card/index.js +1 -1
  9. package/dist/components/CustomLink/index.js +1 -1
  10. package/dist/components/DatePickerController/index.js +2 -2
  11. package/dist/components/InputController/index.js +2 -2
  12. package/dist/components/NumericFieldController/index.js +1 -1
  13. package/dist/components/OfflineLabel/index.js +2 -2
  14. package/dist/components/PasswordInputController/index.js +2 -2
  15. package/dist/components/RangeDatePicker/index.js +8 -8
  16. package/dist/components/RangeDatePickerController/index.js +2 -2
  17. package/dist/components/ReportChart/index.js +1945 -1945
  18. package/dist/components/SearchForm/index.js +3 -3
  19. package/dist/components/SelectBoxController/index.js +1 -1
  20. package/dist/components/SideMenu/index.d.ts +3 -2
  21. package/dist/components/SideMenu/index.js +998 -1554
  22. package/dist/components/SubMenu/index.js +4 -4
  23. package/dist/components/Tabs/index.js +3 -3
  24. package/dist/{createSvgIcon-DuhUCGKB.js → createSvgIcon-B53UOwxg.js} +2 -2
  25. package/dist/{createSvgIcon-DQCzQIHM.js → createSvgIcon-Dj8zNxRS.js} +2 -2
  26. package/dist/{index-CaAeG2Rt.js → index-Bs3JCwgu.js} +76 -74
  27. package/dist/{index-DoP2dQJs.js → index-CICI7n5Y.js} +9 -9
  28. package/dist/{index-DQOOIh6W.js → index-kvi6aotO.js} +1 -1
  29. package/dist/{link-DKxv6PwW.js → link-CjdKDftr.js} +236 -234
  30. package/dist/{mergeSlotProps-DaSHjm5-.js → mergeSlotProps-J197zKan.js} +2 -2
  31. package/dist/{styled-C_i9th5U.js → styled-CWju4EfZ.js} +1 -1
  32. package/dist/{useSlotProps-CpBWccQp.js → useSlotProps-Bh7akxXV.js} +3 -3
  33. package/package.json +1 -1
@@ -1,72 +1,72 @@
1
- import dt, { jsx as he, jsxs as Qe } from "react/jsx-runtime";
2
- import ge, { useState as yt } from "react";
3
- import { g as bt } from "../../_commonjsHelpers-CT_km90n.js";
4
- import { _ as _e, a as Ke, r as vt, b as Rt, s as St, L as Ye } from "../../link-DKxv6PwW.js";
5
- import Et from "react-dom";
6
- import { Drawer as At } from "@mui/material";
7
- import { c as wt } from "../../index-DWRHnq8_.js";
8
- import '../../assets/index27.css';var pt = {}, We = {}, Ee = {};
9
- (function(_) {
10
- Object.defineProperty(_, "__esModule", {
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
11
  value: !0
12
- }), Object.defineProperty(_, "warnOnce", {
12
+ }), Object.defineProperty(L, "warnOnce", {
13
13
  enumerable: !0,
14
14
  get: function() {
15
- return e;
15
+ return R;
16
16
  }
17
17
  });
18
- let e = (b) => {
18
+ let R = (N) => {
19
19
  };
20
20
  if (process.env.NODE_ENV !== "production") {
21
- const b = /* @__PURE__ */ new Set();
22
- e = (h) => {
23
- b.has(h) || console.warn(h), b.add(h);
21
+ const N = /* @__PURE__ */ new Set();
22
+ R = (j) => {
23
+ N.has(j) || console.warn(j), N.add(j);
24
24
  };
25
25
  }
26
- })(Ee);
27
- var gt = {};
28
- (function(_) {
29
- Object.defineProperty(_, "__esModule", {
26
+ })(ve);
27
+ var Xe = {};
28
+ (function(L) {
29
+ Object.defineProperty(L, "__esModule", {
30
30
  value: !0
31
- }), Object.defineProperty(_, "getImageBlurSvg", {
31
+ }), Object.defineProperty(L, "getImageBlurSvg", {
32
32
  enumerable: !0,
33
33
  get: function() {
34
- return e;
34
+ return R;
35
35
  }
36
36
  });
37
- function e(b) {
38
- let { widthInt: h, heightInt: R, blurWidth: r, blurHeight: a, blurDataURL: c, objectFit: v } = b;
39
- const P = 20, I = r ? r * 40 : h, S = a ? a * 40 : R, C = I && S ? "viewBox='0 0 " + I + " " + S + "'" : "", l = C ? "none" : v === "contain" ? "xMidYMid" : v === "cover" ? "xMidYMid slice" : "none";
40
- return "%3Csvg xmlns='http://www.w3.org/2000/svg' " + C + "%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='" + P + "'/%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='" + P + "'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='" + l + "' style='filter: url(%23b);' href='" + c + "'/%3E%3C/svg%3E";
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
41
  }
42
- })(gt);
43
- var Ae = {};
44
- (function(_) {
45
- Object.defineProperty(_, "__esModule", {
42
+ })(Xe);
43
+ var Re = {};
44
+ (function(L) {
45
+ Object.defineProperty(L, "__esModule", {
46
46
  value: !0
47
47
  });
48
- function e(R, r) {
49
- for (var a in r)
50
- Object.defineProperty(R, a, {
48
+ function R(S, u) {
49
+ for (var m in u)
50
+ Object.defineProperty(S, m, {
51
51
  enumerable: !0,
52
- get: r[a]
52
+ get: u[m]
53
53
  });
54
54
  }
55
- e(_, {
55
+ R(L, {
56
56
  VALID_LOADERS: function() {
57
- return b;
57
+ return N;
58
58
  },
59
59
  imageConfigDefault: function() {
60
- return h;
60
+ return j;
61
61
  }
62
62
  });
63
- const b = [
63
+ const N = [
64
64
  "default",
65
65
  "imgix",
66
66
  "cloudinary",
67
67
  "akamai",
68
68
  "custom"
69
- ], h = {
69
+ ], j = {
70
70
  deviceSizes: [
71
71
  640,
72
72
  750,
@@ -102,55 +102,55 @@ var Ae = {};
102
102
  remotePatterns: [],
103
103
  unoptimized: !1
104
104
  };
105
- })(Ae);
106
- (function(_) {
107
- Object.defineProperty(_, "__esModule", {
105
+ })(Re);
106
+ (function(L) {
107
+ Object.defineProperty(L, "__esModule", {
108
108
  value: !0
109
- }), Object.defineProperty(_, "getImgProps", {
109
+ }), Object.defineProperty(L, "getImgProps", {
110
110
  enumerable: !0,
111
111
  get: function() {
112
- return l;
112
+ return c;
113
113
  }
114
114
  });
115
- const e = Ee, b = gt, h = Ae, R = [
115
+ const R = ve, N = Xe, j = Re, S = [
116
116
  "lazy",
117
117
  "eager",
118
118
  void 0
119
119
  ];
120
- function r(d) {
121
- return d.default !== void 0;
120
+ function u(i) {
121
+ return i.default !== void 0;
122
122
  }
123
- function a(d) {
124
- return d.src !== void 0;
123
+ function m(i) {
124
+ return i.src !== void 0;
125
125
  }
126
- function c(d) {
127
- return typeof d == "object" && (r(d) || a(d));
126
+ function p(i) {
127
+ return typeof i == "object" && (u(i) || m(i));
128
128
  }
129
- const v = /* @__PURE__ */ new Map();
130
- let P;
131
- function I(d) {
132
- return typeof d > "u" ? d : typeof d == "number" ? Number.isFinite(d) ? d : NaN : typeof d == "string" && /^[0-9]+$/.test(d) ? parseInt(d, 10) : NaN;
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
133
  }
134
- function S(d, m, g) {
135
- let { deviceSizes: s, allSizes: A } = d;
136
- if (g) {
137
- const u = /(^|\s)(1?\d?\d)vw/g, E = [];
138
- for (let y; y = u.exec(g); y)
139
- E.push(parseInt(y[2]));
140
- if (E.length) {
141
- const y = Math.min(...E) * 0.01;
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
142
  return {
143
- widths: A.filter((w) => w >= s[0] * y),
143
+ widths: C.filter((_) => _ >= d[0] * l),
144
144
  kind: "w"
145
145
  };
146
146
  }
147
147
  return {
148
- widths: A,
148
+ widths: C,
149
149
  kind: "w"
150
150
  };
151
151
  }
152
- return typeof m != "number" ? {
153
- widths: s,
152
+ return typeof b != "number" ? {
153
+ widths: d,
154
154
  kind: "w"
155
155
  } : {
156
156
  widths: [
@@ -164,83 +164,83 @@ var Ae = {};
164
164
  // > something like a magnifying glass.
165
165
  // https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html
166
166
  [
167
- m,
168
- m * 2
167
+ b,
168
+ b * 2
169
169
  /*, width * 3*/
170
- ].map((u) => A.find((E) => E >= u) || A[A.length - 1])
170
+ ].map((o) => C.find((g) => g >= o) || C[C.length - 1])
171
171
  )
172
172
  ],
173
173
  kind: "x"
174
174
  };
175
175
  }
176
- function C(d) {
177
- let { config: m, src: g, unoptimized: s, width: A, quality: t, sizes: u, loader: E } = d;
178
- if (s)
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
179
  return {
180
- src: g,
180
+ src: f,
181
181
  srcSet: void 0,
182
182
  sizes: void 0
183
183
  };
184
- const { widths: y, kind: w } = S(m, A, u), T = y.length - 1;
184
+ const { widths: l, kind: _ } = h(b, C, o), T = l.length - 1;
185
185
  return {
186
- sizes: !u && w === "w" ? "100vw" : u,
187
- srcSet: y.map((j, O) => E({
188
- config: m,
189
- src: g,
190
- quality: t,
191
- width: j
192
- }) + " " + (w === "w" ? j : O + 1) + w).join(", "),
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
193
  // It's intended to keep `src` the last attribute because React updates
194
194
  // attributes in order. If we keep `src` the first one, Safari will
195
195
  // immediately start to fetch `src`, before `sizes` and `srcSet` are even
196
196
  // updated by React. That causes multiple unnecessary requests if `srcSet`
197
197
  // and `sizes` are defined.
198
198
  // This bug cannot be reproduced in Chrome or Firefox.
199
- src: E({
200
- config: m,
201
- src: g,
202
- quality: t,
203
- width: y[T]
199
+ src: g({
200
+ config: b,
201
+ src: f,
202
+ quality: r,
203
+ width: l[T]
204
204
  })
205
205
  };
206
206
  }
207
- function l(d, m) {
208
- let { src: g, sizes: s, unoptimized: A = !1, priority: t = !1, loading: u, className: E, quality: y, width: w, height: T, fill: j = !1, style: O, overrideSrc: V, onLoad: H, onLoadingComplete: U, placeholder: N = "empty", blurDataURL: q, fetchPriority: G, layout: Q, objectFit: W, objectPosition: k, lazyBoundary: z, lazyRoot: re, ...ie } = d;
209
- const { imgConf: X, showAltText: F, blurComplete: se, defaultLoader: te } = m;
210
- let n, K = X || h.imageConfigDefault;
211
- if ("allSizes" in K)
212
- n = K;
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
213
  else {
214
- const L = [
215
- ...K.deviceSizes,
216
- ...K.imageSizes
217
- ].sort((D, f) => D - f), p = K.deviceSizes.sort((D, f) => D - f);
218
- n = {
219
- ...K,
220
- allSizes: L,
221
- deviceSizes: p
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
222
  };
223
223
  }
224
224
  if (typeof te > "u")
225
225
  throw new Error(`images.loaderFile detected but the file is missing default export.
226
226
  Read more: https://nextjs.org/docs/messages/invalid-images-config`);
227
- let ae = ie.loader || te;
227
+ let se = ie.loader || te;
228
228
  delete ie.loader, delete ie.srcSet;
229
- const de = "__next_img_default" in ae;
230
- if (de) {
231
- if (n.loader === "custom")
232
- throw new Error('Image with src "' + g + `" is missing "loader" prop.
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
233
  Read more: https://nextjs.org/docs/messages/next-image-missing-loader`);
234
234
  } else {
235
- const L = ae;
236
- ae = (p) => {
237
- const { config: D, ...f } = p;
238
- return L(f);
235
+ const A = se;
236
+ se = (a) => {
237
+ const { config: D, ...s } = a;
238
+ return A(s);
239
239
  };
240
240
  }
241
241
  if (Q) {
242
- Q === "fill" && (j = !0);
243
- const L = {
242
+ Q === "fill" && (H = !0);
243
+ const A = {
244
244
  intrinsic: {
245
245
  maxWidth: "100%",
246
246
  height: "auto"
@@ -249,131 +249,131 @@ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`);
249
249
  width: "100%",
250
250
  height: "auto"
251
251
  }
252
- }, p = {
252
+ }, a = {
253
253
  responsive: "100vw",
254
254
  fill: "100vw"
255
- }, D = L[Q];
256
- D && (O = {
257
- ...O,
255
+ }, D = A[Q];
256
+ D && (v = {
257
+ ...v,
258
258
  ...D
259
259
  });
260
- const f = p[Q];
261
- f && !s && (s = f);
260
+ const s = a[Q];
261
+ s && !d && (d = s);
262
262
  }
263
- let i = "", o = I(w), Z = I(T), x, B;
264
- if (c(g)) {
265
- const L = r(g) ? g.default : g;
266
- if (!L.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(L));
268
- if (!L.height || !L.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(L));
270
- if (x = L.blurWidth, B = L.blurHeight, q = q || L.blurDataURL, i = L.src, !j) {
271
- if (!o && !Z)
272
- o = L.width, Z = L.height;
273
- else if (o && !Z) {
274
- const p = o / L.width;
275
- Z = Math.round(L.height * p);
276
- } else if (!o && Z) {
277
- const p = Z / L.height;
278
- o = Math.round(L.width * p);
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
279
  }
280
280
  }
281
281
  }
282
- g = typeof g == "string" ? g : i;
283
- let ce = !t && (u === "lazy" || typeof u > "u");
284
- (!g || g.startsWith("data:") || g.startsWith("blob:")) && (A = !0, ce = !1), n.unoptimized && (A = !0), de && g.endsWith(".svg") && !n.dangerouslyAllowSVG && (A = !0), t && (G = "high");
285
- const fe = I(y);
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
286
  if (process.env.NODE_ENV !== "production") {
287
- if (n.output === "export" && de && !A)
287
+ if (e.output === "export" && fe && !C)
288
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 (!g)
290
- A = !0;
291
- else if (j) {
292
- if (w)
293
- throw new Error('Image with src "' + g + '" has both "width" and "fill" properties. Only one should be used.');
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
294
  if (T)
295
- throw new Error('Image with src "' + g + '" has both "height" and "fill" properties. Only one should be used.');
296
- if (O != null && O.position && O.position !== "absolute")
297
- throw new Error('Image with src "' + g + '" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');
298
- if (O != null && O.width && O.width !== "100%")
299
- throw new Error('Image with src "' + g + '" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');
300
- if (O != null && O.height && O.height !== "100%")
301
- throw new Error('Image with src "' + g + '" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.');
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
302
  } else {
303
- if (typeof o > "u")
304
- throw new Error('Image with src "' + g + '" is missing required "width" property.');
305
- if (isNaN(o))
306
- throw new Error('Image with src "' + g + '" has invalid "width" property. Expected a numeric value in pixels but received "' + w + '".');
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
307
  if (typeof Z > "u")
308
- throw new Error('Image with src "' + g + '" is missing required "height" property.');
308
+ throw new Error('Image with src "' + f + '" is missing required "height" property.');
309
309
  if (isNaN(Z))
310
- throw new Error('Image with src "' + g + '" has invalid "height" property. Expected a numeric value in pixels but received "' + T + '".');
310
+ throw new Error('Image with src "' + f + '" has invalid "height" property. Expected a numeric value in pixels but received "' + T + '".');
311
311
  }
312
- if (!R.includes(u))
313
- throw new Error('Image with src "' + g + '" has invalid "loading" property. Provided "' + u + '" should be one of ' + R.map(String).join(",") + ".");
314
- if (t && u === "lazy")
315
- throw new Error('Image with src "' + g + `" has both "priority" and "loading='lazy'" properties. Only one should be used.`);
316
- if (N !== "empty" && N !== "blur" && !N.startsWith("data:image/"))
317
- throw new Error('Image with src "' + g + '" has invalid "placeholder" property "' + N + '".');
318
- if (N !== "empty" && o && Z && o * Z < 1600 && (0, e.warnOnce)('Image with src "' + g + '" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'), N === "blur" && !q) {
319
- const L = [
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
320
  "jpeg",
321
321
  "png",
322
322
  "webp",
323
323
  "avif"
324
324
  ];
325
- throw new Error('Image with src "' + g + `" has "placeholder='blur'" property but is missing the "blurDataURL" property.
325
+ throw new Error('Image with src "' + f + `" has "placeholder='blur'" property but is missing the "blurDataURL" property.
326
326
  Possible solutions:
327
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: ` + L.join(",") + ` (animated images not supported)
328
+ - Change the "src" property to a static import with one of the supported file types: ` + A.join(",") + ` (animated images not supported)
329
329
  - Remove the "placeholder" property, effectively no blur effect
330
330
  Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url`);
331
331
  }
332
- if ("ref" in ie && (0, e.warnOnce)('Image with src "' + g + '" is using unsupported "ref" property. Consider using the "onLoad" property instead.'), !A && !de) {
333
- const L = ae({
334
- config: n,
335
- src: g,
336
- width: o || 400,
337
- quality: fe || 75
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
338
  });
339
- let p;
339
+ let a;
340
340
  try {
341
- p = new URL(L);
341
+ a = new URL(A);
342
342
  } catch {
343
343
  }
344
- (L === g || p && p.pathname === g && !p.search) && (0, e.warnOnce)('Image with src "' + g + `" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
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
345
  Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`);
346
346
  }
347
- U && (0, e.warnOnce)('Image with src "' + g + '" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');
348
- for (const [L, p] of Object.entries({
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
349
  layout: Q,
350
- objectFit: W,
351
- objectPosition: k,
352
- lazyBoundary: z,
350
+ objectFit: X,
351
+ objectPosition: M,
352
+ lazyBoundary: G,
353
353
  lazyRoot: re
354
354
  }))
355
- p && (0, e.warnOnce)('Image with src "' + g + '" has legacy prop "' + L + `". Did you forget to run the codemod?
355
+ a && (0, R.warnOnce)('Image with src "' + f + '" has legacy prop "' + A + `". Did you forget to run the codemod?
356
356
  Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);
357
- if (typeof window < "u" && !P && window.PerformanceObserver) {
358
- P = new PerformanceObserver((L) => {
359
- for (const D of L.getEntries()) {
360
- var p;
361
- const f = (D == null || (p = D.element) == null ? void 0 : p.src) || "", $ = v.get(f);
362
- $ && !$.priority && $.placeholder === "empty" && !$.src.startsWith("data:") && !$.src.startsWith("blob:") && (0, e.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.
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
363
  Read more: https://nextjs.org/docs/api-reference/next/image#priority`);
364
364
  }
365
365
  });
366
366
  try {
367
- P.observe({
367
+ O.observe({
368
368
  type: "largest-contentful-paint",
369
369
  buffered: !0
370
370
  });
371
- } catch (L) {
372
- console.error(L);
371
+ } catch (A) {
372
+ console.error(A);
373
373
  }
374
374
  }
375
375
  }
376
- const J = Object.assign(j ? {
376
+ const J = Object.assign(H ? {
377
377
  position: "absolute",
378
378
  height: "100%",
379
379
  width: "100%",
@@ -381,234 +381,234 @@ Read more: https://nextjs.org/docs/api-reference/next/image#priority`);
381
381
  top: 0,
382
382
  right: 0,
383
383
  bottom: 0,
384
- objectFit: W,
385
- objectPosition: k
384
+ objectFit: X,
385
+ objectPosition: M
386
386
  } : {}, F ? {} : {
387
387
  color: "transparent"
388
- }, O), ee = !se && N !== "empty" ? N === "blur" ? 'url("data:image/svg+xml;charset=utf-8,' + (0, b.getImageBlurSvg)({
389
- widthInt: o,
388
+ }, v), ee = !ae && P !== "empty" ? P === "blur" ? 'url("data:image/svg+xml;charset=utf-8,' + (0, N.getImageBlurSvg)({
389
+ widthInt: t,
390
390
  heightInt: Z,
391
- blurWidth: x,
391
+ blurWidth: w,
392
392
  blurHeight: B,
393
- blurDataURL: q || "",
393
+ blurDataURL: z || "",
394
394
  objectFit: J.objectFit
395
- }) + '")' : 'url("' + N + '")' : null;
396
- let pe = ee ? {
395
+ }) + '")' : 'url("' + P + '")' : null;
396
+ let de = ee ? {
397
397
  backgroundSize: J.objectFit || "cover",
398
398
  backgroundPosition: J.objectPosition || "50% 50%",
399
399
  backgroundRepeat: "no-repeat",
400
400
  backgroundImage: ee
401
401
  } : {};
402
- process.env.NODE_ENV === "development" && pe.backgroundImage && N === "blur" && q != null && q.startsWith("/") && (pe.backgroundImage = 'url("' + q + '")');
403
- const ne = C({
404
- config: n,
405
- src: g,
406
- unoptimized: A,
407
- width: o,
408
- quality: fe,
409
- sizes: s,
410
- loader: ae
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
411
  });
412
412
  if (process.env.NODE_ENV !== "production" && typeof window < "u") {
413
- let L;
413
+ let A;
414
414
  try {
415
- L = new URL(ne.src);
415
+ A = new URL(ne.src);
416
416
  } catch {
417
- L = new URL(ne.src, window.location.href);
417
+ A = new URL(ne.src, window.location.href);
418
418
  }
419
- v.set(L.href, {
420
- src: g,
421
- priority: t,
422
- placeholder: N
419
+ E.set(A.href, {
420
+ src: f,
421
+ priority: r,
422
+ placeholder: P
423
423
  });
424
424
  }
425
425
  return {
426
426
  props: {
427
427
  ...ie,
428
- loading: ce ? "lazy" : u,
429
- fetchPriority: G,
430
- width: o,
428
+ loading: ce ? "lazy" : o,
429
+ fetchPriority: q,
430
+ width: t,
431
431
  height: Z,
432
432
  decoding: "async",
433
- className: E,
433
+ className: g,
434
434
  style: {
435
435
  ...J,
436
- ...pe
436
+ ...de
437
437
  },
438
438
  sizes: ne.sizes,
439
439
  srcSet: ne.srcSet,
440
- src: V || ne.src
440
+ src: K || ne.src
441
441
  },
442
442
  meta: {
443
- unoptimized: A,
444
- priority: t,
445
- placeholder: N,
446
- fill: j
443
+ unoptimized: C,
444
+ priority: r,
445
+ placeholder: P,
446
+ fill: H
447
447
  }
448
448
  };
449
449
  }
450
- })(We);
451
- var $e = { exports: {} }, be = { exports: {} }, Ce = {}, Ze;
452
- function Ct() {
453
- return Ze || (Ze = 1, function(_) {
454
- Object.defineProperty(_, "__esModule", {
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
455
  value: !0
456
- }), Object.defineProperty(_, "default", {
456
+ }), Object.defineProperty(L, "default", {
457
457
  enumerable: !0,
458
458
  get: function() {
459
- return r;
459
+ return u;
460
460
  }
461
461
  });
462
- const e = ge, b = typeof window > "u", h = b ? () => {
463
- } : e.useLayoutEffect, R = b ? () => {
464
- } : e.useEffect;
465
- function r(a) {
466
- const { headManager: c, reduceComponentsToState: v } = a;
467
- function P() {
468
- if (c && c.mountedInstances) {
469
- const S = e.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));
470
- c.updateHead(v(S, a));
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
471
  }
472
472
  }
473
- if (b) {
474
- var I;
475
- c == null || (I = c.mountedInstances) == null || I.add(a.children), P();
473
+ if (N) {
474
+ var x;
475
+ p == null || (x = p.mountedInstances) == null || x.add(m.children), O();
476
476
  }
477
- return h(() => {
478
- var S;
479
- return c == null || (S = c.mountedInstances) == null || S.add(a.children), () => {
480
- var C;
481
- c == null || (C = c.mountedInstances) == null || C.delete(a.children);
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
482
  };
483
- }), h(() => (c && (c._pendingUpdate = P), () => {
484
- c && (c._pendingUpdate = P);
485
- })), R(() => (c && c._pendingUpdate && (c._pendingUpdate(), c._pendingUpdate = null), () => {
486
- c && c._pendingUpdate && (c._pendingUpdate(), c._pendingUpdate = null);
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
487
  })), null;
488
488
  }
489
- }(Ce)), Ce;
489
+ }(we)), we;
490
490
  }
491
- var Oe = {}, Je;
492
- function Ot() {
493
- return Je || (Je = 1, function(_) {
494
- Object.defineProperty(_, "__esModule", {
491
+ var Ae = {}, Ne;
492
+ function ot() {
493
+ return Ne || (Ne = 1, function(L) {
494
+ Object.defineProperty(L, "__esModule", {
495
495
  value: !0
496
- }), Object.defineProperty(_, "AmpStateContext", {
496
+ }), Object.defineProperty(L, "AmpStateContext", {
497
497
  enumerable: !0,
498
498
  get: function() {
499
- return h;
499
+ return j;
500
500
  }
501
501
  });
502
- const h = (/* @__PURE__ */ _e._(ge)).default.createContext({});
503
- process.env.NODE_ENV !== "production" && (h.displayName = "AmpStateContext");
504
- }(Oe)), Oe;
502
+ const j = (/* @__PURE__ */ _e._(me)).default.createContext({});
503
+ process.env.NODE_ENV !== "production" && (j.displayName = "AmpStateContext");
504
+ }(Ae)), Ae;
505
505
  }
506
- var xe = {}, et;
507
- function xt() {
508
- return et || (et = 1, function(_) {
509
- Object.defineProperty(_, "__esModule", {
506
+ var Se = {}, Me;
507
+ function it() {
508
+ return Me || (Me = 1, function(L) {
509
+ Object.defineProperty(L, "__esModule", {
510
510
  value: !0
511
- }), Object.defineProperty(_, "HeadManagerContext", {
511
+ }), Object.defineProperty(L, "HeadManagerContext", {
512
512
  enumerable: !0,
513
513
  get: function() {
514
- return h;
514
+ return j;
515
515
  }
516
516
  });
517
- const h = (/* @__PURE__ */ _e._(ge)).default.createContext({});
518
- process.env.NODE_ENV !== "production" && (h.displayName = "HeadManagerContext");
519
- }(xe)), xe;
517
+ const j = (/* @__PURE__ */ _e._(me)).default.createContext({});
518
+ process.env.NODE_ENV !== "production" && (j.displayName = "HeadManagerContext");
519
+ }(Se)), Se;
520
520
  }
521
- var Pe = {}, tt;
522
- function Pt() {
523
- return tt || (tt = 1, function(_) {
524
- Object.defineProperty(_, "__esModule", {
521
+ var xe = {}, De;
522
+ function st() {
523
+ return De || (De = 1, function(L) {
524
+ Object.defineProperty(L, "__esModule", {
525
525
  value: !0
526
- }), Object.defineProperty(_, "isInAmpMode", {
526
+ }), Object.defineProperty(L, "isInAmpMode", {
527
527
  enumerable: !0,
528
528
  get: function() {
529
- return e;
529
+ return R;
530
530
  }
531
531
  });
532
- function e(b) {
533
- let { ampFirst: h = !1, hybrid: R = !1, hasQuery: r = !1 } = b === void 0 ? {} : b;
534
- return h || R && r;
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
535
  }
536
- }(Pe)), Pe;
536
+ }(xe)), xe;
537
537
  }
538
- var nt;
539
- function Lt() {
540
- return nt || (nt = 1, function(_, e) {
538
+ var je;
539
+ function at() {
540
+ return je || (je = 1, function(L, R) {
541
541
  "use client";
542
- Object.defineProperty(e, "__esModule", {
542
+ Object.defineProperty(R, "__esModule", {
543
543
  value: !0
544
544
  });
545
- function b(t, u) {
546
- for (var E in u)
547
- Object.defineProperty(t, E, {
545
+ function N(r, o) {
546
+ for (var g in o)
547
+ Object.defineProperty(r, g, {
548
548
  enumerable: !0,
549
- get: u[E]
549
+ get: o[g]
550
550
  });
551
551
  }
552
- b(e, {
552
+ N(R, {
553
553
  default: function() {
554
- return A;
554
+ return C;
555
555
  },
556
556
  defaultHead: function() {
557
- return C;
557
+ return y;
558
558
  }
559
559
  });
560
- const h = _e, R = Ke, r = dt, a = /* @__PURE__ */ R._(ge), c = /* @__PURE__ */ h._(Ct()), v = Ot(), P = xt(), I = Pt(), S = Ee;
561
- function C(t) {
562
- t === void 0 && (t = !1);
563
- const u = [
564
- /* @__PURE__ */ (0, r.jsx)("meta", {
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
565
  charSet: "utf-8"
566
566
  })
567
567
  ];
568
- return t || u.push(/* @__PURE__ */ (0, r.jsx)("meta", {
568
+ return r || o.push(/* @__PURE__ */ (0, u.jsx)("meta", {
569
569
  name: "viewport",
570
570
  content: "width=device-width"
571
- })), u;
571
+ })), o;
572
572
  }
573
- function l(t, u) {
574
- return typeof u == "string" || typeof u == "number" ? t : u.type === a.default.Fragment ? t.concat(
573
+ function c(r, o) {
574
+ return typeof o == "string" || typeof o == "number" ? r : o.type === m.default.Fragment ? r.concat(
575
575
  // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
576
- a.default.Children.toArray(u.props.children).reduce(
576
+ m.default.Children.toArray(o.props.children).reduce(
577
577
  // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
578
- (E, y) => typeof y == "string" || typeof y == "number" ? E : E.concat(y),
578
+ (g, l) => typeof l == "string" || typeof l == "number" ? g : g.concat(l),
579
579
  []
580
580
  )
581
- ) : t.concat(u);
581
+ ) : r.concat(o);
582
582
  }
583
- const d = [
583
+ const i = [
584
584
  "name",
585
585
  "httpEquiv",
586
586
  "charSet",
587
587
  "itemProp"
588
588
  ];
589
- function m() {
590
- const t = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set(), y = {};
591
- return (w) => {
592
- let T = !0, j = !1;
593
- if (w.key && typeof w.key != "number" && w.key.indexOf("$") > 0) {
594
- j = !0;
595
- const O = w.key.slice(w.key.indexOf("$") + 1);
596
- t.has(O) ? T = !1 : t.add(O);
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
597
  }
598
- switch (w.type) {
598
+ switch (_.type) {
599
599
  case "title":
600
600
  case "base":
601
- u.has(w.type) ? T = !1 : u.add(w.type);
601
+ o.has(_.type) ? T = !1 : o.add(_.type);
602
602
  break;
603
603
  case "meta":
604
- for (let O = 0, V = d.length; O < V; O++) {
605
- const H = d[O];
606
- if (w.props.hasOwnProperty(H))
607
- if (H === "charSet")
608
- E.has(H) ? T = !1 : E.add(H);
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
609
  else {
610
- const U = w.props[H], N = y[H] || /* @__PURE__ */ new Set();
611
- (H !== "name" || !j) && N.has(U) ? T = !1 : (N.add(U), y[H] = N);
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
612
  }
613
613
  }
614
614
  break;
@@ -616,604 +616,604 @@ function Lt() {
616
616
  return T;
617
617
  };
618
618
  }
619
- function g(t, u) {
620
- const { inAmpMode: E } = u;
621
- return t.reduce(l, []).reverse().concat(C(E).reverse()).filter(m()).reverse().map((y, w) => {
622
- const T = y.key || w;
623
- if (process.env.NODE_ENV !== "development" && process.env.__NEXT_OPTIMIZE_FONTS && !E && y.type === "link" && y.props.href && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
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
624
  [
625
625
  "https://fonts.googleapis.com/css",
626
626
  "https://use.typekit.net/"
627
- ].some((j) => y.props.href.startsWith(j))) {
628
- const j = {
629
- ...y.props || {}
627
+ ].some((H) => l.props.href.startsWith(H))) {
628
+ const H = {
629
+ ...l.props || {}
630
630
  };
631
- return j["data-href"] = j.href, j.href = void 0, j["data-optimized-fonts"] = !0, /* @__PURE__ */ a.default.cloneElement(y, j);
631
+ return H["data-href"] = H.href, H.href = void 0, H["data-optimized-fonts"] = !0, /* @__PURE__ */ m.default.cloneElement(l, H);
632
632
  }
633
633
  if (process.env.NODE_ENV === "development")
634
- if (y.type === "script" && y.props.type !== "application/ld+json") {
635
- const j = y.props.src ? '<script> tag with src="' + y.props.src + '"' : "inline <script>";
636
- (0, S.warnOnce)("Do not add <script> tags using next/head (see " + j + `). Use next/script instead.
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
637
  See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`);
638
638
  } else
639
- y.type === "link" && y.props.rel === "stylesheet" && (0, S.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="' + y.props.href + `"). Use Document instead.
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
640
  See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);
641
- return /* @__PURE__ */ a.default.cloneElement(y, {
641
+ return /* @__PURE__ */ m.default.cloneElement(l, {
642
642
  key: T
643
643
  });
644
644
  });
645
645
  }
646
- function s(t) {
647
- let { children: u } = t;
648
- const E = (0, a.useContext)(v.AmpStateContext), y = (0, a.useContext)(P.HeadManagerContext);
649
- return /* @__PURE__ */ (0, r.jsx)(c.default, {
650
- reduceComponentsToState: g,
651
- headManager: y,
652
- inAmpMode: (0, I.isInAmpMode)(E),
653
- children: u
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
654
  });
655
655
  }
656
- const A = s;
657
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
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
658
  }(be, be.exports)), be.exports;
659
659
  }
660
- var Le = {}, rt;
661
- function It() {
662
- return rt || (rt = 1, function(_) {
663
- Object.defineProperty(_, "__esModule", {
660
+ var Ce = {}, ze;
661
+ function ut() {
662
+ return ze || (ze = 1, function(L) {
663
+ Object.defineProperty(L, "__esModule", {
664
664
  value: !0
665
- }), Object.defineProperty(_, "ImageConfigContext", {
665
+ }), Object.defineProperty(L, "ImageConfigContext", {
666
666
  enumerable: !0,
667
667
  get: function() {
668
- return R;
668
+ return S;
669
669
  }
670
670
  });
671
- const b = /* @__PURE__ */ _e._(ge), h = Ae, R = b.default.createContext(h.imageConfigDefault);
672
- process.env.NODE_ENV !== "production" && (R.displayName = "ImageConfigContext");
673
- }(Le)), Le;
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
674
  }
675
- var Ie = {}, Te = {}, je = { exports: {} }, ot;
676
- function Tt() {
677
- return ot || (ot = 1, (() => {
678
- var _ = { 170: (R, r, a) => {
679
- const c = a(510), v = () => {
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
680
  if (typeof navigator < "u" && navigator.platform) {
681
- const I = navigator.platform.toLowerCase();
682
- return I === "win32" || I === "windows";
681
+ const x = navigator.platform.toLowerCase();
682
+ return x === "win32" || x === "windows";
683
683
  }
684
684
  return typeof process < "u" && process.platform ? process.platform === "win32" : !1;
685
685
  };
686
- function P(I, S, C = !1) {
687
- return S && (S.windows === null || S.windows === void 0) && (S = { ...S, windows: v() }), c(I, S, C);
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
688
  }
689
- Object.assign(P, c), R.exports = P;
690
- }, 154: (R) => {
691
- const r = "\\\\/", a = `[^${r}]`, c = "\\.", v = "\\+", P = "\\?", I = "\\/", S = "(?=.)", C = "[^/]", l = `(?:${I}|$)`, d = `(?:^|${I})`, m = `${c}{1,2}${l}`, g = `(?!${c})`, s = `(?!${d}${m})`, A = `(?!${c}{0,1}${l})`, t = `(?!${m})`, u = `[^.${I}]`, E = `${C}*?`, w = { DOT_LITERAL: c, PLUS_LITERAL: v, QMARK_LITERAL: P, SLASH_LITERAL: I, ONE_CHAR: S, QMARK: C, END_ANCHOR: l, DOTS_SLASH: m, NO_DOT: g, NO_DOTS: s, NO_DOT_SLASH: A, NO_DOTS_SLASH: t, QMARK_NO_DOT: u, STAR: E, START_ANCHOR: d, SEP: "/" }, T = { ...w, SLASH_LITERAL: `[${r}]`, QMARK: a, STAR: `${a}*?`, DOTS_SLASH: `${c}{1,2}(?:[${r}]|$)`, NO_DOT: `(?!${c})`, NO_DOTS: `(?!(?:^|[${r}])${c}{1,2}(?:[${r}]|$))`, NO_DOT_SLASH: `(?!${c}{0,1}(?:[${r}]|$))`, NO_DOTS_SLASH: `(?!${c}{1,2}(?:[${r}]|$))`, QMARK_NO_DOT: `[^.${r}]`, START_ANCHOR: `(?:^|[${r}])`, END_ANCHOR: `(?:[${r}]|$)`, SEP: "\\" }, j = { 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
- R.exports = { MAX_LENGTH: 65536, POSIX_REGEX_SOURCE: j, 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(O) {
693
- return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${O.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
694
- }, globChars(O) {
695
- return O === !0 ? T : w;
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
696
  } };
697
- }, 697: (R, r, a) => {
698
- const c = a(154), v = a(96), { MAX_LENGTH: P, POSIX_REGEX_SOURCE: I, REGEX_NON_SPECIAL_CHARS: S, REGEX_SPECIAL_CHARS_BACKREF: C, REPLACEMENTS: l } = c, d = (s, A) => {
699
- if (typeof A.expandRange == "function")
700
- return A.expandRange(...s, A);
701
- s.sort();
702
- const t = `[${s.join("-")}]`;
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
703
  try {
704
- new RegExp(t);
704
+ new RegExp(r);
705
705
  } catch {
706
- return s.map((E) => v.escapeRegex(E)).join("..");
706
+ return d.map((g) => E.escapeRegex(g)).join("..");
707
707
  }
708
- return t;
709
- }, m = (s, A) => `Missing ${s}: "${A}" - use "\\\\${A}" to match literal characters`, g = (s, A) => {
710
- if (typeof s != "string")
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
711
  throw new TypeError("Expected a string");
712
- s = l[s] || s;
713
- const t = { ...A }, u = typeof t.maxLength == "number" ? Math.min(P, t.maxLength) : P;
714
- let E = s.length;
715
- if (E > u)
716
- throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${u}`);
717
- const y = { type: "bos", value: "", output: t.prepend || "" }, w = [y], T = t.capture ? "" : "?:", j = c.globChars(t.windows), O = c.extglobChars(j), { DOT_LITERAL: V, PLUS_LITERAL: H, SLASH_LITERAL: U, ONE_CHAR: N, DOTS_SLASH: q, NO_DOT: G, NO_DOT_SLASH: Q, NO_DOTS_SLASH: W, QMARK: k, QMARK_NO_DOT: z, STAR: re, START_ANCHOR: ie } = j, X = (p) => `(${T}(?:(?!${ie}${p.dot ? q : V}).)*?)`, F = t.dot ? "" : G, se = t.dot ? k : z;
718
- let te = t.bash === !0 ? X(t) : re;
719
- t.capture && (te = `(${te})`), typeof t.noext == "boolean" && (t.noextglob = t.noext);
720
- const n = { input: s, index: -1, start: 0, dot: t.dot === !0, consumed: "", output: "", prefix: "", backtrack: !1, negated: !1, brackets: 0, braces: 0, parens: 0, quotes: 0, globstar: !1, tokens: w };
721
- s = v.removePrefix(s, n), E = s.length;
722
- const K = [], ae = [], de = [];
723
- let i = y, o;
724
- const Z = () => n.index === E - 1, x = n.peek = (p = 1) => s[n.index + p], B = n.advance = () => s[++n.index] || "", ce = () => s.slice(n.index + 1), fe = (p = "", D = 0) => {
725
- n.consumed += p, n.index += D;
726
- }, J = (p) => {
727
- n.output += p.output != null ? p.output : p.value, fe(p.value);
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
728
  }, ee = () => {
729
- let p = 1;
730
- for (; x() === "!" && (x(2) !== "(" || x(3) === "?"); )
731
- B(), n.start++, p++;
732
- return p % 2 === 0 ? !1 : (n.negated = !0, n.start++, !0);
733
- }, pe = (p) => {
734
- n[p]++, de.push(p);
735
- }, ne = (p) => {
736
- n[p]--, de.pop();
737
- }, M = (p) => {
738
- if (i.type === "globstar") {
739
- const D = n.braces > 0 && (p.type === "comma" || p.type === "brace"), f = p.extglob === !0 || K.length && (p.type === "pipe" || p.type === "paren");
740
- p.type !== "slash" && p.type !== "paren" && !D && !f && (n.output = n.output.slice(0, -i.output.length), i.type = "star", i.value = "*", i.output = te, n.output += i.output);
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
741
  }
742
- if (K.length && p.type !== "paren" && (K[K.length - 1].inner += p.value), (p.value || p.output) && J(p), i && i.type === "text" && p.type === "text") {
743
- i.output = (i.output || i.value) + p.value, i.value += p.value;
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
744
  return;
745
745
  }
746
- p.prev = i, w.push(p), i = p;
747
- }, ue = (p, D) => {
748
- const f = { ...O[D], conditions: 1, inner: "" };
749
- f.prev = i, f.parens = n.parens, f.output = n.output;
750
- const $ = (t.capture ? "(" : "") + f.open;
751
- pe("parens"), M({ type: p, value: D, output: n.output ? "" : N }), M({ type: "paren", extglob: !0, value: B(), output: $ }), K.push(f);
752
- }, L = (p) => {
753
- let D = p.close + (t.capture ? ")" : ""), f;
754
- if (p.type === "negate") {
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
755
  let $ = te;
756
- if (p.inner && p.inner.length > 1 && p.inner.includes("/") && ($ = X(t)), ($ !== te || Z() || /^\)+$/.test(ce())) && (D = p.close = `)$))${$}`), p.inner.includes("*") && (f = ce()) && /^\.[^\\/.]+$/.test(f)) {
757
- const Y = g(f, { ...A, fastpaths: !1 }).output;
758
- D = p.close = `)${Y})${$})`;
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
759
  }
760
- p.prev.type === "bos" && (n.negatedExtglob = !0);
760
+ a.prev.type === "bos" && (e.negatedExtglob = !0);
761
761
  }
762
- M({ type: "paren", extglob: !0, value: o, output: D }), ne("parens");
762
+ I({ type: "paren", extglob: !0, value: t, output: D }), ne("parens");
763
763
  };
764
- if (t.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(s)) {
765
- let p = !1, D = s.replace(C, (f, $, Y, le, oe, we) => le === "\\" ? (p = !0, f) : le === "?" ? $ ? $ + le + (oe ? k.repeat(oe.length) : "") : we === 0 ? se + (oe ? k.repeat(oe.length) : "") : k.repeat(Y.length) : le === "." ? V.repeat(Y.length) : le === "*" ? $ ? $ + le + (oe ? te : "") : te : $ ? f : `\\${f}`);
766
- return p === !0 && (t.unescape === !0 ? D = D.replace(/\\/g, "") : D = D.replace(/\\+/g, (f) => f.length % 2 === 0 ? "\\\\" : f ? "\\" : "")), D === s && t.contains === !0 ? (n.output = s, n) : (n.output = v.wrapOutput(D, n, A), n);
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
767
  }
768
768
  for (; !Z(); ) {
769
- if (o = B(), o === "\0")
769
+ if (t = B(), t === "\0")
770
770
  continue;
771
- if (o === "\\") {
772
- const f = x();
773
- if (f === "/" && t.bash !== !0 || f === "." || f === ";")
771
+ if (t === "\\") {
772
+ const s = w();
773
+ if (s === "/" && r.bash !== !0 || s === "." || s === ";")
774
774
  continue;
775
- if (!f) {
776
- o += "\\", M({ type: "text", value: o });
775
+ if (!s) {
776
+ t += "\\", I({ type: "text", value: t });
777
777
  continue;
778
778
  }
779
779
  const $ = /^\\+/.exec(ce());
780
780
  let Y = 0;
781
- if ($ && $[0].length > 2 && (Y = $[0].length, n.index += Y, Y % 2 !== 0 && (o += "\\")), t.unescape === !0 ? o = B() : o += B(), n.brackets === 0) {
782
- M({ type: "text", value: o });
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
783
  continue;
784
784
  }
785
785
  }
786
- if (n.brackets > 0 && (o !== "]" || i.value === "[" || i.value === "[^")) {
787
- if (t.posix !== !1 && o === ":") {
788
- const f = i.value.slice(1);
789
- if (f.includes("[") && (i.posix = !0, f.includes(":"))) {
790
- const $ = i.value.lastIndexOf("["), Y = i.value.slice(0, $), le = i.value.slice($ + 2), oe = I[le];
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
791
  if (oe) {
792
- i.value = Y + oe, n.backtrack = !0, B(), !y.output && w.indexOf(i) === 1 && (y.output = N);
792
+ n.value = Y + oe, e.backtrack = !0, B(), !l.output && _.indexOf(n) === 1 && (l.output = P);
793
793
  continue;
794
794
  }
795
795
  }
796
796
  }
797
- (o === "[" && x() !== ":" || o === "-" && x() === "]") && (o = `\\${o}`), o === "]" && (i.value === "[" || i.value === "[^") && (o = `\\${o}`), t.posix === !0 && o === "!" && i.value === "[" && (o = "^"), i.value += o, J({ value: o });
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
798
  continue;
799
799
  }
800
- if (n.quotes === 1 && o !== '"') {
801
- o = v.escapeRegex(o), i.value += o, J({ value: o });
800
+ if (e.quotes === 1 && t !== '"') {
801
+ t = E.escapeRegex(t), n.value += t, J({ value: t });
802
802
  continue;
803
803
  }
804
- if (o === '"') {
805
- n.quotes = n.quotes === 1 ? 0 : 1, t.keepQuotes === !0 && M({ type: "text", value: o });
804
+ if (t === '"') {
805
+ e.quotes = e.quotes === 1 ? 0 : 1, r.keepQuotes === !0 && I({ type: "text", value: t });
806
806
  continue;
807
807
  }
808
- if (o === "(") {
809
- pe("parens"), M({ type: "paren", value: o });
808
+ if (t === "(") {
809
+ de("parens"), I({ type: "paren", value: t });
810
810
  continue;
811
811
  }
812
- if (o === ")") {
813
- if (n.parens === 0 && t.strictBrackets === !0)
814
- throw new SyntaxError(m("opening", "("));
815
- const f = K[K.length - 1];
816
- if (f && n.parens === f.parens + 1) {
817
- L(K.pop());
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
818
  continue;
819
819
  }
820
- M({ type: "paren", value: o, output: n.parens ? ")" : "\\)" }), ne("parens");
820
+ I({ type: "paren", value: t, output: e.parens ? ")" : "\\)" }), ne("parens");
821
821
  continue;
822
822
  }
823
- if (o === "[") {
824
- if (t.nobracket === !0 || !ce().includes("]")) {
825
- if (t.nobracket !== !0 && t.strictBrackets === !0)
826
- throw new SyntaxError(m("closing", "]"));
827
- o = `\\${o}`;
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
828
  } else
829
- pe("brackets");
830
- M({ type: "bracket", value: o });
829
+ de("brackets");
830
+ I({ type: "bracket", value: t });
831
831
  continue;
832
832
  }
833
- if (o === "]") {
834
- if (t.nobracket === !0 || i && i.type === "bracket" && i.value.length === 1) {
835
- M({ type: "text", value: o, output: `\\${o}` });
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
836
  continue;
837
837
  }
838
- if (n.brackets === 0) {
839
- if (t.strictBrackets === !0)
840
- throw new SyntaxError(m("opening", "["));
841
- M({ type: "text", value: o, output: `\\${o}` });
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
842
  continue;
843
843
  }
844
844
  ne("brackets");
845
- const f = i.value.slice(1);
846
- if (i.posix !== !0 && f[0] === "^" && !f.includes("/") && (o = `/${o}`), i.value += o, J({ value: o }), t.literalBrackets === !1 || v.hasRegexChars(f))
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
847
  continue;
848
- const $ = v.escapeRegex(i.value);
849
- if (n.output = n.output.slice(0, -i.value.length), t.literalBrackets === !0) {
850
- n.output += $, i.value = $;
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
851
  continue;
852
852
  }
853
- i.value = `(${T}${$}|${i.value})`, n.output += i.value;
853
+ n.value = `(${T}${$}|${n.value})`, e.output += n.value;
854
854
  continue;
855
855
  }
856
- if (o === "{" && t.nobrace !== !0) {
857
- pe("braces");
858
- const f = { type: "brace", value: o, output: "(", outputIndex: n.output.length, tokensIndex: n.tokens.length };
859
- ae.push(f), M(f);
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
860
  continue;
861
861
  }
862
- if (o === "}") {
863
- const f = ae[ae.length - 1];
864
- if (t.nobrace === !0 || !f) {
865
- M({ type: "text", value: o, output: o });
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
866
  continue;
867
867
  }
868
868
  let $ = ")";
869
- if (f.dots === !0) {
870
- const Y = w.slice(), le = [];
871
- for (let oe = Y.length - 1; oe >= 0 && (w.pop(), Y[oe].type !== "brace"); oe--)
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
872
  Y[oe].type !== "dots" && le.unshift(Y[oe].value);
873
- $ = d(le, t), n.backtrack = !0;
873
+ $ = i(le, r), e.backtrack = !0;
874
874
  }
875
- if (f.comma !== !0 && f.dots !== !0) {
876
- const Y = n.output.slice(0, f.outputIndex), le = n.tokens.slice(f.tokensIndex);
877
- f.value = f.output = "\\{", o = $ = "\\}", n.output = Y;
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
878
  for (const oe of le)
879
- n.output += oe.output || oe.value;
879
+ e.output += oe.output || oe.value;
880
880
  }
881
- M({ type: "brace", value: o, output: $ }), ne("braces"), ae.pop();
881
+ I({ type: "brace", value: t, output: $ }), ne("braces"), se.pop();
882
882
  continue;
883
883
  }
884
- if (o === "|") {
885
- K.length > 0 && K[K.length - 1].conditions++, M({ type: "text", value: o });
884
+ if (t === "|") {
885
+ W.length > 0 && W[W.length - 1].conditions++, I({ type: "text", value: t });
886
886
  continue;
887
887
  }
888
- if (o === ",") {
889
- let f = o;
890
- const $ = ae[ae.length - 1];
891
- $ && de[de.length - 1] === "braces" && ($.comma = !0, f = "|"), M({ type: "comma", value: o, output: f });
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
892
  continue;
893
893
  }
894
- if (o === "/") {
895
- if (i.type === "dot" && n.index === n.start + 1) {
896
- n.start = n.index + 1, n.consumed = "", n.output = "", w.pop(), i = y;
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
897
  continue;
898
898
  }
899
- M({ type: "slash", value: o, output: U });
899
+ I({ type: "slash", value: t, output: U });
900
900
  continue;
901
901
  }
902
- if (o === ".") {
903
- if (n.braces > 0 && i.type === "dot") {
904
- i.value === "." && (i.output = V);
905
- const f = ae[ae.length - 1];
906
- i.type = "dots", i.output += o, i.value += o, f.dots = !0;
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
907
  continue;
908
908
  }
909
- if (n.braces + n.parens === 0 && i.type !== "bos" && i.type !== "slash") {
910
- M({ type: "text", value: o, output: V });
909
+ if (e.braces + e.parens === 0 && n.type !== "bos" && n.type !== "slash") {
910
+ I({ type: "text", value: t, output: K });
911
911
  continue;
912
912
  }
913
- M({ type: "dot", value: o, output: V });
913
+ I({ type: "dot", value: t, output: K });
914
914
  continue;
915
915
  }
916
- if (o === "?") {
917
- if (!(i && i.value === "(") && t.noextglob !== !0 && x() === "(" && x(2) !== "?") {
918
- ue("qmark", o);
916
+ if (t === "?") {
917
+ if (!(n && n.value === "(") && r.noextglob !== !0 && w() === "(" && w(2) !== "?") {
918
+ ue("qmark", t);
919
919
  continue;
920
920
  }
921
- if (i && i.type === "paren") {
922
- const $ = x();
923
- let Y = o;
924
- (i.value === "(" && !/[!=<:]/.test($) || $ === "<" && !/<([!=]|\w+>)/.test(ce())) && (Y = `\\${o}`), M({ type: "text", value: o, output: Y });
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
925
  continue;
926
926
  }
927
- if (t.dot !== !0 && (i.type === "slash" || i.type === "bos")) {
928
- M({ type: "qmark", value: o, output: z });
927
+ if (r.dot !== !0 && (n.type === "slash" || n.type === "bos")) {
928
+ I({ type: "qmark", value: t, output: G });
929
929
  continue;
930
930
  }
931
- M({ type: "qmark", value: o, output: k });
931
+ I({ type: "qmark", value: t, output: M });
932
932
  continue;
933
933
  }
934
- if (o === "!") {
935
- if (t.noextglob !== !0 && x() === "(" && (x(2) !== "?" || !/[!=<:]/.test(x(3)))) {
936
- ue("negate", o);
934
+ if (t === "!") {
935
+ if (r.noextglob !== !0 && w() === "(" && (w(2) !== "?" || !/[!=<:]/.test(w(3)))) {
936
+ ue("negate", t);
937
937
  continue;
938
938
  }
939
- if (t.nonegate !== !0 && n.index === 0) {
939
+ if (r.nonegate !== !0 && e.index === 0) {
940
940
  ee();
941
941
  continue;
942
942
  }
943
943
  }
944
- if (o === "+") {
945
- if (t.noextglob !== !0 && x() === "(" && x(2) !== "?") {
946
- ue("plus", o);
944
+ if (t === "+") {
945
+ if (r.noextglob !== !0 && w() === "(" && w(2) !== "?") {
946
+ ue("plus", t);
947
947
  continue;
948
948
  }
949
- if (i && i.value === "(" || t.regex === !1) {
950
- M({ type: "plus", value: o, output: H });
949
+ if (n && n.value === "(" || r.regex === !1) {
950
+ I({ type: "plus", value: t, output: k });
951
951
  continue;
952
952
  }
953
- if (i && (i.type === "bracket" || i.type === "paren" || i.type === "brace") || n.parens > 0) {
954
- M({ type: "plus", value: o });
953
+ if (n && (n.type === "bracket" || n.type === "paren" || n.type === "brace") || e.parens > 0) {
954
+ I({ type: "plus", value: t });
955
955
  continue;
956
956
  }
957
- M({ type: "plus", value: H });
957
+ I({ type: "plus", value: k });
958
958
  continue;
959
959
  }
960
- if (o === "@") {
961
- if (t.noextglob !== !0 && x() === "(" && x(2) !== "?") {
962
- M({ type: "at", extglob: !0, value: o, output: "" });
960
+ if (t === "@") {
961
+ if (r.noextglob !== !0 && w() === "(" && w(2) !== "?") {
962
+ I({ type: "at", extglob: !0, value: t, output: "" });
963
963
  continue;
964
964
  }
965
- M({ type: "text", value: o });
965
+ I({ type: "text", value: t });
966
966
  continue;
967
967
  }
968
- if (o !== "*") {
969
- (o === "$" || o === "^") && (o = `\\${o}`);
970
- const f = S.exec(ce());
971
- f && (o += f[0], n.index += f[0].length), M({ type: "text", value: o });
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
972
  continue;
973
973
  }
974
- if (i && (i.type === "globstar" || i.star === !0)) {
975
- i.type = "star", i.star = !0, i.value += o, i.output = te, n.backtrack = !0, n.globstar = !0, fe(o);
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
976
  continue;
977
977
  }
978
- let p = ce();
979
- if (t.noextglob !== !0 && /^\([^?]/.test(p)) {
980
- ue("star", o);
978
+ let a = ce();
979
+ if (r.noextglob !== !0 && /^\([^?]/.test(a)) {
980
+ ue("star", t);
981
981
  continue;
982
982
  }
983
- if (i.type === "star") {
984
- if (t.noglobstar === !0) {
985
- fe(o);
983
+ if (n.type === "star") {
984
+ if (r.noglobstar === !0) {
985
+ pe(t);
986
986
  continue;
987
987
  }
988
- const f = i.prev, $ = f.prev, Y = f.type === "slash" || f.type === "bos", le = $ && ($.type === "star" || $.type === "globstar");
989
- if (t.bash === !0 && (!Y || p[0] && p[0] !== "/")) {
990
- M({ type: "star", value: o, output: "" });
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
991
  continue;
992
992
  }
993
- const oe = n.braces > 0 && (f.type === "comma" || f.type === "brace"), we = K.length && (f.type === "pipe" || f.type === "paren");
994
- if (!Y && f.type !== "paren" && !oe && !we) {
995
- M({ type: "star", value: o, output: "" });
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
996
  continue;
997
997
  }
998
- for (; p.slice(0, 3) === "/**"; ) {
999
- const ye = s[n.index + 4];
998
+ for (; a.slice(0, 3) === "/**"; ) {
999
+ const ye = d[e.index + 4];
1000
1000
  if (ye && ye !== "/")
1001
1001
  break;
1002
- p = p.slice(3), fe("/**", 3);
1002
+ a = a.slice(3), pe("/**", 3);
1003
1003
  }
1004
- if (f.type === "bos" && Z()) {
1005
- i.type = "globstar", i.value += o, i.output = X(t), n.output = i.output, n.globstar = !0, fe(o);
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
1006
  continue;
1007
1007
  }
1008
- if (f.type === "slash" && f.prev.type !== "bos" && !le && Z()) {
1009
- n.output = n.output.slice(0, -(f.output + i.output).length), f.output = `(?:${f.output}`, i.type = "globstar", i.output = X(t) + (t.strictSlashes ? ")" : "|$)"), i.value += o, n.globstar = !0, n.output += f.output + i.output, fe(o);
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
1010
  continue;
1011
1011
  }
1012
- if (f.type === "slash" && f.prev.type !== "bos" && p[0] === "/") {
1013
- const ye = p[1] !== void 0 ? "|$" : "";
1014
- n.output = n.output.slice(0, -(f.output + i.output).length), f.output = `(?:${f.output}`, i.type = "globstar", i.output = `${X(t)}${U}|${U}${ye})`, i.value += o, n.output += f.output + i.output, n.globstar = !0, fe(o + B()), M({ type: "slash", value: "/", output: "" });
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
1015
  continue;
1016
1016
  }
1017
- if (f.type === "bos" && p[0] === "/") {
1018
- i.type = "globstar", i.value += o, i.output = `(?:^|${U}|${X(t)}${U})`, n.output = i.output, n.globstar = !0, fe(o + B()), M({ type: "slash", value: "/", output: "" });
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
1019
  continue;
1020
1020
  }
1021
- n.output = n.output.slice(0, -i.output.length), i.type = "globstar", i.output = X(t), i.value += o, n.output += i.output, n.globstar = !0, fe(o);
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
1022
  continue;
1023
1023
  }
1024
- const D = { type: "star", value: o, output: te };
1025
- if (t.bash === !0) {
1026
- D.output = ".*?", (i.type === "bos" || i.type === "slash") && (D.output = F + D.output), M(D);
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
1027
  continue;
1028
1028
  }
1029
- if (i && (i.type === "bracket" || i.type === "paren") && t.regex === !0) {
1030
- D.output = o, M(D);
1029
+ if (n && (n.type === "bracket" || n.type === "paren") && r.regex === !0) {
1030
+ D.output = t, I(D);
1031
1031
  continue;
1032
1032
  }
1033
- (n.index === n.start || i.type === "slash" || i.type === "dot") && (i.type === "dot" ? (n.output += Q, i.output += Q) : t.dot === !0 ? (n.output += W, i.output += W) : (n.output += F, i.output += F), x() !== "*" && (n.output += N, i.output += N)), M(D);
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
1034
  }
1035
- for (; n.brackets > 0; ) {
1036
- if (t.strictBrackets === !0)
1037
- throw new SyntaxError(m("closing", "]"));
1038
- n.output = v.escapeLast(n.output, "["), ne("brackets");
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
1039
  }
1040
- for (; n.parens > 0; ) {
1041
- if (t.strictBrackets === !0)
1042
- throw new SyntaxError(m("closing", ")"));
1043
- n.output = v.escapeLast(n.output, "("), ne("parens");
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
1044
  }
1045
- for (; n.braces > 0; ) {
1046
- if (t.strictBrackets === !0)
1047
- throw new SyntaxError(m("closing", "}"));
1048
- n.output = v.escapeLast(n.output, "{"), ne("braces");
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
1049
  }
1050
- if (t.strictSlashes !== !0 && (i.type === "star" || i.type === "bracket") && M({ type: "maybe_slash", value: "", output: `${U}?` }), n.backtrack === !0) {
1051
- n.output = "";
1052
- for (const p of n.tokens)
1053
- n.output += p.output != null ? p.output : p.value, p.suffix && (n.output += p.suffix);
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
1054
  }
1055
- return n;
1055
+ return e;
1056
1056
  };
1057
- g.fastpaths = (s, A) => {
1058
- const t = { ...A }, u = typeof t.maxLength == "number" ? Math.min(P, t.maxLength) : P, E = s.length;
1059
- if (E > u)
1060
- throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${u}`);
1061
- s = l[s] || s;
1062
- const { DOT_LITERAL: y, SLASH_LITERAL: w, ONE_CHAR: T, DOTS_SLASH: j, NO_DOT: O, NO_DOTS: V, NO_DOTS_SLASH: H, STAR: U, START_ANCHOR: N } = c.globChars(t.windows), q = t.dot ? V : O, G = t.dot ? H : O, Q = t.capture ? "" : "?:", W = { negated: !1, prefix: "" };
1063
- let k = t.bash === !0 ? ".*?" : U;
1064
- t.capture && (k = `(${k})`);
1065
- const z = (F) => F.noglobstar === !0 ? k : `(${Q}(?:(?!${N}${F.dot ? j : y}).)*?)`, re = (F) => {
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
1066
  switch (F) {
1067
1067
  case "*":
1068
- return `${q}${T}${k}`;
1068
+ return `${z}${T}${M}`;
1069
1069
  case ".*":
1070
- return `${y}${T}${k}`;
1070
+ return `${l}${T}${M}`;
1071
1071
  case "*.*":
1072
- return `${q}${k}${y}${T}${k}`;
1072
+ return `${z}${M}${l}${T}${M}`;
1073
1073
  case "*/*":
1074
- return `${q}${k}${w}${T}${G}${k}`;
1074
+ return `${z}${M}${_}${T}${q}${M}`;
1075
1075
  case "**":
1076
- return q + z(t);
1076
+ return z + G(r);
1077
1077
  case "**/*":
1078
- return `(?:${q}${z(t)}${w})?${G}${T}${k}`;
1078
+ return `(?:${z}${G(r)}${_})?${q}${T}${M}`;
1079
1079
  case "**/*.*":
1080
- return `(?:${q}${z(t)}${w})?${G}${k}${y}${T}${k}`;
1080
+ return `(?:${z}${G(r)}${_})?${q}${M}${l}${T}${M}`;
1081
1081
  case "**/.*":
1082
- return `(?:${q}${z(t)}${w})?${y}${T}${k}`;
1082
+ return `(?:${z}${G(r)}${_})?${l}${T}${M}`;
1083
1083
  default: {
1084
- const se = /^(.*?)\.(\w+)$/.exec(F);
1085
- if (!se)
1084
+ const ae = /^(.*?)\.(\w+)$/.exec(F);
1085
+ if (!ae)
1086
1086
  return;
1087
- const te = re(se[1]);
1088
- return te ? te + y + se[2] : void 0;
1087
+ const te = re(ae[1]);
1088
+ return te ? te + l + ae[2] : void 0;
1089
1089
  }
1090
1090
  }
1091
- }, ie = v.removePrefix(s, W);
1092
- let X = re(ie);
1093
- return X && t.strictSlashes !== !0 && (X += `${w}?`), X;
1094
- }, R.exports = g;
1095
- }, 510: (R, r, a) => {
1096
- const c = a(716), v = a(697), P = a(96), I = a(154), S = (l) => l && typeof l == "object" && !Array.isArray(l), C = (l, d, m = !1) => {
1097
- if (Array.isArray(l)) {
1098
- const w = l.map((j) => C(j, d, m));
1099
- return (j) => {
1100
- for (const O of w) {
1101
- const V = O(j);
1102
- if (V)
1103
- return V;
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
1104
  }
1105
1105
  return !1;
1106
1106
  };
1107
1107
  }
1108
- const g = S(l) && l.tokens && l.input;
1109
- if (l === "" || typeof l != "string" && !g)
1108
+ const f = h(c) && c.tokens && c.input;
1109
+ if (c === "" || typeof c != "string" && !f)
1110
1110
  throw new TypeError("Expected pattern to be a non-empty string");
1111
- const s = d || {}, A = s.windows, t = g ? C.compileRe(l, d) : C.makeRe(l, d, !1, !0), u = t.state;
1112
- delete t.state;
1113
- let E = () => !1;
1114
- if (s.ignore) {
1115
- const w = { ...d, ignore: null, onMatch: null, onResult: null };
1116
- E = C(s.ignore, w, m);
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
1117
  }
1118
- const y = (w, T = !1) => {
1119
- const { isMatch: j, match: O, output: V } = C.test(w, t, d, { glob: l, posix: A }), H = { glob: l, state: u, regex: t, posix: A, input: w, output: V, match: O, isMatch: j };
1120
- return typeof s.onResult == "function" && s.onResult(H), j === !1 ? (H.isMatch = !1, T ? H : !1) : E(w) ? (typeof s.onIgnore == "function" && s.onIgnore(H), H.isMatch = !1, T ? H : !1) : (typeof s.onMatch == "function" && s.onMatch(H), T ? H : !0);
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
1121
  };
1122
- return m && (y.state = u), y;
1122
+ return b && (l.state = o), l;
1123
1123
  };
1124
- C.test = (l, d, m, { glob: g, posix: s } = {}) => {
1125
- if (typeof l != "string")
1124
+ y.test = (c, i, b, { glob: f, posix: d } = {}) => {
1125
+ if (typeof c != "string")
1126
1126
  throw new TypeError("Expected input to be a string");
1127
- if (l === "")
1127
+ if (c === "")
1128
1128
  return { isMatch: !1, output: "" };
1129
- const A = m || {}, t = A.format || (s ? P.toPosixSlashes : null);
1130
- let u = l === g, E = u && t ? t(l) : l;
1131
- return u === !1 && (E = t ? t(l) : l, u = E === g), (u === !1 || A.capture === !0) && (A.matchBase === !0 || A.basename === !0 ? u = C.matchBase(l, d, m, s) : u = d.exec(E)), { isMatch: !!u, match: u, output: E };
1132
- }, C.matchBase = (l, d, m) => (d instanceof RegExp ? d : C.makeRe(d, m)).test(P.basename(l)), C.isMatch = (l, d, m) => C(d, m)(l), C.parse = (l, d) => Array.isArray(l) ? l.map((m) => C.parse(m, d)) : v(l, { ...d, fastpaths: !1 }), C.scan = (l, d) => c(l, d), C.compileRe = (l, d, m = !1, g = !1) => {
1133
- if (m === !0)
1134
- return l.output;
1135
- const s = d || {}, A = s.contains ? "" : "^", t = s.contains ? "" : "$";
1136
- let u = `${A}(?:${l.output})${t}`;
1137
- l && l.negated === !0 && (u = `^(?!${u}).*$`);
1138
- const E = C.toRegex(u, d);
1139
- return g === !0 && (E.state = l), E;
1140
- }, C.makeRe = (l, d = {}, m = !1, g = !1) => {
1141
- if (!l || typeof l != "string")
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
1142
  throw new TypeError("Expected a non-empty string");
1143
- let s = { negated: !1, fastpaths: !0 };
1144
- return d.fastpaths !== !1 && (l[0] === "." || l[0] === "*") && (s.output = v.fastpaths(l, d)), s.output || (s = v(l, d)), C.compileRe(s, d, m, g);
1145
- }, C.toRegex = (l, d) => {
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
1146
  try {
1147
- const m = d || {};
1148
- return new RegExp(l, m.flags || (m.nocase ? "i" : ""));
1149
- } catch (m) {
1150
- if (d && d.debug === !0)
1151
- throw m;
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
1152
  return /$^/;
1153
1153
  }
1154
- }, C.constants = I, R.exports = C;
1155
- }, 716: (R, r, a) => {
1156
- const c = a(96), { CHAR_ASTERISK: v, CHAR_AT: P, CHAR_BACKWARD_SLASH: I, CHAR_COMMA: S, CHAR_DOT: C, CHAR_EXCLAMATION_MARK: l, CHAR_FORWARD_SLASH: d, CHAR_LEFT_CURLY_BRACE: m, CHAR_LEFT_PARENTHESES: g, CHAR_LEFT_SQUARE_BRACKET: s, CHAR_PLUS: A, CHAR_QUESTION_MARK: t, CHAR_RIGHT_CURLY_BRACE: u, CHAR_RIGHT_PARENTHESES: E, CHAR_RIGHT_SQUARE_BRACKET: y } = a(154), w = (O) => O === d || O === I, T = (O) => {
1157
- O.isPrefix !== !0 && (O.depth = O.isGlobstar ? 1 / 0 : 1);
1158
- }, j = (O, V) => {
1159
- const H = V || {}, U = O.length - 1, N = H.parts === !0 || H.scanToEnd === !0, q = [], G = [], Q = [];
1160
- let W = O, k = -1, z = 0, re = 0, ie = !1, X = !1, F = !1, se = !1, te = !1, n = !1, K = !1, ae = !1, de = !1, i = !1, o = 0, Z, x, B = { value: "", depth: 0, isGlob: !1 };
1161
- const ce = () => k >= U, fe = () => W.charCodeAt(k + 1), J = () => (Z = x, W.charCodeAt(++k));
1162
- for (; k < U; ) {
1163
- x = J();
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
1164
  let ue;
1165
- if (x === I) {
1166
- K = B.backslashes = !0, x = J(), x === m && (n = !0);
1165
+ if (w === x) {
1166
+ W = B.backslashes = !0, w = J(), w === b && (e = !0);
1167
1167
  continue;
1168
1168
  }
1169
- if (n === !0 || x === m) {
1170
- for (o++; ce() !== !0 && (x = J()); ) {
1171
- if (x === I) {
1172
- K = B.backslashes = !0, J();
1169
+ if (e === !0 || w === b) {
1170
+ for (t++; ce() !== !0 && (w = J()); ) {
1171
+ if (w === x) {
1172
+ W = B.backslashes = !0, J();
1173
1173
  continue;
1174
1174
  }
1175
- if (x === m) {
1176
- o++;
1175
+ if (w === b) {
1176
+ t++;
1177
1177
  continue;
1178
1178
  }
1179
- if (n !== !0 && x === C && (x = J()) === C) {
1180
- if (ie = B.isBrace = !0, F = B.isGlob = !0, i = !0, N === !0)
1179
+ if (e !== !0 && w === y && (w = J()) === y) {
1180
+ if (ie = B.isBrace = !0, F = B.isGlob = !0, n = !0, P === !0)
1181
1181
  continue;
1182
1182
  break;
1183
1183
  }
1184
- if (n !== !0 && x === S) {
1185
- if (ie = B.isBrace = !0, F = B.isGlob = !0, i = !0, N === !0)
1184
+ if (e !== !0 && w === h) {
1185
+ if (ie = B.isBrace = !0, F = B.isGlob = !0, n = !0, P === !0)
1186
1186
  continue;
1187
1187
  break;
1188
1188
  }
1189
- if (x === u && (o--, o === 0)) {
1190
- n = !1, ie = B.isBrace = !0, i = !0;
1189
+ if (w === o && (t--, t === 0)) {
1190
+ e = !1, ie = B.isBrace = !0, n = !0;
1191
1191
  break;
1192
1192
  }
1193
1193
  }
1194
- if (N === !0)
1194
+ if (P === !0)
1195
1195
  continue;
1196
1196
  break;
1197
1197
  }
1198
- if (x === d) {
1199
- if (q.push(k), G.push(B), B = { value: "", depth: 0, isGlob: !1 }, i === !0)
1198
+ if (w === i) {
1199
+ if (z.push(M), q.push(B), B = { value: "", depth: 0, isGlob: !1 }, n === !0)
1200
1200
  continue;
1201
- if (Z === C && k === z + 1) {
1202
- z += 2;
1201
+ if (Z === y && M === G + 1) {
1202
+ G += 2;
1203
1203
  continue;
1204
1204
  }
1205
- re = k + 1;
1205
+ re = M + 1;
1206
1206
  continue;
1207
1207
  }
1208
- if (H.noext !== !0 && (x === A || x === P || x === v || x === t || x === l) === !0 && fe() === g) {
1209
- if (F = B.isGlob = !0, se = B.isExtglob = !0, i = !0, x === l && k === z && (de = !0), N === !0) {
1210
- for (; ce() !== !0 && (x = J()); ) {
1211
- if (x === I) {
1212
- K = B.backslashes = !0, x = J();
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
1213
  continue;
1214
1214
  }
1215
- if (x === E) {
1216
- F = B.isGlob = !0, i = !0;
1215
+ if (w === g) {
1216
+ F = B.isGlob = !0, n = !0;
1217
1217
  break;
1218
1218
  }
1219
1219
  }
@@ -1221,44 +1221,44 @@ function Tt() {
1221
1221
  }
1222
1222
  break;
1223
1223
  }
1224
- if (x === v) {
1225
- if (Z === v && (te = B.isGlobstar = !0), F = B.isGlob = !0, i = !0, N === !0)
1224
+ if (w === E) {
1225
+ if (Z === E && (te = B.isGlobstar = !0), F = B.isGlob = !0, n = !0, P === !0)
1226
1226
  continue;
1227
1227
  break;
1228
1228
  }
1229
- if (x === t) {
1230
- if (F = B.isGlob = !0, i = !0, N === !0)
1229
+ if (w === r) {
1230
+ if (F = B.isGlob = !0, n = !0, P === !0)
1231
1231
  continue;
1232
1232
  break;
1233
1233
  }
1234
- if (x === s) {
1234
+ if (w === d) {
1235
1235
  for (; ce() !== !0 && (ue = J()); ) {
1236
- if (ue === I) {
1237
- K = B.backslashes = !0, J();
1236
+ if (ue === x) {
1237
+ W = B.backslashes = !0, J();
1238
1238
  continue;
1239
1239
  }
1240
- if (ue === y) {
1241
- X = B.isBracket = !0, F = B.isGlob = !0, i = !0;
1240
+ if (ue === l) {
1241
+ V = B.isBracket = !0, F = B.isGlob = !0, n = !0;
1242
1242
  break;
1243
1243
  }
1244
1244
  }
1245
- if (N === !0)
1245
+ if (P === !0)
1246
1246
  continue;
1247
1247
  break;
1248
1248
  }
1249
- if (H.nonegate !== !0 && x === l && k === z) {
1250
- ae = B.negated = !0, z++;
1249
+ if (k.nonegate !== !0 && w === c && M === G) {
1250
+ se = B.negated = !0, G++;
1251
1251
  continue;
1252
1252
  }
1253
- if (H.noparen !== !0 && x === g) {
1254
- if (F = B.isGlob = !0, N === !0) {
1255
- for (; ce() !== !0 && (x = J()); ) {
1256
- if (x === g) {
1257
- K = B.backslashes = !0, x = J();
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
1258
  continue;
1259
1259
  }
1260
- if (x === E) {
1261
- i = !0;
1260
+ if (w === g) {
1261
+ n = !0;
1262
1262
  break;
1263
1263
  }
1264
1264
  }
@@ -1267,237 +1267,237 @@ function Tt() {
1267
1267
  break;
1268
1268
  }
1269
1269
  if (F === !0) {
1270
- if (i = !0, N === !0)
1270
+ if (n = !0, P === !0)
1271
1271
  continue;
1272
1272
  break;
1273
1273
  }
1274
1274
  }
1275
- H.noext === !0 && (se = !1, F = !1);
1276
- let ee = W, pe = "", ne = "";
1277
- z > 0 && (pe = W.slice(0, z), W = W.slice(z), re -= z), ee && F === !0 && re > 0 ? (ee = W.slice(0, re), ne = W.slice(re)) : F === !0 ? (ee = "", ne = W) : ee = W, ee && ee !== "" && ee !== "/" && ee !== W && w(ee.charCodeAt(ee.length - 1)) && (ee = ee.slice(0, -1)), H.unescape === !0 && (ne && (ne = c.removeBackslashes(ne)), ee && K === !0 && (ee = c.removeBackslashes(ee)));
1278
- const M = { prefix: pe, input: O, start: z, base: ee, glob: ne, isBrace: ie, isBracket: X, isGlob: F, isExtglob: se, isGlobstar: te, negated: ae, negatedExtglob: de };
1279
- if (H.tokens === !0 && (M.maxDepth = 0, w(x) || G.push(B), M.tokens = G), H.parts === !0 || H.tokens === !0) {
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
1280
  let ue;
1281
- for (let L = 0; L < q.length; L++) {
1282
- const p = ue ? ue + 1 : z, D = q[L], f = O.slice(p, D);
1283
- H.tokens && (L === 0 && z !== 0 ? (G[L].isPrefix = !0, G[L].value = pe) : G[L].value = f, T(G[L]), M.maxDepth += G[L].depth), (L !== 0 || f !== "") && Q.push(f), ue = D;
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
1284
  }
1285
- if (ue && ue + 1 < O.length) {
1286
- const L = O.slice(ue + 1);
1287
- Q.push(L), H.tokens && (G[G.length - 1].value = L, T(G[G.length - 1]), M.maxDepth += G[G.length - 1].depth);
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
1288
  }
1289
- M.slashes = q, M.parts = Q;
1289
+ I.slashes = z, I.parts = Q;
1290
1290
  }
1291
- return M;
1291
+ return I;
1292
1292
  };
1293
- R.exports = j;
1294
- }, 96: (R, r, a) => {
1295
- const { REGEX_BACKSLASH: c, REGEX_REMOVE_BACKSLASH: v, REGEX_SPECIAL_CHARS: P, REGEX_SPECIAL_CHARS_GLOBAL: I } = a(154);
1296
- r.isObject = (S) => S !== null && typeof S == "object" && !Array.isArray(S), r.hasRegexChars = (S) => P.test(S), r.isRegexChar = (S) => S.length === 1 && r.hasRegexChars(S), r.escapeRegex = (S) => S.replace(I, "\\$1"), r.toPosixSlashes = (S) => S.replace(c, "/"), r.removeBackslashes = (S) => S.replace(v, (C) => C === "\\" ? "" : C), r.escapeLast = (S, C, l) => {
1297
- const d = S.lastIndexOf(C, l);
1298
- return d === -1 ? S : S[d - 1] === "\\" ? r.escapeLast(S, C, d - 1) : `${S.slice(0, d)}\\${S.slice(d)}`;
1299
- }, r.removePrefix = (S, C = {}) => {
1300
- let l = S;
1301
- return l.startsWith("./") && (l = l.slice(2), C.prefix = "./"), l;
1302
- }, r.wrapOutput = (S, C = {}, l = {}) => {
1303
- const d = l.contains ? "" : "^", m = l.contains ? "" : "$";
1304
- let g = `${d}(?:${S})${m}`;
1305
- return C.negated === !0 && (g = `(?:^(?!${g}).*$)`), g;
1306
- }, r.basename = (S, { windows: C } = {}) => {
1307
- const l = S.split(C ? /[\\/]/ : "/"), d = l[l.length - 1];
1308
- return d === "" ? l[l.length - 2] : d;
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
1309
  };
1310
- } }, e = {};
1311
- function b(R) {
1312
- var r = e[R];
1313
- if (r !== void 0)
1314
- return r.exports;
1315
- var a = e[R] = { exports: {} }, c = !0;
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
1316
  try {
1317
- _[R](a, a.exports, b), c = !1;
1317
+ L[S](m, m.exports, N), p = !1;
1318
1318
  } finally {
1319
- c && delete e[R];
1319
+ p && delete R[S];
1320
1320
  }
1321
- return a.exports;
1321
+ return m.exports;
1322
1322
  }
1323
- typeof b < "u" && (b.ab = __dirname + "/");
1324
- var h = b(170);
1325
- je.exports = h;
1326
- })()), je.exports;
1323
+ typeof N < "u" && (N.ab = __dirname + "/");
1324
+ var j = N(170);
1325
+ $e.exports = j;
1326
+ })()), $e.exports;
1327
1327
  }
1328
- var it;
1329
- function jt() {
1330
- return it || (it = 1, function(_) {
1331
- Object.defineProperty(_, "__esModule", {
1328
+ var Ue;
1329
+ function lt() {
1330
+ return Ue || (Ue = 1, function(L) {
1331
+ Object.defineProperty(L, "__esModule", {
1332
1332
  value: !0
1333
1333
  });
1334
- function e(r, a) {
1335
- for (var c in a)
1336
- Object.defineProperty(r, c, {
1334
+ function R(u, m) {
1335
+ for (var p in m)
1336
+ Object.defineProperty(u, p, {
1337
1337
  enumerable: !0,
1338
- get: a[c]
1338
+ get: m[p]
1339
1339
  });
1340
1340
  }
1341
- e(_, {
1341
+ R(L, {
1342
1342
  hasMatch: function() {
1343
- return R;
1343
+ return S;
1344
1344
  },
1345
1345
  matchRemotePattern: function() {
1346
- return h;
1346
+ return j;
1347
1347
  }
1348
1348
  });
1349
- const b = Tt();
1350
- function h(r, a) {
1351
- if (r.protocol !== void 0) {
1352
- const v = a.protocol.slice(0, -1);
1353
- if (r.protocol !== v)
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
1354
  return !1;
1355
1355
  }
1356
- if (r.port !== void 0 && r.port !== a.port)
1356
+ if (u.port !== void 0 && u.port !== m.port)
1357
1357
  return !1;
1358
- if (r.hostname === void 0)
1358
+ if (u.hostname === void 0)
1359
1359
  throw new Error(`Pattern should define hostname but found
1360
- ` + JSON.stringify(r));
1361
- if (!(0, b.makeRe)(r.hostname).test(a.hostname))
1360
+ ` + JSON.stringify(u));
1361
+ if (!(0, N.makeRe)(u.hostname).test(m.hostname))
1362
1362
  return !1;
1363
- var c;
1364
- return !!(0, b.makeRe)((c = r.pathname) != null ? c : "**", {
1363
+ var p;
1364
+ return !!(0, N.makeRe)((p = u.pathname) != null ? p : "**", {
1365
1365
  dot: !0
1366
- }).test(a.pathname);
1366
+ }).test(m.pathname);
1367
1367
  }
1368
- function R(r, a, c) {
1369
- return r.some((v) => c.hostname === v) || a.some((v) => h(v, c));
1368
+ function S(u, m, p) {
1369
+ return u.some((E) => p.hostname === E) || m.some((E) => j(E, p));
1370
1370
  }
1371
- }(Te)), Te;
1371
+ }(Ie)), Ie;
1372
1372
  }
1373
- var at;
1374
- function ht() {
1375
- return at || (at = 1, function(_) {
1376
- Object.defineProperty(_, "__esModule", {
1373
+ var qe;
1374
+ function Ve() {
1375
+ return qe || (qe = 1, function(L) {
1376
+ Object.defineProperty(L, "__esModule", {
1377
1377
  value: !0
1378
- }), Object.defineProperty(_, "default", {
1378
+ }), Object.defineProperty(L, "default", {
1379
1379
  enumerable: !0,
1380
1380
  get: function() {
1381
- return b;
1381
+ return N;
1382
1382
  }
1383
1383
  });
1384
- function e(h) {
1385
- let { config: R, src: r, width: a, quality: c } = h;
1384
+ function R(j) {
1385
+ let { config: S, src: u, width: m, quality: p } = j;
1386
1386
  if (process.env.NODE_ENV !== "production") {
1387
- const v = [];
1388
- if (r || v.push("src"), a || v.push("width"), v.length > 0)
1389
- throw new Error("Next Image Optimization requires " + v.join(", ") + " to be provided. Make sure you pass them as props to the `next/image` component. Received: " + JSON.stringify({
1390
- src: r,
1391
- width: a,
1392
- quality: c
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
1393
  }));
1394
- if (r.startsWith("//"))
1395
- throw new Error('Failed to parse src "' + r + '" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');
1396
- if (!r.startsWith("/") && (R.domains || R.remotePatterns)) {
1397
- let P;
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
1398
  try {
1399
- P = new URL(r);
1400
- } catch (I) {
1401
- throw console.error(I), new Error('Failed to parse src "' + r + '" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)');
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
1402
  }
1403
1403
  if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
1404
1404
  process.env.NEXT_RUNTIME !== "edge") {
1405
- const { hasMatch: I } = jt();
1406
- if (!I(R.domains, R.remotePatterns, P))
1407
- throw new Error("Invalid src prop (" + r + ') on `next/image`, hostname "' + P.hostname + '" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host');
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
1408
  }
1409
1409
  }
1410
1410
  }
1411
- return R.path + "?url=" + encodeURIComponent(r) + "&w=" + a + "&q=" + (c || 75) + (process.env.NEXT_DEPLOYMENT_ID ? "&dpl=" + process.env.NEXT_DEPLOYMENT_ID : "");
1411
+ return S.path + "?url=" + encodeURIComponent(u) + "&w=" + m + "&q=" + (p || 75) + (process.env.NEXT_DEPLOYMENT_ID ? "&dpl=" + process.env.NEXT_DEPLOYMENT_ID : "");
1412
1412
  }
1413
- e.__next_img_default = !0;
1414
- const b = e;
1415
- }(Ie)), Ie;
1413
+ R.__next_img_default = !0;
1414
+ const N = R;
1415
+ }(Oe)), Oe;
1416
1416
  }
1417
- (function(_, e) {
1417
+ (function(L, R) {
1418
1418
  "use client";
1419
- Object.defineProperty(e, "__esModule", {
1419
+ Object.defineProperty(R, "__esModule", {
1420
1420
  value: !0
1421
- }), Object.defineProperty(e, "Image", {
1421
+ }), Object.defineProperty(R, "Image", {
1422
1422
  enumerable: !0,
1423
1423
  get: function() {
1424
- return t;
1424
+ return r;
1425
1425
  }
1426
1426
  });
1427
- const b = _e, h = Ke, R = dt, r = /* @__PURE__ */ h._(ge), a = /* @__PURE__ */ b._(Et), c = /* @__PURE__ */ b._(Lt()), v = We, P = Ae, I = It(), S = Ee, C = vt(), l = /* @__PURE__ */ b._(ht()), d = process.env.__NEXT_IMAGE_OPTS;
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
1428
  typeof window > "u" && (globalThis.__NEXT_IMAGE_IMPORTED = !0);
1429
- function m(u, E, y, w, T, j, O) {
1430
- const V = u == null ? void 0 : u.src;
1431
- if (!u || u["data-loaded-src"] === V)
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
1432
  return;
1433
- u["data-loaded-src"] = V, ("decode" in u ? u.decode() : Promise.resolve()).catch(() => {
1433
+ o["data-loaded-src"] = K, ("decode" in o ? o.decode() : Promise.resolve()).catch(() => {
1434
1434
  }).then(() => {
1435
- if (!(!u.parentElement || !u.isConnected)) {
1436
- if (E !== "empty" && T(!0), y != null && y.current) {
1435
+ if (!(!o.parentElement || !o.isConnected)) {
1436
+ if (g !== "empty" && T(!0), l != null && l.current) {
1437
1437
  const U = new Event("load");
1438
1438
  Object.defineProperty(U, "target", {
1439
1439
  writable: !1,
1440
- value: u
1440
+ value: o
1441
1441
  });
1442
- let N = !1, q = !1;
1443
- y.current({
1442
+ let P = !1, z = !1;
1443
+ l.current({
1444
1444
  ...U,
1445
1445
  nativeEvent: U,
1446
- currentTarget: u,
1447
- target: u,
1448
- isDefaultPrevented: () => N,
1449
- isPropagationStopped: () => q,
1446
+ currentTarget: o,
1447
+ target: o,
1448
+ isDefaultPrevented: () => P,
1449
+ isPropagationStopped: () => z,
1450
1450
  persist: () => {
1451
1451
  },
1452
1452
  preventDefault: () => {
1453
- N = !0, U.preventDefault();
1453
+ P = !0, U.preventDefault();
1454
1454
  },
1455
1455
  stopPropagation: () => {
1456
- q = !0, U.stopPropagation();
1456
+ z = !0, U.stopPropagation();
1457
1457
  }
1458
1458
  });
1459
1459
  }
1460
- if (w != null && w.current && w.current(u), process.env.NODE_ENV !== "production") {
1461
- const U = new URL(V, "http://n").searchParams.get("url") || V;
1462
- if (u.getAttribute("data-nimg") === "fill") {
1463
- if (!j && (!O || O === "100vw") && u.getBoundingClientRect().width / window.innerWidth < 0.6 && (O === "100vw" ? (0, S.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, S.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')), u.parentElement) {
1464
- const { position: G } = window.getComputedStyle(u.parentElement), Q = [
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
1465
  "absolute",
1466
1466
  "fixed",
1467
1467
  "relative"
1468
1468
  ];
1469
- Q.includes(G) || (0, S.warnOnce)('Image with src "' + U + '" has "fill" and parent element with invalid "position". Provided "' + G + '" should be one of ' + Q.map(String).join(",") + ".");
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
1470
  }
1471
- u.height === 0 && (0, S.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.');
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
1472
  }
1473
- const N = u.height.toString() !== u.getAttribute("height"), q = u.width.toString() !== u.getAttribute("width");
1474
- (N && !q || !N && q) && (0, S.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.`);
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
1475
  }
1476
1476
  }
1477
1477
  });
1478
1478
  }
1479
- function g(u) {
1480
- const [E, y] = r.version.split(".", 2), w = parseInt(E, 10), T = parseInt(y, 10);
1481
- return w > 18 || w === 18 && T >= 3 ? {
1482
- fetchPriority: u
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
1483
  } : {
1484
- fetchpriority: u
1484
+ fetchpriority: o
1485
1485
  };
1486
1486
  }
1487
- const s = /* @__PURE__ */ (0, r.forwardRef)((u, E) => {
1488
- let { src: y, srcSet: w, sizes: T, height: j, width: O, decoding: V, className: H, style: U, fetchPriority: N, placeholder: q, loading: G, unoptimized: Q, fill: W, onLoadRef: k, onLoadingCompleteRef: z, setBlurComplete: re, setShowAltText: ie, sizesInput: X, onLoad: F, onError: se, ...te } = u;
1489
- return /* @__PURE__ */ (0, R.jsx)("img", {
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
1490
  ...te,
1491
- ...g(N),
1491
+ ...f(P),
1492
1492
  // It's intended to keep `loading` before `src` because React updates
1493
1493
  // props in order which causes Safari/Firefox to not lazy load properly.
1494
1494
  // See https://github.com/facebook/react/issues/25883
1495
- loading: G,
1496
- width: O,
1497
- height: j,
1498
- decoding: V,
1499
- "data-nimg": W ? "fill" : "1",
1500
- className: H,
1495
+ loading: q,
1496
+ width: v,
1497
+ height: H,
1498
+ decoding: K,
1499
+ "data-nimg": X ? "fill" : "1",
1500
+ className: k,
1501
1501
  style: U,
1502
1502
  // It's intended to keep `src` the last attribute because React updates
1503
1503
  // attributes in order. If we keep `src` the first one, Safari will
@@ -1506,787 +1506,232 @@ function ht() {
1506
1506
  // and `sizes` are defined.
1507
1507
  // This bug cannot be reproduced in Chrome or Firefox.
1508
1508
  sizes: T,
1509
- srcSet: w,
1510
- src: y,
1511
- ref: (0, r.useCallback)((n) => {
1512
- E && (typeof E == "function" ? E(n) : typeof E == "object" && (E.current = n)), n && (se && (n.src = n.src), process.env.NODE_ENV !== "production" && (y || console.error('Image is missing required "src" property:', n), n.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.')), n.complete && m(n, q, k, z, re, Q, X));
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
1513
  }, [
1514
- y,
1515
- q,
1516
- k,
1514
+ l,
1517
1515
  z,
1516
+ M,
1517
+ G,
1518
1518
  re,
1519
- se,
1519
+ ae,
1520
1520
  Q,
1521
- X,
1522
- E
1521
+ V,
1522
+ g
1523
1523
  ]),
1524
- onLoad: (n) => {
1525
- const K = n.currentTarget;
1526
- m(K, q, k, z, re, Q, X);
1524
+ onLoad: (e) => {
1525
+ const W = e.currentTarget;
1526
+ b(W, z, M, G, re, Q, V);
1527
1527
  },
1528
- onError: (n) => {
1529
- ie(!0), q !== "empty" && re(!0), se && se(n);
1528
+ onError: (e) => {
1529
+ ie(!0), z !== "empty" && re(!0), ae && ae(e);
1530
1530
  }
1531
1531
  });
1532
1532
  });
1533
- function A(u) {
1534
- let { isAppRouter: E, imgAttributes: y } = u;
1535
- const w = {
1533
+ function C(o) {
1534
+ let { isAppRouter: g, imgAttributes: l } = o;
1535
+ const _ = {
1536
1536
  as: "image",
1537
- imageSrcSet: y.srcSet,
1538
- imageSizes: y.sizes,
1539
- crossOrigin: y.crossOrigin,
1540
- referrerPolicy: y.referrerPolicy,
1541
- ...g(y.fetchPriority)
1537
+ imageSrcSet: l.srcSet,
1538
+ imageSizes: l.sizes,
1539
+ crossOrigin: l.crossOrigin,
1540
+ referrerPolicy: l.referrerPolicy,
1541
+ ...f(l.fetchPriority)
1542
1542
  };
1543
- return E && a.default.preload ? (a.default.preload(
1544
- y.src,
1543
+ return g && m.default.preload ? (m.default.preload(
1544
+ l.src,
1545
1545
  // @ts-expect-error TODO: upgrade to `@types/react-dom@18.3.x`
1546
- w
1547
- ), null) : /* @__PURE__ */ (0, R.jsx)(c.default, {
1548
- children: /* @__PURE__ */ (0, R.jsx)("link", {
1546
+ _
1547
+ ), null) : /* @__PURE__ */ (0, S.jsx)(p.default, {
1548
+ children: /* @__PURE__ */ (0, S.jsx)("link", {
1549
1549
  rel: "preload",
1550
1550
  // Note how we omit the `href` attribute, as it would only be relevant
1551
1551
  // for browsers that do not support `imagesrcset`, and in those cases
1552
1552
  // it would cause the incorrect image to be preloaded.
1553
1553
  //
1554
1554
  // https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
1555
- href: y.srcSet ? void 0 : y.src,
1556
- ...w
1557
- }, "__nimg-" + y.src + y.srcSet + y.sizes)
1555
+ href: l.srcSet ? void 0 : l.src,
1556
+ ..._
1557
+ }, "__nimg-" + l.src + l.srcSet + l.sizes)
1558
1558
  });
1559
1559
  }
1560
- const t = /* @__PURE__ */ (0, r.forwardRef)((u, E) => {
1561
- const w = !(0, r.useContext)(C.RouterContext), T = (0, r.useContext)(I.ImageConfigContext), j = (0, r.useMemo)(() => {
1562
- const z = d || T || P.imageConfigDefault, re = [
1563
- ...z.deviceSizes,
1564
- ...z.imageSizes
1565
- ].sort((X, F) => X - F), ie = z.deviceSizes.sort((X, F) => X - F);
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
1566
  return {
1567
- ...z,
1567
+ ...G,
1568
1568
  allSizes: re,
1569
1569
  deviceSizes: ie
1570
1570
  };
1571
1571
  }, [
1572
1572
  T
1573
- ]), { onLoad: O, onLoadingComplete: V } = u, H = (0, r.useRef)(O);
1574
- (0, r.useEffect)(() => {
1575
- H.current = O;
1573
+ ]), { onLoad: v, onLoadingComplete: K } = o, k = (0, u.useRef)(v);
1574
+ (0, u.useEffect)(() => {
1575
+ k.current = v;
1576
1576
  }, [
1577
- O
1577
+ v
1578
1578
  ]);
1579
- const U = (0, r.useRef)(V);
1580
- (0, r.useEffect)(() => {
1581
- U.current = V;
1579
+ const U = (0, u.useRef)(K);
1580
+ (0, u.useEffect)(() => {
1581
+ U.current = K;
1582
1582
  }, [
1583
- V
1583
+ K
1584
1584
  ]);
1585
- const [N, q] = (0, r.useState)(!1), [G, Q] = (0, r.useState)(!1), { props: W, meta: k } = (0, v.getImgProps)(u, {
1586
- defaultLoader: l.default,
1587
- imgConf: j,
1588
- blurComplete: N,
1589
- showAltText: G
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
1590
  });
1591
- return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, {
1591
+ return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, {
1592
1592
  children: [
1593
- /* @__PURE__ */ (0, R.jsx)(s, {
1594
- ...W,
1595
- unoptimized: k.unoptimized,
1596
- placeholder: k.placeholder,
1597
- fill: k.fill,
1598
- onLoadRef: H,
1593
+ /* @__PURE__ */ (0, S.jsx)(d, {
1594
+ ...X,
1595
+ unoptimized: M.unoptimized,
1596
+ placeholder: M.placeholder,
1597
+ fill: M.fill,
1598
+ onLoadRef: k,
1599
1599
  onLoadingCompleteRef: U,
1600
- setBlurComplete: q,
1600
+ setBlurComplete: z,
1601
1601
  setShowAltText: Q,
1602
- sizesInput: u.sizes,
1603
- ref: E
1602
+ sizesInput: o.sizes,
1603
+ ref: g
1604
1604
  }),
1605
- k.priority ? /* @__PURE__ */ (0, R.jsx)(A, {
1606
- isAppRouter: w,
1607
- imgAttributes: W
1605
+ M.priority ? /* @__PURE__ */ (0, S.jsx)(C, {
1606
+ isAppRouter: _,
1607
+ imgAttributes: X
1608
1608
  }) : null
1609
1609
  ]
1610
1610
  });
1611
1611
  });
1612
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1613
- })($e, $e.exports);
1614
- var Mt = $e.exports;
1615
- (function(_) {
1616
- Object.defineProperty(_, "__esModule", {
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
1617
  value: !0
1618
1618
  });
1619
- function e(v, P) {
1620
- for (var I in P)
1621
- Object.defineProperty(v, I, {
1619
+ function R(E, O) {
1620
+ for (var x in O)
1621
+ Object.defineProperty(E, x, {
1622
1622
  enumerable: !0,
1623
- get: P[I]
1623
+ get: O[x]
1624
1624
  });
1625
1625
  }
1626
- e(_, {
1626
+ R(L, {
1627
1627
  default: function() {
1628
- return c;
1628
+ return p;
1629
1629
  },
1630
1630
  getImageProps: function() {
1631
- return a;
1631
+ return m;
1632
1632
  }
1633
1633
  });
1634
- const b = _e, h = We, R = Mt, r = /* @__PURE__ */ b._(ht());
1635
- function a(v) {
1636
- const { props: P } = (0, h.getImgProps)(v, {
1637
- defaultLoader: r.default,
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
1638
  // This is replaced by webpack define plugin
1639
1639
  imgConf: process.env.__NEXT_IMAGE_OPTS
1640
1640
  });
1641
- for (const [I, S] of Object.entries(P))
1642
- S === void 0 && delete P[I];
1641
+ for (const [x, h] of Object.entries(O))
1642
+ h === void 0 && delete O[x];
1643
1643
  return {
1644
- props: P
1644
+ props: O
1645
1645
  };
1646
1646
  }
1647
- const c = R.Image;
1648
- })(pt);
1649
- var $t = pt;
1650
- const Nt = /* @__PURE__ */ bt($t);
1651
- var Ne = { exports: {} }, mt = {};
1652
- (function(_) {
1653
- "use client";
1654
- Object.defineProperty(_, "__esModule", {
1655
- value: !0
1656
- });
1657
- function e(a, c) {
1658
- for (var v in c)
1659
- Object.defineProperty(a, v, {
1660
- enumerable: !0,
1661
- get: c[v]
1662
- });
1663
- }
1664
- e(_, {
1665
- PathParamsContext: function() {
1666
- return r;
1667
- },
1668
- PathnameContext: function() {
1669
- return R;
1670
- },
1671
- SearchParamsContext: function() {
1672
- return h;
1673
- }
1674
- });
1675
- const b = ge, h = (0, b.createContext)(null), R = (0, b.createContext)(null), r = (0, b.createContext)(null);
1676
- process.env.NODE_ENV !== "production" && (h.displayName = "SearchParamsContext", R.displayName = "PathnameContext", r.displayName = "PathParamsContext");
1677
- })(mt);
1678
- var He = { exports: {} };
1679
- (function(_, e) {
1680
- Object.defineProperty(e, "__esModule", {
1681
- value: !0
1682
- }), Object.defineProperty(e, "getSegmentValue", {
1683
- enumerable: !0,
1684
- get: function() {
1685
- return b;
1686
- }
1687
- });
1688
- function b(h) {
1689
- return Array.isArray(h) ? h[1] : h;
1690
- }
1691
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1692
- })(He, He.exports);
1693
- var Ht = He.exports, ke = { exports: {} }, De = { exports: {} }, qe = { exports: {} }, Be = { exports: {} }, Ue = { exports: {} };
1694
- (function(_, e) {
1695
- Object.defineProperty(e, "__esModule", {
1696
- value: !0
1697
- }), Object.defineProperty(e, "createAsyncLocalStorage", {
1698
- enumerable: !0,
1699
- get: function() {
1700
- return r;
1701
- }
1702
- });
1703
- const b = new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");
1704
- class h {
1705
- disable() {
1706
- throw b;
1707
- }
1708
- getStore() {
1709
- }
1710
- run() {
1711
- throw b;
1712
- }
1713
- exit() {
1714
- throw b;
1715
- }
1716
- enterWith() {
1717
- throw b;
1718
- }
1719
- }
1720
- const R = globalThis.AsyncLocalStorage;
1721
- function r() {
1722
- return R ? new R() : new h();
1723
- }
1724
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1725
- })(Ue, Ue.exports);
1726
- var Xe = Ue.exports;
1727
- (function(_, e) {
1728
- Object.defineProperty(e, "__esModule", {
1729
- value: !0
1730
- }), Object.defineProperty(e, "requestAsyncStorage", {
1731
- enumerable: !0,
1732
- get: function() {
1733
- return h;
1734
- }
1735
- });
1736
- const h = (0, Xe.createAsyncLocalStorage)();
1737
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1738
- })(Be, Be.exports);
1739
- var kt = Be.exports;
1740
- (function(_, e) {
1741
- "TURBOPACK { transition: next-shared }";
1742
- Object.defineProperty(e, "__esModule", {
1743
- value: !0
1744
- });
1745
- function b(r, a) {
1746
- for (var c in a)
1747
- Object.defineProperty(r, c, {
1748
- enumerable: !0,
1749
- get: a[c]
1750
- });
1751
- }
1752
- b(e, {
1753
- getExpectedRequestStore: function() {
1754
- return R;
1755
- },
1756
- requestAsyncStorage: function() {
1757
- return h.requestAsyncStorage;
1758
- }
1759
- });
1760
- const h = kt;
1761
- function R(r) {
1762
- const a = h.requestAsyncStorage.getStore();
1763
- if (a)
1764
- return a;
1765
- throw new Error("`" + r + "` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context");
1766
- }
1767
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1768
- })(qe, qe.exports);
1769
- var Dt = qe.exports, Ge = { exports: {} }, ze = { exports: {} };
1770
- (function(_, e) {
1771
- Object.defineProperty(e, "__esModule", {
1772
- value: !0
1773
- }), Object.defineProperty(e, "actionAsyncStorage", {
1774
- enumerable: !0,
1775
- get: function() {
1776
- return h;
1777
- }
1778
- });
1779
- const h = (0, Xe.createAsyncLocalStorage)();
1780
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1781
- })(ze, ze.exports);
1782
- var qt = ze.exports;
1783
- (function(_, e) {
1784
- "TURBOPACK { transition: next-shared }";
1785
- Object.defineProperty(e, "__esModule", {
1786
- value: !0
1787
- }), Object.defineProperty(e, "actionAsyncStorage", {
1788
- enumerable: !0,
1789
- get: function() {
1790
- return b.actionAsyncStorage;
1791
- }
1792
- });
1793
- const b = qt;
1794
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1795
- })(Ge, Ge.exports);
1796
- var Bt = Ge.exports, Fe = { exports: {} };
1797
- (function(_, e) {
1798
- Object.defineProperty(e, "__esModule", {
1799
- value: !0
1800
- }), Object.defineProperty(e, "RedirectStatusCode", {
1801
- enumerable: !0,
1802
- get: function() {
1803
- return b;
1804
- }
1805
- });
1806
- var b;
1807
- (function(h) {
1808
- h[h.SeeOther = 303] = "SeeOther", h[h.TemporaryRedirect = 307] = "TemporaryRedirect", h[h.PermanentRedirect = 308] = "PermanentRedirect";
1809
- })(b || (b = {})), (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1810
- })(Fe, Fe.exports);
1811
- var Ut = Fe.exports;
1812
- (function(_, e) {
1813
- Object.defineProperty(e, "__esModule", {
1814
- value: !0
1815
- });
1816
- function b(m, g) {
1817
- for (var s in g)
1818
- Object.defineProperty(m, s, {
1819
- enumerable: !0,
1820
- get: g[s]
1821
- });
1822
- }
1823
- b(e, {
1824
- RedirectType: function() {
1825
- return c;
1826
- },
1827
- getRedirectError: function() {
1828
- return v;
1829
- },
1830
- getRedirectStatusCodeFromError: function() {
1831
- return d;
1832
- },
1833
- getRedirectTypeFromError: function() {
1834
- return l;
1835
- },
1836
- getURLFromRedirectError: function() {
1837
- return C;
1838
- },
1839
- isRedirectError: function() {
1840
- return S;
1841
- },
1842
- permanentRedirect: function() {
1843
- return I;
1844
- },
1845
- redirect: function() {
1846
- return P;
1847
- }
1848
- });
1849
- const h = Dt, R = Bt, r = Ut, a = "NEXT_REDIRECT";
1850
- var c;
1851
- (function(m) {
1852
- m.push = "push", m.replace = "replace";
1853
- })(c || (c = {}));
1854
- function v(m, g, s) {
1855
- s === void 0 && (s = r.RedirectStatusCode.TemporaryRedirect);
1856
- const A = new Error(a);
1857
- A.digest = a + ";" + g + ";" + m + ";" + s + ";";
1858
- const t = h.requestAsyncStorage.getStore();
1859
- return t && (A.mutableCookies = t.mutableCookies), A;
1860
- }
1861
- function P(m, g) {
1862
- g === void 0 && (g = "replace");
1863
- const s = R.actionAsyncStorage.getStore();
1864
- throw v(
1865
- m,
1866
- g,
1867
- // If we're in an action, we want to use a 303 redirect
1868
- // as we don't want the POST request to follow the redirect,
1869
- // as it could result in erroneous re-submissions.
1870
- s != null && s.isAction ? r.RedirectStatusCode.SeeOther : r.RedirectStatusCode.TemporaryRedirect
1871
- );
1872
- }
1873
- function I(m, g) {
1874
- g === void 0 && (g = "replace");
1875
- const s = R.actionAsyncStorage.getStore();
1876
- throw v(
1877
- m,
1878
- g,
1879
- // If we're in an action, we want to use a 303 redirect
1880
- // as we don't want the POST request to follow the redirect,
1881
- // as it could result in erroneous re-submissions.
1882
- s != null && s.isAction ? r.RedirectStatusCode.SeeOther : r.RedirectStatusCode.PermanentRedirect
1883
- );
1884
- }
1885
- function S(m) {
1886
- if (typeof m != "object" || m === null || !("digest" in m) || typeof m.digest != "string")
1887
- return !1;
1888
- const [g, s, A, t] = m.digest.split(";", 4), u = Number(t);
1889
- return g === a && (s === "replace" || s === "push") && typeof A == "string" && !isNaN(u) && u in r.RedirectStatusCode;
1890
- }
1891
- function C(m) {
1892
- return S(m) ? m.digest.split(";", 3)[2] : null;
1893
- }
1894
- function l(m) {
1895
- if (!S(m))
1896
- throw new Error("Not a redirect error");
1897
- return m.digest.split(";", 2)[1];
1898
- }
1899
- function d(m) {
1900
- if (!S(m))
1901
- throw new Error("Not a redirect error");
1902
- return Number(m.digest.split(";", 4)[3]);
1903
- }
1904
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1905
- })(De, De.exports);
1906
- var Gt = De.exports, Ve = { exports: {} };
1907
- (function(_, e) {
1908
- Object.defineProperty(e, "__esModule", {
1909
- value: !0
1910
- });
1911
- function b(a, c) {
1912
- for (var v in c)
1913
- Object.defineProperty(a, v, {
1914
- enumerable: !0,
1915
- get: c[v]
1916
- });
1917
- }
1918
- b(e, {
1919
- isNotFoundError: function() {
1920
- return r;
1921
- },
1922
- notFound: function() {
1923
- return R;
1924
- }
1925
- });
1926
- const h = "NEXT_NOT_FOUND";
1927
- function R() {
1928
- const a = new Error(h);
1929
- throw a.digest = h, a;
1930
- }
1931
- function r(a) {
1932
- return typeof a != "object" || a === null || !("digest" in a) ? !1 : a.digest === h;
1933
- }
1934
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1935
- })(Ve, Ve.exports);
1936
- var zt = Ve.exports;
1937
- (function(_, e) {
1938
- Object.defineProperty(e, "__esModule", {
1939
- value: !0
1940
- });
1941
- function b(c, v) {
1942
- for (var P in v)
1943
- Object.defineProperty(c, P, {
1944
- enumerable: !0,
1945
- get: v[P]
1946
- });
1947
- }
1948
- b(e, {
1949
- ReadonlyURLSearchParams: function() {
1950
- return a;
1951
- },
1952
- RedirectType: function() {
1953
- return h.RedirectType;
1954
- },
1955
- notFound: function() {
1956
- return R.notFound;
1957
- },
1958
- permanentRedirect: function() {
1959
- return h.permanentRedirect;
1960
- },
1961
- redirect: function() {
1962
- return h.redirect;
1963
- }
1964
- });
1965
- const h = Gt, R = zt;
1966
- class r extends Error {
1967
- constructor() {
1968
- super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams");
1969
- }
1970
- }
1971
- class a extends URLSearchParams {
1972
- /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
1973
- append() {
1974
- throw new r();
1975
- }
1976
- /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
1977
- delete() {
1978
- throw new r();
1979
- }
1980
- /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
1981
- set() {
1982
- throw new r();
1983
- }
1984
- /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
1985
- sort() {
1986
- throw new r();
1987
- }
1988
- }
1989
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
1990
- })(ke, ke.exports);
1991
- var Ft = ke.exports, _t = {};
1992
- (function(_) {
1993
- "use client";
1994
- Object.defineProperty(_, "__esModule", {
1995
- value: !0
1996
- });
1997
- function e(a, c) {
1998
- for (var v in c)
1999
- Object.defineProperty(a, v, {
2000
- enumerable: !0,
2001
- get: c[v]
2002
- });
2003
- }
2004
- e(_, {
2005
- ServerInsertedHTMLContext: function() {
2006
- return R;
2007
- },
2008
- useServerInsertedHTML: function() {
2009
- return r;
2010
- }
2011
- });
2012
- const h = /* @__PURE__ */ Ke._(ge), R = /* @__PURE__ */ h.default.createContext(null);
2013
- function r(a) {
2014
- const c = (0, h.useContext)(R);
2015
- c && c(a);
2016
- }
2017
- })(_t);
2018
- var ve = { exports: {} }, Me = {}, st;
2019
- function Vt() {
2020
- return st || (st = 1, function(_) {
2021
- Object.defineProperty(_, "__esModule", {
2022
- value: !0
2023
- });
2024
- function e(r, a) {
2025
- for (var c in a)
2026
- Object.defineProperty(r, c, {
2027
- enumerable: !0,
2028
- get: a[c]
2029
- });
2030
- }
2031
- e(_, {
2032
- BailoutToCSRError: function() {
2033
- return h;
2034
- },
2035
- isBailoutToCSRError: function() {
2036
- return R;
2037
- }
2038
- });
2039
- const b = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
2040
- class h extends Error {
2041
- constructor(a) {
2042
- super("Bail out to client-side rendering: " + a), this.reason = a, this.digest = b;
2043
- }
2044
- }
2045
- function R(r) {
2046
- return typeof r != "object" || r === null || !("digest" in r) ? !1 : r.digest === b;
2047
- }
2048
- }(Me)), Me;
2049
- }
2050
- var Re = { exports: {} }, Se = { exports: {} }, ut;
2051
- function Kt() {
2052
- return ut || (ut = 1, function(_, e) {
2053
- Object.defineProperty(e, "__esModule", {
2054
- value: !0
2055
- }), Object.defineProperty(e, "staticGenerationAsyncStorage", {
2056
- enumerable: !0,
2057
- get: function() {
2058
- return h;
2059
- }
2060
- });
2061
- const h = (0, Xe.createAsyncLocalStorage)();
2062
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
2063
- }(Se, Se.exports)), Se.exports;
2064
- }
2065
- var ct;
2066
- function Wt() {
2067
- return ct || (ct = 1, function(_, e) {
2068
- "TURBOPACK { transition: next-shared }";
2069
- Object.defineProperty(e, "__esModule", {
2070
- value: !0
2071
- }), Object.defineProperty(e, "staticGenerationAsyncStorage", {
2072
- enumerable: !0,
2073
- get: function() {
2074
- return b.staticGenerationAsyncStorage;
2075
- }
2076
- });
2077
- const b = Kt();
2078
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
2079
- }(Re, Re.exports)), Re.exports;
2080
- }
2081
- var lt;
2082
- function Xt() {
2083
- return lt || (lt = 1, function(_, e) {
2084
- Object.defineProperty(e, "__esModule", {
2085
- value: !0
2086
- }), Object.defineProperty(e, "bailoutToClientRendering", {
2087
- enumerable: !0,
2088
- get: function() {
2089
- return R;
2090
- }
2091
- });
2092
- const b = Vt(), h = Wt();
2093
- function R(r) {
2094
- const a = h.staticGenerationAsyncStorage.getStore();
2095
- if (!(a != null && a.forceStatic) && a != null && a.isStaticGeneration)
2096
- throw new b.BailoutToCSRError(r);
2097
- }
2098
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
2099
- }(ve, ve.exports)), ve.exports;
2100
- }
2101
- (function(_, e) {
2102
- Object.defineProperty(e, "__esModule", {
2103
- value: !0
2104
- });
2105
- function b(s, A) {
2106
- for (var t in A)
2107
- Object.defineProperty(s, t, {
2108
- enumerable: !0,
2109
- get: A[t]
2110
- });
2111
- }
2112
- b(e, {
2113
- ReadonlyURLSearchParams: function() {
2114
- return v.ReadonlyURLSearchParams;
2115
- },
2116
- RedirectType: function() {
2117
- return v.RedirectType;
2118
- },
2119
- ServerInsertedHTMLContext: function() {
2120
- return P.ServerInsertedHTMLContext;
2121
- },
2122
- notFound: function() {
2123
- return v.notFound;
2124
- },
2125
- permanentRedirect: function() {
2126
- return v.permanentRedirect;
2127
- },
2128
- redirect: function() {
2129
- return v.redirect;
2130
- },
2131
- useParams: function() {
2132
- return l;
2133
- },
2134
- usePathname: function() {
2135
- return S;
2136
- },
2137
- useRouter: function() {
2138
- return C;
2139
- },
2140
- useSearchParams: function() {
2141
- return I;
2142
- },
2143
- useSelectedLayoutSegment: function() {
2144
- return g;
2145
- },
2146
- useSelectedLayoutSegments: function() {
2147
- return m;
2148
- },
2149
- useServerInsertedHTML: function() {
2150
- return P.useServerInsertedHTML;
2151
- }
2152
- });
2153
- const h = ge, R = Rt, r = mt, a = Ht, c = St, v = Ft, P = _t;
2154
- function I() {
2155
- const s = (0, h.useContext)(r.SearchParamsContext), A = (0, h.useMemo)(() => s ? new v.ReadonlyURLSearchParams(s) : null, [
2156
- s
2157
- ]);
2158
- if (typeof window > "u") {
2159
- const { bailoutToClientRendering: t } = Xt();
2160
- t("useSearchParams()");
2161
- }
2162
- return A;
2163
- }
2164
- function S() {
2165
- return (0, h.useContext)(r.PathnameContext);
2166
- }
2167
- function C() {
2168
- const s = (0, h.useContext)(R.AppRouterContext);
2169
- if (s === null)
2170
- throw new Error("invariant expected app router to be mounted");
2171
- return s;
2172
- }
2173
- function l() {
2174
- return (0, h.useContext)(r.PathParamsContext);
2175
- }
2176
- function d(s, A, t, u) {
2177
- t === void 0 && (t = !0), u === void 0 && (u = []);
2178
- let E;
2179
- if (t)
2180
- E = s[1][A];
2181
- else {
2182
- const j = s[1];
2183
- var y;
2184
- E = (y = j.children) != null ? y : Object.values(j)[0];
2185
- }
2186
- if (!E)
2187
- return u;
2188
- const w = E[0], T = (0, a.getSegmentValue)(w);
2189
- return !T || T.startsWith(c.PAGE_SEGMENT_KEY) ? u : (u.push(T), d(E, A, !1, u));
2190
- }
2191
- function m(s) {
2192
- s === void 0 && (s = "children");
2193
- const A = (0, h.useContext)(R.LayoutRouterContext);
2194
- return A ? d(A.tree, s) : null;
2195
- }
2196
- function g(s) {
2197
- s === void 0 && (s = "children");
2198
- const A = m(s);
2199
- if (!A || A.length === 0)
2200
- return null;
2201
- const t = s === "children" ? A[0] : A[A.length - 1];
2202
- return t === c.DEFAULT_SEGMENT_KEY ? null : t;
2203
- }
2204
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), _.exports = e.default);
2205
- })(Ne, Ne.exports);
2206
- var Qt = Ne.exports, Yt = Qt;
2207
- const Zt = "_sideMenu_1f66p_1", Jt = "_logo_1f66p_7", en = "_menus_1f66p_12", tn = "_menuTitle_1f66p_19", nn = "_menuItem_1f66p_27", rn = "_selected_1f66p_41", me = {
2208
- sideMenu: Zt,
2209
- logo: Jt,
2210
- menus: en,
2211
- menuTitle: tn,
2212
- menuItem: nn,
2213
- selected: rn
2214
- }, ft = 235, dn = (_) => {
2215
- var C;
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) => {
2216
1658
  const {
2217
- isOpen: e,
2218
- isMobile: b,
2219
- onClose: h,
2220
- menus: R,
2221
- logoSrc: r,
2222
- topPageUrl: a = "/",
2223
- isStorybook: c = !1
2224
- } = _, v = ((C = Yt.usePathname()) == null ? void 0 : C.split("/")[1]) ?? null, [P, I] = yt(
2225
- v === "" ? "/" : "/" + v
2226
- ), S = (l, d) => {
2227
- b && h(), c && d.preventDefault(), I(l);
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();
2228
1673
  };
2229
1674
  return /* @__PURE__ */ he(
2230
- At,
1675
+ tt,
2231
1676
  {
2232
- variant: b ? "temporary" : "permanent",
2233
- open: e,
2234
- onClose: h,
1677
+ variant: N ? "temporary" : "permanent",
1678
+ open: R,
1679
+ onClose: j,
2235
1680
  sx: {
2236
- width: ft,
1681
+ width: Ge,
2237
1682
  flexShrink: 0,
2238
1683
  "& .MuiDrawer-paper": {
2239
- width: ft,
1684
+ width: Ge,
2240
1685
  boxSizing: "border-box"
2241
1686
  }
2242
1687
  },
2243
- children: /* @__PURE__ */ Qe("div", { className: me.sideMenu, children: [
2244
- /* @__PURE__ */ he("div", { className: me.logo, children: /* @__PURE__ */ he(
2245
- Ye,
1688
+ children: /* @__PURE__ */ He("div", { className: ge.sideMenu, children: [
1689
+ /* @__PURE__ */ he("div", { className: ge.logo, children: /* @__PURE__ */ he(
1690
+ Pe,
2246
1691
  {
2247
- href: a,
1692
+ href: m,
2248
1693
  style: { textDecoration: "none" },
2249
- onClick: (l) => S(a, l),
1694
+ onClick: (i) => c(i),
2250
1695
  children: /* @__PURE__ */ he(
2251
- Nt,
1696
+ dt,
2252
1697
  {
2253
- src: r,
1698
+ src: u,
2254
1699
  alt: "logo",
2255
1700
  width: 204,
2256
1701
  height: 49,
2257
- style: { width: "auto", height: "auto" },
1702
+ className: "object-contain",
2258
1703
  priority: !0
2259
1704
  }
2260
1705
  )
2261
1706
  }
2262
1707
  ) }),
2263
- /* @__PURE__ */ he("div", { className: me.menus, children: R.map(
2264
- (l) => l.isTitle ? /* @__PURE__ */ he("div", { className: me.menuTitle, children: l.label }, l.label) : /* @__PURE__ */ he(
2265
- Ye,
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,
2266
1711
  {
2267
- href: l.href ?? "",
1712
+ href: i.href ?? "",
2268
1713
  style: { textDecoration: "none" },
2269
1714
  role: "menuitem",
2270
- "aria-current": P === l.href ? "page" : void 0,
2271
- children: /* @__PURE__ */ Qe(
1715
+ "aria-current": h === i.href ? "page" : void 0,
1716
+ children: /* @__PURE__ */ He(
2272
1717
  "div",
2273
1718
  {
2274
- onClick: (d) => S(l.href, d),
2275
- className: wt(me.menuItem, {
2276
- [me.selected]: P === l.href
1719
+ onClick: (b) => c(b),
1720
+ className: nt(ge.menuItem, {
1721
+ [ge.selected]: h === i.href
2277
1722
  }),
2278
1723
  tabIndex: 0,
2279
- onKeyDown: (d) => {
2280
- (d.key === "Enter" || d.key === " ") && S(l.href, d);
1724
+ onKeyDown: (b) => {
1725
+ (b.key === "Enter" || b.key === " ") && c(b);
2281
1726
  },
2282
1727
  children: [
2283
- l.icon,
2284
- /* @__PURE__ */ he("div", { children: l.label })
1728
+ i.icon,
1729
+ /* @__PURE__ */ he("div", { children: i.label })
2285
1730
  ]
2286
1731
  }
2287
1732
  )
2288
1733
  },
2289
- l.label
1734
+ i.label
2290
1735
  )
2291
1736
  ) })
2292
1737
  ] })
@@ -2294,6 +1739,5 @@ const Zt = "_sideMenu_1f66p_1", Jt = "_logo_1f66p_7", en = "_menus_1f66p_12", tn
2294
1739
  );
2295
1740
  };
2296
1741
  export {
2297
- dn as SideMenu,
2298
- dn as default
1742
+ Ct as SideMenu
2299
1743
  };