@ichaingo/header 1.3.88 → 1.3.89
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.
|
@@ -7,25 +7,25 @@ var L = {}, H = {}, ee = {}, te = {}, re, Ee;
|
|
|
7
7
|
function ft() {
|
|
8
8
|
if (Ee) return re;
|
|
9
9
|
Ee = 1;
|
|
10
|
-
var f = Object.defineProperty,
|
|
11
|
-
for (var
|
|
12
|
-
f(e,
|
|
13
|
-
}, k = (e, s,
|
|
10
|
+
var f = Object.defineProperty, y = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyNames, _ = Object.prototype.hasOwnProperty, d = (e, s) => {
|
|
11
|
+
for (var a in s)
|
|
12
|
+
f(e, a, { get: s[a], enumerable: !0 });
|
|
13
|
+
}, k = (e, s, a, t) => {
|
|
14
14
|
if (s && typeof s == "object" || typeof s == "function")
|
|
15
15
|
for (let r of g(s))
|
|
16
|
-
!_.call(e, r) && r !==
|
|
16
|
+
!_.call(e, r) && r !== a && f(e, r, { get: () => s[r], enumerable: !(t = y(s, r)) || t.enumerable });
|
|
17
17
|
return e;
|
|
18
|
-
}, o = (e) => k(f({}, "__esModule", { value: !0 }), e),
|
|
19
|
-
d(
|
|
18
|
+
}, o = (e) => k(f({}, "__esModule", { value: !0 }), e), i = {};
|
|
19
|
+
d(i, {
|
|
20
20
|
RequestCookies: () => v,
|
|
21
21
|
ResponseCookies: () => m,
|
|
22
22
|
parseCookie: () => b,
|
|
23
23
|
parseSetCookie: () => x,
|
|
24
|
-
stringifyCookie: () =>
|
|
25
|
-
}), re = o(
|
|
26
|
-
function
|
|
24
|
+
stringifyCookie: () => p
|
|
25
|
+
}), re = o(i);
|
|
26
|
+
function p(e) {
|
|
27
27
|
var s;
|
|
28
|
-
const
|
|
28
|
+
const a = [
|
|
29
29
|
"path" in e && e.path && `Path=${e.path}`,
|
|
30
30
|
"expires" in e && (e.expires || e.expires === 0) && `Expires=${(typeof e.expires == "number" ? new Date(e.expires) : e.expires).toUTCString()}`,
|
|
31
31
|
"maxAge" in e && typeof e.maxAge == "number" && `Max-Age=${e.maxAge}`,
|
|
@@ -36,19 +36,19 @@ function ft() {
|
|
|
36
36
|
"partitioned" in e && e.partitioned && "Partitioned",
|
|
37
37
|
"priority" in e && e.priority && `Priority=${e.priority}`
|
|
38
38
|
].filter(Boolean), t = `${e.name}=${encodeURIComponent((s = e.value) != null ? s : "")}`;
|
|
39
|
-
return
|
|
39
|
+
return a.length === 0 ? t : `${t}; ${a.join("; ")}`;
|
|
40
40
|
}
|
|
41
41
|
function b(e) {
|
|
42
42
|
const s = /* @__PURE__ */ new Map();
|
|
43
|
-
for (const
|
|
44
|
-
if (!
|
|
43
|
+
for (const a of e.split(/; */)) {
|
|
44
|
+
if (!a)
|
|
45
45
|
continue;
|
|
46
|
-
const t =
|
|
46
|
+
const t = a.indexOf("=");
|
|
47
47
|
if (t === -1) {
|
|
48
|
-
s.set(
|
|
48
|
+
s.set(a, "true");
|
|
49
49
|
continue;
|
|
50
50
|
}
|
|
51
|
-
const [r, l] = [
|
|
51
|
+
const [r, l] = [a.slice(0, t), a.slice(t + 1)];
|
|
52
52
|
try {
|
|
53
53
|
s.set(r, decodeURIComponent(l ?? "true"));
|
|
54
54
|
} catch {
|
|
@@ -59,7 +59,7 @@ function ft() {
|
|
|
59
59
|
function x(e) {
|
|
60
60
|
if (!e)
|
|
61
61
|
return;
|
|
62
|
-
const [[s,
|
|
62
|
+
const [[s, a], ...t] = b(e), {
|
|
63
63
|
domain: r,
|
|
64
64
|
expires: l,
|
|
65
65
|
httponly: O,
|
|
@@ -76,7 +76,7 @@ function ft() {
|
|
|
76
76
|
])
|
|
77
77
|
), Y = {
|
|
78
78
|
name: s,
|
|
79
|
-
value: decodeURIComponent(
|
|
79
|
+
value: decodeURIComponent(a),
|
|
80
80
|
domain: r,
|
|
81
81
|
...l && { expires: new Date(l) },
|
|
82
82
|
...O && { httpOnly: !0 },
|
|
@@ -91,8 +91,8 @@ function ft() {
|
|
|
91
91
|
}
|
|
92
92
|
function S(e) {
|
|
93
93
|
const s = {};
|
|
94
|
-
for (const
|
|
95
|
-
e[
|
|
94
|
+
for (const a in e)
|
|
95
|
+
e[a] && (s[a] = e[a]);
|
|
96
96
|
return s;
|
|
97
97
|
}
|
|
98
98
|
var E = ["strict", "lax", "none"];
|
|
@@ -106,24 +106,24 @@ function ft() {
|
|
|
106
106
|
function D(e) {
|
|
107
107
|
if (!e)
|
|
108
108
|
return [];
|
|
109
|
-
var s = [],
|
|
109
|
+
var s = [], a = 0, t, r, l, O, R;
|
|
110
110
|
function w() {
|
|
111
|
-
for (;
|
|
112
|
-
|
|
113
|
-
return
|
|
111
|
+
for (; a < e.length && /\s/.test(e.charAt(a)); )
|
|
112
|
+
a += 1;
|
|
113
|
+
return a < e.length;
|
|
114
114
|
}
|
|
115
115
|
function C() {
|
|
116
|
-
return r = e.charAt(
|
|
117
|
-
}
|
|
118
|
-
for (;
|
|
119
|
-
for (t =
|
|
120
|
-
if (r = e.charAt(
|
|
121
|
-
for (l =
|
|
122
|
-
|
|
123
|
-
|
|
116
|
+
return r = e.charAt(a), r !== "=" && r !== ";" && r !== ",";
|
|
117
|
+
}
|
|
118
|
+
for (; a < e.length; ) {
|
|
119
|
+
for (t = a, R = !1; w(); )
|
|
120
|
+
if (r = e.charAt(a), r === ",") {
|
|
121
|
+
for (l = a, a += 1, w(), O = a; a < e.length && C(); )
|
|
122
|
+
a += 1;
|
|
123
|
+
a < e.length && e.charAt(a) === "=" ? (R = !0, a = O, s.push(e.substring(t, l)), t = a) : a = l + 1;
|
|
124
124
|
} else
|
|
125
|
-
|
|
126
|
-
(!R ||
|
|
125
|
+
a += 1;
|
|
126
|
+
(!R || a >= e.length) && s.push(e.substring(t, e.length));
|
|
127
127
|
}
|
|
128
128
|
return s;
|
|
129
129
|
}
|
|
@@ -132,8 +132,8 @@ function ft() {
|
|
|
132
132
|
this._parsed = /* @__PURE__ */ new Map(), this._headers = e;
|
|
133
133
|
const s = e.get("cookie");
|
|
134
134
|
if (s) {
|
|
135
|
-
const
|
|
136
|
-
for (const [t, r] of
|
|
135
|
+
const a = b(s);
|
|
136
|
+
for (const [t, r] of a)
|
|
137
137
|
this._parsed.set(t, { name: t, value: r });
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -152,31 +152,31 @@ function ft() {
|
|
|
152
152
|
}
|
|
153
153
|
getAll(...e) {
|
|
154
154
|
var s;
|
|
155
|
-
const
|
|
155
|
+
const a = Array.from(this._parsed);
|
|
156
156
|
if (!e.length)
|
|
157
|
-
return
|
|
157
|
+
return a.map(([r, l]) => l);
|
|
158
158
|
const t = typeof e[0] == "string" ? e[0] : (s = e[0]) == null ? void 0 : s.name;
|
|
159
|
-
return
|
|
159
|
+
return a.filter(([r]) => r === t).map(([r, l]) => l);
|
|
160
160
|
}
|
|
161
161
|
has(e) {
|
|
162
162
|
return this._parsed.has(e);
|
|
163
163
|
}
|
|
164
164
|
set(...e) {
|
|
165
|
-
const [s,
|
|
166
|
-
return t.set(s, { name: s, value:
|
|
165
|
+
const [s, a] = e.length === 1 ? [e[0].name, e[0].value] : e, t = this._parsed;
|
|
166
|
+
return t.set(s, { name: s, value: a }), this._headers.set(
|
|
167
167
|
"cookie",
|
|
168
|
-
Array.from(t).map(([r, l]) =>
|
|
168
|
+
Array.from(t).map(([r, l]) => p(l)).join("; ")
|
|
169
169
|
), this;
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* Delete the cookies matching the passed name or names in the request.
|
|
173
173
|
*/
|
|
174
174
|
delete(e) {
|
|
175
|
-
const s = this._parsed,
|
|
175
|
+
const s = this._parsed, a = Array.isArray(e) ? e.map((t) => s.delete(t)) : s.delete(e);
|
|
176
176
|
return this._headers.set(
|
|
177
177
|
"cookie",
|
|
178
|
-
Array.from(s).map(([t, r]) =>
|
|
179
|
-
),
|
|
178
|
+
Array.from(s).map(([t, r]) => p(r)).join("; ")
|
|
179
|
+
), a;
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
182
182
|
* Delete all the cookies in the cookies in the request.
|
|
@@ -196,9 +196,9 @@ function ft() {
|
|
|
196
196
|
}, m = class {
|
|
197
197
|
constructor(e) {
|
|
198
198
|
this._parsed = /* @__PURE__ */ new Map();
|
|
199
|
-
var s,
|
|
199
|
+
var s, a, t;
|
|
200
200
|
this._headers = e;
|
|
201
|
-
const r = (t = (
|
|
201
|
+
const r = (t = (a = (s = e.getSetCookie) == null ? void 0 : s.call(e)) != null ? a : e.get("set-cookie")) != null ? t : [], l = Array.isArray(r) ? r : D(r);
|
|
202
202
|
for (const O of l) {
|
|
203
203
|
const R = x(O);
|
|
204
204
|
R && this._parsed.set(R.name, R);
|
|
@@ -216,11 +216,11 @@ function ft() {
|
|
|
216
216
|
*/
|
|
217
217
|
getAll(...e) {
|
|
218
218
|
var s;
|
|
219
|
-
const
|
|
219
|
+
const a = Array.from(this._parsed.values());
|
|
220
220
|
if (!e.length)
|
|
221
|
-
return
|
|
221
|
+
return a;
|
|
222
222
|
const t = typeof e[0] == "string" ? e[0] : (s = e[0]) == null ? void 0 : s.name;
|
|
223
|
-
return
|
|
223
|
+
return a.filter((r) => r.name === t);
|
|
224
224
|
}
|
|
225
225
|
has(e) {
|
|
226
226
|
return this._parsed.has(e);
|
|
@@ -229,27 +229,27 @@ function ft() {
|
|
|
229
229
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
230
230
|
*/
|
|
231
231
|
set(...e) {
|
|
232
|
-
const [s,
|
|
233
|
-
return r.set(s, n({ name: s, value:
|
|
232
|
+
const [s, a, t] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e, r = this._parsed;
|
|
233
|
+
return r.set(s, n({ name: s, value: a, ...t })), h(r, this._headers), this;
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
236
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
237
237
|
*/
|
|
238
238
|
delete(...e) {
|
|
239
|
-
const [s,
|
|
240
|
-
return this.set({ ...
|
|
239
|
+
const [s, a] = typeof e[0] == "string" ? [e[0]] : [e[0].name, e[0]];
|
|
240
|
+
return this.set({ ...a, name: s, value: "", expires: /* @__PURE__ */ new Date(0) });
|
|
241
241
|
}
|
|
242
242
|
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
243
243
|
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
244
244
|
}
|
|
245
245
|
toString() {
|
|
246
|
-
return [...this._parsed.values()].map(
|
|
246
|
+
return [...this._parsed.values()].map(p).join("; ");
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
function
|
|
249
|
+
function h(e, s) {
|
|
250
250
|
s.delete("set-cookie");
|
|
251
|
-
for (const [,
|
|
252
|
-
const t =
|
|
251
|
+
for (const [, a] of e) {
|
|
252
|
+
const t = p(a);
|
|
253
253
|
s.append("set-cookie", t);
|
|
254
254
|
}
|
|
255
255
|
}
|
|
@@ -264,13 +264,13 @@ function Ze() {
|
|
|
264
264
|
Object.defineProperty(f, "__esModule", {
|
|
265
265
|
value: !0
|
|
266
266
|
});
|
|
267
|
-
function
|
|
267
|
+
function y(_, d) {
|
|
268
268
|
for (var k in d) Object.defineProperty(_, k, {
|
|
269
269
|
enumerable: !0,
|
|
270
270
|
get: d[k]
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
|
|
273
|
+
y(f, {
|
|
274
274
|
RequestCookies: function() {
|
|
275
275
|
return g.RequestCookies;
|
|
276
276
|
},
|
|
@@ -292,10 +292,10 @@ function Qe() {
|
|
|
292
292
|
}), Object.defineProperty(f, "ReflectAdapter", {
|
|
293
293
|
enumerable: !0,
|
|
294
294
|
get: function() {
|
|
295
|
-
return
|
|
295
|
+
return y;
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
|
-
class
|
|
298
|
+
class y {
|
|
299
299
|
static get(_, d, k) {
|
|
300
300
|
const o = Reflect.get(_, d, k);
|
|
301
301
|
return typeof o == "function" ? o.bind(_) : o;
|
|
@@ -318,13 +318,13 @@ function we() {
|
|
|
318
318
|
Object.defineProperty(f, "__esModule", {
|
|
319
319
|
value: !0
|
|
320
320
|
});
|
|
321
|
-
function
|
|
322
|
-
for (var x in b) Object.defineProperty(
|
|
321
|
+
function y(p, b) {
|
|
322
|
+
for (var x in b) Object.defineProperty(p, x, {
|
|
323
323
|
enumerable: !0,
|
|
324
324
|
get: b[x]
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
|
-
|
|
327
|
+
y(f, {
|
|
328
328
|
bindSnapshot: function() {
|
|
329
329
|
return o;
|
|
330
330
|
},
|
|
@@ -332,7 +332,7 @@ function we() {
|
|
|
332
332
|
return k;
|
|
333
333
|
},
|
|
334
334
|
createSnapshot: function() {
|
|
335
|
-
return
|
|
335
|
+
return i;
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
const g = new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");
|
|
@@ -359,12 +359,12 @@ function we() {
|
|
|
359
359
|
function k() {
|
|
360
360
|
return d ? new d() : new _();
|
|
361
361
|
}
|
|
362
|
-
function o(
|
|
363
|
-
return d ? d.bind(
|
|
362
|
+
function o(p) {
|
|
363
|
+
return d ? d.bind(p) : _.bind(p);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
return d ? d.snapshot() : function(
|
|
367
|
-
return
|
|
365
|
+
function i() {
|
|
366
|
+
return d ? d.snapshot() : function(p, ...b) {
|
|
367
|
+
return p(...b);
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
})(ae)), ae;
|
|
@@ -391,10 +391,10 @@ function U() {
|
|
|
391
391
|
}), Object.defineProperty(f, "workAsyncStorage", {
|
|
392
392
|
enumerable: !0,
|
|
393
393
|
get: function() {
|
|
394
|
-
return
|
|
394
|
+
return y.workAsyncStorageInstance;
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
|
-
const
|
|
397
|
+
const y = pt();
|
|
398
398
|
})(oe)), oe;
|
|
399
399
|
}
|
|
400
400
|
var ie = {}, ce = {}, Te;
|
|
@@ -417,13 +417,13 @@ function W() {
|
|
|
417
417
|
Object.defineProperty(f, "__esModule", {
|
|
418
418
|
value: !0
|
|
419
419
|
});
|
|
420
|
-
function
|
|
421
|
-
for (var
|
|
420
|
+
function y(o, i) {
|
|
421
|
+
for (var p in i) Object.defineProperty(o, p, {
|
|
422
422
|
enumerable: !0,
|
|
423
|
-
get:
|
|
423
|
+
get: i[p]
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
|
-
|
|
426
|
+
y(f, {
|
|
427
427
|
getExpectedRequestStore: function() {
|
|
428
428
|
return _;
|
|
429
429
|
},
|
|
@@ -439,15 +439,15 @@ function W() {
|
|
|
439
439
|
});
|
|
440
440
|
const g = ht();
|
|
441
441
|
function _(o) {
|
|
442
|
-
const
|
|
443
|
-
if (
|
|
444
|
-
if (
|
|
445
|
-
return
|
|
446
|
-
if (
|
|
442
|
+
const i = g.workUnitAsyncStorageInstance.getStore();
|
|
443
|
+
if (i) {
|
|
444
|
+
if (i.type === "request")
|
|
445
|
+
return i;
|
|
446
|
+
if (i.type === "prerender" || i.type === "prerender-ppr" || i.type === "prerender-legacy")
|
|
447
447
|
throw new Error(`\`${o}\` cannot be called inside a prerender. This is a bug in Next.js.`);
|
|
448
|
-
if (
|
|
448
|
+
if (i.type === "cache")
|
|
449
449
|
throw new Error(`\`${o}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`);
|
|
450
|
-
if (
|
|
450
|
+
if (i.type === "unstable-cache")
|
|
451
451
|
throw new Error(`\`${o}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);
|
|
452
452
|
}
|
|
453
453
|
throw new Error(`\`${o}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`);
|
|
@@ -466,13 +466,13 @@ function yt() {
|
|
|
466
466
|
Object.defineProperty(f, "__esModule", {
|
|
467
467
|
value: !0
|
|
468
468
|
});
|
|
469
|
-
function
|
|
469
|
+
function y(D, v) {
|
|
470
470
|
for (var m in v) Object.defineProperty(D, m, {
|
|
471
471
|
enumerable: !0,
|
|
472
472
|
get: v[m]
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
|
-
|
|
475
|
+
y(f, {
|
|
476
476
|
MutableRequestCookiesAdapter: function() {
|
|
477
477
|
return S;
|
|
478
478
|
},
|
|
@@ -480,7 +480,7 @@ function yt() {
|
|
|
480
480
|
return o;
|
|
481
481
|
},
|
|
482
482
|
RequestCookiesAdapter: function() {
|
|
483
|
-
return
|
|
483
|
+
return i;
|
|
484
484
|
},
|
|
485
485
|
appendMutableCookies: function() {
|
|
486
486
|
return x;
|
|
@@ -507,47 +507,47 @@ function yt() {
|
|
|
507
507
|
throw new o();
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
class
|
|
510
|
+
class i {
|
|
511
511
|
static seal(v) {
|
|
512
512
|
return new Proxy(v, {
|
|
513
|
-
get(m,
|
|
514
|
-
switch (
|
|
513
|
+
get(m, h, n) {
|
|
514
|
+
switch (h) {
|
|
515
515
|
case "clear":
|
|
516
516
|
case "delete":
|
|
517
517
|
case "set":
|
|
518
518
|
return o.callable;
|
|
519
519
|
default:
|
|
520
|
-
return _.ReflectAdapter.get(m,
|
|
520
|
+
return _.ReflectAdapter.get(m, h, n);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
const
|
|
526
|
+
const p = Symbol.for("next.mutated.cookies");
|
|
527
527
|
function b(D) {
|
|
528
|
-
const v = D[
|
|
528
|
+
const v = D[p];
|
|
529
529
|
return !v || !Array.isArray(v) || v.length === 0 ? [] : v;
|
|
530
530
|
}
|
|
531
531
|
function x(D, v) {
|
|
532
532
|
const m = b(v);
|
|
533
533
|
if (m.length === 0)
|
|
534
534
|
return !1;
|
|
535
|
-
const
|
|
535
|
+
const h = new g.ResponseCookies(D), n = h.getAll();
|
|
536
536
|
for (const e of m)
|
|
537
|
-
|
|
537
|
+
h.set(e);
|
|
538
538
|
for (const e of n)
|
|
539
|
-
|
|
539
|
+
h.set(e);
|
|
540
540
|
return !0;
|
|
541
541
|
}
|
|
542
542
|
class S {
|
|
543
543
|
static wrap(v, m) {
|
|
544
|
-
const
|
|
544
|
+
const h = new g.ResponseCookies(new Headers());
|
|
545
545
|
for (const t of v.getAll())
|
|
546
|
-
|
|
546
|
+
h.set(t);
|
|
547
547
|
let n = [];
|
|
548
548
|
const e = /* @__PURE__ */ new Set(), s = () => {
|
|
549
549
|
const t = d.workAsyncStorage.getStore();
|
|
550
|
-
if (t && (t.pathWasRevalidated = !0), n =
|
|
550
|
+
if (t && (t.pathWasRevalidated = !0), n = h.getAll().filter((l) => e.has(l.name)), m) {
|
|
551
551
|
const l = [];
|
|
552
552
|
for (const O of n) {
|
|
553
553
|
const R = new g.ResponseCookies(new Headers());
|
|
@@ -555,11 +555,11 @@ function yt() {
|
|
|
555
555
|
}
|
|
556
556
|
m(l);
|
|
557
557
|
}
|
|
558
|
-
},
|
|
558
|
+
}, a = new Proxy(h, {
|
|
559
559
|
get(t, r, l) {
|
|
560
560
|
switch (r) {
|
|
561
561
|
// A special symbol to get the modified cookie values
|
|
562
|
-
case
|
|
562
|
+
case p:
|
|
563
563
|
return n;
|
|
564
564
|
// TODO: Throw error if trying to set a cookie after the response
|
|
565
565
|
// headers have been set.
|
|
@@ -567,7 +567,7 @@ function yt() {
|
|
|
567
567
|
return function(...O) {
|
|
568
568
|
e.add(typeof O[0] == "string" ? O[0] : O[0].name);
|
|
569
569
|
try {
|
|
570
|
-
return t.delete(...O),
|
|
570
|
+
return t.delete(...O), a;
|
|
571
571
|
} finally {
|
|
572
572
|
s();
|
|
573
573
|
}
|
|
@@ -576,7 +576,7 @@ function yt() {
|
|
|
576
576
|
return function(...O) {
|
|
577
577
|
e.add(typeof O[0] == "string" ? O[0] : O[0].name);
|
|
578
578
|
try {
|
|
579
|
-
return t.set(...O),
|
|
579
|
+
return t.set(...O), a;
|
|
580
580
|
} finally {
|
|
581
581
|
s();
|
|
582
582
|
}
|
|
@@ -586,13 +586,13 @@ function yt() {
|
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
});
|
|
589
|
-
return
|
|
589
|
+
return a;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
function E(D) {
|
|
593
593
|
const v = new Proxy(D, {
|
|
594
|
-
get(m,
|
|
595
|
-
switch (
|
|
594
|
+
get(m, h, n) {
|
|
595
|
+
switch (h) {
|
|
596
596
|
case "delete":
|
|
597
597
|
return function(...e) {
|
|
598
598
|
return I("cookies().delete"), m.delete(...e), v;
|
|
@@ -602,7 +602,7 @@ function yt() {
|
|
|
602
602
|
return I("cookies().set"), m.set(...e), v;
|
|
603
603
|
};
|
|
604
604
|
default:
|
|
605
|
-
return _.ReflectAdapter.get(m,
|
|
605
|
+
return _.ReflectAdapter.get(m, h, n);
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
});
|
|
@@ -626,17 +626,17 @@ function yt() {
|
|
|
626
626
|
}
|
|
627
627
|
var ue = {}, V = { exports: {} }, Ce;
|
|
628
628
|
function He() {
|
|
629
|
-
return Ce || (Ce = 1, (function(f,
|
|
630
|
-
Object.defineProperty(
|
|
629
|
+
return Ce || (Ce = 1, (function(f, y) {
|
|
630
|
+
Object.defineProperty(y, "__esModule", {
|
|
631
631
|
value: !0
|
|
632
632
|
});
|
|
633
|
-
function g(o,
|
|
634
|
-
for (var
|
|
633
|
+
function g(o, i) {
|
|
634
|
+
for (var p in i) Object.defineProperty(o, p, {
|
|
635
635
|
enumerable: !0,
|
|
636
|
-
get:
|
|
636
|
+
get: i[p]
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
|
-
g(
|
|
639
|
+
g(y, {
|
|
640
640
|
DynamicServerError: function() {
|
|
641
641
|
return d;
|
|
642
642
|
},
|
|
@@ -646,29 +646,29 @@ function He() {
|
|
|
646
646
|
});
|
|
647
647
|
const _ = "DYNAMIC_SERVER_USAGE";
|
|
648
648
|
class d extends Error {
|
|
649
|
-
constructor(
|
|
650
|
-
super("Dynamic server usage: " +
|
|
649
|
+
constructor(i) {
|
|
650
|
+
super("Dynamic server usage: " + i), this.description = i, this.digest = _;
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
function k(o) {
|
|
654
654
|
return typeof o != "object" || o === null || !("digest" in o) || typeof o.digest != "string" ? !1 : o.digest === _;
|
|
655
655
|
}
|
|
656
|
-
(typeof
|
|
656
|
+
(typeof y.default == "function" || typeof y.default == "object" && y.default !== null) && typeof y.default.__esModule > "u" && (Object.defineProperty(y.default, "__esModule", { value: !0 }), Object.assign(y.default, y), f.exports = y.default);
|
|
657
657
|
})(V, V.exports)), V.exports;
|
|
658
658
|
}
|
|
659
659
|
var z = { exports: {} }, je;
|
|
660
660
|
function B() {
|
|
661
|
-
return je || (je = 1, (function(f,
|
|
662
|
-
Object.defineProperty(
|
|
661
|
+
return je || (je = 1, (function(f, y) {
|
|
662
|
+
Object.defineProperty(y, "__esModule", {
|
|
663
663
|
value: !0
|
|
664
664
|
});
|
|
665
|
-
function g(o,
|
|
666
|
-
for (var
|
|
665
|
+
function g(o, i) {
|
|
666
|
+
for (var p in i) Object.defineProperty(o, p, {
|
|
667
667
|
enumerable: !0,
|
|
668
|
-
get:
|
|
668
|
+
get: i[p]
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
|
-
g(
|
|
671
|
+
g(y, {
|
|
672
672
|
StaticGenBailoutError: function() {
|
|
673
673
|
return d;
|
|
674
674
|
},
|
|
@@ -678,14 +678,14 @@ function B() {
|
|
|
678
678
|
});
|
|
679
679
|
const _ = "NEXT_STATIC_GEN_BAILOUT";
|
|
680
680
|
class d extends Error {
|
|
681
|
-
constructor(...
|
|
682
|
-
super(...
|
|
681
|
+
constructor(...i) {
|
|
682
|
+
super(...i), this.code = _;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
function k(o) {
|
|
686
686
|
return typeof o != "object" || o === null || !("code" in o) ? !1 : o.code === _;
|
|
687
687
|
}
|
|
688
|
-
(typeof
|
|
688
|
+
(typeof y.default == "function" || typeof y.default == "object" && y.default !== null) && typeof y.default.__esModule > "u" && (Object.defineProperty(y.default, "__esModule", { value: !0 }), Object.assign(y.default, y), f.exports = y.default);
|
|
689
689
|
})(z, z.exports)), z.exports;
|
|
690
690
|
}
|
|
691
691
|
var le = {}, Me;
|
|
@@ -696,13 +696,13 @@ function _e() {
|
|
|
696
696
|
}), Object.defineProperty(f, "makeHangingPromise", {
|
|
697
697
|
enumerable: !0,
|
|
698
698
|
get: function() {
|
|
699
|
-
return
|
|
699
|
+
return y;
|
|
700
700
|
}
|
|
701
701
|
});
|
|
702
|
-
function
|
|
703
|
-
const k = new Promise((o,
|
|
702
|
+
function y(_, d) {
|
|
703
|
+
const k = new Promise((o, i) => {
|
|
704
704
|
_.addEventListener("abort", () => {
|
|
705
|
-
|
|
705
|
+
i(new Error(`During prerendering, ${d} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${d} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`));
|
|
706
706
|
}, {
|
|
707
707
|
once: !0
|
|
708
708
|
});
|
|
@@ -719,13 +719,13 @@ function mt() {
|
|
|
719
719
|
Object.defineProperty(f, "__esModule", {
|
|
720
720
|
value: !0
|
|
721
721
|
});
|
|
722
|
-
function
|
|
723
|
-
for (var
|
|
722
|
+
function y(k, o) {
|
|
723
|
+
for (var i in o) Object.defineProperty(k, i, {
|
|
724
724
|
enumerable: !0,
|
|
725
|
-
get: o[
|
|
725
|
+
get: o[i]
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
|
-
|
|
728
|
+
y(f, {
|
|
729
729
|
METADATA_BOUNDARY_NAME: function() {
|
|
730
730
|
return g;
|
|
731
731
|
},
|
|
@@ -745,21 +745,21 @@ function Ae() {
|
|
|
745
745
|
Object.defineProperty(f, "__esModule", {
|
|
746
746
|
value: !0
|
|
747
747
|
});
|
|
748
|
-
function
|
|
748
|
+
function y(u, c) {
|
|
749
749
|
for (var A in c) Object.defineProperty(u, A, {
|
|
750
750
|
enumerable: !0,
|
|
751
751
|
get: c[A]
|
|
752
752
|
});
|
|
753
753
|
}
|
|
754
|
-
|
|
754
|
+
y(f, {
|
|
755
755
|
Postpone: function() {
|
|
756
|
-
return
|
|
756
|
+
return a;
|
|
757
757
|
},
|
|
758
758
|
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
759
759
|
return e;
|
|
760
760
|
},
|
|
761
761
|
abortOnSynchronousPlatformIOAccess: function() {
|
|
762
|
-
return
|
|
762
|
+
return h;
|
|
763
763
|
},
|
|
764
764
|
accessedDynamicData: function() {
|
|
765
765
|
return M;
|
|
@@ -822,7 +822,7 @@ function Ae() {
|
|
|
822
822
|
return rt;
|
|
823
823
|
}
|
|
824
824
|
});
|
|
825
|
-
const g = /* @__PURE__ */ b(Ke), _ = He(), d = B(), k = W(), o = U(),
|
|
825
|
+
const g = /* @__PURE__ */ b(Ke), _ = He(), d = B(), k = W(), o = U(), i = _e(), p = mt();
|
|
826
826
|
function b(u) {
|
|
827
827
|
return u && u.__esModule ? u : {
|
|
828
828
|
default: u
|
|
@@ -890,7 +890,7 @@ function Ae() {
|
|
|
890
890
|
expression: c
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function h(u, c, A, T) {
|
|
894
894
|
const $ = T.dynamicTracking;
|
|
895
895
|
return $ && $.syncDynamicErrorWithStack === null && ($.syncDynamicExpression = c, $.syncDynamicErrorWithStack = A), m(u, c, T);
|
|
896
896
|
}
|
|
@@ -902,7 +902,7 @@ function Ae() {
|
|
|
902
902
|
throw $ && $.syncDynamicErrorWithStack === null && ($.syncDynamicExpression = c, $.syncDynamicErrorWithStack = A, T.validating === !0 && ($.syncDynamicLogged = !0)), m(u, c, T), w(`Route ${u} needs to bail out of prerendering at this point because it used ${c}.`);
|
|
903
903
|
}
|
|
904
904
|
const s = n;
|
|
905
|
-
function
|
|
905
|
+
function a({ reason: u, route: c }) {
|
|
906
906
|
const A = k.workUnitAsyncStorage.getStore(), T = A && A.type === "prerender-ppr" ? A.dynamicTracking : null;
|
|
907
907
|
t(c, u, T);
|
|
908
908
|
}
|
|
@@ -971,11 +971,11 @@ ${A}`));
|
|
|
971
971
|
const c = o.workAsyncStorage.getStore();
|
|
972
972
|
if (c && c.isStaticGeneration && c.fallbackRouteParams && c.fallbackRouteParams.size > 0) {
|
|
973
973
|
const A = k.workUnitAsyncStorage.getStore();
|
|
974
|
-
A && (A.type === "prerender" ? g.default.use((0,
|
|
974
|
+
A && (A.type === "prerender" ? g.default.use((0, i.makeHangingPromise)(A.renderSignal, u)) : A.type === "prerender-ppr" ? t(c.route, u, A.dynamicTracking) : A.type === "prerender-legacy" && D(u, c, A));
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
const nt = /\n\s+at Suspense \(<anonymous>\)/, ot = new RegExp(`\\n\\s+at ${
|
|
978
|
+
const nt = /\n\s+at Suspense \(<anonymous>\)/, ot = new RegExp(`\\n\\s+at ${p.METADATA_BOUNDARY_NAME}[\\n\\s]`), st = new RegExp(`\\n\\s+at ${p.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), at = new RegExp(`\\n\\s+at ${p.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
979
979
|
function it(u, c, A, T, $) {
|
|
980
980
|
if (!at.test(c))
|
|
981
981
|
if (ot.test(c)) {
|
|
@@ -1027,10 +1027,10 @@ function ke() {
|
|
|
1027
1027
|
}), Object.defineProperty(f, "createDedupedByCallsiteServerErrorLoggerDev", {
|
|
1028
1028
|
enumerable: !0,
|
|
1029
1029
|
get: function() {
|
|
1030
|
-
return
|
|
1030
|
+
return p;
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
1033
|
-
const
|
|
1033
|
+
const y = /* @__PURE__ */ _(Ke);
|
|
1034
1034
|
function g(b) {
|
|
1035
1035
|
if (typeof WeakMap != "function") return null;
|
|
1036
1036
|
var x = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap();
|
|
@@ -1060,7 +1060,7 @@ function ke() {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
const d = {
|
|
1062
1062
|
current: null
|
|
1063
|
-
}, k = typeof
|
|
1063
|
+
}, k = typeof y.cache == "function" ? y.cache : (b) => b, o = process.env.__NEXT_DYNAMIC_IO ? console.error : console.warn, i = k(
|
|
1064
1064
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- cache key
|
|
1065
1065
|
(b) => {
|
|
1066
1066
|
try {
|
|
@@ -1070,7 +1070,7 @@ function ke() {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
);
|
|
1073
|
-
function
|
|
1073
|
+
function p(b) {
|
|
1074
1074
|
return function(...S) {
|
|
1075
1075
|
const E = b(...S);
|
|
1076
1076
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1081,7 +1081,7 @@ function ke() {
|
|
|
1081
1081
|
o(E);
|
|
1082
1082
|
else {
|
|
1083
1083
|
const q = I[4];
|
|
1084
|
-
d.current = E,
|
|
1084
|
+
d.current = E, i(q);
|
|
1085
1085
|
}
|
|
1086
1086
|
} else
|
|
1087
1087
|
o(E);
|
|
@@ -1095,13 +1095,13 @@ function et() {
|
|
|
1095
1095
|
Object.defineProperty(f, "__esModule", {
|
|
1096
1096
|
value: !0
|
|
1097
1097
|
});
|
|
1098
|
-
function
|
|
1099
|
-
for (var
|
|
1098
|
+
function y(o, i) {
|
|
1099
|
+
for (var p in i) Object.defineProperty(o, p, {
|
|
1100
1100
|
enumerable: !0,
|
|
1101
|
-
get:
|
|
1101
|
+
get: i[p]
|
|
1102
1102
|
});
|
|
1103
1103
|
}
|
|
1104
|
-
|
|
1104
|
+
y(f, {
|
|
1105
1105
|
atLeastOneTask: function() {
|
|
1106
1106
|
return d;
|
|
1107
1107
|
},
|
|
@@ -1152,10 +1152,10 @@ function bt() {
|
|
|
1152
1152
|
}), Object.defineProperty(f, "afterTaskAsyncStorage", {
|
|
1153
1153
|
enumerable: !0,
|
|
1154
1154
|
get: function() {
|
|
1155
|
-
return
|
|
1155
|
+
return y.afterTaskAsyncStorageInstance;
|
|
1156
1156
|
}
|
|
1157
1157
|
});
|
|
1158
|
-
const
|
|
1158
|
+
const y = gt();
|
|
1159
1159
|
})(ye)), ye;
|
|
1160
1160
|
}
|
|
1161
1161
|
var Ye;
|
|
@@ -1164,13 +1164,13 @@ function tt() {
|
|
|
1164
1164
|
Object.defineProperty(f, "__esModule", {
|
|
1165
1165
|
value: !0
|
|
1166
1166
|
});
|
|
1167
|
-
function
|
|
1167
|
+
function y(S, E) {
|
|
1168
1168
|
for (var P in E) Object.defineProperty(S, P, {
|
|
1169
1169
|
enumerable: !0,
|
|
1170
1170
|
get: E[P]
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
|
-
|
|
1173
|
+
y(f, {
|
|
1174
1174
|
describeHasCheckingStringProperty: function() {
|
|
1175
1175
|
return o;
|
|
1176
1176
|
},
|
|
@@ -1181,10 +1181,10 @@ function tt() {
|
|
|
1181
1181
|
return b;
|
|
1182
1182
|
},
|
|
1183
1183
|
throwWithStaticGenerationBailoutError: function() {
|
|
1184
|
-
return
|
|
1184
|
+
return i;
|
|
1185
1185
|
},
|
|
1186
1186
|
throwWithStaticGenerationBailoutErrorWithDynamicError: function() {
|
|
1187
|
-
return
|
|
1187
|
+
return p;
|
|
1188
1188
|
},
|
|
1189
1189
|
wellKnownProperties: function() {
|
|
1190
1190
|
return x;
|
|
@@ -1198,10 +1198,10 @@ function tt() {
|
|
|
1198
1198
|
const P = JSON.stringify(E);
|
|
1199
1199
|
return `\`Reflect.has(${S}, ${P})\`, \`${P} in ${S}\`, or similar`;
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function i(S, E) {
|
|
1202
1202
|
throw new g.StaticGenBailoutError(`Route ${S} couldn't be rendered statically because it used ${E}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function p(S, E) {
|
|
1205
1205
|
throw new g.StaticGenBailoutError(`Route ${S} with \`dynamic = "error"\` couldn't be rendered statically because it used ${E}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);
|
|
1206
1206
|
}
|
|
1207
1207
|
function b() {
|
|
@@ -1244,7 +1244,7 @@ function vt() {
|
|
|
1244
1244
|
return S;
|
|
1245
1245
|
}
|
|
1246
1246
|
});
|
|
1247
|
-
const
|
|
1247
|
+
const y = yt(), g = Ze(), _ = U(), d = W(), k = Ae(), o = B(), i = _e(), p = ke(), b = et(), x = tt();
|
|
1248
1248
|
function S() {
|
|
1249
1249
|
const t = "cookies", r = _.workAsyncStorage.getStore(), l = d.workUnitAsyncStorage.getStore();
|
|
1250
1250
|
if (r) {
|
|
@@ -1274,17 +1274,17 @@ function vt() {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
const O = (0, d.getExpectedRequestStore)(t);
|
|
1276
1276
|
let R;
|
|
1277
|
-
return (0,
|
|
1277
|
+
return (0, y.areCookiesMutableInCurrentPhase)(O) ? R = O.userspaceMutableCookies : R = O.cookies, process.env.NODE_ENV === "development" && !(r != null && r.isPrefetchRequest) ? D(R, r == null ? void 0 : r.route) : q(R);
|
|
1278
1278
|
}
|
|
1279
1279
|
function E() {
|
|
1280
|
-
return
|
|
1280
|
+
return y.RequestCookiesAdapter.seal(new g.RequestCookies(new Headers({})));
|
|
1281
1281
|
}
|
|
1282
1282
|
const P = /* @__PURE__ */ new WeakMap();
|
|
1283
1283
|
function I(t, r) {
|
|
1284
1284
|
const l = P.get(r);
|
|
1285
1285
|
if (l)
|
|
1286
1286
|
return l;
|
|
1287
|
-
const O = (0,
|
|
1287
|
+
const O = (0, i.makeHangingPromise)(r.renderSignal, "`cookies()`");
|
|
1288
1288
|
return P.set(r, O), Object.defineProperties(O, {
|
|
1289
1289
|
[Symbol.iterator]: {
|
|
1290
1290
|
value: function() {
|
|
@@ -1400,7 +1400,7 @@ function vt() {
|
|
|
1400
1400
|
// but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with
|
|
1401
1401
|
// implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it
|
|
1402
1402
|
// has extra properties not available on RequestCookie instances.
|
|
1403
|
-
|
|
1403
|
+
a.bind(t, l)
|
|
1404
1404
|
)
|
|
1405
1405
|
)
|
|
1406
1406
|
},
|
|
@@ -1480,7 +1480,7 @@ function vt() {
|
|
|
1480
1480
|
// but that's already a hard thing to debug so we may as well implement it consistently. The biggest problem with
|
|
1481
1481
|
// implementing this in this way is the underlying cookie type is a ResponseCookie and not a RequestCookie and so it
|
|
1482
1482
|
// has extra properties not available on RequestCookie instances.
|
|
1483
|
-
|
|
1483
|
+
a.call(t, O)
|
|
1484
1484
|
);
|
|
1485
1485
|
},
|
|
1486
1486
|
writable: !1
|
|
@@ -1504,8 +1504,8 @@ function vt() {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
n(t, r);
|
|
1506
1506
|
}
|
|
1507
|
-
const
|
|
1508
|
-
}, n = process.env.__NEXT_DISABLE_SYNC_DYNAMIC_API_WARNINGS ?
|
|
1507
|
+
const h = () => {
|
|
1508
|
+
}, n = process.env.__NEXT_DISABLE_SYNC_DYNAMIC_API_WARNINGS ? h : (0, p.createDedupedByCallsiteServerErrorLoggerDev)(e);
|
|
1509
1509
|
function e(t, r) {
|
|
1510
1510
|
const l = t ? `Route "${t}" ` : "This route ";
|
|
1511
1511
|
return new Error(`${l}used ${r}. \`cookies()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`);
|
|
@@ -1516,7 +1516,7 @@ function vt() {
|
|
|
1516
1516
|
t
|
|
1517
1517
|
]).values();
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function a(t) {
|
|
1520
1520
|
for (const r of this.getAll())
|
|
1521
1521
|
this.delete(r.name);
|
|
1522
1522
|
return t;
|
|
@@ -1529,13 +1529,13 @@ function wt() {
|
|
|
1529
1529
|
Object.defineProperty(f, "__esModule", {
|
|
1530
1530
|
value: !0
|
|
1531
1531
|
});
|
|
1532
|
-
function
|
|
1533
|
-
for (var
|
|
1532
|
+
function y(k, o) {
|
|
1533
|
+
for (var i in o) Object.defineProperty(k, i, {
|
|
1534
1534
|
enumerable: !0,
|
|
1535
|
-
get: o[
|
|
1535
|
+
get: o[i]
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
|
-
|
|
1538
|
+
y(f, {
|
|
1539
1539
|
HeadersAdapter: function() {
|
|
1540
1540
|
return d;
|
|
1541
1541
|
},
|
|
@@ -1555,28 +1555,28 @@ function wt() {
|
|
|
1555
1555
|
class d extends Headers {
|
|
1556
1556
|
constructor(o) {
|
|
1557
1557
|
super(), this.headers = new Proxy(o, {
|
|
1558
|
-
get(
|
|
1559
|
-
if (typeof
|
|
1560
|
-
return g.ReflectAdapter.get(
|
|
1561
|
-
const x =
|
|
1558
|
+
get(i, p, b) {
|
|
1559
|
+
if (typeof p == "symbol")
|
|
1560
|
+
return g.ReflectAdapter.get(i, p, b);
|
|
1561
|
+
const x = p.toLowerCase(), S = Object.keys(o).find((E) => E.toLowerCase() === x);
|
|
1562
1562
|
if (!(typeof S > "u"))
|
|
1563
|
-
return g.ReflectAdapter.get(
|
|
1563
|
+
return g.ReflectAdapter.get(i, S, b);
|
|
1564
1564
|
},
|
|
1565
|
-
set(
|
|
1566
|
-
if (typeof
|
|
1567
|
-
return g.ReflectAdapter.set(
|
|
1568
|
-
const S =
|
|
1569
|
-
return g.ReflectAdapter.set(
|
|
1565
|
+
set(i, p, b, x) {
|
|
1566
|
+
if (typeof p == "symbol")
|
|
1567
|
+
return g.ReflectAdapter.set(i, p, b, x);
|
|
1568
|
+
const S = p.toLowerCase(), E = Object.keys(o).find((P) => P.toLowerCase() === S);
|
|
1569
|
+
return g.ReflectAdapter.set(i, E ?? p, b, x);
|
|
1570
1570
|
},
|
|
1571
|
-
has(
|
|
1572
|
-
if (typeof
|
|
1573
|
-
const b =
|
|
1574
|
-
return typeof x > "u" ? !1 : g.ReflectAdapter.has(
|
|
1571
|
+
has(i, p) {
|
|
1572
|
+
if (typeof p == "symbol") return g.ReflectAdapter.has(i, p);
|
|
1573
|
+
const b = p.toLowerCase(), x = Object.keys(o).find((S) => S.toLowerCase() === b);
|
|
1574
|
+
return typeof x > "u" ? !1 : g.ReflectAdapter.has(i, x);
|
|
1575
1575
|
},
|
|
1576
|
-
deleteProperty(
|
|
1577
|
-
if (typeof
|
|
1578
|
-
const b =
|
|
1579
|
-
return typeof x > "u" ? !0 : g.ReflectAdapter.deleteProperty(
|
|
1576
|
+
deleteProperty(i, p) {
|
|
1577
|
+
if (typeof p == "symbol") return g.ReflectAdapter.deleteProperty(i, p);
|
|
1578
|
+
const b = p.toLowerCase(), x = Object.keys(o).find((S) => S.toLowerCase() === b);
|
|
1579
|
+
return typeof x > "u" ? !0 : g.ReflectAdapter.deleteProperty(i, x);
|
|
1580
1580
|
}
|
|
1581
1581
|
});
|
|
1582
1582
|
}
|
|
@@ -1586,14 +1586,14 @@ function wt() {
|
|
|
1586
1586
|
*/
|
|
1587
1587
|
static seal(o) {
|
|
1588
1588
|
return new Proxy(o, {
|
|
1589
|
-
get(
|
|
1590
|
-
switch (
|
|
1589
|
+
get(i, p, b) {
|
|
1590
|
+
switch (p) {
|
|
1591
1591
|
case "append":
|
|
1592
1592
|
case "delete":
|
|
1593
1593
|
case "set":
|
|
1594
1594
|
return _.callable;
|
|
1595
1595
|
default:
|
|
1596
|
-
return g.ReflectAdapter.get(
|
|
1596
|
+
return g.ReflectAdapter.get(i, p, b);
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
1599
|
});
|
|
@@ -1617,36 +1617,36 @@ function wt() {
|
|
|
1617
1617
|
static from(o) {
|
|
1618
1618
|
return o instanceof Headers ? o : new d(o);
|
|
1619
1619
|
}
|
|
1620
|
-
append(o,
|
|
1621
|
-
const
|
|
1622
|
-
typeof
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
] : Array.isArray(
|
|
1620
|
+
append(o, i) {
|
|
1621
|
+
const p = this.headers[o];
|
|
1622
|
+
typeof p == "string" ? this.headers[o] = [
|
|
1623
|
+
p,
|
|
1624
|
+
i
|
|
1625
|
+
] : Array.isArray(p) ? p.push(i) : this.headers[o] = i;
|
|
1626
1626
|
}
|
|
1627
1627
|
delete(o) {
|
|
1628
1628
|
delete this.headers[o];
|
|
1629
1629
|
}
|
|
1630
1630
|
get(o) {
|
|
1631
|
-
const
|
|
1632
|
-
return typeof
|
|
1631
|
+
const i = this.headers[o];
|
|
1632
|
+
return typeof i < "u" ? this.merge(i) : null;
|
|
1633
1633
|
}
|
|
1634
1634
|
has(o) {
|
|
1635
1635
|
return typeof this.headers[o] < "u";
|
|
1636
1636
|
}
|
|
1637
|
-
set(o,
|
|
1638
|
-
this.headers[o] =
|
|
1637
|
+
set(o, i) {
|
|
1638
|
+
this.headers[o] = i;
|
|
1639
1639
|
}
|
|
1640
|
-
forEach(o,
|
|
1641
|
-
for (const [
|
|
1642
|
-
o.call(
|
|
1640
|
+
forEach(o, i) {
|
|
1641
|
+
for (const [p, b] of this.entries())
|
|
1642
|
+
o.call(i, b, p, this);
|
|
1643
1643
|
}
|
|
1644
1644
|
*entries() {
|
|
1645
1645
|
for (const o of Object.keys(this.headers)) {
|
|
1646
|
-
const
|
|
1646
|
+
const i = o.toLowerCase(), p = this.get(i);
|
|
1647
1647
|
yield [
|
|
1648
|
-
|
|
1649
|
-
|
|
1648
|
+
i,
|
|
1649
|
+
p
|
|
1650
1650
|
];
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
@@ -1675,15 +1675,15 @@ function _t() {
|
|
|
1675
1675
|
return x;
|
|
1676
1676
|
}
|
|
1677
1677
|
});
|
|
1678
|
-
const
|
|
1678
|
+
const y = wt(), g = U(), _ = W(), d = Ae(), k = B(), o = _e(), i = ke(), p = et(), b = tt();
|
|
1679
1679
|
function x() {
|
|
1680
1680
|
const n = g.workAsyncStorage.getStore(), e = _.workUnitAsyncStorage.getStore();
|
|
1681
1681
|
if (n) {
|
|
1682
1682
|
if (e && e.phase === "after" && !(0, b.isRequestAPICallableInsideAfter)())
|
|
1683
1683
|
throw new Error(`Route ${n.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`);
|
|
1684
1684
|
if (n.forceStatic) {
|
|
1685
|
-
const
|
|
1686
|
-
return P(
|
|
1685
|
+
const a = y.HeadersAdapter.seal(new Headers({}));
|
|
1686
|
+
return P(a);
|
|
1687
1687
|
}
|
|
1688
1688
|
if (e) {
|
|
1689
1689
|
if (e.type === "cache")
|
|
@@ -1708,75 +1708,75 @@ function _t() {
|
|
|
1708
1708
|
const s = S.get(e);
|
|
1709
1709
|
if (s)
|
|
1710
1710
|
return s;
|
|
1711
|
-
const
|
|
1712
|
-
return S.set(e,
|
|
1711
|
+
const a = (0, o.makeHangingPromise)(e.renderSignal, "`headers()`");
|
|
1712
|
+
return S.set(e, a), Object.defineProperties(a, {
|
|
1713
1713
|
append: {
|
|
1714
1714
|
value: function() {
|
|
1715
|
-
const r = `\`headers().append(${q(arguments[0])}, ...)\``, l =
|
|
1715
|
+
const r = `\`headers().append(${q(arguments[0])}, ...)\``, l = h(n, r);
|
|
1716
1716
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, r, l, e);
|
|
1717
1717
|
}
|
|
1718
1718
|
},
|
|
1719
1719
|
delete: {
|
|
1720
1720
|
value: function() {
|
|
1721
|
-
const r = `\`headers().delete(${q(arguments[0])})\``, l =
|
|
1721
|
+
const r = `\`headers().delete(${q(arguments[0])})\``, l = h(n, r);
|
|
1722
1722
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, r, l, e);
|
|
1723
1723
|
}
|
|
1724
1724
|
},
|
|
1725
1725
|
get: {
|
|
1726
1726
|
value: function() {
|
|
1727
|
-
const r = `\`headers().get(${q(arguments[0])})\``, l =
|
|
1727
|
+
const r = `\`headers().get(${q(arguments[0])})\``, l = h(n, r);
|
|
1728
1728
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, r, l, e);
|
|
1729
1729
|
}
|
|
1730
1730
|
},
|
|
1731
1731
|
has: {
|
|
1732
1732
|
value: function() {
|
|
1733
|
-
const r = `\`headers().has(${q(arguments[0])})\``, l =
|
|
1733
|
+
const r = `\`headers().has(${q(arguments[0])})\``, l = h(n, r);
|
|
1734
1734
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, r, l, e);
|
|
1735
1735
|
}
|
|
1736
1736
|
},
|
|
1737
1737
|
set: {
|
|
1738
1738
|
value: function() {
|
|
1739
|
-
const r = `\`headers().set(${q(arguments[0])}, ...)\``, l =
|
|
1739
|
+
const r = `\`headers().set(${q(arguments[0])}, ...)\``, l = h(n, r);
|
|
1740
1740
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, r, l, e);
|
|
1741
1741
|
}
|
|
1742
1742
|
},
|
|
1743
1743
|
getSetCookie: {
|
|
1744
1744
|
value: function() {
|
|
1745
|
-
const r = "`headers().getSetCookie()`", l =
|
|
1745
|
+
const r = "`headers().getSetCookie()`", l = h(n, r);
|
|
1746
1746
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, r, l, e);
|
|
1747
1747
|
}
|
|
1748
1748
|
},
|
|
1749
1749
|
forEach: {
|
|
1750
1750
|
value: function() {
|
|
1751
|
-
const r = "`headers().forEach(...)`", l =
|
|
1751
|
+
const r = "`headers().forEach(...)`", l = h(n, r);
|
|
1752
1752
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, r, l, e);
|
|
1753
1753
|
}
|
|
1754
1754
|
},
|
|
1755
1755
|
keys: {
|
|
1756
1756
|
value: function() {
|
|
1757
|
-
const r = "`headers().keys()`", l =
|
|
1757
|
+
const r = "`headers().keys()`", l = h(n, r);
|
|
1758
1758
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, r, l, e);
|
|
1759
1759
|
}
|
|
1760
1760
|
},
|
|
1761
1761
|
values: {
|
|
1762
1762
|
value: function() {
|
|
1763
|
-
const r = "`headers().values()`", l =
|
|
1763
|
+
const r = "`headers().values()`", l = h(n, r);
|
|
1764
1764
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, r, l, e);
|
|
1765
1765
|
}
|
|
1766
1766
|
},
|
|
1767
1767
|
entries: {
|
|
1768
1768
|
value: function() {
|
|
1769
|
-
const r = "`headers().entries()`", l =
|
|
1769
|
+
const r = "`headers().entries()`", l = h(n, r);
|
|
1770
1770
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, r, l, e);
|
|
1771
1771
|
}
|
|
1772
1772
|
},
|
|
1773
1773
|
[Symbol.iterator]: {
|
|
1774
1774
|
value: function() {
|
|
1775
|
-
const t = "`headers()[Symbol.iterator]()`", r =
|
|
1775
|
+
const t = "`headers()[Symbol.iterator]()`", r = h(n, t);
|
|
1776
1776
|
(0, d.abortAndThrowOnSynchronousRequestDataAccess)(n, t, r, e);
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
|
-
}),
|
|
1779
|
+
}), a;
|
|
1780
1780
|
}
|
|
1781
1781
|
function P(n) {
|
|
1782
1782
|
const e = S.get(n);
|
|
@@ -1823,8 +1823,8 @@ function _t() {
|
|
|
1823
1823
|
const s = S.get(n);
|
|
1824
1824
|
if (s)
|
|
1825
1825
|
return s;
|
|
1826
|
-
const
|
|
1827
|
-
return S.set(n,
|
|
1826
|
+
const a = new Promise((t) => (0, p.scheduleImmediate)(() => t(n)));
|
|
1827
|
+
return S.set(n, a), Object.defineProperties(a, {
|
|
1828
1828
|
append: {
|
|
1829
1829
|
value: function() {
|
|
1830
1830
|
const r = `\`headers().append(${q(arguments[0])}, ...)\``;
|
|
@@ -1885,7 +1885,7 @@ function _t() {
|
|
|
1885
1885
|
return D(e, "`...headers()` or similar iteration"), n[Symbol.iterator].apply(n, arguments);
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
|
-
}),
|
|
1888
|
+
}), a;
|
|
1889
1889
|
}
|
|
1890
1890
|
function q(n) {
|
|
1891
1891
|
return typeof n == "string" ? `'${n}'` : "...";
|
|
@@ -1893,14 +1893,14 @@ function _t() {
|
|
|
1893
1893
|
function D(n, e) {
|
|
1894
1894
|
const s = _.workUnitAsyncStorage.getStore();
|
|
1895
1895
|
if (s && s.type === "request" && s.prerenderPhase === !0) {
|
|
1896
|
-
const
|
|
1897
|
-
(0, d.trackSynchronousRequestDataAccessInDev)(
|
|
1896
|
+
const a = s;
|
|
1897
|
+
(0, d.trackSynchronousRequestDataAccessInDev)(a);
|
|
1898
1898
|
}
|
|
1899
1899
|
m(n, e);
|
|
1900
1900
|
}
|
|
1901
1901
|
const v = () => {
|
|
1902
|
-
}, m = process.env.__NEXT_DISABLE_SYNC_DYNAMIC_API_WARNINGS ? v : (0,
|
|
1903
|
-
function
|
|
1902
|
+
}, m = process.env.__NEXT_DISABLE_SYNC_DYNAMIC_API_WARNINGS ? v : (0, i.createDedupedByCallsiteServerErrorLoggerDev)(h);
|
|
1903
|
+
function h(n, e) {
|
|
1904
1904
|
const s = n ? `Route "${n}" ` : "This route ";
|
|
1905
1905
|
return new Error(`${s}used ${e}. \`headers()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`);
|
|
1906
1906
|
}
|
|
@@ -1914,38 +1914,38 @@ function At() {
|
|
|
1914
1914
|
}), Object.defineProperty(f, "draftMode", {
|
|
1915
1915
|
enumerable: !0,
|
|
1916
1916
|
get: function() {
|
|
1917
|
-
return
|
|
1917
|
+
return i;
|
|
1918
1918
|
}
|
|
1919
1919
|
});
|
|
1920
|
-
const
|
|
1921
|
-
function
|
|
1922
|
-
const v = "draftMode", m = g.workAsyncStorage.getStore(),
|
|
1923
|
-
if (
|
|
1920
|
+
const y = W(), g = U(), _ = Ae(), d = ke(), k = B(), o = He();
|
|
1921
|
+
function i() {
|
|
1922
|
+
const v = "draftMode", m = g.workAsyncStorage.getStore(), h = y.workUnitAsyncStorage.getStore();
|
|
1923
|
+
if (h && (h.type === "cache" || h.type === "unstable-cache" || h.type === "prerender" || h.type === "prerender-ppr" || h.type === "prerender-legacy"))
|
|
1924
1924
|
if (process.env.NODE_ENV === "development" && !(m != null && m.isPrefetchRequest)) {
|
|
1925
|
-
const
|
|
1926
|
-
return x(null,
|
|
1925
|
+
const a = m == null ? void 0 : m.route;
|
|
1926
|
+
return x(null, a);
|
|
1927
1927
|
} else
|
|
1928
1928
|
return b(null);
|
|
1929
|
-
const n = (0,
|
|
1929
|
+
const n = (0, y.getExpectedRequestStore)(v), e = p.get(n.draftMode);
|
|
1930
1930
|
if (e)
|
|
1931
1931
|
return e;
|
|
1932
1932
|
let s;
|
|
1933
1933
|
if (process.env.NODE_ENV === "development" && !(m != null && m.isPrefetchRequest)) {
|
|
1934
|
-
const
|
|
1935
|
-
s = x(n.draftMode,
|
|
1934
|
+
const a = m == null ? void 0 : m.route;
|
|
1935
|
+
s = x(n.draftMode, a);
|
|
1936
1936
|
} else
|
|
1937
1937
|
s = b(n.draftMode);
|
|
1938
|
-
return
|
|
1938
|
+
return p.set(n.draftMode, s), s;
|
|
1939
1939
|
}
|
|
1940
|
-
const
|
|
1940
|
+
const p = /* @__PURE__ */ new WeakMap();
|
|
1941
1941
|
function b(v) {
|
|
1942
|
-
const m = new S(v),
|
|
1943
|
-
return Object.defineProperty(
|
|
1942
|
+
const m = new S(v), h = Promise.resolve(m);
|
|
1943
|
+
return Object.defineProperty(h, "isEnabled", {
|
|
1944
1944
|
get() {
|
|
1945
1945
|
return m.isEnabled;
|
|
1946
1946
|
},
|
|
1947
1947
|
set(n) {
|
|
1948
|
-
Object.defineProperty(
|
|
1948
|
+
Object.defineProperty(h, "isEnabled", {
|
|
1949
1949
|
value: n,
|
|
1950
1950
|
writable: !0,
|
|
1951
1951
|
enumerable: !0
|
|
@@ -1953,13 +1953,13 @@ function At() {
|
|
|
1953
1953
|
},
|
|
1954
1954
|
enumerable: !0,
|
|
1955
1955
|
configurable: !0
|
|
1956
|
-
}),
|
|
1956
|
+
}), h.enable = m.enable.bind(m), h.disable = m.disable.bind(m), h;
|
|
1957
1957
|
}
|
|
1958
1958
|
function x(v, m) {
|
|
1959
|
-
const
|
|
1959
|
+
const h = new S(v), n = Promise.resolve(h);
|
|
1960
1960
|
return Object.defineProperty(n, "isEnabled", {
|
|
1961
1961
|
get() {
|
|
1962
|
-
return E(m, "`draftMode().isEnabled`"),
|
|
1962
|
+
return E(m, "`draftMode().isEnabled`"), h.isEnabled;
|
|
1963
1963
|
},
|
|
1964
1964
|
set(e) {
|
|
1965
1965
|
Object.defineProperty(n, "isEnabled", {
|
|
@@ -1972,11 +1972,11 @@ function At() {
|
|
|
1972
1972
|
configurable: !0
|
|
1973
1973
|
}), Object.defineProperty(n, "enable", {
|
|
1974
1974
|
value: function() {
|
|
1975
|
-
return E(m, "`draftMode().enable()`"),
|
|
1975
|
+
return E(m, "`draftMode().enable()`"), h.enable.apply(h, arguments);
|
|
1976
1976
|
}
|
|
1977
1977
|
}), Object.defineProperty(n, "disable", {
|
|
1978
1978
|
value: function() {
|
|
1979
|
-
return E(m, "`draftMode().disable()`"),
|
|
1979
|
+
return E(m, "`draftMode().disable()`"), h.disable.apply(h, arguments);
|
|
1980
1980
|
}
|
|
1981
1981
|
}), n;
|
|
1982
1982
|
}
|
|
@@ -1995,9 +1995,9 @@ function At() {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
}
|
|
1997
1997
|
function E(v, m) {
|
|
1998
|
-
const
|
|
1999
|
-
if (
|
|
2000
|
-
const n =
|
|
1998
|
+
const h = y.workUnitAsyncStorage.getStore();
|
|
1999
|
+
if (h && h.type === "request" && h.prerenderPhase === !0) {
|
|
2000
|
+
const n = h;
|
|
2001
2001
|
(0, _.trackSynchronousRequestDataAccessInDev)(n);
|
|
2002
2002
|
}
|
|
2003
2003
|
I(v, m);
|
|
@@ -2005,33 +2005,33 @@ function At() {
|
|
|
2005
2005
|
const P = () => {
|
|
2006
2006
|
}, I = process.env.__NEXT_DISABLE_SYNC_DYNAMIC_API_WARNINGS ? P : (0, d.createDedupedByCallsiteServerErrorLoggerDev)(q);
|
|
2007
2007
|
function q(v, m) {
|
|
2008
|
-
const
|
|
2009
|
-
return new Error(`${
|
|
2008
|
+
const h = v ? `Route "${v}" ` : "This route ";
|
|
2009
|
+
return new Error(`${h}used ${m}. \`draftMode()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`);
|
|
2010
2010
|
}
|
|
2011
2011
|
function D(v) {
|
|
2012
|
-
const m = g.workAsyncStorage.getStore(),
|
|
2012
|
+
const m = g.workAsyncStorage.getStore(), h = y.workUnitAsyncStorage.getStore();
|
|
2013
2013
|
if (m) {
|
|
2014
|
-
if (
|
|
2015
|
-
if (
|
|
2014
|
+
if (h) {
|
|
2015
|
+
if (h.type === "cache")
|
|
2016
2016
|
throw new Error(`Route ${m.route} used "${v}" 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`);
|
|
2017
|
-
if (
|
|
2017
|
+
if (h.type === "unstable-cache")
|
|
2018
2018
|
throw new Error(`Route ${m.route} used "${v}" 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`);
|
|
2019
|
-
if (
|
|
2019
|
+
if (h.phase === "after")
|
|
2020
2020
|
throw new Error(`Route ${m.route} used "${v}" 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`);
|
|
2021
2021
|
}
|
|
2022
2022
|
if (m.dynamicShouldError)
|
|
2023
2023
|
throw new k.StaticGenBailoutError(`Route ${m.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${v}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);
|
|
2024
|
-
if (
|
|
2025
|
-
if (
|
|
2024
|
+
if (h)
|
|
2025
|
+
if (h.type === "prerender") {
|
|
2026
2026
|
const n = new Error(`Route ${m.route} used ${v} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`);
|
|
2027
|
-
(0, _.abortAndThrowOnSynchronousRequestDataAccess)(m.route, v, n,
|
|
2028
|
-
} else if (
|
|
2029
|
-
(0, _.postponeWithTracking)(m.route, v,
|
|
2030
|
-
else if (
|
|
2031
|
-
|
|
2027
|
+
(0, _.abortAndThrowOnSynchronousRequestDataAccess)(m.route, v, n, h);
|
|
2028
|
+
} else if (h.type === "prerender-ppr")
|
|
2029
|
+
(0, _.postponeWithTracking)(m.route, v, h.dynamicTracking);
|
|
2030
|
+
else if (h.type === "prerender-legacy") {
|
|
2031
|
+
h.revalidate = 0;
|
|
2032
2032
|
const n = new o.DynamicServerError(`Route ${m.route} couldn't be rendered statically because it used \`${v}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);
|
|
2033
2033
|
throw m.dynamicUsageDescription = v, m.dynamicUsageStack = n.stack, n;
|
|
2034
|
-
} else process.env.NODE_ENV === "development" &&
|
|
2034
|
+
} else process.env.NODE_ENV === "development" && h && h.type === "request" && (h.usedDynamic = !0);
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
2037
|
})(ve)), ve;
|
|
@@ -2046,42 +2046,42 @@ const Pt = {
|
|
|
2046
2046
|
LOGGED_IN: "user-logged-in",
|
|
2047
2047
|
LOGGED_OUT: "user-logged-out"
|
|
2048
2048
|
};
|
|
2049
|
-
function qt(f,
|
|
2050
|
-
const g = new CustomEvent(f, { detail:
|
|
2049
|
+
function qt(f, y) {
|
|
2050
|
+
const g = new CustomEvent(f, { detail: y });
|
|
2051
2051
|
window.dispatchEvent(g);
|
|
2052
2052
|
}
|
|
2053
|
-
function Tt(f,
|
|
2053
|
+
function Tt(f, y) {
|
|
2054
2054
|
const g = (_) => {
|
|
2055
|
-
|
|
2055
|
+
y(_.detail);
|
|
2056
2056
|
};
|
|
2057
2057
|
return window.addEventListener(f, g), () => window.removeEventListener(f, g);
|
|
2058
2058
|
}
|
|
2059
|
-
function $t(f,
|
|
2060
|
-
window.removeEventListener(f,
|
|
2059
|
+
function $t(f, y) {
|
|
2060
|
+
window.removeEventListener(f, y);
|
|
2061
2061
|
}
|
|
2062
|
-
async function It({ extra: f, children:
|
|
2062
|
+
async function It({ extra: f, children: y, className: g, hideNews: _, hideLogin: d }) {
|
|
2063
2063
|
var S;
|
|
2064
|
-
|
|
2065
|
-
let a = {
|
|
2064
|
+
let k = {
|
|
2066
2065
|
data: {}
|
|
2067
2066
|
};
|
|
2068
|
-
const
|
|
2067
|
+
const i = (S = (await St.cookies()).get("refresh_token")) == null ? void 0 : S.value, p = typeof i < "u" && i !== "";
|
|
2069
2068
|
try {
|
|
2070
|
-
|
|
2069
|
+
p && (k = await dt.get("/v2/users/profile", {
|
|
2071
2070
|
baseURL: process.env.ICHAINGO_AUTH_INNER_API_URL
|
|
2072
2071
|
}));
|
|
2073
2072
|
} catch (E) {
|
|
2074
|
-
console.error(E),
|
|
2073
|
+
console.error(E), k = {
|
|
2075
2074
|
data: {}
|
|
2076
2075
|
};
|
|
2077
2076
|
}
|
|
2077
|
+
const b = Re(() => import("./Right-Duk1k2Xj.js"), { ssr: !0 }), x = Re(() => import("./Logo-BxSWGm8n.js"), { ssr: !0 });
|
|
2078
2078
|
return /* @__PURE__ */ Q("div", { className: lt("sticky left-0 right-0 top-0 bg-background h-16 z-999", g), children: [
|
|
2079
2079
|
/* @__PURE__ */ Q("div", { className: "md:bg-module h-13 text-center flex flex-wrap justify-between items-center gap-2 px-4", children: [
|
|
2080
2080
|
/* @__PURE__ */ Q("div", { className: "flex items-center flex-1 gap-6", children: [
|
|
2081
|
-
/* @__PURE__ */ Se(
|
|
2082
|
-
|
|
2081
|
+
/* @__PURE__ */ Se(x, {}),
|
|
2082
|
+
y
|
|
2083
2083
|
] }),
|
|
2084
|
-
/* @__PURE__ */ Se(
|
|
2084
|
+
/* @__PURE__ */ Se(b, { hideNews: _, hideLogin: d, user: (k == null ? void 0 : k.data) || {} })
|
|
2085
2085
|
] }),
|
|
2086
2086
|
f
|
|
2087
2087
|
] });
|