@quickflo/quickforms-quasar 1.16.21 → 1.16.23
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.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { SchemaUtils as mm, ComponentRegistry as T0, rankWith as We, hasConst as D0, hasXRender as Xt, isStringType as q0, isNumberType as P0, isBooleanType as _0, isEnumType as B0, isDateFormat as R0, isTimeFormat as E0, isDateTimeFormat as L0, isRecordType as I0, isJsonType as V0, isObjectType as F0, isArrayType as ch, hasOneOf as N0, hasAnyOf as H0, hasAllOf as z0 } from "@quickflo/quickforms";
|
|
2
2
|
import { ComponentRegistry as M2, SchemaUtils as A2, and as O2, hasAllOf as T2, hasAnyOf as D2, hasConditional as q2, hasConst as P2, hasExtension as _2, hasFormat as B2, hasOneOf as R2, isArrayType as E2, isBooleanType as L2, isDateFormat as I2, isDateTimeFormat as V2, isDiscriminatedUnion as F2, isEmailFormat as N2, isEnumType as H2, isIntegerType as z2, isJsonType as j2, isNullType as W2, isNumberType as Q2, isObjectType as U2, isRecordType as K2, isStringType as Y2, isTimeFormat as G2, isUrlFormat as J2, not as X2, or as $2, rankWith as Z2 } from "@quickflo/quickforms";
|
|
3
|
-
import { computed as b, markRaw as gm, defineComponent as Pt, reactive as pm, h as A, withDirectives as Ln, getCurrentInstance as je, ref as J, onMounted as Mi, watch as ve, onBeforeUpdate as vm, inject as Ho, onBeforeUnmount as ht, nextTick as rt, onDeactivated as zo, onActivated as ac, Transition as mi, provide as ym, createElementBlock as ae, openBlock as te, normalizeStyle as vt, createVNode as ee, mergeProps as ot, createSlots as Gi, withCtx as ge, createTextVNode as He, createElementVNode as ke, toDisplayString as Me, toRaw as Wn, createCommentVNode as se, unref as j0, onUnmounted as W0, Teleport as Q0, onBeforeMount as U0, onUpdated as K0, shallowReactive as Y0, vShow as G0, normalizeClass as uc, Fragment as zt, renderList as Dn, createBlock as Di, shallowRef as aa, renderSlot as
|
|
4
|
-
import { useFormContext as J0, useFormField as X0, generateFieldId as $0, FieldRenderer as
|
|
3
|
+
import { computed as b, markRaw as gm, defineComponent as Pt, reactive as pm, h as A, withDirectives as Ln, getCurrentInstance as je, ref as J, onMounted as Mi, watch as ve, onBeforeUpdate as vm, inject as Ho, onBeforeUnmount as ht, nextTick as rt, onDeactivated as zo, onActivated as ac, Transition as mi, provide as ym, createElementBlock as ae, openBlock as te, normalizeStyle as vt, createVNode as ee, mergeProps as ot, createSlots as Gi, withCtx as ge, createTextVNode as He, createElementVNode as ke, toDisplayString as Me, toRaw as Wn, createCommentVNode as se, unref as j0, onUnmounted as W0, Teleport as Q0, onBeforeMount as U0, onUpdated as K0, shallowReactive as Y0, vShow as G0, normalizeClass as uc, Fragment as zt, renderList as Dn, createBlock as Di, shallowRef as aa, renderSlot as rs } from "vue";
|
|
4
|
+
import { useFormContext as J0, useFormField as X0, generateFieldId as $0, FieldRenderer as El, HiddenField as Z0 } from "@quickflo/quickforms-vue";
|
|
5
5
|
const tu = {
|
|
6
6
|
xs: 18,
|
|
7
7
|
sm: 24,
|
|
8
8
|
md: 32,
|
|
9
9
|
lg: 38,
|
|
10
10
|
xl: 46
|
|
11
|
-
},
|
|
11
|
+
}, Ll = {
|
|
12
12
|
size: String
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function Il(i, e = tu) {
|
|
15
15
|
return b(() => i.size !== void 0 ? { fontSize: i.size in e ? `${e[i.size]}px` : i.size } : null);
|
|
16
16
|
}
|
|
17
17
|
function Ur(i, e, t, n) {
|
|
@@ -87,7 +87,7 @@ const hh = "0 0 24 24", ua = (i) => i, ca = (i) => `ionicons ${i}`, bm = {
|
|
|
87
87
|
}, ry = new RegExp("^(" + Object.keys(bm).join("|") + ")"), oy = new RegExp("^(" + Object.keys(xm).join("|") + ")"), fh = new RegExp("^(" + Object.keys(km).join("|") + ")"), sy = /^[Mm]\s?[-+]?\.?\d/, ly = /^img:/, ay = /^svguse:/, uy = /^ion-/, cy = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, kt = Je({
|
|
88
88
|
name: "QIcon",
|
|
89
89
|
props: {
|
|
90
|
-
...
|
|
90
|
+
...Ll,
|
|
91
91
|
tag: {
|
|
92
92
|
type: String,
|
|
93
93
|
default: "i"
|
|
@@ -98,7 +98,7 @@ const hh = "0 0 24 24", ua = (i) => i, ca = (i) => `ionicons ${i}`, bm = {
|
|
|
98
98
|
right: Boolean
|
|
99
99
|
},
|
|
100
100
|
setup(i, { slots: e }) {
|
|
101
|
-
const { proxy: { $q: t } } = je(), n =
|
|
101
|
+
const { proxy: { $q: t } } = je(), n = Il(i), r = b(
|
|
102
102
|
() => "q-icon" + (i.left === !0 ? " on-left" : "") + (i.right === !0 ? " on-right" : "") + (i.color !== void 0 ? ` text-${i.color}` : "")
|
|
103
103
|
), o = b(() => {
|
|
104
104
|
let s, l = i.name;
|
|
@@ -230,7 +230,7 @@ const wm = Je({
|
|
|
230
230
|
]);
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
|
-
let ha,
|
|
233
|
+
let ha, os = 0;
|
|
234
234
|
const Et = new Array(256);
|
|
235
235
|
for (let i = 0; i < 256; i++)
|
|
236
236
|
Et[i] = (i + 256).toString(16).substring(1);
|
|
@@ -252,9 +252,9 @@ const dy = (() => {
|
|
|
252
252
|
return t;
|
|
253
253
|
};
|
|
254
254
|
})(), dh = 4096;
|
|
255
|
-
function
|
|
256
|
-
(ha === void 0 ||
|
|
257
|
-
const i = Array.prototype.slice.call(ha,
|
|
255
|
+
function Zs() {
|
|
256
|
+
(ha === void 0 || os + 16 > dh) && (os = 0, ha = dy(dh));
|
|
257
|
+
const i = Array.prototype.slice.call(ha, os, os += 16);
|
|
258
258
|
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Et[i[0]] + Et[i[1]] + Et[i[2]] + Et[i[3]] + "-" + Et[i[4]] + Et[i[5]] + "-" + Et[i[6]] + Et[i[7]] + "-" + Et[i[8]] + Et[i[9]] + "-" + Et[i[10]] + Et[i[11]] + Et[i[12]] + Et[i[13]] + Et[i[14]] + Et[i[15]];
|
|
259
259
|
}
|
|
260
260
|
const Er = J(
|
|
@@ -369,18 +369,18 @@ function yy(i) {
|
|
|
369
369
|
return i ?? null;
|
|
370
370
|
}
|
|
371
371
|
function gh(i, e) {
|
|
372
|
-
return i ?? (e === !0 ? `f_${
|
|
372
|
+
return i ?? (e === !0 ? `f_${Zs()}` : null);
|
|
373
373
|
}
|
|
374
374
|
function Cm({ getValue: i, required: e = !0 } = {}) {
|
|
375
375
|
if (Er.value === !0) {
|
|
376
376
|
const t = i !== void 0 ? J(yy(i())) : J(null);
|
|
377
377
|
return e === !0 && t.value === null && Mi(() => {
|
|
378
|
-
t.value = `f_${
|
|
378
|
+
t.value = `f_${Zs()}`;
|
|
379
379
|
}), i !== void 0 && ve(i, (n) => {
|
|
380
380
|
t.value = gh(n, e);
|
|
381
381
|
}), t;
|
|
382
382
|
}
|
|
383
|
-
return i !== void 0 ? b(() => gh(i(), e)) : J(`f_${
|
|
383
|
+
return i !== void 0 ? b(() => gh(i(), e)) : J(`f_${Zs()}`);
|
|
384
384
|
}
|
|
385
385
|
const ph = /^on[A-Z]/;
|
|
386
386
|
function by() {
|
|
@@ -423,7 +423,7 @@ function wy({ validate: i, resetValidation: e, requiresQForm: t }) {
|
|
|
423
423
|
});
|
|
424
424
|
} else t === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
425
425
|
}
|
|
426
|
-
const vh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, yh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, bh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,
|
|
426
|
+
const vh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, yh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, bh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, ss = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, ls = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, da = {
|
|
427
427
|
date: (i) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(i),
|
|
428
428
|
time: (i) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(i),
|
|
429
429
|
fulltime: (i) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(i),
|
|
@@ -438,12 +438,12 @@ const vh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, yh = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
438
438
|
hexColor: (i) => vh.test(i),
|
|
439
439
|
hexaColor: (i) => yh.test(i),
|
|
440
440
|
hexOrHexaColor: (i) => bh.test(i),
|
|
441
|
-
rgbColor: (i) =>
|
|
442
|
-
rgbaColor: (i) =>
|
|
443
|
-
rgbOrRgbaColor: (i) =>
|
|
444
|
-
hexOrRgbColor: (i) => vh.test(i) ||
|
|
445
|
-
hexaOrRgbaColor: (i) => yh.test(i) ||
|
|
446
|
-
anyColor: (i) => bh.test(i) ||
|
|
441
|
+
rgbColor: (i) => ss.test(i),
|
|
442
|
+
rgbaColor: (i) => ls.test(i),
|
|
443
|
+
rgbOrRgbaColor: (i) => ss.test(i) || ls.test(i),
|
|
444
|
+
hexOrRgbColor: (i) => vh.test(i) || ss.test(i),
|
|
445
|
+
hexaOrRgbaColor: (i) => yh.test(i) || ls.test(i),
|
|
446
|
+
anyColor: (i) => bh.test(i) || ss.test(i) || ls.test(i)
|
|
447
447
|
};
|
|
448
448
|
function Am(i, e = 250, t) {
|
|
449
449
|
let n = null;
|
|
@@ -620,7 +620,7 @@ function Ty(i) {
|
|
|
620
620
|
function xh(i) {
|
|
621
621
|
Om(i), wo.length === 0 && Gn.length !== 0 && (Gn[Gn.length - 1](), Gn = []);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Vl(i) {
|
|
624
624
|
wo.length === 0 ? i() : Gn.push(i);
|
|
625
625
|
}
|
|
626
626
|
function Dy(i) {
|
|
@@ -660,7 +660,7 @@ const qy = {
|
|
|
660
660
|
readonly: Boolean,
|
|
661
661
|
autofocus: Boolean,
|
|
662
662
|
for: String
|
|
663
|
-
},
|
|
663
|
+
}, Fl = {
|
|
664
664
|
...qy,
|
|
665
665
|
maxlength: [Number, String]
|
|
666
666
|
}, fc = ["update:modelValue", "clear", "focus", "blur"];
|
|
@@ -752,13 +752,13 @@ function mc(i) {
|
|
|
752
752
|
return i.targetUid.value && (q.for = i.targetUid.value), e.disable === !0 && (q["aria-disabled"] = "true"), q;
|
|
753
753
|
});
|
|
754
754
|
function E() {
|
|
755
|
-
var
|
|
755
|
+
var ie;
|
|
756
756
|
const q = document.activeElement;
|
|
757
|
-
let z = (
|
|
757
|
+
let z = (ie = i.targetRef) == null ? void 0 : ie.value;
|
|
758
758
|
z && (q === null || q.id !== i.targetUid.value) && (z.hasAttribute("tabindex") === !0 || (z = z.querySelector("[tabindex]")), z !== q && (z == null || z.focus({ preventScroll: !0 })));
|
|
759
759
|
}
|
|
760
760
|
function T() {
|
|
761
|
-
|
|
761
|
+
Vl(E);
|
|
762
762
|
}
|
|
763
763
|
function H() {
|
|
764
764
|
Dy(E);
|
|
@@ -776,8 +776,8 @@ function mc(i) {
|
|
|
776
776
|
function D(q) {
|
|
777
777
|
var z;
|
|
778
778
|
ct(q), s.platform.is.mobile !== !0 ? (((z = i.targetRef) == null ? void 0 : z.value) || i.rootRef.value).focus() : i.rootRef.value.contains(document.activeElement) === !0 && document.activeElement.blur(), e.type === "file" && (i.inputRef.value.value = null), t("update:modelValue", null), i.changeEvent === !0 && t("change", null), t("clear", e.modelValue), rt(() => {
|
|
779
|
-
const
|
|
780
|
-
f(), a.value =
|
|
779
|
+
const ie = a.value;
|
|
780
|
+
f(), a.value = ie;
|
|
781
781
|
});
|
|
782
782
|
}
|
|
783
783
|
function R(q) {
|
|
@@ -858,8 +858,8 @@ function mc(i) {
|
|
|
858
858
|
function F() {
|
|
859
859
|
let q, z;
|
|
860
860
|
c.value === !0 ? h.value !== null ? (q = [A("div", { role: "alert" }, h.value)], z = `q--slot-error-${h.value}`) : (q = qt(n.error), z = "q--slot-error") : (e.hideHint !== !0 || i.focused.value === !0) && (e.hint !== void 0 ? (q = [A("div", e.hint)], z = `q--slot-hint-${e.hint}`) : (q = qt(n.hint), z = "q--slot-hint"));
|
|
861
|
-
const
|
|
862
|
-
if (e.hideBottomSpace === !0 &&
|
|
861
|
+
const ie = e.counter === !0 || n.counter !== void 0;
|
|
862
|
+
if (e.hideBottomSpace === !0 && ie === !1 && q === void 0) return;
|
|
863
863
|
const I = A("div", {
|
|
864
864
|
key: z,
|
|
865
865
|
class: "q-field__messages col"
|
|
@@ -869,7 +869,7 @@ function mc(i) {
|
|
|
869
869
|
onClick: ei
|
|
870
870
|
}, [
|
|
871
871
|
e.hideBottomSpace === !0 ? I : A(mi, { name: "q-transition--field-message" }, () => I),
|
|
872
|
-
|
|
872
|
+
ie === !0 ? A("div", {
|
|
873
873
|
class: "q-field__counter"
|
|
874
874
|
}, n.counter !== void 0 ? n.counter() : i.computedCounter.value) : null
|
|
875
875
|
]);
|
|
@@ -926,11 +926,11 @@ function mc(i) {
|
|
|
926
926
|
]);
|
|
927
927
|
};
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Nl(i) {
|
|
930
930
|
return i !== Object(i) || i.isComposing === !0 || i.qKeyEvent === !0;
|
|
931
931
|
}
|
|
932
932
|
function cn(i, e) {
|
|
933
|
-
return
|
|
933
|
+
return Nl(i) === !0 ? !1 : [].concat(e).includes(i.keyCode);
|
|
934
934
|
}
|
|
935
935
|
const kh = {
|
|
936
936
|
date: "####/##/##",
|
|
@@ -1039,7 +1039,7 @@ function Ry(i, e, t, n) {
|
|
|
1039
1039
|
});
|
|
1040
1040
|
const z = new RegExp(
|
|
1041
1041
|
"^" + O.join("") + "(" + (M === "" ? "." : "[^" + M + "]") + "+)?" + (M === "" ? "" : "[" + M + "]*") + "$"
|
|
1042
|
-
),
|
|
1042
|
+
), ie = P.length - 1, I = P.map((w, N) => N === 0 && i.reverseFillMask === !0 ? new RegExp("^" + R + "*" + w) : N === ie ? new RegExp(
|
|
1043
1043
|
"^" + w + "(" + (q === "" ? "." : q) + "+)?" + (i.reverseFillMask === !0 ? "$" : R + "*")
|
|
1044
1044
|
) : new RegExp("^" + w));
|
|
1045
1045
|
s = F, l = (w) => {
|
|
@@ -1094,8 +1094,8 @@ function Ry(i, e, t, n) {
|
|
|
1094
1094
|
v.right(O, I);
|
|
1095
1095
|
}
|
|
1096
1096
|
});
|
|
1097
|
-
const
|
|
1098
|
-
String(i.modelValue) !==
|
|
1097
|
+
const ie = i.unmaskedValue === !0 ? H(q) : q;
|
|
1098
|
+
String(i.modelValue) !== ie && (i.modelValue !== null || ie !== "") && t(ie, !0);
|
|
1099
1099
|
}
|
|
1100
1100
|
function k(B, D, R) {
|
|
1101
1101
|
const O = E(H(B.value));
|
|
@@ -1156,7 +1156,7 @@ function Ry(i, e, t, n) {
|
|
|
1156
1156
|
e("click", B), u = void 0;
|
|
1157
1157
|
}
|
|
1158
1158
|
function C(B) {
|
|
1159
|
-
if (e("keydown", B),
|
|
1159
|
+
if (e("keydown", B), Nl(B) === !0 || B.altKey === !0) return;
|
|
1160
1160
|
const D = n.value, R = D.selectionStart, O = D.selectionEnd;
|
|
1161
1161
|
if (B.shiftKey || (u = void 0), B.keyCode === 37 || B.keyCode === 39) {
|
|
1162
1162
|
B.shiftKey && u === void 0 && (u = D.selectionDirection === "forward" ? R : O);
|
|
@@ -1274,7 +1274,7 @@ const cr = Je({
|
|
|
1274
1274
|
name: "QInput",
|
|
1275
1275
|
inheritAttrs: !1,
|
|
1276
1276
|
props: {
|
|
1277
|
-
...
|
|
1277
|
+
...Fl,
|
|
1278
1278
|
...By,
|
|
1279
1279
|
...jo,
|
|
1280
1280
|
// override of useFieldProps > modelValue
|
|
@@ -1358,7 +1358,7 @@ const cr = Je({
|
|
|
1358
1358
|
i.autogrow === !0 && rt(M);
|
|
1359
1359
|
});
|
|
1360
1360
|
function D() {
|
|
1361
|
-
|
|
1361
|
+
Vl(() => {
|
|
1362
1362
|
const w = document.activeElement;
|
|
1363
1363
|
h.value !== null && h.value !== w && (w === null || w.id !== E.targetUid.value) && h.value.focus({ preventScroll: !0 });
|
|
1364
1364
|
});
|
|
@@ -1422,7 +1422,7 @@ const cr = Je({
|
|
|
1422
1422
|
h.value !== null && (h.value.value = d.value !== void 0 ? d.value : "");
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function ie() {
|
|
1426
1426
|
return o.hasOwnProperty("value") === !0 ? o.value : d.value !== void 0 ? d.value : "";
|
|
1427
1427
|
}
|
|
1428
1428
|
ht(() => {
|
|
@@ -1452,12 +1452,12 @@ const cr = Je({
|
|
|
1452
1452
|
style: i.inputStyle,
|
|
1453
1453
|
...B.value,
|
|
1454
1454
|
...V.value,
|
|
1455
|
-
...i.type !== "file" ? { value:
|
|
1455
|
+
...i.type !== "file" ? { value: ie() } : v.value
|
|
1456
1456
|
}),
|
|
1457
1457
|
getShadowControl: () => A("div", {
|
|
1458
1458
|
class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (T.value === !0 ? "" : " text-no-wrap")
|
|
1459
1459
|
}, [
|
|
1460
|
-
A("span", { class: "invisible" },
|
|
1460
|
+
A("span", { class: "invisible" }, ie()),
|
|
1461
1461
|
A("span", i.shadowText)
|
|
1462
1462
|
])
|
|
1463
1463
|
});
|
|
@@ -1489,7 +1489,7 @@ function Hy(i) {
|
|
|
1489
1489
|
const e = (t = i == null ? void 0 : i.layout) == null ? void 0 : t.fieldGap;
|
|
1490
1490
|
return e ? Ny[e] ?? e : "16px";
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function Wo(i, e, t) {
|
|
1493
1493
|
const n = (e == null ? void 0 : e.global) || {}, r = t !== "jsoneditor" ? (e == null ? void 0 : e[t]) || {} : {}, o = i["x-component-props"] || {}, s = i["x-quasar-props"] || {};
|
|
1494
1494
|
return {
|
|
1495
1495
|
...n,
|
|
@@ -1511,7 +1511,7 @@ function Ut(i, e, t = {}) {
|
|
|
1511
1511
|
i,
|
|
1512
1512
|
e,
|
|
1513
1513
|
{ label: n }
|
|
1514
|
-
), f = Rm(), d = $0(i), m = b(() =>
|
|
1514
|
+
), f = Rm(), d = $0(i), m = b(() => Wo(
|
|
1515
1515
|
e,
|
|
1516
1516
|
f == null ? void 0 : f.componentDefaults,
|
|
1517
1517
|
r
|
|
@@ -1762,7 +1762,7 @@ const Yy = {
|
|
|
1762
1762
|
xl: 60
|
|
1763
1763
|
}, Gy = {
|
|
1764
1764
|
...$i,
|
|
1765
|
-
...
|
|
1765
|
+
...Ll,
|
|
1766
1766
|
...jo,
|
|
1767
1767
|
modelValue: {
|
|
1768
1768
|
required: !0,
|
|
@@ -1789,7 +1789,7 @@ const Yy = {
|
|
|
1789
1789
|
tabindex: [String, Number]
|
|
1790
1790
|
}, Jy = ["update:modelValue"];
|
|
1791
1791
|
function Xy(i, e) {
|
|
1792
|
-
const { props: t, slots: n, emit: r, proxy: o } = je(), { $q: s } = o, l = Zi(t, s), a = J(null), { refocusTargetEl: u, refocusTarget: c } = Ky(t, a), h =
|
|
1792
|
+
const { props: t, slots: n, emit: r, proxy: o } = je(), { $q: s } = o, l = Zi(t, s), a = J(null), { refocusTargetEl: u, refocusTarget: c } = Ky(t, a), h = Il(t, Yy), f = b(
|
|
1793
1793
|
() => t.val !== void 0 && Array.isArray(t.modelValue)
|
|
1794
1794
|
), d = b(() => {
|
|
1795
1795
|
const R = Wn(t.val);
|
|
@@ -2008,7 +2008,7 @@ const Ah = /* @__PURE__ */ Kt(eb, [["render", rb], ["__file", "/Users/zachsherbo
|
|
|
2008
2008
|
name: "QField",
|
|
2009
2009
|
inheritAttrs: !1,
|
|
2010
2010
|
props: {
|
|
2011
|
-
...
|
|
2011
|
+
...Fl,
|
|
2012
2012
|
tag: {
|
|
2013
2013
|
type: String,
|
|
2014
2014
|
default: "label"
|
|
@@ -2137,7 +2137,7 @@ const pc = cc(
|
|
|
2137
2137
|
name: "QChip",
|
|
2138
2138
|
props: {
|
|
2139
2139
|
...$i,
|
|
2140
|
-
...
|
|
2140
|
+
...Ll,
|
|
2141
2141
|
dense: Boolean,
|
|
2142
2142
|
icon: String,
|
|
2143
2143
|
iconRight: String,
|
|
@@ -2168,7 +2168,7 @@ const pc = cc(
|
|
|
2168
2168
|
},
|
|
2169
2169
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
2170
2170
|
setup(i, { slots: e, emit: t }) {
|
|
2171
|
-
const { proxy: { $q: n } } = je(), r = Zi(i, n), o =
|
|
2171
|
+
const { proxy: { $q: n } } = je(), r = Zi(i, n), o = Il(i, ab), s = b(() => i.selected === !0 || i.icon !== void 0), l = b(() => i.selected === !0 ? i.iconSelected || n.iconSet.chip.selected : i.icon), a = b(() => i.iconRemove || n.iconSet.chip.remove), u = b(
|
|
2172
2172
|
() => i.disable === !1 && (i.clickable === !0 || i.selected !== null)
|
|
2173
2173
|
), c = b(() => {
|
|
2174
2174
|
const g = i.outline === !0 && i.color || i.textColor;
|
|
@@ -2242,7 +2242,7 @@ const pc = cc(
|
|
|
2242
2242
|
};
|
|
2243
2243
|
}
|
|
2244
2244
|
});
|
|
2245
|
-
function
|
|
2245
|
+
function Vs(i) {
|
|
2246
2246
|
if (Object(i.$parent) === i.$parent)
|
|
2247
2247
|
return i.$parent;
|
|
2248
2248
|
let { parent: e } = i.$;
|
|
@@ -2392,7 +2392,7 @@ function Fm({ fallbackTag: i, useDisableForRouterLinkProps: e = !0 } = {}) {
|
|
|
2392
2392
|
navigateOnClick: x
|
|
2393
2393
|
};
|
|
2394
2394
|
}
|
|
2395
|
-
const
|
|
2395
|
+
const el = Je({
|
|
2396
2396
|
name: "QItem",
|
|
2397
2397
|
props: {
|
|
2398
2398
|
...$i,
|
|
@@ -2494,7 +2494,7 @@ const Zs = Je({
|
|
|
2494
2494
|
}, qt(e.default));
|
|
2495
2495
|
}
|
|
2496
2496
|
});
|
|
2497
|
-
function
|
|
2497
|
+
function tl() {
|
|
2498
2498
|
if (window.getSelection !== void 0) {
|
|
2499
2499
|
const i = window.getSelection();
|
|
2500
2500
|
i.empty !== void 0 ? i.empty() : i.removeAllRanges !== void 0 && (i.removeAllRanges(), nu.is.mobile !== !0 && i.addRange(document.createRange()));
|
|
@@ -2554,7 +2554,7 @@ function bc({
|
|
|
2554
2554
|
}, 300);
|
|
2555
2555
|
},
|
|
2556
2556
|
mobileCleanup(d) {
|
|
2557
|
-
s.value.classList.remove("non-selectable"), l !== null && (clearTimeout(l), l = null), i.value === !0 && d !== void 0 &&
|
|
2557
|
+
s.value.classList.remove("non-selectable"), l !== null && (clearTimeout(l), l = null), i.value === !0 && d !== void 0 && tl();
|
|
2558
2558
|
}
|
|
2559
2559
|
}), t = function(d = n.contextMenu) {
|
|
2560
2560
|
if (n.noParentEvent === !0 || s.value === null) return;
|
|
@@ -2712,12 +2712,12 @@ function jm(i, e) {
|
|
|
2712
2712
|
do {
|
|
2713
2713
|
if (i.$options.name === "QMenu") {
|
|
2714
2714
|
if (i.hide(e), i.$props.separateClosePopup === !0)
|
|
2715
|
-
return
|
|
2715
|
+
return Vs(i);
|
|
2716
2716
|
} else if (i.__qPortal === !0) {
|
|
2717
|
-
const t =
|
|
2717
|
+
const t = Vs(i);
|
|
2718
2718
|
return (t == null ? void 0 : t.$options.name) === "QPopupProxy" ? (i.hide(e), t) : i;
|
|
2719
2719
|
}
|
|
2720
|
-
i =
|
|
2720
|
+
i = Vs(i);
|
|
2721
2721
|
} while (i != null);
|
|
2722
2722
|
}
|
|
2723
2723
|
function vb(i, e, t) {
|
|
@@ -2729,7 +2729,7 @@ function vb(i, e, t) {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
i.hide(e);
|
|
2731
2731
|
}
|
|
2732
|
-
i =
|
|
2732
|
+
i = Vs(i);
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
2735
2735
|
const yb = Je({
|
|
@@ -2854,10 +2854,10 @@ function kb(i) {
|
|
|
2854
2854
|
function wb(i) {
|
|
2855
2855
|
return i === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : i.scrollLeft;
|
|
2856
2856
|
}
|
|
2857
|
-
let
|
|
2857
|
+
let as;
|
|
2858
2858
|
function Sb() {
|
|
2859
|
-
if (
|
|
2860
|
-
return
|
|
2859
|
+
if (as !== void 0)
|
|
2860
|
+
return as;
|
|
2861
2861
|
const i = document.createElement("p"), e = document.createElement("div");
|
|
2862
2862
|
ru(i, {
|
|
2863
2863
|
width: "100%",
|
|
@@ -2874,7 +2874,7 @@ function Sb() {
|
|
|
2874
2874
|
const t = i.offsetWidth;
|
|
2875
2875
|
e.style.overflow = "scroll";
|
|
2876
2876
|
let n = i.offsetWidth;
|
|
2877
|
-
return t === n && (n = e.clientWidth), e.remove(),
|
|
2877
|
+
return t === n && (n = e.clientWidth), e.remove(), as = t - n, as;
|
|
2878
2878
|
}
|
|
2879
2879
|
function Cb(i, e = !0) {
|
|
2880
2880
|
return !i || i.nodeType !== Node.ELEMENT_NODE ? !1 : e ? i.scrollHeight > i.clientHeight && (i.classList.contains("scroll") || i.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(i)["overflow-y"])) : i.scrollWidth > i.clientWidth && (i.classList.contains("scroll") || i.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(i)["overflow-x"]));
|
|
@@ -2896,7 +2896,7 @@ function Um(i) {
|
|
|
2896
2896
|
function Km(i) {
|
|
2897
2897
|
Tt.is.desktop === !0 && (er.push(i), er.length === 1 && Um("addEventListener"));
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2899
|
+
function il(i) {
|
|
2900
2900
|
const e = er.indexOf(i);
|
|
2901
2901
|
e !== -1 && (er.splice(e, 1), er.length === 0 && Um("removeEventListener"));
|
|
2902
2902
|
}
|
|
@@ -2911,8 +2911,8 @@ function ou(i) {
|
|
|
2911
2911
|
const e = tr.indexOf(i);
|
|
2912
2912
|
e !== -1 && (tr.splice(e, 1), tr.length === 0 && document.body.removeEventListener("focusin", Ym));
|
|
2913
2913
|
}
|
|
2914
|
-
const { notPassiveCapture:
|
|
2915
|
-
function
|
|
2914
|
+
const { notPassiveCapture: nl } = At, ir = [];
|
|
2915
|
+
function rl(i) {
|
|
2916
2916
|
const e = i.target;
|
|
2917
2917
|
if (e === void 0 || e.nodeType === 8 || e.classList.contains("no-pointer-events") === !0) return;
|
|
2918
2918
|
let t = Ar.length - 1;
|
|
@@ -2936,14 +2936,14 @@ function nl(i) {
|
|
|
2936
2936
|
}
|
|
2937
2937
|
}
|
|
2938
2938
|
function Jm(i) {
|
|
2939
|
-
ir.push(i), ir.length === 1 && (document.addEventListener("mousedown",
|
|
2939
|
+
ir.push(i), ir.length === 1 && (document.addEventListener("mousedown", rl, nl), document.addEventListener("touchstart", rl, nl));
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function ol(i) {
|
|
2942
2942
|
const e = ir.findIndex((t) => t === i);
|
|
2943
|
-
e !== -1 && (ir.splice(e, 1), ir.length === 0 && (document.removeEventListener("mousedown",
|
|
2943
|
+
e !== -1 && (ir.splice(e, 1), ir.length === 0 && (document.removeEventListener("mousedown", rl, nl), document.removeEventListener("touchstart", rl, nl)));
|
|
2944
2944
|
}
|
|
2945
2945
|
let Bh, Rh;
|
|
2946
|
-
function
|
|
2946
|
+
function sl(i) {
|
|
2947
2947
|
const e = i.split(" ");
|
|
2948
2948
|
return e.length !== 2 ? !1 : ["top", "center", "bottom"].includes(e[0]) !== !0 ? (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : ["left", "middle", "right", "start", "end"].includes(e[1]) !== !0 ? (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : !0;
|
|
2949
2949
|
}
|
|
@@ -2959,7 +2959,7 @@ const su = {
|
|
|
2959
2959
|
["left", "middle", "right"].forEach((i) => {
|
|
2960
2960
|
su[`${i}#ltr`] = i, su[`${i}#rtl`] = i;
|
|
2961
2961
|
});
|
|
2962
|
-
function
|
|
2962
|
+
function ll(i, e) {
|
|
2963
2963
|
const t = i.split(" ");
|
|
2964
2964
|
return {
|
|
2965
2965
|
vertical: t[0],
|
|
@@ -3121,11 +3121,11 @@ const $m = Je({
|
|
|
3121
3121
|
square: Boolean,
|
|
3122
3122
|
anchor: {
|
|
3123
3123
|
type: String,
|
|
3124
|
-
validator:
|
|
3124
|
+
validator: sl
|
|
3125
3125
|
},
|
|
3126
3126
|
self: {
|
|
3127
3127
|
type: String,
|
|
3128
|
-
validator:
|
|
3128
|
+
validator: sl
|
|
3129
3129
|
},
|
|
3130
3130
|
offset: {
|
|
3131
3131
|
type: Array,
|
|
@@ -3154,7 +3154,7 @@ const $m = Je({
|
|
|
3154
3154
|
), m = Zi(i, c), { registerTick: p, removeTick: g } = Or(), { registerTimeout: y } = Co(), { transitionProps: k, transitionStyle: v } = kc(i), { localScrollTarget: x, changeScrollEvent: C, unconfigureScrollTarget: E } = zm(i, N), { anchorEl: T, canShow: H } = bc({ showing: f }), { hide: V } = jl({
|
|
3155
3155
|
showing: f,
|
|
3156
3156
|
canShow: H,
|
|
3157
|
-
handleShow:
|
|
3157
|
+
handleShow: ie,
|
|
3158
3158
|
handleHide: I,
|
|
3159
3159
|
hideOnRouteChange: d,
|
|
3160
3160
|
processOnMount: !0
|
|
@@ -3167,25 +3167,25 @@ const $m = Je({
|
|
|
3167
3167
|
(Z.type === "touchstart" || Z.target.classList.contains("q-dialog__backdrop")) && ct(Z), !0;
|
|
3168
3168
|
}
|
|
3169
3169
|
}, P = b(
|
|
3170
|
-
() =>
|
|
3170
|
+
() => ll(
|
|
3171
3171
|
i.anchor || (i.cover === !0 ? "center middle" : "bottom start"),
|
|
3172
3172
|
c.lang.rtl
|
|
3173
3173
|
)
|
|
3174
|
-
), F = b(() => i.cover === !0 ? P.value :
|
|
3174
|
+
), F = b(() => i.cover === !0 ? P.value : ll(i.self || "top start", c.lang.rtl)), Y = b(
|
|
3175
3175
|
() => (i.square === !0 ? " q-menu--square" : "") + (m.value === !0 ? " q-menu--dark q-dark" : "")
|
|
3176
3176
|
), M = b(() => i.autoClose === !0 ? { onClick: U } : {}), q = b(
|
|
3177
3177
|
() => f.value === !0 && i.persistent !== !0
|
|
3178
3178
|
);
|
|
3179
3179
|
ve(q, (Z) => {
|
|
3180
|
-
Z === !0 ? (Km(re), Jm(O)) : (
|
|
3180
|
+
Z === !0 ? (Km(re), Jm(O)) : (il(re), ol(O));
|
|
3181
3181
|
});
|
|
3182
3182
|
function z() {
|
|
3183
|
-
|
|
3183
|
+
Vl(() => {
|
|
3184
3184
|
let Z = h.value;
|
|
3185
3185
|
Z && Z.contains(document.activeElement) !== !0 && (Z = Z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || Z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || Z.querySelector("[autofocus], [data-autofocus]") || Z, Z.focus({ preventScroll: !0 }));
|
|
3186
3186
|
});
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3188
|
+
function ie(Z) {
|
|
3189
3189
|
if (r = i.noRefocus === !1 ? document.activeElement : null, Gm(G), B(), N(), o = void 0, Z !== void 0 && (i.touchPosition || i.contextMenu)) {
|
|
3190
3190
|
const et = Lr(Z);
|
|
3191
3191
|
if (et.left !== void 0) {
|
|
@@ -3209,7 +3209,7 @@ const $m = Je({
|
|
|
3209
3209
|
}, i.transitionDuration);
|
|
3210
3210
|
}
|
|
3211
3211
|
function w(Z) {
|
|
3212
|
-
o = void 0, s !== void 0 && (s(), s = void 0), (Z === !0 || f.value === !0) && (ou(G), E(),
|
|
3212
|
+
o = void 0, s !== void 0 && (s(), s = void 0), (Z === !0 || f.value === !0) && (ou(G), E(), ol(O), il(re)), Z !== !0 && (r = null);
|
|
3213
3213
|
}
|
|
3214
3214
|
function N() {
|
|
3215
3215
|
(T.value !== null || i.scrollTarget !== void 0) && (x.value = Qm(T.value, i.scrollTarget), C(x.value, le));
|
|
@@ -3290,7 +3290,7 @@ function Bb(i) {
|
|
|
3290
3290
|
function Fh(i) {
|
|
3291
3291
|
i.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
|
|
3292
3292
|
}
|
|
3293
|
-
function
|
|
3293
|
+
function us(i) {
|
|
3294
3294
|
ya !== !0 && (ya = !0, requestAnimationFrame(() => {
|
|
3295
3295
|
ya = !1;
|
|
3296
3296
|
const { height: e } = i.target, { clientHeight: t, scrollTop: n } = document.scrollingElement;
|
|
@@ -3301,9 +3301,9 @@ function Nh(i) {
|
|
|
3301
3301
|
const e = document.body, t = window.visualViewport !== void 0;
|
|
3302
3302
|
if (i === "add") {
|
|
3303
3303
|
const { overflowY: n, overflowX: r } = window.getComputedStyle(e);
|
|
3304
|
-
pa = wb(window), va = kb(window), Lh = e.style.left, Ih = e.style.top, Vh = window.location.href, e.style.left = `-${pa}px`, e.style.top = `-${va}px`, r !== "hidden" && (r === "scroll" || e.scrollWidth > window.innerWidth) && e.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || e.scrollHeight > window.innerHeight) && e.classList.add("q-body--force-scrollbar-y"), e.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, Tt.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize",
|
|
3304
|
+
pa = wb(window), va = kb(window), Lh = e.style.left, Ih = e.style.top, Vh = window.location.href, e.style.left = `-${pa}px`, e.style.top = `-${va}px`, r !== "hidden" && (r === "scroll" || e.scrollWidth > window.innerWidth) && e.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || e.scrollHeight > window.innerHeight) && e.classList.add("q-body--force-scrollbar-y"), e.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, Tt.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", us, At.passiveCapture), window.visualViewport.addEventListener("scroll", us, At.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Fh, At.passiveCapture));
|
|
3305
3305
|
}
|
|
3306
|
-
Tt.is.desktop === !0 && Tt.is.mac === !0 && window[`${i}EventListener`]("wheel", _b, At.notPassive), i === "remove" && (Tt.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize",
|
|
3306
|
+
Tt.is.desktop === !0 && Tt.is.mac === !0 && window[`${i}EventListener`]("wheel", _b, At.notPassive), i === "remove" && (Tt.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", us, At.passiveCapture), window.visualViewport.removeEventListener("scroll", us, At.passiveCapture)) : window.removeEventListener("scroll", Fh, At.passiveCapture)), e.classList.remove("q-body--prevent-scroll"), e.classList.remove("q-body--force-scrollbar-x"), e.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, e.style.left = Lh, e.style.top = Ih, window.location.href === Vh && window.scrollTo(pa, va), ro = void 0);
|
|
3307
3307
|
}
|
|
3308
3308
|
function Rb(i) {
|
|
3309
3309
|
let e = "add";
|
|
@@ -3332,7 +3332,7 @@ function Eb() {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
};
|
|
3334
3334
|
}
|
|
3335
|
-
let
|
|
3335
|
+
let cs = 0;
|
|
3336
3336
|
const Lb = {
|
|
3337
3337
|
standard: "fixed-full flex-center",
|
|
3338
3338
|
top: "fixed-top justify-center",
|
|
@@ -3406,14 +3406,14 @@ const Lb = {
|
|
|
3406
3406
|
Pb(s);
|
|
3407
3407
|
const V = b(
|
|
3408
3408
|
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${i.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${i.position} ${Lb[i.position]}` + (l.value === !0 ? " q-dialog__inner--animating" : "") + (i.fullWidth === !0 ? " q-dialog__inner--fullwidth" : "") + (i.fullHeight === !0 ? " q-dialog__inner--fullheight" : "") + (i.square === !0 ? " q-dialog__inner--square" : "")
|
|
3409
|
-
), B = b(() => s.value === !0 && i.seamless !== !0), D = b(() => i.autoClose === !0 ? { onClick:
|
|
3409
|
+
), B = b(() => s.value === !0 && i.seamless !== !0), D = b(() => i.autoClose === !0 ? { onClick: ie } : {}), R = b(() => [
|
|
3410
3410
|
`q-dialog fullscreen no-pointer-events q-dialog--${B.value === !0 ? "modal" : "seamless"}`,
|
|
3411
3411
|
n.class
|
|
3412
3412
|
]);
|
|
3413
3413
|
ve(() => i.maximized, (U) => {
|
|
3414
3414
|
s.value === !0 && z(U);
|
|
3415
3415
|
}), ve(B, (U) => {
|
|
3416
|
-
d(U), U === !0 ? (Gm(w), Km(M)) : (ou(w),
|
|
3416
|
+
d(U), U === !0 ? (Gm(w), Km(M)) : (ou(w), il(M));
|
|
3417
3417
|
});
|
|
3418
3418
|
function O(U) {
|
|
3419
3419
|
var G;
|
|
@@ -3437,7 +3437,7 @@ const Lb = {
|
|
|
3437
3437
|
}, i.transitionDuration);
|
|
3438
3438
|
}
|
|
3439
3439
|
function F(U) {
|
|
3440
|
-
|
|
3440
|
+
Vl(() => {
|
|
3441
3441
|
let G = o.value;
|
|
3442
3442
|
if (G !== null) {
|
|
3443
3443
|
if (U !== void 0) {
|
|
@@ -3462,12 +3462,12 @@ const Lb = {
|
|
|
3462
3462
|
i.seamless !== !0 && (i.persistent === !0 || i.noEscDismiss === !0 ? i.maximized !== !0 && i.noShake !== !0 && Y() : (t("escapeKey"), H()));
|
|
3463
3463
|
}
|
|
3464
3464
|
function q(U) {
|
|
3465
|
-
a !== null && (clearTimeout(a), a = null), (U === !0 || s.value === !0) && (z(!1), i.seamless !== !0 && (d(!1), ou(w),
|
|
3465
|
+
a !== null && (clearTimeout(a), a = null), (U === !0 || s.value === !0) && (z(!1), i.seamless !== !0 && (d(!1), ou(w), il(M))), U !== !0 && (u = null);
|
|
3466
3466
|
}
|
|
3467
3467
|
function z(U) {
|
|
3468
|
-
U === !0 ? c !== !0 && (
|
|
3468
|
+
U === !0 ? c !== !0 && (cs < 1 && document.body.classList.add("q-body--dialog"), cs++, c = !0) : c === !0 && (cs < 2 && document.body.classList.remove("q-body--dialog"), cs--, c = !1);
|
|
3469
3469
|
}
|
|
3470
|
-
function
|
|
3470
|
+
function ie(U) {
|
|
3471
3471
|
h !== !0 && (H(U), t("click", U));
|
|
3472
3472
|
}
|
|
3473
3473
|
function I(U) {
|
|
@@ -3871,11 +3871,11 @@ function Nb({
|
|
|
3871
3871
|
U0(() => {
|
|
3872
3872
|
Y();
|
|
3873
3873
|
});
|
|
3874
|
-
let
|
|
3874
|
+
let ie = !1;
|
|
3875
3875
|
return zo(() => {
|
|
3876
|
-
|
|
3876
|
+
ie = !0;
|
|
3877
3877
|
}), ac(() => {
|
|
3878
|
-
if (
|
|
3878
|
+
if (ie !== !0) return;
|
|
3879
3879
|
const I = e();
|
|
3880
3880
|
u !== void 0 && I !== void 0 && I !== null && I.nodeType !== 8 ? zh(
|
|
3881
3881
|
I,
|
|
@@ -3981,19 +3981,19 @@ function Fe(i, e = 2, t = "0") {
|
|
|
3981
3981
|
const n = "" + i;
|
|
3982
3982
|
return n.length >= e ? n : new Array(e - n.length + 1).join(t) + n;
|
|
3983
3983
|
}
|
|
3984
|
-
const Qh = (i) => ["add", "add-unique", "toggle"].includes(i), zb = ".*+?^${}()|[]\\", jb = Object.keys(
|
|
3984
|
+
const Qh = (i) => ["add", "add-unique", "toggle"].includes(i), zb = ".*+?^${}()|[]\\", jb = Object.keys(Fl);
|
|
3985
3985
|
function xa(i, e) {
|
|
3986
3986
|
if (typeof i == "function") return i;
|
|
3987
3987
|
const t = i !== void 0 ? i : e;
|
|
3988
3988
|
return (n) => n !== null && typeof n == "object" && t in n ? n[t] : n;
|
|
3989
3989
|
}
|
|
3990
|
-
const
|
|
3990
|
+
const Qo = Je({
|
|
3991
3991
|
name: "QSelect",
|
|
3992
3992
|
inheritAttrs: !1,
|
|
3993
3993
|
props: {
|
|
3994
3994
|
...jh,
|
|
3995
3995
|
...jo,
|
|
3996
|
-
...
|
|
3996
|
+
...Fl,
|
|
3997
3997
|
// override of useFieldProps > modelValue
|
|
3998
3998
|
modelValue: {
|
|
3999
3999
|
required: !0
|
|
@@ -4083,7 +4083,7 @@ const Wo = Je({
|
|
|
4083
4083
|
padVirtualScroll: M,
|
|
4084
4084
|
onVirtualScrollEvt: q,
|
|
4085
4085
|
scrollTo: z,
|
|
4086
|
-
setVirtualScrollSize:
|
|
4086
|
+
setVirtualScrollSize: ie
|
|
4087
4087
|
} = Nb({
|
|
4088
4088
|
virtualScrollLength: R,
|
|
4089
4089
|
getVirtualScrollTarget: gn,
|
|
@@ -4306,7 +4306,7 @@ const Wo = Je({
|
|
|
4306
4306
|
t("keypress", _);
|
|
4307
4307
|
}
|
|
4308
4308
|
function Rt(_) {
|
|
4309
|
-
if (t("keydown", _),
|
|
4309
|
+
if (t("keydown", _), Nl(_) === !0) return;
|
|
4310
4310
|
const he = a.value.length !== 0 && (i.newValueMode !== void 0 || i.onNewValue !== void 0), me = _.shiftKey !== !0 && i.disableTabSelection !== !0 && i.multiple !== !0 && (l.value !== -1 || he === !0);
|
|
4311
4311
|
if (_.keyCode === 27) {
|
|
4312
4312
|
ei(_);
|
|
@@ -4374,7 +4374,7 @@ const Wo = Je({
|
|
|
4374
4374
|
function gn() {
|
|
4375
4375
|
return Vn();
|
|
4376
4376
|
}
|
|
4377
|
-
function
|
|
4377
|
+
function ns() {
|
|
4378
4378
|
return i.hideSelected === !0 ? [] : e["selected-item"] !== void 0 ? Bt.value.map((_) => e["selected-item"](_)).slice() : e.selected !== void 0 ? [].concat(e.selected()) : i.useChips === !0 ? Bt.value.map((_, he) => A(Lm, {
|
|
4379
4379
|
key: "option-" + he,
|
|
4380
4380
|
removable: I.editable.value === !0 && ye.value(_.opt) !== !0,
|
|
@@ -4397,7 +4397,7 @@ const Wo = Je({
|
|
|
4397
4397
|
function en() {
|
|
4398
4398
|
if (Be.value === !0)
|
|
4399
4399
|
return e["no-option"] !== void 0 ? e["no-option"]({ inputValue: a.value }) : void 0;
|
|
4400
|
-
const _ = e.option !== void 0 ? e.option : (me) => A(
|
|
4400
|
+
const _ = e.option !== void 0 ? e.option : (me) => A(el, {
|
|
4401
4401
|
key: me.index,
|
|
4402
4402
|
...me.itemProps
|
|
4403
4403
|
}, () => A(
|
|
@@ -4500,7 +4500,7 @@ const Wo = Je({
|
|
|
4500
4500
|
ah(_), pe();
|
|
4501
4501
|
}
|
|
4502
4502
|
function sa() {
|
|
4503
|
-
|
|
4503
|
+
ie();
|
|
4504
4504
|
}
|
|
4505
4505
|
function S(_) {
|
|
4506
4506
|
var he;
|
|
@@ -4568,7 +4568,7 @@ const Wo = Je({
|
|
|
4568
4568
|
}
|
|
4569
4569
|
function Te() {
|
|
4570
4570
|
const _ = document.activeElement;
|
|
4571
|
-
(_ === null || _.id !== I.targetUid.value) && E.value !== null && E.value !== _ && E.value.focus(),
|
|
4571
|
+
(_ === null || _.id !== I.targetUid.value) && E.value !== null && E.value !== _ && E.value.focus(), ie();
|
|
4572
4572
|
}
|
|
4573
4573
|
function pe() {
|
|
4574
4574
|
s.value !== !0 && (l.value = -1, o.value === !0 && (o.value = !1), I.focused.value === !1 && (g !== null && (clearTimeout(g), g = null), I.innerLoading.value === !0 && (t("filterAbort"), I.innerLoading.value = !1, c.value = !1)));
|
|
@@ -4671,7 +4671,7 @@ const Wo = Je({
|
|
|
4671
4671
|
}
|
|
4672
4672
|
},
|
|
4673
4673
|
getControl: (_) => {
|
|
4674
|
-
const he =
|
|
4674
|
+
const he = ns(), me = _ === !0 || s.value !== !0 || m !== !0;
|
|
4675
4675
|
if (i.useInput === !0)
|
|
4676
4676
|
he.push(Jr(_, me));
|
|
4677
4677
|
else if (I.editable.value === !0) {
|
|
@@ -4749,7 +4749,7 @@ const Wo = Je({
|
|
|
4749
4749
|
label: t.label,
|
|
4750
4750
|
componentType: "select"
|
|
4751
4751
|
}), c = b(() => {
|
|
4752
|
-
const g =
|
|
4752
|
+
const g = Wo(
|
|
4753
4753
|
t.schema,
|
|
4754
4754
|
u == null ? void 0 : u.componentDefaults,
|
|
4755
4755
|
"select"
|
|
@@ -4799,7 +4799,7 @@ const Wo = Je({
|
|
|
4799
4799
|
}
|
|
4800
4800
|
});
|
|
4801
4801
|
}, get QSelect() {
|
|
4802
|
-
return
|
|
4802
|
+
return Qo;
|
|
4803
4803
|
} };
|
|
4804
4804
|
return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
|
|
4805
4805
|
}
|
|
@@ -4896,7 +4896,7 @@ function Xb(i, e) {
|
|
|
4896
4896
|
return i.flat === !0 ? "flat" : i.outline === !0 ? "outline" : i.push === !0 ? "push" : i.unelevated === !0 ? "unelevated" : e;
|
|
4897
4897
|
}
|
|
4898
4898
|
const $b = {
|
|
4899
|
-
...
|
|
4899
|
+
...Ll,
|
|
4900
4900
|
...Vm,
|
|
4901
4901
|
type: {
|
|
4902
4902
|
type: String,
|
|
@@ -4942,7 +4942,7 @@ const $b = {
|
|
|
4942
4942
|
round: Boolean
|
|
4943
4943
|
};
|
|
4944
4944
|
function e1(i) {
|
|
4945
|
-
const e =
|
|
4945
|
+
const e = Il(i, Kb), t = ng(i), { hasRouterLink: n, hasLink: r, linkTag: o, linkAttrs: s, navigateOnClick: l } = Fm({
|
|
4946
4946
|
fallbackTag: "button"
|
|
4947
4947
|
}), a = b(() => {
|
|
4948
4948
|
const g = i.fab === !1 && i.fabMini === !1 ? e.value : {};
|
|
@@ -5298,7 +5298,7 @@ function Gh(i, e, t) {
|
|
|
5298
5298
|
function n1(i) {
|
|
5299
5299
|
return r1(i) === 0;
|
|
5300
5300
|
}
|
|
5301
|
-
function
|
|
5301
|
+
function Fs(i, e) {
|
|
5302
5302
|
return e <= 6 ? 31 : e <= 11 || n1(i) ? 30 : 29;
|
|
5303
5303
|
}
|
|
5304
5304
|
function r1(i) {
|
|
@@ -5369,7 +5369,7 @@ function nt(i, e) {
|
|
|
5369
5369
|
function gi(i, e) {
|
|
5370
5370
|
return i - ~~(i / e) * e;
|
|
5371
5371
|
}
|
|
5372
|
-
const l1 = ["gregorian", "persian"],
|
|
5372
|
+
const l1 = ["gregorian", "persian"], al = {
|
|
5373
5373
|
// should define modelValue in the target component
|
|
5374
5374
|
mask: {
|
|
5375
5375
|
type: String
|
|
@@ -5707,7 +5707,7 @@ function oo(i, e, t, n, r) {
|
|
|
5707
5707
|
if (c.D !== void 0) {
|
|
5708
5708
|
if (o.day = parseInt(h[c.D], 10), o.year === null || o.month === null || o.day < 1)
|
|
5709
5709
|
return o;
|
|
5710
|
-
const d = n !== "persian" ? new Date(o.year, o.month, 0).getDate() :
|
|
5710
|
+
const d = n !== "persian" ? new Date(o.year, o.month, 0).getDate() : Fs(o.year, o.month);
|
|
5711
5711
|
if (o.day > d)
|
|
5712
5712
|
return o;
|
|
5713
5713
|
}
|
|
@@ -5750,7 +5750,7 @@ function rn(i, e, t) {
|
|
|
5750
5750
|
}
|
|
5751
5751
|
return n;
|
|
5752
5752
|
}
|
|
5753
|
-
function
|
|
5753
|
+
function hs(i, e, t) {
|
|
5754
5754
|
return (i.getTime() - i.getTimezoneOffset() * au - (e.getTime() - e.getTimezoneOffset() * au)) / t;
|
|
5755
5755
|
}
|
|
5756
5756
|
function hg(i, e, t = "days") {
|
|
@@ -5765,16 +5765,16 @@ function hg(i, e, t = "days") {
|
|
|
5765
5765
|
case "days":
|
|
5766
5766
|
case "day":
|
|
5767
5767
|
case "date":
|
|
5768
|
-
return
|
|
5768
|
+
return hs(rn(n, "day"), rn(r, "day"), ag);
|
|
5769
5769
|
case "hours":
|
|
5770
5770
|
case "hour":
|
|
5771
|
-
return
|
|
5771
|
+
return hs(rn(n, "hour"), rn(r, "hour"), a1);
|
|
5772
5772
|
case "minutes":
|
|
5773
5773
|
case "minute":
|
|
5774
|
-
return
|
|
5774
|
+
return hs(rn(n, "minute"), rn(r, "minute"), au);
|
|
5775
5775
|
case "seconds":
|
|
5776
5776
|
case "second":
|
|
5777
|
-
return
|
|
5777
|
+
return hs(rn(n, "second"), rn(r, "second"), 1e3);
|
|
5778
5778
|
}
|
|
5779
5779
|
}
|
|
5780
5780
|
function Sa(i) {
|
|
@@ -5985,7 +5985,7 @@ function pn(i) {
|
|
|
5985
5985
|
const dg = Je({
|
|
5986
5986
|
name: "QDate",
|
|
5987
5987
|
props: {
|
|
5988
|
-
...
|
|
5988
|
+
...al,
|
|
5989
5989
|
...jo,
|
|
5990
5990
|
...$i,
|
|
5991
5991
|
modelValue: {
|
|
@@ -5997,7 +5997,7 @@ const dg = Je({
|
|
|
5997
5997
|
title: String,
|
|
5998
5998
|
subtitle: String,
|
|
5999
5999
|
mask: {
|
|
6000
|
-
...
|
|
6000
|
+
...al.mask,
|
|
6001
6001
|
// this mask is forced
|
|
6002
6002
|
// when using persian calendar
|
|
6003
6003
|
default: "YYYY/MM/DD"
|
|
@@ -6053,7 +6053,7 @@ const dg = Je({
|
|
|
6053
6053
|
}), z = b(() => i.calendar !== "persian" ? (S) => new Date(S.year, S.month - 1, S.day) : (S) => {
|
|
6054
6054
|
const L = Gh(S.year, S.month, S.day);
|
|
6055
6055
|
return new Date(L.gy, L.gm - 1, L.gd);
|
|
6056
|
-
}),
|
|
6056
|
+
}), ie = b(() => i.calendar === "persian" ? nn : (S, L, W) => fg(
|
|
6057
6057
|
new Date(
|
|
6058
6058
|
S.year,
|
|
6059
6059
|
S.month - 1,
|
|
@@ -6106,7 +6106,7 @@ const dg = Je({
|
|
|
6106
6106
|
return L > 0 ? S.slice(L, 7).concat(S.slice(0, L)) : S;
|
|
6107
6107
|
}), Z = b(() => {
|
|
6108
6108
|
const S = x.value;
|
|
6109
|
-
return i.calendar !== "persian" ? new Date(S.year, S.month, 0).getDate() :
|
|
6109
|
+
return i.calendar !== "persian" ? new Date(S.year, S.month, 0).getDate() : Fs(S.year, S.month);
|
|
6110
6110
|
}), et = b(() => typeof i.eventColor == "function" ? i.eventColor : () => i.eventColor), Ie = b(() => {
|
|
6111
6111
|
if (i.navigationMinYearMonth === void 0)
|
|
6112
6112
|
return null;
|
|
@@ -6189,7 +6189,7 @@ const dg = Je({
|
|
|
6189
6189
|
const fe = Gh(W, oe, 1);
|
|
6190
6190
|
S = new Date(fe.gy, fe.gm - 1, fe.gd);
|
|
6191
6191
|
let Te = oe - 1, pe = W;
|
|
6192
|
-
Te === 0 && (Te = 12, pe--), L =
|
|
6192
|
+
Te === 0 && (Te = 12, pe--), L = Fs(pe, Te);
|
|
6193
6193
|
}
|
|
6194
6194
|
return {
|
|
6195
6195
|
days: S.getDay() - le.value - 1,
|
|
@@ -6410,20 +6410,20 @@ const dg = Je({
|
|
|
6410
6410
|
}));
|
|
6411
6411
|
}
|
|
6412
6412
|
function Vn(S, L, W) {
|
|
6413
|
-
const oe = S !== null && S.length === 1 && i.multiple === !1 ? S[0] : S, { reason: fe, details: Te } =
|
|
6413
|
+
const oe = S !== null && S.length === 1 && i.multiple === !1 ? S[0] : S, { reason: fe, details: Te } = ns(L, W);
|
|
6414
6414
|
ye(oe), t("update:modelValue", oe, fe, Te);
|
|
6415
6415
|
}
|
|
6416
6416
|
function gn(S) {
|
|
6417
6417
|
const L = M.value[0] !== void 0 && M.value[0].dateHash !== null ? { ...M.value[0] } : { ...x.value };
|
|
6418
6418
|
rt(() => {
|
|
6419
6419
|
L.year = x.value.year, L.month = x.value.month;
|
|
6420
|
-
const W = i.calendar !== "persian" ? new Date(L.year, L.month, 0).getDate() :
|
|
6420
|
+
const W = i.calendar !== "persian" ? new Date(L.year, L.month, 0).getDate() : Fs(L.year, L.month);
|
|
6421
6421
|
L.day = Math.min(Math.max(1, L.day), W);
|
|
6422
|
-
const oe = en(L), { details: fe } =
|
|
6422
|
+
const oe = en(L), { details: fe } = ns("", L);
|
|
6423
6423
|
ye(oe), t("update:modelValue", oe, S, fe);
|
|
6424
6424
|
});
|
|
6425
6425
|
}
|
|
6426
|
-
function
|
|
6426
|
+
function ns(S, L) {
|
|
6427
6427
|
return L.from !== void 0 ? {
|
|
6428
6428
|
reason: `${S}-range`,
|
|
6429
6429
|
details: {
|
|
@@ -6437,7 +6437,7 @@ const dg = Je({
|
|
|
6437
6437
|
};
|
|
6438
6438
|
}
|
|
6439
6439
|
function en(S, L, W) {
|
|
6440
|
-
return S.from !== void 0 ? { from:
|
|
6440
|
+
return S.from !== void 0 ? { from: ie.value(S.from, L, W), to: ie.value(S.to, L, W) } : ie.value(S, L, W);
|
|
6441
6441
|
}
|
|
6442
6442
|
function Jr(S) {
|
|
6443
6443
|
let L;
|
|
@@ -7074,7 +7074,7 @@ const b1 = cc(
|
|
|
7074
7074
|
const u = r.event.mouse === !0, c = () => {
|
|
7075
7075
|
n(o, u);
|
|
7076
7076
|
let d;
|
|
7077
|
-
t.preserveCursor !== !0 && t.preservecursor !== !0 && (d = document.documentElement.style.cursor || "", document.documentElement.style.cursor = "grabbing"), u === !0 && document.body.classList.add("no-pointer-events--children"), document.body.classList.add("non-selectable"),
|
|
7077
|
+
t.preserveCursor !== !0 && t.preservecursor !== !0 && (d = document.documentElement.style.cursor || "", document.documentElement.style.cursor = "grabbing"), u === !0 && document.body.classList.add("no-pointer-events--children"), document.body.classList.add("non-selectable"), tl(), r.styleCleanup = (m) => {
|
|
7078
7078
|
if (r.styleCleanup = void 0, d !== void 0 && (document.documentElement.style.cursor = d), document.body.classList.remove("non-selectable"), u === !0) {
|
|
7079
7079
|
const p = () => {
|
|
7080
7080
|
document.body.classList.remove("no-pointer-events--children");
|
|
@@ -7154,13 +7154,13 @@ const mg = Je({
|
|
|
7154
7154
|
props: {
|
|
7155
7155
|
...$i,
|
|
7156
7156
|
...jo,
|
|
7157
|
-
...
|
|
7157
|
+
...al,
|
|
7158
7158
|
modelValue: {
|
|
7159
7159
|
required: !0,
|
|
7160
7160
|
validator: (i) => typeof i == "string" || i === null
|
|
7161
7161
|
},
|
|
7162
7162
|
mask: {
|
|
7163
|
-
...
|
|
7163
|
+
...al.mask,
|
|
7164
7164
|
default: null
|
|
7165
7165
|
},
|
|
7166
7166
|
format24h: {
|
|
@@ -7229,7 +7229,7 @@ const mg = Je({
|
|
|
7229
7229
|
Nt.push({ val: Rt, index: tt, disable: Vn, label: gn });
|
|
7230
7230
|
}
|
|
7231
7231
|
return Nt;
|
|
7232
|
-
}),
|
|
7232
|
+
}), ie = b(() => [[
|
|
7233
7233
|
b1,
|
|
7234
7234
|
Z,
|
|
7235
7235
|
void 0,
|
|
@@ -7571,7 +7571,7 @@ const mg = Je({
|
|
|
7571
7571
|
}, [A("span", $.label)]))
|
|
7572
7572
|
])
|
|
7573
7573
|
]),
|
|
7574
|
-
|
|
7574
|
+
ie.value
|
|
7575
7575
|
)
|
|
7576
7576
|
])
|
|
7577
7577
|
])),
|
|
@@ -8125,13 +8125,13 @@ const of = /* @__PURE__ */ Kt(O1, [["render", D1], ["__scopeId", "data-v-76abc7a
|
|
|
8125
8125
|
t("afterHide");
|
|
8126
8126
|
}
|
|
8127
8127
|
function D() {
|
|
8128
|
-
h === void 0 && (h =
|
|
8128
|
+
h === void 0 && (h = Zs()), o.value === !0 && (zn[i.group] = h);
|
|
8129
8129
|
const M = ve(o, (z) => {
|
|
8130
8130
|
z === !0 ? zn[i.group] = h : zn[i.group] === h && delete zn[i.group];
|
|
8131
8131
|
}), q = ve(
|
|
8132
8132
|
() => zn[i.group],
|
|
8133
|
-
(z,
|
|
8134
|
-
|
|
8133
|
+
(z, ie) => {
|
|
8134
|
+
ie === h && z !== void 0 && z !== h && u();
|
|
8135
8135
|
}
|
|
8136
8136
|
);
|
|
8137
8137
|
f = () => {
|
|
@@ -8194,7 +8194,7 @@ const of = /* @__PURE__ */ Kt(O1, [["render", D1], ["__scopeId", "data-v-76abc7a
|
|
|
8194
8194
|
return y.value === !0 && (M.clickable = !0, M.onClick = E, Object.assign(
|
|
8195
8195
|
M,
|
|
8196
8196
|
p.value === !0 ? g.value : C.value
|
|
8197
|
-
)), A(
|
|
8197
|
+
)), A(el, M, O);
|
|
8198
8198
|
}
|
|
8199
8199
|
function F() {
|
|
8200
8200
|
return Ln(
|
|
@@ -8292,7 +8292,7 @@ const of = /* @__PURE__ */ Kt(O1, [["render", D1], ["__scopeId", "data-v-76abc7a
|
|
|
8292
8292
|
}), g = { props: t, label: n, hint: r, errorMessage: o, required: s, fieldId: l, fieldGap: a, formContext: u, defaultOpened: c, showOptionalIndicator: h, sectionStyle: f, sectionStyleClass: d, quasarProps: m, properties: p, get QExpansionItem() {
|
|
8293
8293
|
return _1;
|
|
8294
8294
|
}, get FieldRenderer() {
|
|
8295
|
-
return
|
|
8295
|
+
return El;
|
|
8296
8296
|
} };
|
|
8297
8297
|
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
8298
8298
|
}
|
|
@@ -8391,12 +8391,12 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8391
8391
|
anchor: {
|
|
8392
8392
|
type: String,
|
|
8393
8393
|
default: "bottom middle",
|
|
8394
|
-
validator:
|
|
8394
|
+
validator: sl
|
|
8395
8395
|
},
|
|
8396
8396
|
self: {
|
|
8397
8397
|
type: String,
|
|
8398
8398
|
default: "top middle",
|
|
8399
|
-
validator:
|
|
8399
|
+
validator: sl
|
|
8400
8400
|
},
|
|
8401
8401
|
offset: {
|
|
8402
8402
|
type: Array,
|
|
@@ -8419,7 +8419,7 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8419
8419
|
],
|
|
8420
8420
|
setup(i, { slots: e, emit: t, attrs: n }) {
|
|
8421
8421
|
let r, o;
|
|
8422
|
-
const s = je(), { proxy: { $q: l } } = s, a = J(null), u = J(!1), c = b(() =>
|
|
8422
|
+
const s = je(), { proxy: { $q: l } } = s, a = J(null), u = J(!1), c = b(() => ll(i.anchor, l.lang.rtl)), h = b(() => ll(i.self, l.lang.rtl)), f = b(() => i.persistent !== !0), { registerTick: d, removeTick: m } = Or(), { registerTimeout: p } = Co(), { transitionProps: g, transitionStyle: y } = kc(i), { localScrollTarget: k, changeScrollEvent: v, unconfigureScrollTarget: x } = zm(i, ie), { anchorEl: C, canShow: E, anchorEvents: T } = bc({ showing: u, configureAnchorEl: z }), { show: H, hide: V } = jl({
|
|
8423
8423
|
showing: u,
|
|
8424
8424
|
canShow: E,
|
|
8425
8425
|
handleShow: O,
|
|
@@ -8444,14 +8444,14 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8444
8444
|
)
|
|
8445
8445
|
);
|
|
8446
8446
|
ve(U, (G) => {
|
|
8447
|
-
(G === !0 ? Jm :
|
|
8447
|
+
(G === !0 ? Jm : ol)(N);
|
|
8448
8448
|
}), ht(() => {
|
|
8449
|
-
|
|
8449
|
+
ol(N);
|
|
8450
8450
|
});
|
|
8451
8451
|
}
|
|
8452
8452
|
function O(N) {
|
|
8453
8453
|
B(), d(() => {
|
|
8454
|
-
o = new MutationObserver(() => Y()), o.observe(a.value, { attributes: !1, childList: !0, characterData: !0, subtree: !0 }), Y(),
|
|
8454
|
+
o = new MutationObserver(() => Y()), o.observe(a.value, { attributes: !1, childList: !0, characterData: !0, subtree: !0 }), Y(), ie();
|
|
8455
8455
|
}), r === void 0 && (r = ve(
|
|
8456
8456
|
() => l.screen.width + "|" + l.screen.height + "|" + i.self + "|" + i.anchor + "|" + l.lang.rtl,
|
|
8457
8457
|
Y
|
|
@@ -8480,7 +8480,7 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8480
8480
|
}
|
|
8481
8481
|
function M(N) {
|
|
8482
8482
|
if (l.platform.is.mobile === !0) {
|
|
8483
|
-
|
|
8483
|
+
tl(), document.body.classList.add("non-selectable");
|
|
8484
8484
|
const U = C.value, G = ["touchmove", "touchcancel", "touchend", "click"].map((re) => [U, re, "delayHide", "passiveCapture"]);
|
|
8485
8485
|
ln(T, "tooltipTemp", G);
|
|
8486
8486
|
}
|
|
@@ -8489,7 +8489,7 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8489
8489
|
}, i.delay);
|
|
8490
8490
|
}
|
|
8491
8491
|
function q(N) {
|
|
8492
|
-
l.platform.is.mobile === !0 && (Zn(T, "tooltipTemp"),
|
|
8492
|
+
l.platform.is.mobile === !0 && (Zn(T, "tooltipTemp"), tl(), setTimeout(() => {
|
|
8493
8493
|
document.body.classList.remove("non-selectable");
|
|
8494
8494
|
}, 10)), p(() => {
|
|
8495
8495
|
V(N);
|
|
@@ -8505,7 +8505,7 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8505
8505
|
];
|
|
8506
8506
|
ln(T, "anchor", N);
|
|
8507
8507
|
}
|
|
8508
|
-
function
|
|
8508
|
+
function ie() {
|
|
8509
8509
|
if (C.value !== null || i.scrollTarget !== void 0) {
|
|
8510
8510
|
k.value = Qm(C.value, i.scrollTarget);
|
|
8511
8511
|
const N = i.noParentEvent === !0 ? Y : V;
|
|
@@ -8547,7 +8547,7 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8547
8547
|
);
|
|
8548
8548
|
return () => A(i.tag, { class: t.value }, qt(e.default));
|
|
8549
8549
|
}
|
|
8550
|
-
}),
|
|
8550
|
+
}), Ns = new mm(), N1 = /* @__PURE__ */ Pt({
|
|
8551
8551
|
__name: "QuasarArrayField",
|
|
8552
8552
|
props: {
|
|
8553
8553
|
schema: { type: Object, required: !0 },
|
|
@@ -8618,7 +8618,7 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8618
8618
|
set: (V) => n.value = V
|
|
8619
8619
|
}), y = b(() => Array.isArray(t.schema.items) ? t.schema.items[0] : t.schema.items), k = () => {
|
|
8620
8620
|
if (!y.value) return;
|
|
8621
|
-
const V =
|
|
8621
|
+
const V = Ns.getDefaultValue(y.value);
|
|
8622
8622
|
n.value = [...g.value, V];
|
|
8623
8623
|
}, v = (V) => {
|
|
8624
8624
|
const B = [...g.value];
|
|
@@ -8651,7 +8651,7 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8651
8651
|
}, get QBtn() {
|
|
8652
8652
|
return It;
|
|
8653
8653
|
}, get FieldRenderer() {
|
|
8654
|
-
return
|
|
8654
|
+
return El;
|
|
8655
8655
|
} };
|
|
8656
8656
|
return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
|
|
8657
8657
|
}
|
|
@@ -9420,7 +9420,7 @@ class pt extends Ne {
|
|
|
9420
9420
|
decompose(e, t, n, r) {
|
|
9421
9421
|
let o = e <= 0 && t >= this.length ? this : new pt(ff(this.text, e, t), Math.min(t, this.length) - Math.max(0, e));
|
|
9422
9422
|
if (r & 1) {
|
|
9423
|
-
let s = n.pop(), l =
|
|
9423
|
+
let s = n.pop(), l = Hs(o.text, s.text.slice(), 0, o.length);
|
|
9424
9424
|
if (l.length <= 32)
|
|
9425
9425
|
n.push(new pt(l, s.length + o.length));
|
|
9426
9426
|
else {
|
|
@@ -9434,7 +9434,7 @@ class pt extends Ne {
|
|
|
9434
9434
|
if (!(n instanceof pt))
|
|
9435
9435
|
return super.replace(e, t, n);
|
|
9436
9436
|
[e, t] = Vr(this, e, t);
|
|
9437
|
-
let r =
|
|
9437
|
+
let r = Hs(this.text, Hs(n.text, ff(this.text, 0, e)), t), o = this.length + n.length - (t - e);
|
|
9438
9438
|
return r.length <= 32 ? new pt(r, o) : zi.from(pt.split(r, []), o);
|
|
9439
9439
|
}
|
|
9440
9440
|
sliceString(e, t = this.length, n = `
|
|
@@ -9565,7 +9565,7 @@ function vx(i) {
|
|
|
9565
9565
|
e += t.length + 1;
|
|
9566
9566
|
return e;
|
|
9567
9567
|
}
|
|
9568
|
-
function
|
|
9568
|
+
function Hs(i, e, t = 0, n = 1e9) {
|
|
9569
9569
|
for (let r = 0, o = 0, s = !0; o < i.length && r <= n; o++) {
|
|
9570
9570
|
let l = i[o], a = r + l.length;
|
|
9571
9571
|
a >= t && (a > n && (l = l.slice(0, n - r)), r < t && (l = l.slice(t - r)), s ? (e[e.length - 1] += l, s = !1) : e.push(l)), r = a + 1;
|
|
@@ -9573,7 +9573,7 @@ function Ns(i, e, t = 0, n = 1e9) {
|
|
|
9573
9573
|
return e;
|
|
9574
9574
|
}
|
|
9575
9575
|
function ff(i, e, t) {
|
|
9576
|
-
return
|
|
9576
|
+
return Hs(i, [""], e, t);
|
|
9577
9577
|
}
|
|
9578
9578
|
class mo {
|
|
9579
9579
|
constructor(e, t = 1) {
|
|
@@ -10398,7 +10398,7 @@ class de {
|
|
|
10398
10398
|
Returns an extension that adds the given value to this facet.
|
|
10399
10399
|
*/
|
|
10400
10400
|
of(e) {
|
|
10401
|
-
return new
|
|
10401
|
+
return new zs([], this, 0, e);
|
|
10402
10402
|
}
|
|
10403
10403
|
/**
|
|
10404
10404
|
Create an extension that computes a value for the facet from a
|
|
@@ -10412,7 +10412,7 @@ class de {
|
|
|
10412
10412
|
compute(e, t) {
|
|
10413
10413
|
if (this.isStatic)
|
|
10414
10414
|
throw new Error("Can't compute a static facet");
|
|
10415
|
-
return new
|
|
10415
|
+
return new zs(e, this, 1, t);
|
|
10416
10416
|
}
|
|
10417
10417
|
/**
|
|
10418
10418
|
Create an extension that computes zero or more values for this
|
|
@@ -10421,7 +10421,7 @@ class de {
|
|
|
10421
10421
|
computeN(e, t) {
|
|
10422
10422
|
if (this.isStatic)
|
|
10423
10423
|
throw new Error("Can't compute a static facet");
|
|
10424
|
-
return new
|
|
10424
|
+
return new zs(e, this, 2, t);
|
|
10425
10425
|
}
|
|
10426
10426
|
from(e, t) {
|
|
10427
10427
|
return t || (t = (n) => n), this.compute([e], (n) => t(n.field(e)));
|
|
@@ -10430,7 +10430,7 @@ class de {
|
|
|
10430
10430
|
function qc(i, e) {
|
|
10431
10431
|
return i == e || i.length == e.length && i.every((t, n) => t === e[n]);
|
|
10432
10432
|
}
|
|
10433
|
-
class
|
|
10433
|
+
class zs {
|
|
10434
10434
|
constructor(e, t, n, r) {
|
|
10435
10435
|
this.dependencies = e, this.facet = t, this.type = n, this.value = r, this.id = Dc++;
|
|
10436
10436
|
}
|
|
@@ -10454,7 +10454,7 @@ class Hs {
|
|
|
10454
10454
|
reconfigure: (h, f) => {
|
|
10455
10455
|
let d, m = f.config.address[o];
|
|
10456
10456
|
if (m != null) {
|
|
10457
|
-
let p =
|
|
10457
|
+
let p = cl(f, m);
|
|
10458
10458
|
if (this.dependencies.every((g) => g instanceof de ? f.facet(g) === h.facet(g) : g instanceof Mt ? f.field(g, !1) == h.field(g, !1) : !0) || (l ? df(d = n(h), p, r) : r(d = n(h), p)))
|
|
10459
10459
|
return h.values[s] = p, 0;
|
|
10460
10460
|
} else
|
|
@@ -10483,7 +10483,7 @@ function kx(i, e, t) {
|
|
|
10483
10483
|
function l(a) {
|
|
10484
10484
|
let u = [];
|
|
10485
10485
|
for (let c = 0; c < n.length; c++) {
|
|
10486
|
-
let h =
|
|
10486
|
+
let h = cl(a, n[c]);
|
|
10487
10487
|
if (r[c] == 2)
|
|
10488
10488
|
for (let f of h)
|
|
10489
10489
|
u.push(f);
|
|
@@ -10513,7 +10513,7 @@ function kx(i, e, t) {
|
|
|
10513
10513
|
}
|
|
10514
10514
|
};
|
|
10515
10515
|
}
|
|
10516
|
-
const
|
|
10516
|
+
const fs = /* @__PURE__ */ de.define({ static: !0 });
|
|
10517
10517
|
class Mt {
|
|
10518
10518
|
constructor(e, t, n, r, o) {
|
|
10519
10519
|
this.id = e, this.createF = t, this.updateF = n, this.compareF = r, this.spec = o, this.provides = void 0;
|
|
@@ -10526,7 +10526,7 @@ class Mt {
|
|
|
10526
10526
|
return e.provide && (t.provides = e.provide(t)), t;
|
|
10527
10527
|
}
|
|
10528
10528
|
create(e) {
|
|
10529
|
-
let t = e.facet(
|
|
10529
|
+
let t = e.facet(fs).find((n) => n.field == this);
|
|
10530
10530
|
return ((t == null ? void 0 : t.create) || this.createF)(e);
|
|
10531
10531
|
}
|
|
10532
10532
|
/**
|
|
@@ -10541,7 +10541,7 @@ class Mt {
|
|
|
10541
10541
|
return this.compareF(o, s) ? 0 : (n.values[t] = s, 1);
|
|
10542
10542
|
},
|
|
10543
10543
|
reconfigure: (n, r) => {
|
|
10544
|
-
let o = n.facet(
|
|
10544
|
+
let o = n.facet(fs), s = r.facet(fs), l;
|
|
10545
10545
|
return (l = o.find((a) => a.field == this)) && l != s.find((a) => a.field == this) ? (n.values[t] = l.create(n), 1) : r.config.address[this.id] != null ? (n.values[t] = r.field(this), 0) : (n.values[t] = this.create(n), 1);
|
|
10546
10546
|
}
|
|
10547
10547
|
};
|
|
@@ -10552,7 +10552,7 @@ class Mt {
|
|
|
10552
10552
|
non-default starting value for the field.
|
|
10553
10553
|
*/
|
|
10554
10554
|
init(e) {
|
|
10555
|
-
return [this,
|
|
10555
|
+
return [this, fs.of({ field: this, create: e })];
|
|
10556
10556
|
}
|
|
10557
10557
|
/**
|
|
10558
10558
|
State field instances can be used as
|
|
@@ -10598,7 +10598,7 @@ class Cg {
|
|
|
10598
10598
|
this.inner = e, this.prec = t;
|
|
10599
10599
|
}
|
|
10600
10600
|
}
|
|
10601
|
-
class
|
|
10601
|
+
class Uo {
|
|
10602
10602
|
/**
|
|
10603
10603
|
Create an instance of this compartment to add to your [state
|
|
10604
10604
|
configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
|
|
@@ -10611,7 +10611,7 @@ class Qo {
|
|
|
10611
10611
|
reconfigures this compartment.
|
|
10612
10612
|
*/
|
|
10613
10613
|
reconfigure(e) {
|
|
10614
|
-
return
|
|
10614
|
+
return Uo.reconfigure.of({ compartment: this, extension: e });
|
|
10615
10615
|
}
|
|
10616
10616
|
/**
|
|
10617
10617
|
Get the current content of the compartment in the state, or
|
|
@@ -10626,7 +10626,7 @@ class gu {
|
|
|
10626
10626
|
this.compartment = e, this.inner = t;
|
|
10627
10627
|
}
|
|
10628
10628
|
}
|
|
10629
|
-
class
|
|
10629
|
+
class ul {
|
|
10630
10630
|
constructor(e, t, n, r, o, s) {
|
|
10631
10631
|
for (this.base = e, this.compartments = t, this.dynamicSlots = n, this.address = r, this.staticValues = o, this.facets = s, this.statusTemplate = []; this.statusTemplate.length < n.length; )
|
|
10632
10632
|
this.statusTemplate.push(
|
|
@@ -10665,7 +10665,7 @@ class al {
|
|
|
10665
10665
|
}
|
|
10666
10666
|
}
|
|
10667
10667
|
let h = u.map((f) => f(l));
|
|
10668
|
-
return new
|
|
10668
|
+
return new ul(e, s, h, l, a, o);
|
|
10669
10669
|
}
|
|
10670
10670
|
}
|
|
10671
10671
|
function wx(i, e, t) {
|
|
@@ -10690,7 +10690,7 @@ function wx(i, e, t) {
|
|
|
10690
10690
|
o(s.inner, s.prec);
|
|
10691
10691
|
else if (s instanceof Mt)
|
|
10692
10692
|
n[l].push(s), s.provides && o(s.provides, l);
|
|
10693
|
-
else if (s instanceof
|
|
10693
|
+
else if (s instanceof zs)
|
|
10694
10694
|
n[l].push(s), s.facet.extensions && o(s.facet.extensions, Un.default);
|
|
10695
10695
|
else {
|
|
10696
10696
|
let u = s.extension;
|
|
@@ -10713,7 +10713,7 @@ function go(i, e) {
|
|
|
10713
10713
|
let r = i.computeSlot(i, i.config.dynamicSlots[t]);
|
|
10714
10714
|
return i.status[t] = 2 | r;
|
|
10715
10715
|
}
|
|
10716
|
-
function
|
|
10716
|
+
function cl(i, e) {
|
|
10717
10717
|
return e & 1 ? i.config.staticValues[e >> 1] : i.values[e >> 1];
|
|
10718
10718
|
}
|
|
10719
10719
|
const Mg = /* @__PURE__ */ de.define(), pu = /* @__PURE__ */ de.define({
|
|
@@ -11017,7 +11017,7 @@ class Ee {
|
|
|
11017
11017
|
throw new RangeError("Field is not present in this state");
|
|
11018
11018
|
return;
|
|
11019
11019
|
}
|
|
11020
|
-
return go(this, n),
|
|
11020
|
+
return go(this, n), cl(this, n);
|
|
11021
11021
|
}
|
|
11022
11022
|
/**
|
|
11023
11023
|
Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this
|
|
@@ -11043,9 +11043,9 @@ class Ee {
|
|
|
11043
11043
|
applyTransaction(e) {
|
|
11044
11044
|
let t = this.config, { base: n, compartments: r } = t;
|
|
11045
11045
|
for (let l of e.effects)
|
|
11046
|
-
l.is(
|
|
11046
|
+
l.is(Uo.reconfigure) ? (t && (r = /* @__PURE__ */ new Map(), t.compartments.forEach((a, u) => r.set(u, a)), t = null), r.set(l.value.compartment, l.value.extension)) : l.is(Ae.reconfigure) ? (t = null, n = l.value) : l.is(Ae.appendConfig) && (t = null, n = Dr(n).concat(l.value));
|
|
11047
11047
|
let o;
|
|
11048
|
-
t ? o = e.startState.values.slice() : (t =
|
|
11048
|
+
t ? o = e.startState.values.slice() : (t = ul.resolve(n, r, this), o = new Ee(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (a, u) => u.reconfigure(a, this), null).values);
|
|
11049
11049
|
let s = e.startState.facet(pu) ? e.newSelection : e.newSelection.asSingle();
|
|
11050
11050
|
new Ee(t, e.newDoc, s, o, (l, a) => a.update(l, e), e);
|
|
11051
11051
|
}
|
|
@@ -11112,7 +11112,7 @@ class Ee {
|
|
|
11112
11112
|
*/
|
|
11113
11113
|
facet(e) {
|
|
11114
11114
|
let t = this.config.address[e.id];
|
|
11115
|
-
return t == null ? e.default : (go(this, t),
|
|
11115
|
+
return t == null ? e.default : (go(this, t), cl(this, t));
|
|
11116
11116
|
}
|
|
11117
11117
|
/**
|
|
11118
11118
|
Convert this state to a JSON-serializable object. When custom
|
|
@@ -11161,7 +11161,7 @@ class Ee {
|
|
|
11161
11161
|
transactions.
|
|
11162
11162
|
*/
|
|
11163
11163
|
static create(e = {}) {
|
|
11164
|
-
let t =
|
|
11164
|
+
let t = ul.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Ne ? e.doc : Ne.of((e.doc || "").split(t.staticFacet(Ee.lineSeparator) || hu)), r = e.selection ? e.selection instanceof K ? e.selection : K.single(e.selection.anchor, e.selection.head) : K.single(0);
|
|
11165
11165
|
return Sg(r, n.length), t.staticFacet(pu) || (r = r.asSingle()), new Ee(t, n, r, t.dynamicSlots.map(() => null), (o, s) => s.create(o), null);
|
|
11166
11166
|
}
|
|
11167
11167
|
/**
|
|
@@ -11285,7 +11285,7 @@ Ee.languageData = Mg;
|
|
|
11285
11285
|
Ee.changeFilter = Og;
|
|
11286
11286
|
Ee.transactionFilter = Tg;
|
|
11287
11287
|
Ee.transactionExtender = Dg;
|
|
11288
|
-
|
|
11288
|
+
Uo.reconfigure = /* @__PURE__ */ Ae.define();
|
|
11289
11289
|
function Bi(i, e, t = {}) {
|
|
11290
11290
|
let n = {};
|
|
11291
11291
|
for (let r of i)
|
|
@@ -11758,13 +11758,13 @@ class eo {
|
|
|
11758
11758
|
this.cursor.forward(e, t);
|
|
11759
11759
|
}
|
|
11760
11760
|
removeActive(e) {
|
|
11761
|
-
|
|
11761
|
+
ds(this.active, e), ds(this.activeTo, e), ds(this.activeRank, e), this.minActive = pf(this.active, this.activeTo);
|
|
11762
11762
|
}
|
|
11763
11763
|
addActive(e) {
|
|
11764
11764
|
let t = 0, { value: n, to: r, rank: o } = this.cursor;
|
|
11765
11765
|
for (; t < this.activeRank.length && (o - this.activeRank[t] || r - this.activeTo[t]) > 0; )
|
|
11766
11766
|
t++;
|
|
11767
|
-
|
|
11767
|
+
ms(this.active, t, n), ms(this.activeTo, t, r), ms(this.activeRank, t, o), e && ms(e, t, this.cursor.from), this.minActive = pf(this.active, this.activeTo);
|
|
11768
11768
|
}
|
|
11769
11769
|
// After calling this, if `this.point` != null, the next range is a
|
|
11770
11770
|
// point. Otherwise, it's a regular range, covered by `this.active`.
|
|
@@ -11779,7 +11779,7 @@ class eo {
|
|
|
11779
11779
|
this.to = this.activeTo[r], this.endSide = this.active[r].endSide;
|
|
11780
11780
|
break;
|
|
11781
11781
|
}
|
|
11782
|
-
this.removeActive(r), n &&
|
|
11782
|
+
this.removeActive(r), n && ds(n, r);
|
|
11783
11783
|
} else if (this.cursor.value)
|
|
11784
11784
|
if (this.cursor.from > e) {
|
|
11785
11785
|
this.to = this.cursor.from, this.endSide = this.cursor.startSide;
|
|
@@ -11839,12 +11839,12 @@ function ku(i, e) {
|
|
|
11839
11839
|
return !1;
|
|
11840
11840
|
return !0;
|
|
11841
11841
|
}
|
|
11842
|
-
function
|
|
11842
|
+
function ds(i, e) {
|
|
11843
11843
|
for (let t = e, n = i.length - 1; t < n; t++)
|
|
11844
11844
|
i[t] = i[t + 1];
|
|
11845
11845
|
i.pop();
|
|
11846
11846
|
}
|
|
11847
|
-
function
|
|
11847
|
+
function ms(i, e, t) {
|
|
11848
11848
|
for (let n = i.length - 1; n >= e; n--)
|
|
11849
11849
|
i[n + 1] = i[n];
|
|
11850
11850
|
i[e] = t;
|
|
@@ -12115,7 +12115,7 @@ function Do(i) {
|
|
|
12115
12115
|
function Du(i, e) {
|
|
12116
12116
|
return e ? i == e || i.contains(e.nodeType != 1 ? e.parentNode : e) : !1;
|
|
12117
12117
|
}
|
|
12118
|
-
function
|
|
12118
|
+
function js(i, e) {
|
|
12119
12119
|
if (!e.anchorNode)
|
|
12120
12120
|
return !1;
|
|
12121
12121
|
try {
|
|
@@ -12135,7 +12135,7 @@ function sr(i) {
|
|
|
12135
12135
|
if (i = i.previousSibling, !i)
|
|
12136
12136
|
return e;
|
|
12137
12137
|
}
|
|
12138
|
-
function
|
|
12138
|
+
function hl(i) {
|
|
12139
12139
|
return i.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(i.nodeName);
|
|
12140
12140
|
}
|
|
12141
12141
|
function wf(i, e, t, n, r) {
|
|
@@ -12160,7 +12160,7 @@ function wf(i, e, t, n, r) {
|
|
|
12160
12160
|
function Ji(i) {
|
|
12161
12161
|
return i.nodeType == 3 ? i.nodeValue.length : i.childNodes.length;
|
|
12162
12162
|
}
|
|
12163
|
-
function
|
|
12163
|
+
function Ko(i, e) {
|
|
12164
12164
|
let t = e ? i.left : i.right;
|
|
12165
12165
|
return { left: t, right: t, top: i.top, bottom: i.bottom };
|
|
12166
12166
|
}
|
|
@@ -12342,7 +12342,7 @@ function Hg(i, e) {
|
|
|
12342
12342
|
if (t.contentEditable == "false")
|
|
12343
12343
|
return null;
|
|
12344
12344
|
t = t.childNodes[n - 1], n = Ji(t);
|
|
12345
|
-
} else if (t.parentNode && !
|
|
12345
|
+
} else if (t.parentNode && !hl(t))
|
|
12346
12346
|
n = sr(t), t = t.parentNode;
|
|
12347
12347
|
else
|
|
12348
12348
|
return null;
|
|
@@ -12356,7 +12356,7 @@ function zg(i, e) {
|
|
|
12356
12356
|
if (t.contentEditable == "false")
|
|
12357
12357
|
return null;
|
|
12358
12358
|
t = t.childNodes[n], n = 0;
|
|
12359
|
-
} else if (t.parentNode && !
|
|
12359
|
+
} else if (t.parentNode && !hl(t))
|
|
12360
12360
|
n = sr(t) + 1, t = t.parentNode;
|
|
12361
12361
|
else
|
|
12362
12362
|
return null;
|
|
@@ -12681,7 +12681,7 @@ function Qx(i, e, t) {
|
|
|
12681
12681
|
if (!l.length)
|
|
12682
12682
|
return null;
|
|
12683
12683
|
let a = l[(s ? s < 0 : t >= 0) ? 0 : l.length - 1];
|
|
12684
|
-
return ue.safari && !s && a.width == 0 && (a = Array.prototype.find.call(l, (u) => u.width) || a), s ?
|
|
12684
|
+
return ue.safari && !s && a.width == 0 && (a = Array.prototype.find.call(l, (u) => u.width) || a), s ? Ko(a, s < 0) : a || null;
|
|
12685
12685
|
}
|
|
12686
12686
|
class an extends Ke {
|
|
12687
12687
|
static create(e, t, n) {
|
|
@@ -12737,7 +12737,7 @@ class an extends Ke {
|
|
|
12737
12737
|
let s = this.side ? this.side < 0 : e > 0;
|
|
12738
12738
|
for (let l = s ? r.length - 1 : 0; o = r[l], !(e > 0 ? l == 0 : l == r.length - 1 || o.top < o.bottom); l += s ? -1 : 1)
|
|
12739
12739
|
;
|
|
12740
|
-
return
|
|
12740
|
+
return Ko(o, !s);
|
|
12741
12741
|
}
|
|
12742
12742
|
get isEditable() {
|
|
12743
12743
|
return !1;
|
|
@@ -12854,7 +12854,7 @@ function qu(i, e) {
|
|
|
12854
12854
|
return e;
|
|
12855
12855
|
}
|
|
12856
12856
|
const Mf = /* @__PURE__ */ Object.create(null);
|
|
12857
|
-
function
|
|
12857
|
+
function fl(i, e, t) {
|
|
12858
12858
|
if (i == e)
|
|
12859
12859
|
return !0;
|
|
12860
12860
|
i || (i = Mf), e || (e = Mf);
|
|
@@ -12991,7 +12991,7 @@ class xe extends or {
|
|
|
12991
12991
|
of lower-precedence decorations.
|
|
12992
12992
|
*/
|
|
12993
12993
|
static mark(e) {
|
|
12994
|
-
return new
|
|
12994
|
+
return new Yo(e);
|
|
12995
12995
|
}
|
|
12996
12996
|
/**
|
|
12997
12997
|
Create a widget decoration, which displays a DOM element at the
|
|
@@ -13020,7 +13020,7 @@ class xe extends or {
|
|
|
13020
13020
|
line starting at the given position.
|
|
13021
13021
|
*/
|
|
13022
13022
|
static line(e) {
|
|
13023
|
-
return new
|
|
13023
|
+
return new Go(e);
|
|
13024
13024
|
}
|
|
13025
13025
|
/**
|
|
13026
13026
|
Build a [`DecorationSet`](https://codemirror.net/6/docs/ref/#view.DecorationSet) from the given
|
|
@@ -13038,14 +13038,14 @@ class xe extends or {
|
|
|
13038
13038
|
}
|
|
13039
13039
|
}
|
|
13040
13040
|
xe.none = Le.empty;
|
|
13041
|
-
class
|
|
13041
|
+
class Yo extends xe {
|
|
13042
13042
|
constructor(e) {
|
|
13043
13043
|
let { start: t, end: n } = Gg(e);
|
|
13044
13044
|
super(t ? -1 : 5e8, n ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
|
|
13045
13045
|
}
|
|
13046
13046
|
eq(e) {
|
|
13047
13047
|
var t, n;
|
|
13048
|
-
return this == e || e instanceof
|
|
13048
|
+
return this == e || e instanceof Yo && this.tagName == e.tagName && (this.class || ((t = this.attrs) === null || t === void 0 ? void 0 : t.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && fl(this.attrs, e.attrs, "class");
|
|
13049
13049
|
}
|
|
13050
13050
|
range(e, t = e) {
|
|
13051
13051
|
if (e >= t)
|
|
@@ -13053,13 +13053,13 @@ class Ko extends xe {
|
|
|
13053
13053
|
return super.range(e, t);
|
|
13054
13054
|
}
|
|
13055
13055
|
}
|
|
13056
|
-
|
|
13057
|
-
class
|
|
13056
|
+
Yo.prototype.point = !1;
|
|
13057
|
+
class Go extends xe {
|
|
13058
13058
|
constructor(e) {
|
|
13059
13059
|
super(-2e8, -2e8, null, e);
|
|
13060
13060
|
}
|
|
13061
13061
|
eq(e) {
|
|
13062
|
-
return e instanceof
|
|
13062
|
+
return e instanceof Go && this.spec.class == e.spec.class && fl(this.spec.attributes, e.spec.attributes);
|
|
13063
13063
|
}
|
|
13064
13064
|
range(e, t = e) {
|
|
13065
13065
|
if (t != e)
|
|
@@ -13067,8 +13067,8 @@ class Yo extends xe {
|
|
|
13067
13067
|
return super.range(e, t);
|
|
13068
13068
|
}
|
|
13069
13069
|
}
|
|
13070
|
-
|
|
13071
|
-
|
|
13070
|
+
Go.prototype.mapMode = ti.TrackBefore;
|
|
13071
|
+
Go.prototype.point = !0;
|
|
13072
13072
|
class Bn extends xe {
|
|
13073
13073
|
constructor(e, t, n, r, o, s) {
|
|
13074
13074
|
super(t, n, o, e), this.block = r, this.isReplace = s, this.mapMode = r ? t <= 0 ? ti.TrackBefore : ti.TrackAfter : ti.TrackDel;
|
|
@@ -13099,7 +13099,7 @@ function Gg(i, e = !1) {
|
|
|
13099
13099
|
function Gx(i, e) {
|
|
13100
13100
|
return i == e || !!(i && e && i.compare(e));
|
|
13101
13101
|
}
|
|
13102
|
-
function
|
|
13102
|
+
function Ws(i, e, t, n = 0) {
|
|
13103
13103
|
let r = t.length - 1;
|
|
13104
13104
|
r >= 0 && t[r] + n >= i ? t[r] = Math.max(t[r], e) : t.push(i, e);
|
|
13105
13105
|
}
|
|
@@ -13132,7 +13132,7 @@ class bt extends Ke {
|
|
|
13132
13132
|
this.dom && (this.markDirty(), e.setDOM(this.dom), e.prevAttrs = this.prevAttrs === void 0 ? this.attrs : this.prevAttrs, this.prevAttrs = void 0, this.dom = null);
|
|
13133
13133
|
}
|
|
13134
13134
|
setDeco(e) {
|
|
13135
|
-
|
|
13135
|
+
fl(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e);
|
|
13136
13136
|
}
|
|
13137
13137
|
append(e, t) {
|
|
13138
13138
|
Kg(this, e, t);
|
|
@@ -13189,7 +13189,7 @@ class bt extends Ke {
|
|
|
13189
13189
|
return n;
|
|
13190
13190
|
}
|
|
13191
13191
|
become(e) {
|
|
13192
|
-
return e instanceof bt && this.children.length == 0 && e.children.length == 0 &&
|
|
13192
|
+
return e instanceof bt && this.children.length == 0 && e.children.length == 0 && fl(this.attrs, e.attrs) && this.breakAfter == e.breakAfter;
|
|
13193
13193
|
}
|
|
13194
13194
|
covers() {
|
|
13195
13195
|
return !0;
|
|
@@ -13253,7 +13253,7 @@ class un extends Ke {
|
|
|
13253
13253
|
}
|
|
13254
13254
|
coordsAt(e, t) {
|
|
13255
13255
|
let n = this.widget.coordsAt(this.dom, e, t);
|
|
13256
|
-
return n || (this.widget instanceof _u ? null :
|
|
13256
|
+
return n || (this.widget instanceof _u ? null : Ko(this.dom.getBoundingClientRect(), this.length ? e == 0 : t <= 0));
|
|
13257
13257
|
}
|
|
13258
13258
|
destroy() {
|
|
13259
13259
|
super.destroy(), this.dom && this.widget.destroy(this.dom);
|
|
@@ -13301,7 +13301,7 @@ class vo {
|
|
|
13301
13301
|
return this.curLine || (this.content.push(this.curLine = new bt()), this.atCursorPos = !0), this.curLine;
|
|
13302
13302
|
}
|
|
13303
13303
|
flushBuffer(e = this.bufferMarks) {
|
|
13304
|
-
this.pendingBuffer && (this.curLine.append(
|
|
13304
|
+
this.pendingBuffer && (this.curLine.append(gs(new Nr(-1), e), e.length), this.pendingBuffer = 0);
|
|
13305
13305
|
}
|
|
13306
13306
|
addBlockWidget(e) {
|
|
13307
13307
|
this.flushBuffer(), this.curLine = null, this.content.push(e);
|
|
@@ -13326,7 +13326,7 @@ class vo {
|
|
|
13326
13326
|
512
|
|
13327
13327
|
/* T.Chunk */
|
|
13328
13328
|
);
|
|
13329
|
-
this.flushBuffer(t.slice(t.length - n)), this.getLine().append(
|
|
13329
|
+
this.flushBuffer(t.slice(t.length - n)), this.getLine().append(gs(new Pi(this.text.slice(this.textOff, this.textOff + o)), t), n), this.atCursorPos = !0, this.textOff += o, e -= o, n = r <= o ? 0 : t.length;
|
|
13330
13330
|
}
|
|
13331
13331
|
}
|
|
13332
13332
|
span(e, t, n, r) {
|
|
@@ -13345,7 +13345,7 @@ class vo {
|
|
|
13345
13345
|
n.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new un(n.widget || Hr.block, l, n));
|
|
13346
13346
|
else {
|
|
13347
13347
|
let a = an.create(n.widget || Hr.inline, l, l ? 0 : n.startSide), u = this.atCursorPos && !a.isEditable && o <= r.length && (e < t || n.startSide > 0), c = !a.isEditable && (e < t || o > r.length || n.startSide <= 0), h = this.getLine();
|
|
13348
|
-
this.pendingBuffer == 2 && !u && !a.isEditable && (this.pendingBuffer = 0), this.flushBuffer(r), u && (h.append(
|
|
13348
|
+
this.pendingBuffer == 2 && !u && !a.isEditable && (this.pendingBuffer = 0), this.flushBuffer(r), u && (h.append(gs(new Nr(1), r), o), o = r.length + Math.max(0, o - r.length)), h.append(gs(a, r), o), this.atCursorPos = c, this.pendingBuffer = c ? e < t || o > r.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = r.slice());
|
|
13349
13349
|
}
|
|
13350
13350
|
else this.doc.lineAt(this.pos).from == this.pos && this.getLine().addLineDeco(n);
|
|
13351
13351
|
l && (this.textOff + l <= this.text.length ? this.textOff += l : (this.skip += l - (this.text.length - this.textOff), this.text = "", this.textOff = 0), this.pos = t), this.openStart < 0 && (this.openStart = o);
|
|
@@ -13355,7 +13355,7 @@ class vo {
|
|
|
13355
13355
|
return s.openEnd = Le.spans(r, t, n, s), s.openStart < 0 && (s.openStart = s.openEnd), s.finish(s.openEnd), s;
|
|
13356
13356
|
}
|
|
13357
13357
|
}
|
|
13358
|
-
function
|
|
13358
|
+
function gs(i, e) {
|
|
13359
13359
|
for (let t of e)
|
|
13360
13360
|
i = new fn(t, [i], i.length);
|
|
13361
13361
|
return i;
|
|
@@ -13679,7 +13679,7 @@ class Pr {
|
|
|
13679
13679
|
return this.range.to <= e.doc.length ? this : new Pr(K.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
|
|
13680
13680
|
}
|
|
13681
13681
|
}
|
|
13682
|
-
const
|
|
13682
|
+
const ps = /* @__PURE__ */ Ae.define({ map: (i, e) => i.map(e) }), cp = /* @__PURE__ */ Ae.define();
|
|
13683
13683
|
function ii(i, e, t) {
|
|
13684
13684
|
let n = i.facet(rp);
|
|
13685
13685
|
n.length ? n[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
|
|
@@ -13772,7 +13772,7 @@ class Pa {
|
|
|
13772
13772
|
this.spec = this.value = null;
|
|
13773
13773
|
}
|
|
13774
13774
|
}
|
|
13775
|
-
const hp = /* @__PURE__ */ de.define(), Lc = /* @__PURE__ */ de.define(), qo = /* @__PURE__ */ de.define(), fp = /* @__PURE__ */ de.define(),
|
|
13775
|
+
const hp = /* @__PURE__ */ de.define(), Lc = /* @__PURE__ */ de.define(), qo = /* @__PURE__ */ de.define(), fp = /* @__PURE__ */ de.define(), Jo = /* @__PURE__ */ de.define(), dp = /* @__PURE__ */ de.define();
|
|
13776
13776
|
function Af(i, e) {
|
|
13777
13777
|
let t = i.state.facet(dp);
|
|
13778
13778
|
if (!t.length)
|
|
@@ -13842,7 +13842,7 @@ class Si {
|
|
|
13842
13842
|
}
|
|
13843
13843
|
}
|
|
13844
13844
|
}
|
|
13845
|
-
class
|
|
13845
|
+
class dl {
|
|
13846
13846
|
constructor(e, t, n) {
|
|
13847
13847
|
this.view = e, this.state = t, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes = St.empty(this.startState.doc.length);
|
|
13848
13848
|
for (let o of n)
|
|
@@ -13854,7 +13854,7 @@ class fl {
|
|
|
13854
13854
|
@internal
|
|
13855
13855
|
*/
|
|
13856
13856
|
static create(e, t, n) {
|
|
13857
|
-
return new
|
|
13857
|
+
return new dl(e, t, n);
|
|
13858
13858
|
}
|
|
13859
13859
|
/**
|
|
13860
13860
|
Tells you whether the [viewport](https://codemirror.net/6/docs/ref/#view.EditorView.viewport) or
|
|
@@ -14004,7 +14004,7 @@ class Of extends Ke {
|
|
|
14004
14004
|
// Sync the DOM selection to this.state.selection
|
|
14005
14005
|
updateSelection(e = !1, t = !1) {
|
|
14006
14006
|
(e || !this.view.observer.selectionRange.focusNode) && this.view.observer.readSelectionRange();
|
|
14007
|
-
let n = this.view.root.activeElement, r = n == this.dom, o = !r && !(this.view.state.facet(sn) || this.dom.tabIndex > -1) &&
|
|
14007
|
+
let n = this.view.root.activeElement, r = n == this.dom, o = !r && !(this.view.state.facet(sn) || this.dom.tabIndex > -1) && js(this.dom, this.view.observer.selectionRange) && !(n && this.dom.contains(n));
|
|
14008
14008
|
if (!(r || t || o))
|
|
14009
14009
|
return;
|
|
14010
14010
|
let s = this.forceSelection;
|
|
@@ -14302,7 +14302,7 @@ function lk(i, e, t) {
|
|
|
14302
14302
|
if (f instanceof bt || h.nodeName == "DIV" && h.parentNode == i.contentDOM)
|
|
14303
14303
|
return { range: u, text: r, marks: c, line: h };
|
|
14304
14304
|
if (h != i.contentDOM)
|
|
14305
|
-
c.push({ node: h, deco: new
|
|
14305
|
+
c.push({ node: h, deco: new Yo({
|
|
14306
14306
|
inclusive: !0,
|
|
14307
14307
|
attributes: Yx(h),
|
|
14308
14308
|
tagName: h.tagName.toLowerCase()
|
|
@@ -14320,13 +14320,13 @@ let uk = class {
|
|
|
14320
14320
|
this.changes = [];
|
|
14321
14321
|
}
|
|
14322
14322
|
compareRange(e, t) {
|
|
14323
|
-
|
|
14323
|
+
Ws(e, t, this.changes);
|
|
14324
14324
|
}
|
|
14325
14325
|
comparePoint(e, t) {
|
|
14326
|
-
|
|
14326
|
+
Ws(e, t, this.changes);
|
|
14327
14327
|
}
|
|
14328
14328
|
boundChange(e) {
|
|
14329
|
-
|
|
14329
|
+
Ws(e, e, this.changes);
|
|
14330
14330
|
}
|
|
14331
14331
|
};
|
|
14332
14332
|
function ck(i, e, t) {
|
|
@@ -14628,7 +14628,7 @@ function yp(i, e) {
|
|
|
14628
14628
|
return t ? K.create(t, e.mainIndex) : e;
|
|
14629
14629
|
}
|
|
14630
14630
|
function Ba(i, e, t) {
|
|
14631
|
-
let n = yo(i.state.facet(
|
|
14631
|
+
let n = yo(i.state.facet(Jo).map((r) => r(i)), t.from, e.head > t.from ? -1 : 1);
|
|
14632
14632
|
return n == t.from ? t : K.cursor(n, n < t.from ? 1 : -1);
|
|
14633
14633
|
}
|
|
14634
14634
|
const lo = "";
|
|
@@ -14654,7 +14654,7 @@ class kk {
|
|
|
14654
14654
|
if (s == t)
|
|
14655
14655
|
break;
|
|
14656
14656
|
let l = Ke.get(r), a = Ke.get(s);
|
|
14657
|
-
(l && a ? l.breakAfter : (l ? l.breakAfter :
|
|
14657
|
+
(l && a ? l.breakAfter : (l ? l.breakAfter : hl(r)) || hl(s) && (r.nodeName != "BR" || r.cmIgnore) && this.text.length > o) && !Sk(s, t) && this.lineBreak(), r = s;
|
|
14658
14658
|
}
|
|
14659
14659
|
return this.findPointBefore(n, t), this;
|
|
14660
14660
|
}
|
|
@@ -14767,7 +14767,7 @@ function bp(i, e) {
|
|
|
14767
14767
|
return Vc(i, t, n, o);
|
|
14768
14768
|
if (n && !n.main.eq(r)) {
|
|
14769
14769
|
let s = !1, l = "select";
|
|
14770
|
-
return i.inputState.lastSelectionTime > Date.now() - 50 && (i.inputState.lastSelectionOrigin == "select" && (s = !0), l = i.inputState.lastSelectionOrigin, l == "select.pointer" && (n = yp(i.state.facet(
|
|
14770
|
+
return i.inputState.lastSelectionTime > Date.now() - 50 && (i.inputState.lastSelectionOrigin == "select" && (s = !0), l = i.inputState.lastSelectionOrigin, l == "select.pointer" && (n = yp(i.state.facet(Jo).map((a) => a(i)), n))), i.dispatch({ selection: n, scrollIntoView: s, userEvent: l }), !0;
|
|
14771
14771
|
} else
|
|
14772
14772
|
return !1;
|
|
14773
14773
|
}
|
|
@@ -14787,7 +14787,7 @@ function Vc(i, e, t, n = -1) {
|
|
|
14787
14787
|
function Mk(i, e, t) {
|
|
14788
14788
|
let n, r = i.state, o = r.selection.main, s = -1;
|
|
14789
14789
|
if (e.from == e.to && e.from < o.from || e.from > o.to) {
|
|
14790
|
-
let a = e.from < o.from ? -1 : 1, u = a < 0 ? o.from : o.to, c = yo(r.facet(
|
|
14790
|
+
let a = e.from < o.from ? -1 : 1, u = a < 0 ? o.from : o.to, c = yo(r.facet(Jo).map((h) => h(i)), u, a);
|
|
14791
14791
|
e.from == c && (s = c);
|
|
14792
14792
|
}
|
|
14793
14793
|
if (s > -1)
|
|
@@ -14967,8 +14967,8 @@ const kp = [
|
|
|
14967
14967
|
{ key: "Enter", keyCode: 13, inputType: "insertParagraph" },
|
|
14968
14968
|
{ key: "Enter", keyCode: 13, inputType: "insertLineBreak" },
|
|
14969
14969
|
{ key: "Delete", keyCode: 46, inputType: "deleteContentForward" }
|
|
14970
|
-
], qk = "dthko", wp = [16, 17, 18, 20, 91, 92, 224, 225],
|
|
14971
|
-
function
|
|
14970
|
+
], qk = "dthko", wp = [16, 17, 18, 20, 91, 92, 224, 225], vs = 6;
|
|
14971
|
+
function ys(i) {
|
|
14972
14972
|
return Math.max(0, i) * 0.7 + 8;
|
|
14973
14973
|
}
|
|
14974
14974
|
function Pk(i, e) {
|
|
@@ -14976,7 +14976,7 @@ function Pk(i, e) {
|
|
|
14976
14976
|
}
|
|
14977
14977
|
class _k {
|
|
14978
14978
|
constructor(e, t, n, r) {
|
|
14979
|
-
this.view = e, this.startEvent = t, this.style = n, this.mustSelect = r, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParents = Nx(e.contentDOM), this.atoms = e.state.facet(
|
|
14979
|
+
this.view = e, this.startEvent = t, this.style = n, this.mustSelect = r, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParents = Nx(e.contentDOM), this.atoms = e.state.facet(Jo).map((s) => s(e));
|
|
14980
14980
|
let o = e.contentDOM.ownerDocument;
|
|
14981
14981
|
o.addEventListener("mousemove", this.move = this.move.bind(this)), o.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = t.shiftKey, this.multiple = e.state.facet(Ee.allowMultipleSelections) && Bk(e, t), this.dragging = Ek(e, t) && Mp(t) == 1 ? null : !1;
|
|
14982
14982
|
}
|
|
@@ -14992,7 +14992,7 @@ class _k {
|
|
|
14992
14992
|
let t = 0, n = 0, r = 0, o = 0, s = this.view.win.innerWidth, l = this.view.win.innerHeight;
|
|
14993
14993
|
this.scrollParents.x && ({ left: r, right: s } = this.scrollParents.x.getBoundingClientRect()), this.scrollParents.y && ({ top: o, bottom: l } = this.scrollParents.y.getBoundingClientRect());
|
|
14994
14994
|
let a = Ic(this.view);
|
|
14995
|
-
e.clientX - a.left <= r +
|
|
14995
|
+
e.clientX - a.left <= r + vs ? t = -ys(r - e.clientX) : e.clientX + a.right >= s - vs && (t = ys(e.clientX - s)), e.clientY - a.top <= o + vs ? n = -ys(o - e.clientY) : e.clientY + a.bottom >= l - vs && (n = ys(e.clientY - l)), this.setScrollSpeed(t, n);
|
|
14996
14996
|
}
|
|
14997
14997
|
up(e) {
|
|
14998
14998
|
this.dragging == null && this.select(this.lastEvent), this.dragging || e.preventDefault(), this.destroy();
|
|
@@ -15440,7 +15440,7 @@ class Wi {
|
|
|
15440
15440
|
var it = /* @__PURE__ */ function(i) {
|
|
15441
15441
|
return i[i.ByPos = 0] = "ByPos", i[i.ByHeight = 1] = "ByHeight", i[i.ByPosNoHeight = 2] = "ByPosNoHeight", i;
|
|
15442
15442
|
}(it || (it = {}));
|
|
15443
|
-
const
|
|
15443
|
+
const Qs = 1e-3;
|
|
15444
15444
|
class ri {
|
|
15445
15445
|
constructor(e, t, n = 2) {
|
|
15446
15446
|
this.length = e, this.height = t, this.flags = n;
|
|
@@ -15452,7 +15452,7 @@ class ri {
|
|
|
15452
15452
|
this.flags = (e ? 2 : 0) | this.flags & -3;
|
|
15453
15453
|
}
|
|
15454
15454
|
setHeight(e) {
|
|
15455
|
-
this.height != e && (Math.abs(this.height - e) >
|
|
15455
|
+
this.height != e && (Math.abs(this.height - e) > Qs && (zr = !0), this.height = e);
|
|
15456
15456
|
}
|
|
15457
15457
|
// Base case is to replace a leaf node, which simply builds a tree
|
|
15458
15458
|
// from the new nodes and returns that (HeightMapBranch and
|
|
@@ -15475,7 +15475,7 @@ class ri {
|
|
|
15475
15475
|
a = r[l - 1].fromA, c = r[l - 1].fromB, l--, a < f.from && (f = o.lineAt(a, it.ByPosNoHeight, n, 0, 0));
|
|
15476
15476
|
c += f.from - a, a = f.from;
|
|
15477
15477
|
let m = Fc.build(n.setDoc(s), e, c, h);
|
|
15478
|
-
o =
|
|
15478
|
+
o = ml(o, o.replace(a, u, m));
|
|
15479
15479
|
}
|
|
15480
15480
|
return o.updateHeight(n, 0);
|
|
15481
15481
|
}
|
|
@@ -15511,7 +15511,7 @@ class ri {
|
|
|
15511
15511
|
return e[t - 1] == null ? (s = 1, t--) : e[t] == null && (s = 1, n++), new Kk(ri.of(e.slice(0, t)), s, ri.of(e.slice(n)));
|
|
15512
15512
|
}
|
|
15513
15513
|
}
|
|
15514
|
-
function
|
|
15514
|
+
function ml(i, e) {
|
|
15515
15515
|
return i == e ? i : (i.constructor != e.constructor && (zr = !0), e);
|
|
15516
15516
|
}
|
|
15517
15517
|
ri.prototype.size = 1;
|
|
@@ -15625,13 +15625,13 @@ class Lt extends ri {
|
|
|
15625
15625
|
let c = e.doc.lineAt(l).length;
|
|
15626
15626
|
s.length && s.push(null);
|
|
15627
15627
|
let h = r.heights[r.index++];
|
|
15628
|
-
a == -1 ? a = h : Math.abs(h - a) >=
|
|
15628
|
+
a == -1 ? a = h : Math.abs(h - a) >= Qs && (a = -2);
|
|
15629
15629
|
let f = new hi(c, h);
|
|
15630
15630
|
f.outdated = !1, s.push(f), l += c + 1;
|
|
15631
15631
|
}
|
|
15632
15632
|
l <= o && s.push(null, new Lt(o - l).updateHeight(e, l));
|
|
15633
15633
|
let u = ri.of(s);
|
|
15634
|
-
return (a < 0 || Math.abs(u.height - this.height) >=
|
|
15634
|
+
return (a < 0 || Math.abs(u.height - this.height) >= Qs || Math.abs(a - this.heightMetrics(e, t).perLine) >= Qs) && (zr = !0), ml(this, u);
|
|
15635
15635
|
} else (n || this.outdated) && (this.setHeight(e.heightForGap(t, t + this.length)), this.outdated = !1);
|
|
15636
15636
|
return this;
|
|
15637
15637
|
}
|
|
@@ -15696,7 +15696,7 @@ class Kk extends ri {
|
|
|
15696
15696
|
e < n && this.left.decomposeRight(e, t), this.break && e < r && t.push(null), t.push(this.right);
|
|
15697
15697
|
}
|
|
15698
15698
|
balanced(e, t) {
|
|
15699
|
-
return e.size > 2 * t.size || t.size > 2 * e.size ? ri.of(this.break ? [e, null, t] : [e, t]) : (this.left =
|
|
15699
|
+
return e.size > 2 * t.size || t.size > 2 * e.size ? ri.of(this.break ? [e, null, t] : [e, t]) : (this.left = ml(this.left, e), this.right = ml(this.right, t), this.setHeight(e.height + t.height), this.outdated = e.outdated || t.outdated, this.size = e.size + t.size, this.length = e.length + this.break + t.length, this);
|
|
15700
15700
|
}
|
|
15701
15701
|
updateHeight(e, t = 0, n = !1, r) {
|
|
15702
15702
|
let { left: o, right: s } = this, l = t + o.length + this.break, a = null;
|
|
@@ -15790,7 +15790,7 @@ class Jk {
|
|
|
15790
15790
|
compareRange() {
|
|
15791
15791
|
}
|
|
15792
15792
|
comparePoint(e, t, n, r) {
|
|
15793
|
-
(e < t || n && n.heightRelevant || r && r.heightRelevant) &&
|
|
15793
|
+
(e < t || n && n.heightRelevant || r && r.heightRelevant) && Ws(e, t, this.changes, 5);
|
|
15794
15794
|
}
|
|
15795
15795
|
}
|
|
15796
15796
|
function Xk(i, e) {
|
|
@@ -15877,7 +15877,7 @@ class Uf {
|
|
|
15877
15877
|
let r = n ? t.head : t.anchor;
|
|
15878
15878
|
if (!e.some(({ from: o, to: s }) => r >= o && r <= s)) {
|
|
15879
15879
|
let { from: o, to: s } = this.lineBlockAt(r);
|
|
15880
|
-
e.push(new
|
|
15880
|
+
e.push(new bs(o, s));
|
|
15881
15881
|
}
|
|
15882
15882
|
}
|
|
15883
15883
|
return this.viewports = e.sort((n, r) => n.from - r.from), this.updateScaler();
|
|
@@ -15945,19 +15945,19 @@ class Uf {
|
|
|
15945
15945
|
return this.scaler.fromDOM(this.pixelViewport.bottom);
|
|
15946
15946
|
}
|
|
15947
15947
|
getViewport(e, t) {
|
|
15948
|
-
let n = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), r = this.heightMap, o = this.heightOracle, { visibleTop: s, visibleBottom: l } = this, a = new
|
|
15948
|
+
let n = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), r = this.heightMap, o = this.heightOracle, { visibleTop: s, visibleBottom: l } = this, a = new bs(r.lineAt(s - n * 1e3, it.ByHeight, o, 0, 0).from, r.lineAt(l + (1 - n) * 1e3, it.ByHeight, o, 0, 0).to);
|
|
15949
15949
|
if (t) {
|
|
15950
15950
|
let { head: u } = t.range;
|
|
15951
15951
|
if (u < a.from || u > a.to) {
|
|
15952
15952
|
let c = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), h = r.lineAt(u, it.ByPos, o, 0, 0), f;
|
|
15953
|
-
t.y == "center" ? f = (h.top + h.bottom) / 2 - c / 2 : t.y == "start" || t.y == "nearest" && u < a.from ? f = h.top : f = h.bottom - c, a = new
|
|
15953
|
+
t.y == "center" ? f = (h.top + h.bottom) / 2 - c / 2 : t.y == "start" || t.y == "nearest" && u < a.from ? f = h.top : f = h.bottom - c, a = new bs(r.lineAt(f - 1e3 / 2, it.ByHeight, o, 0, 0).from, r.lineAt(f + c + 1e3 / 2, it.ByHeight, o, 0, 0).to);
|
|
15954
15954
|
}
|
|
15955
15955
|
}
|
|
15956
15956
|
return a;
|
|
15957
15957
|
}
|
|
15958
15958
|
mapViewport(e, t) {
|
|
15959
15959
|
let n = t.mapPos(e.from, -1), r = t.mapPos(e.to, 1);
|
|
15960
|
-
return new
|
|
15960
|
+
return new bs(this.heightMap.lineAt(n, it.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(r, it.ByPos, this.heightOracle, 0, 0).to);
|
|
15961
15961
|
}
|
|
15962
15962
|
// Checks if a given viewport covers the visible part of the
|
|
15963
15963
|
// document and not too much beyond that.
|
|
@@ -16024,11 +16024,11 @@ class Uf {
|
|
|
16024
16024
|
if (n) {
|
|
16025
16025
|
let p = r / this.heightOracle.lineLength * this.heightOracle.lineHeight, g, y;
|
|
16026
16026
|
if (f != null) {
|
|
16027
|
-
let k =
|
|
16027
|
+
let k = ks(h, f), v = ((this.visibleBottom - this.visibleTop) / 2 + p) / c.height;
|
|
16028
16028
|
g = k - v, y = k + v;
|
|
16029
16029
|
} else
|
|
16030
16030
|
g = (this.visibleTop - c.top - p) / c.height, y = (this.visibleBottom - c.top + p) / c.height;
|
|
16031
|
-
d =
|
|
16031
|
+
d = xs(h, g), m = xs(h, y);
|
|
16032
16032
|
} else {
|
|
16033
16033
|
let p = h.total * this.heightOracle.charWidth, g = r * this.heightOracle.charWidth, y = 0;
|
|
16034
16034
|
if (p > 2e6)
|
|
@@ -16036,11 +16036,11 @@ class Uf {
|
|
|
16036
16036
|
E.from >= c.from && E.from < c.to && E.size != E.displaySize && E.from * this.heightOracle.charWidth + y < this.pixelViewport.left && (y = E.size - E.displaySize);
|
|
16037
16037
|
let k = this.pixelViewport.left + y, v = this.pixelViewport.right + y, x, C;
|
|
16038
16038
|
if (f != null) {
|
|
16039
|
-
let E =
|
|
16039
|
+
let E = ks(h, f), T = ((v - k) / 2 + g) / p;
|
|
16040
16040
|
x = E - T, C = E + T;
|
|
16041
16041
|
} else
|
|
16042
16042
|
x = (k - g) / p, C = (v + g) / p;
|
|
16043
|
-
d =
|
|
16043
|
+
d = xs(h, x), m = xs(h, C);
|
|
16044
16044
|
}
|
|
16045
16045
|
d > c.from && a(c.from, d, c, h), m < c.to && a(m, c.to, c, h);
|
|
16046
16046
|
};
|
|
@@ -16049,7 +16049,7 @@ class Uf {
|
|
|
16049
16049
|
return l;
|
|
16050
16050
|
}
|
|
16051
16051
|
gapSize(e, t, n, r) {
|
|
16052
|
-
let o =
|
|
16052
|
+
let o = ks(r, n) - ks(r, t);
|
|
16053
16053
|
return this.heightOracle.lineWrapping ? e.height * o : r.total * this.heightOracle.charWidth * o;
|
|
16054
16054
|
}
|
|
16055
16055
|
updateLineGaps(e) {
|
|
@@ -16096,7 +16096,7 @@ class Uf {
|
|
|
16096
16096
|
return this.docHeight + this.paddingTop + this.paddingBottom;
|
|
16097
16097
|
}
|
|
16098
16098
|
}
|
|
16099
|
-
class
|
|
16099
|
+
class bs {
|
|
16100
16100
|
constructor(e, t) {
|
|
16101
16101
|
this.from = e, this.to = t;
|
|
16102
16102
|
}
|
|
@@ -16111,7 +16111,7 @@ function tw(i, e, t) {
|
|
|
16111
16111
|
}
|
|
16112
16112
|
}, 20), r < e && (n.push({ from: r, to: e }), o += e - r), { total: o, ranges: n };
|
|
16113
16113
|
}
|
|
16114
|
-
function
|
|
16114
|
+
function xs({ total: i, ranges: e }, t) {
|
|
16115
16115
|
if (t <= 0)
|
|
16116
16116
|
return e[0].from;
|
|
16117
16117
|
if (t >= 1)
|
|
@@ -16124,7 +16124,7 @@ function bs({ total: i, ranges: e }, t) {
|
|
|
16124
16124
|
n -= l;
|
|
16125
16125
|
}
|
|
16126
16126
|
}
|
|
16127
|
-
function
|
|
16127
|
+
function ks(i, e) {
|
|
16128
16128
|
let t = 0;
|
|
16129
16129
|
for (let { from: n, to: r } of i.ranges) {
|
|
16130
16130
|
if (e <= r) {
|
|
@@ -16192,7 +16192,7 @@ function ao(i, e) {
|
|
|
16192
16192
|
let t = e.toDOM(i.top), n = e.toDOM(i.bottom);
|
|
16193
16193
|
return new Wi(i.from, i.length, t, n - t, Array.isArray(i._content) ? i._content.map((r) => ao(r, e)) : i._content);
|
|
16194
16194
|
}
|
|
16195
|
-
const
|
|
16195
|
+
const ws = /* @__PURE__ */ de.define({ combine: (i) => i.join(" ") }), Nu = /* @__PURE__ */ de.define({ combine: (i) => i.indexOf(!0) > -1 }), Hu = /* @__PURE__ */ Pn.newName(), qp = /* @__PURE__ */ Pn.newName(), Pp = /* @__PURE__ */ Pn.newName(), _p = { "&light": "." + qp, "&dark": "." + Pp };
|
|
16196
16196
|
function zu(i, e, t) {
|
|
16197
16197
|
return new Pn(e, {
|
|
16198
16198
|
finish(n) {
|
|
@@ -16532,7 +16532,7 @@ class ow {
|
|
|
16532
16532
|
if (!this.readSelectionRange() || this.delayedAndroidKey)
|
|
16533
16533
|
return;
|
|
16534
16534
|
let { view: n } = this, r = this.selectionRange;
|
|
16535
|
-
if (n.state.facet(sn) ? n.root.activeElement != this.dom : !
|
|
16535
|
+
if (n.state.facet(sn) ? n.root.activeElement != this.dom : !js(this.dom, r))
|
|
16536
16536
|
return;
|
|
16537
16537
|
let o = r.anchorNode && n.docView.nearest(r.anchorNode);
|
|
16538
16538
|
if (o && o.ignoreEvent(e)) {
|
|
@@ -16549,7 +16549,7 @@ class ow {
|
|
|
16549
16549
|
let n = ue.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && sw(this.view, t) || t;
|
|
16550
16550
|
if (!n || this.selectionRange.eq(n))
|
|
16551
16551
|
return !1;
|
|
16552
|
-
let r =
|
|
16552
|
+
let r = js(this.dom, n);
|
|
16553
16553
|
return r && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && jx(this.dom, n) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(n), r && (this.selectionChanged = !0), !0);
|
|
16554
16554
|
}
|
|
16555
16555
|
setSelectionRange(e, t) {
|
|
@@ -16648,7 +16648,7 @@ class ow {
|
|
|
16648
16648
|
return { from: t, to: n, typeOver: r };
|
|
16649
16649
|
}
|
|
16650
16650
|
readChange() {
|
|
16651
|
-
let { from: e, to: t, typeOver: n } = this.processRecords(), r = this.selectionChanged &&
|
|
16651
|
+
let { from: e, to: t, typeOver: n } = this.processRecords(), r = this.selectionChanged && js(this.dom, this.selectionRange);
|
|
16652
16652
|
if (e < 0 && !r)
|
|
16653
16653
|
return null;
|
|
16654
16654
|
e > -1 && (this.lastChange = Date.now()), this.view.inputState.lastFocusTime = 0, this.selectionChanged = !1;
|
|
@@ -16933,7 +16933,7 @@ class ce {
|
|
|
16933
16933
|
var t;
|
|
16934
16934
|
this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom);
|
|
16935
16935
|
let { dispatch: n } = e;
|
|
16936
|
-
this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((o) => n(o, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || zx(e.parent) || document, this.viewState = new Uf(e.state || Ee.create(e)), e.scrollTo && e.scrollTo.is(
|
|
16936
|
+
this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((o) => n(o, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || zx(e.parent) || document, this.viewState = new Uf(e.state || Ee.create(e)), e.scrollTo && e.scrollTo.is(ps) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(wr).map((r) => new Pa(r));
|
|
16937
16937
|
for (let r of this.plugins)
|
|
16938
16938
|
r.update(this);
|
|
16939
16939
|
this.observer = new ow(this), this.inputState = new Tk(this), this.inputState.ensureHandlers(this.plugins), this.docView = new Of(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());
|
|
@@ -16968,7 +16968,7 @@ class ce {
|
|
|
16968
16968
|
let u = this.observer.delayedAndroidKey, c = null;
|
|
16969
16969
|
if (u ? (this.observer.clearDelayedAndroidKey(), c = this.observer.readChange(), (c && !this.state.doc.eq(o.doc) || !this.state.selection.eq(o.selection)) && (c = null)) : this.observer.clear(), o.facet(Ee.phrases) != this.state.facet(Ee.phrases))
|
|
16970
16970
|
return this.setState(o);
|
|
16971
|
-
r =
|
|
16971
|
+
r = dl.create(this, o, e), r.flags |= l;
|
|
16972
16972
|
let h = this.viewState.scrollTarget;
|
|
16973
16973
|
try {
|
|
16974
16974
|
this.updateState = 2;
|
|
@@ -16978,13 +16978,13 @@ class ce {
|
|
|
16978
16978
|
h = new Pr(d.empty ? d : K.cursor(d.head, d.head > d.anchor ? -1 : 1));
|
|
16979
16979
|
}
|
|
16980
16980
|
for (let d of f.effects)
|
|
16981
|
-
d.is(
|
|
16981
|
+
d.is(ps) && (h = d.value.clip(this.state));
|
|
16982
16982
|
}
|
|
16983
|
-
this.viewState.update(r, h), this.bidiCache =
|
|
16983
|
+
this.viewState.update(r, h), this.bidiCache = gl.update(this.bidiCache, r.changes), r.empty || (this.updatePlugins(r), this.inputState.update(r)), t = this.docView.update(r), this.state.facet(so) != this.styleModules && this.mountStyles(), n = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(t, e.some((f) => f.isUserEvent("select.pointer")));
|
|
16984
16984
|
} finally {
|
|
16985
16985
|
this.updateState = 0;
|
|
16986
16986
|
}
|
|
16987
|
-
if (r.startState.facet(
|
|
16987
|
+
if (r.startState.facet(ws) != r.state.facet(ws) && (this.viewState.mustMeasureContent = !0), (t || n || h || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), t && this.docViewUpdate(), !r.empty)
|
|
16988
16988
|
for (let f of this.state.facet(Lu))
|
|
16989
16989
|
try {
|
|
16990
16990
|
f(r);
|
|
@@ -17095,7 +17095,7 @@ class ce {
|
|
|
17095
17095
|
} catch (m) {
|
|
17096
17096
|
return ii(this.state, m), Jf;
|
|
17097
17097
|
}
|
|
17098
|
-
}), h =
|
|
17098
|
+
}), h = dl.create(this, this.state, []), f = !1;
|
|
17099
17099
|
h.flags |= a, t ? t.flags |= a : t = h, this.updateState = 2, h.empty || (this.updatePlugins(h), this.inputState.update(h), this.updateAttrs(), f = this.docView.update(h), f && this.docViewUpdate());
|
|
17100
17100
|
for (let d = 0; d < u.length; d++)
|
|
17101
17101
|
if (c[d] != Jf)
|
|
@@ -17131,7 +17131,7 @@ class ce {
|
|
|
17131
17131
|
Get the CSS classes for the currently active editor themes.
|
|
17132
17132
|
*/
|
|
17133
17133
|
get themeClasses() {
|
|
17134
|
-
return Hu + " " + (this.state.facet(Nu) ? Pp : qp) + " " + this.state.facet(
|
|
17134
|
+
return Hu + " " + (this.state.facet(Nu) ? Pp : qp) + " " + this.state.facet(ws);
|
|
17135
17135
|
}
|
|
17136
17136
|
updateAttrs() {
|
|
17137
17137
|
let e = Xf(this, hp, {
|
|
@@ -17378,7 +17378,7 @@ class ce {
|
|
|
17378
17378
|
if (!n || n.left == n.right)
|
|
17379
17379
|
return n;
|
|
17380
17380
|
let r = this.state.doc.lineAt(e), o = this.bidiSpans(r), s = o[An.find(o, e - r.from, -1, t)];
|
|
17381
|
-
return
|
|
17381
|
+
return Ko(n, s.dir == st.LTR == t > 0);
|
|
17382
17382
|
}
|
|
17383
17383
|
/**
|
|
17384
17384
|
Return the rectangle around a given character. If `pos` does not
|
|
@@ -17451,7 +17451,7 @@ class ce {
|
|
|
17451
17451
|
return o.order;
|
|
17452
17452
|
n || (n = Af(this, e));
|
|
17453
17453
|
let r = ik(e.text, t, n);
|
|
17454
|
-
return this.bidiCache.push(new
|
|
17454
|
+
return this.bidiCache.push(new gl(e.from, e.to, t, n, !0, r)), r;
|
|
17455
17455
|
}
|
|
17456
17456
|
/**
|
|
17457
17457
|
Check whether the editor has focus.
|
|
@@ -17493,7 +17493,7 @@ class ce {
|
|
|
17493
17493
|
cause it to scroll the given position or range into view.
|
|
17494
17494
|
*/
|
|
17495
17495
|
static scrollIntoView(e, t = {}) {
|
|
17496
|
-
return
|
|
17496
|
+
return ps.of(new Pr(typeof e == "number" ? K.cursor(e) : e, t.y, t.x, t.yMargin, t.xMargin));
|
|
17497
17497
|
}
|
|
17498
17498
|
/**
|
|
17499
17499
|
Return an effect that resets the editor to its current (at the
|
|
@@ -17509,7 +17509,7 @@ class ce {
|
|
|
17509
17509
|
*/
|
|
17510
17510
|
scrollSnapshot() {
|
|
17511
17511
|
let { scrollTop: e, scrollLeft: t } = this.scrollDOM, n = this.viewState.scrollAnchorAt(e);
|
|
17512
|
-
return
|
|
17512
|
+
return ps.of(new Pr(K.cursor(n.from), "start", "start", n.top - e, t, !0));
|
|
17513
17513
|
}
|
|
17514
17514
|
/**
|
|
17515
17515
|
Enable or disable tab-focus mode, which disables key bindings
|
|
@@ -17570,7 +17570,7 @@ class ce {
|
|
|
17570
17570
|
`&light` when a light theme is active).
|
|
17571
17571
|
*/
|
|
17572
17572
|
static theme(e, t) {
|
|
17573
|
-
let n = Pn.newName(), r = [
|
|
17573
|
+
let n = Pn.newName(), r = [ws.of(n), so.of(zu(`.${n}`, e))];
|
|
17574
17574
|
return t && t.dark && r.push(Nu.of(!0)), r;
|
|
17575
17575
|
}
|
|
17576
17576
|
/**
|
|
@@ -17608,7 +17608,7 @@ ce.dragMovesSelection = ip;
|
|
|
17608
17608
|
ce.clickAddsSelectionRange = tp;
|
|
17609
17609
|
ce.decorations = qo;
|
|
17610
17610
|
ce.outerDecorations = fp;
|
|
17611
|
-
ce.atomicRanges =
|
|
17611
|
+
ce.atomicRanges = Jo;
|
|
17612
17612
|
ce.bidiIsolatedRanges = dp;
|
|
17613
17613
|
ce.scrollMargins = mp;
|
|
17614
17614
|
ce.darkTheme = Nu;
|
|
@@ -17618,7 +17618,7 @@ ce.editorAttributes = hp;
|
|
|
17618
17618
|
ce.lineWrapping = /* @__PURE__ */ ce.contentAttributes.of({ class: "cm-lineWrapping" });
|
|
17619
17619
|
ce.announce = /* @__PURE__ */ Ae.define();
|
|
17620
17620
|
const aw = 4096, Jf = {};
|
|
17621
|
-
class
|
|
17621
|
+
class gl {
|
|
17622
17622
|
constructor(e, t, n, r, o, s) {
|
|
17623
17623
|
this.from = e, this.to = t, this.dir = n, this.isolates = r, this.fresh = o, this.order = s;
|
|
17624
17624
|
}
|
|
@@ -17628,7 +17628,7 @@ class ml {
|
|
|
17628
17628
|
let n = [], r = e.length ? e[e.length - 1].dir : st.LTR;
|
|
17629
17629
|
for (let o = Math.max(0, e.length - 10); o < e.length; o++) {
|
|
17630
17630
|
let s = e[o];
|
|
17631
|
-
s.dir == r && !t.touchesRange(s.from, s.to) && n.push(new
|
|
17631
|
+
s.dir == r && !t.touchesRange(s.from, s.to) && n.push(new gl(t.mapPos(s.from, 1), t.mapPos(s.to, -1), s.dir, s.isolates, !1, s.order));
|
|
17632
17632
|
}
|
|
17633
17633
|
return n;
|
|
17634
17634
|
}
|
|
@@ -17663,16 +17663,16 @@ function cw(i, e) {
|
|
|
17663
17663
|
}
|
|
17664
17664
|
return r && (n = "Alt-" + n), o && (n = "Ctrl-" + n), l && (n = "Meta-" + n), s && (n = "Shift-" + n), n;
|
|
17665
17665
|
}
|
|
17666
|
-
function
|
|
17666
|
+
function Ss(i, e, t) {
|
|
17667
17667
|
return e.altKey && (i = "Alt-" + i), e.ctrlKey && (i = "Ctrl-" + i), e.metaKey && (i = "Meta-" + i), t !== !1 && e.shiftKey && (i = "Shift-" + i), i;
|
|
17668
17668
|
}
|
|
17669
17669
|
const hw = /* @__PURE__ */ hr.default(/* @__PURE__ */ ce.domEventHandlers({
|
|
17670
17670
|
keydown(i, e) {
|
|
17671
17671
|
return Rp(Bp(e.state), i, e, "editor");
|
|
17672
17672
|
}
|
|
17673
|
-
})),
|
|
17673
|
+
})), Xo = /* @__PURE__ */ de.define({ enables: hw }), $f = /* @__PURE__ */ new WeakMap();
|
|
17674
17674
|
function Bp(i) {
|
|
17675
|
-
let e = i.facet(
|
|
17675
|
+
let e = i.facet(Xo), t = $f.get(e);
|
|
17676
17676
|
return t || $f.set(e, t = mw(e.reduce((n, r) => n.concat(r), []))), t;
|
|
17677
17677
|
}
|
|
17678
17678
|
function fw(i, e, t) {
|
|
@@ -17743,11 +17743,11 @@ function Rp(i, e, t, n) {
|
|
|
17743
17743
|
}
|
|
17744
17744
|
return !1;
|
|
17745
17745
|
}, d = i[n], m, p;
|
|
17746
|
-
return d && (f(d[l +
|
|
17746
|
+
return d && (f(d[l + Ss(r, e, !s)]) ? a = !0 : s && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
17747
17747
|
!(ue.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
|
|
17748
|
-
!(ue.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (m = _n[e.keyCode]) && m != r ? (f(d[l +
|
|
17748
|
+
!(ue.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (m = _n[e.keyCode]) && m != r ? (f(d[l + Ss(m, e, !0)]) || e.shiftKey && (p = To[e.keyCode]) != r && p != m && f(d[l + Ss(p, e, !1)])) && (a = !0) : s && e.shiftKey && f(d[l + Ss(r, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), u && (a = !0), a && c && e.stopPropagation(), ju = null, a;
|
|
17749
17749
|
}
|
|
17750
|
-
class
|
|
17750
|
+
class $o {
|
|
17751
17751
|
/**
|
|
17752
17752
|
Create a marker with the given class and dimensions. If `width`
|
|
17753
17753
|
is null, the DOM element will get no width style.
|
|
@@ -17781,7 +17781,7 @@ class Xo {
|
|
|
17781
17781
|
if (!r)
|
|
17782
17782
|
return [];
|
|
17783
17783
|
let o = Ep(e);
|
|
17784
|
-
return [new
|
|
17784
|
+
return [new $o(t, r.left - o.left, r.top - o.top, null, r.bottom - r.top)];
|
|
17785
17785
|
} else
|
|
17786
17786
|
return gw(e, t, n);
|
|
17787
17787
|
}
|
|
@@ -17808,7 +17808,7 @@ function gw(i, e, t) {
|
|
|
17808
17808
|
return (p || d).to < (g || m).from - (p && g ? 1 : 0) || d.widgetLineBreaks > 1 && C.bottom + i.defaultLineHeight / 2 < E.top ? T.push(y(h, C.bottom, f, E.top)) : C.bottom < E.top && i.elementAtHeight((C.bottom + E.top) / 2).type == ni.Text && (C.bottom = E.top = (C.bottom + E.top) / 2), k(C).concat(T).concat(k(E));
|
|
17809
17809
|
}
|
|
17810
17810
|
function y(C, E, T, H) {
|
|
17811
|
-
return new
|
|
17811
|
+
return new $o(e, C - a.left, E - a.top, T - C, H - E);
|
|
17812
17812
|
}
|
|
17813
17813
|
function k({ top: C, bottom: E, horizontal: T }) {
|
|
17814
17814
|
let H = [];
|
|
@@ -17819,8 +17819,8 @@ function gw(i, e, t) {
|
|
|
17819
17819
|
function v(C, E, T) {
|
|
17820
17820
|
let H = 1e9, V = -1e9, B = [];
|
|
17821
17821
|
function D(P, F, Y, M, q) {
|
|
17822
|
-
let z = i.coordsAtPos(P, P == T.to ? -2 : 2),
|
|
17823
|
-
!z || !
|
|
17822
|
+
let z = i.coordsAtPos(P, P == T.to ? -2 : 2), ie = i.coordsAtPos(Y, Y == T.from ? 2 : -2);
|
|
17823
|
+
!z || !ie || (H = Math.min(z.top, ie.top, H), V = Math.max(z.bottom, ie.bottom, V), q == st.LTR ? B.push(o && F ? h : z.left, o && M ? f : ie.right) : B.push(!o && M ? h : ie.left, !o && F ? f : z.right));
|
|
17824
17824
|
}
|
|
17825
17825
|
let R = C ?? T.from, O = E ?? T.to;
|
|
17826
17826
|
for (let P of i.visibleRanges)
|
|
@@ -17828,10 +17828,10 @@ function gw(i, e, t) {
|
|
|
17828
17828
|
for (let F = Math.max(P.from, R), Y = Math.min(P.to, O); ; ) {
|
|
17829
17829
|
let M = i.state.doc.lineAt(F);
|
|
17830
17830
|
for (let q of i.bidiSpans(M)) {
|
|
17831
|
-
let z = q.from + M.from,
|
|
17831
|
+
let z = q.from + M.from, ie = q.to + M.from;
|
|
17832
17832
|
if (z >= Y)
|
|
17833
17833
|
break;
|
|
17834
|
-
|
|
17834
|
+
ie > F && D(Math.max(z, F), C == null && z <= R, Math.min(ie, Y), E == null && ie >= O, q.dir);
|
|
17835
17835
|
}
|
|
17836
17836
|
if (F = M.to + 1, F >= Y)
|
|
17837
17837
|
break;
|
|
@@ -17851,13 +17851,13 @@ class vw {
|
|
|
17851
17851
|
this.view = e, this.layer = t, this.drawn = [], this.scaleX = 1, this.scaleY = 1, this.measureReq = { read: this.measure.bind(this), write: this.draw.bind(this) }, this.dom = e.scrollDOM.appendChild(document.createElement("div")), this.dom.classList.add("cm-layer"), t.above && this.dom.classList.add("cm-layer-above"), t.class && this.dom.classList.add(t.class), this.scale(), this.dom.setAttribute("aria-hidden", "true"), this.setOrder(e.state), e.requestMeasure(this.measureReq), t.mount && t.mount(this.dom, e);
|
|
17852
17852
|
}
|
|
17853
17853
|
update(e) {
|
|
17854
|
-
e.startState.facet(
|
|
17854
|
+
e.startState.facet(Us) != e.state.facet(Us) && this.setOrder(e.state), (this.layer.update(e, this.dom) || e.geometryChanged) && (this.scale(), e.view.requestMeasure(this.measureReq));
|
|
17855
17855
|
}
|
|
17856
17856
|
docViewUpdate(e) {
|
|
17857
17857
|
this.layer.updateOnDocViewUpdate !== !1 && e.requestMeasure(this.measureReq);
|
|
17858
17858
|
}
|
|
17859
17859
|
setOrder(e) {
|
|
17860
|
-
let t = 0, n = e.facet(
|
|
17860
|
+
let t = 0, n = e.facet(Us);
|
|
17861
17861
|
for (; t < n.length && n[t] != this.layer; )
|
|
17862
17862
|
t++;
|
|
17863
17863
|
this.dom.style.zIndex = String((this.layer.above ? 150 : -1) - t);
|
|
@@ -17885,11 +17885,11 @@ class vw {
|
|
|
17885
17885
|
this.layer.destroy && this.layer.destroy(this.dom, this.view), this.dom.remove();
|
|
17886
17886
|
}
|
|
17887
17887
|
}
|
|
17888
|
-
const
|
|
17888
|
+
const Us = /* @__PURE__ */ de.define();
|
|
17889
17889
|
function Lp(i) {
|
|
17890
17890
|
return [
|
|
17891
17891
|
ft.define((e) => new vw(e, i)),
|
|
17892
|
-
|
|
17892
|
+
Us.of(i)
|
|
17893
17893
|
];
|
|
17894
17894
|
}
|
|
17895
17895
|
const Po = /* @__PURE__ */ de.define({
|
|
@@ -17923,7 +17923,7 @@ const bw = /* @__PURE__ */ Lp({
|
|
|
17923
17923
|
let o = r == e.selection.main;
|
|
17924
17924
|
if (r.empty || t.drawRangeCursor) {
|
|
17925
17925
|
let s = o ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", l = r.empty ? r : K.cursor(r.head, r.head > r.anchor ? -1 : 1);
|
|
17926
|
-
for (let a of
|
|
17926
|
+
for (let a of $o.forRange(i, s, l))
|
|
17927
17927
|
n.push(a);
|
|
17928
17928
|
}
|
|
17929
17929
|
}
|
|
@@ -17945,7 +17945,7 @@ function ed(i, e) {
|
|
|
17945
17945
|
const xw = /* @__PURE__ */ Lp({
|
|
17946
17946
|
above: !1,
|
|
17947
17947
|
markers(i) {
|
|
17948
|
-
return i.state.selection.ranges.map((e) => e.empty ? [] :
|
|
17948
|
+
return i.state.selection.ranges.map((e) => e.empty ? [] : $o.forRange(i, "cm-selectionBackground", e)).reduce((e, t) => e.concat(t));
|
|
17949
17949
|
},
|
|
17950
17950
|
update(i, e) {
|
|
17951
17951
|
return i.docChanged || i.selectionSet || i.viewportChanged || Ip(i);
|
|
@@ -18148,7 +18148,7 @@ function Tw() {
|
|
|
18148
18148
|
}
|
|
18149
18149
|
return La || !1;
|
|
18150
18150
|
}
|
|
18151
|
-
const
|
|
18151
|
+
const Ks = /* @__PURE__ */ de.define({
|
|
18152
18152
|
combine(i) {
|
|
18153
18153
|
let e = Bi(i, {
|
|
18154
18154
|
render: null,
|
|
@@ -18159,13 +18159,13 @@ const Us = /* @__PURE__ */ de.define({
|
|
|
18159
18159
|
}
|
|
18160
18160
|
});
|
|
18161
18161
|
function Dw(i = {}) {
|
|
18162
|
-
return [
|
|
18162
|
+
return [Ks.of(i), qw()];
|
|
18163
18163
|
}
|
|
18164
18164
|
let id = null;
|
|
18165
18165
|
function qw() {
|
|
18166
18166
|
return id || (id = ft.fromClass(class {
|
|
18167
18167
|
constructor(i) {
|
|
18168
|
-
this.view = i, this.decorations = xe.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(i.state.facet(
|
|
18168
|
+
this.view = i, this.decorations = xe.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(i.state.facet(Ks)), this.decorations = this.decorator.createDeco(i);
|
|
18169
18169
|
}
|
|
18170
18170
|
makeDecorator(i) {
|
|
18171
18171
|
return new Mw({
|
|
@@ -18184,8 +18184,8 @@ function qw() {
|
|
|
18184
18184
|
});
|
|
18185
18185
|
}
|
|
18186
18186
|
update(i) {
|
|
18187
|
-
let e = i.state.facet(
|
|
18188
|
-
i.startState.facet(
|
|
18187
|
+
let e = i.state.facet(Ks);
|
|
18188
|
+
i.startState.facet(Ks) != e ? (this.decorator = this.makeDecorator(e), this.decorations = this.decorator.createDeco(i.view)) : this.decorations = this.decorator.updateDeco(i, this.decorations);
|
|
18189
18189
|
}
|
|
18190
18190
|
}, {
|
|
18191
18191
|
decorations: (i) => i.decorations
|
|
@@ -18261,7 +18261,7 @@ class Vw extends mn {
|
|
|
18261
18261
|
let t = e.firstChild ? Fr(e.firstChild) : [];
|
|
18262
18262
|
if (!t.length)
|
|
18263
18263
|
return null;
|
|
18264
|
-
let n = window.getComputedStyle(e.parentNode), r =
|
|
18264
|
+
let n = window.getComputedStyle(e.parentNode), r = Ko(t[0], n.direction != "rtl"), o = parseInt(n.lineHeight);
|
|
18265
18265
|
return r.bottom - r.top > o * 1.5 ? { left: r.left, right: r.right, top: r.top, bottom: r.top + o } : r;
|
|
18266
18266
|
}
|
|
18267
18267
|
ignoreEvent() {
|
|
@@ -18370,7 +18370,7 @@ function Uw(i = {}) {
|
|
|
18370
18370
|
})
|
|
18371
18371
|
];
|
|
18372
18372
|
}
|
|
18373
|
-
const
|
|
18373
|
+
const Cs = "-10000px";
|
|
18374
18374
|
class Fp {
|
|
18375
18375
|
constructor(e, t, n, r) {
|
|
18376
18376
|
this.facet = t, this.createTooltipView = n, this.removeTooltipView = r, this.input = e.state.facet(t), this.tooltips = this.input.filter((s) => s);
|
|
@@ -18469,7 +18469,7 @@ const Ia = /* @__PURE__ */ de.define({
|
|
|
18469
18469
|
let r = document.createElement("div");
|
|
18470
18470
|
r.className = "cm-tooltip-arrow", t.dom.appendChild(r);
|
|
18471
18471
|
}
|
|
18472
|
-
return t.dom.style.position = this.position, t.dom.style.top =
|
|
18472
|
+
return t.dom.style.position = this.position, t.dom.style.top = Cs, t.dom.style.left = "0px", this.container.insertBefore(t.dom, n), t.mount && t.mount(this.view), this.resizeObserver && this.resizeObserver.observe(t.dom), t;
|
|
18473
18473
|
}
|
|
18474
18474
|
destroy() {
|
|
18475
18475
|
var i, e, t;
|
|
@@ -18525,7 +18525,7 @@ const Ia = /* @__PURE__ */ de.define({
|
|
|
18525
18525
|
for (let l = 0; l < this.manager.tooltips.length; l++) {
|
|
18526
18526
|
let a = this.manager.tooltips[l], u = this.manager.tooltipViews[l], { dom: c } = u, h = i.pos[l], f = i.size[l];
|
|
18527
18527
|
if (!h || a.clip !== !1 && (h.bottom <= Math.max(t.top, n.top) || h.top >= Math.min(t.bottom, n.bottom) || h.right < Math.max(t.left, n.left) - 0.1 || h.left > Math.min(t.right, n.right) + 0.1)) {
|
|
18528
|
-
c.style.top =
|
|
18528
|
+
c.style.top = Cs;
|
|
18529
18529
|
continue;
|
|
18530
18530
|
}
|
|
18531
18531
|
let d = a.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, m = d ? 7 : 0, p = f.right - f.left, g = (e = rd.get(u)) !== null && e !== void 0 ? e : f.bottom - f.top, y = u.offset || Gw, k = this.view.textDirection == st.LTR, v = f.width > n.right - n.left ? k ? n.left : n.right - f.width : k ? Math.max(n.left, Math.min(h.left - (d ? 14 : 0) + y.x, n.right - p)) : Math.min(Math.max(n.left, h.left - p + (d ? 14 : 0) - y.x), n.right - p), x = this.above[l];
|
|
@@ -18533,7 +18533,7 @@ const Ia = /* @__PURE__ */ de.define({
|
|
|
18533
18533
|
let C = (x ? h.top - n.top : n.bottom - h.bottom) - m;
|
|
18534
18534
|
if (C < g && u.resize !== !1) {
|
|
18535
18535
|
if (C < this.view.defaultLineHeight) {
|
|
18536
|
-
c.style.top =
|
|
18536
|
+
c.style.top = Cs;
|
|
18537
18537
|
continue;
|
|
18538
18538
|
}
|
|
18539
18539
|
rd.set(u, g), c.style.height = (g = C) / o + "px";
|
|
@@ -18552,7 +18552,7 @@ const Ia = /* @__PURE__ */ de.define({
|
|
|
18552
18552
|
maybeMeasure() {
|
|
18553
18553
|
if (this.manager.tooltips.length && (this.view.inView && this.view.requestMeasure(this.measureReq), this.inView != this.view.inView && (this.inView = this.view.inView, !this.inView)))
|
|
18554
18554
|
for (let i of this.manager.tooltipViews)
|
|
18555
|
-
i.dom.style.top =
|
|
18555
|
+
i.dom.style.top = Cs;
|
|
18556
18556
|
}
|
|
18557
18557
|
}, {
|
|
18558
18558
|
eventObservers: {
|
|
@@ -18628,7 +18628,7 @@ const Yw = /* @__PURE__ */ ce.baseTheme({
|
|
|
18628
18628
|
}
|
|
18629
18629
|
}), Gw = { x: 0, y: 0 }, Ul = /* @__PURE__ */ de.define({
|
|
18630
18630
|
enables: [Hc, Yw]
|
|
18631
|
-
}),
|
|
18631
|
+
}), pl = /* @__PURE__ */ de.define({
|
|
18632
18632
|
combine: (i) => i.reduce((e, t) => e.concat(t), [])
|
|
18633
18633
|
});
|
|
18634
18634
|
class Kl {
|
|
@@ -18637,7 +18637,7 @@ class Kl {
|
|
|
18637
18637
|
return new Kl(e);
|
|
18638
18638
|
}
|
|
18639
18639
|
constructor(e) {
|
|
18640
|
-
this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new Fp(e,
|
|
18640
|
+
this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new Fp(e, pl, (t, n) => this.createHostedView(t, n), (t) => t.dom.remove());
|
|
18641
18641
|
}
|
|
18642
18642
|
createHostedView(e, t) {
|
|
18643
18643
|
let n = e.create(this.view);
|
|
@@ -18686,8 +18686,8 @@ class Kl {
|
|
|
18686
18686
|
return this.passProp("resize");
|
|
18687
18687
|
}
|
|
18688
18688
|
}
|
|
18689
|
-
const Jw = /* @__PURE__ */ Ul.compute([
|
|
18690
|
-
let e = i.facet(
|
|
18689
|
+
const Jw = /* @__PURE__ */ Ul.compute([pl], (i) => {
|
|
18690
|
+
let e = i.facet(pl);
|
|
18691
18691
|
return e.length === 0 ? null : {
|
|
18692
18692
|
pos: Math.min(...e.map((t) => t.pos)),
|
|
18693
18693
|
end: Math.max(...e.map((t) => {
|
|
@@ -18771,14 +18771,14 @@ class Xw {
|
|
|
18771
18771
|
clearTimeout(this.hoverTimeout), this.view.dom.removeEventListener("mouseleave", this.mouseleave), this.view.dom.removeEventListener("mousemove", this.mousemove);
|
|
18772
18772
|
}
|
|
18773
18773
|
}
|
|
18774
|
-
const
|
|
18774
|
+
const Ms = 4;
|
|
18775
18775
|
function $w(i, e) {
|
|
18776
18776
|
let { left: t, right: n, top: r, bottom: o } = i.getBoundingClientRect(), s;
|
|
18777
18777
|
if (s = i.querySelector(".cm-tooltip-arrow")) {
|
|
18778
18778
|
let l = s.getBoundingClientRect();
|
|
18779
18779
|
r = Math.min(l.top, r), o = Math.max(l.bottom, o);
|
|
18780
18780
|
}
|
|
18781
|
-
return e.clientX >= t -
|
|
18781
|
+
return e.clientX >= t - Ms && e.clientX <= n + Ms && e.clientY >= r - Ms && e.clientY <= o + Ms;
|
|
18782
18782
|
}
|
|
18783
18783
|
function Zw(i, e, t, n, r, o) {
|
|
18784
18784
|
let s = i.scrollDOM.getBoundingClientRect(), l = i.documentTop + i.documentPadding.top + i.contentHeight;
|
|
@@ -18808,7 +18808,7 @@ function eS(i, e = {}) {
|
|
|
18808
18808
|
s.is(t) && (r = s.value), s.is(tS) && (r = []);
|
|
18809
18809
|
return r;
|
|
18810
18810
|
},
|
|
18811
|
-
provide: (r) =>
|
|
18811
|
+
provide: (r) => pl.from(r)
|
|
18812
18812
|
});
|
|
18813
18813
|
return {
|
|
18814
18814
|
active: n,
|
|
@@ -18849,13 +18849,13 @@ const Hp = /* @__PURE__ */ ft.fromClass(class {
|
|
|
18849
18849
|
constructor(i) {
|
|
18850
18850
|
this.input = i.state.facet(Bo), this.specs = this.input.filter((t) => t), this.panels = this.specs.map((t) => t(i));
|
|
18851
18851
|
let e = i.state.facet(sd);
|
|
18852
|
-
this.top = new
|
|
18852
|
+
this.top = new As(i, !0, e.topContainer), this.bottom = new As(i, !1, e.bottomContainer), this.top.sync(this.panels.filter((t) => t.top)), this.bottom.sync(this.panels.filter((t) => !t.top));
|
|
18853
18853
|
for (let t of this.panels)
|
|
18854
18854
|
t.dom.classList.add("cm-panel"), t.mount && t.mount();
|
|
18855
18855
|
}
|
|
18856
18856
|
update(i) {
|
|
18857
18857
|
let e = i.state.facet(sd);
|
|
18858
|
-
this.top.container != e.topContainer && (this.top.sync([]), this.top = new
|
|
18858
|
+
this.top.container != e.topContainer && (this.top.sync([]), this.top = new As(i.view, !0, e.topContainer)), this.bottom.container != e.bottomContainer && (this.bottom.sync([]), this.bottom = new As(i.view, !1, e.bottomContainer)), this.top.syncClasses(), this.bottom.syncClasses();
|
|
18859
18859
|
let t = i.state.facet(Bo);
|
|
18860
18860
|
if (t != this.input) {
|
|
18861
18861
|
let n = t.filter((a) => a), r = [], o = [], s = [], l = [];
|
|
@@ -18879,7 +18879,7 @@ const Hp = /* @__PURE__ */ ft.fromClass(class {
|
|
|
18879
18879
|
return t && { top: t.top.scrollMargin(), bottom: t.bottom.scrollMargin() };
|
|
18880
18880
|
})
|
|
18881
18881
|
});
|
|
18882
|
-
class
|
|
18882
|
+
class As {
|
|
18883
18883
|
constructor(e, t, n) {
|
|
18884
18884
|
this.view = e, this.top = t, this.container = n, this.dom = void 0, this.classes = "", this.panels = [], this.syncClasses();
|
|
18885
18885
|
}
|
|
@@ -18953,7 +18953,7 @@ Xi.prototype.toDOM = void 0;
|
|
|
18953
18953
|
Xi.prototype.mapMode = ti.TrackBefore;
|
|
18954
18954
|
Xi.prototype.startSide = Xi.prototype.endSide = -1;
|
|
18955
18955
|
Xi.prototype.point = !0;
|
|
18956
|
-
const
|
|
18956
|
+
const Ys = /* @__PURE__ */ de.define(), iS = /* @__PURE__ */ de.define(), nS = {
|
|
18957
18957
|
class: "",
|
|
18958
18958
|
renderEmptyElements: !1,
|
|
18959
18959
|
elementStyle: "",
|
|
@@ -19001,7 +19001,7 @@ const rS = /* @__PURE__ */ ft.fromClass(class {
|
|
|
19001
19001
|
syncGutters(i) {
|
|
19002
19002
|
let e = this.dom.nextSibling;
|
|
19003
19003
|
i && (this.dom.remove(), this.domAfter && this.domAfter.remove());
|
|
19004
|
-
let t = Le.iter(this.view.state.facet(
|
|
19004
|
+
let t = Le.iter(this.view.state.facet(Ys), this.view.viewport.from), n = [], r = this.gutters.map((o) => new oS(o, this.view.viewport, -this.view.documentPadding.top));
|
|
19005
19005
|
for (let o of this.view.viewportLineBlocks)
|
|
19006
19006
|
if (n.length && (n = []), Array.isArray(o.type)) {
|
|
19007
19007
|
let s = !0;
|
|
@@ -19026,7 +19026,7 @@ const rS = /* @__PURE__ */ ft.fromClass(class {
|
|
|
19026
19026
|
i && (this.view.scrollDOM.insertBefore(this.dom, e), this.domAfter && this.view.scrollDOM.appendChild(this.domAfter));
|
|
19027
19027
|
}
|
|
19028
19028
|
updateGutters(i) {
|
|
19029
|
-
let e = i.startState.facet(bo), t = i.state.facet(bo), n = i.docChanged || i.heightChanged || i.viewportChanged || !Le.eq(i.startState.facet(
|
|
19029
|
+
let e = i.startState.facet(bo), t = i.state.facet(bo), n = i.docChanged || i.heightChanged || i.viewportChanged || !Le.eq(i.startState.facet(Ys), i.state.facet(Ys), i.view.viewport.from, i.view.viewport.to);
|
|
19030
19030
|
if (e == t)
|
|
19031
19031
|
for (let r of this.gutters)
|
|
19032
19032
|
r.update(i) && (n = !0);
|
|
@@ -19255,7 +19255,7 @@ const cS = /* @__PURE__ */ new class extends Xi {
|
|
|
19255
19255
|
constructor() {
|
|
19256
19256
|
super(...arguments), this.elementClass = "cm-activeLineGutter";
|
|
19257
19257
|
}
|
|
19258
|
-
}(), hS = /* @__PURE__ */
|
|
19258
|
+
}(), hS = /* @__PURE__ */ Ys.compute(["selection"], (i) => {
|
|
19259
19259
|
let e = [], t = -1;
|
|
19260
19260
|
for (let n of i.selection.ranges) {
|
|
19261
19261
|
let r = i.doc.lineAt(n.head).from;
|
|
@@ -19311,7 +19311,7 @@ Pe.isolate = new Pe({ deserialize: (i) => {
|
|
|
19311
19311
|
Pe.contextHash = new Pe({ perNode: !0 });
|
|
19312
19312
|
Pe.lookAhead = new Pe({ perNode: !0 });
|
|
19313
19313
|
Pe.mounted = new Pe({ perNode: !0 });
|
|
19314
|
-
class
|
|
19314
|
+
class vl {
|
|
19315
19315
|
constructor(e, t, n) {
|
|
19316
19316
|
this.tree = e, this.overlay = t, this.parser = n;
|
|
19317
19317
|
}
|
|
@@ -19452,7 +19452,7 @@ class zc {
|
|
|
19452
19452
|
return new zc(t);
|
|
19453
19453
|
}
|
|
19454
19454
|
}
|
|
19455
|
-
const
|
|
19455
|
+
const Os = /* @__PURE__ */ new WeakMap(), fd = /* @__PURE__ */ new WeakMap();
|
|
19456
19456
|
var Ot;
|
|
19457
19457
|
(function(i) {
|
|
19458
19458
|
i[i.ExcludeBuffers = 1] = "ExcludeBuffers", i[i.IncludeAnonymous = 2] = "IncludeAnonymous", i[i.IgnoreMounts = 4] = "IgnoreMounts", i[i.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
@@ -19472,7 +19472,7 @@ class xt {
|
|
|
19472
19472
|
@internal
|
|
19473
19473
|
*/
|
|
19474
19474
|
toString() {
|
|
19475
|
-
let e =
|
|
19475
|
+
let e = vl.get(this);
|
|
19476
19476
|
if (e && !e.overlay)
|
|
19477
19477
|
return e.tree.toString();
|
|
19478
19478
|
let t = "";
|
|
@@ -19496,8 +19496,8 @@ class xt {
|
|
|
19496
19496
|
[`moveTo`](#common.TreeCursor.moveTo).
|
|
19497
19497
|
*/
|
|
19498
19498
|
cursorAt(e, t = 0, n = 0) {
|
|
19499
|
-
let r =
|
|
19500
|
-
return o.moveTo(e, t),
|
|
19499
|
+
let r = Os.get(this) || this.topNode, o = new Yu(r);
|
|
19500
|
+
return o.moveTo(e, t), Os.set(this, o._tree), o;
|
|
19501
19501
|
}
|
|
19502
19502
|
/**
|
|
19503
19503
|
Get a [syntax node](#common.SyntaxNode) object for the top of the
|
|
@@ -19518,8 +19518,8 @@ class xt {
|
|
|
19518
19518
|
[`resolveInner`](#common.Tree.resolveInner) instead.
|
|
19519
19519
|
*/
|
|
19520
19520
|
resolve(e, t = 0) {
|
|
19521
|
-
let n = Ro(
|
|
19522
|
-
return
|
|
19521
|
+
let n = Ro(Os.get(this) || this.topNode, e, t, !1);
|
|
19522
|
+
return Os.set(this, n), n;
|
|
19523
19523
|
}
|
|
19524
19524
|
/**
|
|
19525
19525
|
Like [`resolve`](#common.Tree.resolve), but will enter
|
|
@@ -19780,7 +19780,7 @@ class Ci extends Yp {
|
|
|
19780
19780
|
return new On(new gS(s, c, e, h), null, f);
|
|
19781
19781
|
} else if (o & Ot.IncludeAnonymous || !c.type.isAnonymous || Wc(c)) {
|
|
19782
19782
|
let f;
|
|
19783
|
-
if (!(o & Ot.IgnoreMounts) && (f =
|
|
19783
|
+
if (!(o & Ot.IgnoreMounts) && (f = vl.get(c)) && !f.overlay)
|
|
19784
19784
|
return new Ci(f.tree, h, e, s);
|
|
19785
19785
|
let d = new Ci(c, h, e, s);
|
|
19786
19786
|
return o & Ot.IncludeAnonymous || !d.type.isAnonymous ? d : d.nextChild(t < 0 ? c.children.length - 1 : 0, t, n, r);
|
|
@@ -19829,7 +19829,7 @@ class Ci extends Yp {
|
|
|
19829
19829
|
}
|
|
19830
19830
|
enter(e, t, n = 0) {
|
|
19831
19831
|
let r;
|
|
19832
|
-
if (!(n & Ot.IgnoreOverlays) && (r =
|
|
19832
|
+
if (!(n & Ot.IgnoreOverlays) && (r = vl.get(this._tree)) && r.overlay) {
|
|
19833
19833
|
let o = e - this.from;
|
|
19834
19834
|
for (let { from: s, to: l } of r.overlay)
|
|
19835
19835
|
if ((t > 0 ? s <= o : s < o) && (t < 0 ? l >= o : l > o))
|
|
@@ -20036,7 +20036,7 @@ function vS(i, e, t) {
|
|
|
20036
20036
|
let s = o.parent;
|
|
20037
20037
|
(r || (r = [n])).push(s.resolve(e, t)), o = s;
|
|
20038
20038
|
} else {
|
|
20039
|
-
let s =
|
|
20039
|
+
let s = vl.get(o.tree);
|
|
20040
20040
|
if (s && s.overlay && s.overlay[0].from <= e && s.overlay[s.overlay.length - 1].to >= e) {
|
|
20041
20041
|
let l = new Ci(s.tree, s.overlay[0].from + o.from, -1, o);
|
|
20042
20042
|
(r || (r = [n])).push(Ro(l, e, t, !1));
|
|
@@ -20363,12 +20363,12 @@ function yS(i) {
|
|
|
20363
20363
|
return;
|
|
20364
20364
|
} else
|
|
20365
20365
|
throw new RangeError(`Unrecognized record size: ${P}`);
|
|
20366
|
-
let M = a[D], q, z,
|
|
20366
|
+
let M = a[D], q, z, ie = R - C;
|
|
20367
20367
|
if (O - R <= r && (z = g(l.pos - E, V))) {
|
|
20368
20368
|
let I = new Uint16Array(z.size - z.skip), w = l.pos - z.size, N = I.length;
|
|
20369
20369
|
for (; l.pos > w; )
|
|
20370
20370
|
N = y(z.start, I, N);
|
|
20371
|
-
q = new Rn(I, O - z.start, n),
|
|
20371
|
+
q = new Rn(I, O - z.start, n), ie = z.start - C;
|
|
20372
20372
|
} else {
|
|
20373
20373
|
let I = l.pos - P;
|
|
20374
20374
|
l.next();
|
|
@@ -20381,7 +20381,7 @@ function yS(i) {
|
|
|
20381
20381
|
} else
|
|
20382
20382
|
q = p(M, w, N, O - R, F - O, Y);
|
|
20383
20383
|
}
|
|
20384
|
-
T.push(q), H.push(
|
|
20384
|
+
T.push(q), H.push(ie);
|
|
20385
20385
|
}
|
|
20386
20386
|
function f(C, E, T, H) {
|
|
20387
20387
|
let V = [], B = 0, D = -1;
|
|
@@ -20475,7 +20475,7 @@ function yS(i) {
|
|
|
20475
20475
|
return new xt(a[i.topID], k.reverse(), v.reverse(), x);
|
|
20476
20476
|
}
|
|
20477
20477
|
const md = /* @__PURE__ */ new WeakMap();
|
|
20478
|
-
function
|
|
20478
|
+
function Gs(i, e) {
|
|
20479
20479
|
if (!i.isAnonymous || e instanceof Rn || e.type != i)
|
|
20480
20480
|
return 1;
|
|
20481
20481
|
let t = md.get(e);
|
|
@@ -20486,7 +20486,7 @@ function Ys(i, e) {
|
|
|
20486
20486
|
t = 1;
|
|
20487
20487
|
break;
|
|
20488
20488
|
}
|
|
20489
|
-
t +=
|
|
20489
|
+
t += Gs(i, n);
|
|
20490
20490
|
}
|
|
20491
20491
|
md.set(e, t);
|
|
20492
20492
|
}
|
|
@@ -20495,16 +20495,16 @@ function Ys(i, e) {
|
|
|
20495
20495
|
function Qc(i, e, t, n, r, o, s, l, a) {
|
|
20496
20496
|
let u = 0;
|
|
20497
20497
|
for (let m = n; m < r; m++)
|
|
20498
|
-
u +=
|
|
20498
|
+
u += Gs(i, e[m]);
|
|
20499
20499
|
let c = Math.ceil(
|
|
20500
20500
|
u * 1.5 / 8
|
|
20501
20501
|
/* Balance.BranchFactor */
|
|
20502
20502
|
), h = [], f = [];
|
|
20503
20503
|
function d(m, p, g, y, k) {
|
|
20504
20504
|
for (let v = g; v < y; ) {
|
|
20505
|
-
let x = v, C = p[v], E =
|
|
20505
|
+
let x = v, C = p[v], E = Gs(i, m[v]);
|
|
20506
20506
|
for (v++; v < y; v++) {
|
|
20507
|
-
let T =
|
|
20507
|
+
let T = Gs(i, m[v]);
|
|
20508
20508
|
if (E + T >= c)
|
|
20509
20509
|
break;
|
|
20510
20510
|
E += T;
|
|
@@ -20675,12 +20675,12 @@ class xi {
|
|
|
20675
20675
|
`m1(m3(t1)`, and so on.
|
|
20676
20676
|
*/
|
|
20677
20677
|
static defineModifier(e) {
|
|
20678
|
-
let t = new
|
|
20679
|
-
return (n) => n.modified.indexOf(t) > -1 ? n :
|
|
20678
|
+
let t = new yl(e);
|
|
20679
|
+
return (n) => n.modified.indexOf(t) > -1 ? n : yl.get(n.base || n, n.modified.concat(t).sort((r, o) => r.id - o.id));
|
|
20680
20680
|
}
|
|
20681
20681
|
}
|
|
20682
20682
|
let kS = 0;
|
|
20683
|
-
class
|
|
20683
|
+
class yl {
|
|
20684
20684
|
constructor(e) {
|
|
20685
20685
|
this.name = e, this.instances = [], this.id = kS++;
|
|
20686
20686
|
}
|
|
@@ -20697,7 +20697,7 @@ class vl {
|
|
|
20697
20697
|
for (let l of e.set)
|
|
20698
20698
|
if (!l.modified.length)
|
|
20699
20699
|
for (let a of s)
|
|
20700
|
-
r.push(
|
|
20700
|
+
r.push(yl.get(l, a));
|
|
20701
20701
|
return o;
|
|
20702
20702
|
}
|
|
20703
20703
|
}
|
|
@@ -20864,23 +20864,23 @@ function OS(i) {
|
|
|
20864
20864
|
e = e.next;
|
|
20865
20865
|
return e || null;
|
|
20866
20866
|
}
|
|
20867
|
-
const
|
|
20867
|
+
const ne = xi.define, Ts = ne(), yn = ne(), gd = ne(yn), pd = ne(yn), bn = ne(), Ds = ne(bn), Ha = ne(bn), Hi = ne(), jn = ne(Hi), Fi = ne(), Ni = ne(), Gu = ne(), to = ne(Gu), qs = ne(), j = {
|
|
20868
20868
|
/**
|
|
20869
20869
|
A comment.
|
|
20870
20870
|
*/
|
|
20871
|
-
comment:
|
|
20871
|
+
comment: Ts,
|
|
20872
20872
|
/**
|
|
20873
20873
|
A line [comment](#highlight.tags.comment).
|
|
20874
20874
|
*/
|
|
20875
|
-
lineComment:
|
|
20875
|
+
lineComment: ne(Ts),
|
|
20876
20876
|
/**
|
|
20877
20877
|
A block [comment](#highlight.tags.comment).
|
|
20878
20878
|
*/
|
|
20879
|
-
blockComment:
|
|
20879
|
+
blockComment: ne(Ts),
|
|
20880
20880
|
/**
|
|
20881
20881
|
A documentation [comment](#highlight.tags.comment).
|
|
20882
20882
|
*/
|
|
20883
|
-
docComment:
|
|
20883
|
+
docComment: ne(Ts),
|
|
20884
20884
|
/**
|
|
20885
20885
|
Any kind of identifier.
|
|
20886
20886
|
*/
|
|
@@ -20888,7 +20888,7 @@ const ie = xi.define, Os = ie(), yn = ie(), gd = ie(yn), pd = ie(yn), bn = ie(),
|
|
|
20888
20888
|
/**
|
|
20889
20889
|
The [name](#highlight.tags.name) of a variable.
|
|
20890
20890
|
*/
|
|
20891
|
-
variableName:
|
|
20891
|
+
variableName: ne(yn),
|
|
20892
20892
|
/**
|
|
20893
20893
|
A type [name](#highlight.tags.name).
|
|
20894
20894
|
*/
|
|
@@ -20896,7 +20896,7 @@ const ie = xi.define, Os = ie(), yn = ie(), gd = ie(yn), pd = ie(yn), bn = ie(),
|
|
|
20896
20896
|
/**
|
|
20897
20897
|
A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
|
|
20898
20898
|
*/
|
|
20899
|
-
tagName:
|
|
20899
|
+
tagName: ne(gd),
|
|
20900
20900
|
/**
|
|
20901
20901
|
A property or field [name](#highlight.tags.name).
|
|
20902
20902
|
*/
|
|
@@ -20904,23 +20904,23 @@ const ie = xi.define, Os = ie(), yn = ie(), gd = ie(yn), pd = ie(yn), bn = ie(),
|
|
|
20904
20904
|
/**
|
|
20905
20905
|
An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
|
|
20906
20906
|
*/
|
|
20907
|
-
attributeName:
|
|
20907
|
+
attributeName: ne(pd),
|
|
20908
20908
|
/**
|
|
20909
20909
|
The [name](#highlight.tags.name) of a class.
|
|
20910
20910
|
*/
|
|
20911
|
-
className:
|
|
20911
|
+
className: ne(yn),
|
|
20912
20912
|
/**
|
|
20913
20913
|
A label [name](#highlight.tags.name).
|
|
20914
20914
|
*/
|
|
20915
|
-
labelName:
|
|
20915
|
+
labelName: ne(yn),
|
|
20916
20916
|
/**
|
|
20917
20917
|
A namespace [name](#highlight.tags.name).
|
|
20918
20918
|
*/
|
|
20919
|
-
namespace:
|
|
20919
|
+
namespace: ne(yn),
|
|
20920
20920
|
/**
|
|
20921
20921
|
The [name](#highlight.tags.name) of a macro.
|
|
20922
20922
|
*/
|
|
20923
|
-
macroName:
|
|
20923
|
+
macroName: ne(yn),
|
|
20924
20924
|
/**
|
|
20925
20925
|
A literal value.
|
|
20926
20926
|
*/
|
|
@@ -20928,19 +20928,19 @@ const ie = xi.define, Os = ie(), yn = ie(), gd = ie(yn), pd = ie(yn), bn = ie(),
|
|
|
20928
20928
|
/**
|
|
20929
20929
|
A string [literal](#highlight.tags.literal).
|
|
20930
20930
|
*/
|
|
20931
|
-
string:
|
|
20931
|
+
string: Ds,
|
|
20932
20932
|
/**
|
|
20933
20933
|
A documentation [string](#highlight.tags.string).
|
|
20934
20934
|
*/
|
|
20935
|
-
docString:
|
|
20935
|
+
docString: ne(Ds),
|
|
20936
20936
|
/**
|
|
20937
20937
|
A character literal (subtag of [string](#highlight.tags.string)).
|
|
20938
20938
|
*/
|
|
20939
|
-
character:
|
|
20939
|
+
character: ne(Ds),
|
|
20940
20940
|
/**
|
|
20941
20941
|
An attribute value (subtag of [string](#highlight.tags.string)).
|
|
20942
20942
|
*/
|
|
20943
|
-
attributeValue:
|
|
20943
|
+
attributeValue: ne(Ds),
|
|
20944
20944
|
/**
|
|
20945
20945
|
A number [literal](#highlight.tags.literal).
|
|
20946
20946
|
*/
|
|
@@ -20948,32 +20948,32 @@ const ie = xi.define, Os = ie(), yn = ie(), gd = ie(yn), pd = ie(yn), bn = ie(),
|
|
|
20948
20948
|
/**
|
|
20949
20949
|
An integer [number](#highlight.tags.number) literal.
|
|
20950
20950
|
*/
|
|
20951
|
-
integer:
|
|
20951
|
+
integer: ne(Ha),
|
|
20952
20952
|
/**
|
|
20953
20953
|
A floating-point [number](#highlight.tags.number) literal.
|
|
20954
20954
|
*/
|
|
20955
|
-
float:
|
|
20955
|
+
float: ne(Ha),
|
|
20956
20956
|
/**
|
|
20957
20957
|
A boolean [literal](#highlight.tags.literal).
|
|
20958
20958
|
*/
|
|
20959
|
-
bool:
|
|
20959
|
+
bool: ne(bn),
|
|
20960
20960
|
/**
|
|
20961
20961
|
Regular expression [literal](#highlight.tags.literal).
|
|
20962
20962
|
*/
|
|
20963
|
-
regexp:
|
|
20963
|
+
regexp: ne(bn),
|
|
20964
20964
|
/**
|
|
20965
20965
|
An escape [literal](#highlight.tags.literal), for example a
|
|
20966
20966
|
backslash escape in a string.
|
|
20967
20967
|
*/
|
|
20968
|
-
escape:
|
|
20968
|
+
escape: ne(bn),
|
|
20969
20969
|
/**
|
|
20970
20970
|
A color [literal](#highlight.tags.literal).
|
|
20971
20971
|
*/
|
|
20972
|
-
color:
|
|
20972
|
+
color: ne(bn),
|
|
20973
20973
|
/**
|
|
20974
20974
|
A URL [literal](#highlight.tags.literal).
|
|
20975
20975
|
*/
|
|
20976
|
-
url:
|
|
20976
|
+
url: ne(bn),
|
|
20977
20977
|
/**
|
|
20978
20978
|
A language keyword.
|
|
20979
20979
|
*/
|
|
@@ -20982,40 +20982,40 @@ const ie = xi.define, Os = ie(), yn = ie(), gd = ie(yn), pd = ie(yn), bn = ie(),
|
|
|
20982
20982
|
The [keyword](#highlight.tags.keyword) for the self or this
|
|
20983
20983
|
object.
|
|
20984
20984
|
*/
|
|
20985
|
-
self:
|
|
20985
|
+
self: ne(Fi),
|
|
20986
20986
|
/**
|
|
20987
20987
|
The [keyword](#highlight.tags.keyword) for null.
|
|
20988
20988
|
*/
|
|
20989
|
-
null:
|
|
20989
|
+
null: ne(Fi),
|
|
20990
20990
|
/**
|
|
20991
20991
|
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
20992
20992
|
*/
|
|
20993
|
-
atom:
|
|
20993
|
+
atom: ne(Fi),
|
|
20994
20994
|
/**
|
|
20995
20995
|
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
20996
20996
|
*/
|
|
20997
|
-
unit:
|
|
20997
|
+
unit: ne(Fi),
|
|
20998
20998
|
/**
|
|
20999
20999
|
A modifier [keyword](#highlight.tags.keyword).
|
|
21000
21000
|
*/
|
|
21001
|
-
modifier:
|
|
21001
|
+
modifier: ne(Fi),
|
|
21002
21002
|
/**
|
|
21003
21003
|
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
21004
21004
|
*/
|
|
21005
|
-
operatorKeyword:
|
|
21005
|
+
operatorKeyword: ne(Fi),
|
|
21006
21006
|
/**
|
|
21007
21007
|
A control-flow related [keyword](#highlight.tags.keyword).
|
|
21008
21008
|
*/
|
|
21009
|
-
controlKeyword:
|
|
21009
|
+
controlKeyword: ne(Fi),
|
|
21010
21010
|
/**
|
|
21011
21011
|
A [keyword](#highlight.tags.keyword) that defines something.
|
|
21012
21012
|
*/
|
|
21013
|
-
definitionKeyword:
|
|
21013
|
+
definitionKeyword: ne(Fi),
|
|
21014
21014
|
/**
|
|
21015
21015
|
A [keyword](#highlight.tags.keyword) related to defining or
|
|
21016
21016
|
interfacing with modules.
|
|
21017
21017
|
*/
|
|
21018
|
-
moduleKeyword:
|
|
21018
|
+
moduleKeyword: ne(Fi),
|
|
21019
21019
|
/**
|
|
21020
21020
|
An operator.
|
|
21021
21021
|
*/
|
|
@@ -21023,39 +21023,39 @@ const ie = xi.define, Os = ie(), yn = ie(), gd = ie(yn), pd = ie(yn), bn = ie(),
|
|
|
21023
21023
|
/**
|
|
21024
21024
|
An [operator](#highlight.tags.operator) that dereferences something.
|
|
21025
21025
|
*/
|
|
21026
|
-
derefOperator:
|
|
21026
|
+
derefOperator: ne(Ni),
|
|
21027
21027
|
/**
|
|
21028
21028
|
Arithmetic-related [operator](#highlight.tags.operator).
|
|
21029
21029
|
*/
|
|
21030
|
-
arithmeticOperator:
|
|
21030
|
+
arithmeticOperator: ne(Ni),
|
|
21031
21031
|
/**
|
|
21032
21032
|
Logical [operator](#highlight.tags.operator).
|
|
21033
21033
|
*/
|
|
21034
|
-
logicOperator:
|
|
21034
|
+
logicOperator: ne(Ni),
|
|
21035
21035
|
/**
|
|
21036
21036
|
Bit [operator](#highlight.tags.operator).
|
|
21037
21037
|
*/
|
|
21038
|
-
bitwiseOperator:
|
|
21038
|
+
bitwiseOperator: ne(Ni),
|
|
21039
21039
|
/**
|
|
21040
21040
|
Comparison [operator](#highlight.tags.operator).
|
|
21041
21041
|
*/
|
|
21042
|
-
compareOperator:
|
|
21042
|
+
compareOperator: ne(Ni),
|
|
21043
21043
|
/**
|
|
21044
21044
|
[Operator](#highlight.tags.operator) that updates its operand.
|
|
21045
21045
|
*/
|
|
21046
|
-
updateOperator:
|
|
21046
|
+
updateOperator: ne(Ni),
|
|
21047
21047
|
/**
|
|
21048
21048
|
[Operator](#highlight.tags.operator) that defines something.
|
|
21049
21049
|
*/
|
|
21050
|
-
definitionOperator:
|
|
21050
|
+
definitionOperator: ne(Ni),
|
|
21051
21051
|
/**
|
|
21052
21052
|
Type-related [operator](#highlight.tags.operator).
|
|
21053
21053
|
*/
|
|
21054
|
-
typeOperator:
|
|
21054
|
+
typeOperator: ne(Ni),
|
|
21055
21055
|
/**
|
|
21056
21056
|
Control-flow [operator](#highlight.tags.operator).
|
|
21057
21057
|
*/
|
|
21058
|
-
controlOperator:
|
|
21058
|
+
controlOperator: ne(Ni),
|
|
21059
21059
|
/**
|
|
21060
21060
|
Program or markup punctuation.
|
|
21061
21061
|
*/
|
|
@@ -21064,7 +21064,7 @@ const ie = xi.define, Os = ie(), yn = ie(), gd = ie(yn), pd = ie(yn), bn = ie(),
|
|
|
21064
21064
|
[Punctuation](#highlight.tags.punctuation) that separates
|
|
21065
21065
|
things.
|
|
21066
21066
|
*/
|
|
21067
|
-
separator:
|
|
21067
|
+
separator: ne(Gu),
|
|
21068
21068
|
/**
|
|
21069
21069
|
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
21070
21070
|
*/
|
|
@@ -21073,22 +21073,22 @@ const ie = xi.define, Os = ie(), yn = ie(), gd = ie(yn), pd = ie(yn), bn = ie(),
|
|
|
21073
21073
|
Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
|
|
21074
21074
|
tokens).
|
|
21075
21075
|
*/
|
|
21076
|
-
angleBracket:
|
|
21076
|
+
angleBracket: ne(to),
|
|
21077
21077
|
/**
|
|
21078
21078
|
Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
|
|
21079
21079
|
tokens).
|
|
21080
21080
|
*/
|
|
21081
|
-
squareBracket:
|
|
21081
|
+
squareBracket: ne(to),
|
|
21082
21082
|
/**
|
|
21083
21083
|
Parentheses (usually `(` and `)` tokens). Subtag of
|
|
21084
21084
|
[bracket](#highlight.tags.bracket).
|
|
21085
21085
|
*/
|
|
21086
|
-
paren:
|
|
21086
|
+
paren: ne(to),
|
|
21087
21087
|
/**
|
|
21088
21088
|
Braces (usually `{` and `}` tokens). Subtag of
|
|
21089
21089
|
[bracket](#highlight.tags.bracket).
|
|
21090
21090
|
*/
|
|
21091
|
-
brace:
|
|
21091
|
+
brace: ne(to),
|
|
21092
21092
|
/**
|
|
21093
21093
|
Content, for example plain text in XML or markup documents.
|
|
21094
21094
|
*/
|
|
@@ -21100,96 +21100,96 @@ const ie = xi.define, Os = ie(), yn = ie(), gd = ie(yn), pd = ie(yn), bn = ie(),
|
|
|
21100
21100
|
/**
|
|
21101
21101
|
A level 1 [heading](#highlight.tags.heading).
|
|
21102
21102
|
*/
|
|
21103
|
-
heading1:
|
|
21103
|
+
heading1: ne(jn),
|
|
21104
21104
|
/**
|
|
21105
21105
|
A level 2 [heading](#highlight.tags.heading).
|
|
21106
21106
|
*/
|
|
21107
|
-
heading2:
|
|
21107
|
+
heading2: ne(jn),
|
|
21108
21108
|
/**
|
|
21109
21109
|
A level 3 [heading](#highlight.tags.heading).
|
|
21110
21110
|
*/
|
|
21111
|
-
heading3:
|
|
21111
|
+
heading3: ne(jn),
|
|
21112
21112
|
/**
|
|
21113
21113
|
A level 4 [heading](#highlight.tags.heading).
|
|
21114
21114
|
*/
|
|
21115
|
-
heading4:
|
|
21115
|
+
heading4: ne(jn),
|
|
21116
21116
|
/**
|
|
21117
21117
|
A level 5 [heading](#highlight.tags.heading).
|
|
21118
21118
|
*/
|
|
21119
|
-
heading5:
|
|
21119
|
+
heading5: ne(jn),
|
|
21120
21120
|
/**
|
|
21121
21121
|
A level 6 [heading](#highlight.tags.heading).
|
|
21122
21122
|
*/
|
|
21123
|
-
heading6:
|
|
21123
|
+
heading6: ne(jn),
|
|
21124
21124
|
/**
|
|
21125
21125
|
A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
|
|
21126
21126
|
*/
|
|
21127
|
-
contentSeparator:
|
|
21127
|
+
contentSeparator: ne(Hi),
|
|
21128
21128
|
/**
|
|
21129
21129
|
[Content](#highlight.tags.content) that represents a list.
|
|
21130
21130
|
*/
|
|
21131
|
-
list:
|
|
21131
|
+
list: ne(Hi),
|
|
21132
21132
|
/**
|
|
21133
21133
|
[Content](#highlight.tags.content) that represents a quote.
|
|
21134
21134
|
*/
|
|
21135
|
-
quote:
|
|
21135
|
+
quote: ne(Hi),
|
|
21136
21136
|
/**
|
|
21137
21137
|
[Content](#highlight.tags.content) that is emphasized.
|
|
21138
21138
|
*/
|
|
21139
|
-
emphasis:
|
|
21139
|
+
emphasis: ne(Hi),
|
|
21140
21140
|
/**
|
|
21141
21141
|
[Content](#highlight.tags.content) that is styled strong.
|
|
21142
21142
|
*/
|
|
21143
|
-
strong:
|
|
21143
|
+
strong: ne(Hi),
|
|
21144
21144
|
/**
|
|
21145
21145
|
[Content](#highlight.tags.content) that is part of a link.
|
|
21146
21146
|
*/
|
|
21147
|
-
link:
|
|
21147
|
+
link: ne(Hi),
|
|
21148
21148
|
/**
|
|
21149
21149
|
[Content](#highlight.tags.content) that is styled as code or
|
|
21150
21150
|
monospace.
|
|
21151
21151
|
*/
|
|
21152
|
-
monospace:
|
|
21152
|
+
monospace: ne(Hi),
|
|
21153
21153
|
/**
|
|
21154
21154
|
[Content](#highlight.tags.content) that has a strike-through
|
|
21155
21155
|
style.
|
|
21156
21156
|
*/
|
|
21157
|
-
strikethrough:
|
|
21157
|
+
strikethrough: ne(Hi),
|
|
21158
21158
|
/**
|
|
21159
21159
|
Inserted text in a change-tracking format.
|
|
21160
21160
|
*/
|
|
21161
|
-
inserted:
|
|
21161
|
+
inserted: ne(),
|
|
21162
21162
|
/**
|
|
21163
21163
|
Deleted text.
|
|
21164
21164
|
*/
|
|
21165
|
-
deleted:
|
|
21165
|
+
deleted: ne(),
|
|
21166
21166
|
/**
|
|
21167
21167
|
Changed text.
|
|
21168
21168
|
*/
|
|
21169
|
-
changed:
|
|
21169
|
+
changed: ne(),
|
|
21170
21170
|
/**
|
|
21171
21171
|
An invalid or unsyntactic element.
|
|
21172
21172
|
*/
|
|
21173
|
-
invalid:
|
|
21173
|
+
invalid: ne(),
|
|
21174
21174
|
/**
|
|
21175
21175
|
Metadata or meta-instruction.
|
|
21176
21176
|
*/
|
|
21177
|
-
meta:
|
|
21177
|
+
meta: qs,
|
|
21178
21178
|
/**
|
|
21179
21179
|
[Metadata](#highlight.tags.meta) that applies to the entire
|
|
21180
21180
|
document.
|
|
21181
21181
|
*/
|
|
21182
|
-
documentMeta:
|
|
21182
|
+
documentMeta: ne(qs),
|
|
21183
21183
|
/**
|
|
21184
21184
|
[Metadata](#highlight.tags.meta) that annotates or adds
|
|
21185
21185
|
attributes to a given syntactic element.
|
|
21186
21186
|
*/
|
|
21187
|
-
annotation:
|
|
21187
|
+
annotation: ne(qs),
|
|
21188
21188
|
/**
|
|
21189
21189
|
Processing instruction or preprocessor directive. Subtag of
|
|
21190
21190
|
[meta](#highlight.tags.meta).
|
|
21191
21191
|
*/
|
|
21192
|
-
processingInstruction:
|
|
21192
|
+
processingInstruction: ne(qs),
|
|
21193
21193
|
/**
|
|
21194
21194
|
[Modifier](#highlight.Tag^defineModifier) that indicates that a
|
|
21195
21195
|
given element is being defined. Expected to be used with the
|
|
@@ -21364,7 +21364,7 @@ function vd(i, e, t) {
|
|
|
21364
21364
|
o.type.isTop && (r = o);
|
|
21365
21365
|
return r;
|
|
21366
21366
|
}
|
|
21367
|
-
class
|
|
21367
|
+
class bl extends qi {
|
|
21368
21368
|
constructor(e, t, n) {
|
|
21369
21369
|
super(e, t, [], n), this.parser = t;
|
|
21370
21370
|
}
|
|
@@ -21373,7 +21373,7 @@ class yl extends qi {
|
|
|
21373
21373
|
*/
|
|
21374
21374
|
static define(e) {
|
|
21375
21375
|
let t = TS(e.languageData);
|
|
21376
|
-
return new
|
|
21376
|
+
return new bl(t, e.parser.configure({
|
|
21377
21377
|
props: [Cr.add((n) => n.isTop ? t : void 0)]
|
|
21378
21378
|
}), e.name);
|
|
21379
21379
|
}
|
|
@@ -21382,7 +21382,7 @@ class yl extends qi {
|
|
|
21382
21382
|
version of its parser and optionally a new name.
|
|
21383
21383
|
*/
|
|
21384
21384
|
configure(e, t) {
|
|
21385
|
-
return new
|
|
21385
|
+
return new bl(this.data, this.parser.configure(e), t || this.name);
|
|
21386
21386
|
}
|
|
21387
21387
|
get allowsNesting() {
|
|
21388
21388
|
return this.parser.hasWrappers();
|
|
@@ -21417,7 +21417,7 @@ class qS {
|
|
|
21417
21417
|
}
|
|
21418
21418
|
}
|
|
21419
21419
|
let io = null;
|
|
21420
|
-
class
|
|
21420
|
+
class xl {
|
|
21421
21421
|
constructor(e, t, n = [], r, o, s, l, a) {
|
|
21422
21422
|
this.parser = e, this.state = t, this.fragments = n, this.tree = r, this.treeLen = o, this.viewport = s, this.skipped = l, this.scheduleOn = a, this.parse = null, this.tempSkipped = [];
|
|
21423
21423
|
}
|
|
@@ -21425,7 +21425,7 @@ class bl {
|
|
|
21425
21425
|
@internal
|
|
21426
21426
|
*/
|
|
21427
21427
|
static create(e, t, n) {
|
|
21428
|
-
return new
|
|
21428
|
+
return new xl(e, t, [], xt.empty, 0, n, [], null);
|
|
21429
21429
|
}
|
|
21430
21430
|
startParse() {
|
|
21431
21431
|
return this.parser.startParse(new qS(this.state.doc), this.fragments);
|
|
@@ -21491,7 +21491,7 @@ class bl {
|
|
|
21491
21491
|
}
|
|
21492
21492
|
}
|
|
21493
21493
|
}
|
|
21494
|
-
return new
|
|
21494
|
+
return new xl(this.parser, t, n, r, o, s, l, this.scheduleOn);
|
|
21495
21495
|
}
|
|
21496
21496
|
/**
|
|
21497
21497
|
@internal
|
|
@@ -21582,7 +21582,7 @@ class jr {
|
|
|
21582
21582
|
return t.work(20, n) || t.takeTree(), new jr(t);
|
|
21583
21583
|
}
|
|
21584
21584
|
static init(e) {
|
|
21585
|
-
let t = Math.min(3e3, e.doc.length), n =
|
|
21585
|
+
let t = Math.min(3e3, e.doc.length), n = xl.create(e.facet(En).parser, e, { from: 0, to: t });
|
|
21586
21586
|
return n.work(20, t) || n.takeTree(), new jr(n);
|
|
21587
21587
|
}
|
|
21588
21588
|
}
|
|
@@ -21688,7 +21688,7 @@ const BS = /* @__PURE__ */ de.define(), Yl = /* @__PURE__ */ de.define({
|
|
|
21688
21688
|
return e;
|
|
21689
21689
|
}
|
|
21690
21690
|
});
|
|
21691
|
-
function
|
|
21691
|
+
function kl(i) {
|
|
21692
21692
|
let e = i.facet(Yl);
|
|
21693
21693
|
return e.charCodeAt(0) == 9 ? i.tabSize * e.length : e.length;
|
|
21694
21694
|
}
|
|
@@ -21718,7 +21718,7 @@ class Gl {
|
|
|
21718
21718
|
Create an indent context.
|
|
21719
21719
|
*/
|
|
21720
21720
|
constructor(e, t = {}) {
|
|
21721
|
-
this.state = e, this.options = t, this.unit =
|
|
21721
|
+
this.state = e, this.options = t, this.unit = kl(e);
|
|
21722
21722
|
}
|
|
21723
21723
|
/**
|
|
21724
21724
|
Get a description of the line at the given position, taking
|
|
@@ -21963,7 +21963,7 @@ function US(i) {
|
|
|
21963
21963
|
let e = i.lastChild;
|
|
21964
21964
|
return e && e.to == i.to && e.type.isError;
|
|
21965
21965
|
}
|
|
21966
|
-
function
|
|
21966
|
+
function wl(i, e, t) {
|
|
21967
21967
|
for (let n of i.facet(jS)) {
|
|
21968
21968
|
let r = n(i, e, t);
|
|
21969
21969
|
if (r)
|
|
@@ -21975,7 +21975,7 @@ function rv(i, e) {
|
|
|
21975
21975
|
let t = e.mapPos(i.from, 1), n = e.mapPos(i.to, -1);
|
|
21976
21976
|
return t >= n ? void 0 : { from: t, to: n };
|
|
21977
21977
|
}
|
|
21978
|
-
const Jl = /* @__PURE__ */ Ae.define({ map: rv }),
|
|
21978
|
+
const Jl = /* @__PURE__ */ Ae.define({ map: rv }), Zo = /* @__PURE__ */ Ae.define({ map: rv });
|
|
21979
21979
|
function ov(i) {
|
|
21980
21980
|
let e = [];
|
|
21981
21981
|
for (let { head: t } of i.state.selection.ranges)
|
|
@@ -21992,7 +21992,7 @@ const ur = /* @__PURE__ */ Mt.define({
|
|
|
21992
21992
|
if (t.is(Jl) && !KS(i, t.value.from, t.value.to)) {
|
|
21993
21993
|
let { preparePlaceholder: n } = e.state.facet(av), r = n ? xe.replace({ widget: new eC(n(e.state, t.value)) }) : kd;
|
|
21994
21994
|
i = i.update({ add: [r.range(t.value.from, t.value.to)] });
|
|
21995
|
-
} else t.is(
|
|
21995
|
+
} else t.is(Zo) && (i = i.update({
|
|
21996
21996
|
filter: (n, r) => t.value.from != n || t.value.to != r,
|
|
21997
21997
|
filterFrom: t.value.from,
|
|
21998
21998
|
filterTo: t.value.to
|
|
@@ -22029,7 +22029,7 @@ function xd(i, e, t = e) {
|
|
|
22029
22029
|
filter: (r, o) => r >= t || o <= e
|
|
22030
22030
|
}) : i;
|
|
22031
22031
|
}
|
|
22032
|
-
function
|
|
22032
|
+
function Sl(i, e, t) {
|
|
22033
22033
|
var n;
|
|
22034
22034
|
let r = null;
|
|
22035
22035
|
return (n = i.field(ur, !1)) === null || n === void 0 || n.between(e, t, (o, s) => {
|
|
@@ -22047,7 +22047,7 @@ function sv(i, e) {
|
|
|
22047
22047
|
}
|
|
22048
22048
|
const YS = (i) => {
|
|
22049
22049
|
for (let e of ov(i)) {
|
|
22050
|
-
let t =
|
|
22050
|
+
let t = wl(i.state, e.from, e.to);
|
|
22051
22051
|
if (t)
|
|
22052
22052
|
return i.dispatch({ effects: sv(i.state, [Jl.of(t), lv(i, t)]) }), !0;
|
|
22053
22053
|
}
|
|
@@ -22057,8 +22057,8 @@ const YS = (i) => {
|
|
|
22057
22057
|
return !1;
|
|
22058
22058
|
let e = [];
|
|
22059
22059
|
for (let t of ov(i)) {
|
|
22060
|
-
let n =
|
|
22061
|
-
n && e.push(
|
|
22060
|
+
let n = Sl(i.state, t.from, t.to);
|
|
22061
|
+
n && e.push(Zo.of(n), lv(i, n, !1));
|
|
22062
22062
|
}
|
|
22063
22063
|
return e.length && i.dispatch({ effects: e }), e.length > 0;
|
|
22064
22064
|
};
|
|
@@ -22069,7 +22069,7 @@ function lv(i, e, t = !0) {
|
|
|
22069
22069
|
const JS = (i) => {
|
|
22070
22070
|
let { state: e } = i, t = [];
|
|
22071
22071
|
for (let n = 0; n < e.doc.length; ) {
|
|
22072
|
-
let r = i.lineBlockAt(n), o =
|
|
22072
|
+
let r = i.lineBlockAt(n), o = wl(e, r.from, r.to);
|
|
22073
22073
|
o && t.push(Jl.of(o)), n = (o ? i.lineBlockAt(o.to) : r).to + 1;
|
|
22074
22074
|
}
|
|
22075
22075
|
return t.length && i.dispatch({ effects: sv(i.state, t) }), !!t.length;
|
|
@@ -22079,7 +22079,7 @@ const JS = (i) => {
|
|
|
22079
22079
|
return !1;
|
|
22080
22080
|
let t = [];
|
|
22081
22081
|
return e.between(0, i.state.doc.length, (n, r) => {
|
|
22082
|
-
t.push(
|
|
22082
|
+
t.push(Zo.of({ from: n, to: r }));
|
|
22083
22083
|
}), i.dispatch({ effects: t }), !0;
|
|
22084
22084
|
}, $S = [
|
|
22085
22085
|
{ key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: YS },
|
|
@@ -22100,8 +22100,8 @@ function uv(i) {
|
|
|
22100
22100
|
}
|
|
22101
22101
|
function cv(i, e) {
|
|
22102
22102
|
let { state: t } = i, n = t.facet(av), r = (s) => {
|
|
22103
|
-
let l = i.lineBlockAt(i.posAtDOM(s.target)), a =
|
|
22104
|
-
a && i.dispatch({ effects:
|
|
22103
|
+
let l = i.lineBlockAt(i.posAtDOM(s.target)), a = Sl(i.state, l.from, l.to);
|
|
22104
|
+
a && i.dispatch({ effects: Zo.of(a) }), s.preventDefault();
|
|
22105
22105
|
};
|
|
22106
22106
|
if (n.placeholderDOM)
|
|
22107
22107
|
return n.placeholderDOM(i, r, e);
|
|
@@ -22156,7 +22156,7 @@ function iC(i = {}) {
|
|
|
22156
22156
|
buildMarkers(s) {
|
|
22157
22157
|
let l = new hn();
|
|
22158
22158
|
for (let a of s.viewportLineBlocks) {
|
|
22159
|
-
let u =
|
|
22159
|
+
let u = Sl(s.state, a.from, a.to) ? n : wl(s.state, a.from, a.to) ? t : null;
|
|
22160
22160
|
u && l.add(a.from, a.from, u);
|
|
22161
22161
|
}
|
|
22162
22162
|
return l.finish();
|
|
@@ -22178,10 +22178,10 @@ function iC(i = {}) {
|
|
|
22178
22178
|
click: (s, l, a) => {
|
|
22179
22179
|
if (o.click && o.click(s, l, a))
|
|
22180
22180
|
return !0;
|
|
22181
|
-
let u =
|
|
22181
|
+
let u = Sl(s.state, l.from, l.to);
|
|
22182
22182
|
if (u)
|
|
22183
|
-
return s.dispatch({ effects:
|
|
22184
|
-
let c =
|
|
22183
|
+
return s.dispatch({ effects: Zo.of(u) }), !0;
|
|
22184
|
+
let c = wl(s.state, l.from, l.to);
|
|
22185
22185
|
return c ? (s.dispatch({ effects: Jl.of(c) }), !0) : !1;
|
|
22186
22186
|
}
|
|
22187
22187
|
}
|
|
@@ -22204,7 +22204,7 @@ const nC = /* @__PURE__ */ ce.baseTheme({
|
|
|
22204
22204
|
cursor: "pointer"
|
|
22205
22205
|
}
|
|
22206
22206
|
});
|
|
22207
|
-
class
|
|
22207
|
+
class es {
|
|
22208
22208
|
constructor(e, t) {
|
|
22209
22209
|
this.specs = e;
|
|
22210
22210
|
let n;
|
|
@@ -22236,7 +22236,7 @@ class Zo {
|
|
|
22236
22236
|
defined earlier.
|
|
22237
22237
|
*/
|
|
22238
22238
|
static define(e, t) {
|
|
22239
|
-
return new
|
|
22239
|
+
return new es(e, t || {});
|
|
22240
22240
|
}
|
|
22241
22241
|
}
|
|
22242
22242
|
const Ju = /* @__PURE__ */ de.define(), hv = /* @__PURE__ */ de.define({
|
|
@@ -22250,7 +22250,7 @@ function Qa(i) {
|
|
|
22250
22250
|
}
|
|
22251
22251
|
function fv(i, e) {
|
|
22252
22252
|
let t = [oC], n;
|
|
22253
|
-
return i instanceof
|
|
22253
|
+
return i instanceof es && (i.module && t.push(ce.styleModule.of(i.module)), n = i.themeType), e != null && e.fallback ? t.push(hv.of(i)) : n ? t.push(Ju.computeN([ce.darkTheme], (r) => r.facet(ce.darkTheme) == (n == "dark") ? [i] : [])) : t.push(Ju.of(i)), t;
|
|
22254
22254
|
}
|
|
22255
22255
|
class rC {
|
|
22256
22256
|
constructor(e) {
|
|
@@ -22273,7 +22273,7 @@ class rC {
|
|
|
22273
22273
|
}
|
|
22274
22274
|
const oC = /* @__PURE__ */ hr.high(/* @__PURE__ */ ft.fromClass(rC, {
|
|
22275
22275
|
decorations: (i) => i.decorations
|
|
22276
|
-
})), sC = /* @__PURE__ */
|
|
22276
|
+
})), sC = /* @__PURE__ */ es.define([
|
|
22277
22277
|
{
|
|
22278
22278
|
tag: j.meta,
|
|
22279
22279
|
color: "#404740"
|
|
@@ -22648,7 +22648,7 @@ const Zu = /* @__PURE__ */ dn.define(), OC = /* @__PURE__ */ dn.define(), TC = /
|
|
|
22648
22648
|
let t = e.state.facet(vv), n = e.annotation(Zu);
|
|
22649
22649
|
if (n) {
|
|
22650
22650
|
let a = li.fromTransaction(e, n.selection), u = n.side, c = u == 0 ? i.undone : i.done;
|
|
22651
|
-
return a ? c =
|
|
22651
|
+
return a ? c = Cl(c, c.length, t.minDepth, a) : c = kv(c, e.startState.selection), new Ui(u == 0 ? n.rest : c, u == 0 ? c : n.rest);
|
|
22652
22652
|
}
|
|
22653
22653
|
let r = e.annotation(OC);
|
|
22654
22654
|
if ((r == "full" || r == "before") && (i = i.isolate()), e.annotation(Ct.addToHistory) === !1)
|
|
@@ -22721,7 +22721,7 @@ class li {
|
|
|
22721
22721
|
return new li(void 0, ki, void 0, void 0, e);
|
|
22722
22722
|
}
|
|
22723
22723
|
}
|
|
22724
|
-
function
|
|
22724
|
+
function Cl(i, e, t, n) {
|
|
22725
22725
|
let r = e + 1 > t + 20 ? e - t - 1 : 0, o = i.slice(r, e);
|
|
22726
22726
|
return o.push(n), o;
|
|
22727
22727
|
}
|
|
@@ -22744,7 +22744,7 @@ const ki = [], RC = 200;
|
|
|
22744
22744
|
function kv(i, e) {
|
|
22745
22745
|
if (i.length) {
|
|
22746
22746
|
let t = i[i.length - 1], n = t.selectionsAfter.slice(Math.max(0, t.selectionsAfter.length - RC));
|
|
22747
|
-
return n.length && n[n.length - 1].eq(e) ? i : (n.push(e),
|
|
22747
|
+
return n.length && n[n.length - 1].eq(e) ? i : (n.push(e), Cl(i, i.length - 1, 1e9, t.setSelAfter(n)));
|
|
22748
22748
|
} else
|
|
22749
22749
|
return [li.selection([e])];
|
|
22750
22750
|
}
|
|
@@ -22784,7 +22784,7 @@ class Ui {
|
|
|
22784
22784
|
addChanges(e, t, n, r, o) {
|
|
22785
22785
|
let s = this.done, l = s[s.length - 1];
|
|
22786
22786
|
return l && l.changes && !l.changes.empty && e.changes && (!n || IC.test(n)) && (!l.selectionsAfter.length && t - this.prevTime < r.newGroupDelay && r.joinToEvent(o, _C(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
|
|
22787
|
-
n == "input.type.compose") ? s =
|
|
22787
|
+
n == "input.type.compose") ? s = Cl(s, s.length - 1, r.minDepth, new li(e.changes.compose(l.changes), xv(Ae.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, ki)) : s = Cl(s, s.length, r.minDepth, e), new Ui(s, ki, t, n);
|
|
22788
22788
|
}
|
|
22789
22789
|
addSelection(e, t, n, r) {
|
|
22790
22790
|
let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : ki;
|
|
@@ -22993,16 +22993,16 @@ const hM = (i) => Fv(i, !1), fM = (i) => Fv(i, !0), dM = ({ state: i, dispatch:
|
|
|
22993
22993
|
let t = i.selection, n = null;
|
|
22994
22994
|
return t.ranges.length > 1 ? n = K.create([t.main]) : t.main.empty || (n = K.create([K.cursor(t.main.head)])), n ? (e(Ri(i, n)), !0) : !1;
|
|
22995
22995
|
};
|
|
22996
|
-
function
|
|
22996
|
+
function ts(i, e) {
|
|
22997
22997
|
if (i.state.readOnly)
|
|
22998
22998
|
return !1;
|
|
22999
22999
|
let t = "delete.selection", { state: n } = i, r = n.changeByRange((o) => {
|
|
23000
23000
|
let { from: s, to: l } = o;
|
|
23001
23001
|
if (s == l) {
|
|
23002
23002
|
let a = e(o);
|
|
23003
|
-
a < s ? (t = "delete.backward", a =
|
|
23003
|
+
a < s ? (t = "delete.backward", a = Ps(i, a, !1)) : a > s && (t = "delete.forward", a = Ps(i, a, !0)), s = Math.min(s, a), l = Math.max(l, a);
|
|
23004
23004
|
} else
|
|
23005
|
-
s =
|
|
23005
|
+
s = Ps(i, s, !1), l = Ps(i, l, !0);
|
|
23006
23006
|
return s == l ? { range: o } : { changes: { from: s, to: l }, range: K.cursor(s, s < o.head ? -1 : 1) };
|
|
23007
23007
|
});
|
|
23008
23008
|
return r.changes.empty ? !1 : (i.dispatch(n.update(r, {
|
|
@@ -23011,7 +23011,7 @@ function es(i, e) {
|
|
|
23011
23011
|
effects: t == "delete.selection" ? ce.announce.of(n.phrase("Selection deleted")) : void 0
|
|
23012
23012
|
})), !0);
|
|
23013
23013
|
}
|
|
23014
|
-
function
|
|
23014
|
+
function Ps(i, e, t) {
|
|
23015
23015
|
if (i instanceof ce)
|
|
23016
23016
|
for (let n of i.state.facet(ce.atomicRanges).map((r) => r(i)))
|
|
23017
23017
|
n.between(e, e, (r, o) => {
|
|
@@ -23019,19 +23019,19 @@ function qs(i, e, t) {
|
|
|
23019
23019
|
});
|
|
23020
23020
|
return e;
|
|
23021
23021
|
}
|
|
23022
|
-
const Nv = (i, e, t) =>
|
|
23022
|
+
const Nv = (i, e, t) => ts(i, (n) => {
|
|
23023
23023
|
let r = n.from, { state: o } = i, s = o.doc.lineAt(r), l, a;
|
|
23024
23024
|
if (t && !e && r > s.from && r < s.from + 200 && !/[^ \t]/.test(l = s.text.slice(0, r - s.from))) {
|
|
23025
23025
|
if (l[l.length - 1] == " ")
|
|
23026
23026
|
return r - 1;
|
|
23027
|
-
let u = Kr(l, o.tabSize), c = u %
|
|
23027
|
+
let u = Kr(l, o.tabSize), c = u % kl(o) || kl(o);
|
|
23028
23028
|
for (let h = 0; h < c && l[l.length - 1 - h] == " "; h++)
|
|
23029
23029
|
r--;
|
|
23030
23030
|
a = r;
|
|
23031
23031
|
} else
|
|
23032
23032
|
a = Ft(s.text, r - s.from, e, e) + s.from, a == r && s.number != (e ? o.doc.lines : 1) ? a += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(s.text.slice(a - s.from, r - s.from)) && (a = Ft(s.text, a - s.from, !1, !1) + s.from);
|
|
23033
23033
|
return a;
|
|
23034
|
-
}), ic = (i) => Nv(i, !1, !0), Hv = (i) => Nv(i, !0, !1), zv = (i, e) =>
|
|
23034
|
+
}), ic = (i) => Nv(i, !1, !0), Hv = (i) => Nv(i, !0, !1), zv = (i, e) => ts(i, (t) => {
|
|
23035
23035
|
let n = t.head, { state: r } = i, o = r.doc.lineAt(n), s = r.charCategorizer(n);
|
|
23036
23036
|
for (let l = null; ; ) {
|
|
23037
23037
|
if (n == (e ? o.to : o.from)) {
|
|
@@ -23044,13 +23044,13 @@ const Nv = (i, e, t) => es(i, (n) => {
|
|
|
23044
23044
|
(u != " " || n != t.head) && (l = c), n = a;
|
|
23045
23045
|
}
|
|
23046
23046
|
return n;
|
|
23047
|
-
}), jv = (i) => zv(i, !1), mM = (i) => zv(i, !0), gM = (i) =>
|
|
23047
|
+
}), jv = (i) => zv(i, !1), mM = (i) => zv(i, !0), gM = (i) => ts(i, (e) => {
|
|
23048
23048
|
let t = i.lineBlockAt(e.head).to;
|
|
23049
23049
|
return e.head < t ? t : Math.min(i.state.doc.length, e.head + 1);
|
|
23050
|
-
}), pM = (i) =>
|
|
23050
|
+
}), pM = (i) => ts(i, (e) => {
|
|
23051
23051
|
let t = i.moveToLineBoundary(e, !1).head;
|
|
23052
23052
|
return e.head > t ? t : Math.max(0, e.head - 1);
|
|
23053
|
-
}), vM = (i) =>
|
|
23053
|
+
}), vM = (i) => ts(i, (e) => {
|
|
23054
23054
|
let t = i.moveToLineBoundary(e, !0).head;
|
|
23055
23055
|
return e.head < t ? t : Math.min(i.state.doc.length, e.head + 1);
|
|
23056
23056
|
}), yM = ({ state: i, dispatch: e }) => {
|
|
@@ -23198,7 +23198,7 @@ const OM = ({ state: i, dispatch: e }) => {
|
|
|
23198
23198
|
let r = /^\s*/.exec(t.text)[0];
|
|
23199
23199
|
if (!r)
|
|
23200
23200
|
return;
|
|
23201
|
-
let o = Kr(r, i.tabSize), s = 0, l = Lo(i, Math.max(0, o -
|
|
23201
|
+
let o = Kr(r, i.tabSize), s = 0, l = Lo(i, Math.max(0, o - kl(i)));
|
|
23202
23202
|
for (; s < r.length && s < l.length && r.charCodeAt(s) == l.charCodeAt(s); )
|
|
23203
23203
|
s++;
|
|
23204
23204
|
n.push({ from: t.from + s, to: t.from + r.length, insert: l.slice(s) });
|
|
@@ -23350,7 +23350,7 @@ class Jv {
|
|
|
23350
23350
|
return new Xv(e, t, n, r, o);
|
|
23351
23351
|
this.re = new RegExp(t, Xc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.iter = e.iter();
|
|
23352
23352
|
let s = e.lineAt(r);
|
|
23353
|
-
this.curLineStart = s.from, this.matchPos =
|
|
23353
|
+
this.curLineStart = s.from, this.matchPos = Ml(e, r), this.getLine(this.curLineStart);
|
|
23354
23354
|
}
|
|
23355
23355
|
getLine(e) {
|
|
23356
23356
|
this.iter.next(e), this.iter.lineBreak ? this.curLine = "" : (this.curLine = this.iter.value, this.curLineStart + this.curLine.length > this.to && (this.curLine = this.curLine.slice(0, this.to - this.curLineStart)), this.iter.next());
|
|
@@ -23367,7 +23367,7 @@ class Jv {
|
|
|
23367
23367
|
let t = this.matchPos <= this.to && this.re.exec(this.curLine);
|
|
23368
23368
|
if (t) {
|
|
23369
23369
|
let n = this.curLineStart + t.index, r = n + t[0].length;
|
|
23370
|
-
if (this.matchPos =
|
|
23370
|
+
if (this.matchPos = Ml(this.text, r + (n == r ? 1 : 0)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < r || n > this.value.to) && (!this.test || this.test(n, r, t)))
|
|
23371
23371
|
return this.value = { from: n, to: r, match: t }, this;
|
|
23372
23372
|
e = this.matchPos - this.curLineStart;
|
|
23373
23373
|
} else if (this.curLineStart + this.curLine.length < this.to)
|
|
@@ -23399,7 +23399,7 @@ class _r {
|
|
|
23399
23399
|
}
|
|
23400
23400
|
class Xv {
|
|
23401
23401
|
constructor(e, t, n, r, o) {
|
|
23402
|
-
this.text = e, this.to = o, this.done = !1, this.value = Gv, this.matchPos =
|
|
23402
|
+
this.text = e, this.to = o, this.done = !1, this.value = Gv, this.matchPos = Ml(e, r), this.re = new RegExp(t, Xc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = _r.get(e, r, this.chunkEnd(
|
|
23403
23403
|
r + 5e3
|
|
23404
23404
|
/* Chunk.Base */
|
|
23405
23405
|
));
|
|
@@ -23413,7 +23413,7 @@ class Xv {
|
|
|
23413
23413
|
if (t && !t[0] && t.index == e && (this.re.lastIndex = e + 1, t = this.re.exec(this.flat.text)), t) {
|
|
23414
23414
|
let n = this.flat.from + t.index, r = n + t[0].length;
|
|
23415
23415
|
if ((this.flat.to >= this.to || t.index + t[0].length <= this.flat.text.length - 10) && (!this.test || this.test(n, r, t)))
|
|
23416
|
-
return this.value = { from: n, to: r, match: t }, this.matchPos =
|
|
23416
|
+
return this.value = { from: n, to: r, match: t }, this.matchPos = Ml(this.text, r + (n == r ? 1 : 0)), this;
|
|
23417
23417
|
}
|
|
23418
23418
|
if (this.flat.to == this.to)
|
|
23419
23419
|
return this.done = !0, this;
|
|
@@ -23431,7 +23431,7 @@ function BM(i) {
|
|
|
23431
23431
|
return !1;
|
|
23432
23432
|
}
|
|
23433
23433
|
}
|
|
23434
|
-
function
|
|
23434
|
+
function Ml(i, e) {
|
|
23435
23435
|
if (e >= i.length)
|
|
23436
23436
|
return e;
|
|
23437
23437
|
let t = i.lineAt(e), n;
|
|
@@ -23666,7 +23666,7 @@ function br(i, e, t, n) {
|
|
|
23666
23666
|
return new Wr(e.doc, i.unquoted, t, n, i.caseSensitive ? void 0 : (r) => r.toLowerCase(), i.wholeWord ? KM(e.doc, e.charCategorizer(e.selection.main.head)) : void 0);
|
|
23667
23667
|
}
|
|
23668
23668
|
function KM(i, e) {
|
|
23669
|
-
return (t, n, r, o) => ((o > t || o + r.length < n) && (o = Math.max(0, t - 2), r = i.sliceString(o, Math.min(i.length, n + 2))), (e(
|
|
23669
|
+
return (t, n, r, o) => ((o > t || o + r.length < n) && (o = Math.max(0, t - 2), r = i.sliceString(o, Math.min(i.length, n + 2))), (e(Al(r, t - o)) != lt.Word || e(Ol(r, t - o)) != lt.Word) && (e(Ol(r, n - o)) != lt.Word || e(Al(r, n - o)) != lt.Word));
|
|
23670
23670
|
}
|
|
23671
23671
|
class YM extends Zv {
|
|
23672
23672
|
constructor(e) {
|
|
@@ -23722,14 +23722,14 @@ function xr(i, e, t, n) {
|
|
|
23722
23722
|
test: i.wholeWord ? GM(e.charCategorizer(e.selection.main.head)) : void 0
|
|
23723
23723
|
}, t, n);
|
|
23724
23724
|
}
|
|
23725
|
-
function
|
|
23725
|
+
function Al(i, e) {
|
|
23726
23726
|
return i.slice(Ft(i, e, !1), e);
|
|
23727
23727
|
}
|
|
23728
|
-
function
|
|
23728
|
+
function Ol(i, e) {
|
|
23729
23729
|
return i.slice(e, Ft(i, e));
|
|
23730
23730
|
}
|
|
23731
23731
|
function GM(i) {
|
|
23732
|
-
return (e, t, n) => !n[0].length || (i(
|
|
23732
|
+
return (e, t, n) => !n[0].length || (i(Al(n.input, n.index)) != lt.Word || i(Ol(n.input, n.index)) != lt.Word) && (i(Ol(n.input, n.index + n[0].length)) != lt.Word || i(Al(n.input, n.index + n[0].length)) != lt.Word);
|
|
23733
23733
|
}
|
|
23734
23734
|
class JM extends Zv {
|
|
23735
23735
|
nextMatch(e, t, n) {
|
|
@@ -23829,13 +23829,13 @@ const XM = /* @__PURE__ */ xe.mark({ class: "cm-searchMatch" }), $M = /* @__PURE
|
|
|
23829
23829
|
}, {
|
|
23830
23830
|
decorations: (i) => i.decorations
|
|
23831
23831
|
});
|
|
23832
|
-
function
|
|
23832
|
+
function is(i) {
|
|
23833
23833
|
return (e) => {
|
|
23834
23834
|
let t = e.state.field(qn, !1);
|
|
23835
23835
|
return t && t.query.spec.valid ? i(e, t) : i0(e);
|
|
23836
23836
|
};
|
|
23837
23837
|
}
|
|
23838
|
-
const
|
|
23838
|
+
const Tl = /* @__PURE__ */ is((i, { query: e }) => {
|
|
23839
23839
|
let { to: t } = i.state.selection.main, n = e.nextMatch(i.state, t, t);
|
|
23840
23840
|
if (!n)
|
|
23841
23841
|
return !1;
|
|
@@ -23845,7 +23845,7 @@ const Ol = /* @__PURE__ */ ts((i, { query: e }) => {
|
|
|
23845
23845
|
effects: [eh(i, n), o.scrollToMatch(r.main, i)],
|
|
23846
23846
|
userEvent: "select.search"
|
|
23847
23847
|
}), t0(i), !0;
|
|
23848
|
-
}),
|
|
23848
|
+
}), Dl = /* @__PURE__ */ is((i, { query: e }) => {
|
|
23849
23849
|
let { state: t } = i, { from: n } = t.selection.main, r = e.prevMatch(t, n, n);
|
|
23850
23850
|
if (!r)
|
|
23851
23851
|
return !1;
|
|
@@ -23855,7 +23855,7 @@ const Ol = /* @__PURE__ */ ts((i, { query: e }) => {
|
|
|
23855
23855
|
effects: [eh(i, r), s.scrollToMatch(o.main, i)],
|
|
23856
23856
|
userEvent: "select.search"
|
|
23857
23857
|
}), t0(i), !0;
|
|
23858
|
-
}), eA = /* @__PURE__ */
|
|
23858
|
+
}), eA = /* @__PURE__ */ is((i, { query: e }) => {
|
|
23859
23859
|
let t = e.matchAll(i.state, 1e3);
|
|
23860
23860
|
return !t || !t.length ? !1 : (i.dispatch({
|
|
23861
23861
|
selection: K.create(t.map((n) => K.range(n.from, n.to))),
|
|
@@ -23875,7 +23875,7 @@ const Ol = /* @__PURE__ */ ts((i, { query: e }) => {
|
|
|
23875
23875
|
selection: K.create(o, s),
|
|
23876
23876
|
userEvent: "select.search.matches"
|
|
23877
23877
|
})), !0;
|
|
23878
|
-
}, Ld = /* @__PURE__ */
|
|
23878
|
+
}, Ld = /* @__PURE__ */ is((i, { query: e }) => {
|
|
23879
23879
|
let { state: t } = i, { from: n, to: r } = t.selection.main;
|
|
23880
23880
|
if (t.readOnly)
|
|
23881
23881
|
return !1;
|
|
@@ -23891,7 +23891,7 @@ const Ol = /* @__PURE__ */ ts((i, { query: e }) => {
|
|
|
23891
23891
|
effects: c,
|
|
23892
23892
|
userEvent: "input.replace"
|
|
23893
23893
|
}), !0;
|
|
23894
|
-
}), iA = /* @__PURE__ */
|
|
23894
|
+
}), iA = /* @__PURE__ */ is((i, { query: e }) => {
|
|
23895
23895
|
if (i.state.readOnly)
|
|
23896
23896
|
return !1;
|
|
23897
23897
|
let t = e.matchAll(i.state, 1e9).map((r) => {
|
|
@@ -23954,8 +23954,8 @@ const i0 = (i) => {
|
|
|
23954
23954
|
return t && t.dom.contains(i.root.activeElement) && i.focus(), i.dispatch({ effects: $c.of(!1) }), !0;
|
|
23955
23955
|
}, nA = [
|
|
23956
23956
|
{ key: "Mod-f", run: i0, scope: "editor search-panel" },
|
|
23957
|
-
{ key: "F3", run:
|
|
23958
|
-
{ key: "Mod-g", run:
|
|
23957
|
+
{ key: "F3", run: Tl, shift: Dl, scope: "editor search-panel", preventDefault: !0 },
|
|
23958
|
+
{ key: "Mod-g", run: Tl, shift: Dl, scope: "editor search-panel", preventDefault: !0 },
|
|
23959
23959
|
{ key: "Escape", run: n0, scope: "editor search-panel" },
|
|
23960
23960
|
{ key: "Mod-Shift-l", run: tA },
|
|
23961
23961
|
{ key: "Mod-Alt-g", run: RM },
|
|
@@ -24008,8 +24008,8 @@ class rA {
|
|
|
24008
24008
|
}
|
|
24009
24009
|
this.dom = Ye("div", { onkeydown: (r) => this.keydown(r), class: "cm-search" }, [
|
|
24010
24010
|
this.searchField,
|
|
24011
|
-
n("next", () =>
|
|
24012
|
-
n("prev", () =>
|
|
24011
|
+
n("next", () => Tl(e), [ui(e, "next")]),
|
|
24012
|
+
n("prev", () => Dl(e), [ui(e, "previous")]),
|
|
24013
24013
|
n("select", () => eA(e), [ui(e, "all")]),
|
|
24014
24014
|
Ye("label", null, [this.caseField, ui(e, "match case")]),
|
|
24015
24015
|
Ye("label", null, [this.reField, ui(e, "regexp")]),
|
|
@@ -24039,7 +24039,7 @@ class rA {
|
|
|
24039
24039
|
e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: Io.of(e) }));
|
|
24040
24040
|
}
|
|
24041
24041
|
keydown(e) {
|
|
24042
|
-
fw(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ?
|
|
24042
|
+
fw(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Dl : Tl)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Ld(this.view));
|
|
24043
24043
|
}
|
|
24044
24044
|
update(e) {
|
|
24045
24045
|
for (let t of e.transactions)
|
|
@@ -24062,19 +24062,19 @@ class rA {
|
|
|
24062
24062
|
function ui(i, e) {
|
|
24063
24063
|
return i.state.phrase(e);
|
|
24064
24064
|
}
|
|
24065
|
-
const
|
|
24065
|
+
const _s = 30, Bs = /[\s\.,:;?!]/;
|
|
24066
24066
|
function eh(i, { from: e, to: t }) {
|
|
24067
|
-
let n = i.state.doc.lineAt(e), r = i.state.doc.lineAt(t).to, o = Math.max(n.from, e -
|
|
24067
|
+
let n = i.state.doc.lineAt(e), r = i.state.doc.lineAt(t).to, o = Math.max(n.from, e - _s), s = Math.min(r, t + _s), l = i.state.sliceDoc(o, s);
|
|
24068
24068
|
if (o != n.from) {
|
|
24069
|
-
for (let a = 0; a <
|
|
24070
|
-
if (!
|
|
24069
|
+
for (let a = 0; a < _s; a++)
|
|
24070
|
+
if (!Bs.test(l[a + 1]) && Bs.test(l[a])) {
|
|
24071
24071
|
l = l.slice(a);
|
|
24072
24072
|
break;
|
|
24073
24073
|
}
|
|
24074
24074
|
}
|
|
24075
24075
|
if (s != r) {
|
|
24076
|
-
for (let a = l.length - 1; a > l.length -
|
|
24077
|
-
if (!
|
|
24076
|
+
for (let a = l.length - 1; a > l.length - _s; a--)
|
|
24077
|
+
if (!Bs.test(l[a - 1]) && Bs.test(l[a])) {
|
|
24078
24078
|
l = l.slice(0, a);
|
|
24079
24079
|
break;
|
|
24080
24080
|
}
|
|
@@ -24229,7 +24229,7 @@ function cA(i) {
|
|
|
24229
24229
|
let e = Fd.get(i);
|
|
24230
24230
|
return e || Fd.set(i, e = aA(i)), e;
|
|
24231
24231
|
}
|
|
24232
|
-
const
|
|
24232
|
+
const ql = /* @__PURE__ */ Ae.define(), Vo = /* @__PURE__ */ Ae.define();
|
|
24233
24233
|
class hA {
|
|
24234
24234
|
constructor(e) {
|
|
24235
24235
|
this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
|
|
@@ -24624,12 +24624,12 @@ class Mr {
|
|
|
24624
24624
|
return new Mr(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
|
|
24625
24625
|
}
|
|
24626
24626
|
}
|
|
24627
|
-
class
|
|
24627
|
+
class Pl {
|
|
24628
24628
|
constructor(e, t, n) {
|
|
24629
24629
|
this.active = e, this.id = t, this.open = n;
|
|
24630
24630
|
}
|
|
24631
24631
|
static start() {
|
|
24632
|
-
return new
|
|
24632
|
+
return new Pl(wA, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
|
|
24633
24633
|
}
|
|
24634
24634
|
update(e) {
|
|
24635
24635
|
let { state: t } = e, n = t.facet(Dt), o = (n.override || t.languageDataAt("autocomplete", rr(t)).map(cA)).map((a) => (this.active.find((c) => c.source == a) || new wi(
|
|
@@ -24649,7 +24649,7 @@ class ql {
|
|
|
24649
24649
|
) : a));
|
|
24650
24650
|
for (let a of e.effects)
|
|
24651
24651
|
a.is(a0) && (s = s && s.setSelected(a.value, this.id));
|
|
24652
|
-
return o == this.active && s == this.open ? this : new
|
|
24652
|
+
return o == this.active && s == this.open ? this : new Pl(o, this.id, s);
|
|
24653
24653
|
}
|
|
24654
24654
|
get tooltip() {
|
|
24655
24655
|
return this.open ? this.open.tooltip : null;
|
|
@@ -24716,7 +24716,7 @@ class wi {
|
|
|
24716
24716
|
/* State.Pending */
|
|
24717
24717
|
)), r = r.updateFor(e, n);
|
|
24718
24718
|
for (let o of e.effects)
|
|
24719
|
-
if (o.is(
|
|
24719
|
+
if (o.is(ql))
|
|
24720
24720
|
r = new wi(r.source, 1, o.value);
|
|
24721
24721
|
else if (o.is(Vo))
|
|
24722
24722
|
r = new wi(
|
|
@@ -24785,7 +24785,7 @@ const th = /* @__PURE__ */ Ae.define({
|
|
|
24785
24785
|
}
|
|
24786
24786
|
}), a0 = /* @__PURE__ */ Ae.define(), si = /* @__PURE__ */ Mt.define({
|
|
24787
24787
|
create() {
|
|
24788
|
-
return
|
|
24788
|
+
return Pl.start();
|
|
24789
24789
|
},
|
|
24790
24790
|
update(i, e) {
|
|
24791
24791
|
return i.update(e);
|
|
@@ -24804,7 +24804,7 @@ function ih(i, e) {
|
|
|
24804
24804
|
}) : t(i, e.completion, n.from, n.to), !0) : !1;
|
|
24805
24805
|
}
|
|
24806
24806
|
const CA = /* @__PURE__ */ pA(si, ih);
|
|
24807
|
-
function
|
|
24807
|
+
function Rs(i, e = "option") {
|
|
24808
24808
|
return (t) => {
|
|
24809
24809
|
let n = t.state.field(si, !1);
|
|
24810
24810
|
if (!n || !n.open || n.open.disabled || Date.now() - n.open.timestamp < t.state.facet(Dt).interactionDelay)
|
|
@@ -24818,7 +24818,7 @@ function Bs(i, e = "option") {
|
|
|
24818
24818
|
const MA = (i) => {
|
|
24819
24819
|
let e = i.state.field(si, !1);
|
|
24820
24820
|
return i.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < i.state.facet(Dt).interactionDelay ? !1 : ih(i, e.open.options[e.open.selected]);
|
|
24821
|
-
}, Xa = (i) => i.state.field(si, !1) ? (i.dispatch({ effects:
|
|
24821
|
+
}, Xa = (i) => i.state.field(si, !1) ? (i.dispatch({ effects: ql.of(!0) }), !0) : !1, AA = (i) => {
|
|
24822
24822
|
let e = i.state.field(si, !1);
|
|
24823
24823
|
return !e || !e.active.some(
|
|
24824
24824
|
(t) => t.state != 0
|
|
@@ -24857,7 +24857,7 @@ const TA = 50, DA = 1e3, qA = /* @__PURE__ */ ft.fromClass(class {
|
|
|
24857
24857
|
} else
|
|
24858
24858
|
s.updates.push(...i.transactions);
|
|
24859
24859
|
}
|
|
24860
|
-
this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), i.transactions.some((o) => o.effects.some((s) => s.is(
|
|
24860
|
+
this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), i.transactions.some((o) => o.effects.some((s) => s.is(ql))) && (this.pendingStart = !0);
|
|
24861
24861
|
let r = this.pendingStart ? 50 : t.activateOnTypingDelay;
|
|
24862
24862
|
if (this.debounceUpdate = e.active.some((o) => o.isPending && !this.running.some((s) => s.active.source == o.source)) ? setTimeout(() => this.startUpdate(), r) : -1, this.composing != 0)
|
|
24863
24863
|
for (let o of i.transactions)
|
|
@@ -24929,7 +24929,7 @@ const TA = 50, DA = 1e3, qA = /* @__PURE__ */ ft.fromClass(class {
|
|
|
24929
24929
|
this.composing = 1;
|
|
24930
24930
|
},
|
|
24931
24931
|
compositionend() {
|
|
24932
|
-
this.composing == 3 && setTimeout(() => this.view.dispatch({ effects:
|
|
24932
|
+
this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: ql.of(!1) }), 20), this.composing = 0;
|
|
24933
24933
|
}
|
|
24934
24934
|
}
|
|
24935
24935
|
}), PA = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), _A = /* @__PURE__ */ hr.highest(/* @__PURE__ */ ce.domEventHandlers({
|
|
@@ -25279,12 +25279,12 @@ const d0 = [
|
|
|
25279
25279
|
{ mac: "Alt-`", run: Xa },
|
|
25280
25280
|
{ mac: "Alt-i", run: Xa },
|
|
25281
25281
|
{ key: "Escape", run: AA },
|
|
25282
|
-
{ key: "ArrowDown", run: /* @__PURE__ */
|
|
25283
|
-
{ key: "ArrowUp", run: /* @__PURE__ */
|
|
25284
|
-
{ key: "PageDown", run: /* @__PURE__ */
|
|
25285
|
-
{ key: "PageUp", run: /* @__PURE__ */
|
|
25282
|
+
{ key: "ArrowDown", run: /* @__PURE__ */ Rs(!0) },
|
|
25283
|
+
{ key: "ArrowUp", run: /* @__PURE__ */ Rs(!1) },
|
|
25284
|
+
{ key: "PageDown", run: /* @__PURE__ */ Rs(!0, "page") },
|
|
25285
|
+
{ key: "PageUp", run: /* @__PURE__ */ Rs(!1, "page") },
|
|
25286
25286
|
{ key: "Enter", run: MA }
|
|
25287
|
-
], UA = /* @__PURE__ */ hr.highest(/* @__PURE__ */
|
|
25287
|
+
], UA = /* @__PURE__ */ hr.highest(/* @__PURE__ */ Xo.computeN([Dt], (i) => i.facet(Dt).defaultKeymap ? [d0] : []));
|
|
25288
25288
|
class Qd {
|
|
25289
25289
|
constructor(e, t, n) {
|
|
25290
25290
|
this.from = e, this.to = t, this.diagnostic = n;
|
|
@@ -25684,11 +25684,11 @@ class No {
|
|
|
25684
25684
|
return new No(e);
|
|
25685
25685
|
}
|
|
25686
25686
|
}
|
|
25687
|
-
function
|
|
25687
|
+
function Js(i, e = 'viewBox="0 0 40 40"') {
|
|
25688
25688
|
return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(i)}</svg>')`;
|
|
25689
25689
|
}
|
|
25690
|
-
function
|
|
25691
|
-
return
|
|
25690
|
+
function Es(i) {
|
|
25691
|
+
return Js(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${i}" fill="none" stroke-width=".7"/>`, 'width="6" height="3"');
|
|
25692
25692
|
}
|
|
25693
25693
|
const nO = /* @__PURE__ */ ce.baseTheme({
|
|
25694
25694
|
".cm-diagnostic": {
|
|
@@ -25720,10 +25720,10 @@ const nO = /* @__PURE__ */ ce.baseTheme({
|
|
|
25720
25720
|
backgroundRepeat: "repeat-x",
|
|
25721
25721
|
paddingBottom: "0.7px"
|
|
25722
25722
|
},
|
|
25723
|
-
".cm-lintRange-error": { backgroundImage: /* @__PURE__ */
|
|
25724
|
-
".cm-lintRange-warning": { backgroundImage: /* @__PURE__ */
|
|
25725
|
-
".cm-lintRange-info": { backgroundImage: /* @__PURE__ */
|
|
25726
|
-
".cm-lintRange-hint": { backgroundImage: /* @__PURE__ */
|
|
25723
|
+
".cm-lintRange-error": { backgroundImage: /* @__PURE__ */ Es("#d11") },
|
|
25724
|
+
".cm-lintRange-warning": { backgroundImage: /* @__PURE__ */ Es("orange") },
|
|
25725
|
+
".cm-lintRange-info": { backgroundImage: /* @__PURE__ */ Es("#999") },
|
|
25726
|
+
".cm-lintRange-hint": { backgroundImage: /* @__PURE__ */ Es("#66d") },
|
|
25727
25727
|
".cm-lintRange-active": { backgroundColor: "#ffdd9980" },
|
|
25728
25728
|
".cm-tooltip-lint": {
|
|
25729
25729
|
padding: 0,
|
|
@@ -25891,13 +25891,13 @@ const aO = /* @__PURE__ */ zp({
|
|
|
25891
25891
|
height: "1em"
|
|
25892
25892
|
},
|
|
25893
25893
|
".cm-lint-marker-info": {
|
|
25894
|
-
content: /* @__PURE__ */
|
|
25894
|
+
content: /* @__PURE__ */ Js('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')
|
|
25895
25895
|
},
|
|
25896
25896
|
".cm-lint-marker-warning": {
|
|
25897
|
-
content: /* @__PURE__ */
|
|
25897
|
+
content: /* @__PURE__ */ Js('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')
|
|
25898
25898
|
},
|
|
25899
25899
|
".cm-lint-marker-error": {
|
|
25900
|
-
content: /* @__PURE__ */
|
|
25900
|
+
content: /* @__PURE__ */ Js('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')
|
|
25901
25901
|
}
|
|
25902
25902
|
}), S0 = [
|
|
25903
25903
|
pi,
|
|
@@ -25939,7 +25939,7 @@ const hO = [
|
|
|
25939
25939
|
Uw(),
|
|
25940
25940
|
Ew(),
|
|
25941
25941
|
VM(),
|
|
25942
|
-
|
|
25942
|
+
Xo.of([
|
|
25943
25943
|
...VA,
|
|
25944
25944
|
...PM,
|
|
25945
25945
|
...nA,
|
|
@@ -25969,7 +25969,7 @@ var fO = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize
|
|
|
25969
25969
|
e(s), s.docChanged && t(s.state.doc.toString(), s), s.focusChanged && (s.view.hasFocus ? n(s) : r(s));
|
|
25970
25970
|
})]) });
|
|
25971
25971
|
}, kr = function(i) {
|
|
25972
|
-
var e = new
|
|
25972
|
+
var e = new Uo();
|
|
25973
25973
|
return { compartment: e, run: function(t) {
|
|
25974
25974
|
e.get(i.state) ? i.dispatch({ effects: e.reconfigure(t) }) : i.dispatch({ effects: Ae.appendConfig.of(e.of(t)) });
|
|
25975
25975
|
} };
|
|
@@ -25979,7 +25979,7 @@ var fO = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize
|
|
|
25979
25979
|
var s = n.get(i.state);
|
|
25980
25980
|
r(o ?? s !== e ? e : []);
|
|
25981
25981
|
};
|
|
25982
|
-
},
|
|
25982
|
+
}, Ls = { type: Boolean, default: void 0 }, gO = { autofocus: Ls, disabled: Ls, indentWithTab: Ls, tabSize: Number, placeholder: String, style: Object, autoDestroy: Ls, phrases: Object, root: Object, extensions: Array, selection: Object }, pO = { modelValue: { type: String, default: "" } }, vO = Object.assign(Object.assign({}, gO), pO);
|
|
25983
25983
|
(function(i) {
|
|
25984
25984
|
i.Change = "change", i.Update = "update", i.Focus = "focus", i.Blur = "blur", i.Ready = "ready", i.ModelUpdate = "update:modelValue";
|
|
25985
25985
|
})(Zt || (Zt = {}));
|
|
@@ -26021,7 +26021,7 @@ var yO = Object.assign(Object.assign({}, Yn), C0), bO = Pt({ name: "VueCodemirro
|
|
|
26021
26021
|
var a = function(u) {
|
|
26022
26022
|
var c = function() {
|
|
26023
26023
|
return u.state.doc.toString();
|
|
26024
|
-
}, h = kr(u).run, f = Gd(u, [ce.editable.of(!1), Ee.readOnly.of(!0)]), d = Gd(u,
|
|
26024
|
+
}, h = kr(u).run, f = Gd(u, [ce.editable.of(!1), Ee.readOnly.of(!0)]), d = Gd(u, Xo.of([_M])), m = kr(u).run, p = kr(u).run, g = kr(u).run, y = kr(u).run;
|
|
26025
26025
|
return { focus: function() {
|
|
26026
26026
|
return u.focus();
|
|
26027
26027
|
}, getDoc: c, setDoc: function(k) {
|
|
@@ -26077,7 +26077,7 @@ var yO = Object.assign(Object.assign({}, Yn), C0), bO = Pt({ name: "VueCodemirro
|
|
|
26077
26077
|
return A("div", { class: "v-codemirror", style: { display: "contents" }, ref: t });
|
|
26078
26078
|
};
|
|
26079
26079
|
} }), xO = bO;
|
|
26080
|
-
class
|
|
26080
|
+
class _l {
|
|
26081
26081
|
/**
|
|
26082
26082
|
@internal
|
|
26083
26083
|
*/
|
|
@@ -26096,7 +26096,7 @@ class Pl {
|
|
|
26096
26096
|
*/
|
|
26097
26097
|
static start(e, t, n = 0) {
|
|
26098
26098
|
let r = e.parser.context;
|
|
26099
|
-
return new
|
|
26099
|
+
return new _l(e, [], t, n, n, 0, [], 0, r ? new Jd(r, r.start) : null, 0, null);
|
|
26100
26100
|
}
|
|
26101
26101
|
/**
|
|
26102
26102
|
The stack's current [context](#lr.ContextTracker) value, if
|
|
@@ -26237,7 +26237,7 @@ class Pl {
|
|
|
26237
26237
|
let n = e.buffer.slice(t), r = e.bufferBase + t;
|
|
26238
26238
|
for (; e && r == e.bufferBase; )
|
|
26239
26239
|
e = e.parent;
|
|
26240
|
-
return new
|
|
26240
|
+
return new _l(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, n, r, this.curContext, this.lookAhead, e);
|
|
26241
26241
|
}
|
|
26242
26242
|
// Try to recover from an error by 'deleting' (ignoring) one token.
|
|
26243
26243
|
/**
|
|
@@ -26468,12 +26468,12 @@ class kO {
|
|
|
26468
26468
|
this.state = r;
|
|
26469
26469
|
}
|
|
26470
26470
|
}
|
|
26471
|
-
class
|
|
26471
|
+
class Bl {
|
|
26472
26472
|
constructor(e, t, n) {
|
|
26473
26473
|
this.stack = e, this.pos = t, this.index = n, this.buffer = e.buffer, this.index == 0 && this.maybeNext();
|
|
26474
26474
|
}
|
|
26475
26475
|
static create(e, t = e.bufferBase + e.buffer.length) {
|
|
26476
|
-
return new
|
|
26476
|
+
return new Bl(e, t, t - e.bufferBase);
|
|
26477
26477
|
}
|
|
26478
26478
|
maybeNext() {
|
|
26479
26479
|
let e = this.stack.parent;
|
|
@@ -26495,10 +26495,10 @@ class _l {
|
|
|
26495
26495
|
this.index -= 4, this.pos -= 4, this.index == 0 && this.maybeNext();
|
|
26496
26496
|
}
|
|
26497
26497
|
fork() {
|
|
26498
|
-
return new
|
|
26498
|
+
return new Bl(this.stack, this.pos, this.index);
|
|
26499
26499
|
}
|
|
26500
26500
|
}
|
|
26501
|
-
function
|
|
26501
|
+
function Is(i, e = Uint16Array) {
|
|
26502
26502
|
if (typeof i != "string")
|
|
26503
26503
|
return i;
|
|
26504
26504
|
let t = null;
|
|
@@ -26520,12 +26520,12 @@ function Ls(i, e = Uint16Array) {
|
|
|
26520
26520
|
}
|
|
26521
26521
|
return t;
|
|
26522
26522
|
}
|
|
26523
|
-
class
|
|
26523
|
+
class Xs {
|
|
26524
26524
|
constructor() {
|
|
26525
26525
|
this.start = -1, this.value = -1, this.end = -1, this.extended = -1, this.lookAhead = 0, this.mask = 0, this.context = 0;
|
|
26526
26526
|
}
|
|
26527
26527
|
}
|
|
26528
|
-
const Xd = new
|
|
26528
|
+
const Xd = new Xs();
|
|
26529
26529
|
class wO {
|
|
26530
26530
|
/**
|
|
26531
26531
|
@internal
|
|
@@ -26799,7 +26799,7 @@ class MO {
|
|
|
26799
26799
|
}
|
|
26800
26800
|
class AO {
|
|
26801
26801
|
constructor(e, t) {
|
|
26802
|
-
this.stream = t, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = e.tokenizers.map((n) => new
|
|
26802
|
+
this.stream = t, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = e.tokenizers.map((n) => new Xs());
|
|
26803
26803
|
}
|
|
26804
26804
|
getActions(e) {
|
|
26805
26805
|
let t = 0, n = null, { parser: r } = e.p, { tokenizers: o } = r, s = r.stateSlot(
|
|
@@ -26819,12 +26819,12 @@ class AO {
|
|
|
26819
26819
|
}
|
|
26820
26820
|
for (; this.actions.length > t; )
|
|
26821
26821
|
this.actions.pop();
|
|
26822
|
-
return a && e.setLookAhead(a), !n && e.pos == this.stream.end && (n = new
|
|
26822
|
+
return a && e.setLookAhead(a), !n && e.pos == this.stream.end && (n = new Xs(), n.value = e.p.parser.eofTerm, n.start = n.end = e.pos, t = this.addActions(e, n.value, n.end, t)), this.mainToken = n, this.actions;
|
|
26823
26823
|
}
|
|
26824
26824
|
getMainToken(e) {
|
|
26825
26825
|
if (this.mainToken)
|
|
26826
26826
|
return this.mainToken;
|
|
26827
|
-
let t = new
|
|
26827
|
+
let t = new Xs(), { pos: n, p: r } = e;
|
|
26828
26828
|
return t.start = n, t.end = Math.min(n + 1, r.stream.end), t.value = n == r.stream.end ? r.parser.eofTerm : 0, t;
|
|
26829
26829
|
}
|
|
26830
26830
|
updateCachedToken(e, t, n) {
|
|
@@ -26872,7 +26872,7 @@ class OO {
|
|
|
26872
26872
|
constructor(e, t, n, r) {
|
|
26873
26873
|
this.parser = e, this.input = t, this.ranges = r, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new wO(t, r), this.tokens = new AO(e, this.stream), this.topTerm = e.top[1];
|
|
26874
26874
|
let { from: o } = r[0];
|
|
26875
|
-
this.stacks = [
|
|
26875
|
+
this.stacks = [_l.start(this, e.top[0], o)], this.fragments = n.length && this.stream.end - o > e.bufferLength * 4 ? new MO(n, e.nodeSet) : null;
|
|
26876
26876
|
}
|
|
26877
26877
|
get parsedPos() {
|
|
26878
26878
|
return this.minStackPos;
|
|
@@ -27035,7 +27035,7 @@ class OO {
|
|
|
27035
27035
|
// Convert the stack's buffer to a syntax tree.
|
|
27036
27036
|
stackToTree(e) {
|
|
27037
27037
|
return e.close(), xt.build({
|
|
27038
|
-
buffer:
|
|
27038
|
+
buffer: Bl.create(e),
|
|
27039
27039
|
nodeSet: this.parser.nodeSet,
|
|
27040
27040
|
topID: this.topTerm,
|
|
27041
27041
|
maxBufferLength: this.parser.bufferLength,
|
|
@@ -27068,7 +27068,7 @@ class TO {
|
|
|
27068
27068
|
return !this.disabled || this.disabled[e] == 0;
|
|
27069
27069
|
}
|
|
27070
27070
|
}
|
|
27071
|
-
class
|
|
27071
|
+
class Rl extends Jp {
|
|
27072
27072
|
/**
|
|
27073
27073
|
@internal
|
|
27074
27074
|
*/
|
|
@@ -27109,11 +27109,11 @@ class Bl extends Jp {
|
|
|
27109
27109
|
error: a == 0,
|
|
27110
27110
|
skipped: e.skippedNodes && e.skippedNodes.indexOf(a) > -1
|
|
27111
27111
|
}))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = Up;
|
|
27112
|
-
let s =
|
|
27112
|
+
let s = Is(e.tokenData);
|
|
27113
27113
|
this.context = e.context, this.specializerSpecs = e.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
|
|
27114
27114
|
for (let l = 0; l < this.specializerSpecs.length; l++)
|
|
27115
27115
|
this.specialized[l] = this.specializerSpecs[l].term;
|
|
27116
|
-
this.specializers = this.specializerSpecs.map(tm), this.states =
|
|
27116
|
+
this.specializers = this.specializerSpecs.map(tm), this.states = Is(e.states, Uint32Array), this.data = Is(e.stateData), this.goto = Is(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((l) => typeof l == "number" ? new Rr(s, l) : l), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
|
|
27117
27117
|
}
|
|
27118
27118
|
createParse(e, t, n) {
|
|
27119
27119
|
let r = new OO(this, e, t, n);
|
|
@@ -27237,7 +27237,7 @@ class Bl extends Jp {
|
|
|
27237
27237
|
kept from the original parser.
|
|
27238
27238
|
*/
|
|
27239
27239
|
configure(e) {
|
|
27240
|
-
let t = Object.assign(Object.create(
|
|
27240
|
+
let t = Object.assign(Object.create(Rl.prototype), this);
|
|
27241
27241
|
if (e.props && (t.nodeSet = this.nodeSet.extend(...e.props)), e.top) {
|
|
27242
27242
|
let n = this.topRules[e.top];
|
|
27243
27243
|
if (!n)
|
|
@@ -27313,7 +27313,7 @@ class Bl extends Jp {
|
|
|
27313
27313
|
user code. @hide
|
|
27314
27314
|
*/
|
|
27315
27315
|
static deserialize(e) {
|
|
27316
|
-
return new
|
|
27316
|
+
return new Rl(e);
|
|
27317
27317
|
}
|
|
27318
27318
|
}
|
|
27319
27319
|
function on(i, e) {
|
|
@@ -27347,7 +27347,7 @@ const qO = Xp({
|
|
|
27347
27347
|
", :": j.separator,
|
|
27348
27348
|
"[ ]": j.squareBracket,
|
|
27349
27349
|
"{ }": j.brace
|
|
27350
|
-
}), PO =
|
|
27350
|
+
}), PO = Rl.deserialize({
|
|
27351
27351
|
version: 14,
|
|
27352
27352
|
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
|
|
27353
27353
|
stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
|
|
@@ -27386,7 +27386,7 @@ function BO(i, e) {
|
|
|
27386
27386
|
let t;
|
|
27387
27387
|
return (t = i.message.match(/at position (\d+)/)) ? Math.min(+t[1], e.length) : (t = i.message.match(/at line (\d+) column (\d+)/)) ? Math.min(e.line(+t[1]).from + +t[2] - 1, e.length) : 0;
|
|
27388
27388
|
}
|
|
27389
|
-
const RO = /* @__PURE__ */
|
|
27389
|
+
const RO = /* @__PURE__ */ bl.define({
|
|
27390
27390
|
name: "json",
|
|
27391
27391
|
parser: /* @__PURE__ */ PO.configure({
|
|
27392
27392
|
props: [
|
|
@@ -27407,9 +27407,9 @@ const RO = /* @__PURE__ */ yl.define({
|
|
|
27407
27407
|
function EO() {
|
|
27408
27408
|
return new _S(RO);
|
|
27409
27409
|
}
|
|
27410
|
-
const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff",
|
|
27410
|
+
const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", $s = "#abb2bf", sc = "#7d8799", FO = "#61afef", NO = "#98c379", nm = "#d19a66", HO = "#c678dd", zO = "#21252b", rm = "#2c313a", om = "#282c34", eu = "#353a42", jO = "#3E4451", sm = "#528bff", WO = /* @__PURE__ */ ce.theme({
|
|
27411
27411
|
"&": {
|
|
27412
|
-
color:
|
|
27412
|
+
color: $s,
|
|
27413
27413
|
backgroundColor: om
|
|
27414
27414
|
},
|
|
27415
27415
|
".cm-content": {
|
|
@@ -27417,7 +27417,7 @@ const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", Xs = "#abb
|
|
|
27417
27417
|
},
|
|
27418
27418
|
".cm-cursor, .cm-dropCursor": { borderLeftColor: sm },
|
|
27419
27419
|
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: jO },
|
|
27420
|
-
".cm-panels": { backgroundColor: zO, color:
|
|
27420
|
+
".cm-panels": { backgroundColor: zO, color: $s },
|
|
27421
27421
|
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
|
|
27422
27422
|
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
|
|
27423
27423
|
".cm-searchMatch": {
|
|
@@ -27460,10 +27460,10 @@ const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", Xs = "#abb
|
|
|
27460
27460
|
".cm-tooltip-autocomplete": {
|
|
27461
27461
|
"& > ul > li[aria-selected]": {
|
|
27462
27462
|
backgroundColor: rm,
|
|
27463
|
-
color:
|
|
27463
|
+
color: $s
|
|
27464
27464
|
}
|
|
27465
27465
|
}
|
|
27466
|
-
}, { dark: !0 }), QO = /* @__PURE__ */
|
|
27466
|
+
}, { dark: !0 }), QO = /* @__PURE__ */ es.define([
|
|
27467
27467
|
{
|
|
27468
27468
|
tag: j.keyword,
|
|
27469
27469
|
color: HO
|
|
@@ -27482,7 +27482,7 @@ const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", Xs = "#abb
|
|
|
27482
27482
|
},
|
|
27483
27483
|
{
|
|
27484
27484
|
tag: [/* @__PURE__ */ j.definition(j.name), j.separator],
|
|
27485
|
-
color:
|
|
27485
|
+
color: $s
|
|
27486
27486
|
},
|
|
27487
27487
|
{
|
|
27488
27488
|
tag: [j.typeName, j.className, j.number, j.changed, j.annotation, j.modifier, j.self, j.namespace],
|
|
@@ -27639,7 +27639,7 @@ const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", Xs = "#abb
|
|
|
27639
27639
|
const O = [
|
|
27640
27640
|
EO(),
|
|
27641
27641
|
// Add keyboard shortcut for formatting
|
|
27642
|
-
|
|
27642
|
+
Xo.of([
|
|
27643
27643
|
{
|
|
27644
27644
|
key: T.value,
|
|
27645
27645
|
run: k
|
|
@@ -27795,7 +27795,7 @@ const lm = /* @__PURE__ */ Kt(KO, [["render", tT], ["__file", "/Users/zachsherbo
|
|
|
27795
27795
|
});
|
|
27796
27796
|
Array.isArray(n.value) || r([], !1);
|
|
27797
27797
|
const h = b(() => {
|
|
27798
|
-
const y =
|
|
27798
|
+
const y = Wo(
|
|
27799
27799
|
t.schema,
|
|
27800
27800
|
c == null ? void 0 : c.componentDefaults,
|
|
27801
27801
|
"select"
|
|
@@ -27846,7 +27846,7 @@ const lm = /* @__PURE__ */ Kt(KO, [["render", tT], ["__file", "/Users/zachsherbo
|
|
|
27846
27846
|
}
|
|
27847
27847
|
});
|
|
27848
27848
|
}, get QSelect() {
|
|
27849
|
-
return
|
|
27849
|
+
return Qo;
|
|
27850
27850
|
} };
|
|
27851
27851
|
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
27852
27852
|
}
|
|
@@ -28042,7 +28042,7 @@ const aT = ["left", "center", "right", "justify"], uT = Je({
|
|
|
28042
28042
|
M({ name: X, setCurrent: !0, skipEmit: !0 });
|
|
28043
28043
|
}), ve(() => i.outsideArrows, q);
|
|
28044
28044
|
function M({ name: X, setCurrent: ye, skipEmit: we }) {
|
|
28045
|
-
m.value !== X && (we !== !0 && i["onUpdate:modelValue"] !== void 0 && t("update:modelValue", X), (ye === !0 || i["onUpdate:modelValue"] === void 0) && (
|
|
28045
|
+
m.value !== X && (we !== !0 && i["onUpdate:modelValue"] !== void 0 && t("update:modelValue", X), (ye === !0 || i["onUpdate:modelValue"] === void 0) && (ie(m.value, X), m.value = X));
|
|
28046
28046
|
}
|
|
28047
28047
|
function q() {
|
|
28048
28048
|
o(() => {
|
|
@@ -28064,7 +28064,7 @@ const aT = ["left", "center", "right", "justify"], uT = Je({
|
|
|
28064
28064
|
), Ue = ye > 0 && we > ye;
|
|
28065
28065
|
p.value = Ue, Ue === !0 && s(w), k.value = ye < parseInt(i.breakpoint, 10);
|
|
28066
28066
|
}
|
|
28067
|
-
function
|
|
28067
|
+
function ie(X, ye) {
|
|
28068
28068
|
const we = X != null && X !== "" ? v.find((ze) => ze.name.value === X) : null, Ue = ye != null && ye !== "" ? v.find((ze) => ze.name.value === ye) : null;
|
|
28069
28069
|
if (at === !0)
|
|
28070
28070
|
at = !1;
|
|
@@ -28313,7 +28313,7 @@ function dT(i, e, t, n) {
|
|
|
28313
28313
|
}
|
|
28314
28314
|
}
|
|
28315
28315
|
function p(v) {
|
|
28316
|
-
cn(v, [13, 32]) ? m(v, !0) :
|
|
28316
|
+
cn(v, [13, 32]) ? m(v, !0) : Nl(v) !== !0 && v.keyCode >= 35 && v.keyCode <= 40 && v.altKey !== !0 && v.metaKey !== !0 && r.onKbdNavigate(v.keyCode, o.$el) === !0 && ct(v), t("keydown", v);
|
|
28317
28317
|
}
|
|
28318
28318
|
function g() {
|
|
28319
28319
|
const v = r.tabProps.value.narrowIndicator, x = [], C = A("div", {
|
|
@@ -28409,27 +28409,37 @@ const mT = Je({
|
|
|
28409
28409
|
label: t.label,
|
|
28410
28410
|
componentType: "card"
|
|
28411
28411
|
}), h = b(() => {
|
|
28412
|
-
const M =
|
|
28413
|
-
|
|
28412
|
+
const M = Wo(
|
|
28413
|
+
t.schema,
|
|
28414
|
+
c == null ? void 0 : c.componentDefaults,
|
|
28415
|
+
"select"
|
|
28416
|
+
), {
|
|
28417
|
+
autocomplete: q,
|
|
28418
|
+
useInput: z,
|
|
28419
|
+
fillInput: ie,
|
|
28420
|
+
hideSelected: I,
|
|
28421
|
+
...w
|
|
28422
|
+
} = M;
|
|
28423
|
+
return w;
|
|
28414
28424
|
}), f = b(() => t.schema.oneOf || t.schema.anyOf || []), d = J(0), m = J(!1), p = (M) => {
|
|
28415
28425
|
const q = {};
|
|
28416
28426
|
if (!(M != null && M.properties)) return q;
|
|
28417
|
-
for (const [z,
|
|
28418
|
-
|
|
28427
|
+
for (const [z, ie] of Object.entries(M.properties))
|
|
28428
|
+
ie.const !== void 0 && (q[z] = ie.const);
|
|
28419
28429
|
return q;
|
|
28420
28430
|
}, g = (M) => {
|
|
28421
28431
|
if (!M || typeof M != "object")
|
|
28422
28432
|
return 0;
|
|
28423
28433
|
for (let z = 0; z < f.value.length; z++) {
|
|
28424
|
-
const
|
|
28425
|
-
if (
|
|
28426
|
-
for (const [I, w] of Object.entries(
|
|
28434
|
+
const ie = f.value[z];
|
|
28435
|
+
if (ie != null && ie.properties)
|
|
28436
|
+
for (const [I, w] of Object.entries(ie.properties)) {
|
|
28427
28437
|
const N = w.const;
|
|
28428
28438
|
if (N !== void 0 && M[I] === N)
|
|
28429
28439
|
return z;
|
|
28430
28440
|
}
|
|
28431
28441
|
}
|
|
28432
|
-
const q = f.value.findIndex((z) =>
|
|
28442
|
+
const q = f.value.findIndex((z) => Ns.validate(z, M).valid);
|
|
28433
28443
|
return q !== -1 ? q : 0;
|
|
28434
28444
|
};
|
|
28435
28445
|
Mi(() => {
|
|
@@ -28437,7 +28447,7 @@ const mT = Je({
|
|
|
28437
28447
|
d.value = M;
|
|
28438
28448
|
const q = f.value[M];
|
|
28439
28449
|
if (q && q.properties) {
|
|
28440
|
-
const z = n.value && typeof n.value == "object" ? n.value : {},
|
|
28450
|
+
const z = n.value && typeof n.value == "object" ? n.value : {}, ie = Ns.getDefaultValue(q) || {}, I = p(q), w = { ...ie, ...z, ...I }, N = Object.keys(w).some((G) => !(G in z)), U = Object.entries(I).some(
|
|
28441
28451
|
([G, re]) => z[G] !== re
|
|
28442
28452
|
);
|
|
28443
28453
|
(N || U) && r && r(w, !1);
|
|
@@ -28455,11 +28465,11 @@ const mT = Je({
|
|
|
28455
28465
|
const M = y.value;
|
|
28456
28466
|
return M && M.properties && !M.oneOf && !M.anyOf && !M.allOf;
|
|
28457
28467
|
}), x = b(() => {
|
|
28458
|
-
var z,
|
|
28468
|
+
var z, ie;
|
|
28459
28469
|
const M = t.schema["x-oneof-style"];
|
|
28460
28470
|
if (M)
|
|
28461
28471
|
return M;
|
|
28462
|
-
const q = (
|
|
28472
|
+
const q = (ie = (z = c == null ? void 0 : c.componentDefaults) == null ? void 0 : z.oneOf) == null ? void 0 : ie.displayStyle;
|
|
28463
28473
|
return q || (f.value.length <= 4 ? "tabs" : "dropdown");
|
|
28464
28474
|
}), C = b(() => {
|
|
28465
28475
|
const M = f.value[0];
|
|
@@ -28478,9 +28488,9 @@ const mT = Je({
|
|
|
28478
28488
|
if (Array.isArray(z) && z[q])
|
|
28479
28489
|
return z[q];
|
|
28480
28490
|
if (typeof z == "object") {
|
|
28481
|
-
const
|
|
28482
|
-
if (
|
|
28483
|
-
return z[
|
|
28491
|
+
const ie = E(M);
|
|
28492
|
+
if (ie && z[ie])
|
|
28493
|
+
return z[ie];
|
|
28484
28494
|
}
|
|
28485
28495
|
}
|
|
28486
28496
|
return M.title || `Option ${q + 1}`;
|
|
@@ -28523,14 +28533,14 @@ const mT = Je({
|
|
|
28523
28533
|
else {
|
|
28524
28534
|
const z = M.toLowerCase();
|
|
28525
28535
|
D.value = V.value.filter(
|
|
28526
|
-
(
|
|
28536
|
+
(ie) => ie.label.toLowerCase().includes(z)
|
|
28527
28537
|
);
|
|
28528
28538
|
}
|
|
28529
28539
|
});
|
|
28530
28540
|
}, P = (M) => {
|
|
28531
28541
|
const q = f.value[M];
|
|
28532
28542
|
if (q && q.properties) {
|
|
28533
|
-
const z = n.value && typeof n.value == "object" ? n.value : {},
|
|
28543
|
+
const z = n.value && typeof n.value == "object" ? n.value : {}, ie = Ns.getDefaultValue(q) || {}, I = p(q), w = { ...ie, ...z, ...I };
|
|
28534
28544
|
r && r(w, !1);
|
|
28535
28545
|
}
|
|
28536
28546
|
};
|
|
@@ -28544,13 +28554,13 @@ const mT = Je({
|
|
|
28544
28554
|
}, get QCardSection() {
|
|
28545
28555
|
return gg;
|
|
28546
28556
|
}, get QSelect() {
|
|
28547
|
-
return
|
|
28557
|
+
return Qo;
|
|
28548
28558
|
}, get QTabs() {
|
|
28549
28559
|
return uT;
|
|
28550
28560
|
}, get QTab() {
|
|
28551
28561
|
return mT;
|
|
28552
28562
|
}, get FieldRenderer() {
|
|
28553
|
-
return
|
|
28563
|
+
return El;
|
|
28554
28564
|
} };
|
|
28555
28565
|
return Object.defineProperty(Y, "__isScriptSetup", { enumerable: !1, value: !0 }), Y;
|
|
28556
28566
|
}
|
|
@@ -28694,7 +28704,6 @@ function CT(i, e, t, n, r, o) {
|
|
|
28694
28704
|
"input-debounce": 0,
|
|
28695
28705
|
"fill-input": n.useFilter,
|
|
28696
28706
|
"hide-selected": n.useFilter,
|
|
28697
|
-
outlined: "",
|
|
28698
28707
|
clearable: "",
|
|
28699
28708
|
"emit-value": "",
|
|
28700
28709
|
"map-options": "",
|
|
@@ -28786,7 +28795,7 @@ const um = /* @__PURE__ */ Kt(gT, [["render", CT], ["__file", "/Users/zachsherbo
|
|
|
28786
28795
|
const a = { ...t.schema };
|
|
28787
28796
|
return delete a.allOf, o.mergeSchemas(a, ...t.schema.allOf);
|
|
28788
28797
|
}), l = { props: t, label: n, fieldGap: r, schemaUtils: o, mergedSchema: s, get FieldRenderer() {
|
|
28789
|
-
return
|
|
28798
|
+
return El;
|
|
28790
28799
|
} };
|
|
28791
28800
|
return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
|
|
28792
28801
|
}
|
|
@@ -29268,7 +29277,7 @@ const ET = /* @__PURE__ */ Pt({
|
|
|
29268
29277
|
) : !1);
|
|
29269
29278
|
});
|
|
29270
29279
|
}
|
|
29271
|
-
function
|
|
29280
|
+
function ie(w, N) {
|
|
29272
29281
|
if (N && typeof N == "string" && q.value.length > 0 && !M.value.some(
|
|
29273
29282
|
(G) => G.value === N
|
|
29274
29283
|
)) {
|
|
@@ -29280,10 +29289,10 @@ const ET = /* @__PURE__ */ Pt({
|
|
|
29280
29289
|
}
|
|
29281
29290
|
N && H(w, N);
|
|
29282
29291
|
}
|
|
29283
|
-
const I = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, quickformsDefaults: f, useTemplateSyntax: d, conditionRoot: m, isAdvancedMode: p, jsonText: g, jsonParseError: y, isInternalUpdate: k, syncToValue: v, addCondition: x, addGroup: C, removeCondition: E, updateConditionLeft: T, updateConditionOperator: H, updateConditionRight: V, updateGroupLogic: B, toggleAdvancedMode: D, handleJsonChange: R, operatorDisplayMode: O, leftPlaceholder: P, rightPlaceholder: F, allowedOperators: Y, operatorOptions: M, filteredOperatorOptions: q, filterOperators: z, handleOperatorInput:
|
|
29292
|
+
const I = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, quickformsDefaults: f, useTemplateSyntax: d, conditionRoot: m, isAdvancedMode: p, jsonText: g, jsonParseError: y, isInternalUpdate: k, syncToValue: v, addCondition: x, addGroup: C, removeCondition: E, updateConditionLeft: T, updateConditionOperator: H, updateConditionRight: V, updateGroupLogic: B, toggleAdvancedMode: D, handleJsonChange: R, operatorDisplayMode: O, leftPlaceholder: P, rightPlaceholder: F, allowedOperators: Y, operatorOptions: M, filteredOperatorOptions: q, filterOperators: z, handleOperatorInput: ie, get QBtn() {
|
|
29284
29293
|
return It;
|
|
29285
29294
|
}, get QSelect() {
|
|
29286
|
-
return
|
|
29295
|
+
return Qo;
|
|
29287
29296
|
}, get QInput() {
|
|
29288
29297
|
return cr;
|
|
29289
29298
|
}, get QIcon() {
|
|
@@ -29459,7 +29468,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29459
29468
|
s.type === "condition" ? (te(), ae("div", WT, [
|
|
29460
29469
|
ke("div", QT, [
|
|
29461
29470
|
se(" Left value (slot or default input) "),
|
|
29462
|
-
|
|
29471
|
+
rs(i.$slots, "left-input", {
|
|
29463
29472
|
value: s.left,
|
|
29464
29473
|
onChange: (u) => n.updateConditionLeft(s, u),
|
|
29465
29474
|
disabled: t.disabled,
|
|
@@ -29484,6 +29493,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29484
29493
|
"emit-value": "",
|
|
29485
29494
|
"map-options": "",
|
|
29486
29495
|
dense: "",
|
|
29496
|
+
"options-dense": "",
|
|
29487
29497
|
outlined: "",
|
|
29488
29498
|
"use-input": "",
|
|
29489
29499
|
"input-debounce": "0",
|
|
@@ -29527,7 +29537,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29527
29537
|
name: "option",
|
|
29528
29538
|
fn: ge((u) => [
|
|
29529
29539
|
ee(
|
|
29530
|
-
|
|
29540
|
+
el,
|
|
29531
29541
|
ot({ ref_for: !0 }, u.itemProps),
|
|
29532
29542
|
{
|
|
29533
29543
|
default: ge(() => [
|
|
@@ -29607,7 +29617,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29607
29617
|
} : void 0
|
|
29608
29618
|
]), 1032, ["model-value", "options", "disable", "readonly", "onUpdate:modelValue"]),
|
|
29609
29619
|
se(" Right value (conditional based on operator) "),
|
|
29610
|
-
(a = n.getOperatorInfo(s.operator)) != null && a.rightRequired ?
|
|
29620
|
+
(a = n.getOperatorInfo(s.operator)) != null && a.rightRequired ? rs(i.$slots, "right-input", {
|
|
29611
29621
|
key: 0,
|
|
29612
29622
|
value: s.right,
|
|
29613
29623
|
onChange: (u) => n.updateConditionRight(s, u),
|
|
@@ -29725,7 +29735,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29725
29735
|
[
|
|
29726
29736
|
u.type === "condition" ? (te(), ae("div", ZT, [
|
|
29727
29737
|
ke("div", e2, [
|
|
29728
|
-
|
|
29738
|
+
rs(i.$slots, "left-input", {
|
|
29729
29739
|
value: u.left,
|
|
29730
29740
|
onChange: (h) => n.updateConditionLeft(u, h),
|
|
29731
29741
|
disabled: t.disabled,
|
|
@@ -29749,6 +29759,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29749
29759
|
"emit-value": "",
|
|
29750
29760
|
"map-options": "",
|
|
29751
29761
|
dense: "",
|
|
29762
|
+
"options-dense": "",
|
|
29752
29763
|
outlined: "",
|
|
29753
29764
|
"use-input": "",
|
|
29754
29765
|
"input-debounce": "0",
|
|
@@ -29796,7 +29807,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29796
29807
|
name: "option",
|
|
29797
29808
|
fn: ge((h) => [
|
|
29798
29809
|
ee(
|
|
29799
|
-
|
|
29810
|
+
el,
|
|
29800
29811
|
ot({ ref_for: !0 }, h.itemProps),
|
|
29801
29812
|
{
|
|
29802
29813
|
default: ge(() => [
|
|
@@ -29875,7 +29886,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29875
29886
|
key: "1"
|
|
29876
29887
|
} : void 0
|
|
29877
29888
|
]), 1032, ["model-value", "options", "disable", "readonly", "onUpdate:modelValue"]),
|
|
29878
|
-
(c = n.getOperatorInfo(u.operator)) != null && c.rightRequired ?
|
|
29889
|
+
(c = n.getOperatorInfo(u.operator)) != null && c.rightRequired ? rs(i.$slots, "right-input", {
|
|
29879
29890
|
key: 0,
|
|
29880
29891
|
value: u.right,
|
|
29881
29892
|
onChange: (h) => n.updateConditionRight(u, h),
|
|
@@ -30053,7 +30064,7 @@ const h2 = /* @__PURE__ */ Kt(ET, [["render", c2], ["__scopeId", "data-v-722c2e2
|
|
|
30053
30064
|
});
|
|
30054
30065
|
Array.isArray(n.value) || r([], !1);
|
|
30055
30066
|
const f = b(() => {
|
|
30056
|
-
const V =
|
|
30067
|
+
const V = Wo(
|
|
30057
30068
|
t.schema,
|
|
30058
30069
|
h == null ? void 0 : h.componentDefaults,
|
|
30059
30070
|
"select"
|
|
@@ -30140,7 +30151,7 @@ const h2 = /* @__PURE__ */ Kt(ET, [["render", c2], ["__scopeId", "data-v-722c2e2
|
|
|
30140
30151
|
r(B.filter((D) => D !== V));
|
|
30141
30152
|
}
|
|
30142
30153
|
const H = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, quasarProps: f, quickformsFeatures: d, itemsSchema: m, isEmailFormat: p, EMAIL_REGEX: g, validateItem: y, getChipProps: k, placeholder: v, parseInput: x, handleNewValue: C, filterFn: E, removeValue: T, get QSelect() {
|
|
30143
|
-
return
|
|
30154
|
+
return Qo;
|
|
30144
30155
|
}, get QChip() {
|
|
30145
30156
|
return Lm;
|
|
30146
30157
|
} };
|
|
@@ -30408,7 +30419,7 @@ export {
|
|
|
30408
30419
|
Y2 as isStringType,
|
|
30409
30420
|
G2 as isTimeFormat,
|
|
30410
30421
|
J2 as isUrlFormat,
|
|
30411
|
-
|
|
30422
|
+
Wo as mergeQuasarProps,
|
|
30412
30423
|
zy as mergeQuickFormsQuasarFeatures,
|
|
30413
30424
|
X2 as not,
|
|
30414
30425
|
$2 as or,
|