ss-component-new 1.1.673 → 1.1.674
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.
- package/dist/{index-TrSlwUca.cjs → index-3aybZnSW.cjs} +12 -12
- package/dist/{index-B30XJOs3.cjs → index-BDb7B8HU.cjs} +1 -1
- package/dist/index-BIAxDQCI.cjs +1 -0
- package/dist/{index-SmgXZMzW.cjs → index-BRr05BI6.cjs} +1 -1
- package/dist/{index-CATxnumc.js → index-BXLxZ9fm.js} +1 -1
- package/dist/{index-kWByfC4o.js → index-BZJd4Jzg.js} +2 -2
- package/dist/{index-5wx6HWci.cjs → index-Bfr4Lhl3.cjs} +1 -1
- package/dist/index-Bz4siCaT.js +4797 -0
- package/dist/{index-BherGjtS.js → index-C15ngNr7.js} +744 -741
- package/dist/{index-ffAwp6Xk.js → index-C4ri1PTc.js} +1 -1
- package/dist/{index-Xt80Eixy.cjs → index-C8MY1jA8.cjs} +1 -1
- package/dist/{index-BycPK6ER.cjs → index-CAj1a6dQ.cjs} +1 -1
- package/dist/{index-a-6BM2v7.cjs → index-CDnRx-3D.cjs} +1 -1
- package/dist/{index-MdfTs3IW.js → index-CIpkJDe6.js} +1 -1
- package/dist/{index-Dak9uSWv.js → index-CUtI4Z9I.js} +9 -9
- package/dist/{index-D9gWoJWx.cjs → index-CmLuS-YA.cjs} +1 -1
- package/dist/{index-BG7db_fp.cjs → index-CoFDZaHl.cjs} +1 -1
- package/dist/{index-BR48zxJv.cjs → index-D1DxVuMh.cjs} +1 -1
- package/dist/{index-DhQ8a3YR.js → index-D6Flz_p0.js} +2 -2
- package/dist/{index-lyq3xIUs.js → index-D9BXNy7K.js} +1 -1
- package/dist/{index-DaNlQc0P.cjs → index-DGp4v4xW.cjs} +1 -1
- package/dist/{index-lGB5epCv.js → index-DNC5buY-.js} +3 -3
- package/dist/{index-CMk6SXBq.js → index-DRF4IZFH.js} +2 -2
- package/dist/{index-qzENXAL4.js → index-DX1Of1i5.js} +1 -1
- package/dist/{index-C-N2rdZD.js → index-Dcl2wLUS.js} +1 -1
- package/dist/{index-BFR3uzRB.cjs → index-PpzwxZV2.cjs} +1 -1
- package/dist/{index-D1No61pJ.cjs → index-Q9bOV9eV.cjs} +1 -1
- package/dist/{index-Cr0na9CZ.js → index-QmneEi-8.js} +1 -1
- package/dist/{index-wWUOI4E7.js → index-VrO186YI.js} +4 -4
- package/dist/{index-BdBQpBkQ.cjs → index-dADM0fIL.cjs} +1 -1
- package/dist/{index-DM3ptK-H.cjs → index-jDSjJNAE.cjs} +1 -1
- package/dist/{index-BlocFKJ3.js → index-lKk1Mbr7.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-D8V6ioFI.js → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-CLE6As06.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-B25pwnI-.cjs → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-D3NoTxbd.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_696fe121_lang-DgLvt0m8.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BR4HSvZF.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_696fe121_lang-DkOZHnC8.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DNWTSQrO.js} +3 -3
- package/dist/{main-BUMvxHfK.js → main-CPxD7CQu.js} +2 -2
- package/dist/{main-DfD2jM0S.cjs → main-DyPHN2CB.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-BNwew2OV.cjs → threeModel-D1jxSx0r.cjs} +1 -1
- package/dist/{threeModel-CyvYIq7z.js → threeModel-DPvrAQ2h.js} +1 -1
- package/package.json +1 -1
- package/dist/index-B24RWeFD.js +0 -4785
- package/dist/index-Dkjog5hI.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as $, resolveComponent as F, createBlock as G, openBlock as C, createCommentVNode as ee, defineComponent as _t, onMounted as
|
|
1
|
+
import { ref as $, resolveComponent as F, createBlock as G, openBlock as C, createCommentVNode as ee, defineComponent as _t, onMounted as Yt, withCtx as V, createVNode as q, createElementVNode as K, createElementBlock as L, Fragment as me, renderList as ve, createTextVNode as Wt, toDisplayString as Le, watch as at, normalizeStyle as Ee, unref as x0, createSlots as Ft, resolveDynamicComponent as g2, normalizeClass as Nl, nextTick as v0, renderSlot as re, normalizeProps as Ga, guardReactiveProps as Fa, mergeProps as V2, reactive as $s, computed as ne, withDirectives as To, withModifiers as ja, vShow as Ao, watchEffect as $0, onUnmounted as Ji, h as Po, onBeforeUnmount as Ua, toRefs as qa } from "vue";
|
|
2
2
|
import { S as zo } from "./index-BHtNKL1L.js";
|
|
3
3
|
import { h as Vo, Z as Eo, R as Ya, _ as Ka, $ as Xa, a0 as Bo, a1 as Lo } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-hmR9HLh1.js";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { bB as Qa, bC as Ja, c as bt, a as Zi, p as Za, E as $l, u as eh, s as th, bG as ih, c5 as nh, aN as sh, ap as oh } from "./menu-B_PRFK5X.js";
|
|
6
6
|
import { u as rh } from "./modelComp-CUhhdEAE.js";
|
|
7
7
|
import { _ as lh } from "./index.vue_vue_type_script_setup_true_lang-DmWIQ5Tt.js";
|
|
@@ -451,7 +451,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
451
451
|
}, c = (h) => {
|
|
452
452
|
s.value = h.value, i("update:modelValue", h.value);
|
|
453
453
|
};
|
|
454
|
-
return
|
|
454
|
+
return Yt(() => {
|
|
455
455
|
r.value = Tu();
|
|
456
456
|
}), (h, u) => {
|
|
457
457
|
const d = F("el-input"), f = F("el-popover");
|
|
@@ -498,7 +498,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
498
498
|
}, 8, ["visible"]);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
}), Vu = /* @__PURE__ */
|
|
501
|
+
}), Vu = /* @__PURE__ */ ke(zu, [["__scopeId", "data-v-d9981dd9"]]), Eu = {
|
|
502
502
|
__name: "index",
|
|
503
503
|
props: {
|
|
504
504
|
value: String,
|
|
@@ -613,7 +613,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
613
613
|
loading: t == null ? void 0 : t.loading
|
|
614
614
|
}, {
|
|
615
615
|
default: V(() => [
|
|
616
|
-
|
|
616
|
+
Wt(Le(i.value), 1)
|
|
617
617
|
]),
|
|
618
618
|
_: 1
|
|
619
619
|
}, 8, ["type", "id", "loading"]);
|
|
@@ -650,7 +650,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
650
650
|
emits: ["change", "onButtonClick", "clickTrigger", "blur", "changeVisible", "blurChange", "preview"],
|
|
651
651
|
setup(n, { emit: e }) {
|
|
652
652
|
const t = n;
|
|
653
|
-
|
|
653
|
+
Yt(() => {
|
|
654
654
|
});
|
|
655
655
|
const i = e, s = $(null), o = $(null), r = $(), l = $(), a = $(0), c = (b) => Mo(b), h = (b) => {
|
|
656
656
|
i("clickTrigger", b);
|
|
@@ -712,7 +712,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
712
712
|
const _ = F("el-form-item"), x = F("el-form"), S = F("el-button");
|
|
713
713
|
return C(), L("div", {
|
|
714
714
|
class: "form-content",
|
|
715
|
-
style:
|
|
715
|
+
style: Ee({ flexDirection: n.isButtonRow ? "row" : "column" })
|
|
716
716
|
}, [
|
|
717
717
|
K("div", Ru, [
|
|
718
718
|
t.isEnableWrap ? (C(), G(x, {
|
|
@@ -730,14 +730,14 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
730
730
|
key: j,
|
|
731
731
|
class: "form-item",
|
|
732
732
|
prop: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
|
|
733
|
-
style:
|
|
734
|
-
},
|
|
733
|
+
style: Ee({ flexDirection: n.isRowFlex ? "row" : "column", alignItems: n.isRowFlex ? "center" : "start", height: n.isRowFlex ? "100%" : "auto" })
|
|
734
|
+
}, Ft({
|
|
735
735
|
default: V(() => {
|
|
736
736
|
var W, Q, J, te, ye;
|
|
737
737
|
return [
|
|
738
738
|
w != null && w.isFormColHidden ? ee("", !0) : (C(), G(g2(c((w == null ? void 0 : w.type) ?? "Input")), {
|
|
739
739
|
modelValue: l.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)],
|
|
740
|
-
"onUpdate:modelValue": (
|
|
740
|
+
"onUpdate:modelValue": (de) => l.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)] = de,
|
|
741
741
|
key: w == null ? void 0 : w.type,
|
|
742
742
|
content: (w == null ? void 0 : w.contents) ?? [],
|
|
743
743
|
isEdit: t == null ? void 0 : t.isEdit,
|
|
@@ -745,13 +745,13 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
745
745
|
onBlur: d,
|
|
746
746
|
optionUrl: w == null ? void 0 : w.optionUrl,
|
|
747
747
|
onChangeVisible: m,
|
|
748
|
-
onBlurChange: (
|
|
748
|
+
onBlurChange: (de) => f((w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)),
|
|
749
749
|
config: w == null ? void 0 : w.config
|
|
750
750
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "isEdit", "optionUrl", "onBlurChange", "config"])),
|
|
751
751
|
typeof l.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((W = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && W.includes(".stl") || (Q = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Q.includes(".obj") || (J = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && J.includes(".urdf") || (te = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && te.includes(".STL") || (ye = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ye.includes(".ls")) ? (C(), G(m2, {
|
|
752
752
|
key: 1,
|
|
753
753
|
class: "calculator-content form-preview",
|
|
754
|
-
onClickTrigger: (
|
|
754
|
+
onClickTrigger: (de) => u(l.value[(w == null ? void 0 : w.prop) ?? w.name]),
|
|
755
755
|
modelValue: "预览"
|
|
756
756
|
}, null, 8, ["onClickTrigger"])) : ee("", !0)
|
|
757
757
|
];
|
|
@@ -764,9 +764,9 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
764
764
|
w != null && w.label ? (C(), L("div", {
|
|
765
765
|
key: 0,
|
|
766
766
|
class: "from-item-label",
|
|
767
|
-
style:
|
|
767
|
+
style: Ee({ width: n.isRowFlex ? "72px" : "260px", minWidth: n.isRowFlex ? "72px" : "260px" })
|
|
768
768
|
}, [
|
|
769
|
-
K("div", Iu,
|
|
769
|
+
K("div", Iu, Le(w == null ? void 0 : w.label), 1)
|
|
770
770
|
], 4)) : ee("", !0)
|
|
771
771
|
]),
|
|
772
772
|
key: "0"
|
|
@@ -775,7 +775,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
775
775
|
((z = t.buttonValue) == null ? void 0 : z.length) > 0 && n.isButtonRow ? (C(), L("div", {
|
|
776
776
|
key: 1,
|
|
777
777
|
class: "form-button",
|
|
778
|
-
style:
|
|
778
|
+
style: Ee({ paddingTop: n.isRowFlex ? "0" : "26px", justifyContent: n.isStartJustify ? "start" : "end" })
|
|
779
779
|
}, [
|
|
780
780
|
(C(!0), L(me, null, ve(t == null ? void 0 : t.buttonValue, (w, j) => (C(), L("div", {
|
|
781
781
|
key: j,
|
|
@@ -784,9 +784,9 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
784
784
|
w ? (C(), L("div", {
|
|
785
785
|
key: 0,
|
|
786
786
|
class: "form-button-item",
|
|
787
|
-
style:
|
|
787
|
+
style: Ee({ background: (w == null ? void 0 : w.background) ?? "var(--ssComponent-primary-color)" }),
|
|
788
788
|
onClick: (W) => v(w == null ? void 0 : w.label, s.value)
|
|
789
|
-
},
|
|
789
|
+
}, Le(w == null ? void 0 : w.label), 13, Hu)) : ee("", !0)
|
|
790
790
|
]))), 128))
|
|
791
791
|
], 4)) : ee("", !0)
|
|
792
792
|
];
|
|
@@ -807,20 +807,20 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
807
807
|
key: j,
|
|
808
808
|
class: Nl(["form-item", { "form-row-content": !n.isRowFlex }]),
|
|
809
809
|
prop: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
|
|
810
|
-
style:
|
|
810
|
+
style: Ee({
|
|
811
811
|
flexDirection: n.isRowFlex ? "row" : "column",
|
|
812
812
|
alignItems: n.isRowFlex ? "center" : "start",
|
|
813
813
|
height: n.isRowFlex ? "100%" : "auto",
|
|
814
814
|
width: `calc((100% / ${(w == null ? void 0 : w.width) ?? 1}) - 12px)`,
|
|
815
815
|
minWidth: `calc((100% / ${(w == null ? void 0 : w.width) ?? 1}) - 12px)`
|
|
816
816
|
})
|
|
817
|
-
},
|
|
817
|
+
}, Ft({
|
|
818
818
|
default: V(() => {
|
|
819
819
|
var W, Q, J, te, ye;
|
|
820
820
|
return [
|
|
821
821
|
w != null && w.isFormColHidden ? ee("", !0) : (C(), G(g2(c((w == null ? void 0 : w.type) ?? "Input")), {
|
|
822
822
|
modelValue: l.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)],
|
|
823
|
-
"onUpdate:modelValue": (
|
|
823
|
+
"onUpdate:modelValue": (de) => l.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)] = de,
|
|
824
824
|
isEdit: t == null ? void 0 : t.isEdit,
|
|
825
825
|
content: (w == null ? void 0 : w.contents) ?? [],
|
|
826
826
|
onClickTrigger: h,
|
|
@@ -828,13 +828,13 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
828
828
|
key: w == null ? void 0 : w.type,
|
|
829
829
|
optionUrl: w == null ? void 0 : w.optionUrl,
|
|
830
830
|
onChangeVisible: m,
|
|
831
|
-
onBlurChange: (
|
|
831
|
+
onBlurChange: (de) => f((w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)),
|
|
832
832
|
config: w == null ? void 0 : w.config
|
|
833
833
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "content", "optionUrl", "onBlurChange", "config"])),
|
|
834
834
|
typeof l.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((W = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && W.includes(".stl") || (Q = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Q.includes(".obj") || (J = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && J.includes(".urdf") || (te = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && te.includes(".STL") || (ye = l.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && ye.includes(".ls")) ? (C(), G(m2, {
|
|
835
835
|
key: 1,
|
|
836
836
|
class: "calculator-content form-preview",
|
|
837
|
-
onClickTrigger: (
|
|
837
|
+
onClickTrigger: (de) => u(l.value[(w == null ? void 0 : w.prop) ?? w.name]),
|
|
838
838
|
modelValue: "预览"
|
|
839
839
|
}, null, 8, ["onClickTrigger"])) : ee("", !0)
|
|
840
840
|
];
|
|
@@ -847,9 +847,9 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
847
847
|
w != null && w.label ? (C(), L("div", {
|
|
848
848
|
key: 0,
|
|
849
849
|
class: "from-item-label",
|
|
850
|
-
style:
|
|
850
|
+
style: Ee({ width: n.isRowFlex ? "72px" : "auto", minWidth: n.isRowFlex ? "72px" : `calc((100% / ${(w == null ? void 0 : w.width) ?? 1}) - 8px)` })
|
|
851
851
|
}, [
|
|
852
|
-
K("div", Nu,
|
|
852
|
+
K("div", Nu, Le(w == null ? void 0 : w.label), 1)
|
|
853
853
|
], 4)) : ee("", !0)
|
|
854
854
|
]),
|
|
855
855
|
key: "0"
|
|
@@ -858,7 +858,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
858
858
|
((z = t.buttonValue) == null ? void 0 : z.length) > 0 && n.isButtonRow ? (C(), L("div", {
|
|
859
859
|
key: 1,
|
|
860
860
|
class: "form-button",
|
|
861
|
-
style:
|
|
861
|
+
style: Ee({ paddingTop: n.isRowFlex ? "0" : "26px", justifyContent: n.isStartJustify ? "start" : "end" })
|
|
862
862
|
}, [
|
|
863
863
|
(C(!0), L(me, null, ve(t == null ? void 0 : t.buttonValue, (w, j) => (C(), L("div", {
|
|
864
864
|
key: j,
|
|
@@ -867,9 +867,9 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
867
867
|
w ? (C(), L("div", {
|
|
868
868
|
key: 0,
|
|
869
869
|
class: "form-button-item",
|
|
870
|
-
style:
|
|
870
|
+
style: Ee({ background: (w == null ? void 0 : w.background) ?? "var(--ssComponent-primary-color)" }),
|
|
871
871
|
onClick: (W) => v(w == null ? void 0 : w.label, o.value)
|
|
872
|
-
},
|
|
872
|
+
}, Le(w == null ? void 0 : w.label), 13, $u)) : ee("", !0)
|
|
873
873
|
]))), 128))
|
|
874
874
|
], 4)) : ee("", !0)
|
|
875
875
|
];
|
|
@@ -880,7 +880,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
880
880
|
((k = t.buttonValue) == null ? void 0 : k.length) > 0 && !n.isButtonRow ? (C(), L("div", {
|
|
881
881
|
key: 0,
|
|
882
882
|
class: "form-button",
|
|
883
|
-
style:
|
|
883
|
+
style: Ee({ justifyContent: n.isStartJustify ? "start" : "end" })
|
|
884
884
|
}, [
|
|
885
885
|
(C(!0), L(me, null, ve(t == null ? void 0 : t.buttonValue, (T, z) => (C(), L("div", {
|
|
886
886
|
key: z,
|
|
@@ -889,10 +889,10 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
889
889
|
}, [
|
|
890
890
|
q(S, {
|
|
891
891
|
id: "themeButton",
|
|
892
|
-
style:
|
|
892
|
+
style: Ee({ background: (T == null ? void 0 : T.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" })
|
|
893
893
|
}, {
|
|
894
894
|
default: V(() => [
|
|
895
|
-
|
|
895
|
+
Wt(Le(T == null ? void 0 : T.label), 1)
|
|
896
896
|
]),
|
|
897
897
|
_: 2
|
|
898
898
|
}, 1032, ["style"])
|
|
@@ -901,7 +901,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
901
901
|
], 4);
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
|
-
}, Fu = /* @__PURE__ */
|
|
904
|
+
}, Fu = /* @__PURE__ */ ke(Gu, [["__scopeId", "data-v-8a396b21"]]), ju = {
|
|
905
905
|
__name: "index",
|
|
906
906
|
props: {
|
|
907
907
|
value: String,
|
|
@@ -973,7 +973,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
973
973
|
label: h.value
|
|
974
974
|
}, {
|
|
975
975
|
default: V(() => [
|
|
976
|
-
|
|
976
|
+
Wt(Le(h == null ? void 0 : h.label), 1)
|
|
977
977
|
]),
|
|
978
978
|
_: 2
|
|
979
979
|
}, 1032, ["label"]))), 128))
|
|
@@ -982,7 +982,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
982
982
|
}, 8, ["modelValue"]);
|
|
983
983
|
};
|
|
984
984
|
}
|
|
985
|
-
}, qu = /* @__PURE__ */
|
|
985
|
+
}, qu = /* @__PURE__ */ ke(Uu, [["__scopeId", "data-v-b4cff553"]]), Yu = {
|
|
986
986
|
__name: "index",
|
|
987
987
|
props: {
|
|
988
988
|
value: String,
|
|
@@ -1022,10 +1022,10 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
1022
1022
|
key: h.label,
|
|
1023
1023
|
label: h.label,
|
|
1024
1024
|
value: h.label,
|
|
1025
|
-
style:
|
|
1025
|
+
style: Ee({ width: n.isWrap ? "100%" : "auto", marginRight: n.isWrap ? 0 : "auto" })
|
|
1026
1026
|
}, {
|
|
1027
1027
|
default: V(() => [
|
|
1028
|
-
K("span", null,
|
|
1028
|
+
K("span", null, Le(h.label), 1),
|
|
1029
1029
|
re(r.$slots, "append")
|
|
1030
1030
|
]),
|
|
1031
1031
|
_: 2
|
|
@@ -1050,7 +1050,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
1050
1050
|
},
|
|
1051
1051
|
setup(n) {
|
|
1052
1052
|
const e = n;
|
|
1053
|
-
return
|
|
1053
|
+
return Yt(() => {
|
|
1054
1054
|
document.querySelectorAll(".el-tab-pane").forEach((i) => {
|
|
1055
1055
|
i.style.display = "block";
|
|
1056
1056
|
});
|
|
@@ -1058,7 +1058,7 @@ const Au = { class: "icon-popover" }, Pu = ["onClick"], zu = /* @__PURE__ */ _t(
|
|
|
1058
1058
|
var s;
|
|
1059
1059
|
return C(), G($a, {
|
|
1060
1060
|
tabsContents: ((s = e == null ? void 0 : e.content) == null ? void 0 : s.tabsContents) ?? []
|
|
1061
|
-
},
|
|
1061
|
+
}, Ft({ _: 2 }, [
|
|
1062
1062
|
ve(t.$slots, (o, r) => ({
|
|
1063
1063
|
name: r,
|
|
1064
1064
|
fn: V((l) => [
|
|
@@ -1078,7 +1078,7 @@ function Qu(n, e) {
|
|
|
1078
1078
|
_: 3
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
|
-
const Ju = /* @__PURE__ */
|
|
1081
|
+
const Ju = /* @__PURE__ */ ke(Xu, [["render", Qu]]), Zu = { class: "extra-button-content" }, e8 = {
|
|
1082
1082
|
__name: "header",
|
|
1083
1083
|
props: {
|
|
1084
1084
|
buttons: {
|
|
@@ -1104,7 +1104,7 @@ const Ju = /* @__PURE__ */ _e(Xu, [["render", Qu]]), Zu = { class: "extra-button
|
|
|
1104
1104
|
name: (l == null ? void 0 : l.prop) ?? ""
|
|
1105
1105
|
}));
|
|
1106
1106
|
};
|
|
1107
|
-
return
|
|
1107
|
+
return Yt(() => {
|
|
1108
1108
|
s(t.columns);
|
|
1109
1109
|
}), at(
|
|
1110
1110
|
() => t.columns,
|
|
@@ -1116,7 +1116,7 @@ const Ju = /* @__PURE__ */ _e(Xu, [["render", Qu]]), Zu = { class: "extra-button
|
|
|
1116
1116
|
re(o.$slots, "headerButton", {}, void 0, !0)
|
|
1117
1117
|
]));
|
|
1118
1118
|
}
|
|
1119
|
-
}, t8 = /* @__PURE__ */
|
|
1119
|
+
}, t8 = /* @__PURE__ */ ke(e8, [["__scopeId", "data-v-9727dc88"]]), i8 = { key: 0 }, n8 = /* @__PURE__ */ _t({
|
|
1120
1120
|
__name: "recurseCol",
|
|
1121
1121
|
props: {
|
|
1122
1122
|
column: {
|
|
@@ -1141,7 +1141,7 @@ const Ju = /* @__PURE__ */ _e(Xu, [["render", Qu]]), Zu = { class: "extra-button
|
|
|
1141
1141
|
"class-name": (((m = n.column) == null ? void 0 : m.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
|
|
1142
1142
|
}, {
|
|
1143
1143
|
header: V(() => [
|
|
1144
|
-
n.column.label !== "操作" ? (C(), L("span", i8,
|
|
1144
|
+
n.column.label !== "操作" ? (C(), L("span", i8, Le(n.column.label), 1)) : (C(), G(s, {
|
|
1145
1145
|
key: 1,
|
|
1146
1146
|
content: "操作",
|
|
1147
1147
|
placement: "left-start",
|
|
@@ -1165,7 +1165,7 @@ const Ju = /* @__PURE__ */ _e(Xu, [["render", Qu]]), Zu = { class: "extra-button
|
|
|
1165
1165
|
(C(!0), L(me, null, ve(n.column.children, (b, y) => (C(), G(o, {
|
|
1166
1166
|
key: y,
|
|
1167
1167
|
column: b
|
|
1168
|
-
},
|
|
1168
|
+
}, Ft({ _: 2 }, [
|
|
1169
1169
|
ve(e.$slots, (_, x) => ({
|
|
1170
1170
|
name: x,
|
|
1171
1171
|
fn: V((S) => [
|
|
@@ -1210,7 +1210,7 @@ const Ju = /* @__PURE__ */ _e(Xu, [["render", Qu]]), Zu = { class: "extra-button
|
|
|
1210
1210
|
n.column.label !== "操作" ? (C(), L("span", {
|
|
1211
1211
|
key: 0,
|
|
1212
1212
|
title: n.column.label
|
|
1213
|
-
},
|
|
1213
|
+
}, Le(n.column.label), 9, s8)) : re(e.$slots, "operateHeader", { key: 1 })
|
|
1214
1214
|
]),
|
|
1215
1215
|
default: V((p) => [
|
|
1216
1216
|
re(e.$slots, "content", {
|
|
@@ -1222,7 +1222,7 @@ const Ju = /* @__PURE__ */ _e(Xu, [["render", Qu]]), Zu = { class: "extra-button
|
|
|
1222
1222
|
(C(!0), L(me, null, ve(n.column.children, (g, m) => (C(), G(n8, {
|
|
1223
1223
|
key: m,
|
|
1224
1224
|
column: g
|
|
1225
|
-
},
|
|
1225
|
+
}, Ft({ _: 2 }, [
|
|
1226
1226
|
ve(e.$slots, (v, b) => ({
|
|
1227
1227
|
name: b,
|
|
1228
1228
|
fn: V(({ row: y, slotData: _, item: x }) => [
|
|
@@ -1319,7 +1319,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1319
1319
|
const t = n;
|
|
1320
1320
|
rh(Za);
|
|
1321
1321
|
const i = $(!1), s = $(), o = $s({ x: 0, y: 0 }), r = $([]), l = $([]), a = $(0), c = $(null), h = $(null), u = e;
|
|
1322
|
-
|
|
1322
|
+
Yt(() => {
|
|
1323
1323
|
var M;
|
|
1324
1324
|
r.value = t == null ? void 0 : t.columns, l.value = (M = t == null ? void 0 : t.tableData) == null ? void 0 : M.map((H) => {
|
|
1325
1325
|
var ie;
|
|
@@ -1327,7 +1327,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1327
1327
|
for (let Y in H)
|
|
1328
1328
|
E[Y] = Ro(H[Y]) && H[Y] === 0 ? (ie = H[Y]) == null ? void 0 : ie.toString() : H[Y];
|
|
1329
1329
|
return E;
|
|
1330
|
-
}), t.isMoveColumn && te(),
|
|
1330
|
+
}), t.isMoveColumn && te(), de(), document.addEventListener("click", () => {
|
|
1331
1331
|
i.value = !1;
|
|
1332
1332
|
});
|
|
1333
1333
|
});
|
|
@@ -1352,12 +1352,12 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1352
1352
|
}, b = (M) => {
|
|
1353
1353
|
u("selectChange", M);
|
|
1354
1354
|
}, y = (M, H, E, ie) => ne(() => {
|
|
1355
|
-
var
|
|
1356
|
-
let Y = M != null && M[H == null ? void 0 : H.prop] ? ((
|
|
1357
|
-
return Array.isArray(Y) && !(Y != null && Y.every((
|
|
1355
|
+
var Ce, A, be, pe, N, ae, Oe, Se, _e, fe;
|
|
1356
|
+
let Y = M != null && M[H == null ? void 0 : H.prop] ? ((A = (Ce = M == null ? void 0 : M[H == null ? void 0 : H.prop]) == null ? void 0 : Ce[0]) == null ? void 0 : A.contents) ?? (M == null ? void 0 : M[H == null ? void 0 : H.prop]) : ((pe = (be = M == null ? void 0 : M[E == null ? void 0 : E.prop]) == null ? void 0 : be[0]) == null ? void 0 : pe.contents) ?? (M == null ? void 0 : M[E == null ? void 0 : E.prop]) ?? ((ae = (N = ie == null ? void 0 : ie[E == null ? void 0 : E.prop]) == null ? void 0 : N[0]) == null ? void 0 : ae.contents) ?? (ie == null ? void 0 : ie[E == null ? void 0 : E.prop]) ?? ((_e = (Se = M == null ? void 0 : M[(Oe = E == null ? void 0 : E.child) == null ? void 0 : Oe.prop]) == null ? void 0 : Se[0]) == null ? void 0 : _e.contents) ?? (M == null ? void 0 : M[(fe = E == null ? void 0 : E.child) == null ? void 0 : fe.prop]);
|
|
1357
|
+
return Array.isArray(Y) && !(Y != null && Y.every((Ct) => typeof Ct == "string" || typeof Ct == "number")) ? "查看" : Y;
|
|
1358
1358
|
}), _ = (M, H, E, ie) => {
|
|
1359
|
-
var Y,
|
|
1360
|
-
s.value = void 0, ((Y = E.innerText) != null && Y.includes(".urdf") || (
|
|
1359
|
+
var Y, Ce, A, be;
|
|
1360
|
+
s.value = void 0, ((Y = E.innerText) != null && Y.includes(".urdf") || (Ce = E.innerText) != null && Ce.includes(".stl") || (A = E.innerText) != null && A.includes(".obj") || (be = E.innerText) != null && be.includes(".STL")) && (o.x = ie.clientX, o.y = ie.clientY, i.value = !0, s.value = E.innerText);
|
|
1361
1361
|
}, x = () => {
|
|
1362
1362
|
s.value && u("preview", {
|
|
1363
1363
|
row: s.value,
|
|
@@ -1408,9 +1408,9 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1408
1408
|
onMove: (E) => !E.related.classList.contains("is-not-drag"),
|
|
1409
1409
|
onEnd: (E) => {
|
|
1410
1410
|
a.value++;
|
|
1411
|
-
const ie = E.oldIndex, Y = E.newIndex,
|
|
1412
|
-
r.value.splice(Y, 0,
|
|
1413
|
-
te(),
|
|
1411
|
+
const ie = E.oldIndex, Y = E.newIndex, Ce = r.value.splice(ie, 1)[0];
|
|
1412
|
+
r.value.splice(Y, 0, Ce), t.isMoveColumn && v0(() => {
|
|
1413
|
+
te(), de();
|
|
1414
1414
|
});
|
|
1415
1415
|
}
|
|
1416
1416
|
});
|
|
@@ -1419,11 +1419,11 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1419
1419
|
() => t.isMoveColumn,
|
|
1420
1420
|
() => {
|
|
1421
1421
|
t.isMoveColumn && v0(() => {
|
|
1422
|
-
te(),
|
|
1422
|
+
te(), de();
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
1425
|
);
|
|
1426
|
-
const ye = ({ column: M }) => M.label && M.label.length > 8 ? "long-header" : "",
|
|
1426
|
+
const ye = ({ column: M }) => M.label && M.label.length > 8 ? "long-header" : "", de = () => {
|
|
1427
1427
|
var H;
|
|
1428
1428
|
const M = (H = c.value) == null ? void 0 : H.$el.querySelector(".el-table__body-wrapper tbody");
|
|
1429
1429
|
M && new Eo(M, {
|
|
@@ -1431,32 +1431,32 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1431
1431
|
handle: ".custom-drag-icon",
|
|
1432
1432
|
ghostClass: "sortable-ghost",
|
|
1433
1433
|
onEnd: ({ newIndex: E, oldIndex: ie }) => {
|
|
1434
|
-
const Y = [...l.value], [
|
|
1435
|
-
Y.splice(E, 0,
|
|
1436
|
-
|
|
1434
|
+
const Y = [...l.value], [Ce] = Y.splice(ie, 1);
|
|
1435
|
+
Y.splice(E, 0, Ce), l.value = Y, v0(() => {
|
|
1436
|
+
de();
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
|
1439
1439
|
});
|
|
1440
1440
|
}, ht = (M) => new Promise((H) => {
|
|
1441
1441
|
const E = new FileReader();
|
|
1442
1442
|
E.onloadend = () => H(E.result), E.readAsDataURL(M);
|
|
1443
|
-
}),
|
|
1444
|
-
let E = M.split(","), ie = E[0].match(/:(.*?);/)[1], Y = ie.split("/")[1],
|
|
1445
|
-
for (;
|
|
1446
|
-
be[
|
|
1443
|
+
}), Pe = (M, H = "file") => {
|
|
1444
|
+
let E = M.split(","), ie = E[0].match(/:(.*?);/)[1], Y = ie.split("/")[1], Ce = atob(E[1]), A = Ce.length, be = new Uint8Array(A);
|
|
1445
|
+
for (; A--; )
|
|
1446
|
+
be[A] = Ce.charCodeAt(A);
|
|
1447
1447
|
return new File([be], `${H}.${Y}`, {
|
|
1448
1448
|
type: ie
|
|
1449
1449
|
});
|
|
1450
1450
|
}, Ke = async (M) => {
|
|
1451
1451
|
const H = await ht(M);
|
|
1452
|
-
let E =
|
|
1452
|
+
let E = Pe(H), ie = new FormData();
|
|
1453
1453
|
ie.append("file", E);
|
|
1454
1454
|
let Y;
|
|
1455
|
-
return await Wl(ie).then((
|
|
1456
|
-
var
|
|
1455
|
+
return await Wl(ie).then((Ce) => {
|
|
1456
|
+
var A, be, pe, N, ae, Oe, Se;
|
|
1457
1457
|
Y = {
|
|
1458
|
-
url: (
|
|
1459
|
-
name: (Se = (pe = (be =
|
|
1458
|
+
url: (A = Ce.data.result) == null ? void 0 : A.url,
|
|
1459
|
+
name: (Se = (pe = (be = Ce.data.result) == null ? void 0 : be.url) == null ? void 0 : pe.split("/")) == null ? void 0 : Se[((Oe = (ae = (N = Ce.data.result) == null ? void 0 : N.url) == null ? void 0 : ae.split("/")) == null ? void 0 : Oe.length) - 1]
|
|
1460
1460
|
};
|
|
1461
1461
|
}), Y;
|
|
1462
1462
|
}, wt = async (M) => {
|
|
@@ -1468,9 +1468,9 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1468
1468
|
if (ie.includes("<table")) {
|
|
1469
1469
|
const Y = Xe(ie);
|
|
1470
1470
|
if (!Y.length) return;
|
|
1471
|
-
const { rowIndex:
|
|
1471
|
+
const { rowIndex: Ce, columnIndex: A } = h.value || { rowIndex: 0, columnIndex: 0 }, be = [];
|
|
1472
1472
|
if (Y == null || Y.forEach((pe) => {
|
|
1473
|
-
be.push(pe.length +
|
|
1473
|
+
be.push(pe.length + A);
|
|
1474
1474
|
}), (be == null ? void 0 : be.filter((pe) => {
|
|
1475
1475
|
var N;
|
|
1476
1476
|
return pe > Object.keys((N = l.value) == null ? void 0 : N[0]).length;
|
|
@@ -1482,62 +1482,62 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1482
1482
|
return;
|
|
1483
1483
|
}
|
|
1484
1484
|
for (let pe = 0; pe < Y.length; pe++) {
|
|
1485
|
-
const N = Y[pe], ae = l.value[
|
|
1486
|
-
for (let Se = 0; Se < N.length &&
|
|
1487
|
-
const
|
|
1488
|
-
(ae == null ? void 0 : ae[
|
|
1485
|
+
const N = Y[pe], ae = l.value[Ce + pe], Oe = bt(r.value).map((Se) => Se.prop);
|
|
1486
|
+
for (let Se = 0; Se < N.length && A + Se < Oe.length; Se++) {
|
|
1487
|
+
const _e = Oe[A + Se];
|
|
1488
|
+
(ae == null ? void 0 : ae[_e]) !== void 0 && (ae[_e] = N[Se] || "");
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
1491
|
} else {
|
|
1492
1492
|
const Y = E.getData("text/html");
|
|
1493
1493
|
if (Y === void 0) return;
|
|
1494
|
-
const
|
|
1494
|
+
const A = new DOMParser().parseFromString(Y, "text/html"), be = A.querySelectorAll("table");
|
|
1495
1495
|
if ((be == null ? void 0 : be.length) > 0) {
|
|
1496
1496
|
const N = be[0].querySelectorAll("tr"), ae = [];
|
|
1497
|
-
for (const
|
|
1498
|
-
const Se =
|
|
1499
|
-
for (const
|
|
1500
|
-
const
|
|
1501
|
-
if (
|
|
1502
|
-
for (const Wa of
|
|
1497
|
+
for (const Oe of N) {
|
|
1498
|
+
const Se = Oe.querySelectorAll("td, th"), _e = [];
|
|
1499
|
+
for (const fe of Se) {
|
|
1500
|
+
const Ct = fe.querySelectorAll("img");
|
|
1501
|
+
if (Ct.length > 0)
|
|
1502
|
+
for (const Wa of Ct) {
|
|
1503
1503
|
const M0 = Wa.getAttribute("src");
|
|
1504
1504
|
if (M0 && M0.startsWith("file:///")) {
|
|
1505
1505
|
const Do = M0.match(/base64,(.*)/);
|
|
1506
|
-
Do &&
|
|
1506
|
+
Do && _e.push({
|
|
1507
1507
|
type: "image",
|
|
1508
1508
|
content: `data:image/png;base64,${Do[1]}`
|
|
1509
1509
|
});
|
|
1510
|
-
} else M0 && M0.startsWith("data:") &&
|
|
1510
|
+
} else M0 && M0.startsWith("data:") && _e.push({
|
|
1511
1511
|
type: "image",
|
|
1512
1512
|
content: M0
|
|
1513
1513
|
});
|
|
1514
1514
|
}
|
|
1515
1515
|
else
|
|
1516
|
-
|
|
1516
|
+
_e.push({
|
|
1517
1517
|
type: "text",
|
|
1518
|
-
content:
|
|
1518
|
+
content: fe.textContent.trim()
|
|
1519
1519
|
});
|
|
1520
1520
|
}
|
|
1521
|
-
ae.push(
|
|
1521
|
+
ae.push(_e);
|
|
1522
1522
|
}
|
|
1523
1523
|
} else {
|
|
1524
|
-
const pe =
|
|
1524
|
+
const pe = A.querySelectorAll("span");
|
|
1525
1525
|
let N = "";
|
|
1526
1526
|
if (pe.length === 0) {
|
|
1527
|
-
const
|
|
1527
|
+
const _e = (H = M.clipboardData) == null ? void 0 : H.items;
|
|
1528
1528
|
N = [];
|
|
1529
|
-
for (const
|
|
1530
|
-
if ((
|
|
1531
|
-
const
|
|
1532
|
-
N.push(
|
|
1529
|
+
for (const fe of _e)
|
|
1530
|
+
if ((fe == null ? void 0 : fe.type) === "image/png") {
|
|
1531
|
+
const Ct = await Ke(fe == null ? void 0 : fe.getAsFile());
|
|
1532
|
+
N.push(Ct);
|
|
1533
1533
|
} else
|
|
1534
1534
|
N = M.clipboardData.getData("text/plain");
|
|
1535
1535
|
} else
|
|
1536
|
-
for (const
|
|
1537
|
-
N = N +
|
|
1538
|
-
const { rowIndex: ae, columnProp:
|
|
1536
|
+
for (const _e of pe)
|
|
1537
|
+
N = N + _e.textContent.trim();
|
|
1538
|
+
const { rowIndex: ae, columnProp: Oe } = h.value || { rowIndex: 0, columnIndex: 0 };
|
|
1539
1539
|
let Se = bt(l.value);
|
|
1540
|
-
Se = Se == null ? void 0 : Se.map((
|
|
1540
|
+
Se = Se == null ? void 0 : Se.map((_e, fe) => (fe === ae && (_e[Oe] = Array.isArray(N) ? [.../* @__PURE__ */ new Set([...N, ..._e[Oe]])] : _e[Oe] + N), _e)), l.value = Se;
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
1543
|
} catch (E) {
|
|
@@ -1550,11 +1550,11 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1550
1550
|
columnIndex: M == null ? void 0 : M.cellIndex,
|
|
1551
1551
|
columnProp: (H = M.column) == null ? void 0 : H.property
|
|
1552
1552
|
});
|
|
1553
|
-
},
|
|
1553
|
+
}, Ht = ({ row: M, rowIndex: H }) => H % 2 === 0 ? "default-row" : "special-row", Xt = (M, H, E) => {
|
|
1554
1554
|
u("change", M, H, E);
|
|
1555
1555
|
};
|
|
1556
1556
|
return (M, H) => {
|
|
1557
|
-
const E = F("el-table-column"), ie = F("svg-icon"), Y = F("el-table"),
|
|
1557
|
+
const E = F("el-table-column"), ie = F("svg-icon"), Y = F("el-table"), Ce = F("el-pagination");
|
|
1558
1558
|
return C(), L("div", l8, [
|
|
1559
1559
|
q(t8, {
|
|
1560
1560
|
buttons: d.value,
|
|
@@ -1585,7 +1585,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1585
1585
|
onRowDblclick: w,
|
|
1586
1586
|
key: a.value,
|
|
1587
1587
|
onPaste: wt,
|
|
1588
|
-
"row-class-name":
|
|
1588
|
+
"row-class-name": Ht,
|
|
1589
1589
|
"header-cell-class-name": ye,
|
|
1590
1590
|
onCellMouseEnter: g,
|
|
1591
1591
|
onCellMouseLeave: m,
|
|
@@ -1601,14 +1601,14 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1601
1601
|
"min-width": "10",
|
|
1602
1602
|
"show-overflow-tooltip": !1
|
|
1603
1603
|
}, {
|
|
1604
|
-
default: V(({ row:
|
|
1604
|
+
default: V(({ row: A, column: be, $index: pe }) => [
|
|
1605
1605
|
To(K("span", a8, [
|
|
1606
1606
|
q(ie, {
|
|
1607
1607
|
name: "drag",
|
|
1608
1608
|
style: { width: "15px", height: "15px", cursor: "move" }
|
|
1609
1609
|
})
|
|
1610
1610
|
], 512), [
|
|
1611
|
-
[Ao, (
|
|
1611
|
+
[Ao, (A == null ? void 0 : A.id) === p.value]
|
|
1612
1612
|
])
|
|
1613
1613
|
]),
|
|
1614
1614
|
_: 1
|
|
@@ -1617,75 +1617,78 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1617
1617
|
type: "index",
|
|
1618
1618
|
"min-width": "40",
|
|
1619
1619
|
label: "序号"
|
|
1620
|
-
},
|
|
1620
|
+
}, Ft({ _: 2 }, [
|
|
1621
1621
|
n.viewport === "edit" ? {
|
|
1622
1622
|
name: "default",
|
|
1623
|
-
fn: V(({ row:
|
|
1623
|
+
fn: V(({ row: A, column: be, $index: pe }) => {
|
|
1624
1624
|
var N;
|
|
1625
1625
|
return [
|
|
1626
1626
|
pe === ((N = l.value) == null ? void 0 : N.length) - 1 ? re(M.$slots, "rowCreate", {
|
|
1627
1627
|
key: 0,
|
|
1628
|
-
row:
|
|
1628
|
+
row: A
|
|
1629
1629
|
}, void 0, !0) : ee("", !0)
|
|
1630
1630
|
];
|
|
1631
1631
|
}),
|
|
1632
1632
|
key: "0"
|
|
1633
1633
|
} : void 0
|
|
1634
1634
|
]), 1024),
|
|
1635
|
-
(C(!0), L(me, null, ve(r.value, (
|
|
1635
|
+
(C(!0), L(me, null, ve(r.value, (A, be) => {
|
|
1636
1636
|
var pe;
|
|
1637
1637
|
return C(), L(me, null, [
|
|
1638
|
-
(pe = n.checkedColumns) != null && pe.includes(
|
|
1638
|
+
(pe = n.checkedColumns) != null && pe.includes(A == null ? void 0 : A.label) ? (C(), G(o8, {
|
|
1639
1639
|
key: 0,
|
|
1640
|
-
column:
|
|
1640
|
+
column: A
|
|
1641
1641
|
}, {
|
|
1642
1642
|
operateHeader: V(() => [
|
|
1643
1643
|
re(M.$slots, "operateCol", {}, void 0, !0)
|
|
1644
1644
|
]),
|
|
1645
|
-
content: V(({ row: N, item: ae, slotData:
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
style: Ve({ cursor: N != null && N.children ? "pointer" : "default" }),
|
|
1650
|
-
onClick: (he) => {
|
|
1651
|
-
var Ie;
|
|
1652
|
-
return J(N != null && N[P == null ? void 0 : P.prop] ? N == null ? void 0 : N[P == null ? void 0 : P.prop] : (N == null ? void 0 : N[ae == null ? void 0 : ae.prop]) ?? (Ce == null ? void 0 : Ce[ae == null ? void 0 : ae.prop]) ?? (N == null ? void 0 : N[(Ie = ae == null ? void 0 : ae.child) == null ? void 0 : Ie.prop]), ae == null ? void 0 : ae.prop, N ?? Ce, {
|
|
1653
|
-
data: y(N, P, ae, Ce).value
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
|
-
}, Be(y(N, P, ae, Ce)), 13, h8)) : ee("", !0),
|
|
1657
|
-
((P == null ? void 0 : P.type) ?? "text") === "operate" ? (C(), L("span", {
|
|
1658
|
-
key: 1,
|
|
1659
|
-
class: "table-operate",
|
|
1660
|
-
style: Ve({
|
|
1661
|
-
justifyContent: n.isShowEdit && n.isShowDelete ? "space-between" : P == null ? void 0 : P.align
|
|
1662
|
-
})
|
|
1663
|
-
}, [
|
|
1664
|
-
re(M.$slots, "actions", { item: N }, void 0, !0),
|
|
1665
|
-
n.isShowEdit ? (C(), L("span", {
|
|
1645
|
+
content: V(({ row: N, item: ae, slotData: Oe, scope: Se }) => {
|
|
1646
|
+
var _e;
|
|
1647
|
+
return [
|
|
1648
|
+
((A == null ? void 0 : A.type) ?? "text") === "text" && ((N == null ? void 0 : N.tableEditType) ?? "text") === "text" ? (C(), L("span", {
|
|
1666
1649
|
key: 0,
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1650
|
+
class: "table-content",
|
|
1651
|
+
style: Ee({ cursor: N != null && N.children ? "pointer" : "default" }),
|
|
1652
|
+
onClick: (fe) => {
|
|
1653
|
+
var Ct;
|
|
1654
|
+
return J(N != null && N[A == null ? void 0 : A.prop] ? N == null ? void 0 : N[A == null ? void 0 : A.prop] : (N == null ? void 0 : N[ae == null ? void 0 : ae.prop]) ?? (Oe == null ? void 0 : Oe[ae == null ? void 0 : ae.prop]) ?? (N == null ? void 0 : N[(Ct = ae == null ? void 0 : ae.child) == null ? void 0 : Ct.prop]), ae == null ? void 0 : ae.prop, N ?? Oe, {
|
|
1655
|
+
data: y(N, A, ae, Oe).value
|
|
1656
|
+
});
|
|
1657
|
+
}
|
|
1658
|
+
}, Le(y(N, A, ae, Oe)), 13, h8)) : ee("", !0),
|
|
1659
|
+
((A == null ? void 0 : A.type) ?? "text") === "operate" ? (C(), L("span", {
|
|
1671
1660
|
key: 1,
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1661
|
+
class: "table-operate",
|
|
1662
|
+
style: Ee({
|
|
1663
|
+
justifyContent: n.isShowEdit && n.isShowDelete ? "space-between" : A == null ? void 0 : A.align
|
|
1664
|
+
})
|
|
1665
|
+
}, [
|
|
1666
|
+
re(M.$slots, "actions", { item: N }, void 0, !0),
|
|
1667
|
+
n.isShowEdit ? (C(), L("span", {
|
|
1668
|
+
key: 0,
|
|
1669
|
+
onClick: (fe) => W(N),
|
|
1670
|
+
class: "blue-table-operate table-operate-content"
|
|
1671
|
+
}, "编辑", 8, c8)) : ee("", !0),
|
|
1672
|
+
n.isShowDelete ? (C(), L("span", {
|
|
1673
|
+
key: 1,
|
|
1674
|
+
onClick: (fe) => Q(N),
|
|
1675
|
+
class: "red-table-operate table-operate-content"
|
|
1676
|
+
}, "删除", 8, u8)) : ee("", !0)
|
|
1677
|
+
], 4)) : ee("", !0),
|
|
1678
|
+
((A == null ? void 0 : A.type) ?? "text") === "edit" && ((N == null ? void 0 : N.tableEditType) ?? "text") !== "edit" || ((A == null ? void 0 : A.type) ?? "text") === "text" && ((N == null ? void 0 : N.tableEditType) ?? "text") === "edit" ? (C(), L("span", d8, [
|
|
1679
|
+
(C(), G(g2(T(N != null && N[A == null ? void 0 : A.prop] && Array.isArray(N[A.prop]) && ((_e = N[A.prop]) != null && _e.every((fe) => typeof fe == "Object")) ? "Upload" : (A == null ? void 0 : A.columnType) === "" || !(A != null && A.columnType) ? "Input" : A == null ? void 0 : A.columnType)), {
|
|
1680
|
+
modelValue: N[A.prop],
|
|
1681
|
+
"onUpdate:modelValue": (fe) => N[A.prop] = fe,
|
|
1682
|
+
style: { height: "100%" },
|
|
1683
|
+
content: (A == null ? void 0 : A.contents) ?? [],
|
|
1684
|
+
optionUrl: A == null ? void 0 : A.optionUrl,
|
|
1685
|
+
onFocus: (fe) => ct(Se),
|
|
1686
|
+
onBlur: (fe) => v(fe, N, A),
|
|
1687
|
+
onChange: (fe) => Xt(fe, N, A)
|
|
1688
|
+
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "optionUrl", "onFocus", "onBlur", "onChange"]))
|
|
1689
|
+
])) : ee("", !0)
|
|
1690
|
+
];
|
|
1691
|
+
}),
|
|
1689
1692
|
_: 2
|
|
1690
1693
|
}, 1032, ["column"])) : ee("", !0)
|
|
1691
1694
|
], 64);
|
|
@@ -1698,7 +1701,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1698
1701
|
buttons: f.value,
|
|
1699
1702
|
columns: r.value
|
|
1700
1703
|
}, void 0, !0),
|
|
1701
|
-
(t == null ? void 0 : t.isShowPagination) ?? !1 ? (C(), G(
|
|
1704
|
+
(t == null ? void 0 : t.isShowPagination) ?? !1 ? (C(), G(Ce, {
|
|
1702
1705
|
key: 0,
|
|
1703
1706
|
onSizeChange: j,
|
|
1704
1707
|
onCurrentChange: z,
|
|
@@ -1710,7 +1713,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1710
1713
|
}, null, 8, ["current-page", "page-size", "total"])) : ee("", !0)
|
|
1711
1714
|
]),
|
|
1712
1715
|
To(q(Ju, {
|
|
1713
|
-
style:
|
|
1716
|
+
style: Ee({ top: o.y + "px", left: o.x + "px", position: "fixed", zIndex: 999 })
|
|
1714
1717
|
}, {
|
|
1715
1718
|
content: V(() => [
|
|
1716
1719
|
K("div", p8, [
|
|
@@ -1735,7 +1738,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1735
1738
|
]);
|
|
1736
1739
|
};
|
|
1737
1740
|
}
|
|
1738
|
-
}, m8 = /* @__PURE__ */
|
|
1741
|
+
}, m8 = /* @__PURE__ */ ke(g8, [["__scopeId", "data-v-74f51fe7"]]), v8 = {
|
|
1739
1742
|
__name: "index",
|
|
1740
1743
|
props: {
|
|
1741
1744
|
value: String,
|
|
@@ -1844,7 +1847,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1844
1847
|
emits: ["blurChange", "click"],
|
|
1845
1848
|
setup(n, { emit: e }) {
|
|
1846
1849
|
const t = n, i = e, s = $(t.value), o = $();
|
|
1847
|
-
|
|
1850
|
+
Yt(() => {
|
|
1848
1851
|
o.value = t == null ? void 0 : t.content;
|
|
1849
1852
|
});
|
|
1850
1853
|
const r = () => {
|
|
@@ -1978,7 +1981,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1978
1981
|
}, o = (r) => {
|
|
1979
1982
|
t("closeMenu", r);
|
|
1980
1983
|
};
|
|
1981
|
-
return
|
|
1984
|
+
return Yt(() => {
|
|
1982
1985
|
}), (r, l) => {
|
|
1983
1986
|
const a = F("MenuItem", !0), c = F("el-sub-menu"), h = F("el-menu-item");
|
|
1984
1987
|
return C(!0), L(me, null, ve(n.menuList, (u) => (C(), L(me, null, [
|
|
@@ -1995,7 +1998,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
1995
1998
|
onClickMenu: i,
|
|
1996
1999
|
onOpenMenu: s,
|
|
1997
2000
|
onCloseMenu: o
|
|
1998
|
-
},
|
|
2001
|
+
}, Ft({ _: 2 }, [
|
|
1999
2002
|
ve(r.$slots, (d, f) => ({
|
|
2000
2003
|
name: f,
|
|
2001
2004
|
fn: V((p) => [
|
|
@@ -2059,7 +2062,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
2059
2062
|
b.show && b.children && b.children.length > 0 ? (C(), G(g, {
|
|
2060
2063
|
index: b.path,
|
|
2061
2064
|
key: b.path,
|
|
2062
|
-
style:
|
|
2065
|
+
style: Ee(b.style)
|
|
2063
2066
|
}, {
|
|
2064
2067
|
title: V(() => [
|
|
2065
2068
|
re(f.$slots, "title", { menu: b }, void 0, !0)
|
|
@@ -2068,7 +2071,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
2068
2071
|
q(y8, {
|
|
2069
2072
|
menuList: b.children,
|
|
2070
2073
|
onClickMenu: a
|
|
2071
|
-
},
|
|
2074
|
+
}, Ft({ _: 2 }, [
|
|
2072
2075
|
ve(f.$slots, (y, _) => ({
|
|
2073
2076
|
name: _,
|
|
2074
2077
|
fn: V((x) => [
|
|
@@ -2081,7 +2084,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
2081
2084
|
}, 1032, ["index", "style"])) : b.show ? (C(), G(m, {
|
|
2082
2085
|
index: b.path,
|
|
2083
2086
|
key: b.path,
|
|
2084
|
-
style:
|
|
2087
|
+
style: Ee(b.style),
|
|
2085
2088
|
onClick: (y) => a(b)
|
|
2086
2089
|
}, {
|
|
2087
2090
|
title: V(() => [
|
|
@@ -2095,7 +2098,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
2095
2098
|
}, 8, ["mode", "default-active", "default-openeds"]);
|
|
2096
2099
|
};
|
|
2097
2100
|
}
|
|
2098
|
-
}), Gl = /* @__PURE__ */
|
|
2101
|
+
}), Gl = /* @__PURE__ */ ke(S8, [["__scopeId", "data-v-6a992c79"]]), Av = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2099
2102
|
__proto__: null,
|
|
2100
2103
|
default: Gl
|
|
2101
2104
|
}, Symbol.toStringTag, { value: "Module" })), _8 = {
|
|
@@ -2179,7 +2182,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
2179
2182
|
}, null, 8, ["modelValue", "disabled"]);
|
|
2180
2183
|
};
|
|
2181
2184
|
}
|
|
2182
|
-
}, O8 = /* @__PURE__ */
|
|
2185
|
+
}, O8 = /* @__PURE__ */ ke(C8, [["__scopeId", "data-v-0e84be38"]]), M8 = { class: "dialog-title" }, D8 = {
|
|
2183
2186
|
__name: "index",
|
|
2184
2187
|
props: {
|
|
2185
2188
|
title: {
|
|
@@ -2226,7 +2229,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
2226
2229
|
width: t == null ? void 0 : t.dialogWidth,
|
|
2227
2230
|
"before-close": o,
|
|
2228
2231
|
draggable: "",
|
|
2229
|
-
style:
|
|
2232
|
+
style: Ee({ height: t == null ? void 0 : t.dialogHeight }),
|
|
2230
2233
|
fullscreen: t == null ? void 0 : t.fullScreen,
|
|
2231
2234
|
"destroy-on-close": !0,
|
|
2232
2235
|
"show-close": t == null ? void 0 : t.showClose
|
|
@@ -2235,7 +2238,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
2235
2238
|
re(r.$slots, "default", {}, void 0, !0)
|
|
2236
2239
|
]),
|
|
2237
2240
|
header: V(() => [
|
|
2238
|
-
K("div", M8,
|
|
2241
|
+
K("div", M8, Le(t == null ? void 0 : t.title), 1),
|
|
2239
2242
|
re(r.$slots, "header", {}, void 0, !0)
|
|
2240
2243
|
]),
|
|
2241
2244
|
footer: V(() => [
|
|
@@ -2245,7 +2248,7 @@ const l8 = { class: "table-content-show" }, a8 = {
|
|
|
2245
2248
|
}, 8, ["modelValue", "width", "style", "fullscreen", "show-close"]);
|
|
2246
2249
|
};
|
|
2247
2250
|
}
|
|
2248
|
-
}, Si = /* @__PURE__ */
|
|
2251
|
+
}, Si = /* @__PURE__ */ ke(D8, [["__scopeId", "data-v-048a6610"]]);
|
|
2249
2252
|
function T8(n) {
|
|
2250
2253
|
const e = sessionStorage.getItem("loginToken") ?? "123456";
|
|
2251
2254
|
return Zi({
|
|
@@ -2273,10 +2276,10 @@ const A8 = { class: "txt-renderer" }, P8 = { class: "txt-wrapper" }, z8 = {
|
|
|
2273
2276
|
i.value = l.target.result;
|
|
2274
2277
|
}, r.readAsText(o);
|
|
2275
2278
|
}), (s, o) => (C(), L("div", A8, [
|
|
2276
|
-
K("pre", P8,
|
|
2279
|
+
K("pre", P8, Le(i.value), 1)
|
|
2277
2280
|
]));
|
|
2278
2281
|
}
|
|
2279
|
-
}, V8 = /* @__PURE__ */
|
|
2282
|
+
}, V8 = /* @__PURE__ */ ke(z8, [["__scopeId", "data-v-fde812b6"]]), E8 = { class: "docx-renderer" }, B8 = {
|
|
2280
2283
|
__name: "index",
|
|
2281
2284
|
props: {
|
|
2282
2285
|
fileName: String,
|
|
@@ -2296,7 +2299,7 @@ const A8 = { class: "txt-renderer" }, P8 = { class: "txt-wrapper" }, z8 = {
|
|
|
2296
2299
|
}, null, 512)
|
|
2297
2300
|
]));
|
|
2298
2301
|
}
|
|
2299
|
-
}, L8 = /* @__PURE__ */
|
|
2302
|
+
}, L8 = /* @__PURE__ */ ke(B8, [["__scopeId", "data-v-78135a17"]]), R8 = { class: "xlsx-renderer" }, I8 = {
|
|
2300
2303
|
__name: "index",
|
|
2301
2304
|
props: {
|
|
2302
2305
|
fileName: String,
|
|
@@ -2316,7 +2319,7 @@ const A8 = { class: "txt-renderer" }, P8 = { class: "txt-wrapper" }, z8 = {
|
|
|
2316
2319
|
K("div", { id: "excel" }, null, -1)
|
|
2317
2320
|
])));
|
|
2318
2321
|
}
|
|
2319
|
-
}, H8 = /* @__PURE__ */
|
|
2322
|
+
}, H8 = /* @__PURE__ */ ke(I8, [["__scopeId", "data-v-08dbfb73"]]), N8 = { class: "pdf-renderer" }, $8 = ["src"], W8 = {
|
|
2320
2323
|
__name: "index",
|
|
2321
2324
|
props: {
|
|
2322
2325
|
fileName: String,
|
|
@@ -2337,7 +2340,7 @@ const A8 = { class: "txt-renderer" }, P8 = { class: "txt-wrapper" }, z8 = {
|
|
|
2337
2340
|
}, null, 8, $8)
|
|
2338
2341
|
]));
|
|
2339
2342
|
}
|
|
2340
|
-
}, G8 = /* @__PURE__ */
|
|
2343
|
+
}, G8 = /* @__PURE__ */ ke(W8, [["__scopeId", "data-v-b4ab8c04"]]);
|
|
2341
2344
|
let Fn = [], Fl = [];
|
|
2342
2345
|
(() => {
|
|
2343
2346
|
let n = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
|
|
@@ -2444,7 +2447,7 @@ class le {
|
|
|
2444
2447
|
s,
|
|
2445
2448
|
1
|
|
2446
2449
|
/* Open.From */
|
|
2447
|
-
),
|
|
2450
|
+
), At.from(s, this.length - (t - e) + i.length);
|
|
2448
2451
|
}
|
|
2449
2452
|
/**
|
|
2450
2453
|
Append another document to this one.
|
|
@@ -2458,7 +2461,7 @@ class le {
|
|
|
2458
2461
|
slice(e, t = this.length) {
|
|
2459
2462
|
[e, t] = W0(this, e, t);
|
|
2460
2463
|
let i = [];
|
|
2461
|
-
return this.decompose(e, t, i, 0),
|
|
2464
|
+
return this.decompose(e, t, i, 0), At.from(i, t - e);
|
|
2462
2465
|
}
|
|
2463
2466
|
/**
|
|
2464
2467
|
Test whether this text is equal to another instance.
|
|
@@ -2535,10 +2538,10 @@ class le {
|
|
|
2535
2538
|
static of(e) {
|
|
2536
2539
|
if (e.length == 0)
|
|
2537
2540
|
throw new RangeError("A document must have at least one line");
|
|
2538
|
-
return e.length == 1 && !e[0] ? le.empty : e.length <= 32 ? new
|
|
2541
|
+
return e.length == 1 && !e[0] ? le.empty : e.length <= 32 ? new Me(e) : At.from(Me.split(e, []));
|
|
2539
2542
|
}
|
|
2540
2543
|
}
|
|
2541
|
-
class
|
|
2544
|
+
class Me extends le {
|
|
2542
2545
|
constructor(e, t = q8(e)) {
|
|
2543
2546
|
super(), this.text = e, this.length = t;
|
|
2544
2547
|
}
|
|
@@ -2557,24 +2560,24 @@ class Oe extends le {
|
|
|
2557
2560
|
}
|
|
2558
2561
|
}
|
|
2559
2562
|
decompose(e, t, i, s) {
|
|
2560
|
-
let o = e <= 0 && t >= this.length ? this : new
|
|
2563
|
+
let o = e <= 0 && t >= this.length ? this : new Me(Wo(this.text, e, t), Math.min(t, this.length) - Math.max(0, e));
|
|
2561
2564
|
if (s & 1) {
|
|
2562
2565
|
let r = i.pop(), l = ci(o.text, r.text.slice(), 0, o.length);
|
|
2563
2566
|
if (l.length <= 32)
|
|
2564
|
-
i.push(new
|
|
2567
|
+
i.push(new Me(l, r.length + o.length));
|
|
2565
2568
|
else {
|
|
2566
2569
|
let a = l.length >> 1;
|
|
2567
|
-
i.push(new
|
|
2570
|
+
i.push(new Me(l.slice(0, a)), new Me(l.slice(a)));
|
|
2568
2571
|
}
|
|
2569
2572
|
} else
|
|
2570
2573
|
i.push(o);
|
|
2571
2574
|
}
|
|
2572
2575
|
replace(e, t, i) {
|
|
2573
|
-
if (!(i instanceof
|
|
2576
|
+
if (!(i instanceof Me))
|
|
2574
2577
|
return super.replace(e, t, i);
|
|
2575
2578
|
[e, t] = W0(this, e, t);
|
|
2576
2579
|
let s = ci(this.text, ci(i.text, Wo(this.text, 0, e)), t), o = this.length + i.length - (t - e);
|
|
2577
|
-
return s.length <= 32 ? new
|
|
2580
|
+
return s.length <= 32 ? new Me(s, o) : At.from(Me.split(s, []), o);
|
|
2578
2581
|
}
|
|
2579
2582
|
sliceString(e, t = this.length, i = `
|
|
2580
2583
|
`) {
|
|
@@ -2596,11 +2599,11 @@ class Oe extends le {
|
|
|
2596
2599
|
static split(e, t) {
|
|
2597
2600
|
let i = [], s = -1;
|
|
2598
2601
|
for (let o of e)
|
|
2599
|
-
i.push(o), s += o.length + 1, i.length == 32 && (t.push(new
|
|
2600
|
-
return s > -1 && t.push(new
|
|
2602
|
+
i.push(o), s += o.length + 1, i.length == 32 && (t.push(new Me(i, s)), i = [], s = -1);
|
|
2603
|
+
return s > -1 && t.push(new Me(i, s)), t;
|
|
2601
2604
|
}
|
|
2602
2605
|
}
|
|
2603
|
-
class
|
|
2606
|
+
class At extends le {
|
|
2604
2607
|
constructor(e, t) {
|
|
2605
2608
|
super(), this.children = e, this.length = t, this.lines = 0;
|
|
2606
2609
|
for (let i of e)
|
|
@@ -2632,7 +2635,7 @@ class Tt extends le {
|
|
|
2632
2635
|
let a = r.replace(e - o, t - o, i), c = this.lines - r.lines + a.lines;
|
|
2633
2636
|
if (a.lines < c >> 4 && a.lines > c >> 6) {
|
|
2634
2637
|
let h = this.children.slice();
|
|
2635
|
-
return h[s] = a, new
|
|
2638
|
+
return h[s] = a, new At(h, this.length - (t - e) + i.length);
|
|
2636
2639
|
}
|
|
2637
2640
|
return super.replace(o, l, a);
|
|
2638
2641
|
}
|
|
@@ -2655,7 +2658,7 @@ class Tt extends le {
|
|
|
2655
2658
|
t.flatten(e);
|
|
2656
2659
|
}
|
|
2657
2660
|
scanIdentical(e, t) {
|
|
2658
|
-
if (!(e instanceof
|
|
2661
|
+
if (!(e instanceof At))
|
|
2659
2662
|
return 0;
|
|
2660
2663
|
let i = 0, [s, o, r, l] = t > 0 ? [0, 0, this.children.length, e.children.length] : [this.children.length - 1, e.children.length - 1, -1, -1];
|
|
2661
2664
|
for (; ; s += t, o += t) {
|
|
@@ -2675,7 +2678,7 @@ class Tt extends le {
|
|
|
2675
2678
|
let f = [];
|
|
2676
2679
|
for (let p of e)
|
|
2677
2680
|
p.flatten(f);
|
|
2678
|
-
return new
|
|
2681
|
+
return new Me(f, t);
|
|
2679
2682
|
}
|
|
2680
2683
|
let s = Math.max(
|
|
2681
2684
|
32,
|
|
@@ -2684,20 +2687,20 @@ class Tt extends le {
|
|
|
2684
2687
|
), o = s << 1, r = s >> 1, l = [], a = 0, c = -1, h = [];
|
|
2685
2688
|
function u(f) {
|
|
2686
2689
|
let p;
|
|
2687
|
-
if (f.lines > o && f instanceof
|
|
2690
|
+
if (f.lines > o && f instanceof At)
|
|
2688
2691
|
for (let g of f.children)
|
|
2689
2692
|
u(g);
|
|
2690
|
-
else f.lines > r && (a > r || !a) ? (d(), l.push(f)) : f instanceof
|
|
2693
|
+
else f.lines > r && (a > r || !a) ? (d(), l.push(f)) : f instanceof Me && a && (p = h[h.length - 1]) instanceof Me && f.lines + p.lines <= 32 ? (a += f.lines, c += f.length + 1, h[h.length - 1] = new Me(p.text.concat(f.text), p.length + 1 + f.length)) : (a + f.lines > s && d(), a += f.lines, c += f.length + 1, h.push(f));
|
|
2691
2694
|
}
|
|
2692
2695
|
function d() {
|
|
2693
|
-
a != 0 && (l.push(h.length == 1 ? h[0] :
|
|
2696
|
+
a != 0 && (l.push(h.length == 1 ? h[0] : At.from(h, c)), c = -1, a = h.length = 0);
|
|
2694
2697
|
}
|
|
2695
2698
|
for (let f of e)
|
|
2696
2699
|
u(f);
|
|
2697
|
-
return d(), l.length == 1 ? l[0] : new
|
|
2700
|
+
return d(), l.length == 1 ? l[0] : new At(l, t);
|
|
2698
2701
|
}
|
|
2699
2702
|
}
|
|
2700
|
-
le.empty = /* @__PURE__ */ new
|
|
2703
|
+
le.empty = /* @__PURE__ */ new Me([""], 0);
|
|
2701
2704
|
function q8(n) {
|
|
2702
2705
|
let e = -1;
|
|
2703
2706
|
for (let t of n)
|
|
@@ -2716,11 +2719,11 @@ function Wo(n, e, t) {
|
|
|
2716
2719
|
}
|
|
2717
2720
|
class a2 {
|
|
2718
2721
|
constructor(e, t = 1) {
|
|
2719
|
-
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof
|
|
2722
|
+
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof Me ? e.text.length : e.children.length) << 1];
|
|
2720
2723
|
}
|
|
2721
2724
|
nextInner(e, t) {
|
|
2722
2725
|
for (this.done = this.lineBreak = !1; ; ) {
|
|
2723
|
-
let i = this.nodes.length - 1, s = this.nodes[i], o = this.offsets[i], r = o >> 1, l = s instanceof
|
|
2726
|
+
let i = this.nodes.length - 1, s = this.nodes[i], o = this.offsets[i], r = o >> 1, l = s instanceof Me ? s.text.length : s.children.length;
|
|
2724
2727
|
if (r == (t > 0 ? l : 0)) {
|
|
2725
2728
|
if (i == 0)
|
|
2726
2729
|
return this.done = !0, this.value = "", this;
|
|
@@ -2730,14 +2733,14 @@ class a2 {
|
|
|
2730
2733
|
return this.lineBreak = !0, this.value = `
|
|
2731
2734
|
`, this;
|
|
2732
2735
|
e--;
|
|
2733
|
-
} else if (s instanceof
|
|
2736
|
+
} else if (s instanceof Me) {
|
|
2734
2737
|
let a = s.text[r + (t < 0 ? -1 : 0)];
|
|
2735
2738
|
if (this.offsets[i] += t, a.length > Math.max(0, e))
|
|
2736
2739
|
return this.value = e == 0 ? a : t > 0 ? a.slice(e) : a.slice(0, a.length - e), this;
|
|
2737
2740
|
e -= a.length;
|
|
2738
2741
|
} else {
|
|
2739
2742
|
let a = s.children[r + (t < 0 ? -1 : 0)];
|
|
2740
|
-
e > a.length ? (e -= a.length, this.offsets[i] += t) : (t < 0 && this.offsets[i]--, this.nodes.push(a), this.offsets.push(t > 0 ? 1 : (a instanceof
|
|
2743
|
+
e > a.length ? (e -= a.length, this.offsets[i] += t) : (t < 0 && this.offsets[i]--, this.nodes.push(a), this.offsets.push(t > 0 ? 1 : (a instanceof Me ? a.text.length : a.children.length) << 1));
|
|
2741
2744
|
}
|
|
2742
2745
|
}
|
|
2743
2746
|
}
|
|
@@ -2818,14 +2821,14 @@ function Je(n, e) {
|
|
|
2818
2821
|
function Ws(n) {
|
|
2819
2822
|
return n <= 65535 ? String.fromCharCode(n) : (n -= 65536, String.fromCharCode((n >> 10) + 55296, (n & 1023) + 56320));
|
|
2820
2823
|
}
|
|
2821
|
-
function
|
|
2824
|
+
function Pt(n) {
|
|
2822
2825
|
return n < 65536 ? 1 : 2;
|
|
2823
2826
|
}
|
|
2824
2827
|
const jn = /\r\n?|\n/;
|
|
2825
2828
|
var Ue = /* @__PURE__ */ function(n) {
|
|
2826
2829
|
return n[n.Simple = 0] = "Simple", n[n.TrackDel = 1] = "TrackDel", n[n.TrackBefore = 2] = "TrackBefore", n[n.TrackAfter = 3] = "TrackAfter", n;
|
|
2827
2830
|
}(Ue || (Ue = {}));
|
|
2828
|
-
class
|
|
2831
|
+
class Bt {
|
|
2829
2832
|
// Sections are encoded as pairs of integers. The first is the
|
|
2830
2833
|
// length in the current document, and the second is -1 for
|
|
2831
2834
|
// unaffected sections, and the length of the replacement content
|
|
@@ -2898,7 +2901,7 @@ class Et {
|
|
|
2898
2901
|
let i = this.sections[t++], s = this.sections[t++];
|
|
2899
2902
|
s < 0 ? e.push(i, s) : e.push(s, i);
|
|
2900
2903
|
}
|
|
2901
|
-
return new
|
|
2904
|
+
return new Bt(e);
|
|
2902
2905
|
}
|
|
2903
2906
|
/**
|
|
2904
2907
|
Compute the combined effect of applying another set of changes
|
|
@@ -2976,16 +2979,16 @@ class Et {
|
|
|
2976
2979
|
static fromJSON(e) {
|
|
2977
2980
|
if (!Array.isArray(e) || e.length % 2 || e.some((t) => typeof t != "number"))
|
|
2978
2981
|
throw new RangeError("Invalid JSON representation of ChangeDesc");
|
|
2979
|
-
return new
|
|
2982
|
+
return new Bt(e);
|
|
2980
2983
|
}
|
|
2981
2984
|
/**
|
|
2982
2985
|
@internal
|
|
2983
2986
|
*/
|
|
2984
2987
|
static create(e) {
|
|
2985
|
-
return new
|
|
2988
|
+
return new Bt(e);
|
|
2986
2989
|
}
|
|
2987
2990
|
}
|
|
2988
|
-
class
|
|
2991
|
+
class ze extends Bt {
|
|
2989
2992
|
constructor(e, t) {
|
|
2990
2993
|
super(e), this.inserted = t;
|
|
2991
2994
|
}
|
|
@@ -3020,7 +3023,7 @@ class Pe extends Et {
|
|
|
3020
3023
|
}
|
|
3021
3024
|
o += r;
|
|
3022
3025
|
}
|
|
3023
|
-
return new
|
|
3026
|
+
return new ze(t, i);
|
|
3024
3027
|
}
|
|
3025
3028
|
/**
|
|
3026
3029
|
Combine two subsequent change sets into a single set. `other`
|
|
@@ -3064,7 +3067,7 @@ class Pe extends Et {
|
|
|
3064
3067
|
set.
|
|
3065
3068
|
*/
|
|
3066
3069
|
get desc() {
|
|
3067
|
-
return
|
|
3070
|
+
return Bt.create(this.sections);
|
|
3068
3071
|
}
|
|
3069
3072
|
/**
|
|
3070
3073
|
@internal
|
|
@@ -3079,7 +3082,7 @@ class Pe extends Et {
|
|
|
3079
3082
|
let h = Math.min(o.len, a - l);
|
|
3080
3083
|
Ge(s, h, -1);
|
|
3081
3084
|
let u = o.ins == -1 ? -1 : o.off == 0 ? o.ins : 0;
|
|
3082
|
-
Ge(t, h, u), u > 0 &&
|
|
3085
|
+
Ge(t, h, u), u > 0 && e0(i, t, o.text), o.forward(h), l += h;
|
|
3083
3086
|
}
|
|
3084
3087
|
let c = e[r++];
|
|
3085
3088
|
for (; l < c; ) {
|
|
@@ -3090,8 +3093,8 @@ class Pe extends Et {
|
|
|
3090
3093
|
}
|
|
3091
3094
|
}
|
|
3092
3095
|
return {
|
|
3093
|
-
changes: new
|
|
3094
|
-
filtered:
|
|
3096
|
+
changes: new ze(t, i),
|
|
3097
|
+
filtered: Bt.create(s)
|
|
3095
3098
|
};
|
|
3096
3099
|
}
|
|
3097
3100
|
/**
|
|
@@ -3115,14 +3118,14 @@ class Pe extends Et {
|
|
|
3115
3118
|
if (!h && !s.length)
|
|
3116
3119
|
return;
|
|
3117
3120
|
r < t && Ge(s, t - r, -1);
|
|
3118
|
-
let u = new
|
|
3121
|
+
let u = new ze(s, o);
|
|
3119
3122
|
l = l ? l.compose(u.map(l)) : u, s = [], o = [], r = 0;
|
|
3120
3123
|
}
|
|
3121
3124
|
function c(h) {
|
|
3122
3125
|
if (Array.isArray(h))
|
|
3123
3126
|
for (let u of h)
|
|
3124
3127
|
c(u);
|
|
3125
|
-
else if (h instanceof
|
|
3128
|
+
else if (h instanceof ze) {
|
|
3126
3129
|
if (h.length != t)
|
|
3127
3130
|
throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);
|
|
3128
3131
|
a(), l = l ? l.compose(h.map(l)) : h;
|
|
@@ -3133,7 +3136,7 @@ class Pe extends Et {
|
|
|
3133
3136
|
let p = f ? typeof f == "string" ? le.of(f.split(i || jn)) : f : le.empty, g = p.length;
|
|
3134
3137
|
if (u == d && g == 0)
|
|
3135
3138
|
return;
|
|
3136
|
-
u < r && a(), u > r && Ge(s, u - r, -1), Ge(s, d - u, g),
|
|
3139
|
+
u < r && a(), u > r && Ge(s, u - r, -1), Ge(s, d - u, g), e0(o, s, p), r = d;
|
|
3137
3140
|
}
|
|
3138
3141
|
}
|
|
3139
3142
|
return c(e), a(!l), l;
|
|
@@ -3142,7 +3145,7 @@ class Pe extends Et {
|
|
|
3142
3145
|
Create an empty changeset of the given length.
|
|
3143
3146
|
*/
|
|
3144
3147
|
static empty(e) {
|
|
3145
|
-
return new
|
|
3148
|
+
return new ze(e ? [e, -1] : [], []);
|
|
3146
3149
|
}
|
|
3147
3150
|
/**
|
|
3148
3151
|
Create a changeset from its JSON representation (as produced by
|
|
@@ -3168,13 +3171,13 @@ class Pe extends Et {
|
|
|
3168
3171
|
}
|
|
3169
3172
|
}
|
|
3170
3173
|
}
|
|
3171
|
-
return new
|
|
3174
|
+
return new ze(t, i);
|
|
3172
3175
|
}
|
|
3173
3176
|
/**
|
|
3174
3177
|
@internal
|
|
3175
3178
|
*/
|
|
3176
3179
|
static createSet(e, t) {
|
|
3177
|
-
return new
|
|
3180
|
+
return new ze(e, t);
|
|
3178
3181
|
}
|
|
3179
3182
|
}
|
|
3180
3183
|
function Ge(n, e, t, i = !1) {
|
|
@@ -3183,7 +3186,7 @@ function Ge(n, e, t, i = !1) {
|
|
|
3183
3186
|
let s = n.length - 2;
|
|
3184
3187
|
s >= 0 && t <= 0 && t == n[s + 1] ? n[s] += e : s >= 0 && e == 0 && n[s] == 0 ? n[s + 1] += t : i ? (n[s] += e, n[s + 1] += t) : n.push(e, t);
|
|
3185
3188
|
}
|
|
3186
|
-
function
|
|
3189
|
+
function e0(n, e, t) {
|
|
3187
3190
|
if (t.length == 0)
|
|
3188
3191
|
return;
|
|
3189
3192
|
let i = e.length - 2 >> 1;
|
|
@@ -3221,7 +3224,7 @@ function qn(n, e, t, i = !1) {
|
|
|
3221
3224
|
let c = l.len;
|
|
3222
3225
|
for (Ge(s, l.ins, -1); c; ) {
|
|
3223
3226
|
let h = Math.min(r.len, c);
|
|
3224
|
-
r.ins >= 0 && a < r.i && r.len <= h && (Ge(s, 0, r.ins), o &&
|
|
3227
|
+
r.ins >= 0 && a < r.i && r.len <= h && (Ge(s, 0, r.ins), o && e0(o, s, r.text), a = r.i), r.forward(h), c -= h;
|
|
3225
3228
|
}
|
|
3226
3229
|
l.next();
|
|
3227
3230
|
} else if (r.ins >= 0) {
|
|
@@ -3234,10 +3237,10 @@ function qn(n, e, t, i = !1) {
|
|
|
3234
3237
|
h -= l.len, l.next();
|
|
3235
3238
|
else
|
|
3236
3239
|
break;
|
|
3237
|
-
Ge(s, c, a < r.i ? r.ins : 0), o && a < r.i &&
|
|
3240
|
+
Ge(s, c, a < r.i ? r.ins : 0), o && a < r.i && e0(o, s, r.text), a = r.i, r.forward(r.len - h);
|
|
3238
3241
|
} else {
|
|
3239
3242
|
if (r.done && l.done)
|
|
3240
|
-
return o ?
|
|
3243
|
+
return o ? ze.createSet(s, o) : Bt.create(s);
|
|
3241
3244
|
throw new Error("Mismatched change set lengths");
|
|
3242
3245
|
}
|
|
3243
3246
|
}
|
|
@@ -3246,11 +3249,11 @@ function Xl(n, e, t = !1) {
|
|
|
3246
3249
|
let i = [], s = t ? [] : null, o = new v2(n), r = new v2(e);
|
|
3247
3250
|
for (let l = !1; ; ) {
|
|
3248
3251
|
if (o.done && r.done)
|
|
3249
|
-
return s ?
|
|
3252
|
+
return s ? ze.createSet(i, s) : Bt.create(i);
|
|
3250
3253
|
if (o.ins == 0)
|
|
3251
3254
|
Ge(i, o.len, 0, l), o.next();
|
|
3252
3255
|
else if (r.len == 0 && !r.done)
|
|
3253
|
-
Ge(i, 0, r.ins, l), s &&
|
|
3256
|
+
Ge(i, 0, r.ins, l), s && e0(s, i, r.text), r.next();
|
|
3254
3257
|
else {
|
|
3255
3258
|
if (o.done || r.done)
|
|
3256
3259
|
throw new Error("Mismatched change set lengths");
|
|
@@ -3258,8 +3261,8 @@ function Xl(n, e, t = !1) {
|
|
|
3258
3261
|
let a = Math.min(o.len2, r.len), c = i.length;
|
|
3259
3262
|
if (o.ins == -1) {
|
|
3260
3263
|
let h = r.ins == -1 ? -1 : r.off ? 0 : r.ins;
|
|
3261
|
-
Ge(i, a, h, l), s && h &&
|
|
3262
|
-
} else r.ins == -1 ? (Ge(i, o.off ? 0 : o.len, a, l), s &&
|
|
3264
|
+
Ge(i, a, h, l), s && h && e0(s, i, r.text);
|
|
3265
|
+
} else r.ins == -1 ? (Ge(i, o.off ? 0 : o.len, a, l), s && e0(s, i, o.textBit(a))) : (Ge(i, o.off ? 0 : o.len, r.off ? 0 : r.ins, l), s && !r.off && e0(s, i, r.text));
|
|
3263
3266
|
l = (o.ins > a || r.ins >= 0 && r.len > a) && (l || i.length > c), o.forward2(a), r.forward(a);
|
|
3264
3267
|
}
|
|
3265
3268
|
}
|
|
@@ -3864,7 +3867,7 @@ const Zl = /* @__PURE__ */ I.define(), Xn = /* @__PURE__ */ I.define({
|
|
|
3864
3867
|
}), t1 = /* @__PURE__ */ I.define(), i1 = /* @__PURE__ */ I.define(), n1 = /* @__PURE__ */ I.define(), s1 = /* @__PURE__ */ I.define({
|
|
3865
3868
|
combine: (n) => n.length ? n[0] : !1
|
|
3866
3869
|
});
|
|
3867
|
-
class
|
|
3870
|
+
class Kt {
|
|
3868
3871
|
/**
|
|
3869
3872
|
@internal
|
|
3870
3873
|
*/
|
|
@@ -3883,7 +3886,7 @@ class Z8 {
|
|
|
3883
3886
|
Create an instance of this annotation.
|
|
3884
3887
|
*/
|
|
3885
3888
|
of(e) {
|
|
3886
|
-
return new
|
|
3889
|
+
return new Kt(this, e);
|
|
3887
3890
|
}
|
|
3888
3891
|
}
|
|
3889
3892
|
class ed {
|
|
@@ -3949,15 +3952,15 @@ class X {
|
|
|
3949
3952
|
}
|
|
3950
3953
|
X.reconfigure = /* @__PURE__ */ X.define();
|
|
3951
3954
|
X.appendConfig = /* @__PURE__ */ X.define();
|
|
3952
|
-
class
|
|
3955
|
+
class Ve {
|
|
3953
3956
|
constructor(e, t, i, s, o, r) {
|
|
3954
|
-
this.startState = e, this.changes = t, this.selection = i, this.effects = s, this.annotations = o, this.scrollIntoView = r, this._doc = null, this._state = null, i && Ql(i, t.newLength), o.some((l) => l.type ==
|
|
3957
|
+
this.startState = e, this.changes = t, this.selection = i, this.effects = s, this.annotations = o, this.scrollIntoView = r, this._doc = null, this._state = null, i && Ql(i, t.newLength), o.some((l) => l.type == Ve.time) || (this.annotations = o.concat(Ve.time.of(Date.now())));
|
|
3955
3958
|
}
|
|
3956
3959
|
/**
|
|
3957
3960
|
@internal
|
|
3958
3961
|
*/
|
|
3959
3962
|
static create(e, t, i, s, o, r) {
|
|
3960
|
-
return new
|
|
3963
|
+
return new Ve(e, t, i, s, o, r);
|
|
3961
3964
|
}
|
|
3962
3965
|
/**
|
|
3963
3966
|
The new document produced by the transaction. Contrary to
|
|
@@ -4019,14 +4022,14 @@ class ze {
|
|
|
4019
4022
|
`"select.pointer"` will match it.
|
|
4020
4023
|
*/
|
|
4021
4024
|
isUserEvent(e) {
|
|
4022
|
-
let t = this.annotation(
|
|
4025
|
+
let t = this.annotation(Ve.userEvent);
|
|
4023
4026
|
return !!(t && (t == e || t.length > e.length && t.slice(0, e.length) == e && t[e.length] == "."));
|
|
4024
4027
|
}
|
|
4025
4028
|
}
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4029
|
+
Ve.time = /* @__PURE__ */ Kt.define();
|
|
4030
|
+
Ve.userEvent = /* @__PURE__ */ Kt.define();
|
|
4031
|
+
Ve.addToHistory = /* @__PURE__ */ Kt.define();
|
|
4032
|
+
Ve.remote = /* @__PURE__ */ Kt.define();
|
|
4030
4033
|
function td(n, e) {
|
|
4031
4034
|
let t = [];
|
|
4032
4035
|
for (let i = 0, s = 0; ; ) {
|
|
@@ -4043,7 +4046,7 @@ function td(n, e) {
|
|
|
4043
4046
|
function o1(n, e, t) {
|
|
4044
4047
|
var i;
|
|
4045
4048
|
let s, o, r;
|
|
4046
|
-
return t ? (s = e.changes, o =
|
|
4049
|
+
return t ? (s = e.changes, o = ze.empty(e.changes.length), r = n.changes.compose(e.changes)) : (s = e.changes.map(n.changes), o = n.changes.mapDesc(e.changes, !0), r = n.changes.compose(s)), {
|
|
4047
4050
|
changes: r,
|
|
4048
4051
|
selection: e.selection ? e.selection.map(o) : (i = n.selection) === null || i === void 0 ? void 0 : i.map(s),
|
|
4049
4052
|
effects: X.mapEffects(n.effects, s).concat(X.mapEffects(e.effects, o)),
|
|
@@ -4053,8 +4056,8 @@ function o1(n, e, t) {
|
|
|
4053
4056
|
}
|
|
4054
4057
|
function Qn(n, e, t) {
|
|
4055
4058
|
let i = e.selection, s = B0(e.annotations);
|
|
4056
|
-
return e.userEvent && (s = s.concat(
|
|
4057
|
-
changes: e.changes instanceof
|
|
4059
|
+
return e.userEvent && (s = s.concat(Ve.userEvent.of(e.userEvent))), {
|
|
4060
|
+
changes: e.changes instanceof ze ? e.changes : ze.of(e.changes || [], t, n.facet(e1)),
|
|
4058
4061
|
selection: i && (i instanceof O ? i : O.single(i.anchor, i.head)),
|
|
4059
4062
|
effects: B0(e.effects),
|
|
4060
4063
|
annotations: s,
|
|
@@ -4069,7 +4072,7 @@ function r1(n, e, t) {
|
|
|
4069
4072
|
let r = !!e[o].sequential;
|
|
4070
4073
|
i = o1(i, Qn(n, e[o], r ? i.changes.newLength : n.doc.length), r);
|
|
4071
4074
|
}
|
|
4072
|
-
let s =
|
|
4075
|
+
let s = Ve.create(n, i.changes, i.selection, i.effects, i.annotations, i.scrollIntoView);
|
|
4073
4076
|
return nd(t ? id(s) : s);
|
|
4074
4077
|
}
|
|
4075
4078
|
function id(n) {
|
|
@@ -4085,17 +4088,17 @@ function id(n) {
|
|
|
4085
4088
|
if (t !== !0) {
|
|
4086
4089
|
let s, o;
|
|
4087
4090
|
if (t === !1)
|
|
4088
|
-
o = n.changes.invertedDesc, s =
|
|
4091
|
+
o = n.changes.invertedDesc, s = ze.empty(e.doc.length);
|
|
4089
4092
|
else {
|
|
4090
4093
|
let r = n.changes.filter(t);
|
|
4091
4094
|
s = r.changes, o = r.filtered.mapDesc(r.changes).invertedDesc;
|
|
4092
4095
|
}
|
|
4093
|
-
n =
|
|
4096
|
+
n = Ve.create(e, s, n.selection && n.selection.map(o), X.mapEffects(n.effects, o), n.annotations, n.scrollIntoView);
|
|
4094
4097
|
}
|
|
4095
4098
|
let i = e.facet(i1);
|
|
4096
4099
|
for (let s = i.length - 1; s >= 0; s--) {
|
|
4097
4100
|
let o = i[s](n);
|
|
4098
|
-
o instanceof
|
|
4101
|
+
o instanceof Ve ? n = o : Array.isArray(o) && o.length == 1 && o[0] instanceof Ve ? n = o[0] : n = r1(e, B0(o), !1);
|
|
4099
4102
|
}
|
|
4100
4103
|
return n;
|
|
4101
4104
|
}
|
|
@@ -4105,7 +4108,7 @@ function nd(n) {
|
|
|
4105
4108
|
let o = t[s](n);
|
|
4106
4109
|
o && Object.keys(o).length && (i = o1(i, Qn(e, o, n.changes.newLength), !0));
|
|
4107
4110
|
}
|
|
4108
|
-
return i == n ? n :
|
|
4111
|
+
return i == n ? n : Ve.create(e, n.changes, n.selection, i.effects, i.annotations, i.scrollIntoView);
|
|
4109
4112
|
}
|
|
4110
4113
|
const sd = [];
|
|
4111
4114
|
function B0(n) {
|
|
@@ -4230,7 +4233,7 @@ class se {
|
|
|
4230
4233
|
separator into account.
|
|
4231
4234
|
*/
|
|
4232
4235
|
changes(e = []) {
|
|
4233
|
-
return e instanceof
|
|
4236
|
+
return e instanceof ze ? e : ze.of(e, this.doc.length, this.facet(se.lineSeparator));
|
|
4234
4237
|
}
|
|
4235
4238
|
/**
|
|
4236
4239
|
Using the state's [line
|
|
@@ -4425,7 +4428,7 @@ se.changeFilter = t1;
|
|
|
4425
4428
|
se.transactionFilter = i1;
|
|
4426
4429
|
se.transactionExtender = n1;
|
|
4427
4430
|
en.reconfigure = /* @__PURE__ */ X.define();
|
|
4428
|
-
function
|
|
4431
|
+
function Rt(n, e, t = {}) {
|
|
4429
4432
|
let i = {};
|
|
4430
4433
|
for (let s of n)
|
|
4431
4434
|
for (let o of Object.keys(s)) {
|
|
@@ -4565,7 +4568,7 @@ class oe {
|
|
|
4565
4568
|
return this;
|
|
4566
4569
|
if (i && (t = t.slice().sort(es)), this.isEmpty)
|
|
4567
4570
|
return t.length ? oe.of(t) : this;
|
|
4568
|
-
let l = new a1(this, null, -1).goto(0), a = 0, c = [], h = new
|
|
4571
|
+
let l = new a1(this, null, -1).goto(0), a = 0, c = [], h = new jt();
|
|
4569
4572
|
for (; l.value || a < t.length; )
|
|
4570
4573
|
if (a < t.length && (l.from - t[a].from || l.startSide - t[a].value.startSide) >= 0) {
|
|
4571
4574
|
let u = t[a++];
|
|
@@ -4684,7 +4687,7 @@ class oe {
|
|
|
4684
4687
|
cause the method to sort them.
|
|
4685
4688
|
*/
|
|
4686
4689
|
static of(e, t = !1) {
|
|
4687
|
-
let i = new
|
|
4690
|
+
let i = new jt();
|
|
4688
4691
|
for (let s of e instanceof Zn ? [e] : t ? ad(e) : e)
|
|
4689
4692
|
i.add(s.from, s.to, s.value);
|
|
4690
4693
|
return i.finish();
|
|
@@ -4714,7 +4717,7 @@ function ad(n) {
|
|
|
4714
4717
|
return n;
|
|
4715
4718
|
}
|
|
4716
4719
|
oe.empty.nextLayer = oe.empty;
|
|
4717
|
-
class
|
|
4720
|
+
class jt {
|
|
4718
4721
|
finishChunk(e) {
|
|
4719
4722
|
this.chunks.push(new js(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
|
|
4720
4723
|
}
|
|
@@ -4729,7 +4732,7 @@ class Ft {
|
|
|
4729
4732
|
`value.startSide`) order.
|
|
4730
4733
|
*/
|
|
4731
4734
|
add(e, t, i) {
|
|
4732
|
-
this.addInner(e, t, i) || (this.nextLayer || (this.nextLayer = new
|
|
4735
|
+
this.addInner(e, t, i) || (this.nextLayer || (this.nextLayer = new jt())).add(e, t, i);
|
|
4733
4736
|
}
|
|
4734
4737
|
/**
|
|
4735
4738
|
@internal
|
|
@@ -5011,7 +5014,7 @@ function is(n, e, t, i) {
|
|
|
5011
5014
|
return i === !0 ? -1 : n.length;
|
|
5012
5015
|
}
|
|
5013
5016
|
const ns = "ͼ", qo = typeof Symbol > "u" ? "__" + ns : Symbol.for(ns), ss = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), Yo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
|
|
5014
|
-
class
|
|
5017
|
+
class o0 {
|
|
5015
5018
|
// :: (Object<Style>, ?{finish: ?(string) → string})
|
|
5016
5019
|
// Create a style module from the given spec.
|
|
5017
5020
|
//
|
|
@@ -5116,7 +5119,7 @@ class hd {
|
|
|
5116
5119
|
this.styleTag && this.styleTag.getAttribute("nonce") != e && this.styleTag.setAttribute("nonce", e);
|
|
5117
5120
|
}
|
|
5118
5121
|
}
|
|
5119
|
-
var
|
|
5122
|
+
var r0 = {
|
|
5120
5123
|
8: "Backspace",
|
|
5121
5124
|
9: "Tab",
|
|
5122
5125
|
10: "Enter",
|
|
@@ -5195,16 +5198,16 @@ var o0 = {
|
|
|
5195
5198
|
221: "}",
|
|
5196
5199
|
222: '"'
|
|
5197
5200
|
}, cd = typeof navigator < "u" && /Mac/.test(navigator.platform), ud = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
5198
|
-
for (var Ne = 0; Ne < 10; Ne++)
|
|
5199
|
-
for (var Ne = 1; Ne <= 24; Ne++)
|
|
5201
|
+
for (var Ne = 0; Ne < 10; Ne++) r0[48 + Ne] = r0[96 + Ne] = String(Ne);
|
|
5202
|
+
for (var Ne = 1; Ne <= 24; Ne++) r0[Ne + 111] = "F" + Ne;
|
|
5200
5203
|
for (var Ne = 65; Ne <= 90; Ne++)
|
|
5201
|
-
|
|
5202
|
-
for (var mn in
|
|
5204
|
+
r0[Ne] = String.fromCharCode(Ne + 32), b2[Ne] = String.fromCharCode(Ne);
|
|
5205
|
+
for (var mn in r0) b2.hasOwnProperty(mn) || (b2[mn] = r0[mn]);
|
|
5203
5206
|
function dd(n) {
|
|
5204
|
-
var e = cd && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || ud && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? b2 :
|
|
5207
|
+
var e = cd && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || ud && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? b2 : r0)[n.keyCode] || n.key || "Unidentified";
|
|
5205
5208
|
return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
|
|
5206
5209
|
}
|
|
5207
|
-
function
|
|
5210
|
+
function he() {
|
|
5208
5211
|
var n = arguments[0];
|
|
5209
5212
|
typeof n == "string" && (n = document.createElement(n));
|
|
5210
5213
|
var e = 1, t = arguments[1];
|
|
@@ -5262,7 +5265,7 @@ function Xo(n, e, t, i, s) {
|
|
|
5262
5265
|
for (; ; ) {
|
|
5263
5266
|
if (n == t && e == i)
|
|
5264
5267
|
return !0;
|
|
5265
|
-
if (e == (s < 0 ? 0 :
|
|
5268
|
+
if (e == (s < 0 ? 0 : Lt(n))) {
|
|
5266
5269
|
if (n.nodeName == "DIV")
|
|
5267
5270
|
return !1;
|
|
5268
5271
|
let o = n.parentNode;
|
|
@@ -5272,12 +5275,12 @@ function Xo(n, e, t, i, s) {
|
|
|
5272
5275
|
} else if (n.nodeType == 1) {
|
|
5273
5276
|
if (n = n.childNodes[e + (s < 0 ? -1 : 0)], n.nodeType == 1 && n.contentEditable == "false")
|
|
5274
5277
|
return !1;
|
|
5275
|
-
e = s < 0 ?
|
|
5278
|
+
e = s < 0 ? Lt(n) : 0;
|
|
5276
5279
|
} else
|
|
5277
5280
|
return !1;
|
|
5278
5281
|
}
|
|
5279
5282
|
}
|
|
5280
|
-
function
|
|
5283
|
+
function Lt(n) {
|
|
5281
5284
|
return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
|
|
5282
5285
|
}
|
|
5283
5286
|
function tn(n, e) {
|
|
@@ -5382,7 +5385,7 @@ class md {
|
|
|
5382
5385
|
}
|
|
5383
5386
|
setRange(e) {
|
|
5384
5387
|
let { anchorNode: t, focusNode: i } = e;
|
|
5385
|
-
this.set(t, Math.min(e.anchorOffset, t ?
|
|
5388
|
+
this.set(t, Math.min(e.anchorOffset, t ? Lt(t) : 0), i, Math.min(e.focusOffset, i ? Lt(i) : 0));
|
|
5386
5389
|
}
|
|
5387
5390
|
set(e, t, i, s) {
|
|
5388
5391
|
this.anchorNode = e, this.anchorOffset = t, this.focusNode = i, this.focusOffset = s;
|
|
@@ -5438,12 +5441,12 @@ function wd(n, e) {
|
|
|
5438
5441
|
let t = e.focusNode, i = e.focusOffset;
|
|
5439
5442
|
if (!t || e.anchorNode != t || e.anchorOffset != i)
|
|
5440
5443
|
return !1;
|
|
5441
|
-
for (i = Math.min(i,
|
|
5444
|
+
for (i = Math.min(i, Lt(t)); ; )
|
|
5442
5445
|
if (i) {
|
|
5443
5446
|
if (t.nodeType != 1)
|
|
5444
5447
|
return !1;
|
|
5445
5448
|
let s = t.childNodes[i - 1];
|
|
5446
|
-
s.contentEditable == "false" ? i-- : (t = s, i =
|
|
5449
|
+
s.contentEditable == "false" ? i-- : (t = s, i = Lt(t));
|
|
5447
5450
|
} else {
|
|
5448
5451
|
if (t == n)
|
|
5449
5452
|
return !0;
|
|
@@ -5460,7 +5463,7 @@ function p1(n, e) {
|
|
|
5460
5463
|
if (t.nodeType == 1 && i > 0) {
|
|
5461
5464
|
if (t.contentEditable == "false")
|
|
5462
5465
|
return null;
|
|
5463
|
-
t = t.childNodes[i - 1], i =
|
|
5466
|
+
t = t.childNodes[i - 1], i = Lt(t);
|
|
5464
5467
|
} else if (t.parentNode && !Ci(t))
|
|
5465
5468
|
i = S0(t), t = t.parentNode;
|
|
5466
5469
|
else
|
|
@@ -5493,7 +5496,7 @@ class Fe {
|
|
|
5493
5496
|
}
|
|
5494
5497
|
}
|
|
5495
5498
|
const Us = [];
|
|
5496
|
-
class
|
|
5499
|
+
class ue {
|
|
5497
5500
|
constructor() {
|
|
5498
5501
|
this.parent = null, this.dom = null, this.flags = 2;
|
|
5499
5502
|
}
|
|
@@ -5524,7 +5527,7 @@ class de {
|
|
|
5524
5527
|
for (let r of this.children) {
|
|
5525
5528
|
if (r.flags & 7) {
|
|
5526
5529
|
if (!r.dom && (o = s ? s.nextSibling : i.firstChild)) {
|
|
5527
|
-
let l =
|
|
5530
|
+
let l = ue.get(o);
|
|
5528
5531
|
(!l || !l.parent && l.canReuseDOM(r)) && r.reuseDOM(o);
|
|
5529
5532
|
}
|
|
5530
5533
|
r.sync(e, t), r.flags &= -8;
|
|
@@ -5549,7 +5552,7 @@ class de {
|
|
|
5549
5552
|
if (e == this.dom)
|
|
5550
5553
|
i = this.dom.childNodes[t];
|
|
5551
5554
|
else {
|
|
5552
|
-
let s =
|
|
5555
|
+
let s = Lt(e) == 0 ? 0 : t == 0 ? -1 : 1;
|
|
5553
5556
|
for (; ; ) {
|
|
5554
5557
|
let o = e.parentNode;
|
|
5555
5558
|
if (o == this.dom)
|
|
@@ -5560,7 +5563,7 @@ class de {
|
|
|
5560
5563
|
}
|
|
5561
5564
|
if (i == this.dom.firstChild)
|
|
5562
5565
|
return 0;
|
|
5563
|
-
for (; i && !
|
|
5566
|
+
for (; i && !ue.get(i); )
|
|
5564
5567
|
i = i.nextSibling;
|
|
5565
5568
|
if (!i)
|
|
5566
5569
|
return this.length;
|
|
@@ -5673,7 +5676,7 @@ class de {
|
|
|
5673
5676
|
this.parent = null;
|
|
5674
5677
|
}
|
|
5675
5678
|
}
|
|
5676
|
-
|
|
5679
|
+
ue.prototype.breakAfter = 0;
|
|
5677
5680
|
function Jo(n) {
|
|
5678
5681
|
let e = n.nextSibling;
|
|
5679
5682
|
return n.parentNode.removeChild(n), e;
|
|
@@ -5733,7 +5736,7 @@ var B = {
|
|
|
5733
5736
|
tabSize: rs.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
|
|
5734
5737
|
};
|
|
5735
5738
|
const xd = 256;
|
|
5736
|
-
class yt extends
|
|
5739
|
+
class yt extends ue {
|
|
5737
5740
|
constructor(e) {
|
|
5738
5741
|
super(), this.text = e;
|
|
5739
5742
|
}
|
|
@@ -5769,7 +5772,7 @@ class yt extends de {
|
|
|
5769
5772
|
return yd(this.dom, e, t);
|
|
5770
5773
|
}
|
|
5771
5774
|
}
|
|
5772
|
-
class
|
|
5775
|
+
class Ut extends ue {
|
|
5773
5776
|
constructor(e, t = [], i = 0) {
|
|
5774
5777
|
super(), this.mark = e, this.children = t, this.length = i;
|
|
5775
5778
|
for (let s of t)
|
|
@@ -5791,7 +5794,7 @@ class jt extends de {
|
|
|
5791
5794
|
this.dom ? this.flags & 4 && this.setAttrs(this.dom) : this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))), super.sync(e, t);
|
|
5792
5795
|
}
|
|
5793
5796
|
merge(e, t, i, s, o, r) {
|
|
5794
|
-
return i && (!(i instanceof
|
|
5797
|
+
return i && (!(i instanceof Ut && i.mark.eq(this.mark)) || e && o <= 0 || t < this.length && r <= 0) ? !1 : (w1(this, e, t, i ? i.children.slice() : [], o - 1, r - 1), this.markDirty(), !0);
|
|
5795
5798
|
}
|
|
5796
5799
|
split(e) {
|
|
5797
5800
|
let t = [], i = 0, s = -1, o = 0;
|
|
@@ -5800,7 +5803,7 @@ class jt extends de {
|
|
|
5800
5803
|
a > e && t.push(i < e ? l.split(e - i) : l), s < 0 && i >= e && (s = o), i = a, o++;
|
|
5801
5804
|
}
|
|
5802
5805
|
let r = this.length - e;
|
|
5803
|
-
return this.length = e, s > -1 && (this.children.length = s, this.markDirty()), new
|
|
5806
|
+
return this.length = e, s > -1 && (this.children.length = s, this.markDirty()), new Ut(this.mark, t, r);
|
|
5804
5807
|
}
|
|
5805
5808
|
domAtPos(e) {
|
|
5806
5809
|
return y1(this, e);
|
|
@@ -5820,15 +5823,15 @@ function yd(n, e, t) {
|
|
|
5820
5823
|
let a = l[(r ? r < 0 : t >= 0) ? 0 : l.length - 1];
|
|
5821
5824
|
return B.safari && !r && a.width == 0 && (a = Array.prototype.find.call(l, (c) => c.width) || a), r ? tn(a, r < 0) : a || null;
|
|
5822
5825
|
}
|
|
5823
|
-
class
|
|
5826
|
+
class t0 extends ue {
|
|
5824
5827
|
static create(e, t, i) {
|
|
5825
|
-
return new
|
|
5828
|
+
return new t0(e, t, i);
|
|
5826
5829
|
}
|
|
5827
5830
|
constructor(e, t, i) {
|
|
5828
5831
|
super(), this.widget = e, this.length = t, this.side = i, this.prevWidget = null;
|
|
5829
5832
|
}
|
|
5830
5833
|
split(e) {
|
|
5831
|
-
let t =
|
|
5834
|
+
let t = t0.create(this.widget, this.length - e, this.side);
|
|
5832
5835
|
return this.length -= e, t;
|
|
5833
5836
|
}
|
|
5834
5837
|
sync(e) {
|
|
@@ -5838,10 +5841,10 @@ class e0 extends de {
|
|
|
5838
5841
|
return this.side;
|
|
5839
5842
|
}
|
|
5840
5843
|
merge(e, t, i, s, o, r) {
|
|
5841
|
-
return i && (!(i instanceof
|
|
5844
|
+
return i && (!(i instanceof t0) || !this.widget.compare(i.widget) || e > 0 && o <= 0 || t < this.length && r <= 0) ? !1 : (this.length = e + (i ? i.length : 0) + (this.length - t), !0);
|
|
5842
5845
|
}
|
|
5843
5846
|
become(e) {
|
|
5844
|
-
return e instanceof
|
|
5847
|
+
return e instanceof t0 && e.side == this.side && this.widget.constructor == e.widget.constructor ? (this.widget.compare(e.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, !0) : !1;
|
|
5845
5848
|
}
|
|
5846
5849
|
ignoreMutation() {
|
|
5847
5850
|
return !0;
|
|
@@ -5889,7 +5892,7 @@ class e0 extends de {
|
|
|
5889
5892
|
super.destroy(), this.dom && this.widget.destroy(this.dom);
|
|
5890
5893
|
}
|
|
5891
5894
|
}
|
|
5892
|
-
class G0 extends
|
|
5895
|
+
class G0 extends ue {
|
|
5893
5896
|
constructor(e) {
|
|
5894
5897
|
super(), this.side = e;
|
|
5895
5898
|
}
|
|
@@ -5933,7 +5936,7 @@ class G0 extends de {
|
|
|
5933
5936
|
return !0;
|
|
5934
5937
|
}
|
|
5935
5938
|
}
|
|
5936
|
-
yt.prototype.children =
|
|
5939
|
+
yt.prototype.children = t0.prototype.children = G0.prototype.children = Us;
|
|
5937
5940
|
function y1(n, e) {
|
|
5938
5941
|
let t = n.dom, { children: i } = n, s = 0;
|
|
5939
5942
|
for (let o = 0; s < i.length; s++) {
|
|
@@ -5960,7 +5963,7 @@ function y1(n, e) {
|
|
|
5960
5963
|
}
|
|
5961
5964
|
function S1(n, e, t) {
|
|
5962
5965
|
let i, { children: s } = n;
|
|
5963
|
-
t > 0 && e instanceof
|
|
5966
|
+
t > 0 && e instanceof Ut && s.length && (i = s[s.length - 1]) instanceof Ut && i.mark.eq(e.mark) ? S1(i, e.children[0], t - 1) : (s.push(e), e.setParent(n)), n.length += e.length;
|
|
5964
5967
|
}
|
|
5965
5968
|
function _1(n, e, t) {
|
|
5966
5969
|
let i = null, s = -1, o = null, r = -1;
|
|
@@ -6021,7 +6024,7 @@ function kd(n) {
|
|
|
6021
6024
|
}
|
|
6022
6025
|
return e;
|
|
6023
6026
|
}
|
|
6024
|
-
class
|
|
6027
|
+
class c0 {
|
|
6025
6028
|
/**
|
|
6026
6029
|
Compare this instance to another instance of the same type.
|
|
6027
6030
|
(TypeScript can't express this, but only instances of the same
|
|
@@ -6136,7 +6139,7 @@ class U extends y0 {
|
|
|
6136
6139
|
*/
|
|
6137
6140
|
static widget(e) {
|
|
6138
6141
|
let t = Math.max(-1e4, Math.min(1e4, e.side || 0)), i = !!e.block;
|
|
6139
|
-
return t += i && !e.inlineOrder ? t > 0 ? 3e8 : -4e8 : t > 0 ? 1e8 : -1e8, new
|
|
6142
|
+
return t += i && !e.inlineOrder ? t > 0 ? 3e8 : -4e8 : t > 0 ? 1e8 : -1e8, new l0(e, t, t, i, e.widget || null, !1);
|
|
6140
6143
|
}
|
|
6141
6144
|
/**
|
|
6142
6145
|
Create a replace decoration which replaces the given range with
|
|
@@ -6150,7 +6153,7 @@ class U extends y0 {
|
|
|
6150
6153
|
let { start: o, end: r } = k1(e, t);
|
|
6151
6154
|
i = (o ? t ? -3e8 : -1 : 5e8) - 1, s = (r ? t ? 2e8 : 1 : -6e8) + 1;
|
|
6152
6155
|
}
|
|
6153
|
-
return new
|
|
6156
|
+
return new l0(e, i, s, t, e.widget || null, !0);
|
|
6154
6157
|
}
|
|
6155
6158
|
/**
|
|
6156
6159
|
Create a line decoration, which can add DOM attributes to the
|
|
@@ -6206,7 +6209,7 @@ class B2 extends U {
|
|
|
6206
6209
|
}
|
|
6207
6210
|
B2.prototype.mapMode = Ue.TrackBefore;
|
|
6208
6211
|
B2.prototype.point = !0;
|
|
6209
|
-
class
|
|
6212
|
+
class l0 extends U {
|
|
6210
6213
|
constructor(e, t, i, s, o, r) {
|
|
6211
6214
|
super(t, i, o, e), this.block = s, this.isReplace = r, this.mapMode = s ? t <= 0 ? Ue.TrackBefore : Ue.TrackAfter : Ue.TrackDel;
|
|
6212
6215
|
}
|
|
@@ -6218,7 +6221,7 @@ class r0 extends U {
|
|
|
6218
6221
|
return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0);
|
|
6219
6222
|
}
|
|
6220
6223
|
eq(e) {
|
|
6221
|
-
return e instanceof
|
|
6224
|
+
return e instanceof l0 && Cd(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide;
|
|
6222
6225
|
}
|
|
6223
6226
|
range(e, t = e) {
|
|
6224
6227
|
if (this.isReplace && (e > t || e == t && this.startSide > 0 && this.endSide <= 0))
|
|
@@ -6228,7 +6231,7 @@ class r0 extends U {
|
|
|
6228
6231
|
return super.range(e, t);
|
|
6229
6232
|
}
|
|
6230
6233
|
}
|
|
6231
|
-
|
|
6234
|
+
l0.prototype.point = !0;
|
|
6232
6235
|
function k1(n, e = !1) {
|
|
6233
6236
|
let { inclusiveStart: t, inclusiveEnd: i } = n;
|
|
6234
6237
|
return t == null && (t = n.inclusive), i == null && (i = n.inclusive), { start: t ?? e, end: i ?? e };
|
|
@@ -6240,21 +6243,21 @@ function fi(n, e, t, i = 0) {
|
|
|
6240
6243
|
let s = t.length - 1;
|
|
6241
6244
|
s >= 0 && t[s] + i >= n ? t[s] = Math.max(t[s], e) : t.push(n, e);
|
|
6242
6245
|
}
|
|
6243
|
-
class
|
|
6246
|
+
class De extends ue {
|
|
6244
6247
|
constructor() {
|
|
6245
6248
|
super(...arguments), this.children = [], this.length = 0, this.prevAttrs = void 0, this.attrs = null, this.breakAfter = 0;
|
|
6246
6249
|
}
|
|
6247
6250
|
// Consumes source
|
|
6248
6251
|
merge(e, t, i, s, o, r) {
|
|
6249
6252
|
if (i) {
|
|
6250
|
-
if (!(i instanceof
|
|
6253
|
+
if (!(i instanceof De))
|
|
6251
6254
|
return !1;
|
|
6252
6255
|
this.dom || i.transferDOM(this);
|
|
6253
6256
|
}
|
|
6254
6257
|
return s && this.setDeco(i ? i.attrs : null), w1(this, e, t, i ? i.children.slice() : [], o, r), !0;
|
|
6255
6258
|
}
|
|
6256
6259
|
split(e) {
|
|
6257
|
-
let t = new
|
|
6260
|
+
let t = new De();
|
|
6258
6261
|
if (t.breakAfter = this.breakAfter, this.length == 0)
|
|
6259
6262
|
return t;
|
|
6260
6263
|
let { i, off: s } = this.childPos(e);
|
|
@@ -6289,9 +6292,9 @@ class Me extends de {
|
|
|
6289
6292
|
var i;
|
|
6290
6293
|
this.dom ? this.flags & 4 && (d1(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (cs(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
|
|
6291
6294
|
let s = this.dom.lastChild;
|
|
6292
|
-
for (; s &&
|
|
6295
|
+
for (; s && ue.get(s) instanceof Ut; )
|
|
6293
6296
|
s = s.lastChild;
|
|
6294
|
-
if (!s || !this.length || s.nodeName != "BR" && ((i =
|
|
6297
|
+
if (!s || !this.length || s.nodeName != "BR" && ((i = ue.get(s)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!B.ios || !this.children.some((o) => o instanceof yt))) {
|
|
6295
6298
|
let o = document.createElement("BR");
|
|
6296
6299
|
o.cmIgnore = !0, this.dom.appendChild(o);
|
|
6297
6300
|
}
|
|
@@ -6326,7 +6329,7 @@ class Me extends de {
|
|
|
6326
6329
|
return i;
|
|
6327
6330
|
}
|
|
6328
6331
|
become(e) {
|
|
6329
|
-
return e instanceof
|
|
6332
|
+
return e instanceof De && this.children.length == 0 && e.children.length == 0 && Oi(this.attrs, e.attrs) && this.breakAfter == e.breakAfter;
|
|
6330
6333
|
}
|
|
6331
6334
|
covers() {
|
|
6332
6335
|
return !0;
|
|
@@ -6335,7 +6338,7 @@ class Me extends de {
|
|
|
6335
6338
|
for (let i = 0, s = 0; i < e.children.length; i++) {
|
|
6336
6339
|
let o = e.children[i], r = s + o.length;
|
|
6337
6340
|
if (r >= t) {
|
|
6338
|
-
if (o instanceof
|
|
6341
|
+
if (o instanceof De)
|
|
6339
6342
|
return o;
|
|
6340
6343
|
if (r > t)
|
|
6341
6344
|
break;
|
|
@@ -6345,12 +6348,12 @@ class Me extends de {
|
|
|
6345
6348
|
return null;
|
|
6346
6349
|
}
|
|
6347
6350
|
}
|
|
6348
|
-
class
|
|
6351
|
+
class Gt extends ue {
|
|
6349
6352
|
constructor(e, t, i) {
|
|
6350
6353
|
super(), this.widget = e, this.length = t, this.deco = i, this.breakAfter = 0, this.prevWidget = null;
|
|
6351
6354
|
}
|
|
6352
6355
|
merge(e, t, i, s, o, r) {
|
|
6353
|
-
return i && (!(i instanceof
|
|
6356
|
+
return i && (!(i instanceof Gt) || !this.widget.compare(i.widget) || e > 0 && o <= 0 || t < this.length && r <= 0) ? !1 : (this.length = e + (i ? i.length : 0) + (this.length - t), !0);
|
|
6354
6357
|
}
|
|
6355
6358
|
domAtPos(e) {
|
|
6356
6359
|
return e == 0 ? Fe.before(this.dom) : Fe.after(this.dom, e == this.length);
|
|
@@ -6358,7 +6361,7 @@ class Wt extends de {
|
|
|
6358
6361
|
split(e) {
|
|
6359
6362
|
let t = this.length - e;
|
|
6360
6363
|
this.length = e;
|
|
6361
|
-
let i = new
|
|
6364
|
+
let i = new Gt(this.widget, t, this.deco);
|
|
6362
6365
|
return i.breakAfter = this.breakAfter, i;
|
|
6363
6366
|
}
|
|
6364
6367
|
get children() {
|
|
@@ -6374,7 +6377,7 @@ class Wt extends de {
|
|
|
6374
6377
|
return null;
|
|
6375
6378
|
}
|
|
6376
6379
|
become(e) {
|
|
6377
|
-
return e instanceof
|
|
6380
|
+
return e instanceof Gt && e.widget.constructor == this.widget.constructor ? (e.widget.compare(this.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, this.deco = e.deco, this.breakAfter = e.breakAfter, !0) : !1;
|
|
6378
6381
|
}
|
|
6379
6382
|
ignoreMutation() {
|
|
6380
6383
|
return !0;
|
|
@@ -6400,7 +6403,7 @@ class Wt extends de {
|
|
|
6400
6403
|
return t == i ? !1 : e < 0 ? t < 0 : i > 0;
|
|
6401
6404
|
}
|
|
6402
6405
|
}
|
|
6403
|
-
class us extends
|
|
6406
|
+
class us extends c0 {
|
|
6404
6407
|
constructor(e) {
|
|
6405
6408
|
super(), this.height = e;
|
|
6406
6409
|
}
|
|
@@ -6432,10 +6435,10 @@ class u2 {
|
|
|
6432
6435
|
if (this.content.length == 0)
|
|
6433
6436
|
return !this.breakAtStart && this.doc.lineAt(this.pos).from != this.pos;
|
|
6434
6437
|
let e = this.content[this.content.length - 1];
|
|
6435
|
-
return !(e.breakAfter || e instanceof
|
|
6438
|
+
return !(e.breakAfter || e instanceof Gt && e.deco.endSide < 0);
|
|
6436
6439
|
}
|
|
6437
6440
|
getLine() {
|
|
6438
|
-
return this.curLine || (this.content.push(this.curLine = new
|
|
6441
|
+
return this.curLine || (this.content.push(this.curLine = new De()), this.atCursorPos = !0), this.curLine;
|
|
6439
6442
|
}
|
|
6440
6443
|
flushBuffer(e = this.bufferMarks) {
|
|
6441
6444
|
this.pendingBuffer && (this.curLine.append(G2(new G0(-1), e), e.length), this.pendingBuffer = 0);
|
|
@@ -6444,7 +6447,7 @@ class u2 {
|
|
|
6444
6447
|
this.flushBuffer(), this.curLine = null, this.content.push(e);
|
|
6445
6448
|
}
|
|
6446
6449
|
finish(e) {
|
|
6447
|
-
this.pendingBuffer && e <= this.bufferMarks.length ? this.flushBuffer() : this.pendingBuffer = 0, !this.posCovered() && !(e && this.content.length && this.content[this.content.length - 1] instanceof
|
|
6450
|
+
this.pendingBuffer && e <= this.bufferMarks.length ? this.flushBuffer() : this.pendingBuffer = 0, !this.posCovered() && !(e && this.content.length && this.content[this.content.length - 1] instanceof Gt) && this.getLine();
|
|
6448
6451
|
}
|
|
6449
6452
|
buildText(e, t, i) {
|
|
6450
6453
|
for (; e > 0; ) {
|
|
@@ -6471,18 +6474,18 @@ class u2 {
|
|
|
6471
6474
|
this.buildText(t - e, i, s), this.pos = t, this.openStart < 0 && (this.openStart = s);
|
|
6472
6475
|
}
|
|
6473
6476
|
point(e, t, i, s, o, r) {
|
|
6474
|
-
if (this.disallowBlockEffectsFor[r] && i instanceof
|
|
6477
|
+
if (this.disallowBlockEffectsFor[r] && i instanceof l0) {
|
|
6475
6478
|
if (i.block)
|
|
6476
6479
|
throw new RangeError("Block decorations may not be specified via plugins");
|
|
6477
6480
|
if (t > this.doc.lineAt(this.pos).to)
|
|
6478
6481
|
throw new RangeError("Decorations that replace line breaks may not be specified via plugins");
|
|
6479
6482
|
}
|
|
6480
6483
|
let l = t - e;
|
|
6481
|
-
if (i instanceof
|
|
6484
|
+
if (i instanceof l0)
|
|
6482
6485
|
if (i.block)
|
|
6483
|
-
i.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new
|
|
6486
|
+
i.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new Gt(i.widget || F0.block, l, i));
|
|
6484
6487
|
else {
|
|
6485
|
-
let a =
|
|
6488
|
+
let a = t0.create(i.widget || F0.inline, l, l ? 0 : i.startSide), c = this.atCursorPos && !a.isEditable && o <= s.length && (e < t || i.startSide > 0), h = !a.isEditable && (e < t || o > s.length || i.startSide <= 0), u = this.getLine();
|
|
6486
6489
|
this.pendingBuffer == 2 && !c && !a.isEditable && (this.pendingBuffer = 0), this.flushBuffer(s), c && (u.append(G2(new G0(1), s), o), o = s.length + Math.max(0, o - s.length)), u.append(G2(a, s), o), this.atCursorPos = h, this.pendingBuffer = h ? e < t || o > s.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = s.slice());
|
|
6487
6490
|
}
|
|
6488
6491
|
else this.doc.lineAt(this.pos).from == this.pos && this.getLine().addLineDeco(i);
|
|
@@ -6495,10 +6498,10 @@ class u2 {
|
|
|
6495
6498
|
}
|
|
6496
6499
|
function G2(n, e) {
|
|
6497
6500
|
for (let t of e)
|
|
6498
|
-
n = new
|
|
6501
|
+
n = new Ut(t, [n], n.length);
|
|
6499
6502
|
return n;
|
|
6500
6503
|
}
|
|
6501
|
-
class F0 extends
|
|
6504
|
+
class F0 extends c0 {
|
|
6502
6505
|
constructor(e) {
|
|
6503
6506
|
super(), this.tag = e;
|
|
6504
6507
|
}
|
|
@@ -6527,7 +6530,7 @@ function C1(n) {
|
|
|
6527
6530
|
e.push(1 << +n[t]);
|
|
6528
6531
|
return e;
|
|
6529
6532
|
}
|
|
6530
|
-
const Od = /* @__PURE__ */ C1("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Md = /* @__PURE__ */ C1("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), ds = /* @__PURE__ */ Object.create(null),
|
|
6533
|
+
const Od = /* @__PURE__ */ C1("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Md = /* @__PURE__ */ C1("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), ds = /* @__PURE__ */ Object.create(null), Ot = [];
|
|
6531
6534
|
for (let n of ["()", "[]", "{}"]) {
|
|
6532
6535
|
let e = /* @__PURE__ */ n.charCodeAt(0), t = /* @__PURE__ */ n.charCodeAt(1);
|
|
6533
6536
|
ds[e] = t, ds[t] = -e;
|
|
@@ -6536,7 +6539,7 @@ function O1(n) {
|
|
|
6536
6539
|
return n <= 247 ? Od[n] : 1424 <= n && n <= 1524 ? 2 : 1536 <= n && n <= 1785 ? Md[n - 1536] : 1774 <= n && n <= 2220 ? 4 : 8192 <= n && n <= 8204 ? 256 : 64336 <= n && n <= 65023 ? 4 : 1;
|
|
6537
6540
|
}
|
|
6538
6541
|
const Dd = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;
|
|
6539
|
-
class
|
|
6542
|
+
class i0 {
|
|
6540
6543
|
/**
|
|
6541
6544
|
The direction of this span.
|
|
6542
6545
|
*/
|
|
@@ -6589,27 +6592,27 @@ function M1(n, e) {
|
|
|
6589
6592
|
}
|
|
6590
6593
|
return !0;
|
|
6591
6594
|
}
|
|
6592
|
-
const
|
|
6595
|
+
const ce = [];
|
|
6593
6596
|
function Td(n, e, t, i, s) {
|
|
6594
6597
|
for (let o = 0; o <= i.length; o++) {
|
|
6595
6598
|
let r = o ? i[o - 1].to : e, l = o < i.length ? i[o].from : t, a = o ? 256 : s;
|
|
6596
6599
|
for (let c = r, h = a, u = a; c < l; c++) {
|
|
6597
6600
|
let d = O1(n.charCodeAt(c));
|
|
6598
|
-
d == 512 ? d = h : d == 8 && u == 4 && (d = 16),
|
|
6601
|
+
d == 512 ? d = h : d == 8 && u == 4 && (d = 16), ce[c] = d == 4 ? 2 : d, d & 7 && (u = d), h = d;
|
|
6599
6602
|
}
|
|
6600
6603
|
for (let c = r, h = a, u = a; c < l; c++) {
|
|
6601
|
-
let d =
|
|
6604
|
+
let d = ce[c];
|
|
6602
6605
|
if (d == 128)
|
|
6603
|
-
c < l - 1 && h ==
|
|
6606
|
+
c < l - 1 && h == ce[c + 1] && h & 24 ? d = ce[c] = h : ce[c] = 256;
|
|
6604
6607
|
else if (d == 64) {
|
|
6605
6608
|
let f = c + 1;
|
|
6606
|
-
for (; f < l &&
|
|
6609
|
+
for (; f < l && ce[f] == 64; )
|
|
6607
6610
|
f++;
|
|
6608
|
-
let p = c && h == 8 || f < t &&
|
|
6611
|
+
let p = c && h == 8 || f < t && ce[f] == 8 ? u == 1 ? 1 : 8 : 256;
|
|
6609
6612
|
for (let g = c; g < f; g++)
|
|
6610
|
-
|
|
6613
|
+
ce[g] = p;
|
|
6611
6614
|
c = f - 1;
|
|
6612
|
-
} else d == 8 && u == 1 && (
|
|
6615
|
+
} else d == 8 && u == 1 && (ce[c] = 1);
|
|
6613
6616
|
h = d, d & 7 && (u = d);
|
|
6614
6617
|
}
|
|
6615
6618
|
}
|
|
@@ -6622,29 +6625,29 @@ function Ad(n, e, t, i, s) {
|
|
|
6622
6625
|
if (f = ds[d = n.charCodeAt(u)])
|
|
6623
6626
|
if (f < 0) {
|
|
6624
6627
|
for (let g = l - 3; g >= 0; g -= 3)
|
|
6625
|
-
if (
|
|
6626
|
-
let m =
|
|
6627
|
-
v && (
|
|
6628
|
+
if (Ot[g + 1] == -f) {
|
|
6629
|
+
let m = Ot[g + 2], v = m & 2 ? s : m & 4 ? m & 1 ? o : s : 0;
|
|
6630
|
+
v && (ce[u] = ce[Ot[g]] = v), l = g;
|
|
6628
6631
|
break;
|
|
6629
6632
|
}
|
|
6630
6633
|
} else {
|
|
6631
|
-
if (
|
|
6634
|
+
if (Ot.length == 189)
|
|
6632
6635
|
break;
|
|
6633
|
-
|
|
6636
|
+
Ot[l++] = u, Ot[l++] = d, Ot[l++] = a;
|
|
6634
6637
|
}
|
|
6635
|
-
else if ((p =
|
|
6638
|
+
else if ((p = ce[u]) == 2 || p == 1) {
|
|
6636
6639
|
let g = p == s;
|
|
6637
6640
|
a = g ? 0 : 1;
|
|
6638
6641
|
for (let m = l - 3; m >= 0; m -= 3) {
|
|
6639
|
-
let v =
|
|
6642
|
+
let v = Ot[m + 2];
|
|
6640
6643
|
if (v & 2)
|
|
6641
6644
|
break;
|
|
6642
6645
|
if (g)
|
|
6643
|
-
|
|
6646
|
+
Ot[m + 2] |= 2;
|
|
6644
6647
|
else {
|
|
6645
6648
|
if (v & 4)
|
|
6646
6649
|
break;
|
|
6647
|
-
|
|
6650
|
+
Ot[m + 2] |= 4;
|
|
6648
6651
|
}
|
|
6649
6652
|
}
|
|
6650
6653
|
}
|
|
@@ -6654,7 +6657,7 @@ function Pd(n, e, t, i) {
|
|
|
6654
6657
|
for (let s = 0, o = i; s <= t.length; s++) {
|
|
6655
6658
|
let r = s ? t[s - 1].to : n, l = s < t.length ? t[s].from : e;
|
|
6656
6659
|
for (let a = r; a < l; ) {
|
|
6657
|
-
let c =
|
|
6660
|
+
let c = ce[a];
|
|
6658
6661
|
if (c == 256) {
|
|
6659
6662
|
let h = a + 1;
|
|
6660
6663
|
for (; ; )
|
|
@@ -6662,13 +6665,13 @@ function Pd(n, e, t, i) {
|
|
|
6662
6665
|
if (s == t.length)
|
|
6663
6666
|
break;
|
|
6664
6667
|
h = t[s++].to, l = s < t.length ? t[s].from : e;
|
|
6665
|
-
} else if (
|
|
6668
|
+
} else if (ce[h] == 256)
|
|
6666
6669
|
h++;
|
|
6667
6670
|
else
|
|
6668
6671
|
break;
|
|
6669
|
-
let u = o == 1, d = (h < e ?
|
|
6672
|
+
let u = o == 1, d = (h < e ? ce[h] : i) == 1, f = u == d ? u ? 1 : 2 : i;
|
|
6670
6673
|
for (let p = h, g = s, m = g ? t[g - 1].to : n; p > a; )
|
|
6671
|
-
p == m && (p = t[--g].from, m = g ? t[g - 1].to : n),
|
|
6674
|
+
p == m && (p = t[--g].from, m = g ? t[g - 1].to : n), ce[--p] = f;
|
|
6672
6675
|
a = h;
|
|
6673
6676
|
} else
|
|
6674
6677
|
o = c, a++;
|
|
@@ -6681,7 +6684,7 @@ function fs(n, e, t, i, s, o, r) {
|
|
|
6681
6684
|
for (let a = e, c = 0; a < t; ) {
|
|
6682
6685
|
let h = !0, u = !1;
|
|
6683
6686
|
if (c == o.length || a < o[c].from) {
|
|
6684
|
-
let g =
|
|
6687
|
+
let g = ce[a];
|
|
6685
6688
|
g != l && (h = !1, u = g == 16);
|
|
6686
6689
|
}
|
|
6687
6690
|
let d = !h && l == 1 ? [] : null, f = h ? i : i + 1, p = a;
|
|
@@ -6697,7 +6700,7 @@ function fs(n, e, t, i, s, o, r) {
|
|
|
6697
6700
|
if (v < o.length && o[v].from == m)
|
|
6698
6701
|
m = o[v++].to;
|
|
6699
6702
|
else {
|
|
6700
|
-
if (
|
|
6703
|
+
if (ce[m] == l)
|
|
6701
6704
|
break e;
|
|
6702
6705
|
break;
|
|
6703
6706
|
}
|
|
@@ -6705,23 +6708,23 @@ function fs(n, e, t, i, s, o, r) {
|
|
|
6705
6708
|
if (c++, d)
|
|
6706
6709
|
d.push(g);
|
|
6707
6710
|
else {
|
|
6708
|
-
g.from > a && r.push(new
|
|
6711
|
+
g.from > a && r.push(new i0(a, g.from, f));
|
|
6709
6712
|
let m = g.direction == k0 != !(f % 2);
|
|
6710
6713
|
ps(n, m ? i + 1 : i, s, g.inner, g.from, g.to, r), a = g.to;
|
|
6711
6714
|
}
|
|
6712
6715
|
p = g.to;
|
|
6713
6716
|
} else {
|
|
6714
|
-
if (p == t || (h ?
|
|
6717
|
+
if (p == t || (h ? ce[p] != l : ce[p] == l))
|
|
6715
6718
|
break;
|
|
6716
6719
|
p++;
|
|
6717
6720
|
}
|
|
6718
|
-
d ? fs(n, a, p, i + 1, s, d, r) : a < p && r.push(new
|
|
6721
|
+
d ? fs(n, a, p, i + 1, s, d, r) : a < p && r.push(new i0(a, p, f)), a = p;
|
|
6719
6722
|
}
|
|
6720
6723
|
else
|
|
6721
6724
|
for (let a = t, c = o.length; a > e; ) {
|
|
6722
6725
|
let h = !0, u = !1;
|
|
6723
6726
|
if (!c || a > o[c - 1].to) {
|
|
6724
|
-
let g =
|
|
6727
|
+
let g = ce[a - 1];
|
|
6725
6728
|
g != l && (h = !1, u = g == 16);
|
|
6726
6729
|
}
|
|
6727
6730
|
let d = !h && l == 1 ? [] : null, f = h ? i : i + 1, p = a;
|
|
@@ -6737,7 +6740,7 @@ function fs(n, e, t, i, s, o, r) {
|
|
|
6737
6740
|
if (v && o[v - 1].to == m)
|
|
6738
6741
|
m = o[--v].from;
|
|
6739
6742
|
else {
|
|
6740
|
-
if (
|
|
6743
|
+
if (ce[m - 1] == l)
|
|
6741
6744
|
break e;
|
|
6742
6745
|
break;
|
|
6743
6746
|
}
|
|
@@ -6745,17 +6748,17 @@ function fs(n, e, t, i, s, o, r) {
|
|
|
6745
6748
|
if (d)
|
|
6746
6749
|
d.push(g);
|
|
6747
6750
|
else {
|
|
6748
|
-
g.to < a && r.push(new
|
|
6751
|
+
g.to < a && r.push(new i0(g.to, a, f));
|
|
6749
6752
|
let m = g.direction == k0 != !(f % 2);
|
|
6750
6753
|
ps(n, m ? i + 1 : i, s, g.inner, g.from, g.to, r), a = g.from;
|
|
6751
6754
|
}
|
|
6752
6755
|
p = g.from;
|
|
6753
6756
|
} else {
|
|
6754
|
-
if (p == e || (h ?
|
|
6757
|
+
if (p == e || (h ? ce[p - 1] != l : ce[p - 1] == l))
|
|
6755
6758
|
break;
|
|
6756
6759
|
p--;
|
|
6757
6760
|
}
|
|
6758
|
-
d ? fs(n, p, a, i + 1, s, d, r) : p < a && r.push(new
|
|
6761
|
+
d ? fs(n, p, a, i + 1, s, d, r) : p < a && r.push(new i0(p, a, f)), a = p;
|
|
6759
6762
|
}
|
|
6760
6763
|
}
|
|
6761
6764
|
function ps(n, e, t, i, s, o, r) {
|
|
@@ -6764,22 +6767,22 @@ function ps(n, e, t, i, s, o, r) {
|
|
|
6764
6767
|
}
|
|
6765
6768
|
function zd(n, e, t) {
|
|
6766
6769
|
if (!n)
|
|
6767
|
-
return [new
|
|
6770
|
+
return [new i0(0, 0, e == qs ? 1 : 0)];
|
|
6768
6771
|
if (e == k0 && !t.length && !Dd.test(n))
|
|
6769
6772
|
return D1(n.length);
|
|
6770
6773
|
if (t.length)
|
|
6771
|
-
for (; n.length >
|
|
6772
|
-
|
|
6774
|
+
for (; n.length > ce.length; )
|
|
6775
|
+
ce[ce.length] = 256;
|
|
6773
6776
|
let i = [], s = e == k0 ? 0 : 1;
|
|
6774
6777
|
return ps(n, s, s, t, 0, n.length, i), i;
|
|
6775
6778
|
}
|
|
6776
6779
|
function D1(n) {
|
|
6777
|
-
return [new
|
|
6780
|
+
return [new i0(0, n, 0)];
|
|
6778
6781
|
}
|
|
6779
6782
|
let T1 = "";
|
|
6780
6783
|
function Vd(n, e, t, i, s) {
|
|
6781
6784
|
var o;
|
|
6782
|
-
let r = i.head - n.from, l =
|
|
6785
|
+
let r = i.head - n.from, l = i0.find(e, r, (o = i.bidiLevel) !== null && o !== void 0 ? o : -1, i.assoc), a = e[l], c = a.side(s, t);
|
|
6783
6786
|
if (r == c) {
|
|
6784
6787
|
let d = l += s ? 1 : -1;
|
|
6785
6788
|
if (d < 0 || d >= e.length)
|
|
@@ -6822,7 +6825,7 @@ function tt(n, e, t) {
|
|
|
6822
6825
|
let i = n.facet(V1);
|
|
6823
6826
|
i.length ? i[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
|
|
6824
6827
|
}
|
|
6825
|
-
const
|
|
6828
|
+
const $t = /* @__PURE__ */ I.define({ combine: (n) => n.length ? n[0] : !0 });
|
|
6826
6829
|
let Bd = 0;
|
|
6827
6830
|
const P0 = /* @__PURE__ */ I.define({
|
|
6828
6831
|
combine(n) {
|
|
@@ -6834,7 +6837,7 @@ const P0 = /* @__PURE__ */ I.define({
|
|
|
6834
6837
|
});
|
|
6835
6838
|
}
|
|
6836
6839
|
});
|
|
6837
|
-
class
|
|
6840
|
+
class Ae {
|
|
6838
6841
|
constructor(e, t, i, s, o) {
|
|
6839
6842
|
this.id = e, this.create = t, this.domEventHandlers = i, this.domEventObservers = s, this.baseExtensions = o(this), this.extension = this.baseExtensions.concat(P0.of({ plugin: this, arg: void 0 }));
|
|
6840
6843
|
}
|
|
@@ -6850,7 +6853,7 @@ class Te {
|
|
|
6850
6853
|
*/
|
|
6851
6854
|
static define(e, t) {
|
|
6852
6855
|
const { eventHandlers: i, eventObservers: s, provide: o, decorations: r } = t || {};
|
|
6853
|
-
return new
|
|
6856
|
+
return new Ae(Bd++, e, i, s, (l) => {
|
|
6854
6857
|
let a = [];
|
|
6855
6858
|
return r && a.push(S2.of((c) => {
|
|
6856
6859
|
let h = c.plugin(l);
|
|
@@ -6863,7 +6866,7 @@ class Te {
|
|
|
6863
6866
|
editor view as argument.
|
|
6864
6867
|
*/
|
|
6865
6868
|
static fromClass(e, t) {
|
|
6866
|
-
return
|
|
6869
|
+
return Ae.define((i, s) => new e(i, s), t);
|
|
6867
6870
|
}
|
|
6868
6871
|
}
|
|
6869
6872
|
class wn {
|
|
@@ -6982,7 +6985,7 @@ class pt {
|
|
|
6982
6985
|
}
|
|
6983
6986
|
class Mi {
|
|
6984
6987
|
constructor(e, t, i) {
|
|
6985
|
-
this.view = e, this.state = t, this.transactions = i, this.flags = 0, this.startState = e.state, this.changes =
|
|
6988
|
+
this.view = e, this.state = t, this.transactions = i, this.flags = 0, this.startState = e.state, this.changes = ze.empty(this.startState.doc.length);
|
|
6986
6989
|
for (let o of i)
|
|
6987
6990
|
this.changes = this.changes.compose(o.changes);
|
|
6988
6991
|
let s = [];
|
|
@@ -7050,12 +7053,12 @@ class Mi {
|
|
|
7050
7053
|
return this.flags == 0 && this.transactions.length == 0;
|
|
7051
7054
|
}
|
|
7052
7055
|
}
|
|
7053
|
-
class nr extends
|
|
7056
|
+
class nr extends ue {
|
|
7054
7057
|
get length() {
|
|
7055
7058
|
return this.view.state.doc.length;
|
|
7056
7059
|
}
|
|
7057
7060
|
constructor(e) {
|
|
7058
|
-
super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = U.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new
|
|
7061
|
+
super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = U.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new De()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new pt(0, 0, 0, e.state.doc.length)], 0, null);
|
|
7059
7062
|
}
|
|
7060
7063
|
// Update the document view to a given state.
|
|
7061
7064
|
update(e) {
|
|
@@ -7090,7 +7093,7 @@ class nr extends de {
|
|
|
7090
7093
|
let o = [];
|
|
7091
7094
|
if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length)
|
|
7092
7095
|
for (let r of this.children)
|
|
7093
|
-
r instanceof
|
|
7096
|
+
r instanceof Gt && r.widget instanceof us && o.push(r.dom);
|
|
7094
7097
|
s.updateGaps(o);
|
|
7095
7098
|
}
|
|
7096
7099
|
updateChildren(e, t, i) {
|
|
@@ -7122,8 +7125,8 @@ class nr extends de {
|
|
|
7122
7125
|
let t = new yt(e.text.nodeValue);
|
|
7123
7126
|
t.flags |= 8;
|
|
7124
7127
|
for (let { deco: s } of e.marks)
|
|
7125
|
-
t = new
|
|
7126
|
-
let i = new
|
|
7128
|
+
t = new Ut(s, [t], t.length);
|
|
7129
|
+
let i = new De();
|
|
7127
7130
|
return i.append(t, 0), i;
|
|
7128
7131
|
}
|
|
7129
7132
|
fixCompositionDOM(e) {
|
|
@@ -7132,7 +7135,7 @@ class nr extends de {
|
|
|
7132
7135
|
(a) => a.flags & 7
|
|
7133
7136
|
/* ViewFlag.Dirty */
|
|
7134
7137
|
) ? 1 : 0), this.markedForComposition.add(r);
|
|
7135
|
-
let l =
|
|
7138
|
+
let l = ue.get(o);
|
|
7136
7139
|
l && l != r && (l.dom = null), r.setDOM(o);
|
|
7137
7140
|
}, i = this.childPos(e.range.fromB, 1), s = this.children[i.i];
|
|
7138
7141
|
t(e.line, s);
|
|
@@ -7142,7 +7145,7 @@ class nr extends de {
|
|
|
7142
7145
|
// Sync the DOM selection to this.state.selection
|
|
7143
7146
|
updateSelection(e = !1, t = !1) {
|
|
7144
7147
|
(e || !this.view.observer.selectionRange.focusNode) && this.view.observer.readSelectionRange();
|
|
7145
|
-
let i = this.view.root.activeElement, s = i == this.dom, o = !s && !(this.view.state.facet(
|
|
7148
|
+
let i = this.view.root.activeElement, s = i == this.dom, o = !s && !(this.view.state.facet($t) || this.dom.tabIndex > -1) && di(this.dom, this.view.observer.selectionRange) && !(i && this.dom.contains(i));
|
|
7146
7149
|
if (!(s || t || o))
|
|
7147
7150
|
return;
|
|
7148
7151
|
let r = this.forceSelection;
|
|
@@ -7190,7 +7193,7 @@ class nr extends de {
|
|
|
7190
7193
|
let { view: e } = this, t = e.state.selection.main, i = x2(e.root), { anchorNode: s, anchorOffset: o } = e.observer.selectionRange;
|
|
7191
7194
|
if (!i || !t.empty || !t.assoc || !i.modify)
|
|
7192
7195
|
return;
|
|
7193
|
-
let r =
|
|
7196
|
+
let r = De.find(this, t.head);
|
|
7194
7197
|
if (!r)
|
|
7195
7198
|
return;
|
|
7196
7199
|
let l = r.posAtStart;
|
|
@@ -7211,18 +7214,18 @@ class nr extends de {
|
|
|
7211
7214
|
if (e.node != t)
|
|
7212
7215
|
return e;
|
|
7213
7216
|
for (let s = e.offset; !i && s < t.childNodes.length; s++) {
|
|
7214
|
-
let o =
|
|
7215
|
-
o instanceof
|
|
7217
|
+
let o = ue.get(t.childNodes[s]);
|
|
7218
|
+
o instanceof De && (i = o.domAtPos(0));
|
|
7216
7219
|
}
|
|
7217
7220
|
for (let s = e.offset - 1; !i && s >= 0; s--) {
|
|
7218
|
-
let o =
|
|
7219
|
-
o instanceof
|
|
7221
|
+
let o = ue.get(t.childNodes[s]);
|
|
7222
|
+
o instanceof De && (i = o.domAtPos(o.length));
|
|
7220
7223
|
}
|
|
7221
7224
|
return i ? new Fe(i.node, i.offset, !0) : e;
|
|
7222
7225
|
}
|
|
7223
7226
|
nearest(e) {
|
|
7224
7227
|
for (let t = e; t; ) {
|
|
7225
|
-
let i =
|
|
7228
|
+
let i = ue.get(t);
|
|
7226
7229
|
if (i && i.rootView == this)
|
|
7227
7230
|
return i;
|
|
7228
7231
|
t = t.parentNode;
|
|
@@ -7239,7 +7242,7 @@ class nr extends de {
|
|
|
7239
7242
|
let { i: t, off: i } = this.childCursor().findPos(e, -1);
|
|
7240
7243
|
for (; t < this.children.length - 1; ) {
|
|
7241
7244
|
let s = this.children[t];
|
|
7242
|
-
if (i < s.length || s instanceof
|
|
7245
|
+
if (i < s.length || s instanceof De)
|
|
7243
7246
|
break;
|
|
7244
7247
|
t++, i = 0;
|
|
7245
7248
|
}
|
|
@@ -7251,9 +7254,9 @@ class nr extends de {
|
|
|
7251
7254
|
let l = this.children[r], a = o - l.breakAfter, c = a - l.length;
|
|
7252
7255
|
if (a < e)
|
|
7253
7256
|
break;
|
|
7254
|
-
if (c <= e && (c < e || l.covers(-1)) && (a > e || l.covers(1)) && (!i || l instanceof
|
|
7257
|
+
if (c <= e && (c < e || l.covers(-1)) && (a > e || l.covers(1)) && (!i || l instanceof De && !(i instanceof De && t >= 0)))
|
|
7255
7258
|
i = l, s = c;
|
|
7256
|
-
else if (i && c == e && a == e && l instanceof
|
|
7259
|
+
else if (i && c == e && a == e && l instanceof Gt && Math.abs(t) < 2) {
|
|
7257
7260
|
if (l.deco.startSide < 0)
|
|
7258
7261
|
break;
|
|
7259
7262
|
r && (i = null);
|
|
@@ -7264,7 +7267,7 @@ class nr extends de {
|
|
|
7264
7267
|
}
|
|
7265
7268
|
coordsForChar(e) {
|
|
7266
7269
|
let { i: t, off: i } = this.childPos(e, 1), s = this.children[t];
|
|
7267
|
-
if (!(s instanceof
|
|
7270
|
+
if (!(s instanceof De))
|
|
7268
7271
|
return null;
|
|
7269
7272
|
for (; s.children.length; ) {
|
|
7270
7273
|
let { i: l, off: a } = s.childPos(i, 1);
|
|
@@ -7315,7 +7318,7 @@ class nr extends de {
|
|
|
7315
7318
|
}
|
|
7316
7319
|
measureTextSize() {
|
|
7317
7320
|
for (let o of this.children)
|
|
7318
|
-
if (o instanceof
|
|
7321
|
+
if (o instanceof De) {
|
|
7319
7322
|
let r = o.measureTextSize();
|
|
7320
7323
|
if (r)
|
|
7321
7324
|
return r;
|
|
@@ -7404,11 +7407,11 @@ function F1(n, e) {
|
|
|
7404
7407
|
return null;
|
|
7405
7408
|
let i = p1(t.focusNode, t.focusOffset), s = g1(t.focusNode, t.focusOffset), o = i || s;
|
|
7406
7409
|
if (s && i && s.node != i.node) {
|
|
7407
|
-
let l =
|
|
7410
|
+
let l = ue.get(s.node);
|
|
7408
7411
|
if (!l || l instanceof yt && l.text != s.node.nodeValue)
|
|
7409
7412
|
o = s;
|
|
7410
7413
|
else if (n.docView.lastCompositionAfterCursor) {
|
|
7411
|
-
let a =
|
|
7414
|
+
let a = ue.get(i.node);
|
|
7412
7415
|
!a || a instanceof yt && a.text != i.node.nodeValue || (o = s);
|
|
7413
7416
|
}
|
|
7414
7417
|
}
|
|
@@ -7426,11 +7429,11 @@ function Rd(n, e, t) {
|
|
|
7426
7429
|
return null;
|
|
7427
7430
|
let a = e.invertedDesc, c = new pt(a.mapPos(o), a.mapPos(r), o, r), h = [];
|
|
7428
7431
|
for (let u = s.parentNode; ; u = u.parentNode) {
|
|
7429
|
-
let d =
|
|
7430
|
-
if (d instanceof
|
|
7432
|
+
let d = ue.get(u);
|
|
7433
|
+
if (d instanceof Ut)
|
|
7431
7434
|
h.push({ node: u, deco: d.mark });
|
|
7432
7435
|
else {
|
|
7433
|
-
if (d instanceof
|
|
7436
|
+
if (d instanceof De || u.nodeName == "DIV" && u.parentNode == n.contentDOM)
|
|
7434
7437
|
return { range: c, text: s, marks: h, line: u };
|
|
7435
7438
|
if (u != n.contentDOM)
|
|
7436
7439
|
h.push({ node: u, deco: new E2({
|
|
@@ -7586,10 +7589,10 @@ function j1(n, e, t, i = -1) {
|
|
|
7586
7589
|
let _ = p.caretRangeFromPoint(h, u);
|
|
7587
7590
|
_ && ({ startContainer: v, startOffset: b } = _, (!n.contentDOM.contains(v) || B.safari && Ud(v, b, h) || B.chrome && qd(v, b, h)) && (v = void 0));
|
|
7588
7591
|
}
|
|
7589
|
-
v && (b = Math.min(
|
|
7592
|
+
v && (b = Math.min(Lt(v), b));
|
|
7590
7593
|
}
|
|
7591
7594
|
if (!v || !n.docView.dom.contains(v)) {
|
|
7592
|
-
let _ =
|
|
7595
|
+
let _ = De.find(n.docView, f);
|
|
7593
7596
|
if (!_)
|
|
7594
7597
|
return d > a.top + a.height / 2 ? a.to : a.from;
|
|
7595
7598
|
({ node: v, offset: b } = ms(_.dom, h, u));
|
|
@@ -7762,7 +7765,7 @@ class Qd {
|
|
|
7762
7765
|
let r = s.nextSibling;
|
|
7763
7766
|
if (r == t)
|
|
7764
7767
|
break;
|
|
7765
|
-
let l =
|
|
7768
|
+
let l = ue.get(s), a = ue.get(r);
|
|
7766
7769
|
(l && a ? l.breakAfter : (l ? l.breakAfter : Ci(s)) || Ci(r) && (s.nodeName != "BR" || s.cmIgnore) && this.text.length > o) && this.lineBreak(), s = r;
|
|
7767
7770
|
}
|
|
7768
7771
|
return this.findPointBefore(i, t), this;
|
|
@@ -7784,7 +7787,7 @@ class Qd {
|
|
|
7784
7787
|
readNode(e) {
|
|
7785
7788
|
if (e.cmIgnore)
|
|
7786
7789
|
return;
|
|
7787
|
-
let t =
|
|
7790
|
+
let t = ue.get(e), i = t && t.overrideDOMText;
|
|
7788
7791
|
if (i != null) {
|
|
7789
7792
|
this.findPointInside(e, i.length);
|
|
7790
7793
|
for (let s = i.iter(); !s.next().done; )
|
|
@@ -7802,7 +7805,7 @@ class Qd {
|
|
|
7802
7805
|
}
|
|
7803
7806
|
function Jd(n, e, t) {
|
|
7804
7807
|
for (; ; ) {
|
|
7805
|
-
if (!e || t <
|
|
7808
|
+
if (!e || t < Lt(e))
|
|
7806
7809
|
return !1;
|
|
7807
7810
|
if (e == n)
|
|
7808
7811
|
return !0;
|
|
@@ -7844,7 +7847,7 @@ function U1(n, e) {
|
|
|
7844
7847
|
to: r + h.toA,
|
|
7845
7848
|
insert: le.of(e.text.slice(h.from, h.toB).split(o2))
|
|
7846
7849
|
});
|
|
7847
|
-
} else i && (!n.hasFocus && n.state.facet(
|
|
7850
|
+
} else i && (!n.hasFocus && n.state.facet($t) || i.main.eq(s)) && (i = null);
|
|
7848
7851
|
if (!t && !i)
|
|
7849
7852
|
return !1;
|
|
7850
7853
|
if (!t && e.typeOver && !s.empty && i && i.main.empty ? t = { from: s.from, to: s.to, insert: n.state.doc.slice(s.from, s.to) } : (B.mac || B.android) && t && t.from == t.to && t.from == s.head - 1 && /^\. ?$/.test(t.insert.toString()) && n.contentDOM.getAttribute("autocorrect") == "off" ? (i && t.insert.length == 2 && (i = O.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: le.of([t.insert.toString().replace(".", " ")]) }) : t && t.from >= s.from && t.to <= s.to && (t.from != s.from || t.to != s.to) && s.to - s.from - (t.to - t.from) <= 4 ? t = {
|
|
@@ -8144,7 +8147,7 @@ function ff(n, e) {
|
|
|
8144
8147
|
if (e.defaultPrevented)
|
|
8145
8148
|
return !1;
|
|
8146
8149
|
for (let t = e.target, i; t != n.contentDOM; t = t.parentNode)
|
|
8147
|
-
if (!t || t.nodeType == 11 || (i =
|
|
8150
|
+
if (!t || t.nodeType == 11 || (i = ue.get(t)) && i.ignoreEvent(e))
|
|
8148
8151
|
return !1;
|
|
8149
8152
|
return !0;
|
|
8150
8153
|
}
|
|
@@ -8227,13 +8230,13 @@ function ur(n, e, t, i) {
|
|
|
8227
8230
|
if (i == 2)
|
|
8228
8231
|
return Gd(n.state, e, t);
|
|
8229
8232
|
{
|
|
8230
|
-
let s =
|
|
8233
|
+
let s = De.find(n.docView, e), o = n.state.doc.lineAt(s ? s.posAtEnd : e), r = s ? s.posAtStart : o.from, l = s ? s.posAtEnd : o.to;
|
|
8231
8234
|
return l < n.state.doc.length && l == o.to && l++, O.range(r, l);
|
|
8232
8235
|
}
|
|
8233
8236
|
}
|
|
8234
8237
|
let dr = (n, e, t) => e >= t.top && e <= t.bottom && n >= t.left && n <= t.right;
|
|
8235
8238
|
function gf(n, e, t, i) {
|
|
8236
|
-
let s =
|
|
8239
|
+
let s = De.find(n.docView, e);
|
|
8237
8240
|
if (!s)
|
|
8238
8241
|
return 1;
|
|
8239
8242
|
let o = e - s.posAtStart;
|
|
@@ -8373,7 +8376,7 @@ St.copy = St.cut = (n, e) => {
|
|
|
8373
8376
|
let o = K1 ? null : e.clipboardData;
|
|
8374
8377
|
return o ? (o.clearData(), o.setData("text/plain", t), !0) : (bf(n, t), !1);
|
|
8375
8378
|
};
|
|
8376
|
-
const J1 = /* @__PURE__ */
|
|
8379
|
+
const J1 = /* @__PURE__ */ Kt.define();
|
|
8377
8380
|
function Z1(n, e) {
|
|
8378
8381
|
let t = [];
|
|
8379
8382
|
for (let i of n.facet(B1)) {
|
|
@@ -8483,7 +8486,7 @@ class _f {
|
|
|
8483
8486
|
return this.index < this.heights.length;
|
|
8484
8487
|
}
|
|
8485
8488
|
}
|
|
8486
|
-
class
|
|
8489
|
+
class zt {
|
|
8487
8490
|
/**
|
|
8488
8491
|
@internal
|
|
8489
8492
|
*/
|
|
@@ -8514,7 +8517,7 @@ class Pt {
|
|
|
8514
8517
|
associated with it.
|
|
8515
8518
|
*/
|
|
8516
8519
|
get widget() {
|
|
8517
|
-
return this._content instanceof
|
|
8520
|
+
return this._content instanceof l0 ? this._content.widget : null;
|
|
8518
8521
|
}
|
|
8519
8522
|
/**
|
|
8520
8523
|
If this is a textblock, this holds the number of line breaks
|
|
@@ -8528,7 +8531,7 @@ class Pt {
|
|
|
8528
8531
|
*/
|
|
8529
8532
|
join(e) {
|
|
8530
8533
|
let t = (Array.isArray(this._content) ? this._content : [this]).concat(Array.isArray(e._content) ? e._content : [e]);
|
|
8531
|
-
return new
|
|
8534
|
+
return new zt(this.from, this.length + e.length, this.top, this.height + e.height, t);
|
|
8532
8535
|
}
|
|
8533
8536
|
}
|
|
8534
8537
|
var ge = /* @__PURE__ */ function(n) {
|
|
@@ -8614,7 +8617,7 @@ class t3 extends Ye {
|
|
|
8614
8617
|
super(e, t), this.deco = i;
|
|
8615
8618
|
}
|
|
8616
8619
|
blockAt(e, t, i, s) {
|
|
8617
|
-
return new
|
|
8620
|
+
return new zt(s, this.length, i, this.height, this.deco || 0);
|
|
8618
8621
|
}
|
|
8619
8622
|
lineAt(e, t, i, s, o) {
|
|
8620
8623
|
return this.blockAt(0, i, s, o);
|
|
@@ -8634,7 +8637,7 @@ class rt extends t3 {
|
|
|
8634
8637
|
super(e, t, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0;
|
|
8635
8638
|
}
|
|
8636
8639
|
blockAt(e, t, i, s) {
|
|
8637
|
-
return new
|
|
8640
|
+
return new zt(s, this.length, i, this.height, this.breaks);
|
|
8638
8641
|
}
|
|
8639
8642
|
replace(e, t, i) {
|
|
8640
8643
|
let s = i[0];
|
|
@@ -8664,10 +8667,10 @@ class He extends Ye {
|
|
|
8664
8667
|
let { firstLine: o, lastLine: r, perLine: l, perChar: a } = this.heightMetrics(t, s);
|
|
8665
8668
|
if (t.lineWrapping) {
|
|
8666
8669
|
let c = s + (e < t.lineHeight ? 0 : Math.round(Math.max(0, Math.min(1, (e - i) / this.height)) * this.length)), h = t.doc.lineAt(c), u = l + h.length * a, d = Math.max(i, e - u / 2);
|
|
8667
|
-
return new
|
|
8670
|
+
return new zt(h.from, h.length, d, u, 0);
|
|
8668
8671
|
} else {
|
|
8669
8672
|
let c = Math.max(0, Math.min(r - o, Math.floor((e - i) / l))), { from: h, length: u } = t.doc.line(o + c);
|
|
8670
|
-
return new
|
|
8673
|
+
return new zt(h, u, i + l * c, l, 0);
|
|
8671
8674
|
}
|
|
8672
8675
|
}
|
|
8673
8676
|
lineAt(e, t, i, s, o) {
|
|
@@ -8675,10 +8678,10 @@ class He extends Ye {
|
|
|
8675
8678
|
return this.blockAt(e, i, s, o);
|
|
8676
8679
|
if (t == ge.ByPosNoHeight) {
|
|
8677
8680
|
let { from: f, to: p } = i.doc.lineAt(e);
|
|
8678
|
-
return new
|
|
8681
|
+
return new zt(f, p - f, 0, 0, 0);
|
|
8679
8682
|
}
|
|
8680
8683
|
let { firstLine: r, perLine: l, perChar: a } = this.heightMetrics(i, o), c = i.doc.lineAt(e), h = l + c.length * a, u = c.number - r, d = s + l * u + a * (c.from - o - u);
|
|
8681
|
-
return new
|
|
8684
|
+
return new zt(c.from, c.length, Math.max(s, Math.min(d, s + this.height - h)), h, 0);
|
|
8682
8685
|
}
|
|
8683
8686
|
forEachLine(e, t, i, s, o, r) {
|
|
8684
8687
|
e = Math.max(e, o), t = Math.min(t, o + this.length);
|
|
@@ -8690,7 +8693,7 @@ class He extends Ye {
|
|
|
8690
8693
|
u += a * p + c * (e - o - p);
|
|
8691
8694
|
}
|
|
8692
8695
|
let f = a + c * d.length;
|
|
8693
|
-
r(new
|
|
8696
|
+
r(new zt(d.from, d.length, u, f, 0)), u += f, h = d.to + 1;
|
|
8694
8697
|
}
|
|
8695
8698
|
}
|
|
8696
8699
|
replace(e, t, i) {
|
|
@@ -8941,7 +8944,7 @@ class yn {
|
|
|
8941
8944
|
}).range(this.from, this.to);
|
|
8942
8945
|
}
|
|
8943
8946
|
}
|
|
8944
|
-
class Pf extends
|
|
8947
|
+
class Pf extends c0 {
|
|
8945
8948
|
constructor(e, t) {
|
|
8946
8949
|
super(), this.size = e, this.vertical = t;
|
|
8947
8950
|
}
|
|
@@ -8989,7 +8992,7 @@ class Sr {
|
|
|
8989
8992
|
this.state = e.state;
|
|
8990
8993
|
let i = this.stateDeco;
|
|
8991
8994
|
this.stateDeco = this.state.facet(S2).filter((h) => typeof h != "function");
|
|
8992
|
-
let s = e.changedRanges, o = pt.extendWithRanges(s, Of(i, this.stateDeco, e ? e.changes :
|
|
8995
|
+
let s = e.changedRanges, o = pt.extendWithRanges(s, Of(i, this.stateDeco, e ? e.changes : ze.empty(this.state.doc.length))), r = this.heightMap.height, l = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
|
|
8993
8996
|
xr(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), o), (this.heightMap.height != r || j0) && (e.flags |= 2), l ? (this.scrollAnchorPos = e.changes.mapPos(l.from, -1), this.scrollAnchorHeight = l.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = r);
|
|
8994
8997
|
let a = o.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
|
|
8995
8998
|
(t && (t.range.head < a.from || t.range.head > a.to) || !this.viewportIsAppropriate(a)) && (a = this.getViewport(0, t));
|
|
@@ -9284,11 +9287,11 @@ function r2(n, e) {
|
|
|
9284
9287
|
if (e.scale == 1)
|
|
9285
9288
|
return n;
|
|
9286
9289
|
let t = e.toDOM(n.top), i = e.toDOM(n.bottom);
|
|
9287
|
-
return new
|
|
9290
|
+
return new zt(n.from, n.length, t, i - t, Array.isArray(n._content) ? n._content.map((s) => r2(s, e)) : n._content);
|
|
9288
9291
|
}
|
|
9289
|
-
const X2 = /* @__PURE__ */ I.define({ combine: (n) => n.join(" ") }), bs = /* @__PURE__ */ I.define({ combine: (n) => n.indexOf(!0) > -1 }), xs = /* @__PURE__ */
|
|
9292
|
+
const X2 = /* @__PURE__ */ I.define({ combine: (n) => n.join(" ") }), bs = /* @__PURE__ */ I.define({ combine: (n) => n.indexOf(!0) > -1 }), xs = /* @__PURE__ */ o0.newName(), i3 = /* @__PURE__ */ o0.newName(), n3 = /* @__PURE__ */ o0.newName(), s3 = { "&light": "." + i3, "&dark": "." + n3 };
|
|
9290
9293
|
function ys(n, e, t) {
|
|
9291
|
-
return new
|
|
9294
|
+
return new o0(e, {
|
|
9292
9295
|
finish(i) {
|
|
9293
9296
|
return /&/.test(i) ? i.replace(/&\w*/, (s) => {
|
|
9294
9297
|
if (s == "&")
|
|
@@ -9582,7 +9585,7 @@ class Lf {
|
|
|
9582
9585
|
this.queue.push(i);
|
|
9583
9586
|
(B.ie && B.ie_version <= 11 || B.ios && e.composing) && t.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
|
|
9584
9587
|
}), window.EditContext && B.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
|
|
9585
|
-
!(B.chrome && B.chrome_version < 126) && (this.editContext = new If(e), e.state.facet(
|
|
9588
|
+
!(B.chrome && B.chrome_version < 126) && (this.editContext = new If(e), e.state.facet($t) && (e.contentDOM.editContext = this.editContext.editContext)), Sn && (this.onCharData = (t) => {
|
|
9586
9589
|
this.queue.push({
|
|
9587
9590
|
target: t.target,
|
|
9588
9591
|
type: "characterData",
|
|
@@ -9626,7 +9629,7 @@ class Lf {
|
|
|
9626
9629
|
if (!this.readSelectionRange() || this.delayedAndroidKey)
|
|
9627
9630
|
return;
|
|
9628
9631
|
let { view: i } = this, s = this.selectionRange;
|
|
9629
|
-
if (i.state.facet(
|
|
9632
|
+
if (i.state.facet($t) ? i.root.activeElement != this.dom : !di(this.dom, s))
|
|
9630
9633
|
return;
|
|
9631
9634
|
let o = s.anchorNode && i.docView.nearest(s.anchorNode);
|
|
9632
9635
|
if (o && o.ignoreEvent(e)) {
|
|
@@ -9783,7 +9786,7 @@ class Lf {
|
|
|
9783
9786
|
e.removeEventListener("scroll", this.onScroll), e.removeEventListener("resize", this.onResize), this.printQuery ? this.printQuery.removeEventListener ? this.printQuery.removeEventListener("change", this.onPrint) : this.printQuery.removeListener(this.onPrint) : e.removeEventListener("beforeprint", this.onPrint), e.document.removeEventListener("selectionchange", this.onSelectionChange);
|
|
9784
9787
|
}
|
|
9785
9788
|
update(e) {
|
|
9786
|
-
this.editContext && (this.editContext.update(e), e.startState.facet(
|
|
9789
|
+
this.editContext && (this.editContext.update(e), e.startState.facet($t) != e.state.facet($t) && (e.view.contentDOM.editContext = e.state.facet($t) ? this.editContext.editContext : null));
|
|
9787
9790
|
}
|
|
9788
9791
|
destroy() {
|
|
9789
9792
|
var e, t, i;
|
|
@@ -9795,7 +9798,7 @@ class Lf {
|
|
|
9795
9798
|
}
|
|
9796
9799
|
function kr(n, e, t) {
|
|
9797
9800
|
for (; e; ) {
|
|
9798
|
-
let i =
|
|
9801
|
+
let i = ue.get(e);
|
|
9799
9802
|
if (i && i.parent == n)
|
|
9800
9803
|
return i;
|
|
9801
9804
|
let s = e.parentNode;
|
|
@@ -10026,7 +10029,7 @@ class R {
|
|
|
10026
10029
|
this.observer = new Lf(this), this.inputState = new of(this), this.inputState.ensureHandlers(this.plugins), this.docView = new nr(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(), !((t = document.fonts) === null || t === void 0) && t.ready && document.fonts.ready.then(() => this.requestMeasure());
|
|
10027
10030
|
}
|
|
10028
10031
|
dispatch(...e) {
|
|
10029
|
-
let t = e.length == 1 && e[0] instanceof
|
|
10032
|
+
let t = e.length == 1 && e[0] instanceof Ve ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)];
|
|
10030
10033
|
this.dispatchTransactions(t, this);
|
|
10031
10034
|
}
|
|
10032
10035
|
/**
|
|
@@ -10229,7 +10232,7 @@ class R {
|
|
|
10229
10232
|
autocapitalize: "off",
|
|
10230
10233
|
writingsuggestions: "false",
|
|
10231
10234
|
translate: "no",
|
|
10232
|
-
contenteditable: this.state.facet(
|
|
10235
|
+
contenteditable: this.state.facet($t) ? "true" : "false",
|
|
10233
10236
|
class: "cm-content",
|
|
10234
10237
|
style: `${B.tabSize}: ${this.state.tabSize}`,
|
|
10235
10238
|
role: "textbox",
|
|
@@ -10255,7 +10258,7 @@ class R {
|
|
|
10255
10258
|
mountStyles() {
|
|
10256
10259
|
this.styleModules = this.state.facet(s2);
|
|
10257
10260
|
let e = this.state.facet(R.cspNonce);
|
|
10258
|
-
|
|
10261
|
+
o0.mount(this.root, this.styleModules.concat(Ef).reverse(), e ? { nonce: e } : void 0);
|
|
10259
10262
|
}
|
|
10260
10263
|
readMeasured() {
|
|
10261
10264
|
if (this.updateState == 2)
|
|
@@ -10464,7 +10467,7 @@ class R {
|
|
|
10464
10467
|
let i = this.docView.coordsAt(e, t);
|
|
10465
10468
|
if (!i || i.left == i.right)
|
|
10466
10469
|
return i;
|
|
10467
|
-
let s = this.state.doc.lineAt(e), o = this.bidiSpans(s), r = o[
|
|
10470
|
+
let s = this.state.doc.lineAt(e), o = this.bidiSpans(s), r = o[i0.find(o, e - s.from, -1, t)];
|
|
10468
10471
|
return tn(i, r.dir == we.LTR == t > 0);
|
|
10469
10472
|
}
|
|
10470
10473
|
/**
|
|
@@ -10625,7 +10628,7 @@ class R {
|
|
|
10625
10628
|
its parent nodes is scrolled.
|
|
10626
10629
|
*/
|
|
10627
10630
|
static domEventHandlers(e) {
|
|
10628
|
-
return
|
|
10631
|
+
return Ae.define(() => ({}), { eventHandlers: e });
|
|
10629
10632
|
}
|
|
10630
10633
|
/**
|
|
10631
10634
|
Create an extension that registers DOM event observers. Contrary
|
|
@@ -10636,7 +10639,7 @@ class R {
|
|
|
10636
10639
|
call `preventDefault`.
|
|
10637
10640
|
*/
|
|
10638
10641
|
static domEventObservers(e) {
|
|
10639
|
-
return
|
|
10642
|
+
return Ae.define(() => ({}), { eventObservers: e });
|
|
10640
10643
|
}
|
|
10641
10644
|
/**
|
|
10642
10645
|
Create a theme extension. The first argument can be a
|
|
@@ -10657,7 +10660,7 @@ class R {
|
|
|
10657
10660
|
`&light` when a light theme is active).
|
|
10658
10661
|
*/
|
|
10659
10662
|
static theme(e, t) {
|
|
10660
|
-
let i =
|
|
10663
|
+
let i = o0.newName(), s = [X2.of(i), s2.of(ys(`.${i}`, e))];
|
|
10661
10664
|
return t && t.dark && s.push(bs.of(!0)), s;
|
|
10662
10665
|
}
|
|
10663
10666
|
/**
|
|
@@ -10676,7 +10679,7 @@ class R {
|
|
|
10676
10679
|
*/
|
|
10677
10680
|
static findFromDOM(e) {
|
|
10678
10681
|
var t;
|
|
10679
|
-
let i = e.querySelector(".cm-content"), s = i &&
|
|
10682
|
+
let i = e.querySelector(".cm-content"), s = i && ue.get(i) || ue.get(e);
|
|
10680
10683
|
return ((t = s == null ? void 0 : s.rootView) === null || t === void 0 ? void 0 : t.view) || null;
|
|
10681
10684
|
}
|
|
10682
10685
|
}
|
|
@@ -10689,7 +10692,7 @@ R.focusChangeEffect = B1;
|
|
|
10689
10692
|
R.perLineTextDirection = L1;
|
|
10690
10693
|
R.exceptionSink = V1;
|
|
10691
10694
|
R.updateListener = gs;
|
|
10692
|
-
R.editable =
|
|
10695
|
+
R.editable = $t;
|
|
10693
10696
|
R.mouseSelectionStyle = z1;
|
|
10694
10697
|
R.dragMovesSelection = P1;
|
|
10695
10698
|
R.clickAddsSelectionRange = A1;
|
|
@@ -10765,7 +10768,7 @@ function o3(n) {
|
|
|
10765
10768
|
function Gf(n, e, t) {
|
|
10766
10769
|
return r3(o3(n.state), e, n, t);
|
|
10767
10770
|
}
|
|
10768
|
-
let
|
|
10771
|
+
let Zt = null;
|
|
10769
10772
|
const Ff = 4e3;
|
|
10770
10773
|
function jf(n, e = Nf) {
|
|
10771
10774
|
let t = /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null), s = (r, l) => {
|
|
@@ -10783,9 +10786,9 @@ function jf(n, e = Nf) {
|
|
|
10783
10786
|
preventDefault: !0,
|
|
10784
10787
|
stopPropagation: !1,
|
|
10785
10788
|
run: [(y) => {
|
|
10786
|
-
let _ =
|
|
10789
|
+
let _ = Zt = { view: y, prefix: b, scope: r };
|
|
10787
10790
|
return setTimeout(() => {
|
|
10788
|
-
|
|
10791
|
+
Zt == _ && (Zt = null);
|
|
10789
10792
|
}, Ff), !0;
|
|
10790
10793
|
}]
|
|
10791
10794
|
});
|
|
@@ -10819,8 +10822,8 @@ function jf(n, e = Nf) {
|
|
|
10819
10822
|
let Ss = null;
|
|
10820
10823
|
function r3(n, e, t, i) {
|
|
10821
10824
|
Ss = e;
|
|
10822
|
-
let s = dd(e), o = Je(s, 0), r =
|
|
10823
|
-
|
|
10825
|
+
let s = dd(e), o = Je(s, 0), r = Pt(o) == s.length && s != " ", l = "", a = !1, c = !1, h = !1;
|
|
10826
|
+
Zt && Zt.view == t && Zt.scope == i && (l = Zt.prefix + " ", Y1.indexOf(e.keyCode) < 0 && (c = !0, Zt = null));
|
|
10824
10827
|
let u = /* @__PURE__ */ new Set(), d = (m) => {
|
|
10825
10828
|
if (m) {
|
|
10826
10829
|
for (let v of m.run)
|
|
@@ -10832,7 +10835,7 @@ function r3(n, e, t, i) {
|
|
|
10832
10835
|
}, f = n[i], p, g;
|
|
10833
10836
|
return f && (d(f[l + Q2(s, e, !r)]) ? a = !0 : r && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
10834
10837
|
!(B.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
|
|
10835
|
-
!(B.mac && e.altKey && !e.ctrlKey) && (p =
|
|
10838
|
+
!(B.mac && e.altKey && !e.ctrlKey) && (p = r0[e.keyCode]) && p != s ? (d(f[l + Q2(p, e, !0)]) || e.shiftKey && (g = b2[e.keyCode]) != s && g != p && d(f[l + Q2(g, e, !1)])) && (a = !0) : r && e.shiftKey && d(f[l + Q2(s, e, !0)]) && (a = !0), !a && d(f._any) && (a = !0)), c && (a = !0), a && h && e.stopPropagation(), Ss = null, a;
|
|
10836
10839
|
}
|
|
10837
10840
|
class L2 {
|
|
10838
10841
|
/**
|
|
@@ -10905,22 +10908,22 @@ function Uf(n, e, t) {
|
|
|
10905
10908
|
}
|
|
10906
10909
|
function y(x, S, k) {
|
|
10907
10910
|
let T = 1e9, z = -1e9, w = [];
|
|
10908
|
-
function j(J, te, ye,
|
|
10909
|
-
let
|
|
10910
|
-
!
|
|
10911
|
+
function j(J, te, ye, de, ht) {
|
|
10912
|
+
let Pe = n.coordsAtPos(J, J == k.to ? -2 : 2), Ke = n.coordsAtPos(ye, ye == k.from ? 2 : -2);
|
|
10913
|
+
!Pe || !Ke || (T = Math.min(Pe.top, Ke.top, T), z = Math.max(Pe.bottom, Ke.bottom, z), ht == we.LTR ? w.push(o && te ? u : Pe.left, o && de ? d : Ke.right) : w.push(!o && de ? u : Ke.left, !o && te ? d : Pe.right));
|
|
10911
10914
|
}
|
|
10912
10915
|
let W = x ?? k.from, Q = S ?? k.to;
|
|
10913
10916
|
for (let J of n.visibleRanges)
|
|
10914
10917
|
if (J.to > W && J.from < Q)
|
|
10915
10918
|
for (let te = Math.max(J.from, W), ye = Math.min(J.to, Q); ; ) {
|
|
10916
|
-
let
|
|
10917
|
-
for (let ht of n.bidiSpans(
|
|
10918
|
-
let
|
|
10919
|
-
if (
|
|
10919
|
+
let de = n.state.doc.lineAt(te);
|
|
10920
|
+
for (let ht of n.bidiSpans(de)) {
|
|
10921
|
+
let Pe = ht.from + de.from, Ke = ht.to + de.from;
|
|
10922
|
+
if (Pe >= ye)
|
|
10920
10923
|
break;
|
|
10921
|
-
Ke > te && j(Math.max(
|
|
10924
|
+
Ke > te && j(Math.max(Pe, te), x == null && Pe <= W, Math.min(Ke, ye), S == null && Ke >= Q, ht.dir);
|
|
10922
10925
|
}
|
|
10923
|
-
if (te =
|
|
10926
|
+
if (te = de.to + 1, te >= ye)
|
|
10924
10927
|
break;
|
|
10925
10928
|
}
|
|
10926
10929
|
return w.length == 0 && j(W, x == null, Q, S == null, n.textDirection), { top: T, bottom: z, horizontal: w };
|
|
@@ -10975,13 +10978,13 @@ class Yf {
|
|
|
10975
10978
|
const mi = /* @__PURE__ */ I.define();
|
|
10976
10979
|
function a3(n) {
|
|
10977
10980
|
return [
|
|
10978
|
-
|
|
10981
|
+
Ae.define((e) => new Yf(e, n)),
|
|
10979
10982
|
mi.of(n)
|
|
10980
10983
|
];
|
|
10981
10984
|
}
|
|
10982
10985
|
const _2 = /* @__PURE__ */ I.define({
|
|
10983
10986
|
combine(n) {
|
|
10984
|
-
return
|
|
10987
|
+
return Rt(n, {
|
|
10985
10988
|
cursorBlinkRate: 1200,
|
|
10986
10989
|
drawRangeCursor: !0
|
|
10987
10990
|
}, {
|
|
@@ -11063,7 +11066,7 @@ const Qf = /* @__PURE__ */ a3({
|
|
|
11063
11066
|
update(n, e) {
|
|
11064
11067
|
return n != null && (n = e.changes.mapPos(n)), e.effects.reduce((t, i) => i.is(c3) ? i.value : t, n);
|
|
11065
11068
|
}
|
|
11066
|
-
}), Zf = /* @__PURE__ */
|
|
11069
|
+
}), Zf = /* @__PURE__ */ Ae.fromClass(class {
|
|
11067
11070
|
constructor(n) {
|
|
11068
11071
|
this.view = n, this.cursor = null, this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) };
|
|
11069
11072
|
}
|
|
@@ -11157,7 +11160,7 @@ class i5 {
|
|
|
11157
11160
|
plugin.
|
|
11158
11161
|
*/
|
|
11159
11162
|
createDeco(e) {
|
|
11160
|
-
let t = new
|
|
11163
|
+
let t = new jt(), i = t.add.bind(t);
|
|
11161
11164
|
for (let { from: s, to: o } of t5(e, this.maxLength))
|
|
11162
11165
|
Pr(e.state.doc, this.regexp, s, o, (r, l) => this.addMatch(l, e, r, i));
|
|
11163
11166
|
return t.finish();
|
|
@@ -11237,7 +11240,7 @@ function o5() {
|
|
|
11237
11240
|
}
|
|
11238
11241
|
const vi = /* @__PURE__ */ I.define({
|
|
11239
11242
|
combine(n) {
|
|
11240
|
-
let e =
|
|
11243
|
+
let e = Rt(n, {
|
|
11241
11244
|
render: null,
|
|
11242
11245
|
specialChars: n5,
|
|
11243
11246
|
addSpecialChars: null
|
|
@@ -11250,7 +11253,7 @@ function r5(n = {}) {
|
|
|
11250
11253
|
}
|
|
11251
11254
|
let zr = null;
|
|
11252
11255
|
function l5() {
|
|
11253
|
-
return zr || (zr =
|
|
11256
|
+
return zr || (zr = Ae.fromClass(class {
|
|
11254
11257
|
constructor(n) {
|
|
11255
11258
|
this.view = n, this.decorations = U.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(vi)), this.decorations = this.decorator.createDeco(n);
|
|
11256
11259
|
}
|
|
@@ -11282,7 +11285,7 @@ const a5 = "•";
|
|
|
11282
11285
|
function h5(n) {
|
|
11283
11286
|
return n >= 32 ? a5 : n == 10 ? "" : String.fromCharCode(9216 + n);
|
|
11284
11287
|
}
|
|
11285
|
-
class c5 extends
|
|
11288
|
+
class c5 extends c0 {
|
|
11286
11289
|
constructor(e, t) {
|
|
11287
11290
|
super(), this.options = e, this.code = t;
|
|
11288
11291
|
}
|
|
@@ -11300,7 +11303,7 @@ class c5 extends h0 {
|
|
|
11300
11303
|
return !1;
|
|
11301
11304
|
}
|
|
11302
11305
|
}
|
|
11303
|
-
class u5 extends
|
|
11306
|
+
class u5 extends c0 {
|
|
11304
11307
|
constructor(e) {
|
|
11305
11308
|
super(), this.width = e;
|
|
11306
11309
|
}
|
|
@@ -11318,7 +11321,7 @@ class u5 extends h0 {
|
|
|
11318
11321
|
function d5() {
|
|
11319
11322
|
return p5;
|
|
11320
11323
|
}
|
|
11321
|
-
const f5 = /* @__PURE__ */ U.line({ class: "cm-activeLine" }), p5 = /* @__PURE__ */
|
|
11324
|
+
const f5 = /* @__PURE__ */ U.line({ class: "cm-activeLine" }), p5 = /* @__PURE__ */ Ae.fromClass(class {
|
|
11322
11325
|
constructor(n) {
|
|
11323
11326
|
this.decorations = this.getDeco(n);
|
|
11324
11327
|
}
|
|
@@ -11395,7 +11398,7 @@ const b5 = {
|
|
|
11395
11398
|
Meta: [91, (n) => !!n.metaKey]
|
|
11396
11399
|
}, x5 = { style: "cursor: crosshair" };
|
|
11397
11400
|
function y5(n = {}) {
|
|
11398
|
-
let [e, t] = b5[n.key || "Alt"], i =
|
|
11401
|
+
let [e, t] = b5[n.key || "Alt"], i = Ae.fromClass(class {
|
|
11399
11402
|
constructor(s) {
|
|
11400
11403
|
this.view = s, this.isDown = !1;
|
|
11401
11404
|
}
|
|
@@ -11472,7 +11475,7 @@ const kn = /* @__PURE__ */ I.define({
|
|
|
11472
11475
|
tooltipSpace: ((i = n.find((s) => s.tooltipSpace)) === null || i === void 0 ? void 0 : i.tooltipSpace) || S5
|
|
11473
11476
|
};
|
|
11474
11477
|
}
|
|
11475
|
-
}), Er = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */
|
|
11478
|
+
}), Er = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */ Ae.fromClass(class {
|
|
11476
11479
|
constructor(n) {
|
|
11477
11480
|
this.view = n, this.above = [], this.inView = !0, this.madeAbsolute = !1, this.lastTransaction = 0, this.measureTimeout = -1;
|
|
11478
11481
|
let e = n.state.facet(kn);
|
|
@@ -11775,7 +11778,7 @@ class O5 {
|
|
|
11775
11778
|
if (!i)
|
|
11776
11779
|
return;
|
|
11777
11780
|
let s, o = 1;
|
|
11778
|
-
if (i instanceof
|
|
11781
|
+
if (i instanceof t0)
|
|
11779
11782
|
s = i.posAtStart;
|
|
11780
11783
|
else {
|
|
11781
11784
|
if (s = e.posAtCoords(t), s == null)
|
|
@@ -11868,7 +11871,7 @@ function T5(n, e = {}) {
|
|
|
11868
11871
|
active: i,
|
|
11869
11872
|
extension: [
|
|
11870
11873
|
i,
|
|
11871
|
-
|
|
11874
|
+
Ae.define((s) => new O5(
|
|
11872
11875
|
s,
|
|
11873
11876
|
n,
|
|
11874
11877
|
i,
|
|
@@ -11899,7 +11902,7 @@ function k2(n, e) {
|
|
|
11899
11902
|
let t = n.plugin(f3), i = t ? t.specs.indexOf(e) : -1;
|
|
11900
11903
|
return i > -1 ? t.panels[i] : null;
|
|
11901
11904
|
}
|
|
11902
|
-
const f3 = /* @__PURE__ */
|
|
11905
|
+
const f3 = /* @__PURE__ */ Ae.fromClass(class {
|
|
11903
11906
|
constructor(n) {
|
|
11904
11907
|
this.input = n.state.facet(C2), this.specs = this.input.filter((t) => t), this.panels = this.specs.map((t) => t(n));
|
|
11905
11908
|
let e = n.state.facet(Lr);
|
|
@@ -11982,7 +11985,7 @@ function Rr(n) {
|
|
|
11982
11985
|
const C2 = /* @__PURE__ */ I.define({
|
|
11983
11986
|
enables: f3
|
|
11984
11987
|
});
|
|
11985
|
-
class
|
|
11988
|
+
class qt extends y0 {
|
|
11986
11989
|
/**
|
|
11987
11990
|
@internal
|
|
11988
11991
|
*/
|
|
@@ -12002,11 +12005,11 @@ class Ut extends y0 {
|
|
|
12002
12005
|
destroy(e) {
|
|
12003
12006
|
}
|
|
12004
12007
|
}
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
12008
|
-
|
|
12009
|
-
|
|
12008
|
+
qt.prototype.elementClass = "";
|
|
12009
|
+
qt.prototype.toDOM = void 0;
|
|
12010
|
+
qt.prototype.mapMode = Ue.TrackBefore;
|
|
12011
|
+
qt.prototype.startSide = qt.prototype.endSide = -1;
|
|
12012
|
+
qt.prototype.point = !0;
|
|
12010
12013
|
const wi = /* @__PURE__ */ I.define(), P5 = /* @__PURE__ */ I.define(), z5 = {
|
|
12011
12014
|
class: "",
|
|
12012
12015
|
renderEmptyElements: !1,
|
|
@@ -12031,7 +12034,7 @@ function p3(n) {
|
|
|
12031
12034
|
E5
|
|
12032
12035
|
];
|
|
12033
12036
|
}
|
|
12034
|
-
const E5 = /* @__PURE__ */
|
|
12037
|
+
const E5 = /* @__PURE__ */ Ae.fromClass(class {
|
|
12035
12038
|
constructor(n) {
|
|
12036
12039
|
this.view = n, this.domAfter = null, this.prevViewport = n.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters cm-gutters-before", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = n.state.facet(d2).map((e) => new Nr(n, e)), this.fixed = !n.state.facet(Ir);
|
|
12037
12040
|
for (let e of this.gutters)
|
|
@@ -12238,7 +12241,7 @@ function L5(n, e) {
|
|
|
12238
12241
|
}
|
|
12239
12242
|
const R5 = /* @__PURE__ */ I.define(), I5 = /* @__PURE__ */ I.define(), z0 = /* @__PURE__ */ I.define({
|
|
12240
12243
|
combine(n) {
|
|
12241
|
-
return
|
|
12244
|
+
return Rt(n, { formatNumber: String, domEventHandlers: {} }, {
|
|
12242
12245
|
domEventHandlers(e, t) {
|
|
12243
12246
|
let i = Object.assign({}, e);
|
|
12244
12247
|
for (let s in t) {
|
|
@@ -12250,7 +12253,7 @@ const R5 = /* @__PURE__ */ I.define(), I5 = /* @__PURE__ */ I.define(), z0 = /*
|
|
|
12250
12253
|
});
|
|
12251
12254
|
}
|
|
12252
12255
|
});
|
|
12253
|
-
class Cn extends
|
|
12256
|
+
class Cn extends qt {
|
|
12254
12257
|
constructor(e) {
|
|
12255
12258
|
super(), this.number = e;
|
|
12256
12259
|
}
|
|
@@ -12305,7 +12308,7 @@ function $r(n) {
|
|
|
12305
12308
|
e = e * 10 + 9;
|
|
12306
12309
|
return e;
|
|
12307
12310
|
}
|
|
12308
|
-
const $5 = /* @__PURE__ */ new class extends
|
|
12311
|
+
const $5 = /* @__PURE__ */ new class extends qt {
|
|
12309
12312
|
constructor() {
|
|
12310
12313
|
super(...arguments), this.elementClass = "cm-activeLineGutter";
|
|
12311
12314
|
}
|
|
@@ -12503,11 +12506,11 @@ class oo {
|
|
|
12503
12506
|
}
|
|
12504
12507
|
}
|
|
12505
12508
|
const ei = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap();
|
|
12506
|
-
var
|
|
12509
|
+
var Be;
|
|
12507
12510
|
(function(n) {
|
|
12508
12511
|
n[n.ExcludeBuffers = 1] = "ExcludeBuffers", n[n.IncludeAnonymous = 2] = "IncludeAnonymous", n[n.IgnoreMounts = 4] = "IgnoreMounts", n[n.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
12509
|
-
})(
|
|
12510
|
-
class
|
|
12512
|
+
})(Be || (Be = {}));
|
|
12513
|
+
class Te {
|
|
12511
12514
|
/**
|
|
12512
12515
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
12513
12516
|
*/
|
|
@@ -12600,8 +12603,8 @@ class De {
|
|
|
12600
12603
|
not have its children iterated over (or `leave` called).
|
|
12601
12604
|
*/
|
|
12602
12605
|
iterate(e) {
|
|
12603
|
-
let { enter: t, leave: i, from: s = 0, to: o = this.length } = e, r = e.mode || 0, l = (r &
|
|
12604
|
-
for (let a = this.cursor(r |
|
|
12606
|
+
let { enter: t, leave: i, from: s = 0, to: o = this.length } = e, r = e.mode || 0, l = (r & Be.IncludeAnonymous) > 0;
|
|
12607
|
+
for (let a = this.cursor(r | Be.IncludeAnonymous); ; ) {
|
|
12605
12608
|
let c = !1;
|
|
12606
12609
|
if (a.from <= o && a.to >= s && (!l && a.type.isAnonymous || t(a) !== !1)) {
|
|
12607
12610
|
if (a.firstChild())
|
|
@@ -12640,7 +12643,7 @@ class De {
|
|
|
12640
12643
|
[`NodeType.none`](#common.NodeType^none).
|
|
12641
12644
|
*/
|
|
12642
12645
|
balance(e = {}) {
|
|
12643
|
-
return this.children.length <= 8 ? this : ao(nt.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, i, s) => new
|
|
12646
|
+
return this.children.length <= 8 ? this : ao(nt.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, i, s) => new Te(this.type, t, i, s, this.propValues), e.makeTree || ((t, i, s) => new Te(nt.none, t, i, s)));
|
|
12644
12647
|
}
|
|
12645
12648
|
/**
|
|
12646
12649
|
Build a tree from a postfix-ordered buffer of node information,
|
|
@@ -12650,7 +12653,7 @@ class De {
|
|
|
12650
12653
|
return K5(e);
|
|
12651
12654
|
}
|
|
12652
12655
|
}
|
|
12653
|
-
|
|
12656
|
+
Te.empty = new Te(nt.none, [], [], 0);
|
|
12654
12657
|
class ro {
|
|
12655
12658
|
constructor(e, t) {
|
|
12656
12659
|
this.buffer = e, this.index = t;
|
|
@@ -12677,7 +12680,7 @@ class ro {
|
|
|
12677
12680
|
return new ro(this.buffer, this.index);
|
|
12678
12681
|
}
|
|
12679
12682
|
}
|
|
12680
|
-
class
|
|
12683
|
+
class a0 {
|
|
12681
12684
|
/**
|
|
12682
12685
|
Create a tree buffer.
|
|
12683
12686
|
*/
|
|
@@ -12730,7 +12733,7 @@ class l0 {
|
|
|
12730
12733
|
let c = o[a++] = s[l++] - i;
|
|
12731
12734
|
o[a++] = s[l++] - e, r = Math.max(r, c);
|
|
12732
12735
|
}
|
|
12733
|
-
return new
|
|
12736
|
+
return new a0(o, r, this.set);
|
|
12734
12737
|
}
|
|
12735
12738
|
}
|
|
12736
12739
|
function v3(n, e, t, i) {
|
|
@@ -12756,7 +12759,7 @@ function O2(n, e, t, i) {
|
|
|
12756
12759
|
return n;
|
|
12757
12760
|
n = r;
|
|
12758
12761
|
}
|
|
12759
|
-
let o = i ? 0 :
|
|
12762
|
+
let o = i ? 0 : Be.IgnoreOverlays;
|
|
12760
12763
|
if (i)
|
|
12761
12764
|
for (let r = n, l = r.parent; l; r = l, l = r.parent)
|
|
12762
12765
|
r instanceof gt && r.index < 0 && ((s = l.enter(e, t, o)) === null || s === void 0 ? void 0 : s.from) != r.from && (n = l);
|
|
@@ -12822,22 +12825,22 @@ class gt extends w3 {
|
|
|
12822
12825
|
for (let { children: l, positions: a } = r._tree, c = t > 0 ? l.length : -1; e != c; e += t) {
|
|
12823
12826
|
let h = l[e], u = a[e] + r.from;
|
|
12824
12827
|
if (v3(s, i, u, u + h.length)) {
|
|
12825
|
-
if (h instanceof
|
|
12826
|
-
if (o &
|
|
12828
|
+
if (h instanceof a0) {
|
|
12829
|
+
if (o & Be.ExcludeBuffers)
|
|
12827
12830
|
continue;
|
|
12828
12831
|
let d = h.findChild(0, h.buffer.length, t, i - u, s);
|
|
12829
12832
|
if (d > -1)
|
|
12830
|
-
return new
|
|
12831
|
-
} else if (o &
|
|
12833
|
+
return new n0(new U5(r, h, e, u), null, d);
|
|
12834
|
+
} else if (o & Be.IncludeAnonymous || !h.type.isAnonymous || lo(h)) {
|
|
12832
12835
|
let d;
|
|
12833
|
-
if (!(o &
|
|
12836
|
+
if (!(o & Be.IgnoreMounts) && (d = Pi.get(h)) && !d.overlay)
|
|
12834
12837
|
return new gt(d.tree, u, e, r);
|
|
12835
12838
|
let f = new gt(h, u, e, r);
|
|
12836
|
-
return o &
|
|
12839
|
+
return o & Be.IncludeAnonymous || !f.type.isAnonymous ? f : f.nextChild(t < 0 ? h.children.length - 1 : 0, t, i, s);
|
|
12837
12840
|
}
|
|
12838
12841
|
}
|
|
12839
12842
|
}
|
|
12840
|
-
if (o &
|
|
12843
|
+
if (o & Be.IncludeAnonymous || !r.type.isAnonymous || (r.index >= 0 ? e = r.index + t : e = t < 0 ? -1 : r._parent._tree.children.length, r = r._parent, !r))
|
|
12841
12844
|
return null;
|
|
12842
12845
|
}
|
|
12843
12846
|
}
|
|
@@ -12879,7 +12882,7 @@ class gt extends w3 {
|
|
|
12879
12882
|
}
|
|
12880
12883
|
enter(e, t, i = 0) {
|
|
12881
12884
|
let s;
|
|
12882
|
-
if (!(i &
|
|
12885
|
+
if (!(i & Be.IgnoreOverlays) && (s = Pi.get(this._tree)) && s.overlay) {
|
|
12883
12886
|
let o = e - this.from;
|
|
12884
12887
|
for (let { from: r, to: l } of s.overlay)
|
|
12885
12888
|
if ((t > 0 ? r <= o : r < o) && (t < 0 ? l >= o : l > o))
|
|
@@ -12960,7 +12963,7 @@ class U5 {
|
|
|
12960
12963
|
this.parent = e, this.buffer = t, this.index = i, this.start = s;
|
|
12961
12964
|
}
|
|
12962
12965
|
}
|
|
12963
|
-
class
|
|
12966
|
+
class n0 extends w3 {
|
|
12964
12967
|
get name() {
|
|
12965
12968
|
return this.type.name;
|
|
12966
12969
|
}
|
|
@@ -12975,7 +12978,7 @@ class i0 extends w3 {
|
|
|
12975
12978
|
}
|
|
12976
12979
|
child(e, t, i) {
|
|
12977
12980
|
let { buffer: s } = this.context, o = s.findChild(this.index + 4, s.buffer[this.index + 3], e, t - this.context.start, i);
|
|
12978
|
-
return o < 0 ? null : new
|
|
12981
|
+
return o < 0 ? null : new n0(this.context, this, o);
|
|
12979
12982
|
}
|
|
12980
12983
|
get firstChild() {
|
|
12981
12984
|
return this.child(
|
|
@@ -13010,10 +13013,10 @@ class i0 extends w3 {
|
|
|
13010
13013
|
);
|
|
13011
13014
|
}
|
|
13012
13015
|
enter(e, t, i = 0) {
|
|
13013
|
-
if (i &
|
|
13016
|
+
if (i & Be.ExcludeBuffers)
|
|
13014
13017
|
return null;
|
|
13015
13018
|
let { buffer: s } = this.context, o = s.findChild(this.index + 4, s.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
|
|
13016
|
-
return o < 0 ? null : new
|
|
13019
|
+
return o < 0 ? null : new n0(this.context, this, o);
|
|
13017
13020
|
}
|
|
13018
13021
|
get parent() {
|
|
13019
13022
|
return this._parent || this.context.parent.nextSignificantParent();
|
|
@@ -13029,11 +13032,11 @@ class i0 extends w3 {
|
|
|
13029
13032
|
}
|
|
13030
13033
|
get nextSibling() {
|
|
13031
13034
|
let { buffer: e } = this.context, t = e.buffer[this.index + 3];
|
|
13032
|
-
return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new
|
|
13035
|
+
return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new n0(this.context, this._parent, t) : this.externalSibling(1);
|
|
13033
13036
|
}
|
|
13034
13037
|
get prevSibling() {
|
|
13035
13038
|
let { buffer: e } = this.context, t = this._parent ? this._parent.index + 4 : 0;
|
|
13036
|
-
return this.index == t ? this.externalSibling(-1) : new
|
|
13039
|
+
return this.index == t ? this.externalSibling(-1) : new n0(this.context, this._parent, e.findChild(
|
|
13037
13040
|
t,
|
|
13038
13041
|
this.index,
|
|
13039
13042
|
-1,
|
|
@@ -13051,7 +13054,7 @@ class i0 extends w3 {
|
|
|
13051
13054
|
let r = i.buffer[this.index + 1];
|
|
13052
13055
|
e.push(i.slice(s, o, r)), t.push(0);
|
|
13053
13056
|
}
|
|
13054
|
-
return new
|
|
13057
|
+
return new Te(this.type, e, t, this.to - this.from);
|
|
13055
13058
|
}
|
|
13056
13059
|
/**
|
|
13057
13060
|
@internal
|
|
@@ -13196,17 +13199,17 @@ class Ms {
|
|
|
13196
13199
|
set to false.
|
|
13197
13200
|
*/
|
|
13198
13201
|
enter(e, t, i = this.mode) {
|
|
13199
|
-
return this.buffer ? i &
|
|
13202
|
+
return this.buffer ? i & Be.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, i));
|
|
13200
13203
|
}
|
|
13201
13204
|
/**
|
|
13202
13205
|
Move to the node's parent node, if this isn't the top node.
|
|
13203
13206
|
*/
|
|
13204
13207
|
parent() {
|
|
13205
13208
|
if (!this.buffer)
|
|
13206
|
-
return this.yieldNode(this.mode &
|
|
13209
|
+
return this.yieldNode(this.mode & Be.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
13207
13210
|
if (this.stack.length)
|
|
13208
13211
|
return this.yieldBuf(this.stack.pop());
|
|
13209
|
-
let e = this.mode &
|
|
13212
|
+
let e = this.mode & Be.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
13210
13213
|
return this.buffer = null, this.yieldNode(e);
|
|
13211
13214
|
}
|
|
13212
13215
|
/**
|
|
@@ -13263,7 +13266,7 @@ class Ms {
|
|
|
13263
13266
|
if (t > -1)
|
|
13264
13267
|
for (let o = t + e, r = e < 0 ? -1 : i._tree.children.length; o != r; o += e) {
|
|
13265
13268
|
let l = i._tree.children[o];
|
|
13266
|
-
if (this.mode &
|
|
13269
|
+
if (this.mode & Be.IncludeAnonymous || l instanceof a0 || !l.type.isAnonymous || lo(l))
|
|
13267
13270
|
return !1;
|
|
13268
13271
|
}
|
|
13269
13272
|
return !0;
|
|
@@ -13334,8 +13337,8 @@ class Ms {
|
|
|
13334
13337
|
s = this.stack[--o];
|
|
13335
13338
|
}
|
|
13336
13339
|
for (let s = i; s < this.stack.length; s++)
|
|
13337
|
-
t = new
|
|
13338
|
-
return this.bufferNode = new
|
|
13340
|
+
t = new n0(this.buffer, t, this.stack[s]);
|
|
13341
|
+
return this.bufferNode = new n0(this.buffer, t, this.index);
|
|
13339
13342
|
}
|
|
13340
13343
|
/**
|
|
13341
13344
|
Get the [tree](#common.Tree) that represents the current node, if
|
|
@@ -13393,7 +13396,7 @@ class Ms {
|
|
|
13393
13396
|
}
|
|
13394
13397
|
}
|
|
13395
13398
|
function lo(n) {
|
|
13396
|
-
return n.children.some((e) => e instanceof
|
|
13399
|
+
return n.children.some((e) => e instanceof a0 || !e.type.isAnonymous || lo(e));
|
|
13397
13400
|
}
|
|
13398
13401
|
function K5(n) {
|
|
13399
13402
|
var e;
|
|
@@ -13413,23 +13416,23 @@ function K5(n) {
|
|
|
13413
13416
|
return;
|
|
13414
13417
|
} else
|
|
13415
13418
|
throw new RangeError(`Unrecognized record size: ${J}`);
|
|
13416
|
-
let
|
|
13417
|
-
if (Q - W <= s && (
|
|
13418
|
-
let wt = new Uint16Array(
|
|
13419
|
+
let de = a[j], ht, Pe, Ke = W - x;
|
|
13420
|
+
if (Q - W <= s && (Pe = m(l.pos - S, z))) {
|
|
13421
|
+
let wt = new Uint16Array(Pe.size - Pe.skip), Xe = l.pos - Pe.size, ct = wt.length;
|
|
13419
13422
|
for (; l.pos > Xe; )
|
|
13420
|
-
ct = v(
|
|
13421
|
-
ht = new
|
|
13423
|
+
ct = v(Pe.start, wt, ct);
|
|
13424
|
+
ht = new a0(wt, Q - Pe.start, i), Ke = Pe.start - x;
|
|
13422
13425
|
} else {
|
|
13423
13426
|
let wt = l.pos - J;
|
|
13424
13427
|
l.next();
|
|
13425
|
-
let Xe = [], ct = [],
|
|
13428
|
+
let Xe = [], ct = [], Ht = j >= r ? j : -1, Xt = 0, M = Q;
|
|
13426
13429
|
for (; l.pos > wt; )
|
|
13427
|
-
|
|
13428
|
-
if (
|
|
13429
|
-
let H = f(
|
|
13430
|
-
ht = ao(
|
|
13430
|
+
Ht >= 0 && l.id == Ht && l.size >= 0 ? (l.end <= M - s && (p(Xe, ct, W, Xt, l.end, M, Ht, te, ye), Xt = Xe.length, M = l.end), l.next()) : w > 2500 ? d(W, wt, Xe, ct) : u(W, wt, Xe, ct, Ht, w + 1);
|
|
13431
|
+
if (Ht >= 0 && Xt > 0 && Xt < Xe.length && p(Xe, ct, W, Xt, W, M, Ht, te, ye), Xe.reverse(), ct.reverse(), Ht > -1 && Xt > 0) {
|
|
13432
|
+
let H = f(de, ye);
|
|
13433
|
+
ht = ao(de, Xe, ct, 0, Xe.length, 0, Q - W, H, H);
|
|
13431
13434
|
} else
|
|
13432
|
-
ht = g(
|
|
13435
|
+
ht = g(de, Xe, ct, Q - W, te - Q, ye);
|
|
13433
13436
|
}
|
|
13434
13437
|
k.push(ht), T.push(Ke);
|
|
13435
13438
|
}
|
|
@@ -13449,13 +13452,13 @@ function K5(n) {
|
|
|
13449
13452
|
let W = new Uint16Array(w * 4), Q = z[z.length - 2];
|
|
13450
13453
|
for (let J = z.length - 3, te = 0; J >= 0; J -= 3)
|
|
13451
13454
|
W[te++] = z[J], W[te++] = z[J + 1] - Q, W[te++] = z[J + 2] - Q, W[te++] = te;
|
|
13452
|
-
k.push(new
|
|
13455
|
+
k.push(new a0(W, z[2] - Q, i)), T.push(Q - x);
|
|
13453
13456
|
}
|
|
13454
13457
|
}
|
|
13455
13458
|
function f(x, S) {
|
|
13456
13459
|
return (k, T, z) => {
|
|
13457
13460
|
let w = 0, j = k.length - 1, W, Q;
|
|
13458
|
-
if (j >= 0 && (W = k[j]) instanceof
|
|
13461
|
+
if (j >= 0 && (W = k[j]) instanceof Te) {
|
|
13459
13462
|
if (!j && W.type == x && W.length == z)
|
|
13460
13463
|
return W;
|
|
13461
13464
|
(Q = W.prop(Z.lookAhead)) && (w = T[j] + W.length + Q);
|
|
@@ -13478,7 +13481,7 @@ function K5(n) {
|
|
|
13478
13481
|
let W = [Z.lookAhead, z];
|
|
13479
13482
|
j = j ? [W].concat(j) : [W];
|
|
13480
13483
|
}
|
|
13481
|
-
return new
|
|
13484
|
+
return new Te(x, S, k, T, j);
|
|
13482
13485
|
}
|
|
13483
13486
|
function m(x, S) {
|
|
13484
13487
|
let k = l.fork(), T = 0, z = 0, w = 0, j = k.end - s, W = { size: 0, start: 0, skip: 0 };
|
|
@@ -13491,7 +13494,7 @@ function K5(n) {
|
|
|
13491
13494
|
let te = k.pos - J;
|
|
13492
13495
|
if (J < 0 || te < Q || k.start < j)
|
|
13493
13496
|
break;
|
|
13494
|
-
let ye = k.id >= r ? 4 : 0,
|
|
13497
|
+
let ye = k.id >= r ? 4 : 0, de = k.start;
|
|
13495
13498
|
for (k.next(); k.pos > te; ) {
|
|
13496
13499
|
if (k.size < 0)
|
|
13497
13500
|
if (k.size == -3)
|
|
@@ -13501,7 +13504,7 @@ function K5(n) {
|
|
|
13501
13504
|
else k.id >= r && (ye += 4);
|
|
13502
13505
|
k.next();
|
|
13503
13506
|
}
|
|
13504
|
-
z =
|
|
13507
|
+
z = de, T += J, w += ye;
|
|
13505
13508
|
}
|
|
13506
13509
|
return (S < 0 || T == x) && (W.size = T, W.start = z, W.skip = w), W.size > 4 ? W : void 0;
|
|
13507
13510
|
}
|
|
@@ -13522,17 +13525,17 @@ function K5(n) {
|
|
|
13522
13525
|
for (; l.pos > 0; )
|
|
13523
13526
|
u(n.start || 0, n.bufferStart || 0, b, y, -1, 0);
|
|
13524
13527
|
let _ = (e = n.length) !== null && e !== void 0 ? e : b.length ? y[0] + b[0].length : 0;
|
|
13525
|
-
return new
|
|
13528
|
+
return new Te(a[n.topID], b.reverse(), y.reverse(), _);
|
|
13526
13529
|
}
|
|
13527
13530
|
const Fr = /* @__PURE__ */ new WeakMap();
|
|
13528
13531
|
function bi(n, e) {
|
|
13529
|
-
if (!n.isAnonymous || e instanceof
|
|
13532
|
+
if (!n.isAnonymous || e instanceof a0 || e.type != n)
|
|
13530
13533
|
return 1;
|
|
13531
13534
|
let t = Fr.get(e);
|
|
13532
13535
|
if (t == null) {
|
|
13533
13536
|
t = 1;
|
|
13534
13537
|
for (let i of e.children) {
|
|
13535
|
-
if (i.type != n || !(i instanceof
|
|
13538
|
+
if (i.type != n || !(i instanceof Te)) {
|
|
13536
13539
|
t = 1;
|
|
13537
13540
|
break;
|
|
13538
13541
|
}
|
|
@@ -13903,7 +13906,7 @@ function s7(n) {
|
|
|
13903
13906
|
e = e.next;
|
|
13904
13907
|
return e || null;
|
|
13905
13908
|
}
|
|
13906
|
-
const
|
|
13909
|
+
const P = ut.define, ti = P(), Qt = P(), jr = P(Qt), Ur = P(Qt), Jt = P(), ii = P(Jt), Dn = P(Jt), Tt = P(), d0 = P(Tt), Mt = P(), Dt = P(), Ds = P(), t2 = P(Ds), ni = P(), D = {
|
|
13907
13910
|
/**
|
|
13908
13911
|
A comment.
|
|
13909
13912
|
*/
|
|
@@ -13911,23 +13914,23 @@ const A = ut.define, ti = A(), Xt = A(), jr = A(Xt), Ur = A(Xt), Qt = A(), ii =
|
|
|
13911
13914
|
/**
|
|
13912
13915
|
A line [comment](#highlight.tags.comment).
|
|
13913
13916
|
*/
|
|
13914
|
-
lineComment:
|
|
13917
|
+
lineComment: P(ti),
|
|
13915
13918
|
/**
|
|
13916
13919
|
A block [comment](#highlight.tags.comment).
|
|
13917
13920
|
*/
|
|
13918
|
-
blockComment:
|
|
13921
|
+
blockComment: P(ti),
|
|
13919
13922
|
/**
|
|
13920
13923
|
A documentation [comment](#highlight.tags.comment).
|
|
13921
13924
|
*/
|
|
13922
|
-
docComment:
|
|
13925
|
+
docComment: P(ti),
|
|
13923
13926
|
/**
|
|
13924
13927
|
Any kind of identifier.
|
|
13925
13928
|
*/
|
|
13926
|
-
name:
|
|
13929
|
+
name: Qt,
|
|
13927
13930
|
/**
|
|
13928
13931
|
The [name](#highlight.tags.name) of a variable.
|
|
13929
13932
|
*/
|
|
13930
|
-
variableName:
|
|
13933
|
+
variableName: P(Qt),
|
|
13931
13934
|
/**
|
|
13932
13935
|
A type [name](#highlight.tags.name).
|
|
13933
13936
|
*/
|
|
@@ -13935,7 +13938,7 @@ const A = ut.define, ti = A(), Xt = A(), jr = A(Xt), Ur = A(Xt), Qt = A(), ii =
|
|
|
13935
13938
|
/**
|
|
13936
13939
|
A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
|
|
13937
13940
|
*/
|
|
13938
|
-
tagName:
|
|
13941
|
+
tagName: P(jr),
|
|
13939
13942
|
/**
|
|
13940
13943
|
A property or field [name](#highlight.tags.name).
|
|
13941
13944
|
*/
|
|
@@ -13943,27 +13946,27 @@ const A = ut.define, ti = A(), Xt = A(), jr = A(Xt), Ur = A(Xt), Qt = A(), ii =
|
|
|
13943
13946
|
/**
|
|
13944
13947
|
An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
|
|
13945
13948
|
*/
|
|
13946
|
-
attributeName:
|
|
13949
|
+
attributeName: P(Ur),
|
|
13947
13950
|
/**
|
|
13948
13951
|
The [name](#highlight.tags.name) of a class.
|
|
13949
13952
|
*/
|
|
13950
|
-
className:
|
|
13953
|
+
className: P(Qt),
|
|
13951
13954
|
/**
|
|
13952
13955
|
A label [name](#highlight.tags.name).
|
|
13953
13956
|
*/
|
|
13954
|
-
labelName:
|
|
13957
|
+
labelName: P(Qt),
|
|
13955
13958
|
/**
|
|
13956
13959
|
A namespace [name](#highlight.tags.name).
|
|
13957
13960
|
*/
|
|
13958
|
-
namespace:
|
|
13961
|
+
namespace: P(Qt),
|
|
13959
13962
|
/**
|
|
13960
13963
|
The [name](#highlight.tags.name) of a macro.
|
|
13961
13964
|
*/
|
|
13962
|
-
macroName:
|
|
13965
|
+
macroName: P(Qt),
|
|
13963
13966
|
/**
|
|
13964
13967
|
A literal value.
|
|
13965
13968
|
*/
|
|
13966
|
-
literal:
|
|
13969
|
+
literal: Jt,
|
|
13967
13970
|
/**
|
|
13968
13971
|
A string [literal](#highlight.tags.literal).
|
|
13969
13972
|
*/
|
|
@@ -13971,15 +13974,15 @@ const A = ut.define, ti = A(), Xt = A(), jr = A(Xt), Ur = A(Xt), Qt = A(), ii =
|
|
|
13971
13974
|
/**
|
|
13972
13975
|
A documentation [string](#highlight.tags.string).
|
|
13973
13976
|
*/
|
|
13974
|
-
docString:
|
|
13977
|
+
docString: P(ii),
|
|
13975
13978
|
/**
|
|
13976
13979
|
A character literal (subtag of [string](#highlight.tags.string)).
|
|
13977
13980
|
*/
|
|
13978
|
-
character:
|
|
13981
|
+
character: P(ii),
|
|
13979
13982
|
/**
|
|
13980
13983
|
An attribute value (subtag of [string](#highlight.tags.string)).
|
|
13981
13984
|
*/
|
|
13982
|
-
attributeValue:
|
|
13985
|
+
attributeValue: P(ii),
|
|
13983
13986
|
/**
|
|
13984
13987
|
A number [literal](#highlight.tags.literal).
|
|
13985
13988
|
*/
|
|
@@ -13987,114 +13990,114 @@ const A = ut.define, ti = A(), Xt = A(), jr = A(Xt), Ur = A(Xt), Qt = A(), ii =
|
|
|
13987
13990
|
/**
|
|
13988
13991
|
An integer [number](#highlight.tags.number) literal.
|
|
13989
13992
|
*/
|
|
13990
|
-
integer:
|
|
13993
|
+
integer: P(Dn),
|
|
13991
13994
|
/**
|
|
13992
13995
|
A floating-point [number](#highlight.tags.number) literal.
|
|
13993
13996
|
*/
|
|
13994
|
-
float:
|
|
13997
|
+
float: P(Dn),
|
|
13995
13998
|
/**
|
|
13996
13999
|
A boolean [literal](#highlight.tags.literal).
|
|
13997
14000
|
*/
|
|
13998
|
-
bool:
|
|
14001
|
+
bool: P(Jt),
|
|
13999
14002
|
/**
|
|
14000
14003
|
Regular expression [literal](#highlight.tags.literal).
|
|
14001
14004
|
*/
|
|
14002
|
-
regexp:
|
|
14005
|
+
regexp: P(Jt),
|
|
14003
14006
|
/**
|
|
14004
14007
|
An escape [literal](#highlight.tags.literal), for example a
|
|
14005
14008
|
backslash escape in a string.
|
|
14006
14009
|
*/
|
|
14007
|
-
escape:
|
|
14010
|
+
escape: P(Jt),
|
|
14008
14011
|
/**
|
|
14009
14012
|
A color [literal](#highlight.tags.literal).
|
|
14010
14013
|
*/
|
|
14011
|
-
color:
|
|
14014
|
+
color: P(Jt),
|
|
14012
14015
|
/**
|
|
14013
14016
|
A URL [literal](#highlight.tags.literal).
|
|
14014
14017
|
*/
|
|
14015
|
-
url:
|
|
14018
|
+
url: P(Jt),
|
|
14016
14019
|
/**
|
|
14017
14020
|
A language keyword.
|
|
14018
14021
|
*/
|
|
14019
|
-
keyword:
|
|
14022
|
+
keyword: Mt,
|
|
14020
14023
|
/**
|
|
14021
14024
|
The [keyword](#highlight.tags.keyword) for the self or this
|
|
14022
14025
|
object.
|
|
14023
14026
|
*/
|
|
14024
|
-
self:
|
|
14027
|
+
self: P(Mt),
|
|
14025
14028
|
/**
|
|
14026
14029
|
The [keyword](#highlight.tags.keyword) for null.
|
|
14027
14030
|
*/
|
|
14028
|
-
null:
|
|
14031
|
+
null: P(Mt),
|
|
14029
14032
|
/**
|
|
14030
14033
|
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
14031
14034
|
*/
|
|
14032
|
-
atom:
|
|
14035
|
+
atom: P(Mt),
|
|
14033
14036
|
/**
|
|
14034
14037
|
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
14035
14038
|
*/
|
|
14036
|
-
unit:
|
|
14039
|
+
unit: P(Mt),
|
|
14037
14040
|
/**
|
|
14038
14041
|
A modifier [keyword](#highlight.tags.keyword).
|
|
14039
14042
|
*/
|
|
14040
|
-
modifier:
|
|
14043
|
+
modifier: P(Mt),
|
|
14041
14044
|
/**
|
|
14042
14045
|
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
14043
14046
|
*/
|
|
14044
|
-
operatorKeyword:
|
|
14047
|
+
operatorKeyword: P(Mt),
|
|
14045
14048
|
/**
|
|
14046
14049
|
A control-flow related [keyword](#highlight.tags.keyword).
|
|
14047
14050
|
*/
|
|
14048
|
-
controlKeyword:
|
|
14051
|
+
controlKeyword: P(Mt),
|
|
14049
14052
|
/**
|
|
14050
14053
|
A [keyword](#highlight.tags.keyword) that defines something.
|
|
14051
14054
|
*/
|
|
14052
|
-
definitionKeyword:
|
|
14055
|
+
definitionKeyword: P(Mt),
|
|
14053
14056
|
/**
|
|
14054
14057
|
A [keyword](#highlight.tags.keyword) related to defining or
|
|
14055
14058
|
interfacing with modules.
|
|
14056
14059
|
*/
|
|
14057
|
-
moduleKeyword:
|
|
14060
|
+
moduleKeyword: P(Mt),
|
|
14058
14061
|
/**
|
|
14059
14062
|
An operator.
|
|
14060
14063
|
*/
|
|
14061
|
-
operator:
|
|
14064
|
+
operator: Dt,
|
|
14062
14065
|
/**
|
|
14063
14066
|
An [operator](#highlight.tags.operator) that dereferences something.
|
|
14064
14067
|
*/
|
|
14065
|
-
derefOperator:
|
|
14068
|
+
derefOperator: P(Dt),
|
|
14066
14069
|
/**
|
|
14067
14070
|
Arithmetic-related [operator](#highlight.tags.operator).
|
|
14068
14071
|
*/
|
|
14069
|
-
arithmeticOperator:
|
|
14072
|
+
arithmeticOperator: P(Dt),
|
|
14070
14073
|
/**
|
|
14071
14074
|
Logical [operator](#highlight.tags.operator).
|
|
14072
14075
|
*/
|
|
14073
|
-
logicOperator:
|
|
14076
|
+
logicOperator: P(Dt),
|
|
14074
14077
|
/**
|
|
14075
14078
|
Bit [operator](#highlight.tags.operator).
|
|
14076
14079
|
*/
|
|
14077
|
-
bitwiseOperator:
|
|
14080
|
+
bitwiseOperator: P(Dt),
|
|
14078
14081
|
/**
|
|
14079
14082
|
Comparison [operator](#highlight.tags.operator).
|
|
14080
14083
|
*/
|
|
14081
|
-
compareOperator:
|
|
14084
|
+
compareOperator: P(Dt),
|
|
14082
14085
|
/**
|
|
14083
14086
|
[Operator](#highlight.tags.operator) that updates its operand.
|
|
14084
14087
|
*/
|
|
14085
|
-
updateOperator:
|
|
14088
|
+
updateOperator: P(Dt),
|
|
14086
14089
|
/**
|
|
14087
14090
|
[Operator](#highlight.tags.operator) that defines something.
|
|
14088
14091
|
*/
|
|
14089
|
-
definitionOperator:
|
|
14092
|
+
definitionOperator: P(Dt),
|
|
14090
14093
|
/**
|
|
14091
14094
|
Type-related [operator](#highlight.tags.operator).
|
|
14092
14095
|
*/
|
|
14093
|
-
typeOperator:
|
|
14096
|
+
typeOperator: P(Dt),
|
|
14094
14097
|
/**
|
|
14095
14098
|
Control-flow [operator](#highlight.tags.operator).
|
|
14096
14099
|
*/
|
|
14097
|
-
controlOperator:
|
|
14100
|
+
controlOperator: P(Dt),
|
|
14098
14101
|
/**
|
|
14099
14102
|
Program or markup punctuation.
|
|
14100
14103
|
*/
|
|
@@ -14103,7 +14106,7 @@ const A = ut.define, ti = A(), Xt = A(), jr = A(Xt), Ur = A(Xt), Qt = A(), ii =
|
|
|
14103
14106
|
[Punctuation](#highlight.tags.punctuation) that separates
|
|
14104
14107
|
things.
|
|
14105
14108
|
*/
|
|
14106
|
-
separator:
|
|
14109
|
+
separator: P(Ds),
|
|
14107
14110
|
/**
|
|
14108
14111
|
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
14109
14112
|
*/
|
|
@@ -14112,26 +14115,26 @@ const A = ut.define, ti = A(), Xt = A(), jr = A(Xt), Ur = A(Xt), Qt = A(), ii =
|
|
|
14112
14115
|
Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
|
|
14113
14116
|
tokens).
|
|
14114
14117
|
*/
|
|
14115
|
-
angleBracket:
|
|
14118
|
+
angleBracket: P(t2),
|
|
14116
14119
|
/**
|
|
14117
14120
|
Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
|
|
14118
14121
|
tokens).
|
|
14119
14122
|
*/
|
|
14120
|
-
squareBracket:
|
|
14123
|
+
squareBracket: P(t2),
|
|
14121
14124
|
/**
|
|
14122
14125
|
Parentheses (usually `(` and `)` tokens). Subtag of
|
|
14123
14126
|
[bracket](#highlight.tags.bracket).
|
|
14124
14127
|
*/
|
|
14125
|
-
paren:
|
|
14128
|
+
paren: P(t2),
|
|
14126
14129
|
/**
|
|
14127
14130
|
Braces (usually `{` and `}` tokens). Subtag of
|
|
14128
14131
|
[bracket](#highlight.tags.bracket).
|
|
14129
14132
|
*/
|
|
14130
|
-
brace:
|
|
14133
|
+
brace: P(t2),
|
|
14131
14134
|
/**
|
|
14132
14135
|
Content, for example plain text in XML or markup documents.
|
|
14133
14136
|
*/
|
|
14134
|
-
content:
|
|
14137
|
+
content: Tt,
|
|
14135
14138
|
/**
|
|
14136
14139
|
[Content](#highlight.tags.content) that represents a heading.
|
|
14137
14140
|
*/
|
|
@@ -14139,77 +14142,77 @@ const A = ut.define, ti = A(), Xt = A(), jr = A(Xt), Ur = A(Xt), Qt = A(), ii =
|
|
|
14139
14142
|
/**
|
|
14140
14143
|
A level 1 [heading](#highlight.tags.heading).
|
|
14141
14144
|
*/
|
|
14142
|
-
heading1:
|
|
14145
|
+
heading1: P(d0),
|
|
14143
14146
|
/**
|
|
14144
14147
|
A level 2 [heading](#highlight.tags.heading).
|
|
14145
14148
|
*/
|
|
14146
|
-
heading2:
|
|
14149
|
+
heading2: P(d0),
|
|
14147
14150
|
/**
|
|
14148
14151
|
A level 3 [heading](#highlight.tags.heading).
|
|
14149
14152
|
*/
|
|
14150
|
-
heading3:
|
|
14153
|
+
heading3: P(d0),
|
|
14151
14154
|
/**
|
|
14152
14155
|
A level 4 [heading](#highlight.tags.heading).
|
|
14153
14156
|
*/
|
|
14154
|
-
heading4:
|
|
14157
|
+
heading4: P(d0),
|
|
14155
14158
|
/**
|
|
14156
14159
|
A level 5 [heading](#highlight.tags.heading).
|
|
14157
14160
|
*/
|
|
14158
|
-
heading5:
|
|
14161
|
+
heading5: P(d0),
|
|
14159
14162
|
/**
|
|
14160
14163
|
A level 6 [heading](#highlight.tags.heading).
|
|
14161
14164
|
*/
|
|
14162
|
-
heading6:
|
|
14165
|
+
heading6: P(d0),
|
|
14163
14166
|
/**
|
|
14164
14167
|
A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
|
|
14165
14168
|
*/
|
|
14166
|
-
contentSeparator:
|
|
14169
|
+
contentSeparator: P(Tt),
|
|
14167
14170
|
/**
|
|
14168
14171
|
[Content](#highlight.tags.content) that represents a list.
|
|
14169
14172
|
*/
|
|
14170
|
-
list:
|
|
14173
|
+
list: P(Tt),
|
|
14171
14174
|
/**
|
|
14172
14175
|
[Content](#highlight.tags.content) that represents a quote.
|
|
14173
14176
|
*/
|
|
14174
|
-
quote:
|
|
14177
|
+
quote: P(Tt),
|
|
14175
14178
|
/**
|
|
14176
14179
|
[Content](#highlight.tags.content) that is emphasized.
|
|
14177
14180
|
*/
|
|
14178
|
-
emphasis:
|
|
14181
|
+
emphasis: P(Tt),
|
|
14179
14182
|
/**
|
|
14180
14183
|
[Content](#highlight.tags.content) that is styled strong.
|
|
14181
14184
|
*/
|
|
14182
|
-
strong:
|
|
14185
|
+
strong: P(Tt),
|
|
14183
14186
|
/**
|
|
14184
14187
|
[Content](#highlight.tags.content) that is part of a link.
|
|
14185
14188
|
*/
|
|
14186
|
-
link:
|
|
14189
|
+
link: P(Tt),
|
|
14187
14190
|
/**
|
|
14188
14191
|
[Content](#highlight.tags.content) that is styled as code or
|
|
14189
14192
|
monospace.
|
|
14190
14193
|
*/
|
|
14191
|
-
monospace:
|
|
14194
|
+
monospace: P(Tt),
|
|
14192
14195
|
/**
|
|
14193
14196
|
[Content](#highlight.tags.content) that has a strike-through
|
|
14194
14197
|
style.
|
|
14195
14198
|
*/
|
|
14196
|
-
strikethrough:
|
|
14199
|
+
strikethrough: P(Tt),
|
|
14197
14200
|
/**
|
|
14198
14201
|
Inserted text in a change-tracking format.
|
|
14199
14202
|
*/
|
|
14200
|
-
inserted:
|
|
14203
|
+
inserted: P(),
|
|
14201
14204
|
/**
|
|
14202
14205
|
Deleted text.
|
|
14203
14206
|
*/
|
|
14204
|
-
deleted:
|
|
14207
|
+
deleted: P(),
|
|
14205
14208
|
/**
|
|
14206
14209
|
Changed text.
|
|
14207
14210
|
*/
|
|
14208
|
-
changed:
|
|
14211
|
+
changed: P(),
|
|
14209
14212
|
/**
|
|
14210
14213
|
An invalid or unsyntactic element.
|
|
14211
14214
|
*/
|
|
14212
|
-
invalid:
|
|
14215
|
+
invalid: P(),
|
|
14213
14216
|
/**
|
|
14214
14217
|
Metadata or meta-instruction.
|
|
14215
14218
|
*/
|
|
@@ -14218,17 +14221,17 @@ const A = ut.define, ti = A(), Xt = A(), jr = A(Xt), Ur = A(Xt), Qt = A(), ii =
|
|
|
14218
14221
|
[Metadata](#highlight.tags.meta) that applies to the entire
|
|
14219
14222
|
document.
|
|
14220
14223
|
*/
|
|
14221
|
-
documentMeta:
|
|
14224
|
+
documentMeta: P(ni),
|
|
14222
14225
|
/**
|
|
14223
14226
|
[Metadata](#highlight.tags.meta) that annotates or adds
|
|
14224
14227
|
attributes to a given syntactic element.
|
|
14225
14228
|
*/
|
|
14226
|
-
annotation:
|
|
14229
|
+
annotation: P(ni),
|
|
14227
14230
|
/**
|
|
14228
14231
|
Processing instruction or preprocessor directive. Subtag of
|
|
14229
14232
|
[meta](#highlight.tags.meta).
|
|
14230
14233
|
*/
|
|
14231
|
-
processingInstruction:
|
|
14234
|
+
processingInstruction: P(ni),
|
|
14232
14235
|
/**
|
|
14233
14236
|
[Modifier](#highlight.Tag^defineModifier) that indicates that a
|
|
14234
14237
|
given element is being defined. Expected to be used with the
|
|
@@ -14323,9 +14326,9 @@ class xt {
|
|
|
14323
14326
|
*/
|
|
14324
14327
|
constructor(e, t, i = [], s = "") {
|
|
14325
14328
|
this.data = e, this.name = s, se.prototype.hasOwnProperty("tree") || Object.defineProperty(se.prototype, "tree", { get() {
|
|
14326
|
-
return
|
|
14329
|
+
return Ie(this);
|
|
14327
14330
|
} }), this.parser = t, this.extension = [
|
|
14328
|
-
|
|
14331
|
+
h0.of(this),
|
|
14329
14332
|
se.languageData.of((o, r, l) => {
|
|
14330
14333
|
let a = qr(o, r, l), c = a.type.prop(V0);
|
|
14331
14334
|
if (!c)
|
|
@@ -14355,7 +14358,7 @@ class xt {
|
|
|
14355
14358
|
in this language, when those exist.
|
|
14356
14359
|
*/
|
|
14357
14360
|
findRegions(e) {
|
|
14358
|
-
let t = e.facet(
|
|
14361
|
+
let t = e.facet(h0);
|
|
14359
14362
|
if ((t == null ? void 0 : t.data) == this.data)
|
|
14360
14363
|
return [{ from: 0, to: e.doc.length }];
|
|
14361
14364
|
if (!t || !t.allowsNesting)
|
|
@@ -14382,10 +14385,10 @@ class xt {
|
|
|
14382
14385
|
}
|
|
14383
14386
|
for (let a = 0; a < o.children.length; a++) {
|
|
14384
14387
|
let c = o.children[a];
|
|
14385
|
-
c instanceof
|
|
14388
|
+
c instanceof Te && s(c, o.positions[a] + r);
|
|
14386
14389
|
}
|
|
14387
14390
|
};
|
|
14388
|
-
return s(
|
|
14391
|
+
return s(Ie(e), 0), i;
|
|
14389
14392
|
}
|
|
14390
14393
|
/**
|
|
14391
14394
|
Indicates whether this language allows nested languages. The
|
|
@@ -14397,9 +14400,9 @@ class xt {
|
|
|
14397
14400
|
}
|
|
14398
14401
|
xt.setState = /* @__PURE__ */ X.define();
|
|
14399
14402
|
function qr(n, e, t) {
|
|
14400
|
-
let i = n.facet(
|
|
14403
|
+
let i = n.facet(h0), s = Ie(n).topNode;
|
|
14401
14404
|
if (!i || i.allowsNesting)
|
|
14402
|
-
for (let o = s; o; o = o.enter(e, t,
|
|
14405
|
+
for (let o = s; o; o = o.enter(e, t, Be.ExcludeBuffers))
|
|
14403
14406
|
o.type.isTop && (s = o);
|
|
14404
14407
|
return s;
|
|
14405
14408
|
}
|
|
@@ -14427,9 +14430,9 @@ class Ei extends xt {
|
|
|
14427
14430
|
return this.parser.hasWrappers();
|
|
14428
14431
|
}
|
|
14429
14432
|
}
|
|
14430
|
-
function
|
|
14433
|
+
function Ie(n) {
|
|
14431
14434
|
let e = n.field(xt.state, !1);
|
|
14432
|
-
return e ? e.tree :
|
|
14435
|
+
return e ? e.tree : Te.empty;
|
|
14433
14436
|
}
|
|
14434
14437
|
class l7 {
|
|
14435
14438
|
/**
|
|
@@ -14464,7 +14467,7 @@ class Bi {
|
|
|
14464
14467
|
@internal
|
|
14465
14468
|
*/
|
|
14466
14469
|
static create(e, t, i) {
|
|
14467
|
-
return new Bi(e, t, [],
|
|
14470
|
+
return new Bi(e, t, [], Te.empty, 0, i, [], null);
|
|
14468
14471
|
}
|
|
14469
14472
|
startParse() {
|
|
14470
14473
|
return this.parser.startParse(new l7(this.state.doc), this.fragments);
|
|
@@ -14473,7 +14476,7 @@ class Bi {
|
|
|
14473
14476
|
@internal
|
|
14474
14477
|
*/
|
|
14475
14478
|
work(e, t) {
|
|
14476
|
-
return t != null && t >= this.state.doc.length && (t = void 0), this.tree !=
|
|
14479
|
+
return t != null && t >= this.state.doc.length && (t = void 0), this.tree != Te.empty && this.isDone(t ?? this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => {
|
|
14477
14480
|
var i;
|
|
14478
14481
|
if (typeof e == "number") {
|
|
14479
14482
|
let s = Date.now() + e;
|
|
@@ -14522,7 +14525,7 @@ class Bi {
|
|
|
14522
14525
|
let { fragments: i, tree: s, treeLen: o, viewport: r, skipped: l } = this;
|
|
14523
14526
|
if (this.takeTree(), !e.empty) {
|
|
14524
14527
|
let a = [];
|
|
14525
|
-
if (e.iterChangedRanges((c, h, u, d) => a.push({ fromA: c, toA: h, fromB: u, toB: d })), i = w0.applyChanges(i, a), s =
|
|
14528
|
+
if (e.iterChangedRanges((c, h, u, d) => a.push({ fromA: c, toA: h, fromB: u, toB: d })), i = w0.applyChanges(i, a), s = Te.empty, o = 0, r = { from: e.mapPos(r.from, -1), to: e.mapPos(r.to, 1) }, this.skipped.length) {
|
|
14526
14529
|
l = [];
|
|
14527
14530
|
for (let c of this.skipped) {
|
|
14528
14531
|
let h = e.mapPos(c.from, 1), u = e.mapPos(c.to, -1);
|
|
@@ -14582,7 +14585,7 @@ class Bi {
|
|
|
14582
14585
|
a.tempSkipped.push(c);
|
|
14583
14586
|
e && (a.scheduleOn = a.scheduleOn ? Promise.all([a.scheduleOn, e]) : e);
|
|
14584
14587
|
}
|
|
14585
|
-
return this.parsedPos = r, new
|
|
14588
|
+
return this.parsedPos = r, new Te(nt.none, [], [], r - o);
|
|
14586
14589
|
},
|
|
14587
14590
|
stoppedAt: null,
|
|
14588
14591
|
stopAt() {
|
|
@@ -14621,7 +14624,7 @@ class U0 {
|
|
|
14621
14624
|
return t.work(20, i) || t.takeTree(), new U0(t);
|
|
14622
14625
|
}
|
|
14623
14626
|
static init(e) {
|
|
14624
|
-
let t = Math.min(3e3, e.doc.length), i = Bi.create(e.facet(
|
|
14627
|
+
let t = Math.min(3e3, e.doc.length), i = Bi.create(e.facet(h0).parser, e, { from: 0, to: t });
|
|
14625
14628
|
return i.work(20, t) || i.takeTree(), new U0(i);
|
|
14626
14629
|
}
|
|
14627
14630
|
}
|
|
@@ -14631,7 +14634,7 @@ xt.state = /* @__PURE__ */ We.define({
|
|
|
14631
14634
|
for (let t of e.effects)
|
|
14632
14635
|
if (t.is(xt.setState))
|
|
14633
14636
|
return t.value;
|
|
14634
|
-
return e.startState.facet(
|
|
14637
|
+
return e.startState.facet(h0) != e.state.facet(h0) ? U0.init(e.state) : n.apply(e);
|
|
14635
14638
|
}
|
|
14636
14639
|
});
|
|
14637
14640
|
let k3 = (n) => {
|
|
@@ -14655,7 +14658,7 @@ typeof requestIdleCallback < "u" && (k3 = (n) => {
|
|
|
14655
14658
|
);
|
|
14656
14659
|
return () => e < 0 ? clearTimeout(t) : cancelIdleCallback(e);
|
|
14657
14660
|
});
|
|
14658
|
-
const An = typeof navigator < "u" && (!((Tn = navigator.scheduling) === null || Tn === void 0) && Tn.isInputPending) ? () => navigator.scheduling.isInputPending() : null, a7 = /* @__PURE__ */
|
|
14661
|
+
const An = typeof navigator < "u" && (!((Tn = navigator.scheduling) === null || Tn === void 0) && Tn.isInputPending) ? () => navigator.scheduling.isInputPending() : null, a7 = /* @__PURE__ */ Ae.fromClass(class {
|
|
14659
14662
|
constructor(e) {
|
|
14660
14663
|
this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
|
|
14661
14664
|
}
|
|
@@ -14696,7 +14699,7 @@ const An = typeof navigator < "u" && (!((Tn = navigator.scheduling) === null ||
|
|
|
14696
14699
|
eventHandlers: { focus() {
|
|
14697
14700
|
this.scheduleWork();
|
|
14698
14701
|
} }
|
|
14699
|
-
}),
|
|
14702
|
+
}), h0 = /* @__PURE__ */ I.define({
|
|
14700
14703
|
combine(n) {
|
|
14701
14704
|
return n.length ? n[0] : null;
|
|
14702
14705
|
},
|
|
@@ -14749,7 +14752,7 @@ function co(n, e) {
|
|
|
14749
14752
|
if (s !== void 0)
|
|
14750
14753
|
return s;
|
|
14751
14754
|
}
|
|
14752
|
-
let t =
|
|
14755
|
+
let t = Ie(n.state);
|
|
14753
14756
|
return t.length >= e ? u7(n, t, e) : null;
|
|
14754
14757
|
}
|
|
14755
14758
|
class rn {
|
|
@@ -14970,7 +14973,7 @@ function b7() {
|
|
|
14970
14973
|
}
|
|
14971
14974
|
const x7 = /* @__PURE__ */ I.define(), M3 = /* @__PURE__ */ new Z();
|
|
14972
14975
|
function y7(n, e, t) {
|
|
14973
|
-
let i =
|
|
14976
|
+
let i = Ie(n);
|
|
14974
14977
|
if (i.length < t)
|
|
14975
14978
|
return null;
|
|
14976
14979
|
let s = i.resolveStack(t, 1), o = null;
|
|
@@ -15121,7 +15124,7 @@ const O7 = (n) => {
|
|
|
15121
15124
|
placeholderText: "…"
|
|
15122
15125
|
}, z3 = /* @__PURE__ */ I.define({
|
|
15123
15126
|
combine(n) {
|
|
15124
|
-
return
|
|
15127
|
+
return Rt(n, T7);
|
|
15125
15128
|
}
|
|
15126
15129
|
});
|
|
15127
15130
|
function V3(n) {
|
|
@@ -15137,12 +15140,12 @@ function E3(n, e) {
|
|
|
15137
15140
|
let o = document.createElement("span");
|
|
15138
15141
|
return o.textContent = i.placeholderText, o.setAttribute("aria-label", t.phrase("folded code")), o.title = t.phrase("unfold"), o.className = "cm-foldPlaceholder", o.onclick = s, o;
|
|
15139
15142
|
}
|
|
15140
|
-
const Xr = /* @__PURE__ */ U.replace({ widget: /* @__PURE__ */ new class extends
|
|
15143
|
+
const Xr = /* @__PURE__ */ U.replace({ widget: /* @__PURE__ */ new class extends c0 {
|
|
15141
15144
|
toDOM(n) {
|
|
15142
15145
|
return E3(n, null);
|
|
15143
15146
|
}
|
|
15144
15147
|
}() });
|
|
15145
|
-
class A7 extends
|
|
15148
|
+
class A7 extends c0 {
|
|
15146
15149
|
constructor(e) {
|
|
15147
15150
|
super(), this.value = e;
|
|
15148
15151
|
}
|
|
@@ -15160,7 +15163,7 @@ const P7 = {
|
|
|
15160
15163
|
domEventHandlers: {},
|
|
15161
15164
|
foldingChanged: () => !1
|
|
15162
15165
|
};
|
|
15163
|
-
class Pn extends
|
|
15166
|
+
class Pn extends qt {
|
|
15164
15167
|
constructor(e, t) {
|
|
15165
15168
|
super(), this.config = e, this.open = t;
|
|
15166
15169
|
}
|
|
@@ -15175,15 +15178,15 @@ class Pn extends Ut {
|
|
|
15175
15178
|
}
|
|
15176
15179
|
}
|
|
15177
15180
|
function z7(n = {}) {
|
|
15178
|
-
let e = { ...P7, ...n }, t = new Pn(e, !0), i = new Pn(e, !1), s =
|
|
15181
|
+
let e = { ...P7, ...n }, t = new Pn(e, !0), i = new Pn(e, !1), s = Ae.fromClass(class {
|
|
15179
15182
|
constructor(r) {
|
|
15180
15183
|
this.from = r.viewport.from, this.markers = this.buildMarkers(r);
|
|
15181
15184
|
}
|
|
15182
15185
|
update(r) {
|
|
15183
|
-
(r.docChanged || r.viewportChanged || r.startState.facet(
|
|
15186
|
+
(r.docChanged || r.viewportChanged || r.startState.facet(h0) != r.state.facet(h0) || r.startState.field(C0, !1) != r.state.field(C0, !1) || Ie(r.startState) != Ie(r.state) || e.foldingChanged(r)) && (this.markers = this.buildMarkers(r.view));
|
|
15184
15187
|
}
|
|
15185
15188
|
buildMarkers(r) {
|
|
15186
|
-
let l = new
|
|
15189
|
+
let l = new jt();
|
|
15187
15190
|
for (let a of r.viewportLineBlocks) {
|
|
15188
15191
|
let c = Ii(r.state, a.from, a.to) ? i : Ri(r.state, a.from, a.to) ? t : null;
|
|
15189
15192
|
c && l.add(a.from, a.from, c);
|
|
@@ -15238,7 +15241,7 @@ class an {
|
|
|
15238
15241
|
this.specs = e;
|
|
15239
15242
|
let i;
|
|
15240
15243
|
function s(l) {
|
|
15241
|
-
let a =
|
|
15244
|
+
let a = o0.newName();
|
|
15242
15245
|
return (i || (i = /* @__PURE__ */ Object.create(null)))["." + a] = l, a;
|
|
15243
15246
|
}
|
|
15244
15247
|
const o = typeof t.all == "string" ? t.all : t.all ? s(t.all) : void 0, r = t.scope;
|
|
@@ -15247,7 +15250,7 @@ class an {
|
|
|
15247
15250
|
class: l.class || s(Object.assign({}, l, { tag: null }))
|
|
15248
15251
|
})), {
|
|
15249
15252
|
all: o
|
|
15250
|
-
}).style, this.module = i ? new
|
|
15253
|
+
}).style, this.module = i ? new o0(i) : null, this.themeType = t.themeType;
|
|
15251
15254
|
}
|
|
15252
15255
|
/**
|
|
15253
15256
|
Create a highlighter style that associates the given styles to
|
|
@@ -15283,16 +15286,16 @@ function E7(n, e) {
|
|
|
15283
15286
|
}
|
|
15284
15287
|
class B7 {
|
|
15285
15288
|
constructor(e) {
|
|
15286
|
-
this.markCache = /* @__PURE__ */ Object.create(null), this.tree =
|
|
15289
|
+
this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Ie(e.state), this.decorations = this.buildDeco(e, zn(e.state)), this.decoratedTo = e.viewport.to;
|
|
15287
15290
|
}
|
|
15288
15291
|
update(e) {
|
|
15289
|
-
let t =
|
|
15292
|
+
let t = Ie(e.state), i = zn(e.state), s = i != zn(e.startState), { viewport: o } = e.view, r = e.changes.mapPos(this.decoratedTo, 1);
|
|
15290
15293
|
t.length < o.to && !s && t.type == this.tree.type && r >= o.to ? (this.decorations = this.decorations.map(e.changes), this.decoratedTo = r) : (t != this.tree || e.viewportChanged || s) && (this.tree = t, this.decorations = this.buildDeco(e.view, i), this.decoratedTo = o.to);
|
|
15291
15294
|
}
|
|
15292
15295
|
buildDeco(e, t) {
|
|
15293
15296
|
if (!t || !this.tree.length)
|
|
15294
15297
|
return U.none;
|
|
15295
|
-
let i = new
|
|
15298
|
+
let i = new jt();
|
|
15296
15299
|
for (let { from: s, to: o } of e.visibleRanges)
|
|
15297
15300
|
i7(this.tree, t, (r, l, a) => {
|
|
15298
15301
|
i.add(r, l, this.markCache[a] || (this.markCache[a] = U.mark({ class: a })));
|
|
@@ -15300,7 +15303,7 @@ class B7 {
|
|
|
15300
15303
|
return i.finish();
|
|
15301
15304
|
}
|
|
15302
15305
|
}
|
|
15303
|
-
const L7 = /* @__PURE__ */ O0.high(/* @__PURE__ */
|
|
15306
|
+
const L7 = /* @__PURE__ */ O0.high(/* @__PURE__ */ Ae.fromClass(B7, {
|
|
15304
15307
|
decorations: (n) => n.decorations
|
|
15305
15308
|
})), R7 = /* @__PURE__ */ an.define([
|
|
15306
15309
|
{
|
|
@@ -15385,7 +15388,7 @@ const L7 = /* @__PURE__ */ O0.high(/* @__PURE__ */ Te.fromClass(B7, {
|
|
|
15385
15388
|
"&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
|
|
15386
15389
|
}), L3 = 1e4, R3 = "()[]{}", I3 = /* @__PURE__ */ I.define({
|
|
15387
15390
|
combine(n) {
|
|
15388
|
-
return
|
|
15391
|
+
return Rt(n, {
|
|
15389
15392
|
afterCursor: !0,
|
|
15390
15393
|
brackets: R3,
|
|
15391
15394
|
maxScanDistance: L3,
|
|
@@ -15408,7 +15411,7 @@ const W7 = /* @__PURE__ */ We.define({
|
|
|
15408
15411
|
for (let s of e.state.selection.ranges) {
|
|
15409
15412
|
if (!s.empty)
|
|
15410
15413
|
continue;
|
|
15411
|
-
let o =
|
|
15414
|
+
let o = Vt(e.state, s.head, -1, i) || s.head > 0 && Vt(e.state, s.head - 1, 1, i) || i.afterCursor && (Vt(e.state, s.head, 1, i) || s.head < e.state.doc.length && Vt(e.state, s.head + 1, -1, i));
|
|
15412
15415
|
o && (t = t.concat(i.renderMatch(o, e.state)));
|
|
15413
15416
|
}
|
|
15414
15417
|
return U.set(t, !0);
|
|
@@ -15437,8 +15440,8 @@ function Ps(n) {
|
|
|
15437
15440
|
let e = n.type.prop(H3);
|
|
15438
15441
|
return e ? e(n.node) : n;
|
|
15439
15442
|
}
|
|
15440
|
-
function
|
|
15441
|
-
let s = i.maxScanDistance || L3, o = i.brackets || R3, r =
|
|
15443
|
+
function Vt(n, e, t, i = {}) {
|
|
15444
|
+
let s = i.maxScanDistance || L3, o = i.brackets || R3, r = Ie(n), l = r.resolveInner(e, t);
|
|
15442
15445
|
for (let a = l; a; a = a.parent) {
|
|
15443
15446
|
let c = As(a.type, t, o);
|
|
15444
15447
|
if (c && a.from < a.to) {
|
|
@@ -15657,9 +15660,9 @@ function i9(n, e, t = e.selection.ranges) {
|
|
|
15657
15660
|
}
|
|
15658
15661
|
return null;
|
|
15659
15662
|
}
|
|
15660
|
-
const zs = /* @__PURE__ */
|
|
15663
|
+
const zs = /* @__PURE__ */ Kt.define(), n9 = /* @__PURE__ */ Kt.define(), s9 = /* @__PURE__ */ I.define(), $3 = /* @__PURE__ */ I.define({
|
|
15661
15664
|
combine(n) {
|
|
15662
|
-
return
|
|
15665
|
+
return Rt(n, {
|
|
15663
15666
|
minDepth: 100,
|
|
15664
15667
|
newGroupDelay: 500,
|
|
15665
15668
|
joinToEvent: (e, t) => t
|
|
@@ -15671,25 +15674,25 @@ const zs = /* @__PURE__ */ Yt.define(), n9 = /* @__PURE__ */ Yt.define(), s9 = /
|
|
|
15671
15674
|
}
|
|
15672
15675
|
}), W3 = /* @__PURE__ */ We.define({
|
|
15673
15676
|
create() {
|
|
15674
|
-
return
|
|
15677
|
+
return Et.empty;
|
|
15675
15678
|
},
|
|
15676
15679
|
update(n, e) {
|
|
15677
15680
|
let t = e.state.facet($3), i = e.annotation(zs);
|
|
15678
15681
|
if (i) {
|
|
15679
15682
|
let a = it.fromTransaction(e, i.selection), c = i.side, h = c == 0 ? n.undone : n.done;
|
|
15680
|
-
return a ? h = Hi(h, h.length, t.minDepth, a) : h = j3(h, e.startState.selection), new
|
|
15683
|
+
return a ? h = Hi(h, h.length, t.minDepth, a) : h = j3(h, e.startState.selection), new Et(c == 0 ? i.rest : h, c == 0 ? h : i.rest);
|
|
15681
15684
|
}
|
|
15682
15685
|
let s = e.annotation(n9);
|
|
15683
|
-
if ((s == "full" || s == "before") && (n = n.isolate()), e.annotation(
|
|
15686
|
+
if ((s == "full" || s == "before") && (n = n.isolate()), e.annotation(Ve.addToHistory) === !1)
|
|
15684
15687
|
return e.changes.empty ? n : n.addMapping(e.changes.desc);
|
|
15685
|
-
let o = it.fromTransaction(e), r = e.annotation(
|
|
15688
|
+
let o = it.fromTransaction(e), r = e.annotation(Ve.time), l = e.annotation(Ve.userEvent);
|
|
15686
15689
|
return o ? n = n.addChanges(o, r, l, t, e) : e.selection && (n = n.addSelection(e.startState.selection, r, l, t.newGroupDelay)), (s == "full" || s == "after") && (n = n.isolate()), n;
|
|
15687
15690
|
},
|
|
15688
15691
|
toJSON(n) {
|
|
15689
15692
|
return { done: n.done.map((e) => e.toJSON()), undone: n.undone.map((e) => e.toJSON()) };
|
|
15690
15693
|
},
|
|
15691
15694
|
fromJSON(n) {
|
|
15692
|
-
return new
|
|
15695
|
+
return new Et(n.done.map(it.fromJSON), n.undone.map(it.fromJSON));
|
|
15693
15696
|
}
|
|
15694
15697
|
});
|
|
15695
15698
|
function o9(n = {}) {
|
|
@@ -15733,7 +15736,7 @@ class it {
|
|
|
15733
15736
|
};
|
|
15734
15737
|
}
|
|
15735
15738
|
static fromJSON(e) {
|
|
15736
|
-
return new it(e.changes &&
|
|
15739
|
+
return new it(e.changes && ze.fromJSON(e.changes), [], e.mapped && Bt.fromJSON(e.mapped), e.startSelection && O.fromJSON(e.startSelection), e.selectionsAfter.map(O.fromJSON));
|
|
15737
15740
|
}
|
|
15738
15741
|
// This does not check `addToHistory` and such, it assumes the
|
|
15739
15742
|
// transaction needs to be converted to an item. Returns null when
|
|
@@ -15803,24 +15806,24 @@ function d9(n, e, t) {
|
|
|
15803
15806
|
return new it(s, X.mapEffects(n.effects, e), r, n.startSelection.map(o), i);
|
|
15804
15807
|
}
|
|
15805
15808
|
const f9 = /^(input\.type|delete)($|\.)/;
|
|
15806
|
-
class
|
|
15809
|
+
class Et {
|
|
15807
15810
|
constructor(e, t, i = 0, s = void 0) {
|
|
15808
15811
|
this.done = e, this.undone = t, this.prevTime = i, this.prevUserEvent = s;
|
|
15809
15812
|
}
|
|
15810
15813
|
isolate() {
|
|
15811
|
-
return this.prevTime ? new
|
|
15814
|
+
return this.prevTime ? new Et(this.done, this.undone) : this;
|
|
15812
15815
|
}
|
|
15813
15816
|
addChanges(e, t, i, s, o) {
|
|
15814
15817
|
let r = this.done, l = r[r.length - 1];
|
|
15815
15818
|
return l && l.changes && !l.changes.empty && e.changes && (!i || f9.test(i)) && (!l.selectionsAfter.length && t - this.prevTime < s.newGroupDelay && s.joinToEvent(o, a9(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
|
|
15816
|
-
i == "input.type.compose") ? r = Hi(r, r.length - 1, s.minDepth, new it(e.changes.compose(l.changes), F3(X.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, dt)) : r = Hi(r, r.length, s.minDepth, e), new
|
|
15819
|
+
i == "input.type.compose") ? r = Hi(r, r.length - 1, s.minDepth, new it(e.changes.compose(l.changes), F3(X.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, dt)) : r = Hi(r, r.length, s.minDepth, e), new Et(r, dt, t, i);
|
|
15817
15820
|
}
|
|
15818
15821
|
addSelection(e, t, i, s) {
|
|
15819
15822
|
let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : dt;
|
|
15820
|
-
return o.length > 0 && t - this.prevTime < s && i == this.prevUserEvent && i && /^select($|\.)/.test(i) && h9(o[o.length - 1], e) ? this : new
|
|
15823
|
+
return o.length > 0 && t - this.prevTime < s && i == this.prevUserEvent && i && /^select($|\.)/.test(i) && h9(o[o.length - 1], e) ? this : new Et(j3(this.done, e), this.undone, t, i);
|
|
15821
15824
|
}
|
|
15822
15825
|
addMapping(e) {
|
|
15823
|
-
return new
|
|
15826
|
+
return new Et(En(this.done, e), En(this.undone, e), this.prevTime, this.prevUserEvent);
|
|
15824
15827
|
}
|
|
15825
15828
|
pop(e, t, i) {
|
|
15826
15829
|
let s = e == 0 ? this.done : this.undone;
|
|
@@ -15849,7 +15852,7 @@ class Vt {
|
|
|
15849
15852
|
return null;
|
|
15850
15853
|
}
|
|
15851
15854
|
}
|
|
15852
|
-
|
|
15855
|
+
Et.empty = /* @__PURE__ */ new Et(dt, dt);
|
|
15853
15856
|
const p9 = [
|
|
15854
15857
|
{ key: "Mod-z", run: G3, preventDefault: !0 },
|
|
15855
15858
|
{ key: "Mod-y", mac: "Mod-Shift-z", run: Vs, preventDefault: !0 },
|
|
@@ -15860,12 +15863,12 @@ const p9 = [
|
|
|
15860
15863
|
function X0(n, e) {
|
|
15861
15864
|
return O.create(n.ranges.map(e), n.mainIndex);
|
|
15862
15865
|
}
|
|
15863
|
-
function
|
|
15866
|
+
function It(n, e) {
|
|
15864
15867
|
return n.update({ selection: e, scrollIntoView: !0, userEvent: "select" });
|
|
15865
15868
|
}
|
|
15866
15869
|
function kt({ state: n, dispatch: e }, t) {
|
|
15867
15870
|
let i = X0(n.selection, t);
|
|
15868
|
-
return i.eq(n.selection, !0) ? !1 : (e(
|
|
15871
|
+
return i.eq(n.selection, !0) ? !1 : (e(It(n, i)), !0);
|
|
15869
15872
|
}
|
|
15870
15873
|
function cn(n, e) {
|
|
15871
15874
|
return O.cursor(e ? n.to : n.from);
|
|
@@ -15888,7 +15891,7 @@ function v9(n, e, t) {
|
|
|
15888
15891
|
return i && (i > 2 || /[^\s,.;:]/.test(n.sliceDoc(e.from, e.to))) || e.firstChild;
|
|
15889
15892
|
}
|
|
15890
15893
|
function un(n, e, t) {
|
|
15891
|
-
let i =
|
|
15894
|
+
let i = Ie(n).resolveInner(e.head), s = t ? Z.closedBy : Z.openedBy;
|
|
15892
15895
|
for (let a = e.head; ; ) {
|
|
15893
15896
|
let c = t ? i.childAfter(a) : i.childBefore(a);
|
|
15894
15897
|
if (!c)
|
|
@@ -15896,7 +15899,7 @@ function un(n, e, t) {
|
|
|
15896
15899
|
v9(n, c, s) ? i = c : a = t ? c.to : c.from;
|
|
15897
15900
|
}
|
|
15898
15901
|
let o = i.type.prop(s), r, l;
|
|
15899
|
-
return o && (r = t ?
|
|
15902
|
+
return o && (r = t ? Vt(n, i.from, 1) : Vt(n, i.to, -1)) && r.matched ? l = t ? r.end.to : r.end.from : l = t ? i.to : i.from, O.cursor(l, t ? -1 : 1);
|
|
15900
15903
|
}
|
|
15901
15904
|
const w9 = (n) => kt(n, (e) => un(n.state, e, !je(n))), b9 = (n) => kt(n, (e) => un(n.state, e, je(n)));
|
|
15902
15905
|
function X3(n, e) {
|
|
@@ -15934,10 +15937,10 @@ function ea(n, e) {
|
|
|
15934
15937
|
let r = n.coordsAtPos(i.selection.main.head), l = n.scrollDOM.getBoundingClientRect(), a = l.top + t.marginTop, c = l.bottom - t.marginBottom;
|
|
15935
15938
|
r && r.top > a && r.bottom < c && (o = R.scrollIntoView(s.main.head, { y: "start", yMargin: r.top - a }));
|
|
15936
15939
|
}
|
|
15937
|
-
return n.dispatch(
|
|
15940
|
+
return n.dispatch(It(i, s), { effects: o }), !0;
|
|
15938
15941
|
}
|
|
15939
15942
|
const el = (n) => ea(n, !1), Es = (n) => ea(n, !0);
|
|
15940
|
-
function
|
|
15943
|
+
function u0(n, e, t) {
|
|
15941
15944
|
let i = n.lineBlockAt(e.head), s = n.moveToLineBoundary(e, t);
|
|
15942
15945
|
if (s.head == e.head && s.head != (t ? i.to : i.from) && (s = n.moveToLineBoundary(e, t, !1)), !t && s.head == i.from && i.length) {
|
|
15943
15946
|
let o = /^\s*/.exec(n.state.sliceDoc(i.from, Math.min(i.from + 100, i.to)))[0].length;
|
|
@@ -15945,17 +15948,17 @@ function c0(n, e, t) {
|
|
|
15945
15948
|
}
|
|
15946
15949
|
return s;
|
|
15947
15950
|
}
|
|
15948
|
-
const x9 = (n) => kt(n, (e) =>
|
|
15951
|
+
const x9 = (n) => kt(n, (e) => u0(n, e, !0)), y9 = (n) => kt(n, (e) => u0(n, e, !1)), S9 = (n) => kt(n, (e) => u0(n, e, !je(n))), _9 = (n) => kt(n, (e) => u0(n, e, je(n))), k9 = (n) => kt(n, (e) => O.cursor(n.lineBlockAt(e.head).from, 1)), C9 = (n) => kt(n, (e) => O.cursor(n.lineBlockAt(e.head).to, -1));
|
|
15949
15952
|
function O9(n, e, t) {
|
|
15950
15953
|
let i = !1, s = X0(n.selection, (o) => {
|
|
15951
|
-
let r =
|
|
15954
|
+
let r = Vt(n, o.head, -1) || Vt(n, o.head, 1) || o.head > 0 && Vt(n, o.head - 1, 1) || o.head < n.doc.length && Vt(n, o.head + 1, -1);
|
|
15952
15955
|
if (!r || !r.end)
|
|
15953
15956
|
return o;
|
|
15954
15957
|
i = !0;
|
|
15955
15958
|
let l = r.start.from == o.head ? r.end.to : r.end.from;
|
|
15956
15959
|
return O.cursor(l);
|
|
15957
15960
|
});
|
|
15958
|
-
return i ? (e(
|
|
15961
|
+
return i ? (e(It(n, s)), !0) : !1;
|
|
15959
15962
|
}
|
|
15960
15963
|
const M9 = ({ state: n, dispatch: e }) => O9(n, e);
|
|
15961
15964
|
function vt(n, e) {
|
|
@@ -15963,7 +15966,7 @@ function vt(n, e) {
|
|
|
15963
15966
|
let s = e(i);
|
|
15964
15967
|
return O.range(i.anchor, s.head, s.goalColumn, s.bidiLevel || void 0);
|
|
15965
15968
|
});
|
|
15966
|
-
return t.eq(n.state.selection) ? !1 : (n.dispatch(
|
|
15969
|
+
return t.eq(n.state.selection) ? !1 : (n.dispatch(It(n.state, t)), !0);
|
|
15967
15970
|
}
|
|
15968
15971
|
function ta(n, e) {
|
|
15969
15972
|
return vt(n, (t) => n.moveByChar(t, e));
|
|
@@ -15980,12 +15983,12 @@ const ra = (n) => oa(n, !1), la = (n) => oa(n, !0);
|
|
|
15980
15983
|
function aa(n, e) {
|
|
15981
15984
|
return vt(n, (t) => n.moveVertically(t, e, Z3(n).height));
|
|
15982
15985
|
}
|
|
15983
|
-
const tl = (n) => aa(n, !1), il = (n) => aa(n, !0), z9 = (n) => vt(n, (e) =>
|
|
15986
|
+
const tl = (n) => aa(n, !1), il = (n) => aa(n, !0), z9 = (n) => vt(n, (e) => u0(n, e, !0)), V9 = (n) => vt(n, (e) => u0(n, e, !1)), E9 = (n) => vt(n, (e) => u0(n, e, !je(n))), B9 = (n) => vt(n, (e) => u0(n, e, je(n))), L9 = (n) => vt(n, (e) => O.cursor(n.lineBlockAt(e.head).from)), R9 = (n) => vt(n, (e) => O.cursor(n.lineBlockAt(e.head).to)), nl = ({ state: n, dispatch: e }) => (e(It(n, { anchor: 0 })), !0), sl = ({ state: n, dispatch: e }) => (e(It(n, { anchor: n.doc.length })), !0), ol = ({ state: n, dispatch: e }) => (e(It(n, { anchor: n.selection.main.anchor, head: 0 })), !0), rl = ({ state: n, dispatch: e }) => (e(It(n, { anchor: n.selection.main.anchor, head: n.doc.length })), !0), I9 = ({ state: n, dispatch: e }) => (e(n.update({ selection: { anchor: 0, head: n.doc.length }, userEvent: "select" })), !0), H9 = ({ state: n, dispatch: e }) => {
|
|
15984
15987
|
let t = dn(n).map(({ from: i, to: s }) => O.range(i, Math.min(s + 1, n.doc.length)));
|
|
15985
15988
|
return e(n.update({ selection: O.create(t), userEvent: "select" })), !0;
|
|
15986
15989
|
}, N9 = ({ state: n, dispatch: e }) => {
|
|
15987
15990
|
let t = X0(n.selection, (i) => {
|
|
15988
|
-
let s =
|
|
15991
|
+
let s = Ie(n), o = s.resolveStack(i.from, 1);
|
|
15989
15992
|
if (i.empty) {
|
|
15990
15993
|
let r = s.resolveStack(i.from, -1);
|
|
15991
15994
|
r.node.from >= o.node.from && r.node.to <= o.node.to && (o = r);
|
|
@@ -15997,10 +16000,10 @@ const tl = (n) => aa(n, !1), il = (n) => aa(n, !0), z9 = (n) => vt(n, (e) => c0(
|
|
|
15997
16000
|
}
|
|
15998
16001
|
return i;
|
|
15999
16002
|
});
|
|
16000
|
-
return t.eq(n.selection) ? !1 : (e(
|
|
16003
|
+
return t.eq(n.selection) ? !1 : (e(It(n, t)), !0);
|
|
16001
16004
|
}, $9 = ({ state: n, dispatch: e }) => {
|
|
16002
16005
|
let t = n.selection, i = null;
|
|
16003
|
-
return t.ranges.length > 1 ? i = O.create([t.main]) : t.main.empty || (i = O.create([O.cursor(t.main.head)])), i ? (e(
|
|
16006
|
+
return t.ranges.length > 1 ? i = O.create([t.main]) : t.main.empty || (i = O.create([O.cursor(t.main.head)])), i ? (e(It(n, i)), !0) : !1;
|
|
16004
16007
|
};
|
|
16005
16008
|
function I2(n, e) {
|
|
16006
16009
|
if (n.state.readOnly)
|
|
@@ -16147,7 +16150,7 @@ const X9 = ({ state: n, dispatch: e }) => pa(n, e, !1), Q9 = ({ state: n, dispat
|
|
|
16147
16150
|
function Z9(n, e) {
|
|
16148
16151
|
if (/\(\)|\[\]|\{\}/.test(n.sliceDoc(e - 1, e + 1)))
|
|
16149
16152
|
return { from: e, to: e };
|
|
16150
|
-
let t =
|
|
16153
|
+
let t = Ie(n).resolveInner(e), i = t.childBefore(e), s = t.childAfter(e), o;
|
|
16151
16154
|
return i && s && i.to <= e && s.from >= e && (o = i.type.prop(Z.closedBy)) && o.indexOf(s.name) > -1 && n.doc.lineAt(i.to).from == n.doc.lineAt(s.from).from && !/\S/.test(n.sliceDoc(i.to, s.from)) ? { from: i.to, to: s.from } : null;
|
|
16152
16155
|
}
|
|
16153
16156
|
const ll = /* @__PURE__ */ ga(!1), ep = /* @__PURE__ */ ga(!0);
|
|
@@ -16319,7 +16322,7 @@ class q0 {
|
|
|
16319
16322
|
if (e < 0)
|
|
16320
16323
|
return this.done = !0, this;
|
|
16321
16324
|
let t = Ws(e), i = this.bufferStart + this.bufferPos;
|
|
16322
|
-
this.bufferPos +=
|
|
16325
|
+
this.bufferPos += Pt(e);
|
|
16323
16326
|
let s = this.normalize(t);
|
|
16324
16327
|
if (s.length)
|
|
16325
16328
|
for (let o = 0, r = i; ; o++) {
|
|
@@ -16447,7 +16450,7 @@ function Ni(n, e) {
|
|
|
16447
16450
|
return e;
|
|
16448
16451
|
}
|
|
16449
16452
|
function Ls(n) {
|
|
16450
|
-
let e = String(n.state.doc.lineAt(n.state.selection.main.head).number), t =
|
|
16453
|
+
let e = String(n.state.doc.lineAt(n.state.selection.main.head).number), t = he("input", { class: "cm-textfield", name: "line", value: e }), i = he("form", {
|
|
16451
16454
|
class: "cm-gotoLine",
|
|
16452
16455
|
onkeydown: (o) => {
|
|
16453
16456
|
o.keyCode == 27 ? (o.preventDefault(), n.dispatch({ effects: f2.of(!1) }), n.focus()) : o.keyCode == 13 && (o.preventDefault(), s());
|
|
@@ -16455,7 +16458,7 @@ function Ls(n) {
|
|
|
16455
16458
|
onsubmit: (o) => {
|
|
16456
16459
|
o.preventDefault(), s();
|
|
16457
16460
|
}
|
|
16458
|
-
},
|
|
16461
|
+
}, he("label", n.state.phrase("Go to line"), ": ", t), " ", he("button", { class: "cm-button", type: "submit" }, n.state.phrase("go")), he("button", {
|
|
16459
16462
|
name: "close",
|
|
16460
16463
|
onclick: () => {
|
|
16461
16464
|
n.dispatch({ effects: f2.of(!1) }), n.focus();
|
|
@@ -16520,7 +16523,7 @@ const f2 = /* @__PURE__ */ X.define(), hl = /* @__PURE__ */ We.define({
|
|
|
16520
16523
|
wholeWords: !1
|
|
16521
16524
|
}, dp = /* @__PURE__ */ I.define({
|
|
16522
16525
|
combine(n) {
|
|
16523
|
-
return
|
|
16526
|
+
return Rt(n, up, {
|
|
16524
16527
|
highlightWordAroundCursor: (e, t) => e || t,
|
|
16525
16528
|
minSelectionLength: Math.min,
|
|
16526
16529
|
maxMatches: Math.min
|
|
@@ -16537,7 +16540,7 @@ function cl(n, e, t, i) {
|
|
|
16537
16540
|
function mp(n, e, t, i) {
|
|
16538
16541
|
return n(e.sliceDoc(t, t + 1)) == xe.Word && n(e.sliceDoc(i - 1, i)) == xe.Word;
|
|
16539
16542
|
}
|
|
16540
|
-
const vp = /* @__PURE__ */
|
|
16543
|
+
const vp = /* @__PURE__ */ Ae.fromClass(class {
|
|
16541
16544
|
constructor(n) {
|
|
16542
16545
|
this.decorations = this.getDeco(n);
|
|
16543
16546
|
}
|
|
@@ -16618,7 +16621,7 @@ const yp = ({ state: n, dispatch: e }) => {
|
|
|
16618
16621
|
})), !0) : !1;
|
|
16619
16622
|
}, Q0 = /* @__PURE__ */ I.define({
|
|
16620
16623
|
combine(n) {
|
|
16621
|
-
return
|
|
16624
|
+
return Rt(n, {
|
|
16622
16625
|
top: !1,
|
|
16623
16626
|
caseSensitive: !1,
|
|
16624
16627
|
literal: !1,
|
|
@@ -16794,7 +16797,7 @@ class Cp extends xa {
|
|
|
16794
16797
|
s(o.value.from, o.value.to);
|
|
16795
16798
|
}
|
|
16796
16799
|
}
|
|
16797
|
-
const D2 = /* @__PURE__ */ X.define(), vo = /* @__PURE__ */ X.define(),
|
|
16800
|
+
const D2 = /* @__PURE__ */ X.define(), vo = /* @__PURE__ */ X.define(), s0 = /* @__PURE__ */ We.define({
|
|
16798
16801
|
create(n) {
|
|
16799
16802
|
return new Ln(Rs(n).create(), null);
|
|
16800
16803
|
},
|
|
@@ -16810,18 +16813,18 @@ class Ln {
|
|
|
16810
16813
|
this.query = e, this.panel = t;
|
|
16811
16814
|
}
|
|
16812
16815
|
}
|
|
16813
|
-
const Op = /* @__PURE__ */ U.mark({ class: "cm-searchMatch" }), Mp = /* @__PURE__ */ U.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Dp = /* @__PURE__ */
|
|
16816
|
+
const Op = /* @__PURE__ */ U.mark({ class: "cm-searchMatch" }), Mp = /* @__PURE__ */ U.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Dp = /* @__PURE__ */ Ae.fromClass(class {
|
|
16814
16817
|
constructor(n) {
|
|
16815
|
-
this.view = n, this.decorations = this.highlight(n.state.field(
|
|
16818
|
+
this.view = n, this.decorations = this.highlight(n.state.field(s0));
|
|
16816
16819
|
}
|
|
16817
16820
|
update(n) {
|
|
16818
|
-
let e = n.state.field(
|
|
16819
|
-
(e != n.startState.field(
|
|
16821
|
+
let e = n.state.field(s0);
|
|
16822
|
+
(e != n.startState.field(s0) || n.docChanged || n.selectionSet || n.viewportChanged) && (this.decorations = this.highlight(e));
|
|
16820
16823
|
}
|
|
16821
16824
|
highlight({ query: n, panel: e }) {
|
|
16822
16825
|
if (!e || !n.spec.valid)
|
|
16823
16826
|
return U.none;
|
|
16824
|
-
let { view: t } = this, i = new
|
|
16827
|
+
let { view: t } = this, i = new jt();
|
|
16825
16828
|
for (let s = 0, o = t.visibleRanges, r = o.length; s < r; s++) {
|
|
16826
16829
|
let { from: l, to: a } = o[s];
|
|
16827
16830
|
for (; s < r - 1 && a > o[s + 1].from - 2 * 250; )
|
|
@@ -16838,7 +16841,7 @@ const Op = /* @__PURE__ */ U.mark({ class: "cm-searchMatch" }), Mp = /* @__PURE_
|
|
|
16838
16841
|
});
|
|
16839
16842
|
function H2(n) {
|
|
16840
16843
|
return (e) => {
|
|
16841
|
-
let t = e.state.field(
|
|
16844
|
+
let t = e.state.field(s0, !1);
|
|
16842
16845
|
return t && t.query.spec.valid ? n(e, t) : _a(e);
|
|
16843
16846
|
};
|
|
16844
16847
|
}
|
|
@@ -16940,7 +16943,7 @@ function Sa(n) {
|
|
|
16940
16943
|
e && e == n.root.activeElement && e.select();
|
|
16941
16944
|
}
|
|
16942
16945
|
const _a = (n) => {
|
|
16943
|
-
let e = n.state.field(
|
|
16946
|
+
let e = n.state.field(s0, !1);
|
|
16944
16947
|
if (e && e.panel) {
|
|
16945
16948
|
let t = ya(n);
|
|
16946
16949
|
if (t && t != n.root.activeElement) {
|
|
@@ -16954,7 +16957,7 @@ const _a = (n) => {
|
|
|
16954
16957
|
] });
|
|
16955
16958
|
return !0;
|
|
16956
16959
|
}, ka = (n) => {
|
|
16957
|
-
let e = n.state.field(
|
|
16960
|
+
let e = n.state.field(s0, !1);
|
|
16958
16961
|
if (!e || !e.panel)
|
|
16959
16962
|
return !1;
|
|
16960
16963
|
let t = k2(n, wo);
|
|
@@ -16971,8 +16974,8 @@ const _a = (n) => {
|
|
|
16971
16974
|
class Vp {
|
|
16972
16975
|
constructor(e) {
|
|
16973
16976
|
this.view = e;
|
|
16974
|
-
let t = this.query = e.state.field(
|
|
16975
|
-
this.commit = this.commit.bind(this), this.searchField =
|
|
16977
|
+
let t = this.query = e.state.field(s0).query.spec;
|
|
16978
|
+
this.commit = this.commit.bind(this), this.searchField = he("input", {
|
|
16976
16979
|
value: t.search,
|
|
16977
16980
|
placeholder: st(e, "Find"),
|
|
16978
16981
|
"aria-label": st(e, "Find"),
|
|
@@ -16982,7 +16985,7 @@ class Vp {
|
|
|
16982
16985
|
"main-field": "true",
|
|
16983
16986
|
onchange: this.commit,
|
|
16984
16987
|
onkeyup: this.commit
|
|
16985
|
-
}), this.replaceField =
|
|
16988
|
+
}), this.replaceField = he("input", {
|
|
16986
16989
|
value: t.replace,
|
|
16987
16990
|
placeholder: st(e, "Replace"),
|
|
16988
16991
|
"aria-label": st(e, "Replace"),
|
|
@@ -16991,19 +16994,19 @@ class Vp {
|
|
|
16991
16994
|
form: "",
|
|
16992
16995
|
onchange: this.commit,
|
|
16993
16996
|
onkeyup: this.commit
|
|
16994
|
-
}), this.caseField =
|
|
16997
|
+
}), this.caseField = he("input", {
|
|
16995
16998
|
type: "checkbox",
|
|
16996
16999
|
name: "case",
|
|
16997
17000
|
form: "",
|
|
16998
17001
|
checked: t.caseSensitive,
|
|
16999
17002
|
onchange: this.commit
|
|
17000
|
-
}), this.reField =
|
|
17003
|
+
}), this.reField = he("input", {
|
|
17001
17004
|
type: "checkbox",
|
|
17002
17005
|
name: "re",
|
|
17003
17006
|
form: "",
|
|
17004
17007
|
checked: t.regexp,
|
|
17005
17008
|
onchange: this.commit
|
|
17006
|
-
}), this.wordField =
|
|
17009
|
+
}), this.wordField = he("input", {
|
|
17007
17010
|
type: "checkbox",
|
|
17008
17011
|
name: "word",
|
|
17009
17012
|
form: "",
|
|
@@ -17011,23 +17014,23 @@ class Vp {
|
|
|
17011
17014
|
onchange: this.commit
|
|
17012
17015
|
});
|
|
17013
17016
|
function i(s, o, r) {
|
|
17014
|
-
return
|
|
17017
|
+
return he("button", { class: "cm-button", name: s, onclick: o, type: "button" }, r);
|
|
17015
17018
|
}
|
|
17016
|
-
this.dom =
|
|
17019
|
+
this.dom = he("div", { onkeydown: (s) => this.keydown(s), class: "cm-search" }, [
|
|
17017
17020
|
this.searchField,
|
|
17018
17021
|
i("next", () => Gi(e), [st(e, "next")]),
|
|
17019
17022
|
i("prev", () => Fi(e), [st(e, "previous")]),
|
|
17020
17023
|
i("select", () => Tp(e), [st(e, "all")]),
|
|
17021
|
-
|
|
17022
|
-
|
|
17023
|
-
|
|
17024
|
+
he("label", null, [this.caseField, st(e, "match case")]),
|
|
17025
|
+
he("label", null, [this.reField, st(e, "regexp")]),
|
|
17026
|
+
he("label", null, [this.wordField, st(e, "by word")]),
|
|
17024
17027
|
...e.state.readOnly ? [] : [
|
|
17025
|
-
|
|
17028
|
+
he("br"),
|
|
17026
17029
|
this.replaceField,
|
|
17027
17030
|
i("replace", () => ul(e), [st(e, "replace")]),
|
|
17028
17031
|
i("replaceAll", () => Pp(e), [st(e, "replace all")])
|
|
17029
17032
|
],
|
|
17030
|
-
|
|
17033
|
+
he("button", {
|
|
17031
17034
|
name: "close",
|
|
17032
17035
|
onclick: () => ka(e),
|
|
17033
17036
|
"aria-label": st(e, "close"),
|
|
@@ -17118,7 +17121,7 @@ const Ep = /* @__PURE__ */ R.baseTheme({
|
|
|
17118
17121
|
"&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
|
|
17119
17122
|
"&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
|
|
17120
17123
|
}), Bp = [
|
|
17121
|
-
|
|
17124
|
+
s0,
|
|
17122
17125
|
/* @__PURE__ */ O0.low(Dp),
|
|
17123
17126
|
Ep
|
|
17124
17127
|
];
|
|
@@ -17136,7 +17139,7 @@ class Ca {
|
|
|
17136
17139
|
token before `this.pos`.
|
|
17137
17140
|
*/
|
|
17138
17141
|
tokenBefore(e) {
|
|
17139
|
-
let t =
|
|
17142
|
+
let t = Ie(this.state).resolveInner(this.pos, -1);
|
|
17140
17143
|
for (; t && e.indexOf(t.name) < 0; )
|
|
17141
17144
|
t = t.parent;
|
|
17142
17145
|
return t ? {
|
|
@@ -17212,7 +17215,7 @@ function Oa(n, e) {
|
|
|
17212
17215
|
let { source: i } = n, s = e && i[0] != "^", o = i[i.length - 1] != "$";
|
|
17213
17216
|
return !s && !o ? n : new RegExp(`${s ? "^" : ""}(?:${i})${o ? "$" : ""}`, (t = n.flags) !== null && t !== void 0 ? t : n.ignoreCase ? "i" : "");
|
|
17214
17217
|
}
|
|
17215
|
-
const Ma = /* @__PURE__ */
|
|
17218
|
+
const Ma = /* @__PURE__ */ Kt.define();
|
|
17216
17219
|
function Ip(n, e, t, i) {
|
|
17217
17220
|
let { main: s } = n.selection, o = t - s.from, r = i - s.from;
|
|
17218
17221
|
return Object.assign(Object.assign({}, n.changeByRange((l) => {
|
|
@@ -17237,7 +17240,7 @@ class Np {
|
|
|
17237
17240
|
constructor(e) {
|
|
17238
17241
|
this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
|
|
17239
17242
|
for (let t = 0; t < e.length; ) {
|
|
17240
|
-
let i = Je(e, t), s =
|
|
17243
|
+
let i = Je(e, t), s = Pt(i);
|
|
17241
17244
|
this.chars.push(i);
|
|
17242
17245
|
let o = e.slice(t, t + s), r = o.toUpperCase();
|
|
17243
17246
|
this.folded.push(Je(r == o ? o.toLowerCase() : r, 0)), t += s;
|
|
@@ -17261,7 +17264,7 @@ class Np {
|
|
|
17261
17264
|
return null;
|
|
17262
17265
|
let { chars: t, folded: i, any: s, precise: o, byWord: r } = this;
|
|
17263
17266
|
if (t.length == 1) {
|
|
17264
|
-
let b = Je(e, 0), y =
|
|
17267
|
+
let b = Je(e, 0), y = Pt(b), _ = y == e.length ? 0 : -100;
|
|
17265
17268
|
if (b != t[0]) if (b == i[0])
|
|
17266
17269
|
_ += -200;
|
|
17267
17270
|
else
|
|
@@ -17275,7 +17278,7 @@ class Np {
|
|
|
17275
17278
|
if (l < 0) {
|
|
17276
17279
|
for (let b = 0, y = Math.min(e.length, 200); b < y && c < a; ) {
|
|
17277
17280
|
let _ = Je(e, b);
|
|
17278
|
-
(_ == t[c] || _ == i[c]) && (s[c++] = b), b +=
|
|
17281
|
+
(_ == t[c] || _ == i[c]) && (s[c++] = b), b += Pt(_);
|
|
17279
17282
|
}
|
|
17280
17283
|
if (c < a)
|
|
17281
17284
|
return null;
|
|
@@ -17285,14 +17288,14 @@ class Np {
|
|
|
17285
17288
|
let x = Je(e, b);
|
|
17286
17289
|
l < 0 && (h < a && x == t[h] && (o[h++] = b), f < a && (x == t[f] || x == i[f] ? (f == 0 && (p = b), g = b + 1, f++) : f = 0));
|
|
17287
17290
|
let S, k = x < 255 ? x >= 48 && x <= 57 || x >= 97 && x <= 122 ? 2 : x >= 65 && x <= 90 ? 1 : 0 : (S = Ws(x)) != S.toLowerCase() ? 1 : S != S.toUpperCase() ? 2 : 0;
|
|
17288
|
-
(!b || k == 1 && m || _ == 0 && k != 0) && (t[u] == x || i[u] == x && (d = !0) ? r[u++] = b : r.length && (v = !1)), _ = k, b +=
|
|
17291
|
+
(!b || k == 1 && m || _ == 0 && k != 0) && (t[u] == x || i[u] == x && (d = !0) ? r[u++] = b : r.length && (v = !1)), _ = k, b += Pt(x);
|
|
17289
17292
|
}
|
|
17290
17293
|
return u == a && r[0] == 0 && v ? this.result(-100 + (d ? -200 : 0), r, e) : f == a && p == 0 ? this.ret(-200 - e.length + (g == e.length ? 0 : -100), [0, g]) : l > -1 ? this.ret(-700 - e.length, [l, l + this.pattern.length]) : f == a ? this.ret(-900 - e.length, [p, g]) : u == a ? this.result(-100 + (d ? -200 : 0) + -700 + (v ? 0 : -1100), r, e) : t.length == 2 ? null : this.result((s[0] ? -700 : 0) + -200 + -1100, s, e);
|
|
17291
17294
|
}
|
|
17292
17295
|
result(e, t, i) {
|
|
17293
17296
|
let s = [], o = 0;
|
|
17294
17297
|
for (let r of t) {
|
|
17295
|
-
let l = r + (this.astral ?
|
|
17298
|
+
let l = r + (this.astral ? Pt(Je(i, r)) : 1);
|
|
17296
17299
|
o && s[o - 1] == r ? s[o - 1] = l : (s[o++] = r, s[o++] = l);
|
|
17297
17300
|
}
|
|
17298
17301
|
return this.ret(e - i.length, s);
|
|
@@ -17309,9 +17312,9 @@ class $p {
|
|
|
17309
17312
|
return i == null ? null : (this.matched = [0, t.length], this.score = i + (e.length == this.pattern.length ? 0 : -100), this);
|
|
17310
17313
|
}
|
|
17311
17314
|
}
|
|
17312
|
-
const
|
|
17315
|
+
const Re = /* @__PURE__ */ I.define({
|
|
17313
17316
|
combine(n) {
|
|
17314
|
-
return
|
|
17317
|
+
return Rt(n, {
|
|
17315
17318
|
activateOnTyping: !0,
|
|
17316
17319
|
activateOnCompletion: () => !1,
|
|
17317
17320
|
activateOnTypingDelay: 100,
|
|
@@ -17412,7 +17415,7 @@ class Fp {
|
|
|
17412
17415
|
write: (a) => this.placeInfo(a),
|
|
17413
17416
|
key: this
|
|
17414
17417
|
}, this.space = null, this.currentClass = "";
|
|
17415
|
-
let s = e.state.field(t), { options: o, selected: r } = s.open, l = e.state.facet(
|
|
17418
|
+
let s = e.state.field(t), { options: o, selected: r } = s.open, l = e.state.facet(Re);
|
|
17416
17419
|
this.optionContent = Gp(l), this.optionClass = l.optionClass, this.tooltipClass = l.tooltipClass, this.range = Rn(o.length, r, l.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (a) => {
|
|
17417
17420
|
let { options: c } = e.state.field(t).open;
|
|
17418
17421
|
for (let h = a.target, u; h && h != this.dom; h = h.parentNode)
|
|
@@ -17422,7 +17425,7 @@ class Fp {
|
|
|
17422
17425
|
}
|
|
17423
17426
|
}), this.dom.addEventListener("focusout", (a) => {
|
|
17424
17427
|
let c = e.state.field(this.stateField, !1);
|
|
17425
|
-
c && c.tooltip && e.state.facet(
|
|
17428
|
+
c && c.tooltip && e.state.facet(Re).closeOnBlur && a.relatedTarget != e.contentDOM && e.dispatch({ effects: T2.of(null) });
|
|
17426
17429
|
}), this.showOptions(o, s.id);
|
|
17427
17430
|
}
|
|
17428
17431
|
mount() {
|
|
@@ -17438,7 +17441,7 @@ class Fp {
|
|
|
17438
17441
|
let i = e.state.field(this.stateField), s = e.startState.field(this.stateField);
|
|
17439
17442
|
if (this.updateTooltipClass(e.state), i != s) {
|
|
17440
17443
|
let { options: o, selected: r, disabled: l } = i.open;
|
|
17441
|
-
(!s.open || s.open.options != o) && (this.range = Rn(o.length, r, e.state.facet(
|
|
17444
|
+
(!s.open || s.open.options != o) && (this.range = Rn(o.length, r, e.state.facet(Re).maxRenderedOptions), this.showOptions(o, i.id)), this.updateSel(), l != ((t = s.open) === null || t === void 0 ? void 0 : t.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!l);
|
|
17442
17445
|
}
|
|
17443
17446
|
}
|
|
17444
17447
|
updateTooltipClass(e) {
|
|
@@ -17456,7 +17459,7 @@ class Fp {
|
|
|
17456
17459
|
}
|
|
17457
17460
|
updateSel() {
|
|
17458
17461
|
let e = this.view.state.field(this.stateField), t = e.open;
|
|
17459
|
-
if ((t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Rn(t.options.length, t.selected, this.view.state.facet(
|
|
17462
|
+
if ((t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Rn(t.options.length, t.selected, this.view.state.facet(Re).maxRenderedOptions), this.showOptions(t.options, e.id)), this.updateSelectedOption(t.selected)) {
|
|
17460
17463
|
this.destroyInfo();
|
|
17461
17464
|
let { completion: i } = t.options[t.selected], { info: s } = i;
|
|
17462
17465
|
if (!s)
|
|
@@ -17495,7 +17498,7 @@ class Fp {
|
|
|
17495
17498
|
let r = this.dom.ownerDocument.documentElement;
|
|
17496
17499
|
o = { left: 0, top: 0, right: r.clientWidth, bottom: r.clientHeight };
|
|
17497
17500
|
}
|
|
17498
|
-
return s.top > Math.min(o.bottom, t.bottom) - 10 || s.bottom < Math.max(o.top, t.top) + 10 ? null : this.view.state.facet(
|
|
17501
|
+
return s.top > Math.min(o.bottom, t.bottom) - 10 || s.bottom < Math.max(o.top, t.top) + 10 ? null : this.view.state.facet(Re).positionInfo(this.view, t, s, i, o, this.dom);
|
|
17499
17502
|
}
|
|
17500
17503
|
placeInfo(e) {
|
|
17501
17504
|
this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
|
|
@@ -17555,7 +17558,7 @@ function qp(n, e) {
|
|
|
17555
17558
|
let u = typeof h == "string" ? h : h.name;
|
|
17556
17559
|
i.some((d) => d.name == u) || i.push(typeof h == "string" ? { name: u } : h);
|
|
17557
17560
|
}
|
|
17558
|
-
}, o = e.facet(
|
|
17561
|
+
}, o = e.facet(Re);
|
|
17559
17562
|
for (let c of n)
|
|
17560
17563
|
if (c.hasResult()) {
|
|
17561
17564
|
let h = c.result.getMatch;
|
|
@@ -17603,7 +17606,7 @@ class E0 {
|
|
|
17603
17606
|
let l = qp(e, t);
|
|
17604
17607
|
if (!l.length)
|
|
17605
17608
|
return s && e.some((c) => c.isPending) ? s.setDisabled() : null;
|
|
17606
|
-
let a = t.facet(
|
|
17609
|
+
let a = t.facet(Re).selectOnOpen ? 0 : -1;
|
|
17607
17610
|
if (s && s.selected != a && s.selected != -1) {
|
|
17608
17611
|
let c = s.options[s.selected].completion;
|
|
17609
17612
|
for (let h = 0; h < l.length; h++)
|
|
@@ -17633,7 +17636,7 @@ class Ui {
|
|
|
17633
17636
|
return new Ui(Qp, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
|
|
17634
17637
|
}
|
|
17635
17638
|
update(e) {
|
|
17636
|
-
let { state: t } = e, i = t.facet(
|
|
17639
|
+
let { state: t } = e, i = t.facet(Re), o = (i.override || t.languageDataAt("autocomplete", b0(t)).map(Hp)).map((a) => (this.active.find((h) => h.source == a) || new ft(
|
|
17637
17640
|
a,
|
|
17638
17641
|
this.active.some(
|
|
17639
17642
|
(h) => h.state != 0
|
|
@@ -17805,7 +17808,7 @@ const Zp = /* @__PURE__ */ jp(et, yo);
|
|
|
17805
17808
|
function li(n, e = "option") {
|
|
17806
17809
|
return (t) => {
|
|
17807
17810
|
let i = t.state.field(et, !1);
|
|
17808
|
-
if (!i || !i.open || i.open.disabled || Date.now() - i.open.timestamp < t.state.facet(
|
|
17811
|
+
if (!i || !i.open || i.open.disabled || Date.now() - i.open.timestamp < t.state.facet(Re).interactionDelay)
|
|
17809
17812
|
return !1;
|
|
17810
17813
|
let s = 1, o;
|
|
17811
17814
|
e == "page" && (o = d3(t, i.open.tooltip)) && (s = Math.max(2, Math.floor(o.dom.offsetHeight / o.dom.querySelector("li").offsetHeight) - 1));
|
|
@@ -17815,7 +17818,7 @@ function li(n, e = "option") {
|
|
|
17815
17818
|
}
|
|
17816
17819
|
const eg = (n) => {
|
|
17817
17820
|
let e = n.state.field(et, !1);
|
|
17818
|
-
return n.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < n.state.facet(
|
|
17821
|
+
return n.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < n.state.facet(Re).interactionDelay ? !1 : yo(n, e.open.options[e.open.selected]);
|
|
17819
17822
|
}, wl = (n) => n.state.field(et, !1) ? (n.dispatch({ effects: ji.of(!0) }), !0) : !1, tg = (n) => {
|
|
17820
17823
|
let e = n.state.field(et, !1);
|
|
17821
17824
|
return !e || !e.active.some(
|
|
@@ -17828,14 +17831,14 @@ class ig {
|
|
|
17828
17831
|
this.active = e, this.context = t, this.time = Date.now(), this.updates = [], this.done = void 0;
|
|
17829
17832
|
}
|
|
17830
17833
|
}
|
|
17831
|
-
const ng = 50, sg = 1e3, og = /* @__PURE__ */
|
|
17834
|
+
const ng = 50, sg = 1e3, og = /* @__PURE__ */ Ae.fromClass(class {
|
|
17832
17835
|
constructor(n) {
|
|
17833
17836
|
this.view = n, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
|
|
17834
17837
|
for (let e of n.state.field(et).active)
|
|
17835
17838
|
e.isPending && this.startQuery(e);
|
|
17836
17839
|
}
|
|
17837
17840
|
update(n) {
|
|
17838
|
-
let e = n.state.field(et), t = n.state.facet(
|
|
17841
|
+
let e = n.state.field(et), t = n.state.facet(Re);
|
|
17839
17842
|
if (!n.selectionSet && !n.docChanged && n.startState.field(et) == e)
|
|
17840
17843
|
return;
|
|
17841
17844
|
let i = n.transactions.some((o) => {
|
|
@@ -17866,7 +17869,7 @@ const ng = 50, sg = 1e3, og = /* @__PURE__ */ Te.fromClass(class {
|
|
|
17866
17869
|
let { state: n } = this.view, e = n.field(et);
|
|
17867
17870
|
for (let t of e.active)
|
|
17868
17871
|
t.isPending && !this.running.some((i) => i.active.source == t.source) && this.startQuery(t);
|
|
17869
|
-
this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
17872
|
+
this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Re).updateSyncTime));
|
|
17870
17873
|
}
|
|
17871
17874
|
startQuery(n) {
|
|
17872
17875
|
let { state: e } = this.view, t = b0(e), i = new Ca(e, t, n.explicit, this.view), s = new ig(n, i);
|
|
@@ -17877,14 +17880,14 @@ const ng = 50, sg = 1e3, og = /* @__PURE__ */ Te.fromClass(class {
|
|
|
17877
17880
|
});
|
|
17878
17881
|
}
|
|
17879
17882
|
scheduleAccept() {
|
|
17880
|
-
this.running.every((n) => n.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
17883
|
+
this.running.every((n) => n.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Re).updateSyncTime));
|
|
17881
17884
|
}
|
|
17882
17885
|
// For each finished query in this.running, try to create a result
|
|
17883
17886
|
// or, if appropriate, restart the query.
|
|
17884
17887
|
accept() {
|
|
17885
17888
|
var n;
|
|
17886
17889
|
this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
|
|
17887
|
-
let e = [], t = this.view.state.facet(
|
|
17890
|
+
let e = [], t = this.view.state.facet(Re), i = this.view.state.field(et);
|
|
17888
17891
|
for (let s = 0; s < this.running.length; s++) {
|
|
17889
17892
|
let o = this.running[s];
|
|
17890
17893
|
if (o.done === void 0)
|
|
@@ -17918,7 +17921,7 @@ const ng = 50, sg = 1e3, og = /* @__PURE__ */ Te.fromClass(class {
|
|
|
17918
17921
|
eventHandlers: {
|
|
17919
17922
|
blur(n) {
|
|
17920
17923
|
let e = this.view.state.field(et, !1);
|
|
17921
|
-
if (e && e.tooltip && this.view.state.facet(
|
|
17924
|
+
if (e && e.tooltip && this.view.state.facet(Re).closeOnBlur) {
|
|
17922
17925
|
let t = e.open && d3(this.view, e.open.tooltip);
|
|
17923
17926
|
(!t || !t.dom.contains(n.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: T2.of(null) }), 10);
|
|
17924
17927
|
}
|
|
@@ -18105,7 +18108,7 @@ const cg = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
18105
18108
|
if ((cg ? n.composing : n.compositionStarted) || n.state.readOnly)
|
|
18106
18109
|
return !1;
|
|
18107
18110
|
let s = n.state.selection.main;
|
|
18108
|
-
if (i.length > 2 || i.length == 2 &&
|
|
18111
|
+
if (i.length > 2 || i.length == 2 && Pt(Je(i, 0)) == 1 || e != s.from || t != s.to)
|
|
18109
18112
|
return !1;
|
|
18110
18113
|
let o = pg(n.state, i);
|
|
18111
18114
|
return o ? (n.dispatch(o), !0) : !1;
|
|
@@ -18147,11 +18150,11 @@ function Va(n, e) {
|
|
|
18147
18150
|
}
|
|
18148
18151
|
function fn(n, e) {
|
|
18149
18152
|
let t = n.sliceString(e, e + 2);
|
|
18150
|
-
return t.slice(0,
|
|
18153
|
+
return t.slice(0, Pt(Je(t, 0)));
|
|
18151
18154
|
}
|
|
18152
18155
|
function gg(n, e) {
|
|
18153
18156
|
let t = n.sliceString(e - 2, e);
|
|
18154
|
-
return
|
|
18157
|
+
return Pt(Je(t, 0)) == t.length ? t : t.slice(1);
|
|
18155
18158
|
}
|
|
18156
18159
|
function mg(n, e, t, i) {
|
|
18157
18160
|
let s = null, o = n.changeByRange((r) => {
|
|
@@ -18228,11 +18231,11 @@ function wg(n, e, t, i) {
|
|
|
18228
18231
|
});
|
|
18229
18232
|
}
|
|
18230
18233
|
function bl(n, e) {
|
|
18231
|
-
let t =
|
|
18234
|
+
let t = Ie(n).resolveInner(e + 1);
|
|
18232
18235
|
return t.parent && t.from == e;
|
|
18233
18236
|
}
|
|
18234
18237
|
function bg(n, e, t, i) {
|
|
18235
|
-
let s =
|
|
18238
|
+
let s = Ie(n).resolveInner(e, -1), o = i.reduce((r, l) => Math.max(r, l.length), 0);
|
|
18236
18239
|
for (let r = 0; r < 5; r++) {
|
|
18237
18240
|
let l = n.sliceDoc(s.from, Math.min(s.to, s.from + t.length + o)), a = l.indexOf(t);
|
|
18238
18241
|
if (!a || a > -1 && i.indexOf(l.slice(0, a)) > -1) {
|
|
@@ -18266,7 +18269,7 @@ function xg(n = {}) {
|
|
|
18266
18269
|
return [
|
|
18267
18270
|
lg,
|
|
18268
18271
|
et,
|
|
18269
|
-
|
|
18272
|
+
Re.of(n),
|
|
18270
18273
|
og,
|
|
18271
18274
|
yg,
|
|
18272
18275
|
ag
|
|
@@ -18281,7 +18284,7 @@ const Ea = [
|
|
|
18281
18284
|
{ key: "PageDown", run: /* @__PURE__ */ li(!0, "page") },
|
|
18282
18285
|
{ key: "PageUp", run: /* @__PURE__ */ li(!1, "page") },
|
|
18283
18286
|
{ key: "Enter", run: eg }
|
|
18284
|
-
], yg = /* @__PURE__ */ O0.highest(/* @__PURE__ */ io.computeN([
|
|
18287
|
+
], yg = /* @__PURE__ */ O0.highest(/* @__PURE__ */ io.computeN([Re], (n) => n.facet(Re).defaultKeymap ? [Ea] : []));
|
|
18285
18288
|
class yl {
|
|
18286
18289
|
constructor(e, t, i) {
|
|
18287
18290
|
this.from = e, this.to = t, this.diagnostic = i;
|
|
@@ -18294,7 +18297,7 @@ class p0 {
|
|
|
18294
18297
|
static init(e, t, i) {
|
|
18295
18298
|
let s = i.facet(P2).markerFilter;
|
|
18296
18299
|
s && (e = s(e, i));
|
|
18297
|
-
let o = e.slice().sort((h, u) => h.from - u.from || h.to - u.to), r = new
|
|
18300
|
+
let o = e.slice().sort((h, u) => h.from - u.from || h.to - u.to), r = new jt(), l = [], a = 0;
|
|
18298
18301
|
for (let h = 0; ; ) {
|
|
18299
18302
|
let u = h == o.length ? null : o[h];
|
|
18300
18303
|
if (!u && !l.length)
|
|
@@ -18396,7 +18399,7 @@ function Cg(n, e, t) {
|
|
|
18396
18399
|
} : null;
|
|
18397
18400
|
}
|
|
18398
18401
|
function Og(n, e) {
|
|
18399
|
-
return
|
|
18402
|
+
return he("ul", { class: "cm-tooltip-lint" }, e.map((t) => Ia(n, t, !1)));
|
|
18400
18403
|
}
|
|
18401
18404
|
const Mg = (n) => {
|
|
18402
18405
|
let e = n.state.field(lt, !1);
|
|
@@ -18417,7 +18420,7 @@ const Mg = (n) => {
|
|
|
18417
18420
|
{ key: "F8", run: Dg }
|
|
18418
18421
|
], P2 = /* @__PURE__ */ I.define({
|
|
18419
18422
|
combine(n) {
|
|
18420
|
-
return Object.assign({ sources: n.map((e) => e.source).filter((e) => e != null) },
|
|
18423
|
+
return Object.assign({ sources: n.map((e) => e.source).filter((e) => e != null) }, Rt(n.map((e) => e.config), {
|
|
18421
18424
|
delay: 750,
|
|
18422
18425
|
markerFilter: null,
|
|
18423
18426
|
tooltipFilter: null,
|
|
@@ -18446,7 +18449,7 @@ function Ra(n) {
|
|
|
18446
18449
|
function Ia(n, e, t) {
|
|
18447
18450
|
var i;
|
|
18448
18451
|
let s = t ? Ra(e.actions) : [];
|
|
18449
|
-
return
|
|
18452
|
+
return he("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, he("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage(n) : e.message), (i = e.actions) === null || i === void 0 ? void 0 : i.map((o, r) => {
|
|
18450
18453
|
let l = !1, a = (d) => {
|
|
18451
18454
|
if (d.preventDefault(), l)
|
|
18452
18455
|
return;
|
|
@@ -18455,19 +18458,19 @@ function Ia(n, e, t) {
|
|
|
18455
18458
|
f && o.apply(n, f.from, f.to);
|
|
18456
18459
|
}, { name: c } = o, h = s[r] ? c.indexOf(s[r]) : -1, u = h < 0 ? c : [
|
|
18457
18460
|
c.slice(0, h),
|
|
18458
|
-
|
|
18461
|
+
he("u", c.slice(h, h + 1)),
|
|
18459
18462
|
c.slice(h + 1)
|
|
18460
18463
|
];
|
|
18461
|
-
return
|
|
18464
|
+
return he("button", {
|
|
18462
18465
|
type: "button",
|
|
18463
18466
|
class: "cm-diagnosticAction",
|
|
18464
18467
|
onclick: a,
|
|
18465
18468
|
onmousedown: a,
|
|
18466
18469
|
"aria-label": ` Action: ${c}${h < 0 ? "" : ` (access key "${s[r]})"`}.`
|
|
18467
18470
|
}, u);
|
|
18468
|
-
}), e.source &&
|
|
18471
|
+
}), e.source && he("div", { class: "cm-diagnosticSource" }, e.source));
|
|
18469
18472
|
}
|
|
18470
|
-
class Ag extends
|
|
18473
|
+
class Ag extends c0 {
|
|
18471
18474
|
constructor(e) {
|
|
18472
18475
|
super(), this.sev = e;
|
|
18473
18476
|
}
|
|
@@ -18475,7 +18478,7 @@ class Ag extends h0 {
|
|
|
18475
18478
|
return e.sev == this.sev;
|
|
18476
18479
|
}
|
|
18477
18480
|
toDOM() {
|
|
18478
|
-
return
|
|
18481
|
+
return he("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
|
|
18479
18482
|
}
|
|
18480
18483
|
}
|
|
18481
18484
|
class _l {
|
|
@@ -18513,13 +18516,13 @@ class z2 {
|
|
|
18513
18516
|
for (let o = 0; o < this.items.length; o++)
|
|
18514
18517
|
this.items[o].dom.contains(s.target) && this.moveSelection(o);
|
|
18515
18518
|
};
|
|
18516
|
-
this.list =
|
|
18519
|
+
this.list = he("ul", {
|
|
18517
18520
|
tabIndex: 0,
|
|
18518
18521
|
role: "listbox",
|
|
18519
18522
|
"aria-label": this.view.state.phrase("Diagnostics"),
|
|
18520
18523
|
onkeydown: t,
|
|
18521
18524
|
onclick: i
|
|
18522
|
-
}), this.dom =
|
|
18525
|
+
}), this.dom = he("div", { class: "cm-panel-lint" }, this.list, he("button", {
|
|
18523
18526
|
type: "button",
|
|
18524
18527
|
name: "close",
|
|
18525
18528
|
"aria-label": this.view.state.phrase("close"),
|
|
@@ -19403,7 +19406,7 @@ function Ng(n, e, t, i) {
|
|
|
19403
19406
|
const ot = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
|
|
19404
19407
|
let Hn = null;
|
|
19405
19408
|
function Ml(n, e, t) {
|
|
19406
|
-
let i = n.cursor(
|
|
19409
|
+
let i = n.cursor(Be.IncludeAnonymous);
|
|
19407
19410
|
for (i.moveTo(e); ; )
|
|
19408
19411
|
if (!(t < 0 ? i.childBefore(e) : i.childAfter(e)))
|
|
19409
19412
|
for (; ; ) {
|
|
@@ -19456,7 +19459,7 @@ class $g {
|
|
|
19456
19459
|
let o = i.children[s], r = this.start[t] + i.positions[s];
|
|
19457
19460
|
if (r > e)
|
|
19458
19461
|
return this.nextStart = r, null;
|
|
19459
|
-
if (o instanceof
|
|
19462
|
+
if (o instanceof Te) {
|
|
19460
19463
|
if (r == e) {
|
|
19461
19464
|
if (r < this.safeFrom)
|
|
19462
19465
|
return null;
|
|
@@ -19534,12 +19537,12 @@ class Wg {
|
|
|
19534
19537
|
); ; c += 3) {
|
|
19535
19538
|
if (l[c] == 65535)
|
|
19536
19539
|
if (l[c + 1] == 1)
|
|
19537
|
-
c =
|
|
19540
|
+
c = Nt(l, c + 2);
|
|
19538
19541
|
else {
|
|
19539
|
-
s == 0 && l[c + 1] == 2 && (s = this.putAction(
|
|
19542
|
+
s == 0 && l[c + 1] == 2 && (s = this.putAction(Nt(l, c + 2), t, i, s));
|
|
19540
19543
|
break;
|
|
19541
19544
|
}
|
|
19542
|
-
l[c] == t && (s = this.putAction(
|
|
19545
|
+
l[c] == t && (s = this.putAction(Nt(l, c + 1), t, i, s));
|
|
19543
19546
|
}
|
|
19544
19547
|
return s;
|
|
19545
19548
|
}
|
|
@@ -19647,10 +19650,10 @@ class Gg {
|
|
|
19647
19650
|
let d = this.parser.nodeSet.types[u.type.id] == u.type ? o.getGoto(e.state, u.type.id) : -1;
|
|
19648
19651
|
if (d > -1 && u.length && (!c || (u.prop(Z.contextHash) || 0) == h))
|
|
19649
19652
|
return e.useNode(u, d), ot && console.log(r + this.stackID(e) + ` (via reuse of ${o.getName(u.type.id)})`), !0;
|
|
19650
|
-
if (!(u instanceof
|
|
19653
|
+
if (!(u instanceof Te) || u.children.length == 0 || u.positions[0] > 0)
|
|
19651
19654
|
break;
|
|
19652
19655
|
let f = u.children[0];
|
|
19653
|
-
if (f instanceof
|
|
19656
|
+
if (f instanceof Te && u.positions[0] == 0)
|
|
19654
19657
|
u = f;
|
|
19655
19658
|
else
|
|
19656
19659
|
break;
|
|
@@ -19710,7 +19713,7 @@ class Gg {
|
|
|
19710
19713
|
}
|
|
19711
19714
|
// Convert the stack's buffer to a syntax tree.
|
|
19712
19715
|
stackToTree(e) {
|
|
19713
|
-
return e.close(),
|
|
19716
|
+
return e.close(), Te.build({
|
|
19714
19717
|
buffer: Yi.create(e),
|
|
19715
19718
|
nodeSet: this.parser.nodeSet,
|
|
19716
19719
|
topID: this.topTerm,
|
|
@@ -19837,14 +19840,14 @@ class Ki extends x3 {
|
|
|
19837
19840
|
), r; ; o += 3) {
|
|
19838
19841
|
if ((r = i[o]) == 65535)
|
|
19839
19842
|
if (i[o + 1] == 1)
|
|
19840
|
-
r = i[o =
|
|
19843
|
+
r = i[o = Nt(i, o + 2)];
|
|
19841
19844
|
else {
|
|
19842
19845
|
if (i[o + 1] == 2)
|
|
19843
|
-
return
|
|
19846
|
+
return Nt(i, o + 2);
|
|
19844
19847
|
break;
|
|
19845
19848
|
}
|
|
19846
19849
|
if (r == t || r == 0)
|
|
19847
|
-
return
|
|
19850
|
+
return Nt(i, o + 1);
|
|
19848
19851
|
}
|
|
19849
19852
|
return 0;
|
|
19850
19853
|
}
|
|
@@ -19886,10 +19889,10 @@ class Ki extends x3 {
|
|
|
19886
19889
|
); s == null; o += 3) {
|
|
19887
19890
|
if (this.data[o] == 65535)
|
|
19888
19891
|
if (this.data[o + 1] == 1)
|
|
19889
|
-
o =
|
|
19892
|
+
o = Nt(this.data, o + 2);
|
|
19890
19893
|
else
|
|
19891
19894
|
break;
|
|
19892
|
-
s = t(
|
|
19895
|
+
s = t(Nt(this.data, o + 1));
|
|
19893
19896
|
}
|
|
19894
19897
|
return s;
|
|
19895
19898
|
}
|
|
@@ -19906,7 +19909,7 @@ class Ki extends x3 {
|
|
|
19906
19909
|
); ; i += 3) {
|
|
19907
19910
|
if (this.data[i] == 65535)
|
|
19908
19911
|
if (this.data[i + 1] == 1)
|
|
19909
|
-
i =
|
|
19912
|
+
i = Nt(this.data, i + 2);
|
|
19910
19913
|
else
|
|
19911
19914
|
break;
|
|
19912
19915
|
if ((this.data[i + 2] & 1) == 0) {
|
|
@@ -20001,7 +20004,7 @@ class Ki extends x3 {
|
|
|
20001
20004
|
return new Ki(e);
|
|
20002
20005
|
}
|
|
20003
20006
|
}
|
|
20004
|
-
function
|
|
20007
|
+
function Nt(n, e) {
|
|
20005
20008
|
return n[e] | n[e + 1] << 16;
|
|
20006
20009
|
}
|
|
20007
20010
|
function Ug(n) {
|
|
@@ -20138,7 +20141,7 @@ function Wn(n) {
|
|
|
20138
20141
|
}
|
|
20139
20142
|
function dm(n, e) {
|
|
20140
20143
|
var t;
|
|
20141
|
-
let i =
|
|
20144
|
+
let i = Ie(n).resolveInner(e, -1), s = null;
|
|
20142
20145
|
for (let o = i; !s && o.parent; o = o.parent)
|
|
20143
20146
|
(o.name == "OpenTag" || o.name == "CloseTag" || o.name == "SelfClosingTag" || o.name == "MismatchedCloseTag") && (s = o);
|
|
20144
20147
|
if (s && (s.to > e || s.lastChild.type.isError)) {
|
|
@@ -20297,7 +20300,7 @@ const mm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20297
20300
|
return !1;
|
|
20298
20301
|
let o = s(), { state: r } = o, l = r.changeByRange((a) => {
|
|
20299
20302
|
var c, h, u;
|
|
20300
|
-
let { head: d } = a, f = r.doc.sliceString(d - 1, d) == i, p =
|
|
20303
|
+
let { head: d } = a, f = r.doc.sliceString(d - 1, d) == i, p = Ie(r).resolveInner(d, -1), g;
|
|
20301
20304
|
if (f && i == ">" && p.name == "EndTag") {
|
|
20302
20305
|
let m = p.parent;
|
|
20303
20306
|
if (((h = (c = m.parent) === null || c === void 0 ? void 0 : c.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (g = Ll(r.doc, m.parent, d))) {
|
|
@@ -20350,7 +20353,7 @@ const mm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20350
20353
|
K("div", wm, null, 512)
|
|
20351
20354
|
]));
|
|
20352
20355
|
}
|
|
20353
|
-
}, xm = /* @__PURE__ */
|
|
20356
|
+
}, xm = /* @__PURE__ */ ke(bm, [["__scopeId", "data-v-5a7ea2b9"]]), ym = { class: "img-renderer" }, Sm = {
|
|
20354
20357
|
__name: "index",
|
|
20355
20358
|
props: {
|
|
20356
20359
|
fileName: String,
|
|
@@ -20373,7 +20376,7 @@ const mm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20373
20376
|
]);
|
|
20374
20377
|
};
|
|
20375
20378
|
}
|
|
20376
|
-
}, _m = /* @__PURE__ */
|
|
20379
|
+
}, _m = /* @__PURE__ */ ke(Sm, [["__scopeId", "data-v-92be70b7"]]), km = { class: "file-preview" }, Cm = {
|
|
20377
20380
|
key: 0,
|
|
20378
20381
|
class: "preview-docx"
|
|
20379
20382
|
}, Om = {
|
|
@@ -20454,7 +20457,7 @@ const mm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20454
20457
|
]))) : ee("", !0)
|
|
20455
20458
|
]));
|
|
20456
20459
|
}
|
|
20457
|
-
}, Co = /* @__PURE__ */
|
|
20460
|
+
}, Co = /* @__PURE__ */ ke(zm, [["__scopeId", "data-v-4049578c"]]), Vm = {
|
|
20458
20461
|
key: 0,
|
|
20459
20462
|
class: "upload-value"
|
|
20460
20463
|
}, Em = { class: "upload-content-title-wrap" }, Bm = { class: "upload-content-title" }, Lm = { class: "icon" }, Rm = { style: { display: "flex", "justify-content": "space-between", width: "100%" } }, Im = { class: "upload-content-title" }, Hm = { class: "icon" }, Nm = { class: "dialog-footer" }, $m = {
|
|
@@ -20551,7 +20554,7 @@ const mm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20551
20554
|
class: "upload-button"
|
|
20552
20555
|
}, {
|
|
20553
20556
|
default: V(() => _[2] || (_[2] = [
|
|
20554
|
-
|
|
20557
|
+
Wt(" 上传 ")
|
|
20555
20558
|
])),
|
|
20556
20559
|
_: 1,
|
|
20557
20560
|
__: [2]
|
|
@@ -20562,7 +20565,7 @@ const mm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20562
20565
|
key: z,
|
|
20563
20566
|
style: { display: "flex", "justify-content": "space-between", width: "100%" }
|
|
20564
20567
|
}, [
|
|
20565
|
-
K("div", Bm,
|
|
20568
|
+
K("div", Bm, Le(z == null ? void 0 : z.name), 1),
|
|
20566
20569
|
K("div", Lm, [
|
|
20567
20570
|
q(S, {
|
|
20568
20571
|
name: "EyeFill",
|
|
@@ -20600,13 +20603,13 @@ const mm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20600
20603
|
_: 1
|
|
20601
20604
|
}),
|
|
20602
20605
|
_[4] || (_[4] = K("div", { class: "el-upload__text" }, [
|
|
20603
|
-
|
|
20606
|
+
Wt(" 将文件拖到此处或"),
|
|
20604
20607
|
K("em", null, "点击上传")
|
|
20605
20608
|
], -1))
|
|
20606
20609
|
]),
|
|
20607
20610
|
file: V(({ file: z, index: w }) => [
|
|
20608
20611
|
K("div", Rm, [
|
|
20609
|
-
K("div", Im,
|
|
20612
|
+
K("div", Im, Le(z == null ? void 0 : z.name), 1),
|
|
20610
20613
|
K("div", Hm, [
|
|
20611
20614
|
q(S, {
|
|
20612
20615
|
name: "EyeFill",
|
|
@@ -20631,7 +20634,7 @@ const mm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20631
20634
|
id: "themeBorderButton"
|
|
20632
20635
|
}, {
|
|
20633
20636
|
default: V(() => _[5] || (_[5] = [
|
|
20634
|
-
|
|
20637
|
+
Wt("取消")
|
|
20635
20638
|
])),
|
|
20636
20639
|
_: 1,
|
|
20637
20640
|
__: [5]
|
|
@@ -20642,7 +20645,7 @@ const mm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20642
20645
|
id: "themeButton"
|
|
20643
20646
|
}, {
|
|
20644
20647
|
default: V(() => _[6] || (_[6] = [
|
|
20645
|
-
|
|
20648
|
+
Wt("确认")
|
|
20646
20649
|
])),
|
|
20647
20650
|
_: 1,
|
|
20648
20651
|
__: [6]
|
|
@@ -20668,7 +20671,7 @@ const mm = /* @__PURE__ */ R.inputHandler.of((n, e, t, i, s) => {
|
|
|
20668
20671
|
])) : ee("", !0);
|
|
20669
20672
|
};
|
|
20670
20673
|
}
|
|
20671
|
-
}, Wm = /* @__PURE__ */
|
|
20674
|
+
}, Wm = /* @__PURE__ */ ke($m, [["__scopeId", "data-v-c950e225"]]);
|
|
20672
20675
|
/*!
|
|
20673
20676
|
* Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad
|
|
20674
20677
|
* (c) 2020 Szymon Nowak | Released under the MIT license
|
|
@@ -21149,7 +21152,7 @@ var Ym = /* @__PURE__ */ _t({
|
|
|
21149
21152
|
function x() {
|
|
21150
21153
|
t.signaturePad.clear(), e.emit("input", null);
|
|
21151
21154
|
}
|
|
21152
|
-
return
|
|
21155
|
+
return Yt(() => {
|
|
21153
21156
|
const S = s.value, k = new Qi(S, {
|
|
21154
21157
|
onEnd: c,
|
|
21155
21158
|
...n.options
|
|
@@ -21307,7 +21310,7 @@ const Xm = { class: "signature-wrap" }, Qm = { class: "signature-types" }, Jm =
|
|
|
21307
21310
|
footer: V(() => [
|
|
21308
21311
|
q(f, { onClick: r }, {
|
|
21309
21312
|
default: V(() => h[4] || (h[4] = [
|
|
21310
|
-
|
|
21313
|
+
Wt("取消")
|
|
21311
21314
|
])),
|
|
21312
21315
|
_: 1,
|
|
21313
21316
|
__: [4]
|
|
@@ -21317,7 +21320,7 @@ const Xm = { class: "signature-wrap" }, Qm = { class: "signature-types" }, Jm =
|
|
|
21317
21320
|
onClick: l
|
|
21318
21321
|
}, {
|
|
21319
21322
|
default: V(() => h[5] || (h[5] = [
|
|
21320
|
-
|
|
21323
|
+
Wt("确认")
|
|
21321
21324
|
])),
|
|
21322
21325
|
_: 1,
|
|
21323
21326
|
__: [5]
|
|
@@ -21328,7 +21331,7 @@ const Xm = { class: "signature-wrap" }, Qm = { class: "signature-types" }, Jm =
|
|
|
21328
21331
|
], 64);
|
|
21329
21332
|
};
|
|
21330
21333
|
}
|
|
21331
|
-
}, tv = /* @__PURE__ */
|
|
21334
|
+
}, tv = /* @__PURE__ */ ke(ev, [["__scopeId", "data-v-e409734b"]]), iv = /* @__PURE__ */ _t({
|
|
21332
21335
|
__name: "index",
|
|
21333
21336
|
setup(n) {
|
|
21334
21337
|
const e = $(null), t = async (i) => {
|
|
@@ -21404,7 +21407,7 @@ const Xm = { class: "signature-wrap" }, Qm = { class: "signature-types" }, Jm =
|
|
|
21404
21407
|
class: "item-name",
|
|
21405
21408
|
title: p.name,
|
|
21406
21409
|
onClick: (m) => c(g)
|
|
21407
|
-
},
|
|
21410
|
+
}, Le(p == null ? void 0 : p.name), 9, ov),
|
|
21408
21411
|
K("div", rv, [
|
|
21409
21412
|
q(f, {
|
|
21410
21413
|
class: "download-icon",
|
|
@@ -21428,7 +21431,7 @@ const Xm = { class: "signature-wrap" }, Qm = { class: "signature-types" }, Jm =
|
|
|
21428
21431
|
]);
|
|
21429
21432
|
};
|
|
21430
21433
|
}
|
|
21431
|
-
}), Na = /* @__PURE__ */
|
|
21434
|
+
}), Na = /* @__PURE__ */ ke(av, [["__scopeId", "data-v-460d0fb4"]]), hv = { class: "file-preview-dialog-header" }, cv = { class: "header-left" }, uv = { class: "header-right" }, dv = { class: "file-preview-dialog-body" }, fv = /* @__PURE__ */ _t({
|
|
21432
21435
|
__name: "index",
|
|
21433
21436
|
props: {
|
|
21434
21437
|
fileDataList: {},
|
|
@@ -21464,7 +21467,7 @@ const Xm = { class: "signature-wrap" }, Qm = { class: "signature-types" }, Jm =
|
|
|
21464
21467
|
}, {
|
|
21465
21468
|
header: V(() => [
|
|
21466
21469
|
K("div", hv, [
|
|
21467
|
-
K("div", cv,
|
|
21470
|
+
K("div", cv, Le(d.customTitle), 1),
|
|
21468
21471
|
K("div", uv, [
|
|
21469
21472
|
q(p, null, {
|
|
21470
21473
|
default: V(() => [
|
|
@@ -21499,7 +21502,7 @@ const Xm = { class: "signature-wrap" }, Qm = { class: "signature-types" }, Jm =
|
|
|
21499
21502
|
}, 8, ["visible", "fullScreen"]);
|
|
21500
21503
|
};
|
|
21501
21504
|
}
|
|
21502
|
-
}), pv = /* @__PURE__ */
|
|
21505
|
+
}), pv = /* @__PURE__ */ ke(fv, [["__scopeId", "data-v-18f196f0"]]), gv = { class: "quill-content" }, mv = {
|
|
21503
21506
|
__name: "index",
|
|
21504
21507
|
props: {
|
|
21505
21508
|
modelValue: String,
|
|
@@ -21602,7 +21605,7 @@ const Xm = { class: "signature-wrap" }, Qm = { class: "signature-types" }, Jm =
|
|
|
21602
21605
|
m.append("file", g), await Wl(m).then((v) => {
|
|
21603
21606
|
});
|
|
21604
21607
|
};
|
|
21605
|
-
return
|
|
21608
|
+
return Yt(() => {
|
|
21606
21609
|
s = new Bo(i.value, a.value);
|
|
21607
21610
|
const f = s;
|
|
21608
21611
|
if (t.modelValue) {
|
|
@@ -21634,7 +21637,7 @@ const Xm = { class: "signature-wrap" }, Qm = { class: "signature-types" }, Jm =
|
|
|
21634
21637
|
}, null, 512)
|
|
21635
21638
|
]));
|
|
21636
21639
|
}
|
|
21637
|
-
}, vv = /* @__PURE__ */
|
|
21640
|
+
}, vv = /* @__PURE__ */ ke(mv, [["__scopeId", "data-v-28a0311d"]]), wv = {
|
|
21638
21641
|
AVATARUPLOAD: lh,
|
|
21639
21642
|
SIGNATURE: tv,
|
|
21640
21643
|
SWITCH: hh,
|
|
@@ -21717,7 +21720,7 @@ const bv = ["onDblclick"], xv = {
|
|
|
21717
21720
|
p != null && p.label ? (C(), L("div", {
|
|
21718
21721
|
key: 0,
|
|
21719
21722
|
onDblclick: (v) => l(p)
|
|
21720
|
-
},
|
|
21723
|
+
}, Le(p == null ? void 0 : p.label), 41, bv)) : ee("", !0),
|
|
21721
21724
|
p != null && p.contents && ((m = p == null ? void 0 : p.contents) == null ? void 0 : m.length) > 0 ? (C(), L("div", xv, [
|
|
21722
21725
|
(C(!0), L(me, null, ve(p == null ? void 0 : p.contents, (v, b) => (C(), L("div", {
|
|
21723
21726
|
key: b,
|
|
@@ -21747,7 +21750,7 @@ const bv = ["onDblclick"], xv = {
|
|
|
21747
21750
|
onClickTrigger: a,
|
|
21748
21751
|
onChangeTrigger: c,
|
|
21749
21752
|
content: m == null ? void 0 : m.content
|
|
21750
|
-
},
|
|
21753
|
+
}, Ft({ _: 2 }, [
|
|
21751
21754
|
name ? {
|
|
21752
21755
|
name,
|
|
21753
21756
|
fn: V((b) => [
|
|
@@ -21765,7 +21768,7 @@ const bv = ["onDblclick"], xv = {
|
|
|
21765
21768
|
}, 8, ["modelValue", "tab-position"]);
|
|
21766
21769
|
};
|
|
21767
21770
|
}
|
|
21768
|
-
}, $a = /* @__PURE__ */
|
|
21771
|
+
}, $a = /* @__PURE__ */ ke(yv, [["__scopeId", "data-v-0f027c8c"]]), Vv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21769
21772
|
__proto__: null,
|
|
21770
21773
|
default: $a
|
|
21771
21774
|
}, Symbol.toStringTag, { value: "Module" }));
|