vue-spear-tip 0.2.11 → 0.2.12

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 (45) hide show
  1. package/dist/.vite/manifest.json +32 -32
  2. package/dist/{Button-CgV8TKSe.js → Button-CeE0XgUQ.js} +1 -1
  3. package/dist/{Button-CHi5q2B8.cjs → Button-Cjc_rGOC.cjs} +1 -1
  4. package/dist/{CodeHighlight-qlVamFnM.js → CodeHighlight-BF0IfK1T.js} +1 -1
  5. package/dist/{CodeHighlight-DAFFU7u2.cjs → CodeHighlight-eHkjA2-z.cjs} +1 -1
  6. package/dist/{DateField-BQYZQsBb.cjs → DateField-DOtmBCoj.cjs} +1 -1
  7. package/dist/{DateField-D0Ilkfym.js → DateField-Di-9cThw.js} +2 -2
  8. package/dist/{FieldComponent.vue_vue_type_script_lang-hfVg8AIM.js → FieldComponent.vue_vue_type_script_lang-BcKSz5pD.js} +1 -1
  9. package/dist/{FieldComponent.vue_vue_type_script_lang-C9JoaDDS.cjs → FieldComponent.vue_vue_type_script_lang-CcZ0n1tb.cjs} +1 -1
  10. package/dist/{SelectField-lpNn-0fg.cjs → SelectField-Cb93USnU.cjs} +1 -1
  11. package/dist/{SelectField-BXQn9OAW.js → SelectField-CgRVO_Ik.js} +2 -2
  12. package/dist/{StringField-BMGdDwHw.js → StringField-BoYflBLa.js} +2 -2
  13. package/dist/{StringField-C9YQH_Va.cjs → StringField-CDOFXAC2.cjs} +1 -1
  14. package/dist/SwitchField-C6KEaENg.cjs +1 -0
  15. package/dist/{SwitchField-C2rvdoqS.js → SwitchField-C8drUeqV.js} +18 -18
  16. package/dist/{Tabs-B76h25-X.js → Tabs-BbImaERA.js} +1 -1
  17. package/dist/{Tabs-BnfWPt_y.cjs → Tabs-Bqlv_0YY.cjs} +1 -1
  18. package/dist/{TextField-BbNAxetT.cjs → TextField-CXYhTfmD.cjs} +1 -1
  19. package/dist/{TextField-SGxKqPAt.js → TextField-DFx8x_xu.js} +2 -2
  20. package/dist/{index-BhdXUlye.js → index-B_RpB4zN.js} +3 -3
  21. package/dist/{index-CWmP8TIW.cjs → index-CzfN5Ujw.cjs} +1 -1
  22. package/dist/vue-spear-tip.cjs.js +1 -1
  23. package/dist/vue-spear-tip.css +1 -1
  24. package/dist/vue-spear-tip.es.js +1 -1
  25. package/docs/index.html +2 -2
  26. package/docs/static/{Button-Bunv2LWC.js → Button-j8wmZUkJ.js} +1 -1
  27. package/docs/static/{CodeHighlight-DQBcinnM.js → CodeHighlight-Bk1-dVpe.js} +1 -1
  28. package/docs/static/{DateField-CsIlYupR.js → DateField-B7SrsvTk.js} +1 -1
  29. package/docs/static/{FieldComponent.vue_vue_type_script_lang-CQ-4feGL.js → FieldComponent.vue_vue_type_script_lang-kcu707jX.js} +1 -1
  30. package/docs/static/{NoSymbolIcon-BbyqUoRs.js → NoSymbolIcon-C07Mbunu.js} +1 -1
  31. package/docs/static/{SelectField-CViiMPQ4.js → SelectField-CGMK45MH.js} +1 -1
  32. package/docs/static/{StringField-CCJHJt0B.js → StringField-CB1EqY_E.js} +1 -1
  33. package/docs/static/SwitchField-Ct85pbvZ.css +1 -0
  34. package/docs/static/SwitchField-uZyWkOrm.js +1 -0
  35. package/docs/static/{Tabs-CtPaTerA.js → Tabs-CaCH9JtY.js} +1 -1
  36. package/docs/static/{TextField--uApzzsN.js → TextField-CF2HuxS4.js} +1 -1
  37. package/docs/static/index-DMb1rZyo.js +2 -0
  38. package/docs/static/{main-C0xMdd--.js → main-D1hiHOjl.js} +2 -2
  39. package/docs/static/main-kVqkj31w.css +1 -0
  40. package/package.json +1 -1
  41. package/dist/SwitchField-CaTcotfe.cjs +0 -1
  42. package/docs/static/SwitchField-DTAyMrZv.js +0 -1
  43. package/docs/static/SwitchField-igvaNnA4.css +0 -1
  44. package/docs/static/index-DVVP040D.js +0 -2
  45. package/docs/static/main-CKD4jD7A.css +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var b=Object.defineProperty;var h=(e,t)=>b(e,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CzfN5Ujw.cjs"),m=require("./FieldComponent.vue_vue_type_script_lang-CcZ0n1tb.cjs"),o=require("vue"),c=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");var u=Object.defineProperty,y=Object.getOwnPropertyDescriptor,i=h((e,t,p,s)=>{for(var a=s>1?void 0:s?y(t,p):t,g=e.length-1,d;g>=0;g--)(d=e[g])&&(a=(s?d(t,p,a):d(a))||a);return s&&a&&u(t,p,a),a},"__decorateClass"),n;let l=(n=class extends m.FieldComponentUnoCss{disabled=!1;bg="linear-gradient(330deg, #0aa86d 0%, #4eb18d 50%, #0ca86e 100%)";bgInactive="#a1a1a1";title=null;titleTheme="info";bgTogglerY="#3db37e";bgTogglerN="#FF3A19";titleTogglerY="Active";titleTogglerN="Inactive";togglerWidth="100px";togglerWidthActive="100px";togglerRevertColors=null;boxShadow="0 0 2px #1ca95e";disabledTitle="Disabled";disabledTitleTheme="grey";boxShadowHover="0 0 2px #9eeda8";labelColor="#fff";labelBoxShadow="0 0 4px #a4a4a4";type="switcher";modelValue=!1;value=!1;beforeMount(){this.isChecked=this.modelValue||this.inputValue||this.value,this.randomId=$VST.generateRandomKey(32)}emits=["update:modelValue","change"];_onCheckChange(){this.$emit("update:modelValue",this.isChecked),this.$emit("change",this.isChecked)}isChecked=!1;isDisabled=!1;randomId="";setValue(t){this.isChecked=t}_modelValueChanged(t){this.setValue(t)}},h(n,"SwitchField"),n);i([r.Prop(Boolean)],l.prototype,"disabled",2);i([r.Prop(String)],l.prototype,"bg",2);i([r.Prop(String)],l.prototype,"bgInactive",2);i([r.Prop(String)],l.prototype,"title",2);i([r.Prop(String)],l.prototype,"titleTheme",2);i([r.Prop(String)],l.prototype,"bgTogglerY",2);i([r.Prop(String)],l.prototype,"bgTogglerN",2);i([r.Prop(String)],l.prototype,"titleTogglerY",2);i([r.Prop(String)],l.prototype,"titleTogglerN",2);i([r.Prop(String)],l.prototype,"togglerWidth",2);i([r.Prop(String)],l.prototype,"togglerWidthActive",2);i([r.Prop(Boolean)],l.prototype,"togglerRevertColors",2);i([r.Prop(String)],l.prototype,"boxShadow",2);i([r.Prop(String)],l.prototype,"disabledTitle",2);i([r.Prop(String)],l.prototype,"disabledTitleTheme",2);i([r.Prop(String)],l.prototype,"boxShadowHover",2);i([r.Prop(String)],l.prototype,"labelColor",2);i([r.Prop(String)],l.prototype,"labelBoxShadow",2);i([r.Prop(String)],l.prototype,"type",2);i([r.Prop(Boolean,null)],l.prototype,"modelValue",2);i([r.Watch("isChecked",!0,!0)],l.prototype,"_onCheckChange",1);i([r.Watch("modelValue",!0)],l.prototype,"_modelValueChanged",1);l=i([r.VST],l);const C=["title","data-theme"],k={class:"switch_box"},S=["id","disabled"],f=["for"],v=["id","disabled"],w=["data-tg-off","data-tg-on","for"],V=["id","disabled"],T=["for"];function D(e,t,p,s,a,g){return o.openBlock(),o.createElementBlock("div",{class:"container-switch",title:e.disabled?e.disabledTitle:e.title,"data-theme":e.disabled?e.disabledTitleTheme:e.titleTheme,"data-offset":"[-15, 15]"},[t[6]||(t[6]=o.createTextVNode(" ",-1)),e.type=="switcher"?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["switch",e.disabled?"disabled":""])},[o.createElementVNode("div",k,[o.createElementVNode("div",{class:"cursor-pointer fs-1rem mb2px",onClick:t[0]||(t[0]=d=>e.disabled?null:e.isChecked=!e.isChecked)},[o.renderSlot(e.$slots,"default")]),o.withDirectives(o.createElementVNode("input",{id:"switch-"+e.randomId,type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=d=>e.isChecked=d),disabled:e.disabled},null,8,S),[[o.vModelCheckbox,e.isChecked]]),o.createElementVNode("label",{for:"switch-"+e.randomId,class:o.normalizeClass({disabled:e.disabled})},null,10,f)])],2)):e.type=="toggler"?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["hybrid-checkbox",{["toggler-"+e.randomId]:!0}])},[o.withDirectives(o.createElementVNode("input",{class:"tgl tgl-flip",id:"toggler-"+e.randomId,type:"checkbox","onUpdate:modelValue":t[2]||(t[2]=d=>e.isChecked=d),disabled:e.disabled},null,8,v),[[o.vModelCheckbox,e.isChecked]]),o.createElementVNode("label",{class:"tgl-btn","data-tg-off":e.titleTogglerN,"data-tg-on":e.titleTogglerY,for:"toggler-"+e.randomId},null,8,w)],2)):e.type=="checkbox"?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["typical-checkbox",{disabled:e.disabled}])},[o.createElementVNode("span",null,[o.withDirectives(o.createElementVNode("input",{type:"checkbox",id:"checkbox-"+e.randomId,"onUpdate:modelValue":t[3]||(t[3]=d=>e.isChecked=d),disabled:e.disabled},null,8,V),[[o.vModelCheckbox,e.isChecked]]),o.createElementVNode("label",{class:"check h30px!",for:"checkbox-"+e.randomId},[(o.openBlock(),o.createElementBlock("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",class:o.normalizeClass({"svg-unchecked mt3px":!e.isChecked})},[...t[5]||(t[5]=[o.createElementVNode("path",{d:"M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"},null,-1),o.createElementVNode("polyline",{points:"1 9 7 14 15 4"},null,-1)])],2))],8,T)]),o.createElementVNode("span",{class:o.normalizeClass(["cursor-pointer fs-1rem mx15px my2px whitespace-nowrap",{"fw-bold underline underline-black":e.isChecked}]),onClick:t[4]||(t[4]=d=>e.disabled?null:e.isChecked=!e.isChecked)},[o.renderSlot(e.$slots,"default")],2)],2)):o.createCommentVNode("",!0),e.type=="toggler"?(o.openBlock(),o.createBlock(o.resolveDynamicComponent("style"),{key:3},{default:o.withCtx(()=>[o.createTextVNode(".toggler-"+o.toDisplayString(e.randomId)+" .tgl-flip + .tgl-btn { perspective: "+o.toDisplayString(e.isChecked?e.togglerWidthActive:e.togglerWidth)+" !important; width: "+o.toDisplayString(e.isChecked?e.togglerWidthActive:e.togglerWidth)+" !important; } .toggler-"+o.toDisplayString(e.randomId)+" .tgl-flip + .tgl-btn:before { background: "+o.toDisplayString(e.togglerRevertColors?e.bgTogglerY:e.bgTogglerN)+" } .toggler-"+o.toDisplayString(e.randomId)+" .tgl-flip:checked + .tgl-btn:after { background: "+o.toDisplayString(e.togglerRevertColors?e.bgTogglerN:e.bgTogglerY)+" }",1)]),_:1})):o.createCommentVNode("",!0),e.type=="toggler"&&e.disabled?(o.openBlock(),o.createBlock(o.resolveDynamicComponent("style"),{key:4},{default:o.withCtx(()=>[o.createTextVNode(".toggler-"+o.toDisplayString(e.randomId)+" { opacity: 0.5 !important; }",1)]),_:1})):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(o.resolveDynamicComponent("style"),null,{default:o.withCtx(()=>[o.createTextVNode('[for="switch-'+o.toDisplayString(e.randomId)+'"]::before { background: '+o.toDisplayString(e.bg)+"; box-shadow: "+o.toDisplayString(e.boxShadow)+' !important; } [for="switch-'+o.toDisplayString(e.randomId)+'"]:not(.disabled):hover { box-shadow: '+o.toDisplayString(e.boxShadowHover)+'; } .switch_box [for="switch-'+o.toDisplayString(e.randomId)+'"]::after { background: '+o.toDisplayString(e.labelColor)+" !important; box-shadow: "+o.toDisplayString(e.labelBoxShadow)+'; } .switch_box [for="switch-'+o.toDisplayString(e.randomId)+'"] input { display: none !important; } .switch_box label[for="switch-'+o.toDisplayString(e.randomId)+'"] { background: '+o.toDisplayString(e.bgInactive)+" !important; }",1)]),_:1}))],8,C)}h(D,"render");const N=c._export_sfc(l,[["render",D]]);exports.default=N;
@@ -1,7 +1,7 @@
1
1
  var V = Object.defineProperty;
2
2
  var f = (e, o) => V(e, "name", { value: o, configurable: !0 });
3
- import { P as d, W as I, V as $ } from "./index-BhdXUlye.js";
4
- import { F as B } from "./FieldComponent.vue_vue_type_script_lang-hfVg8AIM.js";
3
+ import { P as d, W as I, V as $ } from "./index-B_RpB4zN.js";
4
+ import { F as B } from "./FieldComponent.vue_vue_type_script_lang-BcKSz5pD.js";
5
5
  import { createElementBlock as b, openBlock as n, createTextVNode as y, createCommentVNode as C, createBlock as k, normalizeClass as g, createElementVNode as r, withDirectives as v, renderSlot as T, vModelCheckbox as w, resolveDynamicComponent as c, withCtx as S, toDisplayString as i } from "vue";
6
6
  import { _ as N } from "./_plugin-vue_export-helper-B9nE8o7z.js";
7
7
  var W = Object.defineProperty, D = Object.getOwnPropertyDescriptor, l = /* @__PURE__ */ f((e, o, m, h) => {
@@ -117,7 +117,7 @@ l([
117
117
  t = l([
118
118
  $
119
119
  ], t);
120
- const Y = ["title", "data-theme"], A = { class: "switch_box" }, F = ["id", "disabled"], P = ["for"], L = ["id", "disabled"], R = ["data-tg-off", "data-tg-on", "for"], O = { class: "flex! items-center justify-center" }, U = ["id", "disabled"], j = ["for"];
120
+ const Y = ["title", "data-theme"], A = { class: "switch_box" }, F = ["id", "disabled"], P = ["for"], L = ["id", "disabled"], R = ["data-tg-off", "data-tg-on", "for"], O = ["id", "disabled"], U = ["for"];
121
121
  function H(e, o, m, h, s, u) {
122
122
  return n(), b("div", {
123
123
  class: "container-switch",
@@ -179,21 +179,13 @@ function H(e, o, m, h, s, u) {
179
179
  disabled: e.disabled
180
180
  }])
181
181
  }, [
182
- r("div", O, [
183
- r("div", {
184
- class: g(["cursor-pointer fs-1rem mx15px my2px hover:underline", {
185
- "fw-bold underline": e.isChecked
186
- }]),
187
- onClick: o[3] || (o[3] = (a) => e.disabled ? null : e.isChecked = !e.isChecked)
188
- }, [
189
- T(e.$slots, "default")
190
- ], 2),
182
+ r("span", null, [
191
183
  v(r("input", {
192
184
  type: "checkbox",
193
185
  id: "checkbox-" + e.randomId,
194
- "onUpdate:modelValue": o[4] || (o[4] = (a) => e.isChecked = a),
186
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => e.isChecked = a),
195
187
  disabled: e.disabled
196
- }, null, 8, U), [
188
+ }, null, 8, O), [
197
189
  [w, e.isChecked]
198
190
  ]),
199
191
  r("label", {
@@ -211,8 +203,16 @@ function H(e, o, m, h, s, u) {
211
203
  }, null, -1),
212
204
  r("polyline", { points: "1 9 7 14 15 4" }, null, -1)
213
205
  ])], 2))
214
- ], 8, j)
215
- ])
206
+ ], 8, U)
207
+ ]),
208
+ r("span", {
209
+ class: g(["cursor-pointer fs-1rem mx15px my2px whitespace-nowrap", {
210
+ "fw-bold underline underline-black": e.isChecked
211
+ }]),
212
+ onClick: o[4] || (o[4] = (a) => e.disabled ? null : e.isChecked = !e.isChecked)
213
+ }, [
214
+ T(e.$slots, "default")
215
+ ], 2)
216
216
  ], 2)) : C("", !0),
217
217
  e.type == "toggler" ? (n(), k(c("style"), { key: 3 }, {
218
218
  default: S(() => [
@@ -235,7 +235,7 @@ function H(e, o, m, h, s, u) {
235
235
  ], 8, Y);
236
236
  }
237
237
  f(H, "render");
238
- const q = /* @__PURE__ */ N(t, [["render", H]]);
238
+ const Z = /* @__PURE__ */ N(t, [["render", H]]);
239
239
  export {
240
- q as default
240
+ Z as default
241
241
  };
@@ -1,6 +1,6 @@
1
1
  var C = Object.defineProperty;
2
2
  var l = (t, o) => C(t, "name", { value: o, configurable: !0 });
3
- import { a as f, V as m } from "./index-BhdXUlye.js";
3
+ import { a as f, V as m } from "./index-B_RpB4zN.js";
4
4
  import { createElementBlock as s, openBlock as r, createElementVNode as k, Fragment as n, renderList as _, createCommentVNode as p, normalizeClass as $, renderSlot as v, toDisplayString as g, withDirectives as y, vShow as w } from "vue";
5
5
  import { _ as D } from "./_plugin-vue_export-helper-B9nE8o7z.js";
6
6
  var S = Object.getOwnPropertyDescriptor, V = /* @__PURE__ */ l((t, o, h, c) => {
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty;var l=(t,o)=>m(t,"name",{value:o,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index-CWmP8TIW.cjs"),e=require("vue"),_=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");var b=Object.getOwnPropertyDescriptor,B=l((t,o,d,i)=>{for(var s=i>1?void 0:i?b(o,d):o,c=t.length-1,a;c>=0;c--)(a=t[c])&&(s=a(s)||s);return s},"__decorateClass"),n;let u=(n=class extends p.BaseComponent{currentTab="default";CommentT=Comment;mounted(){}setCurrentTab(o){this.currentTab=o}getTabTitle(o){return o.props?.title||"Без названия"}},l(n,"Tabs"),n);u=B([p.VST],u);const v={class:"tabs"},h={class:"tabs__headers"},$=["onClick"],C=["onClick"],T={key:0,class:"tabs__content"};function g(t,o,d,i,s,c){return e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.startsWith("$title-")?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tabs__header",{"tabs__header--active":t.currentTab===r.split("-")[1]}]),onClick:l(k=>t.setCurrentTab(r.split("-")[1]),"onClick")},[e.renderSlot(t.$slots,r,{},void 0,!0)],10,$)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!r.startsWith("$title")&&!t.$slots?.[`$title-${r}`]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tabs__header",{"tabs__header--active":t.currentTab===r}]),onClick:l(k=>t.setCurrentTab(r),"onClick")},e.toDisplayString(r),11,C)):e.createCommentVNode("",!0)],64))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.startsWith("$")?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",T,[e.renderSlot(t.$slots,r,{},void 0,!0)],512)),[[e.vShow,t.currentTab==r]])],64))),256))])}l(g,"render");const E=_._export_sfc(u,[["render",g],["__scopeId","data-v-f8d3de0a"]]);exports.default=E;
1
+ "use strict";var m=Object.defineProperty;var l=(t,o)=>m(t,"name",{value:o,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index-CzfN5Ujw.cjs"),e=require("vue"),_=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");var b=Object.getOwnPropertyDescriptor,B=l((t,o,d,i)=>{for(var s=i>1?void 0:i?b(o,d):o,c=t.length-1,a;c>=0;c--)(a=t[c])&&(s=a(s)||s);return s},"__decorateClass"),n;let u=(n=class extends p.BaseComponent{currentTab="default";CommentT=Comment;mounted(){}setCurrentTab(o){this.currentTab=o}getTabTitle(o){return o.props?.title||"Без названия"}},l(n,"Tabs"),n);u=B([p.VST],u);const v={class:"tabs"},h={class:"tabs__headers"},$=["onClick"],C=["onClick"],T={key:0,class:"tabs__content"};function g(t,o,d,i,s,c){return e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.startsWith("$title-")?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tabs__header",{"tabs__header--active":t.currentTab===r.split("-")[1]}]),onClick:l(k=>t.setCurrentTab(r.split("-")[1]),"onClick")},[e.renderSlot(t.$slots,r,{},void 0,!0)],10,$)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!r.startsWith("$title")&&!t.$slots?.[`$title-${r}`]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tabs__header",{"tabs__header--active":t.currentTab===r}]),onClick:l(k=>t.setCurrentTab(r),"onClick")},e.toDisplayString(r),11,C)):e.createCommentVNode("",!0)],64))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.$slots,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.startsWith("$")?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",T,[e.renderSlot(t.$slots,r,{},void 0,!0)],512)),[[e.vShow,t.currentTab==r]])],64))),256))])}l(g,"render");const E=_._export_sfc(u,[["render",g],["__scopeId","data-v-f8d3de0a"]]);exports.default=E;
@@ -1,4 +1,4 @@
1
- "use strict";var oh=Object.defineProperty;var c=(n,e)=>oh(n,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("vue"),rn=require("./index-CWmP8TIW.cjs"),lh=require("./FieldComponent.vue_vue_type_script_lang-C9JoaDDS.cjs"),ah=require("./NoSymbolIcon-BoH28Kep.cjs"),ch=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");function ne(n){this.content=n}c(ne,"OrderedMap");ne.prototype={constructor:ne,find:c(function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},"find"),get:c(function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},"get"),update:c(function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new ne(s)},"update"),remove:c(function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new ne(t)},"remove"),addToStart:c(function(n,e){return new ne([n,e].concat(this.remove(n).content))},"addToStart"),addToEnd:c(function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new ne(t)},"addToEnd"),addBefore:c(function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new ne(i)},"addBefore"),forEach:c(function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},"forEach"),prepend:c(function(n){return n=ne.from(n),n.size?new ne(n.content.concat(this.subtract(n).content)):this},"prepend"),append:c(function(n){return n=ne.from(n),n.size?new ne(this.subtract(n).content.concat(n.content)):this},"append"),subtract:c(function(n){var e=this;n=ne.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},"subtract"),toObject:c(function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},"toObject"),get size(){return this.content.length>>1}};ne.from=function(n){if(n instanceof ne)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new ne(e)};function pd(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)t++;return t}if(i.content.size||s.content.size){let o=pd(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}c(pd,"findDiffStart");function md(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let d=0,u=Math.min(o.text.length,l.text.length);for(;d<u&&o.text[o.text.length-d-1]==l.text[l.text.length-d-1];)d++,t--,r--;return{a:t,b:r}}if(o.content.size||l.content.size){let d=md(o.content,l.content,t-1,r-1);if(d)return d}t-=a,r-=a}}c(md,"findDiffEnd");const te=class te{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,s){for(let o=0,l=0;l<t;o++){let a=this.content[o],d=l+a.nodeSize;if(d>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,i+u)}l=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let d=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&d||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=d},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new te(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),i+=l.nodeSize),o=a}return new te(r,i)}cutByIndex(e,t){return e==t?te.empty:e==0&&t==this.content.length?this:new te(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new te(i,s)}addToStart(e){return new te([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new te(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return pd(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return md(this,e,t,r)}findIndex(e){if(e==0)return Vr(0,e);if(e==this.size)return Vr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let i=this.child(t),s=r+i.nodeSize;if(s>=e)return s==e?Vr(t+1,s):Vr(t,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return te.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new te(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return te.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new te(t||e,r)}static from(e){if(!e)return te.empty;if(e instanceof te)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new te([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};c(te,"Fragment");let C=te;C.empty=new C([],0);const Bs={index:0,offset:0};function Vr(n,e){return Bs.index=n,Bs.offset=e,Bs}c(Vr,"retIndex");function si(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!si(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!si(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}c(si,"compareDeep");var vt;let F=(vt=class{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&si(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let i=r.create(t.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return vt.none;if(e instanceof vt)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}},c(vt,"Mark"),vt);F.none=[];const ea=class ea extends Error{};c(ea,"ReplaceError");let zn=ea;const pt=class pt{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=yd(this.content,e+this.openStart,t);return r&&new pt(r,this.openStart,this.openEnd)}removeBetween(e,t){return new pt(gd(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return pt.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new pt(C.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new pt(e,r,i)}};c(pt,"Slice");let E=pt;E.empty=new E(C.empty,0,0);function gd(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(i==e||s.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(gd(s.content,e-i-1,t-i-1)))}c(gd,"removeRange");function yd(n,e,t,r){let{index:i,offset:s}=n.findIndex(e),o=n.maybeChild(i);if(s==e||o.isText)return r&&!r.canReplace(i,i,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=yd(o.content,e-s-1,t,o);return l&&n.replaceChild(i,o.copy(l))}c(yd,"insertInto");function dh(n,e,t){if(t.openStart>n.depth)throw new zn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new zn("Inconsistent open depths");return bd(n,e,t,0)}c(dh,"replace");function bd(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=bd(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return qt(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=uh(t,n);return qt(s,wd(n,o,l,e,r))}else return qt(s,oi(n,e,r))}c(bd,"replaceOuter");function kd(n,e){if(!e.type.compatibleContent(n.type))throw new zn("Cannot join "+e.type.name+" onto "+n.type.name)}c(kd,"checkJoin");function co(n,e,t){let r=n.node(t);return kd(r,e.node(t)),r}c(co,"joinable$1");function Kt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}c(Kt,"addNode");function rr(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(Kt(n.nodeAfter,r),s++));for(let l=s;l<o;l++)Kt(i.child(l),r);e&&e.depth==t&&e.textOffset&&Kt(e.nodeBefore,r)}c(rr,"addRange");function qt(n,e){return n.type.checkContent(e),n.copy(e)}c(qt,"close");function wd(n,e,t,r,i){let s=n.depth>i&&co(n,e,i+1),o=r.depth>i&&co(t,r,i+1),l=[];return rr(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(kd(s,o),Kt(qt(s,wd(n,e,t,r,i+1)),l)):(s&&Kt(qt(s,oi(n,e,i+1)),l),rr(e,t,i,l),o&&Kt(qt(o,oi(t,r,i+1)),l)),rr(r,null,i,l),new C(l)}c(wd,"replaceThreeWay");function oi(n,e,t){let r=[];if(rr(null,n,t,r),n.depth>t){let i=co(n,e,t+1);Kt(qt(i,oi(n,e,t+1)),r)}return rr(e,null,t,r),new C(r)}c(oi,"replaceTwoWay");function uh(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(C.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}c(uh,"prepareSliceForReplace");const pr=class pr{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return F.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new $n(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),d=s-a;if(r.push(o,l,i+a),!d||(o=o.child(l),o.isText))break;s=d-1,i+=a+1}return new pr(t,r,s)}static resolveCached(e,t){let r=Da.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==t)return o}else Da.set(e,r=new uo);let i=r.elts[r.i]=pr.resolve(e,t);return r.i=(r.i+1)%fh,i}};c(pr,"ResolvedPos");let li=pr;const ta=class ta{constructor(){this.elts=[],this.i=0}};c(ta,"ResolveCache");let uo=ta;const fh=12,Da=new WeakMap,na=class na{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};c(na,"NodeRange");let $n=na;const hh=Object.create(null);var Ct;let wt=(Ct=class{constructor(e,t,r,i=F.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||C.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,i=0){this.content.nodesBetween(e,t,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,i){return this.content.textBetween(e,t,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&si(this.attrs,t||e.defaultAttrs||hh)&&F.sameSet(this.marks,r||F.none)}copy(e=null){return e==this.content?this:new Ct(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ct(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return E.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),l=i.start(o),d=i.node(o).content.cut(i.pos-l,s.pos-l);return new E(d,i.depth-o,s.depth-o)}replace(e,t,r){return dh(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return li.resolveCached(this,e)}resolveNoCache(e){return li.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),xd(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=C.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=F.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!F.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=C.fromJSON(e,t.content),s=e.nodeType(t.type).create(t.attrs,i,r);return s.type.checkAttrs(s.attrs),s}},c(Ct,"Node"),Ct);wt.prototype.text=void 0;const mr=class mr extends wt{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xd(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new mr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new mr(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};c(mr,"TextNode");let fo=mr;function xd(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}c(xd,"wrapMarks");const ds=class ds{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new ho(e,t);if(r.next==null)return ds.empty;let i=Sd(r);r.next&&r.err("Unexpected trailing text");let s=wh(kh(i));return xh(s,r),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!t||a.validEnd))return C.from(l.map(d=>d.createAndFill()));for(let d=0;d<o.next.length;d++){let{type:u,next:f}=o.next[d];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(f)==-1){i.push(f);let h=s(f,l.concat(u));if(h)return h}}return null}return c(s,"search"),s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return c(t,"scan"),t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
1
+ "use strict";var oh=Object.defineProperty;var c=(n,e)=>oh(n,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("vue"),rn=require("./index-CzfN5Ujw.cjs"),lh=require("./FieldComponent.vue_vue_type_script_lang-CcZ0n1tb.cjs"),ah=require("./NoSymbolIcon-BoH28Kep.cjs"),ch=require("./_plugin-vue_export-helper-BaHX9ZKS.cjs");function ne(n){this.content=n}c(ne,"OrderedMap");ne.prototype={constructor:ne,find:c(function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},"find"),get:c(function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},"get"),update:c(function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new ne(s)},"update"),remove:c(function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new ne(t)},"remove"),addToStart:c(function(n,e){return new ne([n,e].concat(this.remove(n).content))},"addToStart"),addToEnd:c(function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new ne(t)},"addToEnd"),addBefore:c(function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new ne(i)},"addBefore"),forEach:c(function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},"forEach"),prepend:c(function(n){return n=ne.from(n),n.size?new ne(n.content.concat(this.subtract(n).content)):this},"prepend"),append:c(function(n){return n=ne.from(n),n.size?new ne(this.subtract(n).content.concat(n.content)):this},"append"),subtract:c(function(n){var e=this;n=ne.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},"subtract"),toObject:c(function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},"toObject"),get size(){return this.content.length>>1}};ne.from=function(n){if(n instanceof ne)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new ne(e)};function pd(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)t++;return t}if(i.content.size||s.content.size){let o=pd(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}c(pd,"findDiffStart");function md(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),l=e.child(--s),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let d=0,u=Math.min(o.text.length,l.text.length);for(;d<u&&o.text[o.text.length-d-1]==l.text[l.text.length-d-1];)d++,t--,r--;return{a:t,b:r}}if(o.content.size||l.content.size){let d=md(o.content,l.content,t-1,r-1);if(d)return d}t-=a,r-=a}}c(md,"findDiffEnd");const te=class te{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,s){for(let o=0,l=0;l<t;o++){let a=this.content[o],d=l+a.nodeSize;if(d>e&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,i+u)}l=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let d=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&d||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=d},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new te(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let l=this.content[s],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),i+=l.nodeSize),o=a}return new te(r,i)}cutByIndex(e,t){return e==t?te.empty:e==0&&t==this.content.length?this:new te(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new te(i,s)}addToStart(e){return new te([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new te(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return pd(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return md(this,e,t,r)}findIndex(e){if(e==0)return Vr(0,e);if(e==this.size)return Vr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let i=this.child(t),s=r+i.nodeSize;if(s>=e)return s==e?Vr(t+1,s):Vr(t,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return te.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new te(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return te.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new te(t||e,r)}static from(e){if(!e)return te.empty;if(e instanceof te)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new te([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};c(te,"Fragment");let C=te;C.empty=new C([],0);const Bs={index:0,offset:0};function Vr(n,e){return Bs.index=n,Bs.offset=e,Bs}c(Vr,"retIndex");function si(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!si(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!si(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}c(si,"compareDeep");var vt;let F=(vt=class{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&si(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let i=r.create(t.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return vt.none;if(e instanceof vt)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}},c(vt,"Mark"),vt);F.none=[];const ea=class ea extends Error{};c(ea,"ReplaceError");let zn=ea;const pt=class pt{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=yd(this.content,e+this.openStart,t);return r&&new pt(r,this.openStart,this.openEnd)}removeBetween(e,t){return new pt(gd(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return pt.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new pt(C.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new pt(e,r,i)}};c(pt,"Slice");let E=pt;E.empty=new E(C.empty,0,0);function gd(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(i==e||s.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(gd(s.content,e-i-1,t-i-1)))}c(gd,"removeRange");function yd(n,e,t,r){let{index:i,offset:s}=n.findIndex(e),o=n.maybeChild(i);if(s==e||o.isText)return r&&!r.canReplace(i,i,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=yd(o.content,e-s-1,t,o);return l&&n.replaceChild(i,o.copy(l))}c(yd,"insertInto");function dh(n,e,t){if(t.openStart>n.depth)throw new zn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new zn("Inconsistent open depths");return bd(n,e,t,0)}c(dh,"replace");function bd(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=bd(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return qt(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=uh(t,n);return qt(s,wd(n,o,l,e,r))}else return qt(s,oi(n,e,r))}c(bd,"replaceOuter");function kd(n,e){if(!e.type.compatibleContent(n.type))throw new zn("Cannot join "+e.type.name+" onto "+n.type.name)}c(kd,"checkJoin");function co(n,e,t){let r=n.node(t);return kd(r,e.node(t)),r}c(co,"joinable$1");function Kt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}c(Kt,"addNode");function rr(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(Kt(n.nodeAfter,r),s++));for(let l=s;l<o;l++)Kt(i.child(l),r);e&&e.depth==t&&e.textOffset&&Kt(e.nodeBefore,r)}c(rr,"addRange");function qt(n,e){return n.type.checkContent(e),n.copy(e)}c(qt,"close");function wd(n,e,t,r,i){let s=n.depth>i&&co(n,e,i+1),o=r.depth>i&&co(t,r,i+1),l=[];return rr(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(kd(s,o),Kt(qt(s,wd(n,e,t,r,i+1)),l)):(s&&Kt(qt(s,oi(n,e,i+1)),l),rr(e,t,i,l),o&&Kt(qt(o,oi(t,r,i+1)),l)),rr(r,null,i,l),new C(l)}c(wd,"replaceThreeWay");function oi(n,e,t){let r=[];if(rr(null,n,t,r),n.depth>t){let i=co(n,e,t+1);Kt(qt(i,oi(n,e,t+1)),r)}return rr(e,null,t,r),new C(r)}c(oi,"replaceTwoWay");function uh(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(C.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}c(uh,"prepareSliceForReplace");const pr=class pr{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return F.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new $n(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),d=s-a;if(r.push(o,l,i+a),!d||(o=o.child(l),o.isText))break;s=d-1,i+=a+1}return new pr(t,r,s)}static resolveCached(e,t){let r=Da.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==t)return o}else Da.set(e,r=new uo);let i=r.elts[r.i]=pr.resolve(e,t);return r.i=(r.i+1)%fh,i}};c(pr,"ResolvedPos");let li=pr;const ta=class ta{constructor(){this.elts=[],this.i=0}};c(ta,"ResolveCache");let uo=ta;const fh=12,Da=new WeakMap,na=class na{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};c(na,"NodeRange");let $n=na;const hh=Object.create(null);var Ct;let wt=(Ct=class{constructor(e,t,r,i=F.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||C.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,i=0){this.content.nodesBetween(e,t,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,i){return this.content.textBetween(e,t,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&si(this.attrs,t||e.defaultAttrs||hh)&&F.sameSet(this.marks,r||F.none)}copy(e=null){return e==this.content?this:new Ct(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ct(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return E.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),l=i.start(o),d=i.node(o).content.cut(i.pos-l,s.pos-l);return new E(d,i.depth-o,s.depth-o)}replace(e,t,r){return dh(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return li.resolveCached(this,e)}resolveNoCache(e){return li.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),xd(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=C.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=i;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=F.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!F.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=C.fromJSON(e,t.content),s=e.nodeType(t.type).create(t.attrs,i,r);return s.type.checkAttrs(s.attrs),s}},c(Ct,"Node"),Ct);wt.prototype.text=void 0;const mr=class mr extends wt{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xd(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new mr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new mr(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};c(mr,"TextNode");let fo=mr;function xd(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}c(xd,"wrapMarks");const ds=class ds{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new ho(e,t);if(r.next==null)return ds.empty;let i=Sd(r);r.next&&r.err("Unexpected trailing text");let s=wh(kh(i));return xh(s,r),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function s(o,l){let a=o.matchFragment(e,r);if(a&&(!t||a.validEnd))return C.from(l.map(d=>d.createAndFill()));for(let d=0;d<o.next.length;d++){let{type:u,next:f}=o.next[d];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(f)==-1){i.push(f);let h=s(f,l.concat(u));if(h)return h}}return null}return c(s,"search"),s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:a}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!i.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return c(t,"scan"),t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
2
2
  `)}};c(ds,"ContentMatch");let sn=ds;sn.empty=new sn(!0);const ra=class ra{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};c(ra,"TokenStream");let ho=ra;function Sd(n){let e=[];do e.push(ph(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}c(Sd,"parseExpr");function ph(n){let e=[];do e.push(mh(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}c(ph,"parseExprSeq");function mh(n){let e=bh(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=gh(n,e);else break;return e}c(mh,"parseExprSubscript");function Pa(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}c(Pa,"parseNum");function gh(n,e){let t=Pa(n),r=t;return n.eat(",")&&(n.next!="}"?r=Pa(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}c(gh,"parseExprRange");function yh(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let i=[];for(let s in t){let o=t[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&n.err("No node type or group '"+e+"' found"),i}c(yh,"resolveName");function bh(n){if(n.eat("(")){let e=Sd(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=yh(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}c(bh,"parseExprAtom");function kh(n){let e=[[]];return i(s(n,0),t()),e;function t(){return e.push([])-1}c(t,"node");function r(o,l,a){let d={term:a,to:l};return e[o].push(d),d}c(r,"edge");function i(o,l){o.forEach(a=>a.to=l)}c(i,"connect");function s(o,l){if(o.type=="choice")return o.exprs.reduce((a,d)=>a.concat(s(d,l)),[]);if(o.type=="seq")for(let a=0;;a++){let d=s(o.exprs[a],l);if(a==o.exprs.length-1)return d;i(d,l=t())}else if(o.type=="star"){let a=t();return r(l,a),i(s(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=t();return i(s(o.expr,l),a),i(s(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(s(o.expr,l));if(o.type=="range"){let a=l;for(let d=0;d<o.min;d++){let u=t();i(s(o.expr,a),u),a=u}if(o.max==-1)i(s(o.expr,a),a);else for(let d=o.min;d<o.max;d++){let u=t();r(a,u),i(s(o.expr,a),u),a=u}return[r(a)]}else{if(o.type=="name")return[r(l,void 0,o.value)];throw new Error("Unknown expr type")}}}c(s,"compile")}c(kh,"nfa");function vd(n,e){return e-n}c(vd,"cmp");function La(n,e){let t=[];return r(e),t.sort(vd);function r(i){let s=n[i];if(s.length==1&&!s[0].term)return r(s[0].to);t.push(i);for(let o=0;o<s.length;o++){let{term:l,to:a}=s[o];!l&&t.indexOf(a)==-1&&r(a)}}c(r,"scan")}c(La,"nullFrom");function wh(n){let e=Object.create(null);return t(La(n,0));function t(r){let i=[];r.forEach(o=>{n[o].forEach(({term:l,to:a})=>{if(!l)return;let d;for(let u=0;u<i.length;u++)i[u][0]==l&&(d=i[u][1]);La(n,a).forEach(u=>{d||i.push([l,d=[]]),d.indexOf(u)==-1&&d.push(u)})})});let s=e[r.join(",")]=new sn(r.indexOf(n.length-1)>-1);for(let o=0;o<i.length;o++){let l=i[o][1].sort(vd);s.next.push({type:i[o][0],next:e[l.join(",")]||t(l)})}return s}}c(wh,"dfa");function xh(n,e){for(let t=0,r=[n];t<r.length;t++){let i=r[t],s=!i.validEnd,o=[];for(let l=0;l<i.next.length;l++){let{type:a,next:d}=i.next[l];o.push(a.name),s&&!(a.isText||a.hasRequiredAttrs())&&(s=!1),r.indexOf(d)==-1&&r.push(d)}s&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}c(xh,"checkForDeadEnds");function Cd(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}c(Cd,"defaultAttrs");function Md(n,e){let t=Object.create(null);for(let r in n){let i=e&&e[r];if(i===void 0){let s=n[r];if(s.hasDefault)i=s.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=i}return t}c(Md,"computeAttrs");function Td(n,e,t,r){for(let i in e)if(!(i in n))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${i}`);for(let i in n){let s=n[i];s.validate&&s.validate(e[i])}}c(Td,"checkAttrs");function Ed(n,e){let t=Object.create(null);if(e)for(let r in e)t[r]=new po(n,r,e[r]);return t}c(Ed,"initAttrs");var Qt;let Ba=(Qt=class{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Ed(e,r.attrs),this.defaultAttrs=Cd(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==sn.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Md(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new wt(this,this.computeAttrs(e),C.from(t),F.setFrom(r))}createChecked(e=null,t,r){return t=C.from(t),this.checkContent(t),new wt(this,this.computeAttrs(e),t,F.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=C.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let i=this.contentMatch.matchFragment(t),s=i&&i.fillBefore(C.empty,!0);return s?new wt(this,e,t.append(s),F.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Td(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:F.none:e}static compile(e,t){let r=Object.create(null);e.forEach((s,o)=>r[s]=new Qt(s,t,o));let i=t.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}},c(Qt,"NodeType"),Qt);function Sh(n,e,t){let r=t.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${s}`)}}c(Sh,"validateType");const ia=class ia{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Sh(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}};c(ia,"Attribute");let po=ia;const us=class us{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=Ed(e,i.attrs),this.excluded=null;let s=Cd(this.attrs);this.instance=s?new F(this,s):null}create(e=null){return!e&&this.instance?this.instance:new F(this,Md(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new us(s,i++,t,o)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){Td(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}};c(us,"MarkType");let ai=us;const sa=class sa{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let i in e)t[i]=e[i];t.nodes=ne.from(e.nodes),t.marks=ne.from(e.marks||{}),this.nodes=Ba.compile(this.spec.nodes,this),this.marks=ai.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=sn.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?za(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:za(this,o.split(" "))}this.nodeFromJSON=i=>wt.fromJSON(this,i),this.markFromJSON=i=>F.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Ba){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,i)}text(e,t){let r=this.nodes.text;return new fo(r,r.defaultAttrs,e,F.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}};c(sa,"Schema");let ci=sa;function za(n,e){let t=[];for(let r=0;r<e.length;r++){let i=e[r],s=n.marks[i],o=s;if(s)t.push(s);else for(let l in n.marks){let a=n.marks[l];(i=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(i)>-1)&&t.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}c(za,"gatherMarks");function vh(n){return n.tag!=null}c(vh,"isTagRule");function Ch(n){return n.style!=null}c(Ch,"isStyleRule");const gr=class gr{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(i=>{if(vh(i))this.tags.push(i);else if(Ch(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,t={}){let r=new di(this,t,!1);return r.addAll(e,F.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new di(this,t,!0);return r.addAll(e,F.none,t.from,t.to),E.maxOpen(r.finish())}matchTag(e,t,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let s=this.tags[i];if(Eh(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||t.matchesContext(s.context))){if(s.getAttrs){let o=s.getAttrs(e);if(o===!1)continue;s.attrs=o||void 0}return s}}}matchStyle(e,t,r,i){for(let s=i?this.styles.indexOf(i)+1:0;s<this.styles.length;s++){let o=this.styles[s],l=o.style;if(!(l.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(o.getAttrs){let a=o.getAttrs(t);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let t=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o<t.length;o++){let l=t[o];if((l.priority==null?50:l.priority)<s)break}t.splice(o,0,i)}c(r,"insert");for(let i in e.marks){let s=e.marks[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Fa(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=Fa(o)),o.node||o.ignore||o.mark||(o.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new gr(e,gr.schemaRules(e)))}};c(gr,"DOMParser");let Jt=gr;const Od={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Mh={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Ad={ol:!0,ul:!0},Sr=1,mo=2,ir=4;function $a(n,e,t){return e!=null?(e?Sr:0)|(e==="full"?mo:0):n&&n.whitespace=="pre"?Sr|mo:t&~ir}c($a,"wsOptionsFor");const oa=class oa{constructor(e,t,r,i,s,o){this.type=e,this.attrs=t,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=F.none,this.match=s||(o&ir?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(C.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Sr)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let t=C.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(C.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Od.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}};c(oa,"NodeContext");let bn=oa;const la=class la{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=t.topNode,s,o=$a(null,t.preserveWhitespace,0)|(r?ir:0);i?s=new bn(i.type,i.attrs,F.none,!0,t.topMatch||i.type.contentMatch,o):r?s=new bn(null,null,F.none,!0,null,o):s=new bn(e.schema.topNodeType,null,F.none,!0,null,o),this.nodes=[s],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,i=this.top,s=i.options&mo?"full":this.localPreserveWS||(i.options&Sr)>0,{schema:o}=this.parser;if(s==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(s)if(s==="full")r=r.replace(/\r\n?/g,`
3
3
  `);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a<l.length;a++)a&&this.insertNode(o.linebreakReplacement.create(),t,!0),l[a]&&this.insertNode(o.text(l[a]),t,!/\S/.test(l[a]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=i.content[i.content.length-1],a=e.previousSibling;(!l||a&&a.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let i=this.localPreserveWS,s=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),l;Ad.hasOwnProperty(o)&&this.parser.normalizeLists&&Th(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(a?a.ignore:Mh.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let d,u=this.needsBlock;if(Od.hasOwnProperty(o))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),d=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let f=a&&a.skip?t:this.readStyles(e,t);f&&this.addAll(e,f),d&&this.sync(s),this.needsBlock=u}else{let d=this.readStyles(e,t);d&&this.addElementByRule(e,a,d,a.consuming===!1?l:void 0)}this.localPreserveWS=i}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
4
4
  `),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let s=this.parser.matchedStyles[i],o=r.getPropertyValue(s);if(o)for(let l=void 0;;){let a=this.parser.matchStyle(s,o,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?t=t.filter(d=>!a.clearMark(d)):t=t.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return t}addElementByRule(e,t,r,i){let s,o;if(t.node)if(o=this.parser.schema.nodes[t.node],o.isLeaf)this.insertNode(o.create(t.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(o,t.attrs||null,r,t.preserveWhitespace);a&&(s=!0,r=a)}else{let a=this.parser.schema.marks[t.mark];r=r.concat(a.create(t.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}s&&this.sync(l)&&this.open--}addAll(e,t,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,l=i==null?null:e.childNodes[i];o!=l;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,t);this.findAtPoint(e,s)}findPlace(e,t,r){let i,s;for(let o=this.open,l=0;o>=0;o--){let a=this.nodes[o],d=a.findWrapping(e);if(d&&(!i||i.length>d.length+l)&&(i=d,s=a,!d.length))break;if(a.solid){if(r)break;l+=2}}if(!i)return null;this.sync(s);for(let o=0;o<i.length;o++)t=this.enterInner(i[o],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let s=this.textblockFromContext();s&&(t=this.enterInner(s,null,t))}let i=this.findPlace(e,t,r);if(i){this.closeExtra();let s=this.top;s.match&&(s.match=s.match.matchType(e.type));let o=F.none;for(let l of i.concat(e.marks))(s.type?s.type.allowsMarkType(l.type):Va(l.type,e.type))&&(o=l.addToSet(o));return s.content.push(e.mark(o)),!0}return!1}enter(e,t,r,i){let s=this.findPlace(e.create(t),r,!1);return s&&(s=this.enterInner(e,t,r,!0,i)),s}enterInner(e,t,r,i=!1,s){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let l=$a(e,s,o.options);o.options&ir&&o.content.length==0&&(l|=ir);let a=F.none;return r=r.filter(d=>(o.type?o.type.allowsMarkType(d.type):Va(d.type,e))?(a=d.addToSet(a),!1):!0),this.nodes.push(new bn(e,t,a,i,null,l)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=Sr)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&t.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=c((l,a)=>{for(;l>=0;l--){let d=t[l];if(d==""){if(l==t.length-1||l==0)continue;for(;a>=s;a--)if(o(l-1,a))return!0;return!1}else{let u=a>0||a==0&&i?this.nodes[a].type:r&&a>=s?r.node(a-s).type:null;if(!u||u.name!=d&&!u.isInGroup(d))return!1;a--}}return!0},"match");return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}};c(la,"ParseContext");let di=la;function Th(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Ad.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}c(Th,"normalizeList");function Eh(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}c(Eh,"matches");function Fa(n){let e={};for(let t in n)e[t]=n[t];return e}c(Fa,"copy");function Va(n,e){let t=e.schema.nodes;for(let r in t){let i=t[r];if(!i.allowsMarkType(n))continue;let s=[],o=c(l=>{s.push(l);for(let a=0;a<l.edgeCount;a++){let{type:d,next:u}=l.edge(a);if(d==e||s.indexOf(u)<0&&o(u))return!0}},"scan");if(o(i.contentMatch))return!0}}c(Va,"markMayApply");const fs=class fs{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=zs(t).createDocumentFragment());let i=r,s=[];return e.forEach(o=>{if(s.length||o.marks.length){let l=0,a=0;for(;l<s.length&&a<o.marks.length;){let d=o.marks[a];if(!this.marks[d.type.name]){a++;continue}if(!d.eq(s[l][0])||d.type.spec.spanning===!1)break;l++,a++}for(;l<s.length;)i=s.pop()[1];for(;a<o.marks.length;){let d=o.marks[a++],u=this.serializeMark(d,o.isInline,t);u&&(s.push([d,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(o,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:i}=Zr(zs(t),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,i)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let i=e.marks.length-1;i>=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,t);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,t,r={}){let i=this.marks[e.type.name];return i&&Zr(zs(r),i(e,t),null,e.attrs)}static renderSpec(e,t,r=null,i){return Zr(e,t,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new fs(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Ha(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return Ha(e.marks)}};c(fs,"DOMSerializer");let on=fs;function Ha(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}c(Ha,"gatherToDOM");function zs(n){return n.document||window.document}c(zs,"doc$1");const ja=new WeakMap;function Oh(n){let e=ja.get(n);return e===void 0&&ja.set(n,e=Ah(n)),e}c(Oh,"suspiciousAttributes");function Ah(n){let e=null;function t(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)t(r[i]);else for(let i in r)t(r[i])}return c(t,"scan"),t(n),e}c(Ah,"suspiciousAttributesInner");function Zr(n,e,t,r){if(typeof e=="string")return{dom:n.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let i=e[0],s;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(s=Oh(r))&&s.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(t=i.slice(0,o),i=i.slice(o+1));let l,a=t?n.createElementNS(t,i):n.createElement(i),d=e[1],u=1;if(d&&typeof d=="object"&&d.nodeType==null&&!Array.isArray(d)){u=2;for(let f in d)if(d[f]!=null){let h=f.indexOf(" ");h>0?a.setAttributeNS(f.slice(0,h),f.slice(h+1),d[f]):f=="style"&&a.style?a.style.cssText=d[f]:a.setAttribute(f,d[f])}}for(let f=u;f<e.length;f++){let h=e[f];if(h===0){if(f<e.length-1||f>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:p,contentDOM:m}=Zr(n,h,t,r);if(a.appendChild(p),m){if(l)throw new RangeError("Multiple content holes");l=m}}}return{dom:a,contentDOM:l}}c(Zr,"renderSpec");const Nd=65535,Id=Math.pow(2,16);function Nh(n,e){return n+e*Id}c(Nh,"makeRecover");function Ua(n){return n&Nd}c(Ua,"recoverIndex");function Ih(n){return(n-(n&Nd))/Id}c(Ih,"recoverOffset");const Rd=1,Dd=2,ei=4,Pd=8,aa=class aa{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&Pd)>0}get deletedBefore(){return(this.delInfo&(Rd|ei))>0}get deletedAfter(){return(this.delInfo&(Dd|ei))>0}get deletedAcross(){return(this.delInfo&ei)>0}};c(aa,"MapResult");let vr=aa;const mt=class mt{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&mt.empty)return mt.empty}recover(e){let t=0,r=Ua(e);if(!this.inverted)for(let i=0;i<r;i++)t+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+t+Ih(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let i=0,s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?i:0);if(a>e)break;let d=this.ranges[l+s],u=this.ranges[l+o],f=a+d;if(e<=f){let h=d?e==a?-1:e==f?1:t:t,p=a+i+(h<0?0:u);if(r)return p;let m=e==(t<0?a:f)?null:Nh(l/3,e-a),g=e==a?Dd:e==f?Rd:ei;return(t<0?e!=a:e!=f)&&(g|=Pd),new vr(p,g,m)}i+=u-d}return r?e+i:new vr(e+i,0,null)}touches(e,t){let r=0,i=Ua(t),s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let d=this.ranges[l+s],u=a+d;if(e<=u&&l==i*3)return!0;r+=this.ranges[l+o]-d}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i<this.ranges.length;i+=3){let o=this.ranges[i],l=o-(this.inverted?s:0),a=o+(this.inverted?0:s),d=this.ranges[i+t],u=this.ranges[i+r];e(l,l+d,a,a+u),s+=u-d}}invert(){return new mt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?mt.empty:new mt(e<0?[0,-e,0]:[0,0,e])}};c(mt,"StepMap");let st=mt;st.empty=new st([]);const yr=class yr{constructor(e,t,r=0,i=e?e.length:0){this.mirror=t,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new yr(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let i=e.getMirror(t);this.appendMap(e._maps[t],i!=null&&i<t?r+i:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let i=e.getMirror(t);this.appendMap(e._maps[t].invert(),i!=null&&i>t?r-i-1:void 0)}}invert(){let e=new yr;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let i=0;for(let s=this.from;s<this.to;s++){let o=this._maps[s],l=o.mapResult(e,t);if(l.recover!=null){let a=this.getMirror(s);if(a!=null&&a>s&&a<this.to){s=a,e=this._maps[a].recover(l.recover);continue}}i|=l.delInfo,e=l.pos}return r?e:new vr(e,i,null)}};c(yr,"Mapping");let ui=yr;const $s=Object.create(null),ca=class ca{getMap(){return st.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=$s[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in $s)throw new RangeError("Duplicate use of step JSON ID "+e);return $s[e]=t,t.prototype.jsonID=e,t}};c(ca,"Step");let ee=ca;const Dt=class Dt{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new Dt(e,null)}static fail(e){return new Dt(null,e)}static fromReplace(e,t,r,i){try{return Dt.ok(e.replace(t,r,i))}catch(s){if(s instanceof zn)return Dt.fail(s.message);throw s}}};c(Dt,"StepResult");let se=Dt;function sl(n,e,t){let r=[];for(let i=0;i<n.childCount;i++){let s=n.child(i);s.content.size&&(s=s.copy(sl(s.content,e,s))),s.isInline&&(s=e(s,t,i)),r.push(s)}return C.fromArray(r)}c(sl,"mapFragment");const Pt=class Pt extends ee{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new E(sl(t.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),t.openStart,t.openEnd);return se.fromReplace(e,this.from,this.to,s)}invert(){return new Mt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Pt(t.pos,r.pos,this.mark)}merge(e){return e instanceof Pt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Pt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Pt(t.from,t.to,e.markFromJSON(t.mark))}};c(Pt,"AddMarkStep");let Cr=Pt;ee.jsonID("addMark",Cr);const Lt=class Lt extends ee{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new E(sl(t.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),t.openStart,t.openEnd);return se.fromReplace(e,this.from,this.to,r)}invert(){return new Cr(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Lt(t.pos,r.pos,this.mark)}merge(e){return e instanceof Lt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Lt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Lt(t.from,t.to,e.markFromJSON(t.mark))}};c(Lt,"RemoveMarkStep");let Mt=Lt;ee.jsonID("removeMark",Mt);const Bt=class Bt extends ee{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return se.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return se.fromReplace(e,this.pos,this.pos+1,new E(C.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let i=0;i<t.marks.length;i++)if(!t.marks[i].isInSet(r))return new Bt(this.pos,t.marks[i]);return new Bt(this.pos,this.mark)}}return new Fn(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Bt(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Bt(t.pos,e.markFromJSON(t.mark))}};c(Bt,"AddNodeMarkStep");let Mr=Bt;ee.jsonID("addNodeMark",Mr);const br=class br extends ee{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return se.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return se.fromReplace(e,this.pos,this.pos+1,new E(C.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Mr(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new br(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new br(t.pos,e.markFromJSON(t.mark))}};c(br,"RemoveNodeMarkStep");let Fn=br;ee.jsonID("removeNodeMark",Fn);const Ze=class Ze extends ee{constructor(e,t,r,i=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=i}apply(e){return this.structure&&go(e,this.from,this.to)?se.fail("Structure replace would overwrite content"):se.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new st([this.from,this.to-this.from,this.slice.size])}invert(e){return new Ze(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new Ze(t.pos,Math.max(t.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Ze)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?E.empty:new E(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Ze(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?E.empty:new E(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Ze(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Ze(t.from,t.to,E.fromJSON(e,t.slice),!!t.structure)}};c(Ze,"ReplaceStep");let we=Ze;ee.jsonID("replace",we);const kn=class kn extends ee{constructor(e,t,r,i,s,o,l=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=i,this.slice=s,this.insert=o,this.structure=l}apply(e){if(this.structure&&(go(e,this.from,this.gapFrom)||go(e,this.gapTo,this.to)))return se.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return se.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?se.fromReplace(e,this.from,this.to,r):se.fail("Content does not fit in gap")}getMap(){return new st([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new kn(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),s=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||i<t.pos||s>r.pos?null:new kn(t.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new kn(t.from,t.to,t.gapFrom,t.gapTo,E.fromJSON(e,t.slice),t.insert,!!t.structure)}};c(kn,"ReplaceAroundStep");let ce=kn;ee.jsonID("replaceAround",ce);function go(n,e,t){let r=n.resolve(e),i=t-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}c(go,"contentBetween");function Rh(n,e,t,r){let i=[],s=[],o,l;n.doc.nodesBetween(e,t,(a,d,u)=>{if(!a.isInline)return;let f=a.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){let h=Math.max(d,e),p=Math.min(d+a.nodeSize,t),m=r.addToSet(f);for(let g=0;g<f.length;g++)f[g].isInSet(m)||(o&&o.to==h&&o.mark.eq(f[g])?o.to=p:i.push(o=new Mt(h,p,f[g])));l&&l.to==h?l.to=p:s.push(l=new Cr(h,p,r))}}),i.forEach(a=>n.step(a)),s.forEach(a=>n.step(a))}c(Rh,"addMark");function Dh(n,e,t,r){let i=[],s=0;n.doc.nodesBetween(e,t,(o,l)=>{if(!o.isInline)return;s++;let a=null;if(r instanceof ai){let d=o.marks,u;for(;u=r.isInSet(d);)(a||(a=[])).push(u),d=u.removeFromSet(d)}else r?r.isInSet(o.marks)&&(a=[r]):a=o.marks;if(a&&a.length){let d=Math.min(l+o.nodeSize,t);for(let u=0;u<a.length;u++){let f=a[u],h;for(let p=0;p<i.length;p++){let m=i[p];m.step==s-1&&f.eq(i[p].style)&&(h=m)}h?(h.to=d,h.step=s):i.push({style:f,from:Math.max(l,e),to:d,step:s})}}}),i.forEach(o=>n.step(new Mt(o.from,o.to,o.style)))}c(Dh,"removeMark");function ol(n,e,t,r=t.contentMatch,i=!0){let s=n.doc.nodeAt(e),o=[],l=e+1;for(let a=0;a<s.childCount;a++){let d=s.child(a),u=l+d.nodeSize,f=r.matchType(d.type);if(!f)o.push(new we(l,u,E.empty));else{r=f;for(let h=0;h<d.marks.length;h++)t.allowsMarkType(d.marks[h].type)||n.step(new Mt(l,u,d.marks[h]));if(i&&d.isText&&t.whitespace!="pre"){let h,p=/\r?\n|\r/g,m;for(;h=p.exec(d.text);)m||(m=new E(C.from(t.schema.text(" ",t.allowedMarks(d.marks))),0,0)),o.push(new we(l+h.index,l+h.index+h[0].length,m))}}l=u}if(!r.validEnd){let a=r.fillBefore(C.empty,!0);n.replace(l,l,new E(a,0,0))}for(let a=o.length-1;a>=0;a--)n.step(o[a])}c(ol,"clearIncompatible");function Ph(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}c(Ph,"canCut");function Yn(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let i=n.$from.node(r),s=n.$from.index(r),o=n.$to.indexAfter(r);if(r<n.depth&&i.canReplace(s,o,t))return r;if(r==0||i.type.spec.isolating||!Ph(i,s,o))break}return null}c(Yn,"liftTarget");function Lh(n,e,t){let{$from:r,$to:i,depth:s}=e,o=r.before(s+1),l=i.after(s+1),a=o,d=l,u=C.empty,f=0;for(let m=s,g=!1;m>t;m--)g||r.index(m)>0?(g=!0,u=C.from(r.node(m).copy(u)),f++):a--;let h=C.empty,p=0;for(let m=s,g=!1;m>t;m--)g||i.after(m+1)<i.end(m)?(g=!0,h=C.from(i.node(m).copy(h)),p++):d++;n.step(new ce(a,d,o,l,new E(u.append(h),f,p),u.size-f,!0))}c(Lh,"lift$2");function ll(n,e,t=null,r=n){let i=Bh(n,e),s=i&&zh(r,e);return s?i.map(Wa).concat({type:e,attrs:t}).concat(s.map(Wa)):null}c(ll,"findWrapping");function Wa(n){return{type:n,attrs:null}}c(Wa,"withAttrs");function Bh(n,e){let{parent:t,startIndex:r,endIndex:i}=n,s=t.contentMatchAt(r).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return t.canReplaceWith(r,i,o)?s:null}c(Bh,"findWrappingOutside");function zh(n,e){let{parent:t,startIndex:r,endIndex:i}=n,s=t.child(r),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let a=(o.length?o[o.length-1]:e).contentMatch;for(let d=r;a&&d<i;d++)a=a.matchType(t.child(d).type);return!a||!a.validEnd?null:o}c(zh,"findWrappingInside");function $h(n,e,t){let r=C.empty;for(let o=t.length-1;o>=0;o--){if(r.size){let l=t[o].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=C.from(t[o].type.create(t[o].attrs,r))}let i=e.start,s=e.end;n.step(new ce(i,s,i,s,new E(r,0,0),t.length,!0))}c($h,"wrap");function Fh(n,e,t,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(e,t,(o,l)=>{let a=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,a)&&Vh(n.doc,n.mapping.slice(s).map(l),r)){let d=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!m?d=!1:!p&&m&&(d=!0)}d===!1&&Bd(n,o,l,s),ol(n,n.mapping.slice(s).map(l,1),r,void 0,d===null);let u=n.mapping.slice(s),f=u.map(l,1),h=u.map(l+o.nodeSize,1);return n.step(new ce(f,h,f+1,h-1,new E(C.from(r.create(a,null,o.marks)),0,0),1,!0)),d===!0&&Ld(n,o,l,s),!1}})}c(Fh,"setBlockType$1");function Ld(n,e,t,r){e.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let a=n.mapping.slice(r).map(t+1+s+o.index);n.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}c(Ld,"replaceNewlines");function Bd(n,e,t,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=n.mapping.slice(r).map(t+1+s);n.replaceWith(o,o+1,e.type.schema.text(`
@@ -1,8 +1,8 @@
1
1
  var Sh = Object.defineProperty;
2
2
  var c = (n, e) => Sh(n, "name", { value: e, configurable: !0 });
3
3
  import { defineComponent as Zn, h as Ot, ref as Tu, getCurrentInstance as vh, watchEffect as Ch, nextTick as Eu, unref as Mh, onBeforeUnmount as pl, markRaw as Th, customRef as Eh, onMounted as Ou, Teleport as Au, resolveComponent as nr, createElementBlock as js, openBlock as rr, createBlock as Wa, createCommentVNode as Us, createVNode as Se, createElementVNode as K, withCtx as Be, normalizeClass as Ye, createTextVNode as Ws, normalizeStyle as Oh, withDirectives as Ah, vModelText as Nh, resolveDynamicComponent as Ih } from "vue";
4
- import { b as Rh, c as Dh, P as ml, W as Ph, V as Lh } from "./index-BhdXUlye.js";
5
- import { F as Bh } from "./FieldComponent.vue_vue_type_script_lang-hfVg8AIM.js";
4
+ import { b as Rh, c as Dh, P as ml, W as Ph, V as Lh } from "./index-B_RpB4zN.js";
5
+ import { F as Bh } from "./FieldComponent.vue_vue_type_script_lang-BcKSz5pD.js";
6
6
  import { r as zh } from "./NoSymbolIcon-aoAIVIx7.js";
7
7
  import { _ as $h } from "./_plugin-vue_export-helper-B9nE8o7z.js";
8
8
  function ne(n) {
@@ -4309,7 +4309,7 @@ b([
4309
4309
  g("design:paramtypes", [Boolean]),
4310
4310
  g("design:returntype", void 0)
4311
4311
  ], M.prototype, "_onDisabledChanged", null);
4312
- const Pd = Jt(() => import("./Button-CgV8TKSe.js")), Bi = class Bi extends Ht {
4312
+ const Pd = Jt(() => import("./Button-CeE0XgUQ.js")), Bi = class Bi extends Ht {
4313
4313
  VST;
4314
4314
  emitsParent = ["update:modelValue"];
4315
4315
  constructor() {
@@ -4600,7 +4600,7 @@ b([
4600
4600
  g("design:paramtypes", [Boolean]),
4601
4601
  g("design:returntype", void 0)
4602
4602
  ], O.prototype, "_onDisabledChanged", null);
4603
- const _d = Jt(() => import("./Tabs-B76h25-X.js")), kd = Jt(() => import("./SelectField-BXQn9OAW.js")), Ed = Jt(() => import("./StringField-BMGdDwHw.js")), Nd = Jt(() => import("./SwitchField-C2rvdoqS.js")), jd = Jt(() => import("./TextField-SGxKqPAt.js")), Vd = Jt(() => import("./DateField-D0Ilkfym.js"));
4603
+ const _d = Jt(() => import("./Tabs-BbImaERA.js")), kd = Jt(() => import("./SelectField-CgRVO_Ik.js")), Ed = Jt(() => import("./StringField-BoYflBLa.js")), Nd = Jt(() => import("./SwitchField-C8drUeqV.js")), jd = Jt(() => import("./TextField-DFx8x_xu.js")), Vd = Jt(() => import("./DateField-Di-9cThw.js"));
4604
4604
  var Bd = Object.defineProperty, Od = Object.getOwnPropertyDescriptor, Se = /* @__PURE__ */ o((t, n, e, r) => {
4605
4605
  for (var i = r > 1 ? void 0 : r ? Od(n, e) : n, s = t.length - 1, c; s >= 0; s--)
4606
4606
  (c = t[s]) && (i = (r ? c(n, e, i) : c(i)) || i);
@@ -4650,7 +4650,7 @@ Se([
4650
4650
  Se([
4651
4651
  wn("value", !0)
4652
4652
  ], hn.prototype, "_valueWatch", 1);
4653
- const Rd = Jt(() => import("./CodeHighlight-qlVamFnM.js"));
4653
+ const Rd = Jt(() => import("./CodeHighlight-BF0IfK1T.js"));
4654
4654
  export {
4655
4655
  M as B,
4656
4656
  Id as C,