@ichaingo/token 1.4.96 → 1.4.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3787 @@
1
+ function Zt(E, c) {
2
+ for (var O = 0; O < c.length; O++) {
3
+ const R = c[O];
4
+ if (typeof R != "string" && !Array.isArray(R)) {
5
+ for (const v in R)
6
+ if (v !== "default" && !(v in E)) {
7
+ const T = Object.getOwnPropertyDescriptor(R, v);
8
+ T && Object.defineProperty(E, v, T.get ? T : {
9
+ enumerable: !0,
10
+ get: () => R[v]
11
+ });
12
+ }
13
+ }
14
+ }
15
+ return Object.freeze(Object.defineProperty(E, Symbol.toStringTag, { value: "Module" }));
16
+ }
17
+ var me = {}, Me = {}, Ie = {}, xe = {}, qe, ht;
18
+ function Jt() {
19
+ if (ht) return qe;
20
+ ht = 1;
21
+ var E = Object.defineProperty, c = Object.getOwnPropertyDescriptor, O = Object.getOwnPropertyNames, R = Object.prototype.hasOwnProperty, v = (r, n) => {
22
+ for (var t in n)
23
+ E(r, t, { get: n[t], enumerable: !0 });
24
+ }, T = (r, n, t, f) => {
25
+ if (n && typeof n == "object" || typeof n == "function")
26
+ for (let y of O(n))
27
+ !R.call(r, y) && y !== t && E(r, y, { get: () => n[y], enumerable: !(f = c(n, y)) || f.enumerable });
28
+ return r;
29
+ }, i = (r) => T(E({}, "__esModule", { value: !0 }), r), g = {};
30
+ v(g, {
31
+ RequestCookies: () => j,
32
+ ResponseCookies: () => U,
33
+ parseCookie: () => _,
34
+ parseSetCookie: () => k,
35
+ stringifyCookie: () => l
36
+ }), qe = i(g);
37
+ function l(r) {
38
+ var n;
39
+ const t = [
40
+ "path" in r && r.path && `Path=${r.path}`,
41
+ "expires" in r && (r.expires || r.expires === 0) && `Expires=${(typeof r.expires == "number" ? new Date(r.expires) : r.expires).toUTCString()}`,
42
+ "maxAge" in r && typeof r.maxAge == "number" && `Max-Age=${r.maxAge}`,
43
+ "domain" in r && r.domain && `Domain=${r.domain}`,
44
+ "secure" in r && r.secure && "Secure",
45
+ "httpOnly" in r && r.httpOnly && "HttpOnly",
46
+ "sameSite" in r && r.sameSite && `SameSite=${r.sameSite}`,
47
+ "partitioned" in r && r.partitioned && "Partitioned",
48
+ "priority" in r && r.priority && `Priority=${r.priority}`
49
+ ].filter(Boolean), f = `${r.name}=${encodeURIComponent((n = r.value) != null ? n : "")}`;
50
+ return t.length === 0 ? f : `${f}; ${t.join("; ")}`;
51
+ }
52
+ function _(r) {
53
+ const n = /* @__PURE__ */ new Map();
54
+ for (const t of r.split(/; */)) {
55
+ if (!t)
56
+ continue;
57
+ const f = t.indexOf("=");
58
+ if (f === -1) {
59
+ n.set(t, "true");
60
+ continue;
61
+ }
62
+ const [y, a] = [t.slice(0, f), t.slice(f + 1)];
63
+ try {
64
+ n.set(y, decodeURIComponent(a ?? "true"));
65
+ } catch {
66
+ }
67
+ }
68
+ return n;
69
+ }
70
+ function k(r) {
71
+ if (!r)
72
+ return;
73
+ const [[n, t], ...f] = _(r), {
74
+ domain: y,
75
+ expires: a,
76
+ httponly: p,
77
+ maxage: b,
78
+ path: K,
79
+ samesite: z,
80
+ secure: H,
81
+ partitioned: J,
82
+ priority: re
83
+ } = Object.fromEntries(
84
+ f.map(([ae, ue]) => [
85
+ ae.toLowerCase().replace(/-/g, ""),
86
+ ue
87
+ ])
88
+ ), ce = {
89
+ name: n,
90
+ value: decodeURIComponent(t),
91
+ domain: y,
92
+ ...a && { expires: new Date(a) },
93
+ ...p && { httpOnly: !0 },
94
+ ...typeof b == "string" && { maxAge: Number(b) },
95
+ path: K,
96
+ ...z && { sameSite: V(z) },
97
+ ...H && { secure: !0 },
98
+ ...re && { priority: w(re) },
99
+ ...J && { partitioned: !0 }
100
+ };
101
+ return P(ce);
102
+ }
103
+ function P(r) {
104
+ const n = {};
105
+ for (const t in r)
106
+ r[t] && (n[t] = r[t]);
107
+ return n;
108
+ }
109
+ var N = ["strict", "lax", "none"];
110
+ function V(r) {
111
+ return r = r.toLowerCase(), N.includes(r) ? r : void 0;
112
+ }
113
+ var q = ["low", "medium", "high"];
114
+ function w(r) {
115
+ return r = r.toLowerCase(), q.includes(r) ? r : void 0;
116
+ }
117
+ function D(r) {
118
+ if (!r)
119
+ return [];
120
+ var n = [], t = 0, f, y, a, p, b;
121
+ function K() {
122
+ for (; t < r.length && /\s/.test(r.charAt(t)); )
123
+ t += 1;
124
+ return t < r.length;
125
+ }
126
+ function z() {
127
+ return y = r.charAt(t), y !== "=" && y !== ";" && y !== ",";
128
+ }
129
+ for (; t < r.length; ) {
130
+ for (f = t, b = !1; K(); )
131
+ if (y = r.charAt(t), y === ",") {
132
+ for (a = t, t += 1, K(), p = t; t < r.length && z(); )
133
+ t += 1;
134
+ t < r.length && r.charAt(t) === "=" ? (b = !0, t = p, n.push(r.substring(f, a)), f = t) : t = a + 1;
135
+ } else
136
+ t += 1;
137
+ (!b || t >= r.length) && n.push(r.substring(f, r.length));
138
+ }
139
+ return n;
140
+ }
141
+ var j = class {
142
+ constructor(r) {
143
+ this._parsed = /* @__PURE__ */ new Map(), this._headers = r;
144
+ const n = r.get("cookie");
145
+ if (n) {
146
+ const t = _(n);
147
+ for (const [f, y] of t)
148
+ this._parsed.set(f, { name: f, value: y });
149
+ }
150
+ }
151
+ [Symbol.iterator]() {
152
+ return this._parsed[Symbol.iterator]();
153
+ }
154
+ /**
155
+ * The amount of cookies received from the client
156
+ */
157
+ get size() {
158
+ return this._parsed.size;
159
+ }
160
+ get(...r) {
161
+ const n = typeof r[0] == "string" ? r[0] : r[0].name;
162
+ return this._parsed.get(n);
163
+ }
164
+ getAll(...r) {
165
+ var n;
166
+ const t = Array.from(this._parsed);
167
+ if (!r.length)
168
+ return t.map(([y, a]) => a);
169
+ const f = typeof r[0] == "string" ? r[0] : (n = r[0]) == null ? void 0 : n.name;
170
+ return t.filter(([y]) => y === f).map(([y, a]) => a);
171
+ }
172
+ has(r) {
173
+ return this._parsed.has(r);
174
+ }
175
+ set(...r) {
176
+ const [n, t] = r.length === 1 ? [r[0].name, r[0].value] : r, f = this._parsed;
177
+ return f.set(n, { name: n, value: t }), this._headers.set(
178
+ "cookie",
179
+ Array.from(f).map(([y, a]) => l(a)).join("; ")
180
+ ), this;
181
+ }
182
+ /**
183
+ * Delete the cookies matching the passed name or names in the request.
184
+ */
185
+ delete(r) {
186
+ const n = this._parsed, t = Array.isArray(r) ? r.map((f) => n.delete(f)) : n.delete(r);
187
+ return this._headers.set(
188
+ "cookie",
189
+ Array.from(n).map(([f, y]) => l(y)).join("; ")
190
+ ), t;
191
+ }
192
+ /**
193
+ * Delete all the cookies in the cookies in the request.
194
+ */
195
+ clear() {
196
+ return this.delete(Array.from(this._parsed.keys())), this;
197
+ }
198
+ /**
199
+ * Format the cookies in the request as a string for logging
200
+ */
201
+ [Symbol.for("edge-runtime.inspect.custom")]() {
202
+ return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
203
+ }
204
+ toString() {
205
+ return [...this._parsed.values()].map((r) => `${r.name}=${encodeURIComponent(r.value)}`).join("; ");
206
+ }
207
+ }, U = class {
208
+ constructor(r) {
209
+ this._parsed = /* @__PURE__ */ new Map();
210
+ var n, t, f;
211
+ this._headers = r;
212
+ const y = (f = (t = (n = r.getSetCookie) == null ? void 0 : n.call(r)) != null ? t : r.get("set-cookie")) != null ? f : [], a = Array.isArray(y) ? y : D(y);
213
+ for (const p of a) {
214
+ const b = k(p);
215
+ b && this._parsed.set(b.name, b);
216
+ }
217
+ }
218
+ /**
219
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
220
+ */
221
+ get(...r) {
222
+ const n = typeof r[0] == "string" ? r[0] : r[0].name;
223
+ return this._parsed.get(n);
224
+ }
225
+ /**
226
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
227
+ */
228
+ getAll(...r) {
229
+ var n;
230
+ const t = Array.from(this._parsed.values());
231
+ if (!r.length)
232
+ return t;
233
+ const f = typeof r[0] == "string" ? r[0] : (n = r[0]) == null ? void 0 : n.name;
234
+ return t.filter((y) => y.name === f);
235
+ }
236
+ has(r) {
237
+ return this._parsed.has(r);
238
+ }
239
+ /**
240
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
241
+ */
242
+ set(...r) {
243
+ const [n, t, f] = r.length === 1 ? [r[0].name, r[0].value, r[0]] : r, y = this._parsed;
244
+ return y.set(n, X({ name: n, value: t, ...f })), B(y, this._headers), this;
245
+ }
246
+ /**
247
+ * {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
248
+ */
249
+ delete(...r) {
250
+ const [n, t] = typeof r[0] == "string" ? [r[0]] : [r[0].name, r[0]];
251
+ return this.set({ ...t, name: n, value: "", expires: /* @__PURE__ */ new Date(0) });
252
+ }
253
+ [Symbol.for("edge-runtime.inspect.custom")]() {
254
+ return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
255
+ }
256
+ toString() {
257
+ return [...this._parsed.values()].map(l).join("; ");
258
+ }
259
+ };
260
+ function B(r, n) {
261
+ n.delete("set-cookie");
262
+ for (const [, t] of r) {
263
+ const f = l(t);
264
+ n.append("set-cookie", f);
265
+ }
266
+ }
267
+ function X(r = { name: "", value: "" }) {
268
+ return typeof r.expires == "number" && (r.expires = new Date(r.expires)), r.maxAge && (r.expires = new Date(Date.now() + r.maxAge * 1e3)), (r.path === null || r.path === void 0) && (r.path = "/"), r;
269
+ }
270
+ return qe;
271
+ }
272
+ var mt;
273
+ function $t() {
274
+ return mt || (mt = 1, (function(E) {
275
+ Object.defineProperty(E, "__esModule", {
276
+ value: !0
277
+ });
278
+ function c(R, v) {
279
+ for (var T in v) Object.defineProperty(R, T, {
280
+ enumerable: !0,
281
+ get: v[T]
282
+ });
283
+ }
284
+ c(E, {
285
+ RequestCookies: function() {
286
+ return O.RequestCookies;
287
+ },
288
+ ResponseCookies: function() {
289
+ return O.ResponseCookies;
290
+ },
291
+ stringifyCookie: function() {
292
+ return O.stringifyCookie;
293
+ }
294
+ });
295
+ const O = Jt();
296
+ })(xe)), xe;
297
+ }
298
+ var Ue = {}, _t;
299
+ function ye() {
300
+ return _t || (_t = 1, (function(E) {
301
+ Object.defineProperty(E, "__esModule", {
302
+ value: !0
303
+ }), Object.defineProperty(E, "ReflectAdapter", {
304
+ enumerable: !0,
305
+ get: function() {
306
+ return c;
307
+ }
308
+ });
309
+ class c {
310
+ static get(R, v, T) {
311
+ const i = Reflect.get(R, v, T);
312
+ return typeof i == "function" ? i.bind(R) : i;
313
+ }
314
+ static set(R, v, T, i) {
315
+ return Reflect.set(R, v, T, i);
316
+ }
317
+ static has(R, v) {
318
+ return Reflect.has(R, v);
319
+ }
320
+ static deleteProperty(R, v) {
321
+ return Reflect.deleteProperty(R, v);
322
+ }
323
+ }
324
+ })(Ue)), Ue;
325
+ }
326
+ var Le = {}, He = {}, We = {}, yt;
327
+ function nt() {
328
+ return yt || (yt = 1, (function(E) {
329
+ Object.defineProperty(E, "__esModule", {
330
+ value: !0
331
+ });
332
+ function c(l, _) {
333
+ for (var k in _) Object.defineProperty(l, k, {
334
+ enumerable: !0,
335
+ get: _[k]
336
+ });
337
+ }
338
+ c(E, {
339
+ bindSnapshot: function() {
340
+ return i;
341
+ },
342
+ createAsyncLocalStorage: function() {
343
+ return T;
344
+ },
345
+ createSnapshot: function() {
346
+ return g;
347
+ }
348
+ });
349
+ const O = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
350
+ value: "E504",
351
+ enumerable: !1,
352
+ configurable: !0
353
+ });
354
+ class R {
355
+ disable() {
356
+ throw O;
357
+ }
358
+ getStore() {
359
+ }
360
+ run() {
361
+ throw O;
362
+ }
363
+ exit() {
364
+ throw O;
365
+ }
366
+ enterWith() {
367
+ throw O;
368
+ }
369
+ static bind(_) {
370
+ return _;
371
+ }
372
+ }
373
+ const v = typeof globalThis < "u" && globalThis.AsyncLocalStorage;
374
+ function T() {
375
+ return v ? new v() : new R();
376
+ }
377
+ function i(l) {
378
+ return v ? v.bind(l) : R.bind(l);
379
+ }
380
+ function g() {
381
+ return v ? v.snapshot() : function(l, ..._) {
382
+ return l(..._);
383
+ };
384
+ }
385
+ })(We)), We;
386
+ }
387
+ var Et;
388
+ function er() {
389
+ return Et || (Et = 1, (function(E) {
390
+ Object.defineProperty(E, "__esModule", {
391
+ value: !0
392
+ }), Object.defineProperty(E, "workAsyncStorageInstance", {
393
+ enumerable: !0,
394
+ get: function() {
395
+ return O;
396
+ }
397
+ });
398
+ const O = (0, nt().createAsyncLocalStorage)();
399
+ })(He)), He;
400
+ }
401
+ var gt;
402
+ function Ee() {
403
+ return gt || (gt = 1, (function(E) {
404
+ Object.defineProperty(E, "__esModule", {
405
+ value: !0
406
+ }), Object.defineProperty(E, "workAsyncStorage", {
407
+ enumerable: !0,
408
+ get: function() {
409
+ return c.workAsyncStorageInstance;
410
+ }
411
+ });
412
+ const c = er();
413
+ })(Le)), Le;
414
+ }
415
+ var bt;
416
+ function tr() {
417
+ return bt || (bt = 1, (function(E) {
418
+ Object.defineProperty(E, "__esModule", {
419
+ value: !0
420
+ });
421
+ function c(w, D) {
422
+ for (var j in D) Object.defineProperty(w, j, {
423
+ enumerable: !0,
424
+ get: D[j]
425
+ });
426
+ }
427
+ c(E, {
428
+ MutableRequestCookiesAdapter: function() {
429
+ return k;
430
+ },
431
+ ReadonlyRequestCookiesError: function() {
432
+ return T;
433
+ },
434
+ RequestCookiesAdapter: function() {
435
+ return i;
436
+ },
437
+ appendMutableCookies: function() {
438
+ return _;
439
+ },
440
+ areCookiesMutableInCurrentPhase: function() {
441
+ return N;
442
+ },
443
+ createCookiesWithMutableAccessCheck: function() {
444
+ return P;
445
+ },
446
+ getModifiedCookieValues: function() {
447
+ return l;
448
+ },
449
+ responseCookiesToRequestCookies: function() {
450
+ return q;
451
+ }
452
+ });
453
+ const O = $t(), R = ye(), v = Ee();
454
+ class T extends Error {
455
+ constructor() {
456
+ super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options");
457
+ }
458
+ static callable() {
459
+ throw new T();
460
+ }
461
+ }
462
+ class i {
463
+ static seal(D) {
464
+ return new Proxy(D, {
465
+ get(j, U, B) {
466
+ switch (U) {
467
+ case "clear":
468
+ case "delete":
469
+ case "set":
470
+ return T.callable;
471
+ default:
472
+ return R.ReflectAdapter.get(j, U, B);
473
+ }
474
+ }
475
+ });
476
+ }
477
+ }
478
+ const g = Symbol.for("next.mutated.cookies");
479
+ function l(w) {
480
+ const D = w[g];
481
+ return !D || !Array.isArray(D) || D.length === 0 ? [] : D;
482
+ }
483
+ function _(w, D) {
484
+ const j = l(D);
485
+ if (j.length === 0)
486
+ return !1;
487
+ const U = new O.ResponseCookies(w), B = U.getAll();
488
+ for (const X of j)
489
+ U.set(X);
490
+ for (const X of B)
491
+ U.set(X);
492
+ return !0;
493
+ }
494
+ class k {
495
+ static wrap(D, j) {
496
+ const U = new O.ResponseCookies(new Headers());
497
+ for (const t of D.getAll())
498
+ U.set(t);
499
+ let B = [];
500
+ const X = /* @__PURE__ */ new Set(), r = () => {
501
+ const t = v.workAsyncStorage.getStore();
502
+ if (t && (t.pathWasRevalidated = !0), B = U.getAll().filter((y) => X.has(y.name)), j) {
503
+ const y = [];
504
+ for (const a of B) {
505
+ const p = new O.ResponseCookies(new Headers());
506
+ p.set(a), y.push(p.toString());
507
+ }
508
+ j(y);
509
+ }
510
+ }, n = new Proxy(U, {
511
+ get(t, f, y) {
512
+ switch (f) {
513
+ // A special symbol to get the modified cookie values
514
+ case g:
515
+ return B;
516
+ // TODO: Throw error if trying to set a cookie after the response
517
+ // headers have been set.
518
+ case "delete":
519
+ return function(...a) {
520
+ X.add(typeof a[0] == "string" ? a[0] : a[0].name);
521
+ try {
522
+ return t.delete(...a), n;
523
+ } finally {
524
+ r();
525
+ }
526
+ };
527
+ case "set":
528
+ return function(...a) {
529
+ X.add(typeof a[0] == "string" ? a[0] : a[0].name);
530
+ try {
531
+ return t.set(...a), n;
532
+ } finally {
533
+ r();
534
+ }
535
+ };
536
+ default:
537
+ return R.ReflectAdapter.get(t, f, y);
538
+ }
539
+ }
540
+ });
541
+ return n;
542
+ }
543
+ }
544
+ function P(w) {
545
+ const D = new Proxy(w.mutableCookies, {
546
+ get(j, U, B) {
547
+ switch (U) {
548
+ case "delete":
549
+ return function(...X) {
550
+ return V(w), j.delete(...X), D;
551
+ };
552
+ case "set":
553
+ return function(...X) {
554
+ return V(w), j.set(...X), D;
555
+ };
556
+ default:
557
+ return R.ReflectAdapter.get(j, U, B);
558
+ }
559
+ }
560
+ });
561
+ return D;
562
+ }
563
+ function N(w) {
564
+ return w.phase === "action";
565
+ }
566
+ function V(w, D) {
567
+ if (!N(w))
568
+ throw new T();
569
+ }
570
+ function q(w) {
571
+ const D = new O.RequestCookies(new Headers());
572
+ for (const j of w.getAll())
573
+ D.set(j);
574
+ return D;
575
+ }
576
+ })(Ie)), Ie;
577
+ }
578
+ var Xe = {}, Be = {}, vt;
579
+ function rr() {
580
+ return vt || (vt = 1, (function(E) {
581
+ Object.defineProperty(E, "__esModule", {
582
+ value: !0
583
+ }), Object.defineProperty(E, "workUnitAsyncStorageInstance", {
584
+ enumerable: !0,
585
+ get: function() {
586
+ return O;
587
+ }
588
+ });
589
+ const O = (0, nt().createAsyncLocalStorage)();
590
+ })(Be)), Be;
591
+ }
592
+ var ke = { exports: {} }, Rt;
593
+ function nr() {
594
+ return Rt || (Rt = 1, (function(E, c) {
595
+ Object.defineProperty(c, "__esModule", {
596
+ value: !0
597
+ });
598
+ function O(X, r) {
599
+ for (var n in r) Object.defineProperty(X, n, {
600
+ enumerable: !0,
601
+ get: r[n]
602
+ });
603
+ }
604
+ O(c, {
605
+ ACTION_HEADER: function() {
606
+ return v;
607
+ },
608
+ FLIGHT_HEADERS: function() {
609
+ return N;
610
+ },
611
+ NEXT_ACTION_NOT_FOUND_HEADER: function() {
612
+ return B;
613
+ },
614
+ NEXT_DID_POSTPONE_HEADER: function() {
615
+ return w;
616
+ },
617
+ NEXT_HMR_REFRESH_HASH_COOKIE: function() {
618
+ return _;
619
+ },
620
+ NEXT_HMR_REFRESH_HEADER: function() {
621
+ return l;
622
+ },
623
+ NEXT_IS_PRERENDER_HEADER: function() {
624
+ return U;
625
+ },
626
+ NEXT_REWRITTEN_PATH_HEADER: function() {
627
+ return D;
628
+ },
629
+ NEXT_REWRITTEN_QUERY_HEADER: function() {
630
+ return j;
631
+ },
632
+ NEXT_ROUTER_PREFETCH_HEADER: function() {
633
+ return i;
634
+ },
635
+ NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
636
+ return g;
637
+ },
638
+ NEXT_ROUTER_STALE_TIME_HEADER: function() {
639
+ return q;
640
+ },
641
+ NEXT_ROUTER_STATE_TREE_HEADER: function() {
642
+ return T;
643
+ },
644
+ NEXT_RSC_UNION_QUERY: function() {
645
+ return V;
646
+ },
647
+ NEXT_URL: function() {
648
+ return k;
649
+ },
650
+ RSC_CONTENT_TYPE_HEADER: function() {
651
+ return P;
652
+ },
653
+ RSC_HEADER: function() {
654
+ return R;
655
+ }
656
+ });
657
+ const R = "rsc", v = "next-action", T = "next-router-state-tree", i = "next-router-prefetch", g = "next-router-segment-prefetch", l = "next-hmr-refresh", _ = "__next_hmr_refresh_hash__", k = "next-url", P = "text/x-component", N = [
658
+ R,
659
+ T,
660
+ i,
661
+ l,
662
+ g
663
+ ], V = "_rsc", q = "x-nextjs-stale-time", w = "x-nextjs-postponed", D = "x-nextjs-rewritten-path", j = "x-nextjs-rewritten-query", U = "x-nextjs-prerender", B = "x-nextjs-action-not-found";
664
+ (typeof c.default == "function" || typeof c.default == "object" && c.default !== null) && typeof c.default.__esModule > "u" && (Object.defineProperty(c.default, "__esModule", { value: !0 }), Object.assign(c.default, c), E.exports = c.default);
665
+ })(ke, ke.exports)), ke.exports;
666
+ }
667
+ var $e = {}, wt;
668
+ function ge() {
669
+ return wt || (wt = 1, (function(E) {
670
+ Object.defineProperty(E, "__esModule", {
671
+ value: !0
672
+ }), Object.defineProperty(E, "InvariantError", {
673
+ enumerable: !0,
674
+ get: function() {
675
+ return c;
676
+ }
677
+ });
678
+ class c extends Error {
679
+ constructor(R, v) {
680
+ super("Invariant: " + (R.endsWith(".") ? R : R + ".") + " This is a bug in Next.js.", v), this.name = "InvariantError";
681
+ }
682
+ }
683
+ })($e)), $e;
684
+ }
685
+ var Ot;
686
+ function Ne() {
687
+ return Ot || (Ot = 1, (function(E) {
688
+ Object.defineProperty(E, "__esModule", {
689
+ value: !0
690
+ });
691
+ function c(w, D) {
692
+ for (var j in D) Object.defineProperty(w, j, {
693
+ enumerable: !0,
694
+ get: D[j]
695
+ });
696
+ }
697
+ c(E, {
698
+ getCacheSignal: function() {
699
+ return V;
700
+ },
701
+ getDraftModeProviderForCacheScope: function() {
702
+ return N;
703
+ },
704
+ getHmrRefreshHash: function() {
705
+ return _;
706
+ },
707
+ getPrerenderResumeDataCache: function() {
708
+ return g;
709
+ },
710
+ getRenderResumeDataCache: function() {
711
+ return l;
712
+ },
713
+ getRuntimeStagePromise: function() {
714
+ return q;
715
+ },
716
+ getServerComponentsHmrCache: function() {
717
+ return P;
718
+ },
719
+ isHmrRefresh: function() {
720
+ return k;
721
+ },
722
+ throwForMissingRequestStore: function() {
723
+ return T;
724
+ },
725
+ throwInvariantForMissingStore: function() {
726
+ return i;
727
+ },
728
+ workUnitAsyncStorage: function() {
729
+ return O.workUnitAsyncStorageInstance;
730
+ }
731
+ });
732
+ const O = rr(), R = nr(), v = ge();
733
+ function T(w) {
734
+ throw Object.defineProperty(new Error(`\`${w}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
735
+ value: "E251",
736
+ enumerable: !1,
737
+ configurable: !0
738
+ });
739
+ }
740
+ function i() {
741
+ throw Object.defineProperty(new v.InvariantError("Expected workUnitAsyncStorage to have a store."), "__NEXT_ERROR_CODE", {
742
+ value: "E696",
743
+ enumerable: !1,
744
+ configurable: !0
745
+ });
746
+ }
747
+ function g(w) {
748
+ switch (w.type) {
749
+ case "prerender":
750
+ case "prerender-runtime":
751
+ case "prerender-ppr":
752
+ return w.prerenderResumeDataCache;
753
+ case "prerender-client":
754
+ return w.prerenderResumeDataCache;
755
+ case "prerender-legacy":
756
+ case "request":
757
+ case "cache":
758
+ case "private-cache":
759
+ case "unstable-cache":
760
+ return null;
761
+ default:
762
+ return w;
763
+ }
764
+ }
765
+ function l(w) {
766
+ switch (w.type) {
767
+ case "request":
768
+ return w.renderResumeDataCache;
769
+ case "prerender":
770
+ case "prerender-runtime":
771
+ case "prerender-client":
772
+ if (w.renderResumeDataCache)
773
+ return w.renderResumeDataCache;
774
+ // fallthrough
775
+ case "prerender-ppr":
776
+ return w.prerenderResumeDataCache;
777
+ case "cache":
778
+ case "private-cache":
779
+ case "unstable-cache":
780
+ case "prerender-legacy":
781
+ return null;
782
+ default:
783
+ return w;
784
+ }
785
+ }
786
+ function _(w, D) {
787
+ if (w.dev)
788
+ switch (D.type) {
789
+ case "cache":
790
+ case "private-cache":
791
+ case "prerender":
792
+ case "prerender-runtime":
793
+ return D.hmrRefreshHash;
794
+ case "request":
795
+ var j;
796
+ return (j = D.cookies.get(R.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : j.value;
797
+ }
798
+ }
799
+ function k(w, D) {
800
+ if (w.dev)
801
+ switch (D.type) {
802
+ case "cache":
803
+ case "private-cache":
804
+ case "request":
805
+ return D.isHmrRefresh ?? !1;
806
+ }
807
+ return !1;
808
+ }
809
+ function P(w, D) {
810
+ if (w.dev)
811
+ switch (D.type) {
812
+ case "cache":
813
+ case "private-cache":
814
+ case "request":
815
+ return D.serverComponentsHmrCache;
816
+ }
817
+ }
818
+ function N(w, D) {
819
+ if (w.isDraftMode)
820
+ switch (D.type) {
821
+ case "cache":
822
+ case "private-cache":
823
+ case "unstable-cache":
824
+ case "prerender-runtime":
825
+ case "request":
826
+ return D.draftMode;
827
+ }
828
+ }
829
+ function V(w) {
830
+ switch (w.type) {
831
+ case "prerender":
832
+ case "prerender-client":
833
+ case "prerender-runtime":
834
+ return w.cacheSignal;
835
+ case "prerender-ppr":
836
+ case "prerender-legacy":
837
+ case "request":
838
+ case "cache":
839
+ case "private-cache":
840
+ case "unstable-cache":
841
+ return null;
842
+ default:
843
+ return w;
844
+ }
845
+ }
846
+ function q(w) {
847
+ switch (w.type) {
848
+ case "prerender-runtime":
849
+ case "private-cache":
850
+ return w.runtimeStagePromise;
851
+ case "prerender":
852
+ case "prerender-client":
853
+ case "prerender-ppr":
854
+ case "prerender-legacy":
855
+ case "request":
856
+ case "cache":
857
+ case "unstable-cache":
858
+ return null;
859
+ default:
860
+ return w;
861
+ }
862
+ }
863
+ })(Xe)), Xe;
864
+ }
865
+ var Ye = {}, De = { exports: {} }, x = {};
866
+ /**
867
+ * @license React
868
+ * react.production.js
869
+ *
870
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
871
+ *
872
+ * This source code is licensed under the MIT license found in the
873
+ * LICENSE file in the root directory of this source tree.
874
+ */
875
+ var At;
876
+ function or() {
877
+ if (At) return x;
878
+ At = 1;
879
+ var E = Symbol.for("react.transitional.element"), c = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), i = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), _ = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), P = Symbol.for("react.activity"), N = Symbol.iterator;
880
+ function V(o) {
881
+ return o === null || typeof o != "object" ? null : (o = N && o[N] || o["@@iterator"], typeof o == "function" ? o : null);
882
+ }
883
+ var q = {
884
+ isMounted: function() {
885
+ return !1;
886
+ },
887
+ enqueueForceUpdate: function() {
888
+ },
889
+ enqueueReplaceState: function() {
890
+ },
891
+ enqueueSetState: function() {
892
+ }
893
+ }, w = Object.assign, D = {};
894
+ function j(o, h, I) {
895
+ this.props = o, this.context = h, this.refs = D, this.updater = I || q;
896
+ }
897
+ j.prototype.isReactComponent = {}, j.prototype.setState = function(o, h) {
898
+ if (typeof o != "object" && typeof o != "function" && o != null)
899
+ throw Error(
900
+ "takes an object of state variables to update or a function which returns an object of state variables."
901
+ );
902
+ this.updater.enqueueSetState(this, o, h, "setState");
903
+ }, j.prototype.forceUpdate = function(o) {
904
+ this.updater.enqueueForceUpdate(this, o, "forceUpdate");
905
+ };
906
+ function U() {
907
+ }
908
+ U.prototype = j.prototype;
909
+ function B(o, h, I) {
910
+ this.props = o, this.context = h, this.refs = D, this.updater = I || q;
911
+ }
912
+ var X = B.prototype = new U();
913
+ X.constructor = B, w(X, j.prototype), X.isPureReactComponent = !0;
914
+ var r = Array.isArray;
915
+ function n() {
916
+ }
917
+ var t = { H: null, A: null, T: null, S: null }, f = Object.prototype.hasOwnProperty;
918
+ function y(o, h, I) {
919
+ var M = I.ref;
920
+ return {
921
+ $$typeof: E,
922
+ type: o,
923
+ key: h,
924
+ ref: M !== void 0 ? M : null,
925
+ props: I
926
+ };
927
+ }
928
+ function a(o, h) {
929
+ return y(o.type, h, o.props);
930
+ }
931
+ function p(o) {
932
+ return typeof o == "object" && o !== null && o.$$typeof === E;
933
+ }
934
+ function b(o) {
935
+ var h = { "=": "=0", ":": "=2" };
936
+ return "$" + o.replace(/[=:]/g, function(I) {
937
+ return h[I];
938
+ });
939
+ }
940
+ var K = /\/+/g;
941
+ function z(o, h) {
942
+ return typeof o == "object" && o !== null && o.key != null ? b("" + o.key) : h.toString(36);
943
+ }
944
+ function H(o) {
945
+ switch (o.status) {
946
+ case "fulfilled":
947
+ return o.value;
948
+ case "rejected":
949
+ throw o.reason;
950
+ default:
951
+ switch (typeof o.status == "string" ? o.then(n, n) : (o.status = "pending", o.then(
952
+ function(h) {
953
+ o.status === "pending" && (o.status = "fulfilled", o.value = h);
954
+ },
955
+ function(h) {
956
+ o.status === "pending" && (o.status = "rejected", o.reason = h);
957
+ }
958
+ )), o.status) {
959
+ case "fulfilled":
960
+ return o.value;
961
+ case "rejected":
962
+ throw o.reason;
963
+ }
964
+ }
965
+ throw o;
966
+ }
967
+ function J(o, h, I, M, G) {
968
+ var F = typeof o;
969
+ (F === "undefined" || F === "boolean") && (o = null);
970
+ var Q = !1;
971
+ if (o === null) Q = !0;
972
+ else
973
+ switch (F) {
974
+ case "bigint":
975
+ case "string":
976
+ case "number":
977
+ Q = !0;
978
+ break;
979
+ case "object":
980
+ switch (o.$$typeof) {
981
+ case E:
982
+ case c:
983
+ Q = !0;
984
+ break;
985
+ case k:
986
+ return Q = o._init, J(
987
+ Q(o._payload),
988
+ h,
989
+ I,
990
+ M,
991
+ G
992
+ );
993
+ }
994
+ }
995
+ if (Q)
996
+ return G = G(o), Q = M === "" ? "." + z(o, 0) : M, r(G) ? (I = "", Q != null && (I = Q.replace(K, "$&/") + "/"), J(G, h, I, "", function(ie) {
997
+ return ie;
998
+ })) : G != null && (p(G) && (G = a(
999
+ G,
1000
+ I + (G.key == null || o && o.key === G.key ? "" : ("" + G.key).replace(
1001
+ K,
1002
+ "$&/"
1003
+ ) + "/") + Q
1004
+ )), h.push(G)), 1;
1005
+ Q = 0;
1006
+ var oe = M === "" ? "." : M + ":";
1007
+ if (r(o))
1008
+ for (var ee = 0; ee < o.length; ee++)
1009
+ M = o[ee], F = oe + z(M, ee), Q += J(
1010
+ M,
1011
+ h,
1012
+ I,
1013
+ F,
1014
+ G
1015
+ );
1016
+ else if (ee = V(o), typeof ee == "function")
1017
+ for (o = ee.call(o), ee = 0; !(M = o.next()).done; )
1018
+ M = M.value, F = oe + z(M, ee++), Q += J(
1019
+ M,
1020
+ h,
1021
+ I,
1022
+ F,
1023
+ G
1024
+ );
1025
+ else if (F === "object") {
1026
+ if (typeof o.then == "function")
1027
+ return J(
1028
+ H(o),
1029
+ h,
1030
+ I,
1031
+ M,
1032
+ G
1033
+ );
1034
+ throw h = String(o), Error(
1035
+ "Objects are not valid as a React child (found: " + (h === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : h) + "). If you meant to render a collection of children, use an array instead."
1036
+ );
1037
+ }
1038
+ return Q;
1039
+ }
1040
+ function re(o, h, I) {
1041
+ if (o == null) return o;
1042
+ var M = [], G = 0;
1043
+ return J(o, M, "", "", function(F) {
1044
+ return h.call(I, F, G++);
1045
+ }), M;
1046
+ }
1047
+ function ce(o) {
1048
+ if (o._status === -1) {
1049
+ var h = o._result;
1050
+ h = h(), h.then(
1051
+ function(I) {
1052
+ (o._status === 0 || o._status === -1) && (o._status = 1, o._result = I);
1053
+ },
1054
+ function(I) {
1055
+ (o._status === 0 || o._status === -1) && (o._status = 2, o._result = I);
1056
+ }
1057
+ ), o._status === -1 && (o._status = 0, o._result = h);
1058
+ }
1059
+ if (o._status === 1) return o._result.default;
1060
+ throw o._result;
1061
+ }
1062
+ var ae = typeof reportError == "function" ? reportError : function(o) {
1063
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1064
+ var h = new window.ErrorEvent("error", {
1065
+ bubbles: !0,
1066
+ cancelable: !0,
1067
+ message: typeof o == "object" && o !== null && typeof o.message == "string" ? String(o.message) : String(o),
1068
+ error: o
1069
+ });
1070
+ if (!window.dispatchEvent(h)) return;
1071
+ } else if (typeof process == "object" && typeof process.emit == "function") {
1072
+ process.emit("uncaughtException", o);
1073
+ return;
1074
+ }
1075
+ console.error(o);
1076
+ }, ue = {
1077
+ map: re,
1078
+ forEach: function(o, h, I) {
1079
+ re(
1080
+ o,
1081
+ function() {
1082
+ h.apply(this, arguments);
1083
+ },
1084
+ I
1085
+ );
1086
+ },
1087
+ count: function(o) {
1088
+ var h = 0;
1089
+ return re(o, function() {
1090
+ h++;
1091
+ }), h;
1092
+ },
1093
+ toArray: function(o) {
1094
+ return re(o, function(h) {
1095
+ return h;
1096
+ }) || [];
1097
+ },
1098
+ only: function(o) {
1099
+ if (!p(o))
1100
+ throw Error(
1101
+ "React.Children.only expected to receive a single React element child."
1102
+ );
1103
+ return o;
1104
+ }
1105
+ };
1106
+ return x.Activity = P, x.Children = ue, x.Component = j, x.Fragment = O, x.Profiler = v, x.PureComponent = B, x.StrictMode = R, x.Suspense = l, x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = t, x.__COMPILER_RUNTIME = {
1107
+ __proto__: null,
1108
+ c: function(o) {
1109
+ return t.H.useMemoCache(o);
1110
+ }
1111
+ }, x.cache = function(o) {
1112
+ return function() {
1113
+ return o.apply(null, arguments);
1114
+ };
1115
+ }, x.cacheSignal = function() {
1116
+ return null;
1117
+ }, x.cloneElement = function(o, h, I) {
1118
+ if (o == null)
1119
+ throw Error(
1120
+ "The argument must be a React element, but you passed " + o + "."
1121
+ );
1122
+ var M = w({}, o.props), G = o.key;
1123
+ if (h != null)
1124
+ for (F in h.key !== void 0 && (G = "" + h.key), h)
1125
+ !f.call(h, F) || F === "key" || F === "__self" || F === "__source" || F === "ref" && h.ref === void 0 || (M[F] = h[F]);
1126
+ var F = arguments.length - 2;
1127
+ if (F === 1) M.children = I;
1128
+ else if (1 < F) {
1129
+ for (var Q = Array(F), oe = 0; oe < F; oe++)
1130
+ Q[oe] = arguments[oe + 2];
1131
+ M.children = Q;
1132
+ }
1133
+ return y(o.type, G, M);
1134
+ }, x.createContext = function(o) {
1135
+ return o = {
1136
+ $$typeof: i,
1137
+ _currentValue: o,
1138
+ _currentValue2: o,
1139
+ _threadCount: 0,
1140
+ Provider: null,
1141
+ Consumer: null
1142
+ }, o.Provider = o, o.Consumer = {
1143
+ $$typeof: T,
1144
+ _context: o
1145
+ }, o;
1146
+ }, x.createElement = function(o, h, I) {
1147
+ var M, G = {}, F = null;
1148
+ if (h != null)
1149
+ for (M in h.key !== void 0 && (F = "" + h.key), h)
1150
+ f.call(h, M) && M !== "key" && M !== "__self" && M !== "__source" && (G[M] = h[M]);
1151
+ var Q = arguments.length - 2;
1152
+ if (Q === 1) G.children = I;
1153
+ else if (1 < Q) {
1154
+ for (var oe = Array(Q), ee = 0; ee < Q; ee++)
1155
+ oe[ee] = arguments[ee + 2];
1156
+ G.children = oe;
1157
+ }
1158
+ if (o && o.defaultProps)
1159
+ for (M in Q = o.defaultProps, Q)
1160
+ G[M] === void 0 && (G[M] = Q[M]);
1161
+ return y(o, F, G);
1162
+ }, x.createRef = function() {
1163
+ return { current: null };
1164
+ }, x.forwardRef = function(o) {
1165
+ return { $$typeof: g, render: o };
1166
+ }, x.isValidElement = p, x.lazy = function(o) {
1167
+ return {
1168
+ $$typeof: k,
1169
+ _payload: { _status: -1, _result: o },
1170
+ _init: ce
1171
+ };
1172
+ }, x.memo = function(o, h) {
1173
+ return {
1174
+ $$typeof: _,
1175
+ type: o,
1176
+ compare: h === void 0 ? null : h
1177
+ };
1178
+ }, x.startTransition = function(o) {
1179
+ var h = t.T, I = {};
1180
+ t.T = I;
1181
+ try {
1182
+ var M = o(), G = t.S;
1183
+ G !== null && G(I, M), typeof M == "object" && M !== null && typeof M.then == "function" && M.then(n, ae);
1184
+ } catch (F) {
1185
+ ae(F);
1186
+ } finally {
1187
+ h !== null && I.types !== null && (h.types = I.types), t.T = h;
1188
+ }
1189
+ }, x.unstable_useCacheRefresh = function() {
1190
+ return t.H.useCacheRefresh();
1191
+ }, x.use = function(o) {
1192
+ return t.H.use(o);
1193
+ }, x.useActionState = function(o, h, I) {
1194
+ return t.H.useActionState(o, h, I);
1195
+ }, x.useCallback = function(o, h) {
1196
+ return t.H.useCallback(o, h);
1197
+ }, x.useContext = function(o) {
1198
+ return t.H.useContext(o);
1199
+ }, x.useDebugValue = function() {
1200
+ }, x.useDeferredValue = function(o, h) {
1201
+ return t.H.useDeferredValue(o, h);
1202
+ }, x.useEffect = function(o, h) {
1203
+ return t.H.useEffect(o, h);
1204
+ }, x.useEffectEvent = function(o) {
1205
+ return t.H.useEffectEvent(o);
1206
+ }, x.useId = function() {
1207
+ return t.H.useId();
1208
+ }, x.useImperativeHandle = function(o, h, I) {
1209
+ return t.H.useImperativeHandle(o, h, I);
1210
+ }, x.useInsertionEffect = function(o, h) {
1211
+ return t.H.useInsertionEffect(o, h);
1212
+ }, x.useLayoutEffect = function(o, h) {
1213
+ return t.H.useLayoutEffect(o, h);
1214
+ }, x.useMemo = function(o, h) {
1215
+ return t.H.useMemo(o, h);
1216
+ }, x.useOptimistic = function(o, h) {
1217
+ return t.H.useOptimistic(o, h);
1218
+ }, x.useReducer = function(o, h, I) {
1219
+ return t.H.useReducer(o, h, I);
1220
+ }, x.useRef = function(o) {
1221
+ return t.H.useRef(o);
1222
+ }, x.useState = function(o) {
1223
+ return t.H.useState(o);
1224
+ }, x.useSyncExternalStore = function(o, h, I) {
1225
+ return t.H.useSyncExternalStore(
1226
+ o,
1227
+ h,
1228
+ I
1229
+ );
1230
+ }, x.useTransition = function() {
1231
+ return t.H.useTransition();
1232
+ }, x.version = "19.2.3", x;
1233
+ }
1234
+ var _e = { exports: {} };
1235
+ /**
1236
+ * @license React
1237
+ * react.development.js
1238
+ *
1239
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1240
+ *
1241
+ * This source code is licensed under the MIT license found in the
1242
+ * LICENSE file in the root directory of this source tree.
1243
+ */
1244
+ _e.exports;
1245
+ var Tt;
1246
+ function sr() {
1247
+ return Tt || (Tt = 1, (function(E, c) {
1248
+ process.env.NODE_ENV !== "production" && (function() {
1249
+ function O(e, s) {
1250
+ Object.defineProperty(T.prototype, e, {
1251
+ get: function() {
1252
+ console.warn(
1253
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
1254
+ s[0],
1255
+ s[1]
1256
+ );
1257
+ }
1258
+ });
1259
+ }
1260
+ function R(e) {
1261
+ return e === null || typeof e != "object" ? null : (e = Re && e[Re] || e["@@iterator"], typeof e == "function" ? e : null);
1262
+ }
1263
+ function v(e, s) {
1264
+ e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
1265
+ var m = e + "." + s;
1266
+ we[m] || (console.error(
1267
+ "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
1268
+ s,
1269
+ e
1270
+ ), we[m] = !0);
1271
+ }
1272
+ function T(e, s, m) {
1273
+ this.props = e, this.context = s, this.refs = pe, this.updater = m || Oe;
1274
+ }
1275
+ function i() {
1276
+ }
1277
+ function g(e, s, m) {
1278
+ this.props = e, this.context = s, this.refs = pe, this.updater = m || Oe;
1279
+ }
1280
+ function l() {
1281
+ }
1282
+ function _(e) {
1283
+ return "" + e;
1284
+ }
1285
+ function k(e) {
1286
+ try {
1287
+ _(e);
1288
+ var s = !1;
1289
+ } catch {
1290
+ s = !0;
1291
+ }
1292
+ if (s) {
1293
+ s = console;
1294
+ var m = s.error, A = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
1295
+ return m.call(
1296
+ s,
1297
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1298
+ A
1299
+ ), _(e);
1300
+ }
1301
+ }
1302
+ function P(e) {
1303
+ if (e == null) return null;
1304
+ if (typeof e == "function")
1305
+ return e.$$typeof === S ? null : e.displayName || e.name || null;
1306
+ if (typeof e == "string") return e;
1307
+ switch (e) {
1308
+ case o:
1309
+ return "Fragment";
1310
+ case I:
1311
+ return "Profiler";
1312
+ case h:
1313
+ return "StrictMode";
1314
+ case Q:
1315
+ return "Suspense";
1316
+ case oe:
1317
+ return "SuspenseList";
1318
+ case ve:
1319
+ return "Activity";
1320
+ }
1321
+ if (typeof e == "object")
1322
+ switch (typeof e.tag == "number" && console.error(
1323
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1324
+ ), e.$$typeof) {
1325
+ case ue:
1326
+ return "Portal";
1327
+ case G:
1328
+ return e.displayName || "Context";
1329
+ case M:
1330
+ return (e._context.displayName || "Context") + ".Consumer";
1331
+ case F:
1332
+ var s = e.render;
1333
+ return e = e.displayName, e || (e = s.displayName || s.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
1334
+ case ee:
1335
+ return s = e.displayName || null, s !== null ? s : P(e.type) || "Memo";
1336
+ case ie:
1337
+ s = e._payload, e = e._init;
1338
+ try {
1339
+ return P(e(s));
1340
+ } catch {
1341
+ }
1342
+ }
1343
+ return null;
1344
+ }
1345
+ function N(e) {
1346
+ if (e === o) return "<>";
1347
+ if (typeof e == "object" && e !== null && e.$$typeof === ie)
1348
+ return "<...>";
1349
+ try {
1350
+ var s = P(e);
1351
+ return s ? "<" + s + ">" : "<...>";
1352
+ } catch {
1353
+ return "<...>";
1354
+ }
1355
+ }
1356
+ function V() {
1357
+ var e = d.A;
1358
+ return e === null ? null : e.getOwner();
1359
+ }
1360
+ function q() {
1361
+ return Error("react-stack-top-frame");
1362
+ }
1363
+ function w(e) {
1364
+ if (L.call(e, "key")) {
1365
+ var s = Object.getOwnPropertyDescriptor(e, "key").get;
1366
+ if (s && s.isReactWarning) return !1;
1367
+ }
1368
+ return e.key !== void 0;
1369
+ }
1370
+ function D(e, s) {
1371
+ function m() {
1372
+ te || (te = !0, console.error(
1373
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
1374
+ s
1375
+ ));
1376
+ }
1377
+ m.isReactWarning = !0, Object.defineProperty(e, "key", {
1378
+ get: m,
1379
+ configurable: !0
1380
+ });
1381
+ }
1382
+ function j() {
1383
+ var e = P(this.type);
1384
+ return it[e] || (it[e] = !0, console.error(
1385
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
1386
+ )), e = this.props.ref, e !== void 0 ? e : null;
1387
+ }
1388
+ function U(e, s, m, A, C, $) {
1389
+ var W = m.ref;
1390
+ return e = {
1391
+ $$typeof: ae,
1392
+ type: e,
1393
+ key: s,
1394
+ props: m,
1395
+ _owner: A
1396
+ }, (W !== void 0 ? W : null) !== null ? Object.defineProperty(e, "ref", {
1397
+ enumerable: !1,
1398
+ get: j
1399
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
1400
+ configurable: !1,
1401
+ enumerable: !1,
1402
+ writable: !0,
1403
+ value: 0
1404
+ }), Object.defineProperty(e, "_debugInfo", {
1405
+ configurable: !1,
1406
+ enumerable: !1,
1407
+ writable: !0,
1408
+ value: null
1409
+ }), Object.defineProperty(e, "_debugStack", {
1410
+ configurable: !1,
1411
+ enumerable: !1,
1412
+ writable: !0,
1413
+ value: C
1414
+ }), Object.defineProperty(e, "_debugTask", {
1415
+ configurable: !1,
1416
+ enumerable: !1,
1417
+ writable: !0,
1418
+ value: $
1419
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
1420
+ }
1421
+ function B(e, s) {
1422
+ return s = U(
1423
+ e.type,
1424
+ s,
1425
+ e.props,
1426
+ e._owner,
1427
+ e._debugStack,
1428
+ e._debugTask
1429
+ ), e._store && (s._store.validated = e._store.validated), s;
1430
+ }
1431
+ function X(e) {
1432
+ r(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === ie && (e._payload.status === "fulfilled" ? r(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
1433
+ }
1434
+ function r(e) {
1435
+ return typeof e == "object" && e !== null && e.$$typeof === ae;
1436
+ }
1437
+ function n(e) {
1438
+ var s = { "=": "=0", ":": "=2" };
1439
+ return "$" + e.replace(/[=:]/g, function(m) {
1440
+ return s[m];
1441
+ });
1442
+ }
1443
+ function t(e, s) {
1444
+ return typeof e == "object" && e !== null && e.key != null ? (k(e.key), n("" + e.key)) : s.toString(36);
1445
+ }
1446
+ function f(e) {
1447
+ switch (e.status) {
1448
+ case "fulfilled":
1449
+ return e.value;
1450
+ case "rejected":
1451
+ throw e.reason;
1452
+ default:
1453
+ switch (typeof e.status == "string" ? e.then(l, l) : (e.status = "pending", e.then(
1454
+ function(s) {
1455
+ e.status === "pending" && (e.status = "fulfilled", e.value = s);
1456
+ },
1457
+ function(s) {
1458
+ e.status === "pending" && (e.status = "rejected", e.reason = s);
1459
+ }
1460
+ )), e.status) {
1461
+ case "fulfilled":
1462
+ return e.value;
1463
+ case "rejected":
1464
+ throw e.reason;
1465
+ }
1466
+ }
1467
+ throw e;
1468
+ }
1469
+ function y(e, s, m, A, C) {
1470
+ var $ = typeof e;
1471
+ ($ === "undefined" || $ === "boolean") && (e = null);
1472
+ var W = !1;
1473
+ if (e === null) W = !0;
1474
+ else
1475
+ switch ($) {
1476
+ case "bigint":
1477
+ case "string":
1478
+ case "number":
1479
+ W = !0;
1480
+ break;
1481
+ case "object":
1482
+ switch (e.$$typeof) {
1483
+ case ae:
1484
+ case ue:
1485
+ W = !0;
1486
+ break;
1487
+ case ie:
1488
+ return W = e._init, y(
1489
+ W(e._payload),
1490
+ s,
1491
+ m,
1492
+ A,
1493
+ C
1494
+ );
1495
+ }
1496
+ }
1497
+ if (W) {
1498
+ W = e, C = C(W);
1499
+ var Z = A === "" ? "." + t(W, 0) : A;
1500
+ return u(C) ? (m = "", Z != null && (m = Z.replace(ft, "$&/") + "/"), y(C, s, m, "", function(fe) {
1501
+ return fe;
1502
+ })) : C != null && (r(C) && (C.key != null && (W && W.key === C.key || k(C.key)), m = B(
1503
+ C,
1504
+ m + (C.key == null || W && W.key === C.key ? "" : ("" + C.key).replace(
1505
+ ft,
1506
+ "$&/"
1507
+ ) + "/") + Z
1508
+ ), A !== "" && W != null && r(W) && W.key == null && W._store && !W._store.validated && (m._store.validated = 2), C = m), s.push(C)), 1;
1509
+ }
1510
+ if (W = 0, Z = A === "" ? "." : A + ":", u(e))
1511
+ for (var Y = 0; Y < e.length; Y++)
1512
+ A = e[Y], $ = Z + t(A, Y), W += y(
1513
+ A,
1514
+ s,
1515
+ m,
1516
+ $,
1517
+ C
1518
+ );
1519
+ else if (Y = R(e), typeof Y == "function")
1520
+ for (Y === e.entries && (ut || console.warn(
1521
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
1522
+ ), ut = !0), e = Y.call(e), Y = 0; !(A = e.next()).done; )
1523
+ A = A.value, $ = Z + t(A, Y++), W += y(
1524
+ A,
1525
+ s,
1526
+ m,
1527
+ $,
1528
+ C
1529
+ );
1530
+ else if ($ === "object") {
1531
+ if (typeof e.then == "function")
1532
+ return y(
1533
+ f(e),
1534
+ s,
1535
+ m,
1536
+ A,
1537
+ C
1538
+ );
1539
+ throw s = String(e), Error(
1540
+ "Objects are not valid as a React child (found: " + (s === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : s) + "). If you meant to render a collection of children, use an array instead."
1541
+ );
1542
+ }
1543
+ return W;
1544
+ }
1545
+ function a(e, s, m) {
1546
+ if (e == null) return e;
1547
+ var A = [], C = 0;
1548
+ return y(e, A, "", "", function($) {
1549
+ return s.call(m, $, C++);
1550
+ }), A;
1551
+ }
1552
+ function p(e) {
1553
+ if (e._status === -1) {
1554
+ var s = e._ioInfo;
1555
+ s != null && (s.start = s.end = performance.now()), s = e._result;
1556
+ var m = s();
1557
+ if (m.then(
1558
+ function(C) {
1559
+ if (e._status === 0 || e._status === -1) {
1560
+ e._status = 1, e._result = C;
1561
+ var $ = e._ioInfo;
1562
+ $ != null && ($.end = performance.now()), m.status === void 0 && (m.status = "fulfilled", m.value = C);
1563
+ }
1564
+ },
1565
+ function(C) {
1566
+ if (e._status === 0 || e._status === -1) {
1567
+ e._status = 2, e._result = C;
1568
+ var $ = e._ioInfo;
1569
+ $ != null && ($.end = performance.now()), m.status === void 0 && (m.status = "rejected", m.reason = C);
1570
+ }
1571
+ }
1572
+ ), s = e._ioInfo, s != null) {
1573
+ s.value = m;
1574
+ var A = m.displayName;
1575
+ typeof A == "string" && (s.name = A);
1576
+ }
1577
+ e._status === -1 && (e._status = 0, e._result = m);
1578
+ }
1579
+ if (e._status === 1)
1580
+ return s = e._result, s === void 0 && console.error(
1581
+ `lazy: Expected the result of a dynamic import() call. Instead received: %s
1582
+
1583
+ Your code should look like:
1584
+ const MyComponent = lazy(() => import('./MyComponent'))
1585
+
1586
+ Did you accidentally put curly braces around the import?`,
1587
+ s
1588
+ ), "default" in s || console.error(
1589
+ `lazy: Expected the result of a dynamic import() call. Instead received: %s
1590
+
1591
+ Your code should look like:
1592
+ const MyComponent = lazy(() => import('./MyComponent'))`,
1593
+ s
1594
+ ), s.default;
1595
+ throw e._result;
1596
+ }
1597
+ function b() {
1598
+ var e = d.H;
1599
+ return e === null && console.error(
1600
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1601
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
1602
+ 2. You might be breaking the Rules of Hooks
1603
+ 3. You might have more than one copy of React in the same app
1604
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
1605
+ ), e;
1606
+ }
1607
+ function K() {
1608
+ d.asyncTransitions--;
1609
+ }
1610
+ function z(e) {
1611
+ if (Ae === null)
1612
+ try {
1613
+ var s = ("require" + Math.random()).slice(0, 7);
1614
+ Ae = (E && E[s]).call(
1615
+ E,
1616
+ "timers"
1617
+ ).setImmediate;
1618
+ } catch {
1619
+ Ae = function(A) {
1620
+ dt === !1 && (dt = !0, typeof MessageChannel > "u" && console.error(
1621
+ "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
1622
+ ));
1623
+ var C = new MessageChannel();
1624
+ C.port1.onmessage = A, C.port2.postMessage(void 0);
1625
+ };
1626
+ }
1627
+ return Ae(e);
1628
+ }
1629
+ function H(e) {
1630
+ return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
1631
+ }
1632
+ function J(e, s) {
1633
+ s !== Te - 1 && console.error(
1634
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1635
+ ), Te = s;
1636
+ }
1637
+ function re(e, s, m) {
1638
+ var A = d.actQueue;
1639
+ if (A !== null)
1640
+ if (A.length !== 0)
1641
+ try {
1642
+ ce(A), z(function() {
1643
+ return re(e, s, m);
1644
+ });
1645
+ return;
1646
+ } catch (C) {
1647
+ d.thrownErrors.push(C);
1648
+ }
1649
+ else d.actQueue = null;
1650
+ 0 < d.thrownErrors.length ? (A = H(d.thrownErrors), d.thrownErrors.length = 0, m(A)) : s(e);
1651
+ }
1652
+ function ce(e) {
1653
+ if (!je) {
1654
+ je = !0;
1655
+ var s = 0;
1656
+ try {
1657
+ for (; s < e.length; s++) {
1658
+ var m = e[s];
1659
+ do {
1660
+ d.didUsePromise = !1;
1661
+ var A = m(!1);
1662
+ if (A !== null) {
1663
+ if (d.didUsePromise) {
1664
+ e[s] = m, e.splice(0, s);
1665
+ return;
1666
+ }
1667
+ m = A;
1668
+ } else break;
1669
+ } while (!0);
1670
+ }
1671
+ e.length = 0;
1672
+ } catch (C) {
1673
+ e.splice(0, s + 1), d.thrownErrors.push(C);
1674
+ } finally {
1675
+ je = !1;
1676
+ }
1677
+ }
1678
+ }
1679
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1680
+ var ae = Symbol.for("react.transitional.element"), ue = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), G = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), oe = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), ie = Symbol.for("react.lazy"), ve = Symbol.for("react.activity"), Re = Symbol.iterator, we = {}, Oe = {
1681
+ isMounted: function() {
1682
+ return !1;
1683
+ },
1684
+ enqueueForceUpdate: function(e) {
1685
+ v(e, "forceUpdate");
1686
+ },
1687
+ enqueueReplaceState: function(e) {
1688
+ v(e, "replaceState");
1689
+ },
1690
+ enqueueSetState: function(e) {
1691
+ v(e, "setState");
1692
+ }
1693
+ }, le = Object.assign, pe = {};
1694
+ Object.freeze(pe), T.prototype.isReactComponent = {}, T.prototype.setState = function(e, s) {
1695
+ if (typeof e != "object" && typeof e != "function" && e != null)
1696
+ throw Error(
1697
+ "takes an object of state variables to update or a function which returns an object of state variables."
1698
+ );
1699
+ this.updater.enqueueSetState(this, e, s, "setState");
1700
+ }, T.prototype.forceUpdate = function(e) {
1701
+ this.updater.enqueueForceUpdate(this, e, "forceUpdate");
1702
+ };
1703
+ var se = {
1704
+ isMounted: [
1705
+ "isMounted",
1706
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1707
+ ],
1708
+ replaceState: [
1709
+ "replaceState",
1710
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1711
+ ]
1712
+ };
1713
+ for (he in se)
1714
+ se.hasOwnProperty(he) && O(he, se[he]);
1715
+ i.prototype = T.prototype, se = g.prototype = new i(), se.constructor = g, le(se, T.prototype), se.isPureReactComponent = !0;
1716
+ var u = Array.isArray, S = Symbol.for("react.client.reference"), d = {
1717
+ H: null,
1718
+ A: null,
1719
+ T: null,
1720
+ S: null,
1721
+ actQueue: null,
1722
+ asyncTransitions: 0,
1723
+ isBatchingLegacy: !1,
1724
+ didScheduleLegacyUpdate: !1,
1725
+ didUsePromise: !1,
1726
+ thrownErrors: [],
1727
+ getCurrentStack: null,
1728
+ recentlyCreatedOwnerStacks: 0
1729
+ }, L = Object.prototype.hasOwnProperty, ne = console.createTask ? console.createTask : function() {
1730
+ return null;
1731
+ };
1732
+ se = {
1733
+ react_stack_bottom_frame: function(e) {
1734
+ return e();
1735
+ }
1736
+ };
1737
+ var te, ct, it = {}, Ft = se.react_stack_bottom_frame.bind(
1738
+ se,
1739
+ q
1740
+ )(), Kt = ne(N(q)), ut = !1, ft = /\/+/g, lt = typeof reportError == "function" ? reportError : function(e) {
1741
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1742
+ var s = new window.ErrorEvent("error", {
1743
+ bubbles: !0,
1744
+ cancelable: !0,
1745
+ message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
1746
+ error: e
1747
+ });
1748
+ if (!window.dispatchEvent(s)) return;
1749
+ } else if (typeof process == "object" && typeof process.emit == "function") {
1750
+ process.emit("uncaughtException", e);
1751
+ return;
1752
+ }
1753
+ console.error(e);
1754
+ }, dt = !1, Ae = null, Te = 0, Se = !1, je = !1, pt = typeof queueMicrotask == "function" ? function(e) {
1755
+ queueMicrotask(function() {
1756
+ return queueMicrotask(e);
1757
+ });
1758
+ } : z;
1759
+ se = Object.freeze({
1760
+ __proto__: null,
1761
+ c: function(e) {
1762
+ return b().useMemoCache(e);
1763
+ }
1764
+ });
1765
+ var he = {
1766
+ map: a,
1767
+ forEach: function(e, s, m) {
1768
+ a(
1769
+ e,
1770
+ function() {
1771
+ s.apply(this, arguments);
1772
+ },
1773
+ m
1774
+ );
1775
+ },
1776
+ count: function(e) {
1777
+ var s = 0;
1778
+ return a(e, function() {
1779
+ s++;
1780
+ }), s;
1781
+ },
1782
+ toArray: function(e) {
1783
+ return a(e, function(s) {
1784
+ return s;
1785
+ }) || [];
1786
+ },
1787
+ only: function(e) {
1788
+ if (!r(e))
1789
+ throw Error(
1790
+ "React.Children.only expected to receive a single React element child."
1791
+ );
1792
+ return e;
1793
+ }
1794
+ };
1795
+ c.Activity = ve, c.Children = he, c.Component = T, c.Fragment = o, c.Profiler = I, c.PureComponent = g, c.StrictMode = h, c.Suspense = Q, c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = d, c.__COMPILER_RUNTIME = se, c.act = function(e) {
1796
+ var s = d.actQueue, m = Te;
1797
+ Te++;
1798
+ var A = d.actQueue = s !== null ? s : [], C = !1;
1799
+ try {
1800
+ var $ = e();
1801
+ } catch (Y) {
1802
+ d.thrownErrors.push(Y);
1803
+ }
1804
+ if (0 < d.thrownErrors.length)
1805
+ throw J(s, m), e = H(d.thrownErrors), d.thrownErrors.length = 0, e;
1806
+ if ($ !== null && typeof $ == "object" && typeof $.then == "function") {
1807
+ var W = $;
1808
+ return pt(function() {
1809
+ C || Se || (Se = !0, console.error(
1810
+ "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
1811
+ ));
1812
+ }), {
1813
+ then: function(Y, fe) {
1814
+ C = !0, W.then(
1815
+ function(de) {
1816
+ if (J(s, m), m === 0) {
1817
+ try {
1818
+ ce(A), z(function() {
1819
+ return re(
1820
+ de,
1821
+ Y,
1822
+ fe
1823
+ );
1824
+ });
1825
+ } catch (Vt) {
1826
+ d.thrownErrors.push(Vt);
1827
+ }
1828
+ if (0 < d.thrownErrors.length) {
1829
+ var Qt = H(
1830
+ d.thrownErrors
1831
+ );
1832
+ d.thrownErrors.length = 0, fe(Qt);
1833
+ }
1834
+ } else Y(de);
1835
+ },
1836
+ function(de) {
1837
+ J(s, m), 0 < d.thrownErrors.length && (de = H(
1838
+ d.thrownErrors
1839
+ ), d.thrownErrors.length = 0), fe(de);
1840
+ }
1841
+ );
1842
+ }
1843
+ };
1844
+ }
1845
+ var Z = $;
1846
+ if (J(s, m), m === 0 && (ce(A), A.length !== 0 && pt(function() {
1847
+ C || Se || (Se = !0, console.error(
1848
+ "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1849
+ ));
1850
+ }), d.actQueue = null), 0 < d.thrownErrors.length)
1851
+ throw e = H(d.thrownErrors), d.thrownErrors.length = 0, e;
1852
+ return {
1853
+ then: function(Y, fe) {
1854
+ C = !0, m === 0 ? (d.actQueue = A, z(function() {
1855
+ return re(
1856
+ Z,
1857
+ Y,
1858
+ fe
1859
+ );
1860
+ })) : Y(Z);
1861
+ }
1862
+ };
1863
+ }, c.cache = function(e) {
1864
+ return function() {
1865
+ return e.apply(null, arguments);
1866
+ };
1867
+ }, c.cacheSignal = function() {
1868
+ return null;
1869
+ }, c.captureOwnerStack = function() {
1870
+ var e = d.getCurrentStack;
1871
+ return e === null ? null : e();
1872
+ }, c.cloneElement = function(e, s, m) {
1873
+ if (e == null)
1874
+ throw Error(
1875
+ "The argument must be a React element, but you passed " + e + "."
1876
+ );
1877
+ var A = le({}, e.props), C = e.key, $ = e._owner;
1878
+ if (s != null) {
1879
+ var W;
1880
+ e: {
1881
+ if (L.call(s, "ref") && (W = Object.getOwnPropertyDescriptor(
1882
+ s,
1883
+ "ref"
1884
+ ).get) && W.isReactWarning) {
1885
+ W = !1;
1886
+ break e;
1887
+ }
1888
+ W = s.ref !== void 0;
1889
+ }
1890
+ W && ($ = V()), w(s) && (k(s.key), C = "" + s.key);
1891
+ for (Z in s)
1892
+ !L.call(s, Z) || Z === "key" || Z === "__self" || Z === "__source" || Z === "ref" && s.ref === void 0 || (A[Z] = s[Z]);
1893
+ }
1894
+ var Z = arguments.length - 2;
1895
+ if (Z === 1) A.children = m;
1896
+ else if (1 < Z) {
1897
+ W = Array(Z);
1898
+ for (var Y = 0; Y < Z; Y++)
1899
+ W[Y] = arguments[Y + 2];
1900
+ A.children = W;
1901
+ }
1902
+ for (A = U(
1903
+ e.type,
1904
+ C,
1905
+ A,
1906
+ $,
1907
+ e._debugStack,
1908
+ e._debugTask
1909
+ ), C = 2; C < arguments.length; C++)
1910
+ X(arguments[C]);
1911
+ return A;
1912
+ }, c.createContext = function(e) {
1913
+ return e = {
1914
+ $$typeof: G,
1915
+ _currentValue: e,
1916
+ _currentValue2: e,
1917
+ _threadCount: 0,
1918
+ Provider: null,
1919
+ Consumer: null
1920
+ }, e.Provider = e, e.Consumer = {
1921
+ $$typeof: M,
1922
+ _context: e
1923
+ }, e._currentRenderer = null, e._currentRenderer2 = null, e;
1924
+ }, c.createElement = function(e, s, m) {
1925
+ for (var A = 2; A < arguments.length; A++)
1926
+ X(arguments[A]);
1927
+ A = {};
1928
+ var C = null;
1929
+ if (s != null)
1930
+ for (Y in ct || !("__self" in s) || "key" in s || (ct = !0, console.warn(
1931
+ "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1932
+ )), w(s) && (k(s.key), C = "" + s.key), s)
1933
+ L.call(s, Y) && Y !== "key" && Y !== "__self" && Y !== "__source" && (A[Y] = s[Y]);
1934
+ var $ = arguments.length - 2;
1935
+ if ($ === 1) A.children = m;
1936
+ else if (1 < $) {
1937
+ for (var W = Array($), Z = 0; Z < $; Z++)
1938
+ W[Z] = arguments[Z + 2];
1939
+ Object.freeze && Object.freeze(W), A.children = W;
1940
+ }
1941
+ if (e && e.defaultProps)
1942
+ for (Y in $ = e.defaultProps, $)
1943
+ A[Y] === void 0 && (A[Y] = $[Y]);
1944
+ C && D(
1945
+ A,
1946
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
1947
+ );
1948
+ var Y = 1e4 > d.recentlyCreatedOwnerStacks++;
1949
+ return U(
1950
+ e,
1951
+ C,
1952
+ A,
1953
+ V(),
1954
+ Y ? Error("react-stack-top-frame") : Ft,
1955
+ Y ? ne(N(e)) : Kt
1956
+ );
1957
+ }, c.createRef = function() {
1958
+ var e = { current: null };
1959
+ return Object.seal(e), e;
1960
+ }, c.forwardRef = function(e) {
1961
+ e != null && e.$$typeof === ee ? console.error(
1962
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1963
+ ) : typeof e != "function" ? console.error(
1964
+ "forwardRef requires a render function but was given %s.",
1965
+ e === null ? "null" : typeof e
1966
+ ) : e.length !== 0 && e.length !== 2 && console.error(
1967
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1968
+ e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1969
+ ), e != null && e.defaultProps != null && console.error(
1970
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1971
+ );
1972
+ var s = { $$typeof: F, render: e }, m;
1973
+ return Object.defineProperty(s, "displayName", {
1974
+ enumerable: !1,
1975
+ configurable: !0,
1976
+ get: function() {
1977
+ return m;
1978
+ },
1979
+ set: function(A) {
1980
+ m = A, e.name || e.displayName || (Object.defineProperty(e, "name", { value: A }), e.displayName = A);
1981
+ }
1982
+ }), s;
1983
+ }, c.isValidElement = r, c.lazy = function(e) {
1984
+ e = { _status: -1, _result: e };
1985
+ var s = {
1986
+ $$typeof: ie,
1987
+ _payload: e,
1988
+ _init: p
1989
+ }, m = {
1990
+ name: "lazy",
1991
+ start: -1,
1992
+ end: -1,
1993
+ value: null,
1994
+ owner: null,
1995
+ debugStack: Error("react-stack-top-frame"),
1996
+ debugTask: console.createTask ? console.createTask("lazy()") : null
1997
+ };
1998
+ return e._ioInfo = m, s._debugInfo = [{ awaited: m }], s;
1999
+ }, c.memo = function(e, s) {
2000
+ e == null && console.error(
2001
+ "memo: The first argument must be a component. Instead received: %s",
2002
+ e === null ? "null" : typeof e
2003
+ ), s = {
2004
+ $$typeof: ee,
2005
+ type: e,
2006
+ compare: s === void 0 ? null : s
2007
+ };
2008
+ var m;
2009
+ return Object.defineProperty(s, "displayName", {
2010
+ enumerable: !1,
2011
+ configurable: !0,
2012
+ get: function() {
2013
+ return m;
2014
+ },
2015
+ set: function(A) {
2016
+ m = A, e.name || e.displayName || (Object.defineProperty(e, "name", { value: A }), e.displayName = A);
2017
+ }
2018
+ }), s;
2019
+ }, c.startTransition = function(e) {
2020
+ var s = d.T, m = {};
2021
+ m._updatedFibers = /* @__PURE__ */ new Set(), d.T = m;
2022
+ try {
2023
+ var A = e(), C = d.S;
2024
+ C !== null && C(m, A), typeof A == "object" && A !== null && typeof A.then == "function" && (d.asyncTransitions++, A.then(K, K), A.then(l, lt));
2025
+ } catch ($) {
2026
+ lt($);
2027
+ } finally {
2028
+ s === null && m._updatedFibers && (e = m._updatedFibers.size, m._updatedFibers.clear(), 10 < e && console.warn(
2029
+ "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
2030
+ )), s !== null && m.types !== null && (s.types !== null && s.types !== m.types && console.error(
2031
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
2032
+ ), s.types = m.types), d.T = s;
2033
+ }
2034
+ }, c.unstable_useCacheRefresh = function() {
2035
+ return b().useCacheRefresh();
2036
+ }, c.use = function(e) {
2037
+ return b().use(e);
2038
+ }, c.useActionState = function(e, s, m) {
2039
+ return b().useActionState(
2040
+ e,
2041
+ s,
2042
+ m
2043
+ );
2044
+ }, c.useCallback = function(e, s) {
2045
+ return b().useCallback(e, s);
2046
+ }, c.useContext = function(e) {
2047
+ var s = b();
2048
+ return e.$$typeof === M && console.error(
2049
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
2050
+ ), s.useContext(e);
2051
+ }, c.useDebugValue = function(e, s) {
2052
+ return b().useDebugValue(e, s);
2053
+ }, c.useDeferredValue = function(e, s) {
2054
+ return b().useDeferredValue(e, s);
2055
+ }, c.useEffect = function(e, s) {
2056
+ return e == null && console.warn(
2057
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
2058
+ ), b().useEffect(e, s);
2059
+ }, c.useEffectEvent = function(e) {
2060
+ return b().useEffectEvent(e);
2061
+ }, c.useId = function() {
2062
+ return b().useId();
2063
+ }, c.useImperativeHandle = function(e, s, m) {
2064
+ return b().useImperativeHandle(e, s, m);
2065
+ }, c.useInsertionEffect = function(e, s) {
2066
+ return e == null && console.warn(
2067
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
2068
+ ), b().useInsertionEffect(e, s);
2069
+ }, c.useLayoutEffect = function(e, s) {
2070
+ return e == null && console.warn(
2071
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
2072
+ ), b().useLayoutEffect(e, s);
2073
+ }, c.useMemo = function(e, s) {
2074
+ return b().useMemo(e, s);
2075
+ }, c.useOptimistic = function(e, s) {
2076
+ return b().useOptimistic(e, s);
2077
+ }, c.useReducer = function(e, s, m) {
2078
+ return b().useReducer(e, s, m);
2079
+ }, c.useRef = function(e) {
2080
+ return b().useRef(e);
2081
+ }, c.useState = function(e) {
2082
+ return b().useState(e);
2083
+ }, c.useSyncExternalStore = function(e, s, m) {
2084
+ return b().useSyncExternalStore(
2085
+ e,
2086
+ s,
2087
+ m
2088
+ );
2089
+ }, c.useTransition = function() {
2090
+ return b().useTransition();
2091
+ }, c.version = "19.2.3", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
2092
+ })();
2093
+ })(_e, _e.exports)), _e.exports;
2094
+ }
2095
+ var St;
2096
+ function Yt() {
2097
+ return St || (St = 1, process.env.NODE_ENV === "production" ? De.exports = or() : De.exports = sr()), De.exports;
2098
+ }
2099
+ var Ce = { exports: {} }, kt;
2100
+ function Gt() {
2101
+ return kt || (kt = 1, (function(E, c) {
2102
+ Object.defineProperty(c, "__esModule", {
2103
+ value: !0
2104
+ });
2105
+ function O(i, g) {
2106
+ for (var l in g) Object.defineProperty(i, l, {
2107
+ enumerable: !0,
2108
+ get: g[l]
2109
+ });
2110
+ }
2111
+ O(c, {
2112
+ DynamicServerError: function() {
2113
+ return v;
2114
+ },
2115
+ isDynamicServerError: function() {
2116
+ return T;
2117
+ }
2118
+ });
2119
+ const R = "DYNAMIC_SERVER_USAGE";
2120
+ class v extends Error {
2121
+ constructor(g) {
2122
+ super("Dynamic server usage: " + g), this.description = g, this.digest = R;
2123
+ }
2124
+ }
2125
+ function T(i) {
2126
+ return typeof i != "object" || i === null || !("digest" in i) || typeof i.digest != "string" ? !1 : i.digest === R;
2127
+ }
2128
+ (typeof c.default == "function" || typeof c.default == "object" && c.default !== null) && typeof c.default.__esModule > "u" && (Object.defineProperty(c.default, "__esModule", { value: !0 }), Object.assign(c.default, c), E.exports = c.default);
2129
+ })(Ce, Ce.exports)), Ce.exports;
2130
+ }
2131
+ var Pe = { exports: {} }, Dt;
2132
+ function be() {
2133
+ return Dt || (Dt = 1, (function(E, c) {
2134
+ Object.defineProperty(c, "__esModule", {
2135
+ value: !0
2136
+ });
2137
+ function O(i, g) {
2138
+ for (var l in g) Object.defineProperty(i, l, {
2139
+ enumerable: !0,
2140
+ get: g[l]
2141
+ });
2142
+ }
2143
+ O(c, {
2144
+ StaticGenBailoutError: function() {
2145
+ return v;
2146
+ },
2147
+ isStaticGenBailoutError: function() {
2148
+ return T;
2149
+ }
2150
+ });
2151
+ const R = "NEXT_STATIC_GEN_BAILOUT";
2152
+ class v extends Error {
2153
+ constructor(...g) {
2154
+ super(...g), this.code = R;
2155
+ }
2156
+ }
2157
+ function T(i) {
2158
+ return typeof i != "object" || i === null || !("code" in i) ? !1 : i.code === R;
2159
+ }
2160
+ (typeof c.default == "function" || typeof c.default == "object" && c.default !== null) && typeof c.default.__esModule > "u" && (Object.defineProperty(c.default, "__esModule", { value: !0 }), Object.assign(c.default, c), E.exports = c.default);
2161
+ })(Pe, Pe.exports)), Pe.exports;
2162
+ }
2163
+ var Ge = {}, Ct;
2164
+ function ot() {
2165
+ return Ct || (Ct = 1, (function(E) {
2166
+ Object.defineProperty(E, "__esModule", {
2167
+ value: !0
2168
+ });
2169
+ function c(_, k) {
2170
+ for (var P in k) Object.defineProperty(_, P, {
2171
+ enumerable: !0,
2172
+ get: k[P]
2173
+ });
2174
+ }
2175
+ c(E, {
2176
+ isHangingPromiseRejectionError: function() {
2177
+ return O;
2178
+ },
2179
+ makeDevtoolsIOAwarePromise: function() {
2180
+ return l;
2181
+ },
2182
+ makeHangingPromise: function() {
2183
+ return i;
2184
+ }
2185
+ });
2186
+ function O(_) {
2187
+ return typeof _ != "object" || _ === null || !("digest" in _) ? !1 : _.digest === R;
2188
+ }
2189
+ const R = "HANGING_PROMISE_REJECTION";
2190
+ class v extends Error {
2191
+ constructor(k, P) {
2192
+ super(`During prerendering, ${P} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${P} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${k}".`), this.route = k, this.expression = P, this.digest = R;
2193
+ }
2194
+ }
2195
+ const T = /* @__PURE__ */ new WeakMap();
2196
+ function i(_, k, P) {
2197
+ if (_.aborted)
2198
+ return Promise.reject(new v(k, P));
2199
+ {
2200
+ const N = new Promise((V, q) => {
2201
+ const w = q.bind(null, new v(k, P));
2202
+ let D = T.get(_);
2203
+ if (D)
2204
+ D.push(w);
2205
+ else {
2206
+ const j = [
2207
+ w
2208
+ ];
2209
+ T.set(_, j), _.addEventListener("abort", () => {
2210
+ for (let U = 0; U < j.length; U++)
2211
+ j[U]();
2212
+ }, {
2213
+ once: !0
2214
+ });
2215
+ }
2216
+ });
2217
+ return N.catch(g), N;
2218
+ }
2219
+ }
2220
+ function g() {
2221
+ }
2222
+ function l(_) {
2223
+ return new Promise((k) => {
2224
+ setTimeout(() => {
2225
+ k(_);
2226
+ }, 0);
2227
+ });
2228
+ }
2229
+ })(Ge)), Ge;
2230
+ }
2231
+ var ze = {}, Pt;
2232
+ function ar() {
2233
+ return Pt || (Pt = 1, (function(E) {
2234
+ Object.defineProperty(E, "__esModule", {
2235
+ value: !0
2236
+ });
2237
+ function c(i, g) {
2238
+ for (var l in g) Object.defineProperty(i, l, {
2239
+ enumerable: !0,
2240
+ get: g[l]
2241
+ });
2242
+ }
2243
+ c(E, {
2244
+ METADATA_BOUNDARY_NAME: function() {
2245
+ return O;
2246
+ },
2247
+ OUTLET_BOUNDARY_NAME: function() {
2248
+ return v;
2249
+ },
2250
+ ROOT_LAYOUT_BOUNDARY_NAME: function() {
2251
+ return T;
2252
+ },
2253
+ VIEWPORT_BOUNDARY_NAME: function() {
2254
+ return R;
2255
+ }
2256
+ });
2257
+ const O = "__next_metadata_boundary__", R = "__next_viewport_boundary__", v = "__next_outlet_boundary__", T = "__next_root_layout_boundary__";
2258
+ })(ze)), ze;
2259
+ }
2260
+ var Fe = {}, Nt;
2261
+ function cr() {
2262
+ return Nt || (Nt = 1, (function(E) {
2263
+ Object.defineProperty(E, "__esModule", {
2264
+ value: !0
2265
+ });
2266
+ function c(i, g) {
2267
+ for (var l in g) Object.defineProperty(i, l, {
2268
+ enumerable: !0,
2269
+ get: g[l]
2270
+ });
2271
+ }
2272
+ c(E, {
2273
+ atLeastOneTask: function() {
2274
+ return v;
2275
+ },
2276
+ scheduleImmediate: function() {
2277
+ return R;
2278
+ },
2279
+ scheduleOnNextTick: function() {
2280
+ return O;
2281
+ },
2282
+ waitAtLeastOneReactRenderTask: function() {
2283
+ return T;
2284
+ }
2285
+ });
2286
+ const O = (i) => {
2287
+ Promise.resolve().then(() => {
2288
+ process.env.NEXT_RUNTIME === "edge" ? setTimeout(i, 0) : process.nextTick(i);
2289
+ });
2290
+ }, R = (i) => {
2291
+ process.env.NEXT_RUNTIME === "edge" ? setTimeout(i, 0) : setImmediate(i);
2292
+ };
2293
+ function v() {
2294
+ return new Promise((i) => R(i));
2295
+ }
2296
+ function T() {
2297
+ return process.env.NEXT_RUNTIME === "edge" ? new Promise((i) => setTimeout(i, 0)) : new Promise((i) => setImmediate(i));
2298
+ }
2299
+ })(Fe)), Fe;
2300
+ }
2301
+ var Ke = {}, jt;
2302
+ function ir() {
2303
+ return jt || (jt = 1, (function(E) {
2304
+ Object.defineProperty(E, "__esModule", {
2305
+ value: !0
2306
+ });
2307
+ function c(T, i) {
2308
+ for (var g in i) Object.defineProperty(T, g, {
2309
+ enumerable: !0,
2310
+ get: i[g]
2311
+ });
2312
+ }
2313
+ c(E, {
2314
+ BailoutToCSRError: function() {
2315
+ return R;
2316
+ },
2317
+ isBailoutToCSRError: function() {
2318
+ return v;
2319
+ }
2320
+ });
2321
+ const O = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
2322
+ class R extends Error {
2323
+ constructor(i) {
2324
+ super("Bail out to client-side rendering: " + i), this.reason = i, this.digest = O;
2325
+ }
2326
+ }
2327
+ function v(T) {
2328
+ return typeof T != "object" || T === null || !("digest" in T) ? !1 : T.digest === O;
2329
+ }
2330
+ })(Ke)), Ke;
2331
+ }
2332
+ var Mt;
2333
+ function st() {
2334
+ return Mt || (Mt = 1, (function(E) {
2335
+ Object.defineProperty(E, "__esModule", {
2336
+ value: !0
2337
+ });
2338
+ function c(u, S) {
2339
+ for (var d in S) Object.defineProperty(u, d, {
2340
+ enumerable: !0,
2341
+ get: S[d]
2342
+ });
2343
+ }
2344
+ c(E, {
2345
+ Postpone: function() {
2346
+ return a;
2347
+ },
2348
+ PreludeState: function() {
2349
+ return Oe;
2350
+ },
2351
+ abortAndThrowOnSynchronousRequestDataAccess: function() {
2352
+ return t;
2353
+ },
2354
+ abortOnSynchronousPlatformIOAccess: function() {
2355
+ return r;
2356
+ },
2357
+ accessedDynamicData: function() {
2358
+ return ce;
2359
+ },
2360
+ annotateDynamicAccess: function() {
2361
+ return M;
2362
+ },
2363
+ consumeDynamicAccess: function() {
2364
+ return ae;
2365
+ },
2366
+ createDynamicTrackingState: function() {
2367
+ return q;
2368
+ },
2369
+ createDynamicValidationState: function() {
2370
+ return w;
2371
+ },
2372
+ createHangingInputAbortSignal: function() {
2373
+ return I;
2374
+ },
2375
+ createRenderInBrowserAbortSignal: function() {
2376
+ return h;
2377
+ },
2378
+ delayUntilRuntimeStage: function() {
2379
+ return se;
2380
+ },
2381
+ formatDynamicAPIAccesses: function() {
2382
+ return ue;
2383
+ },
2384
+ getFirstDynamicReason: function() {
2385
+ return D;
2386
+ },
2387
+ isDynamicPostpone: function() {
2388
+ return K;
2389
+ },
2390
+ isPrerenderInterruptedError: function() {
2391
+ return re;
2392
+ },
2393
+ logDisallowedDynamicError: function() {
2394
+ return le;
2395
+ },
2396
+ markCurrentScopeAsDynamic: function() {
2397
+ return j;
2398
+ },
2399
+ postponeWithTracking: function() {
2400
+ return p;
2401
+ },
2402
+ throwIfDisallowedDynamic: function() {
2403
+ return pe;
2404
+ },
2405
+ throwToInterruptStaticGeneration: function() {
2406
+ return U;
2407
+ },
2408
+ trackAllowedDynamicAccess: function() {
2409
+ return Re;
2410
+ },
2411
+ trackDynamicDataInDynamicRender: function() {
2412
+ return B;
2413
+ },
2414
+ trackSynchronousPlatformIOAccessInDev: function() {
2415
+ return n;
2416
+ },
2417
+ trackSynchronousRequestDataAccessInDev: function() {
2418
+ return y;
2419
+ },
2420
+ useDynamicRouteParams: function() {
2421
+ return G;
2422
+ },
2423
+ warnOnSyncDynamicError: function() {
2424
+ return f;
2425
+ }
2426
+ });
2427
+ const O = /* @__PURE__ */ N(Yt()), R = Gt(), v = be(), T = Ne(), i = Ee(), g = ot(), l = ar(), _ = cr(), k = ir(), P = ge();
2428
+ function N(u) {
2429
+ return u && u.__esModule ? u : {
2430
+ default: u
2431
+ };
2432
+ }
2433
+ const V = typeof O.default.unstable_postpone == "function";
2434
+ function q(u) {
2435
+ return {
2436
+ isDebugDynamicAccesses: u,
2437
+ dynamicAccesses: [],
2438
+ syncDynamicErrorWithStack: null
2439
+ };
2440
+ }
2441
+ function w() {
2442
+ return {
2443
+ hasSuspenseAboveBody: !1,
2444
+ hasDynamicMetadata: !1,
2445
+ hasDynamicViewport: !1,
2446
+ hasAllowedDynamic: !1,
2447
+ dynamicErrors: []
2448
+ };
2449
+ }
2450
+ function D(u) {
2451
+ var S;
2452
+ return (S = u.dynamicAccesses[0]) == null ? void 0 : S.expression;
2453
+ }
2454
+ function j(u, S, d) {
2455
+ if (S)
2456
+ switch (S.type) {
2457
+ case "cache":
2458
+ case "unstable-cache":
2459
+ return;
2460
+ case "private-cache":
2461
+ return;
2462
+ }
2463
+ if (!(u.forceDynamic || u.forceStatic)) {
2464
+ if (u.dynamicShouldError)
2465
+ throw Object.defineProperty(new v.StaticGenBailoutError(`Route ${u.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${d}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
2466
+ value: "E553",
2467
+ enumerable: !1,
2468
+ configurable: !0
2469
+ });
2470
+ if (S)
2471
+ switch (S.type) {
2472
+ case "prerender-ppr":
2473
+ return p(u.route, d, S.dynamicTracking);
2474
+ case "prerender-legacy":
2475
+ S.revalidate = 0;
2476
+ const L = Object.defineProperty(new R.DynamicServerError(`Route ${u.route} couldn't be rendered statically because it used ${d}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
2477
+ value: "E550",
2478
+ enumerable: !1,
2479
+ configurable: !0
2480
+ });
2481
+ throw u.dynamicUsageDescription = d, u.dynamicUsageStack = L.stack, L;
2482
+ case "request":
2483
+ process.env.NODE_ENV !== "production" && (S.usedDynamic = !0);
2484
+ break;
2485
+ }
2486
+ }
2487
+ }
2488
+ function U(u, S, d) {
2489
+ const L = Object.defineProperty(new R.DynamicServerError(`Route ${S.route} couldn't be rendered statically because it used \`${u}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
2490
+ value: "E558",
2491
+ enumerable: !1,
2492
+ configurable: !0
2493
+ });
2494
+ throw d.revalidate = 0, S.dynamicUsageDescription = u, S.dynamicUsageStack = L.stack, L;
2495
+ }
2496
+ function B(u) {
2497
+ switch (u.type) {
2498
+ case "cache":
2499
+ case "unstable-cache":
2500
+ return;
2501
+ case "private-cache":
2502
+ return;
2503
+ case "prerender":
2504
+ case "prerender-runtime":
2505
+ case "prerender-legacy":
2506
+ case "prerender-ppr":
2507
+ case "prerender-client":
2508
+ break;
2509
+ case "request":
2510
+ process.env.NODE_ENV !== "production" && (u.usedDynamic = !0);
2511
+ break;
2512
+ }
2513
+ }
2514
+ function X(u, S, d) {
2515
+ const L = `Route ${u} needs to bail out of prerendering at this point because it used ${S}.`, ne = J(L);
2516
+ d.controller.abort(ne);
2517
+ const te = d.dynamicTracking;
2518
+ te && te.dynamicAccesses.push({
2519
+ // When we aren't debugging, we don't need to create another error for the
2520
+ // stack trace.
2521
+ stack: te.isDebugDynamicAccesses ? new Error().stack : void 0,
2522
+ expression: S
2523
+ });
2524
+ }
2525
+ function r(u, S, d, L) {
2526
+ const ne = L.dynamicTracking;
2527
+ X(u, S, L), ne && ne.syncDynamicErrorWithStack === null && (ne.syncDynamicErrorWithStack = d);
2528
+ }
2529
+ function n(u) {
2530
+ u.prerenderPhase = !1;
2531
+ }
2532
+ function t(u, S, d, L) {
2533
+ if (L.controller.signal.aborted === !1) {
2534
+ X(u, S, L);
2535
+ const te = L.dynamicTracking;
2536
+ te && te.syncDynamicErrorWithStack === null && (te.syncDynamicErrorWithStack = d);
2537
+ }
2538
+ throw J(`Route ${u} needs to bail out of prerendering at this point because it used ${S}.`);
2539
+ }
2540
+ function f(u) {
2541
+ u.syncDynamicErrorWithStack && console.error(u.syncDynamicErrorWithStack);
2542
+ }
2543
+ const y = n;
2544
+ function a({ reason: u, route: S }) {
2545
+ const d = T.workUnitAsyncStorage.getStore(), L = d && d.type === "prerender-ppr" ? d.dynamicTracking : null;
2546
+ p(S, u, L);
2547
+ }
2548
+ function p(u, S, d) {
2549
+ o(), d && d.dynamicAccesses.push({
2550
+ // When we aren't debugging, we don't need to create another error for the
2551
+ // stack trace.
2552
+ stack: d.isDebugDynamicAccesses ? new Error().stack : void 0,
2553
+ expression: S
2554
+ }), O.default.unstable_postpone(b(u, S));
2555
+ }
2556
+ function b(u, S) {
2557
+ return `Route ${u} needs to bail out of prerendering at this point because it used ${S}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;
2558
+ }
2559
+ function K(u) {
2560
+ return typeof u == "object" && u !== null && typeof u.message == "string" ? z(u.message) : !1;
2561
+ }
2562
+ function z(u) {
2563
+ return u.includes("needs to bail out of prerendering at this point because it used") && u.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
2564
+ }
2565
+ if (z(b("%%%", "^^^")) === !1)
2566
+ throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
2567
+ value: "E296",
2568
+ enumerable: !1,
2569
+ configurable: !0
2570
+ });
2571
+ const H = "NEXT_PRERENDER_INTERRUPTED";
2572
+ function J(u) {
2573
+ const S = Object.defineProperty(new Error(u), "__NEXT_ERROR_CODE", {
2574
+ value: "E394",
2575
+ enumerable: !1,
2576
+ configurable: !0
2577
+ });
2578
+ return S.digest = H, S;
2579
+ }
2580
+ function re(u) {
2581
+ return typeof u == "object" && u !== null && u.digest === H && "name" in u && "message" in u && u instanceof Error;
2582
+ }
2583
+ function ce(u) {
2584
+ return u.length > 0;
2585
+ }
2586
+ function ae(u, S) {
2587
+ return u.dynamicAccesses.push(...S.dynamicAccesses), u.dynamicAccesses;
2588
+ }
2589
+ function ue(u) {
2590
+ return u.filter((S) => typeof S.stack == "string" && S.stack.length > 0).map(({ expression: S, stack: d }) => (d = d.split(`
2591
+ `).slice(4).filter((L) => !(L.includes("node_modules/next/") || L.includes(" (<anonymous>)") || L.includes(" (node:"))).join(`
2592
+ `), `Dynamic API Usage Debug - ${S}:
2593
+ ${d}`));
2594
+ }
2595
+ function o() {
2596
+ if (!V)
2597
+ throw Object.defineProperty(new Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
2598
+ value: "E224",
2599
+ enumerable: !1,
2600
+ configurable: !0
2601
+ });
2602
+ }
2603
+ function h() {
2604
+ const u = new AbortController();
2605
+ return u.abort(Object.defineProperty(new k.BailoutToCSRError("Render in Browser"), "__NEXT_ERROR_CODE", {
2606
+ value: "E721",
2607
+ enumerable: !1,
2608
+ configurable: !0
2609
+ })), u.signal;
2610
+ }
2611
+ function I(u) {
2612
+ switch (u.type) {
2613
+ case "prerender":
2614
+ case "prerender-runtime":
2615
+ const S = new AbortController();
2616
+ if (u.cacheSignal)
2617
+ u.cacheSignal.inputReady().then(() => {
2618
+ S.abort();
2619
+ });
2620
+ else {
2621
+ const d = (0, T.getRuntimeStagePromise)(u);
2622
+ d ? d.then(() => (0, _.scheduleOnNextTick)(() => S.abort())) : (0, _.scheduleOnNextTick)(() => S.abort());
2623
+ }
2624
+ return S.signal;
2625
+ case "prerender-client":
2626
+ case "prerender-ppr":
2627
+ case "prerender-legacy":
2628
+ case "request":
2629
+ case "cache":
2630
+ case "private-cache":
2631
+ case "unstable-cache":
2632
+ return;
2633
+ }
2634
+ }
2635
+ function M(u, S) {
2636
+ const d = S.dynamicTracking;
2637
+ d && d.dynamicAccesses.push({
2638
+ stack: d.isDebugDynamicAccesses ? new Error().stack : void 0,
2639
+ expression: u
2640
+ });
2641
+ }
2642
+ function G(u) {
2643
+ const S = i.workAsyncStorage.getStore(), d = T.workUnitAsyncStorage.getStore();
2644
+ if (S && d)
2645
+ switch (d.type) {
2646
+ case "prerender-client":
2647
+ case "prerender": {
2648
+ const L = d.fallbackRouteParams;
2649
+ L && L.size > 0 && O.default.use((0, g.makeHangingPromise)(d.renderSignal, S.route, u));
2650
+ break;
2651
+ }
2652
+ case "prerender-ppr": {
2653
+ const L = d.fallbackRouteParams;
2654
+ if (L && L.size > 0)
2655
+ return p(S.route, u, d.dynamicTracking);
2656
+ break;
2657
+ }
2658
+ case "prerender-runtime":
2659
+ throw Object.defineProperty(new P.InvariantError(`\`${u}\` was called during a runtime prerender. Next.js should be preventing ${u} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
2660
+ value: "E771",
2661
+ enumerable: !1,
2662
+ configurable: !0
2663
+ });
2664
+ case "cache":
2665
+ case "private-cache":
2666
+ throw Object.defineProperty(new P.InvariantError(`\`${u}\` was called inside a cache scope. Next.js should be preventing ${u} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
2667
+ value: "E745",
2668
+ enumerable: !1,
2669
+ configurable: !0
2670
+ });
2671
+ }
2672
+ }
2673
+ const F = /\n\s+at Suspense \(<anonymous>\)/, Q = "body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6", oe = new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${Q}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${l.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`), ee = new RegExp(`\\n\\s+at ${l.METADATA_BOUNDARY_NAME}[\\n\\s]`), ie = new RegExp(`\\n\\s+at ${l.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), ve = new RegExp(`\\n\\s+at ${l.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
2674
+ function Re(u, S, d, L) {
2675
+ if (!ve.test(S))
2676
+ if (ee.test(S)) {
2677
+ d.hasDynamicMetadata = !0;
2678
+ return;
2679
+ } else if (ie.test(S)) {
2680
+ d.hasDynamicViewport = !0;
2681
+ return;
2682
+ } else if (oe.test(S)) {
2683
+ d.hasAllowedDynamic = !0, d.hasSuspenseAboveBody = !0;
2684
+ return;
2685
+ } else if (F.test(S)) {
2686
+ d.hasAllowedDynamic = !0;
2687
+ return;
2688
+ } else if (L.syncDynamicErrorWithStack) {
2689
+ d.dynamicErrors.push(L.syncDynamicErrorWithStack);
2690
+ return;
2691
+ } else {
2692
+ const ne = `Route "${u.route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`, te = we(ne, S);
2693
+ d.dynamicErrors.push(te);
2694
+ return;
2695
+ }
2696
+ }
2697
+ function we(u, S) {
2698
+ const d = process.env.NODE_ENV !== "production" && O.default.captureOwnerStack ? O.default.captureOwnerStack() : null, L = Object.defineProperty(new Error(u), "__NEXT_ERROR_CODE", {
2699
+ value: "E394",
2700
+ enumerable: !1,
2701
+ configurable: !0
2702
+ });
2703
+ return L.stack = L.name + ": " + u + (d ?? S), L;
2704
+ }
2705
+ var Oe = /* @__PURE__ */ (function(u) {
2706
+ return u[u.Full = 0] = "Full", u[u.Empty = 1] = "Empty", u[u.Errored = 2] = "Errored", u;
2707
+ })({});
2708
+ function le(u, S) {
2709
+ console.error(S), u.dev || (u.hasReadableErrorStacks ? console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${u.route}" in your browser to investigate the error.`) : console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
2710
+ - Start the app in development mode by running \`next dev\`, then open "${u.route}" in your browser to investigate the error.
2711
+ - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`));
2712
+ }
2713
+ function pe(u, S, d, L) {
2714
+ if (S !== 0) {
2715
+ if (d.hasSuspenseAboveBody)
2716
+ return;
2717
+ if (L.syncDynamicErrorWithStack)
2718
+ throw le(u, L.syncDynamicErrorWithStack), new v.StaticGenBailoutError();
2719
+ const ne = d.dynamicErrors;
2720
+ if (ne.length > 0) {
2721
+ for (let te = 0; te < ne.length; te++)
2722
+ le(u, ne[te]);
2723
+ throw new v.StaticGenBailoutError();
2724
+ }
2725
+ if (d.hasDynamicViewport)
2726
+ throw console.error(`Route "${u.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`), new v.StaticGenBailoutError();
2727
+ if (S === 1)
2728
+ throw console.error(`Route "${u.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`), new v.StaticGenBailoutError();
2729
+ } else if (d.hasAllowedDynamic === !1 && d.hasDynamicMetadata)
2730
+ throw console.error(`Route "${u.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`), new v.StaticGenBailoutError();
2731
+ }
2732
+ function se(u, S) {
2733
+ return u.runtimeStagePromise ? u.runtimeStagePromise.then(() => S) : S;
2734
+ }
2735
+ })(Ye)), Ye;
2736
+ }
2737
+ var Qe = {}, It;
2738
+ function at() {
2739
+ return It || (It = 1, (function(E) {
2740
+ Object.defineProperty(E, "__esModule", {
2741
+ value: !0
2742
+ }), Object.defineProperty(E, "createDedupedByCallsiteServerErrorLoggerDev", {
2743
+ enumerable: !0,
2744
+ get: function() {
2745
+ return l;
2746
+ }
2747
+ });
2748
+ const c = /* @__PURE__ */ R(Yt());
2749
+ function O(_) {
2750
+ if (typeof WeakMap != "function") return null;
2751
+ var k = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap();
2752
+ return (O = function(N) {
2753
+ return N ? P : k;
2754
+ })(_);
2755
+ }
2756
+ function R(_, k) {
2757
+ if (_ && _.__esModule)
2758
+ return _;
2759
+ if (_ === null || typeof _ != "object" && typeof _ != "function")
2760
+ return {
2761
+ default: _
2762
+ };
2763
+ var P = O(k);
2764
+ if (P && P.has(_))
2765
+ return P.get(_);
2766
+ var N = {
2767
+ __proto__: null
2768
+ }, V = Object.defineProperty && Object.getOwnPropertyDescriptor;
2769
+ for (var q in _)
2770
+ if (q !== "default" && Object.prototype.hasOwnProperty.call(_, q)) {
2771
+ var w = V ? Object.getOwnPropertyDescriptor(_, q) : null;
2772
+ w && (w.get || w.set) ? Object.defineProperty(N, q, w) : N[q] = _[q];
2773
+ }
2774
+ return N.default = _, P && P.set(_, N), N;
2775
+ }
2776
+ const v = {
2777
+ current: null
2778
+ }, T = typeof c.cache == "function" ? c.cache : (_) => _, i = process.env.__NEXT_CACHE_COMPONENTS ? console.error : console.warn, g = T(
2779
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- cache key
2780
+ (_) => {
2781
+ try {
2782
+ i(v.current);
2783
+ } finally {
2784
+ v.current = null;
2785
+ }
2786
+ }
2787
+ );
2788
+ function l(_) {
2789
+ return function(...P) {
2790
+ const N = _(...P);
2791
+ if (process.env.NODE_ENV !== "production") {
2792
+ var V;
2793
+ const q = (V = new Error().stack) == null ? void 0 : V.split(`
2794
+ `);
2795
+ if (q === void 0 || q.length < 4)
2796
+ i(N);
2797
+ else {
2798
+ const w = q[4];
2799
+ v.current = N, g(w);
2800
+ }
2801
+ } else
2802
+ i(N);
2803
+ };
2804
+ }
2805
+ })(Qe)), Qe;
2806
+ }
2807
+ var Ve = {}, Ze = {}, Je = {}, xt;
2808
+ function ur() {
2809
+ return xt || (xt = 1, (function(E) {
2810
+ Object.defineProperty(E, "__esModule", {
2811
+ value: !0
2812
+ }), Object.defineProperty(E, "afterTaskAsyncStorageInstance", {
2813
+ enumerable: !0,
2814
+ get: function() {
2815
+ return O;
2816
+ }
2817
+ });
2818
+ const O = (0, nt().createAsyncLocalStorage)();
2819
+ })(Je)), Je;
2820
+ }
2821
+ var qt;
2822
+ function fr() {
2823
+ return qt || (qt = 1, (function(E) {
2824
+ Object.defineProperty(E, "__esModule", {
2825
+ value: !0
2826
+ }), Object.defineProperty(E, "afterTaskAsyncStorage", {
2827
+ enumerable: !0,
2828
+ get: function() {
2829
+ return c.afterTaskAsyncStorageInstance;
2830
+ }
2831
+ });
2832
+ const c = ur();
2833
+ })(Ze)), Ze;
2834
+ }
2835
+ var Ut;
2836
+ function zt() {
2837
+ return Ut || (Ut = 1, (function(E) {
2838
+ Object.defineProperty(E, "__esModule", {
2839
+ value: !0
2840
+ });
2841
+ function c(l, _) {
2842
+ for (var k in _) Object.defineProperty(l, k, {
2843
+ enumerable: !0,
2844
+ get: _[k]
2845
+ });
2846
+ }
2847
+ c(E, {
2848
+ isRequestAPICallableInsideAfter: function() {
2849
+ return g;
2850
+ },
2851
+ throwForSearchParamsAccessInUseCache: function() {
2852
+ return i;
2853
+ },
2854
+ throwWithStaticGenerationBailoutError: function() {
2855
+ return v;
2856
+ },
2857
+ throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
2858
+ return T;
2859
+ }
2860
+ });
2861
+ const O = be(), R = fr();
2862
+ function v(l, _) {
2863
+ throw Object.defineProperty(new O.StaticGenBailoutError(`Route ${l} couldn't be rendered statically because it used ${_}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
2864
+ value: "E576",
2865
+ enumerable: !1,
2866
+ configurable: !0
2867
+ });
2868
+ }
2869
+ function T(l, _) {
2870
+ throw Object.defineProperty(new O.StaticGenBailoutError(`Route ${l} with \`dynamic = "error"\` couldn't be rendered statically because it used ${_}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
2871
+ value: "E543",
2872
+ enumerable: !1,
2873
+ configurable: !0
2874
+ });
2875
+ }
2876
+ function i(l, _) {
2877
+ const k = Object.defineProperty(new Error(`Route ${l.route} used "searchParams" inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await "searchParams" outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
2878
+ value: "E779",
2879
+ enumerable: !1,
2880
+ configurable: !0
2881
+ });
2882
+ throw Error.captureStackTrace(k, _), l.invalidDynamicUsageError ?? (l.invalidDynamicUsageError = k), k;
2883
+ }
2884
+ function g() {
2885
+ const l = R.afterTaskAsyncStorage.getStore();
2886
+ return (l == null ? void 0 : l.rootTaskSpawnPhase) === "action";
2887
+ }
2888
+ })(Ve)), Ve;
2889
+ }
2890
+ var Lt;
2891
+ function lr() {
2892
+ return Lt || (Lt = 1, (function(E) {
2893
+ Object.defineProperty(E, "__esModule", {
2894
+ value: !0
2895
+ }), Object.defineProperty(E, "cookies", {
2896
+ enumerable: !0,
2897
+ get: function() {
2898
+ return N;
2899
+ }
2900
+ });
2901
+ const c = tr(), O = $t(), R = Ee(), v = Ne(), T = st(), i = be(), g = ot(), l = at(), _ = zt(), k = ge(), P = ye();
2902
+ function N() {
2903
+ const a = "cookies", p = R.workAsyncStorage.getStore(), b = v.workUnitAsyncStorage.getStore();
2904
+ if (p) {
2905
+ if (b && b.phase === "after" && !(0, _.isRequestAPICallableInsideAfter)())
2906
+ throw Object.defineProperty(new Error(
2907
+ // TODO(after): clarify that this only applies to pages?
2908
+ `Route ${p.route} used "cookies" inside "after(...)". This is not supported. If you need this data inside an "after" callback, use "cookies" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`
2909
+ ), "__NEXT_ERROR_CODE", {
2910
+ value: "E88",
2911
+ enumerable: !1,
2912
+ configurable: !0
2913
+ });
2914
+ if (p.forceStatic) {
2915
+ const K = V();
2916
+ return j(K);
2917
+ }
2918
+ if (p.dynamicShouldError)
2919
+ throw Object.defineProperty(new i.StaticGenBailoutError(`Route ${p.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
2920
+ value: "E549",
2921
+ enumerable: !1,
2922
+ configurable: !0
2923
+ });
2924
+ if (b)
2925
+ switch (b.type) {
2926
+ case "cache":
2927
+ const K = Object.defineProperty(new Error(`Route ${p.route} used "cookies" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "cookies" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
2928
+ value: "E398",
2929
+ enumerable: !1,
2930
+ configurable: !0
2931
+ });
2932
+ throw Error.captureStackTrace(K, N), p.invalidDynamicUsageError ?? (p.invalidDynamicUsageError = K), K;
2933
+ case "unstable-cache":
2934
+ throw Object.defineProperty(new Error(`Route ${p.route} used "cookies" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "cookies" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
2935
+ value: "E157",
2936
+ enumerable: !1,
2937
+ configurable: !0
2938
+ });
2939
+ case "prerender":
2940
+ return w(p, b);
2941
+ case "prerender-client":
2942
+ const z = "`cookies`";
2943
+ throw Object.defineProperty(new k.InvariantError(`${z} must not be used within a client component. Next.js should be preventing ${z} from being included in client components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
2944
+ value: "E693",
2945
+ enumerable: !1,
2946
+ configurable: !0
2947
+ });
2948
+ case "prerender-ppr":
2949
+ return (0, T.postponeWithTracking)(p.route, a, b.dynamicTracking);
2950
+ case "prerender-legacy":
2951
+ return (0, T.throwToInterruptStaticGeneration)(a, p, b);
2952
+ case "prerender-runtime":
2953
+ return (0, T.delayUntilRuntimeStage)(b, D(b.cookies));
2954
+ case "private-cache":
2955
+ return process.env.__NEXT_CACHE_COMPONENTS ? D(b.cookies) : j(b.cookies);
2956
+ case "request":
2957
+ (0, T.trackDynamicDataInDynamicRender)(b);
2958
+ let H;
2959
+ return (0, c.areCookiesMutableInCurrentPhase)(b) ? H = b.userspaceMutableCookies : H = b.cookies, process.env.NODE_ENV === "development" ? process.env.__NEXT_CACHE_COMPONENTS ? B(H, p == null ? void 0 : p.route) : U(H, p == null ? void 0 : p.route) : process.env.__NEXT_CACHE_COMPONENTS ? D(H) : j(H);
2960
+ }
2961
+ }
2962
+ (0, v.throwForMissingRequestStore)(a);
2963
+ }
2964
+ function V() {
2965
+ return c.RequestCookiesAdapter.seal(new O.RequestCookies(new Headers({})));
2966
+ }
2967
+ const q = /* @__PURE__ */ new WeakMap();
2968
+ function w(a, p) {
2969
+ const b = q.get(p);
2970
+ if (b)
2971
+ return b;
2972
+ const K = (0, g.makeHangingPromise)(p.renderSignal, a.route, "`cookies()`");
2973
+ return q.set(p, K), K;
2974
+ }
2975
+ function D(a) {
2976
+ const p = q.get(a);
2977
+ if (p)
2978
+ return p;
2979
+ const b = Promise.resolve(a);
2980
+ return q.set(a, b), b;
2981
+ }
2982
+ function j(a) {
2983
+ const p = q.get(a);
2984
+ if (p)
2985
+ return p;
2986
+ const b = Promise.resolve(a);
2987
+ return q.set(a, b), Object.defineProperties(b, {
2988
+ [Symbol.iterator]: {
2989
+ value: a[Symbol.iterator] ? a[Symbol.iterator].bind(a) : (
2990
+ // We should remove this and unify our cookies types. We could just let this continue to throw lazily
2991
+ // but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with
2992
+ // implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it
2993
+ // has extra properties not available on RequestCookie instances.
2994
+ f.bind(a)
2995
+ )
2996
+ },
2997
+ size: {
2998
+ get() {
2999
+ return a.size;
3000
+ }
3001
+ },
3002
+ get: {
3003
+ value: a.get.bind(a)
3004
+ },
3005
+ getAll: {
3006
+ value: a.getAll.bind(a)
3007
+ },
3008
+ has: {
3009
+ value: a.has.bind(a)
3010
+ },
3011
+ set: {
3012
+ value: a.set.bind(a)
3013
+ },
3014
+ delete: {
3015
+ value: a.delete.bind(a)
3016
+ },
3017
+ clear: {
3018
+ value: (
3019
+ // @ts-expect-error clear is defined in RequestCookies implementation but not in the type
3020
+ typeof a.clear == "function" ? a.clear.bind(a) : (
3021
+ // We should remove this and unify our cookies types. We could just let this continue to throw lazily
3022
+ // but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with
3023
+ // implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it
3024
+ // has extra properties not available on RequestCookie instances.
3025
+ y.bind(a, b)
3026
+ )
3027
+ )
3028
+ },
3029
+ toString: {
3030
+ value: a.toString.bind(a)
3031
+ }
3032
+ }), b;
3033
+ }
3034
+ function U(a, p) {
3035
+ const b = q.get(a);
3036
+ if (b)
3037
+ return b;
3038
+ const K = (0, g.makeDevtoolsIOAwarePromise)(a);
3039
+ return q.set(a, K), Object.defineProperties(K, {
3040
+ [Symbol.iterator]: {
3041
+ value: function() {
3042
+ return r(p, "`...cookies()` or similar iteration"), a[Symbol.iterator] ? a[Symbol.iterator].apply(a, arguments) : (
3043
+ // We should remove this and unify our cookies types. We could just let this continue to throw lazily
3044
+ // but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with
3045
+ // implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it
3046
+ // has extra properties not available on RequestCookie instances.
3047
+ f.call(a)
3048
+ );
3049
+ },
3050
+ writable: !1
3051
+ },
3052
+ size: {
3053
+ get() {
3054
+ return r(p, "`cookies().size`"), a.size;
3055
+ }
3056
+ },
3057
+ get: {
3058
+ value: function() {
3059
+ let H;
3060
+ return arguments.length === 0 ? H = "`cookies().get()`" : H = `\`cookies().get(${X(arguments[0])})\``, r(p, H), a.get.apply(a, arguments);
3061
+ },
3062
+ writable: !1
3063
+ },
3064
+ getAll: {
3065
+ value: function() {
3066
+ let H;
3067
+ return arguments.length === 0 ? H = "`cookies().getAll()`" : H = `\`cookies().getAll(${X(arguments[0])})\``, r(p, H), a.getAll.apply(a, arguments);
3068
+ },
3069
+ writable: !1
3070
+ },
3071
+ has: {
3072
+ value: function() {
3073
+ let H;
3074
+ return arguments.length === 0 ? H = "`cookies().has()`" : H = `\`cookies().has(${X(arguments[0])})\``, r(p, H), a.has.apply(a, arguments);
3075
+ },
3076
+ writable: !1
3077
+ },
3078
+ set: {
3079
+ value: function() {
3080
+ let H;
3081
+ if (arguments.length === 0)
3082
+ H = "`cookies().set()`";
3083
+ else {
3084
+ const J = arguments[0];
3085
+ J ? H = `\`cookies().set(${X(J)}, ...)\`` : H = "`cookies().set(...)`";
3086
+ }
3087
+ return r(p, H), a.set.apply(a, arguments);
3088
+ },
3089
+ writable: !1
3090
+ },
3091
+ delete: {
3092
+ value: function() {
3093
+ let z;
3094
+ return arguments.length === 0 ? z = "`cookies().delete()`" : arguments.length === 1 ? z = `\`cookies().delete(${X(arguments[0])})\`` : z = `\`cookies().delete(${X(arguments[0])}, ...)\``, r(p, z), a.delete.apply(a, arguments);
3095
+ },
3096
+ writable: !1
3097
+ },
3098
+ clear: {
3099
+ value: function() {
3100
+ return r(p, "`cookies().clear()`"), typeof a.clear == "function" ? a.clear.apply(a, arguments) : (
3101
+ // We should remove this and unify our cookies types. We could just let this continue to throw lazily
3102
+ // but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with
3103
+ // implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it
3104
+ // has extra properties not available on RequestCookie instances.
3105
+ y.call(a, K)
3106
+ );
3107
+ },
3108
+ writable: !1
3109
+ },
3110
+ toString: {
3111
+ value: function() {
3112
+ return r(p, "`cookies().toString()` or implicit casting"), a.toString.apply(a, arguments);
3113
+ },
3114
+ writable: !1
3115
+ }
3116
+ }), K;
3117
+ }
3118
+ function B(a, p) {
3119
+ const b = q.get(a);
3120
+ if (b)
3121
+ return b;
3122
+ const K = (0, g.makeDevtoolsIOAwarePromise)(a), z = new Proxy(K, {
3123
+ get(H, J, re) {
3124
+ switch (J) {
3125
+ case Symbol.iterator: {
3126
+ n(p, "`...cookies()` or similar iteration");
3127
+ break;
3128
+ }
3129
+ case "size":
3130
+ case "get":
3131
+ case "getAll":
3132
+ case "has":
3133
+ case "set":
3134
+ case "delete":
3135
+ case "clear":
3136
+ case "toString": {
3137
+ n(p, `\`cookies().${J}\``);
3138
+ break;
3139
+ }
3140
+ }
3141
+ return P.ReflectAdapter.get(H, J, re);
3142
+ }
3143
+ });
3144
+ return q.set(a, z), z;
3145
+ }
3146
+ function X(a) {
3147
+ return typeof a == "object" && a !== null && typeof a.name == "string" ? `'${a.name}'` : typeof a == "string" ? `'${a}'` : "...";
3148
+ }
3149
+ function r(a, p) {
3150
+ const b = v.workUnitAsyncStorage.getStore();
3151
+ if (b)
3152
+ switch (b.type) {
3153
+ case "request":
3154
+ b.prerenderPhase === !0 && (0, T.trackSynchronousRequestDataAccessInDev)(b);
3155
+ break;
3156
+ }
3157
+ n(a, p);
3158
+ }
3159
+ const n = (0, l.createDedupedByCallsiteServerErrorLoggerDev)(t);
3160
+ function t(a, p) {
3161
+ const b = a ? `Route "${a}" ` : "This route ";
3162
+ return Object.defineProperty(new Error(`${b}used ${p}. \`cookies()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
3163
+ value: "E223",
3164
+ enumerable: !1,
3165
+ configurable: !0
3166
+ });
3167
+ }
3168
+ function f() {
3169
+ return this.getAll().map((a) => [
3170
+ a.name,
3171
+ a
3172
+ ]).values();
3173
+ }
3174
+ function y(a) {
3175
+ for (const p of this.getAll())
3176
+ this.delete(p.name);
3177
+ return a;
3178
+ }
3179
+ })(Me)), Me;
3180
+ }
3181
+ var et = {}, tt = {}, Ht;
3182
+ function dr() {
3183
+ return Ht || (Ht = 1, (function(E) {
3184
+ Object.defineProperty(E, "__esModule", {
3185
+ value: !0
3186
+ });
3187
+ function c(T, i) {
3188
+ for (var g in i) Object.defineProperty(T, g, {
3189
+ enumerable: !0,
3190
+ get: i[g]
3191
+ });
3192
+ }
3193
+ c(E, {
3194
+ HeadersAdapter: function() {
3195
+ return v;
3196
+ },
3197
+ ReadonlyHeadersError: function() {
3198
+ return R;
3199
+ }
3200
+ });
3201
+ const O = ye();
3202
+ class R extends Error {
3203
+ constructor() {
3204
+ super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers");
3205
+ }
3206
+ static callable() {
3207
+ throw new R();
3208
+ }
3209
+ }
3210
+ class v extends Headers {
3211
+ constructor(i) {
3212
+ super(), this.headers = new Proxy(i, {
3213
+ get(g, l, _) {
3214
+ if (typeof l == "symbol")
3215
+ return O.ReflectAdapter.get(g, l, _);
3216
+ const k = l.toLowerCase(), P = Object.keys(i).find((N) => N.toLowerCase() === k);
3217
+ if (!(typeof P > "u"))
3218
+ return O.ReflectAdapter.get(g, P, _);
3219
+ },
3220
+ set(g, l, _, k) {
3221
+ if (typeof l == "symbol")
3222
+ return O.ReflectAdapter.set(g, l, _, k);
3223
+ const P = l.toLowerCase(), N = Object.keys(i).find((V) => V.toLowerCase() === P);
3224
+ return O.ReflectAdapter.set(g, N ?? l, _, k);
3225
+ },
3226
+ has(g, l) {
3227
+ if (typeof l == "symbol") return O.ReflectAdapter.has(g, l);
3228
+ const _ = l.toLowerCase(), k = Object.keys(i).find((P) => P.toLowerCase() === _);
3229
+ return typeof k > "u" ? !1 : O.ReflectAdapter.has(g, k);
3230
+ },
3231
+ deleteProperty(g, l) {
3232
+ if (typeof l == "symbol") return O.ReflectAdapter.deleteProperty(g, l);
3233
+ const _ = l.toLowerCase(), k = Object.keys(i).find((P) => P.toLowerCase() === _);
3234
+ return typeof k > "u" ? !0 : O.ReflectAdapter.deleteProperty(g, k);
3235
+ }
3236
+ });
3237
+ }
3238
+ /**
3239
+ * Seals a Headers instance to prevent modification by throwing an error when
3240
+ * any mutating method is called.
3241
+ */
3242
+ static seal(i) {
3243
+ return new Proxy(i, {
3244
+ get(g, l, _) {
3245
+ switch (l) {
3246
+ case "append":
3247
+ case "delete":
3248
+ case "set":
3249
+ return R.callable;
3250
+ default:
3251
+ return O.ReflectAdapter.get(g, l, _);
3252
+ }
3253
+ }
3254
+ });
3255
+ }
3256
+ /**
3257
+ * Merges a header value into a string. This stores multiple values as an
3258
+ * array, so we need to merge them into a string.
3259
+ *
3260
+ * @param value a header value
3261
+ * @returns a merged header value (a string)
3262
+ */
3263
+ merge(i) {
3264
+ return Array.isArray(i) ? i.join(", ") : i;
3265
+ }
3266
+ /**
3267
+ * Creates a Headers instance from a plain object or a Headers instance.
3268
+ *
3269
+ * @param headers a plain object or a Headers instance
3270
+ * @returns a headers instance
3271
+ */
3272
+ static from(i) {
3273
+ return i instanceof Headers ? i : new v(i);
3274
+ }
3275
+ append(i, g) {
3276
+ const l = this.headers[i];
3277
+ typeof l == "string" ? this.headers[i] = [
3278
+ l,
3279
+ g
3280
+ ] : Array.isArray(l) ? l.push(g) : this.headers[i] = g;
3281
+ }
3282
+ delete(i) {
3283
+ delete this.headers[i];
3284
+ }
3285
+ get(i) {
3286
+ const g = this.headers[i];
3287
+ return typeof g < "u" ? this.merge(g) : null;
3288
+ }
3289
+ has(i) {
3290
+ return typeof this.headers[i] < "u";
3291
+ }
3292
+ set(i, g) {
3293
+ this.headers[i] = g;
3294
+ }
3295
+ forEach(i, g) {
3296
+ for (const [l, _] of this.entries())
3297
+ i.call(g, _, l, this);
3298
+ }
3299
+ *entries() {
3300
+ for (const i of Object.keys(this.headers)) {
3301
+ const g = i.toLowerCase(), l = this.get(g);
3302
+ yield [
3303
+ g,
3304
+ l
3305
+ ];
3306
+ }
3307
+ }
3308
+ *keys() {
3309
+ for (const i of Object.keys(this.headers))
3310
+ yield i.toLowerCase();
3311
+ }
3312
+ *values() {
3313
+ for (const i of Object.keys(this.headers))
3314
+ yield this.get(i);
3315
+ }
3316
+ [Symbol.iterator]() {
3317
+ return this.entries();
3318
+ }
3319
+ }
3320
+ })(tt)), tt;
3321
+ }
3322
+ var Wt;
3323
+ function pr() {
3324
+ return Wt || (Wt = 1, (function(E) {
3325
+ Object.defineProperty(E, "__esModule", {
3326
+ value: !0
3327
+ }), Object.defineProperty(E, "headers", {
3328
+ enumerable: !0,
3329
+ get: function() {
3330
+ return P;
3331
+ }
3332
+ });
3333
+ const c = dr(), O = Ee(), R = Ne(), v = st(), T = be(), i = ot(), g = at(), l = zt(), _ = ge(), k = ye();
3334
+ function P() {
3335
+ const n = "headers", t = O.workAsyncStorage.getStore(), f = R.workUnitAsyncStorage.getStore();
3336
+ if (t) {
3337
+ if (f && f.phase === "after" && !(0, l.isRequestAPICallableInsideAfter)())
3338
+ throw Object.defineProperty(new Error(`Route ${t.route} used "headers" inside "after(...)". This is not supported. If you need this data inside an "after" callback, use "headers" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
3339
+ value: "E367",
3340
+ enumerable: !1,
3341
+ configurable: !0
3342
+ });
3343
+ if (t.forceStatic) {
3344
+ const y = c.HeadersAdapter.seal(new Headers({}));
3345
+ return w(y);
3346
+ }
3347
+ if (f)
3348
+ switch (f.type) {
3349
+ case "cache": {
3350
+ const y = Object.defineProperty(new Error(`Route ${t.route} used "headers" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "headers" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
3351
+ value: "E304",
3352
+ enumerable: !1,
3353
+ configurable: !0
3354
+ });
3355
+ throw Error.captureStackTrace(y, P), t.invalidDynamicUsageError ?? (t.invalidDynamicUsageError = y), y;
3356
+ }
3357
+ case "private-cache": {
3358
+ const y = Object.defineProperty(new Error(`Route ${t.route} used "headers" inside "use cache: private". Accessing "headers" inside a private cache scope is not supported. If you need this data inside a cached function use "headers" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
3359
+ value: "E742",
3360
+ enumerable: !1,
3361
+ configurable: !0
3362
+ });
3363
+ throw Error.captureStackTrace(y, P), t.invalidDynamicUsageError ?? (t.invalidDynamicUsageError = y), y;
3364
+ }
3365
+ case "unstable-cache":
3366
+ throw Object.defineProperty(new Error(`Route ${t.route} used "headers" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "headers" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
3367
+ value: "E127",
3368
+ enumerable: !1,
3369
+ configurable: !0
3370
+ });
3371
+ }
3372
+ if (t.dynamicShouldError)
3373
+ throw Object.defineProperty(new T.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
3374
+ value: "E525",
3375
+ enumerable: !1,
3376
+ configurable: !0
3377
+ });
3378
+ if (f)
3379
+ switch (f.type) {
3380
+ case "prerender":
3381
+ case "prerender-runtime":
3382
+ return V(t, f);
3383
+ case "prerender-client":
3384
+ const y = "`headers`";
3385
+ throw Object.defineProperty(new _.InvariantError(`${y} must not be used within a client component. Next.js should be preventing ${y} from being included in client components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
3386
+ value: "E693",
3387
+ enumerable: !1,
3388
+ configurable: !0
3389
+ });
3390
+ case "prerender-ppr":
3391
+ return (0, v.postponeWithTracking)(t.route, n, f.dynamicTracking);
3392
+ case "prerender-legacy":
3393
+ return (0, v.throwToInterruptStaticGeneration)(n, t, f);
3394
+ case "request":
3395
+ return (0, v.trackDynamicDataInDynamicRender)(f), process.env.NODE_ENV === "development" ? process.env.__NEXT_CACHE_COMPONENTS ? j(f.headers, t == null ? void 0 : t.route) : D(f.headers, t == null ? void 0 : t.route) : process.env.__NEXT_CACHE_COMPONENTS ? q(f.headers) : w(f.headers);
3396
+ }
3397
+ }
3398
+ (0, R.throwForMissingRequestStore)(n);
3399
+ }
3400
+ const N = /* @__PURE__ */ new WeakMap();
3401
+ function V(n, t) {
3402
+ const f = N.get(t);
3403
+ if (f)
3404
+ return f;
3405
+ const y = (0, i.makeHangingPromise)(t.renderSignal, n.route, "`headers()`");
3406
+ return N.set(t, y), y;
3407
+ }
3408
+ function q(n) {
3409
+ const t = N.get(n);
3410
+ if (t)
3411
+ return t;
3412
+ const f = Promise.resolve(n);
3413
+ return N.set(n, f), f;
3414
+ }
3415
+ function w(n) {
3416
+ const t = N.get(n);
3417
+ if (t)
3418
+ return t;
3419
+ const f = Promise.resolve(n);
3420
+ return N.set(n, f), Object.defineProperties(f, {
3421
+ append: {
3422
+ value: n.append.bind(n)
3423
+ },
3424
+ delete: {
3425
+ value: n.delete.bind(n)
3426
+ },
3427
+ get: {
3428
+ value: n.get.bind(n)
3429
+ },
3430
+ has: {
3431
+ value: n.has.bind(n)
3432
+ },
3433
+ set: {
3434
+ value: n.set.bind(n)
3435
+ },
3436
+ getSetCookie: {
3437
+ value: n.getSetCookie.bind(n)
3438
+ },
3439
+ forEach: {
3440
+ value: n.forEach.bind(n)
3441
+ },
3442
+ keys: {
3443
+ value: n.keys.bind(n)
3444
+ },
3445
+ values: {
3446
+ value: n.values.bind(n)
3447
+ },
3448
+ entries: {
3449
+ value: n.entries.bind(n)
3450
+ },
3451
+ [Symbol.iterator]: {
3452
+ value: n[Symbol.iterator].bind(n)
3453
+ }
3454
+ }), f;
3455
+ }
3456
+ function D(n, t) {
3457
+ const f = N.get(n);
3458
+ if (f)
3459
+ return f;
3460
+ const y = (0, i.makeDevtoolsIOAwarePromise)(n);
3461
+ return N.set(n, y), Object.defineProperties(y, {
3462
+ append: {
3463
+ value: function() {
3464
+ const p = `\`headers().append(${U(arguments[0])}, ...)\``;
3465
+ return B(t, p), n.append.apply(n, arguments);
3466
+ }
3467
+ },
3468
+ delete: {
3469
+ value: function() {
3470
+ const p = `\`headers().delete(${U(arguments[0])})\``;
3471
+ return B(t, p), n.delete.apply(n, arguments);
3472
+ }
3473
+ },
3474
+ get: {
3475
+ value: function() {
3476
+ const p = `\`headers().get(${U(arguments[0])})\``;
3477
+ return B(t, p), n.get.apply(n, arguments);
3478
+ }
3479
+ },
3480
+ has: {
3481
+ value: function() {
3482
+ const p = `\`headers().has(${U(arguments[0])})\``;
3483
+ return B(t, p), n.has.apply(n, arguments);
3484
+ }
3485
+ },
3486
+ set: {
3487
+ value: function() {
3488
+ const p = `\`headers().set(${U(arguments[0])}, ...)\``;
3489
+ return B(t, p), n.set.apply(n, arguments);
3490
+ }
3491
+ },
3492
+ getSetCookie: {
3493
+ value: function() {
3494
+ return B(t, "`headers().getSetCookie()`"), n.getSetCookie.apply(n, arguments);
3495
+ }
3496
+ },
3497
+ forEach: {
3498
+ value: function() {
3499
+ return B(t, "`headers().forEach(...)`"), n.forEach.apply(n, arguments);
3500
+ }
3501
+ },
3502
+ keys: {
3503
+ value: function() {
3504
+ return B(t, "`headers().keys()`"), n.keys.apply(n, arguments);
3505
+ }
3506
+ },
3507
+ values: {
3508
+ value: function() {
3509
+ return B(t, "`headers().values()`"), n.values.apply(n, arguments);
3510
+ }
3511
+ },
3512
+ entries: {
3513
+ value: function() {
3514
+ return B(t, "`headers().entries()`"), n.entries.apply(n, arguments);
3515
+ }
3516
+ },
3517
+ [Symbol.iterator]: {
3518
+ value: function() {
3519
+ return B(t, "`...headers()` or similar iteration"), n[Symbol.iterator].apply(n, arguments);
3520
+ }
3521
+ }
3522
+ }), y;
3523
+ }
3524
+ function j(n, t) {
3525
+ const f = N.get(n);
3526
+ if (f)
3527
+ return f;
3528
+ const y = (0, i.makeDevtoolsIOAwarePromise)(n), a = new Proxy(y, {
3529
+ get(p, b, K) {
3530
+ switch (b) {
3531
+ case Symbol.iterator: {
3532
+ X(t, "`...headers()` or similar iteration");
3533
+ break;
3534
+ }
3535
+ case "append":
3536
+ case "delete":
3537
+ case "get":
3538
+ case "has":
3539
+ case "set":
3540
+ case "getSetCookie":
3541
+ case "forEach":
3542
+ case "keys":
3543
+ case "values":
3544
+ case "entries": {
3545
+ X(t, `\`headers().${b}\``);
3546
+ break;
3547
+ }
3548
+ }
3549
+ return k.ReflectAdapter.get(p, b, K);
3550
+ }
3551
+ });
3552
+ return N.set(n, a), a;
3553
+ }
3554
+ function U(n) {
3555
+ return typeof n == "string" ? `'${n}'` : "...";
3556
+ }
3557
+ function B(n, t) {
3558
+ const f = R.workUnitAsyncStorage.getStore();
3559
+ if (f)
3560
+ switch (f.type) {
3561
+ case "request":
3562
+ f.prerenderPhase === !0 && (0, v.trackSynchronousRequestDataAccessInDev)(f);
3563
+ break;
3564
+ }
3565
+ X(n, t);
3566
+ }
3567
+ const X = (0, g.createDedupedByCallsiteServerErrorLoggerDev)(r);
3568
+ function r(n, t) {
3569
+ const f = n ? `Route "${n}" ` : "This route ";
3570
+ return Object.defineProperty(new Error(`${f}used ${t}. \`headers()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
3571
+ value: "E277",
3572
+ enumerable: !1,
3573
+ configurable: !0
3574
+ });
3575
+ }
3576
+ })(et)), et;
3577
+ }
3578
+ var rt = {}, Xt;
3579
+ function hr() {
3580
+ return Xt || (Xt = 1, (function(E) {
3581
+ Object.defineProperty(E, "__esModule", {
3582
+ value: !0
3583
+ }), Object.defineProperty(E, "draftMode", {
3584
+ enumerable: !0,
3585
+ get: function() {
3586
+ return _;
3587
+ }
3588
+ });
3589
+ const c = Ne(), O = Ee(), R = st(), v = at(), T = be(), i = Gt(), g = ge(), l = ye();
3590
+ function _() {
3591
+ const r = "draftMode", n = O.workAsyncStorage.getStore(), t = c.workUnitAsyncStorage.getStore();
3592
+ switch ((!n || !t) && (0, c.throwForMissingRequestStore)(r), t.type) {
3593
+ case "prerender-runtime":
3594
+ return (0, R.delayUntilRuntimeStage)(t, k(t.draftMode, n));
3595
+ case "request":
3596
+ return k(t.draftMode, n);
3597
+ case "cache":
3598
+ case "private-cache":
3599
+ case "unstable-cache":
3600
+ const f = (0, c.getDraftModeProviderForCacheScope)(n, t);
3601
+ if (f)
3602
+ return k(f, n);
3603
+ // Otherwise, we fall through to providing an empty draft mode.
3604
+ // eslint-disable-next-line no-fallthrough
3605
+ case "prerender":
3606
+ case "prerender-client":
3607
+ case "prerender-ppr":
3608
+ case "prerender-legacy":
3609
+ return k(null, n);
3610
+ default:
3611
+ return t;
3612
+ }
3613
+ }
3614
+ function k(r, n) {
3615
+ const t = r ?? P, f = N.get(t);
3616
+ if (f)
3617
+ return f;
3618
+ let y;
3619
+ if (process.env.NODE_ENV === "development" && !(n != null && n.isPrefetchRequest)) {
3620
+ const a = n == null ? void 0 : n.route;
3621
+ if (process.env.__NEXT_CACHE_COMPONENTS)
3622
+ return w(r, a);
3623
+ y = q(r, a);
3624
+ } else {
3625
+ if (process.env.__NEXT_CACHE_COMPONENTS)
3626
+ return Promise.resolve(new D(r));
3627
+ y = V(r);
3628
+ }
3629
+ return N.set(t, y), y;
3630
+ }
3631
+ const P = {}, N = /* @__PURE__ */ new WeakMap();
3632
+ function V(r) {
3633
+ const n = new D(r), t = Promise.resolve(n);
3634
+ return Object.defineProperty(t, "isEnabled", {
3635
+ get() {
3636
+ return n.isEnabled;
3637
+ },
3638
+ enumerable: !0,
3639
+ configurable: !0
3640
+ }), t.enable = n.enable.bind(n), t.disable = n.disable.bind(n), t;
3641
+ }
3642
+ function q(r, n) {
3643
+ const t = new D(r), f = Promise.resolve(t);
3644
+ return Object.defineProperty(f, "isEnabled", {
3645
+ get() {
3646
+ return j(n, "`draftMode().isEnabled`"), t.isEnabled;
3647
+ },
3648
+ enumerable: !0,
3649
+ configurable: !0
3650
+ }), Object.defineProperty(f, "enable", {
3651
+ value: function() {
3652
+ return j(n, "`draftMode().enable()`"), t.enable.apply(t, arguments);
3653
+ }
3654
+ }), Object.defineProperty(f, "disable", {
3655
+ value: function() {
3656
+ return j(n, "`draftMode().disable()`"), t.disable.apply(t, arguments);
3657
+ }
3658
+ }), f;
3659
+ }
3660
+ function w(r, n) {
3661
+ const t = new D(r), f = Promise.resolve(t);
3662
+ return new Proxy(f, {
3663
+ get(a, p, b) {
3664
+ switch (p) {
3665
+ case "isEnabled":
3666
+ U(n, `\`draftMode().${p}\``);
3667
+ break;
3668
+ case "enable":
3669
+ case "disable": {
3670
+ U(n, `\`draftMode().${p}()\``);
3671
+ break;
3672
+ }
3673
+ }
3674
+ return l.ReflectAdapter.get(a, p, b);
3675
+ }
3676
+ });
3677
+ }
3678
+ class D {
3679
+ constructor(n) {
3680
+ this._provider = n;
3681
+ }
3682
+ get isEnabled() {
3683
+ return this._provider !== null ? this._provider.isEnabled : !1;
3684
+ }
3685
+ enable() {
3686
+ X("draftMode().enable()", this.enable), this._provider !== null && this._provider.enable();
3687
+ }
3688
+ disable() {
3689
+ X("draftMode().disable()", this.disable), this._provider !== null && this._provider.disable();
3690
+ }
3691
+ }
3692
+ function j(r, n) {
3693
+ const t = c.workUnitAsyncStorage.getStore();
3694
+ if (t)
3695
+ switch (t.type) {
3696
+ case "request":
3697
+ t.prerenderPhase === !0 && (0, R.trackSynchronousRequestDataAccessInDev)(t);
3698
+ break;
3699
+ }
3700
+ U(r, n);
3701
+ }
3702
+ const U = (0, v.createDedupedByCallsiteServerErrorLoggerDev)(B);
3703
+ function B(r, n) {
3704
+ const t = r ? `Route "${r}" ` : "This route ";
3705
+ return Object.defineProperty(new Error(`${t}used ${n}. \`draftMode()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`), "__NEXT_ERROR_CODE", {
3706
+ value: "E377",
3707
+ enumerable: !1,
3708
+ configurable: !0
3709
+ });
3710
+ }
3711
+ function X(r, n) {
3712
+ const t = O.workAsyncStorage.getStore(), f = c.workUnitAsyncStorage.getStore();
3713
+ if (t) {
3714
+ if ((f == null ? void 0 : f.phase) === "after")
3715
+ throw Object.defineProperty(new Error(`Route ${t.route} used "${r}" inside \`after\`. The enabled status of draftMode can be read inside \`after\` but you cannot enable or disable draftMode. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`), "__NEXT_ERROR_CODE", {
3716
+ value: "E348",
3717
+ enumerable: !1,
3718
+ configurable: !0
3719
+ });
3720
+ if (t.dynamicShouldError)
3721
+ throw Object.defineProperty(new T.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
3722
+ value: "E553",
3723
+ enumerable: !1,
3724
+ configurable: !0
3725
+ });
3726
+ if (f)
3727
+ switch (f.type) {
3728
+ case "cache":
3729
+ case "private-cache": {
3730
+ const p = Object.defineProperty(new Error(`Route ${t.route} used "${r}" inside "use cache". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
3731
+ value: "E246",
3732
+ enumerable: !1,
3733
+ configurable: !0
3734
+ });
3735
+ throw Error.captureStackTrace(p, n), t.invalidDynamicUsageError ?? (t.invalidDynamicUsageError = p), p;
3736
+ }
3737
+ case "unstable-cache":
3738
+ throw Object.defineProperty(new Error(`Route ${t.route} used "${r}" inside a function cached with "unstable_cache(...)". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
3739
+ value: "E259",
3740
+ enumerable: !1,
3741
+ configurable: !0
3742
+ });
3743
+ case "prerender":
3744
+ case "prerender-runtime": {
3745
+ const p = Object.defineProperty(new Error(`Route ${t.route} used ${r} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`), "__NEXT_ERROR_CODE", {
3746
+ value: "E126",
3747
+ enumerable: !1,
3748
+ configurable: !0
3749
+ });
3750
+ return (0, R.abortAndThrowOnSynchronousRequestDataAccess)(t.route, r, p, f);
3751
+ }
3752
+ case "prerender-client":
3753
+ const y = "`draftMode`";
3754
+ throw Object.defineProperty(new g.InvariantError(`${y} must not be used within a client component. Next.js should be preventing ${y} from being included in client components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
3755
+ value: "E693",
3756
+ enumerable: !1,
3757
+ configurable: !0
3758
+ });
3759
+ case "prerender-ppr":
3760
+ return (0, R.postponeWithTracking)(t.route, r, f.dynamicTracking);
3761
+ case "prerender-legacy":
3762
+ f.revalidate = 0;
3763
+ const a = Object.defineProperty(new i.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
3764
+ value: "E558",
3765
+ enumerable: !1,
3766
+ configurable: !0
3767
+ });
3768
+ throw t.dynamicUsageDescription = r, t.dynamicUsageStack = a.stack, a;
3769
+ case "request":
3770
+ (0, R.trackDynamicDataInDynamicRender)(f);
3771
+ break;
3772
+ }
3773
+ }
3774
+ }
3775
+ })(rt)), rt;
3776
+ }
3777
+ var Bt;
3778
+ function mr() {
3779
+ return Bt || (Bt = 1, me.cookies = lr().cookies, me.headers = pr().headers, me.draftMode = hr().draftMode), me;
3780
+ }
3781
+ var _r = mr();
3782
+ const yr = /* @__PURE__ */ Zt({
3783
+ __proto__: null
3784
+ }, [_r]);
3785
+ export {
3786
+ yr as h
3787
+ };