@richard.fadiora/liveness-detection 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,19 +1,20 @@
1
- var va = Object.defineProperty;
2
- var wa = (t, e, n) => e in t ? va(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var ls = (t, e, n) => wa(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { useState as ba, useRef as fs, useEffect as ds, useCallback as ps } from "react";
5
- const f1 = async (t, e, n) => {
1
+ import { useState as _a, useRef as ls, useEffect as fs, useCallback as ds } from "react";
2
+ const va = async (t, e, n) => {
6
3
  const r = new FormData();
7
- e.forEach((i, o) => {
8
- r.append("files", i, `frame_${o}.jpg`);
4
+ e.forEach((o, a) => {
5
+ r.append("files", o, `frame_${a}.jpg`);
9
6
  }), r.append("challenge", n);
10
7
  const s = await fetch(`${t}/v1/verify`, {
11
8
  method: "POST",
12
9
  body: r
13
10
  });
14
- if (!s.ok) throw new Error("Network response was not ok");
11
+ if (!s.ok)
12
+ throw new Error("Network response was not ok");
15
13
  return await s.json();
16
- };
14
+ }, wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15
+ __proto__: null,
16
+ verifyLiveness: va
17
+ }, Symbol.toStringTag, { value: "Module" }));
17
18
  var ue = typeof self < "u" ? self : {};
18
19
  function Ve(t, e) {
19
20
  t: {
@@ -28,15 +29,15 @@ function Ve(t, e) {
28
29
  function Ht() {
29
30
  throw Error("Invalid UTF8");
30
31
  }
31
- function gs(t, e) {
32
+ function ps(t, e) {
32
33
  return e = String.fromCharCode.apply(null, e), t == null ? e : t + e;
33
34
  }
34
35
  let en, jn;
35
- const Aa = typeof TextDecoder < "u";
36
- let Ea;
37
- const ka = typeof TextEncoder < "u";
36
+ const ba = typeof TextDecoder < "u";
37
+ let Aa;
38
+ const Ea = typeof TextEncoder < "u";
38
39
  function yi(t) {
39
- if (ka) t = (Ea || (Ea = new TextEncoder())).encode(t);
40
+ if (Ea) t = (Aa || (Aa = new TextEncoder())).encode(t);
40
41
  else {
41
42
  let n = 0;
42
43
  const r = new Uint8Array(3 * t.length);
@@ -66,13 +67,13 @@ function yi(t) {
66
67
  }
67
68
  return t;
68
69
  }
69
- function vi(t) {
70
+ function _i(t) {
70
71
  ue.setTimeout(() => {
71
72
  throw t;
72
73
  }, 0);
73
74
  }
74
- var Yn, Sa = Ve(610401301, !1), ms = Ve(748402147, !0), pr = Ve(824648567, !0), gr = Ve(824656860, Ve(1, !0));
75
- function _s() {
75
+ var Yn, ka = Ve(610401301, !1), gs = Ve(748402147, !0), pr = Ve(824648567, !0), gr = Ve(824656860, Ve(1, !0));
76
+ function ms() {
76
77
  var t = ue.navigator;
77
78
  return t && (t = t.userAgent) ? t : "";
78
79
  }
@@ -82,9 +83,9 @@ function gn(t) {
82
83
  }
83
84
  Yn = ys && ys.userAgentData || null, gn[" "] = function() {
84
85
  };
85
- const wi = {};
86
+ const vi = {};
86
87
  let Be = null;
87
- function Ta(t) {
88
+ function Sa(t) {
88
89
  const e = t.length;
89
90
  let n = 3 * e / 4;
90
91
  n % 3 ? n = Math.floor(n) : "=.".indexOf(t[e - 1]) != -1 && (n = "=.".indexOf(t[e - 2]) != -1 ? n - 2 : n - 1);
@@ -99,24 +100,24 @@ function Ta(t) {
99
100
  }
100
101
  return u;
101
102
  }
102
- bi();
103
+ wi();
103
104
  let c = 0;
104
105
  for (; ; ) {
105
- const u = a(-1), h = a(0), f = a(64), y = a(64);
106
- if (y === 64 && u === -1) break;
107
- o(u << 2 | h >> 4), f != 64 && (o(h << 4 & 240 | f >> 2), y != 64 && o(f << 6 & 192 | y));
106
+ const u = a(-1), h = a(0), f = a(64), _ = a(64);
107
+ if (_ === 64 && u === -1) break;
108
+ o(u << 2 | h >> 4), f != 64 && (o(h << 4 & 240 | f >> 2), _ != 64 && o(f << 6 & 192 | _));
108
109
  }
109
110
  }(t, function(i) {
110
111
  r[s++] = i;
111
112
  }), s !== n ? r.subarray(0, s) : r;
112
113
  }
113
- function bi() {
114
+ function wi() {
114
115
  if (!Be) {
115
116
  Be = {};
116
117
  var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), e = ["+/=", "+/", "-_=", "-_.", "-_"];
117
118
  for (let n = 0; n < 5; n++) {
118
119
  const r = t.concat(e[n].split(""));
119
- wi[n] = r;
120
+ vi[n] = r;
120
121
  for (let s = 0; s < r.length; s++) {
121
122
  const i = r[s];
122
123
  Be[i] === void 0 && (Be[i] = s);
@@ -124,52 +125,52 @@ function bi() {
124
125
  }
125
126
  }
126
127
  }
127
- var La = typeof Uint8Array < "u", Ai = !(!(Sa && Yn && Yn.brands.length > 0) && (_s().indexOf("Trident") != -1 || _s().indexOf("MSIE") != -1)) && typeof btoa == "function";
128
- const vs = /[-_.]/g, Fa = { "-": "+", _: "/", ".": "=" };
129
- function Ma(t) {
130
- return Fa[t] || "";
128
+ var Ta = typeof Uint8Array < "u", bi = !(!(ka && Yn && Yn.brands.length > 0) && (ms().indexOf("Trident") != -1 || ms().indexOf("MSIE") != -1)) && typeof btoa == "function";
129
+ const _s = /[-_.]/g, La = { "-": "+", _: "/", ".": "=" };
130
+ function Fa(t) {
131
+ return La[t] || "";
131
132
  }
132
- function Ei(t) {
133
- if (!Ai) return Ta(t);
134
- t = vs.test(t) ? t.replace(vs, Ma) : t, t = atob(t);
133
+ function Ai(t) {
134
+ if (!bi) return Sa(t);
135
+ t = _s.test(t) ? t.replace(_s, Fa) : t, t = atob(t);
135
136
  const e = new Uint8Array(t.length);
136
137
  for (let n = 0; n < t.length; n++) e[n] = t.charCodeAt(n);
137
138
  return e;
138
139
  }
139
140
  function mr(t) {
140
- return La && t != null && t instanceof Uint8Array;
141
+ return Ta && t != null && t instanceof Uint8Array;
141
142
  }
142
143
  var le = {};
143
144
  function Zt() {
144
- return Pa || (Pa = new Et(null, le));
145
+ return Ma || (Ma = new Et(null, le));
145
146
  }
146
- function _r(t) {
147
- ki(le);
147
+ function yr(t) {
148
+ Ei(le);
148
149
  var e = t.g;
149
- return (e = e == null || mr(e) ? e : typeof e == "string" ? Ei(e) : null) == null ? e : t.g = e;
150
+ return (e = e == null || mr(e) ? e : typeof e == "string" ? Ai(e) : null) == null ? e : t.g = e;
150
151
  }
151
152
  var Et = class {
152
153
  h() {
153
- return new Uint8Array(_r(this) || 0);
154
+ return new Uint8Array(yr(this) || 0);
154
155
  }
155
156
  constructor(t, e) {
156
- if (ki(e), this.g = t, t != null && t.length === 0) throw Error("ByteString should be constructed with non-empty values");
157
+ if (Ei(e), this.g = t, t != null && t.length === 0) throw Error("ByteString should be constructed with non-empty values");
157
158
  }
158
159
  };
159
- let Pa, Oa;
160
- function ki(t) {
160
+ let Ma, Pa;
161
+ function Ei(t) {
161
162
  if (t !== le) throw Error("illegal external caller");
162
163
  }
163
- function Si(t, e) {
164
+ function ki(t, e) {
164
165
  t.__closure__error__context__984382 || (t.__closure__error__context__984382 = {}), t.__closure__error__context__984382.severity = e;
165
166
  }
166
167
  function $n(t) {
167
- return Si(t = Error(t), "warning"), t;
168
+ return ki(t = Error(t), "warning"), t;
168
169
  }
169
170
  function fe(t, e) {
170
171
  if (t != null) {
171
- var n = Oa ?? (Oa = {}), r = n[t] || 0;
172
- r >= e || (n[t] = r + 1, Si(t = Error(), "incident"), vi(t));
172
+ var n = Pa ?? (Pa = {}), r = n[t] || 0;
173
+ r >= e || (n[t] = r + 1, ki(t = Error(), "incident"), _i(t));
173
174
  }
174
175
  }
175
176
  function Ae() {
@@ -179,15 +180,15 @@ var Ee = typeof Symbol == "function" && typeof Symbol() == "symbol";
179
180
  function kt(t, e, n = !1) {
180
181
  return typeof Symbol == "function" && typeof Symbol() == "symbol" ? n && Symbol.for && t ? Symbol.for(t) : t != null ? Symbol(t) : Symbol() : e;
181
182
  }
182
- var xa = kt("jas", void 0, !0), ws = kt(void 0, "0di"), Ce = kt(void 0, "1oa"), nt = kt(void 0, Symbol()), Ia = kt(void 0, "0ub"), Na = kt(void 0, "0ubs"), Jn = kt(void 0, "0ubsb"), Ca = kt(void 0, "0actk"), de = kt("m_m", "Pa", !0), bs = kt();
183
- const Ti = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Li = Object.defineProperties, d = Ee ? xa : "Ga";
183
+ var Oa = kt("jas", void 0, !0), vs = kt(void 0, "0di"), Ce = kt(void 0, "1oa"), nt = kt(void 0, Symbol()), Ia = kt(void 0, "0ub"), xa = kt(void 0, "0ubs"), Jn = kt(void 0, "0ubsb"), Na = kt(void 0, "0actk"), de = kt("m_m", "Pa", !0), ws = kt();
184
+ const Si = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Ti = Object.defineProperties, d = Ee ? Oa : "Ga";
184
185
  var ee;
185
- const As = [];
186
+ const bs = [];
186
187
  function qe(t, e) {
187
- Ee || d in t || Li(t, Ti), t[d] |= e;
188
+ Ee || d in t || Ti(t, Si), t[d] |= e;
188
189
  }
189
190
  function V(t, e) {
190
- Ee || d in t || Li(t, Ti), t[d] = e;
191
+ Ee || d in t || Ti(t, Si), t[d] = e;
191
192
  }
192
193
  function Xe(t) {
193
194
  return qe(t, 34), t;
@@ -195,13 +196,13 @@ function Xe(t) {
195
196
  function He(t) {
196
197
  return qe(t, 8192), t;
197
198
  }
198
- V(As, 7), ee = Object.freeze(As);
199
+ V(bs, 7), ee = Object.freeze(bs);
199
200
  var pe = {};
200
201
  function st(t, e) {
201
202
  return e === void 0 ? t.h !== Qt && !!(2 & (0 | t.v[d])) : !!(2 & e) && t.h !== Qt;
202
203
  }
203
204
  const Qt = {};
204
- function yr(t, e) {
205
+ function _r(t, e) {
205
206
  if (t != null) {
206
207
  if (typeof t == "string") t = t ? new Et(t, le) : Zt();
207
208
  else if (t.constructor !== Et) if (mr(t)) t = t.length ? new Et(new Uint8Array(t), le) : Zt();
@@ -212,7 +213,7 @@ function yr(t, e) {
212
213
  }
213
214
  return t;
214
215
  }
215
- class Es {
216
+ class As {
216
217
  constructor(e, n, r) {
217
218
  this.g = e, this.h = n, this.l = r;
218
219
  }
@@ -224,8 +225,8 @@ class Es {
224
225
  return this;
225
226
  }
226
227
  }
227
- var Ra = Object.freeze({});
228
- function Fi(t, e, n) {
228
+ var Ca = Object.freeze({});
229
+ function Li(t, e, n) {
229
230
  const r = 128 & e ? 0 : -1, s = t.length;
230
231
  var i;
231
232
  (i = !!s) && (i = (i = t[s - 1]) != null && typeof i == "object" && i.constructor === Object);
@@ -236,24 +237,24 @@ function Fi(t, e, n) {
236
237
  for (const a in t) !isNaN(a) && n(+a, t[a]);
237
238
  }
238
239
  }
239
- var Mi = {};
240
+ var Fi = {};
240
241
  function ke(t) {
241
- return 128 & t ? Mi : void 0;
242
+ return 128 & t ? Fi : void 0;
242
243
  }
243
244
  function mn(t) {
244
245
  return t.Na = !0, t;
245
246
  }
246
- var Ba = mn((t) => typeof t == "number"), ks = mn((t) => typeof t == "string"), Da = mn((t) => typeof t == "boolean"), _n = typeof ue.BigInt == "function" && typeof ue.BigInt(0) == "bigint";
247
+ var Ra = mn((t) => typeof t == "number"), Es = mn((t) => typeof t == "string"), Ba = mn((t) => typeof t == "boolean"), yn = typeof ue.BigInt == "function" && typeof ue.BigInt(0) == "bigint";
247
248
  function rt(t) {
248
249
  var e = t;
249
- if (ks(e)) {
250
+ if (Es(e)) {
250
251
  if (!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e)) throw Error(String(e));
251
- } else if (Ba(e) && !Number.isSafeInteger(e)) throw Error(String(e));
252
- return _n ? BigInt(t) : t = Da(t) ? t ? "1" : "0" : ks(t) ? t.trim() || "0" : String(t);
252
+ } else if (Ra(e) && !Number.isSafeInteger(e)) throw Error(String(e));
253
+ return yn ? BigInt(t) : t = Ba(t) ? t ? "1" : "0" : Es(t) ? t.trim() || "0" : String(t);
253
254
  }
254
- var Zn = mn((t) => _n ? t >= ja && t <= Va : t[0] === "-" ? Ss(t, Ua) : Ss(t, Ga));
255
- const Ua = Number.MIN_SAFE_INTEGER.toString(), ja = _n ? BigInt(Number.MIN_SAFE_INTEGER) : void 0, Ga = Number.MAX_SAFE_INTEGER.toString(), Va = _n ? BigInt(Number.MAX_SAFE_INTEGER) : void 0;
256
- function Ss(t, e) {
255
+ var Zn = mn((t) => yn ? t >= Ua && t <= Ga : t[0] === "-" ? ks(t, Da) : ks(t, ja));
256
+ const Da = Number.MIN_SAFE_INTEGER.toString(), Ua = yn ? BigInt(Number.MIN_SAFE_INTEGER) : void 0, ja = Number.MAX_SAFE_INTEGER.toString(), Ga = yn ? BigInt(Number.MAX_SAFE_INTEGER) : void 0;
257
+ function ks(t, e) {
257
258
  if (t.length > e.length) return !1;
258
259
  if (t.length < e.length || t === e) return !0;
259
260
  for (let n = 0; n < t.length; n++) {
@@ -262,43 +263,43 @@ function Ss(t, e) {
262
263
  if (r < s) return !0;
263
264
  }
264
265
  }
265
- const Ha = typeof Uint8Array.prototype.slice == "function";
266
- let Wa, P = 0, B = 0;
267
- function Ts(t) {
266
+ const Va = typeof Uint8Array.prototype.slice == "function";
267
+ let Ha, P = 0, B = 0;
268
+ function Ss(t) {
268
269
  const e = t >>> 0;
269
270
  P = e, B = (t - e) / 4294967296 >>> 0;
270
271
  }
271
272
  function ge(t) {
272
273
  if (t < 0) {
273
- Ts(-t);
274
+ Ss(-t);
274
275
  const [e, n] = Ar(P, B);
275
276
  P = e >>> 0, B = n >>> 0;
276
- } else Ts(t);
277
+ } else Ss(t);
277
278
  }
278
279
  function vr(t) {
279
- const e = Wa || (Wa = new DataView(new ArrayBuffer(8)));
280
+ const e = Ha || (Ha = new DataView(new ArrayBuffer(8)));
280
281
  e.setFloat32(0, +t, !0), B = 0, P = e.getUint32(0, !0);
281
282
  }
282
283
  function Qn(t, e) {
283
284
  const n = 4294967296 * e + (t >>> 0);
284
285
  return Number.isSafeInteger(n) ? n : We(t, e);
285
286
  }
286
- function Ka(t, e) {
287
+ function Wa(t, e) {
287
288
  return rt(Ae() ? BigInt.asUintN(64, (BigInt(e >>> 0) << BigInt(32)) + BigInt(t >>> 0)) : We(t, e));
288
289
  }
289
290
  function wr(t, e) {
290
291
  const n = 2147483648 & e;
291
292
  return n && (e = ~e >>> 0, (t = 1 + ~t >>> 0) == 0 && (e = e + 1 >>> 0)), typeof (t = Qn(t, e)) == "number" ? n ? -t : t : n ? "-" + t : t;
292
293
  }
293
- function Pi(t, e) {
294
+ function Mi(t, e) {
294
295
  return Ae() ? rt(BigInt.asIntN(64, (BigInt.asUintN(32, BigInt(e)) << BigInt(32)) + BigInt.asUintN(32, BigInt(t)))) : rt(br(t, e));
295
296
  }
296
297
  function We(t, e) {
297
298
  if (t >>>= 0, (e >>>= 0) <= 2097151) var n = "" + (4294967296 * e + t);
298
- else Ae() ? n = "" + (BigInt(e) << BigInt(32) | BigInt(t)) : (t = (16777215 & t) + 6777216 * (n = 16777215 & (t >>> 24 | e << 8)) + 6710656 * (e = e >> 16 & 65535), n += 8147497 * e, e *= 2, t >= 1e7 && (n += t / 1e7 >>> 0, t %= 1e7), n >= 1e7 && (e += n / 1e7 >>> 0, n %= 1e7), n = e + Ls(n) + Ls(t));
299
+ else Ae() ? n = "" + (BigInt(e) << BigInt(32) | BigInt(t)) : (t = (16777215 & t) + 6777216 * (n = 16777215 & (t >>> 24 | e << 8)) + 6710656 * (e = e >> 16 & 65535), n += 8147497 * e, e *= 2, t >= 1e7 && (n += t / 1e7 >>> 0, t %= 1e7), n >= 1e7 && (e += n / 1e7 >>> 0, n %= 1e7), n = e + Ts(n) + Ts(t));
299
300
  return n;
300
301
  }
301
- function Ls(t) {
302
+ function Ts(t) {
302
303
  return t = String(t), "0000000".slice(t.length) + t;
303
304
  }
304
305
  function br(t, e) {
@@ -310,7 +311,7 @@ function br(t, e) {
310
311
  else t = We(t, e);
311
312
  return t;
312
313
  }
313
- function yn(t) {
314
+ function _n(t) {
314
315
  if (t.length < 16) ge(Number(t));
315
316
  else if (Ae()) t = BigInt(t), P = Number(t & BigInt(4294967295)) >>> 0, B = Number(t >> BigInt(32) & BigInt(4294967295));
316
317
  else {
@@ -333,7 +334,7 @@ function Ar(t, e) {
333
334
  function mt(t) {
334
335
  return Array.prototype.slice.call(t);
335
336
  }
336
- const Ye = typeof BigInt == "function" ? BigInt.asIntN : void 0, za = typeof BigInt == "function" ? BigInt.asUintN : void 0, te = Number.isSafeInteger, vn = Number.isFinite, me = Math.trunc, qa = rt(0);
337
+ const Ye = typeof BigInt == "function" ? BigInt.asIntN : void 0, Ka = typeof BigInt == "function" ? BigInt.asUintN : void 0, te = Number.isSafeInteger, vn = Number.isFinite, me = Math.trunc, za = rt(0);
337
338
  function De(t) {
338
339
  if (t != null && typeof t != "number") throw Error(`Value of float/double field must be a number, found ${typeof t}: ${t}`);
339
340
  return t;
@@ -348,10 +349,10 @@ function Ke(t) {
348
349
  }
349
350
  return t;
350
351
  }
351
- function Oi(t) {
352
+ function Pi(t) {
352
353
  return t == null || typeof t == "boolean" ? t : typeof t == "number" ? !!t : void 0;
353
354
  }
354
- const Xa = /^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;
355
+ const qa = /^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;
355
356
  function $e(t) {
356
357
  switch (typeof t) {
357
358
  case "bigint":
@@ -359,7 +360,7 @@ function $e(t) {
359
360
  case "number":
360
361
  return vn(t);
361
362
  case "string":
362
- return Xa.test(t);
363
+ return qa.test(t);
363
364
  default:
364
365
  return !1;
365
366
  }
@@ -370,7 +371,7 @@ function Se(t) {
370
371
  else if (typeof t != "number") return;
371
372
  return vn(t) ? 0 | t : void 0;
372
373
  }
373
- function xi(t) {
374
+ function Oi(t) {
374
375
  if (t == null) return t;
375
376
  if (typeof t == "string" && t) t = +t;
376
377
  else if (typeof t != "number") return;
@@ -378,30 +379,30 @@ function xi(t) {
378
379
  }
379
380
  function Ii(t) {
380
381
  const e = t.length;
381
- return (t[0] === "-" ? e < 20 || e === 20 && t <= "-9223372036854775808" : e < 19 || e === 19 && t <= "9223372036854775807") ? t : (yn(t), br(P, B));
382
+ return (t[0] === "-" ? e < 20 || e === 20 && t <= "-9223372036854775808" : e < 19 || e === 19 && t <= "9223372036854775807") ? t : (_n(t), br(P, B));
382
383
  }
383
384
  function Er(t) {
384
385
  return t = me(t), te(t) || (ge(t), t = wr(P, B)), t;
385
386
  }
386
- function Ni(t) {
387
+ function xi(t) {
387
388
  var e = me(Number(t));
388
389
  return te(e) ? String(e) : ((e = t.indexOf(".")) !== -1 && (t = t.substring(0, e)), Ii(t));
389
390
  }
390
- function Ci(t) {
391
+ function Ni(t) {
391
392
  var e = me(Number(t));
392
393
  return te(e) ? rt(e) : ((e = t.indexOf(".")) !== -1 && (t = t.substring(0, e)), Ae() ? rt(Ye(64, BigInt(t))) : rt(Ii(t)));
393
394
  }
394
- function Ri(t) {
395
+ function Ci(t) {
395
396
  return te(t) ? t = rt(Er(t)) : (t = me(t), te(t) ? t = String(t) : (ge(t), t = br(P, B)), t = rt(t)), t;
396
397
  }
397
- function Ya(t) {
398
- return t == null ? t : typeof t == "bigint" ? (Zn(t) ? t = Number(t) : (t = Ye(64, t), t = Zn(t) ? Number(t) : String(t)), t) : $e(t) ? typeof t == "number" ? Er(t) : Ni(t) : void 0;
398
+ function Xa(t) {
399
+ return t == null ? t : typeof t == "bigint" ? (Zn(t) ? t = Number(t) : (t = Ye(64, t), t = Zn(t) ? Number(t) : String(t)), t) : $e(t) ? typeof t == "number" ? Er(t) : xi(t) : void 0;
399
400
  }
400
401
  function cn(t) {
401
402
  const e = typeof t;
402
- return t == null ? t : e === "bigint" ? rt(Ye(64, t)) : $e(t) ? e === "string" ? Ci(t) : Ri(t) : void 0;
403
+ return t == null ? t : e === "bigint" ? rt(Ye(64, t)) : $e(t) ? e === "string" ? Ni(t) : Ci(t) : void 0;
403
404
  }
404
- function Bi(t) {
405
+ function Ri(t) {
405
406
  if (typeof t != "string") throw Error();
406
407
  return t;
407
408
  }
@@ -413,27 +414,27 @@ function q(t) {
413
414
  return t == null || typeof t == "string" ? t : void 0;
414
415
  }
415
416
  function kr(t, e, n, r) {
416
- return t != null && t[de] === pe ? t : Array.isArray(t) ? ((r = (n = 0 | t[d]) | 32 & r | 2 & r) !== n && V(t, r), new e(t)) : (n ? 2 & r ? ((t = e[ws]) || (Xe((t = new e()).v), t = e[ws] = t), e = t) : e = new e() : e = void 0, e);
417
+ return t != null && t[de] === pe ? t : Array.isArray(t) ? ((r = (n = 0 | t[d]) | 32 & r | 2 & r) !== n && V(t, r), new e(t)) : (n ? 2 & r ? ((t = e[vs]) || (Xe((t = new e()).v), t = e[vs] = t), e = t) : e = new e() : e = void 0, e);
417
418
  }
418
- function $a(t, e, n) {
419
+ function Ya(t, e, n) {
419
420
  if (e) t: {
420
421
  if (!$e(e = t)) throw $n("int64");
421
422
  switch (typeof e) {
422
423
  case "string":
423
- e = Ci(e);
424
+ e = Ni(e);
424
425
  break t;
425
426
  case "bigint":
426
427
  e = rt(Ye(64, e));
427
428
  break t;
428
429
  default:
429
- e = Ri(e);
430
+ e = Ci(e);
430
431
  }
431
432
  }
432
433
  else e = cn(t);
433
- return (t = e) == null ? n ? qa : void 0 : t;
434
+ return (t = e) == null ? n ? za : void 0 : t;
434
435
  }
435
- const Ja = {};
436
- let Za = function() {
436
+ const $a = {};
437
+ let Ja = function() {
437
438
  try {
438
439
  return gn(new class extends Map {
439
440
  constructor() {
@@ -479,20 +480,20 @@ class Gn {
479
480
  return this.entries();
480
481
  }
481
482
  }
482
- const Qa = Za ? (Object.setPrototypeOf(Gn.prototype, Map.prototype), Object.defineProperties(Gn.prototype, { size: { value: 0, configurable: !0, enumerable: !0, writable: !0 } }), Gn) : class extends Map {
483
+ const Za = Ja ? (Object.setPrototypeOf(Gn.prototype, Map.prototype), Object.defineProperties(Gn.prototype, { size: { value: 0, configurable: !0, enumerable: !0, writable: !0 } }), Gn) : class extends Map {
483
484
  constructor() {
484
485
  super();
485
486
  }
486
487
  };
487
- function Fs(t) {
488
+ function Ls(t) {
488
489
  return t;
489
490
  }
490
491
  function Vn(t) {
491
492
  if (2 & t.J) throw Error("Cannot mutate an immutable Map");
492
493
  }
493
- var Pt = class extends Qa {
494
- constructor(t, e, n = Fs, r = Fs) {
495
- super(), this.J = 0 | t[d], this.K = e, this.S = n, this.fa = this.K ? t2 : r;
494
+ var Pt = class extends Za {
495
+ constructor(t, e, n = Ls, r = Ls) {
496
+ super(), this.J = 0 | t[d], this.K = e, this.S = n, this.fa = this.K ? Qa : r;
496
497
  for (let s = 0; s < t.length; s++) {
497
498
  const i = t[s], o = n(i[0], !1, !0);
498
499
  let a = i[1];
@@ -511,14 +512,14 @@ var Pt = class extends Qa {
511
512
  entries() {
512
513
  if (this.K) {
513
514
  var t = super.keys();
514
- t = new Es(t, e2, this);
515
+ t = new As(t, t2, this);
515
516
  } else t = super.entries();
516
517
  return t;
517
518
  }
518
519
  values() {
519
520
  if (this.K) {
520
521
  var t = super.keys();
521
- t = new Es(t, Pt.prototype.get, this);
522
+ t = new As(t, Pt.prototype.get, this);
522
523
  } else t = super.values();
523
524
  return t;
524
525
  }
@@ -549,15 +550,15 @@ var Pt = class extends Qa {
549
550
  return this.entries();
550
551
  }
551
552
  };
552
- function t2(t, e, n, r, s, i) {
553
+ function Qa(t, e, n, r, s, i) {
553
554
  return t = kr(t, r, n, i), s && (t = Tr(t)), t;
554
555
  }
555
- function e2(t) {
556
+ function t2(t) {
556
557
  return [t, this.get(t)];
557
558
  }
558
- let n2;
559
- function Ms() {
560
- return n2 || (n2 = new Pt(Xe([]), void 0, void 0, void 0, Ja));
559
+ let e2;
560
+ function Fs() {
561
+ return e2 || (e2 = new Pt(Xe([]), void 0, void 0, void 0, $a));
561
562
  }
562
563
  function wn(t) {
563
564
  return nt ? t[nt] : void 0;
@@ -568,41 +569,41 @@ function hn(t, e) {
568
569
  Pt.prototype.toJSON = void 0;
569
570
  var tr = class {
570
571
  };
571
- const r2 = { Ka: !0 };
572
- function s2(t, e) {
573
- e < 100 || fe(Na, 1);
572
+ const n2 = { Ka: !0 };
573
+ function r2(t, e) {
574
+ e < 100 || fe(xa, 1);
574
575
  }
575
576
  function bn(t, e, n, r) {
576
577
  const s = r !== void 0;
577
578
  r = !!r;
578
579
  var i, o = nt;
579
- !s && Ee && o && (i = t[o]) && hn(i, s2), o = [];
580
+ !s && Ee && o && (i = t[o]) && hn(i, r2), o = [];
580
581
  var a = t.length;
581
582
  let c;
582
583
  i = 4294967295;
583
584
  let u = !1;
584
585
  const h = !!(64 & e), f = h ? 128 & e ? 0 : -1 : void 0;
585
586
  1 & e || (c = a && t[a - 1], c != null && typeof c == "object" && c.constructor === Object ? i = --a : c = void 0, !h || 128 & e || s || (u = !0, i = i - f + f)), e = void 0;
586
- for (var y = 0; y < a; y++) {
587
- let v = t[y];
588
- if (v != null && (v = n(v, r)) != null) if (h && y >= i) {
589
- const x = y - f;
590
- (e ?? (e = {}))[x] = v;
591
- } else o[y] = v;
587
+ for (var _ = 0; _ < a; _++) {
588
+ let v = t[_];
589
+ if (v != null && (v = n(v, r)) != null) if (h && _ >= i) {
590
+ const I = _ - f;
591
+ (e ?? (e = {}))[I] = v;
592
+ } else o[_] = v;
592
593
  }
593
594
  if (c) for (let v in c) {
594
595
  if ((a = c[v]) == null || (a = n(a, r)) == null) continue;
595
- let x;
596
- y = +v, h && !Number.isNaN(y) && (x = y + f) < i ? o[x] = a : (e ?? (e = {}))[v] = a;
596
+ let I;
597
+ _ = +v, h && !Number.isNaN(_) && (I = _ + f) < i ? o[I] = a : (e ?? (e = {}))[v] = a;
597
598
  }
598
599
  return e && (u ? o.push(e) : o[i] = e), s && nt && (t = wn(t)) && t instanceof tr && (o[nt] = function(v) {
599
- const x = new tr();
600
+ const I = new tr();
600
601
  return hn(v, (Dn, se, Ne) => {
601
- x[se] = mt(Ne);
602
- }), x.da = v.da, x;
602
+ I[se] = mt(Ne);
603
+ }), I.da = v.da, I;
603
604
  }(t)), o;
604
605
  }
605
- function i2(t) {
606
+ function s2(t) {
606
607
  return t[0] = ze(t[0]), t[1] = ze(t[1]), t;
607
608
  }
608
609
  function ze(t) {
@@ -618,16 +619,16 @@ function ze(t) {
618
619
  var e = 0 | t[d];
619
620
  return t.length === 0 && 1 & e ? void 0 : bn(t, e, ze);
620
621
  }
621
- if (t != null && t[de] === pe) return Di(t);
622
+ if (t != null && t[de] === pe) return Bi(t);
622
623
  if (t instanceof Et) {
623
624
  if ((e = t.g) == null) t = "";
624
625
  else if (typeof e == "string") t = e;
625
626
  else {
626
- if (Ai) {
627
+ if (bi) {
627
628
  for (var n = "", r = 0, s = e.length - 10240; r < s; ) n += String.fromCharCode.apply(null, e.subarray(r, r += 10240));
628
629
  n += String.fromCharCode.apply(null, r ? e.subarray(r) : e), e = btoa(n);
629
630
  } else {
630
- n === void 0 && (n = 0), bi(), n = wi[n], r = Array(Math.floor(e.length / 3)), s = n[64] || "";
631
+ n === void 0 && (n = 0), wi(), n = vi[n], r = Array(Math.floor(e.length / 3)), s = n[64] || "";
631
632
  let u = 0, h = 0;
632
633
  for (; u < e.length - 2; u += 3) {
633
634
  var i = e[u], o = e[u + 1], a = e[u + 2], c = n[i >> 2];
@@ -645,27 +646,27 @@ function ze(t) {
645
646
  }
646
647
  return t;
647
648
  }
648
- return t instanceof Pt ? t = t.size !== 0 ? t.V(i2) : void 0 : void 0;
649
+ return t instanceof Pt ? t = t.size !== 0 ? t.V(s2) : void 0 : void 0;
649
650
  }
650
651
  return t;
651
652
  }
652
- function Di(t) {
653
+ function Bi(t) {
653
654
  return bn(t = t.v, 0 | t[d], ze);
654
655
  }
655
- let o2, a2;
656
+ let i2, o2;
656
657
  function qt(t, e) {
657
- return Ui(t, e[0], e[1]);
658
+ return Di(t, e[0], e[1]);
658
659
  }
659
- function Ui(t, e, n, r = 0) {
660
+ function Di(t, e, n, r = 0) {
660
661
  if (t == null) {
661
662
  var s = 32;
662
663
  n ? (t = [n], s |= 128) : t = [], e && (s = -16760833 & s | (1023 & e) << 14);
663
664
  } else {
664
665
  if (!Array.isArray(t)) throw Error("narr");
665
- if (s = 0 | t[d], ms && 1 & s) throw Error("rfarr");
666
+ if (s = 0 | t[d], gs && 1 & s) throw Error("rfarr");
666
667
  if (2048 & s && !(2 & s) && function() {
667
- if (ms) throw Error("carr");
668
- fe(Ca, 5);
668
+ if (gs) throw Error("carr");
669
+ fe(Na, 5);
669
670
  }(), 256 & s) throw Error("farr");
670
671
  if (64 & s) return (s | r) !== s && V(t, s | r), t;
671
672
  if (n && (s |= 128, n !== t[0])) throw Error("mid");
@@ -690,37 +691,37 @@ function Ui(t, e, n, r = 0) {
690
691
  }
691
692
  return V(t, 64 | s | r), t;
692
693
  }
693
- function c2(t, e) {
694
+ function a2(t, e) {
694
695
  if (typeof t != "object") return t;
695
696
  if (Array.isArray(t)) {
696
697
  var n = 0 | t[d];
697
- return t.length === 0 && 1 & n ? void 0 : Ps(t, n, e);
698
+ return t.length === 0 && 1 & n ? void 0 : Ms(t, n, e);
698
699
  }
699
- if (t != null && t[de] === pe) return Os(t);
700
+ if (t != null && t[de] === pe) return Ps(t);
700
701
  if (t instanceof Pt) {
701
702
  if (2 & (e = t.J)) return t;
702
703
  if (!t.size) return;
703
704
  if (n = Xe(t.V()), t.K) for (t = 0; t < n.length; t++) {
704
705
  const r = n[t];
705
706
  let s = r[1];
706
- s = s == null || typeof s != "object" ? void 0 : s != null && s[de] === pe ? Os(s) : Array.isArray(s) ? Ps(s, 0 | s[d], !!(32 & e)) : void 0, r[1] = s;
707
+ s = s == null || typeof s != "object" ? void 0 : s != null && s[de] === pe ? Ps(s) : Array.isArray(s) ? Ms(s, 0 | s[d], !!(32 & e)) : void 0, r[1] = s;
707
708
  }
708
709
  return n;
709
710
  }
710
711
  return t instanceof Et ? t : void 0;
711
712
  }
712
- function Ps(t, e, n) {
713
+ function Ms(t, e, n) {
713
714
  return 2 & e || (!n || 4096 & e || 16 & e ? t = Te(t, e, !1, n && !(16 & e)) : (qe(t, 34), 4 & e && Object.freeze(t))), t;
714
715
  }
715
716
  function Sr(t, e, n) {
716
717
  return t = new t.constructor(e), n && (t.h = Qt), t.m = Qt, t;
717
718
  }
718
- function Os(t) {
719
+ function Ps(t) {
719
720
  const e = t.v, n = 0 | e[d];
720
721
  return st(t, n) ? t : Lr(t, e, n) ? Sr(t, e) : Te(e, n);
721
722
  }
722
723
  function Te(t, e, n, r) {
723
- return r ?? (r = !!(34 & e)), t = bn(t, e, c2, r), r = 32, n && (r |= 2), V(t, e = 16769217 & e | r), t;
724
+ return r ?? (r = !!(34 & e)), t = bn(t, e, a2, r), r = 32, n && (r |= 2), V(t, e = 16769217 & e | r), t;
724
725
  }
725
726
  function Tr(t) {
726
727
  const e = t.v, n = 0 | e[d];
@@ -740,7 +741,7 @@ function ne(t, e) {
740
741
  function Lr(t, e, n) {
741
742
  return !!(2 & n) || !(!(32 & n) || 4096 & n) && (V(e, 2 | n), t.h = Qt, !0);
742
743
  }
743
- const h2 = rt(0), Ct = {};
744
+ const c2 = rt(0), Ct = {};
744
745
  function L(t, e, n, r, s) {
745
746
  if ((e = Ot(t.v, e, n, s)) !== null || r && t.m !== Qt) return e;
746
747
  }
@@ -775,7 +776,7 @@ function j(t, e, n, r, s) {
775
776
  return i <= o ? (t[i] = r, e) : (r !== void 0 && (n >= (o = (e ?? (e = 0 | t[d])) >> 14 & 1023 || 536870912) ? r != null && (t[o + (s ? 0 : -1)] = { [n]: r }) : t[i] = r), e);
776
777
  }
777
778
  function Kt() {
778
- return Ra === void 0 ? 2 : 4;
779
+ return Ca === void 0 ? 2 : 4;
779
780
  }
780
781
  function zt(t, e, n, r, s) {
781
782
  let i = t.v, o = 0 | i[d];
@@ -786,14 +787,14 @@ function zt(t, e, n, r, s) {
786
787
  4 & c && (t = mt(t), a = 0, c = Yt(c, o), o = j(i, o, e, t));
787
788
  let h = 0, f = 0;
788
789
  for (; h < t.length; h++) {
789
- const y = n(t[h]);
790
- y != null && (t[f++] = y);
790
+ const _ = n(t[h]);
791
+ _ != null && (t[f++] = _);
791
792
  }
792
793
  f < h && (t.length = f), n = -513 & (4 | c), c = n &= -1025, c &= -4097;
793
794
  }
794
- return c !== a && (V(t, c), 2 & c && Object.freeze(t)), ji(t, c, i, o, e, r, u, s);
795
+ return c !== a && (V(t, c), 2 & c && Object.freeze(t)), Ui(t, c, i, o, e, r, u, s);
795
796
  }
796
- function ji(t, e, n, r, s, i, o, a) {
797
+ function Ui(t, e, n, r, s, i, o, a) {
797
798
  let c = e;
798
799
  return i === 1 || i === 4 && (2 & e || !(16 & e) && 32 & r) ? Xt(e) || ((e |= !t.length || o && !(4096 & e) || 32 & r && !(4096 & e || 16 & e) ? 2 : 256) !== c && V(t, e), Object.freeze(t)) : (i === 2 && Xt(e) && (t = mt(t), c = 0, e = Yt(e, r), r = j(n, r, s, t)), Xt(e) || (a || (e |= 16), e !== c && V(t, e))), 2 & e || !(4096 & e || 16 & e) || ne(n, r), t;
799
800
  }
@@ -806,10 +807,10 @@ function Mr(t, e) {
806
807
  function Xt(t) {
807
808
  return !!(2 & t) && !!(4 & t) || !!(256 & t);
808
809
  }
809
- function Gi(t) {
810
- return yr(t, !0);
810
+ function ji(t) {
811
+ return _r(t, !0);
811
812
  }
812
- function Vi(t) {
813
+ function Gi(t) {
813
814
  t = mt(t);
814
815
  for (let e = 0; e < t.length; e++) {
815
816
  const n = t[e] = mt(t[e]);
@@ -827,7 +828,7 @@ function Me(t, e, n) {
827
828
  return (2 & o || Xt(o) || 16 & o) && (o === i || Xt(o) || V(s, o), s = mt(s), i = 0, o = Yt(o, e), j(t, e, n, s, r)), o &= -13, o !== i && V(s, o), s;
828
829
  }
829
830
  function Hn(t, e) {
830
- var n = Co;
831
+ var n = No;
831
832
  return Or(Pr(t = t.v), t, void 0, n) === e ? e : -1;
832
833
  }
833
834
  function Pr(t) {
@@ -836,7 +837,7 @@ function Pr(t) {
836
837
  const e = /* @__PURE__ */ new Map();
837
838
  return Object.defineProperty(t, Ce, { value: e }), e;
838
839
  }
839
- function Hi(t, e, n, r, s) {
840
+ function Vi(t, e, n, r, s) {
840
841
  const i = Pr(t), o = Or(i, t, e, n, s);
841
842
  return o !== r && (o && (e = j(t, e, o, void 0, s)), i.set(n, r)), e;
842
843
  }
@@ -850,7 +851,7 @@ function Or(t, e, n, r, s) {
850
851
  }
851
852
  return t.set(r, i), i;
852
853
  }
853
- function xr(t, e, n) {
854
+ function Ir(t, e, n) {
854
855
  let r = 0 | t[d];
855
856
  const s = ke(r), i = Ot(t, n, s);
856
857
  let o;
@@ -864,7 +865,7 @@ function xr(t, e, n) {
864
865
  }
865
866
  return o = qt(o, e), o !== i && j(t, r, n, o, s), o;
866
867
  }
867
- function Wi(t, e, n, r, s) {
868
+ function Hi(t, e, n, r, s) {
868
869
  let i = !1;
869
870
  if ((r = Ot(t, r, s, (o) => {
870
871
  const a = kr(o, n, !1, e);
@@ -873,53 +874,53 @@ function Wi(t, e, n, r, s) {
873
874
  }
874
875
  function A(t, e, n, r) {
875
876
  let s = t.v, i = 0 | s[d];
876
- if ((e = Wi(s, i, e, n, r)) == null) return e;
877
+ if ((e = Hi(s, i, e, n, r)) == null) return e;
877
878
  if (i = 0 | s[d], !st(t, i)) {
878
879
  const o = Tr(e);
879
880
  o !== e && (Le(t) && (s = t.v, i = 0 | s[d]), i = j(s, i, n, e = o, r), ne(s, i));
880
881
  }
881
882
  return e;
882
883
  }
883
- function Ki(t, e, n, r, s, i, o, a) {
884
+ function Wi(t, e, n, r, s, i, o, a) {
884
885
  var c = st(t, n);
885
886
  i = c ? 1 : i, o = !!o || i === 3, c = a && !c, (i === 2 || c) && Le(t) && (n = 0 | (e = t.v)[d]);
886
887
  var u = (t = Fr(e, s)) === ee ? 7 : 0 | t[d], h = Mr(u, n);
887
888
  if (a = !(4 & h)) {
888
- var f = t, y = n;
889
+ var f = t, _ = n;
889
890
  const v = !!(2 & h);
890
- v && (y |= 2);
891
- let x = !v, Dn = !0, se = 0, Ne = 0;
891
+ v && (_ |= 2);
892
+ let I = !v, Dn = !0, se = 0, Ne = 0;
892
893
  for (; se < f.length; se++) {
893
- const Un = kr(f[se], r, !1, y);
894
+ const Un = kr(f[se], r, !1, _);
894
895
  if (Un instanceof r) {
895
896
  if (!v) {
896
897
  const us = st(Un);
897
- x && (x = !us), Dn && (Dn = us);
898
+ I && (I = !us), Dn && (Dn = us);
898
899
  }
899
900
  f[Ne++] = Un;
900
901
  }
901
902
  }
902
- Ne < se && (f.length = Ne), h |= 4, h = Dn ? -4097 & h : 4096 | h, h = x ? 8 | h : -9 & h;
903
+ Ne < se && (f.length = Ne), h |= 4, h = Dn ? -4097 & h : 4096 | h, h = I ? 8 | h : -9 & h;
903
904
  }
904
905
  if (h !== u && (V(t, h), 2 & h && Object.freeze(t)), c && !(8 & h || !t.length && (i === 1 || i === 4 && (2 & h || !(16 & h) && 32 & n)))) {
905
906
  for (Xt(h) && (t = mt(t), h = Yt(h, n), n = j(e, n, s, t)), r = t, c = h, u = 0; u < r.length; u++) (f = r[u]) !== (h = Tr(f)) && (r[u] = h);
906
907
  c |= 8, V(t, h = c = r.length ? 4096 | c : -4097 & c);
907
908
  }
908
- return ji(t, h, e, n, s, i, a, o);
909
+ return Ui(t, h, e, n, s, i, a, o);
909
910
  }
910
- function xt(t, e, n) {
911
+ function It(t, e, n) {
911
912
  const r = t.v;
912
- return Ki(t, r, 0 | r[d], e, n, Kt(), !1, !0);
913
+ return Wi(t, r, 0 | r[d], e, n, Kt(), !1, !0);
913
914
  }
914
- function zi(t) {
915
+ function Ki(t) {
915
916
  return t == null && (t = void 0), t;
916
917
  }
917
- function _(t, e, n, r, s) {
918
- return k(t, n, r = zi(r), s), r && !st(r) && ne(t.v), t;
918
+ function y(t, e, n, r, s) {
919
+ return k(t, n, r = Ki(r), s), r && !st(r) && ne(t.v), t;
919
920
  }
920
921
  function Ue(t, e, n, r) {
921
922
  t: {
922
- var s = r = zi(r);
923
+ var s = r = Ki(r);
923
924
  Fe(t);
924
925
  const i = t.v;
925
926
  let o = 0 | i[d];
@@ -927,7 +928,7 @@ function Ue(t, e, n, r) {
927
928
  const a = Pr(i);
928
929
  if (Or(a, i, o, n) !== e) break t;
929
930
  a.set(n, 0);
930
- } else o = Hi(i, o, n, e);
931
+ } else o = Vi(i, o, n, e);
931
932
  j(i, o, e, s);
932
933
  }
933
934
  r && !st(r) && ne(t.v);
@@ -935,20 +936,20 @@ function Ue(t, e, n, r) {
935
936
  function Yt(t, e) {
936
937
  return -273 & (2 & e ? 2 | t : -3 & t);
937
938
  }
938
- function Ir(t, e, n, r) {
939
+ function xr(t, e, n, r) {
939
940
  var s = r;
940
- Fe(t), t = Ki(t, r = t.v, 0 | r[d], n, e, 2, !0), s = s ?? new n(), t.push(s), e = n = t === ee ? 7 : 0 | t[d], (s = st(s)) ? (n &= -9, t.length === 1 && (n &= -4097)) : n |= 4096, n !== e && V(t, n), s || ne(r);
941
+ Fe(t), t = Wi(t, r = t.v, 0 | r[d], n, e, 2, !0), s = s ?? new n(), t.push(s), e = n = t === ee ? 7 : 0 | t[d], (s = st(s)) ? (n &= -9, t.length === 1 && (n &= -4097)) : n |= 4096, n !== e && V(t, n), s || ne(r);
941
942
  }
942
943
  function dt(t, e, n) {
943
944
  return Se(L(t, e, void 0, n));
944
945
  }
945
- function qi(t) {
946
- return (gr ? L(t, 2, void 0, void 0, cn) : cn(L(t, 2))) ?? h2;
946
+ function zi(t) {
947
+ return (gr ? L(t, 2, void 0, void 0, cn) : cn(L(t, 2))) ?? c2;
947
948
  }
948
949
  function C(t, e) {
949
950
  return L(t, e, void 0, void 0, At) ?? 0;
950
951
  }
951
- function It(t, e, n) {
952
+ function xt(t, e, n) {
952
953
  if (n != null) {
953
954
  if (typeof n != "number" || !vn(n)) throw $n("int32");
954
955
  n |= 0;
@@ -970,7 +971,7 @@ function un(t, e, n) {
970
971
  else {
971
972
  var r = t = n === ee ? 7 : 0 | n[d], s = Xt(t), i = s || Object.isFrozen(n);
972
973
  for (s || (t = 0), i || (n = mt(n), r = 0, t = Yt(t, a), i = !1), t |= 5, t |= (4 & t ? 512 & t ? 512 : 1024 & t ? 1024 : 0 : void 0) ?? (gr ? 1024 : 0), s = 0; s < n.length; s++) {
973
- const c = n[s], u = Bi(c);
974
+ const c = n[s], u = Ri(c);
974
975
  Object.is(c, u) || (i && (n = mt(n), r = 0, t = Yt(t, a), i = !1), n[s] = u);
975
976
  }
976
977
  t !== r && (i && (n = mt(n), t = Yt(t, a)), V(n, t)), j(o, a, e, n);
@@ -978,7 +979,7 @@ function un(t, e, n) {
978
979
  }
979
980
  }
980
981
  function An(t, e, n) {
981
- Fe(t), zt(t, e, q, 2, !0).push(Bi(n));
982
+ Fe(t), zt(t, e, q, 2, !0).push(Ri(n));
982
983
  }
983
984
  var ie = class {
984
985
  constructor(t, e, n) {
@@ -987,15 +988,15 @@ var ie = class {
987
988
  }
988
989
  };
989
990
  function Nr(t, e) {
990
- if (typeof t == "string") return new ie(Ei(t), e);
991
+ if (typeof t == "string") return new ie(Ai(t), e);
991
992
  if (Array.isArray(t)) return new ie(new Uint8Array(t), e);
992
993
  if (t.constructor === Uint8Array) return new ie(t, !1);
993
994
  if (t.constructor === ArrayBuffer) return t = new Uint8Array(t), new ie(t, !1);
994
- if (t.constructor === Et) return e = _r(t) || new Uint8Array(0), new ie(e, !0, t);
995
+ if (t.constructor === Et) return e = yr(t) || new Uint8Array(0), new ie(e, !0, t);
995
996
  if (t instanceof Uint8Array) return t = t.constructor === Uint8Array ? t : new Uint8Array(t.buffer, t.byteOffset, t.byteLength), new ie(t, !1);
996
997
  throw Error();
997
998
  }
998
- function _e(t, e) {
999
+ function ye(t, e) {
999
1000
  let n, r = 0, s = 0, i = 0;
1000
1001
  const o = t.h;
1001
1002
  let a = t.g;
@@ -1031,35 +1032,35 @@ function ln(t) {
1031
1032
  const i = e[n + 2];
1032
1033
  return e = e[n + 3], $t(t, t.g + 4), t = 2 * ((s = (r << 0 | s << 8 | i << 16 | e << 24) >>> 0) >> 31) + 1, r = s >>> 23 & 255, s &= 8388607, r == 255 ? s ? NaN : t * (1 / 0) : r == 0 ? 1401298464324817e-60 * t * s : t * Math.pow(2, r - 150) * (s + 8388608);
1033
1034
  }
1034
- function u2(t) {
1035
+ function h2(t) {
1035
1036
  return jt(t);
1036
1037
  }
1037
1038
  function $t(t, e) {
1038
1039
  if (t.g = e, e > t.l) throw Error();
1039
1040
  }
1040
- function Xi(t, e) {
1041
+ function qi(t, e) {
1041
1042
  if (e < 0) throw Error();
1042
1043
  const n = t.g;
1043
1044
  if ((e = n + e) > t.l) throw Error();
1044
1045
  return t.g = e, n;
1045
1046
  }
1046
- function Yi(t, e) {
1047
+ function Xi(t, e) {
1047
1048
  if (e == 0) return Zt();
1048
- var n = Xi(t, e);
1049
- return t.Y && t.j ? n = t.h.subarray(n, n + e) : (t = t.h, n = n === (e = n + e) ? new Uint8Array(0) : Ha ? t.slice(n, e) : new Uint8Array(t.subarray(n, e))), n.length == 0 ? Zt() : new Et(n, le);
1049
+ var n = qi(t, e);
1050
+ return t.Y && t.j ? n = t.h.subarray(n, n + e) : (t = t.h, n = n === (e = n + e) ? new Uint8Array(0) : Va ? t.slice(n, e) : new Uint8Array(t.subarray(n, e))), n.length == 0 ? Zt() : new Et(n, le);
1050
1051
  }
1051
- var xs = [];
1052
- function $i(t, e, n, r) {
1052
+ var Os = [];
1053
+ function Yi(t, e, n, r) {
1053
1054
  if (fn.length) {
1054
1055
  const s = fn.pop();
1055
1056
  return s.o(r), s.g.init(t, e, n, r), s;
1056
1057
  }
1057
- return new l2(t, e, n, r);
1058
+ return new u2(t, e, n, r);
1058
1059
  }
1059
- function Ji(t) {
1060
+ function $i(t) {
1060
1061
  t.g.clear(), t.l = -1, t.h = -1, fn.length < 100 && fn.push(t);
1061
1062
  }
1062
- function Zi(t) {
1063
+ function Ji(t) {
1063
1064
  var e = t.g;
1064
1065
  if (e.g == e.l) return !1;
1065
1066
  t.m = t.g.g;
@@ -1087,7 +1088,7 @@ function on(t) {
1087
1088
  break;
1088
1089
  case 3:
1089
1090
  for (e = t.l; ; ) {
1090
- if (!Zi(t)) throw Error();
1091
+ if (!Ji(t)) throw Error();
1091
1092
  if (t.h == 4) {
1092
1093
  if (t.l != e) throw Error();
1093
1094
  break;
@@ -1107,8 +1108,8 @@ function Ze(t, e, n) {
1107
1108
  return t.g.g = s, t.g.l = r, e;
1108
1109
  }
1109
1110
  function Rr(t) {
1110
- var e = Nt(t.g), n = Xi(t = t.g, e);
1111
- if (t = t.h, Aa) {
1111
+ var e = Nt(t.g), n = qi(t = t.g, e);
1112
+ if (t = t.h, ba) {
1112
1113
  var r, s = t;
1113
1114
  (r = jn) || (r = jn = new TextDecoder("utf-8", { fatal: !0 })), e = n + e, s = n === 0 && e === s.length ? s : s.subarray(n, e);
1114
1115
  try {
@@ -1132,24 +1133,24 @@ function Rr(t) {
1132
1133
  let a, c = null;
1133
1134
  for (; i < e; ) {
1134
1135
  var o = t[i++];
1135
- o < 128 ? n.push(o) : o < 224 ? i >= e ? Ht() : (a = t[i++], o < 194 || (192 & a) != 128 ? (i--, Ht()) : n.push((31 & o) << 6 | 63 & a)) : o < 240 ? i >= e - 1 ? Ht() : (a = t[i++], (192 & a) != 128 || o === 224 && a < 160 || o === 237 && a >= 160 || (192 & (r = t[i++])) != 128 ? (i--, Ht()) : n.push((15 & o) << 12 | (63 & a) << 6 | 63 & r)) : o <= 244 ? i >= e - 2 ? Ht() : (a = t[i++], (192 & a) != 128 || a - 144 + (o << 28) >> 30 || (192 & (r = t[i++])) != 128 || (192 & (s = t[i++])) != 128 ? (i--, Ht()) : (o = (7 & o) << 18 | (63 & a) << 12 | (63 & r) << 6 | 63 & s, o -= 65536, n.push(55296 + (o >> 10 & 1023), 56320 + (1023 & o)))) : Ht(), n.length >= 8192 && (c = gs(c, n), n.length = 0);
1136
+ o < 128 ? n.push(o) : o < 224 ? i >= e ? Ht() : (a = t[i++], o < 194 || (192 & a) != 128 ? (i--, Ht()) : n.push((31 & o) << 6 | 63 & a)) : o < 240 ? i >= e - 1 ? Ht() : (a = t[i++], (192 & a) != 128 || o === 224 && a < 160 || o === 237 && a >= 160 || (192 & (r = t[i++])) != 128 ? (i--, Ht()) : n.push((15 & o) << 12 | (63 & a) << 6 | 63 & r)) : o <= 244 ? i >= e - 2 ? Ht() : (a = t[i++], (192 & a) != 128 || a - 144 + (o << 28) >> 30 || (192 & (r = t[i++])) != 128 || (192 & (s = t[i++])) != 128 ? (i--, Ht()) : (o = (7 & o) << 18 | (63 & a) << 12 | (63 & r) << 6 | 63 & s, o -= 65536, n.push(55296 + (o >> 10 & 1023), 56320 + (1023 & o)))) : Ht(), n.length >= 8192 && (c = ps(c, n), n.length = 0);
1136
1137
  }
1137
- i = gs(c, n);
1138
+ i = ps(c, n);
1138
1139
  }
1139
1140
  return i;
1140
1141
  }
1141
- function Qi(t) {
1142
+ function Zi(t) {
1142
1143
  const e = Nt(t.g);
1143
- return Yi(t.g, e);
1144
+ return Xi(t.g, e);
1144
1145
  }
1145
1146
  function En(t, e, n) {
1146
1147
  var r = Nt(t.g);
1147
1148
  for (r = t.g.g + r; t.g.g < r; ) n.push(e(t.g));
1148
1149
  }
1149
- var l2 = class {
1150
+ var u2 = class {
1150
1151
  constructor(t, e, n, r) {
1151
- if (xs.length) {
1152
- const s = xs.pop();
1152
+ if (Os.length) {
1153
+ const s = Os.pop();
1153
1154
  s.init(t, e, n, r), t = s;
1154
1155
  } else t = new class {
1155
1156
  constructor(s, i, o, a) {
@@ -1169,23 +1170,23 @@ var l2 = class {
1169
1170
  }
1170
1171
  }, fn = [];
1171
1172
  function Is(t) {
1172
- return t ? /^\d+$/.test(t) ? (yn(t), new er(P, B)) : null : f2 || (f2 = new er(0, 0));
1173
+ return t ? /^\d+$/.test(t) ? (_n(t), new er(P, B)) : null : l2 || (l2 = new er(0, 0));
1173
1174
  }
1174
1175
  var er = class {
1175
1176
  constructor(t, e) {
1176
1177
  this.h = t >>> 0, this.g = e >>> 0;
1177
1178
  }
1178
1179
  };
1179
- let f2;
1180
- function Ns(t) {
1181
- return t ? /^-?\d+$/.test(t) ? (yn(t), new nr(P, B)) : null : d2 || (d2 = new nr(0, 0));
1180
+ let l2;
1181
+ function xs(t) {
1182
+ return t ? /^-?\d+$/.test(t) ? (_n(t), new nr(P, B)) : null : f2 || (f2 = new nr(0, 0));
1182
1183
  }
1183
1184
  var nr = class {
1184
1185
  constructor(t, e) {
1185
1186
  this.h = t >>> 0, this.g = e >>> 0;
1186
1187
  }
1187
1188
  };
1188
- let d2;
1189
+ let f2;
1189
1190
  function ce(t, e, n) {
1190
1191
  for (; n > 0 || e > 127; ) t.g.push(127 & e | 128), e = (e >>> 7 | n << 25) >>> 0, n >>>= 7;
1191
1192
  t.g.push(e);
@@ -1205,14 +1206,14 @@ function Br(t) {
1205
1206
  var e = P;
1206
1207
  t.g.push(e >>> 0 & 255), t.g.push(e >>> 8 & 255), t.g.push(e >>> 16 & 255), t.g.push(e >>> 24 & 255);
1207
1208
  }
1208
- function ye(t, e) {
1209
+ function _e(t, e) {
1209
1210
  e.length !== 0 && (t.l.push(e), t.h += e.length);
1210
1211
  }
1211
1212
  function pt(t, e, n) {
1212
1213
  Pe(t.g, 8 * e + n);
1213
1214
  }
1214
1215
  function Dr(t, e) {
1215
- return pt(t, e, 2), e = t.g.end(), ye(t, e), e.push(t.h), e;
1216
+ return pt(t, e, 2), e = t.g.end(), _e(t, e), e.push(t.h), e;
1216
1217
  }
1217
1218
  function Ur(t, e) {
1218
1219
  var n = e.pop();
@@ -1220,7 +1221,7 @@ function Ur(t, e) {
1220
1221
  e.push(n), t.h++;
1221
1222
  }
1222
1223
  function Sn(t, e, n) {
1223
- pt(t, e, 2), Pe(t.g, n.length), ye(t, t.g.end()), ye(t, n);
1224
+ pt(t, e, 2), Pe(t.g, n.length), _e(t, t.g.end()), _e(t, n);
1224
1225
  }
1225
1226
  function dn(t, e, n, r) {
1226
1227
  n != null && (e = Dr(t, e), r(n, t), Ur(t, e));
@@ -1233,25 +1234,25 @@ function St() {
1233
1234
  };
1234
1235
  return Object.setPrototypeOf(t, t.prototype), t;
1235
1236
  }
1236
- var jr = St(), to = St(), Gr = St(), Vr = St(), eo = St(), no = St(), p2 = St(), Tn = St(), ro = St(), so = St();
1237
+ var jr = St(), Qi = St(), Gr = St(), Vr = St(), to = St(), eo = St(), d2 = St(), Tn = St(), no = St(), ro = St();
1237
1238
  function Tt(t, e, n) {
1238
1239
  var r = t.v;
1239
1240
  nt && nt in r && (r = r[nt]) && delete r[e.g], e.h ? e.j(t, e.h, e.g, n, e.l) : e.j(t, e.g, n, e.l);
1240
1241
  }
1241
1242
  var p = class {
1242
1243
  constructor(t, e) {
1243
- this.v = Ui(t, e, void 0, 2048);
1244
+ this.v = Di(t, e, void 0, 2048);
1244
1245
  }
1245
1246
  toJSON() {
1246
- return Di(this);
1247
+ return Bi(this);
1247
1248
  }
1248
1249
  j() {
1249
1250
  var s;
1250
- var t = $2, e = this.v, n = t.g, r = nt;
1251
- if (Ee && r && ((s = e[r]) == null ? void 0 : s[n]) != null && fe(Ia, 3), e = t.g, bs && nt && bs === void 0 && (r = (n = this.v)[nt]) && (r = r.da)) try {
1252
- r(n, e, r2);
1251
+ var t = Y2, e = this.v, n = t.g, r = nt;
1252
+ if (Ee && r && ((s = e[r]) == null ? void 0 : s[n]) != null && fe(Ia, 3), e = t.g, ws && nt && ws === void 0 && (r = (n = this.v)[nt]) && (r = r.da)) try {
1253
+ r(n, e, n2);
1253
1254
  } catch (i) {
1254
- vi(i);
1255
+ _i(i);
1255
1256
  }
1256
1257
  return t.h ? t.m(this, t.h, t.g, t.l) : t.m(this, t.g, t.defaultValue, t.l);
1257
1258
  }
@@ -1271,25 +1272,25 @@ var Oe = class {
1271
1272
  function Ln(t, e) {
1272
1273
  return new Oe(t, e, jr);
1273
1274
  }
1274
- function io(t, e, n, r, s) {
1275
- dn(t, n, ho(e, r), s);
1275
+ function so(t, e, n, r, s) {
1276
+ dn(t, n, co(e, r), s);
1276
1277
  }
1277
- const g2 = Ln(function(t, e, n, r, s) {
1278
- return t.h === 2 && (Ze(t, xr(e, r, n), s), !0);
1279
- }, io), m2 = Ln(function(t, e, n, r, s) {
1280
- return t.h === 2 && (Ze(t, xr(e, r, n), s), !0);
1281
- }, io);
1282
- var Fn = Symbol(), Mn = Symbol(), rr = Symbol(), Cs = Symbol(), Rs = Symbol();
1283
- let oo, ao;
1278
+ const p2 = Ln(function(t, e, n, r, s) {
1279
+ return t.h === 2 && (Ze(t, Ir(e, r, n), s), !0);
1280
+ }, so), g2 = Ln(function(t, e, n, r, s) {
1281
+ return t.h === 2 && (Ze(t, Ir(e, r, n), s), !0);
1282
+ }, so);
1283
+ var Fn = Symbol(), Mn = Symbol(), rr = Symbol(), Ns = Symbol(), Cs = Symbol();
1284
+ let io, oo;
1284
1285
  function re(t, e, n, r) {
1285
1286
  var s = r[t];
1286
1287
  if (s) return s;
1287
1288
  (s = {}).qa = r, s.T = function(f) {
1288
1289
  switch (typeof f) {
1289
1290
  case "boolean":
1290
- return o2 || (o2 = [0, void 0, !0]);
1291
+ return i2 || (i2 = [0, void 0, !0]);
1291
1292
  case "number":
1292
- return f > 0 ? void 0 : f === 0 ? a2 || (a2 = [0, void 0]) : [-f, void 0];
1293
+ return f > 0 ? void 0 : f === 0 ? o2 || (o2 = [0, void 0]) : [-f, void 0];
1293
1294
  case "string":
1294
1295
  return [0, f];
1295
1296
  case "object":
@@ -1298,7 +1299,7 @@ function re(t, e, n, r) {
1298
1299
  }(r[0]);
1299
1300
  var i = r[1];
1300
1301
  let o = 1;
1301
- i && i.constructor === Object && (s.ba = i, typeof (i = r[++o]) == "function" && (s.ma = !0, oo ?? (oo = i), ao ?? (ao = r[o + 1]), i = r[o += 2]));
1302
+ i && i.constructor === Object && (s.ba = i, typeof (i = r[++o]) == "function" && (s.ma = !0, io ?? (io = i), oo ?? (oo = r[o + 1]), i = r[o += 2]));
1302
1303
  const a = {};
1303
1304
  for (; i && Array.isArray(i) && i.length && typeof i[0] == "number" && i[0] > 0; ) {
1304
1305
  for (var c = 0; c < i.length; c++) a[i[c]] = i;
@@ -1308,22 +1309,22 @@ function re(t, e, n, r) {
1308
1309
  let f;
1309
1310
  typeof i == "number" && (c += i, i = r[++o]);
1310
1311
  var u = void 0;
1311
- if (i instanceof Oe ? f = i : (f = g2, o--), f == null ? void 0 : f.l) {
1312
+ if (i instanceof Oe ? f = i : (f = p2, o--), f == null ? void 0 : f.l) {
1312
1313
  i = r[++o], u = r;
1313
1314
  var h = o;
1314
1315
  typeof i == "function" && (i = i(), u[h] = i), u = i;
1315
1316
  }
1316
1317
  for (h = c + 1, typeof (i = r[++o]) == "number" && i < 0 && (h -= i, i = r[++o]); c < h; c++) {
1317
- const y = a[c];
1318
- u ? n(s, c, f, u, y) : e(s, c, f, y);
1318
+ const _ = a[c];
1319
+ u ? n(s, c, f, u, _) : e(s, c, f, _);
1319
1320
  }
1320
1321
  }
1321
1322
  return r[t] = s;
1322
1323
  }
1323
- function co(t) {
1324
- return Array.isArray(t) ? t[0] instanceof Oe ? t : [m2, t] : [t, void 0];
1324
+ function ao(t) {
1325
+ return Array.isArray(t) ? t[0] instanceof Oe ? t : [g2, t] : [t, void 0];
1325
1326
  }
1326
- function ho(t, e) {
1327
+ function co(t, e) {
1327
1328
  return t instanceof p ? t.v : Array.isArray(t) ? qt(t, e) : void 0;
1328
1329
  }
1329
1330
  function Hr(t, e, n, r) {
@@ -1339,8 +1340,8 @@ function Kr(t) {
1339
1340
  let e = t[rr];
1340
1341
  if (e != null) return e;
1341
1342
  const n = re(Mn, Hr, Wr, t);
1342
- return e = n.ma ? (r, s) => oo(r, s, n) : (r, s) => {
1343
- for (; Zi(s) && s.h != 4; ) {
1343
+ return e = n.ma ? (r, s) => io(r, s, n) : (r, s) => {
1344
+ for (; Ji(s) && s.h != 4; ) {
1344
1345
  var i = s.l, o = n[i];
1345
1346
  if (o == null) {
1346
1347
  var a = n.ba;
@@ -1348,29 +1349,29 @@ function Kr(t) {
1348
1349
  }
1349
1350
  if (o == null || !o(s, r, i)) {
1350
1351
  if (o = (a = s).m, on(a), a.ha) var c = void 0;
1351
- else c = a.g.g - o, a.g.g = o, c = Yi(a.g, c);
1352
+ else c = a.g.g - o, a.g.g = o, c = Xi(a.g, c);
1352
1353
  o = void 0, a = r, c && ((o = a[nt] ?? (a[nt] = new tr()))[i] ?? (o[i] = [])).push(c);
1353
1354
  }
1354
1355
  }
1355
- return (r = wn(r)) && (r.da = n.qa[Rs]), !0;
1356
- }, t[rr] = e, t[Rs] = _2.bind(t), e;
1356
+ return (r = wn(r)) && (r.da = n.qa[Cs]), !0;
1357
+ }, t[rr] = e, t[Cs] = m2.bind(t), e;
1357
1358
  }
1358
- function _2(t, e, n, r) {
1359
+ function m2(t, e, n, r) {
1359
1360
  var s = this[Mn];
1360
1361
  const i = this[rr], o = qt(void 0, s.T), a = wn(t);
1361
1362
  if (a) {
1362
1363
  var c = !1, u = s.ba;
1363
1364
  if (u) {
1364
- if (s = (h, f, y) => {
1365
- if (y.length !== 0) if (u[f]) for (const v of y) {
1366
- h = $i(v);
1365
+ if (s = (h, f, _) => {
1366
+ if (_.length !== 0) if (u[f]) for (const v of _) {
1367
+ h = Yi(v);
1367
1368
  try {
1368
1369
  c = !0, i(o, h);
1369
1370
  } finally {
1370
- Ji(h);
1371
+ $i(h);
1371
1372
  }
1372
1373
  }
1373
- else r == null || r(t, f, y);
1374
+ else r == null || r(t, f, _);
1374
1375
  }, e == null) hn(a, s);
1375
1376
  else if (a != null) {
1376
1377
  const h = a[e];
@@ -1379,22 +1380,22 @@ function _2(t, e, n, r) {
1379
1380
  if (c) {
1380
1381
  let h = 0 | t[d];
1381
1382
  if (2 & h && 2048 & h && !(n != null && n.Ka)) throw Error();
1382
- const f = ke(h), y = (v, x) => {
1383
+ const f = ke(h), _ = (v, I) => {
1383
1384
  if (Ot(t, v, f) != null) {
1384
1385
  if ((n == null ? void 0 : n.Qa) === 1) return;
1385
1386
  throw Error();
1386
1387
  }
1387
- x != null && (h = j(t, h, v, x, f)), delete a[v];
1388
+ I != null && (h = j(t, h, v, I, f)), delete a[v];
1388
1389
  };
1389
- e == null ? Fi(o, 0 | o[d], (v, x) => {
1390
- y(v, x);
1391
- }) : y(e, Ot(o, e, f));
1390
+ e == null ? Li(o, 0 | o[d], (v, I) => {
1391
+ _(v, I);
1392
+ }) : _(e, Ot(o, e, f));
1392
1393
  }
1393
1394
  }
1394
1395
  }
1395
1396
  }
1396
1397
  function y2(t) {
1397
- const e = (t = co(t))[0].g;
1398
+ const e = (t = ao(t))[0].g;
1398
1399
  if (t = t[1]) {
1399
1400
  const n = Kr(t), r = re(Mn, Hr, Wr, t).T;
1400
1401
  return (s, i, o) => e(s, i, o, r, n);
@@ -1407,27 +1408,27 @@ function Pn(t, e, n) {
1407
1408
  function On(t, e, n, r) {
1408
1409
  let s, i;
1409
1410
  const o = n.h;
1410
- t[e] = (a, c, u) => o(a, c, u, i || (i = re(Fn, Pn, On, r).T), s || (s = uo(r)));
1411
+ t[e] = (a, c, u) => o(a, c, u, i || (i = re(Fn, Pn, On, r).T), s || (s = ho(r)));
1411
1412
  }
1412
- function uo(t) {
1413
- let e = t[Cs];
1413
+ function ho(t) {
1414
+ let e = t[Ns];
1414
1415
  if (!e) {
1415
1416
  const n = re(Fn, Pn, On, t);
1416
- e = (r, s) => lo(r, s, n), t[Cs] = e;
1417
+ e = (r, s) => uo(r, s, n), t[Ns] = e;
1417
1418
  }
1418
1419
  return e;
1419
1420
  }
1420
- function lo(t, e, n) {
1421
- Fi(t, 0 | t[d], (r, s) => {
1421
+ function uo(t, e, n) {
1422
+ Li(t, 0 | t[d], (r, s) => {
1422
1423
  if (s != null) {
1423
1424
  var i = function(o, a) {
1424
1425
  var c = o[a];
1425
1426
  if (c) return c;
1426
1427
  if ((c = o.ba) && (c = c[a])) {
1427
- var u = (c = co(c))[0].h;
1428
+ var u = (c = ao(c))[0].h;
1428
1429
  if (c = c[1]) {
1429
- const h = uo(c), f = re(Fn, Pn, On, c).T;
1430
- c = o.ma ? ao(f, h) : (y, v, x) => u(y, v, x, f, h);
1430
+ const h = ho(c), f = re(Fn, Pn, On, c).T;
1431
+ c = o.ma ? oo(f, h) : (_, v, I) => u(_, v, I, f, h);
1431
1432
  } else c = u;
1432
1433
  return o[a] = c;
1433
1434
  }
@@ -1435,11 +1436,11 @@ function lo(t, e, n) {
1435
1436
  i ? i(e, s, r) : r < 500 || fe(Jn, 3);
1436
1437
  }
1437
1438
  }), (t = wn(t)) && hn(t, (r, s, i) => {
1438
- for (ye(e, e.g.end()), r = 0; r < i.length; r++) ye(e, _r(i[r]) || new Uint8Array(0));
1439
+ for (_e(e, e.g.end()), r = 0; r < i.length; r++) _e(e, yr(i[r]) || new Uint8Array(0));
1439
1440
  });
1440
1441
  }
1441
- const v2 = rt(0);
1442
- function xe(t, e) {
1442
+ const _2 = rt(0);
1443
+ function Ie(t, e) {
1443
1444
  if (Array.isArray(e)) {
1444
1445
  var n = 0 | e[d];
1445
1446
  if (4 & n) return e;
@@ -1453,20 +1454,20 @@ function xe(t, e) {
1453
1454
  function Y(t, e, n) {
1454
1455
  return new Oe(t, e, n);
1455
1456
  }
1456
- function Ie(t, e, n) {
1457
+ function xe(t, e, n) {
1457
1458
  return new Oe(t, e, n);
1458
1459
  }
1459
1460
  function z(t, e, n) {
1460
1461
  j(t, 0 | t[d], e, n, ke(0 | t[d]));
1461
1462
  }
1462
- var w2 = Ln(function(t, e, n, r, s) {
1463
+ var v2 = Ln(function(t, e, n, r, s) {
1463
1464
  if (t.h !== 2) return !1;
1464
1465
  if (t = mt(t = Ze(t, qt([void 0, void 0], r), s)), s = ke(r = 0 | e[d]), 2 & r) throw Error();
1465
1466
  let i = Ot(e, n, s);
1466
1467
  if (i instanceof Pt) 2 & i.J ? (i = i.V(), i.push(t), j(e, r, n, i, s)) : i.Ma(t);
1467
1468
  else if (Array.isArray(i)) {
1468
1469
  var o = 0 | i[d];
1469
- 8192 & o || V(i, o |= 8192), 2 & o && (i = Vi(i), j(e, r, n, i, s)), i.push(t);
1470
+ 8192 & o || V(i, o |= 8192), 2 & o && (i = Gi(i), j(e, r, n, i, s)), i.push(t);
1470
1471
  } else j(e, r, n, He([t]), s);
1471
1472
  return !0;
1472
1473
  }, function(t, e, n, r, s) {
@@ -1481,19 +1482,19 @@ var w2 = Ln(function(t, e, n, r, s) {
1481
1482
  He(e);
1482
1483
  }
1483
1484
  });
1484
- function fo(t, e, n) {
1485
+ function lo(t, e, n) {
1485
1486
  (e = At(e)) != null && (pt(t, n, 5), t = t.g, vr(e), Br(t));
1486
1487
  }
1487
- function po(t, e, n) {
1488
+ function fo(t, e, n) {
1488
1489
  if (e = function(r) {
1489
1490
  if (r == null) return r;
1490
1491
  const s = typeof r;
1491
1492
  if (s === "bigint") return String(Ye(64, r));
1492
1493
  if ($e(r)) {
1493
- if (s === "string") return Ni(r);
1494
+ if (s === "string") return xi(r);
1494
1495
  if (s === "number") return Er(r);
1495
1496
  }
1496
- }(e), e != null && (typeof e == "string" && Ns(e), e != null))
1497
+ }(e), e != null && (typeof e == "string" && xs(e), e != null))
1497
1498
  switch (pt(t, n, 0), typeof e) {
1498
1499
  case "number":
1499
1500
  t = t.g, ge(e), ce(t, P, B);
@@ -1502,54 +1503,54 @@ function po(t, e, n) {
1502
1503
  n = BigInt.asUintN(64, e), n = new nr(Number(n & BigInt(4294967295)), Number(n >> BigInt(32))), ce(t.g, n.h, n.g);
1503
1504
  break;
1504
1505
  default:
1505
- n = Ns(e), ce(t.g, n.h, n.g);
1506
+ n = xs(e), ce(t.g, n.h, n.g);
1506
1507
  }
1507
1508
  }
1508
- function go(t, e, n) {
1509
+ function po(t, e, n) {
1509
1510
  (e = Se(e)) != null && e != null && (pt(t, n, 0), kn(t.g, e));
1510
1511
  }
1511
- function mo(t, e, n) {
1512
- (e = Oi(e)) != null && (pt(t, n, 0), t.g.g.push(e ? 1 : 0));
1512
+ function go(t, e, n) {
1513
+ (e = Pi(e)) != null && (pt(t, n, 0), t.g.g.push(e ? 1 : 0));
1513
1514
  }
1514
- function _o(t, e, n) {
1515
+ function mo(t, e, n) {
1515
1516
  (e = q(e)) != null && Sn(t, n, yi(e));
1516
1517
  }
1517
1518
  function yo(t, e, n, r, s) {
1518
- dn(t, n, ho(e, r), s);
1519
+ dn(t, n, co(e, r), s);
1519
1520
  }
1520
- function vo(t, e, n) {
1521
+ function _o(t, e, n) {
1521
1522
  (e = e == null || typeof e == "string" || e instanceof Et ? e : void 0) != null && Sn(t, n, Nr(e, !0).buffer);
1522
1523
  }
1523
- function wo(t, e, n) {
1524
+ function vo(t, e, n) {
1524
1525
  return (t.h === 5 || t.h === 2) && (e = Me(e, 0 | e[d], n), t.h == 2 ? En(t, ln, e) : e.push(ln(t.g)), !0);
1525
1526
  }
1526
1527
  var D = Y(function(t, e, n) {
1527
1528
  return t.h === 5 && (z(e, n, ln(t.g)), !0);
1528
- }, fo, Tn), b2 = Ie(wo, function(t, e, n) {
1529
- if ((e = xe(At, e)) != null) for (let o = 0; o < e.length; o++) {
1529
+ }, lo, Tn), w2 = xe(vo, function(t, e, n) {
1530
+ if ((e = Ie(At, e)) != null) for (let o = 0; o < e.length; o++) {
1530
1531
  var r = t, s = n, i = e[o];
1531
1532
  i != null && (pt(r, s, 5), r = r.g, vr(i), Br(r));
1532
1533
  }
1533
- }, Tn), zr = Ie(wo, function(t, e, n) {
1534
- if ((e = xe(At, e)) != null && e.length) {
1534
+ }, Tn), zr = xe(vo, function(t, e, n) {
1535
+ if ((e = Ie(At, e)) != null && e.length) {
1535
1536
  pt(t, n, 2), Pe(t.g, 4 * e.length);
1536
1537
  for (let r = 0; r < e.length; r++) n = t.g, vr(e[r]), Br(n);
1537
1538
  }
1538
- }, Tn), A2 = Y(function(t, e, n) {
1539
+ }, Tn), b2 = Y(function(t, e, n) {
1539
1540
  return t.h === 5 && (z(e, n, (t = ln(t.g)) === 0 ? void 0 : t), !0);
1540
- }, fo, Tn), Gt = Y(function(t, e, n) {
1541
- return pr ? (t.h !== 0 ? t = !1 : (z(e, n, _e(t.g, Pi)), t = !0), t) : t.h === 0 && (z(e, n, _e(t.g, wr)), !0);
1542
- }, po, no), Wn = Y(function(t, e, n) {
1543
- return pr ? (t.h !== 0 ? e = !1 : (z(e, n, (t = _e(t.g, Pi)) === v2 ? void 0 : t), e = !0), e) : t.h === 0 && (z(e, n, (t = _e(t.g, wr)) === 0 ? void 0 : t), !0);
1544
- }, po, no), E2 = Y(function(t, e, n) {
1545
- return pr ? (t.h !== 0 ? t = !1 : (z(e, n, _e(t.g, Ka)), t = !0), t) : t.h === 0 && (z(e, n, _e(t.g, Qn)), !0);
1541
+ }, lo, Tn), Gt = Y(function(t, e, n) {
1542
+ return pr ? (t.h !== 0 ? t = !1 : (z(e, n, ye(t.g, Mi)), t = !0), t) : t.h === 0 && (z(e, n, ye(t.g, wr)), !0);
1543
+ }, fo, eo), Wn = Y(function(t, e, n) {
1544
+ return pr ? (t.h !== 0 ? e = !1 : (z(e, n, (t = ye(t.g, Mi)) === _2 ? void 0 : t), e = !0), e) : t.h === 0 && (z(e, n, (t = ye(t.g, wr)) === 0 ? void 0 : t), !0);
1545
+ }, fo, eo), A2 = Y(function(t, e, n) {
1546
+ return pr ? (t.h !== 0 ? t = !1 : (z(e, n, ye(t.g, Wa)), t = !0), t) : t.h === 0 && (z(e, n, ye(t.g, Qn)), !0);
1546
1547
  }, function(t, e, n) {
1547
1548
  if (e = function(r) {
1548
1549
  if (r == null) return r;
1549
1550
  var s = typeof r;
1550
- if (s === "bigint") return String(za(64, r));
1551
+ if (s === "bigint") return String(Ka(64, r));
1551
1552
  if ($e(r)) {
1552
- if (s === "string") return s = me(Number(r)), te(s) && s >= 0 ? r = String(s) : ((s = r.indexOf(".")) !== -1 && (r = r.substring(0, s)), (s = r[0] !== "-" && ((s = r.length) < 20 || s === 20 && r <= "18446744073709551615")) || (yn(r), r = We(P, B))), r;
1553
+ if (s === "string") return s = me(Number(r)), te(s) && s >= 0 ? r = String(s) : ((s = r.indexOf(".")) !== -1 && (r = r.substring(0, s)), (s = r[0] !== "-" && ((s = r.length) < 20 || s === 20 && r <= "18446744073709551615")) || (_n(r), r = We(P, B))), r;
1553
1554
  if (s === "number") return (r = me(r)) >= 0 && te(r) || (ge(r), r = Qn(P, B)), r;
1554
1555
  }
1555
1556
  }(e), e != null && (typeof e == "string" && Is(e), e != null))
@@ -1563,34 +1564,34 @@ var D = Y(function(t, e, n) {
1563
1564
  default:
1564
1565
  n = Is(e), ce(t.g, n.h, n.g);
1565
1566
  }
1566
- }, p2), K = Y(function(t, e, n) {
1567
+ }, d2), K = Y(function(t, e, n) {
1567
1568
  return t.h === 0 && (z(e, n, jt(t.g)), !0);
1568
- }, go, Vr), Qe = Ie(function(t, e, n) {
1569
+ }, po, Vr), Qe = xe(function(t, e, n) {
1569
1570
  return (t.h === 0 || t.h === 2) && (e = Me(e, 0 | e[d], n), t.h == 2 ? En(t, jt, e) : e.push(jt(t.g)), !0);
1570
1571
  }, function(t, e, n) {
1571
- if ((e = xe(Se, e)) != null && e.length) {
1572
+ if ((e = Ie(Se, e)) != null && e.length) {
1572
1573
  n = Dr(t, n);
1573
1574
  for (let r = 0; r < e.length; r++) kn(t.g, e[r]);
1574
1575
  Ur(t, n);
1575
1576
  }
1576
1577
  }, Vr), ae = Y(function(t, e, n) {
1577
1578
  return t.h === 0 && (z(e, n, (t = jt(t.g)) === 0 ? void 0 : t), !0);
1578
- }, go, Vr), R = Y(function(t, e, n) {
1579
+ }, po, Vr), R = Y(function(t, e, n) {
1579
1580
  return t.h === 0 && (z(e, n, Cr(t.g)), !0);
1580
- }, mo, to), Jt = Y(function(t, e, n) {
1581
+ }, go, Qi), Jt = Y(function(t, e, n) {
1581
1582
  return t.h === 0 && (z(e, n, (t = Cr(t.g)) === !1 ? void 0 : t), !0);
1582
- }, mo, to), X = Ie(function(t, e, n) {
1583
+ }, go, Qi), X = xe(function(t, e, n) {
1583
1584
  return t.h === 2 && (t = Rr(t), Me(e, 0 | e[d], n).push(t), !0);
1584
1585
  }, function(t, e, n) {
1585
- if ((e = xe(q, e)) != null) for (let o = 0; o < e.length; o++) {
1586
+ if ((e = Ie(q, e)) != null) for (let o = 0; o < e.length; o++) {
1586
1587
  var r = t, s = n, i = e[o];
1587
1588
  i != null && Sn(r, s, yi(i));
1588
1589
  }
1589
1590
  }, Gr), Dt = Y(function(t, e, n) {
1590
1591
  return t.h === 2 && (z(e, n, (t = Rr(t)) === "" ? void 0 : t), !0);
1591
- }, _o, Gr), S = Y(function(t, e, n) {
1592
+ }, mo, Gr), S = Y(function(t, e, n) {
1592
1593
  return t.h === 2 && (z(e, n, Rr(t)), !0);
1593
- }, _o, Gr), W = function(t, e, n = jr) {
1594
+ }, mo, Gr), W = function(t, e, n = jr) {
1594
1595
  return new Oe(t, e, n);
1595
1596
  }(function(t, e, n, r, s) {
1596
1597
  return t.h === 2 && (r = qt(void 0, r), Me(e, 0 | e[d], n).push(r), Ze(t, r, s), !0);
@@ -1602,54 +1603,54 @@ var D = Y(function(t, e, n) {
1602
1603
  }), N = Ln(function(t, e, n, r, s, i) {
1603
1604
  if (t.h !== 2) return !1;
1604
1605
  let o = 0 | e[d];
1605
- return Hi(e, o, i, n, ke(o)), Ze(t, e = xr(e, r, n), s), !0;
1606
- }, yo), bo = Y(function(t, e, n) {
1607
- return t.h === 2 && (z(e, n, Qi(t)), !0);
1608
- }, vo, ro), k2 = Ie(function(t, e, n) {
1606
+ return Vi(e, o, i, n, ke(o)), Ze(t, e = Ir(e, r, n), s), !0;
1607
+ }, yo), wo = Y(function(t, e, n) {
1608
+ return t.h === 2 && (z(e, n, Zi(t)), !0);
1609
+ }, _o, no), E2 = xe(function(t, e, n) {
1609
1610
  return (t.h === 0 || t.h === 2) && (e = Me(e, 0 | e[d], n), t.h == 2 ? En(t, Nt, e) : e.push(Nt(t.g)), !0);
1610
1611
  }, function(t, e, n) {
1611
- if ((e = xe(xi, e)) != null) for (let o = 0; o < e.length; o++) {
1612
+ if ((e = Ie(Oi, e)) != null) for (let o = 0; o < e.length; o++) {
1612
1613
  var r = t, s = n, i = e[o];
1613
1614
  i != null && (pt(r, s, 0), Pe(r.g, i));
1614
1615
  }
1615
- }, eo), S2 = Y(function(t, e, n) {
1616
+ }, to), k2 = Y(function(t, e, n) {
1616
1617
  return t.h === 0 && (z(e, n, (t = Nt(t.g)) === 0 ? void 0 : t), !0);
1617
1618
  }, function(t, e, n) {
1618
- (e = xi(e)) != null && e != null && (pt(t, n, 0), Pe(t.g, e));
1619
- }, eo), ot = Y(function(t, e, n) {
1619
+ (e = Oi(e)) != null && e != null && (pt(t, n, 0), Pe(t.g, e));
1620
+ }, to), ot = Y(function(t, e, n) {
1620
1621
  return t.h === 0 && (z(e, n, jt(t.g)), !0);
1621
1622
  }, function(t, e, n) {
1622
1623
  (e = Se(e)) != null && (e = parseInt(e, 10), pt(t, n, 0), kn(t.g, e));
1623
- }, so);
1624
- class T2 {
1624
+ }, ro);
1625
+ class S2 {
1625
1626
  constructor(e, n) {
1626
1627
  var r = ct;
1627
- this.g = e, this.h = n, this.m = A, this.j = _, this.defaultValue = void 0, this.l = r.Oa != null ? Mi : void 0;
1628
+ this.g = e, this.h = n, this.m = A, this.j = y, this.defaultValue = void 0, this.l = r.Oa != null ? Fi : void 0;
1628
1629
  }
1629
1630
  register() {
1630
1631
  gn(this);
1631
1632
  }
1632
1633
  }
1633
1634
  function Lt(t, e) {
1634
- return new T2(t, e);
1635
+ return new S2(t, e);
1635
1636
  }
1636
1637
  function Vt(t, e) {
1637
1638
  return (n, r) => {
1638
1639
  {
1639
1640
  const i = { ea: !0 };
1640
- r && Object.assign(i, r), n = $i(n, void 0, void 0, i);
1641
+ r && Object.assign(i, r), n = Yi(n, void 0, void 0, i);
1641
1642
  try {
1642
1643
  const o = new t(), a = o.v;
1643
1644
  Kr(e)(a, n);
1644
1645
  var s = o;
1645
1646
  } finally {
1646
- Ji(n);
1647
+ $i(n);
1647
1648
  }
1648
1649
  }
1649
1650
  return s;
1650
1651
  };
1651
1652
  }
1652
- function xn(t) {
1653
+ function In(t) {
1653
1654
  return function() {
1654
1655
  const e = new class {
1655
1656
  constructor() {
@@ -1667,7 +1668,7 @@ function xn(t) {
1667
1668
  }();
1668
1669
  }
1669
1670
  }();
1670
- lo(this.v, e, re(Fn, Pn, On, t)), ye(e, e.g.end());
1671
+ uo(this.v, e, re(Fn, Pn, On, t)), _e(e, e.g.end());
1671
1672
  const n = new Uint8Array(e.h), r = e.l, s = r.length;
1672
1673
  let i = 0;
1673
1674
  for (let o = 0; o < s; o++) {
@@ -1677,12 +1678,12 @@ function xn(t) {
1677
1678
  return e.l = [n], n;
1678
1679
  };
1679
1680
  }
1680
- var Bs = class extends p {
1681
+ var Rs = class extends p {
1681
1682
  constructor(t) {
1682
1683
  super(t);
1683
1684
  }
1684
- }, Ds = [0, Dt, Y(function(t, e, n) {
1685
- return t.h === 2 && (z(e, n, (t = Qi(t)) === Zt() ? void 0 : t), !0);
1685
+ }, Bs = [0, Dt, Y(function(t, e, n) {
1686
+ return t.h === 2 && (z(e, n, (t = Zi(t)) === Zt() ? void 0 : t), !0);
1686
1687
  }, function(t, e, n) {
1687
1688
  if (e != null) {
1688
1689
  if (e instanceof p) {
@@ -1691,17 +1692,17 @@ var Bs = class extends p {
1691
1692
  }
1692
1693
  if (Array.isArray(e)) return void fe(Jn, 3);
1693
1694
  }
1694
- vo(t, e, n);
1695
- }, ro)];
1696
- let Kn, Us = globalThis.trustedTypes;
1697
- function js(t) {
1695
+ _o(t, e, n);
1696
+ }, no)];
1697
+ let Kn, Ds = globalThis.trustedTypes;
1698
+ function Us(t) {
1698
1699
  var e;
1699
1700
  return Kn === void 0 && (Kn = function() {
1700
1701
  let n = null;
1701
- if (!Us) return n;
1702
+ if (!Ds) return n;
1702
1703
  try {
1703
1704
  const r = (s) => s;
1704
- n = Us.createPolicy("goog#html", { createHTML: r, createScript: r, createScriptURL: r });
1705
+ n = Ds.createPolicy("goog#html", { createHTML: r, createScript: r, createScriptURL: r });
1705
1706
  } catch {
1706
1707
  }
1707
1708
  return n;
@@ -1714,35 +1715,35 @@ function js(t) {
1714
1715
  }
1715
1716
  }(t);
1716
1717
  }
1717
- function L2(t, ...e) {
1718
- if (e.length === 0) return js(t[0]);
1718
+ function T2(t, ...e) {
1719
+ if (e.length === 0) return Us(t[0]);
1719
1720
  let n = t[0];
1720
1721
  for (let r = 0; r < e.length; r++) n += encodeURIComponent(e[r]) + t[r + 1];
1721
- return js(n);
1722
+ return Us(n);
1722
1723
  }
1723
- var Ao = [0, K, ot, R, -1, Qe, ot, -1, R], F2 = class extends p {
1724
+ var bo = [0, K, ot, R, -1, Qe, ot, -1, R], L2 = class extends p {
1724
1725
  constructor(t) {
1725
1726
  super(t);
1726
1727
  }
1727
- }, Eo = [0, R, S, R, ot, -1, Ie(function(t, e, n) {
1728
- return (t.h === 0 || t.h === 2) && (e = Me(e, 0 | e[d], n), t.h == 2 ? En(t, u2, e) : e.push(jt(t.g)), !0);
1728
+ }, Ao = [0, R, S, R, ot, -1, xe(function(t, e, n) {
1729
+ return (t.h === 0 || t.h === 2) && (e = Me(e, 0 | e[d], n), t.h == 2 ? En(t, h2, e) : e.push(jt(t.g)), !0);
1729
1730
  }, function(t, e, n) {
1730
- if ((e = xe(Se, e)) != null && e.length) {
1731
+ if ((e = Ie(Se, e)) != null && e.length) {
1731
1732
  n = Dr(t, n);
1732
1733
  for (let r = 0; r < e.length; r++) kn(t.g, e[r]);
1733
1734
  Ur(t, n);
1734
1735
  }
1735
- }, so), S, -1, [0, R, -1], ot, R, -1], ko = [0, 3, R, -1, 2, [0, K], [0, ot, R], [0, S, -1], [0]], So = [0, S, -2], Gs = class extends p {
1736
+ }, ro), S, -1, [0, R, -1], ot, R, -1], Eo = [0, 3, R, -1, 2, [0, K], [0, ot, R], [0, S, -1], [0]], ko = [0, S, -2], js = class extends p {
1736
1737
  constructor(t) {
1737
1738
  super(t);
1738
1739
  }
1739
- }, To = [0], Lo = [0, K, R, 1, R, -4], ct = class extends p {
1740
+ }, So = [0], To = [0, K, R, 1, R, -4], ct = class extends p {
1740
1741
  constructor(t) {
1741
1742
  super(t, 2);
1742
1743
  }
1743
1744
  }, G = {};
1744
- G[336783863] = [0, S, R, -1, K, [0, [1, 2, 3, 4, 5, 6, 7, 8, 9], N, To, N, Eo, N, So, N, Lo, N, Ao, N, [0, S, -2], N, [0, S, ot], N, ko, N, [0, ot, -1, R]], [0, S], R, [0, [1, 3], [2, 4], N, [0, Qe], -1, N, [0, X], -1, W, [0, S, -1]], S];
1745
- var Vs = [0, Wn, -1, Jt, -3, Wn, Qe, Dt, ae, Wn, -1, Jt, ae, Jt, -2, Dt];
1745
+ G[336783863] = [0, S, R, -1, K, [0, [1, 2, 3, 4, 5, 6, 7, 8, 9], N, So, N, Ao, N, ko, N, To, N, bo, N, [0, S, -2], N, [0, S, ot], N, Eo, N, [0, ot, -1, R]], [0, S], R, [0, [1, 3], [2, 4], N, [0, Qe], -1, N, [0, X], -1, W, [0, S, -1]], S];
1746
+ var Gs = [0, Wn, -1, Jt, -3, Wn, Qe, Dt, ae, Wn, -1, Jt, ae, Jt, -2, Dt];
1746
1747
  function F(t, e) {
1747
1748
  An(t, 3, e);
1748
1749
  }
@@ -1754,11 +1755,11 @@ var Z = class extends p {
1754
1755
  super(t, 500);
1755
1756
  }
1756
1757
  o(t) {
1757
- return _(this, 0, 7, t);
1758
+ return y(this, 0, 7, t);
1758
1759
  }
1759
- }, je = [-1, {}], Hs = [0, S, 1, je], Ws = [0, S, X, je];
1760
+ }, je = [-1, {}], Vs = [0, S, 1, je], Hs = [0, S, X, je];
1760
1761
  function gt(t, e) {
1761
- Ir(t, 1, Z, e);
1762
+ xr(t, 1, Z, e);
1762
1763
  }
1763
1764
  function O(t, e) {
1764
1765
  An(t, 10, e);
@@ -1771,26 +1772,26 @@ var ht = class extends p {
1771
1772
  super(t, 500);
1772
1773
  }
1773
1774
  o(t) {
1774
- return _(this, 0, 1001, t);
1775
+ return y(this, 0, 1001, t);
1775
1776
  }
1776
- }, Fo = [-500, W, [-500, Dt, -1, X, -3, [-2, G, R], W, Ds, ae, -1, Hs, Ws, W, [0, Dt, Jt], Dt, Vs, ae, X, 987, X], 4, W, [-500, S, -1, [-1, {}], 998, S], W, [-500, S, X, -1, [-2, {}, R], 997, X, -1], ae, W, [-500, S, X, je, 998, X], X, ae, Hs, Ws, W, [0, Dt, -1, je], X, -2, Vs, Dt, -1, Jt, [0, Jt, S2], 978, je, W, Ds];
1777
- ht.prototype.g = xn(Fo);
1778
- var M2 = Vt(ht, Fo), P2 = class extends p {
1777
+ }, Lo = [-500, W, [-500, Dt, -1, X, -3, [-2, G, R], W, Bs, ae, -1, Vs, Hs, W, [0, Dt, Jt], Dt, Gs, ae, X, 987, X], 4, W, [-500, S, -1, [-1, {}], 998, S], W, [-500, S, X, -1, [-2, {}, R], 997, X, -1], ae, W, [-500, S, X, je, 998, X], X, ae, Vs, Hs, W, [0, Dt, -1, je], X, -2, Gs, Dt, -1, Jt, [0, Jt, k2], 978, je, W, Bs];
1778
+ ht.prototype.g = In(Lo);
1779
+ var F2 = Vt(ht, Lo), M2 = class extends p {
1779
1780
  constructor(t) {
1780
1781
  super(t);
1781
1782
  }
1782
- }, Mo = class extends p {
1783
+ }, Fo = class extends p {
1783
1784
  constructor(t) {
1784
1785
  super(t);
1785
1786
  }
1786
1787
  g() {
1787
- return xt(this, P2, 1);
1788
+ return It(this, M2, 1);
1788
1789
  }
1789
- }, Po = [0, W, [0, K, D, S, -1]], In = Vt(Mo, Po), O2 = class extends p {
1790
+ }, Mo = [0, W, [0, K, D, S, -1]], xn = Vt(Fo, Mo), P2 = class extends p {
1790
1791
  constructor(t) {
1791
1792
  super(t);
1792
1793
  }
1793
- }, x2 = class extends p {
1794
+ }, O2 = class extends p {
1794
1795
  constructor(t) {
1795
1796
  super(t);
1796
1797
  }
@@ -1799,16 +1800,16 @@ var M2 = Vt(ht, Fo), P2 = class extends p {
1799
1800
  super(t);
1800
1801
  }
1801
1802
  l() {
1802
- return A(this, O2, 2);
1803
+ return A(this, P2, 2);
1803
1804
  }
1804
1805
  g() {
1805
- return xt(this, x2, 5);
1806
+ return It(this, O2, 5);
1806
1807
  }
1807
- }, Oo = Vt(class extends p {
1808
+ }, Po = Vt(class extends p {
1808
1809
  constructor(t) {
1809
1810
  super(t);
1810
1811
  }
1811
- }, [0, X, Qe, zr, [0, ot, [0, K, -3], [0, D, -3], [0, K, -1, [0, W, [0, K, -2]]], W, [0, D, -1, S, D]], S, -1, Gt, W, [0, K, D], X, Gt]), xo = class extends p {
1812
+ }, [0, X, Qe, zr, [0, ot, [0, K, -3], [0, D, -3], [0, K, -1, [0, W, [0, K, -2]]], W, [0, D, -1, S, D]], S, -1, Gt, W, [0, K, D], X, Gt]), Oo = class extends p {
1812
1813
  constructor(t) {
1813
1814
  super(t);
1814
1815
  }
@@ -1828,49 +1829,49 @@ var M2 = Vt(ht, Fo), P2 = class extends p {
1828
1829
  constructor(t) {
1829
1830
  super(t);
1830
1831
  }
1831
- }, N2 = [0, K, -1, zr, ot], No = class extends p {
1832
+ }, x2 = [0, K, -1, zr, ot], xo = class extends p {
1832
1833
  constructor(t) {
1833
1834
  super(t);
1834
1835
  }
1835
1836
  };
1836
- No.prototype.g = xn([0, D, -4, Gt]);
1837
- var C2 = class extends p {
1837
+ xo.prototype.g = In([0, D, -4, Gt]);
1838
+ var N2 = class extends p {
1838
1839
  constructor(t) {
1839
1840
  super(t);
1840
1841
  }
1841
- }, R2 = Vt(class extends p {
1842
+ }, C2 = Vt(class extends p {
1842
1843
  constructor(t) {
1843
1844
  super(t);
1844
1845
  }
1845
- }, [0, W, [0, 1, K, S, Po], Gt]), Ks = class extends p {
1846
+ }, [0, W, [0, 1, K, S, Mo], Gt]), Ws = class extends p {
1846
1847
  constructor(t) {
1847
1848
  super(t);
1848
1849
  }
1849
- }, B2 = class extends p {
1850
+ }, R2 = class extends p {
1850
1851
  constructor(t) {
1851
1852
  super(t);
1852
1853
  }
1853
1854
  na() {
1854
- const t = L(this, 1, void 0, void 0, Gi);
1855
+ const t = L(this, 1, void 0, void 0, ji);
1855
1856
  return t ?? Zt();
1856
1857
  }
1857
- }, D2 = class extends p {
1858
+ }, B2 = class extends p {
1858
1859
  constructor(t) {
1859
1860
  super(t);
1860
1861
  }
1861
- }, Co = [1, 2], U2 = Vt(class extends p {
1862
+ }, No = [1, 2], D2 = Vt(class extends p {
1862
1863
  constructor(t) {
1863
1864
  super(t);
1864
1865
  }
1865
- }, [0, W, [0, Co, N, [0, zr], N, [0, bo], K, S], Gt]), qr = class extends p {
1866
+ }, [0, W, [0, No, N, [0, zr], N, [0, wo], K, S], Gt]), qr = class extends p {
1866
1867
  constructor(t) {
1867
1868
  super(t);
1868
1869
  }
1869
- }, Ro = [0, S, K, D, X, -1], zs = class extends p {
1870
+ }, Co = [0, S, K, D, X, -1], Ks = class extends p {
1870
1871
  constructor(t) {
1871
1872
  super(t);
1872
1873
  }
1873
- }, j2 = [0, R, -1], qs = class extends p {
1874
+ }, U2 = [0, R, -1], zs = class extends p {
1874
1875
  constructor(t) {
1875
1876
  super(t);
1876
1877
  }
@@ -1879,38 +1880,38 @@ var C2 = class extends p {
1879
1880
  super(t);
1880
1881
  }
1881
1882
  g() {
1882
- return L(this, 1, void 0, void 0, Gi) != null;
1883
+ return L(this, 1, void 0, void 0, ji) != null;
1883
1884
  }
1884
1885
  l() {
1885
1886
  return q(L(this, 2)) != null;
1886
1887
  }
1887
- }, I = class extends p {
1888
+ }, x = class extends p {
1888
1889
  constructor(t) {
1889
1890
  super(t);
1890
1891
  }
1891
1892
  g() {
1892
- return Oi(L(this, 2)) ?? !1;
1893
+ return Pi(L(this, 2)) ?? !1;
1893
1894
  }
1894
- }, Bo = [0, bo, S, [0, K, Gt, -1], [0, E2, Gt]], U = [0, Bo, R, [0, an, N, Lo, N, Eo, N, Ao, N, To, N, So, N, ko], ot], Nn = class extends p {
1895
+ }, Ro = [0, wo, S, [0, K, Gt, -1], [0, A2, Gt]], U = [0, Ro, R, [0, an, N, To, N, Ao, N, bo, N, So, N, ko, N, Eo], ot], Nn = class extends p {
1895
1896
  constructor(t) {
1896
1897
  super(t);
1897
1898
  }
1898
- }, Xr = [0, U, D, -1, K], G2 = Lt(502141897, Nn);
1899
+ }, Xr = [0, U, D, -1, K], j2 = Lt(502141897, Nn);
1899
1900
  G[502141897] = Xr;
1900
- var V2 = Vt(class extends p {
1901
+ var G2 = Vt(class extends p {
1901
1902
  constructor(t) {
1902
1903
  super(t);
1903
1904
  }
1904
- }, [0, [0, ot, -1, b2, k2], N2]), Do = class extends p {
1905
+ }, [0, [0, ot, -1, w2, E2], x2]), Bo = class extends p {
1905
1906
  constructor(t) {
1906
1907
  super(t);
1907
1908
  }
1908
- }, Uo = class extends p {
1909
+ }, Do = class extends p {
1909
1910
  constructor(t) {
1910
1911
  super(t);
1911
1912
  }
1912
- }, sr = [0, U, D, [0, U], R], H2 = Lt(508968150, Uo);
1913
- G[508968150] = [0, U, Xr, sr, D, [0, [0, Bo]]], G[508968149] = sr;
1913
+ }, sr = [0, U, D, [0, U], R], V2 = Lt(508968150, Do);
1914
+ G[508968150] = [0, U, Xr, sr, D, [0, [0, Ro]]], G[508968149] = sr;
1914
1915
  var oe = class extends p {
1915
1916
  constructor(t) {
1916
1917
  super(t);
@@ -1921,13 +1922,13 @@ var oe = class extends p {
1921
1922
  g() {
1922
1923
  k(this, 2);
1923
1924
  }
1924
- }, jo = [0, U, Ro];
1925
- G[478825465] = jo;
1926
- var W2 = class extends p {
1925
+ }, Uo = [0, U, Co];
1926
+ G[478825465] = Uo;
1927
+ var H2 = class extends p {
1927
1928
  constructor(t) {
1928
1929
  super(t);
1929
1930
  }
1930
- }, Go = class extends p {
1931
+ }, jo = class extends p {
1931
1932
  constructor(t) {
1932
1933
  super(t);
1933
1934
  }
@@ -1939,53 +1940,53 @@ var W2 = class extends p {
1939
1940
  constructor(t) {
1940
1941
  super(t);
1941
1942
  }
1942
- }, Vo = class extends p {
1943
+ }, Go = class extends p {
1943
1944
  constructor(t) {
1944
1945
  super(t);
1945
1946
  }
1946
- }, Xs = [0, U, [0, U], jo, -1], Ho = [0, U, D, K], Jr = [0, U, D], Wo = [0, U, Ho, Jr, D], K2 = Lt(479097054, Vo);
1947
- G[479097054] = [0, U, Wo, Xs], G[463370452] = Xs, G[464864288] = Ho;
1948
- var z2 = Lt(462713202, $r);
1949
- G[462713202] = Wo, G[474472470] = Jr;
1950
- var q2 = class extends p {
1947
+ }, qs = [0, U, [0, U], Uo, -1], Vo = [0, U, D, K], Jr = [0, U, D], Ho = [0, U, Vo, Jr, D], W2 = Lt(479097054, Go);
1948
+ G[479097054] = [0, U, Ho, qs], G[463370452] = qs, G[464864288] = Vo;
1949
+ var K2 = Lt(462713202, $r);
1950
+ G[462713202] = Ho, G[474472470] = Jr;
1951
+ var z2 = class extends p {
1951
1952
  constructor(t) {
1952
1953
  super(t);
1953
1954
  }
1954
- }, Ko = class extends p {
1955
+ }, Wo = class extends p {
1955
1956
  constructor(t) {
1956
1957
  super(t);
1957
1958
  }
1958
- }, zo = class extends p {
1959
+ }, Ko = class extends p {
1959
1960
  constructor(t) {
1960
1961
  super(t);
1961
1962
  }
1962
- }, qo = class extends p {
1963
+ }, zo = class extends p {
1963
1964
  constructor(t) {
1964
1965
  super(t);
1965
1966
  }
1966
1967
  }, Zr = [0, U, D, -1, K], ir = [0, U, D, R];
1967
- qo.prototype.g = xn([0, U, Jr, [0, U], Xr, sr, Zr, ir]);
1968
- var Xo = class extends p {
1968
+ zo.prototype.g = In([0, U, Jr, [0, U], Xr, sr, Zr, ir]);
1969
+ var qo = class extends p {
1969
1970
  constructor(t) {
1970
1971
  super(t);
1971
1972
  }
1972
- }, X2 = Lt(456383383, Xo);
1973
- G[456383383] = [0, U, Ro];
1974
- var Yo = class extends p {
1973
+ }, q2 = Lt(456383383, qo);
1974
+ G[456383383] = [0, U, Co];
1975
+ var Xo = class extends p {
1975
1976
  constructor(t) {
1976
1977
  super(t);
1977
1978
  }
1978
- }, Y2 = Lt(476348187, Yo);
1979
- G[476348187] = [0, U, j2];
1980
- var $o = class extends p {
1979
+ }, X2 = Lt(476348187, Xo);
1980
+ G[476348187] = [0, U, U2];
1981
+ var Yo = class extends p {
1981
1982
  constructor(t) {
1982
1983
  super(t);
1983
1984
  }
1984
- }, Ys = class extends p {
1985
+ }, Xs = class extends p {
1985
1986
  constructor(t) {
1986
1987
  super(t);
1987
1988
  }
1988
- }, Jo = [0, ot, -1], $2 = Lt(458105876, class extends p {
1989
+ }, $o = [0, ot, -1], Y2 = Lt(458105876, class extends p {
1989
1990
  constructor(t) {
1990
1991
  super(t);
1991
1992
  }
@@ -1994,76 +1995,76 @@ var $o = class extends p {
1994
1995
  var e = this.v;
1995
1996
  const n = 0 | e[d];
1996
1997
  return t = st(this, n), e = function(r, s, i, o) {
1997
- var a = Ys;
1998
+ var a = Xs;
1998
1999
  !o && Le(r) && (i = 0 | (s = r.v)[d]);
1999
2000
  var c = Ot(s, 2);
2000
2001
  if (r = !1, c == null) {
2001
- if (o) return Ms();
2002
+ if (o) return Fs();
2002
2003
  c = [];
2003
2004
  } else if (c.constructor === Pt) {
2004
2005
  if (!(2 & c.J) || o) return c;
2005
2006
  c = c.V();
2006
2007
  } else Array.isArray(c) ? r = !!(2 & (0 | c[d])) : c = [];
2007
2008
  if (o) {
2008
- if (!c.length) return Ms();
2009
+ if (!c.length) return Fs();
2009
2010
  r || (r = !0, Xe(c));
2010
- } else r && (r = !1, He(c), c = Vi(c));
2011
- return !r && 32 & i && qe(c, 32), i = j(s, i, 2, o = new Pt(c, a, $a, void 0)), r || ne(s, i), o;
2012
- }(this, e, n, t), !t && Ys && (e.ra = !0), e;
2011
+ } else r && (r = !1, He(c), c = Gi(c));
2012
+ return !r && 32 & i && qe(c, 32), i = j(s, i, 2, o = new Pt(c, a, Ya, void 0)), r || ne(s, i), o;
2013
+ }(this, e, n, t), !t && Xs && (e.ra = !0), e;
2013
2014
  }
2014
2015
  });
2015
- G[458105876] = [0, Jo, w2, [!0, Gt, [0, S, -1, X]], [0, Qe, R, ot]];
2016
+ G[458105876] = [0, $o, v2, [!0, Gt, [0, S, -1, X]], [0, Qe, R, ot]];
2016
2017
  var Qr = class extends p {
2017
2018
  constructor(t) {
2018
2019
  super(t);
2019
2020
  }
2020
- }, Zo = Lt(458105758, Qr);
2021
- G[458105758] = [0, U, S, Jo];
2021
+ }, Jo = Lt(458105758, Qr);
2022
+ G[458105758] = [0, U, S, $o];
2022
2023
  var qn = class extends p {
2023
2024
  constructor(t) {
2024
2025
  super(t);
2025
2026
  }
2026
- }, $s = [0, A2, -1, Jt], J2 = class extends p {
2027
+ }, Ys = [0, b2, -1, Jt], $2 = class extends p {
2027
2028
  constructor(t) {
2028
2029
  super(t);
2029
2030
  }
2030
- }, Qo = class extends p {
2031
+ }, Zo = class extends p {
2031
2032
  constructor(t) {
2032
2033
  super(t);
2033
2034
  }
2034
2035
  }, or = [1, 2];
2035
- Qo.prototype.g = xn([0, or, N, $s, N, [0, W, $s]]);
2036
- var ta = class extends p {
2036
+ Zo.prototype.g = In([0, or, N, Ys, N, [0, W, Ys]]);
2037
+ var Qo = class extends p {
2037
2038
  constructor(t) {
2038
2039
  super(t);
2039
2040
  }
2040
- }, Z2 = Lt(443442058, ta);
2041
+ }, J2 = Lt(443442058, Qo);
2041
2042
  G[443442058] = [0, U, S, K, D, X, -1, R, D], G[514774813] = Zr;
2042
- var ea = class extends p {
2043
+ var ta = class extends p {
2043
2044
  constructor(t) {
2044
2045
  super(t);
2045
2046
  }
2046
- }, Q2 = Lt(516587230, ea);
2047
+ }, Z2 = Lt(516587230, ta);
2047
2048
  function ar(t, e) {
2048
- return e = e ? e.clone() : new qr(), t.displayNamesLocale !== void 0 ? k(e, 1, Je(t.displayNamesLocale)) : t.displayNamesLocale === void 0 && k(e, 1), t.maxResults !== void 0 ? It(e, 2, t.maxResults) : "maxResults" in t && k(e, 2), t.scoreThreshold !== void 0 ? m(e, 3, t.scoreThreshold) : "scoreThreshold" in t && k(e, 3), t.categoryAllowlist !== void 0 ? un(e, 4, t.categoryAllowlist) : "categoryAllowlist" in t && k(e, 4), t.categoryDenylist !== void 0 ? un(e, 5, t.categoryDenylist) : "categoryDenylist" in t && k(e, 5), e;
2049
+ return e = e ? e.clone() : new qr(), t.displayNamesLocale !== void 0 ? k(e, 1, Je(t.displayNamesLocale)) : t.displayNamesLocale === void 0 && k(e, 1), t.maxResults !== void 0 ? xt(e, 2, t.maxResults) : "maxResults" in t && k(e, 2), t.scoreThreshold !== void 0 ? m(e, 3, t.scoreThreshold) : "scoreThreshold" in t && k(e, 3), t.categoryAllowlist !== void 0 ? un(e, 4, t.categoryAllowlist) : "categoryAllowlist" in t && k(e, 4), t.categoryDenylist !== void 0 ? un(e, 5, t.categoryDenylist) : "categoryDenylist" in t && k(e, 5), e;
2049
2050
  }
2050
- function na(t) {
2051
+ function ea(t) {
2051
2052
  const e = Number(t);
2052
2053
  return Number.isSafeInteger(e) ? e : String(t);
2053
2054
  }
2054
2055
  function ts(t, e = -1, n = "") {
2055
2056
  return { categories: t.map((r) => ({ index: dt(r, 1) ?? 0 ?? -1, score: C(r, 2) ?? 0, categoryName: q(L(r, 3)) ?? "" ?? "", displayName: q(L(r, 4)) ?? "" ?? "" })), headIndex: e, headName: n };
2056
2057
  }
2057
- function t1(t) {
2058
- const e = { classifications: xt(t, C2, 1).map((n) => {
2058
+ function Q2(t) {
2059
+ const e = { classifications: It(t, N2, 1).map((n) => {
2059
2060
  var r;
2060
- return ts(((r = A(n, Mo, 4)) == null ? void 0 : r.g()) ?? [], dt(n, 2) ?? 0, q(L(n, 3)) ?? "");
2061
+ return ts(((r = A(n, Fo, 4)) == null ? void 0 : r.g()) ?? [], dt(n, 2) ?? 0, q(L(n, 3)) ?? "");
2061
2062
  }) };
2062
2063
  return function(n) {
2063
- return Ya(gr ? L(n, 2, void 0, void 0, cn) : L(n, 2));
2064
- }(t) != null && (e.timestampMs = na(qi(t))), e;
2064
+ return Xa(gr ? L(n, 2, void 0, void 0, cn) : L(n, 2));
2065
+ }(t) != null && (e.timestampMs = ea(zi(t))), e;
2065
2066
  }
2066
- function ra(t) {
2067
+ function na(t) {
2067
2068
  var o, a;
2068
2069
  var e = zt(t, 3, At, Kt()), n = zt(t, 2, Se, Kt()), r = zt(t, 1, q, Kt()), s = zt(t, 9, q, Kt());
2069
2070
  const i = { categories: [], keypoints: [] };
@@ -2073,18 +2074,18 @@ function ra(t) {
2073
2074
  }
2074
2075
  function Cn(t) {
2075
2076
  const e = [];
2076
- for (const n of xt(t, Io, 1)) e.push({ x: C(n, 1) ?? 0, y: C(n, 2) ?? 0, z: C(n, 3) ?? 0, visibility: C(n, 4) ?? 0 });
2077
+ for (const n of It(t, Io, 1)) e.push({ x: C(n, 1) ?? 0, y: C(n, 2) ?? 0, z: C(n, 3) ?? 0, visibility: C(n, 4) ?? 0 });
2077
2078
  return e;
2078
2079
  }
2079
2080
  function Ge(t) {
2080
2081
  const e = [];
2081
- for (const n of xt(t, xo, 1)) e.push({ x: C(n, 1) ?? 0, y: C(n, 2) ?? 0, z: C(n, 3) ?? 0, visibility: C(n, 4) ?? 0 });
2082
+ for (const n of It(t, Oo, 1)) e.push({ x: C(n, 1) ?? 0, y: C(n, 2) ?? 0, z: C(n, 3) ?? 0, visibility: C(n, 4) ?? 0 });
2082
2083
  return e;
2083
2084
  }
2084
- function Js(t) {
2085
+ function $s(t) {
2085
2086
  return Array.from(t, (e) => e > 127 ? e - 256 : e);
2086
2087
  }
2087
- function Zs(t, e) {
2088
+ function Js(t, e) {
2088
2089
  if (t.length !== e.length) throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${t.length} vs. ${e.length}).`);
2089
2090
  let n = 0, r = 0, s = 0;
2090
2091
  for (let i = 0; i < t.length; i++) n += t[i] * e[i], r += t[i] * t[i], s += e[i] * e[i];
@@ -2093,28 +2094,28 @@ function Zs(t, e) {
2093
2094
  }
2094
2095
  let nn;
2095
2096
  G[516587230] = [0, U, Zr, ir, D], G[518928384] = ir;
2096
- const e1 = 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]);
2097
- async function sa() {
2097
+ const t1 = 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]);
2098
+ async function ra() {
2098
2099
  if (nn === void 0) try {
2099
- await WebAssembly.instantiate(e1), nn = !0;
2100
+ await WebAssembly.instantiate(t1), nn = !0;
2100
2101
  } catch {
2101
2102
  nn = !1;
2102
2103
  }
2103
2104
  return nn;
2104
2105
  }
2105
- async function Re(t, e = L2``) {
2106
- const n = await sa() ? "wasm_internal" : "wasm_nosimd_internal";
2106
+ async function Re(t, e = T2``) {
2107
+ const n = await ra() ? "wasm_internal" : "wasm_nosimd_internal";
2107
2108
  return { wasmLoaderPath: `${e}/${t}_${n}.js`, wasmBinaryPath: `${e}/${t}_${n}.wasm` };
2108
2109
  }
2109
2110
  var Wt = class {
2110
2111
  };
2111
- function ia() {
2112
+ function sa() {
2112
2113
  var t = navigator;
2113
2114
  return typeof OffscreenCanvas < "u" && (!function(e = navigator) {
2114
2115
  return (e = e.userAgent).includes("Safari") && !e.includes("Chrome");
2115
2116
  }(t) || !!((t = t.userAgent.match(/Version\/([\d]+).*Safari/)) && t.length >= 1 && Number(t[1]) >= 17));
2116
2117
  }
2117
- async function Qs(t) {
2118
+ async function Zs(t) {
2118
2119
  if (typeof importScripts != "function") {
2119
2120
  const e = document.createElement("script");
2120
2121
  return e.src = t.toString(), e.crossOrigin = "anonymous", new Promise((n, r) => {
@@ -2132,20 +2133,20 @@ async function Qs(t) {
2132
2133
  await self.import(t.toString());
2133
2134
  }
2134
2135
  }
2135
- function oa(t) {
2136
+ function ia(t) {
2136
2137
  return t.videoWidth !== void 0 ? [t.videoWidth, t.videoHeight] : t.naturalWidth !== void 0 ? [t.naturalWidth, t.naturalHeight] : t.displayWidth !== void 0 ? [t.displayWidth, t.displayHeight] : [t.width, t.height];
2137
2138
  }
2138
2139
  function g(t, e, n) {
2139
2140
  t.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"), n(e = t.i.stringToNewUTF8(e)), t.i._free(e);
2140
2141
  }
2141
- function ti(t, e, n) {
2142
+ function Qs(t, e, n) {
2142
2143
  if (!t.i.canvas) throw Error("No OpenGL canvas configured.");
2143
2144
  if (n ? t.i._bindTextureToStream(n) : t.i._bindTextureToCanvas(), !(n = t.i.canvas.getContext("webgl2") || t.i.canvas.getContext("webgl"))) throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");
2144
2145
  t.i.gpuOriginForWebTexturesIsBottomLeft && n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, !0), n.texImage2D(n.TEXTURE_2D, 0, n.RGBA, n.RGBA, n.UNSIGNED_BYTE, e), t.i.gpuOriginForWebTexturesIsBottomLeft && n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, !1);
2145
- const [r, s] = oa(e);
2146
+ const [r, s] = ia(e);
2146
2147
  return !t.l || r === t.i.canvas.width && s === t.i.canvas.height || (t.i.canvas.width = r, t.i.canvas.height = s), [r, s];
2147
2148
  }
2148
- function ei(t, e, n) {
2149
+ function ti(t, e, n) {
2149
2150
  t.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");
2150
2151
  const r = new Uint32Array(e.length);
2151
2152
  for (let s = 0; s < e.length; s++) r[s] = t.i.stringToNewUTF8(e[s]);
@@ -2173,19 +2174,19 @@ Wt.forVisionTasks = function(t) {
2173
2174
  }, Wt.forAudioTasks = function(t) {
2174
2175
  return Re("audio", t);
2175
2176
  }, Wt.isSimdSupported = function() {
2176
- return sa();
2177
+ return ra();
2177
2178
  };
2178
- async function n1(t, e, n, r) {
2179
+ async function e1(t, e, n, r) {
2179
2180
  return t = await (async (s, i, o, a, c) => {
2180
- if (i && await Qs(i), !self.ModuleFactory || o && (await Qs(o), !self.ModuleFactory)) throw Error("ModuleFactory not set.");
2181
+ if (i && await Zs(i), !self.ModuleFactory || o && (await Zs(o), !self.ModuleFactory)) throw Error("ModuleFactory not set.");
2181
2182
  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 s(c, a);
2182
2183
  })(t, n.wasmLoaderPath, n.assetLoaderPath, e, { locateFile: (s) => s.endsWith(".wasm") ? n.wasmBinaryPath.toString() : n.assetBinaryPath && s.endsWith(".data") ? n.assetBinaryPath.toString() : s }), await t.o(r), t;
2183
2184
  }
2184
2185
  function Xn(t, e) {
2185
2186
  const n = A(t.baseOptions, pn, 1) || new pn();
2186
- typeof e == "string" ? (k(n, 2, Je(e)), k(n, 1)) : e instanceof Uint8Array && (k(n, 1, yr(e, !1)), k(n, 2)), _(t.baseOptions, 0, 1, n);
2187
+ typeof e == "string" ? (k(n, 2, Je(e)), k(n, 1)) : e instanceof Uint8Array && (k(n, 1, _r(e, !1)), k(n, 2)), y(t.baseOptions, 0, 1, n);
2187
2188
  }
2188
- function ni(t) {
2189
+ function ei(t) {
2189
2190
  try {
2190
2191
  const e = t.H.length;
2191
2192
  if (e === 1) throw Error(t.H[0].message);
@@ -2217,12 +2218,12 @@ var cr = class {
2217
2218
  if ((n = t.baseOptions) != null && n.modelAssetBuffer && ((r = t.baseOptions) != null && r.modelAssetPath)) throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");
2218
2219
  if (!((s = A(this.baseOptions, pn, 1)) != null && s.g() || (i = A(this.baseOptions, pn, 1)) != null && i.l() || (o = t.baseOptions) != null && o.modelAssetBuffer || (a = t.baseOptions) != null && a.modelAssetPath)) throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");
2219
2220
  if (function(u, h) {
2220
- let f = A(u.baseOptions, qs, 3);
2221
+ let f = A(u.baseOptions, zs, 3);
2221
2222
  if (!f) {
2222
- var y = f = new qs(), v = new Gs();
2223
- Ue(y, 4, an, v);
2223
+ var _ = f = new zs(), v = new js();
2224
+ Ue(_, 4, an, v);
2224
2225
  }
2225
- "delegate" in h && (h.delegate === "GPU" ? (h = f, y = new F2(), Ue(h, 2, an, y)) : (h = f, y = new Gs(), Ue(h, 4, an, y))), _(u.baseOptions, 0, 3, f);
2226
+ "delegate" in h && (h.delegate === "GPU" ? (h = f, _ = new L2(), Ue(h, 2, an, _)) : (h = f, _ = new js(), Ue(h, 4, an, _))), y(u.baseOptions, 0, 3, f);
2226
2227
  }(this, c), c.modelAssetPath) return fetch(c.modelAssetPath.toString()).then((u) => {
2227
2228
  if (u.ok) return u.arrayBuffer();
2228
2229
  throw Error(`Failed to fetch model: ${c.modelAssetPath} (${u.status})`);
@@ -2237,14 +2238,14 @@ var cr = class {
2237
2238
  else if (c.modelAssetBuffer) return async function(u) {
2238
2239
  const h = [];
2239
2240
  for (var f = 0; ; ) {
2240
- const { done: y, value: v } = await u.read();
2241
- if (y) break;
2241
+ const { done: _, value: v } = await u.read();
2242
+ if (_) break;
2242
2243
  h.push(v), f += v.length;
2243
2244
  }
2244
2245
  if (h.length === 0) return new Uint8Array(0);
2245
2246
  if (h.length === 1) return h[0];
2246
2247
  u = new Uint8Array(f), f = 0;
2247
- for (const y of h) u.set(y, f), f += y.length;
2248
+ for (const _ of h) u.set(_, f), f += _.length;
2248
2249
  return u;
2249
2250
  }(c.modelAssetBuffer).then((u) => {
2250
2251
  Xn(this, u), this.m(), this.L();
@@ -2257,17 +2258,17 @@ var cr = class {
2257
2258
  ca() {
2258
2259
  let t;
2259
2260
  if (this.g.ca((e) => {
2260
- t = M2(e);
2261
+ t = F2(e);
2261
2262
  }), !t) throw Error("Failed to retrieve CalculatorGraphConfig");
2262
2263
  return t;
2263
2264
  }
2264
2265
  setGraph(t, e) {
2265
2266
  this.g.attachErrorListener((n, r) => {
2266
2267
  this.H.push(Error(r));
2267
- }), this.g.Ja(), this.g.setGraph(t, e), this.B = void 0, ni(this);
2268
+ }), this.g.Ja(), this.g.setGraph(t, e), this.B = void 0, ei(this);
2268
2269
  }
2269
2270
  finishProcessing() {
2270
- this.g.finishProcessing(), ni(this);
2271
+ this.g.finishProcessing(), ei(this);
2271
2272
  }
2272
2273
  close() {
2273
2274
  this.B = void 0, this.g.closeGraph();
@@ -2278,7 +2279,7 @@ function Ut(t, e) {
2278
2279
  return t;
2279
2280
  }
2280
2281
  cr.prototype.close = cr.prototype.close;
2281
- class r1 {
2282
+ class n1 {
2282
2283
  constructor(e, n, r, s) {
2283
2284
  this.g = e, this.h = n, this.m = r, this.l = s;
2284
2285
  }
@@ -2289,38 +2290,38 @@ class r1 {
2289
2290
  this.g.deleteVertexArray(this.h), this.g.deleteBuffer(this.m), this.g.deleteBuffer(this.l);
2290
2291
  }
2291
2292
  }
2292
- function ri(t, e, n) {
2293
+ function ni(t, e, n) {
2293
2294
  const r = t.g;
2294
2295
  if (n = Ut(r.createShader(n), "Failed to create WebGL shader"), r.shaderSource(n, e), r.compileShader(n), !r.getShaderParameter(n, r.COMPILE_STATUS)) throw Error(`Could not compile WebGL shader: ${r.getShaderInfoLog(n)}`);
2295
2296
  return r.attachShader(t.h, n), n;
2296
2297
  }
2297
- function si(t, e) {
2298
+ function ri(t, e) {
2298
2299
  const n = t.g, r = Ut(n.createVertexArray(), "Failed to create vertex array");
2299
2300
  n.bindVertexArray(r);
2300
2301
  const s = Ut(n.createBuffer(), "Failed to create buffer");
2301
2302
  n.bindBuffer(n.ARRAY_BUFFER, s), n.enableVertexAttribArray(t.O), n.vertexAttribPointer(t.O, 2, n.FLOAT, !1, 0, 0), n.bufferData(n.ARRAY_BUFFER, new Float32Array([-1, -1, -1, 1, 1, 1, 1, -1]), n.STATIC_DRAW);
2302
2303
  const i = Ut(n.createBuffer(), "Failed to create buffer");
2303
- return n.bindBuffer(n.ARRAY_BUFFER, i), n.enableVertexAttribArray(t.L), n.vertexAttribPointer(t.L, 2, n.FLOAT, !1, 0, 0), n.bufferData(n.ARRAY_BUFFER, new Float32Array(e ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), n.STATIC_DRAW), n.bindBuffer(n.ARRAY_BUFFER, null), n.bindVertexArray(null), new r1(n, r, s, i);
2304
+ return n.bindBuffer(n.ARRAY_BUFFER, i), n.enableVertexAttribArray(t.L), n.vertexAttribPointer(t.L, 2, n.FLOAT, !1, 0, 0), n.bufferData(n.ARRAY_BUFFER, new Float32Array(e ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), n.STATIC_DRAW), n.bindBuffer(n.ARRAY_BUFFER, null), n.bindVertexArray(null), new n1(n, r, s, i);
2304
2305
  }
2305
2306
  function es(t, e) {
2306
2307
  if (t.g) {
2307
2308
  if (e !== t.g) throw Error("Cannot change GL context once initialized");
2308
2309
  } else t.g = e;
2309
2310
  }
2310
- function s1(t, e, n, r) {
2311
- return es(t, e), t.h || (t.m(), t.D()), n ? (t.u || (t.u = si(t, !0)), n = t.u) : (t.A || (t.A = si(t, !1)), n = t.A), e.useProgram(t.h), n.bind(), t.l(), t = r(), n.g.bindVertexArray(null), t;
2311
+ function r1(t, e, n, r) {
2312
+ return es(t, e), t.h || (t.m(), t.D()), n ? (t.u || (t.u = ri(t, !0)), n = t.u) : (t.A || (t.A = ri(t, !1)), n = t.A), e.useProgram(t.h), n.bind(), t.l(), t = r(), n.g.bindVertexArray(null), t;
2312
2313
  }
2313
- function aa(t, e, n) {
2314
+ function oa(t, e, n) {
2314
2315
  return es(t, e), t = Ut(e.createTexture(), "Failed to create texture"), e.bindTexture(e.TEXTURE_2D, t), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, n ?? e.LINEAR), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, n ?? e.LINEAR), e.bindTexture(e.TEXTURE_2D, null), t;
2315
2316
  }
2316
- function ca(t, e, n) {
2317
+ function aa(t, e, n) {
2317
2318
  es(t, e), t.B || (t.B = Ut(e.createFramebuffer(), "Failed to create framebuffe.")), e.bindFramebuffer(e.FRAMEBUFFER, t.B), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, n, 0);
2318
2319
  }
2319
- function i1(t) {
2320
+ function s1(t) {
2320
2321
  var e;
2321
2322
  (e = t.g) == null || e.bindFramebuffer(t.g.FRAMEBUFFER, null);
2322
2323
  }
2323
- var ha = class {
2324
+ var ca = class {
2324
2325
  H() {
2325
2326
  return `
2326
2327
  precision mediump float;
@@ -2333,14 +2334,14 @@ var ha = class {
2333
2334
  }
2334
2335
  m() {
2335
2336
  const t = this.g;
2336
- if (this.h = Ut(t.createProgram(), "Failed to create WebGL program"), this.X = ri(this, `
2337
+ if (this.h = Ut(t.createProgram(), "Failed to create WebGL program"), this.X = ni(this, `
2337
2338
  attribute vec2 aVertex;
2338
2339
  attribute vec2 aTex;
2339
2340
  varying vec2 vTex;
2340
2341
  void main(void) {
2341
2342
  gl_Position = vec4(aVertex, 0.0, 1.0);
2342
2343
  vTex = aTex;
2343
- }`, t.VERTEX_SHADER), this.W = ri(this, this.H(), t.FRAGMENT_SHADER), t.linkProgram(this.h), !t.getProgramParameter(this.h, t.LINK_STATUS)) throw Error(`Error during program linking: ${t.getProgramInfoLog(this.h)}`);
2344
+ }`, t.VERTEX_SHADER), this.W = ni(this, this.H(), t.FRAGMENT_SHADER), t.linkProgram(this.h), !t.getProgramParameter(this.h, t.LINK_STATUS)) throw Error(`Error during program linking: ${t.getProgramInfoLog(this.h)}`);
2344
2345
  this.O = t.getAttribLocation(this.h, "aVertex"), this.L = t.getAttribLocation(this.h, "aTex");
2345
2346
  }
2346
2347
  D() {
@@ -2375,7 +2376,7 @@ function hr(t) {
2375
2376
  e = new Float32Array(t.width * t.height);
2376
2377
  const r = we(t);
2377
2378
  var n = ns(t);
2378
- if (ca(n, r, ua(t)), "iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform) || navigator.userAgent.includes("Mac") && "document" in self && "ontouchend" in self.document) {
2379
+ if (aa(n, r, ha(t)), "iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform) || navigator.userAgent.includes("Mac") && "document" in self && "ontouchend" in self.document) {
2379
2380
  n = new Float32Array(t.width * t.height * 4), r.readPixels(0, 0, t.width, t.height, r.RGBA, r.FLOAT, n);
2380
2381
  for (let s = 0, i = 0; s < e.length; ++s, i += 4) e[s] = n[i];
2381
2382
  } else r.readPixels(0, 0, t.width, t.height, r.RED, r.FLOAT, e);
@@ -2384,12 +2385,12 @@ function hr(t) {
2384
2385
  }
2385
2386
  return e;
2386
2387
  }
2387
- function ua(t) {
2388
+ function ha(t) {
2388
2389
  let e = Mt(t, 2);
2389
2390
  if (!e) {
2390
2391
  const n = we(t);
2391
- e = fa(t);
2392
- const r = hr(t), s = la(t);
2392
+ e = la(t);
2393
+ const r = hr(t), s = ua(t);
2393
2394
  n.texImage2D(n.TEXTURE_2D, 0, s, t.width, t.height, 0, n.RED, n.FLOAT, r), ur(t);
2394
2395
  }
2395
2396
  return e;
@@ -2398,7 +2399,7 @@ function we(t) {
2398
2399
  if (!t.canvas) throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");
2399
2400
  return t.h || (t.h = Ut(t.canvas.getContext("webgl2"), "You cannot use a canvas that is already bound to a different type of rendering context.")), t.h;
2400
2401
  }
2401
- function la(t) {
2402
+ function ua(t) {
2402
2403
  if (t = we(t), !rn) if (t.getExtension("EXT_color_buffer_float") && t.getExtension("OES_texture_float_linear") && t.getExtension("EXT_float_blend")) rn = t.R32F;
2403
2404
  else {
2404
2405
  if (!t.getExtension("EXT_color_buffer_half_float")) throw Error("GPU does not fully support 4-channel float32 or float16 formats");
@@ -2407,20 +2408,20 @@ function la(t) {
2407
2408
  return rn;
2408
2409
  }
2409
2410
  function ns(t) {
2410
- return t.l || (t.l = new ha()), t.l;
2411
+ return t.l || (t.l = new ca()), t.l;
2411
2412
  }
2412
- function fa(t) {
2413
+ function la(t) {
2413
2414
  const e = we(t);
2414
2415
  e.viewport(0, 0, t.width, t.height), e.activeTexture(e.TEXTURE0);
2415
2416
  let n = Mt(t, 2);
2416
- return n || (n = aa(ns(t), e, t.m ? e.LINEAR : e.NEAREST), t.g.push(n), t.j = !0), e.bindTexture(e.TEXTURE_2D, n), n;
2417
+ return n || (n = oa(ns(t), e, t.m ? e.LINEAR : e.NEAREST), t.g.push(n), t.j = !0), e.bindTexture(e.TEXTURE_2D, n), n;
2417
2418
  }
2418
2419
  function ur(t) {
2419
2420
  t.h.bindTexture(t.h.TEXTURE_2D, null);
2420
2421
  }
2421
2422
  var rn, H = class {
2422
2423
  constructor(t, e, n, r, s, i, o) {
2423
- this.g = t, this.m = e, this.j = n, this.canvas = r, this.l = s, this.width = i, this.height = o, this.j && --ii === 0 && console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.");
2424
+ this.g = t, this.m = e, this.j = n, this.canvas = r, this.l = s, this.width = i, this.height = o, this.j && --si === 0 && console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.");
2424
2425
  }
2425
2426
  Fa() {
2426
2427
  return !!Mt(this, 0);
@@ -2439,7 +2440,7 @@ var rn, H = class {
2439
2440
  return hr(this);
2440
2441
  }
2441
2442
  N() {
2442
- return ua(this);
2443
+ return ha(this);
2443
2444
  }
2444
2445
  clone() {
2445
2446
  const t = [];
@@ -2451,11 +2452,11 @@ var rn, H = class {
2451
2452
  if (!(e instanceof WebGLTexture)) throw Error(`Type is not supported: ${e}`);
2452
2453
  {
2453
2454
  const r = we(this), s = ns(this);
2454
- r.activeTexture(r.TEXTURE1), n = aa(s, r, this.m ? r.LINEAR : r.NEAREST), r.bindTexture(r.TEXTURE_2D, n);
2455
- const i = la(this);
2456
- r.texImage2D(r.TEXTURE_2D, 0, i, this.width, this.height, 0, r.RED, r.FLOAT, null), r.bindTexture(r.TEXTURE_2D, null), ca(s, r, n), s1(s, r, !1, () => {
2457
- fa(this), r.clearColor(0, 0, 0, 0), r.clear(r.COLOR_BUFFER_BIT), r.drawArrays(r.TRIANGLE_FAN, 0, 4), ur(this);
2458
- }), i1(s), ur(this);
2455
+ r.activeTexture(r.TEXTURE1), n = oa(s, r, this.m ? r.LINEAR : r.NEAREST), r.bindTexture(r.TEXTURE_2D, n);
2456
+ const i = ua(this);
2457
+ r.texImage2D(r.TEXTURE_2D, 0, i, this.width, this.height, 0, r.RED, r.FLOAT, null), r.bindTexture(r.TEXTURE_2D, null), aa(s, r, n), r1(s, r, !1, () => {
2458
+ la(this), r.clearColor(0, 0, 0, 0), r.clear(r.COLOR_BUFFER_BIT), r.drawArrays(r.TRIANGLE_FAN, 0, 4), ur(this);
2459
+ }), s1(s), ur(this);
2459
2460
  }
2460
2461
  }
2461
2462
  t.push(n);
@@ -2463,23 +2464,23 @@ var rn, H = class {
2463
2464
  return new H(t, this.m, this.R(), this.canvas, this.l, this.width, this.height);
2464
2465
  }
2465
2466
  close() {
2466
- this.j && we(this).deleteTexture(Mt(this, 2)), ii = -1;
2467
+ this.j && we(this).deleteTexture(Mt(this, 2)), si = -1;
2467
2468
  }
2468
2469
  };
2469
2470
  H.prototype.close = H.prototype.close, H.prototype.clone = H.prototype.clone, H.prototype.getAsWebGLTexture = H.prototype.N, H.prototype.getAsFloat32Array = H.prototype.ia, H.prototype.getAsUint8Array = H.prototype.ja, H.prototype.hasWebGLTexture = H.prototype.R, H.prototype.hasFloat32Array = H.prototype.ka, H.prototype.hasUint8Array = H.prototype.Fa;
2470
- var ii = 250;
2471
- function _t(...t) {
2471
+ var si = 250;
2472
+ function yt(...t) {
2472
2473
  return t.map(([e, n]) => ({ start: e, end: n }));
2473
2474
  }
2474
- const o1 = /* @__PURE__ */ function(t) {
2475
+ const i1 = /* @__PURE__ */ function(t) {
2475
2476
  return class extends t {
2476
2477
  Ja() {
2477
2478
  this.i._registerModelResourcesGraphService();
2478
2479
  }
2479
2480
  };
2480
- }((oi = class {
2481
+ }((ii = class {
2481
2482
  constructor(t, e) {
2482
- this.l = !0, this.i = t, this.g = null, this.h = 0, this.m = typeof this.i._addIntToInputStream == "function", e !== void 0 ? this.i.canvas = e : ia() ? 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"));
2483
+ this.l = !0, this.i = t, this.g = null, this.h = 0, this.m = typeof this.i._addIntToInputStream == "function", e !== void 0 ? this.i.canvas = e : sa() ? 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"));
2483
2484
  }
2484
2485
  async initializeGraph(t) {
2485
2486
  const e = await (await fetch(t)).arrayBuffer();
@@ -2532,7 +2533,7 @@ const o1 = /* @__PURE__ */ function(t) {
2532
2533
  }
2533
2534
  addGpuBufferToStream(t, e, n) {
2534
2535
  g(this, e, (r) => {
2535
- const [s, i] = ti(this, t, r);
2536
+ const [s, i] = Qs(this, t, r);
2536
2537
  this.i._addBoundTextureToStream(r, s, i, n);
2537
2538
  });
2538
2539
  }
@@ -2570,8 +2571,8 @@ const o1 = /* @__PURE__ */ function(t) {
2570
2571
  }
2571
2572
  addStringRecordToStream(t, e, n) {
2572
2573
  g(this, e, (r) => {
2573
- ei(this, Object.keys(t), (s) => {
2574
- ei(this, Object.values(t), (i) => {
2574
+ ti(this, Object.keys(t), (s) => {
2575
+ ti(this, Object.values(t), (i) => {
2575
2576
  this.i._addFlatHashMapToInputStream(s, i, Object.keys(t).length, r, n);
2576
2577
  });
2577
2578
  });
@@ -2813,13 +2814,13 @@ const o1 = /* @__PURE__ */ function(t) {
2813
2814
  closeGraph() {
2814
2815
  this.i._closeGraph(), this.i.simpleListeners = void 0, this.i.emptyPacketListeners = void 0;
2815
2816
  }
2816
- }, class extends oi {
2817
+ }, class extends ii {
2817
2818
  get ga() {
2818
2819
  return this.i;
2819
2820
  }
2820
2821
  pa(t, e, n) {
2821
2822
  g(this, e, (r) => {
2822
- const [s, i] = ti(this, t, r);
2823
+ const [s, i] = Qs(this, t, r);
2823
2824
  this.ga._addBoundTextureAsImageToStream(r, s, i, n);
2824
2825
  });
2825
2826
  }
@@ -2834,16 +2835,16 @@ const o1 = /* @__PURE__ */ function(t) {
2834
2835
  });
2835
2836
  }
2836
2837
  }));
2837
- var oi, yt = class extends o1 {
2838
+ var ii, _t = class extends i1 {
2838
2839
  };
2839
2840
  async function b(t, e, n) {
2840
2841
  return async function(r, s, i, o) {
2841
- return n1(r, s, i, o);
2842
- }(t, n.canvas ?? (ia() ? void 0 : document.createElement("canvas")), e, n);
2842
+ return e1(r, s, i, o);
2843
+ }(t, n.canvas ?? (sa() ? void 0 : document.createElement("canvas")), e, n);
2843
2844
  }
2844
- function da(t, e, n, r) {
2845
+ function fa(t, e, n, r) {
2845
2846
  if (t.U) {
2846
- const i = new No();
2847
+ const i = new xo();
2847
2848
  if (n != null && n.regionOfInterest) {
2848
2849
  if (!t.oa) throw Error("This task doesn't support region-of-interest.");
2849
2850
  var s = n.regionOfInterest;
@@ -2854,7 +2855,7 @@ function da(t, e, n, r) {
2854
2855
  if (n != null && n.rotationDegrees) {
2855
2856
  if ((n == null ? void 0 : n.rotationDegrees) % 90 != 0) throw Error("Expected rotation to be a multiple of 90°.");
2856
2857
  if (m(i, 5, -Math.PI * n.rotationDegrees / 180), (n == null ? void 0 : n.rotationDegrees) % 180 != 0) {
2857
- const [o, a] = oa(e);
2858
+ const [o, a] = ia(e);
2858
2859
  n = C(i, 3) * a / o, s = C(i, 4) * o / a, m(i, 4, n), m(i, 3, s);
2859
2860
  }
2860
2861
  }
@@ -2865,12 +2866,12 @@ function da(t, e, n, r) {
2865
2866
  function vt(t, e, n) {
2866
2867
  var r;
2867
2868
  if ((r = t.baseOptions) != null && r.g()) throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");
2868
- da(t, e, n, t.C + 1);
2869
+ fa(t, e, n, t.C + 1);
2869
2870
  }
2870
2871
  function Ft(t, e, n, r) {
2871
2872
  var s;
2872
2873
  if (!((s = t.baseOptions) != null && s.g())) throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");
2873
- da(t, e, n, r);
2874
+ fa(t, e, n, r);
2874
2875
  }
2875
2876
  function be(t, e, n, r) {
2876
2877
  var s = e.data;
@@ -2880,7 +2881,7 @@ function be(t, e, n, r) {
2880
2881
  }
2881
2882
  var at = class extends cr {
2882
2883
  constructor(t, e, n, r) {
2883
- super(t), this.g = t, this.X = e, this.U = n, this.oa = r, this.P = new ha();
2884
+ super(t), this.g = t, this.X = e, this.U = n, this.oa = r, this.P = new ca();
2884
2885
  }
2885
2886
  l(t, e = !0) {
2886
2887
  if ("runningMode" in t && k(this.baseOptions, 2, Ke(!!t.runningMode && t.runningMode !== "IMAGE")), t.canvas !== void 0 && this.g.i.canvas !== t.canvas) throw Error("You must create a new task to reset the canvas.");
@@ -2893,13 +2894,13 @@ var at = class extends cr {
2893
2894
  at.prototype.close = at.prototype.close;
2894
2895
  var ut = class extends at {
2895
2896
  constructor(t, e) {
2896
- super(new yt(t, e), "image_in", "norm_rect_in", !1), this.j = { detections: [] }, _(t = this.h = new Nn(), 0, 1, e = new I()), m(this.h, 2, 0.5), m(this.h, 3, 0.3);
2897
+ super(new _t(t, e), "image_in", "norm_rect_in", !1), this.j = { detections: [] }, y(t = this.h = new Nn(), 0, 1, e = new x()), m(this.h, 2, 0.5), m(this.h, 3, 0.3);
2897
2898
  }
2898
2899
  get baseOptions() {
2899
- return A(this.h, I, 1);
2900
+ return A(this.h, x, 1);
2900
2901
  }
2901
2902
  set baseOptions(t) {
2902
- _(this.h, 0, 1, t);
2903
+ y(this.h, 0, 1, t);
2903
2904
  }
2904
2905
  o(t) {
2905
2906
  return "minDetectionConfidence" in t && m(this.h, 2, t.minDetectionConfidence ?? 0.5), "minSuppressionThreshold" in t && m(this.h, 3, t.minSuppressionThreshold ?? 0.3), this.l(t);
@@ -2914,10 +2915,10 @@ var ut = class extends at {
2914
2915
  var t = new ht();
2915
2916
  O(t, "image_in"), O(t, "norm_rect_in"), E(t, "detections");
2916
2917
  const e = new ct();
2917
- Tt(e, G2, this.h);
2918
+ Tt(e, j2, this.h);
2918
2919
  const n = new Z();
2919
2920
  it(n, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"), F(n, "IMAGE:image_in"), F(n, "NORM_RECT:norm_rect_in"), w(n, "DETECTIONS:detections"), n.o(e), gt(t, n), this.g.attachProtoVectorListener("detections", (r, s) => {
2920
- for (const i of r) r = Oo(i), this.j.detections.push(ra(r));
2921
+ for (const i of r) r = Po(i), this.j.detections.push(na(r));
2921
2922
  l(this, s);
2922
2923
  }), this.g.attachEmptyPacketListener("detections", (r) => {
2923
2924
  l(this, r);
@@ -2931,34 +2932,34 @@ ut.prototype.detectForVideo = ut.prototype.G, ut.prototype.detect = ut.prototype
2931
2932
  }, ut.createFromOptions = function(t, e) {
2932
2933
  return b(ut, t, e);
2933
2934
  };
2934
- var rs = _t([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]), ss = _t([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]), is = _t([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), pa = _t([474, 475], [475, 476], [476, 477], [477, 474]), os = _t([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]), as = _t([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), ga = _t([469, 470], [470, 471], [471, 472], [472, 469]), cs = _t([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]), ma = [...rs, ...ss, ...is, ...os, ...as, ...cs], _a = _t([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]);
2935
- function ai(t) {
2935
+ var rs = yt([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]), ss = yt([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]), is = yt([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), da = yt([474, 475], [475, 476], [476, 477], [477, 474]), os = yt([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]), as = yt([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), pa = yt([469, 470], [470, 471], [471, 472], [472, 469]), cs = yt([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]), ga = [...rs, ...ss, ...is, ...os, ...as, ...cs], ma = yt([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]);
2936
+ function oi(t) {
2936
2937
  t.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] };
2937
2938
  }
2938
2939
  var M = class extends at {
2939
2940
  constructor(t, e) {
2940
- super(new yt(t, e), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1, _(t = this.h = new Uo(), 0, 1, e = new I()), this.A = new Do(), _(this.h, 0, 3, this.A), this.u = new Nn(), _(this.h, 0, 2, this.u), It(this.u, 4, 1), m(this.u, 2, 0.5), m(this.A, 2, 0.5), m(this.h, 4, 0.5);
2941
+ super(new _t(t, e), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1, y(t = this.h = new Do(), 0, 1, e = new x()), this.A = new Bo(), y(this.h, 0, 3, this.A), this.u = new Nn(), y(this.h, 0, 2, this.u), xt(this.u, 4, 1), m(this.u, 2, 0.5), m(this.A, 2, 0.5), m(this.h, 4, 0.5);
2941
2942
  }
2942
2943
  get baseOptions() {
2943
- return A(this.h, I, 1);
2944
+ return A(this.h, x, 1);
2944
2945
  }
2945
2946
  set baseOptions(t) {
2946
- _(this.h, 0, 1, t);
2947
+ y(this.h, 0, 1, t);
2947
2948
  }
2948
2949
  o(t) {
2949
- return "numFaces" in t && It(this.u, 4, t.numFaces ?? 1), "minFaceDetectionConfidence" in t && m(this.u, 2, t.minFaceDetectionConfidence ?? 0.5), "minTrackingConfidence" in t && m(this.h, 4, t.minTrackingConfidence ?? 0.5), "minFacePresenceConfidence" in t && m(this.A, 2, t.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in t && (this.outputFaceBlendshapes = !!t.outputFaceBlendshapes), "outputFacialTransformationMatrixes" in t && (this.outputFacialTransformationMatrixes = !!t.outputFacialTransformationMatrixes), this.l(t);
2950
+ return "numFaces" in t && xt(this.u, 4, t.numFaces ?? 1), "minFaceDetectionConfidence" in t && m(this.u, 2, t.minFaceDetectionConfidence ?? 0.5), "minTrackingConfidence" in t && m(this.h, 4, t.minTrackingConfidence ?? 0.5), "minFacePresenceConfidence" in t && m(this.A, 2, t.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in t && (this.outputFaceBlendshapes = !!t.outputFaceBlendshapes), "outputFacialTransformationMatrixes" in t && (this.outputFacialTransformationMatrixes = !!t.outputFacialTransformationMatrixes), this.l(t);
2950
2951
  }
2951
2952
  F(t, e) {
2952
- return ai(this), vt(this, t, e), this.j;
2953
+ return oi(this), vt(this, t, e), this.j;
2953
2954
  }
2954
2955
  G(t, e, n) {
2955
- return ai(this), Ft(this, t, n, e), this.j;
2956
+ return oi(this), Ft(this, t, n, e), this.j;
2956
2957
  }
2957
2958
  m() {
2958
2959
  var t = new ht();
2959
2960
  O(t, "image_in"), O(t, "norm_rect"), E(t, "face_landmarks");
2960
2961
  const e = new ct();
2961
- Tt(e, H2, this.h);
2962
+ Tt(e, V2, this.h);
2962
2963
  const n = new Z();
2963
2964
  it(n, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"), F(n, "IMAGE:image_in"), F(n, "NORM_RECT:norm_rect"), w(n, "NORM_LANDMARKS:face_landmarks"), n.o(e), gt(t, n), this.g.attachProtoVectorListener("face_landmarks", (r, s) => {
2964
2965
  for (const i of r) r = tn(i), this.j.faceLandmarks.push(Cn(r));
@@ -2966,12 +2967,12 @@ var M = class extends at {
2966
2967
  }), this.g.attachEmptyPacketListener("face_landmarks", (r) => {
2967
2968
  l(this, r);
2968
2969
  }), this.outputFaceBlendshapes && (E(t, "blendshapes"), w(n, "BLENDSHAPES:blendshapes"), this.g.attachProtoVectorListener("blendshapes", (r, s) => {
2969
- if (this.outputFaceBlendshapes) for (const i of r) r = In(i), this.j.faceBlendshapes.push(ts(r.g() ?? []));
2970
+ if (this.outputFaceBlendshapes) for (const i of r) r = xn(i), this.j.faceBlendshapes.push(ts(r.g() ?? []));
2970
2971
  l(this, s);
2971
2972
  }), this.g.attachEmptyPacketListener("blendshapes", (r) => {
2972
2973
  l(this, r);
2973
2974
  })), this.outputFacialTransformationMatrixes && (E(t, "face_geometry"), w(n, "FACE_GEOMETRY:face_geometry"), this.g.attachProtoVectorListener("face_geometry", (r, s) => {
2974
- if (this.outputFacialTransformationMatrixes) for (const i of r) (r = A(r = V2(i), I2, 2)) && this.j.facialTransformationMatrixes.push({ rows: dt(r, 1) ?? 0 ?? 0, columns: dt(r, 2) ?? 0 ?? 0, data: zt(r, 3, At, Kt()).slice() ?? [] });
2975
+ if (this.outputFacialTransformationMatrixes) for (const i of r) (r = A(r = G2(i), I2, 2)) && this.j.facialTransformationMatrixes.push({ rows: dt(r, 1) ?? 0 ?? 0, columns: dt(r, 2) ?? 0 ?? 0, data: zt(r, 3, At, Kt()).slice() ?? [] });
2975
2976
  l(this, s);
2976
2977
  }), this.g.attachEmptyPacketListener("face_geometry", (r) => {
2977
2978
  l(this, r);
@@ -2984,18 +2985,18 @@ M.prototype.detectForVideo = M.prototype.G, M.prototype.detect = M.prototype.F,
2984
2985
  return b(M, t, { baseOptions: { modelAssetBuffer: e } });
2985
2986
  }, M.createFromOptions = function(t, e) {
2986
2987
  return b(M, t, e);
2987
- }, M.FACE_LANDMARKS_LIPS = rs, M.FACE_LANDMARKS_LEFT_EYE = ss, M.FACE_LANDMARKS_LEFT_EYEBROW = is, M.FACE_LANDMARKS_LEFT_IRIS = pa, M.FACE_LANDMARKS_RIGHT_EYE = os, M.FACE_LANDMARKS_RIGHT_EYEBROW = as, M.FACE_LANDMARKS_RIGHT_IRIS = ga, M.FACE_LANDMARKS_FACE_OVAL = cs, M.FACE_LANDMARKS_CONTOURS = ma, M.FACE_LANDMARKS_TESSELATION = _a;
2988
- var hs = _t([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]);
2989
- function ci(t) {
2988
+ }, M.FACE_LANDMARKS_LIPS = rs, M.FACE_LANDMARKS_LEFT_EYE = ss, M.FACE_LANDMARKS_LEFT_EYEBROW = is, M.FACE_LANDMARKS_LEFT_IRIS = da, M.FACE_LANDMARKS_RIGHT_EYE = os, M.FACE_LANDMARKS_RIGHT_EYEBROW = as, M.FACE_LANDMARKS_RIGHT_IRIS = pa, M.FACE_LANDMARKS_FACE_OVAL = cs, M.FACE_LANDMARKS_CONTOURS = ga, M.FACE_LANDMARKS_TESSELATION = ma;
2989
+ var hs = yt([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]);
2990
+ function ai(t) {
2990
2991
  t.gestures = [], t.landmarks = [], t.worldLandmarks = [], t.handedness = [];
2991
2992
  }
2992
- function hi(t) {
2993
+ function ci(t) {
2993
2994
  return t.gestures.length === 0 ? { gestures: [], landmarks: [], worldLandmarks: [], handedness: [], handednesses: [] } : { gestures: t.gestures, landmarks: t.landmarks, worldLandmarks: t.worldLandmarks, handedness: t.handedness, handednesses: t.handedness };
2994
2995
  }
2995
- function ui(t, e = !0) {
2996
+ function hi(t, e = !0) {
2996
2997
  const n = [];
2997
2998
  for (const s of t) {
2998
- var r = In(s);
2999
+ var r = xn(s);
2999
3000
  t = [];
3000
3001
  for (const i of r.g()) r = e && dt(i, 1) != null ? dt(i, 1) ?? 0 : -1, t.push({ score: C(i, 2) ?? 0, index: r, categoryName: q(L(i, 3)) ?? "" ?? "", displayName: q(L(i, 4)) ?? "" ?? "" });
3001
3002
  n.push(t);
@@ -3004,39 +3005,39 @@ function ui(t, e = !0) {
3004
3005
  }
3005
3006
  var Q = class extends at {
3006
3007
  constructor(t, e) {
3007
- super(new yt(t, e), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], _(t = this.j = new Vo(), 0, 1, e = new I()), this.u = new $r(), _(this.j, 0, 2, this.u), this.D = new Yr(), _(this.u, 0, 3, this.D), this.A = new Go(), _(this.u, 0, 2, this.A), this.h = new W2(), _(this.j, 0, 3, this.h), m(this.A, 2, 0.5), m(this.u, 4, 0.5), m(this.D, 2, 0.5);
3008
+ super(new _t(t, e), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], y(t = this.j = new Go(), 0, 1, e = new x()), this.u = new $r(), y(this.j, 0, 2, this.u), this.D = new Yr(), y(this.u, 0, 3, this.D), this.A = new jo(), y(this.u, 0, 2, this.A), this.h = new H2(), y(this.j, 0, 3, this.h), m(this.A, 2, 0.5), m(this.u, 4, 0.5), m(this.D, 2, 0.5);
3008
3009
  }
3009
3010
  get baseOptions() {
3010
- return A(this.j, I, 1);
3011
+ return A(this.j, x, 1);
3011
3012
  }
3012
3013
  set baseOptions(t) {
3013
- _(this.j, 0, 1, t);
3014
+ y(this.j, 0, 1, t);
3014
3015
  }
3015
3016
  o(t) {
3016
3017
  var s, i, o, a;
3017
- if (It(this.A, 3, t.numHands ?? 1), "minHandDetectionConfidence" in t && m(this.A, 2, t.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in t && m(this.u, 4, t.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in t && m(this.D, 2, t.minHandPresenceConfidence ?? 0.5), t.cannedGesturesClassifierOptions) {
3018
+ if (xt(this.A, 3, t.numHands ?? 1), "minHandDetectionConfidence" in t && m(this.A, 2, t.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in t && m(this.u, 4, t.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in t && m(this.D, 2, t.minHandPresenceConfidence ?? 0.5), t.cannedGesturesClassifierOptions) {
3018
3019
  var e = new oe(), n = e, r = ar(t.cannedGesturesClassifierOptions, (s = A(this.h, oe, 3)) == null ? void 0 : s.l());
3019
- _(n, 0, 2, r), _(this.h, 0, 3, e);
3020
+ y(n, 0, 2, r), y(this.h, 0, 3, e);
3020
3021
  } else t.cannedGesturesClassifierOptions === void 0 && ((i = A(this.h, oe, 3)) == null || i.g());
3021
- return t.customGesturesClassifierOptions ? (_(n = e = new oe(), 0, 2, r = ar(t.customGesturesClassifierOptions, (o = A(this.h, oe, 4)) == null ? void 0 : o.l())), _(this.h, 0, 4, e)) : t.customGesturesClassifierOptions === void 0 && ((a = A(this.h, oe, 4)) == null || a.g()), this.l(t);
3022
+ return t.customGesturesClassifierOptions ? (y(n = e = new oe(), 0, 2, r = ar(t.customGesturesClassifierOptions, (o = A(this.h, oe, 4)) == null ? void 0 : o.l())), y(this.h, 0, 4, e)) : t.customGesturesClassifierOptions === void 0 && ((a = A(this.h, oe, 4)) == null || a.g()), this.l(t);
3022
3023
  }
3023
3024
  Ha(t, e) {
3024
- return ci(this), vt(this, t, e), hi(this);
3025
+ return ai(this), vt(this, t, e), ci(this);
3025
3026
  }
3026
3027
  Ia(t, e, n) {
3027
- return ci(this), Ft(this, t, n, e), hi(this);
3028
+ return ai(this), Ft(this, t, n, e), ci(this);
3028
3029
  }
3029
3030
  m() {
3030
3031
  var t = new ht();
3031
3032
  O(t, "image_in"), O(t, "norm_rect"), E(t, "hand_gestures"), E(t, "hand_landmarks"), E(t, "world_hand_landmarks"), E(t, "handedness");
3032
3033
  const e = new ct();
3033
- Tt(e, K2, this.j);
3034
+ Tt(e, W2, this.j);
3034
3035
  const n = new Z();
3035
3036
  it(n, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"), F(n, "IMAGE:image_in"), F(n, "NORM_RECT:norm_rect"), w(n, "HAND_GESTURES:hand_gestures"), w(n, "LANDMARKS:hand_landmarks"), w(n, "WORLD_LANDMARKS:world_hand_landmarks"), w(n, "HANDEDNESS:handedness"), n.o(e), gt(t, n), this.g.attachProtoVectorListener("hand_landmarks", (r, s) => {
3036
3037
  for (const i of r) {
3037
3038
  r = tn(i);
3038
3039
  const o = [];
3039
- for (const a of xt(r, Io, 1)) o.push({ x: C(a, 1) ?? 0, y: C(a, 2) ?? 0, z: C(a, 3) ?? 0, visibility: C(a, 4) ?? 0 });
3040
+ for (const a of It(r, Io, 1)) o.push({ x: C(a, 1) ?? 0, y: C(a, 2) ?? 0, z: C(a, 3) ?? 0, visibility: C(a, 4) ?? 0 });
3040
3041
  this.landmarks.push(o);
3041
3042
  }
3042
3043
  l(this, s);
@@ -3046,24 +3047,24 @@ var Q = class extends at {
3046
3047
  for (const i of r) {
3047
3048
  r = he(i);
3048
3049
  const o = [];
3049
- for (const a of xt(r, xo, 1)) o.push({ x: C(a, 1) ?? 0, y: C(a, 2) ?? 0, z: C(a, 3) ?? 0, visibility: C(a, 4) ?? 0 });
3050
+ for (const a of It(r, Oo, 1)) o.push({ x: C(a, 1) ?? 0, y: C(a, 2) ?? 0, z: C(a, 3) ?? 0, visibility: C(a, 4) ?? 0 });
3050
3051
  this.worldLandmarks.push(o);
3051
3052
  }
3052
3053
  l(this, s);
3053
3054
  }), this.g.attachEmptyPacketListener("world_hand_landmarks", (r) => {
3054
3055
  l(this, r);
3055
3056
  }), this.g.attachProtoVectorListener("hand_gestures", (r, s) => {
3056
- this.gestures.push(...ui(r, !1)), l(this, s);
3057
+ this.gestures.push(...hi(r, !1)), l(this, s);
3057
3058
  }), this.g.attachEmptyPacketListener("hand_gestures", (r) => {
3058
3059
  l(this, r);
3059
3060
  }), this.g.attachProtoVectorListener("handedness", (r, s) => {
3060
- this.handedness.push(...ui(r)), l(this, s);
3061
+ this.handedness.push(...hi(r)), l(this, s);
3061
3062
  }), this.g.attachEmptyPacketListener("handedness", (r) => {
3062
3063
  l(this, r);
3063
3064
  }), t = t.g(), this.setGraph(new Uint8Array(t), !0);
3064
3065
  }
3065
3066
  };
3066
- function li(t) {
3067
+ function ui(t) {
3067
3068
  return { landmarks: t.landmarks, worldLandmarks: t.worldLandmarks, handednesses: t.handedness, handedness: t.handedness };
3068
3069
  }
3069
3070
  Q.prototype.recognizeForVideo = Q.prototype.Ia, Q.prototype.recognize = Q.prototype.Ha, Q.prototype.setOptions = Q.prototype.o, Q.createFromModelPath = function(t, e) {
@@ -3075,28 +3076,28 @@ Q.prototype.recognizeForVideo = Q.prototype.Ia, Q.prototype.recognize = Q.protot
3075
3076
  }, Q.HAND_CONNECTIONS = hs;
3076
3077
  var J = class extends at {
3077
3078
  constructor(t, e) {
3078
- super(new yt(t, e), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], _(t = this.h = new $r(), 0, 1, e = new I()), this.u = new Yr(), _(this.h, 0, 3, this.u), this.j = new Go(), _(this.h, 0, 2, this.j), It(this.j, 3, 1), m(this.j, 2, 0.5), m(this.u, 2, 0.5), m(this.h, 4, 0.5);
3079
+ super(new _t(t, e), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], y(t = this.h = new $r(), 0, 1, e = new x()), this.u = new Yr(), y(this.h, 0, 3, this.u), this.j = new jo(), y(this.h, 0, 2, this.j), xt(this.j, 3, 1), m(this.j, 2, 0.5), m(this.u, 2, 0.5), m(this.h, 4, 0.5);
3079
3080
  }
3080
3081
  get baseOptions() {
3081
- return A(this.h, I, 1);
3082
+ return A(this.h, x, 1);
3082
3083
  }
3083
3084
  set baseOptions(t) {
3084
- _(this.h, 0, 1, t);
3085
+ y(this.h, 0, 1, t);
3085
3086
  }
3086
3087
  o(t) {
3087
- return "numHands" in t && It(this.j, 3, t.numHands ?? 1), "minHandDetectionConfidence" in t && m(this.j, 2, t.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in t && m(this.h, 4, t.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in t && m(this.u, 2, t.minHandPresenceConfidence ?? 0.5), this.l(t);
3088
+ return "numHands" in t && xt(this.j, 3, t.numHands ?? 1), "minHandDetectionConfidence" in t && m(this.j, 2, t.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in t && m(this.h, 4, t.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in t && m(this.u, 2, t.minHandPresenceConfidence ?? 0.5), this.l(t);
3088
3089
  }
3089
3090
  F(t, e) {
3090
- return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], vt(this, t, e), li(this);
3091
+ return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], vt(this, t, e), ui(this);
3091
3092
  }
3092
3093
  G(t, e, n) {
3093
- return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Ft(this, t, n, e), li(this);
3094
+ return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Ft(this, t, n, e), ui(this);
3094
3095
  }
3095
3096
  m() {
3096
3097
  var t = new ht();
3097
3098
  O(t, "image_in"), O(t, "norm_rect"), E(t, "hand_landmarks"), E(t, "world_hand_landmarks"), E(t, "handedness");
3098
3099
  const e = new ct();
3099
- Tt(e, z2, this.h);
3100
+ Tt(e, K2, this.h);
3100
3101
  const n = new Z();
3101
3102
  it(n, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"), F(n, "IMAGE:image_in"), F(n, "NORM_RECT:norm_rect"), w(n, "LANDMARKS:hand_landmarks"), w(n, "WORLD_LANDMARKS:world_hand_landmarks"), w(n, "HANDEDNESS:handedness"), n.o(e), gt(t, n), this.g.attachProtoVectorListener("hand_landmarks", (r, s) => {
3102
3103
  for (const i of r) r = tn(i), this.landmarks.push(Cn(r));
@@ -3112,7 +3113,7 @@ var J = class extends at {
3112
3113
  var i = this.handedness, o = i.push;
3113
3114
  const a = [];
3114
3115
  for (const c of r) {
3115
- r = In(c);
3116
+ r = xn(c);
3116
3117
  const u = [];
3117
3118
  for (const h of r.g()) u.push({ score: C(h, 2) ?? 0, index: dt(h, 1) ?? 0 ?? -1, categoryName: q(L(h, 3)) ?? "" ?? "", displayName: q(L(h, 4)) ?? "" ?? "" });
3118
3119
  a.push(u);
@@ -3130,11 +3131,11 @@ J.prototype.detectForVideo = J.prototype.G, J.prototype.detect = J.prototype.F,
3130
3131
  }, J.createFromOptions = function(t, e) {
3131
3132
  return b(J, t, e);
3132
3133
  }, J.HAND_CONNECTIONS = hs;
3133
- var ya = _t([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]);
3134
- function fi(t) {
3134
+ var ya = yt([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]);
3135
+ function li(t) {
3135
3136
  t.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] };
3136
3137
  }
3137
- function di(t) {
3138
+ function fi(t) {
3138
3139
  try {
3139
3140
  if (!t.D) return t.h;
3140
3141
  t.D(t.h);
@@ -3147,38 +3148,38 @@ function sn(t, e) {
3147
3148
  }
3148
3149
  var T = class extends at {
3149
3150
  constructor(t, e) {
3150
- super(new yt(t, e), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1, _(t = this.j = new qo(), 0, 1, e = new I()), this.I = new Yr(), _(this.j, 0, 2, this.I), this.W = new q2(), _(this.j, 0, 3, this.W), this.u = new Nn(), _(this.j, 0, 4, this.u), this.O = new Do(), _(this.j, 0, 5, this.O), this.A = new Ko(), _(this.j, 0, 6, this.A), this.M = new zo(), _(this.j, 0, 7, this.M), m(this.u, 2, 0.5), m(this.u, 3, 0.3), m(this.O, 2, 0.5), m(this.A, 2, 0.5), m(this.A, 3, 0.3), m(this.M, 2, 0.5), m(this.I, 2, 0.5);
3151
+ super(new _t(t, e), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1, y(t = this.j = new zo(), 0, 1, e = new x()), this.I = new Yr(), y(this.j, 0, 2, this.I), this.W = new z2(), y(this.j, 0, 3, this.W), this.u = new Nn(), y(this.j, 0, 4, this.u), this.O = new Bo(), y(this.j, 0, 5, this.O), this.A = new Wo(), y(this.j, 0, 6, this.A), this.M = new Ko(), y(this.j, 0, 7, this.M), m(this.u, 2, 0.5), m(this.u, 3, 0.3), m(this.O, 2, 0.5), m(this.A, 2, 0.5), m(this.A, 3, 0.3), m(this.M, 2, 0.5), m(this.I, 2, 0.5);
3151
3152
  }
3152
3153
  get baseOptions() {
3153
- return A(this.j, I, 1);
3154
+ return A(this.j, x, 1);
3154
3155
  }
3155
3156
  set baseOptions(t) {
3156
- _(this.j, 0, 1, t);
3157
+ y(this.j, 0, 1, t);
3157
3158
  }
3158
3159
  o(t) {
3159
3160
  return "minFaceDetectionConfidence" in t && m(this.u, 2, t.minFaceDetectionConfidence ?? 0.5), "minFaceSuppressionThreshold" in t && m(this.u, 3, t.minFaceSuppressionThreshold ?? 0.3), "minFacePresenceConfidence" in t && m(this.O, 2, t.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in t && (this.outputFaceBlendshapes = !!t.outputFaceBlendshapes), "minPoseDetectionConfidence" in t && m(this.A, 2, t.minPoseDetectionConfidence ?? 0.5), "minPoseSuppressionThreshold" in t && m(this.A, 3, t.minPoseSuppressionThreshold ?? 0.3), "minPosePresenceConfidence" in t && m(this.M, 2, t.minPosePresenceConfidence ?? 0.5), "outputPoseSegmentationMasks" in t && (this.outputPoseSegmentationMasks = !!t.outputPoseSegmentationMasks), "minHandLandmarksConfidence" in t && m(this.I, 2, t.minHandLandmarksConfidence ?? 0.5), this.l(t);
3160
3161
  }
3161
3162
  F(t, e, n) {
3162
3163
  const r = typeof e != "function" ? e : {};
3163
- return this.D = typeof e == "function" ? e : n, fi(this), vt(this, t, r), di(this);
3164
+ return this.D = typeof e == "function" ? e : n, li(this), vt(this, t, r), fi(this);
3164
3165
  }
3165
3166
  G(t, e, n, r) {
3166
3167
  const s = typeof n != "function" ? n : {};
3167
- return this.D = typeof n == "function" ? n : r, fi(this), Ft(this, t, s, e), di(this);
3168
+ return this.D = typeof n == "function" ? n : r, li(this), Ft(this, t, s, e), fi(this);
3168
3169
  }
3169
3170
  m() {
3170
3171
  var t = new ht();
3171
3172
  O(t, "input_frames_image"), E(t, "pose_landmarks"), E(t, "pose_world_landmarks"), E(t, "face_landmarks"), E(t, "left_hand_landmarks"), E(t, "left_hand_world_landmarks"), E(t, "right_hand_landmarks"), E(t, "right_hand_world_landmarks");
3172
- const e = new ct(), n = new Bs();
3173
+ const e = new ct(), n = new Rs();
3173
3174
  it(n, 1, "type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"), function(s, i) {
3174
3175
  if (i != null) if (Array.isArray(i)) k(s, 2, bn(i, 0, ze));
3175
3176
  else {
3176
3177
  if (!(typeof i == "string" || i instanceof Et || mr(i))) throw Error("invalid value in Any.value field: " + i + " expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");
3177
- Bt(s, 2, yr(i, !1), Zt());
3178
+ Bt(s, 2, _r(i, !1), Zt());
3178
3179
  }
3179
3180
  }(n, this.j.g());
3180
3181
  const r = new Z();
3181
- it(r, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), Ir(r, 8, Bs, n), F(r, "IMAGE:input_frames_image"), w(r, "POSE_LANDMARKS:pose_landmarks"), w(r, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), w(r, "FACE_LANDMARKS:face_landmarks"), w(r, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), w(r, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), w(r, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), w(r, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), r.o(e), gt(t, r), Rn(this, t), this.g.attachProtoListener("pose_landmarks", (s, i) => {
3182
+ it(r, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), xr(r, 8, Rs, n), F(r, "IMAGE:input_frames_image"), w(r, "POSE_LANDMARKS:pose_landmarks"), w(r, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), w(r, "FACE_LANDMARKS:face_landmarks"), w(r, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), w(r, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), w(r, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), w(r, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), r.o(e), gt(t, r), Rn(this, t), this.g.attachProtoListener("pose_landmarks", (s, i) => {
3182
3183
  sn(s, this.h.poseLandmarks), l(this, i);
3183
3184
  }), this.g.attachEmptyPacketListener("pose_landmarks", (s) => {
3184
3185
  l(this, s);
@@ -3197,7 +3198,7 @@ var T = class extends at {
3197
3198
  l(this, s);
3198
3199
  }), this.outputFaceBlendshapes && (E(t, "extra_blendshapes"), w(r, "FACE_BLENDSHAPES:extra_blendshapes"), this.g.attachProtoListener("extra_blendshapes", (s, i) => {
3199
3200
  var o = this.h.faceBlendshapes;
3200
- this.outputFaceBlendshapes && (s = In(s), o.push(ts(s.g() ?? []))), l(this, i);
3201
+ this.outputFaceBlendshapes && (s = xn(s), o.push(ts(s.g() ?? []))), l(this, i);
3201
3202
  }), this.g.attachEmptyPacketListener("extra_blendshapes", (s) => {
3202
3203
  l(this, s);
3203
3204
  })), this.g.attachProtoListener("left_hand_landmarks", (s, i) => {
@@ -3227,19 +3228,19 @@ T.prototype.detectForVideo = T.prototype.G, T.prototype.detect = T.prototype.F,
3227
3228
  return b(T, t, { baseOptions: { modelAssetBuffer: e } });
3228
3229
  }, T.createFromOptions = function(t, e) {
3229
3230
  return b(T, t, e);
3230
- }, T.HAND_CONNECTIONS = hs, T.POSE_CONNECTIONS = ya, T.FACE_LANDMARKS_LIPS = rs, T.FACE_LANDMARKS_LEFT_EYE = ss, T.FACE_LANDMARKS_LEFT_EYEBROW = is, T.FACE_LANDMARKS_LEFT_IRIS = pa, T.FACE_LANDMARKS_RIGHT_EYE = os, T.FACE_LANDMARKS_RIGHT_EYEBROW = as, T.FACE_LANDMARKS_RIGHT_IRIS = ga, T.FACE_LANDMARKS_FACE_OVAL = cs, T.FACE_LANDMARKS_CONTOURS = ma, T.FACE_LANDMARKS_TESSELATION = _a;
3231
+ }, T.HAND_CONNECTIONS = hs, T.POSE_CONNECTIONS = ya, T.FACE_LANDMARKS_LIPS = rs, T.FACE_LANDMARKS_LEFT_EYE = ss, T.FACE_LANDMARKS_LEFT_EYEBROW = is, T.FACE_LANDMARKS_LEFT_IRIS = da, T.FACE_LANDMARKS_RIGHT_EYE = os, T.FACE_LANDMARKS_RIGHT_EYEBROW = as, T.FACE_LANDMARKS_RIGHT_IRIS = pa, T.FACE_LANDMARKS_FACE_OVAL = cs, T.FACE_LANDMARKS_CONTOURS = ga, T.FACE_LANDMARKS_TESSELATION = ma;
3231
3232
  var lt = class extends at {
3232
3233
  constructor(t, e) {
3233
- super(new yt(t, e), "input_image", "norm_rect", !0), this.j = { classifications: [] }, _(t = this.h = new Xo(), 0, 1, e = new I());
3234
+ super(new _t(t, e), "input_image", "norm_rect", !0), this.j = { classifications: [] }, y(t = this.h = new qo(), 0, 1, e = new x());
3234
3235
  }
3235
3236
  get baseOptions() {
3236
- return A(this.h, I, 1);
3237
+ return A(this.h, x, 1);
3237
3238
  }
3238
3239
  set baseOptions(t) {
3239
- _(this.h, 0, 1, t);
3240
+ y(this.h, 0, 1, t);
3240
3241
  }
3241
3242
  o(t) {
3242
- return _(this.h, 0, 2, ar(t, A(this.h, qr, 2))), this.l(t);
3243
+ return y(this.h, 0, 2, ar(t, A(this.h, qr, 2))), this.l(t);
3243
3244
  }
3244
3245
  sa(t, e) {
3245
3246
  return this.j = { classifications: [] }, vt(this, t, e), this.j;
@@ -3251,10 +3252,10 @@ var lt = class extends at {
3251
3252
  var t = new ht();
3252
3253
  O(t, "input_image"), O(t, "norm_rect"), E(t, "classifications");
3253
3254
  const e = new ct();
3254
- Tt(e, X2, this.h);
3255
+ Tt(e, q2, this.h);
3255
3256
  const n = new Z();
3256
3257
  it(n, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"), F(n, "IMAGE:input_image"), F(n, "NORM_RECT:norm_rect"), w(n, "CLASSIFICATIONS:classifications"), n.o(e), gt(t, n), this.g.attachProtoListener("classifications", (r, s) => {
3257
- this.j = t1(R2(r)), l(this, s);
3258
+ this.j = Q2(C2(r)), l(this, s);
3258
3259
  }), this.g.attachEmptyPacketListener("classifications", (r) => {
3259
3260
  l(this, r);
3260
3261
  }), t = t.g(), this.setGraph(new Uint8Array(t), !0);
@@ -3269,17 +3270,17 @@ lt.prototype.classifyForVideo = lt.prototype.ta, lt.prototype.classify = lt.prot
3269
3270
  };
3270
3271
  var tt = class extends at {
3271
3272
  constructor(t, e) {
3272
- super(new yt(t, e), "image_in", "norm_rect", !0), this.h = new Yo(), this.embeddings = { embeddings: [] }, _(t = this.h, 0, 1, e = new I());
3273
+ super(new _t(t, e), "image_in", "norm_rect", !0), this.h = new Xo(), this.embeddings = { embeddings: [] }, y(t = this.h, 0, 1, e = new x());
3273
3274
  }
3274
3275
  get baseOptions() {
3275
- return A(this.h, I, 1);
3276
+ return A(this.h, x, 1);
3276
3277
  }
3277
3278
  set baseOptions(t) {
3278
- _(this.h, 0, 1, t);
3279
+ y(this.h, 0, 1, t);
3279
3280
  }
3280
3281
  o(t) {
3281
- var e = this.h, n = A(this.h, zs, 2);
3282
- return n = n ? n.clone() : new zs(), t.l2Normalize !== void 0 ? k(n, 1, Ke(t.l2Normalize)) : "l2Normalize" in t && k(n, 1), t.quantize !== void 0 ? k(n, 2, Ke(t.quantize)) : "quantize" in t && k(n, 2), _(e, 0, 2, n), this.l(t);
3282
+ var e = this.h, n = A(this.h, Ks, 2);
3283
+ return n = n ? n.clone() : new Ks(), t.l2Normalize !== void 0 ? k(n, 1, Ke(t.l2Normalize)) : "l2Normalize" in t && k(n, 1), t.quantize !== void 0 ? k(n, 2, Ke(t.quantize)) : "quantize" in t && k(n, 2), y(e, 0, 2, n), this.l(t);
3283
3284
  }
3284
3285
  za(t, e) {
3285
3286
  return vt(this, t, e), this.embeddings;
@@ -3291,16 +3292,16 @@ var tt = class extends at {
3291
3292
  var t = new ht();
3292
3293
  O(t, "image_in"), O(t, "norm_rect"), E(t, "embeddings_out");
3293
3294
  const e = new ct();
3294
- Tt(e, Y2, this.h);
3295
+ Tt(e, X2, this.h);
3295
3296
  const n = new Z();
3296
3297
  it(n, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"), F(n, "IMAGE:image_in"), F(n, "NORM_RECT:norm_rect"), w(n, "EMBEDDINGS:embeddings_out"), n.o(e), gt(t, n), this.g.attachProtoListener("embeddings_out", (r, s) => {
3297
- r = U2(r), this.embeddings = function(i) {
3298
- return { embeddings: xt(i, D2, 1).map((o) => {
3298
+ r = D2(r), this.embeddings = function(i) {
3299
+ return { embeddings: It(i, B2, 1).map((o) => {
3299
3300
  var u, h;
3300
3301
  const a = { headIndex: dt(o, 3) ?? 0 ?? -1, headName: q(L(o, 4)) ?? "" ?? "" };
3301
3302
  var c = o.v;
3302
- return Wi(c, 0 | c[d], Ks, Hn(o, 1)) !== void 0 ? (o = zt(o = A(o, Ks, Hn(o, 1), void 0), 1, At, Kt()), a.floatEmbedding = o.slice()) : (c = new Uint8Array(0), a.quantizedEmbedding = ((h = (u = A(o, B2, Hn(o, 2), void 0)) == null ? void 0 : u.na()) == null ? void 0 : h.h()) ?? c), a;
3303
- }), timestampMs: na(qi(i)) };
3303
+ return Hi(c, 0 | c[d], Ws, Hn(o, 1)) !== void 0 ? (o = zt(o = A(o, Ws, Hn(o, 1), void 0), 1, At, Kt()), a.floatEmbedding = o.slice()) : (c = new Uint8Array(0), a.quantizedEmbedding = ((h = (u = A(o, R2, Hn(o, 2), void 0)) == null ? void 0 : u.na()) == null ? void 0 : h.h()) ?? c), a;
3304
+ }), timestampMs: ea(zi(i)) };
3304
3305
  }(r), l(this, s);
3305
3306
  }), this.g.attachEmptyPacketListener("embeddings_out", (r) => {
3306
3307
  l(this, r);
@@ -3308,10 +3309,10 @@ var tt = class extends at {
3308
3309
  }
3309
3310
  };
3310
3311
  tt.cosineSimilarity = function(t, e) {
3311
- if (t.floatEmbedding && e.floatEmbedding) t = Zs(t.floatEmbedding, e.floatEmbedding);
3312
+ if (t.floatEmbedding && e.floatEmbedding) t = Js(t.floatEmbedding, e.floatEmbedding);
3312
3313
  else {
3313
3314
  if (!t.quantizedEmbedding || !e.quantizedEmbedding) throw Error("Cannot compute cosine similarity between quantized and float embeddings.");
3314
- t = Zs(Js(t.quantizedEmbedding), Js(e.quantizedEmbedding));
3315
+ t = Js($s(t.quantizedEmbedding), $s(e.quantizedEmbedding));
3315
3316
  }
3316
3317
  return t;
3317
3318
  }, tt.prototype.embedForVideo = tt.prototype.Aa, tt.prototype.embed = tt.prototype.za, tt.prototype.setOptions = tt.prototype.o, tt.createFromModelPath = function(t, e) {
@@ -3332,20 +3333,20 @@ var lr = class {
3332
3333
  }), (e = this.categoryMask) == null || e.close();
3333
3334
  }
3334
3335
  };
3335
- function a1(t) {
3336
+ function o1(t) {
3336
3337
  var n, r;
3337
3338
  const e = function(s) {
3338
- return xt(s, Z, 1);
3339
+ return It(s, Z, 1);
3339
3340
  }(t.ca()).filter((s) => (q(L(s, 1)) ?? "").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));
3340
3341
  if (t.u = [], e.length > 1) throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");
3341
3342
  e.length === 1 && (((r = (n = A(e[0], ct, 7)) == null ? void 0 : n.j()) == null ? void 0 : r.g()) ?? /* @__PURE__ */ new Map()).forEach((s, i) => {
3342
3343
  t.u[Number(i)] = q(L(s, 1)) ?? "";
3343
3344
  });
3344
3345
  }
3345
- function pi(t) {
3346
+ function di(t) {
3346
3347
  t.categoryMask = void 0, t.confidenceMasks = void 0, t.qualityScores = void 0;
3347
3348
  }
3348
- function gi(t) {
3349
+ function pi(t) {
3349
3350
  try {
3350
3351
  const e = new lr(t.confidenceMasks, t.categoryMask, t.qualityScores);
3351
3352
  if (!t.j) return e;
@@ -3357,27 +3358,27 @@ function gi(t) {
3357
3358
  lr.prototype.close = lr.prototype.close;
3358
3359
  var $ = class extends at {
3359
3360
  constructor(t, e) {
3360
- super(new yt(t, e), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Qr(), this.A = new $o(), _(this.h, 0, 3, this.A), _(t = this.h, 0, 1, e = new I());
3361
+ super(new _t(t, e), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Qr(), this.A = new Yo(), y(this.h, 0, 3, this.A), y(t = this.h, 0, 1, e = new x());
3361
3362
  }
3362
3363
  get baseOptions() {
3363
- return A(this.h, I, 1);
3364
+ return A(this.h, x, 1);
3364
3365
  }
3365
3366
  set baseOptions(t) {
3366
- _(this.h, 0, 1, t);
3367
+ y(this.h, 0, 1, t);
3367
3368
  }
3368
3369
  o(t) {
3369
3370
  return t.displayNamesLocale !== void 0 ? k(this.h, 2, Je(t.displayNamesLocale)) : "displayNamesLocale" in t && k(this.h, 2), "outputCategoryMask" in t && (this.outputCategoryMask = t.outputCategoryMask ?? !1), "outputConfidenceMasks" in t && (this.outputConfidenceMasks = t.outputConfidenceMasks ?? !0), super.l(t);
3370
3371
  }
3371
3372
  L() {
3372
- a1(this);
3373
+ o1(this);
3373
3374
  }
3374
3375
  segment(t, e, n) {
3375
3376
  const r = typeof e != "function" ? e : {};
3376
- return this.j = typeof e == "function" ? e : n, pi(this), vt(this, t, r), gi(this);
3377
+ return this.j = typeof e == "function" ? e : n, di(this), vt(this, t, r), pi(this);
3377
3378
  }
3378
3379
  La(t, e, n, r) {
3379
3380
  const s = typeof n != "function" ? n : {};
3380
- return this.j = typeof n == "function" ? n : r, pi(this), Ft(this, t, s, e), gi(this);
3381
+ return this.j = typeof n == "function" ? n : r, di(this), Ft(this, t, s, e), pi(this);
3381
3382
  }
3382
3383
  Da() {
3383
3384
  return this.u;
@@ -3386,7 +3387,7 @@ var $ = class extends at {
3386
3387
  var t = new ht();
3387
3388
  O(t, "image_in"), O(t, "norm_rect");
3388
3389
  const e = new ct();
3389
- Tt(e, Zo, this.h);
3390
+ Tt(e, Jo, this.h);
3390
3391
  const n = new Z();
3391
3392
  it(n, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), F(n, "IMAGE:image_in"), F(n, "NORM_RECT:norm_rect"), n.o(e), gt(t, n), Rn(this, t), this.outputConfidenceMasks && (E(t, "confidence_masks"), w(n, "CONFIDENCE_MASKS:confidence_masks"), ve(this, "confidence_masks"), this.g.aa("confidence_masks", (r, s) => {
3392
3393
  this.confidenceMasks = r.map((i) => be(this, i, !0, !this.j)), l(this, s);
@@ -3424,28 +3425,28 @@ var fr = class {
3424
3425
  fr.prototype.close = fr.prototype.close;
3425
3426
  var bt = class extends at {
3426
3427
  constructor(t, e) {
3427
- super(new yt(t, e), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Qr(), this.u = new $o(), _(this.h, 0, 3, this.u), _(t = this.h, 0, 1, e = new I());
3428
+ super(new _t(t, e), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Qr(), this.u = new Yo(), y(this.h, 0, 3, this.u), y(t = this.h, 0, 1, e = new x());
3428
3429
  }
3429
3430
  get baseOptions() {
3430
- return A(this.h, I, 1);
3431
+ return A(this.h, x, 1);
3431
3432
  }
3432
3433
  set baseOptions(t) {
3433
- _(this.h, 0, 1, t);
3434
+ y(this.h, 0, 1, t);
3434
3435
  }
3435
3436
  o(t) {
3436
3437
  return "outputCategoryMask" in t && (this.outputCategoryMask = t.outputCategoryMask ?? !1), "outputConfidenceMasks" in t && (this.outputConfidenceMasks = t.outputConfidenceMasks ?? !0), super.l(t);
3437
3438
  }
3438
3439
  segment(t, e, n, r) {
3439
3440
  const s = typeof n != "function" ? n : {};
3440
- if (this.j = typeof n == "function" ? n : r, this.qualityScores = this.categoryMask = this.confidenceMasks = void 0, n = this.C + 1, r = new Qo(), e.keypoint && e.scribble) throw Error("Cannot provide both keypoint and scribble.");
3441
+ if (this.j = typeof n == "function" ? n : r, this.qualityScores = this.categoryMask = this.confidenceMasks = void 0, n = this.C + 1, r = new Zo(), e.keypoint && e.scribble) throw Error("Cannot provide both keypoint and scribble.");
3441
3442
  if (e.keypoint) {
3442
3443
  var i = new qn();
3443
3444
  Bt(i, 3, Ke(!0), !1), Bt(i, 1, De(e.keypoint.x), 0), Bt(i, 2, De(e.keypoint.y), 0), Ue(r, 1, or, i);
3444
3445
  } else {
3445
3446
  if (!e.scribble) throw Error("Must provide either a keypoint or a scribble.");
3446
3447
  {
3447
- const a = new J2();
3448
- for (i of e.scribble) Bt(e = new qn(), 3, Ke(!0), !1), Bt(e, 1, De(i.x), 0), Bt(e, 2, De(i.y), 0), Ir(a, 1, qn, e);
3448
+ const a = new $2();
3449
+ for (i of e.scribble) Bt(e = new qn(), 3, Ke(!0), !1), Bt(e, 1, De(i.x), 0), Bt(e, 2, De(i.y), 0), xr(a, 1, qn, e);
3449
3450
  Ue(r, 2, or, a);
3450
3451
  }
3451
3452
  }
@@ -3469,7 +3470,7 @@ var bt = class extends at {
3469
3470
  var t = new ht();
3470
3471
  O(t, "image_in"), O(t, "roi_in"), O(t, "norm_rect_in");
3471
3472
  const e = new ct();
3472
- Tt(e, Zo, this.h);
3473
+ Tt(e, Jo, this.h);
3473
3474
  const n = new Z();
3474
3475
  it(n, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"), F(n, "IMAGE:image_in"), F(n, "ROI:roi_in"), F(n, "NORM_RECT:norm_rect_in"), n.o(e), gt(t, n), Rn(this, t), this.outputConfidenceMasks && (E(t, "confidence_masks"), w(n, "CONFIDENCE_MASKS:confidence_masks"), ve(this, "confidence_masks"), this.g.aa("confidence_masks", (r, s) => {
3475
3476
  this.confidenceMasks = r.map((i) => be(this, i, !0, !this.j)), l(this, s);
@@ -3495,16 +3496,16 @@ bt.prototype.segment = bt.prototype.segment, bt.prototype.setOptions = bt.protot
3495
3496
  };
3496
3497
  var ft = class extends at {
3497
3498
  constructor(t, e) {
3498
- super(new yt(t, e), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] }, _(t = this.h = new ta(), 0, 1, e = new I());
3499
+ super(new _t(t, e), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] }, y(t = this.h = new Qo(), 0, 1, e = new x());
3499
3500
  }
3500
3501
  get baseOptions() {
3501
- return A(this.h, I, 1);
3502
+ return A(this.h, x, 1);
3502
3503
  }
3503
3504
  set baseOptions(t) {
3504
- _(this.h, 0, 1, t);
3505
+ y(this.h, 0, 1, t);
3505
3506
  }
3506
3507
  o(t) {
3507
- return t.displayNamesLocale !== void 0 ? k(this.h, 2, Je(t.displayNamesLocale)) : "displayNamesLocale" in t && k(this.h, 2), t.maxResults !== void 0 ? It(this.h, 3, t.maxResults) : "maxResults" in t && k(this.h, 3), t.scoreThreshold !== void 0 ? m(this.h, 4, t.scoreThreshold) : "scoreThreshold" in t && k(this.h, 4), t.categoryAllowlist !== void 0 ? un(this.h, 5, t.categoryAllowlist) : "categoryAllowlist" in t && k(this.h, 5), t.categoryDenylist !== void 0 ? un(this.h, 6, t.categoryDenylist) : "categoryDenylist" in t && k(this.h, 6), this.l(t);
3508
+ return t.displayNamesLocale !== void 0 ? k(this.h, 2, Je(t.displayNamesLocale)) : "displayNamesLocale" in t && k(this.h, 2), t.maxResults !== void 0 ? xt(this.h, 3, t.maxResults) : "maxResults" in t && k(this.h, 3), t.scoreThreshold !== void 0 ? m(this.h, 4, t.scoreThreshold) : "scoreThreshold" in t && k(this.h, 4), t.categoryAllowlist !== void 0 ? un(this.h, 5, t.categoryAllowlist) : "categoryAllowlist" in t && k(this.h, 5), t.categoryDenylist !== void 0 ? un(this.h, 6, t.categoryDenylist) : "categoryDenylist" in t && k(this.h, 6), this.l(t);
3508
3509
  }
3509
3510
  F(t, e) {
3510
3511
  return this.j = { detections: [] }, vt(this, t, e), this.j;
@@ -3516,10 +3517,10 @@ var ft = class extends at {
3516
3517
  var t = new ht();
3517
3518
  O(t, "input_frame_gpu"), O(t, "norm_rect"), E(t, "detections");
3518
3519
  const e = new ct();
3519
- Tt(e, Z2, this.h);
3520
+ Tt(e, J2, this.h);
3520
3521
  const n = new Z();
3521
3522
  it(n, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"), F(n, "IMAGE:input_frame_gpu"), F(n, "NORM_RECT:norm_rect"), w(n, "DETECTIONS:detections"), n.o(e), gt(t, n), this.g.attachProtoVectorListener("detections", (r, s) => {
3522
- for (const i of r) r = Oo(i), this.j.detections.push(ra(r));
3523
+ for (const i of r) r = Po(i), this.j.detections.push(na(r));
3523
3524
  l(this, s);
3524
3525
  }), this.g.attachEmptyPacketListener("detections", (r) => {
3525
3526
  l(this, r);
@@ -3544,10 +3545,10 @@ var dr = class {
3544
3545
  });
3545
3546
  }
3546
3547
  };
3547
- function mi(t) {
3548
+ function gi(t) {
3548
3549
  t.landmarks = [], t.worldLandmarks = [], t.segmentationMasks = void 0;
3549
3550
  }
3550
- function _i(t) {
3551
+ function mi(t) {
3551
3552
  try {
3552
3553
  const e = new dr(t.landmarks, t.worldLandmarks, t.segmentationMasks);
3553
3554
  if (!t.u) return e;
@@ -3559,30 +3560,30 @@ function _i(t) {
3559
3560
  dr.prototype.close = dr.prototype.close;
3560
3561
  var et = class extends at {
3561
3562
  constructor(t, e) {
3562
- super(new yt(t, e), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1, _(t = this.h = new ea(), 0, 1, e = new I()), this.A = new zo(), _(this.h, 0, 3, this.A), this.j = new Ko(), _(this.h, 0, 2, this.j), It(this.j, 4, 1), m(this.j, 2, 0.5), m(this.A, 2, 0.5), m(this.h, 4, 0.5);
3563
+ super(new _t(t, e), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1, y(t = this.h = new ta(), 0, 1, e = new x()), this.A = new Ko(), y(this.h, 0, 3, this.A), this.j = new Wo(), y(this.h, 0, 2, this.j), xt(this.j, 4, 1), m(this.j, 2, 0.5), m(this.A, 2, 0.5), m(this.h, 4, 0.5);
3563
3564
  }
3564
3565
  get baseOptions() {
3565
- return A(this.h, I, 1);
3566
+ return A(this.h, x, 1);
3566
3567
  }
3567
3568
  set baseOptions(t) {
3568
- _(this.h, 0, 1, t);
3569
+ y(this.h, 0, 1, t);
3569
3570
  }
3570
3571
  o(t) {
3571
- return "numPoses" in t && It(this.j, 4, t.numPoses ?? 1), "minPoseDetectionConfidence" in t && m(this.j, 2, t.minPoseDetectionConfidence ?? 0.5), "minTrackingConfidence" in t && m(this.h, 4, t.minTrackingConfidence ?? 0.5), "minPosePresenceConfidence" in t && m(this.A, 2, t.minPosePresenceConfidence ?? 0.5), "outputSegmentationMasks" in t && (this.outputSegmentationMasks = t.outputSegmentationMasks ?? !1), this.l(t);
3572
+ return "numPoses" in t && xt(this.j, 4, t.numPoses ?? 1), "minPoseDetectionConfidence" in t && m(this.j, 2, t.minPoseDetectionConfidence ?? 0.5), "minTrackingConfidence" in t && m(this.h, 4, t.minTrackingConfidence ?? 0.5), "minPosePresenceConfidence" in t && m(this.A, 2, t.minPosePresenceConfidence ?? 0.5), "outputSegmentationMasks" in t && (this.outputSegmentationMasks = t.outputSegmentationMasks ?? !1), this.l(t);
3572
3573
  }
3573
3574
  F(t, e, n) {
3574
3575
  const r = typeof e != "function" ? e : {};
3575
- return this.u = typeof e == "function" ? e : n, mi(this), vt(this, t, r), _i(this);
3576
+ return this.u = typeof e == "function" ? e : n, gi(this), vt(this, t, r), mi(this);
3576
3577
  }
3577
3578
  G(t, e, n, r) {
3578
3579
  const s = typeof n != "function" ? n : {};
3579
- return this.u = typeof n == "function" ? n : r, mi(this), Ft(this, t, s, e), _i(this);
3580
+ return this.u = typeof n == "function" ? n : r, gi(this), Ft(this, t, s, e), mi(this);
3580
3581
  }
3581
3582
  m() {
3582
3583
  var t = new ht();
3583
3584
  O(t, "image_in"), O(t, "norm_rect"), E(t, "normalized_landmarks"), E(t, "world_landmarks"), E(t, "segmentation_masks");
3584
3585
  const e = new ct();
3585
- Tt(e, Q2, this.h);
3586
+ Tt(e, Z2, this.h);
3586
3587
  const n = new Z();
3587
3588
  it(n, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"), F(n, "IMAGE:image_in"), F(n, "NORM_RECT:norm_rect"), w(n, "NORM_LANDMARKS:normalized_landmarks"), w(n, "WORLD_LANDMARKS:world_landmarks"), n.o(e), gt(t, n), Rn(this, t), this.g.attachProtoVectorListener("normalized_landmarks", (r, s) => {
3588
3589
  this.landmarks = [];
@@ -3610,100 +3611,95 @@ et.prototype.detectForVideo = et.prototype.G, et.prototype.detect = et.prototype
3610
3611
  }, et.createFromOptions = function(t, e) {
3611
3612
  return b(et, t, e);
3612
3613
  }, et.POSE_CONNECTIONS = ya;
3613
- const c1 = ["Smile", "Blink", "Turn_Head", "Thumbs_Up"];
3614
- class h1 {
3614
+ class a1 {
3615
3615
  constructor(e) {
3616
- ls(this, "_detectLoop", () => {
3617
- var i, o;
3618
- if (this.state.status !== "capturing" || !this.videoElement) return;
3619
- const e = performance.now(), n = (i = this.models.face) == null ? void 0 : i.detectForVideo(this.videoElement, e), r = (o = this.models.hand) == null ? void 0 : o.detectForVideo(this.videoElement, e), s = this.state.sequence[this.state.currentStep];
3620
- this._checkAction(n, r, s) ? this._handleStepCompletion() : this.requestRef = requestAnimationFrame(this._detectLoop);
3621
- });
3622
- this.options = {
3623
- apiUrl: e.apiUrl,
3624
- duration: e.duration || 60,
3625
- smileThreshold: e.smileThreshold || 0.2,
3626
- blinkThreshold: e.blinkThreshold || 0.01,
3627
- minTurnHead: e.minTurnHead || 0.15,
3628
- maxTurnHead: e.maxTurnHead || 0.85,
3629
- onStateChange: e.onStateChange || (() => {
3630
- })
3631
- }, this.models = { face: null, hand: null }, this.state = {
3616
+ this.models = { face: null, hand: null }, this.timerId = null, this.requestId = null, this.CHALLENGE_POOL = ["Smile", "Blink", "Turn_Head", "Thumbs_Up"], this.detectLoop = () => {
3617
+ var o, a;
3618
+ if (this.state.status !== "capturing" || !this.webcam || !this.models.face) return;
3619
+ const n = this.webcam, r = performance.now(), s = (o = this.models.face) == null ? void 0 : o.detectForVideo(n, r), i = (a = this.models.hand) == null ? void 0 : a.detectForVideo(n, r);
3620
+ this.checkAction(s, i, this.state.sequence[this.currentStepRef]) && (this.isStepTransitioningRef || (this.isStepTransitioningRef = !0, this.updateState({ isStepTransitioning: !0 }), setTimeout(() => {
3621
+ this.currentStepRef < this.state.sequence.length - 1 ? (this.currentStepRef++, this.updateState({
3622
+ currentStep: this.currentStepRef,
3623
+ isStepTransitioning: !1
3624
+ }), this.isStepTransitioningRef = !1) : this.sendFinalProof();
3625
+ }, 1500))), this.requestId = requestAnimationFrame(this.detectLoop);
3626
+ }, this.apiUrl = e.apiUrl, this.duration = e.duration || 60, this.smileThreshold = e.smileThreshold ?? 0.2, this.blinkThreshold = e.blinkThreshold ?? 0.01, this.minturnHeadThreshold = e.minturnHeadThreshold ?? 0.15, this.maxturnHeadThreshold = e.maxturnHeadThreshold ?? 0.85, this.onStateChange = e.onStateChange, this.onComplete = e.onComplete, this.onError = e.onError, this.state = {
3632
3627
  status: "loading",
3633
- // loading, ready, capturing, verifying, success, error, expired
3634
3628
  sequence: [],
3635
3629
  currentStep: 0,
3636
- timeLeft: this.options.duration,
3630
+ timeLeft: this.duration,
3637
3631
  isStepTransitioning: !1,
3638
3632
  errorMsg: ""
3639
- }, this.videoElement = null, this.requestRef = null, this.timerInterval = null;
3633
+ }, this.currentStepRef = 0, this.isStepTransitioningRef = !1;
3640
3634
  }
3641
- // --- External Control ---
3635
+ /** Initialize the engine with the video element */
3642
3636
  async init(e) {
3643
- this.videoElement = e;
3637
+ this.webcam = e, await this.loadModels(), this.generateSequence(), this.updateState({ status: "ready" });
3638
+ }
3639
+ /** Start the liveness session */
3640
+ start() {
3641
+ this.state.status === "ready" && (this.updateState({ status: "capturing" }), this.startTimer(), this.detectLoop());
3642
+ }
3643
+ /** Stop the engine and cleanup */
3644
+ stop() {
3645
+ this.timerId && clearInterval(this.timerId), this.requestId && cancelAnimationFrame(this.requestId);
3646
+ }
3647
+ /** Reset the session */
3648
+ reset() {
3649
+ this.timerId && clearInterval(this.timerId), this.state = {
3650
+ status: "ready",
3651
+ sequence: this.generateSequence(),
3652
+ currentStep: 0,
3653
+ timeLeft: this.duration,
3654
+ isStepTransitioning: !1,
3655
+ errorMsg: ""
3656
+ }, this.currentStepRef = 0, this.isStepTransitioningRef = !1, this.updateState(this.state);
3657
+ }
3658
+ /** Internal: Update state and notify consumer */
3659
+ updateState(e) {
3660
+ var n;
3661
+ this.state = { ...this.state, ...e }, (n = this.onStateChange) == null || n.call(this, this.state);
3662
+ }
3663
+ /** Internal: Generate random challenge sequence */
3664
+ generateSequence() {
3665
+ const e = [...this.CHALLENGE_POOL].sort(() => 0.5 - Math.random()).slice(0, 3);
3666
+ return this.state.sequence = e, e;
3667
+ }
3668
+ /** Internal: Load MediaPipe models */
3669
+ async loadModels() {
3644
3670
  try {
3645
- const n = await Wt.forVisionTasks(
3671
+ const e = await Wt.forVisionTasks(
3646
3672
  "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.3/wasm"
3647
- );
3648
- this.models.face = await M.createFromOptions(n, {
3673
+ ), n = await M.createFromOptions(e, {
3649
3674
  baseOptions: {
3650
3675
  modelAssetPath: "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task",
3651
3676
  delegate: "GPU"
3652
3677
  },
3653
3678
  outputFaceBlendshapes: !0,
3654
3679
  runningMode: "VIDEO"
3655
- }), this.models.hand = await J.createFromOptions(n, {
3680
+ }), r = await J.createFromOptions(e, {
3656
3681
  baseOptions: {
3657
3682
  modelAssetPath: "https://storage.googleapis.com/mediapipe-models/hand_landmarker/hand_landmarker/float16/1/hand_landmarker.task",
3658
3683
  delegate: "GPU"
3659
3684
  },
3660
3685
  runningMode: "VIDEO",
3661
3686
  numHands: 1
3662
- }), this._generateSequence(), this._updateState({ status: "ready" });
3687
+ });
3688
+ this.models = { face: n, hand: r };
3663
3689
  } catch {
3664
- this._updateState({ status: "error", errorMsg: "Failed to load security assets." });
3690
+ this.updateState({ status: "error", errorMsg: "Failed to load security assets." });
3665
3691
  }
3666
3692
  }
3667
- start() {
3668
- this.state.status === "ready" && (this._updateState({ status: "capturing" }), this._startTimer(), this._detectLoop());
3669
- }
3670
- reset() {
3671
- this.stop(), this._generateSequence(), this._updateState({
3672
- status: "ready",
3673
- currentStep: 0,
3674
- timeLeft: this.options.duration,
3675
- isStepTransitioning: !1,
3676
- errorMsg: ""
3677
- });
3678
- }
3679
- stop() {
3680
- cancelAnimationFrame(this.requestRef), clearInterval(this.timerInterval);
3681
- }
3682
- // --- Internal Logic ---
3683
- _updateState(e) {
3684
- this.state = { ...this.state, ...e }, this.options.onStateChange(this.state);
3685
- }
3686
- _generateSequence() {
3687
- const e = [...c1].sort(() => 0.5 - Math.random()).slice(0, 3);
3688
- this._updateState({ sequence: e });
3689
- }
3690
- _startTimer() {
3691
- this.timerInterval = setInterval(() => {
3692
- const e = this.state.timeLeft - 1;
3693
- e <= 0 ? (this.stop(), this._updateState({ timeLeft: 0, status: "expired" })) : this._updateState({ timeLeft: e });
3693
+ /** Internal: Timer logic */
3694
+ startTimer() {
3695
+ this.timerId = setInterval(() => {
3696
+ this.state.timeLeft > 0 ? this.updateState({ timeLeft: this.state.timeLeft - 1 }) : (this.updateState({ status: "expired" }), this.timerId && clearInterval(this.timerId));
3694
3697
  }, 1e3);
3695
3698
  }
3696
- _handleStepCompletion() {
3697
- this.state.isStepTransitioning || (this._updateState({ isStepTransitioning: !0 }), setTimeout(() => {
3698
- this.state.currentStep < this.state.sequence.length - 1 ? (this._updateState({
3699
- currentStep: this.state.currentStep + 1,
3700
- isStepTransitioning: !1
3701
- }), this._detectLoop()) : this._sendFinalProof();
3702
- }, 1500));
3703
- }
3704
- _checkAction(e, n, r) {
3699
+ /** Internal: Verify if user completed current challenge */
3700
+ checkAction(e, n, r) {
3705
3701
  var s, i;
3706
- if (this.state.isStepTransitioning) return !1;
3702
+ if (this.isStepTransitioningRef) return !1;
3707
3703
  if (r === "Thumbs_Up" && ((s = n == null ? void 0 : n.landmarks) == null ? void 0 : s.length) > 0) {
3708
3704
  const o = n.landmarks[0];
3709
3705
  return o[4].y < o[2].y && [8, 12, 16, 20].every((a) => o[a].y > o[a - 2].y);
@@ -3712,78 +3708,96 @@ class h1 {
3712
3708
  const o = e.faceLandmarks[0];
3713
3709
  switch (r) {
3714
3710
  case "Smile":
3715
- return o[291].x - o[61].x > this.options.smileThreshold;
3711
+ return o[291].x - o[61].x > this.smileThreshold;
3716
3712
  case "Blink":
3717
- return (Math.abs(o[159].y - o[145].y) + Math.abs(o[386].y - o[374].y)) / 2 < this.options.blinkThreshold;
3713
+ return (Math.abs(o[159].y - o[145].y) + Math.abs(o[386].y - o[374].y)) / 2 < this.blinkThreshold;
3718
3714
  case "Turn_Head":
3719
3715
  const c = (o[1].x - o[33].x) / (o[263].x - o[33].x);
3720
- return c < this.options.minTurnHead || c > this.options.maxTurnHead;
3716
+ return c < this.minturnHeadThreshold || c > this.maxturnHeadThreshold;
3717
+ default:
3718
+ return !1;
3721
3719
  }
3722
3720
  }
3723
3721
  return !1;
3724
3722
  }
3725
- async _sendFinalProof() {
3726
- this.stop(), this._updateState({ status: "verifying" });
3723
+ /** Internal: Capture final frames and send to backend */
3724
+ async sendFinalProof() {
3725
+ var n, r, s, i;
3726
+ if (!this.webcam) return;
3727
+ this.updateState({ status: "verifying" });
3728
+ const e = [];
3729
+ for (let o = 0; o < 5; o++) {
3730
+ const a = performance.now(), c = (n = this.models.face) == null ? void 0 : n.detectForVideo(this.webcam, a);
3731
+ (r = c == null ? void 0 : c.faceLandmarks) != null && r[0] && e.push(this.getFaceCrop(this.webcam, c.faceLandmarks[0]).toDataURL("image/jpeg", 0.95)), await new Promise((u) => setTimeout(u, 60));
3732
+ }
3727
3733
  try {
3728
- const e = await this._captureFrames(), n = new FormData();
3729
- for (let i = 0; i < e.length; i++) {
3730
- const o = await (await fetch(e[i])).blob();
3731
- n.append("files", o, `frame_${i}.jpg`);
3732
- }
3733
- const s = await (await fetch(`${this.options.apiUrl}/v1/verify`, { method: "POST", body: n })).json();
3734
- s.is_live ? this._updateState({ status: "success" }) : this._updateState({ status: "error", errorMsg: s.reason || "Spoof detected." });
3734
+ const { verifyLiveness: o } = await Promise.resolve().then(() => wa), a = await o(this.apiUrl, e.map((c) => this.dataURLtoBlob(c)), this.state.sequence[this.currentStepRef]);
3735
+ a.is_live ? (this.updateState({ status: "success" }), (s = this.onComplete) == null || s.call(this, { success: !0, image: e[e.length - 1], skinConfidence: a.skin_confidence })) : (this.updateState({ status: "error", errorMsg: a.reason || "Spoof detected" }), (i = this.onError) == null || i.call(this, { success: !1, reason: a.reason || "Spoof detected", skinConfidence: a.skin_confidence }));
3735
3736
  } catch {
3736
- this._updateState({ status: "error", errorMsg: "Server unreachable." });
3737
- }
3738
- }
3739
- async _captureFrames() {
3740
- var n, r;
3741
- const e = [];
3742
- for (let s = 0; s < 5; s++) {
3743
- const i = (n = this.models.face) == null ? void 0 : n.detectForVideo(this.videoElement, performance.now());
3744
- (r = i == null ? void 0 : i.faceLandmarks) != null && r[0] && e.push(this._getFaceCrop(this.videoElement, i.faceLandmarks[0])), await new Promise((o) => setTimeout(o, 60));
3737
+ this.updateState({ status: "error", errorMsg: "Server unreachable" });
3745
3738
  }
3746
- return e;
3747
- }
3748
- _getFaceCrop(e, n) {
3749
- const r = document.createElement("canvas"), s = r.getContext("2d"), i = n.map((x) => x.x * e.videoWidth), o = n.map((x) => x.y * e.videoHeight), a = Math.min(...i), c = Math.max(...i), u = Math.min(...o), h = Math.max(...o), f = c - a, y = h - u, v = f * 0.25;
3750
- return r.width = 224, r.height = 224, s.drawImage(e, a - v, u - v, f + v * 2, y + v * 2, 0, 0, 224, 224), r.toDataURL("image/jpeg", 0.95);
3751
3739
  }
3752
- }
3753
- const d1 = (t) => {
3754
- var i;
3755
- const [e, n] = ba({
3740
+ /** Internal: Crop face from video for backend submission */
3741
+ getFaceCrop(e, n) {
3742
+ const r = document.createElement("canvas"), s = r.getContext("2d"), i = n.map((I) => I.x * e.videoWidth), o = n.map((I) => I.y * e.videoHeight), a = Math.min(...i), c = Math.max(...i), u = Math.min(...o), h = Math.max(...o), f = c - a, _ = h - u, v = f * 0.25;
3743
+ return r.width = 224, r.height = 224, s.drawImage(
3744
+ e,
3745
+ a - v,
3746
+ u - v,
3747
+ f + v * 2,
3748
+ _ + v * 2,
3749
+ 0,
3750
+ 0,
3751
+ 224,
3752
+ 224
3753
+ ), r;
3754
+ }
3755
+ /** Internal: Convert DataURL to Blob */
3756
+ dataURLtoBlob(e) {
3757
+ const n = e.split(","), r = n[0].match(/:(.*?);/), s = r ? r[1] : "", i = atob(n[1]);
3758
+ let o = i.length;
3759
+ const a = new Uint8Array(o);
3760
+ for (; o--; ) a[o] = i.charCodeAt(o);
3761
+ return new Blob([a], { type: s });
3762
+ }
3763
+ }
3764
+ const h1 = (t) => {
3765
+ var a;
3766
+ const [e, n] = _a({
3756
3767
  status: "loading",
3757
3768
  sequence: [],
3758
3769
  currentStep: 0,
3759
3770
  timeLeft: t.duration || 60,
3760
3771
  isStepTransitioning: !1,
3761
3772
  errorMsg: ""
3762
- }), r = fs(null), s = fs(null);
3763
- return ds(() => (r.current = new h1({
3773
+ }), r = ls(null), s = ls(null);
3774
+ fs(() => (r.current = new a1({
3764
3775
  ...t,
3765
- onStateChange: (o) => n(o)
3776
+ onStateChange: (c) => n(c)
3766
3777
  }), () => {
3767
- var o;
3768
- return (o = r.current) == null ? void 0 : o.stop();
3769
- }), []), ds(() => {
3770
- var o;
3771
- (o = s.current) != null && o.video && e.status === "loading" && r.current.init(s.current.video);
3772
- }, [(i = s.current) == null ? void 0 : i.video]), {
3778
+ var c;
3779
+ return (c = r.current) == null ? void 0 : c.stop();
3780
+ }), [t]), fs(() => {
3781
+ var u, h;
3782
+ const c = (u = s.current) == null ? void 0 : u.video;
3783
+ c && e.status === "loading" && ((h = r.current) == null || h.init(c));
3784
+ }, [(a = s.current) == null ? void 0 : a.video, e.status]);
3785
+ const i = ds(() => {
3786
+ var c;
3787
+ return (c = r.current) == null ? void 0 : c.start();
3788
+ }, []), o = ds(() => {
3789
+ var c;
3790
+ return (c = r.current) == null ? void 0 : c.reset();
3791
+ }, []);
3792
+ return {
3773
3793
  ...e,
3774
3794
  webcamRef: s,
3775
- start: ps(() => {
3776
- var o;
3777
- return (o = r.current) == null ? void 0 : o.start();
3778
- }, []),
3779
- reset: ps(() => {
3780
- var o;
3781
- return (o = r.current) == null ? void 0 : o.reset();
3782
- }, [])
3795
+ start: i,
3796
+ reset: o
3783
3797
  };
3784
3798
  };
3785
3799
  export {
3786
- h1 as LivenessEngine,
3787
- d1 as useLiveness,
3788
- f1 as verifyLiveness
3800
+ a1 as LivenessEngine,
3801
+ h1 as useLiveness,
3802
+ va as verifyLiveness
3789
3803
  };