iboot-http-client 1.2.7 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iboot-http-client.cjs.js +2 -2
- package/dist/iboot-http-client.cjs.js.map +1 -1
- package/dist/iboot-http-client.es.js +487 -472
- package/dist/iboot-http-client.es.js.map +1 -1
- package/dist/iboot-http-client.umd.js +2 -2
- package/dist/iboot-http-client.umd.js.map +1 -1
- package/dist/types/http-client.d.ts +2 -1
- package/dist/types/router.d.ts +15 -1
- package/dist/types/types/http.d.ts +3 -1
- package/dist/types/types/router.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import Kt from "pino";
|
|
2
|
+
import Yt from "pino-pretty";
|
|
3
|
+
import $t from "js-md5";
|
|
4
4
|
import ne from "crypto-js";
|
|
5
|
-
const
|
|
5
|
+
const xr = {
|
|
6
6
|
GENERAL: 0,
|
|
7
7
|
PHONE: 1,
|
|
8
8
|
EMAIL: 2
|
|
9
|
-
},
|
|
9
|
+
}, jt = {
|
|
10
10
|
TYPE_MGT: 0,
|
|
11
11
|
TYPE_C: 1,
|
|
12
12
|
TYPE_B: 2
|
|
13
|
-
},
|
|
13
|
+
}, Nr = {
|
|
14
14
|
FROM_WEB: 1,
|
|
15
15
|
FROM_PC: 2,
|
|
16
16
|
FROM_WX_MINI_PRO: 3,
|
|
@@ -18,34 +18,34 @@ const Ir = {
|
|
|
18
18
|
FROM_WX_E: 5,
|
|
19
19
|
FROM_APP: 6,
|
|
20
20
|
FROM_DEVICE: 7
|
|
21
|
-
},
|
|
21
|
+
}, Cr = {
|
|
22
22
|
unknown: 0,
|
|
23
23
|
male: 1,
|
|
24
24
|
female: 2
|
|
25
|
-
},
|
|
25
|
+
}, Jt = Yt({
|
|
26
26
|
colorize: !0,
|
|
27
27
|
destination: process.stdout,
|
|
28
28
|
translateTime: "SYS:yyyy-mm-dd HH:MM:ss",
|
|
29
29
|
ignore: "pid,hostname",
|
|
30
30
|
messageFormat: "{msg}",
|
|
31
31
|
singleLine: !0
|
|
32
|
-
}), k =
|
|
32
|
+
}), k = Kt({
|
|
33
33
|
name: process.env.APP_NAME ?? "iBoot",
|
|
34
34
|
level: process.env.APP_ENV === "production" ? "info" : "debug",
|
|
35
35
|
nestedKey: "payload"
|
|
36
|
-
},
|
|
36
|
+
}, Jt), at = (i) => Array.isArray(i) || typeof i == "object" && Object.prototype.toString.call(i) === "[object Array]", ut = (i) => {
|
|
37
37
|
const e = i || 32, t = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678", o = t.length;
|
|
38
38
|
let n = "";
|
|
39
39
|
for (let a = 0; a < e; a++)
|
|
40
40
|
n += t.charAt(Math.floor(Math.random() * o));
|
|
41
41
|
return n;
|
|
42
|
-
},
|
|
42
|
+
}, et = (i, e) => {
|
|
43
43
|
const t = {};
|
|
44
44
|
return i.split("&").forEach((n) => {
|
|
45
45
|
const a = n.split("=");
|
|
46
46
|
a[1] && (!e || e.indexOf(a[0]) == -1) && (t[a[0]] = a[1]);
|
|
47
47
|
}), t;
|
|
48
|
-
}, we = (i) => !i || i == "" || i.length == 0 ? "" : encodeURIComponent(i).replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/\'/g, "%27").replace(/\!/g, "%21").replace(/\~/g, "%7E"),
|
|
48
|
+
}, we = (i) => !i || i == "" || i.length == 0 ? "" : encodeURIComponent(i).replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/\'/g, "%27").replace(/\!/g, "%21").replace(/\~/g, "%7E"), Lr = (i, e) => {
|
|
49
49
|
const t = {
|
|
50
50
|
"M+": i.getMonth() + 1,
|
|
51
51
|
//月份
|
|
@@ -77,9 +77,9 @@ const Ir = {
|
|
|
77
77
|
}
|
|
78
78
|
return e;
|
|
79
79
|
};
|
|
80
|
-
var Ee = { exports: {} },
|
|
81
|
-
function
|
|
82
|
-
return
|
|
80
|
+
var Ee = { exports: {} }, Se = {}, Ae = {}, Te = {}, ct;
|
|
81
|
+
function Qt() {
|
|
82
|
+
return ct || (ct = 1, (function(i) {
|
|
83
83
|
Object.defineProperty(i, "__esModule", {
|
|
84
84
|
value: !0
|
|
85
85
|
}), Object.defineProperty(i, "detectDomainLocale", {
|
|
@@ -94,16 +94,16 @@ function $t() {
|
|
|
94
94
|
for (const r of t) {
|
|
95
95
|
var a, u;
|
|
96
96
|
const d = (a = r.domain) == null ? void 0 : a.split(":", 1)[0].toLowerCase();
|
|
97
|
-
if (o === d || n === r.defaultLocale.toLowerCase() || (u = r.locales) != null && u.some((
|
|
97
|
+
if (o === d || n === r.defaultLocale.toLowerCase() || (u = r.locales) != null && u.some((g) => g.toLowerCase() === n))
|
|
98
98
|
return r;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
})(
|
|
102
|
+
})(Te)), Te;
|
|
103
103
|
}
|
|
104
|
-
var
|
|
105
|
-
function
|
|
106
|
-
return
|
|
104
|
+
var Ie = {}, Oe = {}, lt;
|
|
105
|
+
function Zt() {
|
|
106
|
+
return lt || (lt = 1, (function(i) {
|
|
107
107
|
Object.defineProperty(i, "__esModule", {
|
|
108
108
|
value: !0
|
|
109
109
|
}), Object.defineProperty(i, "removeTrailingSlash", {
|
|
@@ -115,11 +115,11 @@ function Jt() {
|
|
|
115
115
|
function e(t) {
|
|
116
116
|
return t.replace(/\/$/, "") || "/";
|
|
117
117
|
}
|
|
118
|
-
})(
|
|
118
|
+
})(Oe)), Oe;
|
|
119
119
|
}
|
|
120
|
-
var
|
|
121
|
-
function
|
|
122
|
-
return
|
|
120
|
+
var xe = {}, Ne = {}, dt;
|
|
121
|
+
function tt() {
|
|
122
|
+
return dt || (dt = 1, (function(i) {
|
|
123
123
|
Object.defineProperty(i, "__esModule", {
|
|
124
124
|
value: !0
|
|
125
125
|
}), Object.defineProperty(i, "parsePath", {
|
|
@@ -140,11 +140,11 @@ function et() {
|
|
|
140
140
|
hash: ""
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
})(
|
|
143
|
+
})(Ne)), Ne;
|
|
144
144
|
}
|
|
145
|
-
var
|
|
146
|
-
function
|
|
147
|
-
return
|
|
145
|
+
var ht;
|
|
146
|
+
function qt() {
|
|
147
|
+
return ht || (ht = 1, (function(i) {
|
|
148
148
|
Object.defineProperty(i, "__esModule", {
|
|
149
149
|
value: !0
|
|
150
150
|
}), Object.defineProperty(i, "addPathPrefix", {
|
|
@@ -153,18 +153,18 @@ function Mt() {
|
|
|
153
153
|
return t;
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
|
-
const e =
|
|
156
|
+
const e = tt();
|
|
157
157
|
function t(o, n) {
|
|
158
158
|
if (!o.startsWith("/") || !n)
|
|
159
159
|
return o;
|
|
160
160
|
const { pathname: a, query: u, hash: r } = (0, e.parsePath)(o);
|
|
161
161
|
return "" + n + a + u + r;
|
|
162
162
|
}
|
|
163
|
-
})(
|
|
163
|
+
})(xe)), xe;
|
|
164
164
|
}
|
|
165
|
-
var
|
|
166
|
-
function
|
|
167
|
-
return
|
|
165
|
+
var Ce = {}, ft;
|
|
166
|
+
function er() {
|
|
167
|
+
return ft || (ft = 1, (function(i) {
|
|
168
168
|
Object.defineProperty(i, "__esModule", {
|
|
169
169
|
value: !0
|
|
170
170
|
}), Object.defineProperty(i, "addPathSuffix", {
|
|
@@ -173,18 +173,18 @@ function Qt() {
|
|
|
173
173
|
return t;
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
|
-
const e =
|
|
176
|
+
const e = tt();
|
|
177
177
|
function t(o, n) {
|
|
178
178
|
if (!o.startsWith("/") || !n)
|
|
179
179
|
return o;
|
|
180
180
|
const { pathname: a, query: u, hash: r } = (0, e.parsePath)(o);
|
|
181
181
|
return "" + a + n + u + r;
|
|
182
182
|
}
|
|
183
|
-
})(
|
|
183
|
+
})(Ce)), Ce;
|
|
184
184
|
}
|
|
185
|
-
var
|
|
186
|
-
function
|
|
187
|
-
return
|
|
185
|
+
var Le = {}, ke = {}, pt;
|
|
186
|
+
function rt() {
|
|
187
|
+
return pt || (pt = 1, (function(i) {
|
|
188
188
|
Object.defineProperty(i, "__esModule", {
|
|
189
189
|
value: !0
|
|
190
190
|
}), Object.defineProperty(i, "pathHasPrefix", {
|
|
@@ -193,18 +193,18 @@ function tt() {
|
|
|
193
193
|
return t;
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
|
-
const e =
|
|
196
|
+
const e = tt();
|
|
197
197
|
function t(o, n) {
|
|
198
198
|
if (typeof o != "string")
|
|
199
199
|
return !1;
|
|
200
200
|
const { pathname: a } = (0, e.parsePath)(o);
|
|
201
201
|
return a === n || a.startsWith(n + "/");
|
|
202
202
|
}
|
|
203
|
-
})(
|
|
203
|
+
})(ke)), ke;
|
|
204
204
|
}
|
|
205
|
-
var
|
|
206
|
-
function
|
|
207
|
-
return
|
|
205
|
+
var mt;
|
|
206
|
+
function tr() {
|
|
207
|
+
return mt || (mt = 1, (function(i) {
|
|
208
208
|
Object.defineProperty(i, "__esModule", {
|
|
209
209
|
value: !0
|
|
210
210
|
}), Object.defineProperty(i, "addLocale", {
|
|
@@ -213,17 +213,17 @@ function Zt() {
|
|
|
213
213
|
return o;
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
|
-
const e =
|
|
216
|
+
const e = qt(), t = rt();
|
|
217
217
|
function o(n, a, u, r) {
|
|
218
218
|
if (!a || a === u) return n;
|
|
219
219
|
const d = n.toLowerCase();
|
|
220
220
|
return !r && ((0, t.pathHasPrefix)(d, "/api") || (0, t.pathHasPrefix)(d, "/" + a.toLowerCase())) ? n : (0, e.addPathPrefix)(n, "/" + a);
|
|
221
221
|
}
|
|
222
|
-
})(
|
|
222
|
+
})(Le)), Le;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
225
|
-
function
|
|
226
|
-
return
|
|
224
|
+
var _t;
|
|
225
|
+
function rr() {
|
|
226
|
+
return _t || (_t = 1, (function(i) {
|
|
227
227
|
Object.defineProperty(i, "__esModule", {
|
|
228
228
|
value: !0
|
|
229
229
|
}), Object.defineProperty(i, "formatNextPathnameInfo", {
|
|
@@ -232,16 +232,16 @@ function er() {
|
|
|
232
232
|
return a;
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
|
-
const e =
|
|
235
|
+
const e = Zt(), t = qt(), o = er(), n = tr();
|
|
236
236
|
function a(u) {
|
|
237
237
|
let r = (0, n.addLocale)(u.pathname, u.locale, u.buildId ? void 0 : u.defaultLocale, u.ignorePrefix);
|
|
238
238
|
return (u.buildId || !u.trailingSlash) && (r = (0, e.removeTrailingSlash)(r)), u.buildId && (r = (0, o.addPathSuffix)((0, t.addPathPrefix)(r, "/_next/data/" + u.buildId), u.pathname === "/" ? "index.json" : ".json")), r = (0, t.addPathPrefix)(r, u.basePath), !u.buildId && u.trailingSlash ? r.endsWith("/") ? r : (0, o.addPathSuffix)(r, "/") : (0, e.removeTrailingSlash)(r);
|
|
239
239
|
}
|
|
240
|
-
})(
|
|
240
|
+
})(Ie)), Ie;
|
|
241
241
|
}
|
|
242
|
-
var
|
|
243
|
-
function
|
|
244
|
-
return
|
|
242
|
+
var Ue = {}, gt;
|
|
243
|
+
function nr() {
|
|
244
|
+
return gt || (gt = 1, (function(i) {
|
|
245
245
|
Object.defineProperty(i, "__esModule", {
|
|
246
246
|
value: !0
|
|
247
247
|
}), Object.defineProperty(i, "getHostname", {
|
|
@@ -259,11 +259,11 @@ function tr() {
|
|
|
259
259
|
else return;
|
|
260
260
|
return n.toLowerCase();
|
|
261
261
|
}
|
|
262
|
-
})(
|
|
262
|
+
})(Ue)), Ue;
|
|
263
263
|
}
|
|
264
|
-
var
|
|
265
|
-
function
|
|
266
|
-
return
|
|
264
|
+
var De = {}, Me = {}, bt;
|
|
265
|
+
function ir() {
|
|
266
|
+
return bt || (bt = 1, (function(i) {
|
|
267
267
|
Object.defineProperty(i, "__esModule", {
|
|
268
268
|
value: !0
|
|
269
269
|
}), Object.defineProperty(i, "normalizeLocalePath", {
|
|
@@ -280,11 +280,11 @@ function rr() {
|
|
|
280
280
|
detectedLocale: n
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
|
-
})(
|
|
283
|
+
})(Me)), Me;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
function
|
|
287
|
-
return
|
|
285
|
+
var je = {}, wt;
|
|
286
|
+
function or() {
|
|
287
|
+
return wt || (wt = 1, (function(i) {
|
|
288
288
|
Object.defineProperty(i, "__esModule", {
|
|
289
289
|
value: !0
|
|
290
290
|
}), Object.defineProperty(i, "removePathPrefix", {
|
|
@@ -293,18 +293,18 @@ function nr() {
|
|
|
293
293
|
return t;
|
|
294
294
|
}
|
|
295
295
|
});
|
|
296
|
-
const e =
|
|
296
|
+
const e = rt();
|
|
297
297
|
function t(o, n) {
|
|
298
298
|
if (!(0, e.pathHasPrefix)(o, n))
|
|
299
299
|
return o;
|
|
300
300
|
const a = o.slice(n.length);
|
|
301
301
|
return a.startsWith("/") ? a : "/" + a;
|
|
302
302
|
}
|
|
303
|
-
})(
|
|
303
|
+
})(je)), je;
|
|
304
304
|
}
|
|
305
|
-
var
|
|
306
|
-
function
|
|
307
|
-
return
|
|
305
|
+
var Et;
|
|
306
|
+
function sr() {
|
|
307
|
+
return Et || (Et = 1, (function(i) {
|
|
308
308
|
Object.defineProperty(i, "__esModule", {
|
|
309
309
|
value: !0
|
|
310
310
|
}), Object.defineProperty(i, "getNextPathnameInfo", {
|
|
@@ -313,32 +313,32 @@ function ir() {
|
|
|
313
313
|
return n;
|
|
314
314
|
}
|
|
315
315
|
});
|
|
316
|
-
const e =
|
|
316
|
+
const e = ir(), t = or(), o = rt();
|
|
317
317
|
function n(a, u) {
|
|
318
318
|
var r;
|
|
319
|
-
const { basePath: d, i18n:
|
|
319
|
+
const { basePath: d, i18n: g, trailingSlash: c } = (r = u.nextConfig) != null ? r : {}, _ = {
|
|
320
320
|
pathname: a,
|
|
321
321
|
trailingSlash: a !== "/" ? a.endsWith("/") : c
|
|
322
322
|
};
|
|
323
|
-
d && (0, o.pathHasPrefix)(
|
|
324
|
-
let
|
|
325
|
-
if (
|
|
326
|
-
const S =
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
if (
|
|
330
|
-
let S = u.i18nProvider ? u.i18nProvider.analyze(
|
|
331
|
-
|
|
323
|
+
d && (0, o.pathHasPrefix)(_.pathname, d) && (_.pathname = (0, t.removePathPrefix)(_.pathname, d), _.basePath = d);
|
|
324
|
+
let p = _.pathname;
|
|
325
|
+
if (_.pathname.startsWith("/_next/data/") && _.pathname.endsWith(".json")) {
|
|
326
|
+
const S = _.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), x = S[0];
|
|
327
|
+
_.buildId = x, p = S[1] !== "index" ? "/" + S.slice(1).join("/") : "/", u.parseData === !0 && (_.pathname = p);
|
|
328
|
+
}
|
|
329
|
+
if (g) {
|
|
330
|
+
let S = u.i18nProvider ? u.i18nProvider.analyze(_.pathname) : (0, e.normalizeLocalePath)(_.pathname, g.locales);
|
|
331
|
+
_.locale = S.detectedLocale;
|
|
332
332
|
var R;
|
|
333
|
-
|
|
333
|
+
_.pathname = (R = S.pathname) != null ? R : _.pathname, !S.detectedLocale && _.buildId && (S = u.i18nProvider ? u.i18nProvider.analyze(p) : (0, e.normalizeLocalePath)(p, g.locales), S.detectedLocale && (_.locale = S.detectedLocale));
|
|
334
334
|
}
|
|
335
|
-
return
|
|
335
|
+
return _;
|
|
336
336
|
}
|
|
337
|
-
})(
|
|
337
|
+
})(De)), De;
|
|
338
338
|
}
|
|
339
|
-
var
|
|
340
|
-
function
|
|
341
|
-
return
|
|
339
|
+
var vt;
|
|
340
|
+
function Ht() {
|
|
341
|
+
return vt || (vt = 1, (function(i) {
|
|
342
342
|
Object.defineProperty(i, "__esModule", {
|
|
343
343
|
value: !0
|
|
344
344
|
}), Object.defineProperty(i, "NextURL", {
|
|
@@ -347,29 +347,29 @@ function jt() {
|
|
|
347
347
|
return d;
|
|
348
348
|
}
|
|
349
349
|
});
|
|
350
|
-
const e =
|
|
351
|
-
function u(
|
|
352
|
-
return new URL(String(
|
|
350
|
+
const e = Qt(), t = rr(), o = nr(), n = sr(), a = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
351
|
+
function u(g, c) {
|
|
352
|
+
return new URL(String(g).replace(a, "localhost"), c && String(c).replace(a, "localhost"));
|
|
353
353
|
}
|
|
354
354
|
const r = /* @__PURE__ */ Symbol("NextURLInternal");
|
|
355
355
|
class d {
|
|
356
|
-
constructor(c,
|
|
356
|
+
constructor(c, _, p) {
|
|
357
357
|
let R, S;
|
|
358
|
-
typeof
|
|
358
|
+
typeof _ == "object" && "pathname" in _ || typeof _ == "string" ? (R = _, S = p || {}) : S = p || _ || {}, this[r] = {
|
|
359
359
|
url: u(c, R ?? S.base),
|
|
360
360
|
options: S,
|
|
361
361
|
basePath: ""
|
|
362
362
|
}, this.analyze();
|
|
363
363
|
}
|
|
364
364
|
analyze() {
|
|
365
|
-
var c,
|
|
365
|
+
var c, _, p, R, S;
|
|
366
366
|
const x = (0, n.getNextPathnameInfo)(this[r].url.pathname, {
|
|
367
367
|
nextConfig: this[r].options.nextConfig,
|
|
368
368
|
parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
|
|
369
369
|
i18nProvider: this[r].options.i18nProvider
|
|
370
370
|
}), l = (0, o.getHostname)(this[r].url, this[r].options.headers);
|
|
371
|
-
this[r].domainLocale = this[r].options.i18nProvider ? this[r].options.i18nProvider.detectDomainLocale(l) : (0, e.detectDomainLocale)((
|
|
372
|
-
const b = ((
|
|
371
|
+
this[r].domainLocale = this[r].options.i18nProvider ? this[r].options.i18nProvider.detectDomainLocale(l) : (0, e.detectDomainLocale)((_ = this[r].options.nextConfig) == null || (c = _.i18n) == null ? void 0 : c.domains, l);
|
|
372
|
+
const b = ((p = this[r].domainLocale) == null ? void 0 : p.defaultLocale) || ((S = this[r].options.nextConfig) == null || (R = S.i18n) == null ? void 0 : R.defaultLocale);
|
|
373
373
|
this[r].url.pathname = x.pathname, this[r].defaultLocale = b, this[r].basePath = x.basePath ?? "", this[r].buildId = x.buildId, this[r].locale = x.locale ?? b, this[r].trailingSlash = x.trailingSlash;
|
|
374
374
|
}
|
|
375
375
|
formatPathname() {
|
|
@@ -395,8 +395,8 @@ function jt() {
|
|
|
395
395
|
return this[r].locale ?? "";
|
|
396
396
|
}
|
|
397
397
|
set locale(c) {
|
|
398
|
-
var
|
|
399
|
-
if (!this[r].locale || !(!((
|
|
398
|
+
var _, p;
|
|
399
|
+
if (!this[r].locale || !(!((p = this[r].options.nextConfig) == null || (_ = p.i18n) == null) && _.locales.includes(c)))
|
|
400
400
|
throw new TypeError(`The NextURL configuration includes no locale "${c}"`);
|
|
401
401
|
this[r].locale = c;
|
|
402
402
|
}
|
|
@@ -434,8 +434,8 @@ function jt() {
|
|
|
434
434
|
this[r].url.protocol = c;
|
|
435
435
|
}
|
|
436
436
|
get href() {
|
|
437
|
-
const c = this.formatPathname(),
|
|
438
|
-
return `${this.protocol}//${this.host}${c}${
|
|
437
|
+
const c = this.formatPathname(), _ = this.formatSearch();
|
|
438
|
+
return `${this.protocol}//${this.host}${c}${_}${this.hash}`;
|
|
439
439
|
}
|
|
440
440
|
set href(c) {
|
|
441
441
|
this[r].url = u(c), this.analyze();
|
|
@@ -505,11 +505,11 @@ function jt() {
|
|
|
505
505
|
return new d(String(this), this[r].options);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
})(
|
|
508
|
+
})(Ae)), Ae;
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
512
|
-
return
|
|
510
|
+
var qe = {}, He = {}, Rt;
|
|
511
|
+
function ar() {
|
|
512
|
+
return Rt || (Rt = 1, (function(i) {
|
|
513
513
|
Object.defineProperty(i, "__esModule", {
|
|
514
514
|
value: !0
|
|
515
515
|
});
|
|
@@ -545,7 +545,7 @@ function or() {
|
|
|
545
545
|
return se;
|
|
546
546
|
},
|
|
547
547
|
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
548
|
-
return
|
|
548
|
+
return f;
|
|
549
549
|
},
|
|
550
550
|
MIDDLEWARE_FILENAME: function() {
|
|
551
551
|
return s;
|
|
@@ -554,7 +554,7 @@ function or() {
|
|
|
554
554
|
return v;
|
|
555
555
|
},
|
|
556
556
|
NEXT_BODY_SUFFIX: function() {
|
|
557
|
-
return
|
|
557
|
+
return _;
|
|
558
558
|
},
|
|
559
559
|
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
560
560
|
return m;
|
|
@@ -572,7 +572,7 @@ function or() {
|
|
|
572
572
|
return h;
|
|
573
573
|
},
|
|
574
574
|
NEXT_CACHE_TAGS_HEADER: function() {
|
|
575
|
-
return
|
|
575
|
+
return p;
|
|
576
576
|
},
|
|
577
577
|
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
578
578
|
return l;
|
|
@@ -581,7 +581,7 @@ function or() {
|
|
|
581
581
|
return b;
|
|
582
582
|
},
|
|
583
583
|
NEXT_DATA_SUFFIX: function() {
|
|
584
|
-
return
|
|
584
|
+
return g;
|
|
585
585
|
},
|
|
586
586
|
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
587
587
|
return o;
|
|
@@ -662,7 +662,7 @@ function or() {
|
|
|
662
662
|
return me;
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
|
-
const t = "nxtP", o = "nxtI", n = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", u = ".prefetch.rsc", r = ".rsc", d = ".action",
|
|
665
|
+
const t = "nxtP", o = "nxtI", n = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", u = ".prefetch.rsc", r = ".rsc", d = ".action", g = ".json", c = ".meta", _ = ".body", p = "x-next-cache-tags", R = "x-next-cache-soft-tags", S = "x-next-revalidated-tags", x = "x-next-revalidate-tag-token", l = 128, b = 256, h = 1024, m = "_N_T_", E = 31536e3, s = "middleware", v = `(?:src/)?${s}`, f = "instrumentation", w = "private-next-pages", P = "private-dot-next", N = "private-next-root-dir", M = "private-next-app-dir", D = "private-next-rsc-mod-ref-proxy", H = "private-next-rsc-action-validate", j = "private-next-rsc-server-reference", J = "private-next-rsc-action-encryption", Q = "private-next-rsc-action-client-wrapper", F = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", W = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ie = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", z = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Z = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", de = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", oe = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", se = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", he = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", ee = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", ae = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', fe = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", te = [
|
|
666
666
|
"app",
|
|
667
667
|
"pages",
|
|
668
668
|
"components",
|
|
@@ -753,18 +753,18 @@ function or() {
|
|
|
753
753
|
metadataRoute: "__next_metadata_route__",
|
|
754
754
|
metadataImageMeta: "__next_metadata_image_meta__"
|
|
755
755
|
};
|
|
756
|
-
})(
|
|
756
|
+
})(He)), He;
|
|
757
757
|
}
|
|
758
|
-
var
|
|
759
|
-
function
|
|
760
|
-
return
|
|
758
|
+
var Pt;
|
|
759
|
+
function Ft() {
|
|
760
|
+
return Pt || (Pt = 1, (function(i) {
|
|
761
761
|
Object.defineProperty(i, "__esModule", {
|
|
762
762
|
value: !0
|
|
763
763
|
});
|
|
764
|
-
function e(d,
|
|
765
|
-
for (var c in
|
|
764
|
+
function e(d, g) {
|
|
765
|
+
for (var c in g) Object.defineProperty(d, c, {
|
|
766
766
|
enumerable: !0,
|
|
767
|
-
get:
|
|
767
|
+
get: g[c]
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
770
|
e(i, {
|
|
@@ -784,72 +784,72 @@ function qt() {
|
|
|
784
784
|
return u;
|
|
785
785
|
}
|
|
786
786
|
});
|
|
787
|
-
const t =
|
|
787
|
+
const t = ar();
|
|
788
788
|
function o(d) {
|
|
789
|
-
const
|
|
790
|
-
for (let [c,
|
|
791
|
-
const
|
|
792
|
-
|
|
789
|
+
const g = new Headers();
|
|
790
|
+
for (let [c, _] of Object.entries(d)) {
|
|
791
|
+
const p = Array.isArray(_) ? _ : [
|
|
792
|
+
_
|
|
793
793
|
];
|
|
794
|
-
for (let R of
|
|
795
|
-
typeof R > "u" || (typeof R == "number" && (R = R.toString()),
|
|
794
|
+
for (let R of p)
|
|
795
|
+
typeof R > "u" || (typeof R == "number" && (R = R.toString()), g.append(c, R));
|
|
796
796
|
}
|
|
797
|
-
return
|
|
797
|
+
return g;
|
|
798
798
|
}
|
|
799
799
|
function n(d) {
|
|
800
|
-
var
|
|
800
|
+
var g = [], c = 0, _, p, R, S, x;
|
|
801
801
|
function l() {
|
|
802
802
|
for (; c < d.length && /\s/.test(d.charAt(c)); )
|
|
803
803
|
c += 1;
|
|
804
804
|
return c < d.length;
|
|
805
805
|
}
|
|
806
806
|
function b() {
|
|
807
|
-
return
|
|
807
|
+
return p = d.charAt(c), p !== "=" && p !== ";" && p !== ",";
|
|
808
808
|
}
|
|
809
809
|
for (; c < d.length; ) {
|
|
810
|
-
for (
|
|
811
|
-
if (
|
|
810
|
+
for (_ = c, x = !1; l(); )
|
|
811
|
+
if (p = d.charAt(c), p === ",") {
|
|
812
812
|
for (R = c, c += 1, l(), S = c; c < d.length && b(); )
|
|
813
813
|
c += 1;
|
|
814
|
-
c < d.length && d.charAt(c) === "=" ? (x = !0, c = S,
|
|
814
|
+
c < d.length && d.charAt(c) === "=" ? (x = !0, c = S, g.push(d.substring(_, R)), _ = c) : c = R + 1;
|
|
815
815
|
} else
|
|
816
816
|
c += 1;
|
|
817
|
-
(!x || c >= d.length) &&
|
|
817
|
+
(!x || c >= d.length) && g.push(d.substring(_, d.length));
|
|
818
818
|
}
|
|
819
|
-
return
|
|
819
|
+
return g;
|
|
820
820
|
}
|
|
821
821
|
function a(d) {
|
|
822
|
-
const
|
|
822
|
+
const g = {}, c = [];
|
|
823
823
|
if (d)
|
|
824
|
-
for (const [
|
|
825
|
-
|
|
826
|
-
return
|
|
824
|
+
for (const [_, p] of d.entries())
|
|
825
|
+
_.toLowerCase() === "set-cookie" ? (c.push(...n(p)), g[_] = c.length === 1 ? c[0] : c) : g[_] = p;
|
|
826
|
+
return g;
|
|
827
827
|
}
|
|
828
828
|
function u(d) {
|
|
829
829
|
try {
|
|
830
830
|
return String(new URL(String(d)));
|
|
831
|
-
} catch (
|
|
831
|
+
} catch (g) {
|
|
832
832
|
throw new Error(`URL is malformed "${String(d)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
|
|
833
|
-
cause:
|
|
833
|
+
cause: g
|
|
834
834
|
});
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
function r(d,
|
|
837
|
+
function r(d, g) {
|
|
838
838
|
const c = [
|
|
839
839
|
t.NEXT_QUERY_PARAM_PREFIX,
|
|
840
840
|
t.NEXT_INTERCEPTION_MARKER_PREFIX
|
|
841
841
|
];
|
|
842
|
-
for (const
|
|
843
|
-
if (d !==
|
|
844
|
-
const
|
|
845
|
-
|
|
842
|
+
for (const _ of c)
|
|
843
|
+
if (d !== _ && d.startsWith(_)) {
|
|
844
|
+
const p = d.substring(_.length);
|
|
845
|
+
g(p);
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
|
-
})(
|
|
848
|
+
})(qe)), qe;
|
|
849
849
|
}
|
|
850
|
-
var
|
|
851
|
-
function
|
|
852
|
-
return
|
|
850
|
+
var Fe = {}, yt;
|
|
851
|
+
function ur() {
|
|
852
|
+
return yt || (yt = 1, (function(i) {
|
|
853
853
|
Object.defineProperty(i, "__esModule", {
|
|
854
854
|
value: !0
|
|
855
855
|
});
|
|
@@ -892,31 +892,31 @@ function sr() {
|
|
|
892
892
|
super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ");
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
})(
|
|
895
|
+
})(Fe)), Fe;
|
|
896
896
|
}
|
|
897
|
-
var
|
|
898
|
-
function
|
|
899
|
-
if (
|
|
900
|
-
|
|
897
|
+
var Ge = {}, Be, St;
|
|
898
|
+
function cr() {
|
|
899
|
+
if (St) return Be;
|
|
900
|
+
St = 1;
|
|
901
901
|
var i = Object.defineProperty, e = Object.getOwnPropertyDescriptor, t = Object.getOwnPropertyNames, o = Object.prototype.hasOwnProperty, n = (s, v) => {
|
|
902
|
-
for (var
|
|
903
|
-
i(s,
|
|
904
|
-
}, a = (s, v,
|
|
902
|
+
for (var f in v)
|
|
903
|
+
i(s, f, { get: v[f], enumerable: !0 });
|
|
904
|
+
}, a = (s, v, f, w) => {
|
|
905
905
|
if (v && typeof v == "object" || typeof v == "function")
|
|
906
906
|
for (let P of t(v))
|
|
907
|
-
!o.call(s, P) && P !==
|
|
907
|
+
!o.call(s, P) && P !== f && i(s, P, { get: () => v[P], enumerable: !(w = e(v, P)) || w.enumerable });
|
|
908
908
|
return s;
|
|
909
909
|
}, u = (s) => a(i({}, "__esModule", { value: !0 }), s), r = {};
|
|
910
910
|
n(r, {
|
|
911
911
|
RequestCookies: () => b,
|
|
912
912
|
ResponseCookies: () => h,
|
|
913
|
-
parseCookie: () =>
|
|
913
|
+
parseCookie: () => g,
|
|
914
914
|
parseSetCookie: () => c,
|
|
915
915
|
stringifyCookie: () => d
|
|
916
916
|
}), Be = u(r);
|
|
917
917
|
function d(s) {
|
|
918
918
|
var v;
|
|
919
|
-
const
|
|
919
|
+
const f = [
|
|
920
920
|
"path" in s && s.path && `Path=${s.path}`,
|
|
921
921
|
"expires" in s && (s.expires || s.expires === 0) && `Expires=${(typeof s.expires == "number" ? new Date(s.expires) : s.expires).toUTCString()}`,
|
|
922
922
|
"maxAge" in s && typeof s.maxAge == "number" && `Max-Age=${s.maxAge}`,
|
|
@@ -927,19 +927,19 @@ function ar() {
|
|
|
927
927
|
"partitioned" in s && s.partitioned && "Partitioned",
|
|
928
928
|
"priority" in s && s.priority && `Priority=${s.priority}`
|
|
929
929
|
].filter(Boolean), w = `${s.name}=${encodeURIComponent((v = s.value) != null ? v : "")}`;
|
|
930
|
-
return
|
|
930
|
+
return f.length === 0 ? w : `${w}; ${f.join("; ")}`;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function g(s) {
|
|
933
933
|
const v = /* @__PURE__ */ new Map();
|
|
934
|
-
for (const
|
|
935
|
-
if (!
|
|
934
|
+
for (const f of s.split(/; */)) {
|
|
935
|
+
if (!f)
|
|
936
936
|
continue;
|
|
937
|
-
const w =
|
|
937
|
+
const w = f.indexOf("=");
|
|
938
938
|
if (w === -1) {
|
|
939
|
-
v.set(
|
|
939
|
+
v.set(f, "true");
|
|
940
940
|
continue;
|
|
941
941
|
}
|
|
942
|
-
const [P, N] = [
|
|
942
|
+
const [P, N] = [f.slice(0, w), f.slice(w + 1)];
|
|
943
943
|
try {
|
|
944
944
|
v.set(P, decodeURIComponent(N ?? "true"));
|
|
945
945
|
} catch {
|
|
@@ -950,7 +950,7 @@ function ar() {
|
|
|
950
950
|
function c(s) {
|
|
951
951
|
if (!s)
|
|
952
952
|
return;
|
|
953
|
-
const [[v,
|
|
953
|
+
const [[v, f], ...w] = g(s), {
|
|
954
954
|
domain: P,
|
|
955
955
|
expires: N,
|
|
956
956
|
httponly: M,
|
|
@@ -964,7 +964,7 @@ function ar() {
|
|
|
964
964
|
w.map(([ie, z]) => [ie.toLowerCase(), z])
|
|
965
965
|
), W = {
|
|
966
966
|
name: v,
|
|
967
|
-
value: decodeURIComponent(
|
|
967
|
+
value: decodeURIComponent(f),
|
|
968
968
|
domain: P,
|
|
969
969
|
...N && { expires: new Date(N) },
|
|
970
970
|
...M && { httpOnly: !0 },
|
|
@@ -975,17 +975,17 @@ function ar() {
|
|
|
975
975
|
...F && { priority: x(F) },
|
|
976
976
|
...Q && { partitioned: !0 }
|
|
977
977
|
};
|
|
978
|
-
return
|
|
978
|
+
return _(W);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function _(s) {
|
|
981
981
|
const v = {};
|
|
982
|
-
for (const
|
|
983
|
-
s[
|
|
982
|
+
for (const f in s)
|
|
983
|
+
s[f] && (v[f] = s[f]);
|
|
984
984
|
return v;
|
|
985
985
|
}
|
|
986
|
-
var
|
|
986
|
+
var p = ["strict", "lax", "none"];
|
|
987
987
|
function R(s) {
|
|
988
|
-
return s = s.toLowerCase(),
|
|
988
|
+
return s = s.toLowerCase(), p.includes(s) ? s : void 0;
|
|
989
989
|
}
|
|
990
990
|
var S = ["low", "medium", "high"];
|
|
991
991
|
function x(s) {
|
|
@@ -994,24 +994,24 @@ function ar() {
|
|
|
994
994
|
function l(s) {
|
|
995
995
|
if (!s)
|
|
996
996
|
return [];
|
|
997
|
-
var v = [],
|
|
997
|
+
var v = [], f = 0, w, P, N, M, D;
|
|
998
998
|
function H() {
|
|
999
|
-
for (;
|
|
1000
|
-
|
|
1001
|
-
return
|
|
999
|
+
for (; f < s.length && /\s/.test(s.charAt(f)); )
|
|
1000
|
+
f += 1;
|
|
1001
|
+
return f < s.length;
|
|
1002
1002
|
}
|
|
1003
1003
|
function j() {
|
|
1004
|
-
return P = s.charAt(
|
|
1005
|
-
}
|
|
1006
|
-
for (;
|
|
1007
|
-
for (w =
|
|
1008
|
-
if (P = s.charAt(
|
|
1009
|
-
for (N =
|
|
1010
|
-
|
|
1011
|
-
|
|
1004
|
+
return P = s.charAt(f), P !== "=" && P !== ";" && P !== ",";
|
|
1005
|
+
}
|
|
1006
|
+
for (; f < s.length; ) {
|
|
1007
|
+
for (w = f, D = !1; H(); )
|
|
1008
|
+
if (P = s.charAt(f), P === ",") {
|
|
1009
|
+
for (N = f, f += 1, H(), M = f; f < s.length && j(); )
|
|
1010
|
+
f += 1;
|
|
1011
|
+
f < s.length && s.charAt(f) === "=" ? (D = !0, f = M, v.push(s.substring(w, N)), w = f) : f = N + 1;
|
|
1012
1012
|
} else
|
|
1013
|
-
|
|
1014
|
-
(!D ||
|
|
1013
|
+
f += 1;
|
|
1014
|
+
(!D || f >= s.length) && v.push(s.substring(w, s.length));
|
|
1015
1015
|
}
|
|
1016
1016
|
return v;
|
|
1017
1017
|
}
|
|
@@ -1020,8 +1020,8 @@ function ar() {
|
|
|
1020
1020
|
this._parsed = /* @__PURE__ */ new Map(), this._headers = s;
|
|
1021
1021
|
const v = s.get("cookie");
|
|
1022
1022
|
if (v) {
|
|
1023
|
-
const
|
|
1024
|
-
for (const [w, P] of
|
|
1023
|
+
const f = g(v);
|
|
1024
|
+
for (const [w, P] of f)
|
|
1025
1025
|
this._parsed.set(w, { name: w, value: P });
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
@@ -1040,18 +1040,18 @@ function ar() {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
getAll(...s) {
|
|
1042
1042
|
var v;
|
|
1043
|
-
const
|
|
1043
|
+
const f = Array.from(this._parsed);
|
|
1044
1044
|
if (!s.length)
|
|
1045
|
-
return
|
|
1045
|
+
return f.map(([P, N]) => N);
|
|
1046
1046
|
const w = typeof s[0] == "string" ? s[0] : (v = s[0]) == null ? void 0 : v.name;
|
|
1047
|
-
return
|
|
1047
|
+
return f.filter(([P]) => P === w).map(([P, N]) => N);
|
|
1048
1048
|
}
|
|
1049
1049
|
has(s) {
|
|
1050
1050
|
return this._parsed.has(s);
|
|
1051
1051
|
}
|
|
1052
1052
|
set(...s) {
|
|
1053
|
-
const [v,
|
|
1054
|
-
return w.set(v, { name: v, value:
|
|
1053
|
+
const [v, f] = s.length === 1 ? [s[0].name, s[0].value] : s, w = this._parsed;
|
|
1054
|
+
return w.set(v, { name: v, value: f }), this._headers.set(
|
|
1055
1055
|
"cookie",
|
|
1056
1056
|
Array.from(w).map(([P, N]) => d(N)).join("; ")
|
|
1057
1057
|
), this;
|
|
@@ -1060,11 +1060,11 @@ function ar() {
|
|
|
1060
1060
|
* Delete the cookies matching the passed name or names in the request.
|
|
1061
1061
|
*/
|
|
1062
1062
|
delete(s) {
|
|
1063
|
-
const v = this._parsed,
|
|
1063
|
+
const v = this._parsed, f = Array.isArray(s) ? s.map((w) => v.delete(w)) : v.delete(s);
|
|
1064
1064
|
return this._headers.set(
|
|
1065
1065
|
"cookie",
|
|
1066
1066
|
Array.from(v).map(([w, P]) => d(P)).join("; ")
|
|
1067
|
-
),
|
|
1067
|
+
), f;
|
|
1068
1068
|
}
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Delete all the cookies in the cookies in the request.
|
|
@@ -1084,9 +1084,9 @@ function ar() {
|
|
|
1084
1084
|
}, h = class {
|
|
1085
1085
|
constructor(s) {
|
|
1086
1086
|
this._parsed = /* @__PURE__ */ new Map();
|
|
1087
|
-
var v,
|
|
1087
|
+
var v, f, w;
|
|
1088
1088
|
this._headers = s;
|
|
1089
|
-
const P = (w = (
|
|
1089
|
+
const P = (w = (f = (v = s.getSetCookie) == null ? void 0 : v.call(s)) != null ? f : s.get("set-cookie")) != null ? w : [], N = Array.isArray(P) ? P : l(P);
|
|
1090
1090
|
for (const M of N) {
|
|
1091
1091
|
const D = c(M);
|
|
1092
1092
|
D && this._parsed.set(D.name, D);
|
|
@@ -1104,11 +1104,11 @@ function ar() {
|
|
|
1104
1104
|
*/
|
|
1105
1105
|
getAll(...s) {
|
|
1106
1106
|
var v;
|
|
1107
|
-
const
|
|
1107
|
+
const f = Array.from(this._parsed.values());
|
|
1108
1108
|
if (!s.length)
|
|
1109
|
-
return
|
|
1109
|
+
return f;
|
|
1110
1110
|
const w = typeof s[0] == "string" ? s[0] : (v = s[0]) == null ? void 0 : v.name;
|
|
1111
|
-
return
|
|
1111
|
+
return f.filter((P) => P.name === w);
|
|
1112
1112
|
}
|
|
1113
1113
|
has(s) {
|
|
1114
1114
|
return this._parsed.has(s);
|
|
@@ -1117,15 +1117,15 @@ function ar() {
|
|
|
1117
1117
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
1118
1118
|
*/
|
|
1119
1119
|
set(...s) {
|
|
1120
|
-
const [v,
|
|
1121
|
-
return P.set(v, E({ name: v, value:
|
|
1120
|
+
const [v, f, w] = s.length === 1 ? [s[0].name, s[0].value, s[0]] : s, P = this._parsed;
|
|
1121
|
+
return P.set(v, E({ name: v, value: f, ...w })), m(P, this._headers), this;
|
|
1122
1122
|
}
|
|
1123
1123
|
/**
|
|
1124
1124
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
1125
1125
|
*/
|
|
1126
1126
|
delete(...s) {
|
|
1127
|
-
const [v,
|
|
1128
|
-
return this.set({ name: v, path:
|
|
1127
|
+
const [v, f, w] = typeof s[0] == "string" ? [s[0]] : [s[0].name, s[0].path, s[0].domain];
|
|
1128
|
+
return this.set({ name: v, path: f, domain: w, value: "", expires: /* @__PURE__ */ new Date(0) });
|
|
1129
1129
|
}
|
|
1130
1130
|
[/* @__PURE__ */ Symbol.for("edge-runtime.inspect.custom")]() {
|
|
1131
1131
|
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
@@ -1136,8 +1136,8 @@ function ar() {
|
|
|
1136
1136
|
};
|
|
1137
1137
|
function m(s, v) {
|
|
1138
1138
|
v.delete("set-cookie");
|
|
1139
|
-
for (const [,
|
|
1140
|
-
const w = d(
|
|
1139
|
+
for (const [, f] of s) {
|
|
1140
|
+
const w = d(f);
|
|
1141
1141
|
v.append("set-cookie", w);
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
@@ -1146,9 +1146,9 @@ function ar() {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
return Be;
|
|
1148
1148
|
}
|
|
1149
|
-
var
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1149
|
+
var At;
|
|
1150
|
+
function Je() {
|
|
1151
|
+
return At || (At = 1, (function(i) {
|
|
1152
1152
|
Object.defineProperty(i, "__esModule", {
|
|
1153
1153
|
value: !0
|
|
1154
1154
|
});
|
|
@@ -1169,19 +1169,19 @@ function $e() {
|
|
|
1169
1169
|
return t.stringifyCookie;
|
|
1170
1170
|
}
|
|
1171
1171
|
});
|
|
1172
|
-
const t =
|
|
1173
|
-
})(
|
|
1172
|
+
const t = cr();
|
|
1173
|
+
})(Ge)), Ge;
|
|
1174
1174
|
}
|
|
1175
|
-
var
|
|
1176
|
-
function
|
|
1177
|
-
return
|
|
1175
|
+
var Tt;
|
|
1176
|
+
function lr() {
|
|
1177
|
+
return Tt || (Tt = 1, (function(i) {
|
|
1178
1178
|
Object.defineProperty(i, "__esModule", {
|
|
1179
1179
|
value: !0
|
|
1180
1180
|
});
|
|
1181
|
-
function e(d,
|
|
1182
|
-
for (var c in
|
|
1181
|
+
function e(d, g) {
|
|
1182
|
+
for (var c in g) Object.defineProperty(d, c, {
|
|
1183
1183
|
enumerable: !0,
|
|
1184
|
-
get:
|
|
1184
|
+
get: g[c]
|
|
1185
1185
|
});
|
|
1186
1186
|
}
|
|
1187
1187
|
e(i, {
|
|
@@ -1192,12 +1192,12 @@ function ur() {
|
|
|
1192
1192
|
return r;
|
|
1193
1193
|
}
|
|
1194
1194
|
});
|
|
1195
|
-
const t =
|
|
1195
|
+
const t = Ht(), o = Ft(), n = ur(), a = Je(), u = /* @__PURE__ */ Symbol("internal request");
|
|
1196
1196
|
class r extends Request {
|
|
1197
|
-
constructor(
|
|
1198
|
-
const
|
|
1199
|
-
(0, o.validateURL)(
|
|
1200
|
-
const
|
|
1197
|
+
constructor(g, c = {}) {
|
|
1198
|
+
const _ = typeof g != "string" && "url" in g ? g.url : String(g);
|
|
1199
|
+
(0, o.validateURL)(_), g instanceof Request ? super(g, c) : super(_, c);
|
|
1200
|
+
const p = new t.NextURL(_, {
|
|
1201
1201
|
headers: (0, o.toNodeOutgoingHttpHeaders)(this.headers),
|
|
1202
1202
|
nextConfig: c.nextConfig
|
|
1203
1203
|
});
|
|
@@ -1205,8 +1205,8 @@ function ur() {
|
|
|
1205
1205
|
cookies: new a.RequestCookies(this.headers),
|
|
1206
1206
|
geo: c.geo || {},
|
|
1207
1207
|
ip: c.ip,
|
|
1208
|
-
nextUrl:
|
|
1209
|
-
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ?
|
|
1208
|
+
nextUrl: p,
|
|
1209
|
+
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? _ : p.toString()
|
|
1210
1210
|
};
|
|
1211
1211
|
}
|
|
1212
1212
|
[/* @__PURE__ */ Symbol.for("edge-runtime.inspect.custom")]() {
|
|
@@ -1264,11 +1264,11 @@ function ur() {
|
|
|
1264
1264
|
return this[u].url;
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
})(
|
|
1267
|
+
})(Se)), Se;
|
|
1268
1268
|
}
|
|
1269
|
-
var
|
|
1270
|
-
function
|
|
1271
|
-
return
|
|
1269
|
+
var Xe = {}, We = {}, It;
|
|
1270
|
+
function dr() {
|
|
1271
|
+
return It || (It = 1, (function(i) {
|
|
1272
1272
|
Object.defineProperty(i, "__esModule", {
|
|
1273
1273
|
value: !0
|
|
1274
1274
|
}), Object.defineProperty(i, "ReflectAdapter", {
|
|
@@ -1292,40 +1292,40 @@ function cr() {
|
|
|
1292
1292
|
return Reflect.deleteProperty(o, n);
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
|
-
})(
|
|
1295
|
+
})(We)), We;
|
|
1296
1296
|
}
|
|
1297
|
-
var
|
|
1298
|
-
function
|
|
1299
|
-
return
|
|
1297
|
+
var Ot;
|
|
1298
|
+
function hr() {
|
|
1299
|
+
return Ot || (Ot = 1, (function(i) {
|
|
1300
1300
|
Object.defineProperty(i, "__esModule", {
|
|
1301
1301
|
value: !0
|
|
1302
1302
|
}), Object.defineProperty(i, "NextResponse", {
|
|
1303
1303
|
enumerable: !0,
|
|
1304
1304
|
get: function() {
|
|
1305
|
-
return
|
|
1305
|
+
return g;
|
|
1306
1306
|
}
|
|
1307
1307
|
});
|
|
1308
|
-
const e =
|
|
1308
|
+
const e = Je(), t = Ht(), o = Ft(), n = dr(), a = Je(), u = /* @__PURE__ */ Symbol("internal response"), r = /* @__PURE__ */ new Set([
|
|
1309
1309
|
301,
|
|
1310
1310
|
302,
|
|
1311
1311
|
303,
|
|
1312
1312
|
307,
|
|
1313
1313
|
308
|
|
1314
1314
|
]);
|
|
1315
|
-
function d(c,
|
|
1316
|
-
var
|
|
1317
|
-
if (!(c == null || (
|
|
1315
|
+
function d(c, _) {
|
|
1316
|
+
var p;
|
|
1317
|
+
if (!(c == null || (p = c.request) == null) && p.headers) {
|
|
1318
1318
|
if (!(c.request.headers instanceof Headers))
|
|
1319
1319
|
throw new Error("request.headers must be an instance of Headers");
|
|
1320
1320
|
const R = [];
|
|
1321
1321
|
for (const [S, x] of c.request.headers)
|
|
1322
|
-
|
|
1323
|
-
|
|
1322
|
+
_.set("x-middleware-request-" + S, x), R.push(S);
|
|
1323
|
+
_.set("x-middleware-override-headers", R.join(","));
|
|
1324
1324
|
}
|
|
1325
1325
|
}
|
|
1326
|
-
class
|
|
1327
|
-
constructor(
|
|
1328
|
-
super(
|
|
1326
|
+
class g extends Response {
|
|
1327
|
+
constructor(_, p = {}) {
|
|
1328
|
+
super(_, p);
|
|
1329
1329
|
const R = this.headers, S = new a.ResponseCookies(R), x = new Proxy(S, {
|
|
1330
1330
|
get(l, b, h) {
|
|
1331
1331
|
switch (b) {
|
|
@@ -1333,7 +1333,7 @@ function lr() {
|
|
|
1333
1333
|
case "set":
|
|
1334
1334
|
return (...m) => {
|
|
1335
1335
|
const E = Reflect.apply(l[b], l, m), s = new Headers(R);
|
|
1336
|
-
return E instanceof a.ResponseCookies && R.set("x-middleware-set-cookie", E.getAll().map((v) => (0, e.stringifyCookie)(v)).join(",")), d(
|
|
1336
|
+
return E instanceof a.ResponseCookies && R.set("x-middleware-set-cookie", E.getAll().map((v) => (0, e.stringifyCookie)(v)).join(",")), d(p, s), E;
|
|
1337
1337
|
};
|
|
1338
1338
|
default:
|
|
1339
1339
|
return n.ReflectAdapter.get(l, b, h);
|
|
@@ -1342,9 +1342,9 @@ function lr() {
|
|
|
1342
1342
|
});
|
|
1343
1343
|
this[u] = {
|
|
1344
1344
|
cookies: x,
|
|
1345
|
-
url:
|
|
1345
|
+
url: p.url ? new t.NextURL(p.url, {
|
|
1346
1346
|
headers: (0, o.toNodeOutgoingHttpHeaders)(R),
|
|
1347
|
-
nextConfig:
|
|
1347
|
+
nextConfig: p.nextConfig
|
|
1348
1348
|
}) : void 0
|
|
1349
1349
|
};
|
|
1350
1350
|
}
|
|
@@ -1366,41 +1366,41 @@ function lr() {
|
|
|
1366
1366
|
get cookies() {
|
|
1367
1367
|
return this[u].cookies;
|
|
1368
1368
|
}
|
|
1369
|
-
static json(
|
|
1370
|
-
const R = Response.json(
|
|
1371
|
-
return new
|
|
1369
|
+
static json(_, p) {
|
|
1370
|
+
const R = Response.json(_, p);
|
|
1371
|
+
return new g(R.body, R);
|
|
1372
1372
|
}
|
|
1373
|
-
static redirect(
|
|
1374
|
-
const R = typeof
|
|
1373
|
+
static redirect(_, p) {
|
|
1374
|
+
const R = typeof p == "number" ? p : p?.status ?? 307;
|
|
1375
1375
|
if (!r.has(R))
|
|
1376
1376
|
throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
|
|
1377
|
-
const S = typeof
|
|
1378
|
-
return x.set("Location", (0, o.validateURL)(
|
|
1377
|
+
const S = typeof p == "object" ? p : {}, x = new Headers(S?.headers);
|
|
1378
|
+
return x.set("Location", (0, o.validateURL)(_)), new g(null, {
|
|
1379
1379
|
...S,
|
|
1380
1380
|
headers: x,
|
|
1381
1381
|
status: R
|
|
1382
1382
|
});
|
|
1383
1383
|
}
|
|
1384
|
-
static rewrite(
|
|
1385
|
-
const R = new Headers(
|
|
1386
|
-
return R.set("x-middleware-rewrite", (0, o.validateURL)(
|
|
1387
|
-
...
|
|
1384
|
+
static rewrite(_, p) {
|
|
1385
|
+
const R = new Headers(p?.headers);
|
|
1386
|
+
return R.set("x-middleware-rewrite", (0, o.validateURL)(_)), d(p, R), new g(null, {
|
|
1387
|
+
...p,
|
|
1388
1388
|
headers: R
|
|
1389
1389
|
});
|
|
1390
1390
|
}
|
|
1391
|
-
static next(
|
|
1392
|
-
const
|
|
1393
|
-
return
|
|
1394
|
-
...
|
|
1395
|
-
headers:
|
|
1391
|
+
static next(_) {
|
|
1392
|
+
const p = new Headers(_?.headers);
|
|
1393
|
+
return p.set("x-middleware-next", "1"), d(_, p), new g(null, {
|
|
1394
|
+
..._,
|
|
1395
|
+
headers: p
|
|
1396
1396
|
});
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
|
-
})(
|
|
1399
|
+
})(Xe)), Xe;
|
|
1400
1400
|
}
|
|
1401
|
-
var
|
|
1402
|
-
function
|
|
1403
|
-
return
|
|
1401
|
+
var ze = {}, xt;
|
|
1402
|
+
function fr() {
|
|
1403
|
+
return xt || (xt = 1, (function(i) {
|
|
1404
1404
|
Object.defineProperty(i, "__esModule", {
|
|
1405
1405
|
value: !0
|
|
1406
1406
|
}), Object.defineProperty(i, "ImageResponse", {
|
|
@@ -1412,14 +1412,14 @@ function dr() {
|
|
|
1412
1412
|
function e() {
|
|
1413
1413
|
throw new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead');
|
|
1414
1414
|
}
|
|
1415
|
-
})(
|
|
1415
|
+
})(ze)), ze;
|
|
1416
1416
|
}
|
|
1417
|
-
var
|
|
1418
|
-
function
|
|
1419
|
-
return
|
|
1417
|
+
var Ve = {}, Ke = { exports: {} }, Nt;
|
|
1418
|
+
function pr() {
|
|
1419
|
+
return Nt || (Nt = 1, (() => {
|
|
1420
1420
|
var i = { 226: function(n, a) {
|
|
1421
1421
|
(function(u, r) {
|
|
1422
|
-
var d = "1.0.35",
|
|
1422
|
+
var d = "1.0.35", g = "", c = "?", _ = "function", p = "undefined", R = "object", S = "string", x = "major", l = "model", b = "name", h = "type", m = "vendor", E = "version", s = "architecture", v = "console", f = "mobile", w = "tablet", P = "smarttv", N = "wearable", M = "embedded", D = 350, H = "Amazon", j = "Apple", J = "ASUS", Q = "BlackBerry", F = "Browser", W = "Chrome", ie = "Edge", z = "Firefox", Z = "Google", de = "Huawei", oe = "LG", se = "Microsoft", he = "Motorola", ee = "Opera", ae = "Samsung", fe = "Sharp", te = "Sony", ue = "Xiaomi", L = "Zebra", pe = "Facebook", me = "Chromium OS", _e = "Mac OS", ge = function(T, O) {
|
|
1423
1423
|
var A = {};
|
|
1424
1424
|
for (var C in T)
|
|
1425
1425
|
O[C] && O[C].length % 2 === 0 ? A[C] = O[C].concat(T[C]) : A[C] = T[C];
|
|
@@ -1428,62 +1428,62 @@ function hr() {
|
|
|
1428
1428
|
for (var O = {}, A = 0; A < T.length; A++)
|
|
1429
1429
|
O[T[A].toUpperCase()] = T[A];
|
|
1430
1430
|
return O;
|
|
1431
|
-
},
|
|
1431
|
+
}, nt = function(T, O) {
|
|
1432
1432
|
return typeof T === S ? ce(O).indexOf(ce(T)) !== -1 : !1;
|
|
1433
1433
|
}, ce = function(T) {
|
|
1434
1434
|
return T.toLowerCase();
|
|
1435
|
-
},
|
|
1436
|
-
return typeof T === S ? T.replace(/[^\d\.]/g,
|
|
1437
|
-
},
|
|
1435
|
+
}, zt = function(T) {
|
|
1436
|
+
return typeof T === S ? T.replace(/[^\d\.]/g, g).split(".")[0] : r;
|
|
1437
|
+
}, Re = function(T, O) {
|
|
1438
1438
|
if (typeof T === S)
|
|
1439
|
-
return T = T.replace(/^\s\s*/,
|
|
1439
|
+
return T = T.replace(/^\s\s*/, g), typeof O === p ? T : T.substring(0, D);
|
|
1440
1440
|
}, le = function(T, O) {
|
|
1441
|
-
for (var A = 0, C, V,
|
|
1442
|
-
var
|
|
1443
|
-
for (C = V = 0; C <
|
|
1444
|
-
if (y =
|
|
1445
|
-
for (
|
|
1446
|
-
|
|
1441
|
+
for (var A = 0, C, V, G, I, y, B; A < O.length && !y; ) {
|
|
1442
|
+
var ye = O[A], st = O[A + 1];
|
|
1443
|
+
for (C = V = 0; C < ye.length && !y && ye[C]; )
|
|
1444
|
+
if (y = ye[C++].exec(T), y)
|
|
1445
|
+
for (G = 0; G < st.length; G++)
|
|
1446
|
+
B = y[++V], I = st[G], typeof I === R && I.length > 0 ? I.length === 2 ? typeof I[1] == _ ? this[I[0]] = I[1].call(this, B) : this[I[0]] = I[1] : I.length === 3 ? typeof I[1] === _ && !(I[1].exec && I[1].test) ? this[I[0]] = B ? I[1].call(this, B, I[2]) : r : this[I[0]] = B ? B.replace(I[1], I[2]) : r : I.length === 4 && (this[I[0]] = B ? I[3].call(this, B.replace(I[1], I[2])) : r) : this[I] = B || r;
|
|
1447
1447
|
A += 2;
|
|
1448
1448
|
}
|
|
1449
|
-
},
|
|
1449
|
+
}, Pe = function(T, O) {
|
|
1450
1450
|
for (var A in O)
|
|
1451
1451
|
if (typeof O[A] === R && O[A].length > 0) {
|
|
1452
1452
|
for (var C = 0; C < O[A].length; C++)
|
|
1453
|
-
if (
|
|
1453
|
+
if (nt(O[A][C], T))
|
|
1454
1454
|
return A === c ? r : A;
|
|
1455
|
-
} else if (
|
|
1455
|
+
} else if (nt(O[A], T))
|
|
1456
1456
|
return A === c ? r : A;
|
|
1457
1457
|
return T;
|
|
1458
|
-
}, Wt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, nt = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, it = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [E, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [E, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, E], [/opios[\/ ]+([\w\.]+)/i], [E, [b, ee + " Mini"]], [/\bopr\/([\w\.]+)/i], [E, [b, ee]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, E], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [E, [b, "UC" + F]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [E, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [E, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [E, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [E, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [E, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + F], E], [/\bfocus\/([\w\.]+)/i], [E, [b, z + " Focus"]], [/\bopt\/([\w\.]+)/i], [E, [b, ee + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [E, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [E, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [E, [b, ee + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [E, [b, "MIUI " + F]], [/fxios\/([-\w\.]+)/i], [E, [b, z]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + F]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + F], E], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], E], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, E], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, pe], E], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, E], [/\bgsa\/([\w\.]+) .*safari\//i], [E, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [E, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [E, [b, W + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, W + " WebView"], E], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [E, [b, "Android " + F]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, E], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [E, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [E, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [E, Re, Wt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, E], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], E], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [E, [b, z + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, E], [/(cobalt)\/([\w\.]+)/i], [b, [E, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[s, "amd64"]], [/(ia32(?=;))/i], [[s, ce]], [/((?:i[346]|x)86)[;\)]/i], [[s, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[s, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[s, "armhf"]], [/windows (ce|mobile); ppc;/i], [[s, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[s, /ower/, _, ce]], [/(sun4\w)[;\)]/i], [[s, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[s, ce]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [m, ae], [h, w]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [m, ae], [h, p]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [m, j], [h, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [m, j], [h, w]], [/(macintosh);/i], [l, [m, j]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [m, fe], [h, p]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [m, de], [h, w]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [m, de], [h, p]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [h, p]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [h, w]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [m, "OPPO"], [h, p]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [m, "Vivo"], [h, p]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [l, [m, "Realme"], [h, p]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [m, he], [h, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [m, he], [h, w]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [m, oe], [h, w]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [m, oe], [h, p]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [m, "Lenovo"], [h, w]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [m, "Nokia"], [h, p]], [/(pixel c)\b/i], [l, [m, Z], [h, w]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [m, Z], [h, p]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [m, te], [h, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [m, te], [h, w]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [m, "OnePlus"], [h, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [m, H], [h, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [m, H], [h, p]], [/(playbook);[-\w\),; ]+(rim)/i], [l, m, [h, w]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [m, Q], [h, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [m, J], [h, w]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [m, J], [h, p]], [/(nexus 9)/i], [l, [m, "HTC"], [h, w]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [l, /_/g, " "], [h, p]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [m, "Acer"], [h, w]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [m, "Meizu"], [h, p]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [m, l, [h, p]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, l, [h, w]], [/(surface duo)/i], [l, [m, se], [h, w]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [m, "Fairphone"], [h, p]], [/(u304aa)/i], [l, [m, "AT&T"], [h, p]], [/\bsie-(\w*)/i], [l, [m, "Siemens"], [h, p]], [/\b(rct\w+) b/i], [l, [m, "RCA"], [h, w]], [/\b(venue[\d ]{2,7}) b/i], [l, [m, "Dell"], [h, w]], [/\b(q(?:mv|ta)\w+) b/i], [l, [m, "Verizon"], [h, w]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [m, "Barnes & Noble"], [h, w]], [/\b(tm\d{3}\w+) b/i], [l, [m, "NuVision"], [h, w]], [/\b(k88) b/i], [l, [m, "ZTE"], [h, w]], [/\b(nx\d{3}j) b/i], [l, [m, "ZTE"], [h, p]], [/\b(gen\d{3}) b.+49h/i], [l, [m, "Swiss"], [h, p]], [/\b(zur\d{3}) b/i], [l, [m, "Swiss"], [h, w]], [/\b((zeki)?tb.*\b) b/i], [l, [m, "Zeki"], [h, w]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], l, [h, w]], [/\b(ns-?\w{0,9}) b/i], [l, [m, "Insignia"], [h, w]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [m, "NextBook"], [h, w]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], l, [h, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], l, [h, p]], [/\b(ph-1) /i], [l, [m, "Essential"], [h, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [m, "Envizen"], [h, w]], [/\b(trio[-\w\. ]+) b/i], [l, [m, "MachSpeed"], [h, w]], [/\btu_(1491) b/i], [l, [m, "Rotor"], [h, w]], [/(shield[\w ]+) b/i], [l, [m, "Nvidia"], [h, w]], [/(sprint) (\w+)/i], [m, l, [h, p]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [m, se], [h, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [m, L], [h, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [m, L], [h, p]], [/smart-tv.+(samsung)/i], [m, [h, P]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [m, ae], [h, P]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, oe], [h, P]], [/(apple) ?tv/i], [m, [l, j + " TV"], [h, P]], [/crkey/i], [[l, W + "cast"], [m, Z], [h, P]], [/droid.+aft(\w)( bui|\))/i], [l, [m, H], [h, P]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [m, fe], [h, P]], [/(bravia[\w ]+)( bui|\))/i], [l, [m, te], [h, P]], [/(mitv-\w{5}) bui/i], [l, [m, ue], [h, P]], [/Hbbtv.*(technisat) (.*);/i], [m, l, [h, P]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, ve], [l, ve], [h, P]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, P]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, l, [h, v]], [/droid.+; (shield) bui/i], [l, [m, "Nvidia"], [h, v]], [/(playstation [345portablevi]+)/i], [l, [m, te], [h, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [m, se], [h, v]], [/((pebble))app/i], [m, l, [h, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [m, j], [h, N]], [/droid.+; (glass) \d/i], [l, [m, Z], [h, N]], [/droid.+; (wt63?0{2,3})\)/i], [l, [m, L], [h, N]], [/(quest( 2| pro)?)/i], [l, [m, pe], [h, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [h, M]], [/(aeobc)\b/i], [l, [m, H], [h, M]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [l, [h, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [h, w]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, w]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, p]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [E, [b, ie + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [E, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, E], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [E, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, E], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [E, Re, nt]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [E, Re, nt]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[E, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, _e], [E, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [E, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, E], [/\(bb(10);/i], [E, [b, Q]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [E, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [E, [b, z + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [E, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [E, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [E, [b, W + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, me], E], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, E], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], E], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, E]] }, q = function(T, O) {
|
|
1458
|
+
}, Vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, it = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, ot = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [E, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [E, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, E], [/opios[\/ ]+([\w\.]+)/i], [E, [b, ee + " Mini"]], [/\bopr\/([\w\.]+)/i], [E, [b, ee]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, E], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [E, [b, "UC" + F]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [E, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [E, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [E, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [E, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [E, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + F], E], [/\bfocus\/([\w\.]+)/i], [E, [b, z + " Focus"]], [/\bopt\/([\w\.]+)/i], [E, [b, ee + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [E, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [E, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [E, [b, ee + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [E, [b, "MIUI " + F]], [/fxios\/([-\w\.]+)/i], [E, [b, z]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + F]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + F], E], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], E], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, E], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, pe], E], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, E], [/\bgsa\/([\w\.]+) .*safari\//i], [E, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [E, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [E, [b, W + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, W + " WebView"], E], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [E, [b, "Android " + F]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, E], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [E, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [E, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [E, Pe, Vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, E], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], E], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [E, [b, z + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, E], [/(cobalt)\/([\w\.]+)/i], [b, [E, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[s, "amd64"]], [/(ia32(?=;))/i], [[s, ce]], [/((?:i[346]|x)86)[;\)]/i], [[s, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[s, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[s, "armhf"]], [/windows (ce|mobile); ppc;/i], [[s, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[s, /ower/, g, ce]], [/(sun4\w)[;\)]/i], [[s, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[s, ce]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [m, ae], [h, w]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [m, ae], [h, f]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [m, j], [h, f]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [m, j], [h, w]], [/(macintosh);/i], [l, [m, j]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [m, fe], [h, f]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [m, de], [h, w]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [m, de], [h, f]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [h, f]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [h, w]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [m, "OPPO"], [h, f]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [m, "Vivo"], [h, f]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [l, [m, "Realme"], [h, f]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [m, he], [h, f]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [m, he], [h, w]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [m, oe], [h, w]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [m, oe], [h, f]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [m, "Lenovo"], [h, w]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [m, "Nokia"], [h, f]], [/(pixel c)\b/i], [l, [m, Z], [h, w]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [m, Z], [h, f]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [m, te], [h, f]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [m, te], [h, w]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [m, "OnePlus"], [h, f]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [m, H], [h, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [m, H], [h, f]], [/(playbook);[-\w\),; ]+(rim)/i], [l, m, [h, w]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [m, Q], [h, f]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [m, J], [h, w]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [m, J], [h, f]], [/(nexus 9)/i], [l, [m, "HTC"], [h, w]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [l, /_/g, " "], [h, f]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [m, "Acer"], [h, w]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [m, "Meizu"], [h, f]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [m, l, [h, f]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, l, [h, w]], [/(surface duo)/i], [l, [m, se], [h, w]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [m, "Fairphone"], [h, f]], [/(u304aa)/i], [l, [m, "AT&T"], [h, f]], [/\bsie-(\w*)/i], [l, [m, "Siemens"], [h, f]], [/\b(rct\w+) b/i], [l, [m, "RCA"], [h, w]], [/\b(venue[\d ]{2,7}) b/i], [l, [m, "Dell"], [h, w]], [/\b(q(?:mv|ta)\w+) b/i], [l, [m, "Verizon"], [h, w]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [m, "Barnes & Noble"], [h, w]], [/\b(tm\d{3}\w+) b/i], [l, [m, "NuVision"], [h, w]], [/\b(k88) b/i], [l, [m, "ZTE"], [h, w]], [/\b(nx\d{3}j) b/i], [l, [m, "ZTE"], [h, f]], [/\b(gen\d{3}) b.+49h/i], [l, [m, "Swiss"], [h, f]], [/\b(zur\d{3}) b/i], [l, [m, "Swiss"], [h, w]], [/\b((zeki)?tb.*\b) b/i], [l, [m, "Zeki"], [h, w]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], l, [h, w]], [/\b(ns-?\w{0,9}) b/i], [l, [m, "Insignia"], [h, w]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [m, "NextBook"], [h, w]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], l, [h, f]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], l, [h, f]], [/\b(ph-1) /i], [l, [m, "Essential"], [h, f]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [m, "Envizen"], [h, w]], [/\b(trio[-\w\. ]+) b/i], [l, [m, "MachSpeed"], [h, w]], [/\btu_(1491) b/i], [l, [m, "Rotor"], [h, w]], [/(shield[\w ]+) b/i], [l, [m, "Nvidia"], [h, w]], [/(sprint) (\w+)/i], [m, l, [h, f]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [m, se], [h, f]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [m, L], [h, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [m, L], [h, f]], [/smart-tv.+(samsung)/i], [m, [h, P]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [m, ae], [h, P]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, oe], [h, P]], [/(apple) ?tv/i], [m, [l, j + " TV"], [h, P]], [/crkey/i], [[l, W + "cast"], [m, Z], [h, P]], [/droid.+aft(\w)( bui|\))/i], [l, [m, H], [h, P]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [m, fe], [h, P]], [/(bravia[\w ]+)( bui|\))/i], [l, [m, te], [h, P]], [/(mitv-\w{5}) bui/i], [l, [m, ue], [h, P]], [/Hbbtv.*(technisat) (.*);/i], [m, l, [h, P]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, Re], [l, Re], [h, P]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, P]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, l, [h, v]], [/droid.+; (shield) bui/i], [l, [m, "Nvidia"], [h, v]], [/(playstation [345portablevi]+)/i], [l, [m, te], [h, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [m, se], [h, v]], [/((pebble))app/i], [m, l, [h, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [m, j], [h, N]], [/droid.+; (glass) \d/i], [l, [m, Z], [h, N]], [/droid.+; (wt63?0{2,3})\)/i], [l, [m, L], [h, N]], [/(quest( 2| pro)?)/i], [l, [m, pe], [h, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [h, M]], [/(aeobc)\b/i], [l, [m, H], [h, M]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [l, [h, f]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [h, w]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, w]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, f]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [E, [b, ie + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [E, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, E], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [E, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, E], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [E, Pe, it]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [E, Pe, it]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[E, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, _e], [E, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [E, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, E], [/\(bb(10);/i], [E, [b, Q]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [E, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [E, [b, z + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [E, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [E, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [E, [b, W + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, me], E], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, E], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], E], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, E]] }, q = function(T, O) {
|
|
1459
1459
|
if (typeof T === R && (O = T, T = r), !(this instanceof q))
|
|
1460
1460
|
return new q(T, O).getResult();
|
|
1461
|
-
var A = typeof u !==
|
|
1461
|
+
var A = typeof u !== p && u.navigator ? u.navigator : r, C = T || (A && A.userAgent ? A.userAgent : g), V = A && A.userAgentData ? A.userAgentData : r, G = O ? ge(ot, O) : ot, I = A && A.userAgent == C;
|
|
1462
1462
|
return this.getBrowser = function() {
|
|
1463
1463
|
var y = {};
|
|
1464
|
-
return y[b] = r, y[E] = r, le.call(y, C,
|
|
1464
|
+
return y[b] = r, y[E] = r, le.call(y, C, G.browser), y[x] = zt(y[E]), I && A && A.brave && typeof A.brave.isBrave == _ && (y[b] = "Brave"), y;
|
|
1465
1465
|
}, this.getCPU = function() {
|
|
1466
1466
|
var y = {};
|
|
1467
|
-
return y[s] = r, le.call(y, C,
|
|
1467
|
+
return y[s] = r, le.call(y, C, G.cpu), y;
|
|
1468
1468
|
}, this.getDevice = function() {
|
|
1469
1469
|
var y = {};
|
|
1470
|
-
return y[m] = r, y[l] = r, y[h] = r, le.call(y, C,
|
|
1470
|
+
return y[m] = r, y[l] = r, y[h] = r, le.call(y, C, G.device), I && !y[h] && V && V.mobile && (y[h] = f), I && y[l] == "Macintosh" && A && typeof A.standalone !== p && A.maxTouchPoints && A.maxTouchPoints > 2 && (y[l] = "iPad", y[h] = w), y;
|
|
1471
1471
|
}, this.getEngine = function() {
|
|
1472
1472
|
var y = {};
|
|
1473
|
-
return y[b] = r, y[E] = r, le.call(y, C,
|
|
1473
|
+
return y[b] = r, y[E] = r, le.call(y, C, G.engine), y;
|
|
1474
1474
|
}, this.getOS = function() {
|
|
1475
1475
|
var y = {};
|
|
1476
|
-
return y[b] = r, y[E] = r, le.call(y, C,
|
|
1476
|
+
return y[b] = r, y[E] = r, le.call(y, C, G.os), I && !y[b] && V && V.platform != "Unknown" && (y[b] = V.platform.replace(/chrome os/i, me).replace(/macos/i, _e)), y;
|
|
1477
1477
|
}, this.getResult = function() {
|
|
1478
1478
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1479
1479
|
}, this.getUA = function() {
|
|
1480
1480
|
return C;
|
|
1481
1481
|
}, this.setUA = function(y) {
|
|
1482
|
-
return C = typeof y === S && y.length > D ?
|
|
1482
|
+
return C = typeof y === S && y.length > D ? Re(y, D) : y, this;
|
|
1483
1483
|
}, this.setUA(C), this;
|
|
1484
1484
|
};
|
|
1485
|
-
q.VERSION = d, q.BROWSER = $([b, E, x]), q.CPU = $([s]), q.DEVICE = $([l, m, h, v,
|
|
1486
|
-
var re = typeof u !==
|
|
1485
|
+
q.VERSION = d, q.BROWSER = $([b, E, x]), q.CPU = $([s]), q.DEVICE = $([l, m, h, v, f, P, w, N, M]), q.ENGINE = q.OS = $([b, E]), typeof a !== p ? (n.exports && (a = n.exports = q), a.UAParser = q) : typeof u !== p && (u.UAParser = q);
|
|
1486
|
+
var re = typeof u !== p && (u.jQuery || u.Zepto);
|
|
1487
1487
|
if (re && !re.ua) {
|
|
1488
1488
|
var be = new q();
|
|
1489
1489
|
re.ua = be.getResult(), re.ua.get = function() {
|
|
@@ -1511,19 +1511,19 @@ function hr() {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
typeof t < "u" && (t.ab = __dirname + "/");
|
|
1513
1513
|
var o = t(226);
|
|
1514
|
-
|
|
1515
|
-
})()),
|
|
1514
|
+
Ke.exports = o;
|
|
1515
|
+
})()), Ke.exports;
|
|
1516
1516
|
}
|
|
1517
|
-
var
|
|
1518
|
-
function
|
|
1519
|
-
return
|
|
1517
|
+
var Ct;
|
|
1518
|
+
function Lt() {
|
|
1519
|
+
return Ct || (Ct = 1, (function(i) {
|
|
1520
1520
|
Object.defineProperty(i, "__esModule", {
|
|
1521
1521
|
value: !0
|
|
1522
1522
|
});
|
|
1523
1523
|
function e(r, d) {
|
|
1524
|
-
for (var
|
|
1524
|
+
for (var g in d) Object.defineProperty(r, g, {
|
|
1525
1525
|
enumerable: !0,
|
|
1526
|
-
get: d[
|
|
1526
|
+
get: d[g]
|
|
1527
1527
|
});
|
|
1528
1528
|
}
|
|
1529
1529
|
e(i, {
|
|
@@ -1537,7 +1537,7 @@ function Ct() {
|
|
|
1537
1537
|
return a;
|
|
1538
1538
|
}
|
|
1539
1539
|
});
|
|
1540
|
-
const t = /* @__PURE__ */ o(
|
|
1540
|
+
const t = /* @__PURE__ */ o(pr());
|
|
1541
1541
|
function o(r) {
|
|
1542
1542
|
return r && r.__esModule ? r : {
|
|
1543
1543
|
default: r
|
|
@@ -1555,11 +1555,11 @@ function Ct() {
|
|
|
1555
1555
|
function u({ headers: r }) {
|
|
1556
1556
|
return a(r.get("user-agent") || void 0);
|
|
1557
1557
|
}
|
|
1558
|
-
})(
|
|
1558
|
+
})(Ve)), Ve;
|
|
1559
1559
|
}
|
|
1560
|
-
var
|
|
1561
|
-
function
|
|
1562
|
-
return
|
|
1560
|
+
var Ye = {}, kt;
|
|
1561
|
+
function mr() {
|
|
1562
|
+
return kt || (kt = 1, (function(i) {
|
|
1563
1563
|
Object.defineProperty(i, "__esModule", {
|
|
1564
1564
|
value: !0
|
|
1565
1565
|
}), Object.defineProperty(i, "URLPattern", {
|
|
@@ -1572,24 +1572,24 @@ function fr() {
|
|
|
1572
1572
|
// @ts-expect-error: URLPattern is not available in Node.js
|
|
1573
1573
|
typeof URLPattern > "u" ? void 0 : URLPattern
|
|
1574
1574
|
);
|
|
1575
|
-
})(
|
|
1575
|
+
})(Ye)), Ye;
|
|
1576
1576
|
}
|
|
1577
|
-
var
|
|
1578
|
-
function
|
|
1579
|
-
return
|
|
1577
|
+
var Ut;
|
|
1578
|
+
function _r() {
|
|
1579
|
+
return Ut || (Ut = 1, (function(i, e) {
|
|
1580
1580
|
const t = {
|
|
1581
|
-
NextRequest:
|
|
1582
|
-
NextResponse:
|
|
1583
|
-
ImageResponse:
|
|
1584
|
-
userAgentFromString:
|
|
1585
|
-
userAgent:
|
|
1586
|
-
URLPattern:
|
|
1581
|
+
NextRequest: lr().NextRequest,
|
|
1582
|
+
NextResponse: hr().NextResponse,
|
|
1583
|
+
ImageResponse: fr().ImageResponse,
|
|
1584
|
+
userAgentFromString: Lt().userAgentFromString,
|
|
1585
|
+
userAgent: Lt().userAgent,
|
|
1586
|
+
URLPattern: mr().URLPattern
|
|
1587
1587
|
};
|
|
1588
1588
|
i.exports = t, e.NextRequest = t.NextRequest, e.NextResponse = t.NextResponse, e.ImageResponse = t.ImageResponse, e.userAgentFromString = t.userAgentFromString, e.userAgent = t.userAgent, e.URLPattern = t.URLPattern;
|
|
1589
1589
|
})(Ee, Ee.exports)), Ee.exports;
|
|
1590
1590
|
}
|
|
1591
|
-
var
|
|
1592
|
-
class
|
|
1591
|
+
var gr = _r();
|
|
1592
|
+
class kr {
|
|
1593
1593
|
async parseRequest(e) {
|
|
1594
1594
|
const t = new URL(e.url);
|
|
1595
1595
|
let o, n;
|
|
@@ -1605,7 +1605,7 @@ class Cr {
|
|
|
1605
1605
|
n = await e.formData();
|
|
1606
1606
|
else if (r.includes(X.applicationXwwwFormUrlencoded)) {
|
|
1607
1607
|
const d = await e.text();
|
|
1608
|
-
o =
|
|
1608
|
+
o = et(d);
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
1611
1611
|
const a = e.headers, u = {};
|
|
@@ -1624,20 +1624,31 @@ class Cr {
|
|
|
1624
1624
|
};
|
|
1625
1625
|
}
|
|
1626
1626
|
createResponse(e) {
|
|
1627
|
-
const t =
|
|
1627
|
+
const t = gr.NextResponse.json(e.body, {
|
|
1628
1628
|
status: e.status,
|
|
1629
1629
|
headers: e.headers
|
|
1630
1630
|
});
|
|
1631
|
-
|
|
1631
|
+
if (Object.entries(e.cookies).forEach(([o, n]) => {
|
|
1632
1632
|
typeof n == "object" && n.value ? t.cookies.set(o, n.value, n.options) : typeof n == "string" && t.cookies.set(o, n);
|
|
1633
|
-
}),
|
|
1633
|
+
}), e.cleanCookies) {
|
|
1634
|
+
const o = {
|
|
1635
|
+
set(n, a, u) {
|
|
1636
|
+
t.cookies.set(n, a, u);
|
|
1637
|
+
},
|
|
1638
|
+
delete(n, a) {
|
|
1639
|
+
t.cookies.delete({ ...a, name: n });
|
|
1640
|
+
}
|
|
1641
|
+
};
|
|
1642
|
+
e.cleanCookies(o);
|
|
1643
|
+
}
|
|
1644
|
+
return t;
|
|
1634
1645
|
}
|
|
1635
1646
|
setCookie(e, t, o, n) {
|
|
1636
1647
|
e.cookies[t] = { value: o, options: n };
|
|
1637
1648
|
}
|
|
1638
1649
|
}
|
|
1639
|
-
var
|
|
1640
|
-
const
|
|
1650
|
+
var Qe = /* @__PURE__ */ ((i) => (i[i.login = 0] = "login", i[i.logout = 1] = "logout", i))(Qe || {});
|
|
1651
|
+
const $e = {
|
|
1641
1652
|
login: "login",
|
|
1642
1653
|
logout: "logout",
|
|
1643
1654
|
unknown: ""
|
|
@@ -1646,15 +1657,20 @@ const Ye = {
|
|
|
1646
1657
|
multipartFormData: "multipart/form-data",
|
|
1647
1658
|
applicationXwwwFormUrlencoded: "application/x-www-form-urlencoded"
|
|
1648
1659
|
};
|
|
1649
|
-
class
|
|
1660
|
+
class Ur {
|
|
1650
1661
|
config;
|
|
1651
1662
|
http;
|
|
1652
1663
|
cookies;
|
|
1653
1664
|
adapter;
|
|
1654
|
-
constructor(
|
|
1665
|
+
constructor({
|
|
1666
|
+
config: e,
|
|
1667
|
+
adapter: t,
|
|
1668
|
+
storage: o,
|
|
1669
|
+
cookies: n
|
|
1670
|
+
}) {
|
|
1655
1671
|
this.config = e;
|
|
1656
|
-
const a =
|
|
1657
|
-
this.http = new
|
|
1672
|
+
const a = vr(o);
|
|
1673
|
+
this.http = new Sr({ ...a, userType: jt.TYPE_C }), this.cookies = n, this.adapter = t;
|
|
1658
1674
|
}
|
|
1659
1675
|
async handleRequest(e) {
|
|
1660
1676
|
try {
|
|
@@ -1678,74 +1694,74 @@ class Lr {
|
|
|
1678
1694
|
}
|
|
1679
1695
|
}
|
|
1680
1696
|
async processRequest(e) {
|
|
1681
|
-
const t = e.url.searchParams, o = t.get("m") ?? "unknown", a = {
|
|
1697
|
+
const t = e.url.searchParams, o = t.get("m") ?? "unknown", a = { ...$e, ...this.config.APIMAP }[o];
|
|
1682
1698
|
if (!a || a.length === 0)
|
|
1683
1699
|
return this.createErrorResponse(404, "API not found");
|
|
1684
1700
|
let u;
|
|
1685
|
-
if ((a.startsWith("admin/") || a.startsWith("api/")) && (u =
|
|
1701
|
+
if ((a.startsWith("admin/") || a.startsWith("api/")) && (u = Rr(this.cookies), !u || u.username.length === 0 || u.token.length === 0))
|
|
1686
1702
|
return this.createErrorResponse(409, "Authentication required");
|
|
1687
1703
|
let r;
|
|
1688
|
-
const d = e.method,
|
|
1704
|
+
const d = e.clone(), g = d.method, c = e.headers.get(K) || "";
|
|
1689
1705
|
try {
|
|
1690
|
-
if (
|
|
1691
|
-
const
|
|
1706
|
+
if (g === "GET") {
|
|
1707
|
+
const p = et(t.toString(), ["m"]);
|
|
1692
1708
|
r = await this.http.get({
|
|
1693
1709
|
url: a,
|
|
1694
|
-
data:
|
|
1710
|
+
data: p,
|
|
1695
1711
|
token: u
|
|
1696
1712
|
});
|
|
1697
|
-
} else if (
|
|
1698
|
-
let
|
|
1699
|
-
if (
|
|
1700
|
-
|
|
1701
|
-
else if (
|
|
1702
|
-
const
|
|
1703
|
-
if (!
|
|
1713
|
+
} else if (g === "POST") {
|
|
1714
|
+
let p;
|
|
1715
|
+
if (c.includes(X.applicationJson) || c.includes(X.applicationXwwwFormUrlencoded))
|
|
1716
|
+
p = e.body;
|
|
1717
|
+
else if (c.includes(X.multipartFormData)) {
|
|
1718
|
+
const R = c.match(/boundary=([^\s;]+)/);
|
|
1719
|
+
if (!R)
|
|
1704
1720
|
return this.createErrorResponse(411, "Missing boundary in form data");
|
|
1705
|
-
const S = await
|
|
1706
|
-
|
|
1707
|
-
boundary:
|
|
1721
|
+
const S = await d.arrayBuffer();
|
|
1722
|
+
p = {
|
|
1723
|
+
boundary: R[1],
|
|
1708
1724
|
buffer: Buffer.from(S)
|
|
1709
1725
|
};
|
|
1710
1726
|
const l = e.formData;
|
|
1711
1727
|
if (l)
|
|
1712
1728
|
for (const [b, h] of Object.entries(l))
|
|
1713
|
-
b !== "file" && (
|
|
1729
|
+
b !== "file" && (p[b] = h);
|
|
1714
1730
|
} else
|
|
1715
1731
|
return this.createErrorResponse(410, "Unsupported content type");
|
|
1716
1732
|
r = await this.http.post({
|
|
1717
1733
|
url: a,
|
|
1718
|
-
data:
|
|
1734
|
+
data: p,
|
|
1719
1735
|
token: u
|
|
1720
1736
|
});
|
|
1721
1737
|
} else
|
|
1722
|
-
return this.createErrorResponse(405, "Method not allowed");
|
|
1723
|
-
} catch (
|
|
1724
|
-
return k.error({ "error:":
|
|
1738
|
+
return this.createErrorResponse(405, "Method not allowed, only supported GET or POST");
|
|
1739
|
+
} catch (p) {
|
|
1740
|
+
return k.error({ "error:": p }, "API request error"), this.createErrorResponse(500, "API request failed");
|
|
1725
1741
|
}
|
|
1726
|
-
const
|
|
1742
|
+
const _ = {
|
|
1727
1743
|
status: r.success ? 200 : r.code,
|
|
1728
|
-
headers: { CONTENT_TYPE_KEY:
|
|
1744
|
+
headers: { CONTENT_TYPE_KEY: c },
|
|
1729
1745
|
cookies: {},
|
|
1730
1746
|
body: r
|
|
1731
1747
|
};
|
|
1732
1748
|
if (r.success)
|
|
1733
1749
|
switch (a) {
|
|
1734
|
-
case
|
|
1750
|
+
case $e[Qe[
|
|
1735
1751
|
0
|
|
1736
1752
|
/* login */
|
|
1737
1753
|
]]:
|
|
1738
|
-
const
|
|
1739
|
-
|
|
1754
|
+
const p = r.data;
|
|
1755
|
+
Pr(p, _);
|
|
1740
1756
|
break;
|
|
1741
|
-
case
|
|
1757
|
+
case $e[Qe[
|
|
1742
1758
|
1
|
|
1743
1759
|
/* logout */
|
|
1744
1760
|
]]:
|
|
1745
|
-
|
|
1761
|
+
_.cleanCookies = (R) => yr(R);
|
|
1746
1762
|
break;
|
|
1747
1763
|
}
|
|
1748
|
-
return
|
|
1764
|
+
return _;
|
|
1749
1765
|
}
|
|
1750
1766
|
createErrorResponse(e, t) {
|
|
1751
1767
|
return {
|
|
@@ -1760,7 +1776,7 @@ class Lr {
|
|
|
1760
1776
|
};
|
|
1761
1777
|
}
|
|
1762
1778
|
}
|
|
1763
|
-
const
|
|
1779
|
+
const br = "zh-CN", Gt = "_device_id_key", Bt = "_current_website_key", Dt = "Get request error!", Ze = "Post request error!", U = {
|
|
1764
1780
|
IBOOT_DEVICE_ID: "dvid",
|
|
1765
1781
|
IBOOT_LANG: "lang",
|
|
1766
1782
|
IBOOT_WEBSITE_ID: "wid",
|
|
@@ -1772,22 +1788,22 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
|
|
|
1772
1788
|
LANG: "Lang",
|
|
1773
1789
|
WEBSITE_ID: "Website-Id",
|
|
1774
1790
|
WEBSITE_NO: "Website-No"
|
|
1775
|
-
},
|
|
1791
|
+
}, Xt = (i) => {
|
|
1776
1792
|
if (!i.get)
|
|
1777
1793
|
throw new Error("The get method of IStorage has not been implemented.");
|
|
1778
|
-
const e = i.get(
|
|
1794
|
+
const e = i.get(Gt) ?? "", t = i.get(Bt), o = t != null ? JSON.parse(t) : null, n = {};
|
|
1779
1795
|
return e.length > 0 && (n["Device-Id"] = e), o && (n.Lang = o.language, o.websiteId && (n["Website-Id"] = o.websiteId), o.websiteNo && (n["Website-No"] = o.websiteNo)), n;
|
|
1780
|
-
},
|
|
1796
|
+
}, Dr = ({ deviceId: i, website: e }, t) => {
|
|
1781
1797
|
if (!t.set)
|
|
1782
1798
|
throw new Error("The set method of IStorage has not been implemented.");
|
|
1783
|
-
t.set(
|
|
1784
|
-
},
|
|
1785
|
-
let t =
|
|
1799
|
+
t.set(Gt, i), e && t.set(Bt, JSON.stringify(e));
|
|
1800
|
+
}, wr = (i) => `${process.env.BASE_URL || "/api/services"}?m=${i}`, Er = async (i, e) => {
|
|
1801
|
+
let t = wr(i);
|
|
1786
1802
|
if (e?.data) {
|
|
1787
1803
|
const r = new URLSearchParams(e.data);
|
|
1788
1804
|
t += `&${r}`;
|
|
1789
1805
|
}
|
|
1790
|
-
const o = e && e.storage && e.storage.get ?
|
|
1806
|
+
const o = e && e.storage && e.storage.get ? Xt(e.storage) : {}, n = e?.headers;
|
|
1791
1807
|
if (n)
|
|
1792
1808
|
for (const r in n) {
|
|
1793
1809
|
const d = n[r];
|
|
@@ -1812,14 +1828,14 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
|
|
|
1812
1828
|
msg: a.statusText
|
|
1813
1829
|
};
|
|
1814
1830
|
return k.error(u), u;
|
|
1815
|
-
},
|
|
1831
|
+
}, Wt = async (i, e) => {
|
|
1816
1832
|
const t = e?.data ?? {}, o = e?.headers;
|
|
1817
1833
|
let n;
|
|
1818
|
-
const a = e && e.storage && e.storage.get ?
|
|
1834
|
+
const a = e && e.storage && e.storage.get ? Xt(e.storage) : {}, u = new Headers(a);
|
|
1819
1835
|
if (t instanceof FormData ? n = t : (n = JSON.stringify(t), u.set(K, X.applicationJson)), o)
|
|
1820
|
-
for (let
|
|
1821
|
-
const c = o[
|
|
1822
|
-
c && u.set(
|
|
1836
|
+
for (let g in o) {
|
|
1837
|
+
const c = o[g];
|
|
1838
|
+
c && u.set(g, c);
|
|
1823
1839
|
}
|
|
1824
1840
|
k.info({
|
|
1825
1841
|
url: i,
|
|
@@ -1831,7 +1847,7 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
|
|
|
1831
1847
|
body: n
|
|
1832
1848
|
});
|
|
1833
1849
|
if (r.ok) {
|
|
1834
|
-
const
|
|
1850
|
+
const g = Object.fromEntries(r.headers.entries()), c = { ...await r.json(), headers: g };
|
|
1835
1851
|
return k.debug(c, "POST_RESULT"), c;
|
|
1836
1852
|
}
|
|
1837
1853
|
const d = {
|
|
@@ -1840,56 +1856,56 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
|
|
|
1840
1856
|
msg: r.statusText
|
|
1841
1857
|
};
|
|
1842
1858
|
return k.error(d), d;
|
|
1843
|
-
},
|
|
1844
|
-
const t = await
|
|
1859
|
+
}, Mr = async (i, e) => {
|
|
1860
|
+
const t = await Er(i, e);
|
|
1845
1861
|
if (t.success)
|
|
1846
1862
|
return t.data;
|
|
1847
1863
|
if (e?.showError) {
|
|
1848
|
-
e.showError(t.msg ??
|
|
1864
|
+
e.showError(t.msg ?? Dt);
|
|
1849
1865
|
return;
|
|
1850
1866
|
}
|
|
1851
|
-
throw Error(t.msg ??
|
|
1852
|
-
},
|
|
1853
|
-
const t = await
|
|
1867
|
+
throw Error(t.msg ?? Dt);
|
|
1868
|
+
}, jr = async (i, e) => {
|
|
1869
|
+
const t = await Wt(i, e);
|
|
1854
1870
|
if (t.success)
|
|
1855
1871
|
return t.data;
|
|
1856
1872
|
if (e?.showError) {
|
|
1857
|
-
e.showError(t.msg ??
|
|
1873
|
+
e.showError(t.msg ?? Ze);
|
|
1858
1874
|
return;
|
|
1859
1875
|
}
|
|
1860
|
-
throw Error(t.msg ??
|
|
1861
|
-
},
|
|
1862
|
-
const t = await
|
|
1863
|
-
return t.success ? (e?.showSuccess && e.showSuccess(t.msg ?? "SUCCESS"), !0) : (e?.showError && e.showError(t.msg ??
|
|
1864
|
-
},
|
|
1876
|
+
throw Error(t.msg ?? Ze);
|
|
1877
|
+
}, qr = async (i, e) => {
|
|
1878
|
+
const t = await Wt(i, e);
|
|
1879
|
+
return t.success ? (e?.showSuccess && e.showSuccess(t.msg ?? "SUCCESS"), !0) : (e?.showError && e.showError(t.msg ?? Ze), !1);
|
|
1880
|
+
}, vr = (i) => {
|
|
1865
1881
|
if (i.get) {
|
|
1866
1882
|
const e = i.get(Y.DEVICE_ID), t = i.get(Y.LANG), o = i.get(Y.WEBSITE_ID), n = i.get(Y.WEBSITE_NO), a = {};
|
|
1867
1883
|
return e && e.length > 0 && (a.deviceId = e), t && t.length > 0 && (a.lang = t), o && o.length > 0 && (a.websiteId = o), n && n.length > 0 && (a.websiteNo = n), a;
|
|
1868
1884
|
}
|
|
1869
1885
|
throw new Error("The get method of IStorage has not been implemented.");
|
|
1870
|
-
},
|
|
1886
|
+
}, Hr = (i, e) => {
|
|
1871
1887
|
if (i.set)
|
|
1872
1888
|
e.deviceId && i.set(Y.DEVICE_ID, e.deviceId), e.lang && i.set(Y.LANG, e.lang), e.websiteId && i.set(Y.WEBSITE_ID, e.websiteId), e.websiteNo && i.set(Y.WEBSITE_NO, e.websiteNo);
|
|
1873
1889
|
else
|
|
1874
1890
|
throw new Error("The set method of IStorage has not been implemented.");
|
|
1875
|
-
},
|
|
1891
|
+
}, Fr = (i) => {
|
|
1876
1892
|
if (i.get) {
|
|
1877
1893
|
const e = i.get(U.IBOOT_DEVICE_ID), t = i.get(U.IBOOT_LANG), o = i.get(U.IBOOT_WEBSITE_ID), n = i.get(U.IBOOT_WEBSITE_NO), a = {};
|
|
1878
1894
|
return e && e.length > 0 && (a.deviceId = e), t && t.length > 0 && (a.lang = t), o && o.length > 0 && (a.websiteId = o), n && n.length > 0 && (a.websiteNo = n), a;
|
|
1879
1895
|
}
|
|
1880
1896
|
throw new Error("The get method of ICookies has not been implemented.");
|
|
1881
|
-
},
|
|
1897
|
+
}, Gr = (i, e) => {
|
|
1882
1898
|
if (i.set)
|
|
1883
1899
|
e.deviceId && i.set(U.IBOOT_DEVICE_ID, e.deviceId), e.lang && i.set(U.IBOOT_LANG, e.lang), e.websiteId && i.set(U.IBOOT_WEBSITE_ID, e.websiteId), e.websiteNo && i.set(U.IBOOT_WEBSITE_NO, e.websiteNo);
|
|
1884
1900
|
else
|
|
1885
1901
|
throw new Error("The set method of ICookies has not been implemented.");
|
|
1886
|
-
},
|
|
1902
|
+
}, Br = (i) => {
|
|
1887
1903
|
if (i.get) {
|
|
1888
1904
|
const e = i.get(U.IBOOT_USER);
|
|
1889
1905
|
if (e && e.length > 0)
|
|
1890
1906
|
return JSON.parse(e);
|
|
1891
1907
|
}
|
|
1892
|
-
},
|
|
1908
|
+
}, Rr = (i) => {
|
|
1893
1909
|
if (i.get) {
|
|
1894
1910
|
const e = i.get(U.IBOOT_USER);
|
|
1895
1911
|
if (e && e.length > 0) {
|
|
@@ -1902,47 +1918,46 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
|
|
|
1902
1918
|
};
|
|
1903
1919
|
}
|
|
1904
1920
|
}
|
|
1905
|
-
},
|
|
1906
|
-
|
|
1921
|
+
}, Mt = () => ({
|
|
1922
|
+
path: "/",
|
|
1923
|
+
secure: process.env.APP_ENV === "production",
|
|
1924
|
+
httpOnly: !0,
|
|
1925
|
+
sameSite: "strict"
|
|
1926
|
+
}), ve = {
|
|
1927
|
+
maxAge: -1,
|
|
1928
|
+
//设置为 -1表示立即过期
|
|
1929
|
+
httpOnly: !0,
|
|
1930
|
+
path: "/"
|
|
1931
|
+
}, Pr = (i, e) => {
|
|
1932
|
+
const { id: t, name: o, username: n, nickname: a, headImg: u, token: r, lastLoginTime: d, deviceId: g, userType: c, mustChangePwd: _ } = i, p = {
|
|
1907
1933
|
id: t,
|
|
1908
1934
|
name: o,
|
|
1909
1935
|
username: n,
|
|
1910
1936
|
nickname: a || o,
|
|
1911
1937
|
headImg: u,
|
|
1912
1938
|
lastLoginTime: d,
|
|
1913
|
-
deviceId:
|
|
1939
|
+
deviceId: g,
|
|
1914
1940
|
userType: c,
|
|
1915
1941
|
accountType: 0,
|
|
1916
1942
|
needToReview: !1,
|
|
1917
1943
|
socketOnline: !1,
|
|
1918
|
-
mustChangePwd:
|
|
1944
|
+
mustChangePwd: _
|
|
1919
1945
|
};
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
}, Rr = (i) => {
|
|
1946
|
+
e.cookies[U.IBOOT_TOKEN] = {
|
|
1947
|
+
value: r,
|
|
1948
|
+
options: Mt()
|
|
1949
|
+
}, e.cookies[U.IBOOT_USER] = {
|
|
1950
|
+
value: JSON.stringify(p),
|
|
1951
|
+
options: Mt()
|
|
1952
|
+
};
|
|
1953
|
+
}, yr = (i) => {
|
|
1929
1954
|
if (!i.set)
|
|
1930
1955
|
throw new Error("cookies set function is undefined");
|
|
1931
|
-
if (i.set(U.IBOOT_TOKEN, "",
|
|
1932
|
-
maxAge: -1,
|
|
1933
|
-
//设置为 -1表示立即过期
|
|
1934
|
-
httpOnly: !0,
|
|
1935
|
-
path: "/"
|
|
1936
|
-
}), i.set(U.IBOOT_USER, "", {
|
|
1937
|
-
maxAge: -1,
|
|
1938
|
-
//设置为 -1表示立即过期
|
|
1939
|
-
httpOnly: !0,
|
|
1940
|
-
path: "/"
|
|
1941
|
-
}), !i.delete)
|
|
1956
|
+
if (i.set(U.IBOOT_TOKEN, "", ve), i.set(U.IBOOT_USER, "", ve), !i.delete)
|
|
1942
1957
|
throw new Error("cookies delete function is undefined");
|
|
1943
|
-
i.delete(U.IBOOT_TOKEN), i.delete(U.IBOOT_USER);
|
|
1958
|
+
i.delete(U.IBOOT_TOKEN, ve), i.delete(U.IBOOT_USER, ve);
|
|
1944
1959
|
};
|
|
1945
|
-
class
|
|
1960
|
+
class Sr {
|
|
1946
1961
|
baseUrl;
|
|
1947
1962
|
helloMethod;
|
|
1948
1963
|
apiKey;
|
|
@@ -1954,7 +1969,7 @@ class Pr {
|
|
|
1954
1969
|
websiteId;
|
|
1955
1970
|
websiteNo;
|
|
1956
1971
|
constructor(e) {
|
|
1957
|
-
process.env.APP_ENV === "production" || k.warn("This is currently a development environment!"), this.baseUrl = process.env.APP_BASEURL, this.apiKey = process.env.APP_APIKEY, this.userFrom = process.env.APP_USERFROM ?? "1", this.helloMethod = e.helloURL ?? "", this.userType = e.userType ??
|
|
1972
|
+
process.env.APP_ENV === "production" || k.warn("This is currently a development environment!"), this.baseUrl = process.env.APP_BASEURL, this.apiKey = process.env.APP_APIKEY, this.userFrom = process.env.APP_USERFROM ?? "1", this.helloMethod = e.helloURL ?? "", this.userType = e.userType ?? jt.TYPE_MGT, this.deviceId = e.deviceId ?? ut(10), this.lang = e.lang ?? br, this.websiteId = e.websiteId, this.websiteNo = e.websiteNo;
|
|
1958
1973
|
}
|
|
1959
1974
|
encrypt(e) {
|
|
1960
1975
|
const t = ne.enc.Utf8.parse(this.apiKey);
|
|
@@ -1974,7 +1989,7 @@ class Pr {
|
|
|
1974
1989
|
if (n && typeof n == "string")
|
|
1975
1990
|
n = n.trim();
|
|
1976
1991
|
else if (n && typeof n == "object") {
|
|
1977
|
-
if (
|
|
1992
|
+
if (at(n)) {
|
|
1978
1993
|
if (n.length === 0)
|
|
1979
1994
|
continue;
|
|
1980
1995
|
for (let a = 0; a < n.length; a++) {
|
|
@@ -1983,19 +1998,19 @@ class Pr {
|
|
|
1983
1998
|
const d = u[r] ?? void 0;
|
|
1984
1999
|
if (d) {
|
|
1985
2000
|
if (typeof d == "object")
|
|
1986
|
-
|
|
1987
|
-
if (
|
|
1988
|
-
for (const
|
|
1989
|
-
const
|
|
1990
|
-
if (
|
|
1991
|
-
const R = `[${a.toString()}].${r + `[${c.toString()}].${
|
|
2001
|
+
at(d) && d.forEach((g, c) => {
|
|
2002
|
+
if (g)
|
|
2003
|
+
for (const _ in g) {
|
|
2004
|
+
const p = g[_];
|
|
2005
|
+
if (p && p.toString().length > 0) {
|
|
2006
|
+
const R = `[${a.toString()}].${r + `[${c.toString()}].${_}`}=${we(p)}`;
|
|
1992
2007
|
t.push(o + R);
|
|
1993
2008
|
}
|
|
1994
2009
|
}
|
|
1995
2010
|
});
|
|
1996
2011
|
else if (d.toString().length > 0) {
|
|
1997
|
-
const
|
|
1998
|
-
t.push(o +
|
|
2012
|
+
const g = `[${a.toString()}].${r}=${we(d.toString())}`;
|
|
2013
|
+
t.push(o + g);
|
|
1999
2014
|
}
|
|
2000
2015
|
}
|
|
2001
2016
|
}
|
|
@@ -2018,13 +2033,13 @@ class Pr {
|
|
|
2018
2033
|
const t = "&key=" + await this.helloIboot(), o = [];
|
|
2019
2034
|
for (const d in e)
|
|
2020
2035
|
o.push(d);
|
|
2021
|
-
o.sort((d,
|
|
2036
|
+
o.sort((d, g) => d.toLowerCase().localeCompare(g.toLowerCase()));
|
|
2022
2037
|
const n = [];
|
|
2023
2038
|
o.forEach((d) => {
|
|
2024
|
-
let
|
|
2025
|
-
typeof
|
|
2039
|
+
let g = e[d];
|
|
2040
|
+
typeof g == "object" && (g = JSON.stringify(g)), n.push(d + "=" + g);
|
|
2026
2041
|
});
|
|
2027
|
-
const a = n.join("&"), u =
|
|
2042
|
+
const a = n.join("&"), u = $t.md5((a + t).toLocaleUpperCase()), r = {
|
|
2028
2043
|
params: a,
|
|
2029
2044
|
md5: u
|
|
2030
2045
|
};
|
|
@@ -2033,7 +2048,7 @@ class Pr {
|
|
|
2033
2048
|
//eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2034
2049
|
assemblyParameter(e, t) {
|
|
2035
2050
|
const o = e ?? {};
|
|
2036
|
-
return o.timestamp = Date.now() + "", o.echostr =
|
|
2051
|
+
return o.timestamp = Date.now() + "", o.echostr = ut(10), o.version = this.version, o.deviceId = this.deviceId, o.webid = this.websiteId, o.apiKey = this.apiKey, t && t.length > 0 && (o.username = t), o;
|
|
2037
2052
|
}
|
|
2038
2053
|
async assemblyHeader({ urlParams: e, token: t }) {
|
|
2039
2054
|
const o = {
|
|
@@ -2044,7 +2059,7 @@ class Pr {
|
|
|
2044
2059
|
"Api-Key": this.apiKey
|
|
2045
2060
|
};
|
|
2046
2061
|
o[K] = X.applicationXwwwFormUrlencoded, this.lang && this.lang.length > 0 && (o.Lang = this.lang), this.websiteId && this.websiteId.length > 0 && (o["Web-Id"] = this.websiteId), this.websiteNo && this.websiteNo.length > 0 && (o["Web-No"] = this.websiteNo), t && (t.token && t.token.length > 0 && t.username && t.username.length > 0 && (o.Authorization = t.token, o.Username = t.username), t.xcsrf && (o[t.xcsrf.csrfHeader] = t.xcsrf.csrfToken));
|
|
2047
|
-
const n =
|
|
2062
|
+
const n = et(e), a = await this.sign(n);
|
|
2048
2063
|
return o.Sign = a, o;
|
|
2049
2064
|
}
|
|
2050
2065
|
async helloIboot() {
|
|
@@ -2087,11 +2102,11 @@ class Pr {
|
|
|
2087
2102
|
}
|
|
2088
2103
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2089
2104
|
async get({ url: e, data: t, token: o, cache: n = "default" }) {
|
|
2090
|
-
const a = this.assemblyParameter(t), u = this.convertUrlParameter(a), r = await this.assemblyHeader({ urlParams: u, token: o }), d = `${this.getApiUrl(e)}?${u.toString()}`,
|
|
2105
|
+
const a = this.assemblyParameter(t), u = this.convertUrlParameter(a), r = await this.assemblyHeader({ urlParams: u, token: o }), d = `${this.getApiUrl(e)}?${u.toString()}`, g = {
|
|
2091
2106
|
url: d,
|
|
2092
2107
|
headers: r
|
|
2093
2108
|
};
|
|
2094
|
-
k.info(
|
|
2109
|
+
k.info(g, "GET");
|
|
2095
2110
|
const c = await fetch(d, {
|
|
2096
2111
|
method: "GET",
|
|
2097
2112
|
headers: r,
|
|
@@ -2099,32 +2114,32 @@ class Pr {
|
|
|
2099
2114
|
cache: n
|
|
2100
2115
|
});
|
|
2101
2116
|
if (c.ok) {
|
|
2102
|
-
const
|
|
2117
|
+
const p = Object.fromEntries(c.headers.entries()), R = { ...await c.json(), headers: p };
|
|
2103
2118
|
return k.debug(R, "GET_RESULT"), R;
|
|
2104
2119
|
}
|
|
2105
|
-
const
|
|
2120
|
+
const _ = {
|
|
2106
2121
|
code: c.status,
|
|
2107
2122
|
success: !1,
|
|
2108
2123
|
msg: c.statusText
|
|
2109
2124
|
};
|
|
2110
|
-
return k.error(
|
|
2125
|
+
return k.error(_), _;
|
|
2111
2126
|
}
|
|
2112
2127
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2113
2128
|
async post({ url: e, data: t, token: o, cache: n = "default" }) {
|
|
2114
2129
|
t = t ? { ...t } : {};
|
|
2115
2130
|
const a = t.buffer ?? void 0, u = t.boundary ?? void 0;
|
|
2116
2131
|
a && delete t.buffer, u && delete t.boundary;
|
|
2117
|
-
const r = this.assemblyParameter(t), d = this.convertUrlParameter(r),
|
|
2118
|
-
a && u && (
|
|
2119
|
-
const c = this.getApiUrl(e),
|
|
2132
|
+
const r = this.assemblyParameter(t), d = this.convertUrlParameter(r), g = await this.assemblyHeader({ urlParams: d, token: o });
|
|
2133
|
+
a && u && (g[K] = `multipart/form-data; boundary=${u}`);
|
|
2134
|
+
const c = this.getApiUrl(e), _ = {
|
|
2120
2135
|
url: c,
|
|
2121
|
-
headers:
|
|
2136
|
+
headers: g,
|
|
2122
2137
|
params: r
|
|
2123
2138
|
};
|
|
2124
|
-
k.info(
|
|
2125
|
-
const
|
|
2139
|
+
k.info(_, "POST");
|
|
2140
|
+
const p = a ? `${c}?${d}` : c, R = await fetch(p, {
|
|
2126
2141
|
method: "POST",
|
|
2127
|
-
headers:
|
|
2142
|
+
headers: g,
|
|
2128
2143
|
body: a || d.toString(),
|
|
2129
2144
|
credentials: "include",
|
|
2130
2145
|
cache: n
|
|
@@ -2147,26 +2162,26 @@ class Pr {
|
|
|
2147
2162
|
n && delete t.buffer, a && delete t.boundary;
|
|
2148
2163
|
const u = this.assemblyParameter(t), r = this.convertUrlParameter(u), d = await this.assemblyHeader({ urlParams: r, token: o });
|
|
2149
2164
|
n && a && (d[K] = `multipart/form-data; boundary=${a}`), d.Connection = "keep-alive", d["X-Accel-Buffering"] = "no", d["Cache-Control"] = "no-cache";
|
|
2150
|
-
const
|
|
2165
|
+
const g = this.getApiUrl(e);
|
|
2151
2166
|
try {
|
|
2152
|
-
const c = n ? `${
|
|
2153
|
-
url:
|
|
2167
|
+
const c = n ? `${g}?${r}` : g, _ = {
|
|
2168
|
+
url: g,
|
|
2154
2169
|
headers: d,
|
|
2155
2170
|
params: u
|
|
2156
2171
|
};
|
|
2157
|
-
k.info(
|
|
2158
|
-
const
|
|
2172
|
+
k.info(_, "STREAM");
|
|
2173
|
+
const p = await fetch(c, {
|
|
2159
2174
|
method: "POST",
|
|
2160
2175
|
headers: d,
|
|
2161
2176
|
body: n || r.toString(),
|
|
2162
2177
|
credentials: "include"
|
|
2163
2178
|
});
|
|
2164
|
-
if (!
|
|
2165
|
-
throw new Error(`HTTP error! status: ${
|
|
2166
|
-
if (!
|
|
2179
|
+
if (!p.ok)
|
|
2180
|
+
throw new Error(`HTTP error! status: ${p.status}`);
|
|
2181
|
+
if (!p.body)
|
|
2167
2182
|
throw new Error("No response body");
|
|
2168
|
-
const R = Object.fromEntries(
|
|
2169
|
-
return new Response(
|
|
2183
|
+
const R = Object.fromEntries(p.headers.entries());
|
|
2184
|
+
return new Response(p.body, {
|
|
2170
2185
|
headers: R
|
|
2171
2186
|
});
|
|
2172
2187
|
} catch (c) {
|
|
@@ -2175,34 +2190,34 @@ class Pr {
|
|
|
2175
2190
|
}
|
|
2176
2191
|
}
|
|
2177
2192
|
export {
|
|
2178
|
-
|
|
2193
|
+
xr as ACCOUNT_TYPE_MAP,
|
|
2179
2194
|
K as CONTENT_TYPE_KEY,
|
|
2180
2195
|
X as CONTENT_TYPE_MAP,
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2196
|
+
Ur as HTTPRouter,
|
|
2197
|
+
Sr as HttpClient,
|
|
2198
|
+
kr as NextJsAdapter,
|
|
2199
|
+
Nr as USER_FORM_MAP,
|
|
2200
|
+
Cr as USER_SEX_MAP,
|
|
2201
|
+
jt as USER_TYPE_MAP,
|
|
2202
|
+
yr as cleanToken,
|
|
2203
|
+
Lr as dateFormat,
|
|
2204
|
+
Er as get,
|
|
2205
|
+
Br as getLoginUser,
|
|
2206
|
+
Fr as getServerHttpCookies,
|
|
2207
|
+
vr as getServerHttpOpts,
|
|
2208
|
+
Rr as getToken,
|
|
2209
|
+
Mr as iGet,
|
|
2210
|
+
jr as iPost,
|
|
2211
|
+
qr as iPostSuccess,
|
|
2212
|
+
at as isArray,
|
|
2198
2213
|
k as logger,
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2214
|
+
Wt as post,
|
|
2215
|
+
ut as randomString,
|
|
2216
|
+
Dr as setClientRequestHeader,
|
|
2217
|
+
Gr as setServerHttpCookies,
|
|
2218
|
+
Hr as setServerHttpHeaders,
|
|
2219
|
+
Pr as setToken,
|
|
2205
2220
|
we as urlEncode,
|
|
2206
|
-
|
|
2221
|
+
et as urlParamToJson
|
|
2207
2222
|
};
|
|
2208
2223
|
//# sourceMappingURL=iboot-http-client.es.js.map
|