@nylas/web-elements 2.5.0-canary-20260306042320 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +3417 -3413
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +370 -370
  3. package/dist/cjs/checkmark-icon_15.cjs.entry.js +3 -0
  4. package/dist/cjs/checkmark-icon_15.cjs.entry.js.map +1 -1
  5. package/dist/cjs/feedbackSync-CwO9ANWC.js.map +1 -1
  6. package/dist/cjs/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.cjs.js.map +1 -1
  7. package/dist/cjs/google-logo-icon_6.cjs.entry.js +19 -11
  8. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  9. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
  10. package/dist/cjs/nylas-scheduling.cjs.entry.js +5 -1
  11. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  12. package/dist/cjs/nylas-scheduling.entry.cjs.js.map +1 -1
  13. package/dist/cjs/{version-Co332DgG.js → version-DGl1NcN3.js} +3 -3
  14. package/dist/{esm/version-ClDvNLDf.js.map → cjs/version-DGl1NcN3.js.map} +1 -1
  15. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +3 -0
  16. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
  17. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +12 -5
  18. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
  19. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +6 -5
  20. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
  21. package/dist/collection/connector/shared/api/scheduler.js +4 -0
  22. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  23. package/dist/collection/types/index.js.map +1 -1
  24. package/dist/collection/version.js +1 -1
  25. package/dist/collection/version.js.map +1 -1
  26. package/dist/components/nylas-additional-participants.js +1 -1
  27. package/dist/components/nylas-editor-tabs-group.js +1 -1
  28. package/dist/components/nylas-editor-tabs.js +1 -1
  29. package/dist/components/nylas-event-calendar.js +1 -1
  30. package/dist/components/nylas-scheduler-editor.js +5 -5
  31. package/dist/components/nylas-scheduling.js +5 -1
  32. package/dist/components/nylas-scheduling.js.map +1 -1
  33. package/dist/components/{p-G4bkKoDi.js → p-BGmb8YG2.js} +3 -3
  34. package/dist/components/{p-G4bkKoDi.js.map → p-BGmb8YG2.js.map} +1 -1
  35. package/dist/components/{p-D2ELUj7W.js → p-Bt9X-jsP.js} +11 -10
  36. package/dist/components/p-Bt9X-jsP.js.map +1 -0
  37. package/dist/components/p-C1VNIgoH.js.map +1 -1
  38. package/dist/components/{p-BI99l5Mr.js → p-CHvPIGe5.js} +3 -3
  39. package/dist/components/{p-BI99l5Mr.js.map → p-CHvPIGe5.js.map} +1 -1
  40. package/dist/components/{p-DqM3uP9H.js → p-Cuf3Ml16.js} +5 -2
  41. package/dist/components/p-Cuf3Ml16.js.map +1 -0
  42. package/dist/components/{p-D1kxrvKw.js → p-DBJIEtRG.js} +16 -9
  43. package/dist/components/p-DBJIEtRG.js.map +1 -0
  44. package/dist/esm/checkmark-icon_15.entry.js +3 -0
  45. package/dist/esm/checkmark-icon_15.entry.js.map +1 -1
  46. package/dist/esm/feedbackSync-CquJ7U5v.js.map +1 -1
  47. package/dist/esm/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.js.map +1 -1
  48. package/dist/esm/google-logo-icon_6.entry.js +19 -11
  49. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  50. package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
  51. package/dist/esm/nylas-scheduling.entry.js +5 -1
  52. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  53. package/dist/esm/{version-ClDvNLDf.js → version-x_nQ-XLO.js} +3 -3
  54. package/dist/{cjs/version-Co332DgG.js.map → esm/version-x_nQ-XLO.js.map} +1 -1
  55. package/dist/nylas-web-elements/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.esm.js.map +1 -1
  56. package/dist/nylas-web-elements/nylas-scheduling.entry.esm.js.map +1 -1
  57. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  58. package/dist/nylas-web-elements/{p-12a29e9d.entry.js → p-06949fd1.entry.js} +2 -2
  59. package/dist/nylas-web-elements/p-1dbfb2bb.entry.js +2 -0
  60. package/dist/nylas-web-elements/p-1dbfb2bb.entry.js.map +1 -0
  61. package/dist/nylas-web-elements/p-1e6e74bb.entry.js +2 -0
  62. package/dist/nylas-web-elements/p-1e6e74bb.entry.js.map +1 -0
  63. package/dist/nylas-web-elements/p-38ff3353.entry.js +2 -0
  64. package/dist/nylas-web-elements/p-38ff3353.entry.js.map +1 -0
  65. package/dist/nylas-web-elements/p-CquJ7U5v.js.map +1 -1
  66. package/dist/nylas-web-elements/p-x_nQ-XLO.js +2 -0
  67. package/dist/nylas-web-elements/{p-ClDvNLDf.js.map → p-x_nQ-XLO.js.map} +1 -1
  68. package/dist/types/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.d.ts +1 -0
  69. package/dist/types/types/index.d.ts +1 -0
  70. package/dist/types/version.d.ts +1 -1
  71. package/package.json +1 -1
  72. package/dist/components/p-D1kxrvKw.js.map +0 -1
  73. package/dist/components/p-D2ELUj7W.js.map +0 -1
  74. package/dist/components/p-DqM3uP9H.js.map +0 -1
  75. package/dist/nylas-web-elements/p-913511c9.entry.js +0 -2
  76. package/dist/nylas-web-elements/p-913511c9.entry.js.map +0 -1
  77. package/dist/nylas-web-elements/p-ClDvNLDf.js +0 -2
  78. package/dist/nylas-web-elements/p-bafa8e30.entry.js +0 -2
  79. package/dist/nylas-web-elements/p-bafa8e30.entry.js.map +0 -1
  80. package/dist/nylas-web-elements/p-d2f6e3d9.entry.js +0 -2
  81. package/dist/nylas-web-elements/p-d2f6e3d9.entry.js.map +0 -1
  82. /package/dist/nylas-web-elements/{p-12a29e9d.entry.js.map → p-06949fd1.entry.js.map} +0 -0
@@ -1141,18 +1141,18 @@ function At() {
1141
1141
  t.exports = i();
1142
1142
  })(mB, function() {
1143
1143
  var n = 1e3, i = 6e4, r = 36e5, a = "millisecond", o = "second", s = "minute", u = "hour", c = "day", f = "week", h = "month", l = "quarter", d = "year", p = "date", m = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(x) {
1144
- var B = ["th", "st", "nd", "rd"], w = x % 100;
1145
- return "[" + x + (B[(w - 20) % 10] || B[w] || B[0]) + "]";
1146
- } }, E = function(x, B, w) {
1147
- var R = String(x);
1148
- return !R || R.length >= B ? x : "" + Array(B + 1 - R.length).join(w) + x;
1144
+ var P = ["th", "st", "nd", "rd"], w = x % 100;
1145
+ return "[" + x + (P[(w - 20) % 10] || P[w] || P[0]) + "]";
1146
+ } }, E = function(x, P, w) {
1147
+ var I = String(x);
1148
+ return !I || I.length >= P ? x : "" + Array(P + 1 - I.length).join(w) + x;
1149
1149
  }, T = { s: E, z: function(x) {
1150
- var B = -x.utcOffset(), w = Math.abs(B), R = Math.floor(w / 60), O = w % 60;
1151
- return (B <= 0 ? "+" : "-") + E(R, 2, "0") + ":" + E(O, 2, "0");
1152
- }, m: function x(B, w) {
1153
- if (B.date() < w.date()) return -x(w, B);
1154
- var R = 12 * (w.year() - B.year()) + (w.month() - B.month()), O = B.clone().add(R, h), F = w - O < 0, j = B.clone().add(R + (F ? -1 : 1), h);
1155
- return +(-(R + (w - O) / (F ? O - j : j - O)) || 0);
1150
+ var P = -x.utcOffset(), w = Math.abs(P), I = Math.floor(w / 60), O = w % 60;
1151
+ return (P <= 0 ? "+" : "-") + E(I, 2, "0") + ":" + E(O, 2, "0");
1152
+ }, m: function x(P, w) {
1153
+ if (P.date() < w.date()) return -x(w, P);
1154
+ var I = 12 * (w.year() - P.year()) + (w.month() - P.month()), O = P.clone().add(I, h), F = w - O < 0, j = P.clone().add(I + (F ? -1 : 1), h);
1155
+ return +(-(I + (w - O) / (F ? O - j : j - O)) || 0);
1156
1156
  }, a: function(x) {
1157
1157
  return x < 0 ? Math.ceil(x) || 0 : Math.floor(x);
1158
1158
  }, p: function(x) {
@@ -1163,37 +1163,37 @@ function At() {
1163
1163
  _[k] = y;
1164
1164
  var C = function(x) {
1165
1165
  return x instanceof S;
1166
- }, D = function x(B, w, R) {
1166
+ }, D = function x(P, w, I) {
1167
1167
  var O;
1168
- if (!B) return k;
1169
- if (typeof B == "string") {
1170
- var F = B.toLowerCase();
1168
+ if (!P) return k;
1169
+ if (typeof P == "string") {
1170
+ var F = P.toLowerCase();
1171
1171
  _[F] && (O = F), w && (_[F] = w, O = F);
1172
- var j = B.split("-");
1172
+ var j = P.split("-");
1173
1173
  if (!O && j.length > 1) return x(j[0]);
1174
1174
  } else {
1175
- var H = B.name;
1176
- _[H] = B, O = H;
1175
+ var H = P.name;
1176
+ _[H] = P, O = H;
1177
1177
  }
1178
- return !R && O && (k = O), O || !R && k;
1179
- }, $ = function(x, B) {
1178
+ return !I && O && (k = O), O || !I && k;
1179
+ }, $ = function(x, P) {
1180
1180
  if (C(x)) return x.clone();
1181
- var w = typeof B == "object" ? B : {};
1181
+ var w = typeof P == "object" ? P : {};
1182
1182
  return w.date = x, w.args = arguments, new S(w);
1183
- }, P = T;
1184
- P.l = D, P.i = C, P.w = function(x, B) {
1185
- return $(x, { locale: B.$L, utc: B.$u, x: B.$x, $offset: B.$offset });
1183
+ }, B = T;
1184
+ B.l = D, B.i = C, B.w = function(x, P) {
1185
+ return $(x, { locale: P.$L, utc: P.$u, x: P.$x, $offset: P.$offset });
1186
1186
  };
1187
1187
  var S = function() {
1188
1188
  function x(w) {
1189
1189
  this.$L = D(w.locale, null, !0), this.parse(w);
1190
1190
  }
1191
- var B = x.prototype;
1192
- return B.parse = function(w) {
1193
- this.$d = function(R) {
1194
- var O = R.date, F = R.utc;
1191
+ var P = x.prototype;
1192
+ return P.parse = function(w) {
1193
+ this.$d = function(I) {
1194
+ var O = I.date, F = I.utc;
1195
1195
  if (O === null) return /* @__PURE__ */ new Date(NaN);
1196
- if (P.u(O)) return /* @__PURE__ */ new Date();
1196
+ if (B.u(O)) return /* @__PURE__ */ new Date();
1197
1197
  if (O instanceof Date) return new Date(O);
1198
1198
  if (typeof O == "string" && !/Z$/i.test(O)) {
1199
1199
  var j = O.match(b);
@@ -1204,32 +1204,32 @@ function At() {
1204
1204
  }
1205
1205
  return new Date(O);
1206
1206
  }(w), this.$x = w.x || {}, this.init();
1207
- }, B.init = function() {
1207
+ }, P.init = function() {
1208
1208
  var w = this.$d;
1209
1209
  this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
1210
- }, B.$utils = function() {
1211
- return P;
1212
- }, B.isValid = function() {
1210
+ }, P.$utils = function() {
1211
+ return B;
1212
+ }, P.isValid = function() {
1213
1213
  return this.$d.toString() !== m;
1214
- }, B.isSame = function(w, R) {
1214
+ }, P.isSame = function(w, I) {
1215
1215
  var O = $(w);
1216
- return this.startOf(R) <= O && O <= this.endOf(R);
1217
- }, B.isAfter = function(w, R) {
1218
- return $(w) < this.startOf(R);
1219
- }, B.isBefore = function(w, R) {
1220
- return this.endOf(R) < $(w);
1221
- }, B.$g = function(w, R, O) {
1222
- return P.u(w) ? this[R] : this.set(O, w);
1223
- }, B.unix = function() {
1216
+ return this.startOf(I) <= O && O <= this.endOf(I);
1217
+ }, P.isAfter = function(w, I) {
1218
+ return $(w) < this.startOf(I);
1219
+ }, P.isBefore = function(w, I) {
1220
+ return this.endOf(I) < $(w);
1221
+ }, P.$g = function(w, I, O) {
1222
+ return B.u(w) ? this[I] : this.set(O, w);
1223
+ }, P.unix = function() {
1224
1224
  return Math.floor(this.valueOf() / 1e3);
1225
- }, B.valueOf = function() {
1225
+ }, P.valueOf = function() {
1226
1226
  return this.$d.getTime();
1227
- }, B.startOf = function(w, R) {
1228
- var O = this, F = !!P.u(R) || R, j = P.p(w), H = function(Be, ve) {
1229
- var Se = P.w(O.$u ? Date.UTC(O.$y, ve, Be) : new Date(O.$y, ve, Be), O);
1227
+ }, P.startOf = function(w, I) {
1228
+ var O = this, F = !!B.u(I) || I, j = B.p(w), H = function(Be, ve) {
1229
+ var Se = B.w(O.$u ? Date.UTC(O.$y, ve, Be) : new Date(O.$y, ve, Be), O);
1230
1230
  return F ? Se : Se.endOf(c);
1231
1231
  }, V = function(Be, ve) {
1232
- return P.w(O.toDate()[Be].apply(O.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ve)), O);
1232
+ return B.w(O.toDate()[Be].apply(O.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ve)), O);
1233
1233
  }, J = this.$W, q = this.$M, ae = this.$D, ne = "set" + (this.$u ? "UTC" : "");
1234
1234
  switch (j) {
1235
1235
  case d:
@@ -1251,79 +1251,79 @@ function At() {
1251
1251
  default:
1252
1252
  return this.clone();
1253
1253
  }
1254
- }, B.endOf = function(w) {
1254
+ }, P.endOf = function(w) {
1255
1255
  return this.startOf(w, !1);
1256
- }, B.$set = function(w, R) {
1257
- var O, F = P.p(w), j = "set" + (this.$u ? "UTC" : ""), H = (O = {}, O[c] = j + "Date", O[p] = j + "Date", O[h] = j + "Month", O[d] = j + "FullYear", O[u] = j + "Hours", O[s] = j + "Minutes", O[o] = j + "Seconds", O[a] = j + "Milliseconds", O)[F], V = F === c ? this.$D + (R - this.$W) : R;
1256
+ }, P.$set = function(w, I) {
1257
+ var O, F = B.p(w), j = "set" + (this.$u ? "UTC" : ""), H = (O = {}, O[c] = j + "Date", O[p] = j + "Date", O[h] = j + "Month", O[d] = j + "FullYear", O[u] = j + "Hours", O[s] = j + "Minutes", O[o] = j + "Seconds", O[a] = j + "Milliseconds", O)[F], V = F === c ? this.$D + (I - this.$W) : I;
1258
1258
  if (F === h || F === d) {
1259
1259
  var J = this.clone().set(p, 1);
1260
1260
  J.$d[H](V), J.init(), this.$d = J.set(p, Math.min(this.$D, J.daysInMonth())).$d;
1261
1261
  } else H && this.$d[H](V);
1262
1262
  return this.init(), this;
1263
- }, B.set = function(w, R) {
1264
- return this.clone().$set(w, R);
1265
- }, B.get = function(w) {
1266
- return this[P.p(w)]();
1267
- }, B.add = function(w, R) {
1263
+ }, P.set = function(w, I) {
1264
+ return this.clone().$set(w, I);
1265
+ }, P.get = function(w) {
1266
+ return this[B.p(w)]();
1267
+ }, P.add = function(w, I) {
1268
1268
  var O, F = this;
1269
1269
  w = Number(w);
1270
- var j = P.p(R), H = function(q) {
1270
+ var j = B.p(I), H = function(q) {
1271
1271
  var ae = $(F);
1272
- return P.w(ae.date(ae.date() + Math.round(q * w)), F);
1272
+ return B.w(ae.date(ae.date() + Math.round(q * w)), F);
1273
1273
  };
1274
1274
  if (j === h) return this.set(h, this.$M + w);
1275
1275
  if (j === d) return this.set(d, this.$y + w);
1276
1276
  if (j === c) return H(1);
1277
1277
  if (j === f) return H(7);
1278
1278
  var V = (O = {}, O[s] = i, O[u] = r, O[o] = n, O)[j] || 1, J = this.$d.getTime() + w * V;
1279
- return P.w(J, this);
1280
- }, B.subtract = function(w, R) {
1281
- return this.add(-1 * w, R);
1282
- }, B.format = function(w) {
1283
- var R = this, O = this.$locale();
1279
+ return B.w(J, this);
1280
+ }, P.subtract = function(w, I) {
1281
+ return this.add(-1 * w, I);
1282
+ }, P.format = function(w) {
1283
+ var I = this, O = this.$locale();
1284
1284
  if (!this.isValid()) return O.invalidDate || m;
1285
- var F = w || "YYYY-MM-DDTHH:mm:ssZ", j = P.z(this), H = this.$H, V = this.$m, J = this.$M, q = O.weekdays, ae = O.months, ne = function(ve, Se, I, N) {
1286
- return ve && (ve[Se] || ve(R, F)) || I[Se].slice(0, N);
1285
+ var F = w || "YYYY-MM-DDTHH:mm:ssZ", j = B.z(this), H = this.$H, V = this.$m, J = this.$M, q = O.weekdays, ae = O.months, ne = function(ve, Se, R, N) {
1286
+ return ve && (ve[Se] || ve(I, F)) || R[Se].slice(0, N);
1287
1287
  }, we = function(ve) {
1288
- return P.s(H % 12 || 12, ve, "0");
1289
- }, $e = O.meridiem || function(ve, Se, I) {
1288
+ return B.s(H % 12 || 12, ve, "0");
1289
+ }, $e = O.meridiem || function(ve, Se, R) {
1290
1290
  var N = ve < 12 ? "AM" : "PM";
1291
- return I ? N.toLowerCase() : N;
1292
- }, Be = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: J + 1, MM: P.s(J + 1, 2, "0"), MMM: ne(O.monthsShort, J, ae, 3), MMMM: ne(ae, J), D: this.$D, DD: P.s(this.$D, 2, "0"), d: String(this.$W), dd: ne(O.weekdaysMin, this.$W, q, 2), ddd: ne(O.weekdaysShort, this.$W, q, 3), dddd: q[this.$W], H: String(H), HH: P.s(H, 2, "0"), h: we(1), hh: we(2), a: $e(H, V, !0), A: $e(H, V, !1), m: String(V), mm: P.s(V, 2, "0"), s: String(this.$s), ss: P.s(this.$s, 2, "0"), SSS: P.s(this.$ms, 3, "0"), Z: j };
1291
+ return R ? N.toLowerCase() : N;
1292
+ }, Be = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: J + 1, MM: B.s(J + 1, 2, "0"), MMM: ne(O.monthsShort, J, ae, 3), MMMM: ne(ae, J), D: this.$D, DD: B.s(this.$D, 2, "0"), d: String(this.$W), dd: ne(O.weekdaysMin, this.$W, q, 2), ddd: ne(O.weekdaysShort, this.$W, q, 3), dddd: q[this.$W], H: String(H), HH: B.s(H, 2, "0"), h: we(1), hh: we(2), a: $e(H, V, !0), A: $e(H, V, !1), m: String(V), mm: B.s(V, 2, "0"), s: String(this.$s), ss: B.s(this.$s, 2, "0"), SSS: B.s(this.$ms, 3, "0"), Z: j };
1293
1293
  return F.replace(g, function(ve, Se) {
1294
1294
  return Se || Be[ve] || j.replace(":", "");
1295
1295
  });
1296
- }, B.utcOffset = function() {
1296
+ }, P.utcOffset = function() {
1297
1297
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1298
- }, B.diff = function(w, R, O) {
1299
- var F, j = P.p(R), H = $(w), V = (H.utcOffset() - this.utcOffset()) * i, J = this - H, q = P.m(this, H);
1300
- return q = (F = {}, F[d] = q / 12, F[h] = q, F[l] = q / 3, F[f] = (J - V) / 6048e5, F[c] = (J - V) / 864e5, F[u] = J / r, F[s] = J / i, F[o] = J / n, F)[j] || J, O ? q : P.a(q);
1301
- }, B.daysInMonth = function() {
1298
+ }, P.diff = function(w, I, O) {
1299
+ var F, j = B.p(I), H = $(w), V = (H.utcOffset() - this.utcOffset()) * i, J = this - H, q = B.m(this, H);
1300
+ return q = (F = {}, F[d] = q / 12, F[h] = q, F[l] = q / 3, F[f] = (J - V) / 6048e5, F[c] = (J - V) / 864e5, F[u] = J / r, F[s] = J / i, F[o] = J / n, F)[j] || J, O ? q : B.a(q);
1301
+ }, P.daysInMonth = function() {
1302
1302
  return this.endOf(h).$D;
1303
- }, B.$locale = function() {
1303
+ }, P.$locale = function() {
1304
1304
  return _[this.$L];
1305
- }, B.locale = function(w, R) {
1305
+ }, P.locale = function(w, I) {
1306
1306
  if (!w) return this.$L;
1307
- var O = this.clone(), F = D(w, R, !0);
1307
+ var O = this.clone(), F = D(w, I, !0);
1308
1308
  return F && (O.$L = F), O;
1309
- }, B.clone = function() {
1310
- return P.w(this.$d, this);
1311
- }, B.toDate = function() {
1309
+ }, P.clone = function() {
1310
+ return B.w(this.$d, this);
1311
+ }, P.toDate = function() {
1312
1312
  return new Date(this.valueOf());
1313
- }, B.toJSON = function() {
1313
+ }, P.toJSON = function() {
1314
1314
  return this.isValid() ? this.toISOString() : null;
1315
- }, B.toISOString = function() {
1315
+ }, P.toISOString = function() {
1316
1316
  return this.$d.toISOString();
1317
- }, B.toString = function() {
1317
+ }, P.toString = function() {
1318
1318
  return this.$d.toUTCString();
1319
1319
  }, x;
1320
1320
  }(), A = S.prototype;
1321
1321
  return $.prototype = A, [["$ms", a], ["$s", o], ["$m", s], ["$H", u], ["$W", c], ["$M", h], ["$y", d], ["$D", p]].forEach(function(x) {
1322
- A[x[1]] = function(B) {
1323
- return this.$g(B, x[0], x[1]);
1322
+ A[x[1]] = function(P) {
1323
+ return this.$g(P, x[0], x[1]);
1324
1324
  };
1325
- }), $.extend = function(x, B) {
1326
- return x.$i || (x(B, S, $), x.$i = !0), $;
1325
+ }), $.extend = function(x, P) {
1326
+ return x.$i || (x(P, S, $), x.$i = !0), $;
1327
1327
  }, $.locale = D, $.isDayjs = C, $.unix = function(x) {
1328
1328
  return $(1e3 * x);
1329
1329
  }, $.en = _[k], $.Ls = _, $.p = {}, $;
@@ -3473,11 +3473,11 @@ class hr extends Ar {
3473
3473
  let T = !1, k = !1;
3474
3474
  const _ = n.count !== void 0 && typeof n.count != "string", C = hr.hasDefaultValue(n), D = _ ? this.pluralResolver.getSuffix(c, n.count, n) : "", $ = n.ordinal && _ ? this.pluralResolver.getSuffix(c, n.count, {
3475
3475
  ordinal: !1
3476
- }) : "", P = _ && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), S = P && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${D}`] || n[`defaultValue${$}`] || n.defaultValue;
3476
+ }) : "", B = _ && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), S = B && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${D}`] || n[`defaultValue${$}`] || n.defaultValue;
3477
3477
  !this.isValidLookup(l) && C && (T = !0, l = S), this.isValidLookup(l) || (k = !0, l = o);
3478
- const x = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && k ? void 0 : l, B = C && S !== l && this.options.updateMissing;
3479
- if (k || T || B) {
3480
- if (this.logger.log(B ? "updateKey" : "missingKey", c, u, o, B ? S : l), a) {
3478
+ const x = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && k ? void 0 : l, P = C && S !== l && this.options.updateMissing;
3479
+ if (k || T || P) {
3480
+ if (this.logger.log(P ? "updateKey" : "missingKey", c, u, o, P ? S : l), a) {
3481
3481
  const F = this.resolve(o, {
3482
3482
  ...n,
3483
3483
  keySeparator: !1
@@ -3485,18 +3485,18 @@ class hr extends Ar {
3485
3485
  F && F.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
3486
3486
  }
3487
3487
  let w = [];
3488
- const R = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
3489
- if (this.options.saveMissingTo === "fallback" && R && R[0])
3490
- for (let F = 0; F < R.length; F++)
3491
- w.push(R[F]);
3488
+ const I = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
3489
+ if (this.options.saveMissingTo === "fallback" && I && I[0])
3490
+ for (let F = 0; F < I.length; F++)
3491
+ w.push(I[F]);
3492
3492
  else this.options.saveMissingTo === "all" ? w = this.languageUtils.toResolveHierarchy(n.lng || this.language) : w.push(n.lng || this.language);
3493
3493
  const O = (F, j, H) => {
3494
3494
  const V = C && H !== l ? H : x;
3495
- this.options.missingKeyHandler ? this.options.missingKeyHandler(F, u, j, V, B, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(F, u, j, V, B, n), this.emit("missingKey", F, u, j, l);
3495
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(F, u, j, V, P, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(F, u, j, V, P, n), this.emit("missingKey", F, u, j, l);
3496
3496
  };
3497
3497
  this.options.saveMissing && (this.options.saveMissingPlurals && _ ? w.forEach((F) => {
3498
3498
  const j = this.pluralResolver.getSuffixes(F, n);
3499
- P && n[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((H) => {
3499
+ B && n[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((H) => {
3500
3500
  O([F], o + H, n[`defaultValue${H}`] || S);
3501
3501
  });
3502
3502
  }) : O(w, o, S));
@@ -13439,14 +13439,14 @@ function fl() {
13439
13439
  var hl;
13440
13440
  function pr() {
13441
13441
  return hl || (hl = 1, function(t) {
13442
- var e = nt && nt.__createBinding || (Object.create ? function(S, A, x, B) {
13443
- B === void 0 && (B = x);
13442
+ var e = nt && nt.__createBinding || (Object.create ? function(S, A, x, P) {
13443
+ P === void 0 && (P = x);
13444
13444
  var w = Object.getOwnPropertyDescriptor(A, x);
13445
13445
  (!w || ("get" in w ? !A.__esModule : w.writable || w.configurable)) && (w = { enumerable: !0, get: function() {
13446
13446
  return A[x];
13447
- } }), Object.defineProperty(S, B, w);
13448
- } : function(S, A, x, B) {
13449
- B === void 0 && (B = x), S[B] = A[x];
13447
+ } }), Object.defineProperty(S, P, w);
13448
+ } : function(S, A, x, P) {
13449
+ P === void 0 && (P = x), S[P] = A[x];
13450
13450
  }), n = nt && nt.__setModuleDefault || (Object.create ? function(S, A) {
13451
13451
  Object.defineProperty(S, "default", { enumerable: !0, value: A });
13452
13452
  } : function(S, A) {
@@ -13503,8 +13503,8 @@ function pr() {
13503
13503
  var y = (
13504
13504
  /** @class */
13505
13505
  function() {
13506
- function S(A, x, B) {
13507
- this.decodeTree = A, this.emitCodePoint = x, this.errors = B, this.state = b.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = g.Strict;
13506
+ function S(A, x, P) {
13507
+ this.decodeTree = A, this.emitCodePoint = x, this.errors = P, this.state = b.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = g.Strict;
13508
13508
  }
13509
13509
  return S.prototype.startEntity = function(A) {
13510
13510
  this.decodeMode = A, this.state = b.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
@@ -13523,59 +13523,59 @@ function pr() {
13523
13523
  }
13524
13524
  }, S.prototype.stateNumericStart = function(A, x) {
13525
13525
  return x >= A.length ? -1 : (A.charCodeAt(x) | f) === c.LOWER_X ? (this.state = b.NumericHex, this.consumed += 1, this.stateNumericHex(A, x + 1)) : (this.state = b.NumericDecimal, this.stateNumericDecimal(A, x));
13526
- }, S.prototype.addToNumericResult = function(A, x, B, w) {
13527
- if (x !== B) {
13528
- var R = B - x;
13529
- this.result = this.result * Math.pow(w, R) + parseInt(A.substr(x, R), w), this.consumed += R;
13526
+ }, S.prototype.addToNumericResult = function(A, x, P, w) {
13527
+ if (x !== P) {
13528
+ var I = P - x;
13529
+ this.result = this.result * Math.pow(w, I) + parseInt(A.substr(x, I), w), this.consumed += I;
13530
13530
  }
13531
13531
  }, S.prototype.stateNumericHex = function(A, x) {
13532
- for (var B = x; x < A.length; ) {
13532
+ for (var P = x; x < A.length; ) {
13533
13533
  var w = A.charCodeAt(x);
13534
13534
  if (l(w) || d(w))
13535
13535
  x += 1;
13536
13536
  else
13537
- return this.addToNumericResult(A, B, x, 16), this.emitNumericEntity(w, 3);
13537
+ return this.addToNumericResult(A, P, x, 16), this.emitNumericEntity(w, 3);
13538
13538
  }
13539
- return this.addToNumericResult(A, B, x, 16), -1;
13539
+ return this.addToNumericResult(A, P, x, 16), -1;
13540
13540
  }, S.prototype.stateNumericDecimal = function(A, x) {
13541
- for (var B = x; x < A.length; ) {
13541
+ for (var P = x; x < A.length; ) {
13542
13542
  var w = A.charCodeAt(x);
13543
13543
  if (l(w))
13544
13544
  x += 1;
13545
13545
  else
13546
- return this.addToNumericResult(A, B, x, 10), this.emitNumericEntity(w, 2);
13546
+ return this.addToNumericResult(A, P, x, 10), this.emitNumericEntity(w, 2);
13547
13547
  }
13548
- return this.addToNumericResult(A, B, x, 10), -1;
13548
+ return this.addToNumericResult(A, P, x, 10), -1;
13549
13549
  }, S.prototype.emitNumericEntity = function(A, x) {
13550
- var B;
13550
+ var P;
13551
13551
  if (this.consumed <= x)
13552
- return (B = this.errors) === null || B === void 0 || B.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
13552
+ return (P = this.errors) === null || P === void 0 || P.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
13553
13553
  if (A === c.SEMI)
13554
13554
  this.consumed += 1;
13555
13555
  else if (this.decodeMode === g.Strict)
13556
13556
  return 0;
13557
13557
  return this.emitCodePoint((0, s.replaceCodePoint)(this.result), this.consumed), this.errors && (A !== c.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
13558
13558
  }, S.prototype.stateNamedEntity = function(A, x) {
13559
- for (var B = this.decodeTree, w = B[this.treeIndex], R = (w & h.VALUE_LENGTH) >> 14; x < A.length; x++, this.excess++) {
13559
+ for (var P = this.decodeTree, w = P[this.treeIndex], I = (w & h.VALUE_LENGTH) >> 14; x < A.length; x++, this.excess++) {
13560
13560
  var O = A.charCodeAt(x);
13561
- if (this.treeIndex = T(B, w, this.treeIndex + Math.max(1, R), O), this.treeIndex < 0)
13561
+ if (this.treeIndex = T(P, w, this.treeIndex + Math.max(1, I), O), this.treeIndex < 0)
13562
13562
  return this.result === 0 || // If we are parsing an attribute
13563
13563
  this.decodeMode === g.Attribute && // We shouldn't have consumed any characters after the entity,
13564
- (R === 0 || // And there should be no invalid characters.
13564
+ (I === 0 || // And there should be no invalid characters.
13565
13565
  m(O)) ? 0 : this.emitNotTerminatedNamedEntity();
13566
- if (w = B[this.treeIndex], R = (w & h.VALUE_LENGTH) >> 14, R !== 0) {
13566
+ if (w = P[this.treeIndex], I = (w & h.VALUE_LENGTH) >> 14, I !== 0) {
13567
13567
  if (O === c.SEMI)
13568
- return this.emitNamedEntityData(this.treeIndex, R, this.consumed + this.excess);
13568
+ return this.emitNamedEntityData(this.treeIndex, I, this.consumed + this.excess);
13569
13569
  this.decodeMode !== g.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
13570
13570
  }
13571
13571
  }
13572
13572
  return -1;
13573
13573
  }, S.prototype.emitNotTerminatedNamedEntity = function() {
13574
- var A, x = this, B = x.result, w = x.decodeTree, R = (w[B] & h.VALUE_LENGTH) >> 14;
13575
- return this.emitNamedEntityData(B, R, this.consumed), (A = this.errors) === null || A === void 0 || A.missingSemicolonAfterCharacterReference(), this.consumed;
13576
- }, S.prototype.emitNamedEntityData = function(A, x, B) {
13574
+ var A, x = this, P = x.result, w = x.decodeTree, I = (w[P] & h.VALUE_LENGTH) >> 14;
13575
+ return this.emitNamedEntityData(P, I, this.consumed), (A = this.errors) === null || A === void 0 || A.missingSemicolonAfterCharacterReference(), this.consumed;
13576
+ }, S.prototype.emitNamedEntityData = function(A, x, P) {
13577
13577
  var w = this.decodeTree;
13578
- return this.emitCodePoint(x === 1 ? w[A] & ~h.VALUE_LENGTH : w[A + 1], B), x === 3 && this.emitCodePoint(w[A + 2], B), B;
13578
+ return this.emitCodePoint(x === 1 ? w[A] & ~h.VALUE_LENGTH : w[A + 1], P), x === 3 && this.emitCodePoint(w[A + 2], P), P;
13579
13579
  }, S.prototype.end = function() {
13580
13580
  var A;
13581
13581
  switch (this.state) {
@@ -13595,12 +13595,12 @@ function pr() {
13595
13595
  );
13596
13596
  t.EntityDecoder = y;
13597
13597
  function E(S) {
13598
- var A = "", x = new y(S, function(B) {
13599
- return A += (0, s.fromCodePoint)(B);
13598
+ var A = "", x = new y(S, function(P) {
13599
+ return A += (0, s.fromCodePoint)(P);
13600
13600
  });
13601
- return function(w, R) {
13601
+ return function(w, I) {
13602
13602
  for (var O = 0, F = 0; (F = w.indexOf("&", F)) >= 0; ) {
13603
- A += w.slice(O, F), x.startEntity(R);
13603
+ A += w.slice(O, F), x.startEntity(I);
13604
13604
  var j = x.write(
13605
13605
  w,
13606
13606
  // Skip the "&"
@@ -13616,19 +13616,19 @@ function pr() {
13616
13616
  return A = "", H;
13617
13617
  };
13618
13618
  }
13619
- function T(S, A, x, B) {
13620
- var w = (A & h.BRANCH_LENGTH) >> 7, R = A & h.JUMP_TABLE;
13619
+ function T(S, A, x, P) {
13620
+ var w = (A & h.BRANCH_LENGTH) >> 7, I = A & h.JUMP_TABLE;
13621
13621
  if (w === 0)
13622
- return R !== 0 && B === R ? x : -1;
13623
- if (R) {
13624
- var O = B - R;
13622
+ return I !== 0 && P === I ? x : -1;
13623
+ if (I) {
13624
+ var O = P - I;
13625
13625
  return O < 0 || O >= w ? -1 : S[x + O] - 1;
13626
13626
  }
13627
13627
  for (var F = x, j = F + w - 1; F <= j; ) {
13628
13628
  var H = F + j >>> 1, V = S[H];
13629
- if (V < B)
13629
+ if (V < P)
13630
13630
  F = H + 1;
13631
- else if (V > B)
13631
+ else if (V > P)
13632
13632
  j = H - 1;
13633
13633
  else
13634
13634
  return S[H + w];
@@ -13649,10 +13649,10 @@ function pr() {
13649
13649
  return k(S, g.Strict);
13650
13650
  }
13651
13651
  t.decodeHTMLStrict = $;
13652
- function P(S) {
13652
+ function B(S) {
13653
13653
  return _(S, g.Strict);
13654
13654
  }
13655
- t.decodeXML = P;
13655
+ t.decodeXML = B;
13656
13656
  }(nt)), nt;
13657
13657
  }
13658
13658
  var pl;
@@ -14144,13 +14144,13 @@ function ml() {
14144
14144
  if (this.lowerCaseTagNames && ($ = $.toLowerCase()), (l.has($) || d.has($)) && this.foreignContext.pop(), this.isVoidElement($))
14145
14145
  !this.options.xmlMode && $ === "br" && ((T = (E = this.cbs).onopentagname) === null || T === void 0 || T.call(E, "br"), (_ = (k = this.cbs).onopentag) === null || _ === void 0 || _.call(k, "br", {}, !0), (D = (C = this.cbs).onclosetag) === null || D === void 0 || D.call(C, "br", !1));
14146
14146
  else {
14147
- var P = this.stack.lastIndexOf($);
14148
- if (P !== -1)
14147
+ var B = this.stack.lastIndexOf($);
14148
+ if (B !== -1)
14149
14149
  if (this.cbs.onclosetag)
14150
- for (var S = this.stack.length - P; S--; )
14150
+ for (var S = this.stack.length - B; S--; )
14151
14151
  this.cbs.onclosetag(this.stack.pop(), S !== 0);
14152
14152
  else
14153
- this.stack.length = P;
14153
+ this.stack.length = B;
14154
14154
  else !this.options.xmlMode && $ === "p" && (this.emitOpenTag("p"), this.closeCurrentTag(!0));
14155
14155
  }
14156
14156
  this.startIndex = y + 1;
@@ -14193,10 +14193,10 @@ function ml() {
14193
14193
  var T, k, _, C;
14194
14194
  this.endIndex = y, (k = (T = this.cbs).oncomment) === null || k === void 0 || k.call(T, this.getSlice(g, y - E)), (C = (_ = this.cbs).oncommentend) === null || C === void 0 || C.call(_), this.startIndex = y + 1;
14195
14195
  }, b.prototype.oncdata = function(g, y, E) {
14196
- var T, k, _, C, D, $, P, S, A, x;
14196
+ var T, k, _, C, D, $, B, S, A, x;
14197
14197
  this.endIndex = y;
14198
- var B = this.getSlice(g, y - E);
14199
- this.options.xmlMode || this.options.recognizeCDATA ? ((k = (T = this.cbs).oncdatastart) === null || k === void 0 || k.call(T), (C = (_ = this.cbs).ontext) === null || C === void 0 || C.call(_, B), ($ = (D = this.cbs).oncdataend) === null || $ === void 0 || $.call(D)) : ((S = (P = this.cbs).oncomment) === null || S === void 0 || S.call(P, "[CDATA[".concat(B, "]]")), (x = (A = this.cbs).oncommentend) === null || x === void 0 || x.call(A)), this.startIndex = y + 1;
14198
+ var P = this.getSlice(g, y - E);
14199
+ this.options.xmlMode || this.options.recognizeCDATA ? ((k = (T = this.cbs).oncdatastart) === null || k === void 0 || k.call(T), (C = (_ = this.cbs).ontext) === null || C === void 0 || C.call(_, P), ($ = (D = this.cbs).oncdataend) === null || $ === void 0 || $.call(D)) : ((S = (B = this.cbs).oncomment) === null || S === void 0 || S.call(B, "[CDATA[".concat(P, "]]")), (x = (A = this.cbs).oncommentend) === null || x === void 0 || x.call(A)), this.startIndex = y + 1;
14200
14200
  }, b.prototype.onend = function() {
14201
14201
  var g, y;
14202
14202
  if (this.cbs.onclosetag) {
@@ -14270,7 +14270,7 @@ function vl() {
14270
14270
  return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(D, $) {
14271
14271
  D.__proto__ = $;
14272
14272
  } || function(D, $) {
14273
- for (var P in $) Object.prototype.hasOwnProperty.call($, P) && (D[P] = $[P]);
14273
+ for (var B in $) Object.prototype.hasOwnProperty.call($, B) && (D[B] = $[B]);
14274
14274
  }, k(_, C);
14275
14275
  };
14276
14276
  return function(_, C) {
@@ -14504,10 +14504,10 @@ function vl() {
14504
14504
  /** @class */
14505
14505
  function(k) {
14506
14506
  t(_, k);
14507
- function _(C, D, $, P) {
14508
- $ === void 0 && ($ = []), P === void 0 && (P = C === "script" ? n.ElementType.Script : C === "style" ? n.ElementType.Style : n.ElementType.Tag);
14507
+ function _(C, D, $, B) {
14508
+ $ === void 0 && ($ = []), B === void 0 && (B = C === "script" ? n.ElementType.Script : C === "style" ? n.ElementType.Style : n.ElementType.Tag);
14509
14509
  var S = k.call(this, $) || this;
14510
- return S.name = C, S.attribs = D, S.type = P, S;
14510
+ return S.name = C, S.attribs = D, S.type = B, S;
14511
14511
  }
14512
14512
  return Object.defineProperty(_.prototype, "nodeType", {
14513
14513
  get: function() {
@@ -14533,12 +14533,12 @@ function vl() {
14533
14533
  get: function() {
14534
14534
  var C = this;
14535
14535
  return Object.keys(this.attribs).map(function(D) {
14536
- var $, P;
14536
+ var $, B;
14537
14537
  return {
14538
14538
  name: D,
14539
14539
  value: C.attribs[D],
14540
14540
  namespace: ($ = C["x-attribsNamespace"]) === null || $ === void 0 ? void 0 : $[D],
14541
- prefix: (P = C["x-attribsPrefix"]) === null || P === void 0 ? void 0 : P[D]
14541
+ prefix: (B = C["x-attribsPrefix"]) === null || B === void 0 ? void 0 : B[D]
14542
14542
  };
14543
14543
  });
14544
14544
  },
@@ -14589,14 +14589,14 @@ function vl() {
14589
14589
  return x.parent = $;
14590
14590
  }), k.namespace != null && ($.namespace = k.namespace), k["x-attribsNamespace"] && ($["x-attribsNamespace"] = e({}, k["x-attribsNamespace"])), k["x-attribsPrefix"] && ($["x-attribsPrefix"] = e({}, k["x-attribsPrefix"])), C = $;
14591
14591
  } else if (d(k)) {
14592
- var D = _ ? T(k.children) : [], P = new c(D);
14593
- D.forEach(function(B) {
14594
- return B.parent = P;
14595
- }), C = P;
14592
+ var D = _ ? T(k.children) : [], B = new c(D);
14593
+ D.forEach(function(P) {
14594
+ return P.parent = B;
14595
+ }), C = B;
14596
14596
  } else if (g(k)) {
14597
14597
  var D = _ ? T(k.children) : [], S = new f(D);
14598
- D.forEach(function(B) {
14599
- return B.parent = S;
14598
+ D.forEach(function(P) {
14599
+ return P.parent = S;
14600
14600
  }), k["x-mode"] && (S["x-mode"] = k["x-mode"]), C = S;
14601
14601
  } else if (b(k)) {
14602
14602
  var A = new s(k.name, k.data);
@@ -15035,8 +15035,8 @@ function cD() {
15035
15035
  if (T) {
15036
15036
  var C = ((_ = k.encodeEntities) !== null && _ !== void 0 ? _ : k.decodeEntities) === !1 ? u : k.xmlMode || k.encodeEntities !== "utf8" ? a.encodeXML : a.escapeAttribute;
15037
15037
  return Object.keys(T).map(function(D) {
15038
- var $, P, S = ($ = T[D]) !== null && $ !== void 0 ? $ : "";
15039
- return k.xmlMode === "foreign" && (D = (P = o.attributeNames.get(D)) !== null && P !== void 0 ? P : D), !k.emptyAttrs && !k.xmlMode && S === "" ? D : "".concat(D, '="').concat(C(S), '"');
15038
+ var $, B, S = ($ = T[D]) !== null && $ !== void 0 ? $ : "";
15039
+ return k.xmlMode === "foreign" && (D = (B = o.attributeNames.get(D)) !== null && B !== void 0 ? B : D), !k.emptyAttrs && !k.xmlMode && S === "" ? D : "".concat(D, '="').concat(C(S), '"');
15040
15040
  }).join(" ");
15041
15041
  }
15042
15042
  }
@@ -15790,10 +15790,10 @@ function TD() {
15790
15790
  }
15791
15791
  }
15792
15792
  function E() {
15793
- var T = !1, k, _, C, D, $ = {}, P, S, A, x, B;
15793
+ var T = !1, k, _, C, D, $ = {}, B, S, A, x, P;
15794
15794
  for (D = 0; D < l.length; D++)
15795
- P = l[D], S = P[P.length - 1], A = P.substring(0, P.length - 1), x = parseInt(A, 10), B = parseFloat(A), c.test(A) && S === "w" ? ((k || _) && (T = !0), x === 0 ? T = !0 : k = x) : f.test(A) && S === "x" ? ((k || _ || C) && (T = !0), B < 0 ? T = !0 : _ = B) : c.test(A) && S === "h" ? ((C || _) && (T = !0), x === 0 ? T = !0 : C = x) : T = !0;
15796
- T ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + P + "'.") : ($.url = h, k && ($.w = k), _ && ($.d = _), C && ($.h = C), g.push($));
15795
+ B = l[D], S = B[B.length - 1], A = B.substring(0, B.length - 1), x = parseInt(A, 10), P = parseFloat(A), c.test(A) && S === "w" ? ((k || _) && (T = !0), x === 0 ? T = !0 : k = x) : f.test(A) && S === "x" ? ((k || _ || C) && (T = !0), P < 0 ? T = !0 : _ = P) : c.test(A) && S === "h" ? ((C || _) && (T = !0), x === 0 ? T = !0 : C = x) : T = !0;
15796
+ T ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + B + "'.") : ($.url = h, k && ($.w = k), _ && ($.d = _), C && ($.h = C), g.push($));
15797
15797
  }
15798
15798
  };
15799
15799
  });
@@ -17102,21 +17102,21 @@ function xD() {
17102
17102
  oc = 1;
17103
17103
  const t = 39, e = 34, n = 92, i = 47, r = 10, a = 32, o = 12, s = 9, u = 13, c = 91, f = 93, h = 40, l = 41, d = 123, p = 125, m = 59, b = 42, g = 58, y = 64, E = /[\t\n\f\r "#'()/;[\\\]{}]/g, T = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, k = /.[\r\n"'(/\\]/, _ = /[\da-f]/i;
17104
17104
  return ka = function(D, $ = {}) {
17105
- let P = D.css.valueOf(), S = $.ignoreErrors, A, x, B, w, R, O, F, j, H, V, J = P.length, q = 0, ae = [], ne = [];
17105
+ let B = D.css.valueOf(), S = $.ignoreErrors, A, x, P, w, I, O, F, j, H, V, J = B.length, q = 0, ae = [], ne = [];
17106
17106
  function we() {
17107
17107
  return q;
17108
17108
  }
17109
- function $e(I) {
17110
- throw D.error("Unclosed " + I, q);
17109
+ function $e(R) {
17110
+ throw D.error("Unclosed " + R, q);
17111
17111
  }
17112
17112
  function Be() {
17113
17113
  return ne.length === 0 && q >= J;
17114
17114
  }
17115
- function ve(I) {
17115
+ function ve(R) {
17116
17116
  if (ne.length) return ne.pop();
17117
17117
  if (q >= J) return;
17118
- let N = I ? I.ignoreUnclosed : !1;
17119
- switch (A = P.charCodeAt(q), A) {
17118
+ let N = R ? R.ignoreUnclosed : !1;
17119
+ switch (A = B.charCodeAt(q), A) {
17120
17120
  case r:
17121
17121
  case a:
17122
17122
  case s:
@@ -17124,9 +17124,9 @@ function xD() {
17124
17124
  case o: {
17125
17125
  w = q;
17126
17126
  do
17127
- w += 1, A = P.charCodeAt(w);
17127
+ w += 1, A = B.charCodeAt(w);
17128
17128
  while (A === a || A === r || A === s || A === u || A === o);
17129
- O = ["space", P.slice(q, w)], q = w - 1;
17129
+ O = ["space", B.slice(q, w)], q = w - 1;
17130
17130
  break;
17131
17131
  }
17132
17132
  case c:
@@ -17141,63 +17141,63 @@ function xD() {
17141
17141
  break;
17142
17142
  }
17143
17143
  case h: {
17144
- if (V = ae.length ? ae.pop()[1] : "", H = P.charCodeAt(q + 1), V === "url" && H !== t && H !== e && H !== a && H !== r && H !== s && H !== o && H !== u) {
17144
+ if (V = ae.length ? ae.pop()[1] : "", H = B.charCodeAt(q + 1), V === "url" && H !== t && H !== e && H !== a && H !== r && H !== s && H !== o && H !== u) {
17145
17145
  w = q;
17146
17146
  do {
17147
- if (F = !1, w = P.indexOf(")", w + 1), w === -1)
17147
+ if (F = !1, w = B.indexOf(")", w + 1), w === -1)
17148
17148
  if (S || N) {
17149
17149
  w = q;
17150
17150
  break;
17151
17151
  } else
17152
17152
  $e("bracket");
17153
- for (j = w; P.charCodeAt(j - 1) === n; )
17153
+ for (j = w; B.charCodeAt(j - 1) === n; )
17154
17154
  j -= 1, F = !F;
17155
17155
  } while (F);
17156
- O = ["brackets", P.slice(q, w + 1), q, w], q = w;
17156
+ O = ["brackets", B.slice(q, w + 1), q, w], q = w;
17157
17157
  } else
17158
- w = P.indexOf(")", q + 1), x = P.slice(q, w + 1), w === -1 || k.test(x) ? O = ["(", "(", q] : (O = ["brackets", x, q, w], q = w);
17158
+ w = B.indexOf(")", q + 1), x = B.slice(q, w + 1), w === -1 || k.test(x) ? O = ["(", "(", q] : (O = ["brackets", x, q, w], q = w);
17159
17159
  break;
17160
17160
  }
17161
17161
  case t:
17162
17162
  case e: {
17163
- R = A === t ? "'" : '"', w = q;
17163
+ I = A === t ? "'" : '"', w = q;
17164
17164
  do {
17165
- if (F = !1, w = P.indexOf(R, w + 1), w === -1)
17165
+ if (F = !1, w = B.indexOf(I, w + 1), w === -1)
17166
17166
  if (S || N) {
17167
17167
  w = q + 1;
17168
17168
  break;
17169
17169
  } else
17170
17170
  $e("string");
17171
- for (j = w; P.charCodeAt(j - 1) === n; )
17171
+ for (j = w; B.charCodeAt(j - 1) === n; )
17172
17172
  j -= 1, F = !F;
17173
17173
  } while (F);
17174
- O = ["string", P.slice(q, w + 1), q, w], q = w;
17174
+ O = ["string", B.slice(q, w + 1), q, w], q = w;
17175
17175
  break;
17176
17176
  }
17177
17177
  case y: {
17178
- E.lastIndex = q + 1, E.test(P), E.lastIndex === 0 ? w = P.length - 1 : w = E.lastIndex - 2, O = ["at-word", P.slice(q, w + 1), q, w], q = w;
17178
+ E.lastIndex = q + 1, E.test(B), E.lastIndex === 0 ? w = B.length - 1 : w = E.lastIndex - 2, O = ["at-word", B.slice(q, w + 1), q, w], q = w;
17179
17179
  break;
17180
17180
  }
17181
17181
  case n: {
17182
- for (w = q, B = !0; P.charCodeAt(w + 1) === n; )
17183
- w += 1, B = !B;
17184
- if (A = P.charCodeAt(w + 1), B && A !== i && A !== a && A !== r && A !== s && A !== u && A !== o && (w += 1, _.test(P.charAt(w)))) {
17185
- for (; _.test(P.charAt(w + 1)); )
17182
+ for (w = q, P = !0; B.charCodeAt(w + 1) === n; )
17183
+ w += 1, P = !P;
17184
+ if (A = B.charCodeAt(w + 1), P && A !== i && A !== a && A !== r && A !== s && A !== u && A !== o && (w += 1, _.test(B.charAt(w)))) {
17185
+ for (; _.test(B.charAt(w + 1)); )
17186
17186
  w += 1;
17187
- P.charCodeAt(w + 1) === a && (w += 1);
17187
+ B.charCodeAt(w + 1) === a && (w += 1);
17188
17188
  }
17189
- O = ["word", P.slice(q, w + 1), q, w], q = w;
17189
+ O = ["word", B.slice(q, w + 1), q, w], q = w;
17190
17190
  break;
17191
17191
  }
17192
17192
  default: {
17193
- A === i && P.charCodeAt(q + 1) === b ? (w = P.indexOf("*/", q + 2) + 1, w === 0 && (S || N ? w = P.length : $e("comment")), O = ["comment", P.slice(q, w + 1), q, w], q = w) : (T.lastIndex = q + 1, T.test(P), T.lastIndex === 0 ? w = P.length - 1 : w = T.lastIndex - 2, O = ["word", P.slice(q, w + 1), q, w], ae.push(O), q = w);
17193
+ A === i && B.charCodeAt(q + 1) === b ? (w = B.indexOf("*/", q + 2) + 1, w === 0 && (S || N ? w = B.length : $e("comment")), O = ["comment", B.slice(q, w + 1), q, w], q = w) : (T.lastIndex = q + 1, T.test(B), T.lastIndex === 0 ? w = B.length - 1 : w = T.lastIndex - 2, O = ["word", B.slice(q, w + 1), q, w], ae.push(O), q = w);
17194
17194
  break;
17195
17195
  }
17196
17196
  }
17197
17197
  return q++, O;
17198
17198
  }
17199
- function Se(I) {
17200
- ne.push(I);
17199
+ function Se(R) {
17200
+ ne.push(R);
17201
17201
  }
17202
17202
  return {
17203
17203
  back: Se,
@@ -17857,19 +17857,19 @@ function Qx() {
17857
17857
  return;
17858
17858
  }
17859
17859
  if (C.length > 0 && k.visitorIndex < C.length) {
17860
- let [$, P] = C[k.visitorIndex];
17860
+ let [$, B] = C[k.visitorIndex];
17861
17861
  k.visitorIndex += 1, k.visitorIndex === C.length && (k.visitors = [], k.visitorIndex = 0), this.result.lastPlugin = $;
17862
17862
  try {
17863
- return P(_.toProxy(), this.helpers);
17863
+ return B(_.toProxy(), this.helpers);
17864
17864
  } catch (S) {
17865
17865
  throw this.handleError(S, _);
17866
17866
  }
17867
17867
  }
17868
17868
  if (k.iterator !== 0) {
17869
- let $ = k.iterator, P;
17870
- for (; P = _.nodes[_.indexes[$]]; )
17871
- if (_.indexes[$] += 1, !P[s]) {
17872
- P[s] = !0, T.push(m(P));
17869
+ let $ = k.iterator, B;
17870
+ for (; B = _.nodes[_.indexes[$]]; )
17871
+ if (_.indexes[$] += 1, !B[s]) {
17872
+ B[s] = !0, T.push(m(B));
17873
17873
  return;
17874
17874
  }
17875
17875
  k.iterator = 0, delete _.indexes[$];
@@ -18041,16 +18041,16 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`
18041
18041
  T + `: 里面 postcss.plugin 被弃用. 迁移指南:
18042
18042
  https://www.w3ctech.com/topic/2226`
18043
18043
  ));
18044
- let P = k(...$);
18045
- return P.postcssPlugin = T, P.postcssVersion = new l().version, P;
18044
+ let B = k(...$);
18045
+ return B.postcssPlugin = T, B.postcssVersion = new l().version, B;
18046
18046
  }
18047
18047
  let D;
18048
18048
  return Object.defineProperty(C, "postcss", {
18049
18049
  get() {
18050
18050
  return D || (D = C()), D;
18051
18051
  }
18052
- }), C.process = function($, P, S) {
18053
- return y([C(S)]).process($, P);
18052
+ }), C.process = function($, B, S) {
18053
+ return y([C(S)]).process($, B);
18054
18054
  }, C;
18055
18055
  }, y.stringify = b, y.parse = h, y.fromJSON = o, y.list = c, y.comment = (E) => new e(E), y.atRule = (E) => new t(E), y.decl = (E) => new r(E), y.rule = (E) => new m(E), y.root = (E) => new p(E), y.document = (E) => new a(E), y.CssSyntaxError = i, y.Declaration = r, y.Container = n, y.Processor = l, y.Document = a, y.Comment = e, y.Warning = g, y.AtRule = t, y.Result = d, y.Input = s, y.Rule = m, y.Root = p, y.Node = f, u.registerPostcss(y), Aa = y, y.default = y, Aa;
18056
18056
  }
@@ -18103,25 +18103,25 @@ function DD() {
18103
18103
  return "";
18104
18104
  typeof b == "number" && (b = b.toString());
18105
18105
  let E = "", T = "";
18106
- function k(I, N) {
18106
+ function k(R, N) {
18107
18107
  const z = this;
18108
- this.tag = I, this.attribs = N || {}, this.tagPosition = E.length, this.text = "", this.mediaChildren = [], this.updateParentNodeText = function() {
18109
- if (R.length) {
18110
- const Y = R[R.length - 1];
18108
+ this.tag = R, this.attribs = N || {}, this.tagPosition = E.length, this.text = "", this.mediaChildren = [], this.updateParentNodeText = function() {
18109
+ if (I.length) {
18110
+ const Y = I[I.length - 1];
18111
18111
  Y.text += z.text;
18112
18112
  }
18113
18113
  }, this.updateParentNodeMediaChildren = function() {
18114
- R.length && o.includes(this.tag) && R[R.length - 1].mediaChildren.push(this.tag);
18114
+ I.length && o.includes(this.tag) && I[I.length - 1].mediaChildren.push(this.tag);
18115
18115
  };
18116
18116
  }
18117
18117
  g = Object.assign({}, p.defaults, g), g.parser = Object.assign({}, m, g.parser);
18118
- const _ = function(I) {
18119
- return g.allowedTags === !1 || (g.allowedTags || []).indexOf(I) > -1;
18118
+ const _ = function(R) {
18119
+ return g.allowedTags === !1 || (g.allowedTags || []).indexOf(R) > -1;
18120
18120
  };
18121
- s.forEach(function(I) {
18122
- _(I) && !g.allowVulnerableTags && console.warn(`
18121
+ s.forEach(function(R) {
18122
+ _(R) && !g.allowVulnerableTags && console.warn(`
18123
18123
 
18124
- ⚠️ Your \`allowedTags\` option includes, \`${I}\`, which is inherently
18124
+ ⚠️ Your \`allowedTags\` option includes, \`${R}\`, which is inherently
18125
18125
  vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
18126
18126
  Or, to disable this warning, add the \`allowVulnerableTags\` option
18127
18127
  and ensure you are accounting for this risk.
@@ -18135,47 +18135,47 @@ and ensure you are accounting for this risk.
18135
18135
  "option"
18136
18136
  ];
18137
18137
  let D, $;
18138
- g.allowedAttributes && (D = {}, $ = {}, u(g.allowedAttributes, function(I, N) {
18138
+ g.allowedAttributes && (D = {}, $ = {}, u(g.allowedAttributes, function(R, N) {
18139
18139
  D[N] = [];
18140
18140
  const z = [];
18141
- I.forEach(function(Y) {
18141
+ R.forEach(function(Y) {
18142
18142
  typeof Y == "string" && Y.indexOf("*") >= 0 ? z.push(e(Y).replace(/\\\*/g, ".*")) : D[N].push(Y);
18143
18143
  }), z.length && ($[N] = new RegExp("^(" + z.join("|") + ")$"));
18144
18144
  }));
18145
- const P = {}, S = {}, A = {};
18146
- u(g.allowedClasses, function(I, N) {
18147
- if (D && (c(D, N) || (D[N] = []), D[N].push("class")), P[N] = I, Array.isArray(I)) {
18145
+ const B = {}, S = {}, A = {};
18146
+ u(g.allowedClasses, function(R, N) {
18147
+ if (D && (c(D, N) || (D[N] = []), D[N].push("class")), B[N] = R, Array.isArray(R)) {
18148
18148
  const z = [];
18149
- P[N] = [], A[N] = [], I.forEach(function(Y) {
18150
- typeof Y == "string" && Y.indexOf("*") >= 0 ? z.push(e(Y).replace(/\\\*/g, ".*")) : Y instanceof RegExp ? A[N].push(Y) : P[N].push(Y);
18149
+ B[N] = [], A[N] = [], R.forEach(function(Y) {
18150
+ typeof Y == "string" && Y.indexOf("*") >= 0 ? z.push(e(Y).replace(/\\\*/g, ".*")) : Y instanceof RegExp ? A[N].push(Y) : B[N].push(Y);
18151
18151
  }), z.length && (S[N] = new RegExp("^(" + z.join("|") + ")$"));
18152
18152
  }
18153
18153
  });
18154
18154
  const x = {};
18155
- let B;
18156
- u(g.transformTags, function(I, N) {
18155
+ let P;
18156
+ u(g.transformTags, function(R, N) {
18157
18157
  let z;
18158
- typeof I == "function" ? z = I : typeof I == "string" && (z = p.simpleTransform(I)), N === "*" ? B = z : x[N] = z;
18158
+ typeof R == "function" ? z = R : typeof R == "string" && (z = p.simpleTransform(R)), N === "*" ? P = z : x[N] = z;
18159
18159
  });
18160
- let w, R, O, F, j, H, V = !1;
18160
+ let w, I, O, F, j, H, V = !1;
18161
18161
  q();
18162
18162
  const J = new t.Parser({
18163
- onopentag: function(I, N) {
18164
- if (g.enforceHtmlBoundary && I === "html" && q(), j) {
18163
+ onopentag: function(R, N) {
18164
+ if (g.enforceHtmlBoundary && R === "html" && q(), j) {
18165
18165
  H++;
18166
18166
  return;
18167
18167
  }
18168
- const z = new k(I, N);
18169
- R.push(z);
18168
+ const z = new k(R, N);
18169
+ I.push(z);
18170
18170
  let Y = !1;
18171
18171
  const le = !!z.text;
18172
18172
  let ie;
18173
- if (c(x, I) && (ie = x[I](I, N), z.attribs = N = ie.attribs, ie.text !== void 0 && (z.innerText = ie.text), I !== ie.tagName && (z.name = I = ie.tagName, F[w] = ie.tagName)), B && (ie = B(I, N), z.attribs = N = ie.attribs, I !== ie.tagName && (z.name = I = ie.tagName, F[w] = ie.tagName)), (!_(I) || g.disallowedTagsMode === "recursiveEscape" && !h(O) || g.nestingLimit != null && w >= g.nestingLimit) && (Y = !0, O[w] = !0, (g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard") && C.indexOf(I) !== -1 && (j = !0, H = 1), O[w] = !0), w++, Y) {
18173
+ if (c(x, R) && (ie = x[R](R, N), z.attribs = N = ie.attribs, ie.text !== void 0 && (z.innerText = ie.text), R !== ie.tagName && (z.name = R = ie.tagName, F[w] = ie.tagName)), P && (ie = P(R, N), z.attribs = N = ie.attribs, R !== ie.tagName && (z.name = R = ie.tagName, F[w] = ie.tagName)), (!_(R) || g.disallowedTagsMode === "recursiveEscape" && !h(O) || g.nestingLimit != null && w >= g.nestingLimit) && (Y = !0, O[w] = !0, (g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard") && C.indexOf(R) !== -1 && (j = !0, H = 1), O[w] = !0), w++, Y) {
18174
18174
  if (g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard")
18175
18175
  return;
18176
18176
  T = E, E = "";
18177
18177
  }
18178
- E += "<" + I, I === "script" && (g.allowedScriptHostnames || g.allowedScriptDomains) && (z.innerText = ""), (!D || c(D, I) || D["*"]) && u(N, function(he, te) {
18178
+ E += "<" + R, R === "script" && (g.allowedScriptHostnames || g.allowedScriptDomains) && (z.innerText = ""), (!D || c(D, R) || D["*"]) && u(N, function(he, te) {
18179
18179
  if (!d.test(te)) {
18180
18180
  delete z.attribs[te];
18181
18181
  return;
@@ -18185,10 +18185,10 @@ and ensure you are accounting for this risk.
18185
18185
  return;
18186
18186
  }
18187
18187
  let Pn = !1;
18188
- if (!D || c(D, I) && D[I].indexOf(te) !== -1 || D["*"] && D["*"].indexOf(te) !== -1 || c($, I) && $[I].test(te) || $["*"] && $["*"].test(te))
18188
+ if (!D || c(D, R) && D[R].indexOf(te) !== -1 || D["*"] && D["*"].indexOf(te) !== -1 || c($, R) && $[R].test(te) || $["*"] && $["*"].test(te))
18189
18189
  Pn = !0;
18190
- else if (D && D[I]) {
18191
- for (const ue of D[I])
18190
+ else if (D && D[R]) {
18191
+ for (const ue of D[R])
18192
18192
  if (n(ue) && ue.name && ue.name === te) {
18193
18193
  Pn = !0;
18194
18194
  let de = "";
@@ -18201,11 +18201,11 @@ and ensure you are accounting for this risk.
18201
18201
  }
18202
18202
  }
18203
18203
  if (Pn) {
18204
- if (g.allowedSchemesAppliedToAttributes.indexOf(te) !== -1 && ne(I, he)) {
18204
+ if (g.allowedSchemesAppliedToAttributes.indexOf(te) !== -1 && ne(R, he)) {
18205
18205
  delete z.attribs[te];
18206
18206
  return;
18207
18207
  }
18208
- if (I === "script" && te === "src") {
18208
+ if (R === "script" && te === "src") {
18209
18209
  let ue = !0;
18210
18210
  try {
18211
18211
  const de = we(he);
@@ -18225,7 +18225,7 @@ and ensure you are accounting for this risk.
18225
18225
  return;
18226
18226
  }
18227
18227
  }
18228
- if (I === "iframe" && te === "src") {
18228
+ if (R === "iframe" && te === "src") {
18229
18229
  let ue = !0;
18230
18230
  try {
18231
18231
  const de = we(he);
@@ -18267,7 +18267,7 @@ and ensure you are accounting for this risk.
18267
18267
  return;
18268
18268
  }
18269
18269
  if (te === "class") {
18270
- const ue = P[I], de = P["*"], jt = S[I], gt = A[I], Qe = S["*"], Ts = [
18270
+ const ue = B[R], de = B["*"], jt = S[R], gt = A[R], Qe = S["*"], Ts = [
18271
18271
  jt,
18272
18272
  Qe
18273
18273
  ].concat(gt).filter(function(y$) {
@@ -18281,13 +18281,13 @@ and ensure you are accounting for this risk.
18281
18281
  if (te === "style") {
18282
18282
  if (g.parseStyleAttributes)
18283
18283
  try {
18284
- const ue = a(I + " {" + he + "}", { map: !1 }), de = $e(ue, g.allowedStyles);
18284
+ const ue = a(R + " {" + he + "}", { map: !1 }), de = $e(ue, g.allowedStyles);
18285
18285
  if (he = Be(de), he.length === 0) {
18286
18286
  delete z.attribs[te];
18287
18287
  return;
18288
18288
  }
18289
18289
  } catch {
18290
- typeof window < "u" && console.warn('Failed to parse "' + I + " {" + he + `}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`), delete z.attribs[te];
18290
+ typeof window < "u" && console.warn('Failed to parse "' + R + " {" + he + `}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`), delete z.attribs[te];
18291
18291
  return;
18292
18292
  }
18293
18293
  else if (g.allowedStyles)
@@ -18296,40 +18296,40 @@ and ensure you are accounting for this risk.
18296
18296
  E += " " + te, he && he.length ? E += '="' + ae(he, !0) + '"' : g.allowedEmptyAttributes.includes(te) && (E += '=""');
18297
18297
  } else
18298
18298
  delete z.attribs[te];
18299
- }), g.selfClosing.indexOf(I) !== -1 ? E += " />" : (E += ">", z.innerText && !le && !g.textFilter && (E += ae(z.innerText), V = !0)), Y && (E = T + ae(E), T = "");
18299
+ }), g.selfClosing.indexOf(R) !== -1 ? E += " />" : (E += ">", z.innerText && !le && !g.textFilter && (E += ae(z.innerText), V = !0)), Y && (E = T + ae(E), T = "");
18300
18300
  },
18301
- ontext: function(I) {
18301
+ ontext: function(R) {
18302
18302
  if (j)
18303
18303
  return;
18304
- const N = R[R.length - 1];
18304
+ const N = I[I.length - 1];
18305
18305
  let z;
18306
- if (N && (z = N.tag, I = N.innerText !== void 0 ? N.innerText : I), g.disallowedTagsMode === "completelyDiscard" && !_(z))
18307
- I = "";
18306
+ if (N && (z = N.tag, R = N.innerText !== void 0 ? N.innerText : R), g.disallowedTagsMode === "completelyDiscard" && !_(z))
18307
+ R = "";
18308
18308
  else if ((g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard") && (z === "script" || z === "style"))
18309
- E += I;
18309
+ E += R;
18310
18310
  else {
18311
- const Y = ae(I, !1);
18311
+ const Y = ae(R, !1);
18312
18312
  g.textFilter && !V ? E += g.textFilter(Y, z) : V || (E += Y);
18313
18313
  }
18314
- if (R.length) {
18315
- const Y = R[R.length - 1];
18316
- Y.text += I;
18314
+ if (I.length) {
18315
+ const Y = I[I.length - 1];
18316
+ Y.text += R;
18317
18317
  }
18318
18318
  },
18319
- onclosetag: function(I, N) {
18319
+ onclosetag: function(R, N) {
18320
18320
  if (j)
18321
18321
  if (H--, !H)
18322
18322
  j = !1;
18323
18323
  else
18324
18324
  return;
18325
- const z = R.pop();
18325
+ const z = I.pop();
18326
18326
  if (!z)
18327
18327
  return;
18328
- if (z.tag !== I) {
18329
- R.push(z);
18328
+ if (z.tag !== R) {
18329
+ I.push(z);
18330
18330
  return;
18331
18331
  }
18332
- j = g.enforceHtmlBoundary ? I === "html" : !1, w--;
18332
+ j = g.enforceHtmlBoundary ? R === "html" : !1, w--;
18333
18333
  const Y = O[w];
18334
18334
  if (Y) {
18335
18335
  if (delete O[w], g.disallowedTagsMode === "discard" || g.disallowedTagsMode === "completelyDiscard") {
@@ -18338,27 +18338,27 @@ and ensure you are accounting for this risk.
18338
18338
  }
18339
18339
  T = E, E = "";
18340
18340
  }
18341
- if (F[w] && (I = F[w], delete F[w]), g.exclusiveFilter && g.exclusiveFilter(z)) {
18341
+ if (F[w] && (R = F[w], delete F[w]), g.exclusiveFilter && g.exclusiveFilter(z)) {
18342
18342
  E = E.substr(0, z.tagPosition);
18343
18343
  return;
18344
18344
  }
18345
18345
  if (z.updateParentNodeMediaChildren(), z.updateParentNodeText(), // Already output />
18346
- g.selfClosing.indexOf(I) !== -1 || // Escaped tag, closing tag is implied
18347
- N && !_(I) && ["escape", "recursiveEscape"].indexOf(g.disallowedTagsMode) >= 0) {
18346
+ g.selfClosing.indexOf(R) !== -1 || // Escaped tag, closing tag is implied
18347
+ N && !_(R) && ["escape", "recursiveEscape"].indexOf(g.disallowedTagsMode) >= 0) {
18348
18348
  Y && (E = T, T = "");
18349
18349
  return;
18350
18350
  }
18351
- E += "</" + I + ">", Y && (E = T + ae(E), T = ""), V = !1;
18351
+ E += "</" + R + ">", Y && (E = T + ae(E), T = ""), V = !1;
18352
18352
  }
18353
18353
  }, g.parser);
18354
18354
  return J.write(b), J.end(), E;
18355
18355
  function q() {
18356
- E = "", w = 0, R = [], O = {}, F = {}, j = !1, H = 0;
18356
+ E = "", w = 0, I = [], O = {}, F = {}, j = !1, H = 0;
18357
18357
  }
18358
- function ae(I, N) {
18359
- return typeof I != "string" && (I = I + ""), g.parser.decodeEntities && (I = I.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), N && (I = I.replace(/"/g, "&quot;"))), I = I.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), N && (I = I.replace(/"/g, "&quot;")), I;
18358
+ function ae(R, N) {
18359
+ return typeof R != "string" && (R = R + ""), g.parser.decodeEntities && (R = R.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), N && (R = R.replace(/"/g, "&quot;"))), R = R.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), N && (R = R.replace(/"/g, "&quot;")), R;
18360
18360
  }
18361
- function ne(I, N) {
18361
+ function ne(R, N) {
18362
18362
  for (N = N.replace(/[\x00-\x20]+/g, ""); ; ) {
18363
18363
  const le = N.indexOf("<!--");
18364
18364
  if (le === -1)
@@ -18372,50 +18372,50 @@ and ensure you are accounting for this risk.
18372
18372
  if (!z)
18373
18373
  return N.match(/^[/\\]{2}/) ? !g.allowProtocolRelative : !1;
18374
18374
  const Y = z[1].toLowerCase();
18375
- return c(g.allowedSchemesByTag, I) ? g.allowedSchemesByTag[I].indexOf(Y) === -1 : !g.allowedSchemes || g.allowedSchemes.indexOf(Y) === -1;
18375
+ return c(g.allowedSchemesByTag, R) ? g.allowedSchemesByTag[R].indexOf(Y) === -1 : !g.allowedSchemes || g.allowedSchemes.indexOf(Y) === -1;
18376
18376
  }
18377
- function we(I) {
18378
- if (I = I.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), I.startsWith("relative:"))
18377
+ function we(R) {
18378
+ if (R = R.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), R.startsWith("relative:"))
18379
18379
  throw new Error("relative: exploit attempt");
18380
18380
  let N = "relative://relative-site";
18381
18381
  for (let le = 0; le < 100; le++)
18382
18382
  N += `/${le}`;
18383
- const z = new URL(I, N);
18383
+ const z = new URL(R, N);
18384
18384
  return {
18385
18385
  isRelativeUrl: z && z.hostname === "relative-site" && z.protocol === "relative:",
18386
18386
  url: z
18387
18387
  };
18388
18388
  }
18389
- function $e(I, N) {
18389
+ function $e(R, N) {
18390
18390
  if (!N)
18391
- return I;
18392
- const z = I.nodes[0];
18391
+ return R;
18392
+ const z = R.nodes[0];
18393
18393
  let Y;
18394
18394
  return N[z.selector] && N["*"] ? Y = i(
18395
18395
  N[z.selector],
18396
18396
  N["*"]
18397
- ) : Y = N[z.selector] || N["*"], Y && (I.nodes[0].nodes = z.nodes.reduce(ve(Y), [])), I;
18397
+ ) : Y = N[z.selector] || N["*"], Y && (R.nodes[0].nodes = z.nodes.reduce(ve(Y), [])), R;
18398
18398
  }
18399
- function Be(I) {
18400
- return I.nodes[0].nodes.reduce(function(N, z) {
18399
+ function Be(R) {
18400
+ return R.nodes[0].nodes.reduce(function(N, z) {
18401
18401
  return N.push(
18402
18402
  `${z.prop}:${z.value}${z.important ? " !important" : ""}`
18403
18403
  ), N;
18404
18404
  }, []).join(";");
18405
18405
  }
18406
- function ve(I) {
18406
+ function ve(R) {
18407
18407
  return function(N, z) {
18408
- return c(I, z.prop) && I[z.prop].some(function(le) {
18408
+ return c(R, z.prop) && R[z.prop].some(function(le) {
18409
18409
  return le.test(z.value);
18410
18410
  }) && N.push(z), N;
18411
18411
  };
18412
18412
  }
18413
- function Se(I, N, z) {
18414
- return N ? (I = I.split(/\s+/), I.filter(function(Y) {
18413
+ function Se(R, N, z) {
18414
+ return N ? (R = R.split(/\s+/), R.filter(function(Y) {
18415
18415
  return N.indexOf(Y) !== -1 || z.some(function(le) {
18416
18416
  return le.test(Y);
18417
18417
  });
18418
- }).join(" ")) : I;
18418
+ }).join(" ")) : R;
18419
18419
  }
18420
18420
  }
18421
18421
  const m = {
@@ -18852,10 +18852,10 @@ function ND() {
18852
18852
  var m = p && d, b = p || d || s, g = c(+o(), b);
18853
18853
  if (typeof l != "string") return o(l).tz(b);
18854
18854
  var y = function(_, C, D) {
18855
- var $ = _ - 60 * C * 1e3, P = c($, D);
18856
- if (C === P) return [$, C];
18857
- var S = c($ -= 60 * (P - C) * 1e3, D);
18858
- return P === S ? [$, P] : [_ - 60 * Math.min(P, S) * 1e3, Math.max(P, S)];
18855
+ var $ = _ - 60 * C * 1e3, B = c($, D);
18856
+ if (C === B) return [$, C];
18857
+ var S = c($ -= 60 * (B - C) * 1e3, D);
18858
+ return B === S ? [$, B] : [_ - 60 * Math.min(B, S) * 1e3, Math.max(B, S)];
18859
18859
  }(o.utc(l, m).valueOf(), g, b), E = y[0], T = y[1], k = o(E).utcOffset(T);
18860
18860
  return k.$x.$timezone = b, k;
18861
18861
  }, o.tz.guess = function() {
@@ -23680,13 +23680,13 @@ const JR = ({
23680
23680
  emailPlaceholder: C = BR,
23681
23681
  formTitle: D = $R,
23682
23682
  isRequiredLabel: $ = RR,
23683
- messageLabel: P = MR,
23683
+ messageLabel: B = MR,
23684
23684
  messagePlaceholder: S = DR,
23685
23685
  nameLabel: A = OR,
23686
23686
  namePlaceholder: x = LR,
23687
- removeScreenshotButtonLabel: B = FR,
23687
+ removeScreenshotButtonLabel: P = FR,
23688
23688
  submitButtonLabel: w = xR,
23689
- successMessageText: R = IR,
23689
+ successMessageText: I = IR,
23690
23690
  triggerLabel: O = OA,
23691
23691
  triggerAriaLabel: F = "",
23692
23692
  // FeedbackCallbacks
@@ -23720,14 +23720,14 @@ const JR = ({
23720
23720
  formTitle: D,
23721
23721
  emailLabel: _,
23722
23722
  emailPlaceholder: C,
23723
- messageLabel: P,
23723
+ messageLabel: B,
23724
23724
  messagePlaceholder: S,
23725
23725
  nameLabel: A,
23726
23726
  namePlaceholder: x,
23727
- successMessageText: R,
23727
+ successMessageText: I,
23728
23728
  isRequiredLabel: $,
23729
23729
  addScreenshotButtonLabel: E,
23730
- removeScreenshotButtonLabel: B,
23730
+ removeScreenshotButtonLabel: P,
23731
23731
  onFormClose: H,
23732
23732
  onFormOpen: j,
23733
23733
  onSubmitError: J,
@@ -23794,7 +23794,7 @@ const JR = ({
23794
23794
  we = we.filter((Pn) => Pn !== te), ie && ie.removeFromDom(), ie = null, le.removeEventListener("click", he);
23795
23795
  };
23796
23796
  return we.push(te), te;
23797
- }, I = (N = {}) => {
23797
+ }, R = (N = {}) => {
23798
23798
  const z = Ai(ae, N), Y = $e(z), le = WR({
23799
23799
  triggerLabel: z.triggerLabel,
23800
23800
  triggerAriaLabel: z.triggerAriaLabel,
@@ -23817,7 +23817,7 @@ const JR = ({
23817
23817
  return {
23818
23818
  name: "Feedback",
23819
23819
  setupOnce() {
23820
- !WM() || !ae.autoInject || (fe.readyState === "loading" ? fe.addEventListener("DOMContentLoaded", () => I().appendToDom()) : I().appendToDom());
23820
+ !WM() || !ae.autoInject || (fe.readyState === "loading" ? fe.addEventListener("DOMContentLoaded", () => R().appendToDom()) : R().appendToDom());
23821
23821
  },
23822
23822
  /**
23823
23823
  * Adds click listener to the element to open a feedback dialog
@@ -23830,7 +23830,7 @@ const JR = ({
23830
23830
  * Accepts partial options to override any options passed to constructor.
23831
23831
  */
23832
23832
  createWidget(N = {}) {
23833
- const z = I(Ai(ae, N));
23833
+ const z = R(Ai(ae, N));
23834
23834
  return z.appendToDom(), z;
23835
23835
  },
23836
23836
  /**
@@ -23978,8 +23978,8 @@ function ms(t, e, n, i, r, a, o, s, u, c) {
23978
23978
  if (g = e.props, y = (f = $.contextType) && i[f.__c], E = f ? y ? y.props.value : f.__ : i, n.__c ? b = (h = e.__c = n.__c).__ = h.__E : ("prototype" in $ && $.prototype.render ? e.__c = h = new $(g, E) : (e.__c = h = new Xi(g, E), h.constructor = $, h.render = iN), y && y.sub(h), h.props = g, h.state || (h.state = {}), h.context = E, h.__n = i, l = h.__d = !0, h.__h = [], h._sb = []), h.__s == null && (h.__s = h.state), $.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = It({}, h.__s)), It(h.__s, $.getDerivedStateFromProps(g, h.__s))), d = h.props, p = h.state, h.__v = e, l) $.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), h.componentDidMount != null && h.__h.push(h.componentDidMount);
23979
23979
  else {
23980
23980
  if ($.getDerivedStateFromProps == null && g !== d && h.componentWillReceiveProps != null && h.componentWillReceiveProps(g, E), !h.__e && (h.shouldComponentUpdate != null && h.shouldComponentUpdate(g, h.__s, E) === !1 || e.__v === n.__v)) {
23981
- for (e.__v !== n.__v && (h.props = g, h.state = h.__s, h.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(P) {
23982
- P && (P.__ = e);
23981
+ for (e.__v !== n.__v && (h.props = g, h.state = h.__s, h.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(B) {
23982
+ B && (B.__ = e);
23983
23983
  }), T = 0; T < h._sb.length; T++) h.__h.push(h._sb[T]);
23984
23984
  h._sb = [], h.__h.length && o.push(h);
23985
23985
  break e;
@@ -23995,8 +23995,8 @@ function ms(t, e, n, i, r, a, o, s, u, c) {
23995
23995
  h.__d = !1, k && k(e), f = h.render(h.props, h.state, h.context), h.state = h.__s;
23996
23996
  while (h.__d && ++_ < 25);
23997
23997
  h.state = h.__s, h.getChildContext != null && (i = It(It({}, i), h.getChildContext())), l || h.getSnapshotBeforeUpdate == null || (m = h.getSnapshotBeforeUpdate(d, p)), jA(t, gs(D = f != null && f.type === oi && f.key == null ? f.props.children : f) ? D : [D], e, n, i, r, a, o, s, u, c), h.base = e.__e, e.__u &= -161, h.__h.length && o.push(h), b && (h.__E = h.__ = null);
23998
- } catch (P) {
23999
- e.__v = null, u || a != null ? (e.__e = s, e.__u |= u ? 160 : 32, a[a.indexOf(s)] = null) : (e.__e = n.__e, e.__k = n.__k), be.__e(P, e, n);
23998
+ } catch (B) {
23999
+ e.__v = null, u || a != null ? (e.__e = s, e.__u |= u ? 160 : 32, a[a.indexOf(s)] = null) : (e.__e = n.__e, e.__k = n.__k), be.__e(B, e, n);
24000
24000
  }
24001
24001
  else a == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = nN(n.__e, e, n, i, r, a, o, u, c);
24002
24002
  (f = be.diffed) && f(e);
@@ -24330,9 +24330,9 @@ function vN({
24330
24330
  namePlaceholder: k,
24331
24331
  submitButtonLabel: _,
24332
24332
  isRequiredLabel: C
24333
- } = t, [D, $] = bn(null), [P, S] = bn(!1), A = c && c.input, [x, B] = bn(null), w = yn((F) => {
24334
- B(F), S(!1);
24335
- }, []), R = yn(
24333
+ } = t, [D, $] = bn(null), [B, S] = bn(!1), A = c && c.input, [x, P] = bn(null), w = yn((F) => {
24334
+ P(F), S(!1);
24335
+ }, []), I = yn(
24336
24336
  (F) => {
24337
24337
  const j = yN(F, {
24338
24338
  emailLabel: p,
@@ -24349,13 +24349,13 @@ function vN({
24349
24349
  try {
24350
24350
  if (F.preventDefault(), !(F.target instanceof HTMLFormElement))
24351
24351
  return;
24352
- const j = new FormData(F.target), H = await (c && P ? c.value() : void 0), V = {
24352
+ const j = new FormData(F.target), H = await (c && B ? c.value() : void 0), V = {
24353
24353
  name: Oa(j, "name"),
24354
24354
  email: Oa(j, "email"),
24355
24355
  message: Oa(j, "message"),
24356
24356
  attachments: H ? [H] : void 0
24357
24357
  };
24358
- if (!R(V))
24358
+ if (!I(V))
24359
24359
  return;
24360
24360
  try {
24361
24361
  await r(
@@ -24374,12 +24374,12 @@ function vN({
24374
24374
  } catch {
24375
24375
  }
24376
24376
  },
24377
- [c && P, a, o]
24377
+ [c && B, a, o]
24378
24378
  );
24379
24379
  return ee(
24380
24380
  "form",
24381
24381
  { class: "form", onSubmit: O, __self: this, __source: { fileName: ke, lineNumber: 144 } },
24382
- A && P ? ee(A, { onError: w, __self: this, __source: { fileName: ke, lineNumber: 146 } }) : null,
24382
+ A && B ? ee(A, { onError: w, __self: this, __source: { fileName: ke, lineNumber: 146 } }) : null,
24383
24383
  ee(
24384
24384
  "div",
24385
24385
  { class: "form__right", "data-sentry-feedback": !0, __self: this, __source: { fileName: ke, lineNumber: 149 } },
@@ -24453,12 +24453,12 @@ function vN({
24453
24453
  class: "btn btn--default",
24454
24454
  type: "button",
24455
24455
  onClick: () => {
24456
- B(null), S((F) => !F);
24456
+ P(null), S((F) => !F);
24457
24457
  },
24458
24458
  __self: this,
24459
24459
  __source: { fileName: ke, lineNumber: 202 }
24460
24460
  },
24461
- P ? l : h
24461
+ B ? l : h
24462
24462
  ),
24463
24463
  x ? ee("div", { class: "form__error-container", __self: this, __source: { fileName: ke, lineNumber: 212 } }, x.message) : null
24464
24464
  ) : null
@@ -25068,63 +25068,63 @@ function IN({
25068
25068
  dt.addEventListener("resize", E, !1);
25069
25069
  }, []);
25070
25070
  function E() {
25071
- const $ = l.current, P = In(Ra(n));
25071
+ const $ = l.current, B = In(Ra(n));
25072
25072
  if ($) {
25073
- $.width = P.width * ze, $.height = P.height * ze, $.style.width = `${P.width}px`, $.style.height = `${P.height}px`;
25073
+ $.width = B.width * ze, $.height = B.height * ze, $.style.width = `${B.width}px`, $.style.height = `${B.height}px`;
25074
25074
  const A = $.getContext("2d");
25075
25075
  A && A.scale(ze, ze);
25076
25076
  }
25077
25077
  const S = h.current;
25078
- S && (S.style.width = `${P.width}px`, S.style.height = `${P.height}px`), p({ startX: 0, startY: 0, endX: P.width, endY: P.height });
25078
+ S && (S.style.width = `${B.width}px`, S.style.height = `${B.height}px`), p({ startX: 0, startY: 0, endX: B.width, endY: B.height });
25079
25079
  }
25080
25080
  e.useEffect(() => {
25081
25081
  const $ = l.current;
25082
25082
  if (!$)
25083
25083
  return;
25084
- const P = $.getContext("2d");
25085
- if (!P)
25084
+ const B = $.getContext("2d");
25085
+ if (!B)
25086
25086
  return;
25087
25087
  const S = In(Ra(n)), A = In(d);
25088
- P.clearRect(0, 0, S.width, S.height), P.fillStyle = "rgba(0, 0, 0, 0.5)", P.fillRect(0, 0, S.width, S.height), P.clearRect(A.x, A.y, A.width, A.height), P.strokeStyle = "#ffffff", P.lineWidth = 3, P.strokeRect(A.x + 1, A.y + 1, A.width - 2, A.height - 2), P.strokeStyle = "#000000", P.lineWidth = 1, P.strokeRect(A.x + 3, A.y + 3, A.width - 6, A.height - 6);
25088
+ B.clearRect(0, 0, S.width, S.height), B.fillStyle = "rgba(0, 0, 0, 0.5)", B.fillRect(0, 0, S.width, S.height), B.clearRect(A.x, A.y, A.width, A.height), B.strokeStyle = "#ffffff", B.lineWidth = 3, B.strokeRect(A.x + 1, A.y + 1, A.width - 2, A.height - 2), B.strokeStyle = "#000000", B.lineWidth = 1, B.strokeRect(A.x + 3, A.y + 3, A.width - 6, A.height - 6);
25089
25089
  }, [d]);
25090
- function T($, P) {
25090
+ function T($, B) {
25091
25091
  b(!1), y(!0);
25092
- const S = k(P), A = () => {
25092
+ const S = k(B), A = () => {
25093
25093
  fe.removeEventListener("mousemove", S), fe.removeEventListener("mouseup", A), b(!0), y(!1);
25094
25094
  };
25095
25095
  fe.addEventListener("mouseup", A), fe.addEventListener("mousemove", S);
25096
25096
  }
25097
- const k = e.useCallback(($) => function(P) {
25097
+ const k = e.useCallback(($) => function(B) {
25098
25098
  if (!l.current)
25099
25099
  return;
25100
- const S = l.current, A = S.getBoundingClientRect(), x = P.clientX - A.x, B = P.clientY - A.y;
25100
+ const S = l.current, A = S.getBoundingClientRect(), x = B.clientX - A.x, P = B.clientY - A.y;
25101
25101
  switch ($) {
25102
25102
  case "top-left":
25103
25103
  p((w) => ({
25104
25104
  ...w,
25105
25105
  startX: Math.min(Math.max(0, x), w.endX - Pt),
25106
- startY: Math.min(Math.max(0, B), w.endY - Pt)
25106
+ startY: Math.min(Math.max(0, P), w.endY - Pt)
25107
25107
  }));
25108
25108
  break;
25109
25109
  case "top-right":
25110
25110
  p((w) => ({
25111
25111
  ...w,
25112
25112
  endX: Math.max(Math.min(x, S.width / ze), w.startX + Pt),
25113
- startY: Math.min(Math.max(0, B), w.endY - Pt)
25113
+ startY: Math.min(Math.max(0, P), w.endY - Pt)
25114
25114
  }));
25115
25115
  break;
25116
25116
  case "bottom-left":
25117
25117
  p((w) => ({
25118
25118
  ...w,
25119
25119
  startX: Math.min(Math.max(0, x), w.endX - Pt),
25120
- endY: Math.max(Math.min(B, S.height / ze), w.startY + Pt)
25120
+ endY: Math.max(Math.min(P, S.height / ze), w.startY + Pt)
25121
25121
  }));
25122
25122
  break;
25123
25123
  case "bottom-right":
25124
25124
  p((w) => ({
25125
25125
  ...w,
25126
25126
  endX: Math.max(Math.min(x, S.width / ze), w.startX + Pt),
25127
- endY: Math.max(Math.min(B, S.height / ze), w.startY + Pt)
25127
+ endY: Math.max(Math.min(P, S.height / ze), w.startY + Pt)
25128
25128
  }));
25129
25129
  break;
25130
25130
  }
@@ -25132,18 +25132,18 @@ function IN({
25132
25132
  function C($) {
25133
25133
  if (g) return;
25134
25134
  _.current = { initialX: $.clientX, initialY: $.clientY };
25135
- const P = (A) => {
25135
+ const B = (A) => {
25136
25136
  const x = l.current;
25137
25137
  if (!x) return;
25138
- const B = A.clientX - _.current.initialX, w = A.clientY - _.current.initialY;
25139
- p((R) => {
25138
+ const P = A.clientX - _.current.initialX, w = A.clientY - _.current.initialY;
25139
+ p((I) => {
25140
25140
  const O = Math.max(
25141
25141
  0,
25142
- Math.min(R.startX + B, x.width / ze - (R.endX - R.startX))
25142
+ Math.min(I.startX + P, x.width / ze - (I.endX - I.startX))
25143
25143
  ), F = Math.max(
25144
25144
  0,
25145
- Math.min(R.startY + w, x.height / ze - (R.endY - R.startY))
25146
- ), j = O + (R.endX - R.startX), H = F + (R.endY - R.startY);
25145
+ Math.min(I.startY + w, x.height / ze - (I.endY - I.startY))
25146
+ ), j = O + (I.endX - I.startX), H = F + (I.endY - I.startY);
25147
25147
  return _.current.initialX = A.clientX, _.current.initialY = A.clientY, {
25148
25148
  startX: O,
25149
25149
  startY: F,
@@ -25152,20 +25152,20 @@ function IN({
25152
25152
  };
25153
25153
  });
25154
25154
  }, S = () => {
25155
- fe.removeEventListener("mousemove", P), fe.removeEventListener("mouseup", S);
25155
+ fe.removeEventListener("mousemove", B), fe.removeEventListener("mouseup", S);
25156
25156
  };
25157
- fe.addEventListener("mousemove", P), fe.addEventListener("mouseup", S);
25157
+ fe.addEventListener("mousemove", B), fe.addEventListener("mouseup", S);
25158
25158
  }
25159
25159
  function D() {
25160
- const $ = fe.createElement("canvas"), P = In(Ra(n)), S = In(d);
25160
+ const $ = fe.createElement("canvas"), B = In(Ra(n)), S = In(d);
25161
25161
  $.width = S.width * ze, $.height = S.height * ze;
25162
25162
  const A = $.getContext("2d");
25163
25163
  A && n && A.drawImage(
25164
25164
  n,
25165
- S.x / P.width * n.width,
25166
- S.y / P.height * n.height,
25167
- S.width / P.width * n.width,
25168
- S.height / P.height * n.height,
25165
+ S.x / B.width * n.width,
25166
+ S.y / B.height * n.height,
25167
+ S.width / B.width * n.width,
25168
+ S.height / B.height * n.height,
25169
25169
  0,
25170
25170
  0,
25171
25171
  $.width,
@@ -25180,10 +25180,10 @@ function IN({
25180
25180
  }, []),
25181
25181
  onScreenshot: e.useCallback(
25182
25182
  ($) => {
25183
- const P = n.getContext("2d");
25184
- if (!P)
25183
+ const B = n.getContext("2d");
25184
+ if (!B)
25185
25185
  throw new Error("Could not get canvas context");
25186
- n.width = $.videoWidth, n.height = $.videoHeight, n.style.width = "100%", n.style.height = "100%", P.drawImage($, 0, 0);
25186
+ n.width = $.videoWidth, n.height = $.videoHeight, n.style.width = "100%", n.style.height = "100%", B.drawImage($, 0, 0);
25187
25187
  },
25188
25188
  [n]
25189
25189
  ),
@@ -25340,7 +25340,7 @@ const RN = () => ({
25340
25340
  lazyLoadIntegration: CR,
25341
25341
  getModalIntegration: () => PN,
25342
25342
  getScreenshotIntegration: () => RN
25343
- }), Ro = "2.5.0-canary-20260306042320", FN = (t, e, n) => {
25343
+ }), Ro = "2.5.0", FN = (t, e, n) => {
25344
25344
  const i = t.get(e);
25345
25345
  i ? i.includes(n) || i.push(n) : t.set(e, [n]);
25346
25346
  }, zN = (t, e) => {
@@ -28103,7 +28103,7 @@ const Pi = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
28103
28103
  this.updateAdditionalFields(e.detail.name, e.detail.value);
28104
28104
  }
28105
28105
  render() {
28106
- var i, r, a, o, s, u, c, f, h, l, d, p, m, b, g, y, E, T, k, _, C, D, $, P;
28106
+ var i, r, a, o, s, u, c, f, h, l, d, p, m, b, g, y, E, T, k, _, C, D, $, B;
28107
28107
  const e = !!((i = this.selectedTimeslot) != null && i.event_id) && !!((r = this.selectedTimeslot) != null && r.capacity), n = ((s = (o = (a = this.configSettings) == null ? void 0 : a.scheduler) == null ? void 0 : o.notetaker_settings) == null ? void 0 : s.show_ui_consent_message) === !0;
28108
28108
  return v(ye, { key: "ff7be9b66b5a472cae4a9ee6bd0ac7f4d7d55080" }, v("form", { key: "efc1dc1cf3790f1b7d1da15c95d0e7c01b8e09b7", onSubmit: (S) => this.bookButtonClickedHandler(S), ref: (S) => this.formRef = S, noValidate: !0 }, v("div", { key: "b054882d9b3e86432666ca2a4c78be28527141d7", class: "nylas-booking-form", part: "nbf" }, v("div", { key: "72cc111b5b14e75419decf4a35c8c062619747c3", class: "input-wrapper", part: "nbf__input-wrapper" }, v("input-component", { key: "8e0622d77d38733b46637c22296bc22ad9594b98", label: M.t("name"), name: "name", id: "name", defaultValue: ((c = (u = this.bookingInfo) == null ? void 0 : u.primaryParticipant) == null ? void 0 : c.name) || ((l = (h = (f = this.configSettings) == null ? void 0 : f.booking) == null ? void 0 : h.guest) == null ? void 0 : l.name) || this.name, placeholder: M.t("namePlaceholder"), type: "text", readOnly: ((p = (d = this.bookingInfo) == null ? void 0 : d.primaryParticipant) == null ? void 0 : p.nameReadOnly) || !1, required: !0, requiredError: this.nameRequiredError, patternError: this.namePatternError, themeConfig: this.themeConfig, part: "nbf__input-textfield" })), v("div", { key: "b33b7f03f3986e09b8f8cd25e7c2f50613283693", class: "input-wrapper", part: "nbf__input-wrapper" }, v("input-component", { key: "ff9d6627901004d5d82682fc475d798aeb50f35c", label: M.t("email"), name: "email", id: "email", pattern: Pi, defaultValue: ((b = (m = this.bookingInfo) == null ? void 0 : m.primaryParticipant) == null ? void 0 : b.email) || ((E = (y = (g = this.configSettings) == null ? void 0 : g.booking) == null ? void 0 : y.guest) == null ? void 0 : E.email) || this.email, placeholder: M.t("emailPlaceholder"), type: "email", readOnly: ((k = (T = this.bookingInfo) == null ? void 0 : T.primaryParticipant) == null ? void 0 : k.emailReadOnly) || !1, required: !0, requiredError: this.emailRequiredError, patternError: this.emailPatternError, themeConfig: this.themeConfig, part: "nbf__input-textfield" })), ((C = (_ = this.configSettings) == null ? void 0 : _.scheduler) == null ? void 0 : C.hide_additional_guests) !== !0 && v("div", { key: "0cf431d2b0cf104b9abf6e15071b5d4bc5a004b7", class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((S, A) => v("div", { class: "input-wrapper button-wrapper" }, v("label", { class: {
28109
28109
  error: !!this.guestEmailErrors[A]
@@ -28111,39 +28111,39 @@ const Pi = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
28111
28111
  "guest-email": !0,
28112
28112
  error: !!this.guestEmailErrors[A]
28113
28113
  }, placeholder: M.t("guestEmailPlaceholder"), value: S, "data-index": A, part: "nbf__input-textfield", onBlur: (x) => {
28114
- var B;
28115
- return this.handleGuestBlur(A, (B = x.target) == null ? void 0 : B.value);
28114
+ var P;
28115
+ return this.handleGuestBlur(A, (P = x.target) == null ? void 0 : P.value);
28116
28116
  }, onInput: (x) => {
28117
- var B;
28118
- return this.handleGuestChange(A, (B = x.target) == null ? void 0 : B.value);
28117
+ var P;
28118
+ return this.handleGuestChange(A, (P = x.target) == null ? void 0 : P.value);
28119
28119
  } }), v("button-component", { variant: "basic", tooltip: "Remove guest", onClick: (x) => this.removeGuestButtonClickHandler(x, A), class: {
28120
28120
  "remove-guest": !0,
28121
28121
  error: !!this.guestEmailErrors[A]
28122
- } }, v("close-icon", null))), v("p", { class: "help-text" }, this.guestEmailErrors[A]))), !e && v("button-component", { key: "2b149ffe1bdd0117dc23f75bd6aa21f28a9b9652", class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (S) => this.addGuestButtonClickedHandler(S) }, v("div", { key: "d30ef6a29786a6faa4ef8e1b5f0b6d96d494fb7f", class: "button-content" }, v("add-circle-icon", { key: "a6d1d9cdfef40554a443a8a9b3685fd16e0ea8f4", slot: "icon" }), this.guestEmails.length > 0 ? `${M.t("addAnotherGuest")}` : `${M.t("addGuest")}`))), (P = Object.entries((($ = (D = this.configSettings) == null ? void 0 : D.scheduler) == null ? void 0 : $.additional_fields) || {})) == null ? void 0 : P.sort((S, A) => S[1].order - A[1].order).map((S) => {
28122
+ } }, v("close-icon", null))), v("p", { class: "help-text" }, this.guestEmailErrors[A]))), !e && v("button-component", { key: "2b149ffe1bdd0117dc23f75bd6aa21f28a9b9652", class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (S) => this.addGuestButtonClickedHandler(S) }, v("div", { key: "d30ef6a29786a6faa4ef8e1b5f0b6d96d494fb7f", class: "button-content" }, v("add-circle-icon", { key: "a6d1d9cdfef40554a443a8a9b3685fd16e0ea8f4", slot: "icon" }), this.guestEmails.length > 0 ? `${M.t("addAnotherGuest")}` : `${M.t("addGuest")}`))), (B = Object.entries((($ = (D = this.configSettings) == null ? void 0 : D.scheduler) == null ? void 0 : $.additional_fields) || {})) == null ? void 0 : B.sort((S, A) => S[1].order - A[1].order).map((S) => {
28123
28123
  var O, F, j, H, V, J, q, ae, ne, we, $e, Be, ve, Se;
28124
- const A = S[1], x = A.label, B = S[0], w = ((j = (F = (O = this.bookingInfo) == null ? void 0 : O.additionalFields) == null ? void 0 : F[B]) == null ? void 0 : j.value) || ((J = (V = (H = this.configSettings) == null ? void 0 : H.booking) == null ? void 0 : V.additional_fields) == null ? void 0 : J[B]) || A.default || "", R = ((ne = (ae = (q = this.bookingInfo) == null ? void 0 : q.additionalFields) == null ? void 0 : ae[B]) == null ? void 0 : ne.readOnly) || !1;
28124
+ const A = S[1], x = A.label, P = S[0], w = ((j = (F = (O = this.bookingInfo) == null ? void 0 : O.additionalFields) == null ? void 0 : F[P]) == null ? void 0 : j.value) || ((J = (V = (H = this.configSettings) == null ? void 0 : H.booking) == null ? void 0 : V.additional_fields) == null ? void 0 : J[P]) || A.default || "", I = ((ne = (ae = (q = this.bookingInfo) == null ? void 0 : q.additionalFields) == null ? void 0 : ae[P]) == null ? void 0 : ne.readOnly) || !1;
28125
28125
  switch (A.type) {
28126
28126
  case "dropdown":
28127
- return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("select-dropdown", { label: x, name: B, id: B, readOnly: R, withSearch: !1, emptyValue: M.t("nylasBookingCalendarPicker.selectOptionLabel"), defaultSelectedOption: w ? { value: w, label: w } : void 0, options: [
28127
+ return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("select-dropdown", { label: x, name: P, id: P, readOnly: I, withSearch: !1, emptyValue: M.t("nylasBookingCalendarPicker.selectOptionLabel"), defaultSelectedOption: w ? { value: w, label: w } : void 0, options: [
28128
28128
  { value: "", label: M.t("nylasBookingCalendarPicker.selectOptionLabel") },
28129
- ...((we = A.options) == null ? void 0 : we.map((I) => ({ value: I, label: I }))) || []
28129
+ ...((we = A.options) == null ? void 0 : we.map((R) => ({ value: R, label: R }))) || []
28130
28130
  ], required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("fieldRequired", { field: x }), exportparts: "sd_dropdown: nbf__dropdown, sd_dropdown-button: nbf__dropdown-button, sd_dropdown-content: nbf__dropdown-content" }));
28131
28131
  case "checkbox":
28132
- return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("checkbox-component", { readOnly: R, label: x, name: B, id: B, checked: w === "true", required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("fieldRequired", { field: x }), part: "nbf__checkbox-component" }));
28132
+ return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("checkbox-component", { readOnly: I, label: x, name: P, id: P, checked: w === "true", required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("fieldRequired", { field: x }), part: "nbf__checkbox-component" }));
28133
28133
  case "radio_button":
28134
- return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("radio-button-group", { label: x, name: B, id: B, readOnly: R, defaultSelectedValue: w && (($e = A.options) != null && $e.includes(w)) ? w : ((Be = A.options) == null ? void 0 : Be[0]) || "", options: (ve = A.options) == null ? void 0 : ve.map((I) => ({ value: I, label: I })), required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("fieldRequired", { field: x }), part: "nbf__radio-button-group" }));
28134
+ return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("radio-button-group", { label: x, name: P, id: P, readOnly: I, defaultSelectedValue: w && (($e = A.options) != null && $e.includes(w)) ? w : ((Be = A.options) == null ? void 0 : Be[0]) || "", options: (ve = A.options) == null ? void 0 : ve.map((R) => ({ value: R, label: R })), required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("fieldRequired", { field: x }), part: "nbf__radio-button-group" }));
28135
28135
  case "multi_line_text":
28136
- return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("textarea-component", { readOnly: R, label: x, defaultValue: w, name: B, id: B, required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("fieldRequired", { field: x }), part: "nbf__textarea-component" }));
28136
+ return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("textarea-component", { readOnly: I, label: x, defaultValue: w, name: P, id: P, required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("fieldRequired", { field: x }), part: "nbf__textarea-component" }));
28137
28137
  case "date":
28138
- return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("nylas-date-component", { readOnly: R, label: x, defaultValue: w, name: B, id: B, required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("invalidDate"), patternError: M.t("invalidInputFormat", { field: x }), requiredError: M.t("fieldRequired", { field: x }), part: "nbf__date-component" }));
28138
+ return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("nylas-date-component", { readOnly: I, label: x, defaultValue: w, name: P, id: P, required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("invalidDate"), patternError: M.t("invalidInputFormat", { field: x }), requiredError: M.t("fieldRequired", { field: x }), part: "nbf__date-component" }));
28139
28139
  case "multi_select": {
28140
- const I = (w == null ? void 0 : w.split(",").map((N) => N.trim())) || [];
28141
- return v("div", null, v("multi-select-dropdown", { label: x, name: B, id: B, readOnly: R, selectAtLeastOneOptionLabel: M.t("selectOneOrMoreOptions"), multipleOptionsSelectedLabel: M.t("multipleOptionsSelected"), options: (Se = A.options) == null ? void 0 : Se.map((N) => ({ value: N, label: N, selected: I.includes(N) })), required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("selectAtLeastOneOption"), exportparts: "msd_dropdown: nbf__ms_dropdown, msd_dropdown-label: nbf__ms_dropdown-label, msd_dropdown-button: nbf__ms_dropdown-button, msd_dropdown-content: nbf__ms_dropdown-content, msd_dropdown_error: nbf__ms_dropdown_error, msd_dropdown-button--error: nbf__ms_dropdown-button--error" }));
28140
+ const R = (w == null ? void 0 : w.split(",").map((N) => N.trim())) || [];
28141
+ return v("div", null, v("multi-select-dropdown", { label: x, name: P, id: P, readOnly: I, selectAtLeastOneOptionLabel: M.t("selectOneOrMoreOptions"), multipleOptionsSelectedLabel: M.t("multipleOptionsSelected"), options: (Se = A.options) == null ? void 0 : Se.map((N) => ({ value: N, label: N, selected: R.includes(N) })), required: A.required, themeConfig: this.themeConfig, errorMessage: M.t("selectAtLeastOneOption"), exportparts: "msd_dropdown: nbf__ms_dropdown, msd_dropdown-label: nbf__ms_dropdown-label, msd_dropdown-button: nbf__ms_dropdown-button, msd_dropdown-content: nbf__ms_dropdown-content, msd_dropdown_error: nbf__ms_dropdown_error, msd_dropdown-button--error: nbf__ms_dropdown-button--error" }));
28142
28142
  }
28143
28143
  case "metadata":
28144
28144
  return null;
28145
28145
  default:
28146
- return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("input-component", { label: x, name: B, id: B, type: A.type, readOnly: R, defaultValue: w || "", requiredError: M.t("fieldRequired", { field: x }), patternError: M.t("invalidInputFormat", { field: x }), required: A.required, part: "nbf__input-textfield", themeConfig: this.themeConfig }));
28146
+ return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("input-component", { label: x, name: P, id: P, type: A.type, readOnly: I, defaultValue: w || "", requiredError: M.t("fieldRequired", { field: x }), patternError: M.t("invalidInputFormat", { field: x }), required: A.required, part: "nbf__input-textfield", themeConfig: this.themeConfig }));
28147
28147
  }
28148
28148
  })), v("div", { key: "cc4eef64c581d709dd04aa9a1911b8e16395bfca", class: "cta" }, n && v("div", { key: "646406e9b164645b733f70720d024bf9f38c42c7", class: "consent-disclaimer" }, M.t("notetakerConsentMessage")), v("button-component", { key: "0a50849e94a7024c79cb32ab28d7259006bbe886", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, v("slot", { key: "4a20f06c8173c9c18be25b3303852139f76eb812", name: "booking-form-back-label" }, `${M.t("backButton")}`)), v("button-component", { key: "334c1bab37af898e49867205c84baedeb612860b", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, v("slot", { key: "3f421a94afaf0f2e2defdd5f03d04e0553cf6b24", name: "booking-form-book-label" }, `${M.t("bookNowButton")}`)))));
28149
28149
  }
@@ -30239,7 +30239,7 @@ class Iz {
30239
30239
  }), this.schedulerStore.set("rescheduleBookingId", ""), this.schedulerStore.set("isLoading", !1), o;
30240
30240
  }
30241
30241
  async rescheduleBooking(e, n) {
30242
- var x;
30242
+ var x, P;
30243
30243
  if (this.schedulerStore.set("isLoading", !0), !e)
30244
30244
  return { error: this.errors.component(M.t("rescheduleBookingErrorTitle")).no_booking_id() };
30245
30245
  const i = this.errors.api(M.t("rescheduleBookingErrorTitle")), r = this.errors.component(M.t("rescheduleBookingErrorTitle")), { bookingInfo: a, selectedTimeslot: o, selectedTimezone: s, selectedLanguage: u } = this.schedulerStore.state, { startTime: c, endTime: f, timezone: h } = n, l = c || (o == null ? void 0 : o.start_time);
@@ -30251,10 +30251,10 @@ class Iz {
30251
30251
  const p = this.schedulerStore.get("availabilityOrderEmails");
30252
30252
  let m = "";
30253
30253
  if (p.length > 0) {
30254
- const B = (o == null ? void 0 : o.emails) || [];
30255
- for (let w = 0; w < p.length; w++)
30256
- if (B.includes(p[w])) {
30257
- m = p[w];
30254
+ const w = (o == null ? void 0 : o.emails) || [];
30255
+ for (let I = 0; I < p.length; I++)
30256
+ if (w.includes(p[I])) {
30257
+ m = p[I];
30258
30258
  break;
30259
30259
  }
30260
30260
  }
@@ -30262,10 +30262,10 @@ class Iz {
30262
30262
  if (!b)
30263
30263
  return { error: r.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.') };
30264
30264
  const g = (o == null ? void 0 : o.event_id) || void 0, y = (o == null ? void 0 : o.master_id) || void 0, E = (o == null ? void 0 : o.calendar_id) || void 0, T = {};
30265
- Object.entries((a == null ? void 0 : a.additionalFields) || {}).forEach(([B, w]) => {
30266
- T[B] = w.value;
30265
+ Object.entries((a == null ? void 0 : a.additionalFields) || {}).forEach(([w, I]) => {
30266
+ T[w] = I.value;
30267
30267
  });
30268
- const k = n ? n == null ? void 0 : n.primaryParticipant : a == null ? void 0 : a.primaryParticipant, _ = n ? (n == null ? void 0 : n.guests) || [] : (a == null ? void 0 : a.guests) || [], C = n ? n == null ? void 0 : n.additionalFields : T, D = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", $ = `/v3/scheduling/bookings/${e}${D}`, P = this.getHeaders(), S = await this.makeAPIRequest(decodeURIComponent($), "PATCH", JSON.stringify({
30268
+ const k = n ? n == null ? void 0 : n.primaryParticipant : a == null ? void 0 : a.primaryParticipant, _ = n ? (n == null ? void 0 : n.guests) || [] : (a == null ? void 0 : a.guests) || [], C = n ? n == null ? void 0 : n.additionalFields : T, D = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", $ = `/v3/scheduling/bookings/${e}${D}`, B = this.getHeaders(), S = await this.makeAPIRequest(decodeURIComponent($), "PATCH", JSON.stringify({
30269
30269
  start_time: l.getTime() / 1e3,
30270
30270
  end_time: d.getTime() / 1e3,
30271
30271
  timezone: b,
@@ -30277,29 +30277,29 @@ class Iz {
30277
30277
  event_id: g,
30278
30278
  master_id: y,
30279
30279
  calendar_id: E
30280
- }), P);
30280
+ }), B);
30281
30281
  if ("error" in S) {
30282
30282
  this.schedulerStore.set("isLoading", !1);
30283
- const B = (x = S.error) == null ? void 0 : x.type;
30284
- let w = S.error;
30285
- if (B && B in i) {
30286
- const R = this.getErrorMessage(w);
30287
- w = i[B](R);
30283
+ const w = (x = S.error) == null ? void 0 : x.type;
30284
+ let I = S.error;
30285
+ if (w && w in i) {
30286
+ const O = this.getErrorMessage(I);
30287
+ I = i[w](O);
30288
30288
  }
30289
- return { error: w };
30289
+ return { error: I };
30290
30290
  }
30291
30291
  const A = this.schedulerStore.get("reschedulingEventInfo");
30292
30292
  if ("data" in S)
30293
- this.schedulerStore.set("eventInfo", S == null ? void 0 : S.data);
30293
+ this.schedulerStore.set("eventInfo", S == null ? void 0 : S.data), (P = S.data) != null && P.booking_id && this.schedulerStore.set("rescheduleBookingId", S.data.booking_id);
30294
30294
  else if (A)
30295
30295
  this.schedulerStore.set("eventInfo", A);
30296
30296
  else {
30297
- const B = {
30297
+ const w = {
30298
30298
  booking_id: e
30299
30299
  };
30300
- this.schedulerStore.set("eventInfo", B);
30300
+ this.schedulerStore.set("eventInfo", w);
30301
30301
  }
30302
- return this.schedulerStore.set("isLoading", !1), S;
30302
+ return this.schedulerStore.set("reschedulingEventInfo", void 0), this.schedulerStore.set("isLoading", !1), S;
30303
30303
  }
30304
30304
  async updateBooking(e) {
30305
30305
  var h;
@@ -30855,7 +30855,7 @@ const Gt = (t, e) => {
30855
30855
  }
30856
30856
  }
30857
30857
  render() {
30858
- var g, y, E, T, k, _, C, D, $, P, S, A;
30858
+ var g, y, E, T, k, _, C, D, $, B, S, A;
30859
30859
  const e = this.mode === "app", n = (g = this.baseProvider) == null ? void 0 : g.getStore("scheduler"), i = n == null ? void 0 : n.get("eventInfo"), r = n == null ? void 0 : n.get("showBookingForm"), a = n == null ? void 0 : n.get("cancelledEventInfo"), o = n == null ? void 0 : n.get("cancelBookingId"), s = n == null ? void 0 : n.get("selectedTimeslot"), u = n == null ? void 0 : n.get("rescheduleBookingId"), c = n == null ? void 0 : n.get("organizerConfirmationBookingId"), f = n == null ? void 0 : n.get("rejectBookingId"), h = n == null ? void 0 : n.get("confirmedEventInfo"), l = (n == null ? void 0 : n.get("nylasBranding")) || this.nylasBranding, d = n == null ? void 0 : n.get("selectedDate"), p = (E = (y = n == null ? void 0 : n.get("configSettings")) == null ? void 0 : y.scheduler) == null ? void 0 : E.confirmation_redirect_url;
30860
30860
  this.selectedDateLabel = d && this.language ? es(d.toLocaleDateString(this.language, { dateStyle: "full" })) : `${M.t("noDateSelected")}`;
30861
30861
  const m = Object.keys(Tr).map((x) => ({
@@ -30871,22 +30871,22 @@ const Gt = (t, e) => {
30871
30871
  if (e && h)
30872
30872
  return v(ye, null, v(Gt, { version: this.version, nylasBranding: l, isLoading: this.isLoading, showNotification: this.showNotification }, v("div", { class: "cancelled-event-page", part: "confirmed-event-page" }, v("nylas-confirmed-event-card", { confirmedEventInfo: h, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))), v("div", { class: "language-feedback-container" }, this.enableUserFeedback && v("button-component", { id: "report-issue", variant: "basic", onClick: (x) => this.onFeedbackClick(x) }, v("feedback-icon", null)), v("select-dropdown", { name: "language", searchPlaceholder: M.t("search"), options: m, withChevron: !1, themeConfig: this.themeConfig, defaultSelectedOption: m.find((x) => x.value == b), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, v("span", { slot: "select-icon" }, v("translate-icon", { width: "20", height: "20" })))), this.showFeedbackModal && v("nylas-feedback-form", null));
30873
30873
  if (e && i && p) {
30874
- const x = (T = this.bookingInfoConfirmed) == null ? void 0 : T.primaryParticipant, B = (k = this.bookingInfoConfirmed) == null ? void 0 : k.location, w = (_ = this.bookingInfoConfirmed) == null ? void 0 : _.booking_ref, R = ((C = this.bookingInfoConfirmed) == null ? void 0 : C.additionalFields) || {};
30874
+ const x = (T = this.bookingInfoConfirmed) == null ? void 0 : T.primaryParticipant, P = (k = this.bookingInfoConfirmed) == null ? void 0 : k.location, w = (_ = this.bookingInfoConfirmed) == null ? void 0 : _.booking_ref, I = ((C = this.bookingInfoConfirmed) == null ? void 0 : C.additionalFields) || {};
30875
30875
  if (this.bookingInfo && typeof ((D = this.bookingInfo) == null ? void 0 : D.additionalFields) < "u") {
30876
30876
  const ae = this.bookingInfo.additionalFields;
30877
30877
  Object.keys(ae).forEach((ne) => {
30878
- !R[ne] && (ae != null && ae[ne]) && (R[ne] = ae[ne].value);
30878
+ !I[ne] && (ae != null && ae[ne]) && (I[ne] = ae[ne].value);
30879
30879
  });
30880
30880
  }
30881
- const O = ($ = this.stores) == null ? void 0 : $.scheduler.get("selectedTimeslot"), F = (P = this.stores) == null ? void 0 : P.scheduler.get("selectedTimezone"), j = (S = this.stores) == null ? void 0 : S.scheduler.get("selectedLanguage"), H = (A = this.stores) == null ? void 0 : A.scheduler.get("configSettings"), V = this.configurationId ? this.configurationId : H == null ? void 0 : H.configuration_id, J = window.location.search, q = new URLSearchParams(J);
30882
- q.set("booking_id", i.booking_id), x != null && x.name && q.set("name", x.name), x != null && x.email && q.set("email", x.email), O != null && O.start_time && q.set("start_time", (new Date(O.start_time).getTime() / 1e3).toString()), O != null && O.end_time && q.set("end_time", (new Date(O.end_time).getTime() / 1e3).toString()), F && q.set("tz", F), j && q.set("language", j), R && q.set("additional_values", JSON.stringify(R)), this.slug && q.set("page_slug", this.slug), V && q.set("config_id", V), B && q.set("location", B), w && q.set("booking_ref", w), this.redirectToCustomUrl(`${p}?${q.toString()}`);
30881
+ const O = ($ = this.stores) == null ? void 0 : $.scheduler.get("selectedTimeslot"), F = (B = this.stores) == null ? void 0 : B.scheduler.get("selectedTimezone"), j = (S = this.stores) == null ? void 0 : S.scheduler.get("selectedLanguage"), H = (A = this.stores) == null ? void 0 : A.scheduler.get("configSettings"), V = this.configurationId ? this.configurationId : H == null ? void 0 : H.configuration_id, J = window.location.search, q = new URLSearchParams(J);
30882
+ q.set("booking_id", i.booking_id), x != null && x.name && q.set("name", x.name), x != null && x.email && q.set("email", x.email), O != null && O.start_time && q.set("start_time", (new Date(O.start_time).getTime() / 1e3).toString()), O != null && O.end_time && q.set("end_time", (new Date(O.end_time).getTime() / 1e3).toString()), F && q.set("tz", F), j && q.set("language", j), I && q.set("additional_values", JSON.stringify(I)), this.slug && q.set("page_slug", this.slug), V && q.set("config_id", V), P && q.set("location", P), w && q.set("booking_ref", w), this.redirectToCustomUrl(`${p}?${q.toString()}`);
30883
30883
  return;
30884
30884
  }
30885
30885
  if (e && i)
30886
30886
  return v(ye, null, v(Gt, { version: this.version, nylasBranding: l, isLoading: this.isLoading, showNotification: this.showNotification }, v("div", { class: "booked-event-page", part: "booked-event-page ns_booked-event-page" }, v("nylas-booked-event-card", { selectedTimeslot: s, eventInfo: i, exportparts: "nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta" }))), v("div", { class: "language-feedback-container" }, this.enableUserFeedback && v("button-component", { id: "report-issue", variant: "basic", onClick: (x) => this.onFeedbackClick(x) }, v("feedback-icon", null)), v("select-dropdown", { name: "language", searchPlaceholder: M.t("search"), options: m, withChevron: !1, themeConfig: this.themeConfig, defaultSelectedOption: m.find((x) => x.value == b), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, v("span", { slot: "select-icon" }, v("translate-icon", { width: "20", height: "20" })))), this.showFeedbackModal && v("nylas-feedback-form", null));
30887
30887
  if (e && (!i || u) && !r) {
30888
30888
  const x = this.host.querySelector('[slot="timeslot-picker-cta-label"]');
30889
- return v(ye, null, v(Gt, { version: this.version, nylasBranding: l, isLoading: this.isLoading, showNotification: this.showNotification }, u && v(Du, null, `${M.t("rescheduleTitle")}`), v("div", { class: "select-date-page", part: "select-date-page ns_select-date-page" }, v("div", { class: "left-panel", part: "ns_left-panel" }, v("nylas-date-picker", { exportparts: "ndp, ndp__title, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--disabled, ndp__date--selected, ndp__date--current-day, ndp__date--current-month" }), v("nylas-locale-switch", { exportparts: "nls, nls__timezone, nls__timezone-dropdown, nls__timezone-drop-button, nls__timezone-drop-button-selected-label, nls__timezone-drop-content, nls__timezone-drop-label, nls__language, nls__language-dropdown, nls__language-drop-button, nls__language-drop-content, nls__language-drop-label" })), v("div", { class: `right-panel ${u ? "reschedule" : ""}`, part: `ns_right-panel ${u ? "ns_reschedule" : ""}` }, v("h2", { part: "ns_right-panel__title" }, v("calendar-icon", { part: "ns_right-panel__calendar-icon" }), v("span", { id: "selectedDate", part: "ns_right-panel__selected-date" }, this.selectedDateLabel)), v("nylas-timeslot-picker", { exportparts: "ntp, ntp__time-picker-wrapper, ntp__timeslots, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary" }, x && v("span", { slot: "timeslot-picker-cta-label" }, v("slot", { name: "timeslot-picker-cta-label" })))))), this.enableUserFeedback && v("button-component", { id: "report-issue", variant: "basic", onClick: (B) => this.onFeedbackClick(B) }, v("feedback-icon", null)), this.showFeedbackModal && v("nylas-feedback-form", null));
30889
+ return v(ye, null, v(Gt, { version: this.version, nylasBranding: l, isLoading: this.isLoading, showNotification: this.showNotification }, u && v(Du, null, `${M.t("rescheduleTitle")}`), v("div", { class: "select-date-page", part: "select-date-page ns_select-date-page" }, v("div", { class: "left-panel", part: "ns_left-panel" }, v("nylas-date-picker", { exportparts: "ndp, ndp__title, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--disabled, ndp__date--selected, ndp__date--current-day, ndp__date--current-month" }), v("nylas-locale-switch", { exportparts: "nls, nls__timezone, nls__timezone-dropdown, nls__timezone-drop-button, nls__timezone-drop-button-selected-label, nls__timezone-drop-content, nls__timezone-drop-label, nls__language, nls__language-dropdown, nls__language-drop-button, nls__language-drop-content, nls__language-drop-label" })), v("div", { class: `right-panel ${u ? "reschedule" : ""}`, part: `ns_right-panel ${u ? "ns_reschedule" : ""}` }, v("h2", { part: "ns_right-panel__title" }, v("calendar-icon", { part: "ns_right-panel__calendar-icon" }), v("span", { id: "selectedDate", part: "ns_right-panel__selected-date" }, this.selectedDateLabel)), v("nylas-timeslot-picker", { exportparts: "ntp, ntp__time-picker-wrapper, ntp__timeslots, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary" }, x && v("span", { slot: "timeslot-picker-cta-label" }, v("slot", { name: "timeslot-picker-cta-label" })))))), this.enableUserFeedback && v("button-component", { id: "report-issue", variant: "basic", onClick: (P) => this.onFeedbackClick(P) }, v("feedback-icon", null)), this.showFeedbackModal && v("nylas-feedback-form", null));
30890
30890
  }
30891
30891
  return e && !i && r ? v(ye, null, v(Gt, { version: this.version, nylasBranding: l, isLoading: this.isLoading, showNotification: this.showNotification }, u && v(Du, null, `${M.t("rescheduleTitle")}`), v("div", { class: "additional-data-page", part: "additional-data-page ns_additional-data-page" }, v("div", { class: "left-panel ns_left-panel", part: "ns_left-panel" }, v("div", { class: "wrapper", part: "ns_left-panel__wrapper" }, v("nylas-selected-event-card", { exportparts: "nsec, nsec__card, nsec__icon, nsec__date, nsec__time, nsec__timezone" }))), v("div", { class: `right-panel ${u ? "reschedule" : ""}`, part: `ns_right-panel ${u ? "ns_reschedule" : ""}` }, v("nylas-booking-form", { exportparts: "nbf, nbf__input-textfield, nbf__button-ghost, nbf__button-outline, nbf__button-primary, nbf__input-wrapper, nbf__checkbox-component, nbf__radio-button-group, nbf__textarea-component, nbf__dropdown, nbf__dropdown-button, nbf__dropdown-content" })))), v("div", { class: "language-feedback-container" }, this.enableUserFeedback && v("button-component", { id: "report-issue", variant: "basic", onClick: (x) => this.onFeedbackClick(x) }, v("feedback-icon", null)), v("select-dropdown", { name: "language", searchPlaceholder: M.t("search"), options: m, withChevron: !1, themeConfig: this.themeConfig, defaultSelectedOption: m.find((x) => x.value == b), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, v("span", { slot: "select-icon" }, v("translate-icon", { width: "20", height: "20" })))), this.showFeedbackModal && v("nylas-feedback-form", null)) : v(ye, null, v("slot", null));
30892
30892
  }