hanc-webrtc-widgets 2.9.6 → 2.9.7

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.
@@ -281,7 +281,7 @@ fI.elementStyles = [], fI.shadowRootOptions = { mode: "open" }, fI[rC("elementPr
281
281
  */
282
282
  const BC = globalThis, Vo = BC.trustedTypes, qr = Vo ? Vo.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, GE = "$lit$", Qg = `lit$${Math.random().toFixed(9).slice(2)}$`, ME = "?" + Qg, Wh = `<${ME}>`, Pg = document, uC = () => Pg.createComment(""), fC = (t) => t === null || typeof t != "object" && typeof t != "function", TQ = Array.isArray, Xh = (t) => TQ(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Oa = `[
283
283
  \f\r]`, OI = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Hr = /-->/g, Pr = />/g, yg = RegExp(`>|${Oa}(?:([^\\s"'>=/]+)(${Oa}*=${Oa}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Or = /'/g, Vr = /"/g, FE = /^(?:script|style|textarea|title)$/i, Zh = (t) => (A, ...e) => ({ _$litType$: t, strings: A, values: e }), fA = Zh(1), GI = Symbol.for("lit-noChange"), oe = Symbol.for("lit-nothing"), jr = /* @__PURE__ */ new WeakMap(), Jg = Pg.createTreeWalker(Pg, 129);
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Or = /'/g, Vr = /"/g, FE = /^(?:script|style|textarea|title)$/i, Zh = (t) => (A, ...e) => ({ _$litType$: t, strings: A, values: e }), fA = Zh(1), GI = Symbol.for("lit-noChange"), Ce = Symbol.for("lit-nothing"), jr = /* @__PURE__ */ new WeakMap(), Jg = Pg.createTreeWalker(Pg, 129);
285
285
  function UE(t, A) {
286
286
  if (!TQ(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
287
  return qr !== void 0 ? qr.createHTML(A) : A;
@@ -376,7 +376,7 @@ class HC {
376
376
  return ((A = this._$AM) == null ? void 0 : A._$AU) ?? this._$Cv;
377
377
  }
378
378
  constructor(A, e, i, g) {
379
- this.type = 2, this._$AH = oe, this._$AN = void 0, this._$AA = A, this._$AB = e, this._$AM = i, this.options = g, this._$Cv = (g == null ? void 0 : g.isConnected) ?? !0;
379
+ this.type = 2, this._$AH = Ce, this._$AN = void 0, this._$AA = A, this._$AB = e, this._$AM = i, this.options = g, this._$Cv = (g == null ? void 0 : g.isConnected) ?? !0;
380
380
  }
381
381
  get parentNode() {
382
382
  let A = this._$AA.parentNode;
@@ -390,7 +390,7 @@ class HC {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(A, e = this) {
393
- A = MI(this, A, e), fC(A) ? A === oe || A == null || A === "" ? (this._$AH !== oe && this._$AR(), this._$AH = oe) : A !== this._$AH && A !== GI && this._(A) : A._$litType$ !== void 0 ? this.$(A) : A.nodeType !== void 0 ? this.T(A) : Xh(A) ? this.k(A) : this._(A);
393
+ A = MI(this, A, e), fC(A) ? A === Ce || A == null || A === "" ? (this._$AH !== Ce && this._$AR(), this._$AH = Ce) : A !== this._$AH && A !== GI && this._(A) : A._$litType$ !== void 0 ? this.$(A) : A.nodeType !== void 0 ? this.T(A) : Xh(A) ? this.k(A) : this._(A);
394
394
  }
395
395
  O(A) {
396
396
  return this._$AA.parentNode.insertBefore(A, this._$AB);
@@ -399,7 +399,7 @@ class HC {
399
399
  this._$AH !== A && (this._$AR(), this._$AH = this.O(A));
400
400
  }
401
401
  _(A) {
402
- this._$AH !== oe && fC(this._$AH) ? this._$AA.nextSibling.data = A : this.T(Pg.createTextNode(A)), this._$AH = A;
402
+ this._$AH !== Ce && fC(this._$AH) ? this._$AA.nextSibling.data = A : this.T(Pg.createTextNode(A)), this._$AH = A;
403
403
  }
404
404
  $(A) {
405
405
  var I;
@@ -441,7 +441,7 @@ let ca = class {
441
441
  return this._$AM._$AU;
442
442
  }
443
443
  constructor(A, e, i, g, I) {
444
- this.type = 1, this._$AH = oe, this._$AN = void 0, this.element = A, this.name = e, this._$AM = g, this.options = I, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = oe;
444
+ this.type = 1, this._$AH = Ce, this._$AN = void 0, this.element = A, this.name = e, this._$AM = g, this.options = I, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = Ce;
445
445
  }
446
446
  _$AI(A, e = this, i, g) {
447
447
  const I = this.strings;
@@ -450,19 +450,19 @@ let ca = class {
450
450
  else {
451
451
  const o = A;
452
452
  let a, n;
453
- for (A = I[0], a = 0; a < I.length - 1; a++) n = MI(this, o[i + a], e, a), n === GI && (n = this._$AH[a]), C || (C = !fC(n) || n !== this._$AH[a]), n === oe ? A = oe : A !== oe && (A += (n ?? "") + I[a + 1]), this._$AH[a] = n;
453
+ for (A = I[0], a = 0; a < I.length - 1; a++) n = MI(this, o[i + a], e, a), n === GI && (n = this._$AH[a]), C || (C = !fC(n) || n !== this._$AH[a]), n === Ce ? A = Ce : A !== Ce && (A += (n ?? "") + I[a + 1]), this._$AH[a] = n;
454
454
  }
455
455
  C && !g && this.j(A);
456
456
  }
457
457
  j(A) {
458
- A === oe ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, A ?? "");
458
+ A === Ce ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, A ?? "");
459
459
  }
460
460
  }, Al = class extends ca {
461
461
  constructor() {
462
462
  super(...arguments), this.type = 3;
463
463
  }
464
464
  j(A) {
465
- this.element[this.name] = A === oe ? void 0 : A;
465
+ this.element[this.name] = A === Ce ? void 0 : A;
466
466
  }
467
467
  };
468
468
  class el extends ca {
@@ -470,7 +470,7 @@ class el extends ca {
470
470
  super(...arguments), this.type = 4;
471
471
  }
472
472
  j(A) {
473
- this.element.toggleAttribute(this.name, !!A && A !== oe);
473
+ this.element.toggleAttribute(this.name, !!A && A !== Ce);
474
474
  }
475
475
  }
476
476
  class tl extends ca {
@@ -478,8 +478,8 @@ class tl extends ca {
478
478
  super(A, e, i, g, I), this.type = 5;
479
479
  }
480
480
  _$AI(A, e = this) {
481
- if ((A = MI(this, A, e, 0) ?? oe) === GI) return;
482
- const i = this._$AH, g = A === oe && i !== oe || A.capture !== i.capture || A.once !== i.once || A.passive !== i.passive, I = A !== oe && (i === oe || g);
481
+ if ((A = MI(this, A, e, 0) ?? Ce) === GI) return;
482
+ const i = this._$AH, g = A === Ce && i !== Ce || A.capture !== i.capture || A.once !== i.once || A.passive !== i.passive, I = A !== Ce && (i === Ce || g);
483
483
  g && this.element.removeEventListener(this.name, this, i), I && this.element.addEventListener(this.name, this, A), this._$AH = A;
484
484
  }
485
485
  handleEvent(A) {
@@ -591,7 +591,7 @@ function O(t) {
591
591
  * Copyright 2017 Google LLC
592
592
  * SPDX-License-Identifier: BSD-3-Clause
593
593
  */
594
- function UA(t) {
594
+ function FA(t) {
595
595
  return O({ ...t, state: !0, attribute: !1 });
596
596
  }
597
597
  /**
@@ -692,12 +692,12 @@ let cl = class {
692
692
  };
693
693
  const Wa = /* @__PURE__ */ new WeakMap(), ha = nl(class extends El {
694
694
  render(t) {
695
- return oe;
695
+ return Ce;
696
696
  }
697
697
  update(t, [A]) {
698
698
  var i;
699
699
  const e = A !== this.Y;
700
- return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = A, this.ht = (i = t.options) == null ? void 0 : i.host, this.rt(this.ct = t.element)), oe;
700
+ return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = A, this.ht = (i = t.options) == null ? void 0 : i.host, this.rt(this.ct = t.element)), Ce;
701
701
  }
702
702
  rt(t) {
703
703
  if (this.isConnected || (t = void 0), typeof this.Y == "function") {
@@ -754,7 +754,7 @@ let pt = class {
754
754
  return this._locking = this._locking.then(() => e), i;
755
755
  }
756
756
  };
757
- function ve(t, A) {
757
+ function Ke(t, A) {
758
758
  if (!t)
759
759
  throw new Error(A);
760
760
  }
@@ -775,7 +775,7 @@ function vE(t) {
775
775
  const KE = Symbol("@bufbuild/protobuf/enum-type");
776
776
  function pl(t) {
777
777
  const A = t[KE];
778
- return ve(A, "missing enum type on enum object"), A;
778
+ return Ke(A, "missing enum type on enum object"), A;
779
779
  }
780
780
  function JE(t, A, e, i) {
781
781
  t[KE] = YE(A, e.map((g) => ({
@@ -1086,7 +1086,7 @@ function Sl() {
1086
1086
  }
1087
1087
  };
1088
1088
  }
1089
- const e = (g) => ve(/^-?[0-9]+$/.test(g), "int64 invalid: ".concat(g)), i = (g) => ve(/^[0-9]+$/.test(g), "uint64 invalid: ".concat(g));
1089
+ const e = (g) => Ke(/^-?[0-9]+$/.test(g), "int64 invalid: ".concat(g)), i = (g) => Ke(/^[0-9]+$/.test(g), "uint64 invalid: ".concat(g));
1090
1090
  return {
1091
1091
  zero: "0",
1092
1092
  supported: !1,
@@ -1173,10 +1173,10 @@ function PE(t, A) {
1173
1173
  return A == 0;
1174
1174
  }
1175
1175
  }
1176
- var Je;
1176
+ var Ye;
1177
1177
  (function(t) {
1178
1178
  t[t.Varint = 0] = "Varint", t[t.Bit64 = 1] = "Bit64", t[t.LengthDelimited = 2] = "LengthDelimited", t[t.StartGroup = 3] = "StartGroup", t[t.EndGroup = 4] = "EndGroup", t[t.Bit32 = 5] = "Bit32";
1179
- })(Je || (Je = {}));
1179
+ })(Ye || (Ye = {}));
1180
1180
  class Rl {
1181
1181
  constructor(A) {
1182
1182
  this.stack = [], this.textEncoder = A ?? new TextEncoder(), this.chunks = [], this.buf = [];
@@ -1357,27 +1357,27 @@ class Gl {
1357
1357
  skip(A, e) {
1358
1358
  let i = this.pos;
1359
1359
  switch (A) {
1360
- case Je.Varint:
1360
+ case Ye.Varint:
1361
1361
  for (; this.buf[this.pos++] & 128; )
1362
1362
  ;
1363
1363
  break;
1364
1364
  // eslint-disable-next-line
1365
1365
  // @ts-ignore TS7029: Fallthrough case in switch
1366
- case Je.Bit64:
1366
+ case Ye.Bit64:
1367
1367
  this.pos += 4;
1368
1368
  // eslint-disable-next-line
1369
1369
  // @ts-ignore TS7029: Fallthrough case in switch
1370
- case Je.Bit32:
1370
+ case Ye.Bit32:
1371
1371
  this.pos += 4;
1372
1372
  break;
1373
- case Je.LengthDelimited:
1373
+ case Ye.LengthDelimited:
1374
1374
  let g = this.uint32();
1375
1375
  this.pos += g;
1376
1376
  break;
1377
- case Je.StartGroup:
1377
+ case Ye.StartGroup:
1378
1378
  for (; ; ) {
1379
1379
  const [I, C] = this.tag();
1380
- if (C === Je.EndGroup) {
1380
+ if (C === Ye.EndGroup) {
1381
1381
  if (e !== void 0 && I !== e)
1382
1382
  throw new Error("invalid end group tag");
1383
1383
  break;
@@ -1639,7 +1639,7 @@ function jE(t, A) {
1639
1639
  return A.extendee.typeName === e.typeName && !!e.runtime.bin.listUnknownFields(t).find((i) => i.no == A.field.no);
1640
1640
  }
1641
1641
  function WE(t, A) {
1642
- ve(t.extendee.typeName == A.getType().typeName, "extension ".concat(t.typeName, " can only be applied to message ").concat(t.extendee.typeName));
1642
+ Ke(t.extendee.typeName == A.getType().typeName, "extension ".concat(t.typeName, " can only be applied to message ").concat(t.extendee.typeName));
1643
1643
  }
1644
1644
  function XE(t, A) {
1645
1645
  const e = t.localName;
@@ -1797,7 +1797,7 @@ function Qi(t) {
1797
1797
  function tB(t, A, e, i, g) {
1798
1798
  let I = e.localName;
1799
1799
  if (e.repeated) {
1800
- if (ve(e.kind != "map"), A === null)
1800
+ if (Ke(e.kind != "map"), A === null)
1801
1801
  return;
1802
1802
  if (!Array.isArray(A))
1803
1803
  throw new Error("cannot decode field ".concat(g.typeName, ".").concat(e.name, " from JSON: ").concat(Qi(A)));
@@ -1995,7 +1995,7 @@ function ql(t) {
1995
1995
  }
1996
1996
  function iB(t, A, e) {
1997
1997
  if (t.kind == "map") {
1998
- ve(typeof A == "object" && A != null);
1998
+ Ke(typeof A == "object" && A != null);
1999
1999
  const i = {}, g = Object.entries(A);
2000
2000
  switch (t.V.kind) {
2001
2001
  case "scalar":
@@ -2015,7 +2015,7 @@ function iB(t, A, e) {
2015
2015
  return e.emitDefaultValues || g.length > 0 ? i : void 0;
2016
2016
  }
2017
2017
  if (t.repeated) {
2018
- ve(Array.isArray(A));
2018
+ Ke(Array.isArray(A));
2019
2019
  const i = [];
2020
2020
  switch (t.kind) {
2021
2021
  case "scalar":
@@ -2044,7 +2044,7 @@ function iB(t, A, e) {
2044
2044
  }
2045
2045
  function za(t, A, e) {
2046
2046
  var i;
2047
- if (ve(typeof A == "number"), t.typeName == "google.protobuf.NullValue")
2047
+ if (Ke(typeof A == "number"), t.typeName == "google.protobuf.NullValue")
2048
2048
  return null;
2049
2049
  if (e)
2050
2050
  return A;
@@ -2059,30 +2059,30 @@ function bo(t, A) {
2059
2059
  case AA.SINT32:
2060
2060
  case AA.FIXED32:
2061
2061
  case AA.UINT32:
2062
- return ve(typeof A == "number"), A;
2062
+ return Ke(typeof A == "number"), A;
2063
2063
  // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity".
2064
2064
  // Either numbers or strings are accepted. Exponent notation is also accepted.
2065
2065
  case AA.FLOAT:
2066
2066
  // assertFloat32(value);
2067
2067
  case AA.DOUBLE:
2068
- return ve(typeof A == "number"), Number.isNaN(A) ? "NaN" : A === Number.POSITIVE_INFINITY ? "Infinity" : A === Number.NEGATIVE_INFINITY ? "-Infinity" : A;
2068
+ return Ke(typeof A == "number"), Number.isNaN(A) ? "NaN" : A === Number.POSITIVE_INFINITY ? "Infinity" : A === Number.NEGATIVE_INFINITY ? "-Infinity" : A;
2069
2069
  // string:
2070
2070
  case AA.STRING:
2071
- return ve(typeof A == "string"), A;
2071
+ return Ke(typeof A == "string"), A;
2072
2072
  // bool:
2073
2073
  case AA.BOOL:
2074
- return ve(typeof A == "boolean"), A;
2074
+ return Ke(typeof A == "boolean"), A;
2075
2075
  // JSON value will be a decimal string. Either numbers or strings are accepted.
2076
2076
  case AA.UINT64:
2077
2077
  case AA.FIXED64:
2078
2078
  case AA.INT64:
2079
2079
  case AA.SFIXED64:
2080
2080
  case AA.SINT64:
2081
- return ve(typeof A == "bigint" || typeof A == "string" || typeof A == "number"), A.toString();
2081
+ return Ke(typeof A == "bigint" || typeof A == "string" || typeof A == "number"), A.toString();
2082
2082
  // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.
2083
2083
  // Either standard or URL-safe base64 encoding with/without paddings are accepted.
2084
2084
  case AA.BYTES:
2085
- return ve(A instanceof Uint8Array), VE.enc(A);
2085
+ return Ke(A instanceof Uint8Array), VE.enc(A);
2086
2086
  }
2087
2087
  }
2088
2088
  const iI = Symbol("@bufbuild/protobuf/unknown-fields"), gB = {
@@ -2126,7 +2126,7 @@ function Ol() {
2126
2126
  readMessage(t, A, e, i, g) {
2127
2127
  const I = t.getType(), C = g ? A.len : A.pos + e;
2128
2128
  let o, a;
2129
- for (; A.pos < C && ([o, a] = A.tag(), !(g === !0 && a == Je.EndGroup)); ) {
2129
+ for (; A.pos < C && ([o, a] = A.tag(), !(g === !0 && a == Ye.EndGroup)); ) {
2130
2130
  const n = I.fields.find(o);
2131
2131
  if (!n) {
2132
2132
  const s = A.skip(a, o);
@@ -2136,7 +2136,7 @@ function Ol() {
2136
2136
  CB(t, A, n, a, i);
2137
2137
  }
2138
2138
  if (g && // eslint-disable-line @typescript-eslint/strict-boolean-expressions
2139
- (a != Je.EndGroup || o !== e))
2139
+ (a != Ye.EndGroup || o !== e))
2140
2140
  throw new Error("invalid end group tag");
2141
2141
  },
2142
2142
  readField: CB,
@@ -2170,7 +2170,7 @@ function CB(t, A, e, i, g) {
2170
2170
  let a = Xo;
2171
2171
  if (e.kind == "scalar" && e.L > 0 && (a = jl), I) {
2172
2172
  let r = t[C];
2173
- if (i == Je.LengthDelimited && o != AA.STRING && o != AA.BYTES) {
2173
+ if (i == Ye.LengthDelimited && o != AA.STRING && o != AA.BYTES) {
2174
2174
  let h = A.uint32() + A.pos;
2175
2175
  for (; A.pos < h; )
2176
2176
  r.push(a(A, o));
@@ -2277,14 +2277,14 @@ function Xo(t, A) {
2277
2277
  }
2278
2278
  }
2279
2279
  function oB(t, A, e, i) {
2280
- ve(A !== void 0);
2280
+ Ke(A !== void 0);
2281
2281
  const g = t.repeated;
2282
2282
  switch (t.kind) {
2283
2283
  case "scalar":
2284
2284
  case "enum":
2285
2285
  let I = t.kind == "enum" ? AA.INT32 : t.T;
2286
2286
  if (g)
2287
- if (ve(Array.isArray(A)), t.packed)
2287
+ if (Ke(Array.isArray(A)), t.packed)
2288
2288
  Xl(e, I, t.no, A);
2289
2289
  else
2290
2290
  for (const C of A)
@@ -2294,21 +2294,21 @@ function oB(t, A, e, i) {
2294
2294
  break;
2295
2295
  case "message":
2296
2296
  if (g) {
2297
- ve(Array.isArray(A));
2297
+ Ke(Array.isArray(A));
2298
2298
  for (const C of A)
2299
2299
  aB(e, i, t, C);
2300
2300
  } else
2301
2301
  aB(e, i, t, A);
2302
2302
  break;
2303
2303
  case "map":
2304
- ve(typeof A == "object" && A != null);
2304
+ Ke(typeof A == "object" && A != null);
2305
2305
  for (const [C, o] of Object.entries(A))
2306
2306
  Wl(e, i, t, C, o);
2307
2307
  break;
2308
2308
  }
2309
2309
  }
2310
2310
  function Wl(t, A, e, i, g) {
2311
- t.tag(e.no, Je.LengthDelimited), t.fork();
2311
+ t.tag(e.no, Ye.LengthDelimited), t.fork();
2312
2312
  let I = i;
2313
2313
  switch (e.K) {
2314
2314
  case AA.INT32:
@@ -2319,7 +2319,7 @@ function Wl(t, A, e, i, g) {
2319
2319
  I = Number.parseInt(i);
2320
2320
  break;
2321
2321
  case AA.BOOL:
2322
- ve(i == "true" || i == "false"), I = i == "true";
2322
+ Ke(i == "true" || i == "false"), I = i == "true";
2323
2323
  break;
2324
2324
  }
2325
2325
  switch (dC(t, e.K, 1, I), e.V.kind) {
@@ -2330,45 +2330,45 @@ function Wl(t, A, e, i, g) {
2330
2330
  dC(t, AA.INT32, 2, g);
2331
2331
  break;
2332
2332
  case "message":
2333
- ve(g !== void 0), t.tag(2, Je.LengthDelimited).bytes(g.toBinary(A));
2333
+ Ke(g !== void 0), t.tag(2, Ye.LengthDelimited).bytes(g.toBinary(A));
2334
2334
  break;
2335
2335
  }
2336
2336
  t.join();
2337
2337
  }
2338
2338
  function aB(t, A, e, i) {
2339
2339
  const g = ZE(e.T, i);
2340
- e.delimited ? t.tag(e.no, Je.StartGroup).raw(g.toBinary(A)).tag(e.no, Je.EndGroup) : t.tag(e.no, Je.LengthDelimited).bytes(g.toBinary(A));
2340
+ e.delimited ? t.tag(e.no, Ye.StartGroup).raw(g.toBinary(A)).tag(e.no, Ye.EndGroup) : t.tag(e.no, Ye.LengthDelimited).bytes(g.toBinary(A));
2341
2341
  }
2342
2342
  function dC(t, A, e, i) {
2343
- ve(i !== void 0);
2343
+ Ke(i !== void 0);
2344
2344
  let [g, I] = zE(A);
2345
2345
  t.tag(e, g)[I](i);
2346
2346
  }
2347
2347
  function Xl(t, A, e, i) {
2348
2348
  if (!i.length)
2349
2349
  return;
2350
- t.tag(e, Je.LengthDelimited).fork();
2350
+ t.tag(e, Ye.LengthDelimited).fork();
2351
2351
  let [, g] = zE(A);
2352
2352
  for (let I = 0; I < i.length; I++)
2353
2353
  t[g](i[I]);
2354
2354
  t.join();
2355
2355
  }
2356
2356
  function zE(t) {
2357
- let A = Je.Varint;
2357
+ let A = Ye.Varint;
2358
2358
  switch (t) {
2359
2359
  case AA.BYTES:
2360
2360
  case AA.STRING:
2361
- A = Je.LengthDelimited;
2361
+ A = Ye.LengthDelimited;
2362
2362
  break;
2363
2363
  case AA.DOUBLE:
2364
2364
  case AA.FIXED64:
2365
2365
  case AA.SFIXED64:
2366
- A = Je.Bit64;
2366
+ A = Ye.Bit64;
2367
2367
  break;
2368
2368
  case AA.FIXED32:
2369
2369
  case AA.SFIXED32:
2370
2370
  case AA.FLOAT:
2371
- A = Je.Bit32;
2371
+ A = Ye.Bit32;
2372
2372
  break;
2373
2373
  }
2374
2374
  const e = AA[t].toLowerCase();
@@ -2648,7 +2648,7 @@ class Cx {
2648
2648
  this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.req = !1, this.default = void 0, this.fields = [], this.name = A, this.localName = Ax(A);
2649
2649
  }
2650
2650
  addField(A) {
2651
- ve(A.oneof === this, "field ".concat(A.name, " not one of ").concat(this.name)), this.fields.push(A);
2651
+ Ke(A.oneof === this, "field ".concat(A.name, " not one of ").concat(this.name)), this.fields.push(A);
2652
2652
  }
2653
2653
  findField(A) {
2654
2654
  if (!this._lookup) {
@@ -7455,7 +7455,7 @@ class Qu extends $i {
7455
7455
  super(10, A ?? "unsupported server"), this.name = "UnsupportedServer";
7456
7456
  }
7457
7457
  }
7458
- class We extends $i {
7458
+ class Xe extends $i {
7459
7459
  constructor(A) {
7460
7460
  super(12, A ?? "unexpected connection state"), this.name = "UnexpectedConnectionState";
7461
7461
  }
@@ -10126,7 +10126,7 @@ class JB extends mi.EventEmitter {
10126
10126
  }
10127
10127
  addTrack(A) {
10128
10128
  if (!this._pc)
10129
- throw new We("PC closed, cannot add track");
10129
+ throw new Xe("PC closed, cannot add track");
10130
10130
  return this._pc.addTrack(A);
10131
10131
  }
10132
10132
  setTrackCodecBitrate(A) {
@@ -10135,7 +10135,7 @@ class JB extends mi.EventEmitter {
10135
10135
  setConfiguration(A) {
10136
10136
  var e;
10137
10137
  if (!this._pc)
10138
- throw new We("PC closed, cannot configure");
10138
+ throw new Xe("PC closed, cannot configure");
10139
10139
  return (e = this._pc) === null || e === void 0 ? void 0 : e.setConfiguration(A);
10140
10140
  }
10141
10141
  canRemoveTrack() {
@@ -10314,10 +10314,10 @@ const bs = "vp8", nf = {
10314
10314
  peerConnectionTimeout: 15e3,
10315
10315
  websocketTimeout: 15e3
10316
10316
  };
10317
- var Le;
10317
+ var ve;
10318
10318
  (function(t) {
10319
10319
  t[t.NEW = 0] = "NEW", t[t.CONNECTING = 1] = "CONNECTING", t[t.CONNECTED = 2] = "CONNECTED", t[t.FAILED = 3] = "FAILED", t[t.CLOSING = 4] = "CLOSING", t[t.CLOSED = 5] = "CLOSED";
10320
- })(Le || (Le = {}));
10320
+ })(ve || (ve = {}));
10321
10321
  class Qf {
10322
10322
  get needsPublisher() {
10323
10323
  return this.isPublisherConnectionRequired;
@@ -10333,7 +10333,7 @@ class Qf {
10333
10333
  this.peerConnectionTimeout = gr.peerConnectionTimeout, this.log = ie, this.updateState = () => {
10334
10334
  var I;
10335
10335
  const C = this.state, o = this.requiredTransports.map((a) => a.getConnectionState());
10336
- o.every((a) => a === "connected") ? this.state = Le.CONNECTED : o.some((a) => a === "failed") ? this.state = Le.FAILED : o.some((a) => a === "connecting") ? this.state = Le.CONNECTING : o.every((a) => a === "closed") ? this.state = Le.CLOSED : o.some((a) => a === "closed") ? this.state = Le.CLOSING : o.every((a) => a === "new") && (this.state = Le.NEW), C !== this.state && (this.log.debug("pc state change: from ".concat(Le[C], " to ").concat(Le[this.state]), this.logContext), (I = this.onStateChange) === null || I === void 0 || I.call(this, this.state, this.publisher.getConnectionState(), this.subscriber.getConnectionState()));
10336
+ o.every((a) => a === "connected") ? this.state = ve.CONNECTED : o.some((a) => a === "failed") ? this.state = ve.FAILED : o.some((a) => a === "connecting") ? this.state = ve.CONNECTING : o.every((a) => a === "closed") ? this.state = ve.CLOSED : o.some((a) => a === "closed") ? this.state = ve.CLOSING : o.every((a) => a === "new") && (this.state = ve.NEW), C !== this.state && (this.log.debug("pc state change: from ".concat(ve[C], " to ").concat(ve[this.state]), this.logContext), (I = this.onStateChange) === null || I === void 0 || I.call(this, this.state, this.publisher.getConnectionState(), this.subscriber.getConnectionState()));
10337
10337
  }, this.log = Vi((g = i.loggerName) !== null && g !== void 0 ? g : gi.PCManager), this.loggerOptions = i, this.isPublisherConnectionRequired = !e, this.isSubscriberConnectionRequired = e, this.publisher = new JB(A, i), this.subscriber = new JB(A, i), this.publisher.onConnectionStateChange = this.updateState, this.subscriber.onConnectionStateChange = this.updateState, this.publisher.onIceConnectionStateChange = this.updateState, this.subscriber.onIceConnectionStateChange = this.updateState, this.publisher.onSignalingStatechange = this.updateState, this.subscriber.onSignalingStatechange = this.updateState, this.publisher.onIceCandidate = (I) => {
10338
10338
  var C;
10339
10339
  (C = this.onIceCandidate) === null || C === void 0 || C.call(this, I, Zt.PUBLISHER);
@@ -10349,7 +10349,7 @@ class Qf {
10349
10349
  }, this.publisher.onOffer = (I, C) => {
10350
10350
  var o;
10351
10351
  (o = this.onPublisherOffer) === null || o === void 0 || o.call(this, I, C);
10352
- }, this.state = Le.NEW, this.connectionLock = new pt(), this.remoteOfferLock = new pt();
10352
+ }, this.state = ve.NEW, this.connectionLock = new pt(), this.remoteOfferLock = new pt();
10353
10353
  }
10354
10354
  get logContext() {
10355
10355
  var A, e;
@@ -10480,7 +10480,7 @@ class Qf {
10480
10480
  const Q = It.setTimeout(() => {
10481
10481
  g == null || g.signal.removeEventListener("abort", s), n(new ye("could not establish pc connection", ae.InternalError));
10482
10482
  }, C);
10483
- for (; this.state !== Le.CONNECTED; )
10483
+ for (; this.state !== ve.CONNECTED; )
10484
10484
  if (yield wt(50), g != null && g.signal.aborted) {
10485
10485
  n(new ye("room connection has been cancelled", ae.Cancelled));
10486
10486
  return;
@@ -10491,7 +10491,7 @@ class Qf {
10491
10491
  });
10492
10492
  }
10493
10493
  }
10494
- class Ke extends Error {
10494
+ class Je extends Error {
10495
10495
  /**
10496
10496
  * Creates an error object with the given code and message, plus an optional data payload.
10497
10497
  *
@@ -10500,13 +10500,13 @@ class Ke extends Error {
10500
10500
  * Error codes 1001-1999 are reserved for built-in errors (see RpcError.ErrorCode for their meanings).
10501
10501
  */
10502
10502
  constructor(A, e, i) {
10503
- super(e), this.code = A, this.message = qB(e, Ke.MAX_MESSAGE_BYTES), this.data = i ? qB(i, Ke.MAX_DATA_BYTES) : void 0;
10503
+ super(e), this.code = A, this.message = qB(e, Je.MAX_MESSAGE_BYTES), this.data = i ? qB(i, Je.MAX_DATA_BYTES) : void 0;
10504
10504
  }
10505
10505
  /**
10506
10506
  * @internal
10507
10507
  */
10508
10508
  static fromProto(A) {
10509
- return new Ke(A.code, A.message, A.data);
10509
+ return new Je(A.code, A.message, A.data);
10510
10510
  }
10511
10511
  /**
10512
10512
  * @internal
@@ -10524,12 +10524,12 @@ class Ke extends Error {
10524
10524
  * @internal
10525
10525
  */
10526
10526
  static builtIn(A, e) {
10527
- return new Ke(Ke.ErrorCode[A], Ke.ErrorMessage[A], e);
10527
+ return new Je(Je.ErrorCode[A], Je.ErrorMessage[A], e);
10528
10528
  }
10529
10529
  }
10530
- Ke.MAX_MESSAGE_BYTES = 256;
10531
- Ke.MAX_DATA_BYTES = 15360;
10532
- Ke.ErrorCode = {
10530
+ Je.MAX_MESSAGE_BYTES = 256;
10531
+ Je.MAX_DATA_BYTES = 15360;
10532
+ Je.ErrorCode = {
10533
10533
  APPLICATION_ERROR: 1500,
10534
10534
  CONNECTION_TIMEOUT: 1501,
10535
10535
  RESPONSE_TIMEOUT: 1502,
@@ -10542,7 +10542,7 @@ Ke.ErrorCode = {
10542
10542
  UNSUPPORTED_SERVER: 1403,
10543
10543
  UNSUPPORTED_VERSION: 1404
10544
10544
  };
10545
- Ke.ErrorMessage = {
10545
+ Je.ErrorMessage = {
10546
10546
  APPLICATION_ERROR: "Application error in method handler",
10547
10547
  CONNECTION_TIMEOUT: "Connection timeout",
10548
10548
  RESPONSE_TIMEOUT: "Response timeout",
@@ -12044,7 +12044,7 @@ class Rf extends mi.EventEmitter {
12044
12044
  configure(A) {
12045
12045
  return k(this, void 0, void 0, function* () {
12046
12046
  var e, i;
12047
- if (this.pcManager && this.pcManager.currentState !== Le.NEW)
12047
+ if (this.pcManager && this.pcManager.currentState !== ve.NEW)
12048
12048
  return;
12049
12049
  this.participantSid = (e = A.participant) === null || e === void 0 ? void 0 : e.sid;
12050
12050
  const g = this.makeRTCConfiguration(A);
@@ -12053,11 +12053,11 @@ class Rf extends mi.EventEmitter {
12053
12053
  }, this.pcManager.onPublisherOffer = (I, C) => {
12054
12054
  this.client.sendOffer(I, C);
12055
12055
  }, this.pcManager.onDataChannel = this.handleDataChannel, this.pcManager.onStateChange = (I, C, o) => k(this, void 0, void 0, function* () {
12056
- if (this.log.debug("primary PC state changed ".concat(I), this.logContext), ["closed", "disconnected", "failed"].includes(C) && (this.publisherConnectionPromise = void 0), I === Le.CONNECTED) {
12056
+ if (this.log.debug("primary PC state changed ".concat(I), this.logContext), ["closed", "disconnected", "failed"].includes(C) && (this.publisherConnectionPromise = void 0), I === ve.CONNECTED) {
12057
12057
  const s = this.pcState === Vt.New;
12058
12058
  this.pcState = Vt.Connected, s && this.emit(nA.Connected, A);
12059
- } else I === Le.FAILED && this.pcState === Vt.Connected && (this.pcState = Vt.Disconnected, this.handleDisconnect("peerconnection failed", o === "failed" ? gI.RR_SUBSCRIBER_FAILED : gI.RR_PUBLISHER_FAILED));
12060
- const a = this.client.isDisconnected || this.client.currentState === Re.RECONNECTING, n = [Le.FAILED, Le.CLOSING, Le.CLOSED].includes(I);
12059
+ } else I === ve.FAILED && this.pcState === Vt.Connected && (this.pcState = Vt.Disconnected, this.handleDisconnect("peerconnection failed", o === "failed" ? gI.RR_SUBSCRIBER_FAILED : gI.RR_PUBLISHER_FAILED));
12060
+ const a = this.client.isDisconnected || this.client.currentState === Re.RECONNECTING, n = [ve.FAILED, ve.CLOSING, ve.CLOSED].includes(I);
12061
12061
  a && n && !this._isClosed && this.emit(nA.Offline);
12062
12062
  }), this.pcManager.onTrack = (I) => {
12063
12063
  this.emit(nA.MediaTrackAdded, I.track, I.streams[0], I.receiver);
@@ -12152,7 +12152,7 @@ class Rf extends mi.EventEmitter {
12152
12152
  return yield this.createTransceiverRTCRtpSender(A, e, i);
12153
12153
  if (fs())
12154
12154
  return this.log.warn("using add-track fallback", this.logContext), yield this.createRTCRtpSender(A.mediaStreamTrack);
12155
- throw new We("Required webRTC APIs not supported on this device");
12155
+ throw new Xe("Required webRTC APIs not supported on this device");
12156
12156
  });
12157
12157
  }
12158
12158
  createSimulcastSender(A, e, i, g) {
@@ -12161,13 +12161,13 @@ class Rf extends mi.EventEmitter {
12161
12161
  return this.createSimulcastTransceiverSender(A, e, i, g);
12162
12162
  if (fs())
12163
12163
  return this.log.debug("using add-track fallback", this.logContext), this.createRTCRtpSender(A.mediaStreamTrack);
12164
- throw new We("Cannot stream on this device");
12164
+ throw new Xe("Cannot stream on this device");
12165
12165
  });
12166
12166
  }
12167
12167
  createTransceiverRTCRtpSender(A, e, i) {
12168
12168
  return k(this, void 0, void 0, function* () {
12169
12169
  if (!this.pcManager)
12170
- throw new We("publisher is closed");
12170
+ throw new Xe("publisher is closed");
12171
12171
  const g = [];
12172
12172
  A.mediaStream && g.push(A.mediaStream), Dg(A) && (A.codec = e.videoCodec);
12173
12173
  const I = {
@@ -12180,7 +12180,7 @@ class Rf extends mi.EventEmitter {
12180
12180
  createSimulcastTransceiverSender(A, e, i, g) {
12181
12181
  return k(this, void 0, void 0, function* () {
12182
12182
  if (!this.pcManager)
12183
- throw new We("publisher is closed");
12183
+ throw new Xe("publisher is closed");
12184
12184
  const I = {
12185
12185
  direction: "sendonly"
12186
12186
  };
@@ -12193,7 +12193,7 @@ class Rf extends mi.EventEmitter {
12193
12193
  createRTCRtpSender(A) {
12194
12194
  return k(this, void 0, void 0, function* () {
12195
12195
  if (!this.pcManager)
12196
- throw new We("publisher is closed");
12196
+ throw new Xe("publisher is closed");
12197
12197
  return this.pcManager.addPublisherTrack(A);
12198
12198
  });
12199
12199
  }
@@ -12207,13 +12207,13 @@ class Rf extends mi.EventEmitter {
12207
12207
  }
12208
12208
  (((e = this.clientConfiguration) === null || e === void 0 ? void 0 : e.resumeConnection) === _C.DISABLED || // signaling state could change to closed due to hardware sleep
12209
12209
  // those connections cannot be resumed
12210
- ((g = (i = this.pcManager) === null || i === void 0 ? void 0 : i.currentState) !== null && g !== void 0 ? g : Le.NEW) === Le.NEW) && (this.fullReconnectOnNext = !0);
12210
+ ((g = (i = this.pcManager) === null || i === void 0 ? void 0 : i.currentState) !== null && g !== void 0 ? g : ve.NEW) === ve.NEW) && (this.fullReconnectOnNext = !0);
12211
12211
  try {
12212
12212
  this.attemptingReconnect = !0, this.fullReconnectOnNext ? yield this.restartConnection() : yield this.resumeConnection(A), this.clearPendingReconnect(), this.fullReconnectOnNext = !1;
12213
12213
  } catch (I) {
12214
12214
  this.reconnectAttempts += 1;
12215
12215
  let C = !0;
12216
- I instanceof We ? (this.log.debug("received unrecoverable error", Object.assign(Object.assign({}, this.logContext), {
12216
+ I instanceof Xe ? (this.log.debug("received unrecoverable error", Object.assign(Object.assign({}, this.logContext), {
12217
12217
  error: I
12218
12218
  })), C = !1) : I instanceof II || (this.fullReconnectOnNext = !0), C ? this.handleDisconnect("reconnect", gI.RR_UNKNOWN) : (this.log.info("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(Date.now() - this.reconnectStart, "ms. giving up"), this.logContext), this.emit(nA.Disconnected), yield this.close());
12219
12219
  } finally {
@@ -12237,7 +12237,7 @@ class Rf extends mi.EventEmitter {
12237
12237
  var e, i, g;
12238
12238
  try {
12239
12239
  if (!this.url || !this.token)
12240
- throw new We("could not reconnect, url or token not saved");
12240
+ throw new Xe("could not reconnect, url or token not saved");
12241
12241
  this.log.info("reconnecting, attempt: ".concat(this.reconnectAttempts), this.logContext), this.emit(nA.Restarting), this.client.isDisconnected || (yield this.client.sendLeave()), yield this.cleanupPeerConnections(), yield this.cleanupClient();
12242
12242
  let I;
12243
12243
  try {
@@ -12245,7 +12245,7 @@ class Rf extends mi.EventEmitter {
12245
12245
  throw this.log.warn("attempted connection restart, without signal options present", this.logContext), new II();
12246
12246
  I = yield this.join(A ?? this.url, this.token, this.signalOpts);
12247
12247
  } catch (C) {
12248
- throw C instanceof ye && C.reason === ae.NotAllowed ? new We("could not reconnect, token might be expired") : new II();
12248
+ throw C instanceof ye && C.reason === ae.NotAllowed ? new Xe("could not reconnect, token might be expired") : new II();
12249
12249
  }
12250
12250
  if (this.shouldFailNext)
12251
12251
  throw this.shouldFailNext = !1, new Error("simulated failure");
@@ -12266,9 +12266,9 @@ class Rf extends mi.EventEmitter {
12266
12266
  return k(this, void 0, void 0, function* () {
12267
12267
  var e;
12268
12268
  if (!this.url || !this.token)
12269
- throw new We("could not reconnect, url or token not saved");
12269
+ throw new Xe("could not reconnect, url or token not saved");
12270
12270
  if (!this.pcManager)
12271
- throw new We("publisher and subscriber connections unset");
12271
+ throw new Xe("publisher and subscriber connections unset");
12272
12272
  this.log.info("resuming signal connection, attempt ".concat(this.reconnectAttempts), this.logContext), this.emit(nA.Resuming);
12273
12273
  let i;
12274
12274
  try {
@@ -12277,7 +12277,7 @@ class Rf extends mi.EventEmitter {
12277
12277
  let I = "";
12278
12278
  throw g instanceof Error && (I = g.message, this.log.error(g.message, Object.assign(Object.assign({}, this.logContext), {
12279
12279
  error: g
12280
- }))), g instanceof ye && g.reason === ae.NotAllowed ? new We("could not reconnect, token might be expired") : g instanceof ye && g.reason === ae.LeaveRequest ? g : new II(I);
12280
+ }))), g instanceof ye && g.reason === ae.NotAllowed ? new Xe("could not reconnect, token might be expired") : g instanceof ye && g.reason === ae.LeaveRequest ? g : new II(I);
12281
12281
  }
12282
12282
  if (this.emit(nA.SignalResumed), i) {
12283
12283
  const g = this.makeRTCConfiguration(i);
@@ -12294,7 +12294,7 @@ class Rf extends mi.EventEmitter {
12294
12294
  waitForPCInitialConnection(A, e) {
12295
12295
  return k(this, void 0, void 0, function* () {
12296
12296
  if (!this.pcManager)
12297
- throw new We("PC manager is closed");
12297
+ throw new Xe("PC manager is closed");
12298
12298
  yield this.pcManager.ensurePCTransportConnection(e, A);
12299
12299
  });
12300
12300
  }
@@ -12303,7 +12303,7 @@ class Rf extends mi.EventEmitter {
12303
12303
  this.pcState = Vt.Reconnecting, this.log.debug("waiting for peer connection to reconnect", this.logContext);
12304
12304
  try {
12305
12305
  if (yield wt(kf), !this.pcManager)
12306
- throw new We("PC manager is closed");
12306
+ throw new Xe("PC manager is closed");
12307
12307
  yield this.pcManager.ensurePCTransportConnection(void 0, this.peerConnectionTimeout), this.pcState = Vt.Connected;
12308
12308
  } catch (A) {
12309
12309
  throw this.pcState = Vt.Disconnected, new ye("could not establish PC connection, ".concat(A.message), ae.InternalError);
@@ -12396,7 +12396,7 @@ class Rf extends mi.EventEmitter {
12396
12396
  return function* () {
12397
12397
  var I;
12398
12398
  if (!i.pcManager)
12399
- throw new We("PC manager is closed");
12399
+ throw new Xe("PC manager is closed");
12400
12400
  const C = g ? i.pcManager.subscriber : i.pcManager.publisher, o = g ? "Subscriber" : "Publisher";
12401
12401
  if (!C)
12402
12402
  throw new ye("".concat(o, " connection not set"), ae.InternalError);
@@ -12422,7 +12422,7 @@ class Rf extends mi.EventEmitter {
12422
12422
  }
12423
12423
  /* @internal */
12424
12424
  verifyTransport() {
12425
- return !(!this.pcManager || this.pcManager.currentState !== Le.CONNECTED || !this.client.ws || this.client.ws.readyState === WebSocket.CLOSED);
12425
+ return !(!this.pcManager || this.pcManager.currentState !== ve.CONNECTED || !this.client.ws || this.client.ws.readyState === WebSocket.CLOSED);
12426
12426
  }
12427
12427
  /** @internal */
12428
12428
  negotiate() {
@@ -14033,7 +14033,7 @@ class Wf extends pd {
14033
14033
  switch (o.value.case) {
14034
14034
  case "rpcResponse":
14035
14035
  let a = o.value.value, n = null, s = null;
14036
- a.value.case === "payload" ? n = a.value.value : a.value.case === "error" && (s = Ke.fromProto(a.value.value)), this.handleIncomingRpcResponse(a.requestId, n, s);
14036
+ a.value.case === "payload" ? n = a.value.value : a.value.case === "error" && (s = Je.fromProto(a.value.value)), this.handleIncomingRpcResponse(a.requestId, n, s);
14037
14037
  break;
14038
14038
  case "rpcAck":
14039
14039
  let Q = o.value.value;
@@ -14592,11 +14592,11 @@ class Wf extends pd {
14592
14592
  networkPriority: (B = (r = e.audioPreset) === null || r === void 0 ? void 0 : r.priority) !== null && B !== void 0 ? B : "high"
14593
14593
  }]);
14594
14594
  if (!this.engine || this.engine.isClosed)
14595
- throw new We("cannot publish track when not connected");
14595
+ throw new Xe("cannot publish track when not connected");
14596
14596
  const D = () => k(this, void 0, void 0, function* () {
14597
14597
  var l, p, N;
14598
14598
  if (!this.engine.pcManager)
14599
- throw new We("pcManager is not ready");
14599
+ throw new Xe("pcManager is not ready");
14600
14600
  if (A.sender = yield this.engine.createSender(A, e, x), this.emit(aA.LocalSenderCreated, A.sender, A), eg(A) && ((l = e.degradationPreference) !== null && l !== void 0 || (e.degradationPreference = bf(A)), A.setDegradationPreference(e.degradationPreference)), x)
14601
14601
  if (jg() && A.kind === $.Kind.Audio) {
14602
14602
  let F;
@@ -14751,7 +14751,7 @@ class Wf extends pd {
14751
14751
  }]
14752
14752
  });
14753
14753
  if (n.layers = VB(n.width, n.height, o), !this.engine || this.engine.isClosed)
14754
- throw new We("cannot publish track when not connected");
14754
+ throw new Xe("cannot publish track when not connected");
14755
14755
  const s = () => k(this, void 0, void 0, function* () {
14756
14756
  yield this.engine.createSimulcastSender(A, a, C, o), yield this.engine.negotiate();
14757
14757
  }), r = (yield Promise.all([this.engine.addTrack(n), s()]))[0];
@@ -14776,7 +14776,7 @@ class Wf extends pd {
14776
14776
  A = I.track, A.off(CA.Muted, this.onTrackMuted), A.off(CA.Unmuted, this.onTrackUnmuted), A.off(CA.Ended, this.handleTrackEnded), A.off(CA.UpstreamPaused, this.onTrackUpstreamPaused), A.off(CA.UpstreamResumed, this.onTrackUpstreamResumed), A.off(CA.AudioTrackFeatureUpdate, this.onTrackFeatureUpdate), e === void 0 && (e = (g = (i = this.roomOptions) === null || i === void 0 ? void 0 : i.stopLocalTrackOnUnpublish) !== null && g !== void 0 ? g : !0), e ? A.stop() : A.stopMonitor();
14777
14777
  let o = !1;
14778
14778
  const a = A.sender;
14779
- if (A.sender = void 0, this.engine.pcManager && this.engine.pcManager.currentState < Le.FAILED && a)
14779
+ if (A.sender = void 0, this.engine.pcManager && this.engine.pcManager.currentState < ve.FAILED && a)
14780
14780
  try {
14781
14781
  for (const n of this.engine.pcManager.publisher.getTransceivers())
14782
14782
  n.sender === a && (n.direction = "inactive", o = !0);
@@ -14983,17 +14983,17 @@ class Wf extends pd {
14983
14983
  return new Promise((n, s) => k(i, void 0, void 0, function* () {
14984
14984
  var Q, r, B, h;
14985
14985
  if (Ir(C) > hd) {
14986
- s(Ke.builtIn("REQUEST_PAYLOAD_TOO_LARGE"));
14986
+ s(Je.builtIn("REQUEST_PAYLOAD_TOO_LARGE"));
14987
14987
  return;
14988
14988
  }
14989
14989
  if (!((r = (Q = this.engine.latestJoinResponse) === null || Q === void 0 ? void 0 : Q.serverInfo) === null || r === void 0) && r.version && _i((h = (B = this.engine.latestJoinResponse) === null || B === void 0 ? void 0 : B.serverInfo) === null || h === void 0 ? void 0 : h.version, "1.8.0") < 0) {
14990
- s(Ke.builtIn("UNSUPPORTED_SERVER"));
14990
+ s(Je.builtIn("UNSUPPORTED_SERVER"));
14991
14991
  return;
14992
14992
  }
14993
14993
  const c = crypto.randomUUID();
14994
14994
  yield this.publishRpcRequest(g, c, I, C, o - 2e3);
14995
14995
  const d = setTimeout(() => {
14996
- this.pendingAcks.delete(c), s(Ke.builtIn("CONNECTION_TIMEOUT")), this.pendingResponses.delete(c), clearTimeout(E);
14996
+ this.pendingAcks.delete(c), s(Je.builtIn("CONNECTION_TIMEOUT")), this.pendingResponses.delete(c), clearTimeout(E);
14997
14997
  }, 2e3);
14998
14998
  this.pendingAcks.set(c, {
14999
14999
  resolve: () => {
@@ -15002,7 +15002,7 @@ class Wf extends pd {
15002
15002
  participantIdentity: g
15003
15003
  });
15004
15004
  const E = setTimeout(() => {
15005
- this.pendingResponses.delete(c), s(Ke.builtIn("RESPONSE_TIMEOUT"));
15005
+ this.pendingResponses.delete(c), s(Je.builtIn("RESPONSE_TIMEOUT"));
15006
15006
  }, o);
15007
15007
  this.pendingResponses.set(c, {
15008
15008
  resolve: (u, _) => {
@@ -15085,7 +15085,7 @@ class Wf extends pd {
15085
15085
  participantIdentity: i,
15086
15086
  resolve: g
15087
15087
  }] of this.pendingResponses)
15088
- i === A && (g(null, Ke.builtIn("RECIPIENT_DISCONNECTED")), this.pendingResponses.delete(e));
15088
+ i === A && (g(null, Je.builtIn("RECIPIENT_DISCONNECTED")), this.pendingResponses.delete(e));
15089
15089
  }
15090
15090
  /** @internal */
15091
15091
  setEnabledPublishCodecs(A) {
@@ -16282,12 +16282,12 @@ class UI extends mi.EventEmitter {
16282
16282
  handleIncomingRpcRequest(A, e, i, g, I, C) {
16283
16283
  return k(this, void 0, void 0, function* () {
16284
16284
  if (yield this.engine.publishRpcAck(A, e), C !== 1) {
16285
- yield this.engine.publishRpcResponse(A, e, null, Ke.builtIn("UNSUPPORTED_VERSION"));
16285
+ yield this.engine.publishRpcResponse(A, e, null, Je.builtIn("UNSUPPORTED_VERSION"));
16286
16286
  return;
16287
16287
  }
16288
16288
  const o = this.rpcHandlers.get(i);
16289
16289
  if (!o) {
16290
- yield this.engine.publishRpcResponse(A, e, null, Ke.builtIn("UNSUPPORTED_METHOD"));
16290
+ yield this.engine.publishRpcResponse(A, e, null, Je.builtIn("UNSUPPORTED_METHOD"));
16291
16291
  return;
16292
16292
  }
16293
16293
  let a = null, n = null;
@@ -16298,9 +16298,9 @@ class UI extends mi.EventEmitter {
16298
16298
  payload: g,
16299
16299
  responseTimeout: I
16300
16300
  });
16301
- Ir(s) > hd ? (a = Ke.builtIn("RESPONSE_PAYLOAD_TOO_LARGE"), console.warn("RPC Response payload too large for ".concat(i))) : n = s;
16301
+ Ir(s) > hd ? (a = Je.builtIn("RESPONSE_PAYLOAD_TOO_LARGE"), console.warn("RPC Response payload too large for ".concat(i))) : n = s;
16302
16302
  } catch (s) {
16303
- s instanceof Ke ? a = s : (console.warn("Uncaught error returned by RPC handler for ".concat(i, ". Returning APPLICATION_ERROR instead."), s), a = Ke.builtIn("APPLICATION_ERROR"));
16303
+ s instanceof Je ? a = s : (console.warn("Uncaught error returned by RPC handler for ".concat(i, ". Returning APPLICATION_ERROR instead."), s), a = Je.builtIn("APPLICATION_ERROR"));
16304
16304
  }
16305
16305
  yield this.engine.publishRpcResponse(A, e, n, a);
16306
16306
  });
@@ -18540,7 +18540,7 @@ function PC() {
18540
18540
  const t = Math.random() * 4294967295 | 0, A = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
18541
18541
  return (ot[t & 255] + ot[t >> 8 & 255] + ot[t >> 16 & 255] + ot[t >> 24 & 255] + "-" + ot[A & 255] + ot[A >> 8 & 255] + "-" + ot[A >> 16 & 15 | 64] + ot[A >> 24 & 255] + "-" + ot[e & 63 | 128] + ot[e >> 8 & 255] + "-" + ot[e >> 16 & 255] + ot[e >> 24 & 255] + ot[i & 255] + ot[i >> 8 & 255] + ot[i >> 16 & 255] + ot[i >> 24 & 255]).toLowerCase();
18542
18542
  }
18543
- function Ce(t, A, e) {
18543
+ function oe(t, A, e) {
18544
18544
  return Math.max(A, Math.min(e, t));
18545
18545
  }
18546
18546
  function XD(t, A) {
@@ -18855,7 +18855,7 @@ class de {
18855
18855
  * @return {Vector2} A reference to this vector.
18856
18856
  */
18857
18857
  clamp(A, e) {
18858
- return this.x = Ce(this.x, A.x, e.x), this.y = Ce(this.y, A.y, e.y), this;
18858
+ return this.x = oe(this.x, A.x, e.x), this.y = oe(this.y, A.y, e.y), this;
18859
18859
  }
18860
18860
  /**
18861
18861
  * If this vector's x or y values are greater than the max value, they are
@@ -18868,7 +18868,7 @@ class de {
18868
18868
  * @return {Vector2} A reference to this vector.
18869
18869
  */
18870
18870
  clampScalar(A, e) {
18871
- return this.x = Ce(this.x, A, e), this.y = Ce(this.y, A, e), this;
18871
+ return this.x = oe(this.x, A, e), this.y = oe(this.y, A, e), this;
18872
18872
  }
18873
18873
  /**
18874
18874
  * If this vector's length is greater than the max value, it is replaced by
@@ -18882,7 +18882,7 @@ class de {
18882
18882
  */
18883
18883
  clampLength(A, e) {
18884
18884
  const i = this.length();
18885
- return this.divideScalar(i || 1).multiplyScalar(Ce(i, A, e));
18885
+ return this.divideScalar(i || 1).multiplyScalar(oe(i, A, e));
18886
18886
  }
18887
18887
  /**
18888
18888
  * The components of this vector are rounded down to the nearest integer value.
@@ -18996,7 +18996,7 @@ class de {
18996
18996
  const e = Math.sqrt(this.lengthSq() * A.lengthSq());
18997
18997
  if (e === 0) return Math.PI / 2;
18998
18998
  const i = this.dot(A) / e;
18999
- return Math.acos(Ce(i, -1, 1));
18999
+ return Math.acos(oe(i, -1, 1));
19000
19000
  }
19001
19001
  /**
19002
19002
  * Computes the distance from the given vector to this instance.
@@ -19359,7 +19359,7 @@ class OC {
19359
19359
  * @return {number} The angle in radians.
19360
19360
  */
19361
19361
  angleTo(A) {
19362
- return 2 * Math.acos(Math.abs(Ce(this.dot(A), -1, 1)));
19362
+ return 2 * Math.acos(Math.abs(oe(this.dot(A), -1, 1)));
19363
19363
  }
19364
19364
  /**
19365
19365
  * Rotates this quaternion by a given angular step to the given quaternion.
@@ -19925,7 +19925,7 @@ class K {
19925
19925
  * @return {Vector3} A reference to this vector.
19926
19926
  */
19927
19927
  clamp(A, e) {
19928
- return this.x = Ce(this.x, A.x, e.x), this.y = Ce(this.y, A.y, e.y), this.z = Ce(this.z, A.z, e.z), this;
19928
+ return this.x = oe(this.x, A.x, e.x), this.y = oe(this.y, A.y, e.y), this.z = oe(this.z, A.z, e.z), this;
19929
19929
  }
19930
19930
  /**
19931
19931
  * If this vector's x, y or z values are greater than the max value, they are
@@ -19938,7 +19938,7 @@ class K {
19938
19938
  * @return {Vector3} A reference to this vector.
19939
19939
  */
19940
19940
  clampScalar(A, e) {
19941
- return this.x = Ce(this.x, A, e), this.y = Ce(this.y, A, e), this.z = Ce(this.z, A, e), this;
19941
+ return this.x = oe(this.x, A, e), this.y = oe(this.y, A, e), this.z = oe(this.z, A, e), this;
19942
19942
  }
19943
19943
  /**
19944
19944
  * If this vector's length is greater than the max value, it is replaced by
@@ -19952,7 +19952,7 @@ class K {
19952
19952
  */
19953
19953
  clampLength(A, e) {
19954
19954
  const i = this.length();
19955
- return this.divideScalar(i || 1).multiplyScalar(Ce(i, A, e));
19955
+ return this.divideScalar(i || 1).multiplyScalar(oe(i, A, e));
19956
19956
  }
19957
19957
  /**
19958
19958
  * The components of this vector are rounded down to the nearest integer value.
@@ -20136,7 +20136,7 @@ class K {
20136
20136
  const e = Math.sqrt(this.lengthSq() * A.lengthSq());
20137
20137
  if (e === 0) return Math.PI / 2;
20138
20138
  const i = this.dot(A) / e;
20139
- return Math.acos(Ce(i, -1, 1));
20139
+ return Math.acos(oe(i, -1, 1));
20140
20140
  }
20141
20141
  /**
20142
20142
  * Computes the distance from the given vector to this instance.
@@ -21156,7 +21156,7 @@ class Bt extends qI {
21156
21156
  Bt.DEFAULT_IMAGE = null;
21157
21157
  Bt.DEFAULT_MAPPING = vd;
21158
21158
  Bt.DEFAULT_ANISOTROPY = 1;
21159
- class Ye {
21159
+ class Te {
21160
21160
  /**
21161
21161
  * Constructs a new 4D vector.
21162
21162
  *
@@ -21166,7 +21166,7 @@ class Ye {
21166
21166
  * @param {number} [w=1] - The w value of this vector.
21167
21167
  */
21168
21168
  constructor(A = 0, e = 0, i = 0, g = 1) {
21169
- Ye.prototype.isVector4 = !0, this.x = A, this.y = e, this.z = i, this.w = g;
21169
+ Te.prototype.isVector4 = !0, this.x = A, this.y = e, this.z = i, this.w = g;
21170
21170
  }
21171
21171
  /**
21172
21172
  * Alias for {@link Vector4#z}.
@@ -21498,7 +21498,7 @@ class Ye {
21498
21498
  * @return {Vector4} A reference to this vector.
21499
21499
  */
21500
21500
  clamp(A, e) {
21501
- return this.x = Ce(this.x, A.x, e.x), this.y = Ce(this.y, A.y, e.y), this.z = Ce(this.z, A.z, e.z), this.w = Ce(this.w, A.w, e.w), this;
21501
+ return this.x = oe(this.x, A.x, e.x), this.y = oe(this.y, A.y, e.y), this.z = oe(this.z, A.z, e.z), this.w = oe(this.w, A.w, e.w), this;
21502
21502
  }
21503
21503
  /**
21504
21504
  * If this vector's x, y, z or w values are greater than the max value, they are
@@ -21511,7 +21511,7 @@ class Ye {
21511
21511
  * @return {Vector4} A reference to this vector.
21512
21512
  */
21513
21513
  clampScalar(A, e) {
21514
- return this.x = Ce(this.x, A, e), this.y = Ce(this.y, A, e), this.z = Ce(this.z, A, e), this.w = Ce(this.w, A, e), this;
21514
+ return this.x = oe(this.x, A, e), this.y = oe(this.y, A, e), this.z = oe(this.z, A, e), this.w = oe(this.w, A, e), this;
21515
21515
  }
21516
21516
  /**
21517
21517
  * If this vector's length is greater than the max value, it is replaced by
@@ -21525,7 +21525,7 @@ class Ye {
21525
21525
  */
21526
21526
  clampLength(A, e) {
21527
21527
  const i = this.length();
21528
- return this.divideScalar(i || 1).multiplyScalar(Ce(i, A, e));
21528
+ return this.divideScalar(i || 1).multiplyScalar(oe(i, A, e));
21529
21529
  }
21530
21530
  /**
21531
21531
  * The components of this vector are rounded down to the nearest integer value.
@@ -21747,7 +21747,7 @@ class e2 extends qI {
21747
21747
  count: 1,
21748
21748
  depth: 1,
21749
21749
  multiview: !1
21750
- }, i), this.isRenderTarget = !0, this.width = A, this.height = e, this.depth = i.depth, this.scissor = new Ye(0, 0, A, e), this.scissorTest = !1, this.viewport = new Ye(0, 0, A, e);
21750
+ }, i), this.isRenderTarget = !0, this.width = A, this.height = e, this.depth = i.depth, this.scissor = new Te(0, 0, A, e), this.scissorTest = !1, this.viewport = new Te(0, 0, A, e);
21751
21751
  const g = { width: A, height: e, depth: i.depth }, I = new Bt(g);
21752
21752
  this.textures = [];
21753
21753
  const C = i.count;
@@ -23611,22 +23611,22 @@ class Zi {
23611
23611
  const g = A.elements, I = g[0], C = g[4], o = g[8], a = g[1], n = g[5], s = g[9], Q = g[2], r = g[6], B = g[10];
23612
23612
  switch (e) {
23613
23613
  case "XYZ":
23614
- this._y = Math.asin(Ce(o, -1, 1)), Math.abs(o) < 0.9999999 ? (this._x = Math.atan2(-s, B), this._z = Math.atan2(-C, I)) : (this._x = Math.atan2(r, n), this._z = 0);
23614
+ this._y = Math.asin(oe(o, -1, 1)), Math.abs(o) < 0.9999999 ? (this._x = Math.atan2(-s, B), this._z = Math.atan2(-C, I)) : (this._x = Math.atan2(r, n), this._z = 0);
23615
23615
  break;
23616
23616
  case "YXZ":
23617
- this._x = Math.asin(-Ce(s, -1, 1)), Math.abs(s) < 0.9999999 ? (this._y = Math.atan2(o, B), this._z = Math.atan2(a, n)) : (this._y = Math.atan2(-Q, I), this._z = 0);
23617
+ this._x = Math.asin(-oe(s, -1, 1)), Math.abs(s) < 0.9999999 ? (this._y = Math.atan2(o, B), this._z = Math.atan2(a, n)) : (this._y = Math.atan2(-Q, I), this._z = 0);
23618
23618
  break;
23619
23619
  case "ZXY":
23620
- this._x = Math.asin(Ce(r, -1, 1)), Math.abs(r) < 0.9999999 ? (this._y = Math.atan2(-Q, B), this._z = Math.atan2(-C, n)) : (this._y = 0, this._z = Math.atan2(a, I));
23620
+ this._x = Math.asin(oe(r, -1, 1)), Math.abs(r) < 0.9999999 ? (this._y = Math.atan2(-Q, B), this._z = Math.atan2(-C, n)) : (this._y = 0, this._z = Math.atan2(a, I));
23621
23621
  break;
23622
23622
  case "ZYX":
23623
- this._y = Math.asin(-Ce(Q, -1, 1)), Math.abs(Q) < 0.9999999 ? (this._x = Math.atan2(r, B), this._z = Math.atan2(a, I)) : (this._x = 0, this._z = Math.atan2(-C, n));
23623
+ this._y = Math.asin(-oe(Q, -1, 1)), Math.abs(Q) < 0.9999999 ? (this._x = Math.atan2(r, B), this._z = Math.atan2(a, I)) : (this._x = 0, this._z = Math.atan2(-C, n));
23624
23624
  break;
23625
23625
  case "YZX":
23626
- this._z = Math.asin(Ce(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(-s, n), this._y = Math.atan2(-Q, I)) : (this._x = 0, this._y = Math.atan2(o, B));
23626
+ this._z = Math.asin(oe(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(-s, n), this._y = Math.atan2(-Q, I)) : (this._x = 0, this._y = Math.atan2(o, B));
23627
23627
  break;
23628
23628
  case "XZY":
23629
- this._z = Math.asin(-Ce(C, -1, 1)), Math.abs(C) < 0.9999999 ? (this._x = Math.atan2(r, n), this._y = Math.atan2(o, I)) : (this._x = Math.atan2(-s, B), this._y = 0);
23629
+ this._z = Math.asin(-oe(C, -1, 1)), Math.abs(C) < 0.9999999 ? (this._x = Math.atan2(r, n), this._y = Math.atan2(o, I)) : (this._x = Math.atan2(-s, B), this._y = 0);
23630
23630
  break;
23631
23631
  default:
23632
23632
  KA("Euler: .setFromRotationMatrix() encountered an unknown order: " + e);
@@ -24439,7 +24439,7 @@ class Ft extends qI {
24439
24439
  Ft.DEFAULT_UP = /* @__PURE__ */ new K(0, 1, 0);
24440
24440
  Ft.DEFAULT_MATRIX_AUTO_UPDATE = !0;
24441
24441
  Ft.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
24442
- const Ot = /* @__PURE__ */ new K(), Si = /* @__PURE__ */ new K(), Nn = /* @__PURE__ */ new K(), Ri = /* @__PURE__ */ new K(), EI = /* @__PURE__ */ new K(), cI = /* @__PURE__ */ new K(), u0 = /* @__PURE__ */ new K(), kn = /* @__PURE__ */ new K(), Sn = /* @__PURE__ */ new K(), Rn = /* @__PURE__ */ new K(), Gn = /* @__PURE__ */ new Ye(), Mn = /* @__PURE__ */ new Ye(), Fn = /* @__PURE__ */ new Ye();
24442
+ const Ot = /* @__PURE__ */ new K(), Si = /* @__PURE__ */ new K(), Nn = /* @__PURE__ */ new K(), Ri = /* @__PURE__ */ new K(), EI = /* @__PURE__ */ new K(), cI = /* @__PURE__ */ new K(), u0 = /* @__PURE__ */ new K(), kn = /* @__PURE__ */ new K(), Sn = /* @__PURE__ */ new K(), Rn = /* @__PURE__ */ new K(), Gn = /* @__PURE__ */ new Te(), Mn = /* @__PURE__ */ new Te(), Fn = /* @__PURE__ */ new Te();
24443
24443
  class $t {
24444
24444
  /**
24445
24445
  * Constructs a new triangle.
@@ -24952,7 +24952,7 @@ class ne {
24952
24952
  * @return {Color} A reference to this color.
24953
24953
  */
24954
24954
  setHSL(A, e, i, g = Qe.workingColorSpace) {
24955
- if (A = XD(A, 1), e = Ce(e, 0, 1), i = Ce(i, 0, 1), e === 0)
24955
+ if (A = XD(A, 1), e = oe(e, 0, 1), i = oe(i, 0, 1), e === 0)
24956
24956
  this.r = this.g = this.b = i;
24957
24957
  else {
24958
24958
  const I = i <= 0.5 ? i * (1 + e) : i + e - i * e, C = 2 * i - I;
@@ -25102,7 +25102,7 @@ class ne {
25102
25102
  * @return {number} The hexadecimal value.
25103
25103
  */
25104
25104
  getHex(A = Kt) {
25105
- return Qe.workingToColorSpace(at.copy(this), A), Math.round(Ce(at.r * 255, 0, 255)) * 65536 + Math.round(Ce(at.g * 255, 0, 255)) * 256 + Math.round(Ce(at.b * 255, 0, 255));
25105
+ return Qe.workingToColorSpace(at.copy(this), A), Math.round(oe(at.r * 255, 0, 255)) * 65536 + Math.round(oe(at.g * 255, 0, 255)) * 256 + Math.round(oe(at.b * 255, 0, 255));
25106
25106
  }
25107
25107
  /**
25108
25108
  * Returns the hexadecimal value of this color as a string (for example, 'FFFFFF').
@@ -33859,7 +33859,7 @@ function Nw(t) {
33859
33859
  };
33860
33860
  }
33861
33861
  function kw(t, A, e) {
33862
- const i = /* @__PURE__ */ new WeakMap(), g = new Ye();
33862
+ const i = /* @__PURE__ */ new WeakMap(), g = new Te();
33863
33863
  function I(C, o, a) {
33864
33864
  const n = C.morphTargetInfluences, s = o.morphAttributes.position || o.morphAttributes.normal || o.morphAttributes.color, Q = s !== void 0 ? s.length : 0;
33865
33865
  let r = i.get(o);
@@ -34065,13 +34065,13 @@ function HI(t, A, e) {
34065
34065
  }
34066
34066
  return I;
34067
34067
  }
34068
- function Xe(t, A) {
34068
+ function Ze(t, A) {
34069
34069
  if (t.length !== A.length) return !1;
34070
34070
  for (let e = 0, i = t.length; e < i; e++)
34071
34071
  if (t[e] !== A[e]) return !1;
34072
34072
  return !0;
34073
34073
  }
34074
- function Ze(t, A) {
34074
+ function ze(t, A) {
34075
34075
  for (let e = 0, i = A.length; e < i; e++)
34076
34076
  t[e] = A[e];
34077
34077
  }
@@ -34091,8 +34091,8 @@ function Fw(t, A) {
34091
34091
  if (A.x !== void 0)
34092
34092
  (e[0] !== A.x || e[1] !== A.y) && (t.uniform2f(this.addr, A.x, A.y), e[0] = A.x, e[1] = A.y);
34093
34093
  else {
34094
- if (Xe(e, A)) return;
34095
- t.uniform2fv(this.addr, A), Ze(e, A);
34094
+ if (Ze(e, A)) return;
34095
+ t.uniform2fv(this.addr, A), ze(e, A);
34096
34096
  }
34097
34097
  }
34098
34098
  function Uw(t, A) {
@@ -34102,8 +34102,8 @@ function Uw(t, A) {
34102
34102
  else if (A.r !== void 0)
34103
34103
  (e[0] !== A.r || e[1] !== A.g || e[2] !== A.b) && (t.uniform3f(this.addr, A.r, A.g, A.b), e[0] = A.r, e[1] = A.g, e[2] = A.b);
34104
34104
  else {
34105
- if (Xe(e, A)) return;
34106
- t.uniform3fv(this.addr, A), Ze(e, A);
34105
+ if (Ze(e, A)) return;
34106
+ t.uniform3fv(this.addr, A), ze(e, A);
34107
34107
  }
34108
34108
  }
34109
34109
  function Lw(t, A) {
@@ -34111,38 +34111,38 @@ function Lw(t, A) {
34111
34111
  if (A.x !== void 0)
34112
34112
  (e[0] !== A.x || e[1] !== A.y || e[2] !== A.z || e[3] !== A.w) && (t.uniform4f(this.addr, A.x, A.y, A.z, A.w), e[0] = A.x, e[1] = A.y, e[2] = A.z, e[3] = A.w);
34113
34113
  else {
34114
- if (Xe(e, A)) return;
34115
- t.uniform4fv(this.addr, A), Ze(e, A);
34114
+ if (Ze(e, A)) return;
34115
+ t.uniform4fv(this.addr, A), ze(e, A);
34116
34116
  }
34117
34117
  }
34118
34118
  function vw(t, A) {
34119
34119
  const e = this.cache, i = A.elements;
34120
34120
  if (i === void 0) {
34121
- if (Xe(e, A)) return;
34122
- t.uniformMatrix2fv(this.addr, !1, A), Ze(e, A);
34121
+ if (Ze(e, A)) return;
34122
+ t.uniformMatrix2fv(this.addr, !1, A), ze(e, A);
34123
34123
  } else {
34124
- if (Xe(e, i)) return;
34125
- L0.set(i), t.uniformMatrix2fv(this.addr, !1, L0), Ze(e, i);
34124
+ if (Ze(e, i)) return;
34125
+ L0.set(i), t.uniformMatrix2fv(this.addr, !1, L0), ze(e, i);
34126
34126
  }
34127
34127
  }
34128
34128
  function Kw(t, A) {
34129
34129
  const e = this.cache, i = A.elements;
34130
34130
  if (i === void 0) {
34131
- if (Xe(e, A)) return;
34132
- t.uniformMatrix3fv(this.addr, !1, A), Ze(e, A);
34131
+ if (Ze(e, A)) return;
34132
+ t.uniformMatrix3fv(this.addr, !1, A), ze(e, A);
34133
34133
  } else {
34134
- if (Xe(e, i)) return;
34135
- U0.set(i), t.uniformMatrix3fv(this.addr, !1, U0), Ze(e, i);
34134
+ if (Ze(e, i)) return;
34135
+ U0.set(i), t.uniformMatrix3fv(this.addr, !1, U0), ze(e, i);
34136
34136
  }
34137
34137
  }
34138
34138
  function Jw(t, A) {
34139
34139
  const e = this.cache, i = A.elements;
34140
34140
  if (i === void 0) {
34141
- if (Xe(e, A)) return;
34142
- t.uniformMatrix4fv(this.addr, !1, A), Ze(e, A);
34141
+ if (Ze(e, A)) return;
34142
+ t.uniformMatrix4fv(this.addr, !1, A), ze(e, A);
34143
34143
  } else {
34144
- if (Xe(e, i)) return;
34145
- F0.set(i), t.uniformMatrix4fv(this.addr, !1, F0), Ze(e, i);
34144
+ if (Ze(e, i)) return;
34145
+ F0.set(i), t.uniformMatrix4fv(this.addr, !1, F0), ze(e, i);
34146
34146
  }
34147
34147
  }
34148
34148
  function Yw(t, A) {
@@ -34154,8 +34154,8 @@ function Tw(t, A) {
34154
34154
  if (A.x !== void 0)
34155
34155
  (e[0] !== A.x || e[1] !== A.y) && (t.uniform2i(this.addr, A.x, A.y), e[0] = A.x, e[1] = A.y);
34156
34156
  else {
34157
- if (Xe(e, A)) return;
34158
- t.uniform2iv(this.addr, A), Ze(e, A);
34157
+ if (Ze(e, A)) return;
34158
+ t.uniform2iv(this.addr, A), ze(e, A);
34159
34159
  }
34160
34160
  }
34161
34161
  function qw(t, A) {
@@ -34163,8 +34163,8 @@ function qw(t, A) {
34163
34163
  if (A.x !== void 0)
34164
34164
  (e[0] !== A.x || e[1] !== A.y || e[2] !== A.z) && (t.uniform3i(this.addr, A.x, A.y, A.z), e[0] = A.x, e[1] = A.y, e[2] = A.z);
34165
34165
  else {
34166
- if (Xe(e, A)) return;
34167
- t.uniform3iv(this.addr, A), Ze(e, A);
34166
+ if (Ze(e, A)) return;
34167
+ t.uniform3iv(this.addr, A), ze(e, A);
34168
34168
  }
34169
34169
  }
34170
34170
  function Hw(t, A) {
@@ -34172,8 +34172,8 @@ function Hw(t, A) {
34172
34172
  if (A.x !== void 0)
34173
34173
  (e[0] !== A.x || e[1] !== A.y || e[2] !== A.z || e[3] !== A.w) && (t.uniform4i(this.addr, A.x, A.y, A.z, A.w), e[0] = A.x, e[1] = A.y, e[2] = A.z, e[3] = A.w);
34174
34174
  else {
34175
- if (Xe(e, A)) return;
34176
- t.uniform4iv(this.addr, A), Ze(e, A);
34175
+ if (Ze(e, A)) return;
34176
+ t.uniform4iv(this.addr, A), ze(e, A);
34177
34177
  }
34178
34178
  }
34179
34179
  function Pw(t, A) {
@@ -34185,8 +34185,8 @@ function Ow(t, A) {
34185
34185
  if (A.x !== void 0)
34186
34186
  (e[0] !== A.x || e[1] !== A.y) && (t.uniform2ui(this.addr, A.x, A.y), e[0] = A.x, e[1] = A.y);
34187
34187
  else {
34188
- if (Xe(e, A)) return;
34189
- t.uniform2uiv(this.addr, A), Ze(e, A);
34188
+ if (Ze(e, A)) return;
34189
+ t.uniform2uiv(this.addr, A), ze(e, A);
34190
34190
  }
34191
34191
  }
34192
34192
  function Vw(t, A) {
@@ -34194,8 +34194,8 @@ function Vw(t, A) {
34194
34194
  if (A.x !== void 0)
34195
34195
  (e[0] !== A.x || e[1] !== A.y || e[2] !== A.z) && (t.uniform3ui(this.addr, A.x, A.y, A.z), e[0] = A.x, e[1] = A.y, e[2] = A.z);
34196
34196
  else {
34197
- if (Xe(e, A)) return;
34198
- t.uniform3uiv(this.addr, A), Ze(e, A);
34197
+ if (Ze(e, A)) return;
34198
+ t.uniform3uiv(this.addr, A), ze(e, A);
34199
34199
  }
34200
34200
  }
34201
34201
  function jw(t, A) {
@@ -34203,8 +34203,8 @@ function jw(t, A) {
34203
34203
  if (A.x !== void 0)
34204
34204
  (e[0] !== A.x || e[1] !== A.y || e[2] !== A.z || e[3] !== A.w) && (t.uniform4ui(this.addr, A.x, A.y, A.z, A.w), e[0] = A.x, e[1] = A.y, e[2] = A.z, e[3] = A.w);
34205
34205
  else {
34206
- if (Xe(e, A)) return;
34207
- t.uniform4uiv(this.addr, A), Ze(e, A);
34206
+ if (Ze(e, A)) return;
34207
+ t.uniform4uiv(this.addr, A), ze(e, A);
34208
34208
  }
34209
34209
  }
34210
34210
  function Ww(t, A, e) {
@@ -34363,7 +34363,7 @@ function Em(t, A) {
34363
34363
  }
34364
34364
  function cm(t, A, e) {
34365
34365
  const i = this.cache, g = A.length, I = Na(e, g);
34366
- Xe(i, I) || (t.uniform1iv(this.addr, I), Ze(i, I));
34366
+ Ze(i, I) || (t.uniform1iv(this.addr, I), ze(i, I));
34367
34367
  let C;
34368
34368
  this.type === t.SAMPLER_2D_SHADOW ? C = NQ : C = oh;
34369
34369
  for (let o = 0; o !== g; ++o)
@@ -34371,19 +34371,19 @@ function cm(t, A, e) {
34371
34371
  }
34372
34372
  function dm(t, A, e) {
34373
34373
  const i = this.cache, g = A.length, I = Na(e, g);
34374
- Xe(i, I) || (t.uniform1iv(this.addr, I), Ze(i, I));
34374
+ Ze(i, I) || (t.uniform1iv(this.addr, I), ze(i, I));
34375
34375
  for (let C = 0; C !== g; ++C)
34376
34376
  e.setTexture3D(A[C] || nh, I[C]);
34377
34377
  }
34378
34378
  function hm(t, A, e) {
34379
34379
  const i = this.cache, g = A.length, I = Na(e, g);
34380
- Xe(i, I) || (t.uniform1iv(this.addr, I), Ze(i, I));
34380
+ Ze(i, I) || (t.uniform1iv(this.addr, I), ze(i, I));
34381
34381
  for (let C = 0; C !== g; ++C)
34382
34382
  e.setTextureCube(A[C] || sh, I[C]);
34383
34383
  }
34384
34384
  function lm(t, A, e) {
34385
34385
  const i = this.cache, g = A.length, I = Na(e, g);
34386
- Xe(i, I) || (t.uniform1iv(this.addr, I), Ze(i, I));
34386
+ Ze(i, I) || (t.uniform1iv(this.addr, I), ze(i, I));
34387
34387
  for (let C = 0; C !== g; ++C)
34388
34388
  e.setTexture2DArray(A[C] || ah, I[C]);
34389
34389
  }
@@ -35729,7 +35729,7 @@ void main() {
35729
35729
  ], W0 = /* @__PURE__ */ new je(), IC = /* @__PURE__ */ new K(), On = /* @__PURE__ */ new K();
35730
35730
  function By(t, A, e) {
35731
35731
  let i = new ih();
35732
- const g = new de(), I = new de(), C = new Ye(), o = new b2(), a = new N2(), n = {}, s = e.maxTextureSize, Q = { [ji]: rt, [rt]: ji, [qi]: qi }, r = new Tt({
35732
+ const g = new de(), I = new de(), C = new Te(), o = new b2(), a = new N2(), n = {}, s = e.maxTextureSize, Q = { [ji]: rt, [rt]: ji, [qi]: qi }, r = new Tt({
35733
35733
  defines: {
35734
35734
  VSM_SAMPLES: 8
35735
35735
  },
@@ -35885,9 +35885,9 @@ const Ey = {
35885
35885
  function cy(t, A) {
35886
35886
  function e() {
35887
35887
  let G = !1;
35888
- const uA = new Ye();
35888
+ const uA = new Te();
35889
35889
  let oA = null;
35890
- const DA = new Ye(0, 0, 0, 0);
35890
+ const DA = new Te(0, 0, 0, 0);
35891
35891
  return {
35892
35892
  setMask: function(gA) {
35893
35893
  oA !== gA && !G && (t.colorMask(gA, gA, gA, gA), oA = gA);
@@ -36000,7 +36000,7 @@ function cy(t, A) {
36000
36000
  const Z = t.getParameter(t.VERSION);
36001
36001
  Z.indexOf("WebGL") !== -1 ? (P = parseFloat(/^WebGL (\d)/.exec(Z)[1]), q = P >= 1) : Z.indexOf("OpenGL ES") !== -1 && (P = parseFloat(/^OpenGL ES (\d)/.exec(Z)[1]), q = P >= 2);
36002
36002
  let hA = null, sA = {};
36003
- const xA = t.getParameter(t.SCISSOR_BOX), TA = t.getParameter(t.VIEWPORT), JA = new Ye().fromArray(xA), Se = new Ye().fromArray(TA);
36003
+ const xA = t.getParameter(t.SCISSOR_BOX), TA = t.getParameter(t.VIEWPORT), JA = new Te().fromArray(xA), Se = new Te().fromArray(TA);
36004
36004
  function De(G, uA, oA, DA) {
36005
36005
  const gA = new Uint8Array(4), z = t.createTexture();
36006
36006
  t.bindTexture(G, z), t.texParameteri(G, t.TEXTURE_MIN_FILTER, t.NEAREST), t.texParameteri(G, t.TEXTURE_MAG_FILTER, t.NEAREST);
@@ -37065,9 +37065,9 @@ class fy extends qI {
37065
37065
  const D = [], w = [], y = new de();
37066
37066
  let S = null;
37067
37067
  const l = new Jt();
37068
- l.viewport = new Ye();
37068
+ l.viewport = new Te();
37069
37069
  const p = new Jt();
37070
- p.viewport = new Ye();
37070
+ p.viewport = new Te();
37071
37071
  const N = [l, p], F = new k2();
37072
37072
  let L = null, H = null;
37073
37073
  this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(X) {
@@ -37255,7 +37255,7 @@ class fy extends qI {
37255
37255
  ), A.setRenderTarget(x));
37256
37256
  }
37257
37257
  let VA = N[se];
37258
- VA === void 0 && (VA = new Jt(), VA.layers.enable(se), VA.viewport = new Ye(), N[se] = VA), VA.matrix.fromArray(le.transform.matrix), VA.matrix.decompose(VA.position, VA.quaternion, VA.scale), VA.projectionMatrix.fromArray(le.projectionMatrix), VA.projectionMatrixInverse.copy(VA.projectionMatrix).invert(), VA.viewport.set(we.x, we.y, we.width, we.height), se === 0 && (F.matrix.copy(VA.matrix), F.matrix.decompose(F.position, F.quaternion, F.scale)), qA === !0 && F.cameras.push(VA);
37258
+ VA === void 0 && (VA = new Jt(), VA.layers.enable(se), VA.viewport = new Te(), N[se] = VA), VA.matrix.fromArray(le.transform.matrix), VA.matrix.decompose(VA.position, VA.quaternion, VA.scale), VA.projectionMatrix.fromArray(le.projectionMatrix), VA.projectionMatrixInverse.copy(VA.projectionMatrix).invert(), VA.viewport.set(we.x, we.y, we.width, we.height), se === 0 && (F.matrix.copy(VA.matrix), F.matrix.decompose(F.position, F.quaternion, F.scale)), qA === !0 && F.cameras.push(VA);
37259
37259
  }
37260
37260
  const yA = g.enabledFeatures;
37261
37261
  if (yA && yA.includes("depth-sensing") && g.depthUsage == "gpu-optimized" && c) {
@@ -38023,15 +38023,15 @@ class yy {
38023
38023
  let p = !1;
38024
38024
  this._outputColorSpace = Kt;
38025
38025
  let N = 0, F = 0, L = null, H = -1, j = null;
38026
- const q = new Ye(), P = new Ye();
38026
+ const q = new Te(), P = new Te();
38027
38027
  let Z = null;
38028
38028
  const hA = new ne(0);
38029
38029
  let sA = 0, xA = e.width, TA = e.height, JA = 1, Se = null, De = null;
38030
- const X = new Ye(0, 0, xA, TA), iA = new Ye(0, 0, xA, TA);
38030
+ const X = new Te(0, 0, xA, TA), iA = new Te(0, 0, xA, TA);
38031
38031
  let pA = !1;
38032
38032
  const qA = new ih();
38033
38033
  let yA = !1, re = !1;
38034
- const $e = new je(), se = new K(), le = new Ye(), we = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
38034
+ const $e = new je(), se = new K(), le = new Te(), we = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
38035
38035
  let VA = !1;
38036
38036
  function qe() {
38037
38037
  return L === null ? JA : 1;
@@ -38139,8 +38139,8 @@ class yy {
38139
38139
  v = d.has(cA);
38140
38140
  }
38141
38141
  if (v) {
38142
- const cA = L.texture.type, _A = E.has(cA), lA = BA.getClearColor(), wA = BA.getClearAlpha(), RA = lA.r, FA = lA.g, GA = lA.b;
38143
- _A ? (u[0] = RA, u[1] = FA, u[2] = GA, u[3] = wA, R.clearBufferuiv(R.COLOR, 0, u)) : (_[0] = RA, _[1] = FA, _[2] = GA, _[3] = wA, R.clearBufferiv(R.COLOR, 0, _));
38142
+ const cA = L.texture.type, _A = E.has(cA), lA = BA.getClearColor(), wA = BA.getClearAlpha(), RA = lA.r, UA = lA.g, GA = lA.b;
38143
+ _A ? (u[0] = RA, u[1] = UA, u[2] = GA, u[3] = wA, R.clearBufferuiv(R.COLOR, 0, u)) : (_[0] = RA, _[1] = UA, _[2] = GA, _[3] = wA, R.clearBufferiv(R.COLOR, 0, _));
38144
38144
  } else
38145
38145
  J |= R.COLOR_BUFFER_BIT;
38146
38146
  }
@@ -38187,14 +38187,14 @@ class yy {
38187
38187
  if (wA = SA.getWireframeAttribute(T), wA === void 0) return;
38188
38188
  RA = 2;
38189
38189
  }
38190
- const FA = T.drawRange, GA = T.attributes.position;
38191
- let ZA = FA.start * RA, _e = (FA.start + FA.count) * RA;
38190
+ const UA = T.drawRange, GA = T.attributes.position;
38191
+ let ZA = UA.start * RA, _e = (UA.start + UA.count) * RA;
38192
38192
  cA !== null && (ZA = Math.max(ZA, cA.start * RA), _e = Math.min(_e, (cA.start + cA.count) * RA)), wA !== null ? (ZA = Math.max(ZA, 0), _e = Math.min(_e, wA.count)) : GA != null && (ZA = Math.max(ZA, 0), _e = Math.min(_e, GA.count));
38193
- const Fe = _e - ZA;
38194
- if (Fe < 0 || Fe === 1 / 0) return;
38193
+ const Ue = _e - ZA;
38194
+ if (Ue < 0 || Ue === 1 / 0) return;
38195
38195
  DA.setup(v, J, lA, T, wA);
38196
- let Ue, me = G;
38197
- if (wA !== null && (Ue = V.get(wA), me = uA, me.setIndex(Ue)), v.isMesh)
38196
+ let Le, me = G;
38197
+ if (wA !== null && (Le = V.get(wA), me = uA, me.setIndex(Le)), v.isMesh)
38198
38198
  J.wireframe === !0 ? (NA.setLineWidth(J.wireframeLinewidth * qe()), me.setMode(R.LINES)) : me.setMode(R.TRIANGLES);
38199
38199
  else if (v.isLine) {
38200
38200
  let MA = J.linewidth;
@@ -38211,12 +38211,12 @@ class yy {
38211
38211
  tI.setValue(R, "_gl_DrawID", yt), me.render(MA[yt] / mt, ue[yt]);
38212
38212
  }
38213
38213
  else if (v.isInstancedMesh)
38214
- me.renderInstances(ZA, Fe, v.count);
38214
+ me.renderInstances(ZA, Ue, v.count);
38215
38215
  else if (T.isInstancedBufferGeometry) {
38216
38216
  const MA = T._maxInstanceCount !== void 0 ? T._maxInstanceCount : 1 / 0, ue = Math.min(T.instanceCount, MA);
38217
- me.renderInstances(ZA, Fe, ue);
38217
+ me.renderInstances(ZA, Ue, ue);
38218
38218
  } else
38219
- me.render(ZA, Fe);
38219
+ me.render(ZA, Ue);
38220
38220
  };
38221
38221
  function Sr(m, U, T) {
38222
38222
  m.transparent === !0 && m.side === qi && m.forceSinglePass === !1 ? (m.side = rt, m.needsUpdate = !0, $C(m, U, T), m.side = ji, m.needsUpdate = !0, $C(m, U, T), m.side = qi) : $C(m, U, T);
@@ -38287,12 +38287,12 @@ class yy {
38287
38287
  if (D.setupLights(), U.isArrayCamera) {
38288
38288
  const wA = U.cameras;
38289
38289
  if (lA.length > 0)
38290
- for (let RA = 0, FA = wA.length; RA < FA; RA++) {
38290
+ for (let RA = 0, UA = wA.length; RA < UA; RA++) {
38291
38291
  const GA = wA[RA];
38292
38292
  Fr(_A, lA, m, GA);
38293
38293
  }
38294
38294
  VA && BA.render(m);
38295
- for (let RA = 0, FA = wA.length; RA < FA; RA++) {
38295
+ for (let RA = 0, UA = wA.length; RA < UA; RA++) {
38296
38296
  const GA = wA[RA];
38297
38297
  Mr(x, m, GA, GA.viewport);
38298
38298
  }
@@ -38320,7 +38320,7 @@ class yy {
38320
38320
  const _A = rA.update(m), lA = m.material;
38321
38321
  if (J && (m.boundingSphere !== void 0 ? (m.boundingSphere === null && m.computeBoundingSphere(), le.copy(m.boundingSphere.center)) : (_A.boundingSphere === null && _A.computeBoundingSphere(), le.copy(_A.boundingSphere.center)), le.applyMatrix4(m.matrixWorld).applyMatrix4($e)), Array.isArray(lA)) {
38322
38322
  const wA = _A.groups;
38323
- for (let RA = 0, FA = wA.length; RA < FA; RA++) {
38323
+ for (let RA = 0, UA = wA.length; RA < UA; RA++) {
38324
38324
  const GA = wA[RA], ZA = lA[GA.materialIndex];
38325
38325
  ZA && ZA.visible && x.push(m, _A, ZA, T, le.z, GA);
38326
38326
  }
@@ -38355,13 +38355,13 @@ class yy {
38355
38355
  cA.setSize(_A.z * l.transmissionResolutionScale, _A.w * l.transmissionResolutionScale);
38356
38356
  const lA = l.getRenderTarget(), wA = l.getActiveCubeFace(), RA = l.getActiveMipmapLevel();
38357
38357
  l.setRenderTarget(cA), l.getClearColor(hA), sA = l.getClearAlpha(), sA < 1 && l.setClearColor(16777215, 0.5), l.clear(), VA && BA.render(T);
38358
- const FA = l.toneMapping;
38358
+ const UA = l.toneMapping;
38359
38359
  l.toneMapping = xi;
38360
38360
  const GA = J.viewport;
38361
38361
  if (J.viewport !== void 0 && (J.viewport = void 0), D.setupLightsView(J), yA === !0 && mA.setGlobalState(l.clippingPlanes, J), zC(m, T, J), M.updateMultisampleRenderTarget(cA), M.updateRenderTargetMipmap(cA), he.has("WEBGL_multisampled_render_to_texture") === !1) {
38362
38362
  let ZA = !1;
38363
- for (let _e = 0, Fe = U.length; _e < Fe; _e++) {
38364
- const Ue = U[_e], { object: me, geometry: MA, material: ue, group: Be } = Ue;
38363
+ for (let _e = 0, Ue = U.length; _e < Ue; _e++) {
38364
+ const Le = U[_e], { object: me, geometry: MA, material: ue, group: Be } = Le;
38365
38365
  if (ue.side === qi && me.layers.test(J.layers)) {
38366
38366
  const mt = ue.side;
38367
38367
  ue.side = rt, ue.needsUpdate = !0, Ur(me, T, J, MA, ue, Be), ue.side = mt, ue.needsUpdate = !0, ZA = !0;
@@ -38369,14 +38369,14 @@ class yy {
38369
38369
  }
38370
38370
  ZA === !0 && (M.updateMultisampleRenderTarget(cA), M.updateRenderTargetMipmap(cA));
38371
38371
  }
38372
- l.setRenderTarget(lA, wA, RA), l.setClearColor(hA, sA), GA !== void 0 && (J.viewport = GA), l.toneMapping = FA;
38372
+ l.setRenderTarget(lA, wA, RA), l.setClearColor(hA, sA), GA !== void 0 && (J.viewport = GA), l.toneMapping = UA;
38373
38373
  }
38374
38374
  function zC(m, U, T) {
38375
38375
  const J = U.isScene === !0 ? U.overrideMaterial : null;
38376
38376
  for (let v = 0, cA = m.length; v < cA; v++) {
38377
38377
  const _A = m[v], { object: lA, geometry: wA, group: RA } = _A;
38378
- let FA = _A.material;
38379
- FA.allowOverride === !0 && J !== null && (FA = J), lA.layers.test(T.layers) && Ur(lA, U, T, wA, FA, RA);
38378
+ let UA = _A.material;
38379
+ UA.allowOverride === !0 && J !== null && (UA = J), lA.layers.test(T.layers) && Ur(lA, U, T, wA, UA, RA);
38380
38380
  }
38381
38381
  }
38382
38382
  function Ur(m, U, T, J, v, cA) {
@@ -38387,14 +38387,14 @@ class yy {
38387
38387
  const J = f.get(m), v = D.state.lights, cA = D.state.shadowsArray, _A = v.state.version, lA = bA.getParameters(m, v.state, cA, U, T), wA = bA.getProgramCacheKey(lA);
38388
38388
  let RA = J.programs;
38389
38389
  J.environment = m.isMeshStandardMaterial ? U.environment : null, J.fog = U.fog, J.envMap = (m.isMeshStandardMaterial ? eA : W).get(m.envMap || J.environment), J.envMapRotation = J.environment !== null && m.envMap === null ? U.environmentRotation : m.envMapRotation, RA === void 0 && (m.addEventListener("dispose", ai), RA = /* @__PURE__ */ new Map(), J.programs = RA);
38390
- let FA = RA.get(wA);
38391
- if (FA !== void 0) {
38392
- if (J.currentProgram === FA && J.lightsStateVersion === _A)
38393
- return vr(m, lA), FA;
38390
+ let UA = RA.get(wA);
38391
+ if (UA !== void 0) {
38392
+ if (J.currentProgram === UA && J.lightsStateVersion === _A)
38393
+ return vr(m, lA), UA;
38394
38394
  } else
38395
- lA.uniforms = bA.getUniforms(m), m.onBeforeCompile(lA, l), FA = bA.acquireProgram(lA, wA), RA.set(wA, FA), J.uniforms = lA.uniforms;
38395
+ lA.uniforms = bA.getUniforms(m), m.onBeforeCompile(lA, l), UA = bA.acquireProgram(lA, wA), RA.set(wA, UA), J.uniforms = lA.uniforms;
38396
38396
  const GA = J.uniforms;
38397
- return (!m.isShaderMaterial && !m.isRawShaderMaterial || m.clipping === !0) && (GA.clippingPlanes = mA.uniform), vr(m, lA), J.needsLights = Uh(m), J.lightsStateVersion = _A, J.needsLights && (GA.ambientLightColor.value = v.state.ambient, GA.lightProbe.value = v.state.probe, GA.directionalLights.value = v.state.directional, GA.directionalLightShadows.value = v.state.directionalShadow, GA.spotLights.value = v.state.spot, GA.spotLightShadows.value = v.state.spotShadow, GA.rectAreaLights.value = v.state.rectArea, GA.ltc_1.value = v.state.rectAreaLTC1, GA.ltc_2.value = v.state.rectAreaLTC2, GA.pointLights.value = v.state.point, GA.pointLightShadows.value = v.state.pointShadow, GA.hemisphereLights.value = v.state.hemi, GA.directionalShadowMap.value = v.state.directionalShadowMap, GA.directionalShadowMatrix.value = v.state.directionalShadowMatrix, GA.spotShadowMap.value = v.state.spotShadowMap, GA.spotLightMatrix.value = v.state.spotLightMatrix, GA.spotLightMap.value = v.state.spotLightMap, GA.pointShadowMap.value = v.state.pointShadowMap, GA.pointShadowMatrix.value = v.state.pointShadowMatrix), J.currentProgram = FA, J.uniformsList = null, FA;
38397
+ return (!m.isShaderMaterial && !m.isRawShaderMaterial || m.clipping === !0) && (GA.clippingPlanes = mA.uniform), vr(m, lA), J.needsLights = Uh(m), J.lightsStateVersion = _A, J.needsLights && (GA.ambientLightColor.value = v.state.ambient, GA.lightProbe.value = v.state.probe, GA.directionalLights.value = v.state.directional, GA.directionalLightShadows.value = v.state.directionalShadow, GA.spotLights.value = v.state.spot, GA.spotLightShadows.value = v.state.spotShadow, GA.rectAreaLights.value = v.state.rectArea, GA.ltc_1.value = v.state.rectAreaLTC1, GA.ltc_2.value = v.state.rectAreaLTC2, GA.pointLights.value = v.state.point, GA.pointLightShadows.value = v.state.pointShadow, GA.hemisphereLights.value = v.state.hemi, GA.directionalShadowMap.value = v.state.directionalShadowMap, GA.directionalShadowMatrix.value = v.state.directionalShadowMatrix, GA.spotShadowMap.value = v.state.spotShadowMap, GA.spotLightMatrix.value = v.state.spotLightMatrix, GA.spotLightMap.value = v.state.spotLightMap, GA.pointShadowMap.value = v.state.pointShadowMap, GA.pointShadowMatrix.value = v.state.pointShadowMatrix), J.currentProgram = UA, J.uniformsList = null, UA;
38398
38398
  }
38399
38399
  function Lr(m) {
38400
38400
  if (m.uniformsList === null) {
@@ -38409,16 +38409,16 @@ class yy {
38409
38409
  }
38410
38410
  function Mh(m, U, T, J, v) {
38411
38411
  U.isScene !== !0 && (U = we), M.resetTextureUnits();
38412
- const cA = U.fog, _A = J.isMeshStandardMaterial ? U.environment : null, lA = L === null ? l.outputColorSpace : L.isXRRenderTarget === !0 ? L.texture.colorSpace : JI, wA = (J.isMeshStandardMaterial ? eA : W).get(J.envMap || _A), RA = J.vertexColors === !0 && !!T.attributes.color && T.attributes.color.itemSize === 4, FA = !!T.attributes.tangent && (!!J.normalMap || J.anisotropy > 0), GA = !!T.morphAttributes.position, ZA = !!T.morphAttributes.normal, _e = !!T.morphAttributes.color;
38413
- let Fe = xi;
38414
- J.toneMapped && (L === null || L.isXRRenderTarget === !0) && (Fe = l.toneMapping);
38415
- const Ue = T.morphAttributes.position || T.morphAttributes.normal || T.morphAttributes.color, me = Ue !== void 0 ? Ue.length : 0, MA = f.get(J), ue = D.state.lights;
38412
+ const cA = U.fog, _A = J.isMeshStandardMaterial ? U.environment : null, lA = L === null ? l.outputColorSpace : L.isXRRenderTarget === !0 ? L.texture.colorSpace : JI, wA = (J.isMeshStandardMaterial ? eA : W).get(J.envMap || _A), RA = J.vertexColors === !0 && !!T.attributes.color && T.attributes.color.itemSize === 4, UA = !!T.attributes.tangent && (!!J.normalMap || J.anisotropy > 0), GA = !!T.morphAttributes.position, ZA = !!T.morphAttributes.normal, _e = !!T.morphAttributes.color;
38413
+ let Ue = xi;
38414
+ J.toneMapped && (L === null || L.isXRRenderTarget === !0) && (Ue = l.toneMapping);
38415
+ const Le = T.morphAttributes.position || T.morphAttributes.normal || T.morphAttributes.color, me = Le !== void 0 ? Le.length : 0, MA = f.get(J), ue = D.state.lights;
38416
38416
  if (yA === !0 && (re === !0 || m !== j)) {
38417
38417
  const st = m === j && J.id === H;
38418
38418
  mA.setState(J, m, st);
38419
38419
  }
38420
38420
  let Be = !1;
38421
- J.version === MA.__version ? (MA.needsLights && MA.lightsStateVersion !== ue.state.version || MA.outputColorSpace !== lA || v.isBatchedMesh && MA.batching === !1 || !v.isBatchedMesh && MA.batching === !0 || v.isBatchedMesh && MA.batchingColor === !0 && v.colorTexture === null || v.isBatchedMesh && MA.batchingColor === !1 && v.colorTexture !== null || v.isInstancedMesh && MA.instancing === !1 || !v.isInstancedMesh && MA.instancing === !0 || v.isSkinnedMesh && MA.skinning === !1 || !v.isSkinnedMesh && MA.skinning === !0 || v.isInstancedMesh && MA.instancingColor === !0 && v.instanceColor === null || v.isInstancedMesh && MA.instancingColor === !1 && v.instanceColor !== null || v.isInstancedMesh && MA.instancingMorph === !0 && v.morphTexture === null || v.isInstancedMesh && MA.instancingMorph === !1 && v.morphTexture !== null || MA.envMap !== wA || J.fog === !0 && MA.fog !== cA || MA.numClippingPlanes !== void 0 && (MA.numClippingPlanes !== mA.numPlanes || MA.numIntersection !== mA.numIntersection) || MA.vertexAlphas !== RA || MA.vertexTangents !== FA || MA.morphTargets !== GA || MA.morphNormals !== ZA || MA.morphColors !== _e || MA.toneMapping !== Fe || MA.morphTargetsCount !== me) && (Be = !0) : (Be = !0, MA.__version = J.version);
38421
+ J.version === MA.__version ? (MA.needsLights && MA.lightsStateVersion !== ue.state.version || MA.outputColorSpace !== lA || v.isBatchedMesh && MA.batching === !1 || !v.isBatchedMesh && MA.batching === !0 || v.isBatchedMesh && MA.batchingColor === !0 && v.colorTexture === null || v.isBatchedMesh && MA.batchingColor === !1 && v.colorTexture !== null || v.isInstancedMesh && MA.instancing === !1 || !v.isInstancedMesh && MA.instancing === !0 || v.isSkinnedMesh && MA.skinning === !1 || !v.isSkinnedMesh && MA.skinning === !0 || v.isInstancedMesh && MA.instancingColor === !0 && v.instanceColor === null || v.isInstancedMesh && MA.instancingColor === !1 && v.instanceColor !== null || v.isInstancedMesh && MA.instancingMorph === !0 && v.morphTexture === null || v.isInstancedMesh && MA.instancingMorph === !1 && v.morphTexture !== null || MA.envMap !== wA || J.fog === !0 && MA.fog !== cA || MA.numClippingPlanes !== void 0 && (MA.numClippingPlanes !== mA.numPlanes || MA.numIntersection !== mA.numIntersection) || MA.vertexAlphas !== RA || MA.vertexTangents !== UA || MA.morphTargets !== GA || MA.morphNormals !== ZA || MA.morphColors !== _e || MA.toneMapping !== Ue || MA.morphTargetsCount !== me) && (Be = !0) : (Be = !0, MA.__version = J.version);
38422
38422
  let mt = MA.currentProgram;
38423
38423
  Be === !0 && (mt = $C(J, U, v));
38424
38424
  let tI = !1, yt = !1, PI = !1;
@@ -38481,9 +38481,9 @@ class yy {
38481
38481
  else if (lA.__hasExternalTextures)
38482
38482
  M.rebindTextures(m, f.get(m.texture).__webglTexture, f.get(m.depthTexture).__webglTexture);
38483
38483
  else if (m.depthBuffer) {
38484
- const FA = m.depthTexture;
38485
- if (lA.__boundDepthTexture !== FA) {
38486
- if (FA !== null && f.has(FA) && (m.width !== FA.image.width || m.height !== FA.image.height))
38484
+ const UA = m.depthTexture;
38485
+ if (lA.__boundDepthTexture !== UA) {
38486
+ if (UA !== null && f.has(UA) && (m.width !== UA.image.width || m.height !== UA.image.height))
38487
38487
  throw new Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");
38488
38488
  M.setupDepthRenderbuffer(m);
38489
38489
  }
@@ -38517,8 +38517,8 @@ class yy {
38517
38517
  if (m.isWebGLCubeRenderTarget && _A !== void 0 && (wA = wA[_A]), wA) {
38518
38518
  NA.bindFramebuffer(R.FRAMEBUFFER, wA);
38519
38519
  try {
38520
- const RA = m.textures[lA], FA = RA.format, GA = RA.type;
38521
- if (!be.textureFormatReadable(FA)) {
38520
+ const RA = m.textures[lA], UA = RA.format, GA = RA.type;
38521
+ if (!be.textureFormatReadable(UA)) {
38522
38522
  Ee("WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");
38523
38523
  return;
38524
38524
  }
@@ -38526,7 +38526,7 @@ class yy {
38526
38526
  Ee("WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
38527
38527
  return;
38528
38528
  }
38529
- U >= 0 && U <= m.width - J && T >= 0 && T <= m.height - v && (m.textures.length > 1 && R.readBuffer(R.COLOR_ATTACHMENT0 + lA), R.readPixels(U, T, J, v, oA.convert(FA), oA.convert(GA), cA));
38529
+ U >= 0 && U <= m.width - J && T >= 0 && T <= m.height - v && (m.textures.length > 1 && R.readBuffer(R.COLOR_ATTACHMENT0 + lA), R.readPixels(U, T, J, v, oA.convert(UA), oA.convert(GA), cA));
38530
38530
  } finally {
38531
38531
  const RA = L !== null ? f.get(L).__webglFramebuffer : null;
38532
38532
  NA.bindFramebuffer(R.FRAMEBUFFER, RA);
@@ -38539,17 +38539,17 @@ class yy {
38539
38539
  if (m.isWebGLCubeRenderTarget && _A !== void 0 && (wA = wA[_A]), wA)
38540
38540
  if (U >= 0 && U <= m.width - J && T >= 0 && T <= m.height - v) {
38541
38541
  NA.bindFramebuffer(R.FRAMEBUFFER, wA);
38542
- const RA = m.textures[lA], FA = RA.format, GA = RA.type;
38543
- if (!be.textureFormatReadable(FA))
38542
+ const RA = m.textures[lA], UA = RA.format, GA = RA.type;
38543
+ if (!be.textureFormatReadable(UA))
38544
38544
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");
38545
38545
  if (!be.textureTypeReadable(GA))
38546
38546
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");
38547
38547
  const ZA = R.createBuffer();
38548
- R.bindBuffer(R.PIXEL_PACK_BUFFER, ZA), R.bufferData(R.PIXEL_PACK_BUFFER, cA.byteLength, R.STREAM_READ), m.textures.length > 1 && R.readBuffer(R.COLOR_ATTACHMENT0 + lA), R.readPixels(U, T, J, v, oA.convert(FA), oA.convert(GA), 0);
38548
+ R.bindBuffer(R.PIXEL_PACK_BUFFER, ZA), R.bufferData(R.PIXEL_PACK_BUFFER, cA.byteLength, R.STREAM_READ), m.textures.length > 1 && R.readBuffer(R.COLOR_ATTACHMENT0 + lA), R.readPixels(U, T, J, v, oA.convert(UA), oA.convert(GA), 0);
38549
38549
  const _e = L !== null ? f.get(L).__webglFramebuffer : null;
38550
38550
  NA.bindFramebuffer(R.FRAMEBUFFER, _e);
38551
- const Fe = R.fenceSync(R.SYNC_GPU_COMMANDS_COMPLETE, 0);
38552
- return R.flush(), await WD(R, Fe, 4), R.bindBuffer(R.PIXEL_PACK_BUFFER, ZA), R.getBufferSubData(R.PIXEL_PACK_BUFFER, 0, cA), R.deleteBuffer(ZA), R.deleteSync(Fe), cA;
38551
+ const Ue = R.fenceSync(R.SYNC_GPU_COMMANDS_COMPLETE, 0);
38552
+ return R.flush(), await WD(R, Ue, 4), R.bindBuffer(R.PIXEL_PACK_BUFFER, ZA), R.getBufferSubData(R.PIXEL_PACK_BUFFER, 0, cA), R.deleteBuffer(ZA), R.deleteSync(Ue), cA;
38553
38553
  } else
38554
38554
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.");
38555
38555
  }, this.copyFramebufferToTexture = function(m, U = null, T = 0) {
@@ -38559,35 +38559,35 @@ class yy {
38559
38559
  const vh = R.createFramebuffer(), Kh = R.createFramebuffer();
38560
38560
  this.copyTextureToTexture = function(m, U, T = null, J = null, v = 0, cA = null) {
38561
38561
  cA === null && (v !== 0 ? (NC("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), cA = v, v = 0) : cA = 0);
38562
- let _A, lA, wA, RA, FA, GA, ZA, _e, Fe;
38563
- const Ue = m.isCompressedTexture ? m.mipmaps[cA] : m.image;
38562
+ let _A, lA, wA, RA, UA, GA, ZA, _e, Ue;
38563
+ const Le = m.isCompressedTexture ? m.mipmaps[cA] : m.image;
38564
38564
  if (T !== null)
38565
- _A = T.max.x - T.min.x, lA = T.max.y - T.min.y, wA = T.isBox3 ? T.max.z - T.min.z : 1, RA = T.min.x, FA = T.min.y, GA = T.isBox3 ? T.min.z : 0;
38565
+ _A = T.max.x - T.min.x, lA = T.max.y - T.min.y, wA = T.isBox3 ? T.max.z - T.min.z : 1, RA = T.min.x, UA = T.min.y, GA = T.isBox3 ? T.min.z : 0;
38566
38566
  else {
38567
38567
  const Ut = Math.pow(2, -v);
38568
- _A = Math.floor(Ue.width * Ut), lA = Math.floor(Ue.height * Ut), m.isDataArrayTexture ? wA = Ue.depth : m.isData3DTexture ? wA = Math.floor(Ue.depth * Ut) : wA = 1, RA = 0, FA = 0, GA = 0;
38568
+ _A = Math.floor(Le.width * Ut), lA = Math.floor(Le.height * Ut), m.isDataArrayTexture ? wA = Le.depth : m.isData3DTexture ? wA = Math.floor(Le.depth * Ut) : wA = 1, RA = 0, UA = 0, GA = 0;
38569
38569
  }
38570
- J !== null ? (ZA = J.x, _e = J.y, Fe = J.z) : (ZA = 0, _e = 0, Fe = 0);
38570
+ J !== null ? (ZA = J.x, _e = J.y, Ue = J.z) : (ZA = 0, _e = 0, Ue = 0);
38571
38571
  const me = oA.convert(U.format), MA = oA.convert(U.type);
38572
38572
  let ue;
38573
38573
  U.isData3DTexture ? (M.setTexture3D(U, 0), ue = R.TEXTURE_3D) : U.isDataArrayTexture || U.isCompressedArrayTexture ? (M.setTexture2DArray(U, 0), ue = R.TEXTURE_2D_ARRAY) : (M.setTexture2D(U, 0), ue = R.TEXTURE_2D), R.pixelStorei(R.UNPACK_FLIP_Y_WEBGL, U.flipY), R.pixelStorei(R.UNPACK_PREMULTIPLY_ALPHA_WEBGL, U.premultiplyAlpha), R.pixelStorei(R.UNPACK_ALIGNMENT, U.unpackAlignment);
38574
38574
  const Be = R.getParameter(R.UNPACK_ROW_LENGTH), mt = R.getParameter(R.UNPACK_IMAGE_HEIGHT), tI = R.getParameter(R.UNPACK_SKIP_PIXELS), yt = R.getParameter(R.UNPACK_SKIP_ROWS), PI = R.getParameter(R.UNPACK_SKIP_IMAGES);
38575
- R.pixelStorei(R.UNPACK_ROW_LENGTH, Ue.width), R.pixelStorei(R.UNPACK_IMAGE_HEIGHT, Ue.height), R.pixelStorei(R.UNPACK_SKIP_PIXELS, RA), R.pixelStorei(R.UNPACK_SKIP_ROWS, FA), R.pixelStorei(R.UNPACK_SKIP_IMAGES, GA);
38575
+ R.pixelStorei(R.UNPACK_ROW_LENGTH, Le.width), R.pixelStorei(R.UNPACK_IMAGE_HEIGHT, Le.height), R.pixelStorei(R.UNPACK_SKIP_PIXELS, RA), R.pixelStorei(R.UNPACK_SKIP_ROWS, UA), R.pixelStorei(R.UNPACK_SKIP_IMAGES, GA);
38576
38576
  const ke = m.isDataArrayTexture || m.isData3DTexture, dt = U.isDataArrayTexture || U.isData3DTexture;
38577
38577
  if (m.isDepthTexture) {
38578
38578
  const Ut = f.get(m), st = f.get(U), ht = f.get(Ut.__renderTarget), Ha = f.get(st.__renderTarget);
38579
38579
  NA.bindFramebuffer(R.READ_FRAMEBUFFER, ht.__webglFramebuffer), NA.bindFramebuffer(R.DRAW_FRAMEBUFFER, Ha.__webglFramebuffer);
38580
38580
  for (let mg = 0; mg < wA; mg++)
38581
- ke && (R.framebufferTextureLayer(R.READ_FRAMEBUFFER, R.COLOR_ATTACHMENT0, f.get(m).__webglTexture, v, GA + mg), R.framebufferTextureLayer(R.DRAW_FRAMEBUFFER, R.COLOR_ATTACHMENT0, f.get(U).__webglTexture, cA, Fe + mg)), R.blitFramebuffer(RA, FA, _A, lA, ZA, _e, _A, lA, R.DEPTH_BUFFER_BIT, R.NEAREST);
38581
+ ke && (R.framebufferTextureLayer(R.READ_FRAMEBUFFER, R.COLOR_ATTACHMENT0, f.get(m).__webglTexture, v, GA + mg), R.framebufferTextureLayer(R.DRAW_FRAMEBUFFER, R.COLOR_ATTACHMENT0, f.get(U).__webglTexture, cA, Ue + mg)), R.blitFramebuffer(RA, UA, _A, lA, ZA, _e, _A, lA, R.DEPTH_BUFFER_BIT, R.NEAREST);
38582
38582
  NA.bindFramebuffer(R.READ_FRAMEBUFFER, null), NA.bindFramebuffer(R.DRAW_FRAMEBUFFER, null);
38583
38583
  } else if (v !== 0 || m.isRenderTargetTexture || f.has(m)) {
38584
38584
  const Ut = f.get(m), st = f.get(U);
38585
38585
  NA.bindFramebuffer(R.READ_FRAMEBUFFER, vh), NA.bindFramebuffer(R.DRAW_FRAMEBUFFER, Kh);
38586
38586
  for (let ht = 0; ht < wA; ht++)
38587
- ke ? R.framebufferTextureLayer(R.READ_FRAMEBUFFER, R.COLOR_ATTACHMENT0, Ut.__webglTexture, v, GA + ht) : R.framebufferTexture2D(R.READ_FRAMEBUFFER, R.COLOR_ATTACHMENT0, R.TEXTURE_2D, Ut.__webglTexture, v), dt ? R.framebufferTextureLayer(R.DRAW_FRAMEBUFFER, R.COLOR_ATTACHMENT0, st.__webglTexture, cA, Fe + ht) : R.framebufferTexture2D(R.DRAW_FRAMEBUFFER, R.COLOR_ATTACHMENT0, R.TEXTURE_2D, st.__webglTexture, cA), v !== 0 ? R.blitFramebuffer(RA, FA, _A, lA, ZA, _e, _A, lA, R.COLOR_BUFFER_BIT, R.NEAREST) : dt ? R.copyTexSubImage3D(ue, cA, ZA, _e, Fe + ht, RA, FA, _A, lA) : R.copyTexSubImage2D(ue, cA, ZA, _e, RA, FA, _A, lA);
38587
+ ke ? R.framebufferTextureLayer(R.READ_FRAMEBUFFER, R.COLOR_ATTACHMENT0, Ut.__webglTexture, v, GA + ht) : R.framebufferTexture2D(R.READ_FRAMEBUFFER, R.COLOR_ATTACHMENT0, R.TEXTURE_2D, Ut.__webglTexture, v), dt ? R.framebufferTextureLayer(R.DRAW_FRAMEBUFFER, R.COLOR_ATTACHMENT0, st.__webglTexture, cA, Ue + ht) : R.framebufferTexture2D(R.DRAW_FRAMEBUFFER, R.COLOR_ATTACHMENT0, R.TEXTURE_2D, st.__webglTexture, cA), v !== 0 ? R.blitFramebuffer(RA, UA, _A, lA, ZA, _e, _A, lA, R.COLOR_BUFFER_BIT, R.NEAREST) : dt ? R.copyTexSubImage3D(ue, cA, ZA, _e, Ue + ht, RA, UA, _A, lA) : R.copyTexSubImage2D(ue, cA, ZA, _e, RA, UA, _A, lA);
38588
38588
  NA.bindFramebuffer(R.READ_FRAMEBUFFER, null), NA.bindFramebuffer(R.DRAW_FRAMEBUFFER, null);
38589
38589
  } else
38590
- dt ? m.isDataTexture || m.isData3DTexture ? R.texSubImage3D(ue, cA, ZA, _e, Fe, _A, lA, wA, me, MA, Ue.data) : U.isCompressedArrayTexture ? R.compressedTexSubImage3D(ue, cA, ZA, _e, Fe, _A, lA, wA, me, Ue.data) : R.texSubImage3D(ue, cA, ZA, _e, Fe, _A, lA, wA, me, MA, Ue) : m.isDataTexture ? R.texSubImage2D(R.TEXTURE_2D, cA, ZA, _e, _A, lA, me, MA, Ue.data) : m.isCompressedTexture ? R.compressedTexSubImage2D(R.TEXTURE_2D, cA, ZA, _e, Ue.width, Ue.height, me, Ue.data) : R.texSubImage2D(R.TEXTURE_2D, cA, ZA, _e, _A, lA, me, MA, Ue);
38590
+ dt ? m.isDataTexture || m.isData3DTexture ? R.texSubImage3D(ue, cA, ZA, _e, Ue, _A, lA, wA, me, MA, Le.data) : U.isCompressedArrayTexture ? R.compressedTexSubImage3D(ue, cA, ZA, _e, Ue, _A, lA, wA, me, Le.data) : R.texSubImage3D(ue, cA, ZA, _e, Ue, _A, lA, wA, me, MA, Le) : m.isDataTexture ? R.texSubImage2D(R.TEXTURE_2D, cA, ZA, _e, _A, lA, me, MA, Le.data) : m.isCompressedTexture ? R.compressedTexSubImage2D(R.TEXTURE_2D, cA, ZA, _e, Le.width, Le.height, me, Le.data) : R.texSubImage2D(R.TEXTURE_2D, cA, ZA, _e, _A, lA, me, MA, Le);
38591
38591
  R.pixelStorei(R.UNPACK_ROW_LENGTH, Be), R.pixelStorei(R.UNPACK_IMAGE_HEIGHT, mt), R.pixelStorei(R.UNPACK_SKIP_PIXELS, tI), R.pixelStorei(R.UNPACK_SKIP_ROWS, yt), R.pixelStorei(R.UNPACK_SKIP_IMAGES, PI), cA === 0 && U.generateMipmaps && R.generateMipmap(ue), NA.unbindTexture();
38592
38592
  }, this.initRenderTarget = function(m) {
38593
38593
  f.get(m).__webglFramebuffer === void 0 && M.setupRenderTarget(m);
@@ -40588,7 +40588,7 @@ let wi = class extends ti {
40588
40588
  <option value=${g} ?selected=${e === g}>${g}</option>
40589
40589
  `)}
40590
40590
  </select>
40591
- ${A ? fA`<div class="error-text">${A}</div>` : oe}
40591
+ ${A ? fA`<div class="error-text">${A}</div>` : Ce}
40592
40592
  </div>
40593
40593
  `;
40594
40594
  if (t.type === "boolean")
@@ -40618,7 +40618,7 @@ let wi = class extends ti {
40618
40618
  class=${A ? "invalid" : ""}
40619
40619
  @input=${(g) => this._onInput(t.name, g)}
40620
40620
  />
40621
- ${A ? fA`<div class="error-text">${A}</div>` : oe}
40621
+ ${A ? fA`<div class="error-text">${A}</div>` : Ce}
40622
40622
  </div>
40623
40623
  `;
40624
40624
  }
@@ -40634,7 +40634,7 @@ let wi = class extends ti {
40634
40634
  `}
40635
40635
  </div>
40636
40636
  </div>
40637
- ` : oe;
40637
+ ` : Ce;
40638
40638
  }
40639
40639
  };
40640
40640
  wi.styles = vy;
@@ -40648,16 +40648,16 @@ pg([
40648
40648
  O({ type: Boolean })
40649
40649
  ], wi.prototype, "visible", 2);
40650
40650
  pg([
40651
- UA()
40651
+ FA()
40652
40652
  ], wi.prototype, "_values", 2);
40653
40653
  pg([
40654
- UA()
40654
+ FA()
40655
40655
  ], wi.prototype, "_errors", 2);
40656
40656
  pg([
40657
- UA()
40657
+ FA()
40658
40658
  ], wi.prototype, "_submitted", 2);
40659
40659
  pg([
40660
- UA()
40660
+ FA()
40661
40661
  ], wi.prototype, "_animateIn", 2);
40662
40662
  wi = pg([
40663
40663
  AI("form-overlay")
@@ -41213,37 +41213,37 @@ PA([
41213
41213
  O({ type: String, attribute: "voice-service-url" })
41214
41214
  ], YA.prototype, "voiceServiceUrl", 2);
41215
41215
  PA([
41216
- UA()
41216
+ FA()
41217
41217
  ], YA.prototype, "callStatus", 2);
41218
41218
  PA([
41219
- UA()
41219
+ FA()
41220
41220
  ], YA.prototype, "microphoneEnabled", 2);
41221
41221
  PA([
41222
- UA()
41222
+ FA()
41223
41223
  ], YA.prototype, "microphoneInitialized", 2);
41224
41224
  PA([
41225
- UA()
41225
+ FA()
41226
41226
  ], YA.prototype, "showPrivacyModal", 2);
41227
41227
  PA([
41228
- UA()
41228
+ FA()
41229
41229
  ], YA.prototype, "widgetConfig", 2);
41230
41230
  PA([
41231
- UA()
41231
+ FA()
41232
41232
  ], YA.prototype, "configLoading", 2);
41233
41233
  PA([
41234
- UA()
41234
+ FA()
41235
41235
  ], YA.prototype, "formVisible", 2);
41236
41236
  PA([
41237
- UA()
41237
+ FA()
41238
41238
  ], YA.prototype, "formRequestId", 2);
41239
41239
  PA([
41240
- UA()
41240
+ FA()
41241
41241
  ], YA.prototype, "formFields", 2);
41242
41242
  PA([
41243
- UA()
41243
+ FA()
41244
41244
  ], YA.prototype, "domainBlocked", 2);
41245
41245
  PA([
41246
- UA()
41246
+ FA()
41247
41247
  ], YA.prototype, "errorKind", 2);
41248
41248
  PA([
41249
41249
  O({ type: String, attribute: "privacy-url" })
@@ -41844,25 +41844,25 @@ ge([
41844
41844
  O({ type: String, attribute: "voice-service-url" })
41845
41845
  ], zA.prototype, "voiceServiceUrl", 2);
41846
41846
  ge([
41847
- UA()
41847
+ FA()
41848
41848
  ], zA.prototype, "callStatus", 2);
41849
41849
  ge([
41850
- UA()
41850
+ FA()
41851
41851
  ], zA.prototype, "microphoneEnabled", 2);
41852
41852
  ge([
41853
- UA()
41853
+ FA()
41854
41854
  ], zA.prototype, "microphoneInitialized", 2);
41855
41855
  ge([
41856
- UA()
41856
+ FA()
41857
41857
  ], zA.prototype, "showPrivacyModal", 2);
41858
41858
  ge([
41859
- UA()
41859
+ FA()
41860
41860
  ], zA.prototype, "widgetConfig", 2);
41861
41861
  ge([
41862
- UA()
41862
+ FA()
41863
41863
  ], zA.prototype, "configLoading", 2);
41864
41864
  ge([
41865
- UA()
41865
+ FA()
41866
41866
  ], zA.prototype, "domainBlocked", 2);
41867
41867
  ge([
41868
41868
  O({ type: String, attribute: "privacy-url" })
@@ -42394,25 +42394,25 @@ Ie([
42394
42394
  O({ type: String, attribute: "voice-service-url" })
42395
42395
  ], $A.prototype, "voiceServiceUrl", 2);
42396
42396
  Ie([
42397
- UA()
42397
+ FA()
42398
42398
  ], $A.prototype, "callStatus", 2);
42399
42399
  Ie([
42400
- UA()
42400
+ FA()
42401
42401
  ], $A.prototype, "microphoneEnabled", 2);
42402
42402
  Ie([
42403
- UA()
42403
+ FA()
42404
42404
  ], $A.prototype, "microphoneInitialized", 2);
42405
42405
  Ie([
42406
- UA()
42406
+ FA()
42407
42407
  ], $A.prototype, "showPrivacyModal", 2);
42408
42408
  Ie([
42409
- UA()
42409
+ FA()
42410
42410
  ], $A.prototype, "widgetConfig", 2);
42411
42411
  Ie([
42412
- UA()
42412
+ FA()
42413
42413
  ], $A.prototype, "configLoading", 2);
42414
42414
  Ie([
42415
- UA()
42415
+ FA()
42416
42416
  ], $A.prototype, "domainBlocked", 2);
42417
42417
  Ie([
42418
42418
  O({ type: String, attribute: "privacy-url" })
@@ -42938,25 +42938,25 @@ te([
42938
42938
  O({ type: String, attribute: "voice-service-url" })
42939
42939
  ], XA.prototype, "voiceServiceUrl", 2);
42940
42940
  te([
42941
- UA()
42941
+ FA()
42942
42942
  ], XA.prototype, "callStatus", 2);
42943
42943
  te([
42944
- UA()
42944
+ FA()
42945
42945
  ], XA.prototype, "microphoneEnabled", 2);
42946
42946
  te([
42947
- UA()
42947
+ FA()
42948
42948
  ], XA.prototype, "microphoneInitialized", 2);
42949
42949
  te([
42950
- UA()
42950
+ FA()
42951
42951
  ], XA.prototype, "showPrivacyModal", 2);
42952
42952
  te([
42953
- UA()
42953
+ FA()
42954
42954
  ], XA.prototype, "widgetConfig", 2);
42955
42955
  te([
42956
- UA()
42956
+ FA()
42957
42957
  ], XA.prototype, "configLoading", 2);
42958
42958
  te([
42959
- UA()
42959
+ FA()
42960
42960
  ], XA.prototype, "domainBlocked", 2);
42961
42961
  te([
42962
42962
  O({ type: String, attribute: "privacy-url" })
@@ -46993,7 +46993,7 @@ function Y1(t) {
46993
46993
  const e = parseInt(A[1], 16), i = e >> 16 & 255, g = e >> 8 & 255, I = e & 255;
46994
46994
  return 0.2126 * i + 0.7152 * g + 0.0722 * I > 165 ? "#171717" : "#ffffff";
46995
46995
  }
46996
- var T1 = Object.defineProperty, q1 = Object.getOwnPropertyDescriptor, ze = (t, A, e, i) => {
46996
+ var T1 = Object.defineProperty, q1 = Object.getOwnPropertyDescriptor, We = (t, A, e, i) => {
46997
46997
  for (var g = i > 1 ? void 0 : i ? q1(A, e) : A, I = t.length - 1, C; I >= 0; I--)
46998
46998
  (C = t[I]) && (g = (i ? C(A, e, g) : C(g)) || g);
46999
46999
  return i && g && T1(A, e, g), g;
@@ -47047,9 +47047,9 @@ const P1 = {
47047
47047
  US: "212 555 0123",
47048
47048
  CA: "416 555 0123"
47049
47049
  };
47050
- let Te = class extends ti {
47050
+ let Fe = class extends ti {
47051
47051
  constructor() {
47052
- super(...arguments), this.agentId = "", this.apiBaseUrl = oi, this.skipFetch = !1, this.manifestOverride = null, this.theme = "", this.locale = "", this.view = { kind: "loading" }, this.manifest = null, this.selectedCountry = null, this.phoneRaw = "", this.phoneError = "", this.apiError = null, this.pickerOpen = !1, this.pickerSearch = "", this.emailRaw = "", this.emailError = "", this.emailStatus = "idle", this.recaptchaToken = null, this.recaptchaWidgetId = null, this.recaptchaRendering = !1, this.recaptchaHost = null, this.postSubmitView = null, this.pollAbort = null, this.pollTimer = null, this.lastFocusedBeforeOpen = null, this.onDocumentKey = (t) => {
47052
+ super(...arguments), this.agentId = "", this.apiBaseUrl = oi, this.skipFetch = !1, this.manifestOverride = null, this.theme = "", this.locale = "", this.view = { kind: "loading" }, this.manifest = null, this.selectedCountry = null, this.phoneRaw = "", this.phoneError = "", this.apiError = null, this.pickerOpen = !1, this.pickerSearch = "", this.emailRaw = "", this.emailError = "", this.emailStatus = "idle", this.showEmailCapture = !1, this.emailTimer = null, this.recaptchaToken = null, this.recaptchaWidgetId = null, this.recaptchaRendering = !1, this.recaptchaHost = null, this.postSubmitView = null, this.pollAbort = null, this.pollTimer = null, this.lastFocusedBeforeOpen = null, this.onDocumentKey = (t) => {
47053
47053
  t.key === "Escape" && this.view.kind !== "closed" && this.view.kind !== "loading" && this.close();
47054
47054
  }, this.open = () => {
47055
47055
  if (this.manifest) {
@@ -47091,7 +47091,7 @@ let Te = class extends ti {
47091
47091
  super.connectedCallback(), await this.loadManifest(), document.addEventListener("keydown", this.onDocumentKey);
47092
47092
  }
47093
47093
  disconnectedCallback() {
47094
- super.disconnectedCallback(), this.stopPolling(), this.teardownRecaptcha(), document.removeEventListener("keydown", this.onDocumentKey);
47094
+ super.disconnectedCallback(), this.stopPolling(), this.clearEmailTimer(), this.teardownRecaptcha(), document.removeEventListener("keydown", this.onDocumentKey);
47095
47095
  }
47096
47096
  updated(t) {
47097
47097
  t.has("manifestOverride") && this.skipFetch && this.manifestOverride && this.adoptManifest(this.manifestOverride), this.syncRecaptcha();
@@ -47294,6 +47294,20 @@ let Te = class extends ti {
47294
47294
  var t;
47295
47295
  this.pollTimer && clearTimeout(this.pollTimer), this.pollTimer = null, (t = this.pollAbort) == null || t.abort(), this.pollAbort = null;
47296
47296
  }
47297
+ /**
47298
+ * Reveal the email field a few seconds after dialing begins (not on hangup),
47299
+ * so we capture the address even if the visitor never reaches the completed
47300
+ * view. Idempotent — re-arming on every `dialing` poll is a no-op once the
47301
+ * timer is set or the field is already shown.
47302
+ */
47303
+ startEmailTimer() {
47304
+ this.emailTimer !== null || this.showEmailCapture || (this.emailTimer = window.setTimeout(() => {
47305
+ this.emailTimer = null, this.showEmailCapture = !0;
47306
+ }, Fe.EMAIL_CAPTURE_DELAY_MS));
47307
+ }
47308
+ clearEmailTimer() {
47309
+ this.emailTimer !== null && (clearTimeout(this.emailTimer), this.emailTimer = null);
47310
+ }
47297
47311
  onPollUpdate(t, A) {
47298
47312
  switch (A.status) {
47299
47313
  case "queued":
@@ -47305,21 +47319,21 @@ let Te = class extends ti {
47305
47319
  });
47306
47320
  return;
47307
47321
  case "dialing":
47308
- this.setPostSubmitView({ kind: "dialing", request_id: t });
47322
+ this.startEmailTimer(), this.setPostSubmitView({ kind: "dialing", request_id: t });
47309
47323
  return;
47310
47324
  case "completed":
47311
- this.stopPolling(), this.setPostSubmitView({ kind: "completed", request_id: t });
47325
+ this.stopPolling(), this.clearEmailTimer(), this.showEmailCapture = !0, this.setPostSubmitView({ kind: "completed", request_id: t });
47312
47326
  return;
47313
47327
  case "failed":
47314
47328
  case "expired":
47315
- this.stopPolling(), this.setPostSubmitView({
47329
+ this.stopPolling(), this.clearEmailTimer(), this.setPostSubmitView({
47316
47330
  kind: "failed",
47317
47331
  reason: A.failure_reason ?? "unknown",
47318
47332
  can_retry: !1
47319
47333
  });
47320
47334
  return;
47321
47335
  case "cancelled":
47322
- this.stopPolling(), this.view = { kind: "closed" };
47336
+ this.stopPolling(), this.clearEmailTimer(), this.view = { kind: "closed" };
47323
47337
  return;
47324
47338
  }
47325
47339
  }
@@ -47332,7 +47346,7 @@ let Te = class extends ti {
47332
47346
  render() {
47333
47347
  var g;
47334
47348
  if (this.view.kind === "loading" || this.view.kind === "manifest_error")
47335
- return oe;
47349
+ return Ce;
47336
47350
  const t = this.theme || ((g = this.manifest) == null ? void 0 : g.theme) || "default", A = J1(t), e = Y1(A), i = `--cb-primary: ${A}; --cb-on-primary: ${e};`;
47337
47351
  return this.view.kind === "closed" ? fA`
47338
47352
  <div class="root" style=${i}>
@@ -47402,7 +47416,7 @@ let Te = class extends ti {
47402
47416
  case "rate_limited":
47403
47417
  return this.renderRateLimited();
47404
47418
  default:
47405
- return oe;
47419
+ return Ce;
47406
47420
  }
47407
47421
  }
47408
47422
  renderForm() {
@@ -47429,12 +47443,12 @@ let Te = class extends ti {
47429
47443
  />
47430
47444
  </div>
47431
47445
 
47432
- ${this.phoneError ? fA`<div class="error">${this.phoneError}</div>` : oe}
47433
- ${this.apiError ? fA`<div class="error">${this.localizeError(this.apiError)}</div>` : oe}
47446
+ ${this.phoneError ? fA`<div class="error">${this.phoneError}</div>` : Ce}
47447
+ ${this.apiError ? fA`<div class="error">${this.localizeError(this.apiError)}</div>` : Ce}
47434
47448
 
47435
47449
  ${g ? fA`<div class="recaptcha-box">
47436
47450
  <slot name="recaptcha"></slot>
47437
- </div>` : oe}
47451
+ </div>` : Ce}
47438
47452
 
47439
47453
  <button
47440
47454
  class="submit-btn"
@@ -47449,7 +47463,7 @@ let Te = class extends ti {
47449
47463
  ${t.terms.terms_url ? fA`<a href=${t.terms.terms_url} target="_blank" rel="noopener">${this.t.terms_label}</a>` : fA`<span>${this.t.terms_label}</span>`}
47450
47464
  ${this.t.terms_and}
47451
47465
  ${t.terms.privacy_url ? fA`<a href=${t.terms.privacy_url} target="_blank" rel="noopener">${this.t.privacy_label}</a>` : fA`<span>${this.t.privacy_label}</span>`}.
47452
- </p>` : oe}
47466
+ </p>` : Ce}
47453
47467
  </form>
47454
47468
  </div>
47455
47469
  `;
@@ -47505,18 +47519,18 @@ let Te = class extends ti {
47505
47519
  <span class="flag">${o.flag}</span>
47506
47520
  <span class="name">${o.name}</span>
47507
47521
  <span class="dial">${o.dial_code}</span>
47508
- ${o.enabled ? oe : fA`<span class="badge">${this.t.coming_soon_badge}</span>`}
47522
+ ${o.enabled ? Ce : fA`<span class="badge">${this.t.coming_soon_badge}</span>`}
47509
47523
  </button>
47510
47524
  `
47511
47525
  )}
47512
47526
  </div>
47513
47527
  </div>
47514
- ` : oe}
47528
+ ` : Ce}
47515
47529
  </div>
47516
47530
  `;
47517
47531
  }
47518
47532
  renderQueued() {
47519
- if (this.view.kind !== "queued") return oe;
47533
+ if (this.view.kind !== "queued") return Ce;
47520
47534
  const t = this.t, A = Math.max(1, Math.round(this.view.eta_seconds / 60)), e = this.view.position === 0 ? t.queue_next : $n(t.queue_position, { n: this.view.position + 1 }), i = A === 1 ? t.queue_minute : t.queue_minutes;
47521
47535
  return fA`
47522
47536
  <div class="status">
@@ -47537,23 +47551,55 @@ let Te = class extends ti {
47537
47551
  ${this.ringingIcon()}
47538
47552
  <h3>${t.dialing_title}</h3>
47539
47553
  <p>${t.dialing_body}</p>
47554
+ ${this.showEmailCapture ? this.renderEmailCapture() : Ce}
47540
47555
  </div>
47541
47556
  `;
47542
47557
  }
47543
47558
  async onEmailSubmit(t) {
47544
- if (t.preventDefault(), this.view.kind !== "completed" || this.emailStatus === "sending") return;
47545
- const A = this.emailRaw.trim();
47546
- if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(A)) {
47559
+ t.preventDefault();
47560
+ const A = this.view.kind === "dialing" || this.view.kind === "completed" ? this.view.request_id : null;
47561
+ if (!A || this.emailStatus === "sending") return;
47562
+ const e = this.emailRaw.trim();
47563
+ if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)) {
47547
47564
  this.emailError = this.t.email_invalid;
47548
47565
  return;
47549
47566
  }
47550
47567
  this.emailError = "", this.emailStatus = "sending";
47551
47568
  try {
47552
- await l1(this.view.request_id, A, this.apiBaseUrl), this.emailStatus = "sent";
47569
+ await l1(A, e, this.apiBaseUrl), this.emailStatus = "sent";
47553
47570
  } catch {
47554
47571
  this.emailStatus = "idle", this.emailError = this.t.email_error;
47555
47572
  }
47556
47573
  }
47574
+ /** Optional email-capture form — shared by the dialing and completed views. */
47575
+ renderEmailCapture() {
47576
+ const t = this.t;
47577
+ return this.emailStatus === "sent" ? fA`<p class="status-hint">${t.email_sent}</p>` : fA`
47578
+ <form class="email-form" @submit=${this.onEmailSubmit} novalidate>
47579
+ <p class="email-label">${t.email_label}</p>
47580
+ <input
47581
+ class="phone-input email-input"
47582
+ type="email"
47583
+ autocomplete="email"
47584
+ inputmode="email"
47585
+ placeholder=${t.email_placeholder}
47586
+ .value=${this.emailRaw}
47587
+ ?disabled=${this.emailStatus === "sending"}
47588
+ @input=${(A) => {
47589
+ this.emailRaw = A.target.value, this.emailError && (this.emailError = "");
47590
+ }}
47591
+ />
47592
+ ${this.emailError ? fA`<div class="error">${this.emailError}</div>` : Ce}
47593
+ <button
47594
+ class="submit-btn"
47595
+ type="submit"
47596
+ ?disabled=${this.emailStatus === "sending" || !this.emailRaw}
47597
+ >
47598
+ ${this.emailStatus === "sending" ? t.email_sending : t.email_submit}
47599
+ </button>
47600
+ </form>
47601
+ `;
47602
+ }
47557
47603
  renderCompleted() {
47558
47604
  const t = this.t;
47559
47605
  return fA`
@@ -47561,31 +47607,7 @@ let Te = class extends ti {
47561
47607
  ${this.checkIcon()}
47562
47608
  <h3>${t.completed_title}</h3>
47563
47609
  <p>${t.completed_body}</p>
47564
- ${this.emailStatus === "sent" ? fA`<p class="status-hint">${t.email_sent}</p>` : fA`
47565
- <form class="email-form" @submit=${this.onEmailSubmit} novalidate>
47566
- <p class="email-label">${t.email_label}</p>
47567
- <input
47568
- class="phone-input email-input"
47569
- type="email"
47570
- autocomplete="email"
47571
- inputmode="email"
47572
- placeholder=${t.email_placeholder}
47573
- .value=${this.emailRaw}
47574
- ?disabled=${this.emailStatus === "sending"}
47575
- @input=${(A) => {
47576
- this.emailRaw = A.target.value, this.emailError && (this.emailError = "");
47577
- }}
47578
- />
47579
- ${this.emailError ? fA`<div class="error">${this.emailError}</div>` : oe}
47580
- <button
47581
- class="submit-btn"
47582
- type="submit"
47583
- ?disabled=${this.emailStatus === "sending" || !this.emailRaw}
47584
- >
47585
- ${this.emailStatus === "sending" ? t.email_sending : t.email_submit}
47586
- </button>
47587
- </form>
47588
- `}
47610
+ ${this.renderEmailCapture()}
47589
47611
  <button class="link-btn" type="button" @click=${this.close}>
47590
47612
  ${t.close_btn}
47591
47613
  </button>
@@ -47593,7 +47615,7 @@ let Te = class extends ti {
47593
47615
  `;
47594
47616
  }
47595
47617
  renderFailed() {
47596
- if (this.view.kind !== "failed") return oe;
47618
+ if (this.view.kind !== "failed") return Ce;
47597
47619
  const t = this.t, A = this.localizeError({
47598
47620
  error_code: this.view.reason || "unknown",
47599
47621
  message: this.view.reason
@@ -47657,7 +47679,8 @@ let Te = class extends ti {
47657
47679
  </svg>`;
47658
47680
  }
47659
47681
  };
47660
- Te.styles = $g`
47682
+ Fe.EMAIL_CAPTURE_DELAY_MS = 6e3;
47683
+ Fe.styles = $g`
47661
47684
  :host {
47662
47685
  --cb-primary: #f97316;
47663
47686
  --cb-on-primary: #ffffff;
@@ -48093,66 +48116,69 @@ Te.styles = $g`
48093
48116
  75% { transform: rotate(12deg); }
48094
48117
  }
48095
48118
  `;
48096
- ze([
48119
+ We([
48097
48120
  O({ type: String, attribute: "agent-id" })
48098
- ], Te.prototype, "agentId", 2);
48099
- ze([
48121
+ ], Fe.prototype, "agentId", 2);
48122
+ We([
48100
48123
  O({ type: String, attribute: "api-base-url" })
48101
- ], Te.prototype, "apiBaseUrl", 2);
48102
- ze([
48124
+ ], Fe.prototype, "apiBaseUrl", 2);
48125
+ We([
48103
48126
  O({ type: Boolean, attribute: "skip-fetch" })
48104
- ], Te.prototype, "skipFetch", 2);
48105
- ze([
48127
+ ], Fe.prototype, "skipFetch", 2);
48128
+ We([
48106
48129
  O({ type: Object, attribute: !1 })
48107
- ], Te.prototype, "manifestOverride", 2);
48108
- ze([
48130
+ ], Fe.prototype, "manifestOverride", 2);
48131
+ We([
48109
48132
  O({ type: String })
48110
- ], Te.prototype, "theme", 2);
48111
- ze([
48133
+ ], Fe.prototype, "theme", 2);
48134
+ We([
48112
48135
  O({ type: String })
48113
- ], Te.prototype, "locale", 2);
48114
- ze([
48115
- UA()
48116
- ], Te.prototype, "view", 2);
48117
- ze([
48118
- UA()
48119
- ], Te.prototype, "manifest", 2);
48120
- ze([
48121
- UA()
48122
- ], Te.prototype, "selectedCountry", 2);
48123
- ze([
48124
- UA()
48125
- ], Te.prototype, "phoneRaw", 2);
48126
- ze([
48127
- UA()
48128
- ], Te.prototype, "phoneError", 2);
48129
- ze([
48130
- UA()
48131
- ], Te.prototype, "apiError", 2);
48132
- ze([
48133
- UA()
48134
- ], Te.prototype, "pickerOpen", 2);
48135
- ze([
48136
- UA()
48137
- ], Te.prototype, "pickerSearch", 2);
48138
- ze([
48139
- UA()
48140
- ], Te.prototype, "emailRaw", 2);
48141
- ze([
48142
- UA()
48143
- ], Te.prototype, "emailError", 2);
48144
- ze([
48145
- UA()
48146
- ], Te.prototype, "emailStatus", 2);
48147
- ze([
48148
- UA()
48149
- ], Te.prototype, "recaptchaToken", 2);
48150
- Te = ze([
48136
+ ], Fe.prototype, "locale", 2);
48137
+ We([
48138
+ FA()
48139
+ ], Fe.prototype, "view", 2);
48140
+ We([
48141
+ FA()
48142
+ ], Fe.prototype, "manifest", 2);
48143
+ We([
48144
+ FA()
48145
+ ], Fe.prototype, "selectedCountry", 2);
48146
+ We([
48147
+ FA()
48148
+ ], Fe.prototype, "phoneRaw", 2);
48149
+ We([
48150
+ FA()
48151
+ ], Fe.prototype, "phoneError", 2);
48152
+ We([
48153
+ FA()
48154
+ ], Fe.prototype, "apiError", 2);
48155
+ We([
48156
+ FA()
48157
+ ], Fe.prototype, "pickerOpen", 2);
48158
+ We([
48159
+ FA()
48160
+ ], Fe.prototype, "pickerSearch", 2);
48161
+ We([
48162
+ FA()
48163
+ ], Fe.prototype, "emailRaw", 2);
48164
+ We([
48165
+ FA()
48166
+ ], Fe.prototype, "emailError", 2);
48167
+ We([
48168
+ FA()
48169
+ ], Fe.prototype, "emailStatus", 2);
48170
+ We([
48171
+ FA()
48172
+ ], Fe.prototype, "showEmailCapture", 2);
48173
+ We([
48174
+ FA()
48175
+ ], Fe.prototype, "recaptchaToken", 2);
48176
+ Fe = We([
48151
48177
  AI("hanc-ai-callback")
48152
- ], Te);
48178
+ ], Fe);
48153
48179
  export {
48154
48180
  zA as FloatingCall,
48155
- Te as HancAiCallback,
48181
+ Fe as HancAiCallback,
48156
48182
  YA as InlineCall,
48157
48183
  $A as PillCall,
48158
48184
  XA as PillFloatingCall,