@enegelai/bot-widget 1.9.4 → 1.9.5

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.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var Oa = Object.defineProperty;
2
2
  var ja = (c, e, a) => e in c ? Oa(c, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : c[e] = a;
3
3
  var pe = (c, e, a) => ja(c, typeof e != "symbol" ? e + "" : e, a);
4
4
  import { css as Y, LitElement as ut, html as g, svg as we } from "lit";
5
- import { property as v, customElement as Z, queryAll as Qt, query as xe, eventOptions as Tt } from "lit/decorators.js";
5
+ import { property as v, customElement as Z, queryAll as Qt, query as xe, eventOptions as Mt } from "lit/decorators.js";
6
6
  import { unsafeHTML as Q } from "lit-html/directives/unsafe-html.js";
7
7
  import { when as ne } from "lit/directives/when.js";
8
8
  import { registerIconLibrary as Ha } from "@shoelace-style/shoelace";
@@ -227,7 +227,7 @@ var ca = { exports: {} };
227
227
  typeof console !== a && (J.call(this), this[$].apply(this, arguments));
228
228
  };
229
229
  }
230
- function T($, V, C) {
230
+ function M($, V, C) {
231
231
  return _($) || F.apply(this, arguments);
232
232
  }
233
233
  function N($, V) {
@@ -290,7 +290,7 @@ var ca = { exports: {} };
290
290
  WARN: 3,
291
291
  ERROR: 4,
292
292
  SILENT: 5
293
- }, C.methodFactory = V || T, C.getLevel = function() {
293
+ }, C.methodFactory = V || M, C.getLevel = function() {
294
294
  return ce ?? Ae ?? Ee;
295
295
  }, C.setLevel = function(q, B) {
296
296
  return ce = ye(q), B !== !1 && mt(ce), J.call(C);
@@ -517,16 +517,16 @@ Ge = Et([
517
517
  Z("cb-icon")
518
518
  ], Ge);
519
519
  let Xa = (c) => crypto.getRandomValues(new Uint8Array(c)), Ga = (c, e, a) => {
520
- let s = (2 << Math.log(c.length - 1) / Math.LN2) - 1, n = -~(1.6 * s * e / c.length);
520
+ let s = (2 << Math.log2(c.length - 1)) - 1, n = -~(1.6 * s * e / c.length);
521
521
  return (d = e) => {
522
522
  let f = "";
523
523
  for (; ; ) {
524
- let x = a(n), S = n;
524
+ let x = a(n), S = n | 0;
525
525
  for (; S--; )
526
- if (f += c[x[S] & s] || "", f.length === d) return f;
526
+ if (f += c[x[S] & s] || "", f.length >= d) return f;
527
527
  }
528
528
  };
529
- }, Za = (c, e = 21) => Ga(c, e, Xa);
529
+ }, Za = (c, e = 21) => Ga(c, e | 0, Xa);
530
530
  const Ja = Za("1234567890abcdefghijklmnopqrstuvwxyz", 10);
531
531
  function Ve(c = 10) {
532
532
  return Ja(c);
@@ -971,54 +971,55 @@ class P extends kt {
971
971
  }
972
972
  handleWscMessage(e) {
973
973
  var a;
974
- switch (this.lastConversationUpdate = Date.now(), e == null ? void 0 : e.type) {
975
- case "message": {
976
- if (this.replyMessage)
977
- this.streamingResponseInProgress ? (this.finishStreamingResponse(e.text), this.streamingResponseInProgress = !1) : (this.replyMessage.data.text = e.text, this.updateMessage(this.replyMessage, "")), this.replyMessage = null;
978
- else {
979
- const s = {
974
+ if ((e == null ? void 0 : e.type) !== "ack")
975
+ switch (this.lastConversationUpdate = Date.now(), e == null ? void 0 : e.type) {
976
+ case "message": {
977
+ if (this.replyMessage)
978
+ this.streamingResponseInProgress ? (this.finishStreamingResponse(e.text), this.streamingResponseInProgress = !1) : (this.replyMessage.data.text = e.text, this.updateMessage(this.replyMessage, "")), this.replyMessage = null;
979
+ else {
980
+ const s = {
981
+ id: (e == null ? void 0 : e.id) || null,
982
+ type: "text",
983
+ author: "assistant",
984
+ data: {
985
+ text: e.text
986
+ }
987
+ };
988
+ "userName" in e && (s.data.userName = e.userName), "userAvatar" in e && (s.data.userAvatar = e.userAvatar);
989
+ const n = this.formatMessage(s);
990
+ this.messages = this.messages.concat([n]);
991
+ }
992
+ break;
993
+ }
994
+ case "message-chunk": {
995
+ e.text && this.processStreamingResponse(e.text);
996
+ break;
997
+ }
998
+ case "typing": {
999
+ this.replyMessage = {
980
1000
  id: (e == null ? void 0 : e.id) || null,
981
- type: "text",
982
1001
  author: "assistant",
1002
+ type: "text",
1003
+ isThinking: !0,
983
1004
  data: {
984
- text: e.text
1005
+ text: ""
985
1006
  }
986
- };
987
- "userName" in e && (s.data.userName = e.userName), "userAvatar" in e && (s.data.userAvatar = e.userAvatar);
988
- const n = this.formatMessage(s);
989
- this.messages = this.messages.concat([n]);
1007
+ }, this.addMessage(this.replyMessage);
1008
+ break;
990
1009
  }
991
- break;
992
- }
993
- case "message-chunk": {
994
- e.text && this.processStreamingResponse(e.text);
995
- break;
996
- }
997
- case "typing": {
998
- this.replyMessage = {
999
- id: (e == null ? void 0 : e.id) || null,
1000
- author: "assistant",
1001
- type: "text",
1002
- isThinking: !0,
1003
- data: {
1004
- text: ""
1010
+ case "form": {
1011
+ if (I.info("Got form:", e), this.replyMessage && this.replyMessage.id) {
1012
+ const s = ((a = this.replyMessage.data) == null ? void 0 : a.text) || "";
1013
+ (this.replyMessage.isThinking || s.trim() === "") && (this.removeMessage(this.replyMessage.id), this.replyMessage = null);
1005
1014
  }
1006
- }, this.addMessage(this.replyMessage);
1007
- break;
1008
- }
1009
- case "form": {
1010
- if (I.info("Got form:", e), this.replyMessage && this.replyMessage.id) {
1011
- const s = ((a = this.replyMessage.data) == null ? void 0 : a.text) || "";
1012
- (this.replyMessage.isThinking || s.trim() === "") && (this.removeMessage(this.replyMessage.id), this.replyMessage = null);
1015
+ this.initForm(e.form);
1016
+ break;
1017
+ }
1018
+ case "actions": {
1019
+ this.addActions((e == null ? void 0 : e.actions) || []);
1020
+ break;
1013
1021
  }
1014
- this.initForm(e.form);
1015
- break;
1016
- }
1017
- case "actions": {
1018
- this.addActions((e == null ? void 0 : e.actions) || []);
1019
- break;
1020
1022
  }
1021
- }
1022
1023
  }
1023
1024
  processStreamingResponseTagBr() {
1024
1025
  var a, s;
@@ -1854,20 +1855,20 @@ var sa = { exports: {} };
1854
1855
  }
1855
1856
  function F(t) {
1856
1857
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = i.onElement, r = i.withCallback, l = i.avoidDuplicate, h = l === void 0 || l, b = i.once, u = b !== void 0 && b, y = i.useCapture, m = y !== void 0 && y, w = arguments.length > 2 ? arguments[2] : void 0, k = o || [];
1857
- function M(E) {
1858
- L(r) && r.call(w, E, this), u && M.destroy();
1858
+ function T(E) {
1859
+ L(r) && r.call(w, E, this), u && T.destroy();
1859
1860
  }
1860
- return q(k) && (k = document.querySelectorAll(k)), M.destroy = function() {
1861
+ return q(k) && (k = document.querySelectorAll(k)), T.destroy = function() {
1861
1862
  _(k, function(E) {
1862
- var A = J(E, t, M);
1863
- A.found && A.all.splice(A.evt, 1), E.removeEventListener && E.removeEventListener(t, M, m);
1863
+ var A = J(E, t, T);
1864
+ A.found && A.all.splice(A.evt, 1), E.removeEventListener && E.removeEventListener(t, T, m);
1864
1865
  });
1865
1866
  }, _(k, function(E) {
1866
- var A = J(E, t, M);
1867
- (E.addEventListener && h && !A.found || !h) && (E.addEventListener(t, M, m), A.all.push({ eventName: t, fn: M }));
1868
- }), M;
1867
+ var A = J(E, t, T);
1868
+ (E.addEventListener && h && !A.found || !h) && (E.addEventListener(t, T, m), A.all.push({ eventName: t, fn: T }));
1869
+ }), T;
1869
1870
  }
1870
- function T(t, i) {
1871
+ function M(t, i) {
1871
1872
  _(i.split(" "), function(o) {
1872
1873
  return t.classList.add(o);
1873
1874
  });
@@ -1892,7 +1893,7 @@ var sa = { exports: {} };
1892
1893
  if (i === "none") return L(o) && o(), !1;
1893
1894
  var r = mt(), l = i.split(" ");
1894
1895
  _(l, function(h) {
1895
- T(t, "g" + h);
1896
+ M(t, "g" + h);
1896
1897
  }), F(r, { onElement: t, avoidDuplicate: !1, once: !0, withCallback: function(h, b) {
1897
1898
  _(l, function(u) {
1898
1899
  N(b, "g" + u);
@@ -2038,10 +2039,10 @@ var sa = { exports: {} };
2038
2039
  if (!b || b.length <= 0) return;
2039
2040
  if (!l) {
2040
2041
  var u = zt();
2041
- return void (u && (u.focus(), T(u, "focused")));
2042
+ return void (u && (u.focus(), M(u, "focused")));
2042
2043
  }
2043
2044
  var y = zt(l.getAttribute("data-taborder"));
2044
- N(l, "focused"), y && (y.focus(), T(y, "focused"));
2045
+ N(l, "focused"), y && (y.focus(), M(y, "focused"));
2045
2046
  }
2046
2047
  r == 39 && t.nextSlide(), r == 37 && t.prevSlide(), r == 27 && t.close();
2047
2048
  } });
@@ -2092,12 +2093,12 @@ var sa = { exports: {} };
2092
2093
  var i = this, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2093
2094
  n(this, t);
2094
2095
  var r = o.dragEl, l = o.toleranceX, h = l === void 0 ? 40 : l, b = o.toleranceY, u = b === void 0 ? 65 : b, y = o.slide, m = y === void 0 ? null : y, w = o.instance, k = w === void 0 ? null : w;
2095
- this.el = r, this.active = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.direction = null, this.lastDirection = null, this.toleranceX = h, this.toleranceY = u, this.toleranceReached = !1, this.dragContainer = this.el, this.slide = m, this.instance = k, this.el.addEventListener("mousedown", function(M) {
2096
- return i.dragStart(M);
2097
- }, !1), this.el.addEventListener("mouseup", function(M) {
2098
- return i.dragEnd(M);
2099
- }, !1), this.el.addEventListener("mousemove", function(M) {
2100
- return i.drag(M);
2096
+ this.el = r, this.active = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.direction = null, this.lastDirection = null, this.toleranceX = h, this.toleranceY = u, this.toleranceReached = !1, this.dragContainer = this.el, this.slide = m, this.instance = k, this.el.addEventListener("mousedown", function(T) {
2097
+ return i.dragStart(T);
2098
+ }, !1), this.el.addEventListener("mouseup", function(T) {
2099
+ return i.dragEnd(T);
2100
+ }, !1), this.el.addEventListener("mousemove", function(T) {
2101
+ return i.drag(T);
2101
2102
  }, !1);
2102
2103
  }, [{ key: "dragStart", value: function(t) {
2103
2104
  if (this.slide.classList.contains("zoomed")) this.active = !1;
@@ -2148,18 +2149,18 @@ var sa = { exports: {} };
2148
2149
  }
2149
2150
  function xa(t, i, o, r) {
2150
2151
  var l = this, h = t.querySelector(".ginner-container"), b = "gvideo" + o, u = t.querySelector(".gslide-media"), y = this.getAllPlayers();
2151
- T(h, "gvideo-container"), u.insertBefore(ce('<div class="gvideo-wrapper"></div>'), u.firstChild);
2152
+ M(h, "gvideo-container"), u.insertBefore(ce('<div class="gvideo-wrapper"></div>'), u.firstChild);
2152
2153
  var m = t.querySelector(".gvideo-wrapper");
2153
2154
  Qe(this.settings.plyr.css, "Plyr");
2154
- var w = i.href, k = i == null ? void 0 : i.videoProvider, M = !1;
2155
+ var w = i.href, k = i == null ? void 0 : i.videoProvider, T = !1;
2155
2156
  u.style.maxWidth = i.width, Qe(this.settings.plyr.js, "Plyr", function() {
2156
2157
  if (!k && w.match(/vimeo\.com\/([0-9]*)/) && (k = "vimeo"), !k && (w.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || w.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || w.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || w.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/)) && (k = "youtube"), k === "local" || !k) {
2157
2158
  k = "local";
2158
2159
  var E = '<video id="' + b + '" ';
2159
- E += 'style="background:#000; max-width: '.concat(i.width, ';" '), E += 'preload="metadata" ', E += 'x-webkit-airplay="allow" ', E += "playsinline ", E += "controls ", E += 'class="gvideo-local">', E += '<source src="'.concat(w, '">'), M = ce(E += "</video>");
2160
+ E += 'style="background:#000; max-width: '.concat(i.width, ';" '), E += 'preload="metadata" ', E += 'x-webkit-airplay="allow" ', E += "playsinline ", E += "controls ", E += 'class="gvideo-local">', E += '<source src="'.concat(w, '">'), T = ce(E += "</video>");
2160
2161
  }
2161
- var A = M || ce('<div id="'.concat(b, '" data-plyr-provider="').concat(k, '" data-plyr-embed-id="').concat(w, '"></div>'));
2162
- T(m, "".concat(k, "-video gvideo")), m.appendChild(A), m.setAttribute("data-id", b), m.setAttribute("data-index", o);
2162
+ var A = T || ce('<div id="'.concat(b, '" data-plyr-provider="').concat(k, '" data-plyr-embed-id="').concat(w, '"></div>'));
2163
+ M(m, "".concat(k, "-video gvideo")), m.appendChild(A), m.setAttribute("data-id", b), m.setAttribute("data-index", o);
2163
2164
  var U = W(l.settings.plyr, "config") ? l.settings.plyr.config : {}, de = new Plyr("#" + b, U);
2164
2165
  de.on("ready", function(re) {
2165
2166
  y[b] = re.detail.plyr, L(r) && r();
@@ -2172,7 +2173,7 @@ var sa = { exports: {} };
2172
2173
  }
2173
2174
  function jt(t) {
2174
2175
  var i = $(t.target, ".gslide-media");
2175
- t.type === "enterfullscreen" && T(i, "fullscreen"), t.type === "exitfullscreen" && N(i, "fullscreen");
2176
+ t.type === "enterfullscreen" && M(i, "fullscreen"), t.type === "exitfullscreen" && N(i, "fullscreen");
2176
2177
  }
2177
2178
  function ka(t, i, o, r) {
2178
2179
  var l, h = this, b = t.querySelector(".gslide-media"), u = !(!W(i, "href") || !i.href) && i.href.split("#").pop().trim(), y = !(!W(i, "content") || !i.content) && i.content;
@@ -2185,18 +2186,18 @@ var sa = { exports: {} };
2185
2186
  var w = document.getElementById(u);
2186
2187
  if (!w) return !1;
2187
2188
  var k = w.cloneNode(!0);
2188
- k.style.height = i.height, k.style.maxWidth = i.width, T(k, "ginlined-content"), l = k;
2189
+ k.style.height = i.height, k.style.maxWidth = i.width, M(k, "ginlined-content"), l = k;
2189
2190
  }
2190
2191
  if (!l) return console.error("Unable to append inline slide content", i), !1;
2191
- b.style.height = i.height, b.style.width = i.width, b.appendChild(l), this.events["inlineclose" + u] = F("click", { onElement: b.querySelectorAll(".gtrigger-close"), withCallback: function(M) {
2192
- M.preventDefault(), h.close();
2192
+ b.style.height = i.height, b.style.width = i.width, b.appendChild(l), this.events["inlineclose" + u] = F("click", { onElement: b.querySelectorAll(".gtrigger-close"), withCallback: function(T) {
2193
+ T.preventDefault(), h.close();
2193
2194
  } }), L(r) && r();
2194
2195
  }
2195
2196
  function Ca(t, i, o, r) {
2196
2197
  var l = t.querySelector(".gslide-media"), h = function(b) {
2197
2198
  var u = b.url, y = b.allow, m = b.callback, w = b.appendTo, k = document.createElement("iframe");
2198
2199
  return k.className = "vimeo-video gvideo", k.src = u, k.style.width = "100%", k.style.height = "100%", y && k.setAttribute("allow", y), k.onload = function() {
2199
- k.onload = null, T(k, "node-ready"), L(m) && m();
2200
+ k.onload = null, M(k, "node-ready"), L(m) && m();
2200
2201
  }, w && w.appendChild(k), k;
2201
2202
  }({ url: i.href, callback: r });
2202
2203
  l.parentNode.style.maxWidth = i.width, l.parentNode.style.height = i.height, l.appendChild(h);
@@ -2250,8 +2251,8 @@ var sa = { exports: {} };
2250
2251
  k && (r.description = k);
2251
2252
  }
2252
2253
  if (!r.description) {
2253
- var M = t.querySelector(".glightbox-desc");
2254
- M && (r.description = M.innerHTML);
2254
+ var T = t.querySelector(".glightbox-desc");
2255
+ T && (r.description = T.innerHTML);
2255
2256
  }
2256
2257
  return this.setSize(r, i, t), this.slideConfig = r, r;
2257
2258
  } }, { key: "setSize", value: function(t, i) {
@@ -2268,18 +2269,18 @@ var sa = { exports: {} };
2268
2269
  if (K(i, "loaded")) return !1;
2269
2270
  var r = this.instance.settings, l = this.slideConfig, h = ye();
2270
2271
  L(r.beforeSlideLoad) && r.beforeSlideLoad({ index: this.index, slide: i, player: !1 });
2271
- var b = l.type, u = l.descPosition, y = i.querySelector(".gslide-media"), m = i.querySelector(".gslide-title"), w = i.querySelector(".gslide-desc"), k = i.querySelector(".gdesc-inner"), M = o, E = "gSlideTitle_" + this.index, A = "gSlideDesc_" + this.index;
2272
- if (L(r.afterSlideLoad) && (M = function() {
2272
+ var b = l.type, u = l.descPosition, y = i.querySelector(".gslide-media"), m = i.querySelector(".gslide-title"), w = i.querySelector(".gslide-desc"), k = i.querySelector(".gdesc-inner"), T = o, E = "gSlideTitle_" + this.index, A = "gSlideDesc_" + this.index;
2273
+ if (L(r.afterSlideLoad) && (T = function() {
2273
2274
  L(o) && o(), r.afterSlideLoad({ index: t.index, slide: i, player: t.instance.getSlidePlayerInstance(t.index) });
2274
- }), l.title == "" && l.description == "" ? k && k.parentNode.parentNode.removeChild(k.parentNode) : (m && l.title !== "" ? (m.id = E, m.innerHTML = l.title) : m.parentNode.removeChild(m), w && l.description !== "" ? (w.id = A, h && r.moreLength > 0 ? (l.smallDescription = this.slideShortDesc(l.description, r.moreLength, r.moreText), w.innerHTML = l.smallDescription, this.descriptionEvents(w, l)) : w.innerHTML = l.description) : w.parentNode.removeChild(w), T(y.parentNode, "desc-".concat(u)), T(k.parentNode, "description-".concat(u))), T(y, "gslide-".concat(b)), T(i, "loaded"), b !== "video") {
2275
- if (b !== "external") return b === "inline" ? (ka.apply(this.instance, [i, l, this.index, M]), void (l.draggable && new Ot({ dragEl: i.querySelector(".gslide-inline"), toleranceX: r.dragToleranceX, toleranceY: r.dragToleranceY, slide: i, instance: this.instance }))) : void (b !== "image" ? L(M) && M() : wa(i, l, this.index, function() {
2275
+ }), l.title == "" && l.description == "" ? k && k.parentNode.parentNode.removeChild(k.parentNode) : (m && l.title !== "" ? (m.id = E, m.innerHTML = l.title) : m.parentNode.removeChild(m), w && l.description !== "" ? (w.id = A, h && r.moreLength > 0 ? (l.smallDescription = this.slideShortDesc(l.description, r.moreLength, r.moreText), w.innerHTML = l.smallDescription, this.descriptionEvents(w, l)) : w.innerHTML = l.description) : w.parentNode.removeChild(w), M(y.parentNode, "desc-".concat(u)), M(k.parentNode, "description-".concat(u))), M(y, "gslide-".concat(b)), M(i, "loaded"), b !== "video") {
2276
+ if (b !== "external") return b === "inline" ? (ka.apply(this.instance, [i, l, this.index, T]), void (l.draggable && new Ot({ dragEl: i.querySelector(".gslide-inline"), toleranceX: r.dragToleranceX, toleranceY: r.dragToleranceY, slide: i, instance: this.instance }))) : void (b !== "image" ? L(T) && T() : wa(i, l, this.index, function() {
2276
2277
  var U = i.querySelector("img");
2277
- l.draggable && new Ot({ dragEl: U, toleranceX: r.dragToleranceX, toleranceY: r.dragToleranceY, slide: i, instance: t.instance }), l.zoomable && U.naturalWidth > U.offsetWidth && (T(U, "zoomable"), new va(U, i, function() {
2278
+ l.draggable && new Ot({ dragEl: U, toleranceX: r.dragToleranceX, toleranceY: r.dragToleranceY, slide: i, instance: t.instance }), l.zoomable && U.naturalWidth > U.offsetWidth && (M(U, "zoomable"), new va(U, i, function() {
2278
2279
  t.instance.resize();
2279
- })), L(M) && M();
2280
+ })), L(T) && T();
2280
2281
  }));
2281
- Ca.apply(this, [i, l, this.index, M]);
2282
- } else xa.apply(this.instance, [i, l, this.index, M]);
2282
+ Ca.apply(this, [i, l, this.index, T]);
2283
+ } else xa.apply(this.instance, [i, l, this.index, T]);
2283
2284
  } }, { key: "slideShortDesc", value: function(t) {
2284
2285
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 50, o = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = document.createElement("div");
2285
2286
  r.innerHTML = t;
@@ -2294,9 +2295,9 @@ var sa = { exports: {} };
2294
2295
  l.preventDefault();
2295
2296
  var b = document.body, u = $(h, ".gslide-desc");
2296
2297
  if (!u) return !1;
2297
- u.innerHTML = i.description, T(b, "gdesc-open");
2298
+ u.innerHTML = i.description, M(b, "gdesc-open");
2298
2299
  var y = F("click", { onElement: [b, $(u, ".gslide-description")], withCallback: function(m, w) {
2299
- m.target.nodeName.toLowerCase() !== "a" && (N(b, "gdesc-open"), T(b, "gdesc-closed"), u.innerHTML = i.smallDescription, o.descriptionEvents(u, i), setTimeout(function() {
2300
+ m.target.nodeName.toLowerCase() !== "a" && (N(b, "gdesc-open"), M(b, "gdesc-closed"), u.innerHTML = i.smallDescription, o.descriptionEvents(u, i), setTimeout(function() {
2300
2301
  N(b, "gdesc-closed");
2301
2302
  }, 400), y.destroy());
2302
2303
  } });
@@ -2341,7 +2342,7 @@ var sa = { exports: {} };
2341
2342
  var o = new $a(t);
2342
2343
  return o.add(i), o;
2343
2344
  }
2344
- var Ma = f(function t(i, o) {
2345
+ var Ta = f(function t(i, o) {
2345
2346
  n(this, t), this.element = typeof i == "string" ? document.querySelector(i) : i, this.start = this.start.bind(this), this.move = this.move.bind(this), this.end = this.end.bind(this), this.cancel = this.cancel.bind(this), this.element.addEventListener("touchstart", this.start, !1), this.element.addEventListener("touchmove", this.move, !1), this.element.addEventListener("touchend", this.end, !1), this.element.addEventListener("touchcancel", this.cancel, !1), this.preV = { x: null, y: null }, this.pinchStartLen = null, this.zoom = 1, this.isDoubleTap = !1;
2346
2347
  var r = function() {
2347
2348
  };
@@ -2410,13 +2411,13 @@ var sa = { exports: {} };
2410
2411
  var b, u = document.createElement("fakeelement"), y = { transition: "transitionend", OTransition: "oTransitionEnd", MozTransition: "transitionend", WebkitTransition: "webkitTransitionEnd" };
2411
2412
  for (b in y) if (u.style[b] !== void 0) return y[b];
2412
2413
  }(), o = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, r = K(t, "gslide-media") ? t : t.querySelector(".gslide-media"), l = $(r, ".ginner-container"), h = t.querySelector(".gslide-description");
2413
- o > 769 && (r = l), T(r, "greset"), C(r, "translate3d(0, 0, 0)"), F(i, { onElement: r, once: !0, withCallback: function(b, u) {
2414
+ o > 769 && (r = l), M(r, "greset"), C(r, "translate3d(0, 0, 0)"), F(i, { onElement: r, once: !0, withCallback: function(b, u) {
2414
2415
  N(r, "greset");
2415
2416
  } }), r.style.opacity = "", h && (h.style.opacity = "");
2416
2417
  }
2417
- function Ta(t) {
2418
+ function Ma(t) {
2418
2419
  if (t.events.hasOwnProperty("touch")) return !1;
2419
- var i, o, r, l = ie(), h = l.width, b = l.height, u = !1, y = null, m = null, w = null, k = !1, M = 1, E = 1, A = !1, U = !1, de = null, re = null, X = null, Se = null, he = 0, je = 0, He = !1, Be = !1, ue = {}, Le = {}, Vt = 0, Dt = 0, Ia = document.getElementById("glightbox-slider"), ct = document.querySelector(".goverlay"), La = new Ma(Ia, { touchStart: function(H) {
2420
+ var i, o, r, l = ie(), h = l.width, b = l.height, u = !1, y = null, m = null, w = null, k = !1, T = 1, E = 1, A = !1, U = !1, de = null, re = null, X = null, Se = null, he = 0, je = 0, He = !1, Be = !1, ue = {}, Le = {}, Vt = 0, Dt = 0, Ia = document.getElementById("glightbox-slider"), ct = document.querySelector(".goverlay"), La = new Ta(Ia, { touchStart: function(H) {
2420
2421
  if (u = !0, (K(H.targetTouches[0].target, "ginner-container") || $(H.targetTouches[0].target, ".gslide-desc") || H.targetTouches[0].target.nodeName.toLowerCase() == "a") && (u = !1), $(H.targetTouches[0].target, ".gslide-inline") && !K(H.targetTouches[0].target.parentNode, "gslide-inline") && (u = !1), u) {
2421
2422
  if (Le = H.targetTouches[0], ue.pageX = H.targetTouches[0].pageX, ue.pageY = H.targetTouches[0].pageY, Vt = H.targetTouches[0].clientX, Dt = H.targetTouches[0].clientY, y = t.activeSlide, m = y.querySelector(".gslide-media"), r = y.querySelector(".gslide-inline"), w = null, K(m, "gslide-image") && (w = m.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (m = y.querySelector(".ginner-container")), N(ct, "greset"), H.pageX > 20 && H.pageX < window.innerWidth - 20) return;
2422
2423
  H.preventDefault();
@@ -2436,7 +2437,7 @@ var sa = { exports: {} };
2436
2437
  if (u) {
2437
2438
  if (k = !1, U || A) return X = de, void (Se = re);
2438
2439
  var H = Math.abs(parseInt(je)), ae = Math.abs(parseInt(he));
2439
- if (!(H > 29 && w)) return H < 29 && ae < 25 ? (T(ct, "greset"), ct.style.opacity = 1, yt(m)) : void 0;
2440
+ if (!(H > 29 && w)) return H < 29 && ae < 25 ? (M(ct, "greset"), ct.style.opacity = 1, yt(m)) : void 0;
2440
2441
  t.close();
2441
2442
  }
2442
2443
  }, multipointEnd: function() {
@@ -2444,11 +2445,11 @@ var sa = { exports: {} };
2444
2445
  A = !1;
2445
2446
  }, 50);
2446
2447
  }, multipointStart: function() {
2447
- A = !0, M = E || 1;
2448
+ A = !0, T = E || 1;
2448
2449
  }, pinch: function(H) {
2449
2450
  if (!w || k) return !1;
2450
- A = !0, w.scaleX = w.scaleY = M * H.zoom;
2451
- var ae = M * H.zoom;
2451
+ A = !0, w.scaleX = w.scaleY = T * H.zoom;
2452
+ var ae = T * H.zoom;
2452
2453
  if (U = !0, ae <= 1) return U = !1, ae = 1, Se = null, X = null, de = null, re = null, void w.setAttribute("style", "");
2453
2454
  ae > 4.5 && (ae = 4.5), w.style.transform = "scale3d(".concat(ae, ", ").concat(ae, ", 1)"), E = ae;
2454
2455
  }, pressMove: function(H) {
@@ -2516,9 +2517,9 @@ var sa = { exports: {} };
2516
2517
  var l = document.body, h = window.innerWidth - document.documentElement.clientWidth;
2517
2518
  if (h > 0) {
2518
2519
  var b = document.createElement("style");
2519
- b.type = "text/css", b.className = "gcss-styles", b.innerText = ".gscrollbar-fixer {margin-right: ".concat(h, "px}"), document.head.appendChild(b), T(l, "gscrollbar-fixer");
2520
+ b.type = "text/css", b.className = "gcss-styles", b.innerText = ".gscrollbar-fixer {margin-right: ".concat(h, "px}"), document.head.appendChild(b), M(l, "gscrollbar-fixer");
2520
2521
  }
2521
- T(l, "glightbox-open"), T(Rt, "glightbox-open"), Ht && (T(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(o, !0), this.elements.length === 1 ? (T(this.prevButton, "glightbox-button-hidden"), T(this.nextButton, "glightbox-button-hidden")) : (N(this.prevButton, "glightbox-button-hidden"), N(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), L(this.settings.onOpen) && this.settings.onOpen(), Bt && this.settings.touchNavigation && Ta(this), this.settings.keyboardNavigation && ya(this);
2522
+ M(l, "glightbox-open"), M(Rt, "glightbox-open"), Ht && (M(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(o, !0), this.elements.length === 1 ? (M(this.prevButton, "glightbox-button-hidden"), M(this.nextButton, "glightbox-button-hidden")) : (N(this.prevButton, "glightbox-button-hidden"), N(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), L(this.settings.onOpen) && this.settings.onOpen(), Bt && this.settings.touchNavigation && Ma(this), this.settings.keyboardNavigation && ya(this);
2522
2523
  } }, { key: "openAt", value: function() {
2523
2524
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
2524
2525
  this.open(null, t);
@@ -2591,11 +2592,11 @@ var sa = { exports: {} };
2591
2592
  }
2592
2593
  setTimeout(function() {
2593
2594
  o.resize(t);
2594
- }, 100), T(t, "current");
2595
+ }, 100), M(t, "current");
2595
2596
  } }, { key: "slideAnimateOut", value: function() {
2596
2597
  if (!this.prevActiveSlide) return !1;
2597
2598
  var t = this.prevActiveSlide;
2598
- N(t, this.effectsClasses), T(t, "prev");
2599
+ N(t, this.effectsClasses), M(t, "prev");
2599
2600
  var i = this.settings.slideEffect, o = i !== "none" ? this.settings.cssEfects[i].out : i;
2600
2601
  this.slidePlayerPause(t), this.trigger("slide_before_change", { prev: { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlideIndex, slideConfig: oe(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: oe(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, current: { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideIndex: this.index, slideConfig: this.elements[this.index].slideConfig, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) } }), L(this.settings.beforeSlideChange) && this.settings.beforeSlideChange.apply(this, [{ index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, { index: this.index, slide: this.activeSlide, player: this.getSlidePlayerInstance(this.index) }]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (o = this.settings.cssEfects.slideBack.out), V(t, o, function() {
2601
2602
  var r = t.querySelector(".ginner-container"), l = t.querySelector(".gslide-media"), h = t.querySelector(".gslide-description");
@@ -2695,7 +2696,7 @@ var sa = { exports: {} };
2695
2696
  var u = document.getElementById("glightbox-body");
2696
2697
  this.modal = u;
2697
2698
  var y = u.querySelector(".gclose");
2698
- this.prevButton = u.querySelector(".gprev"), this.nextButton = u.querySelector(".gnext"), this.overlay = u.querySelector(".goverlay"), this.loader = u.querySelector(".gloader"), this.slidesContainer = document.getElementById("glightbox-slider"), this.bodyHiddenChildElms = o, this.events = {}, T(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && y && (this.events.close = F("click", { onElement: y, withCallback: function(m, w) {
2699
+ this.prevButton = u.querySelector(".gprev"), this.nextButton = u.querySelector(".gnext"), this.overlay = u.querySelector(".goverlay"), this.loader = u.querySelector(".gloader"), this.slidesContainer = document.getElementById("glightbox-slider"), this.bodyHiddenChildElms = o, this.events = {}, M(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && y && (this.events.close = F("click", { onElement: y, withCallback: function(m, w) {
2699
2700
  m.preventDefault(), t.close();
2700
2701
  } })), y && !this.settings.closeButton && y.parentNode.removeChild(y), this.nextButton && (this.events.next = F("click", { onElement: this.nextButton, withCallback: function(m, w) {
2701
2702
  m.preventDefault(), t.nextSlide();
@@ -2705,20 +2706,20 @@ var sa = { exports: {} };
2705
2706
  t.preventOutsideClick || K(document.body, "glightbox-mobile") || $(m.target, ".ginner-container") || $(m.target, ".gbtn") || K(m.target, "gnext") || K(m.target, "gprev") || t.close();
2706
2707
  } })), _(this.elements, function(m, w) {
2707
2708
  t.slidesContainer.appendChild(m.instance.create()), m.slideNode = t.slidesContainer.querySelectorAll(".gslide")[w];
2708
- }), Bt && T(document.body, "glightbox-touch"), this.events.resize = F("resize", { onElement: window, withCallback: function() {
2709
+ }), Bt && M(document.body, "glightbox-touch"), this.events.resize = F("resize", { onElement: window, withCallback: function() {
2709
2710
  t.resize();
2710
2711
  } }), this.built = !0;
2711
2712
  } }, { key: "resize", value: function() {
2712
2713
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
2713
2714
  if ((t = t || this.activeSlide) && !K(t, "zoomed")) {
2714
2715
  var i = ie(), o = t.querySelector(".gvideo-wrapper"), r = t.querySelector(".gslide-image"), l = this.slideDescription, h = i.width, b = i.height;
2715
- if (h <= 768 ? T(document.body, "glightbox-mobile") : N(document.body, "glightbox-mobile"), o || r) {
2716
+ if (h <= 768 ? M(document.body, "glightbox-mobile") : N(document.body, "glightbox-mobile"), o || r) {
2716
2717
  var u = !1;
2717
2718
  if (l && (K(l, "description-bottom") || K(l, "description-top")) && !K(l, "gabsolute") && (u = !0), r) {
2718
2719
  if (h <= 768) r.querySelector("img");
2719
2720
  else if (u) {
2720
- var y, m = l.offsetHeight, w = r.querySelector("img"), k = this.elements[this.index].node, M = (y = k.getAttribute("data-height")) !== null && y !== void 0 ? y : "100vh";
2721
- w.setAttribute("style", "max-height: calc(".concat(M, " - ").concat(m, "px)")), l.setAttribute("style", "max-width: ".concat(w.offsetWidth, "px;"));
2721
+ var y, m = l.offsetHeight, w = r.querySelector("img"), k = this.elements[this.index].node, T = (y = k.getAttribute("data-height")) !== null && y !== void 0 ? y : "100vh";
2722
+ w.setAttribute("style", "max-height: calc(".concat(T, " - ").concat(m, "px)")), l.setAttribute("style", "max-width: ".concat(w.offsetWidth, "px;"));
2722
2723
  }
2723
2724
  }
2724
2725
  if (o) {
@@ -2739,7 +2740,7 @@ var sa = { exports: {} };
2739
2740
  this.init();
2740
2741
  } }, { key: "updateNavigationClasses", value: function() {
2741
2742
  var t = this.loop();
2742
- N(this.nextButton, "disabled"), N(this.prevButton, "disabled"), this.index == 0 && this.elements.length - 1 == 0 ? (T(this.prevButton, "disabled"), T(this.nextButton, "disabled")) : this.index !== 0 || t ? this.index !== this.elements.length - 1 || t || T(this.nextButton, "disabled") : T(this.prevButton, "disabled");
2743
+ N(this.nextButton, "disabled"), N(this.prevButton, "disabled"), this.index == 0 && this.elements.length - 1 == 0 ? (M(this.prevButton, "disabled"), M(this.nextButton, "disabled")) : this.index !== 0 || t ? this.index !== this.elements.length - 1 || t || M(this.nextButton, "disabled") : M(this.prevButton, "disabled");
2743
2744
  } }, { key: "loop", value: function() {
2744
2745
  var t = W(this.settings, "loopAtEnd") ? this.settings.loopAtEnd : null;
2745
2746
  return t = W(this.settings, "loop") ? this.settings.loop : t, t;
@@ -2755,7 +2756,7 @@ var sa = { exports: {} };
2755
2756
  if (this.closing) return !1;
2756
2757
  this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length && _(this.bodyHiddenChildElms, function(o) {
2757
2758
  o.removeAttribute("aria-hidden");
2758
- }), T(this.modal, "glightbox-closing"), V(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), V(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, function() {
2759
+ }), M(this.modal, "glightbox-closing"), V(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), V(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, function() {
2759
2760
  if (t.activeSlide = null, t.prevActiveSlideIndex = null, t.prevActiveSlide = null, t.built = !1, t.events) {
2760
2761
  for (var o in t.events) t.events.hasOwnProperty(o) && t.events[o].destroy();
2761
2762
  t.events = null;
@@ -2890,7 +2891,7 @@ oa([
2890
2891
  rt = oa([
2891
2892
  Z("cb-uploading")
2892
2893
  ], rt);
2893
- const Mc = Y`
2894
+ const Tc = Y`
2894
2895
  ${ge}
2895
2896
  :host {
2896
2897
  }
@@ -2911,10 +2912,10 @@ const Mc = Y`
2911
2912
  margin-right: 0.2em;
2912
2913
  }
2913
2914
  `;
2914
- var Tc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, At = (c, e, a, s) => {
2915
+ var Mc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, At = (c, e, a, s) => {
2915
2916
  for (var n = s > 1 ? void 0 : s ? Ec(e, a) : e, d = c.length - 1, f; d >= 0; d--)
2916
2917
  (f = c[d]) && (n = (s ? f(e, a, n) : f(n)) || n);
2917
- return s && n && Tc(e, a, n), n;
2918
+ return s && n && Mc(e, a, n), n;
2918
2919
  };
2919
2920
  let Ze = class extends ut {
2920
2921
  constructor() {
@@ -3015,7 +3016,7 @@ let Je = class extends ee {
3015
3016
  `;
3016
3017
  }
3017
3018
  };
3018
- Je.styles = Mc;
3019
+ Je.styles = Tc;
3019
3020
  It([
3020
3021
  v({ type: String })
3021
3022
  ], Je.prototype, "filename", 2);
@@ -4981,13 +4982,13 @@ me([
4981
4982
  xe(".cb-input-form")
4982
4983
  ], fe.prototype, "_inputForm", 2);
4983
4984
  me([
4984
- Tt({ capture: !1, passive: !0 })
4985
+ Mt({ capture: !1, passive: !0 })
4985
4986
  ], fe.prototype, "invokeLinkAction", 1);
4986
4987
  me([
4987
- Tt({ capture: !1, passive: !0 })
4988
+ Mt({ capture: !1, passive: !0 })
4988
4989
  ], fe.prototype, "invokeCalendlyAction", 1);
4989
4990
  me([
4990
- Tt({ capture: !1, passive: !0 })
4991
+ Mt({ capture: !1, passive: !0 })
4991
4992
  ], fe.prototype, "invokeHubspotMeetingAction", 1);
4992
4993
  fe = me([
4993
4994
  Z("cb-message-list")
@@ -5372,7 +5373,7 @@ var ni = Object.defineProperty, si = Object.getOwnPropertyDescriptor, Ne = (c, e
5372
5373
  (f = c[d]) && (n = (s ? f(e, a, n) : f(n)) || n);
5373
5374
  return s && n && ni(e, a, n), n;
5374
5375
  };
5375
- let Me = class extends ee {
5376
+ let Te = class extends ee {
5376
5377
  constructor() {
5377
5378
  super(...arguments), this.open = !1, this.clearMessageDialogOpen = !1, this.customRequest = !1;
5378
5379
  }
@@ -5492,25 +5493,25 @@ let Me = class extends ee {
5492
5493
  });
5493
5494
  }
5494
5495
  };
5495
- Me.styles = ii;
5496
+ Te.styles = ii;
5496
5497
  Ne([
5497
5498
  v({ type: Boolean })
5498
- ], Me.prototype, "open", 2);
5499
+ ], Te.prototype, "open", 2);
5499
5500
  Ne([
5500
5501
  v({ type: Object })
5501
- ], Me.prototype, "setting", 2);
5502
+ ], Te.prototype, "setting", 2);
5502
5503
  Ne([
5503
5504
  v({ type: Boolean })
5504
- ], Me.prototype, "clearMessageDialogOpen", 2);
5505
+ ], Te.prototype, "clearMessageDialogOpen", 2);
5505
5506
  Ne([
5506
5507
  xe("sl-dialog")
5507
- ], Me.prototype, "dialog", 2);
5508
+ ], Te.prototype, "dialog", 2);
5508
5509
  Ne([
5509
5510
  v({ type: Boolean })
5510
- ], Me.prototype, "customRequest", 2);
5511
- Me = Ne([
5511
+ ], Te.prototype, "customRequest", 2);
5512
+ Te = Ne([
5512
5513
  Z("cb-setting")
5513
- ], Me);
5514
+ ], Te);
5514
5515
  const oi = Y`
5515
5516
  ${ge}
5516
5517
  :host {
@@ -5831,7 +5832,7 @@ var xi = Object.defineProperty, ki = Object.getOwnPropertyDescriptor, Ue = (c, e
5831
5832
  return s && n && xi(e, a, n), n;
5832
5833
  };
5833
5834
  const Zt = Ke.noConflict(), Ci = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16"><path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/></svg>';
5834
- let Te = class extends ee {
5835
+ let Me = class extends ee {
5835
5836
  constructor() {
5836
5837
  super(...arguments), this.store = new pt(this, p), this.zindex = 100;
5837
5838
  }
@@ -5895,25 +5896,25 @@ let Te = class extends ee {
5895
5896
  this._comments.value = "", await p.submitFeedback(c, e, a);
5896
5897
  }
5897
5898
  };
5898
- Te.styles = wi;
5899
+ Me.styles = wi;
5899
5900
  Ue([
5900
5901
  v({ type: Number })
5901
- ], Te.prototype, "zindex", 2);
5902
+ ], Me.prototype, "zindex", 2);
5902
5903
  Ue([
5903
5904
  xe("#cb-feedback-rating-el")
5904
- ], Te.prototype, "_rating", 2);
5905
+ ], Me.prototype, "_rating", 2);
5905
5906
  Ue([
5906
5907
  xe("#cb-feedback-comments-el")
5907
- ], Te.prototype, "_comments", 2);
5908
+ ], Me.prototype, "_comments", 2);
5908
5909
  Ue([
5909
5910
  xe("#cb-feedback-name-el")
5910
- ], Te.prototype, "_name", 2);
5911
+ ], Me.prototype, "_name", 2);
5911
5912
  Ue([
5912
5913
  xe("#cb-feedback-email-el")
5913
- ], Te.prototype, "_email", 2);
5914
- Te = Ue([
5914
+ ], Me.prototype, "_email", 2);
5915
+ Me = Ue([
5915
5916
  Z("cb-dialog-feedback")
5916
- ], Te);
5917
+ ], Me);
5917
5918
  class Jt extends Error {
5918
5919
  constructor(a, s, n) {
5919
5920
  const d = a.status || a.status === 0 ? a.status : "", f = a.statusText || "", x = `${d} ${f}`.trim(), S = x ? `status code ${x}` : "an unknown error";
@@ -5980,7 +5981,7 @@ const pa = (c = {}, e = {}) => ({
5980
5981
  throw n;
5981
5982
  }
5982
5983
  return c && !e;
5983
- })(), _i = typeof globalThis.AbortController == "function", $i = typeof globalThis.ReadableStream == "function", Mi = typeof globalThis.FormData == "function", ga = ["get", "post", "put", "patch", "head", "delete"], Ti = {
5984
+ })(), _i = typeof globalThis.AbortController == "function", $i = typeof globalThis.ReadableStream == "function", Ti = typeof globalThis.FormData == "function", ga = ["get", "post", "put", "patch", "head", "delete"], Mi = {
5984
5985
  json: "application/json",
5985
5986
  text: "text/*",
5986
5987
  formData: "multipart/form-data",
@@ -6106,7 +6107,7 @@ class bt {
6106
6107
  }
6107
6108
  if (Si && (this._options.duplex = "half"), this._options.json !== void 0 && (this._options.body = ((n = (s = this._options).stringifyJson) == null ? void 0 : n.call(s, this._options.json)) ?? JSON.stringify(this._options.json), this._options.headers.set("content-type", this._options.headers.get("content-type") ?? "application/json")), this.request = new globalThis.Request(this._input, this._options), this._options.searchParams) {
6108
6109
  const f = "?" + (typeof this._options.searchParams == "string" ? this._options.searchParams.replace(/^\?/, "") : new URLSearchParams(this._options.searchParams).toString()), x = this.request.url.replace(/(?:\?.*?)?(?=#|$)/, f);
6109
- (Mi && this._options.body instanceof globalThis.FormData || this._options.body instanceof URLSearchParams) && !(this._options.headers && this._options.headers["content-type"]) && this.request.headers.delete("content-type"), this.request = new globalThis.Request(new globalThis.Request(x, { ...this.request }), this._options);
6110
+ (Ti && this._options.body instanceof globalThis.FormData || this._options.body instanceof URLSearchParams) && !(this._options.headers && this._options.headers["content-type"]) && this.request.headers.delete("content-type"), this.request = new globalThis.Request(new globalThis.Request(x, { ...this.request }), this._options);
6110
6111
  }
6111
6112
  }
6112
6113
  static create(e, a) {
@@ -6134,7 +6135,7 @@ class bt {
6134
6135
  }
6135
6136
  return x;
6136
6137
  }, f = s._options.retry.methods.includes(s.request.method.toLowerCase()) ? s._retry(n) : n();
6137
- for (const [x, S] of Object.entries(Ti))
6138
+ for (const [x, S] of Object.entries(Mi))
6138
6139
  f[x] = async () => {
6139
6140
  s.request.headers.set("accept", s.request.headers.get("accept") || S);
6140
6141
  const J = (await f).clone();
@@ -6237,12 +6238,12 @@ class bt {
6237
6238
  }
6238
6239
  }
6239
6240
  /*! MIT License © Sindre Sorhus */
6240
- const Mt = (c) => {
6241
+ const Tt = (c) => {
6241
6242
  const e = (a, s) => bt.create(a, nt(c, s));
6242
6243
  for (const a of ga)
6243
6244
  e[a] = (s, n) => bt.create(s, nt(c, n, { method: a }));
6244
- return e.create = (a) => Mt(nt(a)), e.extend = (a) => (typeof a == "function" && (a = a(c ?? {})), Mt(nt(c, a))), e.stop = ma, e;
6245
- }, Bi = Mt(), Ri = Bi.extend({
6245
+ return e.create = (a) => Tt(nt(a)), e.extend = (a) => (typeof a == "function" && (a = a(c ?? {})), Tt(nt(c, a))), e.stop = ma, e;
6246
+ }, Bi = Tt(), Ri = Bi.extend({
6246
6247
  hooks: {
6247
6248
  beforeRequest: [
6248
6249
  () => {