mainstack-design-system 1.17.3 → 1.18.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.
@@ -1,19 +1,19 @@
1
1
  'use client';
2
2
  import { jsx as ba } from "react/jsx-runtime";
3
- import { N as P, w as ue, m as A, M as me, b as le, c as de, P as O, d as N, T as re, t as Aa, S as Ce, n as Oa, e as ot, i as vo, f as qa, g as Fo, h as ko, j as _o, k as tt, l as st, r as Do, E as M, p as ao, o as Ba, q as nt, s as it, v as yo, x as rt, y as pt, z as lt, F as oo, A as Io, D as fe, B as xe, C as mt, G as ct, H as gt, I as ut, R as dt, J as wo, K as ft, L as ht, O as jt, Q as bt } from "./index-B9lFQRm4.js";
4
- import { forwardRef as vt, useMemo as Ft, useEffect as kt } from "react";
5
- import { c as _t } from "./utils-Z5JtG_Bc.js";
6
- import { TextEditorContext as Dt } from "./mainstack-design-system610.js";
3
+ import { N as P, w as ue, m as A, M as me, b as le, c as de, P as O, d as N, T as re, t as Aa, S as Ce, n as Oa, e as tt, i as Fo, f as qa, g as ko, h as _o, j as Do, k as st, l as nt, r as yo, E as M, p as ao, o as Ba, q as it, s as rt, v as Io, x as pt, y as lt, z as mt, F as oo, A as wo, D as fe, B as xe, C as ct, G as gt, H as ut, I as dt, R as ft, J as Eo, K as ht, L as jt, O as bt, Q as vt } from "./index-B9lFQRm4.js";
4
+ import { forwardRef as Ft, useMemo as kt, useEffect as _t } from "react";
5
+ import { c as Dt } from "./utils-Z5JtG_Bc.js";
6
+ import { TextEditorContext as yt } from "./mainstack-design-system610.js";
7
7
  var Oe = (e, a) => {
8
8
  if (e === "slot")
9
9
  return 0;
10
10
  if (e instanceof Function)
11
11
  return e(a);
12
- const { children: o, ...s } = a ?? {};
12
+ const { children: o, ...t } = a ?? {};
13
13
  if (e === "svg")
14
14
  throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
15
- return [e, s, o];
16
- }, yt = /^\s*>\s$/, It = P.create({
15
+ return [e, t, o];
16
+ }, It = /^\s*>\s$/, wt = P.create({
17
17
  name: "blockquote",
18
18
  addOptions() {
19
19
  return {
@@ -33,13 +33,13 @@ var Oe = (e, a) => {
33
33
  renderMarkdown: (e, a) => {
34
34
  if (!e.content)
35
35
  return "";
36
- const o = ">", s = [];
37
- return e.content.forEach((t) => {
38
- const r = a.renderChildren([t]).split(`
36
+ const o = ">", t = [];
37
+ return e.content.forEach((s) => {
38
+ const r = a.renderChildren([s]).split(`
39
39
  `).map((p) => p.trim() === "" ? o : `${o} ${p}`);
40
- s.push(r.join(`
40
+ t.push(r.join(`
41
41
  `));
42
- }), s.join(`
42
+ }), t.join(`
43
43
  ${o}
44
44
  `);
45
45
  },
@@ -58,12 +58,12 @@ ${o}
58
58
  addInputRules() {
59
59
  return [
60
60
  ue({
61
- find: yt,
61
+ find: It,
62
62
  type: this.type
63
63
  })
64
64
  ];
65
65
  }
66
- }), wt = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Et = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Ct = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, At = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Bt = me.create({
66
+ }), Et = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Ct = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, At = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Bt = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, xt = me.create({
67
67
  name: "bold",
68
68
  addOptions() {
69
69
  return {
@@ -111,11 +111,11 @@ ${o}
111
111
  addInputRules() {
112
112
  return [
113
113
  de({
114
- find: wt,
114
+ find: Et,
115
115
  type: this.type
116
116
  }),
117
117
  de({
118
- find: Ct,
118
+ find: At,
119
119
  type: this.type
120
120
  })
121
121
  ];
@@ -123,16 +123,16 @@ ${o}
123
123
  addPasteRules() {
124
124
  return [
125
125
  le({
126
- find: Et,
126
+ find: Ct,
127
127
  type: this.type
128
128
  }),
129
129
  le({
130
- find: At,
130
+ find: Bt,
131
131
  type: this.type
132
132
  })
133
133
  ];
134
134
  }
135
- }), xt = /(^|[^`])`([^`]+)`(?!`)$/, Tt = /(^|[^`])`([^`]+)`(?!`)/g, Lt = me.create({
135
+ }), Tt = /(^|[^`])`([^`]+)`(?!`)$/, Lt = /(^|[^`])`([^`]+)`(?!`)/g, Mt = me.create({
136
136
  name: "code",
137
137
  addOptions() {
138
138
  return {
@@ -166,7 +166,7 @@ ${o}
166
166
  addInputRules() {
167
167
  return [
168
168
  de({
169
- find: xt,
169
+ find: Tt,
170
170
  type: this.type
171
171
  })
172
172
  ];
@@ -174,12 +174,12 @@ ${o}
174
174
  addPasteRules() {
175
175
  return [
176
176
  le({
177
- find: Tt,
177
+ find: Lt,
178
178
  type: this.type
179
179
  })
180
180
  ];
181
181
  }
182
- }), va = 4, Mt = /^```([a-z]+)?[\s\n]$/, St = /^~~~([a-z]+)?[\s\n]$/, zt = P.create({
182
+ }), va = 4, St = /^```([a-z]+)?[\s\n]$/, zt = /^~~~([a-z]+)?[\s\n]$/, Rt = P.create({
183
183
  name: "codeBlock",
184
184
  addOptions() {
185
185
  return {
@@ -245,12 +245,12 @@ ${o}
245
245
  },
246
246
  renderMarkdown: (e, a) => {
247
247
  var o;
248
- let s = "";
249
- const t = ((o = e.attrs) == null ? void 0 : o.language) || "";
250
- return e.content ? s = [`\`\`\`${t}`, a.renderChildren(e.content), "```"].join(`
251
- `) : s = `\`\`\`${t}
248
+ let t = "";
249
+ const s = ((o = e.attrs) == null ? void 0 : o.language) || "";
250
+ return e.content ? t = [`\`\`\`${s}`, a.renderChildren(e.content), "```"].join(`
251
+ `) : t = `\`\`\`${s}
252
252
 
253
- \`\`\``, s;
253
+ \`\`\``, t;
254
254
  },
255
255
  addCommands() {
256
256
  return {
@@ -271,17 +271,17 @@ ${o}
271
271
  var a;
272
272
  if (!this.options.enableTabIndentation)
273
273
  return !1;
274
- const o = (a = this.options.tabSize) != null ? a : va, { state: s } = e, { selection: t } = s, { $from: n, empty: i } = t;
274
+ const o = (a = this.options.tabSize) != null ? a : va, { state: t } = e, { selection: s } = t, { $from: n, empty: i } = s;
275
275
  if (n.parent.type !== this.type)
276
276
  return !1;
277
277
  const r = " ".repeat(o);
278
278
  return i ? e.commands.insertContent(r) : e.commands.command(({ tr: p }) => {
279
- const { from: l, to: c } = t, d = s.doc.textBetween(l, c, `
279
+ const { from: l, to: c } = s, d = t.doc.textBetween(l, c, `
280
280
  `, `
281
281
  `).split(`
282
282
  `).map((j) => r + j).join(`
283
283
  `);
284
- return p.replaceWith(l, c, s.schema.text(d)), !0;
284
+ return p.replaceWith(l, c, t.schema.text(d)), !0;
285
285
  });
286
286
  },
287
287
  // handle shift+tab reverse indentation
@@ -289,10 +289,10 @@ ${o}
289
289
  var a;
290
290
  if (!this.options.enableTabIndentation)
291
291
  return !1;
292
- const o = (a = this.options.tabSize) != null ? a : va, { state: s } = e, { selection: t } = s, { $from: n, empty: i } = t;
292
+ const o = (a = this.options.tabSize) != null ? a : va, { state: t } = e, { selection: s } = t, { $from: n, empty: i } = s;
293
293
  return n.parent.type !== this.type ? !1 : i ? e.commands.command(({ tr: r }) => {
294
294
  var p;
295
- const { pos: l } = n, c = n.start(), m = n.end(), d = s.doc.textBetween(c, m, `
295
+ const { pos: l } = n, c = n.start(), m = n.end(), d = t.doc.textBetween(c, m, `
296
296
  `, `
297
297
  `).split(`
298
298
  `);
@@ -305,7 +305,7 @@ ${o}
305
305
  }
306
306
  b += d[v].length + 1;
307
307
  }
308
- const D = ((p = d[j].match(/^ */)) == null ? void 0 : p[0]) || "", $ = Math.min(D.length, o);
308
+ const _ = ((p = d[j].match(/^ */)) == null ? void 0 : p[0]) || "", $ = Math.min(_.length, o);
309
309
  if ($ === 0)
310
310
  return !0;
311
311
  let R = c;
@@ -313,7 +313,7 @@ ${o}
313
313
  R += d[v].length + 1;
314
314
  return r.delete(R, R + $), l - R <= $ && r.setSelection(re.create(r.doc, R)), !0;
315
315
  }) : e.commands.command(({ tr: r }) => {
316
- const { from: p, to: l } = t, g = s.doc.textBetween(p, l, `
316
+ const { from: p, to: l } = s, g = t.doc.textBetween(p, l, `
317
317
  `, `
318
318
  `).split(`
319
319
  `).map((d) => {
@@ -322,44 +322,44 @@ ${o}
322
322
  return d.slice(h);
323
323
  }).join(`
324
324
  `);
325
- return r.replaceWith(p, l, s.schema.text(g)), !0;
325
+ return r.replaceWith(p, l, t.schema.text(g)), !0;
326
326
  });
327
327
  },
328
328
  // exit node on triple enter
329
329
  Enter: ({ editor: e }) => {
330
330
  if (!this.options.exitOnTripleEnter)
331
331
  return !1;
332
- const { state: a } = e, { selection: o } = a, { $from: s, empty: t } = o;
333
- if (!t || s.parent.type !== this.type)
332
+ const { state: a } = e, { selection: o } = a, { $from: t, empty: s } = o;
333
+ if (!s || t.parent.type !== this.type)
334
334
  return !1;
335
- const n = s.parentOffset === s.parent.nodeSize - 2, i = s.parent.textContent.endsWith(`
335
+ const n = t.parentOffset === t.parent.nodeSize - 2, i = t.parent.textContent.endsWith(`
336
336
 
337
337
  `);
338
- return !n || !i ? !1 : e.chain().command(({ tr: r }) => (r.delete(s.pos - 2, s.pos), !0)).exitCode().run();
338
+ return !n || !i ? !1 : e.chain().command(({ tr: r }) => (r.delete(t.pos - 2, t.pos), !0)).exitCode().run();
339
339
  },
340
340
  // exit node on arrow down
341
341
  ArrowDown: ({ editor: e }) => {
342
342
  if (!this.options.exitOnArrowDown)
343
343
  return !1;
344
- const { state: a } = e, { selection: o, doc: s } = a, { $from: t, empty: n } = o;
345
- if (!n || t.parent.type !== this.type || !(t.parentOffset === t.parent.nodeSize - 2))
344
+ const { state: a } = e, { selection: o, doc: t } = a, { $from: s, empty: n } = o;
345
+ if (!n || s.parent.type !== this.type || !(s.parentOffset === s.parent.nodeSize - 2))
346
346
  return !1;
347
- const r = t.after();
348
- return r === void 0 ? !1 : s.nodeAt(r) ? e.commands.command(({ tr: l }) => (l.setSelection(Ce.near(s.resolve(r))), !0)) : e.commands.exitCode();
347
+ const r = s.after();
348
+ return r === void 0 ? !1 : t.nodeAt(r) ? e.commands.command(({ tr: l }) => (l.setSelection(Ce.near(t.resolve(r))), !0)) : e.commands.exitCode();
349
349
  }
350
350
  };
351
351
  },
352
352
  addInputRules() {
353
353
  return [
354
354
  Aa({
355
- find: Mt,
355
+ find: St,
356
356
  type: this.type,
357
357
  getAttributes: (e) => ({
358
358
  language: e[1]
359
359
  })
360
360
  }),
361
361
  Aa({
362
- find: St,
362
+ find: zt,
363
363
  type: this.type,
364
364
  getAttributes: (e) => ({
365
365
  language: e[1]
@@ -377,7 +377,7 @@ ${o}
377
377
  handlePaste: (e, a) => {
378
378
  if (!a.clipboardData || this.editor.isActive(this.type.name))
379
379
  return !1;
380
- const o = a.clipboardData.getData("text/plain"), s = a.clipboardData.getData("vscode-editor-data"), t = s ? JSON.parse(s) : void 0, n = t?.mode;
380
+ const o = a.clipboardData.getData("text/plain"), t = a.clipboardData.getData("vscode-editor-data"), s = t ? JSON.parse(t) : void 0, n = s?.mode;
381
381
  if (!o || !n)
382
382
  return !1;
383
383
  const { tr: i, schema: r } = e.state, p = r.text(o.replace(/\r\n?/g, `
@@ -388,14 +388,14 @@ ${o}
388
388
  })
389
389
  ];
390
390
  }
391
- }), Rt = P.create({
391
+ }), Ht = P.create({
392
392
  name: "doc",
393
393
  topNode: !0,
394
394
  content: "block+",
395
395
  renderMarkdown: (e, a) => e.content ? a.renderChildren(e.content, `
396
396
 
397
397
  `) : ""
398
- }), Ht = P.create({
398
+ }), Nt = P.create({
399
399
  name: "hardBreak",
400
400
  markdownTokenName: "br",
401
401
  addOptions() {
@@ -425,13 +425,13 @@ ${o}
425
425
  }),
426
426
  addCommands() {
427
427
  return {
428
- setHardBreak: () => ({ commands: e, chain: a, state: o, editor: s }) => e.first([
428
+ setHardBreak: () => ({ commands: e, chain: a, state: o, editor: t }) => e.first([
429
429
  () => e.exitCode(),
430
430
  () => e.command(() => {
431
- const { selection: t, storedMarks: n } = o;
432
- if (t.$from.parent.type.spec.isolating)
431
+ const { selection: s, storedMarks: n } = o;
432
+ if (s.$from.parent.type.spec.isolating)
433
433
  return !1;
434
- const { keepMarks: i } = this.options, { splittableMarks: r } = s.extensionManager, p = n || t.$to.parentOffset && t.$from.marks();
434
+ const { keepMarks: i } = this.options, { splittableMarks: r } = t.extensionManager, p = n || s.$to.parentOffset && s.$from.marks();
435
435
  return a().insertContent({ type: this.name }).command(({ tr: l, dispatch: c }) => {
436
436
  if (c && p && i) {
437
437
  const m = p.filter((g) => r.includes(g.type.name));
@@ -449,7 +449,7 @@ ${o}
449
449
  "Shift-Enter": () => this.editor.commands.setHardBreak()
450
450
  };
451
451
  }
452
- }), Nt = P.create({
452
+ }), Pt = P.create({
453
453
  name: "heading",
454
454
  addOptions() {
455
455
  return {
@@ -480,8 +480,8 @@ ${o}
480
480
  parseMarkdown: (e, a) => a.createNode("heading", { level: e.depth || 1 }, a.parseInline(e.tokens || [])),
481
481
  renderMarkdown: (e, a) => {
482
482
  var o;
483
- const s = (o = e.attrs) != null && o.level ? parseInt(e.attrs.level, 10) : 1, t = "#".repeat(s);
484
- return e.content ? `${t} ${a.renderChildren(e.content)}` : "";
483
+ const t = (o = e.attrs) != null && o.level ? parseInt(e.attrs.level, 10) : 1, s = "#".repeat(t);
484
+ return e.content ? `${s} ${a.renderChildren(e.content)}` : "";
485
485
  },
486
486
  addCommands() {
487
487
  return {
@@ -507,7 +507,7 @@ ${o}
507
507
  }
508
508
  }));
509
509
  }
510
- }), Pt = P.create({
510
+ }), Ot = P.create({
511
511
  name: "horizontalRule",
512
512
  addOptions() {
513
513
  return {
@@ -528,12 +528,12 @@ ${o}
528
528
  addCommands() {
529
529
  return {
530
530
  setHorizontalRule: () => ({ chain: e, state: a }) => {
531
- if (!ot(a, a.schema.nodes[this.name]))
531
+ if (!tt(a, a.schema.nodes[this.name]))
532
532
  return !1;
533
- const { selection: o } = a, { $to: s } = o, t = e();
534
- return vo(o) ? t.insertContentAt(s.pos, {
533
+ const { selection: o } = a, { $to: t } = o, s = e();
534
+ return Fo(o) ? s.insertContentAt(t.pos, {
535
535
  type: this.name
536
- }) : t.insertContent({ type: this.name }), t.command(({ state: n, tr: i, dispatch: r }) => {
536
+ }) : s.insertContent({ type: this.name }), s.command(({ state: n, tr: i, dispatch: r }) => {
537
537
  if (r) {
538
538
  const { $to: p } = i.selection, l = p.end();
539
539
  if (p.nodeAfter)
@@ -557,7 +557,7 @@ ${o}
557
557
  })
558
558
  ];
559
559
  }
560
- }), Ot = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, qt = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, $t = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Ut = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Gt = me.create({
560
+ }), qt = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, $t = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Ut = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Gt = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Kt = me.create({
561
561
  name: "italic",
562
562
  addOptions() {
563
563
  return {
@@ -604,11 +604,11 @@ ${o}
604
604
  addInputRules() {
605
605
  return [
606
606
  de({
607
- find: Ot,
607
+ find: qt,
608
608
  type: this.type
609
609
  }),
610
610
  de({
611
- find: $t,
611
+ find: Ut,
612
612
  type: this.type
613
613
  })
614
614
  ];
@@ -616,31 +616,31 @@ ${o}
616
616
  addPasteRules() {
617
617
  return [
618
618
  le({
619
- find: qt,
619
+ find: $t,
620
620
  type: this.type
621
621
  }),
622
622
  le({
623
- find: Ut,
623
+ find: Gt,
624
624
  type: this.type
625
625
  })
626
626
  ];
627
627
  }
628
628
  });
629
- const Kt = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Wt = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", xa = "numeric", Ta = "ascii", La = "alpha", _e = "asciinumeric", ke = "alphanumeric", Ma = "domain", Eo = "emoji", Vt = "scheme", Xt = "slashscheme", Fa = "whitespace";
630
- function Yt(e, a) {
629
+ const Wt = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Vt = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", xa = "numeric", Ta = "ascii", La = "alpha", _e = "asciinumeric", ke = "alphanumeric", Ma = "domain", Co = "emoji", Xt = "scheme", Yt = "slashscheme", Fa = "whitespace";
630
+ function Jt(e, a) {
631
631
  return e in a || (a[e] = []), a[e];
632
632
  }
633
633
  function ie(e, a, o) {
634
- a[xa] && (a[_e] = !0, a[ke] = !0), a[Ta] && (a[_e] = !0, a[La] = !0), a[_e] && (a[ke] = !0), a[La] && (a[ke] = !0), a[ke] && (a[Ma] = !0), a[Eo] && (a[Ma] = !0);
635
- for (const s in a) {
636
- const t = Yt(s, o);
637
- t.indexOf(e) < 0 && t.push(e);
634
+ a[xa] && (a[_e] = !0, a[ke] = !0), a[Ta] && (a[_e] = !0, a[La] = !0), a[_e] && (a[ke] = !0), a[La] && (a[ke] = !0), a[ke] && (a[Ma] = !0), a[Co] && (a[Ma] = !0);
635
+ for (const t in a) {
636
+ const s = Jt(t, o);
637
+ s.indexOf(e) < 0 && s.push(e);
638
638
  }
639
639
  }
640
- function Jt(e, a) {
640
+ function Qt(e, a) {
641
641
  const o = {};
642
- for (const s in a)
643
- a[s].indexOf(e) >= 0 && (o[s] = !0);
642
+ for (const t in a)
643
+ a[t].indexOf(e) >= 0 && (o[t] = !0);
644
644
  return o;
645
645
  }
646
646
  function q(e = null) {
@@ -661,9 +661,9 @@ q.prototype = {
661
661
  const a = this, o = a.j[e];
662
662
  if (o)
663
663
  return o;
664
- for (let s = 0; s < a.jr.length; s++) {
665
- const t = a.jr[s][0], n = a.jr[s][1];
666
- if (n && t.test(e))
664
+ for (let t = 0; t < a.jr.length; t++) {
665
+ const s = a.jr[t][0], n = a.jr[t][1];
666
+ if (n && s.test(e))
667
667
  return n;
668
668
  }
669
669
  return a.jd;
@@ -686,9 +686,9 @@ q.prototype = {
686
686
  * @param {Flags} [flags] Collections flags to add token to
687
687
  * @param {Collections<T>} [groups] Master list of token groups
688
688
  */
689
- ta(e, a, o, s) {
690
- for (let t = 0; t < e.length; t++)
691
- this.tt(e[t], a, o, s);
689
+ ta(e, a, o, t) {
690
+ for (let s = 0; s < e.length; s++)
691
+ this.tt(e[s], a, o, t);
692
692
  },
693
693
  /**
694
694
  * Short for "take regexp transition"; defines a transition for this state
@@ -699,10 +699,10 @@ q.prototype = {
699
699
  * @param {Collections<T>} [groups] Master list of token groups
700
700
  * @returns {State<T>} taken after the given input
701
701
  */
702
- tr(e, a, o, s) {
703
- s = s || q.groups;
704
- let t;
705
- return a && a.j ? t = a : (t = new q(a), o && s && ie(a, o, s)), this.jr.push([e, t]), t;
702
+ tr(e, a, o, t) {
703
+ t = t || q.groups;
704
+ let s;
705
+ return a && a.j ? s = a : (s = new q(a), o && t && ie(a, o, t)), this.jr.push([e, s]), s;
706
706
  },
707
707
  /**
708
708
  * Short for "take transitions", will take as many sequential transitions as
@@ -714,14 +714,14 @@ q.prototype = {
714
714
  * @param {Collections<T>} [groups] Master list of token groups
715
715
  * @returns {State<T>} taken after the given input
716
716
  */
717
- ts(e, a, o, s) {
718
- let t = this;
717
+ ts(e, a, o, t) {
718
+ let s = this;
719
719
  const n = e.length;
720
720
  if (!n)
721
- return t;
721
+ return s;
722
722
  for (let i = 0; i < n - 1; i++)
723
- t = t.tt(e[i]);
724
- return t.tt(e[n - 1], a, o, s);
723
+ s = s.tt(e[i]);
724
+ return s.tt(e[n - 1], a, o, t);
725
725
  },
726
726
  /**
727
727
  * Short for "take transition", this is a method for building/working with
@@ -749,31 +749,31 @@ q.prototype = {
749
749
  * @param {Collections<T>} [groups] Master list of groups
750
750
  * @returns {State<T>} taken after the given input
751
751
  */
752
- tt(e, a, o, s) {
753
- s = s || q.groups;
754
- const t = this;
752
+ tt(e, a, o, t) {
753
+ t = t || q.groups;
754
+ const s = this;
755
755
  if (a && a.j)
756
- return t.j[e] = a, a;
756
+ return s.j[e] = a, a;
757
757
  const n = a;
758
- let i, r = t.go(e);
758
+ let i, r = s.go(e);
759
759
  if (r ? (i = new q(), Object.assign(i.j, r.j), i.jr.push.apply(i.jr, r.jr), i.jd = r.jd, i.t = r.t) : i = new q(), n) {
760
- if (s)
760
+ if (t)
761
761
  if (i.t && typeof i.t == "string") {
762
- const p = Object.assign(Jt(i.t, s), o);
763
- ie(n, p, s);
764
- } else o && ie(n, o, s);
762
+ const p = Object.assign(Qt(i.t, t), o);
763
+ ie(n, p, t);
764
+ } else o && ie(n, o, t);
765
765
  i.t = n;
766
766
  }
767
- return t.j[e] = i, i;
767
+ return s.j[e] = i, i;
768
768
  }
769
769
  };
770
- const k = (e, a, o, s, t) => e.ta(a, o, s, t), E = (e, a, o, s, t) => e.tr(a, o, s, t), to = (e, a, o, s, t) => e.ts(a, o, s, t), u = (e, a, o, s, t) => e.tt(a, o, s, t), ee = "WORD", Sa = "UWORD", Co = "ASCIINUMERICAL", Ao = "ALPHANUMERICAL", Ae = "LOCALHOST", za = "TLD", Ra = "UTLD", Ne = "SCHEME", ge = "SLASH_SCHEME", $a = "NUM", Ha = "WS", Ua = "NL", De = "OPENBRACE", ye = "CLOSEBRACE", qe = "OPENBRACKET", $e = "CLOSEBRACKET", Ue = "OPENPAREN", Ge = "CLOSEPAREN", Ke = "OPENANGLEBRACKET", We = "CLOSEANGLEBRACKET", Ve = "FULLWIDTHLEFTPAREN", Xe = "FULLWIDTHRIGHTPAREN", Ye = "LEFTCORNERBRACKET", Je = "RIGHTCORNERBRACKET", Qe = "LEFTWHITECORNERBRACKET", Ze = "RIGHTWHITECORNERBRACKET", ea = "FULLWIDTHLESSTHAN", aa = "FULLWIDTHGREATERTHAN", oa = "AMPERSAND", ta = "APOSTROPHE", sa = "ASTERISK", oe = "AT", na = "BACKSLASH", ia = "BACKTICK", ra = "CARET", se = "COLON", Ga = "COMMA", pa = "DOLLAR", X = "DOT", la = "EQUALS", Ka = "EXCLAMATION", G = "HYPHEN", Ie = "PERCENT", ma = "PIPE", ca = "PLUS", ga = "POUND", we = "QUERY", Wa = "QUOTE", Bo = "FULLWIDTHMIDDLEDOT", Va = "SEMI", Y = "SLASH", Ee = "TILDE", ua = "UNDERSCORE", xo = "EMOJI", da = "SYM";
771
- var To = /* @__PURE__ */ Object.freeze({
770
+ const k = (e, a, o, t, s) => e.ta(a, o, t, s), E = (e, a, o, t, s) => e.tr(a, o, t, s), to = (e, a, o, t, s) => e.ts(a, o, t, s), u = (e, a, o, t, s) => e.tt(a, o, t, s), ee = "WORD", Sa = "UWORD", Ao = "ASCIINUMERICAL", Bo = "ALPHANUMERICAL", Ae = "LOCALHOST", za = "TLD", Ra = "UTLD", Ne = "SCHEME", ge = "SLASH_SCHEME", $a = "NUM", Ha = "WS", Ua = "NL", De = "OPENBRACE", ye = "CLOSEBRACE", qe = "OPENBRACKET", $e = "CLOSEBRACKET", Ue = "OPENPAREN", Ge = "CLOSEPAREN", Ke = "OPENANGLEBRACKET", We = "CLOSEANGLEBRACKET", Ve = "FULLWIDTHLEFTPAREN", Xe = "FULLWIDTHRIGHTPAREN", Ye = "LEFTCORNERBRACKET", Je = "RIGHTCORNERBRACKET", Qe = "LEFTWHITECORNERBRACKET", Ze = "RIGHTWHITECORNERBRACKET", ea = "FULLWIDTHLESSTHAN", aa = "FULLWIDTHGREATERTHAN", oa = "AMPERSAND", ta = "APOSTROPHE", sa = "ASTERISK", oe = "AT", na = "BACKSLASH", ia = "BACKTICK", ra = "CARET", se = "COLON", Ga = "COMMA", pa = "DOLLAR", X = "DOT", la = "EQUALS", Ka = "EXCLAMATION", G = "HYPHEN", Ie = "PERCENT", ma = "PIPE", ca = "PLUS", ga = "POUND", we = "QUERY", Wa = "QUOTE", xo = "FULLWIDTHMIDDLEDOT", Va = "SEMI", Y = "SLASH", Ee = "TILDE", ua = "UNDERSCORE", To = "EMOJI", da = "SYM";
771
+ var Lo = /* @__PURE__ */ Object.freeze({
772
772
  __proto__: null,
773
- ALPHANUMERICAL: Ao,
773
+ ALPHANUMERICAL: Bo,
774
774
  AMPERSAND: oa,
775
775
  APOSTROPHE: ta,
776
- ASCIINUMERICAL: Co,
776
+ ASCIINUMERICAL: Ao,
777
777
  ASTERISK: sa,
778
778
  AT: oe,
779
779
  BACKSLASH: na,
@@ -787,13 +787,13 @@ var To = /* @__PURE__ */ Object.freeze({
787
787
  COMMA: Ga,
788
788
  DOLLAR: pa,
789
789
  DOT: X,
790
- EMOJI: xo,
790
+ EMOJI: To,
791
791
  EQUALS: la,
792
792
  EXCLAMATION: Ka,
793
793
  FULLWIDTHGREATERTHAN: aa,
794
794
  FULLWIDTHLEFTPAREN: Ve,
795
795
  FULLWIDTHLESSTHAN: ea,
796
- FULLWIDTHMIDDLEDOT: Bo,
796
+ FULLWIDTHMIDDLEDOT: xo,
797
797
  FULLWIDTHRIGHTPAREN: Xe,
798
798
  HYPHEN: G,
799
799
  LEFTCORNERBRACKET: Ye,
@@ -827,25 +827,25 @@ var To = /* @__PURE__ */ Object.freeze({
827
827
  WS: Ha
828
828
  });
829
829
  const Q = /[a-z]/, ve = new RegExp("\\p{L}", "u"), ka = new RegExp("\\p{Emoji}", "u"), Z = /\d/, _a = /\s/, so = "\r", Da = `
830
- `, Qt = "️", Zt = "‍", ya = "";
830
+ `, Zt = "️", es = "‍", ya = "";
831
831
  let Se = null, ze = null;
832
- function es(e = []) {
832
+ function as(e = []) {
833
833
  const a = {};
834
834
  q.groups = a;
835
835
  const o = new q();
836
- Se == null && (Se = no(Kt)), ze == null && (ze = no(Wt)), u(o, "'", ta), u(o, "{", De), u(o, "}", ye), u(o, "[", qe), u(o, "]", $e), u(o, "(", Ue), u(o, ")", Ge), u(o, "<", Ke), u(o, ">", We), u(o, "(", Ve), u(o, ")", Xe), u(o, "「", Ye), u(o, "」", Je), u(o, "『", Qe), u(o, "』", Ze), u(o, "<", ea), u(o, ">", aa), u(o, "&", oa), u(o, "*", sa), u(o, "@", oe), u(o, "`", ia), u(o, "^", ra), u(o, ":", se), u(o, ",", Ga), u(o, "$", pa), u(o, ".", X), u(o, "=", la), u(o, "!", Ka), u(o, "-", G), u(o, "%", Ie), u(o, "|", ma), u(o, "+", ca), u(o, "#", ga), u(o, "?", we), u(o, '"', Wa), u(o, "/", Y), u(o, ";", Va), u(o, "~", Ee), u(o, "_", ua), u(o, "\\", na), u(o, "・", Bo);
837
- const s = E(o, Z, $a, {
836
+ Se == null && (Se = no(Wt)), ze == null && (ze = no(Vt)), u(o, "'", ta), u(o, "{", De), u(o, "}", ye), u(o, "[", qe), u(o, "]", $e), u(o, "(", Ue), u(o, ")", Ge), u(o, "<", Ke), u(o, ">", We), u(o, "(", Ve), u(o, ")", Xe), u(o, "「", Ye), u(o, "」", Je), u(o, "『", Qe), u(o, "』", Ze), u(o, "<", ea), u(o, ">", aa), u(o, "&", oa), u(o, "*", sa), u(o, "@", oe), u(o, "`", ia), u(o, "^", ra), u(o, ":", se), u(o, ",", Ga), u(o, "$", pa), u(o, ".", X), u(o, "=", la), u(o, "!", Ka), u(o, "-", G), u(o, "%", Ie), u(o, "|", ma), u(o, "+", ca), u(o, "#", ga), u(o, "?", we), u(o, '"', Wa), u(o, "/", Y), u(o, ";", Va), u(o, "~", Ee), u(o, "_", ua), u(o, "\\", na), u(o, "・", xo);
837
+ const t = E(o, Z, $a, {
838
838
  [xa]: !0
839
839
  });
840
- E(s, Z, s);
841
- const t = E(s, Q, Co, {
840
+ E(t, Z, t);
841
+ const s = E(t, Q, Ao, {
842
842
  [_e]: !0
843
- }), n = E(s, ve, Ao, {
843
+ }), n = E(t, ve, Bo, {
844
844
  [ke]: !0
845
845
  }), i = E(o, Q, ee, {
846
846
  [Ta]: !0
847
847
  });
848
- E(i, Z, t), E(i, Q, i), E(t, Z, t), E(t, Q, t);
848
+ E(i, Z, s), E(i, Q, i), E(s, Z, s), E(s, Q, s);
849
849
  const r = E(o, ve, Sa, {
850
850
  [La]: !0
851
851
  });
@@ -858,13 +858,13 @@ function es(e = []) {
858
858
  [Fa]: !0
859
859
  });
860
860
  u(o, ya, c), u(l, Da, p), u(l, ya, c), E(l, _a, c), u(c, so), u(c, Da), E(c, _a, c), u(c, ya, c);
861
- const m = E(o, ka, xo, {
862
- [Eo]: !0
861
+ const m = E(o, ka, To, {
862
+ [Co]: !0
863
863
  });
864
- u(m, "#"), E(m, ka, m), u(m, Qt, m);
865
- const g = u(m, Zt);
864
+ u(m, "#"), E(m, ka, m), u(m, Zt, m);
865
+ const g = u(m, es);
866
866
  u(g, "#"), E(g, ka, m);
867
- const d = [[Q, i], [Z, t]], j = [[Q, null], [ve, r], [Z, n]];
867
+ const d = [[Q, i], [Z, s]], j = [[Q, null], [ve, r], [Z, n]];
868
868
  for (let b = 0; b < Se.length; b++)
869
869
  ae(o, Se[b], za, ee, d);
870
870
  for (let b = 0; b < ze.length; b++)
@@ -883,12 +883,12 @@ function es(e = []) {
883
883
  ascii: !0
884
884
  }, a), e = e.sort((b, h) => b[0] > h[0] ? 1 : -1);
885
885
  for (let b = 0; b < e.length; b++) {
886
- const h = e[b][0], D = e[b][1] ? {
887
- [Vt]: !0
888
- } : {
886
+ const h = e[b][0], _ = e[b][1] ? {
889
887
  [Xt]: !0
888
+ } : {
889
+ [Yt]: !0
890
890
  };
891
- h.indexOf("-") >= 0 ? D[Ma] = !0 : Q.test(h) ? Z.test(h) ? D[_e] = !0 : D[Ta] = !0 : D[xa] = !0, to(o, h, h, D);
891
+ h.indexOf("-") >= 0 ? _[Ma] = !0 : Q.test(h) ? Z.test(h) ? _[_e] = !0 : _[Ta] = !0 : _[xa] = !0, to(o, h, h, _);
892
892
  }
893
893
  return to(o, "localhost", Ae, {
894
894
  ascii: !0
@@ -896,17 +896,17 @@ function es(e = []) {
896
896
  start: o,
897
897
  tokens: Object.assign({
898
898
  groups: a
899
- }, To)
899
+ }, Lo)
900
900
  };
901
901
  }
902
- function Lo(e, a) {
903
- const o = as(a.replace(/[A-Z]/g, (r) => r.toLowerCase())), s = o.length, t = [];
902
+ function Mo(e, a) {
903
+ const o = os(a.replace(/[A-Z]/g, (r) => r.toLowerCase())), t = o.length, s = [];
904
904
  let n = 0, i = 0;
905
- for (; i < s; ) {
905
+ for (; i < t; ) {
906
906
  let r = e, p = null, l = 0, c = null, m = -1, g = -1;
907
- for (; i < s && (p = r.go(o[i])); )
907
+ for (; i < t && (p = r.go(o[i])); )
908
908
  r = p, r.accepts() ? (m = 0, g = 0, c = r) : m >= 0 && (m += o[i].length, g++), l += o[i].length, n += o[i].length, i++;
909
- n -= m, i -= g, l -= m, t.push({
909
+ n -= m, i -= g, l -= m, s.push({
910
910
  t: c.t,
911
911
  // token type/name
912
912
  v: a.slice(n - l, n),
@@ -917,40 +917,40 @@ function Lo(e, a) {
917
917
  // end index (excluding)
918
918
  });
919
919
  }
920
- return t;
920
+ return s;
921
921
  }
922
- function as(e) {
922
+ function os(e) {
923
923
  const a = [], o = e.length;
924
- let s = 0;
925
- for (; s < o; ) {
926
- let t = e.charCodeAt(s), n, i = t < 55296 || t > 56319 || s + 1 === o || (n = e.charCodeAt(s + 1)) < 56320 || n > 57343 ? e[s] : e.slice(s, s + 2);
927
- a.push(i), s += i.length;
924
+ let t = 0;
925
+ for (; t < o; ) {
926
+ let s = e.charCodeAt(t), n, i = s < 55296 || s > 56319 || t + 1 === o || (n = e.charCodeAt(t + 1)) < 56320 || n > 57343 ? e[t] : e.slice(t, t + 2);
927
+ a.push(i), t += i.length;
928
928
  }
929
929
  return a;
930
930
  }
931
- function ae(e, a, o, s, t) {
931
+ function ae(e, a, o, t, s) {
932
932
  let n;
933
933
  const i = a.length;
934
934
  for (let r = 0; r < i - 1; r++) {
935
935
  const p = a[r];
936
- e.j[p] ? n = e.j[p] : (n = new q(s), n.jr = t.slice(), e.j[p] = n), e = n;
936
+ e.j[p] ? n = e.j[p] : (n = new q(t), n.jr = s.slice(), e.j[p] = n), e = n;
937
937
  }
938
- return n = new q(o), n.jr = t.slice(), e.j[a[i - 1]] = n, n;
938
+ return n = new q(o), n.jr = s.slice(), e.j[a[i - 1]] = n, n;
939
939
  }
940
940
  function no(e) {
941
941
  const a = [], o = [];
942
- let s = 0, t = "0123456789";
943
- for (; s < e.length; ) {
942
+ let t = 0, s = "0123456789";
943
+ for (; t < e.length; ) {
944
944
  let n = 0;
945
- for (; t.indexOf(e[s + n]) >= 0; )
945
+ for (; s.indexOf(e[t + n]) >= 0; )
946
946
  n++;
947
947
  if (n > 0) {
948
948
  a.push(o.join(""));
949
- for (let i = parseInt(e.substring(s, s + n), 10); i > 0; i--)
949
+ for (let i = parseInt(e.substring(t, t + n), 10); i > 0; i--)
950
950
  o.pop();
951
- s += n;
951
+ t += n;
952
952
  } else
953
- o.push(e[s]), s++;
953
+ o.push(e[t]), t++;
954
954
  }
955
955
  return a;
956
956
  }
@@ -973,10 +973,10 @@ const Be = {
973
973
  function Xa(e, a = null) {
974
974
  let o = Object.assign({}, Be);
975
975
  e && (o = Object.assign(o, e instanceof Xa ? e.o : e));
976
- const s = o.ignoreTags, t = [];
977
- for (let n = 0; n < s.length; n++)
978
- t.push(s[n].toUpperCase());
979
- this.o = o, a && (this.defaultRender = a), this.ignoreTags = t;
976
+ const t = o.ignoreTags, s = [];
977
+ for (let n = 0; n < t.length; n++)
978
+ s.push(t[n].toUpperCase());
979
+ this.o = o, a && (this.defaultRender = a), this.ignoreTags = s;
980
980
  }
981
981
  Xa.prototype = {
982
982
  o: Be,
@@ -1013,9 +1013,9 @@ Xa.prototype = {
1013
1013
  * @returns {Opts[K] | any}
1014
1014
  */
1015
1015
  get(e, a, o) {
1016
- const s = a != null;
1017
- let t = this.o[e];
1018
- return t && (typeof t == "object" ? (t = o.t in t ? t[o.t] : Be[e], typeof t == "function" && s && (t = t(a, o))) : typeof t == "function" && s && (t = t(a, o.t, o)), t);
1016
+ const t = a != null;
1017
+ let s = this.o[e];
1018
+ return s && (typeof s == "object" ? (s = o.t in s ? s[o.t] : Be[e], typeof s == "function" && t && (s = s(a, o))) : typeof s == "function" && t && (s = s(a, o.t, o)), s);
1019
1019
  },
1020
1020
  /**
1021
1021
  * @template {keyof Opts} L
@@ -1025,8 +1025,8 @@ Xa.prototype = {
1025
1025
  * @returns {Opts[L] | any}
1026
1026
  */
1027
1027
  getObj(e, a, o) {
1028
- let s = this.o[e];
1029
- return typeof s == "function" && a != null && (s = s(a, o.t, o)), s;
1028
+ let t = this.o[e];
1029
+ return typeof t == "function" && a != null && (t = t(a, o.t, o)), t;
1030
1030
  },
1031
1031
  /**
1032
1032
  * Convert the given token to a rendered element that may be added to the
@@ -1043,10 +1043,10 @@ Xa.prototype = {
1043
1043
  function io(e) {
1044
1044
  return e;
1045
1045
  }
1046
- function Mo(e, a) {
1046
+ function So(e, a) {
1047
1047
  this.t = "token", this.v = e, this.tk = a;
1048
1048
  }
1049
- Mo.prototype = {
1049
+ So.prototype = {
1050
1050
  isLink: !1,
1051
1051
  /**
1052
1052
  * Return the string this token represents.
@@ -1069,8 +1069,8 @@ Mo.prototype = {
1069
1069
  * @returns {string}
1070
1070
  */
1071
1071
  toFormattedString(e) {
1072
- const a = this.toString(), o = e.get("truncate", a, this), s = e.get("format", a, this);
1073
- return o && s.length > o ? s.substring(0, o) + "…" : s;
1072
+ const a = this.toString(), o = e.get("truncate", a, this), t = e.get("format", a, this);
1073
+ return o && t.length > o ? t.substring(0, o) + "…" : t;
1074
1074
  },
1075
1075
  /**
1076
1076
  *
@@ -1141,9 +1141,9 @@ Mo.prototype = {
1141
1141
  * @param {Options} options Formattinng options
1142
1142
  */
1143
1143
  render(e) {
1144
- const a = this, o = this.toHref(e.get("defaultProtocol")), s = e.get("formatHref", o, this), t = e.get("tagName", o, a), n = this.toFormattedString(e), i = {}, r = e.get("className", o, a), p = e.get("target", o, a), l = e.get("rel", o, a), c = e.getObj("attributes", o, a), m = e.getObj("events", o, a);
1145
- return i.href = s, r && (i.class = r), p && (i.target = p), l && (i.rel = l), c && Object.assign(i, c), {
1146
- tagName: t,
1144
+ const a = this, o = this.toHref(e.get("defaultProtocol")), t = e.get("formatHref", o, this), s = e.get("tagName", o, a), n = this.toFormattedString(e), i = {}, r = e.get("className", o, a), p = e.get("target", o, a), l = e.get("rel", o, a), c = e.getObj("attributes", o, a), m = e.getObj("events", o, a);
1145
+ return i.href = t, r && (i.class = r), p && (i.target = p), l && (i.rel = l), c && Object.assign(i, c), {
1146
+ tagName: s,
1147
1147
  attributes: i,
1148
1148
  content: n,
1149
1149
  eventListeners: m
@@ -1151,13 +1151,13 @@ Mo.prototype = {
1151
1151
  }
1152
1152
  };
1153
1153
  function ha(e, a) {
1154
- class o extends Mo {
1155
- constructor(t, n) {
1156
- super(t, n), this.t = e;
1154
+ class o extends So {
1155
+ constructor(s, n) {
1156
+ super(s, n), this.t = e;
1157
1157
  }
1158
1158
  }
1159
- for (const s in a)
1160
- o.prototype[s] = a[s];
1159
+ for (const t in a)
1160
+ o.prototype[t] = a[t];
1161
1161
  return o.t = e, o;
1162
1162
  }
1163
1163
  const ro = ha("email", {
@@ -1165,7 +1165,7 @@ const ro = ha("email", {
1165
1165
  toHref() {
1166
1166
  return "mailto:" + this.toString();
1167
1167
  }
1168
- }), po = ha("text"), os = ha("nl"), Re = ha("url", {
1168
+ }), po = ha("text"), ts = ha("nl"), Re = ha("url", {
1169
1169
  isLink: !0,
1170
1170
  /**
1171
1171
  Lowercases relevant parts of the domain and adds the protocol if
@@ -1186,17 +1186,17 @@ const ro = ha("email", {
1186
1186
  return e.length >= 2 && e[0].t !== Ae && e[1].t === se;
1187
1187
  }
1188
1188
  }), U = (e) => new q(e);
1189
- function ts({
1189
+ function ss({
1190
1190
  groups: e
1191
1191
  }) {
1192
- const a = e.domain.concat([oa, sa, oe, na, ia, ra, pa, la, G, $a, Ie, ma, ca, ga, Y, da, Ee, ua]), o = [ta, se, Ga, X, Ka, Ie, we, Wa, Va, Ke, We, De, ye, $e, qe, Ue, Ge, Ve, Xe, Ye, Je, Qe, Ze, ea, aa], s = [oa, ta, sa, na, ia, ra, pa, la, G, De, ye, Ie, ma, ca, ga, we, Y, da, Ee, ua], t = U(), n = u(t, Ee);
1193
- k(n, s, n), k(n, e.domain, n);
1192
+ const a = e.domain.concat([oa, sa, oe, na, ia, ra, pa, la, G, $a, Ie, ma, ca, ga, Y, da, Ee, ua]), o = [ta, se, Ga, X, Ka, Ie, we, Wa, Va, Ke, We, De, ye, $e, qe, Ue, Ge, Ve, Xe, Ye, Je, Qe, Ze, ea, aa], t = [oa, ta, sa, na, ia, ra, pa, la, G, De, ye, Ie, ma, ca, ga, we, Y, da, Ee, ua], s = U(), n = u(s, Ee);
1193
+ k(n, t, n), k(n, e.domain, n);
1194
1194
  const i = U(), r = U(), p = U();
1195
- k(t, e.domain, i), k(t, e.scheme, r), k(t, e.slashscheme, p), k(i, s, n), k(i, e.domain, i);
1195
+ k(s, e.domain, i), k(s, e.scheme, r), k(s, e.slashscheme, p), k(i, t, n), k(i, e.domain, i);
1196
1196
  const l = u(i, oe);
1197
1197
  u(n, oe, l), u(r, oe, l), u(p, oe, l);
1198
1198
  const c = u(n, X);
1199
- k(c, s, n), k(c, e.domain, n);
1199
+ k(c, t, n), k(c, e.domain, n);
1200
1200
  const m = U();
1201
1201
  k(l, e.domain, m), k(m, e.domain, m);
1202
1202
  const g = u(m, X);
@@ -1208,15 +1208,15 @@ function ts({
1208
1208
  const b = u(d, se);
1209
1209
  k(b, e.numeric, ro);
1210
1210
  const h = u(i, G), f = u(i, X);
1211
- u(h, G, h), k(h, e.domain, i), k(f, s, n), k(f, e.domain, i);
1212
- const D = U(Re);
1213
- k(f, e.tld, D), k(f, e.utld, D), k(D, e.domain, i), k(D, s, n), u(D, X, f), u(D, G, h), u(D, oe, l);
1214
- const $ = u(D, se), R = U(Re);
1211
+ u(h, G, h), k(h, e.domain, i), k(f, t, n), k(f, e.domain, i);
1212
+ const _ = U(Re);
1213
+ k(f, e.tld, _), k(f, e.utld, _), k(_, e.domain, i), k(_, t, n), u(_, X, f), u(_, G, h), u(_, oe, l);
1214
+ const $ = u(_, se), R = U(Re);
1215
1215
  k($, e.numeric, R);
1216
1216
  const w = U(Re), v = U();
1217
- k(w, a, w), k(w, o, v), k(v, a, w), k(v, o, v), u(D, Y, w), u(R, Y, w);
1218
- const y = u(r, se), B = u(p, se), z = u(B, Y), _ = u(z, Y);
1219
- k(r, e.domain, i), u(r, X, f), u(r, G, h), k(p, e.domain, i), u(p, X, f), u(p, G, h), k(y, e.domain, w), u(y, Y, w), u(y, we, w), k(_, e.domain, w), k(_, a, w), u(_, Y, w);
1217
+ k(w, a, w), k(w, o, v), k(v, a, w), k(v, o, v), u(_, Y, w), u(R, Y, w);
1218
+ const y = u(r, se), B = u(p, se), z = u(B, Y), D = u(z, Y);
1219
+ k(r, e.domain, i), u(r, X, f), u(r, G, h), k(p, e.domain, i), u(p, X, f), u(p, G, h), k(y, e.domain, w), u(y, Y, w), u(y, we, w), k(D, e.domain, w), k(D, a, w), u(D, Y, w);
1220
1220
  const x = [
1221
1221
  [De, ye],
1222
1222
  // {}
@@ -1243,35 +1243,35 @@ function ts({
1243
1243
  const L = U();
1244
1244
  k(F, o), k(T, a, T), k(T, o, L), k(L, a, T), k(L, o, L), u(T, V, w), u(L, V, w);
1245
1245
  }
1246
- return u(t, Ae, D), u(t, Ua, os), {
1247
- start: t,
1248
- tokens: To
1246
+ return u(s, Ae, _), u(s, Ua, ts), {
1247
+ start: s,
1248
+ tokens: Lo
1249
1249
  };
1250
1250
  }
1251
- function ss(e, a, o) {
1252
- let s = o.length, t = 0, n = [], i = [];
1253
- for (; t < s; ) {
1251
+ function ns(e, a, o) {
1252
+ let t = o.length, s = 0, n = [], i = [];
1253
+ for (; s < t; ) {
1254
1254
  let r = e, p = null, l = null, c = 0, m = null, g = -1;
1255
- for (; t < s && !(p = r.go(o[t].t)); )
1256
- i.push(o[t++]);
1257
- for (; t < s && (l = p || r.go(o[t].t)); )
1258
- p = null, r = l, r.accepts() ? (g = 0, m = r) : g >= 0 && g++, t++, c++;
1255
+ for (; s < t && !(p = r.go(o[s].t)); )
1256
+ i.push(o[s++]);
1257
+ for (; s < t && (l = p || r.go(o[s].t)); )
1258
+ p = null, r = l, r.accepts() ? (g = 0, m = r) : g >= 0 && g++, s++, c++;
1259
1259
  if (g < 0)
1260
- t -= c, t < s && (i.push(o[t]), t++);
1260
+ s -= c, s < t && (i.push(o[s]), s++);
1261
1261
  else {
1262
- i.length > 0 && (n.push(Ia(po, a, i)), i = []), t -= g, c -= g;
1263
- const d = m.t, j = o.slice(t - c, t);
1262
+ i.length > 0 && (n.push(Ia(po, a, i)), i = []), s -= g, c -= g;
1263
+ const d = m.t, j = o.slice(s - c, s);
1264
1264
  n.push(Ia(d, a, j));
1265
1265
  }
1266
1266
  }
1267
1267
  return i.length > 0 && n.push(Ia(po, a, i)), n;
1268
1268
  }
1269
1269
  function Ia(e, a, o) {
1270
- const s = o[0].s, t = o[o.length - 1].e, n = a.slice(s, t);
1270
+ const t = o[0].s, s = o[o.length - 1].e, n = a.slice(t, s);
1271
1271
  return new e(n, o);
1272
1272
  }
1273
- const ns = typeof console < "u" && console && console.warn || (() => {
1274
- }), is = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", I = {
1273
+ const is = typeof console < "u" && console && console.warn || (() => {
1274
+ }), rs = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", I = {
1275
1275
  scanner: null,
1276
1276
  parser: null,
1277
1277
  tokenQueue: [],
@@ -1279,24 +1279,24 @@ const ns = typeof console < "u" && console && console.warn || (() => {
1279
1279
  customSchemes: [],
1280
1280
  initialized: !1
1281
1281
  };
1282
- function rs() {
1282
+ function ps() {
1283
1283
  return q.groups = {}, I.scanner = null, I.parser = null, I.tokenQueue = [], I.pluginQueue = [], I.customSchemes = [], I.initialized = !1, I;
1284
1284
  }
1285
1285
  function lo(e, a = !1) {
1286
- if (I.initialized && ns(`linkifyjs: already initialized - will not register custom scheme "${e}" ${is}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))
1286
+ if (I.initialized && is(`linkifyjs: already initialized - will not register custom scheme "${e}" ${rs}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))
1287
1287
  throw new Error(`linkifyjs: incorrect scheme format.
1288
1288
  1. Must only contain digits, lowercase ASCII letters or "-"
1289
1289
  2. Cannot start or end with "-"
1290
1290
  3. "-" cannot repeat`);
1291
1291
  I.customSchemes.push([e, a]);
1292
1292
  }
1293
- function ps() {
1294
- I.scanner = es(I.customSchemes);
1293
+ function ls() {
1294
+ I.scanner = as(I.customSchemes);
1295
1295
  for (let e = 0; e < I.tokenQueue.length; e++)
1296
1296
  I.tokenQueue[e][1]({
1297
1297
  scanner: I.scanner
1298
1298
  });
1299
- I.parser = ts(I.scanner.tokens);
1299
+ I.parser = ss(I.scanner.tokens);
1300
1300
  for (let e = 0; e < I.pluginQueue.length; e++)
1301
1301
  I.pluginQueue[e][1]({
1302
1302
  scanner: I.scanner,
@@ -1305,66 +1305,66 @@ function ps() {
1305
1305
  return I.initialized = !0, I;
1306
1306
  }
1307
1307
  function Ya(e) {
1308
- return I.initialized || ps(), ss(I.parser.start, e, Lo(I.scanner.start, e));
1308
+ return I.initialized || ls(), ns(I.parser.start, e, Mo(I.scanner.start, e));
1309
1309
  }
1310
- Ya.scan = Lo;
1311
- function So(e, a = null, o = null) {
1310
+ Ya.scan = Mo;
1311
+ function zo(e, a = null, o = null) {
1312
1312
  if (a && typeof a == "object") {
1313
1313
  if (o)
1314
1314
  throw Error(`linkifyjs: Invalid link type ${a}; must be a string`);
1315
1315
  o = a, a = null;
1316
1316
  }
1317
- const s = new Xa(o), t = Ya(e), n = [];
1318
- for (let i = 0; i < t.length; i++) {
1319
- const r = t[i];
1320
- r.isLink && (!a || r.t === a) && s.check(r) && n.push(r.toFormattedObject(s));
1317
+ const t = new Xa(o), s = Ya(e), n = [];
1318
+ for (let i = 0; i < s.length; i++) {
1319
+ const r = s[i];
1320
+ r.isLink && (!a || r.t === a) && t.check(r) && n.push(r.toFormattedObject(t));
1321
1321
  }
1322
1322
  return n;
1323
1323
  }
1324
- var Ja = "[\0-   ᠎ -\u2029  ]", ls = new RegExp(Ja), ms = new RegExp(`${Ja}$`), cs = new RegExp(Ja, "g");
1325
- function gs(e) {
1324
+ var Ja = "[\0-   ᠎ -\u2029  ]", ms = new RegExp(Ja), cs = new RegExp(`${Ja}$`), gs = new RegExp(Ja, "g");
1325
+ function us(e) {
1326
1326
  return e.length === 1 ? e[0].isLink : e.length === 3 && e[1].isLink ? ["()", "[]"].includes(e[0].value + e[2].value) : !1;
1327
1327
  }
1328
- function us(e) {
1328
+ function ds(e) {
1329
1329
  return new O({
1330
1330
  key: new N("autolink"),
1331
- appendTransaction: (a, o, s) => {
1332
- const t = a.some((l) => l.docChanged) && !o.doc.eq(s.doc), n = a.some((l) => l.getMeta("preventAutolink"));
1333
- if (!t || n)
1331
+ appendTransaction: (a, o, t) => {
1332
+ const s = a.some((l) => l.docChanged) && !o.doc.eq(t.doc), n = a.some((l) => l.getMeta("preventAutolink"));
1333
+ if (!s || n)
1334
1334
  return;
1335
- const { tr: i } = s, r = Fo(o.doc, [...a]);
1336
- if (ko(r).forEach(({ newRange: l }) => {
1337
- const c = _o(s.doc, l, (d) => d.isTextblock);
1335
+ const { tr: i } = t, r = ko(o.doc, [...a]);
1336
+ if (_o(r).forEach(({ newRange: l }) => {
1337
+ const c = Do(t.doc, l, (d) => d.isTextblock);
1338
1338
  let m, g;
1339
1339
  if (c.length > 1)
1340
- m = c[0], g = s.doc.textBetween(
1340
+ m = c[0], g = t.doc.textBetween(
1341
1341
  m.pos,
1342
1342
  m.pos + m.node.nodeSize,
1343
1343
  void 0,
1344
1344
  " "
1345
1345
  );
1346
1346
  else if (c.length) {
1347
- const d = s.doc.textBetween(l.from, l.to, " ", " ");
1348
- if (!ms.test(d))
1347
+ const d = t.doc.textBetween(l.from, l.to, " ", " ");
1348
+ if (!cs.test(d))
1349
1349
  return;
1350
- m = c[0], g = s.doc.textBetween(m.pos, l.to, void 0, " ");
1350
+ m = c[0], g = t.doc.textBetween(m.pos, l.to, void 0, " ");
1351
1351
  }
1352
1352
  if (m && g) {
1353
- const d = g.split(ls).filter(Boolean);
1353
+ const d = g.split(ms).filter(Boolean);
1354
1354
  if (d.length <= 0)
1355
1355
  return !1;
1356
1356
  const j = d[d.length - 1], b = m.pos + g.lastIndexOf(j);
1357
1357
  if (!j)
1358
1358
  return !1;
1359
1359
  const h = Ya(j).map((f) => f.toObject(e.defaultProtocol));
1360
- if (!gs(h))
1360
+ if (!us(h))
1361
1361
  return !1;
1362
1362
  h.filter((f) => f.isLink).map((f) => ({
1363
1363
  ...f,
1364
1364
  from: b + f.start + 1,
1365
1365
  to: b + f.end + 1
1366
- })).filter((f) => s.schema.marks.code ? !s.doc.rangeHasMark(f.from, f.to, s.schema.marks.code) : !0).filter((f) => e.validate(f.value)).filter((f) => e.shouldAutoLink(f.value)).forEach((f) => {
1367
- tt(f.from, f.to, s.doc).some((D) => D.mark.type === e.type) || i.addMark(
1366
+ })).filter((f) => t.schema.marks.code ? !t.doc.rangeHasMark(f.from, f.to, t.schema.marks.code) : !0).filter((f) => e.validate(f.value)).filter((f) => e.shouldAutoLink(f.value)).forEach((f) => {
1367
+ st(f.from, f.to, t.doc).some((_) => _.mark.type === e.type) || i.addMark(
1368
1368
  f.from,
1369
1369
  f.to,
1370
1370
  e.type.create({
@@ -1378,19 +1378,19 @@ function us(e) {
1378
1378
  }
1379
1379
  });
1380
1380
  }
1381
- function ds(e) {
1381
+ function fs(e) {
1382
1382
  return new O({
1383
1383
  key: new N("handleClickLink"),
1384
1384
  props: {
1385
- handleClick: (a, o, s) => {
1386
- var t, n;
1387
- if (s.button !== 0 || !a.editable)
1385
+ handleClick: (a, o, t) => {
1386
+ var s, n;
1387
+ if (t.button !== 0 || !a.editable)
1388
1388
  return !1;
1389
1389
  let i = null;
1390
- if (s.target instanceof HTMLAnchorElement)
1391
- i = s.target;
1390
+ if (t.target instanceof HTMLAnchorElement)
1391
+ i = t.target;
1392
1392
  else {
1393
- let c = s.target;
1393
+ let c = t.target;
1394
1394
  const m = [];
1395
1395
  for (; c.nodeName !== "DIV"; )
1396
1396
  m.push(c), c = c.parentNode;
@@ -1398,28 +1398,28 @@ function ds(e) {
1398
1398
  }
1399
1399
  if (!i)
1400
1400
  return !1;
1401
- const r = st(a.state, e.type.name), p = (t = i?.href) != null ? t : r.href, l = (n = i?.target) != null ? n : r.target;
1401
+ const r = nt(a.state, e.type.name), p = (s = i?.href) != null ? s : r.href, l = (n = i?.target) != null ? n : r.target;
1402
1402
  return e.enableClickSelection && e.editor.commands.extendMarkRange(e.type.name), i && p ? (window.open(p, l), !0) : !1;
1403
1403
  }
1404
1404
  }
1405
1405
  });
1406
1406
  }
1407
- function fs(e) {
1407
+ function hs(e) {
1408
1408
  return new O({
1409
1409
  key: new N("handlePasteLink"),
1410
1410
  props: {
1411
- handlePaste: (a, o, s) => {
1412
- const { shouldAutoLink: t } = e, { state: n } = a, { selection: i } = n, { empty: r } = i;
1411
+ handlePaste: (a, o, t) => {
1412
+ const { shouldAutoLink: s } = e, { state: n } = a, { selection: i } = n, { empty: r } = i;
1413
1413
  if (r)
1414
1414
  return !1;
1415
1415
  let p = "";
1416
- s.content.forEach((c) => {
1416
+ t.content.forEach((c) => {
1417
1417
  p += c.textContent;
1418
1418
  });
1419
- const l = So(p, { defaultProtocol: e.defaultProtocol }).find(
1419
+ const l = zo(p, { defaultProtocol: e.defaultProtocol }).find(
1420
1420
  (c) => c.isLink && c.value === p
1421
1421
  );
1422
- return !p || !l || t !== void 0 && !t(l.href) ? !1 : e.editor.commands.setMark(e.type, {
1422
+ return !p || !l || s !== void 0 && !s(l.href) ? !1 : e.editor.commands.setMark(e.type, {
1423
1423
  href: l.href
1424
1424
  });
1425
1425
  }
@@ -1428,10 +1428,10 @@ function fs(e) {
1428
1428
  }
1429
1429
  function ne(e, a) {
1430
1430
  const o = ["http", "https", "ftp", "ftps", "mailto", "tel", "callto", "sms", "cid", "xmpp"];
1431
- return a && a.forEach((s) => {
1432
- const t = typeof s == "string" ? s : s.scheme;
1433
- t && o.push(t);
1434
- }), !e || e.replace(cs, "").match(
1431
+ return a && a.forEach((t) => {
1432
+ const s = typeof t == "string" ? t : t.scheme;
1433
+ s && o.push(s);
1434
+ }), !e || e.replace(gs, "").match(
1435
1435
  new RegExp(
1436
1436
  // eslint-disable-next-line no-useless-escape
1437
1437
  `^(?:(?:${o.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,
@@ -1439,7 +1439,7 @@ function ne(e, a) {
1439
1439
  )
1440
1440
  );
1441
1441
  }
1442
- var hs = me.create({
1442
+ var js = me.create({
1443
1443
  name: "link",
1444
1444
  priority: 1e3,
1445
1445
  keepOnSplit: !1,
@@ -1454,7 +1454,7 @@ var hs = me.create({
1454
1454
  });
1455
1455
  },
1456
1456
  onDestroy() {
1457
- rs();
1457
+ ps();
1458
1458
  },
1459
1459
  inclusive() {
1460
1460
  return this.options.autolink;
@@ -1525,15 +1525,15 @@ var hs = me.create({
1525
1525
  }),
1526
1526
  renderMarkdown: (e, a) => {
1527
1527
  var o;
1528
- const s = ((o = e.attrs) == null ? void 0 : o.href) || "";
1529
- return `[${a.renderChildren(e)}](${s})`;
1528
+ const t = ((o = e.attrs) == null ? void 0 : o.href) || "";
1529
+ return `[${a.renderChildren(e)}](${t})`;
1530
1530
  },
1531
1531
  addCommands() {
1532
1532
  return {
1533
1533
  setLink: (e) => ({ chain: a }) => {
1534
1534
  const { href: o } = e;
1535
1535
  return this.options.isAllowedUri(o, {
1536
- defaultValidate: (s) => !!ne(s, this.options.protocols),
1536
+ defaultValidate: (t) => !!ne(t, this.options.protocols),
1537
1537
  protocols: this.options.protocols,
1538
1538
  defaultProtocol: this.options.defaultProtocol
1539
1539
  }) ? a().setMark(this.name, e).setMeta("preventAutolink", !0).run() : !1;
@@ -1541,7 +1541,7 @@ var hs = me.create({
1541
1541
  toggleLink: (e) => ({ chain: a }) => {
1542
1542
  const { href: o } = e || {};
1543
1543
  return o && !this.options.isAllowedUri(o, {
1544
- defaultValidate: (s) => !!ne(s, this.options.protocols),
1544
+ defaultValidate: (t) => !!ne(t, this.options.protocols),
1545
1545
  protocols: this.options.protocols,
1546
1546
  defaultProtocol: this.options.defaultProtocol
1547
1547
  }) ? !1 : a().toggleMark(this.name, e, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run();
@@ -1555,14 +1555,14 @@ var hs = me.create({
1555
1555
  find: (e) => {
1556
1556
  const a = [];
1557
1557
  if (e) {
1558
- const { protocols: o, defaultProtocol: s } = this.options, t = So(e).filter(
1558
+ const { protocols: o, defaultProtocol: t } = this.options, s = zo(e).filter(
1559
1559
  (n) => n.isLink && this.options.isAllowedUri(n.value, {
1560
1560
  defaultValidate: (i) => !!ne(i, o),
1561
1561
  protocols: o,
1562
- defaultProtocol: s
1562
+ defaultProtocol: t
1563
1563
  })
1564
1564
  );
1565
- t.length && t.forEach((n) => {
1565
+ s.length && s.forEach((n) => {
1566
1566
  this.options.shouldAutoLink(n.value) && a.push({
1567
1567
  text: n.value,
1568
1568
  data: {
@@ -1587,24 +1587,24 @@ var hs = me.create({
1587
1587
  addProseMirrorPlugins() {
1588
1588
  const e = [], { protocols: a, defaultProtocol: o } = this.options;
1589
1589
  return this.options.autolink && e.push(
1590
- us({
1590
+ ds({
1591
1591
  type: this.type,
1592
1592
  defaultProtocol: this.options.defaultProtocol,
1593
- validate: (s) => this.options.isAllowedUri(s, {
1594
- defaultValidate: (t) => !!ne(t, a),
1593
+ validate: (t) => this.options.isAllowedUri(t, {
1594
+ defaultValidate: (s) => !!ne(s, a),
1595
1595
  protocols: a,
1596
1596
  defaultProtocol: o
1597
1597
  }),
1598
1598
  shouldAutoLink: this.options.shouldAutoLink
1599
1599
  })
1600
1600
  ), this.options.openOnClick === !0 && e.push(
1601
- ds({
1601
+ fs({
1602
1602
  type: this.type,
1603
1603
  editor: this.editor,
1604
1604
  enableClickSelection: this.options.enableClickSelection
1605
1605
  })
1606
1606
  ), this.options.linkOnPaste && e.push(
1607
- fs({
1607
+ hs({
1608
1608
  editor: this.editor,
1609
1609
  defaultProtocol: this.options.defaultProtocol,
1610
1610
  type: this.type,
@@ -1612,10 +1612,10 @@ var hs = me.create({
1612
1612
  })
1613
1613
  ), e;
1614
1614
  }
1615
- }), js = Object.defineProperty, bs = (e, a) => {
1615
+ }), bs = Object.defineProperty, vs = (e, a) => {
1616
1616
  for (var o in a)
1617
- js(e, o, { get: a[o], enumerable: !0 });
1618
- }, vs = "listItem", mo = "textStyle", co = /^\s*([-+*])\s$/, zo = P.create({
1617
+ bs(e, o, { get: a[o], enumerable: !0 });
1618
+ }, Fs = "listItem", mo = "textStyle", co = /^\s*([-+*])\s$/, Ro = P.create({
1619
1619
  name: "bulletList",
1620
1620
  addOptions() {
1621
1621
  return {
@@ -1647,7 +1647,7 @@ var hs = me.create({
1647
1647
  },
1648
1648
  addCommands() {
1649
1649
  return {
1650
- toggleBulletList: () => ({ commands: e, chain: a }) => this.options.keepAttributes ? a().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(vs, this.editor.getAttributes(mo)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
1650
+ toggleBulletList: () => ({ commands: e, chain: a }) => this.options.keepAttributes ? a().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Fs, this.editor.getAttributes(mo)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
1651
1651
  };
1652
1652
  },
1653
1653
  addKeyboardShortcuts() {
@@ -1669,7 +1669,7 @@ var hs = me.create({
1669
1669
  editor: this.editor
1670
1670
  })), [e];
1671
1671
  }
1672
- }), Ro = P.create({
1672
+ }), Ho = P.create({
1673
1673
  name: "listItem",
1674
1674
  addOptions() {
1675
1675
  return {
@@ -1696,15 +1696,15 @@ var hs = me.create({
1696
1696
  return [];
1697
1697
  let o = [];
1698
1698
  if (e.tokens && e.tokens.length > 0)
1699
- if (e.tokens.some((t) => t.type === "paragraph"))
1699
+ if (e.tokens.some((s) => s.type === "paragraph"))
1700
1700
  o = a.parseChildren(e.tokens);
1701
1701
  else {
1702
- const t = e.tokens[0];
1703
- if (t && t.type === "text" && t.tokens && t.tokens.length > 0) {
1702
+ const s = e.tokens[0];
1703
+ if (s && s.type === "text" && s.tokens && s.tokens.length > 0) {
1704
1704
  if (o = [
1705
1705
  {
1706
1706
  type: "paragraph",
1707
- content: a.parseInline(t.tokens)
1707
+ content: a.parseInline(s.tokens)
1708
1708
  }
1709
1709
  ], e.tokens.length > 1) {
1710
1710
  const i = e.tokens.slice(1), r = a.parseChildren(i);
@@ -1723,10 +1723,10 @@ var hs = me.create({
1723
1723
  content: o
1724
1724
  };
1725
1725
  },
1726
- renderMarkdown: (e, a, o) => Do(
1726
+ renderMarkdown: (e, a, o) => yo(
1727
1727
  e,
1728
1728
  a,
1729
- (s) => s.parentType === "bulletList" ? "- " : s.parentType === "orderedList" ? `${s.index + 1}. ` : "- ",
1729
+ (t) => t.parentType === "bulletList" ? "- " : t.parentType === "orderedList" ? `${t.index + 1}. ` : "- ",
1730
1730
  o
1731
1731
  ),
1732
1732
  addKeyboardShortcuts() {
@@ -1736,52 +1736,52 @@ var hs = me.create({
1736
1736
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
1737
1737
  };
1738
1738
  }
1739
- }), Fs = {};
1740
- bs(Fs, {
1739
+ }), ks = {};
1740
+ vs(ks, {
1741
1741
  findListItemPos: () => Te,
1742
1742
  getNextListDepth: () => Qa,
1743
1743
  handleBackspace: () => Na,
1744
1744
  handleDelete: () => Pa,
1745
- hasListBefore: () => Ho,
1746
- hasListItemAfter: () => ks,
1747
- hasListItemBefore: () => No,
1748
- listItemHasSubList: () => Po,
1749
- nextListIsDeeper: () => Oo,
1750
- nextListIsHigher: () => qo
1745
+ hasListBefore: () => No,
1746
+ hasListItemAfter: () => _s,
1747
+ hasListItemBefore: () => Po,
1748
+ listItemHasSubList: () => Oo,
1749
+ nextListIsDeeper: () => qo,
1750
+ nextListIsHigher: () => $o
1751
1751
  });
1752
1752
  var Te = (e, a) => {
1753
- const { $from: o } = a.selection, s = yo(e, a.schema);
1754
- let t = null, n = o.depth, i = o.pos, r = null;
1753
+ const { $from: o } = a.selection, t = Io(e, a.schema);
1754
+ let s = null, n = o.depth, i = o.pos, r = null;
1755
1755
  for (; n > 0 && r === null; )
1756
- t = o.node(n), t.type === s ? r = n : (n -= 1, i -= 1);
1756
+ s = o.node(n), s.type === t ? r = n : (n -= 1, i -= 1);
1757
1757
  return r === null ? null : { $pos: a.doc.resolve(i), depth: r };
1758
1758
  }, Qa = (e, a) => {
1759
1759
  const o = Te(e, a);
1760
1760
  if (!o)
1761
1761
  return !1;
1762
- const [, s] = rt(a, e, o.$pos.pos + 4);
1763
- return s;
1764
- }, Ho = (e, a, o) => {
1765
- const { $anchor: s } = e.selection, t = Math.max(0, s.pos - 2), n = e.doc.resolve(t).node();
1762
+ const [, t] = pt(a, e, o.$pos.pos + 4);
1763
+ return t;
1764
+ }, No = (e, a, o) => {
1765
+ const { $anchor: t } = e.selection, s = Math.max(0, t.pos - 2), n = e.doc.resolve(s).node();
1766
1766
  return !(!n || !o.includes(n.type.name));
1767
- }, No = (e, a) => {
1767
+ }, Po = (e, a) => {
1768
1768
  var o;
1769
- const { $anchor: s } = a.selection, t = a.doc.resolve(s.pos - 2);
1770
- return !(t.index() === 0 || ((o = t.nodeBefore) == null ? void 0 : o.type.name) !== e);
1771
- }, Po = (e, a, o) => {
1769
+ const { $anchor: t } = a.selection, s = a.doc.resolve(t.pos - 2);
1770
+ return !(s.index() === 0 || ((o = s.nodeBefore) == null ? void 0 : o.type.name) !== e);
1771
+ }, Oo = (e, a, o) => {
1772
1772
  if (!o)
1773
1773
  return !1;
1774
- const s = yo(e, a.schema);
1775
- let t = !1;
1774
+ const t = Io(e, a.schema);
1775
+ let s = !1;
1776
1776
  return o.descendants((n) => {
1777
- n.type === s && (t = !0);
1778
- }), t;
1777
+ n.type === t && (s = !0);
1778
+ }), s;
1779
1779
  }, Na = (e, a, o) => {
1780
1780
  if (e.commands.undoInputRule())
1781
1781
  return !0;
1782
1782
  if (e.state.selection.from !== e.state.selection.to)
1783
1783
  return !1;
1784
- if (!Ba(e.state, a) && Ho(e.state, a, o)) {
1784
+ if (!Ba(e.state, a) && No(e.state, a, o)) {
1785
1785
  const { $anchor: r } = e.state.selection, p = e.state.doc.resolve(r.before() - 1), l = [];
1786
1786
  p.node().descendants((g, d) => {
1787
1787
  g.type.name === a && l.push({ node: g, pos: d });
@@ -1792,29 +1792,29 @@ var Te = (e, a) => {
1792
1792
  const m = e.state.doc.resolve(p.start() + c.pos + 1);
1793
1793
  return e.chain().cut({ from: r.start() - 1, to: r.end() + 1 }, m.end()).joinForward().run();
1794
1794
  }
1795
- if (!Ba(e.state, a) || !nt(e.state))
1795
+ if (!Ba(e.state, a) || !it(e.state))
1796
1796
  return !1;
1797
- const s = Te(a, e.state);
1798
- if (!s)
1797
+ const t = Te(a, e.state);
1798
+ if (!t)
1799
1799
  return !1;
1800
- const n = e.state.doc.resolve(s.$pos.pos - 2).node(s.depth), i = Po(a, e.state, n);
1801
- return No(a, e.state) && !i ? e.commands.joinItemBackward() : e.chain().liftListItem(a).run();
1802
- }, Oo = (e, a) => {
1803
- const o = Qa(e, a), s = Te(e, a);
1804
- return !s || !o ? !1 : o > s.depth;
1800
+ const n = e.state.doc.resolve(t.$pos.pos - 2).node(t.depth), i = Oo(a, e.state, n);
1801
+ return Po(a, e.state) && !i ? e.commands.joinItemBackward() : e.chain().liftListItem(a).run();
1805
1802
  }, qo = (e, a) => {
1806
- const o = Qa(e, a), s = Te(e, a);
1807
- return !s || !o ? !1 : o < s.depth;
1803
+ const o = Qa(e, a), t = Te(e, a);
1804
+ return !t || !o ? !1 : o > t.depth;
1805
+ }, $o = (e, a) => {
1806
+ const o = Qa(e, a), t = Te(e, a);
1807
+ return !t || !o ? !1 : o < t.depth;
1808
1808
  }, Pa = (e, a) => {
1809
- if (!Ba(e.state, a) || !it(e.state, a))
1809
+ if (!Ba(e.state, a) || !rt(e.state, a))
1810
1810
  return !1;
1811
- const { selection: o } = e.state, { $from: s, $to: t } = o;
1812
- return !o.empty && s.sameParent(t) ? !1 : Oo(a, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(a).joinBackward().run() : qo(a, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
1813
- }, ks = (e, a) => {
1811
+ const { selection: o } = e.state, { $from: t, $to: s } = o;
1812
+ return !o.empty && t.sameParent(s) ? !1 : qo(a, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(a).joinBackward().run() : $o(a, e.state) ? e.chain().joinForward().joinBackward().run() : e.commands.joinItemForward();
1813
+ }, _s = (e, a) => {
1814
1814
  var o;
1815
- const { $anchor: s } = a.selection, t = a.doc.resolve(s.pos - s.parentOffset - 2);
1816
- return !(t.index() === t.parent.childCount - 1 || ((o = t.nodeAfter) == null ? void 0 : o.type.name) !== e);
1817
- }, $o = M.create({
1815
+ const { $anchor: t } = a.selection, s = a.doc.resolve(t.pos - t.parentOffset - 2);
1816
+ return !(s.index() === s.parent.childCount - 1 || ((o = s.nodeAfter) == null ? void 0 : o.type.name) !== e);
1817
+ }, Uo = M.create({
1818
1818
  name: "listKeymap",
1819
1819
  addOptions() {
1820
1820
  return {
@@ -1846,29 +1846,29 @@ var Te = (e, a) => {
1846
1846
  },
1847
1847
  Backspace: ({ editor: e }) => {
1848
1848
  let a = !1;
1849
- return this.options.listTypes.forEach(({ itemName: o, wrapperNames: s }) => {
1850
- e.state.schema.nodes[o] !== void 0 && Na(e, o, s) && (a = !0);
1849
+ return this.options.listTypes.forEach(({ itemName: o, wrapperNames: t }) => {
1850
+ e.state.schema.nodes[o] !== void 0 && Na(e, o, t) && (a = !0);
1851
1851
  }), a;
1852
1852
  },
1853
1853
  "Mod-Backspace": ({ editor: e }) => {
1854
1854
  let a = !1;
1855
- return this.options.listTypes.forEach(({ itemName: o, wrapperNames: s }) => {
1856
- e.state.schema.nodes[o] !== void 0 && Na(e, o, s) && (a = !0);
1855
+ return this.options.listTypes.forEach(({ itemName: o, wrapperNames: t }) => {
1856
+ e.state.schema.nodes[o] !== void 0 && Na(e, o, t) && (a = !0);
1857
1857
  }), a;
1858
1858
  }
1859
1859
  };
1860
1860
  }
1861
- }), go = /^(\s*)(\d+)\.\s+(.*)$/, _s = /^\s/;
1862
- function Ds(e) {
1861
+ }), go = /^(\s*)(\d+)\.\s+(.*)$/, Ds = /^\s/;
1862
+ function ys(e) {
1863
1863
  const a = [];
1864
- let o = 0, s = 0;
1864
+ let o = 0, t = 0;
1865
1865
  for (; o < e.length; ) {
1866
- const t = e[o], n = t.match(go);
1866
+ const s = e[o], n = s.match(go);
1867
1867
  if (!n)
1868
1868
  break;
1869
1869
  const [, i, r, p] = n, l = i.length;
1870
1870
  let c = p, m = o + 1;
1871
- const g = [t];
1871
+ const g = [s];
1872
1872
  for (; m < e.length; ) {
1873
1873
  const d = e[m];
1874
1874
  if (d.match(go))
@@ -1876,7 +1876,7 @@ function Ds(e) {
1876
1876
  if (d.trim() === "")
1877
1877
  g.push(d), c += `
1878
1878
  `, m += 1;
1879
- else if (d.match(_s))
1879
+ else if (d.match(Ds))
1880
1880
  g.push(d), c += `
1881
1881
  ${d.slice(l + 2)}`, m += 1;
1882
1882
  else
@@ -1888,19 +1888,19 @@ ${d.slice(l + 2)}`, m += 1;
1888
1888
  content: c.trim(),
1889
1889
  raw: g.join(`
1890
1890
  `)
1891
- }), s = m, o = m;
1891
+ }), t = m, o = m;
1892
1892
  }
1893
- return [a, s];
1893
+ return [a, t];
1894
1894
  }
1895
- function Uo(e, a, o) {
1896
- var s;
1897
- const t = [];
1895
+ function Go(e, a, o) {
1896
+ var t;
1897
+ const s = [];
1898
1898
  let n = 0;
1899
1899
  for (; n < e.length; ) {
1900
1900
  const i = e[n];
1901
1901
  if (i.indent === a) {
1902
1902
  const r = i.content.split(`
1903
- `), p = ((s = r[0]) == null ? void 0 : s.trim()) || "", l = [];
1903
+ `), p = ((t = r[0]) == null ? void 0 : t.trim()) || "", l = [];
1904
1904
  p && l.push({
1905
1905
  type: "paragraph",
1906
1906
  raw: p,
@@ -1917,7 +1917,7 @@ function Uo(e, a, o) {
1917
1917
  for (; m < e.length && e[m].indent > a; )
1918
1918
  g.push(e[m]), m += 1;
1919
1919
  if (g.length > 0) {
1920
- const d = Math.min(...g.map((b) => b.indent)), j = Uo(g, d, o);
1920
+ const d = Math.min(...g.map((b) => b.indent)), j = Go(g, d, o);
1921
1921
  l.push({
1922
1922
  type: "list",
1923
1923
  ordered: !0,
@@ -1927,7 +1927,7 @@ function Uo(e, a, o) {
1927
1927
  `)
1928
1928
  });
1929
1929
  }
1930
- t.push({
1930
+ s.push({
1931
1931
  type: "list_item",
1932
1932
  raw: i.raw,
1933
1933
  tokens: l
@@ -1935,33 +1935,33 @@ function Uo(e, a, o) {
1935
1935
  } else
1936
1936
  n += 1;
1937
1937
  }
1938
- return t;
1938
+ return s;
1939
1939
  }
1940
- function ys(e, a) {
1940
+ function Is(e, a) {
1941
1941
  return e.map((o) => {
1942
1942
  if (o.type !== "list_item")
1943
1943
  return a.parseChildren([o])[0];
1944
- const s = [];
1945
- return o.tokens && o.tokens.length > 0 && o.tokens.forEach((t) => {
1946
- if (t.type === "paragraph" || t.type === "list" || t.type === "blockquote" || t.type === "code")
1947
- s.push(...a.parseChildren([t]));
1948
- else if (t.type === "text" && t.tokens) {
1949
- const n = a.parseChildren([t]);
1950
- s.push({
1944
+ const t = [];
1945
+ return o.tokens && o.tokens.length > 0 && o.tokens.forEach((s) => {
1946
+ if (s.type === "paragraph" || s.type === "list" || s.type === "blockquote" || s.type === "code")
1947
+ t.push(...a.parseChildren([s]));
1948
+ else if (s.type === "text" && s.tokens) {
1949
+ const n = a.parseChildren([s]);
1950
+ t.push({
1951
1951
  type: "paragraph",
1952
1952
  content: n
1953
1953
  });
1954
1954
  } else {
1955
- const n = a.parseChildren([t]);
1956
- n.length > 0 && s.push(...n);
1955
+ const n = a.parseChildren([s]);
1956
+ n.length > 0 && t.push(...n);
1957
1957
  }
1958
1958
  }), {
1959
1959
  type: "listItem",
1960
- content: s
1960
+ content: t
1961
1961
  };
1962
1962
  });
1963
1963
  }
1964
- var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
1964
+ var ws = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Ko = P.create({
1965
1965
  name: "orderedList",
1966
1966
  addOptions() {
1967
1967
  return {
@@ -2002,14 +2002,14 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2002
2002
  parseMarkdown: (e, a) => {
2003
2003
  if (e.type !== "list" || !e.ordered)
2004
2004
  return [];
2005
- const o = e.start || 1, s = e.items ? ys(e.items, a) : [];
2005
+ const o = e.start || 1, t = e.items ? Is(e.items, a) : [];
2006
2006
  return o !== 1 ? {
2007
2007
  type: "orderedList",
2008
2008
  attrs: { start: o },
2009
- content: s
2009
+ content: t
2010
2010
  } : {
2011
2011
  type: "orderedList",
2012
- content: s
2012
+ content: t
2013
2013
  };
2014
2014
  },
2015
2015
  renderMarkdown: (e, a) => e.content ? a.renderChildren(e.content, `
@@ -2022,18 +2022,18 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2022
2022
  return o !== void 0 ? o : -1;
2023
2023
  },
2024
2024
  tokenize: (e, a, o) => {
2025
- var s;
2026
- const t = e.split(`
2027
- `), [n, i] = Ds(t);
2025
+ var t;
2026
+ const s = e.split(`
2027
+ `), [n, i] = ys(s);
2028
2028
  if (n.length === 0)
2029
2029
  return;
2030
- const r = Uo(n, 0, o);
2030
+ const r = Go(n, 0, o);
2031
2031
  return r.length === 0 ? void 0 : {
2032
2032
  type: "list",
2033
2033
  ordered: !0,
2034
- start: ((s = n[0]) == null ? void 0 : s.number) || 1,
2034
+ start: ((t = n[0]) == null ? void 0 : t.number) || 1,
2035
2035
  items: r,
2036
- raw: t.slice(0, i).join(`
2036
+ raw: s.slice(0, i).join(`
2037
2037
  `)
2038
2038
  };
2039
2039
  }
@@ -2043,7 +2043,7 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2043
2043
  },
2044
2044
  addCommands() {
2045
2045
  return {
2046
- toggleOrderedList: () => ({ commands: e, chain: a }) => this.options.keepAttributes ? a().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Is, this.editor.getAttributes(uo)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
2046
+ toggleOrderedList: () => ({ commands: e, chain: a }) => this.options.keepAttributes ? a().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ws, this.editor.getAttributes(uo)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
2047
2047
  };
2048
2048
  },
2049
2049
  addKeyboardShortcuts() {
@@ -2068,7 +2068,7 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2068
2068
  editor: this.editor
2069
2069
  })), [e];
2070
2070
  }
2071
- }), ws = /^\s*(\[([( |x])?\])\s$/, Es = P.create({
2071
+ }), Es = /^\s*(\[([( |x])?\])\s$/, Cs = P.create({
2072
2072
  name: "taskItem",
2073
2073
  addOptions() {
2074
2074
  return {
@@ -2128,15 +2128,15 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2128
2128
  parseMarkdown: (e, a) => {
2129
2129
  const o = [];
2130
2130
  if (e.tokens && e.tokens.length > 0 ? o.push(a.createNode("paragraph", {}, a.parseInline(e.tokens))) : e.text ? o.push(a.createNode("paragraph", {}, [a.createNode("text", { text: e.text })])) : o.push(a.createNode("paragraph", {}, [])), e.nestedTokens && e.nestedTokens.length > 0) {
2131
- const s = a.parseChildren(e.nestedTokens);
2132
- o.push(...s);
2131
+ const t = a.parseChildren(e.nestedTokens);
2132
+ o.push(...t);
2133
2133
  }
2134
2134
  return a.createNode("taskItem", { checked: e.checked || !1 }, o);
2135
2135
  },
2136
2136
  renderMarkdown: (e, a) => {
2137
2137
  var o;
2138
- const t = `- [${(o = e.attrs) != null && o.checked ? "x" : " "}] `;
2139
- return Do(e, a, t);
2138
+ const s = `- [${(o = e.attrs) != null && o.checked ? "x" : " "}] `;
2139
+ return yo(e, a, s);
2140
2140
  },
2141
2141
  addKeyboardShortcuts() {
2142
2142
  const e = {
@@ -2149,18 +2149,18 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2149
2149
  } : e;
2150
2150
  },
2151
2151
  addNodeView() {
2152
- return ({ node: e, HTMLAttributes: a, getPos: o, editor: s }) => {
2153
- const t = document.createElement("li"), n = document.createElement("label"), i = document.createElement("span"), r = document.createElement("input"), p = document.createElement("div"), l = (c) => {
2152
+ return ({ node: e, HTMLAttributes: a, getPos: o, editor: t }) => {
2153
+ const s = document.createElement("li"), n = document.createElement("label"), i = document.createElement("span"), r = document.createElement("input"), p = document.createElement("div"), l = (c) => {
2154
2154
  var m, g;
2155
2155
  r.ariaLabel = ((g = (m = this.options.a11y) == null ? void 0 : m.checkboxLabel) == null ? void 0 : g.call(m, c, r.checked)) || `Task item checkbox for ${c.textContent || "empty task item"}`;
2156
2156
  };
2157
2157
  return l(e), n.contentEditable = "false", r.type = "checkbox", r.addEventListener("mousedown", (c) => c.preventDefault()), r.addEventListener("change", (c) => {
2158
- if (!s.isEditable && !this.options.onReadOnlyChecked) {
2158
+ if (!t.isEditable && !this.options.onReadOnlyChecked) {
2159
2159
  r.checked = !r.checked;
2160
2160
  return;
2161
2161
  }
2162
2162
  const { checked: m } = c.target;
2163
- s.isEditable && typeof o == "function" && s.chain().focus(void 0, { scrollIntoView: !1 }).command(({ tr: g }) => {
2163
+ t.isEditable && typeof o == "function" && t.chain().focus(void 0, { scrollIntoView: !1 }).command(({ tr: g }) => {
2164
2164
  const d = o();
2165
2165
  if (typeof d != "number")
2166
2166
  return !1;
@@ -2169,22 +2169,22 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2169
2169
  ...j?.attrs,
2170
2170
  checked: m
2171
2171
  }), !0;
2172
- }).run(), !s.isEditable && this.options.onReadOnlyChecked && (this.options.onReadOnlyChecked(e, m) || (r.checked = !r.checked));
2172
+ }).run(), !t.isEditable && this.options.onReadOnlyChecked && (this.options.onReadOnlyChecked(e, m) || (r.checked = !r.checked));
2173
2173
  }), Object.entries(this.options.HTMLAttributes).forEach(([c, m]) => {
2174
- t.setAttribute(c, m);
2175
- }), t.dataset.checked = e.attrs.checked, r.checked = e.attrs.checked, n.append(r, i), t.append(n, p), Object.entries(a).forEach(([c, m]) => {
2176
- t.setAttribute(c, m);
2174
+ s.setAttribute(c, m);
2175
+ }), s.dataset.checked = e.attrs.checked, r.checked = e.attrs.checked, n.append(r, i), s.append(n, p), Object.entries(a).forEach(([c, m]) => {
2176
+ s.setAttribute(c, m);
2177
2177
  }), {
2178
- dom: t,
2178
+ dom: s,
2179
2179
  contentDOM: p,
2180
- update: (c) => c.type !== this.type ? !1 : (t.dataset.checked = c.attrs.checked, r.checked = c.attrs.checked, l(c), !0)
2180
+ update: (c) => c.type !== this.type ? !1 : (s.dataset.checked = c.attrs.checked, r.checked = c.attrs.checked, l(c), !0)
2181
2181
  };
2182
2182
  };
2183
2183
  },
2184
2184
  addInputRules() {
2185
2185
  return [
2186
2186
  ue({
2187
- find: ws,
2187
+ find: Es,
2188
2188
  type: this.type,
2189
2189
  getAttributes: (e) => ({
2190
2190
  checked: e[e.length - 1] === "x"
@@ -2192,7 +2192,7 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2192
2192
  })
2193
2193
  ];
2194
2194
  }
2195
- }), Cs = P.create({
2195
+ }), As = P.create({
2196
2196
  name: "taskList",
2197
2197
  addOptions() {
2198
2198
  return {
@@ -2227,7 +2227,7 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2227
2227
  return o !== void 0 ? o : -1;
2228
2228
  },
2229
2229
  tokenize(e, a, o) {
2230
- const s = (n) => {
2230
+ const t = (n) => {
2231
2231
  const i = ao(
2232
2232
  n,
2233
2233
  {
@@ -2248,7 +2248,7 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2248
2248
  nestedTokens: p
2249
2249
  }),
2250
2250
  // Allow recursive nesting
2251
- customNestedParser: s
2251
+ customNestedParser: t
2252
2252
  },
2253
2253
  o
2254
2254
  );
@@ -2259,7 +2259,7 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2259
2259
  items: i.items
2260
2260
  }
2261
2261
  ] : o.blockTokens(n);
2262
- }, t = ao(
2262
+ }, s = ao(
2263
2263
  e,
2264
2264
  {
2265
2265
  itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
@@ -2279,15 +2279,15 @@ var Is = "listItem", uo = "textStyle", fo = /^(\d+)\.\s$/, Go = P.create({
2279
2279
  nestedTokens: i
2280
2280
  }),
2281
2281
  // Use the recursive parser for nested content
2282
- customNestedParser: s
2282
+ customNestedParser: t
2283
2283
  },
2284
2284
  o
2285
2285
  );
2286
- if (t)
2286
+ if (s)
2287
2287
  return {
2288
2288
  type: "taskList",
2289
- raw: t.raw,
2290
- items: t.items
2289
+ raw: s.raw,
2290
+ items: s.items
2291
2291
  };
2292
2292
  }
2293
2293
  },
@@ -2309,10 +2309,10 @@ M.create({
2309
2309
  name: "listKit",
2310
2310
  addExtensions() {
2311
2311
  const e = [];
2312
- return this.options.bulletList !== !1 && e.push(zo.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(Ro.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push($o.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(Go.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(Es.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(Cs.configure(this.options.taskList)), e;
2312
+ return this.options.bulletList !== !1 && e.push(Ro.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(Ho.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Uo.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(Ko.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(Cs.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(As.configure(this.options.taskList)), e;
2313
2313
  }
2314
2314
  });
2315
- var As = P.create({
2315
+ var Bs = P.create({
2316
2316
  name: "paragraph",
2317
2317
  priority: 1e3,
2318
2318
  addOptions() {
@@ -2348,7 +2348,7 @@ var As = P.create({
2348
2348
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
2349
2349
  };
2350
2350
  }
2351
- }), Bs = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, xs = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, Ts = me.create({
2351
+ }), xs = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Ts = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, Ls = me.create({
2352
2352
  name: "strike",
2353
2353
  addOptions() {
2354
2354
  return {
@@ -2394,7 +2394,7 @@ var As = P.create({
2394
2394
  addInputRules() {
2395
2395
  return [
2396
2396
  de({
2397
- find: Bs,
2397
+ find: xs,
2398
2398
  type: this.type
2399
2399
  })
2400
2400
  ];
@@ -2402,12 +2402,12 @@ var As = P.create({
2402
2402
  addPasteRules() {
2403
2403
  return [
2404
2404
  le({
2405
- find: xs,
2405
+ find: Ts,
2406
2406
  type: this.type
2407
2407
  })
2408
2408
  ];
2409
2409
  }
2410
- }), Ls = P.create({
2410
+ }), Ms = P.create({
2411
2411
  name: "text",
2412
2412
  group: "inline",
2413
2413
  parseMarkdown: (e) => ({
@@ -2415,7 +2415,7 @@ var As = P.create({
2415
2415
  text: e.text || ""
2416
2416
  }),
2417
2417
  renderMarkdown: (e) => e.text || ""
2418
- }), Ms = me.create({
2418
+ }), Ss = me.create({
2419
2419
  name: "underline",
2420
2420
  addOptions() {
2421
2421
  return {
@@ -2450,13 +2450,13 @@ var As = P.create({
2450
2450
  return e.indexOf("++");
2451
2451
  },
2452
2452
  tokenize(e, a, o) {
2453
- const t = /^(\+\+)([\s\S]+?)(\+\+)/.exec(e);
2454
- if (!t)
2453
+ const s = /^(\+\+)([\s\S]+?)(\+\+)/.exec(e);
2454
+ if (!s)
2455
2455
  return;
2456
- const n = t[2].trim();
2456
+ const n = s[2].trim();
2457
2457
  return {
2458
2458
  type: "underline",
2459
- raw: t[0],
2459
+ raw: s[0],
2460
2460
  text: n,
2461
2461
  tokens: o.inlineTokens(n)
2462
2462
  };
@@ -2476,21 +2476,21 @@ var As = P.create({
2476
2476
  };
2477
2477
  }
2478
2478
  });
2479
- function Ss(e = {}) {
2479
+ function zs(e = {}) {
2480
2480
  return new O({
2481
2481
  view(a) {
2482
- return new zs(a, e);
2482
+ return new Rs(a, e);
2483
2483
  }
2484
2484
  });
2485
2485
  }
2486
- class zs {
2486
+ class Rs {
2487
2487
  constructor(a, o) {
2488
- var s;
2489
- this.editorView = a, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (s = o.width) !== null && s !== void 0 ? s : 1, this.color = o.color === !1 ? void 0 : o.color || "black", this.class = o.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((t) => {
2488
+ var t;
2489
+ this.editorView = a, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (t = o.width) !== null && t !== void 0 ? t : 1, this.color = o.color === !1 ? void 0 : o.color || "black", this.class = o.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((s) => {
2490
2490
  let n = (i) => {
2491
- this[t](i);
2491
+ this[s](i);
2492
2492
  };
2493
- return a.dom.addEventListener(t, n), { name: t, handler: n };
2493
+ return a.dom.addEventListener(s, n), { name: s, handler: n };
2494
2494
  });
2495
2495
  }
2496
2496
  destroy() {
@@ -2503,7 +2503,7 @@ class zs {
2503
2503
  a != this.cursorPos && (this.cursorPos = a, a == null ? (this.element.parentNode.removeChild(this.element), this.element = null) : this.updateOverlay());
2504
2504
  }
2505
2505
  updateOverlay() {
2506
- let a = this.editorView.state.doc.resolve(this.cursorPos), o = !a.parent.inlineContent, s, t = this.editorView.dom, n = t.getBoundingClientRect(), i = n.width / t.offsetWidth, r = n.height / t.offsetHeight;
2506
+ let a = this.editorView.state.doc.resolve(this.cursorPos), o = !a.parent.inlineContent, t, s = this.editorView.dom, n = s.getBoundingClientRect(), i = n.width / s.offsetWidth, r = n.height / s.offsetHeight;
2507
2507
  if (o) {
2508
2508
  let m = a.nodeBefore, g = a.nodeAfter;
2509
2509
  if (m || g) {
@@ -2512,13 +2512,13 @@ class zs {
2512
2512
  let j = d.getBoundingClientRect(), b = m ? j.bottom : j.top;
2513
2513
  m && g && (b = (b + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2);
2514
2514
  let h = this.width / 2 * r;
2515
- s = { left: j.left, right: j.right, top: b - h, bottom: b + h };
2515
+ t = { left: j.left, right: j.right, top: b - h, bottom: b + h };
2516
2516
  }
2517
2517
  }
2518
2518
  }
2519
- if (!s) {
2519
+ if (!t) {
2520
2520
  let m = this.editorView.coordsAtPos(this.cursorPos), g = this.width / 2 * i;
2521
- s = { left: m.left - g, right: m.left + g, top: m.top, bottom: m.bottom };
2521
+ t = { left: m.left - g, right: m.left + g, top: m.top, bottom: m.bottom };
2522
2522
  }
2523
2523
  let p = this.editorView.dom.offsetParent;
2524
2524
  this.element || (this.element = p.appendChild(document.createElement("div")), this.class && (this.element.className = this.class), this.element.style.cssText = "position: absolute; z-index: 50; pointer-events: none;", this.color && (this.element.style.backgroundColor = this.color)), this.element.classList.toggle("prosemirror-dropcursor-block", o), this.element.classList.toggle("prosemirror-dropcursor-inline", !o);
@@ -2529,7 +2529,7 @@ class zs {
2529
2529
  let m = p.getBoundingClientRect(), g = m.width / p.offsetWidth, d = m.height / p.offsetHeight;
2530
2530
  l = m.left - p.scrollLeft * g, c = m.top - p.scrollTop * d;
2531
2531
  }
2532
- this.element.style.left = (s.left - l) / i + "px", this.element.style.top = (s.top - c) / r + "px", this.element.style.width = (s.right - s.left) / i + "px", this.element.style.height = (s.bottom - s.top) / r + "px";
2532
+ this.element.style.left = (t.left - l) / i + "px", this.element.style.top = (t.top - c) / r + "px", this.element.style.width = (t.right - t.left) / i + "px", this.element.style.height = (t.bottom - t.top) / r + "px";
2533
2533
  }
2534
2534
  scheduleRemoval(a) {
2535
2535
  clearTimeout(this.timeout), this.timeout = setTimeout(() => this.setCursor(null), a);
@@ -2537,11 +2537,11 @@ class zs {
2537
2537
  dragover(a) {
2538
2538
  if (!this.editorView.editable)
2539
2539
  return;
2540
- let o = this.editorView.posAtCoords({ left: a.clientX, top: a.clientY }), s = o && o.inside >= 0 && this.editorView.state.doc.nodeAt(o.inside), t = s && s.type.spec.disableDropCursor, n = typeof t == "function" ? t(this.editorView, o, a) : t;
2540
+ let o = this.editorView.posAtCoords({ left: a.clientX, top: a.clientY }), t = o && o.inside >= 0 && this.editorView.state.doc.nodeAt(o.inside), s = t && t.type.spec.disableDropCursor, n = typeof s == "function" ? s(this.editorView, o, a) : s;
2541
2541
  if (o && !n) {
2542
2542
  let i = o.pos;
2543
2543
  if (this.editorView.dragging && this.editorView.dragging.slice) {
2544
- let r = pt(this.editorView.state.doc, i, this.editorView.dragging.slice);
2544
+ let r = lt(this.editorView.state.doc, i, this.editorView.dragging.slice);
2545
2545
  r != null && (i = r);
2546
2546
  }
2547
2547
  this.setCursor(i), this.scheduleRemoval(5e3);
@@ -2565,11 +2565,11 @@ class C extends Ce {
2565
2565
  super(a, a);
2566
2566
  }
2567
2567
  map(a, o) {
2568
- let s = a.resolve(o.map(this.head));
2569
- return C.valid(s) ? new C(s) : Ce.near(s);
2568
+ let t = a.resolve(o.map(this.head));
2569
+ return C.valid(t) ? new C(t) : Ce.near(t);
2570
2570
  }
2571
2571
  content() {
2572
- return Io.empty;
2572
+ return wo.empty;
2573
2573
  }
2574
2574
  eq(a) {
2575
2575
  return a instanceof C && a.head == this.head;
@@ -2596,22 +2596,22 @@ class C extends Ce {
2596
2596
  */
2597
2597
  static valid(a) {
2598
2598
  let o = a.parent;
2599
- if (o.isTextblock || !Rs(a) || !Hs(a))
2599
+ if (o.isTextblock || !Hs(a) || !Ns(a))
2600
2600
  return !1;
2601
- let s = o.type.spec.allowGapCursor;
2602
- if (s != null)
2603
- return s;
2604
- let t = o.contentMatchAt(a.index()).defaultType;
2605
- return t && t.isTextblock;
2601
+ let t = o.type.spec.allowGapCursor;
2602
+ if (t != null)
2603
+ return t;
2604
+ let s = o.contentMatchAt(a.index()).defaultType;
2605
+ return s && s.isTextblock;
2606
2606
  }
2607
2607
  /**
2608
2608
  @internal
2609
2609
  */
2610
- static findGapCursorFrom(a, o, s = !1) {
2610
+ static findGapCursorFrom(a, o, t = !1) {
2611
2611
  e: for (; ; ) {
2612
- if (!s && C.valid(a))
2612
+ if (!t && C.valid(a))
2613
2613
  return a;
2614
- let t = a.pos, n = null;
2614
+ let s = a.pos, n = null;
2615
2615
  for (let i = a.depth; ; i--) {
2616
2616
  let r = a.node(i);
2617
2617
  if (o > 0 ? a.indexAfter(i) < r.childCount : a.index(i) > 0) {
@@ -2619,8 +2619,8 @@ class C extends Ce {
2619
2619
  break;
2620
2620
  } else if (i == 0)
2621
2621
  return null;
2622
- t += o;
2623
- let p = a.doc.resolve(t);
2622
+ s += o;
2623
+ let p = a.doc.resolve(s);
2624
2624
  if (C.valid(p))
2625
2625
  return p;
2626
2626
  }
@@ -2628,13 +2628,13 @@ class C extends Ce {
2628
2628
  let i = o > 0 ? n.firstChild : n.lastChild;
2629
2629
  if (!i) {
2630
2630
  if (n.isAtom && !n.isText && !qa.isSelectable(n)) {
2631
- a = a.doc.resolve(t + n.nodeSize * o), s = !1;
2631
+ a = a.doc.resolve(s + n.nodeSize * o), t = !1;
2632
2632
  continue e;
2633
2633
  }
2634
2634
  break;
2635
2635
  }
2636
- n = i, t += o;
2637
- let r = a.doc.resolve(t);
2636
+ n = i, s += o;
2637
+ let r = a.doc.resolve(s);
2638
2638
  if (C.valid(r))
2639
2639
  return r;
2640
2640
  }
@@ -2657,57 +2657,57 @@ class Za {
2657
2657
  return C.valid(o) ? new C(o) : Ce.near(o);
2658
2658
  }
2659
2659
  }
2660
- function Ko(e) {
2660
+ function Wo(e) {
2661
2661
  return e.isAtom || e.spec.isolating || e.spec.createGapCursor;
2662
2662
  }
2663
- function Rs(e) {
2663
+ function Hs(e) {
2664
2664
  for (let a = e.depth; a >= 0; a--) {
2665
- let o = e.index(a), s = e.node(a);
2665
+ let o = e.index(a), t = e.node(a);
2666
2666
  if (o == 0) {
2667
- if (s.type.spec.isolating)
2667
+ if (t.type.spec.isolating)
2668
2668
  return !0;
2669
2669
  continue;
2670
2670
  }
2671
- for (let t = s.child(o - 1); ; t = t.lastChild) {
2672
- if (t.childCount == 0 && !t.inlineContent || Ko(t.type))
2671
+ for (let s = t.child(o - 1); ; s = s.lastChild) {
2672
+ if (s.childCount == 0 && !s.inlineContent || Wo(s.type))
2673
2673
  return !0;
2674
- if (t.inlineContent)
2674
+ if (s.inlineContent)
2675
2675
  return !1;
2676
2676
  }
2677
2677
  }
2678
2678
  return !0;
2679
2679
  }
2680
- function Hs(e) {
2680
+ function Ns(e) {
2681
2681
  for (let a = e.depth; a >= 0; a--) {
2682
- let o = e.indexAfter(a), s = e.node(a);
2683
- if (o == s.childCount) {
2684
- if (s.type.spec.isolating)
2682
+ let o = e.indexAfter(a), t = e.node(a);
2683
+ if (o == t.childCount) {
2684
+ if (t.type.spec.isolating)
2685
2685
  return !0;
2686
2686
  continue;
2687
2687
  }
2688
- for (let t = s.child(o); ; t = t.firstChild) {
2689
- if (t.childCount == 0 && !t.inlineContent || Ko(t.type))
2688
+ for (let s = t.child(o); ; s = s.firstChild) {
2689
+ if (s.childCount == 0 && !s.inlineContent || Wo(s.type))
2690
2690
  return !0;
2691
- if (t.inlineContent)
2691
+ if (s.inlineContent)
2692
2692
  return !1;
2693
2693
  }
2694
2694
  }
2695
2695
  return !0;
2696
2696
  }
2697
- function Ns() {
2697
+ function Ps() {
2698
2698
  return new O({
2699
2699
  props: {
2700
- decorations: $s,
2700
+ decorations: Us,
2701
2701
  createSelectionBetween(e, a, o) {
2702
2702
  return a.pos == o.pos && C.valid(o) ? new C(o) : null;
2703
2703
  },
2704
- handleClick: Os,
2705
- handleKeyDown: Ps,
2706
- handleDOMEvents: { beforeinput: qs }
2704
+ handleClick: qs,
2705
+ handleKeyDown: Os,
2706
+ handleDOMEvents: { beforeinput: $s }
2707
2707
  }
2708
2708
  });
2709
2709
  }
2710
- const Ps = lt({
2710
+ const Os = mt({
2711
2711
  ArrowLeft: He("horiz", -1),
2712
2712
  ArrowRight: He("horiz", 1),
2713
2713
  ArrowUp: He("vert", -1),
@@ -2715,39 +2715,39 @@ const Ps = lt({
2715
2715
  });
2716
2716
  function He(e, a) {
2717
2717
  const o = e == "vert" ? a > 0 ? "down" : "up" : a > 0 ? "right" : "left";
2718
- return function(s, t, n) {
2719
- let i = s.selection, r = a > 0 ? i.$to : i.$from, p = i.empty;
2718
+ return function(t, s, n) {
2719
+ let i = t.selection, r = a > 0 ? i.$to : i.$from, p = i.empty;
2720
2720
  if (i instanceof re) {
2721
2721
  if (!n.endOfTextblock(o) || r.depth == 0)
2722
2722
  return !1;
2723
- p = !1, r = s.doc.resolve(a > 0 ? r.after() : r.before());
2723
+ p = !1, r = t.doc.resolve(a > 0 ? r.after() : r.before());
2724
2724
  }
2725
2725
  let l = C.findGapCursorFrom(r, a, p);
2726
- return l ? (t && t(s.tr.setSelection(new C(l))), !0) : !1;
2726
+ return l ? (s && s(t.tr.setSelection(new C(l))), !0) : !1;
2727
2727
  };
2728
2728
  }
2729
- function Os(e, a, o) {
2729
+ function qs(e, a, o) {
2730
2730
  if (!e || !e.editable)
2731
2731
  return !1;
2732
- let s = e.state.doc.resolve(a);
2733
- if (!C.valid(s))
2732
+ let t = e.state.doc.resolve(a);
2733
+ if (!C.valid(t))
2734
2734
  return !1;
2735
- let t = e.posAtCoords({ left: o.clientX, top: o.clientY });
2736
- return t && t.inside > -1 && qa.isSelectable(e.state.doc.nodeAt(t.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new C(s))), !0);
2735
+ let s = e.posAtCoords({ left: o.clientX, top: o.clientY });
2736
+ return s && s.inside > -1 && qa.isSelectable(e.state.doc.nodeAt(s.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new C(t))), !0);
2737
2737
  }
2738
- function qs(e, a) {
2738
+ function $s(e, a) {
2739
2739
  if (a.inputType != "insertCompositionText" || !(e.state.selection instanceof C))
2740
2740
  return !1;
2741
- let { $from: o } = e.state.selection, s = o.parent.contentMatchAt(o.index()).findWrapping(e.state.schema.nodes.text);
2742
- if (!s)
2741
+ let { $from: o } = e.state.selection, t = o.parent.contentMatchAt(o.index()).findWrapping(e.state.schema.nodes.text);
2742
+ if (!t)
2743
2743
  return !1;
2744
- let t = oo.empty;
2745
- for (let i = s.length - 1; i >= 0; i--)
2746
- t = oo.from(s[i].createAndFill(null, t));
2747
- let n = e.state.tr.replace(o.pos, o.pos, new Io(t, 0, 0));
2744
+ let s = oo.empty;
2745
+ for (let i = t.length - 1; i >= 0; i--)
2746
+ s = oo.from(t[i].createAndFill(null, s));
2747
+ let n = e.state.tr.replace(o.pos, o.pos, new wo(s, 0, 0));
2748
2748
  return n.setSelection(re.near(n.doc.resolve(o.pos + 1))), e.dispatch(n), !1;
2749
2749
  }
2750
- function $s(e) {
2750
+ function Us(e) {
2751
2751
  if (!(e.selection instanceof C))
2752
2752
  return null;
2753
2753
  let a = document.createElement("div");
@@ -2762,7 +2762,7 @@ S.prototype.prepend = function(a) {
2762
2762
  return a.length ? S.from(a).append(this) : this;
2763
2763
  };
2764
2764
  S.prototype.appendInner = function(a) {
2765
- return new Us(this, a);
2765
+ return new Gs(this, a);
2766
2766
  };
2767
2767
  S.prototype.slice = function(a, o) {
2768
2768
  return a === void 0 && (a = 0), o === void 0 && (o = this.length), a >= o ? S.empty : this.sliceInner(Math.max(0, a), Math.min(this.length, o));
@@ -2771,86 +2771,86 @@ S.prototype.get = function(a) {
2771
2771
  if (!(a < 0 || a >= this.length))
2772
2772
  return this.getInner(a);
2773
2773
  };
2774
- S.prototype.forEach = function(a, o, s) {
2775
- o === void 0 && (o = 0), s === void 0 && (s = this.length), o <= s ? this.forEachInner(a, o, s, 0) : this.forEachInvertedInner(a, o, s, 0);
2774
+ S.prototype.forEach = function(a, o, t) {
2775
+ o === void 0 && (o = 0), t === void 0 && (t = this.length), o <= t ? this.forEachInner(a, o, t, 0) : this.forEachInvertedInner(a, o, t, 0);
2776
2776
  };
2777
- S.prototype.map = function(a, o, s) {
2778
- o === void 0 && (o = 0), s === void 0 && (s = this.length);
2779
- var t = [];
2777
+ S.prototype.map = function(a, o, t) {
2778
+ o === void 0 && (o = 0), t === void 0 && (t = this.length);
2779
+ var s = [];
2780
2780
  return this.forEach(function(n, i) {
2781
- return t.push(a(n, i));
2782
- }, o, s), t;
2781
+ return s.push(a(n, i));
2782
+ }, o, t), s;
2783
2783
  };
2784
2784
  S.from = function(a) {
2785
- return a instanceof S ? a : a && a.length ? new Wo(a) : S.empty;
2785
+ return a instanceof S ? a : a && a.length ? new Vo(a) : S.empty;
2786
2786
  };
2787
- var Wo = /* @__PURE__ */ (function(e) {
2788
- function a(s) {
2789
- e.call(this), this.values = s;
2787
+ var Vo = /* @__PURE__ */ (function(e) {
2788
+ function a(t) {
2789
+ e.call(this), this.values = t;
2790
2790
  }
2791
2791
  e && (a.__proto__ = e), a.prototype = Object.create(e && e.prototype), a.prototype.constructor = a;
2792
2792
  var o = { length: { configurable: !0 }, depth: { configurable: !0 } };
2793
2793
  return a.prototype.flatten = function() {
2794
2794
  return this.values;
2795
- }, a.prototype.sliceInner = function(t, n) {
2796
- return t == 0 && n == this.length ? this : new a(this.values.slice(t, n));
2797
- }, a.prototype.getInner = function(t) {
2798
- return this.values[t];
2799
- }, a.prototype.forEachInner = function(t, n, i, r) {
2795
+ }, a.prototype.sliceInner = function(s, n) {
2796
+ return s == 0 && n == this.length ? this : new a(this.values.slice(s, n));
2797
+ }, a.prototype.getInner = function(s) {
2798
+ return this.values[s];
2799
+ }, a.prototype.forEachInner = function(s, n, i, r) {
2800
2800
  for (var p = n; p < i; p++)
2801
- if (t(this.values[p], r + p) === !1)
2801
+ if (s(this.values[p], r + p) === !1)
2802
2802
  return !1;
2803
- }, a.prototype.forEachInvertedInner = function(t, n, i, r) {
2803
+ }, a.prototype.forEachInvertedInner = function(s, n, i, r) {
2804
2804
  for (var p = n - 1; p >= i; p--)
2805
- if (t(this.values[p], r + p) === !1)
2805
+ if (s(this.values[p], r + p) === !1)
2806
2806
  return !1;
2807
- }, a.prototype.leafAppend = function(t) {
2808
- if (this.length + t.length <= fa)
2809
- return new a(this.values.concat(t.flatten()));
2810
- }, a.prototype.leafPrepend = function(t) {
2811
- if (this.length + t.length <= fa)
2812
- return new a(t.flatten().concat(this.values));
2807
+ }, a.prototype.leafAppend = function(s) {
2808
+ if (this.length + s.length <= fa)
2809
+ return new a(this.values.concat(s.flatten()));
2810
+ }, a.prototype.leafPrepend = function(s) {
2811
+ if (this.length + s.length <= fa)
2812
+ return new a(s.flatten().concat(this.values));
2813
2813
  }, o.length.get = function() {
2814
2814
  return this.values.length;
2815
2815
  }, o.depth.get = function() {
2816
2816
  return 0;
2817
2817
  }, Object.defineProperties(a.prototype, o), a;
2818
2818
  })(S);
2819
- S.empty = new Wo([]);
2820
- var Us = /* @__PURE__ */ (function(e) {
2821
- function a(o, s) {
2822
- e.call(this), this.left = o, this.right = s, this.length = o.length + s.length, this.depth = Math.max(o.depth, s.depth) + 1;
2819
+ S.empty = new Vo([]);
2820
+ var Gs = /* @__PURE__ */ (function(e) {
2821
+ function a(o, t) {
2822
+ e.call(this), this.left = o, this.right = t, this.length = o.length + t.length, this.depth = Math.max(o.depth, t.depth) + 1;
2823
2823
  }
2824
2824
  return e && (a.__proto__ = e), a.prototype = Object.create(e && e.prototype), a.prototype.constructor = a, a.prototype.flatten = function() {
2825
2825
  return this.left.flatten().concat(this.right.flatten());
2826
- }, a.prototype.getInner = function(s) {
2827
- return s < this.left.length ? this.left.get(s) : this.right.get(s - this.left.length);
2828
- }, a.prototype.forEachInner = function(s, t, n, i) {
2826
+ }, a.prototype.getInner = function(t) {
2827
+ return t < this.left.length ? this.left.get(t) : this.right.get(t - this.left.length);
2828
+ }, a.prototype.forEachInner = function(t, s, n, i) {
2829
2829
  var r = this.left.length;
2830
- if (t < r && this.left.forEachInner(s, t, Math.min(n, r), i) === !1 || n > r && this.right.forEachInner(s, Math.max(t - r, 0), Math.min(this.length, n) - r, i + r) === !1)
2830
+ if (s < r && this.left.forEachInner(t, s, Math.min(n, r), i) === !1 || n > r && this.right.forEachInner(t, Math.max(s - r, 0), Math.min(this.length, n) - r, i + r) === !1)
2831
2831
  return !1;
2832
- }, a.prototype.forEachInvertedInner = function(s, t, n, i) {
2832
+ }, a.prototype.forEachInvertedInner = function(t, s, n, i) {
2833
2833
  var r = this.left.length;
2834
- if (t > r && this.right.forEachInvertedInner(s, t - r, Math.max(n, r) - r, i + r) === !1 || n < r && this.left.forEachInvertedInner(s, Math.min(t, r), n, i) === !1)
2834
+ if (s > r && this.right.forEachInvertedInner(t, s - r, Math.max(n, r) - r, i + r) === !1 || n < r && this.left.forEachInvertedInner(t, Math.min(s, r), n, i) === !1)
2835
2835
  return !1;
2836
- }, a.prototype.sliceInner = function(s, t) {
2837
- if (s == 0 && t == this.length)
2836
+ }, a.prototype.sliceInner = function(t, s) {
2837
+ if (t == 0 && s == this.length)
2838
2838
  return this;
2839
2839
  var n = this.left.length;
2840
- return t <= n ? this.left.slice(s, t) : s >= n ? this.right.slice(s - n, t - n) : this.left.slice(s, n).append(this.right.slice(0, t - n));
2841
- }, a.prototype.leafAppend = function(s) {
2842
- var t = this.right.leafAppend(s);
2843
- if (t)
2844
- return new a(this.left, t);
2845
- }, a.prototype.leafPrepend = function(s) {
2846
- var t = this.left.leafPrepend(s);
2847
- if (t)
2848
- return new a(t, this.right);
2849
- }, a.prototype.appendInner = function(s) {
2850
- return this.left.depth >= Math.max(this.right.depth, s.depth) + 1 ? new a(this.left, new a(this.right, s)) : new a(this, s);
2840
+ return s <= n ? this.left.slice(t, s) : t >= n ? this.right.slice(t - n, s - n) : this.left.slice(t, n).append(this.right.slice(0, s - n));
2841
+ }, a.prototype.leafAppend = function(t) {
2842
+ var s = this.right.leafAppend(t);
2843
+ if (s)
2844
+ return new a(this.left, s);
2845
+ }, a.prototype.leafPrepend = function(t) {
2846
+ var s = this.left.leafPrepend(t);
2847
+ if (s)
2848
+ return new a(s, this.right);
2849
+ }, a.prototype.appendInner = function(t) {
2850
+ return this.left.depth >= Math.max(this.right.depth, t.depth) + 1 ? new a(this.left, new a(this.right, t)) : new a(this, t);
2851
2851
  }, a;
2852
2852
  })(S);
2853
- const Gs = 500;
2853
+ const Ks = 500;
2854
2854
  class W {
2855
2855
  constructor(a, o) {
2856
2856
  this.items = a, this.eventCount = o;
@@ -2860,46 +2860,46 @@ class W {
2860
2860
  popEvent(a, o) {
2861
2861
  if (this.eventCount == 0)
2862
2862
  return null;
2863
- let s = this.items.length;
2864
- for (; ; s--)
2865
- if (this.items.get(s - 1).selection) {
2866
- --s;
2863
+ let t = this.items.length;
2864
+ for (; ; t--)
2865
+ if (this.items.get(t - 1).selection) {
2866
+ --t;
2867
2867
  break;
2868
2868
  }
2869
- let t, n;
2870
- o && (t = this.remapping(s, this.items.length), n = t.maps.length);
2869
+ let s, n;
2870
+ o && (s = this.remapping(t, this.items.length), n = s.maps.length);
2871
2871
  let i = a.tr, r, p, l = [], c = [];
2872
2872
  return this.items.forEach((m, g) => {
2873
2873
  if (!m.step) {
2874
- t || (t = this.remapping(s, g + 1), n = t.maps.length), n--, c.push(m);
2874
+ s || (s = this.remapping(t, g + 1), n = s.maps.length), n--, c.push(m);
2875
2875
  return;
2876
2876
  }
2877
- if (t) {
2877
+ if (s) {
2878
2878
  c.push(new J(m.map));
2879
- let d = m.step.map(t.slice(n)), j;
2880
- d && i.maybeStep(d).doc && (j = i.mapping.maps[i.mapping.maps.length - 1], l.push(new J(j, void 0, void 0, l.length + c.length))), n--, j && t.appendMap(j, n);
2879
+ let d = m.step.map(s.slice(n)), j;
2880
+ d && i.maybeStep(d).doc && (j = i.mapping.maps[i.mapping.maps.length - 1], l.push(new J(j, void 0, void 0, l.length + c.length))), n--, j && s.appendMap(j, n);
2881
2881
  } else
2882
2882
  i.maybeStep(m.step);
2883
2883
  if (m.selection)
2884
- return r = t ? m.selection.map(t.slice(n)) : m.selection, p = new W(this.items.slice(0, s).append(c.reverse().concat(l)), this.eventCount - 1), !1;
2884
+ return r = s ? m.selection.map(s.slice(n)) : m.selection, p = new W(this.items.slice(0, t).append(c.reverse().concat(l)), this.eventCount - 1), !1;
2885
2885
  }, this.items.length, 0), { remaining: p, transform: i, selection: r };
2886
2886
  }
2887
2887
  // Create a new branch with the given transform added.
2888
- addTransform(a, o, s, t) {
2889
- let n = [], i = this.eventCount, r = this.items, p = !t && r.length ? r.get(r.length - 1) : null;
2888
+ addTransform(a, o, t, s) {
2889
+ let n = [], i = this.eventCount, r = this.items, p = !s && r.length ? r.get(r.length - 1) : null;
2890
2890
  for (let c = 0; c < a.steps.length; c++) {
2891
2891
  let m = a.steps[c].invert(a.docs[c]), g = new J(a.mapping.maps[c], m, o), d;
2892
- (d = p && p.merge(g)) && (g = d, c ? n.pop() : r = r.slice(0, r.length - 1)), n.push(g), o && (i++, o = void 0), t || (p = g);
2892
+ (d = p && p.merge(g)) && (g = d, c ? n.pop() : r = r.slice(0, r.length - 1)), n.push(g), o && (i++, o = void 0), s || (p = g);
2893
2893
  }
2894
- let l = i - s.depth;
2895
- return l > Ws && (r = Ks(r, l), i -= l), new W(r.append(n), i);
2894
+ let l = i - t.depth;
2895
+ return l > Vs && (r = Ws(r, l), i -= l), new W(r.append(n), i);
2896
2896
  }
2897
2897
  remapping(a, o) {
2898
- let s = new mt();
2899
- return this.items.forEach((t, n) => {
2900
- let i = t.mirrorOffset != null && n - t.mirrorOffset >= a ? s.maps.length - t.mirrorOffset : void 0;
2901
- s.appendMap(t.map, i);
2902
- }, a, o), s;
2898
+ let t = new ct();
2899
+ return this.items.forEach((s, n) => {
2900
+ let i = s.mirrorOffset != null && n - s.mirrorOffset >= a ? t.maps.length - s.mirrorOffset : void 0;
2901
+ t.appendMap(s.map, i);
2902
+ }, a, o), t;
2903
2903
  }
2904
2904
  addMaps(a) {
2905
2905
  return this.eventCount == 0 ? this : new W(this.items.append(a.map((o) => new J(o))), this.eventCount);
@@ -2911,10 +2911,10 @@ class W {
2911
2911
  rebased(a, o) {
2912
2912
  if (!this.eventCount)
2913
2913
  return this;
2914
- let s = [], t = Math.max(0, this.items.length - o), n = a.mapping, i = a.steps.length, r = this.eventCount;
2914
+ let t = [], s = Math.max(0, this.items.length - o), n = a.mapping, i = a.steps.length, r = this.eventCount;
2915
2915
  this.items.forEach((g) => {
2916
2916
  g.selection && r--;
2917
- }, t);
2917
+ }, s);
2918
2918
  let p = o;
2919
2919
  this.items.forEach((g) => {
2920
2920
  let d = n.getMirror(--p);
@@ -2924,15 +2924,15 @@ class W {
2924
2924
  let j = n.maps[d];
2925
2925
  if (g.step) {
2926
2926
  let b = a.steps[d].invert(a.docs[d]), h = g.selection && g.selection.map(n.slice(p + 1, d));
2927
- h && r++, s.push(new J(j, b, h));
2927
+ h && r++, t.push(new J(j, b, h));
2928
2928
  } else
2929
- s.push(new J(j));
2930
- }, t);
2929
+ t.push(new J(j));
2930
+ }, s);
2931
2931
  let l = [];
2932
2932
  for (let g = o; g < i; g++)
2933
2933
  l.push(new J(n.maps[g]));
2934
- let c = this.items.slice(0, t).append(l).append(s), m = new W(c, r);
2935
- return m.emptyItemCount() > Gs && (m = m.compress(this.items.length - s.length)), m;
2934
+ let c = this.items.slice(0, s).append(l).append(t), m = new W(c, r);
2935
+ return m.emptyItemCount() > Ks && (m = m.compress(this.items.length - t.length)), m;
2936
2936
  }
2937
2937
  emptyItemCount() {
2938
2938
  let a = 0;
@@ -2947,33 +2947,33 @@ class W {
2947
2947
  // because `rebased` relies on a clean, untouched set of items in
2948
2948
  // order to associate old items with rebased steps.
2949
2949
  compress(a = this.items.length) {
2950
- let o = this.remapping(0, a), s = o.maps.length, t = [], n = 0;
2950
+ let o = this.remapping(0, a), t = o.maps.length, s = [], n = 0;
2951
2951
  return this.items.forEach((i, r) => {
2952
2952
  if (r >= a)
2953
- t.push(i), i.selection && n++;
2953
+ s.push(i), i.selection && n++;
2954
2954
  else if (i.step) {
2955
- let p = i.step.map(o.slice(s)), l = p && p.getMap();
2956
- if (s--, l && o.appendMap(l, s), p) {
2957
- let c = i.selection && i.selection.map(o.slice(s));
2955
+ let p = i.step.map(o.slice(t)), l = p && p.getMap();
2956
+ if (t--, l && o.appendMap(l, t), p) {
2957
+ let c = i.selection && i.selection.map(o.slice(t));
2958
2958
  c && n++;
2959
- let m = new J(l.invert(), p, c), g, d = t.length - 1;
2960
- (g = t.length && t[d].merge(m)) ? t[d] = g : t.push(m);
2959
+ let m = new J(l.invert(), p, c), g, d = s.length - 1;
2960
+ (g = s.length && s[d].merge(m)) ? s[d] = g : s.push(m);
2961
2961
  }
2962
- } else i.map && s--;
2963
- }, this.items.length, 0), new W(S.from(t.reverse()), n);
2962
+ } else i.map && t--;
2963
+ }, this.items.length, 0), new W(S.from(s.reverse()), n);
2964
2964
  }
2965
2965
  }
2966
2966
  W.empty = new W(S.empty, 0);
2967
- function Ks(e, a) {
2967
+ function Ws(e, a) {
2968
2968
  let o;
2969
- return e.forEach((s, t) => {
2970
- if (s.selection && a-- == 0)
2971
- return o = t, !1;
2969
+ return e.forEach((t, s) => {
2970
+ if (t.selection && a-- == 0)
2971
+ return o = s, !1;
2972
2972
  }), e.slice(o);
2973
2973
  }
2974
2974
  class J {
2975
- constructor(a, o, s, t) {
2976
- this.map = a, this.step = o, this.selection = s, this.mirrorOffset = t;
2975
+ constructor(a, o, t, s) {
2976
+ this.map = a, this.step = o, this.selection = t, this.mirrorOffset = s;
2977
2977
  }
2978
2978
  merge(a) {
2979
2979
  if (this.step && a.step && !a.selection) {
@@ -2984,58 +2984,58 @@ class J {
2984
2984
  }
2985
2985
  }
2986
2986
  class te {
2987
- constructor(a, o, s, t, n) {
2988
- this.done = a, this.undone = o, this.prevRanges = s, this.prevTime = t, this.prevComposition = n;
2987
+ constructor(a, o, t, s, n) {
2988
+ this.done = a, this.undone = o, this.prevRanges = t, this.prevTime = s, this.prevComposition = n;
2989
2989
  }
2990
2990
  }
2991
- const Ws = 20;
2992
- function Vs(e, a, o, s) {
2993
- let t = o.getMeta(pe), n;
2994
- if (t)
2995
- return t.historyState;
2996
- o.getMeta(Js) && (e = new te(e.done, e.undone, null, 0, -1));
2991
+ const Vs = 20;
2992
+ function Xs(e, a, o, t) {
2993
+ let s = o.getMeta(pe), n;
2994
+ if (s)
2995
+ return s.historyState;
2996
+ o.getMeta(Qs) && (e = new te(e.done, e.undone, null, 0, -1));
2997
2997
  let i = o.getMeta("appendedTransaction");
2998
2998
  if (o.steps.length == 0)
2999
2999
  return e;
3000
3000
  if (i && i.getMeta(pe))
3001
- return i.getMeta(pe).redo ? new te(e.done.addTransform(o, void 0, s, Pe(a)), e.undone, ho(o.mapping.maps), e.prevTime, e.prevComposition) : new te(e.done, e.undone.addTransform(o, void 0, s, Pe(a)), null, e.prevTime, e.prevComposition);
3001
+ return i.getMeta(pe).redo ? new te(e.done.addTransform(o, void 0, t, Pe(a)), e.undone, ho(o.mapping.maps), e.prevTime, e.prevComposition) : new te(e.done, e.undone.addTransform(o, void 0, t, Pe(a)), null, e.prevTime, e.prevComposition);
3002
3002
  if (o.getMeta("addToHistory") !== !1 && !(i && i.getMeta("addToHistory") === !1)) {
3003
- let r = o.getMeta("composition"), p = e.prevTime == 0 || !i && e.prevComposition != r && (e.prevTime < (o.time || 0) - s.newGroupDelay || !Xs(o, e.prevRanges)), l = i ? wa(e.prevRanges, o.mapping) : ho(o.mapping.maps);
3004
- return new te(e.done.addTransform(o, p ? a.selection.getBookmark() : void 0, s, Pe(a)), W.empty, l, o.time, r ?? e.prevComposition);
3003
+ let r = o.getMeta("composition"), p = e.prevTime == 0 || !i && e.prevComposition != r && (e.prevTime < (o.time || 0) - t.newGroupDelay || !Ys(o, e.prevRanges)), l = i ? wa(e.prevRanges, o.mapping) : ho(o.mapping.maps);
3004
+ return new te(e.done.addTransform(o, p ? a.selection.getBookmark() : void 0, t, Pe(a)), W.empty, l, o.time, r ?? e.prevComposition);
3005
3005
  } else return (n = o.getMeta("rebased")) ? new te(e.done.rebased(o, n), e.undone.rebased(o, n), wa(e.prevRanges, o.mapping), e.prevTime, e.prevComposition) : new te(e.done.addMaps(o.mapping.maps), e.undone.addMaps(o.mapping.maps), wa(e.prevRanges, o.mapping), e.prevTime, e.prevComposition);
3006
3006
  }
3007
- function Xs(e, a) {
3007
+ function Ys(e, a) {
3008
3008
  if (!a)
3009
3009
  return !1;
3010
3010
  if (!e.docChanged)
3011
3011
  return !0;
3012
3012
  let o = !1;
3013
- return e.mapping.maps[0].forEach((s, t) => {
3013
+ return e.mapping.maps[0].forEach((t, s) => {
3014
3014
  for (let n = 0; n < a.length; n += 2)
3015
- s <= a[n + 1] && t >= a[n] && (o = !0);
3015
+ t <= a[n + 1] && s >= a[n] && (o = !0);
3016
3016
  }), o;
3017
3017
  }
3018
3018
  function ho(e) {
3019
3019
  let a = [];
3020
3020
  for (let o = e.length - 1; o >= 0 && a.length == 0; o--)
3021
- e[o].forEach((s, t, n, i) => a.push(n, i));
3021
+ e[o].forEach((t, s, n, i) => a.push(n, i));
3022
3022
  return a;
3023
3023
  }
3024
3024
  function wa(e, a) {
3025
3025
  if (!e)
3026
3026
  return null;
3027
3027
  let o = [];
3028
- for (let s = 0; s < e.length; s += 2) {
3029
- let t = a.map(e[s], 1), n = a.map(e[s + 1], -1);
3030
- t <= n && o.push(t, n);
3028
+ for (let t = 0; t < e.length; t += 2) {
3029
+ let s = a.map(e[t], 1), n = a.map(e[t + 1], -1);
3030
+ s <= n && o.push(s, n);
3031
3031
  }
3032
3032
  return o;
3033
3033
  }
3034
- function Ys(e, a, o) {
3035
- let s = Pe(a), t = pe.get(a).spec.config, n = (o ? e.undone : e.done).popEvent(a, s);
3034
+ function Js(e, a, o) {
3035
+ let t = Pe(a), s = pe.get(a).spec.config, n = (o ? e.undone : e.done).popEvent(a, t);
3036
3036
  if (!n)
3037
3037
  return null;
3038
- let i = n.selection.resolve(n.transform.doc), r = (o ? e.done : e.undone).addTransform(n.transform, a.selection.getBookmark(), t, s), p = new te(o ? r : n.remaining, o ? n.remaining : r, null, 0, -1);
3038
+ let i = n.selection.resolve(n.transform.doc), r = (o ? e.done : e.undone).addTransform(n.transform, a.selection.getBookmark(), s, t), p = new te(o ? r : n.remaining, o ? n.remaining : r, null, 0, -1);
3039
3039
  return n.transform.setSelection(i).setMeta(pe, { redo: o, historyState: p });
3040
3040
  }
3041
3041
  let Ea = !1, jo = null;
@@ -3051,8 +3051,8 @@ function Pe(e) {
3051
3051
  }
3052
3052
  return Ea;
3053
3053
  }
3054
- const pe = new N("history"), Js = new N("closeHistory");
3055
- function Qs(e = {}) {
3054
+ const pe = new N("history"), Qs = new N("closeHistory");
3055
+ function Zs(e = {}) {
3056
3056
  return e = {
3057
3057
  depth: e.depth || 100,
3058
3058
  newGroupDelay: e.newGroupDelay || 500
@@ -3062,34 +3062,34 @@ function Qs(e = {}) {
3062
3062
  init() {
3063
3063
  return new te(W.empty, W.empty, null, 0, -1);
3064
3064
  },
3065
- apply(a, o, s) {
3066
- return Vs(o, s, a, e);
3065
+ apply(a, o, t) {
3066
+ return Xs(o, t, a, e);
3067
3067
  }
3068
3068
  },
3069
3069
  config: e,
3070
3070
  props: {
3071
3071
  handleDOMEvents: {
3072
3072
  beforeinput(a, o) {
3073
- let s = o.inputType, t = s == "historyUndo" ? Xo : s == "historyRedo" ? Yo : null;
3074
- return !t || !a.editable ? !1 : (o.preventDefault(), t(a.state, a.dispatch));
3073
+ let t = o.inputType, s = t == "historyUndo" ? Yo : t == "historyRedo" ? Jo : null;
3074
+ return !s || !a.editable ? !1 : (o.preventDefault(), s(a.state, a.dispatch));
3075
3075
  }
3076
3076
  }
3077
3077
  }
3078
3078
  });
3079
3079
  }
3080
- function Vo(e, a) {
3081
- return (o, s) => {
3082
- let t = pe.getState(o);
3083
- if (!t || (e ? t.undone : t.done).eventCount == 0)
3080
+ function Xo(e, a) {
3081
+ return (o, t) => {
3082
+ let s = pe.getState(o);
3083
+ if (!s || (e ? s.undone : s.done).eventCount == 0)
3084
3084
  return !1;
3085
- if (s) {
3086
- let n = Ys(t, o, e);
3087
- n && s(a ? n.scrollIntoView() : n);
3085
+ if (t) {
3086
+ let n = Js(s, o, e);
3087
+ n && t(a ? n.scrollIntoView() : n);
3088
3088
  }
3089
3089
  return !0;
3090
3090
  };
3091
3091
  }
3092
- const Xo = Vo(!1, !0), Yo = Vo(!0, !0);
3092
+ const Yo = Xo(!1, !0), Jo = Xo(!0, !0);
3093
3093
  M.create({
3094
3094
  name: "characterCount",
3095
3095
  addOptions() {
@@ -3110,8 +3110,8 @@ M.create({
3110
3110
  this.storage.characters = (e) => {
3111
3111
  const a = e?.node || this.editor.state.doc;
3112
3112
  if ((e?.mode || this.options.mode) === "textSize") {
3113
- const s = a.textBetween(0, a.content.size, void 0, " ");
3114
- return this.options.textCounter(s);
3113
+ const t = a.textBetween(0, a.content.size, void 0, " ");
3114
+ return this.options.textCounter(t);
3115
3115
  }
3116
3116
  return a.nodeSize;
3117
3117
  }, this.storage.words = (e) => {
@@ -3124,42 +3124,42 @@ M.create({
3124
3124
  return [
3125
3125
  new O({
3126
3126
  key: new N("characterCount"),
3127
- appendTransaction: (a, o, s) => {
3127
+ appendTransaction: (a, o, t) => {
3128
3128
  if (e)
3129
3129
  return;
3130
- const t = this.options.limit;
3131
- if (t == null || t === 0) {
3130
+ const s = this.options.limit;
3131
+ if (s == null || s === 0) {
3132
3132
  e = !0;
3133
3133
  return;
3134
3134
  }
3135
- const n = this.storage.characters({ node: s.doc });
3136
- if (n > t) {
3137
- const i = n - t, r = 0, p = i;
3135
+ const n = this.storage.characters({ node: t.doc });
3136
+ if (n > s) {
3137
+ const i = n - s, r = 0, p = i;
3138
3138
  console.warn(
3139
- `[CharacterCount] Initial content exceeded limit of ${t} characters. Content was automatically trimmed.`
3139
+ `[CharacterCount] Initial content exceeded limit of ${s} characters. Content was automatically trimmed.`
3140
3140
  );
3141
- const l = s.tr.deleteRange(r, p);
3141
+ const l = t.tr.deleteRange(r, p);
3142
3142
  return e = !0, l;
3143
3143
  }
3144
3144
  e = !0;
3145
3145
  },
3146
3146
  filterTransaction: (a, o) => {
3147
- const s = this.options.limit;
3148
- if (!a.docChanged || s === 0 || s === null || s === void 0)
3147
+ const t = this.options.limit;
3148
+ if (!a.docChanged || t === 0 || t === null || t === void 0)
3149
3149
  return !0;
3150
- const t = this.storage.characters({ node: o.doc }), n = this.storage.characters({ node: a.doc });
3151
- if (n <= s || t > s && n > s && n <= t)
3150
+ const s = this.storage.characters({ node: o.doc }), n = this.storage.characters({ node: a.doc });
3151
+ if (n <= t || s > t && n > t && n <= s)
3152
3152
  return !0;
3153
- if (t > s && n > s && n > t || !a.getMeta("paste"))
3153
+ if (s > t && n > t && n > s || !a.getMeta("paste"))
3154
3154
  return !1;
3155
- const r = a.selection.$head.pos, p = n - s, l = r - p, c = r;
3156
- return a.deleteRange(l, c), !(this.storage.characters({ node: a.doc }) > s);
3155
+ const r = a.selection.$head.pos, p = n - t, l = r - p, c = r;
3156
+ return a.deleteRange(l, c), !(this.storage.characters({ node: a.doc }) > t);
3157
3157
  }
3158
3158
  })
3159
3159
  ];
3160
3160
  }
3161
3161
  });
3162
- var Zs = M.create({
3162
+ var en = M.create({
3163
3163
  name: "dropCursor",
3164
3164
  addOptions() {
3165
3165
  return {
@@ -3169,7 +3169,7 @@ var Zs = M.create({
3169
3169
  };
3170
3170
  },
3171
3171
  addProseMirrorPlugins() {
3172
- return [Ss(this.options)];
3172
+ return [zs(this.options)];
3173
3173
  }
3174
3174
  });
3175
3175
  M.create({
@@ -3186,20 +3186,20 @@ M.create({
3186
3186
  key: new N("focus"),
3187
3187
  props: {
3188
3188
  decorations: ({ doc: e, selection: a }) => {
3189
- const { isEditable: o, isFocused: s } = this.editor, { anchor: t } = a, n = [];
3190
- if (!o || !s)
3189
+ const { isEditable: o, isFocused: t } = this.editor, { anchor: s } = a, n = [];
3190
+ if (!o || !t)
3191
3191
  return fe.create(e, []);
3192
3192
  let i = 0;
3193
3193
  this.options.mode === "deepest" && e.descendants((p, l) => {
3194
3194
  if (p.isText)
3195
3195
  return;
3196
- if (!(t >= l && t <= l + p.nodeSize - 1))
3196
+ if (!(s >= l && s <= l + p.nodeSize - 1))
3197
3197
  return !1;
3198
3198
  i += 1;
3199
3199
  });
3200
3200
  let r = 0;
3201
3201
  return e.descendants((p, l) => {
3202
- if (p.isText || !(t >= l && t <= l + p.nodeSize - 1))
3202
+ if (p.isText || !(s >= l && s <= l + p.nodeSize - 1))
3203
3203
  return !1;
3204
3204
  if (r += 1, this.options.mode === "deepest" && i - r > 0 || this.options.mode === "shallowest" && r > 1)
3205
3205
  return this.options.mode === "deepest";
@@ -3215,10 +3215,10 @@ M.create({
3215
3215
  ];
3216
3216
  }
3217
3217
  });
3218
- var en = M.create({
3218
+ var an = M.create({
3219
3219
  name: "gapCursor",
3220
3220
  addProseMirrorPlugins() {
3221
- return [Ns()];
3221
+ return [Ps()];
3222
3222
  },
3223
3223
  extendNodeSchema(e) {
3224
3224
  var a;
@@ -3228,10 +3228,10 @@ var en = M.create({
3228
3228
  storage: e.storage
3229
3229
  };
3230
3230
  return {
3231
- allowGapCursor: (a = ct(gt(e, "allowGapCursor", o))) != null ? a : null
3231
+ allowGapCursor: (a = gt(ut(e, "allowGapCursor", o))) != null ? a : null
3232
3232
  };
3233
3233
  }
3234
- }), an = M.create({
3234
+ }), on = M.create({
3235
3235
  name: "placeholder",
3236
3236
  addOptions() {
3237
3237
  return {
@@ -3249,12 +3249,12 @@ var en = M.create({
3249
3249
  key: new N("placeholder"),
3250
3250
  props: {
3251
3251
  decorations: ({ doc: e, selection: a }) => {
3252
- const o = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: s } = a, t = [];
3252
+ const o = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: t } = a, s = [];
3253
3253
  if (!o)
3254
3254
  return null;
3255
3255
  const n = this.editor.isEmpty;
3256
3256
  return e.descendants((i, r) => {
3257
- const p = s >= r && s <= r + i.nodeSize, l = !i.isLeaf && ut(i);
3257
+ const p = t >= r && t <= r + i.nodeSize, l = !i.isLeaf && dt(i);
3258
3258
  if ((p || !this.options.showOnlyCurrent) && l) {
3259
3259
  const c = [this.options.emptyNodeClass];
3260
3260
  n && c.push(this.options.emptyEditorClass);
@@ -3267,10 +3267,10 @@ var en = M.create({
3267
3267
  hasAnchor: p
3268
3268
  }) : this.options.placeholder
3269
3269
  });
3270
- t.push(m);
3270
+ s.push(m);
3271
3271
  }
3272
3272
  return this.options.includeChildren;
3273
- }), fe.create(e, t);
3273
+ }), fe.create(e, s);
3274
3274
  }
3275
3275
  }
3276
3276
  })
@@ -3291,7 +3291,7 @@ M.create({
3291
3291
  key: new N("selection"),
3292
3292
  props: {
3293
3293
  decorations(o) {
3294
- return o.selection.empty || e.isFocused || !e.isEditable || vo(o.selection) || e.view.dragging ? null : fe.create(o.doc, [
3294
+ return o.selection.empty || e.isFocused || !e.isEditable || Fo(o.selection) || e.view.dragging ? null : fe.create(o.doc, [
3295
3295
  xe.inline(o.selection.from, o.selection.to, {
3296
3296
  class: a.className
3297
3297
  })
@@ -3305,7 +3305,7 @@ M.create({
3305
3305
  function bo({ types: e, node: a }) {
3306
3306
  return a && Array.isArray(e) && e.includes(a.type) || a?.type === e;
3307
3307
  }
3308
- var on = M.create({
3308
+ var tn = M.create({
3309
3309
  name: "trailingNode",
3310
3310
  addOptions() {
3311
3311
  return {
@@ -3315,31 +3315,31 @@ var on = M.create({
3315
3315
  },
3316
3316
  addProseMirrorPlugins() {
3317
3317
  var e;
3318
- const a = new N(this.name), o = ((e = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : e.name) || this.options.node || "paragraph", s = Object.entries(this.editor.schema.nodes).map(([, t]) => t).filter((t) => (this.options.notAfter || []).concat(o).includes(t.name));
3318
+ const a = new N(this.name), o = ((e = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : e.name) || this.options.node || "paragraph", t = Object.entries(this.editor.schema.nodes).map(([, s]) => s).filter((s) => (this.options.notAfter || []).concat(o).includes(s.name));
3319
3319
  return [
3320
3320
  new O({
3321
3321
  key: a,
3322
- appendTransaction: (t, n, i) => {
3322
+ appendTransaction: (s, n, i) => {
3323
3323
  const { doc: r, tr: p, schema: l } = i, c = a.getState(i), m = r.content.size, g = l.nodes[o];
3324
3324
  if (c)
3325
3325
  return p.insert(m, g.create());
3326
3326
  },
3327
3327
  state: {
3328
- init: (t, n) => {
3328
+ init: (s, n) => {
3329
3329
  const i = n.tr.doc.lastChild;
3330
- return !bo({ node: i, types: s });
3330
+ return !bo({ node: i, types: t });
3331
3331
  },
3332
- apply: (t, n) => {
3333
- if (!t.docChanged || t.getMeta("__uniqueIDTransaction"))
3332
+ apply: (s, n) => {
3333
+ if (!s.docChanged || s.getMeta("__uniqueIDTransaction"))
3334
3334
  return n;
3335
- const i = t.doc.lastChild;
3336
- return !bo({ node: i, types: s });
3335
+ const i = s.doc.lastChild;
3336
+ return !bo({ node: i, types: t });
3337
3337
  }
3338
3338
  }
3339
3339
  })
3340
3340
  ];
3341
3341
  }
3342
- }), tn = M.create({
3342
+ }), sn = M.create({
3343
3343
  name: "undoRedo",
3344
3344
  addOptions() {
3345
3345
  return {
@@ -3349,12 +3349,12 @@ var on = M.create({
3349
3349
  },
3350
3350
  addCommands() {
3351
3351
  return {
3352
- undo: () => ({ state: e, dispatch: a }) => Xo(e, a),
3353
- redo: () => ({ state: e, dispatch: a }) => Yo(e, a)
3352
+ undo: () => ({ state: e, dispatch: a }) => Yo(e, a),
3353
+ redo: () => ({ state: e, dispatch: a }) => Jo(e, a)
3354
3354
  };
3355
3355
  },
3356
3356
  addProseMirrorPlugins() {
3357
- return [Qs(this.options)];
3357
+ return [Zs(this.options)];
3358
3358
  },
3359
3359
  addKeyboardShortcuts() {
3360
3360
  return {
@@ -3366,14 +3366,14 @@ var on = M.create({
3366
3366
  "Shift-Mod-я": () => this.editor.commands.redo()
3367
3367
  };
3368
3368
  }
3369
- }), sn = M.create({
3369
+ }), nn = M.create({
3370
3370
  name: "starterKit",
3371
3371
  addExtensions() {
3372
- var e, a, o, s;
3373
- const t = [];
3374
- return this.options.bold !== !1 && t.push(Bt.configure(this.options.bold)), this.options.blockquote !== !1 && t.push(It.configure(this.options.blockquote)), this.options.bulletList !== !1 && t.push(zo.configure(this.options.bulletList)), this.options.code !== !1 && t.push(Lt.configure(this.options.code)), this.options.codeBlock !== !1 && t.push(zt.configure(this.options.codeBlock)), this.options.document !== !1 && t.push(Rt.configure(this.options.document)), this.options.dropcursor !== !1 && t.push(Zs.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && t.push(en.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && t.push(Ht.configure(this.options.hardBreak)), this.options.heading !== !1 && t.push(Nt.configure(this.options.heading)), this.options.undoRedo !== !1 && t.push(tn.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && t.push(Pt.configure(this.options.horizontalRule)), this.options.italic !== !1 && t.push(Gt.configure(this.options.italic)), this.options.listItem !== !1 && t.push(Ro.configure(this.options.listItem)), this.options.listKeymap !== !1 && t.push($o.configure((e = this.options) == null ? void 0 : e.listKeymap)), this.options.link !== !1 && t.push(hs.configure((a = this.options) == null ? void 0 : a.link)), this.options.orderedList !== !1 && t.push(Go.configure(this.options.orderedList)), this.options.paragraph !== !1 && t.push(As.configure(this.options.paragraph)), this.options.strike !== !1 && t.push(Ts.configure(this.options.strike)), this.options.text !== !1 && t.push(Ls.configure(this.options.text)), this.options.underline !== !1 && t.push(Ms.configure((o = this.options) == null ? void 0 : o.underline)), this.options.trailingNode !== !1 && t.push(on.configure((s = this.options) == null ? void 0 : s.trailingNode)), t;
3372
+ var e, a, o, t;
3373
+ const s = [];
3374
+ return this.options.bold !== !1 && s.push(xt.configure(this.options.bold)), this.options.blockquote !== !1 && s.push(wt.configure(this.options.blockquote)), this.options.bulletList !== !1 && s.push(Ro.configure(this.options.bulletList)), this.options.code !== !1 && s.push(Mt.configure(this.options.code)), this.options.codeBlock !== !1 && s.push(Rt.configure(this.options.codeBlock)), this.options.document !== !1 && s.push(Ht.configure(this.options.document)), this.options.dropcursor !== !1 && s.push(en.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && s.push(an.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && s.push(Nt.configure(this.options.hardBreak)), this.options.heading !== !1 && s.push(Pt.configure(this.options.heading)), this.options.undoRedo !== !1 && s.push(sn.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && s.push(Ot.configure(this.options.horizontalRule)), this.options.italic !== !1 && s.push(Kt.configure(this.options.italic)), this.options.listItem !== !1 && s.push(Ho.configure(this.options.listItem)), this.options.listKeymap !== !1 && s.push(Uo.configure((e = this.options) == null ? void 0 : e.listKeymap)), this.options.link !== !1 && s.push(js.configure((a = this.options) == null ? void 0 : a.link)), this.options.orderedList !== !1 && s.push(Ko.configure(this.options.orderedList)), this.options.paragraph !== !1 && s.push(Bs.configure(this.options.paragraph)), this.options.strike !== !1 && s.push(Ls.configure(this.options.strike)), this.options.text !== !1 && s.push(Ms.configure(this.options.text)), this.options.underline !== !1 && s.push(Ss.configure((o = this.options) == null ? void 0 : o.underline)), this.options.trailingNode !== !1 && s.push(tn.configure((t = this.options) == null ? void 0 : t.trailingNode)), s;
3375
3375
  }
3376
- }), nn = sn, rn = M.create({
3376
+ }), rn = nn, pn = M.create({
3377
3377
  name: "textAlign",
3378
3378
  addOptions() {
3379
3379
  return {
@@ -3414,7 +3414,7 @@ var on = M.create({
3414
3414
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
3415
3415
  };
3416
3416
  }
3417
- }), pn = rn, ln = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, mn = P.create({
3417
+ }), ln = pn, mn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, cn = P.create({
3418
3418
  name: "image",
3419
3419
  addOptions() {
3420
3420
  return {
@@ -3466,15 +3466,15 @@ var on = M.create({
3466
3466
  alt: e.text
3467
3467
  }),
3468
3468
  renderMarkdown: (e) => {
3469
- var a, o, s, t, n, i;
3470
- const r = (o = (a = e.attrs) == null ? void 0 : a.src) != null ? o : "", p = (t = (s = e.attrs) == null ? void 0 : s.alt) != null ? t : "", l = (i = (n = e.attrs) == null ? void 0 : n.title) != null ? i : "";
3469
+ var a, o, t, s, n, i;
3470
+ const r = (o = (a = e.attrs) == null ? void 0 : a.src) != null ? o : "", p = (s = (t = e.attrs) == null ? void 0 : t.alt) != null ? s : "", l = (i = (n = e.attrs) == null ? void 0 : n.title) != null ? i : "";
3471
3471
  return l ? `![${p}](${r} "${l}")` : `![${p}](${r})`;
3472
3472
  },
3473
3473
  addNodeView() {
3474
3474
  if (!this.options.resize || !this.options.resize.enabled || typeof document > "u" || !this.editor.isEditable)
3475
3475
  return null;
3476
- const { directions: e, minWidth: a, minHeight: o, alwaysPreserveAspectRatio: s } = this.options.resize;
3477
- return ({ node: t, getPos: n, HTMLAttributes: i }) => {
3476
+ const { directions: e, minWidth: a, minHeight: o, alwaysPreserveAspectRatio: t } = this.options.resize;
3477
+ return ({ node: s, getPos: n, HTMLAttributes: i }) => {
3478
3478
  const r = document.createElement("img");
3479
3479
  Object.entries(i).forEach(([c, m]) => {
3480
3480
  if (m != null)
@@ -3487,9 +3487,9 @@ var on = M.create({
3487
3487
  break;
3488
3488
  }
3489
3489
  }), r.src = i.src;
3490
- const p = new dt({
3490
+ const p = new ft({
3491
3491
  element: r,
3492
- node: t,
3492
+ node: s,
3493
3493
  getPos: n,
3494
3494
  onResize: (c, m) => {
3495
3495
  r.style.width = `${c}px`, r.style.height = `${m}px`;
@@ -3501,14 +3501,14 @@ var on = M.create({
3501
3501
  height: m
3502
3502
  }).run();
3503
3503
  },
3504
- onUpdate: (c, m, g) => c.type === t.type,
3504
+ onUpdate: (c, m, g) => c.type === s.type,
3505
3505
  options: {
3506
3506
  directions: e,
3507
3507
  min: {
3508
3508
  width: a,
3509
3509
  height: o
3510
3510
  },
3511
- preserveAspectRatio: s === !0
3511
+ preserveAspectRatio: t === !0
3512
3512
  }
3513
3513
  }), l = p.dom;
3514
3514
  return l.style.visibility = "hidden", l.style.pointerEvents = "none", r.onload = () => {
@@ -3527,28 +3527,28 @@ var on = M.create({
3527
3527
  addInputRules() {
3528
3528
  return [
3529
3529
  Oa({
3530
- find: ln,
3530
+ find: mn,
3531
3531
  type: this.type,
3532
3532
  getAttributes: (e) => {
3533
- const [, , a, o, s] = e;
3534
- return { src: o, alt: a, title: s };
3533
+ const [, , a, o, t] = e;
3534
+ return { src: o, alt: a, title: t };
3535
3535
  }
3536
3536
  })
3537
3537
  ];
3538
3538
  }
3539
- }), cn = mn, gn = ({ key: e, editor: a, onPaste: o, onDrop: s, allowedMimeTypes: t }) => new O({
3539
+ }), gn = cn, un = ({ key: e, editor: a, onPaste: o, onDrop: t, allowedMimeTypes: s }) => new O({
3540
3540
  key: e || new N("fileHandler"),
3541
3541
  props: {
3542
3542
  handleDrop(n, i) {
3543
3543
  var r;
3544
- if (!s || !((r = i.dataTransfer) != null && r.files.length))
3544
+ if (!t || !((r = i.dataTransfer) != null && r.files.length))
3545
3545
  return !1;
3546
3546
  const p = n.posAtCoords({
3547
3547
  left: i.clientX,
3548
3548
  top: i.clientY
3549
3549
  });
3550
3550
  let l = Array.from(i.dataTransfer.files);
3551
- return t && (l = l.filter((c) => t.includes(c.type))), l.length === 0 ? !1 : (i.preventDefault(), i.stopPropagation(), s(a, l, p?.pos || 0), !0);
3551
+ return s && (l = l.filter((c) => s.includes(c.type))), l.length === 0 ? !1 : (i.preventDefault(), i.stopPropagation(), t(a, l, p?.pos || 0), !0);
3552
3552
  },
3553
3553
  handlePaste(n, i) {
3554
3554
  var r;
@@ -3556,10 +3556,10 @@ var on = M.create({
3556
3556
  return !1;
3557
3557
  let p = Array.from(i.clipboardData.files);
3558
3558
  const l = i.clipboardData.getData("text/html");
3559
- return t && (p = p.filter((c) => t.includes(c.type))), !(p.length === 0 || (i.preventDefault(), i.stopPropagation(), o(a, p, l), l.length > 0));
3559
+ return s && (p = p.filter((c) => s.includes(c.type))), !(p.length === 0 || (i.preventDefault(), i.stopPropagation(), o(a, p, l), l.length > 0));
3560
3560
  }
3561
3561
  }
3562
- }), un = M.create({
3562
+ }), dn = M.create({
3563
3563
  name: "fileHandler",
3564
3564
  addOptions() {
3565
3565
  return {
@@ -3570,7 +3570,7 @@ var on = M.create({
3570
3570
  },
3571
3571
  addProseMirrorPlugins() {
3572
3572
  return [
3573
- gn({
3573
+ un({
3574
3574
  key: new N(this.name),
3575
3575
  editor: this.editor,
3576
3576
  allowedMimeTypes: this.options.allowedMimeTypes,
@@ -3579,21 +3579,21 @@ var on = M.create({
3579
3579
  })
3580
3580
  ];
3581
3581
  }
3582
- }), dn = un, fn = 20, Jo = (e, a = 0) => {
3582
+ }), fn = dn, hn = 20, Qo = (e, a = 0) => {
3583
3583
  const o = [];
3584
- return !e.children.length || a > fn || Array.from(e.children).forEach((s) => {
3585
- s.tagName === "SPAN" ? o.push(s) : s.children.length && o.push(...Jo(s, a + 1));
3584
+ return !e.children.length || a > hn || Array.from(e.children).forEach((t) => {
3585
+ t.tagName === "SPAN" ? o.push(t) : t.children.length && o.push(...Qo(t, a + 1));
3586
3586
  }), o;
3587
- }, hn = (e) => {
3587
+ }, jn = (e) => {
3588
3588
  if (!e.children.length)
3589
3589
  return;
3590
- const a = Jo(e);
3590
+ const a = Qo(e);
3591
3591
  a && a.forEach((o) => {
3592
- var s, t;
3593
- const n = o.getAttribute("style"), i = (t = (s = o.parentElement) == null ? void 0 : s.closest("span")) == null ? void 0 : t.getAttribute("style");
3592
+ var t, s;
3593
+ const n = o.getAttribute("style"), i = (s = (t = o.parentElement) == null ? void 0 : t.closest("span")) == null ? void 0 : s.getAttribute("style");
3594
3594
  o.setAttribute("style", `${i};${n}`);
3595
3595
  });
3596
- }, Qo = me.create({
3596
+ }, Zo = me.create({
3597
3597
  name: "textStyle",
3598
3598
  priority: 101,
3599
3599
  addOptions() {
@@ -3607,7 +3607,7 @@ var on = M.create({
3607
3607
  {
3608
3608
  tag: "span",
3609
3609
  consuming: !1,
3610
- getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && hn(e), {}) : !1
3610
+ getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && jn(e), {}) : !1
3611
3611
  }
3612
3612
  ];
3613
3613
  },
@@ -3619,15 +3619,15 @@ var on = M.create({
3619
3619
  toggleTextStyle: (e) => ({ commands: a }) => a.toggleMark(this.name, e),
3620
3620
  removeEmptyTextStyle: () => ({ tr: e }) => {
3621
3621
  const { selection: a } = e;
3622
- return e.doc.nodesBetween(a.from, a.to, (o, s) => {
3622
+ return e.doc.nodesBetween(a.from, a.to, (o, t) => {
3623
3623
  if (o.isTextblock)
3624
3624
  return !0;
3625
- o.marks.filter((t) => t.type === this.type).some((t) => Object.values(t.attrs).some((n) => !!n)) || e.removeMark(s, s + o.nodeSize, this.type);
3625
+ o.marks.filter((s) => s.type === this.type).some((s) => Object.values(s.attrs).some((n) => !!n)) || e.removeMark(t, t + o.nodeSize, this.type);
3626
3626
  }), !0;
3627
3627
  }
3628
3628
  };
3629
3629
  }
3630
- }), jn = M.create({
3630
+ }), bn = M.create({
3631
3631
  name: "backgroundColor",
3632
3632
  addOptions() {
3633
3633
  return {
@@ -3645,9 +3645,9 @@ var on = M.create({
3645
3645
  var a;
3646
3646
  const o = e.getAttribute("style");
3647
3647
  if (o) {
3648
- const s = o.split(";").map((t) => t.trim()).filter(Boolean);
3649
- for (let t = s.length - 1; t >= 0; t -= 1) {
3650
- const n = s[t].split(":");
3648
+ const t = o.split(";").map((s) => s.trim()).filter(Boolean);
3649
+ for (let s = t.length - 1; s >= 0; s -= 1) {
3650
+ const n = t[s].split(":");
3651
3651
  if (n.length >= 2) {
3652
3652
  const i = n[0].trim().toLowerCase(), r = n.slice(1).join(":").trim();
3653
3653
  if (i === "background-color")
@@ -3671,7 +3671,7 @@ var on = M.create({
3671
3671
  unsetBackgroundColor: () => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
3672
3672
  };
3673
3673
  }
3674
- }), Zo = M.create({
3674
+ }), et = M.create({
3675
3675
  name: "color",
3676
3676
  addOptions() {
3677
3677
  return {
@@ -3689,9 +3689,9 @@ var on = M.create({
3689
3689
  var a;
3690
3690
  const o = e.getAttribute("style");
3691
3691
  if (o) {
3692
- const s = o.split(";").map((t) => t.trim()).filter(Boolean);
3693
- for (let t = s.length - 1; t >= 0; t -= 1) {
3694
- const n = s[t].split(":");
3692
+ const t = o.split(";").map((s) => s.trim()).filter(Boolean);
3693
+ for (let s = t.length - 1; s >= 0; s -= 1) {
3694
+ const n = t[s].split(":");
3695
3695
  if (n.length >= 2) {
3696
3696
  const i = n[0].trim().toLowerCase(), r = n.slice(1).join(":").trim();
3697
3697
  if (i === "color")
@@ -3715,7 +3715,7 @@ var on = M.create({
3715
3715
  unsetColor: () => ({ chain: e }) => e().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
3716
3716
  };
3717
3717
  }
3718
- }), bn = M.create({
3718
+ }), vn = M.create({
3719
3719
  name: "fontFamily",
3720
3720
  addOptions() {
3721
3721
  return {
@@ -3744,7 +3744,7 @@ var on = M.create({
3744
3744
  unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
3745
3745
  };
3746
3746
  }
3747
- }), vn = M.create({
3747
+ }), Fn = M.create({
3748
3748
  name: "fontSize",
3749
3749
  addOptions() {
3750
3750
  return {
@@ -3773,7 +3773,7 @@ var on = M.create({
3773
3773
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
3774
3774
  };
3775
3775
  }
3776
- }), Fn = M.create({
3776
+ }), kn = M.create({
3777
3777
  name: "lineHeight",
3778
3778
  addOptions() {
3779
3779
  return {
@@ -3807,19 +3807,19 @@ M.create({
3807
3807
  name: "textStyleKit",
3808
3808
  addExtensions() {
3809
3809
  const e = [];
3810
- return this.options.backgroundColor !== !1 && e.push(jn.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(Zo.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(bn.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(vn.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(Fn.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(Qo.configure(this.options.textStyle)), e;
3810
+ return this.options.backgroundColor !== !1 && e.push(bn.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(et.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(vn.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(Fn.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(kn.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(Zo.configure(this.options.textStyle)), e;
3811
3811
  }
3812
3812
  });
3813
- function kn(e) {
3813
+ function _n(e) {
3814
3814
  var a;
3815
- const { char: o, allowSpaces: s, allowToIncludeChar: t, allowedPrefixes: n, startOfLine: i, $position: r } = e, p = s && !t, l = wo(o), c = new RegExp(`\\s${l}$`), m = i ? "^" : "", g = t ? "" : l, d = p ? new RegExp(`${m}${l}.*?(?=\\s${g}|$)`, "gm") : new RegExp(`${m}(?:^)?${l}[^\\s${g}]*`, "gm"), j = ((a = r.nodeBefore) == null ? void 0 : a.isText) && r.nodeBefore.text;
3815
+ const { char: o, allowSpaces: t, allowToIncludeChar: s, allowedPrefixes: n, startOfLine: i, $position: r } = e, p = t && !s, l = Eo(o), c = new RegExp(`\\s${l}$`), m = i ? "^" : "", g = s ? "" : l, d = p ? new RegExp(`${m}${l}.*?(?=\\s${g}|$)`, "gm") : new RegExp(`${m}(?:^)?${l}[^\\s${g}]*`, "gm"), j = ((a = r.nodeBefore) == null ? void 0 : a.isText) && r.nodeBefore.text;
3816
3816
  if (!j)
3817
3817
  return null;
3818
3818
  const b = r.pos - j.length, h = Array.from(j.matchAll(d)).pop();
3819
3819
  if (!h || h.input === void 0 || h.index === void 0)
3820
3820
  return null;
3821
- const f = h.input.slice(Math.max(0, h.index - 1), h.index), D = new RegExp(`^[${n?.join("")}\0]?$`).test(f);
3822
- if (n !== null && !D)
3821
+ const f = h.input.slice(Math.max(0, h.index - 1), h.index), _ = new RegExp(`^[${n?.join("")}\0]?$`).test(f);
3822
+ if (n !== null && !_)
3823
3823
  return null;
3824
3824
  const $ = b + h.index;
3825
3825
  let R = $ + h[0].length;
@@ -3832,13 +3832,13 @@ function kn(e) {
3832
3832
  text: h[0]
3833
3833
  } : null;
3834
3834
  }
3835
- var _n = new N("suggestion");
3836
- function Dn({
3837
- pluginKey: e = _n,
3835
+ var Dn = new N("suggestion");
3836
+ function yn({
3837
+ pluginKey: e = Dn,
3838
3838
  editor: a,
3839
3839
  char: o = "@",
3840
- allowSpaces: s = !1,
3841
- allowToIncludeChar: t = !1,
3840
+ allowSpaces: t = !1,
3841
+ allowToIncludeChar: s = !1,
3842
3842
  allowedPrefixes: n = [" "],
3843
3843
  startOfLine: i = !1,
3844
3844
  decorationTag: r = "span",
@@ -3849,31 +3849,31 @@ function Dn({
3849
3849
  items: g = () => [],
3850
3850
  render: d = () => ({}),
3851
3851
  allow: j = () => !0,
3852
- findSuggestionMatch: b = kn
3852
+ findSuggestionMatch: b = _n
3853
3853
  }) {
3854
3854
  let h;
3855
- const f = d?.(), D = () => {
3856
- const v = a.state.selection.$anchor.pos, y = a.view.coordsAtPos(v), { top: B, right: z, bottom: _, left: x } = y;
3855
+ const f = d?.(), _ = () => {
3856
+ const v = a.state.selection.$anchor.pos, y = a.view.coordsAtPos(v), { top: B, right: z, bottom: D, left: x } = y;
3857
3857
  try {
3858
- return new DOMRect(x, B, z - x, _ - B);
3858
+ return new DOMRect(x, B, z - x, D - B);
3859
3859
  } catch {
3860
3860
  return null;
3861
3861
  }
3862
3862
  }, $ = (v, y) => y ? () => {
3863
- const B = e.getState(a.state), z = B?.decorationId, _ = v.dom.querySelector(`[data-decoration-id="${z}"]`);
3864
- return _?.getBoundingClientRect() || null;
3865
- } : D;
3863
+ const B = e.getState(a.state), z = B?.decorationId, D = v.dom.querySelector(`[data-decoration-id="${z}"]`);
3864
+ return D?.getBoundingClientRect() || null;
3865
+ } : _;
3866
3866
  function R(v, y) {
3867
3867
  var B;
3868
3868
  try {
3869
- const _ = e.getState(v.state), x = _?.decorationId ? v.dom.querySelector(`[data-decoration-id="${_.decorationId}"]`) : null, H = {
3869
+ const D = e.getState(v.state), x = D?.decorationId ? v.dom.querySelector(`[data-decoration-id="${D.decorationId}"]`) : null, H = {
3870
3870
  // @ts-ignore editor is available in closure
3871
3871
  editor: a,
3872
- range: _?.range || { from: 0, to: 0 },
3873
- query: _?.query || null,
3874
- text: _?.text || null,
3872
+ range: D?.range || { from: 0, to: 0 },
3873
+ query: D?.query || null,
3874
+ text: D?.text || null,
3875
3875
  items: [],
3876
- command: (K) => m({ editor: a, range: _?.range || { from: 0, to: 0 }, props: K }),
3876
+ command: (K) => m({ editor: a, range: D?.range || { from: 0, to: 0 }, props: K }),
3877
3877
  decorationNode: x,
3878
3878
  clientRect: $(v, x)
3879
3879
  };
@@ -3888,7 +3888,7 @@ function Dn({
3888
3888
  view() {
3889
3889
  return {
3890
3890
  update: async (v, y) => {
3891
- var B, z, _, x, H, K, V;
3891
+ var B, z, D, x, H, K, V;
3892
3892
  const F = (B = this.key) == null ? void 0 : B.getState(y), T = (z = this.key) == null ? void 0 : z.getState(v.state), L = F.active && T.active && F.range.from !== T.range.from, he = !F.active && T.active, Le = F.active && !T.active, je = !he && !Le && F.query !== T.query, be = he || L && je, Me = je || L, ja = Le || L && je;
3893
3893
  if (!be && !Me && !ja)
3894
3894
  return;
@@ -3899,14 +3899,14 @@ function Dn({
3899
3899
  query: ce.query,
3900
3900
  text: ce.text,
3901
3901
  items: [],
3902
- command: (at) => m({
3902
+ command: (ot) => m({
3903
3903
  editor: a,
3904
3904
  range: ce.range,
3905
- props: at
3905
+ props: ot
3906
3906
  }),
3907
3907
  decorationNode: eo,
3908
3908
  clientRect: $(v, eo)
3909
- }, be && ((_ = f?.onBeforeStart) == null || _.call(f, h)), Me && ((x = f?.onBeforeUpdate) == null || x.call(f, h)), (Me || be) && (h.items = await g({
3909
+ }, be && ((D = f?.onBeforeStart) == null || D.call(f, h)), Me && ((x = f?.onBeforeUpdate) == null || x.call(f, h)), (Me || be) && (h.items = await g({
3910
3910
  editor: a,
3911
3911
  query: ce.query
3912
3912
  })), ja && ((H = f?.onExit) == null || H.call(f, h)), Me && ((K = f?.onUpdate) == null || K.call(f, h)), be && ((V = f?.onStart) == null || V.call(f, h));
@@ -3933,15 +3933,15 @@ function Dn({
3933
3933
  },
3934
3934
  // Apply changes to the plugin state from a view transaction.
3935
3935
  apply(v, y, B, z) {
3936
- const { isEditable: _ } = a, { composing: x } = a.view, { selection: H } = v, { empty: K, from: V } = H, F = { ...y }, T = v.getMeta(e);
3936
+ const { isEditable: D } = a, { composing: x } = a.view, { selection: H } = v, { empty: K, from: V } = H, F = { ...y }, T = v.getMeta(e);
3937
3937
  if (T && T.exit)
3938
3938
  return F.active = !1, F.decorationId = null, F.range = { from: 0, to: 0 }, F.query = null, F.text = null, F;
3939
- if (F.composing = x, _ && (K || a.view.composing)) {
3939
+ if (F.composing = x, D && (K || a.view.composing)) {
3940
3940
  (V < y.range.from || V > y.range.to) && !x && !y.composing && (F.active = !1);
3941
3941
  const L = b({
3942
3942
  char: o,
3943
- allowSpaces: s,
3944
- allowToIncludeChar: t,
3943
+ allowSpaces: t,
3944
+ allowToIncludeChar: s,
3945
3945
  allowedPrefixes: n,
3946
3946
  startOfLine: i,
3947
3947
  $position: H.$from
@@ -3960,7 +3960,7 @@ function Dn({
3960
3960
  props: {
3961
3961
  // Call the keydown hook if suggestion is active.
3962
3962
  handleKeyDown(v, y) {
3963
- var B, z, _, x;
3963
+ var B, z, D, x;
3964
3964
  const { active: H, range: K } = w.getState(v.state);
3965
3965
  if (!H)
3966
3966
  return !1;
@@ -3981,16 +3981,16 @@ function Dn({
3981
3981
  // let consumer decide if they want to query.
3982
3982
  clientRect: L ? () => L.getBoundingClientRect() || null : null
3983
3983
  };
3984
- return (_ = f?.onExit) == null || _.call(f, Le), R(v, e), !0;
3984
+ return (D = f?.onExit) == null || D.call(f, Le), R(v, e), !0;
3985
3985
  }
3986
3986
  return ((x = f?.onKeyDown) == null ? void 0 : x.call(f, { view: v, event: y, range: K })) || !1;
3987
3987
  },
3988
3988
  // Setup decorator on the currently active suggestion.
3989
3989
  decorations(v) {
3990
- const { active: y, range: B, decorationId: z, query: _ } = w.getState(v);
3990
+ const { active: y, range: B, decorationId: z, query: D } = w.getState(v);
3991
3991
  if (!y)
3992
3992
  return null;
3993
- const x = !_?.length, H = [p];
3993
+ const x = !D?.length, H = [p];
3994
3994
  return x && H.push(c), fe.create(v.doc, [
3995
3995
  xe.inline(B.from, B.to, {
3996
3996
  nodeName: r,
@@ -4004,16 +4004,16 @@ function Dn({
4004
4004
  });
4005
4005
  return w;
4006
4006
  }
4007
- var yn = Dn;
4008
- const In = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
4007
+ var In = yn;
4008
+ const wn = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
4009
4009
  var Ca = /* @__PURE__ */ new Map();
4010
- function wn(e) {
4010
+ function En(e) {
4011
4011
  if (Ca.has(e))
4012
4012
  return Ca.get(e);
4013
- var a = En(e);
4013
+ var a = Cn(e);
4014
4014
  return Ca.set(e, a), a;
4015
4015
  }
4016
- var En = (function() {
4016
+ var Cn = (function() {
4017
4017
  var e = null;
4018
4018
  try {
4019
4019
  e = document.createElement("canvas").getContext("2d");
@@ -4023,17 +4023,17 @@ var En = (function() {
4023
4023
  return function() {
4024
4024
  return !1;
4025
4025
  };
4026
- var a = 25, o = 20, s = Math.floor(a / 2);
4027
- return e.font = s + "px Arial, Sans-Serif", e.textBaseline = "top", e.canvas.width = o * 2, e.canvas.height = a, function(t) {
4028
- e.clearRect(0, 0, o * 2, a), e.fillStyle = "#FF0000", e.fillText(t, 0, 22), e.fillStyle = "#0000FF", e.fillText(t, o, 22);
4026
+ var a = 25, o = 20, t = Math.floor(a / 2);
4027
+ return e.font = t + "px Arial, Sans-Serif", e.textBaseline = "top", e.canvas.width = o * 2, e.canvas.height = a, function(s) {
4028
+ e.clearRect(0, 0, o * 2, a), e.fillStyle = "#FF0000", e.fillText(s, 0, 22), e.fillStyle = "#0000FF", e.fillText(s, o, 22);
4029
4029
  for (var n = e.getImageData(0, 0, o, a).data, i = n.length, r = 0; r < i && !n[r + 3]; r += 4)
4030
4030
  ;
4031
4031
  if (r >= i)
4032
4032
  return !1;
4033
4033
  var p = o + r / 4 % o, l = Math.floor(r / 4 / o), c = e.getImageData(p, l, 1, 1).data;
4034
- return !(n[r] !== c[0] || n[r + 2] !== c[2] || e.measureText(t).width >= o);
4034
+ return !(n[r] !== c[0] || n[r + 2] !== c[2] || e.measureText(s).width >= o);
4035
4035
  };
4036
- })(), et = [
4036
+ })(), at = [
4037
4037
  {
4038
4038
  emoji: "🇦",
4039
4039
  name: "regional_indicator_a",
@@ -23245,7 +23245,7 @@ var En = (function() {
23245
23245
  version: 5,
23246
23246
  fallbackImage: "https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f4-e0067-e0062-e0077-e006c-e0073-e007f.png"
23247
23247
  }
23248
- ], Cn = [
23248
+ ], An = [
23249
23249
  {
23250
23250
  name: "atom",
23251
23251
  shortcodes: ["atom"],
@@ -23379,25 +23379,25 @@ var En = (function() {
23379
23379
  group: "GitHub",
23380
23380
  fallbackImage: "https://github.githubassets.com/images/icons/emoji/trollface.png"
23381
23381
  }
23382
- ], An = [...et, ...Cn];
23383
- function Bn(e) {
23382
+ ], Bn = [...at, ...An];
23383
+ function xn(e) {
23384
23384
  return e.replace("︎", "").replace("️", "");
23385
23385
  }
23386
- function xn(e, a) {
23386
+ function Tn(e, a) {
23387
23387
  var o;
23388
- return (o = a.find((s) => s.emoji === Bn(e))) == null ? void 0 : o.shortcodes[0];
23388
+ return (o = a.find((t) => t.emoji === xn(e))) == null ? void 0 : o.shortcodes[0];
23389
23389
  }
23390
- function Tn(e, a = JSON.stringify) {
23390
+ function Ln(e, a = JSON.stringify) {
23391
23391
  const o = {};
23392
- return e.filter((s) => {
23393
- const t = a(s);
23394
- return Object.prototype.hasOwnProperty.call(o, t) ? !1 : o[t] = !0;
23392
+ return e.filter((t) => {
23393
+ const s = a(t);
23394
+ return Object.prototype.hasOwnProperty.call(o, s) ? !1 : o[s] = !0;
23395
23395
  });
23396
23396
  }
23397
23397
  function Fe(e, a) {
23398
23398
  return a.find((o) => e === o.name || o.shortcodes.includes(e));
23399
23399
  }
23400
- var Ln = new N("emojiSuggestion"), Mn = /:([a-zA-Z0-9_+-]+):$/, Sn = /(^|\s):([a-zA-Z0-9_+-]+):/g, zn = P.create({
23400
+ var Mn = new N("emojiSuggestion"), Sn = /:([a-zA-Z0-9_+-]+):$/, zn = /(^|\s):([a-zA-Z0-9_+-]+):/g, Rn = P.create({
23401
23401
  name: "emoji",
23402
23402
  inline: !0,
23403
23403
  group: "inline",
@@ -23405,16 +23405,16 @@ var Ln = new N("emojiSuggestion"), Mn = /:([a-zA-Z0-9_+-]+):$/, Sn = /(^|\s):([a
23405
23405
  addOptions() {
23406
23406
  return {
23407
23407
  HTMLAttributes: {},
23408
- emojis: et,
23408
+ emojis: at,
23409
23409
  enableEmoticons: !1,
23410
23410
  forceFallbackImages: !1,
23411
23411
  suggestion: {
23412
23412
  char: ":",
23413
- pluginKey: Ln,
23413
+ pluginKey: Mn,
23414
23414
  command: ({ editor: e, range: a, props: o }) => {
23415
- var s;
23416
- const t = e.view.state.selection.$to.nodeAfter;
23417
- ((s = t?.text) == null ? void 0 : s.startsWith(" ")) && (a.to += 1), e.chain().focus().insertContentAt(a, [
23415
+ var t;
23416
+ const s = e.view.state.selection.$to.nodeAfter;
23417
+ ((t = s?.text) == null ? void 0 : t.startsWith(" ")) && (a.to += 1), e.chain().focus().insertContentAt(a, [
23418
23418
  {
23419
23419
  type: this.name,
23420
23420
  attrs: o
@@ -23426,18 +23426,18 @@ var Ln = new N("emojiSuggestion"), Mn = /:([a-zA-Z0-9_+-]+):$/, Sn = /(^|\s):([a
23426
23426
  ]).command(({ tr: i, state: r }) => (i.setStoredMarks(r.doc.resolve(r.selection.to - 2).marks()), !0)).run();
23427
23427
  },
23428
23428
  allow: ({ state: e, range: a }) => {
23429
- const o = e.doc.resolve(a.from), s = e.schema.nodes[this.name];
23430
- return !!o.parent.type.contentMatch.matchType(s);
23429
+ const o = e.doc.resolve(a.from), t = e.schema.nodes[this.name];
23430
+ return !!o.parent.type.contentMatch.matchType(t);
23431
23431
  }
23432
23432
  }
23433
23433
  };
23434
23434
  },
23435
23435
  addStorage() {
23436
- const { emojis: e } = this.options, a = Tn(e.map((o) => o.version)).filter((o) => typeof o == "number").reduce((o, s) => {
23437
- const t = e.find((n) => n.version === s && n.emoji);
23436
+ const { emojis: e } = this.options, a = Ln(e.map((o) => o.version)).filter((o) => typeof o == "number").reduce((o, t) => {
23437
+ const s = e.find((n) => n.version === t && n.emoji);
23438
23438
  return {
23439
23439
  ...o,
23440
- [s]: t ? wn(t.emoji) : !1
23440
+ [t]: s ? En(s.emoji) : !1
23441
23441
  };
23442
23442
  }, {});
23443
23443
  return {
@@ -23464,13 +23464,13 @@ var Ln = new N("emojiSuggestion"), Mn = /:([a-zA-Z0-9_+-]+):$/, Sn = /(^|\s):([a
23464
23464
  ];
23465
23465
  },
23466
23466
  renderHTML({ HTMLAttributes: e, node: a }) {
23467
- const o = Fe(a.attrs.name, this.options.emojis), s = A(e, this.options.HTMLAttributes, { "data-type": this.name });
23467
+ const o = Fe(a.attrs.name, this.options.emojis), t = A(e, this.options.HTMLAttributes, { "data-type": this.name });
23468
23468
  if (!o)
23469
- return ["span", s, `:${a.attrs.name}:`];
23470
- const t = this.storage.isSupported(o), n = !!o?.emoji, i = !!o?.fallbackImage, r = this.options.forceFallbackImages && !n || this.options.forceFallbackImages && i || this.options.forceFallbackImages && !t && i || (!t || !n) && i;
23469
+ return ["span", t, `:${a.attrs.name}:`];
23470
+ const s = this.storage.isSupported(o), n = !!o?.emoji, i = !!o?.fallbackImage, r = this.options.forceFallbackImages && !n || this.options.forceFallbackImages && i || this.options.forceFallbackImages && !s && i || (!s || !n) && i;
23471
23471
  return [
23472
23472
  "span",
23473
- s,
23473
+ t,
23474
23474
  r ? [
23475
23475
  "img",
23476
23476
  {
@@ -23500,39 +23500,39 @@ var Ln = new N("emojiSuggestion"), Mn = /:([a-zA-Z0-9_+-]+):$/, Sn = /(^|\s):([a
23500
23500
  attrs: {
23501
23501
  name: o.name
23502
23502
  }
23503
- }).command(({ tr: s, state: t }) => (s.setStoredMarks(t.doc.resolve(t.selection.to - 1).marks()), !0)).run(), !0) : !1;
23503
+ }).command(({ tr: t, state: s }) => (t.setStoredMarks(s.doc.resolve(s.selection.to - 1).marks()), !0)).run(), !0) : !1;
23504
23504
  }
23505
23505
  };
23506
23506
  },
23507
23507
  addInputRules() {
23508
23508
  const e = [];
23509
23509
  if (e.push(
23510
- new ht({
23511
- find: Mn,
23512
- handler: ({ range: a, match: o, chain: s }) => {
23513
- const t = o[1];
23514
- Fe(t, this.options.emojis) && s().insertContentAt(a, {
23510
+ new jt({
23511
+ find: Sn,
23512
+ handler: ({ range: a, match: o, chain: t }) => {
23513
+ const s = o[1];
23514
+ Fe(s, this.options.emojis) && t().insertContentAt(a, {
23515
23515
  type: this.name,
23516
23516
  attrs: {
23517
- name: t
23517
+ name: s
23518
23518
  }
23519
23519
  }).command(({ tr: n, state: i }) => (n.setStoredMarks(i.doc.resolve(i.selection.to - 1).marks()), !0)).run();
23520
23520
  }
23521
23521
  })
23522
23522
  ), this.options.enableEmoticons) {
23523
- const a = this.options.emojis.flatMap((s) => s.emoticons).filter((s) => s), o = new RegExp(`(?:^|\\s)(${a.map((s) => wo(s)).join("|")}) $`);
23523
+ const a = this.options.emojis.flatMap((t) => t.emoticons).filter((t) => t), o = new RegExp(`(?:^|\\s)(${a.map((t) => Eo(t)).join("|")}) $`);
23524
23524
  e.push(
23525
23525
  Oa({
23526
23526
  find: o,
23527
23527
  type: this.type,
23528
- getAttributes: (s) => {
23529
- const t = this.options.emojis.find((n) => {
23528
+ getAttributes: (t) => {
23529
+ const s = this.options.emojis.find((n) => {
23530
23530
  var i;
23531
- return (i = n.emoticons) == null ? void 0 : i.includes(s[1]);
23531
+ return (i = n.emoticons) == null ? void 0 : i.includes(t[1]);
23532
23532
  });
23533
- if (t)
23533
+ if (s)
23534
23534
  return {
23535
- name: t.name
23535
+ name: s.name
23536
23536
  };
23537
23537
  }
23538
23538
  })
@@ -23542,19 +23542,19 @@ var Ln = new N("emojiSuggestion"), Mn = /:([a-zA-Z0-9_+-]+):$/, Sn = /(^|\s):([a
23542
23542
  },
23543
23543
  addPasteRules() {
23544
23544
  return [
23545
- new ft({
23546
- find: Sn,
23545
+ new ht({
23546
+ find: zn,
23547
23547
  handler: ({ range: e, match: a, chain: o }) => {
23548
- const s = a[1] || "", t = a[2];
23549
- if (!Fe(t, this.options.emojis))
23548
+ const t = a[1] || "", s = a[2];
23549
+ if (!Fe(s, this.options.emojis))
23550
23550
  return;
23551
- const n = e.from + s.length, i = e.to;
23551
+ const n = e.from + t.length, i = e.to;
23552
23552
  o().insertContentAt(
23553
23553
  { from: n, to: i },
23554
23554
  {
23555
23555
  type: this.name,
23556
23556
  attrs: {
23557
- name: t
23557
+ name: s
23558
23558
  }
23559
23559
  },
23560
23560
  {
@@ -23567,7 +23567,7 @@ var Ln = new N("emojiSuggestion"), Mn = /:([a-zA-Z0-9_+-]+):$/, Sn = /(^|\s):([a
23567
23567
  },
23568
23568
  addProseMirrorPlugins() {
23569
23569
  return [
23570
- yn({
23570
+ In({
23571
23571
  editor: this.editor,
23572
23572
  ...this.options.suggestion
23573
23573
  }),
@@ -23579,10 +23579,10 @@ var Ln = new N("emojiSuggestion"), Mn = /:([a-zA-Z0-9_+-]+):$/, Sn = /(^|\s):([a
23579
23579
  handleDoubleClickOn: (e, a, o) => {
23580
23580
  if (o.type !== this.type)
23581
23581
  return !1;
23582
- const s = a, t = s + o.nodeSize;
23582
+ const t = a, s = t + o.nodeSize;
23583
23583
  return this.editor.commands.setTextSelection({
23584
- from: s,
23585
- to: t
23584
+ from: t,
23585
+ to: s
23586
23586
  }), !0;
23587
23587
  }
23588
23588
  },
@@ -23590,72 +23590,76 @@ var Ln = new N("emojiSuggestion"), Mn = /:([a-zA-Z0-9_+-]+):$/, Sn = /(^|\s):([a
23590
23590
  appendTransaction: (e, a, o) => {
23591
23591
  if (this.editor.view.composing || !(e.some((r) => r.docChanged) && !a.doc.eq(o.doc)))
23592
23592
  return;
23593
- const { tr: t } = o, n = Fo(a.doc, e);
23594
- if (ko(n).forEach(({ newRange: r }) => {
23593
+ const { tr: s } = o, n = ko(a.doc, e);
23594
+ if (_o(n).forEach(({ newRange: r }) => {
23595
23595
  if (o.doc.resolve(r.from).parent.type.spec.code)
23596
23596
  return;
23597
- _o(o.doc, r, (l) => l.type.isText).forEach(({ node: l, pos: c }) => {
23597
+ Do(o.doc, r, (l) => l.type.isText).forEach(({ node: l, pos: c }) => {
23598
23598
  if (!l.text)
23599
23599
  return;
23600
- [...l.text.matchAll(In())].forEach((g) => {
23600
+ [...l.text.matchAll(wn())].forEach((g) => {
23601
23601
  if (g.index === void 0)
23602
23602
  return;
23603
- const d = g[0], j = xn(d, this.options.emojis);
23603
+ const d = g[0], j = Tn(d, this.options.emojis);
23604
23604
  if (!j)
23605
23605
  return;
23606
- const b = t.mapping.map(c + g.index);
23606
+ const b = s.mapping.map(c + g.index);
23607
23607
  if (o.doc.resolve(b).parent.type.spec.code)
23608
23608
  return;
23609
23609
  const h = b + d.length, f = this.type.create({
23610
23610
  name: j
23611
23611
  });
23612
- t.replaceRangeWith(b, h, f), t.setStoredMarks(o.doc.resolve(b).marks());
23612
+ s.replaceRangeWith(b, h, f), s.setStoredMarks(o.doc.resolve(b).marks());
23613
23613
  });
23614
23614
  });
23615
- }), !!t.steps.length)
23616
- return t;
23615
+ }), !!s.steps.length)
23616
+ return s;
23617
23617
  }
23618
23618
  })
23619
23619
  ];
23620
23620
  }
23621
- }), Rn = zn;
23622
- const Hn = vt(
23621
+ }), Hn = Rn;
23622
+ const vo = (e) => new Promise((a, o) => {
23623
+ const t = new FileReader();
23624
+ t.onload = () => a(t.result), t.onerror = o, t.readAsDataURL(e);
23625
+ }), Nn = Ft(
23623
23626
  ({
23624
23627
  className: e,
23625
23628
  defaultContent: a,
23626
23629
  getEditorRef: o,
23627
- onGenerateWithAi: s,
23628
- generateWithAiIsLoading: t,
23630
+ onGenerateWithAi: t,
23631
+ generateWithAiIsLoading: s,
23629
23632
  onError: n,
23630
- placeholder: i = "Enter text.....",
23631
- isError: r,
23632
- isSuccess: p,
23633
- ...l
23634
- }, c) => {
23635
- const m = jt({
23633
+ onImageUpload: i,
23634
+ placeholder: r = "Enter text.....",
23635
+ isError: p,
23636
+ isSuccess: l,
23637
+ ...c
23638
+ }, m) => {
23639
+ const g = bt({
23636
23640
  content: a,
23637
23641
  extensions: [
23638
- nn,
23639
- Qo,
23642
+ rn,
23640
23643
  Zo,
23641
- cn.configure({
23644
+ et,
23645
+ gn.configure({
23642
23646
  allowBase64: !0,
23643
23647
  resize: {
23644
23648
  enabled: !0,
23645
23649
  alwaysPreserveAspectRatio: !0
23646
23650
  }
23647
23651
  }),
23648
- pn.configure({
23652
+ ln.configure({
23649
23653
  types: ["heading", "paragraph"]
23650
23654
  }),
23651
- an.configure({
23652
- placeholder: i
23655
+ on.configure({
23656
+ placeholder: r
23653
23657
  }),
23654
- Rn.configure({
23655
- emojis: An,
23658
+ Hn.configure({
23659
+ emojis: Bn,
23656
23660
  enableEmoticons: !0
23657
23661
  }),
23658
- dn.configure({
23662
+ fn.configure({
23659
23663
  allowedMimeTypes: [
23660
23664
  "image/png",
23661
23665
  "image/jpeg",
@@ -23663,74 +23667,74 @@ const Hn = vt(
23663
23667
  "image/webp",
23664
23668
  "image/gif"
23665
23669
  ],
23666
- onDrop: (d, j, b) => {
23667
- j.forEach((h) => {
23668
- const f = new FileReader();
23669
- f.onload = () => {
23670
- d.chain().insertContentAt(b, {
23671
- type: "image",
23672
- attrs: {
23673
- src: f.result
23674
- }
23675
- }).focus().run();
23676
- }, f.onerror = (D) => {
23677
- n && n(D);
23678
- }, f.readAsDataURL(h);
23679
- });
23670
+ onDrop: (j, b, h) => {
23671
+ Promise.all(
23672
+ b.map(async (f) => {
23673
+ try {
23674
+ const _ = i ? await i(f) : await vo(f);
23675
+ j.chain().insertContentAt(h, {
23676
+ type: "image",
23677
+ attrs: { src: _ }
23678
+ }).focus().run();
23679
+ } catch (_) {
23680
+ n?.(_);
23681
+ }
23682
+ })
23683
+ );
23680
23684
  },
23681
- onPaste: (d, j, b) => {
23682
- j.forEach((h) => {
23683
- if (b)
23684
- return !1;
23685
- const f = new FileReader();
23686
- f.onload = () => {
23687
- d.chain().insertContentAt(d.state.selection.anchor, {
23688
- type: "image",
23689
- attrs: {
23690
- src: f.result
23691
- }
23692
- }).focus().run();
23693
- }, f.onerror = (D) => {
23694
- n && n(D);
23695
- }, f.readAsDataURL(h);
23696
- });
23685
+ onPaste: (j, b, h) => {
23686
+ if (h) return !1;
23687
+ Promise.all(
23688
+ b.map(async (f) => {
23689
+ try {
23690
+ const _ = i ? await i(f) : await vo(f);
23691
+ j.chain().insertContentAt(j.state.selection.anchor, {
23692
+ type: "image",
23693
+ attrs: { src: _ }
23694
+ }).focus().run();
23695
+ } catch (_) {
23696
+ n?.(_);
23697
+ }
23698
+ })
23699
+ );
23697
23700
  }
23698
23701
  })
23699
23702
  ]
23700
- }), g = Ft(() => ({ editor: m }), [m]);
23701
- return kt(() => {
23702
- o && g && o(g.editor);
23703
- }, [o, g]), /* @__PURE__ */ ba(bt.Provider, { value: g, children: /* @__PURE__ */ ba(
23704
- Dt.Provider,
23703
+ }), d = kt(() => ({ editor: g }), [g]);
23704
+ return _t(() => {
23705
+ o && d && o(d.editor);
23706
+ }, [o, d]), /* @__PURE__ */ ba(vt.Provider, { value: d, children: /* @__PURE__ */ ba(
23707
+ yt.Provider,
23705
23708
  {
23706
23709
  value: {
23707
23710
  defaultContent: a,
23708
- onGenerateWithAi: s,
23709
- generateWithAiIsLoading: t,
23711
+ onGenerateWithAi: t,
23712
+ generateWithAiIsLoading: s,
23710
23713
  onError: n,
23711
- isError: r,
23712
- isSuccess: p
23714
+ onImageUpload: i,
23715
+ isError: p,
23716
+ isSuccess: l
23713
23717
  },
23714
23718
  children: /* @__PURE__ */ ba(
23715
23719
  "div",
23716
23720
  {
23717
23721
  tabIndex: 0,
23718
- className: _t(
23722
+ className: Dt(
23719
23723
  "form-root-slot-defaults",
23720
23724
  "mds:group mds:rounded-18 mds:z-10 mds:flex mds:max-w-2xl mds:flex-col mds:has-[[data-slot=text-editor-menu]:hover]:outline-0 mds:has-[[data-slot=text-editor-menu]:hover]:ring-0 mds:has-[[data-slot=text-editor-menu]:hover]:bg-interactive-secondary ",
23721
23725
  e
23722
23726
  ),
23723
23727
  "data-editable": "true",
23724
23728
  "data-slot": "text-editor-root",
23725
- ref: c,
23726
- ...l
23729
+ ref: m,
23730
+ ...c
23727
23731
  }
23728
23732
  )
23729
23733
  }
23730
23734
  ) });
23731
23735
  }
23732
23736
  );
23733
- Hn.displayName = "TextEditorRoot";
23737
+ Nn.displayName = "TextEditorRoot";
23734
23738
  export {
23735
- Hn as TextEditorRoot
23739
+ Nn as TextEditorRoot
23736
23740
  };