@quoreadmin/ui 1.8.7 → 1.8.9
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.css +1 -1
- package/dist/index127.js +21 -20
- package/dist/index142.js +241 -230
- package/dist/index144.js +1 -1
- package/dist/index174.js +14 -14
- package/dist/index175.js +3 -3
- package/dist/index178.js +4 -4
- package/dist/index185.js +10 -10
- package/dist/index187.js +10 -10
- package/dist/index189.js +1190 -36
- package/dist/index191.js +36 -1190
- package/dist/{index190.js → index192.js} +17 -17
- package/dist/index193.js +28 -28
- package/dist/index194.js +2 -2
- package/dist/index195.js +2 -2
- package/dist/index196.js +1 -1
- package/dist/index198.js +2 -2
- package/dist/index200.js +14 -14
- package/dist/index201.js +1 -1
- package/dist/index202.js +1 -1
- package/dist/index203.js +3 -3
- package/dist/index204.js +6 -6
- package/dist/index205.js +29 -84
- package/dist/index206.js +109 -400
- package/dist/index207.js +36 -22
- package/dist/index208.js +26 -33
- package/dist/index209.js +31 -111
- package/dist/index210.js +50 -35
- package/dist/index211.js +43 -26
- package/dist/index212.js +3 -35
- package/dist/index213.js +9 -51
- package/dist/index214.js +18 -42
- package/dist/index215.js +10 -4
- package/dist/index216.js +10 -9
- package/dist/index217.js +38 -18
- package/dist/index218.js +21 -10
- package/dist/index219.js +127 -10
- package/dist/index220.js +36 -37
- package/dist/index221.js +407 -21
- package/dist/index222.js +80 -161
- package/dist/index223.js +20 -228
- package/dist/index224.js +82 -31
- package/dist/index225.js +20 -10
- package/dist/index226.js +19 -160
- package/dist/index227.js +10 -10
- package/dist/index228.js +8 -8
- package/dist/index229.js +22 -22
- package/dist/index230.js +156 -194
- package/dist/index231.js +224 -66
- package/dist/index232.js +37 -34
- package/dist/index233.js +9 -39
- package/dist/index234.js +3618 -109
- package/dist/index235.js +49 -32
- package/dist/index236.js +70 -73
- package/dist/index237.js +52 -20
- package/dist/index238.js +215 -20
- package/dist/index239.js +10 -20
- package/dist/index240.js +57 -20
- package/dist/index241.js +49 -241
- package/dist/index242.js +53 -7
- package/dist/index243.js +71 -134
- package/dist/index244.js +718 -75
- package/dist/index245.js +30 -3624
- package/dist/index246.js +41 -32
- package/dist/index247.js +10 -76
- package/dist/index248.js +694 -41
- package/dist/index249.js +812 -207
- package/dist/index250.js +161 -10
- package/dist/index251.js +20 -57
- package/dist/index252.js +22 -61
- package/dist/index253.js +192 -47
- package/dist/index254.js +66 -71
- package/dist/index255.js +33 -725
- package/dist/index256.js +36 -38
- package/dist/index257.js +22 -64
- package/dist/index258.js +22 -11
- package/dist/index259.js +20 -705
- package/dist/index260.js +792 -776
- package/dist/index261.js +701 -21
- package/dist/index262.js +176 -22
- package/dist/index263.js +15 -13
- package/dist/index264.js +20 -836
- package/dist/index265.js +19 -701
- package/dist/index266.js +3 -176
- package/dist/index267.js +186 -21
- package/dist/index268.js +132 -19
- package/dist/index269.js +1223 -20
- package/dist/index270.js +20 -3
- package/dist/index271.js +21 -186
- package/dist/index272.js +21 -132
- package/dist/index273.js +29 -1223
- package/dist/index274.js +12 -12
- package/dist/index275.js +13 -15
- package/dist/index276.js +2 -22
- package/dist/index277.js +2 -29
- package/dist/index278.js +253 -20
- package/dist/index279.js +8 -20
- package/dist/index280.js +138 -2
- package/dist/index281.js +83 -2
- package/dist/index282.js +2 -54
- package/dist/index283.js +1 -1
- package/dist/index284.js +1534 -26
- package/dist/index285.js +386 -22
- package/dist/index286.js +2731 -22
- package/dist/index287.js +86 -16
- package/dist/index288.js +3792 -17
- package/dist/index289.js +59 -22
- package/dist/index290.js +15 -3
- package/dist/index291.js +81 -24
- package/dist/index292.js +202 -2
- package/dist/index293.js +220 -1508
- package/dist/index294.js +242 -366
- package/dist/index295.js +4 -2729
- package/dist/index296.js +137 -83
- package/dist/index297.js +69 -3788
- package/dist/index298.js +83 -56
- package/dist/index299.js +29 -15
- package/dist/index300.js +14 -82
- package/dist/index301.js +64 -191
- package/dist/index302.js +3 -245
- package/dist/index303.js +2 -262
- package/dist/index304.js +82 -5
- package/dist/index305.js +45 -132
- package/dist/index306.js +4 -71
- package/dist/index307.js +4 -86
- package/dist/index308.js +176 -26
- package/dist/index309.js +61 -14
- package/dist/index310.js +75 -75
- package/dist/index311.js +53 -3
- package/dist/index312.js +26 -2
- package/dist/index313.js +21 -82
- package/dist/index314.js +21 -52
- package/dist/index315.js +16 -6
- package/dist/index316.js +16 -4
- package/dist/index317.js +22 -178
- package/dist/index318.js +3 -63
- package/dist/index319.js +27 -75
- package/dist/index320.js +1 -1
- package/dist/index322.js +2 -2
- package/dist/index326.js +1 -1
- package/dist/index327.js +1 -1
- package/dist/index328.js +1 -1
- package/dist/index331.js +1 -1
- package/dist/index332.js +1 -1
- package/dist/index333.js +18 -8
- package/dist/index334.js +56 -12
- package/dist/index335.js +27 -53
- package/dist/index336.js +6 -11
- package/dist/index337.js +50 -12
- package/dist/index338.js +7 -58
- package/dist/index339.js +10 -50
- package/dist/index340.js +7 -31
- package/dist/index341.js +28 -2
- package/dist/index342.js +2 -5
- package/dist/index343.js +70 -2
- package/dist/index344.js +165 -21
- package/dist/index345.js +8 -40
- package/dist/index346.js +13 -2
- package/dist/index347.js +55 -11
- package/dist/index348.js +10 -18
- package/dist/index349.js +14 -10
- package/dist/index350.js +58 -10
- package/dist/index351.js +51 -16
- package/dist/index352.js +31 -2
- package/dist/index353.js +2 -9
- package/dist/index354.js +5 -10
- package/dist/index355.js +2 -14
- package/dist/index356.js +23 -19
- package/dist/index357.js +40 -56
- package/dist/index358.js +2 -29
- package/dist/index359.js +11 -7
- package/dist/index360.js +17 -49
- package/dist/index361.js +9 -6
- package/dist/index362.js +10 -12
- package/dist/index363.js +16 -6
- package/dist/index364.js +2 -28
- package/dist/index365.js +9 -2
- package/dist/index366.js +10 -70
- package/dist/index367.js +12 -165
- package/dist/index37.js +3 -3
- package/dist/index370.js +1 -1
- package/dist/index371.js +1 -1
- package/dist/index372.js +95 -98
- package/dist/index373.js +100 -90
- package/dist/index374.js +30 -97
- package/dist/index375.js +10 -30
- package/dist/index376.js +3 -10
- package/dist/index377.js +3 -3
- package/dist/index378.js +13 -4
- package/dist/index379.js +7 -13
- package/dist/index380.js +12 -7
- package/dist/index381.js +4 -11
- package/dist/index382.js +33 -5
- package/dist/index383.js +31 -33
- package/dist/index384.js +26 -29
- package/dist/index385.js +59 -26
- package/dist/index386.js +91 -61
- package/dist/index387.js +1 -1
- package/dist/index388.js +1 -1
- package/dist/index393.js +1 -1
- package/dist/index394.js +2 -2
- package/dist/index44.js +304 -293
- package/dist/src/components/page-header/page-header.stories.d.ts +18 -0
- package/dist/src/components/page-header/page-header.vue.d.ts +2 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +24 -7
- package/package.json +1 -1
package/dist/index294.js
CHANGED
|
@@ -1,388 +1,264 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return
|
|
1
|
+
import R from "./index295.js";
|
|
2
|
+
const { toString: T } = Object.prototype, { getPrototypeOf: h } = Object, { iterator: g, toStringTag: x } = Symbol, b = /* @__PURE__ */ ((e) => (t) => {
|
|
3
|
+
const r = T.call(t);
|
|
4
|
+
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
5
|
+
})(/* @__PURE__ */ Object.create(null)), f = (e) => (e = e.toLowerCase(), (t) => b(t) === e), O = (e) => (t) => typeof t === e, { isArray: p } = Array, a = O("undefined");
|
|
6
|
+
function d(e) {
|
|
7
|
+
return e !== null && !a(e) && e.constructor !== null && !a(e.constructor) && c(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
let o = z(n);
|
|
14
|
-
if (!o) {
|
|
15
|
-
let i = n.blockRange(), f = i && A(i);
|
|
16
|
-
return f == null ? !1 : (e && e(t.tr.lift(i, f).scrollIntoView()), !0);
|
|
17
|
-
}
|
|
18
|
-
let l = o.nodeBefore;
|
|
19
|
-
if (D(t, o, e, -1))
|
|
20
|
-
return !0;
|
|
21
|
-
if (n.parent.content.size == 0 && (x(l, "end") || d.isSelectable(l)))
|
|
22
|
-
for (let i = n.depth; ; i--) {
|
|
23
|
-
let f = B(t.doc, n.before(i), n.after(i), y.empty);
|
|
24
|
-
if (f && f.slice.size < f.to - f.from) {
|
|
25
|
-
if (e) {
|
|
26
|
-
let c = t.tr.step(f);
|
|
27
|
-
c.setSelection(x(l, "end") ? V.findFrom(c.doc.resolve(c.mapping.map(o.pos, -1)), -1) : d.create(c.doc, o.pos - l.nodeSize)), e(c.scrollIntoView());
|
|
28
|
-
}
|
|
29
|
-
return !0;
|
|
30
|
-
}
|
|
31
|
-
if (i == 1 || n.node(i - 1).childCount > 1)
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
return l.isAtom && o.depth == n.depth - 1 ? (e && e(t.tr.delete(o.pos - l.nodeSize, o.pos).scrollIntoView()), !0) : !1;
|
|
35
|
-
}, oe = (t, e, r) => {
|
|
36
|
-
let n = N(t, r);
|
|
37
|
-
if (!n)
|
|
38
|
-
return !1;
|
|
39
|
-
let o = z(n);
|
|
40
|
-
return o ? E(t, o, e) : !1;
|
|
41
|
-
}, le = (t, e, r) => {
|
|
42
|
-
let n = W(t, r);
|
|
43
|
-
if (!n)
|
|
44
|
-
return !1;
|
|
45
|
-
let o = R(n);
|
|
46
|
-
return o ? E(t, o, e) : !1;
|
|
47
|
-
};
|
|
48
|
-
function E(t, e, r) {
|
|
49
|
-
let n = e.nodeBefore, o = n, l = e.pos - 1;
|
|
50
|
-
for (; !o.isTextblock; l--) {
|
|
51
|
-
if (o.type.spec.isolating)
|
|
52
|
-
return !1;
|
|
53
|
-
let s = o.lastChild;
|
|
54
|
-
if (!s)
|
|
55
|
-
return !1;
|
|
56
|
-
o = s;
|
|
57
|
-
}
|
|
58
|
-
let i = e.nodeAfter, f = i, c = e.pos + 1;
|
|
59
|
-
for (; !f.isTextblock; c++) {
|
|
60
|
-
if (f.type.spec.isolating)
|
|
61
|
-
return !1;
|
|
62
|
-
let s = f.firstChild;
|
|
63
|
-
if (!s)
|
|
64
|
-
return !1;
|
|
65
|
-
f = s;
|
|
66
|
-
}
|
|
67
|
-
let p = B(t.doc, l, c, y.empty);
|
|
68
|
-
if (!p || p.from != l || p instanceof U && p.slice.size >= c - l)
|
|
69
|
-
return !1;
|
|
70
|
-
if (r) {
|
|
71
|
-
let s = t.tr.step(p);
|
|
72
|
-
s.setSelection(I.create(s.doc, l)), r(s.scrollIntoView());
|
|
73
|
-
}
|
|
74
|
-
return !0;
|
|
75
|
-
}
|
|
76
|
-
function x(t, e, r = !1) {
|
|
77
|
-
for (let n = t; n; n = e == "start" ? n.firstChild : n.lastChild) {
|
|
78
|
-
if (n.isTextblock)
|
|
79
|
-
return !0;
|
|
80
|
-
if (r && n.childCount != 1)
|
|
81
|
-
return !1;
|
|
82
|
-
}
|
|
83
|
-
return !1;
|
|
9
|
+
const S = f("ArrayBuffer");
|
|
10
|
+
function M(e) {
|
|
11
|
+
let t;
|
|
12
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && S(e.buffer), t;
|
|
84
13
|
}
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
if (!o)
|
|
14
|
+
const _ = O("string"), c = O("function"), B = O("number"), y = (e) => e !== null && typeof e == "object", N = (e) => e === !0 || e === !1, w = (e) => {
|
|
15
|
+
if (b(e) !== "object")
|
|
88
16
|
return !1;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
let i = l && l.nodeBefore;
|
|
95
|
-
return !i || !d.isSelectable(i) ? !1 : (e && e(t.tr.setSelection(d.create(t.doc, l.pos - i.nodeSize)).scrollIntoView()), !0);
|
|
96
|
-
};
|
|
97
|
-
function z(t) {
|
|
98
|
-
if (!t.parent.type.spec.isolating)
|
|
99
|
-
for (let e = t.depth - 1; e >= 0; e--) {
|
|
100
|
-
if (t.index(e) > 0)
|
|
101
|
-
return t.doc.resolve(t.before(e + 1));
|
|
102
|
-
if (t.node(e).type.spec.isolating)
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
return null;
|
|
106
|
-
}
|
|
107
|
-
function W(t, e) {
|
|
108
|
-
let { $cursor: r } = t.selection;
|
|
109
|
-
return !r || (e ? !e.endOfTextblock("forward", t) : r.parentOffset < r.parent.content.size) ? null : r;
|
|
110
|
-
}
|
|
111
|
-
const K = (t, e, r) => {
|
|
112
|
-
let n = W(t, r);
|
|
113
|
-
if (!n)
|
|
17
|
+
const t = h(e);
|
|
18
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(x in e) && !(g in e);
|
|
19
|
+
}, U = (e) => {
|
|
20
|
+
if (!y(e) || d(e))
|
|
114
21
|
return !1;
|
|
115
|
-
|
|
116
|
-
|
|
22
|
+
try {
|
|
23
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
24
|
+
} catch {
|
|
117
25
|
return !1;
|
|
118
|
-
let l = o.nodeAfter;
|
|
119
|
-
if (D(t, o, e, 1))
|
|
120
|
-
return !0;
|
|
121
|
-
if (n.parent.content.size == 0 && (x(l, "start") || d.isSelectable(l))) {
|
|
122
|
-
let i = B(t.doc, n.before(), n.after(), y.empty);
|
|
123
|
-
if (i && i.slice.size < i.to - i.from) {
|
|
124
|
-
if (e) {
|
|
125
|
-
let f = t.tr.step(i);
|
|
126
|
-
f.setSelection(x(l, "start") ? V.findFrom(f.doc.resolve(f.mapping.map(o.pos)), 1) : d.create(f.doc, f.mapping.map(o.pos))), e(f.scrollIntoView());
|
|
127
|
-
}
|
|
128
|
-
return !0;
|
|
129
|
-
}
|
|
130
26
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
27
|
+
}, I = f("Date"), k = f("File"), V = f("Blob"), q = f("FileList"), H = (e) => y(e) && c(e.pipe), z = (e) => {
|
|
28
|
+
let t;
|
|
29
|
+
return e && (typeof FormData == "function" && e instanceof FormData || c(e.append) && ((t = b(e)) === "formdata" || // detect form-data instance
|
|
30
|
+
t === "object" && c(e.toString) && e.toString() === "[object FormData]"));
|
|
31
|
+
}, J = f("URLSearchParams"), [K, $, W, G] = [
|
|
32
|
+
"ReadableStream",
|
|
33
|
+
"Request",
|
|
34
|
+
"Response",
|
|
35
|
+
"Headers"
|
|
36
|
+
].map(f), Q = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37
|
+
function m(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
38
|
+
if (e === null || typeof e > "u")
|
|
39
|
+
return;
|
|
40
|
+
let n, s;
|
|
41
|
+
if (typeof e != "object" && (e = [e]), p(e))
|
|
42
|
+
for (n = 0, s = e.length; n < s; n++)
|
|
43
|
+
t.call(null, e[n], n, e);
|
|
44
|
+
else {
|
|
45
|
+
if (d(e))
|
|
46
|
+
return;
|
|
47
|
+
const o = r ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
48
|
+
let l;
|
|
49
|
+
for (n = 0; n < i; n++)
|
|
50
|
+
l = o[n], t.call(null, e[l], l, e);
|
|
140
51
|
}
|
|
141
|
-
let i = l && l.nodeAfter;
|
|
142
|
-
return !i || !d.isSelectable(i) ? !1 : (e && e(t.tr.setSelection(d.create(t.doc, l.pos)).scrollIntoView()), !0);
|
|
143
|
-
};
|
|
144
|
-
function R(t) {
|
|
145
|
-
if (!t.parent.type.spec.isolating)
|
|
146
|
-
for (let e = t.depth - 1; e >= 0; e--) {
|
|
147
|
-
let r = t.node(e);
|
|
148
|
-
if (t.index(e) + 1 < r.childCount)
|
|
149
|
-
return t.doc.resolve(t.after(e + 1));
|
|
150
|
-
if (r.type.spec.isolating)
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
return null;
|
|
154
52
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
let l = t.tr.join(o);
|
|
165
|
-
n && l.setSelection(d.create(l.doc, o - t.doc.resolve(o).nodeBefore.nodeSize)), e(l.scrollIntoView());
|
|
166
|
-
}
|
|
167
|
-
return !0;
|
|
168
|
-
}, fe = (t, e) => {
|
|
169
|
-
let r = t.selection, n;
|
|
170
|
-
if (r instanceof d) {
|
|
171
|
-
if (r.node.isTextblock || !T(t.doc, r.to))
|
|
172
|
-
return !1;
|
|
173
|
-
n = r.to;
|
|
174
|
-
} else if (n = F(t.doc, r.to, 1), n == null)
|
|
175
|
-
return !1;
|
|
176
|
-
return e && e(t.tr.join(n).scrollIntoView()), !0;
|
|
177
|
-
}, ce = (t, e) => {
|
|
178
|
-
let { $from: r, $to: n } = t.selection, o = r.blockRange(n), l = o && A(o);
|
|
179
|
-
return l == null ? !1 : (e && e(t.tr.lift(o, l).scrollIntoView()), !0);
|
|
180
|
-
}, Q = (t, e) => {
|
|
181
|
-
let { $head: r, $anchor: n } = t.selection;
|
|
182
|
-
return !r.parent.type.spec.code || !r.sameParent(n) ? !1 : (e && e(t.tr.insertText(`
|
|
183
|
-
`).scrollIntoView()), !0);
|
|
184
|
-
};
|
|
185
|
-
function j(t) {
|
|
186
|
-
for (let e = 0; e < t.edgeCount; e++) {
|
|
187
|
-
let { type: r } = t.edge(e);
|
|
188
|
-
if (r.isTextblock && !r.hasRequiredAttrs())
|
|
189
|
-
return r;
|
|
190
|
-
}
|
|
53
|
+
function E(e, t) {
|
|
54
|
+
if (d(e))
|
|
55
|
+
return null;
|
|
56
|
+
t = t.toLowerCase();
|
|
57
|
+
const r = Object.keys(e);
|
|
58
|
+
let n = r.length, s;
|
|
59
|
+
for (; n-- > 0; )
|
|
60
|
+
if (s = r[n], t === s.toLowerCase())
|
|
61
|
+
return s;
|
|
191
62
|
return null;
|
|
192
63
|
}
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
if (e) {
|
|
201
|
-
let f = r.after(), c = t.tr.replaceWith(f, f, i.createAndFill());
|
|
202
|
-
c.setSelection(V.near(c.doc.resolve(f), 1)), e(c.scrollIntoView());
|
|
203
|
-
}
|
|
204
|
-
return !0;
|
|
205
|
-
}, X = (t, e) => {
|
|
206
|
-
let r = t.selection, { $from: n, $to: o } = r;
|
|
207
|
-
if (r instanceof P || n.parent.inlineContent || o.parent.inlineContent)
|
|
208
|
-
return !1;
|
|
209
|
-
let l = j(o.parent.contentMatchAt(o.indexAfter()));
|
|
210
|
-
if (!l || !l.isTextblock)
|
|
211
|
-
return !1;
|
|
212
|
-
if (e) {
|
|
213
|
-
let i = (!n.parentOffset && o.index() < o.parent.childCount ? n : o).pos, f = t.tr.insert(i, l.createAndFill());
|
|
214
|
-
f.setSelection(I.create(f.doc, i + 1)), e(f.scrollIntoView());
|
|
215
|
-
}
|
|
216
|
-
return !0;
|
|
217
|
-
}, Y = (t, e) => {
|
|
218
|
-
let { $cursor: r } = t.selection;
|
|
219
|
-
if (!r || r.parent.content.size)
|
|
220
|
-
return !1;
|
|
221
|
-
if (r.depth > 1 && r.after() != r.end(-1)) {
|
|
222
|
-
let l = r.before();
|
|
223
|
-
if (h(t.doc, l))
|
|
224
|
-
return e && e(t.tr.split(l).scrollIntoView()), !0;
|
|
225
|
-
}
|
|
226
|
-
let n = r.blockRange(), o = n && A(n);
|
|
227
|
-
return o == null ? !1 : (e && e(t.tr.lift(n, o).scrollIntoView()), !0);
|
|
228
|
-
};
|
|
229
|
-
function Z(t) {
|
|
230
|
-
return (e, r) => {
|
|
231
|
-
let { $from: n, $to: o } = e.selection;
|
|
232
|
-
if (e.selection instanceof d && e.selection.node.isBlock)
|
|
233
|
-
return !n.parentOffset || !h(e.doc, n.pos) ? !1 : (r && r(e.tr.split(n.pos).scrollIntoView()), !0);
|
|
234
|
-
if (!n.depth)
|
|
235
|
-
return !1;
|
|
236
|
-
let l = [], i, f, c = !1, p = !1;
|
|
237
|
-
for (let u = n.depth; ; u--)
|
|
238
|
-
if (n.node(u).isBlock) {
|
|
239
|
-
c = n.end(u) == n.pos + (n.depth - u), p = n.start(u) == n.pos - (n.depth - u), f = j(n.node(u - 1).contentMatchAt(n.indexAfter(u - 1))), l.unshift(c && f ? { type: f } : null), i = u;
|
|
240
|
-
break;
|
|
241
|
-
} else {
|
|
242
|
-
if (u == 1)
|
|
243
|
-
return !1;
|
|
244
|
-
l.unshift(null);
|
|
245
|
-
}
|
|
246
|
-
let s = e.tr;
|
|
247
|
-
(e.selection instanceof I || e.selection instanceof P) && s.deleteSelection();
|
|
248
|
-
let m = s.mapping.map(n.pos), k = h(s.doc, m, l.length, l);
|
|
249
|
-
if (k || (l[0] = f ? { type: f } : null, k = h(s.doc, m, l.length, l)), !k)
|
|
250
|
-
return !1;
|
|
251
|
-
if (s.split(m, l.length, l), !c && p && n.node(i).type != f) {
|
|
252
|
-
let u = s.mapping.map(n.before(i)), a = s.doc.resolve(u);
|
|
253
|
-
f && n.node(i - 1).canReplaceWith(a.index(), a.index() + 1, f) && s.setNodeMarkup(s.mapping.map(n.before(i)), f);
|
|
254
|
-
}
|
|
255
|
-
return r && r(s.scrollIntoView()), !0;
|
|
64
|
+
const u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, L = (e) => !a(e) && e !== u;
|
|
65
|
+
function F() {
|
|
66
|
+
const { caseless: e, skipUndefined: t } = L(this) && this || {}, r = {}, n = (s, o) => {
|
|
67
|
+
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
68
|
+
return;
|
|
69
|
+
const i = e && E(r, o) || o;
|
|
70
|
+
w(r[i]) && w(s) ? r[i] = F(r[i], s) : w(s) ? r[i] = F({}, s) : p(s) ? r[i] = s.slice() : (!t || !a(s)) && (r[i] = s);
|
|
256
71
|
};
|
|
72
|
+
for (let s = 0, o = arguments.length; s < o; s++)
|
|
73
|
+
arguments[s] && m(arguments[s], n);
|
|
74
|
+
return r;
|
|
257
75
|
}
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
76
|
+
const X = (e, t, r, { allOwnKeys: n } = {}) => (m(
|
|
77
|
+
t,
|
|
78
|
+
(s, o) => {
|
|
79
|
+
r && c(s) ? Object.defineProperty(e, o, {
|
|
80
|
+
value: R(s, r),
|
|
81
|
+
writable: !0,
|
|
82
|
+
enumerable: !0,
|
|
83
|
+
configurable: !0
|
|
84
|
+
}) : Object.defineProperty(e, o, {
|
|
85
|
+
value: s,
|
|
86
|
+
writable: !0,
|
|
87
|
+
enumerable: !0,
|
|
88
|
+
configurable: !0
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
{ allOwnKeys: n }
|
|
92
|
+
), e), Y = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Z = (e, t, r, n) => {
|
|
93
|
+
e.prototype = Object.create(
|
|
94
|
+
t.prototype,
|
|
95
|
+
n
|
|
96
|
+
), Object.defineProperty(e.prototype, "constructor", {
|
|
97
|
+
value: e,
|
|
98
|
+
writable: !0,
|
|
99
|
+
enumerable: !1,
|
|
100
|
+
configurable: !0
|
|
101
|
+
}), Object.defineProperty(e, "super", {
|
|
102
|
+
value: t.prototype
|
|
103
|
+
}), r && Object.assign(e.prototype, r);
|
|
104
|
+
}, j = (e, t, r, n) => {
|
|
105
|
+
let s, o, i;
|
|
106
|
+
const l = {};
|
|
107
|
+
if (t = t || {}, e == null) return t;
|
|
108
|
+
do {
|
|
109
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
110
|
+
i = s[o], (!n || n(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
|
|
111
|
+
e = r !== !1 && h(e);
|
|
112
|
+
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
113
|
+
return t;
|
|
114
|
+
}, v = (e, t, r) => {
|
|
115
|
+
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
116
|
+
const n = e.indexOf(t, r);
|
|
117
|
+
return n !== -1 && n === r;
|
|
118
|
+
}, ee = (e) => {
|
|
119
|
+
if (!e) return null;
|
|
120
|
+
if (p(e)) return e;
|
|
121
|
+
let t = e.length;
|
|
122
|
+
if (!B(t)) return null;
|
|
123
|
+
const r = new Array(t);
|
|
124
|
+
for (; t-- > 0; )
|
|
125
|
+
r[t] = e[t];
|
|
126
|
+
return r;
|
|
127
|
+
}, te = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && h(Uint8Array)), re = (e, t) => {
|
|
128
|
+
const n = (e && e[g]).call(e);
|
|
129
|
+
let s;
|
|
130
|
+
for (; (s = n.next()) && !s.done; ) {
|
|
131
|
+
const o = s.value;
|
|
132
|
+
t.call(e, o[0], o[1]);
|
|
281
133
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
134
|
+
}, ne = (e, t) => {
|
|
135
|
+
let r;
|
|
136
|
+
const n = [];
|
|
137
|
+
for (; (r = e.exec(t)) !== null; )
|
|
138
|
+
n.push(r);
|
|
139
|
+
return n;
|
|
140
|
+
}, se = f("HTMLFormElement"), oe = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
|
|
141
|
+
return n.toUpperCase() + s;
|
|
142
|
+
}), P = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ie = f("RegExp"), C = (e, t) => {
|
|
143
|
+
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
144
|
+
m(r, (s, o) => {
|
|
145
|
+
let i;
|
|
146
|
+
(i = t(s, o, e)) !== !1 && (n[o] = i || s);
|
|
147
|
+
}), Object.defineProperties(e, n);
|
|
148
|
+
}, ce = (e) => {
|
|
149
|
+
C(e, (t, r) => {
|
|
150
|
+
if (c(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
151
|
+
return !1;
|
|
152
|
+
const n = e[r];
|
|
153
|
+
if (c(n)) {
|
|
154
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
155
|
+
t.writable = !1;
|
|
156
|
+
return;
|
|
299
157
|
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
return !1;
|
|
304
|
-
}
|
|
305
|
-
function $(t) {
|
|
306
|
-
return function(e, r) {
|
|
307
|
-
let n = e.selection, o = t < 0 ? n.$from : n.$to, l = o.depth;
|
|
308
|
-
for (; o.node(l).isInline; ) {
|
|
309
|
-
if (!l)
|
|
310
|
-
return !1;
|
|
311
|
-
l--;
|
|
158
|
+
t.set || (t.set = () => {
|
|
159
|
+
throw Error("Can not rewrite read-only method '" + r + "'");
|
|
160
|
+
});
|
|
312
161
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
let { $from: o, $to: l } = r.selection, i = o.blockRange(l), f = i && J(i, t, e);
|
|
320
|
-
return f ? (n && n(r.tr.wrap(i, f).scrollIntoView()), !0) : !1;
|
|
162
|
+
});
|
|
163
|
+
}, fe = (e, t) => {
|
|
164
|
+
const r = {}, n = (s) => {
|
|
165
|
+
s.forEach((o) => {
|
|
166
|
+
r[o] = !0;
|
|
167
|
+
});
|
|
321
168
|
};
|
|
169
|
+
return p(e) ? n(e) : n(String(e).split(t)), r;
|
|
170
|
+
}, le = () => {
|
|
171
|
+
}, ue = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
172
|
+
function ae(e) {
|
|
173
|
+
return !!(e && c(e.append) && e[x] === "FormData" && e[g]);
|
|
322
174
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
if (!o)
|
|
341
|
-
return !1;
|
|
342
|
-
if (n) {
|
|
343
|
-
let l = r.tr;
|
|
344
|
-
for (let i = 0; i < r.selection.ranges.length; i++) {
|
|
345
|
-
let { $from: { pos: f }, $to: { pos: c } } = r.selection.ranges[i];
|
|
346
|
-
l.setBlockType(f, c, t, e);
|
|
175
|
+
const pe = (e) => {
|
|
176
|
+
const t = new Array(10), r = (n, s) => {
|
|
177
|
+
if (y(n)) {
|
|
178
|
+
if (t.indexOf(n) >= 0)
|
|
179
|
+
return;
|
|
180
|
+
if (d(n))
|
|
181
|
+
return n;
|
|
182
|
+
if (!("toJSON" in n)) {
|
|
183
|
+
t[s] = n;
|
|
184
|
+
const o = p(n) ? [] : {};
|
|
185
|
+
return m(n, (i, l) => {
|
|
186
|
+
const A = r(i, s + 1);
|
|
187
|
+
!a(A) && (o[l] = A);
|
|
188
|
+
}), t[s] = void 0, o;
|
|
347
189
|
}
|
|
348
|
-
n(l.scrollIntoView());
|
|
349
190
|
}
|
|
350
|
-
return
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
function O(...t) {
|
|
354
|
-
return function(e, r, n) {
|
|
355
|
-
for (let o = 0; o < t.length; o++)
|
|
356
|
-
if (t[o](e, r, n))
|
|
357
|
-
return !0;
|
|
358
|
-
return !1;
|
|
191
|
+
return n;
|
|
359
192
|
};
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
193
|
+
return r(e, 0);
|
|
194
|
+
}, de = f("AsyncFunction"), ye = (e) => e && (y(e) || c(e)) && c(e.then) && c(e.catch), D = ((e, t) => e ? setImmediate : t ? ((r, n) => (u.addEventListener(
|
|
195
|
+
"message",
|
|
196
|
+
({ source: s, data: o }) => {
|
|
197
|
+
s === u && o === r && n.length && n.shift()();
|
|
198
|
+
},
|
|
199
|
+
!1
|
|
200
|
+
), (s) => {
|
|
201
|
+
n.push(s), u.postMessage(r, "*");
|
|
202
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", c(u.postMessage)), me = typeof queueMicrotask < "u" ? queueMicrotask.bind(u) : typeof process < "u" && process.nextTick || D, we = (e) => e != null && c(e[g]), be = {
|
|
203
|
+
isArray: p,
|
|
204
|
+
isArrayBuffer: S,
|
|
205
|
+
isBuffer: d,
|
|
206
|
+
isFormData: z,
|
|
207
|
+
isArrayBufferView: M,
|
|
208
|
+
isString: _,
|
|
209
|
+
isNumber: B,
|
|
210
|
+
isBoolean: N,
|
|
211
|
+
isObject: y,
|
|
212
|
+
isPlainObject: w,
|
|
213
|
+
isEmptyObject: U,
|
|
214
|
+
isReadableStream: K,
|
|
215
|
+
isRequest: $,
|
|
216
|
+
isResponse: W,
|
|
217
|
+
isHeaders: G,
|
|
218
|
+
isUndefined: a,
|
|
219
|
+
isDate: I,
|
|
220
|
+
isFile: k,
|
|
221
|
+
isBlob: V,
|
|
222
|
+
isRegExp: ie,
|
|
223
|
+
isFunction: c,
|
|
224
|
+
isStream: H,
|
|
225
|
+
isURLSearchParams: J,
|
|
226
|
+
isTypedArray: te,
|
|
227
|
+
isFileList: q,
|
|
228
|
+
forEach: m,
|
|
229
|
+
merge: F,
|
|
230
|
+
extend: X,
|
|
231
|
+
trim: Q,
|
|
232
|
+
stripBOM: Y,
|
|
233
|
+
inherits: Z,
|
|
234
|
+
toFlatObject: j,
|
|
235
|
+
kindOf: b,
|
|
236
|
+
kindOfTest: f,
|
|
237
|
+
endsWith: v,
|
|
238
|
+
toArray: ee,
|
|
239
|
+
forEachEntry: re,
|
|
240
|
+
matchAll: ne,
|
|
241
|
+
isHTMLForm: se,
|
|
242
|
+
hasOwnProperty: P,
|
|
243
|
+
hasOwnProp: P,
|
|
244
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
245
|
+
reduceDescriptors: C,
|
|
246
|
+
freezeMethods: ce,
|
|
247
|
+
toObjectSet: fe,
|
|
248
|
+
toCamelCase: oe,
|
|
249
|
+
noop: le,
|
|
250
|
+
toFiniteNumber: ue,
|
|
251
|
+
findKey: E,
|
|
252
|
+
global: u,
|
|
253
|
+
isContextDefined: L,
|
|
254
|
+
isSpecCompliantForm: ae,
|
|
255
|
+
toJSONObject: pe,
|
|
256
|
+
isAsyncFn: de,
|
|
257
|
+
isThenable: ye,
|
|
258
|
+
setImmediate: D,
|
|
259
|
+
asap: me,
|
|
260
|
+
isIterable: we
|
|
261
|
+
};
|
|
365
262
|
export {
|
|
366
|
-
|
|
367
|
-
X as createParagraphNear,
|
|
368
|
-
M as deleteSelection,
|
|
369
|
-
se as exitCode,
|
|
370
|
-
G as joinBackward,
|
|
371
|
-
fe as joinDown,
|
|
372
|
-
K as joinForward,
|
|
373
|
-
oe as joinTextblockBackward,
|
|
374
|
-
le as joinTextblockForward,
|
|
375
|
-
ie as joinUp,
|
|
376
|
-
ce as lift,
|
|
377
|
-
Y as liftEmptyBlock,
|
|
378
|
-
Q as newlineInCode,
|
|
379
|
-
H as selectNodeBackward,
|
|
380
|
-
L as selectNodeForward,
|
|
381
|
-
ue as selectParentNode,
|
|
382
|
-
pe as selectTextblockEnd,
|
|
383
|
-
ae as selectTextblockStart,
|
|
384
|
-
me as setBlockType,
|
|
385
|
-
_ as splitBlock,
|
|
386
|
-
Z as splitBlockAs,
|
|
387
|
-
de as wrapIn
|
|
263
|
+
be as default
|
|
388
264
|
};
|