icms-api 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icms-api.cjs.js +2 -2
- package/dist/icms-api.cjs.js.map +1 -1
- package/dist/icms-api.es.js +366 -442
- package/dist/icms-api.es.js.map +1 -1
- package/dist/icms-api.umd.js +2 -2
- package/dist/icms-api.umd.js.map +1 -1
- package/dist/types/router.d.ts +1 -1
- package/dist/types/server.d.ts +5 -3
- package/package.json +3 -2
package/dist/icms-api.es.js
CHANGED
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import zt from "pino";
|
|
2
|
+
import Vt from "pino-pretty";
|
|
3
|
+
import Kt from "js-md5";
|
|
4
4
|
import ne from "crypto-js";
|
|
5
5
|
import "h3";
|
|
6
|
-
var
|
|
6
|
+
var tr = {
|
|
7
7
|
TYPE_MGT: 0,
|
|
8
8
|
TYPE_C: 1,
|
|
9
9
|
TYPE_B: 2
|
|
10
|
-
},
|
|
10
|
+
}, rr = Vt({
|
|
11
11
|
colorize: !0,
|
|
12
12
|
destination: process.stdout,
|
|
13
13
|
translateTime: "SYS:yyyy-mm-dd HH:MM:ss",
|
|
14
14
|
ignore: "pid,hostname",
|
|
15
15
|
messageFormat: "{msg}",
|
|
16
16
|
singleLine: !0
|
|
17
|
-
}), L =
|
|
17
|
+
}), L = zt({
|
|
18
18
|
name: process.env.APP_NAME ?? "iBoot",
|
|
19
19
|
level: process.env.APP_ENV === "production" ? "info" : "debug",
|
|
20
20
|
nestedKey: "payload"
|
|
21
|
-
},
|
|
21
|
+
}, rr), at = (e) => {
|
|
22
22
|
let t = e || 32, n = "";
|
|
23
23
|
for (let e = 0; e < t; e++) n += "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678".charAt(Math.floor(Math.random() * 48));
|
|
24
24
|
return n;
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
return
|
|
28
|
-
let r = e.split("=");
|
|
29
|
-
r[1] && (!t || t.indexOf(r[0]) == -1) && (n[r[0]] = r[1]);
|
|
30
|
-
}), n;
|
|
31
|
-
}, we = (e) => !e || e == "" || e.length == 0 ? "" : encodeURIComponent(e).replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/\'/g, "%27").replace(/\!/g, "%21").replace(/\~/g, "%7E"), Ee = { exports: {} }, Te = {}, Ie = {}, Ae = {}, dt;
|
|
32
|
-
function sr() {
|
|
33
|
-
return dt || (dt = 1, (function(e) {
|
|
25
|
+
}, we = { exports: {} }, Te = {}, Se = {}, Ie = {}, ut;
|
|
26
|
+
function nr() {
|
|
27
|
+
return ut || (ut = 1, (function(e) {
|
|
34
28
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "detectDomainLocale", {
|
|
35
29
|
enumerable: !0,
|
|
36
30
|
get: function() {
|
|
@@ -46,11 +40,11 @@ function sr() {
|
|
|
46
40
|
}
|
|
47
41
|
}
|
|
48
42
|
}
|
|
49
|
-
})(
|
|
43
|
+
})(Ie)), Ie;
|
|
50
44
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
53
|
-
return
|
|
45
|
+
var Ae = {}, Oe = {}, ct;
|
|
46
|
+
function ir() {
|
|
47
|
+
return ct || (ct = 1, (function(e) {
|
|
54
48
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "removeTrailingSlash", {
|
|
55
49
|
enumerable: !0,
|
|
56
50
|
get: function() {
|
|
@@ -60,11 +54,11 @@ function ar() {
|
|
|
60
54
|
function t(e) {
|
|
61
55
|
return e.replace(/\/$/, "") || "/";
|
|
62
56
|
}
|
|
63
|
-
})(
|
|
57
|
+
})(Oe)), Oe;
|
|
64
58
|
}
|
|
65
|
-
var
|
|
66
|
-
function
|
|
67
|
-
return
|
|
59
|
+
var xe = {}, Ne = {}, lt;
|
|
60
|
+
function et() {
|
|
61
|
+
return lt || (lt = 1, (function(e) {
|
|
68
62
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "parsePath", {
|
|
69
63
|
enumerable: !0,
|
|
70
64
|
get: function() {
|
|
@@ -83,95 +77,95 @@ function rt() {
|
|
|
83
77
|
hash: ""
|
|
84
78
|
};
|
|
85
79
|
}
|
|
86
|
-
})(
|
|
80
|
+
})(Ne)), Ne;
|
|
87
81
|
}
|
|
88
|
-
var
|
|
89
|
-
function
|
|
90
|
-
return
|
|
82
|
+
var dt;
|
|
83
|
+
function Mt() {
|
|
84
|
+
return dt || (dt = 1, (function(e) {
|
|
91
85
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addPathPrefix", {
|
|
92
86
|
enumerable: !0,
|
|
93
87
|
get: function() {
|
|
94
88
|
return n;
|
|
95
89
|
}
|
|
96
90
|
});
|
|
97
|
-
let t =
|
|
91
|
+
let t = et();
|
|
98
92
|
function n(e, n) {
|
|
99
93
|
if (!e.startsWith("/") || !n) return e;
|
|
100
94
|
let { pathname: r, query: i, hash: a } = (0, t.parsePath)(e);
|
|
101
95
|
return "" + n + r + i + a;
|
|
102
96
|
}
|
|
103
|
-
})(
|
|
97
|
+
})(xe)), xe;
|
|
104
98
|
}
|
|
105
|
-
var
|
|
106
|
-
function
|
|
107
|
-
return
|
|
99
|
+
var Ce = {}, ht;
|
|
100
|
+
function or() {
|
|
101
|
+
return ht || (ht = 1, (function(e) {
|
|
108
102
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addPathSuffix", {
|
|
109
103
|
enumerable: !0,
|
|
110
104
|
get: function() {
|
|
111
105
|
return n;
|
|
112
106
|
}
|
|
113
107
|
});
|
|
114
|
-
let t =
|
|
108
|
+
let t = et();
|
|
115
109
|
function n(e, n) {
|
|
116
110
|
if (!e.startsWith("/") || !n) return e;
|
|
117
111
|
let { pathname: r, query: i, hash: a } = (0, t.parsePath)(e);
|
|
118
112
|
return "" + r + n + i + a;
|
|
119
113
|
}
|
|
120
|
-
})(
|
|
114
|
+
})(Ce)), Ce;
|
|
121
115
|
}
|
|
122
|
-
var
|
|
123
|
-
function
|
|
124
|
-
return
|
|
116
|
+
var Le = {}, ke = {}, ft;
|
|
117
|
+
function tt() {
|
|
118
|
+
return ft || (ft = 1, (function(e) {
|
|
125
119
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "pathHasPrefix", {
|
|
126
120
|
enumerable: !0,
|
|
127
121
|
get: function() {
|
|
128
122
|
return n;
|
|
129
123
|
}
|
|
130
124
|
});
|
|
131
|
-
let t =
|
|
125
|
+
let t = et();
|
|
132
126
|
function n(e, n) {
|
|
133
127
|
if (typeof e != "string") return !1;
|
|
134
128
|
let { pathname: r } = (0, t.parsePath)(e);
|
|
135
129
|
return r === n || r.startsWith(n + "/");
|
|
136
130
|
}
|
|
137
|
-
})(
|
|
131
|
+
})(ke)), ke;
|
|
138
132
|
}
|
|
139
|
-
var
|
|
140
|
-
function
|
|
141
|
-
return
|
|
133
|
+
var pt;
|
|
134
|
+
function sr() {
|
|
135
|
+
return pt || (pt = 1, (function(e) {
|
|
142
136
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addLocale", {
|
|
143
137
|
enumerable: !0,
|
|
144
138
|
get: function() {
|
|
145
139
|
return r;
|
|
146
140
|
}
|
|
147
141
|
});
|
|
148
|
-
let t =
|
|
142
|
+
let t = Mt(), n = tt();
|
|
149
143
|
function r(e, r, i, a) {
|
|
150
144
|
if (!r || r === i) return e;
|
|
151
145
|
let o = e.toLowerCase();
|
|
152
146
|
return !a && ((0, n.pathHasPrefix)(o, "/api") || (0, n.pathHasPrefix)(o, "/" + r.toLowerCase())) ? e : (0, t.addPathPrefix)(e, "/" + r);
|
|
153
147
|
}
|
|
154
|
-
})(
|
|
148
|
+
})(Le)), Le;
|
|
155
149
|
}
|
|
156
|
-
var
|
|
157
|
-
function
|
|
158
|
-
return
|
|
150
|
+
var mt;
|
|
151
|
+
function ar() {
|
|
152
|
+
return mt || (mt = 1, (function(e) {
|
|
159
153
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "formatNextPathnameInfo", {
|
|
160
154
|
enumerable: !0,
|
|
161
155
|
get: function() {
|
|
162
156
|
return a;
|
|
163
157
|
}
|
|
164
158
|
});
|
|
165
|
-
let t =
|
|
159
|
+
let t = ir(), n = Mt(), r = or(), i = sr();
|
|
166
160
|
function a(e) {
|
|
167
161
|
let a = (0, i.addLocale)(e.pathname, e.locale, e.buildId ? void 0 : e.defaultLocale, e.ignorePrefix);
|
|
168
162
|
return (e.buildId || !e.trailingSlash) && (a = (0, t.removeTrailingSlash)(a)), e.buildId && (a = (0, r.addPathSuffix)((0, n.addPathPrefix)(a, "/_next/data/" + e.buildId), e.pathname === "/" ? "index.json" : ".json")), a = (0, n.addPathPrefix)(a, e.basePath), !e.buildId && e.trailingSlash ? a.endsWith("/") ? a : (0, r.addPathSuffix)(a, "/") : (0, t.removeTrailingSlash)(a);
|
|
169
163
|
}
|
|
170
|
-
})(
|
|
164
|
+
})(Ae)), Ae;
|
|
171
165
|
}
|
|
172
|
-
var
|
|
173
|
-
function
|
|
174
|
-
return
|
|
166
|
+
var Ue = {}, _t;
|
|
167
|
+
function ur() {
|
|
168
|
+
return _t || (_t = 1, (function(e) {
|
|
175
169
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getHostname", {
|
|
176
170
|
enumerable: !0,
|
|
177
171
|
get: function() {
|
|
@@ -185,11 +179,11 @@ function dr() {
|
|
|
185
179
|
else return;
|
|
186
180
|
return n.toLowerCase();
|
|
187
181
|
}
|
|
188
|
-
})(
|
|
182
|
+
})(Ue)), Ue;
|
|
189
183
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
192
|
-
return
|
|
184
|
+
var De = {}, Me = {}, bt;
|
|
185
|
+
function cr() {
|
|
186
|
+
return bt || (bt = 1, (function(e) {
|
|
193
187
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "normalizeLocalePath", {
|
|
194
188
|
enumerable: !0,
|
|
195
189
|
get: function() {
|
|
@@ -203,35 +197,35 @@ function fr() {
|
|
|
203
197
|
detectedLocale: n
|
|
204
198
|
};
|
|
205
199
|
}
|
|
206
|
-
})(
|
|
200
|
+
})(Me)), Me;
|
|
207
201
|
}
|
|
208
|
-
var
|
|
209
|
-
function
|
|
210
|
-
return
|
|
202
|
+
var je = {}, gt;
|
|
203
|
+
function lr() {
|
|
204
|
+
return gt || (gt = 1, (function(e) {
|
|
211
205
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "removePathPrefix", {
|
|
212
206
|
enumerable: !0,
|
|
213
207
|
get: function() {
|
|
214
208
|
return n;
|
|
215
209
|
}
|
|
216
210
|
});
|
|
217
|
-
let t =
|
|
211
|
+
let t = tt();
|
|
218
212
|
function n(e, n) {
|
|
219
213
|
if (!(0, t.pathHasPrefix)(e, n)) return e;
|
|
220
214
|
let r = e.slice(n.length);
|
|
221
215
|
return r.startsWith("/") ? r : "/" + r;
|
|
222
216
|
}
|
|
223
|
-
})(
|
|
217
|
+
})(je)), je;
|
|
224
218
|
}
|
|
225
|
-
var
|
|
226
|
-
function
|
|
227
|
-
return
|
|
219
|
+
var wt;
|
|
220
|
+
function dr() {
|
|
221
|
+
return wt || (wt = 1, (function(e) {
|
|
228
222
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getNextPathnameInfo", {
|
|
229
223
|
enumerable: !0,
|
|
230
224
|
get: function() {
|
|
231
225
|
return i;
|
|
232
226
|
}
|
|
233
227
|
});
|
|
234
|
-
let t =
|
|
228
|
+
let t = cr(), n = lr(), r = tt();
|
|
235
229
|
function i(e, i) {
|
|
236
230
|
let { basePath: a, i18n: o, trailingSlash: s } = i.nextConfig ?? {}, c = {
|
|
237
231
|
pathname: e,
|
|
@@ -249,18 +243,18 @@ function pr() {
|
|
|
249
243
|
}
|
|
250
244
|
return c;
|
|
251
245
|
}
|
|
252
|
-
})(
|
|
246
|
+
})(De)), De;
|
|
253
247
|
}
|
|
254
|
-
var
|
|
255
|
-
function
|
|
256
|
-
return
|
|
248
|
+
var Et;
|
|
249
|
+
function jt() {
|
|
250
|
+
return Et || (Et = 1, (function(e) {
|
|
257
251
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "NextURL", {
|
|
258
252
|
enumerable: !0,
|
|
259
253
|
get: function() {
|
|
260
254
|
return c;
|
|
261
255
|
}
|
|
262
256
|
});
|
|
263
|
-
let t =
|
|
257
|
+
let t = nr(), n = ar(), r = ur(), i = dr(), a = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
264
258
|
function o(e, t) {
|
|
265
259
|
return new URL(String(e).replace(a, "localhost"), t && String(t).replace(a, "localhost"));
|
|
266
260
|
}
|
|
@@ -417,11 +411,11 @@ function Ft() {
|
|
|
417
411
|
return new c(String(this), this[s].options);
|
|
418
412
|
}
|
|
419
413
|
}
|
|
420
|
-
})(
|
|
414
|
+
})(Se)), Se;
|
|
421
415
|
}
|
|
422
|
-
var
|
|
423
|
-
function
|
|
424
|
-
return
|
|
416
|
+
var qe = {}, He = {}, vt;
|
|
417
|
+
function hr() {
|
|
418
|
+
return vt || (vt = 1, (function(e) {
|
|
425
419
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
426
420
|
function t(e, t) {
|
|
427
421
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -434,7 +428,7 @@ function mr() {
|
|
|
434
428
|
return c;
|
|
435
429
|
},
|
|
436
430
|
APP_DIR_ALIAS: function() {
|
|
437
|
-
return
|
|
431
|
+
return un;
|
|
438
432
|
},
|
|
439
433
|
CACHE_ONE_YEAR: function() {
|
|
440
434
|
return b;
|
|
@@ -443,16 +437,16 @@ function mr() {
|
|
|
443
437
|
return T;
|
|
444
438
|
},
|
|
445
439
|
ESLINT_DEFAULT_DIRS: function() {
|
|
446
|
-
return
|
|
440
|
+
return hn;
|
|
447
441
|
},
|
|
448
442
|
GSP_NO_RETURNED_VALUE: function() {
|
|
449
|
-
return
|
|
443
|
+
return R;
|
|
450
444
|
},
|
|
451
445
|
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
452
|
-
return
|
|
446
|
+
return B;
|
|
453
447
|
},
|
|
454
448
|
GSSP_NO_RETURNED_VALUE: function() {
|
|
455
|
-
return
|
|
449
|
+
return pn;
|
|
456
450
|
},
|
|
457
451
|
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
458
452
|
return C;
|
|
@@ -503,7 +497,7 @@ function mr() {
|
|
|
503
497
|
return n;
|
|
504
498
|
},
|
|
505
499
|
NON_STANDARD_NODE_ENV: function() {
|
|
506
|
-
return
|
|
500
|
+
return V;
|
|
507
501
|
},
|
|
508
502
|
PAGES_DIR_ALIAS: function() {
|
|
509
503
|
return w;
|
|
@@ -515,25 +509,25 @@ function mr() {
|
|
|
515
509
|
return a;
|
|
516
510
|
},
|
|
517
511
|
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
518
|
-
return
|
|
512
|
+
return j;
|
|
519
513
|
},
|
|
520
514
|
ROOT_DIR_ALIAS: function() {
|
|
521
515
|
return E;
|
|
522
516
|
},
|
|
523
517
|
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
524
|
-
return
|
|
518
|
+
return A;
|
|
525
519
|
},
|
|
526
520
|
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
527
|
-
return
|
|
521
|
+
return dn;
|
|
528
522
|
},
|
|
529
523
|
RSC_ACTION_PROXY_ALIAS: function() {
|
|
530
|
-
return
|
|
524
|
+
return k;
|
|
531
525
|
},
|
|
532
526
|
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
533
|
-
return
|
|
527
|
+
return O;
|
|
534
528
|
},
|
|
535
529
|
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
536
|
-
return
|
|
530
|
+
return D;
|
|
537
531
|
},
|
|
538
532
|
RSC_PREFETCH_SUFFIX: function() {
|
|
539
533
|
return o;
|
|
@@ -542,47 +536,47 @@ function mr() {
|
|
|
542
536
|
return s;
|
|
543
537
|
},
|
|
544
538
|
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
545
|
-
return
|
|
539
|
+
return I;
|
|
546
540
|
},
|
|
547
541
|
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
548
|
-
return
|
|
542
|
+
return P;
|
|
549
543
|
},
|
|
550
544
|
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
551
|
-
return
|
|
545
|
+
return F;
|
|
552
546
|
},
|
|
553
547
|
SERVER_RUNTIME: function() {
|
|
554
|
-
return
|
|
548
|
+
return gn;
|
|
555
549
|
},
|
|
556
550
|
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
557
|
-
return
|
|
551
|
+
return mn;
|
|
558
552
|
},
|
|
559
553
|
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
560
|
-
return
|
|
554
|
+
return N;
|
|
561
555
|
},
|
|
562
556
|
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
563
|
-
return
|
|
557
|
+
return fn;
|
|
564
558
|
},
|
|
565
559
|
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
566
|
-
return
|
|
560
|
+
return z;
|
|
567
561
|
},
|
|
568
562
|
WEBPACK_LAYERS: function() {
|
|
569
|
-
return
|
|
563
|
+
return W;
|
|
570
564
|
},
|
|
571
565
|
WEBPACK_RESOURCE_QUERIES: function() {
|
|
572
|
-
return
|
|
566
|
+
return G;
|
|
573
567
|
}
|
|
574
568
|
});
|
|
575
|
-
let n = "nxtP", r = "nxtI", i = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", o = ".prefetch.rsc", s = ".rsc", c = ".action", l = ".json", u = ".meta", d = ".body", f = "x-next-cache-tags", p = "x-next-cache-soft-tags", m = "x-next-revalidated-tags", h = "x-next-revalidate-tag-token", g = 128, _ = 256, v = 1024, y = "_N_T_", b = 31536e3, x = "middleware", S = `(?:src/)?${x}`, C = "instrumentation", w = "private-next-pages", T = "private-dot-next", E = "private-next-root-dir",
|
|
569
|
+
let n = "nxtP", r = "nxtI", i = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", o = ".prefetch.rsc", s = ".rsc", c = ".action", l = ".json", u = ".meta", d = ".body", f = "x-next-cache-tags", p = "x-next-cache-soft-tags", m = "x-next-revalidated-tags", h = "x-next-revalidate-tag-token", g = 128, _ = 256, v = 1024, y = "_N_T_", b = 31536e3, x = "middleware", S = `(?:src/)?${x}`, C = "instrumentation", w = "private-next-pages", T = "private-dot-next", E = "private-next-root-dir", un = "private-next-app-dir", D = "private-next-rsc-mod-ref-proxy", O = "private-next-rsc-action-validate", k = "private-next-rsc-server-reference", dn = "private-next-rsc-action-encryption", A = "private-next-rsc-action-client-wrapper", j = "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", N = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", P = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", F = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", fn = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", I = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", R = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", pn = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", z = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", B = "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", V = "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", mn = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", hn = [
|
|
576
570
|
"app",
|
|
577
571
|
"pages",
|
|
578
572
|
"components",
|
|
579
573
|
"lib",
|
|
580
574
|
"src"
|
|
581
|
-
],
|
|
575
|
+
], gn = {
|
|
582
576
|
edge: "edge",
|
|
583
577
|
experimentalEdge: "experimental-edge",
|
|
584
578
|
nodejs: "nodejs"
|
|
585
|
-
},
|
|
579
|
+
}, H = {
|
|
586
580
|
shared: "shared",
|
|
587
581
|
reactServerComponents: "rsc",
|
|
588
582
|
serverSideRendering: "ssr",
|
|
@@ -594,40 +588,40 @@ function mr() {
|
|
|
594
588
|
appPagesBrowser: "app-pages-browser",
|
|
595
589
|
appMetadataRoute: "app-metadata-route",
|
|
596
590
|
appRouteHandler: "app-route-handler"
|
|
597
|
-
},
|
|
598
|
-
...
|
|
591
|
+
}, W = {
|
|
592
|
+
...H,
|
|
599
593
|
GROUP: {
|
|
600
594
|
serverOnly: [
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
595
|
+
H.reactServerComponents,
|
|
596
|
+
H.actionBrowser,
|
|
597
|
+
H.appMetadataRoute,
|
|
598
|
+
H.appRouteHandler,
|
|
599
|
+
H.instrument
|
|
606
600
|
],
|
|
607
|
-
clientOnly: [
|
|
608
|
-
nonClientServerTarget: [
|
|
601
|
+
clientOnly: [H.serverSideRendering, H.appPagesBrowser],
|
|
602
|
+
nonClientServerTarget: [H.middleware, H.api],
|
|
609
603
|
app: [
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
604
|
+
H.reactServerComponents,
|
|
605
|
+
H.actionBrowser,
|
|
606
|
+
H.appMetadataRoute,
|
|
607
|
+
H.appRouteHandler,
|
|
608
|
+
H.serverSideRendering,
|
|
609
|
+
H.appPagesBrowser,
|
|
610
|
+
H.shared,
|
|
611
|
+
H.instrument
|
|
618
612
|
]
|
|
619
613
|
}
|
|
620
|
-
},
|
|
614
|
+
}, G = {
|
|
621
615
|
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
622
616
|
metadata: "__next_metadata__",
|
|
623
617
|
metadataRoute: "__next_metadata_route__",
|
|
624
618
|
metadataImageMeta: "__next_metadata_image_meta__"
|
|
625
619
|
};
|
|
626
|
-
})(
|
|
620
|
+
})(He)), He;
|
|
627
621
|
}
|
|
628
|
-
var
|
|
629
|
-
function
|
|
630
|
-
return
|
|
622
|
+
var Rt;
|
|
623
|
+
function qt() {
|
|
624
|
+
return Rt || (Rt = 1, (function(e) {
|
|
631
625
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
632
626
|
function t(e, t) {
|
|
633
627
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -652,7 +646,7 @@ function Bt() {
|
|
|
652
646
|
return o;
|
|
653
647
|
}
|
|
654
648
|
});
|
|
655
|
-
let n =
|
|
649
|
+
let n = hr();
|
|
656
650
|
function r(e) {
|
|
657
651
|
let t = new Headers();
|
|
658
652
|
for (let [n, r] of Object.entries(e)) {
|
|
@@ -695,11 +689,11 @@ function Bt() {
|
|
|
695
689
|
let r = [n.NEXT_QUERY_PARAM_PREFIX, n.NEXT_INTERCEPTION_MARKER_PREFIX];
|
|
696
690
|
for (let n of r) e !== n && e.startsWith(n) && t(e.substring(n.length));
|
|
697
691
|
}
|
|
698
|
-
})(
|
|
692
|
+
})(qe)), qe;
|
|
699
693
|
}
|
|
700
|
-
var
|
|
701
|
-
function
|
|
702
|
-
return
|
|
694
|
+
var Fe = {}, Pt;
|
|
695
|
+
function fr() {
|
|
696
|
+
return Pt || (Pt = 1, (function(e) {
|
|
703
697
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
704
698
|
function t(e, t) {
|
|
705
699
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -740,12 +734,12 @@ function _r() {
|
|
|
740
734
|
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 ");
|
|
741
735
|
}
|
|
742
736
|
}
|
|
743
|
-
})(
|
|
737
|
+
})(Fe)), Fe;
|
|
744
738
|
}
|
|
745
|
-
var
|
|
746
|
-
function
|
|
747
|
-
if (
|
|
748
|
-
|
|
739
|
+
var Be = {}, Ge, yt;
|
|
740
|
+
function pr() {
|
|
741
|
+
if (yt) return Ge;
|
|
742
|
+
yt = 1;
|
|
749
743
|
var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.prototype.hasOwnProperty, i = (t, n) => {
|
|
750
744
|
for (var r in n) e(t, r, {
|
|
751
745
|
get: n[r],
|
|
@@ -764,7 +758,7 @@ function br() {
|
|
|
764
758
|
parseCookie: () => l,
|
|
765
759
|
parseSetCookie: () => u,
|
|
766
760
|
stringifyCookie: () => c
|
|
767
|
-
}),
|
|
761
|
+
}), Ge = o(s);
|
|
768
762
|
function c(e) {
|
|
769
763
|
let t = [
|
|
770
764
|
"path" in e && e.path && `Path=${e.path}`,
|
|
@@ -971,11 +965,11 @@ function br() {
|
|
|
971
965
|
}) {
|
|
972
966
|
return typeof e.expires == "number" && (e.expires = new Date(e.expires)), e.maxAge && (e.expires = new Date(Date.now() + e.maxAge * 1e3)), (e.path === null || e.path === void 0) && (e.path = "/"), e;
|
|
973
967
|
}
|
|
974
|
-
return
|
|
968
|
+
return Ge;
|
|
975
969
|
}
|
|
976
|
-
var
|
|
977
|
-
function
|
|
978
|
-
return
|
|
970
|
+
var Tt;
|
|
971
|
+
function $e() {
|
|
972
|
+
return Tt || (Tt = 1, (function(e) {
|
|
979
973
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
980
974
|
function t(e, t) {
|
|
981
975
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -994,12 +988,12 @@ function Qe() {
|
|
|
994
988
|
return n.stringifyCookie;
|
|
995
989
|
}
|
|
996
990
|
});
|
|
997
|
-
let n =
|
|
998
|
-
})(
|
|
991
|
+
let n = pr();
|
|
992
|
+
})(Be)), Be;
|
|
999
993
|
}
|
|
1000
|
-
var
|
|
1001
|
-
function
|
|
1002
|
-
return
|
|
994
|
+
var St;
|
|
995
|
+
function mr() {
|
|
996
|
+
return St || (St = 1, (function(e) {
|
|
1003
997
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1004
998
|
function t(e, t) {
|
|
1005
999
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -1015,7 +1009,7 @@ function gr() {
|
|
|
1015
1009
|
return s;
|
|
1016
1010
|
}
|
|
1017
1011
|
});
|
|
1018
|
-
let n =
|
|
1012
|
+
let n = jt(), r = qt(), i = fr(), a = $e(), o = /* @__PURE__ */ Symbol("internal request");
|
|
1019
1013
|
class s extends Request {
|
|
1020
1014
|
constructor(e, t = {}) {
|
|
1021
1015
|
let i = typeof e != "string" && "url" in e ? e.url : String(e);
|
|
@@ -1078,9 +1072,9 @@ function gr() {
|
|
|
1078
1072
|
}
|
|
1079
1073
|
})(Te)), Te;
|
|
1080
1074
|
}
|
|
1081
|
-
var
|
|
1082
|
-
function
|
|
1083
|
-
return
|
|
1075
|
+
var Xe = {}, We = {}, It;
|
|
1076
|
+
function _r() {
|
|
1077
|
+
return It || (It = 1, (function(e) {
|
|
1084
1078
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "ReflectAdapter", {
|
|
1085
1079
|
enumerable: !0,
|
|
1086
1080
|
get: function() {
|
|
@@ -1102,18 +1096,18 @@ function wr() {
|
|
|
1102
1096
|
return Reflect.deleteProperty(e, t);
|
|
1103
1097
|
}
|
|
1104
1098
|
}
|
|
1105
|
-
})(
|
|
1099
|
+
})(We)), We;
|
|
1106
1100
|
}
|
|
1107
|
-
var
|
|
1108
|
-
function
|
|
1109
|
-
return
|
|
1101
|
+
var At;
|
|
1102
|
+
function br() {
|
|
1103
|
+
return At || (At = 1, (function(e) {
|
|
1110
1104
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "NextResponse", {
|
|
1111
1105
|
enumerable: !0,
|
|
1112
1106
|
get: function() {
|
|
1113
1107
|
return l;
|
|
1114
1108
|
}
|
|
1115
1109
|
});
|
|
1116
|
-
let t =
|
|
1110
|
+
let t = $e(), n = jt(), r = qt(), i = _r(), a = $e(), o = /* @__PURE__ */ Symbol("internal response"), s = /* @__PURE__ */ new Set([
|
|
1117
1111
|
301,
|
|
1118
1112
|
302,
|
|
1119
1113
|
303,
|
|
@@ -1196,11 +1190,11 @@ function Er() {
|
|
|
1196
1190
|
});
|
|
1197
1191
|
}
|
|
1198
1192
|
}
|
|
1199
|
-
})(
|
|
1193
|
+
})(Xe)), Xe;
|
|
1200
1194
|
}
|
|
1201
|
-
var
|
|
1202
|
-
function
|
|
1203
|
-
return
|
|
1195
|
+
var ze = {}, Ot;
|
|
1196
|
+
function gr() {
|
|
1197
|
+
return Ot || (Ot = 1, (function(e) {
|
|
1204
1198
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "ImageResponse", {
|
|
1205
1199
|
enumerable: !0,
|
|
1206
1200
|
get: function() {
|
|
@@ -1210,27 +1204,27 @@ function vr() {
|
|
|
1210
1204
|
function t() {
|
|
1211
1205
|
throw Error("ImageResponse moved from \"next/server\" to \"next/og\" since Next.js 14, please import from \"next/og\" instead");
|
|
1212
1206
|
}
|
|
1213
|
-
})(
|
|
1207
|
+
})(ze)), ze;
|
|
1214
1208
|
}
|
|
1215
|
-
var
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1209
|
+
var Ve = {}, Ke = { exports: {} }, xt;
|
|
1210
|
+
function wr() {
|
|
1211
|
+
return xt || (xt = 1, (() => {
|
|
1218
1212
|
var e = { 226: function(e, t) {
|
|
1219
1213
|
(function(n, r) {
|
|
1220
|
-
var i = "1.0.35", a = "", o = "?", s = "function", c = "undefined", l = "object", u = "string", d = "major", f = "model", p = "name", m = "type", h = "vendor", g = "version", _ = "architecture", v = "console", y = "mobile", b = "tablet", x = "smarttv", S = "wearable", C = "embedded", w = 350, T = "Amazon", E = "Apple",
|
|
1214
|
+
var i = "1.0.35", a = "", o = "?", s = "function", c = "undefined", l = "object", u = "string", d = "major", f = "model", p = "name", m = "type", h = "vendor", g = "version", _ = "architecture", v = "console", y = "mobile", b = "tablet", x = "smarttv", S = "wearable", C = "embedded", w = 350, T = "Amazon", E = "Apple", un = "ASUS", D = "BlackBerry", O = "Browser", k = "Chrome", dn = "Edge", A = "Firefox", j = "Google", N = "Huawei", P = "LG", F = "Microsoft", fn = "Motorola", I = "Opera", R = "Samsung", pn = "Sharp", z = "Sony", B = "Xiaomi", V = "Zebra", mn = "Facebook", hn = "Chromium OS", gn = "Mac OS", H = function(e, t) {
|
|
1221
1215
|
var n = {};
|
|
1222
1216
|
for (var r in e) t[r] && t[r].length % 2 == 0 ? n[r] = t[r].concat(e[r]) : n[r] = e[r];
|
|
1223
1217
|
return n;
|
|
1224
|
-
},
|
|
1218
|
+
}, W = function(e) {
|
|
1225
1219
|
for (var t = {}, n = 0; n < e.length; n++) t[e[n].toUpperCase()] = e[n];
|
|
1226
1220
|
return t;
|
|
1227
|
-
},
|
|
1228
|
-
return typeof e === u ?
|
|
1229
|
-
},
|
|
1221
|
+
}, G = function(e, t) {
|
|
1222
|
+
return typeof e === u ? q(t).indexOf(q(e)) !== -1 : !1;
|
|
1223
|
+
}, q = function(e) {
|
|
1230
1224
|
return e.toLowerCase();
|
|
1231
|
-
},
|
|
1225
|
+
}, _n = function(e) {
|
|
1232
1226
|
return typeof e === u ? e.replace(/[^\d\.]/g, a).split(".")[0] : r;
|
|
1233
|
-
},
|
|
1227
|
+
}, J = function(e, t) {
|
|
1234
1228
|
if (typeof e === u) return e = e.replace(/^\s\s*/, a), typeof t === c ? e : e.substring(0, w);
|
|
1235
1229
|
}, X = function(e, t) {
|
|
1236
1230
|
for (var n = 0, i, a, o, c, u, d; n < t.length && !u;) {
|
|
@@ -1238,12 +1232,12 @@ function Rr() {
|
|
|
1238
1232
|
for (i = a = 0; i < f.length && !u && f[i];) if (u = f[i++].exec(e), u) for (o = 0; o < p.length; o++) d = u[++a], c = p[o], typeof c === l && c.length > 0 ? c.length === 2 ? typeof c[1] == s ? this[c[0]] = c[1].call(this, d) : this[c[0]] = c[1] : c.length === 3 ? typeof c[1] === s && !(c[1].exec && c[1].test) ? this[c[0]] = d ? c[1].call(this, d, c[2]) : r : this[c[0]] = d ? d.replace(c[1], c[2]) : r : c.length === 4 && (this[c[0]] = d ? c[3].call(this, d.replace(c[1], c[2])) : r) : this[c] = d || r;
|
|
1239
1233
|
n += 2;
|
|
1240
1234
|
}
|
|
1241
|
-
},
|
|
1235
|
+
}, vn = function(e, t) {
|
|
1242
1236
|
for (var n in t) if (typeof t[n] === l && t[n].length > 0) {
|
|
1243
|
-
for (var i = 0; i < t[n].length; i++) if (
|
|
1244
|
-
} else if (
|
|
1237
|
+
for (var i = 0; i < t[n].length; i++) if (G(t[n][i], e)) return n === o ? r : n;
|
|
1238
|
+
} else if (G(t[n], e)) return n === o ? r : n;
|
|
1245
1239
|
return e;
|
|
1246
|
-
},
|
|
1240
|
+
}, yn = {
|
|
1247
1241
|
"1.0": "/8",
|
|
1248
1242
|
1.2: "/1",
|
|
1249
1243
|
1.3: "/3",
|
|
@@ -1252,7 +1246,7 @@ function Rr() {
|
|
|
1252
1246
|
"2.0.3": "/417",
|
|
1253
1247
|
"2.0.4": "/419",
|
|
1254
1248
|
"?": "/"
|
|
1255
|
-
},
|
|
1249
|
+
}, bn = {
|
|
1256
1250
|
ME: "4.90",
|
|
1257
1251
|
"NT 3.11": "NT3.51",
|
|
1258
1252
|
"NT 4.0": "NT4.0",
|
|
@@ -1264,7 +1258,7 @@ function Rr() {
|
|
|
1264
1258
|
8.1: "NT 6.3",
|
|
1265
1259
|
10: ["NT 6.4", "NT 10.0"],
|
|
1266
1260
|
RT: "ARM"
|
|
1267
|
-
},
|
|
1261
|
+
}, xn = {
|
|
1268
1262
|
browser: [
|
|
1269
1263
|
[/\b(?:crmo|crios)\/([\w\.]+)/i],
|
|
1270
1264
|
[g, [p, "Chrome"]],
|
|
@@ -1277,9 +1271,9 @@ function Rr() {
|
|
|
1277
1271
|
],
|
|
1278
1272
|
[p, g],
|
|
1279
1273
|
[/opios[\/ ]+([\w\.]+)/i],
|
|
1280
|
-
[g, [p,
|
|
1274
|
+
[g, [p, I + " Mini"]],
|
|
1281
1275
|
[/\bopr\/([\w\.]+)/i],
|
|
1282
|
-
[g, [p,
|
|
1276
|
+
[g, [p, I]],
|
|
1283
1277
|
[
|
|
1284
1278
|
/(kindle)\/([\w\.]+)/i,
|
|
1285
1279
|
/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,
|
|
@@ -1292,7 +1286,7 @@ function Rr() {
|
|
|
1292
1286
|
],
|
|
1293
1287
|
[p, g],
|
|
1294
1288
|
[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],
|
|
1295
|
-
[g, [p, "UC" +
|
|
1289
|
+
[g, [p, "UC" + O]],
|
|
1296
1290
|
[/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i],
|
|
1297
1291
|
[g, [p, "WeChat(Win) Desktop"]],
|
|
1298
1292
|
[/micromessenger\/([\w\.]+)/i],
|
|
@@ -1307,29 +1301,29 @@ function Rr() {
|
|
|
1307
1301
|
[[
|
|
1308
1302
|
p,
|
|
1309
1303
|
/(.+)/,
|
|
1310
|
-
"$1 Secure " +
|
|
1304
|
+
"$1 Secure " + O
|
|
1311
1305
|
], g],
|
|
1312
1306
|
[/\bfocus\/([\w\.]+)/i],
|
|
1313
|
-
[g, [p,
|
|
1307
|
+
[g, [p, A + " Focus"]],
|
|
1314
1308
|
[/\bopt\/([\w\.]+)/i],
|
|
1315
|
-
[g, [p,
|
|
1309
|
+
[g, [p, I + " Touch"]],
|
|
1316
1310
|
[/coc_coc\w+\/([\w\.]+)/i],
|
|
1317
1311
|
[g, [p, "Coc Coc"]],
|
|
1318
1312
|
[/dolfin\/([\w\.]+)/i],
|
|
1319
1313
|
[g, [p, "Dolphin"]],
|
|
1320
1314
|
[/coast\/([\w\.]+)/i],
|
|
1321
|
-
[g, [p,
|
|
1315
|
+
[g, [p, I + " Coast"]],
|
|
1322
1316
|
[/miuibrowser\/([\w\.]+)/i],
|
|
1323
|
-
[g, [p, "MIUI " +
|
|
1317
|
+
[g, [p, "MIUI " + O]],
|
|
1324
1318
|
[/fxios\/([-\w\.]+)/i],
|
|
1325
|
-
[g, [p,
|
|
1319
|
+
[g, [p, A]],
|
|
1326
1320
|
[/\bqihu|(qi?ho?o?|360)browser/i],
|
|
1327
|
-
[[p, "360 " +
|
|
1321
|
+
[[p, "360 " + O]],
|
|
1328
1322
|
[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],
|
|
1329
1323
|
[[
|
|
1330
1324
|
p,
|
|
1331
1325
|
/(.+)/,
|
|
1332
|
-
"$1 " +
|
|
1326
|
+
"$1 " + O
|
|
1333
1327
|
], g],
|
|
1334
1328
|
[/(comodo_dragon)\/([\w\.]+)/i],
|
|
1335
1329
|
[[
|
|
@@ -1350,7 +1344,7 @@ function Rr() {
|
|
|
1350
1344
|
],
|
|
1351
1345
|
[p],
|
|
1352
1346
|
[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],
|
|
1353
|
-
[[p,
|
|
1347
|
+
[[p, mn], g],
|
|
1354
1348
|
[
|
|
1355
1349
|
/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,
|
|
1356
1350
|
/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,
|
|
@@ -1364,11 +1358,11 @@ function Rr() {
|
|
|
1364
1358
|
[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],
|
|
1365
1359
|
[g, [p, "TikTok"]],
|
|
1366
1360
|
[/headlesschrome(?:\/([\w\.]+)| )/i],
|
|
1367
|
-
[g, [p,
|
|
1361
|
+
[g, [p, k + " Headless"]],
|
|
1368
1362
|
[/ wv\).+(chrome)\/([\w\.]+)/i],
|
|
1369
|
-
[[p,
|
|
1363
|
+
[[p, k + " WebView"], g],
|
|
1370
1364
|
[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],
|
|
1371
|
-
[g, [p, "Android " +
|
|
1365
|
+
[g, [p, "Android " + O]],
|
|
1372
1366
|
[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],
|
|
1373
1367
|
[p, g],
|
|
1374
1368
|
[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],
|
|
@@ -1378,15 +1372,15 @@ function Rr() {
|
|
|
1378
1372
|
[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],
|
|
1379
1373
|
[p, [
|
|
1380
1374
|
g,
|
|
1381
|
-
|
|
1382
|
-
|
|
1375
|
+
vn,
|
|
1376
|
+
yn
|
|
1383
1377
|
]],
|
|
1384
1378
|
[/(webkit|khtml)\/([\w\.]+)/i],
|
|
1385
1379
|
[p, g],
|
|
1386
1380
|
[/(navigator|netscape\d?)\/([-\w\.]+)/i],
|
|
1387
1381
|
[[p, "Netscape"], g],
|
|
1388
1382
|
[/mobile vr; rv:([\w\.]+)\).+firefox/i],
|
|
1389
|
-
[g, [p,
|
|
1383
|
+
[g, [p, A + " Reality"]],
|
|
1390
1384
|
[
|
|
1391
1385
|
/ekiohf.+(flow)\/([\w\.]+)/i,
|
|
1392
1386
|
/(swiftfox)/i,
|
|
@@ -1410,7 +1404,7 @@ function Rr() {
|
|
|
1410
1404
|
[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],
|
|
1411
1405
|
[[_, "amd64"]],
|
|
1412
1406
|
[/(ia32(?=;))/i],
|
|
1413
|
-
[[_,
|
|
1407
|
+
[[_, q]],
|
|
1414
1408
|
[/((?:i[346]|x)86)[;\)]/i],
|
|
1415
1409
|
[[_, "ia32"]],
|
|
1416
1410
|
[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],
|
|
@@ -1424,18 +1418,18 @@ function Rr() {
|
|
|
1424
1418
|
_,
|
|
1425
1419
|
/ower/,
|
|
1426
1420
|
a,
|
|
1427
|
-
|
|
1421
|
+
q
|
|
1428
1422
|
]],
|
|
1429
1423
|
[/(sun4\w)[;\)]/i],
|
|
1430
1424
|
[[_, "sparc"]],
|
|
1431
1425
|
[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],
|
|
1432
|
-
[[_,
|
|
1426
|
+
[[_, q]]
|
|
1433
1427
|
],
|
|
1434
1428
|
device: [
|
|
1435
1429
|
[/\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],
|
|
1436
1430
|
[
|
|
1437
1431
|
f,
|
|
1438
|
-
[h,
|
|
1432
|
+
[h, R],
|
|
1439
1433
|
[m, b]
|
|
1440
1434
|
],
|
|
1441
1435
|
[
|
|
@@ -1445,7 +1439,7 @@ function Rr() {
|
|
|
1445
1439
|
],
|
|
1446
1440
|
[
|
|
1447
1441
|
f,
|
|
1448
|
-
[h,
|
|
1442
|
+
[h, R],
|
|
1449
1443
|
[m, y]
|
|
1450
1444
|
],
|
|
1451
1445
|
[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],
|
|
@@ -1469,19 +1463,19 @@ function Rr() {
|
|
|
1469
1463
|
[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],
|
|
1470
1464
|
[
|
|
1471
1465
|
f,
|
|
1472
|
-
[h,
|
|
1466
|
+
[h, pn],
|
|
1473
1467
|
[m, y]
|
|
1474
1468
|
],
|
|
1475
1469
|
[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],
|
|
1476
1470
|
[
|
|
1477
1471
|
f,
|
|
1478
|
-
[h,
|
|
1472
|
+
[h, N],
|
|
1479
1473
|
[m, b]
|
|
1480
1474
|
],
|
|
1481
1475
|
[/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],
|
|
1482
1476
|
[
|
|
1483
1477
|
f,
|
|
1484
|
-
[h,
|
|
1478
|
+
[h, N],
|
|
1485
1479
|
[m, y]
|
|
1486
1480
|
],
|
|
1487
1481
|
[
|
|
@@ -1497,7 +1491,7 @@ function Rr() {
|
|
|
1497
1491
|
/_/g,
|
|
1498
1492
|
" "
|
|
1499
1493
|
],
|
|
1500
|
-
[h,
|
|
1494
|
+
[h, B],
|
|
1501
1495
|
[m, y]
|
|
1502
1496
|
],
|
|
1503
1497
|
[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],
|
|
@@ -1507,7 +1501,7 @@ function Rr() {
|
|
|
1507
1501
|
/_/g,
|
|
1508
1502
|
" "
|
|
1509
1503
|
],
|
|
1510
|
-
[h,
|
|
1504
|
+
[h, B],
|
|
1511
1505
|
[m, b]
|
|
1512
1506
|
],
|
|
1513
1507
|
[/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],
|
|
@@ -1535,19 +1529,19 @@ function Rr() {
|
|
|
1535
1529
|
],
|
|
1536
1530
|
[
|
|
1537
1531
|
f,
|
|
1538
|
-
[h,
|
|
1532
|
+
[h, fn],
|
|
1539
1533
|
[m, y]
|
|
1540
1534
|
],
|
|
1541
1535
|
[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],
|
|
1542
1536
|
[
|
|
1543
1537
|
f,
|
|
1544
|
-
[h,
|
|
1538
|
+
[h, fn],
|
|
1545
1539
|
[m, b]
|
|
1546
1540
|
],
|
|
1547
1541
|
[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],
|
|
1548
1542
|
[
|
|
1549
1543
|
f,
|
|
1550
|
-
[h,
|
|
1544
|
+
[h, P],
|
|
1551
1545
|
[m, b]
|
|
1552
1546
|
],
|
|
1553
1547
|
[
|
|
@@ -1557,7 +1551,7 @@ function Rr() {
|
|
|
1557
1551
|
],
|
|
1558
1552
|
[
|
|
1559
1553
|
f,
|
|
1560
|
-
[h,
|
|
1554
|
+
[h, P],
|
|
1561
1555
|
[m, y]
|
|
1562
1556
|
],
|
|
1563
1557
|
[/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],
|
|
@@ -1579,25 +1573,25 @@ function Rr() {
|
|
|
1579
1573
|
[/(pixel c)\b/i],
|
|
1580
1574
|
[
|
|
1581
1575
|
f,
|
|
1582
|
-
[h,
|
|
1576
|
+
[h, j],
|
|
1583
1577
|
[m, b]
|
|
1584
1578
|
],
|
|
1585
1579
|
[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],
|
|
1586
1580
|
[
|
|
1587
1581
|
f,
|
|
1588
|
-
[h,
|
|
1582
|
+
[h, j],
|
|
1589
1583
|
[m, y]
|
|
1590
1584
|
],
|
|
1591
1585
|
[/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],
|
|
1592
1586
|
[
|
|
1593
1587
|
f,
|
|
1594
|
-
[h,
|
|
1588
|
+
[h, z],
|
|
1595
1589
|
[m, y]
|
|
1596
1590
|
],
|
|
1597
1591
|
[/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i],
|
|
1598
1592
|
[
|
|
1599
1593
|
[f, "Xperia Tablet"],
|
|
1600
|
-
[h,
|
|
1594
|
+
[h, z],
|
|
1601
1595
|
[m, b]
|
|
1602
1596
|
],
|
|
1603
1597
|
[/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],
|
|
@@ -1635,19 +1629,19 @@ function Rr() {
|
|
|
1635
1629
|
[/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i],
|
|
1636
1630
|
[
|
|
1637
1631
|
f,
|
|
1638
|
-
[h,
|
|
1632
|
+
[h, D],
|
|
1639
1633
|
[m, y]
|
|
1640
1634
|
],
|
|
1641
1635
|
[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],
|
|
1642
1636
|
[
|
|
1643
1637
|
f,
|
|
1644
|
-
[h,
|
|
1638
|
+
[h, un],
|
|
1645
1639
|
[m, b]
|
|
1646
1640
|
],
|
|
1647
1641
|
[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],
|
|
1648
1642
|
[
|
|
1649
1643
|
f,
|
|
1650
|
-
[h,
|
|
1644
|
+
[h, un],
|
|
1651
1645
|
[m, y]
|
|
1652
1646
|
],
|
|
1653
1647
|
[/(nexus 9)/i],
|
|
@@ -1716,7 +1710,7 @@ function Rr() {
|
|
|
1716
1710
|
[/(surface duo)/i],
|
|
1717
1711
|
[
|
|
1718
1712
|
f,
|
|
1719
|
-
[h,
|
|
1713
|
+
[h, F],
|
|
1720
1714
|
[m, b]
|
|
1721
1715
|
],
|
|
1722
1716
|
[/droid [\d\.]+; (fp\du?)(?: b|\))/i],
|
|
@@ -1870,19 +1864,19 @@ function Rr() {
|
|
|
1870
1864
|
/\./g,
|
|
1871
1865
|
" "
|
|
1872
1866
|
],
|
|
1873
|
-
[h,
|
|
1867
|
+
[h, F],
|
|
1874
1868
|
[m, y]
|
|
1875
1869
|
],
|
|
1876
1870
|
[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],
|
|
1877
1871
|
[
|
|
1878
1872
|
f,
|
|
1879
|
-
[h,
|
|
1873
|
+
[h, V],
|
|
1880
1874
|
[m, b]
|
|
1881
1875
|
],
|
|
1882
1876
|
[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],
|
|
1883
1877
|
[
|
|
1884
1878
|
f,
|
|
1885
|
-
[h,
|
|
1879
|
+
[h, V],
|
|
1886
1880
|
[m, y]
|
|
1887
1881
|
],
|
|
1888
1882
|
[/smart-tv.+(samsung)/i],
|
|
@@ -1894,11 +1888,11 @@ function Rr() {
|
|
|
1894
1888
|
/^/,
|
|
1895
1889
|
"SmartTV"
|
|
1896
1890
|
],
|
|
1897
|
-
[h,
|
|
1891
|
+
[h, R],
|
|
1898
1892
|
[m, x]
|
|
1899
1893
|
],
|
|
1900
1894
|
[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],
|
|
1901
|
-
[[h,
|
|
1895
|
+
[[h, P], [m, x]],
|
|
1902
1896
|
[/(apple) ?tv/i],
|
|
1903
1897
|
[
|
|
1904
1898
|
h,
|
|
@@ -1907,8 +1901,8 @@ function Rr() {
|
|
|
1907
1901
|
],
|
|
1908
1902
|
[/crkey/i],
|
|
1909
1903
|
[
|
|
1910
|
-
[f,
|
|
1911
|
-
[h,
|
|
1904
|
+
[f, k + "cast"],
|
|
1905
|
+
[h, j],
|
|
1912
1906
|
[m, x]
|
|
1913
1907
|
],
|
|
1914
1908
|
[/droid.+aft(\w)( bui|\))/i],
|
|
@@ -1920,19 +1914,19 @@ function Rr() {
|
|
|
1920
1914
|
[/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i],
|
|
1921
1915
|
[
|
|
1922
1916
|
f,
|
|
1923
|
-
[h,
|
|
1917
|
+
[h, pn],
|
|
1924
1918
|
[m, x]
|
|
1925
1919
|
],
|
|
1926
1920
|
[/(bravia[\w ]+)( bui|\))/i],
|
|
1927
1921
|
[
|
|
1928
1922
|
f,
|
|
1929
|
-
[h,
|
|
1923
|
+
[h, z],
|
|
1930
1924
|
[m, x]
|
|
1931
1925
|
],
|
|
1932
1926
|
[/(mitv-\w{5}) bui/i],
|
|
1933
1927
|
[
|
|
1934
1928
|
f,
|
|
1935
|
-
[h,
|
|
1929
|
+
[h, B],
|
|
1936
1930
|
[m, x]
|
|
1937
1931
|
],
|
|
1938
1932
|
[/Hbbtv.*(technisat) (.*);/i],
|
|
@@ -1943,8 +1937,8 @@ function Rr() {
|
|
|
1943
1937
|
],
|
|
1944
1938
|
[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],
|
|
1945
1939
|
[
|
|
1946
|
-
[h,
|
|
1947
|
-
[f,
|
|
1940
|
+
[h, J],
|
|
1941
|
+
[f, J],
|
|
1948
1942
|
[m, x]
|
|
1949
1943
|
],
|
|
1950
1944
|
[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],
|
|
@@ -1964,13 +1958,13 @@ function Rr() {
|
|
|
1964
1958
|
[/(playstation [345portablevi]+)/i],
|
|
1965
1959
|
[
|
|
1966
1960
|
f,
|
|
1967
|
-
[h,
|
|
1961
|
+
[h, z],
|
|
1968
1962
|
[m, v]
|
|
1969
1963
|
],
|
|
1970
1964
|
[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],
|
|
1971
1965
|
[
|
|
1972
1966
|
f,
|
|
1973
|
-
[h,
|
|
1967
|
+
[h, F],
|
|
1974
1968
|
[m, v]
|
|
1975
1969
|
],
|
|
1976
1970
|
[/((pebble))app/i],
|
|
@@ -1988,19 +1982,19 @@ function Rr() {
|
|
|
1988
1982
|
[/droid.+; (glass) \d/i],
|
|
1989
1983
|
[
|
|
1990
1984
|
f,
|
|
1991
|
-
[h,
|
|
1985
|
+
[h, j],
|
|
1992
1986
|
[m, S]
|
|
1993
1987
|
],
|
|
1994
1988
|
[/droid.+; (wt63?0{2,3})\)/i],
|
|
1995
1989
|
[
|
|
1996
1990
|
f,
|
|
1997
|
-
[h,
|
|
1991
|
+
[h, V],
|
|
1998
1992
|
[m, S]
|
|
1999
1993
|
],
|
|
2000
1994
|
[/(quest( 2| pro)?)/i],
|
|
2001
1995
|
[
|
|
2002
1996
|
f,
|
|
2003
|
-
[h,
|
|
1997
|
+
[h, mn],
|
|
2004
1998
|
[m, S]
|
|
2005
1999
|
],
|
|
2006
2000
|
[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],
|
|
@@ -2024,7 +2018,7 @@ function Rr() {
|
|
|
2024
2018
|
],
|
|
2025
2019
|
engine: [
|
|
2026
2020
|
[/windows.+ edge\/([\w\.]+)/i],
|
|
2027
|
-
[g, [p,
|
|
2021
|
+
[g, [p, dn + "HTML"]],
|
|
2028
2022
|
[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],
|
|
2029
2023
|
[g, [p, "Blink"]],
|
|
2030
2024
|
[
|
|
@@ -2049,14 +2043,14 @@ function Rr() {
|
|
|
2049
2043
|
],
|
|
2050
2044
|
[p, [
|
|
2051
2045
|
g,
|
|
2052
|
-
|
|
2053
|
-
|
|
2046
|
+
vn,
|
|
2047
|
+
bn
|
|
2054
2048
|
]],
|
|
2055
2049
|
[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],
|
|
2056
2050
|
[[p, "Windows"], [
|
|
2057
2051
|
g,
|
|
2058
|
-
|
|
2059
|
-
|
|
2052
|
+
vn,
|
|
2053
|
+
bn
|
|
2060
2054
|
]],
|
|
2061
2055
|
[
|
|
2062
2056
|
/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,
|
|
@@ -2069,7 +2063,7 @@ function Rr() {
|
|
|
2069
2063
|
"."
|
|
2070
2064
|
], [p, "iOS"]],
|
|
2071
2065
|
[/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i],
|
|
2072
|
-
[[p,
|
|
2066
|
+
[[p, gn], [
|
|
2073
2067
|
g,
|
|
2074
2068
|
/_/g,
|
|
2075
2069
|
"."
|
|
@@ -2084,19 +2078,19 @@ function Rr() {
|
|
|
2084
2078
|
],
|
|
2085
2079
|
[p, g],
|
|
2086
2080
|
[/\(bb(10);/i],
|
|
2087
|
-
[g, [p,
|
|
2081
|
+
[g, [p, D]],
|
|
2088
2082
|
[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],
|
|
2089
2083
|
[g, [p, "Symbian"]],
|
|
2090
2084
|
[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],
|
|
2091
|
-
[g, [p,
|
|
2085
|
+
[g, [p, A + " OS"]],
|
|
2092
2086
|
[/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],
|
|
2093
2087
|
[g, [p, "webOS"]],
|
|
2094
2088
|
[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],
|
|
2095
2089
|
[g, [p, "watchOS"]],
|
|
2096
2090
|
[/crkey\/([\d\.]+)/i],
|
|
2097
|
-
[g, [p,
|
|
2091
|
+
[g, [p, k + "cast"]],
|
|
2098
2092
|
[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],
|
|
2099
|
-
[[p,
|
|
2093
|
+
[[p, hn], g],
|
|
2100
2094
|
[
|
|
2101
2095
|
/panasonic;(viera)/i,
|
|
2102
2096
|
/(netrange)mmh/i,
|
|
@@ -2125,10 +2119,10 @@ function Rr() {
|
|
|
2125
2119
|
]
|
|
2126
2120
|
}, Z = function(e, t) {
|
|
2127
2121
|
if (typeof e === l && (t = e, e = r), !(this instanceof Z)) return new Z(e, t).getResult();
|
|
2128
|
-
var i = typeof n !== c && n.navigator ? n.navigator : r, o = e || (i && i.userAgent ? i.userAgent : a), v = i && i.userAgentData ? i.userAgentData : r, x = t ?
|
|
2122
|
+
var i = typeof n !== c && n.navigator ? n.navigator : r, o = e || (i && i.userAgent ? i.userAgent : a), v = i && i.userAgentData ? i.userAgentData : r, x = t ? H(xn, t) : xn, S = i && i.userAgent == o;
|
|
2129
2123
|
return this.getBrowser = function() {
|
|
2130
2124
|
var e = {};
|
|
2131
|
-
return e[p] = r, e[g] = r, X.call(e, o, x.browser), e[d] =
|
|
2125
|
+
return e[p] = r, e[g] = r, X.call(e, o, x.browser), e[d] = _n(e[g]), S && i && i.brave && typeof i.brave.isBrave == s && (e[p] = "Brave"), e;
|
|
2132
2126
|
}, this.getCPU = function() {
|
|
2133
2127
|
var e = {};
|
|
2134
2128
|
return e[_] = r, X.call(e, o, x.cpu), e;
|
|
@@ -2140,7 +2134,7 @@ function Rr() {
|
|
|
2140
2134
|
return e[p] = r, e[g] = r, X.call(e, o, x.engine), e;
|
|
2141
2135
|
}, this.getOS = function() {
|
|
2142
2136
|
var e = {};
|
|
2143
|
-
return e[p] = r, e[g] = r, X.call(e, o, x.os), S && !e[p] && v && v.platform != "Unknown" && (e[p] = v.platform.replace(/chrome os/i,
|
|
2137
|
+
return e[p] = r, e[g] = r, X.call(e, o, x.os), S && !e[p] && v && v.platform != "Unknown" && (e[p] = v.platform.replace(/chrome os/i, hn).replace(/macos/i, gn)), e;
|
|
2144
2138
|
}, this.getResult = function() {
|
|
2145
2139
|
return {
|
|
2146
2140
|
ua: this.getUA(),
|
|
@@ -2153,14 +2147,14 @@ function Rr() {
|
|
|
2153
2147
|
}, this.getUA = function() {
|
|
2154
2148
|
return o;
|
|
2155
2149
|
}, this.setUA = function(e) {
|
|
2156
|
-
return o = typeof e === u && e.length > w ?
|
|
2150
|
+
return o = typeof e === u && e.length > w ? J(e, w) : e, this;
|
|
2157
2151
|
}, this.setUA(o), this;
|
|
2158
2152
|
};
|
|
2159
|
-
Z.VERSION = i, Z.BROWSER =
|
|
2153
|
+
Z.VERSION = i, Z.BROWSER = W([
|
|
2160
2154
|
p,
|
|
2161
2155
|
g,
|
|
2162
2156
|
d
|
|
2163
|
-
]), Z.CPU =
|
|
2157
|
+
]), Z.CPU = W([_]), Z.DEVICE = W([
|
|
2164
2158
|
f,
|
|
2165
2159
|
h,
|
|
2166
2160
|
m,
|
|
@@ -2170,7 +2164,7 @@ function Rr() {
|
|
|
2170
2164
|
b,
|
|
2171
2165
|
S,
|
|
2172
2166
|
C
|
|
2173
|
-
]), Z.ENGINE = Z.OS =
|
|
2167
|
+
]), Z.ENGINE = Z.OS = W([p, g]), typeof t === c ? typeof n !== c && (n.UAParser = Z) : (e.exports && (t = e.exports = Z), t.UAParser = Z);
|
|
2174
2168
|
var Q = typeof n !== c && (n.jQuery || n.Zepto);
|
|
2175
2169
|
if (Q && !Q.ua) {
|
|
2176
2170
|
var $ = new Z();
|
|
@@ -2195,12 +2189,12 @@ function Rr() {
|
|
|
2195
2189
|
}
|
|
2196
2190
|
return a.exports;
|
|
2197
2191
|
}
|
|
2198
|
-
typeof n < "u" && (n.ab = {}.dirname + "/"),
|
|
2199
|
-
})()),
|
|
2192
|
+
typeof n < "u" && (n.ab = {}.dirname + "/"), Ke.exports = n(226);
|
|
2193
|
+
})()), Ke.exports;
|
|
2200
2194
|
}
|
|
2201
|
-
var
|
|
2202
|
-
function
|
|
2203
|
-
return
|
|
2195
|
+
var Nt;
|
|
2196
|
+
function Ct() {
|
|
2197
|
+
return Nt || (Nt = 1, (function(e) {
|
|
2204
2198
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2205
2199
|
function t(e, t) {
|
|
2206
2200
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -2219,7 +2213,7 @@ function Ut() {
|
|
|
2219
2213
|
return a;
|
|
2220
2214
|
}
|
|
2221
2215
|
});
|
|
2222
|
-
let n = /* @__PURE__ */ r(
|
|
2216
|
+
let n = /* @__PURE__ */ r(wr());
|
|
2223
2217
|
function r(e) {
|
|
2224
2218
|
return e && e.__esModule ? e : { default: e };
|
|
2225
2219
|
}
|
|
@@ -2235,11 +2229,11 @@ function Ut() {
|
|
|
2235
2229
|
function o({ headers: e }) {
|
|
2236
2230
|
return a(e.get("user-agent") || void 0);
|
|
2237
2231
|
}
|
|
2238
|
-
})(
|
|
2232
|
+
})(Ve)), Ve;
|
|
2239
2233
|
}
|
|
2240
|
-
var
|
|
2241
|
-
function
|
|
2242
|
-
return
|
|
2234
|
+
var Ye = {}, Lt;
|
|
2235
|
+
function Er() {
|
|
2236
|
+
return Lt || (Lt = 1, (function(e) {
|
|
2243
2237
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "URLPattern", {
|
|
2244
2238
|
enumerable: !0,
|
|
2245
2239
|
get: function() {
|
|
@@ -2247,39 +2241,39 @@ function Pr() {
|
|
|
2247
2241
|
}
|
|
2248
2242
|
});
|
|
2249
2243
|
let t = typeof URLPattern > "u" ? void 0 : URLPattern;
|
|
2250
|
-
})(
|
|
2244
|
+
})(Ye)), Ye;
|
|
2251
2245
|
}
|
|
2252
|
-
var
|
|
2253
|
-
function
|
|
2254
|
-
return
|
|
2246
|
+
var kt;
|
|
2247
|
+
function vr() {
|
|
2248
|
+
return kt || (kt = 1, (function(e, t) {
|
|
2255
2249
|
let n = {
|
|
2256
|
-
NextRequest:
|
|
2257
|
-
NextResponse:
|
|
2258
|
-
ImageResponse:
|
|
2259
|
-
userAgentFromString:
|
|
2260
|
-
userAgent:
|
|
2261
|
-
URLPattern:
|
|
2250
|
+
NextRequest: mr().NextRequest,
|
|
2251
|
+
NextResponse: br().NextResponse,
|
|
2252
|
+
ImageResponse: gr().ImageResponse,
|
|
2253
|
+
userAgentFromString: Ct().userAgentFromString,
|
|
2254
|
+
userAgent: Ct().userAgent,
|
|
2255
|
+
URLPattern: Er().URLPattern
|
|
2262
2256
|
};
|
|
2263
2257
|
e.exports = n, t.NextRequest = n.NextRequest, t.NextResponse = n.NextResponse, t.ImageResponse = n.ImageResponse, t.userAgentFromString = n.userAgentFromString, t.userAgent = n.userAgent, t.URLPattern = n.URLPattern;
|
|
2264
|
-
})(
|
|
2258
|
+
})(we, we.exports)), we.exports;
|
|
2265
2259
|
}
|
|
2266
|
-
|
|
2267
|
-
var
|
|
2260
|
+
vr();
|
|
2261
|
+
var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "logout", e))(Qe || {}), Je = {
|
|
2268
2262
|
login: "login",
|
|
2269
2263
|
logout: "logout",
|
|
2270
2264
|
unknown: ""
|
|
2271
|
-
},
|
|
2265
|
+
}, Y = "Content-Type", M = {
|
|
2272
2266
|
applicationJson: "application/json",
|
|
2273
2267
|
multipartFormData: "multipart/form-data",
|
|
2274
2268
|
applicationXwwwFormUrlencoded: "application/x-www-form-urlencoded"
|
|
2275
|
-
},
|
|
2269
|
+
}, Xr = class {
|
|
2276
2270
|
config;
|
|
2277
2271
|
http;
|
|
2278
2272
|
adapter;
|
|
2279
2273
|
constructor({ config: e, adapter: t, storage: n }) {
|
|
2280
2274
|
this.config = e;
|
|
2281
|
-
let r =
|
|
2282
|
-
(!r.deviceId || r.deviceId.trim().length === 0) && (r =
|
|
2275
|
+
let r = Sr(n.headers);
|
|
2276
|
+
(!r.deviceId || r.deviceId.trim().length === 0) && (r = Ir(n.cookies)), this.http = new Nr({
|
|
2283
2277
|
...r,
|
|
2284
2278
|
userType: e.userType,
|
|
2285
2279
|
helloURL: e.helloURL
|
|
@@ -2302,14 +2296,16 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2302
2296
|
}[n], i = e.cookies;
|
|
2303
2297
|
if (this.http.setHttpOptsToCookies(i), !r || r.length === 0) return this.createErrorResponse(404, "API not found", i);
|
|
2304
2298
|
let a;
|
|
2305
|
-
if ((r.startsWith("admin/") || r.startsWith("api/")) && (a =
|
|
2299
|
+
if ((r.startsWith("admin/") || r.startsWith("api/")) && (a = Ar(i), L.debug(a, "token"), !a || a.username.length === 0 || a.token.length === 0)) return this.createErrorResponse(409, "Authentication required", i);
|
|
2306
2300
|
L.debug({ "content-type": e.contentType }, "Content-Type"), L.debug({
|
|
2307
2301
|
hostUrl: r,
|
|
2308
2302
|
token: a ? { ...a } : ""
|
|
2309
2303
|
}, "processRequest");
|
|
2310
2304
|
let s = e.method;
|
|
2311
2305
|
if (s === "GET") {
|
|
2312
|
-
let n =
|
|
2306
|
+
let n = { ...t };
|
|
2307
|
+
n.delete("m");
|
|
2308
|
+
let i = await this.http.get({
|
|
2313
2309
|
url: r,
|
|
2314
2310
|
data: n,
|
|
2315
2311
|
token: a
|
|
@@ -2350,7 +2346,7 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2350
2346
|
}
|
|
2351
2347
|
createResponse({ url: e, result: t, config: n, req: r }) {
|
|
2352
2348
|
let i = {};
|
|
2353
|
-
i[
|
|
2349
|
+
i[Y] = M.applicationJson;
|
|
2354
2350
|
let a = {
|
|
2355
2351
|
status: t.success ? 200 : t.code,
|
|
2356
2352
|
headers: i,
|
|
@@ -2360,12 +2356,12 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2360
2356
|
};
|
|
2361
2357
|
if (t.success) {
|
|
2362
2358
|
switch (e) {
|
|
2363
|
-
case Je[
|
|
2359
|
+
case Je[Qe[0]]:
|
|
2364
2360
|
let e = t.data;
|
|
2365
|
-
|
|
2361
|
+
Or(e, a);
|
|
2366
2362
|
break;
|
|
2367
|
-
case Je[
|
|
2368
|
-
a.cleanCookies = (e) =>
|
|
2363
|
+
case Je[Qe[1]]:
|
|
2364
|
+
a.cleanCookies = (e) => xr(e);
|
|
2369
2365
|
break;
|
|
2370
2366
|
}
|
|
2371
2367
|
n.onHandlerSuccess && n.onHandlerSuccess({
|
|
@@ -2379,7 +2375,7 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2379
2375
|
}
|
|
2380
2376
|
createErrorResponse(e, t, n) {
|
|
2381
2377
|
let r = {};
|
|
2382
|
-
return r[
|
|
2378
|
+
return r[Y] = M.applicationJson, {
|
|
2383
2379
|
status: e,
|
|
2384
2380
|
headers: r,
|
|
2385
2381
|
cookies: n ? this.setCookies(n) : {},
|
|
@@ -2396,34 +2392,37 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2396
2392
|
t[e] = { value: n };
|
|
2397
2393
|
}), t;
|
|
2398
2394
|
}
|
|
2399
|
-
},
|
|
2395
|
+
}, Pr = "zh-CN", U = {
|
|
2400
2396
|
IBOOT_DEVICE_ID: "dvid",
|
|
2401
2397
|
IBOOT_LANG: "lang",
|
|
2402
2398
|
IBOOT_WEBSITE_ID: "wid",
|
|
2403
2399
|
IBOOT_WEBSITE_NO: "wno",
|
|
2404
2400
|
IBOOT_TOKEN: "token",
|
|
2405
2401
|
IBOOT_USER: "user"
|
|
2406
|
-
},
|
|
2402
|
+
}, K = {
|
|
2407
2403
|
DEVICE_ID: "Device-Id",
|
|
2408
2404
|
LANG: "Lang",
|
|
2409
2405
|
WEBSITE_ID: "Website-Id",
|
|
2410
2406
|
WEBSITE_NO: "Website-No"
|
|
2411
|
-
},
|
|
2407
|
+
}, Sr = (e) => {
|
|
2412
2408
|
if (e.get) {
|
|
2413
|
-
let t = e.get(
|
|
2409
|
+
let t = e.get(K.DEVICE_ID), n = e.get(K.LANG), r = e.get(K.WEBSITE_ID), i = e.get(K.WEBSITE_NO), a = {};
|
|
2414
2410
|
return t && t.length > 0 && (a.deviceId = t), n && n.length > 0 && (a.lang = n), r && r.length > 0 && (a.websiteId = r), i && i.length > 0 && (a.websiteNo = i), a;
|
|
2415
2411
|
}
|
|
2416
2412
|
throw Error("The get method of IStorage has not been implemented.");
|
|
2417
|
-
},
|
|
2418
|
-
if (e.set) t.deviceId && e.set(
|
|
2413
|
+
}, Yr = (e, t) => {
|
|
2414
|
+
if (e.set) t.deviceId && e.set(K.DEVICE_ID, t.deviceId), t.lang && e.set(K.LANG, t.lang), t.websiteId && e.set(K.WEBSITE_ID, t.websiteId), t.websiteNo && e.set(K.WEBSITE_NO, t.websiteNo);
|
|
2419
2415
|
else throw Error("The set method of IStorage has not been implemented.");
|
|
2420
|
-
},
|
|
2416
|
+
}, Ir = (e) => {
|
|
2421
2417
|
if (e.get) {
|
|
2422
2418
|
let t = e.get(U.IBOOT_DEVICE_ID), n = e.get(U.IBOOT_LANG), r = e.get(U.IBOOT_WEBSITE_ID), i = e.get(U.IBOOT_WEBSITE_NO), a = {};
|
|
2423
2419
|
return t && t.length > 0 && (a.deviceId = t), n && n.length > 0 && (a.lang = n), r && r.length > 0 && (a.websiteId = r), i && i.length > 0 && (a.websiteNo = i), a;
|
|
2424
2420
|
}
|
|
2425
2421
|
throw Error("The get method of ICookies has not been implemented.");
|
|
2426
|
-
},
|
|
2422
|
+
}, Jr = (e, t) => {
|
|
2423
|
+
if (e.set) t.deviceId && e.set(U.IBOOT_DEVICE_ID, t.deviceId), t.lang && e.set(U.IBOOT_LANG, t.lang), t.websiteId && e.set(U.IBOOT_WEBSITE_ID, t.websiteId), t.websiteNo && e.set(U.IBOOT_WEBSITE_NO, t.websiteNo);
|
|
2424
|
+
else throw Error("The set method of ICookies has not been implemented.");
|
|
2425
|
+
}, Ar = (e) => {
|
|
2427
2426
|
if (e.get) {
|
|
2428
2427
|
let t = e[U.IBOOT_USER];
|
|
2429
2428
|
if (t && t.length > 0) {
|
|
@@ -2435,16 +2434,16 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2435
2434
|
};
|
|
2436
2435
|
}
|
|
2437
2436
|
}
|
|
2438
|
-
},
|
|
2437
|
+
}, Dt = () => ({
|
|
2439
2438
|
path: "/",
|
|
2440
2439
|
secure: process.env.APP_ENV === "production",
|
|
2441
2440
|
httpOnly: !0,
|
|
2442
2441
|
sameSite: "strict"
|
|
2443
|
-
}),
|
|
2442
|
+
}), Ee = {
|
|
2444
2443
|
maxAge: -1,
|
|
2445
2444
|
httpOnly: !0,
|
|
2446
2445
|
path: "/"
|
|
2447
|
-
},
|
|
2446
|
+
}, Or = (e, t) => {
|
|
2448
2447
|
let { id: n, name: r, username: i, nickname: a, headImg: o, token: s, lastLoginTime: c, deviceId: l, userType: u, mustChangePwd: d } = e, f = {
|
|
2449
2448
|
id: n,
|
|
2450
2449
|
name: r,
|
|
@@ -2461,16 +2460,16 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2461
2460
|
};
|
|
2462
2461
|
t.cookies[U.IBOOT_TOKEN] = {
|
|
2463
2462
|
value: s,
|
|
2464
|
-
options:
|
|
2463
|
+
options: Dt()
|
|
2465
2464
|
}, t.cookies[U.IBOOT_USER] = {
|
|
2466
2465
|
value: JSON.stringify(f),
|
|
2467
|
-
options:
|
|
2466
|
+
options: Dt()
|
|
2468
2467
|
};
|
|
2469
|
-
},
|
|
2468
|
+
}, xr = (e) => {
|
|
2470
2469
|
if (!e.set) throw Error("cookies set function is undefined");
|
|
2471
|
-
if (e.set(U.IBOOT_TOKEN, "",
|
|
2472
|
-
e.delete(U.IBOOT_TOKEN,
|
|
2473
|
-
},
|
|
2470
|
+
if (e.set(U.IBOOT_TOKEN, "", Ee), e.set(U.IBOOT_USER, "", Ee), !e.delete) throw Error("cookies delete function is undefined");
|
|
2471
|
+
e.delete(U.IBOOT_TOKEN, Ee), e.delete(U.IBOOT_USER, Ee);
|
|
2472
|
+
}, Nr = class {
|
|
2474
2473
|
baseUrl;
|
|
2475
2474
|
helloMethod;
|
|
2476
2475
|
apiKey;
|
|
@@ -2482,7 +2481,7 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2482
2481
|
websiteId;
|
|
2483
2482
|
websiteNo;
|
|
2484
2483
|
constructor(e) {
|
|
2485
|
-
process.env.APP_ENV === "production" || L.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 ??
|
|
2484
|
+
process.env.APP_ENV === "production" || L.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 ?? tr.TYPE_MGT, this.deviceId = e.deviceId ?? at(10), this.lang = e.lang ?? Pr, this.websiteId = e.websiteId, this.websiteNo = e.websiteNo;
|
|
2486
2485
|
}
|
|
2487
2486
|
encrypt(e) {
|
|
2488
2487
|
let t = ne.enc.Utf8.parse(this.apiKey);
|
|
@@ -2495,66 +2494,30 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2495
2494
|
setHttpOptsToCookies = (e) => {
|
|
2496
2495
|
this.deviceId && this.deviceId.length > 0 && (e[U.IBOOT_DEVICE_ID] = this.deviceId), this.websiteId && this.websiteId.length > 0 && (e[U.IBOOT_WEBSITE_ID] = this.websiteId), this.websiteNo && this.websiteNo.length > 0 && (e[U.IBOOT_WEBSITE_NO] = this.websiteNo), this.lang && this.lang.length > 0 && (e[U.IBOOT_LANG] = this.lang);
|
|
2497
2496
|
};
|
|
2498
|
-
convertUrlParameter(e) {
|
|
2499
|
-
let t = [];
|
|
2500
|
-
for (let n in e) {
|
|
2501
|
-
let r = e[n];
|
|
2502
|
-
if (r && typeof r == "string") r = r.trim();
|
|
2503
|
-
else if (r && typeof r == "object") {
|
|
2504
|
-
if (ct(r)) {
|
|
2505
|
-
if (r.length === 0) continue;
|
|
2506
|
-
for (let e = 0; e < r.length; e++) {
|
|
2507
|
-
let i = r[e];
|
|
2508
|
-
for (let r in i) {
|
|
2509
|
-
let a = i[r] ?? void 0;
|
|
2510
|
-
if (a) {
|
|
2511
|
-
if (typeof a == "object") ct(a) && a.forEach((i, a) => {
|
|
2512
|
-
if (i) for (let o in i) {
|
|
2513
|
-
let s = i[o];
|
|
2514
|
-
if (s && s.toString().length > 0) {
|
|
2515
|
-
let i = `[${e.toString()}].${r + `[${a.toString()}].${o}`}=${we(s)}`;
|
|
2516
|
-
t.push(n + i);
|
|
2517
|
-
}
|
|
2518
|
-
}
|
|
2519
|
-
});
|
|
2520
|
-
else if (a.toString().length > 0) {
|
|
2521
|
-
let i = `[${e.toString()}].${r}=${we(a.toString())}`;
|
|
2522
|
-
t.push(n + i);
|
|
2523
|
-
}
|
|
2524
|
-
}
|
|
2525
|
-
}
|
|
2526
|
-
}
|
|
2527
|
-
} else for (let e in r) {
|
|
2528
|
-
let i = r[e];
|
|
2529
|
-
if (i != null && i != "" && i.length != 0) {
|
|
2530
|
-
let r = `.${e}=${we(i)}`;
|
|
2531
|
-
t.push(n + r);
|
|
2532
|
-
}
|
|
2533
|
-
}
|
|
2534
|
-
continue;
|
|
2535
|
-
} else r && typeof r == "function" && (r = null);
|
|
2536
|
-
r != null && r != "" && r.length != 0 && t.push(n + "=" + we(r));
|
|
2537
|
-
}
|
|
2538
|
-
return t && t.join("&");
|
|
2539
|
-
}
|
|
2540
2497
|
async sign(e) {
|
|
2541
2498
|
let t = "&key=" + await this.helloIboot(), r = [];
|
|
2542
|
-
for (let t
|
|
2543
|
-
r.sort((e, t) =>
|
|
2499
|
+
for (let t of e.keys()) r.push(t);
|
|
2500
|
+
r.sort((e, t) => {
|
|
2501
|
+
let n = e.match(/(\d+)/), r = t.match(/(\d+)/);
|
|
2502
|
+
return n && r && e.replace(/\d+/, "") === t.replace(/\d+/, "") ? parseInt(n[1]) - parseInt(r[1]) : e.toLowerCase().localeCompare(t.toLowerCase(), void 0, {
|
|
2503
|
+
numeric: !0,
|
|
2504
|
+
sensitivity: "base"
|
|
2505
|
+
});
|
|
2506
|
+
});
|
|
2544
2507
|
let i = [];
|
|
2545
2508
|
r.forEach((t) => {
|
|
2546
|
-
let n = e
|
|
2547
|
-
|
|
2509
|
+
let n = e.get(t);
|
|
2510
|
+
n && i.push(t + "=" + n);
|
|
2548
2511
|
});
|
|
2549
|
-
let a = i.join("&"), s =
|
|
2512
|
+
let a = i.join("&"), s = Kt.md5((a + t).toLocaleUpperCase()), c = {
|
|
2550
2513
|
params: a,
|
|
2551
2514
|
md5: s
|
|
2552
2515
|
};
|
|
2553
2516
|
return L.debug(c, "API_SIGN"), s;
|
|
2554
2517
|
}
|
|
2555
2518
|
assemblyParameter(e, t) {
|
|
2556
|
-
let n = e ??
|
|
2557
|
-
return n.timestamp
|
|
2519
|
+
let n = e ?? new URLSearchParams(), r = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2520
|
+
return n.set("timezone", r), n.set("timestamp", Date.now().toString()), n.set("echostr", at(10)), n.set("version", this.version), n.set("deviceId", this.deviceId), n.set("webid", this.websiteId ?? ""), n.set("apiKey", this.apiKey), t && t.length > 0 && n.set("username", t), new URLSearchParams([...n].filter(([, e]) => e !== ""));
|
|
2558
2521
|
}
|
|
2559
2522
|
async assemblyHeader({ urlParams: e, token: t }) {
|
|
2560
2523
|
let n = {
|
|
@@ -2564,9 +2527,7 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2564
2527
|
"User-From": this.userFrom,
|
|
2565
2528
|
"Api-Key": this.apiKey
|
|
2566
2529
|
};
|
|
2567
|
-
n[
|
|
2568
|
-
let r = tt(e);
|
|
2569
|
-
return n.Sign = await this.sign(r), n;
|
|
2530
|
+
return n[Y] = M.applicationXwwwFormUrlencoded, this.lang && this.lang.length > 0 && (n.Lang = this.lang), this.websiteId && this.websiteId.length > 0 && (n["Web-Id"] = this.websiteId), this.websiteNo && this.websiteNo.length > 0 && (n["Web-No"] = this.websiteNo), t && (t.token && t.token.length > 0 && t.username && t.username.length > 0 && (n.Authorization = t.token, n.Username = t.username), t.xcsrf && (n[t.xcsrf.csrfHeader] = t.xcsrf.csrfToken)), n.Sign = await this.sign(e), n;
|
|
2570
2531
|
}
|
|
2571
2532
|
async helloIboot() {
|
|
2572
2533
|
if (this.helloMethod.length <= 0) return this.apiKey;
|
|
@@ -2574,7 +2535,7 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2574
2535
|
"Res-Type": "json",
|
|
2575
2536
|
"Api-Key": this.apiKey
|
|
2576
2537
|
};
|
|
2577
|
-
t[
|
|
2538
|
+
t[Y] = M.applicationXwwwFormUrlencoded;
|
|
2578
2539
|
let n = {
|
|
2579
2540
|
url: e,
|
|
2580
2541
|
headers: t
|
|
@@ -2603,99 +2564,68 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2603
2564
|
}
|
|
2604
2565
|
}
|
|
2605
2566
|
async get({ url: e, data: t, token: n, cache: r = "default" }) {
|
|
2606
|
-
let i = this.assemblyParameter(t
|
|
2607
|
-
urlParams:
|
|
2567
|
+
let i = this.assemblyParameter(t ? new URLSearchParams(t) : void 0), a = await this.assemblyHeader({
|
|
2568
|
+
urlParams: i,
|
|
2608
2569
|
token: n
|
|
2609
|
-
}),
|
|
2610
|
-
url:
|
|
2611
|
-
headers:
|
|
2570
|
+
}), s = `${this.getApiUrl(e)}?${i.toString()}`, c = {
|
|
2571
|
+
url: s,
|
|
2572
|
+
headers: a
|
|
2612
2573
|
};
|
|
2613
|
-
L.info(
|
|
2614
|
-
let
|
|
2574
|
+
L.info(c, "GET");
|
|
2575
|
+
let l = await fetch(s, {
|
|
2615
2576
|
method: "GET",
|
|
2616
|
-
headers:
|
|
2577
|
+
headers: a,
|
|
2617
2578
|
credentials: "include",
|
|
2618
2579
|
cache: r
|
|
2619
2580
|
});
|
|
2620
|
-
if (
|
|
2621
|
-
let e = Object.fromEntries(
|
|
2622
|
-
...await
|
|
2581
|
+
if (l.ok) {
|
|
2582
|
+
let e = Object.fromEntries(l.headers.entries()), t = {
|
|
2583
|
+
...await l.json(),
|
|
2623
2584
|
headers: e
|
|
2624
2585
|
};
|
|
2625
2586
|
return L.debug(t, "GET_RESULT"), t;
|
|
2626
2587
|
}
|
|
2627
|
-
let
|
|
2628
|
-
code:
|
|
2588
|
+
let u = {
|
|
2589
|
+
code: l.status,
|
|
2629
2590
|
success: !1,
|
|
2630
|
-
msg:
|
|
2591
|
+
msg: l.statusText
|
|
2631
2592
|
};
|
|
2632
|
-
return L.error(
|
|
2593
|
+
return L.error(u), u;
|
|
2633
2594
|
}
|
|
2634
2595
|
async post({ url: e, data: t, token: n, cache: r = "default" }) {
|
|
2635
2596
|
let i = t ? { ...t } : {}, a = i.buffer ?? void 0, s = i.boundary ?? void 0;
|
|
2636
2597
|
a && delete i.buffer, s && delete i.boundary;
|
|
2637
|
-
let c = this.assemblyParameter(i), l =
|
|
2638
|
-
urlParams:
|
|
2598
|
+
let c = this.assemblyParameter(new URLSearchParams(i)), l = await this.assemblyHeader({
|
|
2599
|
+
urlParams: c,
|
|
2639
2600
|
token: n
|
|
2640
2601
|
});
|
|
2641
|
-
a && s && (
|
|
2642
|
-
let
|
|
2643
|
-
url:
|
|
2644
|
-
headers:
|
|
2602
|
+
a && s && (l["Content-Type"] = `multipart/form-data; boundary=${s}`);
|
|
2603
|
+
let u = this.getApiUrl(e), d = {
|
|
2604
|
+
url: u,
|
|
2605
|
+
headers: l,
|
|
2645
2606
|
params: c
|
|
2646
2607
|
};
|
|
2647
|
-
L.info(
|
|
2648
|
-
let
|
|
2608
|
+
L.info(d, "POST");
|
|
2609
|
+
let f = a ? `${u}?${c}` : u, p = await fetch(f, {
|
|
2649
2610
|
method: "POST",
|
|
2650
|
-
headers:
|
|
2651
|
-
body: a ||
|
|
2611
|
+
headers: l,
|
|
2612
|
+
body: a || c,
|
|
2652
2613
|
credentials: "include",
|
|
2653
2614
|
cache: r
|
|
2654
2615
|
});
|
|
2655
|
-
if (
|
|
2656
|
-
let e = Object.fromEntries(
|
|
2657
|
-
...await
|
|
2616
|
+
if (p.ok) {
|
|
2617
|
+
let e = Object.fromEntries(p.headers.entries()), t = {
|
|
2618
|
+
...await p.json(),
|
|
2658
2619
|
headers: e
|
|
2659
2620
|
};
|
|
2660
2621
|
return L.debug(t, "POST_RESULT"), t;
|
|
2661
2622
|
}
|
|
2662
|
-
let
|
|
2663
|
-
code:
|
|
2623
|
+
let m = {
|
|
2624
|
+
code: p.status,
|
|
2664
2625
|
success: !1,
|
|
2665
|
-
msg:
|
|
2626
|
+
msg: p.statusText
|
|
2666
2627
|
};
|
|
2667
|
-
return L.error(
|
|
2668
|
-
}
|
|
2669
|
-
async stream({ url: e, data: t, token: n }) {
|
|
2670
|
-
t = t ? { ...t } : {};
|
|
2671
|
-
let r = t.buffer ?? void 0, i = t.boundary ?? void 0;
|
|
2672
|
-
r && delete t.buffer, i && delete t.boundary;
|
|
2673
|
-
let a = this.assemblyParameter(t), s = this.convertUrlParameter(a), c = await this.assemblyHeader({
|
|
2674
|
-
urlParams: s,
|
|
2675
|
-
token: n
|
|
2676
|
-
});
|
|
2677
|
-
r && i && (c["Content-Type"] = `multipart/form-data; boundary=${i}`), c.Connection = "keep-alive", c["X-Accel-Buffering"] = "no", c["Cache-Control"] = "no-cache";
|
|
2678
|
-
let l = this.getApiUrl(e);
|
|
2679
|
-
try {
|
|
2680
|
-
let e = r ? `${l}?${s}` : l, t = {
|
|
2681
|
-
url: l,
|
|
2682
|
-
headers: c,
|
|
2683
|
-
params: a
|
|
2684
|
-
};
|
|
2685
|
-
L.info(t, "STREAM");
|
|
2686
|
-
let n = await fetch(e, {
|
|
2687
|
-
method: "POST",
|
|
2688
|
-
headers: c,
|
|
2689
|
-
body: r || s.toString(),
|
|
2690
|
-
credentials: "include"
|
|
2691
|
-
});
|
|
2692
|
-
if (!n.ok) throw Error(`HTTP error! status: ${n.status}`);
|
|
2693
|
-
if (!n.body) throw Error("No response body");
|
|
2694
|
-
let i = Object.fromEntries(n.headers.entries());
|
|
2695
|
-
return new Response(n.body, { headers: i });
|
|
2696
|
-
} catch (e) {
|
|
2697
|
-
throw e;
|
|
2698
|
-
}
|
|
2628
|
+
return L.error(m), m;
|
|
2699
2629
|
}
|
|
2700
2630
|
}, baseUrl = {
|
|
2701
2631
|
site: "guest/site/",
|
|
@@ -2713,22 +2643,19 @@ const helloURL = `${baseUrl.site}helloIBoot`;
|
|
|
2713
2643
|
var ICMSServer = class {
|
|
2714
2644
|
http;
|
|
2715
2645
|
constructor(e) {
|
|
2716
|
-
this.http = new
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
websiteId: e?.websiteId,
|
|
2720
|
-
websiteNo: e?.websiteNo,
|
|
2721
|
-
userType: or.TYPE_C,
|
|
2646
|
+
this.http = new Nr({
|
|
2647
|
+
...Sr(e.headerStorage),
|
|
2648
|
+
userType: tr.TYPE_C,
|
|
2722
2649
|
helloURL
|
|
2723
|
-
})
|
|
2650
|
+
});
|
|
2724
2651
|
}
|
|
2725
|
-
async helloWebsite(e) {
|
|
2726
|
-
let
|
|
2727
|
-
if (
|
|
2728
|
-
let
|
|
2729
|
-
if (
|
|
2730
|
-
let
|
|
2731
|
-
|
|
2652
|
+
async helloWebsite(e, t) {
|
|
2653
|
+
let n = baseUrl.site + "helloWebsite", r = await this.http.get({ url: n });
|
|
2654
|
+
if (r.success) {
|
|
2655
|
+
let n = r.headers;
|
|
2656
|
+
if (n) {
|
|
2657
|
+
let r = n["device-id"], i = n.lang, a = n["web-id"], o = n["web-no"], s = {};
|
|
2658
|
+
r && r.length > 0 && (s.deviceId = r), i && i.length > 0 && (s.lang = i), a && a.length > 0 && (s.websiteId = a), o && o.length > 0 && (s.websiteNo = o), Yr(e, s), Jr(t, s);
|
|
2732
2659
|
}
|
|
2733
2660
|
}
|
|
2734
2661
|
}
|
|
@@ -2882,18 +2809,15 @@ var ICMSServer = class {
|
|
|
2882
2809
|
throw Error(n.msg);
|
|
2883
2810
|
}
|
|
2884
2811
|
}, APIMAP = {};
|
|
2885
|
-
const icmsRouter = async ({ request: e, routeAdapter: t, storage: n }) => {
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
storage: n
|
|
2895
|
-
}).handleRequest(e);
|
|
2896
|
-
};
|
|
2812
|
+
const icmsRouter = async ({ request: e, routeAdapter: t, storage: n }) => await new Xr({
|
|
2813
|
+
config: {
|
|
2814
|
+
userType: tr.TYPE_B,
|
|
2815
|
+
APIMAP,
|
|
2816
|
+
helloURL
|
|
2817
|
+
},
|
|
2818
|
+
adapter: t,
|
|
2819
|
+
storage: n
|
|
2820
|
+
}).handleRequest(e);
|
|
2897
2821
|
export { ICMSServer, helloURL, icmsRouter };
|
|
2898
2822
|
|
|
2899
2823
|
//# sourceMappingURL=icms-api.es.js.map
|