holostaff-widget 3.0.7 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/{CanvasRenderer-CZrsEHKq.js → CanvasRenderer-BbLcmUrB.js} +5 -5
  2. package/dist/{CanvasRenderer-CZrsEHKq.js.map → CanvasRenderer-BbLcmUrB.js.map} +1 -1
  3. package/dist/{Filter-Ce0JYpex.js → Filter-c3b_NGGq.js} +2 -2
  4. package/dist/{Filter-Ce0JYpex.js.map → Filter-c3b_NGGq.js.map} +1 -1
  5. package/dist/{GpuStencilModesToPixi-U9Nzw7CS.js → GpuStencilModesToPixi-m2FwdmOS.js} +3 -3
  6. package/dist/{GpuStencilModesToPixi-U9Nzw7CS.js.map → GpuStencilModesToPixi-m2FwdmOS.js.map} +1 -1
  7. package/dist/{RenderTargetSystem-C8dExAL2.js → RenderTargetSystem-Djlsv2av.js} +3 -3
  8. package/dist/{RenderTargetSystem-C8dExAL2.js.map → RenderTargetSystem-Djlsv2av.js.map} +1 -1
  9. package/dist/{WebGLRenderer-DDaRf1Y3.js → WebGLRenderer-0ORJ9PSM.js} +5 -5
  10. package/dist/{WebGLRenderer-DDaRf1Y3.js.map → WebGLRenderer-0ORJ9PSM.js.map} +1 -1
  11. package/dist/{WebGPURenderer-EavnjBvg.js → WebGPURenderer-IkacCxg7.js} +6 -6
  12. package/dist/{WebGPURenderer-EavnjBvg.js.map → WebGPURenderer-IkacCxg7.js.map} +1 -1
  13. package/dist/{browserAll-BzORr4Uu.js → browserAll-zkM6prpX.js} +3 -3
  14. package/dist/{browserAll-BzORr4Uu.js.map → browserAll-zkM6prpX.js.map} +1 -1
  15. package/dist/{getTextureBatchBindGroup-Cr2re8Em.js → getTextureBatchBindGroup-DVwotFiU.js} +3 -3
  16. package/dist/{getTextureBatchBindGroup-Cr2re8Em.js.map → getTextureBatchBindGroup-DVwotFiU.js.map} +1 -1
  17. package/dist/hs-widget.es.js +1 -1
  18. package/dist/hs-widget.umd.js +22 -22
  19. package/dist/hs-widget.umd.js.map +1 -1
  20. package/dist/{index-CBLsgHG5.js → index-Glf3TIbT.js} +711 -680
  21. package/dist/index-Glf3TIbT.js.map +1 -0
  22. package/dist/{webworkerAll-DWSbI11E.js → webworkerAll-C7jo9o_4.js} +3 -3
  23. package/dist/{webworkerAll-DWSbI11E.js.map → webworkerAll-C7jo9o_4.js.map} +1 -1
  24. package/package.json +1 -1
  25. package/dist/index-CBLsgHG5.js.map +0 -1
@@ -315,11 +315,11 @@ function ka() {
315
315
  function n(l, h, f) {
316
316
  this.fn = l, this.context = h, this.once = f || !1;
317
317
  }
318
- function r(l, h, f, u, m) {
318
+ function r(l, h, f, u, g) {
319
319
  if (typeof f != "function")
320
320
  throw new TypeError("The listener must be a function");
321
- var g = new n(f, u || l, m), _ = t ? t + h : h;
322
- return l._events[_] ? l._events[_].fn ? l._events[_] = [l._events[_], g] : l._events[_].push(g) : (l._events[_] = g, l._eventsCount++), l;
321
+ var m = new n(f, u || l, g), _ = t ? t + h : h;
322
+ return l._events[_] ? l._events[_].fn ? l._events[_] = [l._events[_], m] : l._events[_].push(m) : (l._events[_] = m, l._eventsCount++), l;
323
323
  }
324
324
  function o(l, h) {
325
325
  --l._eventsCount === 0 ? l._events = new s() : delete l._events[h];
@@ -337,54 +337,54 @@ function ka() {
337
337
  var f = t ? t + h : h, u = this._events[f];
338
338
  if (!u) return [];
339
339
  if (u.fn) return [u.fn];
340
- for (var m = 0, g = u.length, _ = new Array(g); m < g; m++)
341
- _[m] = u[m].fn;
340
+ for (var g = 0, m = u.length, _ = new Array(m); g < m; g++)
341
+ _[g] = u[g].fn;
342
342
  return _;
343
343
  }, a.prototype.listenerCount = function(h) {
344
344
  var f = t ? t + h : h, u = this._events[f];
345
345
  return u ? u.fn ? 1 : u.length : 0;
346
- }, a.prototype.emit = function(h, f, u, m, g, _) {
347
- var b = t ? t + h : h;
348
- if (!this._events[b]) return !1;
349
- var C = this._events[b], E = arguments.length, A, I;
350
- if (C.fn) {
351
- switch (C.once && this.removeListener(h, C.fn, void 0, !0), E) {
346
+ }, a.prototype.emit = function(h, f, u, g, m, _) {
347
+ var v = t ? t + h : h;
348
+ if (!this._events[v]) return !1;
349
+ var b = this._events[v], S = arguments.length, A, I;
350
+ if (b.fn) {
351
+ switch (b.once && this.removeListener(h, b.fn, void 0, !0), S) {
352
352
  case 1:
353
- return C.fn.call(C.context), !0;
353
+ return b.fn.call(b.context), !0;
354
354
  case 2:
355
- return C.fn.call(C.context, f), !0;
355
+ return b.fn.call(b.context, f), !0;
356
356
  case 3:
357
- return C.fn.call(C.context, f, u), !0;
357
+ return b.fn.call(b.context, f, u), !0;
358
358
  case 4:
359
- return C.fn.call(C.context, f, u, m), !0;
359
+ return b.fn.call(b.context, f, u, g), !0;
360
360
  case 5:
361
- return C.fn.call(C.context, f, u, m, g), !0;
361
+ return b.fn.call(b.context, f, u, g, m), !0;
362
362
  case 6:
363
- return C.fn.call(C.context, f, u, m, g, _), !0;
363
+ return b.fn.call(b.context, f, u, g, m, _), !0;
364
364
  }
365
- for (I = 1, A = new Array(E - 1); I < E; I++)
365
+ for (I = 1, A = new Array(S - 1); I < S; I++)
366
366
  A[I - 1] = arguments[I];
367
- C.fn.apply(C.context, A);
367
+ b.fn.apply(b.context, A);
368
368
  } else {
369
- var w = C.length, T;
369
+ var w = b.length, T;
370
370
  for (I = 0; I < w; I++)
371
- switch (C[I].once && this.removeListener(h, C[I].fn, void 0, !0), E) {
371
+ switch (b[I].once && this.removeListener(h, b[I].fn, void 0, !0), S) {
372
372
  case 1:
373
- C[I].fn.call(C[I].context);
373
+ b[I].fn.call(b[I].context);
374
374
  break;
375
375
  case 2:
376
- C[I].fn.call(C[I].context, f);
376
+ b[I].fn.call(b[I].context, f);
377
377
  break;
378
378
  case 3:
379
- C[I].fn.call(C[I].context, f, u);
379
+ b[I].fn.call(b[I].context, f, u);
380
380
  break;
381
381
  case 4:
382
- C[I].fn.call(C[I].context, f, u, m);
382
+ b[I].fn.call(b[I].context, f, u, g);
383
383
  break;
384
384
  default:
385
- if (!A) for (T = 1, A = new Array(E - 1); T < E; T++)
385
+ if (!A) for (T = 1, A = new Array(S - 1); T < S; T++)
386
386
  A[T - 1] = arguments[T];
387
- C[I].fn.apply(C[I].context, A);
387
+ b[I].fn.apply(b[I].context, A);
388
388
  }
389
389
  }
390
390
  return !0;
@@ -392,18 +392,18 @@ function ka() {
392
392
  return r(this, h, f, u, !1);
393
393
  }, a.prototype.once = function(h, f, u) {
394
394
  return r(this, h, f, u, !0);
395
- }, a.prototype.removeListener = function(h, f, u, m) {
396
- var g = t ? t + h : h;
397
- if (!this._events[g]) return this;
395
+ }, a.prototype.removeListener = function(h, f, u, g) {
396
+ var m = t ? t + h : h;
397
+ if (!this._events[m]) return this;
398
398
  if (!f)
399
- return o(this, g), this;
400
- var _ = this._events[g];
399
+ return o(this, m), this;
400
+ var _ = this._events[m];
401
401
  if (_.fn)
402
- _.fn === f && (!m || _.once) && (!u || _.context === u) && o(this, g);
402
+ _.fn === f && (!g || _.once) && (!u || _.context === u) && o(this, m);
403
403
  else {
404
- for (var b = 0, C = [], E = _.length; b < E; b++)
405
- (_[b].fn !== f || m && !_[b].once || u && _[b].context !== u) && C.push(_[b]);
406
- C.length ? this._events[g] = C.length === 1 ? C[0] : C : o(this, g);
404
+ for (var v = 0, b = [], S = _.length; v < S; v++)
405
+ (_[v].fn !== f || g && !_[v].once || u && _[v].context !== u) && b.push(_[v]);
406
+ b.length ? this._events[m] = b.length === 1 ? b[0] : b : o(this, m);
407
407
  }
408
408
  return this;
409
409
  }, a.prototype.removeAllListeners = function(h) {
@@ -721,12 +721,12 @@ function mr(i, e, t, s) {
721
721
  for (let a = 0; a < i.length; a++) {
722
722
  const l = i[a], h = l.data.name;
723
723
  let f = !1, u = 0;
724
- for (let m = 0; m < We.length; m++)
725
- if (We[m].test(l.data)) {
724
+ for (let g = 0; g < We.length; g++)
725
+ if (We[g].test(l.data)) {
726
726
  u = l.offset / 4, n.push(
727
727
  `name = "${h}";`,
728
728
  `offset += ${u - r};`,
729
- We[m][e] || We[m].ubo
729
+ We[g][e] || We[g].ubo
730
730
  ), f = !0;
731
731
  break;
732
732
  }
@@ -734,13 +734,13 @@ function mr(i, e, t, s) {
734
734
  if (l.data.size > 1)
735
735
  u = l.offset / 4, n.push(t(l, u - r));
736
736
  else {
737
- const m = s[l.data.type];
737
+ const g = s[l.data.type];
738
738
  u = l.offset / 4, n.push(
739
739
  /* wgsl */
740
740
  `
741
741
  v = uv.${h};
742
742
  offset += ${u - r};
743
- ${m};
743
+ ${g};
744
744
  `
745
745
  );
746
746
  }
@@ -1318,12 +1318,12 @@ function Wa(i, e) {
1318
1318
  const u = h.resources[f];
1319
1319
  if (u instanceof Hs)
1320
1320
  if (u.ubo) {
1321
- const m = i._uniformBindMap[l][Number(f)];
1321
+ const g = i._uniformBindMap[l][Number(f)];
1322
1322
  t.push(`
1323
1323
  sS.bindUniformBlock(
1324
1324
  resources[${f}],
1325
- '${m}',
1326
- ${i.glProgram._uniformBlockData[m].index}
1325
+ '${g}',
1326
+ ${i.glProgram._uniformBlockData[g].index}
1327
1327
  );
1328
1328
  `);
1329
1329
  } else
@@ -1331,19 +1331,19 @@ function Wa(i, e) {
1331
1331
  ugS.updateUniformGroup(resources[${f}], p, sD);
1332
1332
  `);
1333
1333
  else if (u instanceof Ws) {
1334
- const m = i._uniformBindMap[l][Number(f)];
1334
+ const g = i._uniformBindMap[l][Number(f)];
1335
1335
  t.push(`
1336
1336
  sS.bindUniformBlock(
1337
1337
  resources[${f}],
1338
- '${m}',
1339
- ${i.glProgram._uniformBlockData[m].index}
1338
+ '${g}',
1339
+ ${i.glProgram._uniformBlockData[g].index}
1340
1340
  );
1341
1341
  `);
1342
1342
  } else if (u instanceof Ne) {
1343
- const m = i._uniformBindMap[l][f], g = o.uniformData[m];
1344
- g && (n || (n = !0, s.push(`
1343
+ const g = i._uniformBindMap[l][f], m = o.uniformData[g];
1344
+ m && (n || (n = !0, s.push(`
1345
1345
  var tS = r.texture;
1346
- `)), e._gl.uniform1i(g.location, r), t.push(`
1346
+ `)), e._gl.uniform1i(m.location, r), t.push(`
1347
1347
  tS.bind(resources[${f}], ${r});
1348
1348
  `), r++);
1349
1349
  }
@@ -1690,8 +1690,8 @@ class Tr {
1690
1690
  o || this._renderer.ubo.updateUniformGroup(e);
1691
1691
  const a = e.buffer, l = n.updateBuffer(a), h = n.freeLocationForBufferBase(l);
1692
1692
  if (o) {
1693
- const { offset: u, size: m } = e;
1694
- u === 0 && m === a.data.byteLength ? n.bindBufferBase(l, h) : n.bindBufferRange(l, h, u);
1693
+ const { offset: u, size: g } = e;
1694
+ u === 0 && g === a.data.byteLength ? n.bindBufferBase(l, h) : n.bindBufferRange(l, h, u);
1695
1695
  } else n.getLastBindBaseLocation(l) !== h && n.bindBufferBase(l, h);
1696
1696
  const f = this._activeProgram._uniformBlockData[t].index;
1697
1697
  r.uniformBlockBindings[s] !== h && (r.uniformBlockBindings[s] = h, this._renderer.gl.uniformBlockBinding(r.program, f, h));
@@ -2189,13 +2189,13 @@ function dl(i, e) {
2189
2189
  var a, l, h = s[this.toHex()];
2190
2190
  if (h) return h;
2191
2191
  if (o != null && o.closest) {
2192
- var f = this.toRgb(), u = 1 / 0, m = "black";
2193
- if (!r.length) for (var g in t) r[g] = new i(t[g]).toRgb();
2192
+ var f = this.toRgb(), u = 1 / 0, g = "black";
2193
+ if (!r.length) for (var m in t) r[m] = new i(t[m]).toRgb();
2194
2194
  for (var _ in t) {
2195
- var b = (a = f, l = r[_], Math.pow(a.r - l.r, 2) + Math.pow(a.g - l.g, 2) + Math.pow(a.b - l.b, 2));
2196
- b < u && (u = b, m = _);
2195
+ var v = (a = f, l = r[_], Math.pow(a.r - l.r, 2) + Math.pow(a.g - l.g, 2) + Math.pow(a.b - l.b, 2));
2196
+ v < u && (u = v, g = _);
2197
2197
  }
2198
- return m;
2198
+ return g;
2199
2199
  }
2200
2200
  }, e.string.push([function(o) {
2201
2201
  var a = o.toLowerCase(), l = a === "transparent" ? "#0000" : t[a];
@@ -3358,8 +3358,8 @@ class X {
3358
3358
  * @see {@link Matrix.prepend} For reverse order multiplication
3359
3359
  */
3360
3360
  appendFrom(e, t) {
3361
- const s = e.a, n = e.b, r = e.c, o = e.d, a = e.tx, l = e.ty, h = t.a, f = t.b, u = t.c, m = t.d;
3362
- return this.a = s * h + n * u, this.b = s * f + n * m, this.c = r * h + o * u, this.d = r * f + o * m, this.tx = a * h + l * u + t.tx, this.ty = a * f + l * m + t.ty, this;
3361
+ const s = e.a, n = e.b, r = e.c, o = e.d, a = e.tx, l = e.ty, h = t.a, f = t.b, u = t.c, g = t.d;
3362
+ return this.a = s * h + n * u, this.b = s * f + n * g, this.c = r * h + o * u, this.d = r * f + o * g, this.tx = a * h + l * u + t.tx, this.ty = a * f + l * g + t.ty, this;
3363
3363
  }
3364
3364
  /**
3365
3365
  * Sets the matrix based on all the available properties.
@@ -4562,8 +4562,8 @@ class He {
4562
4562
  strokeContains(e, t, s, n = 0.5) {
4563
4563
  const { width: r, height: o } = this;
4564
4564
  if (r <= 0 || o <= 0) return !1;
4565
- const a = this.x, l = this.y, h = s * (1 - n), f = s - h, u = a - h, m = a + r + h, g = l - h, _ = l + o + h, b = a + f, C = a + r - f, E = l + f, A = l + o - f;
4566
- return e >= u && e <= m && t >= g && t <= _ && !(e > b && e < C && t > E && t < A);
4565
+ const a = this.x, l = this.y, h = s * (1 - n), f = s - h, u = a - h, g = a + r + h, m = l - h, _ = l + o + h, v = a + f, b = a + r - f, S = l + f, A = l + o - f;
4566
+ return e >= u && e <= g && t >= m && t <= _ && !(e > v && e < b && t > S && t < A);
4567
4567
  }
4568
4568
  /**
4569
4569
  * Determines whether the `other` Rectangle transformed by `transform` intersects with `this` Rectangle object.
@@ -4623,8 +4623,8 @@ class He {
4623
4623
  const u = Math.sign(t.a * t.d - t.b * t.c);
4624
4624
  if (u === 0 || (t.apply(a, a), t.apply(l, l), t.apply(h, h), t.apply(f, f), Math.max(a.x, l.x, h.x, f.x) <= s || Math.min(a.x, l.x, h.x, f.x) >= n || Math.max(a.y, l.y, h.y, f.y) <= r || Math.min(a.y, l.y, h.y, f.y) >= o))
4625
4625
  return !1;
4626
- const m = u * (l.y - a.y), g = u * (a.x - l.x), _ = m * s + g * r, b = m * n + g * r, C = m * s + g * o, E = m * n + g * o;
4627
- if (Math.max(_, b, C, E) <= m * a.x + g * a.y || Math.min(_, b, C, E) >= m * f.x + g * f.y)
4626
+ const g = u * (l.y - a.y), m = u * (a.x - l.x), _ = g * s + m * r, v = g * n + m * r, b = g * s + m * o, S = g * n + m * o;
4627
+ if (Math.max(_, v, b, S) <= g * a.x + m * a.y || Math.min(_, v, b, S) >= g * f.x + m * f.y)
4628
4628
  return !1;
4629
4629
  const A = u * (a.y - h.y), I = u * (h.x - a.x), w = A * s + I * r, T = A * n + I * r, M = A * s + I * o, F = A * n + I * o;
4630
4630
  return !(Math.max(w, T, M, F) <= A * a.x + I * a.y || Math.min(w, T, M, F) >= A * f.x + I * f.y);
@@ -4948,8 +4948,8 @@ class st {
4948
4948
  addFrame(e, t, s, n, r) {
4949
4949
  r || (r = this.matrix);
4950
4950
  const o = r.a, a = r.b, l = r.c, h = r.d, f = r.tx, u = r.ty;
4951
- let m = this.minX, g = this.minY, _ = this.maxX, b = this.maxY, C = o * e + l * t + f, E = a * e + h * t + u;
4952
- C < m && (m = C), E < g && (g = E), C > _ && (_ = C), E > b && (b = E), C = o * s + l * t + f, E = a * s + h * t + u, C < m && (m = C), E < g && (g = E), C > _ && (_ = C), E > b && (b = E), C = o * e + l * n + f, E = a * e + h * n + u, C < m && (m = C), E < g && (g = E), C > _ && (_ = C), E > b && (b = E), C = o * s + l * n + f, E = a * s + h * n + u, C < m && (m = C), E < g && (g = E), C > _ && (_ = C), E > b && (b = E), this.minX = m, this.minY = g, this.maxX = _, this.maxY = b;
4951
+ let g = this.minX, m = this.minY, _ = this.maxX, v = this.maxY, b = o * e + l * t + f, S = a * e + h * t + u;
4952
+ b < g && (g = b), S < m && (m = S), b > _ && (_ = b), S > v && (v = S), b = o * s + l * t + f, S = a * s + h * t + u, b < g && (g = b), S < m && (m = S), b > _ && (_ = b), S > v && (v = S), b = o * e + l * n + f, S = a * e + h * n + u, b < g && (g = b), S < m && (m = S), b > _ && (_ = b), S > v && (v = S), b = o * s + l * n + f, S = a * s + h * n + u, b < g && (g = b), S < m && (m = S), b > _ && (_ = b), S > v && (v = S), this.minX = g, this.minY = m, this.maxX = _, this.maxY = v;
4953
4953
  }
4954
4954
  /**
4955
4955
  * Adds a rectangle to the bounds, optionally transformed by a matrix.
@@ -5035,8 +5035,8 @@ class st {
5035
5035
  */
5036
5036
  applyMatrix(e) {
5037
5037
  const t = this.minX, s = this.minY, n = this.maxX, r = this.maxY, { a: o, b: a, c: l, d: h, tx: f, ty: u } = e;
5038
- let m = o * t + l * s + f, g = a * t + h * s + u;
5039
- this.minX = m, this.minY = g, this.maxX = m, this.maxY = g, m = o * n + l * s + f, g = a * n + h * s + u, this.minX = m < this.minX ? m : this.minX, this.minY = g < this.minY ? g : this.minY, this.maxX = m > this.maxX ? m : this.maxX, this.maxY = g > this.maxY ? g : this.maxY, m = o * t + l * r + f, g = a * t + h * r + u, this.minX = m < this.minX ? m : this.minX, this.minY = g < this.minY ? g : this.minY, this.maxX = m > this.maxX ? m : this.maxX, this.maxY = g > this.maxY ? g : this.maxY, m = o * n + l * r + f, g = a * n + h * r + u, this.minX = m < this.minX ? m : this.minX, this.minY = g < this.minY ? g : this.minY, this.maxX = m > this.maxX ? m : this.maxX, this.maxY = g > this.maxY ? g : this.maxY;
5038
+ let g = o * t + l * s + f, m = a * t + h * s + u;
5039
+ this.minX = g, this.minY = m, this.maxX = g, this.maxY = m, g = o * n + l * s + f, m = a * n + h * s + u, this.minX = g < this.minX ? g : this.minX, this.minY = m < this.minY ? m : this.minY, this.maxX = g > this.maxX ? g : this.maxX, this.maxY = m > this.maxY ? m : this.maxY, g = o * t + l * r + f, m = a * t + h * r + u, this.minX = g < this.minX ? g : this.minX, this.minY = m < this.minY ? m : this.minY, this.maxX = g > this.maxX ? g : this.maxX, this.maxY = m > this.maxY ? m : this.maxY, g = o * n + l * r + f, m = a * n + h * r + u, this.minX = g < this.minX ? g : this.minX, this.minY = m < this.minY ? m : this.minY, this.maxX = g > this.maxX ? g : this.maxX, this.maxY = m > this.maxY ? m : this.maxY;
5040
5040
  }
5041
5041
  /**
5042
5042
  * Resizes the bounds object to fit within the given rectangle.
@@ -5378,9 +5378,9 @@ class st {
5378
5378
  addVertexData(e, t, s, n) {
5379
5379
  let r = this.minX, o = this.minY, a = this.maxX, l = this.maxY;
5380
5380
  n || (n = this.matrix);
5381
- const h = n.a, f = n.b, u = n.c, m = n.d, g = n.tx, _ = n.ty;
5382
- for (let b = t; b < s; b += 2) {
5383
- const C = e[b], E = e[b + 1], A = h * C + u * E + g, I = f * C + m * E + _;
5381
+ const h = n.a, f = n.b, u = n.c, g = n.d, m = n.tx, _ = n.ty;
5382
+ for (let v = t; v < s; v += 2) {
5383
+ const b = e[v], S = e[v + 1], A = h * b + u * S + m, I = f * b + g * S + _;
5384
5384
  r = A < r ? A : r, o = I < o ? I : o, a = A > a ? A : a, l = I > l ? I : l;
5385
5385
  }
5386
5386
  this.minX = r, this.minY = o, this.maxX = a, this.maxY = l;
@@ -5903,8 +5903,8 @@ const W = {
5903
5903
  * @param {number} dh - sprite height
5904
5904
  */
5905
5905
  matrixAppendRotationInv: (i, e, t = 0, s = 0, n = 0, r = 0) => {
5906
- const o = Ur[W.inv(e)], a = o.a, l = o.b, h = o.c, f = o.d, u = t - Math.min(0, a * n, h * r, a * n + h * r), m = s - Math.min(0, l * n, f * r, l * n + f * r), g = i.a, _ = i.b, b = i.c, C = i.d;
5907
- i.a = a * g + l * b, i.b = a * _ + l * C, i.c = h * g + f * b, i.d = h * _ + f * C, i.tx = u * g + m * b + i.tx, i.ty = u * _ + m * C + i.ty;
5906
+ const o = Ur[W.inv(e)], a = o.a, l = o.b, h = o.c, f = o.d, u = t - Math.min(0, a * n, h * r, a * n + h * r), g = s - Math.min(0, l * n, f * r, l * n + f * r), m = i.a, _ = i.b, v = i.c, b = i.d;
5907
+ i.a = a * m + l * v, i.b = a * _ + l * b, i.c = h * m + f * v, i.d = h * _ + f * b, i.tx = u * m + g * v + i.tx, i.ty = u * _ + g * b + i.ty;
5908
5908
  },
5909
5909
  /**
5910
5910
  * Transforms rectangle coordinates based on texture packer rotation.
@@ -6053,8 +6053,8 @@ class ie extends gt {
6053
6053
  const { uvs: e, frame: t } = this, { width: s, height: n } = this._source, r = t.x / s, o = t.y / n, a = t.width / s, l = t.height / n;
6054
6054
  let h = this.rotate;
6055
6055
  if (h) {
6056
- const f = a / 2, u = l / 2, m = r + f, g = o + u;
6057
- h = W.add(h, W.NW), e.x0 = m + f * W.uX(h), e.y0 = g + u * W.uY(h), h = W.add(h, 2), e.x1 = m + f * W.uX(h), e.y1 = g + u * W.uY(h), h = W.add(h, 2), e.x2 = m + f * W.uX(h), e.y2 = g + u * W.uY(h), h = W.add(h, 2), e.x3 = m + f * W.uX(h), e.y3 = g + u * W.uY(h);
6056
+ const f = a / 2, u = l / 2, g = r + f, m = o + u;
6057
+ h = W.add(h, W.NW), e.x0 = g + f * W.uX(h), e.y0 = m + u * W.uY(h), h = W.add(h, 2), e.x1 = g + f * W.uX(h), e.y1 = m + u * W.uY(h), h = W.add(h, 2), e.x2 = g + f * W.uX(h), e.y2 = m + u * W.uY(h), h = W.add(h, 2), e.x3 = g + f * W.uX(h), e.y3 = m + u * W.uY(h);
6058
6058
  } else
6059
6059
  e.x0 = r, e.y0 = o, e.x1 = r + a, e.y1 = o, e.x2 = r + a, e.y2 = o + l, e.x3 = r, e.y3 = o + l;
6060
6060
  }
@@ -6874,8 +6874,8 @@ class $e extends gt {
6874
6874
  const e = this._didContainerChangeTick;
6875
6875
  if (this._didLocalTransformChangeId === e) return;
6876
6876
  this._didLocalTransformChangeId = e;
6877
- const t = this.localTransform, s = this._scale, n = this._pivot, r = this._origin, o = this._position, a = s._x, l = s._y, h = n._x, f = n._y, u = -r._x, m = -r._y;
6878
- t.a = this._cx * a, t.b = this._sx * a, t.c = this._cy * l, t.d = this._sy * l, t.tx = o._x - (h * t.a + f * t.c) + (u * t.a + m * t.c) - u, t.ty = o._y - (h * t.b + f * t.d) + (u * t.b + m * t.d) - m;
6877
+ const t = this.localTransform, s = this._scale, n = this._pivot, r = this._origin, o = this._position, a = s._x, l = s._y, h = n._x, f = n._y, u = -r._x, g = -r._y;
6878
+ t.a = this._cx * a, t.b = this._sx * a, t.c = this._cy * l, t.d = this._sy * l, t.tx = o._x - (h * t.a + f * t.c) + (u * t.a + g * t.c) - u, t.ty = o._y - (h * t.b + f * t.d) + (u * t.b + g * t.d) - g;
6879
6879
  }
6880
6880
  // / ///// color related stuff
6881
6881
  set alpha(e) {
@@ -7069,7 +7069,7 @@ class jl {
7069
7069
  /* jsdoc/check-param-names */
7070
7070
  emit(e, t, s, n, r, o, a, l) {
7071
7071
  const { name: h, items: f } = this;
7072
- for (let u = 0, m = f.length; u < m; u++)
7072
+ for (let u = 0, g = f.length; u < g; u++)
7073
7073
  f[u][h](e, t, s, n, r, o, a, l);
7074
7074
  return this;
7075
7075
  }
@@ -7410,9 +7410,9 @@ function Xl(i, e, t) {
7410
7410
  const n = s.buffer.data;
7411
7411
  let r = 1 / 0, o = 1 / 0, a = -1 / 0, l = -1 / 0;
7412
7412
  const h = n.BYTES_PER_ELEMENT, f = (s.offset || 0) / h, u = (s.stride || 8) / h;
7413
- for (let m = f; m < n.length; m += u) {
7414
- const g = n[m], _ = n[m + 1];
7415
- g > a && (a = g), _ > l && (l = _), g < r && (r = g), _ < o && (o = _);
7413
+ for (let g = f; g < n.length; g += u) {
7414
+ const m = n[g], _ = n[g + 1];
7415
+ m > a && (a = m), _ > l && (l = _), m < r && (r = m), _ < o && (o = _);
7416
7416
  }
7417
7417
  return t.minX = r, t.minY = o, t.maxX = a, t.maxY = l, t;
7418
7418
  }
@@ -7621,8 +7621,8 @@ class Jl {
7621
7621
  const t = this._size = e.size ?? 1e3, s = e.properties;
7622
7622
  let n = 0, r = 0;
7623
7623
  for (const f in s) {
7624
- const u = s[f], m = ci(u.format);
7625
- u.dynamic ? r += m.stride : n += m.stride;
7624
+ const u = s[f], g = ci(u.format);
7625
+ u.dynamic ? r += g.stride : n += g.stride;
7626
7626
  }
7627
7627
  this._dynamicStride = r / 4, this._staticStride = n / 4, this.staticAttributeBuffer = new xi(t * 4 * n), this.dynamicAttributeBuffer = new xi(t * 4 * r), this.indexBuffer = xn(t);
7628
7628
  const o = new Kl();
@@ -7639,18 +7639,18 @@ class Jl {
7639
7639
  usage: he.VERTEX | he.COPY_DST
7640
7640
  });
7641
7641
  for (const f in s) {
7642
- const u = s[f], m = ci(u.format);
7642
+ const u = s[f], g = ci(u.format);
7643
7643
  u.dynamic ? (o.addAttribute(u.attributeName, {
7644
7644
  buffer: this._dynamicBuffer,
7645
7645
  stride: this._dynamicStride * 4,
7646
7646
  offset: a * 4,
7647
7647
  format: u.format
7648
- }), a += m.size) : (o.addAttribute(u.attributeName, {
7648
+ }), a += g.size) : (o.addAttribute(u.attributeName, {
7649
7649
  buffer: this._staticBuffer,
7650
7650
  stride: this._staticStride * 4,
7651
7651
  offset: l * 4,
7652
7652
  format: u.format
7653
- }), l += m.size);
7653
+ }), l += g.size);
7654
7654
  }
7655
7655
  o.addIndex(this.indexBuffer);
7656
7656
  const h = this.getParticleUpdate(s);
@@ -7699,8 +7699,8 @@ const ec = {
7699
7699
  aVertex: (i, e, t, s, n) => {
7700
7700
  let r = 0, o = 0, a = 0, l = 0;
7701
7701
  for (let h = 0; h < i.length; ++h) {
7702
- const f = i[h], u = f.texture, m = f.scaleX, g = f.scaleY, _ = f.anchorX, b = f.anchorY, C = u.trim, E = u.orig;
7703
- C ? (o = C.x - _ * E.width, r = o + C.width, l = C.y - b * E.height, a = l + C.height) : (r = E.width * (1 - _), o = E.width * -_, a = E.height * (1 - b), l = E.height * -b), e[s] = o * m, e[s + 1] = l * g, e[s + n] = r * m, e[s + n + 1] = l * g, e[s + n * 2] = r * m, e[s + n * 2 + 1] = a * g, e[s + n * 3] = o * m, e[s + n * 3 + 1] = a * g, s += n * 4;
7702
+ const f = i[h], u = f.texture, g = f.scaleX, m = f.scaleY, _ = f.anchorX, v = f.anchorY, b = u.trim, S = u.orig;
7703
+ b ? (o = b.x - _ * S.width, r = o + b.width, l = b.y - v * S.height, a = l + b.height) : (r = S.width * (1 - _), o = S.width * -_, a = S.height * (1 - v), l = S.height * -v), e[s] = o * g, e[s + 1] = l * m, e[s + n] = r * g, e[s + n + 1] = l * m, e[s + n * 2] = r * g, e[s + n * 2 + 1] = a * m, e[s + n * 3] = o * g, e[s + n * 3 + 1] = a * m, s += n * 4;
7704
7704
  }
7705
7705
  },
7706
7706
  aPosition: (i, e, t, s, n) => {
@@ -7909,7 +7909,7 @@ function ac(i) {
7909
7909
  return (r, o, a, l, h) => {
7910
7910
  let f = 0;
7911
7911
  for (let u = 0; u < e.data.size * t; u++) {
7912
- for (let m = 0; m < s; m++)
7912
+ for (let g = 0; g < s; g++)
7913
7913
  o[a++] = h[f++];
7914
7914
  a += n;
7915
7915
  }
@@ -7926,7 +7926,7 @@ function lc(i) {
7926
7926
  return (r, o, a, l, h) => {
7927
7927
  let f = 0;
7928
7928
  for (let u = 0; u < e.data.size * (t / 4); u++) {
7929
- for (let m = 0; m < t / 4; m++)
7929
+ for (let g = 0; g < t / 4; g++)
7930
7930
  o[a++] = h[f++];
7931
7931
  a += n;
7932
7932
  }
@@ -8151,7 +8151,7 @@ const pc = {
8151
8151
  },
8152
8152
  test: () => !0,
8153
8153
  load: async () => {
8154
- await import("./browserAll-BzORr4Uu.js");
8154
+ await import("./browserAll-zkM6prpX.js");
8155
8155
  }
8156
8156
  }, mc = {
8157
8157
  extension: {
@@ -8161,7 +8161,7 @@ const pc = {
8161
8161
  },
8162
8162
  test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
8163
8163
  load: async () => {
8164
- await import("./webworkerAll-DWSbI11E.js");
8164
+ await import("./webworkerAll-C7jo9o_4.js");
8165
8165
  }
8166
8166
  };
8167
8167
  function gc(i, e, t) {
@@ -10131,34 +10131,34 @@ class oo {
10131
10131
  loadParser: h,
10132
10132
  parser: f
10133
10133
  } = r;
10134
- const u = Nt(o).map((b) => typeof b == "string" ? Tc(b) : Array.isArray(b) ? b : [b]), m = this.getAlias(r);
10135
- Array.isArray(m) ? m.forEach(s) : s(m);
10136
- const g = [], _ = (b) => {
10137
- const C = this._parsers.find((E) => E.test(b));
10134
+ const u = Nt(o).map((v) => typeof v == "string" ? Tc(v) : Array.isArray(v) ? v : [v]), g = this.getAlias(r);
10135
+ Array.isArray(g) ? g.forEach(s) : s(g);
10136
+ const m = [], _ = (v) => {
10137
+ const b = this._parsers.find((S) => S.test(v));
10138
10138
  return {
10139
- src: b,
10140
- ...C == null ? void 0 : C.parse(b)
10139
+ src: v,
10140
+ ...b == null ? void 0 : b.parse(v)
10141
10141
  };
10142
10142
  };
10143
- u.forEach((b) => {
10144
- b.forEach((C) => {
10145
- let E = {};
10146
- if (typeof C != "object" ? E = _(C) : (a = C.data ?? a, l = C.format ?? l, (C.loadParser || C.parser) && (h = C.loadParser ?? h, f = C.parser ?? f), E = {
10147
- ..._(C.src),
10148
- ...C
10149
- }), !m)
10150
- throw new Error(`[Resolver] alias is undefined for this asset: ${E.src}`);
10151
- E = this._buildResolvedAsset(E, {
10152
- aliases: m,
10143
+ u.forEach((v) => {
10144
+ v.forEach((b) => {
10145
+ let S = {};
10146
+ if (typeof b != "object" ? S = _(b) : (a = b.data ?? a, l = b.format ?? l, (b.loadParser || b.parser) && (h = b.loadParser ?? h, f = b.parser ?? f), S = {
10147
+ ..._(b.src),
10148
+ ...b
10149
+ }), !g)
10150
+ throw new Error(`[Resolver] alias is undefined for this asset: ${S.src}`);
10151
+ S = this._buildResolvedAsset(S, {
10152
+ aliases: g,
10153
10153
  data: a,
10154
10154
  format: l,
10155
10155
  loadParser: h,
10156
10156
  parser: f,
10157
10157
  progressSize: r.progressSize
10158
- }), g.push(E);
10158
+ }), m.push(S);
10159
10159
  });
10160
- }), m.forEach((b) => {
10161
- this._assetMap[b] = g;
10160
+ }), g.forEach((v) => {
10161
+ this._assetMap[v] = m;
10162
10162
  });
10163
10163
  });
10164
10164
  }
@@ -10502,7 +10502,7 @@ const kc = {
10502
10502
  return hi.extname(e.src).toLowerCase() === ".json" && !!i.frames;
10503
10503
  },
10504
10504
  async parse(i, e, t) {
10505
- var u, m;
10505
+ var u, g;
10506
10506
  const {
10507
10507
  texture: s,
10508
10508
  // if user need to use preloaded texture
@@ -10519,8 +10519,8 @@ const kc = {
10519
10519
  if (s instanceof ie)
10520
10520
  l = s;
10521
10521
  else {
10522
- const g = kn(a + (n ?? i.meta.image), e.src);
10523
- l = (await t.load([{ src: g, data: r }]))[g];
10522
+ const m = kn(a + (n ?? i.meta.image), e.src);
10523
+ l = (await t.load([{ src: m, data: r }]))[m];
10524
10524
  }
10525
10525
  const h = new Mn({
10526
10526
  texture: l.source,
@@ -10530,22 +10530,22 @@ const kc = {
10530
10530
  await h.parse();
10531
10531
  const f = (u = i == null ? void 0 : i.meta) == null ? void 0 : u.related_multi_packs;
10532
10532
  if (Array.isArray(f)) {
10533
- const g = [];
10534
- for (const b of f) {
10535
- if (typeof b != "string")
10533
+ const m = [];
10534
+ for (const v of f) {
10535
+ if (typeof v != "string")
10536
10536
  continue;
10537
- let C = a + b;
10538
- (m = e.data) != null && m.ignoreMultiPack || (C = kn(C, e.src), g.push(t.load({
10539
- src: C,
10537
+ let b = a + v;
10538
+ (g = e.data) != null && g.ignoreMultiPack || (b = kn(b, e.src), m.push(t.load({
10539
+ src: b,
10540
10540
  data: {
10541
10541
  textureOptions: r,
10542
10542
  ignoreMultiPack: !0
10543
10543
  }
10544
10544
  })));
10545
10545
  }
10546
- const _ = await Promise.all(g);
10547
- h.linkedSheets = _, _.forEach((b) => {
10548
- b.linkedSheets = [h].concat(h.linkedSheets.filter((C) => C !== b));
10546
+ const _ = await Promise.all(m);
10547
+ h.linkedSheets = _, _.forEach((v) => {
10548
+ v.linkedSheets = [h].concat(h.linkedSheets.filter((b) => b !== v));
10549
10549
  });
10550
10550
  }
10551
10551
  return h;
@@ -10602,17 +10602,17 @@ async function Dc(i) {
10602
10602
  for (let r = 0; r < e.length; r++) {
10603
10603
  const o = e[r];
10604
10604
  if (o === "webgpu" && await Nc()) {
10605
- const { WebGPURenderer: a } = await import("./WebGPURenderer-EavnjBvg.js");
10605
+ const { WebGPURenderer: a } = await import("./WebGPURenderer-IkacCxg7.js");
10606
10606
  t = a, s = { ...i, ...i.webgpu };
10607
10607
  break;
10608
10608
  } else if (o === "webgl" && Mc(
10609
10609
  i.failIfMajorPerformanceCaveat ?? Ys.defaultOptions.failIfMajorPerformanceCaveat
10610
10610
  )) {
10611
- const { WebGLRenderer: a } = await import("./WebGLRenderer-DDaRf1Y3.js");
10611
+ const { WebGLRenderer: a } = await import("./WebGLRenderer-0ORJ9PSM.js");
10612
10612
  t = a, s = { ...i, ...i.webgl };
10613
10613
  break;
10614
10614
  } else if (o === "canvas") {
10615
- const { CanvasRenderer: a } = await import("./CanvasRenderer-CZrsEHKq.js");
10615
+ const { CanvasRenderer: a } = await import("./CanvasRenderer-BbLcmUrB.js");
10616
10616
  t = a, s = { ...i, ...i.canvasOptions };
10617
10617
  break;
10618
10618
  }
@@ -11011,21 +11011,21 @@ const ei = {
11011
11011
  function Ri(i) {
11012
11012
  const { target: e, props: t, duration: s, easing: n = ei.easeOutCubic, delay: r = 0, onComplete: o, ticker: a } = i;
11013
11013
  if (Fc()) {
11014
- for (const m of Object.keys(t))
11015
- e[m] = t[m];
11014
+ for (const g of Object.keys(t))
11015
+ e[g] = t[g];
11016
11016
  return o == null || o(), () => {
11017
11017
  };
11018
11018
  }
11019
11019
  const l = {};
11020
- for (const m of Object.keys(t))
11021
- l[m] = e[m];
11020
+ for (const g of Object.keys(t))
11021
+ l[g] = e[g];
11022
11022
  let h = -r, f = !1;
11023
- const u = (m) => {
11024
- if (f || (h += m.deltaMS, h < 0)) return;
11025
- const g = Math.min(h / s, 1), _ = n(g);
11026
- for (const b of Object.keys(t))
11027
- e[b] = l[b] + (t[b] - l[b]) * _;
11028
- g >= 1 && (a.remove(u), o == null || o());
11023
+ const u = (g) => {
11024
+ if (f || (h += g.deltaMS, h < 0)) return;
11025
+ const m = Math.min(h / s, 1), _ = n(m);
11026
+ for (const v of Object.keys(t))
11027
+ e[v] = l[v] + (t[v] - l[v]) * _;
11028
+ m >= 1 && (a.remove(u), o == null || o());
11029
11029
  };
11030
11030
  return a.add(u), () => {
11031
11031
  f = !0, a.remove(u);
@@ -11417,48 +11417,48 @@ class Yc {
11417
11417
  var fs = {}, Zt = {}, Ln;
11418
11418
  function Xc() {
11419
11419
  if (Ln) return Zt;
11420
- Ln = 1, Zt.byteLength = a, Zt.toByteArray = h, Zt.fromByteArray = m;
11420
+ Ln = 1, Zt.byteLength = a, Zt.toByteArray = h, Zt.fromByteArray = g;
11421
11421
  for (var i = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = 0, r = s.length; n < r; ++n)
11422
11422
  i[n] = s[n], e[s.charCodeAt(n)] = n;
11423
11423
  e[45] = 62, e[95] = 63;
11424
- function o(g) {
11425
- var _ = g.length;
11424
+ function o(m) {
11425
+ var _ = m.length;
11426
11426
  if (_ % 4 > 0)
11427
11427
  throw new Error("Invalid string. Length must be a multiple of 4");
11428
- var b = g.indexOf("=");
11429
- b === -1 && (b = _);
11430
- var C = b === _ ? 0 : 4 - b % 4;
11431
- return [b, C];
11428
+ var v = m.indexOf("=");
11429
+ v === -1 && (v = _);
11430
+ var b = v === _ ? 0 : 4 - v % 4;
11431
+ return [v, b];
11432
11432
  }
11433
- function a(g) {
11434
- var _ = o(g), b = _[0], C = _[1];
11435
- return (b + C) * 3 / 4 - C;
11433
+ function a(m) {
11434
+ var _ = o(m), v = _[0], b = _[1];
11435
+ return (v + b) * 3 / 4 - b;
11436
11436
  }
11437
- function l(g, _, b) {
11438
- return (_ + b) * 3 / 4 - b;
11437
+ function l(m, _, v) {
11438
+ return (_ + v) * 3 / 4 - v;
11439
11439
  }
11440
- function h(g) {
11441
- var _, b = o(g), C = b[0], E = b[1], A = new t(l(g, C, E)), I = 0, w = E > 0 ? C - 4 : C, T;
11440
+ function h(m) {
11441
+ var _, v = o(m), b = v[0], S = v[1], A = new t(l(m, b, S)), I = 0, w = S > 0 ? b - 4 : b, T;
11442
11442
  for (T = 0; T < w; T += 4)
11443
- _ = e[g.charCodeAt(T)] << 18 | e[g.charCodeAt(T + 1)] << 12 | e[g.charCodeAt(T + 2)] << 6 | e[g.charCodeAt(T + 3)], A[I++] = _ >> 16 & 255, A[I++] = _ >> 8 & 255, A[I++] = _ & 255;
11444
- return E === 2 && (_ = e[g.charCodeAt(T)] << 2 | e[g.charCodeAt(T + 1)] >> 4, A[I++] = _ & 255), E === 1 && (_ = e[g.charCodeAt(T)] << 10 | e[g.charCodeAt(T + 1)] << 4 | e[g.charCodeAt(T + 2)] >> 2, A[I++] = _ >> 8 & 255, A[I++] = _ & 255), A;
11443
+ _ = e[m.charCodeAt(T)] << 18 | e[m.charCodeAt(T + 1)] << 12 | e[m.charCodeAt(T + 2)] << 6 | e[m.charCodeAt(T + 3)], A[I++] = _ >> 16 & 255, A[I++] = _ >> 8 & 255, A[I++] = _ & 255;
11444
+ return S === 2 && (_ = e[m.charCodeAt(T)] << 2 | e[m.charCodeAt(T + 1)] >> 4, A[I++] = _ & 255), S === 1 && (_ = e[m.charCodeAt(T)] << 10 | e[m.charCodeAt(T + 1)] << 4 | e[m.charCodeAt(T + 2)] >> 2, A[I++] = _ >> 8 & 255, A[I++] = _ & 255), A;
11445
11445
  }
11446
- function f(g) {
11447
- return i[g >> 18 & 63] + i[g >> 12 & 63] + i[g >> 6 & 63] + i[g & 63];
11446
+ function f(m) {
11447
+ return i[m >> 18 & 63] + i[m >> 12 & 63] + i[m >> 6 & 63] + i[m & 63];
11448
11448
  }
11449
- function u(g, _, b) {
11450
- for (var C, E = [], A = _; A < b; A += 3)
11451
- C = (g[A] << 16 & 16711680) + (g[A + 1] << 8 & 65280) + (g[A + 2] & 255), E.push(f(C));
11452
- return E.join("");
11449
+ function u(m, _, v) {
11450
+ for (var b, S = [], A = _; A < v; A += 3)
11451
+ b = (m[A] << 16 & 16711680) + (m[A + 1] << 8 & 65280) + (m[A + 2] & 255), S.push(f(b));
11452
+ return S.join("");
11453
11453
  }
11454
- function m(g) {
11455
- for (var _, b = g.length, C = b % 3, E = [], A = 16383, I = 0, w = b - C; I < w; I += A)
11456
- E.push(u(g, I, I + A > w ? w : I + A));
11457
- return C === 1 ? (_ = g[b - 1], E.push(
11454
+ function g(m) {
11455
+ for (var _, v = m.length, b = v % 3, S = [], A = 16383, I = 0, w = v - b; I < w; I += A)
11456
+ S.push(u(m, I, I + A > w ? w : I + A));
11457
+ return b === 1 ? (_ = m[v - 1], S.push(
11458
11458
  i[_ >> 2] + i[_ << 4 & 63] + "=="
11459
- )) : C === 2 && (_ = (g[b - 2] << 8) + g[b - 1], E.push(
11459
+ )) : b === 2 && (_ = (m[v - 2] << 8) + m[v - 1], S.push(
11460
11460
  i[_ >> 10] + i[_ >> 4 & 63] + i[_ << 2 & 63] + "="
11461
- )), E.join("");
11461
+ )), S.join("");
11462
11462
  }
11463
11463
  return Zt;
11464
11464
  }
@@ -11467,26 +11467,26 @@ var Oi = {};
11467
11467
  var Pn;
11468
11468
  function qc() {
11469
11469
  return Pn || (Pn = 1, Oi.read = function(i, e, t, s, n) {
11470
- var r, o, a = n * 8 - s - 1, l = (1 << a) - 1, h = l >> 1, f = -7, u = t ? n - 1 : 0, m = t ? -1 : 1, g = i[e + u];
11471
- for (u += m, r = g & (1 << -f) - 1, g >>= -f, f += a; f > 0; r = r * 256 + i[e + u], u += m, f -= 8)
11470
+ var r, o, a = n * 8 - s - 1, l = (1 << a) - 1, h = l >> 1, f = -7, u = t ? n - 1 : 0, g = t ? -1 : 1, m = i[e + u];
11471
+ for (u += g, r = m & (1 << -f) - 1, m >>= -f, f += a; f > 0; r = r * 256 + i[e + u], u += g, f -= 8)
11472
11472
  ;
11473
- for (o = r & (1 << -f) - 1, r >>= -f, f += s; f > 0; o = o * 256 + i[e + u], u += m, f -= 8)
11473
+ for (o = r & (1 << -f) - 1, r >>= -f, f += s; f > 0; o = o * 256 + i[e + u], u += g, f -= 8)
11474
11474
  ;
11475
11475
  if (r === 0)
11476
11476
  r = 1 - h;
11477
11477
  else {
11478
11478
  if (r === l)
11479
- return o ? NaN : (g ? -1 : 1) * (1 / 0);
11479
+ return o ? NaN : (m ? -1 : 1) * (1 / 0);
11480
11480
  o = o + Math.pow(2, s), r = r - h;
11481
11481
  }
11482
- return (g ? -1 : 1) * o * Math.pow(2, r - s);
11482
+ return (m ? -1 : 1) * o * Math.pow(2, r - s);
11483
11483
  }, Oi.write = function(i, e, t, s, n, r) {
11484
- var o, a, l, h = r * 8 - n - 1, f = (1 << h) - 1, u = f >> 1, m = n === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = s ? 0 : r - 1, _ = s ? 1 : -1, b = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
11485
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, o = f) : (o = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -o)) < 1 && (o--, l *= 2), o + u >= 1 ? e += m / l : e += m * Math.pow(2, 1 - u), e * l >= 2 && (o++, l /= 2), o + u >= f ? (a = 0, o = f) : o + u >= 1 ? (a = (e * l - 1) * Math.pow(2, n), o = o + u) : (a = e * Math.pow(2, u - 1) * Math.pow(2, n), o = 0)); n >= 8; i[t + g] = a & 255, g += _, a /= 256, n -= 8)
11484
+ var o, a, l, h = r * 8 - n - 1, f = (1 << h) - 1, u = f >> 1, g = n === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = s ? 0 : r - 1, _ = s ? 1 : -1, v = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
11485
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, o = f) : (o = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -o)) < 1 && (o--, l *= 2), o + u >= 1 ? e += g / l : e += g * Math.pow(2, 1 - u), e * l >= 2 && (o++, l /= 2), o + u >= f ? (a = 0, o = f) : o + u >= 1 ? (a = (e * l - 1) * Math.pow(2, n), o = o + u) : (a = e * Math.pow(2, u - 1) * Math.pow(2, n), o = 0)); n >= 8; i[t + m] = a & 255, m += _, a /= 256, n -= 8)
11486
11486
  ;
11487
- for (o = o << n | a, h += n; h > 0; i[t + g] = o & 255, g += _, o /= 256, h -= 8)
11487
+ for (o = o << n | a, h += n; h > 0; i[t + m] = o & 255, m += _, o /= 256, h -= 8)
11488
11488
  ;
11489
- i[t + g - _] |= b * 128;
11489
+ i[t + m - _] |= v * 128;
11490
11490
  }), Oi;
11491
11491
  }
11492
11492
  /*!
@@ -11546,7 +11546,7 @@ function Kc() {
11546
11546
  a.poolSize = 8192;
11547
11547
  function l(p, c, d) {
11548
11548
  if (typeof p == "string")
11549
- return m(p, c);
11549
+ return g(p, c);
11550
11550
  if (ArrayBuffer.isView(p))
11551
11551
  return _(p);
11552
11552
  if (p == null)
@@ -11554,7 +11554,7 @@ function Kc() {
11554
11554
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof p
11555
11555
  );
11556
11556
  if (ze(p, ArrayBuffer) || p && ze(p.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ze(p, SharedArrayBuffer) || p && ze(p.buffer, SharedArrayBuffer)))
11557
- return b(p, c, d);
11557
+ return v(p, c, d);
11558
11558
  if (typeof p == "number")
11559
11559
  throw new TypeError(
11560
11560
  'The "value" argument must not be of type number. Received type number'
@@ -11562,8 +11562,8 @@ function Kc() {
11562
11562
  const y = p.valueOf && p.valueOf();
11563
11563
  if (y != null && y !== p)
11564
11564
  return a.from(y, c, d);
11565
- const v = C(p);
11566
- if (v) return v;
11565
+ const C = b(p);
11566
+ if (C) return C;
11567
11567
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof p[Symbol.toPrimitive] == "function")
11568
11568
  return a.from(p[Symbol.toPrimitive]("string"), c, d);
11569
11569
  throw new TypeError(
@@ -11586,23 +11586,23 @@ function Kc() {
11586
11586
  return f(p, c, d);
11587
11587
  };
11588
11588
  function u(p) {
11589
- return h(p), o(p < 0 ? 0 : E(p) | 0);
11589
+ return h(p), o(p < 0 ? 0 : S(p) | 0);
11590
11590
  }
11591
11591
  a.allocUnsafe = function(p) {
11592
11592
  return u(p);
11593
11593
  }, a.allocUnsafeSlow = function(p) {
11594
11594
  return u(p);
11595
11595
  };
11596
- function m(p, c) {
11596
+ function g(p, c) {
11597
11597
  if ((typeof c != "string" || c === "") && (c = "utf8"), !a.isEncoding(c))
11598
11598
  throw new TypeError("Unknown encoding: " + c);
11599
11599
  const d = I(p, c) | 0;
11600
11600
  let y = o(d);
11601
- const v = y.write(p, c);
11602
- return v !== d && (y = y.slice(0, v)), y;
11601
+ const C = y.write(p, c);
11602
+ return C !== d && (y = y.slice(0, C)), y;
11603
11603
  }
11604
- function g(p) {
11605
- const c = p.length < 0 ? 0 : E(p.length) | 0, d = o(c);
11604
+ function m(p) {
11605
+ const c = p.length < 0 ? 0 : S(p.length) | 0, d = o(c);
11606
11606
  for (let y = 0; y < c; y += 1)
11607
11607
  d[y] = p[y] & 255;
11608
11608
  return d;
@@ -11610,11 +11610,11 @@ function Kc() {
11610
11610
  function _(p) {
11611
11611
  if (ze(p, Uint8Array)) {
11612
11612
  const c = new Uint8Array(p);
11613
- return b(c.buffer, c.byteOffset, c.byteLength);
11613
+ return v(c.buffer, c.byteOffset, c.byteLength);
11614
11614
  }
11615
- return g(p);
11615
+ return m(p);
11616
11616
  }
11617
- function b(p, c, d) {
11617
+ function v(p, c, d) {
11618
11618
  if (c < 0 || p.byteLength < c)
11619
11619
  throw new RangeError('"offset" is outside of buffer bounds');
11620
11620
  if (p.byteLength < c + (d || 0))
@@ -11622,17 +11622,17 @@ function Kc() {
11622
11622
  let y;
11623
11623
  return c === void 0 && d === void 0 ? y = new Uint8Array(p) : d === void 0 ? y = new Uint8Array(p, c) : y = new Uint8Array(p, c, d), Object.setPrototypeOf(y, a.prototype), y;
11624
11624
  }
11625
- function C(p) {
11625
+ function b(p) {
11626
11626
  if (a.isBuffer(p)) {
11627
- const c = E(p.length) | 0, d = o(c);
11627
+ const c = S(p.length) | 0, d = o(c);
11628
11628
  return d.length === 0 || p.copy(d, 0, 0, c), d;
11629
11629
  }
11630
11630
  if (p.length !== void 0)
11631
- return typeof p.length != "number" || Ji(p.length) ? o(0) : g(p);
11631
+ return typeof p.length != "number" || Ji(p.length) ? o(0) : m(p);
11632
11632
  if (p.type === "Buffer" && Array.isArray(p.data))
11633
- return g(p.data);
11633
+ return m(p.data);
11634
11634
  }
11635
- function E(p) {
11635
+ function S(p) {
11636
11636
  if (p >= n)
11637
11637
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + n.toString(16) + " bytes");
11638
11638
  return p | 0;
@@ -11648,13 +11648,13 @@ function Kc() {
11648
11648
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
11649
11649
  );
11650
11650
  if (c === d) return 0;
11651
- let y = c.length, v = d.length;
11652
- for (let S = 0, x = Math.min(y, v); S < x; ++S)
11653
- if (c[S] !== d[S]) {
11654
- y = c[S], v = d[S];
11651
+ let y = c.length, C = d.length;
11652
+ for (let E = 0, x = Math.min(y, C); E < x; ++E)
11653
+ if (c[E] !== d[E]) {
11654
+ y = c[E], C = d[E];
11655
11655
  break;
11656
11656
  }
11657
- return y < v ? -1 : v < y ? 1 : 0;
11657
+ return y < C ? -1 : C < y ? 1 : 0;
11658
11658
  }, a.isEncoding = function(c) {
11659
11659
  switch (String(c).toLowerCase()) {
11660
11660
  case "hex":
@@ -11681,23 +11681,23 @@ function Kc() {
11681
11681
  if (d === void 0)
11682
11682
  for (d = 0, y = 0; y < c.length; ++y)
11683
11683
  d += c[y].length;
11684
- const v = a.allocUnsafe(d);
11685
- let S = 0;
11684
+ const C = a.allocUnsafe(d);
11685
+ let E = 0;
11686
11686
  for (y = 0; y < c.length; ++y) {
11687
11687
  let x = c[y];
11688
11688
  if (ze(x, Uint8Array))
11689
- S + x.length > v.length ? (a.isBuffer(x) || (x = a.from(x)), x.copy(v, S)) : Uint8Array.prototype.set.call(
11690
- v,
11689
+ E + x.length > C.length ? (a.isBuffer(x) || (x = a.from(x)), x.copy(C, E)) : Uint8Array.prototype.set.call(
11690
+ C,
11691
11691
  x,
11692
- S
11692
+ E
11693
11693
  );
11694
11694
  else if (a.isBuffer(x))
11695
- x.copy(v, S);
11695
+ x.copy(C, E);
11696
11696
  else
11697
11697
  throw new TypeError('"list" argument must be an Array of Buffers');
11698
- S += x.length;
11698
+ E += x.length;
11699
11699
  }
11700
- return v;
11700
+ return C;
11701
11701
  };
11702
11702
  function I(p, c) {
11703
11703
  if (a.isBuffer(p))
@@ -11710,7 +11710,7 @@ function Kc() {
11710
11710
  );
11711
11711
  const d = p.length, y = arguments.length > 2 && arguments[2] === !0;
11712
11712
  if (!y && d === 0) return 0;
11713
- let v = !1;
11713
+ let C = !1;
11714
11714
  for (; ; )
11715
11715
  switch (c) {
11716
11716
  case "ascii":
@@ -11730,9 +11730,9 @@ function Kc() {
11730
11730
  case "base64":
11731
11731
  return en(p).length;
11732
11732
  default:
11733
- if (v)
11733
+ if (C)
11734
11734
  return y ? -1 : Zi(p).length;
11735
- c = ("" + c).toLowerCase(), v = !0;
11735
+ c = ("" + c).toLowerCase(), C = !0;
11736
11736
  }
11737
11737
  }
11738
11738
  a.byteLength = I;
@@ -11800,22 +11800,22 @@ function Kc() {
11800
11800
  let c = "";
11801
11801
  const d = i.INSPECT_MAX_BYTES;
11802
11802
  return c = this.toString("hex", 0, d).replace(/(.{2})/g, "$1 ").trim(), this.length > d && (c += " ... "), "<Buffer " + c + ">";
11803
- }, s && (a.prototype[s] = a.prototype.inspect), a.prototype.compare = function(c, d, y, v, S) {
11803
+ }, s && (a.prototype[s] = a.prototype.inspect), a.prototype.compare = function(c, d, y, C, E) {
11804
11804
  if (ze(c, Uint8Array) && (c = a.from(c, c.offset, c.byteLength)), !a.isBuffer(c))
11805
11805
  throw new TypeError(
11806
11806
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
11807
11807
  );
11808
- if (d === void 0 && (d = 0), y === void 0 && (y = c ? c.length : 0), v === void 0 && (v = 0), S === void 0 && (S = this.length), d < 0 || y > c.length || v < 0 || S > this.length)
11808
+ if (d === void 0 && (d = 0), y === void 0 && (y = c ? c.length : 0), C === void 0 && (C = 0), E === void 0 && (E = this.length), d < 0 || y > c.length || C < 0 || E > this.length)
11809
11809
  throw new RangeError("out of range index");
11810
- if (v >= S && d >= y)
11810
+ if (C >= E && d >= y)
11811
11811
  return 0;
11812
- if (v >= S)
11812
+ if (C >= E)
11813
11813
  return -1;
11814
11814
  if (d >= y)
11815
11815
  return 1;
11816
- if (d >>>= 0, y >>>= 0, v >>>= 0, S >>>= 0, this === c) return 0;
11817
- let x = S - v, N = y - d;
11818
- const K = Math.min(x, N), Y = this.slice(v, S), Z = c.slice(d, y);
11816
+ if (d >>>= 0, y >>>= 0, C >>>= 0, E >>>= 0, this === c) return 0;
11817
+ let x = E - C, N = y - d;
11818
+ const K = Math.min(x, N), Y = this.slice(C, E), Z = c.slice(d, y);
11819
11819
  for (let G = 0; G < K; ++G)
11820
11820
  if (Y[G] !== Z[G]) {
11821
11821
  x = Y[G], N = Z[G];
@@ -11823,36 +11823,36 @@ function Kc() {
11823
11823
  }
11824
11824
  return x < N ? -1 : N < x ? 1 : 0;
11825
11825
  };
11826
- function M(p, c, d, y, v) {
11826
+ function M(p, c, d, y, C) {
11827
11827
  if (p.length === 0) return -1;
11828
- if (typeof d == "string" ? (y = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, Ji(d) && (d = v ? 0 : p.length - 1), d < 0 && (d = p.length + d), d >= p.length) {
11829
- if (v) return -1;
11828
+ if (typeof d == "string" ? (y = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, Ji(d) && (d = C ? 0 : p.length - 1), d < 0 && (d = p.length + d), d >= p.length) {
11829
+ if (C) return -1;
11830
11830
  d = p.length - 1;
11831
11831
  } else if (d < 0)
11832
- if (v) d = 0;
11832
+ if (C) d = 0;
11833
11833
  else return -1;
11834
11834
  if (typeof c == "string" && (c = a.from(c, y)), a.isBuffer(c))
11835
- return c.length === 0 ? -1 : F(p, c, d, y, v);
11835
+ return c.length === 0 ? -1 : F(p, c, d, y, C);
11836
11836
  if (typeof c == "number")
11837
- return c = c & 255, typeof Uint8Array.prototype.indexOf == "function" ? v ? Uint8Array.prototype.indexOf.call(p, c, d) : Uint8Array.prototype.lastIndexOf.call(p, c, d) : F(p, [c], d, y, v);
11837
+ return c = c & 255, typeof Uint8Array.prototype.indexOf == "function" ? C ? Uint8Array.prototype.indexOf.call(p, c, d) : Uint8Array.prototype.lastIndexOf.call(p, c, d) : F(p, [c], d, y, C);
11838
11838
  throw new TypeError("val must be string, number or Buffer");
11839
11839
  }
11840
- function F(p, c, d, y, v) {
11841
- let S = 1, x = p.length, N = c.length;
11840
+ function F(p, c, d, y, C) {
11841
+ let E = 1, x = p.length, N = c.length;
11842
11842
  if (y !== void 0 && (y = String(y).toLowerCase(), y === "ucs2" || y === "ucs-2" || y === "utf16le" || y === "utf-16le")) {
11843
11843
  if (p.length < 2 || c.length < 2)
11844
11844
  return -1;
11845
- S = 2, x /= 2, N /= 2, d /= 2;
11845
+ E = 2, x /= 2, N /= 2, d /= 2;
11846
11846
  }
11847
11847
  function K(Z, G) {
11848
- return S === 1 ? Z[G] : Z.readUInt16BE(G * S);
11848
+ return E === 1 ? Z[G] : Z.readUInt16BE(G * E);
11849
11849
  }
11850
11850
  let Y;
11851
- if (v) {
11851
+ if (C) {
11852
11852
  let Z = -1;
11853
11853
  for (Y = d; Y < x; Y++)
11854
11854
  if (K(p, Y) === K(c, Z === -1 ? 0 : Y - Z)) {
11855
- if (Z === -1 && (Z = Y), Y - Z + 1 === N) return Z * S;
11855
+ if (Z === -1 && (Z = Y), Y - Z + 1 === N) return Z * E;
11856
11856
  } else
11857
11857
  Z !== -1 && (Y -= Y - Z), Z = -1;
11858
11858
  } else
@@ -11876,10 +11876,10 @@ function Kc() {
11876
11876
  };
11877
11877
  function D(p, c, d, y) {
11878
11878
  d = Number(d) || 0;
11879
- const v = p.length - d;
11880
- y ? (y = Number(y), y > v && (y = v)) : y = v;
11881
- const S = c.length;
11882
- y > S / 2 && (y = S / 2);
11879
+ const C = p.length - d;
11880
+ y ? (y = Number(y), y > C && (y = C)) : y = C;
11881
+ const E = c.length;
11882
+ y > E / 2 && (y = E / 2);
11883
11883
  let x;
11884
11884
  for (x = 0; x < y; ++x) {
11885
11885
  const N = parseInt(c.substr(x * 2, 2), 16);
@@ -11900,24 +11900,24 @@ function Kc() {
11900
11900
  function me(p, c, d, y) {
11901
11901
  return yi(ya(c, p.length - d), p, d, y);
11902
11902
  }
11903
- a.prototype.write = function(c, d, y, v) {
11903
+ a.prototype.write = function(c, d, y, C) {
11904
11904
  if (d === void 0)
11905
- v = "utf8", y = this.length, d = 0;
11905
+ C = "utf8", y = this.length, d = 0;
11906
11906
  else if (y === void 0 && typeof d == "string")
11907
- v = d, y = this.length, d = 0;
11907
+ C = d, y = this.length, d = 0;
11908
11908
  else if (isFinite(d))
11909
- d = d >>> 0, isFinite(y) ? (y = y >>> 0, v === void 0 && (v = "utf8")) : (v = y, y = void 0);
11909
+ d = d >>> 0, isFinite(y) ? (y = y >>> 0, C === void 0 && (C = "utf8")) : (C = y, y = void 0);
11910
11910
  else
11911
11911
  throw new Error(
11912
11912
  "Buffer.write(string, encoding, offset[, length]) is no longer supported"
11913
11913
  );
11914
- const S = this.length - d;
11915
- if ((y === void 0 || y > S) && (y = S), c.length > 0 && (y < 0 || d < 0) || d > this.length)
11914
+ const E = this.length - d;
11915
+ if ((y === void 0 || y > E) && (y = E), c.length > 0 && (y < 0 || d < 0) || d > this.length)
11916
11916
  throw new RangeError("Attempt to write outside buffer bounds");
11917
- v || (v = "utf8");
11917
+ C || (C = "utf8");
11918
11918
  let x = !1;
11919
11919
  for (; ; )
11920
- switch (v) {
11920
+ switch (C) {
11921
11921
  case "hex":
11922
11922
  return D(this, c, d, y);
11923
11923
  case "utf8":
@@ -11935,8 +11935,8 @@ function Kc() {
11935
11935
  case "utf-16le":
11936
11936
  return me(this, c, d, y);
11937
11937
  default:
11938
- if (x) throw new TypeError("Unknown encoding: " + v);
11939
- v = ("" + v).toLowerCase(), x = !0;
11938
+ if (x) throw new TypeError("Unknown encoding: " + C);
11939
+ C = ("" + C).toLowerCase(), x = !0;
11940
11940
  }
11941
11941
  }, a.prototype.toJSON = function() {
11942
11942
  return {
@@ -11950,27 +11950,27 @@ function Kc() {
11950
11950
  function H(p, c, d) {
11951
11951
  d = Math.min(p.length, d);
11952
11952
  const y = [];
11953
- let v = c;
11954
- for (; v < d; ) {
11955
- const S = p[v];
11956
- let x = null, N = S > 239 ? 4 : S > 223 ? 3 : S > 191 ? 2 : 1;
11957
- if (v + N <= d) {
11953
+ let C = c;
11954
+ for (; C < d; ) {
11955
+ const E = p[C];
11956
+ let x = null, N = E > 239 ? 4 : E > 223 ? 3 : E > 191 ? 2 : 1;
11957
+ if (C + N <= d) {
11958
11958
  let K, Y, Z, G;
11959
11959
  switch (N) {
11960
11960
  case 1:
11961
- S < 128 && (x = S);
11961
+ E < 128 && (x = E);
11962
11962
  break;
11963
11963
  case 2:
11964
- K = p[v + 1], (K & 192) === 128 && (G = (S & 31) << 6 | K & 63, G > 127 && (x = G));
11964
+ K = p[C + 1], (K & 192) === 128 && (G = (E & 31) << 6 | K & 63, G > 127 && (x = G));
11965
11965
  break;
11966
11966
  case 3:
11967
- K = p[v + 1], Y = p[v + 2], (K & 192) === 128 && (Y & 192) === 128 && (G = (S & 15) << 12 | (K & 63) << 6 | Y & 63, G > 2047 && (G < 55296 || G > 57343) && (x = G));
11967
+ K = p[C + 1], Y = p[C + 2], (K & 192) === 128 && (Y & 192) === 128 && (G = (E & 15) << 12 | (K & 63) << 6 | Y & 63, G > 2047 && (G < 55296 || G > 57343) && (x = G));
11968
11968
  break;
11969
11969
  case 4:
11970
- K = p[v + 1], Y = p[v + 2], Z = p[v + 3], (K & 192) === 128 && (Y & 192) === 128 && (Z & 192) === 128 && (G = (S & 15) << 18 | (K & 63) << 12 | (Y & 63) << 6 | Z & 63, G > 65535 && G < 1114112 && (x = G));
11970
+ K = p[C + 1], Y = p[C + 2], Z = p[C + 3], (K & 192) === 128 && (Y & 192) === 128 && (Z & 192) === 128 && (G = (E & 15) << 18 | (K & 63) << 12 | (Y & 63) << 6 | Z & 63, G > 65535 && G < 1114112 && (x = G));
11971
11971
  }
11972
11972
  }
11973
- x === null ? (x = 65533, N = 1) : x > 65535 && (x -= 65536, y.push(x >>> 10 & 1023 | 55296), x = 56320 | x & 1023), y.push(x), v += N;
11973
+ x === null ? (x = 65533, N = 1) : x > 65535 && (x -= 65536, y.push(x >>> 10 & 1023 | 55296), x = 56320 | x & 1023), y.push(x), C += N;
11974
11974
  }
11975
11975
  return we(y);
11976
11976
  }
@@ -11990,37 +11990,37 @@ function Kc() {
11990
11990
  function De(p, c, d) {
11991
11991
  let y = "";
11992
11992
  d = Math.min(p.length, d);
11993
- for (let v = c; v < d; ++v)
11994
- y += String.fromCharCode(p[v] & 127);
11993
+ for (let C = c; C < d; ++C)
11994
+ y += String.fromCharCode(p[C] & 127);
11995
11995
  return y;
11996
11996
  }
11997
11997
  function Ue(p, c, d) {
11998
11998
  let y = "";
11999
11999
  d = Math.min(p.length, d);
12000
- for (let v = c; v < d; ++v)
12001
- y += String.fromCharCode(p[v]);
12000
+ for (let C = c; C < d; ++C)
12001
+ y += String.fromCharCode(p[C]);
12002
12002
  return y;
12003
12003
  }
12004
12004
  function ye(p, c, d) {
12005
12005
  const y = p.length;
12006
12006
  (!c || c < 0) && (c = 0), (!d || d < 0 || d > y) && (d = y);
12007
- let v = "";
12008
- for (let S = c; S < d; ++S)
12009
- v += _a[p[S]];
12010
- return v;
12007
+ let C = "";
12008
+ for (let E = c; E < d; ++E)
12009
+ C += _a[p[E]];
12010
+ return C;
12011
12011
  }
12012
12012
  function Ce(p, c, d) {
12013
12013
  const y = p.slice(c, d);
12014
- let v = "";
12015
- for (let S = 0; S < y.length - 1; S += 2)
12016
- v += String.fromCharCode(y[S] + y[S + 1] * 256);
12017
- return v;
12014
+ let C = "";
12015
+ for (let E = 0; E < y.length - 1; E += 2)
12016
+ C += String.fromCharCode(y[E] + y[E + 1] * 256);
12017
+ return C;
12018
12018
  }
12019
12019
  a.prototype.slice = function(c, d) {
12020
12020
  const y = this.length;
12021
12021
  c = ~~c, d = d === void 0 ? y : ~~d, c < 0 ? (c += y, c < 0 && (c = 0)) : c > y && (c = y), d < 0 ? (d += y, d < 0 && (d = 0)) : d > y && (d = y), d < c && (d = c);
12022
- const v = this.subarray(c, d);
12023
- return Object.setPrototypeOf(v, a.prototype), v;
12022
+ const C = this.subarray(c, d);
12023
+ return Object.setPrototypeOf(C, a.prototype), C;
12024
12024
  };
12025
12025
  function V(p, c, d) {
12026
12026
  if (p % 1 !== 0 || p < 0) throw new RangeError("offset is not uint");
@@ -12028,16 +12028,16 @@ function Kc() {
12028
12028
  }
12029
12029
  a.prototype.readUintLE = a.prototype.readUIntLE = function(c, d, y) {
12030
12030
  c = c >>> 0, d = d >>> 0, y || V(c, d, this.length);
12031
- let v = this[c], S = 1, x = 0;
12032
- for (; ++x < d && (S *= 256); )
12033
- v += this[c + x] * S;
12034
- return v;
12031
+ let C = this[c], E = 1, x = 0;
12032
+ for (; ++x < d && (E *= 256); )
12033
+ C += this[c + x] * E;
12034
+ return C;
12035
12035
  }, a.prototype.readUintBE = a.prototype.readUIntBE = function(c, d, y) {
12036
12036
  c = c >>> 0, d = d >>> 0, y || V(c, d, this.length);
12037
- let v = this[c + --d], S = 1;
12038
- for (; d > 0 && (S *= 256); )
12039
- v += this[c + --d] * S;
12040
- return v;
12037
+ let C = this[c + --d], E = 1;
12038
+ for (; d > 0 && (E *= 256); )
12039
+ C += this[c + --d] * E;
12040
+ return C;
12041
12041
  }, a.prototype.readUint8 = a.prototype.readUInt8 = function(c, d) {
12042
12042
  return c = c >>> 0, d || V(c, 1, this.length), this[c];
12043
12043
  }, a.prototype.readUint16LE = a.prototype.readUInt16LE = function(c, d) {
@@ -12052,26 +12052,26 @@ function Kc() {
12052
12052
  c = c >>> 0, Le(c, "offset");
12053
12053
  const d = this[c], y = this[c + 7];
12054
12054
  (d === void 0 || y === void 0) && ee(c, this.length - 8);
12055
- const v = d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, S = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + y * 2 ** 24;
12056
- return BigInt(v) + (BigInt(S) << BigInt(32));
12055
+ const C = d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, E = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + y * 2 ** 24;
12056
+ return BigInt(C) + (BigInt(E) << BigInt(32));
12057
12057
  }), a.prototype.readBigUInt64BE = ot(function(c) {
12058
12058
  c = c >>> 0, Le(c, "offset");
12059
12059
  const d = this[c], y = this[c + 7];
12060
12060
  (d === void 0 || y === void 0) && ee(c, this.length - 8);
12061
- const v = d * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], S = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + y;
12062
- return (BigInt(v) << BigInt(32)) + BigInt(S);
12061
+ const C = d * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], E = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + y;
12062
+ return (BigInt(C) << BigInt(32)) + BigInt(E);
12063
12063
  }), a.prototype.readIntLE = function(c, d, y) {
12064
12064
  c = c >>> 0, d = d >>> 0, y || V(c, d, this.length);
12065
- let v = this[c], S = 1, x = 0;
12066
- for (; ++x < d && (S *= 256); )
12067
- v += this[c + x] * S;
12068
- return S *= 128, v >= S && (v -= Math.pow(2, 8 * d)), v;
12065
+ let C = this[c], E = 1, x = 0;
12066
+ for (; ++x < d && (E *= 256); )
12067
+ C += this[c + x] * E;
12068
+ return E *= 128, C >= E && (C -= Math.pow(2, 8 * d)), C;
12069
12069
  }, a.prototype.readIntBE = function(c, d, y) {
12070
12070
  c = c >>> 0, d = d >>> 0, y || V(c, d, this.length);
12071
- let v = d, S = 1, x = this[c + --v];
12072
- for (; v > 0 && (S *= 256); )
12073
- x += this[c + --v] * S;
12074
- return S *= 128, x >= S && (x -= Math.pow(2, 8 * d)), x;
12071
+ let C = d, E = 1, x = this[c + --C];
12072
+ for (; C > 0 && (E *= 256); )
12073
+ x += this[c + --C] * E;
12074
+ return E *= 128, x >= E && (x -= Math.pow(2, 8 * d)), x;
12075
12075
  }, a.prototype.readInt8 = function(c, d) {
12076
12076
  return c = c >>> 0, d || V(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
12077
12077
  }, a.prototype.readInt16LE = function(c, d) {
@@ -12090,15 +12090,15 @@ function Kc() {
12090
12090
  c = c >>> 0, Le(c, "offset");
12091
12091
  const d = this[c], y = this[c + 7];
12092
12092
  (d === void 0 || y === void 0) && ee(c, this.length - 8);
12093
- const v = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (y << 24);
12094
- return (BigInt(v) << BigInt(32)) + BigInt(d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
12093
+ const C = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (y << 24);
12094
+ return (BigInt(C) << BigInt(32)) + BigInt(d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
12095
12095
  }), a.prototype.readBigInt64BE = ot(function(c) {
12096
12096
  c = c >>> 0, Le(c, "offset");
12097
12097
  const d = this[c], y = this[c + 7];
12098
12098
  (d === void 0 || y === void 0) && ee(c, this.length - 8);
12099
- const v = (d << 24) + // Overflow
12099
+ const C = (d << 24) + // Overflow
12100
12100
  this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
12101
- return (BigInt(v) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + y);
12101
+ return (BigInt(C) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + y);
12102
12102
  }), a.prototype.readFloatLE = function(c, d) {
12103
12103
  return c = c >>> 0, d || V(c, 4, this.length), t.read(this, c, !0, 23, 4);
12104
12104
  }, a.prototype.readFloatBE = function(c, d) {
@@ -12108,28 +12108,28 @@ function Kc() {
12108
12108
  }, a.prototype.readDoubleBE = function(c, d) {
12109
12109
  return c = c >>> 0, d || V(c, 8, this.length), t.read(this, c, !1, 52, 8);
12110
12110
  };
12111
- function L(p, c, d, y, v, S) {
12111
+ function L(p, c, d, y, C, E) {
12112
12112
  if (!a.isBuffer(p)) throw new TypeError('"buffer" argument must be a Buffer instance');
12113
- if (c > v || c < S) throw new RangeError('"value" argument is out of bounds');
12113
+ if (c > C || c < E) throw new RangeError('"value" argument is out of bounds');
12114
12114
  if (d + y > p.length) throw new RangeError("Index out of range");
12115
12115
  }
12116
- a.prototype.writeUintLE = a.prototype.writeUIntLE = function(c, d, y, v) {
12117
- if (c = +c, d = d >>> 0, y = y >>> 0, !v) {
12116
+ a.prototype.writeUintLE = a.prototype.writeUIntLE = function(c, d, y, C) {
12117
+ if (c = +c, d = d >>> 0, y = y >>> 0, !C) {
12118
12118
  const N = Math.pow(2, 8 * y) - 1;
12119
12119
  L(this, c, d, y, N, 0);
12120
12120
  }
12121
- let S = 1, x = 0;
12122
- for (this[d] = c & 255; ++x < y && (S *= 256); )
12123
- this[d + x] = c / S & 255;
12121
+ let E = 1, x = 0;
12122
+ for (this[d] = c & 255; ++x < y && (E *= 256); )
12123
+ this[d + x] = c / E & 255;
12124
12124
  return d + y;
12125
- }, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(c, d, y, v) {
12126
- if (c = +c, d = d >>> 0, y = y >>> 0, !v) {
12125
+ }, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(c, d, y, C) {
12126
+ if (c = +c, d = d >>> 0, y = y >>> 0, !C) {
12127
12127
  const N = Math.pow(2, 8 * y) - 1;
12128
12128
  L(this, c, d, y, N, 0);
12129
12129
  }
12130
- let S = y - 1, x = 1;
12131
- for (this[d + S] = c & 255; --S >= 0 && (x *= 256); )
12132
- this[d + S] = c / x & 255;
12130
+ let E = y - 1, x = 1;
12131
+ for (this[d + E] = c & 255; --E >= 0 && (x *= 256); )
12132
+ this[d + E] = c / x & 255;
12133
12133
  return d + y;
12134
12134
  }, a.prototype.writeUint8 = a.prototype.writeUInt8 = function(c, d, y) {
12135
12135
  return c = +c, d = d >>> 0, y || L(this, c, d, 1, 255, 0), this[d] = c & 255, d + 1;
@@ -12142,17 +12142,17 @@ function Kc() {
12142
12142
  }, a.prototype.writeUint32BE = a.prototype.writeUInt32BE = function(c, d, y) {
12143
12143
  return c = +c, d = d >>> 0, y || L(this, c, d, 4, 4294967295, 0), this[d] = c >>> 24, this[d + 1] = c >>> 16, this[d + 2] = c >>> 8, this[d + 3] = c & 255, d + 4;
12144
12144
  };
12145
- function xe(p, c, d, y, v) {
12146
- fe(c, y, v, p, d, 7);
12147
- let S = Number(c & BigInt(4294967295));
12148
- p[d++] = S, S = S >> 8, p[d++] = S, S = S >> 8, p[d++] = S, S = S >> 8, p[d++] = S;
12145
+ function xe(p, c, d, y, C) {
12146
+ fe(c, y, C, p, d, 7);
12147
+ let E = Number(c & BigInt(4294967295));
12148
+ p[d++] = E, E = E >> 8, p[d++] = E, E = E >> 8, p[d++] = E, E = E >> 8, p[d++] = E;
12149
12149
  let x = Number(c >> BigInt(32) & BigInt(4294967295));
12150
12150
  return p[d++] = x, x = x >> 8, p[d++] = x, x = x >> 8, p[d++] = x, x = x >> 8, p[d++] = x, d;
12151
12151
  }
12152
- function Te(p, c, d, y, v) {
12153
- fe(c, y, v, p, d, 7);
12154
- let S = Number(c & BigInt(4294967295));
12155
- p[d + 7] = S, S = S >> 8, p[d + 6] = S, S = S >> 8, p[d + 5] = S, S = S >> 8, p[d + 4] = S;
12152
+ function Te(p, c, d, y, C) {
12153
+ fe(c, y, C, p, d, 7);
12154
+ let E = Number(c & BigInt(4294967295));
12155
+ p[d + 7] = E, E = E >> 8, p[d + 6] = E, E = E >> 8, p[d + 5] = E, E = E >> 8, p[d + 4] = E;
12156
12156
  let x = Number(c >> BigInt(32) & BigInt(4294967295));
12157
12157
  return p[d + 3] = x, x = x >> 8, p[d + 2] = x, x = x >> 8, p[d + 1] = x, x = x >> 8, p[d] = x, d + 8;
12158
12158
  }
@@ -12160,23 +12160,23 @@ function Kc() {
12160
12160
  return xe(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
12161
12161
  }), a.prototype.writeBigUInt64BE = ot(function(c, d = 0) {
12162
12162
  return Te(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
12163
- }), a.prototype.writeIntLE = function(c, d, y, v) {
12164
- if (c = +c, d = d >>> 0, !v) {
12163
+ }), a.prototype.writeIntLE = function(c, d, y, C) {
12164
+ if (c = +c, d = d >>> 0, !C) {
12165
12165
  const K = Math.pow(2, 8 * y - 1);
12166
12166
  L(this, c, d, y, K - 1, -K);
12167
12167
  }
12168
- let S = 0, x = 1, N = 0;
12169
- for (this[d] = c & 255; ++S < y && (x *= 256); )
12170
- c < 0 && N === 0 && this[d + S - 1] !== 0 && (N = 1), this[d + S] = (c / x >> 0) - N & 255;
12168
+ let E = 0, x = 1, N = 0;
12169
+ for (this[d] = c & 255; ++E < y && (x *= 256); )
12170
+ c < 0 && N === 0 && this[d + E - 1] !== 0 && (N = 1), this[d + E] = (c / x >> 0) - N & 255;
12171
12171
  return d + y;
12172
- }, a.prototype.writeIntBE = function(c, d, y, v) {
12173
- if (c = +c, d = d >>> 0, !v) {
12172
+ }, a.prototype.writeIntBE = function(c, d, y, C) {
12173
+ if (c = +c, d = d >>> 0, !C) {
12174
12174
  const K = Math.pow(2, 8 * y - 1);
12175
12175
  L(this, c, d, y, K - 1, -K);
12176
12176
  }
12177
- let S = y - 1, x = 1, N = 0;
12178
- for (this[d + S] = c & 255; --S >= 0 && (x *= 256); )
12179
- c < 0 && N === 0 && this[d + S + 1] !== 0 && (N = 1), this[d + S] = (c / x >> 0) - N & 255;
12177
+ let E = y - 1, x = 1, N = 0;
12178
+ for (this[d + E] = c & 255; --E >= 0 && (x *= 256); )
12179
+ c < 0 && N === 0 && this[d + E + 1] !== 0 && (N = 1), this[d + E] = (c / x >> 0) - N & 255;
12180
12180
  return d + y;
12181
12181
  }, a.prototype.writeInt8 = function(c, d, y) {
12182
12182
  return c = +c, d = d >>> 0, y || L(this, c, d, 1, 127, -128), c < 0 && (c = 255 + c + 1), this[d] = c & 255, d + 1;
@@ -12193,48 +12193,48 @@ function Kc() {
12193
12193
  }), a.prototype.writeBigInt64BE = ot(function(c, d = 0) {
12194
12194
  return Te(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
12195
12195
  });
12196
- function Je(p, c, d, y, v, S) {
12196
+ function Je(p, c, d, y, C, E) {
12197
12197
  if (d + y > p.length) throw new RangeError("Index out of range");
12198
12198
  if (d < 0) throw new RangeError("Index out of range");
12199
12199
  }
12200
- function O(p, c, d, y, v) {
12201
- return c = +c, d = d >>> 0, v || Je(p, c, d, 4), t.write(p, c, d, y, 23, 4), d + 4;
12200
+ function O(p, c, d, y, C) {
12201
+ return c = +c, d = d >>> 0, C || Je(p, c, d, 4), t.write(p, c, d, y, 23, 4), d + 4;
12202
12202
  }
12203
12203
  a.prototype.writeFloatLE = function(c, d, y) {
12204
12204
  return O(this, c, d, !0, y);
12205
12205
  }, a.prototype.writeFloatBE = function(c, d, y) {
12206
12206
  return O(this, c, d, !1, y);
12207
12207
  };
12208
- function ae(p, c, d, y, v) {
12209
- return c = +c, d = d >>> 0, v || Je(p, c, d, 8), t.write(p, c, d, y, 52, 8), d + 8;
12208
+ function ae(p, c, d, y, C) {
12209
+ return c = +c, d = d >>> 0, C || Je(p, c, d, 8), t.write(p, c, d, y, 52, 8), d + 8;
12210
12210
  }
12211
12211
  a.prototype.writeDoubleLE = function(c, d, y) {
12212
12212
  return ae(this, c, d, !0, y);
12213
12213
  }, a.prototype.writeDoubleBE = function(c, d, y) {
12214
12214
  return ae(this, c, d, !1, y);
12215
- }, a.prototype.copy = function(c, d, y, v) {
12215
+ }, a.prototype.copy = function(c, d, y, C) {
12216
12216
  if (!a.isBuffer(c)) throw new TypeError("argument should be a Buffer");
12217
- if (y || (y = 0), !v && v !== 0 && (v = this.length), d >= c.length && (d = c.length), d || (d = 0), v > 0 && v < y && (v = y), v === y || c.length === 0 || this.length === 0) return 0;
12217
+ if (y || (y = 0), !C && C !== 0 && (C = this.length), d >= c.length && (d = c.length), d || (d = 0), C > 0 && C < y && (C = y), C === y || c.length === 0 || this.length === 0) return 0;
12218
12218
  if (d < 0)
12219
12219
  throw new RangeError("targetStart out of bounds");
12220
12220
  if (y < 0 || y >= this.length) throw new RangeError("Index out of range");
12221
- if (v < 0) throw new RangeError("sourceEnd out of bounds");
12222
- v > this.length && (v = this.length), c.length - d < v - y && (v = c.length - d + y);
12223
- const S = v - y;
12224
- return this === c && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(d, y, v) : Uint8Array.prototype.set.call(
12221
+ if (C < 0) throw new RangeError("sourceEnd out of bounds");
12222
+ C > this.length && (C = this.length), c.length - d < C - y && (C = c.length - d + y);
12223
+ const E = C - y;
12224
+ return this === c && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(d, y, C) : Uint8Array.prototype.set.call(
12225
12225
  c,
12226
- this.subarray(y, v),
12226
+ this.subarray(y, C),
12227
12227
  d
12228
- ), S;
12229
- }, a.prototype.fill = function(c, d, y, v) {
12228
+ ), E;
12229
+ }, a.prototype.fill = function(c, d, y, C) {
12230
12230
  if (typeof c == "string") {
12231
- if (typeof d == "string" ? (v = d, d = 0, y = this.length) : typeof y == "string" && (v = y, y = this.length), v !== void 0 && typeof v != "string")
12231
+ if (typeof d == "string" ? (C = d, d = 0, y = this.length) : typeof y == "string" && (C = y, y = this.length), C !== void 0 && typeof C != "string")
12232
12232
  throw new TypeError("encoding must be a string");
12233
- if (typeof v == "string" && !a.isEncoding(v))
12234
- throw new TypeError("Unknown encoding: " + v);
12233
+ if (typeof C == "string" && !a.isEncoding(C))
12234
+ throw new TypeError("Unknown encoding: " + C);
12235
12235
  if (c.length === 1) {
12236
12236
  const x = c.charCodeAt(0);
12237
- (v === "utf8" && x < 128 || v === "latin1") && (c = x);
12237
+ (C === "utf8" && x < 128 || C === "latin1") && (c = x);
12238
12238
  }
12239
12239
  } else typeof c == "number" ? c = c & 255 : typeof c == "boolean" && (c = Number(c));
12240
12240
  if (d < 0 || this.length < d || this.length < y)
@@ -12242,16 +12242,16 @@ function Kc() {
12242
12242
  if (y <= d)
12243
12243
  return this;
12244
12244
  d = d >>> 0, y = y === void 0 ? this.length : y >>> 0, c || (c = 0);
12245
- let S;
12245
+ let E;
12246
12246
  if (typeof c == "number")
12247
- for (S = d; S < y; ++S)
12248
- this[S] = c;
12247
+ for (E = d; E < y; ++E)
12248
+ this[E] = c;
12249
12249
  else {
12250
- const x = a.isBuffer(c) ? c : a.from(c, v), N = x.length;
12250
+ const x = a.isBuffer(c) ? c : a.from(c, C), N = x.length;
12251
12251
  if (N === 0)
12252
12252
  throw new TypeError('The value "' + c + '" is invalid for argument "value"');
12253
- for (S = 0; S < y - d; ++S)
12254
- this[S + d] = x[S % N];
12253
+ for (E = 0; E < y - d; ++E)
12254
+ this[E + d] = x[E % N];
12255
12255
  }
12256
12256
  return this;
12257
12257
  };
@@ -12268,11 +12268,11 @@ function Kc() {
12268
12268
  get code() {
12269
12269
  return p;
12270
12270
  }
12271
- set code(v) {
12271
+ set code(C) {
12272
12272
  Object.defineProperty(this, "code", {
12273
12273
  configurable: !0,
12274
12274
  enumerable: !0,
12275
- value: v,
12275
+ value: C,
12276
12276
  writable: !0
12277
12277
  });
12278
12278
  }
@@ -12296,8 +12296,8 @@ function Kc() {
12296
12296
  ), $(
12297
12297
  "ERR_OUT_OF_RANGE",
12298
12298
  function(p, c, d) {
12299
- let y = `The value of "${p}" is out of range.`, v = d;
12300
- return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? v = _e(String(d)) : typeof d == "bigint" && (v = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (v = _e(v)), v += "n"), y += ` It must be ${c}. Received ${v}`, y;
12299
+ let y = `The value of "${p}" is out of range.`, C = d;
12300
+ return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? C = _e(String(d)) : typeof d == "bigint" && (C = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (C = _e(C)), C += "n"), y += ` It must be ${c}. Received ${C}`, y;
12301
12301
  },
12302
12302
  RangeError
12303
12303
  );
@@ -12311,13 +12311,13 @@ function Kc() {
12311
12311
  function B(p, c, d) {
12312
12312
  Le(c, "offset"), (p[c] === void 0 || p[c + d] === void 0) && ee(c, p.length - (d + 1));
12313
12313
  }
12314
- function fe(p, c, d, y, v, S) {
12314
+ function fe(p, c, d, y, C, E) {
12315
12315
  if (p > d || p < c) {
12316
12316
  const x = typeof c == "bigint" ? "n" : "";
12317
12317
  let N;
12318
- throw c === 0 || c === BigInt(0) ? N = `>= 0${x} and < 2${x} ** ${(S + 1) * 8}${x}` : N = `>= -(2${x} ** ${(S + 1) * 8 - 1}${x}) and < 2 ** ${(S + 1) * 8 - 1}${x}`, new Q.ERR_OUT_OF_RANGE("value", N, p);
12318
+ throw c === 0 || c === BigInt(0) ? N = `>= 0${x} and < 2${x} ** ${(E + 1) * 8}${x}` : N = `>= -(2${x} ** ${(E + 1) * 8 - 1}${x}) and < 2 ** ${(E + 1) * 8 - 1}${x}`, new Q.ERR_OUT_OF_RANGE("value", N, p);
12319
12319
  }
12320
- B(y, v, S);
12320
+ B(y, C, E);
12321
12321
  }
12322
12322
  function Le(p, c) {
12323
12323
  if (typeof p != "number")
@@ -12341,46 +12341,46 @@ function Kc() {
12341
12341
  c = c || 1 / 0;
12342
12342
  let d;
12343
12343
  const y = p.length;
12344
- let v = null;
12345
- const S = [];
12344
+ let C = null;
12345
+ const E = [];
12346
12346
  for (let x = 0; x < y; ++x) {
12347
12347
  if (d = p.charCodeAt(x), d > 55295 && d < 57344) {
12348
- if (!v) {
12348
+ if (!C) {
12349
12349
  if (d > 56319) {
12350
- (c -= 3) > -1 && S.push(239, 191, 189);
12350
+ (c -= 3) > -1 && E.push(239, 191, 189);
12351
12351
  continue;
12352
12352
  } else if (x + 1 === y) {
12353
- (c -= 3) > -1 && S.push(239, 191, 189);
12353
+ (c -= 3) > -1 && E.push(239, 191, 189);
12354
12354
  continue;
12355
12355
  }
12356
- v = d;
12356
+ C = d;
12357
12357
  continue;
12358
12358
  }
12359
12359
  if (d < 56320) {
12360
- (c -= 3) > -1 && S.push(239, 191, 189), v = d;
12360
+ (c -= 3) > -1 && E.push(239, 191, 189), C = d;
12361
12361
  continue;
12362
12362
  }
12363
- d = (v - 55296 << 10 | d - 56320) + 65536;
12364
- } else v && (c -= 3) > -1 && S.push(239, 191, 189);
12365
- if (v = null, d < 128) {
12363
+ d = (C - 55296 << 10 | d - 56320) + 65536;
12364
+ } else C && (c -= 3) > -1 && E.push(239, 191, 189);
12365
+ if (C = null, d < 128) {
12366
12366
  if ((c -= 1) < 0) break;
12367
- S.push(d);
12367
+ E.push(d);
12368
12368
  } else if (d < 2048) {
12369
12369
  if ((c -= 2) < 0) break;
12370
- S.push(
12370
+ E.push(
12371
12371
  d >> 6 | 192,
12372
12372
  d & 63 | 128
12373
12373
  );
12374
12374
  } else if (d < 65536) {
12375
12375
  if ((c -= 3) < 0) break;
12376
- S.push(
12376
+ E.push(
12377
12377
  d >> 12 | 224,
12378
12378
  d >> 6 & 63 | 128,
12379
12379
  d & 63 | 128
12380
12380
  );
12381
12381
  } else if (d < 1114112) {
12382
12382
  if ((c -= 4) < 0) break;
12383
- S.push(
12383
+ E.push(
12384
12384
  d >> 18 | 240,
12385
12385
  d >> 12 & 63 | 128,
12386
12386
  d >> 6 & 63 | 128,
@@ -12389,7 +12389,7 @@ function Kc() {
12389
12389
  } else
12390
12390
  throw new Error("Invalid code point");
12391
12391
  }
12392
- return S;
12392
+ return E;
12393
12393
  }
12394
12394
  function ga(p) {
12395
12395
  const c = [];
@@ -12398,20 +12398,20 @@ function Kc() {
12398
12398
  return c;
12399
12399
  }
12400
12400
  function ya(p, c) {
12401
- let d, y, v;
12402
- const S = [];
12401
+ let d, y, C;
12402
+ const E = [];
12403
12403
  for (let x = 0; x < p.length && !((c -= 2) < 0); ++x)
12404
- d = p.charCodeAt(x), y = d >> 8, v = d % 256, S.push(v), S.push(y);
12405
- return S;
12404
+ d = p.charCodeAt(x), y = d >> 8, C = d % 256, E.push(C), E.push(y);
12405
+ return E;
12406
12406
  }
12407
12407
  function en(p) {
12408
12408
  return e.toByteArray(ma(p));
12409
12409
  }
12410
12410
  function yi(p, c, d, y) {
12411
- let v;
12412
- for (v = 0; v < y && !(v + d >= c.length || v >= p.length); ++v)
12413
- c[v + d] = p[v];
12414
- return v;
12411
+ let C;
12412
+ for (C = 0; C < y && !(C + d >= c.length || C >= p.length); ++C)
12413
+ c[C + d] = p[C];
12414
+ return C;
12415
12415
  }
12416
12416
  function ze(p, c) {
12417
12417
  return p instanceof c || p != null && p.constructor != null && p.constructor.name != null && p.constructor.name === c.name;
@@ -12423,8 +12423,8 @@ function Kc() {
12423
12423
  const p = "0123456789abcdef", c = new Array(256);
12424
12424
  for (let d = 0; d < 16; ++d) {
12425
12425
  const y = d * 16;
12426
- for (let v = 0; v < 16; ++v)
12427
- c[y + v] = p[d] + p[v];
12426
+ for (let C = 0; C < 16; ++C)
12427
+ c[y + C] = p[d] + p[C];
12428
12428
  }
12429
12429
  return c;
12430
12430
  })();
@@ -12519,56 +12519,56 @@ const Ot = (i) => {
12519
12519
  issues: []
12520
12520
  }, a = ((t = r["inbound-rtp"]) === null || t === void 0 ? void 0 : t.filter((u) => u.kind === "video")) || [];
12521
12521
  a.length > 0 && (o.personaVideoStream = [], a.forEach((u) => {
12522
- var m, g, _, b, C;
12523
- const E = {
12524
- framesReceived: (m = u.framesReceived) !== null && m !== void 0 ? m : "unknown",
12525
- framesDropped: (g = u.framesDropped) !== null && g !== void 0 ? g : "unknown",
12522
+ var g, m, _, v, b;
12523
+ const S = {
12524
+ framesReceived: (g = u.framesReceived) !== null && g !== void 0 ? g : "unknown",
12525
+ framesDropped: (m = u.framesDropped) !== null && m !== void 0 ? m : "unknown",
12526
12526
  framesPerSecond: (_ = u.framesPerSecond) !== null && _ !== void 0 ? _ : "unknown",
12527
- packetsReceived: (b = u.packetsReceived) !== null && b !== void 0 ? b : "unknown",
12528
- packetsLost: (C = u.packetsLost) !== null && C !== void 0 ? C : "unknown",
12527
+ packetsReceived: (v = u.packetsReceived) !== null && v !== void 0 ? v : "unknown",
12528
+ packetsLost: (b = u.packetsLost) !== null && b !== void 0 ? b : "unknown",
12529
12529
  resolution: u.frameWidth && u.frameHeight ? `${u.frameWidth}x${u.frameHeight}` : void 0,
12530
12530
  jitter: u.jitter !== void 0 ? u.jitter : void 0
12531
12531
  };
12532
- o.personaVideoStream.push(E);
12532
+ o.personaVideoStream.push(S);
12533
12533
  }));
12534
12534
  const l = ((s = r["inbound-rtp"]) === null || s === void 0 ? void 0 : s.filter((u) => u.kind === "audio")) || [];
12535
12535
  l.length > 0 && (o.personaAudioStream = [], l.forEach((u) => {
12536
- var m, g, _;
12537
- const b = {
12538
- packetsReceived: (m = u.packetsReceived) !== null && m !== void 0 ? m : "unknown",
12539
- packetsLost: (g = u.packetsLost) !== null && g !== void 0 ? g : "unknown",
12536
+ var g, m, _;
12537
+ const v = {
12538
+ packetsReceived: (g = u.packetsReceived) !== null && g !== void 0 ? g : "unknown",
12539
+ packetsLost: (m = u.packetsLost) !== null && m !== void 0 ? m : "unknown",
12540
12540
  audioLevel: (_ = u.audioLevel) !== null && _ !== void 0 ? _ : "unknown",
12541
12541
  jitter: u.jitter !== void 0 ? u.jitter : void 0,
12542
12542
  totalAudioEnergy: u.totalAudioEnergy !== void 0 ? u.totalAudioEnergy : void 0
12543
12543
  };
12544
- o.personaAudioStream.push(b);
12544
+ o.personaAudioStream.push(v);
12545
12545
  }));
12546
12546
  const h = ((n = r["outbound-rtp"]) === null || n === void 0 ? void 0 : n.filter((u) => u.kind === "audio")) || [];
12547
12547
  h.length > 0 && (o.userAudioInput = [], h.forEach((u) => {
12548
- var m, g;
12548
+ var g, m;
12549
12549
  const _ = {
12550
- packetsSent: (m = u.packetsSent) !== null && m !== void 0 ? m : "unknown",
12551
- retransmittedPackets: (g = u.retransmittedPacketsSent) !== null && g !== void 0 ? g : void 0,
12550
+ packetsSent: (g = u.packetsSent) !== null && g !== void 0 ? g : "unknown",
12551
+ retransmittedPackets: (m = u.retransmittedPacketsSent) !== null && m !== void 0 ? m : void 0,
12552
12552
  avgPacketSendDelay: u.totalPacketSendDelay !== void 0 ? u.totalPacketSendDelay / (u.packetsSent || 1) * 1e3 : void 0
12553
12553
  };
12554
12554
  o.userAudioInput.push(_);
12555
12555
  })), r.codec && (o.codecs = [], r.codec.forEach((u) => {
12556
- const m = {
12556
+ const g = {
12557
12557
  status: u.payloadType ? "Active" : "Available",
12558
12558
  mimeType: u.mimeType || "Unknown",
12559
12559
  payloadType: u.payloadType || "N/A",
12560
12560
  clockRate: u.clockRate || void 0,
12561
12561
  channels: u.channels || void 0
12562
12562
  };
12563
- o.codecs.push(m);
12563
+ o.codecs.push(g);
12564
12564
  })), r.transport && (o.transportLayer = [], r.transport.forEach((u) => {
12565
- const m = {
12565
+ const g = {
12566
12566
  dtlsState: u.dtlsState || "unknown",
12567
12567
  iceState: u.iceState || "unknown",
12568
12568
  bytesSent: u.bytesSent || void 0,
12569
12569
  bytesReceived: u.bytesReceived || void 0
12570
12570
  };
12571
- o.transportLayer.push(m);
12571
+ o.transportLayer.push(g);
12572
12572
  }));
12573
12573
  const f = [];
12574
12574
  if (a.forEach((u) => {
@@ -12723,17 +12723,17 @@ class ch {
12723
12723
  if (this.stopSignal = !1, this.sendingBuffer = [], this.wsConnectionAttempts = 0, this.socket = null, this.heartBeatIntervalRef = null, this.publicEventEmitter = s, this.internalEventEmitter = n, this.apiGatewayConfig = r, !e)
12724
12724
  throw new Error("Signalling Client: sessionId is required");
12725
12725
  this.sessionId = e;
12726
- const { heartbeatIntervalSeconds: u, maxWsReconnectionAttempts: m, url: g } = t;
12727
- if (this.heartbeatIntervalSeconds = u || ah, this.maxWsReconnectionAttempts = m || lh, !g.baseUrl)
12726
+ const { heartbeatIntervalSeconds: u, maxWsReconnectionAttempts: g, url: m } = t;
12727
+ if (this.heartbeatIntervalSeconds = u || ah, this.maxWsReconnectionAttempts = g || lh, !m.baseUrl)
12728
12728
  throw new Error("Signalling Client: baseUrl is required");
12729
12729
  if (!((o = this.apiGatewayConfig) === null || o === void 0) && o.enabled && (!((a = this.apiGatewayConfig) === null || a === void 0) && a.baseUrl)) {
12730
- const _ = new URL(this.apiGatewayConfig.baseUrl), b = (l = this.apiGatewayConfig.wsPath) !== null && l !== void 0 ? l : "/ws";
12731
- _.protocol = _.protocol.replace("http", "ws"), _.pathname = b, this.url = _;
12732
- const C = g.protocol || "https", E = C === "http" ? "ws" : "wss", A = `${C}://${g.baseUrl}`, I = (h = g.signallingPath) !== null && h !== void 0 ? h : "/ws", w = new URL(A);
12733
- w.protocol = E === "ws" ? "ws:" : "wss:", g.port && (w.port = g.port), w.pathname = I, w.searchParams.append("session_id", e), this.url.searchParams.append("target_url", w.href);
12730
+ const _ = new URL(this.apiGatewayConfig.baseUrl), v = (l = this.apiGatewayConfig.wsPath) !== null && l !== void 0 ? l : "/ws";
12731
+ _.protocol = _.protocol.replace("http", "ws"), _.pathname = v, this.url = _;
12732
+ const b = m.protocol || "https", S = b === "http" ? "ws" : "wss", A = `${b}://${m.baseUrl}`, I = (h = m.signallingPath) !== null && h !== void 0 ? h : "/ws", w = new URL(A);
12733
+ w.protocol = S === "ws" ? "ws:" : "wss:", m.port && (w.port = m.port), w.pathname = I, w.searchParams.append("session_id", e), this.url.searchParams.append("target_url", w.href);
12734
12734
  } else {
12735
- const b = `${g.protocol || "https"}://${g.baseUrl}`;
12736
- this.url = new URL(b), this.url.protocol = g.protocol === "http" ? "ws:" : "wss:", g.port && (this.url.port = g.port), this.url.pathname = (f = g.signallingPath) !== null && f !== void 0 ? f : "/ws", this.url.searchParams.append("session_id", e);
12735
+ const v = `${m.protocol || "https"}://${m.baseUrl}`;
12736
+ this.url = new URL(v), this.url.protocol = m.protocol === "http" ? "ws:" : "wss:", m.port && (this.url.port = m.port), this.url.pathname = (f = m.signallingPath) !== null && f !== void 0 ? f : "/ws", this.url.searchParams.append("session_id", e);
12737
12737
  }
12738
12738
  }
12739
12739
  stop() {
@@ -13706,8 +13706,8 @@ class Ch {
13706
13706
  this.publicEventEmitter.emit(k.TOOL_CALL_COMPLETED, this.toolCallManager.webRTCToolCallCompletedEventToToolCallCompletedPayload(u)), this.internalEventEmitter.emit(oe.WEBRTC_TOOL_CALL_COMPLETED_EVENT_RECEIVED, u);
13707
13707
  break;
13708
13708
  case Ye.TOOL_CALL_FAILED_EVENT:
13709
- const m = a.data;
13710
- this.publicEventEmitter.emit(k.TOOL_CALL_FAILED, this.toolCallManager.webRTCToolCallFailedEventToToolCallFailedPayload(m)), this.internalEventEmitter.emit(oe.WEBRTC_TOOL_CALL_FAILED_EVENT_RECEIVED, m);
13709
+ const g = a.data;
13710
+ this.publicEventEmitter.emit(k.TOOL_CALL_FAILED, this.toolCallManager.webRTCToolCallFailedEventToToolCallFailedPayload(g)), this.internalEventEmitter.emit(oe.WEBRTC_TOOL_CALL_FAILED_EVENT_RECEIVED, g);
13711
13711
  break;
13712
13712
  case Ye.REASONING_TEXT:
13713
13713
  this.internalEventEmitter.emit(oe.WEBRTC_REASONING_TEXT_MESSAGE_RECEIVED, a.data);
@@ -13943,14 +13943,14 @@ class Eh {
13943
13943
  }
13944
13944
  startSession(e) {
13945
13945
  return lt(this, void 0, void 0, function* () {
13946
- var t, s, n, r, o, a, l, h, f, u, m, g;
13947
- const _ = this.personaConfig, b = this.buildStartSessionOptionsForClient(), C = yield this.apiClient.startSession(_, b), { sessionId: E, clientConfig: A, engineHost: I, engineProtocol: w, signallingEndpoint: T } = C, { heartbeatIntervalSeconds: M, maxWsReconnectionAttempts: F, iceServers: D } = A;
13948
- this.sessionId = E, Ot({
13946
+ var t, s, n, r, o, a, l, h, f, u, g, m;
13947
+ const _ = this.personaConfig, v = this.buildStartSessionOptionsForClient(), b = yield this.apiClient.startSession(_, v), { sessionId: S, clientConfig: A, engineHost: I, engineProtocol: w, signallingEndpoint: T } = b, { heartbeatIntervalSeconds: M, maxWsReconnectionAttempts: F, iceServers: D } = A;
13948
+ this.sessionId = S, Ot({
13949
13949
  sessionId: this.sessionId
13950
13950
  });
13951
13951
  const J = !((t = this.clientOptions) === null || t === void 0) && t.iceServers ? this.clientOptions.iceServers : D;
13952
13952
  try {
13953
- this.streamingClient = new Ch(E, {
13953
+ this.streamingClient = new Ch(S, {
13954
13954
  engine: {
13955
13955
  baseUrl: `${w}://${I}`
13956
13956
  },
@@ -13973,7 +13973,7 @@ class Eh {
13973
13973
  apiGateway: (a = (o = this.clientOptions) === null || o === void 0 ? void 0 : o.api) === null || a === void 0 ? void 0 : a.apiGateway,
13974
13974
  metrics: {
13975
13975
  showPeerConnectionStatsReport: (f = (h = (l = this.clientOptions) === null || l === void 0 ? void 0 : l.metrics) === null || h === void 0 ? void 0 : h.showPeerConnectionStatsReport) !== null && f !== void 0 ? f : !1,
13976
- peerConnectionStatsReportOutputFormat: (g = (m = (u = this.clientOptions) === null || u === void 0 ? void 0 : u.metrics) === null || m === void 0 ? void 0 : m.peerConnectionStatsReportOutputFormat) !== null && g !== void 0 ? g : "console"
13976
+ peerConnectionStatsReportOutputFormat: (m = (g = (u = this.clientOptions) === null || u === void 0 ? void 0 : u.metrics) === null || g === void 0 ? void 0 : g.peerConnectionStatsReportOutputFormat) !== null && m !== void 0 ? m : "console"
13977
13977
  }
13978
13978
  }, this.publicEventEmitter, this.internalEventEmitter, this.toolCallManager);
13979
13979
  } catch (q) {
@@ -13981,10 +13981,10 @@ class Eh {
13981
13981
  sessionId: null
13982
13982
  }), new re("Failed to initialize streaming client", pe.CLIENT_ERROR_CODE_SERVER_ERROR, 500, {
13983
13983
  cause: q instanceof Error ? q.message : String(q),
13984
- sessionId: E
13984
+ sessionId: S
13985
13985
  });
13986
13986
  }
13987
- return E;
13987
+ return S;
13988
13988
  });
13989
13989
  }
13990
13990
  startSessionIfNeeded(e) {
@@ -14354,12 +14354,12 @@ class kh {
14354
14354
  if (a || l) {
14355
14355
  const h = e++;
14356
14356
  this.elementMap.set(h, r);
14357
- const f = this.getUsefulAttrs(r), u = f ? " " + f : "", m = this.getDirectText(r).slice(0, 200);
14357
+ const f = this.getUsefulAttrs(r), u = f ? " " + f : "", g = this.getDirectText(r).slice(0, 200);
14358
14358
  if (l) {
14359
- const g = parseInt(o[1]), _ = "#".repeat(g);
14360
- t.push(""), t.push(`${_} [${h}]${m}`);
14359
+ const m = parseInt(o[1]), _ = "#".repeat(m);
14360
+ t.push(""), t.push(`${_} [${h}]${g}`);
14361
14361
  } else
14362
- t.push(`[${h}]<${o}${u}>${m}</${o}>`);
14362
+ t.push(`[${h}]<${o}${u}>${g}</${o}>`);
14363
14363
  return;
14364
14364
  }
14365
14365
  for (const h of r.childNodes)
@@ -14853,8 +14853,8 @@ function Vi(i, e) {
14853
14853
  return "url(".concat(h).concat(Yh(e) + l).concat(h, ")");
14854
14854
  var f = e.split("/"), u = l.split("/");
14855
14855
  f.pop();
14856
- for (var m = 0, g = u; m < g.length; m++) {
14857
- var _ = g[m];
14856
+ for (var g = 0, m = u; g < m.length; g++) {
14857
+ var _ = m[g];
14858
14858
  _ !== "." && (_ === ".." ? f.pop() : f.push(_));
14859
14859
  }
14860
14860
  return "url(".concat(h).concat(f.join("/")).concat(h, ")");
@@ -14985,7 +14985,7 @@ function sd(i, e, t) {
14985
14985
  }
14986
14986
  }
14987
14987
  function nd(i, e) {
14988
- var t = e.doc, s = e.mirror, n = e.blockClass, r = e.blockSelector, o = e.maskTextClass, a = e.maskTextSelector, l = e.inlineStylesheet, h = e.maskInputOptions, f = h === void 0 ? {} : h, u = e.maskTextFn, m = e.maskInputFn, g = e.dataURLOptions, _ = g === void 0 ? {} : g, b = e.inlineImages, C = e.recordCanvas, E = e.keepIframeSrcFn, A = e.newlyAddedElement, I = A === void 0 ? !1 : A, w = rd(t, s);
14988
+ var t = e.doc, s = e.mirror, n = e.blockClass, r = e.blockSelector, o = e.maskTextClass, a = e.maskTextSelector, l = e.inlineStylesheet, h = e.maskInputOptions, f = h === void 0 ? {} : h, u = e.maskTextFn, g = e.maskInputFn, m = e.dataURLOptions, _ = m === void 0 ? {} : m, v = e.inlineImages, b = e.recordCanvas, S = e.keepIframeSrcFn, A = e.newlyAddedElement, I = A === void 0 ? !1 : A, w = rd(t, s);
14989
14989
  switch (i.nodeType) {
14990
14990
  case i.DOCUMENT_NODE:
14991
14991
  return i.compatMode !== "CSS1Compat" ? {
@@ -15011,11 +15011,11 @@ function nd(i, e) {
15011
15011
  blockSelector: r,
15012
15012
  inlineStylesheet: l,
15013
15013
  maskInputOptions: f,
15014
- maskInputFn: m,
15014
+ maskInputFn: g,
15015
15015
  dataURLOptions: _,
15016
- inlineImages: b,
15017
- recordCanvas: C,
15018
- keepIframeSrcFn: E,
15016
+ inlineImages: v,
15017
+ recordCanvas: b,
15018
+ keepIframeSrcFn: S,
15019
15019
  newlyAddedElement: I,
15020
15020
  rootId: w
15021
15021
  });
@@ -15066,7 +15066,7 @@ function od(i, e) {
15066
15066
  };
15067
15067
  }
15068
15068
  function ad(i, e) {
15069
- for (var t = e.doc, s = e.blockClass, n = e.blockSelector, r = e.inlineStylesheet, o = e.maskInputOptions, a = o === void 0 ? {} : o, l = e.maskInputFn, h = e.dataURLOptions, f = h === void 0 ? {} : h, u = e.inlineImages, m = e.recordCanvas, g = e.keepIframeSrcFn, _ = e.newlyAddedElement, b = _ === void 0 ? !1 : _, C = e.rootId, E = td(i, s, n), A = zh(i), I = {}, w = i.attributes.length, T = 0; T < w; T++) {
15069
+ for (var t = e.doc, s = e.blockClass, n = e.blockSelector, r = e.inlineStylesheet, o = e.maskInputOptions, a = o === void 0 ? {} : o, l = e.maskInputFn, h = e.dataURLOptions, f = h === void 0 ? {} : h, u = e.inlineImages, g = e.recordCanvas, m = e.keepIframeSrcFn, _ = e.newlyAddedElement, v = _ === void 0 ? !1 : _, b = e.rootId, S = td(i, s, n), A = zh(i), I = {}, w = i.attributes.length, T = 0; T < w; T++) {
15070
15070
  var M = i.attributes[T];
15071
15071
  I[M.name] = Io(t, A, M.name, M.value);
15072
15072
  }
@@ -15090,7 +15090,7 @@ function ad(i, e) {
15090
15090
  maskInputFn: l
15091
15091
  }) : q && (I.checked = q);
15092
15092
  }
15093
- if (A === "option" && (i.selected && !a.select ? I.selected = !0 : delete I.selected), A === "canvas" && m) {
15093
+ if (A === "option" && (i.selected && !a.select ? I.selected = !0 : delete I.selected), A === "canvas" && g) {
15094
15094
  if (i.__context === "2d")
15095
15095
  Wh(i) || (I.rr_dataURL = i.toDataURL(f.type, f.quality));
15096
15096
  else if (!("__context" in i)) {
@@ -15114,7 +15114,7 @@ function ad(i, e) {
15114
15114
  };
15115
15115
  H.complete && H.naturalWidth !== 0 ? we() : H.onload = we;
15116
15116
  }
15117
- if ((A === "audio" || A === "video") && (I.rr_mediaState = i.paused ? "paused" : "played", I.rr_mediaCurrentTime = i.currentTime), b || (i.scrollLeft && (I.rr_scrollLeft = i.scrollLeft), i.scrollTop && (I.rr_scrollTop = i.scrollTop)), E) {
15117
+ if ((A === "audio" || A === "video") && (I.rr_mediaState = i.paused ? "paused" : "played", I.rr_mediaCurrentTime = i.currentTime), v || (i.scrollLeft && (I.rr_scrollLeft = i.scrollLeft), i.scrollTop && (I.rr_scrollTop = i.scrollTop)), S) {
15118
15118
  var De = i.getBoundingClientRect(), Ue = De.width, ye = De.height;
15119
15119
  I = {
15120
15120
  class: I.class,
@@ -15122,14 +15122,14 @@ function ad(i, e) {
15122
15122
  rr_height: "".concat(ye, "px")
15123
15123
  };
15124
15124
  }
15125
- return A === "iframe" && !g(I.src) && (i.contentDocument || (I.rr_src = I.src), delete I.src), {
15125
+ return A === "iframe" && !m(I.src) && (i.contentDocument || (I.rr_src = I.src), delete I.src), {
15126
15126
  type: ce.Element,
15127
15127
  tagName: A,
15128
15128
  attributes: I,
15129
15129
  childNodes: [],
15130
15130
  isSVG: ed(i) || void 0,
15131
- needBlock: E,
15132
- rootId: C
15131
+ needBlock: S,
15132
+ rootId: b
15133
15133
  };
15134
15134
  }
15135
15135
  function z(i) {
@@ -15161,7 +15161,7 @@ function ld(i, e) {
15161
15161
  return !1;
15162
15162
  }
15163
15163
  function Ut(i, e) {
15164
- var t = e.doc, s = e.mirror, n = e.blockClass, r = e.blockSelector, o = e.maskTextClass, a = e.maskTextSelector, l = e.skipChild, h = l === void 0 ? !1 : l, f = e.inlineStylesheet, u = f === void 0 ? !0 : f, m = e.maskInputOptions, g = m === void 0 ? {} : m, _ = e.maskTextFn, b = e.maskInputFn, C = e.slimDOMOptions, E = e.dataURLOptions, A = E === void 0 ? {} : E, I = e.inlineImages, w = I === void 0 ? !1 : I, T = e.recordCanvas, M = T === void 0 ? !1 : T, F = e.onSerialize, D = e.onIframeLoad, J = e.iframeLoadTimeout, q = J === void 0 ? 5e3 : J, ue = e.onStylesheetLoad, me = e.stylesheetLoadTimeout, ge = me === void 0 ? 5e3 : me, H = e.keepIframeSrcFn, se = H === void 0 ? function() {
15164
+ var t = e.doc, s = e.mirror, n = e.blockClass, r = e.blockSelector, o = e.maskTextClass, a = e.maskTextSelector, l = e.skipChild, h = l === void 0 ? !1 : l, f = e.inlineStylesheet, u = f === void 0 ? !0 : f, g = e.maskInputOptions, m = g === void 0 ? {} : g, _ = e.maskTextFn, v = e.maskInputFn, b = e.slimDOMOptions, S = e.dataURLOptions, A = S === void 0 ? {} : S, I = e.inlineImages, w = I === void 0 ? !1 : I, T = e.recordCanvas, M = T === void 0 ? !1 : T, F = e.onSerialize, D = e.onIframeLoad, J = e.iframeLoadTimeout, q = J === void 0 ? 5e3 : J, ue = e.onStylesheetLoad, me = e.stylesheetLoadTimeout, ge = me === void 0 ? 5e3 : me, H = e.keepIframeSrcFn, se = H === void 0 ? function() {
15165
15165
  return !1;
15166
15166
  } : H, we = e.newlyAddedElement, De = we === void 0 ? !1 : we, Ue = e.preserveWhiteSpace, ye = Ue === void 0 ? !0 : Ue, Ce = nd(i, {
15167
15167
  doc: t,
@@ -15171,9 +15171,9 @@ function Ut(i, e) {
15171
15171
  maskTextClass: o,
15172
15172
  maskTextSelector: a,
15173
15173
  inlineStylesheet: u,
15174
- maskInputOptions: g,
15174
+ maskInputOptions: m,
15175
15175
  maskTextFn: _,
15176
- maskInputFn: b,
15176
+ maskInputFn: v,
15177
15177
  dataURLOptions: A,
15178
15178
  inlineImages: w,
15179
15179
  recordCanvas: M,
@@ -15183,7 +15183,7 @@ function Ut(i, e) {
15183
15183
  if (!Ce)
15184
15184
  return console.warn(i, "not serialized"), null;
15185
15185
  var V;
15186
- s.hasNode(i) ? V = s.getId(i) : ld(Ce, C) || !ye && Ce.type === ce.Text && !Ce.isStyle && !Ce.textContent.replace(/^\s+|\s+$/gm, "").length ? V = di : V = Eo();
15186
+ s.hasNode(i) ? V = s.getId(i) : ld(Ce, b) || !ye && Ce.type === ce.Text && !Ce.isStyle && !Ce.textContent.replace(/^\s+|\s+$/gm, "").length ? V = di : V = Eo();
15187
15187
  var L = Object.assign(Ce, { id: V });
15188
15188
  if (s.add(i, L), V === di)
15189
15189
  return null;
@@ -15195,7 +15195,7 @@ function Ut(i, e) {
15195
15195
  Te && ri(Te) && (L.isShadowHost = !0);
15196
15196
  }
15197
15197
  if ((L.type === ce.Document || L.type === ce.Element) && xe) {
15198
- C.headWhitespace && L.type === ce.Element && L.tagName === "head" && (ye = !1);
15198
+ b.headWhitespace && L.type === ce.Element && L.tagName === "head" && (ye = !1);
15199
15199
  for (var Je = {
15200
15200
  doc: t,
15201
15201
  mirror: s,
@@ -15205,10 +15205,10 @@ function Ut(i, e) {
15205
15205
  maskTextSelector: a,
15206
15206
  skipChild: h,
15207
15207
  inlineStylesheet: u,
15208
- maskInputOptions: g,
15208
+ maskInputOptions: m,
15209
15209
  maskTextFn: _,
15210
- maskInputFn: b,
15211
- slimDOMOptions: C,
15210
+ maskInputFn: v,
15211
+ slimDOMOptions: b,
15212
15212
  dataURLOptions: A,
15213
15213
  inlineImages: w,
15214
15214
  recordCanvas: M,
@@ -15241,10 +15241,10 @@ function Ut(i, e) {
15241
15241
  maskTextSelector: a,
15242
15242
  skipChild: !1,
15243
15243
  inlineStylesheet: u,
15244
- maskInputOptions: g,
15244
+ maskInputOptions: m,
15245
15245
  maskTextFn: _,
15246
- maskInputFn: b,
15247
- slimDOMOptions: C,
15246
+ maskInputFn: v,
15247
+ slimDOMOptions: b,
15248
15248
  dataURLOptions: A,
15249
15249
  inlineImages: w,
15250
15250
  recordCanvas: M,
@@ -15269,10 +15269,10 @@ function Ut(i, e) {
15269
15269
  maskTextSelector: a,
15270
15270
  skipChild: !1,
15271
15271
  inlineStylesheet: u,
15272
- maskInputOptions: g,
15272
+ maskInputOptions: m,
15273
15273
  maskTextFn: _,
15274
- maskInputFn: b,
15275
- slimDOMOptions: C,
15274
+ maskInputFn: v,
15275
+ slimDOMOptions: b,
15276
15276
  dataURLOptions: A,
15277
15277
  inlineImages: w,
15278
15278
  recordCanvas: M,
@@ -15289,7 +15289,7 @@ function Ut(i, e) {
15289
15289
  }, ge), L;
15290
15290
  }
15291
15291
  function cd(i, e) {
15292
- var t = e || {}, s = t.mirror, n = s === void 0 ? new So() : s, r = t.blockClass, o = r === void 0 ? "rr-block" : r, a = t.blockSelector, l = a === void 0 ? null : a, h = t.maskTextClass, f = h === void 0 ? "rr-mask" : h, u = t.maskTextSelector, m = u === void 0 ? null : u, g = t.inlineStylesheet, _ = g === void 0 ? !0 : g, b = t.inlineImages, C = b === void 0 ? !1 : b, E = t.recordCanvas, A = E === void 0 ? !1 : E, I = t.maskAllInputs, w = I === void 0 ? !1 : I, T = t.maskTextFn, M = t.maskInputFn, F = t.slimDOM, D = F === void 0 ? !1 : F, J = t.dataURLOptions, q = t.preserveWhiteSpace, ue = t.onSerialize, me = t.onIframeLoad, ge = t.iframeLoadTimeout, H = t.onStylesheetLoad, se = t.stylesheetLoadTimeout, we = t.keepIframeSrcFn, De = we === void 0 ? function() {
15292
+ var t = e || {}, s = t.mirror, n = s === void 0 ? new So() : s, r = t.blockClass, o = r === void 0 ? "rr-block" : r, a = t.blockSelector, l = a === void 0 ? null : a, h = t.maskTextClass, f = h === void 0 ? "rr-mask" : h, u = t.maskTextSelector, g = u === void 0 ? null : u, m = t.inlineStylesheet, _ = m === void 0 ? !0 : m, v = t.inlineImages, b = v === void 0 ? !1 : v, S = t.recordCanvas, A = S === void 0 ? !1 : S, I = t.maskAllInputs, w = I === void 0 ? !1 : I, T = t.maskTextFn, M = t.maskInputFn, F = t.slimDOM, D = F === void 0 ? !1 : F, J = t.dataURLOptions, q = t.preserveWhiteSpace, ue = t.onSerialize, me = t.onIframeLoad, ge = t.iframeLoadTimeout, H = t.onStylesheetLoad, se = t.stylesheetLoadTimeout, we = t.keepIframeSrcFn, De = we === void 0 ? function() {
15293
15293
  return !1;
15294
15294
  } : we, Ue = w === !0 ? {
15295
15295
  color: !0,
@@ -15328,7 +15328,7 @@ function cd(i, e) {
15328
15328
  blockClass: o,
15329
15329
  blockSelector: l,
15330
15330
  maskTextClass: f,
15331
- maskTextSelector: m,
15331
+ maskTextSelector: g,
15332
15332
  skipChild: !1,
15333
15333
  inlineStylesheet: _,
15334
15334
  maskInputOptions: Ue,
@@ -15336,7 +15336,7 @@ function cd(i, e) {
15336
15336
  maskInputFn: M,
15337
15337
  slimDOMOptions: ye,
15338
15338
  dataURLOptions: J,
15339
- inlineImages: C,
15339
+ inlineImages: b,
15340
15340
  recordCanvas: A,
15341
15341
  preserveWhiteSpace: q,
15342
15342
  onSerialize: ue,
@@ -15552,18 +15552,18 @@ class pd {
15552
15552
  return h;
15553
15553
  }, n = (a) => {
15554
15554
  var l, h, f, u;
15555
- let m = null;
15556
- ((h = (l = a.getRootNode) === null || l === void 0 ? void 0 : l.call(a)) === null || h === void 0 ? void 0 : h.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && a.getRootNode().host && (m = a.getRootNode().host);
15557
- let g = m;
15558
- for (; ((u = (f = g == null ? void 0 : g.getRootNode) === null || f === void 0 ? void 0 : f.call(g)) === null || u === void 0 ? void 0 : u.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && g.getRootNode().host; )
15559
- g = g.getRootNode().host;
15560
- const _ = !this.doc.contains(a) && (!g || !this.doc.contains(g));
15555
+ let g = null;
15556
+ ((h = (l = a.getRootNode) === null || l === void 0 ? void 0 : l.call(a)) === null || h === void 0 ? void 0 : h.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && a.getRootNode().host && (g = a.getRootNode().host);
15557
+ let m = g;
15558
+ for (; ((u = (f = m == null ? void 0 : m.getRootNode) === null || f === void 0 ? void 0 : f.call(m)) === null || u === void 0 ? void 0 : u.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && m.getRootNode().host; )
15559
+ m = m.getRootNode().host;
15560
+ const _ = !this.doc.contains(a) && (!m || !this.doc.contains(m));
15561
15561
  if (!a.parentNode || _)
15562
15562
  return;
15563
- const b = ni(a.parentNode) ? this.mirror.getId(m) : this.mirror.getId(a.parentNode), C = s(a);
15564
- if (b === -1 || C === -1)
15563
+ const v = ni(a.parentNode) ? this.mirror.getId(g) : this.mirror.getId(a.parentNode), b = s(a);
15564
+ if (v === -1 || b === -1)
15565
15565
  return t.addNode(a);
15566
- const E = Ut(a, {
15566
+ const S = Ut(a, {
15567
15567
  doc: this.doc,
15568
15568
  mirror: this.mirror,
15569
15569
  blockClass: this.blockClass,
@@ -15590,10 +15590,10 @@ class pd {
15590
15590
  this.stylesheetManager.attachLinkElement(A, I);
15591
15591
  }
15592
15592
  });
15593
- E && e.push({
15594
- parentId: b,
15595
- nextId: C,
15596
- node: E
15593
+ S && e.push({
15594
+ parentId: v,
15595
+ nextId: b,
15596
+ node: S
15597
15597
  });
15598
15598
  };
15599
15599
  for (; this.mapRemoves.length; )
@@ -15620,10 +15620,10 @@ class pd {
15620
15620
  a = h;
15621
15621
  break;
15622
15622
  } else {
15623
- const m = h.value;
15624
- if (m.parentNode && m.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
15625
- const g = m.parentNode.host;
15626
- if (this.mirror.getId(g) !== -1) {
15623
+ const g = h.value;
15624
+ if (g.parentNode && g.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
15625
+ const m = g.parentNode.host;
15626
+ if (this.mirror.getId(m) !== -1) {
15627
15627
  a = h;
15628
15628
  break;
15629
15629
  }
@@ -15825,14 +15825,14 @@ function md({ mousemoveCb: i, sampling: e, doc: t, mirror: s }) {
15825
15825
  const n = typeof e.mousemove == "number" ? e.mousemove : 50, r = typeof e.mousemoveCallback == "number" ? e.mousemoveCallback : 500;
15826
15826
  let o = [], a;
15827
15827
  const l = ui((u) => {
15828
- const m = Date.now() - a;
15829
- i(o.map((g) => (g.timeOffset -= m, g)), u), o = [], a = null;
15828
+ const g = Date.now() - a;
15829
+ i(o.map((m) => (m.timeOffset -= g, m)), u), o = [], a = null;
15830
15830
  }, r), h = ui((u) => {
15831
- const m = pi(u), { clientX: g, clientY: _ } = Ro(u) ? u.changedTouches[0] : u;
15831
+ const g = pi(u), { clientX: m, clientY: _ } = Ro(u) ? u.changedTouches[0] : u;
15832
15832
  a || (a = Date.now()), o.push({
15833
- x: g,
15833
+ x: m,
15834
15834
  y: _,
15835
- id: s.getId(m),
15835
+ id: s.getId(g),
15836
15836
  timeOffset: Date.now() - a
15837
15837
  }), l(typeof DragEvent < "u" && u instanceof DragEvent ? P.Drag : u instanceof MouseEvent ? P.MouseMove : P.TouchMove);
15838
15838
  }, n, {
@@ -15854,15 +15854,15 @@ function gd({ mouseInteractionCb: i, doc: e, mirror: t, blockClass: s, blockSele
15854
15854
  const u = pi(f);
15855
15855
  if (Ie(u, s, n, !0))
15856
15856
  return;
15857
- const m = Ro(f) ? f.changedTouches[0] : f;
15858
- if (!m)
15857
+ const g = Ro(f) ? f.changedTouches[0] : f;
15858
+ if (!g)
15859
15859
  return;
15860
- const g = t.getId(u), { clientX: _, clientY: b } = m;
15860
+ const m = t.getId(u), { clientX: _, clientY: v } = g;
15861
15861
  i({
15862
15862
  type: Ms[h],
15863
- id: g,
15863
+ id: m,
15864
15864
  x: _,
15865
- y: b
15865
+ y: v
15866
15866
  });
15867
15867
  };
15868
15868
  return Object.keys(Ms).filter((h) => Number.isNaN(Number(h)) && !h.endsWith("_Departed") && o[h] !== !1).forEach((h) => {
@@ -15911,9 +15911,9 @@ function Xn(i, e) {
15911
15911
  }
15912
15912
  const _d = ["INPUT", "TEXTAREA", "SELECT"], qn = /* @__PURE__ */ new WeakMap();
15913
15913
  function vd({ inputCb: i, doc: e, mirror: t, blockClass: s, blockSelector: n, ignoreClass: r, maskInputOptions: o, maskInputFn: a, sampling: l, userTriggeredOnInput: h }) {
15914
- function f(E) {
15915
- let A = pi(E);
15916
- const I = E.isTrusted;
15914
+ function f(S) {
15915
+ let A = pi(S);
15916
+ const I = S.isTrusted;
15917
15917
  if (A && A.tagName === "OPTION" && (A = A.parentElement), !A || !A.tagName || _d.indexOf(A.tagName) < 0 || Ie(A, s, n, !0))
15918
15918
  return;
15919
15919
  const w = A.type;
@@ -15936,20 +15936,20 @@ function vd({ inputCb: i, doc: e, mirror: t, blockClass: s, blockSelector: n, ig
15936
15936
  }, h));
15937
15937
  });
15938
15938
  }
15939
- function u(E, A) {
15940
- const I = qn.get(E);
15939
+ function u(S, A) {
15940
+ const I = qn.get(S);
15941
15941
  if (!I || I.text !== A.text || I.isChecked !== A.isChecked) {
15942
- qn.set(E, A);
15943
- const w = t.getId(E);
15942
+ qn.set(S, A);
15943
+ const w = t.getId(S);
15944
15944
  i(Object.assign(Object.assign({}, A), { id: w }));
15945
15945
  }
15946
15946
  }
15947
- const g = (l.input === "last" ? ["change"] : ["input", "change"]).map((E) => Ee(E, f, e)), _ = e.defaultView;
15947
+ const m = (l.input === "last" ? ["change"] : ["input", "change"]).map((S) => Ee(S, f, e)), _ = e.defaultView;
15948
15948
  if (!_)
15949
15949
  return () => {
15950
- g.forEach((E) => E());
15950
+ m.forEach((S) => S());
15951
15951
  };
15952
- const b = _.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype, "value"), C = [
15952
+ const v = _.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype, "value"), b = [
15953
15953
  [_.HTMLInputElement.prototype, "value"],
15954
15954
  [_.HTMLInputElement.prototype, "checked"],
15955
15955
  [_.HTMLSelectElement.prototype, "value"],
@@ -15957,12 +15957,12 @@ function vd({ inputCb: i, doc: e, mirror: t, blockClass: s, blockSelector: n, ig
15957
15957
  [_.HTMLSelectElement.prototype, "selectedIndex"],
15958
15958
  [_.HTMLOptionElement.prototype, "selected"]
15959
15959
  ];
15960
- return b && b.set && g.push(...C.map((E) => Yi(E[0], E[1], {
15960
+ return v && v.set && m.push(...b.map((S) => Yi(S[0], S[1], {
15961
15961
  set() {
15962
15962
  f({ target: this });
15963
15963
  }
15964
15964
  }, !1, _))), () => {
15965
- g.forEach((E) => E());
15965
+ m.forEach((S) => S());
15966
15966
  };
15967
15967
  }
15968
15968
  function Wi(i) {
@@ -15989,37 +15989,37 @@ function dt(i, e, t) {
15989
15989
  function bd({ styleSheetRuleCb: i, mirror: e, stylesheetManager: t }, { win: s }) {
15990
15990
  const n = s.CSSStyleSheet.prototype.insertRule;
15991
15991
  s.CSSStyleSheet.prototype.insertRule = function(f, u) {
15992
- const { id: m, styleId: g } = dt(this, e, t.styleMirror);
15993
- return (m && m !== -1 || g && g !== -1) && i({
15994
- id: m,
15995
- styleId: g,
15992
+ const { id: g, styleId: m } = dt(this, e, t.styleMirror);
15993
+ return (g && g !== -1 || m && m !== -1) && i({
15994
+ id: g,
15995
+ styleId: m,
15996
15996
  adds: [{ rule: f, index: u }]
15997
15997
  }), n.apply(this, [f, u]);
15998
15998
  };
15999
15999
  const r = s.CSSStyleSheet.prototype.deleteRule;
16000
16000
  s.CSSStyleSheet.prototype.deleteRule = function(f) {
16001
- const { id: u, styleId: m } = dt(this, e, t.styleMirror);
16002
- return (u && u !== -1 || m && m !== -1) && i({
16001
+ const { id: u, styleId: g } = dt(this, e, t.styleMirror);
16002
+ return (u && u !== -1 || g && g !== -1) && i({
16003
16003
  id: u,
16004
- styleId: m,
16004
+ styleId: g,
16005
16005
  removes: [{ index: f }]
16006
16006
  }), r.apply(this, [f]);
16007
16007
  };
16008
16008
  let o;
16009
16009
  s.CSSStyleSheet.prototype.replace && (o = s.CSSStyleSheet.prototype.replace, s.CSSStyleSheet.prototype.replace = function(f) {
16010
- const { id: u, styleId: m } = dt(this, e, t.styleMirror);
16011
- return (u && u !== -1 || m && m !== -1) && i({
16010
+ const { id: u, styleId: g } = dt(this, e, t.styleMirror);
16011
+ return (u && u !== -1 || g && g !== -1) && i({
16012
16012
  id: u,
16013
- styleId: m,
16013
+ styleId: g,
16014
16014
  replace: f
16015
16015
  }), o.apply(this, [f]);
16016
16016
  });
16017
16017
  let a;
16018
16018
  s.CSSStyleSheet.prototype.replaceSync && (a = s.CSSStyleSheet.prototype.replaceSync, s.CSSStyleSheet.prototype.replaceSync = function(f) {
16019
- const { id: u, styleId: m } = dt(this, e, t.styleMirror);
16020
- return (u && u !== -1 || m && m !== -1) && i({
16019
+ const { id: u, styleId: g } = dt(this, e, t.styleMirror);
16020
+ return (u && u !== -1 || g && g !== -1) && i({
16021
16021
  id: u,
16022
- styleId: m,
16022
+ styleId: g,
16023
16023
  replaceSync: f
16024
16024
  }), a.apply(this, [f]);
16025
16025
  });
@@ -16030,30 +16030,30 @@ function bd({ styleSheetRuleCb: i, mirror: e, stylesheetManager: t }, { win: s }
16030
16030
  h[f] = {
16031
16031
  insertRule: u.prototype.insertRule,
16032
16032
  deleteRule: u.prototype.deleteRule
16033
- }, u.prototype.insertRule = function(m, g) {
16034
- const { id: _, styleId: b } = dt(this.parentStyleSheet, e, t.styleMirror);
16035
- return (_ && _ !== -1 || b && b !== -1) && i({
16033
+ }, u.prototype.insertRule = function(g, m) {
16034
+ const { id: _, styleId: v } = dt(this.parentStyleSheet, e, t.styleMirror);
16035
+ return (_ && _ !== -1 || v && v !== -1) && i({
16036
16036
  id: _,
16037
- styleId: b,
16037
+ styleId: v,
16038
16038
  adds: [
16039
16039
  {
16040
- rule: m,
16040
+ rule: g,
16041
16041
  index: [
16042
16042
  ...Wi(this),
16043
- g || 0
16043
+ m || 0
16044
16044
  ]
16045
16045
  }
16046
16046
  ]
16047
- }), h[f].insertRule.apply(this, [m, g]);
16048
- }, u.prototype.deleteRule = function(m) {
16049
- const { id: g, styleId: _ } = dt(this.parentStyleSheet, e, t.styleMirror);
16050
- return (g && g !== -1 || _ && _ !== -1) && i({
16051
- id: g,
16047
+ }), h[f].insertRule.apply(this, [g, m]);
16048
+ }, u.prototype.deleteRule = function(g) {
16049
+ const { id: m, styleId: _ } = dt(this.parentStyleSheet, e, t.styleMirror);
16050
+ return (m && m !== -1 || _ && _ !== -1) && i({
16051
+ id: m,
16052
16052
  styleId: _,
16053
16053
  removes: [
16054
- { index: [...Wi(this), m] }
16054
+ { index: [...Wi(this), g] }
16055
16055
  ]
16056
- }), h[f].deleteRule.apply(this, [m]);
16056
+ }), h[f].deleteRule.apply(this, [g]);
16057
16057
  };
16058
16058
  }), () => {
16059
16059
  s.CSSStyleSheet.prototype.insertRule = n, s.CSSStyleSheet.prototype.deleteRule = r, o && (s.CSSStyleSheet.prototype.replace = o), a && (s.CSSStyleSheet.prototype.replaceSync = a), Object.entries(l).forEach(([f, u]) => {
@@ -16099,10 +16099,10 @@ function Cd({ styleDeclarationCb: i, mirror: e, ignoreCSSAttributes: t, styleshe
16099
16099
  var f;
16100
16100
  if (t.has(a))
16101
16101
  return r.apply(this, [a, l, h]);
16102
- const { id: u, styleId: m } = dt((f = this.parentRule) === null || f === void 0 ? void 0 : f.parentStyleSheet, e, s.styleMirror);
16103
- return (u && u !== -1 || m && m !== -1) && i({
16102
+ const { id: u, styleId: g } = dt((f = this.parentRule) === null || f === void 0 ? void 0 : f.parentStyleSheet, e, s.styleMirror);
16103
+ return (u && u !== -1 || g && g !== -1) && i({
16104
16104
  id: u,
16105
- styleId: m,
16105
+ styleId: g,
16106
16106
  set: {
16107
16107
  property: a,
16108
16108
  value: l,
@@ -16134,14 +16134,14 @@ function Sd({ mediaInteractionCb: i, blockClass: e, blockSelector: t, mirror: s,
16134
16134
  const h = pi(l);
16135
16135
  if (!h || Ie(h, e, t, !0))
16136
16136
  return;
16137
- const { currentTime: f, volume: u, muted: m, playbackRate: g } = h;
16137
+ const { currentTime: f, volume: u, muted: g, playbackRate: m } = h;
16138
16138
  i({
16139
16139
  type: a,
16140
16140
  id: s.getId(h),
16141
16141
  currentTime: f,
16142
16142
  volume: u,
16143
- muted: m,
16144
- playbackRate: g
16143
+ muted: g,
16144
+ playbackRate: m
16145
16145
  });
16146
16146
  }, n.media || 500), o = [
16147
16147
  Ee("play", r(0)),
@@ -16193,12 +16193,12 @@ function Id(i) {
16193
16193
  o = l.isCollapsed || !1;
16194
16194
  const h = [], f = l.rangeCount || 0;
16195
16195
  for (let u = 0; u < f; u++) {
16196
- const m = l.getRangeAt(u), { startContainer: g, startOffset: _, endContainer: b, endOffset: C } = m;
16197
- Ie(g, s, n, !0) || Ie(b, s, n, !0) || h.push({
16198
- start: t.getId(g),
16196
+ const g = l.getRangeAt(u), { startContainer: m, startOffset: _, endContainer: v, endOffset: b } = g;
16197
+ Ie(m, s, n, !0) || Ie(v, s, n, !0) || h.push({
16198
+ start: t.getId(m),
16199
16199
  startOffset: _,
16200
- end: t.getId(b),
16201
- endOffset: C
16200
+ end: t.getId(v),
16201
+ endOffset: b
16202
16202
  });
16203
16203
  }
16204
16204
  r({ ranges: h });
@@ -16206,7 +16206,7 @@ function Id(i) {
16206
16206
  return a(), Ee("selectionchange", a);
16207
16207
  }
16208
16208
  function Ad(i, e) {
16209
- const { mutationCb: t, mousemoveCb: s, mouseInteractionCb: n, scrollCb: r, viewportResizeCb: o, inputCb: a, mediaInteractionCb: l, styleSheetRuleCb: h, styleDeclarationCb: f, canvasMutationCb: u, fontCb: m, selectionCb: g } = i;
16209
+ const { mutationCb: t, mousemoveCb: s, mouseInteractionCb: n, scrollCb: r, viewportResizeCb: o, inputCb: a, mediaInteractionCb: l, styleSheetRuleCb: h, styleDeclarationCb: f, canvasMutationCb: u, fontCb: g, selectionCb: m } = i;
16210
16210
  i.mutationCb = (..._) => {
16211
16211
  e.mutation && e.mutation(..._), t(..._);
16212
16212
  }, i.mousemoveCb = (..._) => {
@@ -16228,9 +16228,9 @@ function Ad(i, e) {
16228
16228
  }, i.canvasMutationCb = (..._) => {
16229
16229
  e.canvasMutation && e.canvasMutation(..._), u(..._);
16230
16230
  }, i.fontCb = (..._) => {
16231
- e.font && e.font(..._), m(..._);
16231
+ e.font && e.font(..._), g(..._);
16232
16232
  }, i.selectionCb = (..._) => {
16233
- e.selection && e.selection(..._), g(..._);
16233
+ e.selection && e.selection(..._), m(..._);
16234
16234
  };
16235
16235
  }
16236
16236
  function xd(i, e = {}) {
@@ -16239,14 +16239,14 @@ function xd(i, e = {}) {
16239
16239
  return () => {
16240
16240
  };
16241
16241
  Ad(i, e);
16242
- const s = Uo(i, i.doc), n = md(i), r = gd(i), o = Vo(i), a = yd(i), l = vd(i), h = Sd(i), f = bd(i, { win: t }), u = Go(i, i.doc), m = Cd(i, {
16242
+ const s = Uo(i, i.doc), n = md(i), r = gd(i), o = Vo(i), a = yd(i), l = vd(i), h = Sd(i), f = bd(i, { win: t }), u = Go(i, i.doc), g = Cd(i, {
16243
16243
  win: t
16244
- }), g = i.collectFonts ? Ed(i) : () => {
16245
- }, _ = Id(i), b = [];
16246
- for (const C of i.plugins)
16247
- b.push(C.observer(C.callback, t, C.options));
16244
+ }), m = i.collectFonts ? Ed(i) : () => {
16245
+ }, _ = Id(i), v = [];
16246
+ for (const b of i.plugins)
16247
+ v.push(b.observer(b.callback, t, b.options));
16248
16248
  return () => {
16249
- St.forEach((C) => C.reset()), s.disconnect(), n(), r(), o(), a(), l(), h(), f(), u(), m(), g(), _(), b.forEach((C) => C());
16249
+ St.forEach((b) => b.reset()), s.disconnect(), n(), r(), o(), a(), l(), h(), f(), u(), g(), m(), _(), v.forEach((b) => b());
16250
16250
  };
16251
16251
  }
16252
16252
  class Kn {
@@ -16656,27 +16656,27 @@ function Qn(i, e, t, s, n, r, o) {
16656
16656
  if (typeof i[h] != "function")
16657
16657
  continue;
16658
16658
  const f = Ht(i, h, function(u) {
16659
- return function(...m) {
16660
- const g = u.apply(this, m);
16661
- if (Wo(g, o, this), !Ie(this.canvas, s, n, !0)) {
16662
- const _ = Ho([...m], o, this), b = {
16659
+ return function(...g) {
16660
+ const m = u.apply(this, g);
16661
+ if (Wo(m, o, this), !Ie(this.canvas, s, n, !0)) {
16662
+ const _ = Ho([...g], o, this), v = {
16663
16663
  type: e,
16664
16664
  property: h,
16665
16665
  args: _
16666
16666
  };
16667
- t(this.canvas, b);
16667
+ t(this.canvas, v);
16668
16668
  }
16669
- return g;
16669
+ return m;
16670
16670
  };
16671
16671
  });
16672
16672
  a.push(f);
16673
16673
  } catch {
16674
16674
  const u = Yi(i, h, {
16675
- set(m) {
16675
+ set(g) {
16676
16676
  t(this.canvas, {
16677
16677
  type: e,
16678
16678
  property: h,
16679
- args: [m],
16679
+ args: [g],
16680
16680
  setter: !0
16681
16681
  });
16682
16682
  }
@@ -16758,12 +16758,12 @@ class jd {
16758
16758
  initCanvasFPSObserver(e, t, s, n, r) {
16759
16759
  const o = Jn(t, s, n), a = /* @__PURE__ */ new Map(), l = new zd();
16760
16760
  l.onmessage = (_) => {
16761
- const { id: b } = _.data;
16762
- if (a.set(b, !1), !("base64" in _.data))
16761
+ const { id: v } = _.data;
16762
+ if (a.set(v, !1), !("base64" in _.data))
16763
16763
  return;
16764
- const { base64: C, type: E, width: A, height: I } = _.data;
16764
+ const { base64: b, type: S, width: A, height: I } = _.data;
16765
16765
  this.mutationCb({
16766
- id: b,
16766
+ id: v,
16767
16767
  type: $t["2D"],
16768
16768
  commands: [
16769
16769
  {
@@ -16778,8 +16778,8 @@ class jd {
16778
16778
  args: [
16779
16779
  {
16780
16780
  rr_type: "Blob",
16781
- data: [{ rr_type: "ArrayBuffer", base64: C }],
16782
- type: E
16781
+ data: [{ rr_type: "ArrayBuffer", base64: b }],
16782
+ type: S
16783
16783
  }
16784
16784
  ]
16785
16785
  },
@@ -16792,36 +16792,36 @@ class jd {
16792
16792
  };
16793
16793
  const h = 1e3 / e;
16794
16794
  let f = 0, u;
16795
- const m = () => {
16795
+ const g = () => {
16796
16796
  const _ = [];
16797
- return t.document.querySelectorAll("canvas").forEach((b) => {
16798
- Ie(b, s, n, !0) || _.push(b);
16797
+ return t.document.querySelectorAll("canvas").forEach((v) => {
16798
+ Ie(v, s, n, !0) || _.push(v);
16799
16799
  }), _;
16800
- }, g = (_) => {
16800
+ }, m = (_) => {
16801
16801
  if (f && _ - f < h) {
16802
- u = requestAnimationFrame(g);
16802
+ u = requestAnimationFrame(m);
16803
16803
  return;
16804
16804
  }
16805
- f = _, m().forEach((b) => Od(this, void 0, void 0, function* () {
16806
- var C;
16807
- const E = this.mirror.getId(b);
16808
- if (a.get(E))
16805
+ f = _, g().forEach((v) => Od(this, void 0, void 0, function* () {
16806
+ var b;
16807
+ const S = this.mirror.getId(v);
16808
+ if (a.get(S))
16809
16809
  return;
16810
- if (a.set(E, !0), ["webgl", "webgl2"].includes(b.__context)) {
16811
- const I = b.getContext(b.__context);
16812
- ((C = I == null ? void 0 : I.getContextAttributes()) === null || C === void 0 ? void 0 : C.preserveDrawingBuffer) === !1 && (I == null || I.clear(I.COLOR_BUFFER_BIT));
16810
+ if (a.set(S, !0), ["webgl", "webgl2"].includes(v.__context)) {
16811
+ const I = v.getContext(v.__context);
16812
+ ((b = I == null ? void 0 : I.getContextAttributes()) === null || b === void 0 ? void 0 : b.preserveDrawingBuffer) === !1 && (I == null || I.clear(I.COLOR_BUFFER_BIT));
16813
16813
  }
16814
- const A = yield createImageBitmap(b);
16814
+ const A = yield createImageBitmap(v);
16815
16815
  l.postMessage({
16816
- id: E,
16816
+ id: S,
16817
16817
  bitmap: A,
16818
- width: b.width,
16819
- height: b.height,
16818
+ width: v.width,
16819
+ height: v.height,
16820
16820
  dataURLOptions: r.dataURLOptions
16821
16821
  }, [A]);
16822
- })), u = requestAnimationFrame(g);
16822
+ })), u = requestAnimationFrame(m);
16823
16823
  };
16824
- u = requestAnimationFrame(g), this.resetObservers = () => {
16824
+ u = requestAnimationFrame(m), this.resetObservers = () => {
16825
16825
  o(), cancelAnimationFrame(u);
16826
16826
  };
16827
16827
  }
@@ -16915,7 +16915,7 @@ function ne(i) {
16915
16915
  let te, Pi, ys, Hi = !1;
16916
16916
  const Ge = Gh();
16917
16917
  function zt(i = {}) {
16918
- const { emit: e, checkoutEveryNms: t, checkoutEveryNth: s, blockClass: n = "rr-block", blockSelector: r = null, ignoreClass: o = "rr-ignore", maskTextClass: a = "rr-mask", maskTextSelector: l = null, inlineStylesheet: h = !0, maskAllInputs: f, maskInputOptions: u, slimDOMOptions: m, maskInputFn: g, maskTextFn: _, hooks: b, packFn: C, sampling: E = {}, dataURLOptions: A = {}, mousemoveWait: I, recordCanvas: w = !1, recordCrossOriginIframes: T = !1, userTriggeredOnInput: M = !1, collectFonts: F = !1, inlineImages: D = !1, plugins: J, keepIframeSrcFn: q = () => !1, ignoreCSSAttributes: ue = /* @__PURE__ */ new Set([]) } = i, me = T ? window.parent === window : !0;
16918
+ const { emit: e, checkoutEveryNms: t, checkoutEveryNth: s, blockClass: n = "rr-block", blockSelector: r = null, ignoreClass: o = "rr-ignore", maskTextClass: a = "rr-mask", maskTextSelector: l = null, inlineStylesheet: h = !0, maskAllInputs: f, maskInputOptions: u, slimDOMOptions: g, maskInputFn: m, maskTextFn: _, hooks: v, packFn: b, sampling: S = {}, dataURLOptions: A = {}, mousemoveWait: I, recordCanvas: w = !1, recordCrossOriginIframes: T = !1, userTriggeredOnInput: M = !1, collectFonts: F = !1, inlineImages: D = !1, plugins: J, keepIframeSrcFn: q = () => !1, ignoreCSSAttributes: ue = /* @__PURE__ */ new Set([]) } = i, me = T ? window.parent === window : !0;
16919
16919
  let ge = !1;
16920
16920
  if (!me)
16921
16921
  try {
@@ -16925,7 +16925,7 @@ function zt(i = {}) {
16925
16925
  }
16926
16926
  if (me && !e)
16927
16927
  throw new Error("emit function is required");
16928
- I !== void 0 && E.mousemove === void 0 && (E.mousemove = I), Ge.reset();
16928
+ I !== void 0 && S.mousemove === void 0 && (S.mousemove = I), Ge.reset();
16929
16929
  const H = f === !0 ? {
16930
16930
  color: !0,
16931
16931
  date: !0,
@@ -16943,7 +16943,7 @@ function zt(i = {}) {
16943
16943
  textarea: !0,
16944
16944
  select: !0,
16945
16945
  password: !0
16946
- } : u !== void 0 ? u : { password: !0 }, se = m === !0 || m === "all" ? {
16946
+ } : u !== void 0 ? u : { password: !0 }, se = g === !0 || g === "all" ? {
16947
16947
  script: !0,
16948
16948
  comment: !0,
16949
16949
  headFavicon: !0,
@@ -16952,15 +16952,15 @@ function zt(i = {}) {
16952
16952
  headMetaRobots: !0,
16953
16953
  headMetaHttpEquiv: !0,
16954
16954
  headMetaVerification: !0,
16955
- headMetaAuthorship: m === "all",
16956
- headMetaDescKeywords: m === "all"
16957
- } : m || {};
16955
+ headMetaAuthorship: g === "all",
16956
+ headMetaDescKeywords: g === "all"
16957
+ } : g || {};
16958
16958
  dd();
16959
16959
  let we, De = 0;
16960
16960
  const Ue = (O) => {
16961
16961
  for (const ae of J || [])
16962
16962
  ae.eventProcessor && (O = ae.eventProcessor(O));
16963
- return C && (O = C(O)), O;
16963
+ return b && (O = b(O)), O;
16964
16964
  };
16965
16965
  te = (O, ae) => {
16966
16966
  var Q;
@@ -17021,7 +17021,7 @@ function zt(i = {}) {
17021
17021
  blockClass: n,
17022
17022
  blockSelector: r,
17023
17023
  mirror: Ge,
17024
- sampling: E.canvas,
17024
+ sampling: S.canvas,
17025
17025
  dataURLOptions: A
17026
17026
  });
17027
17027
  const Je = new Td({
@@ -17036,10 +17036,10 @@ function zt(i = {}) {
17036
17036
  maskInputOptions: H,
17037
17037
  dataURLOptions: A,
17038
17038
  maskTextFn: _,
17039
- maskInputFn: g,
17039
+ maskInputFn: m,
17040
17040
  recordCanvas: w,
17041
17041
  inlineImages: D,
17042
- sampling: E,
17042
+ sampling: S,
17043
17043
  slimDOMOptions: se,
17044
17044
  iframeManager: Te,
17045
17045
  stylesheetManager: xe,
@@ -17156,13 +17156,13 @@ function zt(i = {}) {
17156
17156
  maskTextSelector: l,
17157
17157
  maskInputOptions: H,
17158
17158
  inlineStylesheet: h,
17159
- sampling: E,
17159
+ sampling: S,
17160
17160
  recordCanvas: w,
17161
17161
  inlineImages: D,
17162
17162
  userTriggeredOnInput: M,
17163
17163
  collectFonts: F,
17164
17164
  doc: $,
17165
- maskInputFn: g,
17165
+ maskInputFn: m,
17166
17166
  maskTextFn: _,
17167
17167
  keepIframeSrcFn: q,
17168
17168
  blockSelector: r,
@@ -17185,7 +17185,7 @@ function zt(i = {}) {
17185
17185
  }
17186
17186
  }))
17187
17187
  }))) || []
17188
- }, b);
17188
+ }, v);
17189
17189
  };
17190
17190
  Te.addLoadListener(($) => {
17191
17191
  O.push(ae($.contentDocument));
@@ -17556,11 +17556,11 @@ const Ds = (i, e, t) => Math.min(Math.max(t, i), e), _s = 1e-3, nu = 0.01, ru =
17556
17556
  function lu({ duration: i = 800, bounce: e = 0.25, velocity: t = 0, mass: s = 1 }) {
17557
17557
  let n, r, o = 1 - e;
17558
17558
  o = Ds(ou, au, o), i = Ds(nu, ru, i / 1e3), o < 1 ? (n = (h) => {
17559
- const f = h * o, u = f * i, m = f - t, g = Ls(h, o), _ = Math.exp(-u);
17560
- return _s - m / g * _;
17559
+ const f = h * o, u = f * i, g = f - t, m = Ls(h, o), _ = Math.exp(-u);
17560
+ return _s - g / m * _;
17561
17561
  }, r = (h) => {
17562
- const u = h * o * i, m = u * t + t, g = Math.pow(o, 2) * Math.pow(h, 2) * i, _ = Math.exp(-u), b = Ls(Math.pow(h, 2), o);
17563
- return (-n(h) + _s > 0 ? -1 : 1) * ((m - g) * _) / b;
17562
+ const u = h * o * i, g = u * t + t, m = Math.pow(o, 2) * Math.pow(h, 2) * i, _ = Math.exp(-u), v = Ls(Math.pow(h, 2), o);
17563
+ return (-n(h) + _s > 0 ? -1 : 1) * ((g - m) * _) / v;
17564
17564
  }) : (n = (h) => {
17565
17565
  const f = Math.exp(-h * i), u = (h - t) * i + 1;
17566
17566
  return -_s + f * u;
@@ -17609,41 +17609,41 @@ function fu(i) {
17609
17609
  function Zs(i) {
17610
17610
  var { from: e = 0, to: t = 1, restSpeed: s = 2, restDelta: n } = i, r = Xo(i, ["from", "to", "restSpeed", "restDelta"]);
17611
17611
  const o = { done: !1, value: e };
17612
- let { stiffness: a, damping: l, mass: h, velocity: f, duration: u, isResolvedFromDuration: m } = fu(r), g = sr, _ = sr;
17613
- function b() {
17614
- const C = f ? -(f / 1e3) : 0, E = t - e, A = l / (2 * Math.sqrt(a * h)), I = Math.sqrt(a / h) / 1e3;
17612
+ let { stiffness: a, damping: l, mass: h, velocity: f, duration: u, isResolvedFromDuration: g } = fu(r), m = sr, _ = sr;
17613
+ function v() {
17614
+ const b = f ? -(f / 1e3) : 0, S = t - e, A = l / (2 * Math.sqrt(a * h)), I = Math.sqrt(a / h) / 1e3;
17615
17615
  if (n === void 0 && (n = Math.min(Math.abs(t - e) / 100, 0.4)), A < 1) {
17616
17616
  const w = Ls(I, A);
17617
- g = (T) => {
17617
+ m = (T) => {
17618
17618
  const M = Math.exp(-A * I * T);
17619
- return t - M * ((C + A * I * E) / w * Math.sin(w * T) + E * Math.cos(w * T));
17619
+ return t - M * ((b + A * I * S) / w * Math.sin(w * T) + S * Math.cos(w * T));
17620
17620
  }, _ = (T) => {
17621
17621
  const M = Math.exp(-A * I * T);
17622
- return A * I * M * (Math.sin(w * T) * (C + A * I * E) / w + E * Math.cos(w * T)) - M * (Math.cos(w * T) * (C + A * I * E) - w * E * Math.sin(w * T));
17622
+ return A * I * M * (Math.sin(w * T) * (b + A * I * S) / w + S * Math.cos(w * T)) - M * (Math.cos(w * T) * (b + A * I * S) - w * S * Math.sin(w * T));
17623
17623
  };
17624
17624
  } else if (A === 1)
17625
- g = (w) => t - Math.exp(-I * w) * (E + (C + I * E) * w);
17625
+ m = (w) => t - Math.exp(-I * w) * (S + (b + I * S) * w);
17626
17626
  else {
17627
17627
  const w = I * Math.sqrt(A * A - 1);
17628
- g = (T) => {
17628
+ m = (T) => {
17629
17629
  const M = Math.exp(-A * I * T), F = Math.min(w * T, 300);
17630
- return t - M * ((C + A * I * E) * Math.sinh(F) + w * E * Math.cosh(F)) / w;
17630
+ return t - M * ((b + A * I * S) * Math.sinh(F) + w * S * Math.cosh(F)) / w;
17631
17631
  };
17632
17632
  }
17633
17633
  }
17634
- return b(), {
17635
- next: (C) => {
17636
- const E = g(C);
17637
- if (m)
17638
- o.done = C >= u;
17634
+ return v(), {
17635
+ next: (b) => {
17636
+ const S = m(b);
17637
+ if (g)
17638
+ o.done = b >= u;
17639
17639
  else {
17640
- const A = _(C) * 1e3, I = Math.abs(A) <= s, w = Math.abs(t - E) <= n;
17640
+ const A = _(b) * 1e3, I = Math.abs(A) <= s, w = Math.abs(t - S) <= n;
17641
17641
  o.done = I && w;
17642
17642
  }
17643
- return o.value = o.done ? t : E, o;
17643
+ return o.value = o.done ? t : S, o;
17644
17644
  },
17645
17645
  flipTarget: () => {
17646
- f = -f, [e, t] = [t, e], b();
17646
+ f = -f, [e, t] = [t, e], v();
17647
17647
  }
17648
17648
  };
17649
17649
  }
@@ -17896,8 +17896,8 @@ function Gu(i) {
17896
17896
  let e = [], t = [], s = 0, n = !1, r = !1;
17897
17897
  const o = /* @__PURE__ */ new WeakSet(), a = {
17898
17898
  schedule: (l, h = !1, f = !1) => {
17899
- const u = f && n, m = u ? e : t;
17900
- return h && o.add(l), m.indexOf(l) === -1 && (m.push(l), u && n && (s = e.length)), l;
17899
+ const u = f && n, g = u ? e : t;
17900
+ return h && o.add(l), g.indexOf(l) === -1 && (g.push(l), u && n && (s = e.length)), l;
17901
17901
  },
17902
17902
  cancel: (l) => {
17903
17903
  const h = t.indexOf(l);
@@ -17956,18 +17956,18 @@ const qu = (i) => {
17956
17956
  };
17957
17957
  };
17958
17958
  function Ku(i) {
17959
- var e, t, { from: s, autoplay: n = !0, driver: r = qu, elapsed: o = 0, repeat: a = 0, repeatType: l = "loop", repeatDelay: h = 0, onPlay: f, onStop: u, onComplete: m, onRepeat: g, onUpdate: _ } = i, b = Xo(i, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
17960
- let { to: C } = b, E, A = 0, I = b.duration, w, T = !1, M = !0, F;
17961
- const D = Uu(b);
17962
- !((t = (e = D).needsInterpolation) === null || t === void 0) && t.call(e, s, C) && (F = ha([0, 100], [s, C], {
17959
+ var e, t, { from: s, autoplay: n = !0, driver: r = qu, elapsed: o = 0, repeat: a = 0, repeatType: l = "loop", repeatDelay: h = 0, onPlay: f, onStop: u, onComplete: g, onRepeat: m, onUpdate: _ } = i, v = Xo(i, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
17960
+ let { to: b } = v, S, A = 0, I = v.duration, w, T = !1, M = !0, F;
17961
+ const D = Uu(v);
17962
+ !((t = (e = D).needsInterpolation) === null || t === void 0) && t.call(e, s, b) && (F = ha([0, 100], [s, b], {
17963
17963
  clamp: !1
17964
- }), s = 0, C = 100);
17965
- const J = D(Object.assign(Object.assign({}, b), { from: s, to: C }));
17964
+ }), s = 0, b = 100);
17965
+ const J = D(Object.assign(Object.assign({}, v), { from: s, to: b }));
17966
17966
  function q() {
17967
- A++, l === "reverse" ? (M = A % 2 === 0, o = Yu(o, I, h, M)) : (o = pa(o, I, h), l === "mirror" && J.flipTarget()), T = !1, g && g();
17967
+ A++, l === "reverse" ? (M = A % 2 === 0, o = Yu(o, I, h, M)) : (o = pa(o, I, h), l === "mirror" && J.flipTarget()), T = !1, m && m();
17968
17968
  }
17969
17969
  function ue() {
17970
- E.stop(), m && m();
17970
+ S.stop(), g && g();
17971
17971
  }
17972
17972
  function me(H) {
17973
17973
  if (M || (H = -H), o += H, !T) {
@@ -17977,11 +17977,11 @@ function Ku(i) {
17977
17977
  _ == null || _(w), T && (A === 0 && (I ?? (I = o)), A < a ? Xu(o, I, h, M) && q() : ue());
17978
17978
  }
17979
17979
  function ge() {
17980
- f == null || f(), E = r(me), E.start();
17980
+ f == null || f(), S = r(me), S.start();
17981
17981
  }
17982
17982
  return n && ge(), {
17983
17983
  stop: () => {
17984
- u == null || u(), E.stop();
17984
+ u == null || u(), S.stop();
17985
17985
  }
17986
17986
  };
17987
17987
  }
@@ -18031,70 +18031,70 @@ function ke(i, e = {}) {
18031
18031
  from: r,
18032
18032
  to: 1,
18033
18033
  preset: s,
18034
- onUpdate: (m) => {
18035
- i.style.opacity = String(m);
18034
+ onUpdate: (g) => {
18035
+ i.style.opacity = String(g);
18036
18036
  },
18037
18037
  onComplete: u
18038
18038
  })), l.push(mt({
18039
18039
  from: o,
18040
18040
  to: 1,
18041
18041
  preset: s,
18042
- onUpdate: (m) => {
18042
+ onUpdate: (g) => {
18043
18043
  var _;
18044
- const g = parseFloat(((_ = i.style.transform.match(/translateY\(([^)]+)\)/)) == null ? void 0 : _[1]) ?? "0");
18045
- i.style.transform = `scale(${m}) translateY(${g}px)`;
18044
+ const m = parseFloat(((_ = i.style.transform.match(/translateY\(([^)]+)\)/)) == null ? void 0 : _[1]) ?? "0");
18045
+ i.style.transform = `scale(${g}) translateY(${m}px)`;
18046
18046
  },
18047
18047
  onComplete: u
18048
18048
  })), l.push(mt({
18049
18049
  from: a,
18050
18050
  to: 0,
18051
18051
  preset: s,
18052
- onUpdate: (m) => {
18052
+ onUpdate: (g) => {
18053
18053
  var _;
18054
- const g = parseFloat(((_ = i.style.transform.match(/scale\(([^)]+)\)/)) == null ? void 0 : _[1]) ?? "1");
18055
- i.style.transform = `scale(${g}) translateY(${m}px)`;
18054
+ const m = parseFloat(((_ = i.style.transform.match(/scale\(([^)]+)\)/)) == null ? void 0 : _[1]) ?? "1");
18055
+ i.style.transform = `scale(${m}) translateY(${g}px)`;
18056
18056
  },
18057
18057
  onComplete: u
18058
18058
  })), {
18059
- stop: () => l.forEach((m) => m.stop())
18059
+ stop: () => l.forEach((g) => g.stop())
18060
18060
  };
18061
18061
  }
18062
18062
  function rt(i, e = {}) {
18063
18063
  const { to: t = {}, preset: s = "smooth", remove: n = !0, onComplete: r } = e, o = t.opacity ?? 0, a = t.scale ?? 0.92, l = t.y ?? 8, h = [];
18064
18064
  let f = 0;
18065
- const u = 3, m = () => {
18065
+ const u = 3, g = () => {
18066
18066
  ++f >= u && (n && i.remove(), r == null || r());
18067
18067
  };
18068
18068
  return h.push(mt({
18069
18069
  from: parseFloat(i.style.opacity || "1"),
18070
18070
  to: o,
18071
18071
  preset: s,
18072
- onUpdate: (g) => {
18073
- i.style.opacity = String(g);
18072
+ onUpdate: (m) => {
18073
+ i.style.opacity = String(m);
18074
18074
  },
18075
- onComplete: m
18075
+ onComplete: g
18076
18076
  })), h.push(mt({
18077
18077
  from: 1,
18078
18078
  to: a,
18079
18079
  preset: s,
18080
- onUpdate: (g) => {
18081
- var b;
18082
- const _ = parseFloat(((b = i.style.transform.match(/translateY\(([^)]+)\)/)) == null ? void 0 : b[1]) ?? "0");
18083
- i.style.transform = `scale(${g}) translateY(${_}px)`;
18080
+ onUpdate: (m) => {
18081
+ var v;
18082
+ const _ = parseFloat(((v = i.style.transform.match(/translateY\(([^)]+)\)/)) == null ? void 0 : v[1]) ?? "0");
18083
+ i.style.transform = `scale(${m}) translateY(${_}px)`;
18084
18084
  },
18085
- onComplete: m
18085
+ onComplete: g
18086
18086
  })), h.push(mt({
18087
18087
  from: 0,
18088
18088
  to: l,
18089
18089
  preset: s,
18090
- onUpdate: (g) => {
18091
- var b;
18092
- const _ = parseFloat(((b = i.style.transform.match(/scale\(([^)]+)\)/)) == null ? void 0 : b[1]) ?? "1");
18093
- i.style.transform = `scale(${_}) translateY(${g}px)`;
18090
+ onUpdate: (m) => {
18091
+ var v;
18092
+ const _ = parseFloat(((v = i.style.transform.match(/scale\(([^)]+)\)/)) == null ? void 0 : v[1]) ?? "1");
18093
+ i.style.transform = `scale(${_}) translateY(${m}px)`;
18094
18094
  },
18095
- onComplete: m
18095
+ onComplete: g
18096
18096
  })), {
18097
- stop: () => h.forEach((g) => g.stop())
18097
+ stop: () => h.forEach((m) => m.stop())
18098
18098
  };
18099
18099
  }
18100
18100
  const lr = "holostaff-liquid-tokens", R = {
@@ -18251,7 +18251,7 @@ function Ze() {
18251
18251
  const Qu = 15e3;
18252
18252
  class ef {
18253
18253
  constructor(e) {
18254
- this.currentIntervention = null, this.autoDismissTimer = null, this._active = !1, this.cardOverlay = null, this.cardOverlayAnim = null, this.onAccept = null, this.wsClient = e.wsClient, this.getWidgetState = e.getWidgetState, this.getHomeVisible = e.getHomeVisible, this.inlineTarget = e.inlineTarget ?? null, this.pill = e.pill ?? null, this.wsClient.onIntervention = (t) => this.handleIntervention(t);
18254
+ this.currentIntervention = null, this.autoDismissTimer = null, this._active = !1, this.cardOverlay = null, this.cardOverlayAnim = null, this.onInterventionShown = null, this.onAccept = null, this.wsClient = e.wsClient, this.getWidgetState = e.getWidgetState, this.getHomeVisible = e.getHomeVisible, this.inlineTarget = e.inlineTarget ?? null, this.pill = e.pill ?? null, this.wsClient.onIntervention = (t) => this.handleIntervention(t);
18255
18255
  }
18256
18256
  get isActive() {
18257
18257
  return this._active;
@@ -18263,13 +18263,14 @@ class ef {
18263
18263
  // Intervention handling
18264
18264
  // -----------------------------------------------------------------------
18265
18265
  handleIntervention(e) {
18266
+ var n;
18266
18267
  const t = this.getWidgetState();
18267
18268
  if (t === "active" || t === "connecting") {
18268
18269
  this.wsClient.sendActionComplete(e.actionId, "ignored");
18269
18270
  return;
18270
18271
  }
18271
18272
  if (this._active) return;
18272
- console.log(`[ActionExecutor] Showing suggestion: "${e.message}"`), this.currentIntervention = e, this._active = !0;
18273
+ console.log(`[ActionExecutor] Showing suggestion: "${e.message}"`), this.currentIntervention = e, this._active = !0, (n = this.onInterventionShown) == null || n.call(this, e.goalId, e.message);
18273
18274
  const s = this.getHomeVisible();
18274
18275
  this.inlineTarget && s ? this.showCardOverlay(e.message) : this.pill && this.showInPill(e.message), this.autoDismissTimer = setTimeout(() => this.handleIgnore(), Qu);
18275
18276
  }
@@ -19388,8 +19389,8 @@ const If = 800, Af = 600 * 1e3, xf = 540 * 1e3, ur = 60 * 1e3, wf = 90 * 1e3, Tf
19388
19389
  ];
19389
19390
  class Rf {
19390
19391
  // skip observer hide for one cycle after conversation ends
19391
- constructor(e, t) {
19392
- this.stage = null, this.avatar = null, this.state = "idle", this.avatarState = "idle", this.scrollHandler = null, this.idleVideoUrl = null, this.idleImageUrl = null, this.bubbleTimer = null, this.realtimeSession = null, this.audioForwarder = null, this.anamSession = null, this.sessionResponse = null, this.domAnalyzer = null, this.toolHandler = null, this.maxDurationTimer = null, this.maxDurationWarnTimer = null, this.inactivityTimer = null, this.inactivityCloseTimer = null, this.sessionStartTime = 0, this.logger = null, this.rrwebRecorder = null, this.visionWs = null, this.externalObserver = !1, this.actionExecutor = null, this.visionContext = null, this.staffDisplayName = "Assistant", this.staffAvatarUrl = null, this.hasHadConversation = !1, this.pendingEndAfterResponse = null, this.avatarFrame = null, this.bubble = null, this.chatPill = null, this.overlayRenderer = null, this.controls = null, this.confirmationPrompt = null, this.highlightRenderer = null, this.stageBackdrop = null, this.stageEl = null, this.homePlaceholder = null, this.homeObserver = null, this.homeVisible = !0, this.homeEverSeen = !1, this.pillProtected = !1, this.paused = !1, this.config = e, this.widgetPrompts = t ?? null, this.visitorId = this.getOrCreateVisitorId();
19392
+ constructor(e, t, s) {
19393
+ this.stage = null, this.avatar = null, this.state = "idle", this.avatarState = "idle", this.scrollHandler = null, this.idleVideoUrl = null, this.idleImageUrl = null, this.bubbleTimer = null, this.realtimeSession = null, this.audioForwarder = null, this.anamSession = null, this.sessionResponse = null, this.domAnalyzer = null, this.toolHandler = null, this.maxDurationTimer = null, this.maxDurationWarnTimer = null, this.inactivityTimer = null, this.inactivityCloseTimer = null, this.sessionStartTime = 0, this.logger = null, this.rrwebRecorder = null, this.visionWs = null, this.externalObserver = !1, this.actionExecutor = null, this.visionContext = null, this.staffDisplayName = "Assistant", this.staffAvatarUrl = null, this.hasHadConversation = !1, this.pendingEndAfterResponse = null, this.avatarFrame = null, this.bubble = null, this.chatPill = null, this.overlayRenderer = null, this.controls = null, this.confirmationPrompt = null, this.highlightRenderer = null, this.stageBackdrop = null, this.stageEl = null, this.homePlaceholder = null, this.homeObserver = null, this.homeVisible = !0, this.homeEverSeen = !1, this.pillProtected = !1, this.paused = !1, this.config = e, this.widgetPrompts = t ?? null, this.evalMode = s ?? !1, this.visitorId = this.getOrCreateVisitorId();
19393
19394
  }
19394
19395
  /** Whether the widget is in inline embed mode. */
19395
19396
  get isInline() {
@@ -19498,6 +19499,14 @@ class Rf {
19498
19499
  this.staffDisplayName = e, this.staffAvatarUrl = t;
19499
19500
  }
19500
19501
  // -----------------------------------------------------------------------
19502
+ // Eval mode — write to window.__HS_EVAL_STATE__ for the eval runner
19503
+ // -----------------------------------------------------------------------
19504
+ updateEvalState(e) {
19505
+ if (!this.evalMode) return;
19506
+ const t = window.__HS_EVAL_STATE__;
19507
+ t && Object.assign(t, e);
19508
+ }
19509
+ // -----------------------------------------------------------------------
19501
19510
  // Trigger & Teaser
19502
19511
  // -----------------------------------------------------------------------
19503
19512
  setupTrigger() {
@@ -19545,16 +19554,16 @@ class Rf {
19545
19554
  // Conversation lifecycle (Issues 5-8)
19546
19555
  // -----------------------------------------------------------------------
19547
19556
  async onAvatarClick() {
19548
- var e, t, s, n, r, o, a, l, h, f, u, m;
19557
+ var e, t, s, n, r, o, a, l, h, f, u, g;
19549
19558
  if (!(this.state !== "teasing" && this.state !== "idle")) {
19550
19559
  if (this.state = "connecting", (e = this.bubble) == null || e.stop(), (t = this.bubble) == null || t.hideStatic(), (s = this.actionExecutor) == null || s.destroy(), this.actionExecutor = null, this.isInline) {
19551
19560
  (n = this.chatPill) == null || n.showConnecting();
19552
- const g = (o = (r = this.stage) == null ? void 0 : r.inlineTarget) == null ? void 0 : o.querySelector(".hs-inline-card video");
19553
- g && g.pause();
19561
+ const m = (o = (r = this.stage) == null ? void 0 : r.inlineTarget) == null ? void 0 : o.querySelector(".hs-inline-card video");
19562
+ m && m.pause();
19554
19563
  } else {
19555
19564
  (a = this.stage) != null && a.rootElement && (this.stage.rootElement.style.display = "");
19556
- const g = document.querySelector("#holostaff-widget-root video");
19557
- g && g.pause(), (l = this.bubble) == null || l.showStatic("Connecting...");
19565
+ const m = document.querySelector("#holostaff-widget-root video");
19566
+ m && m.pause(), (l = this.bubble) == null || l.showStatic("Connecting...");
19558
19567
  }
19559
19568
  console.log("[HolostaffWidget] Starting conversation...");
19560
19569
  try {
@@ -19565,9 +19574,9 @@ class Rf {
19565
19574
  staffId: this.config.staffId,
19566
19575
  staffName: this.sessionResponse.staff.name,
19567
19576
  backendUrl: this.config.backendUrl
19568
- }), await this.connectAnam(), await this.connectRealtimeApi(), this.state = "active", this.setAvatarState("listening"), this.sessionStartTime = Date.now(), (h = this.bubble) == null || h.hideStatic(), this.showControls(), this.startSessionTimers(), (f = this.visionWs) == null || f.sendConversationStarted(), (u = this.rrwebRecorder) == null || u.pause(), console.log("[HolostaffWidget] Conversation active");
19569
- } catch (g) {
19570
- console.error("[HolostaffWidget] Failed to start conversation:", g), (m = this.bubble) == null || m.hideStatic(), this.endConversation();
19577
+ }), await this.connectAnam(), await this.connectRealtimeApi(), this.state = "active", this.setAvatarState("listening"), this.sessionStartTime = Date.now(), (h = this.bubble) == null || h.hideStatic(), this.updateEvalState({ conversationStarted: !0 }), this.showControls(), this.startSessionTimers(), (f = this.visionWs) == null || f.sendConversationStarted(), (u = this.rrwebRecorder) == null || u.pause(), console.log("[HolostaffWidget] Conversation active");
19578
+ } catch (m) {
19579
+ console.error("[HolostaffWidget] Failed to start conversation:", m), (g = this.bubble) == null || g.hideStatic(), this.endConversation();
19571
19580
  }
19572
19581
  }
19573
19582
  }
@@ -19759,8 +19768,8 @@ All actions except form filling require the visitor to confirm before executing.
19759
19768
  // --- AI response done → signal end of audio turn to Anam ---
19760
19769
  case "response.done":
19761
19770
  if (console.log("[HolostaffWidget] AI response done"), (a = this.anamSession) == null || a.endSequence(), this.setAvatarState("listening"), this.extractAiTranscript(e.response), this.pendingEndAfterResponse) {
19762
- const { flag: u, reason: m } = this.pendingEndAfterResponse;
19763
- this.pendingEndAfterResponse = null, u && Ta(this.config.staffId, this.visitorId, m, this.config.backendUrl), this.endConversation();
19771
+ const { flag: u, reason: g } = this.pendingEndAfterResponse;
19772
+ this.pendingEndAfterResponse = null, u && Ta(this.config.staffId, this.visitorId, g, this.config.backendUrl), this.endConversation();
19764
19773
  } else
19765
19774
  this.resetInactivityTimer();
19766
19775
  break;
@@ -19851,10 +19860,10 @@ All actions except form filling require the visitor to confirm before executing.
19851
19860
  // End conversation
19852
19861
  // -----------------------------------------------------------------------
19853
19862
  endConversation() {
19854
- var t, s, n, r, o, a, l, h, f, u, m, g, _;
19855
- (t = this.logger) == null || t.flush(), this.logger = null, this.clearSessionTimers(), (s = this.controls) == null || s.hide(), this.controls = null, (n = this.audioForwarder) == null || n.stop(), this.audioForwarder = null, (r = this.anamSession) == null || r.close(), this.anamSession = null, (o = this.realtimeSession) == null || o.close(), this.realtimeSession = null, this.sessionResponse = null, this.avatarState = "idle", this.pendingEndAfterResponse = null, this.toolHandler = null, this.domAnalyzer = null, (a = this.highlightRenderer) == null || a.clearAll(), this.highlightRenderer = null, (l = this.confirmationPrompt) == null || l.dismiss(), this.confirmationPrompt = null, (h = this.overlayRenderer) == null || h.dismissAll(), this.overlayRenderer = null, this.avatar && this.stage && this.avatar.clearLiveVideo(this.stage.app.ticker);
19863
+ var t, s, n, r, o, a, l, h, f, u, g, m, _;
19864
+ this.updateEvalState({ conversationEnded: !0 }), (t = this.logger) == null || t.flush(), this.logger = null, this.clearSessionTimers(), (s = this.controls) == null || s.hide(), this.controls = null, (n = this.audioForwarder) == null || n.stop(), this.audioForwarder = null, (r = this.anamSession) == null || r.close(), this.anamSession = null, (o = this.realtimeSession) == null || o.close(), this.realtimeSession = null, this.sessionResponse = null, this.avatarState = "idle", this.pendingEndAfterResponse = null, this.toolHandler = null, this.domAnalyzer = null, (a = this.highlightRenderer) == null || a.clearAll(), this.highlightRenderer = null, (l = this.confirmationPrompt) == null || l.dismiss(), this.confirmationPrompt = null, (h = this.overlayRenderer) == null || h.dismissAll(), this.overlayRenderer = null, this.avatar && this.stage && this.avatar.clearLiveVideo(this.stage.app.ticker);
19856
19865
  const e = this.buildConversationSummary();
19857
- (f = this.visionWs) == null || f.sendConversationEnded(e), (u = this.rrwebRecorder) == null || u.resume(), this.hasHadConversation = !0, this.state = "idle", document.querySelectorAll('[id^="anam-avatar-wrapper"]').forEach((b) => b.remove()), document.querySelectorAll('video[id^="anam-avatar-video"]').forEach((b) => b.remove()), this.isInline ? (this.returnToHome(), this.pillProtected = !0, (m = this.chatPill) == null || m.restoreName(), (g = this.chatPill) == null || g.showNamed(), this.attachActionExecutor()) : (this.avatar && (this.avatar.container.visible = !1), (_ = this.stage) != null && _.rootElement && (this.stage.rootElement.style.display = "none"), this.showChatPill()), console.log("[HolostaffWidget] Conversation ended");
19866
+ (f = this.visionWs) == null || f.sendConversationEnded(e), (u = this.rrwebRecorder) == null || u.resume(), this.hasHadConversation = !0, this.state = "idle", document.querySelectorAll('[id^="anam-avatar-wrapper"]').forEach((v) => v.remove()), document.querySelectorAll('video[id^="anam-avatar-video"]').forEach((v) => v.remove()), this.isInline ? (this.returnToHome(), this.pillProtected = !0, (g = this.chatPill) == null || g.restoreName(), (m = this.chatPill) == null || m.showNamed(), this.attachActionExecutor()) : (this.avatar && (this.avatar.container.visible = !1), (_ = this.stage) != null && _.rootElement && (this.stage.rootElement.style.display = "none"), this.showChatPill()), console.log("[HolostaffWidget] Conversation ended");
19858
19867
  }
19859
19868
  showChatPill() {
19860
19869
  this.chatPill || (this.chatPill = new hr(), this.chatPill.init(this.staffAvatarUrl, this.idleVideoUrl, this.staffDisplayName), this.chatPill.onClick = () => this.onAvatarClick()), this.chatPill.showNamed();
@@ -19891,7 +19900,9 @@ All actions except form filling require the visitor to confirm before executing.
19891
19900
  getHomeVisible: () => this.homeVisible,
19892
19901
  inlineTarget: ((e = this.stage) == null ? void 0 : e.inlineTarget) ?? null,
19893
19902
  pill: this.chatPill
19894
- }), this.actionExecutor.onAccept = (t) => {
19903
+ }), this.actionExecutor.onInterventionShown = (t, s) => {
19904
+ this.updateEvalState({ interventionFired: !0, skillId: t, openingMessage: s });
19905
+ }, this.actionExecutor.onAccept = (t) => {
19895
19906
  console.log("[HolostaffWidget] Suggestion accepted — starting conversation with vision context"), this.visionContext = t, this.onAvatarClick();
19896
19907
  });
19897
19908
  }
@@ -19985,59 +19996,79 @@ function Df() {
19985
19996
  }
19986
19997
  try {
19987
19998
  let e = function(n, r, o, a, l) {
19988
- const h = new Rf(n, o);
19999
+ const h = new Rf(n, o, r == null ? void 0 : r.evalMode);
19989
20000
  return a && l && h.setObserver(a, l), r != null && r.idleVideoUrl ? h.setIdleVideo(r.idleVideoUrl) : r != null && r.avatarImageUrl && h.setIdleImage(r.avatarImageUrl), r && h.setStaffInfo(r.name, r.avatarImageUrl), h;
19990
20001
  };
19991
20002
  const t = ba(i);
19992
20003
  async function s() {
19993
- let n = t, r = null, o = null;
19994
- const a = Nf();
20004
+ let n = t, r = null, o = null, a = window.__HS_EVAL__;
20005
+ if (!a)
20006
+ try {
20007
+ const v = location.hash.match(/(?:^#|&)__hs_eval=([^&]+)/);
20008
+ if (v) {
20009
+ a = JSON.parse(decodeURIComponent(v[1])), window.__HS_EVAL__ = a;
20010
+ try {
20011
+ const b = location.hash.replace(/(?:^#|&)__hs_eval=[^&]+/, "").replace(/^&/, "#"), S = location.pathname + location.search + (b === "#" || b === "" ? "" : b);
20012
+ history.replaceState(null, "", S);
20013
+ } catch {
20014
+ }
20015
+ console.log("[HolostaffWidget] Eval config read from URL hash", a);
20016
+ }
20017
+ } catch {
20018
+ }
20019
+ const l = (a == null ? void 0 : a.visitorId) ?? Nf();
19995
20020
  try {
19996
- if (o = await wa(t.staffId, t.backendUrl, a), o.blocked) {
20021
+ if (o = await wa(t.staffId, t.backendUrl, l), o.blocked) {
19997
20022
  console.log("[HolostaffWidget] Visitor blocked — widget suppressed.");
19998
20023
  return;
19999
20024
  }
20000
- n = Ia(t, i, o), r = o.widgetPrompts;
20001
- } catch (_) {
20002
- if (_.name === "WidgetDisabledError") {
20025
+ n = Ia(t, i, o), r = o.widgetPrompts, o.evalMode && (window.__HS_EVAL_STATE__ = {
20026
+ interventionFired: !1,
20027
+ skillId: null,
20028
+ openingMessage: null,
20029
+ conversationStarted: !1,
20030
+ conversationEnded: !1
20031
+ }, console.log("[HolostaffWidget] Eval mode active — __HS_EVAL_STATE__ initialized"));
20032
+ } catch (v) {
20033
+ if (v.name === "WidgetDisabledError") {
20003
20034
  console.log("[HolostaffWidget] Agent is not active — widget suppressed");
20004
20035
  return;
20005
20036
  }
20006
- console.warn("[HolostaffWidget] Failed to fetch server config, using embed defaults:", _);
20037
+ console.warn("[HolostaffWidget] Failed to fetch server config, using embed defaults:", v);
20007
20038
  }
20008
- const l = Of(o == null ? void 0 : o.pagePatterns);
20009
- let h = null, f = null;
20010
- n.visionWsUrl && (h = new jo(), f = new Yo(n.visionWsUrl, {
20039
+ const h = Of(o == null ? void 0 : o.pagePatterns);
20040
+ let f = null, u = null;
20041
+ n.visionWsUrl && (f = new jo(), u = new Yo(n.visionWsUrl, {
20011
20042
  staffId: n.staffId,
20012
- visitorId: a,
20043
+ visitorId: l,
20013
20044
  pageUrl: location.href,
20014
20045
  pageTitle: document.title,
20015
- pagePatterns: l.map((_) => {
20016
- const b = { pattern: _.pattern };
20017
- return _.container && (b.container = _.container), b;
20046
+ pagePatterns: h.map((v) => {
20047
+ const b = { pattern: v.pattern };
20048
+ return v.container && (b.container = v.container), b;
20018
20049
  })
20019
- }), h.onEvent = (_) => {
20020
- f == null || f.sendRRWebEvent(_);
20021
- }, f.connect(), n.visionConsent === "required" ? console.log("[HolostaffWidget] Observer started (recording deferred — consent required)") : (h.start(), console.log("[HolostaffWidget] Observer started on all pages", { visitorId: a })));
20022
- let u = fr(location.pathname, l), m = null;
20023
- if (u) {
20024
- let _ = n;
20025
- u.container && (_ = { ...n, mode: "inline", container: u.container }), m = e(_, o, r, h, f), window.holostaffWidget = m, m.init();
20050
+ }), f.onEvent = (v) => {
20051
+ u == null || u.sendRRWebEvent(v);
20052
+ }, u.connect(), n.visionConsent === "required" ? console.log("[HolostaffWidget] Observer started (recording deferred — consent required)") : (f.start(), console.log("[HolostaffWidget] Observer started on all pages", { visitorId: l })));
20053
+ let g = fr(location.pathname, h), m = null;
20054
+ if (g) {
20055
+ let v = n;
20056
+ g.container && (v = { ...n, mode: "inline", container: g.container }), m = e(v, o, r, f, u), window.holostaffWidget = m, m.init();
20026
20057
  } else
20027
20058
  console.log("[HolostaffWidget] No matching page pattern for", location.pathname, "— presenter not loaded (observer active)");
20028
- const g = new Mf((_) => {
20029
- f == null || f.sendPageChanged(location.href, _, document.title);
20030
- const b = fr(_, l);
20059
+ const _ = new Mf((v) => {
20060
+ u == null || u.sendPageChanged(location.href, v, document.title);
20061
+ const b = fr(v, h);
20031
20062
  if (b && !m) {
20032
- console.log("[HolostaffWidget] SPA navigated to matching page:", _);
20033
- let C = n;
20034
- b.container && (C = { ...n, mode: "inline", container: b.container }), m = e(C, o, r, h, f), window.holostaffWidget = m, m.init();
20063
+ console.log("[HolostaffWidget] SPA navigated to matching page:", v);
20064
+ let S = n;
20065
+ b.container && (S = { ...n, mode: "inline", container: b.container }), m = e(S, o, r, f, u), window.holostaffWidget = m, m.init();
20035
20066
  } else if (b && m) {
20036
- const C = b.container ?? null;
20037
- C !== m.activeContainer && m.updateContainer(C), m.resume();
20067
+ const S = b.container ?? null;
20068
+ S !== m.activeContainer && m.updateContainer(S), m.resume();
20038
20069
  } else !b && m && m.pause();
20039
20070
  });
20040
- window.__holostaffSPARouter = g;
20071
+ window.__holostaffSPARouter = _;
20041
20072
  }
20042
20073
  document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => s()) : s();
20043
20074
  } catch (e) {
@@ -20109,4 +20140,4 @@ export {
20109
20140
  st as y,
20110
20141
  Gr as z
20111
20142
  };
20112
- //# sourceMappingURL=index-CBLsgHG5.js.map
20143
+ //# sourceMappingURL=index-Glf3TIbT.js.map