@sendity/client 0.1.9 → 0.1.11

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.
@@ -33,7 +33,7 @@ const ft = `<template id="sendity-tpl">
33
33
  </footer>
34
34
  </div>
35
35
  </template>
36
- `, Di = `/* Sendity client — passwordless channel-control authentication widget.
36
+ `, Bi = `/* Sendity client — passwordless channel-control authentication widget.
37
37
  Design tokens mirror the Sendity Design System (emerald accent, stone neutral,
38
38
  Zilla Slab display / Geist UI / Geist Mono). All values are overridable via
39
39
  CSS custom properties so the host page can theme the widget.
@@ -610,13 +610,20 @@ const ft = `<template id="sendity-tpl">
610
610
  display: inline-flex;
611
611
  align-items: center;
612
612
  gap: 0.5rem;
613
+ flex: 1 1 auto;
613
614
  min-width: 0;
615
+ overflow: hidden;
614
616
  }
615
617
 
616
- .sendity .footer-message { white-space: nowrap; }
618
+ .sendity .footer-message {
619
+ min-width: 0;
620
+ overflow: hidden;
621
+ text-overflow: ellipsis;
622
+ white-space: nowrap;
623
+ }
617
624
  .sendity .footer-timer {
618
625
  margin-left: auto;
619
- flex: none;
626
+ flex: 0 0 auto;
620
627
  font-variant-numeric: tabular-nums;
621
628
  font-feature-settings: "tnum";
622
629
  color: var(--sendity-fg-3);
@@ -693,7 +700,7 @@ const ft = `<template id="sendity-tpl">
693
700
  --sendity-shadow-error: 0 0 0 1px rgb(244 63 94 / 0.24), 0 18px 46px -18px rgb(244 63 94 / 0.9);
694
701
  }
695
702
  `;
696
- class Oe {
703
+ class We {
697
704
  constructor() {
698
705
  this.notificationCreatedEvent = ".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated";
699
706
  }
@@ -722,7 +729,7 @@ class Oe {
722
729
  return this.stopListening(".client-" + i, s);
723
730
  }
724
731
  }
725
- class Et {
732
+ class kt {
726
733
  /**
727
734
  * Create a new class instance.
728
735
  */
@@ -742,19 +749,19 @@ class Et {
742
749
  this.namespace = i;
743
750
  }
744
751
  }
745
- function Bi(g) {
752
+ function Di(g) {
746
753
  try {
747
754
  return Reflect.construct(String, [], g), !0;
748
755
  } catch {
749
756
  return !1;
750
757
  }
751
758
  }
752
- class Ne extends Oe {
759
+ class Ne extends We {
753
760
  /**
754
761
  * Create a new class instance.
755
762
  */
756
763
  constructor(i, s, a) {
757
- super(), this.name = s, this.pusher = i, this.options = a, this.eventFormatter = new Et(this.options.namespace), this.subscribe();
764
+ super(), this.name = s, this.pusher = i, this.options = a, this.eventFormatter = new kt(this.options.namespace), this.subscribe();
758
765
  }
759
766
  /**
760
767
  * Subscribe to a Pusher channel.
@@ -781,10 +788,10 @@ class Ne extends Oe {
781
788
  return this.subscription.bind_global((s, a) => {
782
789
  if (s.startsWith("pusher:"))
783
790
  return;
784
- let h = String(this.options.namespace ?? "").replace(
791
+ let d = String(this.options.namespace ?? "").replace(
785
792
  /\./g,
786
793
  "\\"
787
- ), l = s.startsWith(h) ? s.substring(h.length + 1) : "." + s;
794
+ ), l = s.startsWith(d) ? s.substring(d.length + 1) : "." + s;
788
795
  i(l, a);
789
796
  }), this;
790
797
  }
@@ -883,12 +890,12 @@ class $i extends xt {
883
890
  }), this;
884
891
  }
885
892
  }
886
- class Tt extends Oe {
893
+ class Et extends We {
887
894
  /**
888
895
  * Create a new class instance.
889
896
  */
890
897
  constructor(i, s, a) {
891
- super(), this.events = {}, this.listeners = {}, this.name = s, this.socket = i, this.options = a, this.eventFormatter = new Et(this.options.namespace), this.subscribe();
898
+ super(), this.events = {}, this.listeners = {}, this.name = s, this.socket = i, this.options = a, this.eventFormatter = new kt(this.options.namespace), this.subscribe();
892
899
  }
893
900
  /**
894
901
  * Subscribe to a Socket.io channel.
@@ -938,8 +945,8 @@ class Tt extends Oe {
938
945
  * Bind the channel's socket to an event and store the callback.
939
946
  */
940
947
  on(i, s) {
941
- return this.listeners[i] = this.listeners[i] || [], this.events[i] || (this.events[i] = (a, h) => {
942
- this.name === a && this.listeners[i] && this.listeners[i].forEach((l) => l(h));
948
+ return this.listeners[i] = this.listeners[i] || [], this.events[i] || (this.events[i] = (a, d) => {
949
+ this.name === a && this.listeners[i] && this.listeners[i].forEach((l) => l(d));
943
950
  }, this.socket.on(i, this.events[i])), this.listeners[i].push(s), this;
944
951
  }
945
952
  /**
@@ -959,7 +966,7 @@ class Tt extends Oe {
959
966
  )), (!s || this.listeners[i].length === 0) && (this.events[i] && (this.socket.removeListener(i, this.events[i]), delete this.events[i]), delete this.listeners[i]);
960
967
  }
961
968
  }
962
- class kt extends Tt {
969
+ class Tt extends Et {
963
970
  /**
964
971
  * Send a whisper event to other clients in the channel.
965
972
  */
@@ -971,7 +978,7 @@ class kt extends Tt {
971
978
  }), this;
972
979
  }
973
980
  }
974
- class Vi extends kt {
981
+ class Gi extends Tt {
975
982
  /**
976
983
  * Register a callback to be called anytime the member list changes.
977
984
  */
@@ -1009,7 +1016,7 @@ class Vi extends kt {
1009
1016
  ), this;
1010
1017
  }
1011
1018
  }
1012
- class ge extends Oe {
1019
+ class ge extends We {
1013
1020
  /**
1014
1021
  * Subscribe to a channel.
1015
1022
  */
@@ -1065,7 +1072,7 @@ class _t extends ge {
1065
1072
  return this;
1066
1073
  }
1067
1074
  }
1068
- class Xi extends ge {
1075
+ class Vi extends ge {
1069
1076
  /**
1070
1077
  * Send a whisper event to other clients in the channel.
1071
1078
  */
@@ -1073,7 +1080,7 @@ class Xi extends ge {
1073
1080
  return this;
1074
1081
  }
1075
1082
  }
1076
- class Gi extends _t {
1083
+ class Ki extends _t {
1077
1084
  /**
1078
1085
  * Register a callback to be called anytime the member list changes.
1079
1086
  */
@@ -1099,7 +1106,7 @@ class Gi extends _t {
1099
1106
  return this;
1100
1107
  }
1101
1108
  }
1102
- const At = class Lt {
1109
+ const At = class Pt {
1103
1110
  /**
1104
1111
  * Create a new class instance.
1105
1112
  */
@@ -1111,7 +1118,7 @@ const At = class Lt {
1111
1118
  */
1112
1119
  setOptions(i) {
1113
1120
  this.options = {
1114
- ...Lt._defaultOptions,
1121
+ ...Pt._defaultOptions,
1115
1122
  ...i,
1116
1123
  broadcaster: i.broadcaster
1117
1124
  };
@@ -1141,8 +1148,8 @@ At._defaultOptions = {
1141
1148
  key: null,
1142
1149
  namespace: "App.Events"
1143
1150
  };
1144
- let Ue = At;
1145
- class pe extends Ue {
1151
+ let He = At;
1152
+ class pe extends He {
1146
1153
  constructor() {
1147
1154
  super(...arguments), this.channels = {};
1148
1155
  }
@@ -1264,11 +1271,11 @@ class pe extends Ue {
1264
1271
  const s = () => {
1265
1272
  i(this.connectionStatus());
1266
1273
  }, a = ["state_change", "connected", "disconnected"];
1267
- return a.forEach((h) => {
1268
- this.pusher.connection.bind(h, s);
1274
+ return a.forEach((d) => {
1275
+ this.pusher.connection.bind(d, s);
1269
1276
  }), () => {
1270
- a.forEach((h) => {
1271
- this.pusher.connection.unbind(h, s);
1277
+ a.forEach((d) => {
1278
+ this.pusher.connection.unbind(d, s);
1272
1279
  });
1273
1280
  };
1274
1281
  }
@@ -1279,7 +1286,7 @@ class pe extends Ue {
1279
1286
  this.pusher.disconnect();
1280
1287
  }
1281
1288
  }
1282
- class Ji extends Ue {
1289
+ class Xi extends He {
1283
1290
  constructor() {
1284
1291
  super(...arguments), this.channels = {};
1285
1292
  }
@@ -1319,7 +1326,7 @@ class Ji extends Ue {
1319
1326
  * Get a channel instance by name.
1320
1327
  */
1321
1328
  channel(i) {
1322
- return this.channels[i] || (this.channels[i] = new Tt(
1329
+ return this.channels[i] || (this.channels[i] = new Et(
1323
1330
  this.socket,
1324
1331
  i,
1325
1332
  this.options
@@ -1329,7 +1336,7 @@ class Ji extends Ue {
1329
1336
  * Get a private channel instance by name.
1330
1337
  */
1331
1338
  privateChannel(i) {
1332
- return this.channels["private-" + i] || (this.channels["private-" + i] = new kt(
1339
+ return this.channels["private-" + i] || (this.channels["private-" + i] = new Tt(
1333
1340
  this.socket,
1334
1341
  "private-" + i,
1335
1342
  this.options
@@ -1339,7 +1346,7 @@ class Ji extends Ue {
1339
1346
  * Get a presence channel instance by name.
1340
1347
  */
1341
1348
  presenceChannel(i) {
1342
- return this.channels["presence-" + i] || (this.channels["presence-" + i] = new Vi(
1349
+ return this.channels["presence-" + i] || (this.channels["presence-" + i] = new Gi(
1343
1350
  this.socket,
1344
1351
  "presence-" + i,
1345
1352
  this.options
@@ -1386,11 +1393,11 @@ class Ji extends Ue {
1386
1393
  "reconnect_error",
1387
1394
  "reconnect_failed"
1388
1395
  ];
1389
- return a.forEach((h) => {
1390
- this.socket.on(h, s);
1396
+ return a.forEach((d) => {
1397
+ this.socket.on(d, s);
1391
1398
  }), () => {
1392
- a.forEach((h) => {
1393
- this.socket.off(h, s);
1399
+ a.forEach((d) => {
1400
+ this.socket.off(d, s);
1394
1401
  });
1395
1402
  };
1396
1403
  }
@@ -1401,7 +1408,7 @@ class Ji extends Ue {
1401
1408
  this.socket.disconnect();
1402
1409
  }
1403
1410
  }
1404
- class mt extends Ue {
1411
+ class mt extends He {
1405
1412
  constructor() {
1406
1413
  super(...arguments), this.channels = {};
1407
1414
  }
@@ -1432,13 +1439,13 @@ class mt extends Ue {
1432
1439
  * Get a private encrypted channel instance by name.
1433
1440
  */
1434
1441
  encryptedPrivateChannel(i) {
1435
- return new Xi();
1442
+ return new Vi();
1436
1443
  }
1437
1444
  /**
1438
1445
  * Get a presence channel instance by name.
1439
1446
  */
1440
1447
  presenceChannel(i) {
1441
- return new Gi();
1448
+ return new Ki();
1442
1449
  }
1443
1450
  /**
1444
1451
  * Leave the given channel, as well as its private and presence variants.
@@ -1475,7 +1482,7 @@ class mt extends Ue {
1475
1482
  disconnect() {
1476
1483
  }
1477
1484
  }
1478
- class Ki {
1485
+ class Ji {
1479
1486
  /**
1480
1487
  * Create a new class instance.
1481
1488
  */
@@ -1506,10 +1513,10 @@ class Ki {
1506
1513
  broadcaster: "pusher"
1507
1514
  });
1508
1515
  else if (this.options.broadcaster === "socket.io")
1509
- this.connector = new Ji(this.options);
1516
+ this.connector = new Xi(this.options);
1510
1517
  else if (this.options.broadcaster === "null")
1511
1518
  this.connector = new mt(this.options);
1512
- else if (typeof this.options.broadcaster == "function" && Bi(this.options.broadcaster))
1519
+ else if (typeof this.options.broadcaster == "function" && Di(this.options.broadcaster))
1513
1520
  this.connector = new this.options.broadcaster(this.options);
1514
1521
  else
1515
1522
  throw new Error(
@@ -1636,12 +1643,12 @@ class Ki {
1636
1643
  function Yi(g) {
1637
1644
  return g && g.__esModule && Object.prototype.hasOwnProperty.call(g, "default") ? g.default : g;
1638
1645
  }
1639
- var Pe = { exports: {} };
1646
+ var Le = { exports: {} };
1640
1647
  var gt;
1641
- function Qi() {
1648
+ function Zi() {
1642
1649
  return gt || (gt = 1, (function(g, i) {
1643
- (function(a, h) {
1644
- g.exports = h();
1650
+ (function(a, d) {
1651
+ g.exports = d();
1645
1652
  })(self, () => (
1646
1653
  /******/
1647
1654
  (() => {
@@ -1650,10 +1657,10 @@ function Qi() {
1650
1657
  594(m, v) {
1651
1658
  var y = this && this.__extends || /* @__PURE__ */ (function() {
1652
1659
  var x = function(u, p) {
1653
- return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, L) {
1654
- C.__proto__ = L;
1655
- } || function(C, L) {
1656
- for (var O in L) L.hasOwnProperty(O) && (C[O] = L[O]);
1660
+ return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, P) {
1661
+ C.__proto__ = P;
1662
+ } || function(C, P) {
1663
+ for (var W in P) P.hasOwnProperty(W) && (C[W] = P[W]);
1657
1664
  }, x(u, p);
1658
1665
  };
1659
1666
  return function(u, p) {
@@ -1665,7 +1672,7 @@ function Qi() {
1665
1672
  };
1666
1673
  })();
1667
1674
  Object.defineProperty(v, "__esModule", { value: !0 });
1668
- var T = 256, S = (
1675
+ var E = 256, S = (
1669
1676
  /** @class */
1670
1677
  (function() {
1671
1678
  function x(u) {
@@ -1675,13 +1682,13 @@ function Qi() {
1675
1682
  return this._paddingCharacter ? (u + 2) / 3 * 4 | 0 : (u * 8 + 5) / 6 | 0;
1676
1683
  }, x.prototype.encode = function(u) {
1677
1684
  for (var p = "", C = 0; C < u.length - 2; C += 3) {
1678
- var L = u[C] << 16 | u[C + 1] << 8 | u[C + 2];
1679
- p += this._encodeByte(L >>> 18 & 63), p += this._encodeByte(L >>> 12 & 63), p += this._encodeByte(L >>> 6 & 63), p += this._encodeByte(L >>> 0 & 63);
1685
+ var P = u[C] << 16 | u[C + 1] << 8 | u[C + 2];
1686
+ p += this._encodeByte(P >>> 18 & 63), p += this._encodeByte(P >>> 12 & 63), p += this._encodeByte(P >>> 6 & 63), p += this._encodeByte(P >>> 0 & 63);
1680
1687
  }
1681
- var O = u.length - C;
1682
- if (O > 0) {
1683
- var L = u[C] << 16 | (O === 2 ? u[C + 1] << 8 : 0);
1684
- p += this._encodeByte(L >>> 18 & 63), p += this._encodeByte(L >>> 12 & 63), O === 2 ? p += this._encodeByte(L >>> 6 & 63) : p += this._paddingCharacter || "", p += this._paddingCharacter || "";
1688
+ var W = u.length - C;
1689
+ if (W > 0) {
1690
+ var P = u[C] << 16 | (W === 2 ? u[C + 1] << 8 : 0);
1691
+ p += this._encodeByte(P >>> 18 & 63), p += this._encodeByte(P >>> 12 & 63), W === 2 ? p += this._encodeByte(P >>> 6 & 63) : p += this._paddingCharacter || "", p += this._paddingCharacter || "";
1685
1692
  }
1686
1693
  return p;
1687
1694
  }, x.prototype.maxDecodedLength = function(u) {
@@ -1691,17 +1698,17 @@ function Qi() {
1691
1698
  }, x.prototype.decode = function(u) {
1692
1699
  if (u.length === 0)
1693
1700
  return new Uint8Array(0);
1694
- for (var p = this._getPaddingLength(u), C = u.length - p, L = new Uint8Array(this.maxDecodedLength(C)), O = 0, q = 0, W = 0, G = 0, M = 0, H = 0, J = 0; q < C - 4; q += 4)
1695
- G = this._decodeChar(u.charCodeAt(q + 0)), M = this._decodeChar(u.charCodeAt(q + 1)), H = this._decodeChar(u.charCodeAt(q + 2)), J = this._decodeChar(u.charCodeAt(q + 3)), L[O++] = G << 2 | M >>> 4, L[O++] = M << 4 | H >>> 2, L[O++] = H << 6 | J, W |= G & T, W |= M & T, W |= H & T, W |= J & T;
1696
- if (q < C - 1 && (G = this._decodeChar(u.charCodeAt(q)), M = this._decodeChar(u.charCodeAt(q + 1)), L[O++] = G << 2 | M >>> 4, W |= G & T, W |= M & T), q < C - 2 && (H = this._decodeChar(u.charCodeAt(q + 2)), L[O++] = M << 4 | H >>> 2, W |= H & T), q < C - 3 && (J = this._decodeChar(u.charCodeAt(q + 3)), L[O++] = H << 6 | J, W |= J & T), W !== 0)
1701
+ for (var p = this._getPaddingLength(u), C = u.length - p, P = new Uint8Array(this.maxDecodedLength(C)), W = 0, z = 0, U = 0, K = 0, M = 0, q = 0, X = 0; z < C - 4; z += 4)
1702
+ K = this._decodeChar(u.charCodeAt(z + 0)), M = this._decodeChar(u.charCodeAt(z + 1)), q = this._decodeChar(u.charCodeAt(z + 2)), X = this._decodeChar(u.charCodeAt(z + 3)), P[W++] = K << 2 | M >>> 4, P[W++] = M << 4 | q >>> 2, P[W++] = q << 6 | X, U |= K & E, U |= M & E, U |= q & E, U |= X & E;
1703
+ if (z < C - 1 && (K = this._decodeChar(u.charCodeAt(z)), M = this._decodeChar(u.charCodeAt(z + 1)), P[W++] = K << 2 | M >>> 4, U |= K & E, U |= M & E), z < C - 2 && (q = this._decodeChar(u.charCodeAt(z + 2)), P[W++] = M << 4 | q >>> 2, U |= q & E), z < C - 3 && (X = this._decodeChar(u.charCodeAt(z + 3)), P[W++] = q << 6 | X, U |= X & E), U !== 0)
1697
1704
  throw new Error("Base64Coder: incorrect characters for decoding");
1698
- return L;
1705
+ return P;
1699
1706
  }, x.prototype._encodeByte = function(u) {
1700
1707
  var p = u;
1701
1708
  return p += 65, p += 25 - u >>> 8 & 6, p += 51 - u >>> 8 & -75, p += 61 - u >>> 8 & -15, p += 62 - u >>> 8 & 3, String.fromCharCode(p);
1702
1709
  }, x.prototype._decodeChar = function(u) {
1703
- var p = T;
1704
- return p += (42 - u & u - 44) >>> 8 & -T + u - 43 + 62, p += (46 - u & u - 48) >>> 8 & -T + u - 47 + 63, p += (47 - u & u - 58) >>> 8 & -T + u - 48 + 52, p += (64 - u & u - 91) >>> 8 & -T + u - 65 + 0, p += (96 - u & u - 123) >>> 8 & -T + u - 97 + 26, p;
1710
+ var p = E;
1711
+ return p += (42 - u & u - 44) >>> 8 & -E + u - 43 + 62, p += (46 - u & u - 48) >>> 8 & -E + u - 47 + 63, p += (47 - u & u - 58) >>> 8 & -E + u - 48 + 52, p += (64 - u & u - 91) >>> 8 & -E + u - 65 + 0, p += (96 - u & u - 123) >>> 8 & -E + u - 97 + 26, p;
1705
1712
  }, x.prototype._getPaddingLength = function(u) {
1706
1713
  var p = 0;
1707
1714
  if (this._paddingCharacter) {
@@ -1715,16 +1722,16 @@ function Qi() {
1715
1722
  })()
1716
1723
  );
1717
1724
  v.Coder = S;
1718
- var j = new S();
1719
- function E(x) {
1720
- return j.encode(x);
1725
+ var I = new S();
1726
+ function k(x) {
1727
+ return I.encode(x);
1721
1728
  }
1722
- v.encode = E;
1729
+ v.encode = k;
1723
1730
  function A(x) {
1724
- return j.decode(x);
1731
+ return I.decode(x);
1725
1732
  }
1726
1733
  v.decode = A;
1727
- var D = (
1734
+ var B = (
1728
1735
  /** @class */
1729
1736
  (function(x) {
1730
1737
  y(u, x);
@@ -1735,72 +1742,72 @@ function Qi() {
1735
1742
  var C = p;
1736
1743
  return C += 65, C += 25 - p >>> 8 & 6, C += 51 - p >>> 8 & -75, C += 61 - p >>> 8 & -13, C += 62 - p >>> 8 & 49, String.fromCharCode(C);
1737
1744
  }, u.prototype._decodeChar = function(p) {
1738
- var C = T;
1739
- return C += (44 - p & p - 46) >>> 8 & -T + p - 45 + 62, C += (94 - p & p - 96) >>> 8 & -T + p - 95 + 63, C += (47 - p & p - 58) >>> 8 & -T + p - 48 + 52, C += (64 - p & p - 91) >>> 8 & -T + p - 65 + 0, C += (96 - p & p - 123) >>> 8 & -T + p - 97 + 26, C;
1745
+ var C = E;
1746
+ return C += (44 - p & p - 46) >>> 8 & -E + p - 45 + 62, C += (94 - p & p - 96) >>> 8 & -E + p - 95 + 63, C += (47 - p & p - 58) >>> 8 & -E + p - 48 + 52, C += (64 - p & p - 91) >>> 8 & -E + p - 65 + 0, C += (96 - p & p - 123) >>> 8 & -E + p - 97 + 26, C;
1740
1747
  }, u;
1741
1748
  })(S)
1742
1749
  );
1743
- v.URLSafeCoder = D;
1744
- var U = new D();
1745
- function B(x) {
1746
- return U.encode(x);
1750
+ v.URLSafeCoder = B;
1751
+ var H = new B();
1752
+ function D(x) {
1753
+ return H.encode(x);
1747
1754
  }
1748
- v.encodeURLSafe = B;
1755
+ v.encodeURLSafe = D;
1749
1756
  function te(x) {
1750
- return U.decode(x);
1757
+ return H.decode(x);
1751
1758
  }
1752
1759
  v.decodeURLSafe = te, v.encodedLength = function(x) {
1753
- return j.encodedLength(x);
1760
+ return I.encodedLength(x);
1754
1761
  }, v.maxDecodedLength = function(x) {
1755
- return j.maxDecodedLength(x);
1762
+ return I.maxDecodedLength(x);
1756
1763
  }, v.decodedLength = function(x) {
1757
- return j.decodedLength(x);
1764
+ return I.decodedLength(x);
1758
1765
  };
1759
1766
  },
1760
1767
  /***/
1761
1768
  978(m, v) {
1762
1769
  var y = "utf8: invalid source encoding";
1763
- function T(S) {
1764
- for (var j = [], E = 0; E < S.length; E++) {
1765
- var A = S[E];
1770
+ function E(S) {
1771
+ for (var I = [], k = 0; k < S.length; k++) {
1772
+ var A = S[k];
1766
1773
  if (A & 128) {
1767
- var D = void 0;
1774
+ var B = void 0;
1768
1775
  if (A < 224) {
1769
- if (E >= S.length)
1776
+ if (k >= S.length)
1770
1777
  throw new Error(y);
1771
- var U = S[++E];
1772
- if ((U & 192) !== 128)
1778
+ var H = S[++k];
1779
+ if ((H & 192) !== 128)
1773
1780
  throw new Error(y);
1774
- A = (A & 31) << 6 | U & 63, D = 128;
1781
+ A = (A & 31) << 6 | H & 63, B = 128;
1775
1782
  } else if (A < 240) {
1776
- if (E >= S.length - 1)
1783
+ if (k >= S.length - 1)
1777
1784
  throw new Error(y);
1778
- var U = S[++E], B = S[++E];
1779
- if ((U & 192) !== 128 || (B & 192) !== 128)
1785
+ var H = S[++k], D = S[++k];
1786
+ if ((H & 192) !== 128 || (D & 192) !== 128)
1780
1787
  throw new Error(y);
1781
- A = (A & 15) << 12 | (U & 63) << 6 | B & 63, D = 2048;
1788
+ A = (A & 15) << 12 | (H & 63) << 6 | D & 63, B = 2048;
1782
1789
  } else if (A < 248) {
1783
- if (E >= S.length - 2)
1790
+ if (k >= S.length - 2)
1784
1791
  throw new Error(y);
1785
- var U = S[++E], B = S[++E], te = S[++E];
1786
- if ((U & 192) !== 128 || (B & 192) !== 128 || (te & 192) !== 128)
1792
+ var H = S[++k], D = S[++k], te = S[++k];
1793
+ if ((H & 192) !== 128 || (D & 192) !== 128 || (te & 192) !== 128)
1787
1794
  throw new Error(y);
1788
- A = (A & 15) << 18 | (U & 63) << 12 | (B & 63) << 6 | te & 63, D = 65536;
1795
+ A = (A & 15) << 18 | (H & 63) << 12 | (D & 63) << 6 | te & 63, B = 65536;
1789
1796
  } else
1790
1797
  throw new Error(y);
1791
- if (A < D || A >= 55296 && A <= 57343)
1798
+ if (A < B || A >= 55296 && A <= 57343)
1792
1799
  throw new Error(y);
1793
1800
  if (A >= 65536) {
1794
1801
  if (A > 1114111)
1795
1802
  throw new Error(y);
1796
- A -= 65536, j.push(String.fromCharCode(55296 | A >> 10)), A = 56320 | A & 1023;
1803
+ A -= 65536, I.push(String.fromCharCode(55296 | A >> 10)), A = 56320 | A & 1023;
1797
1804
  }
1798
1805
  }
1799
- j.push(String.fromCharCode(A));
1806
+ I.push(String.fromCharCode(A));
1800
1807
  }
1801
- return j.join("");
1808
+ return I.join("");
1802
1809
  }
1803
- v.D4 = T;
1810
+ v.D4 = E;
1804
1811
  },
1805
1812
  /***/
1806
1813
  721(m, v, y) {
@@ -1814,22 +1821,22 @@ function Qi() {
1814
1821
  le
1815
1822
  )
1816
1823
  });
1817
- class T {
1824
+ class E {
1818
1825
  constructor(e, t) {
1819
1826
  this.lastId = 0, this.prefix = e, this.name = t;
1820
1827
  }
1821
1828
  create(e) {
1822
1829
  this.lastId++;
1823
- var t = this.lastId, r = this.prefix + t, o = this.name + "[" + t + "]", c = !1, d = function() {
1830
+ var t = this.lastId, r = this.prefix + t, o = this.name + "[" + t + "]", c = !1, h = function() {
1824
1831
  c || (e.apply(null, arguments), c = !0);
1825
1832
  };
1826
- return this[t] = d, { number: t, id: r, name: o, callback: d };
1833
+ return this[t] = h, { number: t, id: r, name: o, callback: h };
1827
1834
  }
1828
1835
  remove(e) {
1829
1836
  delete this[e.number];
1830
1837
  }
1831
1838
  }
1832
- var S = new T("_pusher_script_", "Pusher.ScriptReceivers"), j = {
1839
+ var S = new E("_pusher_script_", "Pusher.ScriptReceivers"), I = {
1833
1840
  VERSION: "8.5.0",
1834
1841
  PROTOCOL: 7,
1835
1842
  wsPort: 80,
@@ -1857,7 +1864,7 @@ function Qi() {
1857
1864
  cdn_https: "https://js.pusher.com",
1858
1865
  dependency_suffix: ""
1859
1866
  };
1860
- const E = j;
1867
+ const k = I;
1861
1868
  class A {
1862
1869
  constructor(e) {
1863
1870
  this.options = e, this.receivers = e.receivers || S, this.loading = {};
@@ -1868,17 +1875,17 @@ function Qi() {
1868
1875
  o.loading[e].push(r);
1869
1876
  else {
1870
1877
  o.loading[e] = [r];
1871
- var c = w.createScriptRequest(o.getPath(e, t)), d = o.receivers.create(function(f) {
1872
- if (o.receivers.remove(d), o.loading[e]) {
1878
+ var c = w.createScriptRequest(o.getPath(e, t)), h = o.receivers.create(function(f) {
1879
+ if (o.receivers.remove(h), o.loading[e]) {
1873
1880
  var b = o.loading[e];
1874
1881
  delete o.loading[e];
1875
- for (var k = function(R) {
1882
+ for (var T = function(R) {
1876
1883
  R || c.cleanup();
1877
1884
  }, _ = 0; _ < b.length; _++)
1878
- b[_](f, k);
1885
+ b[_](f, T);
1879
1886
  }
1880
1887
  });
1881
- c.send(d);
1888
+ c.send(h);
1882
1889
  }
1883
1890
  }
1884
1891
  getRoot(e) {
@@ -1889,14 +1896,14 @@ function Qi() {
1889
1896
  return this.getRoot(t) + "/" + e + this.options.suffix + ".js";
1890
1897
  }
1891
1898
  }
1892
- var D = new T("_pusher_dependencies", "Pusher.DependenciesReceivers"), U = new A({
1893
- cdn_http: E.cdn_http,
1894
- cdn_https: E.cdn_https,
1895
- version: E.VERSION,
1896
- suffix: E.dependency_suffix,
1897
- receivers: D
1899
+ var B = new E("_pusher_dependencies", "Pusher.DependenciesReceivers"), H = new A({
1900
+ cdn_http: k.cdn_http,
1901
+ cdn_https: k.cdn_https,
1902
+ version: k.VERSION,
1903
+ suffix: k.dependency_suffix,
1904
+ receivers: B
1898
1905
  });
1899
- const B = {
1906
+ const D = {
1900
1907
  baseUrl: "https://pusher.com",
1901
1908
  urls: {
1902
1909
  authenticationEndpoint: {
@@ -1916,11 +1923,11 @@ function Qi() {
1916
1923
  }
1917
1924
  }
1918
1925
  }, x = { buildLogSuffix: function(n) {
1919
- const e = "See:", t = B.urls[n];
1926
+ const e = "See:", t = D.urls[n];
1920
1927
  if (!t)
1921
1928
  return "";
1922
1929
  let r;
1923
- return t.fullUrl ? r = t.fullUrl : t.path && (r = B.baseUrl + t.path), r ? `${e} ${r}` : "";
1930
+ return t.fullUrl ? r = t.fullUrl : t.path && (r = D.baseUrl + t.path), r ? `${e} ${r}` : "";
1924
1931
  } };
1925
1932
  var u;
1926
1933
  (function(n) {
@@ -1936,27 +1943,27 @@ function Qi() {
1936
1943
  super(e), Object.setPrototypeOf(this, new.target.prototype);
1937
1944
  }
1938
1945
  }
1939
- class L extends Error {
1946
+ class P extends Error {
1940
1947
  constructor(e) {
1941
1948
  super(e), Object.setPrototypeOf(this, new.target.prototype);
1942
1949
  }
1943
1950
  }
1944
- class O extends Error {
1951
+ class W extends Error {
1945
1952
  constructor(e) {
1946
1953
  super(e), Object.setPrototypeOf(this, new.target.prototype);
1947
1954
  }
1948
1955
  }
1949
- class q extends Error {
1956
+ class z extends Error {
1950
1957
  constructor(e) {
1951
1958
  super(e), Object.setPrototypeOf(this, new.target.prototype);
1952
1959
  }
1953
1960
  }
1954
- class W extends Error {
1961
+ class U extends Error {
1955
1962
  constructor(e) {
1956
1963
  super(e), Object.setPrototypeOf(this, new.target.prototype);
1957
1964
  }
1958
1965
  }
1959
- class G extends Error {
1966
+ class K extends Error {
1960
1967
  constructor(e) {
1961
1968
  super(e), Object.setPrototypeOf(this, new.target.prototype);
1962
1969
  }
@@ -1966,20 +1973,20 @@ function Qi() {
1966
1973
  super(e), Object.setPrototypeOf(this, new.target.prototype);
1967
1974
  }
1968
1975
  }
1969
- class H extends Error {
1976
+ class q extends Error {
1970
1977
  constructor(e, t) {
1971
1978
  super(t), this.status = e, Object.setPrototypeOf(this, new.target.prototype);
1972
1979
  }
1973
1980
  }
1974
- const It = function(n, e, t, r, o) {
1981
+ const jt = function(n, e, t, r, o) {
1975
1982
  const c = w.createXHR();
1976
1983
  c.open("POST", t.endpoint, !0), c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
1977
- for (var d in t.headers)
1978
- c.setRequestHeader(d, t.headers[d]);
1984
+ for (var h in t.headers)
1985
+ c.setRequestHeader(h, t.headers[h]);
1979
1986
  if (t.headersProvider != null) {
1980
1987
  let f = t.headersProvider();
1981
- for (var d in f)
1982
- c.setRequestHeader(d, f[d]);
1988
+ for (var h in f)
1989
+ c.setRequestHeader(h, f[h]);
1983
1990
  }
1984
1991
  return c.onreadystatechange = function() {
1985
1992
  if (c.readyState === 4)
@@ -1988,7 +1995,7 @@ function Qi() {
1988
1995
  try {
1989
1996
  f = JSON.parse(c.responseText), b = !0;
1990
1997
  } catch {
1991
- o(new H(200, `JSON returned from ${r.toString()} endpoint was invalid, yet status code was 200. Data was: ${c.responseText}`), null);
1998
+ o(new q(200, `JSON returned from ${r.toString()} endpoint was invalid, yet status code was 200. Data was: ${c.responseText}`), null);
1992
1999
  }
1993
2000
  b && o(null, f);
1994
2001
  } else {
@@ -2001,19 +2008,19 @@ function Qi() {
2001
2008
  f = `Clients must be authorized to join private or presence channels. ${x.buildLogSuffix("authorizationEndpoint")}`;
2002
2009
  break;
2003
2010
  }
2004
- o(new H(c.status, `Unable to retrieve auth string from ${r.toString()} endpoint - received status: ${c.status} from ${t.endpoint}. ${f}`), null);
2011
+ o(new q(c.status, `Unable to retrieve auth string from ${r.toString()} endpoint - received status: ${c.status} from ${t.endpoint}. ${f}`), null);
2005
2012
  }
2006
2013
  }, c.send(e), c;
2007
2014
  };
2008
- function jt(n) {
2009
- return qt(Nt(n));
2015
+ function It(n) {
2016
+ return zt(Nt(n));
2010
2017
  }
2011
- var ne = String.fromCharCode, oe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ot = function(n) {
2018
+ var ne = String.fromCharCode, oe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Wt = function(n) {
2012
2019
  var e = n.charCodeAt(0);
2013
2020
  return e < 128 ? n : e < 2048 ? ne(192 | e >>> 6) + ne(128 | e & 63) : ne(224 | e >>> 12 & 15) + ne(128 | e >>> 6 & 63) + ne(128 | e & 63);
2014
2021
  }, Nt = function(n) {
2015
- return n.replace(/[^\x00-\x7F]/g, Ot);
2016
- }, Ut = function(n) {
2022
+ return n.replace(/[^\x00-\x7F]/g, Wt);
2023
+ }, Ht = function(n) {
2017
2024
  var e = [0, 2, 1][n.length % 3], t = n.charCodeAt(0) << 16 | (n.length > 1 ? n.charCodeAt(1) : 0) << 8 | (n.length > 2 ? n.charCodeAt(2) : 0), r = [
2018
2025
  oe.charAt(t >>> 18),
2019
2026
  oe.charAt(t >>> 12 & 63),
@@ -2021,10 +2028,10 @@ function Qi() {
2021
2028
  e >= 1 ? "=" : oe.charAt(t & 63)
2022
2029
  ];
2023
2030
  return r.join("");
2024
- }, qt = window.btoa || function(n) {
2025
- return n.replace(/[\s\S]{1,3}/g, Ut);
2031
+ }, zt = window.btoa || function(n) {
2032
+ return n.replace(/[\s\S]{1,3}/g, Ht);
2026
2033
  };
2027
- class zt {
2034
+ class Ot {
2028
2035
  constructor(e, t, r, o) {
2029
2036
  this.clear = t, this.timer = e(() => {
2030
2037
  this.timer && (this.timer = o(this.timer));
@@ -2037,33 +2044,33 @@ function Qi() {
2037
2044
  this.timer && (this.clear(this.timer), this.timer = null);
2038
2045
  }
2039
2046
  }
2040
- const We = zt;
2041
- function Wt(n) {
2047
+ const Ue = Ot;
2048
+ function Ut(n) {
2042
2049
  window.clearTimeout(n);
2043
2050
  }
2044
- function Ht(n) {
2051
+ function qt(n) {
2045
2052
  window.clearInterval(n);
2046
2053
  }
2047
- class K extends We {
2054
+ class J extends Ue {
2048
2055
  constructor(e, t) {
2049
- super(setTimeout, Wt, e, function(r) {
2056
+ super(setTimeout, Ut, e, function(r) {
2050
2057
  return t(), null;
2051
2058
  });
2052
2059
  }
2053
2060
  }
2054
- class Mt extends We {
2061
+ class Mt extends Ue {
2055
2062
  constructor(e, t) {
2056
- super(setInterval, Ht, e, function(r) {
2063
+ super(setInterval, qt, e, function(r) {
2057
2064
  return t(), r;
2058
2065
  });
2059
2066
  }
2060
2067
  }
2061
- var Dt = {
2068
+ var Bt = {
2062
2069
  now() {
2063
2070
  return Date.now ? Date.now() : (/* @__PURE__ */ new Date()).valueOf();
2064
2071
  },
2065
2072
  defer(n) {
2066
- return new K(0, n);
2073
+ return new J(0, n);
2067
2074
  },
2068
2075
  method(n, ...e) {
2069
2076
  var t = Array.prototype.slice.call(arguments, 1);
@@ -2072,21 +2079,21 @@ function Qi() {
2072
2079
  };
2073
2080
  }
2074
2081
  };
2075
- const N = Dt;
2076
- function z(n, ...e) {
2082
+ const N = Bt;
2083
+ function O(n, ...e) {
2077
2084
  for (var t = 0; t < e.length; t++) {
2078
2085
  var r = e[t];
2079
2086
  for (var o in r)
2080
- r[o] && r[o].constructor && r[o].constructor === Object ? n[o] = z(n[o] || {}, r[o]) : n[o] = r[o];
2087
+ r[o] && r[o].constructor && r[o].constructor === Object ? n[o] = O(n[o] || {}, r[o]) : n[o] = r[o];
2081
2088
  }
2082
2089
  return n;
2083
2090
  }
2084
- function Bt() {
2091
+ function Dt() {
2085
2092
  for (var n = ["Pusher"], e = 0; e < arguments.length; e++)
2086
2093
  typeof arguments[e] == "string" ? n.push(arguments[e]) : n.push(ae(arguments[e]));
2087
2094
  return n.join(" : ");
2088
2095
  }
2089
- function He(n, e) {
2096
+ function qe(n, e) {
2090
2097
  var t = Array.prototype.indexOf;
2091
2098
  if (n === null)
2092
2099
  return -1;
@@ -2117,7 +2124,7 @@ function Qi() {
2117
2124
  for (var r = 0; r < n.length; r++)
2118
2125
  e.call(t || window, n[r], r, n);
2119
2126
  }
2120
- function De(n, e) {
2127
+ function Be(n, e) {
2121
2128
  for (var t = [], r = 0; r < n.length; r++)
2122
2129
  t.push(e(n[r], r, n, t));
2123
2130
  return t;
@@ -2128,7 +2135,7 @@ function Qi() {
2128
2135
  t[o] = e(r);
2129
2136
  }), t;
2130
2137
  }
2131
- function Be(n, e) {
2138
+ function De(n, e) {
2132
2139
  e = e || function(o) {
2133
2140
  return !!o;
2134
2141
  };
@@ -2142,7 +2149,7 @@ function Qi() {
2142
2149
  (e && e(r, o, n, t) || r) && (t[o] = r);
2143
2150
  }), t;
2144
2151
  }
2145
- function Vt(n) {
2152
+ function Gt(n) {
2146
2153
  var e = [];
2147
2154
  return $(n, function(t, r) {
2148
2155
  e.push([r, t]);
@@ -2154,37 +2161,37 @@ function Qi() {
2154
2161
  return !0;
2155
2162
  return !1;
2156
2163
  }
2157
- function Xt(n, e) {
2164
+ function Vt(n, e) {
2158
2165
  for (var t = 0; t < n.length; t++)
2159
2166
  if (!e(n[t], t, n))
2160
2167
  return !1;
2161
2168
  return !0;
2162
2169
  }
2163
- function Gt(n) {
2170
+ function Kt(n) {
2164
2171
  return $t(n, function(e) {
2165
- return typeof e == "object" && (e = ae(e)), encodeURIComponent(jt(e.toString()));
2172
+ return typeof e == "object" && (e = ae(e)), encodeURIComponent(It(e.toString()));
2166
2173
  });
2167
2174
  }
2168
- function Jt(n) {
2175
+ function Xt(n) {
2169
2176
  var e = Fe(n, function(r) {
2170
2177
  return r !== void 0;
2171
- }), t = De(Vt(Gt(e)), N.method("join", "=")).join("&");
2178
+ }), t = Be(Gt(Kt(e)), N.method("join", "=")).join("&");
2172
2179
  return t;
2173
2180
  }
2174
- function Kt(n) {
2181
+ function Jt(n) {
2175
2182
  var e = [], t = [];
2176
2183
  return (function r(o, c) {
2177
- var d, f, b;
2184
+ var h, f, b;
2178
2185
  switch (typeof o) {
2179
2186
  case "object":
2180
2187
  if (!o)
2181
2188
  return null;
2182
- for (d = 0; d < e.length; d += 1)
2183
- if (e[d] === o)
2184
- return { $ref: t[d] };
2189
+ for (h = 0; h < e.length; h += 1)
2190
+ if (e[h] === o)
2191
+ return { $ref: t[h] };
2185
2192
  if (e.push(o), t.push(c), Object.prototype.toString.apply(o) === "[object Array]")
2186
- for (b = [], d = 0; d < o.length; d += 1)
2187
- b[d] = r(o[d], c + "[" + d + "]");
2193
+ for (b = [], h = 0; h < o.length; h += 1)
2194
+ b[h] = r(o[h], c + "[" + h + "]");
2188
2195
  else {
2189
2196
  b = {};
2190
2197
  for (f in o)
@@ -2202,7 +2209,7 @@ function Qi() {
2202
2209
  try {
2203
2210
  return JSON.stringify(n);
2204
2211
  } catch {
2205
- return JSON.stringify(Kt(n));
2212
+ return JSON.stringify(Jt(n));
2206
2213
  }
2207
2214
  }
2208
2215
  class Yt {
@@ -2227,25 +2234,25 @@ function Qi() {
2227
2234
  window.console && window.console.error ? window.console.error(e) : this.globalLogWarn(e);
2228
2235
  }
2229
2236
  log(e, ...t) {
2230
- var r = Bt.apply(this, arguments);
2237
+ var r = Dt.apply(this, arguments);
2231
2238
  le.log ? le.log(r) : le.logToConsole && e.bind(this)(r);
2232
2239
  }
2233
2240
  }
2234
- const P = new Yt();
2235
- var Qt = function(n, e, t, r, o) {
2236
- (t.headers !== void 0 || t.headersProvider != null) && P.warn(`To send headers with the ${r.toString()} request, you must use AJAX, rather than JSONP.`);
2241
+ const L = new Yt();
2242
+ var Zt = function(n, e, t, r, o) {
2243
+ (t.headers !== void 0 || t.headersProvider != null) && L.warn(`To send headers with the ${r.toString()} request, you must use AJAX, rather than JSONP.`);
2237
2244
  var c = n.nextAuthCallbackID.toString();
2238
2245
  n.nextAuthCallbackID++;
2239
- var d = n.getDocument(), f = d.createElement("script");
2246
+ var h = n.getDocument(), f = h.createElement("script");
2240
2247
  n.auth_callbacks[c] = function(_) {
2241
2248
  o(null, _);
2242
2249
  };
2243
2250
  var b = "Pusher.auth_callbacks['" + c + "']";
2244
2251
  f.src = t.endpoint + "?callback=" + encodeURIComponent(b) + "&" + e;
2245
- var k = d.getElementsByTagName("head")[0] || d.documentElement;
2246
- k.insertBefore(f, k.firstChild);
2252
+ var T = h.getElementsByTagName("head")[0] || h.documentElement;
2253
+ T.insertBefore(f, T.firstChild);
2247
2254
  };
2248
- const Zt = Qt;
2255
+ const Qt = Zt;
2249
2256
  class en {
2250
2257
  constructor(e) {
2251
2258
  this.src = e;
@@ -2272,7 +2279,7 @@ function Qi() {
2272
2279
  }
2273
2280
  send(e) {
2274
2281
  if (!this.request) {
2275
- var t = Jt(this.data), r = this.url + "/" + e.number + "?" + t;
2282
+ var t = Xt(this.data), r = this.url + "/" + e.number + "?" + t;
2276
2283
  this.request = w.createScriptRequest(r), this.request.send(e);
2277
2284
  }
2278
2285
  }
@@ -2282,10 +2289,10 @@ function Qi() {
2282
2289
  }
2283
2290
  var nn = function(n, e) {
2284
2291
  return function(t, r) {
2285
- var o = "http" + (e ? "s" : "") + "://", c = o + (n.host || n.options.host) + n.options.path, d = w.createJSONPRequest(c, t), f = w.ScriptReceivers.create(function(b, k) {
2286
- S.remove(f), d.cleanup(), k && k.host && (n.host = k.host), r && r(b, k);
2292
+ var o = "http" + (e ? "s" : "") + "://", c = o + (n.host || n.options.host) + n.options.path, h = w.createJSONPRequest(c, t), f = w.ScriptReceivers.create(function(b, T) {
2293
+ S.remove(f), h.cleanup(), T && T.host && (n.host = T.host), r && r(b, T);
2287
2294
  });
2288
- d.send(f);
2295
+ h.send(f);
2289
2296
  };
2290
2297
  }, rn = {
2291
2298
  name: "jsonp",
@@ -2297,7 +2304,7 @@ function Qi() {
2297
2304
  return r + "://" + o + t;
2298
2305
  }
2299
2306
  function be(n, e) {
2300
- var t = "/app/" + n, r = "?protocol=" + E.PROTOCOL + "&client=js&version=" + E.VERSION + (e ? "&" + e : "");
2307
+ var t = "/app/" + n, r = "?protocol=" + k.PROTOCOL + "&client=js&version=" + k.VERSION + (e ? "&" + e : "");
2301
2308
  return t + r;
2302
2309
  }
2303
2310
  var on = {
@@ -2318,7 +2325,7 @@ function Qi() {
2318
2325
  return be(n);
2319
2326
  }
2320
2327
  };
2321
- class hn {
2328
+ class dn {
2322
2329
  constructor() {
2323
2330
  this._callbacks = {};
2324
2331
  }
@@ -2342,7 +2349,7 @@ function Qi() {
2342
2349
  }
2343
2350
  removeCallback(e, t, r) {
2344
2351
  ie(e, function(o) {
2345
- this._callbacks[o] = Be(this._callbacks[o] || [], function(c) {
2352
+ this._callbacks[o] = De(this._callbacks[o] || [], function(c) {
2346
2353
  return t && t !== c.fn || r && r !== c.context;
2347
2354
  }), this._callbacks[o].length === 0 && delete this._callbacks[o];
2348
2355
  }, this);
@@ -2356,9 +2363,9 @@ function Qi() {
2356
2363
  function we(n) {
2357
2364
  return "_" + n;
2358
2365
  }
2359
- class V {
2366
+ class G {
2360
2367
  constructor(e) {
2361
- this.callbacks = new hn(), this.global_callbacks = [], this.failThrough = e;
2368
+ this.callbacks = new dn(), this.global_callbacks = [], this.failThrough = e;
2362
2369
  }
2363
2370
  bind(e, t, r) {
2364
2371
  return this.callbacks.add(e, t, r), this;
@@ -2370,7 +2377,7 @@ function Qi() {
2370
2377
  return this.callbacks.remove(e, t, r), this;
2371
2378
  }
2372
2379
  unbind_global(e) {
2373
- return e ? (this.global_callbacks = Be(this.global_callbacks || [], (t) => t !== e), this) : (this.global_callbacks = [], this);
2380
+ return e ? (this.global_callbacks = De(this.global_callbacks || [], (t) => t !== e), this) : (this.global_callbacks = [], this);
2374
2381
  }
2375
2382
  unbind_all() {
2376
2383
  return this.unbind(), this.unbind_global(), this;
@@ -2378,15 +2385,15 @@ function Qi() {
2378
2385
  emit(e, t, r) {
2379
2386
  for (var o = 0; o < this.global_callbacks.length; o++)
2380
2387
  this.global_callbacks[o](e, t);
2381
- var c = this.callbacks.get(e), d = [];
2382
- if (r ? d.push(t, r) : t && d.push(t), c && c.length > 0)
2388
+ var c = this.callbacks.get(e), h = [];
2389
+ if (r ? h.push(t, r) : t && h.push(t), c && c.length > 0)
2383
2390
  for (var o = 0; o < c.length; o++)
2384
- c[o].fn.apply(c[o].context || window, d);
2391
+ c[o].fn.apply(c[o].context || window, h);
2385
2392
  else this.failThrough && this.failThrough(e, t);
2386
2393
  return this;
2387
2394
  }
2388
2395
  }
2389
- class dn extends V {
2396
+ class hn extends G {
2390
2397
  constructor(e, t, r, o, c) {
2391
2398
  super(), this.initialize = w.transportConnectionInitializer, this.hooks = e, this.name = t, this.priority = r, this.key = o, this.options = c, this.state = "new", this.timeline = c.timeline, this.activityTimeout = c.activityTimeout, this.id = this.timeline.generateUniqueID();
2392
2399
  }
@@ -2407,7 +2414,7 @@ function Qi() {
2407
2414
  this.onError(t), this.changeState("closed");
2408
2415
  }), !1;
2409
2416
  }
2410
- return this.bindListeners(), P.debug("Connecting", { transport: this.name, url: e }), this.changeState("connecting"), !0;
2417
+ return this.bindListeners(), L.debug("Connecting", { transport: this.name, url: e }), this.changeState("connecting"), !0;
2411
2418
  }
2412
2419
  close() {
2413
2420
  return this.socket ? (this.socket.close(), !0) : !1;
@@ -2462,7 +2469,7 @@ function Qi() {
2462
2469
  })), this.emit(e, t);
2463
2470
  }
2464
2471
  buildTimelineMessage(e) {
2465
- return z({ cid: this.id }, e);
2472
+ return O({ cid: this.id }, e);
2466
2473
  }
2467
2474
  }
2468
2475
  class ee {
@@ -2473,7 +2480,7 @@ function Qi() {
2473
2480
  return this.hooks.isSupported(e);
2474
2481
  }
2475
2482
  createConnection(e, t, r, o) {
2476
- return new dn(this.hooks, e, t, r, o);
2483
+ return new hn(this.hooks, e, t, r, o);
2477
2484
  }
2478
2485
  }
2479
2486
  var ln = new ee({
@@ -2489,26 +2496,26 @@ function Qi() {
2489
2496
  getSocket: function(n) {
2490
2497
  return w.createWebSocket(n);
2491
2498
  }
2492
- }), Ve = {
2499
+ }), Ge = {
2493
2500
  urls: an,
2494
2501
  handlesActivityChecks: !1,
2495
2502
  supportsPing: !0,
2496
2503
  isInitialized: function() {
2497
2504
  return !0;
2498
2505
  }
2499
- }, Xe = z({
2506
+ }, Ve = O({
2500
2507
  getSocket: function(n) {
2501
2508
  return w.HTTPFactory.createStreamingSocket(n);
2502
2509
  }
2503
- }, Ve), Ge = z({
2510
+ }, Ge), Ke = O({
2504
2511
  getSocket: function(n) {
2505
2512
  return w.HTTPFactory.createPollingSocket(n);
2506
2513
  }
2507
- }, Ve), Je = {
2514
+ }, Ge), Xe = {
2508
2515
  isSupported: function() {
2509
2516
  return w.isXHRSupported();
2510
2517
  }
2511
- }, un = new ee(z({}, Xe, Je)), pn = new ee(z({}, Ge, Je)), fn = {
2518
+ }, un = new ee(O({}, Ve, Xe)), pn = new ee(O({}, Ke, Xe)), fn = {
2512
2519
  ws: ln,
2513
2520
  xhr_streaming: un,
2514
2521
  xhr_polling: pn
@@ -2527,7 +2534,7 @@ function Qi() {
2527
2534
  },
2528
2535
  getSocket: function(n, e) {
2529
2536
  return new window.SockJS(n, null, {
2530
- js_path: U.getPath("sockjs", {
2537
+ js_path: H.getPath("sockjs", {
2531
2538
  useTLS: e.useTLS
2532
2539
  }),
2533
2540
  ignore_null_origin: e.ignoreNullOrigin
@@ -2538,15 +2545,15 @@ function Qi() {
2538
2545
  path: e
2539
2546
  }));
2540
2547
  }
2541
- }), Ke = {
2548
+ }), Je = {
2542
2549
  isSupported: function(n) {
2543
2550
  var e = w.isXDRSupported(n.useTLS);
2544
2551
  return e;
2545
2552
  }
2546
- }, gn = new ee(z({}, Xe, Ke)), vn = new ee(z({}, Ge, Ke));
2553
+ }, gn = new ee(O({}, Ve, Je)), vn = new ee(O({}, Ke, Je));
2547
2554
  ce.xdr_streaming = gn, ce.xdr_polling = vn, ce.sockjs = mn;
2548
2555
  const yn = ce;
2549
- class bn extends V {
2556
+ class bn extends G {
2550
2557
  constructor() {
2551
2558
  super();
2552
2559
  var e = this;
@@ -2566,16 +2573,16 @@ function Qi() {
2566
2573
  this.manager = e, this.transport = t, this.minPingDelay = r.minPingDelay, this.maxPingDelay = r.maxPingDelay, this.pingDelay = void 0;
2567
2574
  }
2568
2575
  createConnection(e, t, r, o) {
2569
- o = z({}, o, {
2576
+ o = O({}, o, {
2570
2577
  activityTimeout: this.pingDelay
2571
2578
  });
2572
- var c = this.transport.createConnection(e, t, r, o), d = null, f = function() {
2573
- c.unbind("open", f), c.bind("closed", b), d = N.now();
2574
- }, b = (k) => {
2575
- if (c.unbind("closed", b), k.code === 1002 || k.code === 1003)
2579
+ var c = this.transport.createConnection(e, t, r, o), h = null, f = function() {
2580
+ c.unbind("open", f), c.bind("closed", b), h = N.now();
2581
+ }, b = (T) => {
2582
+ if (c.unbind("closed", b), T.code === 1002 || T.code === 1003)
2576
2583
  this.manager.reportDeath();
2577
- else if (!k.wasClean && d) {
2578
- var _ = N.now() - d;
2584
+ else if (!T.wasClean && h) {
2585
+ var _ = N.now() - h;
2579
2586
  _ < 2 * this.maxPingDelay && (this.manager.reportDeath(), this.pingDelay = Math.max(_ / 2, this.minPingDelay));
2580
2587
  }
2581
2588
  };
@@ -2639,7 +2646,7 @@ function Qi() {
2639
2646
  } : null;
2640
2647
  }
2641
2648
  }, Y = Ye;
2642
- class Sn extends V {
2649
+ class Sn extends G {
2643
2650
  constructor(e, t) {
2644
2651
  super(), this.id = e, this.transport = t, this.activityTimeout = t.activityTimeout, this.bindListeners();
2645
2652
  }
@@ -2651,7 +2658,7 @@ function Qi() {
2651
2658
  }
2652
2659
  send_event(e, t, r) {
2653
2660
  var o = { event: e, data: t };
2654
- return r && (o.channel = r), P.debug("Event sent", o), this.send(Y.encodeMessage(o));
2661
+ return r && (o.channel = r), L.debug("Event sent", o), this.send(Y.encodeMessage(o));
2655
2662
  }
2656
2663
  ping() {
2657
2664
  this.transport.supportsPing() ? this.transport.ping() : this.send_event("pusher:ping", {});
@@ -2673,7 +2680,7 @@ function Qi() {
2673
2680
  });
2674
2681
  }
2675
2682
  if (o !== void 0) {
2676
- switch (P.debug("Event recd", o), o.event) {
2683
+ switch (L.debug("Event recd", o), o.event) {
2677
2684
  case "pusher:error":
2678
2685
  this.emit("error", {
2679
2686
  type: "PusherError",
@@ -2713,7 +2720,7 @@ function Qi() {
2713
2720
  r && this.emit("error", r), t && this.emit(t, { action: t, error: r });
2714
2721
  }
2715
2722
  }
2716
- class En {
2723
+ class kn {
2717
2724
  constructor(e, t) {
2718
2725
  this.transport = e, this.callback = t, this.bindListeners();
2719
2726
  }
@@ -2744,7 +2751,7 @@ function Qi() {
2744
2751
  this.transport.unbind("message", this.onMessage), this.transport.unbind("closed", this.onClosed);
2745
2752
  }
2746
2753
  finish(e, t) {
2747
- this.callback(z({ transport: this.transport, action: e }, t));
2754
+ this.callback(O({ transport: this.transport, action: e }, t));
2748
2755
  }
2749
2756
  }
2750
2757
  class xn {
@@ -2755,10 +2762,10 @@ function Qi() {
2755
2762
  this.timeline.isEmpty() || this.timeline.send(w.TimelineTransport.getAgent(this, e), t);
2756
2763
  }
2757
2764
  }
2758
- class Ce extends V {
2765
+ class Ce extends G {
2759
2766
  constructor(e, t) {
2760
2767
  super(function(r, o) {
2761
- P.debug("No callbacks on " + e + " for " + r);
2768
+ L.debug("No callbacks on " + e + " for " + r);
2762
2769
  }), this.name = e, this.pusher = t, this.subscribed = !1, this.subscriptionPending = !1, this.subscriptionCancelled = !1;
2763
2770
  }
2764
2771
  authorize(e, t) {
@@ -2769,7 +2776,7 @@ function Qi() {
2769
2776
  throw new p("Event '" + e + "' does not start with 'client-'");
2770
2777
  if (!this.subscribed) {
2771
2778
  var r = x.buildLogSuffix("triggeringClientEvents");
2772
- P.warn(`Client event triggered before channel 'subscription_succeeded' event . ${r}`);
2779
+ L.warn(`Client event triggered before channel 'subscription_succeeded' event . ${r}`);
2773
2780
  }
2774
2781
  return this.pusher.send_event(e, t, this.name);
2775
2782
  }
@@ -2795,10 +2802,10 @@ function Qi() {
2795
2802
  }
2796
2803
  subscribe() {
2797
2804
  this.subscribed || (this.subscriptionPending = !0, this.subscriptionCancelled = !1, this.authorize(this.pusher.connection.socket_id, (e, t) => {
2798
- e ? (this.subscriptionPending = !1, P.error(e.toString()), this.emit("pusher:subscription_error", Object.assign({}, {
2805
+ e ? (this.subscriptionPending = !1, L.error(e.toString()), this.emit("pusher:subscription_error", Object.assign({}, {
2799
2806
  type: "AuthError",
2800
2807
  error: e.message
2801
- }, e instanceof H ? { status: e.status } : {}))) : this.pusher.send_event("pusher:subscribe", {
2808
+ }, e instanceof q ? { status: e.status } : {}))) : this.pusher.send_event("pusher:subscribe", {
2802
2809
  auth: t.auth,
2803
2810
  channel_data: t.channel_data,
2804
2811
  channel: this.name
@@ -2825,7 +2832,7 @@ function Qi() {
2825
2832
  }, t);
2826
2833
  }
2827
2834
  }
2828
- class Tn {
2835
+ class En {
2829
2836
  constructor() {
2830
2837
  this.reset();
2831
2838
  }
@@ -2857,39 +2864,39 @@ function Qi() {
2857
2864
  this.members = {}, this.count = 0, this.myID = null, this.me = null;
2858
2865
  }
2859
2866
  }
2860
- var kn = function(n, e, t, r) {
2867
+ var Tn = function(n, e, t, r) {
2861
2868
  function o(c) {
2862
- return c instanceof t ? c : new t(function(d) {
2863
- d(c);
2869
+ return c instanceof t ? c : new t(function(h) {
2870
+ h(c);
2864
2871
  });
2865
2872
  }
2866
- return new (t || (t = Promise))(function(c, d) {
2873
+ return new (t || (t = Promise))(function(c, h) {
2867
2874
  function f(_) {
2868
2875
  try {
2869
- k(r.next(_));
2876
+ T(r.next(_));
2870
2877
  } catch (R) {
2871
- d(R);
2878
+ h(R);
2872
2879
  }
2873
2880
  }
2874
2881
  function b(_) {
2875
2882
  try {
2876
- k(r.throw(_));
2883
+ T(r.throw(_));
2877
2884
  } catch (R) {
2878
- d(R);
2885
+ h(R);
2879
2886
  }
2880
2887
  }
2881
- function k(_) {
2888
+ function T(_) {
2882
2889
  _.done ? c(_.value) : o(_.value).then(f, b);
2883
2890
  }
2884
- k((r = r.apply(n, e || [])).next());
2891
+ T((r = r.apply(n, e || [])).next());
2885
2892
  });
2886
2893
  };
2887
2894
  class _n extends Se {
2888
2895
  constructor(e, t) {
2889
- super(e, t), this.members = new Tn();
2896
+ super(e, t), this.members = new En();
2890
2897
  }
2891
2898
  authorize(e, t) {
2892
- super.authorize(e, (r, o) => kn(this, void 0, void 0, function* () {
2899
+ super.authorize(e, (r, o) => Tn(this, void 0, void 0, function* () {
2893
2900
  if (!r)
2894
2901
  if (o = o, o.channel_data != null) {
2895
2902
  var c = JSON.parse(o.channel_data);
@@ -2897,8 +2904,8 @@ function Qi() {
2897
2904
  } else if (yield this.pusher.user.signinDonePromise, this.pusher.user.user_data != null)
2898
2905
  this.members.setMyID(this.pusher.user.user_data.id);
2899
2906
  else {
2900
- let d = x.buildLogSuffix("authorizationEndpoint");
2901
- P.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${d}, or the user should be signed in.`), t("Invalid auth response");
2907
+ let h = x.buildLogSuffix("authorizationEndpoint");
2908
+ L.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${h}, or the user should be signed in.`), t("Invalid auth response");
2902
2909
  return;
2903
2910
  }
2904
2911
  t(r, o);
@@ -2939,8 +2946,8 @@ function Qi() {
2939
2946
  this.members.reset(), super.disconnect();
2940
2947
  }
2941
2948
  }
2942
- var An = y(978), Ee = y(594);
2943
- class Ln extends Se {
2949
+ var An = y(978), ke = y(594);
2950
+ class Pn extends Se {
2944
2951
  constructor(e, t, r) {
2945
2952
  super(e, t), this.key = null, this.nacl = r;
2946
2953
  }
@@ -2955,11 +2962,11 @@ function Qi() {
2955
2962
  t(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`), null);
2956
2963
  return;
2957
2964
  }
2958
- this.key = (0, Ee.decode)(c), delete o.shared_secret, t(null, o);
2965
+ this.key = (0, ke.decode)(c), delete o.shared_secret, t(null, o);
2959
2966
  });
2960
2967
  }
2961
2968
  trigger(e, t) {
2962
- throw new W("Client events are not currently supported for encrypted channels");
2969
+ throw new U("Client events are not currently supported for encrypted channels");
2963
2970
  }
2964
2971
  handleEvent(e) {
2965
2972
  var t = e.event, r = e.data;
@@ -2971,32 +2978,32 @@ function Qi() {
2971
2978
  }
2972
2979
  handleEncryptedEvent(e, t) {
2973
2980
  if (!this.key) {
2974
- P.debug("Received encrypted event before key has been retrieved from the authEndpoint");
2981
+ L.debug("Received encrypted event before key has been retrieved from the authEndpoint");
2975
2982
  return;
2976
2983
  }
2977
2984
  if (!t.ciphertext || !t.nonce) {
2978
- P.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: " + t);
2985
+ L.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: " + t);
2979
2986
  return;
2980
2987
  }
2981
- let r = (0, Ee.decode)(t.ciphertext);
2988
+ let r = (0, ke.decode)(t.ciphertext);
2982
2989
  if (r.length < this.nacl.secretbox.overheadLength) {
2983
- P.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);
2990
+ L.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);
2984
2991
  return;
2985
2992
  }
2986
- let o = (0, Ee.decode)(t.nonce);
2993
+ let o = (0, ke.decode)(t.nonce);
2987
2994
  if (o.length < this.nacl.secretbox.nonceLength) {
2988
- P.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${o.length}`);
2995
+ L.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${o.length}`);
2989
2996
  return;
2990
2997
  }
2991
2998
  let c = this.nacl.secretbox.open(r, o, this.key);
2992
2999
  if (c === null) {
2993
- P.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (d, f) => {
2994
- if (d) {
2995
- P.error(`Failed to make a request to the authEndpoint: ${f}. Unable to fetch new key, so dropping encrypted event`);
3000
+ L.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (h, f) => {
3001
+ if (h) {
3002
+ L.error(`Failed to make a request to the authEndpoint: ${f}. Unable to fetch new key, so dropping encrypted event`);
2996
3003
  return;
2997
3004
  }
2998
3005
  if (c = this.nacl.secretbox.open(r, o, this.key), c === null) {
2999
- P.error("Failed to decrypt event with new key. Dropping encrypted event");
3006
+ L.error("Failed to decrypt event with new key. Dropping encrypted event");
3000
3007
  return;
3001
3008
  }
3002
3009
  this.emit(e, this.getDataToEmit(c));
@@ -3014,7 +3021,7 @@ function Qi() {
3014
3021
  }
3015
3022
  }
3016
3023
  }
3017
- class Pn extends V {
3024
+ class Ln extends G {
3018
3025
  constructor(e, t) {
3019
3026
  super(), this.state = "initialized", this.connection = null, this.key = e, this.options = t, this.timeline = this.options.timeline, this.usingTLS = this.options.useTLS, this.errorCallbacks = this.buildErrorCallbacks(), this.connectionCallbacks = this.buildConnectionCallbacks(this.errorCallbacks), this.handshakeCallbacks = this.buildHandshakeCallbacks(this.errorCallbacks);
3020
3027
  var r = w.getNetwork();
@@ -3074,7 +3081,7 @@ function Qi() {
3074
3081
  });
3075
3082
  }
3076
3083
  retryIn(e) {
3077
- this.timeline.info({ action: "retry", delay: e }), e > 0 && this.emit("connecting_in", Math.round(e / 1e3)), this.retryTimer = new K(e || 0, () => {
3084
+ this.timeline.info({ action: "retry", delay: e }), e > 0 && this.emit("connecting_in", Math.round(e / 1e3)), this.retryTimer = new J(e || 0, () => {
3078
3085
  this.disconnectInternally(), this.connect();
3079
3086
  });
3080
3087
  }
@@ -3082,7 +3089,7 @@ function Qi() {
3082
3089
  this.retryTimer && (this.retryTimer.ensureAborted(), this.retryTimer = null);
3083
3090
  }
3084
3091
  setUnavailableTimer() {
3085
- this.unavailableTimer = new K(this.options.unavailableTimeout, () => {
3092
+ this.unavailableTimer = new J(this.options.unavailableTimeout, () => {
3086
3093
  this.updateState("unavailable");
3087
3094
  });
3088
3095
  }
@@ -3090,12 +3097,12 @@ function Qi() {
3090
3097
  this.unavailableTimer && this.unavailableTimer.ensureAborted();
3091
3098
  }
3092
3099
  sendActivityCheck() {
3093
- this.stopActivityCheck(), this.connection.ping(), this.activityTimer = new K(this.options.pongTimeout, () => {
3100
+ this.stopActivityCheck(), this.connection.ping(), this.activityTimer = new J(this.options.pongTimeout, () => {
3094
3101
  this.timeline.error({ pong_timed_out: this.options.pongTimeout }), this.retryIn(0);
3095
3102
  });
3096
3103
  }
3097
3104
  resetActivityCheck() {
3098
- this.stopActivityCheck(), this.connection && !this.connection.handlesActivityChecks() && (this.activityTimer = new K(this.activityTimeout, () => {
3105
+ this.stopActivityCheck(), this.connection && !this.connection.handlesActivityChecks() && (this.activityTimer = new J(this.activityTimeout, () => {
3099
3106
  this.sendActivityCheck();
3100
3107
  }));
3101
3108
  }
@@ -3103,7 +3110,7 @@ function Qi() {
3103
3110
  this.activityTimer && this.activityTimer.ensureAborted();
3104
3111
  }
3105
3112
  buildConnectionCallbacks(e) {
3106
- return z({}, e, {
3113
+ return O({}, e, {
3107
3114
  message: (t) => {
3108
3115
  this.resetActivityCheck(), this.emit("message", t);
3109
3116
  },
@@ -3122,7 +3129,7 @@ function Qi() {
3122
3129
  });
3123
3130
  }
3124
3131
  buildHandshakeCallbacks(e) {
3125
- return z({}, e, {
3132
+ return O({}, e, {
3126
3133
  connected: (t) => {
3127
3134
  this.activityTimeout = Math.min(this.options.activityTimeout, t.activityTimeout, t.connection.activityTimeout || 1 / 0), this.clearUnavailableTimer(), this.setConnection(t.connection), this.socket_id = this.connection.id, this.updateState("connected", { socket_id: this.socket_id });
3128
3135
  }
@@ -3166,7 +3173,7 @@ function Qi() {
3166
3173
  var r = this.state;
3167
3174
  if (this.state = e, r !== e) {
3168
3175
  var o = e;
3169
- o === "connected" && (o += " with new socket ID " + t.socket_id), P.debug("State changed", r + " -> " + o), this.timeline.info({ state: e, params: t }), this.emit("state_change", { previous: r, current: e }), this.emit(e, t);
3176
+ o === "connected" && (o += " with new socket ID " + t.socket_id), L.debug("State changed", r + " -> " + o), this.timeline.info({ state: e, params: t }), this.emit("state_change", { previous: r, current: e }), this.emit(e, t);
3170
3177
  }
3171
3178
  }
3172
3179
  shouldRetry() {
@@ -3178,7 +3185,7 @@ function Qi() {
3178
3185
  this.channels = {};
3179
3186
  }
3180
3187
  add(e, t) {
3181
- return this.channels[e] || (this.channels[e] = In(e, t)), this.channels[e];
3188
+ return this.channels[e] || (this.channels[e] = jn(e, t)), this.channels[e];
3182
3189
  }
3183
3190
  all() {
3184
3191
  return Ft(this.channels);
@@ -3196,28 +3203,28 @@ function Qi() {
3196
3203
  });
3197
3204
  }
3198
3205
  }
3199
- function In(n, e) {
3206
+ function jn(n, e) {
3200
3207
  if (n.indexOf("private-encrypted-") === 0) {
3201
3208
  if (e.config.nacl)
3202
- return X.createEncryptedChannel(n, e, e.config.nacl);
3209
+ return V.createEncryptedChannel(n, e, e.config.nacl);
3203
3210
  let t = "Tried to subscribe to a private-encrypted- channel but no nacl implementation available", r = x.buildLogSuffix("encryptedChannelSupport");
3204
- throw new W(`${t}. ${r}`);
3211
+ throw new U(`${t}. ${r}`);
3205
3212
  } else {
3206
3213
  if (n.indexOf("private-") === 0)
3207
- return X.createPrivateChannel(n, e);
3214
+ return V.createPrivateChannel(n, e);
3208
3215
  if (n.indexOf("presence-") === 0)
3209
- return X.createPresenceChannel(n, e);
3216
+ return V.createPresenceChannel(n, e);
3210
3217
  if (n.indexOf("#") === 0)
3211
3218
  throw new C('Cannot create a channel with name "' + n + '".');
3212
- return X.createChannel(n, e);
3219
+ return V.createChannel(n, e);
3213
3220
  }
3214
3221
  }
3215
- var jn = {
3222
+ var In = {
3216
3223
  createChannels() {
3217
3224
  return new Rn();
3218
3225
  },
3219
3226
  createConnectionManager(n, e) {
3220
- return new Pn(n, e);
3227
+ return new Ln(n, e);
3221
3228
  },
3222
3229
  createChannel(n, e) {
3223
3230
  return new Ce(n, e);
@@ -3229,25 +3236,25 @@ function Qi() {
3229
3236
  return new _n(n, e);
3230
3237
  },
3231
3238
  createEncryptedChannel(n, e, t) {
3232
- return new Ln(n, e, t);
3239
+ return new Pn(n, e, t);
3233
3240
  },
3234
3241
  createTimelineSender(n, e) {
3235
3242
  return new xn(n, e);
3236
3243
  },
3237
3244
  createHandshake(n, e) {
3238
- return new En(n, e);
3245
+ return new kn(n, e);
3239
3246
  },
3240
3247
  createAssistantToTheTransportManager(n, e, t) {
3241
3248
  return new Cn(n, e, t);
3242
3249
  }
3243
3250
  };
3244
- const X = jn;
3245
- class Qe {
3251
+ const V = In;
3252
+ class Ze {
3246
3253
  constructor(e) {
3247
3254
  this.options = e || {}, this.livesLeft = this.options.lives || 1 / 0;
3248
3255
  }
3249
3256
  getAssistant(e) {
3250
- return X.createAssistantToTheTransportManager(this, e, {
3257
+ return V.createAssistantToTheTransportManager(this, e, {
3251
3258
  minPingDelay: this.options.minPingDelay,
3252
3259
  maxPingDelay: this.options.maxPingDelay
3253
3260
  });
@@ -3259,7 +3266,7 @@ function Qi() {
3259
3266
  this.livesLeft -= 1;
3260
3267
  }
3261
3268
  }
3262
- class Q {
3269
+ class Z {
3263
3270
  constructor(e, t) {
3264
3271
  this.strategies = e, this.loop = !!t.loop, this.failFast = !!t.failFast, this.timeout = t.timeout, this.timeoutLimit = t.timeoutLimit;
3265
3272
  }
@@ -3267,30 +3274,30 @@ function Qi() {
3267
3274
  return $e(this.strategies, N.method("isSupported"));
3268
3275
  }
3269
3276
  connect(e, t) {
3270
- var r = this.strategies, o = 0, c = this.timeout, d = null, f = (b, k) => {
3271
- k ? t(null, k) : (o = o + 1, this.loop && (o = o % r.length), o < r.length ? (c && (c = c * 2, this.timeoutLimit && (c = Math.min(c, this.timeoutLimit))), d = this.tryStrategy(r[o], e, { timeout: c, failFast: this.failFast }, f)) : t(!0));
3277
+ var r = this.strategies, o = 0, c = this.timeout, h = null, f = (b, T) => {
3278
+ T ? t(null, T) : (o = o + 1, this.loop && (o = o % r.length), o < r.length ? (c && (c = c * 2, this.timeoutLimit && (c = Math.min(c, this.timeoutLimit))), h = this.tryStrategy(r[o], e, { timeout: c, failFast: this.failFast }, f)) : t(!0));
3272
3279
  };
3273
- return d = this.tryStrategy(r[o], e, { timeout: c, failFast: this.failFast }, f), {
3280
+ return h = this.tryStrategy(r[o], e, { timeout: c, failFast: this.failFast }, f), {
3274
3281
  abort: function() {
3275
- d.abort();
3282
+ h.abort();
3276
3283
  },
3277
3284
  forceMinPriority: function(b) {
3278
- e = b, d && d.forceMinPriority(b);
3285
+ e = b, h && h.forceMinPriority(b);
3279
3286
  }
3280
3287
  };
3281
3288
  }
3282
3289
  tryStrategy(e, t, r, o) {
3283
- var c = null, d = null;
3284
- return r.timeout > 0 && (c = new K(r.timeout, function() {
3285
- d.abort(), o(!0);
3286
- })), d = e.connect(t, function(f, b) {
3290
+ var c = null, h = null;
3291
+ return r.timeout > 0 && (c = new J(r.timeout, function() {
3292
+ h.abort(), o(!0);
3293
+ })), h = e.connect(t, function(f, b) {
3287
3294
  f && c && c.isRunning() && !r.failFast || (c && c.ensureAborted(), o(f, b));
3288
3295
  }), {
3289
3296
  abort: function() {
3290
- c && c.ensureAborted(), d.abort();
3297
+ c && c.ensureAborted(), h.abort();
3291
3298
  },
3292
3299
  forceMinPriority: function(f) {
3293
- d.forceMinPriority(f);
3300
+ h.forceMinPriority(f);
3294
3301
  }
3295
3302
  };
3296
3303
  }
@@ -3303,26 +3310,26 @@ function Qi() {
3303
3310
  return $e(this.strategies, N.method("isSupported"));
3304
3311
  }
3305
3312
  connect(e, t) {
3306
- return On(this.strategies, e, function(r, o) {
3307
- return function(c, d) {
3313
+ return Wn(this.strategies, e, function(r, o) {
3314
+ return function(c, h) {
3308
3315
  if (o[r].error = c, c) {
3309
3316
  Nn(o) && t(!0);
3310
3317
  return;
3311
3318
  }
3312
3319
  ie(o, function(f) {
3313
- f.forceMinPriority(d.transport.priority);
3314
- }), t(null, d);
3320
+ f.forceMinPriority(h.transport.priority);
3321
+ }), t(null, h);
3315
3322
  };
3316
3323
  });
3317
3324
  }
3318
3325
  }
3319
- function On(n, e, t) {
3320
- var r = De(n, function(o, c, d, f) {
3326
+ function Wn(n, e, t) {
3327
+ var r = Be(n, function(o, c, h, f) {
3321
3328
  return o.connect(e, t(c, f));
3322
3329
  });
3323
3330
  return {
3324
3331
  abort: function() {
3325
- ie(r, Un);
3332
+ ie(r, Hn);
3326
3333
  },
3327
3334
  forceMinPriority: function(o) {
3328
3335
  ie(r, function(c) {
@@ -3332,14 +3339,14 @@ function Qi() {
3332
3339
  };
3333
3340
  }
3334
3341
  function Nn(n) {
3335
- return Xt(n, function(e) {
3342
+ return Vt(n, function(e) {
3336
3343
  return !!e.error;
3337
3344
  });
3338
3345
  }
3339
- function Un(n) {
3346
+ function Hn(n) {
3340
3347
  !n.error && !n.aborted && (n.abort(), n.aborted = !0);
3341
3348
  }
3342
- class qn {
3349
+ class zn {
3343
3350
  constructor(e, t, r) {
3344
3351
  this.strategy = e, this.transports = t, this.ttl = r.ttl || 18e5, this.usingTLS = r.useTLS, this.timeline = r.timeline;
3345
3352
  }
@@ -3347,51 +3354,51 @@ function Qi() {
3347
3354
  return this.strategy.isSupported();
3348
3355
  }
3349
3356
  connect(e, t) {
3350
- var r = this.usingTLS, o = zn(r), c = o && o.cacheSkipCount ? o.cacheSkipCount : 0, d = [this.strategy];
3357
+ var r = this.usingTLS, o = On(r), c = o && o.cacheSkipCount ? o.cacheSkipCount : 0, h = [this.strategy];
3351
3358
  if (o && o.timestamp + this.ttl >= N.now()) {
3352
3359
  var f = this.transports[o.transport];
3353
3360
  f && (["ws", "wss"].includes(o.transport) || c > 3 ? (this.timeline.info({
3354
3361
  cached: !0,
3355
3362
  transport: o.transport,
3356
3363
  latency: o.latency
3357
- }), d.push(new Q([f], {
3364
+ }), h.push(new Z([f], {
3358
3365
  timeout: o.latency * 2 + 1e3,
3359
3366
  failFast: !0
3360
3367
  }))) : c++);
3361
3368
  }
3362
- var b = N.now(), k = d.pop().connect(e, function _(R, ue) {
3363
- R ? (Ze(r), d.length > 0 ? (b = N.now(), k = d.pop().connect(e, _)) : t(R)) : (Wn(r, ue.transport.name, N.now() - b, c), t(null, ue));
3369
+ var b = N.now(), T = h.pop().connect(e, function _(R, ue) {
3370
+ R ? (Qe(r), h.length > 0 ? (b = N.now(), T = h.pop().connect(e, _)) : t(R)) : (Un(r, ue.transport.name, N.now() - b, c), t(null, ue));
3364
3371
  });
3365
3372
  return {
3366
3373
  abort: function() {
3367
- k.abort();
3374
+ T.abort();
3368
3375
  },
3369
3376
  forceMinPriority: function(_) {
3370
- e = _, k && k.forceMinPriority(_);
3377
+ e = _, T && T.forceMinPriority(_);
3371
3378
  }
3372
3379
  };
3373
3380
  }
3374
3381
  }
3375
- function Te(n) {
3382
+ function Ee(n) {
3376
3383
  return "pusherTransport" + (n ? "TLS" : "NonTLS");
3377
3384
  }
3378
- function zn(n) {
3385
+ function On(n) {
3379
3386
  var e = w.getLocalStorage();
3380
3387
  if (e)
3381
3388
  try {
3382
- var t = e[Te(n)];
3389
+ var t = e[Ee(n)];
3383
3390
  if (t)
3384
3391
  return JSON.parse(t);
3385
3392
  } catch {
3386
- Ze(n);
3393
+ Qe(n);
3387
3394
  }
3388
3395
  return null;
3389
3396
  }
3390
- function Wn(n, e, t, r) {
3397
+ function Un(n, e, t, r) {
3391
3398
  var o = w.getLocalStorage();
3392
3399
  if (o)
3393
3400
  try {
3394
- o[Te(n)] = ae({
3401
+ o[Ee(n)] = ae({
3395
3402
  timestamp: N.now(),
3396
3403
  transport: e,
3397
3404
  latency: t,
@@ -3400,15 +3407,15 @@ function Qi() {
3400
3407
  } catch {
3401
3408
  }
3402
3409
  }
3403
- function Ze(n) {
3410
+ function Qe(n) {
3404
3411
  var e = w.getLocalStorage();
3405
3412
  if (e)
3406
3413
  try {
3407
- delete e[Te(n)];
3414
+ delete e[Ee(n)];
3408
3415
  } catch {
3409
3416
  }
3410
3417
  }
3411
- class he {
3418
+ class de {
3412
3419
  constructor(e, { delay: t }) {
3413
3420
  this.strategy = e, this.options = { delay: t };
3414
3421
  }
@@ -3416,15 +3423,15 @@ function Qi() {
3416
3423
  return this.strategy.isSupported();
3417
3424
  }
3418
3425
  connect(e, t) {
3419
- var r = this.strategy, o, c = new K(this.options.delay, function() {
3426
+ var r = this.strategy, o, c = new J(this.options.delay, function() {
3420
3427
  o = r.connect(e, t);
3421
3428
  });
3422
3429
  return {
3423
3430
  abort: function() {
3424
3431
  c.ensureAborted(), o && o.abort();
3425
3432
  },
3426
- forceMinPriority: function(d) {
3427
- e = d, o && o.forceMinPriority(d);
3433
+ forceMinPriority: function(h) {
3434
+ e = h, o && o.forceMinPriority(h);
3428
3435
  }
3429
3436
  };
3430
3437
  }
@@ -3442,7 +3449,7 @@ function Qi() {
3442
3449
  return r.connect(e, t);
3443
3450
  }
3444
3451
  }
3445
- class Hn {
3452
+ class qn {
3446
3453
  constructor(e) {
3447
3454
  this.strategy = e;
3448
3455
  }
@@ -3463,15 +3470,15 @@ function Qi() {
3463
3470
  }
3464
3471
  var Mn = function(n, e, t) {
3465
3472
  var r = {};
3466
- function o(ut, zi, Wi, Hi, Mi) {
3467
- var pt = t(n, ut, zi, Wi, Hi, Mi);
3473
+ function o(ut, Oi, Ui, qi, Mi) {
3474
+ var pt = t(n, ut, Oi, Ui, qi, Mi);
3468
3475
  return r[ut] = pt, pt;
3469
3476
  }
3470
3477
  var c = Object.assign({}, e, {
3471
3478
  hostNonTLS: n.wsHost + ":" + n.wsPort,
3472
3479
  hostTLS: n.wsHost + ":" + n.wssPort,
3473
3480
  httpPath: n.wsPath
3474
- }), d = Object.assign({}, c, {
3481
+ }), h = Object.assign({}, c, {
3475
3482
  useTLS: !0
3476
3483
  }), f = Object.assign({}, e, {
3477
3484
  hostNonTLS: n.httpHost + ":" + n.httpPort,
@@ -3481,42 +3488,42 @@ function Qi() {
3481
3488
  loop: !0,
3482
3489
  timeout: 15e3,
3483
3490
  timeoutLimit: 6e4
3484
- }, k = new Qe({
3491
+ }, T = new Ze({
3485
3492
  minPingDelay: 1e4,
3486
3493
  maxPingDelay: n.activityTimeout
3487
- }), _ = new Qe({
3494
+ }), _ = new Ze({
3488
3495
  lives: 2,
3489
3496
  minPingDelay: 1e4,
3490
3497
  maxPingDelay: n.activityTimeout
3491
- }), R = o("ws", "ws", 3, c, k), ue = o("wss", "ws", 3, d, k), ji = o("sockjs", "sockjs", 1, f), ot = o("xhr_streaming", "xhr_streaming", 1, f, _), Oi = o("xdr_streaming", "xdr_streaming", 1, f, _), at = o("xhr_polling", "xhr_polling", 1, f), Ni = o("xdr_polling", "xdr_polling", 1, f), ct = new Q([R], b), Ui = new Q([ue], b), qi = new Q([ji], b), ht = new Q([
3492
- new re(se(ot), ot, Oi)
3493
- ], b), dt = new Q([
3498
+ }), R = o("ws", "ws", 3, c, T), ue = o("wss", "ws", 3, h, T), Ii = o("sockjs", "sockjs", 1, f), ot = o("xhr_streaming", "xhr_streaming", 1, f, _), Wi = o("xdr_streaming", "xdr_streaming", 1, f, _), at = o("xhr_polling", "xhr_polling", 1, f), Ni = o("xdr_polling", "xdr_polling", 1, f), ct = new Z([R], b), Hi = new Z([ue], b), zi = new Z([Ii], b), dt = new Z([
3499
+ new re(se(ot), ot, Wi)
3500
+ ], b), ht = new Z([
3494
3501
  new re(se(at), at, Ni)
3495
- ], b), lt = new Q([
3496
- new re(se(ht), new xe([
3497
- ht,
3498
- new he(dt, { delay: 4e3 })
3499
- ]), dt)
3500
- ], b), Ae = new re(se(lt), lt, qi), Le;
3501
- return e.useTLS ? Le = new xe([
3502
+ ], b), lt = new Z([
3503
+ new re(se(dt), new xe([
3504
+ dt,
3505
+ new de(ht, { delay: 4e3 })
3506
+ ]), ht)
3507
+ ], b), Ae = new re(se(lt), lt, zi), Pe;
3508
+ return e.useTLS ? Pe = new xe([
3502
3509
  ct,
3503
- new he(Ae, { delay: 2e3 })
3504
- ]) : Le = new xe([
3510
+ new de(Ae, { delay: 2e3 })
3511
+ ]) : Pe = new xe([
3505
3512
  ct,
3506
- new he(Ui, { delay: 2e3 }),
3507
- new he(Ae, { delay: 5e3 })
3508
- ]), new qn(new Hn(new re(se(R), Le, Ae)), r, {
3513
+ new de(Hi, { delay: 2e3 }),
3514
+ new de(Ae, { delay: 5e3 })
3515
+ ]), new zn(new qn(new re(se(R), Pe, Ae)), r, {
3509
3516
  ttl: 18e5,
3510
3517
  timeline: e.timeline,
3511
3518
  useTLS: e.useTLS
3512
3519
  });
3513
3520
  };
3514
- const Dn = Mn;
3515
- function Bn() {
3521
+ const Bn = Mn;
3522
+ function Dn() {
3516
3523
  var n = this;
3517
3524
  n.timeline.info(n.buildTimelineMessage({
3518
3525
  transport: n.name + (n.options.useTLS ? "s" : "")
3519
- })), n.hooks.isInitialized() ? n.changeState("initialized") : n.hooks.file ? (n.changeState("initializing"), U.load(n.hooks.file, { useTLS: n.options.useTLS }, function(e, t) {
3526
+ })), n.hooks.isInitialized() ? n.changeState("initialized") : n.hooks.file ? (n.changeState("initializing"), H.load(n.hooks.file, { useTLS: n.options.useTLS }, function(e, t) {
3520
3527
  n.hooks.isInitialized() ? (n.changeState("initialized"), t(!0)) : (e && n.onError(e), n.onClose(), t(!1));
3521
3528
  })) : n.onClose();
3522
3529
  }
@@ -3524,7 +3531,7 @@ function Qi() {
3524
3531
  getRequest: function(n) {
3525
3532
  var e = new window.XDomainRequest();
3526
3533
  return e.ontimeout = function() {
3527
- n.emit("error", new L()), n.close();
3534
+ n.emit("error", new P()), n.close();
3528
3535
  }, e.onerror = function(t) {
3529
3536
  n.emit("error", t), n.close();
3530
3537
  }, e.onprogress = function() {
@@ -3537,8 +3544,8 @@ function Qi() {
3537
3544
  n.ontimeout = n.onerror = n.onprogress = n.onload = null, n.abort();
3538
3545
  }
3539
3546
  };
3540
- const $n = Fn, Vn = 256 * 1024;
3541
- class Xn extends V {
3547
+ const $n = Fn, Gn = 256 * 1024;
3548
+ class Vn extends G {
3542
3549
  constructor(e, t, r) {
3543
3550
  super(), this.hooks = e, this.method = t, this.url = r;
3544
3551
  }
@@ -3566,18 +3573,18 @@ function Qi() {
3566
3573
  return r !== -1 ? (this.position += r + 1, t.slice(0, r)) : null;
3567
3574
  }
3568
3575
  isBufferTooLong(e) {
3569
- return this.position === e.length && e.length > Vn;
3576
+ return this.position === e.length && e.length > Gn;
3570
3577
  }
3571
3578
  }
3572
- var ke;
3579
+ var Te;
3573
3580
  (function(n) {
3574
3581
  n[n.CONNECTING = 0] = "CONNECTING", n[n.OPEN = 1] = "OPEN", n[n.CLOSED = 3] = "CLOSED";
3575
- })(ke || (ke = {}));
3576
- const Z = ke;
3577
- var Gn = 1;
3578
- class Jn {
3582
+ })(Te || (Te = {}));
3583
+ const Q = Te;
3584
+ var Kn = 1;
3585
+ class Xn {
3579
3586
  constructor(e, t) {
3580
- this.hooks = e, this.session = tt(1e3) + "/" + Zn(8), this.location = Kn(t), this.readyState = Z.CONNECTING, this.openStream();
3587
+ this.hooks = e, this.session = tt(1e3) + "/" + Qn(8), this.location = Jn(t), this.readyState = Q.CONNECTING, this.openStream();
3581
3588
  }
3582
3589
  send(e) {
3583
3590
  return this.sendRaw(JSON.stringify([e]));
@@ -3589,7 +3596,7 @@ function Qi() {
3589
3596
  this.onClose(e, t, !0);
3590
3597
  }
3591
3598
  sendRaw(e) {
3592
- if (this.readyState === Z.OPEN)
3599
+ if (this.readyState === Q.OPEN)
3593
3600
  try {
3594
3601
  return w.createSocketRequest("POST", et(Yn(this.location, this.session))).start(e), !0;
3595
3602
  } catch {
@@ -3602,7 +3609,7 @@ function Qi() {
3602
3609
  this.closeStream(), this.openStream();
3603
3610
  }
3604
3611
  onClose(e, t, r) {
3605
- this.closeStream(), this.readyState = Z.CLOSED, this.onclose && this.onclose({
3612
+ this.closeStream(), this.readyState = Q.CLOSED, this.onclose && this.onclose({
3606
3613
  code: e,
3607
3614
  reason: t,
3608
3615
  wasClean: r
@@ -3610,7 +3617,7 @@ function Qi() {
3610
3617
  }
3611
3618
  onChunk(e) {
3612
3619
  if (e.status === 200) {
3613
- this.readyState === Z.OPEN && this.onActivity();
3620
+ this.readyState === Q.OPEN && this.onActivity();
3614
3621
  var t, r = e.data.slice(0, 1);
3615
3622
  switch (r) {
3616
3623
  case "o":
@@ -3634,10 +3641,10 @@ function Qi() {
3634
3641
  }
3635
3642
  }
3636
3643
  onOpen(e) {
3637
- this.readyState === Z.CONNECTING ? (e && e.hostname && (this.location.base = Qn(this.location.base, e.hostname)), this.readyState = Z.OPEN, this.onopen && this.onopen()) : this.onClose(1006, "Server lost session", !0);
3644
+ this.readyState === Q.CONNECTING ? (e && e.hostname && (this.location.base = Zn(this.location.base, e.hostname)), this.readyState = Q.OPEN, this.onopen && this.onopen()) : this.onClose(1006, "Server lost session", !0);
3638
3645
  }
3639
3646
  onEvent(e) {
3640
- this.readyState === Z.OPEN && this.onmessage && this.onmessage({ data: e });
3647
+ this.readyState === Q.OPEN && this.onmessage && this.onmessage({ data: e });
3641
3648
  }
3642
3649
  onActivity() {
3643
3650
  this.onactivity && this.onactivity();
@@ -3665,7 +3672,7 @@ function Qi() {
3665
3672
  this.stream && (this.stream.unbind_all(), this.stream.close(), this.stream = null);
3666
3673
  }
3667
3674
  }
3668
- function Kn(n) {
3675
+ function Jn(n) {
3669
3676
  var e = /([^\?]*)\/*(\??.*)/.exec(n);
3670
3677
  return {
3671
3678
  base: e[1],
@@ -3677,21 +3684,21 @@ function Qi() {
3677
3684
  }
3678
3685
  function et(n) {
3679
3686
  var e = n.indexOf("?") === -1 ? "?" : "&";
3680
- return n + e + "t=" + +/* @__PURE__ */ new Date() + "&n=" + Gn++;
3687
+ return n + e + "t=" + +/* @__PURE__ */ new Date() + "&n=" + Kn++;
3681
3688
  }
3682
- function Qn(n, e) {
3689
+ function Zn(n, e) {
3683
3690
  var t = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(n);
3684
3691
  return t[1] + e + t[3];
3685
3692
  }
3686
3693
  function tt(n) {
3687
3694
  return w.randomInt(n);
3688
3695
  }
3689
- function Zn(n) {
3696
+ function Qn(n) {
3690
3697
  for (var e = [], t = 0; t < n; t++)
3691
3698
  e.push(tt(32).toString(32));
3692
3699
  return e.join("");
3693
3700
  }
3694
- const ei = Jn;
3701
+ const ei = Xn;
3695
3702
  var ti = {
3696
3703
  getReceiveURL: function(n, e) {
3697
3704
  return n.base + "/" + e + "/xhr_streaming" + n.queryString;
@@ -3754,7 +3761,7 @@ function Qi() {
3754
3761
  return this.createRequest(oi, n, e);
3755
3762
  },
3756
3763
  createRequest(n, e, t) {
3757
- return new Xn(n, e, t);
3764
+ return new Vn(n, e, t);
3758
3765
  }
3759
3766
  };
3760
3767
  const nt = ai;
@@ -3765,10 +3772,10 @@ function Qi() {
3765
3772
  nextAuthCallbackID: 1,
3766
3773
  auth_callbacks: {},
3767
3774
  ScriptReceivers: S,
3768
- DependenciesReceivers: D,
3769
- getDefaultStrategy: Dn,
3775
+ DependenciesReceivers: B,
3776
+ getDefaultStrategy: Bn,
3770
3777
  Transports: yn,
3771
- transportConnectionInitializer: Bn,
3778
+ transportConnectionInitializer: Dn,
3772
3779
  HTTPFactory: nt,
3773
3780
  TimelineTransport: sn,
3774
3781
  getXHRAPI() {
@@ -3782,7 +3789,7 @@ function Qi() {
3782
3789
  var e = () => {
3783
3790
  this.onDocumentBody(n.ready);
3784
3791
  };
3785
- window.JSON ? e() : U.load("json2", {}, e);
3792
+ window.JSON ? e() : H.load("json2", {}, e);
3786
3793
  },
3787
3794
  getDocument() {
3788
3795
  return document;
@@ -3791,7 +3798,7 @@ function Qi() {
3791
3798
  return this.getDocument().location.protocol;
3792
3799
  },
3793
3800
  getAuthorizers() {
3794
- return { ajax: It, jsonp: Zt };
3801
+ return { ajax: jt, jsonp: Qt };
3795
3802
  },
3796
3803
  onDocumentBody(n) {
3797
3804
  document.body ? n() : setTimeout(() => {
@@ -3860,28 +3867,28 @@ function Qi() {
3860
3867
  (function(n) {
3861
3868
  n[n.ERROR = 3] = "ERROR", n[n.INFO = 6] = "INFO", n[n.DEBUG = 7] = "DEBUG";
3862
3869
  })(_e || (_e = {}));
3863
- const de = _e;
3864
- class hi {
3870
+ const he = _e;
3871
+ class di {
3865
3872
  constructor(e, t, r) {
3866
3873
  this.key = e, this.session = t, this.events = [], this.options = r || {}, this.sent = 0, this.uniqueID = 0;
3867
3874
  }
3868
3875
  log(e, t) {
3869
- e <= this.options.level && (this.events.push(z({}, t, { timestamp: N.now() })), this.options.limit && this.events.length > this.options.limit && this.events.shift());
3876
+ e <= this.options.level && (this.events.push(O({}, t, { timestamp: N.now() })), this.options.limit && this.events.length > this.options.limit && this.events.shift());
3870
3877
  }
3871
3878
  error(e) {
3872
- this.log(de.ERROR, e);
3879
+ this.log(he.ERROR, e);
3873
3880
  }
3874
3881
  info(e) {
3875
- this.log(de.INFO, e);
3882
+ this.log(he.INFO, e);
3876
3883
  }
3877
3884
  debug(e) {
3878
- this.log(de.DEBUG, e);
3885
+ this.log(he.DEBUG, e);
3879
3886
  }
3880
3887
  isEmpty() {
3881
3888
  return this.events.length === 0;
3882
3889
  }
3883
3890
  send(e, t) {
3884
- var r = z({
3891
+ var r = O({
3885
3892
  session: this.session,
3886
3893
  bundle: this.sent + 1,
3887
3894
  key: this.key,
@@ -3899,7 +3906,7 @@ function Qi() {
3899
3906
  return this.uniqueID++, this.uniqueID;
3900
3907
  }
3901
3908
  }
3902
- class di {
3909
+ class hi {
3903
3910
  constructor(e, t, r, o) {
3904
3911
  this.name = e, this.priority = t, this.transport = r, this.options = o || {};
3905
3912
  }
@@ -3911,24 +3918,24 @@ function Qi() {
3911
3918
  connect(e, t) {
3912
3919
  if (this.isSupported()) {
3913
3920
  if (this.priority < e)
3914
- return it(new O(), t);
3921
+ return it(new W(), t);
3915
3922
  } else return it(new M(), t);
3916
- var r = !1, o = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), c = null, d = function() {
3917
- o.unbind("initialized", d), o.connect();
3923
+ var r = !1, o = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), c = null, h = function() {
3924
+ o.unbind("initialized", h), o.connect();
3918
3925
  }, f = function() {
3919
- c = X.createHandshake(o, function(R) {
3926
+ c = V.createHandshake(o, function(R) {
3920
3927
  r = !0, _(), t(null, R);
3921
3928
  });
3922
3929
  }, b = function(R) {
3923
3930
  _(), t(R);
3924
- }, k = function() {
3931
+ }, T = function() {
3925
3932
  _();
3926
3933
  var R;
3927
- R = ae(o), t(new q(R));
3934
+ R = ae(o), t(new z(R));
3928
3935
  }, _ = function() {
3929
- o.unbind("initialized", d), o.unbind("open", f), o.unbind("error", b), o.unbind("closed", k);
3936
+ o.unbind("initialized", h), o.unbind("open", f), o.unbind("error", b), o.unbind("closed", T);
3930
3937
  };
3931
- return o.bind("initialized", d), o.bind("open", f), o.bind("error", b), o.bind("closed", k), o.initialize(), {
3938
+ return o.bind("initialized", h), o.bind("open", f), o.bind("error", b), o.bind("closed", T), o.initialize(), {
3932
3939
  abort: () => {
3933
3940
  r || (_(), c ? c.close() : o.close());
3934
3941
  },
@@ -3950,11 +3957,11 @@ function Qi() {
3950
3957
  }
3951
3958
  const { Transports: li } = w;
3952
3959
  var ui = function(n, e, t, r, o, c) {
3953
- var d = li[t];
3954
- if (!d)
3955
- throw new G(t);
3956
- var f = (!n.enabledTransports || He(n.enabledTransports, e) !== -1) && (!n.disabledTransports || He(n.disabledTransports, e) === -1), b;
3957
- return f ? (o = Object.assign({ ignoreNullOrigin: n.ignoreNullOrigin }, o), b = new di(e, r, c ? c.getAssistant(d) : d, o)) : b = pi, b;
3960
+ var h = li[t];
3961
+ if (!h)
3962
+ throw new K(t);
3963
+ var f = (!n.enabledTransports || qe(n.enabledTransports, e) !== -1) && (!n.disabledTransports || qe(n.disabledTransports, e) === -1), b;
3964
+ return f ? (o = Object.assign({ ignoreNullOrigin: n.ignoreNullOrigin }, o), b = new hi(e, r, c ? c.getAssistant(h) : h, o)) : b = pi, b;
3958
3965
  }, pi = {
3959
3966
  isSupported: function() {
3960
3967
  return !1;
@@ -3977,7 +3984,7 @@ function Qi() {
3977
3984
  throw "You must pass an options object";
3978
3985
  if (n.cluster == null)
3979
3986
  throw "Options object must provide a cluster";
3980
- "disableStats" in n && P.warn("The disableStats option is deprecated in favor of enableStats");
3987
+ "disableStats" in n && L.warn("The disableStats option is deprecated in favor of enableStats");
3981
3988
  }
3982
3989
  const mi = (n, e) => {
3983
3990
  var t = "socket_id=" + encodeURIComponent(n.socketId);
@@ -4024,34 +4031,34 @@ function Qi() {
4024
4031
  }
4025
4032
  };
4026
4033
  return (o, c) => {
4027
- const d = n.channel(o.channelName);
4028
- t(d, r).authorize(o.socketId, c);
4034
+ const h = n.channel(o.channelName);
4035
+ t(h, r).authorize(o.socketId, c);
4029
4036
  };
4030
4037
  };
4031
4038
  function rt(n, e) {
4032
4039
  let t = {
4033
- activityTimeout: n.activityTimeout || E.activityTimeout,
4040
+ activityTimeout: n.activityTimeout || k.activityTimeout,
4034
4041
  cluster: n.cluster,
4035
- httpPath: n.httpPath || E.httpPath,
4036
- httpPort: n.httpPort || E.httpPort,
4037
- httpsPort: n.httpsPort || E.httpsPort,
4038
- pongTimeout: n.pongTimeout || E.pongTimeout,
4039
- statsHost: n.statsHost || E.stats_host,
4040
- unavailableTimeout: n.unavailableTimeout || E.unavailableTimeout,
4041
- wsPath: n.wsPath || E.wsPath,
4042
- wsPort: n.wsPort || E.wsPort,
4043
- wssPort: n.wssPort || E.wssPort,
4042
+ httpPath: n.httpPath || k.httpPath,
4043
+ httpPort: n.httpPort || k.httpPort,
4044
+ httpsPort: n.httpsPort || k.httpsPort,
4045
+ pongTimeout: n.pongTimeout || k.pongTimeout,
4046
+ statsHost: n.statsHost || k.stats_host,
4047
+ unavailableTimeout: n.unavailableTimeout || k.unavailableTimeout,
4048
+ wsPath: n.wsPath || k.wsPath,
4049
+ wsPort: n.wsPort || k.wsPort,
4050
+ wssPort: n.wssPort || k.wssPort,
4044
4051
  enableStats: xi(n),
4045
4052
  httpHost: wi(n),
4046
- useTLS: Ei(n),
4053
+ useTLS: ki(n),
4047
4054
  wsHost: Ci(n),
4048
- userAuthenticator: Ti(n),
4055
+ userAuthenticator: Ei(n),
4049
4056
  channelAuthorizer: _i(n, e)
4050
4057
  };
4051
4058
  return "disabledTransports" in n && (t.disabledTransports = n.disabledTransports), "enabledTransports" in n && (t.enabledTransports = n.enabledTransports), "ignoreNullOrigin" in n && (t.ignoreNullOrigin = n.ignoreNullOrigin), "timelineParams" in n && (t.timelineParams = n.timelineParams), "nacl" in n && (t.nacl = n.nacl), t;
4052
4059
  }
4053
4060
  function wi(n) {
4054
- return n.httpHost ? n.httpHost : n.cluster ? `sockjs-${n.cluster}.pusher.com` : E.httpHost;
4061
+ return n.httpHost ? n.httpHost : n.cluster ? `sockjs-${n.cluster}.pusher.com` : k.httpHost;
4055
4062
  }
4056
4063
  function Ci(n) {
4057
4064
  return n.wsHost ? n.wsHost : Si(n.cluster);
@@ -4059,24 +4066,24 @@ function Qi() {
4059
4066
  function Si(n) {
4060
4067
  return `ws-${n}.pusher.com`;
4061
4068
  }
4062
- function Ei(n) {
4069
+ function ki(n) {
4063
4070
  return w.getProtocol() === "https:" ? !0 : n.forceTLS !== !1;
4064
4071
  }
4065
4072
  function xi(n) {
4066
4073
  return "enableStats" in n ? n.enableStats : "disableStats" in n ? !n.disableStats : !1;
4067
4074
  }
4068
4075
  const st = (n) => "customHandler" in n && n.customHandler != null;
4069
- function Ti(n) {
4070
- const e = Object.assign(Object.assign({}, E.userAuthentication), n.userAuthentication);
4076
+ function Ei(n) {
4077
+ const e = Object.assign(Object.assign({}, k.userAuthentication), n.userAuthentication);
4071
4078
  return st(e) ? e.customHandler : gi(e);
4072
4079
  }
4073
- function ki(n, e) {
4080
+ function Ti(n, e) {
4074
4081
  let t;
4075
4082
  if ("channelAuthorization" in n)
4076
- t = Object.assign(Object.assign({}, E.channelAuthorization), n.channelAuthorization);
4083
+ t = Object.assign(Object.assign({}, k.channelAuthorization), n.channelAuthorization);
4077
4084
  else if (t = {
4078
- transport: n.authTransport || E.authTransport,
4079
- endpoint: n.authEndpoint || E.authEndpoint
4085
+ transport: n.authTransport || k.authTransport,
4086
+ endpoint: n.authEndpoint || k.authEndpoint
4080
4087
  }, "auth" in n && ("params" in n.auth && (t.params = n.auth.params), "headers" in n.auth && (t.headers = n.auth.headers)), "authorizer" in n)
4081
4088
  return {
4082
4089
  customHandler: bi(e, t, n.authorizer)
@@ -4084,13 +4091,13 @@ function Qi() {
4084
4091
  return t;
4085
4092
  }
4086
4093
  function _i(n, e) {
4087
- const t = ki(n, e);
4094
+ const t = Ti(n, e);
4088
4095
  return st(t) ? t.customHandler : yi(t);
4089
4096
  }
4090
- class Ai extends V {
4097
+ class Ai extends G {
4091
4098
  constructor(e) {
4092
4099
  super(function(t, r) {
4093
- P.debug(`No callbacks on watchlist events for ${t}`);
4100
+ L.debug(`No callbacks on watchlist events for ${t}`);
4094
4101
  }), this.pusher = e, this.bindWatchlistInternalEvent();
4095
4102
  }
4096
4103
  handleEvent(e) {
@@ -4105,20 +4112,20 @@ function Qi() {
4105
4112
  });
4106
4113
  }
4107
4114
  }
4108
- function Li() {
4115
+ function Pi() {
4109
4116
  let n, e;
4110
4117
  return { promise: new Promise((r, o) => {
4111
4118
  n = r, e = o;
4112
4119
  }), resolve: n, reject: e };
4113
4120
  }
4114
- const Pi = Li;
4115
- class Ri extends V {
4121
+ const Li = Pi;
4122
+ class Ri extends G {
4116
4123
  constructor(e) {
4117
4124
  super(function(t, r) {
4118
- P.debug("No callbacks on user for " + t);
4125
+ L.debug("No callbacks on user for " + t);
4119
4126
  }), this.signin_requested = !1, this.user_data = null, this.serverToUserChannel = null, this.signinDonePromise = null, this._signinDoneResolve = null, this._onAuthorize = (t, r) => {
4120
4127
  if (t) {
4121
- P.warn(`Error during signin: ${t}`), this._cleanup();
4128
+ L.warn(`Error during signin: ${t}`), this._cleanup();
4122
4129
  return;
4123
4130
  }
4124
4131
  this.pusher.send_event("pusher:signin", {
@@ -4144,11 +4151,11 @@ function Qi() {
4144
4151
  try {
4145
4152
  this.user_data = JSON.parse(e.user_data);
4146
4153
  } catch {
4147
- P.error(`Failed parsing user data after signin: ${e.user_data}`), this._cleanup();
4154
+ L.error(`Failed parsing user data after signin: ${e.user_data}`), this._cleanup();
4148
4155
  return;
4149
4156
  }
4150
4157
  if (typeof this.user_data.id != "string" || this.user_data.id === "") {
4151
- P.error(`user_data doesn't contain an id. user_data: ${this.user_data}`), this._cleanup();
4158
+ L.error(`user_data doesn't contain an id. user_data: ${this.user_data}`), this._cleanup();
4152
4159
  return;
4153
4160
  }
4154
4161
  this._signinDoneResolve(), this._subscribeChannels();
@@ -4167,7 +4174,7 @@ function Qi() {
4167
4174
  _newSigninPromiseIfNeeded() {
4168
4175
  if (!this.signin_requested || this.signinDonePromise && !this.signinDonePromise.done)
4169
4176
  return;
4170
- const { promise: e, resolve: t } = Pi();
4177
+ const { promise: e, resolve: t } = Li();
4171
4178
  e.done = !1;
4172
4179
  const r = () => {
4173
4180
  e.done = !0;
@@ -4175,11 +4182,11 @@ function Qi() {
4175
4182
  e.then(r).catch(r), this.signinDonePromise = e, this._signinDoneResolve = t;
4176
4183
  }
4177
4184
  }
4178
- class I {
4185
+ class j {
4179
4186
  static ready() {
4180
- I.isReady = !0;
4181
- for (var e = 0, t = I.instances.length; e < t; e++)
4182
- I.instances[e].connect();
4187
+ j.isReady = !0;
4188
+ for (var e = 0, t = j.instances.length; e < t; e++)
4189
+ j.instances[e].connect();
4183
4190
  }
4184
4191
  static getClientFeatures() {
4185
4192
  return Me(Fe({ ws: w.Transports.ws }, function(e) {
@@ -4187,19 +4194,19 @@ function Qi() {
4187
4194
  }));
4188
4195
  }
4189
4196
  constructor(e, t) {
4190
- Ii(e), fi(t), this.key = e, this.options = t, this.config = rt(this.options, this), this.channels = X.createChannels(), this.global_emitter = new V(), this.sessionID = w.randomInt(1e9), this.timeline = new hi(this.key, this.sessionID, {
4197
+ ji(e), fi(t), this.key = e, this.options = t, this.config = rt(this.options, this), this.channels = V.createChannels(), this.global_emitter = new G(), this.sessionID = w.randomInt(1e9), this.timeline = new di(this.key, this.sessionID, {
4191
4198
  cluster: this.config.cluster,
4192
- features: I.getClientFeatures(),
4199
+ features: j.getClientFeatures(),
4193
4200
  params: this.config.timelineParams || {},
4194
4201
  limit: 50,
4195
- level: de.INFO,
4196
- version: E.VERSION
4197
- }), this.config.enableStats && (this.timelineSender = X.createTimelineSender(this.timeline, {
4202
+ level: he.INFO,
4203
+ version: k.VERSION
4204
+ }), this.config.enableStats && (this.timelineSender = V.createTimelineSender(this.timeline, {
4198
4205
  host: this.config.statsHost,
4199
4206
  path: "/timeline/v2/" + w.TimelineTransport.name
4200
4207
  }));
4201
4208
  var r = (o) => w.getDefaultStrategy(this.config, o, ui);
4202
- this.connection = X.createConnectionManager(this.key, {
4209
+ this.connection = V.createConnectionManager(this.key, {
4203
4210
  getStrategy: r,
4204
4211
  timeline: this.timeline,
4205
4212
  activityTimeout: this.config.activityTimeout,
@@ -4209,19 +4216,19 @@ function Qi() {
4209
4216
  }), this.connection.bind("connected", () => {
4210
4217
  this.subscribeAll(), this.timelineSender && this.timelineSender.send(this.connection.isUsingTLS());
4211
4218
  }), this.connection.bind("message", (o) => {
4212
- var c = o.event, d = c.indexOf("pusher_internal:") === 0;
4219
+ var c = o.event, h = c.indexOf("pusher_internal:") === 0;
4213
4220
  if (o.channel) {
4214
4221
  var f = this.channel(o.channel);
4215
4222
  f && f.handleEvent(o);
4216
4223
  }
4217
- d || this.global_emitter.emit(o.event, o.data);
4224
+ h || this.global_emitter.emit(o.event, o.data);
4218
4225
  }), this.connection.bind("connecting", () => {
4219
4226
  this.channels.disconnect();
4220
4227
  }), this.connection.bind("disconnected", () => {
4221
4228
  this.channels.disconnect();
4222
4229
  }), this.connection.bind("error", (o) => {
4223
- P.warn(o);
4224
- }), I.instances.push(this), this.timeline.info({ instances: I.instances.length }), this.user = new Ri(this), I.isReady && this.connect();
4230
+ L.warn(o);
4231
+ }), j.instances.push(this), this.timeline.info({ instances: j.instances.length }), this.user = new Ri(this), j.isReady && this.connect();
4225
4232
  }
4226
4233
  switchCluster(e) {
4227
4234
  const { appKey: t, cluster: r } = e;
@@ -4282,17 +4289,17 @@ function Qi() {
4282
4289
  this.user.signin();
4283
4290
  }
4284
4291
  }
4285
- I.instances = [], I.isReady = !1, I.logToConsole = !1, I.Runtime = w, I.ScriptReceivers = w.ScriptReceivers, I.DependenciesReceivers = w.DependenciesReceivers, I.auth_callbacks = w.auth_callbacks;
4286
- const le = I;
4287
- function Ii(n) {
4292
+ j.instances = [], j.isReady = !1, j.logToConsole = !1, j.Runtime = w, j.ScriptReceivers = w.ScriptReceivers, j.DependenciesReceivers = w.DependenciesReceivers, j.auth_callbacks = w.auth_callbacks;
4293
+ const le = j;
4294
+ function ji(n) {
4288
4295
  if (n == null)
4289
4296
  throw "You must pass your app key when you instantiate Pusher.";
4290
4297
  }
4291
- w.setup(I);
4298
+ w.setup(j);
4292
4299
  }
4293
4300
  /******/
4294
4301
  }, a = {};
4295
- function h(m) {
4302
+ function d(m) {
4296
4303
  var v = a[m];
4297
4304
  if (v !== void 0)
4298
4305
  return v.exports;
@@ -4305,20 +4312,20 @@ function Qi() {
4305
4312
  exports: {}
4306
4313
  /******/
4307
4314
  };
4308
- return s[m].call(y.exports, y, y.exports, h), y.exports;
4315
+ return s[m].call(y.exports, y, y.exports, d), y.exports;
4309
4316
  }
4310
- h.d = (m, v) => {
4317
+ d.d = (m, v) => {
4311
4318
  for (var y in v)
4312
- h.o(v, y) && !h.o(m, y) && Object.defineProperty(m, y, { enumerable: !0, get: v[y] });
4313
- }, h.o = (m, v) => Object.prototype.hasOwnProperty.call(m, v);
4314
- var l = h(721);
4319
+ d.o(v, y) && !d.o(m, y) && Object.defineProperty(m, y, { enumerable: !0, get: v[y] });
4320
+ }, d.o = (m, v) => Object.prototype.hasOwnProperty.call(m, v);
4321
+ var l = d(721);
4315
4322
  return l;
4316
4323
  })()
4317
4324
  ));
4318
- })(Pe)), Pe.exports;
4325
+ })(Le)), Le.exports;
4319
4326
  }
4320
- var Zi = Qi();
4321
- const er = /* @__PURE__ */ Yi(Zi), Re = "/vendor/sendity-client/tailwind.css", Pt = {
4327
+ var Qi = Zi();
4328
+ const er = /* @__PURE__ */ Yi(Qi), Re = "/vendor/sendity-client/tailwind.css", Lt = {
4322
4329
  labels: {
4323
4330
  email: "Email",
4324
4331
  whatsapp: "WhatsApp"
@@ -4525,7 +4532,7 @@ Kode: (Code)`,
4525
4532
  Code: (Code)`,
4526
4533
  whatsappText: "Log me in bij (Host) met deze code: (Code)"
4527
4534
  }
4528
- }, hr = {
4535
+ }, dr = {
4529
4536
  labels: {
4530
4537
  email: "E-pošta",
4531
4538
  whatsapp: "WhatsApp"
@@ -4548,7 +4555,7 @@ Code: (Code)`,
4548
4555
  Kod: (Code)`,
4549
4556
  whatsappText: "Prijavi me u (Host) ovim kodom: (Code)"
4550
4557
  }
4551
- }, dr = {
4558
+ }, hr = {
4552
4559
  labels: {
4553
4560
  email: "Ηλεκτρονικό ταχυδρομείο",
4554
4561
  whatsapp: "WhatsApp"
@@ -4617,8 +4624,430 @@ Kod: (Code)`,
4617
4624
  Code: (Code)`,
4618
4625
  whatsappText: "Logg misch bei (Host) mit dem Code oi: (Code)"
4619
4626
  }
4620
- }, pr = ["en", "de", "fr", "es", "it", "pl", "cs", "da", "nl", "hr", "el", "tr", "de-he"], fr = {
4621
- en: Pt,
4627
+ }, pr = {
4628
+ labels: {
4629
+ email: "Эл. почта",
4630
+ whatsapp: "WhatsApp"
4631
+ },
4632
+ ui: {
4633
+ sendCodePrompt: "Отправьте этот код, чтобы продолжить",
4634
+ successGreeting: "Здравствуйте, (Name)",
4635
+ by: "через",
4636
+ toPrefix: "на",
4637
+ footerWaiting: "Готово к получению вашего кода…",
4638
+ footerWaitingUntil: "Готово к получению вашего кода…",
4639
+ footerReturnedWaiting: "Ожидаем прибытия вашего сообщения…",
4640
+ codeExpired: "Срок действия кода истёк, запросите новый.",
4641
+ getNewCode: "Получить новый код"
4642
+ },
4643
+ templates: {
4644
+ emailSubject: "Войдите в (Host) с этим кодом: (Code)",
4645
+ emailBody: `Чтобы войти в (Host), отправьте это письмо без изменений.
4646
+
4647
+ Код: (Code)`,
4648
+ whatsappText: "Войдите в (Host) с этим кодом: (Code)"
4649
+ }
4650
+ }, fr = {
4651
+ labels: {
4652
+ email: "E-post",
4653
+ whatsapp: "WhatsApp"
4654
+ },
4655
+ ui: {
4656
+ sendCodePrompt: "Skicka den här koden för att fortsätta",
4657
+ successGreeting: "Hej, (Name)",
4658
+ by: "via",
4659
+ toPrefix: "till",
4660
+ footerWaiting: "Redo att ta emot din kod…",
4661
+ footerWaitingUntil: "Redo att ta emot din kod…",
4662
+ footerReturnedWaiting: "Väntar på att ditt meddelande ska komma fram…",
4663
+ codeExpired: "Koden har gått ut, begär en ny.",
4664
+ getNewCode: "Hämta ny kod"
4665
+ },
4666
+ templates: {
4667
+ emailSubject: "Logga in mig på (Host) med den här koden: (Code)",
4668
+ emailBody: `För att autentisera dig hos (Host), skicka detta e-postmeddelande utan ändringar.
4669
+
4670
+ Kod: (Code)`,
4671
+ whatsappText: "Logga in mig på (Host) med den här koden: (Code)"
4672
+ }
4673
+ }, mr = {
4674
+ labels: {
4675
+ email: "E-mail",
4676
+ whatsapp: "WhatsApp"
4677
+ },
4678
+ ui: {
4679
+ sendCodePrompt: "Envia este código para continuar",
4680
+ successGreeting: "Olá, (Name)",
4681
+ by: "por",
4682
+ toPrefix: "para",
4683
+ footerWaiting: "Pronto para receber o teu código…",
4684
+ footerWaitingUntil: "Pronto para receber o teu código…",
4685
+ footerReturnedWaiting: "A aguardar que a tua mensagem chegue…",
4686
+ codeExpired: "O código expirou, pede um novo.",
4687
+ getNewCode: "Obter novo código"
4688
+ },
4689
+ templates: {
4690
+ emailSubject: "Inicia sessão em (Host) com este código: (Code)",
4691
+ emailBody: `Para autenticar em (Host), envia este email sem fazer alterações.
4692
+
4693
+ Código: (Code)`,
4694
+ whatsappText: "Inicia sessão em (Host) com este código: (Code)"
4695
+ }
4696
+ }, gr = {
4697
+ labels: {
4698
+ email: "E-pošta",
4699
+ whatsapp: "WhatsApp"
4700
+ },
4701
+ ui: {
4702
+ sendCodePrompt: "Pošlji to kodo za nadaljevanje",
4703
+ successGreeting: "Pozdravljeni, (Name)",
4704
+ by: "prek",
4705
+ toPrefix: "na",
4706
+ footerWaiting: "Pripravljeno na prejem tvoje kode…",
4707
+ footerWaitingUntil: "Pripravljeno na prejem tvoje kode…",
4708
+ footerReturnedWaiting: "Čakamo, da prispe tvoje sporočilo…",
4709
+ codeExpired: "Koda je potekla, zahtevaj novo.",
4710
+ getNewCode: "Pridobi novo kodo"
4711
+ },
4712
+ templates: {
4713
+ emailSubject: "Prijavi me v (Host) s to kodo: (Code)",
4714
+ emailBody: `Za prijavo v (Host) pošlji to e-pošto brez sprememb.
4715
+
4716
+ Koda: (Code)`,
4717
+ whatsappText: "Prijavi me v (Host) s to kodo: (Code)"
4718
+ }
4719
+ }, vr = {
4720
+ labels: {
4721
+ email: "E-mail",
4722
+ whatsapp: "WhatsApp"
4723
+ },
4724
+ ui: {
4725
+ sendCodePrompt: "Pošli tento kód a pokračuj",
4726
+ successGreeting: "Dobrý deň, (Name)",
4727
+ by: "cez",
4728
+ toPrefix: "na",
4729
+ footerWaiting: "Pripravené prijať tvoj kód…",
4730
+ footerWaitingUntil: "Pripravené prijať tvoj kód…",
4731
+ footerReturnedWaiting: "Čakáme, kým dorazí tvoja správa…",
4732
+ codeExpired: "Kód vypršal, vyžiadaj si nový.",
4733
+ getNewCode: "Získať nový kód"
4734
+ },
4735
+ templates: {
4736
+ emailSubject: "Prihlás ma do (Host) týmto kódom: (Code)",
4737
+ emailBody: `Na overenie v (Host) odošli tento e-mail bez zmien.
4738
+
4739
+ Kód: (Code)`,
4740
+ whatsappText: "Prihlás ma do (Host) týmto kódom: (Code)"
4741
+ }
4742
+ }, yr = {
4743
+ labels: {
4744
+ email: "E-mail",
4745
+ whatsapp: "WhatsApp"
4746
+ },
4747
+ ui: {
4748
+ sendCodePrompt: "Dërgo këtë kod për të vazhduar",
4749
+ successGreeting: "Përshëndetje, (Name)",
4750
+ by: "me",
4751
+ toPrefix: "te",
4752
+ footerWaiting: "Gati për të marrë kodin tënd…",
4753
+ footerWaitingUntil: "Gati për të marrë kodin tënd…",
4754
+ footerReturnedWaiting: "Po presim që mesazhi yt të mbërrijë…",
4755
+ codeExpired: "Kodi skadoi, kërko një të ri.",
4756
+ getNewCode: "Merr kod të ri"
4757
+ },
4758
+ templates: {
4759
+ emailSubject: "Më identifiko në (Host) me këtë kod: (Code)",
4760
+ emailBody: `Për t’u autentikuar në (Host), dërgo këtë email pa ndryshime.
4761
+
4762
+ Kodi: (Code)`,
4763
+ whatsappText: "Më identifiko në (Host) me këtë kod: (Code)"
4764
+ }
4765
+ }, br = {
4766
+ labels: {
4767
+ email: "Էլ. փոստ",
4768
+ whatsapp: "WhatsApp"
4769
+ },
4770
+ ui: {
4771
+ sendCodePrompt: "Ուղարկեք այս կոդը՝ շարունակելու համար",
4772
+ successGreeting: "Բարև, (Name)",
4773
+ by: "միջոցով",
4774
+ toPrefix: "դեպի",
4775
+ footerWaiting: "Պատրաստ է ստանալ ձեր կոդը…",
4776
+ footerWaitingUntil: "Պատրաստ է ստանալ ձեր կոդը…",
4777
+ footerReturnedWaiting: "Սպասում ենք ձեր հաղորդագրության ժամանելուն…",
4778
+ codeExpired: "Կոդի ժամկետը լրացել է, խնդրեք նորը։",
4779
+ getNewCode: "Ստանալ նոր կոդ"
4780
+ },
4781
+ templates: {
4782
+ emailSubject: "Մուտք գործեք (Host) այս կոդով՝ (Code)",
4783
+ emailBody: `(Host)-ում նույնականացման համար ուղարկեք այս նամակը առանց փոփոխությունների։
4784
+
4785
+ Կոդ՝ (Code)`,
4786
+ whatsappText: "Մուտք գործեք (Host) այս կոդով՝ (Code)"
4787
+ }
4788
+ }, wr = {
4789
+ labels: {
4790
+ email: "E-pošta",
4791
+ whatsapp: "WhatsApp"
4792
+ },
4793
+ ui: {
4794
+ sendCodePrompt: "Pošalji ovaj kod za nastavak",
4795
+ successGreeting: "Zdravo, (Name)",
4796
+ by: "preko",
4797
+ toPrefix: "na",
4798
+ footerWaiting: "Spremno za prijem tvog koda…",
4799
+ footerWaitingUntil: "Spremno za prijem tvog koda…",
4800
+ footerReturnedWaiting: "Čekamo da tvoja poruka stigne…",
4801
+ codeExpired: "Kod je istekao, zatraži novi.",
4802
+ getNewCode: "Nabavi novi kod"
4803
+ },
4804
+ templates: {
4805
+ emailSubject: "Prijavi me na (Host) ovim kodom: (Code)",
4806
+ emailBody: `Za autentifikaciju na (Host), pošalji ovu e-poštu bez izmena.
4807
+
4808
+ Kod: (Code)`,
4809
+ whatsappText: "Prijavi me na (Host) ovim kodom: (Code)"
4810
+ }
4811
+ }, Cr = {
4812
+ labels: {
4813
+ email: "El. paštas",
4814
+ whatsapp: "WhatsApp"
4815
+ },
4816
+ ui: {
4817
+ sendCodePrompt: "Išsiųskite šį kodą, kad tęstumėte",
4818
+ successGreeting: "Sveiki, (Name)",
4819
+ by: "per",
4820
+ toPrefix: "į",
4821
+ footerWaiting: "Paruošta gauti jūsų kodą…",
4822
+ footerWaitingUntil: "Paruošta gauti jūsų kodą…",
4823
+ footerReturnedWaiting: "Laukiame, kol atvyks jūsų žinutė…",
4824
+ codeExpired: "Kodas nebegalioja, paprašykite naujo.",
4825
+ getNewCode: "Gauti naują kodą"
4826
+ },
4827
+ templates: {
4828
+ emailSubject: "Prisijungti prie (Host) šiuo kodu: (Code)",
4829
+ emailBody: `Norėdami prisijungti prie (Host), išsiųskite šį el. laišką nieko nekeisdami.
4830
+
4831
+ Kodas: (Code)`,
4832
+ whatsappText: "Prisijungti prie (Host) šiuo kodu: (Code)"
4833
+ }
4834
+ }, Sr = {
4835
+ labels: {
4836
+ email: "E-pasts",
4837
+ whatsapp: "WhatsApp"
4838
+ },
4839
+ ui: {
4840
+ sendCodePrompt: "Nosūtiet šo kodu, lai turpinātu",
4841
+ successGreeting: "Sveiki, (Name)",
4842
+ by: "ar",
4843
+ toPrefix: "uz",
4844
+ footerWaiting: "Gatavs saņemt jūsu kodu…",
4845
+ footerWaitingUntil: "Gatavs saņemt jūsu kodu…",
4846
+ footerReturnedWaiting: "Gaidām, kad pienāks jūsu ziņojums…",
4847
+ codeExpired: "Koda derīgums beidzies, pieprasiet jaunu.",
4848
+ getNewCode: "Saņemt jaunu kodu"
4849
+ },
4850
+ templates: {
4851
+ emailSubject: "Pierakstīties (Host) ar šo kodu: (Code)",
4852
+ emailBody: `Lai autentificētos (Host), nosūtiet šo e-pastu bez izmaiņām.
4853
+
4854
+ Kods: (Code)`,
4855
+ whatsappText: "Pierakstīties (Host) ar šo kodu: (Code)"
4856
+ }
4857
+ }, kr = {
4858
+ labels: {
4859
+ email: "E-post",
4860
+ whatsapp: "WhatsApp"
4861
+ },
4862
+ ui: {
4863
+ sendCodePrompt: "Jätkamiseks saada see kood",
4864
+ successGreeting: "Tere, (Name)",
4865
+ by: "kaudu",
4866
+ toPrefix: "aadressile",
4867
+ footerWaiting: "Valmis sinu koodi vastu võtma…",
4868
+ footerWaitingUntil: "Valmis sinu koodi vastu võtma…",
4869
+ footerReturnedWaiting: "Ootame, kuni sinu sõnum kohale jõuab…",
4870
+ codeExpired: "Kood aegus, küsi uus.",
4871
+ getNewCode: "Hangi uus kood"
4872
+ },
4873
+ templates: {
4874
+ emailSubject: "Logi mind (Host)-i selle koodiga sisse: (Code)",
4875
+ emailBody: `(Host)-i autentimiseks saada see e-kiri ilma muudatusteta.
4876
+
4877
+ Kood: (Code)`,
4878
+ whatsappText: "Logi mind (Host)-i selle koodiga sisse: (Code)"
4879
+ }
4880
+ }, xr = {
4881
+ labels: {
4882
+ email: "Sähköposti",
4883
+ whatsapp: "WhatsApp"
4884
+ },
4885
+ ui: {
4886
+ sendCodePrompt: "Lähetä tämä koodi jatkaaksesi",
4887
+ successGreeting: "Hei, (Name)",
4888
+ by: "palvelulla",
4889
+ toPrefix: "kohteeseen",
4890
+ footerWaiting: "Valmis vastaanottamaan koodisi…",
4891
+ footerWaitingUntil: "Valmis vastaanottamaan koodisi…",
4892
+ footerReturnedWaiting: "Odotetaan viestisi saapumista…",
4893
+ codeExpired: "Koodi vanheni, pyydä uusi.",
4894
+ getNewCode: "Hae uusi koodi"
4895
+ },
4896
+ templates: {
4897
+ emailSubject: "Kirjaa minut palveluun (Host) tällä koodilla: (Code)",
4898
+ emailBody: `Tunnistautuaksesi palveluun (Host), lähetä tämä sähköposti muuttamatta sitä.
4899
+
4900
+ Koodi: (Code)`,
4901
+ whatsappText: "Kirjaa minut palveluun (Host) tällä koodilla: (Code)"
4902
+ }
4903
+ }, Er = {
4904
+ labels: {
4905
+ email: "البريد الإلكتروني",
4906
+ whatsapp: "WhatsApp"
4907
+ },
4908
+ ui: {
4909
+ sendCodePrompt: "أرسل هذا الرمز للمتابعة",
4910
+ successGreeting: "مرحبًا، (Name)",
4911
+ by: "عبر",
4912
+ toPrefix: "إلى",
4913
+ footerWaiting: "جاهز لاستلام رمزك…",
4914
+ footerWaitingUntil: "جاهز لاستلام رمزك…",
4915
+ footerReturnedWaiting: "ننتظر وصول رسالتك…",
4916
+ codeExpired: "انتهت صلاحية الرمز، اطلب رمزًا جديدًا.",
4917
+ getNewCode: "احصل على رمز جديد"
4918
+ },
4919
+ templates: {
4920
+ emailSubject: "سجّل دخولي إلى (Host) بهذا الرمز: (Code)",
4921
+ emailBody: `للمصادقة مع (Host)، أرسل هذا البريد الإلكتروني دون أي تغييرات.
4922
+
4923
+ الرمز: (Code)`,
4924
+ whatsappText: "سجّل دخولي إلى (Host) بهذا الرمز: (Code)"
4925
+ }
4926
+ }, Tr = {
4927
+ labels: {
4928
+ email: "אימייל",
4929
+ whatsapp: "WhatsApp"
4930
+ },
4931
+ ui: {
4932
+ sendCodePrompt: "שלח את הקוד הזה כדי להמשיך",
4933
+ successGreeting: "שלום, (Name)",
4934
+ by: "באמצעות",
4935
+ toPrefix: "אל",
4936
+ footerWaiting: "מוכן לקבל את הקוד שלך…",
4937
+ footerWaitingUntil: "מוכן לקבל את הקוד שלך…",
4938
+ footerReturnedWaiting: "ממתינים שההודעה שלך תגיע…",
4939
+ codeExpired: "פג תוקף הקוד, בקש קוד חדש.",
4940
+ getNewCode: "קבל קוד חדש"
4941
+ },
4942
+ templates: {
4943
+ emailSubject: "היכנס אותי אל (Host) עם הקוד הזה: (Code)",
4944
+ emailBody: `כדי להזדהות מול (Host), שלח את האימייל הזה ללא שינויים.
4945
+
4946
+ קוד: (Code)`,
4947
+ whatsappText: "היכנס אותי אל (Host) עם הקוד הזה: (Code)"
4948
+ }
4949
+ }, _r = {
4950
+ labels: {
4951
+ email: "メール",
4952
+ whatsapp: "WhatsApp"
4953
+ },
4954
+ ui: {
4955
+ sendCodePrompt: "続行するにはこのコードを送信してください",
4956
+ successGreeting: "こんにちは、(Name)",
4957
+ by: "経由",
4958
+ toPrefix: "宛先",
4959
+ footerWaiting: "コードを受信する準備ができました…",
4960
+ footerWaitingUntil: "コードを受信する準備ができました…",
4961
+ footerReturnedWaiting: "メッセージの到着を待っています…",
4962
+ codeExpired: "コードの有効期限が切れました。新しいコードを取得してください。",
4963
+ getNewCode: "新しいコードを取得"
4964
+ },
4965
+ templates: {
4966
+ emailSubject: "このコードで (Host) にサインインします: (Code)",
4967
+ emailBody: `(Host) で認証するには、このメールを変更せずに送信してください。
4968
+
4969
+ コード: (Code)`,
4970
+ whatsappText: "このコードで (Host) にサインインします: (Code)"
4971
+ }
4972
+ }, Ar = {
4973
+ labels: {
4974
+ email: "이메일",
4975
+ whatsapp: "WhatsApp"
4976
+ },
4977
+ ui: {
4978
+ sendCodePrompt: "계속하려면 이 코드를 보내세요",
4979
+ successGreeting: "안녕하세요, (Name)",
4980
+ by: "수단",
4981
+ toPrefix: "대상",
4982
+ footerWaiting: "코드를 받을 준비가 되었습니다…",
4983
+ footerWaitingUntil: "코드를 받을 준비가 되었습니다…",
4984
+ footerReturnedWaiting: "메시지가 도착하기를 기다리는 중…",
4985
+ codeExpired: "코드가 만료되었습니다. 새 코드를 요청하세요.",
4986
+ getNewCode: "새 코드 받기"
4987
+ },
4988
+ templates: {
4989
+ emailSubject: "이 코드로 (Host)에 로그인합니다: (Code)",
4990
+ emailBody: `(Host)에 인증하려면 이 이메일을 변경하지 말고 보내세요.
4991
+
4992
+ 코드: (Code)`,
4993
+ whatsappText: "이 코드로 (Host)에 로그인합니다: (Code)"
4994
+ }
4995
+ }, Pr = {
4996
+ labels: {
4997
+ email: "电子邮件",
4998
+ whatsapp: "WhatsApp"
4999
+ },
5000
+ ui: {
5001
+ sendCodePrompt: "发送此代码以继续",
5002
+ successGreeting: "你好,(Name)",
5003
+ by: "通过",
5004
+ toPrefix: "发送到",
5005
+ footerWaiting: "已准备好接收你的代码…",
5006
+ footerWaitingUntil: "已准备好接收你的代码…",
5007
+ footerReturnedWaiting: "正在等待你的消息到达…",
5008
+ codeExpired: "代码已过期,请获取新代码。",
5009
+ getNewCode: "获取新代码"
5010
+ },
5011
+ templates: {
5012
+ emailSubject: "使用此代码登录 (Host):(Code)",
5013
+ emailBody: `要在 (Host) 进行身份验证,请发送此电子邮件且不要修改。
5014
+
5015
+ 代码:(Code)`,
5016
+ whatsappText: "使用此代码登录 (Host):(Code)"
5017
+ }
5018
+ }, Lr = [
5019
+ "en",
5020
+ "de",
5021
+ "fr",
5022
+ "es",
5023
+ "it",
5024
+ "pl",
5025
+ "cs",
5026
+ "da",
5027
+ "nl",
5028
+ "hr",
5029
+ "el",
5030
+ "tr",
5031
+ "de-he",
5032
+ "ru",
5033
+ "sv",
5034
+ "pt",
5035
+ "sl",
5036
+ "sk",
5037
+ "sq",
5038
+ "hy",
5039
+ "sr",
5040
+ "lt",
5041
+ "lv",
5042
+ "et",
5043
+ "fi",
5044
+ "ar",
5045
+ "he",
5046
+ "ja",
5047
+ "ko",
5048
+ "zh"
5049
+ ], Rr = {
5050
+ en: Lt,
4622
5051
  de: tr,
4623
5052
  fr: nr,
4624
5053
  es: ir,
@@ -4627,13 +5056,30 @@ Code: (Code)`,
4627
5056
  cs: or,
4628
5057
  da: ar,
4629
5058
  nl: cr,
4630
- hr,
4631
- el: dr,
5059
+ hr: dr,
5060
+ el: hr,
4632
5061
  tr: lr,
4633
- "de-he": ur
5062
+ "de-he": ur,
5063
+ ru: pr,
5064
+ sv: fr,
5065
+ pt: mr,
5066
+ sl: gr,
5067
+ sk: vr,
5068
+ sq: yr,
5069
+ hy: br,
5070
+ sr: wr,
5071
+ lt: Cr,
5072
+ lv: Sr,
5073
+ et: kr,
5074
+ fi: xr,
5075
+ ar: Er,
5076
+ he: Tr,
5077
+ ja: _r,
5078
+ ko: Ar,
5079
+ zh: Pr
4634
5080
  };
4635
5081
  function vt(g) {
4636
- return pr.includes(g);
5082
+ return Lr.includes(g);
4637
5083
  }
4638
5084
  function yt(g) {
4639
5085
  if (!g) return null;
@@ -4643,39 +5089,39 @@ function yt(g) {
4643
5089
  return vt(s) ? s : null;
4644
5090
  }
4645
5091
  function F(g) {
4646
- return fr[g] ?? Pt;
5092
+ return Rr[g] ?? Lt;
4647
5093
  }
4648
5094
  const bt = `<svg role="img" viewBox="0 0 512 512" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>Email</title><path d="M64 112c-8.8 0-16 7.2-16 16l0 22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1l0-22.1c0-8.8-7.2-16-16-16L64 112zM48 212.2L48 384c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-171.8L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128z"/></svg>
4649
- `, wt = '<svg role="img" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>WhatsApp</title><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>', mr = '<svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M4.998 9.332A5.002 5.002 0 0 1 13.2 5.5H11a1 1 0 1 0 0 2h4.5a1 1 0 0 0 1-1V2a1 1 0 1 0-2 0v1.74A7.002 7.002 0 0 0 3 9.332a1 1 0 1 0 1.998 0ZM15.002 10.668A5.002 5.002 0 0 1 6.8 14.5H9a1 1 0 1 0 0-2H4.5a1 1 0 0 0-1 1V18a1 1 0 1 0 2 0v-1.74a7.002 7.002 0 0 0 11.5-5.592 1 1 0 1 0-1.998 0Z" clip-rule="evenodd" /></svg>', gr = '<svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM7.22 6.22a.75.75 0 0 0-1.06 1.06L8.88 10l-2.72 2.72a.75.75 0 1 0 1.06 1.06L9.94 11.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L11 10l2.72-2.72a.75.75 0 0 0-1.06-1.06L9.94 8.94 7.22 6.22Z" clip-rule="evenodd" /></svg>', qe = "sendityAuthRequest", vr = "https://sendity.io/api/sendity", yr = 600 * 1e3, br = 5e3, wr = 15e3, Cr = 1e3, Ie = 2e3, fe = 220, Rt = 0;
4650
- function ze(g, i) {
5095
+ `, wt = '<svg role="img" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>WhatsApp</title><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>', jr = '<svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M4.998 9.332A5.002 5.002 0 0 1 13.2 5.5H11a1 1 0 1 0 0 2h4.5a1 1 0 0 0 1-1V2a1 1 0 1 0-2 0v1.74A7.002 7.002 0 0 0 3 9.332a1 1 0 1 0 1.998 0ZM15.002 10.668A5.002 5.002 0 0 1 6.8 14.5H9a1 1 0 1 0 0-2H4.5a1 1 0 0 0-1 1V18a1 1 0 1 0 2 0v-1.74a7.002 7.002 0 0 0 11.5-5.592 1 1 0 1 0-1.998 0Z" clip-rule="evenodd" /></svg>', Ir = '<svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM7.22 6.22a.75.75 0 0 0-1.06 1.06L8.88 10l-2.72 2.72a.75.75 0 1 0 1.06 1.06L9.94 11.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L11 10l2.72-2.72a.75.75 0 0 0-1.06-1.06L9.94 8.94 7.22 6.22Z" clip-rule="evenodd" /></svg>', ze = "sendityAuthRequest", Wr = "https://sendity.io/api/sendity", Nr = 600 * 1e3, Hr = 5e3, zr = 15e3, Or = 1e3, je = 2e3, fe = 220, Rt = 0;
5096
+ function Oe(g, i) {
4651
5097
  return `sendity:auth-request:${encodeURIComponent(g)}:${encodeURIComponent(i)}`;
4652
5098
  }
4653
5099
  function Ct(g, i, s, a = Date.now()) {
4654
- g.removeItem(qe);
4655
- const h = ze(i, s), l = g.getItem(h);
5100
+ g.removeItem(ze);
5101
+ const d = Oe(i, s), l = g.getItem(d);
4656
5102
  if (!l) return null;
4657
5103
  try {
4658
5104
  const m = JSON.parse(l);
4659
5105
  if (typeof m.id != "string" || typeof m.clientSecret != "string" || typeof m.createdAt != "number")
4660
5106
  throw new Error("invalid stored auth request");
4661
- return a - m.createdAt >= yr ? (g.removeItem(h), null) : { id: m.id, clientSecret: m.clientSecret };
5107
+ return a - m.createdAt >= Nr ? (g.removeItem(d), null) : { id: m.id, clientSecret: m.clientSecret };
4662
5108
  } catch {
4663
- return g.removeItem(h), null;
5109
+ return g.removeItem(d), null;
4664
5110
  }
4665
5111
  }
4666
- function Sr(g, i, s, a, h = Date.now()) {
4667
- g.setItem(ze(i, s), JSON.stringify({ ...a, createdAt: h }));
5112
+ function Ur(g, i, s, a, d = Date.now()) {
5113
+ g.setItem(Oe(i, s), JSON.stringify({ ...a, createdAt: d }));
4668
5114
  }
4669
5115
  function St(g, i, s) {
4670
- g.removeItem(ze(i, s)), g.removeItem(qe);
5116
+ g.removeItem(Oe(i, s)), g.removeItem(ze);
4671
5117
  }
4672
5118
  function me() {
4673
- return window.localStorage.removeItem(qe), window.sessionStorage;
5119
+ return window.localStorage.removeItem(ze), window.sessionStorage;
4674
5120
  }
4675
- function Er(g, i = window.location.origin) {
4676
- return g.filter((s) => xr(s, i));
5121
+ function qr(g, i = window.location.origin) {
5122
+ return g.filter((s) => Mr(s, i));
4677
5123
  }
4678
- function xr(g, i) {
5124
+ function Mr(g, i) {
4679
5125
  try {
4680
5126
  const s = new URL(g, i);
4681
5127
  return ["http:", "https:", "mailto:", "whatsapp:"].includes(s.protocol);
@@ -4683,7 +5129,7 @@ function xr(g, i) {
4683
5129
  return !1;
4684
5130
  }
4685
5131
  }
4686
- function Tr(g, i, s) {
5132
+ function Br(g, i, s) {
4687
5133
  return g === "push" ? { start: !1, delayMs: 0 } : g === "polling" || !i || !s ? { start: !0, delayMs: 0 } : { start: !0, delayMs: Rt };
4688
5134
  }
4689
5135
  const ve = class ve extends HTMLElement {
@@ -4695,8 +5141,8 @@ const ve = class ve extends HTMLElement {
4695
5141
  this.injectTailwind(i);
4696
5142
  const s = document.createElement("div");
4697
5143
  s.innerHTML = ft;
4698
- const a = s.querySelector("template"), h = a ? a.content.cloneNode(!0) : document.createRange().createContextualFragment(ft), l = document.createElement("style");
4699
- l.textContent = Di, i.appendChild(l), i.appendChild(h);
5144
+ const a = s.querySelector("template"), d = a ? a.content.cloneNode(!0) : document.createRange().createContextualFragment(ft), l = document.createElement("style");
5145
+ l.textContent = Bi, i.appendChild(l), i.appendChild(d);
4700
5146
  }
4701
5147
  static get observedAttributes() {
4702
5148
  return ["server-url", "public-key", "lang", "transport", "hide-footer", "footer", "authenticated-event-delay-ms", "variant", "no-card"];
@@ -4763,22 +5209,22 @@ const ve = class ve extends HTMLElement {
4763
5209
  if (a.tailwindCssText)
4764
5210
  s.textContent = a.tailwindCssText;
4765
5211
  else {
4766
- const h = document.createElement("link");
4767
- h.rel = "stylesheet", h.href = Re, i.insertBefore(h, s);
5212
+ const d = document.createElement("link");
5213
+ d.rel = "stylesheet", d.href = Re, i.insertBefore(d, s);
4768
5214
  }
4769
5215
  return;
4770
5216
  }
4771
- a.tailwindLoading || (a.tailwindLoading = fetch(Re).then((h) => h.ok ? h.text() : Promise.reject(new Error(`HTTP ${h.status}`))).then((h) => {
4772
- a.tailwindCssText = h;
4773
- }).catch((h) => {
4774
- console.warn("[sendity-auth] Failed to load Tailwind CSS for Shadow DOM", h), a.tailwindCssText = "";
5217
+ a.tailwindLoading || (a.tailwindLoading = fetch(Re).then((d) => d.ok ? d.text() : Promise.reject(new Error(`HTTP ${d.status}`))).then((d) => {
5218
+ a.tailwindCssText = d;
5219
+ }).catch((d) => {
5220
+ console.warn("[sendity-auth] Failed to load Tailwind CSS for Shadow DOM", d), a.tailwindCssText = "";
4775
5221
  })), a.tailwindLoading.then(() => {
4776
5222
  if (!this.destroyed && i)
4777
5223
  if (a.tailwindCssText)
4778
5224
  s.textContent = a.tailwindCssText;
4779
5225
  else {
4780
- const h = document.createElement("link");
4781
- h.rel = "stylesheet", h.href = Re, i.insertBefore(h, s);
5226
+ const d = document.createElement("link");
5227
+ d.rel = "stylesheet", d.href = Re, i.insertBefore(d, s);
4782
5228
  }
4783
5229
  });
4784
5230
  }
@@ -4797,7 +5243,7 @@ const ve = class ve extends HTMLElement {
4797
5243
  scheduleBrowserReturnCheck() {
4798
5244
  this.destroyed || this.authenticated || !this.activeAuthRequestId || !this.activeAuthRequestSecret || document.visibilityState && document.visibilityState !== "visible" || (this.returnWaitTimer !== null && clearTimeout(this.returnWaitTimer), this.returnWaitTimer = window.setTimeout(() => {
4799
5245
  this.returnWaitTimer = null, !(this.destroyed || this.authenticated) && (this.showFooterWaitingState({ returnedFromClient: !0 }), this.step().catch((i) => console.warn("[sendity-auth] return check failed", i)));
4800
- }, Cr));
5246
+ }, Or));
4801
5247
  }
4802
5248
  isFooterHidden() {
4803
5249
  const i = (this.getAttribute("footer") ?? "").trim().toLowerCase();
@@ -4811,13 +5257,13 @@ const ve = class ve extends HTMLElement {
4811
5257
  scheduleFooterWaitingState() {
4812
5258
  this.footerWaitTimer !== null || this.isFooterHidden() || (this.footerWaitTimer = window.setTimeout(() => {
4813
5259
  this.footerWaitTimer = null, this.showFooterWaitingState();
4814
- }, wr));
5260
+ }, zr));
4815
5261
  }
4816
5262
  setFooterIndicatorWaiting() {
4817
5263
  this.footerIndicatorEl && (this.footerIndicatorEl.classList.remove("footer-indicator--error"), this.footerIndicatorEl.innerHTML = "", this.footerIndicatorEl.removeAttribute("hidden"));
4818
5264
  }
4819
5265
  setFooterIndicatorError() {
4820
- this.footerIndicatorEl && (this.footerIndicatorEl.classList.add("footer-indicator--error"), this.footerIndicatorEl.innerHTML = gr, this.footerIndicatorEl.removeAttribute("hidden"));
5266
+ this.footerIndicatorEl && (this.footerIndicatorEl.classList.add("footer-indicator--error"), this.footerIndicatorEl.innerHTML = Ir, this.footerIndicatorEl.removeAttribute("hidden"));
4821
5267
  }
4822
5268
  showFooterWaitingState(i = {}) {
4823
5269
  this.isFooterHidden() || (this.currentConfig && this.footerMessageEl && (this.footerMessageEl.textContent = i.returnedFromClient ? F(this.currentConfig.lang).ui.footerReturnedWaiting : this.waitingFooterMessage()), this.setFooterIndicatorWaiting(), this.footerEl?.classList.add("footer--waiting", "footer--transitioning"), this.footerBrandEl?.removeAttribute("hidden"), this.footerStatusEl?.removeAttribute("hidden"), this.footerTransitionTimer !== null && clearTimeout(this.footerTransitionTimer), this.footerTransitionTimer = window.setTimeout(() => {
@@ -4837,8 +5283,8 @@ const ve = class ve extends HTMLElement {
4837
5283
  this.footerTimerEl.setAttribute("hidden", "");
4838
5284
  return;
4839
5285
  }
4840
- const a = Math.max(0, Math.floor((s - Date.now()) / 1e3)), h = Math.floor(a / 60), l = String(a % 60).padStart(2, "0");
4841
- this.footerTimerEl.textContent = `${h}:${l}`, this.footerTimerEl.classList.toggle("low", a > 0 && a <= 60), this.footerTimerEl.removeAttribute("hidden"), a <= 0 && this.timerInterval !== null && (clearInterval(this.timerInterval), this.timerInterval = null, this.showExpiredState());
5286
+ const a = Math.max(0, Math.floor((s - Date.now()) / 1e3)), d = Math.floor(a / 60), l = String(a % 60).padStart(2, "0");
5287
+ this.footerTimerEl.textContent = `${d}:${l}`, this.footerTimerEl.classList.toggle("low", a > 0 && a <= 60), this.footerTimerEl.removeAttribute("hidden"), a <= 0 && this.timerInterval !== null && (clearInterval(this.timerInterval), this.timerInterval = null, this.showExpiredState());
4842
5288
  };
4843
5289
  i(), this.timerInterval = window.setInterval(i, 1e3);
4844
5290
  }
@@ -4867,9 +5313,9 @@ const ve = class ve extends HTMLElement {
4867
5313
  });
4868
5314
  });
4869
5315
  const a = document.createElement("span");
4870
- a.className = "icon", a.setAttribute("aria-hidden", "true"), a.innerHTML = mr, s.appendChild(a);
4871
- const h = document.createElement("span");
4872
- h.className = "label", h.textContent = i.ui.getNewCode, s.appendChild(h), this.verifiersEl.appendChild(s);
5316
+ a.className = "icon", a.setAttribute("aria-hidden", "true"), a.innerHTML = jr, s.appendChild(a);
5317
+ const d = document.createElement("span");
5318
+ d.className = "label", d.textContent = i.ui.getNewCode, s.appendChild(d), this.verifiersEl.appendChild(s);
4873
5319
  }
4874
5320
  async requestNewAuthRequest() {
4875
5321
  this.currentConfig || (this.currentConfig = this.resolveConfig());
@@ -4891,19 +5337,19 @@ const ve = class ve extends HTMLElement {
4891
5337
  const i = {
4892
5338
  lang: yt(navigator.language) ?? "en",
4893
5339
  transport: "auto"
4894
- }, s = (T) => this.getAttribute(T) ?? void 0, a = s("server-url")?.trim() || vr, h = s("public-key")?.trim();
4895
- if (!h)
5340
+ }, s = (E) => this.getAttribute(E) ?? void 0, a = s("server-url")?.trim() || Wr, d = s("public-key")?.trim();
5341
+ if (!d)
4896
5342
  throw new Error("Missing required sendity-auth attribute: public-key");
4897
5343
  const l = yt(s("lang")) ?? i.lang, m = s("transport"), v = m === "push" || m === "polling" ? m : i.transport, y = this.parseAuthenticatedEventDelayMs(s("authenticated-event-delay-ms"));
4898
- return { serverUrl: a, publicKey: h, lang: l, transport: v, authenticatedEventDelayMs: y };
5344
+ return { serverUrl: a, publicKey: d, lang: l, transport: v, authenticatedEventDelayMs: y };
4899
5345
  }
4900
5346
  parseAuthenticatedEventDelayMs(i) {
4901
- if (i === void 0 || i.trim() === "") return Ie;
5347
+ if (i === void 0 || i.trim() === "") return je;
4902
5348
  const s = Number(i);
4903
- return !Number.isFinite(s) || s < 0 ? Ie : Math.round(s);
5349
+ return !Number.isFinite(s) || s < 0 ? je : Math.round(s);
4904
5350
  }
4905
5351
  async createAuthRequest(i, s, a) {
4906
- const h = await fetch(this.joinUrl(i, "/auth-requests"), {
5352
+ const d = await fetch(this.joinUrl(i, "/auth-requests"), {
4907
5353
  method: "POST",
4908
5354
  mode: "cors",
4909
5355
  headers: {
@@ -4912,12 +5358,12 @@ const ve = class ve extends HTMLElement {
4912
5358
  },
4913
5359
  body: JSON.stringify({ public_key: s })
4914
5360
  });
4915
- if (!h.ok) throw new Error(`Auth request creation failed: ${h.status}`);
4916
- const l = await h.json();
5361
+ if (!d.ok) throw new Error(`Auth request creation failed: ${d.status}`);
5362
+ const l = await d.json();
4917
5363
  if (!l.id) throw new Error("Missing id from server response");
4918
5364
  const m = this.extractClientSecret(l);
4919
5365
  if (!m) throw new Error("Missing client secret from server response");
4920
- return Sr(a, i, s, { id: String(l.id), clientSecret: m }), this.activeAuthRequestId = String(l.id), this.activeAuthRequestSecret = m, this.updateActiveAuthRequestExpiry(l), this.applyVerifyUrlsFromResponse(l), this.updateCode(l.formattedCode ?? l.code), this.dispatchPublicEvent("sendity:challenge-created", {
5366
+ return Ur(a, i, s, { id: String(l.id), clientSecret: m }), this.activeAuthRequestId = String(l.id), this.activeAuthRequestSecret = m, this.updateActiveAuthRequestExpiry(l), this.applyVerifyUrlsFromResponse(l), this.updateCode(l.formattedCode ?? l.code), this.dispatchPublicEvent("sendity:challenge-created", {
4921
5367
  verificationId: String(l.id),
4922
5368
  code: l.formattedCode ?? l.code ?? "",
4923
5369
  channel: this.primaryChannel(this.activeVerifyUrls)
@@ -4925,13 +5371,13 @@ const ve = class ve extends HTMLElement {
4925
5371
  }
4926
5372
  async step() {
4927
5373
  this.currentConfig || (this.currentConfig = this.resolveConfig());
4928
- const { serverUrl: i, publicKey: s } = this.currentConfig, a = me(), h = Ct(a, i, s), l = h?.id;
5374
+ const { serverUrl: i, publicKey: s } = this.currentConfig, a = me(), d = Ct(a, i, s), l = d?.id;
4929
5375
  if (!l)
4930
5376
  return await this.createAuthRequest(i, s, a);
4931
- this.activeAuthRequestId = l, this.activeAuthRequestSecret = h.clientSecret;
5377
+ this.activeAuthRequestId = l, this.activeAuthRequestSecret = d.clientSecret;
4932
5378
  const m = await fetch(
4933
5379
  this.authRequestStatusUrl(i, l),
4934
- this.authRequestStatusInit(h.clientSecret)
5380
+ this.authRequestStatusInit(d.clientSecret)
4935
5381
  );
4936
5382
  if (m.status !== 200)
4937
5383
  return St(a, i, s), await this.step();
@@ -4946,10 +5392,10 @@ const ve = class ve extends HTMLElement {
4946
5392
  }
4947
5393
  configureRealtime(i) {
4948
5394
  this.currentConfig || (this.currentConfig = this.resolveConfig());
4949
- const { transport: s } = this.currentConfig, a = i?.broadcasting, h = !!(a?.key && a.channel && a.authEndpoint);
5395
+ const { transport: s } = this.currentConfig, a = i?.broadcasting, d = !!(a?.key && a.channel && a.authEndpoint);
4950
5396
  let l = !1;
4951
- s !== "polling" && h && a ? l = this.subscribeToBroadcasting(a) : s === "push" && console.warn("[sendity-auth] Push transport requested, but server response does not contain broadcasting metadata");
4952
- const m = Tr(s, h, l);
5397
+ s !== "polling" && d && a ? l = this.subscribeToBroadcasting(a) : s === "push" && console.warn("[sendity-auth] Push transport requested, but server response does not contain broadcasting metadata");
5398
+ const m = Br(s, d, l);
4953
5399
  m.start && this.startPolling(m.delayMs);
4954
5400
  }
4955
5401
  subscribeToBroadcasting(i) {
@@ -4957,7 +5403,7 @@ const ve = class ve extends HTMLElement {
4957
5403
  try {
4958
5404
  window.Pusher = er;
4959
5405
  const s = (i.scheme ?? "https") === "https", a = i.port ?? (s ? 443 : 80);
4960
- return this.echo = new Ki({
5406
+ return this.echo = new Ji({
4961
5407
  broadcaster: "reverb",
4962
5408
  key: i.key,
4963
5409
  wsHost: i.host ?? new URL(this.currentConfig.serverUrl).hostname,
@@ -4976,8 +5422,8 @@ const ve = class ve extends HTMLElement {
4976
5422
  client_secret: this.activeAuthRequestSecret
4977
5423
  }
4978
5424
  }
4979
- }), this.echo.private(i.channel).listen(i.event ?? ".authenticated", (h) => {
4980
- this.handleAuthenticated(h);
5425
+ }), this.echo.private(i.channel).listen(i.event ?? ".authenticated", (d) => {
5426
+ this.handleAuthenticated(d);
4981
5427
  }), !0;
4982
5428
  } catch (s) {
4983
5429
  return console.warn("[sendity-auth] realtime subscription failed, falling back to polling if enabled", s), this.currentConfig.transport === "auto" && this.startPolling(Rt), !1;
@@ -4988,7 +5434,7 @@ const ve = class ve extends HTMLElement {
4988
5434
  const s = () => {
4989
5435
  this.pollTimer !== null || this.authenticated || this.destroyed || (this.pollTimer = window.setInterval(() => {
4990
5436
  this.step().catch((a) => console.warn("[sendity-auth] poll failed", a));
4991
- }, br));
5437
+ }, Hr));
4992
5438
  };
4993
5439
  i > 0 ? this.fallbackPollTimer = window.setTimeout(() => {
4994
5440
  this.fallbackPollTimer = null, s();
@@ -4997,13 +5443,13 @@ const ve = class ve extends HTMLElement {
4997
5443
  handleAuthenticated(i) {
4998
5444
  if (this.authenticated) return;
4999
5445
  if (!i.authorization) {
5000
- console.warn("[sendity-auth] authenticated signal did not include authorization; fetching canonical status"), this.fetchAuthorizationAfterAuthenticatedSignal().catch((h) => {
5001
- console.warn("[sendity-auth] failed to fetch authorization after authenticated signal", h);
5446
+ console.warn("[sendity-auth] authenticated signal did not include authorization; fetching canonical status"), this.fetchAuthorizationAfterAuthenticatedSignal().catch((d) => {
5447
+ console.warn("[sendity-auth] failed to fetch authorization after authenticated signal", d);
5002
5448
  });
5003
5449
  return;
5004
5450
  }
5005
5451
  this.authenticated = !0, this.currentConfig && St(me(), this.currentConfig.serverUrl, this.currentConfig.publicKey), this.stopAuthTransports(), this.showSuccess(i);
5006
- const s = this.toPublicAuthenticatedDetail(i), a = this.currentConfig?.authenticatedEventDelayMs ?? Ie;
5452
+ const s = this.toPublicAuthenticatedDetail(i), a = this.currentConfig?.authenticatedEventDelayMs ?? je;
5007
5453
  this.authenticatedEventTimer = window.setTimeout(() => {
5008
5454
  this.authenticatedEventTimer = null, !this.destroyed && this.dispatchPublicEvent("sendity:authenticated", s);
5009
5455
  }, a);
@@ -5015,14 +5461,14 @@ const ve = class ve extends HTMLElement {
5015
5461
  this.dispatchEvent(new CustomEvent(i, { bubbles: !0, composed: !0, detail: s }));
5016
5462
  }
5017
5463
  toPublicAuthenticatedDetail(i) {
5018
- const s = String(i.auth_request_id ?? i.authRequestId ?? this.activeAuthRequestId ?? ""), a = i.channel ?? this.primaryChannel(this.activeVerifyUrls), h = i.expires_at ?? i.expiresAt;
5464
+ const s = String(i.auth_request_id ?? i.authRequestId ?? this.activeAuthRequestId ?? ""), a = i.channel ?? this.primaryChannel(this.activeVerifyUrls), d = i.expires_at ?? i.expiresAt;
5019
5465
  return {
5020
5466
  sessionId: s,
5021
5467
  channel: a,
5022
5468
  ...i.identifier ? { address: i.identifier } : {},
5023
5469
  verificationId: s,
5024
5470
  signedResult: String(i.authorization ?? ""),
5025
- ...h ? { expiresAt: String(h) } : {}
5471
+ ...d ? { expiresAt: String(d) } : {}
5026
5472
  };
5027
5473
  }
5028
5474
  primaryChannel(i) {
@@ -5030,8 +5476,8 @@ const ve = class ve extends HTMLElement {
5030
5476
  return s.startsWith("mailto:") ? "email" : s.startsWith("whatsapp:") || s.startsWith("whatsapp://") ? "whatsapp" : "unknown";
5031
5477
  }
5032
5478
  applyVerifyUrlsFromResponse(i) {
5033
- const s = Array.isArray(i.verify_urls) ? i.verify_urls : Array.isArray(i.verifyUrls) ? i.verifyUrls : [], a = Array.isArray(i.verification_endpoints) ? i.verification_endpoints.map((l) => typeof l.url == "string" ? l.url : typeof l.scheme == "string" && typeof l.recipient == "string" ? `${l.scheme}:${l.recipient}` : "") : [], h = Er([...s, ...a].map(String));
5034
- h.length !== 0 && (this.activeVerifyUrls = [...new Set(h)], this.renderVerifiers(this.activeVerifyUrls));
5479
+ const s = Array.isArray(i.verify_urls) ? i.verify_urls : Array.isArray(i.verifyUrls) ? i.verifyUrls : [], a = Array.isArray(i.verification_endpoints) ? i.verification_endpoints.map((l) => typeof l.url == "string" ? l.url : typeof l.scheme == "string" && typeof l.recipient == "string" ? `${l.scheme}:${l.recipient}` : "") : [], d = qr([...s, ...a].map(String));
5480
+ d.length !== 0 && (this.activeVerifyUrls = [...new Set(d)], this.renderVerifiers(this.activeVerifyUrls));
5035
5481
  }
5036
5482
  authRequestStatusUrl(i, s) {
5037
5483
  return new URL(this.joinUrl(i, `/auth-requests/${encodeURIComponent(s)}`)).toString();
@@ -5088,6 +5534,40 @@ const ve = class ve extends HTMLElement {
5088
5534
  return "el-GR";
5089
5535
  case "tr":
5090
5536
  return "tr-TR";
5537
+ case "ru":
5538
+ return "ru-RU";
5539
+ case "sv":
5540
+ return "sv-SE";
5541
+ case "pt":
5542
+ return "pt-PT";
5543
+ case "sl":
5544
+ return "sl-SI";
5545
+ case "sk":
5546
+ return "sk-SK";
5547
+ case "sq":
5548
+ return "sq-AL";
5549
+ case "hy":
5550
+ return "hy-AM";
5551
+ case "sr":
5552
+ return "sr-RS";
5553
+ case "lt":
5554
+ return "lt-LT";
5555
+ case "lv":
5556
+ return "lv-LV";
5557
+ case "et":
5558
+ return "et-EE";
5559
+ case "fi":
5560
+ return "fi-FI";
5561
+ case "ar":
5562
+ return "ar-SA";
5563
+ case "he":
5564
+ return "he-IL";
5565
+ case "ja":
5566
+ return "ja-JP";
5567
+ case "ko":
5568
+ return "ko-KR";
5569
+ case "zh":
5570
+ return "zh-CN";
5091
5571
  default:
5092
5572
  return "en-US";
5093
5573
  }
@@ -5097,13 +5577,13 @@ const ve = class ve extends HTMLElement {
5097
5577
  const i = Ct(me(), this.currentConfig.serverUrl, this.currentConfig.publicKey), s = this.activeAuthRequestId ?? i?.id, a = this.activeAuthRequestSecret ?? i?.clientSecret;
5098
5578
  if (!s || !a)
5099
5579
  throw new Error("Cannot fetch authorization without an active auth request id and client secret");
5100
- const h = await fetch(
5580
+ const d = await fetch(
5101
5581
  this.authRequestStatusUrl(this.currentConfig.serverUrl, s),
5102
5582
  this.authRequestStatusInit(a)
5103
5583
  );
5104
- if (!h.ok)
5105
- throw new Error(`Authorization fetch failed: ${h.status}`);
5106
- const l = await h.json();
5584
+ if (!d.ok)
5585
+ throw new Error(`Authorization fetch failed: ${d.status}`);
5586
+ const l = await d.json();
5107
5587
  if (l.status === "verified" && l.authorization) {
5108
5588
  this.handleAuthenticated(l);
5109
5589
  return;
@@ -5149,12 +5629,12 @@ const ve = class ve extends HTMLElement {
5149
5629
  this.footerMessageEl.textContent = this.verifiedSigningInMessage(a);
5150
5630
  }
5151
5631
  if (this.footerTimerEl && (this.footerTimerEl.hidden = !0, this.footerTimerEl.classList.remove("low"), this.footerTimerEl.textContent = ""), this.verifiersEl?.classList.add("verifiers--exiting"), this.currentConfig && this.successEl) {
5152
- const a = F(this.currentConfig.lang), h = i.name && i.name.trim().length > 0 ? a.ui.successGreeting.replace("(Name)", i.name) : "You're in!";
5632
+ const a = F(this.currentConfig.lang), d = i.name && i.name.trim().length > 0 ? a.ui.successGreeting.replace("(Name)", i.name) : "You're in!";
5153
5633
  this.successEl.innerHTML = `
5154
5634
  <span class="success-check" aria-hidden="true">
5155
5635
  <svg viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"/></svg>
5156
5636
  </span>
5157
- <p class="success-message">${this.escapeHtml(h)}</p>
5637
+ <p class="success-message">${this.escapeHtml(d)}</p>
5158
5638
  `, this.successEl.removeAttribute("hidden");
5159
5639
  }
5160
5640
  this.successTransitionTimer !== null && clearTimeout(this.successTransitionTimer), this.successTransitionTimer = window.setTimeout(() => {
@@ -5165,14 +5645,14 @@ const ve = class ve extends HTMLElement {
5165
5645
  return `Verified ${i === "whatsapp" ? "your phone number" : "your email address"} · signing you in...`;
5166
5646
  }
5167
5647
  destinationAddressForChannel(i) {
5168
- const s = this.activeVerifyUrls, a = s.find((h) => this.channelClass(h) === i) ?? s[0];
5648
+ const s = this.activeVerifyUrls, a = s.find((d) => this.channelClass(d) === i) ?? s[0];
5169
5649
  if (!a) return null;
5170
5650
  try {
5171
- const h = new URL(a, window.location.origin);
5172
- if (h.protocol === "mailto:")
5173
- return decodeURIComponent(h.pathname || h.href.replace(/^mailto:/, "").split("?")[0]) || null;
5174
- if (h.protocol === "whatsapp:" || h.protocol === "whatsapp://") {
5175
- const l = h.searchParams.get("phone") || h.pathname.replace(/^\/+/, "");
5651
+ const d = new URL(a, window.location.origin);
5652
+ if (d.protocol === "mailto:")
5653
+ return decodeURIComponent(d.pathname || d.href.replace(/^mailto:/, "").split("?")[0]) || null;
5654
+ if (d.protocol === "whatsapp:" || d.protocol === "whatsapp://") {
5655
+ const l = d.searchParams.get("phone") || d.pathname.replace(/^\/+/, "");
5176
5656
  return l ? `+${l.replace(/^\+/, "")}` : null;
5177
5657
  }
5178
5658
  } catch {
@@ -5217,12 +5697,12 @@ const ve = class ve extends HTMLElement {
5217
5697
  if (!this.verifiersEl) return;
5218
5698
  this.verifiersEl.innerHTML = "", this.verifiersEl.classList.toggle("is-two", i.length === 2);
5219
5699
  const s = this.currentConfig;
5220
- i.forEach((a, h) => {
5221
- if (h > 0 && i.length === 2) {
5700
+ i.forEach((a, d) => {
5701
+ if (d > 0 && i.length === 2) {
5222
5702
  const S = document.createElement("div");
5223
5703
  S.className = "divider", S.setAttribute("aria-hidden", "true");
5224
- const j = document.createElement("span");
5225
- j.textContent = this.orLabel(s.lang), S.appendChild(j), this.verifiersEl.appendChild(S);
5704
+ const I = document.createElement("span");
5705
+ I.textContent = this.orLabel(s.lang), S.appendChild(I), this.verifiersEl.appendChild(S);
5226
5706
  }
5227
5707
  const l = document.createElement("div");
5228
5708
  l.className = "opt";
@@ -5237,10 +5717,10 @@ const ve = class ve extends HTMLElement {
5237
5717
  }
5238
5718
  const y = document.createElement("span");
5239
5719
  y.className = "label", y.textContent = this.channelLabel(a, s.lang), m.appendChild(y), l.appendChild(m);
5240
- const T = this.destinationText(a, s.lang);
5241
- if (T) {
5720
+ const E = this.destinationText(a, s.lang);
5721
+ if (E) {
5242
5722
  const S = document.createElement("a");
5243
- S.className = "dest", S.href = m.href, S.target = "_blank", S.rel = "noopener noreferrer", S.textContent = T, l.appendChild(S);
5723
+ S.className = "dest", S.href = m.href, S.target = "_blank", S.rel = "noopener noreferrer", S.textContent = E, l.appendChild(S);
5244
5724
  }
5245
5725
  this.verifiersEl.appendChild(l);
5246
5726
  });
@@ -5257,9 +5737,9 @@ const ve = class ve extends HTMLElement {
5257
5737
  return "generic";
5258
5738
  }
5259
5739
  channelLabel(i, s) {
5260
- const a = F(s), h = this.channelClass(i);
5261
- if (h === "email") return a.labels.email;
5262
- if (h === "whatsapp") return a.labels.whatsapp;
5740
+ const a = F(s), d = this.channelClass(i);
5741
+ if (d === "email") return a.labels.email;
5742
+ if (d === "whatsapp") return a.labels.whatsapp;
5263
5743
  try {
5264
5744
  const l = new URL(i, window.location.origin);
5265
5745
  return l.protocol.startsWith("http") ? l.hostname : l.protocol.replace(":", "");
@@ -5268,20 +5748,20 @@ const ve = class ve extends HTMLElement {
5268
5748
  }
5269
5749
  }
5270
5750
  destinationText(i, s) {
5271
- const h = F(s).ui.toPrefix ?? "to";
5751
+ const d = F(s).ui.toPrefix ?? "to";
5272
5752
  try {
5273
5753
  const l = new URL(i, window.location.origin);
5274
5754
  if (l.protocol === "mailto:") {
5275
5755
  const m = decodeURIComponent(l.pathname || l.href.replace(/^mailto:/, "").split("?")[0]);
5276
- return m ? `${h} ${m}` : null;
5756
+ return m ? `${d} ${m}` : null;
5277
5757
  }
5278
5758
  if (l.protocol === "whatsapp:" || l.protocol === "whatsapp://") {
5279
5759
  const m = l.searchParams.get("phone") || l.pathname.replace(/^\/+/, "");
5280
- return m ? `${h} +${m.replace(/^\+/, "")}` : null;
5760
+ return m ? `${d} +${m.replace(/^\+/, "")}` : null;
5281
5761
  }
5282
5762
  if (l.protocol.startsWith("http") && (l.hostname === "wa.me" || l.hostname === "api.whatsapp.com")) {
5283
5763
  const m = l.pathname.replace(/^\/+/, "").replace(/[^0-9]/g, "");
5284
- return m ? `${h} +${m}` : null;
5764
+ return m ? `${d} +${m}` : null;
5285
5765
  }
5286
5766
  } catch {
5287
5767
  }
@@ -5301,24 +5781,24 @@ const ve = class ve extends HTMLElement {
5301
5781
  labelForUrl(i, s) {
5302
5782
  const a = F(s);
5303
5783
  try {
5304
- const h = new URL(i, window.location.origin);
5305
- return h.protocol === "mailto:" ? `${a.ui.by} ${a.labels.email}` : h.protocol.startsWith("http") ? h.hostname : h.protocol === "whatsapp:" ? `${a.ui.by} ${a.labels.whatsapp}` : h.protocol.replace(":", "");
5784
+ const d = new URL(i, window.location.origin);
5785
+ return d.protocol === "mailto:" ? `${a.ui.by} ${a.labels.email}` : d.protocol.startsWith("http") ? d.hostname : d.protocol === "whatsapp:" ? `${a.ui.by} ${a.labels.whatsapp}` : d.protocol.replace(":", "");
5306
5786
  } catch {
5307
5787
  return i.startsWith("mailto:") ? `${a.ui.by} ${a.labels.email}` : i.startsWith("whatsapp:") || i.startsWith("whatsapp://") ? `${a.ui.by} ${a.labels.whatsapp}` : i;
5308
5788
  }
5309
5789
  }
5310
5790
  buildLink(i, s) {
5311
- const a = this.lastCode, h = F(s), l = window.location.host;
5791
+ const a = this.lastCode, d = F(s), l = window.location.host;
5312
5792
  if (!a) return i;
5313
5793
  if (i.startsWith("mailto:")) {
5314
- const [m, v = ""] = i.split("?"), y = new URLSearchParams(v), T = this.applyTemplate(h.templates.emailSubject, l, a), S = this.applyTemplate(h.templates.emailBody, l, a);
5315
- y.set("subject", T), y.set("body", S);
5316
- const j = this.toQuery(y);
5317
- return `${m}?${j}`;
5794
+ const [m, v = ""] = i.split("?"), y = new URLSearchParams(v), E = this.applyTemplate(d.templates.emailSubject, l, a), S = this.applyTemplate(d.templates.emailBody, l, a);
5795
+ y.set("subject", E), y.set("body", S);
5796
+ const I = this.toQuery(y);
5797
+ return `${m}?${I}`;
5318
5798
  }
5319
5799
  if (i.startsWith("whatsapp:") || i.startsWith("whatsapp://")) {
5320
- const [m, v = ""] = i.split("?"), y = new URLSearchParams(v), T = this.applyTemplate(h.templates.whatsappText, l, a);
5321
- y.set("text", T);
5800
+ const [m, v = ""] = i.split("?"), y = new URLSearchParams(v), E = this.applyTemplate(d.templates.whatsappText, l, a);
5801
+ y.set("text", E);
5322
5802
  const S = this.toQuery(y);
5323
5803
  return `${m}?${S}`;
5324
5804
  }
@@ -5332,8 +5812,8 @@ const ve = class ve extends HTMLElement {
5332
5812
  // We use encodeURIComponent so spaces become '%20' and follow RFC 3986 style.
5333
5813
  toQuery(i) {
5334
5814
  const s = [];
5335
- return i.forEach((a, h) => {
5336
- const l = encodeURIComponent(h), m = encodeURIComponent(a);
5815
+ return i.forEach((a, d) => {
5816
+ const l = encodeURIComponent(d), m = encodeURIComponent(a);
5337
5817
  s.push(`${l}=${m}`);
5338
5818
  }), s.join("&");
5339
5819
  }
@@ -5342,8 +5822,8 @@ const ve = class ve extends HTMLElement {
5342
5822
  }
5343
5823
  };
5344
5824
  ve.tailwindCssText = null, ve.tailwindLoading = null;
5345
- let je = ve;
5346
- customElements.get("sendity-auth") || customElements.define("sendity-auth", je);
5825
+ let Ie = ve;
5826
+ customElements.get("sendity-auth") || customElements.define("sendity-auth", Ie);
5347
5827
  export {
5348
- je as Sendity
5828
+ Ie as Sendity
5349
5829
  };