easy-email-pro-editor 1.38.0-beta.0 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ var p = (t, r, e) => r in t ? f(t, r, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  import o, { useRef as C, useCallback as d, useMemo as a } from "react";
13
13
  import { Slate as L, Editable as O } from "slate-react";
14
- import { E as R, L as w } from "./index-026b7040.js";
14
+ import { E as R, L as w } from "./index-c4202826.js";
15
15
  import { createEditor as g } from "slate";
16
16
  import { isEqual as h } from "lodash";
17
17
  import { EditorAuth as B } from "easy-email-pro-core";
@@ -23,7 +23,7 @@ var j = (e, u, a) => (qi(e, typeof u != "symbol" ? u + "" : u, a), a);
23
23
  import A, { createContext as as, useEffect as kt, useContext as mn, useRef as wu, useCallback as ve, useMemo as V, useState as Xu, createElement as ln } from "react";
24
24
  import { withHistory as Yc } from "slate-history";
25
25
  import { ReactEditor as Ue, useSlate as _r, withReact as zc, Slate as am, useSelected as nm, useSlateStatic as oa, Editable as im } from "slate-react";
26
- import { Editor as pe, Node as Lt, Transforms as ye, Path as Ke, Text as aa, Range as jc } from "slate";
26
+ import { Editor as pe, Node as Lt, Transforms as Ie, Path as Ke, Text as aa, Range as jc } from "slate";
27
27
  import { cloneDeep as Dr, get as p, sum as sm, isEqual as ca, set as om, escapeRegExp as bl, some as cm, find as lm, reduce as ns, merge as dm, camelCase as ku, isString as na, identity as fm, omitBy as hm, isNil as pl, uniqueId as Tl, isEmpty as Am, map as Em, min as mm, omit as is, each as gm, debounce as bm } from "lodash";
28
28
  import { BlockManager as De, NodeUtils as Z, ElementCategory as pr, ElementType as me, StandardType as gr, mergeBlock as ss, EditorCore as Ku, EditorAuth as os, t as Dl, PluginManager as ia, classnames as pm, PageTestingCss as Tm, ElementAllowAttributes as ct, SLATE_NODE_PLACEHOLDER_CLASSNAME as Cl, I18nManager as Dm } from "easy-email-pro-core";
29
29
  import { createPortal as _l } from "react-dom";
@@ -98,7 +98,7 @@ const Cm = () => {
98
98
  });
99
99
  I = w == null ? void 0 : w[0];
100
100
  }
101
- if (I && Z.isContentElement(I) && (ye.insertNodes(
101
+ if (I && Z.isContentElement(I) && (Ie.insertNodes(
102
102
  e,
103
103
  {
104
104
  type: gr.STANDARD_PARAGRAPH,
@@ -108,9 +108,9 @@ const Cm = () => {
108
108
  },
109
109
  { at: g == null ? void 0 : g.path }
110
110
  ), g != null && g.path)) {
111
- ye.select(e, pe.end(e, g.path));
111
+ Ie.select(e, pe.end(e, g.path));
112
112
  const w = pe.end(e, g.path);
113
- ye.setSelection(e, { anchor: w, focus: w });
113
+ Ie.setSelection(e, { anchor: w, focus: w });
114
114
  }
115
115
  }, e.insertNewRow = (g) => {
116
116
  const I = pe.above(e, {
@@ -158,7 +158,7 @@ const Cm = () => {
158
158
  });
159
159
  const O = pe.end(e, P);
160
160
  setTimeout(() => {
161
- ye.select(e, O);
161
+ Ie.select(e, O);
162
162
  }, 200);
163
163
  }
164
164
  }, e.insertBreak = () => {
@@ -174,7 +174,7 @@ const Cm = () => {
174
174
  },
175
175
  mode: "lowest"
176
176
  })) {
177
- ye.wrapNodes(
177
+ Ie.wrapNodes(
178
178
  e,
179
179
  {
180
180
  type: me.HTML_BLOCK_NODE,
@@ -206,27 +206,27 @@ const Cm = () => {
206
206
  e,
207
207
  Ue.findPath(e, O[O.length - 1])
208
208
  );
209
- ye.setSelection(e, {
209
+ Ie.setSelection(e, {
210
210
  anchor: X,
211
211
  focus: X
212
212
  });
213
213
  return;
214
214
  }
215
215
  const Q = pe.end(e, g.path);
216
- ye.setSelection(e, {
216
+ Ie.setSelection(e, {
217
217
  anchor: Q,
218
218
  focus: Q
219
- }), ye.splitNodes(e, {
219
+ }), Ie.splitNodes(e, {
220
220
  at: pe.end(e, g.path),
221
221
  match: Z.isSectionElement
222
222
  });
223
223
  const ue = pe.before(e, g.path);
224
- ue && ye.splitNodes(e, {
224
+ ue && Ie.splitNodes(e, {
225
225
  at: pe.end(e, ue),
226
226
  match: Z.isSectionElement
227
227
  });
228
228
  const K = `${O.length / 2 * 100}%`;
229
- ye.setNodes(
229
+ Ie.setNodes(
230
230
  e,
231
231
  {
232
232
  attributes: z(N({}, w.attributes), { width: K })
@@ -234,7 +234,7 @@ const Cm = () => {
234
234
  {
235
235
  match: Z.isColumnElement
236
236
  }
237
- ), ye.insertNodes(
237
+ ), Ie.insertNodes(
238
238
  e,
239
239
  {
240
240
  type: gr.STANDARD_COLUMN,
@@ -253,7 +253,7 @@ const Cm = () => {
253
253
  }
254
254
  );
255
255
  }, e.moveNode = (g) => {
256
- ye.moveNodes(e, {
256
+ Ie.moveNodes(e, {
257
257
  at: g.at,
258
258
  to: g.to
259
259
  });
@@ -311,7 +311,7 @@ const Cm = () => {
311
311
  attributes: {},
312
312
  children: [{ text: "" }]
313
313
  });
314
- }), ye.insertNodes(e, Q, {
314
+ }), Ie.insertNodes(e, Q, {
315
315
  match: aa.isText
316
316
  });
317
317
  }
@@ -326,7 +326,7 @@ const Cm = () => {
326
326
  match: (w) => Z.isInlineElement(w) && w.type === me.MERGETAG,
327
327
  mode: "all"
328
328
  });
329
- I || ye.insertNodes(
329
+ I || Ie.insertNodes(
330
330
  e,
331
331
  [
332
332
  {
@@ -386,7 +386,7 @@ const Cm = () => {
386
386
  ), X = De.getBlockByType(
387
387
  me.STANDARD_COLUMN
388
388
  );
389
- P.category === pr.PAGE ? ye.insertNodes(
389
+ P.category === pr.PAGE ? Ie.insertNodes(
390
390
  e,
391
391
  K.create({
392
392
  children: [X.create({})]
@@ -394,17 +394,17 @@ const Cm = () => {
394
394
  {
395
395
  at: [0, 0]
396
396
  }
397
- ) : Z.isContentElement(I) ? ye.insertNodes(
397
+ ) : Z.isContentElement(I) ? Ie.insertNodes(
398
398
  e,
399
399
  { text: "" },
400
400
  {
401
401
  at: [...w, 0]
402
402
  }
403
- ) : ye.removeNodes(e, { at: w });
403
+ ) : Ie.removeNodes(e, { at: w });
404
404
  return;
405
405
  }
406
406
  if (I.type === me.MERGETAG && I.children[0].text === "") {
407
- ye.removeNodes(e, { at: w });
407
+ Ie.removeNodes(e, { at: w });
408
408
  return;
409
409
  }
410
410
  const Q = P.category.includes(pr.SECTION), ue = P.category.includes(pr.GROUP);
@@ -426,7 +426,7 @@ const Cm = () => {
426
426
  )
427
427
  )) / X.length;
428
428
  I.children.forEach((se, ae) => {
429
- Z.isColumnElement(se) && !se.attributes.width && ye.setNodes(
429
+ Z.isColumnElement(se) && !se.attributes.width && Ie.setNodes(
430
430
  e,
431
431
  {
432
432
  attributes: {
@@ -441,7 +441,7 @@ const Cm = () => {
441
441
  }
442
442
  }
443
443
  if (Z.isElement(I) && I.children.length === 0) {
444
- ye.removeNodes(e, { at: w });
444
+ Ie.removeNodes(e, { at: w });
445
445
  return;
446
446
  }
447
447
  if (Z.isColumnElement(I) && I.children.length > 1) {
@@ -450,7 +450,7 @@ const Cm = () => {
450
450
  );
451
451
  if (K != -1) {
452
452
  e.withoutNormalizing(() => {
453
- ye.removeNodes(e, {
453
+ Ie.removeNodes(e, {
454
454
  at: [...w, K]
455
455
  });
456
456
  });
@@ -474,7 +474,7 @@ const Cm = () => {
474
474
  pe.above(e, {
475
475
  at: P,
476
476
  match: Z.isUnsetElement
477
- }) ? ye.deselect(e) : ye.setSelection(e, { anchor: P, focus: P });
477
+ }) ? Ie.deselect(e) : Ie.setSelection(e, { anchor: P, focus: P });
478
478
  });
479
479
  }, e.removeNode = (g) => {
480
480
  const I = g.path;
@@ -576,7 +576,7 @@ const Cm = () => {
576
576
  at: g.path
577
577
  });
578
578
  if (O) {
579
- ye.removeNodes(e, { at: O[1] });
579
+ Ie.removeNodes(e, { at: O[1] });
580
580
  return;
581
581
  }
582
582
  }
@@ -604,7 +604,7 @@ const Cm = () => {
604
604
  const Q = O[0], ue = Q.children.findIndex(
605
605
  (X) => Z.isElement(X) && X.type === me.MERGETAG
606
606
  ), K = Q.children[Q.children.length - 1];
607
- ue === Q.children.length - 2 && Z.isTextNode(K) && K.text === "" && ye.insertNodes(
607
+ ue === Q.children.length - 2 && Z.isTextNode(K) && K.text === "" && Ie.insertNodes(
608
608
  e,
609
609
  { text: " " },
610
610
  {
@@ -645,7 +645,7 @@ const yl = as({}), Im = ({ children: e }) => {
645
645
  ), X = Zc((ae) => {
646
646
  if (!a && !l) {
647
647
  if (!ae)
648
- ye.deselect(s);
648
+ Ie.deselect(s);
649
649
  else {
650
650
  const te = Lt.get(s, ae), oe = pe.end(s, ae);
651
651
  if (pe.above(s, {
@@ -654,10 +654,10 @@ const yl = as({}), Im = ({ children: e }) => {
654
654
  return Z.isUnsetElement(ke);
655
655
  }
656
656
  }))
657
- ye.deselect(s);
657
+ Ie.deselect(s);
658
658
  else if (!s.selection && Z.isContentElement(te)) {
659
659
  const ke = { anchor: oe, focus: oe };
660
- ye.select(s, ke);
660
+ Ie.select(s, ke);
661
661
  }
662
662
  }
663
663
  R((te) => ae ? te && Ke.equals(te, ae) ? te : ae : null);
@@ -1618,12 +1618,12 @@ const rg = () => /* @__PURE__ */ A.createElement(
1618
1618
  )
1619
1619
  )
1620
1620
  ), ag = A.lazy(
1621
- () => import("./index-4d4fffa9.js")
1621
+ () => import("./index-4cca60b5.js")
1622
1622
  ), ng = () => {
1623
1623
  const e = Du();
1624
1624
  return V(() => e.headerElement ? /* @__PURE__ */ A.createElement(ag, { element: e.headerElement }) : null, [e.headerElement]);
1625
1625
  }, ig = A.lazy(
1626
- () => import("./index-4d4fffa9.js")
1626
+ () => import("./index-4cca60b5.js")
1627
1627
  ), sg = () => {
1628
1628
  const e = Du();
1629
1629
  return V(() => e.footerElement ? /* @__PURE__ */ A.createElement(ig, { element: e.footerElement }) : null, [e.footerElement]);
@@ -3111,7 +3111,7 @@ hn.exports;
3111
3111
  }
3112
3112
  function Nd(t, r, n, o) {
3113
3113
  var d = t.length;
3114
- for (n = Ie(n), n < 0 && (n = -n > d ? 0 : d + n), o = o === T || o > d ? d : Ie(o), o < 0 && (o += d), o = n > o ? 0 : dc(o); n < o; )
3114
+ for (n = ye(n), n < 0 && (n = -n > d ? 0 : d + n), o = o === T || o > d ? d : ye(o), o < 0 && (o += d), o = n > o ? 0 : dc(o); n < o; )
3115
3115
  t[n++] = r;
3116
3116
  return t;
3117
3117
  }
@@ -3848,7 +3848,7 @@ hn.exports;
3848
3848
  function li(t) {
3849
3849
  var r = dr[t];
3850
3850
  return function(n, o) {
3851
- if (n = Gt(n), o = o == null ? 0 : mt(Ie(o), 292), o && Nc(n)) {
3851
+ if (n = Gt(n), o = o == null ? 0 : mt(ye(o), 292), o && Nc(n)) {
3852
3852
  var d = (we(n) + "e").split("e");
3853
3853
  return d = (we(r(d[0] + "e" + (+d[1] + o))) + "e").split("e"), +(d[0] + "e" + (+d[1] - o));
3854
3854
  }
@@ -3866,7 +3866,7 @@ hn.exports;
3866
3866
  if (!L && typeof t != "function")
3867
3867
  throw new Yt(Ht);
3868
3868
  var W = o ? o.length : 0;
3869
- if (W || (r &= ~(ru | ur), o = d = T), C = C === T ? C : tt(Ie(C), 0), y = y === T ? y : Ie(y), W -= d ? d.length : 0, r & ur) {
3869
+ if (W || (r &= ~(ru | ur), o = d = T), C = C === T ? C : tt(ye(C), 0), y = y === T ? y : ye(y), W -= d ? d.length : 0, r & ur) {
3870
3870
  var H = o, G = d;
3871
3871
  o = d = T;
3872
3872
  }
@@ -4271,7 +4271,7 @@ hn.exports;
4271
4271
  return r.__actions__ = It(t.__actions__), r.__index__ = t.__index__, r.__values__ = t.__values__, r;
4272
4272
  }
4273
4273
  function pf(t, r, n) {
4274
- r = (n ? _t(t, r, n) : r === T) ? 1 : tt(Ie(r), 0);
4274
+ r = (n ? _t(t, r, n) : r === T) ? 1 : tt(ye(r), 0);
4275
4275
  var o = t == null ? 0 : t.length;
4276
4276
  if (!o || r < 1)
4277
4277
  return [];
@@ -4296,11 +4296,11 @@ hn.exports;
4296
4296
  }
4297
4297
  function Cf(t, r, n) {
4298
4298
  var o = t == null ? 0 : t.length;
4299
- return o ? (r = n || r === T ? 1 : Ie(r), Qt(t, r < 0 ? 0 : r, o)) : [];
4299
+ return o ? (r = n || r === T ? 1 : ye(r), Qt(t, r < 0 ? 0 : r, o)) : [];
4300
4300
  }
4301
4301
  function _f(t, r, n) {
4302
4302
  var o = t == null ? 0 : t.length;
4303
- return o ? (r = n || r === T ? 1 : Ie(r), r = o - r, Qt(t, 0, r < 0 ? 0 : r)) : [];
4303
+ return o ? (r = n || r === T ? 1 : ye(r), r = o - r, Qt(t, 0, r < 0 ? 0 : r)) : [];
4304
4304
  }
4305
4305
  function Nf(t, r) {
4306
4306
  return t && t.length ? ya(t, be(r, 3), !0, !0) : [];
@@ -4316,7 +4316,7 @@ hn.exports;
4316
4316
  var o = t == null ? 0 : t.length;
4317
4317
  if (!o)
4318
4318
  return -1;
4319
- var d = n == null ? 0 : Ie(n);
4319
+ var d = n == null ? 0 : ye(n);
4320
4320
  return d < 0 && (d = tt(o + d, 0)), ue(t, be(r, 3), d);
4321
4321
  }
4322
4322
  function Xo(t, r, n) {
@@ -4324,7 +4324,7 @@ hn.exports;
4324
4324
  if (!o)
4325
4325
  return -1;
4326
4326
  var d = o - 1;
4327
- return n !== T && (d = Ie(n), d = n < 0 ? tt(o + d, 0) : mt(d, o - 1)), ue(t, be(r, 3), d, !0);
4327
+ return n !== T && (d = ye(n), d = n < 0 ? tt(o + d, 0) : mt(d, o - 1)), ue(t, be(r, 3), d, !0);
4328
4328
  }
4329
4329
  function Ko(t) {
4330
4330
  return t != null && t.length ? Et(t, 1) : [];
@@ -4333,7 +4333,7 @@ hn.exports;
4333
4333
  return t != null && t.length ? Et(t, Mu) : [];
4334
4334
  }
4335
4335
  function xf(t, r) {
4336
- return t != null && t.length ? (r = r === T ? 1 : Ie(r), Et(t, r)) : [];
4336
+ return t != null && t.length ? (r = r === T ? 1 : ye(r), Et(t, r)) : [];
4337
4337
  }
4338
4338
  function Rf(t) {
4339
4339
  for (var r = -1, n = t == null ? 0 : t.length, o = {}; ++r < n; ) {
@@ -4349,7 +4349,7 @@ hn.exports;
4349
4349
  var o = t == null ? 0 : t.length;
4350
4350
  if (!o)
4351
4351
  return -1;
4352
- var d = n == null ? 0 : Ie(n);
4352
+ var d = n == null ? 0 : ye(n);
4353
4353
  return d < 0 && (d = tt(o + d, 0)), K(t, r, d);
4354
4354
  }
4355
4355
  function Lf(t) {
@@ -4367,10 +4367,10 @@ hn.exports;
4367
4367
  if (!o)
4368
4368
  return -1;
4369
4369
  var d = o;
4370
- return n !== T && (d = Ie(n), d = d < 0 ? tt(o + d, 0) : mt(d, o - 1)), r === r ? $e(t, r, d) : ue(t, ge, d, !0);
4370
+ return n !== T && (d = ye(n), d = d < 0 ? tt(o + d, 0) : mt(d, o - 1)), r === r ? $e(t, r, d) : ue(t, ge, d, !0);
4371
4371
  }
4372
4372
  function kf(t, r) {
4373
- return t && t.length ? ho(t, Ie(r)) : T;
4373
+ return t && t.length ? ho(t, ye(r)) : T;
4374
4374
  }
4375
4375
  function Jo(t, r) {
4376
4376
  return t && t.length && r && r.length ? ei(t, r) : t;
@@ -4397,7 +4397,7 @@ hn.exports;
4397
4397
  }
4398
4398
  function Mf(t, r, n) {
4399
4399
  var o = t == null ? 0 : t.length;
4400
- return o ? (n && typeof n != "number" && _t(t, r, n) ? (r = 0, n = o) : (r = r == null ? 0 : Ie(r), n = n === T ? o : Ie(n)), Qt(t, r, n)) : [];
4400
+ return o ? (n && typeof n != "number" && _t(t, r, n) ? (r = 0, n = o) : (r = r == null ? 0 : ye(r), n = n === T ? o : ye(n)), Qt(t, r, n)) : [];
4401
4401
  }
4402
4402
  function Hf(t, r) {
4403
4403
  return Ia(t, r);
@@ -4439,11 +4439,11 @@ hn.exports;
4439
4439
  return r ? Qt(t, 1, r) : [];
4440
4440
  }
4441
4441
  function jf(t, r, n) {
4442
- return t && t.length ? (r = n || r === T ? 1 : Ie(r), Qt(t, 0, r < 0 ? 0 : r)) : [];
4442
+ return t && t.length ? (r = n || r === T ? 1 : ye(r), Qt(t, 0, r < 0 ? 0 : r)) : [];
4443
4443
  }
4444
4444
  function Xf(t, r, n) {
4445
4445
  var o = t == null ? 0 : t.length;
4446
- return o ? (r = n || r === T ? 1 : Ie(r), r = o - r, Qt(t, r < 0 ? 0 : r, o)) : [];
4446
+ return o ? (r = n || r === T ? 1 : ye(r), r = o - r, Qt(t, r < 0 ? 0 : r, o)) : [];
4447
4447
  }
4448
4448
  function Kf(t, r) {
4449
4449
  return t && t.length ? ya(t, be(r, 3), !1, !0) : [];
@@ -4543,7 +4543,7 @@ hn.exports;
4543
4543
  return Et(wa(t, r), Mu);
4544
4544
  }
4545
4545
  function Eh(t, r, n) {
4546
- return n = n === T ? 1 : Ie(n), Et(wa(t, r), n);
4546
+ return n = n === T ? 1 : ye(n), Et(wa(t, r), n);
4547
4547
  }
4548
4548
  function tc(t, r) {
4549
4549
  return (_e(t) ? l : xu)(t, be(r, 3));
@@ -4552,7 +4552,7 @@ hn.exports;
4552
4552
  return (_e(t) ? m : Bc)(t, be(r, 3));
4553
4553
  }
4554
4554
  function mh(t, r, n, o) {
4555
- t = yt(t) ? t : lr(t), n = n && !o ? Ie(n) : 0;
4555
+ t = yt(t) ? t : lr(t), n = n && !o ? ye(n) : 0;
4556
4556
  var d = t.length;
4557
4557
  return n < 0 && (n = tt(d + n, 0)), Ua(t) ? n <= d && t.indexOf(r, n) > -1 : !!d && K(t, r, n) > -1;
4558
4558
  }
@@ -4577,7 +4577,7 @@ hn.exports;
4577
4577
  return (_e(t) ? eo : qd)(t);
4578
4578
  }
4579
4579
  function Ch(t, r, n) {
4580
- return r = (n ? _t(t, r, n) : r === T) ? 1 : Ie(r), (_e(t) ? bd : Wd)(t, r);
4580
+ return r = (n ? _t(t, r, n) : r === T) ? 1 : ye(r), (_e(t) ? bd : Wd)(t, r);
4581
4581
  }
4582
4582
  function _h(t) {
4583
4583
  return (_e(t) ? pd : Qd)(t);
@@ -4597,7 +4597,7 @@ hn.exports;
4597
4597
  function yh(t, r) {
4598
4598
  if (typeof r != "function")
4599
4599
  throw new Yt(Ht);
4600
- return t = Ie(t), function() {
4600
+ return t = ye(t), function() {
4601
4601
  if (--t < 1)
4602
4602
  return r.apply(this, arguments);
4603
4603
  };
@@ -4609,7 +4609,7 @@ hn.exports;
4609
4609
  var n;
4610
4610
  if (typeof r != "function")
4611
4611
  throw new Yt(Ht);
4612
- return t = Ie(t), function() {
4612
+ return t = ye(t), function() {
4613
4613
  return --t > 0 && (n = r.apply(this, arguments)), t <= 1 && (r = T), n;
4614
4614
  };
4615
4615
  }
@@ -4706,12 +4706,12 @@ hn.exports;
4706
4706
  function Rh(t, r) {
4707
4707
  if (typeof t != "function")
4708
4708
  throw new Yt(Ht);
4709
- return r = r === T ? r : Ie(r), Be(t, r);
4709
+ return r = r === T ? r : ye(r), Be(t, r);
4710
4710
  }
4711
4711
  function vh(t, r) {
4712
4712
  if (typeof t != "function")
4713
4713
  throw new Yt(Ht);
4714
- return r = r == null ? 0 : tt(Ie(r), 0), Be(function(n) {
4714
+ return r = r == null ? 0 : tt(ye(r), 0), Be(function(n) {
4715
4715
  var o = n[r], d = yu(n, 0, r);
4716
4716
  return o && _(d, o), a(t, this, d);
4717
4717
  });
@@ -4803,7 +4803,7 @@ hn.exports;
4803
4803
  return r == ma || r == Ds || r == w0 || r == H0;
4804
4804
  }
4805
4805
  function oc(t) {
4806
- return typeof t == "number" && t == Ie(t);
4806
+ return typeof t == "number" && t == ye(t);
4807
4807
  }
4808
4808
  function Ha(t) {
4809
4809
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= _u;
@@ -4878,12 +4878,12 @@ hn.exports;
4878
4878
  function Tu(t) {
4879
4879
  return t ? (t = Gt(t), t === Mu || t === -Mu ? (t < 0 ? -1 : 1) * S0 : t === t ? t : 0) : t === 0 ? t : 0;
4880
4880
  }
4881
- function Ie(t) {
4881
+ function ye(t) {
4882
4882
  var r = Tu(t), n = r % 1;
4883
4883
  return r === r ? n ? r - n : r : 0;
4884
4884
  }
4885
4885
  function dc(t) {
4886
- return t ? Wu(Ie(t), 0, au) : 0;
4886
+ return t ? Wu(ye(t), 0, au) : 0;
4887
4887
  }
4888
4888
  function Gt(t) {
4889
4889
  if (typeof t == "number")
@@ -4904,7 +4904,7 @@ hn.exports;
4904
4904
  return iu(t, Bt(t));
4905
4905
  }
4906
4906
  function u1(t) {
4907
- return t ? Wu(Ie(t), -_u, _u) : t === 0 ? t : 0;
4907
+ return t ? Wu(ye(t), -_u, _u) : t === 0 ? t : 0;
4908
4908
  }
4909
4909
  function we(t) {
4910
4910
  return t == null ? "" : wt(t);
@@ -5044,7 +5044,7 @@ hn.exports;
5044
5044
  function B1(t, r, n) {
5045
5045
  t = we(t), r = wt(r);
5046
5046
  var o = t.length;
5047
- n = n === T ? o : Wu(Ie(n), 0, o);
5047
+ n = n === T ? o : Wu(ye(n), 0, o);
5048
5048
  var d = n;
5049
5049
  return n -= r.length, n >= 0 && t.slice(n, d) == r;
5050
5050
  }
@@ -5055,7 +5055,7 @@ hn.exports;
5055
5055
  return t = we(t), t && J0.test(t) ? t.replace(wn, "\\$&") : t;
5056
5056
  }
5057
5057
  function v1(t, r, n) {
5058
- t = we(t), r = Ie(r);
5058
+ t = we(t), r = ye(r);
5059
5059
  var o = r ? Je(t) : 0;
5060
5060
  if (!r || o >= r)
5061
5061
  return t;
@@ -5063,12 +5063,12 @@ hn.exports;
5063
5063
  return va(Ja(d), n) + t + va(Za(d), n);
5064
5064
  }
5065
5065
  function L1(t, r, n) {
5066
- t = we(t), r = Ie(r);
5066
+ t = we(t), r = ye(r);
5067
5067
  var o = r ? Je(t) : 0;
5068
5068
  return r && o < r ? t + va(r - o, n) : t;
5069
5069
  }
5070
5070
  function S1(t, r, n) {
5071
- t = we(t), r = Ie(r);
5071
+ t = we(t), r = ye(r);
5072
5072
  var o = r ? Je(t) : 0;
5073
5073
  return r && o < r ? va(r - o, n) + t : t;
5074
5074
  }
@@ -5076,7 +5076,7 @@ hn.exports;
5076
5076
  return n || r == null ? r = 0 : r && (r = +r), BA(we(t).replace(Fn, ""), r || 0);
5077
5077
  }
5078
5078
  function k1(t, r, n) {
5079
- return r = (n ? _t(t, r, n) : r === T) ? 1 : Ie(r), ui(we(t), r);
5079
+ return r = (n ? _t(t, r, n) : r === T) ? 1 : ye(r), ui(we(t), r);
5080
5080
  }
5081
5081
  function P1() {
5082
5082
  var t = arguments, r = we(t[0]);
@@ -5086,7 +5086,7 @@ hn.exports;
5086
5086
  return n && typeof n != "number" && _t(t, r, n) && (r = n = T), (n = n === T ? au : n >>> 0) ? (t = we(t), t && (typeof r == "string" || r != null && !Hi(r)) && (r = wt(r), !r && Me(t)) ? yu(ht(t), 0, n) : t.split(r, n)) : [];
5087
5087
  }
5088
5088
  function F1(t, r, n) {
5089
- return t = we(t), n = n == null ? 0 : Wu(Ie(n), 0, t.length), r = wt(r), t.slice(n, n + r.length) == r;
5089
+ return t = we(t), n = n == null ? 0 : Wu(ye(n), 0, t.length), r = wt(r), t.slice(n, n + r.length) == r;
5090
5090
  }
5091
5091
  function M1(t, r, n) {
5092
5092
  var o = c.templateSettings;
@@ -5160,7 +5160,7 @@ function print() { __p += __j.call(arguments, '') }
5160
5160
  var n = y0, o = B0;
5161
5161
  if (Ye(r)) {
5162
5162
  var d = "separator" in r ? r.separator : d;
5163
- n = "length" in r ? Ie(r.length) : n, o = "omission" in r ? wt(r.omission) : o;
5163
+ n = "length" in r ? ye(r.length) : n, o = "omission" in r ? wt(r.omission) : o;
5164
5164
  }
5165
5165
  t = we(t);
5166
5166
  var h = t.length;
@@ -5254,7 +5254,7 @@ function print() { __p += __j.call(arguments, '') }
5254
5254
  function Ii() {
5255
5255
  }
5256
5256
  function J1(t) {
5257
- return t = Ie(t), Be(function(r) {
5257
+ return t = ye(t), Be(function(r) {
5258
5258
  return ho(r, t);
5259
5259
  });
5260
5260
  }
@@ -5282,7 +5282,7 @@ function print() { __p += __j.call(arguments, '') }
5282
5282
  return !0;
5283
5283
  }
5284
5284
  function rA(t, r) {
5285
- if (t = Ie(t), t < 1 || t > _u)
5285
+ if (t = ye(t), t < 1 || t > _u)
5286
5286
  return [];
5287
5287
  var n = au, o = mt(t, au);
5288
5288
  r = be(r), t -= au;
@@ -5589,7 +5589,7 @@ function print() { __p += __j.call(arguments, '') }
5589
5589
  }, 1), $E = li("round"), em = Ra(function(t, r) {
5590
5590
  return t - r;
5591
5591
  }, 0);
5592
- return c.after = yh, c.ary = rc, c.assign = TE, c.assignIn = Mc, c.assignInWith = un, c.assignWith = DE, c.at = CE, c.before = ac, c.bind = Fi, c.bindAll = ME, c.bindKey = kc, c.castArray = kh, c.chain = ec, c.chunk = pf, c.compact = Tf, c.concat = Df, c.cond = Y1, c.conforms = z1, c.constant = Ci, c.countBy = uE, c.create = r1, c.curry = nc, c.curryRight = ic, c.debounce = sc, c.defaults = _E, c.defaultsDeep = NE, c.defer = lE, c.delay = dE, c.difference = MA, c.differenceBy = HA, c.differenceWith = UA, c.drop = Cf, c.dropRight = _f, c.dropRightWhile = Nf, c.dropWhile = If, c.fill = yf, c.filter = fh, c.flatMap = hh, c.flatMapDeep = Ah, c.flatMapDepth = Eh, c.flatten = Ko, c.flattenDeep = Bf, c.flattenDepth = xf, c.flip = Bh, c.flow = HE, c.flowRight = UE, c.fromPairs = Rf, c.functions = l1, c.functionsIn = d1, c.groupBy = nE, c.initial = Lf, c.intersection = qA, c.intersectionBy = WA, c.intersectionWith = QA, c.invert = IE, c.invertBy = yE, c.invokeMap = iE, c.iteratee = _i, c.keyBy = sE, c.keys = it, c.keysIn = Bt, c.map = wa, c.mapKeys = h1, c.mapValues = A1, c.matches = X1, c.matchesProperty = K1, c.memoize = Fa, c.merge = xE, c.mergeWith = Hc, c.method = qE, c.methodOf = WE, c.mixin = Ni, c.negate = Ma, c.nthArg = J1, c.omit = RE, c.omitBy = E1, c.once = xh, c.orderBy = gh, c.over = QE, c.overArgs = fE, c.overEvery = VE, c.overSome = GE, c.partial = Mi, c.partialRight = Pc, c.partition = oE, c.pick = vE, c.pickBy = hc, c.property = gc, c.propertyOf = $1, c.pull = VA, c.pullAll = Jo, c.pullAllBy = Pf, c.pullAllWith = wf, c.pullAt = GA, c.range = YE, c.rangeRight = zE, c.rearg = hE, c.reject = Th, c.remove = Ff, c.rest = Rh, c.reverse = gi, c.sampleSize = Ch, c.set = g1, c.setWith = b1, c.shuffle = _h, c.slice = Mf, c.sortBy = cE, c.sortedUniq = Gf, c.sortedUniqBy = Yf, c.split = w1, c.spread = vh, c.tail = zf, c.take = jf, c.takeRight = Xf, c.takeRightWhile = Kf, c.takeWhile = Zf, c.tap = rh, c.throttle = Lh, c.thru = Pa, c.toArray = lc, c.toPairs = Uc, c.toPairsIn = qc, c.toPath = aA, c.toPlainObject = fc, c.transform = p1, c.unary = Sh, c.union = YA, c.unionBy = zA, c.unionWith = jA, c.uniq = Jf, c.uniqBy = $f, c.uniqWith = eh, c.unset = T1, c.unzip = bi, c.unzipWith = $o, c.update = D1, c.updateWith = C1, c.values = lr, c.valuesIn = _1, c.without = XA, c.words = mc, c.wrap = Oh, c.xor = KA, c.xorBy = ZA, c.xorWith = JA, c.zip = $A, c.zipObject = th, c.zipObjectDeep = uh, c.zipWith = eE, c.entries = Uc, c.entriesIn = qc, c.extend = Mc, c.extendWith = un, Ni(c, c), c.add = jE, c.attempt = Wc, c.camelCase = LE, c.capitalize = Ac, c.ceil = XE, c.clamp = N1, c.clone = Ph, c.cloneDeep = Fh, c.cloneDeepWith = Mh, c.cloneWith = wh, c.conformsTo = Hh, c.deburr = Ec, c.defaultTo = j1, c.divide = KE, c.endsWith = B1, c.eq = Jt, c.escape = x1, c.escapeRegExp = R1, c.every = dh, c.find = rE, c.findIndex = jo, c.findKey = a1, c.findLast = aE, c.findLastIndex = Xo, c.findLastKey = n1, c.floor = ZE, c.forEach = tc, c.forEachRight = uc, c.forIn = i1, c.forInRight = s1, c.forOwn = o1, c.forOwnRight = c1, c.get = Ti, c.gt = AE, c.gte = EE, c.has = f1, c.hasIn = Di, c.head = Zo, c.identity = xt, c.includes = mh, c.indexOf = vf, c.inRange = I1, c.invoke = BE, c.isArguments = zu, c.isArray = _e, c.isArrayBuffer = mE, c.isArrayLike = yt, c.isArrayLikeObject = Xe, c.isBoolean = Uh, c.isBuffer = Ru, c.isDate = gE, c.isElement = qh, c.isEmpty = Wh, c.isEqual = Qh, c.isEqualWith = Vh, c.isError = pi, c.isFinite = Gh, c.isFunction = pu, c.isInteger = oc, c.isLength = Ha, c.isMap = wc, c.isMatch = Yh, c.isMatchWith = zh, c.isNaN = jh, c.isNative = Xh, c.isNil = Zh, c.isNull = Kh, c.isNumber = cc, c.isObject = Ye, c.isObjectLike = ze, c.isPlainObject = Ur, c.isRegExp = Hi, c.isSafeInteger = Jh, c.isSet = Fc, c.isString = Ua, c.isSymbol = Ft, c.isTypedArray = mr, c.isUndefined = $h, c.isWeakMap = e1, c.isWeakSet = t1, c.join = Sf, c.kebabCase = SE, c.last = Vt, c.lastIndexOf = Of, c.lowerCase = OE, c.lowerFirst = kE, c.lt = bE, c.lte = pE, c.max = iA, c.maxBy = sA, c.mean = oA, c.meanBy = cA, c.min = lA, c.minBy = dA, c.stubArray = yi, c.stubFalse = Bi, c.stubObject = eA, c.stubString = tA, c.stubTrue = uA, c.multiply = JE, c.nth = kf, c.noConflict = Z1, c.noop = Ii, c.now = tn, c.pad = v1, c.padEnd = L1, c.padStart = S1, c.parseInt = O1, c.random = y1, c.reduce = bh, c.reduceRight = ph, c.repeat = k1, c.replace = P1, c.result = m1, c.round = $E, c.runInContext = x, c.sample = Dh, c.size = Nh, c.snakeCase = PE, c.some = Ih, c.sortedIndex = Hf, c.sortedIndexBy = Uf, c.sortedIndexOf = qf, c.sortedLastIndex = Wf, c.sortedLastIndexBy = Qf, c.sortedLastIndexOf = Vf, c.startCase = wE, c.startsWith = F1, c.subtract = em, c.sum = fA, c.sumBy = hA, c.template = M1, c.times = rA, c.toFinite = Tu, c.toInteger = Ie, c.toLength = dc, c.toLower = H1, c.toNumber = Gt, c.toSafeInteger = u1, c.toString = we, c.toUpper = U1, c.trim = q1, c.trimEnd = W1, c.trimStart = Q1, c.truncate = V1, c.unescape = G1, c.uniqueId = nA, c.upperCase = FE, c.upperFirst = Ui, c.each = tc, c.eachRight = uc, c.first = Zo, Ni(c, function() {
5592
+ return c.after = yh, c.ary = rc, c.assign = TE, c.assignIn = Mc, c.assignInWith = un, c.assignWith = DE, c.at = CE, c.before = ac, c.bind = Fi, c.bindAll = ME, c.bindKey = kc, c.castArray = kh, c.chain = ec, c.chunk = pf, c.compact = Tf, c.concat = Df, c.cond = Y1, c.conforms = z1, c.constant = Ci, c.countBy = uE, c.create = r1, c.curry = nc, c.curryRight = ic, c.debounce = sc, c.defaults = _E, c.defaultsDeep = NE, c.defer = lE, c.delay = dE, c.difference = MA, c.differenceBy = HA, c.differenceWith = UA, c.drop = Cf, c.dropRight = _f, c.dropRightWhile = Nf, c.dropWhile = If, c.fill = yf, c.filter = fh, c.flatMap = hh, c.flatMapDeep = Ah, c.flatMapDepth = Eh, c.flatten = Ko, c.flattenDeep = Bf, c.flattenDepth = xf, c.flip = Bh, c.flow = HE, c.flowRight = UE, c.fromPairs = Rf, c.functions = l1, c.functionsIn = d1, c.groupBy = nE, c.initial = Lf, c.intersection = qA, c.intersectionBy = WA, c.intersectionWith = QA, c.invert = IE, c.invertBy = yE, c.invokeMap = iE, c.iteratee = _i, c.keyBy = sE, c.keys = it, c.keysIn = Bt, c.map = wa, c.mapKeys = h1, c.mapValues = A1, c.matches = X1, c.matchesProperty = K1, c.memoize = Fa, c.merge = xE, c.mergeWith = Hc, c.method = qE, c.methodOf = WE, c.mixin = Ni, c.negate = Ma, c.nthArg = J1, c.omit = RE, c.omitBy = E1, c.once = xh, c.orderBy = gh, c.over = QE, c.overArgs = fE, c.overEvery = VE, c.overSome = GE, c.partial = Mi, c.partialRight = Pc, c.partition = oE, c.pick = vE, c.pickBy = hc, c.property = gc, c.propertyOf = $1, c.pull = VA, c.pullAll = Jo, c.pullAllBy = Pf, c.pullAllWith = wf, c.pullAt = GA, c.range = YE, c.rangeRight = zE, c.rearg = hE, c.reject = Th, c.remove = Ff, c.rest = Rh, c.reverse = gi, c.sampleSize = Ch, c.set = g1, c.setWith = b1, c.shuffle = _h, c.slice = Mf, c.sortBy = cE, c.sortedUniq = Gf, c.sortedUniqBy = Yf, c.split = w1, c.spread = vh, c.tail = zf, c.take = jf, c.takeRight = Xf, c.takeRightWhile = Kf, c.takeWhile = Zf, c.tap = rh, c.throttle = Lh, c.thru = Pa, c.toArray = lc, c.toPairs = Uc, c.toPairsIn = qc, c.toPath = aA, c.toPlainObject = fc, c.transform = p1, c.unary = Sh, c.union = YA, c.unionBy = zA, c.unionWith = jA, c.uniq = Jf, c.uniqBy = $f, c.uniqWith = eh, c.unset = T1, c.unzip = bi, c.unzipWith = $o, c.update = D1, c.updateWith = C1, c.values = lr, c.valuesIn = _1, c.without = XA, c.words = mc, c.wrap = Oh, c.xor = KA, c.xorBy = ZA, c.xorWith = JA, c.zip = $A, c.zipObject = th, c.zipObjectDeep = uh, c.zipWith = eE, c.entries = Uc, c.entriesIn = qc, c.extend = Mc, c.extendWith = un, Ni(c, c), c.add = jE, c.attempt = Wc, c.camelCase = LE, c.capitalize = Ac, c.ceil = XE, c.clamp = N1, c.clone = Ph, c.cloneDeep = Fh, c.cloneDeepWith = Mh, c.cloneWith = wh, c.conformsTo = Hh, c.deburr = Ec, c.defaultTo = j1, c.divide = KE, c.endsWith = B1, c.eq = Jt, c.escape = x1, c.escapeRegExp = R1, c.every = dh, c.find = rE, c.findIndex = jo, c.findKey = a1, c.findLast = aE, c.findLastIndex = Xo, c.findLastKey = n1, c.floor = ZE, c.forEach = tc, c.forEachRight = uc, c.forIn = i1, c.forInRight = s1, c.forOwn = o1, c.forOwnRight = c1, c.get = Ti, c.gt = AE, c.gte = EE, c.has = f1, c.hasIn = Di, c.head = Zo, c.identity = xt, c.includes = mh, c.indexOf = vf, c.inRange = I1, c.invoke = BE, c.isArguments = zu, c.isArray = _e, c.isArrayBuffer = mE, c.isArrayLike = yt, c.isArrayLikeObject = Xe, c.isBoolean = Uh, c.isBuffer = Ru, c.isDate = gE, c.isElement = qh, c.isEmpty = Wh, c.isEqual = Qh, c.isEqualWith = Vh, c.isError = pi, c.isFinite = Gh, c.isFunction = pu, c.isInteger = oc, c.isLength = Ha, c.isMap = wc, c.isMatch = Yh, c.isMatchWith = zh, c.isNaN = jh, c.isNative = Xh, c.isNil = Zh, c.isNull = Kh, c.isNumber = cc, c.isObject = Ye, c.isObjectLike = ze, c.isPlainObject = Ur, c.isRegExp = Hi, c.isSafeInteger = Jh, c.isSet = Fc, c.isString = Ua, c.isSymbol = Ft, c.isTypedArray = mr, c.isUndefined = $h, c.isWeakMap = e1, c.isWeakSet = t1, c.join = Sf, c.kebabCase = SE, c.last = Vt, c.lastIndexOf = Of, c.lowerCase = OE, c.lowerFirst = kE, c.lt = bE, c.lte = pE, c.max = iA, c.maxBy = sA, c.mean = oA, c.meanBy = cA, c.min = lA, c.minBy = dA, c.stubArray = yi, c.stubFalse = Bi, c.stubObject = eA, c.stubString = tA, c.stubTrue = uA, c.multiply = JE, c.nth = kf, c.noConflict = Z1, c.noop = Ii, c.now = tn, c.pad = v1, c.padEnd = L1, c.padStart = S1, c.parseInt = O1, c.random = y1, c.reduce = bh, c.reduceRight = ph, c.repeat = k1, c.replace = P1, c.result = m1, c.round = $E, c.runInContext = x, c.sample = Dh, c.size = Nh, c.snakeCase = PE, c.some = Ih, c.sortedIndex = Hf, c.sortedIndexBy = Uf, c.sortedIndexOf = qf, c.sortedLastIndex = Wf, c.sortedLastIndexBy = Qf, c.sortedLastIndexOf = Vf, c.startCase = wE, c.startsWith = F1, c.subtract = em, c.sum = fA, c.sumBy = hA, c.template = M1, c.times = rA, c.toFinite = Tu, c.toInteger = ye, c.toLength = dc, c.toLower = H1, c.toNumber = Gt, c.toSafeInteger = u1, c.toString = we, c.toUpper = U1, c.trim = q1, c.trimEnd = W1, c.trimStart = Q1, c.truncate = V1, c.unescape = G1, c.uniqueId = nA, c.upperCase = FE, c.upperFirst = Ui, c.each = tc, c.eachRight = uc, c.first = Zo, Ni(c, function() {
5593
5593
  var t = {};
5594
5594
  return nu(c, function(r, n) {
5595
5595
  Fe.call(c.prototype, n) || (t[n] = r);
@@ -5598,7 +5598,7 @@ function print() { __p += __j.call(arguments, '') }
5598
5598
  c[t].placeholder = c;
5599
5599
  }), l(["drop", "take"], function(t, r) {
5600
5600
  ie.prototype[t] = function(n) {
5601
- n = n === T ? 1 : tt(Ie(n), 0);
5601
+ n = n === T ? 1 : tt(ye(n), 0);
5602
5602
  var o = this.__filtered__ && !r ? new ie(this) : this.clone();
5603
5603
  return o.__filtered__ ? o.__takeCount__ = mt(n, o.__takeCount__) : o.__views__.push({ size: mt(n, au), type: t + (o.__dir__ < 0 ? "Right" : "") }), o;
5604
5604
  }, ie.prototype[t + "Right"] = function(n) {
@@ -5633,9 +5633,9 @@ function print() { __p += __j.call(arguments, '') }
5633
5633
  }), ie.prototype.reject = function(t) {
5634
5634
  return this.filter(Ma(be(t)));
5635
5635
  }, ie.prototype.slice = function(t, r) {
5636
- t = Ie(t);
5636
+ t = ye(t);
5637
5637
  var n = this;
5638
- return n.__filtered__ && (t > 0 || r < 0) ? new ie(n) : (t < 0 ? n = n.takeRight(-t) : t && (n = n.drop(t)), r !== T && (r = Ie(r), n = r < 0 ? n.dropRight(-r) : n.take(r - t)), n);
5638
+ return n.__filtered__ && (t > 0 || r < 0) ? new ie(n) : (t < 0 ? n = n.takeRight(-t) : t && (n = n.drop(t)), r !== T && (r = ye(r), n = r < 0 ? n.dropRight(-r) : n.take(r - t)), n);
5639
5639
  }, ie.prototype.takeRightWhile = function(t) {
5640
5640
  return this.reverse().takeWhile(t).reverse();
5641
5641
  }, ie.prototype.toArray = function() {
@@ -14493,7 +14493,7 @@ const PT = (e, u) => {
14493
14493
  },
14494
14494
  mode: "lowest"
14495
14495
  });
14496
- m && ye.setNodes(
14496
+ m && Ie.setNodes(
14497
14497
  e,
14498
14498
  {
14499
14499
  attributes: {}
@@ -14503,13 +14503,13 @@ const PT = (e, u) => {
14503
14503
  split: !0,
14504
14504
  at: m[1]
14505
14505
  }
14506
- ), ye.unsetNodes(e, Object.values(Ki), {
14506
+ ), Ie.unsetNodes(e, Object.values(Ki), {
14507
14507
  match: aa.isText,
14508
14508
  split: !0
14509
14509
  });
14510
14510
  return;
14511
14511
  }
14512
- ye.setNodes(
14512
+ Ie.setNodes(
14513
14513
  e,
14514
14514
  {
14515
14515
  [u]: a ? null : !0
@@ -14581,15 +14581,15 @@ const PT = (e, u) => {
14581
14581
  try {
14582
14582
  const Te = Ue.toDOMNode(_, te);
14583
14583
  if (!(Te.getAttribute("data-slate-has-slate-node") === "true" || Te.querySelector("[data-slate-has-slate-node]")))
14584
- q.preventDefault(), ye.deselect(_), setTimeout(() => {
14585
- ye.deselect(_);
14584
+ q.preventDefault(), Ie.deselect(_), setTimeout(() => {
14585
+ Ie.deselect(_);
14586
14586
  }, 0);
14587
14587
  else {
14588
14588
  let lt = null;
14589
14589
  $c(q.target) && (q.target.getAttribute("data-slate-node") === "text" || q.target.getAttribute("data-slate-string") === "true" ? lt = q.target : lt = q.target.querySelector(
14590
14590
  "[data-slate-node=text], [data-slate-string=true]"
14591
- )), lt || (q.preventDefault(), ye.deselect(_), setTimeout(() => {
14592
- ye.deselect(_);
14591
+ )), lt || (q.preventDefault(), Ie.deselect(_), setTimeout(() => {
14592
+ Ie.deselect(_);
14593
14593
  }, 0));
14594
14594
  }
14595
14595
  } catch (Te) {
@@ -14631,7 +14631,7 @@ const PT = (e, u) => {
14631
14631
  }), se = q == null ? void 0 : q[0], ae = (Le = pe.next(_)) == null ? void 0 : Le[1];
14632
14632
  if (se && se.type === me.LINE_BREAK && ae) {
14633
14633
  const ke = pe.start(_, ae);
14634
- ye.select(_, ke);
14634
+ Ie.select(_, ke);
14635
14635
  }
14636
14636
  }, [I, _, Q]);
14637
14637
  const ue = _.selection;
@@ -14643,7 +14643,7 @@ const PT = (e, u) => {
14643
14643
  if (Z.isWidgetElement(q) && q.data.contentEditable)
14644
14644
  return;
14645
14645
  const ae = Ue.toDOMNode(_, q);
14646
- ae.getAttribute("data-slate-has-slate-node") === "true" || ae.querySelector("[data-slate-has-slate-node]") || ye.deselect(_);
14646
+ ae.getAttribute("data-slate-has-slate-node") === "true" || ae.querySelector("[data-slate-has-slate-node]") || Ie.deselect(_);
14647
14647
  }
14648
14648
  }
14649
14649
  } catch (q) {
@@ -14669,7 +14669,7 @@ const PT = (e, u) => {
14669
14669
  ), ge = ve(
14670
14670
  (q) => {
14671
14671
  if (q.detail >= 3) {
14672
- if (q.preventDefault(), q.stopPropagation(), I && Xi(q.target) && q.target !== I.document.documentElement)
14672
+ if (q.preventDefault(), q.stopPropagation(), Ie.deselect(_), I && Xi(q.target) && q.target !== I.document.documentElement)
14673
14673
  try {
14674
14674
  let ae = Ue.toSlateNode(_, q.target);
14675
14675
  if (!Z.isBlockElement(ae)) {
@@ -14681,12 +14681,12 @@ const PT = (e, u) => {
14681
14681
  oe[1]
14682
14682
  );
14683
14683
  }
14684
- if (Z.isTextElement(ae) || Z.isButtonElement(ae)) {
14684
+ (Z.isTextElement(ae) || Z.isButtonElement(ae)) && setTimeout(() => {
14685
14685
  const te = Ue.findPath(_, ae), oe = pe.range(_, te);
14686
- ye.select(_, oe);
14687
- }
14686
+ Ie.select(_, oe);
14687
+ }, 100);
14688
14688
  } catch (ae) {
14689
- console.log(ae), ye.deselect(_);
14689
+ console.log(ae), Ie.deselect(_);
14690
14690
  }
14691
14691
  return;
14692
14692
  }
@@ -14694,7 +14694,7 @@ const PT = (e, u) => {
14694
14694
  try {
14695
14695
  const ae = Ue.toSlateNode(_, q.target), te = Ue.findPath(_, ae);
14696
14696
  if (Z.isMergetagElement(ae))
14697
- q.stopPropagation(), ye.select(_, te);
14697
+ q.stopPropagation(), Ie.select(_, te);
14698
14698
  else {
14699
14699
  const oe = _.findSelfOrAncestorNode({
14700
14700
  path: te,
@@ -14710,7 +14710,7 @@ const PT = (e, u) => {
14710
14710
  at: te,
14711
14711
  match: Z.isMergetagElement
14712
14712
  });
14713
- ke && (q.stopPropagation(), ye.select(_, ke[1]));
14713
+ ke && (q.stopPropagation(), Ie.select(_, ke[1]));
14714
14714
  }
14715
14715
  }
14716
14716
  } catch (ae) {
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as p, C as l, o as n, p as u, b as E, a as c, H as v, I as g, q as C, r as P, T as f, d as S, g as T, i as x, c as D, e as F, t as I, l as b, u as A, k as M, h as N, m as k, n as q, j as H, f as O, v as R } from "./index-026b7040.js";
1
+ import { A as p, C as l, o as n, p as u, b as E, a as c, H as v, I as g, q as C, r as P, T as f, d as S, g as T, i as x, c as D, e as F, t as I, l as b, u as A, k as M, h as N, m as k, n as q, j as H, f as O, v as R } from "./index-c4202826.js";
2
2
  import "react";
3
3
  import "slate-history";
4
4
  import "slate-react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-editor",
3
- "version": "1.38.0-beta.0",
3
+ "version": "1.38.0",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"