hanc-webrtc-widgets 2.6.12 → 2.6.13

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.
@@ -739,7 +739,7 @@ var Ng = Object.defineProperty, Og = (i, e, t) => e in i ? Ng(i, e, {
739
739
  writable: !0,
740
740
  value: t
741
741
  }) : i[e] = t, Tu = (i, e, t) => Og(i, typeof e != "symbol" ? e + "" : e, t);
742
- class gn {
742
+ class bn {
743
743
  constructor() {
744
744
  Tu(this, "_locking"), Tu(this, "_locks"), this._locking = Promise.resolve(), this._locks = 0;
745
745
  }
@@ -2706,7 +2706,7 @@ const V = vv(
2706
2706
  }
2707
2707
  }
2708
2708
  );
2709
- class fn extends Md {
2709
+ class mn extends Md {
2710
2710
  constructor(e) {
2711
2711
  super(), this.seconds = kt.zero, this.nanos = 0, V.util.initPartial(e, this);
2712
2712
  }
@@ -2740,31 +2740,31 @@ class fn extends Md {
2740
2740
  return new Date(Number(this.seconds) * 1e3 + Math.ceil(this.nanos / 1e6));
2741
2741
  }
2742
2742
  static now() {
2743
- return fn.fromDate(/* @__PURE__ */ new Date());
2743
+ return mn.fromDate(/* @__PURE__ */ new Date());
2744
2744
  }
2745
2745
  static fromDate(e) {
2746
2746
  const t = e.getTime();
2747
- return new fn({
2747
+ return new mn({
2748
2748
  seconds: kt.parse(Math.floor(t / 1e3)),
2749
2749
  nanos: t % 1e3 * 1e6
2750
2750
  });
2751
2751
  }
2752
2752
  static fromBinary(e, t) {
2753
- return new fn().fromBinary(e, t);
2753
+ return new mn().fromBinary(e, t);
2754
2754
  }
2755
2755
  static fromJson(e, t) {
2756
- return new fn().fromJson(e, t);
2756
+ return new mn().fromJson(e, t);
2757
2757
  }
2758
2758
  static fromJsonString(e, t) {
2759
- return new fn().fromJsonString(e, t);
2759
+ return new mn().fromJsonString(e, t);
2760
2760
  }
2761
2761
  static equals(e, t) {
2762
- return V.util.equals(fn, e, t);
2762
+ return V.util.equals(mn, e, t);
2763
2763
  }
2764
2764
  }
2765
- fn.runtime = V;
2766
- fn.typeName = "google.protobuf.Timestamp";
2767
- fn.fields = V.util.newFieldList(() => [{
2765
+ mn.runtime = V;
2766
+ mn.typeName = "google.protobuf.Timestamp";
2767
+ mn.fields = V.util.newFieldList(() => [{
2768
2768
  no: 1,
2769
2769
  name: "seconds",
2770
2770
  kind: "scalar",
@@ -2787,7 +2787,7 @@ const wv = /* @__PURE__ */ V.makeMessageType("livekit.MetricsBatch", () => [{
2787
2787
  no: 2,
2788
2788
  name: "normalized_timestamp",
2789
2789
  kind: "message",
2790
- T: fn
2790
+ T: mn
2791
2791
  }, {
2792
2792
  no: 3,
2793
2793
  name: "str_data",
@@ -2846,7 +2846,7 @@ const wv = /* @__PURE__ */ V.makeMessageType("livekit.MetricsBatch", () => [{
2846
2846
  no: 2,
2847
2847
  name: "normalized_timestamp",
2848
2848
  kind: "message",
2849
- T: fn
2849
+ T: mn
2850
2850
  }, {
2851
2851
  no: 3,
2852
2852
  name: "value",
@@ -2887,12 +2887,12 @@ const wv = /* @__PURE__ */ V.makeMessageType("livekit.MetricsBatch", () => [{
2887
2887
  no: 6,
2888
2888
  name: "normalized_start_timestamp",
2889
2889
  kind: "message",
2890
- T: fn
2890
+ T: mn
2891
2891
  }, {
2892
2892
  no: 7,
2893
2893
  name: "normalized_end_timestamp",
2894
2894
  kind: "message",
2895
- T: fn,
2895
+ T: mn,
2896
2896
  opt: !0
2897
2897
  }, {
2898
2898
  no: 8,
@@ -3532,7 +3532,7 @@ const wv = /* @__PURE__ */ V.makeMessageType("livekit.MetricsBatch", () => [{
3532
3532
  kind: "scalar",
3533
3533
  T: 9
3534
3534
  /* ScalarType.STRING */
3535
- }]), pn = /* @__PURE__ */ V.makeMessageType("livekit.DataPacket", () => [{
3535
+ }]), gn = /* @__PURE__ */ V.makeMessageType("livekit.DataPacket", () => [{
3536
3536
  no: 1,
3537
3537
  name: "kind",
3538
3538
  kind: "enum",
@@ -7701,10 +7701,10 @@ class Z extends hi.EventEmitter {
7701
7701
  });
7702
7702
  }
7703
7703
  addAppVisibilityListener() {
7704
- mn() ? (this.isInBackground = document.visibilityState === "hidden", document.addEventListener("visibilitychange", this.appVisibilityChangedListener)) : this.isInBackground = !1;
7704
+ vn() ? (this.isInBackground = document.visibilityState === "hidden", document.addEventListener("visibilitychange", this.appVisibilityChangedListener)) : this.isInBackground = !1;
7705
7705
  }
7706
7706
  removeAppVisibilityListener() {
7707
- mn() && document.removeEventListener("visibilitychange", this.appVisibilityChangedListener);
7707
+ vn() && document.removeEventListener("visibilitychange", this.appVisibilityChangedListener);
7708
7708
  }
7709
7709
  }
7710
7710
  function Ys(i, e) {
@@ -7886,7 +7886,7 @@ function G0(i) {
7886
7886
  const e = i.split(V0);
7887
7887
  return e.length > 1 ? [e[0], i.substr(e[0].length + 1)] : [i, ""];
7888
7888
  }
7889
- function vn(i) {
7889
+ function yn(i) {
7890
7890
  return P(this, void 0, void 0, function* () {
7891
7891
  return new Promise((e) => Zt.setTimeout(e, i));
7892
7892
  });
@@ -7960,7 +7960,7 @@ function $0(i) {
7960
7960
  }
7961
7961
  function Kp() {
7962
7962
  var i, e;
7963
- return mn() ? (
7963
+ return vn() ? (
7964
7964
  // @ts-expect-error `userAgentData` is not yet part of typescript
7965
7965
  (e = (i = navigator.userAgentData) === null || i === void 0 ? void 0 : i.mobile) !== null && e !== void 0 ? e : /Tablet|iPad|Mobile|Android|BlackBerry/.test(navigator.userAgent)
7966
7966
  ) : !1;
@@ -7970,7 +7970,7 @@ function X0() {
7970
7970
  if (i)
7971
7971
  return i.name !== "Safari" && i.os !== "iOS" || i.os === "iOS" && i.osVersion && di(i.osVersion, e) >= 0 ? !0 : i.name === "Safari" && di(i.version, e) >= 0;
7972
7972
  }
7973
- function mn() {
7973
+ function vn() {
7974
7974
  return typeof document < "u";
7975
7975
  }
7976
7976
  function li() {
@@ -7991,7 +7991,7 @@ function Zp() {
7991
7991
  return i.platform;
7992
7992
  }
7993
7993
  function nh() {
7994
- if (mn())
7994
+ if (vn())
7995
7995
  return window.devicePixelRatio;
7996
7996
  if (li()) {
7997
7997
  let i = Jp();
@@ -8250,7 +8250,7 @@ function em(i) {
8250
8250
  const s = n.createAnalyser();
8251
8251
  s.fftSize = 2048;
8252
8252
  const r = s.frequencyBinCount, a = new Uint8Array(r);
8253
- n.createMediaStreamSource(new MediaStream([e.mediaStreamTrack])).connect(s), yield vn(t), s.getByteTimeDomainData(a);
8253
+ n.createMediaStreamSource(new MediaStream([e.mediaStreamTrack])).connect(s), yield yn(t), s.getByteTimeDomainData(a);
8254
8254
  const c = a.some((l) => l !== 128 && l !== 0);
8255
8255
  return n.close(), !c;
8256
8256
  }
@@ -8765,7 +8765,7 @@ var Gr;
8765
8765
  })(Gr || (Gr = {}));
8766
8766
  class fb {
8767
8767
  constructor() {
8768
- this.pendingTasks = /* @__PURE__ */ new Map(), this.taskMutex = new gn(), this.nextTaskIndex = 0;
8768
+ this.pendingTasks = /* @__PURE__ */ new Map(), this.taskMutex = new bn(), this.nextTaskIndex = 0;
8769
8769
  }
8770
8770
  run(e) {
8771
8771
  return P(this, void 0, void 0, function* () {
@@ -8839,7 +8839,7 @@ class Fd {
8839
8839
  var n;
8840
8840
  this.rtt = 0, this.state = Pt.DISCONNECTED, this.log = Qe, this._requestId = 0, this.resetCallbacks = () => {
8841
8841
  this.onAnswer = void 0, this.onLeave = void 0, this.onLocalTrackPublished = void 0, this.onLocalTrackUnpublished = void 0, this.onNegotiateRequested = void 0, this.onOffer = void 0, this.onRemoteMuteChanged = void 0, this.onSubscribedQualityUpdate = void 0, this.onTokenRefresh = void 0, this.onTrickle = void 0, this.onClose = void 0;
8842
- }, this.log = Pi((n = t.loggerName) !== null && n !== void 0 ? n : jn.Signal), this.loggerContextCb = t.loggerContextCb, this.useJSON = e, this.requestQueue = new fb(), this.queuedRequests = [], this.closingLock = new gn(), this.connectionLock = new gn(), this.state = Pt.DISCONNECTED;
8842
+ }, this.log = Pi((n = t.loggerName) !== null && n !== void 0 ? n : jn.Signal), this.loggerContextCb = t.loggerContextCb, this.useJSON = e, this.requestQueue = new fb(), this.queuedRequests = [], this.closingLock = new bn(), this.connectionLock = new bn(), this.state = Pt.DISCONNECTED;
8843
8843
  }
8844
8844
  get logContext() {
8845
8845
  var e, t;
@@ -8919,7 +8919,7 @@ class Fd {
8919
8919
  })), this.startPingInterval()), l(C.message.value)) : this.state === Pt.RECONNECTING && C.message.case !== "leave" ? (this.state = Pt.CONNECTED, s == null || s.removeEventListener("abort", h), this.startPingInterval(), ((p = C.message) === null || p === void 0 ? void 0 : p.case) === "reconnect" ? l(C.message.value) : (this.log.debug("declaring signal reconnected without reconnect response received", this.logContext), l(void 0), b = !0)) : this.isEstablishingConnection && C.message.case === "leave" ? d(new Ct("Received leave request while trying to (re)connect", st.LeaveRequest, void 0, C.message.value.reason)) : n.reconnect || d(new Ct("did not receive join response, got ".concat((x = C.message) === null || x === void 0 ? void 0 : x.case, " instead"), st.InternalError)), !b)
8920
8920
  return;
8921
8921
  }
8922
- this.signalLatency && (yield vn(this.signalLatency)), this.handleSignalResponse(C);
8922
+ this.signalLatency && (yield yn(this.signalLatency)), this.handleSignalResponse(C);
8923
8923
  }), this.ws.onclose = (v) => {
8924
8924
  this.isEstablishingConnection && d(new Ct("Websocket got closed during a (re)connection attempt", st.InternalError)), this.log.warn("websocket closed", Object.assign(Object.assign({}, this.logContext), {
8925
8925
  reason: v.reason,
@@ -8947,7 +8947,7 @@ class Fd {
8947
8947
  r();
8948
8948
  } : r();
8949
8949
  });
8950
- e.ws.readyState < e.ws.CLOSING && (e.ws.close(), yield Promise.race([s, vn(250)])), e.ws = void 0;
8950
+ e.ws.readyState < e.ws.CLOSING && (e.ws.close(), yield Promise.race([s, yn(250)])), e.ws = void 0;
8951
8951
  }
8952
8952
  } finally {
8953
8953
  t && (e.state = Pt.DISCONNECTED), n();
@@ -9101,7 +9101,7 @@ class Fd {
9101
9101
  }));
9102
9102
  return;
9103
9103
  }
9104
- if (s || (yield n.requestQueue.flush()), n.signalLatency && (yield vn(n.signalLatency)), n.isDisconnected) {
9104
+ if (s || (yield n.requestQueue.flush()), n.signalLatency && (yield yn(n.signalLatency)), n.isDisconnected) {
9105
9105
  n.log.debug("skipping signal request (type: ".concat(t.case, ") - SignalClient disconnected"));
9106
9106
  return;
9107
9107
  }
@@ -9970,7 +9970,7 @@ class ph extends hi.EventEmitter {
9970
9970
  }
9971
9971
  }), Eb), this.close = () => {
9972
9972
  this._pc && (this._pc.close(), this._pc.onconnectionstatechange = null, this._pc.oniceconnectionstatechange = null, this._pc.onicegatheringstatechange = null, this._pc.ondatachannel = null, this._pc.onnegotiationneeded = null, this._pc.onsignalingstatechange = null, this._pc.onicecandidate = null, this._pc.ondatachannel = null, this._pc.ontrack = null, this._pc.onconnectionstatechange = null, this._pc.oniceconnectionstatechange = null, this._pc = null);
9973
- }, this.log = Pi((n = t.loggerName) !== null && n !== void 0 ? n : jn.PCTransport), this.loggerOptions = t, this.config = e, this._pc = this.createPC(), this.offerLock = new gn();
9973
+ }, this.log = Pi((n = t.loggerName) !== null && n !== void 0 ? n : jn.PCTransport), this.loggerOptions = t, this.config = e, this._pc = this.createPC(), this.offerLock = new bn();
9974
9974
  }
9975
9975
  createPC() {
9976
9976
  const e = new RTCPeerConnection(this.config);
@@ -10350,7 +10350,7 @@ class Rb {
10350
10350
  }, this.publisher.onOffer = (r, a) => {
10351
10351
  var o;
10352
10352
  (o = this.onPublisherOffer) === null || o === void 0 || o.call(this, r, a);
10353
- }, this.state = Lt.NEW, this.connectionLock = new gn(), this.remoteOfferLock = new gn();
10353
+ }, this.state = Lt.NEW, this.connectionLock = new bn(), this.remoteOfferLock = new bn();
10354
10354
  }
10355
10355
  get logContext() {
10356
10356
  var e, t;
@@ -10482,7 +10482,7 @@ class Rb {
10482
10482
  s == null || s.signal.removeEventListener("abort", d), l(new Ct("could not establish pc connection", st.InternalError));
10483
10483
  }, a);
10484
10484
  for (; this.state !== Lt.CONNECTED; )
10485
- if (yield vn(50), s != null && s.signal.aborted) {
10485
+ if (yield yn(50), s != null && s.signal.aborted) {
10486
10486
  l(new Ct("room connection has been cancelled", st.Cancelled));
10487
10487
  return;
10488
10488
  }
@@ -10650,7 +10650,7 @@ class om extends Z {
10650
10650
  this.debouncedTrackMuteHandler.cancel("unmute"), yield this.resumeUpstream();
10651
10651
  }), this.handleEnded = () => {
10652
10652
  this.isInBackground && (this.reacquireTrack = !0), this._mediaStreamTrack.removeEventListener("mute", this.handleTrackMuteEvent), this._mediaStreamTrack.removeEventListener("unmute", this.handleTrackUnmuteEvent), this.emit(ae.Ended, this);
10653
- }, this.reacquireTrack = !1, this.providedByUser = s, this.muteLock = new gn(), this.pauseUpstreamLock = new gn(), this.trackChangeLock = new gn(), this.trackChangeLock.lock().then((a) => P(this, void 0, void 0, function* () {
10653
+ }, this.reacquireTrack = !1, this.providedByUser = s, this.muteLock = new bn(), this.pauseUpstreamLock = new bn(), this.trackChangeLock = new bn(), this.trackChangeLock.lock().then((a) => P(this, void 0, void 0, function* () {
10654
10654
  try {
10655
10655
  yield this.setMediaStreamTrack(e, !0);
10656
10656
  } finally {
@@ -10725,13 +10725,13 @@ class om extends Z {
10725
10725
  var n;
10726
10726
  if (e.kind === Z.Kind.Audio)
10727
10727
  throw new Error("cannot get dimensions for audio tracks");
10728
- ((n = Mn()) === null || n === void 0 ? void 0 : n.os) === "iOS" && (yield vn(10));
10728
+ ((n = Mn()) === null || n === void 0 ? void 0 : n.os) === "iOS" && (yield yn(10));
10729
10729
  const s = Date.now();
10730
10730
  for (; Date.now() - s < t; ) {
10731
10731
  const r = e.dimensions;
10732
10732
  if (r)
10733
10733
  return r;
10734
- yield vn(50);
10734
+ yield yn(50);
10735
10735
  }
10736
10736
  throw new Ci("unable to get track dimensions after timeout");
10737
10737
  }();
@@ -11109,7 +11109,7 @@ class uo extends om {
11109
11109
  }
11110
11110
  /* @internal */
11111
11111
  startMonitor() {
11112
- mn() && (this.monitorInterval || (this.monitorInterval = setInterval(() => {
11112
+ vn() && (this.monitorInterval || (this.monitorInterval = setInterval(() => {
11113
11113
  this.monitorSender();
11114
11114
  }, Hd)));
11115
11115
  }
@@ -11386,7 +11386,7 @@ class ho extends om {
11386
11386
  }), this._currentBitrate = c;
11387
11387
  }
11388
11388
  this.prevStats = a;
11389
- }), this.senderLock = new gn();
11389
+ }), this.senderLock = new bn();
11390
11390
  }
11391
11391
  get isSimulcast() {
11392
11392
  return !!(this.sender && this.sender.getParameters().encodings.length > 1);
@@ -11394,7 +11394,7 @@ class ho extends om {
11394
11394
  /* @internal */
11395
11395
  startMonitor(e) {
11396
11396
  var t;
11397
- if (this.signalClient = e, !mn())
11397
+ if (this.signalClient = e, !vn())
11398
11398
  return;
11399
11399
  const n = (t = this.sender) === null || t === void 0 ? void 0 : t.getParameters();
11400
11400
  n && (this.encodings = n.encodings), !this.monitorInterval && (this.monitorInterval = setInterval(() => {
@@ -11868,7 +11868,7 @@ class Kb extends hi.EventEmitter {
11868
11868
  }));
11869
11869
  return;
11870
11870
  }
11871
- const c = pn.fromBinary(new Uint8Array(o));
11871
+ const c = gn.fromBinary(new Uint8Array(o));
11872
11872
  if (c.sequence > 0 && c.participantSid !== "") {
11873
11873
  const l = this.reliableReceivedState.get(c.participantSid);
11874
11874
  if (l && c.sequence <= l)
@@ -11931,7 +11931,7 @@ class Kb extends hi.EventEmitter {
11931
11931
  }, this.log = Pi((t = e.loggerName) !== null && t !== void 0 ? t : jn.Engine), this.loggerOptions = {
11932
11932
  loggerName: e.loggerName,
11933
11933
  loggerContextCb: () => this.logContext
11934
- }, this.client = new Fd(void 0, this.loggerOptions), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new gn(), this.dataProcessLock = new gn(), this.dcBufferStatus = /* @__PURE__ */ new Map([[qe.LOSSY, !0], [qe.RELIABLE, !0]]), this.client.onParticipantUpdate = (n) => this.emit(le.ParticipantUpdate, n), this.client.onConnectionQuality = (n) => this.emit(le.ConnectionQualityUpdate, n), this.client.onRoomUpdate = (n) => this.emit(le.RoomUpdate, n), this.client.onSubscriptionError = (n) => this.emit(le.SubscriptionError, n), this.client.onSubscriptionPermissionUpdate = (n) => this.emit(le.SubscriptionPermissionUpdate, n), this.client.onSpeakersChanged = (n) => this.emit(le.SpeakersChanged, n), this.client.onStreamStateUpdate = (n) => this.emit(le.StreamStateChanged, n), this.client.onRequestResponse = (n) => this.emit(le.SignalRequestResponse, n);
11934
+ }, this.client = new Fd(void 0, this.loggerOptions), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new bn(), this.dataProcessLock = new bn(), this.dcBufferStatus = /* @__PURE__ */ new Map([[qe.LOSSY, !0], [qe.RELIABLE, !0]]), this.client.onParticipantUpdate = (n) => this.emit(le.ParticipantUpdate, n), this.client.onConnectionQuality = (n) => this.emit(le.ConnectionQualityUpdate, n), this.client.onRoomUpdate = (n) => this.emit(le.RoomUpdate, n), this.client.onSubscriptionError = (n) => this.emit(le.SubscriptionError, n), this.client.onSubscriptionPermissionUpdate = (n) => this.emit(le.SubscriptionPermissionUpdate, n), this.client.onSpeakersChanged = (n) => this.emit(le.SpeakersChanged, n), this.client.onStreamStateUpdate = (n) => this.emit(le.StreamStateChanged, n), this.client.onRequestResponse = (n) => this.emit(le.SignalRequestResponse, n);
11935
11935
  }
11936
11936
  /** @internal */
11937
11937
  get logContext() {
@@ -12303,7 +12303,7 @@ class Kb extends hi.EventEmitter {
12303
12303
  return P(this, void 0, void 0, function* () {
12304
12304
  this.pcState = Fn.Reconnecting, this.log.debug("waiting for peer connection to reconnect", this.logContext);
12305
12305
  try {
12306
- if (yield vn(Xb), !this.pcManager)
12306
+ if (yield yn(Xb), !this.pcManager)
12307
12307
  throw new qt("PC manager is closed");
12308
12308
  yield this.pcManager.ensurePCTransportConnection(void 0, this.peerConnectionTimeout), this.pcState = Fn.Connected;
12309
12309
  } catch (e) {
@@ -12314,7 +12314,7 @@ class Kb extends hi.EventEmitter {
12314
12314
  /** @internal */
12315
12315
  publishRpcResponse(e, t, n, s) {
12316
12316
  return P(this, void 0, void 0, function* () {
12317
- const r = new pn({
12317
+ const r = new gn({
12318
12318
  destinationIdentities: [e],
12319
12319
  kind: qe.RELIABLE,
12320
12320
  value: {
@@ -12337,7 +12337,7 @@ class Kb extends hi.EventEmitter {
12337
12337
  /** @internal */
12338
12338
  publishRpcAck(e, t) {
12339
12339
  return P(this, void 0, void 0, function* () {
12340
- const n = new pn({
12340
+ const n = new gn({
12341
12341
  destinationIdentities: [e],
12342
12342
  kind: qe.RELIABLE,
12343
12343
  value: {
@@ -12382,7 +12382,7 @@ class Kb extends hi.EventEmitter {
12382
12382
  else {
12383
12383
  const s = () => n("Engine closed");
12384
12384
  for (this.once(le.Closing, s); !this.dcBufferStatus.get(e); )
12385
- yield vn(10);
12385
+ yield yn(10);
12386
12386
  this.off(le.Closing, s), t();
12387
12387
  }
12388
12388
  }));
@@ -12410,7 +12410,7 @@ class Kb extends hi.EventEmitter {
12410
12410
  for (; (/* @__PURE__ */ new Date()).getTime() < d; ) {
12411
12411
  if (a.isICEConnected && ((r = n.dataChannelForKind(t, s)) === null || r === void 0 ? void 0 : r.readyState) === "open")
12412
12412
  return;
12413
- yield vn(50);
12413
+ yield yn(50);
12414
12414
  }
12415
12415
  throw new Ct("could not establish ".concat(o, " connection, state: ").concat(a.getICEConnectionState()), st.InternalError);
12416
12416
  }();
@@ -12521,10 +12521,10 @@ class Kb extends hi.EventEmitter {
12521
12521
  this.clearReconnectTimeout(), this.reconnectAttempts = 0;
12522
12522
  }
12523
12523
  registerOnLineListener() {
12524
- mn() && window.addEventListener("online", this.handleBrowserOnLine);
12524
+ vn() && window.addEventListener("online", this.handleBrowserOnLine);
12525
12525
  }
12526
12526
  deregisterOnLineListener() {
12527
- mn() && window.removeEventListener("online", this.handleBrowserOnLine);
12527
+ vn() && window.removeEventListener("online", this.handleBrowserOnLine);
12528
12528
  }
12529
12529
  }
12530
12530
  class Is extends Error {
@@ -13041,7 +13041,7 @@ class ry {
13041
13041
  operationType: (e == null ? void 0 : e.type) === "update" ? Xc.UPDATE : Xc.CREATE
13042
13042
  })
13043
13043
  }
13044
- }), o = e == null ? void 0 : e.destinationIdentities, c = new pn({
13044
+ }), o = e == null ? void 0 : e.destinationIdentities, c = new gn({
13045
13045
  destinationIdentities: o,
13046
13046
  value: {
13047
13047
  case: "streamHeader",
@@ -13060,7 +13060,7 @@ class ry {
13060
13060
  content: v,
13061
13061
  streamId: s,
13062
13062
  chunkIndex: hs(l)
13063
- }), p = new pn({
13063
+ }), p = new gn({
13064
13064
  destinationIdentities: o,
13065
13065
  value: {
13066
13066
  case: "streamChunk",
@@ -13075,7 +13075,7 @@ class ry {
13075
13075
  return P(this, void 0, void 0, function* () {
13076
13076
  const g = new Jc({
13077
13077
  streamId: s
13078
- }), v = new pn({
13078
+ }), v = new gn({
13079
13079
  destinationIdentities: o,
13080
13080
  value: {
13081
13081
  case: "streamTrailer",
@@ -13152,7 +13152,7 @@ class ry {
13152
13152
  name: l.name
13153
13153
  })
13154
13154
  }
13155
- }), u = new pn({
13155
+ }), u = new gn({
13156
13156
  destinationIdentities: c,
13157
13157
  value: {
13158
13158
  case: "streamHeader",
@@ -13161,7 +13161,7 @@ class ry {
13161
13161
  });
13162
13162
  yield this.engine.sendDataPacket(u, qe.RELIABLE);
13163
13163
  let h = 0;
13164
- const f = new gn(), g = this.engine, v = this.log, m = new WritableStream({
13164
+ const f = new bn(), g = this.engine, v = this.log, m = new WritableStream({
13165
13165
  write(x) {
13166
13166
  return P(this, void 0, void 0, function* () {
13167
13167
  const C = yield f.lock();
@@ -13170,7 +13170,7 @@ class ry {
13170
13170
  for (; b < x.byteLength; ) {
13171
13171
  const S = x.slice(b, b + Ch);
13172
13172
  yield g.waitForBufferStatusLow(qe.RELIABLE);
13173
- const M = new pn({
13173
+ const M = new gn({
13174
13174
  destinationIdentities: c,
13175
13175
  value: {
13176
13176
  case: "streamChunk",
@@ -13192,7 +13192,7 @@ class ry {
13192
13192
  return P(this, void 0, void 0, function* () {
13193
13193
  const x = new Jc({
13194
13194
  streamId: o
13195
- }), C = new pn({
13195
+ }), C = new gn({
13196
13196
  destinationIdentities: c,
13197
13197
  value: {
13198
13198
  case: "streamTrailer",
@@ -13575,7 +13575,7 @@ class cy {
13575
13575
  }, this.onLeavePiP = () => {
13576
13576
  var n;
13577
13577
  this.isPiP = Cr(this.element), (n = this.handleVisibilityChanged) === null || n === void 0 || n.call(this);
13578
- }, this.element = e, this.isIntersecting = t ?? Cl(e), this.isPiP = mn() && Cr(e), this.visibilityChangedAt = 0;
13578
+ }, this.element = e, this.isIntersecting = t ?? Cl(e), this.isPiP = vn() && Cr(e), this.visibilityChangedAt = 0;
13579
13579
  }
13580
13580
  width() {
13581
13581
  return this.element.clientWidth;
@@ -14114,7 +14114,7 @@ class fy extends fm {
14114
14114
  yield o.mute();
14115
14115
  else if (yi(o) || Oi(o))
14116
14116
  try {
14117
- if (mn())
14117
+ if (vn())
14118
14118
  try {
14119
14119
  const c = yield navigator == null ? void 0 : navigator.permissions.query({
14120
14120
  // the permission query for camera and microphone currently not supported in Safari and Firefox
@@ -14235,7 +14235,7 @@ class fy extends fm {
14235
14235
  this.pendingSignalRequests.delete(h), o();
14236
14236
  return;
14237
14237
  }
14238
- yield vn(50);
14238
+ yield yn(50);
14239
14239
  }
14240
14240
  c(new Zu("Request to update local metadata timed out", "TimeoutError"));
14241
14241
  } catch (u) {
@@ -14844,7 +14844,7 @@ class fy extends fm {
14844
14844
  var n = this;
14845
14845
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
14846
14846
  return function* () {
14847
- const r = s.reliable ? qe.RELIABLE : qe.LOSSY, a = s.destinationIdentities, o = s.topic, c = new pn({
14847
+ const r = s.reliable ? qe.RELIABLE : qe.LOSSY, a = s.destinationIdentities, o = s.topic, c = new gn({
14848
14848
  kind: r,
14849
14849
  value: {
14850
14850
  case: "user",
@@ -14868,7 +14868,7 @@ class fy extends fm {
14868
14868
  */
14869
14869
  publishDtmf(e, t) {
14870
14870
  return P(this, void 0, void 0, function* () {
14871
- const n = new pn({
14871
+ const n = new gn({
14872
14872
  kind: qe.RELIABLE,
14873
14873
  value: {
14874
14874
  case: "sipDtmf",
@@ -14889,7 +14889,7 @@ class fy extends fm {
14889
14889
  message: e,
14890
14890
  timestamp: Date.now(),
14891
14891
  attachedFiles: t == null ? void 0 : t.attachments
14892
- }, s = new pn({
14892
+ }, s = new gn({
14893
14893
  value: {
14894
14894
  case: "chatMessage",
14895
14895
  value: new $c(Object.assign(Object.assign({}, n), {
@@ -14906,7 +14906,7 @@ class fy extends fm {
14906
14906
  const n = Object.assign(Object.assign({}, t), {
14907
14907
  message: e,
14908
14908
  editTimestamp: Date.now()
14909
- }), s = new pn({
14909
+ }), s = new gn({
14910
14910
  value: {
14911
14911
  case: "chatMessage",
14912
14912
  value: new $c(Object.assign(Object.assign({}, n), {
@@ -15059,7 +15059,7 @@ class fy extends fm {
15059
15059
  /** @internal */
15060
15060
  publishRpcRequest(e, t, n, s, r) {
15061
15061
  return P(this, void 0, void 0, function* () {
15062
- const a = new pn({
15062
+ const a = new gn({
15063
15063
  destinationIdentities: [e],
15064
15064
  kind: qe.RELIABLE,
15065
15065
  value: {
@@ -15130,7 +15130,7 @@ class fy extends fm {
15130
15130
  });
15131
15131
  if (s)
15132
15132
  return s[1];
15133
- yield vn(20);
15133
+ yield yn(20);
15134
15134
  }
15135
15135
  });
15136
15136
  }
@@ -15569,7 +15569,7 @@ class cr extends hi.EventEmitter {
15569
15569
  } catch (h) {
15570
15570
  throw yield this.engine.close(), this.recreateEngine(), h;
15571
15571
  }
15572
- mn() && this.options.disconnectOnPageLeave && (window.addEventListener("pagehide", this.onPageLeave), window.addEventListener("beforeunload", this.onPageLeave)), mn() && document.addEventListener("freeze", this.onPageLeave), this.setAndEmitConnectionState(ut.Connected), this.emit(ne.Connected), this.registerConnectionReconcile();
15572
+ vn() && this.options.disconnectOnPageLeave && (window.addEventListener("pagehide", this.onPageLeave), window.addEventListener("beforeunload", this.onPageLeave)), vn() && document.addEventListener("freeze", this.onPageLeave), this.setAndEmitConnectionState(ut.Connected), this.emit(ne.Connected), this.registerConnectionReconcile();
15573
15573
  }), this.disconnect = function() {
15574
15574
  for (var a = arguments.length, o = new Array(a), c = 0; c < a; c++)
15575
15575
  o[c] = arguments[c];
@@ -15806,7 +15806,7 @@ class cr extends hi.EventEmitter {
15806
15806
  this.emit(ne.ParticipantPermissionsChanged, a, this.localParticipant);
15807
15807
  }, this.onLocalChatMessageSent = (a) => {
15808
15808
  this.emit(ne.ChatMessage, a, this.localParticipant);
15809
- }, this.setMaxListeners(100), this.remoteParticipants = /* @__PURE__ */ new Map(), this.sidToIdentity = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, Ab), e), this.log = Pi((n = this.options.loggerName) !== null && n !== void 0 ? n : jn.Room), this.transcriptionReceivedTimes = /* @__PURE__ */ new Map(), this.options.audioCaptureDefaults = Object.assign(Object.assign({}, sm), e == null ? void 0 : e.audioCaptureDefaults), this.options.videoCaptureDefaults = Object.assign(Object.assign({}, rm), e == null ? void 0 : e.videoCaptureDefaults), this.options.publishDefaults = Object.assign(Object.assign({}, wb), e == null ? void 0 : e.publishDefaults), this.maybeCreateEngine(), this.incomingDataStreamManager = new ny(), this.outgoingDataStreamManager = new ry(this.engine, this.log), this.disconnectLock = new gn(), this.localParticipant = new fy("", "", this.engine, this.options, this.rpcHandlers, this.outgoingDataStreamManager), this.options.videoCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("videoinput", Qi(this.options.videoCaptureDefaults.deviceId)), this.options.audioCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("audioinput", Qi(this.options.audioCaptureDefaults.deviceId)), !((s = this.options.audioOutput) === null || s === void 0) && s.deviceId && this.switchActiveDevice("audiooutput", Qi(this.options.audioOutput.deviceId)).catch((a) => this.log.warn("Could not set audio output: ".concat(a.message), this.logContext)), this.options.e2ee && this.setupE2EE(), mn()) {
15809
+ }, this.setMaxListeners(100), this.remoteParticipants = /* @__PURE__ */ new Map(), this.sidToIdentity = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, Ab), e), this.log = Pi((n = this.options.loggerName) !== null && n !== void 0 ? n : jn.Room), this.transcriptionReceivedTimes = /* @__PURE__ */ new Map(), this.options.audioCaptureDefaults = Object.assign(Object.assign({}, sm), e == null ? void 0 : e.audioCaptureDefaults), this.options.videoCaptureDefaults = Object.assign(Object.assign({}, rm), e == null ? void 0 : e.videoCaptureDefaults), this.options.publishDefaults = Object.assign(Object.assign({}, wb), e == null ? void 0 : e.publishDefaults), this.maybeCreateEngine(), this.incomingDataStreamManager = new ny(), this.outgoingDataStreamManager = new ry(this.engine, this.log), this.disconnectLock = new bn(), this.localParticipant = new fy("", "", this.engine, this.options, this.rpcHandlers, this.outgoingDataStreamManager), this.options.videoCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("videoinput", Qi(this.options.videoCaptureDefaults.deviceId)), this.options.audioCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("audioinput", Qi(this.options.audioCaptureDefaults.deviceId)), !((s = this.options.audioOutput) === null || s === void 0) && s.deviceId && this.switchActiveDevice("audiooutput", Qi(this.options.audioOutput.deviceId)).catch((a) => this.log.warn("Could not set audio output: ".concat(a.message), this.logContext)), this.options.e2ee && this.setupE2EE(), vn()) {
15810
15810
  const a = new AbortController();
15811
15811
  (r = navigator.mediaDevices) === null || r === void 0 || r.addEventListener("devicechange", this.handleDeviceChange, {
15812
15812
  signal: a.signal
@@ -16268,7 +16268,7 @@ class cr extends hi.EventEmitter {
16268
16268
  }), this.localParticipant.trackPublications.forEach((s) => {
16269
16269
  var r, a, o;
16270
16270
  s.track && this.localParticipant.unpublishTrack(s.track, e), e ? ((r = s.track) === null || r === void 0 || r.detach(), (a = s.track) === null || a === void 0 || a.stop()) : (o = s.track) === null || o === void 0 || o.stopMonitor();
16271
- }), this.localParticipant.off(ce.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).off(ce.ParticipantNameChanged, this.onLocalParticipantNameChanged).off(ce.AttributesChanged, this.onLocalAttributesChanged).off(ce.TrackMuted, this.onLocalTrackMuted).off(ce.TrackUnmuted, this.onLocalTrackUnmuted).off(ce.LocalTrackPublished, this.onLocalTrackPublished).off(ce.LocalTrackUnpublished, this.onLocalTrackUnpublished).off(ce.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).off(ce.MediaDevicesError, this.onMediaDevicesError).off(ce.AudioStreamAcquired, this.startAudio).off(ce.ChatMessage, this.onLocalChatMessageSent).off(ce.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged), this.localParticipant.trackPublications.clear(), this.localParticipant.videoTrackPublications.clear(), this.localParticipant.audioTrackPublications.clear(), this.remoteParticipants.clear(), this.sidToIdentity.clear(), this.activeSpeakers = [], this.audioContext && typeof this.options.webAudioMix == "boolean" && (this.audioContext.close(), this.audioContext = void 0), mn() && (window.removeEventListener("beforeunload", this.onPageLeave), window.removeEventListener("pagehide", this.onPageLeave), window.removeEventListener("freeze", this.onPageLeave), (n = navigator.mediaDevices) === null || n === void 0 || n.removeEventListener("devicechange", this.handleDeviceChange));
16271
+ }), this.localParticipant.off(ce.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).off(ce.ParticipantNameChanged, this.onLocalParticipantNameChanged).off(ce.AttributesChanged, this.onLocalAttributesChanged).off(ce.TrackMuted, this.onLocalTrackMuted).off(ce.TrackUnmuted, this.onLocalTrackUnmuted).off(ce.LocalTrackPublished, this.onLocalTrackPublished).off(ce.LocalTrackUnpublished, this.onLocalTrackUnpublished).off(ce.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).off(ce.MediaDevicesError, this.onMediaDevicesError).off(ce.AudioStreamAcquired, this.startAudio).off(ce.ChatMessage, this.onLocalChatMessageSent).off(ce.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged), this.localParticipant.trackPublications.clear(), this.localParticipant.videoTrackPublications.clear(), this.localParticipant.audioTrackPublications.clear(), this.remoteParticipants.clear(), this.sidToIdentity.clear(), this.activeSpeakers = [], this.audioContext && typeof this.options.webAudioMix == "boolean" && (this.audioContext.close(), this.audioContext = void 0), vn() && (window.removeEventListener("beforeunload", this.onPageLeave), window.removeEventListener("pagehide", this.onPageLeave), window.removeEventListener("freeze", this.onPageLeave), (n = navigator.mediaDevices) === null || n === void 0 || n.removeEventListener("devicechange", this.handleDeviceChange));
16272
16272
  } finally {
16273
16273
  this.setAndEmitConnectionState(ut.Disconnected), this.emit(ne.Disconnected, t);
16274
16274
  }
@@ -16338,7 +16338,7 @@ class cr extends hi.EventEmitter {
16338
16338
  var e, t;
16339
16339
  if (typeof this.options.webAudioMix != "boolean" && this.options.webAudioMix.audioContext ? this.audioContext = this.options.webAudioMix.audioContext : (!this.audioContext || this.audioContext.state === "closed") && (this.audioContext = (e = tm()) !== null && e !== void 0 ? e : void 0), this.options.webAudioMix && this.remoteParticipants.forEach((s) => s.setAudioContext(this.audioContext)), this.localParticipant.setAudioContext(this.audioContext), this.audioContext && this.audioContext.state === "suspended")
16340
16340
  try {
16341
- yield Promise.race([this.audioContext.resume(), vn(200)]);
16341
+ yield Promise.race([this.audioContext.resume(), yn(200)]);
16342
16342
  } catch (s) {
16343
16343
  this.log.warn("Could not resume audio context", Object.assign(Object.assign({}, this.logContext), {
16344
16344
  error: s
@@ -16621,7 +16621,7 @@ class ns extends hi.EventEmitter {
16621
16621
  for (; Date.now() < s; ) {
16622
16622
  if (n)
16623
16623
  return;
16624
- yield vn(100);
16624
+ yield yn(100);
16625
16625
  }
16626
16626
  throw new Error("Could not reconnect using ".concat(e, " protocol after 10 seconds"));
16627
16627
  });
@@ -17139,7 +17139,7 @@ const ni = Ks.getInstance();
17139
17139
  typeof window < "u" && window.addEventListener("pagehide", () => {
17140
17140
  ni.forceClose();
17141
17141
  });
17142
- const hn = class hn extends EventTarget {
17142
+ const pn = class pn extends EventTarget {
17143
17143
  constructor() {
17144
17144
  super(...arguments), this.room = null, this.callStatus = "idle", this.isReady = !1, this.error = null, this.microphoneEnabled = !1, this.connectedParticipants = [], this.userIdentity = "", this.roomName = "", this.audioPlaybackPrompt = !1, this.isAppleDevice = /iPhone|iPad|iPod|Macintosh|Mac OS/i.test(navigator.userAgent), this.agentAudioElements = [], this.unmuteTimer = null, this.speakingHandler = null, this.fadeContext = null, this.fadeContextAcquired = !1, this.fadeGains = /* @__PURE__ */ new Map(), this.fadeSetupPromise = null;
17145
17145
  }
@@ -17238,10 +17238,10 @@ const hn = class hn extends EventTarget {
17238
17238
  const h = setTimeout(() => {
17239
17239
  s.off(ne.ParticipantConnected, f), u();
17240
17240
  }, 2e3), f = (g) => {
17241
- hn.isAgentIdentity(g.identity) && (clearTimeout(h), s.off(ne.ParticipantConnected, f), u());
17241
+ pn.isAgentIdentity(g.identity) && (clearTimeout(h), s.off(ne.ParticipantConnected, f), u());
17242
17242
  };
17243
17243
  for (const g of s.remoteParticipants.values())
17244
- if (hn.isAgentIdentity(g.identity)) {
17244
+ if (pn.isAgentIdentity(g.identity)) {
17245
17245
  clearTimeout(h), u();
17246
17246
  return;
17247
17247
  }
@@ -17275,7 +17275,7 @@ const hn = class hn extends EventTarget {
17275
17275
  ...this.connectedParticipants,
17276
17276
  t.identity
17277
17277
  ];
17278
- const n = hn.isAgentIdentity(t.identity);
17278
+ const n = pn.isAgentIdentity(t.identity);
17279
17279
  n && (this.updateStatus("agent-connected"), this.audioPlaybackPrompt = !0, this.dispatchEvent(
17280
17280
  new CustomEvent("agent-connected", {
17281
17281
  detail: { participant: t.identity }
@@ -17292,7 +17292,7 @@ const hn = class hn extends EventTarget {
17292
17292
  this.connectedParticipants = this.connectedParticipants.filter(
17293
17293
  (s) => s !== t.identity
17294
17294
  );
17295
- const n = hn.isAgentIdentity(t.identity);
17295
+ const n = pn.isAgentIdentity(t.identity);
17296
17296
  n && (this.audioPlaybackPrompt = !1, this.updateStatus("connected"), this.dispatchEvent(
17297
17297
  new CustomEvent("agent-disconnected", {
17298
17298
  detail: { participant: t.identity }
@@ -17308,7 +17308,7 @@ const hn = class hn extends EventTarget {
17308
17308
  (t, n, s) => {
17309
17309
  if (t.kind === "audio") {
17310
17310
  const r = t.attach();
17311
- document.body.appendChild(r), hn.isAgentIdentity(s.identity) && (this.agentAudioElements.push(r), this.setupAgentAudioFade(r)), this.dispatchEvent(
17311
+ document.body.appendChild(r), pn.isAgentIdentity(s.identity) && (this.agentAudioElements.push(r), this.setupAgentAudioFade(r)), this.dispatchEvent(
17312
17312
  new CustomEvent("audio-track-added", {
17313
17313
  detail: {
17314
17314
  participant: s.identity,
@@ -17358,16 +17358,16 @@ const hn = class hn extends EventTarget {
17358
17358
  );
17359
17359
  }), e.on(ne.AudioPlaybackStatusChanged, async () => {
17360
17360
  e.canPlaybackAudio || this.connectedParticipants.some(
17361
- (n) => hn.isAgentIdentity(n)
17361
+ (n) => pn.isAgentIdentity(n)
17362
17362
  ) && !this.audioPlaybackPrompt && (this.updateStatus("agent-connected"), this.audioPlaybackPrompt = !0), this.dispatchEvent(
17363
17363
  new CustomEvent("audio-playback-status-changed", {
17364
17364
  detail: { canPlayback: e.canPlaybackAudio }
17365
17365
  })
17366
17366
  );
17367
17367
  }), this.speakingHandler = (t) => {
17368
- t ? (this.unmuteTimer && (clearTimeout(this.unmuteTimer), this.unmuteTimer = null), this.rampAgentGain(0, hn.FADEOUT_TC)) : this.unmuteTimer = setTimeout(() => {
17369
- this.unmuteTimer = null, this.rampAgentGain(1, hn.FADEIN_TC);
17370
- }, hn.UNMUTE_HOLDOVER_MS);
17368
+ t ? (this.unmuteTimer && (clearTimeout(this.unmuteTimer), this.unmuteTimer = null), this.rampAgentGain(0, pn.FADEOUT_TC)) : this.unmuteTimer = setTimeout(() => {
17369
+ this.unmuteTimer = null, this.rampAgentGain(1, pn.FADEIN_TC);
17370
+ }, pn.UNMUTE_HOLDOVER_MS);
17371
17371
  }, e.localParticipant.on("isSpeakingChanged", this.speakingHandler);
17372
17372
  }
17373
17373
  async toggleMicrophone() {
@@ -17477,8 +17477,8 @@ const hn = class hn extends EventTarget {
17477
17477
  });
17478
17478
  }
17479
17479
  };
17480
- hn.UNMUTE_HOLDOVER_MS = 350, hn.FADEOUT_TC = 0.045, hn.FADEIN_TC = 0.03;
17481
- let lr = hn;
17480
+ pn.UNMUTE_HOLDOVER_MS = 350, pn.FADEOUT_TC = 0.045, pn.FADEIN_TC = 0.03;
17481
+ let lr = pn;
17482
17482
  /**
17483
17483
  * @license
17484
17484
  * Copyright 2010-2025 Three.js Authors
@@ -22106,7 +22106,7 @@ class Wt {
22106
22106
  */
22107
22107
  lookAt(e, t, n) {
22108
22108
  const s = this.elements;
22109
- return _n.subVectors(e, t), _n.lengthSq() === 0 && (_n.z = 1), _n.normalize(), Vi.crossVectors(n, _n), Vi.lengthSq() === 0 && (Math.abs(n.z) === 1 ? _n.x += 1e-4 : _n.z += 1e-4, _n.normalize(), Vi.crossVectors(n, _n)), Vi.normalize(), Sa.crossVectors(_n, Vi), s[0] = Vi.x, s[4] = Sa.x, s[8] = _n.x, s[1] = Vi.y, s[5] = Sa.y, s[9] = _n.y, s[2] = Vi.z, s[6] = Sa.z, s[10] = _n.z, this;
22109
+ return xn.subVectors(e, t), xn.lengthSq() === 0 && (xn.z = 1), xn.normalize(), Vi.crossVectors(n, xn), Vi.lengthSq() === 0 && (Math.abs(n.z) === 1 ? xn.x += 1e-4 : xn.z += 1e-4, xn.normalize(), Vi.crossVectors(n, xn)), Vi.normalize(), Sa.crossVectors(xn, Vi), s[0] = Vi.x, s[4] = Sa.x, s[8] = xn.x, s[1] = Vi.y, s[5] = Sa.y, s[9] = xn.y, s[2] = Vi.z, s[6] = Sa.z, s[10] = xn.z, this;
22110
22110
  }
22111
22111
  /**
22112
22112
  * Post-multiplies this matrix by the given 4x4 matrix.
@@ -22561,7 +22561,7 @@ class Wt {
22561
22561
  return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
22562
22562
  }
22563
22563
  }
22564
- const Fs = /* @__PURE__ */ new B(), Nn = /* @__PURE__ */ new Wt(), m_ = /* @__PURE__ */ new B(0, 0, 0), g_ = /* @__PURE__ */ new B(1, 1, 1), Vi = /* @__PURE__ */ new B(), Sa = /* @__PURE__ */ new B(), _n = /* @__PURE__ */ new B(), Nh = /* @__PURE__ */ new Wt(), Oh = /* @__PURE__ */ new ra();
22564
+ const Fs = /* @__PURE__ */ new B(), Nn = /* @__PURE__ */ new Wt(), m_ = /* @__PURE__ */ new B(0, 0, 0), g_ = /* @__PURE__ */ new B(1, 1, 1), Vi = /* @__PURE__ */ new B(), Sa = /* @__PURE__ */ new B(), xn = /* @__PURE__ */ new B(), Nh = /* @__PURE__ */ new Wt(), Oh = /* @__PURE__ */ new ra();
22565
22565
  class Li {
22566
22566
  /**
22567
22567
  * Constructs a new euler instance.
@@ -24946,7 +24946,7 @@ class cn extends ci {
24946
24946
  }
24947
24947
  }
24948
24948
  let T_ = 0;
24949
- const Rn = /* @__PURE__ */ new Wt(), Uc = /* @__PURE__ */ new wn(), Hs = /* @__PURE__ */ new B(), Sn = /* @__PURE__ */ new aa(), Rr = /* @__PURE__ */ new aa(), Yt = /* @__PURE__ */ new B();
24949
+ const Rn = /* @__PURE__ */ new Wt(), Uc = /* @__PURE__ */ new wn(), Hs = /* @__PURE__ */ new B(), Tn = /* @__PURE__ */ new aa(), Rr = /* @__PURE__ */ new aa(), Yt = /* @__PURE__ */ new B();
24950
24950
  class Xn extends mr {
24951
24951
  /**
24952
24952
  * Constructs a new geometry.
@@ -25211,7 +25211,7 @@ class Xn extends mr {
25211
25211
  if (this.boundingBox.setFromBufferAttribute(e), t)
25212
25212
  for (let n = 0, s = t.length; n < s; n++) {
25213
25213
  const r = t[n];
25214
- Sn.setFromBufferAttribute(r), this.morphTargetsRelative ? (Yt.addVectors(this.boundingBox.min, Sn.min), this.boundingBox.expandByPoint(Yt), Yt.addVectors(this.boundingBox.max, Sn.max), this.boundingBox.expandByPoint(Yt)) : (this.boundingBox.expandByPoint(Sn.min), this.boundingBox.expandByPoint(Sn.max));
25214
+ Tn.setFromBufferAttribute(r), this.morphTargetsRelative ? (Yt.addVectors(this.boundingBox.min, Tn.min), this.boundingBox.expandByPoint(Yt), Yt.addVectors(this.boundingBox.max, Tn.max), this.boundingBox.expandByPoint(Yt)) : (this.boundingBox.expandByPoint(Tn.min), this.boundingBox.expandByPoint(Tn.max));
25215
25215
  }
25216
25216
  } else
25217
25217
  this.boundingBox.makeEmpty();
@@ -25231,12 +25231,12 @@ class Xn extends mr {
25231
25231
  }
25232
25232
  if (e) {
25233
25233
  const n = this.boundingSphere.center;
25234
- if (Sn.setFromBufferAttribute(e), t)
25234
+ if (Tn.setFromBufferAttribute(e), t)
25235
25235
  for (let r = 0, a = t.length; r < a; r++) {
25236
25236
  const o = t[r];
25237
- Rr.setFromBufferAttribute(o), this.morphTargetsRelative ? (Yt.addVectors(Sn.min, Rr.min), Sn.expandByPoint(Yt), Yt.addVectors(Sn.max, Rr.max), Sn.expandByPoint(Yt)) : (Sn.expandByPoint(Rr.min), Sn.expandByPoint(Rr.max));
25237
+ Rr.setFromBufferAttribute(o), this.morphTargetsRelative ? (Yt.addVectors(Tn.min, Rr.min), Tn.expandByPoint(Yt), Yt.addVectors(Tn.max, Rr.max), Tn.expandByPoint(Yt)) : (Tn.expandByPoint(Rr.min), Tn.expandByPoint(Rr.max));
25238
25238
  }
25239
- Sn.getCenter(n);
25239
+ Tn.getCenter(n);
25240
25240
  let s = 0;
25241
25241
  for (let r = 0, a = e.count; r < a; r++)
25242
25242
  Yt.fromBufferAttribute(e, r), s = Math.max(s, n.distanceToSquared(Yt));
@@ -37258,9 +37258,9 @@ class OE {
37258
37258
  else if (ft.get("WEBGL_multi_draw"))
37259
37259
  Tt.renderMultiDraw(O._multiDrawStarts, O._multiDrawCounts, O._multiDrawCount);
37260
37260
  else {
37261
- const De = O._multiDrawStarts, gt = O._multiDrawCounts, lt = O._multiDrawCount, bn = Ce ? j.get(Ce).bytesPerElement : 1, Rs = y.get(z).currentProgram.getUniforms();
37262
- for (let yn = 0; yn < lt; yn++)
37263
- Rs.setValue(I, "_gl_DrawID", yn), Tt.render(De[yn] / bn, gt[yn]);
37261
+ const De = O._multiDrawStarts, gt = O._multiDrawCounts, lt = O._multiDrawCount, _n = Ce ? j.get(Ce).bytesPerElement : 1, Rs = y.get(z).currentProgram.getUniforms();
37262
+ for (let Sn = 0; Sn < lt; Sn++)
37263
+ Rs.setValue(I, "_gl_DrawID", Sn), Tt.render(De[Sn] / _n, gt[Sn]);
37264
37264
  }
37265
37265
  else if (O.isInstancedMesh)
37266
37266
  Tt.renderInstances($e, It, O.count);
@@ -37415,8 +37415,8 @@ class OE {
37415
37415
  for (let yt = 0, It = U.length; yt < It; yt++) {
37416
37416
  const Dt = U[yt], { object: Tt, geometry: De, material: gt, group: lt } = Dt;
37417
37417
  if (gt.side === Ei && Tt.layers.test(z.layers)) {
37418
- const bn = gt.side;
37419
- gt.side = an, gt.needsUpdate = !0, du(Tt, G, z, De, gt, lt), gt.side = bn, gt.needsUpdate = !0, $e = !0;
37418
+ const _n = gt.side;
37419
+ gt.side = an, gt.needsUpdate = !0, du(Tt, G, z, De, gt, lt), gt.side = _n, gt.needsUpdate = !0, $e = !0;
37420
37420
  }
37421
37421
  }
37422
37422
  $e === !0 && (L.updateMultisampleRenderTarget(me), L.updateRenderTargetMipmap(me));
@@ -37471,18 +37471,18 @@ class OE {
37471
37471
  }
37472
37472
  let lt = !1;
37473
37473
  z.version === De.__version ? (De.needsLights && De.lightsStateVersion !== gt.state.version || De.outputColorSpace !== be || O.isBatchedMesh && De.batching === !1 || !O.isBatchedMesh && De.batching === !0 || O.isBatchedMesh && De.batchingColor === !0 && O.colorTexture === null || O.isBatchedMesh && De.batchingColor === !1 && O.colorTexture !== null || O.isInstancedMesh && De.instancing === !1 || !O.isInstancedMesh && De.instancing === !0 || O.isSkinnedMesh && De.skinning === !1 || !O.isSkinnedMesh && De.skinning === !0 || O.isInstancedMesh && De.instancingColor === !0 && O.instanceColor === null || O.isInstancedMesh && De.instancingColor === !1 && O.instanceColor !== null || O.isInstancedMesh && De.instancingMorph === !0 && O.morphTexture === null || O.isInstancedMesh && De.instancingMorph === !1 && O.morphTexture !== null || De.envMap !== Ce || z.fog === !0 && De.fog !== me || De.numClippingPlanes !== void 0 && (De.numClippingPlanes !== Ee.numPlanes || De.numIntersection !== Ee.numIntersection) || De.vertexAlphas !== ke || De.vertexTangents !== Le || De.morphTargets !== Ie || De.morphNormals !== $e || De.morphColors !== yt || De.toneMapping !== It || De.morphTargetsCount !== Tt) && (lt = !0) : (lt = !0, De.__version = z.version);
37474
- let bn = De.currentProgram;
37475
- lt === !0 && (bn = ha(z, U, O));
37476
- let Rs = !1, yn = !1, vr = !1;
37477
- const At = bn.getUniforms(), ln = De.uniforms;
37478
- if (Ae.useProgram(bn.program) && (Rs = !0, yn = !0, vr = !0), z.id !== q && (q = z.id, yn = !0), Rs || K !== E) {
37474
+ let _n = De.currentProgram;
37475
+ lt === !0 && (_n = ha(z, U, O));
37476
+ let Rs = !1, Sn = !1, vr = !1;
37477
+ const At = _n.getUniforms(), ln = De.uniforms;
37478
+ if (Ae.useProgram(_n.program) && (Rs = !0, Sn = !0, vr = !0), z.id !== q && (q = z.id, Sn = !0), Rs || K !== E) {
37479
37479
  Ae.buffers.depth.getReversed() && E.reversedDepth !== !0 && (E._reversedDepth = !0, E.updateProjectionMatrix()), At.setValue(I, "projectionMatrix", E.projectionMatrix), At.setValue(I, "viewMatrix", E.matrixWorldInverse);
37480
37480
  const dn = At.map.cameraPosition;
37481
37481
  dn !== void 0 && dn.setValue(I, at.setFromMatrixPosition(E.matrixWorld)), Mt.logarithmicDepthBuffer && At.setValue(
37482
37482
  I,
37483
37483
  "logDepthBufFC",
37484
37484
  2 / (Math.log(E.far + 1) / Math.LN2)
37485
- ), (z.isMeshPhongMaterial || z.isMeshToonMaterial || z.isMeshLambertMaterial || z.isMeshBasicMaterial || z.isMeshStandardMaterial || z.isShaderMaterial) && At.setValue(I, "isOrthographic", E.isOrthographicCamera === !0), K !== E && (K = E, yn = !0, vr = !0);
37485
+ ), (z.isMeshPhongMaterial || z.isMeshToonMaterial || z.isMeshLambertMaterial || z.isMeshBasicMaterial || z.isMeshStandardMaterial || z.isShaderMaterial) && At.setValue(I, "isOrthographic", E.isOrthographicCamera === !0), K !== E && (K = E, Sn = !0, vr = !0);
37486
37486
  }
37487
37487
  if (De.needsLights && (gt.state.directionalShadowMap.length > 0 && At.setValue(I, "directionalShadowMap", gt.state.directionalShadowMap, L), gt.state.spotShadowMap.length > 0 && At.setValue(I, "spotShadowMap", gt.state.spotShadowMap, L), gt.state.pointShadowMap.length > 0 && At.setValue(I, "pointShadowMap", gt.state.pointShadowMap, L)), O.isSkinnedMesh) {
37488
37488
  At.setOptional(I, O, "bindMatrix"), At.setOptional(I, O, "bindMatrixInverse");
@@ -37491,14 +37491,14 @@ class OE {
37491
37491
  }
37492
37492
  O.isBatchedMesh && (At.setOptional(I, O, "batchingTexture"), At.setValue(I, "batchingTexture", O._matricesTexture, L), At.setOptional(I, O, "batchingIdTexture"), At.setValue(I, "batchingIdTexture", O._indirectTexture, L), At.setOptional(I, O, "batchingColorTexture"), O._colorsTexture !== null && At.setValue(I, "batchingColorTexture", O._colorsTexture, L));
37493
37493
  const An = G.morphAttributes;
37494
- if ((An.position !== void 0 || An.normal !== void 0 || An.color !== void 0) && We.update(O, G, bn), (yn || De.receiveShadow !== O.receiveShadow) && (De.receiveShadow = O.receiveShadow, At.setValue(I, "receiveShadow", O.receiveShadow)), z.isMeshGouraudMaterial && z.envMap !== null && (ln.envMap.value = Ce, ln.flipEnvMap.value = Ce.isCubeTexture && Ce.isRenderTargetTexture === !1 ? -1 : 1), z.isMeshStandardMaterial && z.envMap === null && U.environment !== null && (ln.envMapIntensity.value = U.environmentIntensity), ln.dfgLUT !== void 0 && (ln.dfgLUT.value = NE()), yn && (At.setValue(I, "toneMappingExposure", _.toneMappingExposure), De.needsLights && eg(ln, vr), me && z.fog === !0 && Ue.refreshFogUniforms(ln, me), Ue.refreshMaterialUniforms(ln, z, Fe, Be, S.state.transmissionRenderTarget[E.id]), to.upload(I, uu(De), ln, L)), z.isShaderMaterial && z.uniformsNeedUpdate === !0 && (to.upload(I, uu(De), ln, L), z.uniformsNeedUpdate = !1), z.isSpriteMaterial && At.setValue(I, "center", O.center), At.setValue(I, "modelViewMatrix", O.modelViewMatrix), At.setValue(I, "normalMatrix", O.normalMatrix), At.setValue(I, "modelMatrix", O.matrixWorld), z.isShaderMaterial || z.isRawShaderMaterial) {
37494
+ if ((An.position !== void 0 || An.normal !== void 0 || An.color !== void 0) && We.update(O, G, _n), (Sn || De.receiveShadow !== O.receiveShadow) && (De.receiveShadow = O.receiveShadow, At.setValue(I, "receiveShadow", O.receiveShadow)), z.isMeshGouraudMaterial && z.envMap !== null && (ln.envMap.value = Ce, ln.flipEnvMap.value = Ce.isCubeTexture && Ce.isRenderTargetTexture === !1 ? -1 : 1), z.isMeshStandardMaterial && z.envMap === null && U.environment !== null && (ln.envMapIntensity.value = U.environmentIntensity), ln.dfgLUT !== void 0 && (ln.dfgLUT.value = NE()), Sn && (At.setValue(I, "toneMappingExposure", _.toneMappingExposure), De.needsLights && eg(ln, vr), me && z.fog === !0 && Ue.refreshFogUniforms(ln, me), Ue.refreshMaterialUniforms(ln, z, Fe, Be, S.state.transmissionRenderTarget[E.id]), to.upload(I, uu(De), ln, L)), z.isShaderMaterial && z.uniformsNeedUpdate === !0 && (to.upload(I, uu(De), ln, L), z.uniformsNeedUpdate = !1), z.isSpriteMaterial && At.setValue(I, "center", O.center), At.setValue(I, "modelViewMatrix", O.modelViewMatrix), At.setValue(I, "normalMatrix", O.normalMatrix), At.setValue(I, "modelMatrix", O.matrixWorld), z.isShaderMaterial || z.isRawShaderMaterial) {
37495
37495
  const sn = z.uniformsGroups;
37496
37496
  for (let dn = 0, Wo = sn.length; dn < Wo; dn++) {
37497
37497
  const ss = sn[dn];
37498
- se.update(ss, bn), se.bind(ss, bn);
37498
+ se.update(ss, _n), se.bind(ss, _n);
37499
37499
  }
37500
37500
  }
37501
- return bn;
37501
+ return _n;
37502
37502
  }
37503
37503
  function eg(E, U) {
37504
37504
  E.ambientLightColor.needsUpdate = U, E.lightProbe.needsUpdate = U, E.directionalLights.needsUpdate = U, E.directionalLightShadows.needsUpdate = U, E.pointLights.needsUpdate = U, E.pointLightShadows.needsUpdate = U, E.spotLights.needsUpdate = U, E.spotLightShadows.needsUpdate = U, E.rectAreaLights.needsUpdate = U, E.hemisphereLights.needsUpdate = U;
@@ -37623,7 +37623,7 @@ class OE {
37623
37623
  const Tt = oe.convert(U.format), De = oe.convert(U.type);
37624
37624
  let gt;
37625
37625
  U.isData3DTexture ? (L.setTexture3D(U, 0), gt = I.TEXTURE_3D) : U.isDataArrayTexture || U.isCompressedArrayTexture ? (L.setTexture2DArray(U, 0), gt = I.TEXTURE_2D_ARRAY) : (L.setTexture2D(U, 0), gt = I.TEXTURE_2D), I.pixelStorei(I.UNPACK_FLIP_Y_WEBGL, U.flipY), I.pixelStorei(I.UNPACK_PREMULTIPLY_ALPHA_WEBGL, U.premultiplyAlpha), I.pixelStorei(I.UNPACK_ALIGNMENT, U.unpackAlignment);
37626
- const lt = I.getParameter(I.UNPACK_ROW_LENGTH), bn = I.getParameter(I.UNPACK_IMAGE_HEIGHT), Rs = I.getParameter(I.UNPACK_SKIP_PIXELS), yn = I.getParameter(I.UNPACK_SKIP_ROWS), vr = I.getParameter(I.UNPACK_SKIP_IMAGES);
37626
+ const lt = I.getParameter(I.UNPACK_ROW_LENGTH), _n = I.getParameter(I.UNPACK_IMAGE_HEIGHT), Rs = I.getParameter(I.UNPACK_SKIP_PIXELS), Sn = I.getParameter(I.UNPACK_SKIP_ROWS), vr = I.getParameter(I.UNPACK_SKIP_IMAGES);
37627
37627
  I.pixelStorei(I.UNPACK_ROW_LENGTH, Dt.width), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, Dt.height), I.pixelStorei(I.UNPACK_SKIP_PIXELS, ke), I.pixelStorei(I.UNPACK_SKIP_ROWS, Le), I.pixelStorei(I.UNPACK_SKIP_IMAGES, Ie);
37628
37628
  const At = E.isDataArrayTexture || E.isData3DTexture, ln = U.isDataArrayTexture || U.isData3DTexture;
37629
37629
  if (E.isDepthTexture) {
@@ -37640,7 +37640,7 @@ class OE {
37640
37640
  Ae.bindFramebuffer(I.READ_FRAMEBUFFER, null), Ae.bindFramebuffer(I.DRAW_FRAMEBUFFER, null);
37641
37641
  } else
37642
37642
  ln ? E.isDataTexture || E.isData3DTexture ? I.texSubImage3D(gt, me, $e, yt, It, xe, be, Ce, Tt, De, Dt.data) : U.isCompressedArrayTexture ? I.compressedTexSubImage3D(gt, me, $e, yt, It, xe, be, Ce, Tt, Dt.data) : I.texSubImage3D(gt, me, $e, yt, It, xe, be, Ce, Tt, De, Dt) : E.isDataTexture ? I.texSubImage2D(I.TEXTURE_2D, me, $e, yt, xe, be, Tt, De, Dt.data) : E.isCompressedTexture ? I.compressedTexSubImage2D(I.TEXTURE_2D, me, $e, yt, Dt.width, Dt.height, Tt, Dt.data) : I.texSubImage2D(I.TEXTURE_2D, me, $e, yt, xe, be, Tt, De, Dt);
37643
- I.pixelStorei(I.UNPACK_ROW_LENGTH, lt), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, bn), I.pixelStorei(I.UNPACK_SKIP_PIXELS, Rs), I.pixelStorei(I.UNPACK_SKIP_ROWS, yn), I.pixelStorei(I.UNPACK_SKIP_IMAGES, vr), me === 0 && U.generateMipmaps && I.generateMipmap(gt), Ae.unbindTexture();
37643
+ I.pixelStorei(I.UNPACK_ROW_LENGTH, lt), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, _n), I.pixelStorei(I.UNPACK_SKIP_PIXELS, Rs), I.pixelStorei(I.UNPACK_SKIP_ROWS, Sn), I.pixelStorei(I.UNPACK_SKIP_IMAGES, vr), me === 0 && U.generateMipmaps && I.generateMipmap(gt), Ae.unbindTexture();
37644
37644
  }, this.initRenderTarget = function(E) {
37645
37645
  y.get(E).__webglFramebuffer === void 0 && L.setupRenderTarget(E);
37646
37646
  }, this.initTexture = function(E) {
@@ -38604,7 +38604,7 @@ class Uo {
38604
38604
  this.hasAcquired && (ni.release(), this.hasAcquired = !1);
38605
38605
  }
38606
38606
  }
38607
- const xn = {
38607
+ const hn = {
38608
38608
  default: {
38609
38609
  primary: "#6366f1",
38610
38610
  secondary: "#8b5cf6",
@@ -38725,8 +38725,19 @@ const xn = {
38725
38725
  // Deep pure red
38726
38726
  highlight: "#ff2030"
38727
38727
  // Bright red
38728
- }
38729
- }, Tn = {
38728
+ },
38729
+ "tangerine-neon": {
38730
+ primary: "#F97316",
38731
+ secondary: "#EF4444",
38732
+ accent: "#EC4899",
38733
+ glow: "#F97316",
38734
+ atmosphere: "#FB923C",
38735
+ depth: "#C2410C",
38736
+ // Deep burnt orange
38737
+ highlight: "#FDBA74"
38738
+ // Neon orange glow
38739
+ }
38740
+ }, fn = {
38730
38741
  indigo: {
38731
38742
  primary: "#3730a3",
38732
38743
  secondary: "#4338ca",
@@ -38836,147 +38847,170 @@ const xn = {
38836
38847
  // Deep dark red
38837
38848
  highlight: "#ff8a80"
38838
38849
  // Light red
38850
+ },
38851
+ "tangerine-neon": {
38852
+ primary: "#EA580C",
38853
+ secondary: "#F97316",
38854
+ accent: "#FB923C",
38855
+ glow: "#EA580C",
38856
+ atmosphere: "#F97316",
38857
+ depth: "#9A3412",
38858
+ // Deep orange-brown
38859
+ highlight: "#FDBA74"
38860
+ // Warm neon orange
38839
38861
  }
38840
38862
  };
38841
38863
  function oM(i, e = "dark") {
38842
- const t = e === "dark" ? xn : Tn;
38864
+ const t = e === "dark" ? hn : fn;
38843
38865
  return t[i] || t[Object.keys(t)[0]];
38844
38866
  }
38845
38867
  function cM(i = "dark") {
38846
- return Object.keys(i === "dark" ? xn : Tn);
38868
+ return Object.keys(i === "dark" ? hn : fn);
38847
38869
  }
38848
38870
  const ea = {
38849
38871
  default: {
38850
38872
  dark: {
38851
- colors: xn.default,
38873
+ colors: hn.default,
38852
38874
  glowIntensity: 1.2,
38853
38875
  idleGlowMultiplier: 0.6
38854
38876
  },
38855
38877
  light: {
38856
- colors: Tn.indigo,
38878
+ colors: fn.indigo,
38857
38879
  glowIntensity: 1.8,
38858
38880
  idleGlowMultiplier: 1.2
38859
38881
  }
38860
38882
  },
38861
38883
  emerald: {
38862
38884
  dark: {
38863
- colors: xn.emerald,
38885
+ colors: hn.emerald,
38864
38886
  glowIntensity: 1.2,
38865
38887
  idleGlowMultiplier: 0.6
38866
38888
  },
38867
38889
  light: {
38868
- colors: Tn.teal,
38890
+ colors: fn.teal,
38869
38891
  glowIntensity: 1.8,
38870
38892
  idleGlowMultiplier: 1.2
38871
38893
  }
38872
38894
  },
38873
38895
  rose: {
38874
38896
  dark: {
38875
- colors: xn.rose,
38897
+ colors: hn.rose,
38876
38898
  glowIntensity: 1.2,
38877
38899
  idleGlowMultiplier: 0.6
38878
38900
  },
38879
38901
  light: {
38880
- colors: Tn.pink,
38902
+ colors: fn.pink,
38881
38903
  glowIntensity: 1.8,
38882
38904
  idleGlowMultiplier: 1.2
38883
38905
  }
38884
38906
  },
38885
38907
  amber: {
38886
38908
  dark: {
38887
- colors: xn.amber,
38909
+ colors: hn.amber,
38888
38910
  glowIntensity: 1.2,
38889
38911
  idleGlowMultiplier: 0.6
38890
38912
  },
38891
38913
  light: {
38892
- colors: Tn.orange,
38914
+ colors: fn.orange,
38893
38915
  glowIntensity: 1.8,
38894
38916
  idleGlowMultiplier: 1.2
38895
38917
  }
38896
38918
  },
38897
38919
  cyan: {
38898
38920
  dark: {
38899
- colors: xn.cyan,
38921
+ colors: hn.cyan,
38900
38922
  glowIntensity: 1.2,
38901
38923
  idleGlowMultiplier: 0.6
38902
38924
  },
38903
38925
  light: {
38904
- colors: Tn.blue,
38926
+ colors: fn.blue,
38905
38927
  glowIntensity: 1.8,
38906
38928
  idleGlowMultiplier: 1.2
38907
38929
  }
38908
38930
  },
38909
38931
  purple: {
38910
38932
  dark: {
38911
- colors: xn.purple,
38933
+ colors: hn.purple,
38912
38934
  glowIntensity: 1.2,
38913
38935
  idleGlowMultiplier: 0.6
38914
38936
  },
38915
38937
  light: {
38916
- colors: Tn.violet,
38938
+ colors: fn.violet,
38917
38939
  glowIntensity: 1.8,
38918
38940
  idleGlowMultiplier: 1.2
38919
38941
  }
38920
38942
  },
38921
38943
  blue: {
38922
38944
  dark: {
38923
- colors: xn.blue,
38945
+ colors: hn.blue,
38924
38946
  glowIntensity: 1.2,
38925
38947
  idleGlowMultiplier: 0.6
38926
38948
  },
38927
38949
  light: {
38928
- colors: Tn.blue,
38950
+ colors: fn.blue,
38929
38951
  glowIntensity: 1.8,
38930
38952
  idleGlowMultiplier: 1.2
38931
38953
  }
38932
38954
  },
38933
38955
  white: {
38934
38956
  dark: {
38935
- colors: xn.white,
38957
+ colors: hn.white,
38936
38958
  glowIntensity: 1.2,
38937
38959
  idleGlowMultiplier: 0.6
38938
38960
  },
38939
38961
  light: {
38940
- colors: Tn.silver,
38962
+ colors: fn.silver,
38941
38963
  glowIntensity: 1.8,
38942
38964
  idleGlowMultiplier: 1.2
38943
38965
  }
38944
38966
  },
38945
38967
  black: {
38946
38968
  dark: {
38947
- colors: xn.black,
38969
+ colors: hn.black,
38948
38970
  glowIntensity: 1.2,
38949
38971
  idleGlowMultiplier: 0.6
38950
38972
  },
38951
38973
  light: {
38952
- colors: Tn.charcoal,
38974
+ colors: fn.charcoal,
38953
38975
  glowIntensity: 1.8,
38954
38976
  idleGlowMultiplier: 1.2
38955
38977
  }
38956
38978
  },
38957
38979
  tangerine: {
38958
38980
  dark: {
38959
- colors: xn.tangerine,
38981
+ colors: hn.tangerine,
38960
38982
  glowIntensity: 1.2,
38961
38983
  idleGlowMultiplier: 0.6
38962
38984
  },
38963
38985
  light: {
38964
- colors: Tn.tangerine,
38986
+ colors: fn.tangerine,
38965
38987
  glowIntensity: 1.8,
38966
38988
  idleGlowMultiplier: 1.2
38967
38989
  }
38968
38990
  },
38969
38991
  ember: {
38970
38992
  dark: {
38971
- colors: xn.ember,
38993
+ colors: hn.ember,
38972
38994
  glowIntensity: 1.2,
38973
38995
  idleGlowMultiplier: 0.6
38974
38996
  },
38975
38997
  light: {
38976
- colors: Tn.ember,
38998
+ colors: fn.ember,
38977
38999
  glowIntensity: 1.8,
38978
39000
  idleGlowMultiplier: 1.2
38979
39001
  }
39002
+ },
39003
+ "tangerine-neon": {
39004
+ dark: {
39005
+ colors: hn["tangerine-neon"],
39006
+ glowIntensity: 1.4,
39007
+ idleGlowMultiplier: 0.7
39008
+ },
39009
+ light: {
39010
+ colors: fn["tangerine-neon"],
39011
+ glowIntensity: 2,
39012
+ idleGlowMultiplier: 1.3
39013
+ }
38980
39014
  }
38981
39015
  }, lM = Object.fromEntries(
38982
39016
  Object.entries(ea).map(([i, e]) => [i, e.dark])
@@ -41691,7 +41725,7 @@ export {
41691
41725
  Uo as SoundManager,
41692
41726
  hM as applyTheme,
41693
41727
  fM as clearConfigCache,
41694
- xn as darkPresets,
41728
+ hn as darkPresets,
41695
41729
  lM as darkThemes,
41696
41730
  zo as fetchWidgetConfig,
41697
41731
  oM as getColorPreset,
@@ -41699,7 +41733,7 @@ export {
41699
41733
  ca as getTheme,
41700
41734
  uM as getThemeNames,
41701
41735
  Vo as isDomainAllowed,
41702
- Tn as lightPresets,
41736
+ fn as lightPresets,
41703
41737
  dM as lightThemes,
41704
41738
  ea as themes
41705
41739
  };