@harbour-enterprises/superdoc 0.12.0-RC2 → 0.12.0-RC3

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.
Files changed (48) hide show
  1. package/dist/chunks/{index-BTkgQgI7.es.js → index-27P7yLl7.es.js} +1 -1
  2. package/dist/chunks/{index-kWwSELc2.es.js → index-2fgTY0gr.es.js} +2 -2
  3. package/dist/chunks/{index-CbUTRvRk.cjs → index-C-M7zT_5.cjs} +1 -1
  4. package/dist/chunks/{index-C6SLw2ph.cjs → index-UCzTj2iK.cjs} +1 -1
  5. package/dist/chunks/{super-editor.es-jrBL9mdr.es.js → super-editor.es-Co0MUfbd.es.js} +5499 -5391
  6. package/dist/chunks/{super-editor.es-VeFFgSyB.cjs → super-editor.es-DPkbZzNG.cjs} +70 -64
  7. package/dist/chunks/{url-DRGmEUtI.cjs → url-Bd_xvDLH.cjs} +1 -1
  8. package/dist/chunks/{url-C29KYeaj.es.js → url-CEWFyxj1.es.js} +1 -1
  9. package/dist/chunks/xml-js-BBSyOdPv.cjs +10 -0
  10. package/dist/chunks/{xml-js-CgHhGhcJ.es.js → xml-js-BH5W8vwP.es.js} +744 -762
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-D1a6grDV.js → converter-Vjysuk1c.js} +1888 -1824
  13. package/dist/super-editor/chunks/{docx-zipper-L7BeJRax.js → docx-zipper-BFgGqpdr.js} +749 -763
  14. package/dist/super-editor/chunks/{editor-BY7pz5xQ.js → editor-CvkW6Gqh.js} +262 -203
  15. package/dist/super-editor/chunks/{toolbar-DEvjPuNj.js → toolbar-C1jMelI-.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/core/DocxZipper.d.ts.map +1 -1
  18. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  19. package/dist/super-editor/core/super-converter/constants.d.ts +2 -0
  20. package/dist/super-editor/core/super-converter/constants.d.ts.map +1 -0
  21. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  22. package/dist/super-editor/core/super-converter/v2/importer/docxImporter.d.ts.map +1 -1
  23. package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
  24. package/dist/super-editor/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts +9 -0
  25. package/dist/super-editor/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts.map +1 -0
  26. package/dist/super-editor/docx-zipper.es.js +2 -2
  27. package/dist/super-editor/editor.es.js +3 -3
  28. package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  29. package/dist/super-editor/extensions/index.d.ts +2 -1
  30. package/dist/super-editor/extensions/index.d.ts.map +1 -1
  31. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +1 -1
  32. package/dist/super-editor/extensions/structured-content/index.d.ts +2 -0
  33. package/dist/super-editor/extensions/structured-content/index.d.ts.map +1 -0
  34. package/dist/super-editor/extensions/structured-content/structured-content.d.ts +2 -0
  35. package/dist/super-editor/extensions/structured-content/structured-content.d.ts.map +1 -0
  36. package/dist/super-editor/file-zipper.es.js +1 -1
  37. package/dist/super-editor/super-editor.es.js +6 -6
  38. package/dist/super-editor/tests/import/sdt-nodes/structuredDocumentNodeTests.test.d.ts +2 -0
  39. package/dist/super-editor/tests/import/sdt-nodes/structuredDocumentNodeTests.test.d.ts.map +1 -0
  40. package/dist/super-editor/toolbar.es.js +2 -2
  41. package/dist/super-editor.cjs +1 -1
  42. package/dist/super-editor.es.js +2 -2
  43. package/dist/superdoc.cjs +5 -5
  44. package/dist/superdoc.es.js +6 -6
  45. package/dist/superdoc.umd.js +3098 -2990
  46. package/dist/superdoc.umd.js.map +1 -1
  47. package/package.json +2 -1
  48. package/dist/chunks/xml-js-CMQ3QRee.cjs +0 -10
@@ -7,9 +7,9 @@ var R = (t, e, n) => Uf(t, typeof e != "symbol" ? e + "" : e, n), ti = (t, e, n)
7
7
  var et = (t, e, n) => (ti(t, e, "read from private field"), n ? n.call(t) : e.get(t)), tt = (t, e, n) => e.has(t) ? pa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), ni = (t, e, n, r) => (ti(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), D = (t, e, n) => (ti(t, e, "access private method"), n);
8
8
  import * as N from "yjs";
9
9
  import { UndoManager as qf, Item as Kf, ContentType as Xf, Text as Jf, XmlElement as Yf } from "yjs";
10
- import { P as J, a as Y, M as gr, c as X, i as Gf, S as bc, b as vt, l as Ir, A as Rr, d as Wt, j as wc, N as B, r as vc, e as ee, T as j, F as T, R as cn, f as W, o as yr, g as ha, D as on, h as Ht, k as Ii, m as kc, n as Sn, p as Mo, q as Zf, s as Qf, t as ep, u as Un, v as tp, w as xc, x as oe, B as np, y as rp, z as de, C as He, E as Lr, G as Se, H as ho, I as Sc, J as Mn, K as ri, L as oi, O as ii, Q as mo, U as Lt, V as Mc, W as op, X as ma, Y as ip, Z as sp, _ as ap, $ as ga, a0 as ya, a1 as ba, a2 as lp, a3 as cp, a4 as dp } from "./converter-D1a6grDV.js";
10
+ import { P as J, a as Y, M as gr, c as X, i as Gf, S as bc, b as vt, l as Ir, A as Rr, d as Wt, j as wc, N as B, r as vc, e as ee, T as j, F as T, R as cn, f as W, o as yr, g as ha, D as on, h as Ht, k as Ii, m as kc, n as Sn, p as Mo, q as Zf, s as Qf, t as ep, u as Un, v as tp, w as xc, x as oe, B as np, y as rp, z as de, C as He, E as Lr, G as Se, H as ho, I as Sc, J as Mn, K as ri, L as oi, O as ii, Q as mo, U as Lt, V as Mc, W as op, X as ma, Y as ip, Z as sp, _ as ap, $ as ga, a0 as ya, a1 as ba, a2 as lp, a3 as cp, a4 as dp } from "./converter-Vjysuk1c.js";
11
11
  import { ref as wa, computed as up, createElementBlock as Jt, openBlock as Yt, withModifiers as si, Fragment as fp, renderList as pp, normalizeClass as hp, createCommentVNode as va, toDisplayString as ai, createElementVNode as mp, createApp as gp } from "vue";
12
- import { D as ka } from "./docx-zipper-L7BeJRax.js";
12
+ import { D as ka } from "./docx-zipper-BFgGqpdr.js";
13
13
  function jo(t) {
14
14
  const { from: e, to: n, empty: r } = t.selection, o = [];
15
15
  return r ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (i) => {
@@ -415,11 +415,11 @@ function Ac(t, e) {
415
415
  };
416
416
  }
417
417
  const Oc = Ac(!1, !0), Tc = Ac(!0, !0);
418
- function iS(t) {
418
+ function sS(t) {
419
419
  let e = kt.getState(t);
420
420
  return e ? e.done.eventCount : 0;
421
421
  }
422
- function sS(t) {
422
+ function aS(t) {
423
423
  let e = kt.getState(t);
424
424
  return e ? e.undone.eventCount : 0;
425
425
  }
@@ -9256,7 +9256,7 @@ const Ys = ({
9256
9256
  editable: !1,
9257
9257
  element: r,
9258
9258
  content: e,
9259
- extensions: Qx(),
9259
+ extensions: eS(),
9260
9260
  documentId: "sectionId"
9261
9261
  });
9262
9262
  c.on("create", () => {
@@ -10450,7 +10450,7 @@ const ua = class ua extends pb {
10450
10450
  * @returns {Object | void} Migration results
10451
10451
  */
10452
10452
  processCollaborationMigrations() {
10453
- if (console.debug("[checkVersionMigrations] Current editor version", "0.12.0-RC2"), !this.options.ydoc) return;
10453
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.12.0-RC3"), !this.options.ydoc) return;
10454
10454
  let r = this.options.ydoc.getMap("meta").get("version");
10455
10455
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10456
10456
  const o = bl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -10562,7 +10562,7 @@ su = function(n) {
10562
10562
  * @returns {void}
10563
10563
  */
10564
10564
  ss = function(n) {
10565
- (!n.extensions || !n.extensions.length) && (this.options.extensions = Zx()), D(this, C, cs).call(this), D(this, C, ds).call(this), D(this, C, ps).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), D(this, C, ms).call(this), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", D(this, C, as)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("locked", this.options.onDocumentLocked), window.setTimeout(() => {
10565
+ (!n.extensions || !n.extensions.length) && (this.options.extensions = Qx()), D(this, C, cs).call(this), D(this, C, ds).call(this), D(this, C, ps).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), D(this, C, ms).call(this), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", D(this, C, as)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("locked", this.options.onDocumentLocked), window.setTimeout(() => {
10566
10566
  this.isDestroyed || this.emit("create", { editor: this });
10567
10567
  }, 0);
10568
10568
  }, /**
@@ -12267,7 +12267,7 @@ const kl = /^(\d+)\.\s$/, Tu = q.create({
12267
12267
  e += `${r ? `font-family: ${r};` : ""} ${o ? `font-size: ${o};` : ""}`;
12268
12268
  }
12269
12269
  return e.trim();
12270
- }, lS = (t) => t?.converter ? (t.converter.linkedStyles || []).filter((n) => n.type === "paragraph" && n.definition.attrs).sort((n, r) => n.definition.attrs?.name.localeCompare(r.definition.attrs?.name)) : [], j0 = ({ listLevel: t, lvlText: e, listNumberingType: n }) => {
12270
+ }, cS = (t) => t?.converter ? (t.converter.linkedStyles || []).filter((n) => n.type === "paragraph" && n.definition.attrs).sort((n, r) => n.definition.attrs?.name.localeCompare(r.definition.attrs?.name)) : [], j0 = ({ listLevel: t, lvlText: e, listNumberingType: n }) => {
12271
12271
  const r = K0[n];
12272
12272
  return r ? r(t, e) : null;
12273
12273
  }, W0 = (t, e) => ta(t, e, String), Du = (t, e) => ta(t, e, J0), U0 = (t, e) => Du(t, e).toLowerCase(), q0 = (t, e) => Nu(t, e).toLowerCase(), Nu = (t, e) => ta(t, e, (n) => Y0(n)), K0 = {
@@ -12337,6 +12337,11 @@ Ho = new WeakSet(), Eu = function() {
12337
12337
  pos: d,
12338
12338
  editor: this.editor
12339
12339
  }), p = nw({ styleId: n, node: this.node, numId: s, level: a, editor: this.editor }), h = tw(p.stylePpr, p.numDefPpr, l);
12340
+ console.debug("VISIBLEINDENT", h, `
12341
+
12342
+
12343
+
12344
+ `);
12340
12345
  let m = h.left - (h.hanging || 0);
12341
12346
  !m && m !== 0 && (m = 0), this.dom = document.createElement("li"), this.dom.className = "sd-editor-list-item-node-view", this.dom.style.fontSize = u, this.dom.style.fontFamily = f, this.numberingDOM = document.createElement("span"), this.numberingDOM.className = "sd-editor-list-item-numbering", this.numberingDOM.textContent = c, this.numberingDOM.setAttribute("contenteditable", "false"), this.numberingDOM.addEventListener("click", this.handleNumberingClick), this.contentDOM = document.createElement("p"), this.contentDOM.className = "sd-editor-list-item-content-dom";
12342
12347
  let g = h.left;
@@ -12368,7 +12373,14 @@ const ew = ({ node: t, pos: e, editor: n }) => {
12368
12373
  size: c
12369
12374
  };
12370
12375
  }, tw = (t, e, n) => {
12371
- const r = t?.elements?.find((l) => l.name === "w:ind") || {}, o = ga(r), i = e?.elements?.find((l) => l.name === "w:ind") || {}, s = ga(i), a = ya(o, s);
12376
+ console.debug("[getVisibleIndent] inlineIndent", n);
12377
+ const r = t?.elements?.find((l) => l.name === "w:ind") || {}, o = ga(r);
12378
+ console.debug("[getVisibleIndent] styleIndent", o, r);
12379
+ const i = e?.elements?.find((l) => l.name === "w:ind") || {}, s = ga(i);
12380
+ console.debug("[getVisibleIndent] numDefIndent", s, i, `
12381
+
12382
+ `);
12383
+ const a = ya(o, s);
12372
12384
  return ya(a, n);
12373
12385
  }, nw = ({ styleId: t, numId: e, level: n, editor: r }) => {
12374
12386
  const o = r?.converter?.convertedXml, s = ip(t, o)?.elements.find((d) => d.name === "w:pPr"), a = sp(e, o), c = ap(a, n)?.elements.find((d) => d.name === "w:pPr");
@@ -15301,7 +15313,7 @@ function An(t, e, n) {
15301
15313
  });
15302
15314
  }), r;
15303
15315
  }
15304
- const dS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15316
+ const uS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15305
15317
  __proto__: null,
15306
15318
  findFieldAnnotations: gv,
15307
15319
  findFieldAnnotationsBetween: An,
@@ -15683,6 +15695,23 @@ const xs = "annotation", ef = "annotation-content", tf = q.create({
15683
15695
  const { from: a } = o.selection;
15684
15696
  s.addFieldAnnotation(a, t, e);
15685
15697
  },
15698
+ /**
15699
+ * Replace field annotation.
15700
+ * @param fieldsArray array of fields with attrs to add as annotation.
15701
+ * @example
15702
+ * editor.commands.replaceWithFieldAnnotation([
15703
+ * from: 20,
15704
+ * to: 45,
15705
+ * attrs: {
15706
+ * fieldType: 'TEXTINPUT'
15707
+ * fieldColor: '#980043'
15708
+ * }
15709
+ * ])
15710
+ */
15711
+ replaceWithFieldAnnotation: (t) => ({ editor: e, dispatch: n, state: r, tr: o }) => (n && (o.setMeta("fieldAnnotationReplace", !0), t.forEach((i) => {
15712
+ let { from: s, to: a, attrs: l } = i, { schema: c } = e, d = o.mapping.map(s), u = o.mapping.map(a), f = c.nodes[this.name].create({ ...l }, null, null);
15713
+ o.replaceWith(d, u, f);
15714
+ })), !0),
15686
15715
  /**
15687
15716
  * Update annotations associated with a field.
15688
15717
  * @param fieldIdOrArray The field ID or array of field IDs.
@@ -15950,7 +15979,7 @@ const _o = new J("ImagePlaceholder"), Iv = (t = {}) => new Y({
15950
15979
  return this.getState(e);
15951
15980
  }
15952
15981
  }
15953
- }), uS = (t, e) => {
15982
+ }), fS = (t, e) => {
15954
15983
  let r = _o.getState(t)?.find(null, null, (o) => o.id === e);
15955
15984
  return r?.length ? r[0].from : null;
15956
15985
  }, jl = new J("ImagePosition"), Rv = ({ editor: t }) => {
@@ -16355,6 +16384,35 @@ const _o = new J("ImagePlaceholder"), Iv = (t = {}) => new Y({
16355
16384
  0
16356
16385
  ];
16357
16386
  }
16387
+ }), Hv = q.create({
16388
+ name: "structuredContent",
16389
+ group: "inline",
16390
+ inline: !0,
16391
+ content: "inline*",
16392
+ addOptions() {
16393
+ return {
16394
+ annotationClass: "sd-structured-content-tag",
16395
+ htmlAttributes: {}
16396
+ };
16397
+ },
16398
+ parseDOM() {
16399
+ return [
16400
+ {
16401
+ tag: `span.${this.options.annotationClass}`,
16402
+ priority: 60
16403
+ }
16404
+ ];
16405
+ },
16406
+ renderDOM({ htmlAttributes: t }) {
16407
+ return ["span", E.mergeAttributes(this.options.htmlAttributes, t), 0];
16408
+ },
16409
+ addAttributes() {
16410
+ return {
16411
+ sdtPr: {
16412
+ rendered: !1
16413
+ }
16414
+ };
16415
+ }
16358
16416
  }), of = Oe.create({
16359
16417
  name: "textStyle",
16360
16418
  addOptions() {
@@ -16604,22 +16662,22 @@ const _o = new J("ImagePlaceholder"), Iv = (t = {}) => new Y({
16604
16662
  toggleLink: ({ href: t }) => ({ commands: e }) => t ? e.setLink({ href: t }) : e.unsetLink()
16605
16663
  };
16606
16664
  }
16607
- }), Hv = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
16665
+ }), jv = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
16608
16666
  function Ul(t, e) {
16609
16667
  const n = ["http", "https", "mailto"];
16610
16668
  return e && e.forEach((r) => {
16611
16669
  const o = typeof r == "string" ? r : r.scheme;
16612
16670
  o && n.push(o);
16613
- }), !t || t.replace(Hv, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
16671
+ }), !t || t.replace(jv, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
16614
16672
  }
16615
- const jv = "track-insert", ff = Oe.create({
16673
+ const Wv = "track-insert", ff = Oe.create({
16616
16674
  name: He,
16617
16675
  group: "track",
16618
16676
  inclusive: !1,
16619
16677
  addOptions() {
16620
16678
  return {
16621
16679
  htmlAttributes: {
16622
- class: jv
16680
+ class: Wv
16623
16681
  }
16624
16682
  };
16625
16683
  },
@@ -16661,14 +16719,14 @@ const jv = "track-insert", ff = Oe.create({
16661
16719
  renderDOM({ htmlAttributes: t }) {
16662
16720
  return ["span", E.mergeAttributes(this.options.htmlAttributes, t), 0];
16663
16721
  }
16664
- }), Wv = "track-delete", pf = Oe.create({
16722
+ }), Uv = "track-delete", pf = Oe.create({
16665
16723
  name: de,
16666
16724
  group: "track",
16667
16725
  inclusive: !1,
16668
16726
  addOptions() {
16669
16727
  return {
16670
16728
  htmlAttributes: {
16671
- class: Wv
16729
+ class: Uv
16672
16730
  }
16673
16731
  };
16674
16732
  },
@@ -16719,7 +16777,7 @@ const jv = "track-insert", ff = Oe.create({
16719
16777
  return [];
16720
16778
  }
16721
16779
  return Array.isArray(e) ? e.filter((n) => Object.hasOwn(n, "type") && Object.hasOwn(n, "attrs")) : [];
16722
- }, fS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16780
+ }, pS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16723
16781
  __proto__: null,
16724
16782
  addMarkStep: nu,
16725
16783
  documentHelpers: Eb,
@@ -16733,14 +16791,14 @@ const jv = "track-insert", ff = Oe.create({
16733
16791
  replaceAroundStep: qb,
16734
16792
  replaceStep: tu,
16735
16793
  trackedTransaction: ou
16736
- }, Symbol.toStringTag, { value: "Module" })), Uv = "track-format", hf = Oe.create({
16794
+ }, Symbol.toStringTag, { value: "Module" })), qv = "track-format", hf = Oe.create({
16737
16795
  name: Se,
16738
16796
  group: "track",
16739
16797
  inclusive: !1,
16740
16798
  addOptions() {
16741
16799
  return {
16742
16800
  htmlAttributes: {
16743
- class: Uv
16801
+ class: qv
16744
16802
  }
16745
16803
  };
16746
16804
  },
@@ -16804,7 +16862,7 @@ const jv = "track-insert", ff = Oe.create({
16804
16862
  renderDOM({ htmlAttributes: t }) {
16805
16863
  return ["span", E.mergeAttributes(this.options.htmlAttributes, t), 0];
16806
16864
  }
16807
- }), qv = Z.create({
16865
+ }), Kv = Z.create({
16808
16866
  name: "trackChanges",
16809
16867
  addCommands() {
16810
16868
  return {
@@ -16974,7 +17032,7 @@ const jv = "track-insert", ff = Oe.create({
16974
17032
  const o = n[r], i = n[r - 1], s = n[r + 1];
16975
17033
  let a;
16976
17034
  return i && o.start === i.end ? a = i : s && o.end === s.start && (a = s), [o, a].filter(Boolean);
16977
- }, Kv = Z.create({
17035
+ }, Xv = Z.create({
16978
17036
  name: "placeholder",
16979
17037
  addOptions() {
16980
17038
  return {
@@ -17004,11 +17062,11 @@ const jv = "track-insert", ff = Oe.create({
17004
17062
  })];
17005
17063
  }
17006
17064
  });
17007
- var Ne = "top", qe = "bottom", Ke = "right", Ee = "left", ra = "auto", $r = [Ne, qe, Ke, Ee], Bn = "start", Tr = "end", Xv = "clippingParents", mf = "viewport", er = "popper", Jv = "reference", Kl = /* @__PURE__ */ $r.reduce(function(t, e) {
17065
+ var Ne = "top", qe = "bottom", Ke = "right", Ee = "left", ra = "auto", $r = [Ne, qe, Ke, Ee], Bn = "start", Tr = "end", Jv = "clippingParents", mf = "viewport", er = "popper", Yv = "reference", Kl = /* @__PURE__ */ $r.reduce(function(t, e) {
17008
17066
  return t.concat([e + "-" + Bn, e + "-" + Tr]);
17009
17067
  }, []), gf = /* @__PURE__ */ [].concat($r, [ra]).reduce(function(t, e) {
17010
17068
  return t.concat([e, e + "-" + Bn, e + "-" + Tr]);
17011
- }, []), Yv = "beforeRead", Gv = "read", Zv = "afterRead", Qv = "beforeMain", ek = "main", tk = "afterMain", nk = "beforeWrite", rk = "write", ok = "afterWrite", ik = [Yv, Gv, Zv, Qv, ek, tk, nk, rk, ok];
17069
+ }, []), Gv = "beforeRead", Zv = "read", Qv = "afterRead", ek = "beforeMain", tk = "main", nk = "afterMain", rk = "beforeWrite", ok = "write", ik = "afterWrite", sk = [Gv, Zv, Qv, ek, tk, nk, rk, ok, ik];
17012
17070
  function dt(t) {
17013
17071
  return t ? (t.nodeName || "").toLowerCase() : null;
17014
17072
  }
@@ -17035,7 +17093,7 @@ function oa(t) {
17035
17093
  var e = Be(t).ShadowRoot;
17036
17094
  return t instanceof e || t instanceof ShadowRoot;
17037
17095
  }
17038
- function sk(t) {
17096
+ function ak(t) {
17039
17097
  var e = t.state;
17040
17098
  Object.keys(e.elements).forEach(function(n) {
17041
17099
  var r = e.styles[n] || {}, o = e.attributes[n] || {}, i = e.elements[n];
@@ -17045,7 +17103,7 @@ function sk(t) {
17045
17103
  }));
17046
17104
  });
17047
17105
  }
17048
- function ak(t) {
17106
+ function lk(t) {
17049
17107
  var e = t.state, n = {
17050
17108
  popper: {
17051
17109
  position: e.options.strategy,
@@ -17073,8 +17131,8 @@ const yf = {
17073
17131
  name: "applyStyles",
17074
17132
  enabled: !0,
17075
17133
  phase: "write",
17076
- fn: sk,
17077
- effect: ak,
17134
+ fn: ak,
17135
+ effect: lk,
17078
17136
  requires: ["computeStyles"]
17079
17137
  };
17080
17138
  function at(t) {
@@ -17132,7 +17190,7 @@ function wf(t, e) {
17132
17190
  function St(t) {
17133
17191
  return Be(t).getComputedStyle(t);
17134
17192
  }
17135
- function lk(t) {
17193
+ function ck(t) {
17136
17194
  return ["table", "td", "th"].indexOf(dt(t)) >= 0;
17137
17195
  }
17138
17196
  function qt(t) {
@@ -17157,7 +17215,7 @@ function Xl(t) {
17157
17215
  return !Ue(t) || // https://github.com/popperjs/popper-core/issues/837
17158
17216
  St(t).position === "fixed" ? null : t.offsetParent;
17159
17217
  }
17160
- function ck(t) {
17218
+ function dk(t) {
17161
17219
  var e = /firefox/i.test(Ms()), n = /Trident/i.test(Ms());
17162
17220
  if (n && Ue(t)) {
17163
17221
  var r = St(t);
@@ -17174,9 +17232,9 @@ function ck(t) {
17174
17232
  return null;
17175
17233
  }
17176
17234
  function Vr(t) {
17177
- for (var e = Be(t), n = Xl(t); n && lk(n) && St(n).position === "static"; )
17235
+ for (var e = Be(t), n = Xl(t); n && ck(n) && St(n).position === "static"; )
17178
17236
  n = Xl(n);
17179
- return n && (dt(n) === "html" || dt(n) === "body" && St(n).position === "static") ? e : n || ck(t) || e;
17237
+ return n && (dt(n) === "html" || dt(n) === "body" && St(n).position === "static") ? e : n || dk(t) || e;
17180
17238
  }
17181
17239
  function sa(t) {
17182
17240
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
@@ -17184,7 +17242,7 @@ function sa(t) {
17184
17242
  function ur(t, e, n) {
17185
17243
  return ln(t, $o(e, n));
17186
17244
  }
17187
- function dk(t, e, n) {
17245
+ function uk(t, e, n) {
17188
17246
  var r = ur(t, e, n);
17189
17247
  return r > n ? n : r;
17190
17248
  }
@@ -17204,41 +17262,41 @@ function xf(t, e) {
17204
17262
  return n[r] = t, n;
17205
17263
  }, {});
17206
17264
  }
17207
- var uk = function(e, n) {
17265
+ var fk = function(e, n) {
17208
17266
  return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
17209
17267
  placement: n.placement
17210
17268
  })) : e, kf(typeof e != "number" ? e : xf(e, $r));
17211
17269
  };
17212
- function fk(t) {
17270
+ function pk(t) {
17213
17271
  var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, a = at(n.placement), l = sa(a), c = [Ee, Ke].indexOf(a) >= 0, d = c ? "height" : "width";
17214
17272
  if (!(!i || !s)) {
17215
- var u = uk(o.padding, n), f = ia(i), p = l === "y" ? Ne : Ee, h = l === "y" ? qe : Ke, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Vr(i), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, x = m / 2 - g / 2, y = u[p], S = w - f[d] - u[h], k = w / 2 - f[d] / 2 + x, A = ur(y, k, S), L = l;
17273
+ var u = fk(o.padding, n), f = ia(i), p = l === "y" ? Ne : Ee, h = l === "y" ? qe : Ke, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Vr(i), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, x = m / 2 - g / 2, y = u[p], S = w - f[d] - u[h], k = w / 2 - f[d] / 2 + x, A = ur(y, k, S), L = l;
17216
17274
  n.modifiersData[r] = (e = {}, e[L] = A, e.centerOffset = A - k, e);
17217
17275
  }
17218
17276
  }
17219
- function pk(t) {
17277
+ function hk(t) {
17220
17278
  var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
17221
17279
  o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || wf(e.elements.popper, o) && (e.elements.arrow = o));
17222
17280
  }
17223
- const hk = {
17281
+ const mk = {
17224
17282
  name: "arrow",
17225
17283
  enabled: !0,
17226
17284
  phase: "main",
17227
- fn: fk,
17228
- effect: pk,
17285
+ fn: pk,
17286
+ effect: hk,
17229
17287
  requires: ["popperOffsets"],
17230
17288
  requiresIfExists: ["preventOverflow"]
17231
17289
  };
17232
17290
  function $n(t) {
17233
17291
  return t.split("-")[1];
17234
17292
  }
17235
- var mk = {
17293
+ var gk = {
17236
17294
  top: "auto",
17237
17295
  right: "auto",
17238
17296
  bottom: "auto",
17239
17297
  left: "auto"
17240
17298
  };
17241
- function gk(t, e) {
17299
+ function yk(t, e) {
17242
17300
  var n = t.x, r = t.y, o = e.devicePixelRatio || 1;
17243
17301
  return {
17244
17302
  x: zn(n * o) / o || 0,
@@ -17276,7 +17334,7 @@ function Jl(t) {
17276
17334
  }
17277
17335
  var V = Object.assign({
17278
17336
  position: a
17279
- }, c && mk), z = d === !0 ? gk({
17337
+ }, c && gk), z = d === !0 ? yk({
17280
17338
  x: p,
17281
17339
  y: m
17282
17340
  }, Be(n)) : {
@@ -17289,7 +17347,7 @@ function Jl(t) {
17289
17347
  }
17290
17348
  return Object.assign({}, V, (e = {}, e[y] = w ? m + "px" : "", e[x] = b ? p + "px" : "", e.transform = "", e));
17291
17349
  }
17292
- function yk(t) {
17350
+ function bk(t) {
17293
17351
  var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, i = n.adaptive, s = i === void 0 ? !0 : i, a = n.roundOffsets, l = a === void 0 ? !0 : a, c = {
17294
17352
  placement: at(e.placement),
17295
17353
  variation: $n(e.placement),
@@ -17312,17 +17370,17 @@ function yk(t) {
17312
17370
  "data-popper-placement": e.placement
17313
17371
  });
17314
17372
  }
17315
- const bk = {
17373
+ const wk = {
17316
17374
  name: "computeStyles",
17317
17375
  enabled: !0,
17318
17376
  phase: "beforeWrite",
17319
- fn: yk,
17377
+ fn: bk,
17320
17378
  data: {}
17321
17379
  };
17322
17380
  var co = {
17323
17381
  passive: !0
17324
17382
  };
17325
- function wk(t) {
17383
+ function vk(t) {
17326
17384
  var e = t.state, n = t.instance, r = t.options, o = r.scroll, i = o === void 0 ? !0 : o, s = r.resize, a = s === void 0 ? !0 : s, l = Be(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
17327
17385
  return i && c.forEach(function(d) {
17328
17386
  d.addEventListener("scroll", n.update, co);
@@ -17332,16 +17390,16 @@ function wk(t) {
17332
17390
  }), a && l.removeEventListener("resize", n.update, co);
17333
17391
  };
17334
17392
  }
17335
- const vk = {
17393
+ const kk = {
17336
17394
  name: "eventListeners",
17337
17395
  enabled: !0,
17338
17396
  phase: "write",
17339
17397
  fn: function() {
17340
17398
  },
17341
- effect: wk,
17399
+ effect: vk,
17342
17400
  data: {}
17343
17401
  };
17344
- var kk = {
17402
+ var xk = {
17345
17403
  left: "right",
17346
17404
  right: "left",
17347
17405
  bottom: "top",
@@ -17349,16 +17407,16 @@ var kk = {
17349
17407
  };
17350
17408
  function So(t) {
17351
17409
  return t.replace(/left|right|bottom|top/g, function(e) {
17352
- return kk[e];
17410
+ return xk[e];
17353
17411
  });
17354
17412
  }
17355
- var xk = {
17413
+ var Sk = {
17356
17414
  start: "end",
17357
17415
  end: "start"
17358
17416
  };
17359
17417
  function Yl(t) {
17360
17418
  return t.replace(/start|end/g, function(e) {
17361
- return xk[e];
17419
+ return Sk[e];
17362
17420
  });
17363
17421
  }
17364
17422
  function aa(t) {
@@ -17371,7 +17429,7 @@ function aa(t) {
17371
17429
  function la(t) {
17372
17430
  return _n(qt(t)).left + aa(t).scrollLeft;
17373
17431
  }
17374
- function Sk(t, e) {
17432
+ function Mk(t, e) {
17375
17433
  var n = Be(t), r = qt(t), o = n.visualViewport, i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
17376
17434
  if (o) {
17377
17435
  i = o.width, s = o.height;
@@ -17385,7 +17443,7 @@ function Sk(t, e) {
17385
17443
  y: l
17386
17444
  };
17387
17445
  }
17388
- function Mk(t) {
17446
+ function Ck(t) {
17389
17447
  var e, n = qt(t), r = aa(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = ln(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = ln(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -r.scrollLeft + la(t), l = -r.scrollTop;
17390
17448
  return St(o || n).direction === "rtl" && (a += ln(n.clientWidth, o ? o.clientWidth : 0) - i), {
17391
17449
  width: i,
@@ -17418,21 +17476,21 @@ function Cs(t) {
17418
17476
  bottom: t.y + t.height
17419
17477
  });
17420
17478
  }
17421
- function Ck(t, e) {
17479
+ function Ak(t, e) {
17422
17480
  var n = _n(t, !1, e === "fixed");
17423
17481
  return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
17424
17482
  }
17425
17483
  function Gl(t, e, n) {
17426
- return e === mf ? Cs(Sk(t, n)) : pn(e) ? Ck(e, n) : Cs(Mk(qt(t)));
17484
+ return e === mf ? Cs(Mk(t, n)) : pn(e) ? Ak(e, n) : Cs(Ck(qt(t)));
17427
17485
  }
17428
- function Ak(t) {
17486
+ function Ok(t) {
17429
17487
  var e = fr(Zo(t)), n = ["absolute", "fixed"].indexOf(St(t).position) >= 0, r = n && Ue(t) ? Vr(t) : t;
17430
17488
  return pn(r) ? e.filter(function(o) {
17431
17489
  return pn(o) && wf(o, r) && dt(o) !== "body";
17432
17490
  }) : [];
17433
17491
  }
17434
- function Ok(t, e, n, r) {
17435
- var o = e === "clippingParents" ? Ak(t) : [].concat(e), i = [].concat(o, [n]), s = i[0], a = i.reduce(function(l, c) {
17492
+ function Tk(t, e, n, r) {
17493
+ var o = e === "clippingParents" ? Ok(t) : [].concat(e), i = [].concat(o, [n]), s = i[0], a = i.reduce(function(l, c) {
17436
17494
  var d = Gl(t, c, r);
17437
17495
  return l.top = ln(d.top, l.top), l.right = $o(d.right, l.right), l.bottom = $o(d.bottom, l.bottom), l.left = ln(d.left, l.left), l;
17438
17496
  }, Gl(t, s, r));
@@ -17487,7 +17545,7 @@ function Mf(t) {
17487
17545
  }
17488
17546
  function Dr(t, e) {
17489
17547
  e === void 0 && (e = {});
17490
- var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? Xv : a, c = n.rootBoundary, d = c === void 0 ? mf : c, u = n.elementContext, f = u === void 0 ? er : u, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, g = m === void 0 ? 0 : m, b = kf(typeof g != "number" ? g : xf(g, $r)), w = f === er ? Jv : er, x = t.rects.popper, y = t.elements[h ? w : f], S = Ok(pn(y) ? y : y.contextElement || qt(t.elements.popper), l, d, s), k = _n(t.elements.reference), A = Mf({
17548
+ var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? Jv : a, c = n.rootBoundary, d = c === void 0 ? mf : c, u = n.elementContext, f = u === void 0 ? er : u, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, g = m === void 0 ? 0 : m, b = kf(typeof g != "number" ? g : xf(g, $r)), w = f === er ? Yv : er, x = t.rects.popper, y = t.elements[h ? w : f], S = Tk(pn(y) ? y : y.contextElement || qt(t.elements.popper), l, d, s), k = _n(t.elements.reference), A = Mf({
17491
17549
  reference: k,
17492
17550
  element: x,
17493
17551
  placement: o
@@ -17506,7 +17564,7 @@ function Dr(t, e) {
17506
17564
  }
17507
17565
  return $;
17508
17566
  }
17509
- function Tk(t, e) {
17567
+ function Dk(t, e) {
17510
17568
  e === void 0 && (e = {});
17511
17569
  var n = e, r = n.placement, o = n.boundary, i = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? gf : l, d = $n(r), u = d ? a ? Kl : Kl.filter(function(h) {
17512
17570
  return $n(h) === d;
@@ -17526,17 +17584,17 @@ function Tk(t, e) {
17526
17584
  return p[h] - p[m];
17527
17585
  });
17528
17586
  }
17529
- function Dk(t) {
17587
+ function Nk(t) {
17530
17588
  if (at(t) === ra)
17531
17589
  return [];
17532
17590
  var e = So(t);
17533
17591
  return [Yl(t), e, Yl(e)];
17534
17592
  }
17535
- function Nk(t) {
17593
+ function Ek(t) {
17536
17594
  var e = t.state, n = t.options, r = t.name;
17537
17595
  if (!e.modifiersData[r]._skip) {
17538
- for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, g = e.options.placement, b = at(g), w = b === g, x = l || (w || !h ? [So(g)] : Dk(g)), y = [g].concat(x).reduce(function(Xe, Pe) {
17539
- return Xe.concat(at(Pe) === ra ? Tk(e, {
17596
+ for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, g = e.options.placement, b = at(g), w = b === g, x = l || (w || !h ? [So(g)] : Nk(g)), y = [g].concat(x).reduce(function(Xe, Pe) {
17597
+ return Xe.concat(at(Pe) === ra ? Dk(e, {
17540
17598
  placement: Pe,
17541
17599
  boundary: d,
17542
17600
  rootBoundary: u,
@@ -17580,11 +17638,11 @@ function Nk(t) {
17580
17638
  e.placement !== M && (e.modifiersData[r]._skip = !0, e.placement = M, e.reset = !0);
17581
17639
  }
17582
17640
  }
17583
- const Ek = {
17641
+ const Pk = {
17584
17642
  name: "flip",
17585
17643
  enabled: !0,
17586
17644
  phase: "main",
17587
- fn: Nk,
17645
+ fn: Ek,
17588
17646
  requiresIfExists: ["offset"],
17589
17647
  data: {
17590
17648
  _skip: !1
@@ -17606,7 +17664,7 @@ function Ql(t) {
17606
17664
  return t[e] >= 0;
17607
17665
  });
17608
17666
  }
17609
- function Pk(t) {
17667
+ function Ik(t) {
17610
17668
  var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, i = e.modifiersData.preventOverflow, s = Dr(e, {
17611
17669
  elementContext: "reference"
17612
17670
  }), a = Dr(e, {
@@ -17622,14 +17680,14 @@ function Pk(t) {
17622
17680
  "data-popper-escaped": u
17623
17681
  });
17624
17682
  }
17625
- const Ik = {
17683
+ const Rk = {
17626
17684
  name: "hide",
17627
17685
  enabled: !0,
17628
17686
  phase: "main",
17629
17687
  requiresIfExists: ["preventOverflow"],
17630
- fn: Pk
17688
+ fn: Ik
17631
17689
  };
17632
- function Rk(t, e, n) {
17690
+ function Lk(t, e, n) {
17633
17691
  var r = at(t), o = [Ee, Ne].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, e, {
17634
17692
  placement: t
17635
17693
  })) : n, s = i[0], a = i[1];
@@ -17641,20 +17699,20 @@ function Rk(t, e, n) {
17641
17699
  y: a
17642
17700
  };
17643
17701
  }
17644
- function Lk(t) {
17702
+ function Fk(t) {
17645
17703
  var e = t.state, n = t.options, r = t.name, o = n.offset, i = o === void 0 ? [0, 0] : o, s = gf.reduce(function(d, u) {
17646
- return d[u] = Rk(u, e.rects, i), d;
17704
+ return d[u] = Lk(u, e.rects, i), d;
17647
17705
  }, {}), a = s[e.placement], l = a.x, c = a.y;
17648
17706
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += c), e.modifiersData[r] = s;
17649
17707
  }
17650
- const Fk = {
17708
+ const Bk = {
17651
17709
  name: "offset",
17652
17710
  enabled: !0,
17653
17711
  phase: "main",
17654
17712
  requires: ["popperOffsets"],
17655
- fn: Lk
17713
+ fn: Fk
17656
17714
  };
17657
- function Bk(t) {
17715
+ function zk(t) {
17658
17716
  var e = t.state, n = t.name;
17659
17717
  e.modifiersData[n] = Mf({
17660
17718
  reference: e.rects.reference,
@@ -17662,23 +17720,23 @@ function Bk(t) {
17662
17720
  placement: e.placement
17663
17721
  });
17664
17722
  }
17665
- const zk = {
17723
+ const _k = {
17666
17724
  name: "popperOffsets",
17667
17725
  enabled: !0,
17668
17726
  phase: "read",
17669
- fn: Bk,
17727
+ fn: zk,
17670
17728
  data: {}
17671
17729
  };
17672
- function _k(t) {
17730
+ function $k(t) {
17673
17731
  return t === "x" ? "y" : "x";
17674
17732
  }
17675
- function $k(t) {
17733
+ function Vk(t) {
17676
17734
  var e = t.state, n = t.options, r = t.name, o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, c = n.rootBoundary, d = n.altBoundary, u = n.padding, f = n.tether, p = f === void 0 ? !0 : f, h = n.tetherOffset, m = h === void 0 ? 0 : h, g = Dr(e, {
17677
17735
  boundary: l,
17678
17736
  rootBoundary: c,
17679
17737
  padding: u,
17680
17738
  altBoundary: d
17681
- }), b = at(e.placement), w = $n(e.placement), x = !w, y = sa(b), S = _k(y), k = e.modifiersData.popperOffsets, A = e.rects.reference, L = e.rects.popper, M = typeof m == "function" ? m(Object.assign({}, e.rects, {
17739
+ }), b = at(e.placement), w = $n(e.placement), x = !w, y = sa(b), S = $k(y), k = e.modifiersData.popperOffsets, A = e.rects.reference, L = e.rects.popper, M = typeof m == "function" ? m(Object.assign({}, e.rects, {
17682
17740
  placement: e.placement
17683
17741
  })) : m, $ = typeof M == "number" ? {
17684
17742
  mainAxis: M,
@@ -17699,35 +17757,35 @@ function $k(t) {
17699
17757
  k[y] = Xn, z[y] = Xn - se;
17700
17758
  }
17701
17759
  if (a) {
17702
- var Jn, qr = y === "x" ? Ne : Ee, Kr = y === "x" ? qe : Ke, pt = k[S], Ot = S === "y" ? "height" : "width", Yn = pt + g[qr], Kt = pt - g[Kr], Gn = [Ne, Ee].indexOf(b) !== -1, Xr = (Jn = V?.[S]) != null ? Jn : 0, Jr = Gn ? Yn : pt - A[Ot] - L[Ot] - Xr + $.altAxis, Yr = Gn ? pt + A[Ot] + L[Ot] - Xr - $.altAxis : Kt, Gr = p && Gn ? dk(Jr, pt, Yr) : ur(p ? Jr : Yn, pt, p ? Yr : Kt);
17760
+ var Jn, qr = y === "x" ? Ne : Ee, Kr = y === "x" ? qe : Ke, pt = k[S], Ot = S === "y" ? "height" : "width", Yn = pt + g[qr], Kt = pt - g[Kr], Gn = [Ne, Ee].indexOf(b) !== -1, Xr = (Jn = V?.[S]) != null ? Jn : 0, Jr = Gn ? Yn : pt - A[Ot] - L[Ot] - Xr + $.altAxis, Yr = Gn ? pt + A[Ot] + L[Ot] - Xr - $.altAxis : Kt, Gr = p && Gn ? uk(Jr, pt, Yr) : ur(p ? Jr : Yn, pt, p ? Yr : Kt);
17703
17761
  k[S] = Gr, z[S] = Gr - pt;
17704
17762
  }
17705
17763
  e.modifiersData[r] = z;
17706
17764
  }
17707
17765
  }
17708
- const Vk = {
17766
+ const Hk = {
17709
17767
  name: "preventOverflow",
17710
17768
  enabled: !0,
17711
17769
  phase: "main",
17712
- fn: $k,
17770
+ fn: Vk,
17713
17771
  requiresIfExists: ["offset"]
17714
17772
  };
17715
- function Hk(t) {
17773
+ function jk(t) {
17716
17774
  return {
17717
17775
  scrollLeft: t.scrollLeft,
17718
17776
  scrollTop: t.scrollTop
17719
17777
  };
17720
17778
  }
17721
- function jk(t) {
17722
- return t === Be(t) || !Ue(t) ? aa(t) : Hk(t);
17723
- }
17724
17779
  function Wk(t) {
17780
+ return t === Be(t) || !Ue(t) ? aa(t) : jk(t);
17781
+ }
17782
+ function Uk(t) {
17725
17783
  var e = t.getBoundingClientRect(), n = zn(e.width) / t.offsetWidth || 1, r = zn(e.height) / t.offsetHeight || 1;
17726
17784
  return n !== 1 || r !== 1;
17727
17785
  }
17728
- function Uk(t, e, n) {
17786
+ function qk(t, e, n) {
17729
17787
  n === void 0 && (n = !1);
17730
- var r = Ue(e), o = Ue(e) && Wk(e), i = qt(e), s = _n(t, o, n), a = {
17788
+ var r = Ue(e), o = Ue(e) && Uk(e), i = qt(e), s = _n(t, o, n), a = {
17731
17789
  scrollLeft: 0,
17732
17790
  scrollTop: 0
17733
17791
  }, l = {
@@ -17735,14 +17793,14 @@ function Uk(t, e, n) {
17735
17793
  y: 0
17736
17794
  };
17737
17795
  return (r || !r && !n) && ((dt(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
17738
- ca(i)) && (a = jk(e)), Ue(e) ? (l = _n(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = la(i))), {
17796
+ ca(i)) && (a = Wk(e)), Ue(e) ? (l = _n(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = la(i))), {
17739
17797
  x: s.left + a.scrollLeft - l.x,
17740
17798
  y: s.top + a.scrollTop - l.y,
17741
17799
  width: s.width,
17742
17800
  height: s.height
17743
17801
  };
17744
17802
  }
17745
- function qk(t) {
17803
+ function Kk(t) {
17746
17804
  var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
17747
17805
  t.forEach(function(i) {
17748
17806
  e.set(i.name, i);
@@ -17761,15 +17819,15 @@ function qk(t) {
17761
17819
  n.has(i.name) || o(i);
17762
17820
  }), r;
17763
17821
  }
17764
- function Kk(t) {
17765
- var e = qk(t);
17766
- return ik.reduce(function(n, r) {
17822
+ function Xk(t) {
17823
+ var e = Kk(t);
17824
+ return sk.reduce(function(n, r) {
17767
17825
  return n.concat(e.filter(function(o) {
17768
17826
  return o.phase === r;
17769
17827
  }));
17770
17828
  }, []);
17771
17829
  }
17772
- function Xk(t) {
17830
+ function Jk(t) {
17773
17831
  var e;
17774
17832
  return function() {
17775
17833
  return e || (e = new Promise(function(n) {
@@ -17779,7 +17837,7 @@ function Xk(t) {
17779
17837
  })), e;
17780
17838
  };
17781
17839
  }
17782
- function Jk(t) {
17840
+ function Yk(t) {
17783
17841
  var e = t.reduce(function(n, r) {
17784
17842
  var o = n[r.name];
17785
17843
  return n[r.name] = o ? Object.assign({}, o, r, {
@@ -17803,7 +17861,7 @@ function tc() {
17803
17861
  return !(r && typeof r.getBoundingClientRect == "function");
17804
17862
  });
17805
17863
  }
17806
- function Yk(t) {
17864
+ function Gk(t) {
17807
17865
  t === void 0 && (t = {});
17808
17866
  var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, i = o === void 0 ? ec : o;
17809
17867
  return function(a, l, c) {
@@ -17827,7 +17885,7 @@ function Yk(t) {
17827
17885
  reference: pn(a) ? fr(a) : a.contextElement ? fr(a.contextElement) : [],
17828
17886
  popper: fr(l)
17829
17887
  };
17830
- var x = Kk(Jk([].concat(r, d.options.modifiers)));
17888
+ var x = Xk(Yk([].concat(r, d.options.modifiers)));
17831
17889
  return d.orderedModifiers = x.filter(function(y) {
17832
17890
  return y.enabled;
17833
17891
  }), h(), p.update();
@@ -17842,7 +17900,7 @@ function Yk(t) {
17842
17900
  var b = d.elements, w = b.reference, x = b.popper;
17843
17901
  if (tc(w, x)) {
17844
17902
  d.rects = {
17845
- reference: Uk(w, Vr(x), d.options.strategy === "fixed"),
17903
+ reference: qk(w, Vr(x), d.options.strategy === "fixed"),
17846
17904
  popper: ia(x)
17847
17905
  }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function($) {
17848
17906
  return d.modifiersData[$.name] = Object.assign({}, $.data);
@@ -17865,7 +17923,7 @@ function Yk(t) {
17865
17923
  },
17866
17924
  // Async and optimistically optimized update – it will not be executed if
17867
17925
  // not necessary (debounced to run at most once-per-tick)
17868
- update: Xk(function() {
17926
+ update: Jk(function() {
17869
17927
  return new Promise(function(g) {
17870
17928
  p.forceUpdate(), g(d);
17871
17929
  });
@@ -17902,15 +17960,15 @@ function Yk(t) {
17902
17960
  return p;
17903
17961
  };
17904
17962
  }
17905
- var Gk = [vk, zk, bk, yf, Fk, Ek, Vk, hk, Ik], Zk = /* @__PURE__ */ Yk({
17906
- defaultModifiers: Gk
17907
- }), Qk = "tippy-box", Cf = "tippy-content", ex = "tippy-backdrop", Af = "tippy-arrow", Of = "tippy-svg-arrow", Qt = {
17963
+ var Zk = [kk, _k, wk, yf, Bk, Pk, Hk, mk, Rk], Qk = /* @__PURE__ */ Gk({
17964
+ defaultModifiers: Zk
17965
+ }), ex = "tippy-box", Cf = "tippy-content", tx = "tippy-backdrop", Af = "tippy-arrow", Of = "tippy-svg-arrow", Qt = {
17908
17966
  passive: !0,
17909
17967
  capture: !0
17910
17968
  }, Tf = function() {
17911
17969
  return document.body;
17912
17970
  };
17913
- function tx(t, e) {
17971
+ function nx(t, e) {
17914
17972
  return {}.hasOwnProperty.call(t, e);
17915
17973
  }
17916
17974
  function Ai(t, e, n) {
@@ -17937,13 +17995,13 @@ function nc(t, e) {
17937
17995
  }, e);
17938
17996
  };
17939
17997
  }
17940
- function nx(t, e) {
17998
+ function rx(t, e) {
17941
17999
  var n = Object.assign({}, t);
17942
18000
  return e.forEach(function(r) {
17943
18001
  delete n[r];
17944
18002
  }), n;
17945
18003
  }
17946
- function rx(t) {
18004
+ function ox(t) {
17947
18005
  return t.split(/\s+/).filter(Boolean);
17948
18006
  }
17949
18007
  function On(t) {
@@ -17952,12 +18010,12 @@ function On(t) {
17952
18010
  function rc(t, e) {
17953
18011
  t.indexOf(e) === -1 && t.push(e);
17954
18012
  }
17955
- function ox(t) {
18013
+ function ix(t) {
17956
18014
  return t.filter(function(e, n) {
17957
18015
  return t.indexOf(e) === n;
17958
18016
  });
17959
18017
  }
17960
- function ix(t) {
18018
+ function sx(t) {
17961
18019
  return t.split("-")[0];
17962
18020
  }
17963
18021
  function Vo(t) {
@@ -17976,17 +18034,17 @@ function Nr(t) {
17976
18034
  return da(t, e);
17977
18035
  });
17978
18036
  }
17979
- function sx(t) {
18037
+ function ax(t) {
17980
18038
  return da(t, "NodeList");
17981
18039
  }
17982
- function ax(t) {
18040
+ function lx(t) {
17983
18041
  return da(t, "MouseEvent");
17984
18042
  }
17985
- function lx(t) {
18043
+ function cx(t) {
17986
18044
  return !!(t && t._tippy && t._tippy.reference === t);
17987
18045
  }
17988
- function cx(t) {
17989
- return Nr(t) ? [t] : sx(t) ? Vo(t) : Array.isArray(t) ? t : Vo(document.querySelectorAll(t));
18046
+ function dx(t) {
18047
+ return Nr(t) ? [t] : ax(t) ? Vo(t) : Array.isArray(t) ? t : Vo(document.querySelectorAll(t));
17990
18048
  }
17991
18049
  function Oi(t, e) {
17992
18050
  t.forEach(function(n) {
@@ -17998,14 +18056,14 @@ function ic(t, e) {
17998
18056
  n && n.setAttribute("data-state", e);
17999
18057
  });
18000
18058
  }
18001
- function dx(t) {
18059
+ function ux(t) {
18002
18060
  var e, n = On(t), r = n[0];
18003
18061
  return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
18004
18062
  }
18005
- function ux(t, e) {
18063
+ function fx(t, e) {
18006
18064
  var n = e.clientX, r = e.clientY;
18007
18065
  return t.every(function(o) {
18008
- var i = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c = ix(s.placement), d = s.modifiersData.offset;
18066
+ var i = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c = sx(s.placement), d = s.modifiersData.offset;
18009
18067
  if (!d)
18010
18068
  return !0;
18011
18069
  var u = c === "bottom" ? d.top.y : 0, f = c === "top" ? d.bottom.y : 0, p = c === "right" ? d.left.x : 0, h = c === "left" ? d.right.x : 0, m = i.top - r + u > l, g = r - i.bottom - f > l, b = i.left - n + p > l, w = n - i.right - h > l;
@@ -18030,24 +18088,24 @@ function sc(t, e) {
18030
18088
  var it = {
18031
18089
  isTouch: !1
18032
18090
  }, ac = 0;
18033
- function fx() {
18091
+ function px() {
18034
18092
  it.isTouch || (it.isTouch = !0, window.performance && document.addEventListener("mousemove", Nf));
18035
18093
  }
18036
18094
  function Nf() {
18037
18095
  var t = performance.now();
18038
18096
  t - ac < 20 && (it.isTouch = !1, document.removeEventListener("mousemove", Nf)), ac = t;
18039
18097
  }
18040
- function px() {
18098
+ function hx() {
18041
18099
  var t = document.activeElement;
18042
- if (lx(t)) {
18100
+ if (cx(t)) {
18043
18101
  var e = t._tippy;
18044
18102
  t.blur && !e.state.isVisible && t.blur();
18045
18103
  }
18046
18104
  }
18047
- function hx() {
18048
- document.addEventListener("touchstart", fx, Qt), window.addEventListener("blur", px);
18105
+ function mx() {
18106
+ document.addEventListener("touchstart", px, Qt), window.addEventListener("blur", hx);
18049
18107
  }
18050
- var mx = typeof window < "u" && typeof document < "u", gx = mx ? (
18108
+ var gx = typeof window < "u" && typeof document < "u", yx = gx ? (
18051
18109
  // @ts-ignore
18052
18110
  !!window.msCrypto
18053
18111
  ) : !1;
@@ -18059,7 +18117,7 @@ function lc(t) {
18059
18117
  var e = /[ \t]{2,}/g, n = /^[ \t]*/gm;
18060
18118
  return t.replace(e, " ").replace(n, "").trim();
18061
18119
  }
18062
- function yx(t) {
18120
+ function bx(t) {
18063
18121
  return lc(`
18064
18122
  %ctippy.js
18065
18123
 
@@ -18070,7 +18128,7 @@ function yx(t) {
18070
18128
  }
18071
18129
  function Ef(t) {
18072
18130
  return [
18073
- yx(t),
18131
+ bx(t),
18074
18132
  // title
18075
18133
  "color: #00C584; font-size: 1.3em; font-weight: bold;",
18076
18134
  // message
@@ -18080,8 +18138,8 @@ function Ef(t) {
18080
18138
  ];
18081
18139
  }
18082
18140
  var Er;
18083
- oe.env.NODE_ENV !== "production" && bx();
18084
- function bx() {
18141
+ oe.env.NODE_ENV !== "production" && wx();
18142
+ function wx() {
18085
18143
  Er = /* @__PURE__ */ new Set();
18086
18144
  }
18087
18145
  function yt(t, e) {
@@ -18096,7 +18154,7 @@ function As(t, e) {
18096
18154
  Er.add(e), (n = console).error.apply(n, Ef(e));
18097
18155
  }
18098
18156
  }
18099
- function wx(t) {
18157
+ function vx(t) {
18100
18158
  var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
18101
18159
  As(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), As(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
18102
18160
  }
@@ -18105,7 +18163,7 @@ var Pf = {
18105
18163
  followCursor: !1,
18106
18164
  inlinePositioning: !1,
18107
18165
  sticky: !1
18108
- }, vx = {
18166
+ }, kx = {
18109
18167
  allowHTML: !1,
18110
18168
  animation: "fade",
18111
18169
  arrow: !0,
@@ -18163,7 +18221,7 @@ var Pf = {
18163
18221
  touch: !0,
18164
18222
  trigger: "mouseenter focus",
18165
18223
  triggerTarget: null
18166
- }, Pf, vx), kx = Object.keys(Re), xx = function(e) {
18224
+ }, Pf, kx), xx = Object.keys(Re), Sx = function(e) {
18167
18225
  oe.env.NODE_ENV !== "production" && Rf(e, []);
18168
18226
  var n = Object.keys(e);
18169
18227
  n.forEach(function(r) {
@@ -18181,10 +18239,10 @@ function If(t) {
18181
18239
  }, {});
18182
18240
  return Object.assign({}, t, n);
18183
18241
  }
18184
- function Sx(t, e) {
18242
+ function Mx(t, e) {
18185
18243
  var n = e ? Object.keys(If(Object.assign({}, Re, {
18186
18244
  plugins: e
18187
- }))) : kx, r = n.reduce(function(o, i) {
18245
+ }))) : xx, r = n.reduce(function(o, i) {
18188
18246
  var s = (t.getAttribute("data-tippy-" + i) || "").trim();
18189
18247
  if (!s)
18190
18248
  return o;
@@ -18203,7 +18261,7 @@ function Sx(t, e) {
18203
18261
  function cc(t, e) {
18204
18262
  var n = Object.assign({}, e, {
18205
18263
  content: Df(e.content, [t])
18206
- }, e.ignoreAttributes ? {} : Sx(t, e.plugins));
18264
+ }, e.ignoreAttributes ? {} : Mx(t, e.plugins));
18207
18265
  return n.aria = Object.assign({}, Re.aria, n.aria), n.aria = {
18208
18266
  expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
18209
18267
  content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
@@ -18213,7 +18271,7 @@ function Rf(t, e) {
18213
18271
  t === void 0 && (t = {}), e === void 0 && (e = []);
18214
18272
  var n = Object.keys(t);
18215
18273
  n.forEach(function(r) {
18216
- var o = nx(Re, Object.keys(Pf)), i = !tx(o, r);
18274
+ var o = rx(Re, Object.keys(Pf)), i = !nx(o, r);
18217
18275
  i && (i = e.filter(function(s) {
18218
18276
  return s.name === r;
18219
18277
  }).length === 0), yt(i, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
@@ -18222,11 +18280,11 @@ function Rf(t, e) {
18222
18280
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
18223
18281
  });
18224
18282
  }
18225
- var Mx = function() {
18283
+ var Cx = function() {
18226
18284
  return "innerHTML";
18227
18285
  };
18228
18286
  function Os(t, e) {
18229
- t[Mx()] = e;
18287
+ t[Cx()] = e;
18230
18288
  }
18231
18289
  function dc(t) {
18232
18290
  var e = pr();
@@ -18246,13 +18304,13 @@ function Ts(t) {
18246
18304
  return r.classList.contains(Af) || r.classList.contains(Of);
18247
18305
  }),
18248
18306
  backdrop: n.find(function(r) {
18249
- return r.classList.contains(ex);
18307
+ return r.classList.contains(tx);
18250
18308
  })
18251
18309
  };
18252
18310
  }
18253
18311
  function Lf(t) {
18254
18312
  var e = pr(), n = pr();
18255
- n.className = Qk, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
18313
+ n.className = ex, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
18256
18314
  var r = pr();
18257
18315
  r.className = Cf, r.setAttribute("data-state", "hidden"), uc(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
18258
18316
  function o(i, s) {
@@ -18265,9 +18323,9 @@ function Lf(t) {
18265
18323
  };
18266
18324
  }
18267
18325
  Lf.$$tippy = !0;
18268
- var Cx = 1, uo = [], Di = [];
18269
- function Ax(t, e) {
18270
- var n = cc(t, Object.assign({}, Re, If(oc(e)))), r, o, i, s = !1, a = !1, l = !1, c = !1, d, u, f, p = [], h = nc(Wr, n.interactiveDebounce), m, g = Cx++, b = null, w = ox(n.plugins), x = {
18326
+ var Ax = 1, uo = [], Di = [];
18327
+ function Ox(t, e) {
18328
+ var n = cc(t, Object.assign({}, Re, If(oc(e)))), r, o, i, s = !1, a = !1, l = !1, c = !1, d, u, f, p = [], h = nc(Wr, n.interactiveDebounce), m, g = Ax++, b = null, w = ix(n.plugins), x = {
18271
18329
  // Is the instance currently enabled?
18272
18330
  isEnabled: !0,
18273
18331
  // Is the tippy currently showing and not transitioning out?
@@ -18327,7 +18385,7 @@ function Ax(t, e) {
18327
18385
  }
18328
18386
  function ie() {
18329
18387
  var v = H().parentNode;
18330
- return v ? dx(v) : document;
18388
+ return v ? ux(v) : document;
18331
18389
  }
18332
18390
  function le() {
18333
18391
  return Ts(k);
@@ -18439,14 +18497,14 @@ function Ax(t, e) {
18439
18497
  passive: !0
18440
18498
  }), At("touchend", Ur, {
18441
18499
  passive: !0
18442
- })), rx(y.props.trigger).forEach(function(v) {
18500
+ })), ox(y.props.trigger).forEach(function(v) {
18443
18501
  if (v !== "manual")
18444
18502
  switch (At(v, Kn), v) {
18445
18503
  case "mouseenter":
18446
18504
  At("mouseleave", Ur);
18447
18505
  break;
18448
18506
  case "focus":
18449
- At(gx ? "focusout" : "blur", Xn);
18507
+ At(yx ? "focusout" : "blur", Xn);
18450
18508
  break;
18451
18509
  case "focusin":
18452
18510
  At("focusout", Xn);
@@ -18464,7 +18522,7 @@ function Ax(t, e) {
18464
18522
  var O, F = !1;
18465
18523
  if (!(!y.state.isEnabled || Jn(v) || a)) {
18466
18524
  var K = ((O = d) == null ? void 0 : O.type) === "focus";
18467
- d = v, m = v.currentTarget, he(), !y.state.isVisible && ax(v) && uo.forEach(function(U) {
18525
+ d = v, m = v.currentTarget, he(), !y.state.isVisible && lx(v) && uo.forEach(function(U) {
18468
18526
  return U(v);
18469
18527
  }), v.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? F = !0 : Yn(v), v.type === "click" && (s = !F), F && !K && Kt(v);
18470
18528
  }
@@ -18480,7 +18538,7 @@ function Ax(t, e) {
18480
18538
  props: n
18481
18539
  } : null;
18482
18540
  }).filter(Boolean);
18483
- ux(K, v) && (Te(), Kt(v));
18541
+ fx(K, v) && (Te(), Kt(v));
18484
18542
  }
18485
18543
  }
18486
18544
  function Ur(v) {
@@ -18550,7 +18608,7 @@ function Ax(t, e) {
18550
18608
  element: _e,
18551
18609
  padding: 3
18552
18610
  }
18553
- }), Xt.push.apply(Xt, O?.modifiers || []), y.popperInstance = Zk(gn, k, Object.assign({}, O, {
18611
+ }), Xt.push.apply(Xt, O?.modifiers || []), y.popperInstance = Qk(gn, k, Object.assign({}, O, {
18554
18612
  placement: F,
18555
18613
  onFirstUpdate: f,
18556
18614
  modifiers: Xt
@@ -18670,10 +18728,10 @@ function Ax(t, e) {
18670
18728
  function Hr(t, e) {
18671
18729
  e === void 0 && (e = {});
18672
18730
  var n = Re.plugins.concat(e.plugins || []);
18673
- oe.env.NODE_ENV !== "production" && (wx(t), Rf(e, n)), hx();
18731
+ oe.env.NODE_ENV !== "production" && (vx(t), Rf(e, n)), mx();
18674
18732
  var r = Object.assign({}, e, {
18675
18733
  plugins: n
18676
- }), o = cx(t);
18734
+ }), o = dx(t);
18677
18735
  if (oe.env.NODE_ENV !== "production") {
18678
18736
  var i = Nr(r.content), s = o.length > 1;
18679
18737
  yt(i && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
@@ -18684,13 +18742,13 @@ function Hr(t, e) {
18684
18742
  `, "2) content: () => element.cloneNode(true)"].join(" "));
18685
18743
  }
18686
18744
  var a = o.reduce(function(l, c) {
18687
- var d = c && Ax(c, r);
18745
+ var d = c && Ox(c, r);
18688
18746
  return d && l.push(d), l;
18689
18747
  }, []);
18690
18748
  return Nr(t) ? a[0] : a;
18691
18749
  }
18692
18750
  Hr.defaultProps = Re;
18693
- Hr.setDefaultProps = xx;
18751
+ Hr.setDefaultProps = Sx;
18694
18752
  Hr.currentInput = it;
18695
18753
  Object.assign({}, yf, {
18696
18754
  effect: function(e) {
@@ -18712,12 +18770,12 @@ Object.assign({}, yf, {
18712
18770
  Hr.setDefaultProps({
18713
18771
  render: Lf
18714
18772
  });
18715
- const Ox = (t, e) => {
18773
+ const Tx = (t, e) => {
18716
18774
  const n = t.__vccOpts || t;
18717
18775
  for (const [r, o] of e)
18718
18776
  n[r] = o;
18719
18777
  return n;
18720
- }, Tx = ["onClick", "onMouseenter"], Dx = { key: 0 }, Nx = { key: 0 }, Ex = { key: 1 }, Px = { key: 1 }, Ix = {
18778
+ }, Dx = ["onClick", "onMouseenter"], Nx = { key: 0 }, Ex = { key: 0 }, Px = { key: 1 }, Ix = { key: 1 }, Rx = {
18721
18779
  __name: "Mentions",
18722
18780
  props: {
18723
18781
  users: {
@@ -18769,16 +18827,16 @@ const Ox = (t, e) => {
18769
18827
  key: d.email,
18770
18828
  class: hp(["user-row", { selected: r.value === u }])
18771
18829
  }, [
18772
- d.name ? (Yt(), Jt("div", Dx, [
18773
- d.name ? (Yt(), Jt("span", Nx, ai(d.name), 1)) : va("", !0),
18774
- d.name && d.email ? (Yt(), Jt("span", Ex, " (" + ai(d.email) + ")", 1)) : va("", !0)
18775
- ])) : (Yt(), Jt("div", Px, [
18830
+ d.name ? (Yt(), Jt("div", Nx, [
18831
+ d.name ? (Yt(), Jt("span", Ex, ai(d.name), 1)) : va("", !0),
18832
+ d.name && d.email ? (Yt(), Jt("span", Px, " (" + ai(d.email) + ")", 1)) : va("", !0)
18833
+ ])) : (Yt(), Jt("div", Ix, [
18776
18834
  mp("span", null, ai(d.email), 1)
18777
18835
  ]))
18778
- ], 42, Tx))), 128))
18836
+ ], 42, Dx))), 128))
18779
18837
  ], 544));
18780
18838
  }
18781
- }, Rx = /* @__PURE__ */ Ox(Ix, [["__scopeId", "data-v-0a2a8b4e"]]), fc = new J("popoverPlugin"), Lx = Z.create({
18839
+ }, Lx = /* @__PURE__ */ Tx(Rx, [["__scopeId", "data-v-0a2a8b4e"]]), fc = new J("popoverPlugin"), Fx = Z.create({
18782
18840
  name: "popoverPlugin",
18783
18841
  addPmPlugins() {
18784
18842
  return [new Y({
@@ -18791,7 +18849,7 @@ const Ox = (t, e) => {
18791
18849
  }
18792
18850
  },
18793
18851
  view: (e) => {
18794
- const n = new Fx(e, this.editor);
18852
+ const n = new Bx(e, this.editor);
18795
18853
  return {
18796
18854
  update: (r, o) => {
18797
18855
  fc.getState(r.state).shouldUpdate && n.update(r, o);
@@ -18804,7 +18862,7 @@ const Ox = (t, e) => {
18804
18862
  })];
18805
18863
  }
18806
18864
  });
18807
- class Fx {
18865
+ class Bx {
18808
18866
  constructor(e, n) {
18809
18867
  R(this, "handleKeyDown", (e) => {
18810
18868
  const n = e.key === "ArrowDown" || e.key === "ArrowUp";
@@ -18841,7 +18899,7 @@ class Fx {
18841
18899
  if (this.isShowMentions) {
18842
18900
  const { from: i } = this.state.selection, s = this.getMentionText(i);
18843
18901
  o = {
18844
- component: Rx,
18902
+ component: Lx,
18845
18903
  props: {
18846
18904
  users: this.editor.users,
18847
18905
  mention: s,
@@ -18883,7 +18941,7 @@ class Fx {
18883
18941
  this.tippyInstance.destroy(), this.popover.remove();
18884
18942
  }
18885
18943
  }
18886
- const Bx = !1, zx = Z.create({
18944
+ const zx = !1, _x = Z.create({
18887
18945
  name: "pagination",
18888
18946
  addStorage() {
18889
18947
  return {
@@ -18917,7 +18975,7 @@ const Bx = !1, zx = Z.create({
18917
18975
  return {
18918
18976
  isReadyToInit: !1,
18919
18977
  decorations: I.empty,
18920
- isDebugging: Bx
18978
+ isDebugging: zx
18921
18979
  };
18922
18980
  },
18923
18981
  apply(s, a, l, c) {
@@ -18952,7 +19010,7 @@ const Bx = !1, zx = Z.create({
18952
19010
  let a = I.empty;
18953
19011
  return {
18954
19012
  update: (l) => {
18955
- !n || e || (e = !0, r = !0, _x(t, l, a), e = !1, n = !1);
19013
+ !n || e || (e = !0, r = !0, $x(t, l, a), e = !1, n = !1);
18956
19014
  }
18957
19015
  };
18958
19016
  },
@@ -18982,8 +19040,8 @@ const Bx = !1, zx = Z.create({
18982
19040
  return c;
18983
19041
  let u = i.default;
18984
19042
  return t === 1 && (u = d), o && (t === 1 && (u = c), t % 2 === 0 ? u = a || d : u = l || d), u;
18985
- }, _x = (t, e, n) => {
18986
- const r = t.storage.pagination.sectionData, o = $x(e, t, r);
19043
+ }, $x = (t, e, n) => {
19044
+ const r = t.storage.pagination.sectionData, o = Vx(e, t, r);
18987
19045
  if (!n.eq(o)) {
18988
19046
  const i = e.state.tr.setMeta(
18989
19047
  Vt,
@@ -18992,7 +19050,7 @@ const Bx = !1, zx = Z.create({
18992
19050
  e.dispatch(i);
18993
19051
  }
18994
19052
  t.emit("paginationUpdate");
18995
- }, $x = (t, e, n) => {
19053
+ }, Vx = (t, e, n) => {
18996
19054
  if (!e.converter) return I.empty;
18997
19055
  const r = e.converter.pageStyles?.pageSize, { width: o, height: i } = r;
18998
19056
  if (!o || !i) return I.empty;
@@ -19011,10 +19069,10 @@ const Bx = !1, zx = Z.create({
19011
19069
  }
19012
19070
  });
19013
19071
  e.initDefaultStyles(c);
19014
- const p = Vx(l.doc, f, e, n);
19072
+ const p = Hx(l.doc, f, e, n);
19015
19073
  return f.destroy(), document.body.removeChild(c), I.create(t.state.doc, p);
19016
19074
  };
19017
- function Vx(t, e, n, r) {
19075
+ function Hx(t, e, n, r) {
19018
19076
  const o = [], { pageSize: i, pageMargins: s } = n.converter.pageStyles, a = i.height * 96;
19019
19077
  n.options.scale;
19020
19078
  let l = 1, c = a, d = null, u = null;
@@ -19048,7 +19106,7 @@ function Vx(t, e, n, r) {
19048
19106
  top: pe,
19049
19107
  bottom: he,
19050
19108
  pos: Te
19051
- } = Hx(e, H, c), ze = Gt(l, "footerIds", n, z);
19109
+ } = jx(e, H, c), ze = Gt(l, "footerIds", n, z);
19052
19110
  l++;
19053
19111
  const ft = Gt(l, "headerIds", n);
19054
19112
  u = fo(s, i, r, ft), d = Ni(s, i, r, ze, l - 1);
@@ -19111,7 +19169,7 @@ function po({ editor: t, header: e, footer: n, footerBottom: r = null, isFirstHe
19111
19169
  }
19112
19170
  return e && (d.appendChild(e.section), l += e.headerHeight), c.style.height = l + "px", c.style.minHeight = l + "px", c.style.maxHeight = l + "px", d.style.height = l + "px", c.style.width = "100px", c.style.marginLeft = a.left * -96 + "px", r !== null && (c.style.position = "absolute", c.style.bottom = r + "px"), c;
19113
19171
  }
19114
- function Hx(t, e, n) {
19172
+ function jx(t, e, n) {
19115
19173
  let r = e - 1;
19116
19174
  const o = { top: 0, bottom: 0, pos: 0 };
19117
19175
  for (; r > 0; ) {
@@ -19135,7 +19193,7 @@ class Ff {
19135
19193
  Create a query object.
19136
19194
  */
19137
19195
  constructor(e) {
19138
- this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && !(this.regexp && !Xx(this.search)), this.wholeWord = !!e.wholeWord, this.filter = e.filter || null, this.impl = this.valid ? this.regexp ? new Ux(this) : new Wx(this) : jx;
19196
+ this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && !(this.regexp && !Jx(this.search)), this.wholeWord = !!e.wholeWord, this.filter = e.filter || null, this.impl = this.valid ? this.regexp ? new qx(this) : new Ux(this) : Wx;
19139
19197
  }
19140
19198
  /**
19141
19199
  Compare this query to another query.
@@ -19195,7 +19253,7 @@ class Ff {
19195
19253
  positions through your transaction's current mapping.
19196
19254
  */
19197
19255
  getReplacements(e, n) {
19198
- let o = e.doc.resolve(n.from).marksAcross(e.doc.resolve(n.to)), i = [], s = T.empty, a = n.from, { match: l } = n, c = l ? qx(l) : [[0, n.to - n.from]], d = Kx(this.unquote(this.replace)), u;
19256
+ let o = e.doc.resolve(n.from).marksAcross(e.doc.resolve(n.to)), i = [], s = T.empty, a = n.from, { match: l } = n, c = l ? Kx(l) : [[0, n.to - n.from]], d = Xx(this.unquote(this.replace)), u;
19199
19257
  for (let f of d)
19200
19258
  if (typeof f == "string")
19201
19259
  s = s.addToEnd(e.schema.text(f, o));
@@ -19206,7 +19264,7 @@ class Ff {
19206
19264
  return (s != T.empty || a < n.to) && i.push({ from: a, to: n.to, insert: new W(s, 0, 0) }), i;
19207
19265
  }
19208
19266
  }
19209
- const jx = new class {
19267
+ const Wx = new class {
19210
19268
  findNext() {
19211
19269
  return null;
19212
19270
  }
@@ -19214,7 +19272,7 @@ const jx = new class {
19214
19272
  return null;
19215
19273
  }
19216
19274
  }();
19217
- class Wx {
19275
+ class Ux {
19218
19276
  constructor(e) {
19219
19277
  this.query = e;
19220
19278
  let n = e.unquote(e.search);
@@ -19236,7 +19294,7 @@ class Wx {
19236
19294
  }
19237
19295
  }
19238
19296
  const Bf = "g" + (/x/.unicode == null ? "" : "u") + (/x/.hasIndices == null ? "" : "d");
19239
- class Ux {
19297
+ class qx {
19240
19298
  constructor(e) {
19241
19299
  this.query = e, this.regexp = new RegExp(e.search, Bf + (e.caseSensitive ? "" : "i"));
19242
19300
  }
@@ -19262,7 +19320,7 @@ class Ux {
19262
19320
  });
19263
19321
  }
19264
19322
  }
19265
- function qx(t) {
19323
+ function Kx(t) {
19266
19324
  if (t.indices)
19267
19325
  return t.indices;
19268
19326
  let e = [[0, t[0].length]];
@@ -19272,7 +19330,7 @@ function qx(t) {
19272
19330
  }
19273
19331
  return e;
19274
19332
  }
19275
- function Kx(t) {
19333
+ function Xx(t) {
19276
19334
  let e = [], n = -1;
19277
19335
  function r(o) {
19278
19336
  let i = e.length - 1;
@@ -19290,7 +19348,7 @@ function Kx(t) {
19290
19348
  }
19291
19349
  return e;
19292
19350
  }
19293
- function Xx(t) {
19351
+ function Jx(t) {
19294
19352
  try {
19295
19353
  return new RegExp(t, Bf), !0;
19296
19354
  } catch {
@@ -19356,7 +19414,7 @@ function Pi(t, e, n) {
19356
19414
  return I.create(t.doc, r);
19357
19415
  }
19358
19416
  const hr = new J("search");
19359
- function Jx(t = {}) {
19417
+ function Yx(t = {}) {
19360
19418
  return new Y({
19361
19419
  key: hr,
19362
19420
  state: {
@@ -19388,10 +19446,10 @@ function yc(t) {
19388
19446
  let e = hr.getState(t);
19389
19447
  return e ? e.deco : I.empty;
19390
19448
  }
19391
- function Yx(t, e, n = null) {
19449
+ function Gx(t, e, n = null) {
19392
19450
  return t.setMeta(hr, { query: e, range: n });
19393
19451
  }
19394
- const Gx = Z.create({
19452
+ const Zx = Z.create({
19395
19453
  addStorage() {
19396
19454
  return {
19397
19455
  searchResults: []
@@ -19414,7 +19472,7 @@ const Gx = Z.create({
19414
19472
  }
19415
19473
  }
19416
19474
  });
19417
- return [Jx(), n];
19475
+ return [Yx(), n];
19418
19476
  },
19419
19477
  addCommands() {
19420
19478
  return {
@@ -19439,7 +19497,7 @@ const Gx = Z.create({
19439
19497
  caseSensitive: i,
19440
19498
  regexp: s,
19441
19499
  wholeWord: a
19442
- }), c = Yx(e.tr, l);
19500
+ }), c = Gx(e.tr, l);
19443
19501
  r(c);
19444
19502
  const d = e.apply(c), u = yc(d), p = (u ? u.find() : []).map((h) => ({
19445
19503
  from: h.from,
@@ -19459,7 +19517,7 @@ const Gx = Z.create({
19459
19517
  }
19460
19518
  };
19461
19519
  }
19462
- }), Zx = () => [
19520
+ }), Qx = () => [
19463
19521
  sf,
19464
19522
  Au,
19465
19523
  hu,
@@ -19481,8 +19539,8 @@ const Gx = Z.create({
19481
19539
  bu,
19482
19540
  of,
19483
19541
  lf,
19484
- Kv,
19485
- Lx,
19542
+ Xv,
19543
+ Fx,
19486
19544
  rf,
19487
19545
  cf,
19488
19546
  vu,
@@ -19497,7 +19555,7 @@ const Gx = Z.create({
19497
19555
  hf,
19498
19556
  Su,
19499
19557
  nf
19500
- ], Qx = () => [
19558
+ ], eS = () => [
19501
19559
  sf,
19502
19560
  Au,
19503
19561
  hu,
@@ -19539,12 +19597,12 @@ const Gx = Z.create({
19539
19597
  rf,
19540
19598
  y0,
19541
19599
  x0,
19542
- qv,
19600
+ Kv,
19543
19601
  ff,
19544
19602
  pf,
19545
19603
  hf,
19546
19604
  aw,
19547
- zx,
19605
+ _x,
19548
19606
  cf,
19549
19607
  B0,
19550
19608
  Su,
@@ -19556,7 +19614,8 @@ const Gx = Z.create({
19556
19614
  _v,
19557
19615
  $v,
19558
19616
  Vv,
19559
- Gx
19617
+ Zx,
19618
+ Hv
19560
19619
  ];
19561
19620
  export {
19562
19621
  E as A,
@@ -19565,23 +19624,23 @@ export {
19565
19624
  _o as I,
19566
19625
  Oe as M,
19567
19626
  q as N,
19568
- Kv as P,
19627
+ Xv as P,
19569
19628
  ce as T,
19570
- Ox as _,
19571
- lS as a,
19629
+ Tx as _,
19630
+ cS as a,
19572
19631
  _0 as b,
19573
19632
  je as c,
19574
19633
  yp as d,
19575
- Qx as e,
19576
- uS as f,
19634
+ eS as e,
19635
+ fS as f,
19577
19636
  fi as g,
19578
- Zx as h,
19637
+ Qx as h,
19579
19638
  Qc as i,
19580
19639
  Z as j,
19581
19640
  Ls as k,
19582
- dS as l,
19583
- fS as m,
19641
+ uS as l,
19642
+ pS as m,
19584
19643
  jo as n,
19585
- sS as r,
19586
- iS as u
19644
+ aS as r,
19645
+ sS as u
19587
19646
  };