@uxland/primary-shell 7.36.4 → 7.37.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.
@@ -68,7 +68,7 @@ function require_Reflect() {
68
68
  } : function(it, nt) {
69
69
  return it[nt];
70
70
  }
71
- }, fe = Object.getPrototypeOf(Function), be = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Kt(), me = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : ks(), ge = typeof WeakMap == "function" ? WeakMap : ts(), ve = oe ? Symbol.for("@reflect-metadata:registry") : void 0, _e = Ft(), we = zt(_e);
71
+ }, fe = Object.getPrototypeOf(Function), be = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Zt(), me = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : ks(), ge = typeof WeakMap == "function" ? WeakMap : ts(), ve = oe ? Symbol.for("@reflect-metadata:registry") : void 0, _e = Ft(), we = zt(_e);
72
72
  function Se(it, nt, vt, St) {
73
73
  if (Ue(vt)) {
74
74
  if (!It(it))
@@ -119,7 +119,7 @@ function require_Reflect() {
119
119
  function Fe(it, nt, vt) {
120
120
  if (!Ve(nt))
121
121
  throw new TypeError();
122
- return Ue(vt) || (vt = kt(vt)), Ke(it, nt, vt);
122
+ return Ue(vt) || (vt = kt(vt)), Ze(it, nt, vt);
123
123
  }
124
124
  X("getMetadata", Fe);
125
125
  function He(it, nt, vt) {
@@ -131,7 +131,7 @@ function require_Reflect() {
131
131
  function Ie(it, nt) {
132
132
  if (!Ve(it))
133
133
  throw new TypeError();
134
- return Ue(nt) || (nt = kt(nt)), Ze(it, nt);
134
+ return Ue(nt) || (nt = kt(nt)), Ke(it, nt);
135
135
  }
136
136
  X("getMetadataKeys", Ie);
137
137
  function Ae(it, nt) {
@@ -193,13 +193,13 @@ function require_Reflect() {
193
193
  );
194
194
  return Ue(St) ? !1 : ot(St.OrdinaryHasOwnMetadata(it, nt, vt));
195
195
  }
196
- function Ke(it, nt, vt) {
196
+ function Ze(it, nt, vt) {
197
197
  var St = Ge(it, nt, vt);
198
198
  if (St)
199
199
  return ft(it, nt, vt);
200
200
  var Pt = $t(nt);
201
201
  if (!Je(Pt))
202
- return Ke(it, Pt, vt);
202
+ return Ze(it, Pt, vt);
203
203
  }
204
204
  function ft(it, nt, vt) {
205
205
  var St = ds(
@@ -220,11 +220,11 @@ function require_Reflect() {
220
220
  );
221
221
  Pt.OrdinaryDefineOwnMetadata(it, nt, vt, St);
222
222
  }
223
- function Ze(it, nt) {
223
+ function Ke(it, nt) {
224
224
  var vt = Me(it, nt), St = $t(it);
225
225
  if (St === null)
226
226
  return vt;
227
- var Pt = Ze(St, nt);
227
+ var Pt = Ke(St, nt);
228
228
  if (Pt.length <= 0)
229
229
  return vt;
230
230
  if (vt.length <= 0)
@@ -597,7 +597,7 @@ function require_Reflect() {
597
597
  throw new Error("Illegal state.");
598
598
  }
599
599
  }
600
- function Kt() {
600
+ function Zt() {
601
601
  var it = {}, nt = [], vt = (
602
602
  /** @class */
603
603
  (function() {
@@ -3483,13 +3483,24 @@ const createDynamicRequestHandler = (J) => {
3483
3483
  }
3484
3484
  }`
3485
3485
  )(J);
3486
- }, createBroker = () => new Broker();
3486
+ }, createBroker = () => new Broker(), LAST_WORKED_DIAGNOSTICS_KEY = "lastWorkedDiagnostics", EVENTS_WITH_DIAGNOSTICS = [
3487
+ "PROVES_ORDRES_CLINIQUES_CONSULTAR",
3488
+ "RESULT_OC",
3489
+ "LABORATORI_SEROTECA_PETICIO_CONSULTA",
3490
+ "ORDRE_TRACTAMENT",
3491
+ "PRESCRIPCIO_ACTIVA",
3492
+ "REV_IT",
3493
+ "OC_EXPRES"
3494
+ ];
3487
3495
  class EcapEventManager {
3488
3496
  }
3489
3497
  class EcapEventManagerImpl {
3498
+ constructor(W) {
3499
+ this.globalStateManager = W;
3500
+ }
3490
3501
  publish(W, X, te) {
3491
3502
  const re = this.createEcapEvent(W, X, te ?? {});
3492
- this.raiseEcapEvent(re);
3503
+ EVENTS_WITH_DIAGNOSTICS.includes(W) && (re.diagnostics = this.globalStateManager.getData(LAST_WORKED_DIAGNOSTICS_KEY) ?? []), this.raiseEcapEvent(re);
3493
3504
  }
3494
3505
  createEcapEvent(W, X, te) {
3495
3506
  return {
@@ -3502,7 +3513,7 @@ class EcapEventManagerImpl {
3502
3513
  window.parent && window.parent.postMessage(JSON.stringify(W), "*"), console.log("method", JSON.stringify(W));
3503
3514
  }
3504
3515
  }
3505
- const ecapEventManager$1 = new EcapEventManagerImpl(), createEcapEventManager = () => ecapEventManager$1;
3516
+ const createEcapEventManager = (J) => new EcapEventManagerImpl(J);
3506
3517
  class PrimariaGlobalStateManagerImpl {
3507
3518
  constructor(W) {
3508
3519
  this.broker = W, this.state = {};
@@ -4793,7 +4804,7 @@ const resolveConfig = (J) => {
4793
4804
  }
4794
4805
  }
4795
4806
  utils$1.isString(He) || (He = He ? "include" : "omit");
4796
- const Ge = oe && "credentials" in X.prototype, Ke = {
4807
+ const Ge = oe && "credentials" in X.prototype, Ze = {
4797
4808
  ...Ie,
4798
4809
  signal: qe,
4799
4810
  method: ve.toUpperCase(),
@@ -4802,8 +4813,8 @@ const resolveConfig = (J) => {
4802
4813
  duplex: "half",
4803
4814
  credentials: Ge ? He : void 0
4804
4815
  };
4805
- Pe = oe && new X(ge, Ke);
4806
- let ft = await (oe ? Ae(Pe, Ie) : Ae(ge, Ke));
4816
+ Pe = oe && new X(ge, Ze);
4817
+ let ft = await (oe ? Ae(Pe, Ie) : Ae(ge, Ze));
4807
4818
  const Qe = he && (De === "stream" || De === "response");
4808
4819
  if (he && (Ce || Qe && ze)) {
4809
4820
  const Me = {};
@@ -4822,10 +4833,10 @@ const resolveConfig = (J) => {
4822
4833
  );
4823
4834
  }
4824
4835
  De = De || "text";
4825
- let Ze = await pe[utils$1.findKey(pe, De) || "text"](ft, me);
4836
+ let Ke = await pe[utils$1.findKey(pe, De) || "text"](ft, me);
4826
4837
  return !Qe && ze && ze(), await new Promise((Me, Be) => {
4827
4838
  settle(Me, Be, {
4828
- data: Ze,
4839
+ data: Ke,
4829
4840
  headers: AxiosHeaders$1.from(ft.headers),
4830
4841
  status: ft.status,
4831
4842
  statusText: ft.statusText,
@@ -5898,7 +5909,7 @@ function peg$parse(J, W) {
5898
5909
  return vs.push("numberArgStyle"), !0;
5899
5910
  }, We = function(Oe) {
5900
5911
  return vs.pop(), Oe.replace(/\s*$/, "");
5901
- }, Ge = ",", Ke = us(",", !1), ft = "number", Qe = us("number", !1), Ze = function(Oe, je, tt) {
5912
+ }, Ge = ",", Ze = us(",", !1), ft = "number", Qe = us("number", !1), Ke = function(Oe, je, tt) {
5902
5913
  return __assign$4({ type: je === "number" ? TYPE.number : je === "date" ? TYPE.date : TYPE.time, style: tt && tt[2], value: Oe }, _s());
5903
5914
  }, Me = "'", Be = us("'", !1), Ue = /^[^']/, Je = $s(["'"], !0, !1), Xe = /^[^a-zA-Z'{}]/, Ve = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ye = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
5904
5915
  return __assign$4({ type: 1, pattern: Oe }, _s());
@@ -5922,7 +5933,7 @@ function peg$parse(J, W) {
5922
5933
  }, {}) }, _s());
5923
5934
  }, zt = "=", cs = us("=", !1), ds = function(Oe) {
5924
5935
  return vs.push("select"), !0;
5925
- }, Kt = function(Oe, je) {
5936
+ }, Zt = function(Oe, je) {
5926
5937
  return vs.pop(), __assign$4({
5927
5938
  id: Oe,
5928
5939
  value: je
@@ -6087,13 +6098,13 @@ function peg$parse(J, W) {
6087
6098
  je = X;
6088
6099
  return je !== X && (Gt = Oe, je = Ie(je)), Oe = je, Oe;
6089
6100
  }
6090
- function Zi() {
6101
+ function Ki() {
6091
6102
  var Oe, je, tt;
6092
6103
  return Oe = Ne, J.substr(Ne, 2) === Ae ? (je = Ae, Ne += 2) : (je = X, yt === 0 && Et(qe)), je !== X ? (tt = Gi(), tt !== X ? (Gt = Oe, je = Pe(tt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe === X && (Oe = Ne, Gt = Ne, je = ze(), je ? je = void 0 : je = X, je !== X ? (tt = Ls(), tt !== X ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)), Oe;
6093
6104
  }
6094
- function Ki() {
6095
- var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Zt, ss;
6096
- return Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? (wt = jt(), wt !== X ? (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ke)), Lt !== X ? (es = jt(), es !== X ? (J.substr(Ne, 6) === ft ? (Bt = ft, Ne += 6) : (Bt = X, yt === 0 && Et(Qe)), Bt !== X ? (fs = jt(), fs !== X ? (Wt = Ne, J.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = X, yt === 0 && Et(Ke)), as !== X ? (Zt = jt(), Zt !== X ? (ss = Zi(), ss !== X ? (as = [as, Zt, ss], Wt = as) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Ne) === 125 ? (Zt = be, Ne++) : (Zt = X, yt === 0 && Et(me)), Zt !== X ? (Gt = Oe, je = Ze(bt, Bt, Wt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe;
6105
+ function Zi() {
6106
+ var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Kt, ss;
6107
+ return Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? (wt = jt(), wt !== X ? (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ze)), Lt !== X ? (es = jt(), es !== X ? (J.substr(Ne, 6) === ft ? (Bt = ft, Ne += 6) : (Bt = X, yt === 0 && Et(Qe)), Bt !== X ? (fs = jt(), fs !== X ? (Wt = Ne, J.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = X, yt === 0 && Et(Ze)), as !== X ? (Kt = jt(), Kt !== X ? (ss = Ki(), ss !== X ? (as = [as, Kt, ss], Wt = as) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Ne) === 125 ? (Kt = be, Ne++) : (Kt = X, yt === 0 && Et(me)), Kt !== X ? (Gt = Oe, je = Ke(bt, Bt, Wt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe;
6097
6108
  }
6098
6109
  function bi() {
6099
6110
  var Oe, je, tt, bt;
@@ -6137,33 +6148,33 @@ function peg$parse(J, W) {
6137
6148
  return Oe = Ne, J.substr(Ne, 2) === Ae ? (je = Ae, Ne += 2) : (je = X, yt === 0 && Et(qe)), je !== X ? (tt = Yi(), tt !== X ? (Gt = Oe, je = Pe(tt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe === X && (Oe = Ne, Gt = Ne, je = _t(), je ? je = void 0 : je = X, je !== X ? (tt = Ls(), tt !== X ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)), Oe;
6138
6149
  }
6139
6150
  function Ji() {
6140
- var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Zt, ss;
6141
- return Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? (wt = jt(), wt !== X ? (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ke)), Lt !== X ? (es = jt(), es !== X ? (J.substr(Ne, 4) === kt ? (Bt = kt, Ne += 4) : (Bt = X, yt === 0 && Et(It)), Bt === X && (J.substr(Ne, 4) === qt ? (Bt = qt, Ne += 4) : (Bt = X, yt === 0 && Et(Nt))), Bt !== X ? (fs = jt(), fs !== X ? (Wt = Ne, J.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = X, yt === 0 && Et(Ke)), as !== X ? (Zt = jt(), Zt !== X ? (ss = Qi(), ss !== X ? (as = [as, Zt, ss], Wt = as) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Ne) === 125 ? (Zt = be, Ne++) : (Zt = X, yt === 0 && Et(me)), Zt !== X ? (Gt = Oe, je = Ze(bt, Bt, Wt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe;
6151
+ var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Kt, ss;
6152
+ return Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? (wt = jt(), wt !== X ? (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ze)), Lt !== X ? (es = jt(), es !== X ? (J.substr(Ne, 4) === kt ? (Bt = kt, Ne += 4) : (Bt = X, yt === 0 && Et(It)), Bt === X && (J.substr(Ne, 4) === qt ? (Bt = qt, Ne += 4) : (Bt = X, yt === 0 && Et(Nt))), Bt !== X ? (fs = jt(), fs !== X ? (Wt = Ne, J.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = X, yt === 0 && Et(Ze)), as !== X ? (Kt = jt(), Kt !== X ? (ss = Qi(), ss !== X ? (as = [as, Kt, ss], Wt = as) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Ne) === 125 ? (Kt = be, Ne++) : (Kt = X, yt === 0 && Et(me)), Kt !== X ? (Gt = Oe, je = Ke(bt, Bt, Wt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe;
6142
6153
  }
6143
6154
  function Xi() {
6144
6155
  var Oe;
6145
- return Oe = Ki(), Oe === X && (Oe = Ji()), Oe;
6156
+ return Oe = Zi(), Oe === X && (Oe = Ji()), Oe;
6146
6157
  }
6147
6158
  function sr() {
6148
- var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Zt, ss, gs, ys, Ms;
6159
+ var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Kt, ss, gs, ys, Ms;
6149
6160
  if (Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X)
6150
6161
  if (tt = jt(), tt !== X)
6151
6162
  if (bt = Ss(), bt !== X)
6152
6163
  if (wt = jt(), wt !== X)
6153
- if (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ke)), Lt !== X)
6164
+ if (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ze)), Lt !== X)
6154
6165
  if (es = jt(), es !== X)
6155
6166
  if (J.substr(Ne, 6) === Vt ? (Bt = Vt, Ne += 6) : (Bt = X, yt === 0 && Et(rs)), Bt === X && (J.substr(Ne, 13) === Yt ? (Bt = Yt, Ne += 13) : (Bt = X, yt === 0 && Et(gt))), Bt !== X)
6156
6167
  if (fs = jt(), fs !== X)
6157
- if (J.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = X, yt === 0 && Et(Ke)), Wt !== X)
6168
+ if (J.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = X, yt === 0 && Et(Ze)), Wt !== X)
6158
6169
  if (as = jt(), as !== X)
6159
- if (Zt = Ne, J.substr(Ne, 7) === mt ? (ss = mt, Ne += 7) : (ss = X, yt === 0 && Et(xt)), ss !== X ? (gs = jt(), gs !== X ? (ys = yi(), ys !== X ? (ss = [ss, gs, ys], Zt = ss) : (Ne = Zt, Zt = X)) : (Ne = Zt, Zt = X)) : (Ne = Zt, Zt = X), Zt === X && (Zt = null), Zt !== X)
6170
+ if (Kt = Ne, J.substr(Ne, 7) === mt ? (ss = mt, Ne += 7) : (ss = X, yt === 0 && Et(xt)), ss !== X ? (gs = jt(), gs !== X ? (ys = yi(), ys !== X ? (ss = [ss, gs, ys], Kt = ss) : (Ne = Kt, Kt = X)) : (Ne = Kt, Kt = X)) : (Ne = Kt, Kt = X), Kt === X && (Kt = null), Kt !== X)
6160
6171
  if (ss = jt(), ss !== X) {
6161
6172
  if (gs = [], ys = vi(), ys !== X)
6162
6173
  for (; ys !== X; )
6163
6174
  gs.push(ys), ys = vi();
6164
6175
  else
6165
6176
  gs = X;
6166
- gs !== X ? (ys = jt(), ys !== X ? (J.charCodeAt(Ne) === 125 ? (Ms = be, Ne++) : (Ms = X, yt === 0 && Et(me)), Ms !== X ? (Gt = Oe, je = Ct(bt, Bt, Zt, gs), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X);
6177
+ gs !== X ? (ys = jt(), ys !== X ? (J.charCodeAt(Ne) === 125 ? (Ms = be, Ne++) : (Ms = X, yt === 0 && Et(me)), Ms !== X ? (Gt = Oe, je = Ct(bt, Bt, Kt, gs), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X);
6167
6178
  } else
6168
6179
  Ne = Oe, Oe = X;
6169
6180
  else
@@ -6191,23 +6202,23 @@ function peg$parse(J, W) {
6191
6202
  return Oe;
6192
6203
  }
6193
6204
  function ir() {
6194
- var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Zt, ss, gs;
6205
+ var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Kt, ss, gs;
6195
6206
  if (Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X)
6196
6207
  if (tt = jt(), tt !== X)
6197
6208
  if (bt = Ss(), bt !== X)
6198
6209
  if (wt = jt(), wt !== X)
6199
- if (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ke)), Lt !== X)
6210
+ if (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ze)), Lt !== X)
6200
6211
  if (es = jt(), es !== X)
6201
6212
  if (J.substr(Ne, 6) === $t ? (Bt = $t, Ne += 6) : (Bt = X, yt === 0 && Et(Mt)), Bt !== X)
6202
6213
  if (fs = jt(), fs !== X)
6203
- if (J.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = X, yt === 0 && Et(Ke)), Wt !== X)
6214
+ if (J.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = X, yt === 0 && Et(Ze)), Wt !== X)
6204
6215
  if (as = jt(), as !== X) {
6205
- if (Zt = [], ss = mi(), ss !== X)
6216
+ if (Kt = [], ss = mi(), ss !== X)
6206
6217
  for (; ss !== X; )
6207
- Zt.push(ss), ss = mi();
6218
+ Kt.push(ss), ss = mi();
6208
6219
  else
6209
- Zt = X;
6210
- Zt !== X ? (ss = jt(), ss !== X ? (J.charCodeAt(Ne) === 125 ? (gs = be, Ne++) : (gs = X, yt === 0 && Et(me)), gs !== X ? (Gt = Oe, je = Ft(bt, Zt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X);
6220
+ Kt = X;
6221
+ Kt !== X ? (ss = jt(), ss !== X ? (J.charCodeAt(Ne) === 125 ? (gs = be, Ne++) : (gs = X, yt === 0 && Et(me)), gs !== X ? (Gt = Oe, je = Ft(bt, Kt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X);
6211
6222
  } else
6212
6223
  Ne = Oe, Oe = X;
6213
6224
  else
@@ -6236,7 +6247,7 @@ function peg$parse(J, W) {
6236
6247
  }
6237
6248
  function mi() {
6238
6249
  var Oe, je, tt, bt, wt, Lt, es, Bt;
6239
- return Oe = Ne, je = jt(), je !== X ? (tt = Fs(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = X, yt === 0 && Et(fe)), wt !== X ? (Gt = Ne, Lt = ds(), Lt ? Lt = void 0 : Lt = X, Lt !== X ? (es = Ps(), es !== X ? (J.charCodeAt(Ne) === 125 ? (Bt = be, Ne++) : (Bt = X, yt === 0 && Et(me)), Bt !== X ? (Gt = Oe, je = Kt(tt, es), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe;
6250
+ return Oe = Ne, je = jt(), je !== X ? (tt = Fs(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = X, yt === 0 && Et(fe)), wt !== X ? (Gt = Ne, Lt = ds(), Lt ? Lt = void 0 : Lt = X, Lt !== X ? (es = Ps(), es !== X ? (J.charCodeAt(Ne) === 125 ? (Bt = be, Ne++) : (Bt = X, yt === 0 && Et(me)), Bt !== X ? (Gt = Oe, je = Zt(tt, es), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe;
6240
6251
  }
6241
6252
  function vi() {
6242
6253
  var Oe, je, tt, bt, wt, Lt, es, Bt;
@@ -9653,7 +9664,10 @@ class UserManagerImpl {
9653
9664
  const te = X.trace_user_given_name, re = X.trace_user_family_name;
9654
9665
  if (!(!te && !re))
9655
9666
  return [re, te].filter(Boolean).join(" ");
9656
- }, this.getSector = () => this.getAccessInfo()?.module_code;
9667
+ }, this.getSector = () => this.getAccessInfo()?.module_code, this.getDNI = () => {
9668
+ const X = this.getAccessInfo()?.identifier;
9669
+ return X ? X.find((re) => re.type === "DNI")?.value : void 0;
9670
+ };
9657
9671
  }
9658
9672
  getAccessInfo() {
9659
9673
  const W = this.tokenManager.getToken();
@@ -9675,7 +9689,7 @@ class ImportDataManagerImpl {
9675
9689
  async import(W) {
9676
9690
  this.currentImporterId = W, this.selectedItems = {}, this.pluginTexts = {};
9677
9691
  try {
9678
- const { ImportDataManagerModal: X } = await import("./component-D-tzX5fM.js"), { confirmed: te } = await this.interactionService.confirm(
9692
+ const { ImportDataManagerModal: X } = await import("./component-TkztHTPe.js"), { confirmed: te } = await this.interactionService.confirm(
9679
9693
  void 0,
9680
9694
  { component: X },
9681
9695
  {
@@ -9733,7 +9747,7 @@ class PrimariaContextManagerImpl {
9733
9747
  }
9734
9748
  }
9735
9749
  let contextManager$1;
9736
- const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$r("primaria"), PrimariaRegionHost = v$m(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (J) => {
9750
+ const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$r("primaria"), PrimariaRegionHost = v$m(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(globalStateManager), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (J) => {
9737
9751
  const W = createRegionManagerProxy(J, regionManager, broker$1);
9738
9752
  return {
9739
9753
  pluginInfo: J,
@@ -17899,10 +17913,10 @@ function flip(J) {
17899
17913
  rootBoundary: pe,
17900
17914
  altBoundary: fe,
17901
17915
  padding: ue
17902
- }), Ke = ze ? Pe ? right : left : Pe ? bottom : top;
17903
- Ce[We] > Le[We] && (Ke = getOppositePlacement(Ke));
17904
- var ft = getOppositePlacement(Ke), Qe = [];
17905
- if (oe && Qe.push(Ge[qe] <= 0), de && Qe.push(Ge[Ke] <= 0, Ge[ft] <= 0), Qe.every(function(Je) {
17916
+ }), Ze = ze ? Pe ? right : left : Pe ? bottom : top;
17917
+ Ce[We] > Le[We] && (Ze = getOppositePlacement(Ze));
17918
+ var ft = getOppositePlacement(Ze), Qe = [];
17919
+ if (oe && Qe.push(Ge[qe] <= 0), de && Qe.push(Ge[Ze] <= 0, Ge[ft] <= 0), Qe.every(function(Je) {
17906
17920
  return Je;
17907
17921
  })) {
17908
17922
  He = Ae, Fe = !1;
@@ -17911,7 +17925,7 @@ function flip(J) {
17911
17925
  De.set(Ae, Qe);
17912
17926
  }
17913
17927
  if (Fe)
17914
- for (var Ze = me ? 3 : 1, Me = function(Xe) {
17928
+ for (var Ke = me ? 3 : 1, Me = function(Xe) {
17915
17929
  var Ve = ye.find(function(Ye) {
17916
17930
  var rt = De.get(Ye);
17917
17931
  if (rt)
@@ -17921,7 +17935,7 @@ function flip(J) {
17921
17935
  });
17922
17936
  if (Ve)
17923
17937
  return He = Ve, "break";
17924
- }, Be = Ze; Be > 0; Be--) {
17938
+ }, Be = Ke; Be > 0; Be--) {
17925
17939
  var Ue = Me(Be);
17926
17940
  if (Ue === "break") break;
17927
17941
  }
@@ -18040,15 +18054,15 @@ function preventOverflow(J) {
18040
18054
  };
18041
18055
  if (Le) {
18042
18056
  if (oe) {
18043
- var Pe, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ke = Le[ye], ft = Ke + ve[ze], Qe = Ke - ve[We], Ze = be ? -Fe[Ge] / 2 : 0, Me = we === start ? De[Ge] : Fe[Ge], Be = we === start ? -Fe[Ge] : -De[Ge], Ue = W.elements.arrow, Je = be && Ue ? getLayoutRect(Ue) : {
18057
+ var Pe, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ze = Le[ye], ft = Ze + ve[ze], Qe = Ze - ve[We], Ke = be ? -Fe[Ge] / 2 : 0, Me = we === start ? De[Ge] : Fe[Ge], Be = we === start ? -Fe[Ge] : -De[Ge], Ue = W.elements.arrow, Je = be && Ue ? getLayoutRect(Ue) : {
18044
18058
  width: 0,
18045
18059
  height: 0
18046
- }, Xe = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ve = Xe[ze], Ye = Xe[We], rt = within(0, De[Ge], Je[Ge]), ot = Se ? De[Ge] / 2 - Ze - rt - Ve - Ie.mainAxis : Me - rt - Ve - Ie.mainAxis, _t = Se ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Be + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, qt = (Pe = Ae?.[ye]) != null ? Pe : 0, Nt = Ke + ot - qt - It, Vt = Ke + _t - qt, rs = within(be ? min(ft, Nt) : ft, Ke, be ? max(Qe, Vt) : Qe);
18047
- Le[ye] = rs, qe[ye] = rs - Ke;
18060
+ }, Xe = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ve = Xe[ze], Ye = Xe[We], rt = within(0, De[Ge], Je[Ge]), ot = Se ? De[Ge] / 2 - Ke - rt - Ve - Ie.mainAxis : Me - rt - Ve - Ie.mainAxis, _t = Se ? -De[Ge] / 2 + Ke + rt + Ye + Ie.mainAxis : Be + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, qt = (Pe = Ae?.[ye]) != null ? Pe : 0, Nt = Ze + ot - qt - It, Vt = Ze + _t - qt, rs = within(be ? min(ft, Nt) : ft, Ze, be ? max(Qe, Vt) : Qe);
18061
+ Le[ye] = rs, qe[ye] = rs - Ze;
18048
18062
  }
18049
18063
  if (de) {
18050
- var Yt, gt = ye === "x" ? top : left, mt = ye === "x" ? bottom : right, xt = Le[Ce], Ct = Ce === "y" ? "height" : "width", $t = xt + ve[gt], Mt = xt - ve[mt], Ft = [top, left].indexOf(_e) !== -1, zt = (Yt = Ae?.[Ce]) != null ? Yt : 0, cs = Ft ? $t : xt - De[Ct] - Fe[Ct] - zt + Ie.altAxis, ds = Ft ? xt + De[Ct] + Fe[Ct] - zt - Ie.altAxis : Mt, Kt = be && Ft ? withinMaxClamp(cs, xt, ds) : within(be ? cs : $t, xt, be ? ds : Mt);
18051
- Le[Ce] = Kt, qe[Ce] = Kt - xt;
18064
+ var Yt, gt = ye === "x" ? top : left, mt = ye === "x" ? bottom : right, xt = Le[Ce], Ct = Ce === "y" ? "height" : "width", $t = xt + ve[gt], Mt = xt - ve[mt], Ft = [top, left].indexOf(_e) !== -1, zt = (Yt = Ae?.[Ce]) != null ? Yt : 0, cs = Ft ? $t : xt - De[Ct] - Fe[Ct] - zt + Ie.altAxis, ds = Ft ? xt + De[Ct] + Fe[Ct] - zt - Ie.altAxis : Mt, Zt = be && Ft ? withinMaxClamp(cs, xt, ds) : within(be ? cs : $t, xt, be ? ds : Mt);
18065
+ Le[Ce] = Zt, qe[Ce] = Zt - xt;
18052
18066
  }
18053
18067
  W.modifiersData[te] = qe;
18054
18068
  }
@@ -21629,7 +21643,7 @@ const P$1 = er`dss-calendar${tr(f$q())}`, s$r = er`dss-icon${tr(f$q())}`, r$z =
21629
21643
  var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, we, Se, ye, Ce, Le, De, Fe, He, Ie, Ae, qe, Pe, ze, We;
21630
21644
  const Ge = {
21631
21645
  "dss-datepicker-range--sm": J.inputSize !== "lg"
21632
- }, Ke = {
21646
+ }, Ze = {
21633
21647
  "dss-datepicker-range-help--invalid": J._invalid || !((W = J._inputRangeStart) != null && W.validity.valid) && ((X = J._inputRangeStart) == null ? void 0 : X.value) !== "" || !((te = J._inputRangeEnd) != null && te.validity.valid) && ((re = J._inputRangeEnd) == null ? void 0 : re.value) !== "",
21634
21648
  "dss-datepicker-range-help--disabled": ((oe = J._inputRangeStart) == null ? void 0 : oe.disabled) && ((ne = J._inputRangeEnd) == null ? void 0 : ne.disabled)
21635
21649
  }, ft = {
@@ -21642,7 +21656,7 @@ const P$1 = er`dss-calendar${tr(f$q())}`, s$r = er`dss-icon${tr(f$q())}`, r$z =
21642
21656
  "dss-input-wrapper--required": (ue = J._inputRangeEnd) == null ? void 0 : ue.required,
21643
21657
  "dss-input-wrapper--disabled": (he = J._inputRangeEnd) == null ? void 0 : he.disabled,
21644
21658
  [`dss-input-wrapper--${J.inputSize}`]: !!J.inputSize
21645
- }, Ze = {
21659
+ }, Ke = {
21646
21660
  "dss-input-group": !0,
21647
21661
  [`dss-input-group--${J.inputSize}`]: !!J.inputSize,
21648
21662
  "dss-input-group--invalid": J._invalid || !((pe = J._inputRangeStart) != null && pe.validity.valid) && ((fe = J._inputRangeStart) == null ? void 0 : fe.value) !== "",
@@ -21684,7 +21698,7 @@ const P$1 = er`dss-calendar${tr(f$q())}`, s$r = er`dss-icon${tr(f$q())}`, r$z =
21684
21698
  <slot name="label-range-start"></slot>
21685
21699
  </div>
21686
21700
  ` : D$5}
21687
- <div class="${Rt(Ze)}">
21701
+ <div class="${Rt(Ke)}">
21688
21702
  ${J._iconRangeStart && J._iconRangeStart !== "" ? ke`
21689
21703
  <${s$r} icon="${J._iconRangeStart}" class="dss-input-icon"></${s$r}>
21690
21704
  ` : D$5}
@@ -21749,7 +21763,7 @@ const P$1 = er`dss-calendar${tr(f$q())}`, s$r = er`dss-icon${tr(f$q())}`, r$z =
21749
21763
  </div>
21750
21764
 
21751
21765
  ${J._helpText ? ke`
21752
- <div class="dss-datepicker-range-help ${Rt(Ke)}">
21766
+ <div class="dss-datepicker-range-help ${Rt(Ze)}">
21753
21767
  ${J._helpText}
21754
21768
  </div>
21755
21769
  ` : null}
@@ -38046,7 +38060,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38046
38060
  var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, we, Se, ye, Ce, Le, De, Fe, He, Ie, Ae, qe, Pe, ze, We;
38047
38061
  const Ge = {
38048
38062
  "dss-datepicker-range--sm": J.size !== "lg"
38049
- }, Ke = {
38063
+ }, Ze = {
38050
38064
  "dss-datepicker-range-help--invalid": J.invalid || !((W = J._inputRangeStart) != null && W.validity.valid) && ((X = J._inputRangeStart) == null ? void 0 : X.value) !== "" || !((te = J._inputRangeEnd) != null && te.validity.valid) && ((re = J._inputRangeEnd) == null ? void 0 : re.value) !== "",
38051
38065
  "dss-datepicker-range-help--disabled": ((oe = J._inputRangeStart) == null ? void 0 : oe.disabled) && ((ne = J._inputRangeEnd) == null ? void 0 : ne.disabled)
38052
38066
  }, ft = {
@@ -38059,7 +38073,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38059
38073
  "dss-input-wrapper--required": (ue = J._inputRangeEnd) == null ? void 0 : ue.required,
38060
38074
  "dss-input-wrapper--disabled": (he = J._inputRangeEnd) == null ? void 0 : he.disabled,
38061
38075
  [`dss-input-wrapper--${J.size}`]: !!J.size
38062
- }, Ze = {
38076
+ }, Ke = {
38063
38077
  "dss-input-group": !0,
38064
38078
  [`dss-input-group--${J.size}`]: !!J.size,
38065
38079
  "dss-input-group--invalid": J.invalid || !((pe = J._inputRangeStart) != null && pe.validity.valid) && ((fe = J._inputRangeStart) == null ? void 0 : fe.value) !== "",
@@ -38108,7 +38122,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38108
38122
  <label class="dss-label dss-label--start" for="${J._getEffectiveStartId()}">${J.labelRangeStart}</label>
38109
38123
  </div>
38110
38124
  ` : D$5}
38111
- <div class="${Rt(Ze)}">
38125
+ <div class="${Rt(Ke)}">
38112
38126
  ${J.iconRangeStart && J.iconRangeStart !== "" ? ke`
38113
38127
  <${i$9} icon="${J.iconRangeStart}" class="dss-input-icon"></${i$9}>
38114
38128
  ` : D$5}
@@ -38207,7 +38221,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38207
38221
  </div>
38208
38222
 
38209
38223
  ${J._helpText ? ke`
38210
- <div class="dss-datepicker-range-help ${Rt(Ke)}">
38224
+ <div class="dss-datepicker-range-help ${Rt(Ze)}">
38211
38225
  ${J._helpText}
38212
38226
  </div>
38213
38227
  ` : null}
@@ -42837,7 +42851,7 @@ var __defProp$a = Object.defineProperty, __decorateClass$a = (J, W, X, te) => {
42837
42851
  (ne = J[oe]) && (re = ne(W, X, re) || re);
42838
42852
  return re && __defProp$a(W, X, re), re;
42839
42853
  };
42840
- const Zs = class Zs extends PrimariaRegionHost(h$p) {
42854
+ const Ks = class Ks extends PrimariaRegionHost(h$p) {
42841
42855
  constructor(W, X) {
42842
42856
  super(), this.showText = !1, this.icon = "", this.label = "", this.icon = W, this.label = X;
42843
42857
  }
@@ -42857,10 +42871,10 @@ const Zs = class Zs extends PrimariaRegionHost(h$p) {
42857
42871
  return ke$1`${template$8(this)}`;
42858
42872
  }
42859
42873
  };
42860
- Zs.styles = i$S`
42874
+ Ks.styles = i$S`
42861
42875
  ${r$O(styles$8)}
42862
42876
  `;
42863
- let CommunicationActionMenu = Zs;
42877
+ let CommunicationActionMenu = Ks;
42864
42878
  __decorateClass$a([
42865
42879
  r$L()
42866
42880
  ], CommunicationActionMenu.prototype, "showText");
@@ -42893,7 +42907,7 @@ var __defProp$9 = Object.defineProperty, __decorateClass$9 = (J, W, X, te) => {
42893
42907
  (ne = J[oe]) && (re = ne(W, X, re) || re);
42894
42908
  return re && __defProp$9(W, X, re), re;
42895
42909
  };
42896
- const Ks = class Ks extends PrimariaRegionHost(h$p) {
42910
+ const Zs = class Zs extends PrimariaRegionHost(h$p) {
42897
42911
  constructor(W, X) {
42898
42912
  super(), this.showText = !1, this.icon = "", this.label = "", this.icon = W, this.label = X;
42899
42913
  }
@@ -42913,10 +42927,10 @@ const Ks = class Ks extends PrimariaRegionHost(h$p) {
42913
42927
  return ke$1`${template$7(this)}`;
42914
42928
  }
42915
42929
  };
42916
- Ks.styles = i$S`
42930
+ Zs.styles = i$S`
42917
42931
  ${r$O(styles$7)}
42918
42932
  `;
42919
- let ClinicalPathwaysActionMenu = Ks;
42933
+ let ClinicalPathwaysActionMenu = Zs;
42920
42934
  __decorateClass$9([
42921
42935
  r$L()
42922
42936
  ], ClinicalPathwaysActionMenu.prototype, "showText");
@@ -43627,8 +43641,8 @@ function requireQuill() {
43627
43641
  } else {
43628
43642
  if ("value" in We)
43629
43643
  return We.value;
43630
- var Ke = We.get;
43631
- return Ke === void 0 ? void 0 : Ke.call(ze);
43644
+ var Ze = We.get;
43645
+ return Ze === void 0 ? void 0 : Ze.call(ze);
43632
43646
  }
43633
43647
  }, de = re(3), ce = Se(de), ue = re(2), he = Se(ue), pe = re(0), fe = Se(pe), be = re(16), me = Se(be), ge = re(6), ve = Se(ge), _e = re(7), we = Se(_e);
43634
43648
  function Se(Ae) {
@@ -43671,16 +43685,16 @@ function requireQuill() {
43671
43685
  }
43672
43686
  }, {
43673
43687
  key: "formatAt",
43674
- value: function(ze, We, Ge, Ke) {
43675
- this.format(Ge, Ke);
43688
+ value: function(ze, We, Ge, Ze) {
43689
+ this.format(Ge, Ze);
43676
43690
  }
43677
43691
  }, {
43678
43692
  key: "insertAt",
43679
43693
  value: function(ze, We, Ge) {
43680
43694
  if (typeof We == "string" && We.endsWith(`
43681
43695
  `)) {
43682
- var Ke = fe.default.create(He.blotName);
43683
- this.parent.insertBefore(Ke, ze === 0 ? this : this.next), Ke.insertAt(0, We.slice(0, -1));
43696
+ var Ze = fe.default.create(He.blotName);
43697
+ this.parent.insertBefore(Ze, ze === 0 ? this : this.next), Ze.insertAt(0, We.slice(0, -1));
43684
43698
  } else
43685
43699
  ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, ze, We, Ge);
43686
43700
  }
@@ -43709,20 +43723,20 @@ function requireQuill() {
43709
43723
  }
43710
43724
  }, {
43711
43725
  key: "formatAt",
43712
- value: function(ze, We, Ge, Ke) {
43713
- We <= 0 || (fe.default.query(Ge, fe.default.Scope.BLOCK) ? ze + We === this.length() && this.format(Ge, Ke) : ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "formatAt", this).call(this, ze, Math.min(We, this.length() - ze - 1), Ge, Ke), this.cache = {});
43726
+ value: function(ze, We, Ge, Ze) {
43727
+ We <= 0 || (fe.default.query(Ge, fe.default.Scope.BLOCK) ? ze + We === this.length() && this.format(Ge, Ze) : ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "formatAt", this).call(this, ze, Math.min(We, this.length() - ze - 1), Ge, Ze), this.cache = {});
43714
43728
  }
43715
43729
  }, {
43716
43730
  key: "insertAt",
43717
43731
  value: function(ze, We, Ge) {
43718
43732
  if (Ge != null) return ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, ze, We, Ge);
43719
43733
  if (We.length !== 0) {
43720
- var Ke = We.split(`
43721
- `), ft = Ke.shift();
43734
+ var Ze = We.split(`
43735
+ `), ft = Ze.shift();
43722
43736
  ft.length > 0 && (ze < this.length() - 1 || this.children.tail == null ? ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, Math.min(ze, this.length() - 1), ft) : this.children.tail.insertAt(this.children.tail.length(), ft), this.cache = {});
43723
43737
  var Qe = this;
43724
- Ke.reduce(function(Ze, Me) {
43725
- return Qe = Qe.split(Ze, !0), Qe.insertAt(0, Me), Me.length;
43738
+ Ze.reduce(function(Ke, Me) {
43739
+ return Qe = Qe.split(Ke, !0), Qe.insertAt(0, Me), Me.length;
43726
43740
  }, ze + ft.length);
43727
43741
  }
43728
43742
  }
@@ -43765,8 +43779,8 @@ function requireQuill() {
43765
43779
  var Ge = this.clone();
43766
43780
  return ze === 0 ? (this.parent.insertBefore(Ge, this), this) : (this.parent.insertBefore(Ge, this.next), Ge);
43767
43781
  } else {
43768
- var Ke = ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "split", this).call(this, ze, We);
43769
- return this.cache = {}, Ke;
43782
+ var Ze = ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "split", this).call(this, ze, We);
43783
+ return this.cache = {}, Ze;
43770
43784
  }
43771
43785
  }
43772
43786
  }]), qe;
@@ -43789,10 +43803,10 @@ function requireQuill() {
43789
43803
  } : function(Qe) {
43790
43804
  return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
43791
43805
  }, ne = /* @__PURE__ */ (function() {
43792
- function Qe(Ze, Me) {
43806
+ function Qe(Ke, Me) {
43793
43807
  var Be = [], Ue = !0, Je = !1, Xe = void 0;
43794
43808
  try {
43795
- for (var Ve = Ze[Symbol.iterator](), Ye; !(Ue = (Ye = Ve.next()).done) && (Be.push(Ye.value), !(Me && Be.length === Me)); Ue = !0)
43809
+ for (var Ve = Ke[Symbol.iterator](), Ye; !(Ue = (Ye = Ve.next()).done) && (Be.push(Ye.value), !(Me && Be.length === Me)); Ue = !0)
43796
43810
  ;
43797
43811
  } catch (rt) {
43798
43812
  Je = !0, Xe = rt;
@@ -43805,22 +43819,22 @@ function requireQuill() {
43805
43819
  }
43806
43820
  return Be;
43807
43821
  }
43808
- return function(Ze, Me) {
43809
- if (Array.isArray(Ze))
43810
- return Ze;
43811
- if (Symbol.iterator in Object(Ze))
43812
- return Qe(Ze, Me);
43822
+ return function(Ke, Me) {
43823
+ if (Array.isArray(Ke))
43824
+ return Ke;
43825
+ if (Symbol.iterator in Object(Ke))
43826
+ return Qe(Ke, Me);
43813
43827
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
43814
43828
  };
43815
43829
  })(), de = /* @__PURE__ */ (function() {
43816
- function Qe(Ze, Me) {
43830
+ function Qe(Ke, Me) {
43817
43831
  for (var Be = 0; Be < Me.length; Be++) {
43818
43832
  var Ue = Me[Be];
43819
- Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Ze, Ue.key, Ue);
43833
+ Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Ke, Ue.key, Ue);
43820
43834
  }
43821
43835
  }
43822
- return function(Ze, Me, Be) {
43823
- return Me && Qe(Ze.prototype, Me), Be && Qe(Ze, Be), Ze;
43836
+ return function(Ke, Me, Be) {
43837
+ return Me && Qe(Ke.prototype, Me), Be && Qe(Ke, Be), Ke;
43824
43838
  };
43825
43839
  })();
43826
43840
  re(51);
@@ -43828,11 +43842,11 @@ function requireQuill() {
43828
43842
  function Ie(Qe) {
43829
43843
  return Qe && Qe.__esModule ? Qe : { default: Qe };
43830
43844
  }
43831
- function Ae(Qe, Ze, Me) {
43832
- return Ze in Qe ? Object.defineProperty(Qe, Ze, { value: Me, enumerable: !0, configurable: !0, writable: !0 }) : Qe[Ze] = Me, Qe;
43845
+ function Ae(Qe, Ke, Me) {
43846
+ return Ke in Qe ? Object.defineProperty(Qe, Ke, { value: Me, enumerable: !0, configurable: !0, writable: !0 }) : Qe[Ke] = Me, Qe;
43833
43847
  }
43834
- function qe(Qe, Ze) {
43835
- if (!(Qe instanceof Ze))
43848
+ function qe(Qe, Ke) {
43849
+ if (!(Qe instanceof Ke))
43836
43850
  throw new TypeError("Cannot call a class as a function");
43837
43851
  }
43838
43852
  var Pe = (0, De.default)("quill"), ze = (function() {
@@ -43864,10 +43878,10 @@ function requireQuill() {
43864
43878
  this.imports[Me] != null && !Je && Pe.warn("Overwriting " + Me + " with", Be), this.imports[Me] = Be, (Me.startsWith("blots/") || Me.startsWith("formats/")) && Be.blotName !== "abstract" ? _e.default.register(Be) : Me.startsWith("modules") && typeof Be.register == "function" && Be.register();
43865
43879
  }
43866
43880
  }]);
43867
- function Qe(Ze) {
43881
+ function Qe(Ke) {
43868
43882
  var Me = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
43869
- if (qe(this, Qe), this.options = We(Ze, Be), this.container = this.options.container, this.container == null)
43870
- return Pe.error("Invalid Quill container", Ze);
43883
+ if (qe(this, Qe), this.options = We(Ke, Be), this.container = this.options.container, this.container == null)
43884
+ return Pe.error("Invalid Quill container", Ke);
43871
43885
  this.options.debug && Qe.debug(this.options.debug);
43872
43886
  var Ue = this.container.innerHTML.trim();
43873
43887
  this.container.classList.add("ql-container"), this.container.innerHTML = "", this.container.__quill = this, this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.root.setAttribute("data-gramm", !1), this.scrollingContainer = this.options.scrollingContainer || this.root, this.emitter = new be.default(), this.scroll = _e.default.create(this.root, {
@@ -43902,7 +43916,7 @@ function requireQuill() {
43902
43916
  }, {
43903
43917
  key: "deleteText",
43904
43918
  value: function(Me, Be, Ue) {
43905
- var Je = this, Xe = Ke(Me, Be, Ue), Ve = ne(Xe, 4);
43919
+ var Je = this, Xe = Ze(Me, Be, Ue), Ve = ne(Xe, 4);
43906
43920
  return Me = Ve[0], Be = Ve[1], Ue = Ve[3], Ge.call(this, function() {
43907
43921
  return Je.editor.deleteText(Me, Be);
43908
43922
  }, Ue, Me, -1 * Be);
@@ -43945,7 +43959,7 @@ function requireQuill() {
43945
43959
  }, {
43946
43960
  key: "formatLine",
43947
43961
  value: function(Me, Be, Ue, Je, Xe) {
43948
- var Ve = this, Ye = void 0, rt = Ke(Me, Be, Ue, Je, Xe), ot = ne(rt, 4);
43962
+ var Ve = this, Ye = void 0, rt = Ze(Me, Be, Ue, Je, Xe), ot = ne(rt, 4);
43949
43963
  return Me = ot[0], Be = ot[1], Ye = ot[2], Xe = ot[3], Ge.call(this, function() {
43950
43964
  return Ve.editor.formatLine(Me, Be, Ye);
43951
43965
  }, Xe, Me, 0);
@@ -43953,7 +43967,7 @@ function requireQuill() {
43953
43967
  }, {
43954
43968
  key: "formatText",
43955
43969
  value: function(Me, Be, Ue, Je, Xe) {
43956
- var Ve = this, Ye = void 0, rt = Ke(Me, Be, Ue, Je, Xe), ot = ne(rt, 4);
43970
+ var Ve = this, Ye = void 0, rt = Ze(Me, Be, Ue, Je, Xe), ot = ne(rt, 4);
43957
43971
  return Me = ot[0], Be = ot[1], Ye = ot[2], Xe = ot[3], Ge.call(this, function() {
43958
43972
  return Ve.editor.formatText(Me, Be, Ye);
43959
43973
  }, Xe, Me, 0);
@@ -43976,7 +43990,7 @@ function requireQuill() {
43976
43990
  }, {
43977
43991
  key: "getContents",
43978
43992
  value: function() {
43979
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ue = Ke(Me, Be), Je = ne(Ue, 2);
43993
+ var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ue = Ze(Me, Be), Je = ne(Ue, 2);
43980
43994
  return Me = Je[0], Be = Je[1], this.editor.getContents(Me, Be);
43981
43995
  }
43982
43996
  }, {
@@ -44025,7 +44039,7 @@ function requireQuill() {
44025
44039
  }, {
44026
44040
  key: "getText",
44027
44041
  value: function() {
44028
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ue = Ke(Me, Be), Je = ne(Ue, 2);
44042
+ var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ue = Ze(Me, Be), Je = ne(Ue, 2);
44029
44043
  return Me = Je[0], Be = Je[1], this.editor.getText(Me, Be);
44030
44044
  }
44031
44045
  }, {
@@ -44044,7 +44058,7 @@ function requireQuill() {
44044
44058
  }, {
44045
44059
  key: "insertText",
44046
44060
  value: function(Me, Be, Ue, Je, Xe) {
44047
- var Ve = this, Ye = void 0, rt = Ke(Me, 0, Ue, Je, Xe), ot = ne(rt, 4);
44061
+ var Ve = this, Ye = void 0, rt = Ze(Me, 0, Ue, Je, Xe), ot = ne(rt, 4);
44048
44062
  return Me = ot[0], Ye = ot[2], Xe = ot[3], Ge.call(this, function() {
44049
44063
  return Ve.editor.insertText(Me, Be, Ye);
44050
44064
  }, Xe, Me, Be.length);
@@ -44077,7 +44091,7 @@ function requireQuill() {
44077
44091
  }, {
44078
44092
  key: "removeFormat",
44079
44093
  value: function(Me, Be, Ue) {
44080
- var Je = this, Xe = Ke(Me, Be, Ue), Ve = ne(Xe, 4);
44094
+ var Je = this, Xe = Ze(Me, Be, Ue), Ve = ne(Xe, 4);
44081
44095
  return Me = Ve[0], Be = Ve[1], Ue = Ve[3], Ge.call(this, function() {
44082
44096
  return Je.editor.removeFormat(Me, Be);
44083
44097
  }, Ue, Me);
@@ -44106,7 +44120,7 @@ function requireQuill() {
44106
44120
  if (Me == null)
44107
44121
  this.selection.setRange(null, Be || Qe.sources.API);
44108
44122
  else {
44109
- var Je = Ke(Me, Be, Ue), Xe = ne(Je, 4);
44123
+ var Je = Ze(Me, Be, Ue), Xe = ne(Je, 4);
44110
44124
  Me = Xe[0], Be = Xe[1], Ue = Xe[3], this.selection.setRange(new we.Range(Me, Be), Ue), Ue !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
44111
44125
  }
44112
44126
  }
@@ -44147,70 +44161,70 @@ function requireQuill() {
44147
44161
  "core/module": ge.default,
44148
44162
  "core/theme": He.default
44149
44163
  };
44150
- function We(Qe, Ze) {
44151
- if (Ze = (0, Ce.default)(!0, {
44164
+ function We(Qe, Ke) {
44165
+ if (Ke = (0, Ce.default)(!0, {
44152
44166
  container: Qe,
44153
44167
  modules: {
44154
44168
  clipboard: !0,
44155
44169
  keyboard: !0,
44156
44170
  history: !0
44157
44171
  }
44158
- }, Ze), !Ze.theme || Ze.theme === ze.DEFAULTS.theme)
44159
- Ze.theme = He.default;
44160
- else if (Ze.theme = ze.import("themes/" + Ze.theme), Ze.theme == null)
44161
- throw new Error("Invalid theme " + Ze.theme + ". Did you register it?");
44162
- var Me = (0, Ce.default)(!0, {}, Ze.theme.DEFAULTS);
44163
- [Me, Ze].forEach(function(Je) {
44172
+ }, Ke), !Ke.theme || Ke.theme === ze.DEFAULTS.theme)
44173
+ Ke.theme = He.default;
44174
+ else if (Ke.theme = ze.import("themes/" + Ke.theme), Ke.theme == null)
44175
+ throw new Error("Invalid theme " + Ke.theme + ". Did you register it?");
44176
+ var Me = (0, Ce.default)(!0, {}, Ke.theme.DEFAULTS);
44177
+ [Me, Ke].forEach(function(Je) {
44164
44178
  Je.modules = Je.modules || {}, Object.keys(Je.modules).forEach(function(Xe) {
44165
44179
  Je.modules[Xe] === !0 && (Je.modules[Xe] = {});
44166
44180
  });
44167
44181
  });
44168
- var Be = Object.keys(Me.modules).concat(Object.keys(Ze.modules)), Ue = Be.reduce(function(Je, Xe) {
44182
+ var Be = Object.keys(Me.modules).concat(Object.keys(Ke.modules)), Ue = Be.reduce(function(Je, Xe) {
44169
44183
  var Ve = ze.import("modules/" + Xe);
44170
44184
  return Ve == null ? Pe.error("Cannot load " + Xe + " module. Are you sure you registered it?") : Je[Xe] = Ve.DEFAULTS || {}, Je;
44171
44185
  }, {});
44172
- return Ze.modules != null && Ze.modules.toolbar && Ze.modules.toolbar.constructor !== Object && (Ze.modules.toolbar = {
44173
- container: Ze.modules.toolbar
44174
- }), Ze = (0, Ce.default)(!0, {}, ze.DEFAULTS, { modules: Ue }, Me, Ze), ["bounds", "container", "scrollingContainer"].forEach(function(Je) {
44175
- typeof Ze[Je] == "string" && (Ze[Je] = document.querySelector(Ze[Je]));
44176
- }), Ze.modules = Object.keys(Ze.modules).reduce(function(Je, Xe) {
44177
- return Ze.modules[Xe] && (Je[Xe] = Ze.modules[Xe]), Je;
44178
- }, {}), Ze;
44179
- }
44180
- function Ge(Qe, Ze, Me, Be) {
44181
- if (this.options.strict && !this.isEnabled() && Ze === be.default.sources.USER)
44186
+ return Ke.modules != null && Ke.modules.toolbar && Ke.modules.toolbar.constructor !== Object && (Ke.modules.toolbar = {
44187
+ container: Ke.modules.toolbar
44188
+ }), Ke = (0, Ce.default)(!0, {}, ze.DEFAULTS, { modules: Ue }, Me, Ke), ["bounds", "container", "scrollingContainer"].forEach(function(Je) {
44189
+ typeof Ke[Je] == "string" && (Ke[Je] = document.querySelector(Ke[Je]));
44190
+ }), Ke.modules = Object.keys(Ke.modules).reduce(function(Je, Xe) {
44191
+ return Ke.modules[Xe] && (Je[Xe] = Ke.modules[Xe]), Je;
44192
+ }, {}), Ke;
44193
+ }
44194
+ function Ge(Qe, Ke, Me, Be) {
44195
+ if (this.options.strict && !this.isEnabled() && Ke === be.default.sources.USER)
44182
44196
  return new ue.default();
44183
44197
  var Ue = Me == null ? null : this.getSelection(), Je = this.editor.delta, Xe = Qe();
44184
- if (Ue != null && (Me === !0 && (Me = Ue.index), Be == null ? Ue = ft(Ue, Xe, Ze) : Be !== 0 && (Ue = ft(Ue, Me, Be, Ze)), this.setSelection(Ue, be.default.sources.SILENT)), Xe.length() > 0) {
44185
- var Ve, Ye = [be.default.events.TEXT_CHANGE, Xe, Je, Ze];
44186
- if ((Ve = this.emitter).emit.apply(Ve, [be.default.events.EDITOR_CHANGE].concat(Ye)), Ze !== be.default.sources.SILENT) {
44198
+ if (Ue != null && (Me === !0 && (Me = Ue.index), Be == null ? Ue = ft(Ue, Xe, Ke) : Be !== 0 && (Ue = ft(Ue, Me, Be, Ke)), this.setSelection(Ue, be.default.sources.SILENT)), Xe.length() > 0) {
44199
+ var Ve, Ye = [be.default.events.TEXT_CHANGE, Xe, Je, Ke];
44200
+ if ((Ve = this.emitter).emit.apply(Ve, [be.default.events.EDITOR_CHANGE].concat(Ye)), Ke !== be.default.sources.SILENT) {
44187
44201
  var rt;
44188
44202
  (rt = this.emitter).emit.apply(rt, Ye);
44189
44203
  }
44190
44204
  }
44191
44205
  return Xe;
44192
44206
  }
44193
- function Ke(Qe, Ze, Me, Be, Ue) {
44207
+ function Ze(Qe, Ke, Me, Be, Ue) {
44194
44208
  var Je = {};
44195
- return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (Ue = Be, Be = Me, Me = Ze, Ze = Qe.length, Qe = Qe.index) : (Ze = Qe.length, Qe = Qe.index) : typeof Ze != "number" && (Ue = Be, Be = Me, Me = Ze, Ze = 0), (typeof Me > "u" ? "undefined" : oe(Me)) === "object" ? (Je = Me, Ue = Be) : typeof Me == "string" && (Be != null ? Je[Me] = Be : Ue = Me), Ue = Ue || be.default.sources.API, [Qe, Ze, Je, Ue];
44209
+ return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ke != "number" ? (Ue = Be, Be = Me, Me = Ke, Ke = Qe.length, Qe = Qe.index) : (Ke = Qe.length, Qe = Qe.index) : typeof Ke != "number" && (Ue = Be, Be = Me, Me = Ke, Ke = 0), (typeof Me > "u" ? "undefined" : oe(Me)) === "object" ? (Je = Me, Ue = Be) : typeof Me == "string" && (Be != null ? Je[Me] = Be : Ue = Me), Ue = Ue || be.default.sources.API, [Qe, Ke, Je, Ue];
44196
44210
  }
44197
- function ft(Qe, Ze, Me, Be) {
44211
+ function ft(Qe, Ke, Me, Be) {
44198
44212
  if (Qe == null) return null;
44199
44213
  var Ue = void 0, Je = void 0;
44200
- if (Ze instanceof ue.default) {
44214
+ if (Ke instanceof ue.default) {
44201
44215
  var Xe = [Qe.index, Qe.index + Qe.length].map(function(ot) {
44202
- return Ze.transformPosition(ot, Be !== be.default.sources.USER);
44216
+ return Ke.transformPosition(ot, Be !== be.default.sources.USER);
44203
44217
  }), Ve = ne(Xe, 2);
44204
44218
  Ue = Ve[0], Je = Ve[1];
44205
44219
  } else {
44206
44220
  var Ye = [Qe.index, Qe.index + Qe.length].map(function(ot) {
44207
- return ot < Ze || ot === Ze && Be === be.default.sources.USER ? ot : Me >= 0 ? ot + Me : Math.max(Ze, ot + Me);
44221
+ return ot < Ke || ot === Ke && Be === be.default.sources.USER ? ot : Me >= 0 ? ot + Me : Math.max(Ke, ot + Me);
44208
44222
  }), rt = ne(Ye, 2);
44209
44223
  Ue = rt[0], Je = rt[1];
44210
44224
  }
44211
44225
  return new we.Range(Ue, Je - Ue);
44212
44226
  }
44213
- te.expandConfig = We, te.overload = Ke, te.default = ze;
44227
+ te.expandConfig = We, te.overload = Ze, te.default = ze;
44214
44228
  }),
44215
44229
  /* 6 */
44216
44230
  /***/
@@ -44412,10 +44426,10 @@ function requireQuill() {
44412
44426
  if (!Se || Ge.getRootNode() === document)
44413
44427
  return We.contains(Ge);
44414
44428
  for (; !We.contains(Ge); ) {
44415
- var Ke = Ge.getRootNode();
44416
- if (!Ke || !Ke.host)
44429
+ var Ze = Ge.getRootNode();
44430
+ if (!Ze || !Ze.host)
44417
44431
  return !1;
44418
- Ge = Ke.host;
44432
+ Ge = Ze.host;
44419
44433
  }
44420
44434
  return !0;
44421
44435
  };
@@ -44564,8 +44578,8 @@ function requireQuill() {
44564
44578
  try {
44565
44579
  for (var We = He[Symbol.iterator](), Ge; !(qe = (Ge = We.next()).done) && (Ae.push(Ge.value), !(Ie && Ae.length === Ie)); qe = !0)
44566
44580
  ;
44567
- } catch (Ke) {
44568
- Pe = !0, ze = Ke;
44581
+ } catch (Ze) {
44582
+ Pe = !0, ze = Ze;
44569
44583
  } finally {
44570
44584
  try {
44571
44585
  !qe && We.return && We.return();
@@ -44660,8 +44674,8 @@ function requireQuill() {
44660
44674
  if (qe !== 0 && !(pe.default.query(Pe, pe.default.Scope.BLOCK) == null || Pe === this.statics.blotName && ze === this.statics.formats(this.domNode))) {
44661
44675
  var We = this.newlineIndex(Ae);
44662
44676
  if (!(We < 0 || We >= Ae + qe)) {
44663
- var Ge = this.newlineIndex(Ae, !0) + 1, Ke = We - Ge + 1, ft = this.isolate(Ge, Ke), Qe = ft.next;
44664
- ft.format(Pe, ze), Qe instanceof He && Qe.formatAt(0, Ae - Ge + qe - Ke, Pe, ze);
44677
+ var Ge = this.newlineIndex(Ae, !0) + 1, Ze = We - Ge + 1, ft = this.isolate(Ge, Ze), Qe = ft.next;
44678
+ ft.format(Pe, ze), Qe instanceof He && Qe.formatAt(0, Ae - Ge + qe - Ze, Pe, ze);
44665
44679
  }
44666
44680
  }
44667
44681
  }
@@ -44669,8 +44683,8 @@ function requireQuill() {
44669
44683
  key: "insertAt",
44670
44684
  value: function(Ae, qe, Pe) {
44671
44685
  if (Pe == null) {
44672
- var ze = this.descendant(_e.default, Ae), We = oe(ze, 2), Ge = We[0], Ke = We[1];
44673
- Ge.insertAt(Ke, qe);
44686
+ var ze = this.descendant(_e.default, Ae), We = oe(ze, 2), Ge = We[0], Ze = We[1];
44687
+ Ge.insertAt(Ze, qe);
44674
44688
  }
44675
44689
  }
44676
44690
  }, {
@@ -44734,10 +44748,10 @@ function requireQuill() {
44734
44748
  } : function(Qe) {
44735
44749
  return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
44736
44750
  }, ne = /* @__PURE__ */ (function() {
44737
- function Qe(Ze, Me) {
44751
+ function Qe(Ke, Me) {
44738
44752
  var Be = [], Ue = !0, Je = !1, Xe = void 0;
44739
44753
  try {
44740
- for (var Ve = Ze[Symbol.iterator](), Ye; !(Ue = (Ye = Ve.next()).done) && (Be.push(Ye.value), !(Me && Be.length === Me)); Ue = !0)
44754
+ for (var Ve = Ke[Symbol.iterator](), Ye; !(Ue = (Ye = Ve.next()).done) && (Be.push(Ye.value), !(Me && Be.length === Me)); Ue = !0)
44741
44755
  ;
44742
44756
  } catch (rt) {
44743
44757
  Je = !0, Xe = rt;
@@ -44750,37 +44764,37 @@ function requireQuill() {
44750
44764
  }
44751
44765
  return Be;
44752
44766
  }
44753
- return function(Ze, Me) {
44754
- if (Array.isArray(Ze))
44755
- return Ze;
44756
- if (Symbol.iterator in Object(Ze))
44757
- return Qe(Ze, Me);
44767
+ return function(Ke, Me) {
44768
+ if (Array.isArray(Ke))
44769
+ return Ke;
44770
+ if (Symbol.iterator in Object(Ke))
44771
+ return Qe(Ke, Me);
44758
44772
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
44759
44773
  };
44760
44774
  })(), de = /* @__PURE__ */ (function() {
44761
- function Qe(Ze, Me) {
44775
+ function Qe(Ke, Me) {
44762
44776
  for (var Be = 0; Be < Me.length; Be++) {
44763
44777
  var Ue = Me[Be];
44764
- Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Ze, Ue.key, Ue);
44778
+ Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Ke, Ue.key, Ue);
44765
44779
  }
44766
44780
  }
44767
- return function(Ze, Me, Be) {
44768
- return Me && Qe(Ze.prototype, Me), Be && Qe(Ze, Be), Ze;
44781
+ return function(Ke, Me, Be) {
44782
+ return Me && Qe(Ke.prototype, Me), Be && Qe(Ke, Be), Ke;
44769
44783
  };
44770
44784
  })(), ce = re(2), ue = qe(ce), he = re(20), pe = qe(he), fe = re(0), be = qe(fe), me = re(13), ge = qe(me), ve = re(24), _e = qe(ve), we = re(4), Se = qe(we), ye = re(16), Ce = qe(ye), Le = re(21), De = qe(Le), Fe = re(11), He = qe(Fe), Ie = re(3), Ae = qe(Ie);
44771
44785
  function qe(Qe) {
44772
44786
  return Qe && Qe.__esModule ? Qe : { default: Qe };
44773
44787
  }
44774
- function Pe(Qe, Ze, Me) {
44775
- return Ze in Qe ? Object.defineProperty(Qe, Ze, { value: Me, enumerable: !0, configurable: !0, writable: !0 }) : Qe[Ze] = Me, Qe;
44788
+ function Pe(Qe, Ke, Me) {
44789
+ return Ke in Qe ? Object.defineProperty(Qe, Ke, { value: Me, enumerable: !0, configurable: !0, writable: !0 }) : Qe[Ke] = Me, Qe;
44776
44790
  }
44777
- function ze(Qe, Ze) {
44778
- if (!(Qe instanceof Ze))
44791
+ function ze(Qe, Ke) {
44792
+ if (!(Qe instanceof Ke))
44779
44793
  throw new TypeError("Cannot call a class as a function");
44780
44794
  }
44781
44795
  var We = /^[ -~]*$/, Ge = (function() {
44782
- function Qe(Ze) {
44783
- ze(this, Qe), this.scroll = Ze, this.delta = this.getDelta();
44796
+ function Qe(Ke) {
44797
+ ze(this, Qe), this.scroll = Ke, this.delta = this.getDelta();
44784
44798
  }
44785
44799
  return de(Qe, [{
44786
44800
  key: "applyDelta",
@@ -44874,7 +44888,7 @@ function requireQuill() {
44874
44888
  for (var Ye = (0, we.bubbleFormats)(Ve.shift()); Object.keys(Ye).length > 0; ) {
44875
44889
  var rt = Ve.shift();
44876
44890
  if (rt == null) return Ye;
44877
- Ye = Ke((0, we.bubbleFormats)(rt), Ye);
44891
+ Ye = Ze((0, we.bubbleFormats)(rt), Ye);
44878
44892
  }
44879
44893
  return Ye;
44880
44894
  });
@@ -44936,24 +44950,24 @@ function requireQuill() {
44936
44950
  }
44937
44951
  }]), Qe;
44938
44952
  })();
44939
- function Ke(Qe, Ze) {
44940
- return Object.keys(Ze).reduce(function(Me, Be) {
44941
- return Qe[Be] == null || (Ze[Be] === Qe[Be] ? Me[Be] = Ze[Be] : Array.isArray(Ze[Be]) ? Ze[Be].indexOf(Qe[Be]) < 0 && (Me[Be] = Ze[Be].concat([Qe[Be]])) : Me[Be] = [Ze[Be], Qe[Be]]), Me;
44953
+ function Ze(Qe, Ke) {
44954
+ return Object.keys(Ke).reduce(function(Me, Be) {
44955
+ return Qe[Be] == null || (Ke[Be] === Qe[Be] ? Me[Be] = Ke[Be] : Array.isArray(Ke[Be]) ? Ke[Be].indexOf(Qe[Be]) < 0 && (Me[Be] = Ke[Be].concat([Qe[Be]])) : Me[Be] = [Ke[Be], Qe[Be]]), Me;
44942
44956
  }, {});
44943
44957
  }
44944
44958
  function ft(Qe) {
44945
- return Qe.reduce(function(Ze, Me) {
44959
+ return Qe.reduce(function(Ke, Me) {
44946
44960
  if (Me.insert === 1) {
44947
44961
  var Be = (0, De.default)(Me.attributes);
44948
- return delete Be.image, Ze.insert({ image: Me.attributes.image }, Be);
44962
+ return delete Be.image, Ke.insert({ image: Me.attributes.image }, Be);
44949
44963
  }
44950
44964
  if (Me.attributes != null && (Me.attributes.list === !0 || Me.attributes.bullet === !0) && (Me = (0, De.default)(Me), Me.attributes.list ? Me.attributes.list = "ordered" : (Me.attributes.list = "bullet", delete Me.attributes.bullet)), typeof Me.insert == "string") {
44951
44965
  var Ue = Me.insert.replace(/\r\n/g, `
44952
44966
  `).replace(/\r/g, `
44953
44967
  `);
44954
- return Ze.insert(Ue, Me.attributes);
44968
+ return Ke.insert(Ue, Me.attributes);
44955
44969
  }
44956
- return Ze.push(Me);
44970
+ return Ke.push(Me);
44957
44971
  }, new ue.default());
44958
44972
  }
44959
44973
  te.default = Ge;
@@ -44968,7 +44982,7 @@ function requireQuill() {
44968
44982
  function He(Ie, Ae) {
44969
44983
  var qe = [], Pe = !0, ze = !1, We = void 0;
44970
44984
  try {
44971
- for (var Ge = Ie[Symbol.iterator](), Ke; !(Pe = (Ke = Ge.next()).done) && (qe.push(Ke.value), !(Ae && qe.length === Ae)); Pe = !0)
44985
+ for (var Ge = Ie[Symbol.iterator](), Ze; !(Pe = (Ze = Ge.next()).done) && (qe.push(Ze.value), !(Ae && qe.length === Ae)); Pe = !0)
44972
44986
  ;
44973
44987
  } catch (ft) {
44974
44988
  ze = !0, We = ft;
@@ -45036,8 +45050,8 @@ function requireQuill() {
45036
45050
  }
45037
45051
  }), this.emitter.on(me.default.events.SCROLL_OPTIMIZE, function(Pe, ze) {
45038
45052
  if (ze.range) {
45039
- var We = ze.range, Ge = We.startNode, Ke = We.startOffset, ft = We.endNode, Qe = We.endOffset;
45040
- qe.setNativeRange(Ge, Ke, ft, Qe);
45053
+ var We = ze.range, Ge = We.startNode, Ze = We.startOffset, ft = We.endNode, Qe = We.endOffset;
45054
+ qe.setNativeRange(Ge, Ze, ft, Qe);
45041
45055
  }
45042
45056
  }), this.update(me.default.sources.SILENT);
45043
45057
  }
@@ -45098,20 +45112,20 @@ function requireQuill() {
45098
45112
  value: function(Ae) {
45099
45113
  var qe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Pe = this.scroll.length();
45100
45114
  Ae = Math.min(Ae, Pe - 1), qe = Math.min(Ae + qe, Pe - 1) - Ae;
45101
- var ze = void 0, We = this.scroll.leaf(Ae), Ge = oe(We, 2), Ke = Ge[0], ft = Ge[1];
45102
- if (Ke == null) return null;
45103
- var Qe = Ke.position(ft, !0), Ze = oe(Qe, 2);
45104
- ze = Ze[0], ft = Ze[1];
45115
+ var ze = void 0, We = this.scroll.leaf(Ae), Ge = oe(We, 2), Ze = Ge[0], ft = Ge[1];
45116
+ if (Ze == null) return null;
45117
+ var Qe = Ze.position(ft, !0), Ke = oe(Qe, 2);
45118
+ ze = Ke[0], ft = Ke[1];
45105
45119
  var Me = document.createRange();
45106
45120
  if (qe > 0) {
45107
45121
  Me.setStart(ze, ft);
45108
45122
  var Be = this.scroll.leaf(Ae + qe), Ue = oe(Be, 2);
45109
- if (Ke = Ue[0], ft = Ue[1], Ke == null) return null;
45110
- var Je = Ke.position(ft, !0), Xe = oe(Je, 2);
45123
+ if (Ze = Ue[0], ft = Ue[1], Ze == null) return null;
45124
+ var Je = Ze.position(ft, !0), Xe = oe(Je, 2);
45111
45125
  return ze = Xe[0], ft = Xe[1], Me.setEnd(ze, ft), Me.getBoundingClientRect();
45112
45126
  } else {
45113
45127
  var Ve = "left", Ye = void 0;
45114
- return ze instanceof Text ? (ft < ze.data.length ? (Me.setStart(ze, ft), Me.setEnd(ze, ft + 1)) : (Me.setStart(ze, ft - 1), Me.setEnd(ze, ft), Ve = "right"), Ye = Me.getBoundingClientRect()) : (Ye = Ke.domNode.getBoundingClientRect(), ft > 0 && (Ve = "right")), {
45128
+ return ze instanceof Text ? (ft < ze.data.length ? (Me.setStart(ze, ft), Me.setEnd(ze, ft + 1)) : (Me.setStart(ze, ft - 1), Me.setEnd(ze, ft), Ve = "right"), Ye = Me.getBoundingClientRect()) : (Ye = Ze.domNode.getBoundingClientRect(), ft > 0 && (Ve = "right")), {
45115
45129
  bottom: Ye.top + Ye.height,
45116
45130
  height: Ye.height,
45117
45131
  left: Ye[Ve],
@@ -45147,9 +45161,9 @@ function requireQuill() {
45147
45161
  value: function(Ae) {
45148
45162
  var qe = this, Pe = [[Ae.start.node, Ae.start.offset]];
45149
45163
  Ae.native.collapsed || Pe.push([Ae.end.node, Ae.end.offset]);
45150
- var ze = Pe.map(function(Ke) {
45151
- var ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1], Me = ce.default.find(Qe, !0), Be = Me.offset(qe.scroll);
45152
- return Ze === 0 ? Be : Me instanceof ce.default.Container ? Be + Me.length() : Be + Me.index(Qe, Ze);
45164
+ var ze = Pe.map(function(Ze) {
45165
+ var ft = oe(Ze, 2), Qe = ft[0], Ke = ft[1], Me = ce.default.find(Qe, !0), Be = Me.offset(qe.scroll);
45166
+ return Ke === 0 ? Be : Me instanceof ce.default.Container ? Be + Me.length() : Be + Me.index(Qe, Ke);
45153
45167
  }), We = Math.min(Math.max.apply(Math, Se(ze)), this.scroll.length() - 1), Ge = Math.min.apply(Math, [We].concat(Se(ze)));
45154
45168
  return new Le(Ge, We - Ge);
45155
45169
  }
@@ -45178,9 +45192,9 @@ function requireQuill() {
45178
45192
  key: "rangeToNative",
45179
45193
  value: function(Ae) {
45180
45194
  var qe = this, Pe = Ae.collapsed ? [Ae.index] : [Ae.index, Ae.index + Ae.length], ze = [], We = this.scroll.length();
45181
- return Pe.forEach(function(Ge, Ke) {
45195
+ return Pe.forEach(function(Ge, Ze) {
45182
45196
  Ge = Math.min(We - 1, Ge);
45183
- var ft = void 0, Qe = qe.scroll.leaf(Ge), Ze = oe(Qe, 2), Me = Ze[0], Be = Ze[1], Ue = Me.position(Be, Ke !== 0), Je = oe(Ue, 2);
45197
+ var ft = void 0, Qe = qe.scroll.leaf(Ge), Ke = oe(Qe, 2), Me = Ke[0], Be = Ke[1], Ue = Me.position(Be, Ze !== 0), Je = oe(Ue, 2);
45184
45198
  ft = Je[0], Be = Je[1], ze.push(ft, Be);
45185
45199
  }), ze.length < 2 && (ze = ze.concat(ze)), ze;
45186
45200
  }
@@ -45191,12 +45205,12 @@ function requireQuill() {
45191
45205
  if (qe != null) {
45192
45206
  var Pe = this.getBounds(qe.index, qe.length);
45193
45207
  if (Pe != null) {
45194
- var ze = this.scroll.length() - 1, We = this.scroll.line(Math.min(qe.index, ze)), Ge = oe(We, 1), Ke = Ge[0], ft = Ke;
45208
+ var ze = this.scroll.length() - 1, We = this.scroll.line(Math.min(qe.index, ze)), Ge = oe(We, 1), Ze = Ge[0], ft = Ze;
45195
45209
  if (qe.length > 0) {
45196
- var Qe = this.scroll.line(Math.min(qe.index + qe.length, ze)), Ze = oe(Qe, 1);
45197
- ft = Ze[0];
45210
+ var Qe = this.scroll.line(Math.min(qe.index + qe.length, ze)), Ke = oe(Qe, 1);
45211
+ ft = Ke[0];
45198
45212
  }
45199
- if (!(Ke == null || ft == null)) {
45213
+ if (!(Ze == null || ft == null)) {
45200
45214
  var Me = Ae.getBoundingClientRect();
45201
45215
  Pe.top < Me.top ? Ae.scrollTop -= Me.top - Pe.top : Pe.bottom > Me.bottom && (Ae.scrollTop += Pe.bottom - Me.bottom);
45202
45216
  }
@@ -45212,8 +45226,8 @@ function requireQuill() {
45212
45226
  if (Ge != null)
45213
45227
  if (Ae != null) {
45214
45228
  this.hasFocus() || this.root.focus();
45215
- var Ke = (this.getNativeRange() || {}).native;
45216
- if (Ke == null || We || Ae !== Ke.startContainer || qe !== Ke.startOffset || Pe !== Ke.endContainer || ze !== Ke.endOffset) {
45229
+ var Ze = (this.getNativeRange() || {}).native;
45230
+ if (Ze == null || We || Ae !== Ze.startContainer || qe !== Ze.startOffset || Pe !== Ze.endContainer || ze !== Ze.endOffset) {
45217
45231
  Ae.tagName == "BR" && (qe = [].indexOf.call(Ae.parentNode.childNodes, Ae), Ae = Ae.parentNode), Pe.tagName == "BR" && (ze = [].indexOf.call(Pe.parentNode.childNodes, Pe), Pe = Pe.parentNode);
45218
45232
  var ft = document.createRange();
45219
45233
  ft.setStart(Ae, qe), ft.setEnd(Pe, ze), Ge.removeAllRanges(), Ge.addRange(ft);
@@ -45238,10 +45252,10 @@ function requireQuill() {
45238
45252
  value: function() {
45239
45253
  var Ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.default.sources.USER, qe = this.lastRange, Pe = this.getRange(), ze = oe(Pe, 2), We = ze[0], Ge = ze[1];
45240
45254
  if (this.lastRange = We, this.lastRange != null && (this.savedRange = this.lastRange), !(0, fe.default)(qe, this.lastRange)) {
45241
- var Ke;
45255
+ var Ze;
45242
45256
  !this.composing && Ge != null && Ge.native.collapsed && Ge.start.node !== this.cursor.textNode && this.cursor.restore();
45243
45257
  var ft = [me.default.events.SELECTION_CHANGE, (0, he.default)(this.lastRange), (0, he.default)(qe), Ae];
45244
- if ((Ke = this.emitter).emit.apply(Ke, [me.default.events.EDITOR_CHANGE].concat(ft)), Ae !== me.default.sources.SILENT) {
45258
+ if ((Ze = this.emitter).emit.apply(Ze, [me.default.events.EDITOR_CHANGE].concat(ft)), Ae !== me.default.sources.SILENT) {
45245
45259
  var Qe;
45246
45260
  (Qe = this.emitter).emit.apply(Qe, ft);
45247
45261
  }
@@ -45696,9 +45710,9 @@ function requireQuill() {
45696
45710
  else if (oe(Fe, de))
45697
45711
  Ie = new de();
45698
45712
  else if (oe(Fe, ce))
45699
- Ie = new ce(function(Ze, Me) {
45713
+ Ie = new ce(function(Ke, Me) {
45700
45714
  Fe.then(function(Be) {
45701
- Ze(De(Be, He - 1));
45715
+ Ke(De(Be, He - 1));
45702
45716
  }, function(Be) {
45703
45717
  Me(De(Be, He - 1));
45704
45718
  });
@@ -45720,11 +45734,11 @@ function requireQuill() {
45720
45734
  return Ce[qe];
45721
45735
  ye.push(Fe), Ce.push(Ie);
45722
45736
  }
45723
- oe(Fe, ne) && Fe.forEach(function(Ze, Me) {
45724
- var Be = De(Me, He - 1), Ue = De(Ze, He - 1);
45737
+ oe(Fe, ne) && Fe.forEach(function(Ke, Me) {
45738
+ var Be = De(Me, He - 1), Ue = De(Ke, He - 1);
45725
45739
  Ie.set(Be, Ue);
45726
- }), oe(Fe, de) && Fe.forEach(function(Ze) {
45727
- var Me = De(Ze, He - 1);
45740
+ }), oe(Fe, de) && Fe.forEach(function(Ke) {
45741
+ var Me = De(Ke, He - 1);
45728
45742
  Ie.add(Me);
45729
45743
  });
45730
45744
  for (var Pe in Fe) {
@@ -45733,15 +45747,15 @@ function requireQuill() {
45733
45747
  }
45734
45748
  if (Object.getOwnPropertySymbols)
45735
45749
  for (var We = Object.getOwnPropertySymbols(Fe), Pe = 0; Pe < We.length; Pe++) {
45736
- var Ge = We[Pe], Ke = Object.getOwnPropertyDescriptor(Fe, Ge);
45737
- Ke && !Ke.enumerable && !Se || (Ie[Ge] = De(Fe[Ge], He - 1), Ke.enumerable || Object.defineProperty(Ie, Ge, {
45750
+ var Ge = We[Pe], Ze = Object.getOwnPropertyDescriptor(Fe, Ge);
45751
+ Ze && !Ze.enumerable && !Se || (Ie[Ge] = De(Fe[Ge], He - 1), Ze.enumerable || Object.defineProperty(Ie, Ge, {
45738
45752
  enumerable: !1
45739
45753
  }));
45740
45754
  }
45741
45755
  if (Se)
45742
45756
  for (var ft = Object.getOwnPropertyNames(Fe), Pe = 0; Pe < ft.length; Pe++) {
45743
- var Qe = ft[Pe], Ke = Object.getOwnPropertyDescriptor(Fe, Qe);
45744
- Ke && Ke.enumerable || (Ie[Qe] = De(Fe[Qe], He - 1), Object.defineProperty(Ie, Qe, {
45757
+ var Qe = ft[Pe], Ze = Object.getOwnPropertyDescriptor(Fe, Qe);
45758
+ Ze && Ze.enumerable || (Ie[Qe] = De(Fe[Qe], He - 1), Object.defineProperty(Ie, Qe, {
45745
45759
  enumerable: !1
45746
45760
  }));
45747
45761
  }
@@ -45790,13 +45804,13 @@ function requireQuill() {
45790
45804
  function Ie(Ae, qe) {
45791
45805
  var Pe = [], ze = !0, We = !1, Ge = void 0;
45792
45806
  try {
45793
- for (var Ke = Ae[Symbol.iterator](), ft; !(ze = (ft = Ke.next()).done) && (Pe.push(ft.value), !(qe && Pe.length === qe)); ze = !0)
45807
+ for (var Ze = Ae[Symbol.iterator](), ft; !(ze = (ft = Ze.next()).done) && (Pe.push(ft.value), !(qe && Pe.length === qe)); ze = !0)
45794
45808
  ;
45795
45809
  } catch (Qe) {
45796
45810
  We = !0, Ge = Qe;
45797
45811
  } finally {
45798
45812
  try {
45799
- !ze && Ke.return && Ke.return();
45813
+ !ze && Ze.return && Ze.return();
45800
45814
  } finally {
45801
45815
  if (We) throw Ge;
45802
45816
  }
@@ -45876,15 +45890,15 @@ function requireQuill() {
45876
45890
  }, {
45877
45891
  key: "deleteAt",
45878
45892
  value: function(Pe, ze) {
45879
- var We = this.line(Pe), Ge = oe(We, 2), Ke = Ge[0], ft = Ge[1], Qe = this.line(Pe + ze), Ze = oe(Qe, 1), Me = Ze[0];
45880
- if (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "deleteAt", this).call(this, Pe, ze), Me != null && Ke !== Me && ft > 0) {
45881
- if (Ke instanceof fe.BlockEmbed || Me instanceof fe.BlockEmbed) {
45893
+ var We = this.line(Pe), Ge = oe(We, 2), Ze = Ge[0], ft = Ge[1], Qe = this.line(Pe + ze), Ke = oe(Qe, 1), Me = Ke[0];
45894
+ if (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "deleteAt", this).call(this, Pe, ze), Me != null && Ze !== Me && ft > 0) {
45895
+ if (Ze instanceof fe.BlockEmbed || Me instanceof fe.BlockEmbed) {
45882
45896
  this.optimize();
45883
45897
  return;
45884
45898
  }
45885
- if (Ke instanceof _e.default) {
45886
- var Be = Ke.newlineIndex(Ke.length(), !0);
45887
- if (Be > -1 && (Ke = Ke.split(Be + 1), Ke === Me)) {
45899
+ if (Ze instanceof _e.default) {
45900
+ var Be = Ze.newlineIndex(Ze.length(), !0);
45901
+ if (Be > -1 && (Ze = Ze.split(Be + 1), Ze === Me)) {
45888
45902
  this.optimize();
45889
45903
  return;
45890
45904
  }
@@ -45893,7 +45907,7 @@ function requireQuill() {
45893
45907
  Ue > -1 && Me.split(Ue + 1);
45894
45908
  }
45895
45909
  var Je = Me.children.head instanceof ge.default ? null : Me.children.head;
45896
- Ke.moveChildren(Me, Je), Ke.remove();
45910
+ Ze.moveChildren(Me, Je), Ze.remove();
45897
45911
  }
45898
45912
  this.optimize();
45899
45913
  }
@@ -45918,8 +45932,8 @@ function requireQuill() {
45918
45932
  this.appendChild(Ge), We == null && ze.endsWith(`
45919
45933
  `) && (ze = ze.slice(0, -1)), Ge.insertAt(0, ze, We);
45920
45934
  } else {
45921
- var Ke = ue.default.create(ze, We);
45922
- this.appendChild(Ke);
45935
+ var Ze = ue.default.create(ze, We);
45936
+ this.appendChild(Ze);
45923
45937
  }
45924
45938
  else
45925
45939
  de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertAt", this).call(this, Pe, ze, We);
@@ -45948,11 +45962,11 @@ function requireQuill() {
45948
45962
  }, {
45949
45963
  key: "lines",
45950
45964
  value: function() {
45951
- var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ke, ft, Qe) {
45952
- var Ze = [], Me = Qe;
45953
- return Ke.children.forEachAt(ft, Qe, function(Be, Ue, Je) {
45954
- Fe(Be) ? Ze.push(Be) : Be instanceof ue.default.Container && (Ze = Ze.concat(Ge(Be, Ue, Me))), Me -= Je;
45955
- }), Ze;
45965
+ var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ze, ft, Qe) {
45966
+ var Ke = [], Me = Qe;
45967
+ return Ze.children.forEachAt(ft, Qe, function(Be, Ue, Je) {
45968
+ Fe(Be) ? Ke.push(Be) : Be instanceof ue.default.Container && (Ke = Ke.concat(Ge(Be, Ue, Me))), Me -= Je;
45969
+ }), Ke;
45956
45970
  };
45957
45971
  return We(this, Pe, ze);
45958
45972
  }
@@ -46044,7 +46058,7 @@ function requireQuill() {
46044
46058
  throw new TypeError("Super expression must either be null or a function, not " + typeof Ye);
46045
46059
  Ve.prototype = Object.create(Ye && Ye.prototype, { constructor: { value: Ve, enumerable: !1, writable: !0, configurable: !0 } }), Ye && (Object.setPrototypeOf ? Object.setPrototypeOf(Ve, Ye) : Ve.__proto__ = Ye);
46046
46060
  }
46047
- var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ke = (function(Ve) {
46061
+ var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ze = (function(Ve) {
46048
46062
  ze(Ye, Ve), de(Ye, null, [{
46049
46063
  key: "match",
46050
46064
  value: function(ot, _t) {
@@ -46059,7 +46073,7 @@ function requireQuill() {
46059
46073
  return _t.bindings = {}, Object.keys(_t.options.bindings).forEach(function(kt) {
46060
46074
  kt === "list autofill" && rt.scroll.whitelist != null && !rt.scroll.whitelist.list || _t.options.bindings[kt] && _t.addBinding(_t.options.bindings[kt]);
46061
46075
  }), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Be), _t.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
46062
- }), /Firefox/i.test(navigator.userAgent) ? (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0 }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0 }, Ze)) : (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, Ze)), _t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !1 }, Me), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !1 }, Me), _t.addBinding({ key: Ye.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, Qe), _t.listen(), _t;
46076
+ }), /Firefox/i.test(navigator.userAgent) ? (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0 }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0 }, Ke)) : (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, Ke)), _t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !1 }, Me), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !1 }, Me), _t.addBinding({ key: Ye.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, Qe), _t.listen(), _t;
46063
46077
  }
46064
46078
  return de(Ye, [{
46065
46079
  key: "addBinding",
@@ -46081,7 +46095,7 @@ function requireQuill() {
46081
46095
  if (It.length !== 0) {
46082
46096
  var qt = ot.quill.getSelection();
46083
46097
  if (!(qt == null || !ot.quill.hasFocus())) {
46084
- var Nt = ot.quill.getLine(qt.index), Vt = ne(Nt, 2), rs = Vt[0], Yt = Vt[1], gt = ot.quill.getLeaf(qt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], $t = qt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(qt.index + qt.length), Mt = ne($t, 2), Ft = Mt[0], zt = Mt[1], cs = xt instanceof Se.default.Text ? xt.value().slice(0, Ct) : "", ds = Ft instanceof Se.default.Text ? Ft.value().slice(zt) : "", Kt = {
46098
+ var Nt = ot.quill.getLine(qt.index), Vt = ne(Nt, 2), rs = Vt[0], Yt = Vt[1], gt = ot.quill.getLeaf(qt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], $t = qt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(qt.index + qt.length), Mt = ne($t, 2), Ft = Mt[0], zt = Mt[1], cs = xt instanceof Se.default.Text ? xt.value().slice(0, Ct) : "", ds = Ft instanceof Se.default.Text ? Ft.value().slice(zt) : "", Zt = {
46085
46099
  collapsed: qt.length === 0,
46086
46100
  empty: qt.length === 0 && rs.length() <= 1,
46087
46101
  format: ot.quill.getFormat(qt),
@@ -46089,17 +46103,17 @@ function requireQuill() {
46089
46103
  prefix: cs,
46090
46104
  suffix: ds
46091
46105
  }, ks = It.some(function(ts) {
46092
- if (ts.collapsed != null && ts.collapsed !== Kt.collapsed || ts.empty != null && ts.empty !== Kt.empty || ts.offset != null && ts.offset !== Kt.offset) return !1;
46106
+ if (ts.collapsed != null && ts.collapsed !== Zt.collapsed || ts.empty != null && ts.empty !== Zt.empty || ts.offset != null && ts.offset !== Zt.offset) return !1;
46093
46107
  if (Array.isArray(ts.format)) {
46094
46108
  if (ts.format.every(function(hs) {
46095
- return Kt.format[hs] == null;
46109
+ return Zt.format[hs] == null;
46096
46110
  }))
46097
46111
  return !1;
46098
46112
  } else if (oe(ts.format) === "object" && !Object.keys(ts.format).every(function(hs) {
46099
- return ts.format[hs] === !0 ? Kt.format[hs] != null : ts.format[hs] === !1 ? Kt.format[hs] == null : (0, pe.default)(ts.format[hs], Kt.format[hs]);
46113
+ return ts.format[hs] === !0 ? Zt.format[hs] != null : ts.format[hs] === !1 ? Zt.format[hs] == null : (0, pe.default)(ts.format[hs], Zt.format[hs]);
46100
46114
  }))
46101
46115
  return !1;
46102
- return ts.prefix != null && !ts.prefix.test(Kt.prefix) || ts.suffix != null && !ts.suffix.test(Kt.suffix) ? !1 : ts.handler.call(ot, qt, Kt) !== !0;
46116
+ return ts.prefix != null && !ts.prefix.test(Zt.prefix) || ts.suffix != null && !ts.suffix.test(Zt.suffix) ? !1 : ts.handler.call(ot, qt, Zt) !== !0;
46103
46117
  });
46104
46118
  ks && _t.preventDefault();
46105
46119
  }
@@ -46109,7 +46123,7 @@ function requireQuill() {
46109
46123
  }
46110
46124
  }]), Ye;
46111
46125
  })(He.default);
46112
- Ke.keys = {
46126
+ Ze.keys = {
46113
46127
  BACKSPACE: 8,
46114
46128
  TAB: 9,
46115
46129
  ENTER: 13,
@@ -46119,14 +46133,14 @@ function requireQuill() {
46119
46133
  RIGHT: 39,
46120
46134
  DOWN: 40,
46121
46135
  DELETE: 46
46122
- }, Ke.DEFAULTS = {
46136
+ }, Ze.DEFAULTS = {
46123
46137
  bindings: {
46124
46138
  bold: Je("bold"),
46125
46139
  italic: Je("italic"),
46126
46140
  underline: Je("underline"),
46127
46141
  indent: {
46128
46142
  // highlight tab or tab at beginning of list, indent or blockquote
46129
- key: Ke.keys.TAB,
46143
+ key: Ze.keys.TAB,
46130
46144
  format: ["blockquote", "indent", "list"],
46131
46145
  handler: function(Ye, rt) {
46132
46146
  if (rt.collapsed && rt.offset !== 0) return !0;
@@ -46134,7 +46148,7 @@ function requireQuill() {
46134
46148
  }
46135
46149
  },
46136
46150
  outdent: {
46137
- key: Ke.keys.TAB,
46151
+ key: Ze.keys.TAB,
46138
46152
  shiftKey: !0,
46139
46153
  format: ["blockquote", "indent", "list"],
46140
46154
  // highlight tab or tab at beginning of list, indent or blockquote
@@ -46144,7 +46158,7 @@ function requireQuill() {
46144
46158
  }
46145
46159
  },
46146
46160
  "outdent backspace": {
46147
- key: Ke.keys.BACKSPACE,
46161
+ key: Ze.keys.BACKSPACE,
46148
46162
  collapsed: !0,
46149
46163
  shiftKey: null,
46150
46164
  metaKey: null,
@@ -46159,7 +46173,7 @@ function requireQuill() {
46159
46173
  "indent code-block": Ue(!0),
46160
46174
  "outdent code-block": Ue(!1),
46161
46175
  "remove tab": {
46162
- key: Ke.keys.TAB,
46176
+ key: Ze.keys.TAB,
46163
46177
  shiftKey: !0,
46164
46178
  collapsed: !0,
46165
46179
  prefix: /\t$/,
@@ -46168,7 +46182,7 @@ function requireQuill() {
46168
46182
  }
46169
46183
  },
46170
46184
  tab: {
46171
- key: Ke.keys.TAB,
46185
+ key: Ze.keys.TAB,
46172
46186
  handler: function(Ye) {
46173
46187
  this.quill.history.cutoff();
46174
46188
  var rt = new ge.default().retain(Ye.index).delete(Ye.length).insert(" ");
@@ -46176,7 +46190,7 @@ function requireQuill() {
46176
46190
  }
46177
46191
  },
46178
46192
  "list empty enter": {
46179
- key: Ke.keys.ENTER,
46193
+ key: Ze.keys.ENTER,
46180
46194
  collapsed: !0,
46181
46195
  format: ["list"],
46182
46196
  empty: !0,
@@ -46185,7 +46199,7 @@ function requireQuill() {
46185
46199
  }
46186
46200
  },
46187
46201
  "checklist enter": {
46188
- key: Ke.keys.ENTER,
46202
+ key: Ze.keys.ENTER,
46189
46203
  collapsed: !0,
46190
46204
  format: { list: "checked" },
46191
46205
  handler: function(Ye) {
@@ -46195,7 +46209,7 @@ function requireQuill() {
46195
46209
  }
46196
46210
  },
46197
46211
  "header enter": {
46198
- key: Ke.keys.ENTER,
46212
+ key: Ze.keys.ENTER,
46199
46213
  collapsed: !0,
46200
46214
  format: ["header"],
46201
46215
  suffix: /^$/,
@@ -46235,7 +46249,7 @@ function requireQuill() {
46235
46249
  }
46236
46250
  },
46237
46251
  "code exit": {
46238
- key: Ke.keys.ENTER,
46252
+ key: Ze.keys.ENTER,
46239
46253
  collapsed: !0,
46240
46254
  format: ["code-block"],
46241
46255
  prefix: /\n\n$/,
@@ -46245,23 +46259,23 @@ function requireQuill() {
46245
46259
  this.quill.updateContents(It, Ce.default.sources.USER);
46246
46260
  }
46247
46261
  },
46248
- "embed left": ft(Ke.keys.LEFT, !1),
46249
- "embed left shift": ft(Ke.keys.LEFT, !0),
46250
- "embed right": ft(Ke.keys.RIGHT, !1),
46251
- "embed right shift": ft(Ke.keys.RIGHT, !0)
46262
+ "embed left": ft(Ze.keys.LEFT, !1),
46263
+ "embed left shift": ft(Ze.keys.LEFT, !0),
46264
+ "embed right": ft(Ze.keys.RIGHT, !1),
46265
+ "embed right shift": ft(Ze.keys.RIGHT, !0)
46252
46266
  }
46253
46267
  };
46254
46268
  function ft(Ve, Ye) {
46255
- var rt, ot = Ve === Ke.keys.LEFT ? "prefix" : "suffix";
46269
+ var rt, ot = Ve === Ze.keys.LEFT ? "prefix" : "suffix";
46256
46270
  return rt = {
46257
46271
  key: Ve,
46258
46272
  shiftKey: Ye,
46259
46273
  altKey: null
46260
46274
  }, Ae(rt, ot, /^$/), Ae(rt, "handler", function(kt) {
46261
46275
  var It = kt.index;
46262
- Ve === Ke.keys.RIGHT && (It += kt.length + 1);
46276
+ Ve === Ze.keys.RIGHT && (It += kt.length + 1);
46263
46277
  var qt = this.quill.getLeaf(It), Nt = ne(qt, 1), Vt = Nt[0];
46264
- return Vt instanceof Se.default.Embed ? (Ve === Ke.keys.LEFT ? Ye ? this.quill.setSelection(kt.index - 1, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index - 1, Ce.default.sources.USER) : Ye ? this.quill.setSelection(kt.index, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index + kt.length + 1, Ce.default.sources.USER), !1) : !0;
46278
+ return Vt instanceof Se.default.Embed ? (Ve === Ze.keys.LEFT ? Ye ? this.quill.setSelection(kt.index - 1, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index - 1, Ce.default.sources.USER) : Ye ? this.quill.setSelection(kt.index, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index + kt.length + 1, Ce.default.sources.USER), !1) : !0;
46265
46279
  }), rt;
46266
46280
  }
46267
46281
  function Qe(Ve, Ye) {
@@ -46278,7 +46292,7 @@ function requireQuill() {
46278
46292
  this.quill.deleteText(Ve.index - Yt, Yt, Ce.default.sources.USER), Object.keys(kt).length > 0 && this.quill.formatLine(Ve.index - Yt, Yt, kt, Ce.default.sources.USER), this.quill.focus();
46279
46293
  }
46280
46294
  }
46281
- function Ze(Ve, Ye) {
46295
+ function Ke(Ve, Ye) {
46282
46296
  var rt = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ye.suffix) ? 2 : 1;
46283
46297
  if (!(Ve.index >= this.quill.getLength() - rt)) {
46284
46298
  var ot = {}, _t = 0, kt = this.quill.getLine(Ve.index), It = ne(kt, 1), qt = It[0];
@@ -46313,7 +46327,7 @@ function requireQuill() {
46313
46327
  }
46314
46328
  function Ue(Ve) {
46315
46329
  return {
46316
- key: Ke.keys.TAB,
46330
+ key: Ze.keys.TAB,
46317
46331
  shiftKey: !Ve,
46318
46332
  format: { "code-block": !0 },
46319
46333
  handler: function(rt) {
@@ -46341,15 +46355,15 @@ function requireQuill() {
46341
46355
  if (typeof Ve == "string" || typeof Ve == "number")
46342
46356
  return Xe({ key: Ve });
46343
46357
  if ((typeof Ve > "u" ? "undefined" : oe(Ve)) === "object" && (Ve = (0, ue.default)(Ve, !1)), typeof Ve.key == "string")
46344
- if (Ke.keys[Ve.key.toUpperCase()] != null)
46345
- Ve.key = Ke.keys[Ve.key.toUpperCase()];
46358
+ if (Ze.keys[Ve.key.toUpperCase()] != null)
46359
+ Ve.key = Ze.keys[Ve.key.toUpperCase()];
46346
46360
  else if (Ve.key.length === 1)
46347
46361
  Ve.key = Ve.key.toUpperCase().charCodeAt(0);
46348
46362
  else
46349
46363
  return null;
46350
46364
  return Ve.shortKey && (Ve[Ge] = Ve.shortKey, delete Ve.shortKey), Ve;
46351
46365
  }
46352
- te.default = Ke, te.SHORTKEY = Ge;
46366
+ te.default = Ze, te.SHORTKEY = Ge;
46353
46367
  }),
46354
46368
  /* 24 */
46355
46369
  /***/
@@ -47198,18 +47212,18 @@ function requireQuill() {
47198
47212
  };
47199
47213
  if (!(qe.type === "Caret" || qe.type === "Range"))
47200
47214
  throw new TypeError("unexpected type: " + qe.type);
47201
- var Ge = be(qe, Ie, !0), Ke = void 0, ft = void 0;
47202
- if (qe.type === "Range" && (Ke = be(qe, Ie, !1), ft = we(qe, Ge, Ke)), qe.type === "Caret") {
47215
+ var Ge = be(qe, Ie, !0), Ze = void 0, ft = void 0;
47216
+ if (qe.type === "Range" && (Ze = be(qe, Ie, !1), ft = we(qe, Ge, Ze)), qe.type === "Caret") {
47203
47217
  qe.extend(Ge, 0);
47204
47218
  var Qe = We();
47205
47219
  return qe.collapseToEnd(), Ae.setStart(Ge, Qe), Ae.setEnd(Ge, Qe), { range: Ae, mode: "caret" };
47206
47220
  } else if (ft === void 0) {
47207
47221
  if (qe.type !== "Range")
47208
47222
  throw new TypeError("unexpected type: " + qe.type);
47209
- return Ae.setStart(Ge, 0), Ae.setEnd(Ke, Ke.length), { range: Ae, mode: "all" };
47223
+ return Ae.setStart(Ge, 0), Ae.setEnd(Ze, Ze.length), { range: Ae, mode: "all" };
47210
47224
  }
47211
- var Ze = We(), Me = void 0, Be = void 0, Ue = Ke.length - Ce(Ke);
47212
- return ft ? (qe.extend(Ge, 0), Me = We() + ye(Ge), qe.extend(Ke, Ue), Be = Ue - (We() - Ze), qe.extend(Ke, Be)) : (qe.extend(Ke, Ue), Be = Ue - We(), qe.extend(Ge, 0), Me = We() - Ze + ye(Ge), qe.extend(Ge, Me)), Ae.setStart(Ge, Me), Ae.setEnd(Ke, Be), {
47225
+ var Ke = We(), Me = void 0, Be = void 0, Ue = Ze.length - Ce(Ze);
47226
+ return ft ? (qe.extend(Ge, 0), Me = We() + ye(Ge), qe.extend(Ze, Ue), Be = Ue - (We() - Ke), qe.extend(Ze, Be)) : (qe.extend(Ze, Ue), Be = Ue - We(), qe.extend(Ge, 0), Me = We() - Ke + ye(Ge), qe.extend(Ge, Me)), Ae.setStart(Ge, Me), Ae.setEnd(Ze, Be), {
47213
47227
  mode: ft ? "right" : "left",
47214
47228
  range: Ae
47215
47229
  };
@@ -47713,7 +47727,7 @@ function requireQuill() {
47713
47727
  throw new TypeError("Super expression must either be null or a function, not " + typeof Ue);
47714
47728
  Be.prototype = Object.create(Ue && Ue.prototype, { constructor: { value: Be, enumerable: !1, writable: !0, configurable: !0 } }), Ue && (Object.setPrototypeOf ? Object.setPrototypeOf(Be, Ue) : Be.__proto__ = Ue);
47715
47729
  }
47716
- var Pe = [!1, "center", "right", "justify"], ze = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], We = [!1, "serif", "monospace"], Ge = ["1", "2", "3", !1], Ke = ["petita", !1, "gran", "enorme"], ft = (function(Be) {
47730
+ var Pe = [!1, "center", "right", "justify"], ze = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], We = [!1, "serif", "monospace"], Ge = ["1", "2", "3", !1], Ze = ["petita", !1, "gran", "enorme"], ft = (function(Be) {
47717
47731
  qe(Ue, Be);
47718
47732
  function Ue(Je, Xe) {
47719
47733
  Ie(this, Ue);
@@ -47761,7 +47775,7 @@ function requireQuill() {
47761
47775
  var _t = ot.classList.contains("ql-background") ? "background" : "color";
47762
47776
  return ot.querySelector("option") == null && Me(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Ve[_t]);
47763
47777
  } else
47764
- return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Me(ot, We) : ot.classList.contains("ql-header") ? Me(ot, Ge) : ot.classList.contains("ql-size") && Me(ot, Ke)), new Le.default(ot);
47778
+ return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Me(ot, We) : ot.classList.contains("ql-header") ? Me(ot, Ge) : ot.classList.contains("ql-size") && Me(ot, Ze)), new Le.default(ot);
47765
47779
  });
47766
47780
  var rt = function() {
47767
47781
  Ye.pickers.forEach(function(_t) {
@@ -47841,7 +47855,7 @@ function requireQuill() {
47841
47855
  break;
47842
47856
  }
47843
47857
  case "video":
47844
- Xe = Ze(Xe);
47858
+ Xe = Ke(Xe);
47845
47859
  // eslint-disable-next-line no-fallthrough
47846
47860
  case "formula": {
47847
47861
  if (!Xe) break;
@@ -47857,7 +47871,7 @@ function requireQuill() {
47857
47871
  }
47858
47872
  }]), Ue;
47859
47873
  })(Fe.default);
47860
- function Ze(Be) {
47874
+ function Ke(Be) {
47861
47875
  var Ue = Be.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || Be.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
47862
47876
  return Ue ? (Ue[1] || "https") + "://www.youtube.com/embed/" + Ue[2] + "?showinfo=0" : (Ue = Be.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Ue[1] || "https") + "://player.vimeo.com/video/" + Ue[2] + "/" : Be;
47863
47877
  }
@@ -48290,8 +48304,8 @@ function requireQuill() {
48290
48304
  return [[re, ye], [oe, Ce]];
48291
48305
  var Ie = be(ye, Ce);
48292
48306
  if (Ie) {
48293
- var Ae = Ie[0], qe = Ie[1], Pe = Ie[2], ze = Ie[3], We = Ie[4], Ge = de(Ae, Pe), Ke = de(qe, ze);
48294
- return Ge.concat([[ne, We]], Ke);
48307
+ var Ae = Ie[0], qe = Ie[1], Pe = Ie[2], ze = Ie[3], We = Ie[4], Ge = de(Ae, Pe), Ze = de(qe, ze);
48308
+ return Ge.concat([[ne, We]], Ze);
48295
48309
  }
48296
48310
  return ue(ye, Ce);
48297
48311
  }
@@ -48299,14 +48313,14 @@ function requireQuill() {
48299
48313
  for (var Le = ye.length, De = Ce.length, Fe = Math.ceil((Le + De) / 2), He = Fe, Ie = 2 * Fe, Ae = new Array(Ie), qe = new Array(Ie), Pe = 0; Pe < Ie; Pe++)
48300
48314
  Ae[Pe] = -1, qe[Pe] = -1;
48301
48315
  Ae[He + 1] = 0, qe[He + 1] = 0;
48302
- for (var ze = Le - De, We = ze % 2 != 0, Ge = 0, Ke = 0, ft = 0, Qe = 0, Ze = 0; Ze < Fe; Ze++) {
48303
- for (var Me = -Ze + Ge; Me <= Ze - Ke; Me += 2) {
48316
+ for (var ze = Le - De, We = ze % 2 != 0, Ge = 0, Ze = 0, ft = 0, Qe = 0, Ke = 0; Ke < Fe; Ke++) {
48317
+ for (var Me = -Ke + Ge; Me <= Ke - Ze; Me += 2) {
48304
48318
  var Be = He + Me, Ue;
48305
- Me == -Ze || Me != Ze && Ae[Be - 1] < Ae[Be + 1] ? Ue = Ae[Be + 1] : Ue = Ae[Be - 1] + 1;
48319
+ Me == -Ke || Me != Ke && Ae[Be - 1] < Ae[Be + 1] ? Ue = Ae[Be + 1] : Ue = Ae[Be - 1] + 1;
48306
48320
  for (var Je = Ue - Me; Ue < Le && Je < De && ye.charAt(Ue) == Ce.charAt(Je); )
48307
48321
  Ue++, Je++;
48308
48322
  if (Ae[Be] = Ue, Ue > Le)
48309
- Ke += 2;
48323
+ Ze += 2;
48310
48324
  else if (Je > De)
48311
48325
  Ge += 2;
48312
48326
  else if (We) {
@@ -48318,9 +48332,9 @@ function requireQuill() {
48318
48332
  }
48319
48333
  }
48320
48334
  }
48321
- for (var Ye = -Ze + ft; Ye <= Ze - Qe; Ye += 2) {
48335
+ for (var Ye = -Ke + ft; Ye <= Ke - Qe; Ye += 2) {
48322
48336
  var Xe = He + Ye, Ve;
48323
- Ye == -Ze || Ye != Ze && qe[Xe - 1] < qe[Xe + 1] ? Ve = qe[Xe + 1] : Ve = qe[Xe - 1] + 1;
48337
+ Ye == -Ke || Ye != Ke && qe[Xe - 1] < qe[Xe + 1] ? Ve = qe[Xe + 1] : Ve = qe[Xe - 1] + 1;
48324
48338
  for (var rt = Ve - Ye; Ve < Le && rt < De && ye.charAt(Le - Ve - 1) == Ce.charAt(De - rt - 1); )
48325
48339
  Ve++, rt++;
48326
48340
  if (qe[Xe] = Ve, Ve > Le)
@@ -48361,18 +48375,18 @@ function requireQuill() {
48361
48375
  var Le = ye.length > Ce.length ? ye : Ce, De = ye.length > Ce.length ? Ce : ye;
48362
48376
  if (Le.length < 4 || De.length * 2 < Le.length)
48363
48377
  return null;
48364
- function Fe(Ke, ft, Qe) {
48365
- for (var Ze = Ke.substring(Qe, Qe + Math.floor(Ke.length / 4)), Me = -1, Be = "", Ue, Je, Xe, Ve; (Me = ft.indexOf(Ze, Me + 1)) != -1; ) {
48378
+ function Fe(Ze, ft, Qe) {
48379
+ for (var Ke = Ze.substring(Qe, Qe + Math.floor(Ze.length / 4)), Me = -1, Be = "", Ue, Je, Xe, Ve; (Me = ft.indexOf(Ke, Me + 1)) != -1; ) {
48366
48380
  var Ye = pe(
48367
- Ke.substring(Qe),
48381
+ Ze.substring(Qe),
48368
48382
  ft.substring(Me)
48369
48383
  ), rt = fe(
48370
- Ke.substring(0, Qe),
48384
+ Ze.substring(0, Qe),
48371
48385
  ft.substring(0, Me)
48372
48386
  );
48373
- Be.length < rt + Ye && (Be = ft.substring(Me - rt, Me) + ft.substring(Me, Me + Ye), Ue = Ke.substring(0, Qe - rt), Je = Ke.substring(Qe + Ye), Xe = ft.substring(0, Me - rt), Ve = ft.substring(Me + Ye));
48387
+ Be.length < rt + Ye && (Be = ft.substring(Me - rt, Me) + ft.substring(Me, Me + Ye), Ue = Ze.substring(0, Qe - rt), Je = Ze.substring(Qe + Ye), Xe = ft.substring(0, Me - rt), Ve = ft.substring(Me + Ye));
48374
48388
  }
48375
- return Be.length * 2 >= Ke.length ? [
48389
+ return Be.length * 2 >= Ze.length ? [
48376
48390
  Ue,
48377
48391
  Je,
48378
48392
  Xe,
@@ -48680,7 +48694,7 @@ function requireQuill() {
48680
48694
  throw new TypeError("Super expression must either be null or a function, not " + typeof mt);
48681
48695
  gt.prototype = Object.create(mt && mt.prototype, { constructor: { value: gt, enumerable: !1, writable: !0, configurable: !0 } }), mt && (Object.setPrototypeOf ? Object.setPrototypeOf(gt, mt) : gt.__proto__ = mt);
48682
48696
  }
48683
- var Ke = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Yt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Vt], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", qt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", It]], Ze = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
48697
+ var Ze = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Yt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Vt], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", qt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", It]], Ke = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
48684
48698
  return gt[mt.keyName] = mt, gt;
48685
48699
  }, {}), Me = [ye.AlignStyle, Ce.BackgroundStyle, Fe.ColorStyle, He.DirectionStyle, Ie.FontStyle, Ae.SizeStyle].reduce(function(gt, mt) {
48686
48700
  return gt[mt.keyName] = mt, gt;
@@ -48709,9 +48723,9 @@ function requireQuill() {
48709
48723
  var Mt = this.container.innerText;
48710
48724
  return this.container.innerHTML = "", new pe.default().insert(Mt, Pe({}, De.default.blotName, $t[De.default.blotName]));
48711
48725
  }
48712
- var Ft = this.prepareMatching(), zt = ne(Ft, 2), cs = zt[0], ds = zt[1], Kt = Ye(this.container, cs, ds);
48713
- return Xe(Kt, `
48714
- `) && Kt.ops[Kt.ops.length - 1].attributes == null && (Kt = Kt.compose(new pe.default().retain(Kt.length() - 1).delete(1))), Ke.log("convert", this.container.innerHTML, Kt), this.container.innerHTML = "", Kt;
48726
+ var Ft = this.prepareMatching(), zt = ne(Ft, 2), cs = zt[0], ds = zt[1], Zt = Ye(this.container, cs, ds);
48727
+ return Xe(Zt, `
48728
+ `) && Zt.ops[Zt.ops.length - 1].attributes == null && (Zt = Zt.compose(new pe.default().retain(Zt.length() - 1).delete(1))), Ze.log("convert", this.container.innerHTML, Zt), this.container.innerHTML = "", Zt;
48715
48729
  }
48716
48730
  }, {
48717
48731
  key: "dangerouslyPasteHTML",
@@ -48749,8 +48763,8 @@ function requireQuill() {
48749
48763
  $t.push(ds);
48750
48764
  break;
48751
48765
  default:
48752
- [].forEach.call(Ct.container.querySelectorAll(cs), function(Kt) {
48753
- Kt[ft] = Kt[ft] || [], Kt[ft].push(ds);
48766
+ [].forEach.call(Ct.container.querySelectorAll(cs), function(Zt) {
48767
+ Zt[ft] = Zt[ft] || [], Zt[ft].push(ds);
48754
48768
  });
48755
48769
  break;
48756
48770
  }
@@ -48806,7 +48820,7 @@ function requireQuill() {
48806
48820
  var xt = be.default.Attributor.Attribute.keys(gt), Ct = be.default.Attributor.Class.keys(gt), $t = be.default.Attributor.Style.keys(gt), Mt = {};
48807
48821
  return xt.concat(Ct).concat($t).forEach(function(Ft) {
48808
48822
  var zt = be.default.query(Ft, be.default.Scope.ATTRIBUTE);
48809
- zt != null && (Mt[zt.attrName] = zt.value(gt), Mt[zt.attrName]) || (zt = Ze[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (Mt[zt.attrName] = zt.value(gt) || void 0), zt = Me[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (zt = Me[Ft], Mt[zt.attrName] = zt.value(gt) || void 0));
48823
+ zt != null && (Mt[zt.attrName] = zt.value(gt), Mt[zt.attrName]) || (zt = Ke[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (Mt[zt.attrName] = zt.value(gt) || void 0), zt = Me[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (zt = Me[Ft], Mt[zt.attrName] = zt.value(gt) || void 0));
48810
48824
  }), Object.keys(Mt).length > 0 && (mt = Ue(mt, Mt)), mt;
48811
48825
  }
48812
48826
  function _t(gt, mt) {
@@ -48948,17 +48962,17 @@ function requireQuill() {
48948
48962
  }), te.addControls = te.default = void 0;
48949
48963
  var oe = /* @__PURE__ */ (function() {
48950
48964
  function qe(Pe, ze) {
48951
- var We = [], Ge = !0, Ke = !1, ft = void 0;
48965
+ var We = [], Ge = !0, Ze = !1, ft = void 0;
48952
48966
  try {
48953
- for (var Qe = Pe[Symbol.iterator](), Ze; !(Ge = (Ze = Qe.next()).done) && (We.push(Ze.value), !(ze && We.length === ze)); Ge = !0)
48967
+ for (var Qe = Pe[Symbol.iterator](), Ke; !(Ge = (Ke = Qe.next()).done) && (We.push(Ke.value), !(ze && We.length === ze)); Ge = !0)
48954
48968
  ;
48955
48969
  } catch (Me) {
48956
- Ke = !0, ft = Me;
48970
+ Ze = !0, ft = Me;
48957
48971
  } finally {
48958
48972
  try {
48959
48973
  !Ge && Qe.return && Qe.return();
48960
48974
  } finally {
48961
- if (Ke) throw ft;
48975
+ if (Ze) throw ft;
48962
48976
  }
48963
48977
  }
48964
48978
  return We;
@@ -49007,8 +49021,8 @@ function requireQuill() {
49007
49021
  Se(this, Pe);
49008
49022
  var Ge = ye(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this, ze, We));
49009
49023
  if (Array.isArray(Ge.options.container)) {
49010
- var Ke = document.createElement("div");
49011
- Ie(Ke, Ge.options.container), ze.container.parentNode.insertBefore(Ke, ze.container), Ge.container = Ke;
49024
+ var Ze = document.createElement("div");
49025
+ Ie(Ze, Ge.options.container), ze.container.parentNode.insertBefore(Ze, ze.container), Ge.container = Ze;
49012
49026
  } else if (typeof Ge.options.container == "string") {
49013
49027
  var ft = Le ? ze.container.getRootNode() : document;
49014
49028
  Ge.container = ft.querySelector(Ge.options.container);
@@ -49018,14 +49032,14 @@ function requireQuill() {
49018
49032
  var Qe;
49019
49033
  return Qe = De.error("Container required for toolbar", Ge.options), ye(Ge, Qe);
49020
49034
  }
49021
- return Ge.container.classList.add("ql-toolbar"), Ge.controls = [], Ge.handlers = {}, Object.keys(Ge.options.handlers).forEach(function(Ze) {
49022
- Ge.addHandler(Ze, Ge.options.handlers[Ze]);
49023
- }), [].forEach.call(Ge.container.querySelectorAll("button, select"), function(Ze) {
49024
- Ge.attach(Ze);
49025
- }), Ge.quill.on(fe.default.events.EDITOR_CHANGE, function(Ze, Me) {
49026
- Ze === fe.default.events.SELECTION_CHANGE && Ge.update(Me);
49035
+ return Ge.container.classList.add("ql-toolbar"), Ge.controls = [], Ge.handlers = {}, Object.keys(Ge.options.handlers).forEach(function(Ke) {
49036
+ Ge.addHandler(Ke, Ge.options.handlers[Ke]);
49037
+ }), [].forEach.call(Ge.container.querySelectorAll("button, select"), function(Ke) {
49038
+ Ge.attach(Ke);
49039
+ }), Ge.quill.on(fe.default.events.EDITOR_CHANGE, function(Ke, Me) {
49040
+ Ke === fe.default.events.SELECTION_CHANGE && Ge.update(Me);
49027
49041
  }), Ge.quill.on(fe.default.events.SCROLL_OPTIMIZE, function() {
49028
- var Ze = Ge.quill.selection.getRange(), Me = oe(Ze, 1), Be = Me[0];
49042
+ var Ke = Ge.quill.selection.getRange(), Me = oe(Ke, 1), Be = Me[0];
49029
49043
  Ge.update(Be);
49030
49044
  }), Ge;
49031
49045
  }
@@ -49037,66 +49051,66 @@ function requireQuill() {
49037
49051
  }, {
49038
49052
  key: "attach",
49039
49053
  value: function(We) {
49040
- var Ge = this, Ke = [].find.call(We.classList, function(Qe) {
49054
+ var Ge = this, Ze = [].find.call(We.classList, function(Qe) {
49041
49055
  return Qe.indexOf("ql-") === 0;
49042
49056
  });
49043
- if (Ke) {
49044
- if (Ke = Ke.slice(3), We.tagName === "BUTTON" && We.setAttribute("type", "button"), this.handlers[Ke] == null) {
49045
- if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[Ke] == null) {
49046
- De.warn("ignoring attaching to disabled format", Ke, We);
49057
+ if (Ze) {
49058
+ if (Ze = Ze.slice(3), We.tagName === "BUTTON" && We.setAttribute("type", "button"), this.handlers[Ze] == null) {
49059
+ if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[Ze] == null) {
49060
+ De.warn("ignoring attaching to disabled format", Ze, We);
49047
49061
  return;
49048
49062
  }
49049
- if (he.default.query(Ke) == null) {
49050
- De.warn("ignoring attaching to nonexistent format", Ke, We);
49063
+ if (he.default.query(Ze) == null) {
49064
+ De.warn("ignoring attaching to nonexistent format", Ze, We);
49051
49065
  return;
49052
49066
  }
49053
49067
  }
49054
49068
  var ft = We.tagName === "SELECT" ? "change" : "click";
49055
49069
  We.addEventListener(ft, function(Qe) {
49056
- var Ze = void 0;
49070
+ var Ke = void 0;
49057
49071
  if (We.tagName === "SELECT") {
49058
49072
  if (We.selectedIndex < 0) return;
49059
49073
  var Me = We.options[We.selectedIndex];
49060
- Me.hasAttribute("selected") ? Ze = !1 : Ze = Me.value || !1;
49074
+ Me.hasAttribute("selected") ? Ke = !1 : Ke = Me.value || !1;
49061
49075
  } else
49062
- We.classList.contains("ql-active") ? Ze = !1 : Ze = We.value || !We.hasAttribute("value"), Qe.preventDefault();
49076
+ We.classList.contains("ql-active") ? Ke = !1 : Ke = We.value || !We.hasAttribute("value"), Qe.preventDefault();
49063
49077
  Ge.quill.focus();
49064
49078
  var Be = Ge.quill.selection.getRange(), Ue = oe(Be, 1), Je = Ue[0];
49065
- if (Ge.handlers[Ke] != null)
49066
- Ge.handlers[Ke].call(Ge, Ze);
49067
- else if (he.default.query(Ke).prototype instanceof he.default.Embed) {
49068
- if (Ze = prompt("Enter " + Ke), !Ze) return;
49069
- Ge.quill.updateContents(new ce.default().retain(Je.index).delete(Je.length).insert(we({}, Ke, Ze)), fe.default.sources.USER);
49079
+ if (Ge.handlers[Ze] != null)
49080
+ Ge.handlers[Ze].call(Ge, Ke);
49081
+ else if (he.default.query(Ze).prototype instanceof he.default.Embed) {
49082
+ if (Ke = prompt("Enter " + Ze), !Ke) return;
49083
+ Ge.quill.updateContents(new ce.default().retain(Je.index).delete(Je.length).insert(we({}, Ze, Ke)), fe.default.sources.USER);
49070
49084
  } else
49071
- Ge.quill.format(Ke, Ze, fe.default.sources.USER);
49085
+ Ge.quill.format(Ze, Ke, fe.default.sources.USER);
49072
49086
  Ge.update(Je);
49073
- }), this.controls.push([Ke, We]);
49087
+ }), this.controls.push([Ze, We]);
49074
49088
  }
49075
49089
  }
49076
49090
  }, {
49077
49091
  key: "update",
49078
49092
  value: function(We) {
49079
49093
  var Ge = We == null ? {} : this.quill.getFormat(We);
49080
- this.controls.forEach(function(Ke) {
49081
- var ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1];
49082
- if (Ze.tagName === "SELECT") {
49094
+ this.controls.forEach(function(Ze) {
49095
+ var ft = oe(Ze, 2), Qe = ft[0], Ke = ft[1];
49096
+ if (Ke.tagName === "SELECT") {
49083
49097
  var Me = void 0;
49084
49098
  if (We == null)
49085
49099
  Me = null;
49086
49100
  else if (Ge[Qe] == null)
49087
- Me = Ze.querySelector("option[selected]");
49101
+ Me = Ke.querySelector("option[selected]");
49088
49102
  else if (!Array.isArray(Ge[Qe])) {
49089
49103
  var Be = Ge[Qe];
49090
- typeof Be == "string" && (Be = Be.replace(/\"/g, '\\"')), Me = Ze.querySelector('option[value="' + Be + '"]');
49104
+ typeof Be == "string" && (Be = Be.replace(/\"/g, '\\"')), Me = Ke.querySelector('option[value="' + Be + '"]');
49091
49105
  }
49092
- Me == null ? (Ze.value = "", Ze.selectedIndex = -1) : Me.selected = !0;
49106
+ Me == null ? (Ke.value = "", Ke.selectedIndex = -1) : Me.selected = !0;
49093
49107
  } else if (We == null)
49094
- Ze.classList.remove("ql-active");
49095
- else if (Ze.hasAttribute("value")) {
49096
- var Ue = Ge[Qe] === Ze.getAttribute("value") || Ge[Qe] != null && Ge[Qe].toString() === Ze.getAttribute("value") || Ge[Qe] == null && !Ze.getAttribute("value");
49097
- Ze.classList.toggle("ql-active", Ue);
49108
+ Ke.classList.remove("ql-active");
49109
+ else if (Ke.hasAttribute("value")) {
49110
+ var Ue = Ge[Qe] === Ke.getAttribute("value") || Ge[Qe] != null && Ge[Qe].toString() === Ke.getAttribute("value") || Ge[Qe] == null && !Ke.getAttribute("value");
49111
+ Ke.classList.toggle("ql-active", Ue);
49098
49112
  } else
49099
- Ze.classList.toggle("ql-active", Ge[Qe] != null);
49113
+ Ke.classList.toggle("ql-active", Ge[Qe] != null);
49100
49114
  });
49101
49115
  }
49102
49116
  }]), Pe;
@@ -49113,8 +49127,8 @@ function requireQuill() {
49113
49127
  if (typeof Ge == "string")
49114
49128
  He(We, Ge);
49115
49129
  else {
49116
- var Ke = Object.keys(Ge)[0], ft = Ge[Ke];
49117
- Array.isArray(ft) ? Ae(We, Ke, ft) : He(We, Ke, ft);
49130
+ var Ze = Object.keys(Ge)[0], ft = Ge[Ze];
49131
+ Array.isArray(ft) ? Ae(We, Ze, ft) : He(We, Ze, ft);
49118
49132
  }
49119
49133
  }), qe.appendChild(We);
49120
49134
  });
@@ -49122,8 +49136,8 @@ function requireQuill() {
49122
49136
  function Ae(qe, Pe, ze) {
49123
49137
  var We = document.createElement("select");
49124
49138
  We.classList.add("ql-" + Pe), ze.forEach(function(Ge) {
49125
- var Ke = document.createElement("option");
49126
- Ge !== !1 ? Ke.setAttribute("value", Ge) : Ke.setAttribute("selected", "selected"), We.appendChild(Ke);
49139
+ var Ze = document.createElement("option");
49140
+ Ge !== !1 ? Ze.setAttribute("value", Ge) : Ze.setAttribute("selected", "selected"), We.appendChild(Ze);
49127
49141
  }), qe.appendChild(We);
49128
49142
  }
49129
49143
  Fe.DEFAULTS = {
@@ -49147,8 +49161,8 @@ function requireQuill() {
49147
49161
  indent: function(Pe) {
49148
49162
  var ze = this.quill.getSelection(), We = this.quill.getFormat(ze), Ge = parseInt(We.indent || 0);
49149
49163
  if (Pe === "+1" || Pe === "-1") {
49150
- var Ke = Pe === "+1" ? 1 : -1;
49151
- We.direction === "rtl" && (Ke *= -1), this.quill.format("indent", Ge + Ke, fe.default.sources.USER);
49164
+ var Ze = Pe === "+1" ? 1 : -1;
49165
+ We.direction === "rtl" && (Ze *= -1), this.quill.format("indent", Ge + Ze, fe.default.sources.USER);
49152
49166
  }
49153
49167
  },
49154
49168
  link: function(Pe) {
@@ -49366,13 +49380,13 @@ function requireQuill() {
49366
49380
  function Ie(Ae, qe) {
49367
49381
  var Pe = [], ze = !0, We = !1, Ge = void 0;
49368
49382
  try {
49369
- for (var Ke = Ae[Symbol.iterator](), ft; !(ze = (ft = Ke.next()).done) && (Pe.push(ft.value), !(qe && Pe.length === qe)); ze = !0)
49383
+ for (var Ze = Ae[Symbol.iterator](), ft; !(ze = (ft = Ze.next()).done) && (Pe.push(ft.value), !(qe && Pe.length === qe)); ze = !0)
49370
49384
  ;
49371
49385
  } catch (Qe) {
49372
49386
  We = !0, Ge = Qe;
49373
49387
  } finally {
49374
49388
  try {
49375
- !ze && Ke.return && Ke.return();
49389
+ !ze && Ze.return && Ze.return();
49376
49390
  } finally {
49377
49391
  if (We) throw Ge;
49378
49392
  }
@@ -49483,9 +49497,9 @@ function requireQuill() {
49483
49497
  }), this.quill.on(pe.default.events.SELECTION_CHANGE, function(ze, We, Ge) {
49484
49498
  if (ze != null) {
49485
49499
  if (ze.length === 0 && Ge === pe.default.sources.USER) {
49486
- var Ke = Pe.quill.scroll.descendant(ge.default, ze.index), ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1];
49500
+ var Ze = Pe.quill.scroll.descendant(ge.default, ze.index), ft = oe(Ze, 2), Qe = ft[0], Ke = ft[1];
49487
49501
  if (Qe != null) {
49488
- Pe.linkRange = new ve.Range(ze.index - Ze, Qe.length());
49502
+ Pe.linkRange = new ve.Range(ze.index - Ke, Qe.length());
49489
49503
  var Me = ge.default.formats(Qe.domNode);
49490
49504
  Pe.preview.textContent = Me, Pe.preview.setAttribute("href", Me), Pe.show(), Pe.position(Pe.quill.getBounds(Pe.linkRange));
49491
49505
  return;
@@ -49511,7 +49525,7 @@ function requireQuill() {
49511
49525
  Object.defineProperty(te, "__esModule", {
49512
49526
  value: !0
49513
49527
  });
49514
- var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Se = re(41), ye = re(57), Ce = $t(ye), Le = re(69), De = $t(Le), Fe = re(27), He = $t(Fe), Ie = re(70), Ae = $t(Ie), qe = re(71), Pe = $t(qe), ze = re(72), We = $t(ze), Ge = re(73), Ke = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Me = $t(Ze), Be = re(75), Ue = $t(Be), Je = re(76), Xe = $t(Je), Ve = re(58), Ye = $t(Ve), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), It = re(60), qt = $t(It), Nt = re(61), Vt = $t(Nt), rs = re(62), Yt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), Ct = $t(xt);
49528
+ var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Se = re(41), ye = re(57), Ce = $t(ye), Le = re(69), De = $t(Le), Fe = re(27), He = $t(Fe), Ie = re(70), Ae = $t(Ie), qe = re(71), Pe = $t(qe), ze = re(72), We = $t(ze), Ge = re(73), Ze = $t(Ge), ft = re(74), Qe = $t(ft), Ke = re(13), Me = $t(Ke), Be = re(75), Ue = $t(Be), Je = re(76), Xe = $t(Je), Ve = re(58), Ye = $t(Ve), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), It = re(60), qt = $t(It), Nt = re(61), Vt = $t(Nt), rs = re(62), Yt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), Ct = $t(xt);
49515
49529
  function $t(Mt) {
49516
49530
  return Mt && Mt.__esModule ? Mt : { default: Mt };
49517
49531
  }
@@ -49542,13 +49556,13 @@ function requireQuill() {
49542
49556
  "formats/header": be.default,
49543
49557
  "formats/list": ge.default,
49544
49558
  "formats/bold": Ce.default,
49545
- "formats/code": Ze.Code,
49559
+ "formats/code": Ke.Code,
49546
49560
  "formats/italic": De.default,
49547
49561
  "formats/link": He.default,
49548
49562
  "formats/script": Ae.default,
49549
49563
  "formats/strike": Pe.default,
49550
49564
  "formats/underline": We.default,
49551
- "formats/image": Ke.default,
49565
+ "formats/image": Ze.default,
49552
49566
  "formats/video": Qe.default,
49553
49567
  "formats/list/item": me.ListItem,
49554
49568
  "modules/formula": Ue.default,
@@ -50639,8 +50653,8 @@ function requireQuill() {
50639
50653
  if (Ge.length === 1)
50640
50654
  Ae.position(Ae.quill.getBounds(Pe));
50641
50655
  else {
50642
- var Ke = Ge[Ge.length - 1], ft = Ae.quill.getIndex(Ke), Qe = Math.min(Ke.length() - 1, Pe.index + Pe.length - ft), Ze = Ae.quill.getBounds(new be.Range(ft, Qe));
50643
- Ae.position(Ze);
50656
+ var Ze = Ge[Ge.length - 1], ft = Ae.quill.getIndex(Ze), Qe = Math.min(Ze.length() - 1, Pe.index + Pe.length - ft), Ke = Ae.quill.getBounds(new be.Range(ft, Qe));
50657
+ Ae.position(Ke);
50644
50658
  }
50645
50659
  } else document.activeElement !== Ae.textbox && Ae.quill.hasFocus() && Ae.hide();
50646
50660
  }), Ae;
@@ -51783,4 +51797,4 @@ export {
51783
51797
  l as y,
51784
51798
  PrimariaInteractionService as z
51785
51799
  };
51786
- //# sourceMappingURL=index-BW5Gm1nm.js.map
51800
+ //# sourceMappingURL=index-DT9s-B7p.js.map