@tryghost/koenig-lexical 0.0.17 → 0.0.18
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/koenig-lexical.js +782 -738
- package/dist/koenig-lexical.js.map +1 -1
- package/dist/koenig-lexical.umd.js +23 -23
- package/dist/koenig-lexical.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/koenig-lexical.js
CHANGED
|
@@ -1,718 +1,718 @@
|
|
|
1
1
|
var Ca = Object.defineProperty;
|
|
2
2
|
var ya = (t, e, n) => e in t ? Ca(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Sr = (t, e, n) => (ya(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import * as
|
|
4
|
+
import * as h from "react";
|
|
5
5
|
import H, { useEffect as zr } from "react";
|
|
6
6
|
import Ea, { createPortal as xa } from "react-dom";
|
|
7
|
-
const Ul = (t) => /* @__PURE__ */
|
|
7
|
+
const Ul = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
8
8
|
width: 16,
|
|
9
9
|
height: 16,
|
|
10
10
|
viewBox: "0 0 16 16",
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12
12
|
...t
|
|
13
|
-
}, /* @__PURE__ */
|
|
13
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
14
14
|
d: "M7.412 6.217h1.176c1.276 0 2.236-.773 2.236-1.608 0-.835-.96-1.609-2.236-1.609H5.765v3.217h1.647zM5.765 13H9.47C10.875 13 12 11.92 12 10.609s-1.124-2.392-2.53-2.392H5.766V13zm-2 0V3H3c-.552 0-1-.448-1-1s.448-1 1-1h5.588c2.297 0 4.236 1.563 4.236 3.609 0 .877-.357 1.666-.945 2.28C13.15 7.665 14 9.037 14 10.61 14 13.043 11.963 15 9.47 15H3c-.552 0-1-.448-1-1s.448-1 1-1h.765z",
|
|
15
15
|
fillRule: "nonzero"
|
|
16
|
-
})), Wl = (t) => /* @__PURE__ */
|
|
16
|
+
})), Wl = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
17
17
|
width: 16,
|
|
18
18
|
height: 16,
|
|
19
19
|
viewBox: "0 0 16 16",
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
...t
|
|
22
|
-
}, /* @__PURE__ */
|
|
22
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
23
23
|
d: "M12.15 3L6.104 13h.811c.552 0 1 .448 1 1s-.448 1-1 1H2c-.552 0-1-.448-1-1s.448-1 1-1h1.767L9.813 3H9c-.552 0-1-.448-1-1s.448-1 1-1h4.915c.552 0 1 .448 1 1s-.448 1-1 1H12.15z",
|
|
24
24
|
fillRule: "nonzero"
|
|
25
|
-
})), Vl = (t) => /* @__PURE__ */
|
|
25
|
+
})), Vl = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
26
26
|
width: 16,
|
|
27
27
|
height: 16,
|
|
28
28
|
viewBox: "0 0 16 16",
|
|
29
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
30
|
...t
|
|
31
|
-
}, /* @__PURE__ */
|
|
31
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
32
32
|
d: "M4 7h8V2c0-.552.448-1 1-1s1 .448 1 1v5.897c.003.034.005.068.005.103 0 .035-.002.07-.005.103V14c0 .552-.448 1-1 1s-1-.448-1-1V9H4v5c0 .552-.448 1-1 1s-1-.448-1-1V2c0-.552.448-1 1-1s1 .448 1 1v5z",
|
|
33
33
|
fillRule: "nonzero"
|
|
34
|
-
})), Yl = (t) => /* @__PURE__ */
|
|
34
|
+
})), Yl = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
35
35
|
width: 16,
|
|
36
36
|
height: 16,
|
|
37
37
|
viewBox: "0 0 16 16",
|
|
38
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
39
|
...t
|
|
40
|
-
}, /* @__PURE__ */
|
|
40
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
41
41
|
d: "M6 8h4V5.483c0-.552.448-1 1-1s1 .448 1 1V13c0 .552-.448 1-1 1s-1-.448-1-1v-3H6v3c0 .552-.448 1-1 1s-1-.448-1-1V5.483c0-.552.448-1 1-1s1 .448 1 1V8z",
|
|
42
42
|
fillRule: "nonzero"
|
|
43
|
-
})), bi = (t) => /* @__PURE__ */
|
|
43
|
+
})), bi = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
44
44
|
width: 16,
|
|
45
45
|
height: 16,
|
|
46
46
|
viewBox: "0 0 16 16",
|
|
47
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48
48
|
...t
|
|
49
|
-
}, /* @__PURE__ */
|
|
49
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
50
50
|
d: "M6.4 11.688c.4-.382 1.032-.369 1.415.03.382.399.368 1.032-.03 1.414l-1.055 1.01c-1.209 1.21-3.17 1.21-4.38 0l-.494-.494c-1.208-1.209-1.208-3.17.001-4.377L5.07 6.058c1.21-1.21 3.17-1.21 4.38 0 .39.39.39 1.024 0 1.414-.391.39-1.024.39-1.415 0-.428-.428-1.122-.428-1.551 0l-3.213 3.213c-.427.427-.427 1.122 0 1.55l.494.494c.428.428 1.123.428 1.566-.015l1.07-1.026zm3.037-7.212c-.398.383-1.03.372-1.414-.025-.384-.398-.373-1.03.025-1.414l1.222-1.18c1.21-1.209 3.169-1.209 4.379 0l.493.494c1.21 1.209 1.21 3.17.013 4.366l-3.237 3.357c-1.21 1.21-3.17 1.21-4.38 0-.39-.391-.389-1.025.002-1.415.39-.39 1.024-.39 1.414.001.428.429 1.121.429 1.537.013l3.238-3.358c.428-.427.428-1.121 0-1.55l-.494-.493c-.429-.429-1.123-.429-1.563.012L9.437 4.476z",
|
|
51
51
|
fillRule: "nonzero"
|
|
52
|
-
})), Na = (t) => /* @__PURE__ */
|
|
52
|
+
})), Na = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
53
53
|
width: 16,
|
|
54
54
|
height: 16,
|
|
55
55
|
viewBox: "0 0 16 16",
|
|
56
56
|
xmlns: "http://www.w3.org/2000/svg",
|
|
57
57
|
...t
|
|
58
|
-
}, /* @__PURE__ */
|
|
58
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
59
59
|
d: "M4 8h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8zm9 0c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8h2z",
|
|
60
60
|
fill: "currentColor",
|
|
61
61
|
fillRule: "nonzero"
|
|
62
|
-
})), Ta = (t) => /* @__PURE__ */
|
|
62
|
+
})), Ta = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
63
63
|
width: 16,
|
|
64
64
|
height: 16,
|
|
65
65
|
viewBox: "0 0 16 16",
|
|
66
66
|
xmlns: "http://www.w3.org/2000/svg",
|
|
67
67
|
...t
|
|
68
|
-
}, /* @__PURE__ */
|
|
68
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
69
69
|
fill: "none",
|
|
70
70
|
fillRule: "evenodd"
|
|
71
|
-
}, /* @__PURE__ */
|
|
71
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
72
72
|
d: "M2 3c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2zM2 15c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2z",
|
|
73
73
|
fillRule: "nonzero",
|
|
74
74
|
opacity: 0.6
|
|
75
|
-
}), /* @__PURE__ */
|
|
75
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
76
76
|
d: "M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",
|
|
77
77
|
fillRule: "nonzero"
|
|
78
|
-
}))), Sa = (t) => /* @__PURE__ */
|
|
78
|
+
}))), Sa = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
79
79
|
width: 16,
|
|
80
80
|
height: 16,
|
|
81
81
|
viewBox: "0 0 16 16",
|
|
82
82
|
xmlns: "http://www.w3.org/2000/svg",
|
|
83
83
|
...t
|
|
84
|
-
}, /* @__PURE__ */
|
|
84
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
85
85
|
fill: "none",
|
|
86
86
|
fillRule: "evenodd"
|
|
87
|
-
}, /* @__PURE__ */
|
|
87
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
88
88
|
d: "M6 3c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6zM6 15c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6z",
|
|
89
89
|
fillRule: "nonzero",
|
|
90
90
|
opacity: 0.6
|
|
91
|
-
}), /* @__PURE__ */
|
|
91
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
92
92
|
d: "M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",
|
|
93
93
|
fillRule: "nonzero"
|
|
94
|
-
}))), wa = (t) => /* @__PURE__ */
|
|
94
|
+
}))), wa = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
95
95
|
width: 16,
|
|
96
96
|
height: 16,
|
|
97
97
|
viewBox: "0 0 16 16",
|
|
98
98
|
xmlns: "http://www.w3.org/2000/svg",
|
|
99
99
|
...t
|
|
100
|
-
}, /* @__PURE__ */
|
|
100
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
101
101
|
fill: "none",
|
|
102
102
|
fillRule: "evenodd"
|
|
103
|
-
}, /* @__PURE__ */
|
|
103
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
104
104
|
d: "M0 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2zM14 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2z",
|
|
105
105
|
fillRule: "nonzero",
|
|
106
106
|
opacity: 0.6
|
|
107
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
108
108
|
d: "M10.626 7L9.312 5.691c-.391-.39-.393-1.023-.003-1.414s1.023-.392 1.414-.003l3.029 3.017c.39.389.392 1.02.005 1.412l-3.029 3.059c-.388.392-1.022.395-1.414.007-.392-.389-.396-1.022-.007-1.414L10.648 9H5.415l1.342 1.355c.388.392.385 1.025-.007 1.414-.393.388-1.026.385-1.415-.007L2.307 8.703c-.388-.392-.386-1.023.005-1.412L5.34 4.274c.391-.39 1.025-.388 1.414.003.39.391.389 1.025-.002 1.414L5.438 7h5.188z",
|
|
109
109
|
fillRule: "nonzero"
|
|
110
|
-
}))), Ma = (t) => /* @__PURE__ */
|
|
110
|
+
}))), Ma = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
111
111
|
width: 16,
|
|
112
112
|
height: 16,
|
|
113
113
|
viewBox: "0 0 16 16",
|
|
114
114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
115
115
|
...t
|
|
116
|
-
}, /* @__PURE__ */
|
|
116
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
117
117
|
fill: "none",
|
|
118
118
|
fillRule: "evenodd"
|
|
119
|
-
}, /* @__PURE__ */
|
|
119
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
120
120
|
d: "M2 9h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1zM9 1h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H9c-.552 0-1-.448-1-1V2c0-.552.448-1 1-1zM4.5 5.772l1.15-1.175c.192-.198.509-.201.706-.008.198.193.201.51.008.707L4.382 7.322c-.091.109-.229.178-.382.178-.13 0-.26-.05-.357-.148L1.61 5.298c-.194-.196-.193-.513.004-.707.196-.194.512-.193.707.004L3.5 5.785V3c0-.828.672-1.5 1.5-1.5h1c.276 0 .5.224.5.5s-.224.5-.5.5H5c-.276 0-.5.224-.5.5v2.772zm7 4.456l-1.15 1.175c-.192.198-.509.201-.706.008-.198-.193-.201-.51-.008-.707l1.982-2.026c.091-.109.229-.178.382-.178.13 0 .26.05.357.148l2.032 2.054c.194.196.193.513-.004.707-.196.194-.512.193-.707-.004l-1.178-1.19V13c0 .828-.672 1.5-1.5 1.5h-1c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h1c.276 0 .5-.224.5-.5v-2.772z",
|
|
121
121
|
fillRule: "nonzero"
|
|
122
|
-
}))), $a = (t) => /* @__PURE__ */
|
|
122
|
+
}))), $a = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
123
123
|
width: 16,
|
|
124
124
|
height: 16,
|
|
125
125
|
viewBox: "0 0 16 16",
|
|
126
126
|
xmlns: "http://www.w3.org/2000/svg",
|
|
127
127
|
...t
|
|
128
|
-
}, /* @__PURE__ */
|
|
128
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
129
129
|
d: "M9 7h5c.552 0 1 .448 1 1s-.448 1-1 1H9v5c0 .552-.448 1-1 1s-1-.448-1-1V9H2c-.552 0-1-.448-1-1s.448-1 1-1h5V2c0-.552.448-1 1-1s1 .448 1 1v5z",
|
|
130
130
|
fillRule: "nonzero"
|
|
131
|
-
})), wr = (t) => /* @__PURE__ */
|
|
131
|
+
})), wr = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
132
132
|
width: 16,
|
|
133
133
|
height: 16,
|
|
134
134
|
viewBox: "0 0 16 16",
|
|
135
135
|
fill: "none",
|
|
136
136
|
xmlns: "http://www.w3.org/2000/svg",
|
|
137
137
|
...t
|
|
138
|
-
}, /* @__PURE__ */
|
|
138
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
139
139
|
fillRule: "evenodd",
|
|
140
140
|
clipRule: "evenodd",
|
|
141
141
|
d: "M3 3V13H8.78579L13 8.78579V3H3ZM1.52721 1.52721C1.86477 1.18964 2.32261 1 2.8 1H13.2C13.6774 1 14.1352 1.18964 14.4728 1.52721C14.8104 1.86477 15 2.32261 15 2.8V8.8688C14.9999 9.34585 14.8104 9.80357 14.4732 10.141L10.1412 14.473C9.8038 14.8102 9.34607 14.9999 8.86901 15H2.8C2.32261 15 1.86477 14.8104 1.52721 14.4728C1.18964 14.1352 1 13.6774 1 13.2V2.8C1 2.32261 1.18964 1.86477 1.52721 1.52721Z"
|
|
142
|
-
}), /* @__PURE__ */
|
|
142
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
143
143
|
fillRule: "evenodd",
|
|
144
144
|
clipRule: "evenodd",
|
|
145
145
|
d: "M10 10H14C14.5523 10 15 9.55228 15 9C15 8.44772 14.5523 8 14 8H9.84602C9.35643 8 8.88688 8.19449 8.54069 8.54069C8.19449 8.88688 8 9.35643 8 9.84602V14C8 14.5523 8.44772 15 9 15C9.55228 15 10 14.5523 10 14V10Z"
|
|
146
|
-
})), Oa = (t) => /* @__PURE__ */
|
|
146
|
+
})), Oa = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
147
147
|
width: 24,
|
|
148
148
|
height: 24,
|
|
149
149
|
viewBox: "0 0 24 24",
|
|
150
150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
151
151
|
...t
|
|
152
|
-
}, /* @__PURE__ */
|
|
152
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
153
153
|
fill: "none",
|
|
154
154
|
fillRule: "evenodd"
|
|
155
|
-
}, /* @__PURE__ */
|
|
155
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
156
156
|
d: "M12 1.5v21M1.5 12h21",
|
|
157
157
|
strokeLinecap: "round",
|
|
158
158
|
strokeLinejoin: "round"
|
|
159
|
-
}))), Aa = (t) => /* @__PURE__ */
|
|
159
|
+
}))), Aa = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
160
160
|
width: 32,
|
|
161
161
|
height: 32,
|
|
162
162
|
viewBox: "0 0 32 32",
|
|
163
163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
164
164
|
...t
|
|
165
|
-
}, /* @__PURE__ */
|
|
165
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
166
166
|
fill: "none",
|
|
167
167
|
fillRule: "evenodd"
|
|
168
|
-
}, /* @__PURE__ */
|
|
168
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
169
169
|
d: "M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",
|
|
170
170
|
fill: "#30cf43"
|
|
171
|
-
}), /* @__PURE__ */
|
|
171
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
172
172
|
d: "M23.778 12.111c0 3.111-1.556 4.667-4.667 4.667-3.111 0-4.667-1.556-4.667-4.667C14.444 9 16 7.444 19.111 7.444c3.111 0 4.667 1.556 4.667 4.667zM19.111 5.5c.778 0 1.167-.389 1.167-1.167v-.777c0-.45-.195-.786-.584-1.01-.388-.225-.777-.225-1.166 0-.39.224-.584.56-.584 1.01v.777c0 .778.39 1.167 1.167 1.167zM12.788 7.435c.55.552 1.1.554 1.653.004.552-.55.553-1.1.003-1.653l-.549-.55c-.55-.552-1.101-.554-1.653-.004-.553.55-.554 1.101-.005 1.654l.55.55zM10.556 13.278h.777c.778 0 1.167-.39 1.167-1.167 0-.778-.389-1.167-1.167-1.167h-.777c-.778 0-1.167.39-1.167 1.167 0 .778.389 1.167 1.167 1.167zM25.434 16.787c-.549-.512-1.089-.502-1.62.029-.53.53-.54 1.07-.028 1.62l.549.55c.55.55 1.1.55 1.65 0 .55-.55.55-1.1 0-1.65l-.55-.549zM25.722 12.111c0 .778.39 1.167 1.167 1.167h.778c.777 0 1.166-.39 1.166-1.167 0-.778-.389-1.167-1.166-1.167h-.778c-.322 0-.597.114-.825.342-.228.228-.342.503-.342.825zM24.61 7.779c.323 0 .598-.114.824-.344l.551-.549c.55-.55.55-1.1 0-1.65-.55-.55-1.1-.55-1.65 0l-.55.55c-.366.368-.45.792-.251 1.271.198.48.557.72 1.076.722zM21.911 22.356c-.771 0-1.522.12-2.254.364-.127.042-.21.126-.25.254-.039.127-.018.244.063.35 1.283 1.689 2.07 3.583 2.362 5.684.02.142.103.214.247.214h4.906c.836 0 1.492-.343 1.967-1.031-.737-3.89-3.084-5.835-7.042-5.835h.001zM9.644 19.968c-2.518-.004-4.758.783-6.72 2.362-.1.08-.149.183-.146.31v4.2c.004 1.588.8 2.382 2.388 2.382H19.83c.122 0 .222-.046.3-.14.077-.093.105-.2.082-.319-1.083-5.863-4.606-8.795-10.568-8.795z",
|
|
173
173
|
fill: "#FFF"
|
|
174
|
-
}))), Ra = (t) => /* @__PURE__ */
|
|
174
|
+
}))), Ra = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
175
175
|
width: 32,
|
|
176
176
|
height: 32,
|
|
177
177
|
viewBox: "0 0 32 32",
|
|
178
178
|
xmlns: "http://www.w3.org/2000/svg",
|
|
179
179
|
...t
|
|
180
|
-
}, /* @__PURE__ */
|
|
180
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
181
181
|
fill: "none",
|
|
182
182
|
fillRule: "evenodd"
|
|
183
|
-
}, /* @__PURE__ */
|
|
183
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
184
184
|
d: "M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",
|
|
185
185
|
fill: "#fb2d8d",
|
|
186
186
|
fillRule: "nonzero"
|
|
187
|
-
}), /* @__PURE__ */
|
|
187
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
188
188
|
stroke: "#FFF",
|
|
189
189
|
strokeWidth: 2,
|
|
190
190
|
strokeLinecap: "round",
|
|
191
191
|
strokeLinejoin: "round",
|
|
192
192
|
d: "M8 20v-8l4 4 4-4v8M22 12.07v7.916M19.5 17.5l2.48 2.525L24.5 17.5"
|
|
193
|
-
}))), La = (t) => /* @__PURE__ */
|
|
193
|
+
}))), La = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
194
194
|
width: 32,
|
|
195
195
|
height: 32,
|
|
196
196
|
viewBox: "0 0 32 32",
|
|
197
197
|
xmlns: "http://www.w3.org/2000/svg",
|
|
198
198
|
...t
|
|
199
|
-
}, /* @__PURE__ */
|
|
199
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
200
200
|
fill: "none",
|
|
201
201
|
fillRule: "evenodd"
|
|
202
|
-
}, /* @__PURE__ */
|
|
202
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
203
203
|
fill: "#FFF",
|
|
204
204
|
d: "M2 4h28v24H2z"
|
|
205
|
-
}), /* @__PURE__ */
|
|
205
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
206
206
|
d: "M32 6c0-2.667-1.333-4-4-4H4c-1.105 0-2.047.39-2.828 1.172C.39 3.952 0 4.895 0 6v20c0 2.667 1.333 4 4 4h24c2.667 0 4-1.333 4-4V6zM4 6.667c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C4.444 8 4 7.556 4 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C8.444 8 8 7.556 8 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C12.444 8 12 7.556 12 6.667zM29.333 26c0 .889-.444 1.333-1.333 1.333H4c-.889 0-1.333-.444-1.333-1.333V12c0-.184.065-.341.195-.471.13-.13.287-.196.471-.196h25.334c.444 0 .666.223.666.667v14z",
|
|
207
207
|
fill: "#14b8ff"
|
|
208
|
-
}), /* @__PURE__ */
|
|
208
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
209
209
|
d: "M10.333 16c0 .667.334 1 1 1 .223 0 .334.111.334.333v5.334c0 .666.333 1 1 1 .666 0 1-.334 1-1v-5.334c0-.092.032-.17.097-.235.065-.065.144-.098.236-.098.667 0 1-.333 1-1s-.333-1-1-1h-2.667c-.276 0-.512.098-.707.293-.195.195-.293.43-.293.707zM5.333 23.667c.667 0 1-.334 1-1v-1.334c0-.128.056-.224.167-.288.111-.064.222-.064.333 0 .111.064.167.16.167.288v1.334c0 .666.333 1 1 1s1-.334 1-1V16c0-.385-.167-.674-.5-.866-.333-.192-.667-.192-1 0-.333.192-.5.481-.5.866v2.667c0 .222-.111.333-.333.333-.223 0-.334-.111-.334-.333V16c0-.385-.166-.674-.5-.866-.333-.192-.666-.192-1 0-.333.192-.5.481-.5.866v6.667c0 .666.334 1 1 1zM23.667 21.333c.001 1.554.78 2.332 2.333 2.334h1.333c.667 0 1-.334 1-1 0-.667-.333-1-1-1H26c-.222 0-.333-.111-.333-.334V16c0-.385-.167-.674-.5-.866-.334-.192-.667-.192-1 0-.334.192-.5.481-.5.866v5.333zM17.333 23.667c.667 0 1-.334 1-1v-2.78c0-.039.02-.063.056-.073.037-.01.066 0 .086.034.207.301.493.452.858.452.366 0 .652-.15.859-.452.02-.033.048-.045.085-.034.038.01.056.034.056.073v2.78c0 .666.334 1 1 1 .667 0 1-.334 1-1V16c-.001-.506-.246-.827-.734-.962s-.863.014-1.124.447l-.856 1.428c-.065.108-.16.161-.286.161-.125 0-.22-.053-.285-.16l-.856-1.429c-.262-.433-.636-.582-1.125-.447-.488.135-.732.456-.734.962v6.667c0 .666.334 1 1 1z",
|
|
210
210
|
fill: "#14b8ff"
|
|
211
|
-
}))), Da = (t) => /* @__PURE__ */
|
|
211
|
+
}))), Da = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
212
212
|
width: 32,
|
|
213
213
|
height: 32,
|
|
214
214
|
viewBox: "0 0 32 32",
|
|
215
215
|
xmlns: "http://www.w3.org/2000/svg",
|
|
216
216
|
...t
|
|
217
|
-
}, /* @__PURE__ */
|
|
217
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
218
218
|
fill: "none",
|
|
219
219
|
fillRule: "evenodd"
|
|
220
|
-
}, /* @__PURE__ */
|
|
220
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
221
221
|
fill: "#FFF",
|
|
222
222
|
fillRule: "nonzero",
|
|
223
223
|
d: "M1 2h25v24H1z"
|
|
224
|
-
}), /* @__PURE__ */
|
|
224
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
225
225
|
d: "M27.333 24.667v-22C27.333.889 26.444 0 24.667 0h-22C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v22c0 1.777.889 2.666 2.667 2.666h22c1.777 0 2.666-.889 2.666-2.666z",
|
|
226
226
|
fill: "#ffb41f"
|
|
227
|
-
}), /* @__PURE__ */
|
|
227
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
228
228
|
d: "M19.113 12.933c-.126-.603-.497-.911-1.112-.925-.616-.014-1 .277-1.154.873l-2.123 4.667c-.051.112-.137.176-.26.192-.121.017-.221-.023-.3-.117l-1.467-1.752c-.34-.462-.796-.67-1.368-.625-.571.044-.99.32-1.254.829L6.76 21.6c-.133.222-.136.446-.008.671.128.226.321.338.58.338H22c.236 0 .42-.097.552-.293.132-.195.154-.402.067-.621l-3.506-8.762zM10.667 8c0 1.778-.89 2.667-2.667 2.667-1.778 0-2.667-.89-2.667-2.667 0-1.778.89-2.667 2.667-2.667 1.778 0 2.667.89 2.667 2.667z",
|
|
229
229
|
fill: "#FFF"
|
|
230
|
-
}), /* @__PURE__ */
|
|
230
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
231
231
|
d: "M30.667 8c-.369 0-.683.13-.943.39-.26.26-.39.575-.39.943v19.334c0 .444-.223.666-.667.666H9.333c-.889 0-1.333.445-1.333 1.334S8.444 32 9.333 32h20C31.111 32 32 31.111 32 29.333v-20C32 8.444 31.556 8 30.667 8z",
|
|
232
232
|
fill: "#ffb41f"
|
|
233
|
-
}))), ka = (t) => /* @__PURE__ */
|
|
233
|
+
}))), ka = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
234
234
|
width: 32,
|
|
235
235
|
height: 32,
|
|
236
236
|
viewBox: "0 0 32 32",
|
|
237
237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
238
238
|
...t
|
|
239
|
-
}, /* @__PURE__ */
|
|
239
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
240
240
|
fill: "none",
|
|
241
241
|
fillRule: "evenodd"
|
|
242
|
-
}, /* @__PURE__ */
|
|
242
|
+
}, /* @__PURE__ */ h.createElement("rect", {
|
|
243
243
|
fill: "#30cf43",
|
|
244
244
|
width: 32,
|
|
245
245
|
height: 32,
|
|
246
246
|
rx: 2.5
|
|
247
|
-
}), /* @__PURE__ */
|
|
247
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
248
248
|
fill: "#FFF",
|
|
249
249
|
x: 3,
|
|
250
250
|
y: 15,
|
|
251
251
|
width: 26,
|
|
252
252
|
height: 2,
|
|
253
253
|
rx: 1
|
|
254
|
-
}), /* @__PURE__ */
|
|
254
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
255
255
|
fill: "#FFF",
|
|
256
256
|
x: 3,
|
|
257
257
|
y: 3,
|
|
258
258
|
width: 26,
|
|
259
259
|
height: 7,
|
|
260
260
|
rx: 1.5
|
|
261
|
-
}), /* @__PURE__ */
|
|
261
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
262
262
|
fill: "#FFF",
|
|
263
263
|
x: 3,
|
|
264
264
|
y: 22,
|
|
265
265
|
width: 26,
|
|
266
266
|
height: 7,
|
|
267
267
|
rx: 1.5
|
|
268
|
-
}))), Ia = (t) => /* @__PURE__ */
|
|
268
|
+
}))), Ia = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
269
269
|
width: 32,
|
|
270
270
|
height: 32,
|
|
271
271
|
fill: "none",
|
|
272
272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
273
273
|
...t
|
|
274
|
-
}, /* @__PURE__ */
|
|
274
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
275
275
|
d: "M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667Z",
|
|
276
276
|
fill: "#FB2D8D"
|
|
277
|
-
}), /* @__PURE__ */
|
|
277
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
278
278
|
d: "M15.998-.01v18.674c-.054.558.175.951.687 1.18.525.2.965.084 1.322-.35l2.689-2.683a.404.404 0 0 1 .294-.122c.116 0 .214.041.295.122l2.69 2.684c.245.274.552.417.92.428.139 0 .273-.026.401-.078.512-.23.741-.623.687-1.18V-.062l-9.985.05v.002Z",
|
|
279
279
|
fill: "#fff"
|
|
280
|
-
})), Pa = (t) => /* @__PURE__ */
|
|
280
|
+
})), Pa = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
281
281
|
width: 32,
|
|
282
282
|
height: 32,
|
|
283
283
|
viewBox: "0 0 32 32",
|
|
284
284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
285
285
|
...t
|
|
286
|
-
}, /* @__PURE__ */
|
|
286
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
287
287
|
fillRule: "nonzero",
|
|
288
288
|
fill: "none"
|
|
289
|
-
}, /* @__PURE__ */
|
|
289
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
290
290
|
d: "M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",
|
|
291
291
|
fill: "#14b8ff"
|
|
292
|
-
}), /* @__PURE__ */
|
|
292
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
293
293
|
d: "M23.312 9.5H8.687c-1.233 0-2 .767-2 2v9c0 1.233.767 2 2 2h14.625c1.234 0 2-.767 2-2v-9c0-1.233-.766-2-2-2zM8.56 11.25h14.882c.1.004.118.022.121.122v9.256c-.004.116-.029.122-.178.122H8.56c-.1-.004-.118-.022-.121-.122v-9.256c.003-.1.022-.118.121-.122z",
|
|
294
294
|
fill: "#FFF"
|
|
295
|
-
}), /* @__PURE__ */
|
|
295
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
296
296
|
d: "M18.123 13.887c.3-.325.79-.37 1.144-.123l.092.075 2.86 2.643c.355.329.377.882.049 1.237-.301.325-.791.37-1.144.123l-.093-.074-2.86-2.644c-.355-.328-.376-.882-.048-1.237zM12.64 13.839c.356-.328.91-.307 1.237.048.301.326.308.818.033 1.15l-.081.087-2.86 2.644c-.355.328-.908.306-1.237-.049-.3-.325-.307-.818-.033-1.15l.082-.087 2.86-2.643z",
|
|
297
297
|
fill: "#FFF"
|
|
298
|
-
}), /* @__PURE__ */
|
|
298
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
299
299
|
d: "M23.663 10.04c.398-.274.943-.174 1.217.224.252.364.189.853-.13 1.143l-.093.074-7.135 4.92c-.925.638-1.935.676-2.87.112l-.174-.112-7.135-4.92c-.398-.275-.498-.82-.223-1.217.251-.365.73-.48 1.114-.285l.103.061 7.135 4.92c.346.24.613.263.944.072l.113-.072 7.134-4.92z",
|
|
300
300
|
fill: "#FFF"
|
|
301
|
-
}))), Fa = (t) => /* @__PURE__ */
|
|
301
|
+
}))), Fa = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
302
302
|
width: 32,
|
|
303
303
|
height: 32,
|
|
304
304
|
fill: "none",
|
|
305
305
|
xmlns: "http://www.w3.org/2000/svg",
|
|
306
306
|
...t
|
|
307
|
-
}, /* @__PURE__ */
|
|
307
|
+
}, /* @__PURE__ */ h.createElement("rect", {
|
|
308
308
|
width: 32,
|
|
309
309
|
height: 32,
|
|
310
310
|
rx: 3,
|
|
311
311
|
fill: "#FFB41F"
|
|
312
|
-
}), /* @__PURE__ */
|
|
312
|
+
}), /* @__PURE__ */ h.createElement("g", {
|
|
313
313
|
clipPath: "url(#clip0)",
|
|
314
314
|
fill: "#fff"
|
|
315
|
-
}, /* @__PURE__ */
|
|
315
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
316
316
|
d: "M14.536 15.568l2.68 8.931a.83.83 0 001.382.349l1.365-1.365 3.522 3.522a.83.83 0 001.174 0l2.348-2.348a.83.83 0 000-1.174l-3.522-3.522L24.85 18.6a.829.829 0 00-.348-1.382l-8.932-2.68a.83.83 0 00-1.034 1.03z"
|
|
317
|
-
}), /* @__PURE__ */
|
|
317
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
318
318
|
fillRule: "evenodd",
|
|
319
319
|
clipRule: "evenodd",
|
|
320
320
|
d: "M12.86 4.255A11.25 11.25 0 0126.47 14.447a.75.75 0 01-1.496.106 9.75 9.75 0 10-10.421 10.42.75.75 0 01-.107 1.496 11.25 11.25 0 01-1.588-22.214z"
|
|
321
|
-
}), /* @__PURE__ */
|
|
321
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
322
322
|
fillRule: "evenodd",
|
|
323
323
|
clipRule: "evenodd",
|
|
324
324
|
d: "M13.305 8.785a6.75 6.75 0 018.203 3.934.75.75 0 11-1.39.562 5.25 5.25 0 10-6.837 6.835.75.75 0 11-.562 1.39 6.75 6.75 0 01.586-12.72z"
|
|
325
|
-
})), /* @__PURE__ */
|
|
325
|
+
})), /* @__PURE__ */ h.createElement("clipPath", {
|
|
326
326
|
id: "clip0"
|
|
327
|
-
}, /* @__PURE__ */
|
|
327
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
328
328
|
fill: "#fff",
|
|
329
329
|
transform: "translate(4 4)",
|
|
330
330
|
d: "M0 0h24v24H0z"
|
|
331
|
-
}))), ba = (t) => /* @__PURE__ */
|
|
331
|
+
}))), ba = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
332
332
|
width: 32,
|
|
333
333
|
height: 32,
|
|
334
334
|
fill: "none",
|
|
335
335
|
xmlns: "http://www.w3.org/2000/svg",
|
|
336
336
|
...t
|
|
337
|
-
}, /* @__PURE__ */
|
|
337
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
338
338
|
d: "M30 0H2a2 2 0 00-2 2v28a2 2 0 002 2h28a2 2 0 002-2V2a2 2 0 00-2-2z",
|
|
339
339
|
fill: "#30CF43"
|
|
340
|
-
}), /* @__PURE__ */
|
|
340
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
341
341
|
fillRule: "evenodd",
|
|
342
342
|
clipRule: "evenodd",
|
|
343
343
|
d: "M15.999 9.001c4.007-.06 7.962 2.737 10.366 5.425l.004.004a2.517 2.517 0 010 3.337l-.003.004c-2.349 2.628-6.294 5.49-10.367 5.428-4.073.061-8.018-2.8-10.365-5.429l-.003-.003a2.517 2.517 0 010-3.337l.003-.004C8.036 11.738 11.991 8.94 16 9.001h-.001zm-8.872 6.756a.517.517 0 000 .683c2.208 2.472 5.645 4.814 8.855 4.759h.034c3.209.055 6.647-2.287 8.857-4.759a.518.518 0 000-.683c-2.257-2.522-5.705-4.81-8.857-4.756h-.034c-3.152-.054-6.6 2.234-8.855 4.756z",
|
|
344
344
|
fill: "#fff"
|
|
345
|
-
}), /* @__PURE__ */
|
|
345
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
346
346
|
fillRule: "evenodd",
|
|
347
347
|
clipRule: "evenodd",
|
|
348
348
|
d: "M16 18a2 2 0 100-4 2 2 0 000 4zm0 2a4 4 0 100-8 4 4 0 000 8z",
|
|
349
349
|
fill: "#fff"
|
|
350
|
-
})), Ba = (t) => /* @__PURE__ */
|
|
350
|
+
})), Ba = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
351
351
|
width: 32,
|
|
352
352
|
height: 32,
|
|
353
353
|
viewBox: "0 0 32 32",
|
|
354
354
|
fill: "none",
|
|
355
355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
356
356
|
...t
|
|
357
|
-
}, /* @__PURE__ */
|
|
357
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
358
358
|
d: "M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",
|
|
359
359
|
fill: "#FB2D8D"
|
|
360
|
-
}), /* @__PURE__ */
|
|
360
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
361
361
|
d: "M13.5361 15.568L16.2161 24.499C16.2573 24.6366 16.3335 24.7612 16.4372 24.8605C16.541 24.9599 16.6688 25.0306 16.808 25.0658C16.9473 25.101 17.0933 25.0994 17.2318 25.0612C17.3703 25.023 17.4965 24.9496 17.5981 24.848L18.9631 23.483L22.4851 27.005C22.5622 27.0821 22.6537 27.1433 22.7544 27.185C22.8551 27.2267 22.9631 27.2482 23.0721 27.2482C23.1811 27.2482 23.2891 27.2267 23.3898 27.185C23.4905 27.1433 23.582 27.0821 23.6591 27.005L26.0071 24.657C26.0842 24.5799 26.1454 24.4884 26.1871 24.3877C26.2288 24.287 26.2503 24.179 26.2503 24.07C26.2503 23.961 26.2288 23.853 26.1871 23.7523C26.1454 23.6516 26.0842 23.5601 26.0071 23.483L22.4851 19.961L23.8501 18.6C23.952 18.4986 24.0257 18.3725 24.0641 18.234C24.1025 18.0955 24.1043 17.9494 24.0692 17.81C24.0341 17.6707 23.9634 17.5428 23.8639 17.439C23.7645 17.3352 23.6398 17.2591 23.5021 17.218L14.5701 14.538C14.4269 14.4952 14.2748 14.4918 14.1298 14.5282C13.9848 14.5647 13.8524 14.6396 13.7464 14.7451C13.6405 14.8506 13.5651 14.9828 13.5281 15.1276C13.491 15.2725 13.4938 15.4246 13.5361 15.568Z",
|
|
362
362
|
fill: "white"
|
|
363
|
-
}), /* @__PURE__ */
|
|
363
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
364
364
|
d: "M12.2871 23.75C12.7013 23.75 13.0371 23.4142 13.0371 23C13.0371 22.5858 12.7013 22.25 12.2871 22.25V23.75ZM25.75 17.2496C25.75 17.6638 26.0858 17.9996 26.5 17.9996C26.9142 17.9996 27.25 17.6638 27.25 17.2496H25.75ZM8.5 9.75H23.5V8.25H8.5V9.75ZM6.25 20V12H4.75V20H6.25ZM12.2871 22.25H10.75V23.75H12.2871V22.25ZM10.75 22.25H8.5V23.75H10.75V22.25ZM25.75 12V16H27.25V12H25.75ZM25.75 16V17.2496H27.25V16H25.75ZM4.75 20C4.75 22.0711 6.42893 23.75 8.5 23.75V22.25C7.25736 22.25 6.25 21.2426 6.25 20H4.75ZM23.5 9.75C24.7426 9.75 25.75 10.7574 25.75 12H27.25C27.25 9.92893 25.5711 8.25 23.5 8.25V9.75ZM8.5 8.25C6.42893 8.25 4.75 9.92893 4.75 12H6.25C6.25 10.7574 7.25736 9.75 8.5 9.75V8.25Z",
|
|
365
365
|
fill: "white"
|
|
366
|
-
})), za = (t) => /* @__PURE__ */
|
|
366
|
+
})), za = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
367
367
|
width: 28,
|
|
368
368
|
height: 28,
|
|
369
369
|
fill: "none",
|
|
370
370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
371
371
|
...t
|
|
372
|
-
}, /* @__PURE__ */
|
|
372
|
+
}, /* @__PURE__ */ h.createElement("rect", {
|
|
373
373
|
width: 28,
|
|
374
374
|
height: 28,
|
|
375
375
|
rx: 3,
|
|
376
376
|
fill: "#14B8FF"
|
|
377
|
-
}), /* @__PURE__ */
|
|
377
|
+
}), /* @__PURE__ */ h.createElement("g", {
|
|
378
378
|
fill: "#fff"
|
|
379
|
-
}, /* @__PURE__ */
|
|
379
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
380
380
|
d: "M20 11.75a2.242 2.242 0 0 0-1.993-2.225 9.414 9.414 0 0 0-.257 2.225c-.003.749.083 1.496.257 2.224A2.243 2.243 0 0 0 20 11.75ZM13.75 18.433 9.41 17.05l1.973 4.856a1.746 1.746 0 0 0 3.367-.636c.003-.23-.04-.457-.126-.67l-.874-2.167Z"
|
|
381
|
-
}), /* @__PURE__ */
|
|
381
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
382
382
|
d: "M19.25 5c-.27 0-.537.048-.79.139L7.046 8.778A2.864 2.864 0 0 0 5 11.75a2.857 2.857 0 0 0 2.025 2.965l11.437 3.646c.253.091.52.138.788.139 2.138 0 3.75-2.902 3.75-6.75S21.388 5 19.25 5Zm0 12C18.188 17 17 14.755 17 11.75s1.188-5.25 2.25-5.25 2.25 2.245 2.25 5.25S20.312 17 19.25 17Z"
|
|
383
|
-
})), /* @__PURE__ */
|
|
383
|
+
})), /* @__PURE__ */ h.createElement("clipPath", null, /* @__PURE__ */ h.createElement("path", {
|
|
384
384
|
fill: "#fff",
|
|
385
385
|
transform: "translate(5 5)",
|
|
386
386
|
d: "M0 0h18v18H0z"
|
|
387
|
-
}))), Ha = (t) => /* @__PURE__ */
|
|
387
|
+
}))), Ha = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
388
388
|
width: 32,
|
|
389
389
|
height: 32,
|
|
390
390
|
viewBox: "0 0 32 32",
|
|
391
391
|
fill: "none",
|
|
392
392
|
xmlns: "http://www.w3.org/2000/svg",
|
|
393
393
|
...t
|
|
394
|
-
}, /* @__PURE__ */
|
|
394
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
395
395
|
d: "M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",
|
|
396
396
|
fill: "#FFB41F"
|
|
397
|
-
}), /* @__PURE__ */
|
|
397
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
398
398
|
d: "M5.5 7.75H26.5",
|
|
399
399
|
stroke: "white",
|
|
400
400
|
strokeWidth: 1.5,
|
|
401
401
|
strokeLinecap: "round",
|
|
402
402
|
strokeLinejoin: "round"
|
|
403
|
-
}), /* @__PURE__ */
|
|
403
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
404
404
|
d: "M5.5 24.25H26.5",
|
|
405
405
|
stroke: "white",
|
|
406
406
|
strokeWidth: 1.5,
|
|
407
407
|
strokeLinecap: "round",
|
|
408
408
|
strokeLinejoin: "round"
|
|
409
|
-
}), /* @__PURE__ */
|
|
409
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
410
410
|
d: "M19 19.75V13.75C19 13.3522 19.158 12.9706 19.4393 12.6893C19.7206 12.408 20.1022 12.25 20.5 12.25H22",
|
|
411
411
|
stroke: "white",
|
|
412
412
|
strokeWidth: 1.5,
|
|
413
413
|
strokeLinecap: "round",
|
|
414
414
|
strokeLinejoin: "round"
|
|
415
|
-
}), /* @__PURE__ */
|
|
415
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
416
416
|
d: "M19 16.75H21.25",
|
|
417
417
|
stroke: "white",
|
|
418
418
|
strokeWidth: 1.5,
|
|
419
419
|
strokeLinecap: "round",
|
|
420
420
|
strokeLinejoin: "round"
|
|
421
|
-
}), /* @__PURE__ */
|
|
421
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
422
422
|
d: "M16 19.75V12.25",
|
|
423
423
|
stroke: "white",
|
|
424
424
|
strokeWidth: 1.5,
|
|
425
425
|
strokeLinecap: "round",
|
|
426
426
|
strokeLinejoin: "round"
|
|
427
|
-
}), /* @__PURE__ */
|
|
427
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
428
428
|
d: "M12.25 16.75H13V18.25C13 18.6478 12.842 19.0294 12.5607 19.3107C12.2794 19.592 11.8978 19.75 11.5 19.75C11.1022 19.75 10.7206 19.592 10.4393 19.3107C10.158 19.0294 10 18.6478 10 18.25V13.75C10 13.3522 10.158 12.9706 10.4393 12.6893C10.7206 12.408 11.1022 12.25 11.5 12.25H13",
|
|
429
429
|
stroke: "white",
|
|
430
430
|
strokeWidth: 1.5,
|
|
431
431
|
strokeLinecap: "round",
|
|
432
432
|
strokeLinejoin: "round"
|
|
433
|
-
})), Ka = (t) => /* @__PURE__ */
|
|
433
|
+
})), Ka = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
434
434
|
width: 28,
|
|
435
435
|
height: 28,
|
|
436
436
|
viewBox: "0 0 28 28",
|
|
437
437
|
fill: "none",
|
|
438
438
|
xmlns: "http://www.w3.org/2000/svg",
|
|
439
439
|
...t
|
|
440
|
-
}, /* @__PURE__ */
|
|
440
|
+
}, /* @__PURE__ */ h.createElement("rect", {
|
|
441
441
|
width: 28,
|
|
442
442
|
height: 28,
|
|
443
443
|
rx: 3,
|
|
444
444
|
fill: "#ffb41f"
|
|
445
|
-
}), /* @__PURE__ */
|
|
445
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
446
446
|
x: 2,
|
|
447
447
|
y: 8,
|
|
448
448
|
width: 15,
|
|
449
449
|
height: 4,
|
|
450
450
|
rx: 1.5,
|
|
451
451
|
fill: "white"
|
|
452
|
-
}), /* @__PURE__ */
|
|
452
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
453
453
|
x: 2,
|
|
454
454
|
y: 15,
|
|
455
455
|
width: 24,
|
|
456
456
|
height: 2,
|
|
457
457
|
rx: 1,
|
|
458
458
|
fill: "white"
|
|
459
|
-
}), /* @__PURE__ */
|
|
459
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
460
460
|
x: 2,
|
|
461
461
|
y: 19,
|
|
462
462
|
width: 24,
|
|
463
463
|
height: 2,
|
|
464
464
|
rx: 1,
|
|
465
465
|
fill: "white"
|
|
466
|
-
}), /* @__PURE__ */
|
|
466
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
467
467
|
d: "M20 9L22.5 11.5L25 9",
|
|
468
468
|
stroke: "white",
|
|
469
469
|
strokeWidth: 2,
|
|
470
470
|
strokeLinecap: "round",
|
|
471
471
|
strokeLinejoin: "round"
|
|
472
|
-
})), Ua = (t) => /* @__PURE__ */
|
|
472
|
+
})), Ua = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
473
473
|
width: 28,
|
|
474
474
|
height: 28,
|
|
475
475
|
fill: "none",
|
|
476
476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
477
477
|
...t
|
|
478
|
-
}, /* @__PURE__ */
|
|
478
|
+
}, /* @__PURE__ */ h.createElement("rect", {
|
|
479
479
|
width: 28,
|
|
480
480
|
height: 28,
|
|
481
481
|
rx: 3,
|
|
482
482
|
fill: "#30CF43"
|
|
483
|
-
}), /* @__PURE__ */
|
|
483
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
484
484
|
d: "M12.07 20.77a.998.998 0 0 1-1.445-.894v-6.752a.999.999 0 0 1 1.444-.894l6.754 3.377a.997.997 0 0 1 0 1.785L12.07 20.77Z",
|
|
485
485
|
fill: "#fff",
|
|
486
486
|
stroke: "#fff",
|
|
487
487
|
strokeLinecap: "round",
|
|
488
488
|
strokeLinejoin: "round"
|
|
489
|
-
}), /* @__PURE__ */
|
|
489
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
490
490
|
x: 3,
|
|
491
491
|
y: 2,
|
|
492
492
|
width: 4,
|
|
493
493
|
height: 4,
|
|
494
494
|
rx: 1,
|
|
495
495
|
fill: "#fff"
|
|
496
|
-
}), /* @__PURE__ */
|
|
496
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
497
497
|
x: 9,
|
|
498
498
|
y: 2,
|
|
499
499
|
width: 4,
|
|
500
500
|
height: 4,
|
|
501
501
|
rx: 1,
|
|
502
502
|
fill: "#fff"
|
|
503
|
-
}), /* @__PURE__ */
|
|
503
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
504
504
|
x: 15,
|
|
505
505
|
y: 2,
|
|
506
506
|
width: 4,
|
|
507
507
|
height: 4,
|
|
508
508
|
rx: 1,
|
|
509
509
|
fill: "#fff"
|
|
510
|
-
}), /* @__PURE__ */
|
|
510
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
511
511
|
x: 21,
|
|
512
512
|
y: 2,
|
|
513
513
|
width: 4,
|
|
514
514
|
height: 4,
|
|
515
515
|
rx: 1,
|
|
516
516
|
fill: "#fff"
|
|
517
|
-
})), Wa = (t) => /* @__PURE__ */
|
|
517
|
+
})), Wa = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
518
518
|
width: 28,
|
|
519
519
|
height: 28,
|
|
520
520
|
fill: "none",
|
|
521
521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
522
522
|
...t
|
|
523
|
-
}, /* @__PURE__ */
|
|
523
|
+
}, /* @__PURE__ */ h.createElement("rect", {
|
|
524
524
|
width: 28,
|
|
525
525
|
height: 28,
|
|
526
526
|
rx: 3,
|
|
527
527
|
fill: "#FB2D8D"
|
|
528
|
-
}), /* @__PURE__ */
|
|
528
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
529
529
|
d: "M9 21c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084C7 20.066 7.895 21 9 21ZM19 18.916c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084c0 1.15.895 2.084 2 2.084Z",
|
|
530
530
|
fill: "#fff",
|
|
531
531
|
stroke: "#fff",
|
|
532
532
|
strokeWidth: 1.4,
|
|
533
533
|
strokeLinecap: "round",
|
|
534
534
|
strokeLinejoin: "round"
|
|
535
|
-
}), /* @__PURE__ */
|
|
535
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
536
536
|
d: "M21 16.834v-7.75c0-.317-.07-.63-.203-.914a2.07 2.07 0 0 0-.566-.729 1.965 1.965 0 0 0-.816-.396 1.922 1.922 0 0 0-.9.017l-6 1.042a1.995 1.995 0 0 0-1.091.74A2.14 2.14 0 0 0 11 10.124v8.792",
|
|
537
537
|
stroke: "#fff",
|
|
538
538
|
strokeWidth: 1.4,
|
|
539
539
|
strokeLinecap: "round",
|
|
540
540
|
strokeLinejoin: "round"
|
|
541
|
-
})), Va = (t) => /* @__PURE__ */
|
|
541
|
+
})), Va = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
542
542
|
width: 28,
|
|
543
543
|
height: 28,
|
|
544
544
|
fill: "none",
|
|
545
545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
546
546
|
...t
|
|
547
|
-
}, /* @__PURE__ */
|
|
547
|
+
}, /* @__PURE__ */ h.createElement("rect", {
|
|
548
548
|
width: 28,
|
|
549
549
|
height: 28,
|
|
550
550
|
rx: 3,
|
|
551
551
|
fill: "#14B8FF"
|
|
552
|
-
}), /* @__PURE__ */
|
|
552
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
553
553
|
fillRule: "evenodd",
|
|
554
554
|
clipRule: "evenodd",
|
|
555
555
|
d: "M17.229 6.653a2.625 2.625 0 0 0-2.882.605l-.01.01-6.761 6.761a4.312 4.312 0 1 0 6.098 6.099l8.233-8.234a.75.75 0 1 1 1.06 1.06l-8.232 8.234a5.812 5.812 0 1 1-8.22-8.22l6.758-6.757a4.124 4.124 0 1 1 5.833 5.833l-6.767 6.77a2.437 2.437 0 0 1-3.447-3.446l.01-.01 6.761-6.764a.75.75 0 1 1 1.061 1.06l-6.757 6.76a.937.937 0 0 0 1.326 1.325l6.765-6.769a2.626 2.626 0 0 0-.83-4.317Z",
|
|
556
556
|
fill: "#fff"
|
|
557
|
-
})), Ya = (t) => /* @__PURE__ */
|
|
557
|
+
})), Ya = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
558
558
|
width: 28,
|
|
559
559
|
height: 28,
|
|
560
560
|
viewBox: "0 0 28 28",
|
|
561
561
|
fill: "none",
|
|
562
562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
563
563
|
...t
|
|
564
|
-
}, /* @__PURE__ */
|
|
564
|
+
}, /* @__PURE__ */ h.createElement("rect", {
|
|
565
565
|
width: 28,
|
|
566
566
|
height: 28,
|
|
567
567
|
rx: 3,
|
|
568
568
|
fill: "#3BCD4C"
|
|
569
|
-
}), /* @__PURE__ */
|
|
569
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
570
570
|
d: "M17.0141 11.3454C17.0775 11.3165 17.1182 11.2532 17.1182 11.1835C17.1182 11.1137 17.0775 11.0504 17.0141 11.0215L10.0678 7.85488C9.9758 7.814 9.87078 7.814 9.77877 7.85488L7.06135 9.03382C6.99572 9.06178 6.95312 9.12623 6.95312 9.19757C6.95312 9.2689 6.99572 9.33335 7.06135 9.36131L14.3871 12.414C14.4784 12.4523 14.5816 12.4508 14.6718 12.4098L17.0141 11.3454Z",
|
|
571
571
|
fill: "white"
|
|
572
|
-
}), /* @__PURE__ */
|
|
572
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
573
573
|
d: "M21.3502 9.37202C21.4141 9.34329 21.4552 9.27975 21.4552 9.2097C21.4552 9.13965 21.4141 9.07612 21.3502 9.04738L14.4716 6.05943C14.29 5.98019 14.0837 5.98019 13.9021 6.05943L11.6097 7.05613C11.5454 7.08468 11.5039 7.14844 11.5039 7.2188C11.5039 7.28917 11.5454 7.35293 11.6097 7.38148L18.5153 10.5296C18.609 10.5722 18.7165 10.5722 18.8101 10.5296L21.3502 9.37202Z",
|
|
574
574
|
fill: "white"
|
|
575
|
-
}), /* @__PURE__ */
|
|
575
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
576
576
|
d: "M6.24633 10.1777C6.19138 10.1549 6.12865 10.161 6.07916 10.194C6.02966 10.2271 5.99996 10.2827 6 10.3422V18.2773C5.99998 18.5646 6.17266 18.8238 6.43783 18.9344L13.76 21.9864C13.8149 22.0093 13.8777 22.0031 13.9271 21.9701C13.9766 21.937 14.0063 21.8815 14.0063 21.8219V13.5309C14.0062 13.459 13.963 13.3942 13.8967 13.3664L6.24633 10.1777Z",
|
|
577
577
|
fill: "white"
|
|
578
|
-
}), /* @__PURE__ */
|
|
578
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
579
579
|
d: "M15.0781 21.7899C15.0784 21.8502 15.1092 21.9063 15.1599 21.939C15.2105 21.9718 15.2743 21.9767 15.3294 21.9522L21.9582 18.9394C22.2122 18.8238 22.3753 18.5705 22.3754 18.2915V10.3578C22.3754 10.2973 22.3447 10.241 22.2939 10.2082C22.2431 10.1753 22.1791 10.1706 22.124 10.1955L15.1849 13.3507C15.1211 13.3792 15.0801 13.4425 15.0803 13.5124L15.0781 21.7899Z",
|
|
580
580
|
fill: "white"
|
|
581
|
-
})), Ga = (t) => /* @__PURE__ */
|
|
581
|
+
})), Ga = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
582
582
|
width: 32,
|
|
583
583
|
height: 32,
|
|
584
584
|
viewBox: "0 0 32 32",
|
|
585
585
|
fill: "none",
|
|
586
586
|
xmlns: "http://www.w3.org/2000/svg",
|
|
587
587
|
...t
|
|
588
|
-
}, /* @__PURE__ */
|
|
588
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
589
589
|
d: "M29.5 0H2.5C1.11929 0 0 1.11929 0 2.5V29.5C0 30.8807 1.11929 32 2.5 32H29.5C30.8807 32 32 30.8807 32 29.5V2.5C32 1.11929 30.8807 0 29.5 0Z",
|
|
590
590
|
fill: "#FB2D8D"
|
|
591
|
-
}), /* @__PURE__ */
|
|
591
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
592
592
|
fillRule: "evenodd",
|
|
593
593
|
clipRule: "evenodd",
|
|
594
594
|
d: "M6 10C6 8.89543 6.89543 8 8 8H24C25.1046 8 26 8.89543 26 10V15C26 16.1046 25.1046 17 24 17H8C6.89543 17 6 16.1046 6 15V10ZM6 24C6 23.4477 6.44772 23 7 23H25C25.5523 23 26 23.4477 26 24C26 24.5523 25.5523 25 25 25H7C6.44772 25 6 24.5523 6 24ZM7 19C6.44772 19 6 19.4477 6 20C6 20.5523 6.44772 21 7 21H25C25.5523 21 26 20.5523 26 20C26 19.4477 25.5523 19 25 19H7Z",
|
|
595
595
|
fill: "white"
|
|
596
|
-
})), ja = (t) => /* @__PURE__ */
|
|
596
|
+
})), ja = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
597
597
|
width: 32,
|
|
598
598
|
height: 32,
|
|
599
599
|
viewBox: "0 0 32 32",
|
|
600
600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
601
601
|
...t
|
|
602
|
-
}, /* @__PURE__ */
|
|
602
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
603
603
|
fill: "none",
|
|
604
604
|
fillRule: "evenodd"
|
|
605
|
-
}, /* @__PURE__ */
|
|
605
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
606
606
|
d: "M31.252 8.488c-.366-1.37-1.448-2.452-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665c-1.37.366-2.452 1.447-2.823 2.823C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682c.366 1.372 1.447 2.453 2.823 2.823 2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666c1.372-.365 2.453-1.447 2.824-2.823.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682",
|
|
607
607
|
fill: "#D9252A"
|
|
608
|
-
}), /* @__PURE__ */
|
|
608
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
609
609
|
fill: "#FFFFFE",
|
|
610
610
|
d: "M12.77 20.958l8.291-4.788-8.291-4.788v9.576"
|
|
611
|
-
}))), Za = (t) => /* @__PURE__ */
|
|
611
|
+
}))), Za = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
612
612
|
width: 32,
|
|
613
613
|
height: 32,
|
|
614
614
|
viewBox: "0 0 32 32",
|
|
615
615
|
xmlns: "http://www.w3.org/2000/svg",
|
|
616
616
|
...t
|
|
617
|
-
}, /* @__PURE__ */
|
|
617
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
618
618
|
d: "M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85C30.01 8.545 31.12 7.393 32 6.076c-1.198.53-2.47.879-3.77 1.032 1.37-.82 2.395-2.11 2.886-3.63-1.29.764-2.7 1.303-4.17 1.593-2.035-2.164-5.268-2.694-7.887-1.292-2.62 1.401-3.973 4.386-3.3 7.28-5.28-.265-10.198-2.758-13.532-6.86-1.742 3-.852 6.838 2.033 8.764-1.045-.03-2.067-.313-2.98-.822v.084c0 3.125 2.204 5.817 5.267 6.435-.966.264-1.98.303-2.964.113.86 2.675 3.325 4.507 6.133 4.56-2.324 1.827-5.196 2.818-8.153 2.815-.522 0-1.044-.032-1.563-.094 3.002 1.927 6.496 2.949 10.063 2.944",
|
|
619
619
|
fill: "#1DA1F2",
|
|
620
620
|
fillRule: "nonzero"
|
|
621
|
-
})), Ja = (t) => /* @__PURE__ */
|
|
621
|
+
})), Ja = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
622
622
|
xmlns: "http://www.w3.org/2000/svg",
|
|
623
623
|
viewBox: "0 0 122.43 122.41",
|
|
624
624
|
...t
|
|
625
|
-
}, /* @__PURE__ */
|
|
625
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
626
626
|
d: "M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"
|
|
627
|
-
})), Xa = (t) => /* @__PURE__ */
|
|
627
|
+
})), Xa = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
628
628
|
width: 32,
|
|
629
629
|
height: 32,
|
|
630
630
|
viewBox: "0 0 32 32",
|
|
631
631
|
xmlns: "http://www.w3.org/2000/svg",
|
|
632
632
|
...t
|
|
633
|
-
}, /* @__PURE__ */
|
|
633
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
634
634
|
fill: "none",
|
|
635
635
|
fillRule: "evenodd"
|
|
636
|
-
}, /* @__PURE__ */
|
|
636
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
637
637
|
d: "M31.886 25.508c0 3.522-2.855 6.377-6.377 6.377H6.377C2.857 31.885 0 29.03 0 25.508V6.378C0 2.854 2.857 0 6.377 0H25.51c3.522 0 6.377 2.855 6.377 6.377v19.131",
|
|
638
638
|
fill: "#0FB7FF"
|
|
639
|
-
}), /* @__PURE__ */
|
|
639
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
640
640
|
d: "M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765",
|
|
641
641
|
fill: "#FFFFFE"
|
|
642
|
-
}))), Qa = (t) => /* @__PURE__ */
|
|
642
|
+
}))), Qa = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
643
643
|
width: 32,
|
|
644
644
|
height: 32,
|
|
645
645
|
viewBox: "0 0 32 32",
|
|
646
646
|
xmlns: "http://www.w3.org/2000/svg",
|
|
647
647
|
...t
|
|
648
|
-
}, /* @__PURE__ */
|
|
648
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
649
649
|
d: "M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066c-.01-.034-.022-.068-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063-.018-.029-.037-.057-.058-.084-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053c-.025-.023-.051-.045-.078-.065-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231c-.461-.308-1.063-.308-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047-.027.021-.053.043-.078.065-.019.017-.037.035-.055.054-.024.024-.046.048-.068.074-.017.02-.032.039-.047.06-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067-.014.033-.026.067-.036.1l-.022.065c-.01.038-.017.076-.024.115-.004.02-.008.04-.01.06-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092.012.021.026.043.04.062.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053c.024-.024.047-.049.068-.075.017-.02.032-.039.047-.06.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066c.014-.033.025-.067.035-.1.008-.023.016-.045.022-.067.01-.038.017-.077.024-.116.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3V13.7l3.44 2.3zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z",
|
|
650
650
|
fill: "#000",
|
|
651
651
|
fillRule: "nonzero"
|
|
652
|
-
})), qa = (t) => /* @__PURE__ */
|
|
652
|
+
})), qa = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
653
653
|
width: 32,
|
|
654
654
|
height: 32,
|
|
655
655
|
viewBox: "0 0 32 32",
|
|
656
656
|
xmlns: "http://www.w3.org/2000/svg",
|
|
657
657
|
...t
|
|
658
|
-
}, /* @__PURE__ */
|
|
658
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
659
659
|
d: "M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005c-.285.469-.899.618-1.367.33-3.745-2.288-8.46-2.806-14.013-1.537-.535.122-1.068-.213-1.19-.749-.122-.535.212-1.068.748-1.19 6.076-1.389 11.288-.79 15.493 1.779.468.287.617.899.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86-.657.199-1.352-.172-1.552-.828-.198-.658.173-1.351.83-1.551 5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845-.788.24-1.622-.205-1.86-.994-.24-.788.205-1.621.994-1.86 5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044-.42.71-1.337.943-2.044.522z",
|
|
660
660
|
fill: "#1ED760",
|
|
661
661
|
fillRule: "nonzero"
|
|
662
|
-
})), e1 = (t) => /* @__PURE__ */
|
|
662
|
+
})), e1 = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
663
663
|
width: 32,
|
|
664
664
|
height: 32,
|
|
665
665
|
viewBox: "0 0 32 32",
|
|
666
666
|
xmlns: "http://www.w3.org/2000/svg",
|
|
667
667
|
...t
|
|
668
|
-
}, /* @__PURE__ */
|
|
668
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
669
669
|
d: "M15.924 9.922c-.236 0-.43.194-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867c-.003-.238-.197-.432-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306C26.228 11.783 23.254 9 19.625 9c-.887 0-1.753.175-2.517.47-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006c2.174 0 3.936-1.762 3.936-3.936s-1.762-3.937-3.936-3.937zM10.886 22.56v-.002l.226-3.338-.226-7.276c-.006-.181-.148-.323-.325-.323-.176 0-.319.142-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32.177 0 .318-.142.325-.321v.001zm-2.952.32c.144 0 .262-.117.27-.267l.264-3.394-.265-6.497c-.007-.15-.125-.267-.27-.267-.144 0-.263.117-.269.267l-.234 6.497.234 3.395c.006.149.125.266.27.266zm5.297-10.868c-.209 0-.375.166-.38.377l-.169 6.832.17 3.287c.004.21.17.375.379.375.207 0 .373-.166.378-.377v.002l.19-3.287-.19-6.832c-.005-.211-.17-.377-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188c.113 0 .206-.092.214-.212l.302-3.418-.302-3.25c-.008-.12-.1-.211-.214-.211-.116 0-.208.09-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03c.191 0 .346-.154.351-.35v.003l.209-3.309-.209-7.09c-.005-.196-.16-.35-.351-.35-.193 0-.348.154-.352.35l-.185 7.09.185 3.308c.004.194.159.348.352.348zm2.69.013c.22 0 .401-.181.405-.404v.002-.002l.172-3.263-.172-8.13c-.004-.223-.186-.405-.406-.405-.22 0-.403.182-.406.405l-.153 8.127.153 3.268c.003.22.186.402.406.402zm-5.338-.016c.16 0 .29-.129.296-.294l.246-3.36-.246-7.039c-.006-.165-.137-.294-.296-.294-.162 0-.292.13-.297.295l-.218 7.038.218 3.361c.005.164.135.293.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39c.008.104.089.184.188.184.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837c-.129 0-.235.105-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288c-.008-.134-.114-.24-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z",
|
|
670
670
|
fill: "#EE7C25",
|
|
671
671
|
fillRule: "evenodd"
|
|
672
|
-
})), t1 = (t) => /* @__PURE__ */
|
|
672
|
+
})), t1 = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
673
673
|
width: 32,
|
|
674
674
|
height: 32,
|
|
675
675
|
viewBox: "0 0 32 32",
|
|
676
676
|
fill: "none",
|
|
677
677
|
xmlns: "http://www.w3.org/2000/svg",
|
|
678
678
|
...t
|
|
679
|
-
}, /* @__PURE__ */
|
|
679
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
680
680
|
d: "M32 16C32 24.8361 24.8361 32 16 32C7.16394 32 0 24.8361 0 16C0 7.16394 7.16394 0 16 0C24.8379 0 32 7.16394 32 16Z",
|
|
681
681
|
fill: "#2081E2"
|
|
682
|
-
}), /* @__PURE__ */
|
|
682
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
683
683
|
d: "M7.89371 16.5376L7.96274 16.4291L12.125 9.91784C12.1858 9.82251 12.3288 9.83236 12.3748 9.93592C13.0702 11.4943 13.6702 13.4324 13.3891 14.639C13.2691 15.1354 12.9403 15.8078 12.5704 16.4291C12.5228 16.5196 12.4702 16.6083 12.4143 16.6938C12.388 16.7333 12.3436 16.7563 12.2959 16.7563H8.01534C7.90027 16.7563 7.83288 16.6313 7.89371 16.5376Z",
|
|
684
684
|
fill: "white"
|
|
685
|
-
}), /* @__PURE__ */
|
|
685
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
686
686
|
d: "M26.4461 17.7475V18.7782C26.4461 18.8374 26.4099 18.89 26.3573 18.913C26.0351 19.0511 24.9321 19.5574 24.4734 20.1952C23.303 21.8242 22.4088 24.1536 20.4098 24.1536H12.0706C9.11495 24.1536 6.71985 21.7503 6.71985 18.7848V18.6894C6.71985 18.6105 6.78394 18.5464 6.86286 18.5464H11.5117C11.6037 18.5464 11.6711 18.6319 11.6629 18.7223C11.63 19.0248 11.6859 19.3338 11.8289 19.6149C12.1051 20.1755 12.6772 20.5256 13.2952 20.5256H15.5966V18.7289H13.3215C13.2048 18.7289 13.1358 18.5941 13.2032 18.4987C13.2278 18.4609 13.2558 18.4215 13.2854 18.3771C13.5007 18.0714 13.8081 17.5963 14.1139 17.0555C14.3227 16.6905 14.5248 16.3009 14.6876 15.9097C14.7205 15.839 14.7468 15.7666 14.7731 15.696C14.8174 15.571 14.8635 15.4543 14.8964 15.3376C14.9293 15.239 14.9555 15.1354 14.9818 15.0384C15.0591 14.7064 15.092 14.3546 15.092 13.9897C15.092 13.8467 15.0854 13.697 15.0723 13.554C15.0657 13.3979 15.046 13.2417 15.0262 13.0855C15.0131 12.9474 14.9884 12.811 14.9621 12.668C14.9293 12.4592 14.8832 12.2521 14.8306 12.0433L14.8125 11.9644C14.7731 11.8214 14.7402 11.685 14.6942 11.542C14.5643 11.0932 14.4147 10.6559 14.2569 10.2466C14.1994 10.0839 14.1336 9.92771 14.0678 9.77155C13.9709 9.53647 13.8722 9.32278 13.7818 9.12057C13.7358 9.02851 13.6964 8.94467 13.6569 8.85919C13.6125 8.7622 13.5665 8.66521 13.5205 8.57318C13.4876 8.50249 13.4498 8.43673 13.4235 8.37097L13.1424 7.85151C13.1029 7.78083 13.1687 7.69699 13.2459 7.71836L15.0049 8.19507H15.0098C15.0131 8.19507 15.0147 8.19673 15.0164 8.19673L15.2481 8.26083L15.503 8.33318L15.5966 8.35945V7.31398C15.5966 6.80931 16.001 6.39999 16.5008 6.39999C16.7506 6.39999 16.9775 6.50191 17.1402 6.66793C17.303 6.83398 17.4049 7.06083 17.4049 7.31398V8.86579L17.5923 8.91836C17.6071 8.92332 17.6219 8.92988 17.635 8.93974C17.6811 8.97427 17.7468 9.02521 17.8306 9.08771C17.8964 9.14028 17.9671 9.20441 18.0526 9.27017C18.2219 9.40659 18.4241 9.58249 18.646 9.7847C18.7052 9.83564 18.7627 9.88825 18.8153 9.94086C19.1014 10.2072 19.4219 10.5195 19.7277 10.8647C19.8131 10.9617 19.897 11.0603 19.9824 11.1639C20.0679 11.2691 20.1583 11.3726 20.2372 11.4762C20.3408 11.6143 20.4526 11.7573 20.5496 11.9069C20.5956 11.9776 20.6482 12.0499 20.6926 12.1206C20.8175 12.3096 20.9277 12.5053 21.0329 12.7009C21.0773 12.7913 21.1233 12.8899 21.1627 12.9869C21.2794 13.2483 21.3715 13.5146 21.4307 13.7809C21.4487 13.8384 21.4619 13.9009 21.4685 13.9568V13.9699C21.4882 14.0488 21.4948 14.1327 21.5014 14.2181C21.5277 14.491 21.5145 14.7639 21.4553 15.0384C21.4307 15.1552 21.3978 15.2653 21.3583 15.382C21.3189 15.4938 21.2794 15.6105 21.2285 15.7206C21.1299 15.9491 21.0131 16.1776 20.875 16.3913C20.8307 16.4702 20.7781 16.5541 20.7254 16.633C20.6679 16.7168 20.6087 16.7957 20.5561 16.873C20.4838 16.9716 20.4066 17.0752 20.3277 17.1672C20.257 17.2642 20.1846 17.3612 20.1057 17.4467C19.9956 17.5765 19.8904 17.6998 19.7802 17.8182C19.7145 17.8954 19.6438 17.9744 19.5715 18.045C19.5008 18.1239 19.4285 18.1946 19.3627 18.2604C19.2526 18.3705 19.1605 18.456 19.0832 18.5267L18.9024 18.6927C18.8761 18.7157 18.8416 18.7289 18.8054 18.7289H17.4049V20.5256H19.1671C19.5616 20.5256 19.9364 20.3859 20.2389 20.1294C20.3424 20.039 20.7945 19.6478 21.3287 19.0577C21.3468 19.0379 21.3699 19.0231 21.3962 19.0166L26.2636 17.6094C26.354 17.5831 26.4461 17.6522 26.4461 17.7475Z",
|
|
687
687
|
fill: "white"
|
|
688
|
-
})), n1 = (t) => /* @__PURE__ */
|
|
688
|
+
})), n1 = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
689
689
|
width: 32,
|
|
690
690
|
height: 32,
|
|
691
691
|
viewBox: "0 0 32 32",
|
|
692
692
|
xmlns: "http://www.w3.org/2000/svg",
|
|
693
693
|
...t
|
|
694
|
-
}, /* @__PURE__ */
|
|
694
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
695
695
|
fill: "none",
|
|
696
696
|
fillRule: "evenodd"
|
|
697
|
-
}, /* @__PURE__ */
|
|
697
|
+
}, /* @__PURE__ */ h.createElement("rect", {
|
|
698
698
|
fill: "#fb2d8d",
|
|
699
699
|
width: 32,
|
|
700
700
|
height: 32,
|
|
701
701
|
rx: 2.5
|
|
702
|
-
}), /* @__PURE__ */
|
|
702
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
703
703
|
d: "M12 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM18 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM24 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2z",
|
|
704
704
|
fill: "#FFF"
|
|
705
|
-
}))), r1 = (t) => /* @__PURE__ */
|
|
705
|
+
}))), r1 = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
706
706
|
width: 24,
|
|
707
707
|
height: 24,
|
|
708
708
|
fill: "none",
|
|
709
709
|
xmlns: "http://www.w3.org/2000/svg",
|
|
710
710
|
...t
|
|
711
|
-
}, /* @__PURE__ */
|
|
711
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
712
712
|
"data-selector": "bg",
|
|
713
713
|
d: "M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z",
|
|
714
714
|
fill: "#F0F6F9"
|
|
715
|
-
}), /* @__PURE__ */
|
|
715
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
716
716
|
"data-selector": "block",
|
|
717
717
|
x: 5.25,
|
|
718
718
|
y: 4.5,
|
|
@@ -720,11 +720,11 @@ const Ul = (t) => /* @__PURE__ */ f.createElement("svg", {
|
|
|
720
720
|
height: 4.5,
|
|
721
721
|
rx: 1,
|
|
722
722
|
fill: "#738A94"
|
|
723
|
-
}), /* @__PURE__ */
|
|
723
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
724
724
|
"data-selector": "fold",
|
|
725
725
|
d: "M15 16v8l9-9h-8a1 1 0 00-1 1z",
|
|
726
726
|
fill: "#DAE8F1"
|
|
727
|
-
}), /* @__PURE__ */
|
|
727
|
+
}), /* @__PURE__ */ h.createElement("rect", {
|
|
728
728
|
"data-selector": "line",
|
|
729
729
|
x: 5.25,
|
|
730
730
|
y: 11.25,
|
|
@@ -732,58 +732,58 @@ const Ul = (t) => /* @__PURE__ */ f.createElement("svg", {
|
|
|
732
732
|
height: 1.5,
|
|
733
733
|
rx: 0.75,
|
|
734
734
|
fill: "#738A94"
|
|
735
|
-
})), i1 = (t) => /* @__PURE__ */
|
|
735
|
+
})), i1 = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
736
736
|
width: 134,
|
|
737
737
|
height: 135,
|
|
738
738
|
viewBox: "0 0 134 135",
|
|
739
739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
740
740
|
...t
|
|
741
|
-
}, /* @__PURE__ */
|
|
741
|
+
}, /* @__PURE__ */ h.createElement("g", {
|
|
742
742
|
stroke: "#9BAEB8",
|
|
743
743
|
fill: "none",
|
|
744
744
|
fillRule: "evenodd",
|
|
745
745
|
strokeLinecap: "round",
|
|
746
746
|
strokeLinejoin: "round"
|
|
747
|
-
}, /* @__PURE__ */
|
|
747
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
748
748
|
d: "M35.434 9.16C44.87 3.994 55.694 1.055 67.2 1.055c36.583 0 66.284 29.702 66.284 66.285 0 36.582-29.7 66.283-66.284 66.283-36.583 0-66.284-29.7-66.284-66.283 0-12.22 3.314-23.672 9.092-33.506"
|
|
749
|
-
}), /* @__PURE__ */
|
|
749
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
750
750
|
d: "M24.01 4.886c9.846 0 17.84 7.995 17.84 17.84 0 9.847-7.994 17.84-17.84 17.84S6.17 32.574 6.17 22.727c0-9.845 7.994-17.84 17.84-17.84z",
|
|
751
751
|
strokeWidth: 1.5
|
|
752
|
-
}), /* @__PURE__ */
|
|
752
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
753
753
|
d: "M1.598 75.68l7.01-7.938 20.384-7.729 8.021 11.196M26.982 86.606l27.881-41.571 14.692-2.025 12.243-12.246 20.94 32.006M97.117 54.063l13.125-15.386 10.226 16.892 12.617 6.481"
|
|
754
|
-
}), /* @__PURE__ */
|
|
754
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
755
755
|
d: "M81.701 31.513l-4.567 16.414L63.2 50.168l-8.044-4.799M28.906 60.426l-10.052 9.4-16.46 9.75M110.264 39.466l-4.352 14.397-6.813 3.335M4.29 72.954h9.06M1.77 76.146H7.9M6.913 69.892H18.4M58.786 47.145h18.592M61.472 44.198h16.672M71.52 41.148h7.179M74.902 38.194h4.88M77.288 35.303h2.957M11.085 66.873h10.481M18.863 63.852h6.291M63.273 50.268l12.045 9.34 10.39 3.407 4.629 7.316M97.506 54.106h7.31M100.008 50.933h6.486M102.467 47.848h4.952M105.283 44.777h3.354M3.216 83.405s13.854-.669 27.219 4.988c13.364 5.657 23.471 12.137 23.471 12.137M47.563 95.954S64.39 84.025 90.549 82.267c26.158-1.76 41.03.652 41.03.652"
|
|
756
|
-
}), /* @__PURE__ */
|
|
756
|
+
}), /* @__PURE__ */ h.createElement("g", {
|
|
757
757
|
strokeWidth: 1.5
|
|
758
|
-
}, /* @__PURE__ */
|
|
758
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
759
759
|
d: "M106.484 88.541V58.202M106.348 58.407s-3.325 5.105-6.446 6.446M106.348 63.752s-3.325 5.104-6.446 6.445M106.316 68.586s-4.334 5.96-8.403 7.526M106.291 74.127s-5.09 5.96-9.869 7.526M106.558 58.407s3.325 5.105 6.446 6.446M106.558 63.752s3.325 5.104 6.446 6.445M106.59 68.586s4.334 5.96 8.403 7.526M106.614 74.127s5.09 5.96 9.87 7.526M84.635 106.582V77.526M84.504 77.723s-3.184 4.888-6.172 6.173M84.504 82.841s-3.184 4.888-6.172 6.173M84.474 87.47s-4.151 5.709-8.047 7.209M84.45 92.777S79.577 98.485 75 99.985M84.706 77.723s3.183 4.888 6.173 6.173M84.706 82.841s3.183 4.888 6.173 6.173M84.737 87.47s4.15 5.709 8.047 7.209M84.76 92.777s4.875 5.708 9.452 7.208M25.956 118.764V98.566M25.829 98.758s-3.11 4.774-6.028 6.028M25.829 103.756s-3.11 4.774-6.028 6.028M25.799 108.277s-2.5 3.438-5.416 5.623M25.776 113.459s-1.13 1.323-2.805 2.849M26.025 98.758s3.11 4.774 6.028 6.028M26.025 103.756s3.11 4.774 6.028 6.028M26.055 108.277s4.053 5.574 7.858 7.039M26.078 113.459s4.76 5.574 9.23 7.039M66.765 133.543v-30.074M104.85 121.098V109.88M104.722 110.072s-3.11 4.774-6.028 6.028M104.722 115.07s-3.11 4.774-6.028 6.028M104.692 119.591s-4.053 5.575-7.858 7.04M104.919 110.072s3.109 4.774 6.028 6.028M104.919 115.07s1.436 2.205 3.272 4.012M104.949 119.591s.39.538 1.044 1.324M66.583 103.744s-4.448 6.828-8.623 8.623M66.583 110.894s-4.448 6.828-8.623 8.622M66.54 117.36s-5.798 7.975-11.24 10.07M66.508 124.773s-4.13 4.837-8.978 7.966M66.865 103.744s4.447 6.828 8.622 8.623M66.865 110.894s4.447 6.828 8.622 8.622M66.907 117.36s5.798 7.975 11.241 10.07M66.94 124.773s3.968 4.647 8.69 7.778M60.7 88.912V77.016M60.617 76.178s-2.04 3.134-3.957 3.957M60.617 80.423s-2.04 3.133-3.957 3.957M60.598 84.355s-2.66 3.658-5.158 4.62M60.746 76.178s2.041 3.134 3.957 3.957M60.746 80.423s2.041 3.133 3.957 3.957M60.766 84.355s.89 1.98 2.86 3.408M39.394 98.072V75.388M39.292 75.542s-2.485 3.816-4.819 4.819M39.292 79.538s-2.485 3.816-4.819 4.819M39.268 83.152s-3.24 4.456-6.282 5.627M39.25 87.295s-3.806 4.456-7.379 5.627M39.45 75.542s2.485 3.816 4.819 4.819M39.45 79.538s2.485 3.816 4.819 4.819M39.474 83.152s3.24 4.456 6.282 5.627M39.491 87.295s3.807 4.456 7.38 5.627"
|
|
760
|
-
})), /* @__PURE__ */
|
|
760
|
+
})), /* @__PURE__ */ h.createElement("g", {
|
|
761
761
|
opacity: 0.6
|
|
762
|
-
}, /* @__PURE__ */
|
|
762
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
763
763
|
d: "M15.347 88.073h3.286M15.347 102.314h3.286M7.747 95.674h3.285M33.102 102.426h1.588M23.803 95.785h3.286M47.46 117.496h3.286M47.46 102.537h3.286M39.86 125.097h3.286M54.32 125.097h.964M54.32 109.673h.964M39.86 110.138h3.286M63.517 102.648h.964M55.916 96.008h3.286M79.574 117.72h3.285M71.973 96.12h1.643M95.63 88.63h3.286M95.63 117.83h3.286M95.63 102.871h3.286M88.03 125.431h3.285M88.03 110.472h3.285M111.686 88.741h3.286M111.686 102.983h3.286M104.086 96.342h3.286M104.086 110.583h3.286M127.743 88.853h2.102M120.142 96.453h3.287"
|
|
764
|
-
})))), l1 = (t) => /* @__PURE__ */
|
|
764
|
+
})))), l1 = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
765
765
|
width: 142,
|
|
766
766
|
height: 133,
|
|
767
767
|
viewBox: "0 0 142 133",
|
|
768
768
|
xmlns: "http://www.w3.org/2000/svg",
|
|
769
769
|
...t
|
|
770
|
-
}, /* @__PURE__ */
|
|
770
|
+
}, /* @__PURE__ */ h.createElement("title", null, "gallery-placeholder"), /* @__PURE__ */ h.createElement("g", {
|
|
771
771
|
stroke: "#9BAEB8",
|
|
772
772
|
fill: "none",
|
|
773
773
|
fillRule: "evenodd",
|
|
774
774
|
strokeLinecap: "round",
|
|
775
775
|
strokeLinejoin: "round"
|
|
776
|
-
}, /* @__PURE__ */
|
|
776
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
777
777
|
d: "M116.564 6.731a6.215 6.215 0 0 0-6.831-5.532L6.731 12.025a6.216 6.216 0 0 0-5.532 6.831l11.244 106.98a6.217 6.217 0 0 0 6.831 5.532l103.002-10.826a6.215 6.215 0 0 0 5.532-6.831L116.564 6.73z"
|
|
778
|
-
}), /* @__PURE__ */
|
|
778
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
779
779
|
d: "M109.22 13.398a4.003 4.003 0 0 0-4.397-3.561L13.33 19.453a4.005 4.005 0 0 0-3.562 4.398l9.19 87.44 99.453-10.453-9.191-87.44zM17.168 94.25l32.55-3.42M84.1 87.216l32.52-3.418"
|
|
780
|
-
}), /* @__PURE__ */
|
|
780
|
+
}), /* @__PURE__ */ h.createElement("g", {
|
|
781
781
|
strokeWidth: 1.5
|
|
782
|
-
}, /* @__PURE__ */
|
|
782
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
783
783
|
d: "M59.043 98.59c-9.3 1.04-6.382-12-19.314-16.619l52.269-5.493c-11.689 7.205-6.123 19.355-15.437 20.27l-17.518 1.841zm6.821-19.365C62.738 71.163 58.508 65.407 52.7 62.95m13.164 16.275c-2.227-13.332-1.061-23.69 8.078-32.121"
|
|
784
|
-
}), /* @__PURE__ */
|
|
784
|
+
}), /* @__PURE__ */ h.createElement("path", {
|
|
785
785
|
d: "M74.758 66.434c.627 3.041.077 5.81-1.648 8.306-1.725 2.496-4.12 3.989-7.186 4.478-.626-3.04-.076-5.809 1.649-8.305 1.724-2.496 4.12-3.989 7.185-4.479zm-12.174-21.1c2.198 1 3.686 2.615 4.464 4.844.778 2.228.618 4.418-.48 6.57-2.198-1.001-3.686-2.616-4.464-4.844-.778-2.229-.618-4.419.48-6.57zm29.191.643c-2.312 2.604-5.205 4.01-8.68 4.217-3.477.207-6.517-.845-9.12-3.156-2.605-2.312-4.01-5.205-4.218-8.68-.207-3.476.845-6.516 3.156-9.121l6.576-7.409c.658-.741 1.244-.539 1.303.45l.424 7.103 7.1-.422c1.2-.072 1.834.492 1.906 1.69l.424 7.101 7.101-.422c.99-.059 1.26.5.602 1.24l-6.575 7.409zm-42.39 3.888c2.249 1.404 3.672 3.398 4.27 5.982.597 2.583.194 5-1.21 7.249-1.405 2.25-3.4 3.673-5.983 4.27-2.583.597-5 .194-7.249-1.21l-6.4-3.997c-.64-.4-.563-.865.173-1.035l5.28-1.22-1.22-5.28c-.206-.89.136-1.439 1.027-1.645l5.278-1.221-1.22-5.279c-.17-.735.215-1.01.855-.61l6.399 3.996z"
|
|
786
|
-
})), /* @__PURE__ */
|
|
786
|
+
})), /* @__PURE__ */ h.createElement("path", {
|
|
787
787
|
d: "m20.698 98.047 4.933-.519m4.924-.518 4.933-.518m4.925-.517 4.933-.519M89.7 90.794l4.934-.518m4.924-.518 4.933-.518m4.925-.518 4.933-.518M21.65 107.106l4.933-.518m4.925-.518 4.933-.518m4.924-.518 4.933-.518m4.925-.518 4.933-.518m4.924-.518 4.933-.518m4.925-.518 4.933-.518m4.924-.518 4.933-.519m4.925-.517 4.933-.519m4.924-.517 4.933-.519m4.925-.517 4.933-.519m-97.226 5.617 3.061-.322m4.924-.518 4.934-.518m4.924-.517 4.933-.519m4.925-.517 4.933-.519m34.497-3.626 4.933-.518m4.924-.518 4.933-.518m4.925-.518 4.933-.518m4.925-.518 2.748-.289m-53.023 34.156c19.467 1.362 53.066 4.343 62.482 5a6.215 6.215 0 0 0 6.634-5.766l7.503-107.307a6.215 6.215 0 0 0-5.766-6.634c-5.398-.377-18.289-1.224-18.289-1.224",
|
|
788
788
|
opacity: 0.6
|
|
789
789
|
})));
|
|
@@ -841,7 +841,7 @@ const C = ci.exports.jsx, me = ci.exports.jsxs, Sc = () => {
|
|
|
841
841
|
label: "Image card"
|
|
842
842
|
}), /* @__PURE__ */ C("div", {
|
|
843
843
|
className: "relative max-w-[740px]",
|
|
844
|
-
children: /* @__PURE__ */ C(
|
|
844
|
+
children: /* @__PURE__ */ C(p, {})
|
|
845
845
|
}), /* @__PURE__ */ C(t, {
|
|
846
846
|
label: "Gallery card"
|
|
847
847
|
}), /* @__PURE__ */ C("div", {
|
|
@@ -931,7 +931,7 @@ const C = ci.exports.jsx, me = ci.exports.jsxs, Sc = () => {
|
|
|
931
931
|
}
|
|
932
932
|
function i({
|
|
933
933
|
label: S,
|
|
934
|
-
Icon:
|
|
934
|
+
Icon: m,
|
|
935
935
|
..._
|
|
936
936
|
}) {
|
|
937
937
|
return /* @__PURE__ */ C("li", {
|
|
@@ -940,7 +940,7 @@ const C = ci.exports.jsx, me = ci.exports.jsxs, Sc = () => {
|
|
|
940
940
|
children: /* @__PURE__ */ C("div", {
|
|
941
941
|
type: "button",
|
|
942
942
|
className: "flex h-9 w-9 items-center justify-center",
|
|
943
|
-
children: /* @__PURE__ */ C(
|
|
943
|
+
children: /* @__PURE__ */ C(m, {
|
|
944
944
|
className: "fill-white"
|
|
945
945
|
})
|
|
946
946
|
})
|
|
@@ -1086,20 +1086,20 @@ const C = ci.exports.jsx, me = ci.exports.jsxs, Sc = () => {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
function a({
|
|
1088
1088
|
label: S,
|
|
1089
|
-
...
|
|
1089
|
+
...m
|
|
1090
1090
|
}) {
|
|
1091
1091
|
return /* @__PURE__ */ C("div", {
|
|
1092
1092
|
className: "mb-2 flex shrink-0 flex-col justify-center px-4 pt-3 text-xs font-medium uppercase tracking-[.06rem] text-grey",
|
|
1093
1093
|
style: {
|
|
1094
1094
|
minWidth: "calc(100% - 3.2rem)"
|
|
1095
1095
|
},
|
|
1096
|
-
...
|
|
1096
|
+
...m,
|
|
1097
1097
|
children: S
|
|
1098
1098
|
});
|
|
1099
1099
|
}
|
|
1100
1100
|
function u({
|
|
1101
1101
|
label: S,
|
|
1102
|
-
desc:
|
|
1102
|
+
desc: m,
|
|
1103
1103
|
Icon: _,
|
|
1104
1104
|
...E
|
|
1105
1105
|
}) {
|
|
@@ -1118,14 +1118,14 @@ const C = ci.exports.jsx, me = ci.exports.jsxs, Sc = () => {
|
|
|
1118
1118
|
children: S
|
|
1119
1119
|
}), /* @__PURE__ */ C("div", {
|
|
1120
1120
|
className: "m-0 ml-4 truncate text-xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",
|
|
1121
|
-
children:
|
|
1121
|
+
children: m
|
|
1122
1122
|
})]
|
|
1123
1123
|
})]
|
|
1124
1124
|
});
|
|
1125
1125
|
}
|
|
1126
1126
|
function d({
|
|
1127
1127
|
label: S,
|
|
1128
|
-
Icon:
|
|
1128
|
+
Icon: m,
|
|
1129
1129
|
..._
|
|
1130
1130
|
}) {
|
|
1131
1131
|
return /* @__PURE__ */ me("div", {
|
|
@@ -1133,7 +1133,7 @@ const C = ci.exports.jsx, me = ci.exports.jsxs, Sc = () => {
|
|
|
1133
1133
|
..._,
|
|
1134
1134
|
children: [/* @__PURE__ */ C("div", {
|
|
1135
1135
|
className: "flex items-center",
|
|
1136
|
-
children: /* @__PURE__ */ C(
|
|
1136
|
+
children: /* @__PURE__ */ C(m, {
|
|
1137
1137
|
className: "w7 h7"
|
|
1138
1138
|
})
|
|
1139
1139
|
}), /* @__PURE__ */ C("div", {
|
|
@@ -1165,12 +1165,12 @@ const C = ci.exports.jsx, me = ci.exports.jsxs, Sc = () => {
|
|
|
1165
1165
|
})]
|
|
1166
1166
|
});
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function p() {
|
|
1169
1169
|
return /* @__PURE__ */ me("div", {
|
|
1170
1170
|
className: "border-2 border-green",
|
|
1171
1171
|
children: [/* @__PURE__ */ C("div", {
|
|
1172
1172
|
className: "relative",
|
|
1173
|
-
children: /* @__PURE__ */ C(
|
|
1173
|
+
children: /* @__PURE__ */ C(f, {
|
|
1174
1174
|
desc: "Click to select an image",
|
|
1175
1175
|
Icon: i1
|
|
1176
1176
|
})
|
|
@@ -1189,9 +1189,9 @@ const C = ci.exports.jsx, me = ci.exports.jsxs, Sc = () => {
|
|
|
1189
1189
|
})]
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function f({
|
|
1193
1193
|
desc: S,
|
|
1194
|
-
Icon:
|
|
1194
|
+
Icon: m,
|
|
1195
1195
|
..._
|
|
1196
1196
|
}) {
|
|
1197
1197
|
return /* @__PURE__ */ C("figure", {
|
|
@@ -1201,7 +1201,7 @@ const C = ci.exports.jsx, me = ci.exports.jsxs, Sc = () => {
|
|
|
1201
1201
|
className: "h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",
|
|
1202
1202
|
children: /* @__PURE__ */ me("button", {
|
|
1203
1203
|
className: "group flex flex-col items-center justify-center p-20",
|
|
1204
|
-
children: [/* @__PURE__ */ C(
|
|
1204
|
+
children: [/* @__PURE__ */ C(m, {
|
|
1205
1205
|
className: "h-32 w-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"
|
|
1206
1206
|
}), /* @__PURE__ */ C("p", {
|
|
1207
1207
|
className: "mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800",
|
|
@@ -1224,7 +1224,7 @@ const C = ci.exports.jsx, me = ci.exports.jsxs, Sc = () => {
|
|
|
1224
1224
|
className: "border-2 border-green",
|
|
1225
1225
|
children: [/* @__PURE__ */ C("div", {
|
|
1226
1226
|
className: "relative",
|
|
1227
|
-
children: /* @__PURE__ */ C(
|
|
1227
|
+
children: /* @__PURE__ */ C(f, {
|
|
1228
1228
|
desc: "Click to select up to 9 images",
|
|
1229
1229
|
Icon: l1
|
|
1230
1230
|
})
|
|
@@ -1259,7 +1259,7 @@ sr.useLexicalComposerContext = function() {
|
|
|
1259
1259
|
const g1 = sr;
|
|
1260
1260
|
var Me = g1, T = {};
|
|
1261
1261
|
let Xl = {}, Ql = {}, nn = {}, jt = {}, Hr = {}, yt = {}, gi = {}, Kr = {}, rn = {}, ln = {}, Ve = {}, fi = {}, hi = {}, ql = {}, eo = {}, to = {}, no = {}, ro = {}, io = {}, Gn = {}, lo = {}, oo = {}, so = {}, ao = {}, uo = {}, co = {}, go = {}, fo = {}, ho = {}, pi = {}, mi = {}, po = {}, mo = {}, _o = {};
|
|
1262
|
-
function
|
|
1262
|
+
function L(t) {
|
|
1263
1263
|
throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
1264
1264
|
}
|
|
1265
1265
|
let $t = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", f1 = $t && "documentMode" in document ? document.documentMode : null, pe = $t && /Mac|iPod|iPhone|iPad/.test(navigator.platform), at = $t && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), h1 = $t && "InputEvent" in window && !f1 ? "getTargetRanges" in new window.InputEvent("input") : !1, ar = $t && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), ur = $t && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, dr = ar || ur ? "\xA0" : "\u200B", p1 = at ? "\xA0" : dr, m1 = /^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/, _1 = /^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/, lt = { bold: 1, code: 16, italic: 2, strikethrough: 4, subscript: 32, superscript: 64, underline: 8 }, v1 = {
|
|
@@ -1287,13 +1287,13 @@ function vo(t, e, n) {
|
|
|
1287
1287
|
var l = /* @__PURE__ */ new Map(), o = t.getRootElement(), s = t._editorState;
|
|
1288
1288
|
let a = !1, u = "";
|
|
1289
1289
|
for (var d = 0; d < e.length; d++) {
|
|
1290
|
-
var c = e[d], g = c.type,
|
|
1291
|
-
if (!J(
|
|
1290
|
+
var c = e[d], g = c.type, p = c.target, f = mn(p, s);
|
|
1291
|
+
if (!J(f)) {
|
|
1292
1292
|
if (g === "characterData") {
|
|
1293
|
-
if (c = r &&
|
|
1293
|
+
if (c = r && R(f))
|
|
1294
1294
|
e: {
|
|
1295
|
-
c = i, g =
|
|
1296
|
-
var v =
|
|
1295
|
+
c = i, g = p;
|
|
1296
|
+
var v = f;
|
|
1297
1297
|
if (b(c)) {
|
|
1298
1298
|
var x = c.anchor.getNode();
|
|
1299
1299
|
if (x.is(v) && c.format !== x.getFormat()) {
|
|
@@ -1303,17 +1303,17 @@ function vo(t, e, n) {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
c = g.nodeType === 3 && v.isAttached();
|
|
1305
1305
|
}
|
|
1306
|
-
c && (v = window.getSelection(), g = c = null, v !== null && v.anchorNode ===
|
|
1306
|
+
c && (v = window.getSelection(), g = c = null, v !== null && v.anchorNode === p && (c = v.anchorOffset, g = v.focusOffset), p = p.nodeValue, p !== null && Ci(f, p, c, g, !1));
|
|
1307
1307
|
} else if (g === "childList") {
|
|
1308
1308
|
for (a = !0, g = c.addedNodes, v = 0; v < g.length; v++) {
|
|
1309
1309
|
x = g[v];
|
|
1310
|
-
var S = To(x),
|
|
1311
|
-
|
|
1310
|
+
var S = To(x), m = x.parentNode;
|
|
1311
|
+
m == null || S !== null || x.nodeName === "BR" && Mr(x, m, t) || (at && (S = x.innerText || x.nodeValue) && (u += S), m.removeChild(x));
|
|
1312
1312
|
}
|
|
1313
1313
|
if (c = c.removedNodes, g = c.length, 0 < g) {
|
|
1314
1314
|
for (v = 0, x = 0; x < g; x++)
|
|
1315
|
-
|
|
1316
|
-
g !== v && (
|
|
1315
|
+
m = c[x], m.nodeName === "BR" && Mr(m, p, t) && (p.appendChild(m), v++);
|
|
1316
|
+
g !== v && (p === o && (f = s._nodeMap.get("root")), l.set(p, f));
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
@@ -1324,11 +1324,11 @@ function vo(t, e, n) {
|
|
|
1324
1324
|
for (l = E.__children, o = _.firstChild, s = 0; s < l.length; s++)
|
|
1325
1325
|
d = t.getElementByKey(l[s]), d !== null && (o == null ? (_.appendChild(d), o = d) : o !== d && _.replaceChild(d, o), o = o.nextSibling);
|
|
1326
1326
|
else
|
|
1327
|
-
|
|
1327
|
+
R(E) && E.markDirty();
|
|
1328
1328
|
if (l = n.takeRecords(), 0 < l.length) {
|
|
1329
1329
|
for (o = 0; o < l.length; o++)
|
|
1330
|
-
for (d = l[o], s = d.addedNodes, d = d.target,
|
|
1331
|
-
|
|
1330
|
+
for (d = l[o], s = d.addedNodes, d = d.target, f = 0; f < s.length; f++)
|
|
1331
|
+
p = s[f], c = p.parentNode, c == null || p.nodeName !== "BR" || Mr(p, d, t) || c.removeChild(p);
|
|
1332
1332
|
n.takeRecords();
|
|
1333
1333
|
}
|
|
1334
1334
|
i !== null && (a && (i.dirty = !0, Ot(i)), at && Ro(t) && i.insertRawText(u));
|
|
@@ -1389,18 +1389,18 @@ function xo(t, e, n) {
|
|
|
1389
1389
|
return e = lt[e], t & e && (n === null || (n & e) === 0) ? t ^ e : n === null || n & e ? t | e : t;
|
|
1390
1390
|
}
|
|
1391
1391
|
function No(t) {
|
|
1392
|
-
return
|
|
1392
|
+
return R(t) || gn(t) || J(t);
|
|
1393
1393
|
}
|
|
1394
1394
|
function Bn(t) {
|
|
1395
1395
|
var e = t.getParent();
|
|
1396
1396
|
if (e !== null) {
|
|
1397
1397
|
e = e.getWritable().__children;
|
|
1398
1398
|
let n = e.indexOf(t.__key);
|
|
1399
|
-
n === -1 &&
|
|
1399
|
+
n === -1 && L(31), Et(t), e.splice(n, 1);
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
function St(t) {
|
|
1403
|
-
99 < dn &&
|
|
1403
|
+
99 < dn && L(14);
|
|
1404
1404
|
var e = t.getLatest(), n = e.__parent, r = ke();
|
|
1405
1405
|
let i = q(), l = r._nodeMap;
|
|
1406
1406
|
if (r = i._dirtyElements, n !== null)
|
|
@@ -1502,7 +1502,7 @@ function $o(t, e) {
|
|
|
1502
1502
|
var n = window.getSelection();
|
|
1503
1503
|
if (n !== null) {
|
|
1504
1504
|
var r = n.anchorNode, { anchorOffset: i, focusOffset: l } = n;
|
|
1505
|
-
if (r !== null && r.nodeType === 3 && (n = mn(r),
|
|
1505
|
+
if (r !== null && r.nodeType === 3 && (n = mn(r), R(n))) {
|
|
1506
1506
|
if (r = r.nodeValue, r === dr && e) {
|
|
1507
1507
|
let o = e.length;
|
|
1508
1508
|
r = e, l = i = o;
|
|
@@ -1538,21 +1538,21 @@ function M1(t, e) {
|
|
|
1538
1538
|
return !1;
|
|
1539
1539
|
t = t.anchor.offset;
|
|
1540
1540
|
let n = e.getParentOrThrow(), r = e.isToken();
|
|
1541
|
-
return t === 0 ? ((t = !e.canInsertTextBefore() || !n.canInsertTextBefore() || r) || (e = e.getPreviousSibling(), t = (
|
|
1541
|
+
return t === 0 ? ((t = !e.canInsertTextBefore() || !n.canInsertTextBefore() || r) || (e = e.getPreviousSibling(), t = (R(e) || M(e) && e.isInline()) && !e.canInsertTextAfter()), t) : t === e.getTextContentSize() ? !e.canInsertTextAfter() || !n.canInsertTextAfter() || r : !1;
|
|
1542
1542
|
}
|
|
1543
1543
|
function Oo(t, e) {
|
|
1544
1544
|
let n = t.anchor, r = t.focus, i = n.getNode();
|
|
1545
1545
|
var l = window.getSelection();
|
|
1546
1546
|
l = l !== null ? l.anchorNode : null;
|
|
1547
1547
|
let o = n.key, s = q().getElementByKey(o), a = e.length;
|
|
1548
|
-
return o !== r.key || !
|
|
1548
|
+
return o !== r.key || !R(i) || (2 > a || wo(e)) && n.offset !== r.offset && !i.isComposing() || Wr(i) || i.isDirty() && 1 < a || s !== null && !i.isComposing() && l !== jn(s) || i.getFormat() !== t.format || M1(t, i);
|
|
1549
1549
|
}
|
|
1550
1550
|
function zn(t, e) {
|
|
1551
1551
|
var n = t[e];
|
|
1552
1552
|
return typeof n == "string" ? (n = n.split(" "), t[e] = n) : n;
|
|
1553
1553
|
}
|
|
1554
1554
|
function yi(t, e, n, r, i) {
|
|
1555
|
-
n.size !== 0 && (n = r.__key, e = e.get(r.__type), e === void 0 &&
|
|
1555
|
+
n.size !== 0 && (n = r.__key, e = e.get(r.__type), e === void 0 && L(33), e = e.klass, r = t.get(e), r === void 0 && (r = /* @__PURE__ */ new Map(), t.set(e, r)), r.has(n) || r.set(n, i));
|
|
1556
1556
|
}
|
|
1557
1557
|
function Ki(t, e, n) {
|
|
1558
1558
|
let r = t.getParent(), i = n;
|
|
@@ -1569,10 +1569,10 @@ function Vr(t) {
|
|
|
1569
1569
|
return !Ie(t) && !t.isLastChild() && !t.isInline();
|
|
1570
1570
|
}
|
|
1571
1571
|
function Zn(t, e) {
|
|
1572
|
-
return t = t._keyToDOMMap.get(e), t === void 0 &&
|
|
1572
|
+
return t = t._keyToDOMMap.get(e), t === void 0 && L(75), t;
|
|
1573
1573
|
}
|
|
1574
1574
|
function $1(t, e = 0) {
|
|
1575
|
-
if (e !== 0 &&
|
|
1575
|
+
if (e !== 0 && L(1), e = G(), !b(e) || !M(t))
|
|
1576
1576
|
return e;
|
|
1577
1577
|
let { anchor: n, focus: r } = e, i = n.getNode(), l = r.getNode();
|
|
1578
1578
|
return Yr(i, t) && n.set(t.__key, 0, "element"), Yr(l, t) && r.set(t.__key, 0, "element"), e;
|
|
@@ -1586,7 +1586,7 @@ function Yr(t, e) {
|
|
|
1586
1586
|
return !1;
|
|
1587
1587
|
}
|
|
1588
1588
|
function gr(t) {
|
|
1589
|
-
return t = t._window, t === null &&
|
|
1589
|
+
return t = t._window, t === null && L(78), t;
|
|
1590
1590
|
}
|
|
1591
1591
|
function Ge(t) {
|
|
1592
1592
|
return Ie(t) || M(t) && t.isShadowRoot();
|
|
@@ -1622,14 +1622,14 @@ function Do(t) {
|
|
|
1622
1622
|
if (t.__text === "" && t.isSimpleText() && !t.isUnmergeable())
|
|
1623
1623
|
t.remove();
|
|
1624
1624
|
else {
|
|
1625
|
-
for (var e; (e = t.getPreviousSibling()) !== null &&
|
|
1625
|
+
for (var e; (e = t.getPreviousSibling()) !== null && R(e) && e.isSimpleText() && !e.isUnmergeable(); )
|
|
1626
1626
|
if (e.__text === "")
|
|
1627
1627
|
e.remove();
|
|
1628
1628
|
else {
|
|
1629
1629
|
Ui(e, t) && (t = Wi(e, t));
|
|
1630
1630
|
break;
|
|
1631
1631
|
}
|
|
1632
|
-
for (var n; (n = t.getNextSibling()) !== null &&
|
|
1632
|
+
for (var n; (n = t.getNextSibling()) !== null && R(n) && n.isSimpleText() && !n.isUnmergeable(); )
|
|
1633
1633
|
if (n.__text === "")
|
|
1634
1634
|
n.remove();
|
|
1635
1635
|
else {
|
|
@@ -1641,7 +1641,7 @@ function Do(t) {
|
|
|
1641
1641
|
function Vi(t) {
|
|
1642
1642
|
for (; t.type === "element"; ) {
|
|
1643
1643
|
var e = t.getNode(), n = t.offset;
|
|
1644
|
-
if (n === e.getChildrenSize() ? (e = e.getChildAtIndex(n - 1), n = !0) : (e = e.getChildAtIndex(n), n = !1),
|
|
1644
|
+
if (n === e.getChildrenSize() ? (e = e.getChildAtIndex(n - 1), n = !0) : (e = e.getChildAtIndex(n), n = !1), R(e)) {
|
|
1645
1645
|
t.set(e.__key, n ? e.getTextContentSize() : 0, "text");
|
|
1646
1646
|
break;
|
|
1647
1647
|
} else if (!M(e))
|
|
@@ -1675,10 +1675,10 @@ function Po(t, e) {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
function Un(t, e, n) {
|
|
1677
1677
|
let r = wt.get(t);
|
|
1678
|
-
r === void 0 &&
|
|
1678
|
+
r === void 0 && L(60);
|
|
1679
1679
|
let i = r.createDOM(ut, he);
|
|
1680
1680
|
var l = he._keyToDOMMap;
|
|
1681
|
-
if (i["__lexicalKey_" + he._key] = t, l.set(t, i),
|
|
1681
|
+
if (i["__lexicalKey_" + he._key] = t, l.set(t, i), R(r) ? i.setAttribute("data-lexical-text", "true") : J(r) && i.setAttribute("data-lexical-decorator", "true"), M(r)) {
|
|
1682
1682
|
t = r.__indent, t !== 0 && Io(i, t), t = r.__children;
|
|
1683
1683
|
var o = t.length;
|
|
1684
1684
|
if (o !== 0) {
|
|
@@ -1695,7 +1695,7 @@ function Un(t, e, n) {
|
|
|
1695
1695
|
l = r.getTextContent(), J(r) ? (o = r.decorate(he, ut), o !== null && Bo(
|
|
1696
1696
|
t,
|
|
1697
1697
|
o
|
|
1698
|
-
), i.contentEditable = "false") :
|
|
1698
|
+
), i.contentEditable = "false") : R(r) && (r.isDirectionless() || (fe += l)), re += l, be += l;
|
|
1699
1699
|
return e !== null && (n != null ? e.insertBefore(i, n) : (n = e.__lexicalLineBreak, n != null ? e.insertBefore(i, n) : e.appendChild(i))), yi(an, on, fr, r, "created"), i;
|
|
1700
1700
|
}
|
|
1701
1701
|
function Xr(t, e, n, r, i) {
|
|
@@ -1729,18 +1729,18 @@ function bo(t, e) {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
function Wt(t, e) {
|
|
1731
1731
|
var n = sn.get(t), r = wt.get(t);
|
|
1732
|
-
n !== void 0 && r !== void 0 ||
|
|
1732
|
+
n !== void 0 && r !== void 0 || L(61);
|
|
1733
1733
|
var i = ko || jr.has(t) || Gr.has(t);
|
|
1734
1734
|
let l = Zn(he, t);
|
|
1735
1735
|
if (n === r && !i)
|
|
1736
|
-
return M(n) ? (r = l.__lexicalTextContent, r !== void 0 && (re += r, be += r), r = l.__lexicalDirTextContent, r !== void 0 && (fe += r)) : (r = n.getTextContent(),
|
|
1736
|
+
return M(n) ? (r = l.__lexicalTextContent, r !== void 0 && (re += r, be += r), r = l.__lexicalDirTextContent, r !== void 0 && (fe += r)) : (r = n.getTextContent(), R(n) && !n.isDirectionless() && (fe += r), be += r, re += r), l;
|
|
1737
1737
|
if (n !== r && i && yi(an, on, fr, r, "updated"), r.updateDOM(n, l, ut))
|
|
1738
|
-
return r = Un(t, null, null), e === null &&
|
|
1738
|
+
return r = Un(t, null, null), e === null && L(62), e.replaceChild(r, l), Kn(t, null), r;
|
|
1739
1739
|
if (M(n) && M(r)) {
|
|
1740
1740
|
if (t = r.__indent, t !== n.__indent && Io(l, t), t = r.__format, t !== n.__format && Po(l, t), t = n.__children, n = r.__children, t !== n || i) {
|
|
1741
1741
|
var o = t, s = n;
|
|
1742
1742
|
i = r, e = fe, fe = "";
|
|
1743
|
-
let
|
|
1743
|
+
let p = re;
|
|
1744
1744
|
re = "";
|
|
1745
1745
|
var a = o.length, u = s.length;
|
|
1746
1746
|
if (a === 1 && u === 1) {
|
|
@@ -1756,25 +1756,25 @@ function Wt(t, e) {
|
|
|
1756
1756
|
else if (u === 0)
|
|
1757
1757
|
a !== 0 && (d = l.__lexicalLineBreak == null, Jr(o, 0, a - 1, d ? null : l), d && (l.textContent = ""));
|
|
1758
1758
|
else {
|
|
1759
|
-
let
|
|
1759
|
+
let f = a - 1;
|
|
1760
1760
|
a = u - 1;
|
|
1761
1761
|
let v = l.firstChild, x = 0;
|
|
1762
|
-
for (u = 0; x <=
|
|
1762
|
+
for (u = 0; x <= f && u <= a; ) {
|
|
1763
1763
|
var g = o[x];
|
|
1764
1764
|
let S = s[u];
|
|
1765
1765
|
if (g === S)
|
|
1766
1766
|
v = Wt(S, l).nextSibling, x++, u++;
|
|
1767
1767
|
else {
|
|
1768
1768
|
d === void 0 && (d = new Set(o)), c === void 0 && (c = new Set(s));
|
|
1769
|
-
let
|
|
1770
|
-
|
|
1769
|
+
let m = c.has(g), _ = d.has(S);
|
|
1770
|
+
m ? (_ ? (g = Zn(he, S), g === v ? v = Wt(S, l).nextSibling : (v != null ? l.insertBefore(g, v) : l.appendChild(g), Wt(S, l)), x++) : Un(S, l, v), u++) : (v = Qr(g).nextSibling, Kn(g, l), x++);
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
|
-
d = x >
|
|
1773
|
+
d = x > f, c = u > a, d && !c ? (d = s[a + 1], d = d === void 0 ? null : he.getElementByKey(d), Xr(s, u, a, l, d)) : c && !d && Jr(o, x, f, l);
|
|
1774
1774
|
}
|
|
1775
1775
|
Vr(i) && (re += `
|
|
1776
1776
|
|
|
1777
|
-
`), l.__lexicalTextContent = re, re =
|
|
1777
|
+
`), l.__lexicalTextContent = re, re = p + re, bo(i, l), fe = e, Ie(r) || Fo(t, n, l);
|
|
1778
1778
|
}
|
|
1779
1779
|
Vr(r) && (re += `
|
|
1780
1780
|
|
|
@@ -1785,7 +1785,7 @@ function Wt(t, e) {
|
|
|
1785
1785
|
n = r.getTextContent(), J(r) ? (i = r.decorate(
|
|
1786
1786
|
he,
|
|
1787
1787
|
ut
|
|
1788
|
-
), i !== null && Bo(t, i)) :
|
|
1788
|
+
), i !== null && Bo(t, i)) : R(r) && !r.isDirectionless() && (fe += n), re += n, be += n;
|
|
1789
1789
|
return !Ei && Ie(r) && r.__cachedText !== be && (r = r.getWritable(), r.__cachedText = be), l;
|
|
1790
1790
|
}
|
|
1791
1791
|
function Bo(t, e) {
|
|
@@ -1798,7 +1798,7 @@ function Bo(t, e) {
|
|
|
1798
1798
|
n[t] = e;
|
|
1799
1799
|
}
|
|
1800
1800
|
function Qr(t) {
|
|
1801
|
-
return t = Zr.get(t), t === void 0 &&
|
|
1801
|
+
return t = Zr.get(t), t === void 0 && L(75), t;
|
|
1802
1802
|
}
|
|
1803
1803
|
let Pe = Object.freeze({}), qr = [["keydown", b1], ["mousedown", R1], ["compositionstart", P1], ["compositionend", F1], ["input", I1], ["click", A1], ["cut", Pe], ["copy", Pe], ["dragstart", Pe], ["dragover", Pe], ["dragend", Pe], ["paste", Pe], ["focus", Pe], ["blur", Pe], ["drop", Pe]];
|
|
1804
1804
|
h1 && qr.push(["beforeinput", (t, e) => k1(t, e)]);
|
|
@@ -1819,20 +1819,20 @@ function ji(t, e, n) {
|
|
|
1819
1819
|
t.type === "Range" && t.anchorNode === t.focusNode && (s.dirty = !0);
|
|
1820
1820
|
var d = gr(e).event;
|
|
1821
1821
|
d = d ? d.timeStamp : performance.now();
|
|
1822
|
-
let [c, g,
|
|
1823
|
-
d <
|
|
1822
|
+
let [c, g, p, f] = Ho;
|
|
1823
|
+
d < f + 200 && a.offset === g && a.key === p ? s.format = c : a.type === "text" ? s.format = u.getFormat() : a.type === "element" && (s.format = 0);
|
|
1824
1824
|
} else {
|
|
1825
1825
|
a = 127, u = !1, d = s.getNodes();
|
|
1826
1826
|
let c = d.length;
|
|
1827
1827
|
for (let g = 0; g < c; g++) {
|
|
1828
|
-
let
|
|
1829
|
-
if (
|
|
1828
|
+
let p = d[g];
|
|
1829
|
+
if (R(p) && (u = !0, a &= p.getFormat(), a === 0))
|
|
1830
1830
|
break;
|
|
1831
1831
|
}
|
|
1832
1832
|
s.format = u ? a : 0;
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
|
-
|
|
1835
|
+
O(e, Xl, void 0);
|
|
1836
1836
|
}
|
|
1837
1837
|
});
|
|
1838
1838
|
}
|
|
@@ -1843,7 +1843,7 @@ function A1(t, e) {
|
|
|
1843
1843
|
let l = n.anchor, o = l.getNode();
|
|
1844
1844
|
r && l.type === "element" && l.offset === 0 && n.isCollapsed() && !Ie(o) && Qe().getChildrenSize() === 1 && o.getTopLevelElementOrThrow().isEmpty() && i !== null && n.is(i) && (r.removeAllRanges(), n.dirty = !0);
|
|
1845
1845
|
}
|
|
1846
|
-
|
|
1846
|
+
O(e, Ql, t);
|
|
1847
1847
|
});
|
|
1848
1848
|
}
|
|
1849
1849
|
function R1(t, e) {
|
|
@@ -1874,7 +1874,7 @@ function k1(t, e) {
|
|
|
1874
1874
|
Ee(e, () => {
|
|
1875
1875
|
le(null);
|
|
1876
1876
|
});
|
|
1877
|
-
}, 30), b(r) && (i = r.anchor.getNode(), i.markDirty(), r.format = i.getFormat())) : (t.preventDefault(),
|
|
1877
|
+
}, 30), b(r) && (i = r.anchor.getNode(), i.markDirty(), r.format = i.getFormat())) : (t.preventDefault(), O(e, nn, !0));
|
|
1878
1878
|
return;
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
@@ -1883,52 +1883,52 @@ function k1(t, e) {
|
|
|
1883
1883
|
var l = r.focus, o = r.anchor.getNode();
|
|
1884
1884
|
if (l = l.getNode(), n === "insertText" || n === "insertTranspose")
|
|
1885
1885
|
i === `
|
|
1886
|
-
` ? (t.preventDefault(),
|
|
1886
|
+
` ? (t.preventDefault(), O(e, jt, !1)) : i === `
|
|
1887
1887
|
|
|
1888
|
-
` ? (t.preventDefault(),
|
|
1888
|
+
` ? (t.preventDefault(), O(e, Hr, void 0)) : i == null && t.dataTransfer ? (i = t.dataTransfer.getData("text/plain"), t.preventDefault(), r.insertRawText(i)) : i != null && Oo(r, i) && (t.preventDefault(), O(e, yt, i));
|
|
1889
1889
|
else
|
|
1890
1890
|
switch (t.preventDefault(), n) {
|
|
1891
1891
|
case "insertFromYank":
|
|
1892
1892
|
case "insertFromDrop":
|
|
1893
1893
|
case "insertReplacementText":
|
|
1894
|
-
|
|
1894
|
+
O(e, yt, t);
|
|
1895
1895
|
break;
|
|
1896
1896
|
case "insertFromComposition":
|
|
1897
|
-
le(null),
|
|
1897
|
+
le(null), O(
|
|
1898
1898
|
e,
|
|
1899
1899
|
yt,
|
|
1900
1900
|
t
|
|
1901
1901
|
);
|
|
1902
1902
|
break;
|
|
1903
1903
|
case "insertLineBreak":
|
|
1904
|
-
le(null),
|
|
1904
|
+
le(null), O(e, jt, !1);
|
|
1905
1905
|
break;
|
|
1906
1906
|
case "insertParagraph":
|
|
1907
|
-
le(null), Jt ? (Jt = !1,
|
|
1907
|
+
le(null), Jt ? (Jt = !1, O(e, jt, !1)) : O(e, Hr, void 0);
|
|
1908
1908
|
break;
|
|
1909
1909
|
case "insertFromPaste":
|
|
1910
1910
|
case "insertFromPasteAsQuotation":
|
|
1911
|
-
|
|
1911
|
+
O(e, gi, t);
|
|
1912
1912
|
break;
|
|
1913
1913
|
case "deleteByComposition":
|
|
1914
|
-
D1(o, l) &&
|
|
1914
|
+
D1(o, l) && O(e, Kr, void 0);
|
|
1915
1915
|
break;
|
|
1916
1916
|
case "deleteByDrag":
|
|
1917
1917
|
case "deleteByCut":
|
|
1918
|
-
|
|
1918
|
+
O(e, Kr, void 0);
|
|
1919
1919
|
break;
|
|
1920
1920
|
case "deleteContent":
|
|
1921
|
-
|
|
1921
|
+
O(e, nn, !1);
|
|
1922
1922
|
break;
|
|
1923
1923
|
case "deleteWordBackward":
|
|
1924
|
-
|
|
1924
|
+
O(e, rn, !0);
|
|
1925
1925
|
break;
|
|
1926
1926
|
case "deleteWordForward":
|
|
1927
|
-
|
|
1927
|
+
O(e, rn, !1);
|
|
1928
1928
|
break;
|
|
1929
1929
|
case "deleteHardLineBackward":
|
|
1930
1930
|
case "deleteSoftLineBackward":
|
|
1931
|
-
|
|
1931
|
+
O(
|
|
1932
1932
|
e,
|
|
1933
1933
|
ln,
|
|
1934
1934
|
!0
|
|
@@ -1937,25 +1937,25 @@ function k1(t, e) {
|
|
|
1937
1937
|
case "deleteContentForward":
|
|
1938
1938
|
case "deleteHardLineForward":
|
|
1939
1939
|
case "deleteSoftLineForward":
|
|
1940
|
-
|
|
1940
|
+
O(e, ln, !1);
|
|
1941
1941
|
break;
|
|
1942
1942
|
case "formatStrikeThrough":
|
|
1943
|
-
|
|
1943
|
+
O(e, Ve, "strikethrough");
|
|
1944
1944
|
break;
|
|
1945
1945
|
case "formatBold":
|
|
1946
|
-
|
|
1946
|
+
O(e, Ve, "bold");
|
|
1947
1947
|
break;
|
|
1948
1948
|
case "formatItalic":
|
|
1949
|
-
|
|
1949
|
+
O(e, Ve, "italic");
|
|
1950
1950
|
break;
|
|
1951
1951
|
case "formatUnderline":
|
|
1952
|
-
|
|
1952
|
+
O(e, Ve, "underline");
|
|
1953
1953
|
break;
|
|
1954
1954
|
case "historyUndo":
|
|
1955
|
-
|
|
1955
|
+
O(e, fi, void 0);
|
|
1956
1956
|
break;
|
|
1957
1957
|
case "historyRedo":
|
|
1958
|
-
|
|
1958
|
+
O(e, hi, void 0);
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
});
|
|
@@ -1963,7 +1963,7 @@ function k1(t, e) {
|
|
|
1963
1963
|
function I1(t, e) {
|
|
1964
1964
|
t.stopPropagation(), Ee(e, () => {
|
|
1965
1965
|
var n = G(), r = t.data;
|
|
1966
|
-
r != null && b(n) && Oo(n, r) ? (Vt && (ni(e, r), Vt = !1),
|
|
1966
|
+
r != null && b(n) && Oo(n, r) ? (Vt && (ni(e, r), Vt = !1), O(e, yt, r), r = r.length, at && 1 < r && t.inputType === "insertCompositionText" && !e.isComposing() && (n.anchor.offset -= r), ar || ur || !e.isComposing() || (un = 0, le(null))) : ($o(!1), Vt && (ni(e, r || void 0), Vt = !1)), Ce(), n = q(), Co(n);
|
|
1967
1967
|
});
|
|
1968
1968
|
}
|
|
1969
1969
|
function P1(t, e) {
|
|
@@ -1971,7 +1971,7 @@ function P1(t, e) {
|
|
|
1971
1971
|
let n = G();
|
|
1972
1972
|
if (b(n) && !e.isComposing()) {
|
|
1973
1973
|
let r = n.anchor;
|
|
1974
|
-
le(r.key), (t.timeStamp < un + 30 || r.type === "element" || !n.isCollapsed() || n.anchor.getNode().getFormat() !== n.format) &&
|
|
1974
|
+
le(r.key), (t.timeStamp < un + 30 || r.type === "element" || !n.isCollapsed() || n.anchor.getNode().getFormat() !== n.format) && O(e, yt, p1);
|
|
1975
1975
|
}
|
|
1976
1976
|
});
|
|
1977
1977
|
}
|
|
@@ -1979,12 +1979,12 @@ function ni(t, e) {
|
|
|
1979
1979
|
var n = t._compositionKey;
|
|
1980
1980
|
if (le(null), n !== null && e != null) {
|
|
1981
1981
|
if (e === "") {
|
|
1982
|
-
e = Y(n), t = jn(t.getElementByKey(n)), t !== null && t.nodeValue !== null &&
|
|
1982
|
+
e = Y(n), t = jn(t.getElementByKey(n)), t !== null && t.nodeValue !== null && R(e) && Ci(e, t.nodeValue, null, null, !0);
|
|
1983
1983
|
return;
|
|
1984
1984
|
}
|
|
1985
1985
|
if (e[e.length - 1] === `
|
|
1986
1986
|
` && (n = G(), b(n))) {
|
|
1987
|
-
e = n.focus, n.anchor.set(e.key, e.offset, e.type),
|
|
1987
|
+
e = n.focus, n.anchor.set(e.key, e.offset, e.type), O(t, Gn, null);
|
|
1988
1988
|
return;
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
@@ -2005,29 +2005,29 @@ function b1(t, e) {
|
|
|
2005
2005
|
if (n !== 38 || i || l)
|
|
2006
2006
|
if (n !== 40 || i || l)
|
|
2007
2007
|
if (n === 13 && r)
|
|
2008
|
-
Jt = !0,
|
|
2008
|
+
Jt = !0, O(e, Gn, t);
|
|
2009
2009
|
else if (n === 32)
|
|
2010
|
-
|
|
2010
|
+
O(e, lo, t);
|
|
2011
2011
|
else if (pe && i && n === 79)
|
|
2012
|
-
t.preventDefault(), Jt = !0,
|
|
2012
|
+
t.preventDefault(), Jt = !0, O(e, jt, !0);
|
|
2013
2013
|
else if (n !== 13 || r) {
|
|
2014
2014
|
var s = pe ? o || l ? !1 : n === 8 || n === 72 && i : i || o || l ? !1 : n === 8;
|
|
2015
|
-
s ? n === 8 ?
|
|
2015
|
+
s ? n === 8 ? O(e, oo, t) : (t.preventDefault(), O(e, nn, !0)) : n === 27 ? O(e, so, t) : (s = pe ? r || o || l ? !1 : n === 46 || n === 68 && i : i || o || l ? !1 : n === 46, s ? n === 46 ? O(e, ao, t) : (t.preventDefault(), O(e, nn, !1)) : n === 8 && (pe ? o : i) ? (t.preventDefault(), O(e, rn, !0)) : n === 46 && (pe ? o : i) ? (t.preventDefault(), O(e, rn, !1)) : pe && l && n === 8 ? (t.preventDefault(), O(e, ln, !0)) : pe && l && n === 46 ? (t.preventDefault(), O(e, ln, !1)) : n === 66 && !o && (pe ? l : i) ? (t.preventDefault(), O(e, Ve, "bold")) : n === 85 && !o && (pe ? l : i) ? (t.preventDefault(), O(e, Ve, "underline")) : n === 73 && !o && (pe ? l : i) ? (t.preventDefault(), O(e, Ve, "italic")) : n !== 9 || o || i || l ? n === 90 && !r && (pe ? l : i) ? (t.preventDefault(), O(e, fi, void 0)) : (s = pe ? n === 90 && l && r : n === 89 && i || n === 90 && i && r, s ? (t.preventDefault(), O(e, hi, void 0)) : _n(e._editorState._selection) && (s = r ? !1 : n === 67 ? pe ? l : i : !1, s ? (t.preventDefault(), O(e, pi, t)) : (s = r ? !1 : n === 88 ? pe ? l : i : !1, s && (t.preventDefault(), O(e, mi, t))))) : O(e, uo, t));
|
|
2016
2016
|
} else
|
|
2017
|
-
Jt = !1,
|
|
2017
|
+
Jt = !1, O(e, Gn, t);
|
|
2018
2018
|
else
|
|
2019
|
-
|
|
2019
|
+
O(e, io, t);
|
|
2020
2020
|
else
|
|
2021
|
-
|
|
2021
|
+
O(e, ro, t);
|
|
2022
2022
|
else
|
|
2023
|
-
|
|
2023
|
+
O(e, no, t);
|
|
2024
2024
|
else
|
|
2025
|
-
|
|
2025
|
+
O(e, to, t);
|
|
2026
2026
|
else
|
|
2027
|
-
|
|
2027
|
+
O(e, eo, t);
|
|
2028
2028
|
else
|
|
2029
|
-
|
|
2030
|
-
(i || r || o || l) &&
|
|
2029
|
+
O(e, ql, t);
|
|
2030
|
+
(i || r || o || l) && O(e, _o, t);
|
|
2031
2031
|
}
|
|
2032
2032
|
}
|
|
2033
2033
|
function Ko(t) {
|
|
@@ -2061,23 +2061,23 @@ function B1(t, e) {
|
|
|
2061
2061
|
if (e.isEditable())
|
|
2062
2062
|
switch (i) {
|
|
2063
2063
|
case "cut":
|
|
2064
|
-
return
|
|
2064
|
+
return O(e, mi, s);
|
|
2065
2065
|
case "copy":
|
|
2066
|
-
return
|
|
2066
|
+
return O(e, pi, s);
|
|
2067
2067
|
case "paste":
|
|
2068
|
-
return
|
|
2068
|
+
return O(e, gi, s);
|
|
2069
2069
|
case "dragstart":
|
|
2070
|
-
return
|
|
2070
|
+
return O(e, go, s);
|
|
2071
2071
|
case "dragover":
|
|
2072
|
-
return
|
|
2072
|
+
return O(e, fo, s);
|
|
2073
2073
|
case "dragend":
|
|
2074
|
-
return
|
|
2074
|
+
return O(e, ho, s);
|
|
2075
2075
|
case "focus":
|
|
2076
|
-
return
|
|
2076
|
+
return O(e, po, s);
|
|
2077
2077
|
case "blur":
|
|
2078
|
-
return
|
|
2078
|
+
return O(e, mo, s);
|
|
2079
2079
|
case "drop":
|
|
2080
|
-
return
|
|
2080
|
+
return O(
|
|
2081
2081
|
e,
|
|
2082
2082
|
co,
|
|
2083
2083
|
s
|
|
@@ -2106,7 +2106,7 @@ class De {
|
|
|
2106
2106
|
}
|
|
2107
2107
|
getNode() {
|
|
2108
2108
|
let e = Y(this.key);
|
|
2109
|
-
return e === null &&
|
|
2109
|
+
return e === null && L(20), e;
|
|
2110
2110
|
}
|
|
2111
2111
|
set(e, n, r) {
|
|
2112
2112
|
let i = this._selection, l = this.key;
|
|
@@ -2115,18 +2115,18 @@ class De {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
function $r(t, e) {
|
|
2117
2117
|
let n = e.__key, r = t.offset, i = "element";
|
|
2118
|
-
if (
|
|
2118
|
+
if (R(e))
|
|
2119
2119
|
i = "text", e = e.getTextContentSize(), r > e && (r = e);
|
|
2120
2120
|
else if (!M(e)) {
|
|
2121
2121
|
var l = e.getNextSibling();
|
|
2122
|
-
|
|
2122
|
+
R(l) ? (n = l.__key, r = 0) : (l = e.getParent()) && (n = l.__key, r = e.getIndexWithinParent() + 1);
|
|
2123
2123
|
}
|
|
2124
2124
|
t.set(n, r, i);
|
|
2125
2125
|
}
|
|
2126
2126
|
function Zi(t, e) {
|
|
2127
2127
|
if (M(e)) {
|
|
2128
2128
|
let n = e.getLastDescendant();
|
|
2129
|
-
M(n) ||
|
|
2129
|
+
M(n) || R(n) ? $r(t, n) : $r(t, e);
|
|
2130
2130
|
} else
|
|
2131
2131
|
$r(t, e);
|
|
2132
2132
|
}
|
|
@@ -2172,7 +2172,7 @@ class hr {
|
|
|
2172
2172
|
insertNodes(e, n) {
|
|
2173
2173
|
let r = this.getNodes(), i = r.length;
|
|
2174
2174
|
var l = r[i - 1];
|
|
2175
|
-
if (
|
|
2175
|
+
if (R(l))
|
|
2176
2176
|
l = l.select();
|
|
2177
2177
|
else {
|
|
2178
2178
|
let o = l.getIndexWithinParent() + 1;
|
|
@@ -2237,11 +2237,11 @@ class pr {
|
|
|
2237
2237
|
}
|
|
2238
2238
|
getShape() {
|
|
2239
2239
|
var e = Y(this.anchor.key);
|
|
2240
|
-
e === null &&
|
|
2240
|
+
e === null && L(21);
|
|
2241
2241
|
var n = e.getIndexWithinParent();
|
|
2242
2242
|
e = e.getParentOrThrow().getIndexWithinParent();
|
|
2243
2243
|
var r = Y(this.focus.key);
|
|
2244
|
-
r === null &&
|
|
2244
|
+
r === null && L(22);
|
|
2245
2245
|
var i = r.getIndexWithinParent();
|
|
2246
2246
|
let l = r.getParentOrThrow().getIndexWithinParent();
|
|
2247
2247
|
return r = Math.min(n, i), n = Math.max(n, i), i = Math.min(e, l), e = Math.max(e, l), { fromX: Math.min(r, n), fromY: Math.min(i, e), toX: Math.max(r, n), toY: Math.max(
|
|
@@ -2256,13 +2256,13 @@ class pr {
|
|
|
2256
2256
|
e = /* @__PURE__ */ new Set();
|
|
2257
2257
|
let { fromX: n, fromY: r, toX: i, toY: l } = this.getShape();
|
|
2258
2258
|
var o = Y(this.gridKey);
|
|
2259
|
-
ns(o) ||
|
|
2259
|
+
ns(o) || L(23), e.add(o), o = o.getChildren();
|
|
2260
2260
|
for (let u = r; u <= l; u++) {
|
|
2261
2261
|
var s = o[u];
|
|
2262
|
-
e.add(s), is(s) ||
|
|
2262
|
+
e.add(s), is(s) || L(24), s = s.getChildren();
|
|
2263
2263
|
for (let d = n; d <= i; d++) {
|
|
2264
2264
|
var a = s[d];
|
|
2265
|
-
for (es(a) ||
|
|
2265
|
+
for (es(a) || L(25), e.add(a), a = a.getChildren(); 0 < a.length; ) {
|
|
2266
2266
|
let c = a.shift();
|
|
2267
2267
|
e.add(c), M(c) && a.unshift(...c.getChildren());
|
|
2268
2268
|
}
|
|
@@ -2315,7 +2315,7 @@ class At {
|
|
|
2315
2315
|
if (M(d) && !d.isInline())
|
|
2316
2316
|
a || (s += `
|
|
2317
2317
|
`), a = !d.isEmpty();
|
|
2318
|
-
else if (a = !1,
|
|
2318
|
+
else if (a = !1, R(d)) {
|
|
2319
2319
|
let c = d.getTextContent();
|
|
2320
2320
|
d === n ? c = d === r ? l < o ? c.slice(l, o) : c.slice(o, l) : i ? c.slice(l) : c.slice(o) : d === r && (c = i ? c.slice(0, o) : c.slice(0, l)), s += c;
|
|
2321
2321
|
} else
|
|
@@ -2365,16 +2365,16 @@ class At {
|
|
|
2365
2365
|
var o = this.getNodes(), s = o.length, a = i ? r : n;
|
|
2366
2366
|
r = (i ? n : r).offset;
|
|
2367
2367
|
var u = a.offset;
|
|
2368
|
-
n = o[0],
|
|
2368
|
+
n = o[0], R(n) || L(26), i = n.getTextContent().length;
|
|
2369
2369
|
var d = n.getParentOrThrow(), c = o[s - 1];
|
|
2370
2370
|
if (this.isCollapsed() && r === i && (n.isSegmented() || n.isToken() || !n.canInsertTextAfter() || !d.canInsertTextAfter() && n.getNextSibling() === null)) {
|
|
2371
2371
|
var g = n.getNextSibling();
|
|
2372
|
-
if ((!
|
|
2372
|
+
if ((!R(g) || Wr(g)) && (g = ge(), g.setFormat(l), d.canInsertTextAfter() ? n.insertAfter(g) : d.insertAfter(g)), g.select(0, 0), n = g, e !== "") {
|
|
2373
2373
|
this.insertText(e);
|
|
2374
2374
|
return;
|
|
2375
2375
|
}
|
|
2376
2376
|
} else if (this.isCollapsed() && r === 0 && (n.isSegmented() || n.isToken() || !n.canInsertTextBefore() || !d.canInsertTextBefore() && n.getPreviousSibling() === null)) {
|
|
2377
|
-
if (g = n.getPreviousSibling(), (!
|
|
2377
|
+
if (g = n.getPreviousSibling(), (!R(g) || Wr(g)) && (g = ge(), g.setFormat(l), d.canInsertTextBefore() ? n.insertBefore(g) : d.insertBefore(g)), g.select(), n = g, e !== "") {
|
|
2378
2378
|
this.insertText(e);
|
|
2379
2379
|
return;
|
|
2380
2380
|
}
|
|
@@ -2399,17 +2399,17 @@ class At {
|
|
|
2399
2399
|
}
|
|
2400
2400
|
else {
|
|
2401
2401
|
l = /* @__PURE__ */ new Set([...n.getParentKeys(), ...c.getParentKeys()]);
|
|
2402
|
-
var
|
|
2403
|
-
if (d = M(c) ? c : c.getParentOrThrow(), g = c, !
|
|
2402
|
+
var p = M(n) ? n : n.getParentOrThrow();
|
|
2403
|
+
if (d = M(c) ? c : c.getParentOrThrow(), g = c, !p.is(d) && d.isInline())
|
|
2404
2404
|
do
|
|
2405
2405
|
g = d, d = d.getParentOrThrow();
|
|
2406
2406
|
while (d.isInline());
|
|
2407
|
-
a.type === "text" && (u !== 0 || c.getTextContent() === "") || a.type === "element" && c.getIndexWithinParent() < u ?
|
|
2408
|
-
for (let
|
|
2409
|
-
let v = a[
|
|
2407
|
+
a.type === "text" && (u !== 0 || c.getTextContent() === "") || a.type === "element" && c.getIndexWithinParent() < u ? R(c) && !c.isToken() && u !== c.getTextContentSize() ? (c.isSegmented() && (a = ge(c.getTextContent()), c.replace(a), c = a), c = c.spliceText(0, u, ""), l.add(c.__key)) : (a = c.getParentOrThrow(), a.canBeEmpty() || a.getChildrenSize() !== 1 ? c.remove() : a.remove()) : l.add(c.__key), a = d.getChildren(), u = new Set(o), c = p.is(d), p = p.isInline() && n.getNextSibling() === null ? p : n;
|
|
2408
|
+
for (let f = a.length - 1; 0 <= f; f--) {
|
|
2409
|
+
let v = a[f];
|
|
2410
2410
|
if (v.is(n) || M(v) && v.isParentOf(n))
|
|
2411
2411
|
break;
|
|
2412
|
-
v.isAttached() && (!u.has(v) || v.is(g) ? c ||
|
|
2412
|
+
v.isAttached() && (!u.has(v) || v.is(g) ? c || p.insertAfter(v) : v.remove());
|
|
2413
2413
|
}
|
|
2414
2414
|
if (!c)
|
|
2415
2415
|
for (a = d, u = null; a !== null; )
|
|
@@ -2427,7 +2427,7 @@ class At {
|
|
|
2427
2427
|
else {
|
|
2428
2428
|
var n = this.getNodes(), r = [];
|
|
2429
2429
|
for (var i of n)
|
|
2430
|
-
|
|
2430
|
+
R(i) && r.push(i);
|
|
2431
2431
|
var l = r.length;
|
|
2432
2432
|
if (l === 0)
|
|
2433
2433
|
this.toggleFormat(e), le(null);
|
|
@@ -2449,10 +2449,10 @@ class At {
|
|
|
2449
2449
|
o !== 0 && ([, u] = u.splitText(o), o = 0), u.setFormat(s);
|
|
2450
2450
|
var g = c.getFormatFlags(e, s);
|
|
2451
2451
|
for (0 < l && (l !== c.getTextContentSize() && ([c] = c.splitText(l)), c.setFormat(g)), a += 1; a < d; a++) {
|
|
2452
|
-
let
|
|
2453
|
-
if (!
|
|
2454
|
-
let
|
|
2455
|
-
|
|
2452
|
+
let p = r[a];
|
|
2453
|
+
if (!p.isToken()) {
|
|
2454
|
+
let f = p.getFormatFlags(e, g);
|
|
2455
|
+
p.setFormat(f);
|
|
2456
2456
|
}
|
|
2457
2457
|
}
|
|
2458
2458
|
n.type === "text" && n.set(u.__key, o, "text"), i.type === "text" && i.set(c.__key, l, "text"), this.format = s | g;
|
|
@@ -2466,7 +2466,7 @@ class At {
|
|
|
2466
2466
|
var r = this.anchor, i = r.offset, l = r.getNode(), o = l;
|
|
2467
2467
|
r.type === "element" && (o = r.getNode(), r = o.getChildAtIndex(i - 1), o = r === null ? o : r), r = [];
|
|
2468
2468
|
var s = l.getNextSiblings(), a = Ge(l) ? null : l.getTopLevelElementOrThrow();
|
|
2469
|
-
if (
|
|
2469
|
+
if (R(l))
|
|
2470
2470
|
if (o = l.getTextContent().length, i === 0 && o !== 0)
|
|
2471
2471
|
o = l.getPreviousSibling(), o = o !== null ? o : l.getParentOrThrow(), r.push(l);
|
|
2472
2472
|
else if (i === o)
|
|
@@ -2478,8 +2478,8 @@ class At {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
l = o, r.push(...s), s = e[0];
|
|
2480
2480
|
var u = !1, d = null;
|
|
2481
|
-
for (let
|
|
2482
|
-
var c = e[
|
|
2481
|
+
for (let f = 0; f < e.length; f++) {
|
|
2482
|
+
var c = e[f];
|
|
2483
2483
|
if (M(c) && !c.isInline()) {
|
|
2484
2484
|
if (c.is(s)) {
|
|
2485
2485
|
if (M(o) && o.isEmpty() && o.canReplaceWith(c)) {
|
|
@@ -2491,28 +2491,28 @@ class At {
|
|
|
2491
2491
|
for (g = g.getParentOrThrow(); g.isInline(); )
|
|
2492
2492
|
g = g.getParentOrThrow();
|
|
2493
2493
|
if (d = g.getChildren(), u = d.length, M(o))
|
|
2494
|
-
for (var
|
|
2495
|
-
o.append(d[
|
|
2494
|
+
for (var p = 0; p < u; p++)
|
|
2495
|
+
o.append(d[p]);
|
|
2496
2496
|
else {
|
|
2497
|
-
for (
|
|
2498
|
-
o.insertAfter(d[
|
|
2497
|
+
for (p = u - 1; 0 <= p; p--)
|
|
2498
|
+
o.insertAfter(d[p]);
|
|
2499
2499
|
o = o.getParentOrThrow();
|
|
2500
2500
|
}
|
|
2501
2501
|
if (d = d[u - 1], g.remove(), u = !0, g.is(c))
|
|
2502
2502
|
continue;
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
|
-
|
|
2505
|
+
R(o) && (a === null && L(27), o = a);
|
|
2506
2506
|
} else
|
|
2507
|
-
u && !J(c) && Ge(o.getParent()) &&
|
|
2508
|
-
u = !1, M(o) && !o.isInline() ? (d = c, J(c) && !c.isInline() ? o = o.insertAfter(c) : M(c) ? (c.canBeEmpty() || !c.isEmpty()) && (Ge(o) ? (g = o.getChildAtIndex(i), g !== null ? g.insertBefore(c) : o.append(c), o = c) : o = o.insertAfter(c)) : (g = o.getFirstChild(), g !== null ? g.insertBefore(c) : o.append(c), o = c)) : !M(c) || M(c) && c.isInline() || J(o) && !o.isInline() ? (d = c, o = o.insertAfter(c)) : (c = o.getParentOrThrow(), gn(o) && o.remove(), o = c,
|
|
2507
|
+
u && !J(c) && Ge(o.getParent()) && L(28);
|
|
2508
|
+
u = !1, M(o) && !o.isInline() ? (d = c, J(c) && !c.isInline() ? o = o.insertAfter(c) : M(c) ? (c.canBeEmpty() || !c.isEmpty()) && (Ge(o) ? (g = o.getChildAtIndex(i), g !== null ? g.insertBefore(c) : o.append(c), o = c) : o = o.insertAfter(c)) : (g = o.getFirstChild(), g !== null ? g.insertBefore(c) : o.append(c), o = c)) : !M(c) || M(c) && c.isInline() || J(o) && !o.isInline() ? (d = c, o = o.insertAfter(c)) : (c = o.getParentOrThrow(), gn(o) && o.remove(), o = c, f--);
|
|
2509
2509
|
}
|
|
2510
|
-
if (n && (
|
|
2511
|
-
if (e =
|
|
2510
|
+
if (n && (R(l) ? l.select() : (e = o.getPreviousSibling(), R(e) ? e.select() : (e = o.getIndexWithinParent(), o.getParentOrThrow().select(e, e)))), M(o)) {
|
|
2511
|
+
if (e = R(d) ? d : M(d) && d.isInline() ? d.getLastDescendant() : o.getLastDescendant(), n || (e === null ? o.select() : R(e) ? e.select() : e.selectNext()), r.length !== 0)
|
|
2512
2512
|
for (n = o, e = r.length - 1; 0 <= e; e--)
|
|
2513
|
-
i = r[e], a = i.getParentOrThrow(), !M(o) || tl(i) || J(i) && !i.isInline() ? M(o) || tl(i) ? M(i) && !i.canInsertAfter(o) ? (l = a.constructor.clone(a), M(l) ||
|
|
2513
|
+
i = r[e], a = i.getParentOrThrow(), !M(o) || tl(i) || J(i) && !i.isInline() ? M(o) || tl(i) ? M(i) && !i.canInsertAfter(o) ? (l = a.constructor.clone(a), M(l) || L(29), l.append(i), o.insertAfter(l)) : o.insertAfter(i) : (o.insertBefore(i), o = i) : (n === o ? o.append(i) : o.insertBefore(i), o = i), a.isEmpty() && !a.canBeEmpty() && a.remove();
|
|
2514
2514
|
} else
|
|
2515
|
-
n || (
|
|
2515
|
+
n || (R(o) ? o.select() : (r = o.getParentOrThrow(), o = o.getIndexWithinParent() + 1, r.select(o, o)));
|
|
2516
2516
|
return !0;
|
|
2517
2517
|
}
|
|
2518
2518
|
insertParagraph() {
|
|
@@ -2560,11 +2560,11 @@ class At {
|
|
|
2560
2560
|
let l = this.focus;
|
|
2561
2561
|
var o = e[0];
|
|
2562
2562
|
let s = e[r], [a, u] = Wn(this);
|
|
2563
|
-
return n === 0 ? [] : n === 1 ?
|
|
2563
|
+
return n === 0 ? [] : n === 1 ? R(o) && !this.isCollapsed() ? (e = a > u ? u : a, r = o.splitText(e, a > u ? a : u), e = e === 0 ? r[0] : r[1], e != null ? [e] : []) : [o] : (n = i.isBefore(l), R(o) && (i = n ? a : u, i === o.getTextContentSize() ? e.shift() : i !== 0 && ([, o] = o.splitText(i), e[0] = o)), R(s) && (o = s.getTextContent().length, n = n ? u : a, n === 0 ? e.pop() : n !== o && ([s] = s.splitText(n), e[r] = s)), e);
|
|
2564
2564
|
}
|
|
2565
2565
|
modify(e, n, r) {
|
|
2566
2566
|
var i = this.focus, l = this.anchor, o = e === "move", s = Ao(i, n);
|
|
2567
|
-
J(s) && !s.isIsolated() ? o ? (o = Go(), o.add(s.__key), Ot(o)) : (e = n ? s.getPreviousSibling() : s.getNextSibling(),
|
|
2567
|
+
J(s) && !s.isIsolated() ? o ? (o = Go(), o.add(s.__key), Ot(o)) : (e = n ? s.getPreviousSibling() : s.getNextSibling(), R(e) ? (s = e.__key, n = n ? e.getTextContent().length : 0, i.set(s, n, "text"), o && l.set(s, n, "text")) : (r = s.getParentOrThrow(), M(e) ? (r = e.__key, s = n ? e.getChildrenSize() : 0) : (s = s.getIndexWithinParent(), r = r.__key, n || s++), i.set(r, s, "element"), o && l.set(r, s, "element"))) : (i = window.getSelection()) && (i.modify(e, n ? "backward" : "forward", r), 0 < i.rangeCount && (n = i.getRangeAt(0), this.applyDOMRange(n), this.dirty = !0, o || i.anchorNode === n.startContainer && i.anchorOffset === n.startOffset || (o = this.focus, n = this.anchor, i = n.key, l = n.offset, s = n.type, We(n, o.key, o.offset, o.type), We(o, i, l, s), this._cachedNodes = null)));
|
|
2568
2568
|
}
|
|
2569
2569
|
deleteCharacter(e) {
|
|
2570
2570
|
if (this.isCollapsed()) {
|
|
@@ -2628,21 +2628,21 @@ function qi(t, e, n) {
|
|
|
2628
2628
|
if (t.nodeType === 1) {
|
|
2629
2629
|
let o = !1;
|
|
2630
2630
|
var i = t.childNodes, l = i.length;
|
|
2631
|
-
if (r === l && (o = !0, r = l - 1), i = vt(i[r]),
|
|
2631
|
+
if (r === l && (o = !0, r = l - 1), i = vt(i[r]), R(i))
|
|
2632
2632
|
r = o ? i.getTextContentSize() : 0;
|
|
2633
2633
|
else {
|
|
2634
2634
|
if (l = vt(t), l === null)
|
|
2635
2635
|
return null;
|
|
2636
|
-
if (M(l) ? (t = l.getChildAtIndex(r), (e = M(t)) && (e = t.getParent(), e = n === null || e === null || !e.canBeEmpty() || e !== n.getNode()), e && (n = o ? t.getLastDescendant() : t.getFirstDescendant(), n === null ? (l = t, r = 0) : (t = n, l = t.getParentOrThrow())),
|
|
2636
|
+
if (M(l) ? (t = l.getChildAtIndex(r), (e = M(t)) && (e = t.getParent(), e = n === null || e === null || !e.canBeEmpty() || e !== n.getNode()), e && (n = o ? t.getLastDescendant() : t.getFirstDescendant(), n === null ? (l = t, r = 0) : (t = n, l = t.getParentOrThrow())), R(t) ? (i = t, l = null, r = o ? t.getTextContentSize() : 0) : t !== l && o && r++) : (r = l.getIndexWithinParent(), r = e === 0 && J(l) && vt(t) === l ? r : r + 1, l = l.getParentOrThrow()), M(l))
|
|
2637
2637
|
return new De(l.__key, r, "element");
|
|
2638
2638
|
}
|
|
2639
2639
|
} else
|
|
2640
2640
|
i = vt(t);
|
|
2641
|
-
return
|
|
2641
|
+
return R(i) ? new De(i.__key, r, "text") : null;
|
|
2642
2642
|
}
|
|
2643
2643
|
function el(t, e, n) {
|
|
2644
2644
|
var r = t.offset, i = t.getNode();
|
|
2645
|
-
r === 0 ? (r = i.getPreviousSibling(), i = i.getParent(), e ? (n || !e) && r === null && M(i) && i.isInline() && (e = i.getPreviousSibling(),
|
|
2645
|
+
r === 0 ? (r = i.getPreviousSibling(), i = i.getParent(), e ? (n || !e) && r === null && M(i) && i.isInline() && (e = i.getPreviousSibling(), R(e) && (t.key = e.__key, t.offset = e.getTextContent().length)) : M(r) && !n && r.isInline() ? (t.key = r.__key, t.offset = r.getChildrenSize(), t.type = "element") : R(r) && (t.key = r.__key, t.offset = r.getTextContent().length)) : r === i.getTextContent().length && (r = i.getNextSibling(), i = i.getParent(), e && M(r) && r.isInline() ? (t.key = r.__key, t.offset = 0, t.type = "element") : (n || e) && r === null && M(i) && i.isInline() && !i.canInsertTextAfter() && (e = i.getNextSibling(), R(e) && (t.key = e.__key, t.offset = 0)));
|
|
2646
2646
|
}
|
|
2647
2647
|
function Wo(t, e, n) {
|
|
2648
2648
|
if (t.type === "text" && e.type === "text") {
|
|
@@ -2710,13 +2710,13 @@ function nl(t) {
|
|
|
2710
2710
|
let r = t.focus;
|
|
2711
2711
|
var i = r.offset, l = e.getNode(), o = r.getNode();
|
|
2712
2712
|
if (t.isCollapsed())
|
|
2713
|
-
M(l) && (o = l.getChildrenSize(), o = (i = n >= o) ? l.getChildAtIndex(o - 1) : l.getChildAtIndex(n),
|
|
2713
|
+
M(l) && (o = l.getChildrenSize(), o = (i = n >= o) ? l.getChildAtIndex(o - 1) : l.getChildAtIndex(n), R(o) && (n = 0, i && (n = o.getTextContentSize()), e.set(o.__key, n, "text"), r.set(o.__key, n, "text")));
|
|
2714
2714
|
else {
|
|
2715
2715
|
if (M(l)) {
|
|
2716
2716
|
let s = l.getChildrenSize();
|
|
2717
|
-
n = (t = n >= s) ? l.getChildAtIndex(s - 1) : l.getChildAtIndex(n),
|
|
2717
|
+
n = (t = n >= s) ? l.getChildAtIndex(s - 1) : l.getChildAtIndex(n), R(n) && (l = 0, t && (l = n.getTextContentSize()), e.set(n.__key, l, "text"));
|
|
2718
2718
|
}
|
|
2719
|
-
M(o) && (n = o.getChildrenSize(), i = (e = i >= n) ? o.getChildAtIndex(n - 1) : o.getChildAtIndex(i),
|
|
2719
|
+
M(o) && (n = o.getChildrenSize(), i = (e = i >= n) ? o.getChildAtIndex(n - 1) : o.getChildAtIndex(i), R(i) && (o = 0, e && (o = i.getTextContentSize()), r.set(i.__key, o, "text")));
|
|
2720
2720
|
}
|
|
2721
2721
|
}
|
|
2722
2722
|
function H1(t, e) {
|
|
@@ -2728,31 +2728,31 @@ function H1(t, e) {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
function Xn(t, e, n, r, i) {
|
|
2730
2730
|
let l = null, o = 0, s = null;
|
|
2731
|
-
r !== null ? (l = r.__key,
|
|
2731
|
+
r !== null ? (l = r.__key, R(r) ? (o = r.getTextContentSize(), s = "text") : M(r) && (o = r.getChildrenSize(), s = "element")) : i !== null && (l = i.__key, R(i) ? s = "text" : M(i) && (s = "element")), l !== null && s !== null ? t.set(l, o, s) : (o = e.getIndexWithinParent(), o === -1 && (o = n.getChildrenSize()), t.set(n.__key, o, "element"));
|
|
2732
2732
|
}
|
|
2733
2733
|
function rl(t, e, n, r, i) {
|
|
2734
2734
|
t.type === "text" ? (t.key = n, e || (t.offset += i)) : t.offset > r.getIndexWithinParent() && --t.offset;
|
|
2735
2735
|
}
|
|
2736
2736
|
let de = null, ie = null, Q = !1, Or = !1, dn = 0;
|
|
2737
2737
|
function Ce() {
|
|
2738
|
-
Q &&
|
|
2738
|
+
Q && L(13);
|
|
2739
2739
|
}
|
|
2740
2740
|
function ke() {
|
|
2741
|
-
return de === null &&
|
|
2741
|
+
return de === null && L(15), de;
|
|
2742
2742
|
}
|
|
2743
2743
|
function q() {
|
|
2744
|
-
return ie === null &&
|
|
2744
|
+
return ie === null && L(16), ie;
|
|
2745
2745
|
}
|
|
2746
2746
|
function il(t, e, n) {
|
|
2747
2747
|
var r = e.__type;
|
|
2748
2748
|
let i = t._nodes.get(r);
|
|
2749
|
-
for (i === void 0 &&
|
|
2749
|
+
for (i === void 0 && L(30), t = n.get(r), t === void 0 && (t = Array.from(i.transforms), n.set(r, t)), n = t.length, r = 0; r < n && (t[r](e), e.isAttached()); r++)
|
|
2750
2750
|
;
|
|
2751
2751
|
}
|
|
2752
2752
|
function K1(t, e) {
|
|
2753
2753
|
e = e._dirtyLeaves, t = t._nodeMap;
|
|
2754
2754
|
for (let n of e)
|
|
2755
|
-
e = t.get(n),
|
|
2755
|
+
e = t.get(n), R(e) && e.isAttached() && e.isSimpleText() && !e.isUnmergeable() && Do(e);
|
|
2756
2756
|
}
|
|
2757
2757
|
function U1(t, e) {
|
|
2758
2758
|
let n = e._dirtyLeaves, r = e._dirtyElements;
|
|
@@ -2764,7 +2764,7 @@ function U1(t, e) {
|
|
|
2764
2764
|
if (0 < s) {
|
|
2765
2765
|
e._dirtyLeaves = /* @__PURE__ */ new Set();
|
|
2766
2766
|
for (let d of o)
|
|
2767
|
-
o = t.get(d),
|
|
2767
|
+
o = t.get(d), R(o) && o.isAttached() && o.isSimpleText() && !o.isUnmergeable() && Do(o), o !== void 0 && o !== void 0 && o.__key !== i && o.isAttached() && il(e, o, l), n.add(d);
|
|
2768
2768
|
if (o = e._dirtyLeaves, s = o.size, 0 < s) {
|
|
2769
2769
|
dn++;
|
|
2770
2770
|
continue;
|
|
@@ -2779,7 +2779,7 @@ function U1(t, e) {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
function Ni(t, e) {
|
|
2781
2781
|
var n = e.get(t.type);
|
|
2782
|
-
if (n === void 0 &&
|
|
2782
|
+
if (n === void 0 && L(17), n = n.klass, t.type !== n.getType() && L(18), n = n.importJSON(t), t = t.children, M(n) && Array.isArray(t))
|
|
2783
2783
|
for (let r = 0; r < t.length; r++) {
|
|
2784
2784
|
let i = Ni(t[r], e);
|
|
2785
2785
|
n.append(i);
|
|
@@ -2798,14 +2798,14 @@ function ll(t, e) {
|
|
|
2798
2798
|
function ot(t) {
|
|
2799
2799
|
var e = t._pendingEditorState, n = t._rootElement, r = t._headless;
|
|
2800
2800
|
if ((n !== null || r) && e !== null) {
|
|
2801
|
-
var i = t._editorState, l = i._selection, o = e._selection, s = t._dirtyType !== 0, a = de, u = Q, d = ie, c = t._updating, g = t._observer,
|
|
2801
|
+
var i = t._editorState, l = i._selection, o = e._selection, s = t._dirtyType !== 0, a = de, u = Q, d = ie, c = t._updating, g = t._observer, p = null;
|
|
2802
2802
|
if (t._pendingEditorState = null, t._editorState = e, !r && s && g !== null) {
|
|
2803
2803
|
ie = t, de = e, Q = !1, t._updating = !0;
|
|
2804
2804
|
try {
|
|
2805
|
-
var
|
|
2806
|
-
g.disconnect(), fe = be = re = "", ko =
|
|
2805
|
+
var f = t._dirtyType, v = t._dirtyElements, x = t._dirtyLeaves;
|
|
2806
|
+
g.disconnect(), fe = be = re = "", ko = f === 2, Hn = null, he = t, ut = t._config, on = t._nodes, fr = he._listeners.mutation, Gr = v, jr = x, sn = i._nodeMap, wt = e._nodeMap, Ei = e._readOnly, Zr = new Map(t._keyToDOMMap);
|
|
2807
2807
|
var S = /* @__PURE__ */ new Map();
|
|
2808
|
-
an = S, Wt("root", null), an = Zr = ut = wt = sn = jr = Gr = on = he = void 0,
|
|
2808
|
+
an = S, Wt("root", null), an = Zr = ut = wt = sn = jr = Gr = on = he = void 0, p = S;
|
|
2809
2809
|
} catch (Te) {
|
|
2810
2810
|
if (Te instanceof Error && t._onError(Te), Or)
|
|
2811
2811
|
throw Te;
|
|
@@ -2815,21 +2815,21 @@ function ot(t) {
|
|
|
2815
2815
|
g.observe(n, { characterData: !0, childList: !0, subtree: !0 }), t._updating = c, de = a, Q = u, ie = d;
|
|
2816
2816
|
}
|
|
2817
2817
|
}
|
|
2818
|
-
e._readOnly || (e._readOnly = !0), c = t._dirtyLeaves, g = t._dirtyElements, S = t._normalizedNodes,
|
|
2819
|
-
var
|
|
2818
|
+
e._readOnly || (e._readOnly = !0), c = t._dirtyLeaves, g = t._dirtyElements, S = t._normalizedNodes, f = t._updateTags, u = t._deferred, s && (t._dirtyType = 0, t._cloneNotNeeded.clear(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._dirtyElements = /* @__PURE__ */ new Map(), t._normalizedNodes = /* @__PURE__ */ new Set(), t._updateTags = /* @__PURE__ */ new Set()), x = t._decorators, v = t._pendingDecorators || x;
|
|
2819
|
+
var m = e._nodeMap;
|
|
2820
2820
|
for (He in v)
|
|
2821
|
-
|
|
2821
|
+
m.has(He) || (v === x && (v = So(t)), delete v[He]);
|
|
2822
2822
|
if (r = r ? null : window.getSelection(), t._editable && r !== null && (s || o === null || o.dirty)) {
|
|
2823
2823
|
ie = t, de = e;
|
|
2824
2824
|
try {
|
|
2825
2825
|
e: {
|
|
2826
2826
|
let Te = r.anchorNode, Ke = r.focusNode, On = r.anchorOffset, ne = r.focusOffset, ce = document.activeElement;
|
|
2827
|
-
if (!
|
|
2827
|
+
if (!f.has("collaboration") || ce === n)
|
|
2828
2828
|
if (b(o)) {
|
|
2829
|
-
var _ = o.anchor, E = o.focus, N = _.key, w = E.key,
|
|
2830
|
-
s =
|
|
2829
|
+
var _ = o.anchor, E = o.focus, N = _.key, w = E.key, A = Zn(t, N), P = Zn(t, w), k = _.offset, U = E.offset, Z = o.format, $e = o.isCollapsed();
|
|
2830
|
+
s = A, w = P;
|
|
2831
2831
|
var He = !1;
|
|
2832
|
-
if (_.type === "text" && (s = jn(
|
|
2832
|
+
if (_.type === "text" && (s = jn(A), He = _.getNode().getFormat() !== Z), E.type === "text" && (w = jn(P)), s !== null && w !== null) {
|
|
2833
2833
|
if ($e && (l === null || He || b(l) && l.format !== Z)) {
|
|
2834
2834
|
var $n = performance.now();
|
|
2835
2835
|
Ho = [Z, k, N, $n];
|
|
@@ -2854,7 +2854,7 @@ function ot(t) {
|
|
|
2854
2854
|
let An = n.getBoundingClientRect();
|
|
2855
2855
|
Math.floor(X.bottom) > Math.floor(An.bottom) ? Oe.scrollIntoView(!1) : Math.floor(X.top) < Math.floor(An.top) && Oe.scrollIntoView();
|
|
2856
2856
|
}
|
|
2857
|
-
|
|
2857
|
+
f.add("scroll-into-view");
|
|
2858
2858
|
}
|
|
2859
2859
|
}
|
|
2860
2860
|
ei = !0;
|
|
@@ -2868,12 +2868,12 @@ function ot(t) {
|
|
|
2868
2868
|
ie = d, de = a;
|
|
2869
2869
|
}
|
|
2870
2870
|
}
|
|
2871
|
-
if (
|
|
2872
|
-
for (n =
|
|
2871
|
+
if (p !== null)
|
|
2872
|
+
for (n = p, l = Array.from(t._listeners.mutation), o = l.length, a = 0; a < o; a++) {
|
|
2873
2873
|
let [Te, Ke] = l[a];
|
|
2874
|
-
d = n.get(Ke), d !== void 0 && Te(d, { dirtyLeaves: c, updateTags:
|
|
2874
|
+
d = n.get(Ke), d !== void 0 && Te(d, { dirtyLeaves: c, updateTags: f });
|
|
2875
2875
|
}
|
|
2876
|
-
if (n = t._pendingDecorators, n !== null && (t._decorators = n, t._pendingDecorators = null, Xt("decorator", t, !0, n)), n = Hi(i), l = Hi(e), n !== l && Xt("textcontent", t, !0, l), Xt("update", t, !0, { dirtyElements: g, dirtyLeaves: c, editorState: e, normalizedNodes: S, prevEditorState: i, tags:
|
|
2876
|
+
if (n = t._pendingDecorators, n !== null && (t._decorators = n, t._pendingDecorators = null, Xt("decorator", t, !0, n)), n = Hi(i), l = Hi(e), n !== l && Xt("textcontent", t, !0, l), Xt("update", t, !0, { dirtyElements: g, dirtyLeaves: c, editorState: e, normalizedNodes: S, prevEditorState: i, tags: f }), t._deferred = [], u.length !== 0) {
|
|
2877
2877
|
e = t._updating, t._updating = !0;
|
|
2878
2878
|
try {
|
|
2879
2879
|
for (i = 0; i < u.length; i++)
|
|
@@ -2899,11 +2899,11 @@ function Xt(t, e, n, ...r) {
|
|
|
2899
2899
|
e._updating = i;
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function O(t, e, n) {
|
|
2903
2903
|
if (t._updating === !1 || ie !== t) {
|
|
2904
2904
|
let l = !1;
|
|
2905
2905
|
return t.update(() => {
|
|
2906
|
-
l =
|
|
2906
|
+
l = O(t, e, n);
|
|
2907
2907
|
}), l;
|
|
2908
2908
|
}
|
|
2909
2909
|
let r = vi(t);
|
|
@@ -2949,8 +2949,8 @@ function Zo(t, e, n) {
|
|
|
2949
2949
|
e(), i = ol(t, i), H1(l, t), t._dirtyType !== 0 && (i ? K1(l, t) : U1(l, t), ol(t), O1(n, l, t._dirtyLeaves, t._dirtyElements)), c !== t._compositionKey && (l._flushSync = !0);
|
|
2950
2950
|
let g = l._selection;
|
|
2951
2951
|
if (b(g)) {
|
|
2952
|
-
let
|
|
2953
|
-
|
|
2952
|
+
let p = l._nodeMap, f = g.focus.key;
|
|
2953
|
+
p.get(g.anchor.key) !== void 0 && p.get(f) !== void 0 || L(19);
|
|
2954
2954
|
} else
|
|
2955
2955
|
_n(g) && g._nodes.size === 0 && (l._selection = null);
|
|
2956
2956
|
} catch (c) {
|
|
@@ -2977,24 +2977,24 @@ function ri(t, e, n) {
|
|
|
2977
2977
|
let a = l.focus;
|
|
2978
2978
|
s.key === r && (Xn(s, t, i, t.getPreviousSibling(), t.getNextSibling()), o = !0), a.key === r && (Xn(a, t, i, t.getPreviousSibling(), t.getNextSibling()), o = !0);
|
|
2979
2979
|
}
|
|
2980
|
-
s = i.getWritable().__children, r = s.indexOf(r), r === -1 &&
|
|
2980
|
+
s = i.getWritable().__children, r = s.indexOf(r), r === -1 && L(31), Et(t), s.splice(r, 1), t.getWritable().__parent = null, b(l) && e && !o && Jn(l, i, r, -1), n || Ge(i) || i.canBeEmpty() || !i.isEmpty() || ri(i, e), Ie(i) && i.isEmpty() && i.selectEnd();
|
|
2981
2981
|
}
|
|
2982
2982
|
}
|
|
2983
2983
|
function sl(t) {
|
|
2984
|
-
return t = Y(t), t === null &&
|
|
2984
|
+
return t = Y(t), t === null && L(63), t;
|
|
2985
2985
|
}
|
|
2986
2986
|
class mr {
|
|
2987
2987
|
static getType() {
|
|
2988
|
-
|
|
2988
|
+
L(64);
|
|
2989
2989
|
}
|
|
2990
2990
|
static clone() {
|
|
2991
|
-
|
|
2991
|
+
L(65);
|
|
2992
2992
|
}
|
|
2993
2993
|
constructor(e) {
|
|
2994
2994
|
if (this.__type = this.constructor.getType(), this.__parent = null, e != null)
|
|
2995
2995
|
this.__key = e;
|
|
2996
2996
|
else {
|
|
2997
|
-
Ce(), 99 < dn &&
|
|
2997
|
+
Ce(), 99 < dn && L(14), e = q();
|
|
2998
2998
|
var n = ke(), r = "" + T1++;
|
|
2999
2999
|
n._nodeMap.set(r, this), M(this) ? e._dirtyElements.set(r, !0) : e._dirtyLeaves.add(r), e._cloneNotNeeded.add(r), e._dirtyType = 1, this.__key = r;
|
|
3000
3000
|
}
|
|
@@ -3017,7 +3017,7 @@ class mr {
|
|
|
3017
3017
|
if (e == null)
|
|
3018
3018
|
return !1;
|
|
3019
3019
|
let n = e.getNodes().some((r) => r.__key === this.__key);
|
|
3020
|
-
return
|
|
3020
|
+
return R(this) ? n : b(e) && e.anchor.type === "element" && e.focus.type === "element" && e.anchor.key === e.focus.key && e.anchor.offset === e.focus.offset ? !1 : n;
|
|
3021
3021
|
}
|
|
3022
3022
|
getKey() {
|
|
3023
3023
|
return this.__key;
|
|
@@ -3032,7 +3032,7 @@ class mr {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
getParentOrThrow() {
|
|
3034
3034
|
let e = this.getParent();
|
|
3035
|
-
return e === null &&
|
|
3035
|
+
return e === null && L(66), e;
|
|
3036
3036
|
}
|
|
3037
3037
|
getTopLevelElement() {
|
|
3038
3038
|
let e = this;
|
|
@@ -3046,7 +3046,7 @@ class mr {
|
|
|
3046
3046
|
}
|
|
3047
3047
|
getTopLevelElementOrThrow() {
|
|
3048
3048
|
let e = this.getTopLevelElement();
|
|
3049
|
-
return e === null &&
|
|
3049
|
+
return e === null && L(67), e;
|
|
3050
3050
|
}
|
|
3051
3051
|
getParents() {
|
|
3052
3052
|
let e = [], n = this.getParent();
|
|
@@ -3159,7 +3159,7 @@ class mr {
|
|
|
3159
3159
|
break;
|
|
3160
3160
|
o = l;
|
|
3161
3161
|
do
|
|
3162
|
-
o === null &&
|
|
3162
|
+
o === null && L(68), l = n ? o.getNextSibling() : o.getPreviousSibling(), o = o.getParent(), o !== null && (l !== null || i.has(o.__key) || r.push(o));
|
|
3163
3163
|
while (l === null);
|
|
3164
3164
|
}
|
|
3165
3165
|
}
|
|
@@ -3171,7 +3171,7 @@ class mr {
|
|
|
3171
3171
|
}
|
|
3172
3172
|
getLatest() {
|
|
3173
3173
|
let e = Y(this.__key);
|
|
3174
|
-
return e === null &&
|
|
3174
|
+
return e === null && L(69), e;
|
|
3175
3175
|
}
|
|
3176
3176
|
getWritable() {
|
|
3177
3177
|
Ce();
|
|
@@ -3180,7 +3180,7 @@ class mr {
|
|
|
3180
3180
|
let r = this.__key, i = this.getLatest(), l = i.__parent;
|
|
3181
3181
|
n = n._cloneNotNeeded;
|
|
3182
3182
|
var o = G();
|
|
3183
|
-
return o !== null && (o._cachedNodes = null), n.has(r) ? (St(i), i) : (o = i.constructor.clone(i), o.__parent = l, M(i) && M(o) ? (o.__children = Array.from(i.__children), o.__indent = i.__indent, o.__format = i.__format, o.__dir = i.__dir) :
|
|
3183
|
+
return o !== null && (o._cachedNodes = null), n.has(r) ? (St(i), i) : (o = i.constructor.clone(i), o.__parent = l, M(i) && M(o) ? (o.__children = Array.from(i.__children), o.__indent = i.__indent, o.__format = i.__format, o.__dir = i.__dir) : R(i) && R(o) && (o.__format = i.__format, o.__style = i.__style, o.__mode = i.__mode, o.__detail = i.__detail), n.add(r), o.__key = r, St(o), e.set(r, o), o);
|
|
3184
3184
|
}
|
|
3185
3185
|
getTextContent() {
|
|
3186
3186
|
return "";
|
|
@@ -3189,19 +3189,19 @@ class mr {
|
|
|
3189
3189
|
return this.getTextContent().length;
|
|
3190
3190
|
}
|
|
3191
3191
|
createDOM() {
|
|
3192
|
-
|
|
3192
|
+
L(70);
|
|
3193
3193
|
}
|
|
3194
3194
|
updateDOM() {
|
|
3195
|
-
|
|
3195
|
+
L(71);
|
|
3196
3196
|
}
|
|
3197
3197
|
exportDOM(e) {
|
|
3198
3198
|
return { element: this.createDOM(e._config, e) };
|
|
3199
3199
|
}
|
|
3200
3200
|
exportJSON() {
|
|
3201
|
-
|
|
3201
|
+
L(72);
|
|
3202
3202
|
}
|
|
3203
3203
|
static importJSON() {
|
|
3204
|
-
|
|
3204
|
+
L(18);
|
|
3205
3205
|
}
|
|
3206
3206
|
remove(e) {
|
|
3207
3207
|
ri(this, !0, e);
|
|
@@ -3212,7 +3212,7 @@ class mr {
|
|
|
3212
3212
|
e = e.getWritable(), Bn(e);
|
|
3213
3213
|
var r = this.getParentOrThrow(), i = r.getWritable().__children;
|
|
3214
3214
|
let l = i.indexOf(this.__key), o = e.__key;
|
|
3215
|
-
return l === -1 &&
|
|
3215
|
+
return l === -1 && L(31), i.splice(l, 0, o), e.__parent = r.__key, ri(this, !1), Et(e), i = G(), b(i) && (r = i.anchor, i = i.focus, r.key === n && Zi(r, e), i.key === n && Zi(i, e)), Ye() === n && le(o), e;
|
|
3216
3216
|
}
|
|
3217
3217
|
insertAfter(e) {
|
|
3218
3218
|
Ce();
|
|
@@ -3221,7 +3221,7 @@ class mr {
|
|
|
3221
3221
|
var o = e.getIndexWithinParent(), s = !1, a = !1;
|
|
3222
3222
|
i !== null && (Bn(r), b(l) && (a = i.__key, s = l.anchor, i = l.focus, s = s.type === "element" && s.key === a && s.offset === o + 1, a = i.type === "element" && i.key === a && i.offset === o + 1)), o = this.getParentOrThrow().getWritable(), i = r.__key, r.__parent = n.__parent;
|
|
3223
3223
|
let u = o.__children;
|
|
3224
|
-
return n = u.indexOf(n.__key), n === -1 &&
|
|
3224
|
+
return n = u.indexOf(n.__key), n === -1 && L(31), u.splice(n + 1, 0, i), Et(r), b(l) && (Jn(l, o, n + 1), r = o.__key, s && l.anchor.set(r, n + 2, "element"), a && l.focus.set(r, n + 2, "element")), e;
|
|
3225
3225
|
}
|
|
3226
3226
|
insertBefore(e) {
|
|
3227
3227
|
var n = this.getWritable(), r = e.getWritable();
|
|
@@ -3229,17 +3229,17 @@ class mr {
|
|
|
3229
3229
|
let i = this.getParentOrThrow().getWritable(), l = r.__key;
|
|
3230
3230
|
r.__parent = n.__parent;
|
|
3231
3231
|
let o = i.__children;
|
|
3232
|
-
return n = o.indexOf(n.__key), n === -1 &&
|
|
3232
|
+
return n = o.indexOf(n.__key), n === -1 && L(31), o.splice(n, 0, l), Et(r), r = G(), b(r) && Jn(r, i, n), e;
|
|
3233
3233
|
}
|
|
3234
3234
|
selectPrevious(e, n) {
|
|
3235
3235
|
Ce();
|
|
3236
3236
|
let r = this.getPreviousSibling(), i = this.getParentOrThrow();
|
|
3237
|
-
return r === null ? i.select(0, 0) : M(r) ? r.select() :
|
|
3237
|
+
return r === null ? i.select(0, 0) : M(r) ? r.select() : R(r) ? r.select(e, n) : (e = r.getIndexWithinParent() + 1, i.select(e, e));
|
|
3238
3238
|
}
|
|
3239
3239
|
selectNext(e, n) {
|
|
3240
3240
|
Ce();
|
|
3241
3241
|
let r = this.getNextSibling(), i = this.getParentOrThrow();
|
|
3242
|
-
return r === null ? i.select() : M(r) ? r.select(0, 0) :
|
|
3242
|
+
return r === null ? i.select() : M(r) ? r.select(0, 0) : R(r) ? r.select(e, n) : (e = r.getIndexWithinParent(), i.select(e, e));
|
|
3243
3243
|
}
|
|
3244
3244
|
markDirty() {
|
|
3245
3245
|
this.getWritable();
|
|
@@ -3250,7 +3250,7 @@ class Jo extends mr {
|
|
|
3250
3250
|
super(e);
|
|
3251
3251
|
}
|
|
3252
3252
|
decorate() {
|
|
3253
|
-
|
|
3253
|
+
L(47);
|
|
3254
3254
|
}
|
|
3255
3255
|
isIsolated() {
|
|
3256
3256
|
return !1;
|
|
@@ -3305,7 +3305,7 @@ class pt extends mr {
|
|
|
3305
3305
|
let e = [], n = this.getLatest().__children;
|
|
3306
3306
|
for (let i = 0; i < n.length; i++) {
|
|
3307
3307
|
var r = Y(n[i]);
|
|
3308
|
-
|
|
3308
|
+
R(r) ? e.push(r) : M(r) && (r = r.getAllTextNodes(), e.push(...r));
|
|
3309
3309
|
}
|
|
3310
3310
|
return e;
|
|
3311
3311
|
}
|
|
@@ -3347,7 +3347,7 @@ class pt extends mr {
|
|
|
3347
3347
|
}
|
|
3348
3348
|
getFirstChildOrThrow() {
|
|
3349
3349
|
let e = this.getFirstChild();
|
|
3350
|
-
return e === null &&
|
|
3350
|
+
return e === null && L(45), e;
|
|
3351
3351
|
}
|
|
3352
3352
|
getLastChild() {
|
|
3353
3353
|
let e = this.getLatest().__children, n = e.length;
|
|
@@ -3390,11 +3390,11 @@ class pt extends mr {
|
|
|
3390
3390
|
}
|
|
3391
3391
|
selectStart() {
|
|
3392
3392
|
let e = this.getFirstDescendant();
|
|
3393
|
-
return M(e) ||
|
|
3393
|
+
return M(e) || R(e) ? e.select(0, 0) : e !== null ? e.selectPrevious() : this.select(0, 0);
|
|
3394
3394
|
}
|
|
3395
3395
|
selectEnd() {
|
|
3396
3396
|
let e = this.getLastDescendant();
|
|
3397
|
-
return M(e) ||
|
|
3397
|
+
return M(e) || R(e) ? e.select() : e !== null ? e.selectNext() : this.select();
|
|
3398
3398
|
}
|
|
3399
3399
|
clear() {
|
|
3400
3400
|
let e = this.getWritable();
|
|
@@ -3424,7 +3424,7 @@ class pt extends mr {
|
|
|
3424
3424
|
var a = [];
|
|
3425
3425
|
for (let u = 0; u < s; u++) {
|
|
3426
3426
|
let d = r[u], c = d.getWritable();
|
|
3427
|
-
d.__key === l &&
|
|
3427
|
+
d.__key === l && L(76), Bn(c), c.__parent = l, a.push(c.__key);
|
|
3428
3428
|
}
|
|
3429
3429
|
if ((r = this.getChildAtIndex(e - 1)) && St(r), (l = this.getChildAtIndex(e + n)) && St(l), e === o.length ? (o.push(...a), e = []) : e = o.splice(
|
|
3430
3430
|
e,
|
|
@@ -3432,12 +3432,12 @@ class pt extends mr {
|
|
|
3432
3432
|
...a
|
|
3433
3433
|
), e.length && (n = G(), b(n))) {
|
|
3434
3434
|
let u = new Set(e), d = new Set(a);
|
|
3435
|
-
a = (
|
|
3436
|
-
for (
|
|
3437
|
-
const
|
|
3438
|
-
if (u.has(
|
|
3435
|
+
a = (p) => {
|
|
3436
|
+
for (p = p.getNode(); p; ) {
|
|
3437
|
+
const f = p.__key;
|
|
3438
|
+
if (u.has(f) && !d.has(f))
|
|
3439
3439
|
return !0;
|
|
3440
|
-
|
|
3440
|
+
p = p.getParent();
|
|
3441
3441
|
}
|
|
3442
3442
|
return !1;
|
|
3443
3443
|
};
|
|
@@ -3518,23 +3518,23 @@ class Rt extends pt {
|
|
|
3518
3518
|
super("root"), this.__cachedText = null;
|
|
3519
3519
|
}
|
|
3520
3520
|
getTopLevelElementOrThrow() {
|
|
3521
|
-
|
|
3521
|
+
L(51);
|
|
3522
3522
|
}
|
|
3523
3523
|
getTextContent() {
|
|
3524
3524
|
let e = this.__cachedText;
|
|
3525
3525
|
return !Q && q()._dirtyType !== 0 || e === null ? super.getTextContent() : e;
|
|
3526
3526
|
}
|
|
3527
3527
|
remove() {
|
|
3528
|
-
|
|
3528
|
+
L(52);
|
|
3529
3529
|
}
|
|
3530
3530
|
replace() {
|
|
3531
|
-
|
|
3531
|
+
L(53);
|
|
3532
3532
|
}
|
|
3533
3533
|
insertBefore() {
|
|
3534
|
-
|
|
3534
|
+
L(54);
|
|
3535
3535
|
}
|
|
3536
3536
|
insertAfter() {
|
|
3537
|
-
|
|
3537
|
+
L(55);
|
|
3538
3538
|
}
|
|
3539
3539
|
updateDOM() {
|
|
3540
3540
|
return !1;
|
|
@@ -3542,7 +3542,7 @@ class Rt extends pt {
|
|
|
3542
3542
|
append(...e) {
|
|
3543
3543
|
for (let n = 0; n < e.length; n++) {
|
|
3544
3544
|
let r = e[n];
|
|
3545
|
-
M(r) || J(r) ||
|
|
3545
|
+
M(r) || J(r) || L(56);
|
|
3546
3546
|
}
|
|
3547
3547
|
return super.append(...e);
|
|
3548
3548
|
}
|
|
@@ -3570,10 +3570,10 @@ function Ti() {
|
|
|
3570
3570
|
}
|
|
3571
3571
|
function Xo(t) {
|
|
3572
3572
|
let e = t.exportJSON();
|
|
3573
|
-
e.type !== t.constructor.getType() &&
|
|
3573
|
+
e.type !== t.constructor.getType() && L(58);
|
|
3574
3574
|
let n = e.children;
|
|
3575
3575
|
if (M(t)) {
|
|
3576
|
-
Array.isArray(n) ||
|
|
3576
|
+
Array.isArray(n) || L(59), t = t.getChildren();
|
|
3577
3577
|
for (let r = 0; r < t.length; r++) {
|
|
3578
3578
|
let i = Xo(t[r]);
|
|
3579
3579
|
n.push(i);
|
|
@@ -3734,7 +3734,7 @@ class Dt extends mr {
|
|
|
3734
3734
|
let a = Ar(this, o);
|
|
3735
3735
|
var u = Rr(this, l);
|
|
3736
3736
|
let d = Rr(this, o);
|
|
3737
|
-
return (s === null ? u : s) !== (a === null ? d : a) ? !0 : s === a && u !== d ? (l = n.firstChild, l == null &&
|
|
3737
|
+
return (s === null ? u : s) !== (a === null ? d : a) ? !0 : s === a && u !== d ? (l = n.firstChild, l == null && L(48), e = s = document.createElement(d), Dr(i, e, this), r = r.theme.text, r !== void 0 && Lr(d, 0, o, e, r), n.replaceChild(s, l), !1) : (u = n, a !== null && s !== null && (u = n.firstChild, u == null && L(49)), Dr(i, u, this), r = r.theme.text, r !== void 0 && l !== o && Lr(d, l, o, u, r), o = this.__style, e.__style !== o && (n.style.cssText = o), !1);
|
|
3738
3738
|
}
|
|
3739
3739
|
static importDOM() {
|
|
3740
3740
|
return { "#text": () => ({ conversion: j1, priority: 0 }), b: () => ({ conversion: G1, priority: 0 }), code: () => ({ conversion: Ht, priority: 0 }), em: () => ({ conversion: Ht, priority: 0 }), i: () => ({ conversion: Ht, priority: 0 }), span: () => ({ conversion: Y1, priority: 0 }), strong: () => ({ conversion: Ht, priority: 0 }), u: () => ({ conversion: Ht, priority: 0 }) };
|
|
@@ -3815,23 +3815,23 @@ class Dt extends mr {
|
|
|
3815
3815
|
return [n];
|
|
3816
3816
|
var d = e[0];
|
|
3817
3817
|
r = n.getParentOrThrow(), u = r.__key;
|
|
3818
|
-
let c = n.getFormat(), g = n.getStyle(),
|
|
3819
|
-
s = !1, n.isSegmented() ? (a = ge(d), a.__parent = u, a.__format = c, a.__style = g, a.__detail =
|
|
3818
|
+
let c = n.getFormat(), g = n.getStyle(), p = n.__detail;
|
|
3819
|
+
s = !1, n.isSegmented() ? (a = ge(d), a.__parent = u, a.__format = c, a.__style = g, a.__detail = p, s = !0) : (a = n.getWritable(), a.__text = d), n = G(), a = [a], d = d.length;
|
|
3820
3820
|
for (let x = 1; x < o; x++) {
|
|
3821
|
-
var
|
|
3822
|
-
|
|
3823
|
-
let S =
|
|
3821
|
+
var f = e[x], v = f.length;
|
|
3822
|
+
f = ge(f).getWritable(), f.__format = c, f.__style = g, f.__detail = p;
|
|
3823
|
+
let S = f.__key;
|
|
3824
3824
|
if (v = d + v, b(n)) {
|
|
3825
|
-
let
|
|
3826
|
-
|
|
3825
|
+
let m = n.anchor, _ = n.focus;
|
|
3826
|
+
m.key === i && m.type === "text" && m.offset > d && m.offset <= v && (m.key = S, m.offset -= d, n.dirty = !0), _.key === i && _.type === "text" && _.offset > d && _.offset <= v && (_.key = S, _.offset -= d, n.dirty = !0);
|
|
3827
3827
|
}
|
|
3828
|
-
l === i && le(S), d = v,
|
|
3828
|
+
l === i && le(S), d = v, f.__parent = u, a.push(f);
|
|
3829
3829
|
}
|
|
3830
3830
|
return Et(this), l = r.getWritable().__children, i = l.indexOf(i), e = a.map((x) => x.__key), s ? (l.splice(i, 0, ...e), this.remove()) : l.splice(i, 1, ...e), b(n) && Jn(n, r, i, o - 1), a;
|
|
3831
3831
|
}
|
|
3832
3832
|
mergeWithSibling(e) {
|
|
3833
3833
|
var n = e === this.getPreviousSibling();
|
|
3834
|
-
n || e === this.getNextSibling() ||
|
|
3834
|
+
n || e === this.getNextSibling() || L(50);
|
|
3835
3835
|
var r = this.__key;
|
|
3836
3836
|
let i = e.__key, l = this.__text, o = l.length;
|
|
3837
3837
|
Ye() === i && le(r);
|
|
@@ -3848,11 +3848,11 @@ class Dt extends mr {
|
|
|
3848
3848
|
}
|
|
3849
3849
|
function Y1(t) {
|
|
3850
3850
|
let e = t.style.fontWeight === "700", n = t.style.textDecoration === "line-through", r = t.style.fontStyle === "italic", i = t.style.textDecoration === "underline", l = t.style.verticalAlign;
|
|
3851
|
-
return { forChild: (o) => (
|
|
3851
|
+
return { forChild: (o) => (R(o) && (e && o.toggleFormat("bold"), n && o.toggleFormat("strikethrough"), r && o.toggleFormat("italic"), i && o.toggleFormat("underline"), l === "sub" && o.toggleFormat("subscript"), l === "super" && o.toggleFormat("superscript")), o), node: null };
|
|
3852
3852
|
}
|
|
3853
3853
|
function G1(t) {
|
|
3854
3854
|
let e = t.style.fontWeight === "normal";
|
|
3855
|
-
return { forChild: (n) => (
|
|
3855
|
+
return { forChild: (n) => (R(n) && !e && n.toggleFormat("bold"), n), node: null };
|
|
3856
3856
|
}
|
|
3857
3857
|
function j1(t, e, n) {
|
|
3858
3858
|
return t = t.textContent || "", !n && /\n/.test(t) && (t = t.replace(/\r?\n/gm, " "), t.trim().length === 0) ? { node: null } : { node: ge(t) };
|
|
@@ -3860,12 +3860,12 @@ function j1(t, e, n) {
|
|
|
3860
3860
|
let Z1 = { code: "code", em: "italic", i: "italic", strong: "bold", u: "underline" };
|
|
3861
3861
|
function Ht(t) {
|
|
3862
3862
|
let e = Z1[t.nodeName.toLowerCase()];
|
|
3863
|
-
return e === void 0 ? { node: null } : { forChild: (n) => (
|
|
3863
|
+
return e === void 0 ? { node: null } : { forChild: (n) => (R(n) && n.toggleFormat(e), n), node: null };
|
|
3864
3864
|
}
|
|
3865
3865
|
function ge(t = "") {
|
|
3866
3866
|
return new Dt(t);
|
|
3867
3867
|
}
|
|
3868
|
-
function
|
|
3868
|
+
function R(t) {
|
|
3869
3869
|
return t instanceof Dt;
|
|
3870
3870
|
}
|
|
3871
3871
|
class kt extends pt {
|
|
@@ -3905,7 +3905,7 @@ class kt extends pt {
|
|
|
3905
3905
|
}
|
|
3906
3906
|
collapseAtStart() {
|
|
3907
3907
|
let e = this.getChildren();
|
|
3908
|
-
if (e.length === 0 ||
|
|
3908
|
+
if (e.length === 0 || R(e[0]) && e[0].getTextContent().trim() === "") {
|
|
3909
3909
|
if (this.getNextSibling() !== null)
|
|
3910
3910
|
return this.selectNext(), this.remove(), !0;
|
|
3911
3911
|
if (this.getPreviousSibling() !== null)
|
|
@@ -3975,18 +3975,18 @@ class Q1 {
|
|
|
3975
3975
|
};
|
|
3976
3976
|
}
|
|
3977
3977
|
registerCommand(e, n, r) {
|
|
3978
|
-
r === void 0 &&
|
|
3978
|
+
r === void 0 && L(35);
|
|
3979
3979
|
let i = this._commands;
|
|
3980
3980
|
i.has(e) || i.set(e, [/* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set()]);
|
|
3981
3981
|
let l = i.get(e);
|
|
3982
|
-
l === void 0 &&
|
|
3982
|
+
l === void 0 && L(36);
|
|
3983
3983
|
let o = l[r];
|
|
3984
3984
|
return o.add(n), () => {
|
|
3985
3985
|
o.delete(n), l.every((s) => s.size === 0) && i.delete(e);
|
|
3986
3986
|
};
|
|
3987
3987
|
}
|
|
3988
3988
|
registerMutationListener(e, n) {
|
|
3989
|
-
this._nodes.get(e.getType()) === void 0 &&
|
|
3989
|
+
this._nodes.get(e.getType()) === void 0 && L(37);
|
|
3990
3990
|
let r = this._listeners.mutation;
|
|
3991
3991
|
return r.set(n, e), () => {
|
|
3992
3992
|
r.delete(n);
|
|
@@ -3995,7 +3995,7 @@ class Q1 {
|
|
|
3995
3995
|
registerNodeTransform(e, n) {
|
|
3996
3996
|
e = e.getType();
|
|
3997
3997
|
let r = this._nodes.get(e);
|
|
3998
|
-
r === void 0 &&
|
|
3998
|
+
r === void 0 && L(37);
|
|
3999
3999
|
let i = r.transforms;
|
|
4000
4000
|
return i.add(n), w1(this, e), () => {
|
|
4001
4001
|
i.delete(n);
|
|
@@ -4010,7 +4010,7 @@ class Q1 {
|
|
|
4010
4010
|
return !0;
|
|
4011
4011
|
}
|
|
4012
4012
|
dispatchCommand(e, n) {
|
|
4013
|
-
return
|
|
4013
|
+
return O(this, e, n);
|
|
4014
4014
|
}
|
|
4015
4015
|
getDecorators() {
|
|
4016
4016
|
return this._decorators;
|
|
@@ -4048,7 +4048,7 @@ class Q1 {
|
|
|
4048
4048
|
return this._editorState;
|
|
4049
4049
|
}
|
|
4050
4050
|
setEditorState(e, n) {
|
|
4051
|
-
e.isEmpty() &&
|
|
4051
|
+
e.isEmpty() && L(38), Co(this);
|
|
4052
4052
|
let r = this._pendingEditorState, i = this._updateTags;
|
|
4053
4053
|
n = n !== void 0 ? n.tag : null, r === null || r.isEmpty() || (n != null && i.add(n), ot(this)), this._pendingEditorState = e, this._dirtyType = 2, this._dirtyElements.set("root", !1), this._compositionKey = null, n != null && i.add(n), ot(this);
|
|
4054
4054
|
}
|
|
@@ -4149,7 +4149,7 @@ T.$isParagraphNode = function(t) {
|
|
|
4149
4149
|
T.$isRangeSelection = b;
|
|
4150
4150
|
T.$isRootNode = Ie;
|
|
4151
4151
|
T.$isRootOrShadowRoot = Ge;
|
|
4152
|
-
T.$isTextNode =
|
|
4152
|
+
T.$isTextNode = R;
|
|
4153
4153
|
T.$nodesOfType = function(t) {
|
|
4154
4154
|
var e = ke();
|
|
4155
4155
|
let n = e._readOnly, r = t.getType();
|
|
@@ -4244,7 +4244,7 @@ T.createEditor = function(t) {
|
|
|
4244
4244
|
return r = new Q1(o, i, t, { disableEvents: l, namespace: s, theme: r }, d || console.error, X1(t), e), a !== void 0 && (r._pendingEditorState = a, r._dirtyType = 2), r;
|
|
4245
4245
|
};
|
|
4246
4246
|
const q1 = T;
|
|
4247
|
-
var
|
|
4247
|
+
var $ = q1, al = Me, Yt = $, Qn = H, eu = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Qn.useLayoutEffect : Qn.useEffect;
|
|
4248
4248
|
let kn = { tag: "history-merge" };
|
|
4249
4249
|
function tu(t, e) {
|
|
4250
4250
|
if (e !== null) {
|
|
@@ -4288,7 +4288,7 @@ jl.LexicalComposer = function({ initialConfig: t, children: e }) {
|
|
|
4288
4288
|
}, []), Qn.createElement(al.LexicalComposerContext.Provider, { value: n }, e);
|
|
4289
4289
|
};
|
|
4290
4290
|
const nu = jl;
|
|
4291
|
-
var ru = nu, ae = {}, Ne = {}, ue =
|
|
4291
|
+
var ru = nu, ae = {}, Ne = {}, ue = $;
|
|
4292
4292
|
function ls(t) {
|
|
4293
4293
|
throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
4294
4294
|
}
|
|
@@ -4420,7 +4420,7 @@ Ne.removeClassNamesFromElement = function(t, ...e) {
|
|
|
4420
4420
|
};
|
|
4421
4421
|
Ne.unstable_convertLegacyJSONEditorState = as;
|
|
4422
4422
|
const lu = Ne;
|
|
4423
|
-
var _e = lu, K =
|
|
4423
|
+
var _e = lu, K = $, fn = _e;
|
|
4424
4424
|
function Cn(t) {
|
|
4425
4425
|
throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
4426
4426
|
}
|
|
@@ -4934,7 +4934,7 @@ ae.removeList = function(t) {
|
|
|
4934
4934
|
});
|
|
4935
4935
|
};
|
|
4936
4936
|
const fu = ae;
|
|
4937
|
-
var gt = fu, qe = {}, et = {}, Si = {}, ee = {}, I =
|
|
4937
|
+
var gt = fu, qe = {}, et = {}, Si = {}, ee = {}, I = $;
|
|
4938
4938
|
let qn = /* @__PURE__ */ new Map();
|
|
4939
4939
|
function er(t) {
|
|
4940
4940
|
t = t.getLatest();
|
|
@@ -5048,16 +5048,16 @@ function Vn(t, e, n, r, i = null) {
|
|
|
5048
5048
|
var g = /* @__PURE__ */ new Set();
|
|
5049
5049
|
for (d = 0; d < n; d++) {
|
|
5050
5050
|
c = e[d];
|
|
5051
|
-
var
|
|
5052
|
-
if (
|
|
5053
|
-
if (c =
|
|
5054
|
-
let
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
}), pu(
|
|
5051
|
+
var p = c.getParent();
|
|
5052
|
+
if (p !== null && p.isInline() && (p = p.getParent()), p !== null && I.$isLeafNode(c) && !g.has(c.getKey())) {
|
|
5053
|
+
if (c = p.getKey(), o.get(c) === void 0) {
|
|
5054
|
+
let f = r();
|
|
5055
|
+
f.setFormat(p.getFormatType()), f.setIndent(p.getIndent()), s.push(f), o.set(c, f), p.getChildren().forEach((v) => {
|
|
5056
|
+
f.append(v), g.add(v.getKey());
|
|
5057
|
+
}), pu(p);
|
|
5058
5058
|
}
|
|
5059
5059
|
} else
|
|
5060
|
-
u.has(c.getKey()) && (
|
|
5060
|
+
u.has(c.getKey()) && (p = r(), p.setFormat(c.getFormatType()), p.setIndent(c.getIndent()), s.push(p), c.remove(!0));
|
|
5061
5061
|
}
|
|
5062
5062
|
if (i !== null)
|
|
5063
5063
|
for (e = 0; e < s.length; e++)
|
|
@@ -5267,7 +5267,7 @@ ee.trimTextContentFromAnchor = function(t, e, n) {
|
|
|
5267
5267
|
}
|
|
5268
5268
|
};
|
|
5269
5269
|
const mu = ee;
|
|
5270
|
-
var Le = mu, Cl = Le, Ct =
|
|
5270
|
+
var Le = mu, Cl = Le, Ct = $;
|
|
5271
5271
|
function vs(t, e, n, r = null) {
|
|
5272
5272
|
let i = r != null ? e.isSelected() : !0, l = Ct.$isElementNode(e) && e.excludeFromCopy("html");
|
|
5273
5273
|
var o = e;
|
|
@@ -5277,8 +5277,8 @@ function vs(t, e, n, r = null) {
|
|
|
5277
5277
|
return !1;
|
|
5278
5278
|
let d = new DocumentFragment();
|
|
5279
5279
|
for (let c = 0; c < s.length; c++) {
|
|
5280
|
-
let g = s[c],
|
|
5281
|
-
!i && Ct.$isElementNode(e) &&
|
|
5280
|
+
let g = s[c], p = vs(t, g, d, r);
|
|
5281
|
+
!i && Ct.$isElementNode(e) && p && e.extractWithChild(g, r, "html") && (i = !0);
|
|
5282
5282
|
}
|
|
5283
5283
|
return i && !l ? (a.append(d), n.append(a), u && (t = u.call(
|
|
5284
5284
|
o,
|
|
@@ -5334,7 +5334,7 @@ Si.$generateNodesFromDOM = function(t, e) {
|
|
|
5334
5334
|
return n;
|
|
5335
5335
|
};
|
|
5336
5336
|
const _u = Si;
|
|
5337
|
-
var vu = _u, Es = vu, yl = gt, li = Le, Qt = _e, F =
|
|
5337
|
+
var vu = _u, Es = vu, yl = gt, li = Le, Qt = _e, F = $;
|
|
5338
5338
|
function Be(t) {
|
|
5339
5339
|
throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
5340
5340
|
}
|
|
@@ -5353,26 +5353,26 @@ function yu(t, e, n, r) {
|
|
|
5353
5353
|
t.length === 1 && F.DEPRECATED_$isGridNode(t[0]) || Be(42);
|
|
5354
5354
|
var i = t[0];
|
|
5355
5355
|
t = i.getChildren(), n = i.getFirstChildOrThrow().getChildrenSize();
|
|
5356
|
-
var l = i.getChildrenSize(), o = Qt.$findMatchingParent(e.anchor.getNode(), (
|
|
5357
|
-
e = (i = o && Qt.$findMatchingParent(o, (
|
|
5356
|
+
var l = i.getChildrenSize(), o = Qt.$findMatchingParent(e.anchor.getNode(), (p) => F.DEPRECATED_$isGridCellNode(p));
|
|
5357
|
+
e = (i = o && Qt.$findMatchingParent(o, (p) => F.DEPRECATED_$isGridRowNode(p))) && Qt.$findMatchingParent(i, (p) => F.DEPRECATED_$isGridNode(p)), F.DEPRECATED_$isGridCellNode(o) && F.DEPRECATED_$isGridRowNode(i) && F.DEPRECATED_$isGridNode(e) || Be(43);
|
|
5358
5358
|
var s = i.getIndexWithinParent(), a = Math.min(e.getChildrenSize() - 1, s + l - 1);
|
|
5359
5359
|
l = o.getIndexWithinParent(), o = Math.min(i.getChildrenSize() - 1, l + n - 1), n = Math.min(l, o), i = Math.min(s, a), l = Math.max(l, o), s = Math.max(s, a), a = e.getChildren(), o = 0;
|
|
5360
5360
|
let u, d;
|
|
5361
|
-
for (let
|
|
5362
|
-
var c = a[
|
|
5361
|
+
for (let p = i; p <= s; p++) {
|
|
5362
|
+
var c = a[p];
|
|
5363
5363
|
F.DEPRECATED_$isGridRowNode(c) || Be(24);
|
|
5364
5364
|
var g = t[o];
|
|
5365
5365
|
F.DEPRECATED_$isGridRowNode(g) || Be(24), c = c.getChildren(), g = g.getChildren();
|
|
5366
|
-
let
|
|
5366
|
+
let f = 0;
|
|
5367
5367
|
for (let v = n; v <= l; v++) {
|
|
5368
5368
|
let x = c[v];
|
|
5369
5369
|
F.DEPRECATED_$isGridCellNode(x) || Be(25);
|
|
5370
|
-
let S = g[
|
|
5371
|
-
F.DEPRECATED_$isGridCellNode(S) || Be(25),
|
|
5372
|
-
let
|
|
5370
|
+
let S = g[f];
|
|
5371
|
+
F.DEPRECATED_$isGridCellNode(S) || Be(25), p === i && v === n ? u = x.getKey() : p === s && v === l && (d = x.getKey());
|
|
5372
|
+
let m = x.getChildren();
|
|
5373
5373
|
S.getChildren().forEach((_) => {
|
|
5374
5374
|
F.$isTextNode(_) && F.$createParagraphNode().append(_), x.append(_);
|
|
5375
|
-
}),
|
|
5375
|
+
}), m.forEach((_) => _.remove()), f++;
|
|
5376
5376
|
}
|
|
5377
5377
|
o++;
|
|
5378
5378
|
}
|
|
@@ -5456,7 +5456,7 @@ et.$insertDataTransferForRichText = function(t, e, n) {
|
|
|
5456
5456
|
};
|
|
5457
5457
|
et.$insertGeneratedNodes = oi;
|
|
5458
5458
|
const Eu = et;
|
|
5459
|
-
var xu = Eu, tr = xu, In = Le, Nt = _e, y =
|
|
5459
|
+
var xu = Eu, tr = xu, In = Le, Nt = _e, y = $;
|
|
5460
5460
|
let It = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Nu = It && "documentMode" in document ? document.documentMode : null;
|
|
5461
5461
|
It && /Mac|iPod|iPhone|iPad/.test(navigator.platform);
|
|
5462
5462
|
It && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);
|
|
@@ -5758,7 +5758,7 @@ qe.registerRichText = function(t) {
|
|
|
5758
5758
|
);
|
|
5759
5759
|
};
|
|
5760
5760
|
const Au = qe;
|
|
5761
|
-
var ft = Au, ze = {}, Ru = _e, Ze =
|
|
5761
|
+
var ft = Au, ze = {}, Ru = _e, Ze = $;
|
|
5762
5762
|
class Pt extends Ze.ElementNode {
|
|
5763
5763
|
static getType() {
|
|
5764
5764
|
return "link";
|
|
@@ -5932,7 +5932,7 @@ ze.toggleLink = function(t, e = {}) {
|
|
|
5932
5932
|
};
|
|
5933
5933
|
const Pu = ze;
|
|
5934
5934
|
var ws = Pu;
|
|
5935
|
-
class vr extends
|
|
5935
|
+
class vr extends $.ElementNode {
|
|
5936
5936
|
static getType() {
|
|
5937
5937
|
return "aside";
|
|
5938
5938
|
}
|
|
@@ -5965,11 +5965,11 @@ class vr extends D.ElementNode {
|
|
|
5965
5965
|
};
|
|
5966
5966
|
}
|
|
5967
5967
|
insertNewAfter() {
|
|
5968
|
-
const e =
|
|
5968
|
+
const e = $.$createParagraphNode(), n = this.getDirection();
|
|
5969
5969
|
return e.setDirection(n), this.insertNewAfter(e), e;
|
|
5970
5970
|
}
|
|
5971
5971
|
collapseAtStart() {
|
|
5972
|
-
const e =
|
|
5972
|
+
const e = $.$createParagraphNode();
|
|
5973
5973
|
return this.getChildren().forEach((r) => e.append(r)), this.replace(e), !0;
|
|
5974
5974
|
}
|
|
5975
5975
|
}
|
|
@@ -5979,7 +5979,7 @@ function Fu() {
|
|
|
5979
5979
|
function $i() {
|
|
5980
5980
|
return new vr();
|
|
5981
5981
|
}
|
|
5982
|
-
var Ms = {}, bu = Me, nt =
|
|
5982
|
+
var Ms = {}, bu = Me, nt = $, Fn = H;
|
|
5983
5983
|
function Nl(t, e) {
|
|
5984
5984
|
return t.getEditorState().read(() => {
|
|
5985
5985
|
let n = nt.$getNodeByKey(e);
|
|
@@ -6014,17 +6014,61 @@ const Os = ({
|
|
|
6014
6014
|
H.useEffect(() => _e.mergeRegister(n.registerUpdateListener(({
|
|
6015
6015
|
editorState: d
|
|
6016
6016
|
}) => {
|
|
6017
|
-
s(d.read(() =>
|
|
6018
|
-
}), n.registerCommand(
|
|
6019
|
-
const c =
|
|
6020
|
-
if (r &&
|
|
6017
|
+
s(d.read(() => $.$getSelection()));
|
|
6018
|
+
}), n.registerCommand($.CLICK_COMMAND, (d) => (a.current.contains(d.target) ? (l(), i(!0)) : r && i(!1), !1), $.COMMAND_PRIORITY_LOW), n.registerCommand($.BLUR_COMMAND, (d) => (r && !a.current.contains(d.relatedTarget) && l(), !1), $.COMMAND_PRIORITY_LOW), n.registerCommand($.KEY_ENTER_COMMAND, (d) => {
|
|
6019
|
+
const c = $.$getSelection();
|
|
6020
|
+
if (r && $.$isNodeSelection(c) && c.getNodes().length === 1) {
|
|
6021
6021
|
d.preventDefault();
|
|
6022
|
-
const g =
|
|
6023
|
-
return g.getTopLevelElementOrThrow().insertAfter(
|
|
6022
|
+
const g = $.$getNodeByKey(t), p = $.$createParagraphNode();
|
|
6023
|
+
return g.getTopLevelElementOrThrow().insertAfter(p), p.select(), !0;
|
|
6024
|
+
}
|
|
6025
|
+
return !1;
|
|
6026
|
+
}, $.COMMAND_PRIORITY_EDITOR), n.registerCommand($.KEY_BACKSPACE_COMMAND, (d) => {
|
|
6027
|
+
const c = $.$getSelection();
|
|
6028
|
+
if (r && $.$isNodeSelection(c) && c.getNodes().length === 1) {
|
|
6029
|
+
d.preventDefault();
|
|
6030
|
+
const g = $.$getNodeByKey(t), p = g.getPreviousSibling(), f = g.getNextSibling();
|
|
6031
|
+
if (p)
|
|
6032
|
+
if (p.selectEnd)
|
|
6033
|
+
p.selectEnd();
|
|
6034
|
+
else if ($.$isDecoratorNode(p)) {
|
|
6035
|
+
const v = $.$createNodeSelection();
|
|
6036
|
+
v.add(p.getKey()), $.$setSelection(v);
|
|
6037
|
+
} else
|
|
6038
|
+
g.selectPrevious();
|
|
6039
|
+
else if (f)
|
|
6040
|
+
if (f.selectStart)
|
|
6041
|
+
f.selectStart();
|
|
6042
|
+
else if ($.$isDecoratorNode(f)) {
|
|
6043
|
+
const v = $.$createNodeSelection();
|
|
6044
|
+
v.add(f.getKey()), $.$setSelection(v);
|
|
6045
|
+
} else
|
|
6046
|
+
g.selectNext();
|
|
6047
|
+
return g.remove(), !0;
|
|
6048
|
+
}
|
|
6049
|
+
return !1;
|
|
6050
|
+
}, $.COMMAND_PRIORITY_EDITOR), n.registerCommand($.KEY_DELETE_COMMAND, (d) => {
|
|
6051
|
+
const c = $.$getSelection();
|
|
6052
|
+
if (r && $.$isNodeSelection(c) && c.getNodes().length === 1) {
|
|
6053
|
+
d.preventDefault();
|
|
6054
|
+
const g = $.$getNodeByKey(t), p = g.getNextSibling();
|
|
6055
|
+
if (p)
|
|
6056
|
+
if (p.selectStart)
|
|
6057
|
+
p.selectStart();
|
|
6058
|
+
else if ($.$isDecoratorNode(p)) {
|
|
6059
|
+
const f = $.$createNodeSelection();
|
|
6060
|
+
f.add(p.getKey()), $.$setSelection(f);
|
|
6061
|
+
} else
|
|
6062
|
+
g.selectNext();
|
|
6063
|
+
else {
|
|
6064
|
+
const f = $.$createParagraphNode();
|
|
6065
|
+
g.getTopLevelElementOrThrow().insertAfter(f), f.select();
|
|
6066
|
+
}
|
|
6067
|
+
return g.remove(), !0;
|
|
6024
6068
|
}
|
|
6025
6069
|
return !1;
|
|
6026
|
-
},
|
|
6027
|
-
const u =
|
|
6070
|
+
}, $.COMMAND_PRIORITY_EDITOR)), [n, r, i, l, t]);
|
|
6071
|
+
const u = $.$isNodeSelection(o) && r;
|
|
6028
6072
|
return /* @__PURE__ */ C("div", {
|
|
6029
6073
|
className: `relative caret-grey-800 hover:shadow-[0_0_0_1px] hover:shadow-green ${u ? "shadow-[0_0_0_1px] shadow-green" : ""}`,
|
|
6030
6074
|
ref: a,
|
|
@@ -6033,7 +6077,7 @@ const Os = ({
|
|
|
6033
6077
|
children: e
|
|
6034
6078
|
});
|
|
6035
6079
|
};
|
|
6036
|
-
|
|
6080
|
+
$.createCommand();
|
|
6037
6081
|
function zu({
|
|
6038
6082
|
nodeKey: t
|
|
6039
6083
|
}) {
|
|
@@ -6047,7 +6091,7 @@ function zu({
|
|
|
6047
6091
|
})
|
|
6048
6092
|
});
|
|
6049
6093
|
}
|
|
6050
|
-
class Tn extends
|
|
6094
|
+
class Tn extends $.DecoratorNode {
|
|
6051
6095
|
static getType() {
|
|
6052
6096
|
return "horizontalrule";
|
|
6053
6097
|
}
|
|
@@ -6098,7 +6142,7 @@ const Ku = ({ el: t, value: e }) => {
|
|
|
6098
6142
|
}
|
|
6099
6143
|
}, [t, e]);
|
|
6100
6144
|
};
|
|
6101
|
-
|
|
6145
|
+
$.createCommand();
|
|
6102
6146
|
function Uu({
|
|
6103
6147
|
className: t,
|
|
6104
6148
|
code: e,
|
|
@@ -6106,7 +6150,7 @@ function Uu({
|
|
|
6106
6150
|
nodeKey: r,
|
|
6107
6151
|
editor: i
|
|
6108
6152
|
}) {
|
|
6109
|
-
const l =
|
|
6153
|
+
const l = h.useRef(null);
|
|
6110
6154
|
return Ku({
|
|
6111
6155
|
el: l,
|
|
6112
6156
|
value: e
|
|
@@ -6125,14 +6169,14 @@ function Uu({
|
|
|
6125
6169
|
value: e,
|
|
6126
6170
|
onChange: (s) => {
|
|
6127
6171
|
i.update(() => {
|
|
6128
|
-
|
|
6172
|
+
$.$getNodeByKey(r).setCode(s.target.value);
|
|
6129
6173
|
});
|
|
6130
6174
|
}
|
|
6131
6175
|
})
|
|
6132
6176
|
})
|
|
6133
6177
|
});
|
|
6134
6178
|
}
|
|
6135
|
-
class Ft extends
|
|
6179
|
+
class Ft extends $.DecoratorNode {
|
|
6136
6180
|
constructor(n, r, i) {
|
|
6137
6181
|
super(i);
|
|
6138
6182
|
Sr(this, "__code", "");
|
|
@@ -6266,7 +6310,7 @@ const ju = {
|
|
|
6266
6310
|
children: r
|
|
6267
6311
|
});
|
|
6268
6312
|
};
|
|
6269
|
-
var Ls = {}, tt = {}, ve =
|
|
6313
|
+
var Ls = {}, tt = {}, ve = $;
|
|
6270
6314
|
function Oi(t, e = !0) {
|
|
6271
6315
|
return t ? !1 : (t = Ds(), e && (t = t.trim()), t === "");
|
|
6272
6316
|
}
|
|
@@ -6379,7 +6423,7 @@ tt.registerLexicalTextEntity = function(t, e, n, r) {
|
|
|
6379
6423
|
}), [l, t];
|
|
6380
6424
|
};
|
|
6381
6425
|
const Zu = tt;
|
|
6382
|
-
var Ju = Zu, Is = {}, bn =
|
|
6426
|
+
var Ju = Zu, Is = {}, bn = $;
|
|
6383
6427
|
Is.registerDragonSupport = function(t) {
|
|
6384
6428
|
let e = (n) => {
|
|
6385
6429
|
var r = t.getRootElement();
|
|
@@ -6395,8 +6439,8 @@ Is.registerDragonSupport = function(t) {
|
|
|
6395
6439
|
const d = bn.$getSelection();
|
|
6396
6440
|
if (bn.$isRangeSelection(d)) {
|
|
6397
6441
|
var c = d.anchor;
|
|
6398
|
-
let g = c.getNode(),
|
|
6399
|
-
bn.$isTextNode(g) && 0 <= l && 0 <= o && (
|
|
6442
|
+
let g = c.getNode(), p = 0, f = 0;
|
|
6443
|
+
bn.$isTextNode(g) && 0 <= l && 0 <= o && (p = l, f = l + o, d.setTextNodeRange(g, p, g, f)), (p !== f || s !== "") && (d.insertRawText(s), g = c.getNode()), bn.$isTextNode(g) && (p = a, f = a + u, c = g.getTextContentSize(), p = p > c ? c : p, f = f > c ? c : f, d.setTextNodeRange(g, p, g, f)), n.stopImmediatePropagation();
|
|
6400
6444
|
}
|
|
6401
6445
|
});
|
|
6402
6446
|
}
|
|
@@ -6452,8 +6496,8 @@ Ls.RichTextPlugin = function({ contentEditable: t, placeholder: e }) {
|
|
|
6452
6496
|
};
|
|
6453
6497
|
const od = Ls;
|
|
6454
6498
|
var sd = od, Fs = {}, ad = Me, qt = H, ud = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? qt.useLayoutEffect : qt.useEffect;
|
|
6455
|
-
Fs.ContentEditable = function({ ariaActiveDescendantID: t, ariaAutoComplete: e, ariaControls: n, ariaDescribedBy: r, ariaExpanded: i, ariaLabel: l, ariaLabelledBy: o, ariaMultiline: s, ariaOwneeID: a, ariaRequired: u, autoCapitalize: d, autoComplete: c, autoCorrect: g, className:
|
|
6456
|
-
let [E] = ad.useLexicalComposerContext(), [N, w] = qt.useState(!1),
|
|
6499
|
+
Fs.ContentEditable = function({ ariaActiveDescendantID: t, ariaAutoComplete: e, ariaControls: n, ariaDescribedBy: r, ariaExpanded: i, ariaLabel: l, ariaLabelledBy: o, ariaMultiline: s, ariaOwneeID: a, ariaRequired: u, autoCapitalize: d, autoComplete: c, autoCorrect: g, className: p, id: f, role: v = "textbox", spellCheck: x = !0, style: S, tabIndex: m, testid: _ }) {
|
|
6500
|
+
let [E] = ad.useLexicalComposerContext(), [N, w] = qt.useState(!1), A = qt.useCallback((P) => {
|
|
6457
6501
|
E.setRootElement(P);
|
|
6458
6502
|
}, [E]);
|
|
6459
6503
|
return ud(
|
|
@@ -6461,10 +6505,10 @@ Fs.ContentEditable = function({ ariaActiveDescendantID: t, ariaAutoComplete: e,
|
|
|
6461
6505
|
w(P);
|
|
6462
6506
|
})),
|
|
6463
6507
|
[E]
|
|
6464
|
-
), qt.createElement("div", { "aria-activedescendant": N ? t : null, "aria-autocomplete": N ? e : null, "aria-controls": N ? n : null, "aria-describedby": r, "aria-expanded": N && v === "combobox" ? !!i : null, "aria-label": l, "aria-labelledby": o, "aria-multiline": s, "aria-owns": N ? a : null, "aria-required": u, autoCapitalize: d !== void 0 ? String(d) : void 0, autoComplete: c, autoCorrect: g !== void 0 ? String(g) : void 0, className:
|
|
6508
|
+
), qt.createElement("div", { "aria-activedescendant": N ? t : null, "aria-autocomplete": N ? e : null, "aria-controls": N ? n : null, "aria-describedby": r, "aria-expanded": N && v === "combobox" ? !!i : null, "aria-label": l, "aria-labelledby": o, "aria-multiline": s, "aria-owns": N ? a : null, "aria-required": u, autoCapitalize: d !== void 0 ? String(d) : void 0, autoComplete: c, autoCorrect: g !== void 0 ? String(g) : void 0, className: p, contentEditable: N, "data-testid": _, id: f, ref: A, role: N ? v : void 0, spellCheck: x, style: S, tabIndex: m });
|
|
6465
6509
|
};
|
|
6466
6510
|
const dd = Fs;
|
|
6467
|
-
var cd = dd, Ri = {}, Li = {}, gd = _e, W =
|
|
6511
|
+
var cd = dd, Ri = {}, Li = {}, gd = _e, W = $;
|
|
6468
6512
|
function fd(t, e, n, r, i) {
|
|
6469
6513
|
if (t === null || n.size === 0 && r.size === 0 && !i)
|
|
6470
6514
|
return 0;
|
|
@@ -6488,13 +6532,13 @@ function hd(t, e) {
|
|
|
6488
6532
|
if (u.has("historic"))
|
|
6489
6533
|
return r = 0, n = d, 2;
|
|
6490
6534
|
let c = fd(i, l, s, a, t.isComposing()), g = (() => {
|
|
6491
|
-
var
|
|
6492
|
-
if (!
|
|
6535
|
+
var p = o === null || o.editor === t, f = u.has("history-push");
|
|
6536
|
+
if (!f && p && u.has("history-merge"))
|
|
6493
6537
|
return 0;
|
|
6494
6538
|
if (i === null)
|
|
6495
6539
|
return 1;
|
|
6496
6540
|
const v = l._selection, x = i._selection;
|
|
6497
|
-
return 0 < s.size || 0 < a.size ?
|
|
6541
|
+
return 0 < s.size || 0 < a.size ? f === !1 && c !== 0 && c === r && d < n + e && p || s.size === 1 && (f = Array.from(s)[0], p = i._nodeMap.get(f), f = l._nodeMap.get(f), p = W.$isTextNode(p) && W.$isTextNode(f) ? p.__type === f.__type && p.__text === f.__text && p.__mode === f.__mode && p.__detail === f.__detail && p.__style === f.__style && p.__format === f.__format && p.__parent === f.__parent : !1, p) ? 0 : 1 : x === null && v !== null ? 0 : 2;
|
|
6498
6542
|
})();
|
|
6499
6543
|
return n = d, r = c, g;
|
|
6500
6544
|
};
|
|
@@ -6505,10 +6549,10 @@ Li.createEmptyHistoryState = function() {
|
|
|
6505
6549
|
Li.registerHistory = function(t, e, n) {
|
|
6506
6550
|
let r = hd(t, n);
|
|
6507
6551
|
n = ({ editorState: o, prevEditorState: s, dirtyLeaves: a, dirtyElements: u, tags: d }) => {
|
|
6508
|
-
const c = e.current, g = e.redoStack,
|
|
6509
|
-
if (c === null || o !==
|
|
6552
|
+
const c = e.current, g = e.redoStack, p = e.undoStack, f = c === null ? null : c.editorState;
|
|
6553
|
+
if (c === null || o !== f) {
|
|
6510
6554
|
if (a = r(s, o, c, a, u, d), a === 1)
|
|
6511
|
-
g.length !== 0 && (e.redoStack = []), c !== null && (
|
|
6555
|
+
g.length !== 0 && (e.redoStack = []), c !== null && (p.push({ ...c, undoSelection: s.read(W.$getSelection) }), t.dispatchCommand(W.CAN_UNDO_COMMAND, !0));
|
|
6512
6556
|
else if (a === 2)
|
|
6513
6557
|
return;
|
|
6514
6558
|
e.current = { editor: t, editorState: o };
|
|
@@ -6567,7 +6611,7 @@ bs.OnChangePlugin = function({ ignoreHistoryMergeTagChange: t = !0, ignoreSelect
|
|
|
6567
6611
|
}, [r, t, e, n]), null;
|
|
6568
6612
|
};
|
|
6569
6613
|
const Nd = bs;
|
|
6570
|
-
var Td = Nd, Bs = {}, Ae = gt, Sd = Me, zs = H, wd = _e, Fe =
|
|
6614
|
+
var Td = Nd, Bs = {}, Ae = gt, Sd = Me, zs = H, wd = _e, Fe = $;
|
|
6571
6615
|
function Md(t) {
|
|
6572
6616
|
zs.useEffect(() => wd.mergeRegister(t.registerCommand(Fe.INDENT_CONTENT_COMMAND, () => (Ae.indentList(), !1), Fe.COMMAND_PRIORITY_LOW), t.registerCommand(Fe.OUTDENT_CONTENT_COMMAND, () => (Ae.outdentList(), !1), Fe.COMMAND_PRIORITY_LOW), t.registerCommand(Ae.INSERT_ORDERED_LIST_COMMAND, () => (Ae.insertList(t, "number"), !0), Fe.COMMAND_PRIORITY_LOW), t.registerCommand(Ae.INSERT_UNORDERED_LIST_COMMAND, () => (Ae.insertList(t, "bullet"), !0), Fe.COMMAND_PRIORITY_LOW), t.registerCommand(
|
|
6573
6617
|
Ae.REMOVE_LIST_COMMAND,
|
|
@@ -6591,8 +6635,8 @@ function Ad({
|
|
|
6591
6635
|
return H.useEffect(() => {
|
|
6592
6636
|
const n = (r) => {
|
|
6593
6637
|
e.current.contains(r.target) || t.update(() => {
|
|
6594
|
-
const i =
|
|
6595
|
-
|
|
6638
|
+
const i = $.$getSelection();
|
|
6639
|
+
$.$isNodeSelection(i) && $.$setSelection(null);
|
|
6596
6640
|
});
|
|
6597
6641
|
};
|
|
6598
6642
|
return window.addEventListener("mousedown", n), () => {
|
|
@@ -6625,16 +6669,16 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6625
6669
|
manual: r.Prism && r.Prism.manual,
|
|
6626
6670
|
disableWorkerMessageHandler: r.Prism && r.Prism.disableWorkerMessageHandler,
|
|
6627
6671
|
util: {
|
|
6628
|
-
encode: function
|
|
6629
|
-
return _ instanceof a ? new a(_.type,
|
|
6672
|
+
encode: function m(_) {
|
|
6673
|
+
return _ instanceof a ? new a(_.type, m(_.content), _.alias) : Array.isArray(_) ? _.map(m) : _.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
6630
6674
|
},
|
|
6631
|
-
type: function(
|
|
6632
|
-
return Object.prototype.toString.call(
|
|
6675
|
+
type: function(m) {
|
|
6676
|
+
return Object.prototype.toString.call(m).slice(8, -1);
|
|
6633
6677
|
},
|
|
6634
|
-
objId: function(
|
|
6635
|
-
return
|
|
6678
|
+
objId: function(m) {
|
|
6679
|
+
return m.__id || Object.defineProperty(m, "__id", { value: ++l }), m.__id;
|
|
6636
6680
|
},
|
|
6637
|
-
clone: function
|
|
6681
|
+
clone: function m(_, E) {
|
|
6638
6682
|
E = E || {};
|
|
6639
6683
|
var N, w;
|
|
6640
6684
|
switch (s.util.type(_)) {
|
|
@@ -6642,28 +6686,28 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6642
6686
|
if (w = s.util.objId(_), E[w])
|
|
6643
6687
|
return E[w];
|
|
6644
6688
|
N = {}, E[w] = N;
|
|
6645
|
-
for (var
|
|
6646
|
-
_.hasOwnProperty(
|
|
6689
|
+
for (var A in _)
|
|
6690
|
+
_.hasOwnProperty(A) && (N[A] = m(_[A], E));
|
|
6647
6691
|
return N;
|
|
6648
6692
|
case "Array":
|
|
6649
6693
|
return w = s.util.objId(_), E[w] ? E[w] : (N = [], E[w] = N, _.forEach(function(P, k) {
|
|
6650
|
-
N[k] =
|
|
6694
|
+
N[k] = m(P, E);
|
|
6651
6695
|
}), N);
|
|
6652
6696
|
default:
|
|
6653
6697
|
return _;
|
|
6654
6698
|
}
|
|
6655
6699
|
},
|
|
6656
|
-
getLanguage: function(
|
|
6657
|
-
for (;
|
|
6658
|
-
var _ = i.exec(
|
|
6700
|
+
getLanguage: function(m) {
|
|
6701
|
+
for (; m; ) {
|
|
6702
|
+
var _ = i.exec(m.className);
|
|
6659
6703
|
if (_)
|
|
6660
6704
|
return _[1].toLowerCase();
|
|
6661
|
-
|
|
6705
|
+
m = m.parentElement;
|
|
6662
6706
|
}
|
|
6663
6707
|
return "none";
|
|
6664
6708
|
},
|
|
6665
|
-
setLanguage: function(
|
|
6666
|
-
|
|
6709
|
+
setLanguage: function(m, _) {
|
|
6710
|
+
m.className = m.className.replace(RegExp(i, "gi"), ""), m.classList.add("language-" + _);
|
|
6667
6711
|
},
|
|
6668
6712
|
currentScript: function() {
|
|
6669
6713
|
if (typeof document > "u")
|
|
@@ -6673,24 +6717,24 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6673
6717
|
try {
|
|
6674
6718
|
throw new Error();
|
|
6675
6719
|
} catch (N) {
|
|
6676
|
-
var
|
|
6677
|
-
if (
|
|
6720
|
+
var m = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(N.stack) || [])[1];
|
|
6721
|
+
if (m) {
|
|
6678
6722
|
var _ = document.getElementsByTagName("script");
|
|
6679
6723
|
for (var E in _)
|
|
6680
|
-
if (_[E].src ==
|
|
6724
|
+
if (_[E].src == m)
|
|
6681
6725
|
return _[E];
|
|
6682
6726
|
}
|
|
6683
6727
|
return null;
|
|
6684
6728
|
}
|
|
6685
6729
|
},
|
|
6686
|
-
isActive: function(
|
|
6687
|
-
for (var N = "no-" + _;
|
|
6688
|
-
var w =
|
|
6730
|
+
isActive: function(m, _, E) {
|
|
6731
|
+
for (var N = "no-" + _; m; ) {
|
|
6732
|
+
var w = m.classList;
|
|
6689
6733
|
if (w.contains(_))
|
|
6690
6734
|
return !0;
|
|
6691
6735
|
if (w.contains(N))
|
|
6692
6736
|
return !1;
|
|
6693
|
-
|
|
6737
|
+
m = m.parentElement;
|
|
6694
6738
|
}
|
|
6695
6739
|
return !!E;
|
|
6696
6740
|
}
|
|
@@ -6700,59 +6744,59 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6700
6744
|
plaintext: o,
|
|
6701
6745
|
text: o,
|
|
6702
6746
|
txt: o,
|
|
6703
|
-
extend: function(
|
|
6704
|
-
var E = s.util.clone(s.languages[
|
|
6747
|
+
extend: function(m, _) {
|
|
6748
|
+
var E = s.util.clone(s.languages[m]);
|
|
6705
6749
|
for (var N in _)
|
|
6706
6750
|
E[N] = _[N];
|
|
6707
6751
|
return E;
|
|
6708
6752
|
},
|
|
6709
|
-
insertBefore: function(
|
|
6753
|
+
insertBefore: function(m, _, E, N) {
|
|
6710
6754
|
N = N || s.languages;
|
|
6711
|
-
var w = N[
|
|
6755
|
+
var w = N[m], A = {};
|
|
6712
6756
|
for (var P in w)
|
|
6713
6757
|
if (w.hasOwnProperty(P)) {
|
|
6714
6758
|
if (P == _)
|
|
6715
6759
|
for (var k in E)
|
|
6716
|
-
E.hasOwnProperty(k) && (
|
|
6717
|
-
E.hasOwnProperty(P) || (
|
|
6760
|
+
E.hasOwnProperty(k) && (A[k] = E[k]);
|
|
6761
|
+
E.hasOwnProperty(P) || (A[P] = w[P]);
|
|
6718
6762
|
}
|
|
6719
|
-
var U = N[
|
|
6720
|
-
return N[
|
|
6721
|
-
$e === U && Z !=
|
|
6722
|
-
}),
|
|
6763
|
+
var U = N[m];
|
|
6764
|
+
return N[m] = A, s.languages.DFS(s.languages, function(Z, $e) {
|
|
6765
|
+
$e === U && Z != m && (this[Z] = A);
|
|
6766
|
+
}), A;
|
|
6723
6767
|
},
|
|
6724
|
-
DFS: function
|
|
6768
|
+
DFS: function m(_, E, N, w) {
|
|
6725
6769
|
w = w || {};
|
|
6726
|
-
var
|
|
6770
|
+
var A = s.util.objId;
|
|
6727
6771
|
for (var P in _)
|
|
6728
6772
|
if (_.hasOwnProperty(P)) {
|
|
6729
6773
|
E.call(_, P, _[P], N || P);
|
|
6730
6774
|
var k = _[P], U = s.util.type(k);
|
|
6731
|
-
U === "Object" && !w[
|
|
6775
|
+
U === "Object" && !w[A(k)] ? (w[A(k)] = !0, m(k, E, null, w)) : U === "Array" && !w[A(k)] && (w[A(k)] = !0, m(k, E, P, w));
|
|
6732
6776
|
}
|
|
6733
6777
|
}
|
|
6734
6778
|
},
|
|
6735
6779
|
plugins: {},
|
|
6736
|
-
highlightAll: function(
|
|
6737
|
-
s.highlightAllUnder(document,
|
|
6780
|
+
highlightAll: function(m, _) {
|
|
6781
|
+
s.highlightAllUnder(document, m, _);
|
|
6738
6782
|
},
|
|
6739
|
-
highlightAllUnder: function(
|
|
6783
|
+
highlightAllUnder: function(m, _, E) {
|
|
6740
6784
|
var N = {
|
|
6741
6785
|
callback: E,
|
|
6742
|
-
container:
|
|
6786
|
+
container: m,
|
|
6743
6787
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
6744
6788
|
};
|
|
6745
6789
|
s.hooks.run("before-highlightall", N), N.elements = Array.prototype.slice.apply(N.container.querySelectorAll(N.selector)), s.hooks.run("before-all-elements-highlight", N);
|
|
6746
|
-
for (var w = 0,
|
|
6747
|
-
s.highlightElement(
|
|
6790
|
+
for (var w = 0, A; A = N.elements[w++]; )
|
|
6791
|
+
s.highlightElement(A, _ === !0, N.callback);
|
|
6748
6792
|
},
|
|
6749
|
-
highlightElement: function(
|
|
6750
|
-
var N = s.util.getLanguage(
|
|
6751
|
-
s.util.setLanguage(
|
|
6752
|
-
var
|
|
6753
|
-
|
|
6754
|
-
var P =
|
|
6755
|
-
element:
|
|
6793
|
+
highlightElement: function(m, _, E) {
|
|
6794
|
+
var N = s.util.getLanguage(m), w = s.languages[N];
|
|
6795
|
+
s.util.setLanguage(m, N);
|
|
6796
|
+
var A = m.parentElement;
|
|
6797
|
+
A && A.nodeName.toLowerCase() === "pre" && s.util.setLanguage(A, N);
|
|
6798
|
+
var P = m.textContent, k = {
|
|
6799
|
+
element: m,
|
|
6756
6800
|
language: N,
|
|
6757
6801
|
grammar: w,
|
|
6758
6802
|
code: P
|
|
@@ -6760,7 +6804,7 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6760
6804
|
function U($e) {
|
|
6761
6805
|
k.highlightedCode = $e, s.hooks.run("before-insert", k), k.element.innerHTML = k.highlightedCode, s.hooks.run("after-highlight", k), s.hooks.run("complete", k), E && E.call(k.element);
|
|
6762
6806
|
}
|
|
6763
|
-
if (s.hooks.run("before-sanity-check", k),
|
|
6807
|
+
if (s.hooks.run("before-sanity-check", k), A = k.element.parentElement, A && A.nodeName.toLowerCase() === "pre" && !A.hasAttribute("tabindex") && A.setAttribute("tabindex", "0"), !k.code) {
|
|
6764
6808
|
s.hooks.run("complete", k), E && E.call(k.element);
|
|
6765
6809
|
return;
|
|
6766
6810
|
}
|
|
@@ -6780,9 +6824,9 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6780
6824
|
} else
|
|
6781
6825
|
U(s.highlight(k.code, k.grammar, k.language));
|
|
6782
6826
|
},
|
|
6783
|
-
highlight: function(
|
|
6827
|
+
highlight: function(m, _, E) {
|
|
6784
6828
|
var N = {
|
|
6785
|
-
code:
|
|
6829
|
+
code: m,
|
|
6786
6830
|
grammar: _,
|
|
6787
6831
|
language: E
|
|
6788
6832
|
};
|
|
@@ -6790,7 +6834,7 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6790
6834
|
throw new Error('The language "' + N.language + '" has no grammar.');
|
|
6791
6835
|
return N.tokens = s.tokenize(N.code, N.grammar), s.hooks.run("after-tokenize", N), a.stringify(s.util.encode(N.tokens), N.language);
|
|
6792
6836
|
},
|
|
6793
|
-
tokenize: function(
|
|
6837
|
+
tokenize: function(m, _) {
|
|
6794
6838
|
var E = _.rest;
|
|
6795
6839
|
if (E) {
|
|
6796
6840
|
for (var N in E)
|
|
@@ -6798,16 +6842,16 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6798
6842
|
delete _.rest;
|
|
6799
6843
|
}
|
|
6800
6844
|
var w = new c();
|
|
6801
|
-
return g(w, w.head,
|
|
6845
|
+
return g(w, w.head, m), d(m, w, _, w.head, 0), f(w);
|
|
6802
6846
|
},
|
|
6803
6847
|
hooks: {
|
|
6804
6848
|
all: {},
|
|
6805
|
-
add: function(
|
|
6849
|
+
add: function(m, _) {
|
|
6806
6850
|
var E = s.hooks.all;
|
|
6807
|
-
E[
|
|
6851
|
+
E[m] = E[m] || [], E[m].push(_);
|
|
6808
6852
|
},
|
|
6809
|
-
run: function(
|
|
6810
|
-
var E = s.hooks.all[
|
|
6853
|
+
run: function(m, _) {
|
|
6854
|
+
var E = s.hooks.all[m];
|
|
6811
6855
|
if (!(!E || !E.length))
|
|
6812
6856
|
for (var N = 0, w; w = E[N++]; )
|
|
6813
6857
|
w(_);
|
|
@@ -6816,62 +6860,62 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6816
6860
|
Token: a
|
|
6817
6861
|
};
|
|
6818
6862
|
r.Prism = s;
|
|
6819
|
-
function a(
|
|
6820
|
-
this.type =
|
|
6863
|
+
function a(m, _, E, N) {
|
|
6864
|
+
this.type = m, this.content = _, this.alias = E, this.length = (N || "").length | 0;
|
|
6821
6865
|
}
|
|
6822
|
-
a.stringify = function
|
|
6866
|
+
a.stringify = function m(_, E) {
|
|
6823
6867
|
if (typeof _ == "string")
|
|
6824
6868
|
return _;
|
|
6825
6869
|
if (Array.isArray(_)) {
|
|
6826
6870
|
var N = "";
|
|
6827
6871
|
return _.forEach(function(U) {
|
|
6828
|
-
N +=
|
|
6872
|
+
N += m(U, E);
|
|
6829
6873
|
}), N;
|
|
6830
6874
|
}
|
|
6831
6875
|
var w = {
|
|
6832
6876
|
type: _.type,
|
|
6833
|
-
content:
|
|
6877
|
+
content: m(_.content, E),
|
|
6834
6878
|
tag: "span",
|
|
6835
6879
|
classes: ["token", _.type],
|
|
6836
6880
|
attributes: {},
|
|
6837
6881
|
language: E
|
|
6838
|
-
},
|
|
6839
|
-
|
|
6882
|
+
}, A = _.alias;
|
|
6883
|
+
A && (Array.isArray(A) ? Array.prototype.push.apply(w.classes, A) : w.classes.push(A)), s.hooks.run("wrap", w);
|
|
6840
6884
|
var P = "";
|
|
6841
6885
|
for (var k in w.attributes)
|
|
6842
6886
|
P += " " + k + '="' + (w.attributes[k] || "").replace(/"/g, """) + '"';
|
|
6843
6887
|
return "<" + w.tag + ' class="' + w.classes.join(" ") + '"' + P + ">" + w.content + "</" + w.tag + ">";
|
|
6844
6888
|
};
|
|
6845
|
-
function u(
|
|
6846
|
-
|
|
6847
|
-
var w =
|
|
6889
|
+
function u(m, _, E, N) {
|
|
6890
|
+
m.lastIndex = _;
|
|
6891
|
+
var w = m.exec(E);
|
|
6848
6892
|
if (w && N && w[1]) {
|
|
6849
|
-
var
|
|
6850
|
-
w.index +=
|
|
6893
|
+
var A = w[1].length;
|
|
6894
|
+
w.index += A, w[0] = w[0].slice(A);
|
|
6851
6895
|
}
|
|
6852
6896
|
return w;
|
|
6853
6897
|
}
|
|
6854
|
-
function d(
|
|
6898
|
+
function d(m, _, E, N, w, A) {
|
|
6855
6899
|
for (var P in E)
|
|
6856
6900
|
if (!(!E.hasOwnProperty(P) || !E[P])) {
|
|
6857
6901
|
var k = E[P];
|
|
6858
6902
|
k = Array.isArray(k) ? k : [k];
|
|
6859
6903
|
for (var U = 0; U < k.length; ++U) {
|
|
6860
|
-
if (
|
|
6904
|
+
if (A && A.cause == P + "," + U)
|
|
6861
6905
|
return;
|
|
6862
6906
|
var Z = k[U], $e = Z.inside, He = !!Z.lookbehind, $n = !!Z.greedy, Te = Z.alias;
|
|
6863
6907
|
if ($n && !Z.pattern.global) {
|
|
6864
6908
|
var Ke = Z.pattern.toString().match(/[imsuy]*$/)[0];
|
|
6865
6909
|
Z.pattern = RegExp(Z.pattern.source, Ke + "g");
|
|
6866
6910
|
}
|
|
6867
|
-
for (var On = Z.pattern || Z, ne = N.next, ce = w; ne !== _.tail && !(
|
|
6911
|
+
for (var On = Z.pattern || Z, ne = N.next, ce = w; ne !== _.tail && !(A && ce >= A.reach); ce += ne.value.length, ne = ne.next) {
|
|
6868
6912
|
var Se = ne.value;
|
|
6869
|
-
if (_.length >
|
|
6913
|
+
if (_.length > m.length)
|
|
6870
6914
|
return;
|
|
6871
6915
|
if (!(Se instanceof a)) {
|
|
6872
6916
|
var Oe = 1, X;
|
|
6873
6917
|
if ($n) {
|
|
6874
|
-
if (X = u(On, ce,
|
|
6918
|
+
if (X = u(On, ce, m, He), !X || X.index >= m.length)
|
|
6875
6919
|
break;
|
|
6876
6920
|
var Rn = X.index, An = X.index + X[0].length, Ue = ce;
|
|
6877
6921
|
for (Ue += ne.value.length; Rn >= Ue; )
|
|
@@ -6880,20 +6924,20 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6880
6924
|
continue;
|
|
6881
6925
|
for (var Bt = ne; Bt !== _.tail && (Ue < An || typeof Bt.value == "string"); Bt = Bt.next)
|
|
6882
6926
|
Oe++, Ue += Bt.value.length;
|
|
6883
|
-
Oe--, Se =
|
|
6927
|
+
Oe--, Se = m.slice(ce, Ue), X.index -= ce;
|
|
6884
6928
|
} else if (X = u(On, 0, Se, He), !X)
|
|
6885
6929
|
continue;
|
|
6886
6930
|
var Rn = X.index, Ln = X[0], xr = Se.slice(0, Rn), Fi = Se.slice(Rn + Ln.length), Nr = ce + Se.length;
|
|
6887
|
-
|
|
6931
|
+
A && Nr > A.reach && (A.reach = Nr);
|
|
6888
6932
|
var Dn = ne.prev;
|
|
6889
|
-
xr && (Dn = g(_, Dn, xr), ce += xr.length),
|
|
6933
|
+
xr && (Dn = g(_, Dn, xr), ce += xr.length), p(_, Dn, Oe);
|
|
6890
6934
|
var va = new a(P, $e ? s.tokenize(Ln, $e) : Ln, Te, Ln);
|
|
6891
6935
|
if (ne = g(_, Dn, va), Fi && g(_, ne, Fi), Oe > 1) {
|
|
6892
6936
|
var Tr = {
|
|
6893
6937
|
cause: P + "," + U,
|
|
6894
6938
|
reach: Nr
|
|
6895
6939
|
};
|
|
6896
|
-
d(
|
|
6940
|
+
d(m, _, E, ne.prev, ce, Tr), A && Tr.reach > A.reach && (A.reach = Tr.reach);
|
|
6897
6941
|
}
|
|
6898
6942
|
}
|
|
6899
6943
|
}
|
|
@@ -6901,26 +6945,26 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
6901
6945
|
}
|
|
6902
6946
|
}
|
|
6903
6947
|
function c() {
|
|
6904
|
-
var
|
|
6905
|
-
|
|
6948
|
+
var m = { value: null, prev: null, next: null }, _ = { value: null, prev: m, next: null };
|
|
6949
|
+
m.next = _, this.head = m, this.tail = _, this.length = 0;
|
|
6906
6950
|
}
|
|
6907
|
-
function g(
|
|
6951
|
+
function g(m, _, E) {
|
|
6908
6952
|
var N = _.next, w = { value: E, prev: _, next: N };
|
|
6909
|
-
return _.next = w, N.prev = w,
|
|
6953
|
+
return _.next = w, N.prev = w, m.length++, w;
|
|
6910
6954
|
}
|
|
6911
|
-
function m
|
|
6912
|
-
for (var N = _.next, w = 0; w < E && N !==
|
|
6955
|
+
function p(m, _, E) {
|
|
6956
|
+
for (var N = _.next, w = 0; w < E && N !== m.tail; w++)
|
|
6913
6957
|
N = N.next;
|
|
6914
|
-
_.next = N, N.prev = _,
|
|
6958
|
+
_.next = N, N.prev = _, m.length -= w;
|
|
6915
6959
|
}
|
|
6916
|
-
function
|
|
6917
|
-
for (var _ = [], E =
|
|
6960
|
+
function f(m) {
|
|
6961
|
+
for (var _ = [], E = m.head.next; E !== m.tail; )
|
|
6918
6962
|
_.push(E.value), E = E.next;
|
|
6919
6963
|
return _;
|
|
6920
6964
|
}
|
|
6921
6965
|
if (!r.document)
|
|
6922
|
-
return r.addEventListener && (s.disableWorkerMessageHandler || r.addEventListener("message", function(
|
|
6923
|
-
var _ = JSON.parse(
|
|
6966
|
+
return r.addEventListener && (s.disableWorkerMessageHandler || r.addEventListener("message", function(m) {
|
|
6967
|
+
var _ = JSON.parse(m.data), E = _.language, N = _.code, w = _.immediateClose;
|
|
6924
6968
|
r.postMessage(s.highlight(N, s.languages[E], E)), w && r.close();
|
|
6925
6969
|
}, !1)), s;
|
|
6926
6970
|
var v = s.util.currentScript();
|
|
@@ -7284,16 +7328,16 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
7284
7328
|
tex: "latex"
|
|
7285
7329
|
}, s = "data-src-status", a = "loading", u = "loaded", d = "failed", c = "pre[data-src]:not([" + s + '="' + u + '"]):not([' + s + '="' + a + '"])';
|
|
7286
7330
|
function g(v, x, S) {
|
|
7287
|
-
var
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
},
|
|
7331
|
+
var m = new XMLHttpRequest();
|
|
7332
|
+
m.open("GET", v, !0), m.onreadystatechange = function() {
|
|
7333
|
+
m.readyState == 4 && (m.status < 400 && m.responseText ? x(m.responseText) : m.status >= 400 ? S(i(m.status, m.statusText)) : S(l));
|
|
7334
|
+
}, m.send(null);
|
|
7291
7335
|
}
|
|
7292
|
-
function
|
|
7336
|
+
function p(v) {
|
|
7293
7337
|
var x = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v || "");
|
|
7294
7338
|
if (x) {
|
|
7295
|
-
var S = Number(x[1]),
|
|
7296
|
-
return
|
|
7339
|
+
var S = Number(x[1]), m = x[2], _ = x[3];
|
|
7340
|
+
return m ? _ ? [S, Number(_)] : [S, void 0] : [S, S];
|
|
7297
7341
|
}
|
|
7298
7342
|
}
|
|
7299
7343
|
n.hooks.add("before-highlightall", function(v) {
|
|
@@ -7304,20 +7348,20 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
7304
7348
|
v.code = "", x.setAttribute(s, a);
|
|
7305
7349
|
var S = x.appendChild(document.createElement("CODE"));
|
|
7306
7350
|
S.textContent = r;
|
|
7307
|
-
var
|
|
7351
|
+
var m = x.getAttribute("data-src"), _ = v.language;
|
|
7308
7352
|
if (_ === "none") {
|
|
7309
|
-
var E = (/\.(\w+)$/.exec(
|
|
7353
|
+
var E = (/\.(\w+)$/.exec(m) || [, "none"])[1];
|
|
7310
7354
|
_ = o[E] || E;
|
|
7311
7355
|
}
|
|
7312
7356
|
n.util.setLanguage(S, _), n.util.setLanguage(x, _);
|
|
7313
7357
|
var N = n.plugins.autoloader;
|
|
7314
7358
|
N && N.loadLanguages(_), g(
|
|
7315
|
-
|
|
7359
|
+
m,
|
|
7316
7360
|
function(w) {
|
|
7317
7361
|
x.setAttribute(s, u);
|
|
7318
|
-
var
|
|
7319
|
-
if (
|
|
7320
|
-
var P = w.split(/\r\n?|\n/g), k =
|
|
7362
|
+
var A = p(x.getAttribute("data-range"));
|
|
7363
|
+
if (A) {
|
|
7364
|
+
var P = w.split(/\r\n?|\n/g), k = A[0], U = A[1] == null ? P.length : A[1];
|
|
7321
7365
|
k < 0 && (k += P.length), k = Math.max(0, Math.min(k - 1, P.length)), U < 0 && (U += P.length), U = Math.max(0, Math.min(U, P.length)), w = P.slice(k, U).join(`
|
|
7322
7366
|
`), x.hasAttribute("data-start") || x.setAttribute("data-start", String(k + 1));
|
|
7323
7367
|
}
|
|
@@ -7330,13 +7374,13 @@ var Di = {}, j = {}, te = {}, Hs = { exports: {} };
|
|
|
7330
7374
|
}
|
|
7331
7375
|
}), n.plugins.fileHighlight = {
|
|
7332
7376
|
highlight: function(x) {
|
|
7333
|
-
for (var S = (x || document).querySelectorAll(c),
|
|
7377
|
+
for (var S = (x || document).querySelectorAll(c), m = 0, _; _ = S[m++]; )
|
|
7334
7378
|
n.highlightElement(_);
|
|
7335
7379
|
}
|
|
7336
7380
|
};
|
|
7337
|
-
var
|
|
7381
|
+
var f = !1;
|
|
7338
7382
|
n.fileHighlight = function() {
|
|
7339
|
-
|
|
7383
|
+
f || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), f = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
7340
7384
|
};
|
|
7341
7385
|
}();
|
|
7342
7386
|
})(Hs);
|
|
@@ -7843,17 +7887,17 @@ Prism.languages.rss = Prism.languages.xml;
|
|
|
7843
7887
|
return;
|
|
7844
7888
|
function c(g) {
|
|
7845
7889
|
if (!(!g || typeof g == "string"))
|
|
7846
|
-
for (var
|
|
7847
|
-
var v = g[
|
|
7890
|
+
for (var p = 0, f = g.length; p < f; p++) {
|
|
7891
|
+
var v = g[p];
|
|
7848
7892
|
if (v.type !== "code") {
|
|
7849
7893
|
c(v.content);
|
|
7850
7894
|
continue;
|
|
7851
7895
|
}
|
|
7852
7896
|
var x = v.content[1], S = v.content[3];
|
|
7853
7897
|
if (x && S && x.type === "code-language" && S.type === "code-block" && typeof x.content == "string") {
|
|
7854
|
-
var
|
|
7855
|
-
|
|
7856
|
-
var _ = "language-" +
|
|
7898
|
+
var m = x.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
7899
|
+
m = (/[a-z][\w-]*/i.exec(m) || [""])[0].toLowerCase();
|
|
7900
|
+
var _ = "language-" + m;
|
|
7857
7901
|
S.alias ? typeof S.alias == "string" ? S.alias = [S.alias, _] : S.alias.push(_) : S.alias = [_];
|
|
7858
7902
|
}
|
|
7859
7903
|
}
|
|
@@ -7861,8 +7905,8 @@ Prism.languages.rss = Prism.languages.xml;
|
|
|
7861
7905
|
c(d.tokens);
|
|
7862
7906
|
}), t.hooks.add("wrap", function(d) {
|
|
7863
7907
|
if (d.type === "code-block") {
|
|
7864
|
-
for (var c = "", g = 0,
|
|
7865
|
-
var
|
|
7908
|
+
for (var c = "", g = 0, p = d.classes.length; g < p; g++) {
|
|
7909
|
+
var f = d.classes[g], v = /language-(.+)/.exec(f);
|
|
7866
7910
|
if (v) {
|
|
7867
7911
|
c = v[1];
|
|
7868
7912
|
break;
|
|
@@ -7874,8 +7918,8 @@ Prism.languages.rss = Prism.languages.xml;
|
|
|
7874
7918
|
else if (c && c !== "none" && t.plugins.autoloader) {
|
|
7875
7919
|
var S = "md-" + new Date().valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
7876
7920
|
d.attributes.id = S, t.plugins.autoloader.loadLanguages(c, function() {
|
|
7877
|
-
var
|
|
7878
|
-
|
|
7921
|
+
var m = document.getElementById(S);
|
|
7922
|
+
m && (m.innerHTML = t.highlight(m.textContent, t.languages[c], c));
|
|
7879
7923
|
});
|
|
7880
7924
|
}
|
|
7881
7925
|
}
|
|
@@ -7888,12 +7932,12 @@ Prism.languages.rss = Prism.languages.xml;
|
|
|
7888
7932
|
}, a = String.fromCodePoint || String.fromCharCode;
|
|
7889
7933
|
function u(d) {
|
|
7890
7934
|
var c = d.replace(o, "");
|
|
7891
|
-
return c = c.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(g,
|
|
7892
|
-
if (
|
|
7893
|
-
var
|
|
7894
|
-
return
|
|
7935
|
+
return c = c.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(g, p) {
|
|
7936
|
+
if (p = p.toLowerCase(), p[0] === "#") {
|
|
7937
|
+
var f;
|
|
7938
|
+
return p[1] === "x" ? f = parseInt(p.slice(2), 16) : f = Number(p.slice(1)), a(f);
|
|
7895
7939
|
} else {
|
|
7896
|
-
var v = s[
|
|
7940
|
+
var v = s[p];
|
|
7897
7941
|
return v || g;
|
|
7898
7942
|
}
|
|
7899
7943
|
}), c;
|
|
@@ -8335,12 +8379,12 @@ Prism.languages.swift = {
|
|
|
8335
8379
|
Prism.languages.swift["string-literal"].forEach(function(t) {
|
|
8336
8380
|
t.inside.interpolation.inside = Prism.languages.swift;
|
|
8337
8381
|
});
|
|
8338
|
-
var Tt = Hs.exports, en = _e,
|
|
8382
|
+
var Tt = Hs.exports, en = _e, D = $;
|
|
8339
8383
|
let Ks = { c: "C", clike: "C-like", css: "CSS", html: "HTML", js: "JavaScript", markdown: "Markdown", objc: "Objective-C", plain: "Plain Text", py: "Python", rust: "Rust", sql: "SQL", swift: "Swift", xml: "XML" }, Us = { javascript: "js", md: "markdown", plaintext: "plain", python: "py", text: "plain" };
|
|
8340
8384
|
function Ws(t) {
|
|
8341
8385
|
return Us[t] || t;
|
|
8342
8386
|
}
|
|
8343
|
-
class ht extends
|
|
8387
|
+
class ht extends D.TextNode {
|
|
8344
8388
|
constructor(e, n, r) {
|
|
8345
8389
|
super(e, r), this.__highlightType = n;
|
|
8346
8390
|
}
|
|
@@ -8386,18 +8430,18 @@ function oe(t) {
|
|
|
8386
8430
|
}
|
|
8387
8431
|
function pn(t) {
|
|
8388
8432
|
let e = null, n = t.getPreviousSiblings();
|
|
8389
|
-
for (n.push(t); 0 < n.length && (t = n.pop(), oe(t) && (e = t), !
|
|
8433
|
+
for (n.push(t); 0 < n.length && (t = n.pop(), oe(t) && (e = t), !D.$isLineBreakNode(t)); )
|
|
8390
8434
|
;
|
|
8391
8435
|
return e;
|
|
8392
8436
|
}
|
|
8393
8437
|
function ui(t) {
|
|
8394
8438
|
let e = null, n = t.getNextSiblings();
|
|
8395
|
-
for (n.unshift(t); 0 < n.length && (t = n.shift(), oe(t) && (e = t), !
|
|
8439
|
+
for (n.unshift(t); 0 < n.length && (t = n.shift(), oe(t) && (e = t), !D.$isLineBreakNode(t)); )
|
|
8396
8440
|
;
|
|
8397
8441
|
return e;
|
|
8398
8442
|
}
|
|
8399
8443
|
let $l = (t) => t != null && Tt.languages.hasOwnProperty(t) ? t : void 0;
|
|
8400
|
-
class Xe extends
|
|
8444
|
+
class Xe extends D.ElementNode {
|
|
8401
8445
|
static getType() {
|
|
8402
8446
|
return "code";
|
|
8403
8447
|
}
|
|
@@ -8433,26 +8477,26 @@ class Xe extends L.ElementNode {
|
|
|
8433
8477
|
if (2 <= r && n[r - 1].getTextContent() === `
|
|
8434
8478
|
` && n[r - 2].getTextContent() === `
|
|
8435
8479
|
` && e.isCollapsed() && e.anchor.key === this.__key && e.anchor.offset === r)
|
|
8436
|
-
return n[r - 1].remove(), n[r - 2].remove(), e =
|
|
8480
|
+
return n[r - 1].remove(), n[r - 2].remove(), e = D.$createParagraphNode(), this.insertAfter(e), e;
|
|
8437
8481
|
n = e.anchor.getNode();
|
|
8438
8482
|
var i = pn(n);
|
|
8439
8483
|
if (i != null) {
|
|
8440
8484
|
for (r = 0, i = i.getTextContent(); r < i.length && /[\t ]/.test(i[r]); )
|
|
8441
8485
|
r += 1;
|
|
8442
8486
|
if (0 < r)
|
|
8443
|
-
return r = i.substring(0, r), r = st(r), n.insertAfter(r), e.insertNodes([
|
|
8487
|
+
return r = i.substring(0, r), r = st(r), n.insertAfter(r), e.insertNodes([D.$createLineBreakNode()]), r.select(), r;
|
|
8444
8488
|
}
|
|
8445
8489
|
return null;
|
|
8446
8490
|
}
|
|
8447
8491
|
canInsertTab() {
|
|
8448
|
-
let e =
|
|
8449
|
-
return !!(
|
|
8492
|
+
let e = D.$getSelection();
|
|
8493
|
+
return !!(D.$isRangeSelection(e) && e.isCollapsed());
|
|
8450
8494
|
}
|
|
8451
8495
|
canIndent() {
|
|
8452
8496
|
return !1;
|
|
8453
8497
|
}
|
|
8454
8498
|
collapseAtStart() {
|
|
8455
|
-
let e =
|
|
8499
|
+
let e = D.$createParagraphNode();
|
|
8456
8500
|
return this.getChildren().forEach((n) => e.append(n)), this.replace(e), !0;
|
|
8457
8501
|
}
|
|
8458
8502
|
setLanguage(e) {
|
|
@@ -8475,7 +8519,7 @@ function Ld(t) {
|
|
|
8475
8519
|
let e = t.style.fontFamily.match("monospace") !== null;
|
|
8476
8520
|
return { after: (n) => {
|
|
8477
8521
|
let r = t.parentNode;
|
|
8478
|
-
return r != null && t !== r.lastChild && n.push(
|
|
8522
|
+
return r != null && t !== r.lastChild && n.push(D.$createLineBreakNode()), n;
|
|
8479
8523
|
}, node: e ? Sn() : null, preformatted: e };
|
|
8480
8524
|
}
|
|
8481
8525
|
function Dd() {
|
|
@@ -8485,7 +8529,7 @@ function Al() {
|
|
|
8485
8529
|
return { node: null };
|
|
8486
8530
|
}
|
|
8487
8531
|
function kd(t) {
|
|
8488
|
-
return { after: (e) => (t.parentNode && t.parentNode.nextSibling && e.push(
|
|
8532
|
+
return { after: (e) => (t.parentNode && t.parentNode.nextSibling && e.push(D.$createLineBreakNode()), e), node: null };
|
|
8489
8533
|
}
|
|
8490
8534
|
function Ir(t) {
|
|
8491
8535
|
return t.classList.contains("js-file-line-container");
|
|
@@ -8518,7 +8562,7 @@ function Vs(t) {
|
|
|
8518
8562
|
var l = i.getTextContent();
|
|
8519
8563
|
l = rr(l, !0), l !== -1 && (e = i, n = l);
|
|
8520
8564
|
}
|
|
8521
|
-
if (
|
|
8565
|
+
if (D.$isLineBreakNode(i))
|
|
8522
8566
|
break;
|
|
8523
8567
|
}
|
|
8524
8568
|
if (e === null)
|
|
@@ -8527,7 +8571,7 @@ function Vs(t) {
|
|
|
8527
8571
|
e = r, n = i;
|
|
8528
8572
|
break;
|
|
8529
8573
|
}
|
|
8530
|
-
if (
|
|
8574
|
+
if (D.$isLineBreakNode(r))
|
|
8531
8575
|
break;
|
|
8532
8576
|
}
|
|
8533
8577
|
return { node: e, offset: n };
|
|
@@ -8541,7 +8585,7 @@ function Ys(t) {
|
|
|
8541
8585
|
var l = i.getTextContent();
|
|
8542
8586
|
l = rr(l, !1), l !== -1 && (e = i, n = l + 1);
|
|
8543
8587
|
}
|
|
8544
|
-
if (
|
|
8588
|
+
if (D.$isLineBreakNode(i))
|
|
8545
8589
|
break;
|
|
8546
8590
|
}
|
|
8547
8591
|
if (e === null)
|
|
@@ -8550,14 +8594,14 @@ function Ys(t) {
|
|
|
8550
8594
|
e = r, n = i + 1;
|
|
8551
8595
|
break;
|
|
8552
8596
|
}
|
|
8553
|
-
if (
|
|
8597
|
+
if (D.$isLineBreakNode(r))
|
|
8554
8598
|
break;
|
|
8555
8599
|
}
|
|
8556
8600
|
return { node: e, offset: n };
|
|
8557
8601
|
}
|
|
8558
8602
|
function Rl(t, e) {
|
|
8559
8603
|
let n = t.getParent();
|
|
8560
|
-
Cr(n) ? Gs(n, e) : oe(t) && t.replace(
|
|
8604
|
+
Cr(n) ? Gs(n, e) : oe(t) && t.replace(D.$createTextNode(t.__text));
|
|
8561
8605
|
}
|
|
8562
8606
|
let Pr = !1;
|
|
8563
8607
|
function Gs(t, e) {
|
|
@@ -8566,7 +8610,7 @@ function Gs(t, e) {
|
|
|
8566
8610
|
var n = t.getKey();
|
|
8567
8611
|
e.update(() => {
|
|
8568
8612
|
Id(n, () => {
|
|
8569
|
-
var r =
|
|
8613
|
+
var r = D.$getNodeByKey(n);
|
|
8570
8614
|
if (!Cr(r) || !r.isAttached())
|
|
8571
8615
|
return !1;
|
|
8572
8616
|
var i = r.getTextContent();
|
|
@@ -8598,24 +8642,24 @@ function js(t) {
|
|
|
8598
8642
|
`);
|
|
8599
8643
|
for (var r = 0; r < n.length; r++) {
|
|
8600
8644
|
let i = n[r];
|
|
8601
|
-
i.length && e.push(st(i)), r < n.length - 1 && e.push(
|
|
8645
|
+
i.length && e.push(st(i)), r < n.length - 1 && e.push(D.$createLineBreakNode());
|
|
8602
8646
|
}
|
|
8603
8647
|
} else
|
|
8604
8648
|
({ content: r } = n), typeof r == "string" ? e.push(st(r, n.type)) : Array.isArray(r) && r.length === 1 && typeof r[0] == "string" ? e.push(st(r[0], n.type)) : Array.isArray(r) && e.push(...js(r));
|
|
8605
8649
|
}), e;
|
|
8606
8650
|
}
|
|
8607
8651
|
function Id(t, e) {
|
|
8608
|
-
if (t =
|
|
8609
|
-
var n =
|
|
8610
|
-
if (
|
|
8652
|
+
if (t = D.$getNodeByKey(t), Cr(t) && t.isAttached()) {
|
|
8653
|
+
var n = D.$getSelection();
|
|
8654
|
+
if (D.$isRangeSelection(n)) {
|
|
8611
8655
|
n = n.anchor;
|
|
8612
|
-
var r = n.offset, i = n.type === "element" &&
|
|
8656
|
+
var r = n.offset, i = n.type === "element" && D.$isLineBreakNode(t.getChildAtIndex(n.offset - 1)), l = 0;
|
|
8613
8657
|
if (!i) {
|
|
8614
8658
|
let o = n.getNode();
|
|
8615
|
-
l = r + o.getPreviousSiblings().reduce((s, a) => s + (
|
|
8659
|
+
l = r + o.getPreviousSiblings().reduce((s, a) => s + (D.$isLineBreakNode(a) ? 0 : a.getTextContentSize()), 0);
|
|
8616
8660
|
}
|
|
8617
8661
|
e() && (i ? n.getNode().select(r, r) : t.getChildren().some((o) => {
|
|
8618
|
-
if (
|
|
8662
|
+
if (D.$isTextNode(o)) {
|
|
8619
8663
|
let s = o.getTextContentSize();
|
|
8620
8664
|
if (s >= l)
|
|
8621
8665
|
return o.select(l, l), !0;
|
|
@@ -8628,32 +8672,32 @@ function Id(t, e) {
|
|
|
8628
8672
|
}
|
|
8629
8673
|
}
|
|
8630
8674
|
function Ll(t, e) {
|
|
8631
|
-
return oe(t) && oe(e) ? t.__text === e.__text && t.__highlightType === e.__highlightType : !!(
|
|
8675
|
+
return oe(t) && oe(e) ? t.__text === e.__text && t.__highlightType === e.__highlightType : !!(D.$isLineBreakNode(t) && D.$isLineBreakNode(e));
|
|
8632
8676
|
}
|
|
8633
8677
|
function Dl(t) {
|
|
8634
|
-
var e =
|
|
8635
|
-
if (!
|
|
8678
|
+
var e = D.$getSelection();
|
|
8679
|
+
if (!D.$isRangeSelection(e) || e.isCollapsed())
|
|
8636
8680
|
return !1;
|
|
8637
8681
|
e = e.getNodes();
|
|
8638
8682
|
for (var n = 0; n < e.length; n++) {
|
|
8639
8683
|
var r = e[n];
|
|
8640
|
-
if (!oe(r) && !
|
|
8684
|
+
if (!oe(r) && !D.$isLineBreakNode(r))
|
|
8641
8685
|
return !1;
|
|
8642
8686
|
}
|
|
8643
8687
|
for (n = pn(e[0]), n != null && kl(n, t), n = 1; n < e.length; n++)
|
|
8644
|
-
r = e[n],
|
|
8688
|
+
r = e[n], D.$isLineBreakNode(e[n - 1]) && oe(r) && kl(r, t);
|
|
8645
8689
|
return !0;
|
|
8646
8690
|
}
|
|
8647
8691
|
function kl(t, e) {
|
|
8648
8692
|
let n = t.getTextContent();
|
|
8649
|
-
e ===
|
|
8693
|
+
e === D.INDENT_CONTENT_COMMAND ? 0 < n.length && /\s/.test(n[0]) ? t.setTextContent(" " + n) : (e = st(" "), t.insertBefore(e)) : n.indexOf(" ") === 0 && (n.length === 1 ? t.remove() : t.setTextContent(n.substring(1)));
|
|
8650
8694
|
}
|
|
8651
8695
|
function Il(t, e) {
|
|
8652
|
-
let n =
|
|
8653
|
-
if (!
|
|
8696
|
+
let n = D.$getSelection();
|
|
8697
|
+
if (!D.$isRangeSelection(n))
|
|
8654
8698
|
return !1;
|
|
8655
8699
|
let { anchor: r, focus: i } = n, l = r.offset, o = i.offset, s = r.getNode(), a = i.getNode();
|
|
8656
|
-
var u = t ===
|
|
8700
|
+
var u = t === D.KEY_ARROW_UP_COMMAND;
|
|
8657
8701
|
if (!oe(s) || !oe(a))
|
|
8658
8702
|
return !1;
|
|
8659
8703
|
if (!e.altKey) {
|
|
@@ -8671,25 +8715,25 @@ function Il(t, e) {
|
|
|
8671
8715
|
if (d == null || c == null)
|
|
8672
8716
|
return !1;
|
|
8673
8717
|
let g = d.getNodesBetween(c);
|
|
8674
|
-
for (let
|
|
8675
|
-
let v = g[
|
|
8676
|
-
if (!oe(v) && !
|
|
8718
|
+
for (let f = 0; f < g.length; f++) {
|
|
8719
|
+
let v = g[f];
|
|
8720
|
+
if (!oe(v) && !D.$isLineBreakNode(v))
|
|
8677
8721
|
return !1;
|
|
8678
8722
|
}
|
|
8679
|
-
if (e.preventDefault(), e.stopPropagation(), e = u ? d.getPreviousSibling() : c.getNextSibling(), !
|
|
8723
|
+
if (e.preventDefault(), e.stopPropagation(), e = u ? d.getPreviousSibling() : c.getNextSibling(), !D.$isLineBreakNode(e) || (d = u ? e.getPreviousSibling() : e.getNextSibling(), d == null))
|
|
8680
8724
|
return !0;
|
|
8681
8725
|
u = u ? pn(d) : ui(d);
|
|
8682
|
-
let
|
|
8683
|
-
return e.remove(), g.forEach((
|
|
8684
|
-
|
|
8726
|
+
let p = u != null ? u : d;
|
|
8727
|
+
return e.remove(), g.forEach((f) => f.remove()), t === D.KEY_ARROW_UP_COMMAND ? (g.forEach((f) => p.insertBefore(f)), p.insertBefore(e)) : (p.insertAfter(e), p = e, g.forEach((f) => {
|
|
8728
|
+
p.insertAfter(f), p = f;
|
|
8685
8729
|
})), n.setTextNodeRange(s, l, a, o), !0;
|
|
8686
8730
|
}
|
|
8687
8731
|
function Pl(t, e) {
|
|
8688
|
-
let n =
|
|
8689
|
-
if (!
|
|
8732
|
+
let n = D.$getSelection();
|
|
8733
|
+
if (!D.$isRangeSelection(n))
|
|
8690
8734
|
return !1;
|
|
8691
8735
|
let { anchor: r, focus: i } = n, l = r.getNode(), o = i.getNode();
|
|
8692
|
-
if (t = t ===
|
|
8736
|
+
if (t = t === D.MOVE_TO_START, !oe(l) || !oe(o))
|
|
8693
8737
|
return !1;
|
|
8694
8738
|
let s, a;
|
|
8695
8739
|
return t ? { node: s, offset: a } = Vs(o) : { node: s, offset: a } = Ys(o), s !== null && a !== -1 && n.setTextNodeRange(s, a, s, a), e.preventDefault(), e.stopPropagation(), !0;
|
|
@@ -8720,7 +8764,7 @@ te.registerCodeHighlighting = function(t) {
|
|
|
8720
8764
|
t.update(() => {
|
|
8721
8765
|
for (let [i, l] of e)
|
|
8722
8766
|
if (l !== "destroyed") {
|
|
8723
|
-
var n =
|
|
8767
|
+
var n = D.$getNodeByKey(i);
|
|
8724
8768
|
if (n !== null)
|
|
8725
8769
|
e: {
|
|
8726
8770
|
var r = n;
|
|
@@ -8733,20 +8777,20 @@ te.registerCodeHighlighting = function(t) {
|
|
|
8733
8777
|
n.__cachedChildrenLength = o;
|
|
8734
8778
|
let s = "1", a = 1;
|
|
8735
8779
|
for (let u = 0; u < o; u++)
|
|
8736
|
-
|
|
8780
|
+
D.$isLineBreakNode(r[u]) && (s += `
|
|
8737
8781
|
` + ++a);
|
|
8738
8782
|
n.setAttribute("data-gutter", s);
|
|
8739
8783
|
}
|
|
8740
8784
|
}
|
|
8741
8785
|
});
|
|
8742
|
-
}), t.registerNodeTransform(Xe, (e) => Gs(e, t)), t.registerNodeTransform(
|
|
8743
|
-
|
|
8744
|
-
(e) => Il(
|
|
8745
|
-
|
|
8746
|
-
), t.registerCommand(
|
|
8786
|
+
}), t.registerNodeTransform(Xe, (e) => Gs(e, t)), t.registerNodeTransform(D.TextNode, (e) => Rl(e, t)), t.registerNodeTransform(ht, (e) => Rl(e, t)), t.registerCommand(D.INDENT_CONTENT_COMMAND, () => Dl(D.INDENT_CONTENT_COMMAND), D.COMMAND_PRIORITY_LOW), t.registerCommand(D.OUTDENT_CONTENT_COMMAND, () => Dl(D.OUTDENT_CONTENT_COMMAND), D.COMMAND_PRIORITY_LOW), t.registerCommand(D.KEY_ARROW_UP_COMMAND, (e) => Il(D.KEY_ARROW_UP_COMMAND, e), D.COMMAND_PRIORITY_LOW), t.registerCommand(
|
|
8787
|
+
D.KEY_ARROW_DOWN_COMMAND,
|
|
8788
|
+
(e) => Il(D.KEY_ARROW_DOWN_COMMAND, e),
|
|
8789
|
+
D.COMMAND_PRIORITY_LOW
|
|
8790
|
+
), t.registerCommand(D.MOVE_TO_END, (e) => Pl(D.MOVE_TO_END, e), D.COMMAND_PRIORITY_LOW), t.registerCommand(D.MOVE_TO_START, (e) => Pl(D.MOVE_TO_START, e), D.COMMAND_PRIORITY_LOW));
|
|
8747
8791
|
};
|
|
8748
8792
|
const Pd = te;
|
|
8749
|
-
var Fd = Pd, z =
|
|
8793
|
+
var Fd = Pd, z = $, tn = Fd, se = gt, je = ft, bd = _e, Fr = ws;
|
|
8750
8794
|
function di(t, e) {
|
|
8751
8795
|
let n = {};
|
|
8752
8796
|
for (let r of t)
|
|
@@ -8834,10 +8878,10 @@ function Ud(t) {
|
|
|
8834
8878
|
var i = r.split(`
|
|
8835
8879
|
`), l = i.length;
|
|
8836
8880
|
r = z.$getRoot(), r.clear();
|
|
8837
|
-
for (let
|
|
8838
|
-
var o = i[
|
|
8881
|
+
for (let f = 0; f < l; f++) {
|
|
8882
|
+
var o = i[f];
|
|
8839
8883
|
e: {
|
|
8840
|
-
var s = i, a =
|
|
8884
|
+
var s = i, a = f, u = r, d = s[a].match(Hl);
|
|
8841
8885
|
if (d) {
|
|
8842
8886
|
for (var c = a, g = s.length; ++c < g; )
|
|
8843
8887
|
if (s[c].match(Hl)) {
|
|
@@ -8850,22 +8894,22 @@ function Ud(t) {
|
|
|
8850
8894
|
}
|
|
8851
8895
|
let [v, x] = u;
|
|
8852
8896
|
if (v != null)
|
|
8853
|
-
|
|
8897
|
+
f = x;
|
|
8854
8898
|
else {
|
|
8855
8899
|
u = o, g = r;
|
|
8856
|
-
var
|
|
8900
|
+
var p = e.element;
|
|
8857
8901
|
c = n, s = e.textMatch, a = u.trim(), d = z.$createTextNode(a), o = z.$createParagraphNode(), o.append(d), g.append(o);
|
|
8858
|
-
for (let { regExp: S, replace:
|
|
8902
|
+
for (let { regExp: S, replace: m } of p)
|
|
8859
8903
|
if (g = u.match(S)) {
|
|
8860
|
-
d.setTextContent(u.slice(g[0].length)),
|
|
8904
|
+
d.setTextContent(u.slice(g[0].length)), m(o, [d], g, !0);
|
|
8861
8905
|
break;
|
|
8862
8906
|
}
|
|
8863
8907
|
Yn(d, c, s), o.isAttached() && 0 < a.length && (u = o.getPreviousSibling(), z.$isParagraphNode(u) || je.$isQuoteNode(u) || se.$isListNode(u)) && (c = u, se.$isListNode(u) && (u = u.getLastDescendant(), c = u == null ? null : bd.$findMatchingParent(u, se.$isListItemNode)), c != null && 0 < c.getTextContentSize() && (c.splice(c.getChildrenSize(), 0, [z.$createLineBreakNode(), ...o.getChildren()]), o.remove()));
|
|
8864
8908
|
}
|
|
8865
8909
|
}
|
|
8866
8910
|
i = r.getChildren();
|
|
8867
|
-
for (let
|
|
8868
|
-
i =
|
|
8911
|
+
for (let f of i)
|
|
8912
|
+
i = f, z.$isParagraphNode(i) ? (l = i.getFirstChild(), i = l == null || i.getChildrenSize() === 1 && z.$isTextNode(l) && Kd.test(l.getTextContent())) : i = !1, i && f.remove();
|
|
8869
8913
|
r.selectEnd();
|
|
8870
8914
|
};
|
|
8871
8915
|
}
|
|
@@ -9048,18 +9092,18 @@ j.registerMarkdownShortcuts = function(t, e = Er) {
|
|
|
9048
9092
|
if (!c.hasFormat("code")) {
|
|
9049
9093
|
var g = c.getParent();
|
|
9050
9094
|
if (g !== null && !tn.$isCodeNode(g)) {
|
|
9051
|
-
var
|
|
9095
|
+
var p = u.anchor.offset;
|
|
9052
9096
|
e: {
|
|
9053
|
-
var
|
|
9054
|
-
if (z.$isRootOrShadowRoot(v) && g.getFirstChild() === c && (v = c.getTextContent(), v[
|
|
9097
|
+
var f = n.element, v = g.getParent();
|
|
9098
|
+
if (z.$isRootOrShadowRoot(v) && g.getFirstChild() === c && (v = c.getTextContent(), v[p - 1] === " ")) {
|
|
9055
9099
|
for (let {
|
|
9056
9100
|
regExp: N,
|
|
9057
9101
|
replace: w
|
|
9058
|
-
} of
|
|
9059
|
-
if ((
|
|
9102
|
+
} of f)
|
|
9103
|
+
if ((f = v.match(N)) && f[0].length === p) {
|
|
9060
9104
|
v = c.getNextSiblings();
|
|
9061
|
-
let [
|
|
9062
|
-
|
|
9105
|
+
let [A, P] = c.splitText(p);
|
|
9106
|
+
A.remove(), v = P ? [P, ...v] : v, w(g, v, f, !1), g = !0;
|
|
9063
9107
|
break e;
|
|
9064
9108
|
}
|
|
9065
9109
|
}
|
|
@@ -9067,13 +9111,13 @@ j.registerMarkdownShortcuts = function(t, e = Er) {
|
|
|
9067
9111
|
}
|
|
9068
9112
|
if (!g) {
|
|
9069
9113
|
e: {
|
|
9070
|
-
if (
|
|
9071
|
-
|
|
9114
|
+
if (f = c.getTextContent(), g = i[f[p - 1]], g != null) {
|
|
9115
|
+
p < f.length && (f = f.slice(0, p));
|
|
9072
9116
|
for (S of g)
|
|
9073
|
-
if (g =
|
|
9074
|
-
|
|
9117
|
+
if (g = f.match(S.regExp), g !== null) {
|
|
9118
|
+
f = g.index || 0, v = f + g[0].length;
|
|
9075
9119
|
var x = void 0;
|
|
9076
|
-
|
|
9120
|
+
f === 0 ? [x] = c.splitText(v) : [, x] = c.splitText(f, v), x.selectNext(0, 0), S.replace(x, g);
|
|
9077
9121
|
var S = !0;
|
|
9078
9122
|
break e;
|
|
9079
9123
|
}
|
|
@@ -9082,25 +9126,25 @@ j.registerMarkdownShortcuts = function(t, e = Er) {
|
|
|
9082
9126
|
}
|
|
9083
9127
|
if (!S)
|
|
9084
9128
|
e: {
|
|
9085
|
-
v = c.getTextContent(), --
|
|
9086
|
-
var
|
|
9087
|
-
if (S = r[
|
|
9129
|
+
v = c.getTextContent(), --p;
|
|
9130
|
+
var m = v[p];
|
|
9131
|
+
if (S = r[m])
|
|
9088
9132
|
for (let N of S) {
|
|
9089
9133
|
var { tag: _ } = N;
|
|
9090
9134
|
S = _.length;
|
|
9091
|
-
let w =
|
|
9092
|
-
if (!(1 < S && !Zs(v, w, _, 0, S) || v[w - 1] === " ") && (x = v[
|
|
9093
|
-
g = x = c,
|
|
9094
|
-
for (var E = g; 0 >
|
|
9095
|
-
z.$isTextNode(E) && (
|
|
9096
|
-
if (!(0 >
|
|
9097
|
-
v = x.getTextContent(), v = v.slice(0, w) + v.slice(
|
|
9098
|
-
for (let
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
for (let
|
|
9102
|
-
|
|
9103
|
-
z.$isRangeSelection(v) && (
|
|
9135
|
+
let w = p - S + 1;
|
|
9136
|
+
if (!(1 < S && !Zs(v, w, _, 0, S) || v[w - 1] === " ") && (x = v[p + 1], N.intraword !== !1 || !x || ir.test(x))) {
|
|
9137
|
+
g = x = c, f = Kl(v, w, _);
|
|
9138
|
+
for (var E = g; 0 > f && (E = E.getPreviousSibling()) && !z.$isLineBreakNode(E); )
|
|
9139
|
+
z.$isTextNode(E) && (f = E.getTextContent(), g = E, f = Kl(f, f.length, _));
|
|
9140
|
+
if (!(0 > f || g === x && f + S === w || (_ = g.getTextContent(), 0 < f && _[f - 1] === m || (E = _[f - 1], N.intraword === !1 && E && !ir.test(E))))) {
|
|
9141
|
+
v = x.getTextContent(), v = v.slice(0, w) + v.slice(p + 1), x.setTextContent(v), v = g === x ? v : _, g.setTextContent(v.slice(0, f) + v.slice(f + S)), v = z.$getSelection(), m = z.$createRangeSelection(), z.$setSelection(m), p = p - S * (g === x ? 2 : 1) + 1, m.anchor.set(g.__key, f, "text"), m.focus.set(x.__key, p, "text");
|
|
9142
|
+
for (let A of N.format)
|
|
9143
|
+
m.hasFormat(A) || m.formatText(A);
|
|
9144
|
+
m.anchor.set(m.focus.key, m.focus.offset, m.focus.type);
|
|
9145
|
+
for (let A of N.format)
|
|
9146
|
+
m.hasFormat(A) && m.toggleFormat(A);
|
|
9147
|
+
z.$isRangeSelection(v) && (m.format = v.format);
|
|
9104
9148
|
break e;
|
|
9105
9149
|
}
|
|
9106
9150
|
}
|
|
@@ -9115,7 +9159,7 @@ j.registerMarkdownShortcuts = function(t, e = Er) {
|
|
|
9115
9159
|
});
|
|
9116
9160
|
};
|
|
9117
9161
|
const Gd = j;
|
|
9118
|
-
var it = Gd, wn = {}, jd = Me, Zd = $s, Jd = _e, Re =
|
|
9162
|
+
var it = Gd, wn = {}, jd = Me, Zd = $s, Jd = _e, Re = $, Gt = H;
|
|
9119
9163
|
let Xd = Re.createCommand();
|
|
9120
9164
|
function Qd({ nodeKey: t }) {
|
|
9121
9165
|
let [e] = jd.useLexicalComposerContext(), n = Gt.useRef(null), [r, i, l] = Zd.useLexicalNodeSelection(t), o = Gt.useCallback((s) => (r && Re.$isNodeSelection(Re.$getSelection()) && (s.preventDefault(), s = Re.$getNodeByKey(t), ha(s) && s.remove(), i(!1)), !1), [r, t, i]);
|
|
@@ -9259,24 +9303,24 @@ function _a(t) {
|
|
|
9259
9303
|
return null;
|
|
9260
9304
|
return _a(t.parentNode) || document.body;
|
|
9261
9305
|
}
|
|
9262
|
-
const pc = (t) => /* @__PURE__ */
|
|
9306
|
+
const pc = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
9263
9307
|
width: 16,
|
|
9264
9308
|
height: 16,
|
|
9265
9309
|
viewBox: "0 0 16 16",
|
|
9266
9310
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9267
9311
|
...t
|
|
9268
|
-
}, /* @__PURE__ */
|
|
9312
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
9269
9313
|
fillRule: "evenodd",
|
|
9270
9314
|
clipRule: "evenodd",
|
|
9271
9315
|
d: "M4 8.00011H6C6.26522 8.00011 6.51957 8.10546 6.70711 8.293C6.89464 8.48054 7 8.73489 7 9.00011V13.0001C7 13.2653 6.89464 13.5197 6.70711 13.7072C6.51957 13.8947 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8947 2.29289 13.7072C2.10536 13.5197 2 13.2653 2 13.0001V5.08211C2 3.90611 2.906 2.96211 4.538 2.11311C4.65448 2.05244 4.78177 2.0153 4.91261 2.00383C5.04344 1.99235 5.17525 2.00675 5.30052 2.04622C5.42579 2.08568 5.54205 2.14944 5.64268 2.23383C5.74331 2.31823 5.82633 2.42162 5.887 2.53811C5.94767 2.65459 5.9848 2.78188 5.99628 2.91271C6.00776 3.04355 5.99335 3.17536 5.95389 3.30063C5.91442 3.42589 5.85067 3.54216 5.76627 3.64279C5.68187 3.74342 5.57848 3.82644 5.462 3.88711C4.884 4.18711 4.469 4.47611 4.222 4.73411C4.054 4.90811 4 5.02011 4 5.08211V8.00011ZM13 8.00011C13.2652 8.00011 13.5196 8.10546 13.7071 8.293C13.8946 8.48054 14 8.73489 14 9.00011V9.5366C13.6143 9.60243 13.2536 9.7523 12.937 9.9445L12.9298 9.9489L12.4315 10.2608C11.9856 10.5357 11.5 11.0479 11.5 11.8252C11.5 12.5688 11.9611 13.2015 12.6323 13.4311V14.0001H10C9.73478 14.0001 9.48043 13.8947 9.29289 13.7072C9.10536 13.5197 9 13.2653 9 13.0001V5.08211C9 3.90611 9.906 2.96211 11.538 2.11311C11.6545 2.05244 11.7818 2.0153 11.9126 2.00383C12.0434 1.99235 12.1753 2.00675 12.3005 2.04622C12.4258 2.08568 12.5421 2.14944 12.6427 2.23383C12.7433 2.31823 12.8263 2.42162 12.887 2.53811C12.9477 2.65459 12.9848 2.78188 12.9963 2.91271C13.0078 3.04355 12.9934 3.17536 12.9539 3.30063C12.9144 3.42589 12.8507 3.54216 12.7663 3.64279C12.6819 3.74342 12.5785 3.82644 12.462 3.88711C11.884 4.18711 11.469 4.47611 11.222 4.73411C11.054 4.90811 11 5.02011 11 5.08211V8.00011H13ZM14.5428 15.4344C14.1182 15.4344 13.8823 15.1783 13.8823 14.7267V11.96H13.8722L13.6397 12.1082C13.4274 12.2329 13.3229 12.2734 13.1948 12.2734C12.9354 12.2734 12.75 12.0846 12.75 11.8252C12.75 11.6297 12.8646 11.4612 13.0904 11.323L13.5858 11.013C13.8688 10.8411 14.1587 10.7501 14.4249 10.7501C14.8933 10.7501 15.2 11.0635 15.2 11.5488V14.7267C15.2 15.1817 14.9641 15.4344 14.5428 15.4344Z"
|
|
9272
|
-
})), mc = (t) => /* @__PURE__ */
|
|
9316
|
+
})), mc = (t) => /* @__PURE__ */ h.createElement("svg", {
|
|
9273
9317
|
width: 16,
|
|
9274
9318
|
height: 16,
|
|
9275
9319
|
viewBox: "0 0 16 16",
|
|
9276
9320
|
fill: "none",
|
|
9277
9321
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9278
9322
|
...t
|
|
9279
|
-
}, /* @__PURE__ */
|
|
9323
|
+
}, /* @__PURE__ */ h.createElement("path", {
|
|
9280
9324
|
fillRule: "evenodd",
|
|
9281
9325
|
clipRule: "evenodd",
|
|
9282
9326
|
d: "M4 8.00015H6C6.26522 8.00015 6.51957 8.1055 6.70711 8.29304C6.89464 8.48058 7 8.73493 7 9.00015V13.0001C7 13.2654 6.89464 13.5197 6.70711 13.7073C6.51957 13.8948 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8948 2.29289 13.7073C2.10536 13.5197 2 13.2654 2 13.0001V5.08215C2 3.90615 2.906 2.96215 4.538 2.11315C4.65448 2.05248 4.78177 2.01534 4.91261 2.00387C5.04344 1.99239 5.17525 2.00679 5.30052 2.04626C5.42579 2.08572 5.54205 2.14948 5.64268 2.23387C5.74331 2.31827 5.82633 2.42166 5.887 2.53815C5.94767 2.65463 5.9848 2.78192 5.99628 2.91275C6.00776 3.04359 5.99335 3.1754 5.95389 3.30067C5.91442 3.42593 5.85067 3.5422 5.76627 3.64283C5.68187 3.74346 5.57848 3.82648 5.462 3.88715C4.884 4.18715 4.469 4.47615 4.222 4.73415C4.054 4.90815 4 5.02015 4 5.08215V8.00015ZM13 8.00015C13.2652 8.00015 13.5196 8.1055 13.7071 8.29304C13.8946 8.48058 14 8.73493 14 9.00015V9.51812C13.4378 9.57694 12.9087 9.77735 12.4803 10.0918C11.9785 10.4601 11.5 11.0848 11.5 11.9043C11.5 12.3632 11.6772 12.8135 12.0264 13.1451C12.0604 13.1774 12.0955 13.208 12.1312 13.2369C11.9419 13.4409 11.7509 13.6922 11.6323 14.0001H10C9.73478 14.0001 9.48043 13.8948 9.29289 13.7073C9.10536 13.5197 9 13.2654 9 13.0001V5.08215C9 3.90615 9.906 2.96215 11.538 2.11315C11.6545 2.05248 11.7818 2.01534 11.9126 2.00387C12.0434 1.99239 12.1753 2.00679 12.3005 2.04626C12.4258 2.08572 12.5421 2.14948 12.6427 2.23387C12.7433 2.31827 12.8263 2.42166 12.887 2.53815C12.9477 2.65463 12.9848 2.78192 12.9963 2.91275C13.0078 3.04359 12.9934 3.1754 12.9539 3.30067C12.9144 3.42593 12.8507 3.5422 12.7663 3.64283C12.6819 3.74346 12.5785 3.82648 12.462 3.88715C11.884 4.18715 11.469 4.47615 11.222 4.73415C11.054 4.90815 11 5.02015 11 5.08215V8.00015H13ZM13.2256 15.1428C12.8903 15.1428 12.6626 14.9404 12.6626 14.6432C12.6626 14.4218 12.7891 14.2257 13.1591 13.8779L14.1616 12.907C14.4937 12.5876 14.6391 12.3789 14.6391 12.1607C14.6391 11.9045 14.4526 11.7337 14.1806 11.7337C13.9687 11.7337 13.8169 11.8255 13.6556 12.0532C13.4785 12.2872 13.3457 12.3694 13.1402 12.3694C12.8524 12.3694 12.65 12.1765 12.65 11.9045C12.65 11.2973 13.371 10.7502 14.247 10.7502C15.1546 10.7502 15.825 11.2973 15.825 12.0373C15.825 12.4959 15.5879 12.926 15.0787 13.3908L14.2881 14.1245V14.172H15.4203C15.765 14.172 15.98 14.3585 15.98 14.6621C15.98 14.9626 15.7713 15.1428 15.4203 15.1428H13.2256Z"
|
|
@@ -9332,63 +9376,63 @@ function Cc({
|
|
|
9332
9376
|
}) {
|
|
9333
9377
|
const [o, s] = H.useState(!1), a = H.useRef(null), u = () => {
|
|
9334
9378
|
r !== "paragraph" && e.update(() => {
|
|
9335
|
-
const
|
|
9336
|
-
|
|
9379
|
+
const f = $.$getSelection();
|
|
9380
|
+
$.$isRangeSelection(f) && Le.$wrapNodes(f, () => $.$createParagraphNode());
|
|
9337
9381
|
});
|
|
9338
|
-
}, d = (
|
|
9339
|
-
r !==
|
|
9340
|
-
const v =
|
|
9341
|
-
|
|
9382
|
+
}, d = (f) => {
|
|
9383
|
+
r !== f && e.update(() => {
|
|
9384
|
+
const v = $.$getSelection();
|
|
9385
|
+
$.$isRangeSelection(v) && Le.$wrapNodes(v, () => ft.$createHeadingNode(f));
|
|
9342
9386
|
});
|
|
9343
9387
|
}, c = () => {
|
|
9344
9388
|
e.update(() => {
|
|
9345
|
-
const
|
|
9346
|
-
|
|
9389
|
+
const f = $.$getSelection();
|
|
9390
|
+
$.$isRangeSelection(f) && (r === "quote" ? Le.$wrapNodes(f, () => $i()) : r === "aside" ? Le.$wrapNodes(f, () => $.$createParagraphNode()) : Le.$wrapNodes(f, () => ft.$createQuoteNode()));
|
|
9347
9391
|
});
|
|
9348
9392
|
}, g = H.useCallback(() => {
|
|
9349
|
-
const
|
|
9350
|
-
if (!
|
|
9393
|
+
const f = a.current;
|
|
9394
|
+
if (!f)
|
|
9351
9395
|
return;
|
|
9352
|
-
const v =
|
|
9396
|
+
const v = $.$getSelection(), x = window.getSelection(), S = e.getRootElement();
|
|
9353
9397
|
if (v !== null && x !== null && !x.isCollapsed && S !== null && S.contains(x.anchorNode)) {
|
|
9354
|
-
const
|
|
9355
|
-
o || fc(
|
|
9398
|
+
const m = hc(x, S);
|
|
9399
|
+
o || fc(m, f, n);
|
|
9356
9400
|
}
|
|
9357
|
-
}, [e, n, o]),
|
|
9401
|
+
}, [e, n, o]), p = H.useCallback(() => {
|
|
9358
9402
|
t !== !1 && (a.current.style.opacity = "1");
|
|
9359
9403
|
}, [t]);
|
|
9360
9404
|
return H.useEffect(() => (e.getEditorState().read(() => {
|
|
9361
9405
|
g();
|
|
9362
|
-
}), document.addEventListener("mouseup",
|
|
9363
|
-
document.removeEventListener("mouseup",
|
|
9364
|
-
}), [
|
|
9406
|
+
}), document.addEventListener("mouseup", p), () => {
|
|
9407
|
+
document.removeEventListener("mouseup", p);
|
|
9408
|
+
}), [p, e, g]), H.useEffect(() => {
|
|
9365
9409
|
e.getEditorState().read(() => {
|
|
9366
9410
|
g();
|
|
9367
9411
|
});
|
|
9368
|
-
const
|
|
9369
|
-
v.key === "Shift" &&
|
|
9412
|
+
const f = (v) => {
|
|
9413
|
+
v.key === "Shift" && p();
|
|
9370
9414
|
};
|
|
9371
|
-
return document.addEventListener("keyup",
|
|
9372
|
-
document.removeEventListener("keyup",
|
|
9415
|
+
return document.addEventListener("keyup", f), () => {
|
|
9416
|
+
document.removeEventListener("keyup", f);
|
|
9373
9417
|
};
|
|
9374
|
-
}, [
|
|
9375
|
-
const
|
|
9418
|
+
}, [p, e, g]), H.useEffect(() => {
|
|
9419
|
+
const f = _a(n), v = () => {
|
|
9376
9420
|
e.getEditorState().read(() => {
|
|
9377
9421
|
g();
|
|
9378
9422
|
});
|
|
9379
9423
|
};
|
|
9380
|
-
return window.addEventListener("resize", v),
|
|
9381
|
-
window.removeEventListener("resize", v),
|
|
9424
|
+
return window.addEventListener("resize", v), f && f.addEventListener("scroll", v), () => {
|
|
9425
|
+
window.removeEventListener("resize", v), f && f.removeEventListener("scroll", v);
|
|
9382
9426
|
};
|
|
9383
9427
|
}, [e, g, n]), H.useEffect(() => (e.getEditorState().read(() => {
|
|
9384
9428
|
g();
|
|
9385
9429
|
}), _e.mergeRegister(e.registerUpdateListener(({
|
|
9386
|
-
editorState:
|
|
9430
|
+
editorState: f
|
|
9387
9431
|
}) => {
|
|
9388
|
-
|
|
9432
|
+
f.read(() => {
|
|
9389
9433
|
g();
|
|
9390
9434
|
});
|
|
9391
|
-
}), e.registerCommand(
|
|
9435
|
+
}), e.registerCommand($.SELECTION_CHANGE_COMMAND, () => (g(), !1), $.COMMAND_PRIORITY_LOW))), [e, g]), /* @__PURE__ */ C("div", {
|
|
9392
9436
|
className: "absolute",
|
|
9393
9437
|
ref: a,
|
|
9394
9438
|
"data-kg-floating-toolbar": !0,
|
|
@@ -9402,7 +9446,7 @@ function Cc({
|
|
|
9402
9446
|
isActive: i,
|
|
9403
9447
|
Icon: Ul,
|
|
9404
9448
|
onClick: () => {
|
|
9405
|
-
s(!0), e.dispatchCommand(
|
|
9449
|
+
s(!0), e.dispatchCommand($.FORMAT_TEXT_COMMAND, "bold");
|
|
9406
9450
|
},
|
|
9407
9451
|
"data-kg-toolbar-button": "bold"
|
|
9408
9452
|
}), /* @__PURE__ */ C(Ut, {
|
|
@@ -9410,7 +9454,7 @@ function Cc({
|
|
|
9410
9454
|
isActive: l,
|
|
9411
9455
|
Icon: Wl,
|
|
9412
9456
|
onClick: () => {
|
|
9413
|
-
s(!0), e.dispatchCommand(
|
|
9457
|
+
s(!0), e.dispatchCommand($.FORMAT_TEXT_COMMAND, "italic");
|
|
9414
9458
|
},
|
|
9415
9459
|
"data-kg-toolbar-button": "italic"
|
|
9416
9460
|
}), /* @__PURE__ */ C(Ut, {
|
|
@@ -9446,23 +9490,23 @@ function yc(t, e) {
|
|
|
9446
9490
|
t.getEditorState().read(() => {
|
|
9447
9491
|
if (t.isComposing())
|
|
9448
9492
|
return;
|
|
9449
|
-
const c =
|
|
9450
|
-
if (g !== null && (
|
|
9493
|
+
const c = $.$getSelection(), g = window.getSelection(), p = t.getRootElement();
|
|
9494
|
+
if (g !== null && (!$.$isRangeSelection(c) || p === null || !p.contains(g.anchorNode))) {
|
|
9451
9495
|
r(!1);
|
|
9452
9496
|
return;
|
|
9453
9497
|
}
|
|
9454
|
-
if (
|
|
9498
|
+
if (!$.$isRangeSelection(c))
|
|
9455
9499
|
return;
|
|
9456
|
-
const
|
|
9500
|
+
const f = cc(c), v = f.getKey() === "root" ? f : f.getTopLevelElementOrThrow(), x = v.getKey(), S = t.getElementByKey(x);
|
|
9457
9501
|
if (l(c.hasFormat("bold")), s(c.hasFormat("italic")), S !== null)
|
|
9458
9502
|
if (gt.$isListNode(v)) {
|
|
9459
|
-
const
|
|
9503
|
+
const m = _e.$getNearestNodeOfType(f, gt.ListNode), _ = m ? m.getListType() : v.getListType();
|
|
9460
9504
|
u(_);
|
|
9461
9505
|
} else {
|
|
9462
|
-
const
|
|
9463
|
-
|
|
9506
|
+
const m = ft.$isHeadingNode(v) ? v.getTag() : v.getType();
|
|
9507
|
+
m in _c && u(m);
|
|
9464
9508
|
}
|
|
9465
|
-
c.getTextContent() !== "" ? r(
|
|
9509
|
+
c.getTextContent() !== "" ? r($.$isTextNode(f)) : r(!1);
|
|
9466
9510
|
});
|
|
9467
9511
|
}, [t]);
|
|
9468
9512
|
if (zr(() => (document.addEventListener("selectionchange", d), () => {
|