@simprints/simface-sdk 0.16.1 → 0.20.1
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/README.md +3 -5
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/services/api-client.js +2 -1
- package/dist/services/api-client.js.map +1 -1
- package/dist/shared/api-url.d.ts +2 -0
- package/dist/shared/api-url.js +9 -0
- package/dist/shared/api-url.js.map +1 -0
- package/dist/simface-sdk.js +817 -813
- package/dist/simface-sdk.umd.cjs +26 -26
- package/dist/types/index.d.ts +2 -2
- package/package.json +6 -6
package/dist/simface-sdk.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
const ei = "https://simface-api-85584555549.europe-west1.run.app";
|
|
2
|
+
function Yc(e) {
|
|
3
|
+
return typeof e != "string" ? ei : e.trim().replace(/\/$/, "") || ei;
|
|
4
|
+
}
|
|
1
5
|
async function fs(e, t) {
|
|
2
6
|
try {
|
|
3
7
|
const r = await e.json();
|
|
@@ -7,9 +11,9 @@ async function fs(e, t) {
|
|
|
7
11
|
}
|
|
8
12
|
return `${t} (HTTP ${e.status})`;
|
|
9
13
|
}
|
|
10
|
-
class
|
|
14
|
+
class To {
|
|
11
15
|
constructor(t) {
|
|
12
|
-
this.apiUrl = t.apiUrl
|
|
16
|
+
this.apiUrl = Yc(t.apiUrl), this.projectId = t.projectId, this.apiKey = t.apiKey;
|
|
13
17
|
}
|
|
14
18
|
async validateAPIKey() {
|
|
15
19
|
const t = await fetch(`${this.apiUrl}/api/v1/auth/validate`, {
|
|
@@ -65,15 +69,15 @@ function cr(e, t) {
|
|
|
65
69
|
function Qe() {
|
|
66
70
|
throw Error("Invalid UTF8");
|
|
67
71
|
}
|
|
68
|
-
function
|
|
72
|
+
function ti(e, t) {
|
|
69
73
|
return t = String.fromCharCode.apply(null, t), e == null ? t : e + t;
|
|
70
74
|
}
|
|
71
75
|
let Sr, ps;
|
|
72
|
-
const
|
|
73
|
-
let
|
|
74
|
-
const
|
|
75
|
-
function
|
|
76
|
-
if (
|
|
76
|
+
const Qc = typeof TextDecoder < "u";
|
|
77
|
+
let Jc;
|
|
78
|
+
const Zc = typeof TextEncoder < "u";
|
|
79
|
+
function Co(e) {
|
|
80
|
+
if (Zc) e = (Jc || (Jc = new TextEncoder())).encode(e);
|
|
77
81
|
else {
|
|
78
82
|
let r = 0;
|
|
79
83
|
const s = new Uint8Array(3 * e.length);
|
|
@@ -103,25 +107,25 @@ function To(e) {
|
|
|
103
107
|
}
|
|
104
108
|
return e;
|
|
105
109
|
}
|
|
106
|
-
function
|
|
110
|
+
function Lo(e) {
|
|
107
111
|
kt.setTimeout((() => {
|
|
108
112
|
throw e;
|
|
109
113
|
}), 0);
|
|
110
114
|
}
|
|
111
|
-
var Ls,
|
|
112
|
-
function
|
|
115
|
+
var Ls, eh = cr(610401301, !1), ri = cr(748402147, !0), Js = cr(824648567, !0), Zs = cr(824656860, cr(1, !0));
|
|
116
|
+
function si() {
|
|
113
117
|
var e = kt.navigator;
|
|
114
118
|
return e && (e = e.userAgent) ? e : "";
|
|
115
119
|
}
|
|
116
|
-
const
|
|
120
|
+
const ni = kt.navigator;
|
|
117
121
|
function jr(e) {
|
|
118
122
|
return jr[" "](e), e;
|
|
119
123
|
}
|
|
120
|
-
Ls =
|
|
124
|
+
Ls = ni && ni.userAgentData || null, jr[" "] = function() {
|
|
121
125
|
};
|
|
122
|
-
const
|
|
126
|
+
const Po = {};
|
|
123
127
|
let er = null;
|
|
124
|
-
function
|
|
128
|
+
function th(e) {
|
|
125
129
|
const t = e.length;
|
|
126
130
|
let r = 3 * t / 4;
|
|
127
131
|
r % 3 ? r = Math.floor(r) : "=.".indexOf(e[t - 1]) != -1 && (r = "=.".indexOf(e[t - 2]) != -1 ? r - 2 : r - 1);
|
|
@@ -136,7 +140,7 @@ function Zc(e) {
|
|
|
136
140
|
}
|
|
137
141
|
return u;
|
|
138
142
|
}
|
|
139
|
-
|
|
143
|
+
Mo();
|
|
140
144
|
let c = 0;
|
|
141
145
|
for (; ; ) {
|
|
142
146
|
const u = a(-1), h = a(0), l = a(64), d = a(64);
|
|
@@ -147,13 +151,13 @@ function Zc(e) {
|
|
|
147
151
|
s[n++] = i;
|
|
148
152
|
})), n !== r ? s.subarray(0, n) : s;
|
|
149
153
|
}
|
|
150
|
-
function
|
|
154
|
+
function Mo() {
|
|
151
155
|
if (!er) {
|
|
152
156
|
er = {};
|
|
153
157
|
var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), t = ["+/=", "+/", "-_=", "-_.", "-_"];
|
|
154
158
|
for (let r = 0; r < 5; r++) {
|
|
155
159
|
const s = e.concat(t[r].split(""));
|
|
156
|
-
|
|
160
|
+
Po[r] = s;
|
|
157
161
|
for (let n = 0; n < s.length; n++) {
|
|
158
162
|
const i = s[n];
|
|
159
163
|
er[i] === void 0 && (er[i] = n);
|
|
@@ -161,52 +165,52 @@ function Po() {
|
|
|
161
165
|
}
|
|
162
166
|
}
|
|
163
167
|
}
|
|
164
|
-
var
|
|
165
|
-
const
|
|
166
|
-
function
|
|
167
|
-
return
|
|
168
|
+
var rh = typeof Uint8Array < "u", xo = !(!(eh && Ls && Ls.brands.length > 0) && (si().indexOf("Trident") != -1 || si().indexOf("MSIE") != -1)) && typeof btoa == "function";
|
|
169
|
+
const ii = /[-_.]/g, sh = { "-": "+", _: "/", ".": "=" };
|
|
170
|
+
function nh(e) {
|
|
171
|
+
return sh[e] || "";
|
|
168
172
|
}
|
|
169
|
-
function
|
|
170
|
-
if (!
|
|
171
|
-
e =
|
|
173
|
+
function Fo(e) {
|
|
174
|
+
if (!xo) return th(e);
|
|
175
|
+
e = ii.test(e) ? e.replace(ii, nh) : e, e = atob(e);
|
|
172
176
|
const t = new Uint8Array(e.length);
|
|
173
177
|
for (let r = 0; r < e.length; r++) t[r] = e.charCodeAt(r);
|
|
174
178
|
return t;
|
|
175
179
|
}
|
|
176
180
|
function en(e) {
|
|
177
|
-
return
|
|
181
|
+
return rh && e != null && e instanceof Uint8Array;
|
|
178
182
|
}
|
|
179
183
|
var St = {};
|
|
180
184
|
function ut() {
|
|
181
|
-
return
|
|
185
|
+
return ih || (ih = new Ce(null, St));
|
|
182
186
|
}
|
|
183
187
|
function tn(e) {
|
|
184
|
-
|
|
188
|
+
$o(St);
|
|
185
189
|
var t = e.g;
|
|
186
|
-
return (t = t == null || en(t) ? t : typeof t == "string" ?
|
|
190
|
+
return (t = t == null || en(t) ? t : typeof t == "string" ? Fo(t) : null) == null ? t : e.g = t;
|
|
187
191
|
}
|
|
188
192
|
var Ce = class {
|
|
189
193
|
h() {
|
|
190
194
|
return new Uint8Array(tn(this) || 0);
|
|
191
195
|
}
|
|
192
196
|
constructor(t, r) {
|
|
193
|
-
if (
|
|
197
|
+
if ($o(r), this.g = t, t != null && t.length === 0) throw Error("ByteString should be constructed with non-empty values");
|
|
194
198
|
}
|
|
195
199
|
};
|
|
196
|
-
let
|
|
197
|
-
function
|
|
200
|
+
let ih, oh;
|
|
201
|
+
function $o(e) {
|
|
198
202
|
if (e !== St) throw Error("illegal external caller");
|
|
199
203
|
}
|
|
200
|
-
function
|
|
204
|
+
function Oo(e, t) {
|
|
201
205
|
e.__closure__error__context__984382 || (e.__closure__error__context__984382 = {}), e.__closure__error__context__984382.severity = t;
|
|
202
206
|
}
|
|
203
207
|
function Ps(e) {
|
|
204
|
-
return
|
|
208
|
+
return Oo(e = Error(e), "warning"), e;
|
|
205
209
|
}
|
|
206
210
|
function Tt(e, t) {
|
|
207
211
|
if (e != null) {
|
|
208
|
-
var r =
|
|
209
|
-
s >= t || (r[e] = s + 1,
|
|
212
|
+
var r = oh ?? (oh = {}), s = r[e] || 0;
|
|
213
|
+
s >= t || (r[e] = s + 1, Oo(e = Error(), "incident"), Lo(e));
|
|
210
214
|
}
|
|
211
215
|
}
|
|
212
216
|
function Bt() {
|
|
@@ -216,23 +220,23 @@ var Ut = typeof Symbol == "function" && typeof Symbol() == "symbol";
|
|
|
216
220
|
function Le(e, t, r = !1) {
|
|
217
221
|
return typeof Symbol == "function" && typeof Symbol() == "symbol" ? r && Symbol.for && e ? Symbol.for(e) : e != null ? Symbol(e) : Symbol() : t;
|
|
218
222
|
}
|
|
219
|
-
var
|
|
220
|
-
const
|
|
223
|
+
var ah = Le("jas", void 0, !0), oi = Le(void 0, "0di"), Qt = Le(void 0, "1oa"), oe = Le(void 0, Symbol()), ch = Le(void 0, "0ub"), hh = Le(void 0, "0ubs"), Ms = Le(void 0, "0ubsb"), uh = Le(void 0, "0actk"), Ct = Le("m_m", "Pa", !0), ai = Le();
|
|
224
|
+
const Ro = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Io = Object.defineProperties, p = Ut ? ah : "Ga";
|
|
221
225
|
var pt;
|
|
222
|
-
const
|
|
223
|
-
function
|
|
224
|
-
Ut || p in e ||
|
|
226
|
+
const ci = [];
|
|
227
|
+
function gr(e, t) {
|
|
228
|
+
Ut || p in e || Io(e, Ro), e[p] |= t;
|
|
225
229
|
}
|
|
226
230
|
function H(e, t) {
|
|
227
|
-
Ut || p in e ||
|
|
231
|
+
Ut || p in e || Io(e, Ro), e[p] = t;
|
|
228
232
|
}
|
|
229
233
|
function yr(e) {
|
|
230
|
-
return
|
|
234
|
+
return gr(e, 34), e;
|
|
231
235
|
}
|
|
232
236
|
function hr(e) {
|
|
233
|
-
return
|
|
237
|
+
return gr(e, 8192), e;
|
|
234
238
|
}
|
|
235
|
-
H(
|
|
239
|
+
H(ci, 7), pt = Object.freeze(ci);
|
|
236
240
|
var Lt = {};
|
|
237
241
|
function ce(e, t) {
|
|
238
242
|
return t === void 0 ? e.h !== lt && !!(2 & (0 | e.v[p])) : !!(2 & t) && e.h !== lt;
|
|
@@ -249,7 +253,7 @@ function rn(e, t) {
|
|
|
249
253
|
}
|
|
250
254
|
return e;
|
|
251
255
|
}
|
|
252
|
-
class
|
|
256
|
+
class hi {
|
|
253
257
|
constructor(t, r, s) {
|
|
254
258
|
this.g = t, this.h = r, this.l = s;
|
|
255
259
|
}
|
|
@@ -261,8 +265,8 @@ class ci {
|
|
|
261
265
|
return this;
|
|
262
266
|
}
|
|
263
267
|
}
|
|
264
|
-
var
|
|
265
|
-
function
|
|
268
|
+
var lh = Object.freeze({});
|
|
269
|
+
function No(e, t, r) {
|
|
266
270
|
const s = 128 & t ? 0 : -1, n = e.length;
|
|
267
271
|
var i;
|
|
268
272
|
(i = !!n) && (i = (i = e[n - 1]) != null && typeof i == "object" && i.constructor === Object);
|
|
@@ -273,24 +277,24 @@ function Io(e, t, r) {
|
|
|
273
277
|
for (const a in e) !isNaN(a) && r(+a, e[a]);
|
|
274
278
|
}
|
|
275
279
|
}
|
|
276
|
-
var
|
|
280
|
+
var Bo = {};
|
|
277
281
|
function Dt(e) {
|
|
278
|
-
return 128 & e ?
|
|
282
|
+
return 128 & e ? Bo : void 0;
|
|
279
283
|
}
|
|
280
284
|
function Vr(e) {
|
|
281
285
|
return e.Na = !0, e;
|
|
282
286
|
}
|
|
283
|
-
var
|
|
287
|
+
var dh = Vr(((e) => typeof e == "number")), ui = Vr(((e) => typeof e == "string")), fh = Vr(((e) => typeof e == "boolean")), Gr = typeof kt.BigInt == "function" && typeof kt.BigInt(0) == "bigint";
|
|
284
288
|
function ae(e) {
|
|
285
289
|
var t = e;
|
|
286
|
-
if (
|
|
290
|
+
if (ui(t)) {
|
|
287
291
|
if (!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t)) throw Error(String(t));
|
|
288
|
-
} else if (
|
|
289
|
-
return Gr ? BigInt(e) : e =
|
|
292
|
+
} else if (dh(t) && !Number.isSafeInteger(t)) throw Error(String(t));
|
|
293
|
+
return Gr ? BigInt(e) : e = fh(e) ? e ? "1" : "0" : ui(e) ? e.trim() || "0" : String(e);
|
|
290
294
|
}
|
|
291
|
-
var xs = Vr(((e) => Gr ? e >=
|
|
292
|
-
const
|
|
293
|
-
function
|
|
295
|
+
var xs = Vr(((e) => Gr ? e >= mh && e <= yh : e[0] === "-" ? li(e, ph) : li(e, gh)));
|
|
296
|
+
const ph = Number.MIN_SAFE_INTEGER.toString(), mh = Gr ? BigInt(Number.MIN_SAFE_INTEGER) : void 0, gh = Number.MAX_SAFE_INTEGER.toString(), yh = Gr ? BigInt(Number.MAX_SAFE_INTEGER) : void 0;
|
|
297
|
+
function li(e, t) {
|
|
294
298
|
if (e.length > t.length) return !1;
|
|
295
299
|
if (e.length < t.length || e === t) return !0;
|
|
296
300
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -299,43 +303,43 @@ function ui(e, t) {
|
|
|
299
303
|
if (s < n) return !0;
|
|
300
304
|
}
|
|
301
305
|
}
|
|
302
|
-
const
|
|
303
|
-
let
|
|
304
|
-
function
|
|
306
|
+
const bh = typeof Uint8Array.prototype.slice == "function";
|
|
307
|
+
let vh, M = 0, B = 0;
|
|
308
|
+
function di(e) {
|
|
305
309
|
const t = e >>> 0;
|
|
306
310
|
M = t, B = (e - t) / 4294967296 >>> 0;
|
|
307
311
|
}
|
|
308
312
|
function Pt(e) {
|
|
309
313
|
if (e < 0) {
|
|
310
|
-
|
|
314
|
+
di(-e);
|
|
311
315
|
const [t, r] = an(M, B);
|
|
312
316
|
M = t >>> 0, B = r >>> 0;
|
|
313
|
-
} else
|
|
317
|
+
} else di(e);
|
|
314
318
|
}
|
|
315
319
|
function sn(e) {
|
|
316
|
-
const t =
|
|
320
|
+
const t = vh || (vh = new DataView(new ArrayBuffer(8)));
|
|
317
321
|
t.setFloat32(0, +e, !0), B = 0, M = t.getUint32(0, !0);
|
|
318
322
|
}
|
|
319
323
|
function Fs(e, t) {
|
|
320
324
|
const r = 4294967296 * t + (e >>> 0);
|
|
321
325
|
return Number.isSafeInteger(r) ? r : ur(e, t);
|
|
322
326
|
}
|
|
323
|
-
function
|
|
327
|
+
function _h(e, t) {
|
|
324
328
|
return ae(Bt() ? BigInt.asUintN(64, (BigInt(t >>> 0) << BigInt(32)) + BigInt(e >>> 0)) : ur(e, t));
|
|
325
329
|
}
|
|
326
330
|
function nn(e, t) {
|
|
327
331
|
const r = 2147483648 & t;
|
|
328
332
|
return r && (t = ~t >>> 0, (e = 1 + ~e >>> 0) == 0 && (t = t + 1 >>> 0)), typeof (e = Fs(e, t)) == "number" ? r ? -e : e : r ? "-" + e : e;
|
|
329
333
|
}
|
|
330
|
-
function
|
|
334
|
+
function Uo(e, t) {
|
|
331
335
|
return Bt() ? ae(BigInt.asIntN(64, (BigInt.asUintN(32, BigInt(t)) << BigInt(32)) + BigInt.asUintN(32, BigInt(e)))) : ae(on(e, t));
|
|
332
336
|
}
|
|
333
337
|
function ur(e, t) {
|
|
334
338
|
if (e >>>= 0, (t >>>= 0) <= 2097151) var r = "" + (4294967296 * t + e);
|
|
335
|
-
else Bt() ? r = "" + (BigInt(t) << BigInt(32) | BigInt(e)) : (e = (16777215 & e) + 6777216 * (r = 16777215 & (e >>> 24 | t << 8)) + 6710656 * (t = t >> 16 & 65535), r += 8147497 * t, t *= 2, e >= 1e7 && (r += e / 1e7 >>> 0, e %= 1e7), r >= 1e7 && (t += r / 1e7 >>> 0, r %= 1e7), r = t +
|
|
339
|
+
else Bt() ? r = "" + (BigInt(t) << BigInt(32) | BigInt(e)) : (e = (16777215 & e) + 6777216 * (r = 16777215 & (e >>> 24 | t << 8)) + 6710656 * (t = t >> 16 & 65535), r += 8147497 * t, t *= 2, e >= 1e7 && (r += e / 1e7 >>> 0, e %= 1e7), r >= 1e7 && (t += r / 1e7 >>> 0, r %= 1e7), r = t + fi(r) + fi(e));
|
|
336
340
|
return r;
|
|
337
341
|
}
|
|
338
|
-
function
|
|
342
|
+
function fi(e) {
|
|
339
343
|
return e = String(e), "0000000".slice(e.length) + e;
|
|
340
344
|
}
|
|
341
345
|
function on(e, t) {
|
|
@@ -370,7 +374,7 @@ function an(e, t) {
|
|
|
370
374
|
function ve(e) {
|
|
371
375
|
return Array.prototype.slice.call(e);
|
|
372
376
|
}
|
|
373
|
-
const br = typeof BigInt == "function" ? BigInt.asIntN : void 0,
|
|
377
|
+
const br = typeof BigInt == "function" ? BigInt.asIntN : void 0, wh = typeof BigInt == "function" ? BigInt.asUintN : void 0, dt = Number.isSafeInteger, zr = Number.isFinite, Mt = Math.trunc, Ah = ae(0);
|
|
374
378
|
function tr(e) {
|
|
375
379
|
if (e != null && typeof e != "number") throw Error(`Value of float/double field must be a number, found ${typeof e}: ${e}`);
|
|
376
380
|
return e;
|
|
@@ -385,10 +389,10 @@ function lr(e) {
|
|
|
385
389
|
}
|
|
386
390
|
return e;
|
|
387
391
|
}
|
|
388
|
-
function
|
|
392
|
+
function Do(e) {
|
|
389
393
|
return e == null || typeof e == "boolean" ? e : typeof e == "number" ? !!e : void 0;
|
|
390
394
|
}
|
|
391
|
-
const
|
|
395
|
+
const Eh = /^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;
|
|
392
396
|
function vr(e) {
|
|
393
397
|
switch (typeof e) {
|
|
394
398
|
case "bigint":
|
|
@@ -396,7 +400,7 @@ function vr(e) {
|
|
|
396
400
|
case "number":
|
|
397
401
|
return zr(e);
|
|
398
402
|
case "string":
|
|
399
|
-
return
|
|
403
|
+
return Eh.test(e);
|
|
400
404
|
default:
|
|
401
405
|
return !1;
|
|
402
406
|
}
|
|
@@ -407,38 +411,38 @@ function jt(e) {
|
|
|
407
411
|
else if (typeof e != "number") return;
|
|
408
412
|
return zr(e) ? 0 | e : void 0;
|
|
409
413
|
}
|
|
410
|
-
function
|
|
414
|
+
function jo(e) {
|
|
411
415
|
if (e == null) return e;
|
|
412
416
|
if (typeof e == "string" && e) e = +e;
|
|
413
417
|
else if (typeof e != "number") return;
|
|
414
418
|
return zr(e) ? e >>> 0 : void 0;
|
|
415
419
|
}
|
|
416
|
-
function
|
|
420
|
+
function Vo(e) {
|
|
417
421
|
const t = e.length;
|
|
418
422
|
return (e[0] === "-" ? t < 20 || t === 20 && e <= "-9223372036854775808" : t < 19 || t === 19 && e <= "9223372036854775807") ? e : (Hr(e), on(M, B));
|
|
419
423
|
}
|
|
420
424
|
function cn(e) {
|
|
421
425
|
return e = Mt(e), dt(e) || (Pt(e), e = nn(M, B)), e;
|
|
422
426
|
}
|
|
423
|
-
function Vo(e) {
|
|
424
|
-
var t = Mt(Number(e));
|
|
425
|
-
return dt(t) ? String(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), jo(e));
|
|
426
|
-
}
|
|
427
427
|
function Go(e) {
|
|
428
428
|
var t = Mt(Number(e));
|
|
429
|
-
return dt(t) ?
|
|
429
|
+
return dt(t) ? String(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), Vo(e));
|
|
430
430
|
}
|
|
431
431
|
function Ho(e) {
|
|
432
|
+
var t = Mt(Number(e));
|
|
433
|
+
return dt(t) ? ae(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), Bt() ? ae(br(64, BigInt(e))) : ae(Vo(e)));
|
|
434
|
+
}
|
|
435
|
+
function zo(e) {
|
|
432
436
|
return dt(e) ? e = ae(cn(e)) : (e = Mt(e), dt(e) ? e = String(e) : (Pt(e), e = on(M, B)), e = ae(e)), e;
|
|
433
437
|
}
|
|
434
|
-
function
|
|
435
|
-
return e == null ? e : typeof e == "bigint" ? (xs(e) ? e = Number(e) : (e = br(64, e), e = xs(e) ? Number(e) : String(e)), e) : vr(e) ? typeof e == "number" ? cn(e) :
|
|
438
|
+
function kh(e) {
|
|
439
|
+
return e == null ? e : typeof e == "bigint" ? (xs(e) ? e = Number(e) : (e = br(64, e), e = xs(e) ? Number(e) : String(e)), e) : vr(e) ? typeof e == "number" ? cn(e) : Go(e) : void 0;
|
|
436
440
|
}
|
|
437
441
|
function Fr(e) {
|
|
438
442
|
const t = typeof e;
|
|
439
|
-
return e == null ? e : t === "bigint" ? ae(br(64, e)) : vr(e) ? t === "string" ?
|
|
443
|
+
return e == null ? e : t === "bigint" ? ae(br(64, e)) : vr(e) ? t === "string" ? Ho(e) : zo(e) : void 0;
|
|
440
444
|
}
|
|
441
|
-
function
|
|
445
|
+
function Wo(e) {
|
|
442
446
|
if (typeof e != "string") throw Error();
|
|
443
447
|
return e;
|
|
444
448
|
}
|
|
@@ -450,27 +454,27 @@ function Y(e) {
|
|
|
450
454
|
return e == null || typeof e == "string" ? e : void 0;
|
|
451
455
|
}
|
|
452
456
|
function hn(e, t, r, s) {
|
|
453
|
-
return e != null && e[Ct] === Lt ? e : Array.isArray(e) ? ((s = (r = 0 | e[p]) | 32 & s | 2 & s) !== r && H(e, s), new t(e)) : (r ? 2 & s ? ((e = t[
|
|
457
|
+
return e != null && e[Ct] === Lt ? e : Array.isArray(e) ? ((s = (r = 0 | e[p]) | 32 & s | 2 & s) !== r && H(e, s), new t(e)) : (r ? 2 & s ? ((e = t[oi]) || (yr((e = new t()).v), e = t[oi] = e), t = e) : t = new t() : t = void 0, t);
|
|
454
458
|
}
|
|
455
|
-
function
|
|
459
|
+
function Sh(e, t, r) {
|
|
456
460
|
if (t) e: {
|
|
457
461
|
if (!vr(t = e)) throw Ps("int64");
|
|
458
462
|
switch (typeof t) {
|
|
459
463
|
case "string":
|
|
460
|
-
t =
|
|
464
|
+
t = Ho(t);
|
|
461
465
|
break e;
|
|
462
466
|
case "bigint":
|
|
463
467
|
t = ae(br(64, t));
|
|
464
468
|
break e;
|
|
465
469
|
default:
|
|
466
|
-
t =
|
|
470
|
+
t = zo(t);
|
|
467
471
|
}
|
|
468
472
|
}
|
|
469
473
|
else t = Fr(e);
|
|
470
|
-
return (e = t) == null ? r ?
|
|
474
|
+
return (e = t) == null ? r ? Ah : void 0 : e;
|
|
471
475
|
}
|
|
472
|
-
const
|
|
473
|
-
let
|
|
476
|
+
const Th = {};
|
|
477
|
+
let Ch = (function() {
|
|
474
478
|
try {
|
|
475
479
|
return jr(new class extends Map {
|
|
476
480
|
constructor() {
|
|
@@ -481,7 +485,7 @@ let Sh = (function() {
|
|
|
481
485
|
return !0;
|
|
482
486
|
}
|
|
483
487
|
})();
|
|
484
|
-
class
|
|
488
|
+
class ms {
|
|
485
489
|
constructor() {
|
|
486
490
|
this.g = /* @__PURE__ */ new Map();
|
|
487
491
|
}
|
|
@@ -516,20 +520,20 @@ class gs {
|
|
|
516
520
|
return this.entries();
|
|
517
521
|
}
|
|
518
522
|
}
|
|
519
|
-
const
|
|
523
|
+
const Lh = Ch ? (Object.setPrototypeOf(ms.prototype, Map.prototype), Object.defineProperties(ms.prototype, { size: { value: 0, configurable: !0, enumerable: !0, writable: !0 } }), ms) : class extends Map {
|
|
520
524
|
constructor() {
|
|
521
525
|
super();
|
|
522
526
|
}
|
|
523
527
|
};
|
|
524
|
-
function
|
|
528
|
+
function pi(e) {
|
|
525
529
|
return e;
|
|
526
530
|
}
|
|
527
|
-
function
|
|
531
|
+
function gs(e) {
|
|
528
532
|
if (2 & e.J) throw Error("Cannot mutate an immutable Map");
|
|
529
533
|
}
|
|
530
|
-
var Re = class extends
|
|
531
|
-
constructor(e, t, r =
|
|
532
|
-
super(), this.J = 0 | e[p], this.K = t, this.S = r, this.fa = this.K ?
|
|
534
|
+
var Re = class extends Lh {
|
|
535
|
+
constructor(e, t, r = pi, s = pi) {
|
|
536
|
+
super(), this.J = 0 | e[p], this.K = t, this.S = r, this.fa = this.K ? Ph : s;
|
|
533
537
|
for (let n = 0; n < e.length; n++) {
|
|
534
538
|
const i = e[n], o = r(i[0], !1, !0);
|
|
535
539
|
let a = i[1];
|
|
@@ -540,22 +544,22 @@ var Re = class extends Th {
|
|
|
540
544
|
return hr(Array.from(super.entries(), e));
|
|
541
545
|
}
|
|
542
546
|
clear() {
|
|
543
|
-
|
|
547
|
+
gs(this), super.clear();
|
|
544
548
|
}
|
|
545
549
|
delete(e) {
|
|
546
|
-
return
|
|
550
|
+
return gs(this), super.delete(this.S(e, !0, !1));
|
|
547
551
|
}
|
|
548
552
|
entries() {
|
|
549
553
|
if (this.K) {
|
|
550
554
|
var e = super.keys();
|
|
551
|
-
e = new
|
|
555
|
+
e = new hi(e, Mh, this);
|
|
552
556
|
} else e = super.entries();
|
|
553
557
|
return e;
|
|
554
558
|
}
|
|
555
559
|
values() {
|
|
556
560
|
if (this.K) {
|
|
557
561
|
var e = super.keys();
|
|
558
|
-
e = new
|
|
562
|
+
e = new hi(e, Re.prototype.get, this);
|
|
559
563
|
} else e = super.values();
|
|
560
564
|
return e;
|
|
561
565
|
}
|
|
@@ -565,7 +569,7 @@ var Re = class extends Th {
|
|
|
565
569
|
})) : super.forEach(e, t);
|
|
566
570
|
}
|
|
567
571
|
set(e, t) {
|
|
568
|
-
return
|
|
572
|
+
return gs(this), (e = this.S(e, !0, !1)) == null ? this : t == null ? (super.delete(e), this) : super.set(e, this.fa(t, !0, !0, this.K, !1, this.J));
|
|
569
573
|
}
|
|
570
574
|
Ma(e) {
|
|
571
575
|
const t = this.S(e[0], !1, !0);
|
|
@@ -586,15 +590,15 @@ var Re = class extends Th {
|
|
|
586
590
|
return this.entries();
|
|
587
591
|
}
|
|
588
592
|
};
|
|
589
|
-
function
|
|
593
|
+
function Ph(e, t, r, s, n, i) {
|
|
590
594
|
return e = hn(e, s, r, i), n && (e = ln(e)), e;
|
|
591
595
|
}
|
|
592
|
-
function
|
|
596
|
+
function Mh(e) {
|
|
593
597
|
return [e, this.get(e)];
|
|
594
598
|
}
|
|
595
|
-
let
|
|
596
|
-
function
|
|
597
|
-
return
|
|
599
|
+
let xh;
|
|
600
|
+
function mi() {
|
|
601
|
+
return xh || (xh = new Re(yr([]), void 0, void 0, void 0, Th));
|
|
598
602
|
}
|
|
599
603
|
function Wr(e) {
|
|
600
604
|
return oe ? e[oe] : void 0;
|
|
@@ -605,15 +609,15 @@ function $r(e, t) {
|
|
|
605
609
|
Re.prototype.toJSON = void 0;
|
|
606
610
|
var $s = class {
|
|
607
611
|
};
|
|
608
|
-
const
|
|
609
|
-
function
|
|
610
|
-
t < 100 || Tt(
|
|
612
|
+
const Fh = { Ka: !0 };
|
|
613
|
+
function $h(e, t) {
|
|
614
|
+
t < 100 || Tt(hh, 1);
|
|
611
615
|
}
|
|
612
616
|
function Kr(e, t, r, s) {
|
|
613
617
|
const n = s !== void 0;
|
|
614
618
|
s = !!s;
|
|
615
619
|
var i, o = oe;
|
|
616
|
-
!n && Ut && o && (i = e[o]) && $r(i,
|
|
620
|
+
!n && Ut && o && (i = e[o]) && $r(i, $h), o = [];
|
|
617
621
|
var a = e.length;
|
|
618
622
|
let c;
|
|
619
623
|
i = 4294967295;
|
|
@@ -639,7 +643,7 @@ function Kr(e, t, r, s) {
|
|
|
639
643
|
})), S.da = b.da, S;
|
|
640
644
|
})(e)), o;
|
|
641
645
|
}
|
|
642
|
-
function
|
|
646
|
+
function Oh(e) {
|
|
643
647
|
return e[0] = dr(e[0]), e[1] = dr(e[1]), e;
|
|
644
648
|
}
|
|
645
649
|
function dr(e) {
|
|
@@ -655,16 +659,16 @@ function dr(e) {
|
|
|
655
659
|
var t = 0 | e[p];
|
|
656
660
|
return e.length === 0 && 1 & t ? void 0 : Kr(e, t, dr);
|
|
657
661
|
}
|
|
658
|
-
if (e != null && e[Ct] === Lt) return
|
|
662
|
+
if (e != null && e[Ct] === Lt) return Ko(e);
|
|
659
663
|
if (e instanceof Ce) {
|
|
660
664
|
if ((t = e.g) == null) e = "";
|
|
661
665
|
else if (typeof t == "string") e = t;
|
|
662
666
|
else {
|
|
663
|
-
if (
|
|
667
|
+
if (xo) {
|
|
664
668
|
for (var r = "", s = 0, n = t.length - 10240; s < n; ) r += String.fromCharCode.apply(null, t.subarray(s, s += 10240));
|
|
665
669
|
r += String.fromCharCode.apply(null, s ? t.subarray(s) : t), t = btoa(r);
|
|
666
670
|
} else {
|
|
667
|
-
r === void 0 && (r = 0),
|
|
671
|
+
r === void 0 && (r = 0), Mo(), r = Po[r], s = Array(Math.floor(t.length / 3)), n = r[64] || "";
|
|
668
672
|
let u = 0, h = 0;
|
|
669
673
|
for (; u < t.length - 2; u += 3) {
|
|
670
674
|
var i = t[u], o = t[u + 1], a = t[u + 2], c = r[i >> 2];
|
|
@@ -682,27 +686,27 @@ function dr(e) {
|
|
|
682
686
|
}
|
|
683
687
|
return e;
|
|
684
688
|
}
|
|
685
|
-
return e instanceof Re ? e = e.size !== 0 ? e.V(
|
|
689
|
+
return e instanceof Re ? e = e.size !== 0 ? e.V(Oh) : void 0 : void 0;
|
|
686
690
|
}
|
|
687
691
|
return e;
|
|
688
692
|
}
|
|
689
|
-
function
|
|
693
|
+
function Ko(e) {
|
|
690
694
|
return Kr(e = e.v, 0 | e[p], dr);
|
|
691
695
|
}
|
|
692
|
-
let
|
|
696
|
+
let Rh, Ih;
|
|
693
697
|
function nt(e, t) {
|
|
694
|
-
return
|
|
698
|
+
return qo(e, t[0], t[1]);
|
|
695
699
|
}
|
|
696
|
-
function
|
|
700
|
+
function qo(e, t, r, s = 0) {
|
|
697
701
|
if (e == null) {
|
|
698
702
|
var n = 32;
|
|
699
703
|
r ? (e = [r], n |= 128) : e = [], t && (n = -16760833 & n | (1023 & t) << 14);
|
|
700
704
|
} else {
|
|
701
705
|
if (!Array.isArray(e)) throw Error("narr");
|
|
702
|
-
if (n = 0 | e[p],
|
|
706
|
+
if (n = 0 | e[p], ri && 1 & n) throw Error("rfarr");
|
|
703
707
|
if (2048 & n && !(2 & n) && (function() {
|
|
704
|
-
if (
|
|
705
|
-
Tt(
|
|
708
|
+
if (ri) throw Error("carr");
|
|
709
|
+
Tt(uh, 5);
|
|
706
710
|
})(), 256 & n) throw Error("farr");
|
|
707
711
|
if (64 & n) return (n | s) !== n && H(e, n | s), e;
|
|
708
712
|
if (r && (n |= 128, r !== e[0])) throw Error("mid");
|
|
@@ -727,37 +731,37 @@ function Ko(e, t, r, s = 0) {
|
|
|
727
731
|
}
|
|
728
732
|
return H(e, 64 | n | s), e;
|
|
729
733
|
}
|
|
730
|
-
function
|
|
734
|
+
function Nh(e, t) {
|
|
731
735
|
if (typeof e != "object") return e;
|
|
732
736
|
if (Array.isArray(e)) {
|
|
733
737
|
var r = 0 | e[p];
|
|
734
738
|
return e.length === 0 && 1 & r ? void 0 : gi(e, r, t);
|
|
735
739
|
}
|
|
736
|
-
if (e != null && e[Ct] === Lt) return
|
|
740
|
+
if (e != null && e[Ct] === Lt) return yi(e);
|
|
737
741
|
if (e instanceof Re) {
|
|
738
742
|
if (2 & (t = e.J)) return e;
|
|
739
743
|
if (!e.size) return;
|
|
740
744
|
if (r = yr(e.V()), e.K) for (e = 0; e < r.length; e++) {
|
|
741
745
|
const s = r[e];
|
|
742
746
|
let n = s[1];
|
|
743
|
-
n = n == null || typeof n != "object" ? void 0 : n != null && n[Ct] === Lt ?
|
|
747
|
+
n = n == null || typeof n != "object" ? void 0 : n != null && n[Ct] === Lt ? yi(n) : Array.isArray(n) ? gi(n, 0 | n[p], !!(32 & t)) : void 0, s[1] = n;
|
|
744
748
|
}
|
|
745
749
|
return r;
|
|
746
750
|
}
|
|
747
751
|
return e instanceof Ce ? e : void 0;
|
|
748
752
|
}
|
|
749
753
|
function gi(e, t, r) {
|
|
750
|
-
return 2 & t || (!r || 4096 & t || 16 & t ? e = Vt(e, t, !1, r && !(16 & t)) : (
|
|
754
|
+
return 2 & t || (!r || 4096 & t || 16 & t ? e = Vt(e, t, !1, r && !(16 & t)) : (gr(e, 34), 4 & t && Object.freeze(e))), e;
|
|
751
755
|
}
|
|
752
756
|
function un(e, t, r) {
|
|
753
757
|
return e = new e.constructor(t), r && (e.h = lt), e.m = lt, e;
|
|
754
758
|
}
|
|
755
|
-
function
|
|
759
|
+
function yi(e) {
|
|
756
760
|
const t = e.v, r = 0 | t[p];
|
|
757
761
|
return ce(e, r) ? e : dn(e, t, r) ? un(e, t) : Vt(t, r);
|
|
758
762
|
}
|
|
759
763
|
function Vt(e, t, r, s) {
|
|
760
|
-
return s ?? (s = !!(34 & t)), e = Kr(e, t,
|
|
764
|
+
return s ?? (s = !!(34 & t)), e = Kr(e, t, Nh, s), s = 32, r && (s |= 2), H(e, t = 16769217 & t | s), e;
|
|
761
765
|
}
|
|
762
766
|
function ln(e) {
|
|
763
767
|
const t = e.v, r = 0 | t[p];
|
|
@@ -766,18 +770,18 @@ function ln(e) {
|
|
|
766
770
|
function Gt(e) {
|
|
767
771
|
if (e.h !== lt) return !1;
|
|
768
772
|
var t = e.v;
|
|
769
|
-
return
|
|
773
|
+
return gr(t = Vt(t, 0 | t[p]), 2048), e.v = t, e.h = void 0, e.m = void 0, !0;
|
|
770
774
|
}
|
|
771
775
|
function Ht(e) {
|
|
772
776
|
if (!Gt(e) && ce(e, 0 | e.v[p])) throw Error();
|
|
773
777
|
}
|
|
774
|
-
function
|
|
778
|
+
function mt(e, t) {
|
|
775
779
|
t === void 0 && (t = 0 | e[p]), 32 & t && !(4096 & t) && H(e, 4096 | t);
|
|
776
780
|
}
|
|
777
781
|
function dn(e, t, r) {
|
|
778
782
|
return !!(2 & r) || !(!(32 & r) || 4096 & r) && (H(t, 2 | r), e.h = lt, !0);
|
|
779
783
|
}
|
|
780
|
-
const
|
|
784
|
+
const Bh = ae(0), De = {};
|
|
781
785
|
function L(e, t, r, s, n) {
|
|
782
786
|
if ((t = Ie(e.v, t, r, n)) !== null || s && e.m !== lt) return t;
|
|
783
787
|
}
|
|
@@ -812,7 +816,7 @@ function V(e, t, r, s, n) {
|
|
|
812
816
|
return i <= o ? (e[i] = s, t) : (s !== void 0 && (r >= (o = (t ?? (t = 0 | e[p])) >> 14 & 1023 || 536870912) ? s != null && (e[o + (n ? 0 : -1)] = { [r]: s }) : e[i] = s), t);
|
|
813
817
|
}
|
|
814
818
|
function tt() {
|
|
815
|
-
return
|
|
819
|
+
return lh === void 0 ? 2 : 4;
|
|
816
820
|
}
|
|
817
821
|
function rt(e, t, r, s, n) {
|
|
818
822
|
let i = e.v, o = 0 | i[p];
|
|
@@ -828,11 +832,11 @@ function rt(e, t, r, s, n) {
|
|
|
828
832
|
}
|
|
829
833
|
l < h && (e.length = l), r = -513 & (4 | c), c = r &= -1025, c &= -4097;
|
|
830
834
|
}
|
|
831
|
-
return c !== a && (H(e, c), 2 & c && Object.freeze(e)),
|
|
835
|
+
return c !== a && (H(e, c), 2 & c && Object.freeze(e)), Xo(e, c, i, o, t, s, u, n);
|
|
832
836
|
}
|
|
833
|
-
function
|
|
837
|
+
function Xo(e, t, r, s, n, i, o, a) {
|
|
834
838
|
let c = t;
|
|
835
|
-
return i === 1 || i === 4 && (2 & t || !(16 & t) && 32 & s) ? it(t) || ((t |= !e.length || o && !(4096 & t) || 32 & s && !(4096 & t || 16 & t) ? 2 : 256) !== c && H(e, t), Object.freeze(e)) : (i === 2 && it(t) && (e = ve(e), c = 0, t = ot(t, s), s = V(r, s, n, e)), it(t) || (a || (t |= 16), t !== c && H(e, t))), 2 & t || !(4096 & t || 16 & t) ||
|
|
839
|
+
return i === 1 || i === 4 && (2 & t || !(16 & t) && 32 & s) ? it(t) || ((t |= !e.length || o && !(4096 & t) || 32 & s && !(4096 & t || 16 & t) ? 2 : 256) !== c && H(e, t), Object.freeze(e)) : (i === 2 && it(t) && (e = ve(e), c = 0, t = ot(t, s), s = V(r, s, n, e)), it(t) || (a || (t |= 16), t !== c && H(e, t))), 2 & t || !(4096 & t || 16 & t) || mt(r, s), e;
|
|
836
840
|
}
|
|
837
841
|
function fn(e, t, r) {
|
|
838
842
|
return e = Ie(e, t, r), Array.isArray(e) ? e : pt;
|
|
@@ -843,10 +847,10 @@ function pn(e, t) {
|
|
|
843
847
|
function it(e) {
|
|
844
848
|
return !!(2 & e) && !!(4 & e) || !!(256 & e);
|
|
845
849
|
}
|
|
846
|
-
function
|
|
850
|
+
function Yo(e) {
|
|
847
851
|
return rn(e, !0);
|
|
848
852
|
}
|
|
849
|
-
function
|
|
853
|
+
function Qo(e) {
|
|
850
854
|
e = ve(e);
|
|
851
855
|
for (let t = 0; t < e.length; t++) {
|
|
852
856
|
const r = e[t] = ve(e[t]);
|
|
@@ -864,20 +868,20 @@ function zt(e, t, r) {
|
|
|
864
868
|
return (2 & o || it(o) || 16 & o) && (o === i || it(o) || H(n, o), n = ve(n), i = 0, o = ot(o, t), V(e, t, r, n, s)), o &= -13, o !== i && H(n, o), n;
|
|
865
869
|
}
|
|
866
870
|
function ys(e, t) {
|
|
867
|
-
var r =
|
|
868
|
-
return mn(
|
|
871
|
+
var r = Ga;
|
|
872
|
+
return gn(mn(e = e.v), e, void 0, r) === t ? t : -1;
|
|
869
873
|
}
|
|
870
|
-
function
|
|
874
|
+
function mn(e) {
|
|
871
875
|
if (Ut) return e[Qt] ?? (e[Qt] = /* @__PURE__ */ new Map());
|
|
872
876
|
if (Qt in e) return e[Qt];
|
|
873
877
|
const t = /* @__PURE__ */ new Map();
|
|
874
878
|
return Object.defineProperty(e, Qt, { value: t }), t;
|
|
875
879
|
}
|
|
876
|
-
function
|
|
877
|
-
const i =
|
|
880
|
+
function Jo(e, t, r, s, n) {
|
|
881
|
+
const i = mn(e), o = gn(i, e, t, r, n);
|
|
878
882
|
return o !== s && (o && (t = V(e, t, o, void 0, n)), i.set(r, s)), t;
|
|
879
883
|
}
|
|
880
|
-
function
|
|
884
|
+
function gn(e, t, r, s, n) {
|
|
881
885
|
let i = e.get(s);
|
|
882
886
|
if (i != null) return i;
|
|
883
887
|
i = 0;
|
|
@@ -901,23 +905,23 @@ function yn(e, t, r) {
|
|
|
901
905
|
}
|
|
902
906
|
return o = nt(o, t), o !== i && V(e, s, r, o, n), o;
|
|
903
907
|
}
|
|
904
|
-
function
|
|
908
|
+
function Zo(e, t, r, s, n) {
|
|
905
909
|
let i = !1;
|
|
906
910
|
if ((s = Ie(e, s, n, ((o) => {
|
|
907
911
|
const a = hn(o, r, !1, t);
|
|
908
912
|
return i = a !== o && a != null, a;
|
|
909
|
-
}))) != null) return i && !ce(s) &&
|
|
913
|
+
}))) != null) return i && !ce(s) && mt(e, t), s;
|
|
910
914
|
}
|
|
911
915
|
function A(e, t, r, s) {
|
|
912
916
|
let n = e.v, i = 0 | n[p];
|
|
913
|
-
if ((t =
|
|
917
|
+
if ((t = Zo(n, i, t, r, s)) == null) return t;
|
|
914
918
|
if (i = 0 | n[p], !ce(e, i)) {
|
|
915
919
|
const o = ln(t);
|
|
916
|
-
o !== t && (Gt(e) && (n = e.v, i = 0 | n[p]), i = V(n, i, r, t = o, s),
|
|
920
|
+
o !== t && (Gt(e) && (n = e.v, i = 0 | n[p]), i = V(n, i, r, t = o, s), mt(n, i));
|
|
917
921
|
}
|
|
918
922
|
return t;
|
|
919
923
|
}
|
|
920
|
-
function
|
|
924
|
+
function ea(e, t, r, s, n, i, o, a) {
|
|
921
925
|
var c = ce(e, r);
|
|
922
926
|
i = c ? 1 : i, o = !!o || i === 3, c = a && !c, (i === 2 || c) && Gt(e) && (r = 0 | (t = e.v)[p]);
|
|
923
927
|
var u = (e = fn(t, n)) === pt ? 7 : 0 | e[p], h = pn(u, r);
|
|
@@ -942,45 +946,45 @@ function Zo(e, t, r, s, n, i, o, a) {
|
|
|
942
946
|
for (it(h) && (e = ve(e), h = ot(h, r), r = V(t, r, n, e)), s = e, c = h, u = 0; u < s.length; u++) (l = s[u]) !== (h = ln(l)) && (s[u] = h);
|
|
943
947
|
c |= 8, H(e, h = c = s.length ? 4096 | c : -4097 & c);
|
|
944
948
|
}
|
|
945
|
-
return
|
|
949
|
+
return Xo(e, h, t, r, n, i, a, o);
|
|
946
950
|
}
|
|
947
951
|
function Ne(e, t, r) {
|
|
948
952
|
const s = e.v;
|
|
949
|
-
return
|
|
953
|
+
return ea(e, s, 0 | s[p], t, r, tt(), !1, !0);
|
|
950
954
|
}
|
|
951
|
-
function
|
|
955
|
+
function ta(e) {
|
|
952
956
|
return e == null && (e = void 0), e;
|
|
953
957
|
}
|
|
954
958
|
function v(e, t, r, s, n) {
|
|
955
|
-
return k(e, r, s =
|
|
959
|
+
return k(e, r, s = ta(s), n), s && !ce(s) && mt(e.v), e;
|
|
956
960
|
}
|
|
957
961
|
function rr(e, t, r, s) {
|
|
958
962
|
e: {
|
|
959
|
-
var n = s =
|
|
963
|
+
var n = s = ta(s);
|
|
960
964
|
Ht(e);
|
|
961
965
|
const i = e.v;
|
|
962
966
|
let o = 0 | i[p];
|
|
963
967
|
if (n == null) {
|
|
964
|
-
const a =
|
|
965
|
-
if (
|
|
968
|
+
const a = mn(i);
|
|
969
|
+
if (gn(a, i, o, r) !== t) break e;
|
|
966
970
|
a.set(r, 0);
|
|
967
|
-
} else o =
|
|
971
|
+
} else o = Jo(i, o, r, t);
|
|
968
972
|
V(i, o, t, n);
|
|
969
973
|
}
|
|
970
|
-
s && !ce(s) &&
|
|
974
|
+
s && !ce(s) && mt(e.v);
|
|
971
975
|
}
|
|
972
976
|
function ot(e, t) {
|
|
973
977
|
return -273 & (2 & t ? 2 | e : -3 & e);
|
|
974
978
|
}
|
|
975
979
|
function bn(e, t, r, s) {
|
|
976
980
|
var n = s;
|
|
977
|
-
Ht(e), e =
|
|
981
|
+
Ht(e), e = ea(e, s = e.v, 0 | s[p], r, t, 2, !0), n = n ?? new r(), e.push(n), t = r = e === pt ? 7 : 0 | e[p], (n = ce(n)) ? (r &= -9, e.length === 1 && (r &= -4097)) : r |= 4096, r !== t && H(e, r), n || mt(s);
|
|
978
982
|
}
|
|
979
|
-
function
|
|
983
|
+
function ge(e, t, r) {
|
|
980
984
|
return jt(L(e, t, void 0, r));
|
|
981
985
|
}
|
|
982
|
-
function
|
|
983
|
-
return (Zs ? L(e, 2, void 0, void 0, Fr) : Fr(L(e, 2))) ??
|
|
986
|
+
function ra(e) {
|
|
987
|
+
return (Zs ? L(e, 2, void 0, void 0, Fr) : Fr(L(e, 2))) ?? Bh;
|
|
984
988
|
}
|
|
985
989
|
function I(e, t) {
|
|
986
990
|
return L(e, t, void 0, void 0, Te) ?? 0;
|
|
@@ -1007,7 +1011,7 @@ function Or(e, t, r) {
|
|
|
1007
1011
|
else {
|
|
1008
1012
|
var s = e = r === pt ? 7 : 0 | r[p], n = it(e), i = n || Object.isFrozen(r);
|
|
1009
1013
|
for (n || (e = 0), i || (r = ve(r), s = 0, e = ot(e, a), i = !1), e |= 5, e |= (4 & e ? 512 & e ? 512 : 1024 & e ? 1024 : 0 : void 0) ?? (Zs ? 1024 : 0), n = 0; n < r.length; n++) {
|
|
1010
|
-
const c = r[n], u =
|
|
1014
|
+
const c = r[n], u = Wo(c);
|
|
1011
1015
|
Object.is(c, u) || (i && (r = ve(r), s = 0, e = ot(e, a), i = !1), r[n] = u);
|
|
1012
1016
|
}
|
|
1013
1017
|
e !== s && (i && (r = ve(r), e = ot(e, a)), H(r, e)), V(o, a, t, r);
|
|
@@ -1015,7 +1019,7 @@ function Or(e, t, r) {
|
|
|
1015
1019
|
}
|
|
1016
1020
|
}
|
|
1017
1021
|
function qr(e, t, r) {
|
|
1018
|
-
Ht(e), rt(e, t, Y, 2, !0).push(
|
|
1022
|
+
Ht(e), rt(e, t, Y, 2, !0).push(Wo(r));
|
|
1019
1023
|
}
|
|
1020
1024
|
var bt = class {
|
|
1021
1025
|
constructor(e, t, r) {
|
|
@@ -1024,7 +1028,7 @@ var bt = class {
|
|
|
1024
1028
|
}
|
|
1025
1029
|
};
|
|
1026
1030
|
function vn(e, t) {
|
|
1027
|
-
if (typeof e == "string") return new bt(
|
|
1031
|
+
if (typeof e == "string") return new bt(Fo(e), t);
|
|
1028
1032
|
if (Array.isArray(e)) return new bt(new Uint8Array(e), t);
|
|
1029
1033
|
if (e.constructor === Uint8Array) return new bt(e, !1);
|
|
1030
1034
|
if (e.constructor === ArrayBuffer) return e = new Uint8Array(e), new bt(e, !1);
|
|
@@ -1068,35 +1072,35 @@ function Rr(e) {
|
|
|
1068
1072
|
const i = t[r + 2];
|
|
1069
1073
|
return t = t[r + 3], at(e, e.g + 4), e = 2 * ((n = (s << 0 | n << 8 | i << 16 | t << 24) >>> 0) >> 31) + 1, s = n >>> 23 & 255, n &= 8388607, s == 255 ? n ? NaN : e * (1 / 0) : s == 0 ? 1401298464324817e-60 * e * n : e * Math.pow(2, s - 150) * (n + 8388608);
|
|
1070
1074
|
}
|
|
1071
|
-
function
|
|
1075
|
+
function Uh(e) {
|
|
1072
1076
|
return Ke(e);
|
|
1073
1077
|
}
|
|
1074
1078
|
function at(e, t) {
|
|
1075
1079
|
if (e.g = t, t > e.l) throw Error();
|
|
1076
1080
|
}
|
|
1077
|
-
function
|
|
1081
|
+
function sa(e, t) {
|
|
1078
1082
|
if (t < 0) throw Error();
|
|
1079
1083
|
const r = e.g;
|
|
1080
1084
|
if ((t = r + t) > e.l) throw Error();
|
|
1081
1085
|
return e.g = t, r;
|
|
1082
1086
|
}
|
|
1083
|
-
function
|
|
1087
|
+
function na(e, t) {
|
|
1084
1088
|
if (t == 0) return ut();
|
|
1085
|
-
var r =
|
|
1086
|
-
return e.Y && e.j ? r = e.h.subarray(r, r + t) : (e = e.h, r = r === (t = r + t) ? new Uint8Array(0) :
|
|
1089
|
+
var r = sa(e, t);
|
|
1090
|
+
return e.Y && e.j ? r = e.h.subarray(r, r + t) : (e = e.h, r = r === (t = r + t) ? new Uint8Array(0) : bh ? e.slice(r, t) : new Uint8Array(e.subarray(r, t))), r.length == 0 ? ut() : new Ce(r, St);
|
|
1087
1091
|
}
|
|
1088
|
-
var
|
|
1089
|
-
function
|
|
1092
|
+
var bi = [];
|
|
1093
|
+
function ia(e, t, r, s) {
|
|
1090
1094
|
if (Ir.length) {
|
|
1091
1095
|
const n = Ir.pop();
|
|
1092
1096
|
return n.o(s), n.g.init(e, t, r, s), n;
|
|
1093
1097
|
}
|
|
1094
|
-
return new
|
|
1098
|
+
return new Dh(e, t, r, s);
|
|
1095
1099
|
}
|
|
1096
|
-
function
|
|
1100
|
+
function oa(e) {
|
|
1097
1101
|
e.g.clear(), e.l = -1, e.h = -1, Ir.length < 100 && Ir.push(e);
|
|
1098
1102
|
}
|
|
1099
|
-
function
|
|
1103
|
+
function aa(e) {
|
|
1100
1104
|
var t = e.g;
|
|
1101
1105
|
if (t.g == t.l) return !1;
|
|
1102
1106
|
e.m = e.g.g;
|
|
@@ -1124,7 +1128,7 @@ function Pr(e) {
|
|
|
1124
1128
|
break;
|
|
1125
1129
|
case 3:
|
|
1126
1130
|
for (t = e.l; ; ) {
|
|
1127
|
-
if (!
|
|
1131
|
+
if (!aa(e)) throw Error();
|
|
1128
1132
|
if (e.h == 4) {
|
|
1129
1133
|
if (e.l != t) throw Error();
|
|
1130
1134
|
break;
|
|
@@ -1144,8 +1148,8 @@ function wr(e, t, r) {
|
|
|
1144
1148
|
return e.g.g = n, e.g.l = s, t;
|
|
1145
1149
|
}
|
|
1146
1150
|
function wn(e) {
|
|
1147
|
-
var t = Ue(e.g), r =
|
|
1148
|
-
if (e = e.h,
|
|
1151
|
+
var t = Ue(e.g), r = sa(e = e.g, t);
|
|
1152
|
+
if (e = e.h, Qc) {
|
|
1149
1153
|
var s, n = e;
|
|
1150
1154
|
(s = ps) || (s = ps = new TextDecoder("utf-8", { fatal: !0 })), t = r + t, n = r === 0 && t === n.length ? n : n.subarray(r, t);
|
|
1151
1155
|
try {
|
|
@@ -1169,24 +1173,24 @@ function wn(e) {
|
|
|
1169
1173
|
let a, c = null;
|
|
1170
1174
|
for (; i < t; ) {
|
|
1171
1175
|
var o = e[i++];
|
|
1172
|
-
o < 128 ? r.push(o) : o < 224 ? i >= t ? Qe() : (a = e[i++], o < 194 || (192 & a) != 128 ? (i--, Qe()) : r.push((31 & o) << 6 | 63 & a)) : o < 240 ? i >= t - 1 ? Qe() : (a = e[i++], (192 & a) != 128 || o === 224 && a < 160 || o === 237 && a >= 160 || (192 & (s = e[i++])) != 128 ? (i--, Qe()) : r.push((15 & o) << 12 | (63 & a) << 6 | 63 & s)) : o <= 244 ? i >= t - 2 ? Qe() : (a = e[i++], (192 & a) != 128 || a - 144 + (o << 28) >> 30 != 0 || (192 & (s = e[i++])) != 128 || (192 & (n = e[i++])) != 128 ? (i--, Qe()) : (o = (7 & o) << 18 | (63 & a) << 12 | (63 & s) << 6 | 63 & n, o -= 65536, r.push(55296 + (o >> 10 & 1023), 56320 + (1023 & o)))) : Qe(), r.length >= 8192 && (c =
|
|
1176
|
+
o < 128 ? r.push(o) : o < 224 ? i >= t ? Qe() : (a = e[i++], o < 194 || (192 & a) != 128 ? (i--, Qe()) : r.push((31 & o) << 6 | 63 & a)) : o < 240 ? i >= t - 1 ? Qe() : (a = e[i++], (192 & a) != 128 || o === 224 && a < 160 || o === 237 && a >= 160 || (192 & (s = e[i++])) != 128 ? (i--, Qe()) : r.push((15 & o) << 12 | (63 & a) << 6 | 63 & s)) : o <= 244 ? i >= t - 2 ? Qe() : (a = e[i++], (192 & a) != 128 || a - 144 + (o << 28) >> 30 != 0 || (192 & (s = e[i++])) != 128 || (192 & (n = e[i++])) != 128 ? (i--, Qe()) : (o = (7 & o) << 18 | (63 & a) << 12 | (63 & s) << 6 | 63 & n, o -= 65536, r.push(55296 + (o >> 10 & 1023), 56320 + (1023 & o)))) : Qe(), r.length >= 8192 && (c = ti(c, r), r.length = 0);
|
|
1173
1177
|
}
|
|
1174
|
-
i =
|
|
1178
|
+
i = ti(c, r);
|
|
1175
1179
|
}
|
|
1176
1180
|
return i;
|
|
1177
1181
|
}
|
|
1178
|
-
function
|
|
1182
|
+
function ca(e) {
|
|
1179
1183
|
const t = Ue(e.g);
|
|
1180
|
-
return
|
|
1184
|
+
return na(e.g, t);
|
|
1181
1185
|
}
|
|
1182
1186
|
function Xr(e, t, r) {
|
|
1183
1187
|
var s = Ue(e.g);
|
|
1184
1188
|
for (s = e.g.g + s; e.g.g < s; ) r.push(t(e.g));
|
|
1185
1189
|
}
|
|
1186
|
-
var
|
|
1190
|
+
var Dh = class {
|
|
1187
1191
|
constructor(e, t, r, s) {
|
|
1188
|
-
if (
|
|
1189
|
-
const n =
|
|
1192
|
+
if (bi.length) {
|
|
1193
|
+
const n = bi.pop();
|
|
1190
1194
|
n.init(e, t, r, s), e = n;
|
|
1191
1195
|
} else e = new class {
|
|
1192
1196
|
constructor(n, i, o, a) {
|
|
@@ -1205,24 +1209,24 @@ var Bh = class {
|
|
|
1205
1209
|
this.ha = e;
|
|
1206
1210
|
}
|
|
1207
1211
|
}, Ir = [];
|
|
1208
|
-
function
|
|
1209
|
-
return e ? /^\d+$/.test(e) ? (Hr(e), new Os(M, B)) : null :
|
|
1212
|
+
function vi(e) {
|
|
1213
|
+
return e ? /^\d+$/.test(e) ? (Hr(e), new Os(M, B)) : null : jh || (jh = new Os(0, 0));
|
|
1210
1214
|
}
|
|
1211
1215
|
var Os = class {
|
|
1212
1216
|
constructor(e, t) {
|
|
1213
1217
|
this.h = e >>> 0, this.g = t >>> 0;
|
|
1214
1218
|
}
|
|
1215
1219
|
};
|
|
1216
|
-
let
|
|
1217
|
-
function
|
|
1218
|
-
return e ? /^-?\d+$/.test(e) ? (Hr(e), new Rs(M, B)) : null :
|
|
1220
|
+
let jh;
|
|
1221
|
+
function _i(e) {
|
|
1222
|
+
return e ? /^-?\d+$/.test(e) ? (Hr(e), new Rs(M, B)) : null : Vh || (Vh = new Rs(0, 0));
|
|
1219
1223
|
}
|
|
1220
1224
|
var Rs = class {
|
|
1221
1225
|
constructor(e, t) {
|
|
1222
1226
|
this.h = e >>> 0, this.g = t >>> 0;
|
|
1223
1227
|
}
|
|
1224
1228
|
};
|
|
1225
|
-
let
|
|
1229
|
+
let Vh;
|
|
1226
1230
|
function At(e, t, r) {
|
|
1227
1231
|
for (; r > 0 || t > 127; ) e.g.push(127 & t | 128), t = (t >>> 7 | r << 25) >>> 0, r >>>= 7;
|
|
1228
1232
|
e.g.push(t);
|
|
@@ -1270,25 +1274,25 @@ function Pe() {
|
|
|
1270
1274
|
};
|
|
1271
1275
|
return Object.setPrototypeOf(e, e.prototype), e;
|
|
1272
1276
|
}
|
|
1273
|
-
var Sn = Pe(),
|
|
1277
|
+
var Sn = Pe(), ha = Pe(), Tn = Pe(), Cn = Pe(), ua = Pe(), la = Pe(), Gh = Pe(), Jr = Pe(), da = Pe(), fa = Pe();
|
|
1274
1278
|
function Me(e, t, r) {
|
|
1275
1279
|
var s = e.v;
|
|
1276
1280
|
oe && oe in s && (s = s[oe]) && delete s[t.g], t.h ? t.j(e, t.h, t.g, r, t.l) : t.j(e, t.g, r, t.l);
|
|
1277
1281
|
}
|
|
1278
|
-
var
|
|
1282
|
+
var m = class {
|
|
1279
1283
|
constructor(e, t) {
|
|
1280
|
-
this.v =
|
|
1284
|
+
this.v = qo(e, t, void 0, 2048);
|
|
1281
1285
|
}
|
|
1282
1286
|
toJSON() {
|
|
1283
|
-
return
|
|
1287
|
+
return Ko(this);
|
|
1284
1288
|
}
|
|
1285
1289
|
j() {
|
|
1286
1290
|
var n;
|
|
1287
|
-
var e =
|
|
1288
|
-
if (Ut && s && ((n = t[s]) == null ? void 0 : n[r]) != null && Tt(
|
|
1289
|
-
s(r, t,
|
|
1291
|
+
var e = Su, t = this.v, r = e.g, s = oe;
|
|
1292
|
+
if (Ut && s && ((n = t[s]) == null ? void 0 : n[r]) != null && Tt(ch, 3), t = e.g, ai && oe && ai === void 0 && (s = (r = this.v)[oe]) && (s = s.da)) try {
|
|
1293
|
+
s(r, t, Fh);
|
|
1290
1294
|
} catch (i) {
|
|
1291
|
-
|
|
1295
|
+
Lo(i);
|
|
1292
1296
|
}
|
|
1293
1297
|
return e.h ? e.m(this, e.h, e.g, e.l) : e.m(this, e.g, e.defaultValue, e.l);
|
|
1294
1298
|
}
|
|
@@ -1297,7 +1301,7 @@ var g = class {
|
|
|
1297
1301
|
return dn(this, e, t) ? un(this, e, !0) : new this.constructor(Vt(e, t, !1));
|
|
1298
1302
|
}
|
|
1299
1303
|
};
|
|
1300
|
-
|
|
1304
|
+
m.prototype[Ct] = Lt, m.prototype.toString = function() {
|
|
1301
1305
|
return this.v.toString();
|
|
1302
1306
|
};
|
|
1303
1307
|
var Kt = class {
|
|
@@ -1308,25 +1312,25 @@ var Kt = class {
|
|
|
1308
1312
|
function Zr(e, t) {
|
|
1309
1313
|
return new Kt(e, t, Sn);
|
|
1310
1314
|
}
|
|
1311
|
-
function
|
|
1312
|
-
Nr(e, r,
|
|
1315
|
+
function pa(e, t, r, s, n) {
|
|
1316
|
+
Nr(e, r, ba(t, s), n);
|
|
1313
1317
|
}
|
|
1314
|
-
const
|
|
1318
|
+
const Hh = Zr((function(e, t, r, s, n) {
|
|
1315
1319
|
return e.h === 2 && (wr(e, yn(t, s, r), n), !0);
|
|
1316
|
-
}),
|
|
1320
|
+
}), pa), zh = Zr((function(e, t, r, s, n) {
|
|
1317
1321
|
return e.h === 2 && (wr(e, yn(t, s, r), n), !0);
|
|
1318
|
-
}),
|
|
1319
|
-
var es = Symbol(), ts = Symbol(), Is = Symbol(),
|
|
1320
|
-
let
|
|
1321
|
-
function
|
|
1322
|
+
}), pa);
|
|
1323
|
+
var es = Symbol(), ts = Symbol(), Is = Symbol(), wi = Symbol(), Ai = Symbol();
|
|
1324
|
+
let ma, ga;
|
|
1325
|
+
function gt(e, t, r, s) {
|
|
1322
1326
|
var n = s[e];
|
|
1323
1327
|
if (n) return n;
|
|
1324
1328
|
(n = {}).qa = s, n.T = (function(l) {
|
|
1325
1329
|
switch (typeof l) {
|
|
1326
1330
|
case "boolean":
|
|
1327
|
-
return
|
|
1331
|
+
return Rh || (Rh = [0, void 0, !0]);
|
|
1328
1332
|
case "number":
|
|
1329
|
-
return l > 0 ? void 0 : l === 0 ?
|
|
1333
|
+
return l > 0 ? void 0 : l === 0 ? Ih || (Ih = [0, void 0]) : [-l, void 0];
|
|
1330
1334
|
case "string":
|
|
1331
1335
|
return [0, l];
|
|
1332
1336
|
case "object":
|
|
@@ -1335,7 +1339,7 @@ function mt(e, t, r, s) {
|
|
|
1335
1339
|
})(s[0]);
|
|
1336
1340
|
var i = s[1];
|
|
1337
1341
|
let o = 1;
|
|
1338
|
-
i && i.constructor === Object && (n.ba = i, typeof (i = s[++o]) == "function" && (n.ma = !0,
|
|
1342
|
+
i && i.constructor === Object && (n.ba = i, typeof (i = s[++o]) == "function" && (n.ma = !0, ma ?? (ma = i), ga ?? (ga = s[o + 1]), i = s[o += 2]));
|
|
1339
1343
|
const a = {};
|
|
1340
1344
|
for (; i && Array.isArray(i) && i.length && typeof i[0] == "number" && i[0] > 0; ) {
|
|
1341
1345
|
for (var c = 0; c < i.length; c++) a[i[c]] = i;
|
|
@@ -1345,7 +1349,7 @@ function mt(e, t, r, s) {
|
|
|
1345
1349
|
let l;
|
|
1346
1350
|
typeof i == "number" && (c += i, i = s[++o]);
|
|
1347
1351
|
var u = void 0;
|
|
1348
|
-
if (i instanceof Kt ? l = i : (l =
|
|
1352
|
+
if (i instanceof Kt ? l = i : (l = Hh, o--), l == null ? void 0 : l.l) {
|
|
1349
1353
|
i = s[++o], u = s;
|
|
1350
1354
|
var h = o;
|
|
1351
1355
|
typeof i == "function" && (i = i(), u[h] = i), u = i;
|
|
@@ -1357,11 +1361,11 @@ function mt(e, t, r, s) {
|
|
|
1357
1361
|
}
|
|
1358
1362
|
return s[e] = n;
|
|
1359
1363
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return Array.isArray(e) ? e[0] instanceof Kt ? e : [
|
|
1364
|
+
function ya(e) {
|
|
1365
|
+
return Array.isArray(e) ? e[0] instanceof Kt ? e : [zh, e] : [e, void 0];
|
|
1362
1366
|
}
|
|
1363
|
-
function
|
|
1364
|
-
return e instanceof
|
|
1367
|
+
function ba(e, t) {
|
|
1368
|
+
return e instanceof m ? e.v : Array.isArray(e) ? nt(e, t) : void 0;
|
|
1365
1369
|
}
|
|
1366
1370
|
function Ln(e, t, r, s) {
|
|
1367
1371
|
const n = r.g;
|
|
@@ -1370,29 +1374,29 @@ function Ln(e, t, r, s) {
|
|
|
1370
1374
|
function Pn(e, t, r, s, n) {
|
|
1371
1375
|
const i = r.g;
|
|
1372
1376
|
let o, a;
|
|
1373
|
-
e[t] = (c, u, h) => i(c, u, h, a || (a =
|
|
1377
|
+
e[t] = (c, u, h) => i(c, u, h, a || (a = gt(ts, Ln, Pn, s).T), o || (o = Mn(s)), n);
|
|
1374
1378
|
}
|
|
1375
1379
|
function Mn(e) {
|
|
1376
1380
|
let t = e[Is];
|
|
1377
1381
|
if (t != null) return t;
|
|
1378
|
-
const r =
|
|
1379
|
-
return t = r.ma ? (s, n) =>
|
|
1380
|
-
for (;
|
|
1382
|
+
const r = gt(ts, Ln, Pn, e);
|
|
1383
|
+
return t = r.ma ? (s, n) => ma(s, n, r) : (s, n) => {
|
|
1384
|
+
for (; aa(n) && n.h != 4; ) {
|
|
1381
1385
|
var i = n.l, o = r[i];
|
|
1382
1386
|
if (o == null) {
|
|
1383
1387
|
var a = r.ba;
|
|
1384
|
-
a && (a = a[i]) && (a =
|
|
1388
|
+
a && (a = a[i]) && (a = Kh(a)) != null && (o = r[i] = a);
|
|
1385
1389
|
}
|
|
1386
1390
|
if (o == null || !o(n, s, i)) {
|
|
1387
1391
|
if (o = (a = n).m, Pr(a), a.ha) var c = void 0;
|
|
1388
|
-
else c = a.g.g - o, a.g.g = o, c =
|
|
1392
|
+
else c = a.g.g - o, a.g.g = o, c = na(a.g, c);
|
|
1389
1393
|
o = void 0, a = s, c && ((o = a[oe] ?? (a[oe] = new $s()))[i] ?? (o[i] = [])).push(c);
|
|
1390
1394
|
}
|
|
1391
1395
|
}
|
|
1392
|
-
return (s = Wr(s)) && (s.da = r.qa[
|
|
1393
|
-
}, e[Is] = t, e[
|
|
1396
|
+
return (s = Wr(s)) && (s.da = r.qa[Ai]), !0;
|
|
1397
|
+
}, e[Is] = t, e[Ai] = Wh.bind(e), t;
|
|
1394
1398
|
}
|
|
1395
|
-
function
|
|
1399
|
+
function Wh(e, t, r, s) {
|
|
1396
1400
|
var n = this[ts];
|
|
1397
1401
|
const i = this[Is], o = nt(void 0, n.T), a = Wr(e);
|
|
1398
1402
|
if (a) {
|
|
@@ -1400,11 +1404,11 @@ function Hh(e, t, r, s) {
|
|
|
1400
1404
|
if (u) {
|
|
1401
1405
|
if (n = (h, l, d) => {
|
|
1402
1406
|
if (d.length !== 0) if (u[l]) for (const b of d) {
|
|
1403
|
-
h =
|
|
1407
|
+
h = ia(b);
|
|
1404
1408
|
try {
|
|
1405
1409
|
c = !0, i(o, h);
|
|
1406
1410
|
} finally {
|
|
1407
|
-
|
|
1411
|
+
oa(h);
|
|
1408
1412
|
}
|
|
1409
1413
|
}
|
|
1410
1414
|
else s == null || s(e, l, d);
|
|
@@ -1423,17 +1427,17 @@ function Hh(e, t, r, s) {
|
|
|
1423
1427
|
}
|
|
1424
1428
|
S != null && (h = V(e, h, b, S, l)), delete a[b];
|
|
1425
1429
|
};
|
|
1426
|
-
t == null ?
|
|
1430
|
+
t == null ? No(o, 0 | o[p], ((b, S) => {
|
|
1427
1431
|
d(b, S);
|
|
1428
1432
|
})) : d(t, Ie(o, t, l));
|
|
1429
1433
|
}
|
|
1430
1434
|
}
|
|
1431
1435
|
}
|
|
1432
1436
|
}
|
|
1433
|
-
function
|
|
1434
|
-
const t = (e =
|
|
1437
|
+
function Kh(e) {
|
|
1438
|
+
const t = (e = ya(e))[0].g;
|
|
1435
1439
|
if (e = e[1]) {
|
|
1436
|
-
const r = Mn(e), s =
|
|
1440
|
+
const r = Mn(e), s = gt(ts, Ln, Pn, e).T;
|
|
1437
1441
|
return (n, i, o) => t(n, i, o, s, r);
|
|
1438
1442
|
}
|
|
1439
1443
|
return t;
|
|
@@ -1444,26 +1448,26 @@ function rs(e, t, r) {
|
|
|
1444
1448
|
function ss(e, t, r, s) {
|
|
1445
1449
|
let n, i;
|
|
1446
1450
|
const o = r.h;
|
|
1447
|
-
e[t] = (a, c, u) => o(a, c, u, i || (i =
|
|
1451
|
+
e[t] = (a, c, u) => o(a, c, u, i || (i = gt(es, rs, ss, s).T), n || (n = va(s)));
|
|
1448
1452
|
}
|
|
1449
|
-
function
|
|
1450
|
-
let t = e[
|
|
1453
|
+
function va(e) {
|
|
1454
|
+
let t = e[wi];
|
|
1451
1455
|
if (!t) {
|
|
1452
|
-
const r =
|
|
1453
|
-
t = (s, n) =>
|
|
1456
|
+
const r = gt(es, rs, ss, e);
|
|
1457
|
+
t = (s, n) => _a(s, n, r), e[wi] = t;
|
|
1454
1458
|
}
|
|
1455
1459
|
return t;
|
|
1456
1460
|
}
|
|
1457
|
-
function
|
|
1458
|
-
|
|
1461
|
+
function _a(e, t, r) {
|
|
1462
|
+
No(e, 0 | e[p], ((s, n) => {
|
|
1459
1463
|
if (n != null) {
|
|
1460
1464
|
var i = (function(o, a) {
|
|
1461
1465
|
var c = o[a];
|
|
1462
1466
|
if (c) return c;
|
|
1463
1467
|
if ((c = o.ba) && (c = c[a])) {
|
|
1464
|
-
var u = (c =
|
|
1468
|
+
var u = (c = ya(c))[0].h;
|
|
1465
1469
|
if (c = c[1]) {
|
|
1466
|
-
const h =
|
|
1470
|
+
const h = va(c), l = gt(es, rs, ss, c).T;
|
|
1467
1471
|
c = o.ma ? ga(l, h) : (d, b, S) => u(d, b, S, l, h);
|
|
1468
1472
|
} else c = u;
|
|
1469
1473
|
return o[a] = c;
|
|
@@ -1475,7 +1479,7 @@ function va(e, t, r) {
|
|
|
1475
1479
|
for (Ft(t, t.g.end()), s = 0; s < i.length; s++) Ft(t, tn(i[s]) || new Uint8Array(0));
|
|
1476
1480
|
}));
|
|
1477
1481
|
}
|
|
1478
|
-
const
|
|
1482
|
+
const qh = ae(0);
|
|
1479
1483
|
function qt(e, t) {
|
|
1480
1484
|
if (Array.isArray(t)) {
|
|
1481
1485
|
var r = 0 | t[p];
|
|
@@ -1496,14 +1500,14 @@ function Xt(e, t, r) {
|
|
|
1496
1500
|
function X(e, t, r) {
|
|
1497
1501
|
V(e, 0 | e[p], t, r, Dt(0 | e[p]));
|
|
1498
1502
|
}
|
|
1499
|
-
var
|
|
1503
|
+
var Xh = Zr((function(e, t, r, s, n) {
|
|
1500
1504
|
if (e.h !== 2) return !1;
|
|
1501
1505
|
if (e = ve(e = wr(e, nt([void 0, void 0], s), n)), n = Dt(s = 0 | t[p]), 2 & s) throw Error();
|
|
1502
1506
|
let i = Ie(t, r, n);
|
|
1503
1507
|
if (i instanceof Re) (2 & i.J) != 0 ? (i = i.V(), i.push(e), V(t, s, r, i, n)) : i.Ma(e);
|
|
1504
1508
|
else if (Array.isArray(i)) {
|
|
1505
1509
|
var o = 0 | i[p];
|
|
1506
|
-
8192 & o || H(i, o |= 8192), 2 & o && (i =
|
|
1510
|
+
8192 & o || H(i, o |= 8192), 2 & o && (i = Qo(i), V(t, s, r, i, n)), i.push(e);
|
|
1507
1511
|
} else V(t, s, r, hr([e]), n);
|
|
1508
1512
|
return !0;
|
|
1509
1513
|
}), (function(e, t, r, s, n) {
|
|
@@ -1518,19 +1522,19 @@ var Kh = Zr((function(e, t, r, s, n) {
|
|
|
1518
1522
|
hr(t);
|
|
1519
1523
|
}
|
|
1520
1524
|
}));
|
|
1521
|
-
function
|
|
1525
|
+
function wa(e, t, r) {
|
|
1522
1526
|
(t = Te(t)) != null && (ye(e, r, 5), e = e.g, sn(t), An(e));
|
|
1523
1527
|
}
|
|
1524
|
-
function
|
|
1528
|
+
function Aa(e, t, r) {
|
|
1525
1529
|
if (t = (function(s) {
|
|
1526
1530
|
if (s == null) return s;
|
|
1527
1531
|
const n = typeof s;
|
|
1528
1532
|
if (n === "bigint") return String(br(64, s));
|
|
1529
1533
|
if (vr(s)) {
|
|
1530
|
-
if (n === "string") return
|
|
1534
|
+
if (n === "string") return Go(s);
|
|
1531
1535
|
if (n === "number") return cn(s);
|
|
1532
1536
|
}
|
|
1533
|
-
})(t), t != null && (typeof t == "string" &&
|
|
1537
|
+
})(t), t != null && (typeof t == "string" && _i(t), t != null))
|
|
1534
1538
|
switch (ye(e, r, 0), typeof t) {
|
|
1535
1539
|
case "number":
|
|
1536
1540
|
e = e.g, Pt(t), At(e, M, B);
|
|
@@ -1539,57 +1543,57 @@ function wa(e, t, r) {
|
|
|
1539
1543
|
r = BigInt.asUintN(64, t), r = new Rs(Number(r & BigInt(4294967295)), Number(r >> BigInt(32))), At(e.g, r.h, r.g);
|
|
1540
1544
|
break;
|
|
1541
1545
|
default:
|
|
1542
|
-
r =
|
|
1546
|
+
r = _i(t), At(e.g, r.h, r.g);
|
|
1543
1547
|
}
|
|
1544
1548
|
}
|
|
1545
|
-
function Aa(e, t, r) {
|
|
1546
|
-
(t = jt(t)) != null && t != null && (ye(e, r, 0), Yr(e.g, t));
|
|
1547
|
-
}
|
|
1548
1549
|
function Ea(e, t, r) {
|
|
1549
|
-
(t =
|
|
1550
|
+
(t = jt(t)) != null && t != null && (ye(e, r, 0), Yr(e.g, t));
|
|
1550
1551
|
}
|
|
1551
1552
|
function ka(e, t, r) {
|
|
1552
|
-
(t =
|
|
1553
|
+
(t = Do(t)) != null && (ye(e, r, 0), e.g.g.push(t ? 1 : 0));
|
|
1553
1554
|
}
|
|
1554
|
-
function Sa(e, t, r
|
|
1555
|
-
|
|
1555
|
+
function Sa(e, t, r) {
|
|
1556
|
+
(t = Y(t)) != null && Qr(e, r, Co(t));
|
|
1556
1557
|
}
|
|
1557
|
-
function Ta(e, t, r) {
|
|
1558
|
-
(
|
|
1558
|
+
function Ta(e, t, r, s, n) {
|
|
1559
|
+
Nr(e, r, ba(t, s), n);
|
|
1559
1560
|
}
|
|
1560
1561
|
function Ca(e, t, r) {
|
|
1562
|
+
(t = t == null || typeof t == "string" || t instanceof Ce ? t : void 0) != null && Qr(e, r, vn(t, !0).buffer);
|
|
1563
|
+
}
|
|
1564
|
+
function La(e, t, r) {
|
|
1561
1565
|
return (e.h === 5 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Rr, t) : t.push(Rr(e.g)), !0);
|
|
1562
1566
|
}
|
|
1563
1567
|
var U = J((function(e, t, r) {
|
|
1564
1568
|
return e.h === 5 && (X(t, r, Rr(e.g)), !0);
|
|
1565
|
-
}),
|
|
1569
|
+
}), wa, Jr), Yh = Xt(La, (function(e, t, r) {
|
|
1566
1570
|
if ((t = qt(Te, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1567
1571
|
var s = e, n = r, i = t[o];
|
|
1568
1572
|
i != null && (ye(s, n, 5), s = s.g, sn(i), An(s));
|
|
1569
1573
|
}
|
|
1570
|
-
}), Jr), xn = Xt(
|
|
1574
|
+
}), Jr), xn = Xt(La, (function(e, t, r) {
|
|
1571
1575
|
if ((t = qt(Te, t)) != null && t.length) {
|
|
1572
1576
|
ye(e, r, 2), Wt(e.g, 4 * t.length);
|
|
1573
1577
|
for (let s = 0; s < t.length; s++) r = e.g, sn(t[s]), An(r);
|
|
1574
1578
|
}
|
|
1575
|
-
}), Jr),
|
|
1579
|
+
}), Jr), Qh = J((function(e, t, r) {
|
|
1576
1580
|
return e.h === 5 && (X(t, r, (e = Rr(e.g)) === 0 ? void 0 : e), !0);
|
|
1577
|
-
}),
|
|
1578
|
-
return Js ? (e.h !== 0 ? e = !1 : (X(t, r, xt(e.g,
|
|
1579
|
-
}),
|
|
1580
|
-
return Js ? (e.h !== 0 ? t = !1 : (X(t, r, (e = xt(e.g,
|
|
1581
|
-
}),
|
|
1582
|
-
return Js ? (e.h !== 0 ? e = !1 : (X(t, r, xt(e.g,
|
|
1581
|
+
}), wa, Jr), qe = J((function(e, t, r) {
|
|
1582
|
+
return Js ? (e.h !== 0 ? e = !1 : (X(t, r, xt(e.g, Uo)), e = !0), e) : e.h === 0 && (X(t, r, xt(e.g, nn)), !0);
|
|
1583
|
+
}), Aa, la), bs = J((function(e, t, r) {
|
|
1584
|
+
return Js ? (e.h !== 0 ? t = !1 : (X(t, r, (e = xt(e.g, Uo)) === qh ? void 0 : e), t = !0), t) : e.h === 0 && (X(t, r, (e = xt(e.g, nn)) === 0 ? void 0 : e), !0);
|
|
1585
|
+
}), Aa, la), Jh = J((function(e, t, r) {
|
|
1586
|
+
return Js ? (e.h !== 0 ? e = !1 : (X(t, r, xt(e.g, _h)), e = !0), e) : e.h === 0 && (X(t, r, xt(e.g, Fs)), !0);
|
|
1583
1587
|
}), (function(e, t, r) {
|
|
1584
1588
|
if (t = (function(s) {
|
|
1585
1589
|
if (s == null) return s;
|
|
1586
1590
|
var n = typeof s;
|
|
1587
|
-
if (n === "bigint") return String(
|
|
1591
|
+
if (n === "bigint") return String(wh(64, s));
|
|
1588
1592
|
if (vr(s)) {
|
|
1589
1593
|
if (n === "string") return n = Mt(Number(s)), dt(n) && n >= 0 ? s = String(n) : ((n = s.indexOf(".")) !== -1 && (s = s.substring(0, n)), (n = s[0] !== "-" && ((n = s.length) < 20 || n === 20 && s <= "18446744073709551615")) || (Hr(s), s = ur(M, B))), s;
|
|
1590
1594
|
if (n === "number") return (s = Mt(s)) >= 0 && dt(s) || (Pt(s), s = Fs(M, B)), s;
|
|
1591
1595
|
}
|
|
1592
|
-
})(t), t != null && (typeof t == "string" &&
|
|
1596
|
+
})(t), t != null && (typeof t == "string" && vi(t), t != null))
|
|
1593
1597
|
switch (ye(e, r, 0), typeof t) {
|
|
1594
1598
|
case "number":
|
|
1595
1599
|
e = e.g, Pt(t), At(e, M, B);
|
|
@@ -1598,11 +1602,11 @@ var U = J((function(e, t, r) {
|
|
|
1598
1602
|
r = BigInt.asUintN(64, t), r = new Os(Number(r & BigInt(4294967295)), Number(r >> BigInt(32))), At(e.g, r.h, r.g);
|
|
1599
1603
|
break;
|
|
1600
1604
|
default:
|
|
1601
|
-
r =
|
|
1605
|
+
r = vi(t), At(e.g, r.h, r.g);
|
|
1602
1606
|
}
|
|
1603
|
-
}),
|
|
1607
|
+
}), Gh), q = J((function(e, t, r) {
|
|
1604
1608
|
return e.h === 0 && (X(t, r, Ke(e.g)), !0);
|
|
1605
|
-
}),
|
|
1609
|
+
}), Ea, Cn), Ar = Xt((function(e, t, r) {
|
|
1606
1610
|
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Ke, t) : t.push(Ke(e.g)), !0);
|
|
1607
1611
|
}), (function(e, t, r) {
|
|
1608
1612
|
if ((t = qt(jt, t)) != null && t.length) {
|
|
@@ -1612,75 +1616,75 @@ var U = J((function(e, t, r) {
|
|
|
1612
1616
|
}
|
|
1613
1617
|
}), Cn), wt = J((function(e, t, r) {
|
|
1614
1618
|
return e.h === 0 && (X(t, r, (e = Ke(e.g)) === 0 ? void 0 : e), !0);
|
|
1615
|
-
}),
|
|
1619
|
+
}), Ea, Cn), N = J((function(e, t, r) {
|
|
1616
1620
|
return e.h === 0 && (X(t, r, _n(e.g)), !0);
|
|
1617
|
-
}),
|
|
1621
|
+
}), ka, ha), ct = J((function(e, t, r) {
|
|
1618
1622
|
return e.h === 0 && (X(t, r, (e = _n(e.g)) === !1 ? void 0 : e), !0);
|
|
1619
|
-
}),
|
|
1623
|
+
}), ka, ha), Q = Xt((function(e, t, r) {
|
|
1620
1624
|
return e.h === 2 && (e = wn(e), zt(t, 0 | t[p], r).push(e), !0);
|
|
1621
1625
|
}), (function(e, t, r) {
|
|
1622
1626
|
if ((t = qt(Y, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1623
1627
|
var s = e, n = r, i = t[o];
|
|
1624
|
-
i != null && Qr(s, n,
|
|
1628
|
+
i != null && Qr(s, n, Co(i));
|
|
1625
1629
|
}
|
|
1626
1630
|
}), Tn), Ge = J((function(e, t, r) {
|
|
1627
1631
|
return e.h === 2 && (X(t, r, (e = wn(e)) === "" ? void 0 : e), !0);
|
|
1628
|
-
}),
|
|
1632
|
+
}), Sa, Tn), T = J((function(e, t, r) {
|
|
1629
1633
|
return e.h === 2 && (X(t, r, wn(e)), !0);
|
|
1630
|
-
}),
|
|
1634
|
+
}), Sa, Tn), W = (function(e, t, r = Sn) {
|
|
1631
1635
|
return new Kt(e, t, r);
|
|
1632
1636
|
})((function(e, t, r, s, n) {
|
|
1633
1637
|
return e.h === 2 && (s = nt(void 0, s), zt(t, 0 | t[p], r).push(s), wr(e, s, n), !0);
|
|
1634
1638
|
}), (function(e, t, r, s, n) {
|
|
1635
1639
|
if (Array.isArray(t)) {
|
|
1636
|
-
for (let i = 0; i < t.length; i++)
|
|
1640
|
+
for (let i = 0; i < t.length; i++) Ta(e, t[i], r, s, n);
|
|
1637
1641
|
1 & (e = 0 | t[p]) || H(t, 1 | e);
|
|
1638
1642
|
}
|
|
1639
1643
|
})), R = Zr((function(e, t, r, s, n, i) {
|
|
1640
1644
|
if (e.h !== 2) return !1;
|
|
1641
1645
|
let o = 0 | t[p];
|
|
1642
|
-
return
|
|
1643
|
-
}),
|
|
1644
|
-
return e.h === 2 && (X(t, r,
|
|
1645
|
-
}),
|
|
1646
|
+
return Jo(t, o, i, r, Dt(o)), wr(e, t = yn(t, s, r), n), !0;
|
|
1647
|
+
}), Ta), Pa = J((function(e, t, r) {
|
|
1648
|
+
return e.h === 2 && (X(t, r, ca(e)), !0);
|
|
1649
|
+
}), Ca, da), Zh = Xt((function(e, t, r) {
|
|
1646
1650
|
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Ue, t) : t.push(Ue(e.g)), !0);
|
|
1647
1651
|
}), (function(e, t, r) {
|
|
1648
|
-
if ((t = qt(
|
|
1652
|
+
if ((t = qt(jo, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1649
1653
|
var s = e, n = r, i = t[o];
|
|
1650
1654
|
i != null && (ye(s, n, 0), Wt(s.g, i));
|
|
1651
1655
|
}
|
|
1652
|
-
}),
|
|
1656
|
+
}), ua), eu = J((function(e, t, r) {
|
|
1653
1657
|
return e.h === 0 && (X(t, r, (e = Ue(e.g)) === 0 ? void 0 : e), !0);
|
|
1654
1658
|
}), (function(e, t, r) {
|
|
1655
|
-
(t =
|
|
1656
|
-
}),
|
|
1659
|
+
(t = jo(t)) != null && t != null && (ye(e, r, 0), Wt(e.g, t));
|
|
1660
|
+
}), ua), ue = J((function(e, t, r) {
|
|
1657
1661
|
return e.h === 0 && (X(t, r, Ke(e.g)), !0);
|
|
1658
1662
|
}), (function(e, t, r) {
|
|
1659
1663
|
(t = jt(t)) != null && (t = parseInt(t, 10), ye(e, r, 0), Yr(e.g, t));
|
|
1660
|
-
}),
|
|
1661
|
-
class
|
|
1664
|
+
}), fa);
|
|
1665
|
+
class tu {
|
|
1662
1666
|
constructor(t, r) {
|
|
1663
1667
|
var s = de;
|
|
1664
|
-
this.g = t, this.h = r, this.m = A, this.j = v, this.defaultValue = void 0, this.l = s.Oa != null ?
|
|
1668
|
+
this.g = t, this.h = r, this.m = A, this.j = v, this.defaultValue = void 0, this.l = s.Oa != null ? Bo : void 0;
|
|
1665
1669
|
}
|
|
1666
1670
|
register() {
|
|
1667
1671
|
jr(this);
|
|
1668
1672
|
}
|
|
1669
1673
|
}
|
|
1670
1674
|
function xe(e, t) {
|
|
1671
|
-
return new
|
|
1675
|
+
return new tu(e, t);
|
|
1672
1676
|
}
|
|
1673
1677
|
function Xe(e, t) {
|
|
1674
1678
|
return (r, s) => {
|
|
1675
1679
|
{
|
|
1676
1680
|
const i = { ea: !0 };
|
|
1677
|
-
s && Object.assign(i, s), r =
|
|
1681
|
+
s && Object.assign(i, s), r = ia(r, void 0, void 0, i);
|
|
1678
1682
|
try {
|
|
1679
1683
|
const o = new e(), a = o.v;
|
|
1680
1684
|
Mn(t)(a, r);
|
|
1681
1685
|
var n = o;
|
|
1682
1686
|
} finally {
|
|
1683
|
-
|
|
1687
|
+
oa(r);
|
|
1684
1688
|
}
|
|
1685
1689
|
}
|
|
1686
1690
|
return n;
|
|
@@ -1704,7 +1708,7 @@ function ns(e) {
|
|
|
1704
1708
|
}();
|
|
1705
1709
|
}
|
|
1706
1710
|
}();
|
|
1707
|
-
|
|
1711
|
+
_a(this.v, t, gt(es, rs, ss, e)), Ft(t, t.g.end());
|
|
1708
1712
|
const r = new Uint8Array(t.h), s = t.l, n = s.length;
|
|
1709
1713
|
let i = 0;
|
|
1710
1714
|
for (let o = 0; o < n; o++) {
|
|
@@ -1714,31 +1718,31 @@ function ns(e) {
|
|
|
1714
1718
|
return t.l = [r], r;
|
|
1715
1719
|
};
|
|
1716
1720
|
}
|
|
1717
|
-
var
|
|
1721
|
+
var Ei = class extends m {
|
|
1718
1722
|
constructor(e) {
|
|
1719
1723
|
super(e);
|
|
1720
1724
|
}
|
|
1721
|
-
},
|
|
1722
|
-
return e.h === 2 && (X(t, r, (e =
|
|
1725
|
+
}, ki = [0, Ge, J((function(e, t, r) {
|
|
1726
|
+
return e.h === 2 && (X(t, r, (e = ca(e)) === ut() ? void 0 : e), !0);
|
|
1723
1727
|
}), (function(e, t, r) {
|
|
1724
1728
|
if (t != null) {
|
|
1725
|
-
if (t instanceof
|
|
1729
|
+
if (t instanceof m) {
|
|
1726
1730
|
const s = t.Ra;
|
|
1727
1731
|
return void (s ? (t = s(t), t != null && Qr(e, r, vn(t, !0).buffer)) : Tt(Ms, 3));
|
|
1728
1732
|
}
|
|
1729
1733
|
if (Array.isArray(t)) return void Tt(Ms, 3);
|
|
1730
1734
|
}
|
|
1731
|
-
|
|
1732
|
-
}),
|
|
1733
|
-
let vs,
|
|
1734
|
-
function
|
|
1735
|
+
Ca(e, t, r);
|
|
1736
|
+
}), da)];
|
|
1737
|
+
let vs, Si = globalThis.trustedTypes;
|
|
1738
|
+
function Ti(e) {
|
|
1735
1739
|
var t;
|
|
1736
1740
|
return vs === void 0 && (vs = (function() {
|
|
1737
1741
|
let r = null;
|
|
1738
|
-
if (!
|
|
1742
|
+
if (!Si) return r;
|
|
1739
1743
|
try {
|
|
1740
1744
|
const s = (n) => n;
|
|
1741
|
-
r =
|
|
1745
|
+
r = Si.createPolicy("goog#html", { createHTML: s, createScript: s, createScriptURL: s });
|
|
1742
1746
|
} catch {
|
|
1743
1747
|
}
|
|
1744
1748
|
return r;
|
|
@@ -1751,49 +1755,49 @@ function Si(e) {
|
|
|
1751
1755
|
}
|
|
1752
1756
|
}(e);
|
|
1753
1757
|
}
|
|
1754
|
-
function
|
|
1755
|
-
if (t.length === 0) return
|
|
1758
|
+
function ru(e, ...t) {
|
|
1759
|
+
if (t.length === 0) return Ti(e[0]);
|
|
1756
1760
|
let r = e[0];
|
|
1757
1761
|
for (let s = 0; s < t.length; s++) r += encodeURIComponent(t[s]) + e[s + 1];
|
|
1758
|
-
return
|
|
1762
|
+
return Ti(r);
|
|
1759
1763
|
}
|
|
1760
|
-
var
|
|
1764
|
+
var Ma = [0, q, ue, N, -1, Ar, ue, -1, N], su = class extends m {
|
|
1761
1765
|
constructor(e) {
|
|
1762
1766
|
super(e);
|
|
1763
1767
|
}
|
|
1764
|
-
},
|
|
1765
|
-
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e,
|
|
1768
|
+
}, xa = [0, N, T, N, ue, -1, Xt((function(e, t, r) {
|
|
1769
|
+
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Uh, t) : t.push(Ke(e.g)), !0);
|
|
1766
1770
|
}), (function(e, t, r) {
|
|
1767
1771
|
if ((t = qt(jt, t)) != null && t.length) {
|
|
1768
1772
|
r = En(e, r);
|
|
1769
1773
|
for (let s = 0; s < t.length; s++) Yr(e.g, t[s]);
|
|
1770
1774
|
kn(e, r);
|
|
1771
1775
|
}
|
|
1772
|
-
}),
|
|
1776
|
+
}), fa), T, -1, [0, N, -1], ue, N, -1], Fa = [0, 3, N, -1, 2, [0, q], [0, ue, N], [0, T, -1], [0]], $a = [0, T, -2], Ci = class extends m {
|
|
1773
1777
|
constructor(e) {
|
|
1774
1778
|
super(e);
|
|
1775
1779
|
}
|
|
1776
|
-
},
|
|
1780
|
+
}, Oa = [0], Ra = [0, q, N, 1, N, -4], de = class extends m {
|
|
1777
1781
|
constructor(e) {
|
|
1778
1782
|
super(e, 2);
|
|
1779
1783
|
}
|
|
1780
1784
|
}, G = {};
|
|
1781
|
-
G[336783863] = [0, T, N, -1, q, [0, [1, 2, 3, 4, 5, 6, 7, 8, 9], R,
|
|
1782
|
-
var
|
|
1785
|
+
G[336783863] = [0, T, N, -1, q, [0, [1, 2, 3, 4, 5, 6, 7, 8, 9], R, Oa, R, xa, R, $a, R, Ra, R, Ma, R, [0, T, -2], R, [0, T, ue], R, Fa, R, [0, ue, -1, N]], [0, T], N, [0, [1, 3], [2, 4], R, [0, Ar], -1, R, [0, Q], -1, W, [0, T, -1]], T];
|
|
1786
|
+
var Li = [0, bs, -1, ct, -3, bs, Ar, Ge, wt, bs, -1, ct, wt, ct, -2, Ge];
|
|
1783
1787
|
function P(e, t) {
|
|
1784
1788
|
qr(e, 3, t);
|
|
1785
1789
|
}
|
|
1786
1790
|
function _(e, t) {
|
|
1787
1791
|
qr(e, 4, t);
|
|
1788
1792
|
}
|
|
1789
|
-
var ee = class extends
|
|
1793
|
+
var ee = class extends m {
|
|
1790
1794
|
constructor(e) {
|
|
1791
1795
|
super(e, 500);
|
|
1792
1796
|
}
|
|
1793
1797
|
o(e) {
|
|
1794
1798
|
return v(this, 0, 7, e);
|
|
1795
1799
|
}
|
|
1796
|
-
}, sr = [-1, {}],
|
|
1800
|
+
}, sr = [-1, {}], Pi = [0, T, 1, sr], Mi = [0, T, Q, sr];
|
|
1797
1801
|
function be(e, t) {
|
|
1798
1802
|
bn(e, 1, ee, t);
|
|
1799
1803
|
}
|
|
@@ -1803,152 +1807,152 @@ function x(e, t) {
|
|
|
1803
1807
|
function E(e, t) {
|
|
1804
1808
|
qr(e, 15, t);
|
|
1805
1809
|
}
|
|
1806
|
-
var fe = class extends
|
|
1810
|
+
var fe = class extends m {
|
|
1807
1811
|
constructor(e) {
|
|
1808
1812
|
super(e, 500);
|
|
1809
1813
|
}
|
|
1810
1814
|
o(e) {
|
|
1811
1815
|
return v(this, 0, 1001, e);
|
|
1812
1816
|
}
|
|
1813
|
-
},
|
|
1814
|
-
fe.prototype.g = ns(
|
|
1815
|
-
var
|
|
1817
|
+
}, Ia = [-500, W, [-500, Ge, -1, Q, -3, [-2, G, N], W, ki, wt, -1, Pi, Mi, W, [0, Ge, ct], Ge, Li, wt, Q, 987, Q], 4, W, [-500, T, -1, [-1, {}], 998, T], W, [-500, T, Q, -1, [-2, {}, N], 997, Q, -1], wt, W, [-500, T, Q, sr, 998, Q], Q, wt, Pi, Mi, W, [0, Ge, -1, sr], Q, -2, Li, Ge, -1, ct, [0, ct, eu], 978, sr, W, ki];
|
|
1818
|
+
fe.prototype.g = ns(Ia);
|
|
1819
|
+
var nu = Xe(fe, Ia), iu = class extends m {
|
|
1816
1820
|
constructor(e) {
|
|
1817
1821
|
super(e);
|
|
1818
1822
|
}
|
|
1819
|
-
},
|
|
1823
|
+
}, Na = class extends m {
|
|
1820
1824
|
constructor(e) {
|
|
1821
1825
|
super(e);
|
|
1822
1826
|
}
|
|
1823
1827
|
g() {
|
|
1824
|
-
return Ne(this,
|
|
1828
|
+
return Ne(this, iu, 1);
|
|
1825
1829
|
}
|
|
1826
|
-
},
|
|
1830
|
+
}, Ba = [0, W, [0, q, U, T, -1]], is = Xe(Na, Ba), ou = class extends m {
|
|
1827
1831
|
constructor(e) {
|
|
1828
1832
|
super(e);
|
|
1829
1833
|
}
|
|
1830
|
-
},
|
|
1834
|
+
}, au = class extends m {
|
|
1831
1835
|
constructor(e) {
|
|
1832
1836
|
super(e);
|
|
1833
1837
|
}
|
|
1834
|
-
}, _s = class extends
|
|
1838
|
+
}, _s = class extends m {
|
|
1835
1839
|
constructor(e) {
|
|
1836
1840
|
super(e);
|
|
1837
1841
|
}
|
|
1838
1842
|
l() {
|
|
1839
|
-
return A(this,
|
|
1843
|
+
return A(this, ou, 2);
|
|
1840
1844
|
}
|
|
1841
1845
|
g() {
|
|
1842
|
-
return Ne(this,
|
|
1846
|
+
return Ne(this, au, 5);
|
|
1843
1847
|
}
|
|
1844
|
-
},
|
|
1848
|
+
}, Ua = Xe(class extends m {
|
|
1845
1849
|
constructor(e) {
|
|
1846
1850
|
super(e);
|
|
1847
1851
|
}
|
|
1848
|
-
}, [0, Q, Ar, xn, [0, ue, [0, q, -3], [0, U, -3], [0, q, -1, [0, W, [0, q, -2]]], W, [0, U, -1, T, U]], T, -1, qe, W, [0, q, U], Q, qe]),
|
|
1852
|
+
}, [0, Q, Ar, xn, [0, ue, [0, q, -3], [0, U, -3], [0, q, -1, [0, W, [0, q, -2]]], W, [0, U, -1, T, U]], T, -1, qe, W, [0, q, U], Q, qe]), Da = class extends m {
|
|
1849
1853
|
constructor(e) {
|
|
1850
1854
|
super(e);
|
|
1851
1855
|
}
|
|
1852
|
-
}, Et = Xe(class extends
|
|
1856
|
+
}, Et = Xe(class extends m {
|
|
1853
1857
|
constructor(e) {
|
|
1854
1858
|
super(e);
|
|
1855
1859
|
}
|
|
1856
|
-
}, [0, W, [0, U, -4]]),
|
|
1860
|
+
}, [0, W, [0, U, -4]]), ja = class extends m {
|
|
1857
1861
|
constructor(e) {
|
|
1858
1862
|
super(e);
|
|
1859
1863
|
}
|
|
1860
|
-
}, Er = Xe(class extends
|
|
1864
|
+
}, Er = Xe(class extends m {
|
|
1861
1865
|
constructor(e) {
|
|
1862
1866
|
super(e);
|
|
1863
1867
|
}
|
|
1864
|
-
}, [0, W, [0, U, -4]]),
|
|
1868
|
+
}, [0, W, [0, U, -4]]), cu = class extends m {
|
|
1865
1869
|
constructor(e) {
|
|
1866
1870
|
super(e);
|
|
1867
1871
|
}
|
|
1868
|
-
},
|
|
1872
|
+
}, hu = [0, q, -1, xn, ue], Va = class extends m {
|
|
1869
1873
|
constructor(e) {
|
|
1870
1874
|
super(e);
|
|
1871
1875
|
}
|
|
1872
1876
|
};
|
|
1873
|
-
|
|
1874
|
-
var
|
|
1877
|
+
Va.prototype.g = ns([0, U, -4, qe]);
|
|
1878
|
+
var uu = class extends m {
|
|
1875
1879
|
constructor(e) {
|
|
1876
1880
|
super(e);
|
|
1877
1881
|
}
|
|
1878
|
-
},
|
|
1882
|
+
}, lu = Xe(class extends m {
|
|
1879
1883
|
constructor(e) {
|
|
1880
1884
|
super(e);
|
|
1881
1885
|
}
|
|
1882
|
-
}, [0, W, [0, 1, q, T,
|
|
1886
|
+
}, [0, W, [0, 1, q, T, Ba], qe]), xi = class extends m {
|
|
1883
1887
|
constructor(e) {
|
|
1884
1888
|
super(e);
|
|
1885
1889
|
}
|
|
1886
|
-
},
|
|
1890
|
+
}, du = class extends m {
|
|
1887
1891
|
constructor(e) {
|
|
1888
1892
|
super(e);
|
|
1889
1893
|
}
|
|
1890
1894
|
na() {
|
|
1891
|
-
const e = L(this, 1, void 0, void 0,
|
|
1895
|
+
const e = L(this, 1, void 0, void 0, Yo);
|
|
1892
1896
|
return e ?? ut();
|
|
1893
1897
|
}
|
|
1894
|
-
},
|
|
1898
|
+
}, fu = class extends m {
|
|
1895
1899
|
constructor(e) {
|
|
1896
1900
|
super(e);
|
|
1897
1901
|
}
|
|
1898
|
-
},
|
|
1902
|
+
}, Ga = [1, 2], pu = Xe(class extends m {
|
|
1899
1903
|
constructor(e) {
|
|
1900
1904
|
super(e);
|
|
1901
1905
|
}
|
|
1902
|
-
}, [0, W, [0,
|
|
1906
|
+
}, [0, W, [0, Ga, R, [0, xn], R, [0, Pa], q, T], qe]), Fn = class extends m {
|
|
1903
1907
|
constructor(e) {
|
|
1904
1908
|
super(e);
|
|
1905
1909
|
}
|
|
1906
|
-
},
|
|
1910
|
+
}, Ha = [0, T, q, U, Q, -1], Fi = class extends m {
|
|
1907
1911
|
constructor(e) {
|
|
1908
1912
|
super(e);
|
|
1909
1913
|
}
|
|
1910
|
-
},
|
|
1914
|
+
}, mu = [0, N, -1], $i = class extends m {
|
|
1911
1915
|
constructor(e) {
|
|
1912
1916
|
super(e);
|
|
1913
1917
|
}
|
|
1914
|
-
}, Mr = [1, 2, 3, 4, 5, 6], Br = class extends
|
|
1918
|
+
}, Mr = [1, 2, 3, 4, 5, 6], Br = class extends m {
|
|
1915
1919
|
constructor(e) {
|
|
1916
1920
|
super(e);
|
|
1917
1921
|
}
|
|
1918
1922
|
g() {
|
|
1919
|
-
return L(this, 1, void 0, void 0,
|
|
1923
|
+
return L(this, 1, void 0, void 0, Yo) != null;
|
|
1920
1924
|
}
|
|
1921
1925
|
l() {
|
|
1922
1926
|
return Y(L(this, 2)) != null;
|
|
1923
1927
|
}
|
|
1924
|
-
}, O = class extends
|
|
1928
|
+
}, O = class extends m {
|
|
1925
1929
|
constructor(e) {
|
|
1926
1930
|
super(e);
|
|
1927
1931
|
}
|
|
1928
1932
|
g() {
|
|
1929
|
-
return
|
|
1933
|
+
return Do(L(this, 2)) ?? !1;
|
|
1930
1934
|
}
|
|
1931
|
-
},
|
|
1935
|
+
}, za = [0, Pa, T, [0, q, qe, -1], [0, Jh, qe]], D = [0, za, N, [0, Mr, R, Ra, R, xa, R, Ma, R, Oa, R, $a, R, Fa], ue], os = class extends m {
|
|
1932
1936
|
constructor(e) {
|
|
1933
1937
|
super(e);
|
|
1934
1938
|
}
|
|
1935
|
-
}, $n = [0, D, U, -1, q],
|
|
1939
|
+
}, $n = [0, D, U, -1, q], gu = xe(502141897, os);
|
|
1936
1940
|
G[502141897] = $n;
|
|
1937
|
-
var
|
|
1941
|
+
var yu = Xe(class extends m {
|
|
1938
1942
|
constructor(e) {
|
|
1939
1943
|
super(e);
|
|
1940
1944
|
}
|
|
1941
|
-
}, [0, [0, ue, -1,
|
|
1945
|
+
}, [0, [0, ue, -1, Yh, Zh], hu]), Wa = class extends m {
|
|
1942
1946
|
constructor(e) {
|
|
1943
1947
|
super(e);
|
|
1944
1948
|
}
|
|
1945
|
-
},
|
|
1949
|
+
}, Ka = class extends m {
|
|
1946
1950
|
constructor(e) {
|
|
1947
1951
|
super(e);
|
|
1948
1952
|
}
|
|
1949
|
-
}, Ns = [0, D, U, [0, D], N],
|
|
1950
|
-
G[508968150] = [0, D, $n, Ns, U, [0, [0,
|
|
1951
|
-
var vt = class extends
|
|
1953
|
+
}, Ns = [0, D, U, [0, D], N], bu = xe(508968150, Ka);
|
|
1954
|
+
G[508968150] = [0, D, $n, Ns, U, [0, [0, za]]], G[508968149] = Ns;
|
|
1955
|
+
var vt = class extends m {
|
|
1952
1956
|
constructor(e) {
|
|
1953
1957
|
super(e);
|
|
1954
1958
|
}
|
|
@@ -1958,71 +1962,71 @@ var vt = class extends g {
|
|
|
1958
1962
|
g() {
|
|
1959
1963
|
k(this, 2);
|
|
1960
1964
|
}
|
|
1961
|
-
},
|
|
1962
|
-
G[478825465] =
|
|
1963
|
-
var
|
|
1965
|
+
}, qa = [0, D, Ha];
|
|
1966
|
+
G[478825465] = qa;
|
|
1967
|
+
var vu = class extends m {
|
|
1964
1968
|
constructor(e) {
|
|
1965
1969
|
super(e);
|
|
1966
1970
|
}
|
|
1967
|
-
},
|
|
1971
|
+
}, Xa = class extends m {
|
|
1968
1972
|
constructor(e) {
|
|
1969
1973
|
super(e);
|
|
1970
1974
|
}
|
|
1971
|
-
}, On = class extends
|
|
1975
|
+
}, On = class extends m {
|
|
1972
1976
|
constructor(e) {
|
|
1973
1977
|
super(e);
|
|
1974
1978
|
}
|
|
1975
|
-
}, Rn = class extends
|
|
1979
|
+
}, Rn = class extends m {
|
|
1976
1980
|
constructor(e) {
|
|
1977
1981
|
super(e);
|
|
1978
1982
|
}
|
|
1979
|
-
},
|
|
1983
|
+
}, Ya = class extends m {
|
|
1980
1984
|
constructor(e) {
|
|
1981
1985
|
super(e);
|
|
1982
1986
|
}
|
|
1983
|
-
},
|
|
1984
|
-
G[479097054] = [0, D,
|
|
1985
|
-
var
|
|
1986
|
-
G[462713202] =
|
|
1987
|
-
var
|
|
1987
|
+
}, Oi = [0, D, [0, D], qa, -1], Qa = [0, D, U, q], In = [0, D, U], Ja = [0, D, Qa, In, U], _u = xe(479097054, Ya);
|
|
1988
|
+
G[479097054] = [0, D, Ja, Oi], G[463370452] = Oi, G[464864288] = Qa;
|
|
1989
|
+
var wu = xe(462713202, Rn);
|
|
1990
|
+
G[462713202] = Ja, G[474472470] = In;
|
|
1991
|
+
var Au = class extends m {
|
|
1988
1992
|
constructor(e) {
|
|
1989
1993
|
super(e);
|
|
1990
1994
|
}
|
|
1991
|
-
},
|
|
1995
|
+
}, Za = class extends m {
|
|
1992
1996
|
constructor(e) {
|
|
1993
1997
|
super(e);
|
|
1994
1998
|
}
|
|
1995
|
-
},
|
|
1999
|
+
}, ec = class extends m {
|
|
1996
2000
|
constructor(e) {
|
|
1997
2001
|
super(e);
|
|
1998
2002
|
}
|
|
1999
|
-
},
|
|
2003
|
+
}, tc = class extends m {
|
|
2000
2004
|
constructor(e) {
|
|
2001
2005
|
super(e);
|
|
2002
2006
|
}
|
|
2003
2007
|
}, Nn = [0, D, U, -1, q], Bs = [0, D, U, N];
|
|
2004
|
-
|
|
2005
|
-
var
|
|
2008
|
+
tc.prototype.g = ns([0, D, In, [0, D], $n, Ns, Nn, Bs]);
|
|
2009
|
+
var rc = class extends m {
|
|
2006
2010
|
constructor(e) {
|
|
2007
2011
|
super(e);
|
|
2008
2012
|
}
|
|
2009
|
-
},
|
|
2010
|
-
G[456383383] = [0, D,
|
|
2011
|
-
var
|
|
2013
|
+
}, Eu = xe(456383383, rc);
|
|
2014
|
+
G[456383383] = [0, D, Ha];
|
|
2015
|
+
var sc = class extends m {
|
|
2012
2016
|
constructor(e) {
|
|
2013
2017
|
super(e);
|
|
2014
2018
|
}
|
|
2015
|
-
},
|
|
2016
|
-
G[476348187] = [0, D,
|
|
2017
|
-
var
|
|
2019
|
+
}, ku = xe(476348187, sc);
|
|
2020
|
+
G[476348187] = [0, D, mu];
|
|
2021
|
+
var nc = class extends m {
|
|
2018
2022
|
constructor(e) {
|
|
2019
2023
|
super(e);
|
|
2020
2024
|
}
|
|
2021
|
-
},
|
|
2025
|
+
}, Ri = class extends m {
|
|
2022
2026
|
constructor(e) {
|
|
2023
2027
|
super(e);
|
|
2024
2028
|
}
|
|
2025
|
-
},
|
|
2029
|
+
}, ic = [0, ue, -1], Su = xe(458105876, class extends m {
|
|
2026
2030
|
constructor(e) {
|
|
2027
2031
|
super(e);
|
|
2028
2032
|
}
|
|
@@ -2031,97 +2035,97 @@ var sc = class extends g {
|
|
|
2031
2035
|
var t = this.v;
|
|
2032
2036
|
const r = 0 | t[p];
|
|
2033
2037
|
return e = ce(this, r), t = (function(s, n, i, o) {
|
|
2034
|
-
var a =
|
|
2038
|
+
var a = Ri;
|
|
2035
2039
|
!o && Gt(s) && (i = 0 | (n = s.v)[p]);
|
|
2036
2040
|
var c = Ie(n, 2);
|
|
2037
2041
|
if (s = !1, c == null) {
|
|
2038
|
-
if (o) return
|
|
2042
|
+
if (o) return mi();
|
|
2039
2043
|
c = [];
|
|
2040
2044
|
} else if (c.constructor === Re) {
|
|
2041
2045
|
if (!(2 & c.J) || o) return c;
|
|
2042
2046
|
c = c.V();
|
|
2043
2047
|
} else Array.isArray(c) ? s = !!(2 & (0 | c[p])) : c = [];
|
|
2044
2048
|
if (o) {
|
|
2045
|
-
if (!c.length) return
|
|
2049
|
+
if (!c.length) return mi();
|
|
2046
2050
|
s || (s = !0, yr(c));
|
|
2047
|
-
} else s && (s = !1, hr(c), c =
|
|
2048
|
-
return !s && 32 & i &&
|
|
2049
|
-
})(this, t, r, e), !e &&
|
|
2051
|
+
} else s && (s = !1, hr(c), c = Qo(c));
|
|
2052
|
+
return !s && 32 & i && gr(c, 32), i = V(n, i, 2, o = new Re(c, a, Sh, void 0)), s || mt(n, i), o;
|
|
2053
|
+
})(this, t, r, e), !e && Ri && (t.ra = !0), t;
|
|
2050
2054
|
}
|
|
2051
2055
|
});
|
|
2052
|
-
G[458105876] = [0,
|
|
2053
|
-
var Bn = class extends
|
|
2056
|
+
G[458105876] = [0, ic, Xh, [!0, qe, [0, T, -1, Q]], [0, Ar, N, ue]];
|
|
2057
|
+
var Bn = class extends m {
|
|
2054
2058
|
constructor(e) {
|
|
2055
2059
|
super(e);
|
|
2056
2060
|
}
|
|
2057
|
-
},
|
|
2058
|
-
G[458105758] = [0, D, T,
|
|
2059
|
-
var ws = class extends
|
|
2061
|
+
}, oc = xe(458105758, Bn);
|
|
2062
|
+
G[458105758] = [0, D, T, ic];
|
|
2063
|
+
var ws = class extends m {
|
|
2060
2064
|
constructor(e) {
|
|
2061
2065
|
super(e);
|
|
2062
2066
|
}
|
|
2063
|
-
},
|
|
2067
|
+
}, Ii = [0, Qh, -1, ct], Tu = class extends m {
|
|
2064
2068
|
constructor(e) {
|
|
2065
2069
|
super(e);
|
|
2066
2070
|
}
|
|
2067
|
-
},
|
|
2071
|
+
}, ac = class extends m {
|
|
2068
2072
|
constructor(e) {
|
|
2069
2073
|
super(e);
|
|
2070
2074
|
}
|
|
2071
2075
|
}, Us = [1, 2];
|
|
2072
|
-
|
|
2073
|
-
var
|
|
2076
|
+
ac.prototype.g = ns([0, Us, R, Ii, R, [0, W, Ii]]);
|
|
2077
|
+
var cc = class extends m {
|
|
2074
2078
|
constructor(e) {
|
|
2075
2079
|
super(e);
|
|
2076
2080
|
}
|
|
2077
|
-
},
|
|
2081
|
+
}, Cu = xe(443442058, cc);
|
|
2078
2082
|
G[443442058] = [0, D, T, q, U, Q, -1, N, U], G[514774813] = Nn;
|
|
2079
|
-
var
|
|
2083
|
+
var hc = class extends m {
|
|
2080
2084
|
constructor(e) {
|
|
2081
2085
|
super(e);
|
|
2082
2086
|
}
|
|
2083
|
-
},
|
|
2087
|
+
}, Lu = xe(516587230, hc);
|
|
2084
2088
|
function Ds(e, t) {
|
|
2085
2089
|
return t = t ? t.clone() : new Fn(), e.displayNamesLocale !== void 0 ? k(t, 1, _r(e.displayNamesLocale)) : e.displayNamesLocale === void 0 && k(t, 1), e.maxResults !== void 0 ? Be(t, 2, e.maxResults) : "maxResults" in e && k(t, 2), e.scoreThreshold !== void 0 ? y(t, 3, e.scoreThreshold) : "scoreThreshold" in e && k(t, 3), e.categoryAllowlist !== void 0 ? Or(t, 4, e.categoryAllowlist) : "categoryAllowlist" in e && k(t, 4), e.categoryDenylist !== void 0 ? Or(t, 5, e.categoryDenylist) : "categoryDenylist" in e && k(t, 5), t;
|
|
2086
2090
|
}
|
|
2087
|
-
function
|
|
2091
|
+
function uc(e) {
|
|
2088
2092
|
const t = Number(e);
|
|
2089
2093
|
return Number.isSafeInteger(t) ? t : String(e);
|
|
2090
2094
|
}
|
|
2091
2095
|
function Un(e, t = -1, r = "") {
|
|
2092
|
-
return { categories: e.map(((s) => ({ index:
|
|
2096
|
+
return { categories: e.map(((s) => ({ index: ge(s, 1) ?? 0 ?? -1, score: I(s, 2) ?? 0, categoryName: Y(L(s, 3)) ?? "" ?? "", displayName: Y(L(s, 4)) ?? "" ?? "" }))), headIndex: t, headName: r };
|
|
2093
2097
|
}
|
|
2094
|
-
function
|
|
2095
|
-
const t = { classifications: Ne(e,
|
|
2098
|
+
function Pu(e) {
|
|
2099
|
+
const t = { classifications: Ne(e, uu, 1).map(((r) => {
|
|
2096
2100
|
var s;
|
|
2097
|
-
return Un(((s = A(r,
|
|
2101
|
+
return Un(((s = A(r, Na, 4)) == null ? void 0 : s.g()) ?? [], ge(r, 2) ?? 0, Y(L(r, 3)) ?? "");
|
|
2098
2102
|
})) };
|
|
2099
2103
|
return (function(r) {
|
|
2100
|
-
return
|
|
2101
|
-
})(e) != null && (t.timestampMs =
|
|
2104
|
+
return kh(Zs ? L(r, 2, void 0, void 0, Fr) : L(r, 2));
|
|
2105
|
+
})(e) != null && (t.timestampMs = uc(ra(e))), t;
|
|
2102
2106
|
}
|
|
2103
|
-
function
|
|
2107
|
+
function lc(e) {
|
|
2104
2108
|
var o, a;
|
|
2105
2109
|
var t = rt(e, 3, Te, tt()), r = rt(e, 2, jt, tt()), s = rt(e, 1, Y, tt()), n = rt(e, 9, Y, tt());
|
|
2106
2110
|
const i = { categories: [], keypoints: [] };
|
|
2107
2111
|
for (let c = 0; c < t.length; c++) i.categories.push({ score: t[c], index: r[c] ?? -1, categoryName: s[c] ?? "", displayName: n[c] ?? "" });
|
|
2108
|
-
if ((t = (o = A(e, _s, 4)) == null ? void 0 : o.l()) && (i.boundingBox = { originX:
|
|
2112
|
+
if ((t = (o = A(e, _s, 4)) == null ? void 0 : o.l()) && (i.boundingBox = { originX: ge(t, 1, De) ?? 0, originY: ge(t, 2, De) ?? 0, width: ge(t, 3, De) ?? 0, height: ge(t, 4, De) ?? 0, angle: 0 }), (a = A(e, _s, 4)) == null ? void 0 : a.g().length) for (const c of A(e, _s, 4).g()) i.keypoints.push({ x: L(c, 1, void 0, De, Te) ?? 0, y: L(c, 2, void 0, De, Te) ?? 0, score: L(c, 4, void 0, De, Te) ?? 0, label: Y(L(c, 3, void 0, De)) ?? "" });
|
|
2109
2113
|
return i;
|
|
2110
2114
|
}
|
|
2111
2115
|
function as(e) {
|
|
2112
2116
|
const t = [];
|
|
2113
|
-
for (const r of Ne(e,
|
|
2117
|
+
for (const r of Ne(e, ja, 1)) t.push({ x: I(r, 1) ?? 0, y: I(r, 2) ?? 0, z: I(r, 3) ?? 0, visibility: I(r, 4) ?? 0 });
|
|
2114
2118
|
return t;
|
|
2115
2119
|
}
|
|
2116
2120
|
function nr(e) {
|
|
2117
2121
|
const t = [];
|
|
2118
|
-
for (const r of Ne(e,
|
|
2122
|
+
for (const r of Ne(e, Da, 1)) t.push({ x: I(r, 1) ?? 0, y: I(r, 2) ?? 0, z: I(r, 3) ?? 0, visibility: I(r, 4) ?? 0 });
|
|
2119
2123
|
return t;
|
|
2120
2124
|
}
|
|
2121
|
-
function
|
|
2125
|
+
function Ni(e) {
|
|
2122
2126
|
return Array.from(e, ((t) => t > 127 ? t - 256 : t));
|
|
2123
2127
|
}
|
|
2124
|
-
function
|
|
2128
|
+
function Bi(e, t) {
|
|
2125
2129
|
if (e.length !== t.length) throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);
|
|
2126
2130
|
let r = 0, s = 0, n = 0;
|
|
2127
2131
|
for (let i = 0; i < e.length; i++) r += e[i] * t[i], s += e[i] * e[i], n += t[i] * t[i];
|
|
@@ -2130,28 +2134,28 @@ function Ni(e, t) {
|
|
|
2130
2134
|
}
|
|
2131
2135
|
let Tr;
|
|
2132
2136
|
G[516587230] = [0, D, Nn, Bs, U], G[518928384] = Bs;
|
|
2133
|
-
const
|
|
2134
|
-
async function
|
|
2137
|
+
const Mu = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]);
|
|
2138
|
+
async function dc() {
|
|
2135
2139
|
if (Tr === void 0) try {
|
|
2136
|
-
await WebAssembly.instantiate(
|
|
2140
|
+
await WebAssembly.instantiate(Mu), Tr = !0;
|
|
2137
2141
|
} catch {
|
|
2138
2142
|
Tr = !1;
|
|
2139
2143
|
}
|
|
2140
2144
|
return Tr;
|
|
2141
2145
|
}
|
|
2142
|
-
async function Jt(e, t =
|
|
2143
|
-
const r = await
|
|
2146
|
+
async function Jt(e, t = ru``) {
|
|
2147
|
+
const r = await dc() ? "wasm_internal" : "wasm_nosimd_internal";
|
|
2144
2148
|
return { wasmLoaderPath: `${t}/${e}_${r}.js`, wasmBinaryPath: `${t}/${e}_${r}.wasm` };
|
|
2145
2149
|
}
|
|
2146
2150
|
var et = class {
|
|
2147
2151
|
};
|
|
2148
|
-
function
|
|
2152
|
+
function fc() {
|
|
2149
2153
|
var e = navigator;
|
|
2150
2154
|
return typeof OffscreenCanvas < "u" && (!(function(t = navigator) {
|
|
2151
2155
|
return (t = t.userAgent).includes("Safari") && !t.includes("Chrome");
|
|
2152
2156
|
})(e) || !!((e = e.userAgent.match(/Version\/([\d]+).*Safari/)) && e.length >= 1 && Number(e[1]) >= 17));
|
|
2153
2157
|
}
|
|
2154
|
-
async function
|
|
2158
|
+
async function Ui(e) {
|
|
2155
2159
|
if (typeof importScripts != "function") {
|
|
2156
2160
|
const t = document.createElement("script");
|
|
2157
2161
|
return t.src = e.toString(), t.crossOrigin = "anonymous", new Promise(((r, s) => {
|
|
@@ -2169,20 +2173,20 @@ async function Bi(e) {
|
|
|
2169
2173
|
await self.import(e.toString());
|
|
2170
2174
|
}
|
|
2171
2175
|
}
|
|
2172
|
-
function
|
|
2176
|
+
function pc(e) {
|
|
2173
2177
|
return e.videoWidth !== void 0 ? [e.videoWidth, e.videoHeight] : e.naturalWidth !== void 0 ? [e.naturalWidth, e.naturalHeight] : e.displayWidth !== void 0 ? [e.displayWidth, e.displayHeight] : [e.width, e.height];
|
|
2174
2178
|
}
|
|
2175
|
-
function
|
|
2179
|
+
function g(e, t, r) {
|
|
2176
2180
|
e.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"), r(t = e.i.stringToNewUTF8(t)), e.i._free(t);
|
|
2177
2181
|
}
|
|
2178
|
-
function
|
|
2182
|
+
function Di(e, t, r) {
|
|
2179
2183
|
if (!e.i.canvas) throw Error("No OpenGL canvas configured.");
|
|
2180
2184
|
if (r ? e.i._bindTextureToStream(r) : e.i._bindTextureToCanvas(), !(r = e.i.canvas.getContext("webgl2") || e.i.canvas.getContext("webgl"))) throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");
|
|
2181
2185
|
e.i.gpuOriginForWebTexturesIsBottomLeft && r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, !0), r.texImage2D(r.TEXTURE_2D, 0, r.RGBA, r.RGBA, r.UNSIGNED_BYTE, t), e.i.gpuOriginForWebTexturesIsBottomLeft && r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, !1);
|
|
2182
|
-
const [s, n] =
|
|
2186
|
+
const [s, n] = pc(t);
|
|
2183
2187
|
return !e.l || s === e.i.canvas.width && n === e.i.canvas.height || (e.i.canvas.width = s, e.i.canvas.height = n), [s, n];
|
|
2184
2188
|
}
|
|
2185
|
-
function
|
|
2189
|
+
function ji(e, t, r) {
|
|
2186
2190
|
e.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");
|
|
2187
2191
|
const s = new Uint32Array(t.length);
|
|
2188
2192
|
for (let n = 0; n < t.length; n++) s[n] = e.i.stringToNewUTF8(t[n]);
|
|
@@ -2210,11 +2214,11 @@ et.forVisionTasks = function(e) {
|
|
|
2210
2214
|
}, et.forAudioTasks = function(e) {
|
|
2211
2215
|
return Jt("audio", e);
|
|
2212
2216
|
}, et.isSimdSupported = function() {
|
|
2213
|
-
return
|
|
2217
|
+
return dc();
|
|
2214
2218
|
};
|
|
2215
|
-
async function
|
|
2219
|
+
async function xu(e, t, r, s) {
|
|
2216
2220
|
return e = await (async (n, i, o, a, c) => {
|
|
2217
|
-
if (i && await
|
|
2221
|
+
if (i && await Ui(i), !self.ModuleFactory || o && (await Ui(o), !self.ModuleFactory)) throw Error("ModuleFactory not set.");
|
|
2218
2222
|
return self.Module && c && ((i = self.Module).locateFile = c.locateFile, c.mainScriptUrlOrBlob && (i.mainScriptUrlOrBlob = c.mainScriptUrlOrBlob)), c = await self.ModuleFactory(self.Module || c), self.ModuleFactory = self.Module = void 0, new n(c, a);
|
|
2219
2223
|
})(e, r.wasmLoaderPath, r.assetLoaderPath, t, { locateFile: (n) => n.endsWith(".wasm") ? r.wasmBinaryPath.toString() : r.assetBinaryPath && n.endsWith(".data") ? r.assetBinaryPath.toString() : n }), await e.o(s), e;
|
|
2220
2224
|
}
|
|
@@ -2222,7 +2226,7 @@ function As(e, t) {
|
|
|
2222
2226
|
const r = A(e.baseOptions, Br, 1) || new Br();
|
|
2223
2227
|
typeof t == "string" ? (k(r, 2, _r(t)), k(r, 1)) : t instanceof Uint8Array && (k(r, 1, rn(t, !1)), k(r, 2)), v(e.baseOptions, 0, 1, r);
|
|
2224
2228
|
}
|
|
2225
|
-
function
|
|
2229
|
+
function Vi(e) {
|
|
2226
2230
|
try {
|
|
2227
2231
|
const t = e.H.length;
|
|
2228
2232
|
if (t === 1) throw Error(e.H[0].message);
|
|
@@ -2254,12 +2258,12 @@ var js = class {
|
|
|
2254
2258
|
if ((r = e.baseOptions) != null && r.modelAssetBuffer && ((s = e.baseOptions) != null && s.modelAssetPath)) throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");
|
|
2255
2259
|
if (!((n = A(this.baseOptions, Br, 1)) != null && n.g() || (i = A(this.baseOptions, Br, 1)) != null && i.l() || (o = e.baseOptions) != null && o.modelAssetBuffer || (a = e.baseOptions) != null && a.modelAssetPath)) throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");
|
|
2256
2260
|
if ((function(u, h) {
|
|
2257
|
-
let l = A(u.baseOptions,
|
|
2261
|
+
let l = A(u.baseOptions, $i, 3);
|
|
2258
2262
|
if (!l) {
|
|
2259
|
-
var d = l = new
|
|
2263
|
+
var d = l = new $i(), b = new Ci();
|
|
2260
2264
|
rr(d, 4, Mr, b);
|
|
2261
2265
|
}
|
|
2262
|
-
"delegate" in h && (h.delegate === "GPU" ? (h = l, d = new
|
|
2266
|
+
"delegate" in h && (h.delegate === "GPU" ? (h = l, d = new su(), rr(h, 2, Mr, d)) : (h = l, d = new Ci(), rr(h, 4, Mr, d))), v(u.baseOptions, 0, 3, l);
|
|
2263
2267
|
})(this, c), c.modelAssetPath) return fetch(c.modelAssetPath.toString()).then(((u) => {
|
|
2264
2268
|
if (u.ok) return u.arrayBuffer();
|
|
2265
2269
|
throw Error(`Failed to fetch model: ${c.modelAssetPath} (${u.status})`);
|
|
@@ -2294,17 +2298,17 @@ var js = class {
|
|
|
2294
2298
|
ca() {
|
|
2295
2299
|
let e;
|
|
2296
2300
|
if (this.g.ca(((t) => {
|
|
2297
|
-
e =
|
|
2301
|
+
e = nu(t);
|
|
2298
2302
|
})), !e) throw Error("Failed to retrieve CalculatorGraphConfig");
|
|
2299
2303
|
return e;
|
|
2300
2304
|
}
|
|
2301
2305
|
setGraph(e, t) {
|
|
2302
2306
|
this.g.attachErrorListener(((r, s) => {
|
|
2303
2307
|
this.H.push(Error(s));
|
|
2304
|
-
})), this.g.Ja(), this.g.setGraph(e, t), this.B = void 0,
|
|
2308
|
+
})), this.g.Ja(), this.g.setGraph(e, t), this.B = void 0, Vi(this);
|
|
2305
2309
|
}
|
|
2306
2310
|
finishProcessing() {
|
|
2307
|
-
this.g.finishProcessing(),
|
|
2311
|
+
this.g.finishProcessing(), Vi(this);
|
|
2308
2312
|
}
|
|
2309
2313
|
close() {
|
|
2310
2314
|
this.B = void 0, this.g.closeGraph();
|
|
@@ -2315,7 +2319,7 @@ function ze(e, t) {
|
|
|
2315
2319
|
return e;
|
|
2316
2320
|
}
|
|
2317
2321
|
js.prototype.close = js.prototype.close;
|
|
2318
|
-
class
|
|
2322
|
+
class Fu {
|
|
2319
2323
|
constructor(t, r, s, n) {
|
|
2320
2324
|
this.g = t, this.h = r, this.m = s, this.l = n;
|
|
2321
2325
|
}
|
|
@@ -2326,38 +2330,38 @@ class Mu {
|
|
|
2326
2330
|
this.g.deleteVertexArray(this.h), this.g.deleteBuffer(this.m), this.g.deleteBuffer(this.l);
|
|
2327
2331
|
}
|
|
2328
2332
|
}
|
|
2329
|
-
function
|
|
2333
|
+
function Gi(e, t, r) {
|
|
2330
2334
|
const s = e.g;
|
|
2331
2335
|
if (r = ze(s.createShader(r), "Failed to create WebGL shader"), s.shaderSource(r, t), s.compileShader(r), !s.getShaderParameter(r, s.COMPILE_STATUS)) throw Error(`Could not compile WebGL shader: ${s.getShaderInfoLog(r)}`);
|
|
2332
2336
|
return s.attachShader(e.h, r), r;
|
|
2333
2337
|
}
|
|
2334
|
-
function
|
|
2338
|
+
function Hi(e, t) {
|
|
2335
2339
|
const r = e.g, s = ze(r.createVertexArray(), "Failed to create vertex array");
|
|
2336
2340
|
r.bindVertexArray(s);
|
|
2337
2341
|
const n = ze(r.createBuffer(), "Failed to create buffer");
|
|
2338
2342
|
r.bindBuffer(r.ARRAY_BUFFER, n), r.enableVertexAttribArray(e.O), r.vertexAttribPointer(e.O, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array([-1, -1, -1, 1, 1, 1, 1, -1]), r.STATIC_DRAW);
|
|
2339
2343
|
const i = ze(r.createBuffer(), "Failed to create buffer");
|
|
2340
|
-
return r.bindBuffer(r.ARRAY_BUFFER, i), r.enableVertexAttribArray(e.L), r.vertexAttribPointer(e.L, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array(t ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), r.STATIC_DRAW), r.bindBuffer(r.ARRAY_BUFFER, null), r.bindVertexArray(null), new
|
|
2344
|
+
return r.bindBuffer(r.ARRAY_BUFFER, i), r.enableVertexAttribArray(e.L), r.vertexAttribPointer(e.L, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array(t ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), r.STATIC_DRAW), r.bindBuffer(r.ARRAY_BUFFER, null), r.bindVertexArray(null), new Fu(r, s, n, i);
|
|
2341
2345
|
}
|
|
2342
2346
|
function Dn(e, t) {
|
|
2343
2347
|
if (e.g) {
|
|
2344
2348
|
if (t !== e.g) throw Error("Cannot change GL context once initialized");
|
|
2345
2349
|
} else e.g = t;
|
|
2346
2350
|
}
|
|
2347
|
-
function
|
|
2348
|
-
return Dn(e, t), e.h || (e.m(), e.D()), r ? (e.u || (e.u =
|
|
2351
|
+
function $u(e, t, r, s) {
|
|
2352
|
+
return Dn(e, t), e.h || (e.m(), e.D()), r ? (e.u || (e.u = Hi(e, !0)), r = e.u) : (e.A || (e.A = Hi(e, !1)), r = e.A), t.useProgram(e.h), r.bind(), e.l(), e = s(), r.g.bindVertexArray(null), e;
|
|
2349
2353
|
}
|
|
2350
|
-
function
|
|
2354
|
+
function mc(e, t, r) {
|
|
2351
2355
|
return Dn(e, t), e = ze(t.createTexture(), "Failed to create texture"), t.bindTexture(t.TEXTURE_2D, e), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_WRAP_S, t.CLAMP_TO_EDGE), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_WRAP_T, t.CLAMP_TO_EDGE), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_MIN_FILTER, r ?? t.LINEAR), t.texParameteri(t.TEXTURE_2D, t.TEXTURE_MAG_FILTER, r ?? t.LINEAR), t.bindTexture(t.TEXTURE_2D, null), e;
|
|
2352
2356
|
}
|
|
2353
2357
|
function gc(e, t, r) {
|
|
2354
2358
|
Dn(e, t), e.B || (e.B = ze(t.createFramebuffer(), "Failed to create framebuffe.")), t.bindFramebuffer(t.FRAMEBUFFER, e.B), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r, 0);
|
|
2355
2359
|
}
|
|
2356
|
-
function
|
|
2360
|
+
function Ou(e) {
|
|
2357
2361
|
var t;
|
|
2358
2362
|
(t = e.g) == null || t.bindFramebuffer(e.g.FRAMEBUFFER, null);
|
|
2359
2363
|
}
|
|
2360
|
-
var
|
|
2364
|
+
var yc = class {
|
|
2361
2365
|
H() {
|
|
2362
2366
|
return `
|
|
2363
2367
|
precision mediump float;
|
|
@@ -2370,14 +2374,14 @@ var mc = class {
|
|
|
2370
2374
|
}
|
|
2371
2375
|
m() {
|
|
2372
2376
|
const e = this.g;
|
|
2373
|
-
if (this.h = ze(e.createProgram(), "Failed to create WebGL program"), this.X =
|
|
2377
|
+
if (this.h = ze(e.createProgram(), "Failed to create WebGL program"), this.X = Gi(this, `
|
|
2374
2378
|
attribute vec2 aVertex;
|
|
2375
2379
|
attribute vec2 aTex;
|
|
2376
2380
|
varying vec2 vTex;
|
|
2377
2381
|
void main(void) {
|
|
2378
2382
|
gl_Position = vec4(aVertex, 0.0, 1.0);
|
|
2379
2383
|
vTex = aTex;
|
|
2380
|
-
}`, e.VERTEX_SHADER), this.W =
|
|
2384
|
+
}`, e.VERTEX_SHADER), this.W = Gi(this, this.H(), e.FRAGMENT_SHADER), e.linkProgram(this.h), !e.getProgramParameter(this.h, e.LINK_STATUS)) throw Error(`Error during program linking: ${e.getProgramInfoLog(this.h)}`);
|
|
2381
2385
|
this.O = e.getAttribLocation(this.h, "aVertex"), this.L = e.getAttribLocation(this.h, "aTex");
|
|
2382
2386
|
}
|
|
2383
2387
|
D() {
|
|
@@ -2412,7 +2416,7 @@ function Vs(e) {
|
|
|
2412
2416
|
t = new Float32Array(e.width * e.height);
|
|
2413
2417
|
const s = Ot(e);
|
|
2414
2418
|
var r = jn(e);
|
|
2415
|
-
if (gc(r, s,
|
|
2419
|
+
if (gc(r, s, bc(e)), "iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform) || navigator.userAgent.includes("Mac") && "document" in self && "ontouchend" in self.document) {
|
|
2416
2420
|
r = new Float32Array(e.width * e.height * 4), s.readPixels(0, 0, e.width, e.height, s.RGBA, s.FLOAT, r);
|
|
2417
2421
|
for (let n = 0, i = 0; n < t.length; ++n, i += 4) t[n] = r[i];
|
|
2418
2422
|
} else s.readPixels(0, 0, e.width, e.height, s.RED, s.FLOAT, t);
|
|
@@ -2421,12 +2425,12 @@ function Vs(e) {
|
|
|
2421
2425
|
}
|
|
2422
2426
|
return t;
|
|
2423
2427
|
}
|
|
2424
|
-
function
|
|
2428
|
+
function bc(e) {
|
|
2425
2429
|
let t = Oe(e, 2);
|
|
2426
2430
|
if (!t) {
|
|
2427
2431
|
const r = Ot(e);
|
|
2428
|
-
t =
|
|
2429
|
-
const s = Vs(e), n =
|
|
2432
|
+
t = _c(e);
|
|
2433
|
+
const s = Vs(e), n = vc(e);
|
|
2430
2434
|
r.texImage2D(r.TEXTURE_2D, 0, n, e.width, e.height, 0, r.RED, r.FLOAT, s), Gs(e);
|
|
2431
2435
|
}
|
|
2432
2436
|
return t;
|
|
@@ -2435,7 +2439,7 @@ function Ot(e) {
|
|
|
2435
2439
|
if (!e.canvas) throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");
|
|
2436
2440
|
return e.h || (e.h = ze(e.canvas.getContext("webgl2"), "You cannot use a canvas that is already bound to a different type of rendering context.")), e.h;
|
|
2437
2441
|
}
|
|
2438
|
-
function
|
|
2442
|
+
function vc(e) {
|
|
2439
2443
|
if (e = Ot(e), !Cr) if (e.getExtension("EXT_color_buffer_float") && e.getExtension("OES_texture_float_linear") && e.getExtension("EXT_float_blend")) Cr = e.R32F;
|
|
2440
2444
|
else {
|
|
2441
2445
|
if (!e.getExtension("EXT_color_buffer_half_float")) throw Error("GPU does not fully support 4-channel float32 or float16 formats");
|
|
@@ -2444,20 +2448,20 @@ function bc(e) {
|
|
|
2444
2448
|
return Cr;
|
|
2445
2449
|
}
|
|
2446
2450
|
function jn(e) {
|
|
2447
|
-
return e.l || (e.l = new
|
|
2451
|
+
return e.l || (e.l = new yc()), e.l;
|
|
2448
2452
|
}
|
|
2449
|
-
function
|
|
2453
|
+
function _c(e) {
|
|
2450
2454
|
const t = Ot(e);
|
|
2451
2455
|
t.viewport(0, 0, e.width, e.height), t.activeTexture(t.TEXTURE0);
|
|
2452
2456
|
let r = Oe(e, 2);
|
|
2453
|
-
return r || (r =
|
|
2457
|
+
return r || (r = mc(jn(e), t, e.m ? t.LINEAR : t.NEAREST), e.g.push(r), e.j = !0), t.bindTexture(t.TEXTURE_2D, r), r;
|
|
2454
2458
|
}
|
|
2455
2459
|
function Gs(e) {
|
|
2456
2460
|
e.h.bindTexture(e.h.TEXTURE_2D, null);
|
|
2457
2461
|
}
|
|
2458
2462
|
var Cr, z = class {
|
|
2459
2463
|
constructor(e, t, r, s, n, i, o) {
|
|
2460
|
-
this.g = e, this.m = t, this.j = r, this.canvas = s, this.l = n, this.width = i, this.height = o, this.j && --
|
|
2464
|
+
this.g = e, this.m = t, this.j = r, this.canvas = s, this.l = n, this.width = i, this.height = o, this.j && --zi === 0 && console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.");
|
|
2461
2465
|
}
|
|
2462
2466
|
Fa() {
|
|
2463
2467
|
return !!Oe(this, 0);
|
|
@@ -2476,7 +2480,7 @@ var Cr, z = class {
|
|
|
2476
2480
|
return Vs(this);
|
|
2477
2481
|
}
|
|
2478
2482
|
N() {
|
|
2479
|
-
return
|
|
2483
|
+
return bc(this);
|
|
2480
2484
|
}
|
|
2481
2485
|
clone() {
|
|
2482
2486
|
const e = [];
|
|
@@ -2488,11 +2492,11 @@ var Cr, z = class {
|
|
|
2488
2492
|
if (!(t instanceof WebGLTexture)) throw Error(`Type is not supported: ${t}`);
|
|
2489
2493
|
{
|
|
2490
2494
|
const s = Ot(this), n = jn(this);
|
|
2491
|
-
s.activeTexture(s.TEXTURE1), r =
|
|
2492
|
-
const i =
|
|
2493
|
-
s.texImage2D(s.TEXTURE_2D, 0, i, this.width, this.height, 0, s.RED, s.FLOAT, null), s.bindTexture(s.TEXTURE_2D, null), gc(n, s, r),
|
|
2494
|
-
|
|
2495
|
-
})),
|
|
2495
|
+
s.activeTexture(s.TEXTURE1), r = mc(n, s, this.m ? s.LINEAR : s.NEAREST), s.bindTexture(s.TEXTURE_2D, r);
|
|
2496
|
+
const i = vc(this);
|
|
2497
|
+
s.texImage2D(s.TEXTURE_2D, 0, i, this.width, this.height, 0, s.RED, s.FLOAT, null), s.bindTexture(s.TEXTURE_2D, null), gc(n, s, r), $u(n, s, !1, (() => {
|
|
2498
|
+
_c(this), s.clearColor(0, 0, 0, 0), s.clear(s.COLOR_BUFFER_BIT), s.drawArrays(s.TRIANGLE_FAN, 0, 4), Gs(this);
|
|
2499
|
+
})), Ou(n), Gs(this);
|
|
2496
2500
|
}
|
|
2497
2501
|
}
|
|
2498
2502
|
e.push(r);
|
|
@@ -2500,23 +2504,23 @@ var Cr, z = class {
|
|
|
2500
2504
|
return new z(e, this.m, this.R(), this.canvas, this.l, this.width, this.height);
|
|
2501
2505
|
}
|
|
2502
2506
|
close() {
|
|
2503
|
-
this.j && Ot(this).deleteTexture(Oe(this, 2)),
|
|
2507
|
+
this.j && Ot(this).deleteTexture(Oe(this, 2)), zi = -1;
|
|
2504
2508
|
}
|
|
2505
2509
|
};
|
|
2506
2510
|
z.prototype.close = z.prototype.close, z.prototype.clone = z.prototype.clone, z.prototype.getAsWebGLTexture = z.prototype.N, z.prototype.getAsFloat32Array = z.prototype.ia, z.prototype.getAsUint8Array = z.prototype.ja, z.prototype.hasWebGLTexture = z.prototype.R, z.prototype.hasFloat32Array = z.prototype.ka, z.prototype.hasUint8Array = z.prototype.Fa;
|
|
2507
|
-
var
|
|
2511
|
+
var zi = 250;
|
|
2508
2512
|
function _e(...e) {
|
|
2509
2513
|
return e.map((([t, r]) => ({ start: t, end: r })));
|
|
2510
2514
|
}
|
|
2511
|
-
const
|
|
2515
|
+
const Ru = /* @__PURE__ */ (function(e) {
|
|
2512
2516
|
return class extends e {
|
|
2513
2517
|
Ja() {
|
|
2514
2518
|
this.i._registerModelResourcesGraphService();
|
|
2515
2519
|
}
|
|
2516
2520
|
};
|
|
2517
|
-
})((
|
|
2521
|
+
})((Wi = class {
|
|
2518
2522
|
constructor(e, t) {
|
|
2519
|
-
this.l = !0, this.i = e, this.g = null, this.h = 0, this.m = typeof this.i._addIntToInputStream == "function", t !== void 0 ? this.i.canvas = t :
|
|
2523
|
+
this.l = !0, this.i = e, this.g = null, this.h = 0, this.m = typeof this.i._addIntToInputStream == "function", t !== void 0 ? this.i.canvas = t : fc() ? this.i.canvas = new OffscreenCanvas(1, 1) : (console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."), this.i.canvas = document.createElement("canvas"));
|
|
2520
2524
|
}
|
|
2521
2525
|
async initializeGraph(e) {
|
|
2522
2526
|
const t = await (await fetch(e)).arrayBuffer();
|
|
@@ -2530,8 +2534,8 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2530
2534
|
this.i.HEAPU8.set(e, s), t ? this.i._changeBinaryGraph(r, s) : this.i._changeTextGraph(r, s), this.i._free(s);
|
|
2531
2535
|
}
|
|
2532
2536
|
configureAudio(e, t, r, s, n) {
|
|
2533
|
-
this.i._configureAudio || console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),
|
|
2534
|
-
|
|
2537
|
+
this.i._configureAudio || console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'), g(this, s || "input_audio", ((i) => {
|
|
2538
|
+
g(this, n = n || "audio_header", ((o) => {
|
|
2535
2539
|
this.i._configureAudio(i, o, e, t ?? 0, r);
|
|
2536
2540
|
}));
|
|
2537
2541
|
}));
|
|
@@ -2548,7 +2552,7 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2548
2552
|
ca(e) {
|
|
2549
2553
|
ke(this, "__graph_config__", ((t) => {
|
|
2550
2554
|
e(t);
|
|
2551
|
-
})),
|
|
2555
|
+
})), g(this, "__graph_config__", ((t) => {
|
|
2552
2556
|
this.i._getGraphConfig(t, void 0);
|
|
2553
2557
|
})), delete this.i.simpleListeners.__graph_config__;
|
|
2554
2558
|
}
|
|
@@ -2563,72 +2567,72 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2563
2567
|
}
|
|
2564
2568
|
addAudioToStreamWithShape(e, t, r, s, n) {
|
|
2565
2569
|
const i = 4 * e.length;
|
|
2566
|
-
this.h !== i && (this.g && this.i._free(this.g), this.g = this.i._malloc(i), this.h = i), this.i.HEAPF32.set(e, this.g / 4),
|
|
2570
|
+
this.h !== i && (this.g && this.i._free(this.g), this.g = this.i._malloc(i), this.h = i), this.i.HEAPF32.set(e, this.g / 4), g(this, s, ((o) => {
|
|
2567
2571
|
this.i._addAudioToInputStream(this.g, t, r, o, n);
|
|
2568
2572
|
}));
|
|
2569
2573
|
}
|
|
2570
2574
|
addGpuBufferToStream(e, t, r) {
|
|
2571
|
-
|
|
2572
|
-
const [n, i] =
|
|
2575
|
+
g(this, t, ((s) => {
|
|
2576
|
+
const [n, i] = Di(this, e, s);
|
|
2573
2577
|
this.i._addBoundTextureToStream(s, n, i, r);
|
|
2574
2578
|
}));
|
|
2575
2579
|
}
|
|
2576
2580
|
addBoolToStream(e, t, r) {
|
|
2577
|
-
|
|
2581
|
+
g(this, t, ((s) => {
|
|
2578
2582
|
this.i._addBoolToInputStream(e, s, r);
|
|
2579
2583
|
}));
|
|
2580
2584
|
}
|
|
2581
2585
|
addDoubleToStream(e, t, r) {
|
|
2582
|
-
|
|
2586
|
+
g(this, t, ((s) => {
|
|
2583
2587
|
this.i._addDoubleToInputStream(e, s, r);
|
|
2584
2588
|
}));
|
|
2585
2589
|
}
|
|
2586
2590
|
addFloatToStream(e, t, r) {
|
|
2587
|
-
|
|
2591
|
+
g(this, t, ((s) => {
|
|
2588
2592
|
this.i._addFloatToInputStream(e, s, r);
|
|
2589
2593
|
}));
|
|
2590
2594
|
}
|
|
2591
2595
|
addIntToStream(e, t, r) {
|
|
2592
|
-
|
|
2596
|
+
g(this, t, ((s) => {
|
|
2593
2597
|
this.i._addIntToInputStream(e, s, r);
|
|
2594
2598
|
}));
|
|
2595
2599
|
}
|
|
2596
2600
|
addUintToStream(e, t, r) {
|
|
2597
|
-
|
|
2601
|
+
g(this, t, ((s) => {
|
|
2598
2602
|
this.i._addUintToInputStream(e, s, r);
|
|
2599
2603
|
}));
|
|
2600
2604
|
}
|
|
2601
2605
|
addStringToStream(e, t, r) {
|
|
2602
|
-
|
|
2603
|
-
|
|
2606
|
+
g(this, t, ((s) => {
|
|
2607
|
+
g(this, e, ((n) => {
|
|
2604
2608
|
this.i._addStringToInputStream(n, s, r);
|
|
2605
2609
|
}));
|
|
2606
2610
|
}));
|
|
2607
2611
|
}
|
|
2608
2612
|
addStringRecordToStream(e, t, r) {
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2613
|
+
g(this, t, ((s) => {
|
|
2614
|
+
ji(this, Object.keys(e), ((n) => {
|
|
2615
|
+
ji(this, Object.values(e), ((i) => {
|
|
2612
2616
|
this.i._addFlatHashMapToInputStream(n, i, Object.keys(e).length, s, r);
|
|
2613
2617
|
}));
|
|
2614
2618
|
}));
|
|
2615
2619
|
}));
|
|
2616
2620
|
}
|
|
2617
2621
|
addProtoToStream(e, t, r, s) {
|
|
2618
|
-
|
|
2619
|
-
|
|
2622
|
+
g(this, r, ((n) => {
|
|
2623
|
+
g(this, t, ((i) => {
|
|
2620
2624
|
const o = this.i._malloc(e.length);
|
|
2621
2625
|
this.i.HEAPU8.set(e, o), this.i._addProtoToInputStream(o, e.length, i, n, s), this.i._free(o);
|
|
2622
2626
|
}));
|
|
2623
2627
|
}));
|
|
2624
2628
|
}
|
|
2625
2629
|
addEmptyPacketToStream(e, t) {
|
|
2626
|
-
|
|
2630
|
+
g(this, e, ((r) => {
|
|
2627
2631
|
this.i._addEmptyPacketToInputStream(r, t);
|
|
2628
2632
|
}));
|
|
2629
2633
|
}
|
|
2630
2634
|
addBoolVectorToStream(e, t, r) {
|
|
2631
|
-
|
|
2635
|
+
g(this, t, ((s) => {
|
|
2632
2636
|
const n = this.i._allocateBoolVector(e.length);
|
|
2633
2637
|
if (!n) throw Error("Unable to allocate new bool vector on heap.");
|
|
2634
2638
|
for (const i of e) this.i._addBoolVectorEntry(n, i);
|
|
@@ -2636,7 +2640,7 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2636
2640
|
}));
|
|
2637
2641
|
}
|
|
2638
2642
|
addDoubleVectorToStream(e, t, r) {
|
|
2639
|
-
|
|
2643
|
+
g(this, t, ((s) => {
|
|
2640
2644
|
const n = this.i._allocateDoubleVector(e.length);
|
|
2641
2645
|
if (!n) throw Error("Unable to allocate new double vector on heap.");
|
|
2642
2646
|
for (const i of e) this.i._addDoubleVectorEntry(n, i);
|
|
@@ -2644,7 +2648,7 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2644
2648
|
}));
|
|
2645
2649
|
}
|
|
2646
2650
|
addFloatVectorToStream(e, t, r) {
|
|
2647
|
-
|
|
2651
|
+
g(this, t, ((s) => {
|
|
2648
2652
|
const n = this.i._allocateFloatVector(e.length);
|
|
2649
2653
|
if (!n) throw Error("Unable to allocate new float vector on heap.");
|
|
2650
2654
|
for (const i of e) this.i._addFloatVectorEntry(n, i);
|
|
@@ -2652,7 +2656,7 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2652
2656
|
}));
|
|
2653
2657
|
}
|
|
2654
2658
|
addIntVectorToStream(e, t, r) {
|
|
2655
|
-
|
|
2659
|
+
g(this, t, ((s) => {
|
|
2656
2660
|
const n = this.i._allocateIntVector(e.length);
|
|
2657
2661
|
if (!n) throw Error("Unable to allocate new int vector on heap.");
|
|
2658
2662
|
for (const i of e) this.i._addIntVectorEntry(n, i);
|
|
@@ -2660,7 +2664,7 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2660
2664
|
}));
|
|
2661
2665
|
}
|
|
2662
2666
|
addUintVectorToStream(e, t, r) {
|
|
2663
|
-
|
|
2667
|
+
g(this, t, ((s) => {
|
|
2664
2668
|
const n = this.i._allocateUintVector(e.length);
|
|
2665
2669
|
if (!n) throw Error("Unable to allocate new unsigned int vector on heap.");
|
|
2666
2670
|
for (const i of e) this.i._addUintVectorEntry(n, i);
|
|
@@ -2668,57 +2672,57 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2668
2672
|
}));
|
|
2669
2673
|
}
|
|
2670
2674
|
addStringVectorToStream(e, t, r) {
|
|
2671
|
-
|
|
2675
|
+
g(this, t, ((s) => {
|
|
2672
2676
|
const n = this.i._allocateStringVector(e.length);
|
|
2673
2677
|
if (!n) throw Error("Unable to allocate new string vector on heap.");
|
|
2674
|
-
for (const i of e)
|
|
2678
|
+
for (const i of e) g(this, i, ((o) => {
|
|
2675
2679
|
this.i._addStringVectorEntry(n, o);
|
|
2676
2680
|
}));
|
|
2677
2681
|
this.i._addStringVectorToInputStream(n, s, r);
|
|
2678
2682
|
}));
|
|
2679
2683
|
}
|
|
2680
2684
|
addBoolToInputSidePacket(e, t) {
|
|
2681
|
-
|
|
2685
|
+
g(this, t, ((r) => {
|
|
2682
2686
|
this.i._addBoolToInputSidePacket(e, r);
|
|
2683
2687
|
}));
|
|
2684
2688
|
}
|
|
2685
2689
|
addDoubleToInputSidePacket(e, t) {
|
|
2686
|
-
|
|
2690
|
+
g(this, t, ((r) => {
|
|
2687
2691
|
this.i._addDoubleToInputSidePacket(e, r);
|
|
2688
2692
|
}));
|
|
2689
2693
|
}
|
|
2690
2694
|
addFloatToInputSidePacket(e, t) {
|
|
2691
|
-
|
|
2695
|
+
g(this, t, ((r) => {
|
|
2692
2696
|
this.i._addFloatToInputSidePacket(e, r);
|
|
2693
2697
|
}));
|
|
2694
2698
|
}
|
|
2695
2699
|
addIntToInputSidePacket(e, t) {
|
|
2696
|
-
|
|
2700
|
+
g(this, t, ((r) => {
|
|
2697
2701
|
this.i._addIntToInputSidePacket(e, r);
|
|
2698
2702
|
}));
|
|
2699
2703
|
}
|
|
2700
2704
|
addUintToInputSidePacket(e, t) {
|
|
2701
|
-
|
|
2705
|
+
g(this, t, ((r) => {
|
|
2702
2706
|
this.i._addUintToInputSidePacket(e, r);
|
|
2703
2707
|
}));
|
|
2704
2708
|
}
|
|
2705
2709
|
addStringToInputSidePacket(e, t) {
|
|
2706
|
-
|
|
2707
|
-
|
|
2710
|
+
g(this, t, ((r) => {
|
|
2711
|
+
g(this, e, ((s) => {
|
|
2708
2712
|
this.i._addStringToInputSidePacket(s, r);
|
|
2709
2713
|
}));
|
|
2710
2714
|
}));
|
|
2711
2715
|
}
|
|
2712
2716
|
addProtoToInputSidePacket(e, t, r) {
|
|
2713
|
-
|
|
2714
|
-
|
|
2717
|
+
g(this, r, ((s) => {
|
|
2718
|
+
g(this, t, ((n) => {
|
|
2715
2719
|
const i = this.i._malloc(e.length);
|
|
2716
2720
|
this.i.HEAPU8.set(e, i), this.i._addProtoToInputSidePacket(i, e.length, n, s), this.i._free(i);
|
|
2717
2721
|
}));
|
|
2718
2722
|
}));
|
|
2719
2723
|
}
|
|
2720
2724
|
addBoolVectorToInputSidePacket(e, t) {
|
|
2721
|
-
|
|
2725
|
+
g(this, t, ((r) => {
|
|
2722
2726
|
const s = this.i._allocateBoolVector(e.length);
|
|
2723
2727
|
if (!s) throw Error("Unable to allocate new bool vector on heap.");
|
|
2724
2728
|
for (const n of e) this.i._addBoolVectorEntry(s, n);
|
|
@@ -2726,7 +2730,7 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2726
2730
|
}));
|
|
2727
2731
|
}
|
|
2728
2732
|
addDoubleVectorToInputSidePacket(e, t) {
|
|
2729
|
-
|
|
2733
|
+
g(this, t, ((r) => {
|
|
2730
2734
|
const s = this.i._allocateDoubleVector(e.length);
|
|
2731
2735
|
if (!s) throw Error("Unable to allocate new double vector on heap.");
|
|
2732
2736
|
for (const n of e) this.i._addDoubleVectorEntry(s, n);
|
|
@@ -2734,7 +2738,7 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2734
2738
|
}));
|
|
2735
2739
|
}
|
|
2736
2740
|
addFloatVectorToInputSidePacket(e, t) {
|
|
2737
|
-
|
|
2741
|
+
g(this, t, ((r) => {
|
|
2738
2742
|
const s = this.i._allocateFloatVector(e.length);
|
|
2739
2743
|
if (!s) throw Error("Unable to allocate new float vector on heap.");
|
|
2740
2744
|
for (const n of e) this.i._addFloatVectorEntry(s, n);
|
|
@@ -2742,7 +2746,7 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2742
2746
|
}));
|
|
2743
2747
|
}
|
|
2744
2748
|
addIntVectorToInputSidePacket(e, t) {
|
|
2745
|
-
|
|
2749
|
+
g(this, t, ((r) => {
|
|
2746
2750
|
const s = this.i._allocateIntVector(e.length);
|
|
2747
2751
|
if (!s) throw Error("Unable to allocate new int vector on heap.");
|
|
2748
2752
|
for (const n of e) this.i._addIntVectorEntry(s, n);
|
|
@@ -2750,7 +2754,7 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2750
2754
|
}));
|
|
2751
2755
|
}
|
|
2752
2756
|
addUintVectorToInputSidePacket(e, t) {
|
|
2753
|
-
|
|
2757
|
+
g(this, t, ((r) => {
|
|
2754
2758
|
const s = this.i._allocateUintVector(e.length);
|
|
2755
2759
|
if (!s) throw Error("Unable to allocate new unsigned int vector on heap.");
|
|
2756
2760
|
for (const n of e) this.i._addUintVectorEntry(s, n);
|
|
@@ -2758,89 +2762,89 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2758
2762
|
}));
|
|
2759
2763
|
}
|
|
2760
2764
|
addStringVectorToInputSidePacket(e, t) {
|
|
2761
|
-
|
|
2765
|
+
g(this, t, ((r) => {
|
|
2762
2766
|
const s = this.i._allocateStringVector(e.length);
|
|
2763
2767
|
if (!s) throw Error("Unable to allocate new string vector on heap.");
|
|
2764
|
-
for (const n of e)
|
|
2768
|
+
for (const n of e) g(this, n, ((i) => {
|
|
2765
2769
|
this.i._addStringVectorEntry(s, i);
|
|
2766
2770
|
}));
|
|
2767
2771
|
this.i._addStringVectorToInputSidePacket(s, r);
|
|
2768
2772
|
}));
|
|
2769
2773
|
}
|
|
2770
2774
|
attachBoolListener(e, t) {
|
|
2771
|
-
ke(this, e, t),
|
|
2775
|
+
ke(this, e, t), g(this, e, ((r) => {
|
|
2772
2776
|
this.i._attachBoolListener(r);
|
|
2773
2777
|
}));
|
|
2774
2778
|
}
|
|
2775
2779
|
attachBoolVectorListener(e, t) {
|
|
2776
|
-
je(this, e, t),
|
|
2780
|
+
je(this, e, t), g(this, e, ((r) => {
|
|
2777
2781
|
this.i._attachBoolVectorListener(r);
|
|
2778
2782
|
}));
|
|
2779
2783
|
}
|
|
2780
2784
|
attachIntListener(e, t) {
|
|
2781
|
-
ke(this, e, t),
|
|
2785
|
+
ke(this, e, t), g(this, e, ((r) => {
|
|
2782
2786
|
this.i._attachIntListener(r);
|
|
2783
2787
|
}));
|
|
2784
2788
|
}
|
|
2785
2789
|
attachIntVectorListener(e, t) {
|
|
2786
|
-
je(this, e, t),
|
|
2790
|
+
je(this, e, t), g(this, e, ((r) => {
|
|
2787
2791
|
this.i._attachIntVectorListener(r);
|
|
2788
2792
|
}));
|
|
2789
2793
|
}
|
|
2790
2794
|
attachUintListener(e, t) {
|
|
2791
|
-
ke(this, e, t),
|
|
2795
|
+
ke(this, e, t), g(this, e, ((r) => {
|
|
2792
2796
|
this.i._attachUintListener(r);
|
|
2793
2797
|
}));
|
|
2794
2798
|
}
|
|
2795
2799
|
attachUintVectorListener(e, t) {
|
|
2796
|
-
je(this, e, t),
|
|
2800
|
+
je(this, e, t), g(this, e, ((r) => {
|
|
2797
2801
|
this.i._attachUintVectorListener(r);
|
|
2798
2802
|
}));
|
|
2799
2803
|
}
|
|
2800
2804
|
attachDoubleListener(e, t) {
|
|
2801
|
-
ke(this, e, t),
|
|
2805
|
+
ke(this, e, t), g(this, e, ((r) => {
|
|
2802
2806
|
this.i._attachDoubleListener(r);
|
|
2803
2807
|
}));
|
|
2804
2808
|
}
|
|
2805
2809
|
attachDoubleVectorListener(e, t) {
|
|
2806
|
-
je(this, e, t),
|
|
2810
|
+
je(this, e, t), g(this, e, ((r) => {
|
|
2807
2811
|
this.i._attachDoubleVectorListener(r);
|
|
2808
2812
|
}));
|
|
2809
2813
|
}
|
|
2810
2814
|
attachFloatListener(e, t) {
|
|
2811
|
-
ke(this, e, t),
|
|
2815
|
+
ke(this, e, t), g(this, e, ((r) => {
|
|
2812
2816
|
this.i._attachFloatListener(r);
|
|
2813
2817
|
}));
|
|
2814
2818
|
}
|
|
2815
2819
|
attachFloatVectorListener(e, t) {
|
|
2816
|
-
je(this, e, t),
|
|
2820
|
+
je(this, e, t), g(this, e, ((r) => {
|
|
2817
2821
|
this.i._attachFloatVectorListener(r);
|
|
2818
2822
|
}));
|
|
2819
2823
|
}
|
|
2820
2824
|
attachStringListener(e, t) {
|
|
2821
|
-
ke(this, e, t),
|
|
2825
|
+
ke(this, e, t), g(this, e, ((r) => {
|
|
2822
2826
|
this.i._attachStringListener(r);
|
|
2823
2827
|
}));
|
|
2824
2828
|
}
|
|
2825
2829
|
attachStringVectorListener(e, t) {
|
|
2826
|
-
je(this, e, t),
|
|
2830
|
+
je(this, e, t), g(this, e, ((r) => {
|
|
2827
2831
|
this.i._attachStringVectorListener(r);
|
|
2828
2832
|
}));
|
|
2829
2833
|
}
|
|
2830
2834
|
attachProtoListener(e, t, r) {
|
|
2831
|
-
ke(this, e, t),
|
|
2835
|
+
ke(this, e, t), g(this, e, ((s) => {
|
|
2832
2836
|
this.i._attachProtoListener(s, r || !1);
|
|
2833
2837
|
}));
|
|
2834
2838
|
}
|
|
2835
2839
|
attachProtoVectorListener(e, t, r) {
|
|
2836
|
-
je(this, e, t),
|
|
2840
|
+
je(this, e, t), g(this, e, ((s) => {
|
|
2837
2841
|
this.i._attachProtoVectorListener(s, r || !1);
|
|
2838
2842
|
}));
|
|
2839
2843
|
}
|
|
2840
2844
|
attachAudioListener(e, t, r) {
|
|
2841
2845
|
this.i._attachAudioListener || console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'), ke(this, e, ((s, n) => {
|
|
2842
2846
|
s = new Float32Array(s.buffer, s.byteOffset, s.length / 4), t(s, n);
|
|
2843
|
-
})),
|
|
2847
|
+
})), g(this, e, ((s) => {
|
|
2844
2848
|
this.i._attachAudioListener(s, r || !1);
|
|
2845
2849
|
}));
|
|
2846
2850
|
}
|
|
@@ -2850,37 +2854,37 @@ const $u = /* @__PURE__ */ (function(e) {
|
|
|
2850
2854
|
closeGraph() {
|
|
2851
2855
|
this.i._closeGraph(), this.i.simpleListeners = void 0, this.i.emptyPacketListeners = void 0;
|
|
2852
2856
|
}
|
|
2853
|
-
}, class extends
|
|
2857
|
+
}, class extends Wi {
|
|
2854
2858
|
get ga() {
|
|
2855
2859
|
return this.i;
|
|
2856
2860
|
}
|
|
2857
2861
|
pa(e, t, r) {
|
|
2858
|
-
|
|
2859
|
-
const [n, i] =
|
|
2862
|
+
g(this, t, ((s) => {
|
|
2863
|
+
const [n, i] = Di(this, e, s);
|
|
2860
2864
|
this.ga._addBoundTextureAsImageToStream(s, n, i, r);
|
|
2861
2865
|
}));
|
|
2862
2866
|
}
|
|
2863
2867
|
Z(e, t) {
|
|
2864
|
-
ke(this, e, t),
|
|
2868
|
+
ke(this, e, t), g(this, e, ((r) => {
|
|
2865
2869
|
this.ga._attachImageListener(r);
|
|
2866
2870
|
}));
|
|
2867
2871
|
}
|
|
2868
2872
|
aa(e, t) {
|
|
2869
|
-
je(this, e, t),
|
|
2873
|
+
je(this, e, t), g(this, e, ((r) => {
|
|
2870
2874
|
this.ga._attachImageVectorListener(r);
|
|
2871
2875
|
}));
|
|
2872
2876
|
}
|
|
2873
2877
|
}));
|
|
2874
|
-
var
|
|
2878
|
+
var Wi, we = class extends Ru {
|
|
2875
2879
|
};
|
|
2876
2880
|
async function w(e, t, r) {
|
|
2877
2881
|
return (async function(s, n, i, o) {
|
|
2878
|
-
return
|
|
2879
|
-
})(e, r.canvas ?? (
|
|
2882
|
+
return xu(s, n, i, o);
|
|
2883
|
+
})(e, r.canvas ?? (fc() ? void 0 : document.createElement("canvas")), t, r);
|
|
2880
2884
|
}
|
|
2881
|
-
function
|
|
2885
|
+
function wc(e, t, r, s) {
|
|
2882
2886
|
if (e.U) {
|
|
2883
|
-
const i = new
|
|
2887
|
+
const i = new Va();
|
|
2884
2888
|
if (r != null && r.regionOfInterest) {
|
|
2885
2889
|
if (!e.oa) throw Error("This task doesn't support region-of-interest.");
|
|
2886
2890
|
var n = r.regionOfInterest;
|
|
@@ -2891,7 +2895,7 @@ function _c(e, t, r, s) {
|
|
|
2891
2895
|
if (r != null && r.rotationDegrees) {
|
|
2892
2896
|
if ((r == null ? void 0 : r.rotationDegrees) % 90 != 0) throw Error("Expected rotation to be a multiple of 90°.");
|
|
2893
2897
|
if (y(i, 5, -Math.PI * r.rotationDegrees / 180), (r == null ? void 0 : r.rotationDegrees) % 180 != 0) {
|
|
2894
|
-
const [o, a] =
|
|
2898
|
+
const [o, a] = pc(t);
|
|
2895
2899
|
r = I(i, 3) * a / o, n = I(i, 4) * o / a, y(i, 4, r), y(i, 3, n);
|
|
2896
2900
|
}
|
|
2897
2901
|
}
|
|
@@ -2902,12 +2906,12 @@ function _c(e, t, r, s) {
|
|
|
2902
2906
|
function Ae(e, t, r) {
|
|
2903
2907
|
var s;
|
|
2904
2908
|
if ((s = e.baseOptions) != null && s.g()) throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");
|
|
2905
|
-
|
|
2909
|
+
wc(e, t, r, e.C + 1);
|
|
2906
2910
|
}
|
|
2907
2911
|
function Fe(e, t, r, s) {
|
|
2908
2912
|
var n;
|
|
2909
2913
|
if (!((n = e.baseOptions) != null && n.g())) throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");
|
|
2910
|
-
|
|
2914
|
+
wc(e, t, r, s);
|
|
2911
2915
|
}
|
|
2912
2916
|
function Rt(e, t, r, s) {
|
|
2913
2917
|
var n = t.data;
|
|
@@ -2917,7 +2921,7 @@ function Rt(e, t, r, s) {
|
|
|
2917
2921
|
}
|
|
2918
2922
|
var le = class extends js {
|
|
2919
2923
|
constructor(e, t, r, s) {
|
|
2920
|
-
super(e), this.g = e, this.X = t, this.U = r, this.oa = s, this.P = new
|
|
2924
|
+
super(e), this.g = e, this.X = t, this.U = r, this.oa = s, this.P = new yc();
|
|
2921
2925
|
}
|
|
2922
2926
|
l(e, t = !0) {
|
|
2923
2927
|
if ("runningMode" in e && k(this.baseOptions, 2, lr(!!e.runningMode && e.runningMode !== "IMAGE")), e.canvas !== void 0 && this.g.i.canvas !== e.canvas) throw Error("You must create a new task to reset the canvas.");
|
|
@@ -2951,10 +2955,10 @@ var ie = class extends le {
|
|
|
2951
2955
|
var e = new fe();
|
|
2952
2956
|
x(e, "image_in"), x(e, "norm_rect_in"), E(e, "detections");
|
|
2953
2957
|
const t = new de();
|
|
2954
|
-
Me(t,
|
|
2958
|
+
Me(t, gu, this.h);
|
|
2955
2959
|
const r = new ee();
|
|
2956
2960
|
he(r, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect_in"), _(r, "DETECTIONS:detections"), r.o(t), be(e, r), this.g.attachProtoVectorListener("detections", ((s, n) => {
|
|
2957
|
-
for (const i of s) s =
|
|
2961
|
+
for (const i of s) s = Ua(i), this.j.detections.push(lc(s));
|
|
2958
2962
|
f(this, n);
|
|
2959
2963
|
})), this.g.attachEmptyPacketListener("detections", ((s) => {
|
|
2960
2964
|
f(this, s);
|
|
@@ -2968,13 +2972,13 @@ ie.prototype.detectForVideo = ie.prototype.G, ie.prototype.detect = ie.prototype
|
|
|
2968
2972
|
}, ie.createFromOptions = function(e, t) {
|
|
2969
2973
|
return w(ie, e, t);
|
|
2970
2974
|
};
|
|
2971
|
-
var Vn = _e([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [314, 405], [405, 321], [321, 375], [375, 291], [61, 185], [185, 40], [40, 39], [39, 37], [37, 0], [0, 267], [267, 269], [269, 270], [270, 409], [409, 291], [78, 95], [95, 88], [88, 178], [178, 87], [87, 14], [14, 317], [317, 402], [402, 318], [318, 324], [324, 308], [78, 191], [191, 80], [80, 81], [81, 82], [82, 13], [13, 312], [312, 311], [311, 310], [310, 415], [415, 308]), Gn = _e([263, 249], [249, 390], [390, 373], [373, 374], [374, 380], [380, 381], [381, 382], [382, 362], [263, 466], [466, 388], [388, 387], [387, 386], [386, 385], [385, 384], [384, 398], [398, 362]), Hn = _e([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), wc = _e([474, 475], [475, 476], [476, 477], [477, 474]), zn = _e([33, 7], [7, 163], [163, 144], [144, 145], [145, 153], [153, 154], [154, 155], [155, 133], [33, 246], [246, 161], [161, 160], [160, 159], [159, 158], [158, 157], [157, 173], [173, 133]), Wn = _e([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), Ac = _e([469, 470], [470, 471], [471, 472], [472, 469]), Kn = _e([10, 338], [338, 297], [297, 332], [332, 284], [284, 251], [251, 389], [389, 356], [356, 454], [454, 323], [323, 361], [361, 288], [288, 397], [397, 365], [365, 379], [379, 378], [378, 400], [400, 377], [377, 152], [152, 148], [148, 176], [176, 149], [149, 150], [150, 136], [136, 172], [172, 58], [58, 132], [132, 93], [93, 234], [234, 127], [127, 162], [162, 21], [21, 54], [54, 103], [103, 67], [67, 109], [109, 10]), Ec = [...Vn, ...Gn, ...Hn, ...zn, ...Wn, ...Kn], kc = _e([127, 34], [34, 139], [139, 127], [11, 0], [0, 37], [37, 11], [232, 231], [231, 120], [120, 232], [72, 37], [37, 39], [39, 72], [128, 121], [121, 47], [47, 128], [232, 121], [121, 128], [128, 232], [104, 69], [69, 67], [67, 104], [175, 171], [171, 148], [148, 175], [118, 50], [50, 101], [101, 118], [73, 39], [39, 40], [40, 73], [9, 151], [151, 108], [108, 9], [48, 115], [115, 131], [131, 48], [194, 204], [204, 211], [211, 194], [74, 40], [40, 185], [185, 74], [80, 42], [42, 183], [183, 80], [40, 92], [92, 186], [186, 40], [230, 229], [229, 118], [118, 230], [202, 212], [212, 214], [214, 202], [83, 18], [18, 17], [17, 83], [76, 61], [61, 146], [146, 76], [160, 29], [29, 30], [30, 160], [56, 157], [157, 173], [173, 56], [106, 204], [204, 194], [194, 106], [135, 214], [214, 192], [192, 135], [203, 165], [165, 98], [98, 203], [21, 71], [71, 68], [68, 21], [51, 45], [45, 4], [4, 51], [144, 24], [24, 23], [23, 144], [77, 146], [146, 91], [91, 77], [205, 50], [50, 187], [187, 205], [201, 200], [200, 18], [18, 201], [91, 106], [106, 182], [182, 91], [90, 91], [91, 181], [181, 90], [85, 84], [84, 17], [17, 85], [206, 203], [203, 36], [36, 206], [148, 171], [171, 140], [140, 148], [92, 40], [40, 39], [39, 92], [193, 189], [189, 244], [244, 193], [159, 158], [158, 28], [28, 159], [247, 246], [246, 161], [161, 247], [236, 3], [3, 196], [196, 236], [54, 68], [68, 104], [104, 54], [193, 168], [168, 8], [8, 193], [117, 228], [228, 31], [31, 117], [189, 193], [193, 55], [55, 189], [98, 97], [97, 99], [99, 98], [126, 47], [47, 100], [100, 126], [166, 79], [79, 218], [218, 166], [155, 154], [154, 26], [26, 155], [209, 49], [49, 131], [131, 209], [135, 136], [136, 150], [150, 135], [47, 126], [126, 217], [217, 47], [223, 52], [52, 53], [53, 223], [45, 51], [51, 134], [134, 45], [211, 170], [170, 140], [140, 211], [67, 69], [69, 108], [108, 67], [43, 106], [106, 91], [91, 43], [230, 119], [119, 120], [120, 230], [226, 130], [130, 247], [247, 226], [63, 53], [53, 52], [52, 63], [238, 20], [20, 242], [242, 238], [46, 70], [70, 156], [156, 46], [78, 62], [62, 96], [96, 78], [46, 53], [53, 63], [63, 46], [143, 34], [34, 227], [227, 143], [123, 117], [117, 111], [111, 123], [44, 125], [125, 19], [19, 44], [236, 134], [134, 51], [51, 236], [216, 206], [206, 205], [205, 216], [154, 153], [153, 22], [22, 154], [39, 37], [37, 167], [167, 39], [200, 201], [201, 208], [208, 200], [36, 142], [142, 100], [100, 36], [57, 212], [212, 202], [202, 57], [20, 60], [60, 99], [99, 20], [28, 158], [158, 157], [157, 28], [35, 226], [226, 113], [113, 35], [160, 159], [159, 27], [27, 160], [204, 202], [202, 210], [210, 204], [113, 225], [225, 46], [46, 113], [43, 202], [202, 204], [204, 43], [62, 76], [76, 77], [77, 62], [137, 123], [123, 116], [116, 137], [41, 38], [38, 72], [72, 41], [203, 129], [129, 142], [142, 203], [64, 98], [98, 240], [240, 64], [49, 102], [102, 64], [64, 49], [41, 73], [73, 74], [74, 41], [212, 216], [216, 207], [207, 212], [42, 74], [74, 184], [184, 42], [169, 170], [170, 211], [211, 169], [170, 149], [149, 176], [176, 170], [105, 66], [66, 69], [69, 105], [122, 6], [6, 168], [168, 122], [123, 147], [147, 187], [187, 123], [96, 77], [77, 90], [90, 96], [65, 55], [55, 107], [107, 65], [89, 90], [90, 180], [180, 89], [101, 100], [100, 120], [120, 101], [63, 105], [105, 104], [104, 63], [93, 137], [137, 227], [227, 93], [15, 86], [86, 85], [85, 15], [129, 102], [102, 49], [49, 129], [14, 87], [87, 86], [86, 14], [55, 8], [8, 9], [9, 55], [100, 47], [47, 121], [121, 100], [145, 23], [23, 22], [22, 145], [88, 89], [89, 179], [179, 88], [6, 122], [122, 196], [196, 6], [88, 95], [95, 96], [96, 88], [138, 172], [172, 136], [136, 138], [215, 58], [58, 172], [172, 215], [115, 48], [48, 219], [219, 115], [42, 80], [80, 81], [81, 42], [195, 3], [3, 51], [51, 195], [43, 146], [146, 61], [61, 43], [171, 175], [175, 199], [199, 171], [81, 82], [82, 38], [38, 81], [53, 46], [46, 225], [225, 53], [144, 163], [163, 110], [110, 144], [52, 65], [65, 66], [66, 52], [229, 228], [228, 117], [117, 229], [34, 127], [127, 234], [234, 34], [107, 108], [108, 69], [69, 107], [109, 108], [108, 151], [151, 109], [48, 64], [64, 235], [235, 48], [62, 78], [78, 191], [191, 62], [129, 209], [209, 126], [126, 129], [111, 35], [35, 143], [143, 111], [117, 123], [123, 50], [50, 117], [222, 65], [65, 52], [52, 222], [19, 125], [125, 141], [141, 19], [221, 55], [55, 65], [65, 221], [3, 195], [195, 197], [197, 3], [25, 7], [7, 33], [33, 25], [220, 237], [237, 44], [44, 220], [70, 71], [71, 139], [139, 70], [122, 193], [193, 245], [245, 122], [247, 130], [130, 33], [33, 247], [71, 21], [21, 162], [162, 71], [170, 169], [169, 150], [150, 170], [188, 174], [174, 196], [196, 188], [216, 186], [186, 92], [92, 216], [2, 97], [97, 167], [167, 2], [141, 125], [125, 241], [241, 141], [164, 167], [167, 37], [37, 164], [72, 38], [38, 12], [12, 72], [38, 82], [82, 13], [13, 38], [63, 68], [68, 71], [71, 63], [226, 35], [35, 111], [111, 226], [101, 50], [50, 205], [205, 101], [206, 92], [92, 165], [165, 206], [209, 198], [198, 217], [217, 209], [165, 167], [167, 97], [97, 165], [220, 115], [115, 218], [218, 220], [133, 112], [112, 243], [243, 133], [239, 238], [238, 241], [241, 239], [214, 135], [135, 169], [169, 214], [190, 173], [173, 133], [133, 190], [171, 208], [208, 32], [32, 171], [125, 44], [44, 237], [237, 125], [86, 87], [87, 178], [178, 86], [85, 86], [86, 179], [179, 85], [84, 85], [85, 180], [180, 84], [83, 84], [84, 181], [181, 83], [201, 83], [83, 182], [182, 201], [137, 93], [93, 132], [132, 137], [76, 62], [62, 183], [183, 76], [61, 76], [76, 184], [184, 61], [57, 61], [61, 185], [185, 57], [212, 57], [57, 186], [186, 212], [214, 207], [207, 187], [187, 214], [34, 143], [143, 156], [156, 34], [79, 239], [239, 237], [237, 79], [123, 137], [137, 177], [177, 123], [44, 1], [1, 4], [4, 44], [201, 194], [194, 32], [32, 201], [64, 102], [102, 129], [129, 64], [213, 215], [215, 138], [138, 213], [59, 166], [166, 219], [219, 59], [242, 99], [99, 97], [97, 242], [2, 94], [94, 141], [141, 2], [75, 59], [59, 235], [235, 75], [24, 110], [110, 228], [228, 24], [25, 130], [130, 226], [226, 25], [23, 24], [24, 229], [229, 23], [22, 23], [23, 230], [230, 22], [26, 22], [22, 231], [231, 26], [112, 26], [26, 232], [232, 112], [189, 190], [190, 243], [243, 189], [221, 56], [56, 190], [190, 221], [28, 56], [56, 221], [221, 28], [27, 28], [28, 222], [222, 27], [29, 27], [27, 223], [223, 29], [30, 29], [29, 224], [224, 30], [247, 30], [30, 225], [225, 247], [238, 79], [79, 20], [20, 238], [166, 59], [59, 75], [75, 166], [60, 75], [75, 240], [240, 60], [147, 177], [177, 215], [215, 147], [20, 79], [79, 166], [166, 20], [187, 147], [147, 213], [213, 187], [112, 233], [233, 244], [244, 112], [233, 128], [128, 245], [245, 233], [128, 114], [114, 188], [188, 128], [114, 217], [217, 174], [174, 114], [131, 115], [115, 220], [220, 131], [217, 198], [198, 236], [236, 217], [198, 131], [131, 134], [134, 198], [177, 132], [132, 58], [58, 177], [143, 35], [35, 124], [124, 143], [110, 163], [163, 7], [7, 110], [228, 110], [110, 25], [25, 228], [356, 389], [389, 368], [368, 356], [11, 302], [302, 267], [267, 11], [452, 350], [350, 349], [349, 452], [302, 303], [303, 269], [269, 302], [357, 343], [343, 277], [277, 357], [452, 453], [453, 357], [357, 452], [333, 332], [332, 297], [297, 333], [175, 152], [152, 377], [377, 175], [347, 348], [348, 330], [330, 347], [303, 304], [304, 270], [270, 303], [9, 336], [336, 337], [337, 9], [278, 279], [279, 360], [360, 278], [418, 262], [262, 431], [431, 418], [304, 408], [408, 409], [409, 304], [310, 415], [415, 407], [407, 310], [270, 409], [409, 410], [410, 270], [450, 348], [348, 347], [347, 450], [422, 430], [430, 434], [434, 422], [313, 314], [314, 17], [17, 313], [306, 307], [307, 375], [375, 306], [387, 388], [388, 260], [260, 387], [286, 414], [414, 398], [398, 286], [335, 406], [406, 418], [418, 335], [364, 367], [367, 416], [416, 364], [423, 358], [358, 327], [327, 423], [251, 284], [284, 298], [298, 251], [281, 5], [5, 4], [4, 281], [373, 374], [374, 253], [253, 373], [307, 320], [320, 321], [321, 307], [425, 427], [427, 411], [411, 425], [421, 313], [313, 18], [18, 421], [321, 405], [405, 406], [406, 321], [320, 404], [404, 405], [405, 320], [315, 16], [16, 17], [17, 315], [426, 425], [425, 266], [266, 426], [377, 400], [400, 369], [369, 377], [322, 391], [391, 269], [269, 322], [417, 465], [465, 464], [464, 417], [386, 257], [257, 258], [258, 386], [466, 260], [260, 388], [388, 466], [456, 399], [399, 419], [419, 456], [284, 332], [332, 333], [333, 284], [417, 285], [285, 8], [8, 417], [346, 340], [340, 261], [261, 346], [413, 441], [441, 285], [285, 413], [327, 460], [460, 328], [328, 327], [355, 371], [371, 329], [329, 355], [392, 439], [439, 438], [438, 392], [382, 341], [341, 256], [256, 382], [429, 420], [420, 360], [360, 429], [364, 394], [394, 379], [379, 364], [277, 343], [343, 437], [437, 277], [443, 444], [444, 283], [283, 443], [275, 440], [440, 363], [363, 275], [431, 262], [262, 369], [369, 431], [297, 338], [338, 337], [337, 297], [273, 375], [375, 321], [321, 273], [450, 451], [451, 349], [349, 450], [446, 342], [342, 467], [467, 446], [293, 334], [334, 282], [282, 293], [458, 461], [461, 462], [462, 458], [276, 353], [353, 383], [383, 276], [308, 324], [324, 325], [325, 308], [276, 300], [300, 293], [293, 276], [372, 345], [345, 447], [447, 372], [352, 345], [345, 340], [340, 352], [274, 1], [1, 19], [19, 274], [456, 248], [248, 281], [281, 456], [436, 427], [427, 425], [425, 436], [381, 256], [256, 252], [252, 381], [269, 391], [391, 393], [393, 269], [200, 199], [199, 428], [428, 200], [266, 330], [330, 329], [329, 266], [287, 273], [273, 422], [422, 287], [250, 462], [462, 328], [328, 250], [258, 286], [286, 384], [384, 258], [265, 353], [353, 342], [342, 265], [387, 259], [259, 257], [257, 387], [424, 431], [431, 430], [430, 424], [342, 353], [353, 276], [276, 342], [273, 335], [335, 424], [424, 273], [292, 325], [325, 307], [307, 292], [366, 447], [447, 345], [345, 366], [271, 303], [303, 302], [302, 271], [423, 266], [266, 371], [371, 423], [294, 455], [455, 460], [460, 294], [279, 278], [278, 294], [294, 279], [271, 272], [272, 304], [304, 271], [432, 434], [434, 427], [427, 432], [272, 407], [407, 408], [408, 272], [394, 430], [430, 431], [431, 394], [395, 369], [369, 400], [400, 395], [334, 333], [333, 299], [299, 334], [351, 417], [417, 168], [168, 351], [352, 280], [280, 411], [411, 352], [325, 319], [319, 320], [320, 325], [295, 296], [296, 336], [336, 295], [319, 403], [403, 404], [404, 319], [330, 348], [348, 349], [349, 330], [293, 298], [298, 333], [333, 293], [323, 454], [454, 447], [447, 323], [15, 16], [16, 315], [315, 15], [358, 429], [429, 279], [279, 358], [14, 15], [15, 316], [316, 14], [285, 336], [336, 9], [9, 285], [329, 349], [349, 350], [350, 329], [374, 380], [380, 252], [252, 374], [318, 402], [402, 403], [403, 318], [6, 197], [197, 419], [419, 6], [318, 319], [319, 325], [325, 318], [367, 364], [364, 365], [365, 367], [435, 367], [367, 397], [397, 435], [344, 438], [438, 439], [439, 344], [272, 271], [271, 311], [311, 272], [195, 5], [5, 281], [281, 195], [273, 287], [287, 291], [291, 273], [396, 428], [428, 199], [199, 396], [311, 271], [271, 268], [268, 311], [283, 444], [444, 445], [445, 283], [373, 254], [254, 339], [339, 373], [282, 334], [334, 296], [296, 282], [449, 347], [347, 346], [346, 449], [264, 447], [447, 454], [454, 264], [336, 296], [296, 299], [299, 336], [338, 10], [10, 151], [151, 338], [278, 439], [439, 455], [455, 278], [292, 407], [407, 415], [415, 292], [358, 371], [371, 355], [355, 358], [340, 345], [345, 372], [372, 340], [346, 347], [347, 280], [280, 346], [442, 443], [443, 282], [282, 442], [19, 94], [94, 370], [370, 19], [441, 442], [442, 295], [295, 441], [248, 419], [419, 197], [197, 248], [263, 255], [255, 359], [359, 263], [440, 275], [275, 274], [274, 440], [300, 383], [383, 368], [368, 300], [351, 412], [412, 465], [465, 351], [263, 467], [467, 466], [466, 263], [301, 368], [368, 389], [389, 301], [395, 378], [378, 379], [379, 395], [412, 351], [351, 419], [419, 412], [436, 426], [426, 322], [322, 436], [2, 164], [164, 393], [393, 2], [370, 462], [462, 461], [461, 370], [164, 0], [0, 267], [267, 164], [302, 11], [11, 12], [12, 302], [268, 12], [12, 13], [13, 268], [293, 300], [300, 301], [301, 293], [446, 261], [261, 340], [340, 446], [330, 266], [266, 425], [425, 330], [426, 423], [423, 391], [391, 426], [429, 355], [355, 437], [437, 429], [391, 327], [327, 326], [326, 391], [440, 457], [457, 438], [438, 440], [341, 382], [382, 362], [362, 341], [459, 457], [457, 461], [461, 459], [434, 430], [430, 394], [394, 434], [414, 463], [463, 362], [362, 414], [396, 369], [369, 262], [262, 396], [354, 461], [461, 457], [457, 354], [316, 403], [403, 402], [402, 316], [315, 404], [404, 403], [403, 315], [314, 405], [405, 404], [404, 314], [313, 406], [406, 405], [405, 313], [421, 418], [418, 406], [406, 421], [366, 401], [401, 361], [361, 366], [306, 408], [408, 407], [407, 306], [291, 409], [409, 408], [408, 291], [287, 410], [410, 409], [409, 287], [432, 436], [436, 410], [410, 432], [434, 416], [416, 411], [411, 434], [264, 368], [368, 383], [383, 264], [309, 438], [438, 457], [457, 309], [352, 376], [376, 401], [401, 352], [274, 275], [275, 4], [4, 274], [421, 428], [428, 262], [262, 421], [294, 327], [327, 358], [358, 294], [433, 416], [416, 367], [367, 433], [289, 455], [455, 439], [439, 289], [462, 370], [370, 326], [326, 462], [2, 326], [326, 370], [370, 2], [305, 460], [460, 455], [455, 305], [254, 449], [449, 448], [448, 254], [255, 261], [261, 446], [446, 255], [253, 450], [450, 449], [449, 253], [252, 451], [451, 450], [450, 252], [256, 452], [452, 451], [451, 256], [341, 453], [453, 452], [452, 341], [413, 464], [464, 463], [463, 413], [441, 413], [413, 414], [414, 441], [258, 442], [442, 441], [441, 258], [257, 443], [443, 442], [442, 257], [259, 444], [444, 443], [443, 259], [260, 445], [445, 444], [444, 260], [467, 342], [342, 445], [445, 467], [459, 458], [458, 250], [250, 459], [289, 392], [392, 290], [290, 289], [290, 328], [328, 460], [460, 290], [376, 433], [433, 435], [435, 376], [250, 290], [290, 392], [392, 250], [411, 416], [416, 433], [433, 411], [341, 463], [463, 464], [464, 341], [453, 464], [464, 465], [465, 453], [357, 465], [465, 412], [412, 357], [343, 412], [412, 399], [399, 343], [360, 363], [363, 440], [440, 360], [437, 399], [399, 456], [456, 437], [420, 456], [456, 363], [363, 420], [401, 435], [435, 288], [288, 401], [372, 383], [383, 353], [353, 372], [339, 255], [255, 249], [249, 339], [448, 261], [261, 255], [255, 448], [133, 243], [243, 190], [190, 133], [133, 155], [155, 112], [112, 133], [33, 246], [246, 247], [247, 33], [33, 130], [130, 25], [25, 33], [398, 384], [384, 286], [286, 398], [362, 398], [398, 414], [414, 362], [362, 463], [463, 341], [341, 362], [263, 359], [359, 467], [467, 263], [263, 249], [249, 255], [255, 263], [466, 467], [467, 260], [260, 466], [75, 60], [60, 166], [166, 75], [238, 239], [239, 79], [79, 238], [162, 127], [127, 139], [139, 162], [72, 11], [11, 37], [37, 72], [121, 232], [232, 120], [120, 121], [73, 72], [72, 39], [39, 73], [114, 128], [128, 47], [47, 114], [233, 232], [232, 128], [128, 233], [103, 104], [104, 67], [67, 103], [152, 175], [175, 148], [148, 152], [119, 118], [118, 101], [101, 119], [74, 73], [73, 40], [40, 74], [107, 9], [9, 108], [108, 107], [49, 48], [48, 131], [131, 49], [32, 194], [194, 211], [211, 32], [184, 74], [74, 185], [185, 184], [191, 80], [80, 183], [183, 191], [185, 40], [40, 186], [186, 185], [119, 230], [230, 118], [118, 119], [210, 202], [202, 214], [214, 210], [84, 83], [83, 17], [17, 84], [77, 76], [76, 146], [146, 77], [161, 160], [160, 30], [30, 161], [190, 56], [56, 173], [173, 190], [182, 106], [106, 194], [194, 182], [138, 135], [135, 192], [192, 138], [129, 203], [203, 98], [98, 129], [54, 21], [21, 68], [68, 54], [5, 51], [51, 4], [4, 5], [145, 144], [144, 23], [23, 145], [90, 77], [77, 91], [91, 90], [207, 205], [205, 187], [187, 207], [83, 201], [201, 18], [18, 83], [181, 91], [91, 182], [182, 181], [180, 90], [90, 181], [181, 180], [16, 85], [85, 17], [17, 16], [205, 206], [206, 36], [36, 205], [176, 148], [148, 140], [140, 176], [165, 92], [92, 39], [39, 165], [245, 193], [193, 244], [244, 245], [27, 159], [159, 28], [28, 27], [30, 247], [247, 161], [161, 30], [174, 236], [236, 196], [196, 174], [103, 54], [54, 104], [104, 103], [55, 193], [193, 8], [8, 55], [111, 117], [117, 31], [31, 111], [221, 189], [189, 55], [55, 221], [240, 98], [98, 99], [99, 240], [142, 126], [126, 100], [100, 142], [219, 166], [166, 218], [218, 219], [112, 155], [155, 26], [26, 112], [198, 209], [209, 131], [131, 198], [169, 135], [135, 150], [150, 169], [114, 47], [47, 217], [217, 114], [224, 223], [223, 53], [53, 224], [220, 45], [45, 134], [134, 220], [32, 211], [211, 140], [140, 32], [109, 67], [67, 108], [108, 109], [146, 43], [43, 91], [91, 146], [231, 230], [230, 120], [120, 231], [113, 226], [226, 247], [247, 113], [105, 63], [63, 52], [52, 105], [241, 238], [238, 242], [242, 241], [124, 46], [46, 156], [156, 124], [95, 78], [78, 96], [96, 95], [70, 46], [46, 63], [63, 70], [116, 143], [143, 227], [227, 116], [116, 123], [123, 111], [111, 116], [1, 44], [44, 19], [19, 1], [3, 236], [236, 51], [51, 3], [207, 216], [216, 205], [205, 207], [26, 154], [154, 22], [22, 26], [165, 39], [39, 167], [167, 165], [199, 200], [200, 208], [208, 199], [101, 36], [36, 100], [100, 101], [43, 57], [57, 202], [202, 43], [242, 20], [20, 99], [99, 242], [56, 28], [28, 157], [157, 56], [124, 35], [35, 113], [113, 124], [29, 160], [160, 27], [27, 29], [211, 204], [204, 210], [210, 211], [124, 113], [113, 46], [46, 124], [106, 43], [43, 204], [204, 106], [96, 62], [62, 77], [77, 96], [227, 137], [137, 116], [116, 227], [73, 41], [41, 72], [72, 73], [36, 203], [203, 142], [142, 36], [235, 64], [64, 240], [240, 235], [48, 49], [49, 64], [64, 48], [42, 41], [41, 74], [74, 42], [214, 212], [212, 207], [207, 214], [183, 42], [42, 184], [184, 183], [210, 169], [169, 211], [211, 210], [140, 170], [170, 176], [176, 140], [104, 105], [105, 69], [69, 104], [193, 122], [122, 168], [168, 193], [50, 123], [123, 187], [187, 50], [89, 96], [96, 90], [90, 89], [66, 65], [65, 107], [107, 66], [179, 89], [89, 180], [180, 179], [119, 101], [101, 120], [120, 119], [68, 63], [63, 104], [104, 68], [234, 93], [93, 227], [227, 234], [16, 15], [15, 85], [85, 16], [209, 129], [129, 49], [49, 209], [15, 14], [14, 86], [86, 15], [107, 55], [55, 9], [9, 107], [120, 100], [100, 121], [121, 120], [153, 145], [145, 22], [22, 153], [178, 88], [88, 179], [179, 178], [197, 6], [6, 196], [196, 197], [89, 88], [88, 96], [96, 89], [135, 138], [138, 136], [136, 135], [138, 215], [215, 172], [172, 138], [218, 115], [115, 219], [219, 218], [41, 42], [42, 81], [81, 41], [5, 195], [195, 51], [51, 5], [57, 43], [43, 61], [61, 57], [208, 171], [171, 199], [199, 208], [41, 81], [81, 38], [38, 41], [224, 53], [53, 225], [225, 224], [24, 144], [144, 110], [110, 24], [105, 52], [52, 66], [66, 105], [118, 229], [229, 117], [117, 118], [227, 34], [34, 234], [234, 227], [66, 107], [107, 69], [69, 66], [10, 109], [109, 151], [151, 10], [219, 48], [48, 235], [235, 219], [183, 62], [62, 191], [191, 183], [142, 129], [129, 126], [126, 142], [116, 111], [111, 143], [143, 116], [118, 117], [117, 50], [50, 118], [223, 222], [222, 52], [52, 223], [94, 19], [19, 141], [141, 94], [222, 221], [221, 65], [65, 222], [196, 3], [3, 197], [197, 196], [45, 220], [220, 44], [44, 45], [156, 70], [70, 139], [139, 156], [188, 122], [122, 245], [245, 188], [139, 71], [71, 162], [162, 139], [149, 170], [170, 150], [150, 149], [122, 188], [188, 196], [196, 122], [206, 216], [216, 92], [92, 206], [164, 2], [2, 167], [167, 164], [242, 141], [141, 241], [241, 242], [0, 164], [164, 37], [37, 0], [11, 72], [72, 12], [12, 11], [12, 38], [38, 13], [13, 12], [70, 63], [63, 71], [71, 70], [31, 226], [226, 111], [111, 31], [36, 101], [101, 205], [205, 36], [203, 206], [206, 165], [165, 203], [126, 209], [209, 217], [217, 126], [98, 165], [165, 97], [97, 98], [237, 220], [220, 218], [218, 237], [237, 239], [239, 241], [241, 237], [210, 214], [214, 169], [169, 210], [140, 171], [171, 32], [32, 140], [241, 125], [125, 237], [237, 241], [179, 86], [86, 178], [178, 179], [180, 85], [85, 179], [179, 180], [181, 84], [84, 180], [180, 181], [182, 83], [83, 181], [181, 182], [194, 201], [201, 182], [182, 194], [177, 137], [137, 132], [132, 177], [184, 76], [76, 183], [183, 184], [185, 61], [61, 184], [184, 185], [186, 57], [57, 185], [185, 186], [216, 212], [212, 186], [186, 216], [192, 214], [214, 187], [187, 192], [139, 34], [34, 156], [156, 139], [218, 79], [79, 237], [237, 218], [147, 123], [123, 177], [177, 147], [45, 44], [44, 4], [4, 45], [208, 201], [201, 32], [32, 208], [98, 64], [64, 129], [129, 98], [192, 213], [213, 138], [138, 192], [235, 59], [59, 219], [219, 235], [141, 242], [242, 97], [97, 141], [97, 2], [2, 141], [141, 97], [240, 75], [75, 235], [235, 240], [229, 24], [24, 228], [228, 229], [31, 25], [25, 226], [226, 31], [230, 23], [23, 229], [229, 230], [231, 22], [22, 230], [230, 231], [232, 26], [26, 231], [231, 232], [233, 112], [112, 232], [232, 233], [244, 189], [189, 243], [243, 244], [189, 221], [221, 190], [190, 189], [222, 28], [28, 221], [221, 222], [223, 27], [27, 222], [222, 223], [224, 29], [29, 223], [223, 224], [225, 30], [30, 224], [224, 225], [113, 247], [247, 225], [225, 113], [99, 60], [60, 240], [240, 99], [213, 147], [147, 215], [215, 213], [60, 20], [20, 166], [166, 60], [192, 187], [187, 213], [213, 192], [243, 112], [112, 244], [244, 243], [244, 233], [233, 245], [245, 244], [245, 128], [128, 188], [188, 245], [188, 114], [114, 174], [174, 188], [134, 131], [131, 220], [220, 134], [174, 217], [217, 236], [236, 174], [236, 198], [198, 134], [134, 236], [215, 177], [177, 58], [58, 215], [156, 143], [143, 124], [124, 156], [25, 110], [110, 7], [7, 25], [31, 228], [228, 25], [25, 31], [264, 356], [356, 368], [368, 264], [0, 11], [11, 267], [267, 0], [451, 452], [452, 349], [349, 451], [267, 302], [302, 269], [269, 267], [350, 357], [357, 277], [277, 350], [350, 452], [452, 357], [357, 350], [299, 333], [333, 297], [297, 299], [396, 175], [175, 377], [377, 396], [280, 347], [347, 330], [330, 280], [269, 303], [303, 270], [270, 269], [151, 9], [9, 337], [337, 151], [344, 278], [278, 360], [360, 344], [424, 418], [418, 431], [431, 424], [270, 304], [304, 409], [409, 270], [272, 310], [310, 407], [407, 272], [322, 270], [270, 410], [410, 322], [449, 450], [450, 347], [347, 449], [432, 422], [422, 434], [434, 432], [18, 313], [313, 17], [17, 18], [291, 306], [306, 375], [375, 291], [259, 387], [387, 260], [260, 259], [424, 335], [335, 418], [418, 424], [434, 364], [364, 416], [416, 434], [391, 423], [423, 327], [327, 391], [301, 251], [251, 298], [298, 301], [275, 281], [281, 4], [4, 275], [254, 373], [373, 253], [253, 254], [375, 307], [307, 321], [321, 375], [280, 425], [425, 411], [411, 280], [200, 421], [421, 18], [18, 200], [335, 321], [321, 406], [406, 335], [321, 320], [320, 405], [405, 321], [314, 315], [315, 17], [17, 314], [423, 426], [426, 266], [266, 423], [396, 377], [377, 369], [369, 396], [270, 322], [322, 269], [269, 270], [413, 417], [417, 464], [464, 413], [385, 386], [386, 258], [258, 385], [248, 456], [456, 419], [419, 248], [298, 284], [284, 333], [333, 298], [168, 417], [417, 8], [8, 168], [448, 346], [346, 261], [261, 448], [417, 413], [413, 285], [285, 417], [326, 327], [327, 328], [328, 326], [277, 355], [355, 329], [329, 277], [309, 392], [392, 438], [438, 309], [381, 382], [382, 256], [256, 381], [279, 429], [429, 360], [360, 279], [365, 364], [364, 379], [379, 365], [355, 277], [277, 437], [437, 355], [282, 443], [443, 283], [283, 282], [281, 275], [275, 363], [363, 281], [395, 431], [431, 369], [369, 395], [299, 297], [297, 337], [337, 299], [335, 273], [273, 321], [321, 335], [348, 450], [450, 349], [349, 348], [359, 446], [446, 467], [467, 359], [283, 293], [293, 282], [282, 283], [250, 458], [458, 462], [462, 250], [300, 276], [276, 383], [383, 300], [292, 308], [308, 325], [325, 292], [283, 276], [276, 293], [293, 283], [264, 372], [372, 447], [447, 264], [346, 352], [352, 340], [340, 346], [354, 274], [274, 19], [19, 354], [363, 456], [456, 281], [281, 363], [426, 436], [436, 425], [425, 426], [380, 381], [381, 252], [252, 380], [267, 269], [269, 393], [393, 267], [421, 200], [200, 428], [428, 421], [371, 266], [266, 329], [329, 371], [432, 287], [287, 422], [422, 432], [290, 250], [250, 328], [328, 290], [385, 258], [258, 384], [384, 385], [446, 265], [265, 342], [342, 446], [386, 387], [387, 257], [257, 386], [422, 424], [424, 430], [430, 422], [445, 342], [342, 276], [276, 445], [422, 273], [273, 424], [424, 422], [306, 292], [292, 307], [307, 306], [352, 366], [366, 345], [345, 352], [268, 271], [271, 302], [302, 268], [358, 423], [423, 371], [371, 358], [327, 294], [294, 460], [460, 327], [331, 279], [279, 294], [294, 331], [303, 271], [271, 304], [304, 303], [436, 432], [432, 427], [427, 436], [304, 272], [272, 408], [408, 304], [395, 394], [394, 431], [431, 395], [378, 395], [395, 400], [400, 378], [296, 334], [334, 299], [299, 296], [6, 351], [351, 168], [168, 6], [376, 352], [352, 411], [411, 376], [307, 325], [325, 320], [320, 307], [285, 295], [295, 336], [336, 285], [320, 319], [319, 404], [404, 320], [329, 330], [330, 349], [349, 329], [334, 293], [293, 333], [333, 334], [366, 323], [323, 447], [447, 366], [316, 15], [15, 315], [315, 316], [331, 358], [358, 279], [279, 331], [317, 14], [14, 316], [316, 317], [8, 285], [285, 9], [9, 8], [277, 329], [329, 350], [350, 277], [253, 374], [374, 252], [252, 253], [319, 318], [318, 403], [403, 319], [351, 6], [6, 419], [419, 351], [324, 318], [318, 325], [325, 324], [397, 367], [367, 365], [365, 397], [288, 435], [435, 397], [397, 288], [278, 344], [344, 439], [439, 278], [310, 272], [272, 311], [311, 310], [248, 195], [195, 281], [281, 248], [375, 273], [273, 291], [291, 375], [175, 396], [396, 199], [199, 175], [312, 311], [311, 268], [268, 312], [276, 283], [283, 445], [445, 276], [390, 373], [373, 339], [339, 390], [295, 282], [282, 296], [296, 295], [448, 449], [449, 346], [346, 448], [356, 264], [264, 454], [454, 356], [337, 336], [336, 299], [299, 337], [337, 338], [338, 151], [151, 337], [294, 278], [278, 455], [455, 294], [308, 292], [292, 415], [415, 308], [429, 358], [358, 355], [355, 429], [265, 340], [340, 372], [372, 265], [352, 346], [346, 280], [280, 352], [295, 442], [442, 282], [282, 295], [354, 19], [19, 370], [370, 354], [285, 441], [441, 295], [295, 285], [195, 248], [248, 197], [197, 195], [457, 440], [440, 274], [274, 457], [301, 300], [300, 368], [368, 301], [417, 351], [351, 465], [465, 417], [251, 301], [301, 389], [389, 251], [394, 395], [395, 379], [379, 394], [399, 412], [412, 419], [419, 399], [410, 436], [436, 322], [322, 410], [326, 2], [2, 393], [393, 326], [354, 370], [370, 461], [461, 354], [393, 164], [164, 267], [267, 393], [268, 302], [302, 12], [12, 268], [312, 268], [268, 13], [13, 312], [298, 293], [293, 301], [301, 298], [265, 446], [446, 340], [340, 265], [280, 330], [330, 425], [425, 280], [322, 426], [426, 391], [391, 322], [420, 429], [429, 437], [437, 420], [393, 391], [391, 326], [326, 393], [344, 440], [440, 438], [438, 344], [458, 459], [459, 461], [461, 458], [364, 434], [434, 394], [394, 364], [428, 396], [396, 262], [262, 428], [274, 354], [354, 457], [457, 274], [317, 316], [316, 402], [402, 317], [316, 315], [315, 403], [403, 316], [315, 314], [314, 404], [404, 315], [314, 313], [313, 405], [405, 314], [313, 421], [421, 406], [406, 313], [323, 366], [366, 361], [361, 323], [292, 306], [306, 407], [407, 292], [306, 291], [291, 408], [408, 306], [291, 287], [287, 409], [409, 291], [287, 432], [432, 410], [410, 287], [427, 434], [434, 411], [411, 427], [372, 264], [264, 383], [383, 372], [459, 309], [309, 457], [457, 459], [366, 352], [352, 401], [401, 366], [1, 274], [274, 4], [4, 1], [418, 421], [421, 262], [262, 418], [331, 294], [294, 358], [358, 331], [435, 433], [433, 367], [367, 435], [392, 289], [289, 439], [439, 392], [328, 462], [462, 326], [326, 328], [94, 2], [2, 370], [370, 94], [289, 305], [305, 455], [455, 289], [339, 254], [254, 448], [448, 339], [359, 255], [255, 446], [446, 359], [254, 253], [253, 449], [449, 254], [253, 252], [252, 450], [450, 253], [252, 256], [256, 451], [451, 252], [256, 341], [341, 452], [452, 256], [414, 413], [413, 463], [463, 414], [286, 441], [441, 414], [414, 286], [286, 258], [258, 441], [441, 286], [258, 257], [257, 442], [442, 258], [257, 259], [259, 443], [443, 257], [259, 260], [260, 444], [444, 259], [260, 467], [467, 445], [445, 260], [309, 459], [459, 250], [250, 309], [305, 289], [289, 290], [290, 305], [305, 290], [290, 460], [460, 305], [401, 376], [376, 435], [435, 401], [309, 250], [250, 392], [392, 309], [376, 411], [411, 433], [433, 376], [453, 341], [341, 464], [464, 453], [357, 453], [453, 465], [465, 357], [343, 357], [357, 412], [412, 343], [437, 343], [343, 399], [399, 437], [344, 360], [360, 440], [440, 344], [420, 437], [437, 456], [456, 420], [360, 420], [420, 363], [363, 360], [361, 401], [401, 288], [288, 361], [265, 372], [372, 353], [353, 265], [390, 339], [339, 249], [249, 390], [339, 448], [448, 255], [255, 339]);
|
|
2972
|
-
function
|
|
2975
|
+
var Vn = _e([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [314, 405], [405, 321], [321, 375], [375, 291], [61, 185], [185, 40], [40, 39], [39, 37], [37, 0], [0, 267], [267, 269], [269, 270], [270, 409], [409, 291], [78, 95], [95, 88], [88, 178], [178, 87], [87, 14], [14, 317], [317, 402], [402, 318], [318, 324], [324, 308], [78, 191], [191, 80], [80, 81], [81, 82], [82, 13], [13, 312], [312, 311], [311, 310], [310, 415], [415, 308]), Gn = _e([263, 249], [249, 390], [390, 373], [373, 374], [374, 380], [380, 381], [381, 382], [382, 362], [263, 466], [466, 388], [388, 387], [387, 386], [386, 385], [385, 384], [384, 398], [398, 362]), Hn = _e([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), Ac = _e([474, 475], [475, 476], [476, 477], [477, 474]), zn = _e([33, 7], [7, 163], [163, 144], [144, 145], [145, 153], [153, 154], [154, 155], [155, 133], [33, 246], [246, 161], [161, 160], [160, 159], [159, 158], [158, 157], [157, 173], [173, 133]), Wn = _e([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), Ec = _e([469, 470], [470, 471], [471, 472], [472, 469]), Kn = _e([10, 338], [338, 297], [297, 332], [332, 284], [284, 251], [251, 389], [389, 356], [356, 454], [454, 323], [323, 361], [361, 288], [288, 397], [397, 365], [365, 379], [379, 378], [378, 400], [400, 377], [377, 152], [152, 148], [148, 176], [176, 149], [149, 150], [150, 136], [136, 172], [172, 58], [58, 132], [132, 93], [93, 234], [234, 127], [127, 162], [162, 21], [21, 54], [54, 103], [103, 67], [67, 109], [109, 10]), kc = [...Vn, ...Gn, ...Hn, ...zn, ...Wn, ...Kn], Sc = _e([127, 34], [34, 139], [139, 127], [11, 0], [0, 37], [37, 11], [232, 231], [231, 120], [120, 232], [72, 37], [37, 39], [39, 72], [128, 121], [121, 47], [47, 128], [232, 121], [121, 128], [128, 232], [104, 69], [69, 67], [67, 104], [175, 171], [171, 148], [148, 175], [118, 50], [50, 101], [101, 118], [73, 39], [39, 40], [40, 73], [9, 151], [151, 108], [108, 9], [48, 115], [115, 131], [131, 48], [194, 204], [204, 211], [211, 194], [74, 40], [40, 185], [185, 74], [80, 42], [42, 183], [183, 80], [40, 92], [92, 186], [186, 40], [230, 229], [229, 118], [118, 230], [202, 212], [212, 214], [214, 202], [83, 18], [18, 17], [17, 83], [76, 61], [61, 146], [146, 76], [160, 29], [29, 30], [30, 160], [56, 157], [157, 173], [173, 56], [106, 204], [204, 194], [194, 106], [135, 214], [214, 192], [192, 135], [203, 165], [165, 98], [98, 203], [21, 71], [71, 68], [68, 21], [51, 45], [45, 4], [4, 51], [144, 24], [24, 23], [23, 144], [77, 146], [146, 91], [91, 77], [205, 50], [50, 187], [187, 205], [201, 200], [200, 18], [18, 201], [91, 106], [106, 182], [182, 91], [90, 91], [91, 181], [181, 90], [85, 84], [84, 17], [17, 85], [206, 203], [203, 36], [36, 206], [148, 171], [171, 140], [140, 148], [92, 40], [40, 39], [39, 92], [193, 189], [189, 244], [244, 193], [159, 158], [158, 28], [28, 159], [247, 246], [246, 161], [161, 247], [236, 3], [3, 196], [196, 236], [54, 68], [68, 104], [104, 54], [193, 168], [168, 8], [8, 193], [117, 228], [228, 31], [31, 117], [189, 193], [193, 55], [55, 189], [98, 97], [97, 99], [99, 98], [126, 47], [47, 100], [100, 126], [166, 79], [79, 218], [218, 166], [155, 154], [154, 26], [26, 155], [209, 49], [49, 131], [131, 209], [135, 136], [136, 150], [150, 135], [47, 126], [126, 217], [217, 47], [223, 52], [52, 53], [53, 223], [45, 51], [51, 134], [134, 45], [211, 170], [170, 140], [140, 211], [67, 69], [69, 108], [108, 67], [43, 106], [106, 91], [91, 43], [230, 119], [119, 120], [120, 230], [226, 130], [130, 247], [247, 226], [63, 53], [53, 52], [52, 63], [238, 20], [20, 242], [242, 238], [46, 70], [70, 156], [156, 46], [78, 62], [62, 96], [96, 78], [46, 53], [53, 63], [63, 46], [143, 34], [34, 227], [227, 143], [123, 117], [117, 111], [111, 123], [44, 125], [125, 19], [19, 44], [236, 134], [134, 51], [51, 236], [216, 206], [206, 205], [205, 216], [154, 153], [153, 22], [22, 154], [39, 37], [37, 167], [167, 39], [200, 201], [201, 208], [208, 200], [36, 142], [142, 100], [100, 36], [57, 212], [212, 202], [202, 57], [20, 60], [60, 99], [99, 20], [28, 158], [158, 157], [157, 28], [35, 226], [226, 113], [113, 35], [160, 159], [159, 27], [27, 160], [204, 202], [202, 210], [210, 204], [113, 225], [225, 46], [46, 113], [43, 202], [202, 204], [204, 43], [62, 76], [76, 77], [77, 62], [137, 123], [123, 116], [116, 137], [41, 38], [38, 72], [72, 41], [203, 129], [129, 142], [142, 203], [64, 98], [98, 240], [240, 64], [49, 102], [102, 64], [64, 49], [41, 73], [73, 74], [74, 41], [212, 216], [216, 207], [207, 212], [42, 74], [74, 184], [184, 42], [169, 170], [170, 211], [211, 169], [170, 149], [149, 176], [176, 170], [105, 66], [66, 69], [69, 105], [122, 6], [6, 168], [168, 122], [123, 147], [147, 187], [187, 123], [96, 77], [77, 90], [90, 96], [65, 55], [55, 107], [107, 65], [89, 90], [90, 180], [180, 89], [101, 100], [100, 120], [120, 101], [63, 105], [105, 104], [104, 63], [93, 137], [137, 227], [227, 93], [15, 86], [86, 85], [85, 15], [129, 102], [102, 49], [49, 129], [14, 87], [87, 86], [86, 14], [55, 8], [8, 9], [9, 55], [100, 47], [47, 121], [121, 100], [145, 23], [23, 22], [22, 145], [88, 89], [89, 179], [179, 88], [6, 122], [122, 196], [196, 6], [88, 95], [95, 96], [96, 88], [138, 172], [172, 136], [136, 138], [215, 58], [58, 172], [172, 215], [115, 48], [48, 219], [219, 115], [42, 80], [80, 81], [81, 42], [195, 3], [3, 51], [51, 195], [43, 146], [146, 61], [61, 43], [171, 175], [175, 199], [199, 171], [81, 82], [82, 38], [38, 81], [53, 46], [46, 225], [225, 53], [144, 163], [163, 110], [110, 144], [52, 65], [65, 66], [66, 52], [229, 228], [228, 117], [117, 229], [34, 127], [127, 234], [234, 34], [107, 108], [108, 69], [69, 107], [109, 108], [108, 151], [151, 109], [48, 64], [64, 235], [235, 48], [62, 78], [78, 191], [191, 62], [129, 209], [209, 126], [126, 129], [111, 35], [35, 143], [143, 111], [117, 123], [123, 50], [50, 117], [222, 65], [65, 52], [52, 222], [19, 125], [125, 141], [141, 19], [221, 55], [55, 65], [65, 221], [3, 195], [195, 197], [197, 3], [25, 7], [7, 33], [33, 25], [220, 237], [237, 44], [44, 220], [70, 71], [71, 139], [139, 70], [122, 193], [193, 245], [245, 122], [247, 130], [130, 33], [33, 247], [71, 21], [21, 162], [162, 71], [170, 169], [169, 150], [150, 170], [188, 174], [174, 196], [196, 188], [216, 186], [186, 92], [92, 216], [2, 97], [97, 167], [167, 2], [141, 125], [125, 241], [241, 141], [164, 167], [167, 37], [37, 164], [72, 38], [38, 12], [12, 72], [38, 82], [82, 13], [13, 38], [63, 68], [68, 71], [71, 63], [226, 35], [35, 111], [111, 226], [101, 50], [50, 205], [205, 101], [206, 92], [92, 165], [165, 206], [209, 198], [198, 217], [217, 209], [165, 167], [167, 97], [97, 165], [220, 115], [115, 218], [218, 220], [133, 112], [112, 243], [243, 133], [239, 238], [238, 241], [241, 239], [214, 135], [135, 169], [169, 214], [190, 173], [173, 133], [133, 190], [171, 208], [208, 32], [32, 171], [125, 44], [44, 237], [237, 125], [86, 87], [87, 178], [178, 86], [85, 86], [86, 179], [179, 85], [84, 85], [85, 180], [180, 84], [83, 84], [84, 181], [181, 83], [201, 83], [83, 182], [182, 201], [137, 93], [93, 132], [132, 137], [76, 62], [62, 183], [183, 76], [61, 76], [76, 184], [184, 61], [57, 61], [61, 185], [185, 57], [212, 57], [57, 186], [186, 212], [214, 207], [207, 187], [187, 214], [34, 143], [143, 156], [156, 34], [79, 239], [239, 237], [237, 79], [123, 137], [137, 177], [177, 123], [44, 1], [1, 4], [4, 44], [201, 194], [194, 32], [32, 201], [64, 102], [102, 129], [129, 64], [213, 215], [215, 138], [138, 213], [59, 166], [166, 219], [219, 59], [242, 99], [99, 97], [97, 242], [2, 94], [94, 141], [141, 2], [75, 59], [59, 235], [235, 75], [24, 110], [110, 228], [228, 24], [25, 130], [130, 226], [226, 25], [23, 24], [24, 229], [229, 23], [22, 23], [23, 230], [230, 22], [26, 22], [22, 231], [231, 26], [112, 26], [26, 232], [232, 112], [189, 190], [190, 243], [243, 189], [221, 56], [56, 190], [190, 221], [28, 56], [56, 221], [221, 28], [27, 28], [28, 222], [222, 27], [29, 27], [27, 223], [223, 29], [30, 29], [29, 224], [224, 30], [247, 30], [30, 225], [225, 247], [238, 79], [79, 20], [20, 238], [166, 59], [59, 75], [75, 166], [60, 75], [75, 240], [240, 60], [147, 177], [177, 215], [215, 147], [20, 79], [79, 166], [166, 20], [187, 147], [147, 213], [213, 187], [112, 233], [233, 244], [244, 112], [233, 128], [128, 245], [245, 233], [128, 114], [114, 188], [188, 128], [114, 217], [217, 174], [174, 114], [131, 115], [115, 220], [220, 131], [217, 198], [198, 236], [236, 217], [198, 131], [131, 134], [134, 198], [177, 132], [132, 58], [58, 177], [143, 35], [35, 124], [124, 143], [110, 163], [163, 7], [7, 110], [228, 110], [110, 25], [25, 228], [356, 389], [389, 368], [368, 356], [11, 302], [302, 267], [267, 11], [452, 350], [350, 349], [349, 452], [302, 303], [303, 269], [269, 302], [357, 343], [343, 277], [277, 357], [452, 453], [453, 357], [357, 452], [333, 332], [332, 297], [297, 333], [175, 152], [152, 377], [377, 175], [347, 348], [348, 330], [330, 347], [303, 304], [304, 270], [270, 303], [9, 336], [336, 337], [337, 9], [278, 279], [279, 360], [360, 278], [418, 262], [262, 431], [431, 418], [304, 408], [408, 409], [409, 304], [310, 415], [415, 407], [407, 310], [270, 409], [409, 410], [410, 270], [450, 348], [348, 347], [347, 450], [422, 430], [430, 434], [434, 422], [313, 314], [314, 17], [17, 313], [306, 307], [307, 375], [375, 306], [387, 388], [388, 260], [260, 387], [286, 414], [414, 398], [398, 286], [335, 406], [406, 418], [418, 335], [364, 367], [367, 416], [416, 364], [423, 358], [358, 327], [327, 423], [251, 284], [284, 298], [298, 251], [281, 5], [5, 4], [4, 281], [373, 374], [374, 253], [253, 373], [307, 320], [320, 321], [321, 307], [425, 427], [427, 411], [411, 425], [421, 313], [313, 18], [18, 421], [321, 405], [405, 406], [406, 321], [320, 404], [404, 405], [405, 320], [315, 16], [16, 17], [17, 315], [426, 425], [425, 266], [266, 426], [377, 400], [400, 369], [369, 377], [322, 391], [391, 269], [269, 322], [417, 465], [465, 464], [464, 417], [386, 257], [257, 258], [258, 386], [466, 260], [260, 388], [388, 466], [456, 399], [399, 419], [419, 456], [284, 332], [332, 333], [333, 284], [417, 285], [285, 8], [8, 417], [346, 340], [340, 261], [261, 346], [413, 441], [441, 285], [285, 413], [327, 460], [460, 328], [328, 327], [355, 371], [371, 329], [329, 355], [392, 439], [439, 438], [438, 392], [382, 341], [341, 256], [256, 382], [429, 420], [420, 360], [360, 429], [364, 394], [394, 379], [379, 364], [277, 343], [343, 437], [437, 277], [443, 444], [444, 283], [283, 443], [275, 440], [440, 363], [363, 275], [431, 262], [262, 369], [369, 431], [297, 338], [338, 337], [337, 297], [273, 375], [375, 321], [321, 273], [450, 451], [451, 349], [349, 450], [446, 342], [342, 467], [467, 446], [293, 334], [334, 282], [282, 293], [458, 461], [461, 462], [462, 458], [276, 353], [353, 383], [383, 276], [308, 324], [324, 325], [325, 308], [276, 300], [300, 293], [293, 276], [372, 345], [345, 447], [447, 372], [352, 345], [345, 340], [340, 352], [274, 1], [1, 19], [19, 274], [456, 248], [248, 281], [281, 456], [436, 427], [427, 425], [425, 436], [381, 256], [256, 252], [252, 381], [269, 391], [391, 393], [393, 269], [200, 199], [199, 428], [428, 200], [266, 330], [330, 329], [329, 266], [287, 273], [273, 422], [422, 287], [250, 462], [462, 328], [328, 250], [258, 286], [286, 384], [384, 258], [265, 353], [353, 342], [342, 265], [387, 259], [259, 257], [257, 387], [424, 431], [431, 430], [430, 424], [342, 353], [353, 276], [276, 342], [273, 335], [335, 424], [424, 273], [292, 325], [325, 307], [307, 292], [366, 447], [447, 345], [345, 366], [271, 303], [303, 302], [302, 271], [423, 266], [266, 371], [371, 423], [294, 455], [455, 460], [460, 294], [279, 278], [278, 294], [294, 279], [271, 272], [272, 304], [304, 271], [432, 434], [434, 427], [427, 432], [272, 407], [407, 408], [408, 272], [394, 430], [430, 431], [431, 394], [395, 369], [369, 400], [400, 395], [334, 333], [333, 299], [299, 334], [351, 417], [417, 168], [168, 351], [352, 280], [280, 411], [411, 352], [325, 319], [319, 320], [320, 325], [295, 296], [296, 336], [336, 295], [319, 403], [403, 404], [404, 319], [330, 348], [348, 349], [349, 330], [293, 298], [298, 333], [333, 293], [323, 454], [454, 447], [447, 323], [15, 16], [16, 315], [315, 15], [358, 429], [429, 279], [279, 358], [14, 15], [15, 316], [316, 14], [285, 336], [336, 9], [9, 285], [329, 349], [349, 350], [350, 329], [374, 380], [380, 252], [252, 374], [318, 402], [402, 403], [403, 318], [6, 197], [197, 419], [419, 6], [318, 319], [319, 325], [325, 318], [367, 364], [364, 365], [365, 367], [435, 367], [367, 397], [397, 435], [344, 438], [438, 439], [439, 344], [272, 271], [271, 311], [311, 272], [195, 5], [5, 281], [281, 195], [273, 287], [287, 291], [291, 273], [396, 428], [428, 199], [199, 396], [311, 271], [271, 268], [268, 311], [283, 444], [444, 445], [445, 283], [373, 254], [254, 339], [339, 373], [282, 334], [334, 296], [296, 282], [449, 347], [347, 346], [346, 449], [264, 447], [447, 454], [454, 264], [336, 296], [296, 299], [299, 336], [338, 10], [10, 151], [151, 338], [278, 439], [439, 455], [455, 278], [292, 407], [407, 415], [415, 292], [358, 371], [371, 355], [355, 358], [340, 345], [345, 372], [372, 340], [346, 347], [347, 280], [280, 346], [442, 443], [443, 282], [282, 442], [19, 94], [94, 370], [370, 19], [441, 442], [442, 295], [295, 441], [248, 419], [419, 197], [197, 248], [263, 255], [255, 359], [359, 263], [440, 275], [275, 274], [274, 440], [300, 383], [383, 368], [368, 300], [351, 412], [412, 465], [465, 351], [263, 467], [467, 466], [466, 263], [301, 368], [368, 389], [389, 301], [395, 378], [378, 379], [379, 395], [412, 351], [351, 419], [419, 412], [436, 426], [426, 322], [322, 436], [2, 164], [164, 393], [393, 2], [370, 462], [462, 461], [461, 370], [164, 0], [0, 267], [267, 164], [302, 11], [11, 12], [12, 302], [268, 12], [12, 13], [13, 268], [293, 300], [300, 301], [301, 293], [446, 261], [261, 340], [340, 446], [330, 266], [266, 425], [425, 330], [426, 423], [423, 391], [391, 426], [429, 355], [355, 437], [437, 429], [391, 327], [327, 326], [326, 391], [440, 457], [457, 438], [438, 440], [341, 382], [382, 362], [362, 341], [459, 457], [457, 461], [461, 459], [434, 430], [430, 394], [394, 434], [414, 463], [463, 362], [362, 414], [396, 369], [369, 262], [262, 396], [354, 461], [461, 457], [457, 354], [316, 403], [403, 402], [402, 316], [315, 404], [404, 403], [403, 315], [314, 405], [405, 404], [404, 314], [313, 406], [406, 405], [405, 313], [421, 418], [418, 406], [406, 421], [366, 401], [401, 361], [361, 366], [306, 408], [408, 407], [407, 306], [291, 409], [409, 408], [408, 291], [287, 410], [410, 409], [409, 287], [432, 436], [436, 410], [410, 432], [434, 416], [416, 411], [411, 434], [264, 368], [368, 383], [383, 264], [309, 438], [438, 457], [457, 309], [352, 376], [376, 401], [401, 352], [274, 275], [275, 4], [4, 274], [421, 428], [428, 262], [262, 421], [294, 327], [327, 358], [358, 294], [433, 416], [416, 367], [367, 433], [289, 455], [455, 439], [439, 289], [462, 370], [370, 326], [326, 462], [2, 326], [326, 370], [370, 2], [305, 460], [460, 455], [455, 305], [254, 449], [449, 448], [448, 254], [255, 261], [261, 446], [446, 255], [253, 450], [450, 449], [449, 253], [252, 451], [451, 450], [450, 252], [256, 452], [452, 451], [451, 256], [341, 453], [453, 452], [452, 341], [413, 464], [464, 463], [463, 413], [441, 413], [413, 414], [414, 441], [258, 442], [442, 441], [441, 258], [257, 443], [443, 442], [442, 257], [259, 444], [444, 443], [443, 259], [260, 445], [445, 444], [444, 260], [467, 342], [342, 445], [445, 467], [459, 458], [458, 250], [250, 459], [289, 392], [392, 290], [290, 289], [290, 328], [328, 460], [460, 290], [376, 433], [433, 435], [435, 376], [250, 290], [290, 392], [392, 250], [411, 416], [416, 433], [433, 411], [341, 463], [463, 464], [464, 341], [453, 464], [464, 465], [465, 453], [357, 465], [465, 412], [412, 357], [343, 412], [412, 399], [399, 343], [360, 363], [363, 440], [440, 360], [437, 399], [399, 456], [456, 437], [420, 456], [456, 363], [363, 420], [401, 435], [435, 288], [288, 401], [372, 383], [383, 353], [353, 372], [339, 255], [255, 249], [249, 339], [448, 261], [261, 255], [255, 448], [133, 243], [243, 190], [190, 133], [133, 155], [155, 112], [112, 133], [33, 246], [246, 247], [247, 33], [33, 130], [130, 25], [25, 33], [398, 384], [384, 286], [286, 398], [362, 398], [398, 414], [414, 362], [362, 463], [463, 341], [341, 362], [263, 359], [359, 467], [467, 263], [263, 249], [249, 255], [255, 263], [466, 467], [467, 260], [260, 466], [75, 60], [60, 166], [166, 75], [238, 239], [239, 79], [79, 238], [162, 127], [127, 139], [139, 162], [72, 11], [11, 37], [37, 72], [121, 232], [232, 120], [120, 121], [73, 72], [72, 39], [39, 73], [114, 128], [128, 47], [47, 114], [233, 232], [232, 128], [128, 233], [103, 104], [104, 67], [67, 103], [152, 175], [175, 148], [148, 152], [119, 118], [118, 101], [101, 119], [74, 73], [73, 40], [40, 74], [107, 9], [9, 108], [108, 107], [49, 48], [48, 131], [131, 49], [32, 194], [194, 211], [211, 32], [184, 74], [74, 185], [185, 184], [191, 80], [80, 183], [183, 191], [185, 40], [40, 186], [186, 185], [119, 230], [230, 118], [118, 119], [210, 202], [202, 214], [214, 210], [84, 83], [83, 17], [17, 84], [77, 76], [76, 146], [146, 77], [161, 160], [160, 30], [30, 161], [190, 56], [56, 173], [173, 190], [182, 106], [106, 194], [194, 182], [138, 135], [135, 192], [192, 138], [129, 203], [203, 98], [98, 129], [54, 21], [21, 68], [68, 54], [5, 51], [51, 4], [4, 5], [145, 144], [144, 23], [23, 145], [90, 77], [77, 91], [91, 90], [207, 205], [205, 187], [187, 207], [83, 201], [201, 18], [18, 83], [181, 91], [91, 182], [182, 181], [180, 90], [90, 181], [181, 180], [16, 85], [85, 17], [17, 16], [205, 206], [206, 36], [36, 205], [176, 148], [148, 140], [140, 176], [165, 92], [92, 39], [39, 165], [245, 193], [193, 244], [244, 245], [27, 159], [159, 28], [28, 27], [30, 247], [247, 161], [161, 30], [174, 236], [236, 196], [196, 174], [103, 54], [54, 104], [104, 103], [55, 193], [193, 8], [8, 55], [111, 117], [117, 31], [31, 111], [221, 189], [189, 55], [55, 221], [240, 98], [98, 99], [99, 240], [142, 126], [126, 100], [100, 142], [219, 166], [166, 218], [218, 219], [112, 155], [155, 26], [26, 112], [198, 209], [209, 131], [131, 198], [169, 135], [135, 150], [150, 169], [114, 47], [47, 217], [217, 114], [224, 223], [223, 53], [53, 224], [220, 45], [45, 134], [134, 220], [32, 211], [211, 140], [140, 32], [109, 67], [67, 108], [108, 109], [146, 43], [43, 91], [91, 146], [231, 230], [230, 120], [120, 231], [113, 226], [226, 247], [247, 113], [105, 63], [63, 52], [52, 105], [241, 238], [238, 242], [242, 241], [124, 46], [46, 156], [156, 124], [95, 78], [78, 96], [96, 95], [70, 46], [46, 63], [63, 70], [116, 143], [143, 227], [227, 116], [116, 123], [123, 111], [111, 116], [1, 44], [44, 19], [19, 1], [3, 236], [236, 51], [51, 3], [207, 216], [216, 205], [205, 207], [26, 154], [154, 22], [22, 26], [165, 39], [39, 167], [167, 165], [199, 200], [200, 208], [208, 199], [101, 36], [36, 100], [100, 101], [43, 57], [57, 202], [202, 43], [242, 20], [20, 99], [99, 242], [56, 28], [28, 157], [157, 56], [124, 35], [35, 113], [113, 124], [29, 160], [160, 27], [27, 29], [211, 204], [204, 210], [210, 211], [124, 113], [113, 46], [46, 124], [106, 43], [43, 204], [204, 106], [96, 62], [62, 77], [77, 96], [227, 137], [137, 116], [116, 227], [73, 41], [41, 72], [72, 73], [36, 203], [203, 142], [142, 36], [235, 64], [64, 240], [240, 235], [48, 49], [49, 64], [64, 48], [42, 41], [41, 74], [74, 42], [214, 212], [212, 207], [207, 214], [183, 42], [42, 184], [184, 183], [210, 169], [169, 211], [211, 210], [140, 170], [170, 176], [176, 140], [104, 105], [105, 69], [69, 104], [193, 122], [122, 168], [168, 193], [50, 123], [123, 187], [187, 50], [89, 96], [96, 90], [90, 89], [66, 65], [65, 107], [107, 66], [179, 89], [89, 180], [180, 179], [119, 101], [101, 120], [120, 119], [68, 63], [63, 104], [104, 68], [234, 93], [93, 227], [227, 234], [16, 15], [15, 85], [85, 16], [209, 129], [129, 49], [49, 209], [15, 14], [14, 86], [86, 15], [107, 55], [55, 9], [9, 107], [120, 100], [100, 121], [121, 120], [153, 145], [145, 22], [22, 153], [178, 88], [88, 179], [179, 178], [197, 6], [6, 196], [196, 197], [89, 88], [88, 96], [96, 89], [135, 138], [138, 136], [136, 135], [138, 215], [215, 172], [172, 138], [218, 115], [115, 219], [219, 218], [41, 42], [42, 81], [81, 41], [5, 195], [195, 51], [51, 5], [57, 43], [43, 61], [61, 57], [208, 171], [171, 199], [199, 208], [41, 81], [81, 38], [38, 41], [224, 53], [53, 225], [225, 224], [24, 144], [144, 110], [110, 24], [105, 52], [52, 66], [66, 105], [118, 229], [229, 117], [117, 118], [227, 34], [34, 234], [234, 227], [66, 107], [107, 69], [69, 66], [10, 109], [109, 151], [151, 10], [219, 48], [48, 235], [235, 219], [183, 62], [62, 191], [191, 183], [142, 129], [129, 126], [126, 142], [116, 111], [111, 143], [143, 116], [118, 117], [117, 50], [50, 118], [223, 222], [222, 52], [52, 223], [94, 19], [19, 141], [141, 94], [222, 221], [221, 65], [65, 222], [196, 3], [3, 197], [197, 196], [45, 220], [220, 44], [44, 45], [156, 70], [70, 139], [139, 156], [188, 122], [122, 245], [245, 188], [139, 71], [71, 162], [162, 139], [149, 170], [170, 150], [150, 149], [122, 188], [188, 196], [196, 122], [206, 216], [216, 92], [92, 206], [164, 2], [2, 167], [167, 164], [242, 141], [141, 241], [241, 242], [0, 164], [164, 37], [37, 0], [11, 72], [72, 12], [12, 11], [12, 38], [38, 13], [13, 12], [70, 63], [63, 71], [71, 70], [31, 226], [226, 111], [111, 31], [36, 101], [101, 205], [205, 36], [203, 206], [206, 165], [165, 203], [126, 209], [209, 217], [217, 126], [98, 165], [165, 97], [97, 98], [237, 220], [220, 218], [218, 237], [237, 239], [239, 241], [241, 237], [210, 214], [214, 169], [169, 210], [140, 171], [171, 32], [32, 140], [241, 125], [125, 237], [237, 241], [179, 86], [86, 178], [178, 179], [180, 85], [85, 179], [179, 180], [181, 84], [84, 180], [180, 181], [182, 83], [83, 181], [181, 182], [194, 201], [201, 182], [182, 194], [177, 137], [137, 132], [132, 177], [184, 76], [76, 183], [183, 184], [185, 61], [61, 184], [184, 185], [186, 57], [57, 185], [185, 186], [216, 212], [212, 186], [186, 216], [192, 214], [214, 187], [187, 192], [139, 34], [34, 156], [156, 139], [218, 79], [79, 237], [237, 218], [147, 123], [123, 177], [177, 147], [45, 44], [44, 4], [4, 45], [208, 201], [201, 32], [32, 208], [98, 64], [64, 129], [129, 98], [192, 213], [213, 138], [138, 192], [235, 59], [59, 219], [219, 235], [141, 242], [242, 97], [97, 141], [97, 2], [2, 141], [141, 97], [240, 75], [75, 235], [235, 240], [229, 24], [24, 228], [228, 229], [31, 25], [25, 226], [226, 31], [230, 23], [23, 229], [229, 230], [231, 22], [22, 230], [230, 231], [232, 26], [26, 231], [231, 232], [233, 112], [112, 232], [232, 233], [244, 189], [189, 243], [243, 244], [189, 221], [221, 190], [190, 189], [222, 28], [28, 221], [221, 222], [223, 27], [27, 222], [222, 223], [224, 29], [29, 223], [223, 224], [225, 30], [30, 224], [224, 225], [113, 247], [247, 225], [225, 113], [99, 60], [60, 240], [240, 99], [213, 147], [147, 215], [215, 213], [60, 20], [20, 166], [166, 60], [192, 187], [187, 213], [213, 192], [243, 112], [112, 244], [244, 243], [244, 233], [233, 245], [245, 244], [245, 128], [128, 188], [188, 245], [188, 114], [114, 174], [174, 188], [134, 131], [131, 220], [220, 134], [174, 217], [217, 236], [236, 174], [236, 198], [198, 134], [134, 236], [215, 177], [177, 58], [58, 215], [156, 143], [143, 124], [124, 156], [25, 110], [110, 7], [7, 25], [31, 228], [228, 25], [25, 31], [264, 356], [356, 368], [368, 264], [0, 11], [11, 267], [267, 0], [451, 452], [452, 349], [349, 451], [267, 302], [302, 269], [269, 267], [350, 357], [357, 277], [277, 350], [350, 452], [452, 357], [357, 350], [299, 333], [333, 297], [297, 299], [396, 175], [175, 377], [377, 396], [280, 347], [347, 330], [330, 280], [269, 303], [303, 270], [270, 269], [151, 9], [9, 337], [337, 151], [344, 278], [278, 360], [360, 344], [424, 418], [418, 431], [431, 424], [270, 304], [304, 409], [409, 270], [272, 310], [310, 407], [407, 272], [322, 270], [270, 410], [410, 322], [449, 450], [450, 347], [347, 449], [432, 422], [422, 434], [434, 432], [18, 313], [313, 17], [17, 18], [291, 306], [306, 375], [375, 291], [259, 387], [387, 260], [260, 259], [424, 335], [335, 418], [418, 424], [434, 364], [364, 416], [416, 434], [391, 423], [423, 327], [327, 391], [301, 251], [251, 298], [298, 301], [275, 281], [281, 4], [4, 275], [254, 373], [373, 253], [253, 254], [375, 307], [307, 321], [321, 375], [280, 425], [425, 411], [411, 280], [200, 421], [421, 18], [18, 200], [335, 321], [321, 406], [406, 335], [321, 320], [320, 405], [405, 321], [314, 315], [315, 17], [17, 314], [423, 426], [426, 266], [266, 423], [396, 377], [377, 369], [369, 396], [270, 322], [322, 269], [269, 270], [413, 417], [417, 464], [464, 413], [385, 386], [386, 258], [258, 385], [248, 456], [456, 419], [419, 248], [298, 284], [284, 333], [333, 298], [168, 417], [417, 8], [8, 168], [448, 346], [346, 261], [261, 448], [417, 413], [413, 285], [285, 417], [326, 327], [327, 328], [328, 326], [277, 355], [355, 329], [329, 277], [309, 392], [392, 438], [438, 309], [381, 382], [382, 256], [256, 381], [279, 429], [429, 360], [360, 279], [365, 364], [364, 379], [379, 365], [355, 277], [277, 437], [437, 355], [282, 443], [443, 283], [283, 282], [281, 275], [275, 363], [363, 281], [395, 431], [431, 369], [369, 395], [299, 297], [297, 337], [337, 299], [335, 273], [273, 321], [321, 335], [348, 450], [450, 349], [349, 348], [359, 446], [446, 467], [467, 359], [283, 293], [293, 282], [282, 283], [250, 458], [458, 462], [462, 250], [300, 276], [276, 383], [383, 300], [292, 308], [308, 325], [325, 292], [283, 276], [276, 293], [293, 283], [264, 372], [372, 447], [447, 264], [346, 352], [352, 340], [340, 346], [354, 274], [274, 19], [19, 354], [363, 456], [456, 281], [281, 363], [426, 436], [436, 425], [425, 426], [380, 381], [381, 252], [252, 380], [267, 269], [269, 393], [393, 267], [421, 200], [200, 428], [428, 421], [371, 266], [266, 329], [329, 371], [432, 287], [287, 422], [422, 432], [290, 250], [250, 328], [328, 290], [385, 258], [258, 384], [384, 385], [446, 265], [265, 342], [342, 446], [386, 387], [387, 257], [257, 386], [422, 424], [424, 430], [430, 422], [445, 342], [342, 276], [276, 445], [422, 273], [273, 424], [424, 422], [306, 292], [292, 307], [307, 306], [352, 366], [366, 345], [345, 352], [268, 271], [271, 302], [302, 268], [358, 423], [423, 371], [371, 358], [327, 294], [294, 460], [460, 327], [331, 279], [279, 294], [294, 331], [303, 271], [271, 304], [304, 303], [436, 432], [432, 427], [427, 436], [304, 272], [272, 408], [408, 304], [395, 394], [394, 431], [431, 395], [378, 395], [395, 400], [400, 378], [296, 334], [334, 299], [299, 296], [6, 351], [351, 168], [168, 6], [376, 352], [352, 411], [411, 376], [307, 325], [325, 320], [320, 307], [285, 295], [295, 336], [336, 285], [320, 319], [319, 404], [404, 320], [329, 330], [330, 349], [349, 329], [334, 293], [293, 333], [333, 334], [366, 323], [323, 447], [447, 366], [316, 15], [15, 315], [315, 316], [331, 358], [358, 279], [279, 331], [317, 14], [14, 316], [316, 317], [8, 285], [285, 9], [9, 8], [277, 329], [329, 350], [350, 277], [253, 374], [374, 252], [252, 253], [319, 318], [318, 403], [403, 319], [351, 6], [6, 419], [419, 351], [324, 318], [318, 325], [325, 324], [397, 367], [367, 365], [365, 397], [288, 435], [435, 397], [397, 288], [278, 344], [344, 439], [439, 278], [310, 272], [272, 311], [311, 310], [248, 195], [195, 281], [281, 248], [375, 273], [273, 291], [291, 375], [175, 396], [396, 199], [199, 175], [312, 311], [311, 268], [268, 312], [276, 283], [283, 445], [445, 276], [390, 373], [373, 339], [339, 390], [295, 282], [282, 296], [296, 295], [448, 449], [449, 346], [346, 448], [356, 264], [264, 454], [454, 356], [337, 336], [336, 299], [299, 337], [337, 338], [338, 151], [151, 337], [294, 278], [278, 455], [455, 294], [308, 292], [292, 415], [415, 308], [429, 358], [358, 355], [355, 429], [265, 340], [340, 372], [372, 265], [352, 346], [346, 280], [280, 352], [295, 442], [442, 282], [282, 295], [354, 19], [19, 370], [370, 354], [285, 441], [441, 295], [295, 285], [195, 248], [248, 197], [197, 195], [457, 440], [440, 274], [274, 457], [301, 300], [300, 368], [368, 301], [417, 351], [351, 465], [465, 417], [251, 301], [301, 389], [389, 251], [394, 395], [395, 379], [379, 394], [399, 412], [412, 419], [419, 399], [410, 436], [436, 322], [322, 410], [326, 2], [2, 393], [393, 326], [354, 370], [370, 461], [461, 354], [393, 164], [164, 267], [267, 393], [268, 302], [302, 12], [12, 268], [312, 268], [268, 13], [13, 312], [298, 293], [293, 301], [301, 298], [265, 446], [446, 340], [340, 265], [280, 330], [330, 425], [425, 280], [322, 426], [426, 391], [391, 322], [420, 429], [429, 437], [437, 420], [393, 391], [391, 326], [326, 393], [344, 440], [440, 438], [438, 344], [458, 459], [459, 461], [461, 458], [364, 434], [434, 394], [394, 364], [428, 396], [396, 262], [262, 428], [274, 354], [354, 457], [457, 274], [317, 316], [316, 402], [402, 317], [316, 315], [315, 403], [403, 316], [315, 314], [314, 404], [404, 315], [314, 313], [313, 405], [405, 314], [313, 421], [421, 406], [406, 313], [323, 366], [366, 361], [361, 323], [292, 306], [306, 407], [407, 292], [306, 291], [291, 408], [408, 306], [291, 287], [287, 409], [409, 291], [287, 432], [432, 410], [410, 287], [427, 434], [434, 411], [411, 427], [372, 264], [264, 383], [383, 372], [459, 309], [309, 457], [457, 459], [366, 352], [352, 401], [401, 366], [1, 274], [274, 4], [4, 1], [418, 421], [421, 262], [262, 418], [331, 294], [294, 358], [358, 331], [435, 433], [433, 367], [367, 435], [392, 289], [289, 439], [439, 392], [328, 462], [462, 326], [326, 328], [94, 2], [2, 370], [370, 94], [289, 305], [305, 455], [455, 289], [339, 254], [254, 448], [448, 339], [359, 255], [255, 446], [446, 359], [254, 253], [253, 449], [449, 254], [253, 252], [252, 450], [450, 253], [252, 256], [256, 451], [451, 252], [256, 341], [341, 452], [452, 256], [414, 413], [413, 463], [463, 414], [286, 441], [441, 414], [414, 286], [286, 258], [258, 441], [441, 286], [258, 257], [257, 442], [442, 258], [257, 259], [259, 443], [443, 257], [259, 260], [260, 444], [444, 259], [260, 467], [467, 445], [445, 260], [309, 459], [459, 250], [250, 309], [305, 289], [289, 290], [290, 305], [305, 290], [290, 460], [460, 305], [401, 376], [376, 435], [435, 401], [309, 250], [250, 392], [392, 309], [376, 411], [411, 433], [433, 376], [453, 341], [341, 464], [464, 453], [357, 453], [453, 465], [465, 357], [343, 357], [357, 412], [412, 343], [437, 343], [343, 399], [399, 437], [344, 360], [360, 440], [440, 344], [420, 437], [437, 456], [456, 420], [360, 420], [420, 363], [363, 360], [361, 401], [401, 288], [288, 361], [265, 372], [372, 353], [353, 265], [390, 339], [339, 249], [249, 390], [339, 448], [448, 255], [255, 339]);
|
|
2976
|
+
function Ki(e) {
|
|
2973
2977
|
e.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] };
|
|
2974
2978
|
}
|
|
2975
2979
|
var $ = class extends le {
|
|
2976
2980
|
constructor(e, t) {
|
|
2977
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1, v(e = this.h = new
|
|
2981
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1, v(e = this.h = new Ka(), 0, 1, t = new O()), this.A = new Wa(), v(this.h, 0, 3, this.A), this.u = new os(), v(this.h, 0, 2, this.u), Be(this.u, 4, 1), y(this.u, 2, 0.5), y(this.A, 2, 0.5), y(this.h, 4, 0.5);
|
|
2978
2982
|
}
|
|
2979
2983
|
get baseOptions() {
|
|
2980
2984
|
return A(this.h, O, 1);
|
|
@@ -2986,16 +2990,16 @@ var $ = class extends le {
|
|
|
2986
2990
|
return "numFaces" in e && Be(this.u, 4, e.numFaces ?? 1), "minFaceDetectionConfidence" in e && y(this.u, 2, e.minFaceDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && y(this.h, 4, e.minTrackingConfidence ?? 0.5), "minFacePresenceConfidence" in e && y(this.A, 2, e.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in e && (this.outputFaceBlendshapes = !!e.outputFaceBlendshapes), "outputFacialTransformationMatrixes" in e && (this.outputFacialTransformationMatrixes = !!e.outputFacialTransformationMatrixes), this.l(e);
|
|
2987
2991
|
}
|
|
2988
2992
|
F(e, t) {
|
|
2989
|
-
return
|
|
2993
|
+
return Ki(this), Ae(this, e, t), this.j;
|
|
2990
2994
|
}
|
|
2991
2995
|
G(e, t, r) {
|
|
2992
|
-
return
|
|
2996
|
+
return Ki(this), Fe(this, e, r, t), this.j;
|
|
2993
2997
|
}
|
|
2994
2998
|
m() {
|
|
2995
2999
|
var e = new fe();
|
|
2996
3000
|
x(e, "image_in"), x(e, "norm_rect"), E(e, "face_landmarks");
|
|
2997
3001
|
const t = new de();
|
|
2998
|
-
Me(t,
|
|
3002
|
+
Me(t, bu, this.h);
|
|
2999
3003
|
const r = new ee();
|
|
3000
3004
|
he(r, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "NORM_LANDMARKS:face_landmarks"), r.o(t), be(e, r), this.g.attachProtoVectorListener("face_landmarks", ((s, n) => {
|
|
3001
3005
|
for (const i of s) s = Er(i), this.j.faceLandmarks.push(as(s));
|
|
@@ -3008,7 +3012,7 @@ var $ = class extends le {
|
|
|
3008
3012
|
})), this.g.attachEmptyPacketListener("blendshapes", ((s) => {
|
|
3009
3013
|
f(this, s);
|
|
3010
3014
|
}))), this.outputFacialTransformationMatrixes && (E(e, "face_geometry"), _(r, "FACE_GEOMETRY:face_geometry"), this.g.attachProtoVectorListener("face_geometry", ((s, n) => {
|
|
3011
|
-
if (this.outputFacialTransformationMatrixes) for (const i of s) (s = A(s =
|
|
3015
|
+
if (this.outputFacialTransformationMatrixes) for (const i of s) (s = A(s = yu(i), cu, 2)) && this.j.facialTransformationMatrixes.push({ rows: ge(s, 1) ?? 0 ?? 0, columns: ge(s, 2) ?? 0 ?? 0, data: rt(s, 3, Te, tt()).slice() ?? [] });
|
|
3012
3016
|
f(this, n);
|
|
3013
3017
|
})), this.g.attachEmptyPacketListener("face_geometry", ((s) => {
|
|
3014
3018
|
f(this, s);
|
|
@@ -3021,27 +3025,27 @@ $.prototype.detectForVideo = $.prototype.G, $.prototype.detect = $.prototype.F,
|
|
|
3021
3025
|
return w($, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3022
3026
|
}, $.createFromOptions = function(e, t) {
|
|
3023
3027
|
return w($, e, t);
|
|
3024
|
-
}, $.FACE_LANDMARKS_LIPS = Vn, $.FACE_LANDMARKS_LEFT_EYE = Gn, $.FACE_LANDMARKS_LEFT_EYEBROW = Hn, $.FACE_LANDMARKS_LEFT_IRIS =
|
|
3028
|
+
}, $.FACE_LANDMARKS_LIPS = Vn, $.FACE_LANDMARKS_LEFT_EYE = Gn, $.FACE_LANDMARKS_LEFT_EYEBROW = Hn, $.FACE_LANDMARKS_LEFT_IRIS = Ac, $.FACE_LANDMARKS_RIGHT_EYE = zn, $.FACE_LANDMARKS_RIGHT_EYEBROW = Wn, $.FACE_LANDMARKS_RIGHT_IRIS = Ec, $.FACE_LANDMARKS_FACE_OVAL = Kn, $.FACE_LANDMARKS_CONTOURS = kc, $.FACE_LANDMARKS_TESSELATION = Sc;
|
|
3025
3029
|
var qn = _e([0, 1], [1, 2], [2, 3], [3, 4], [0, 5], [5, 6], [6, 7], [7, 8], [5, 9], [9, 10], [10, 11], [11, 12], [9, 13], [13, 14], [14, 15], [15, 16], [13, 17], [0, 17], [17, 18], [18, 19], [19, 20]);
|
|
3026
|
-
function
|
|
3030
|
+
function qi(e) {
|
|
3027
3031
|
e.gestures = [], e.landmarks = [], e.worldLandmarks = [], e.handedness = [];
|
|
3028
3032
|
}
|
|
3029
|
-
function
|
|
3033
|
+
function Xi(e) {
|
|
3030
3034
|
return e.gestures.length === 0 ? { gestures: [], landmarks: [], worldLandmarks: [], handedness: [], handednesses: [] } : { gestures: e.gestures, landmarks: e.landmarks, worldLandmarks: e.worldLandmarks, handedness: e.handedness, handednesses: e.handedness };
|
|
3031
3035
|
}
|
|
3032
|
-
function
|
|
3036
|
+
function Yi(e, t = !0) {
|
|
3033
3037
|
const r = [];
|
|
3034
3038
|
for (const n of e) {
|
|
3035
3039
|
var s = is(n);
|
|
3036
3040
|
e = [];
|
|
3037
|
-
for (const i of s.g()) s = t &&
|
|
3041
|
+
for (const i of s.g()) s = t && ge(i, 1) != null ? ge(i, 1) ?? 0 : -1, e.push({ score: I(i, 2) ?? 0, index: s, categoryName: Y(L(i, 3)) ?? "" ?? "", displayName: Y(L(i, 4)) ?? "" ?? "" });
|
|
3038
3042
|
r.push(e);
|
|
3039
3043
|
}
|
|
3040
3044
|
return r;
|
|
3041
3045
|
}
|
|
3042
3046
|
var te = class extends le {
|
|
3043
3047
|
constructor(e, t) {
|
|
3044
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], v(e = this.j = new
|
|
3048
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], v(e = this.j = new Ya(), 0, 1, t = new O()), this.u = new Rn(), v(this.j, 0, 2, this.u), this.D = new On(), v(this.u, 0, 3, this.D), this.A = new Xa(), v(this.u, 0, 2, this.A), this.h = new vu(), v(this.j, 0, 3, this.h), y(this.A, 2, 0.5), y(this.u, 4, 0.5), y(this.D, 2, 0.5);
|
|
3045
3049
|
}
|
|
3046
3050
|
get baseOptions() {
|
|
3047
3051
|
return A(this.j, O, 1);
|
|
@@ -3058,22 +3062,22 @@ var te = class extends le {
|
|
|
3058
3062
|
return e.customGesturesClassifierOptions ? (v(r = t = new vt(), 0, 2, s = Ds(e.customGesturesClassifierOptions, (o = A(this.h, vt, 4)) == null ? void 0 : o.l())), v(this.h, 0, 4, t)) : e.customGesturesClassifierOptions === void 0 && ((a = A(this.h, vt, 4)) == null || a.g()), this.l(e);
|
|
3059
3063
|
}
|
|
3060
3064
|
Ha(e, t) {
|
|
3061
|
-
return
|
|
3065
|
+
return qi(this), Ae(this, e, t), Xi(this);
|
|
3062
3066
|
}
|
|
3063
3067
|
Ia(e, t, r) {
|
|
3064
|
-
return
|
|
3068
|
+
return qi(this), Fe(this, e, r, t), Xi(this);
|
|
3065
3069
|
}
|
|
3066
3070
|
m() {
|
|
3067
3071
|
var e = new fe();
|
|
3068
3072
|
x(e, "image_in"), x(e, "norm_rect"), E(e, "hand_gestures"), E(e, "hand_landmarks"), E(e, "world_hand_landmarks"), E(e, "handedness");
|
|
3069
3073
|
const t = new de();
|
|
3070
|
-
Me(t,
|
|
3074
|
+
Me(t, _u, this.j);
|
|
3071
3075
|
const r = new ee();
|
|
3072
3076
|
he(r, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "HAND_GESTURES:hand_gestures"), _(r, "LANDMARKS:hand_landmarks"), _(r, "WORLD_LANDMARKS:world_hand_landmarks"), _(r, "HANDEDNESS:handedness"), r.o(t), be(e, r), this.g.attachProtoVectorListener("hand_landmarks", ((s, n) => {
|
|
3073
3077
|
for (const i of s) {
|
|
3074
3078
|
s = Er(i);
|
|
3075
3079
|
const o = [];
|
|
3076
|
-
for (const a of Ne(s,
|
|
3080
|
+
for (const a of Ne(s, ja, 1)) o.push({ x: I(a, 1) ?? 0, y: I(a, 2) ?? 0, z: I(a, 3) ?? 0, visibility: I(a, 4) ?? 0 });
|
|
3077
3081
|
this.landmarks.push(o);
|
|
3078
3082
|
}
|
|
3079
3083
|
f(this, n);
|
|
@@ -3083,24 +3087,24 @@ var te = class extends le {
|
|
|
3083
3087
|
for (const i of s) {
|
|
3084
3088
|
s = Et(i);
|
|
3085
3089
|
const o = [];
|
|
3086
|
-
for (const a of Ne(s,
|
|
3090
|
+
for (const a of Ne(s, Da, 1)) o.push({ x: I(a, 1) ?? 0, y: I(a, 2) ?? 0, z: I(a, 3) ?? 0, visibility: I(a, 4) ?? 0 });
|
|
3087
3091
|
this.worldLandmarks.push(o);
|
|
3088
3092
|
}
|
|
3089
3093
|
f(this, n);
|
|
3090
3094
|
})), this.g.attachEmptyPacketListener("world_hand_landmarks", ((s) => {
|
|
3091
3095
|
f(this, s);
|
|
3092
3096
|
})), this.g.attachProtoVectorListener("hand_gestures", ((s, n) => {
|
|
3093
|
-
this.gestures.push(...
|
|
3097
|
+
this.gestures.push(...Yi(s, !1)), f(this, n);
|
|
3094
3098
|
})), this.g.attachEmptyPacketListener("hand_gestures", ((s) => {
|
|
3095
3099
|
f(this, s);
|
|
3096
3100
|
})), this.g.attachProtoVectorListener("handedness", ((s, n) => {
|
|
3097
|
-
this.handedness.push(...
|
|
3101
|
+
this.handedness.push(...Yi(s)), f(this, n);
|
|
3098
3102
|
})), this.g.attachEmptyPacketListener("handedness", ((s) => {
|
|
3099
3103
|
f(this, s);
|
|
3100
3104
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3101
3105
|
}
|
|
3102
3106
|
};
|
|
3103
|
-
function
|
|
3107
|
+
function Qi(e) {
|
|
3104
3108
|
return { landmarks: e.landmarks, worldLandmarks: e.worldLandmarks, handednesses: e.handedness, handedness: e.handedness };
|
|
3105
3109
|
}
|
|
3106
3110
|
te.prototype.recognizeForVideo = te.prototype.Ia, te.prototype.recognize = te.prototype.Ha, te.prototype.setOptions = te.prototype.o, te.createFromModelPath = function(e, t) {
|
|
@@ -3112,7 +3116,7 @@ te.prototype.recognizeForVideo = te.prototype.Ia, te.prototype.recognize = te.pr
|
|
|
3112
3116
|
}, te.HAND_CONNECTIONS = qn;
|
|
3113
3117
|
var re = class extends le {
|
|
3114
3118
|
constructor(e, t) {
|
|
3115
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], v(e = this.h = new Rn(), 0, 1, t = new O()), this.u = new On(), v(this.h, 0, 3, this.u), this.j = new
|
|
3119
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], v(e = this.h = new Rn(), 0, 1, t = new O()), this.u = new On(), v(this.h, 0, 3, this.u), this.j = new Xa(), v(this.h, 0, 2, this.j), Be(this.j, 3, 1), y(this.j, 2, 0.5), y(this.u, 2, 0.5), y(this.h, 4, 0.5);
|
|
3116
3120
|
}
|
|
3117
3121
|
get baseOptions() {
|
|
3118
3122
|
return A(this.h, O, 1);
|
|
@@ -3124,16 +3128,16 @@ var re = class extends le {
|
|
|
3124
3128
|
return "numHands" in e && Be(this.j, 3, e.numHands ?? 1), "minHandDetectionConfidence" in e && y(this.j, 2, e.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && y(this.h, 4, e.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in e && y(this.u, 2, e.minHandPresenceConfidence ?? 0.5), this.l(e);
|
|
3125
3129
|
}
|
|
3126
3130
|
F(e, t) {
|
|
3127
|
-
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Ae(this, e, t),
|
|
3131
|
+
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Ae(this, e, t), Qi(this);
|
|
3128
3132
|
}
|
|
3129
3133
|
G(e, t, r) {
|
|
3130
|
-
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Fe(this, e, r, t),
|
|
3134
|
+
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Fe(this, e, r, t), Qi(this);
|
|
3131
3135
|
}
|
|
3132
3136
|
m() {
|
|
3133
3137
|
var e = new fe();
|
|
3134
3138
|
x(e, "image_in"), x(e, "norm_rect"), E(e, "hand_landmarks"), E(e, "world_hand_landmarks"), E(e, "handedness");
|
|
3135
3139
|
const t = new de();
|
|
3136
|
-
Me(t,
|
|
3140
|
+
Me(t, wu, this.h);
|
|
3137
3141
|
const r = new ee();
|
|
3138
3142
|
he(r, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "LANDMARKS:hand_landmarks"), _(r, "WORLD_LANDMARKS:world_hand_landmarks"), _(r, "HANDEDNESS:handedness"), r.o(t), be(e, r), this.g.attachProtoVectorListener("hand_landmarks", ((s, n) => {
|
|
3139
3143
|
for (const i of s) s = Er(i), this.landmarks.push(as(s));
|
|
@@ -3151,7 +3155,7 @@ var re = class extends le {
|
|
|
3151
3155
|
for (const c of s) {
|
|
3152
3156
|
s = is(c);
|
|
3153
3157
|
const u = [];
|
|
3154
|
-
for (const h of s.g()) u.push({ score: I(h, 2) ?? 0, index:
|
|
3158
|
+
for (const h of s.g()) u.push({ score: I(h, 2) ?? 0, index: ge(h, 1) ?? 0 ?? -1, categoryName: Y(L(h, 3)) ?? "" ?? "", displayName: Y(L(h, 4)) ?? "" ?? "" });
|
|
3155
3159
|
a.push(u);
|
|
3156
3160
|
}
|
|
3157
3161
|
o.call(i, ...a), f(this, n);
|
|
@@ -3167,11 +3171,11 @@ re.prototype.detectForVideo = re.prototype.G, re.prototype.detect = re.prototype
|
|
|
3167
3171
|
}, re.createFromOptions = function(e, t) {
|
|
3168
3172
|
return w(re, e, t);
|
|
3169
3173
|
}, re.HAND_CONNECTIONS = qn;
|
|
3170
|
-
var
|
|
3171
|
-
function
|
|
3174
|
+
var Tc = _e([0, 1], [1, 2], [2, 3], [3, 7], [0, 4], [4, 5], [5, 6], [6, 8], [9, 10], [11, 12], [11, 13], [13, 15], [15, 17], [15, 19], [15, 21], [17, 19], [12, 14], [14, 16], [16, 18], [16, 20], [16, 22], [18, 20], [11, 23], [12, 24], [23, 24], [23, 25], [24, 26], [25, 27], [26, 28], [27, 29], [28, 30], [29, 31], [30, 32], [27, 31], [28, 32]);
|
|
3175
|
+
function Ji(e) {
|
|
3172
3176
|
e.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] };
|
|
3173
3177
|
}
|
|
3174
|
-
function
|
|
3178
|
+
function Zi(e) {
|
|
3175
3179
|
try {
|
|
3176
3180
|
if (!e.D) return e.h;
|
|
3177
3181
|
e.D(e.h);
|
|
@@ -3184,7 +3188,7 @@ function Lr(e, t) {
|
|
|
3184
3188
|
}
|
|
3185
3189
|
var C = class extends le {
|
|
3186
3190
|
constructor(e, t) {
|
|
3187
|
-
super(new we(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1, v(e = this.j = new
|
|
3191
|
+
super(new we(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1, v(e = this.j = new tc(), 0, 1, t = new O()), this.I = new On(), v(this.j, 0, 2, this.I), this.W = new Au(), v(this.j, 0, 3, this.W), this.u = new os(), v(this.j, 0, 4, this.u), this.O = new Wa(), v(this.j, 0, 5, this.O), this.A = new Za(), v(this.j, 0, 6, this.A), this.M = new ec(), v(this.j, 0, 7, this.M), y(this.u, 2, 0.5), y(this.u, 3, 0.3), y(this.O, 2, 0.5), y(this.A, 2, 0.5), y(this.A, 3, 0.3), y(this.M, 2, 0.5), y(this.I, 2, 0.5);
|
|
3188
3192
|
}
|
|
3189
3193
|
get baseOptions() {
|
|
3190
3194
|
return A(this.j, O, 1);
|
|
@@ -3197,16 +3201,16 @@ var C = class extends le {
|
|
|
3197
3201
|
}
|
|
3198
3202
|
F(e, t, r) {
|
|
3199
3203
|
const s = typeof t != "function" ? t : {};
|
|
3200
|
-
return this.D = typeof t == "function" ? t : r,
|
|
3204
|
+
return this.D = typeof t == "function" ? t : r, Ji(this), Ae(this, e, s), Zi(this);
|
|
3201
3205
|
}
|
|
3202
3206
|
G(e, t, r, s) {
|
|
3203
3207
|
const n = typeof r != "function" ? r : {};
|
|
3204
|
-
return this.D = typeof r == "function" ? r : s,
|
|
3208
|
+
return this.D = typeof r == "function" ? r : s, Ji(this), Fe(this, e, n, t), Zi(this);
|
|
3205
3209
|
}
|
|
3206
3210
|
m() {
|
|
3207
3211
|
var e = new fe();
|
|
3208
3212
|
x(e, "input_frames_image"), E(e, "pose_landmarks"), E(e, "pose_world_landmarks"), E(e, "face_landmarks"), E(e, "left_hand_landmarks"), E(e, "left_hand_world_landmarks"), E(e, "right_hand_landmarks"), E(e, "right_hand_world_landmarks");
|
|
3209
|
-
const t = new de(), r = new
|
|
3213
|
+
const t = new de(), r = new Ei();
|
|
3210
3214
|
he(r, 1, "type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"), (function(n, i) {
|
|
3211
3215
|
if (i != null) if (Array.isArray(i)) k(n, 2, Kr(i, 0, dr));
|
|
3212
3216
|
else {
|
|
@@ -3215,7 +3219,7 @@ var C = class extends le {
|
|
|
3215
3219
|
}
|
|
3216
3220
|
})(r, this.j.g());
|
|
3217
3221
|
const s = new ee();
|
|
3218
|
-
he(s, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), bn(s, 8,
|
|
3222
|
+
he(s, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), bn(s, 8, Ei, r), P(s, "IMAGE:input_frames_image"), _(s, "POSE_LANDMARKS:pose_landmarks"), _(s, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), _(s, "FACE_LANDMARKS:face_landmarks"), _(s, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), _(s, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), _(s, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), _(s, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), s.o(t), be(e, s), cs(this, e), this.g.attachProtoListener("pose_landmarks", ((n, i) => {
|
|
3219
3223
|
Lr(n, this.h.poseLandmarks), f(this, i);
|
|
3220
3224
|
})), this.g.attachEmptyPacketListener("pose_landmarks", ((n) => {
|
|
3221
3225
|
f(this, n);
|
|
@@ -3264,10 +3268,10 @@ C.prototype.detectForVideo = C.prototype.G, C.prototype.detect = C.prototype.F,
|
|
|
3264
3268
|
return w(C, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3265
3269
|
}, C.createFromOptions = function(e, t) {
|
|
3266
3270
|
return w(C, e, t);
|
|
3267
|
-
}, C.HAND_CONNECTIONS = qn, C.POSE_CONNECTIONS =
|
|
3271
|
+
}, C.HAND_CONNECTIONS = qn, C.POSE_CONNECTIONS = Tc, C.FACE_LANDMARKS_LIPS = Vn, C.FACE_LANDMARKS_LEFT_EYE = Gn, C.FACE_LANDMARKS_LEFT_EYEBROW = Hn, C.FACE_LANDMARKS_LEFT_IRIS = Ac, C.FACE_LANDMARKS_RIGHT_EYE = zn, C.FACE_LANDMARKS_RIGHT_EYEBROW = Wn, C.FACE_LANDMARKS_RIGHT_IRIS = Ec, C.FACE_LANDMARKS_FACE_OVAL = Kn, C.FACE_LANDMARKS_CONTOURS = kc, C.FACE_LANDMARKS_TESSELATION = Sc;
|
|
3268
3272
|
var pe = class extends le {
|
|
3269
3273
|
constructor(e, t) {
|
|
3270
|
-
super(new we(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] }, v(e = this.h = new
|
|
3274
|
+
super(new we(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] }, v(e = this.h = new rc(), 0, 1, t = new O());
|
|
3271
3275
|
}
|
|
3272
3276
|
get baseOptions() {
|
|
3273
3277
|
return A(this.h, O, 1);
|
|
@@ -3288,10 +3292,10 @@ var pe = class extends le {
|
|
|
3288
3292
|
var e = new fe();
|
|
3289
3293
|
x(e, "input_image"), x(e, "norm_rect"), E(e, "classifications");
|
|
3290
3294
|
const t = new de();
|
|
3291
|
-
Me(t,
|
|
3295
|
+
Me(t, Eu, this.h);
|
|
3292
3296
|
const r = new ee();
|
|
3293
3297
|
he(r, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"), P(r, "IMAGE:input_image"), P(r, "NORM_RECT:norm_rect"), _(r, "CLASSIFICATIONS:classifications"), r.o(t), be(e, r), this.g.attachProtoListener("classifications", ((s, n) => {
|
|
3294
|
-
this.j =
|
|
3298
|
+
this.j = Pu(lu(s)), f(this, n);
|
|
3295
3299
|
})), this.g.attachEmptyPacketListener("classifications", ((s) => {
|
|
3296
3300
|
f(this, s);
|
|
3297
3301
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
@@ -3306,7 +3310,7 @@ pe.prototype.classifyForVideo = pe.prototype.ta, pe.prototype.classify = pe.prot
|
|
|
3306
3310
|
};
|
|
3307
3311
|
var se = class extends le {
|
|
3308
3312
|
constructor(e, t) {
|
|
3309
|
-
super(new we(e, t), "image_in", "norm_rect", !0), this.h = new
|
|
3313
|
+
super(new we(e, t), "image_in", "norm_rect", !0), this.h = new sc(), this.embeddings = { embeddings: [] }, v(e = this.h, 0, 1, t = new O());
|
|
3310
3314
|
}
|
|
3311
3315
|
get baseOptions() {
|
|
3312
3316
|
return A(this.h, O, 1);
|
|
@@ -3315,8 +3319,8 @@ var se = class extends le {
|
|
|
3315
3319
|
v(this.h, 0, 1, e);
|
|
3316
3320
|
}
|
|
3317
3321
|
o(e) {
|
|
3318
|
-
var t = this.h, r = A(this.h,
|
|
3319
|
-
return r = r ? r.clone() : new
|
|
3322
|
+
var t = this.h, r = A(this.h, Fi, 2);
|
|
3323
|
+
return r = r ? r.clone() : new Fi(), e.l2Normalize !== void 0 ? k(r, 1, lr(e.l2Normalize)) : "l2Normalize" in e && k(r, 1), e.quantize !== void 0 ? k(r, 2, lr(e.quantize)) : "quantize" in e && k(r, 2), v(t, 0, 2, r), this.l(e);
|
|
3320
3324
|
}
|
|
3321
3325
|
za(e, t) {
|
|
3322
3326
|
return Ae(this, e, t), this.embeddings;
|
|
@@ -3328,16 +3332,16 @@ var se = class extends le {
|
|
|
3328
3332
|
var e = new fe();
|
|
3329
3333
|
x(e, "image_in"), x(e, "norm_rect"), E(e, "embeddings_out");
|
|
3330
3334
|
const t = new de();
|
|
3331
|
-
Me(t,
|
|
3335
|
+
Me(t, ku, this.h);
|
|
3332
3336
|
const r = new ee();
|
|
3333
3337
|
he(r, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "EMBEDDINGS:embeddings_out"), r.o(t), be(e, r), this.g.attachProtoListener("embeddings_out", ((s, n) => {
|
|
3334
|
-
s =
|
|
3335
|
-
return { embeddings: Ne(i,
|
|
3338
|
+
s = pu(s), this.embeddings = (function(i) {
|
|
3339
|
+
return { embeddings: Ne(i, fu, 1).map(((o) => {
|
|
3336
3340
|
var u, h;
|
|
3337
|
-
const a = { headIndex:
|
|
3341
|
+
const a = { headIndex: ge(o, 3) ?? 0 ?? -1, headName: Y(L(o, 4)) ?? "" ?? "" };
|
|
3338
3342
|
var c = o.v;
|
|
3339
|
-
return
|
|
3340
|
-
})), timestampMs:
|
|
3343
|
+
return Zo(c, 0 | c[p], xi, ys(o, 1)) !== void 0 ? (o = rt(o = A(o, xi, ys(o, 1), void 0), 1, Te, tt()), a.floatEmbedding = o.slice()) : (c = new Uint8Array(0), a.quantizedEmbedding = ((h = (u = A(o, du, ys(o, 2), void 0)) == null ? void 0 : u.na()) == null ? void 0 : h.h()) ?? c), a;
|
|
3344
|
+
})), timestampMs: uc(ra(i)) };
|
|
3341
3345
|
})(s), f(this, n);
|
|
3342
3346
|
})), this.g.attachEmptyPacketListener("embeddings_out", ((s) => {
|
|
3343
3347
|
f(this, s);
|
|
@@ -3345,10 +3349,10 @@ var se = class extends le {
|
|
|
3345
3349
|
}
|
|
3346
3350
|
};
|
|
3347
3351
|
se.cosineSimilarity = function(e, t) {
|
|
3348
|
-
if (e.floatEmbedding && t.floatEmbedding) e =
|
|
3352
|
+
if (e.floatEmbedding && t.floatEmbedding) e = Bi(e.floatEmbedding, t.floatEmbedding);
|
|
3349
3353
|
else {
|
|
3350
3354
|
if (!e.quantizedEmbedding || !t.quantizedEmbedding) throw Error("Cannot compute cosine similarity between quantized and float embeddings.");
|
|
3351
|
-
e = Ni(
|
|
3355
|
+
e = Bi(Ni(e.quantizedEmbedding), Ni(t.quantizedEmbedding));
|
|
3352
3356
|
}
|
|
3353
3357
|
return e;
|
|
3354
3358
|
}, se.prototype.embedForVideo = se.prototype.Aa, se.prototype.embed = se.prototype.za, se.prototype.setOptions = se.prototype.o, se.createFromModelPath = function(e, t) {
|
|
@@ -3369,7 +3373,7 @@ var Hs = class {
|
|
|
3369
3373
|
})), (t = this.categoryMask) == null || t.close();
|
|
3370
3374
|
}
|
|
3371
3375
|
};
|
|
3372
|
-
function
|
|
3376
|
+
function Iu(e) {
|
|
3373
3377
|
var r, s;
|
|
3374
3378
|
const t = (function(n) {
|
|
3375
3379
|
return Ne(n, ee, 1);
|
|
@@ -3379,10 +3383,10 @@ function Ou(e) {
|
|
|
3379
3383
|
e.u[Number(i)] = Y(L(n, 1)) ?? "";
|
|
3380
3384
|
}));
|
|
3381
3385
|
}
|
|
3382
|
-
function
|
|
3386
|
+
function eo(e) {
|
|
3383
3387
|
e.categoryMask = void 0, e.confidenceMasks = void 0, e.qualityScores = void 0;
|
|
3384
3388
|
}
|
|
3385
|
-
function
|
|
3389
|
+
function to(e) {
|
|
3386
3390
|
try {
|
|
3387
3391
|
const t = new Hs(e.confidenceMasks, e.categoryMask, e.qualityScores);
|
|
3388
3392
|
if (!e.j) return t;
|
|
@@ -3394,7 +3398,7 @@ function eo(e) {
|
|
|
3394
3398
|
Hs.prototype.close = Hs.prototype.close;
|
|
3395
3399
|
var Z = class extends le {
|
|
3396
3400
|
constructor(e, t) {
|
|
3397
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Bn(), this.A = new
|
|
3401
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Bn(), this.A = new nc(), v(this.h, 0, 3, this.A), v(e = this.h, 0, 1, t = new O());
|
|
3398
3402
|
}
|
|
3399
3403
|
get baseOptions() {
|
|
3400
3404
|
return A(this.h, O, 1);
|
|
@@ -3406,15 +3410,15 @@ var Z = class extends le {
|
|
|
3406
3410
|
return e.displayNamesLocale !== void 0 ? k(this.h, 2, _r(e.displayNamesLocale)) : "displayNamesLocale" in e && k(this.h, 2), "outputCategoryMask" in e && (this.outputCategoryMask = e.outputCategoryMask ?? !1), "outputConfidenceMasks" in e && (this.outputConfidenceMasks = e.outputConfidenceMasks ?? !0), super.l(e);
|
|
3407
3411
|
}
|
|
3408
3412
|
L() {
|
|
3409
|
-
|
|
3413
|
+
Iu(this);
|
|
3410
3414
|
}
|
|
3411
3415
|
segment(e, t, r) {
|
|
3412
3416
|
const s = typeof t != "function" ? t : {};
|
|
3413
|
-
return this.j = typeof t == "function" ? t : r,
|
|
3417
|
+
return this.j = typeof t == "function" ? t : r, eo(this), Ae(this, e, s), to(this);
|
|
3414
3418
|
}
|
|
3415
3419
|
La(e, t, r, s) {
|
|
3416
3420
|
const n = typeof r != "function" ? r : {};
|
|
3417
|
-
return this.j = typeof r == "function" ? r : s,
|
|
3421
|
+
return this.j = typeof r == "function" ? r : s, eo(this), Fe(this, e, n, t), to(this);
|
|
3418
3422
|
}
|
|
3419
3423
|
Da() {
|
|
3420
3424
|
return this.u;
|
|
@@ -3423,7 +3427,7 @@ var Z = class extends le {
|
|
|
3423
3427
|
var e = new fe();
|
|
3424
3428
|
x(e, "image_in"), x(e, "norm_rect");
|
|
3425
3429
|
const t = new de();
|
|
3426
|
-
Me(t,
|
|
3430
|
+
Me(t, oc, this.h);
|
|
3427
3431
|
const r = new ee();
|
|
3428
3432
|
he(r, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), r.o(t), be(e, r), cs(this, e), this.outputConfidenceMasks && (E(e, "confidence_masks"), _(r, "CONFIDENCE_MASKS:confidence_masks"), $t(this, "confidence_masks"), this.g.aa("confidence_masks", ((s, n) => {
|
|
3429
3433
|
this.confidenceMasks = s.map(((i) => Rt(this, i, !0, !this.j))), f(this, n);
|
|
@@ -3461,7 +3465,7 @@ var zs = class {
|
|
|
3461
3465
|
zs.prototype.close = zs.prototype.close;
|
|
3462
3466
|
var Se = class extends le {
|
|
3463
3467
|
constructor(e, t) {
|
|
3464
|
-
super(new we(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Bn(), this.u = new
|
|
3468
|
+
super(new we(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Bn(), this.u = new nc(), v(this.h, 0, 3, this.u), v(e = this.h, 0, 1, t = new O());
|
|
3465
3469
|
}
|
|
3466
3470
|
get baseOptions() {
|
|
3467
3471
|
return A(this.h, O, 1);
|
|
@@ -3474,14 +3478,14 @@ var Se = class extends le {
|
|
|
3474
3478
|
}
|
|
3475
3479
|
segment(e, t, r, s) {
|
|
3476
3480
|
const n = typeof r != "function" ? r : {};
|
|
3477
|
-
if (this.j = typeof r == "function" ? r : s, this.qualityScores = this.categoryMask = this.confidenceMasks = void 0, r = this.C + 1, s = new
|
|
3481
|
+
if (this.j = typeof r == "function" ? r : s, this.qualityScores = this.categoryMask = this.confidenceMasks = void 0, r = this.C + 1, s = new ac(), t.keypoint && t.scribble) throw Error("Cannot provide both keypoint and scribble.");
|
|
3478
3482
|
if (t.keypoint) {
|
|
3479
3483
|
var i = new ws();
|
|
3480
3484
|
Ve(i, 3, lr(!0), !1), Ve(i, 1, tr(t.keypoint.x), 0), Ve(i, 2, tr(t.keypoint.y), 0), rr(s, 1, Us, i);
|
|
3481
3485
|
} else {
|
|
3482
3486
|
if (!t.scribble) throw Error("Must provide either a keypoint or a scribble.");
|
|
3483
3487
|
{
|
|
3484
|
-
const a = new
|
|
3488
|
+
const a = new Tu();
|
|
3485
3489
|
for (i of t.scribble) Ve(t = new ws(), 3, lr(!0), !1), Ve(t, 1, tr(i.x), 0), Ve(t, 2, tr(i.y), 0), bn(a, 1, ws, t);
|
|
3486
3490
|
rr(s, 2, Us, a);
|
|
3487
3491
|
}
|
|
@@ -3506,7 +3510,7 @@ var Se = class extends le {
|
|
|
3506
3510
|
var e = new fe();
|
|
3507
3511
|
x(e, "image_in"), x(e, "roi_in"), x(e, "norm_rect_in");
|
|
3508
3512
|
const t = new de();
|
|
3509
|
-
Me(t,
|
|
3513
|
+
Me(t, oc, this.h);
|
|
3510
3514
|
const r = new ee();
|
|
3511
3515
|
he(r, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"), P(r, "IMAGE:image_in"), P(r, "ROI:roi_in"), P(r, "NORM_RECT:norm_rect_in"), r.o(t), be(e, r), cs(this, e), this.outputConfidenceMasks && (E(e, "confidence_masks"), _(r, "CONFIDENCE_MASKS:confidence_masks"), $t(this, "confidence_masks"), this.g.aa("confidence_masks", ((s, n) => {
|
|
3512
3516
|
this.confidenceMasks = s.map(((i) => Rt(this, i, !0, !this.j))), f(this, n);
|
|
@@ -3530,9 +3534,9 @@ Se.prototype.segment = Se.prototype.segment, Se.prototype.setOptions = Se.protot
|
|
|
3530
3534
|
}, Se.createFromOptions = function(e, t) {
|
|
3531
3535
|
return w(Se, e, t);
|
|
3532
3536
|
};
|
|
3533
|
-
var
|
|
3537
|
+
var me = class extends le {
|
|
3534
3538
|
constructor(e, t) {
|
|
3535
|
-
super(new we(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] }, v(e = this.h = new
|
|
3539
|
+
super(new we(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] }, v(e = this.h = new cc(), 0, 1, t = new O());
|
|
3536
3540
|
}
|
|
3537
3541
|
get baseOptions() {
|
|
3538
3542
|
return A(this.h, O, 1);
|
|
@@ -3553,22 +3557,22 @@ var ge = class extends le {
|
|
|
3553
3557
|
var e = new fe();
|
|
3554
3558
|
x(e, "input_frame_gpu"), x(e, "norm_rect"), E(e, "detections");
|
|
3555
3559
|
const t = new de();
|
|
3556
|
-
Me(t,
|
|
3560
|
+
Me(t, Cu, this.h);
|
|
3557
3561
|
const r = new ee();
|
|
3558
3562
|
he(r, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"), P(r, "IMAGE:input_frame_gpu"), P(r, "NORM_RECT:norm_rect"), _(r, "DETECTIONS:detections"), r.o(t), be(e, r), this.g.attachProtoVectorListener("detections", ((s, n) => {
|
|
3559
|
-
for (const i of s) s =
|
|
3563
|
+
for (const i of s) s = Ua(i), this.j.detections.push(lc(s));
|
|
3560
3564
|
f(this, n);
|
|
3561
3565
|
})), this.g.attachEmptyPacketListener("detections", ((s) => {
|
|
3562
3566
|
f(this, s);
|
|
3563
3567
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3564
3568
|
}
|
|
3565
3569
|
};
|
|
3566
|
-
|
|
3567
|
-
return w(
|
|
3568
|
-
},
|
|
3569
|
-
return w(
|
|
3570
|
-
},
|
|
3571
|
-
return w(
|
|
3570
|
+
me.prototype.detectForVideo = me.prototype.G, me.prototype.detect = me.prototype.F, me.prototype.setOptions = me.prototype.o, me.createFromModelPath = async function(e, t) {
|
|
3571
|
+
return w(me, e, { baseOptions: { modelAssetPath: t } });
|
|
3572
|
+
}, me.createFromModelBuffer = function(e, t) {
|
|
3573
|
+
return w(me, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3574
|
+
}, me.createFromOptions = function(e, t) {
|
|
3575
|
+
return w(me, e, t);
|
|
3572
3576
|
};
|
|
3573
3577
|
var Ws = class {
|
|
3574
3578
|
constructor(e, t, r) {
|
|
@@ -3581,10 +3585,10 @@ var Ws = class {
|
|
|
3581
3585
|
}));
|
|
3582
3586
|
}
|
|
3583
3587
|
};
|
|
3584
|
-
function
|
|
3588
|
+
function ro(e) {
|
|
3585
3589
|
e.landmarks = [], e.worldLandmarks = [], e.segmentationMasks = void 0;
|
|
3586
3590
|
}
|
|
3587
|
-
function
|
|
3591
|
+
function so(e) {
|
|
3588
3592
|
try {
|
|
3589
3593
|
const t = new Ws(e.landmarks, e.worldLandmarks, e.segmentationMasks);
|
|
3590
3594
|
if (!e.u) return t;
|
|
@@ -3596,7 +3600,7 @@ function ro(e) {
|
|
|
3596
3600
|
Ws.prototype.close = Ws.prototype.close;
|
|
3597
3601
|
var ne = class extends le {
|
|
3598
3602
|
constructor(e, t) {
|
|
3599
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1, v(e = this.h = new
|
|
3603
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1, v(e = this.h = new hc(), 0, 1, t = new O()), this.A = new ec(), v(this.h, 0, 3, this.A), this.j = new Za(), v(this.h, 0, 2, this.j), Be(this.j, 4, 1), y(this.j, 2, 0.5), y(this.A, 2, 0.5), y(this.h, 4, 0.5);
|
|
3600
3604
|
}
|
|
3601
3605
|
get baseOptions() {
|
|
3602
3606
|
return A(this.h, O, 1);
|
|
@@ -3609,17 +3613,17 @@ var ne = class extends le {
|
|
|
3609
3613
|
}
|
|
3610
3614
|
F(e, t, r) {
|
|
3611
3615
|
const s = typeof t != "function" ? t : {};
|
|
3612
|
-
return this.u = typeof t == "function" ? t : r,
|
|
3616
|
+
return this.u = typeof t == "function" ? t : r, ro(this), Ae(this, e, s), so(this);
|
|
3613
3617
|
}
|
|
3614
3618
|
G(e, t, r, s) {
|
|
3615
3619
|
const n = typeof r != "function" ? r : {};
|
|
3616
|
-
return this.u = typeof r == "function" ? r : s,
|
|
3620
|
+
return this.u = typeof r == "function" ? r : s, ro(this), Fe(this, e, n, t), so(this);
|
|
3617
3621
|
}
|
|
3618
3622
|
m() {
|
|
3619
3623
|
var e = new fe();
|
|
3620
3624
|
x(e, "image_in"), x(e, "norm_rect"), E(e, "normalized_landmarks"), E(e, "world_landmarks"), E(e, "segmentation_masks");
|
|
3621
3625
|
const t = new de();
|
|
3622
|
-
Me(t,
|
|
3626
|
+
Me(t, Lu, this.h);
|
|
3623
3627
|
const r = new ee();
|
|
3624
3628
|
he(r, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "NORM_LANDMARKS:normalized_landmarks"), _(r, "WORLD_LANDMARKS:world_landmarks"), r.o(t), be(e, r), cs(this, e), this.g.attachProtoVectorListener("normalized_landmarks", ((s, n) => {
|
|
3625
3629
|
this.landmarks = [];
|
|
@@ -3646,9 +3650,9 @@ ne.prototype.detectForVideo = ne.prototype.G, ne.prototype.detect = ne.prototype
|
|
|
3646
3650
|
return w(ne, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3647
3651
|
}, ne.createFromOptions = function(e, t) {
|
|
3648
3652
|
return w(ne, e, t);
|
|
3649
|
-
}, ne.POSE_CONNECTIONS =
|
|
3650
|
-
const
|
|
3651
|
-
function
|
|
3653
|
+
}, ne.POSE_CONNECTIONS = Tc;
|
|
3654
|
+
const Nu = 800, Bu = 1.5, Uu = 0.15, no = /* @__PURE__ */ new WeakMap();
|
|
3655
|
+
function Du(e, t, r) {
|
|
3652
3656
|
const s = r ?? document.createElement("canvas");
|
|
3653
3657
|
s.width = t.width, s.height = t.height;
|
|
3654
3658
|
const n = s.getContext("2d");
|
|
@@ -3664,10 +3668,10 @@ function Bu(e, t, r) {
|
|
|
3664
3668
|
t.width,
|
|
3665
3669
|
t.height
|
|
3666
3670
|
);
|
|
3667
|
-
const i = n.getImageData(0, 0, t.width, t.height), o = r ?
|
|
3668
|
-
return Math.min(Math.max(a /
|
|
3671
|
+
const i = n.getImageData(0, 0, t.width, t.height), o = r ? Vu(r, t.width * t.height) : void 0, a = Math.max(ju(i, o), 0);
|
|
3672
|
+
return Math.min(Math.max(a / Nu, 0), 1);
|
|
3669
3673
|
}
|
|
3670
|
-
function
|
|
3674
|
+
function ju(e, t) {
|
|
3671
3675
|
const { data: r, width: s, height: n } = e, i = s * n, o = t && t.length >= i ? t : new Float32Array(i);
|
|
3672
3676
|
for (let l = 0; l < i; l++) {
|
|
3673
3677
|
const d = l * 4;
|
|
@@ -3688,15 +3692,15 @@ function Uu(e, t) {
|
|
|
3688
3692
|
const h = c / a;
|
|
3689
3693
|
return Math.max(u / a - h * h, 0);
|
|
3690
3694
|
}
|
|
3691
|
-
function
|
|
3692
|
-
const r =
|
|
3695
|
+
function Vu(e, t) {
|
|
3696
|
+
const r = no.get(e);
|
|
3693
3697
|
if (r && r.length >= t)
|
|
3694
3698
|
return r;
|
|
3695
|
-
const s = r ? Math.max(t, Math.ceil(r.length *
|
|
3696
|
-
return
|
|
3699
|
+
const s = r ? Math.max(t, Math.ceil(r.length * Bu)) : t, n = new Float32Array(s);
|
|
3700
|
+
return no.set(e, n), n;
|
|
3697
3701
|
}
|
|
3698
|
-
const
|
|
3699
|
-
function
|
|
3702
|
+
const Cc = 0.1, Lc = 0.42, Es = 0.24, Ks = 0.14, qs = 0.18, io = 0.12, oo = 0.2, Gu = 0.95, Hu = 0.2, zu = 1, Wu = 0, Ku = 1, qu = 2;
|
|
3703
|
+
function Pc(e) {
|
|
3700
3704
|
var b;
|
|
3701
3705
|
const { detections: t, width: r, height: s, sharpnessScore: n, resolveSharpnessScore: i } = e;
|
|
3702
3706
|
if (t.length === 0)
|
|
@@ -3737,9 +3741,9 @@ function Lc(e) {
|
|
|
3737
3741
|
message: "Face detected, but the frame is unclear. Hold still and try again."
|
|
3738
3742
|
};
|
|
3739
3743
|
const c = a.width * a.height / (r * s);
|
|
3740
|
-
if (c <
|
|
3744
|
+
if (c < Cc)
|
|
3741
3745
|
return Je(o.confidence, "too-far", "Move closer to the camera.");
|
|
3742
|
-
if (c >
|
|
3746
|
+
if (c > Lc)
|
|
3743
3747
|
return Je(o.confidence, "too-close", "Move slightly farther away.");
|
|
3744
3748
|
const u = (a.originX + a.width / 2) / r, h = (a.originY + a.height / 2) / s;
|
|
3745
3749
|
if (u < 0.5 - Ks)
|
|
@@ -3750,15 +3754,15 @@ function Lc(e) {
|
|
|
3750
3754
|
return Je(o.confidence, "move-down", "Move your face slightly down.");
|
|
3751
3755
|
if (h > 0.5 + qs)
|
|
3752
3756
|
return Je(o.confidence, "move-up", "Move your face slightly up.");
|
|
3753
|
-
const l =
|
|
3757
|
+
const l = Xu(o.keypoints);
|
|
3754
3758
|
if (l)
|
|
3755
3759
|
return Je(o.confidence, l.feedback, l.message);
|
|
3756
|
-
const d = n ?? (i == null ? void 0 : i()) ??
|
|
3757
|
-
return d <
|
|
3760
|
+
const d = n ?? (i == null ? void 0 : i()) ?? zu;
|
|
3761
|
+
return d < Uu ? {
|
|
3758
3762
|
hasFace: !0,
|
|
3759
3763
|
faceCount: 1,
|
|
3760
3764
|
confidence: o.confidence,
|
|
3761
|
-
captureScore:
|
|
3765
|
+
captureScore: ao(o.confidence, u, h, c, d),
|
|
3762
3766
|
sharpnessScore: d,
|
|
3763
3767
|
isCentered: !0,
|
|
3764
3768
|
passesQualityChecks: !1,
|
|
@@ -3768,7 +3772,7 @@ function Lc(e) {
|
|
|
3768
3772
|
hasFace: !0,
|
|
3769
3773
|
faceCount: 1,
|
|
3770
3774
|
confidence: o.confidence,
|
|
3771
|
-
captureScore:
|
|
3775
|
+
captureScore: ao(o.confidence, u, h, c, d),
|
|
3772
3776
|
sharpnessScore: d,
|
|
3773
3777
|
isCentered: !0,
|
|
3774
3778
|
passesQualityChecks: !0,
|
|
@@ -3776,40 +3780,40 @@ function Lc(e) {
|
|
|
3776
3780
|
message: "Hold still. Capturing automatically..."
|
|
3777
3781
|
};
|
|
3778
3782
|
}
|
|
3779
|
-
function
|
|
3780
|
-
const t = e[
|
|
3783
|
+
function Xu(e) {
|
|
3784
|
+
const t = e[Wu], r = e[Ku], s = e[qu];
|
|
3781
3785
|
if (!t || !r || !s)
|
|
3782
3786
|
return null;
|
|
3783
3787
|
const n = Math.abs(r.x - t.x);
|
|
3784
3788
|
if (n === 0)
|
|
3785
3789
|
return null;
|
|
3786
3790
|
const i = (t.x + r.x) / 2, o = (s.x - i) / n;
|
|
3787
|
-
if (o <= -
|
|
3791
|
+
if (o <= -io)
|
|
3788
3792
|
return {
|
|
3789
3793
|
feedback: "turn-left",
|
|
3790
3794
|
message: "Turn slightly left so your face points at the camera."
|
|
3791
3795
|
};
|
|
3792
|
-
if (o >=
|
|
3796
|
+
if (o >= io)
|
|
3793
3797
|
return {
|
|
3794
3798
|
feedback: "turn-right",
|
|
3795
3799
|
message: "Turn slightly right so your face points at the camera."
|
|
3796
3800
|
};
|
|
3797
3801
|
const a = (t.y - r.y) / n;
|
|
3798
|
-
if (a >=
|
|
3802
|
+
if (a >= oo)
|
|
3799
3803
|
return {
|
|
3800
3804
|
feedback: "tilt-left",
|
|
3801
3805
|
message: "Straighten your head — it is tilting to the right."
|
|
3802
3806
|
};
|
|
3803
|
-
if (a <= -
|
|
3807
|
+
if (a <= -oo)
|
|
3804
3808
|
return {
|
|
3805
3809
|
feedback: "tilt-right",
|
|
3806
3810
|
message: "Straighten your head — it is tilting to the left."
|
|
3807
3811
|
};
|
|
3808
3812
|
const c = (t.y + r.y) / 2, u = (s.y - c) / n;
|
|
3809
|
-
return u >=
|
|
3813
|
+
return u >= Gu ? {
|
|
3810
3814
|
feedback: "look-up",
|
|
3811
3815
|
message: "Raise your chin slightly so your face points at the camera."
|
|
3812
|
-
} : u <=
|
|
3816
|
+
} : u <= Hu ? {
|
|
3813
3817
|
feedback: "look-down",
|
|
3814
3818
|
message: "Lower your chin slightly so your face points at the camera."
|
|
3815
3819
|
} : null;
|
|
@@ -3827,52 +3831,52 @@ function Je(e, t, r) {
|
|
|
3827
3831
|
message: r
|
|
3828
3832
|
};
|
|
3829
3833
|
}
|
|
3830
|
-
function
|
|
3834
|
+
function ao(e, t, r, s, n) {
|
|
3831
3835
|
const i = Math.abs(t - 0.5) / Ks, o = Math.abs(r - 0.5) / qs, a = 1 - Math.min((i + o) / 2, 1), c = Math.max(
|
|
3832
|
-
Math.abs(Es -
|
|
3833
|
-
Math.abs(
|
|
3836
|
+
Math.abs(Es - Cc),
|
|
3837
|
+
Math.abs(Lc - Es)
|
|
3834
3838
|
), u = 1 - Math.min(Math.abs(s - Es) / c, 1);
|
|
3835
3839
|
return Number(
|
|
3836
3840
|
(e * 0.4 + a * 0.25 + u * 0.1 + n * 0.25).toFixed(4)
|
|
3837
3841
|
);
|
|
3838
3842
|
}
|
|
3839
|
-
const
|
|
3840
|
-
let
|
|
3841
|
-
function
|
|
3842
|
-
return
|
|
3843
|
+
const Yu = "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm", Qu = "https://storage.googleapis.com/mediapipe-models/face_detector/blaze_face_short_range/float16/1/blaze_face_short_range.tflite", Ju = 0.7;
|
|
3844
|
+
let co = null, ho = null, uo = null;
|
|
3845
|
+
function Zu() {
|
|
3846
|
+
return co ?? (co = et.forVisionTasks(Yu)), co;
|
|
3843
3847
|
}
|
|
3844
|
-
function
|
|
3845
|
-
return
|
|
3848
|
+
function el() {
|
|
3849
|
+
return ho ?? (ho = xc("IMAGE")), ho;
|
|
3846
3850
|
}
|
|
3847
|
-
function
|
|
3848
|
-
return
|
|
3851
|
+
function Mc() {
|
|
3852
|
+
return uo ?? (uo = xc("VIDEO")), uo;
|
|
3849
3853
|
}
|
|
3850
|
-
async function
|
|
3851
|
-
const t = await
|
|
3854
|
+
async function xc(e) {
|
|
3855
|
+
const t = await Zu();
|
|
3852
3856
|
return ie.createFromOptions(t, {
|
|
3853
|
-
baseOptions: { modelAssetPath:
|
|
3857
|
+
baseOptions: { modelAssetPath: Qu },
|
|
3854
3858
|
runningMode: e,
|
|
3855
|
-
minDetectionConfidence:
|
|
3859
|
+
minDetectionConfidence: Ju
|
|
3856
3860
|
});
|
|
3857
3861
|
}
|
|
3858
|
-
async function
|
|
3859
|
-
const r = (await
|
|
3860
|
-
return
|
|
3861
|
-
detections:
|
|
3862
|
+
async function Fc(e) {
|
|
3863
|
+
const r = (await el()).detect(e);
|
|
3864
|
+
return Pc({
|
|
3865
|
+
detections: $c(r.detections),
|
|
3862
3866
|
width: e.naturalWidth,
|
|
3863
3867
|
height: e.naturalHeight
|
|
3864
3868
|
});
|
|
3865
3869
|
}
|
|
3866
|
-
let
|
|
3867
|
-
async function
|
|
3868
|
-
const s = (await
|
|
3869
|
-
return
|
|
3870
|
+
let lo = null;
|
|
3871
|
+
async function tl(e, t) {
|
|
3872
|
+
const s = (await Mc()).detectForVideo(e, t), n = $c(s.detections);
|
|
3873
|
+
return Pc({
|
|
3870
3874
|
detections: n,
|
|
3871
3875
|
width: e.videoWidth,
|
|
3872
3876
|
height: e.videoHeight,
|
|
3873
3877
|
resolveSharpnessScore: n.length === 1 && n[0].boundingBox ? () => {
|
|
3874
3878
|
const i = n[0].boundingBox;
|
|
3875
|
-
return
|
|
3879
|
+
return lo ?? (lo = document.createElement("canvas")), Du(
|
|
3876
3880
|
e,
|
|
3877
3881
|
{
|
|
3878
3882
|
x: i.originX,
|
|
@@ -3880,12 +3884,12 @@ async function Zu(e, t) {
|
|
|
3880
3884
|
width: i.width,
|
|
3881
3885
|
height: i.height
|
|
3882
3886
|
},
|
|
3883
|
-
|
|
3887
|
+
lo
|
|
3884
3888
|
);
|
|
3885
3889
|
} : void 0
|
|
3886
3890
|
});
|
|
3887
3891
|
}
|
|
3888
|
-
function
|
|
3892
|
+
function $c(e) {
|
|
3889
3893
|
return e.map((t) => {
|
|
3890
3894
|
var r;
|
|
3891
3895
|
return {
|
|
@@ -3903,42 +3907,42 @@ function Fc(e) {
|
|
|
3903
3907
|
};
|
|
3904
3908
|
});
|
|
3905
3909
|
}
|
|
3906
|
-
const
|
|
3907
|
-
function
|
|
3910
|
+
const Oc = "Capturing Face", Rc = "Accept", Ic = "Take photo", Nc = "Retake", Bc = "Try again", Xs = "Start a capture to see camera guidance here.";
|
|
3911
|
+
function Uc(e, t) {
|
|
3908
3912
|
return {
|
|
3909
3913
|
capturePreference: (e == null ? void 0 : e.capturePreference) ?? "auto-preferred",
|
|
3910
3914
|
allowMediaPickerFallback: (e == null ? void 0 : e.allowMediaPickerFallback) ?? !0,
|
|
3911
3915
|
component: t,
|
|
3912
|
-
label:
|
|
3916
|
+
label: Oc,
|
|
3913
3917
|
idleFeedbackLabel: Xs,
|
|
3914
|
-
confirmLabel:
|
|
3915
|
-
captureLabel:
|
|
3916
|
-
retakeLabel:
|
|
3917
|
-
retryLabel:
|
|
3918
|
+
confirmLabel: Rc,
|
|
3919
|
+
captureLabel: Ic,
|
|
3920
|
+
retakeLabel: Nc,
|
|
3921
|
+
retryLabel: Bc
|
|
3918
3922
|
};
|
|
3919
3923
|
}
|
|
3920
|
-
async function
|
|
3924
|
+
async function rl(e) {
|
|
3921
3925
|
var n, i;
|
|
3922
3926
|
const t = /WhatsApp/i.test(e.userAgent ?? navigator.userAgent), r = e.hasMediaDevices ?? typeof ((n = navigator.mediaDevices) == null ? void 0 : n.getUserMedia) == "function";
|
|
3923
3927
|
let s = !1;
|
|
3924
|
-
return !t && r && e.capturePreference === "auto-preferred" && (s = await (((i = e.probeAutoCapture) == null ? void 0 : i.call(e)) ??
|
|
3928
|
+
return !t && r && e.capturePreference === "auto-preferred" && (s = await (((i = e.probeAutoCapture) == null ? void 0 : i.call(e)) ?? nl())), {
|
|
3925
3929
|
prefersMediaPicker: t,
|
|
3926
3930
|
supportsMediaDevices: r,
|
|
3927
3931
|
supportsAutoCapture: s
|
|
3928
3932
|
};
|
|
3929
3933
|
}
|
|
3930
|
-
function
|
|
3934
|
+
function sl(e, t) {
|
|
3931
3935
|
const r = [];
|
|
3932
3936
|
return t.supportsMediaDevices && (e.capturePreference === "auto-preferred" && t.supportsAutoCapture && r.push("auto-camera"), r.push("manual-camera")), e.allowMediaPickerFallback && (r.length === 0 || r[r.length - 1] !== "media-picker") && r.push("media-picker"), {
|
|
3933
3937
|
steps: r,
|
|
3934
3938
|
capabilities: t
|
|
3935
3939
|
};
|
|
3936
3940
|
}
|
|
3937
|
-
async function
|
|
3941
|
+
async function nl() {
|
|
3938
3942
|
if (typeof window.requestAnimationFrame != "function" || typeof window.cancelAnimationFrame != "function" || !document.createElement("canvas").getContext("2d"))
|
|
3939
3943
|
return !1;
|
|
3940
3944
|
try {
|
|
3941
|
-
return await
|
|
3945
|
+
return await Mc(), !0;
|
|
3942
3946
|
} catch {
|
|
3943
3947
|
return !1;
|
|
3944
3948
|
}
|
|
@@ -3951,7 +3955,7 @@ class Ys extends Error {
|
|
|
3951
3955
|
});
|
|
3952
3956
|
}
|
|
3953
3957
|
}
|
|
3954
|
-
async function
|
|
3958
|
+
async function il() {
|
|
3955
3959
|
var e;
|
|
3956
3960
|
if (!((e = navigator.mediaDevices) != null && e.getUserMedia))
|
|
3957
3961
|
throw new Ys("In-browser camera capture is not supported in this browser.");
|
|
@@ -3961,10 +3965,10 @@ async function sl() {
|
|
|
3961
3965
|
audio: !1
|
|
3962
3966
|
});
|
|
3963
3967
|
} catch (t) {
|
|
3964
|
-
throw new Ys(
|
|
3968
|
+
throw new Ys(hl(t), { cause: t });
|
|
3965
3969
|
}
|
|
3966
3970
|
}
|
|
3967
|
-
async function
|
|
3971
|
+
async function ol(e, t = "Failed to start the camera preview.") {
|
|
3968
3972
|
if (e.readyState >= HTMLMediaElement.HAVE_CURRENT_DATA) {
|
|
3969
3973
|
await e.play();
|
|
3970
3974
|
return;
|
|
@@ -3980,11 +3984,11 @@ async function nl(e, t = "Failed to start the camera preview.") {
|
|
|
3980
3984
|
e.addEventListener("loadedmetadata", n, { once: !0 }), e.addEventListener("error", i, { once: !0 });
|
|
3981
3985
|
}), await e.play();
|
|
3982
3986
|
}
|
|
3983
|
-
function
|
|
3987
|
+
function al(e) {
|
|
3984
3988
|
e.play().catch(() => {
|
|
3985
3989
|
});
|
|
3986
3990
|
}
|
|
3987
|
-
function
|
|
3991
|
+
function cl() {
|
|
3988
3992
|
const e = document.createElement("canvas"), t = document.createElement("canvas");
|
|
3989
3993
|
let r = !1;
|
|
3990
3994
|
const s = (i) => {
|
|
@@ -3999,7 +4003,7 @@ function ol() {
|
|
|
3999
4003
|
};
|
|
4000
4004
|
return {
|
|
4001
4005
|
async captureBlob(i) {
|
|
4002
|
-
return n(i, e),
|
|
4006
|
+
return n(i, e), fo(e);
|
|
4003
4007
|
},
|
|
4004
4008
|
captureWorkingFrame(i) {
|
|
4005
4009
|
n(i, e);
|
|
@@ -4018,14 +4022,14 @@ function ol() {
|
|
|
4018
4022
|
async storedBestFrameToBlob() {
|
|
4019
4023
|
if (!r)
|
|
4020
4024
|
throw new Error("No best frame is available.");
|
|
4021
|
-
return
|
|
4025
|
+
return fo(t);
|
|
4022
4026
|
},
|
|
4023
4027
|
resetStoredBestFrame() {
|
|
4024
4028
|
r = !1, t.width = 0, t.height = 0;
|
|
4025
4029
|
}
|
|
4026
4030
|
};
|
|
4027
4031
|
}
|
|
4028
|
-
function
|
|
4032
|
+
function Dc() {
|
|
4029
4033
|
return new Promise((e) => {
|
|
4030
4034
|
const t = document.createElement("input");
|
|
4031
4035
|
t.type = "file", t.accept = "image/*", t.capture = "user", t.style.display = "none", t.addEventListener("change", () => {
|
|
@@ -4046,7 +4050,7 @@ function Uc() {
|
|
|
4046
4050
|
document.body.appendChild(t), t.click();
|
|
4047
4051
|
});
|
|
4048
4052
|
}
|
|
4049
|
-
function
|
|
4053
|
+
function jc(e) {
|
|
4050
4054
|
return new Promise((t, r) => {
|
|
4051
4055
|
const s = URL.createObjectURL(e), n = new Image();
|
|
4052
4056
|
n.onload = () => {
|
|
@@ -4056,13 +4060,13 @@ function Dc(e) {
|
|
|
4056
4060
|
}, n.src = s;
|
|
4057
4061
|
});
|
|
4058
4062
|
}
|
|
4059
|
-
function
|
|
4063
|
+
function Yl(e) {
|
|
4060
4064
|
return new Promise((t, r) => {
|
|
4061
4065
|
const s = new FileReader();
|
|
4062
4066
|
s.onload = () => t(s.result), s.onerror = () => r(new Error("Failed to read image")), s.readAsDataURL(e);
|
|
4063
4067
|
});
|
|
4064
4068
|
}
|
|
4065
|
-
function
|
|
4069
|
+
function hl(e) {
|
|
4066
4070
|
if (e instanceof DOMException)
|
|
4067
4071
|
switch (e.name) {
|
|
4068
4072
|
case "NotAllowedError":
|
|
@@ -4077,7 +4081,7 @@ function al(e) {
|
|
|
4077
4081
|
}
|
|
4078
4082
|
return e instanceof Error ? e.message : "Failed to access the camera.";
|
|
4079
4083
|
}
|
|
4080
|
-
function
|
|
4084
|
+
function fo(e) {
|
|
4081
4085
|
return new Promise((t, r) => {
|
|
4082
4086
|
e.toBlob((s) => {
|
|
4083
4087
|
if (!s) {
|
|
@@ -4088,22 +4092,22 @@ function lo(e) {
|
|
|
4088
4092
|
}, "image/jpeg", 0.92);
|
|
4089
4093
|
});
|
|
4090
4094
|
}
|
|
4091
|
-
const
|
|
4092
|
-
async function
|
|
4095
|
+
const ul = "2147483647";
|
|
4096
|
+
async function ll(e, t) {
|
|
4093
4097
|
var n;
|
|
4094
|
-
const r =
|
|
4098
|
+
const r = Uc(e, t);
|
|
4095
4099
|
if (t)
|
|
4096
|
-
return
|
|
4100
|
+
return dl(r);
|
|
4097
4101
|
if (!(typeof ((n = navigator.mediaDevices) == null ? void 0 : n.getUserMedia) == "function")) {
|
|
4098
4102
|
if (r.allowMediaPickerFallback)
|
|
4099
|
-
return
|
|
4103
|
+
return Dc();
|
|
4100
4104
|
throw new Error("No supported capture strategy is available in this environment.");
|
|
4101
4105
|
}
|
|
4102
|
-
return
|
|
4106
|
+
return pl(r);
|
|
4103
4107
|
}
|
|
4104
|
-
async function
|
|
4105
|
-
await Promise.resolve().then(() =>
|
|
4106
|
-
const t =
|
|
4108
|
+
async function dl(e) {
|
|
4109
|
+
await Promise.resolve().then(() => qc);
|
|
4110
|
+
const t = fl(e.component);
|
|
4107
4111
|
return t.embedded = !0, t.capturePreference = e.capturePreference, t.allowMediaPickerFallback = e.allowMediaPickerFallback, new Promise((r, s) => {
|
|
4108
4112
|
const n = () => {
|
|
4109
4113
|
t.removeEventListener("simface-captured", i), t.removeEventListener("simface-cancelled", o), t.removeEventListener("simface-error", a), t.active = !1;
|
|
@@ -4119,21 +4123,21 @@ async function ul(e) {
|
|
|
4119
4123
|
});
|
|
4120
4124
|
});
|
|
4121
4125
|
}
|
|
4122
|
-
function
|
|
4126
|
+
function fl(e) {
|
|
4123
4127
|
if (!e)
|
|
4124
4128
|
throw new Error("Embedded capture requires a simface-capture component.");
|
|
4125
4129
|
if (e.tagName.toLowerCase() !== "simface-capture")
|
|
4126
4130
|
throw new Error("Embedded capture requires a simface-capture component.");
|
|
4127
4131
|
return e;
|
|
4128
4132
|
}
|
|
4129
|
-
async function
|
|
4130
|
-
return await Promise.resolve().then(() =>
|
|
4133
|
+
async function pl(e) {
|
|
4134
|
+
return await Promise.resolve().then(() => qc), new Promise((t, r) => {
|
|
4131
4135
|
let s = !1, n = null;
|
|
4132
4136
|
const i = document.createElement("div");
|
|
4133
|
-
i.setAttribute("data-simface-camera-overlay", "true"), i.setAttribute("role", "dialog"), i.setAttribute("aria-modal", "true"),
|
|
4137
|
+
i.setAttribute("data-simface-camera-overlay", "true"), i.setAttribute("role", "dialog"), i.setAttribute("aria-modal", "true"), ml(i, {
|
|
4134
4138
|
position: "fixed",
|
|
4135
4139
|
inset: "0",
|
|
4136
|
-
zIndex:
|
|
4140
|
+
zIndex: ul,
|
|
4137
4141
|
display: "flex",
|
|
4138
4142
|
alignItems: "center",
|
|
4139
4143
|
justifyContent: "center",
|
|
@@ -4167,7 +4171,7 @@ async function dl(e) {
|
|
|
4167
4171
|
});
|
|
4168
4172
|
});
|
|
4169
4173
|
}
|
|
4170
|
-
function
|
|
4174
|
+
function ml(e, t) {
|
|
4171
4175
|
Object.assign(e.style, t);
|
|
4172
4176
|
}
|
|
4173
4177
|
/**
|
|
@@ -4175,8 +4179,8 @@ function fl(e, t) {
|
|
|
4175
4179
|
* Copyright 2019 Google LLC
|
|
4176
4180
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4177
4181
|
*/
|
|
4178
|
-
const xr = globalThis, Xn = xr.ShadowRoot && (xr.ShadyCSS === void 0 || xr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Yn = Symbol(),
|
|
4179
|
-
let
|
|
4182
|
+
const xr = globalThis, Xn = xr.ShadowRoot && (xr.ShadyCSS === void 0 || xr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Yn = Symbol(), po = /* @__PURE__ */ new WeakMap();
|
|
4183
|
+
let Vc = class {
|
|
4180
4184
|
constructor(t, r, s) {
|
|
4181
4185
|
if (this._$cssResult$ = !0, s !== Yn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
4182
4186
|
this.cssText = t, this.t = r;
|
|
@@ -4186,7 +4190,7 @@ let jc = class {
|
|
|
4186
4190
|
const r = this.t;
|
|
4187
4191
|
if (Xn && t === void 0) {
|
|
4188
4192
|
const s = r !== void 0 && r.length === 1;
|
|
4189
|
-
s && (t =
|
|
4193
|
+
s && (t = po.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && po.set(r, t));
|
|
4190
4194
|
}
|
|
4191
4195
|
return t;
|
|
4192
4196
|
}
|
|
@@ -4194,33 +4198,33 @@ let jc = class {
|
|
|
4194
4198
|
return this.cssText;
|
|
4195
4199
|
}
|
|
4196
4200
|
};
|
|
4197
|
-
const
|
|
4201
|
+
const gl = (e) => new Vc(typeof e == "string" ? e : e + "", void 0, Yn), yl = (e, ...t) => {
|
|
4198
4202
|
const r = e.length === 1 ? e[0] : t.reduce((s, n, i) => s + ((o) => {
|
|
4199
4203
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
4200
4204
|
if (typeof o == "number") return o;
|
|
4201
4205
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
4202
4206
|
})(n) + e[i + 1], e[0]);
|
|
4203
|
-
return new
|
|
4204
|
-
},
|
|
4207
|
+
return new Vc(r, e, Yn);
|
|
4208
|
+
}, bl = (e, t) => {
|
|
4205
4209
|
if (Xn) e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
4206
4210
|
else for (const r of t) {
|
|
4207
4211
|
const s = document.createElement("style"), n = xr.litNonce;
|
|
4208
4212
|
n !== void 0 && s.setAttribute("nonce", n), s.textContent = r.cssText, e.appendChild(s);
|
|
4209
4213
|
}
|
|
4210
|
-
},
|
|
4214
|
+
}, mo = Xn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
4211
4215
|
let r = "";
|
|
4212
4216
|
for (const s of t.cssRules) r += s.cssText;
|
|
4213
|
-
return
|
|
4217
|
+
return gl(r);
|
|
4214
4218
|
})(e) : e;
|
|
4215
4219
|
/**
|
|
4216
4220
|
* @license
|
|
4217
4221
|
* Copyright 2017 Google LLC
|
|
4218
4222
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4219
4223
|
*/
|
|
4220
|
-
const { is:
|
|
4224
|
+
const { is: vl, defineProperty: _l, getOwnPropertyDescriptor: wl, getOwnPropertyNames: Al, getOwnPropertySymbols: El, getPrototypeOf: kl } = Object, We = globalThis, go = We.trustedTypes, Sl = go ? go.emptyScript : "", ks = We.reactiveElementPolyfillSupport, ir = (e, t) => e, Ur = { toAttribute(e, t) {
|
|
4221
4225
|
switch (t) {
|
|
4222
4226
|
case Boolean:
|
|
4223
|
-
e = e ?
|
|
4227
|
+
e = e ? Sl : null;
|
|
4224
4228
|
break;
|
|
4225
4229
|
case Object:
|
|
4226
4230
|
case Array:
|
|
@@ -4245,7 +4249,7 @@ const { is: yl, defineProperty: bl, getOwnPropertyDescriptor: vl, getOwnProperty
|
|
|
4245
4249
|
}
|
|
4246
4250
|
}
|
|
4247
4251
|
return r;
|
|
4248
|
-
} }, Qn = (e, t) => !
|
|
4252
|
+
} }, Qn = (e, t) => !vl(e, t), yo = { attribute: !0, type: String, converter: Ur, reflect: !1, useDefault: !1, hasChanged: Qn };
|
|
4249
4253
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), We.litPropertyMetadata ?? (We.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
4250
4254
|
let _t = class extends HTMLElement {
|
|
4251
4255
|
static addInitializer(t) {
|
|
@@ -4254,14 +4258,14 @@ let _t = class extends HTMLElement {
|
|
|
4254
4258
|
static get observedAttributes() {
|
|
4255
4259
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
4256
4260
|
}
|
|
4257
|
-
static createProperty(t, r =
|
|
4261
|
+
static createProperty(t, r = yo) {
|
|
4258
4262
|
if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(t, r), !r.noAccessor) {
|
|
4259
4263
|
const s = Symbol(), n = this.getPropertyDescriptor(t, s, r);
|
|
4260
|
-
n !== void 0 &&
|
|
4264
|
+
n !== void 0 && _l(this.prototype, t, n);
|
|
4261
4265
|
}
|
|
4262
4266
|
}
|
|
4263
4267
|
static getPropertyDescriptor(t, r, s) {
|
|
4264
|
-
const { get: n, set: i } =
|
|
4268
|
+
const { get: n, set: i } = wl(this.prototype, t) ?? { get() {
|
|
4265
4269
|
return this[r];
|
|
4266
4270
|
}, set(o) {
|
|
4267
4271
|
this[r] = o;
|
|
@@ -4272,17 +4276,17 @@ let _t = class extends HTMLElement {
|
|
|
4272
4276
|
}, configurable: !0, enumerable: !0 };
|
|
4273
4277
|
}
|
|
4274
4278
|
static getPropertyOptions(t) {
|
|
4275
|
-
return this.elementProperties.get(t) ??
|
|
4279
|
+
return this.elementProperties.get(t) ?? yo;
|
|
4276
4280
|
}
|
|
4277
4281
|
static _$Ei() {
|
|
4278
4282
|
if (this.hasOwnProperty(ir("elementProperties"))) return;
|
|
4279
|
-
const t =
|
|
4283
|
+
const t = kl(this);
|
|
4280
4284
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
4281
4285
|
}
|
|
4282
4286
|
static finalize() {
|
|
4283
4287
|
if (this.hasOwnProperty(ir("finalized"))) return;
|
|
4284
4288
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ir("properties"))) {
|
|
4285
|
-
const r = this.properties, s = [...
|
|
4289
|
+
const r = this.properties, s = [...Al(r), ...El(r)];
|
|
4286
4290
|
for (const n of s) this.createProperty(n, r[n]);
|
|
4287
4291
|
}
|
|
4288
4292
|
const t = this[Symbol.metadata];
|
|
@@ -4301,8 +4305,8 @@ let _t = class extends HTMLElement {
|
|
|
4301
4305
|
const r = [];
|
|
4302
4306
|
if (Array.isArray(t)) {
|
|
4303
4307
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
4304
|
-
for (const n of s) r.unshift(
|
|
4305
|
-
} else t !== void 0 && r.push(
|
|
4308
|
+
for (const n of s) r.unshift(mo(n));
|
|
4309
|
+
} else t !== void 0 && r.push(mo(t));
|
|
4306
4310
|
return r;
|
|
4307
4311
|
}
|
|
4308
4312
|
static _$Eu(t, r) {
|
|
@@ -4331,7 +4335,7 @@ let _t = class extends HTMLElement {
|
|
|
4331
4335
|
}
|
|
4332
4336
|
createRenderRoot() {
|
|
4333
4337
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
4334
|
-
return
|
|
4338
|
+
return bl(t, this.constructor.elementStyles), t;
|
|
4335
4339
|
}
|
|
4336
4340
|
connectedCallback() {
|
|
4337
4341
|
var t;
|
|
@@ -4456,42 +4460,42 @@ _t.elementStyles = [], _t.shadowRootOptions = { mode: "open" }, _t[ir("elementPr
|
|
|
4456
4460
|
* Copyright 2017 Google LLC
|
|
4457
4461
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4458
4462
|
*/
|
|
4459
|
-
const or = globalThis,
|
|
4460
|
-
\f\r]`, Zt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
4461
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
4462
|
-
function
|
|
4463
|
+
const or = globalThis, bo = (e) => e, Dr = or.trustedTypes, vo = Dr ? Dr.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Gc = "$lit$", He = `lit$${Math.random().toFixed(9).slice(2)}$`, Hc = "?" + He, Tl = `<${Hc}>`, ft = document, fr = () => ft.createComment(""), pr = (e) => e === null || typeof e != "object" && typeof e != "function", Jn = Array.isArray, Cl = (e) => Jn(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Ss = `[
|
|
4464
|
+
\f\r]`, Zt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _o = /-->/g, wo = />/g, Ze = RegExp(`>|${Ss}(?:([^\\s"'>=/]+)(${Ss}*=${Ss}*(?:[^
|
|
4465
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ao = /'/g, Eo = /"/g, zc = /^(?:script|style|textarea|title)$/i, Ll = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), $e = Ll(1), It = Symbol.for("lit-noChange"), K = Symbol.for("lit-nothing"), ko = /* @__PURE__ */ new WeakMap(), st = ft.createTreeWalker(ft, 129);
|
|
4466
|
+
function Wc(e, t) {
|
|
4463
4467
|
if (!Jn(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
4464
|
-
return
|
|
4468
|
+
return vo !== void 0 ? vo.createHTML(t) : t;
|
|
4465
4469
|
}
|
|
4466
|
-
const
|
|
4470
|
+
const Pl = (e, t) => {
|
|
4467
4471
|
const r = e.length - 1, s = [];
|
|
4468
4472
|
let n, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Zt;
|
|
4469
4473
|
for (let a = 0; a < r; a++) {
|
|
4470
4474
|
const c = e[a];
|
|
4471
4475
|
let u, h, l = -1, d = 0;
|
|
4472
|
-
for (; d < c.length && (o.lastIndex = d, h = o.exec(c), h !== null); ) d = o.lastIndex, o === Zt ? h[1] === "!--" ? o =
|
|
4476
|
+
for (; d < c.length && (o.lastIndex = d, h = o.exec(c), h !== null); ) d = o.lastIndex, o === Zt ? h[1] === "!--" ? o = _o : h[1] !== void 0 ? o = wo : h[2] !== void 0 ? (zc.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = Ze) : h[3] !== void 0 && (o = Ze) : o === Ze ? h[0] === ">" ? (o = n ?? Zt, l = -1) : h[1] === void 0 ? l = -2 : (l = o.lastIndex - h[2].length, u = h[1], o = h[3] === void 0 ? Ze : h[3] === '"' ? Eo : Ao) : o === Eo || o === Ao ? o = Ze : o === _o || o === wo ? o = Zt : (o = Ze, n = void 0);
|
|
4473
4477
|
const b = o === Ze && e[a + 1].startsWith("/>") ? " " : "";
|
|
4474
|
-
i += o === Zt ? c +
|
|
4478
|
+
i += o === Zt ? c + Tl : l >= 0 ? (s.push(u), c.slice(0, l) + Gc + c.slice(l) + He + b) : c + He + (l === -2 ? a : b);
|
|
4475
4479
|
}
|
|
4476
|
-
return [
|
|
4480
|
+
return [Wc(e, i + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
4477
4481
|
};
|
|
4478
|
-
class
|
|
4482
|
+
class mr {
|
|
4479
4483
|
constructor({ strings: t, _$litType$: r }, s) {
|
|
4480
4484
|
let n;
|
|
4481
4485
|
this.parts = [];
|
|
4482
4486
|
let i = 0, o = 0;
|
|
4483
|
-
const a = t.length - 1, c = this.parts, [u, h] =
|
|
4484
|
-
if (this.el =
|
|
4487
|
+
const a = t.length - 1, c = this.parts, [u, h] = Pl(t, r);
|
|
4488
|
+
if (this.el = mr.createElement(u, s), st.currentNode = this.el.content, r === 2 || r === 3) {
|
|
4485
4489
|
const l = this.el.content.firstChild;
|
|
4486
4490
|
l.replaceWith(...l.childNodes);
|
|
4487
4491
|
}
|
|
4488
4492
|
for (; (n = st.nextNode()) !== null && c.length < a; ) {
|
|
4489
4493
|
if (n.nodeType === 1) {
|
|
4490
|
-
if (n.hasAttributes()) for (const l of n.getAttributeNames()) if (l.endsWith(
|
|
4494
|
+
if (n.hasAttributes()) for (const l of n.getAttributeNames()) if (l.endsWith(Gc)) {
|
|
4491
4495
|
const d = h[o++], b = n.getAttribute(l).split(He), S = /([.?@])?(.*)/.exec(d);
|
|
4492
|
-
c.push({ type: 1, index: i, name: S[2], strings: b, ctor: S[1] === "." ?
|
|
4496
|
+
c.push({ type: 1, index: i, name: S[2], strings: b, ctor: S[1] === "." ? xl : S[1] === "?" ? Fl : S[1] === "@" ? $l : us }), n.removeAttribute(l);
|
|
4493
4497
|
} else l.startsWith(He) && (c.push({ type: 6, index: i }), n.removeAttribute(l));
|
|
4494
|
-
if (
|
|
4498
|
+
if (zc.test(n.tagName)) {
|
|
4495
4499
|
const l = n.textContent.split(He), d = l.length - 1;
|
|
4496
4500
|
if (d > 0) {
|
|
4497
4501
|
n.textContent = Dr ? Dr.emptyScript : "";
|
|
@@ -4499,7 +4503,7 @@ class gr {
|
|
|
4499
4503
|
n.append(l[d], fr());
|
|
4500
4504
|
}
|
|
4501
4505
|
}
|
|
4502
|
-
} else if (n.nodeType === 8) if (n.data ===
|
|
4506
|
+
} else if (n.nodeType === 8) if (n.data === Hc) c.push({ type: 2, index: i });
|
|
4503
4507
|
else {
|
|
4504
4508
|
let l = -1;
|
|
4505
4509
|
for (; (l = n.data.indexOf(He, l + 1)) !== -1; ) c.push({ type: 7, index: i }), l += He.length - 1;
|
|
@@ -4519,7 +4523,7 @@ function Nt(e, t, r = e, s) {
|
|
|
4519
4523
|
const i = pr(t) ? void 0 : t._$litDirective$;
|
|
4520
4524
|
return (n == null ? void 0 : n.constructor) !== i && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), i === void 0 ? n = void 0 : (n = new i(e), n._$AT(e, r, s)), s !== void 0 ? (r._$Co ?? (r._$Co = []))[s] = n : r._$Cl = n), n !== void 0 && (t = Nt(e, n._$AS(e, t.values), n, s)), t;
|
|
4521
4525
|
}
|
|
4522
|
-
class
|
|
4526
|
+
class Ml {
|
|
4523
4527
|
constructor(t, r) {
|
|
4524
4528
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
|
|
4525
4529
|
}
|
|
@@ -4536,7 +4540,7 @@ class Ll {
|
|
|
4536
4540
|
for (; c !== void 0; ) {
|
|
4537
4541
|
if (o === c.index) {
|
|
4538
4542
|
let u;
|
|
4539
|
-
c.type === 2 ? u = new kr(i, i.nextSibling, this, t) : c.type === 1 ? u = new c.ctor(i, c.name, c.strings, this, t) : c.type === 6 && (u = new
|
|
4543
|
+
c.type === 2 ? u = new kr(i, i.nextSibling, this, t) : c.type === 1 ? u = new c.ctor(i, c.name, c.strings, this, t) : c.type === 6 && (u = new Ol(i, this, t)), this._$AV.push(u), c = s[++a];
|
|
4540
4544
|
}
|
|
4541
4545
|
o !== (c == null ? void 0 : c.index) && (i = st.nextNode(), o++);
|
|
4542
4546
|
}
|
|
@@ -4567,7 +4571,7 @@ class kr {
|
|
|
4567
4571
|
return this._$AB;
|
|
4568
4572
|
}
|
|
4569
4573
|
_$AI(t, r = this) {
|
|
4570
|
-
t = Nt(this, t, r), pr(t) ? t === K || t == null || t === "" ? (this._$AH !== K && this._$AR(), this._$AH = K) : t !== this._$AH && t !== It && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
4574
|
+
t = Nt(this, t, r), pr(t) ? t === K || t == null || t === "" ? (this._$AH !== K && this._$AR(), this._$AH = K) : t !== this._$AH && t !== It && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Cl(t) ? this.k(t) : this._(t);
|
|
4571
4575
|
}
|
|
4572
4576
|
O(t) {
|
|
4573
4577
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -4580,16 +4584,16 @@ class kr {
|
|
|
4580
4584
|
}
|
|
4581
4585
|
$(t) {
|
|
4582
4586
|
var i;
|
|
4583
|
-
const { values: r, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el =
|
|
4587
|
+
const { values: r, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = mr.createElement(Wc(s.h, s.h[0]), this.options)), s);
|
|
4584
4588
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === n) this._$AH.p(r);
|
|
4585
4589
|
else {
|
|
4586
|
-
const o = new
|
|
4590
|
+
const o = new Ml(n, this), a = o.u(this.options);
|
|
4587
4591
|
o.p(r), this.T(a), this._$AH = o;
|
|
4588
4592
|
}
|
|
4589
4593
|
}
|
|
4590
4594
|
_$AC(t) {
|
|
4591
|
-
let r =
|
|
4592
|
-
return r === void 0 &&
|
|
4595
|
+
let r = ko.get(t.strings);
|
|
4596
|
+
return r === void 0 && ko.set(t.strings, r = new mr(t)), r;
|
|
4593
4597
|
}
|
|
4594
4598
|
k(t) {
|
|
4595
4599
|
Jn(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -4601,8 +4605,8 @@ class kr {
|
|
|
4601
4605
|
_$AR(t = this._$AA.nextSibling, r) {
|
|
4602
4606
|
var s;
|
|
4603
4607
|
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, r); t !== this._$AB; ) {
|
|
4604
|
-
const n =
|
|
4605
|
-
|
|
4608
|
+
const n = bo(t).nextSibling;
|
|
4609
|
+
bo(t).remove(), t = n;
|
|
4606
4610
|
}
|
|
4607
4611
|
}
|
|
4608
4612
|
setConnected(t) {
|
|
@@ -4635,7 +4639,7 @@ class us {
|
|
|
4635
4639
|
t === K ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
4636
4640
|
}
|
|
4637
4641
|
}
|
|
4638
|
-
class
|
|
4642
|
+
class xl extends us {
|
|
4639
4643
|
constructor() {
|
|
4640
4644
|
super(...arguments), this.type = 3;
|
|
4641
4645
|
}
|
|
@@ -4643,7 +4647,7 @@ class Pl extends us {
|
|
|
4643
4647
|
this.element[this.name] = t === K ? void 0 : t;
|
|
4644
4648
|
}
|
|
4645
4649
|
}
|
|
4646
|
-
class
|
|
4650
|
+
class Fl extends us {
|
|
4647
4651
|
constructor() {
|
|
4648
4652
|
super(...arguments), this.type = 4;
|
|
4649
4653
|
}
|
|
@@ -4651,7 +4655,7 @@ class Ml extends us {
|
|
|
4651
4655
|
this.element.toggleAttribute(this.name, !!t && t !== K);
|
|
4652
4656
|
}
|
|
4653
4657
|
}
|
|
4654
|
-
class
|
|
4658
|
+
class $l extends us {
|
|
4655
4659
|
constructor(t, r, s, n, i) {
|
|
4656
4660
|
super(t, r, s, n, i), this.type = 5;
|
|
4657
4661
|
}
|
|
@@ -4665,7 +4669,7 @@ class xl extends us {
|
|
|
4665
4669
|
typeof this._$AH == "function" ? this._$AH.call(((r = this.options) == null ? void 0 : r.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
4666
4670
|
}
|
|
4667
4671
|
}
|
|
4668
|
-
class
|
|
4672
|
+
class Ol {
|
|
4669
4673
|
constructor(t, r, s) {
|
|
4670
4674
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = s;
|
|
4671
4675
|
}
|
|
@@ -4677,8 +4681,8 @@ class Fl {
|
|
|
4677
4681
|
}
|
|
4678
4682
|
}
|
|
4679
4683
|
const Ts = or.litHtmlPolyfillSupport;
|
|
4680
|
-
Ts == null || Ts(
|
|
4681
|
-
const
|
|
4684
|
+
Ts == null || Ts(mr, kr), (or.litHtmlVersions ?? (or.litHtmlVersions = [])).push("3.3.2");
|
|
4685
|
+
const Rl = (e, t, r) => {
|
|
4682
4686
|
const s = (r == null ? void 0 : r.renderBefore) ?? t;
|
|
4683
4687
|
let n = s._$litPart$;
|
|
4684
4688
|
if (n === void 0) {
|
|
@@ -4704,7 +4708,7 @@ class ar extends _t {
|
|
|
4704
4708
|
}
|
|
4705
4709
|
update(t) {
|
|
4706
4710
|
const r = this.render();
|
|
4707
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
4711
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Rl(r, this.renderRoot, this.renderOptions);
|
|
4708
4712
|
}
|
|
4709
4713
|
connectedCallback() {
|
|
4710
4714
|
var t;
|
|
@@ -4718,8 +4722,8 @@ class ar extends _t {
|
|
|
4718
4722
|
return It;
|
|
4719
4723
|
}
|
|
4720
4724
|
}
|
|
4721
|
-
var
|
|
4722
|
-
ar._$litElement$ = !0, ar.finalized = !0, (
|
|
4725
|
+
var So;
|
|
4726
|
+
ar._$litElement$ = !0, ar.finalized = !0, (So = ht.litElementHydrateSupport) == null || So.call(ht, { LitElement: ar });
|
|
4723
4727
|
const Cs = ht.litElementPolyfillSupport;
|
|
4724
4728
|
Cs == null || Cs({ LitElement: ar });
|
|
4725
4729
|
(ht.litElementVersions ?? (ht.litElementVersions = [])).push("4.2.2");
|
|
@@ -4728,7 +4732,7 @@ Cs == null || Cs({ LitElement: ar });
|
|
|
4728
4732
|
* Copyright 2017 Google LLC
|
|
4729
4733
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4730
4734
|
*/
|
|
4731
|
-
const
|
|
4735
|
+
const Il = (e) => (t, r) => {
|
|
4732
4736
|
r !== void 0 ? r.addInitializer(() => {
|
|
4733
4737
|
customElements.define(e, t);
|
|
4734
4738
|
}) : customElements.define(e, t);
|
|
@@ -4738,7 +4742,7 @@ const Ol = (e) => (t, r) => {
|
|
|
4738
4742
|
* Copyright 2017 Google LLC
|
|
4739
4743
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4740
4744
|
*/
|
|
4741
|
-
const
|
|
4745
|
+
const Nl = { attribute: !0, type: String, converter: Ur, reflect: !1, hasChanged: Qn }, Bl = (e = Nl, t, r) => {
|
|
4742
4746
|
const { kind: s, metadata: n } = r;
|
|
4743
4747
|
let i = globalThis.litPropertyMetadata.get(n);
|
|
4744
4748
|
if (i === void 0 && globalThis.litPropertyMetadata.set(n, i = /* @__PURE__ */ new Map()), s === "setter" && ((e = Object.create(e)).wrapped = !0), i.set(r.name, e), s === "accessor") {
|
|
@@ -4760,7 +4764,7 @@ const Rl = { attribute: !0, type: String, converter: Ur, reflect: !1, hasChanged
|
|
|
4760
4764
|
throw Error("Unsupported decorator location: " + s);
|
|
4761
4765
|
};
|
|
4762
4766
|
function Ee(e) {
|
|
4763
|
-
return (t, r) => typeof r == "object" ?
|
|
4767
|
+
return (t, r) => typeof r == "object" ? Bl(e, t, r) : ((s, n, i) => {
|
|
4764
4768
|
const o = n.hasOwnProperty(i);
|
|
4765
4769
|
return n.constructor.createProperty(i, s), o ? Object.getOwnPropertyDescriptor(n, i) : void 0;
|
|
4766
4770
|
})(e, t, r);
|
|
@@ -4778,37 +4782,37 @@ function Ye(e) {
|
|
|
4778
4782
|
* Copyright 2017 Google LLC
|
|
4779
4783
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4780
4784
|
*/
|
|
4781
|
-
const
|
|
4785
|
+
const Ul = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r);
|
|
4782
4786
|
/**
|
|
4783
4787
|
* @license
|
|
4784
4788
|
* Copyright 2017 Google LLC
|
|
4785
4789
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4786
4790
|
*/
|
|
4787
|
-
function
|
|
4791
|
+
function Dl(e, t) {
|
|
4788
4792
|
return (r, s, n) => {
|
|
4789
4793
|
const i = (o) => {
|
|
4790
4794
|
var a;
|
|
4791
4795
|
return ((a = o.renderRoot) == null ? void 0 : a.querySelector(e)) ?? null;
|
|
4792
4796
|
};
|
|
4793
|
-
return
|
|
4797
|
+
return Ul(r, s, { get() {
|
|
4794
4798
|
return i(this);
|
|
4795
4799
|
} });
|
|
4796
4800
|
};
|
|
4797
4801
|
}
|
|
4798
|
-
const
|
|
4799
|
-
function
|
|
4802
|
+
const jl = 180, Kc = 5e3, Qs = "M 50 17 C 60 17 68 19.5 74 25 C 79 29.5 81.5 36.5 81.5 46.5 V 54.5 C 81.5 63.5 78.5 71 71.5 76.5 C 65 81.5 57.5 84 50 84 C 42.5 84 35 81.5 28.5 76.5 C 21.5 71 18.5 63.5 18.5 54.5 V 46.5 C 18.5 36.5 21 29.5 26 25 C 32 19.5 40 17 50 17 Z", Vl = `M 0 0 H 100 V 100 H 0 Z ${Qs}`;
|
|
4803
|
+
function Gl(e, t, r) {
|
|
4800
4804
|
if (t === null)
|
|
4801
4805
|
return "Center your face in the oval. We will capture automatically when framing looks good.";
|
|
4802
|
-
const s = Math.max(
|
|
4806
|
+
const s = Math.max(Kc - (e - t), 0), n = Math.max(Math.ceil(s / 1e3), 0);
|
|
4803
4807
|
return r.passesQualityChecks ? `Hold steady. Capturing the best frame in ${n}s.` : `${r.message} Best frame selection finishes in ${n}s.`;
|
|
4804
4808
|
}
|
|
4805
|
-
function
|
|
4809
|
+
function Hl(e) {
|
|
4806
4810
|
const t = e == null ? void 0 : e.captureScore;
|
|
4807
4811
|
return typeof t == "number" && t > 0 ? "Best frame captured. Review and confirm this photo." : "Capture complete. Review and confirm this photo.";
|
|
4808
4812
|
}
|
|
4809
|
-
class
|
|
4813
|
+
class zl {
|
|
4810
4814
|
constructor(t) {
|
|
4811
|
-
this.frameCapture =
|
|
4815
|
+
this.frameCapture = cl(), this.stopped = !1, this.animationFrameId = null, this.analysisTimerId = null, this.analysisInFlight = !1, this.lastAnalysisTimestamp = 0, this.countdownStartedAt = null, this.bestCaptureScore = -1, this.bestQualityResult = null, this.videoElement = t.videoElement, this.copy = t.copy, this.onStateChange = t.onStateChange, this.waitForReady = t.waitForReady ?? ((r) => ol(r)), this.assessLiveQuality = t.assessLiveQuality ?? tl, this.assessPreviewBlob = t.assessPreviewBlob ?? Wl, this.mode = t.initialMode, this.state = this.createStartingState(), this.emit(this.state);
|
|
4812
4816
|
}
|
|
4813
4817
|
getState() {
|
|
4814
4818
|
return this.state;
|
|
@@ -4829,7 +4833,7 @@ class Gl {
|
|
|
4829
4833
|
this.stopped || this.emit(this.createPreviewState(t, r));
|
|
4830
4834
|
}
|
|
4831
4835
|
async retake() {
|
|
4832
|
-
this.stopped || this.state.phase !== "preview" || (this.resetAutoState(),
|
|
4836
|
+
this.stopped || this.state.phase !== "preview" || (this.resetAutoState(), al(this.videoElement), this.emit(this.createLiveState({
|
|
4833
4837
|
feedbackMessage: this.mode === "auto" ? this.copy.autoReadyMessage : this.copy.retakeReadyMessage ?? this.copy.manualReadyMessage,
|
|
4834
4838
|
feedbackTone: this.mode === "auto" ? "neutral" : "manual"
|
|
4835
4839
|
})), this.mode === "auto" && this.scheduleAutoAnalysis());
|
|
@@ -4908,7 +4912,7 @@ class Gl {
|
|
|
4908
4912
|
scheduleAutoAnalysis() {
|
|
4909
4913
|
if (this.stopped || this.mode !== "auto" || this.state.phase !== "live")
|
|
4910
4914
|
return;
|
|
4911
|
-
const t = performance.now(), r = Math.max(
|
|
4915
|
+
const t = performance.now(), r = Math.max(jl - (t - this.lastAnalysisTimestamp), 0);
|
|
4912
4916
|
this.cancelScheduledAnalysis(), this.analysisTimerId = window.setTimeout(() => {
|
|
4913
4917
|
this.analysisTimerId = null, this.animationFrameId = window.requestAnimationFrame((s) => {
|
|
4914
4918
|
this.runAutoAnalysis(s);
|
|
@@ -4928,7 +4932,7 @@ class Gl {
|
|
|
4928
4932
|
if (this.stopped || this.mode !== "auto" || this.state.phase !== "live") return;
|
|
4929
4933
|
if (r.passesQualityChecks && (this.countdownStartedAt === null && (this.countdownStartedAt = t), r.captureScore > this.bestCaptureScore && (this.frameCapture.promoteWorkingToBest(), this.bestCaptureScore = r.captureScore, this.bestQualityResult = r)), this.countdownStartedAt !== null) {
|
|
4930
4934
|
const s = Math.min(
|
|
4931
|
-
(t - this.countdownStartedAt) /
|
|
4935
|
+
(t - this.countdownStartedAt) / Kc,
|
|
4932
4936
|
1
|
|
4933
4937
|
);
|
|
4934
4938
|
if (s >= 1) {
|
|
@@ -4936,7 +4940,7 @@ class Gl {
|
|
|
4936
4940
|
return;
|
|
4937
4941
|
}
|
|
4938
4942
|
this.emit(this.createLiveState({
|
|
4939
|
-
feedbackMessage:
|
|
4943
|
+
feedbackMessage: Gl(
|
|
4940
4944
|
t,
|
|
4941
4945
|
this.countdownStartedAt,
|
|
4942
4946
|
r
|
|
@@ -4965,7 +4969,7 @@ class Gl {
|
|
|
4965
4969
|
if (this.stopped || this.mode !== "auto" || this.state.phase !== "live") return;
|
|
4966
4970
|
const r = this.bestQualityResult ?? await this.assessPreviewBlob(t);
|
|
4967
4971
|
this.stopped || this.mode !== "auto" || this.state.phase !== "live" || this.emit(this.createPreviewState(t, r, {
|
|
4968
|
-
feedbackMessage:
|
|
4972
|
+
feedbackMessage: Hl(r),
|
|
4969
4973
|
feedbackTone: (r == null ? void 0 : r.passesQualityChecks) === !1 ? "error" : "success"
|
|
4970
4974
|
}));
|
|
4971
4975
|
}
|
|
@@ -4983,22 +4987,22 @@ class Gl {
|
|
|
4983
4987
|
this.cancelScheduledAnalysis(), this.countdownStartedAt = null, this.bestCaptureScore = -1, this.bestQualityResult = null, this.frameCapture.resetStoredBestFrame();
|
|
4984
4988
|
}
|
|
4985
4989
|
}
|
|
4986
|
-
async function
|
|
4990
|
+
async function Wl(e) {
|
|
4987
4991
|
try {
|
|
4988
|
-
const t = await
|
|
4989
|
-
return await
|
|
4992
|
+
const t = await jc(e);
|
|
4993
|
+
return await Fc(t);
|
|
4990
4994
|
} catch {
|
|
4991
4995
|
return null;
|
|
4992
4996
|
}
|
|
4993
4997
|
}
|
|
4994
|
-
var
|
|
4995
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
4998
|
+
var Kl = Object.defineProperty, ql = Object.getOwnPropertyDescriptor, j = (e, t, r, s) => {
|
|
4999
|
+
for (var n = s > 1 ? void 0 : s ? ql(t, r) : t, i = e.length - 1, o; i >= 0; i--)
|
|
4996
5000
|
(o = e[i]) && (n = (s ? o(t, r, n) : o(n)) || n);
|
|
4997
|
-
return s && n &&
|
|
5001
|
+
return s && n && Kl(t, r, n), n;
|
|
4998
5002
|
};
|
|
4999
5003
|
let F = class extends ar {
|
|
5000
5004
|
constructor() {
|
|
5001
|
-
super(...arguments), this.label =
|
|
5005
|
+
super(...arguments), this.label = Oc, this.idleFeedbackLabel = Xs, this.embedded = !1, this.active = !1, this.confirmLabel = Rc, this.captureLabel = Ic, this.retakeLabel = Nc, this.retryLabel = Bc, this.capturePreference = "auto-preferred", this.allowMediaPickerFallback = !0, this.captureState = "idle", this.errorMessage = "", this.feedbackMessage = Xs, this.feedbackTone = "neutral", this.previewUrl = "", this.qualityResult = null, this.canTakePhoto = !0, this.captureMode = "auto", this.stream = null, this.sessionController = null, this.currentCaptureStep = null, this.capturedBlob = null, this.pendingActiveSync = !1;
|
|
5002
5006
|
}
|
|
5003
5007
|
disconnectedCallback() {
|
|
5004
5008
|
super.disconnectedCallback(), this.stopSession();
|
|
@@ -5057,7 +5061,7 @@ let F = class extends ar {
|
|
|
5057
5061
|
class="guide-overlay ${this.captureState === "live" || this.captureState === "starting" ? "" : "hidden"}"
|
|
5058
5062
|
>
|
|
5059
5063
|
<svg viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true">
|
|
5060
|
-
<path class="guide-mask" d=${
|
|
5064
|
+
<path class="guide-mask" d=${Vl}></path>
|
|
5061
5065
|
<path class="ring-outline" d=${Qs}></path>
|
|
5062
5066
|
<path class="ring-progress" d=${Qs} pathLength="100"></path>
|
|
5063
5067
|
</svg>
|
|
@@ -5087,20 +5091,20 @@ let F = class extends ar {
|
|
|
5087
5091
|
if (!this.active || this.captureState === "starting" || this.captureState === "live")
|
|
5088
5092
|
return;
|
|
5089
5093
|
this.stopSession(), this.resetState(), this.captureState = "starting", this.feedbackMessage = "Requesting camera access...", this.feedbackTone = "neutral";
|
|
5090
|
-
const e =
|
|
5094
|
+
const e = Uc({
|
|
5091
5095
|
capturePreference: this.capturePreference,
|
|
5092
5096
|
allowMediaPickerFallback: this.allowMediaPickerFallback
|
|
5093
5097
|
}, this);
|
|
5094
5098
|
e.label = this.label, e.idleFeedbackLabel = this.idleFeedbackLabel, e.confirmLabel = this.confirmLabel, e.captureLabel = this.captureLabel, e.retakeLabel = this.retakeLabel, e.retryLabel = this.retryLabel;
|
|
5095
|
-
const t = await
|
|
5099
|
+
const t = await rl({
|
|
5096
5100
|
capturePreference: e.capturePreference
|
|
5097
|
-
}), r =
|
|
5101
|
+
}), r = sl(e, t), s = r.steps.find((o) => o === "auto-camera" || o === "manual-camera") ?? null, n = r.steps.includes("media-picker");
|
|
5098
5102
|
if (!s) {
|
|
5099
5103
|
await this.startMediaPicker();
|
|
5100
5104
|
return;
|
|
5101
5105
|
}
|
|
5102
5106
|
try {
|
|
5103
|
-
this.stream = await
|
|
5107
|
+
this.stream = await il();
|
|
5104
5108
|
} catch (o) {
|
|
5105
5109
|
if (o instanceof Ys && n) {
|
|
5106
5110
|
await this.startMediaPicker();
|
|
@@ -5118,7 +5122,7 @@ let F = class extends ar {
|
|
|
5118
5122
|
this.handleCaptureError(new Error("Inline camera preview could not be created."));
|
|
5119
5123
|
return;
|
|
5120
5124
|
}
|
|
5121
|
-
i.srcObject = this.stream, this.currentCaptureStep = s, this.sessionController = new
|
|
5125
|
+
i.srcObject = this.stream, this.currentCaptureStep = s, this.sessionController = new zl({
|
|
5122
5126
|
videoElement: i,
|
|
5123
5127
|
initialMode: s === "auto-camera" ? "auto" : "manual",
|
|
5124
5128
|
copy: {
|
|
@@ -5138,7 +5142,7 @@ let F = class extends ar {
|
|
|
5138
5142
|
async startMediaPicker() {
|
|
5139
5143
|
this.stopSession(), this.currentCaptureStep = "media-picker", this.captureState = "starting", this.feedbackMessage = "Opening media picker...", this.feedbackTone = "neutral";
|
|
5140
5144
|
try {
|
|
5141
|
-
const e = await
|
|
5145
|
+
const e = await Dc();
|
|
5142
5146
|
if (!e) {
|
|
5143
5147
|
this.handleCancel();
|
|
5144
5148
|
return;
|
|
@@ -5233,14 +5237,14 @@ let F = class extends ar {
|
|
|
5233
5237
|
}
|
|
5234
5238
|
async assessPickedBlob(e) {
|
|
5235
5239
|
try {
|
|
5236
|
-
const t = await
|
|
5237
|
-
return await
|
|
5240
|
+
const t = await jc(e);
|
|
5241
|
+
return await Fc(t);
|
|
5238
5242
|
} catch {
|
|
5239
5243
|
return null;
|
|
5240
5244
|
}
|
|
5241
5245
|
}
|
|
5242
5246
|
};
|
|
5243
|
-
F.styles =
|
|
5247
|
+
F.styles = yl`
|
|
5244
5248
|
:host {
|
|
5245
5249
|
display: block;
|
|
5246
5250
|
font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
@@ -5545,43 +5549,43 @@ j([
|
|
|
5545
5549
|
Ye()
|
|
5546
5550
|
], F.prototype, "captureMode", 2);
|
|
5547
5551
|
j([
|
|
5548
|
-
|
|
5552
|
+
Dl("#embedded-video")
|
|
5549
5553
|
], F.prototype, "embeddedVideoElement", 2);
|
|
5550
5554
|
F = j([
|
|
5551
|
-
|
|
5555
|
+
Il("simface-capture")
|
|
5552
5556
|
], F);
|
|
5553
|
-
const
|
|
5557
|
+
const qc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5554
5558
|
__proto__: null,
|
|
5555
5559
|
get SimFaceCapture() {
|
|
5556
5560
|
return F;
|
|
5557
5561
|
}
|
|
5558
5562
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5559
|
-
async function
|
|
5560
|
-
const n = new
|
|
5563
|
+
async function Zl(e, t, r, s) {
|
|
5564
|
+
const n = new To(e);
|
|
5561
5565
|
await n.validateAPIKey();
|
|
5562
|
-
const i = await
|
|
5566
|
+
const i = await Xc(r, s);
|
|
5563
5567
|
if (!i)
|
|
5564
5568
|
return { success: !1, clientId: t, message: "Capture cancelled by user" };
|
|
5565
5569
|
const o = await n.enroll(t, i);
|
|
5566
5570
|
return o.alreadyEnrolled, o;
|
|
5567
5571
|
}
|
|
5568
|
-
async function
|
|
5569
|
-
const n = new
|
|
5572
|
+
async function e2(e, t, r, s) {
|
|
5573
|
+
const n = new To(e);
|
|
5570
5574
|
await n.validateAPIKey();
|
|
5571
|
-
const i = await
|
|
5575
|
+
const i = await Xc(r, s);
|
|
5572
5576
|
return i ? n.verify(t, i) : { match: !1, score: 0, threshold: 0, message: "Capture cancelled by user" };
|
|
5573
5577
|
}
|
|
5574
|
-
async function
|
|
5575
|
-
return
|
|
5578
|
+
async function Xc(e, t) {
|
|
5579
|
+
return ll(e, t);
|
|
5576
5580
|
}
|
|
5577
5581
|
export {
|
|
5578
|
-
|
|
5582
|
+
To as SimFaceAPIClient,
|
|
5579
5583
|
F as SimFaceCapture,
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5584
|
+
Fc as assessFaceQuality,
|
|
5585
|
+
tl as assessFaceQualityForVideo,
|
|
5586
|
+
Yl as blobToDataURL,
|
|
5587
|
+
jc as blobToImage,
|
|
5588
|
+
ll as captureFromCamera,
|
|
5589
|
+
Zl as enroll,
|
|
5590
|
+
e2 as verify
|
|
5587
5591
|
};
|