forge-edit 0.1.0-beta.18 → 0.1.0-beta.19

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.
@@ -54,7 +54,7 @@ function k(e, t) {
54
54
  function A(e) {
55
55
  if (e.__P && e.__d) {
56
56
  var t = e.__v, n = t.__e, r = [], i = [], a = D({}, t);
57
- a.__v = t.__v + 1, u.vnode && u.vnode(a), fe(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? k(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, N(r, a, i), t.__e = t.__ = null, a.__e != n && ie(a);
57
+ a.__v = t.__v + 1, u.vnode && u.vnode(a), pe(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? k(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, M(r, a, i), t.__e = t.__ = null, a.__e != n && ie(a);
58
58
  }
59
59
  }
60
60
  function ie(e) {
@@ -72,21 +72,21 @@ function ae() {
72
72
  f.length = ae.__r = 0;
73
73
  }
74
74
  }
75
- function M(e, t, n, r, i, a, o, s, c, l, u) {
75
+ function oe(e, t, n, r, i, a, o, s, c, l, u) {
76
76
  var d, f, p, m, h, g, _ = r && r.__k || w, v = t.length;
77
- for (c = oe(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || C, p.__i = d, g = fe(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && F(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = se(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);
77
+ for (c = se(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || C, p.__i = d, g = pe(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && P(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = ce(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);
78
78
  return n.__e = h, c;
79
79
  }
80
- function oe(e, t, n, r, i) {
80
+ function se(e, t, n, r, i) {
81
81
  var a, o, s, c, l, u = n.length, d = u, f = 0;
82
- for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = O(null, o, null, null, null) : E(o) ? o = e.__k[a] = O(ne, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = O(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = ce(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
83
- if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = k(s)), he(s, s));
82
+ for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = O(null, o, null, null, null) : E(o) ? o = e.__k[a] = O(ne, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = O(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = le(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
83
+ if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = k(s)), ge(s, s));
84
84
  return r;
85
85
  }
86
- function se(e, t, n) {
86
+ function ce(e, t, n) {
87
87
  var r, i;
88
88
  if (typeof e.type == "function") {
89
- for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = se(r[i], t, n));
89
+ for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = ce(r[i], t, n));
90
90
  return t;
91
91
  }
92
92
  e.__e != t && (t && e.type && !t.parentNode && (t = k(e)), t = n.insertBefore(e.__e, t || null));
@@ -95,7 +95,7 @@ function se(e, t, n) {
95
95
  while (t != null && t.nodeType == 8);
96
96
  return t;
97
97
  }
98
- function ce(e, t, n, r) {
98
+ function le(e, t, n, r) {
99
99
  var i, a, o, s = e.key, c = e.type, l = t[n], u = l != null && !(2 & l.__u);
100
100
  if (l === null && s == null || u && s == l.key && c == l.type) return n;
101
101
  if (r > +!!u) {
@@ -103,16 +103,16 @@ function ce(e, t, n, r) {
103
103
  }
104
104
  return -1;
105
105
  }
106
- function le(e, t, n) {
106
+ function ue(e, t, n) {
107
107
  t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || T.test(t) ? n : n + "px";
108
108
  }
109
- function ue(e, t, n, r, i) {
109
+ function de(e, t, n, r, i) {
110
110
  var a, o;
111
111
  n: if (t == "style") {
112
112
  if (typeof n == "string") e.style.cssText = n;
113
113
  else {
114
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || le(e.style, t, "");
115
- if (n) for (t in n) r && n[t] == r[t] || le(e.style, t, n[t]);
114
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || ue(e.style, t, "");
115
+ if (n) for (t in n) r && n[t] == r[t] || ue(e.style, t, n[t]);
116
116
  }
117
117
  } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(y, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[v] = r[v] : (n[v] = b, e.addEventListener(t, a ? S : x, a)) : e.removeEventListener(t, a ? S : x, a);
118
118
  else {
@@ -124,7 +124,7 @@ function ue(e, t, n, r, i) {
124
124
  typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
125
125
  }
126
126
  }
127
- function de(e) {
127
+ function fe(e) {
128
128
  return function(t) {
129
129
  if (this.l) {
130
130
  var n = this.l[t.type + e];
@@ -134,14 +134,14 @@ function de(e) {
134
134
  }
135
135
  };
136
136
  }
137
- function fe(e, t, n, r, i, a, o, s, c, l) {
137
+ function pe(e, t, n, r, i, a, o, s, c, l) {
138
138
  var d, f, p, m, h, g, _, v, y, b, x, S, C, T, te, O, A = t.type;
139
139
  if (t.constructor !== void 0) return null;
140
140
  128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (d = u.__b) && d(t);
141
141
  n: if (typeof A == "function") {
142
142
  f = o.length;
143
143
  try {
144
- if (y = t.props, b = A.prototype && A.prototype.render, x = (d = A.contextType) && r[d.__c], S = d ? x ? x.props.value : d.__ : r, n.__c ? v = (p = t.__c = n.__c).__ = p.__E : (b ? t.__c = p = new A(y, S) : (t.__c = p = new re(y, S), p.constructor = A, p.render = ge), x && x.sub(p), p.state || (p.state = {}), p.__n = r, m = p.__d = !0, p.__h = [], p._sb = []), b && p.__s == null && (p.__s = p.state), b && A.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = D({}, p.__s)), D(p.__s, A.getDerivedStateFromProps(y, p.__s))), h = p.props, g = p.state, p.__v = t, m) b && A.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), b && p.componentDidMount != null && p.__h.push(p.componentDidMount);
144
+ if (y = t.props, b = A.prototype && A.prototype.render, x = (d = A.contextType) && r[d.__c], S = d ? x ? x.props.value : d.__ : r, n.__c ? v = (p = t.__c = n.__c).__ = p.__E : (b ? t.__c = p = new A(y, S) : (t.__c = p = new re(y, S), p.constructor = A, p.render = _e), x && x.sub(p), p.state || (p.state = {}), p.__n = r, m = p.__d = !0, p.__h = [], p._sb = []), b && p.__s == null && (p.__s = p.state), b && A.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = D({}, p.__s)), D(p.__s, A.getDerivedStateFromProps(y, p.__s))), h = p.props, g = p.state, p.__v = t, m) b && A.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), b && p.componentDidMount != null && p.__h.push(p.componentDidMount);
145
145
  else {
146
146
  if (b && A.getDerivedStateFromProps == null && y !== h && p.componentWillReceiveProps != null && p.componentWillReceiveProps(y, S), t.__v == n.__v || !p.__e && p.shouldComponentUpdate != null && !1 === p.shouldComponentUpdate(y, p.__s, S)) {
147
147
  t.__v != n.__v && (p.props = y, p.state = p.__s, p.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(e) {
@@ -157,7 +157,7 @@ function fe(e, t, n, r, i, a, o, s, c, l) {
157
157
  else do
158
158
  p.__d = !1, C && C(t), d = p.render(p.props, p.state, p.context), p.state = p.__s;
159
159
  while (p.__d && ++T < 25);
160
- p.state = p.__s, p.getChildContext != null && (r = D(D({}, r), p.getChildContext())), b && !m && p.getSnapshotBeforeUpdate != null && (_ = p.getSnapshotBeforeUpdate(h, g)), te = d != null && d.type === ne && d.key == null ? P(d.props.children) : d, s = M(e, E(te) ? te : [te], t, n, r, i, a, o, s, c, l), p.base = t.__e, t.__u &= -161, p.__h.length && o.push(p), v && (p.__E = p.__ = null);
160
+ p.state = p.__s, p.getChildContext != null && (r = D(D({}, r), p.getChildContext())), b && !m && p.getSnapshotBeforeUpdate != null && (_ = p.getSnapshotBeforeUpdate(h, g)), te = d != null && d.type === ne && d.key == null ? N(d.props.children) : d, s = oe(e, E(te) ? te : [te], t, n, r, i, a, o, s, c, l), p.base = t.__e, t.__u &= -161, p.__h.length && o.push(p), v && (p.__E = p.__ = null);
161
161
  } catch (e) {
162
162
  if (o.length = f, t.__v = null, c || a != null) {
163
163
  if (e.then) {
@@ -165,16 +165,16 @@ function fe(e, t, n, r, i, a, o, s, c, l) {
165
165
  a != null && (a[a.indexOf(s)] = null), t.__e = s;
166
166
  } else if (a != null) for (O = a.length; O--;) ee(a[O]);
167
167
  } else t.__e = n.__e;
168
- t.__k ??= n.__k || [], e.then || pe(t), u.__e(e, t, n);
168
+ t.__k ??= n.__k || [], e.then || me(t), u.__e(e, t, n);
169
169
  }
170
- } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = me(n.__e, t, n, r, i, a, o, c, l);
170
+ } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = he(n.__e, t, n, r, i, a, o, c, l);
171
171
  return (d = u.diffed) && d(t), 128 & t.__u ? void 0 : s;
172
172
  }
173
- function pe(e) {
174
- e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(pe));
173
+ function me(e) {
174
+ e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(me));
175
175
  }
176
- function N(e, t, n) {
177
- for (var r = 0; r < n.length; r++) F(n[r], n[++r], n[++r]);
176
+ function M(e, t, n) {
177
+ for (var r = 0; r < n.length; r++) P(n[r], n[++r], n[++r]);
178
178
  u.__c && u.__c(t, e), e.some(function(t) {
179
179
  try {
180
180
  e = t.__h, t.__h = [], e.some(function(e) {
@@ -185,10 +185,10 @@ function N(e, t, n) {
185
185
  }
186
186
  });
187
187
  }
188
- function P(e) {
189
- return typeof e != "object" || !e || e.__b > 0 ? e : E(e) ? e.map(P) : e.constructor === void 0 ? D({}, e) : null;
188
+ function N(e) {
189
+ return typeof e != "object" || !e || e.__b > 0 ? e : E(e) ? e.map(N) : e.constructor === void 0 ? D({}, e) : null;
190
190
  }
191
- function me(e, t, n, r, i, a, o, s, c) {
191
+ function he(e, t, n, r, i, a, o, s, c) {
192
192
  var d, f, p, m, h, g, _, v = n.props || C, y = t.props, b = t.type;
193
193
  if (b == "svg" ? i = "http://www.w3.org/2000/svg" : b == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i ||= "http://www.w3.org/1999/xhtml", a != null) {
194
194
  for (d = 0; d < a.length; d++) if ((h = a[d]) && "setAttribute" in h == !!b && (b ? h.localName == b : h.nodeType == 3)) {
@@ -203,15 +203,15 @@ function me(e, t, n, r, i, a, o, s, c) {
203
203
  if (b == null) v === y || s && e.data == y || (e.data = y);
204
204
  else {
205
205
  if (a = b == "textarea" && y.defaultValue != null ? null : a && l.call(e.childNodes), !s && a != null) for (v = {}, d = 0; d < e.attributes.length; d++) v[(h = e.attributes[d]).name] = h.value;
206
- for (d in v) h = v[d], d == "dangerouslySetInnerHTML" ? p = h : d == "children" || d in y || d == "value" && "defaultValue" in y || d == "checked" && "defaultChecked" in y || ue(e, d, null, h, i);
207
- for (d in y) h = y[d], d == "children" ? m = h : d == "dangerouslySetInnerHTML" ? f = h : d == "value" ? g = h : d == "checked" ? _ = h : s && typeof h != "function" || v[d] === h || ue(e, d, h, v[d], i);
206
+ for (d in v) h = v[d], d == "dangerouslySetInnerHTML" ? p = h : d == "children" || d in y || d == "value" && "defaultValue" in y || d == "checked" && "defaultChecked" in y || de(e, d, null, h, i);
207
+ for (d in y) h = y[d], d == "children" ? m = h : d == "dangerouslySetInnerHTML" ? f = h : d == "value" ? g = h : d == "checked" ? _ = h : s && typeof h != "function" || v[d] === h || de(e, d, h, v[d], i);
208
208
  if (f) s || p && (f.__html == p.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
209
- else if (p && (e.innerHTML = ""), M(t.type == "template" ? e.content : e, E(m) ? m : [m], t, n, r, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && k(n, 0), s, c), a != null) for (d = a.length; d--;) ee(a[d]);
210
- s && b != "textarea" || (d = "value", b == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[d] || b == "progress" && !g || b == "option" && g != v[d]) && ue(e, d, g, v[d], i), d = "checked", _ != null && _ != e[d] && ue(e, d, _, v[d], i));
209
+ else if (p && (e.innerHTML = ""), oe(t.type == "template" ? e.content : e, E(m) ? m : [m], t, n, r, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && k(n, 0), s, c), a != null) for (d = a.length; d--;) ee(a[d]);
210
+ s && b != "textarea" || (d = "value", b == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[d] || b == "progress" && !g || b == "option" && g != v[d]) && de(e, d, g, v[d], i), d = "checked", _ != null && _ != e[d] && de(e, d, _, v[d], i));
211
211
  }
212
212
  return e;
213
213
  }
214
- function F(e, t, n) {
214
+ function P(e, t, n) {
215
215
  try {
216
216
  if (typeof e == "function") {
217
217
  var r = typeof e.__u == "function";
@@ -221,9 +221,9 @@ function F(e, t, n) {
221
221
  u.__e(e, n);
222
222
  }
223
223
  }
224
- function he(e, t, n) {
224
+ function ge(e, t, n) {
225
225
  var r, i;
226
- if (u.unmount && u.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || F(r, null, t)), (r = e.__c) != null) {
226
+ if (u.unmount && u.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || P(r, null, t)), (r = e.__c) != null) {
227
227
  if (r.componentWillUnmount) try {
228
228
  r.componentWillUnmount();
229
229
  } catch (e) {
@@ -231,15 +231,15 @@ function he(e, t, n) {
231
231
  }
232
232
  r.base = r.__P = r.__n = null;
233
233
  }
234
- if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && he(r[i], t, n || typeof e.type != "function");
234
+ if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && ge(r[i], t, n || typeof e.type != "function");
235
235
  n || ee(e.__e), e.__c = e.__ = e.__e = void 0;
236
236
  }
237
- function ge(e, t, n) {
237
+ function _e(e, t, n) {
238
238
  return this.constructor(e, n);
239
239
  }
240
- function _e(e, t, n) {
240
+ function ve(e, t, n) {
241
241
  var r, i, a, o;
242
- t == document && (t = document.documentElement), u.__ && u.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], fe(t, e = (!r && n || t).__k = te(ne, null, [e]), i || C, C, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? l.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), N(a, e, o), e.props.children = null;
242
+ t == document && (t = document.documentElement), u.__ && u.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], pe(t, e = (!r && n || t).__k = te(ne, null, [e]), i || C, C, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? l.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), M(a, e, o), e.props.children = null;
243
243
  }
244
244
  l = w.slice, u = { __e: function(e, t, n, r) {
245
245
  for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {
@@ -255,12 +255,12 @@ l = w.slice, u = { __e: function(e, t, n, r) {
255
255
  this.__v && (this.__e = !0, e && this.__h.push(e), j(this));
256
256
  }, re.prototype.render = ne, f = [], m = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, h = function(e, t) {
257
257
  return e.__v.__b - t.__v.__b;
258
- }, ae.__r = 0, g = Math.random().toString(8), _ = "__d" + g, v = "__a" + g, y = /(PointerCapture)$|Capture$/i, b = 0, x = de(!1), S = de(!0);
258
+ }, ae.__r = 0, g = Math.random().toString(8), _ = "__d" + g, v = "__a" + g, y = /(PointerCapture)$|Capture$/i, b = 0, x = fe(!1), S = fe(!0);
259
259
  //#endregion
260
260
  //#region node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
261
- var I = 0;
261
+ var F = 0;
262
262
  Array.isArray;
263
- function L(e, t, n, r, i, a) {
263
+ function I(e, t, n, r, i, a) {
264
264
  t ||= {};
265
265
  var o, s, c = t;
266
266
  if ("ref" in c) for (s in c = {}, t) s == "ref" ? o = t[s] : c[s] = t[s];
@@ -275,7 +275,7 @@ function L(e, t, n, r, i, a) {
275
275
  __e: null,
276
276
  __c: null,
277
277
  constructor: void 0,
278
- __v: --I,
278
+ __v: --F,
279
279
  __i: -1,
280
280
  __u: 0,
281
281
  __source: i,
@@ -286,116 +286,116 @@ function L(e, t, n, r, i, a) {
286
286
  }
287
287
  //#endregion
288
288
  //#region src/components/shared/toolbar/Style/Components/StyleToolbar.jsx
289
- function R() {
289
+ function L() {
290
290
  let e = "forge-dropdown-item block w-full text-left cursor-pointer whitespace-nowrap px-3 py-1 text-[#333] no-underline transition-colors duration-100 hover:bg-[#f0f0f0]";
291
- return /* @__PURE__ */ L("div", {
291
+ return /* @__PURE__ */ I("div", {
292
292
  className: "forge-toolbar-group forge-toolbar-style flex items-center gap-0.5",
293
- children: /* @__PURE__ */ L("div", {
293
+ children: /* @__PURE__ */ I("div", {
294
294
  className: "relative group",
295
- children: [/* @__PURE__ */ L("button", {
295
+ children: [/* @__PURE__ */ I("button", {
296
296
  type: "button",
297
297
  className: "forge-toolbar-button group relative flex h-7 cursor-pointer items-center justify-center rounded-[2px] border border-[#ccc] bg-white px-2 text-sm leading-none transition-all duration-150 hover:bg-[#f0f0f0] active:translate-y-px [&.is-active]:bg-[#e5e5e5]",
298
298
  "data-command": "style",
299
299
  "aria-label": "Style",
300
- children: [/* @__PURE__ */ L("span", {
300
+ children: [/* @__PURE__ */ I("span", {
301
301
  className: "forge-icon",
302
302
  children: "✦"
303
- }), /* @__PURE__ */ L("span", {
303
+ }), /* @__PURE__ */ I("span", {
304
304
  className: "pointer-events-none absolute left-1/2 top-[calc(100%+8px)] z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#2c2c2c] bg-[#1e1e1e] px-2.5 py-1 text-[11px] font-medium leading-none text-white opacity-0 shadow-lg transition-all duration-200 group-hover:visible group-hover:opacity-100 group-has-[.is-open]:hidden rtl:left-1/2 rtl:-translate-x-1/2 before:absolute before:bottom-full before:left-1/2 before:-translate-x-1/2 before:border-x-[5px] before:border-b-[5px] before:border-t-0 before:border-solid before:border-x-transparent before:border-b-[#2c2c2c] after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:translate-y-[1px] after:border-x-[4px] after:border-b-[4px] after:border-t-0 after:border-solid after:border-x-transparent after:border-b-[#1e1e1e]",
305
305
  "data-i18n": "style",
306
306
  children: "Style"
307
307
  })]
308
- }), /* @__PURE__ */ L("div", {
308
+ }), /* @__PURE__ */ I("div", {
309
309
  className: "forge-toolbar-dropdown forge-dropdown-style absolute left-0 top-[calc(100%+4px)] z-20 hidden [&.is-open]:block max-h-24 min-w-[110px] overflow-y-auto rounded-[2px] border border-[#ccc] bg-white p-0 shadow-[0_2px_6px_rgba(0,0,0,0.15)] rtl:left-auto rtl:right-0",
310
310
  role: "list",
311
311
  "aria-label": "Style",
312
312
  children: [
313
- /* @__PURE__ */ L("button", {
313
+ /* @__PURE__ */ I("button", {
314
314
  type: "button",
315
315
  className: e,
316
316
  "data-value": "p",
317
317
  role: "listitem",
318
- children: /* @__PURE__ */ L("p", {
318
+ children: /* @__PURE__ */ I("p", {
319
319
  className: "m-0 text-[13px] font-normal leading-[1.4]",
320
320
  children: "Normal"
321
321
  })
322
322
  }),
323
- /* @__PURE__ */ L("button", {
323
+ /* @__PURE__ */ I("button", {
324
324
  type: "button",
325
325
  className: e,
326
326
  "data-value": "blockquote",
327
327
  role: "listitem",
328
- children: /* @__PURE__ */ L("blockquote", {
328
+ children: /* @__PURE__ */ I("blockquote", {
329
329
  className: "m-0 text-[13px] font-normal leading-[1.4]",
330
330
  children: "Blockquote"
331
331
  })
332
332
  }),
333
- /* @__PURE__ */ L("button", {
333
+ /* @__PURE__ */ I("button", {
334
334
  type: "button",
335
335
  className: e,
336
336
  "data-value": "pre",
337
337
  role: "listitem",
338
- children: /* @__PURE__ */ L("pre", {
338
+ children: /* @__PURE__ */ I("pre", {
339
339
  className: "m-0 font-mono text-[13px] leading-[1.4]",
340
340
  children: "Code"
341
341
  })
342
342
  }),
343
- /* @__PURE__ */ L("button", {
343
+ /* @__PURE__ */ I("button", {
344
344
  type: "button",
345
345
  className: e,
346
346
  "data-value": "h1",
347
347
  role: "listitem",
348
- children: /* @__PURE__ */ L("h1", {
348
+ children: /* @__PURE__ */ I("h1", {
349
349
  className: "m-0 text-[20px] font-normal leading-[1.4]",
350
350
  children: "Heading 1"
351
351
  })
352
352
  }),
353
- /* @__PURE__ */ L("button", {
353
+ /* @__PURE__ */ I("button", {
354
354
  type: "button",
355
355
  className: e,
356
356
  "data-value": "h2",
357
357
  role: "listitem",
358
- children: /* @__PURE__ */ L("h2", {
358
+ children: /* @__PURE__ */ I("h2", {
359
359
  className: "m-0 text-[18px] font-normal leading-[1.4]",
360
360
  children: "Heading 2"
361
361
  })
362
362
  }),
363
- /* @__PURE__ */ L("button", {
363
+ /* @__PURE__ */ I("button", {
364
364
  type: "button",
365
365
  className: e,
366
366
  "data-value": "h3",
367
367
  role: "listitem",
368
- children: /* @__PURE__ */ L("h3", {
368
+ children: /* @__PURE__ */ I("h3", {
369
369
  className: "m-0 text-[16px] font-normal leading-[1.4]",
370
370
  children: "Heading 3"
371
371
  })
372
372
  }),
373
- /* @__PURE__ */ L("button", {
373
+ /* @__PURE__ */ I("button", {
374
374
  type: "button",
375
375
  className: e,
376
376
  "data-value": "h4",
377
377
  role: "listitem",
378
- children: /* @__PURE__ */ L("h4", {
378
+ children: /* @__PURE__ */ I("h4", {
379
379
  className: "m-0 text-[15px] font-normal leading-[1.4]",
380
380
  children: "Heading 4"
381
381
  })
382
382
  }),
383
- /* @__PURE__ */ L("button", {
383
+ /* @__PURE__ */ I("button", {
384
384
  type: "button",
385
385
  className: e,
386
386
  "data-value": "h5",
387
387
  role: "listitem",
388
- children: /* @__PURE__ */ L("h5", {
388
+ children: /* @__PURE__ */ I("h5", {
389
389
  className: "m-0 text-[14px] font-normal leading-[1.4]",
390
390
  children: "Heading 5"
391
391
  })
392
392
  }),
393
- /* @__PURE__ */ L("button", {
393
+ /* @__PURE__ */ I("button", {
394
394
  type: "button",
395
395
  className: e,
396
396
  "data-value": "h6",
397
397
  role: "listitem",
398
- children: /* @__PURE__ */ L("h6", {
398
+ children: /* @__PURE__ */ I("h6", {
399
399
  className: "m-0 text-[13px] font-normal leading-[1.4]",
400
400
  children: "Heading 6"
401
401
  })
@@ -407,58 +407,58 @@ function R() {
407
407
  }
408
408
  //#endregion
409
409
  //#region src/components/shared/toolbar/Style/Components/index.jsx
410
- function ve() {
411
- return R();
410
+ function ye() {
411
+ return L();
412
412
  }
413
413
  //#endregion
414
414
  //#region src/components/shared/toolbar/font/Components/FontToolbar.jsx
415
- function z({ onCommand: e, isBold: t, isUnderline: n }) {
415
+ function R({ onCommand: e, isBold: t, isUnderline: n }) {
416
416
  let r = "group relative flex h-7 w-7 items-center justify-center p-0 text-sm leading-none cursor-pointer transition-colors duration-150 active:translate-y-px", i = "bg-white text-[#333] hover:bg-[#f0f0f0]", a = "bg-[#e2e8f0] text-black border-inner shadow-[inset_0_1px_3px_rgba(0,0,0,0.2)] font-bold", o = "pointer-events-none absolute left-1/2 top-[calc(100%+8px)] z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#2c2c2c] bg-[#1e1e1e] px-2.5 py-1 text-[11px] font-medium leading-none text-white opacity-0 shadow-lg transition-all duration-200 group-hover:visible group-hover:opacity-100 rtl:left-1/2 rtl:-translate-x-1/2 before:absolute before:bottom-full before:left-1/2 before:-translate-x-1/2 before:border-x-[5px] before:border-b-[5px] before:border-t-0 before:border-solid before:border-x-transparent before:border-b-[#2c2c2c] after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:translate-y-[1px] after:border-x-[4px] after:border-b-[4px] after:border-t-0 after:border-solid after:border-x-transparent after:border-b-[#1e1e1e]";
417
- return /* @__PURE__ */ L("div", {
417
+ return /* @__PURE__ */ I("div", {
418
418
  className: "forge-toolbar-group forge-toolbar-font inline-flex items-center rounded-sm border border-[#ccc] bg-white divide-x divide-[#ccc] rtl:divide-x-reverse",
419
419
  children: [
420
- /* @__PURE__ */ L("button", {
420
+ /* @__PURE__ */ I("button", {
421
421
  type: "button",
422
422
  className: `${r} ${t ? a : i}`,
423
423
  onClick: () => e("bold"),
424
424
  "aria-label": "Bold",
425
- children: [/* @__PURE__ */ L("span", {
425
+ children: [/* @__PURE__ */ I("span", {
426
426
  className: "text-sm font-bold font-serif",
427
427
  children: "B"
428
- }), /* @__PURE__ */ L("span", {
428
+ }), /* @__PURE__ */ I("span", {
429
429
  className: o,
430
430
  "data-i18n": "bold",
431
431
  children: "Bold"
432
432
  })]
433
433
  }),
434
- /* @__PURE__ */ L("button", {
434
+ /* @__PURE__ */ I("button", {
435
435
  type: "button",
436
436
  className: `${r} ${n ? a : i}`,
437
437
  onClick: () => e("underline"),
438
438
  "aria-label": "Underline",
439
- children: [/* @__PURE__ */ L("span", {
439
+ children: [/* @__PURE__ */ I("span", {
440
440
  className: "text-sm font-bold font-serif underline",
441
441
  children: "U"
442
- }), /* @__PURE__ */ L("span", {
442
+ }), /* @__PURE__ */ I("span", {
443
443
  className: o,
444
444
  "data-i18n": "underline",
445
445
  children: "Underline"
446
446
  })]
447
447
  }),
448
- /* @__PURE__ */ L("button", {
448
+ /* @__PURE__ */ I("button", {
449
449
  type: "button",
450
450
  className: `${r} ${i}`,
451
451
  onClick: () => e("removeFormat"),
452
452
  "aria-label": "Remove Font Style",
453
- children: [/* @__PURE__ */ L("span", {
453
+ children: [/* @__PURE__ */ I("span", {
454
454
  className: "inline-block h-4 w-4 text-center text-sm leading-none",
455
- children: /* @__PURE__ */ L("svg", {
455
+ children: /* @__PURE__ */ I("svg", {
456
456
  viewBox: "0 0 20 20",
457
457
  className: "block h-4 w-4 fill-none stroke-black",
458
458
  strokeWidth: "2",
459
- children: /* @__PURE__ */ L("path", { d: "M 4 4 L 16 16 M 16 4 L 4 16" })
459
+ children: /* @__PURE__ */ I("path", { d: "M 4 4 L 16 16 M 16 4 L 4 16" })
460
460
  })
461
- }), /* @__PURE__ */ L("span", {
461
+ }), /* @__PURE__ */ I("span", {
462
462
  className: o,
463
463
  "data-i18n": "removeFormat",
464
464
  children: "Remove Font Style"
@@ -469,24 +469,24 @@ function z({ onCommand: e, isBold: t, isUnderline: n }) {
469
469
  }
470
470
  //#endregion
471
471
  //#region node_modules/preact/hooks/dist/hooks.module.js
472
- var B, V, ye, be, H = 0, xe = [], U = u, Se = U.__b, Ce = U.__r, we = U.diffed, Te = U.__c, Ee = U.unmount, De = U.__;
473
- function Oe(e, t) {
474
- U.__h && U.__h(V, e, H || t), H = 0;
475
- var n = V.__H || (V.__H = {
472
+ var z, B, be, xe, V = 0, Se = [], H = u, Ce = H.__b, we = H.__r, Te = H.diffed, Ee = H.__c, De = H.unmount, Oe = H.__;
473
+ function ke(e, t) {
474
+ H.__h && H.__h(B, e, V || t), V = 0;
475
+ var n = B.__H || (B.__H = {
476
476
  __: [],
477
477
  __h: []
478
478
  });
479
479
  return e >= n.__.length && n.__.push({}), n.__[e];
480
480
  }
481
- function W(e) {
482
- return H = 1, ke(Le, e);
481
+ function U(e) {
482
+ return V = 1, Ae(Re, e);
483
483
  }
484
- function ke(e, t, n) {
485
- var r = Oe(B++, 2);
486
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Le(void 0, t), function(e) {
484
+ function Ae(e, t, n) {
485
+ var r = ke(z++, 2);
486
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Re(void 0, t), function(e) {
487
487
  var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);
488
488
  t !== n && (r.__N = [n, r.__[1]], r.__c.setState({}));
489
- }], r.__c = V, !V.__f)) {
489
+ }], r.__c = B, !B.__f)) {
490
490
  var i = function(e, t, n) {
491
491
  if (!r.__c.__H) return !0;
492
492
  var i = !1, o = r.__c.props !== e;
@@ -502,106 +502,106 @@ function ke(e, t, n) {
502
502
  }
503
503
  return !i || o;
504
504
  };
505
- V.__f = !0;
506
- var a = V.shouldComponentUpdate, o = V.componentWillUpdate;
507
- V.componentWillUpdate = function(e, t, n) {
505
+ B.__f = !0;
506
+ var a = B.shouldComponentUpdate, o = B.componentWillUpdate;
507
+ B.componentWillUpdate = function(e, t, n) {
508
508
  if (this.__e) {
509
509
  var r = a;
510
510
  a = void 0, i(e, t, n), a = r;
511
511
  }
512
512
  o && o.call(this, e, t, n);
513
- }, V.shouldComponentUpdate = i;
513
+ }, B.shouldComponentUpdate = i;
514
514
  }
515
515
  return r.__N || r.__;
516
516
  }
517
- function G(e, t) {
518
- var n = Oe(B++, 3);
519
- !U.__s && Ie(n.__H, t) && (n.__ = e, n.u = t, V.__H.__h.push(n));
517
+ function W(e, t) {
518
+ var n = ke(z++, 3);
519
+ !H.__s && Le(n.__H, t) && (n.__ = e, n.u = t, B.__H.__h.push(n));
520
520
  }
521
- function K(e) {
522
- return H = 5, Ae(function() {
521
+ function G(e) {
522
+ return V = 5, je(function() {
523
523
  return { current: e };
524
524
  }, []);
525
525
  }
526
- function Ae(e, t) {
527
- var n = Oe(B++, 7);
528
- return Ie(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
526
+ function je(e, t) {
527
+ var n = ke(z++, 7);
528
+ return Le(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
529
529
  }
530
- function je() {
531
- for (var e; e = xe.shift();) {
530
+ function Me() {
531
+ for (var e; e = Se.shift();) {
532
532
  var t = e.__H;
533
533
  if (e.__P && t) try {
534
- t.__h.some(Pe), t.__h.some(Fe), t.__h = [];
534
+ t.__h.some(Fe), t.__h.some(Ie), t.__h = [];
535
535
  } catch (n) {
536
- t.__h = [], U.__e(n, e.__v);
536
+ t.__h = [], H.__e(n, e.__v);
537
537
  }
538
538
  }
539
539
  }
540
- U.__b = function(e) {
541
- V = null, Se && Se(e);
542
- }, U.__ = function(e, t) {
543
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), De && De(e, t);
544
- }, U.__r = function(e) {
545
- Ce && Ce(e), B = 0;
546
- var t = (V = e.__c).__H;
547
- t && (ye === V ? (t.__h = [], V.__h = [], t.__.some(function(e) {
540
+ H.__b = function(e) {
541
+ B = null, Ce && Ce(e);
542
+ }, H.__ = function(e, t) {
543
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Oe && Oe(e, t);
544
+ }, H.__r = function(e) {
545
+ we && we(e), z = 0;
546
+ var t = (B = e.__c).__H;
547
+ t && (be === B ? (t.__h = [], B.__h = [], t.__.some(function(e) {
548
548
  e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
549
- })) : (t.__h.some(Pe), t.__h.some(Fe), t.__h = [], B = 0)), ye = V;
550
- }, U.diffed = function(e) {
551
- we && we(e);
549
+ })) : (t.__h.some(Fe), t.__h.some(Ie), t.__h = [], z = 0)), be = B;
550
+ }, H.diffed = function(e) {
551
+ Te && Te(e);
552
552
  var t = e.__c;
553
- t && t.__H && (t.__H.__h.length && (xe.push(t) !== 1 && be === U.requestAnimationFrame || ((be = U.requestAnimationFrame) || Ne)(je)), t.__H.__.some(function(e) {
553
+ t && t.__H && (t.__H.__h.length && (Se.push(t) !== 1 && xe === H.requestAnimationFrame || ((xe = H.requestAnimationFrame) || Pe)(Me)), t.__H.__.some(function(e) {
554
554
  e.u &&= (e.__H = e.u, void 0);
555
- })), ye = V = null;
556
- }, U.__c = function(e, t) {
555
+ })), be = B = null;
556
+ }, H.__c = function(e, t) {
557
557
  t.some(function(e) {
558
558
  try {
559
- e.__h.some(Pe), e.__h = e.__h.filter(function(e) {
560
- return !e.__ || Fe(e);
559
+ e.__h.some(Fe), e.__h = e.__h.filter(function(e) {
560
+ return !e.__ || Ie(e);
561
561
  });
562
562
  } catch (n) {
563
563
  t.some(function(e) {
564
564
  e.__h &&= [];
565
- }), t = [], U.__e(n, e.__v);
565
+ }), t = [], H.__e(n, e.__v);
566
566
  }
567
- }), Te && Te(e, t);
568
- }, U.unmount = function(e) {
569
- Ee && Ee(e);
567
+ }), Ee && Ee(e, t);
568
+ }, H.unmount = function(e) {
569
+ De && De(e);
570
570
  var t, n = e.__c;
571
571
  n && n.__H && (n.__H.__.some(function(e) {
572
572
  try {
573
- Pe(e);
573
+ Fe(e);
574
574
  } catch (e) {
575
575
  t = e;
576
576
  }
577
- }), n.__H = void 0, t && U.__e(t, n.__v));
577
+ }), n.__H = void 0, t && H.__e(t, n.__v));
578
578
  };
579
- var Me = typeof requestAnimationFrame == "function";
580
- function Ne(e) {
579
+ var Ne = typeof requestAnimationFrame == "function";
580
+ function Pe(e) {
581
581
  var t, n = function() {
582
- clearTimeout(r), Me && cancelAnimationFrame(t), setTimeout(e);
582
+ clearTimeout(r), Ne && cancelAnimationFrame(t), setTimeout(e);
583
583
  }, r = setTimeout(n, 35);
584
- Me && (t = requestAnimationFrame(n));
585
- }
586
- function Pe(e) {
587
- var t = V, n = e.__c;
588
- typeof n == "function" && (e.__c = void 0, n()), V = t;
584
+ Ne && (t = requestAnimationFrame(n));
589
585
  }
590
586
  function Fe(e) {
591
- var t = V;
592
- e.__c = e.__(), V = t;
587
+ var t = B, n = e.__c;
588
+ typeof n == "function" && (e.__c = void 0, n()), B = t;
589
+ }
590
+ function Ie(e) {
591
+ var t = B;
592
+ e.__c = e.__(), B = t;
593
593
  }
594
- function Ie(e, t) {
594
+ function Le(e, t) {
595
595
  return !e || e.length !== t.length || t.some(function(t, n) {
596
596
  return t !== e[n];
597
597
  });
598
598
  }
599
- function Le(e, t) {
599
+ function Re(e, t) {
600
600
  return typeof t == "function" ? t(e) : t;
601
601
  }
602
602
  //#endregion
603
603
  //#region src/components/shared/toolbar/font/Hooks/boldHandler.jsx
604
- var Re = (e, t, n) => {
604
+ var ze = (e, t, n) => {
605
605
  if (!e.collapsed) {
606
606
  if (n) {
607
607
  let t = e.commonAncestorContainer;
@@ -635,7 +635,7 @@ var Re = (e, t, n) => {
635
635
  let r = document.createRange();
636
636
  r.setStart(n, 1), r.collapse(!0), t.removeAllRanges(), t.addRange(r);
637
637
  }
638
- }, ze = (e, t, n) => {
638
+ }, Be = (e, t, n) => {
639
639
  if (!e.collapsed) {
640
640
  if (n) {
641
641
  let t = e.commonAncestorContainer;
@@ -669,10 +669,10 @@ var Re = (e, t, n) => {
669
669
  let r = document.createRange();
670
670
  r.setStart(n, 1), r.collapse(!0), t.removeAllRanges(), t.addRange(r);
671
671
  }
672
- }, Be = (e) => {
672
+ }, Ve = (e) => {
673
673
  let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT, null, !1), n;
674
674
  for (; n = t.nextNode();) n.nodeValue = n.nodeValue.replace(/\u00A0/g, " ");
675
- }, Ve = (e) => {
675
+ }, He = (e) => {
676
676
  e.querySelectorAll("span, b, u, strong").forEach((e) => {
677
677
  let t = e.getAttribute("style") || e.getAttribute("class"), n = [
678
678
  "B",
@@ -685,7 +685,7 @@ var Re = (e, t, n) => {
685
685
  t.removeChild(e);
686
686
  } else (!e.textContent || e.textContent.replace(/\u200B/g, "").length === 0) && e.remove();
687
687
  });
688
- }, He = (e, t) => {
688
+ }, Ue = (e, t) => {
689
689
  if (e.collapsed) return;
690
690
  let n = e.commonAncestorContainer;
691
691
  for (n.nodeType === 3 && (n = n.parentNode); n && n.getAttribute && n.getAttribute("contenteditable") !== "true";) {
@@ -694,14 +694,14 @@ var Re = (e, t, n) => {
694
694
  n = n.parentNode;
695
695
  }
696
696
  let r = e.extractContents().textContent.replace(/\u00A0/g, " "), i = document.createTextNode(r);
697
- e.insertNode(i), n && n.getAttribute("contenteditable") !== "true" && (Ve(n), Be(n), n.normalize());
697
+ e.insertNode(i), n && n.getAttribute("contenteditable") !== "true" && (He(n), Ve(n), n.normalize());
698
698
  let a = document.createRange();
699
699
  a.selectNodeContents(i), t.removeAllRanges(), t.addRange(a);
700
700
  };
701
701
  //#endregion
702
702
  //#region src/components/shared/toolbar/font/Hooks/fontLogic.jsx
703
- function Ue() {
704
- let [e, t] = W(!1), [n, r] = W(!1), i = () => {
703
+ function We() {
704
+ let [e, t] = U(!1), [n, r] = U(!1), i = () => {
705
705
  let e = window.getSelection();
706
706
  if (!e || e.rangeCount === 0) return;
707
707
  let n = e.anchorNode;
@@ -714,12 +714,12 @@ function Ue() {
714
714
  }
715
715
  t(i), r(a);
716
716
  };
717
- return G(() => (document.addEventListener("selectionchange", i), () => document.removeEventListener("selectionchange", i)), []), {
717
+ return W(() => (document.addEventListener("selectionchange", i), () => document.removeEventListener("selectionchange", i)), []), {
718
718
  executeCommand: (t) => {
719
719
  let r = window.getSelection();
720
720
  if (!r || r.rangeCount === 0) return;
721
721
  let a = r.getRangeAt(0);
722
- t === "bold" ? Re(a, r, e) : t === "underline" ? ze(a, r, n) : t === "removeFormat" && He(a, r), i();
722
+ t === "bold" ? ze(a, r, e) : t === "underline" ? Be(a, r, n) : t === "removeFormat" && Ue(a, r), i();
723
723
  },
724
724
  isBold: e,
725
725
  isUnderline: n
@@ -727,9 +727,9 @@ function Ue() {
727
727
  }
728
728
  //#endregion
729
729
  //#region src/components/shared/toolbar/font/Components/index.jsx
730
- function We() {
731
- let { executeCommand: e, isBold: t, isUnderline: n } = Ue();
732
- return /* @__PURE__ */ L(z, {
730
+ function Ge() {
731
+ let { executeCommand: e, isBold: t, isUnderline: n } = We();
732
+ return /* @__PURE__ */ I(R, {
733
733
  onCommand: e,
734
734
  isBold: t,
735
735
  isUnderline: n
@@ -737,7 +737,7 @@ function We() {
737
737
  }
738
738
  //#endregion
739
739
  //#region src/components/shared/toolbar/FontName/Hooks/fontNameHandler.jsx
740
- function q(e, t) {
740
+ function K(e, t) {
741
741
  let n = document.createElement("span");
742
742
  n.style.fontFamily = t;
743
743
  try {
@@ -746,7 +746,7 @@ function q(e, t) {
746
746
  return null;
747
747
  }
748
748
  }
749
- function Ge(e) {
749
+ function Ke(e) {
750
750
  let t = e.startContainer, n = e.startOffset, r = t.nodeType === 3 ? t.parentNode : t;
751
751
  if (!r || r.nodeType !== 1 || r.tagName !== "SPAN" || !r.style || !r.style.fontFamily) return null;
752
752
  let i = r, a = !1, o = !1, s = null;
@@ -758,50 +758,50 @@ function Ge(e) {
758
758
  atEnd: o
759
759
  };
760
760
  }
761
- function Ke(e) {
761
+ function qe(e) {
762
762
  let t = document.createElement("span");
763
763
  return t.style.fontFamily = e, t.appendChild(document.createTextNode("​")), t;
764
764
  }
765
- function qe(e, t) {
765
+ function Je(e, t) {
766
766
  let n = document.createRange();
767
767
  n.setStart(e.firstChild, 1), n.collapse(!0), t.removeAllRanges(), t.addRange(n);
768
768
  }
769
- function Je(e, t, n) {
770
- let r = Ge(e);
769
+ function Ye(e, t, n) {
770
+ let r = Ke(e);
771
771
  if (r) {
772
772
  let { fontSpan: e, textNode: i, offset: a, atStart: o, atEnd: s } = r;
773
773
  if (o) {
774
- let r = Ke(n);
775
- e.parentNode.insertBefore(r, e), qe(r, t);
774
+ let r = qe(n);
775
+ e.parentNode.insertBefore(r, e), Je(r, t);
776
776
  return;
777
777
  }
778
778
  if (s) {
779
- let r = Ke(n);
780
- e.nextSibling ? e.parentNode.insertBefore(r, e.nextSibling) : e.parentNode.appendChild(r), qe(r, t);
779
+ let r = qe(n);
780
+ e.nextSibling ? e.parentNode.insertBefore(r, e.nextSibling) : e.parentNode.appendChild(r), Je(r, t);
781
781
  return;
782
782
  }
783
783
  if (i) {
784
- let r = i.splitText(a), o = Ke(n);
785
- e.insertBefore(o, r), qe(o, t);
784
+ let r = i.splitText(a), o = qe(n);
785
+ e.insertBefore(o, r), Je(o, t);
786
786
  return;
787
787
  }
788
788
  }
789
- let i = Ke(n);
790
- e.insertNode(i), qe(i, t);
789
+ let i = qe(n);
790
+ e.insertNode(i), Je(i, t);
791
791
  }
792
- var Ye = (e, t, n) => {
792
+ var Xe = (e, t, n) => {
793
793
  let r = n || "Arial";
794
794
  if (!(!e || !t)) {
795
795
  if (!e.collapsed) {
796
- let n = q(e, r);
796
+ let n = K(e, r);
797
797
  if (!n) return;
798
798
  let i = document.createRange();
799
799
  i.selectNodeContents(n), t.removeAllRanges(), t.addRange(i);
800
800
  return;
801
801
  }
802
- Je(e, t, r);
802
+ Ye(e, t, r);
803
803
  }
804
- }, Xe = (e) => {
804
+ }, Ze = (e) => {
805
805
  let t = window.getSelection();
806
806
  if (!t || t.rangeCount === 0) return null;
807
807
  let n = t.anchorNode;
@@ -817,8 +817,8 @@ var Ye = (e, t, n) => {
817
817
  };
818
818
  //#endregion
819
819
  //#region src/components/shared/toolbar/FontName/Hooks/fontNameLogic.jsx
820
- function Ze(e) {
821
- let [t, n] = W("Arial"), r = K("Arial"), i = K(null), a = () => {
820
+ function Qe(e) {
821
+ let [t, n] = U("Arial"), r = G("Arial"), i = G(null), a = () => {
822
822
  let t = window.getSelection();
823
823
  if (t && t.rangeCount > 0) {
824
824
  let n = t.getRangeAt(0), r = e?.current;
@@ -827,10 +827,10 @@ function Ze(e) {
827
827
  }, o = () => {
828
828
  let t = e?.current;
829
829
  if (!t) return;
830
- let i = Xe(t);
830
+ let i = Ze(t);
831
831
  i && (n(i), r.current = i);
832
832
  };
833
- return G(() => {
833
+ return W(() => {
834
834
  let t = () => {
835
835
  a(), o();
836
836
  };
@@ -871,13 +871,13 @@ function Ze(e) {
871
871
  let e = document.createRange();
872
872
  e.selectNodeContents(s), e.collapse(!1), c.removeAllRanges(), c.addRange(e), l = e;
873
873
  }
874
- Ye(l, c, o), a();
874
+ Xe(l, c, o), a();
875
875
  }
876
876
  };
877
877
  }
878
878
  //#endregion
879
879
  //#region src/components/shared/toolbar/Hooks/dropdown.js
880
- function J(e, t) {
880
+ function q(e, t) {
881
881
  function n() {
882
882
  t.classList.remove("is-open"), e.classList.remove("is-active"), document.removeEventListener("click", r);
883
883
  }
@@ -899,7 +899,7 @@ function J(e, t) {
899
899
  }
900
900
  //#endregion
901
901
  //#region src/components/shared/toolbar/FontName/Components/FontNameToolbar.jsx
902
- var Qe = [
902
+ var $e = [
903
903
  "Arial",
904
904
  "Arial Black",
905
905
  "Comic Sans MS",
@@ -911,20 +911,20 @@ var Qe = [
911
911
  "Verdana",
912
912
  "Nunito Sans",
913
913
  "Segoe UI"
914
- ], $e = 32;
915
- function Y({ currentFont: e, applyFont: t }) {
916
- let n = K(null), r = K(null);
917
- G(() => {
918
- if (n.current && r.current) return J(n.current, r.current);
914
+ ], et = 32;
915
+ function J({ currentFont: e, applyFont: t }) {
916
+ let n = G(null), r = G(null);
917
+ W(() => {
918
+ if (n.current && r.current) return q(n.current, r.current);
919
919
  }, []);
920
920
  let i = (e) => {
921
921
  t(e), r.current && r.current.classList.remove("is-open"), n.current && n.current.classList.remove("is-active");
922
922
  }, a = "pointer-events-none absolute left-1/2 top-[calc(100%+8px)] z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#2c2c2c] bg-[#1e1e1e] px-2.5 py-1 text-[11px] font-medium leading-none text-white opacity-0 shadow-lg transition-all duration-200 group-hover:visible group-hover:opacity-100 rtl:left-1/2 rtl:-translate-x-1/2 before:absolute before:bottom-full before:left-1/2 before:-translate-x-1/2 before:border-x-[5px] before:border-b-[5px] before:border-t-0 before:border-solid before:border-x-transparent before:border-b-[#2c2c2c] after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:translate-y-[1px] after:border-x-[4px] after:border-b-[4px] after:border-t-0 after:border-solid after:border-x-transparent after:border-b-[#1e1e1e]";
923
- return /* @__PURE__ */ L("div", {
923
+ return /* @__PURE__ */ I("div", {
924
924
  className: "forge-toolbar-group forge-toolbar-fontname relative flex shrink-0 items-center",
925
- children: [/* @__PURE__ */ L("div", {
925
+ children: [/* @__PURE__ */ I("div", {
926
926
  className: "forge-color-button-group flex h-[30px] items-center overflow-visible rounded border border-[#ccc] bg-white hover:border-[#aaa] hover:bg-[#f9f9f9]",
927
- children: [/* @__PURE__ */ L("button", {
927
+ children: [/* @__PURE__ */ I("button", {
928
928
  type: "button",
929
929
  className: "forge-fontname-main group relative flex h-full w-[70px] shrink-0 items-center justify-center cursor-pointer border-none bg-transparent px-2 hover:bg-black/5",
930
930
  onMouseDown: (e) => e.preventDefault(),
@@ -932,42 +932,42 @@ function Y({ currentFont: e, applyFont: t }) {
932
932
  n.current && n.current.click();
933
933
  },
934
934
  "aria-label": "Current font",
935
- children: [/* @__PURE__ */ L("span", {
935
+ children: [/* @__PURE__ */ I("span", {
936
936
  className: "forge-current-fontname inline-block max-w-[50px] truncate text-xs text-[#333]",
937
937
  style: { fontFamily: e },
938
938
  children: e
939
- }), /* @__PURE__ */ L("span", {
939
+ }), /* @__PURE__ */ I("span", {
940
940
  className: a,
941
941
  "data-i18n": "fontName",
942
942
  children: "Font Family"
943
943
  })]
944
- }), /* @__PURE__ */ L("button", {
944
+ }), /* @__PURE__ */ I("button", {
945
945
  ref: n,
946
946
  type: "button",
947
947
  className: "forge-fontname-dropdown-btn group relative flex h-full shrink-0 items-center justify-center min-w-[18px] cursor-pointer border-l border-[#ccc] bg-transparent px-1 hover:bg-black/5",
948
948
  onMouseDown: (e) => e.preventDefault(),
949
949
  "aria-label": "More fonts",
950
- children: [/* @__PURE__ */ L(() => /* @__PURE__ */ L("svg", {
950
+ children: [/* @__PURE__ */ I(() => /* @__PURE__ */ I("svg", {
951
951
  className: "h-2 w-2 fill-current text-[#666]",
952
952
  viewBox: "0 0 10 6",
953
953
  xmlns: "http://www.w3.org/2000/svg",
954
- children: /* @__PURE__ */ L("path", { d: "M0 0l5 6 5-6H0z" })
955
- }), {}), /* @__PURE__ */ L("span", {
954
+ children: /* @__PURE__ */ I("path", { d: "M0 0l5 6 5-6H0z" })
955
+ }), {}), /* @__PURE__ */ I("span", {
956
956
  className: a,
957
957
  "data-i18n": "moreFont",
958
958
  children: "More Fonts"
959
959
  })]
960
960
  })]
961
- }), /* @__PURE__ */ L("div", {
961
+ }), /* @__PURE__ */ I("div", {
962
962
  ref: r,
963
963
  className: "forge-toolbar-dropdown forge-dropdown-fontname absolute left-0 top-full z-20 hidden mt-1 min-w-[150px] overflow-y-auto rounded border border-[#ccc] bg-white p-1 shadow-md rtl:left-auto rtl:right-0 [&.is-open]:block",
964
964
  style: { maxHeight: "128px" },
965
- children: Qe.map((e) => /* @__PURE__ */ L("button", {
965
+ children: $e.map((e) => /* @__PURE__ */ I("button", {
966
966
  type: "button",
967
967
  className: "forge-dropdown-item flex w-full cursor-pointer items-center whitespace-nowrap rounded-sm px-2 text-left text-xs text-[#333] hover:bg-[#f0f0f0]",
968
968
  style: {
969
969
  fontFamily: e,
970
- height: `${$e}px`
970
+ height: `${et}px`
971
971
  },
972
972
  onMouseDown: (e) => e.preventDefault(),
973
973
  onClick: () => i(e),
@@ -978,16 +978,16 @@ function Y({ currentFont: e, applyFont: t }) {
978
978
  }
979
979
  //#endregion
980
980
  //#region src/components/shared/toolbar/FontName/Components/index.jsx
981
- function et({ editorRef: e }) {
982
- let { currentFont: t, applyFont: n } = Ze(e);
983
- return /* @__PURE__ */ L(Y, {
981
+ function tt({ editorRef: e }) {
982
+ let { currentFont: t, applyFont: n } = Qe(e);
983
+ return /* @__PURE__ */ I(J, {
984
984
  currentFont: t,
985
985
  applyFont: n
986
986
  });
987
987
  }
988
988
  //#endregion
989
989
  //#region src/components/shared/toolbar/Color/Components/colorPalette.jsx
990
- var tt = [
990
+ var nt = [
991
991
  [
992
992
  "#000000",
993
993
  "#424242",
@@ -1069,14 +1069,14 @@ var tt = [
1069
1069
  "#4A1031"
1070
1070
  ]
1071
1071
  ];
1072
- function nt({ event: e, onApply: t, currentColor: n }) {
1073
- return /* @__PURE__ */ L("div", {
1072
+ function rt({ event: e, onApply: t, currentColor: n }) {
1073
+ return /* @__PURE__ */ I("div", {
1074
1074
  className: "forge-color-palette flex flex-col gap-1",
1075
- children: tt.map((r, i) => /* @__PURE__ */ L("div", {
1075
+ children: nt.map((r, i) => /* @__PURE__ */ I("div", {
1076
1076
  className: "forge-color-row flex gap-1 justify-between",
1077
1077
  children: r.map((r) => {
1078
1078
  let i = n?.toLowerCase() === r.toLowerCase();
1079
- return /* @__PURE__ */ L("button", {
1079
+ return /* @__PURE__ */ I("button", {
1080
1080
  type: "button",
1081
1081
  title: r,
1082
1082
  className: `forge-color-button h-4 w-4 cursor-pointer rounded-[2px] border p-0 hover:scale-110 hover:border-black transition-transform ${i ? "border-2 border-black" : "border-[#ccc]"}`,
@@ -1092,12 +1092,12 @@ function nt({ event: e, onApply: t, currentColor: n }) {
1092
1092
  }
1093
1093
  //#endregion
1094
1094
  //#region src/components/shared/toolbar/Color/Components/ColorToolbar.jsx
1095
- function rt({ logic: e }) {
1096
- let { applyColor: t, applyRecentColor: n, resetColor: r, recentForeColor: i, recentBackColor: a } = e, o = K(null), s = K(null), c = K(null), l = K(null);
1097
- G(() => {
1098
- if (o.current && s.current) return J(o.current, s.current);
1099
- }, []), G(() => {
1100
- if (c.current && l.current) return J(c.current, l.current);
1095
+ function it({ logic: e }) {
1096
+ let { applyColor: t, applyRecentColor: n, resetColor: r, recentForeColor: i, recentBackColor: a } = e, o = G(null), s = G(null), c = G(null), l = G(null);
1097
+ W(() => {
1098
+ if (o.current && s.current) return q(o.current, s.current);
1099
+ }, []), W(() => {
1100
+ if (c.current && l.current) return q(c.current, l.current);
1101
1101
  }, []);
1102
1102
  let u = (e, n) => {
1103
1103
  t(e, n), s.current && s.current.classList.remove("is-open"), o.current && o.current.classList.remove("is-active");
@@ -1107,123 +1107,123 @@ function rt({ logic: e }) {
1107
1107
  r("foreColor"), s.current && s.current.classList.remove("is-open"), o.current && o.current.classList.remove("is-active");
1108
1108
  }, p = () => {
1109
1109
  r("backColor"), l.current && l.current.classList.remove("is-open"), c.current && c.current.classList.remove("is-active");
1110
- }, m = "pointer-events-none absolute left-1/2 top-[calc(100%+8px)] z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#2c2c2c] bg-[#1e1e1e] px-2.5 py-1 text-[11px] font-medium leading-none text-white opacity-0 shadow-lg transition-all duration-200 group-hover:visible group-hover:opacity-100 group-has-[.is-open]:hidden rtl:left-1/2 rtl:-translate-x-1/2 before:absolute before:bottom-full before:left-1/2 before:-translate-x-1/2 before:border-x-[5px] before:border-b-[5px] before:border-t-0 before:border-solid before:border-x-transparent before:border-b-[#2c2c2c] after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:translate-y-[1px] after:border-x-[4px] after:border-b-[4px] after:border-t-0 after:border-solid after:border-x-transparent after:border-b-[#1e1e1e]", h = () => /* @__PURE__ */ L("svg", {
1110
+ }, m = "pointer-events-none absolute left-1/2 top-[calc(100%+8px)] z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#2c2c2c] bg-[#1e1e1e] px-2.5 py-1 text-[11px] font-medium leading-none text-white opacity-0 shadow-lg transition-all duration-200 group-hover:visible group-hover:opacity-100 group-has-[.is-open]:hidden rtl:left-1/2 rtl:-translate-x-1/2 before:absolute before:bottom-full before:left-1/2 before:-translate-x-1/2 before:border-x-[5px] before:border-b-[5px] before:border-t-0 before:border-solid before:border-x-transparent before:border-b-[#2c2c2c] after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:translate-y-[1px] after:border-x-[4px] after:border-b-[4px] after:border-t-0 after:border-solid after:border-x-transparent after:border-b-[#1e1e1e]", h = () => /* @__PURE__ */ I("svg", {
1111
1111
  className: "h-2 w-2 fill-current text-[#666]",
1112
1112
  viewBox: "0 0 10 6",
1113
1113
  xmlns: "http://www.w3.org/2000/svg",
1114
- children: /* @__PURE__ */ L("path", { d: "M0 0l5 6 5-6H0z" })
1114
+ children: /* @__PURE__ */ I("path", { d: "M0 0l5 6 5-6H0z" })
1115
1115
  });
1116
- return /* @__PURE__ */ L("div", {
1116
+ return /* @__PURE__ */ I("div", {
1117
1117
  className: "forge-toolbar-group forge-toolbar-color flex items-center gap-1",
1118
- children: [/* @__PURE__ */ L("div", {
1118
+ children: [/* @__PURE__ */ I("div", {
1119
1119
  className: "forge-color-item relative flex items-center",
1120
- children: [/* @__PURE__ */ L("div", {
1120
+ children: [/* @__PURE__ */ I("div", {
1121
1121
  className: "forge-color-button-group flex h-[30px] items-center overflow-visible rounded border border-[#ccc] bg-white hover:border-[#aaa] hover:bg-[#f9f9f9]",
1122
- children: [/* @__PURE__ */ L("button", {
1122
+ children: [/* @__PURE__ */ I("button", {
1123
1123
  type: "button",
1124
1124
  className: "forge-color-main group relative flex h-full items-center justify-center min-w-[28px] cursor-pointer border-none bg-transparent p-0 hover:bg-black/5",
1125
1125
  onMouseDown: (e) => e.preventDefault(),
1126
1126
  onClick: () => n("foreColor"),
1127
1127
  "aria-label": "Apply text color",
1128
- children: [/* @__PURE__ */ L("span", {
1128
+ children: [/* @__PURE__ */ I("span", {
1129
1129
  className: "forge-recent-color flex h-5 w-5 items-center justify-center rounded-[2px] border border-[#ccc] text-xs font-bold",
1130
1130
  style: {
1131
1131
  backgroundColor: "transparent",
1132
1132
  color: i
1133
1133
  },
1134
1134
  children: "A"
1135
- }), /* @__PURE__ */ L("span", {
1135
+ }), /* @__PURE__ */ I("span", {
1136
1136
  className: m,
1137
1137
  "data-i18n": "recentColor",
1138
1138
  children: "Recent Color"
1139
1139
  })]
1140
- }), /* @__PURE__ */ L("button", {
1140
+ }), /* @__PURE__ */ I("button", {
1141
1141
  ref: o,
1142
1142
  type: "button",
1143
1143
  className: "forge-color-dropdown-btn group relative flex h-full items-center justify-center min-w-[18px] cursor-pointer border-l border-[#ccc] bg-transparent px-1 hover:bg-black/5",
1144
1144
  onMouseDown: (e) => e.preventDefault(),
1145
1145
  "aria-label": "More text colors",
1146
- children: [/* @__PURE__ */ L(h, {}), /* @__PURE__ */ L("span", {
1146
+ children: [/* @__PURE__ */ I(h, {}), /* @__PURE__ */ I("span", {
1147
1147
  className: m,
1148
1148
  "data-i18n": "moreColor",
1149
1149
  children: "More Color"
1150
1150
  })]
1151
1151
  })]
1152
- }), /* @__PURE__ */ L("div", {
1152
+ }), /* @__PURE__ */ I("div", {
1153
1153
  ref: s,
1154
1154
  className: "forge-toolbar-dropdown forge-dropdown-color absolute left-0 top-full z-20 hidden mt-1 max-h-[220px] min-w-[180px] overflow-y-auto rounded border border-[#ccc] bg-white p-2 shadow-md rtl:left-auto rtl:right-0 [&.is-open]:block",
1155
- children: /* @__PURE__ */ L("div", {
1155
+ children: /* @__PURE__ */ I("div", {
1156
1156
  className: "forge-color-section",
1157
- children: [/* @__PURE__ */ L("div", {
1157
+ children: [/* @__PURE__ */ I("div", {
1158
1158
  className: "forge-color-section-header mb-1.5 flex items-center justify-between",
1159
- children: [/* @__PURE__ */ L("span", {
1159
+ children: [/* @__PURE__ */ I("span", {
1160
1160
  className: "forge-color-title text-xs font-bold text-[#333]",
1161
1161
  children: "Text Color"
1162
- }), /* @__PURE__ */ L("button", {
1162
+ }), /* @__PURE__ */ I("button", {
1163
1163
  type: "button",
1164
1164
  className: "forge-color-reset cursor-pointer rounded border border-[#ccc] bg-[#f5f5f5] px-2 py-0.5 text-[11px] font-medium text-[#333] hover:border-[#999] hover:bg-[#e6e6e6]",
1165
1165
  onMouseDown: (e) => e.preventDefault(),
1166
1166
  onClick: f,
1167
1167
  children: "Reset"
1168
1168
  })]
1169
- }), /* @__PURE__ */ L(nt, {
1169
+ }), /* @__PURE__ */ I(rt, {
1170
1170
  event: "foreColor",
1171
1171
  onApply: u
1172
1172
  })]
1173
1173
  })
1174
1174
  })]
1175
- }), /* @__PURE__ */ L("div", {
1175
+ }), /* @__PURE__ */ I("div", {
1176
1176
  className: "forge-color-item relative flex items-center",
1177
- children: [/* @__PURE__ */ L("div", {
1177
+ children: [/* @__PURE__ */ I("div", {
1178
1178
  className: "forge-color-button-group flex h-[30px] items-center overflow-visible rounded border border-[#ccc] bg-white hover:border-[#aaa] hover:bg-[#f9f9f9]",
1179
- children: [/* @__PURE__ */ L("button", {
1179
+ children: [/* @__PURE__ */ I("button", {
1180
1180
  type: "button",
1181
1181
  className: "forge-color-main group relative flex h-full items-center justify-center min-w-[28px] cursor-pointer border-none bg-transparent p-0 hover:bg-black/5",
1182
1182
  onMouseDown: (e) => e.preventDefault(),
1183
1183
  onClick: () => n("backColor"),
1184
1184
  "aria-label": "Apply background color",
1185
- children: [/* @__PURE__ */ L("span", {
1185
+ children: [/* @__PURE__ */ I("span", {
1186
1186
  className: "forge-recent-color flex h-5 w-5 items-center justify-center rounded-[2px] border border-[#ccc] text-xs font-bold",
1187
1187
  style: {
1188
1188
  backgroundColor: a || "#FFFFFF",
1189
1189
  color: "#000"
1190
1190
  },
1191
1191
  children: "A"
1192
- }), /* @__PURE__ */ L("span", {
1192
+ }), /* @__PURE__ */ I("span", {
1193
1193
  className: m,
1194
1194
  "data-i18n": "recentBackColor",
1195
1195
  children: "Recent Background Color"
1196
1196
  })]
1197
- }), /* @__PURE__ */ L("button", {
1197
+ }), /* @__PURE__ */ I("button", {
1198
1198
  ref: c,
1199
1199
  type: "button",
1200
1200
  className: "forge-color-dropdown-btn group relative flex h-full items-center justify-center min-w-[18px] cursor-pointer border-l border-[#ccc] bg-transparent px-1 hover:bg-black/5",
1201
1201
  onMouseDown: (e) => e.preventDefault(),
1202
1202
  "aria-label": "More background colors",
1203
- children: [/* @__PURE__ */ L(h, {}), /* @__PURE__ */ L("span", {
1203
+ children: [/* @__PURE__ */ I(h, {}), /* @__PURE__ */ I("span", {
1204
1204
  className: m,
1205
1205
  "data-i18n": "moreBackColor",
1206
1206
  children: "More Background Colors"
1207
1207
  })]
1208
1208
  })]
1209
- }), /* @__PURE__ */ L("div", {
1209
+ }), /* @__PURE__ */ I("div", {
1210
1210
  ref: l,
1211
1211
  className: "forge-toolbar-dropdown forge-dropdown-color absolute left-0 top-full z-20 hidden mt-1 max-h-[220px] min-w-[180px] overflow-y-auto rounded border border-[#ccc] bg-white p-2 shadow-md rtl:left-auto rtl:right-0 [&.is-open]:block",
1212
- children: /* @__PURE__ */ L("div", {
1212
+ children: /* @__PURE__ */ I("div", {
1213
1213
  className: "forge-color-section",
1214
- children: [/* @__PURE__ */ L("div", {
1214
+ children: [/* @__PURE__ */ I("div", {
1215
1215
  className: "forge-color-section-header mb-1.5 flex items-center justify-between",
1216
- children: [/* @__PURE__ */ L("span", {
1216
+ children: [/* @__PURE__ */ I("span", {
1217
1217
  className: "forge-color-title text-xs font-bold text-[#333]",
1218
1218
  children: "Background Color"
1219
- }), /* @__PURE__ */ L("button", {
1219
+ }), /* @__PURE__ */ I("button", {
1220
1220
  type: "button",
1221
1221
  className: "forge-color-reset cursor-pointer rounded border border-[#ccc] bg-[#f5f5f5] px-2 py-0.5 text-[11px] font-medium text-[#333] hover:border-[#999] hover:bg-[#e6e6e6]",
1222
1222
  onMouseDown: (e) => e.preventDefault(),
1223
1223
  onClick: p,
1224
1224
  children: "White"
1225
1225
  })]
1226
- }), /* @__PURE__ */ L(nt, {
1226
+ }), /* @__PURE__ */ I(rt, {
1227
1227
  event: "backColor",
1228
1228
  onApply: d
1229
1229
  })]
@@ -1234,24 +1234,24 @@ function rt({ logic: e }) {
1234
1234
  }
1235
1235
  //#endregion
1236
1236
  //#region src/components/shared/toolbar/Color/Hooks/colorUtils.jsx
1237
- function it(e) {
1237
+ function at(e) {
1238
1238
  let t = document.createElement("span");
1239
1239
  t.style.color = e, document.body.appendChild(t);
1240
1240
  let n = window.getComputedStyle(t).color;
1241
1241
  return document.body.removeChild(t), n;
1242
1242
  }
1243
- function at(e, t) {
1243
+ function ot(e, t) {
1244
1244
  let n = e;
1245
1245
  for (; n && n !== document.body;) {
1246
- if (n.nodeType === Node.ELEMENT_NODE && n.tagName === "SPAN" && n.style.color && it(n.style.color) === t) return n;
1246
+ if (n.nodeType === Node.ELEMENT_NODE && n.tagName === "SPAN" && n.style.color && at(n.style.color) === t) return n;
1247
1247
  n = n.parentElement;
1248
1248
  }
1249
1249
  return null;
1250
1250
  }
1251
1251
  //#endregion
1252
1252
  //#region src/components/shared/toolbar/Color/Hooks/usePenMode.jsx
1253
- function ot(e, t) {
1254
- G(() => {
1253
+ function st(e, t) {
1254
+ W(() => {
1255
1255
  function n(n) {
1256
1256
  if (n.inputType !== "insertText" || !n.data || !e.current) return;
1257
1257
  let r = n.target;
@@ -1260,9 +1260,9 @@ function ot(e, t) {
1260
1260
  if (!i || !i.rangeCount) return;
1261
1261
  let a = i.getRangeAt(0);
1262
1262
  if (!a.collapsed) return;
1263
- let o = it(e.current), s = a.startContainer;
1263
+ let o = at(e.current), s = a.startContainer;
1264
1264
  s.nodeType === Node.TEXT_NODE && (s = s.parentElement);
1265
- let c = at(s, o);
1265
+ let c = ot(s, o);
1266
1266
  if (n.preventDefault(), c) {
1267
1267
  let e = document.createTextNode(n.data);
1268
1268
  a.insertNode(e), a.setStartAfter(e), a.collapse(!0), i.removeAllRanges(), i.addRange(a);
@@ -1278,7 +1278,7 @@ function ot(e, t) {
1278
1278
  }
1279
1279
  //#endregion
1280
1280
  //#region src/components/shared/toolbar/Color/Hooks/foreColorHandler.jsx
1281
- var st = (e, t, n) => {
1281
+ var ct = (e, t, n) => {
1282
1282
  let r = n || "#000000";
1283
1283
  if (!e) return;
1284
1284
  if (!e.collapsed) {
@@ -1295,12 +1295,12 @@ var st = (e, t, n) => {
1295
1295
  };
1296
1296
  //#endregion
1297
1297
  //#region src/components/shared/toolbar/Color/Hooks/useForeColor.jsx
1298
- function ct(e = "forge-editor__content") {
1299
- let [t, n] = W("#000000"), r = K(null);
1300
- ot(r, e);
1298
+ function lt(e = "forge-editor__content") {
1299
+ let [t, n] = U("#000000"), r = G(null);
1300
+ st(r, e);
1301
1301
  let i = (e) => {
1302
1302
  let t = e || "#000000", i = window.getSelection();
1303
- i && i.rangeCount > 0 && st(i.getRangeAt(0), i, t), r.current = t, n(t);
1303
+ i && i.rangeCount > 0 && ct(i.getRangeAt(0), i, t), r.current = t, n(t);
1304
1304
  };
1305
1305
  return {
1306
1306
  recentForeColor: t,
@@ -1315,8 +1315,8 @@ function ct(e = "forge-editor__content") {
1315
1315
  }
1316
1316
  //#endregion
1317
1317
  //#region src/components/shared/toolbar/Color/Hooks/usePenModeBack.jsx
1318
- function lt(e, t) {
1319
- G(() => {
1318
+ function ut(e, t) {
1319
+ W(() => {
1320
1320
  let n = (n) => {
1321
1321
  if (!e.current || n.inputType !== "insertText" || !n.data) return;
1322
1322
  let r = window.getSelection();
@@ -1336,7 +1336,7 @@ function lt(e, t) {
1336
1336
  }
1337
1337
  //#endregion
1338
1338
  //#region src/components/shared/toolbar/Color/Hooks/backColorHandler.jsx
1339
- var ut = (e, t, n) => {
1339
+ var dt = (e, t, n) => {
1340
1340
  let r = n || "#FFFFFF";
1341
1341
  if (!e) return;
1342
1342
  if (!e.collapsed) {
@@ -1353,12 +1353,12 @@ var ut = (e, t, n) => {
1353
1353
  };
1354
1354
  //#endregion
1355
1355
  //#region src/components/shared/toolbar/Color/Hooks/useBackColor.jsx
1356
- function dt(e = "forge-editor__content") {
1357
- let [t, n] = W("#FFFFFF"), r = K(null);
1358
- lt(r, e);
1356
+ function ft(e = "forge-editor__content") {
1357
+ let [t, n] = U("#FFFFFF"), r = G(null);
1358
+ ut(r, e);
1359
1359
  let i = (e) => {
1360
1360
  let t = e || "#FFFFFF", i = window.getSelection();
1361
- i && i.rangeCount > 0 && ut(i.getRangeAt(0), i, t), r.current = t, n(t);
1361
+ i && i.rangeCount > 0 && dt(i.getRangeAt(0), i, t), r.current = t, n(t);
1362
1362
  };
1363
1363
  return {
1364
1364
  recentBackColor: t,
@@ -1373,8 +1373,8 @@ function dt(e = "forge-editor__content") {
1373
1373
  }
1374
1374
  //#endregion
1375
1375
  //#region src/components/shared/toolbar/Color/Hooks/colorLogic.jsx
1376
- function ft() {
1377
- let e = ct(), t = dt();
1376
+ function pt() {
1377
+ let e = lt(), t = ft();
1378
1378
  return {
1379
1379
  applyColor: (n, r) => {
1380
1380
  n === "foreColor" ? e.applyForeColor(r) : n === "backColor" && t.applyBackColor(r);
@@ -1391,14 +1391,14 @@ function ft() {
1391
1391
  }
1392
1392
  //#endregion
1393
1393
  //#region src/components/shared/toolbar/Color/Components/index.jsx
1394
- function pt() {
1395
- return /* @__PURE__ */ L(rt, { logic: ft() });
1394
+ function mt() {
1395
+ return /* @__PURE__ */ I(it, { logic: pt() });
1396
1396
  }
1397
1397
  //#endregion
1398
1398
  //#region src/components/shared/toolbar/Paragraph/Components/ParagraphToolbar.jsx
1399
- function mt({ logic: e = {} }) {
1400
- let { saveSelectionRange: t, toggleUnorderedList: n, toggleOrderedList: r, setAlignment: i, outdent: a, indent: o } = e, [s, c] = W(!1), l = K(null);
1401
- G(() => {
1399
+ function ht({ logic: e = {} }) {
1400
+ let { saveSelectionRange: t, toggleUnorderedList: n, toggleOrderedList: r, setAlignment: i, outdent: a, indent: o } = e, [s, c] = U(!1), l = G(null);
1401
+ W(() => {
1402
1402
  let e = (e) => {
1403
1403
  l.current && !l.current.contains(e.target) && c(!1);
1404
1404
  };
@@ -1407,44 +1407,44 @@ function mt({ logic: e = {} }) {
1407
1407
  let u = (e, n, r = null) => {
1408
1408
  e.preventDefault(), typeof t == "function" && t(), typeof n == "function" && n(r);
1409
1409
  }, d = "forge-toolbar-button group relative flex h-8 items-center justify-center bg-white px-2.5 text-sm transition-all duration-150 hover:bg-[#f5f5f5] active:bg-[#e8e8e8] focus:outline-none", f = "forge-toolbar-icon inline-block h-4 w-4", p = "pointer-events-none absolute left-1/2 top-[calc(100%+8px)] z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#2c2c2c] bg-[#1e1e1e] px-2.5 py-1 text-[11px] font-medium leading-none text-white opacity-0 shadow-lg transition-all duration-200 group-hover:visible group-hover:opacity-100 rtl:left-1/2 rtl:-translate-x-1/2 before:absolute before:bottom-full before:left-1/2 before:-translate-x-1/2 before:border-x-[5px] before:border-b-[5px] before:border-t-0 before:border-solid before:border-x-transparent before:border-b-[#2c2c2c] after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:translate-y-[1px] after:border-x-[4px] after:border-b-[4px] after:border-t-0 after:border-solid after:border-x-transparent after:border-b-[#1e1e1e]", m = "group relative flex h-7 w-7 items-center justify-center rounded hover:bg-gray-100";
1410
- return /* @__PURE__ */ L("div", {
1410
+ return /* @__PURE__ */ I("div", {
1411
1411
  ref: l,
1412
1412
  className: "forge-toolbar-group forge-toolbar-paragraph relative inline-flex items-center text-black",
1413
1413
  children: [
1414
- /* @__PURE__ */ L("style", { children: "\n .forge-toolbar-paragraph svg * {\n vector-effect: non-scaling-stroke;\n }\n " }),
1415
- /* @__PURE__ */ L("div", {
1414
+ /* @__PURE__ */ I("style", { children: "\n .forge-toolbar-paragraph svg * {\n vector-effect: non-scaling-stroke;\n }\n " }),
1415
+ /* @__PURE__ */ I("div", {
1416
1416
  className: "inline-flex rounded-md border border-[#d1d5db] bg-white shadow-sm -space-x-px",
1417
1417
  children: [
1418
- /* @__PURE__ */ L("button", {
1418
+ /* @__PURE__ */ I("button", {
1419
1419
  type: "button",
1420
1420
  className: d,
1421
1421
  onMouseDown: (e) => u(e, n),
1422
1422
  "aria-label": "Unordered list",
1423
- children: [/* @__PURE__ */ L("span", {
1423
+ children: [/* @__PURE__ */ I("span", {
1424
1424
  className: f,
1425
- children: /* @__PURE__ */ L("svg", {
1425
+ children: /* @__PURE__ */ I("svg", {
1426
1426
  viewBox: "0 0 20 20",
1427
1427
  className: "block h-4 w-4",
1428
1428
  children: [
1429
- /* @__PURE__ */ L("circle", {
1429
+ /* @__PURE__ */ I("circle", {
1430
1430
  cx: "3",
1431
1431
  cy: "5",
1432
1432
  r: "1.5",
1433
1433
  fill: "black"
1434
1434
  }),
1435
- /* @__PURE__ */ L("circle", {
1435
+ /* @__PURE__ */ I("circle", {
1436
1436
  cx: "3",
1437
1437
  cy: "10",
1438
1438
  r: "1.5",
1439
1439
  fill: "black"
1440
1440
  }),
1441
- /* @__PURE__ */ L("circle", {
1441
+ /* @__PURE__ */ I("circle", {
1442
1442
  cx: "3",
1443
1443
  cy: "15",
1444
1444
  r: "1.5",
1445
1445
  fill: "black"
1446
1446
  }),
1447
- /* @__PURE__ */ L("rect", {
1447
+ /* @__PURE__ */ I("rect", {
1448
1448
  x: "7",
1449
1449
  y: "4",
1450
1450
  width: "11",
@@ -1452,7 +1452,7 @@ function mt({ logic: e = {} }) {
1452
1452
  rx: "1",
1453
1453
  fill: "black"
1454
1454
  }),
1455
- /* @__PURE__ */ L("rect", {
1455
+ /* @__PURE__ */ I("rect", {
1456
1456
  x: "7",
1457
1457
  y: "9",
1458
1458
  width: "11",
@@ -1460,7 +1460,7 @@ function mt({ logic: e = {} }) {
1460
1460
  rx: "1",
1461
1461
  fill: "black"
1462
1462
  }),
1463
- /* @__PURE__ */ L("rect", {
1463
+ /* @__PURE__ */ I("rect", {
1464
1464
  x: "7",
1465
1465
  y: "14",
1466
1466
  width: "11",
@@ -1470,25 +1470,25 @@ function mt({ logic: e = {} }) {
1470
1470
  })
1471
1471
  ]
1472
1472
  })
1473
- }), /* @__PURE__ */ L("span", {
1473
+ }), /* @__PURE__ */ I("span", {
1474
1474
  className: p,
1475
1475
  "data-i18n": "unorderedList",
1476
1476
  children: "Bullet list"
1477
1477
  })]
1478
1478
  }),
1479
- /* @__PURE__ */ L("div", { className: "w-[1px] bg-[#e5e7eb] my-1" }),
1480
- /* @__PURE__ */ L("button", {
1479
+ /* @__PURE__ */ I("div", { className: "w-[1px] bg-[#e5e7eb] my-1" }),
1480
+ /* @__PURE__ */ I("button", {
1481
1481
  type: "button",
1482
1482
  className: d,
1483
1483
  onMouseDown: (e) => u(e, r),
1484
1484
  "aria-label": "Ordered list",
1485
- children: [/* @__PURE__ */ L("span", {
1485
+ children: [/* @__PURE__ */ I("span", {
1486
1486
  className: f,
1487
- children: /* @__PURE__ */ L("svg", {
1487
+ children: /* @__PURE__ */ I("svg", {
1488
1488
  viewBox: "0 0 20 20",
1489
1489
  className: "block h-4 w-4",
1490
1490
  children: [
1491
- /* @__PURE__ */ L("rect", {
1491
+ /* @__PURE__ */ I("rect", {
1492
1492
  x: "7",
1493
1493
  y: "4",
1494
1494
  width: "11",
@@ -1496,7 +1496,7 @@ function mt({ logic: e = {} }) {
1496
1496
  rx: "1",
1497
1497
  fill: "black"
1498
1498
  }),
1499
- /* @__PURE__ */ L("rect", {
1499
+ /* @__PURE__ */ I("rect", {
1500
1500
  x: "7",
1501
1501
  y: "9",
1502
1502
  width: "11",
@@ -1504,7 +1504,7 @@ function mt({ logic: e = {} }) {
1504
1504
  rx: "1",
1505
1505
  fill: "black"
1506
1506
  }),
1507
- /* @__PURE__ */ L("rect", {
1507
+ /* @__PURE__ */ I("rect", {
1508
1508
  x: "7",
1509
1509
  y: "14",
1510
1510
  width: "11",
@@ -1512,7 +1512,7 @@ function mt({ logic: e = {} }) {
1512
1512
  rx: "1",
1513
1513
  fill: "black"
1514
1514
  }),
1515
- /* @__PURE__ */ L("path", {
1515
+ /* @__PURE__ */ I("path", {
1516
1516
  d: "M 1.5 4.5 L 3.5 3 L 3.5 10 M 2 10 L 5 10",
1517
1517
  fill: "none",
1518
1518
  stroke: "black",
@@ -1520,7 +1520,7 @@ function mt({ logic: e = {} }) {
1520
1520
  strokeLinecap: "round",
1521
1521
  strokeLinejoin: "round"
1522
1522
  }),
1523
- /* @__PURE__ */ L("path", {
1523
+ /* @__PURE__ */ I("path", {
1524
1524
  d: "M 1.5 14 C 1.5 12.8 4.5 12.8 4.5 14.5 C 4.5 16 1.5 16.5 1.5 18 L 5 18",
1525
1525
  fill: "none",
1526
1526
  stroke: "black",
@@ -1530,14 +1530,14 @@ function mt({ logic: e = {} }) {
1530
1530
  })
1531
1531
  ]
1532
1532
  })
1533
- }), /* @__PURE__ */ L("span", {
1533
+ }), /* @__PURE__ */ I("span", {
1534
1534
  className: p,
1535
1535
  "data-i18n": "orderedList",
1536
1536
  children: "Numbered list"
1537
1537
  })]
1538
1538
  }),
1539
- /* @__PURE__ */ L("div", { className: "w-[1px] bg-[#e5e7eb] my-1" }),
1540
- /* @__PURE__ */ L("button", {
1539
+ /* @__PURE__ */ I("div", { className: "w-[1px] bg-[#e5e7eb] my-1" }),
1540
+ /* @__PURE__ */ I("button", {
1541
1541
  type: "button",
1542
1542
  className: `${d} gap-1 pr-1.5`,
1543
1543
  onMouseDown: (e) => {
@@ -1546,13 +1546,13 @@ function mt({ logic: e = {} }) {
1546
1546
  onClick: () => c(!s),
1547
1547
  "aria-label": "Paragraph",
1548
1548
  children: [
1549
- /* @__PURE__ */ L("span", {
1549
+ /* @__PURE__ */ I("span", {
1550
1550
  className: f,
1551
- children: /* @__PURE__ */ L("svg", {
1551
+ children: /* @__PURE__ */ I("svg", {
1552
1552
  viewBox: "0 0 20 20",
1553
1553
  className: "block h-4 w-4",
1554
1554
  children: [
1555
- /* @__PURE__ */ L("rect", {
1555
+ /* @__PURE__ */ I("rect", {
1556
1556
  x: "1",
1557
1557
  y: "4",
1558
1558
  width: "18",
@@ -1560,7 +1560,7 @@ function mt({ logic: e = {} }) {
1560
1560
  rx: "1",
1561
1561
  fill: "black"
1562
1562
  }),
1563
- /* @__PURE__ */ L("rect", {
1563
+ /* @__PURE__ */ I("rect", {
1564
1564
  x: "1",
1565
1565
  y: "9",
1566
1566
  width: "18",
@@ -1568,7 +1568,7 @@ function mt({ logic: e = {} }) {
1568
1568
  rx: "1",
1569
1569
  fill: "black"
1570
1570
  }),
1571
- /* @__PURE__ */ L("rect", {
1571
+ /* @__PURE__ */ I("rect", {
1572
1572
  x: "1",
1573
1573
  y: "14",
1574
1574
  width: "12",
@@ -1579,12 +1579,12 @@ function mt({ logic: e = {} }) {
1579
1579
  ]
1580
1580
  })
1581
1581
  }),
1582
- /* @__PURE__ */ L("svg", {
1582
+ /* @__PURE__ */ I("svg", {
1583
1583
  className: `h-2.5 w-2.5 fill-current text-gray-700 transition-transform ${s ? "rotate-180" : ""}`,
1584
1584
  viewBox: "0 0 20 20",
1585
- children: /* @__PURE__ */ L("path", { d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" })
1585
+ children: /* @__PURE__ */ I("path", { d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" })
1586
1586
  }),
1587
- /* @__PURE__ */ L("span", {
1587
+ /* @__PURE__ */ I("span", {
1588
1588
  className: p,
1589
1589
  "data-i18n": "paragraph",
1590
1590
  children: "Paragraph options"
@@ -1593,27 +1593,27 @@ function mt({ logic: e = {} }) {
1593
1593
  })
1594
1594
  ]
1595
1595
  }),
1596
- s && /* @__PURE__ */ L("div", {
1596
+ s && /* @__PURE__ */ I("div", {
1597
1597
  className: "forge-toolbar-dropdown absolute left-0 top-full mt-1 z-20 min-w-[130px] rounded-md border border-[#ccc] bg-white p-1 shadow-lg rtl:left-auto rtl:right-0 block",
1598
1598
  role: "list",
1599
1599
  "aria-label": "Paragraph options",
1600
- children: [/* @__PURE__ */ L("div", {
1600
+ children: [/* @__PURE__ */ I("div", {
1601
1601
  className: "forge-toolbar-group forge-toolbar-align mb-0.5 flex gap-0.5 border-b border-[#eee] pb-1",
1602
1602
  children: [
1603
- /* @__PURE__ */ L("button", {
1603
+ /* @__PURE__ */ I("button", {
1604
1604
  type: "button",
1605
1605
  className: m,
1606
1606
  onMouseDown: (e) => {
1607
1607
  u(e, i, "left"), c(!1);
1608
1608
  },
1609
1609
  "aria-label": "Align left",
1610
- children: [/* @__PURE__ */ L("span", {
1610
+ children: [/* @__PURE__ */ I("span", {
1611
1611
  className: f,
1612
- children: /* @__PURE__ */ L("svg", {
1612
+ children: /* @__PURE__ */ I("svg", {
1613
1613
  viewBox: "0 0 20 20",
1614
1614
  className: "block h-4 w-4",
1615
1615
  children: [
1616
- /* @__PURE__ */ L("rect", {
1616
+ /* @__PURE__ */ I("rect", {
1617
1617
  x: "1",
1618
1618
  y: "4",
1619
1619
  width: "18",
@@ -1621,7 +1621,7 @@ function mt({ logic: e = {} }) {
1621
1621
  rx: "1",
1622
1622
  fill: "black"
1623
1623
  }),
1624
- /* @__PURE__ */ L("rect", {
1624
+ /* @__PURE__ */ I("rect", {
1625
1625
  x: "1",
1626
1626
  y: "9",
1627
1627
  width: "12",
@@ -1629,7 +1629,7 @@ function mt({ logic: e = {} }) {
1629
1629
  rx: "1",
1630
1630
  fill: "black"
1631
1631
  }),
1632
- /* @__PURE__ */ L("rect", {
1632
+ /* @__PURE__ */ I("rect", {
1633
1633
  x: "1",
1634
1634
  y: "14",
1635
1635
  width: "18",
@@ -1639,26 +1639,26 @@ function mt({ logic: e = {} }) {
1639
1639
  })
1640
1640
  ]
1641
1641
  })
1642
- }), /* @__PURE__ */ L("span", {
1642
+ }), /* @__PURE__ */ I("span", {
1643
1643
  className: p,
1644
1644
  "data-i18n": "alignLeft",
1645
1645
  children: "Align left"
1646
1646
  })]
1647
1647
  }),
1648
- /* @__PURE__ */ L("button", {
1648
+ /* @__PURE__ */ I("button", {
1649
1649
  type: "button",
1650
1650
  className: m,
1651
1651
  onMouseDown: (e) => {
1652
1652
  u(e, i, "center"), c(!1);
1653
1653
  },
1654
1654
  "aria-label": "Align center",
1655
- children: [/* @__PURE__ */ L("span", {
1655
+ children: [/* @__PURE__ */ I("span", {
1656
1656
  className: f,
1657
- children: /* @__PURE__ */ L("svg", {
1657
+ children: /* @__PURE__ */ I("svg", {
1658
1658
  viewBox: "0 0 20 20",
1659
1659
  className: "block h-4 w-4",
1660
1660
  children: [
1661
- /* @__PURE__ */ L("rect", {
1661
+ /* @__PURE__ */ I("rect", {
1662
1662
  x: "1",
1663
1663
  y: "4",
1664
1664
  width: "18",
@@ -1666,7 +1666,7 @@ function mt({ logic: e = {} }) {
1666
1666
  rx: "1",
1667
1667
  fill: "black"
1668
1668
  }),
1669
- /* @__PURE__ */ L("rect", {
1669
+ /* @__PURE__ */ I("rect", {
1670
1670
  x: "4",
1671
1671
  y: "9",
1672
1672
  width: "12",
@@ -1674,7 +1674,7 @@ function mt({ logic: e = {} }) {
1674
1674
  rx: "1",
1675
1675
  fill: "black"
1676
1676
  }),
1677
- /* @__PURE__ */ L("rect", {
1677
+ /* @__PURE__ */ I("rect", {
1678
1678
  x: "1",
1679
1679
  y: "14",
1680
1680
  width: "18",
@@ -1684,26 +1684,26 @@ function mt({ logic: e = {} }) {
1684
1684
  })
1685
1685
  ]
1686
1686
  })
1687
- }), /* @__PURE__ */ L("span", {
1687
+ }), /* @__PURE__ */ I("span", {
1688
1688
  className: p,
1689
1689
  "data-i18n": "alignCenter",
1690
1690
  children: "Align center"
1691
1691
  })]
1692
1692
  }),
1693
- /* @__PURE__ */ L("button", {
1693
+ /* @__PURE__ */ I("button", {
1694
1694
  type: "button",
1695
1695
  className: m,
1696
1696
  onMouseDown: (e) => {
1697
1697
  u(e, i, "right"), c(!1);
1698
1698
  },
1699
1699
  "aria-label": "Align right",
1700
- children: [/* @__PURE__ */ L("span", {
1700
+ children: [/* @__PURE__ */ I("span", {
1701
1701
  className: f,
1702
- children: /* @__PURE__ */ L("svg", {
1702
+ children: /* @__PURE__ */ I("svg", {
1703
1703
  viewBox: "0 0 20 20",
1704
1704
  className: "block h-4 w-4",
1705
1705
  children: [
1706
- /* @__PURE__ */ L("rect", {
1706
+ /* @__PURE__ */ I("rect", {
1707
1707
  x: "1",
1708
1708
  y: "4",
1709
1709
  width: "18",
@@ -1711,7 +1711,7 @@ function mt({ logic: e = {} }) {
1711
1711
  rx: "1",
1712
1712
  fill: "black"
1713
1713
  }),
1714
- /* @__PURE__ */ L("rect", {
1714
+ /* @__PURE__ */ I("rect", {
1715
1715
  x: "7",
1716
1716
  y: "9",
1717
1717
  width: "12",
@@ -1719,7 +1719,7 @@ function mt({ logic: e = {} }) {
1719
1719
  rx: "1",
1720
1720
  fill: "black"
1721
1721
  }),
1722
- /* @__PURE__ */ L("rect", {
1722
+ /* @__PURE__ */ I("rect", {
1723
1723
  x: "1",
1724
1724
  y: "14",
1725
1725
  width: "18",
@@ -1729,26 +1729,26 @@ function mt({ logic: e = {} }) {
1729
1729
  })
1730
1730
  ]
1731
1731
  })
1732
- }), /* @__PURE__ */ L("span", {
1732
+ }), /* @__PURE__ */ I("span", {
1733
1733
  className: p,
1734
1734
  "data-i18n": "alignRight",
1735
1735
  children: "Align right"
1736
1736
  })]
1737
1737
  }),
1738
- /* @__PURE__ */ L("button", {
1738
+ /* @__PURE__ */ I("button", {
1739
1739
  type: "button",
1740
1740
  className: m,
1741
1741
  onMouseDown: (e) => {
1742
1742
  u(e, i, "justify"), c(!1);
1743
1743
  },
1744
1744
  "aria-label": "Justify",
1745
- children: [/* @__PURE__ */ L("span", {
1745
+ children: [/* @__PURE__ */ I("span", {
1746
1746
  className: f,
1747
- children: /* @__PURE__ */ L("svg", {
1747
+ children: /* @__PURE__ */ I("svg", {
1748
1748
  viewBox: "0 0 20 20",
1749
1749
  className: "block h-4 w-4",
1750
1750
  children: [
1751
- /* @__PURE__ */ L("rect", {
1751
+ /* @__PURE__ */ I("rect", {
1752
1752
  x: "1",
1753
1753
  y: "4",
1754
1754
  width: "18",
@@ -1756,7 +1756,7 @@ function mt({ logic: e = {} }) {
1756
1756
  rx: "1",
1757
1757
  fill: "black"
1758
1758
  }),
1759
- /* @__PURE__ */ L("rect", {
1759
+ /* @__PURE__ */ I("rect", {
1760
1760
  x: "1",
1761
1761
  y: "9",
1762
1762
  width: "18",
@@ -1764,7 +1764,7 @@ function mt({ logic: e = {} }) {
1764
1764
  rx: "1",
1765
1765
  fill: "black"
1766
1766
  }),
1767
- /* @__PURE__ */ L("rect", {
1767
+ /* @__PURE__ */ I("rect", {
1768
1768
  x: "1",
1769
1769
  y: "14",
1770
1770
  width: "18",
@@ -1774,25 +1774,25 @@ function mt({ logic: e = {} }) {
1774
1774
  })
1775
1775
  ]
1776
1776
  })
1777
- }), /* @__PURE__ */ L("span", {
1777
+ }), /* @__PURE__ */ I("span", {
1778
1778
  className: p,
1779
1779
  "data-i18n": "justify",
1780
1780
  children: "Justify"
1781
1781
  })]
1782
1782
  })
1783
1783
  ]
1784
- }), /* @__PURE__ */ L("div", {
1784
+ }), /* @__PURE__ */ I("div", {
1785
1785
  className: "forge-toolbar-group forge-toolbar-list flex gap-0.5 py-0.5",
1786
- children: [/* @__PURE__ */ L("button", {
1786
+ children: [/* @__PURE__ */ I("button", {
1787
1787
  type: "button",
1788
1788
  className: m,
1789
1789
  onMouseDown: (e) => {
1790
1790
  u(e, a), c(!1);
1791
1791
  },
1792
1792
  "aria-label": "Outdent",
1793
- children: [/* @__PURE__ */ L("span", {
1793
+ children: [/* @__PURE__ */ I("span", {
1794
1794
  className: f,
1795
- children: /* @__PURE__ */ L("svg", {
1795
+ children: /* @__PURE__ */ I("svg", {
1796
1796
  viewBox: "0 0 20 20",
1797
1797
  className: "block h-4 w-4",
1798
1798
  fill: "none",
@@ -1801,42 +1801,42 @@ function mt({ logic: e = {} }) {
1801
1801
  strokeLinecap: "round",
1802
1802
  strokeLinejoin: "round",
1803
1803
  children: [
1804
- /* @__PURE__ */ L("line", {
1804
+ /* @__PURE__ */ I("line", {
1805
1805
  x1: "9",
1806
1806
  y1: "4",
1807
1807
  x2: "19",
1808
1808
  y2: "4"
1809
1809
  }),
1810
- /* @__PURE__ */ L("line", {
1810
+ /* @__PURE__ */ I("line", {
1811
1811
  x1: "9",
1812
1812
  y1: "10",
1813
1813
  x2: "19",
1814
1814
  y2: "10"
1815
1815
  }),
1816
- /* @__PURE__ */ L("line", {
1816
+ /* @__PURE__ */ I("line", {
1817
1817
  x1: "9",
1818
1818
  y1: "16",
1819
1819
  x2: "19",
1820
1820
  y2: "16"
1821
1821
  }),
1822
- /* @__PURE__ */ L("polyline", { points: "6,8 2,12 6,16" })
1822
+ /* @__PURE__ */ I("polyline", { points: "6,8 2,12 6,16" })
1823
1823
  ]
1824
1824
  })
1825
- }), /* @__PURE__ */ L("span", {
1825
+ }), /* @__PURE__ */ I("span", {
1826
1826
  className: p,
1827
1827
  "data-i18n": "outdent",
1828
1828
  children: "Outdent"
1829
1829
  })]
1830
- }), /* @__PURE__ */ L("button", {
1830
+ }), /* @__PURE__ */ I("button", {
1831
1831
  type: "button",
1832
1832
  className: m,
1833
1833
  onMouseDown: (e) => {
1834
1834
  u(e, o), c(!1);
1835
1835
  },
1836
1836
  "aria-label": "Indent",
1837
- children: [/* @__PURE__ */ L("span", {
1837
+ children: [/* @__PURE__ */ I("span", {
1838
1838
  className: f,
1839
- children: /* @__PURE__ */ L("svg", {
1839
+ children: /* @__PURE__ */ I("svg", {
1840
1840
  viewBox: "0 0 20 20",
1841
1841
  className: "block h-4 w-4",
1842
1842
  fill: "none",
@@ -1845,28 +1845,28 @@ function mt({ logic: e = {} }) {
1845
1845
  strokeLinecap: "round",
1846
1846
  strokeLinejoin: "round",
1847
1847
  children: [
1848
- /* @__PURE__ */ L("line", {
1848
+ /* @__PURE__ */ I("line", {
1849
1849
  x1: "9",
1850
1850
  y1: "4",
1851
1851
  x2: "19",
1852
1852
  y2: "4"
1853
1853
  }),
1854
- /* @__PURE__ */ L("line", {
1854
+ /* @__PURE__ */ I("line", {
1855
1855
  x1: "9",
1856
1856
  y1: "10",
1857
1857
  x2: "19",
1858
1858
  y2: "10"
1859
1859
  }),
1860
- /* @__PURE__ */ L("line", {
1860
+ /* @__PURE__ */ I("line", {
1861
1861
  x1: "9",
1862
1862
  y1: "16",
1863
1863
  x2: "19",
1864
1864
  y2: "16"
1865
1865
  }),
1866
- /* @__PURE__ */ L("polyline", { points: "2,8 6,12 2,16" })
1866
+ /* @__PURE__ */ I("polyline", { points: "2,8 6,12 2,16" })
1867
1867
  ]
1868
1868
  })
1869
- }), /* @__PURE__ */ L("span", {
1869
+ }), /* @__PURE__ */ I("span", {
1870
1870
  className: p,
1871
1871
  "data-i18n": "indent",
1872
1872
  children: "Indent"
@@ -1879,16 +1879,16 @@ function mt({ logic: e = {} }) {
1879
1879
  }
1880
1880
  //#endregion
1881
1881
  //#region src/components/shared/toolbar/Paragraph/Hooks/paragraphLogic.jsx
1882
- function ht() {
1882
+ function gt() {
1883
1883
  let e = window.getSelection();
1884
1884
  return e && e.rangeCount > 0 ? e.getRangeAt(0).cloneRange() : null;
1885
1885
  }
1886
- function gt(e) {
1886
+ function _t(e) {
1887
1887
  if (!e) return;
1888
1888
  let t = window.getSelection();
1889
1889
  t && (t.removeAllRanges(), t.addRange(e));
1890
1890
  }
1891
- function X(e) {
1891
+ function Y(e) {
1892
1892
  if (!e) return;
1893
1893
  e.lastChild && e.lastChild.nodeName === "BR" && e.childNodes.length > 1 && e.removeChild(e.lastChild);
1894
1894
  let t = e;
@@ -1898,7 +1898,7 @@ function X(e) {
1898
1898
  let r = window.getSelection();
1899
1899
  r && (r.removeAllRanges(), r.addRange(n));
1900
1900
  }
1901
- function _t(e) {
1901
+ function vt(e) {
1902
1902
  if (!e || e.nodeType !== 1) return !1;
1903
1903
  let t = e.tagName.toLowerCase();
1904
1904
  return [
@@ -1915,69 +1915,69 @@ function _t(e) {
1915
1915
  "pre"
1916
1916
  ].includes(t);
1917
1917
  }
1918
- function vt(e) {
1918
+ function yt(e) {
1919
1919
  if (!e) return null;
1920
1920
  let t = e.nodeType === 3 ? e.parentNode : e;
1921
- for (; t && t !== document.body && !_t(t);) t = t.parentNode;
1922
- return t && _t(t) ? t : null;
1921
+ for (; t && t !== document.body && !vt(t);) t = t.parentNode;
1922
+ return t && vt(t) ? t : null;
1923
1923
  }
1924
- function yt(e) {
1924
+ function bt(e) {
1925
1925
  if (!e) return null;
1926
1926
  let t = e.nodeType === 3 ? e.parentNode : e;
1927
1927
  for (; t && t !== document.body && t.tagName !== "LI";) t = t.parentNode;
1928
1928
  return t && t.tagName === "LI" ? t : null;
1929
1929
  }
1930
- function bt(e) {
1930
+ function xt(e) {
1931
1931
  let t = document.createElement(e);
1932
1932
  return t.className = e === "ul" ? "list-disc pl-5 my-2" : "list-decimal pl-5 my-2", t;
1933
1933
  }
1934
- function xt(e, t) {
1935
- let n = bt(t), r = document.createElement("li");
1934
+ function St(e, t) {
1935
+ let n = xt(t), r = document.createElement("li");
1936
1936
  return r.innerHTML = e.innerHTML, n.appendChild(r), e.parentNode.replaceChild(n, e), r;
1937
1937
  }
1938
- function St(e) {
1938
+ function Ct(e) {
1939
1939
  let t = e.parentNode, n = document.createDocumentFragment(), r = Array.from(e.children), i = null;
1940
1940
  return r.forEach((e) => {
1941
1941
  let t = document.createElement("div");
1942
1942
  t.innerHTML = e.innerHTML, n.appendChild(t), i = t;
1943
1943
  }), t.replaceChild(n, e), i;
1944
1944
  }
1945
- function Ct(e, t) {
1946
- let n = bt(t);
1945
+ function wt(e, t) {
1946
+ let n = xt(t);
1947
1947
  return n.innerHTML = e.innerHTML, e.parentNode.replaceChild(n, e), n;
1948
1948
  }
1949
- function wt() {
1950
- let e = K(null), t = () => {
1951
- e.current = ht();
1949
+ function Tt() {
1950
+ let e = G(null), t = () => {
1951
+ e.current = gt();
1952
1952
  }, n = (t) => {
1953
- gt(e.current);
1953
+ _t(e.current);
1954
1954
  let n = window.getSelection();
1955
1955
  if (!n || !n.rangeCount) return;
1956
1956
  let r = n.anchorNode;
1957
1957
  if (!r) return;
1958
1958
  r.nodeType === 3 && (r = r.parentNode);
1959
- let i = yt(r);
1959
+ let i = bt(r);
1960
1960
  if (i) {
1961
1961
  let n = i.parentNode;
1962
1962
  if (n && (n.tagName === "UL" || n.tagName === "OL")) {
1963
1963
  if (n.tagName.toLowerCase() === t) {
1964
- let e = St(n);
1965
- e && X(e);
1964
+ let e = Ct(n);
1965
+ e && Y(e);
1966
1966
  } else {
1967
- let e = Ct(n, t).lastElementChild;
1968
- e && X(e);
1967
+ let e = wt(n, t).lastElementChild;
1968
+ e && Y(e);
1969
1969
  }
1970
- e.current = ht();
1970
+ e.current = gt();
1971
1971
  return;
1972
1972
  }
1973
1973
  }
1974
- let a = vt(r);
1974
+ let a = yt(r);
1975
1975
  if (a) {
1976
1976
  if (a.getAttribute && a.getAttribute("contenteditable") === "true") {
1977
1977
  let e = document.createElement("div");
1978
- e.innerHTML = a.innerHTML, a.innerHTML = "", a.appendChild(e), X(xt(e, t));
1979
- } else X(xt(a, t));
1980
- e.current = ht();
1978
+ e.innerHTML = a.innerHTML, a.innerHTML = "", a.appendChild(e), Y(St(e, t));
1979
+ } else Y(St(a, t));
1980
+ e.current = gt();
1981
1981
  }
1982
1982
  };
1983
1983
  return {
@@ -1985,78 +1985,78 @@ function wt() {
1985
1985
  toggleUnorderedList: () => n("ul"),
1986
1986
  toggleOrderedList: () => n("ol"),
1987
1987
  setAlignment: (t) => {
1988
- gt(e.current);
1988
+ _t(e.current);
1989
1989
  let n = window.getSelection();
1990
1990
  if (!n || !n.rangeCount) return;
1991
1991
  let r = n.anchorNode;
1992
1992
  if (!r) return;
1993
1993
  r.nodeType === 3 && (r = r.parentNode);
1994
1994
  let i = r.closest("p, div, h1, h2, h3, h4, h5, h6, li, blockquote, pre");
1995
- i && (i.style.textAlign = t), e.current = ht();
1995
+ i && (i.style.textAlign = t), e.current = gt();
1996
1996
  },
1997
1997
  indent: () => {
1998
- gt(e.current);
1998
+ _t(e.current);
1999
1999
  let t = window.getSelection();
2000
2000
  if (!t || !t.rangeCount) return;
2001
2001
  let n = t.anchorNode;
2002
2002
  if (!n) return;
2003
2003
  n.nodeType === 3 && (n = n.parentNode);
2004
- let r = yt(n);
2004
+ let r = bt(n);
2005
2005
  if (r) {
2006
2006
  let e = r.parentNode;
2007
2007
  if (!e || e.tagName !== "UL" && e.tagName !== "OL") return;
2008
2008
  let t = r.previousElementSibling;
2009
2009
  if (!t || t.tagName !== "LI") return;
2010
2010
  let n = t.querySelector(":scope > ul, :scope > ol");
2011
- n || (n = bt(e.tagName.toLowerCase()), t.appendChild(n)), n.appendChild(r), X(r);
2011
+ n || (n = xt(e.tagName.toLowerCase()), t.appendChild(n)), n.appendChild(r), Y(r);
2012
2012
  } else {
2013
- let e = vt(n);
2013
+ let e = yt(n);
2014
2014
  if (!e) return;
2015
2015
  let t = parseInt(e.style.marginLeft) || 0;
2016
2016
  e.style.marginLeft = t + 20 + "px";
2017
2017
  }
2018
- e.current = ht();
2018
+ e.current = gt();
2019
2019
  },
2020
2020
  outdent: () => {
2021
- gt(e.current);
2021
+ _t(e.current);
2022
2022
  let t = window.getSelection();
2023
2023
  if (!t || !t.rangeCount) return;
2024
2024
  let n = t.anchorNode;
2025
2025
  if (!n) return;
2026
2026
  n.nodeType === 3 && (n = n.parentNode);
2027
- let r = yt(n);
2027
+ let r = bt(n);
2028
2028
  if (r) {
2029
2029
  let e = r.parentNode;
2030
2030
  if (!e || e.tagName !== "UL" && e.tagName !== "OL") return;
2031
2031
  let t = e.parentNode;
2032
- if (t && t.tagName === "LI") t.parentNode.insertBefore(r, t.nextSibling), e.children.length === 0 && e.remove(), X(r);
2032
+ if (t && t.tagName === "LI") t.parentNode.insertBefore(r, t.nextSibling), e.children.length === 0 && e.remove(), Y(r);
2033
2033
  else {
2034
2034
  let t = document.createElement("div");
2035
2035
  t.innerHTML = r.innerHTML;
2036
2036
  let n = e.parentNode;
2037
- e.children.length === 1 ? n.replaceChild(t, e) : (n.insertBefore(t, e.nextSibling), e.removeChild(r)), X(t);
2037
+ e.children.length === 1 ? n.replaceChild(t, e) : (n.insertBefore(t, e.nextSibling), e.removeChild(r)), Y(t);
2038
2038
  }
2039
2039
  } else {
2040
- let e = vt(n);
2040
+ let e = yt(n);
2041
2041
  if (!e) return;
2042
2042
  let t = parseInt(e.style.marginLeft) || 0;
2043
2043
  e.style.marginLeft = Math.max(0, t - 20) + "px";
2044
2044
  }
2045
- e.current = ht();
2045
+ e.current = gt();
2046
2046
  }
2047
2047
  };
2048
2048
  }
2049
2049
  //#endregion
2050
2050
  //#region src/components/shared/toolbar/Paragraph/Components/index.jsx
2051
- function Tt() {
2052
- return /* @__PURE__ */ L(mt, { logic: wt() });
2051
+ function Et() {
2052
+ return /* @__PURE__ */ I(ht, { logic: Tt() });
2053
2053
  }
2054
2054
  //#endregion
2055
2055
  //#region src/components/shared/toolbar/Table/Components/TableToolbar.jsx
2056
- var Et = 10;
2057
- function Dt({ logic: e }) {
2058
- let { insertTable: t } = e, [n, r] = W(1), [i, a] = W(1), [o, s] = W(!1), c = K(null), l = K(null), u = K(null);
2059
- G(() => {
2056
+ var Dt = 10;
2057
+ function Ot({ logic: e }) {
2058
+ let { insertTable: t } = e, [n, r] = U(1), [i, a] = U(1), [o, s] = U(!1), c = G(null), l = G(null), u = G(null);
2059
+ W(() => {
2060
2060
  if (!o) return;
2061
2061
  function e(e) {
2062
2062
  l.current && !l.current.contains(e.target) && c.current && !c.current.contains(e.target) && s(!1);
@@ -2065,53 +2065,53 @@ function Dt({ logic: e }) {
2065
2065
  }, [o]);
2066
2066
  let d = (e) => {
2067
2067
  if (!u.current) return;
2068
- let t = u.current.getBoundingClientRect(), n = e.clientX - t.left, i = e.clientY - t.top, o = t.width / Et, s = Math.min(Math.floor(n / o) + 1, Et), c = Math.min(Math.floor(i / o) + 1, Et);
2068
+ let t = u.current.getBoundingClientRect(), n = e.clientX - t.left, i = e.clientY - t.top, o = t.width / Dt, s = Math.min(Math.floor(n / o) + 1, Dt), c = Math.min(Math.floor(i / o) + 1, Dt);
2069
2069
  a(s), r(c);
2070
2070
  }, f = () => {
2071
2071
  r(1), a(1);
2072
2072
  }, p = () => {
2073
2073
  t(n, i), s(!1), r(1), a(1);
2074
- }, m = i / Et * 100, h = n / Et * 100;
2075
- return /* @__PURE__ */ L("div", {
2074
+ }, m = i / Dt * 100, h = n / Dt * 100;
2075
+ return /* @__PURE__ */ I("div", {
2076
2076
  className: "forge-toolbar-group forge-toolbar-table relative flex items-center gap-0.5",
2077
- children: [/* @__PURE__ */ L("button", {
2077
+ children: [/* @__PURE__ */ I("button", {
2078
2078
  ref: c,
2079
2079
  type: "button",
2080
2080
  className: "forge-toolbar-button group relative flex h-8 cursor-pointer items-center justify-center rounded-[2px] border border-[#ccc] bg-white px-2 text-sm leading-none transition-all duration-150 hover:bg-[#f0f0f0] active:translate-y-px",
2081
2081
  "aria-label": "Table",
2082
2082
  onClick: () => s(!o),
2083
- children: [/* @__PURE__ */ L("span", {
2083
+ children: [/* @__PURE__ */ I("span", {
2084
2084
  className: "forge-toolbar-icon",
2085
2085
  children: "▦"
2086
- }), /* @__PURE__ */ L("span", {
2086
+ }), /* @__PURE__ */ I("span", {
2087
2087
  className: "pointer-events-none absolute left-1/2 top-[calc(100%+8px)] z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#2c2c2c] bg-[#1e1e1e] px-2.5 py-1 text-[11px] font-medium leading-none text-white opacity-0 shadow-lg transition-all duration-200 group-hover:visible group-hover:opacity-100 rtl:left-1/2 rtl:-translate-x-1/2 before:absolute before:bottom-full before:left-1/2 before:-translate-x-1/2 before:border-x-[5px] before:border-b-[5px] before:border-t-0 before:border-solid before:border-x-transparent before:border-b-[#2c2c2c] after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:translate-y-[1px] after:border-x-[4px] after:border-b-[4px] after:border-t-0 after:border-solid after:border-x-transparent after:border-b-[#1e1e1e]",
2088
2088
  "data-i18n": "table",
2089
2089
  children: "Table"
2090
2090
  })]
2091
- }), /* @__PURE__ */ L("div", {
2091
+ }), /* @__PURE__ */ I("div", {
2092
2092
  ref: l,
2093
2093
  className: `forge-toolbar-dropdown forge-dropdown-table absolute left-0 top-full z-10 mt-1 min-w-[160px] rounded-[3px] border border-[#ccc] bg-white p-2 shadow-[0_2px_6px_rgba(0,0,0,0.15)] rtl:left-auto rtl:right-0 ${o ? "block" : "hidden"}`,
2094
2094
  role: "list",
2095
2095
  "aria-label": "Insert table",
2096
- children: [/* @__PURE__ */ L("div", {
2096
+ children: [/* @__PURE__ */ I("div", {
2097
2097
  ref: u,
2098
2098
  className: "note-dimension-picker relative mx-auto h-40 w-40 cursor-pointer overflow-hidden rounded-[3px] border border-[#ccc] bg-[#f5f5f5]",
2099
2099
  onMouseMove: d,
2100
2100
  onMouseLeave: f,
2101
2101
  onClick: p,
2102
2102
  children: [
2103
- /* @__PURE__ */ L("div", { className: "absolute inset-0 z-[5]" }),
2104
- /* @__PURE__ */ L("div", {
2103
+ /* @__PURE__ */ I("div", { className: "absolute inset-0 z-[5]" }),
2104
+ /* @__PURE__ */ I("div", {
2105
2105
  className: "pointer-events-none absolute left-0 top-0 z-[3] border-2 border-[#4a90d9] bg-[rgba(74,144,217,0.4)] transition-[width,height] duration-75 ease-in-out",
2106
2106
  style: {
2107
2107
  width: m + "%",
2108
2108
  height: h + "%"
2109
2109
  }
2110
2110
  }),
2111
- /* @__PURE__ */ L("div", { className: "pointer-events-none absolute inset-0 z-[2] bg-white/30" }),
2112
- /* @__PURE__ */ L("div", { className: "pointer-events-none absolute inset-0 z-[1] bg-[linear-gradient(rgba(0,0,0,0.05)_1px,transparent_1px),linear-gradient(90deg,rgba(0,0,0,0.05)_1px,transparent_1px)] bg-[size:16px_16px]" })
2111
+ /* @__PURE__ */ I("div", { className: "pointer-events-none absolute inset-0 z-[2] bg-white/30" }),
2112
+ /* @__PURE__ */ I("div", { className: "pointer-events-none absolute inset-0 z-[1] bg-[linear-gradient(rgba(0,0,0,0.05)_1px,transparent_1px),linear-gradient(90deg,rgba(0,0,0,0.05)_1px,transparent_1px)] bg-[size:16px_16px]" })
2113
2113
  ]
2114
- }), /* @__PURE__ */ L("div", {
2114
+ }), /* @__PURE__ */ I("div", {
2115
2115
  className: "note-dimension-display px-0 pt-1.5 pb-0.5 text-center text-[13px] font-semibold text-[#333]",
2116
2116
  children: [
2117
2117
  n,
@@ -2124,7 +2124,7 @@ function Dt({ logic: e }) {
2124
2124
  }
2125
2125
  //#endregion
2126
2126
  //#region src/components/shared/toolbar/Table/Hooks/tableLogic.jsx
2127
- function Ot() {
2127
+ function kt() {
2128
2128
  let e = document.querySelector(".forge-editor__content");
2129
2129
  if (e) {
2130
2130
  e.focus();
@@ -2135,10 +2135,10 @@ function Ot() {
2135
2135
  }
2136
2136
  }
2137
2137
  }
2138
- function kt(e) {
2138
+ function At(e) {
2139
2139
  let t = window.getSelection();
2140
2140
  if (!t || !t.rangeCount) {
2141
- Ot(), setTimeout(() => kt(e), 50);
2141
+ kt(), setTimeout(() => At(e), 50);
2142
2142
  return;
2143
2143
  }
2144
2144
  let n = t.getRangeAt(0);
@@ -2146,7 +2146,7 @@ function kt(e) {
2146
2146
  let r = n.createContextualFragment(e), i = r.lastChild;
2147
2147
  n.insertNode(r), i ? (n.setStartAfter(i), n.collapse(!0)) : n.collapse(!1), t.removeAllRanges(), t.addRange(n);
2148
2148
  }
2149
- function At() {
2149
+ function jt() {
2150
2150
  return { insertTable: (e, t) => {
2151
2151
  let n = (100 / t).toFixed(2) + "%", r = "<table style=\"width:100%;table-layout:fixed;border-collapse:collapse;border:1px solid #ddd;\">";
2152
2152
  for (let i = 0; i < e; i++) {
@@ -2154,58 +2154,58 @@ function At() {
2154
2154
  for (let e = 0; e < t; e++) r += `<td style="border:1px solid #ddd;padding:8px;width:${n};text-align:center;vertical-align:middle;overflow:hidden;word-break:break-word;"><br></td>`;
2155
2155
  r += "</tr>";
2156
2156
  }
2157
- r += "</table><br>", Ot(), kt(r);
2157
+ r += "</table><br>", kt(), At(r);
2158
2158
  } };
2159
2159
  }
2160
2160
  //#endregion
2161
2161
  //#region src/components/shared/toolbar/Table/Components/index.jsx
2162
- function jt() {
2163
- return /* @__PURE__ */ L(Dt, { logic: At() });
2162
+ function Mt() {
2163
+ return /* @__PURE__ */ I(Ot, { logic: jt() });
2164
2164
  }
2165
2165
  //#endregion
2166
2166
  //#region src/components/shared/toolbar/Insert/Components/InsertToolbar.jsx
2167
- function Mt({ logic: e }) {
2167
+ function Nt({ logic: e }) {
2168
2168
  let { insertLink: t, insertImage: n, insertVideo: r } = e, i = "forge-toolbar-button group relative flex h-8 cursor-pointer items-center justify-center gap-0.5 rounded-[2px] border border-[#ccc] bg-white px-[7px] py-1 text-sm leading-none transition-all duration-150 hover:bg-[#f0f0f0] active:translate-y-px", a = "forge-toolbar-icon inline-block min-w-4 text-center text-sm font-medium leading-none", o = "pointer-events-none absolute left-1/2 top-[calc(100%+8px)] z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#2c2c2c] bg-[#1e1e1e] px-2.5 py-1 text-[11px] font-medium leading-none text-white opacity-0 shadow-lg transition-all duration-200 group-hover:visible group-hover:opacity-100 rtl:left-1/2 rtl:-translate-x-1/2 before:absolute before:bottom-full before:left-1/2 before:-translate-x-1/2 before:border-x-[5px] before:border-b-[5px] before:border-t-0 before:border-solid before:border-x-transparent before:border-b-[#2c2c2c] after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:translate-y-[1px] after:border-x-[4px] after:border-b-[4px] after:border-t-0 after:border-solid after:border-x-transparent after:border-b-[#1e1e1e]";
2169
- return /* @__PURE__ */ L("div", {
2169
+ return /* @__PURE__ */ I("div", {
2170
2170
  className: "forge-toolbar-group forge-toolbar-insert flex items-center gap-0.5",
2171
2171
  children: [
2172
- /* @__PURE__ */ L("button", {
2172
+ /* @__PURE__ */ I("button", {
2173
2173
  type: "button",
2174
2174
  className: i,
2175
2175
  onClick: t,
2176
2176
  "aria-label": "Link",
2177
- children: [/* @__PURE__ */ L("span", {
2177
+ children: [/* @__PURE__ */ I("span", {
2178
2178
  className: a,
2179
2179
  children: "🔗"
2180
- }), /* @__PURE__ */ L("span", {
2180
+ }), /* @__PURE__ */ I("span", {
2181
2181
  className: o,
2182
2182
  "data-i18n": "link",
2183
2183
  children: "Link"
2184
2184
  })]
2185
2185
  }),
2186
- /* @__PURE__ */ L("button", {
2186
+ /* @__PURE__ */ I("button", {
2187
2187
  type: "button",
2188
2188
  className: i,
2189
2189
  onClick: n,
2190
2190
  "aria-label": "Image",
2191
- children: [/* @__PURE__ */ L("span", {
2191
+ children: [/* @__PURE__ */ I("span", {
2192
2192
  className: a,
2193
2193
  children: "🖼"
2194
- }), /* @__PURE__ */ L("span", {
2194
+ }), /* @__PURE__ */ I("span", {
2195
2195
  className: o,
2196
2196
  "data-i18n": "image",
2197
2197
  children: "Image"
2198
2198
  })]
2199
2199
  }),
2200
- /* @__PURE__ */ L("button", {
2200
+ /* @__PURE__ */ I("button", {
2201
2201
  type: "button",
2202
2202
  className: i,
2203
2203
  onClick: r,
2204
2204
  "aria-label": "Video",
2205
- children: [/* @__PURE__ */ L("span", {
2205
+ children: [/* @__PURE__ */ I("span", {
2206
2206
  className: a,
2207
2207
  children: "▶"
2208
- }), /* @__PURE__ */ L("span", {
2208
+ }), /* @__PURE__ */ I("span", {
2209
2209
  className: o,
2210
2210
  "data-i18n": "video",
2211
2211
  children: "Video"
@@ -2216,7 +2216,7 @@ function Mt({ logic: e }) {
2216
2216
  }
2217
2217
  //#endregion
2218
2218
  //#region src/components/shared/Hooks/sweetAlert.jsx
2219
- var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2219
+ var Pt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2220
2220
  (function(n, r) {
2221
2221
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.Sweetalert2 = r());
2222
2222
  })(e, (function() {
@@ -2261,21 +2261,21 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2261
2261
  }, v = (e) => typeof e == "function" ? e() : e, y = (e) => e && typeof e.toPromise == "function", b = (e) => y(e) ? e.toPromise() : Promise.resolve(e), x = (e) => e && Promise.resolve(e) === e, S = () => navigator.userAgent.includes("Firefox"), C = () => document.body.querySelector(`.${l.container}`), w = (e) => {
2262
2262
  let t = C();
2263
2263
  return t ? t.querySelector(e) : null;
2264
- }, T = (e) => w(`.${e}`), E = () => T(l.popup), D = () => T(l.icon), ee = () => T(l["icon-content"]), te = () => T(l.title), O = () => T(l["html-container"]), ne = () => T(l.image), re = () => T(l["progress-steps"]), k = () => T(l["validation-message"]), A = () => w(`.${l.actions} .${l.confirm}`), ie = () => w(`.${l.actions} .${l.cancel}`), j = () => w(`.${l.actions} .${l.deny}`), ae = () => T(l["input-label"]), M = () => w(`.${l.loader}`), oe = () => T(l.actions), se = () => T(l.footer), ce = () => T(l["timer-progress-bar"]), le = () => T(l.close), ue = () => {
2264
+ }, T = (e) => w(`.${e}`), E = () => T(l.popup), D = () => T(l.icon), ee = () => T(l["icon-content"]), te = () => T(l.title), O = () => T(l["html-container"]), ne = () => T(l.image), re = () => T(l["progress-steps"]), k = () => T(l["validation-message"]), A = () => w(`.${l.actions} .${l.confirm}`), ie = () => w(`.${l.actions} .${l.cancel}`), j = () => w(`.${l.actions} .${l.deny}`), ae = () => T(l["input-label"]), oe = () => w(`.${l.loader}`), se = () => T(l.actions), ce = () => T(l.footer), le = () => T(l["timer-progress-bar"]), ue = () => T(l.close), de = () => {
2265
2265
  let e = E();
2266
2266
  if (!e) return [];
2267
2267
  let t = e.querySelectorAll("[tabindex]:not([tabindex=\"-1\"]):not([tabindex=\"0\"])"), n = Array.from(t).sort((e, t) => {
2268
2268
  let n = parseInt(e.getAttribute("tabindex") || "0"), r = parseInt(t.getAttribute("tabindex") || "0");
2269
2269
  return n > r ? 1 : n < r ? -1 : 0;
2270
2270
  }), r = e.querySelectorAll("\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex=\"0\"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n"), i = Array.from(r).filter((e) => e.getAttribute("tabindex") !== "-1");
2271
- return [...new Set(n.concat(i))].filter((e) => H(e));
2272
- }, de = () => P(document.body, l.shown) && !P(document.body, l["toast-shown"]) && !P(document.body, l["no-backdrop"]), fe = () => {
2271
+ return [...new Set(n.concat(i))].filter((e) => V(e));
2272
+ }, fe = () => N(document.body, l.shown) && !N(document.body, l["toast-shown"]) && !N(document.body, l["no-backdrop"]), pe = () => {
2273
2273
  let e = E();
2274
- return e ? P(e, l.toast) : !1;
2275
- }, pe = () => {
2274
+ return e ? N(e, l.toast) : !1;
2275
+ }, me = () => {
2276
2276
  let e = E();
2277
2277
  return e ? e.hasAttribute("data-loading") : !1;
2278
- }, N = (e, t) => {
2278
+ }, M = (e, t) => {
2279
2279
  if (e.textContent = "", t) {
2280
2280
  let n = new DOMParser().parseFromString(t, "text/html"), r = n.querySelector("head");
2281
2281
  r && Array.from(r.childNodes).forEach((t) => {
@@ -2286,21 +2286,21 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2286
2286
  t instanceof HTMLVideoElement || t instanceof HTMLAudioElement ? e.appendChild(t.cloneNode(!0)) : e.appendChild(t);
2287
2287
  });
2288
2288
  }
2289
- }, P = (e, t) => t ? t.split(/\s+/).every((t) => e.classList.contains(t)) : !1, me = (e, t) => {
2289
+ }, N = (e, t) => t ? t.split(/\s+/).every((t) => e.classList.contains(t)) : !1, he = (e, t) => {
2290
2290
  Array.from(e.classList).forEach((n) => {
2291
2291
  !Object.values(l).includes(n) && !Object.values(u).includes(n) && !Object.values(t.showClass || {}).includes(n) && e.classList.remove(n);
2292
2292
  });
2293
- }, F = (e, t, n) => {
2294
- if (me(e, t), !t.customClass) return;
2293
+ }, P = (e, t, n) => {
2294
+ if (he(e, t), !t.customClass) return;
2295
2295
  let r = t.customClass[n];
2296
2296
  if (r) {
2297
2297
  if (typeof r != "string" && !r.forEach) {
2298
2298
  p(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);
2299
2299
  return;
2300
2300
  }
2301
- I(e, r);
2301
+ F(e, r);
2302
2302
  }
2303
- }, he = (e, t) => {
2303
+ }, ge = (e, t) => {
2304
2304
  if (!t) return null;
2305
2305
  switch (t) {
2306
2306
  case "select":
@@ -2311,12 +2311,12 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2311
2311
  case "range": return e.querySelector(`.${l.popup} > .${l.range} input`);
2312
2312
  default: return e.querySelector(`.${l.popup} > .${l.input}`);
2313
2313
  }
2314
- }, ge = (e) => {
2314
+ }, _e = (e) => {
2315
2315
  if (e.focus(), e.type !== "file") {
2316
2316
  let t = e.value;
2317
2317
  e.value = "", e.value = t;
2318
2318
  }
2319
- }, _e = (e, t, n) => {
2319
+ }, ve = (e, t, n) => {
2320
2320
  if (!e || !t) return;
2321
2321
  let r = typeof t == "string" ? t.split(/\s+/).filter(Boolean) : t;
2322
2322
  (Array.isArray(e) ? e : [e]).forEach((e) => {
@@ -2324,51 +2324,51 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2324
2324
  n ? e.classList.add(t) : e.classList.remove(t);
2325
2325
  });
2326
2326
  });
2327
+ }, F = (e, t) => {
2328
+ ve(e, t, !0);
2327
2329
  }, I = (e, t) => {
2328
- _e(e, t, !0);
2329
- }, L = (e, t) => {
2330
- _e(e, t, !1);
2331
- }, R = (e, t) => Array.from(e.children).find((e) => e instanceof HTMLElement && P(e, t)), ve = (e, t, n) => {
2330
+ ve(e, t, !1);
2331
+ }, L = (e, t) => Array.from(e.children).find((e) => e instanceof HTMLElement && N(e, t)), ye = (e, t, n) => {
2332
2332
  n === `${parseInt(`${n}`)}` && (n = parseInt(n)), n || n === 0 ? e.style.setProperty(t, typeof n == "number" ? `${n}px` : n) : e.style.removeProperty(t);
2333
- }, z = (e, t = "flex") => {
2333
+ }, R = (e, t = "flex") => {
2334
2334
  e && (e.style.display = t);
2335
- }, B = (e) => {
2335
+ }, z = (e) => {
2336
2336
  e && (e.style.display = "none");
2337
- }, V = (e, t = "block") => {
2337
+ }, B = (e, t = "block") => {
2338
2338
  e && new MutationObserver(() => {
2339
- be(e, e.innerHTML, t);
2339
+ xe(e, e.innerHTML, t);
2340
2340
  }).observe(e, {
2341
2341
  childList: !0,
2342
2342
  subtree: !0
2343
2343
  });
2344
- }, ye = (e, t, n, r) => {
2344
+ }, be = (e, t, n, r) => {
2345
2345
  let i = e.querySelector(t);
2346
2346
  i && i.style.setProperty(n, r);
2347
- }, be = (e, t, n = "flex") => {
2348
- t ? z(e, n) : B(e);
2349
- }, H = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), xe = () => !H(A()) && !H(j()) && !H(ie()), U = (e) => e.scrollHeight > e.clientHeight, Se = (e, t) => {
2347
+ }, xe = (e, t, n = "flex") => {
2348
+ t ? R(e, n) : z(e);
2349
+ }, V = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), Se = () => !V(A()) && !V(j()) && !V(ie()), H = (e) => e.scrollHeight > e.clientHeight, Ce = (e, t) => {
2350
2350
  let n = e;
2351
2351
  for (; n && n !== t;) {
2352
- if (U(n)) return !0;
2352
+ if (H(n)) return !0;
2353
2353
  n = n.parentElement;
2354
2354
  }
2355
2355
  return !1;
2356
- }, Ce = (e) => {
2356
+ }, we = (e) => {
2357
2357
  let t = window.getComputedStyle(e), n = parseFloat(t.getPropertyValue("animation-duration") || "0"), r = parseFloat(t.getPropertyValue("transition-duration") || "0");
2358
2358
  return n > 0 || r > 0;
2359
- }, we = (e, t = !1) => {
2360
- let n = ce();
2361
- n && H(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
2359
+ }, Te = (e, t = !1) => {
2360
+ let n = le();
2361
+ n && V(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
2362
2362
  n.style.transition = `width ${e / 1e3}s linear`, n.style.width = "0%";
2363
2363
  }, 10));
2364
- }, Te = () => {
2365
- let e = ce();
2364
+ }, Ee = () => {
2365
+ let e = le();
2366
2366
  if (!e) return;
2367
2367
  let t = parseInt(window.getComputedStyle(e).width);
2368
2368
  e.style.removeProperty("transition"), e.style.width = "100%";
2369
2369
  let n = t / parseInt(window.getComputedStyle(e).width) * 100;
2370
2370
  e.style.width = `${n}%`;
2371
- }, Ee = () => typeof window > "u" || typeof document > "u", De = `
2371
+ }, De = () => typeof window > "u" || typeof document > "u", Oe = `
2372
2372
  <div aria-labelledby="${l.title}" aria-describedby="${l["html-container"]}" class="${l.popup}" tabindex="-1">
2373
2373
  <button type="button" class="${l.close}"></button>
2374
2374
  <ul class="${l["progress-steps"]}"></ul>
@@ -2401,71 +2401,71 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2401
2401
  <div class="${l["timer-progress-bar"]}"></div>
2402
2402
  </div>
2403
2403
  </div>
2404
- `.replace(/(^|\n)\s*/g, ""), Oe = () => {
2404
+ `.replace(/(^|\n)\s*/g, ""), ke = () => {
2405
2405
  let e = C();
2406
- return e ? (e.remove(), L([document.documentElement, document.body], [
2406
+ return e ? (e.remove(), I([document.documentElement, document.body], [
2407
2407
  l["no-backdrop"],
2408
2408
  l["toast-shown"],
2409
2409
  l["has-column"]
2410
2410
  ]), !0) : !1;
2411
- }, W = () => {
2411
+ }, U = () => {
2412
2412
  a.currentInstance && a.currentInstance.resetValidationMessage();
2413
- }, ke = () => {
2413
+ }, Ae = () => {
2414
2414
  let e = E();
2415
2415
  if (!e) return;
2416
- let t = R(e, l.input), n = R(e, l.file), r = e.querySelector(`.${l.range} input`), i = e.querySelector(`.${l.range} output`), a = R(e, l.select), o = e.querySelector(`.${l.checkbox} input`), s = R(e, l.textarea);
2417
- t && (t.oninput = W), n && (n.onchange = W), a && (a.onchange = W), o && (o.onchange = W), s && (s.oninput = W), r && i && (r.oninput = () => {
2418
- W(), i.value = r.value;
2416
+ let t = L(e, l.input), n = L(e, l.file), r = e.querySelector(`.${l.range} input`), i = e.querySelector(`.${l.range} output`), a = L(e, l.select), o = e.querySelector(`.${l.checkbox} input`), s = L(e, l.textarea);
2417
+ t && (t.oninput = U), n && (n.onchange = U), a && (a.onchange = U), o && (o.onchange = U), s && (s.oninput = U), r && i && (r.oninput = () => {
2418
+ U(), i.value = r.value;
2419
2419
  }, r.onchange = () => {
2420
- W(), i.value = r.value;
2420
+ U(), i.value = r.value;
2421
2421
  });
2422
- }, G = (e) => {
2422
+ }, W = (e) => {
2423
2423
  if (typeof e == "string") {
2424
2424
  let t = document.querySelector(e);
2425
2425
  if (!t) throw Error(`Target element "${e}" not found`);
2426
2426
  return t;
2427
2427
  }
2428
2428
  return e;
2429
- }, K = (e) => {
2429
+ }, G = (e) => {
2430
2430
  let t = E();
2431
2431
  t && (t.setAttribute("role", e.toast ? "alert" : "dialog"), t.setAttribute("aria-live", e.toast ? "polite" : "assertive"), e.toast || t.setAttribute("aria-modal", "true"));
2432
- }, Ae = (e) => {
2433
- window.getComputedStyle(e).direction === "rtl" && (I(C(), l.rtl), a.isRTL = !0);
2434
2432
  }, je = (e) => {
2435
- let t = Oe();
2436
- if (Ee()) {
2433
+ window.getComputedStyle(e).direction === "rtl" && (F(C(), l.rtl), a.isRTL = !0);
2434
+ }, Me = (e) => {
2435
+ let t = ke();
2436
+ if (De()) {
2437
2437
  m("SweetAlert2 requires document to initialize");
2438
2438
  return;
2439
2439
  }
2440
2440
  let n = document.createElement("div");
2441
- n.className = l.container, t && I(n, l["no-transition"]), N(n, De), n.dataset.swal2Theme = e.theme;
2442
- let r = G(e.target || "body");
2443
- r.appendChild(n), e.topLayer && (n.setAttribute("popover", ""), n.showPopover()), K(e), Ae(r), ke();
2444
- }, Me = (e, t) => {
2445
- e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Ne(e, t) : e && N(t, e);
2441
+ n.className = l.container, t && F(n, l["no-transition"]), M(n, Oe), n.dataset.swal2Theme = e.theme;
2442
+ let r = W(e.target || "body");
2443
+ r.appendChild(n), e.topLayer && (n.setAttribute("popover", ""), n.showPopover()), G(e), je(r), Ae();
2446
2444
  }, Ne = (e, t) => {
2447
- "jquery" in e ? Pe(t, e) : N(t, e.toString());
2445
+ e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Pe(e, t) : e && M(t, e);
2448
2446
  }, Pe = (e, t) => {
2447
+ "jquery" in e ? Fe(t, e) : M(t, e.toString());
2448
+ }, Fe = (e, t) => {
2449
2449
  if (e.textContent = "", 0 in t) for (let n = 0; n in t; n++) e.appendChild(t[n].cloneNode(!0));
2450
2450
  else e.appendChild(t.cloneNode(!0));
2451
- }, Fe = (e, t) => {
2452
- let n = oe(), r = M();
2453
- !n || !r || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? B(n) : z(n), F(n, t, "actions"), Ie(n, r, t), N(r, t.loaderHtml || ""), F(r, t, "loader"));
2451
+ }, Ie = (e, t) => {
2452
+ let n = se(), r = oe();
2453
+ !n || !r || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? z(n) : R(n), P(n, t, "actions"), Le(n, r, t), M(r, t.loaderHtml || ""), P(r, t, "loader"));
2454
2454
  };
2455
- function Ie(e, t, n) {
2455
+ function Le(e, t, n) {
2456
2456
  let r = A(), i = j(), a = ie();
2457
- !r || !i || !a || (ze(r, "confirm", n), ze(i, "deny", n), ze(a, "cancel", n), Le(r, i, a, n), n.reverseButtons && (n.toast ? (e.insertBefore(a, r), e.insertBefore(i, r)) : (e.insertBefore(a, t), e.insertBefore(i, t), e.insertBefore(r, t))));
2457
+ !r || !i || !a || (Be(r, "confirm", n), Be(i, "deny", n), Be(a, "cancel", n), Re(r, i, a, n), n.reverseButtons && (n.toast ? (e.insertBefore(a, r), e.insertBefore(i, r)) : (e.insertBefore(a, t), e.insertBefore(i, t), e.insertBefore(r, t))));
2458
2458
  }
2459
- function Le(e, t, n, r) {
2459
+ function Re(e, t, n, r) {
2460
2460
  if (!r.buttonsStyling) {
2461
- L([
2461
+ I([
2462
2462
  e,
2463
2463
  t,
2464
2464
  n
2465
2465
  ], l.styled);
2466
2466
  return;
2467
2467
  }
2468
- I([
2468
+ F([
2469
2469
  e,
2470
2470
  t,
2471
2471
  n
@@ -2486,41 +2486,41 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2486
2486
  r.cancelButtonColor
2487
2487
  ]
2488
2488
  ].forEach(([e, t, n]) => {
2489
- n && e.style.setProperty(`--swal2-${t}-button-background-color`, n), Re(e);
2489
+ n && e.style.setProperty(`--swal2-${t}-button-background-color`, n), ze(e);
2490
2490
  });
2491
2491
  }
2492
- function Re(e) {
2492
+ function ze(e) {
2493
2493
  let t = window.getComputedStyle(e);
2494
2494
  if (t.getPropertyValue("--swal2-action-button-focus-box-shadow")) return;
2495
2495
  let n = t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/, "rgba($1, $2, $3, 0.5)");
2496
2496
  e.style.setProperty("--swal2-action-button-focus-box-shadow", t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/, ` ${n}`));
2497
2497
  }
2498
- function ze(e, t, n) {
2498
+ function Be(e, t, n) {
2499
2499
  let r = f(t);
2500
- be(e, n[`show${r}Button`], "inline-block"), N(e, n[`${t}ButtonText`] || ""), e.setAttribute("aria-label", n[`${t}ButtonAriaLabel`] || ""), e.className = l[t], F(e, n, `${t}Button`);
2500
+ xe(e, n[`show${r}Button`], "inline-block"), M(e, n[`${t}ButtonText`] || ""), e.setAttribute("aria-label", n[`${t}ButtonAriaLabel`] || ""), e.className = l[t], P(e, n, `${t}Button`);
2501
2501
  }
2502
- let Be = (e, t) => {
2503
- let n = le();
2504
- n && (N(n, t.closeButtonHtml || ""), F(n, t, "closeButton"), be(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel || ""));
2505
- }, Ve = (e, t) => {
2502
+ let Ve = (e, t) => {
2503
+ let n = ue();
2504
+ n && (M(n, t.closeButtonHtml || ""), P(n, t, "closeButton"), xe(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel || ""));
2505
+ }, He = (e, t) => {
2506
2506
  let n = C();
2507
- n && (He(n, t.backdrop), Ue(n, t.position), We(n, t.grow), F(n, t, "container"));
2507
+ n && (Ue(n, t.backdrop), We(n, t.position), Ge(n, t.grow), P(n, t, "container"));
2508
2508
  };
2509
- function He(e, t) {
2510
- typeof t == "string" ? e.style.background = t : t || I([document.documentElement, document.body], l["no-backdrop"]);
2511
- }
2512
2509
  function Ue(e, t) {
2513
- t && (t in l ? I(e, l[t]) : (p("The \"position\" parameter is not valid, defaulting to \"center\""), I(e, l.center)));
2510
+ typeof t == "string" ? e.style.background = t : t || F([document.documentElement, document.body], l["no-backdrop"]);
2514
2511
  }
2515
2512
  function We(e, t) {
2516
- t && I(e, l[`grow-${t}`]);
2513
+ t && (t in l ? F(e, l[t]) : (p("The \"position\" parameter is not valid, defaulting to \"center\""), F(e, l.center)));
2517
2514
  }
2518
- var q = {
2515
+ function Ge(e, t) {
2516
+ t && F(e, l[`grow-${t}`]);
2517
+ }
2518
+ var K = {
2519
2519
  innerParams: /* @__PURE__ */ new WeakMap(),
2520
2520
  domCache: /* @__PURE__ */ new WeakMap(),
2521
2521
  focusedElement: /* @__PURE__ */ new WeakMap()
2522
2522
  };
2523
- let Ge = [
2523
+ let Ke = [
2524
2524
  "input",
2525
2525
  "file",
2526
2526
  "range",
@@ -2528,92 +2528,92 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2528
2528
  "radio",
2529
2529
  "checkbox",
2530
2530
  "textarea"
2531
- ], Ke = (e, t) => {
2531
+ ], qe = (e, t) => {
2532
2532
  let n = E();
2533
2533
  if (!n) return;
2534
- let r = q.innerParams.get(e), i = !r || t.input !== r.input;
2535
- Ge.forEach((e) => {
2536
- let r = R(n, l[e]);
2537
- r && (Ye(e, t.inputAttributes), r.className = l[e], i && B(r));
2538
- }), t.input && (i && qe(t), Xe(t));
2539
- }, qe = (e) => {
2534
+ let r = K.innerParams.get(e), i = !r || t.input !== r.input;
2535
+ Ke.forEach((e) => {
2536
+ let r = L(n, l[e]);
2537
+ r && (Xe(e, t.inputAttributes), r.className = l[e], i && z(r));
2538
+ }), t.input && (i && Je(t), Ze(t));
2539
+ }, Je = (e) => {
2540
2540
  if (!e.input) return;
2541
- if (!Y[e.input]) {
2542
- m(`Unexpected type of input! Expected ${Object.keys(Y).join(" | ")}, got "${e.input}"`);
2541
+ if (!J[e.input]) {
2542
+ m(`Unexpected type of input! Expected ${Object.keys(J).join(" | ")}, got "${e.input}"`);
2543
2543
  return;
2544
2544
  }
2545
- let t = Qe(e.input);
2545
+ let t = $e(e.input);
2546
2546
  if (!t) return;
2547
- let n = Y[e.input](t, e);
2548
- z(t), e.inputAutoFocus && setTimeout(() => {
2549
- ge(n);
2547
+ let n = J[e.input](t, e);
2548
+ R(t), e.inputAutoFocus && setTimeout(() => {
2549
+ _e(n);
2550
2550
  });
2551
- }, Je = (e) => {
2551
+ }, Ye = (e) => {
2552
2552
  for (let { name: t } of Array.from(e.attributes)) [
2553
2553
  "id",
2554
2554
  "type",
2555
2555
  "value",
2556
2556
  "style"
2557
2557
  ].includes(t) || e.removeAttribute(t);
2558
- }, Ye = (e, t) => {
2558
+ }, Xe = (e, t) => {
2559
2559
  let n = E();
2560
2560
  if (!n) return;
2561
- let r = he(n, e);
2561
+ let r = ge(n, e);
2562
2562
  if (r) {
2563
- Je(r);
2563
+ Ye(r);
2564
2564
  for (let e in t) r.setAttribute(e, t[e]);
2565
2565
  }
2566
- }, Xe = (e) => {
2566
+ }, Ze = (e) => {
2567
2567
  if (!e.input) return;
2568
- let t = Qe(e.input);
2569
- t && F(t, e, "input");
2570
- }, Ze = (e, t) => {
2568
+ let t = $e(e.input);
2569
+ t && P(t, e, "input");
2570
+ }, Qe = (e, t) => {
2571
2571
  !e.placeholder && t.inputPlaceholder && (e.placeholder = t.inputPlaceholder);
2572
- }, J = (e, t, n) => {
2572
+ }, q = (e, t, n) => {
2573
2573
  if (n.inputLabel) {
2574
2574
  let r = document.createElement("label"), i = l["input-label"];
2575
- r.setAttribute("for", e.id), r.className = i, typeof n.customClass == "object" && I(r, n.customClass.inputLabel), r.innerText = n.inputLabel, t.insertAdjacentElement("beforebegin", r);
2575
+ r.setAttribute("for", e.id), r.className = i, typeof n.customClass == "object" && F(r, n.customClass.inputLabel), r.innerText = n.inputLabel, t.insertAdjacentElement("beforebegin", r);
2576
2576
  }
2577
- }, Qe = (e) => {
2577
+ }, $e = (e) => {
2578
2578
  let t = E();
2579
- if (t) return R(t, l[e] || l.input);
2580
- }, $e = (e, t) => {
2579
+ if (t) return L(t, l[e] || l.input);
2580
+ }, et = (e, t) => {
2581
2581
  ["string", "number"].includes(typeof t) ? e.value = `${t}` : x(t) || p(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`);
2582
- }, Y = {};
2583
- Y.text = Y.email = Y.password = Y.number = Y.tel = Y.url = Y.search = Y.date = Y["datetime-local"] = Y.time = Y.week = Y.month = (e, t) => {
2582
+ }, J = {};
2583
+ J.text = J.email = J.password = J.number = J.tel = J.url = J.search = J.date = J["datetime-local"] = J.time = J.week = J.month = (e, t) => {
2584
2584
  let n = e;
2585
- return $e(n, t.inputValue), J(n, n, t), Ze(n, t), n.type = t.input, n;
2586
- }, Y.file = (e, t) => {
2585
+ return et(n, t.inputValue), q(n, n, t), Qe(n, t), n.type = t.input, n;
2586
+ }, J.file = (e, t) => {
2587
2587
  let n = e;
2588
- return J(n, n, t), Ze(n, t), n;
2589
- }, Y.range = (e, t) => {
2588
+ return q(n, n, t), Qe(n, t), n;
2589
+ }, J.range = (e, t) => {
2590
2590
  let n = e, r = n.querySelector("input"), i = n.querySelector("output");
2591
- return r && ($e(r, t.inputValue), r.type = t.input, J(r, e, t)), i && $e(i, t.inputValue), e;
2592
- }, Y.select = (e, t) => {
2591
+ return r && (et(r, t.inputValue), r.type = t.input, q(r, e, t)), i && et(i, t.inputValue), e;
2592
+ }, J.select = (e, t) => {
2593
2593
  let n = e;
2594
2594
  if (n.textContent = "", t.inputPlaceholder) {
2595
2595
  let e = document.createElement("option");
2596
- N(e, t.inputPlaceholder), e.value = "", e.disabled = !0, e.selected = !0, n.appendChild(e);
2596
+ M(e, t.inputPlaceholder), e.value = "", e.disabled = !0, e.selected = !0, n.appendChild(e);
2597
2597
  }
2598
- return J(n, n, t), n;
2599
- }, Y.radio = (e) => {
2598
+ return q(n, n, t), n;
2599
+ }, J.radio = (e) => {
2600
2600
  let t = e;
2601
2601
  return t.textContent = "", e;
2602
- }, Y.checkbox = (e, t) => {
2602
+ }, J.checkbox = (e, t) => {
2603
2603
  let n = E();
2604
2604
  if (!n) throw Error("Popup not found");
2605
- let r = he(n, "checkbox");
2605
+ let r = ge(n, "checkbox");
2606
2606
  if (!r) throw Error("Checkbox input not found");
2607
2607
  r.value = "1", r.checked = !!t.inputValue;
2608
2608
  let i = e.querySelector("span");
2609
2609
  if (i) {
2610
2610
  let e = t.inputPlaceholder || t.inputLabel;
2611
- e && N(i, e);
2611
+ e && M(i, e);
2612
2612
  }
2613
2613
  return r;
2614
- }, Y.textarea = (e, t) => {
2614
+ }, J.textarea = (e, t) => {
2615
2615
  let n = e;
2616
- $e(n, t.inputValue), Ze(n, t), J(n, n, t);
2616
+ et(n, t.inputValue), Qe(n, t), q(n, n, t);
2617
2617
  let r = (e) => parseInt(window.getComputedStyle(e).marginLeft) + parseInt(window.getComputedStyle(e).marginRight);
2618
2618
  return setTimeout(() => {
2619
2619
  if ("MutationObserver" in window) {
@@ -2623,7 +2623,7 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2623
2623
  new MutationObserver(() => {
2624
2624
  if (!document.body.contains(n)) return;
2625
2625
  let e = n.offsetWidth + r(n), a = E();
2626
- a && (e > i ? a.style.width = `${e}px` : ve(a, "width", t.width));
2626
+ a && (e > i ? a.style.width = `${e}px` : ye(a, "width", t.width));
2627
2627
  }).observe(n, {
2628
2628
  attributes: !0,
2629
2629
  attributeFilter: ["style"]
@@ -2631,54 +2631,54 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2631
2631
  }
2632
2632
  }), n;
2633
2633
  };
2634
- let et = (e, t) => {
2634
+ let tt = (e, t) => {
2635
2635
  let n = O();
2636
- n && (V(n), F(n, t, "htmlContainer"), t.html ? (Me(t.html, n), z(n, "block")) : t.text ? (n.textContent = t.text, z(n, "block")) : B(n), Ke(e, t));
2637
- }, tt = (e, t) => {
2638
- let n = se();
2639
- n && (V(n), be(n, !!t.footer, "block"), t.footer && Me(t.footer, n), F(n, t, "footer"));
2636
+ n && (B(n), P(n, t, "htmlContainer"), t.html ? (Ne(t.html, n), R(n, "block")) : t.text ? (n.textContent = t.text, R(n, "block")) : z(n), qe(e, t));
2640
2637
  }, nt = (e, t) => {
2641
- let n = q.innerParams.get(e), r = D();
2638
+ let n = ce();
2639
+ n && (B(n), xe(n, !!t.footer, "block"), t.footer && Ne(t.footer, n), P(n, t, "footer"));
2640
+ }, rt = (e, t) => {
2641
+ let n = K.innerParams.get(e), r = D();
2642
2642
  if (r) {
2643
2643
  if (n && t.icon === n.icon) {
2644
- ot(r, t), rt(r, t);
2644
+ st(r, t), it(r, t);
2645
2645
  return;
2646
2646
  }
2647
2647
  if (!t.icon && !t.iconHtml) {
2648
- B(r);
2648
+ z(r);
2649
2649
  return;
2650
2650
  }
2651
2651
  if (t.icon && Object.keys(u).indexOf(t.icon) === -1) {
2652
- m(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`), B(r);
2652
+ m(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`), z(r);
2653
2653
  return;
2654
2654
  }
2655
- z(r), ot(r, t), rt(r, t), I(r, t.showClass && t.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", it);
2655
+ R(r), st(r, t), it(r, t), F(r, t.showClass && t.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", at);
2656
2656
  }
2657
- }, rt = (e, t) => {
2658
- for (let [n, r] of Object.entries(u)) t.icon !== n && L(e, r);
2659
- I(e, t.icon && u[t.icon]), st(e, t), it(), F(e, t, "icon");
2660
- }, it = () => {
2657
+ }, it = (e, t) => {
2658
+ for (let [n, r] of Object.entries(u)) t.icon !== n && I(e, r);
2659
+ F(e, t.icon && u[t.icon]), ct(e, t), at(), P(e, t, "icon");
2660
+ }, at = () => {
2661
2661
  let e = E();
2662
2662
  if (!e) return;
2663
2663
  let t = window.getComputedStyle(e).getPropertyValue("background-color");
2664
2664
  e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix").forEach((e) => {
2665
2665
  e.style.backgroundColor = t;
2666
2666
  });
2667
- }, at = (e) => `
2667
+ }, ot = (e) => `
2668
2668
  ${e.animation ? "<div class=\"swal2-success-circular-line-left\"></div>" : ""}
2669
2669
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
2670
2670
  <div class="swal2-success-ring"></div>
2671
2671
  ${e.animation ? "<div class=\"swal2-success-fix\"></div>" : ""}
2672
2672
  ${e.animation ? "<div class=\"swal2-success-circular-line-right\"></div>" : ""}
2673
- `, ot = (e, t) => {
2673
+ `, st = (e, t) => {
2674
2674
  if (!t.icon && !t.iconHtml) return;
2675
2675
  let n = e.innerHTML, r = "";
2676
- t.iconHtml ? r = ct(t.iconHtml) : t.icon === "success" ? (r = at(t), n = n.replace(/ style=".*?"/g, "")) : t.icon === "error" ? r = "\n <span class=\"swal2-x-mark\">\n <span class=\"swal2-x-mark-line-left\"></span>\n <span class=\"swal2-x-mark-line-right\"></span>\n </span>\n" : t.icon && (r = ct({
2676
+ t.iconHtml ? r = lt(t.iconHtml) : t.icon === "success" ? (r = ot(t), n = n.replace(/ style=".*?"/g, "")) : t.icon === "error" ? r = "\n <span class=\"swal2-x-mark\">\n <span class=\"swal2-x-mark-line-left\"></span>\n <span class=\"swal2-x-mark-line-right\"></span>\n </span>\n" : t.icon && (r = lt({
2677
2677
  question: "?",
2678
2678
  warning: "!",
2679
2679
  info: "i"
2680
- }[t.icon])), n.trim() !== r.trim() && N(e, r);
2681
- }, st = (e, t) => {
2680
+ }[t.icon])), n.trim() !== r.trim() && M(e, r);
2681
+ }, ct = (e, t) => {
2682
2682
  if (t.iconColor) {
2683
2683
  e.style.color = t.iconColor, e.style.borderColor = t.iconColor;
2684
2684
  for (let n of [
@@ -2686,102 +2686,102 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2686
2686
  ".swal2-success-line-long",
2687
2687
  ".swal2-x-mark-line-left",
2688
2688
  ".swal2-x-mark-line-right"
2689
- ]) ye(e, n, "background-color", t.iconColor);
2690
- ye(e, ".swal2-success-ring", "border-color", t.iconColor);
2689
+ ]) be(e, n, "background-color", t.iconColor);
2690
+ be(e, ".swal2-success-ring", "border-color", t.iconColor);
2691
2691
  }
2692
- }, ct = (e) => `<div class="${l["icon-content"]}">${e}</div>`, lt = (e, t) => {
2692
+ }, lt = (e) => `<div class="${l["icon-content"]}">${e}</div>`, ut = (e, t) => {
2693
2693
  let n = ne();
2694
2694
  if (n) {
2695
2695
  if (!t.imageUrl) {
2696
- B(n);
2696
+ z(n);
2697
2697
  return;
2698
2698
  }
2699
- z(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt || ""), ve(n, "width", t.imageWidth), ve(n, "height", t.imageHeight), n.className = l.image, F(n, t, "image");
2699
+ R(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt || ""), ye(n, "width", t.imageWidth), ye(n, "height", t.imageHeight), n.className = l.image, P(n, t, "image");
2700
2700
  }
2701
- }, ut = !1, dt = 0, ft = 0, pt = 0, mt = 0, ht = (e) => {
2702
- e.addEventListener("mousedown", X), document.body.addEventListener("mousemove", _t), e.addEventListener("mouseup", vt), e.addEventListener("touchstart", X), document.body.addEventListener("touchmove", _t), e.addEventListener("touchend", vt);
2703
- }, gt = (e) => {
2704
- e.removeEventListener("mousedown", X), document.body.removeEventListener("mousemove", _t), e.removeEventListener("mouseup", vt), e.removeEventListener("touchstart", X), document.body.removeEventListener("touchmove", _t), e.removeEventListener("touchend", vt);
2705
- }, X = (e) => {
2701
+ }, dt = !1, ft = 0, pt = 0, mt = 0, ht = 0, gt = (e) => {
2702
+ e.addEventListener("mousedown", Y), document.body.addEventListener("mousemove", vt), e.addEventListener("mouseup", yt), e.addEventListener("touchstart", Y), document.body.addEventListener("touchmove", vt), e.addEventListener("touchend", yt);
2703
+ }, _t = (e) => {
2704
+ e.removeEventListener("mousedown", Y), document.body.removeEventListener("mousemove", vt), e.removeEventListener("mouseup", yt), e.removeEventListener("touchstart", Y), document.body.removeEventListener("touchmove", vt), e.removeEventListener("touchend", yt);
2705
+ }, Y = (e) => {
2706
2706
  let t = E();
2707
2707
  if (!t) return;
2708
2708
  let n = D();
2709
2709
  if (e.target === t || n && n.contains(e.target)) {
2710
- ut = !0;
2711
- let n = yt(e);
2712
- dt = n.clientX, ft = n.clientY, pt = parseInt(t.style.insetInlineStart) || 0, mt = parseInt(t.style.insetBlockStart) || 0, I(t, "swal2-dragging");
2710
+ dt = !0;
2711
+ let n = bt(e);
2712
+ ft = n.clientX, pt = n.clientY, mt = parseInt(t.style.insetInlineStart) || 0, ht = parseInt(t.style.insetBlockStart) || 0, F(t, "swal2-dragging");
2713
2713
  }
2714
- }, _t = (e) => {
2714
+ }, vt = (e) => {
2715
2715
  let t = E();
2716
- if (t && ut) {
2717
- let { clientX: n, clientY: r } = yt(e), i = n - dt;
2718
- t.style.insetInlineStart = `${pt + (a.isRTL ? -i : i)}px`, t.style.insetBlockStart = `${mt + (r - ft)}px`;
2716
+ if (t && dt) {
2717
+ let { clientX: n, clientY: r } = bt(e), i = n - ft;
2718
+ t.style.insetInlineStart = `${mt + (a.isRTL ? -i : i)}px`, t.style.insetBlockStart = `${ht + (r - pt)}px`;
2719
2719
  }
2720
- }, vt = () => {
2720
+ }, yt = () => {
2721
2721
  let e = E();
2722
- ut = !1, L(e, "swal2-dragging");
2723
- }, yt = (e) => {
2722
+ dt = !1, I(e, "swal2-dragging");
2723
+ }, bt = (e) => {
2724
2724
  let t = e.type.startsWith("touch") ? e.touches[0] : e;
2725
2725
  return {
2726
2726
  clientX: t.clientX,
2727
2727
  clientY: t.clientY
2728
2728
  };
2729
- }, bt = (e, t) => {
2729
+ }, xt = (e, t) => {
2730
2730
  let n = C(), r = E();
2731
2731
  if (!(!n || !r)) {
2732
2732
  if (t.toast) {
2733
- ve(n, "width", t.width), r.style.width = "100%";
2734
- let e = M();
2733
+ ye(n, "width", t.width), r.style.width = "100%";
2734
+ let e = oe();
2735
2735
  e && r.insertBefore(e, D());
2736
- } else ve(r, "width", t.width);
2737
- ve(r, "padding", t.padding), t.color && (r.style.color = t.color), t.background && (r.style.background = t.background), B(k()), xt(r, t), t.draggable && !t.toast ? (I(r, l.draggable), ht(r)) : (L(r, l.draggable), gt(r));
2736
+ } else ye(r, "width", t.width);
2737
+ ye(r, "padding", t.padding), t.color && (r.style.color = t.color), t.background && (r.style.background = t.background), z(k()), St(r, t), t.draggable && !t.toast ? (F(r, l.draggable), gt(r)) : (I(r, l.draggable), _t(r));
2738
2738
  }
2739
- }, xt = (e, t) => {
2740
- let n = t.showClass || {};
2741
- e.className = `${l.popup} ${H(e) ? n.popup : ""}`, t.toast ? (I([document.documentElement, document.body], l["toast-shown"]), I(e, l.toast)) : I(e, l.modal), F(e, t, "popup"), typeof t.customClass == "string" && I(e, t.customClass), t.icon && I(e, l[`icon-${t.icon}`]);
2742
2739
  }, St = (e, t) => {
2740
+ let n = t.showClass || {};
2741
+ e.className = `${l.popup} ${V(e) ? n.popup : ""}`, t.toast ? (F([document.documentElement, document.body], l["toast-shown"]), F(e, l.toast)) : F(e, l.modal), P(e, t, "popup"), typeof t.customClass == "string" && F(e, t.customClass), t.icon && F(e, l[`icon-${t.icon}`]);
2742
+ }, Ct = (e, t) => {
2743
2743
  let n = re();
2744
2744
  if (!n) return;
2745
2745
  let { progressSteps: r, currentProgressStep: i } = t;
2746
2746
  if (!r || r.length === 0 || i === void 0) {
2747
- B(n);
2747
+ z(n);
2748
2748
  return;
2749
2749
  }
2750
- z(n), n.textContent = "", i >= r.length && p("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), r.forEach((e, a) => {
2751
- let o = Ct(e);
2752
- if (n.appendChild(o), a === i && I(o, l["active-progress-step"]), a !== r.length - 1) {
2753
- let e = wt(t);
2750
+ R(n), n.textContent = "", i >= r.length && p("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), r.forEach((e, a) => {
2751
+ let o = wt(e);
2752
+ if (n.appendChild(o), a === i && F(o, l["active-progress-step"]), a !== r.length - 1) {
2753
+ let e = Tt(t);
2754
2754
  n.appendChild(e);
2755
2755
  }
2756
2756
  });
2757
- }, Ct = (e) => {
2758
- let t = document.createElement("li");
2759
- return I(t, l["progress-step"]), N(t, e), t;
2760
2757
  }, wt = (e) => {
2761
2758
  let t = document.createElement("li");
2762
- return I(t, l["progress-step-line"]), e.progressStepsDistance && ve(t, "width", e.progressStepsDistance), t;
2763
- }, Tt = (e, t) => {
2764
- let n = te();
2765
- n && (V(n), be(n, !!(t.title || t.titleText), "block"), t.title && Me(t.title, n), t.titleText && (n.innerText = t.titleText), F(n, t, "title"));
2759
+ return F(t, l["progress-step"]), M(t, e), t;
2760
+ }, Tt = (e) => {
2761
+ let t = document.createElement("li");
2762
+ return F(t, l["progress-step-line"]), e.progressStepsDistance && ye(t, "width", e.progressStepsDistance), t;
2766
2763
  }, Et = (e, t) => {
2764
+ let n = te();
2765
+ n && (B(n), xe(n, !!(t.title || t.titleText), "block"), t.title && Ne(t.title, n), t.titleText && (n.innerText = t.titleText), P(n, t, "title"));
2766
+ }, Dt = (e, t) => {
2767
2767
  var n;
2768
- bt(e, t), Ve(e, t), St(e, t), nt(e, t), lt(e, t), Tt(e, t), Be(e, t), et(e, t), Fe(e, t), tt(e, t);
2768
+ xt(e, t), He(e, t), Ct(e, t), rt(e, t), ut(e, t), Et(e, t), Ve(e, t), tt(e, t), Ie(e, t), nt(e, t);
2769
2769
  let r = E();
2770
2770
  typeof t.didRender == "function" && r && t.didRender(r), (n = a.eventEmitter) == null || n.emit("didRender", r);
2771
- }, Dt = () => H(E()), Ot = () => A()?.click(), kt = () => j()?.click(), At = () => ie()?.click(), jt = Object.freeze({
2771
+ }, Ot = () => V(E()), kt = () => A()?.click(), At = () => j()?.click(), jt = () => ie()?.click(), Mt = Object.freeze({
2772
2772
  cancel: "cancel",
2773
2773
  backdrop: "backdrop",
2774
2774
  close: "close",
2775
2775
  esc: "esc",
2776
2776
  timer: "timer"
2777
- }), Mt = (e) => {
2777
+ }), Nt = (e) => {
2778
2778
  if (e.keydownTarget && e.keydownHandlerAdded && e.keydownHandler) {
2779
2779
  let t = e.keydownHandler;
2780
2780
  e.keydownTarget.removeEventListener("keydown", t, { capture: e.keydownListenerCapture }), e.keydownHandlerAdded = !1;
2781
2781
  }
2782
- }, Nt = (e, t, n) => {
2783
- if (Mt(e), !t.toast) {
2784
- let r = (e) => Lt(t, e, n);
2782
+ }, Pt = (e, t, n) => {
2783
+ if (Nt(e), !t.toast) {
2784
+ let r = (e) => Rt(t, e, n);
2785
2785
  e.keydownHandler = r;
2786
2786
  let i = t.keydownListenerCapture ? window : E();
2787
2787
  if (i) {
@@ -2790,26 +2790,26 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2790
2790
  e.keydownTarget.addEventListener("keydown", n, { capture: e.keydownListenerCapture }), e.keydownHandlerAdded = !0;
2791
2791
  }
2792
2792
  }
2793
- }, Pt = (e, t) => {
2793
+ }, Ft = (e, t) => {
2794
2794
  var n;
2795
- let r = ue();
2795
+ let r = de();
2796
2796
  return r.length ? (e += t, e === -2 && (e = r.length - 1), e === r.length ? e = 0 : e === -1 && (e = r.length - 1), r[e].focus(), !(S() && r[e] instanceof HTMLIFrameElement)) : ((n = E()) == null || n.focus(), !0);
2797
- }, Ft = ["ArrowRight", "ArrowDown"], It = ["ArrowLeft", "ArrowUp"], Lt = (e, t, n) => {
2798
- e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? Rt(t, e) : t.key === "Tab" ? zt(t) : [...Ft, ...It].includes(t.key) ? Bt(t.key) : t.key === "Escape" && Vt(t, e, n)));
2799
- }, Rt = (e, t) => {
2797
+ }, It = ["ArrowRight", "ArrowDown"], Lt = ["ArrowLeft", "ArrowUp"], Rt = (e, t, n) => {
2798
+ e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? zt(t, e) : t.key === "Tab" ? Bt(t) : [...It, ...Lt].includes(t.key) ? Vt(t.key) : t.key === "Escape" && Ht(t, e, n)));
2799
+ }, zt = (e, t) => {
2800
2800
  if (!v(t.allowEnterKey)) return;
2801
2801
  let n = E();
2802
2802
  if (!n || !t.input) return;
2803
- let r = he(n, t.input);
2803
+ let r = ge(n, t.input);
2804
2804
  if (e.target && r && e.target instanceof HTMLElement && e.target.outerHTML === r.outerHTML) {
2805
2805
  if (["textarea", "file"].includes(t.input)) return;
2806
- Ot(), e.preventDefault();
2806
+ kt(), e.preventDefault();
2807
2807
  }
2808
- }, zt = (e) => {
2809
- let t = e.target, n = ue().findIndex((e) => e === t), r = !0;
2810
- r = e.shiftKey ? Pt(n, -1) : Pt(n, 1), e.stopPropagation(), r && e.preventDefault();
2811
2808
  }, Bt = (e) => {
2812
- let t = oe(), n = A(), r = j(), i = ie();
2809
+ let t = e.target, n = de().findIndex((e) => e === t), r = !0;
2810
+ r = e.shiftKey ? Ft(n, -1) : Ft(n, 1), e.stopPropagation(), r && e.preventDefault();
2811
+ }, Vt = (e) => {
2812
+ let t = se(), n = A(), r = j(), i = ie();
2813
2813
  if (!t || !n || !r || !i) return;
2814
2814
  let a = [
2815
2815
  n,
@@ -2817,18 +2817,18 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2817
2817
  i
2818
2818
  ];
2819
2819
  if (document.activeElement instanceof HTMLElement && !a.includes(document.activeElement)) return;
2820
- let o = Ft.includes(e) ? "nextElementSibling" : "previousElementSibling", s = document.activeElement;
2820
+ let o = It.includes(e) ? "nextElementSibling" : "previousElementSibling", s = document.activeElement;
2821
2821
  if (s) {
2822
2822
  for (let e = 0; e < t.children.length; e++) {
2823
2823
  if (s = s[o], !s) return;
2824
- if (s instanceof HTMLButtonElement && H(s)) break;
2824
+ if (s instanceof HTMLButtonElement && V(s)) break;
2825
2825
  }
2826
2826
  s instanceof HTMLButtonElement && s.focus();
2827
2827
  }
2828
- }, Vt = (e, t, n) => {
2829
- e.preventDefault(), v(t.allowEscapeKey) && n(jt.esc);
2828
+ }, Ht = (e, t, n) => {
2829
+ e.preventDefault(), v(t.allowEscapeKey) && n(Mt.esc);
2830
2830
  };
2831
- var Ht = {
2831
+ var X = {
2832
2832
  swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
2833
2833
  swalPromiseReject: /* @__PURE__ */ new WeakMap()
2834
2834
  };
@@ -2842,9 +2842,9 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2842
2842
  e.hasAttribute("data-previous-aria-hidden") ? (e.setAttribute("aria-hidden", e.getAttribute("data-previous-aria-hidden") || ""), e.removeAttribute("data-previous-aria-hidden")) : e.removeAttribute("aria-hidden");
2843
2843
  });
2844
2844
  }, Gt = typeof window < "u" && !!window.GestureEvent, Kt = Gt && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, qt = () => {
2845
- if (Gt && !P(document.body, l.iosfix)) {
2845
+ if (Gt && !N(document.body, l.iosfix)) {
2846
2846
  let e = document.body.scrollTop;
2847
- document.body.style.top = `${e * -1}px`, I(document.body, l.iosfix), Jt();
2847
+ document.body.style.top = `${e * -1}px`, F(document.body, l.iosfix), Jt();
2848
2848
  }
2849
2849
  }, Jt = () => {
2850
2850
  let e = C();
@@ -2857,11 +2857,11 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2857
2857
  };
2858
2858
  }, Yt = (e) => {
2859
2859
  let t = e.target, n = C(), r = O();
2860
- return !n || !r || Xt(e) || Zt(e) ? !1 : t === n || !U(n) && t instanceof HTMLElement && !Se(t, r) && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !(U(r) && r.contains(t));
2860
+ return !n || !r || Xt(e) || Zt(e) ? !1 : t === n || !H(n) && t instanceof HTMLElement && !Ce(t, r) && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !(H(r) && r.contains(t));
2861
2861
  }, Xt = (e) => !!(e.touches && e.touches.length && e.touches[0].touchType === "stylus"), Zt = (e) => e.touches && e.touches.length > 1, Qt = () => {
2862
- if (P(document.body, l.iosfix)) {
2862
+ if (N(document.body, l.iosfix)) {
2863
2863
  let e = parseInt(document.body.style.top, 10);
2864
- L(document.body, l.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
2864
+ I(document.body, l.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
2865
2865
  }
2866
2866
  }, $t = () => {
2867
2867
  let e = document.createElement("div");
@@ -2874,10 +2874,10 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2874
2874
  en !== null && (document.body.style.paddingRight = `${en}px`, en = null);
2875
2875
  };
2876
2876
  function rn(e, t, n, r) {
2877
- fe() ? fn(e, r) : (s(n).then(() => fn(e, r)), Mt(a)), Gt ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), de() && (nn(), Qt(), Wt()), an();
2877
+ pe() ? fn(e, r) : (s(n).then(() => fn(e, r)), Nt(a)), Gt ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), fe() && (nn(), Qt(), Wt()), an();
2878
2878
  }
2879
2879
  function an() {
2880
- L([document.documentElement, document.body], [
2880
+ I([document.documentElement, document.body], [
2881
2881
  l.shown,
2882
2882
  l["height-auto"],
2883
2883
  l["no-backdrop"],
@@ -2886,24 +2886,24 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2886
2886
  }
2887
2887
  function Z(e) {
2888
2888
  e = ln(e);
2889
- let t = Ht.swalPromiseResolve.get(this), n = on(this);
2889
+ let t = X.swalPromiseResolve.get(this), n = on(this);
2890
2890
  this.isAwaitingPromise ? e.isDismissed || (cn(this), t(e)) : n && t(e);
2891
2891
  }
2892
2892
  let on = (e) => {
2893
2893
  let t = E();
2894
2894
  if (!t) return !1;
2895
- let n = q.innerParams.get(e);
2896
- if (!n || P(t, n.hideClass.popup)) return !1;
2897
- L(t, n.showClass.popup), I(t, n.hideClass.popup);
2895
+ let n = K.innerParams.get(e);
2896
+ if (!n || N(t, n.hideClass.popup)) return !1;
2897
+ I(t, n.showClass.popup), F(t, n.hideClass.popup);
2898
2898
  let r = C();
2899
- return L(r, n.showClass.backdrop), I(r, n.hideClass.backdrop), un(e, t, n), !0;
2899
+ return I(r, n.showClass.backdrop), F(r, n.hideClass.backdrop), un(e, t, n), !0;
2900
2900
  };
2901
2901
  function sn(e) {
2902
- let t = Ht.swalPromiseReject.get(this);
2902
+ let t = X.swalPromiseReject.get(this);
2903
2903
  cn(this), t && t(e);
2904
2904
  }
2905
2905
  let cn = (e) => {
2906
- e.isAwaitingPromise && (delete e.isAwaitingPromise, q.innerParams.get(e) || e._destroy());
2906
+ e.isAwaitingPromise && (delete e.isAwaitingPromise, K.innerParams.get(e) || e._destroy());
2907
2907
  }, ln = (e) => e === void 0 ? {
2908
2908
  isConfirmed: !1,
2909
2909
  isDenied: !1,
@@ -2914,7 +2914,7 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2914
2914
  isDismissed: !1
2915
2915
  }, e), un = (e, t, n) => {
2916
2916
  var r;
2917
- let i = C(), o = Ce(t);
2917
+ let i = C(), o = we(t);
2918
2918
  typeof n.willClose == "function" && n.willClose(t), (r = a.eventEmitter) == null || r.emit("willClose", t), o && i ? dn(e, t, i, !!n.returnFocus, n.didClose) : i && rn(e, i, !!n.returnFocus, n.didClose);
2919
2919
  }, dn = (e, t, n, r, i) => {
2920
2920
  a.swalCloseEventFinishedCallback = rn.bind(null, e, n, r, i);
@@ -2933,11 +2933,11 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2933
2933
  }, pn = (e) => {
2934
2934
  let t = E();
2935
2935
  if (t || new li(), t = E(), !t) return;
2936
- let n = M();
2937
- fe() ? B(D()) : mn(t, e), z(n), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
2936
+ let n = oe();
2937
+ pe() ? z(D()) : mn(t, e), R(n), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
2938
2938
  }, mn = (e, t) => {
2939
- let n = oe(), r = M();
2940
- !n || !r || (!t && H(A()) && (t = A()), z(n), t && (B(t), r.setAttribute("data-button-to-replace", t.className), n.insertBefore(r, t)), I([e, n], l.loading));
2939
+ let n = se(), r = oe();
2940
+ !n || !r || (!t && V(A()) && (t = A()), R(n), t && (z(t), r.setAttribute("data-button-to-replace", t.className), n.insertBefore(r, t)), F([e, n], l.loading));
2941
2941
  }, hn = (e, t) => {
2942
2942
  t.input === "select" || t.input === "radio" ? bn(e, t) : [
2943
2943
  "text",
@@ -2966,18 +2966,18 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2966
2966
  })) : typeof t.inputOptions == "object" ? r(t.inputOptions) : m(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`);
2967
2967
  }, xn = (e, t) => {
2968
2968
  let n = e.getInput();
2969
- n && (B(n), b(t.inputValue).then((r) => {
2970
- n.value = t.input === "number" ? `${parseFloat(r) || 0}` : `${r}`, z(n), n.focus(), e.hideLoading();
2969
+ n && (z(n), b(t.inputValue).then((r) => {
2970
+ n.value = t.input === "number" ? `${parseFloat(r) || 0}` : `${r}`, R(n), n.focus(), e.hideLoading();
2971
2971
  }).catch((t) => {
2972
- m(`Error in inputValue promise: ${t}`), n.value = "", z(n), n.focus(), e.hideLoading();
2972
+ m(`Error in inputValue promise: ${t}`), n.value = "", R(n), n.focus(), e.hideLoading();
2973
2973
  }));
2974
2974
  };
2975
2975
  function Sn(e, t, n) {
2976
- let r = R(e, l.select);
2976
+ let r = L(e, l.select);
2977
2977
  if (!r) return;
2978
2978
  let i = (e, t, r) => {
2979
2979
  let i = document.createElement("option");
2980
- i.value = r, N(i, t), i.selected = Tn(r, n.inputValue), e.appendChild(i);
2980
+ i.value = r, M(i, t), i.selected = Tn(r, n.inputValue), e.appendChild(i);
2981
2981
  };
2982
2982
  t.forEach((e) => {
2983
2983
  let t = e[0], n = e[1];
@@ -2988,27 +2988,27 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
2988
2988
  }), r.focus();
2989
2989
  }
2990
2990
  function Cn(e, t, n) {
2991
- let r = R(e, l.radio);
2991
+ let r = L(e, l.radio);
2992
2992
  if (!r) return;
2993
2993
  t.forEach((e) => {
2994
2994
  let t = e[0], i = e[1], a = document.createElement("input"), o = document.createElement("label");
2995
2995
  a.type = "radio", a.name = l.radio, a.value = t, Tn(t, n.inputValue) && (a.checked = !0);
2996
2996
  let s = document.createElement("span");
2997
- N(s, i), s.className = l.label, o.appendChild(a), o.appendChild(s), r.appendChild(o);
2997
+ M(s, i), s.className = l.label, o.appendChild(a), o.appendChild(s), r.appendChild(o);
2998
2998
  });
2999
2999
  let i = r.querySelectorAll("input");
3000
3000
  i.length && i[0].focus();
3001
3001
  }
3002
3002
  let wn = (e) => (e instanceof Map ? Array.from(e) : Object.entries(e)).map(([e, t]) => [e, typeof t == "object" ? wn(t) : t]), Tn = (e, t) => !!t && t != null && t.toString() === e.toString(), En = (e) => {
3003
- let t = q.innerParams.get(e);
3003
+ let t = K.innerParams.get(e);
3004
3004
  e.disableButtons(), t.input ? kn(e, "confirm") : Pn(e, !0);
3005
3005
  }, Dn = (e) => {
3006
- let t = q.innerParams.get(e);
3006
+ let t = K.innerParams.get(e);
3007
3007
  e.disableButtons(), t.returnInputValueOnDeny ? kn(e, "deny") : jn(e, !1);
3008
3008
  }, On = (e, t) => {
3009
- e.disableButtons(), t(jt.cancel);
3009
+ e.disableButtons(), t(Mt.cancel);
3010
3010
  }, kn = (e, t) => {
3011
- let n = q.innerParams.get(e);
3011
+ let n = K.innerParams.get(e);
3012
3012
  if (!n.input) {
3013
3013
  m(`The "input" parameter is needed to be set when using returnInputValueOn${f(t)}`);
3014
3014
  return;
@@ -3016,12 +3016,12 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3016
3016
  let r = e.getInput(), i = gn(e, n);
3017
3017
  n.inputValidator ? An(e, i, t) : r && !r.checkValidity() ? (e.enableButtons(), e.showValidationMessage(n.validationMessage || r.validationMessage)) : t === "deny" ? jn(e, i) : Pn(e, i);
3018
3018
  }, An = (e, t, n) => {
3019
- let r = q.innerParams.get(e);
3019
+ let r = K.innerParams.get(e);
3020
3020
  e.disableInput(), Promise.resolve().then(() => b(r.inputValidator(t, r.validationMessage))).then((r) => {
3021
3021
  e.enableButtons(), e.enableInput(), r ? e.showValidationMessage(r) : n === "deny" ? jn(e, t) : Pn(e, t);
3022
3022
  });
3023
3023
  }, jn = (e, t) => {
3024
- let n = q.innerParams.get(e);
3024
+ let n = K.innerParams.get(e);
3025
3025
  n.showLoaderOnDeny && pn(j()), n.preDeny ? (e.isAwaitingPromise = !0, Promise.resolve().then(() => b(n.preDeny(t, n.validationMessage))).then((n) => {
3026
3026
  n === !1 ? (e.hideLoading(), cn(e)) : e.close({
3027
3027
  isDenied: !0,
@@ -3039,27 +3039,27 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3039
3039
  }, Nn = (e, t) => {
3040
3040
  e.rejectPromise(t);
3041
3041
  }, Pn = (e, t) => {
3042
- let n = q.innerParams.get(e);
3042
+ let n = K.innerParams.get(e);
3043
3043
  n.showLoaderOnConfirm && pn(), n.preConfirm ? (e.resetValidationMessage(), e.isAwaitingPromise = !0, Promise.resolve().then(() => b(n.preConfirm(t, n.validationMessage))).then((n) => {
3044
- H(k()) || n === !1 ? (e.hideLoading(), cn(e)) : Mn(e, n === void 0 ? t : n);
3044
+ V(k()) || n === !1 ? (e.hideLoading(), cn(e)) : Mn(e, n === void 0 ? t : n);
3045
3045
  }).catch((t) => Nn(e, t))) : Mn(e, t);
3046
3046
  };
3047
3047
  function Fn() {
3048
- let e = q.innerParams.get(this);
3048
+ let e = K.innerParams.get(this);
3049
3049
  if (!e) return;
3050
- let t = q.domCache.get(this);
3051
- B(t.loader), fe() ? e.icon && z(D()) : In(t), L([t.popup, t.actions], l.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), this.enableButtons();
3050
+ let t = K.domCache.get(this);
3051
+ z(t.loader), pe() ? e.icon && R(D()) : In(t), I([t.popup, t.actions], l.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), this.enableButtons();
3052
3052
  }
3053
3053
  let In = (e) => {
3054
3054
  let t = e.loader.getAttribute("data-button-to-replace"), n = t ? e.popup.getElementsByClassName(t) : [];
3055
- n.length ? z(n[0], "inline-block") : xe() && B(e.actions);
3055
+ n.length ? R(n[0], "inline-block") : Se() && z(e.actions);
3056
3056
  };
3057
3057
  function Ln() {
3058
- let e = q.innerParams.get(this), t = q.domCache.get(this);
3059
- return t ? he(t.popup, e.input) : null;
3058
+ let e = K.innerParams.get(this), t = K.domCache.get(this);
3059
+ return t ? ge(t.popup, e.input) : null;
3060
3060
  }
3061
3061
  function Rn(e, t, n) {
3062
- let r = q.domCache.get(e);
3062
+ let r = K.domCache.get(e);
3063
3063
  t.forEach((e) => {
3064
3064
  r[e].disabled = n;
3065
3065
  });
@@ -3076,11 +3076,11 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3076
3076
  "denyButton",
3077
3077
  "cancelButton"
3078
3078
  ], !1);
3079
- let e = q.focusedElement.get(this);
3080
- e instanceof HTMLElement && document.activeElement === document.body && e.focus(), q.focusedElement.delete(this);
3079
+ let e = K.focusedElement.get(this);
3080
+ e instanceof HTMLElement && document.activeElement === document.body && e.focus(), K.focusedElement.delete(this);
3081
3081
  }
3082
3082
  function Vn() {
3083
- q.focusedElement.set(this, document.activeElement), Rn(this, [
3083
+ K.focusedElement.set(this, document.activeElement), Rn(this, [
3084
3084
  "confirmButton",
3085
3085
  "denyButton",
3086
3086
  "cancelButton"
@@ -3093,16 +3093,16 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3093
3093
  zn(this.getInput(), !0);
3094
3094
  }
3095
3095
  function Wn(e) {
3096
- let t = q.domCache.get(this), n = q.innerParams.get(this);
3097
- N(t.validationMessage, e), t.validationMessage.className = l["validation-message"], n.customClass && n.customClass.validationMessage && I(t.validationMessage, n.customClass.validationMessage), z(t.validationMessage);
3096
+ let t = K.domCache.get(this), n = K.innerParams.get(this);
3097
+ M(t.validationMessage, e), t.validationMessage.className = l["validation-message"], n.customClass && n.customClass.validationMessage && F(t.validationMessage, n.customClass.validationMessage), R(t.validationMessage);
3098
3098
  let r = this.getInput();
3099
- r && (r.setAttribute("aria-invalid", "true"), r.setAttribute("aria-describedby", l["validation-message"]), ge(r), I(r, l.inputerror));
3099
+ r && (r.setAttribute("aria-invalid", "true"), r.setAttribute("aria-describedby", l["validation-message"]), _e(r), F(r, l.inputerror));
3100
3100
  }
3101
3101
  function Gn() {
3102
- let e = q.domCache.get(this);
3103
- e.validationMessage && B(e.validationMessage);
3102
+ let e = K.domCache.get(this);
3103
+ e.validationMessage && z(e.validationMessage);
3104
3104
  let t = this.getInput();
3105
- t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), L(t, l.inputerror));
3105
+ t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), I(t, l.inputerror));
3106
3106
  }
3107
3107
  let Kn = {
3108
3108
  title: "",
@@ -3239,13 +3239,13 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3239
3239
  for (let t in e) $n(t), e.toast && er(t), tr(t);
3240
3240
  };
3241
3241
  function rr(e) {
3242
- let t = C(), n = E(), r = q.innerParams.get(this);
3243
- if (!n || P(n, r.hideClass.popup)) {
3242
+ let t = C(), n = E(), r = K.innerParams.get(this);
3243
+ if (!n || N(n, r.hideClass.popup)) {
3244
3244
  p("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
3245
3245
  return;
3246
3246
  }
3247
3247
  let i = ir(e), a = Object.assign({}, r, i);
3248
- nr(a), t && (t.dataset.swal2Theme = a.theme), Et(this, a), q.innerParams.set(this, a), Object.defineProperties(this, { params: {
3248
+ nr(a), t && (t.dataset.swal2Theme = a.theme), Dt(this, a), K.innerParams.set(this, a), Object.defineProperties(this, { params: {
3249
3249
  value: Object.assign({}, this.params, e),
3250
3250
  writable: !1,
3251
3251
  enumerable: !0
@@ -3259,7 +3259,7 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3259
3259
  };
3260
3260
  function ar() {
3261
3261
  var e;
3262
- let t = q.domCache.get(this), n = q.innerParams.get(this);
3262
+ let t = K.domCache.get(this), n = K.innerParams.get(this);
3263
3263
  if (!n) {
3264
3264
  sr(this);
3265
3265
  return;
@@ -3269,7 +3269,7 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3269
3269
  let or = (e) => {
3270
3270
  sr(e), delete e.params, delete a.keydownHandler, delete a.keydownTarget, delete a.currentInstance;
3271
3271
  }, sr = (e) => {
3272
- e.isAwaitingPromise ? (cr(q, e), e.isAwaitingPromise = !0) : (cr(Ht, e), cr(q, e), delete e.isAwaitingPromise, delete e.disableButtons, delete e.enableButtons, delete e.getInput, delete e.disableInput, delete e.enableInput, delete e.hideLoading, delete e.disableLoading, delete e.showValidationMessage, delete e.resetValidationMessage, delete e.close, delete e.closePopup, delete e.closeModal, delete e.closeToast, delete e.rejectPromise, delete e.update, delete e._destroy);
3272
+ e.isAwaitingPromise ? (cr(K, e), e.isAwaitingPromise = !0) : (cr(X, e), cr(K, e), delete e.isAwaitingPromise, delete e.disableButtons, delete e.enableButtons, delete e.getInput, delete e.disableInput, delete e.enableInput, delete e.hideLoading, delete e.disableLoading, delete e.showValidationMessage, delete e.resetValidationMessage, delete e.close, delete e.closePopup, delete e.closeModal, delete e.closeToast, delete e.rejectPromise, delete e.update, delete e._destroy);
3273
3273
  }, cr = (e, t) => {
3274
3274
  for (let n in e) e[n].delete(t);
3275
3275
  };
@@ -3297,7 +3297,7 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3297
3297
  e.toast ? dr(e, t, n) : (mr(t), hr(t), gr(e, t, n));
3298
3298
  }, dr = (e, t, n) => {
3299
3299
  t.popup.onclick = () => {
3300
- e && (fr(e) || e.timer || e.input) || n(jt.close);
3300
+ e && (fr(e) || e.timer || e.input) || n(Mt.close);
3301
3301
  };
3302
3302
  }, fr = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton), pr = !1, mr = (e) => {
3303
3303
  e.popup.onmousedown = () => {
@@ -3317,7 +3317,7 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3317
3317
  pr = !1;
3318
3318
  return;
3319
3319
  }
3320
- r.target === t.container && v(e.allowOutsideClick) && n(jt.backdrop);
3320
+ r.target === t.container && v(e.allowOutsideClick) && n(Mt.backdrop);
3321
3321
  };
3322
3322
  }, _r = (e) => typeof e == "object" && !!e && "jquery" in e, vr = (e) => e instanceof Element || _r(e), yr = (e) => {
3323
3323
  let t = {};
@@ -3342,11 +3342,11 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3342
3342
  return t;
3343
3343
  }
3344
3344
  let Sr = () => a.timeout && a.timeout.getTimerLeft(), Cr = () => {
3345
- if (a.timeout) return Te(), a.timeout.stop();
3345
+ if (a.timeout) return Ee(), a.timeout.stop();
3346
3346
  }, wr = () => {
3347
3347
  if (a.timeout) {
3348
3348
  let e = a.timeout.start();
3349
- return we(e), e;
3349
+ return Te(e), e;
3350
3350
  }
3351
3351
  }, Tr = () => {
3352
3352
  let e = a.timeout;
@@ -3354,7 +3354,7 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3354
3354
  }, Er = (e) => {
3355
3355
  if (a.timeout) {
3356
3356
  let t = a.timeout.increase(e);
3357
- return we(t, !0), t;
3357
+ return Te(t, !0), t;
3358
3358
  }
3359
3359
  }, Dr = () => !!(a.timeout && a.timeout.isRunning()), Or = !1, kr = {};
3360
3360
  function Ar(e = "data-swal-template") {
@@ -3411,38 +3411,38 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3411
3411
  __proto__: null,
3412
3412
  argsToParams: yr,
3413
3413
  bindClickHandler: Ar,
3414
- clickCancel: At,
3415
- clickConfirm: Ot,
3416
- clickDeny: kt,
3414
+ clickCancel: jt,
3415
+ clickConfirm: kt,
3416
+ clickDeny: At,
3417
3417
  enableLoading: pn,
3418
3418
  fire: br,
3419
- getActions: oe,
3419
+ getActions: se,
3420
3420
  getCancelButton: ie,
3421
- getCloseButton: le,
3421
+ getCloseButton: ue,
3422
3422
  getConfirmButton: A,
3423
3423
  getContainer: C,
3424
3424
  getDenyButton: j,
3425
- getFocusableElements: ue,
3426
- getFooter: se,
3425
+ getFocusableElements: de,
3426
+ getFooter: ce,
3427
3427
  getHtmlContainer: O,
3428
3428
  getIcon: D,
3429
3429
  getIconContent: ee,
3430
3430
  getImage: ne,
3431
3431
  getInputLabel: ae,
3432
- getLoader: M,
3432
+ getLoader: oe,
3433
3433
  getPopup: E,
3434
3434
  getProgressSteps: re,
3435
3435
  getTimerLeft: Sr,
3436
- getTimerProgressBar: ce,
3436
+ getTimerProgressBar: le,
3437
3437
  getTitle: te,
3438
3438
  getValidationMessage: k,
3439
3439
  increaseTimer: Er,
3440
3440
  isDeprecatedParameter: Qn,
3441
- isLoading: pe,
3441
+ isLoading: me,
3442
3442
  isTimerRunning: Dr,
3443
3443
  isUpdatableParameter: Zn,
3444
3444
  isValidParameter: Xn,
3445
- isVisible: Dt,
3445
+ isVisible: Ot,
3446
3446
  mixin: xr,
3447
3447
  off: (e, t) => {
3448
3448
  if (a.eventEmitter) {
@@ -3598,7 +3598,7 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3598
3598
  let o = window.getComputedStyle(document.body).overflowY;
3599
3599
  if (Xr(r, i, e), setTimeout(() => {
3600
3600
  Jr(r, i);
3601
- }, 10), de() && (Yr(r, e.scrollbarPadding !== void 0 && e.scrollbarPadding, o), Ut()), Kt && e.backdrop === !1 && i.scrollHeight > r.clientHeight && (r.style.pointerEvents = "auto"), !fe() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function") {
3601
+ }, 10), fe() && (Yr(r, e.scrollbarPadding !== void 0 && e.scrollbarPadding, o), Ut()), Kt && e.backdrop === !1 && i.scrollHeight > r.clientHeight && (r.style.pointerEvents = "auto"), !pe() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function") {
3602
3602
  let t = e.didOpen;
3603
3603
  setTimeout(() => t(i));
3604
3604
  }
@@ -3607,19 +3607,19 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3607
3607
  let t = E();
3608
3608
  if (!t || e.target !== t) return;
3609
3609
  let n = C();
3610
- n && (t.removeEventListener("animationend", qr), t.removeEventListener("transitionend", qr), n.style.overflowY = "auto", L(n, l["no-transition"]));
3610
+ n && (t.removeEventListener("animationend", qr), t.removeEventListener("transitionend", qr), n.style.overflowY = "auto", I(n, l["no-transition"]));
3611
3611
  }, Jr = (e, t) => {
3612
- Ce(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", qr), t.addEventListener("transitionend", qr)) : e.style.overflowY = "auto";
3612
+ we(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", qr), t.addEventListener("transitionend", qr)) : e.style.overflowY = "auto";
3613
3613
  }, Yr = (e, t, n) => {
3614
3614
  qt(), t && n !== "hidden" && tn(n), setTimeout(() => {
3615
3615
  e.scrollTop = 0;
3616
3616
  });
3617
3617
  }, Xr = (e, t, n) => {
3618
3618
  var r;
3619
- (r = n.showClass) != null && r.backdrop && I(e, n.showClass.backdrop), n.animation ? (t.style.setProperty("opacity", "0", "important"), z(t, "grid"), setTimeout(() => {
3619
+ (r = n.showClass) != null && r.backdrop && F(e, n.showClass.backdrop), n.animation ? (t.style.setProperty("opacity", "0", "important"), R(t, "grid"), setTimeout(() => {
3620
3620
  var e;
3621
- (e = n.showClass) != null && e.popup && I(t, n.showClass.popup), t.style.removeProperty("opacity");
3622
- }, 10)) : z(t, "grid"), I([document.documentElement, document.body], l.shown), n.heightAuto && n.backdrop && !n.toast && I([document.documentElement, document.body], l["height-auto"]);
3621
+ (e = n.showClass) != null && e.popup && F(t, n.showClass.popup), t.style.removeProperty("opacity");
3622
+ }, 10)) : R(t, "grid"), F([document.documentElement, document.body], l.shown), n.heightAuto && n.backdrop && !n.toast && F([document.documentElement, document.body], l["height-auto"]);
3623
3623
  };
3624
3624
  var Zr = {
3625
3625
  email: (e, t) => /^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e) ? Promise.resolve() : Promise.resolve(t || "Invalid email address"),
@@ -3632,7 +3632,7 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3632
3632
  (!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (p("Target parameter is not valid, defaulting to \"body\""), e.target = "body");
3633
3633
  }
3634
3634
  function ei(e) {
3635
- Qr(e), e.showLoaderOnConfirm && !e.preConfirm && p("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"), $r(e), typeof e.title == "string" && (e.title = e.title.split("\n").join("<br />")), je(e);
3635
+ Qr(e), e.showLoaderOnConfirm && !e.preConfirm && p("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"), $r(e), typeof e.title == "string" && (e.title = e.title.split("\n").join("<br />")), Me(e);
3636
3636
  }
3637
3637
  let Q;
3638
3638
  var ti = /*#__PURE__*/ new WeakMap();
@@ -3649,14 +3649,14 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3649
3649
  }
3650
3650
  _main(e, t = {}) {
3651
3651
  if (nr(Object.assign({}, t, e)), a.currentInstance) {
3652
- let e = Ht.swalPromiseResolve.get(a.currentInstance), { isAwaitingPromise: t } = a.currentInstance;
3653
- a.currentInstance._destroy(), t || e({ isDismissed: !0 }), de() && Wt();
3652
+ let e = X.swalPromiseResolve.get(a.currentInstance), { isAwaitingPromise: t } = a.currentInstance;
3653
+ a.currentInstance._destroy(), t || e({ isDismissed: !0 }), fe() && Wt();
3654
3654
  }
3655
3655
  a.currentInstance = Q;
3656
3656
  let n = ri(e, t);
3657
3657
  ei(n), Object.freeze(n), a.timeout && (a.timeout.stop(), delete a.timeout), clearTimeout(a.restoreFocusTimeout);
3658
3658
  let r = ii(Q);
3659
- return Et(Q, n), q.innerParams.set(Q, n), ni(Q, r, n);
3659
+ return Dt(Q, n), K.innerParams.set(Q, n), ni(Q, r, n);
3660
3660
  }
3661
3661
  then(e) {
3662
3662
  return n(ti, this).then(e);
@@ -3674,15 +3674,15 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3674
3674
  isDenied: !1
3675
3675
  });
3676
3676
  };
3677
- Ht.swalPromiseResolve.set(e, r), Ht.swalPromiseReject.set(e, i), t.confirmButton.onclick = () => {
3677
+ X.swalPromiseResolve.set(e, r), X.swalPromiseReject.set(e, i), t.confirmButton.onclick = () => {
3678
3678
  En(e);
3679
3679
  }, t.denyButton.onclick = () => {
3680
3680
  Dn(e);
3681
3681
  }, t.cancelButton.onclick = () => {
3682
3682
  On(e, o);
3683
3683
  }, t.closeButton.onclick = () => {
3684
- o(jt.close);
3685
- }, ur(n, t, o), Nt(a, n, o), hn(e, n), Kr(n), ai(a, n, o), oi(t, n), setTimeout(() => {
3684
+ o(Mt.close);
3685
+ }, ur(n, t, o), Pt(a, n, o), hn(e, n), Kr(n), ai(a, n, o), oi(t, n), setTimeout(() => {
3686
3686
  t.container.scrollTop = 0;
3687
3687
  });
3688
3688
  }), ri = (e, t) => {
@@ -3692,22 +3692,22 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3692
3692
  let t = {
3693
3693
  popup: E(),
3694
3694
  container: C(),
3695
- actions: oe(),
3695
+ actions: se(),
3696
3696
  confirmButton: A(),
3697
3697
  denyButton: j(),
3698
3698
  cancelButton: ie(),
3699
- loader: M(),
3700
- closeButton: le(),
3699
+ loader: oe(),
3700
+ closeButton: ue(),
3701
3701
  validationMessage: k(),
3702
3702
  progressSteps: re()
3703
3703
  };
3704
- return q.domCache.set(e, t), t;
3704
+ return K.domCache.set(e, t), t;
3705
3705
  }, ai = (e, t, n) => {
3706
- let r = ce();
3707
- B(r), t.timer && (e.timeout = new Pr(() => {
3706
+ let r = le();
3707
+ z(r), t.timer && (e.timeout = new Pr(() => {
3708
3708
  n("timer"), delete e.timeout;
3709
- }, t.timer), t.timerProgressBar && r && (z(r), F(r, t, "timerProgressBar"), setTimeout(() => {
3710
- e.timeout && e.timeout.running && we(t.timer);
3709
+ }, t.timer), t.timerProgressBar && r && (R(r), P(r, t, "timerProgressBar"), setTimeout(() => {
3710
+ e.timeout && e.timeout.running && Te(t.timer);
3711
3711
  })));
3712
3712
  }, oi = (e, t) => {
3713
3713
  if (!t.toast) {
@@ -3715,18 +3715,18 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3715
3715
  _("allowEnterKey", "preConfirm: () => false"), e.popup.focus();
3716
3716
  return;
3717
3717
  }
3718
- si(e) || ci(e, t) || Pt(-1, 1);
3718
+ si(e) || ci(e, t) || Ft(-1, 1);
3719
3719
  }
3720
3720
  }, si = (e) => {
3721
3721
  let t = Array.from(e.popup.querySelectorAll("[autofocus]"));
3722
- for (let e of t) if (e instanceof HTMLElement && H(e)) return e.focus(), !0;
3722
+ for (let e of t) if (e instanceof HTMLElement && V(e)) return e.focus(), !0;
3723
3723
  return !1;
3724
- }, ci = (e, t) => t.focusDeny && H(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && H(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && H(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1;
3724
+ }, ci = (e, t) => t.focusDeny && V(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && V(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && V(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1;
3725
3725
  $.prototype.disableButtons = Vn, $.prototype.enableButtons = Bn, $.prototype.getInput = Ln, $.prototype.disableInput = Un, $.prototype.enableInput = Hn, $.prototype.hideLoading = Fn, $.prototype.disableLoading = Fn, $.prototype.showValidationMessage = Wn, $.prototype.resetValidationMessage = Gn, $.prototype.close = Z, $.prototype.closePopup = Z, $.prototype.closeModal = Z, $.prototype.closeToast = Z, $.prototype.rejectPromise = sn, $.prototype.update = rr, $.prototype._destroy = ar, Object.assign($, Nr), Object.keys(lr).forEach((e) => {
3726
3726
  $[e] = function(...t) {
3727
3727
  if (Q && Q[e]) return Q[e](...t);
3728
3728
  };
3729
- }), $.DismissReason = jt, $.version = "11.26.25";
3729
+ }), $.DismissReason = Mt, $.version = "11.26.25";
3730
3730
  let li = $;
3731
3731
  return li.default = li, li;
3732
3732
  })), e !== void 0 && e.Sweetalert2 && (e.swal = e.sweetAlert = e.Swal = e.SweetAlert = e.Sweetalert2), typeof document < "u" && function(e, t) {
@@ -3739,9 +3739,9 @@ var Nt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
3739
3739
  }
3740
3740
  }(document, ":root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:\"top-start top top-end\" \"center-start center center-end\" \"bottom-start bottom-center bottom-end\";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:\"!\";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}");
3741
3741
  })))(), 1);
3742
- function Pt({ title: e, inputs: t, confirmText: n, cancelText: r }) {
3742
+ function Ft({ title: e, inputs: t, confirmText: n, cancelText: r }) {
3743
3743
  let i = t.map((e, t) => `<input id="${`swal-input-${t}`}" class="swal2-input" placeholder="${e.placeholder || ""}" value="${e.value || ""}">`).join("");
3744
- return Nt.default.fire({
3744
+ return Pt.default.fire({
3745
3745
  title: e,
3746
3746
  html: i,
3747
3747
  focusConfirm: !1,
@@ -3750,7 +3750,7 @@ function Pt({ title: e, inputs: t, confirmText: n, cancelText: r }) {
3750
3750
  let n = `swal-input-${t}`, r = document.getElementById(n);
3751
3751
  if (!r) return null;
3752
3752
  let i = r.value;
3753
- return e.required && !i ? (Nt.default.showValidationMessage(e.requiredMessage || "This field is required"), !1) : i;
3753
+ return e.required && !i ? (Pt.default.showValidationMessage(e.requiredMessage || "This field is required"), !1) : i;
3754
3754
  });
3755
3755
  return !e.includes(!1) && e;
3756
3756
  },
@@ -3761,16 +3761,16 @@ function Pt({ title: e, inputs: t, confirmText: n, cancelText: r }) {
3761
3761
  }
3762
3762
  //#endregion
3763
3763
  //#region src/components/shared/toolbar/Insert/Hooks/insertLogic.jsx
3764
- function Ft() {
3764
+ function It() {
3765
3765
  let e = window.getSelection();
3766
3766
  return e && e.rangeCount > 0 ? e.getRangeAt(0).cloneRange() : null;
3767
3767
  }
3768
- function It(e) {
3768
+ function Lt(e) {
3769
3769
  if (!e) return;
3770
3770
  let t = window.getSelection();
3771
3771
  t && (t.removeAllRanges(), t.addRange(e));
3772
3772
  }
3773
- function Lt() {
3773
+ function Rt() {
3774
3774
  let e = document.querySelector(".forge-editor__content");
3775
3775
  if (e) {
3776
3776
  e.focus();
@@ -3781,10 +3781,10 @@ function Lt() {
3781
3781
  }
3782
3782
  }
3783
3783
  }
3784
- function Rt(e) {
3784
+ function zt(e) {
3785
3785
  let t = window.getSelection();
3786
3786
  if (!t || !t.rangeCount) {
3787
- Lt(), setTimeout(() => Rt(e), 50);
3787
+ Rt(), setTimeout(() => zt(e), 50);
3788
3788
  return;
3789
3789
  }
3790
3790
  let n = t.getRangeAt(0);
@@ -3792,10 +3792,10 @@ function Rt(e) {
3792
3792
  let r = n.createContextualFragment(e), i = r.lastChild;
3793
3793
  n.insertNode(r), i ? (n.setStartAfter(i), n.collapse(!0)) : n.collapse(!1), t.removeAllRanges(), t.addRange(n);
3794
3794
  }
3795
- function zt() {
3795
+ function Bt() {
3796
3796
  return {
3797
3797
  insertLink: async () => {
3798
- let e = Ft(), t = await Pt({
3798
+ let e = It(), t = await Ft({
3799
3799
  title: "Insert Link",
3800
3800
  inputs: [{
3801
3801
  placeholder: "URL",
@@ -3807,13 +3807,13 @@ function zt() {
3807
3807
  cancelText: "Cancel"
3808
3808
  });
3809
3809
  if (t.isConfirmed && t.value) {
3810
- It(e);
3810
+ Lt(e);
3811
3811
  let [n, r] = t.value;
3812
- Rt(r ? `<a href="${n}" target="_blank" rel="noopener">${r}</a>` : `<a href="${n}" target="_blank" rel="noopener">${n}</a>`);
3812
+ zt(r ? `<a href="${n}" target="_blank" rel="noopener">${r}</a>` : `<a href="${n}" target="_blank" rel="noopener">${n}</a>`);
3813
3813
  }
3814
3814
  },
3815
3815
  insertImage: async () => {
3816
- let e = Ft(), t = await Pt({
3816
+ let e = It(), t = await Ft({
3817
3817
  title: "Insert Image",
3818
3818
  inputs: [{
3819
3819
  placeholder: "Image URL",
@@ -3828,13 +3828,13 @@ function zt() {
3828
3828
  cancelText: "Cancel"
3829
3829
  });
3830
3830
  if (t.isConfirmed && t.value) {
3831
- It(e);
3831
+ Lt(e);
3832
3832
  let [n, r] = t.value;
3833
- Rt(`<img src="${n}" alt="${r}" style="max-width: 100%;">`);
3833
+ zt(`<img src="${n}" alt="${r}" style="max-width: 100%;">`);
3834
3834
  }
3835
3835
  },
3836
3836
  insertVideo: async () => {
3837
- let e = Ft(), t = await Pt({
3837
+ let e = It(), t = await Ft({
3838
3838
  title: "Insert Video",
3839
3839
  inputs: [{
3840
3840
  placeholder: "Video URL (YouTube/Vimeo)",
@@ -3846,46 +3846,46 @@ function zt() {
3846
3846
  cancelText: "Cancel"
3847
3847
  });
3848
3848
  if (t.isConfirmed && t.value) {
3849
- It(e);
3849
+ Lt(e);
3850
3850
  let [n] = t.value, r;
3851
- r = n.includes("youtube.com") || n.includes("youtu.be") ? `<iframe width="560" height="315" src="${n.replace("watch?v=", "embed/").replace("youtu.be/", "youtube.com/embed/")}" frameborder="0" allowfullscreen></iframe>` : `<video controls src="${n}" style="max-width: 100%;"></video>`, Rt(r);
3851
+ r = n.includes("youtube.com") || n.includes("youtu.be") ? `<iframe width="560" height="315" src="${n.replace("watch?v=", "embed/").replace("youtu.be/", "youtube.com/embed/")}" frameborder="0" allowfullscreen></iframe>` : `<video controls src="${n}" style="max-width: 100%;"></video>`, zt(r);
3852
3852
  }
3853
3853
  }
3854
3854
  };
3855
3855
  }
3856
3856
  //#endregion
3857
3857
  //#region src/components/shared/toolbar/Insert/Components/index.jsx
3858
- function Bt() {
3859
- return /* @__PURE__ */ L(Mt, { logic: zt() });
3858
+ function Vt() {
3859
+ return /* @__PURE__ */ I(Nt, { logic: Bt() });
3860
3860
  }
3861
3861
  //#endregion
3862
3862
  //#region src/components/shared/toolbar/View/Components/ViewToolbar.jsx
3863
- function Vt({ logic: e }) {
3863
+ function Ht({ logic: e }) {
3864
3864
  let { toggleFullscreen: t, toggleCodeView: n, showHelp: r } = e, i = "forge-toolbar-button group relative flex h-8 cursor-pointer items-center justify-center rounded-[2px] border border-[#ccc] bg-white px-2 text-sm leading-none transition-all duration-150 hover:bg-[#f0f0f0] active:translate-y-px", a = "pointer-events-none absolute left-1/2 top-[calc(100%+8px)] z-30 -translate-x-1/2 whitespace-nowrap rounded-md border border-[#2c2c2c] bg-[#1e1e1e] px-2.5 py-1 text-[11px] font-medium leading-none text-white opacity-0 shadow-lg transition-all duration-200 group-hover:visible group-hover:opacity-100 rtl:left-1/2 rtl:-translate-x-1/2 before:absolute before:bottom-full before:left-1/2 before:-translate-x-1/2 before:border-x-[5px] before:border-b-[5px] before:border-t-0 before:border-solid before:border-x-transparent before:border-b-[#2c2c2c] after:absolute after:bottom-full after:left-1/2 after:-translate-x-1/2 after:translate-y-[1px] after:border-x-[4px] after:border-b-[4px] after:border-t-0 after:border-solid after:border-x-transparent after:border-b-[#1e1e1e]";
3865
- return /* @__PURE__ */ L("div", {
3865
+ return /* @__PURE__ */ I("div", {
3866
3866
  className: "forge-toolbar-group forge-toolbar-view flex items-center gap-0.5",
3867
- children: [/* @__PURE__ */ L("button", {
3867
+ children: [/* @__PURE__ */ I("button", {
3868
3868
  type: "button",
3869
3869
  className: i,
3870
3870
  onClick: t,
3871
3871
  "aria-label": "Full Screen",
3872
- children: [/* @__PURE__ */ L("span", {
3872
+ children: [/* @__PURE__ */ I("span", {
3873
3873
  className: "forge-toolbar-icon",
3874
3874
  children: "⛶"
3875
- }), /* @__PURE__ */ L("span", {
3875
+ }), /* @__PURE__ */ I("span", {
3876
3876
  className: a,
3877
3877
  "data-i18n": "fullscreen",
3878
3878
  children: "Full Screen"
3879
3879
  })]
3880
- }), /* @__PURE__ */ L("button", {
3880
+ }), /* @__PURE__ */ I("button", {
3881
3881
  type: "button",
3882
3882
  className: i,
3883
3883
  onClick: n,
3884
3884
  "aria-label": "Code View",
3885
- children: [/* @__PURE__ */ L("span", {
3885
+ children: [/* @__PURE__ */ I("span", {
3886
3886
  className: "forge-toolbar-icon",
3887
3887
  children: "</>"
3888
- }), /* @__PURE__ */ L("span", {
3888
+ }), /* @__PURE__ */ I("span", {
3889
3889
  className: a,
3890
3890
  "data-i18n": "codeview",
3891
3891
  children: "Code View"
@@ -3895,7 +3895,7 @@ function Vt({ logic: e }) {
3895
3895
  }
3896
3896
  //#endregion
3897
3897
  //#region src/components/shared/toolbar/View/Hooks/viewLogic.jsx
3898
- var Ht = /* @__PURE__ */ new Set([
3898
+ var X = /* @__PURE__ */ new Set([
3899
3899
  "br",
3900
3900
  "hr",
3901
3901
  "img",
@@ -3914,56 +3914,54 @@ function Ut(e) {
3914
3914
  return Array.from(e.attributes).map((e) => ` ${e.name}="${e.value.replace(/"/g, "&quot;")}"`).join("");
3915
3915
  }
3916
3916
  function Wt(e) {
3917
- return e.replace(/\u200B/g, "").trim();
3917
+ return e.replace(/\u200B/g, "");
3918
+ }
3919
+ function Gt(e) {
3920
+ if (e.nodeType === 3) return Wt(e.textContent);
3921
+ if (e.nodeType !== 1) return "";
3922
+ let t = e.tagName.toLowerCase(), n = Ut(e);
3923
+ return X.has(t) ? `<${t}${n}>` : `<${t}${n}>${Array.from(e.childNodes).map((e) => Gt(e)).join("")}</${t}>`;
3918
3924
  }
3919
- function Gt(e, t, n) {
3925
+ function Kt(e, t, n) {
3920
3926
  let r = " ".repeat(t);
3921
3927
  if (e.nodeType === 3) {
3922
- let t = Wt(e.textContent);
3928
+ let t = Wt(e.textContent).trim();
3923
3929
  if (!t) return;
3924
3930
  n.push(r + t);
3925
3931
  return;
3926
3932
  }
3927
3933
  if (e.nodeType !== 1) return;
3928
3934
  let i = e.tagName.toLowerCase(), a = Ut(e);
3929
- if (Ht.has(i)) {
3935
+ if (X.has(i)) {
3930
3936
  n.push(`${r}<${i}${a}>`);
3931
3937
  return;
3932
3938
  }
3933
- let o = Array.from(e.childNodes).filter((e) => e.nodeType === 3 ? Wt(e.textContent) !== "" : e.nodeType === 1);
3939
+ let o = Array.from(e.childNodes).filter((e) => e.nodeType === 3 ? Wt(e.textContent).trim() !== "" : e.nodeType === 1);
3934
3940
  if (o.length === 0) {
3935
3941
  n.push(`${r}<${i}${a}></${i}>`);
3936
3942
  return;
3937
3943
  }
3938
- if (o.length === 1 && o[0].nodeType === 3) {
3939
- n.push(`${r}<${i}${a}>${Wt(o[0].textContent)}</${i}>`);
3944
+ if (!o.some((e) => e.nodeType === 1 && !X.has(e.tagName.toLowerCase()) && Array.from(e.childNodes).some((e) => e.nodeType === 1))) {
3945
+ let e = o.map((e) => Gt(e)).join("");
3946
+ n.push(`${r}<${i}${a}>${e}</${i}>`);
3940
3947
  return;
3941
3948
  }
3942
- n.push(`${r}<${i}${a}>`), o.forEach((e) => Gt(e, t + 1, n)), n.push(`${r}</${i}>`);
3949
+ n.push(`${r}<${i}${a}>`), o.forEach((e) => Kt(e, t + 1, n)), n.push(`${r}</${i}>`);
3943
3950
  }
3944
- function Kt(e) {
3951
+ function qt(e) {
3945
3952
  let t = document.createElement("template");
3946
3953
  t.innerHTML = e;
3947
3954
  let n = [];
3948
- return Array.from(t.content.childNodes).forEach((e) => Gt(e, 0, n)), n.join("\n");
3949
- }
3950
- function qt(e) {
3951
- Array.from(e.childNodes).forEach((t) => {
3952
- t.nodeType === 3 ? /^\s*$/.test(t.textContent) ? e.removeChild(t) : t.textContent = t.textContent.trim() : t.nodeType === 1 && qt(t);
3953
- });
3955
+ return Array.from(t.content.childNodes).forEach((e) => Kt(e, 0, n)), n.join("\n");
3954
3956
  }
3955
3957
  function Jt(e) {
3956
- let t = document.createElement("template");
3957
- return t.innerHTML = e, qt(t.content), t.content;
3958
- }
3959
- function Yt(e) {
3960
3958
  e.focus();
3961
3959
  let t = document.createRange();
3962
3960
  t.selectNodeContents(e), t.collapse(!1);
3963
3961
  let n = window.getSelection();
3964
3962
  n && (n.removeAllRanges(), n.addRange(t));
3965
3963
  }
3966
- function Xt() {
3964
+ function Yt() {
3967
3965
  return {
3968
3966
  toggleFullscreen: () => {
3969
3967
  let e = document.querySelector(".forge-editor");
@@ -3974,10 +3972,10 @@ function Xt() {
3974
3972
  if (!e) return;
3975
3973
  let t = document.querySelector(".forge-code-view-textarea");
3976
3974
  if (t) {
3977
- let n = t.value, r = Jt(n);
3978
- e.removeAttribute("data-code-view"), e.innerHTML = "", e.appendChild(r), e.style.display = "", t.remove(), Yt(e);
3975
+ let n = t.value;
3976
+ e.removeAttribute("data-code-view"), e.innerHTML = n.trim(), e.style.display = "", t.remove(), Jt(e);
3979
3977
  } else {
3980
- let t = e.innerHTML, n = Kt(t), r = document.createElement("textarea");
3978
+ let t = e.innerHTML, n = qt(t), r = document.createElement("textarea");
3981
3979
  r.className = e.className, r.classList.add("forge-code-view-textarea"), r.value = n, r.spellcheck = !1, r.setAttribute("dir", "ltr"), r.style.direction = "ltr", r.style.textAlign = "left", r.style.unicodeBidi = "plaintext", r.style.fontFamily = "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace", r.style.fontSize = "13px", r.style.lineHeight = "1.6", r.style.whiteSpace = "pre-wrap", r.style.overflowWrap = "break-word", r.style.tabSize = "2", r.style.border = "none", r.style.outline = "none", r.style.resize = "none", r.style.background = "transparent", e.style.display = "none", e.setAttribute("data-code-view", "true"), e.parentNode.insertBefore(r, e.nextSibling), r.focus(), r.setSelectionRange(r.value.length, r.value.length);
3982
3980
  }
3983
3981
  },
@@ -3999,50 +3997,50 @@ function Xt() {
3999
3997
  }
4000
3998
  //#endregion
4001
3999
  //#region src/components/shared/toolbar/View/Components/index.jsx
4002
- function Zt() {
4003
- return /* @__PURE__ */ L(Vt, { logic: Xt() });
4000
+ function Xt() {
4001
+ return /* @__PURE__ */ I(Ht, { logic: Yt() });
4004
4002
  }
4005
4003
  //#endregion
4006
4004
  //#region src/components/shared/toolbar/Index/index.jsx
4007
- function Qt({ editorRef: e }) {
4008
- return /* @__PURE__ */ L("div", {
4005
+ function Zt({ editorRef: e }) {
4006
+ return /* @__PURE__ */ I("div", {
4009
4007
  className: "forge-editor__toolbar sticky top-0 z-10 m-0 flex flex-shrink-0 flex-wrap items-center justify-between gap-[4px] rounded-t-[3px] border-b border-[#ddd] bg-[#f5f5f5] p-[5px] text-[#333]",
4010
4008
  role: "toolbar",
4011
4009
  children: [
4012
- /* @__PURE__ */ L(ve, {}),
4013
- /* @__PURE__ */ L(We, {}),
4014
- /* @__PURE__ */ L(et, { editorRef: e }),
4015
- /* @__PURE__ */ L(pt, {}),
4016
- /* @__PURE__ */ L(Tt, {}),
4017
- /* @__PURE__ */ L(jt, {}),
4018
- /* @__PURE__ */ L(Bt, {}),
4019
- /* @__PURE__ */ L(Zt, {})
4010
+ /* @__PURE__ */ I(ye, {}),
4011
+ /* @__PURE__ */ I(Ge, {}),
4012
+ /* @__PURE__ */ I(tt, { editorRef: e }),
4013
+ /* @__PURE__ */ I(mt, {}),
4014
+ /* @__PURE__ */ I(Et, {}),
4015
+ /* @__PURE__ */ I(Mt, {}),
4016
+ /* @__PURE__ */ I(Vt, {}),
4017
+ /* @__PURE__ */ I(Xt, {})
4020
4018
  ]
4021
4019
  });
4022
4020
  }
4023
4021
  //#endregion
4024
4022
  //#region src/components/shared/statusbar/Components/index.jsx
4025
- function $t() {
4026
- return /* @__PURE__ */ L("div", {
4023
+ function Qt() {
4024
+ return /* @__PURE__ */ I("div", {
4027
4025
  className: "forge-statusbar box-border flex h-2.5 w-full flex-shrink-0 cursor-s-resize items-center justify-center rounded-b-[3px] border-t border-[#ccc] bg-[#f0f0f0]",
4028
4026
  role: "status",
4029
- children: /* @__PURE__ */ L("div", {
4027
+ children: /* @__PURE__ */ I("div", {
4030
4028
  className: "flex flex-col items-center gap-px",
4031
4029
  "aria-label": "resize",
4032
4030
  children: [
4033
- /* @__PURE__ */ L("div", { className: "h-px w-3 rounded-[1px] bg-[#888]" }),
4034
- /* @__PURE__ */ L("div", { className: "h-px w-3 rounded-[1px] bg-[#888]" }),
4035
- /* @__PURE__ */ L("div", { className: "h-px w-3 rounded-[1px] bg-[#888]" })
4031
+ /* @__PURE__ */ I("div", { className: "h-px w-3 rounded-[1px] bg-[#888]" }),
4032
+ /* @__PURE__ */ I("div", { className: "h-px w-3 rounded-[1px] bg-[#888]" }),
4033
+ /* @__PURE__ */ I("div", { className: "h-px w-3 rounded-[1px] bg-[#888]" })
4036
4034
  ]
4037
4035
  })
4038
4036
  });
4039
4037
  }
4040
4038
  //#endregion
4041
4039
  //#region src/components/shared/statusbar/Hooks/resize.js
4042
- var en = 100;
4043
- function tn(e, t, n = {}) {
4040
+ var $t = 100;
4041
+ function en(e, t, n = {}) {
4044
4042
  if (!e || !t) return () => {};
4045
- let r = n.minHeight ?? en, i = n.maxHeight ?? Infinity, a = 0, o = 0;
4043
+ let r = n.minHeight ?? $t, i = n.maxHeight ?? Infinity, a = 0, o = 0;
4046
4044
  function s(e) {
4047
4045
  let n = e.clientY - a, s = o + n;
4048
4046
  s = Math.min(Math.max(s, r), i), t.style.height = `${s}px`;
@@ -4059,12 +4057,12 @@ function tn(e, t, n = {}) {
4059
4057
  }
4060
4058
  //#endregion
4061
4059
  //#region src/components/shared/toolbar/Style/Hooks/styleLogic.jsx
4062
- function nn(e) {
4060
+ function tn(e) {
4063
4061
  let t = window.getSelection(), n = document.createRange(), r = e;
4064
4062
  for (; r.lastChild && r.lastChild.nodeName !== "BR";) r = r.lastChild;
4065
4063
  r.nodeType === 3 ? (n.setStart(r, r.textContent.length), n.collapse(!0)) : r.lastChild && r.lastChild.nodeName === "BR" ? (n.setStart(r, r.childNodes.length - 1), n.collapse(!0)) : (n.selectNodeContents(r), n.collapse(!1)), t.removeAllRanges(), t.addRange(n);
4066
4064
  }
4067
- function rn(e) {
4065
+ function nn(e) {
4068
4066
  let t = window.getSelection();
4069
4067
  if (!t || !t.rangeCount) return;
4070
4068
  let n = t.getRangeAt(0).commonAncestorContainer;
@@ -4081,23 +4079,23 @@ function rn(e) {
4081
4079
  n.appendChild(e);
4082
4080
  }
4083
4081
  else n.innerHTML = "<br>";
4084
- r.replaceWith(n), nn(n);
4082
+ r.replaceWith(n), tn(n);
4085
4083
  }
4086
4084
  }
4087
- function an(e) {
4085
+ function rn(e) {
4088
4086
  if (!e) return;
4089
4087
  let t = e.querySelector("[data-command='style']"), n = e.querySelector(".forge-dropdown-style");
4090
- !t || !n || (J(t, n), n.querySelectorAll(".forge-dropdown-item").forEach((e) => {
4088
+ !t || !n || (q(t, n), n.querySelectorAll(".forge-dropdown-item").forEach((e) => {
4091
4089
  e.addEventListener("mousedown", (r) => {
4092
4090
  r.preventDefault(), r.stopPropagation();
4093
4091
  let i = e.dataset.value || e.getAttribute("data-value");
4094
- i && rn(i), n.classList.remove("is-open"), t.classList.remove("is-active");
4092
+ i && nn(i), n.classList.remove("is-open"), t.classList.remove("is-active");
4095
4093
  });
4096
4094
  }));
4097
4095
  }
4098
4096
  //#endregion
4099
4097
  //#region src/components/shared/i18n/index.js
4100
- var Z = {
4098
+ var an = {
4101
4099
  en: {
4102
4100
  style: "Style",
4103
4101
  normal: "Normal",
@@ -4170,20 +4168,20 @@ var Z = {
4170
4168
  codeview: "عرض الكود",
4171
4169
  help: "مساعدة"
4172
4170
  }
4173
- }, on = "en";
4174
- function sn(e, t) {
4175
- return (Z[e] || Z[on])[t] || Z[on][t] || t;
4171
+ }, Z = "en";
4172
+ function on(e, t) {
4173
+ return (an[e] || an[Z])[t] || an[Z][t] || t;
4176
4174
  }
4177
4175
  //#endregion
4178
4176
  //#region src/components/shared/i18n/apply.js
4179
- function cn(e, t) {
4177
+ function sn(e, t) {
4180
4178
  e.querySelectorAll("[data-i18n]").forEach((e) => {
4181
- e.textContent = sn(t, e.getAttribute("data-i18n"));
4179
+ e.textContent = on(t, e.getAttribute("data-i18n"));
4182
4180
  });
4183
4181
  }
4184
4182
  //#endregion
4185
4183
  //#region src/components/shared/toolbar/Style/Utils/ensureParagraph.jsx
4186
- function ln(e) {
4184
+ function cn(e) {
4187
4185
  if (e && !(e.children.length > 0 || e.textContent.trim().length > 0)) {
4188
4186
  let t = document.createElement("p");
4189
4187
  t.innerHTML = "<br>", e.appendChild(t);
@@ -4191,7 +4189,7 @@ function ln(e) {
4191
4189
  }
4192
4190
  //#endregion
4193
4191
  //#region src/components/shared/toolbar/Style/Utils/enterKeyHandler.jsx
4194
- var un = [
4192
+ var ln = [
4195
4193
  "h1",
4196
4194
  "h2",
4197
4195
  "h3",
@@ -4199,8 +4197,8 @@ var un = [
4199
4197
  "h5",
4200
4198
  "h6",
4201
4199
  "blockquote"
4202
- ], dn = ["pre"];
4203
- function fn(e, t, n) {
4200
+ ], un = ["pre"];
4201
+ function dn(e, t, n) {
4204
4202
  let r = e.nodeType === 3 ? e.parentNode : e;
4205
4203
  for (; r && r !== t;) {
4206
4204
  if (r.nodeType === 1 && n.includes(r.tagName.toLowerCase())) return r;
@@ -4208,18 +4206,18 @@ function fn(e, t, n) {
4208
4206
  }
4209
4207
  return null;
4210
4208
  }
4211
- function pn(e) {
4209
+ function fn(e) {
4212
4210
  let t = window.getSelection(), n = document.createRange();
4213
4211
  n.selectNodeContents(e), n.collapse(!0), t.removeAllRanges(), t.addRange(n);
4214
4212
  }
4215
- function mn(e) {
4213
+ function pn(e) {
4216
4214
  if (!e) return () => {};
4217
4215
  let t = (t) => {
4218
4216
  if (t.key !== "Enter" || t.shiftKey || e.getAttribute("data-code-view") === "true" || e.contentEditable !== "true") return;
4219
4217
  let n = window.getSelection();
4220
4218
  if (!n || !n.rangeCount) return;
4221
4219
  let r = n.getRangeAt(0);
4222
- if (fn(r.startContainer, e, dn)) {
4220
+ if (dn(r.startContainer, e, un)) {
4223
4221
  t.preventDefault();
4224
4222
  let e = document.createElement("br");
4225
4223
  r.deleteContents(), r.insertNode(e);
@@ -4227,13 +4225,13 @@ function mn(e) {
4227
4225
  i.setStartAfter(e), i.collapse(!0), n.removeAllRanges(), n.addRange(i);
4228
4226
  return;
4229
4227
  }
4230
- let i = fn(r.startContainer, e, un);
4228
+ let i = dn(r.startContainer, e, ln);
4231
4229
  if (!i) return;
4232
4230
  t.preventDefault();
4233
4231
  let a = document.createRange();
4234
4232
  a.setStart(r.endContainer, r.endOffset), a.setEndAfter(i.lastChild || i);
4235
4233
  let o = a.extractContents(), s = document.createElement("p");
4236
- o.textContent.trim().length === 0 ? s.innerHTML = "<br>" : s.appendChild(o), i.nextSibling ? i.parentNode.insertBefore(s, i.nextSibling) : i.parentNode.appendChild(s), i.textContent.trim().length === 0 && i.childNodes.length === 0 && (i.innerHTML = "<br>"), pn(s);
4234
+ o.textContent.trim().length === 0 ? s.innerHTML = "<br>" : s.appendChild(o), i.nextSibling ? i.parentNode.insertBefore(s, i.nextSibling) : i.parentNode.appendChild(s), i.textContent.trim().length === 0 && i.childNodes.length === 0 && (i.innerHTML = "<br>"), fn(s);
4237
4235
  };
4238
4236
  return e.addEventListener("keydown", t), () => {
4239
4237
  e.removeEventListener("keydown", t);
@@ -4241,7 +4239,7 @@ function mn(e) {
4241
4239
  }
4242
4240
  //#endregion
4243
4241
  //#region src/components/shared/toolbar/Hooks/contentClick.js
4244
- function hn(e) {
4242
+ function mn(e) {
4245
4243
  e.addEventListener("click", (t) => {
4246
4244
  if (t.target === e) {
4247
4245
  let t = window.getSelection();
@@ -4258,130 +4256,130 @@ function hn(e) {
4258
4256
  }
4259
4257
  //#endregion
4260
4258
  //#region src/components/shared/toolbar/ImagePopover/Components/ImagePopover.jsx
4261
- function gn({ target: e, onClose: t, onResize: n, onFloat: r, onRemove: i }) {
4262
- let a = K(null);
4259
+ function hn({ target: e, onClose: t, onResize: n, onFloat: r, onRemove: i }) {
4260
+ let a = G(null);
4263
4261
  if (!e) return null;
4264
4262
  let o = e.getBoundingClientRect(), s = {
4265
4263
  left: o.left + o.width / 2 - 100 + "px",
4266
4264
  top: o.bottom + 10 + "px"
4267
4265
  }, c = "note-btn cursor-pointer rounded-[2px] border border-[#ccc] bg-[#f5f5f5] px-2 py-1 text-xs leading-[1.4] transition-all duration-100 ease-in-out hover:border-[#999] hover:bg-[#e6e6e6] active:translate-y-px active:bg-[#d0d0d0]", l = "note-btn-group flex gap-0.5 border-r border-[#ddd] pr-1 last:border-r-0 last:pr-0", u = "not-italic text-sm leading-none";
4268
- return /* @__PURE__ */ L("div", {
4266
+ return /* @__PURE__ */ I("div", {
4269
4267
  ref: a,
4270
4268
  className: "note-popover bottom note-image-popover fixed z-[9999] min-w-[200px] rounded-[4px] border border-[#ccc] bg-white p-1.5 shadow-[0_2px_8px_rgba(0,0,0,0.15)]",
4271
4269
  style: s,
4272
- children: [/* @__PURE__ */ L("div", {
4270
+ children: [/* @__PURE__ */ I("div", {
4273
4271
  className: "absolute -top-2 left-1/2 -translate-x-1/2",
4274
- children: [/* @__PURE__ */ L("div", { className: "border-l-8 border-r-8 border-b-8 border-l-transparent border-r-transparent border-b-[#ccc]" }), /* @__PURE__ */ L("div", { className: "absolute top-[1px] left-[-7px] border-l-7 border-r-7 border-b-7 border-l-transparent border-r-transparent border-b-white" })]
4275
- }), /* @__PURE__ */ L("div", {
4272
+ children: [/* @__PURE__ */ I("div", { className: "border-l-8 border-r-8 border-b-8 border-l-transparent border-r-transparent border-b-[#ccc]" }), /* @__PURE__ */ I("div", { className: "absolute top-[1px] left-[-7px] border-l-7 border-r-7 border-b-7 border-l-transparent border-r-transparent border-b-white" })]
4273
+ }), /* @__PURE__ */ I("div", {
4276
4274
  className: "popover-content note-children-container flex flex-wrap items-center gap-1",
4277
4275
  children: [
4278
- /* @__PURE__ */ L("div", {
4276
+ /* @__PURE__ */ I("div", {
4279
4277
  className: `${l} note-resize`,
4280
4278
  children: [
4281
- /* @__PURE__ */ L("button", {
4279
+ /* @__PURE__ */ I("button", {
4282
4280
  type: "button",
4283
4281
  className: c,
4284
4282
  tabIndex: "-1",
4285
4283
  "aria-label": "Resize full",
4286
4284
  onClick: () => n(e, 1),
4287
- children: /* @__PURE__ */ L("span", {
4285
+ children: /* @__PURE__ */ I("span", {
4288
4286
  className: "note-fontsize-10 text-[10px]",
4289
4287
  children: "100%"
4290
4288
  })
4291
4289
  }),
4292
- /* @__PURE__ */ L("button", {
4290
+ /* @__PURE__ */ I("button", {
4293
4291
  type: "button",
4294
4292
  className: c,
4295
4293
  tabIndex: "-1",
4296
4294
  "aria-label": "Resize half",
4297
4295
  onClick: () => n(e, .5),
4298
- children: /* @__PURE__ */ L("span", {
4296
+ children: /* @__PURE__ */ I("span", {
4299
4297
  className: "note-fontsize-10 text-[10px]",
4300
4298
  children: "50%"
4301
4299
  })
4302
4300
  }),
4303
- /* @__PURE__ */ L("button", {
4301
+ /* @__PURE__ */ I("button", {
4304
4302
  type: "button",
4305
4303
  className: c,
4306
4304
  tabIndex: "-1",
4307
4305
  "aria-label": "Resize quarter",
4308
4306
  onClick: () => n(e, .25),
4309
- children: /* @__PURE__ */ L("span", {
4307
+ children: /* @__PURE__ */ I("span", {
4310
4308
  className: "note-fontsize-10 text-[10px]",
4311
4309
  children: "25%"
4312
4310
  })
4313
4311
  }),
4314
- /* @__PURE__ */ L("button", {
4312
+ /* @__PURE__ */ I("button", {
4315
4313
  type: "button",
4316
4314
  className: c,
4317
4315
  tabIndex: "-1",
4318
4316
  "aria-label": "Original size",
4319
4317
  onClick: () => n(e, "original"),
4320
- children: /* @__PURE__ */ L("i", {
4318
+ children: /* @__PURE__ */ I("i", {
4321
4319
  className: `note-icon-rollback ${u}`,
4322
4320
  children: "↺"
4323
4321
  })
4324
4322
  })
4325
4323
  ]
4326
4324
  }),
4327
- /* @__PURE__ */ L("div", {
4325
+ /* @__PURE__ */ I("div", {
4328
4326
  className: `${l} note-float`,
4329
4327
  children: [
4330
- /* @__PURE__ */ L("button", {
4328
+ /* @__PURE__ */ I("button", {
4331
4329
  type: "button",
4332
4330
  className: c,
4333
4331
  tabIndex: "-1",
4334
4332
  "aria-label": "Float Left",
4335
4333
  onClick: () => r(e, "left"),
4336
- children: /* @__PURE__ */ L("i", {
4334
+ children: /* @__PURE__ */ I("i", {
4337
4335
  className: `note-icon-float-left ${u}`,
4338
4336
  children: "◀"
4339
4337
  })
4340
4338
  }),
4341
- /* @__PURE__ */ L("button", {
4339
+ /* @__PURE__ */ I("button", {
4342
4340
  type: "button",
4343
4341
  className: c,
4344
4342
  tabIndex: "-1",
4345
4343
  "aria-label": "Center",
4346
4344
  onClick: () => r(e, "center"),
4347
- children: /* @__PURE__ */ L("i", {
4345
+ children: /* @__PURE__ */ I("i", {
4348
4346
  className: `note-icon-float-center ${u}`,
4349
4347
  children: "↔"
4350
4348
  })
4351
4349
  }),
4352
- /* @__PURE__ */ L("button", {
4350
+ /* @__PURE__ */ I("button", {
4353
4351
  type: "button",
4354
4352
  className: c,
4355
4353
  tabIndex: "-1",
4356
4354
  "aria-label": "Float Right",
4357
4355
  onClick: () => r(e, "right"),
4358
- children: /* @__PURE__ */ L("i", {
4356
+ children: /* @__PURE__ */ I("i", {
4359
4357
  className: `note-icon-float-right ${u}`,
4360
4358
  children: "▶"
4361
4359
  })
4362
4360
  }),
4363
- /* @__PURE__ */ L("button", {
4361
+ /* @__PURE__ */ I("button", {
4364
4362
  type: "button",
4365
4363
  className: c,
4366
4364
  tabIndex: "-1",
4367
4365
  "aria-label": "Remove float",
4368
4366
  onClick: () => r(e, "none"),
4369
- children: /* @__PURE__ */ L("i", {
4367
+ children: /* @__PURE__ */ I("i", {
4370
4368
  className: `note-icon-rollback ${u}`,
4371
4369
  children: "↺"
4372
4370
  })
4373
4371
  })
4374
4372
  ]
4375
4373
  }),
4376
- /* @__PURE__ */ L("div", {
4374
+ /* @__PURE__ */ I("div", {
4377
4375
  className: `${l} note-remove`,
4378
- children: /* @__PURE__ */ L("button", {
4376
+ children: /* @__PURE__ */ I("button", {
4379
4377
  type: "button",
4380
4378
  className: c,
4381
4379
  tabIndex: "-1",
4382
4380
  "aria-label": "Remove Image",
4383
4381
  onClick: () => i(e),
4384
- children: /* @__PURE__ */ L("i", {
4382
+ children: /* @__PURE__ */ I("i", {
4385
4383
  className: `note-icon-trash ${u}`,
4386
4384
  children: "🗑"
4387
4385
  })
@@ -4393,9 +4391,9 @@ function gn({ target: e, onClose: t, onResize: n, onFloat: r, onRemove: i }) {
4393
4391
  }
4394
4392
  //#endregion
4395
4393
  //#region src/components/shared/toolbar/ImagePopover/Hooks/useImagePopover.jsx
4396
- function _n() {
4397
- let [e, t] = W(null), [n, r] = W(!1);
4398
- return G(() => {
4394
+ function gn() {
4395
+ let [e, t] = U(null), [n, r] = U(!1);
4396
+ return W(() => {
4399
4397
  let e = (e) => {
4400
4398
  let i = e.target.closest("img");
4401
4399
  i ? (t(i), r(!0)) : n && (r(!1), t(null));
@@ -4428,12 +4426,12 @@ function _n() {
4428
4426
  }
4429
4427
  //#endregion
4430
4428
  //#region src/components/shared/toolbar/ImagePopover/Components/index.jsx
4431
- function vn() {
4432
- return /* @__PURE__ */ L(gn, { ..._n() });
4429
+ function _n() {
4430
+ return /* @__PURE__ */ I(hn, { ...gn() });
4433
4431
  }
4434
4432
  //#endregion
4435
4433
  //#region src/components/light/index.jsx
4436
- function yn(e) {
4434
+ function vn(e) {
4437
4435
  return {
4438
4436
  getHTML() {
4439
4437
  return e.innerHTML;
@@ -4450,34 +4448,34 @@ function yn(e) {
4450
4448
  }
4451
4449
  };
4452
4450
  }
4453
- function bn(e) {
4454
- let t = e.lang || "en", n = e.dir || "ltr", r = { current: null }, i = /* @__PURE__ */ L("div", {
4451
+ function yn(e) {
4452
+ let t = e.lang || "en", n = e.dir || "ltr", r = { current: null }, i = /* @__PURE__ */ I("div", {
4455
4453
  className: "forge-editor forge-editor--light flex flex-col w-full rounded-[3px] border border-[#ddd] bg-white box-border align-top min-h-[120px]",
4456
4454
  lang: t,
4457
4455
  dir: n,
4458
4456
  children: [
4459
- /* @__PURE__ */ L(Qt, { editorRef: r }),
4460
- /* @__PURE__ */ L("div", {
4457
+ /* @__PURE__ */ I(Zt, { editorRef: r }),
4458
+ /* @__PURE__ */ I("div", {
4461
4459
  className: "forge-editor__content flex-1 min-h-[60px] overflow-auto p-[10px] pb-12 outline-none box-border [&_blockquote]:my-2 [&_blockquote]:border-l-4 [&_blockquote]:border-[#ccc] [&_blockquote]:pl-4 [&_blockquote]:italic [&_pre]:bg-[#f4f4f4] [&_pre]:p-2 [&_pre]:rounded [&_h1]:text-2xl [&_h1]:font-bold [&_h2]:text-xl [&_h2]:font-bold [&_h3]:text-lg [&_h3]:font-bold",
4462
4460
  contentEditable: "true",
4463
4461
  "data-placeholder": e.placeholder || ""
4464
4462
  }),
4465
- /* @__PURE__ */ L($t, {}),
4466
- /* @__PURE__ */ L(vn, {})
4463
+ /* @__PURE__ */ I(Qt, {}),
4464
+ /* @__PURE__ */ I(_n, {})
4467
4465
  ]
4468
4466
  }), a = document.createElement("div");
4469
- _e(i, a);
4467
+ ve(i, a);
4470
4468
  let o = a.firstElementChild, s = o.querySelector(".forge-editor__content");
4471
- r.current = s, ln(s), hn(s), mn(s);
4469
+ r.current = s, cn(s), mn(s), pn(s);
4472
4470
  let c = o.querySelector(".forge-toolbar-style");
4473
- c && an(c);
4471
+ c && rn(c);
4474
4472
  let l = o.querySelector(".forge-editor__toolbar");
4475
- l && cn(l, t);
4473
+ l && sn(l, t);
4476
4474
  let u = o.querySelector(".forge-statusbar");
4477
- return u && tn(u, o, { minHeight: 120 }), {
4475
+ return u && en(u, o, { minHeight: 120 }), {
4478
4476
  element: o,
4479
- ...yn(s)
4477
+ ...vn(s)
4480
4478
  };
4481
4479
  }
4482
4480
  //#endregion
4483
- export { bn as t };
4481
+ export { yn as t };